@blockcerts/blockcerts-verifier 1.70.1 → 1.71.1
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/bundle-stats.html +13 -13
- package/dist/DataIntegrityProof-elCNKq16-DBDuaDNt.js +7 -0
- package/dist/EcdsaSd2023-B0XPAIp6-K61axvBA.js +30 -0
- package/dist/EcdsaSecp256k1Signature2019-BHgoxmKI-DT2qHZod.js +1 -0
- package/dist/Ed25519Signature2020-BQsESRnS-TKZI_1AX.js +34 -0
- package/dist/EddsaRdfc2022-DQKzWHK4-BILzDBp-.js +14 -0
- package/dist/{HashlinkVerifier-mEn5oMxx-0x0OtiE4.js → HashlinkVerifier-BsVlaml5-B4Niv2-b.js} +2 -2
- package/dist/{MerkleProof2017-Cgbk--lC-CKvOfXrT.js → MerkleProof2017-CYM8CJHB-FYpMvld0.js} +1 -1
- package/dist/MerkleProof2019-BLrywo8h-Bo9rH2Eq.js +13 -0
- package/dist/{checkCredentialSchemaConformity-CuuMYTl6-DqE6I7JD.js → checkCredentialSchemaConformity-CKNtOu_t-B9iaCRUE.js} +1 -1
- package/dist/{controlVerificationMethod-C87jwGUr-CpVyq-8H.js → controlVerificationMethod-B4TgLED0-BGpxLjMq.js} +1 -1
- package/dist/{did-key-common.esm-D1RQn0yL-kJBnihy7.js → did-key-common.esm-BIftA62j-hVrUMxjy.js} +3 -3
- package/dist/{did-key-ed25519.esm-0v03exJh-COIOTeQ5.js → did-key-ed25519.esm-Drn3Y7PF-CqD0ifNk.js} +1 -1
- package/dist/{did-key-secp256k1.esm-Cs0ZCHjg-B35GrJww.js → did-key-secp256k1.esm-DH-f3o5q-C66E7IxB.js} +1 -1
- package/dist/downloadPDF-D2qwT_DJ.js +297 -0
- package/dist/ed25519-key-pair.esm-DPOFpdJ2-BrwuS0Ia.js +25 -0
- package/dist/{elliptic-HXNc7riQ-DrFZxkx3.js → elliptic-4aZS_cwf-BpaNaVm0.js} +1 -1
- package/dist/elliptic-BYqApR8Y-CKp7atgR.js +1 -0
- package/dist/{index-BJkS6Wwm-C8oVP6LM.js → index-BgTFEYQ4-DMaz98iZ.js} +7 -7
- package/dist/index-lyuTDW_o-nyi7dklX.js +1 -0
- package/dist/{index.es-kH7iskh8.js → index.es-BIiEi3w5.js} +2 -2
- package/dist/{jsonld-CMQE_cGn-899pOqB6.js → jsonld-B_Q2jvnp-BJ5uVeOU.js} +1 -1
- package/dist/{jsonld-signatures-ZtLxJmqT-B0W14Jb0.js → jsonld-signatures-BbILf-Q7-DTp6__ud.js} +1 -1
- package/dist/keyUtils-ExMI0fmg-NVOmd8LH.js +1 -0
- package/dist/main.js +116 -116
- package/dist/{retrieveVerificationMethodPublicKey-nmb3CCVx-DA6ovQri.js → retrieveVerificationMethodPublicKey-C5Gafl1E-Lv4waRy7.js} +1 -1
- package/dist/verifyIssuerProfile-DCJyz3ho-BwuCK9F3.js +1 -0
- package/dist/{x25519-CbZcE2Ac-NSl6svWQ.js → x25519-Kp6t9B5a-Dh8L0KYb.js} +1 -1
- package/package.json +4 -4
- package/dist/EcdsaSd2023-BDSl7Ei2-BKyD2rP9.js +0 -35
- package/dist/EcdsaSecp256k1Signature2019-Bk8_LQ8c-BqdRm-Jv.js +0 -1
- package/dist/Ed25519Signature2020-fyWut63D-R9eZ2oN0.js +0 -58
- package/dist/MerkleProof2019-Dhsn349H-DFyc-5gT.js +0 -3
- package/dist/downloadPDF-CWa3ZYVl.js +0 -346
- package/dist/elliptic-CRAl7yyq-DbLzV4aB.js +0 -1
- package/dist/verifyIssuerProfile-CYqfuwV1-DeQqsjiM.js +0 -1
- /package/dist/{checkRevocationStatusList2021-UjTyRcl_-BEBD8TO8.js → checkRevocationStatusList2021-CMAVXAVE-BEBD8TO8.js} +0 -0
- /package/dist/{ensureNotRevoked-CdrYFvh7-DvMIgM4L.js → ensureNotRevoked-hGps0prO-DvMIgM4L.js} +0 -0
- /package/dist/{ensureValidIssuingKey-n3jD_OlE-BdV46XBb.js → ensureValidIssuingKey-BMVCi2T2-BdV46XBb.js} +0 -0
- /package/dist/{index-BcfLkJHS-Dgus2xdV.js → index-BS134367-Dgus2xdV.js} +0 -0
- /package/dist/{index-DYND9Svl-C0eXpZGn.js → index-CQYVZlSE-C0eXpZGn.js} +0 -0
- /package/dist/{sha256-CN3v2fAD-C1PUWFZm.js → sha256-u2xsd4MQ-C1PUWFZm.js} +0 -0
- /package/dist/{webcrypto.es-hNUMWa8--BnVhHKeM.js → webcrypto.es-DpqeDikX-BnVhHKeM.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,_ as e,g as r}from"./downloadPDF-CWa3ZYVl.js";import"./main.js";var i,n,a={};function s(){if(n)return i;n=1;var e=function(t){return t&&t.Math===Math&&t};return i=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var o,u,h,c,l,f,g,p,d={};function v(){return u?o:(u=1,o=function(t){try{return!!t()}catch(t){return!0}})}function y(){if(c)return h;c=1;var t=v();return h=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function m(){if(f)return l;f=1;var t=v();return l=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function x(){if(p)return g;p=1;var t=m(),e=Function.prototype.call;return g=t?e.bind(e):function(){return e.apply(e,arguments)},g}var b,w,S,T,O,A,C,P,E,N,M,R,_,V,I,k,L,D,j,B,z,U,F,H,X,Y,W,q,$,G,Q,Z,K,J,tt,et,rt,it,nt,at,st,ot={};function ut(){return S?w:(S=1,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function ht(){if(O)return T;O=1;var t=m(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return T=t?i:function(t){return function(){return r.apply(t,arguments)}},T}function ct(){if(C)return A;C=1;var t=ht(),e=t({}.toString),r=t("".slice);return A=function(t){return r(e(t),8,-1)}}function lt(){if(E)return P;E=1;var t=ht(),e=v(),r=ct(),i=Object,n=t("".split);return P=e((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?n(t,""):i(t)}:i}function ft(){return M?N:(M=1,N=function(t){return null==t})}function gt(){if(_)return R;_=1;var t=ft(),e=TypeError;return R=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function pt(){if(I)return V;I=1;var t=lt(),e=gt();return V=function(r){return t(e(r))}}function dt(){if(L)return k;L=1;var t="object"==typeof document&&document.all;return k=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function vt(){if(j)return D;j=1;var t=dt();return D=function(e){return"object"==typeof e?null!==e:t(e)}}function yt(){if(z)return B;z=1;var t=s(),e=dt();return B=function(r,i){return arguments.length<2?(n=t[r],e(n)?n:void 0):t[r]&&t[r][i];var n},B}function mt(){if(F)return U;F=1;var t=ht();return U=t({}.isPrototypeOf)}function xt(){if(X)return H;X=1;var t=s().navigator,e=t&&t.userAgent;return H=e?String(e):""}function bt(){if(W)return Y;W=1;var t,e,r=s(),i=xt(),n=r.process,a=r.Deno,o=n&&n.versions||a&&a.version,u=o&&o.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(e=+t[1]),Y=e}function wt(){if($)return q;$=1;var t=bt(),e=v(),r=s().String;return q=!!Object.getOwnPropertySymbols&&!e((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function St(){if(Q)return G;Q=1;var t=wt();return G=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Tt(){if(K)return Z;K=1;var t=yt(),e=dt(),r=mt(),i=St(),n=Object;return Z=i?function(t){return"symbol"==typeof t}:function(i){var a=t("Symbol");return e(a)&&r(a.prototype,n(i))}}function Ot(){if(tt)return J;tt=1;var t=String;return J=function(e){try{return t(e)}catch(t){return"Object"}}}function At(){if(rt)return et;rt=1;var t=dt(),e=Ot(),r=TypeError;return et=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")}}function Ct(){if(nt)return it;nt=1;var t=At(),e=ft();return it=function(r,i){var n=r[i];return e(n)?void 0:t(n)}}function Pt(){if(st)return at;st=1;var t=x(),e=dt(),r=vt(),i=TypeError;return at=function(n,a){var s,o;if("string"===a&&e(s=n.toString)&&!r(o=t(s,n)))return o;if(e(s=n.valueOf)&&!r(o=t(s,n)))return o;if("string"!==a&&e(s=n.toString)&&!r(o=t(s,n)))return o;throw new i("Can't convert object to primitive value")}}var Et,Nt,Mt,Rt,_t,Vt,It,kt,Lt,Dt,jt,Bt,zt,Ut,Ft,Ht,Xt,Yt,Wt,qt,$t,Gt,Qt,Zt,Kt={exports:{}};function Jt(){return Nt?Et:(Nt=1,Et=!1)}function te(){if(Rt)return Mt;Rt=1;var t=s(),e=Object.defineProperty;return Mt=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch(e){t[r]=i}return i}}function ee(){if(_t)return Kt.exports;_t=1;var t=Jt(),e=s(),r=te(),i="__core-js_shared__",n=Kt.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.41.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kt.exports}function re(){if(It)return Vt;It=1;var t=ee();return Vt=function(e,r){return t[e]||(t[e]=r||{})}}function ie(){if(Lt)return kt;Lt=1;var t=gt(),e=Object;return kt=function(r){return e(t(r))}}function ne(){if(jt)return Dt;jt=1;var t=ht(),e=ie(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,i){return r(e(t),i)}}function ae(){if(zt)return Bt;zt=1;var t=ht(),e=0,r=Math.random(),i=t(1..toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++e+r,36)}}function se(){if(Ft)return Ut;Ft=1;var t=s(),e=re(),r=ne(),i=ae(),n=wt(),a=St(),o=t.Symbol,u=e("wks"),h=a?o.for||o:o&&o.withoutSetter||i;return Ut=function(t){return r(u,t)||(u[t]=n&&r(o,t)?o[t]:h("Symbol."+t)),u[t]}}function oe(){if(Wt)return Yt;Wt=1;var t=function(){if(Xt)return Ht;Xt=1;var t=x(),e=vt(),r=Tt(),i=Ct(),n=Pt(),a=se(),s=TypeError,o=a("toPrimitive");return Ht=function(a,u){if(!e(a)||r(a))return a;var h,c=i(a,o);if(c){if(void 0===u&&(u="default"),h=t(c,a,u),!e(h)||r(h))return h;throw new s("Can't convert object to primitive value")}return void 0===u&&(u="number"),n(a,u)}}(),e=Tt();return Yt=function(r){var i=t(r,"string");return e(i)?i:i+""}}function ue(){if($t)return qt;$t=1;var t=s(),e=vt(),r=t.document,i=e(r)&&e(r.createElement);return qt=function(t){return i?r.createElement(t):{}}}function he(){if(Qt)return Gt;Qt=1;var t=y(),e=v(),r=ue();return Gt=!t&&!e((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function ce(){if(Zt)return d;Zt=1;var t=y(),e=x(),r=function(){if(b)return ot;b=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return ot.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,ot}(),i=ut(),n=pt(),a=oe(),s=ne(),o=he(),u=Object.getOwnPropertyDescriptor;return d.f=t?u:function(t,h){if(t=n(t),h=a(h),o)try{return u(t,h)}catch(t){}if(s(t,h))return i(!e(r.f,t,h),t[h])},d}var le,fe,ge,pe,de,ve,ye,me={};function xe(){if(fe)return le;fe=1;var t=y(),e=v();return le=t&&e((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function be(){if(pe)return ge;pe=1;var t=vt(),e=String,r=TypeError;return ge=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")}}function we(){if(de)return me;de=1;var t=y(),e=he(),r=xe(),i=be(),n=oe(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",c="writable";return me.f=t?r?function(t,e,r){if(i(t),e=n(e),i(r),"function"==typeof t&&"prototype"===e&&"value"in r&&c in r&&!r[c]){var a=o(t,e);a&&a[c]&&(t[e]=r.value,r={configurable:h in r?r[h]:a[h],enumerable:u in r?r[u]:a[u],writable:!1})}return s(t,e,r)}:s:function(t,r,o){if(i(t),r=n(r),i(o),e)try{return s(t,r,o)}catch(t){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(t[r]=o.value),t},me}function Se(){if(ye)return ve;ye=1;var t=y(),e=we(),r=ut();return ve=t?function(t,i,n){return e.f(t,i,r(1,n))}:function(t,e,r){return t[e]=r,t}}var Te,Oe,Ae,Ce,Pe,Ee,Ne,Me,Re,_e,Ve,Ie,ke,Le,De,je={exports:{}};function Be(){if(Oe)return Te;Oe=1;var t=y(),e=ne(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),a=n&&"something"===function(){}.name,s=n&&(!t||t&&i(r,"name").configurable);return Te={EXISTS:n,PROPER:a,CONFIGURABLE:s}}function ze(){if(Ce)return Ae;Ce=1;var t=ht(),e=dt(),r=ee(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return i(t)}),Ae=r.inspectSource}function Ue(){if(Me)return Ne;Me=1;var t=re(),e=ae(),r=t("keys");return Ne=function(t){return r[t]||(r[t]=e(t))}}function Fe(){return _e?Re:(_e=1,Re={})}function He(){if(Ie)return Ve;Ie=1;var t,e,r,i=function(){if(Ee)return Pe;Ee=1;var t=s(),e=dt(),r=t.WeakMap;return Pe=e(r)&&/native code/.test(String(r))}(),n=s(),a=vt(),o=Se(),u=ne(),h=ee(),c=Ue(),l=Fe(),f="Object already initialized",g=n.TypeError,p=n.WeakMap;if(i||h.state){var d=h.state||(h.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,e){if(d.has(t))throw new g(f);return e.facade=t,d.set(t,e),e},e=function(t){return d.get(t)||{}},r=function(t){return d.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(u(t,v))throw new g(f);return e.facade=t,o(t,v,e),e},e=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}return Ve={set:t,get:e,has:r,enforce:function(i){return r(i)?e(i):t(i,{})},getterFor:function(t){return function(r){var i;if(!a(r)||(i=e(r)).type!==t)throw new g("Incompatible receiver, "+t+" required");return i}}}}function Xe(){if(ke)return je.exports;ke=1;var t=ht(),e=v(),r=dt(),i=ne(),n=y(),a=Be().CONFIGURABLE,s=ze(),o=He(),u=o.enforce,h=o.get,c=String,l=Object.defineProperty,f=t("".slice),g=t("".replace),p=t([].join),d=n&&!e((function(){return 8!==l((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=je.exports=function(t,e,r){"Symbol("===f(c(e),0,7)&&(e="["+g(c(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(n?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&i(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?n&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=u(t);return i(s,"source")||(s.source=p(m,"string"==typeof e?e:"")),t};return Function.prototype.toString=x((function(){return r(this)&&h(this).source||s(this)}),"toString"),je.exports}function Ye(){if(De)return Le;De=1;var t=dt(),e=we(),r=Xe(),i=te();return Le=function(n,a,s,o){o||(o={});var u=o.enumerable,h=void 0!==o.name?o.name:a;if(t(s)&&r(s,h,o),o.global)u?n[a]=s:i(a,s);else{try{o.unsafe?n[a]&&(u=!0):delete n[a]}catch(t){}u?n[a]=s:e.f(n,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return n},Le}var We,qe,$e,Ge,Qe,Ze,Ke,Je,tr,er,rr,ir,nr,ar,sr,or,ur,hr={};function cr(){if(Ge)return $e;Ge=1;var t=function(){if(qe)return We;qe=1;var t=Math.ceil,e=Math.floor;return We=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)},We}();return $e=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function lr(){if(Ze)return Qe;Ze=1;var t=cr(),e=Math.max,r=Math.min;return Qe=function(i,n){var a=t(i);return a<0?e(a+n,0):r(a,n)},Qe}function fr(){if(Je)return Ke;Je=1;var t=cr(),e=Math.min;return Ke=function(r){var i=t(r);return i>0?e(i,9007199254740991):0}}function gr(){if(er)return tr;er=1;var t=fr();return tr=function(e){return t(e.length)}}function pr(){if(ir)return rr;ir=1;var t=pt(),e=lr(),r=gr(),i=function(i){return function(n,a,s){var o=t(n),u=r(o);if(0===u)return!i&&-1;var h,c=e(s,u);if(i&&a!=a){for(;u>c;)if((h=o[c++])!=h)return!0}else for(;u>c;c++)if((i||c in o)&&o[c]===a)return i||c||0;return!i&&-1}};return rr={includes:i(!0),indexOf:i(!1)}}function dr(){if(ar)return nr;ar=1;var t=ht(),e=ne(),r=pt(),i=pr().indexOf,n=Fe(),a=t([].push);return nr=function(t,s){var o,u=r(t),h=0,c=[];for(o in u)!e(n,o)&&e(u,o)&&a(c,o);for(;s.length>h;)e(u,o=s[h++])&&(~i(c,o)||a(c,o));return c},nr}function vr(){return or?sr:(or=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var yr,mr,xr,br,wr,Sr,Tr,Or,Ar,Cr,Pr,Er,Nr,Mr,Rr,_r,Vr,Ir,kr,Lr,Dr,jr,Br,zr,Ur,Fr,Hr,Xr,Yr,Wr,qr,$r,Gr,Qr,Zr,Kr,Jr,ti,ei,ri,ii,ni,ai,si,oi,ui,hi,ci,li,fi,gi,pi,di,vi,yi,mi,xi,bi,wi,Si,Ti,Oi,Ai,Ci,Pi,Ei,Ni,Mi,Ri,_i,Vi,Ii,ki,Li={};function Di(){if(xr)return mr;xr=1;var t=yt(),e=ht(),r=function(){if(ur)return hr;ur=1;var t=dr(),e=vr().concat("length","prototype");return hr.f=Object.getOwnPropertyNames||function(r){return t(r,e)},hr}(),i=(yr||(yr=1,Li.f=Object.getOwnPropertySymbols),Li),n=be(),a=e([].concat);return mr=t("Reflect","ownKeys")||function(t){var e=r.f(n(t)),s=i.f;return s?a(e,s(t)):e}}function ji(){if(wr)return br;wr=1;var t=ne(),e=Di(),r=ce(),i=we();return br=function(n,a,s){for(var o=e(a),u=i.f,h=r.f,c=0;c<o.length;c++){var l=o[c];t(n,l)||s&&t(s,l)||u(n,l,h(a,l))}},br}function Bi(){if(Tr)return Sr;Tr=1;var t=v(),e=dt(),r=/#|\.prototype\./,i=function(r,i){var u=a[n(r)];return u===o||u!==s&&(e(i)?t(i):!!i)},n=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",o=i.POLYFILL="P";return Sr=i}function zi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=ji(),o=Bi();return Or=function(s,u){var h,c,l,f,g,p=s.target,d=s.global,v=s.stat;if(h=d?t:v?t[p]||n(p,{}):t[p]&&t[p].prototype)for(c in u){if(f=u[c],l=s.dontCallGetSet?(g=e(h,c))&&g.value:h[c],!o(d?c:p+(v?".":"#")+c,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&r(f,"sham",!0),i(h,c,f,s)}}}function Ui(){if(Pr)return Cr;Pr=1;var t=s(),e=xt(),r=ct(),i=function(t){return e.slice(0,t.length)===t};return Cr=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Fi(){if(Nr)return Er;Nr=1;var t=Ui();return Er="NODE"===t}function Hi(){if(Vr)return _r;Vr=1;var t=vt();return _r=function(e){return t(e)||null===e}}function Xi(){if(kr)return Ir;kr=1;var t=Hi(),e=String,r=TypeError;return Ir=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function Yi(){if(Dr)return Lr;Dr=1;var t=function(){if(Rr)return Mr;Rr=1;var t=ht(),e=At();return Mr=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=Xi();return Lr=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,s={};try{(n=t(Object.prototype,"__proto__","set"))(s,[]),a=s instanceof Array}catch(t){}return function(t,s){return r(t),i(s),e(t)?(a?n(t,s):t.__proto__=s,t):t}}():void 0),Lr}function Wi(){if(Br)return jr;Br=1;var t=we().f,e=ne(),r=se()("toStringTag");return jr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function qi(){if(Ur)return zr;Ur=1;var t=Xe(),e=we();return zr=function(r,i,n){return n.get&&t(n.get,i,{getter:!0}),n.set&&t(n.set,i,{setter:!0}),e.f(r,i,n)}}function $i(){if(Hr)return Fr;Hr=1;var t=yt(),e=qi(),r=se(),i=y(),n=r("species");return Fr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Gi(){if(Yr)return Xr;Yr=1;var t=mt(),e=TypeError;return Xr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Qi(){if(Gr)return $r;Gr=1;var t=function(){if(qr)return Wr;qr=1;var t={};return t[se()("toStringTag")]="z",Wr="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return $r=t?r:function(t){var s,o,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(s=n(t),i))?o:a?r(s):"Object"===(u=r(s))&&e(s.callee)?"Arguments":u},$r}function Zi(){if(Zr)return Qr;Zr=1;var t=ht(),e=v(),r=dt(),i=Qi(),n=yt(),a=ze(),s=function(){},o=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,h=t(u.exec),c=!u.test(s),l=function(t){if(!r(t))return!1;try{return o(s,[],t),!0}catch(t){return!1}},f=function(t){if(!r(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!h(u,a(t))}catch(t){return!0}};return f.sham=!0,Qr=!o||e((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?f:l}function Ki(){if(Jr)return Kr;Jr=1;var t=Zi(),e=Ot(),r=TypeError;return Kr=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function Ji(){if(ei)return ti;ei=1;var t=be(),e=Ki(),r=ft(),i=se()("species");return ti=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ti}function tn(){if(ii)return ri;ii=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ri="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ri}function en(){if(ai)return ni;ai=1;var t=ct(),e=ht();return ni=function(r){if("Function"===t(r))return e(r)}}function rn(){if(oi)return si;oi=1;var t=en(),e=At(),r=m(),i=t(t.bind);return si=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},si}function nn(){if(hi)return ui;hi=1;var t=yt();return ui=t("document","documentElement")}function an(){if(li)return ci;li=1;var t=ht();return ci=t([].slice)}function sn(){if(gi)return fi;gi=1;var t=TypeError;return fi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function on(){if(di)return pi;di=1;var t=xt();return pi=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function un(){if(yi)return vi;yi=1;var t,e,r,i,n=s(),a=tn(),o=rn(),u=dt(),h=ne(),c=v(),l=nn(),f=an(),g=ue(),p=sn(),d=on(),y=Fi(),m=n.setImmediate,x=n.clearImmediate,b=n.process,w=n.Dispatch,S=n.Function,T=n.MessageChannel,O=n.String,A=0,C={},P="onreadystatechange";c((function(){t=n.location}));var E=function(t){if(h(C,t)){var e=C[t];delete C[t],e()}},N=function(t){return function(){E(t)}},M=function(t){E(t.data)},R=function(e){n.postMessage(O(e),t.protocol+"//"+t.host)};return m&&x||(m=function(t){p(arguments.length,1);var r=u(t)?t:S(t),i=f(arguments,1);return C[++A]=function(){a(r,void 0,i)},e(A),A},x=function(t){delete C[t]},y?e=function(t){b.nextTick(N(t))}:w&&w.now?e=function(t){w.now(N(t))}:T&&!d?(i=(r=new T).port2,r.port1.onmessage=M,e=o(i.postMessage,i)):n.addEventListener&&u(n.postMessage)&&!n.importScripts&&t&&"file:"!==t.protocol&&!c(R)?(e=R,n.addEventListener("message",M,!1)):e=P in g("script")?function(t){l.appendChild(g("script"))[P]=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(N(t),0)}),vi={set:m,clear:x}}function hn(){if(xi)return mi;xi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return mi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function cn(){if(wi)return bi;wi=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},bi=t}function ln(){if(Pi)return Ci;Pi=1;var t,e,r,i,n,a=s(),o=hn(),u=rn(),h=un().set,c=cn(),l=on(),f=function(){if(Ti)return Si;Ti=1;var t=xt();return Si=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/web0s(?!.*chrome)/i.test(t)}(),p=Fi(),d=a.MutationObserver||a.WebKitMutationObserver,v=a.document,y=a.process,m=a.Promise,x=o("queueMicrotask");if(!x){var b=new c,w=function(){var e,r;for(p&&(e=y.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||g||!d||!v?!f&&m&&m.resolve?((i=m.resolve(void 0)).constructor=m,n=u(i.then,i),t=function(){n(w)}):p?t=function(){y.nextTick(w)}:(h=u(h,a),t=function(){h(w)}):(e=!0,r=v.createTextNode(""),new d(w).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),x=function(e){b.head||t(),b.add(e)}}return Ci=x}function fn(){return Ni||(Ni=1,Ei=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Ei}function gn(){return Ri?Mi:(Ri=1,Mi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function pn(){if(Vi)return _i;Vi=1;var t=s();return _i=t.Promise}function dn(){if(ki)return Ii;ki=1;var t=s(),e=pn(),r=dt(),i=Bi(),n=ze(),a=se(),o=Ui(),u=Jt(),h=bt(),c=e&&e.prototype,l=a("species"),f=!1,g=r(t.PromiseRejectionEvent),p=i("Promise",(function(){var t=n(e),r=t!==String(e);if(!r&&66===h)return!0;if(u&&(!c.catch||!c.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new e((function(t){t(1)})),a=function(t){t((function(){}),(function(){}))};if((i.constructor={})[l]=a,!(f=i.then((function(){}))instanceof a))return!0}return!(r||"BROWSER"!==o&&"DENO"!==o||g)}));return Ii={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var vn,yn,mn={};function xn(){if(vn)return mn;vn=1;var t=At(),e=TypeError,r=function(r){var i,n;this.promise=new r((function(t,r){if(void 0!==i||void 0!==n)throw new e("Bad Promise constructor");i=t,n=r})),this.resolve=t(i),this.reject=t(n)};return mn.f=function(t){return new r(t)},mn}var bn,wn,Sn,Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn={};function jn(){return wn?bn:(wn=1,bn={})}function Bn(){if(Tn)return Sn;Tn=1;var t=se(),e=jn(),r=t("iterator"),i=Array.prototype;return Sn=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function zn(){if(An)return On;An=1;var t=Qi(),e=Ct(),r=ft(),i=jn(),n=se()("iterator");return On=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Un(){if(Pn)return Cn;Pn=1;var t=x(),e=At(),r=be(),i=Ot(),n=zn(),a=TypeError;return Cn=function(s,o){var u=arguments.length<2?n(s):o;if(e(u))return r(t(u,s));throw new a(i(s)+" is not iterable")},Cn}function Fn(){if(Nn)return En;Nn=1;var t=x(),e=be(),r=Ct();return En=function(i,n,a){var s,o;e(i);try{if(!(s=r(i,"return"))){if("throw"===n)throw a;return a}s=t(s,i)}catch(t){o=!0,s=t}if("throw"===n)throw a;if(o)throw s;return e(s),a}}function Hn(){if(Rn)return Mn;Rn=1;var t=rn(),e=x(),r=be(),i=Ot(),n=Bn(),a=gr(),s=mt(),o=Un(),u=zn(),h=Fn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Mn=function(g,p,d){var v,y,m,x,b,w,S,T=d&&d.that,O=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_RECORD),C=!(!d||!d.IS_ITERATOR),P=!(!d||!d.INTERRUPTED),E=t(p,T),N=function(t){return v&&h(v,"normal",t),new l(!0,t)},M=function(t){return O?(r(t),P?E(t[0],t[1],N):E(t[0],t[1])):P?E(t,N):E(t)};if(A)v=g.iterator;else if(C)v=g;else{if(!(y=u(g)))throw new c(i(g)+" is not iterable");if(n(y)){for(m=0,x=a(g);x>m;m++)if((b=M(g[m]))&&s(f,b))return b;return new l(!1)}v=o(g,y)}for(w=A?g.next:v.next;!(S=e(w,v)).done;){try{b=M(S.value)}catch(t){h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Mn}function Xn(){if(Vn)return _n;Vn=1;var t=se()("iterator"),e=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){e=!0}};i[t]=function(){return this},Array.from(i,(function(){throw 2}))}catch(t){}return _n=function(r,i){try{if(!i&&!e)return!1}catch(t){return!1}var n=!1;try{var a={};a[t]=function(){return{next:function(){return{done:n=!0}}}},r(a)}catch(t){}return n}}function Yn(){if(kn)return In;kn=1;var t=pn(),e=Xn(),r=dn().CONSTRUCTOR;return In=r||!e((function(e){t.all(e).then(void 0,(function(){}))}))}var Wn,qn={};var $n,Gn={};var Qn,Zn={};var Kn,Jn,ta,ea,ra={};function ia(){if(Jn)return Kn;Jn=1;var t=be(),e=vt(),r=xn();return Kn=function(i,n){if(t(i),e(n)&&n.constructor===i)return n;var a=r.f(i);return(0,a.resolve)(n),a.promise}}function na(t,e,r,i,n,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(i,n)}function aa(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){na(a,i,n,s,o,"next",t)}function o(t){na(a,i,n,s,o,"throw",t)}s(void 0)}))}}ea||(ea=1,function(){if(yn)return a;yn=1;var t,e,r,i=zi(),n=Jt(),o=Fi(),u=s(),h=x(),c=Ye(),l=Yi(),f=Wi(),g=$i(),p=At(),d=dt(),v=vt(),y=Gi(),m=Ji(),b=un().set,w=ln(),S=fn(),T=gn(),O=cn(),A=He(),C=pn(),P=dn(),E=xn(),N="Promise",M=P.CONSTRUCTOR,R=P.REJECTION_EVENT,_=P.SUBCLASSING,V=A.getterFor(N),I=A.set,k=C&&C.prototype,L=C,D=k,j=u.TypeError,B=u.document,z=u.process,U=E.f,F=U,H=!!(B&&B.createEvent&&u.dispatchEvent),X="unhandledrejection",Y=function(t){var e;return!(!v(t)||!d(e=t.then))&&e},W=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?c(new j("Promise-chain cycle")):(i=Y(r))?h(i,r,u,c):u(r)):c(a)}catch(t){l&&!n&&l.exit(),c(t)}},q=function(t,e){t.notified||(t.notified=!0,w((function(){for(var r,i=t.reactions;r=i.get();)W(r,t);t.notified=!1,e&&!t.rejection&&G(t)})))},$=function(t,e,r){var i,n;H?((i=B.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:r},!R&&(n=u["on"+t])?n(i):t===X&&S("Unhandled promise rejection",r)},G=function(t){h(b,u,(function(){var e,r=t.facade,i=t.value;if(Q(t)&&(e=T((function(){o?z.emit("unhandledRejection",i,r):$(X,r,i)})),t.rejection=o||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){h(b,u,(function(){var e=t.facade;o?z.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(i){t(e,i,r)}},J=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var i=Y(e);i?w((function(){var r={done:!1};try{h(i,e,K(tt,r,t),K(J,r,t))}catch(e){J(r,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(D=(L=function(e){y(this,D),p(e),h(t,this);var r=V(this);try{e(K(tt,r),K(J,r))}catch(t){J(r,t)}}).prototype,(t=function(t){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=c(D,"then",(function(t,e){var r=V(this),i=U(m(this,L));return r.parent=!0,i.ok=!d(t)||t,i.fail=d(e)&&e,i.domain=o?z.domain:void 0,0===r.state?r.reactions.add(i):w((function(){W(i,r)})),i.promise})),e=function(){var e=new t,r=V(e);this.promise=e,this.resolve=K(tt,r),this.reject=K(J,r)},E.f=U=function(t){return t===L||void 0===t?new e(t):F(t)},!n&&d(C)&&k!==Object.prototype)){r=k.then,_||c(k,"then",(function(t,e){var i=this;return new L((function(t,e){h(r,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete k.constructor}catch(t){}l&&l(k,D)}i({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:L}),f(L,N,!1,!0),g(N)}(),function(){if(Ln)return Dn;Ln=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{all:function(t){var s=this,o=i.f(s),u=o.resolve,h=o.reject,c=n((function(){var i=r(s.resolve),n=[],o=0,c=1;a(t,(function(t){var r=o++,a=!1;c++,e(i,s,t).then((function(t){a||(a=!0,n[r]=t,--c||u(n))}),h)})),--c||u(n)}));return c.error&&h(c.value),o.promise}})}(),function(){if(Wn)return qn;Wn=1;var t=zi(),e=Jt(),r=dn().CONSTRUCTOR,i=pn(),n=yt(),a=dt(),s=Ye(),o=i&&i.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&a(i)){var u=n("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}}(),function(){if($n)return Gn;$n=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{race:function(t){var s=this,o=i.f(s),u=o.reject,h=n((function(){var i=r(s.resolve);a(t,(function(t){e(i,s,t).then(o.resolve,u)}))}));return h.error&&u(h.value),o.promise}})}(),function(){if(Qn)return Zn;Qn=1;var t=zi(),e=xn();t({target:"Promise",stat:!0,forced:dn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ta)return ra;ta=1;var t=zi(),e=yt(),r=Jt(),i=pn(),n=dn().CONSTRUCTOR,a=ia(),s=e("Promise"),o=r&&!n;t({target:"Promise",stat:!0,forced:r||n},{resolve:function(t){return a(o&&this===s?i:this,t)}})}());var sa,oa,ua,ha,ca,la,fa={},ga={};function pa(){if(oa)return sa;oa=1;var t=Qi(),e=String;return sa=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function da(){if(ha)return ua;ha=1;var t=be();return ua=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function va(){if(la)return ca;la=1;var t=v(),e=s().RegExp,r=t((function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),i=r||t((function(){return!e("a","y").sticky})),n=r||t((function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));return ca={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ya,ma,xa,ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja={};function Ba(){if(ma)return ya;ma=1;var t=dr(),e=vr();return ya=Object.keys||function(r){return t(r,e)},ya}function za(){if(wa)return ba;wa=1;var t,e=be(),r=function(){if(xa)return ja;xa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Ba();return ja.f=t&&!e?Object.defineProperties:function(t,e){i(t);for(var s,o=n(e),u=a(e),h=u.length,c=0;h>c;)r.f(t,s=u[c++],o[s]);return t},ja}(),i=vr(),n=Fe(),a=nn(),s=ue(),o=Ue(),u="prototype",h="script",c=o("IE_PROTO"),l=function(){},f=function(t){return"<"+h+">"+t+"</"+h+">"},g=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,r,n;p="undefined"!=typeof document?document.domain&&t?g(t):(r=s("iframe"),n="java"+h+":",r.style.display="none",a.appendChild(r),r.src=String(n),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):g(t);for(var o=i.length;o--;)delete p[u][i[o]];return p()};return n[c]=!0,ba=Object.create||function(t,i){var n;return null!==t?(l[u]=e(t),n=new l,l[u]=null,n[c]=t):n=p(),void 0===i?n:r.f(n,i)},ba}function Ua(){if(Pa)return Ca;Pa=1;var t,e,r=x(),i=ht(),n=pa(),a=da(),o=va(),u=re(),h=za(),c=He().get,l=function(){if(Ta)return Sa;Ta=1;var t=v(),e=s().RegExp;return Sa=t((function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))}(),f=function(){if(Aa)return Oa;Aa=1;var t=v(),e=s().RegExp;return Oa=t((function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))}(),g=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,y=i("".charAt),m=i("".indexOf),b=i("".replace),w=i("".slice),S=(e=/b*/g,r(p,t=/a/,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),T=o.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(S||O||T||l||f)&&(d=function(t){var e,i,s,o,u,l,f,v=this,x=c(v),A=n(t),C=x.raw;if(C)return C.lastIndex=v.lastIndex,e=r(d,C,A),v.lastIndex=C.lastIndex,e;var P=x.groups,E=T&&v.sticky,N=r(a,v),M=v.source,R=0,_=A;if(E&&(N=b(N,"y",""),-1===m(N,"g")&&(N+="g"),_=w(A,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==y(A,v.lastIndex-1))&&(M="(?: "+M+")",_=" "+_,R++),i=new RegExp("^(?:"+M+")",N)),O&&(i=new RegExp("^"+M+"$(?!\\s)",N)),S&&(s=v.lastIndex),o=r(p,E?i:v,_),E?o?(o.input=w(o.input,R),o[0]=w(o[0],R),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:s),O&&o&&o.length>1&&r(g,o[0],i,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&P)for(o.groups=l=h(null),u=0;u<P.length;u++)l[(f=P[u])[0]]=o[f[1]];return o}),Ca=d}function Fa(){if(Ma)return Na;Ma=1,function(){if(Ea)return ga;Ea=1;var t=zi(),e=Ua();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=Ua(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return Na=function(u,h,c,l){var f=n(u),g=!i((function(){var t={};return t[f]=function(){return 7},7!==""[u](t)})),p=g&&!i((function(){var t=!1,e=/a/;return"split"===u&&((e={}).constructor={},e.constructor[s]=function(){return e},e.flags="",e[f]=/./[f]),e.exec=function(){return t=!0,null},e[f](""),!t}));if(!g||!p||c){var d=/./[f],v=h(f,""[u],(function(e,i,n,a,s){var u=i.exec;return u===r||u===o.exec?g&&!s?{done:!0,value:t(d,i,n,a)}:{done:!0,value:t(e,n,i,a)}:{done:!1}}));e(String.prototype,u,v[0]),e(o,f,v[1])}l&&a(o[f],"sham",!0)},Na}function Ha(){if(Ia)return Va;Ia=1;var t=function(){if(_a)return Ra;_a=1;var t=ht(),e=cr(),r=pa(),i=gt(),n=t("".charAt),a=t("".charCodeAt),s=t("".slice),o=function(t){return function(o,u){var h,c,l=r(i(o)),f=e(u),g=l.length;return f<0||f>=g?t?"":void 0:(h=a(l,f))<55296||h>56319||f+1===g||(c=a(l,f+1))<56320||c>57343?t?n(l,f):h:t?s(l,f,f+2):c-56320+(h-55296<<10)+65536}};return Ra={codeAt:o(!1),charAt:o(!0)}}().charAt;return Va=function(e,r,i){return r+(i?t(e,r).length:1)},Va}function Xa(){if(La)return ka;La=1;var t=x(),e=be(),r=dt(),i=ct(),n=Ua(),a=TypeError;return ka=function(s,o){var u=s.exec;if(r(u)){var h=t(u,s,o);return null!==h&&e(h),h}if("RegExp"===i(s))return t(n,s,o);throw new a("RegExp#exec called on incompatible receiver")}}!function(){if(Da)return fa;Da=1;var t=x(),e=Fa(),r=be(),i=ft(),n=fr(),a=pa(),s=gt(),o=Ct(),u=Ha(),h=Xa();e("match",(function(e,c,l){return[function(r){var n=s(this),u=i(r)?void 0:o(r,e);return u?t(u,r,n):new RegExp(r)[e](a(n))},function(t){var e=r(this),i=a(t),s=l(c,e,i);if(s.done)return s.value;if(!e.global)return h(e,i);var o=e.unicode;e.lastIndex=0;for(var f,g=[],p=0;null!==(f=h(e,i));){var d=a(f[0]);g[p]=d,""===d&&(e.lastIndex=u(i,n(e.lastIndex),o)),p++}return 0===p?null:g}]}))}();var Ya,Wa,qa,$a={};function Ga(){if(Wa)return Ya;Wa=1;var t=ht(),e=ie(),r=Math.floor,i=t("".charAt),n=t("".replace),a=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return Ya=function(t,u,h,c,l,f){var g=h+t.length,p=c.length,d=o;return void 0!==l&&(l=e(l),d=s),n(f,d,(function(e,n){var s;switch(i(n,0)){case"$":return"$";case"&":return t;case"`":return a(u,0,h);case"'":return a(u,g);case"<":s=l[a(n,1,-1)];break;default:var o=+n;if(0===o)return e;if(o>p){var f=r(o/10);return 0===f?e:f<=p?void 0===c[f-1]?i(n,1):c[f-1]+i(n,1):e}s=c[o-1]}return void 0===s?"":s}))},Ya}!function(){if(qa)return $a;qa=1;var t=tn(),e=x(),r=ht(),i=Fa(),n=v(),a=be(),s=dt(),o=ft(),u=cr(),h=fr(),c=pa(),l=gt(),f=Ha(),g=Ct(),p=Ga(),d=Xa(),y=se()("replace"),m=Math.max,b=Math.min,w=r([].concat),S=r([].push),T=r("".indexOf),O=r("".slice),A="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");i("replace",(function(r,i,n){var v=C?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?void 0:g(t,y);return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e);if("string"==typeof r&&-1===T(r,v)&&-1===T(r,"$<")){var g=n(i,o,l,r);if(g.done)return g.value}var y=s(r);y||(r=c(r));var x,A=o.global;A&&(x=o.unicode,o.lastIndex=0);for(var C,P=[];null!==(C=d(o,l))&&(S(P,C),A);){""===c(C[0])&&(o.lastIndex=f(l,h(o.lastIndex),x))}for(var E,N="",M=0,R=0;R<P.length;R++){for(var _,V=c((C=P[R])[0]),I=m(b(u(C.index),l.length),0),k=[],L=1;L<C.length;L++)S(k,void 0===(E=C[L])?E:String(E));var D=C.groups;if(y){var j=w([V],k,I,l);void 0!==D&&S(j,D),_=c(t(r,void 0,j))}else _=p(V,l,I,k,D,r);I>=M&&(N+=O(l,M,I)+_,M=I+V.length)}return N+O(l,M)}]}),!!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!A||C)}();var Qa,Za,Ka,Ja,ts,es,rs,is,ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs={};function bs(){if(Ja)return Ka;Ja=1;var t=function(){if(Za)return Qa;Za=1;var t=vt(),e=ct(),r=se()("match");return Qa=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return Ka=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function ws(){if(es)return ts;es=1;var t=se()("match");return ts=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ss(){if(ns)return is;ns=1;var t=se(),e=za(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),is=function(t){n[i][t]=!0}}function Ts(){if(us)return os;us=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ss)return as;ss=1;var t=v();return as=!t((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}(),a=i("IE_PROTO"),s=Object,o=s.prototype;return os=n?s.getPrototypeOf:function(i){var n=r(i);if(t(n,a))return n[a];var u=n.constructor;return e(u)&&n instanceof u?u.prototype:n instanceof s?o:null},os}function Os(){if(cs)return hs;cs=1;var t,e,r,i=v(),n=dt(),a=vt(),s=za(),o=Ts(),u=Ye(),h=se(),c=Jt(),l=h("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(e=o(o(r)))!==Object.prototype&&(t=e):f=!0),!a(t)||i((function(){var e={};return t[l].call(e)!==e}))?t={}:c&&(t=s(t)),n(t[l])||u(t,l,(function(){return this})),hs={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function As(){if(ps)return gs;ps=1;var t=zi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(fs)return ls;fs=1;var t=Os().IteratorPrototype,e=za(),r=ut(),i=Wi(),n=jn(),a=function(){return this};return ls=function(s,o,u,h){var c=o+" Iterator";return s.prototype=e(t,{next:r(+!h,u)}),i(s,c,!1,!0),n[c]=a,s}}(),s=Ts(),o=Yi(),u=Wi(),h=Se(),c=Ye(),l=se(),f=jn(),g=Os(),p=i.PROPER,d=i.CONFIGURABLE,v=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",T=function(){return this};return gs=function(i,l,g,x,O,A,C){a(g,l,x);var P,E,N,M=function(t){if(t===O&&k)return k;if(!y&&t&&t in V)return V[t];switch(t){case b:case w:case S:return function(){return new g(this,t)}}return function(){return new g(this)}},R=l+" Iterator",_=!1,V=i.prototype,I=V[m]||V["@@iterator"]||O&&V[O],k=!y&&I||M(O),L="Array"===l&&V.entries||I;if(L&&(P=s(L.call(new i)))!==Object.prototype&&P.next&&(r||s(P)===v||(o?o(P,v):n(P[m])||c(P,m,T)),u(P,R,!0,!0),r&&(f[R]=T)),p&&O===w&&I&&I.name!==w&&(!r&&d?h(V,"name",w):(_=!0,k=function(){return e(I,this)})),O)if(E={values:M(w),keys:A?k:M(b),entries:M(S)},C)for(N in E)(y||_||!(N in V))&&c(V,N,E[N]);else t({target:l,proto:!0,forced:y||_},E);return r&&!C||V[m]===k||c(V,m,k,{name:O}),f[l]=k,E}}function Cs(){return vs?ds:(vs=1,ds=function(t,e){return{value:t,done:e}})}function Ps(){if(ms)return ys;ms=1;var t=pt(),e=Ss(),r=jn(),i=He(),n=we().f,a=As(),s=Cs(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);ys=a(Array,"Array",(function(e,r){c(this,{type:h,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,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)}),"values");var f=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&"values"!==f.name)try{n(f,"name",{value:"values"})}catch(t){}return ys}!function(){if(rs)return xs;rs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),h=Jt(),c=r("".slice),l=Math.min,f=u("startsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"startsWith"),!t||t.writable))&&!f},{startsWith:function(t){var e=a(o(this));s(t);var r=n(l(arguments.length>1?arguments[1]:void 0,e.length)),i=a(t);return c(e,r,r+i.length)===i}})}(),Ps();var Es,Ns,Ms,Rs,_s,Vs={};function Is(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,r);if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}function ks(t,e,r){return(e=Is(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(_s)return Vs;_s=1;var t=s(),e=Ns?Es:(Ns=1,Es={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}),r=function(){if(Rs)return Ms;Rs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Ms=e===Object.prototype?void 0:e}(),i=Ps(),n=Se(),a=Wi(),o=se()("iterator"),u=i.values,h=function(t,r){if(t){if(t[o]!==u)try{n(t,o,u)}catch(e){t[o]=u}if(a(t,r,!0),e[r])for(var s in i)if(t[s]!==i[s])try{n(t,s,i[s])}catch(e){t[s]=i[s]}}};for(var c in e)h(t[c]&&t[c].prototype,c);h(r,"DOMTokenList")}();var Ls,Ds,js,Bs,zs,Us={};function Fs(){if(Bs)return js;Bs=1;var t=v();return js=function(e,r){var i=[][e];return!!i&&t((function(){i.call(null,r||function(){return 1},1)}))}}!function(){if(zs)return Us;zs=1;var t=zi(),e=function(){if(Ds)return Ls;Ds=1;var t=At(),e=ie(),r=lt(),i=gr(),n=TypeError,a="Reduce of empty array with no initial value",s=function(s){return function(o,u,h,c){var l=e(o),f=r(l),g=i(l);if(t(u),0===g&&h<2)throw new n(a);var p=s?g-1:0,d=s?-1:1;if(h<2)for(;;){if(p in f){c=f[p],p+=d;break}if(p+=d,s?p<0:g<=p)throw new n(a)}for(;s?p>=0:g>p;p+=d)p in f&&(c=u(c,f[p],p,l));return c}};return Ls={left:s(!1),right:s(!0)}}().left,r=Fs(),i=bt();t({target:"Array",proto:!0,forced:!Fi()&&i>79&&i<83||!r("reduce")},{reduce:function(t){var r=arguments.length;return e(this,t,r,r>1?arguments[1]:void 0)}})}();var Hs,Xs={};!function(){if(Hs)return Xs;Hs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),h=Jt(),c=r("".slice),l=Math.min,f=u("endsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"endsWith"),!t||t.writable))&&!f},{endsWith:function(t){var e=a(o(this));s(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,u=void 0===r?i:l(n(r),i),h=a(t);return c(e,u-h.length,u)===h}})}();var Ys,Ws={};!function(){if(Ys)return Ws;Ys=1;var t=x(),e=ht(),r=Fa(),i=be(),n=ft(),a=gt(),s=Ji(),o=Ha(),u=fr(),h=pa(),c=Ct(),l=Xa(),f=va(),g=v(),p=f.UNSUPPORTED_Y,d=Math.min,y=e([].push),m=e("".slice),b=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",(function(e,r,f){var g="0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t(r,this,e,i)}:r;return[function(r,i){var s=a(this),o=n(r)?void 0:c(r,e);return o?t(o,r,s,i):t(g,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!w){var c=f(g,n,a,e,g!==r);if(c.done)return c.value}var v=s(n,RegExp),x=n.unicode,b=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(p?"g":"y"),S=new v(p?"^(?:"+n.source+")":n,b),T=void 0===e?4294967295:e>>>0;if(0===T)return[];if(0===a.length)return null===l(S,a)?[a]:[];for(var O=0,A=0,C=[];A<a.length;){S.lastIndex=p?0:A;var P,E=l(S,p?m(a,A):a);if(null===E||(P=d(u(S.lastIndex+(p?A:0)),a.length))===O)A=o(a,A,x);else{if(y(C,m(a,O,A)),C.length===T)return C;for(var N=1;N<=E.length-1;N++)if(y(C,E[N]),C.length===T)return C;A=O=P}}return y(C,m(a,O)),C}]}),w||!b,p)}();var qs,$s,Gs={exports:{}},Qs={exports:{}},Zs=Qs.exports;var Ks,Js,to,eo,ro,io,no,ao,so,oo=function(){if($s)return Gs.exports;$s=1;for(var e=(qs||(qs=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?Qs.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Qs.exports=function(){return(t()-n)/1e6},e=process.hrtime,i=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),a=1e9*process.uptime(),n=i-a):Date.now?(Qs.exports=function(){return Date.now()-r},r=Date.now()):(Qs.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(Zs)),Qs.exports),r="undefined"==typeof window?t:window,i=["moz","webkit"],n="AnimationFrame",a=r["request"+n],s=r["cancel"+n]||r["cancelRequest"+n],o=0;!a&&o<i.length;o++)a=r[i[o]+"Request"+n],s=r[i[o]+"Cancel"+n]||r[i[o]+"CancelRequest"+n];if(!a||!s){var u=0,h=0,c=[],l=1e3/60;a=function(t){if(0===c.length){var r=e(),i=Math.max(0,l-(r-u));u=i+r,setTimeout((function(){var t=c.slice(0);c.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return c.push({handle:++h,callback:t,cancelled:!1}),h},s=function(t){for(var e=0;e<c.length;e++)c[e].handle===t&&(c[e].cancelled=!0)}}return Gs.exports=function(t){return a.call(r,t)},Gs.exports.cancel=function(){s.apply(r,arguments)},Gs.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},Gs.exports}(),uo=r(oo),ho={};function co(){return Js?Ks:(Js=1,Ks="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(no)return ho;no=1;var t=zi(),e=function(){if(eo)return to;eo=1;var t=ht(),e=gt(),r=pa(),i=co(),n=t("".replace),a=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),o=function(t){return function(i){var o=r(e(i));return 1&t&&(o=n(o,a,"")),2&t&&(o=n(o,s,"$1")),o}};return to={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(io)return ro;io=1;var t=Be().PROPER,e=v(),r=co();return ro=function(i){return e((function(){return!!r[i]()||"
"!=="
"[i]()||t&&r[i].name!==i}))}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var lo,fo=(so||(so=1,ao=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,a=r[i].process,s=n.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var u=document.createElement("li"),h=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[i]+" -> "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}),ao),go=r(fo),po={};!function(){if(lo)return po;lo=1;var t=zi(),e=en(),r=pr().indexOf,i=Fs(),n=e([].indexOf),a=!!n&&1/n([1],1,-0)<0;t({target:"Array",proto:!0,forced:a||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?n(this,t,e)||0:r(this,t,e)}})}();var vo,yo={};!function(){if(vo)return yo;vo=1;var t=zi(),e=ht(),r=bs(),i=gt(),n=pa(),a=ws(),s=e("".indexOf);t({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(n(i(this)),n(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var mo,xo,bo,wo={};function So(){if(xo)return mo;xo=1;var t=ct();return mo=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(bo)return wo;bo=1;var t=zi(),e=ht(),r=So(),i=e([].reverse),n=[1,2];t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}})}();
|
|
1
|
+
import{c as t,_ as e,g as r}from"./downloadPDF-D2qwT_DJ.js";import"./main.js";var i,n,a={};function s(){if(n)return i;n=1;var e=function(t){return t&&t.Math===Math&&t};return i=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var o,u,h,c,l,f,g,p,d={};function v(){return u?o:(u=1,o=function(t){try{return!!t()}catch(t){return!0}})}function y(){if(c)return h;c=1;var t=v();return h=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function m(){if(f)return l;f=1;var t=v();return l=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function x(){if(p)return g;p=1;var t=m(),e=Function.prototype.call;return g=t?e.bind(e):function(){return e.apply(e,arguments)},g}var b,w,S,T,O,A,C,P,E,N,M,R,_,V,I,k,L,D,j,B,z,U,F,H,X,Y,W,q,$,G,Q,Z,K,J,tt,et,rt,it,nt,at,st,ot={};function ut(){return S?w:(S=1,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function ht(){if(O)return T;O=1;var t=m(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return T=t?i:function(t){return function(){return r.apply(t,arguments)}},T}function ct(){if(C)return A;C=1;var t=ht(),e=t({}.toString),r=t("".slice);return A=function(t){return r(e(t),8,-1)}}function lt(){if(E)return P;E=1;var t=ht(),e=v(),r=ct(),i=Object,n=t("".split);return P=e((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?n(t,""):i(t)}:i}function ft(){return M?N:(M=1,N=function(t){return null==t})}function gt(){if(_)return R;_=1;var t=ft(),e=TypeError;return R=function(r){if(t(r))throw new e("Can't call method on "+r);return r}}function pt(){if(I)return V;I=1;var t=lt(),e=gt();return V=function(r){return t(e(r))}}function dt(){if(L)return k;L=1;var t="object"==typeof document&&document.all;return k=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}function vt(){if(j)return D;j=1;var t=dt();return D=function(e){return"object"==typeof e?null!==e:t(e)}}function yt(){if(z)return B;z=1;var t=s(),e=dt();return B=function(r,i){return arguments.length<2?(n=t[r],e(n)?n:void 0):t[r]&&t[r][i];var n},B}function mt(){if(F)return U;F=1;var t=ht();return U=t({}.isPrototypeOf)}function xt(){if(X)return H;X=1;var t=s().navigator,e=t&&t.userAgent;return H=e?String(e):""}function bt(){if(W)return Y;W=1;var t,e,r=s(),i=xt(),n=r.process,a=r.Deno,o=n&&n.versions||a&&a.version,u=o&&o.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&i&&(!(t=i.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=i.match(/Chrome\/(\d+)/))&&(e=+t[1]),Y=e}function wt(){if($)return q;$=1;var t=bt(),e=v(),r=s().String;return q=!!Object.getOwnPropertySymbols&&!e((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function St(){if(Q)return G;Q=1;var t=wt();return G=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Tt(){if(K)return Z;K=1;var t=yt(),e=dt(),r=mt(),i=St(),n=Object;return Z=i?function(t){return"symbol"==typeof t}:function(i){var a=t("Symbol");return e(a)&&r(a.prototype,n(i))}}function Ot(){if(tt)return J;tt=1;var t=String;return J=function(e){try{return t(e)}catch(t){return"Object"}}}function At(){if(rt)return et;rt=1;var t=dt(),e=Ot(),r=TypeError;return et=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")}}function Ct(){if(nt)return it;nt=1;var t=At(),e=ft();return it=function(r,i){var n=r[i];return e(n)?void 0:t(n)}}function Pt(){if(st)return at;st=1;var t=x(),e=dt(),r=vt(),i=TypeError;return at=function(n,a){var s,o;if("string"===a&&e(s=n.toString)&&!r(o=t(s,n)))return o;if(e(s=n.valueOf)&&!r(o=t(s,n)))return o;if("string"!==a&&e(s=n.toString)&&!r(o=t(s,n)))return o;throw new i("Can't convert object to primitive value")}}var Et,Nt,Mt,Rt,_t,Vt,It,kt,Lt,Dt,jt,Bt,zt,Ut,Ft,Ht,Xt,Yt,Wt,qt,$t,Gt,Qt,Zt,Kt={exports:{}};function Jt(){return Nt?Et:(Nt=1,Et=!1)}function te(){if(Rt)return Mt;Rt=1;var t=s(),e=Object.defineProperty;return Mt=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch(e){t[r]=i}return i}}function ee(){if(_t)return Kt.exports;_t=1;var t=Jt(),e=s(),r=te(),i="__core-js_shared__",n=Kt.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.41.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kt.exports}function re(){if(It)return Vt;It=1;var t=ee();return Vt=function(e,r){return t[e]||(t[e]=r||{})}}function ie(){if(Lt)return kt;Lt=1;var t=gt(),e=Object;return kt=function(r){return e(t(r))}}function ne(){if(jt)return Dt;jt=1;var t=ht(),e=ie(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,i){return r(e(t),i)}}function ae(){if(zt)return Bt;zt=1;var t=ht(),e=0,r=Math.random(),i=t(1..toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++e+r,36)}}function se(){if(Ft)return Ut;Ft=1;var t=s(),e=re(),r=ne(),i=ae(),n=wt(),a=St(),o=t.Symbol,u=e("wks"),h=a?o.for||o:o&&o.withoutSetter||i;return Ut=function(t){return r(u,t)||(u[t]=n&&r(o,t)?o[t]:h("Symbol."+t)),u[t]}}function oe(){if(Wt)return Yt;Wt=1;var t=function(){if(Xt)return Ht;Xt=1;var t=x(),e=vt(),r=Tt(),i=Ct(),n=Pt(),a=se(),s=TypeError,o=a("toPrimitive");return Ht=function(a,u){if(!e(a)||r(a))return a;var h,c=i(a,o);if(c){if(void 0===u&&(u="default"),h=t(c,a,u),!e(h)||r(h))return h;throw new s("Can't convert object to primitive value")}return void 0===u&&(u="number"),n(a,u)}}(),e=Tt();return Yt=function(r){var i=t(r,"string");return e(i)?i:i+""}}function ue(){if($t)return qt;$t=1;var t=s(),e=vt(),r=t.document,i=e(r)&&e(r.createElement);return qt=function(t){return i?r.createElement(t):{}}}function he(){if(Qt)return Gt;Qt=1;var t=y(),e=v(),r=ue();return Gt=!t&&!e((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function ce(){if(Zt)return d;Zt=1;var t=y(),e=x(),r=function(){if(b)return ot;b=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return ot.f=r?function(t){var r=e(this,t);return!!r&&r.enumerable}:t,ot}(),i=ut(),n=pt(),a=oe(),s=ne(),o=he(),u=Object.getOwnPropertyDescriptor;return d.f=t?u:function(t,h){if(t=n(t),h=a(h),o)try{return u(t,h)}catch(t){}if(s(t,h))return i(!e(r.f,t,h),t[h])},d}var le,fe,ge,pe,de,ve,ye,me={};function xe(){if(fe)return le;fe=1;var t=y(),e=v();return le=t&&e((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function be(){if(pe)return ge;pe=1;var t=vt(),e=String,r=TypeError;return ge=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")}}function we(){if(de)return me;de=1;var t=y(),e=he(),r=xe(),i=be(),n=oe(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",c="writable";return me.f=t?r?function(t,e,r){if(i(t),e=n(e),i(r),"function"==typeof t&&"prototype"===e&&"value"in r&&c in r&&!r[c]){var a=o(t,e);a&&a[c]&&(t[e]=r.value,r={configurable:h in r?r[h]:a[h],enumerable:u in r?r[u]:a[u],writable:!1})}return s(t,e,r)}:s:function(t,r,o){if(i(t),r=n(r),i(o),e)try{return s(t,r,o)}catch(t){}if("get"in o||"set"in o)throw new a("Accessors not supported");return"value"in o&&(t[r]=o.value),t},me}function Se(){if(ye)return ve;ye=1;var t=y(),e=we(),r=ut();return ve=t?function(t,i,n){return e.f(t,i,r(1,n))}:function(t,e,r){return t[e]=r,t}}var Te,Oe,Ae,Ce,Pe,Ee,Ne,Me,Re,_e,Ve,Ie,ke,Le,De,je={exports:{}};function Be(){if(Oe)return Te;Oe=1;var t=y(),e=ne(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),a=n&&"something"===function(){}.name,s=n&&(!t||t&&i(r,"name").configurable);return Te={EXISTS:n,PROPER:a,CONFIGURABLE:s}}function ze(){if(Ce)return Ae;Ce=1;var t=ht(),e=dt(),r=ee(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(t){return i(t)}),Ae=r.inspectSource}function Ue(){if(Me)return Ne;Me=1;var t=re(),e=ae(),r=t("keys");return Ne=function(t){return r[t]||(r[t]=e(t))}}function Fe(){return _e?Re:(_e=1,Re={})}function He(){if(Ie)return Ve;Ie=1;var t,e,r,i=function(){if(Ee)return Pe;Ee=1;var t=s(),e=dt(),r=t.WeakMap;return Pe=e(r)&&/native code/.test(String(r))}(),n=s(),a=vt(),o=Se(),u=ne(),h=ee(),c=Ue(),l=Fe(),f="Object already initialized",g=n.TypeError,p=n.WeakMap;if(i||h.state){var d=h.state||(h.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,e){if(d.has(t))throw new g(f);return e.facade=t,d.set(t,e),e},e=function(t){return d.get(t)||{}},r=function(t){return d.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(u(t,v))throw new g(f);return e.facade=t,o(t,v,e),e},e=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}return Ve={set:t,get:e,has:r,enforce:function(i){return r(i)?e(i):t(i,{})},getterFor:function(t){return function(r){var i;if(!a(r)||(i=e(r)).type!==t)throw new g("Incompatible receiver, "+t+" required");return i}}}}function Xe(){if(ke)return je.exports;ke=1;var t=ht(),e=v(),r=dt(),i=ne(),n=y(),a=Be().CONFIGURABLE,s=ze(),o=He(),u=o.enforce,h=o.get,c=String,l=Object.defineProperty,f=t("".slice),g=t("".replace),p=t([].join),d=n&&!e((function(){return 8!==l((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=je.exports=function(t,e,r){"Symbol("===f(c(e),0,7)&&(e="["+g(c(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(n?l(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&i(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?n&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=u(t);return i(s,"source")||(s.source=p(m,"string"==typeof e?e:"")),t};return Function.prototype.toString=x((function(){return r(this)&&h(this).source||s(this)}),"toString"),je.exports}function Ye(){if(De)return Le;De=1;var t=dt(),e=we(),r=Xe(),i=te();return Le=function(n,a,s,o){o||(o={});var u=o.enumerable,h=void 0!==o.name?o.name:a;if(t(s)&&r(s,h,o),o.global)u?n[a]=s:i(a,s);else{try{o.unsafe?n[a]&&(u=!0):delete n[a]}catch(t){}u?n[a]=s:e.f(n,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return n},Le}var We,qe,$e,Ge,Qe,Ze,Ke,Je,tr,er,rr,ir,nr,ar,sr,or,ur,hr={};function cr(){if(Ge)return $e;Ge=1;var t=function(){if(qe)return We;qe=1;var t=Math.ceil,e=Math.floor;return We=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)},We}();return $e=function(e){var r=+e;return r!=r||0===r?0:t(r)}}function lr(){if(Ze)return Qe;Ze=1;var t=cr(),e=Math.max,r=Math.min;return Qe=function(i,n){var a=t(i);return a<0?e(a+n,0):r(a,n)},Qe}function fr(){if(Je)return Ke;Je=1;var t=cr(),e=Math.min;return Ke=function(r){var i=t(r);return i>0?e(i,9007199254740991):0}}function gr(){if(er)return tr;er=1;var t=fr();return tr=function(e){return t(e.length)}}function pr(){if(ir)return rr;ir=1;var t=pt(),e=lr(),r=gr(),i=function(i){return function(n,a,s){var o=t(n),u=r(o);if(0===u)return!i&&-1;var h,c=e(s,u);if(i&&a!=a){for(;u>c;)if((h=o[c++])!=h)return!0}else for(;u>c;c++)if((i||c in o)&&o[c]===a)return i||c||0;return!i&&-1}};return rr={includes:i(!0),indexOf:i(!1)}}function dr(){if(ar)return nr;ar=1;var t=ht(),e=ne(),r=pt(),i=pr().indexOf,n=Fe(),a=t([].push);return nr=function(t,s){var o,u=r(t),h=0,c=[];for(o in u)!e(n,o)&&e(u,o)&&a(c,o);for(;s.length>h;)e(u,o=s[h++])&&(~i(c,o)||a(c,o));return c},nr}function vr(){return or?sr:(or=1,sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var yr,mr,xr,br,wr,Sr,Tr,Or,Ar,Cr,Pr,Er,Nr,Mr,Rr,_r,Vr,Ir,kr,Lr,Dr,jr,Br,zr,Ur,Fr,Hr,Xr,Yr,Wr,qr,$r,Gr,Qr,Zr,Kr,Jr,ti,ei,ri,ii,ni,ai,si,oi,ui,hi,ci,li,fi,gi,pi,di,vi,yi,mi,xi,bi,wi,Si,Ti,Oi,Ai,Ci,Pi,Ei,Ni,Mi,Ri,_i,Vi,Ii,ki,Li={};function Di(){if(xr)return mr;xr=1;var t=yt(),e=ht(),r=function(){if(ur)return hr;ur=1;var t=dr(),e=vr().concat("length","prototype");return hr.f=Object.getOwnPropertyNames||function(r){return t(r,e)},hr}(),i=(yr||(yr=1,Li.f=Object.getOwnPropertySymbols),Li),n=be(),a=e([].concat);return mr=t("Reflect","ownKeys")||function(t){var e=r.f(n(t)),s=i.f;return s?a(e,s(t)):e}}function ji(){if(wr)return br;wr=1;var t=ne(),e=Di(),r=ce(),i=we();return br=function(n,a,s){for(var o=e(a),u=i.f,h=r.f,c=0;c<o.length;c++){var l=o[c];t(n,l)||s&&t(s,l)||u(n,l,h(a,l))}},br}function Bi(){if(Tr)return Sr;Tr=1;var t=v(),e=dt(),r=/#|\.prototype\./,i=function(r,i){var u=a[n(r)];return u===o||u!==s&&(e(i)?t(i):!!i)},n=i.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=i.data={},s=i.NATIVE="N",o=i.POLYFILL="P";return Sr=i}function zi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=ji(),o=Bi();return Or=function(s,u){var h,c,l,f,g,p=s.target,d=s.global,v=s.stat;if(h=d?t:v?t[p]||n(p,{}):t[p]&&t[p].prototype)for(c in u){if(f=u[c],l=s.dontCallGetSet?(g=e(h,c))&&g.value:h[c],!o(d?c:p+(v?".":"#")+c,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&r(f,"sham",!0),i(h,c,f,s)}}}function Ui(){if(Pr)return Cr;Pr=1;var t=s(),e=xt(),r=ct(),i=function(t){return e.slice(0,t.length)===t};return Cr=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Fi(){if(Nr)return Er;Nr=1;var t=Ui();return Er="NODE"===t}function Hi(){if(Vr)return _r;Vr=1;var t=vt();return _r=function(e){return t(e)||null===e}}function Xi(){if(kr)return Ir;kr=1;var t=Hi(),e=String,r=TypeError;return Ir=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function Yi(){if(Dr)return Lr;Dr=1;var t=function(){if(Rr)return Mr;Rr=1;var t=ht(),e=At();return Mr=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=Xi();return Lr=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,s={};try{(n=t(Object.prototype,"__proto__","set"))(s,[]),a=s instanceof Array}catch(t){}return function(t,s){return r(t),i(s),e(t)?(a?n(t,s):t.__proto__=s,t):t}}():void 0),Lr}function Wi(){if(Br)return jr;Br=1;var t=we().f,e=ne(),r=se()("toStringTag");return jr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function qi(){if(Ur)return zr;Ur=1;var t=Xe(),e=we();return zr=function(r,i,n){return n.get&&t(n.get,i,{getter:!0}),n.set&&t(n.set,i,{setter:!0}),e.f(r,i,n)}}function $i(){if(Hr)return Fr;Hr=1;var t=yt(),e=qi(),r=se(),i=y(),n=r("species");return Fr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Gi(){if(Yr)return Xr;Yr=1;var t=mt(),e=TypeError;return Xr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Qi(){if(Gr)return $r;Gr=1;var t=function(){if(qr)return Wr;qr=1;var t={};return t[se()("toStringTag")]="z",Wr="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return $r=t?r:function(t){var s,o,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(s=n(t),i))?o:a?r(s):"Object"===(u=r(s))&&e(s.callee)?"Arguments":u},$r}function Zi(){if(Zr)return Qr;Zr=1;var t=ht(),e=v(),r=dt(),i=Qi(),n=yt(),a=ze(),s=function(){},o=n("Reflect","construct"),u=/^\s*(?:class|function)\b/,h=t(u.exec),c=!u.test(s),l=function(t){if(!r(t))return!1;try{return o(s,[],t),!0}catch(t){return!1}},f=function(t){if(!r(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!h(u,a(t))}catch(t){return!0}};return f.sham=!0,Qr=!o||e((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?f:l}function Ki(){if(Jr)return Kr;Jr=1;var t=Zi(),e=Ot(),r=TypeError;return Kr=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function Ji(){if(ei)return ti;ei=1;var t=be(),e=Ki(),r=ft(),i=se()("species");return ti=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ti}function tn(){if(ii)return ri;ii=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ri="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ri}function en(){if(ai)return ni;ai=1;var t=ct(),e=ht();return ni=function(r){if("Function"===t(r))return e(r)}}function rn(){if(oi)return si;oi=1;var t=en(),e=At(),r=m(),i=t(t.bind);return si=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},si}function nn(){if(hi)return ui;hi=1;var t=yt();return ui=t("document","documentElement")}function an(){if(li)return ci;li=1;var t=ht();return ci=t([].slice)}function sn(){if(gi)return fi;gi=1;var t=TypeError;return fi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function on(){if(di)return pi;di=1;var t=xt();return pi=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function un(){if(yi)return vi;yi=1;var t,e,r,i,n=s(),a=tn(),o=rn(),u=dt(),h=ne(),c=v(),l=nn(),f=an(),g=ue(),p=sn(),d=on(),y=Fi(),m=n.setImmediate,x=n.clearImmediate,b=n.process,w=n.Dispatch,S=n.Function,T=n.MessageChannel,O=n.String,A=0,C={},P="onreadystatechange";c((function(){t=n.location}));var E=function(t){if(h(C,t)){var e=C[t];delete C[t],e()}},N=function(t){return function(){E(t)}},M=function(t){E(t.data)},R=function(e){n.postMessage(O(e),t.protocol+"//"+t.host)};return m&&x||(m=function(t){p(arguments.length,1);var r=u(t)?t:S(t),i=f(arguments,1);return C[++A]=function(){a(r,void 0,i)},e(A),A},x=function(t){delete C[t]},y?e=function(t){b.nextTick(N(t))}:w&&w.now?e=function(t){w.now(N(t))}:T&&!d?(i=(r=new T).port2,r.port1.onmessage=M,e=o(i.postMessage,i)):n.addEventListener&&u(n.postMessage)&&!n.importScripts&&t&&"file:"!==t.protocol&&!c(R)?(e=R,n.addEventListener("message",M,!1)):e=P in g("script")?function(t){l.appendChild(g("script"))[P]=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(N(t),0)}),vi={set:m,clear:x}}function hn(){if(xi)return mi;xi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return mi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function cn(){if(wi)return bi;wi=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},bi=t}function ln(){if(Pi)return Ci;Pi=1;var t,e,r,i,n,a=s(),o=hn(),u=rn(),h=un().set,c=cn(),l=on(),f=function(){if(Ti)return Si;Ti=1;var t=xt();return Si=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/web0s(?!.*chrome)/i.test(t)}(),p=Fi(),d=a.MutationObserver||a.WebKitMutationObserver,v=a.document,y=a.process,m=a.Promise,x=o("queueMicrotask");if(!x){var b=new c,w=function(){var e,r;for(p&&(e=y.domain)&&e.exit();r=b.get();)try{r()}catch(e){throw b.head&&t(),e}e&&e.enter()};l||p||g||!d||!v?!f&&m&&m.resolve?((i=m.resolve(void 0)).constructor=m,n=u(i.then,i),t=function(){n(w)}):p?t=function(){y.nextTick(w)}:(h=u(h,a),t=function(){h(w)}):(e=!0,r=v.createTextNode(""),new d(w).observe(r,{characterData:!0}),t=function(){r.data=e=!e}),x=function(e){b.head||t(),b.add(e)}}return Ci=x}function fn(){return Ni||(Ni=1,Ei=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Ei}function gn(){return Ri?Mi:(Ri=1,Mi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function pn(){if(Vi)return _i;Vi=1;var t=s();return _i=t.Promise}function dn(){if(ki)return Ii;ki=1;var t=s(),e=pn(),r=dt(),i=Bi(),n=ze(),a=se(),o=Ui(),u=Jt(),h=bt(),c=e&&e.prototype,l=a("species"),f=!1,g=r(t.PromiseRejectionEvent),p=i("Promise",(function(){var t=n(e),r=t!==String(e);if(!r&&66===h)return!0;if(u&&(!c.catch||!c.finally))return!0;if(!h||h<51||!/native code/.test(t)){var i=new e((function(t){t(1)})),a=function(t){t((function(){}),(function(){}))};if((i.constructor={})[l]=a,!(f=i.then((function(){}))instanceof a))return!0}return!(r||"BROWSER"!==o&&"DENO"!==o||g)}));return Ii={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var vn,yn,mn={};function xn(){if(vn)return mn;vn=1;var t=At(),e=TypeError,r=function(r){var i,n;this.promise=new r((function(t,r){if(void 0!==i||void 0!==n)throw new e("Bad Promise constructor");i=t,n=r})),this.resolve=t(i),this.reject=t(n)};return mn.f=function(t){return new r(t)},mn}var bn,wn,Sn,Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn={};function jn(){return wn?bn:(wn=1,bn={})}function Bn(){if(Tn)return Sn;Tn=1;var t=se(),e=jn(),r=t("iterator"),i=Array.prototype;return Sn=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function zn(){if(An)return On;An=1;var t=Qi(),e=Ct(),r=ft(),i=jn(),n=se()("iterator");return On=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Un(){if(Pn)return Cn;Pn=1;var t=x(),e=At(),r=be(),i=Ot(),n=zn(),a=TypeError;return Cn=function(s,o){var u=arguments.length<2?n(s):o;if(e(u))return r(t(u,s));throw new a(i(s)+" is not iterable")},Cn}function Fn(){if(Nn)return En;Nn=1;var t=x(),e=be(),r=Ct();return En=function(i,n,a){var s,o;e(i);try{if(!(s=r(i,"return"))){if("throw"===n)throw a;return a}s=t(s,i)}catch(t){o=!0,s=t}if("throw"===n)throw a;if(o)throw s;return e(s),a}}function Hn(){if(Rn)return Mn;Rn=1;var t=rn(),e=x(),r=be(),i=Ot(),n=Bn(),a=gr(),s=mt(),o=Un(),u=zn(),h=Fn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Mn=function(g,p,d){var v,y,m,x,b,w,S,T=d&&d.that,O=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_RECORD),C=!(!d||!d.IS_ITERATOR),P=!(!d||!d.INTERRUPTED),E=t(p,T),N=function(t){return v&&h(v,"normal",t),new l(!0,t)},M=function(t){return O?(r(t),P?E(t[0],t[1],N):E(t[0],t[1])):P?E(t,N):E(t)};if(A)v=g.iterator;else if(C)v=g;else{if(!(y=u(g)))throw new c(i(g)+" is not iterable");if(n(y)){for(m=0,x=a(g);x>m;m++)if((b=M(g[m]))&&s(f,b))return b;return new l(!1)}v=o(g,y)}for(w=A?g.next:v.next;!(S=e(w,v)).done;){try{b=M(S.value)}catch(t){h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Mn}function Xn(){if(Vn)return _n;Vn=1;var t=se()("iterator"),e=!1;try{var r=0,i={next:function(){return{done:!!r++}},return:function(){e=!0}};i[t]=function(){return this},Array.from(i,(function(){throw 2}))}catch(t){}return _n=function(r,i){try{if(!i&&!e)return!1}catch(t){return!1}var n=!1;try{var a={};a[t]=function(){return{next:function(){return{done:n=!0}}}},r(a)}catch(t){}return n}}function Yn(){if(kn)return In;kn=1;var t=pn(),e=Xn(),r=dn().CONSTRUCTOR;return In=r||!e((function(e){t.all(e).then(void 0,(function(){}))}))}var Wn,qn={};var $n,Gn={};var Qn,Zn={};var Kn,Jn,ta,ea,ra={};function ia(){if(Jn)return Kn;Jn=1;var t=be(),e=vt(),r=xn();return Kn=function(i,n){if(t(i),e(n)&&n.constructor===i)return n;var a=r.f(i);return(0,a.resolve)(n),a.promise}}function na(t,e,r,i,n,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(i,n)}function aa(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){na(a,i,n,s,o,"next",t)}function o(t){na(a,i,n,s,o,"throw",t)}s(void 0)}))}}ea||(ea=1,function(){if(yn)return a;yn=1;var t,e,r,i=zi(),n=Jt(),o=Fi(),u=s(),h=x(),c=Ye(),l=Yi(),f=Wi(),g=$i(),p=At(),d=dt(),v=vt(),y=Gi(),m=Ji(),b=un().set,w=ln(),S=fn(),T=gn(),O=cn(),A=He(),C=pn(),P=dn(),E=xn(),N="Promise",M=P.CONSTRUCTOR,R=P.REJECTION_EVENT,_=P.SUBCLASSING,V=A.getterFor(N),I=A.set,k=C&&C.prototype,L=C,D=k,j=u.TypeError,B=u.document,z=u.process,U=E.f,F=U,H=!!(B&&B.createEvent&&u.dispatchEvent),X="unhandledrejection",Y=function(t){var e;return!(!v(t)||!d(e=t.then))&&e},W=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?c(new j("Promise-chain cycle")):(i=Y(r))?h(i,r,u,c):u(r)):c(a)}catch(t){l&&!n&&l.exit(),c(t)}},q=function(t,e){t.notified||(t.notified=!0,w((function(){for(var r,i=t.reactions;r=i.get();)W(r,t);t.notified=!1,e&&!t.rejection&&G(t)})))},$=function(t,e,r){var i,n;H?((i=B.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:r},!R&&(n=u["on"+t])?n(i):t===X&&S("Unhandled promise rejection",r)},G=function(t){h(b,u,(function(){var e,r=t.facade,i=t.value;if(Q(t)&&(e=T((function(){o?z.emit("unhandledRejection",i,r):$(X,r,i)})),t.rejection=o||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){h(b,u,(function(){var e=t.facade;o?z.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},K=function(t,e,r){return function(i){t(e,i,r)}},J=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var i=Y(e);i?w((function(){var r={done:!1};try{h(i,e,K(tt,r,t),K(J,r,t))}catch(e){J(r,e,t)}})):(t.value=e,t.state=1,q(t,!1))}catch(e){J({done:!1},e,t)}}};if(M&&(D=(L=function(e){y(this,D),p(e),h(t,this);var r=V(this);try{e(K(tt,r),K(J,r))}catch(t){J(r,t)}}).prototype,(t=function(t){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:null})}).prototype=c(D,"then",(function(t,e){var r=V(this),i=U(m(this,L));return r.parent=!0,i.ok=!d(t)||t,i.fail=d(e)&&e,i.domain=o?z.domain:void 0,0===r.state?r.reactions.add(i):w((function(){W(i,r)})),i.promise})),e=function(){var e=new t,r=V(e);this.promise=e,this.resolve=K(tt,r),this.reject=K(J,r)},E.f=U=function(t){return t===L||void 0===t?new e(t):F(t)},!n&&d(C)&&k!==Object.prototype)){r=k.then,_||c(k,"then",(function(t,e){var i=this;return new L((function(t,e){h(r,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete k.constructor}catch(t){}l&&l(k,D)}i({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:L}),f(L,N,!1,!0),g(N)}(),function(){if(Ln)return Dn;Ln=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{all:function(t){var s=this,o=i.f(s),u=o.resolve,h=o.reject,c=n((function(){var i=r(s.resolve),n=[],o=0,c=1;a(t,(function(t){var r=o++,a=!1;c++,e(i,s,t).then((function(t){a||(a=!0,n[r]=t,--c||u(n))}),h)})),--c||u(n)}));return c.error&&h(c.value),o.promise}})}(),function(){if(Wn)return qn;Wn=1;var t=zi(),e=Jt(),r=dn().CONSTRUCTOR,i=pn(),n=yt(),a=dt(),s=Ye(),o=i&&i.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!e&&a(i)){var u=n("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}}(),function(){if($n)return Gn;$n=1;var t=zi(),e=x(),r=At(),i=xn(),n=gn(),a=Hn();t({target:"Promise",stat:!0,forced:Yn()},{race:function(t){var s=this,o=i.f(s),u=o.reject,h=n((function(){var i=r(s.resolve);a(t,(function(t){e(i,s,t).then(o.resolve,u)}))}));return h.error&&u(h.value),o.promise}})}(),function(){if(Qn)return Zn;Qn=1;var t=zi(),e=xn();t({target:"Promise",stat:!0,forced:dn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ta)return ra;ta=1;var t=zi(),e=yt(),r=Jt(),i=pn(),n=dn().CONSTRUCTOR,a=ia(),s=e("Promise"),o=r&&!n;t({target:"Promise",stat:!0,forced:r||n},{resolve:function(t){return a(o&&this===s?i:this,t)}})}());var sa,oa,ua,ha,ca,la,fa={},ga={};function pa(){if(oa)return sa;oa=1;var t=Qi(),e=String;return sa=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function da(){if(ha)return ua;ha=1;var t=be();return ua=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r}}function va(){if(la)return ca;la=1;var t=v(),e=s().RegExp,r=t((function(){var t=e("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),i=r||t((function(){return!e("a","y").sticky})),n=r||t((function(){var t=e("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));return ca={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ya,ma,xa,ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja={};function Ba(){if(ma)return ya;ma=1;var t=dr(),e=vr();return ya=Object.keys||function(r){return t(r,e)},ya}function za(){if(wa)return ba;wa=1;var t,e=be(),r=function(){if(xa)return ja;xa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Ba();return ja.f=t&&!e?Object.defineProperties:function(t,e){i(t);for(var s,o=n(e),u=a(e),h=u.length,c=0;h>c;)r.f(t,s=u[c++],o[s]);return t},ja}(),i=vr(),n=Fe(),a=nn(),s=ue(),o=Ue(),u="prototype",h="script",c=o("IE_PROTO"),l=function(){},f=function(t){return"<"+h+">"+t+"</"+h+">"},g=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,r,n;p="undefined"!=typeof document?document.domain&&t?g(t):(r=s("iframe"),n="java"+h+":",r.style.display="none",a.appendChild(r),r.src=String(n),(e=r.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):g(t);for(var o=i.length;o--;)delete p[u][i[o]];return p()};return n[c]=!0,ba=Object.create||function(t,i){var n;return null!==t?(l[u]=e(t),n=new l,l[u]=null,n[c]=t):n=p(),void 0===i?n:r.f(n,i)},ba}function Ua(){if(Pa)return Ca;Pa=1;var t,e,r=x(),i=ht(),n=pa(),a=da(),o=va(),u=re(),h=za(),c=He().get,l=function(){if(Ta)return Sa;Ta=1;var t=v(),e=s().RegExp;return Sa=t((function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))}(),f=function(){if(Aa)return Oa;Aa=1;var t=v(),e=s().RegExp;return Oa=t((function(){var t=e("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))}(),g=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,y=i("".charAt),m=i("".indexOf),b=i("".replace),w=i("".slice),S=(e=/b*/g,r(p,t=/a/,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex),T=o.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(S||O||T||l||f)&&(d=function(t){var e,i,s,o,u,l,f,v=this,x=c(v),A=n(t),C=x.raw;if(C)return C.lastIndex=v.lastIndex,e=r(d,C,A),v.lastIndex=C.lastIndex,e;var P=x.groups,E=T&&v.sticky,N=r(a,v),M=v.source,R=0,_=A;if(E&&(N=b(N,"y",""),-1===m(N,"g")&&(N+="g"),_=w(A,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==y(A,v.lastIndex-1))&&(M="(?: "+M+")",_=" "+_,R++),i=new RegExp("^(?:"+M+")",N)),O&&(i=new RegExp("^"+M+"$(?!\\s)",N)),S&&(s=v.lastIndex),o=r(p,E?i:v,_),E?o?(o.input=w(o.input,R),o[0]=w(o[0],R),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:s),O&&o&&o.length>1&&r(g,o[0],i,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&P)for(o.groups=l=h(null),u=0;u<P.length;u++)l[(f=P[u])[0]]=o[f[1]];return o}),Ca=d}function Fa(){if(Ma)return Na;Ma=1,function(){if(Ea)return ga;Ea=1;var t=zi(),e=Ua();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=Ua(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return Na=function(u,h,c,l){var f=n(u),g=!i((function(){var t={};return t[f]=function(){return 7},7!==""[u](t)})),p=g&&!i((function(){var t=!1,e=/a/;return"split"===u&&((e={}).constructor={},e.constructor[s]=function(){return e},e.flags="",e[f]=/./[f]),e.exec=function(){return t=!0,null},e[f](""),!t}));if(!g||!p||c){var d=/./[f],v=h(f,""[u],(function(e,i,n,a,s){var u=i.exec;return u===r||u===o.exec?g&&!s?{done:!0,value:t(d,i,n,a)}:{done:!0,value:t(e,n,i,a)}:{done:!1}}));e(String.prototype,u,v[0]),e(o,f,v[1])}l&&a(o[f],"sham",!0)},Na}function Ha(){if(Ia)return Va;Ia=1;var t=function(){if(_a)return Ra;_a=1;var t=ht(),e=cr(),r=pa(),i=gt(),n=t("".charAt),a=t("".charCodeAt),s=t("".slice),o=function(t){return function(o,u){var h,c,l=r(i(o)),f=e(u),g=l.length;return f<0||f>=g?t?"":void 0:(h=a(l,f))<55296||h>56319||f+1===g||(c=a(l,f+1))<56320||c>57343?t?n(l,f):h:t?s(l,f,f+2):c-56320+(h-55296<<10)+65536}};return Ra={codeAt:o(!1),charAt:o(!0)}}().charAt;return Va=function(e,r,i){return r+(i?t(e,r).length:1)},Va}function Xa(){if(La)return ka;La=1;var t=x(),e=be(),r=dt(),i=ct(),n=Ua(),a=TypeError;return ka=function(s,o){var u=s.exec;if(r(u)){var h=t(u,s,o);return null!==h&&e(h),h}if("RegExp"===i(s))return t(n,s,o);throw new a("RegExp#exec called on incompatible receiver")}}!function(){if(Da)return fa;Da=1;var t=x(),e=Fa(),r=be(),i=ft(),n=fr(),a=pa(),s=gt(),o=Ct(),u=Ha(),h=Xa();e("match",(function(e,c,l){return[function(r){var n=s(this),u=i(r)?void 0:o(r,e);return u?t(u,r,n):new RegExp(r)[e](a(n))},function(t){var e=r(this),i=a(t),s=l(c,e,i);if(s.done)return s.value;if(!e.global)return h(e,i);var o=e.unicode;e.lastIndex=0;for(var f,g=[],p=0;null!==(f=h(e,i));){var d=a(f[0]);g[p]=d,""===d&&(e.lastIndex=u(i,n(e.lastIndex),o)),p++}return 0===p?null:g}]}))}();var Ya,Wa,qa,$a={};function Ga(){if(Wa)return Ya;Wa=1;var t=ht(),e=ie(),r=Math.floor,i=t("".charAt),n=t("".replace),a=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return Ya=function(t,u,h,c,l,f){var g=h+t.length,p=c.length,d=o;return void 0!==l&&(l=e(l),d=s),n(f,d,(function(e,n){var s;switch(i(n,0)){case"$":return"$";case"&":return t;case"`":return a(u,0,h);case"'":return a(u,g);case"<":s=l[a(n,1,-1)];break;default:var o=+n;if(0===o)return e;if(o>p){var f=r(o/10);return 0===f?e:f<=p?void 0===c[f-1]?i(n,1):c[f-1]+i(n,1):e}s=c[o-1]}return void 0===s?"":s}))},Ya}!function(){if(qa)return $a;qa=1;var t=tn(),e=x(),r=ht(),i=Fa(),n=v(),a=be(),s=dt(),o=ft(),u=cr(),h=fr(),c=pa(),l=gt(),f=Ha(),g=Ct(),p=Ga(),d=Xa(),y=se()("replace"),m=Math.max,b=Math.min,w=r([].concat),S=r([].push),T=r("".indexOf),O=r("".slice),A="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");i("replace",(function(r,i,n){var v=C?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?void 0:g(t,y);return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e);if("string"==typeof r&&-1===T(r,v)&&-1===T(r,"$<")){var g=n(i,o,l,r);if(g.done)return g.value}var y=s(r);y||(r=c(r));var x,A=o.global;A&&(x=o.unicode,o.lastIndex=0);for(var C,P=[];null!==(C=d(o,l))&&(S(P,C),A);){""===c(C[0])&&(o.lastIndex=f(l,h(o.lastIndex),x))}for(var E,N="",M=0,R=0;R<P.length;R++){for(var _,V=c((C=P[R])[0]),I=m(b(u(C.index),l.length),0),k=[],L=1;L<C.length;L++)S(k,void 0===(E=C[L])?E:String(E));var D=C.groups;if(y){var j=w([V],k,I,l);void 0!==D&&S(j,D),_=c(t(r,void 0,j))}else _=p(V,l,I,k,D,r);I>=M&&(N+=O(l,M,I)+_,M=I+V.length)}return N+O(l,M)}]}),!!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!A||C)}();var Qa,Za,Ka,Ja,ts,es,rs,is,ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs={};function bs(){if(Ja)return Ka;Ja=1;var t=function(){if(Za)return Qa;Za=1;var t=vt(),e=ct(),r=se()("match");return Qa=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return Ka=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function ws(){if(es)return ts;es=1;var t=se()("match");return ts=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ss(){if(ns)return is;ns=1;var t=se(),e=za(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),is=function(t){n[i][t]=!0}}function Ts(){if(us)return os;us=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ss)return as;ss=1;var t=v();return as=!t((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}(),a=i("IE_PROTO"),s=Object,o=s.prototype;return os=n?s.getPrototypeOf:function(i){var n=r(i);if(t(n,a))return n[a];var u=n.constructor;return e(u)&&n instanceof u?u.prototype:n instanceof s?o:null},os}function Os(){if(cs)return hs;cs=1;var t,e,r,i=v(),n=dt(),a=vt(),s=za(),o=Ts(),u=Ye(),h=se(),c=Jt(),l=h("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(e=o(o(r)))!==Object.prototype&&(t=e):f=!0),!a(t)||i((function(){var e={};return t[l].call(e)!==e}))?t={}:c&&(t=s(t)),n(t[l])||u(t,l,(function(){return this})),hs={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function As(){if(ps)return gs;ps=1;var t=zi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(fs)return ls;fs=1;var t=Os().IteratorPrototype,e=za(),r=ut(),i=Wi(),n=jn(),a=function(){return this};return ls=function(s,o,u,h){var c=o+" Iterator";return s.prototype=e(t,{next:r(+!h,u)}),i(s,c,!1,!0),n[c]=a,s}}(),s=Ts(),o=Yi(),u=Wi(),h=Se(),c=Ye(),l=se(),f=jn(),g=Os(),p=i.PROPER,d=i.CONFIGURABLE,v=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",T=function(){return this};return gs=function(i,l,g,x,O,A,C){a(g,l,x);var P,E,N,M=function(t){if(t===O&&k)return k;if(!y&&t&&t in V)return V[t];switch(t){case b:case w:case S:return function(){return new g(this,t)}}return function(){return new g(this)}},R=l+" Iterator",_=!1,V=i.prototype,I=V[m]||V["@@iterator"]||O&&V[O],k=!y&&I||M(O),L="Array"===l&&V.entries||I;if(L&&(P=s(L.call(new i)))!==Object.prototype&&P.next&&(r||s(P)===v||(o?o(P,v):n(P[m])||c(P,m,T)),u(P,R,!0,!0),r&&(f[R]=T)),p&&O===w&&I&&I.name!==w&&(!r&&d?h(V,"name",w):(_=!0,k=function(){return e(I,this)})),O)if(E={values:M(w),keys:A?k:M(b),entries:M(S)},C)for(N in E)(y||_||!(N in V))&&c(V,N,E[N]);else t({target:l,proto:!0,forced:y||_},E);return r&&!C||V[m]===k||c(V,m,k,{name:O}),f[l]=k,E}}function Cs(){return vs?ds:(vs=1,ds=function(t,e){return{value:t,done:e}})}function Ps(){if(ms)return ys;ms=1;var t=pt(),e=Ss(),r=jn(),i=He(),n=we().f,a=As(),s=Cs(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);ys=a(Array,"Array",(function(e,r){c(this,{type:h,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,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)}),"values");var f=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&"values"!==f.name)try{n(f,"name",{value:"values"})}catch(t){}return ys}!function(){if(rs)return xs;rs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),h=Jt(),c=r("".slice),l=Math.min,f=u("startsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"startsWith"),!t||t.writable))&&!f},{startsWith:function(t){var e=a(o(this));s(t);var r=n(l(arguments.length>1?arguments[1]:void 0,e.length)),i=a(t);return c(e,r,r+i.length)===i}})}(),Ps();var Es,Ns,Ms,Rs,_s,Vs={};function Is(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,r);if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}function ks(t,e,r){return(e=Is(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(_s)return Vs;_s=1;var t=s(),e=Ns?Es:(Ns=1,Es={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}),r=function(){if(Rs)return Ms;Rs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return Ms=e===Object.prototype?void 0:e}(),i=Ps(),n=Se(),a=Wi(),o=se()("iterator"),u=i.values,h=function(t,r){if(t){if(t[o]!==u)try{n(t,o,u)}catch(e){t[o]=u}if(a(t,r,!0),e[r])for(var s in i)if(t[s]!==i[s])try{n(t,s,i[s])}catch(e){t[s]=i[s]}}};for(var c in e)h(t[c]&&t[c].prototype,c);h(r,"DOMTokenList")}();var Ls,Ds,js,Bs,zs,Us={};function Fs(){if(Bs)return js;Bs=1;var t=v();return js=function(e,r){var i=[][e];return!!i&&t((function(){i.call(null,r||function(){return 1},1)}))}}!function(){if(zs)return Us;zs=1;var t=zi(),e=function(){if(Ds)return Ls;Ds=1;var t=At(),e=ie(),r=lt(),i=gr(),n=TypeError,a="Reduce of empty array with no initial value",s=function(s){return function(o,u,h,c){var l=e(o),f=r(l),g=i(l);if(t(u),0===g&&h<2)throw new n(a);var p=s?g-1:0,d=s?-1:1;if(h<2)for(;;){if(p in f){c=f[p],p+=d;break}if(p+=d,s?p<0:g<=p)throw new n(a)}for(;s?p>=0:g>p;p+=d)p in f&&(c=u(c,f[p],p,l));return c}};return Ls={left:s(!1),right:s(!0)}}().left,r=Fs(),i=bt();t({target:"Array",proto:!0,forced:!Fi()&&i>79&&i<83||!r("reduce")},{reduce:function(t){var r=arguments.length;return e(this,t,r,r>1?arguments[1]:void 0)}})}();var Hs,Xs={};!function(){if(Hs)return Xs;Hs=1;var t,e=zi(),r=en(),i=ce().f,n=fr(),a=pa(),s=bs(),o=gt(),u=ws(),h=Jt(),c=r("".slice),l=Math.min,f=u("endsWith");e({target:"String",proto:!0,forced:!!(h||f||(t=i(String.prototype,"endsWith"),!t||t.writable))&&!f},{endsWith:function(t){var e=a(o(this));s(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,u=void 0===r?i:l(n(r),i),h=a(t);return c(e,u-h.length,u)===h}})}();var Ys,Ws={};!function(){if(Ys)return Ws;Ys=1;var t=x(),e=ht(),r=Fa(),i=be(),n=ft(),a=gt(),s=Ji(),o=Ha(),u=fr(),h=pa(),c=Ct(),l=Xa(),f=va(),g=v(),p=f.UNSUPPORTED_Y,d=Math.min,y=e([].push),m=e("".slice),b=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",(function(e,r,f){var g="0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t(r,this,e,i)}:r;return[function(r,i){var s=a(this),o=n(r)?void 0:c(r,e);return o?t(o,r,s,i):t(g,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!w){var c=f(g,n,a,e,g!==r);if(c.done)return c.value}var v=s(n,RegExp),x=n.unicode,b=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(p?"g":"y"),S=new v(p?"^(?:"+n.source+")":n,b),T=void 0===e?4294967295:e>>>0;if(0===T)return[];if(0===a.length)return null===l(S,a)?[a]:[];for(var O=0,A=0,C=[];A<a.length;){S.lastIndex=p?0:A;var P,E=l(S,p?m(a,A):a);if(null===E||(P=d(u(S.lastIndex+(p?A:0)),a.length))===O)A=o(a,A,x);else{if(y(C,m(a,O,A)),C.length===T)return C;for(var N=1;N<=E.length-1;N++)if(y(C,E[N]),C.length===T)return C;A=O=P}}return y(C,m(a,O)),C}]}),w||!b,p)}();var qs,$s,Gs={exports:{}},Qs={exports:{}},Zs=Qs.exports;var Ks,Js,to,eo,ro,io,no,ao,so,oo=function(){if($s)return Gs.exports;$s=1;for(var e=(qs||(qs=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?Qs.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(Qs.exports=function(){return(t()-n)/1e6},e=process.hrtime,i=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),a=1e9*process.uptime(),n=i-a):Date.now?(Qs.exports=function(){return Date.now()-r},r=Date.now()):(Qs.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(Zs)),Qs.exports),r="undefined"==typeof window?t:window,i=["moz","webkit"],n="AnimationFrame",a=r["request"+n],s=r["cancel"+n]||r["cancelRequest"+n],o=0;!a&&o<i.length;o++)a=r[i[o]+"Request"+n],s=r[i[o]+"Cancel"+n]||r[i[o]+"CancelRequest"+n];if(!a||!s){var u=0,h=0,c=[],l=1e3/60;a=function(t){if(0===c.length){var r=e(),i=Math.max(0,l-(r-u));u=i+r,setTimeout((function(){var t=c.slice(0);c.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return c.push({handle:++h,callback:t,cancelled:!1}),h},s=function(t){for(var e=0;e<c.length;e++)c[e].handle===t&&(c[e].cancelled=!0)}}return Gs.exports=function(t){return a.call(r,t)},Gs.exports.cancel=function(){s.apply(r,arguments)},Gs.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},Gs.exports}(),uo=r(oo),ho={};function co(){return Js?Ks:(Js=1,Ks="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(no)return ho;no=1;var t=zi(),e=function(){if(eo)return to;eo=1;var t=ht(),e=gt(),r=pa(),i=co(),n=t("".replace),a=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),o=function(t){return function(i){var o=r(e(i));return 1&t&&(o=n(o,a,"")),2&t&&(o=n(o,s,"$1")),o}};return to={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(io)return ro;io=1;var t=Be().PROPER,e=v(),r=co();return ro=function(i){return e((function(){return!!r[i]()||"
"!=="
"[i]()||t&&r[i].name!==i}))}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}})}();var lo,fo=(so||(so=1,ao=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].re,a=r[i].process,s=n.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var u=document.createElement("li"),h=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[i]+" -> "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}),ao),go=r(fo),po={};!function(){if(lo)return po;lo=1;var t=zi(),e=en(),r=pr().indexOf,i=Fs(),n=e([].indexOf),a=!!n&&1/n([1],1,-0)<0;t({target:"Array",proto:!0,forced:a||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?n(this,t,e)||0:r(this,t,e)}})}();var vo,yo={};!function(){if(vo)return yo;vo=1;var t=zi(),e=ht(),r=bs(),i=gt(),n=pa(),a=ws(),s=e("".indexOf);t({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(n(i(this)),n(r(t)),arguments.length>1?arguments[1]:void 0)}})}();var mo,xo,bo,wo={};function So(){if(xo)return mo;xo=1;var t=ct();return mo=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(bo)return wo;bo=1;var t=zi(),e=ht(),r=So(),i=e([].reverse),n=[1,2];t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}})}();
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var To=function(t,e){return(To=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Oo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}To(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ao(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function Co(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Po=Math.PI;function Eo(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,s=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var o=Ao([(e-a)/2,(r-s)/2],-t.xRot/180*Po),u=o[0],h=o[1],c=Math.pow(u,2)/Math.pow(i,2)+Math.pow(h,2)/Math.pow(n,2);1<c&&(i*=Math.sqrt(c),n*=Math.sqrt(c)),t.rX=i,t.rY=n;var l=Math.pow(i,2)*Math.pow(h,2)+Math.pow(n,2)*Math.pow(u,2),f=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-l)/l)),g=i*h/n*f,p=-n*u/i*f,d=Ao([g,p],t.xRot/180*Po);t.cX=d[0]+(e+a)/2,t.cY=d[1]+(r+s)/2,t.phi1=Math.atan2((h-p)/n,(u-g)/i),t.phi2=Math.atan2((-h-p)/n,(-u-g)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Po),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Po),t.phi1*=180/Po,t.phi2*=180/Po}function No(t,e,r){Co(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var Mo,Ro=Math.PI/180;function _o(t,e,r){return(1-r)*t+r*e}function Vo(t,e,r,i){return t+Math.cos(i/180*Po)*e+Math.sin(i/180*Po)*r}function Io(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,u=6*(s-a),h=3*a;return Math.abs(o)<n?[-h/u]:function(t,e,r){var i=t*t/4-e;if(i<-1e-6)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(u/o,h/o,n)}function ko(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,a,s){return n.type&Xo.SMOOTH_CURVE_TO&&(n.type=Xo.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&Xo.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&Xo.SMOOTH_QUAD_TO&&(n.type=Xo.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&Xo.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n}))}function i(){var t=NaN,e=NaN;return n((function(r,i,n){if(r.type&Xo.SMOOTH_QUAD_TO&&(r.type=Xo.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&Xo.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=Xo.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&Xo.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&Xo.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&Xo.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return Co(t,e,r,i,a,s),n((function(n,o,u,h){var c=n.x1,l=n.x2,f=n.relative&&!isNaN(h),g=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:u;function d(t){return t*t}n.type&Xo.HORIZ_LINE_TO&&0!==e&&(n.type=Xo.LINE_TO,n.y=n.relative?0:u),n.type&Xo.VERT_LINE_TO&&0!==r&&(n.type=Xo.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=g*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=c*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=l*e+n.y2*i+(f?0:s));var v=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===v)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=Xo.LINE_TO;else{var y=n.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/d(n.rX),w=1/d(n.rY),S=d(x)*b+d(m)*w,T=2*m*x*(b-w),O=d(m)*b+d(x)*w,A=S*i*i-T*e*i+O*e*e,C=T*(t*i+e*r)-2*(S*r*i+O*t*e),P=S*r*r-T*t*r+O*t*t,E=(Math.atan2(C,A-P)+Math.PI)%Math.PI/2,N=Math.sin(E),M=Math.cos(E);n.rX=Math.abs(v)/Math.sqrt(A*d(M)+C*N*M+P*d(N)),n.rY=Math.abs(v)/Math.sqrt(A*d(N)-C*N*M+P*d(M)),n.xRot=180*E/Math.PI}return void 0!==n.sweepFlag&&0>v&&(n.sweepFlag=+!n.sweepFlag),n}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),Co(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,a,s,o){if(isNaN(s)&&!(i.type&Xo.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&Xo.HORIZ_LINE_TO&&(i.type=Xo.LINE_TO,i.y=i.relative?0:a),r&&i.type&Xo.VERT_LINE_TO&&(i.type=Xo.LINE_TO,i.x=i.relative?0:n),t&&i.type&Xo.CLOSE_PATH&&(i.type=Xo.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&Xo.ARC&&(0===i.rX||0===i.rY)&&(i.type=Xo.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),Co(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n((function(n,s,o,u,h){var c=Math.abs,l=!1,f=0,g=0;if(n.type&Xo.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),n.type&(Xo.CURVE_TO|Xo.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&Xo.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&Xo.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&Xo.LINE_COMMANDS||n.type&Xo.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&Xo.CURVE_TO||n.type&Xo.SMOOTH_CURVE_TO||n.type&Xo.QUAD_TO||n.type&Xo.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,g=isNaN(a)?void 0===n.y1?g:n.relative?n.y:n.y1-o:a-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-s,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;c(p)<=t&&c(d)<=t&&c(f)<=t&&c(g)<=t&&c(v)<=t&&c(y)<=t&&(l=!0)}return n.type&Xo.CLOSE_PATH&&c(s-u)<=t&&c(o-h)<=t&&(l=!0),l?[]:n}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),Co(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),Co(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),Co(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return Co(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return Co(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),Co(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),Co(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return Xo.ARC===t.type?function(t,e,r){var i,n,a,s;t.cX||Eo(t,e,r);for(var o=Math.min(t.phi1,t.phi2),u=Math.max(t.phi1,t.phi2)-o,h=Math.ceil(u/90),c=new Array(h),l=e,f=r,g=0;g<h;g++){var p=_o(t.phi1,t.phi2,g/h),d=_o(t.phi1,t.phi2,(g+1)/h),v=d-p,y=4/3*Math.tan(v*Ro/4),m=[Math.cos(p*Ro)-y*Math.sin(p*Ro),Math.sin(p*Ro)+y*Math.cos(p*Ro)],x=m[0],b=m[1],w=[Math.cos(d*Ro),Math.sin(d*Ro)],S=w[0],T=w[1],O=[S+y*Math.sin(d*Ro),T-y*Math.cos(d*Ro)],A=O[0],C=O[1];c[g]={relative:t.relative,type:Xo.CURVE_TO};var P=function(e,r){var i=Ao([e*t.rX,r*t.rY],t.xRot),n=i[0],a=i[1];return[t.cX+n,t.cY+a]};i=P(x,b),c[g].x1=i[0],c[g].y1=i[1],n=P(A,C),c[g].x2=n[0],c[g].y2=n[1],a=P(S,T),c[g].x=a[0],c[g].y=a[1],t.relative&&(c[g].x1-=l,c[g].y1-=f,c[g].x2-=l,c[g].y2-=f,c[g].x-=l,c[g].y-=f),l=(s=[c[g].x,c[g].y])[0],f=s[1]}return c}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return n((function(t,e,r){return t.relative&&(e=0,r=0),Xo.ARC===t.type&&Eo(t,e,r),t}))},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=i(),s=r(),o=n((function(e,r,i){var n=s(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function u(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function h(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&Xo.DRAWING_COMMANDS&&(u(r),h(i)),n.type&Xo.HORIZ_LINE_TO&&u(n.x),n.type&Xo.VERT_LINE_TO&&h(n.y),n.type&Xo.LINE_TO&&(u(n.x),h(n.y)),n.type&Xo.CURVE_TO){u(n.x),h(n.y);for(var c=0,l=Io(r,n.x1,n.x2,n.x);c<l.length;c++)0<(P=l[c])&&1>P&&u(ko(r,n.x1,n.x2,n.x,P));for(var f=0,g=Io(i,n.y1,n.y2,n.y);f<g.length;f++)0<(P=g[f])&&1>P&&h(ko(i,n.y1,n.y2,n.y,P))}if(n.type&Xo.ARC){u(n.x),h(n.y),Eo(n,r,i);for(var p=n.xRot/180*Math.PI,d=Math.cos(p)*n.rX,v=Math.sin(p)*n.rX,y=-Math.sin(p)*n.rY,m=Math.cos(p)*n.rY,x=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],b=x[0],w=x[1],S=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return i<b?i+360:i},T=0,O=No(y,-d,0).map(S);T<O.length;T++)(P=O[T])>b&&P<w&&u(Vo(n.cX,d,y,P));for(var A=0,C=No(m,-v,0).map(S);A<C.length;A++){var P;(P=C[A])>b&&P<w&&h(Vo(n.cY,v,m,P))}}return e}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(Mo||(Mo={}));var Lo,Do,jo,Bo,zo=function(){function t(){}return t.prototype.round=function(t){return this.transform(Mo.ROUND(t))},t.prototype.toAbs=function(){return this.transform(Mo.TO_ABS())},t.prototype.toRel=function(){return this.transform(Mo.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(Mo.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(Mo.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Mo.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Mo.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(Mo.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(Mo.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(Mo.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(Mo.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,i,n,a){return this.transform(Mo.MATRIX(t,e,r,i,n,a))},t.prototype.skewX=function(t){return this.transform(Mo.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(Mo.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(Mo.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(Mo.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(Mo.ANNOTATE_ARCS())},t}(),Uo=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},Fo=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},Ho=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return Oo(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var a=t[n],s=!(this.curCommandType!==Xo.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=Fo(a)&&("0"===this.curNumber&&"0"===a||s);if(!Fo(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===Xo.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===Yo[this.curCommandType]&&(Xo.HORIZ_LINE_TO===this.curCommandType?i({type:Xo.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Xo.VERT_LINE_TO===this.curCommandType?i({type:Xo.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Xo.MOVE_TO||this.curCommandType===Xo.LINE_TO||this.curCommandType===Xo.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Xo.MOVE_TO===this.curCommandType&&(this.curCommandType=Xo.LINE_TO)):this.curCommandType===Xo.CURVE_TO?i({type:Xo.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Xo.SMOOTH_CURVE_TO?i({type:Xo.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Xo.QUAD_TO?i({type:Xo.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Xo.ARC&&i({type:Xo.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Uo(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=Xo.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=Xo.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=Xo.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=Xo.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=Xo.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=Xo.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=Xo.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=Xo.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=Xo.ARC,this.curCommandRelative="a"===a}else e.push({type:Xo.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i<n.length;i++){var a=n[i],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(zo),Xo=function(t){function e(r){var i=t.call(this)||this;return i.commands="string"==typeof r?e.parse(r):r,i}return Oo(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=Mo.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},e.encode=function(t){return function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===Xo.CLOSE_PATH)e+="z";else if(i.type===Xo.HORIZ_LINE_TO)e+=(i.relative?"h":"H")+i.x;else if(i.type===Xo.VERT_LINE_TO)e+=(i.relative?"v":"V")+i.y;else if(i.type===Xo.MOVE_TO)e+=(i.relative?"m":"M")+i.x+" "+i.y;else if(i.type===Xo.LINE_TO)e+=(i.relative?"l":"L")+i.x+" "+i.y;else if(i.type===Xo.CURVE_TO)e+=(i.relative?"c":"C")+i.x1+" "+i.y1+" "+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===Xo.SMOOTH_CURVE_TO)e+=(i.relative?"s":"S")+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===Xo.QUAD_TO)e+=(i.relative?"q":"Q")+i.x1+" "+i.y1+" "+i.x+" "+i.y;else if(i.type===Xo.SMOOTH_QUAD_TO)e+=(i.relative?"t":"T")+i.x+" "+i.y;else{if(i.type!==Xo.ARC)throw new Error('Unexpected command type "'+i.type+'" at index '+r+".");e+=(i.relative?"a":"A")+i.rX+" "+i.rY+" "+i.xRot+" "+ +i.lArcFlag+" "+ +i.sweepFlag+" "+i.x+" "+i.y}}return e}(t)},e.parse=function(t){var e=new Ho,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(zo),Yo=((Lo={})[Xo.MOVE_TO]=2,Lo[Xo.LINE_TO]=2,Lo[Xo.HORIZ_LINE_TO]=1,Lo[Xo.VERT_LINE_TO]=1,Lo[Xo.CLOSE_PATH]=0,Lo[Xo.QUAD_TO]=4,Lo[Xo.SMOOTH_QUAD_TO]=2,Lo[Xo.CURVE_TO]=6,Lo[Xo.SMOOTH_CURVE_TO]=4,Lo[Xo.ARC]=7,Lo),Wo={};function qo(t){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(t)}!function(){if(Bo)return Wo;Bo=1;var t=Be().PROPER,e=Ye(),r=be(),i=pa(),n=v(),a=function(){if(jo)return Do;jo=1;var t=x(),e=ne(),r=mt(),i=da(),n=RegExp.prototype;return Do=function(a){var s=a.flags;return void 0!==s||"flags"in n||e(a,"flags")||!r(n,a)?s:t(i,a)}}(),s="toString",o=RegExp.prototype,u=o[s],h=n((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),c=t&&u.name!==s;(h||c)&&e(o,s,(function(){var t=r(this);return"/"+i(t.source)+"/"+i(a(t))}),{unsafe:!0})}();
|
|
16
|
+
var To=function(t,e){return(To=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Oo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}To(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ao(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function Co(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var Po=Math.PI;function Eo(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,s=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var o=Ao([(e-a)/2,(r-s)/2],-t.xRot/180*Po),u=o[0],h=o[1],c=Math.pow(u,2)/Math.pow(i,2)+Math.pow(h,2)/Math.pow(n,2);1<c&&(i*=Math.sqrt(c),n*=Math.sqrt(c)),t.rX=i,t.rY=n;var l=Math.pow(i,2)*Math.pow(h,2)+Math.pow(n,2)*Math.pow(u,2),f=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-l)/l)),g=i*h/n*f,p=-n*u/i*f,d=Ao([g,p],t.xRot/180*Po);t.cX=d[0]+(e+a)/2,t.cY=d[1]+(r+s)/2,t.phi1=Math.atan2((h-p)/n,(u-g)/i),t.phi2=Math.atan2((-h-p)/n,(-u-g)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Po),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Po),t.phi1*=180/Po,t.phi2*=180/Po}function No(t,e,r){Co(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var Mo,Ro=Math.PI/180;function _o(t,e,r){return(1-r)*t+r*e}function Vo(t,e,r,i){return t+Math.cos(i/180*Po)*e+Math.sin(i/180*Po)*r}function Io(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,u=6*(s-a),h=3*a;return Math.abs(o)<n?[-h/u]:function(t,e,r){var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(u/o,h/o,n)}function ko(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,a,s){return n.type&Xo.SMOOTH_CURVE_TO&&(n.type=Xo.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&Xo.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&Xo.SMOOTH_QUAD_TO&&(n.type=Xo.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&Xo.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n}))}function i(){var t=NaN,e=NaN;return n((function(r,i,n){if(r.type&Xo.SMOOTH_QUAD_TO&&(r.type=Xo.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&Xo.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=Xo.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&Xo.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&Xo.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&Xo.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return Co(t,e,r,i,a,s),n((function(n,o,u,h){var c=n.x1,l=n.x2,f=n.relative&&!isNaN(h),g=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:u;function d(t){return t*t}n.type&Xo.HORIZ_LINE_TO&&0!==e&&(n.type=Xo.LINE_TO,n.y=n.relative?0:u),n.type&Xo.VERT_LINE_TO&&0!==r&&(n.type=Xo.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=g*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=c*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=l*e+n.y2*i+(f?0:s));var v=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===v)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=Xo.LINE_TO;else{var y=n.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/d(n.rX),w=1/d(n.rY),S=d(x)*b+d(m)*w,T=2*m*x*(b-w),O=d(m)*b+d(x)*w,A=S*i*i-T*e*i+O*e*e,C=T*(t*i+e*r)-2*(S*r*i+O*t*e),P=S*r*r-T*t*r+O*t*t,E=(Math.atan2(C,A-P)+Math.PI)%Math.PI/2,N=Math.sin(E),M=Math.cos(E);n.rX=Math.abs(v)/Math.sqrt(A*d(M)+C*N*M+P*d(N)),n.rY=Math.abs(v)/Math.sqrt(A*d(N)-C*N*M+P*d(M)),n.xRot=180*E/Math.PI}return void 0!==n.sweepFlag&&0>v&&(n.sweepFlag=+!n.sweepFlag),n}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),Co(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,a,s,o){if(isNaN(s)&&!(i.type&Xo.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&Xo.HORIZ_LINE_TO&&(i.type=Xo.LINE_TO,i.y=i.relative?0:a),r&&i.type&Xo.VERT_LINE_TO&&(i.type=Xo.LINE_TO,i.x=i.relative?0:n),t&&i.type&Xo.CLOSE_PATH&&(i.type=Xo.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&Xo.ARC&&(0===i.rX||0===i.rY)&&(i.type=Xo.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),Co(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n((function(n,s,o,u,h){var c=Math.abs,l=!1,f=0,g=0;if(n.type&Xo.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),n.type&(Xo.CURVE_TO|Xo.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&Xo.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&Xo.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&Xo.LINE_COMMANDS||n.type&Xo.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&Xo.CURVE_TO||n.type&Xo.SMOOTH_CURVE_TO||n.type&Xo.QUAD_TO||n.type&Xo.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,g=isNaN(a)?void 0===n.y1?g:n.relative?n.y:n.y1-o:a-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-s,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;c(p)<=t&&c(d)<=t&&c(f)<=t&&c(g)<=t&&c(v)<=t&&c(y)<=t&&(l=!0)}return n.type&Xo.CLOSE_PATH&&c(s-u)<=t&&c(o-h)<=t&&(l=!0),l?[]:n}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),Co(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),Co(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),Co(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return Co(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return Co(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),Co(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),Co(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return Xo.ARC===t.type?function(t,e,r){var i,n,a,s;t.cX||Eo(t,e,r);for(var o=Math.min(t.phi1,t.phi2),u=Math.max(t.phi1,t.phi2)-o,h=Math.ceil(u/90),c=new Array(h),l=e,f=r,g=0;g<h;g++){var p=_o(t.phi1,t.phi2,g/h),d=_o(t.phi1,t.phi2,(g+1)/h),v=d-p,y=4/3*Math.tan(v*Ro/4),m=[Math.cos(p*Ro)-y*Math.sin(p*Ro),Math.sin(p*Ro)+y*Math.cos(p*Ro)],x=m[0],b=m[1],w=[Math.cos(d*Ro),Math.sin(d*Ro)],S=w[0],T=w[1],O=[S+y*Math.sin(d*Ro),T-y*Math.cos(d*Ro)],A=O[0],C=O[1];c[g]={relative:t.relative,type:Xo.CURVE_TO};var P=function(e,r){var i=Ao([e*t.rX,r*t.rY],t.xRot),n=i[0],a=i[1];return[t.cX+n,t.cY+a]};i=P(x,b),c[g].x1=i[0],c[g].y1=i[1],n=P(A,C),c[g].x2=n[0],c[g].y2=n[1],a=P(S,T),c[g].x=a[0],c[g].y=a[1],t.relative&&(c[g].x1-=l,c[g].y1-=f,c[g].x2-=l,c[g].y2-=f,c[g].x-=l,c[g].y-=f),l=(s=[c[g].x,c[g].y])[0],f=s[1]}return c}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return n((function(t,e,r){return t.relative&&(e=0,r=0),Xo.ARC===t.type&&Eo(t,e,r),t}))},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=i(),s=r(),o=n((function(e,r,i){var n=s(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function u(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function h(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&Xo.DRAWING_COMMANDS&&(u(r),h(i)),n.type&Xo.HORIZ_LINE_TO&&u(n.x),n.type&Xo.VERT_LINE_TO&&h(n.y),n.type&Xo.LINE_TO&&(u(n.x),h(n.y)),n.type&Xo.CURVE_TO){u(n.x),h(n.y);for(var c=0,l=Io(r,n.x1,n.x2,n.x);c<l.length;c++)0<(P=l[c])&&1>P&&u(ko(r,n.x1,n.x2,n.x,P));for(var f=0,g=Io(i,n.y1,n.y2,n.y);f<g.length;f++)0<(P=g[f])&&1>P&&h(ko(i,n.y1,n.y2,n.y,P))}if(n.type&Xo.ARC){u(n.x),h(n.y),Eo(n,r,i);for(var p=n.xRot/180*Math.PI,d=Math.cos(p)*n.rX,v=Math.sin(p)*n.rX,y=-Math.sin(p)*n.rY,m=Math.cos(p)*n.rY,x=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],b=x[0],w=x[1],S=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return i<b?i+360:i},T=0,O=No(y,-d,0).map(S);T<O.length;T++)(P=O[T])>b&&P<w&&u(Vo(n.cX,d,y,P));for(var A=0,C=No(m,-v,0).map(S);A<C.length;A++){var P;(P=C[A])>b&&P<w&&h(Vo(n.cY,v,m,P))}}return e}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(Mo||(Mo={}));var Lo,Do,jo,Bo,zo=function(){function t(){}return t.prototype.round=function(t){return this.transform(Mo.ROUND(t))},t.prototype.toAbs=function(){return this.transform(Mo.TO_ABS())},t.prototype.toRel=function(){return this.transform(Mo.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(Mo.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(Mo.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Mo.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Mo.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(Mo.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(Mo.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(Mo.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(Mo.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,i,n,a){return this.transform(Mo.MATRIX(t,e,r,i,n,a))},t.prototype.skewX=function(t){return this.transform(Mo.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(Mo.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(Mo.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(Mo.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(Mo.ANNOTATE_ARCS())},t}(),Uo=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},Fo=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},Ho=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return Oo(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var a=t[n],s=!(this.curCommandType!==Xo.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=Fo(a)&&("0"===this.curNumber&&"0"===a||s);if(!Fo(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===Xo.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===Yo[this.curCommandType]&&(Xo.HORIZ_LINE_TO===this.curCommandType?i({type:Xo.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Xo.VERT_LINE_TO===this.curCommandType?i({type:Xo.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Xo.MOVE_TO||this.curCommandType===Xo.LINE_TO||this.curCommandType===Xo.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Xo.MOVE_TO===this.curCommandType&&(this.curCommandType=Xo.LINE_TO)):this.curCommandType===Xo.CURVE_TO?i({type:Xo.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Xo.SMOOTH_CURVE_TO?i({type:Xo.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Xo.QUAD_TO?i({type:Xo.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Xo.ARC&&i({type:Xo.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Uo(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=Xo.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=Xo.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=Xo.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=Xo.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=Xo.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=Xo.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=Xo.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=Xo.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=Xo.ARC,this.curCommandRelative="a"===a}else e.push({type:Xo.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);i<n.length;i++){var a=n[i],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(zo),Xo=function(t){function e(r){var i=t.call(this)||this;return i.commands="string"==typeof r?e.parse(r):r,i}return Oo(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=Mo.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},e.encode=function(t){return function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];if(i.type===Xo.CLOSE_PATH)e+="z";else if(i.type===Xo.HORIZ_LINE_TO)e+=(i.relative?"h":"H")+i.x;else if(i.type===Xo.VERT_LINE_TO)e+=(i.relative?"v":"V")+i.y;else if(i.type===Xo.MOVE_TO)e+=(i.relative?"m":"M")+i.x+" "+i.y;else if(i.type===Xo.LINE_TO)e+=(i.relative?"l":"L")+i.x+" "+i.y;else if(i.type===Xo.CURVE_TO)e+=(i.relative?"c":"C")+i.x1+" "+i.y1+" "+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===Xo.SMOOTH_CURVE_TO)e+=(i.relative?"s":"S")+i.x2+" "+i.y2+" "+i.x+" "+i.y;else if(i.type===Xo.QUAD_TO)e+=(i.relative?"q":"Q")+i.x1+" "+i.y1+" "+i.x+" "+i.y;else if(i.type===Xo.SMOOTH_QUAD_TO)e+=(i.relative?"t":"T")+i.x+" "+i.y;else{if(i.type!==Xo.ARC)throw new Error('Unexpected command type "'+i.type+'" at index '+r+".");e+=(i.relative?"a":"A")+i.rX+" "+i.rY+" "+i.xRot+" "+ +i.lArcFlag+" "+ +i.sweepFlag+" "+i.x+" "+i.y}}return e}(t)},e.parse=function(t){var e=new Ho,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(zo),Yo=((Lo={})[Xo.MOVE_TO]=2,Lo[Xo.LINE_TO]=2,Lo[Xo.HORIZ_LINE_TO]=1,Lo[Xo.VERT_LINE_TO]=1,Lo[Xo.CLOSE_PATH]=0,Lo[Xo.QUAD_TO]=4,Lo[Xo.SMOOTH_QUAD_TO]=2,Lo[Xo.CURVE_TO]=6,Lo[Xo.SMOOTH_CURVE_TO]=4,Lo[Xo.ARC]=7,Lo),Wo={};function qo(t){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(t)}!function(){if(Bo)return Wo;Bo=1;var t=Be().PROPER,e=Ye(),r=be(),i=pa(),n=v(),a=function(){if(jo)return Do;jo=1;var t=x(),e=ne(),r=mt(),i=da(),n=RegExp.prototype;return Do=function(a){var s=a.flags;return void 0!==s||"flags"in n||e(a,"flags")||!r(n,a)?s:t(i,a)}}(),s="toString",o=RegExp.prototype,u=o[s],h=n((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),c=t&&u.name!==s;(h||c)&&e(o,s,(function(){var t=r(this);return"/"+i(t.source)+"/"+i(a(t))}),{unsafe:!0})}();
|
|
17
17
|
/**
|
|
18
18
|
* StackBlur - a fast almost Gaussian Blur For Canvas
|
|
19
19
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,t,m as n,
|
|
1
|
+
import{g as e,q as t,m as n,t as o}from"./main.js";var r,a,i={};function s(){return a?r:(a=1,r=class e{constructor(e,t=new Map,n=0){this.prefix=e,this._existing=t,this.counter=n}clone(){const{prefix:t,_existing:n,counter:o}=this;return new e(t,new Map(n),o)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const n=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,n),n}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}})}var l,c,d,u,p,f,h,v,g,y,m,x,b,w,j,I={};function N(){return l||(l=1,function(e){if(!e.setImmediate){var t,n,r,a,i,s=1,l={},c=!1,d=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?t=function(e){o((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){r.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(n=d.documentElement,t=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(f,0,e)}:(a="setImmediate$"+Math.random()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&f(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(a+t,"*")}),u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),o=0;o<n.length;o++)n[o]=arguments[o+1];var r={callback:e,args:n};return l[s]=r,t(s),s++},u.clearImmediate=p}function p(e){delete l[e]}function f(e){if(c)setTimeout(f,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===n?I:n:self)),I}
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
|
|
4
4
|
*/function S(){if(d)return c;d=1,N();const e=self.crypto||self.msCrypto;return c=class{constructor(t){if(!e||!e.subtle)throw new Error("crypto.subtle not found.");if("sha256"===t)this.algorithm={name:"SHA-256"};else{if("sha1"!==t)throw new Error(`Unsupported algorithm "${t}".`);this.algorithm={name:"SHA-1"}}this._content=""}update(e){this._content+=e}async digest(){const t=(new TextEncoder).encode(this._content),n=new Uint8Array(await e.subtle.digest(this.algorithm,t));let o="";for(let e=0;e<n.length;++e)o+=n[e].toString(16).padStart(2,"0");return o}}}
|
package/dist/{jsonld-signatures-ZtLxJmqT-B0W14Jb0.js → jsonld-signatures-BbILf-Q7-DTp6__ud.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,t,B as r,i as o}from"./main.js";import{a as n,b as a,c as i}from"./jsonld-
|
|
1
|
+
import{g as e,q as t,B as r,i as o}from"./main.js";import{a as n,b as a,c as i}from"./jsonld-B_Q2jvnp-BJ5uVeOU.js";var s,c,u,d,p,h,l,f,m,g,y,w,v,T,b,x,E=(function(e,t){!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright (c) 2021 Digital Bazaar, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as r,s as e,b as t}from"./elliptic-BYqApR8Y-CKp7atgR.js";import{B as n}from"./main.js";import{d as o}from"./base64url-Cy03LJLt-vkTPfQOh.js";const s="undefined"==typeof Buffer?n:Buffer,i=t=>{const n=r.from({...t,crv:"K-256"},"jwk").toString("blk","public"),o=e.publicKeyConvert(s.from(n,"hex"),!0);return s.from(o).toString("hex")},f=r=>t.encode(s.from(r,"hex"));const c=r=>{const e=new Uint8Array([237,1]),n=function(r){const{kty:e,crv:t,x:n}=r;if("OKP"!==e)throw new TypeError('"jwk.kty" must be "OKP".');if("Ed25519"!==t)throw new TypeError('"jwk.crv" must be "Ed25519".');if("string"!=typeof n)throw new TypeError('"jwk.x" must be a string.');const s=o(r.x);if(32!==s.length)throw new Error(`Invalid public key size (${s.length}); expected 32.`);return s}(r),s=new Uint8Array(e.length+n.length);s.set(e),s.set(n,e.length);var i;return`z${i=s,t.encode(i)}`};export{f as a,c as j,i as p};
|