@blockcerts/blockcerts-verifier 1.73.0 → 1.75.0

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.
Files changed (48) hide show
  1. package/bundle-stats.html +1 -1
  2. package/coverage/lcov.info +104 -104
  3. package/dist/Bbs2023-Bp5cEh1R-CyaAsSfy.js +64 -0
  4. package/dist/{DataIntegrityProof-D8TnXEkl-CGiIg0kn.js → DataIntegrityProof-C6eNcfZD-DxdoQnVI.js} +2 -2
  5. package/dist/EcdsaSd2023-DZZuYYEc-CWUg-wCj.js +14 -0
  6. package/dist/EcdsaSecp256k1Signature2019-DhXTmkRz-BDI0F5k3.js +1 -0
  7. package/dist/{Ed25519Signature2020-D2tdrIA4-PSi5TCQH.js → Ed25519Signature2020-DQ74b0xi-mZPb25zD.js} +8 -8
  8. package/dist/{EddsaRdfc2022-CpZAUc7W-BJP0532C.js → EddsaRdfc2022-DoIsbQDP-CdTbCYWu.js} +4 -4
  9. package/dist/{HashlinkVerifier-BcdAFe02-DMjUYzMR.js → HashlinkVerifier-CLOBeWTC-A9htzw7A.js} +1 -1
  10. package/dist/MerkleProof2017-DjEiaTFN-DYmuOUac.js +1 -0
  11. package/dist/MerkleProof2019-eet_uSL0-DMgMKE-N.js +5 -0
  12. package/dist/checkBitStringStatusList-imqRJLbC-BxFzQ5zP.js +1 -0
  13. package/dist/checkCredentialSchemaConformity-drHrI5ZX-D8a64oBH.js +1 -0
  14. package/dist/controlVerificationMethod-yDdxMt7K-CmPWOLBp.js +1 -0
  15. package/dist/decode-BvGwOAqu-BaxzowN_.js +13 -0
  16. package/dist/{downloadPDF-BU6CfP-N.js → downloadPDF-C-y2U2YC.js} +2 -2
  17. package/dist/{ensureNotRevoked-BWp1jPEo-DSQMtjrj.js → ensureNotRevoked-DkeMWyFL-BheL-ZKZ.js} +1 -1
  18. package/dist/ensureValidIssuingKey-BBsblYif-DXO_G6MC.js +1 -0
  19. package/dist/{index-OtXtCWrq-CyttRwCk.js → index-B5gC_Ed--DC3Wd_3X.js} +5 -5
  20. package/dist/index-BALRZPPb-BXRdR9Sh.js +14 -0
  21. package/dist/index-D8xF_f-v-BlsVgJYJ.js +7 -0
  22. package/dist/index-Dab3X91f-dKXR6RU7.js +66 -0
  23. package/dist/index-cqs5icUJ-DWIE-ahU.js +23 -0
  24. package/dist/{index.es-C2GPR7m7.js → index.es-BmC2s_4v.js} +1 -1
  25. package/dist/jsonld-BHLXlZBJ-dtl20tiV.js +33 -0
  26. package/dist/jsonld-signatures-B0DqrrUT-B4B7KZ3F.js +56 -0
  27. package/dist/main.js +122 -122
  28. package/dist/retrieveVerificationMethodPublicKey-B-kSksW4-OGh7Cdla.js +1 -0
  29. package/dist/sha2-CJXzPerd-BVhQN7q7.js +1 -0
  30. package/dist/verifyIssuerProfile-Bn2qjtLO-CctriaZ1.js +1 -0
  31. package/dist/weierstrass-qx_4bPUU-BwaVz9Sr.js +5 -0
  32. package/package.json +2 -2
  33. package/dist/EcdsaSd2023-D2eJBmaY-mHNjbn8h.js +0 -26
  34. package/dist/EcdsaSecp256k1Signature2019-BRdQnZ0o-D_QN8KrS.js +0 -1
  35. package/dist/MerkleProof2017-DW_9FhLr-C0dPtifx.js +0 -1
  36. package/dist/MerkleProof2019-DJbo7uW--CHlhsnHk.js +0 -5
  37. package/dist/checkBitStringStatusList-BUPuVWy_-CYedocxJ.js +0 -13
  38. package/dist/checkCredentialSchemaConformity-CJdGwNcY-CaSak-bD.js +0 -1
  39. package/dist/controlVerificationMethod-C71lJp3H-n-AbzkO8.js +0 -1
  40. package/dist/ensureValidIssuingKey-BYAR3LEF-76kiqVKA.js +0 -1
  41. package/dist/index-CB7VaVsF-G_Mj6xql.js +0 -30
  42. package/dist/index-Jn9Q6fuB-uChPhl1c.js +0 -56
  43. package/dist/jsonld-DqC1oHcn-ruRlORc0.js +0 -88
  44. package/dist/retrieveVerificationMethodPublicKey-Dai7em0K-BqIH8qzD.js +0 -1
  45. package/dist/verifyIssuerProfile-zkczSLpC-CTHpISfH.js +0 -1
  46. /package/dist/{index-BCu3PGuw-Dh4-8Ruv.js → index-DBwScGKb-Dh4-8Ruv.js} +0 -0
  47. /package/dist/{index-KzSDgEl9-Dgus2xdV.js → index-DLhZKDC_-Dgus2xdV.js} +0 -0
  48. /package/dist/{webcrypto.es-9hytEjC6-gGk5JRJH.js → webcrypto.es-D4KX-5fg-gGk5JRJH.js} +0 -0
@@ -0,0 +1,66 @@
1
+ import{v as t,u as e}from"./main.js";import{j as i}from"./jsonld-signatures-B0DqrrUT-B4B7KZ3F.js";import{j as r}from"./jsonld-BHLXlZBJ-dtl20tiV.js";
2
+ /*!
3
+ * Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved.
4
+ */function a(t,e){if("number"!=typeof t)throw new TypeError(`"${e}" must be number.`)}function s(t,e){if(!(Number.isInteger(t)&&t>0))throw new TypeError(`"${e}" must be a positive integer.`)}function n(t,e){if("boolean"!=typeof t)throw new TypeError(`"${e}" must be a boolean.`)}function o(t,e){if(!(t instanceof Uint8Array))throw new TypeError(`"${e}" must be a Uint8Array.`)}
5
+ /*! pako 2.2.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function d(t){let e=t.length;for(;--e>=0;)t[e]=0}const l=256,h=286,c=30,w=15,u=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),p=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new Array(576);d(g);const m=new Array(60);d(m);const y=new Array(512);d(y);const b=new Array(256);d(b);const v=new Array(29);d(v);const k=new Array(c);function x(t,e,i,r,a){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=r,this.max_length=a,this.has_stree=t&&t.length}let S,z,E;function A(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}d(k);const R=t=>t<256?y[t]:y[256+(t>>>7)],U=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},M=(t,e,i)=>{t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,U(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)},T=(t,e,i)=>{M(t,i[2*e],i[2*e+1])},D=(t,e)=>{let i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1},L=(t,e,i)=>{const r=new Array(16);let a,s,n=0;for(a=1;a<=w;a++)n=n+i[a-1]<<1,r[a]=n;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=D(r[e]++,e))}},j=t=>{let e;for(e=0;e<h;e++)t.dyn_ltree[2*e]=0;for(e=0;e<c;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Z=t=>{t.bi_valid>8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},C=(t,e,i,r)=>{const a=2*e,s=2*i;return t[a]<t[s]||t[a]===t[s]&&r[e]<=r[i]},I=(t,e,i)=>{const r=t.heap[i];let a=i<<1;for(;a<=t.heap_len&&(a<t.heap_len&&C(e,t.heap[a+1],t.heap[a],t.depth)&&a++,!C(e,r,t.heap[a],t.depth));)t.heap[i]=t.heap[a],i=a,a<<=1;t.heap[i]=r},O=(t,e,i)=>{let r,a,s,n,o=0;if(0!==t.sym_next)do{r=255&t.pending_buf[t.sym_buf+o++],r+=(255&t.pending_buf[t.sym_buf+o++])<<8,a=t.pending_buf[t.sym_buf+o++],0===r?T(t,a,e):(s=b[a],T(t,s+l+1,e),n=u[s],0!==n&&(a-=v[s],M(t,a,n)),r--,s=R(r),T(t,s,i),n=p[s],0!==n&&(r-=k[s],M(t,r,n)))}while(o<t.sym_next);T(t,256,e)},B=(t,e)=>{const i=e.dyn_tree,r=e.stat_desc.static_tree,a=e.stat_desc.has_stree,s=e.stat_desc.elems;let n,o,d,l=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<s;n++)0!==i[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):i[2*n+1]=0;for(;t.heap_len<2;)d=t.heap[++t.heap_len]=l<2?++l:0,i[2*d]=1,t.depth[d]=0,t.opt_len--,a&&(t.static_len-=r[2*d+1]);for(e.max_code=l,n=t.heap_len>>1;n>=1;n--)I(t,i,n);d=s;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],I(t,i,1),o=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=o,i[2*d]=i[2*n]+i[2*o],t.depth[d]=(t.depth[n]>=t.depth[o]?t.depth[n]:t.depth[o])+1,i[2*n+1]=i[2*o+1]=d,t.heap[1]=d++,I(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const i=e.dyn_tree,r=e.max_code,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,n=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,d=e.stat_desc.max_length;let l,h,c,u,p,f,_=0;for(u=0;u<=w;u++)t.bl_count[u]=0;for(i[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;l<573;l++)h=t.heap[l],u=i[2*i[2*h+1]+1]+1,u>d&&(u=d,_++),i[2*h+1]=u,h>r||(t.bl_count[u]++,p=0,h>=o&&(p=n[h-o]),f=i[2*h],t.opt_len+=f*(u+p),s&&(t.static_len+=f*(a[2*h+1]+p)));if(0!==_){do{for(u=d-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[d]--,_-=2}while(_>0);for(u=d;0!==u;u--)for(h=t.bl_count[u];0!==h;)c=t.heap[--l],c>r||(i[2*c+1]!==u&&(t.opt_len+=(u-i[2*c+1])*i[2*c],i[2*c+1]=u),h--)}})(t,e),L(i,l,t.bl_count)},F=(t,e,i)=>{let r,a,s=-1,n=e[1],o=0,d=7,l=4;for(0===n&&(d=138,l=3),e[2*(i+1)+1]=65535,r=0;r<=i;r++)a=n,n=e[2*(r+1)+1],++o<d&&a===n||(o<l?t.bl_tree[2*a]+=o:0!==a?(a!==s&&t.bl_tree[2*a]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=a,0===n?(d=138,l=3):a===n?(d=6,l=3):(d=7,l=4))},N=(t,e,i)=>{let r,a,s=-1,n=e[1],o=0,d=7,l=4;for(0===n&&(d=138,l=3),r=0;r<=i;r++)if(a=n,n=e[2*(r+1)+1],!(++o<d&&a===n)){if(o<l)do{T(t,a,t.bl_tree)}while(0!==--o);else 0!==a?(a!==s&&(T(t,a,t.bl_tree),o--),T(t,16,t.bl_tree),M(t,o-3,2)):o<=10?(T(t,17,t.bl_tree),M(t,o-3,3)):(T(t,18,t.bl_tree),M(t,o-11,7));o=0,s=a,0===n?(d=138,l=3):a===n?(d=6,l=3):(d=7,l=4)}};let P=!1;const V=(t,e,i,r)=>{M(t,0+(r?1:0),3),Z(t),U(t,i),U(t,~i),i&&t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i};var $=(t,e,i,r)=>{let a,s,n=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),B(t,t.l_desc),B(t,t.d_desc),n=(t=>{let e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),B(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),a=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=a&&(a=s)):a=s=i+5,i+4<=a&&-1!==e?V(t,e,i,r):4===t.strategy||s===a?(M(t,2+(r?1:0),3),O(t,g,m)):(M(t,4+(r?1:0),3),((t,e,i,r)=>{let a;for(M(t,e-257,5),M(t,i-1,5),M(t,r-4,4),a=0;a<r;a++)M(t,t.bl_tree[2*_[a]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,i-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,n+1),O(t,t.dyn_ltree,t.dyn_dtree)),j(t),r&&Z(t)},H={_tr_init:t=>{P||((()=>{let t,e,i,r,a;const s=new Array(16);for(i=0,r=0;r<28;r++)for(v[r]=i,t=0;t<1<<u[r];t++)b[i++]=r;for(b[i-1]=r,a=0,r=0;r<16;r++)for(k[r]=a,t=0;t<1<<p[r];t++)y[a++]=r;for(a>>=7;r<c;r++)for(k[r]=a<<7,t=0;t<1<<p[r]-7;t++)y[256+a++]=r;for(e=0;e<=w;e++)s[e]=0;for(t=0;t<=143;)g[2*t+1]=8,t++,s[8]++;for(;t<=255;)g[2*t+1]=9,t++,s[9]++;for(;t<=279;)g[2*t+1]=7,t++,s[7]++;for(;t<=287;)g[2*t+1]=8,t++,s[8]++;for(L(g,287,s),t=0;t<c;t++)m[2*t+1]=5,m[2*t]=D(t,5);S=new x(g,u,257,h,w),z=new x(m,p,0,c,w),E=new x(new Array(0),f,0,19,7)})(),P=!0),t.l_desc=new A(t.dyn_ltree,S),t.d_desc=new A(t.dyn_dtree,z),t.bl_desc=new A(t.bl_tree,E),t.bi_buf=0,t.bi_valid=0,j(t)},_tr_stored_block:V,_tr_flush_block:$,_tr_tally:(t,e,i)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(b[i]+l+1)]++,t.dyn_dtree[2*R(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{M(t,2,3),T(t,256,g),(t=>{16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var X=(t,e,i,r)=>{let a=65535&t,s=t>>>16&65535,n=0;for(;0!==i;){n=i>2e3?2e3:i,i-=n;do{a=a+e[r++]|0,s=s+a|0}while(--n);a%=65521,s%=65521}return a|s<<16};const K=new Uint32Array((()=>{let t,e=[];for(var i=0;i<256;i++){t=i;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e})());var q=(t,e,i,r)=>{const a=K,s=r+i;t^=-1;for(let i=r;i<s;i++)t=t>>>8^a[255&(t^e[i])];return-1^t},J={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Y={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:G,_tr_stored_block:W,_tr_flush_block:Q,_tr_tally:tt,_tr_align:et}=H,{Z_NO_FLUSH:it,Z_PARTIAL_FLUSH:rt,Z_FULL_FLUSH:at,Z_FINISH:st,Z_BLOCK:nt,Z_OK:ot,Z_STREAM_END:dt,Z_STREAM_ERROR:lt,Z_DATA_ERROR:ht,Z_BUF_ERROR:ct,Z_DEFAULT_COMPRESSION:wt,Z_FILTERED:ut,Z_HUFFMAN_ONLY:pt,Z_RLE:ft,Z_FIXED:_t,Z_DEFAULT_STRATEGY:gt,Z_UNKNOWN:mt,Z_DEFLATED:yt}=Y,bt=258,vt=262,kt=42,xt=113,St=666,zt=(t,e)=>(t.msg=J[e],e),Et=t=>2*t-(t>4?9:0),At=t=>{let e=t.length;for(;--e>=0;)t[e]=0},Rt=t=>{let e,i,r,a=t.w_size;e=t.hash_size,r=e;do{i=t.head[--r],t.head[r]=i>=a?i-a:0}while(--e);e=a,r=e;do{i=t.prev[--r],t.prev[r]=i>=a?i-a:0}while(--e)};let Ut=(t,e,i)=>(e<<t.hash_shift^i)&t.hash_mask;const Mt=(t,e)=>{let i;if(t.legacy_hash)i=t.ins_h=Ut(t,t.ins_h,t.window[e+3-1]);else{const r=t.window,a=r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24;i=t.ins_h=Math.imul(a,66521)+66521>>>16&t.hash_mask}const r=t.prev[e&t.w_mask]=t.head[i];return t.head[i]=e,r},Tt=t=>{const e=t.state;let i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))},Dt=(t,e)=>{Q(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Tt(t.strm)},Lt=(t,e)=>{t.pending_buf[t.pending++]=e},jt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Zt=(t,e,i,r)=>{let a=t.avail_in;return a>r&&(a=r),0===a?0:(t.avail_in-=a,e.set(t.input.subarray(t.next_in,t.next_in+a),i),1===t.state.wrap?t.adler=X(t.adler,e,a,i):2===t.state.wrap&&(t.adler=q(t.adler,e,a,i)),t.next_in+=a,t.total_in+=a,a)},Ct=(t,e)=>{let i,r,a=t.max_chain_length,s=t.strstart,n=t.prev_length,o=t.nice_match;const d=t.strstart>t.w_size-vt?t.strstart-(t.w_size-vt):0,l=t.window,h=t.w_mask,c=t.prev,w=t.strstart+bt;let u=l[s+n-1],p=l[s+n];t.prev_length>=t.good_match&&(a>>=2),o>t.lookahead&&(o=t.lookahead);do{if(i=e,l[i+n]===p&&l[i+n-1]===u&&l[i]===l[s]&&l[++i]===l[s+1]){s+=2,i++;do{}while(l[++s]===l[++i]&&l[++s]===l[++i]&&l[++s]===l[++i]&&l[++s]===l[++i]&&l[++s]===l[++i]&&l[++s]===l[++i]&&l[++s]===l[++i]&&l[++s]===l[++i]&&s<w);if(r=bt-(w-s),s=w-bt,r>n){if(t.match_start=e,n=r,r>=o)break;u=l[s+n-1],p=l[s+n]}}}while((e=c[e&h])>d&&0!==--a);return n<=t.lookahead?n:t.lookahead},It=t=>{const e=t.w_size;let i,r,a;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-vt)&&(t.window.set(t.window.subarray(e,e+e-r),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),Rt(t),r+=e),0===t.strm.avail_in)break;if(i=Zt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=i,t.legacy_hash){if(t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=Ut(t,t.ins_h,t.window[a+1]);t.insert&&(Mt(t,a),a++,t.insert--,!(t.lookahead+t.insert<3)););}else if(t.lookahead+t.insert>3)for(a=t.strstart-t.insert;t.insert&&(Mt(t,a),a++,t.insert--,!(t.lookahead+t.insert<=3)););}while(t.lookahead<vt&&0!==t.strm.avail_in)},Ot=(t,e)=>{let i,r,a,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n=0,o=t.strm.avail_in;do{if(i=65535,a=t.bi_valid+42>>3,t.strm.avail_out<a)break;if(a=t.strm.avail_out-a,r=t.strstart-t.block_start,i>r+t.strm.avail_in&&(i=r+t.strm.avail_in),i>a&&(i=a),i<s&&(0===i&&e!==st||e===it||i!==r+t.strm.avail_in))break;n=e===st&&i===r+t.strm.avail_in?1:0,W(t,0,0,n),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,Tt(t.strm),r&&(r>i&&(r=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+r),t.strm.next_out),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r,t.block_start+=r,i-=r),i&&(Zt(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(0===n);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),n?4:e!==it&&e!==st&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(a=t.window_size-t.strstart,t.strm.avail_in>a&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(Zt(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water<t.strstart&&(t.high_water=t.strstart),a=t.bi_valid+42>>3,a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a,s=a>t.w_size?t.w_size:a,r=t.strstart-t.block_start,(r>=s||(r||e===st)&&e!==it&&0===t.strm.avail_in&&r<=a)&&(i=r>a?a:r,n=e===st&&0===t.strm.avail_in&&i===r?1:0,W(t,t.block_start,i,n),t.block_start+=i,Tt(t.strm)),n?3:1)},Bt=(t,e)=>{let i,r;for(;;){if(t.lookahead<vt){if(It(t),t.lookahead<vt&&e===it)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(i=Mt(t,t.strstart)),0!==i&&t.strstart-i<=t.w_size-vt&&(t.match_length=Ct(t,i)),t.match_length>=3)if(r=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,i=Mt(t,t.strstart)}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=Ut(t,t.ins_h,t.window[t.strstart+1]));else r=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Dt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Dt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Dt(t,!1),0===t.strm.avail_out)?1:2},Ft=(t,e)=>{let i,r,a;for(;;){if(t.lookahead<vt){if(It(t),t.lookahead<vt&&e===it)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(i=Mt(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-vt&&(t.match_length=Ct(t,i),t.match_length<=5&&(t.strategy===ut||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-3,r=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=a&&(i=Mt(t,t.strstart))}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(Dt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(r=tt(t,0,t.window[t.strstart-1]),r&&Dt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Dt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Dt(t,!1),0===t.strm.avail_out)?1:2};function Nt(t,e,i,r,a){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=r,this.func=a}const Pt=[new Nt(0,0,0,0,Ot),new Nt(4,4,8,4,Bt),new Nt(4,5,16,8,Bt),new Nt(4,6,32,32,Bt),new Nt(4,4,16,16,Ft),new Nt(8,16,32,32,Ft),new Nt(8,16,128,128,Ft),new Nt(8,32,128,256,Ft),new Nt(32,128,258,1024,Ft),new Nt(32,258,258,4096,Ft)];function Vt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=yt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),At(this.dyn_ltree),At(this.dyn_dtree),At(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),At(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),At(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const $t=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==kt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==xt&&e.status!==St?1:0},Ht=t=>{if($t(t))return zt(t,lt);t.total_in=t.total_out=0,t.data_type=mt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?kt:xt,t.adler=2===e.wrap?0:1,e.last_flush=-2,G(e),ot},Xt=t=>{const e=Ht(t);var i;return e===ot&&((i=t.state).window_size=2*i.w_size,At(i.head),i.max_lazy_match=Pt[i.level].max_lazy,i.good_match=Pt[i.level].good_length,i.nice_match=Pt[i.level].nice_length,i.max_chain_length=Pt[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=2,i.match_available=0,i.ins_h=0),e},Kt=(t,e,i,r,a,s,n)=>{if(!t)return lt;let o=1;if(e===wt&&(e=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||i!==yt||r<8||r>15||e<0||e>9||s<0||s>_t||8===r&&1!==o)return zt(t,lt);8===r&&(r=9);const d=new Vt;return t.state=d,d.strm=t,d.status=kt,d.wrap=o,d.gzhead=null,d.w_bits=r,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.legacy_hash=n?1:0,d.hash_bits=a+7,!d.legacy_hash&&d.hash_bits<15&&(d.hash_bits=15),d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+3-1)/3),d.window=new Uint8Array(2*d.w_size),d.head=new Uint16Array(d.hash_size),d.prev=new Uint16Array(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=4*d.lit_bufsize,d.pending_buf=new Uint8Array(d.pending_buf_size),d.sym_buf=d.lit_bufsize,d.sym_end=3*(d.lit_bufsize-1),d.level=e,d.strategy=s,d.method=i,Xt(t)};var qt={deflateInit:(t,e)=>Kt(t,e,yt,15,8,gt),deflateInit2:Kt,deflateReset:Xt,deflateResetKeep:Ht,deflateSetHeader:(t,e)=>$t(t)||2!==t.state.wrap?lt:(t.state.gzhead=e,ot),deflate:(t,e)=>{if($t(t)||e>nt||e<0)return t?zt(t,lt):lt;const i=t.state;if(!t.output||0!==t.avail_in&&!t.input||i.status===St&&e!==st)return zt(t,0===t.avail_out?ct:lt);const r=i.last_flush;if(i.last_flush=e,0!==i.pending){if(Tt(t),0===t.avail_out)return i.last_flush=-1,ot}else if(0===t.avail_in&&Et(e)<=Et(r)&&e!==st)return zt(t,ct);if(i.status===St&&0!==t.avail_in)return zt(t,ct);if(i.status===kt&&0===i.wrap&&(i.status=xt),i.status===kt){let e=yt+(i.w_bits-8<<4)<<8,r=-1;if(r=i.strategy>=pt||i.level<2?0:i.level<6?1:6===i.level?2:3,e|=r<<6,0!==i.strstart&&(e|=32),e+=31-e%31,jt(i,e),0!==i.strstart&&(jt(i,t.adler>>>16),jt(i,65535&t.adler)),t.adler=1,i.status=xt,Tt(t),0!==i.pending)return i.last_flush=-1,ot}if(57===i.status)if(t.adler=0,Lt(i,31),Lt(i,139),Lt(i,8),i.gzhead)Lt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Lt(i,255&i.gzhead.time),Lt(i,i.gzhead.time>>8&255),Lt(i,i.gzhead.time>>16&255),Lt(i,i.gzhead.time>>24&255),Lt(i,9===i.level?2:i.strategy>=pt||i.level<2?4:0),Lt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Lt(i,255&i.gzhead.extra.length),Lt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=q(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69;else if(Lt(i,0),Lt(i,0),Lt(i,0),Lt(i,0),Lt(i,0),Lt(i,9===i.level?2:i.strategy>=pt||i.level<2?4:0),Lt(i,3),i.status=xt,Tt(t),0!==i.pending)return i.last_flush=-1,ot;if(69===i.status){if(i.gzhead.extra){let e=i.pending,r=(65535&i.gzhead.extra.length)-i.gzindex;for(;i.pending+r>i.pending_buf_size;){let a=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+a),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>e&&(t.adler=q(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex+=a,Tt(t),0!==i.pending)return i.last_flush=-1,ot;e=0,r-=a}let a=new Uint8Array(i.gzhead.extra);i.pending_buf.set(a.subarray(i.gzindex,i.gzindex+r),i.pending),i.pending+=r,i.gzhead.hcrc&&i.pending>e&&(t.adler=q(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex=0}i.status=73}if(73===i.status){if(i.gzhead.name){let e,r=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>r&&(t.adler=q(t.adler,i.pending_buf,i.pending-r,r)),Tt(t),0!==i.pending)return i.last_flush=-1,ot;r=0}e=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Lt(i,e)}while(0!==e);i.gzhead.hcrc&&i.pending>r&&(t.adler=q(t.adler,i.pending_buf,i.pending-r,r)),i.gzindex=0}i.status=91}if(91===i.status){if(i.gzhead.comment){let e,r=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>r&&(t.adler=q(t.adler,i.pending_buf,i.pending-r,r)),Tt(t),0!==i.pending)return i.last_flush=-1,ot;r=0}e=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Lt(i,e)}while(0!==e);i.gzhead.hcrc&&i.pending>r&&(t.adler=q(t.adler,i.pending_buf,i.pending-r,r))}i.status=103}if(103===i.status){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(Tt(t),0!==i.pending))return i.last_flush=-1,ot;Lt(i,255&t.adler),Lt(i,t.adler>>8&255),t.adler=0}if(i.status=xt,Tt(t),0!==i.pending)return i.last_flush=-1,ot}if(0!==t.avail_in||0!==i.lookahead||e!==it&&i.status!==St){let r=0===i.level?Ot(i,e):i.strategy===pt?((t,e)=>{let i;for(;;){if(0===t.lookahead&&(It(t),0===t.lookahead)){if(e===it)return 1;break}if(t.match_length=0,i=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(Dt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Dt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Dt(t,!1),0===t.strm.avail_out)?1:2})(i,e):i.strategy===ft?((t,e)=>{let i,r,a,s;const n=t.window;for(;;){if(t.lookahead<=bt){if(It(t),t.lookahead<=bt&&e===it)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(a=t.strstart-1,r=n[a],r===n[++a]&&r===n[++a]&&r===n[++a])){s=t.strstart+bt;do{}while(r===n[++a]&&r===n[++a]&&r===n[++a]&&r===n[++a]&&r===n[++a]&&r===n[++a]&&r===n[++a]&&r===n[++a]&&a<s);t.match_length=bt-(s-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(Dt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Dt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(Dt(t,!1),0===t.strm.avail_out)?1:2})(i,e):Pt[i.level].func(i,e);if(3!==r&&4!==r||(i.status=St),1===r||3===r)return 0===t.avail_out&&(i.last_flush=-1),ot;if(2===r&&(e===rt?et(i):e!==nt&&(W(i,0,0,!1),e===at&&(At(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),Tt(t),0===t.avail_out))return i.last_flush=-1,ot}return e!==st?ot:i.wrap<=0?dt:(2===i.wrap?(Lt(i,255&t.adler),Lt(i,t.adler>>8&255),Lt(i,t.adler>>16&255),Lt(i,t.adler>>24&255),Lt(i,255&t.total_in),Lt(i,t.total_in>>8&255),Lt(i,t.total_in>>16&255),Lt(i,t.total_in>>24&255)):(jt(i,t.adler>>>16),jt(i,65535&t.adler)),Tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?ot:dt)},deflateEnd:t=>{if($t(t))return lt;const e=t.state.status;return t.state=null,e===xt?zt(t,ht):ot},deflateSetDictionary:(t,e)=>{let i=e.length;if($t(t))return lt;const r=t.state,a=r.wrap;if(2===a||1===a&&r.status!==kt||r.lookahead)return lt;if(1===a&&(t.adler=X(t.adler,e,i,0)),r.wrap=0,i>=r.w_size){0===a&&(At(r.head),r.strstart=0,r.block_start=0,r.insert=0);let t=new Uint8Array(r.w_size);t.set(e.subarray(i-r.w_size,i),0),e=t,i=r.w_size}const s=t.avail_in,n=t.next_in,o=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,It(r);r.lookahead>=3;){let t=r.strstart,e=r.lookahead-2;do{Mt(r,t),t++}while(--e);r.strstart=t,r.lookahead=2,It(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=n,t.input=o,t.avail_in=s,r.wrap=a,ot},deflateInfo:"pako deflate (from Nodeca project)"};const Jt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Yt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(const e in i)Jt(i,e)&&(t[e]=i[e])}}return t},Gt=t=>{let e=0;for(let i=0,r=t.length;i<r;i++)e+=t[i].length;const i=new Uint8Array(e);for(let e=0,r=0,a=t.length;e<a;e++){let a=t[e];i.set(a,r),r+=a.length}return i};let Wt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Wt=!1}const Qt=new Uint8Array(256);for(let t=0;t<256;t++)Qt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Qt[254]=Qt[255]=1;var te=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,i,r,a,s,n=t.length,o=0;for(a=0;a<n;a++)i=t.charCodeAt(a),55296==(64512&i)&&a+1<n&&(r=t.charCodeAt(a+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),a++)),o+=i<128?1:i<2048?2:i<65536?3:4;for(e=new Uint8Array(o),s=0,a=0;s<o;a++)i=t.charCodeAt(a),55296==(64512&i)&&a+1<n&&(r=t.charCodeAt(a+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),a++)),i<128?e[s++]=i:i<2048?(e[s++]=192|i>>>6,e[s++]=128|63&i):i<65536?(e[s++]=224|i>>>12,e[s++]=128|i>>>6&63,e[s++]=128|63&i):(e[s++]=240|i>>>18,e[s++]=128|i>>>12&63,e[s++]=128|i>>>6&63,e[s++]=128|63&i);return e},ee=(t,e)=>{const i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let r,a;const s=new Array(2*i);for(a=0,r=0;r<i;){let e=t[r++];if(e<128){s[a++]=e;continue}let n=Qt[e];if(n>4)s[a++]=65533,r+=n-1;else{for(e&=2===n?31:3===n?15:7;n>1&&r<i;)e=e<<6|63&t[r++],n--;n>1?s[a++]=65533:e<65536?s[a++]=e:(e-=65536,s[a++]=55296|e>>10&1023,s[a++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Wt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let r=0;r<e;r++)i+=String.fromCharCode(t[r]);return i})(s,a)},ie=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+Qt[t[i]]>e?i:e};var re=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const ae=Object.prototype.toString,{Z_NO_FLUSH:se,Z_SYNC_FLUSH:ne,Z_FULL_FLUSH:oe,Z_FINISH:de,Z_OK:le,Z_STREAM_END:he,Z_DEFAULT_COMPRESSION:ce,Z_DEFAULT_STRATEGY:we,Z_DEFLATED:ue}=Y,pe={level:ce,method:ue,chunkSize:16384,windowBits:15,memLevel:8,strategy:we,legacyHash:!0};function fe(t){this.options=Yt({},pe,t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new re,this.strm.avail_out=0;let i=qt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy,e.legacyHash);if(i!==le)throw new Error(J[i]);if(e.header&&qt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?te(e.dictionary):"[object ArrayBuffer]"===ae.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,i=qt.deflateSetDictionary(this.strm,t),i!==le)throw new Error(J[i]);this._dict_set=!0}}fe.prototype.push=function(t,e){const i=this.strm,r=this.options.chunkSize;let a,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?de:se,"string"==typeof t?i.input=te(t):"[object ArrayBuffer]"===ae.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),(s===ne||s===oe)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(a=qt.deflate(i,s),a===he)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),a=qt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===le;if(0!==i.avail_out){if(s>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},fe.prototype.onData=function(t){this.chunks.push(t)},fe.prototype.onEnd=function(t){t===le&&(this.result=Gt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var _e={gzip:function(t,e){return(e=e||{}).gzip=!0,function(t,e){const i=new fe(e);if(i.push(t,!0),i.err)throw i.msg||J[i.err];return i.result}(t,e)}};const ge=16209;var me=function(t,e){let i,r,a,s,n,o,d,l,h,c,w,u,p,f,_,g,m,y,b,v,k,x,S,z;const E=t.state;i=t.next_in,S=t.input,r=i+(t.avail_in-5),a=t.next_out,z=t.output,s=a-(e-t.avail_out),n=a+(t.avail_out-257),o=E.dmax,d=E.wsize,l=E.whave,h=E.wnext,c=E.window,w=E.hold,u=E.bits,p=E.lencode,f=E.distcode,_=(1<<E.lenbits)-1,g=(1<<E.distbits)-1;t:do{u<15&&(w+=S[i++]<<u,u+=8,w+=S[i++]<<u,u+=8),m=p[w&_];e:for(;;){if(y=m>>>24,w>>>=y,u-=y,y=m>>>16&255,0===y)z[a++]=65535&m;else{if(!(16&y)){if(64&y){if(32&y){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=ge;break t}m=p[(65535&m)+(w&(1<<y)-1)];continue e}for(b=65535&m,y&=15,y&&(u<y&&(w+=S[i++]<<u,u+=8),b+=w&(1<<y)-1,w>>>=y,u-=y),u<15&&(w+=S[i++]<<u,u+=8,w+=S[i++]<<u,u+=8),m=f[w&g];;){if(y=m>>>24,w>>>=y,u-=y,y=m>>>16&255,16&y){if(v=65535&m,y&=15,u<y&&(w+=S[i++]<<u,u+=8,u<y&&(w+=S[i++]<<u,u+=8)),v+=w&(1<<y)-1,v>o){t.msg="invalid distance too far back",E.mode=ge;break t}if(w>>>=y,u-=y,y=a-s,v>y){if(y=v-y,y>l&&E.sane){t.msg="invalid distance too far back",E.mode=ge;break t}if(k=0,x=c,0===h){if(k+=d-y,y<b){b-=y;do{z[a++]=c[k++]}while(--y);k=a-v,x=z}}else if(h<y){if(k+=d+h-y,y-=h,y<b){b-=y;do{z[a++]=c[k++]}while(--y);if(k=0,h<b){y=h,b-=y;do{z[a++]=c[k++]}while(--y);k=a-v,x=z}}}else if(k+=h-y,y<b){b-=y;do{z[a++]=c[k++]}while(--y);k=a-v,x=z}for(;b>2;)z[a++]=x[k++],z[a++]=x[k++],z[a++]=x[k++],b-=3;b&&(z[a++]=x[k++],b>1&&(z[a++]=x[k++]))}else{k=a-v;do{z[a++]=z[k++],z[a++]=z[k++],z[a++]=z[k++],b-=3}while(b>2);b&&(z[a++]=z[k++],b>1&&(z[a++]=z[k++]))}break}if(64&y){t.msg="invalid distance code",E.mode=ge;break t}m=f[(65535&m)+(w&(1<<y)-1)]}}break}}while(i<r&&a<n);b=u>>3,i-=b,u-=b<<3,w&=(1<<u)-1,t.next_in=i,t.next_out=a,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=a<n?n-a+257:257-(a-n),E.hold=w,E.bits=u};const ye=15,be=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ve=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),ke=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),xe=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Se=(t,e,i,r,a,s,n,o)=>{const d=o.bits;let l,h,c,w,u,p,f=0,_=0,g=0,m=0,y=0,b=0,v=0,k=0,x=0,S=0,z=null;const E=new Uint16Array(16),A=new Uint16Array(16);let R,U,M,T=null;for(f=0;f<=ye;f++)E[f]=0;for(_=0;_<r;_++)E[e[i+_]]++;for(y=d,m=ye;m>=1&&0===E[m];m--);if(y>m&&(y=m),0===m)return a[s++]=20971520,a[s++]=20971520,o.bits=1,0;for(g=1;g<m&&0===E[g];g++);for(y<g&&(y=g),k=1,f=1;f<=ye;f++)if(k<<=1,k-=E[f],k<0)return-1;if(k>0&&(0===t||1!==m))return-1;for(A[1]=0,f=1;f<ye;f++)A[f+1]=A[f]+E[f];for(_=0;_<r;_++)0!==e[i+_]&&(n[A[e[i+_]]++]=_);if(0===t?(z=T=n,p=20):1===t?(z=be,T=ve,p=257):(z=ke,T=xe,p=0),S=0,_=0,f=g,u=s,b=y,v=0,c=-1,x=1<<y,w=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){R=f-v,n[_]+1<p?(U=0,M=n[_]):n[_]>=p?(U=T[n[_]-p],M=z[n[_]-p]):(U=96,M=0),l=1<<f-v,h=1<<b,g=h;do{h-=l,a[u+(S>>v)+h]=R<<24|U<<16|M}while(0!==h);for(l=1<<f-1;S&l;)l>>=1;if(0!==l?(S&=l-1,S+=l):S=0,_++,0===--E[f]){if(f===m)break;f=e[i+n[_]]}if(f>y&&(S&w)!==c){for(0===v&&(v=y),u+=g,b=f-v,k=1<<b;b+v<m&&(k-=E[b+v],!(k<=0));)b++,k<<=1;if(x+=1<<b,1===t&&x>852||2===t&&x>592)return 1;c=S&w,a[c]=y<<24|b<<16|u-s}}return 0!==S&&(a[u+S]=f-v<<24|64<<16),o.bits=y,0};const{Z_FINISH:ze,Z_BLOCK:Ee,Z_TREES:Ae,Z_OK:Re,Z_STREAM_END:Ue,Z_NEED_DICT:Me,Z_STREAM_ERROR:Te,Z_DATA_ERROR:De,Z_MEM_ERROR:Le,Z_BUF_ERROR:je,Z_DEFLATED:Ze}=Y,Ce=16180,Ie=16190,Oe=16191,Be=16192,Fe=16194,Ne=16199,Pe=16200,Ve=16206,$e=16209,He=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Xe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ke=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Ce||e.mode>16211?1:0},qe=t=>{if(Ke(t))return Te;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Ce,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,Re},Je=t=>{if(Ke(t))return Te;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,qe(t)},Ye=(t,e)=>{let i;if(Ke(t))return Te;const r=t.state;return e<0?(i=0,e=-e):(i=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Te:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=i,r.wbits=e,Je(t))},Ge=(t,e)=>{if(!t)return Te;const i=new Xe;t.state=i,i.strm=t,i.window=null,i.mode=Ce;const r=Ye(t,e);return r!==Re&&(t.state=null),r};let We,Qe,ti=!0;const ei=t=>{if(ti){We=new Int32Array(512),Qe=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Se(1,t.lens,0,288,We,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Se(2,t.lens,0,32,Qe,0,t.work,{bits:5}),ti=!1}t.lencode=We,t.lenbits=9,t.distcode=Qe,t.distbits=5},ii=(t,e,i,r)=>{let a;const s=t.state;return null===s.window&&(s.window=new Uint8Array(1<<s.wbits)),0===s.wsize&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0),r>=s.wsize?(s.window.set(e.subarray(i-s.wsize,i),0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>r&&(a=r),s.window.set(e.subarray(i-r,i-r+a),s.wnext),(r-=a)?(s.window.set(e.subarray(i-r,i),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0};var ri={inflateReset:Je,inflateReset2:Ye,inflateResetKeep:qe,inflateInit:t=>Ge(t,15),inflateInit2:Ge,inflate:(t,e)=>{let i,r,a,s,n,o,d,l,h,c,w,u,p,f,_,g,m,y,b,v,k,x,S=0;const z=new Uint8Array(4);let E,A;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ke(t)||!t.output||!t.input&&0!==t.avail_in)return Te;i=t.state,i.mode===Oe&&(i.mode=Be),n=t.next_out,a=t.output,d=t.avail_out,s=t.next_in,r=t.input,o=t.avail_in,l=i.hold,h=i.bits,c=o,w=d,x=Re;t:for(;;)switch(i.mode){case Ce:if(0===i.wrap){i.mode=Be;break}for(;h<16;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(2&i.wrap&&35615===l){0===i.wbits&&(i.wbits=15),i.check=0,z[0]=255&l,z[1]=l>>>8&255,i.check=q(i.check,z,2,0),l=0,h=0,i.mode=16181;break}if(i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",i.mode=$e;break}if((15&l)!==Ze){t.msg="unknown compression method",i.mode=$e;break}if(l>>>=4,h-=4,k=8+(15&l),0===i.wbits&&(i.wbits=k),k>15||k>i.wbits){t.msg="invalid window size",i.mode=$e;break}i.dmax=1<<i.wbits,i.flags=0,t.adler=i.check=1,i.mode=512&l?16189:Oe,l=0,h=0;break;case 16181:for(;h<16;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(i.flags=l,(255&i.flags)!==Ze){t.msg="unknown compression method",i.mode=$e;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=$e;break}i.head&&(i.head.text=l>>8&1),512&i.flags&&4&i.wrap&&(z[0]=255&l,z[1]=l>>>8&255,i.check=q(i.check,z,2,0)),l=0,h=0,i.mode=16182;case 16182:for(;h<32;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}i.head&&(i.head.time=l),512&i.flags&&4&i.wrap&&(z[0]=255&l,z[1]=l>>>8&255,z[2]=l>>>16&255,z[3]=l>>>24&255,i.check=q(i.check,z,4,0)),l=0,h=0,i.mode=16183;case 16183:for(;h<16;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}i.head&&(i.head.xflags=255&l,i.head.os=l>>8),512&i.flags&&4&i.wrap&&(z[0]=255&l,z[1]=l>>>8&255,i.check=q(i.check,z,2,0)),l=0,h=0,i.mode=16184;case 16184:if(1024&i.flags){for(;h<16;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}i.length=l,i.head&&(i.head.extra_len=l),512&i.flags&&4&i.wrap&&(z[0]=255&l,z[1]=l>>>8&255,i.check=q(i.check,z,2,0)),l=0,h=0}else i.head&&(i.head.extra=null);i.mode=16185;case 16185:if(1024&i.flags&&(u=i.length,u>o&&(u=o),u&&(i.head&&(k=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(r.subarray(s,s+u),k)),512&i.flags&&4&i.wrap&&(i.check=q(i.check,r,u,s)),o-=u,s+=u,i.length-=u),i.length))break t;i.length=0,i.mode=16186;case 16186:if(2048&i.flags){if(0===o)break t;u=0;do{k=r[s+u++],i.head&&k&&i.length<65536&&(i.head.name+=String.fromCharCode(k))}while(k&&u<o);if(512&i.flags&&4&i.wrap&&(i.check=q(i.check,r,u,s)),o-=u,s+=u,k)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=16187;case 16187:if(4096&i.flags){if(0===o)break t;u=0;do{k=r[s+u++],i.head&&k&&i.length<65536&&(i.head.comment+=String.fromCharCode(k))}while(k&&u<o);if(512&i.flags&&4&i.wrap&&(i.check=q(i.check,r,u,s)),o-=u,s+=u,k)break t}else i.head&&(i.head.comment=null);i.mode=16188;case 16188:if(512&i.flags){for(;h<16;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(4&i.wrap&&l!==(65535&i.check)){t.msg="header crc mismatch",i.mode=$e;break}l=0,h=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=Oe;break;case 16189:for(;h<32;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}t.adler=i.check=He(l),l=0,h=0,i.mode=Ie;case Ie:if(0===i.havedict)return t.next_out=n,t.avail_out=d,t.next_in=s,t.avail_in=o,i.hold=l,i.bits=h,Me;t.adler=i.check=1,i.mode=Oe;case Oe:if(e===Ee||e===Ae)break t;case Be:if(i.last){l>>>=7&h,h-=7&h,i.mode=Ve;break}for(;h<3;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}switch(i.last=1&l,l>>>=1,h-=1,3&l){case 0:i.mode=16193;break;case 1:if(ei(i),i.mode=Ne,e===Ae){l>>>=2,h-=2;break t}break;case 2:i.mode=16196;break;case 3:t.msg="invalid block type",i.mode=$e}l>>>=2,h-=2;break;case 16193:for(l>>>=7&h,h-=7&h;h<32;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if((65535&l)!=(l>>>16^65535)){t.msg="invalid stored block lengths",i.mode=$e;break}if(i.length=65535&l,l=0,h=0,i.mode=Fe,e===Ae)break t;case Fe:i.mode=16195;case 16195:if(u=i.length,u){if(u>o&&(u=o),u>d&&(u=d),0===u)break t;a.set(r.subarray(s,s+u),n),o-=u,s+=u,d-=u,n+=u,i.length-=u;break}i.mode=Oe;break;case 16196:for(;h<14;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(i.nlen=257+(31&l),l>>>=5,h-=5,i.ndist=1+(31&l),l>>>=5,h-=5,i.ncode=4+(15&l),l>>>=4,h-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=$e;break}i.have=0,i.mode=16197;case 16197:for(;i.have<i.ncode;){for(;h<3;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}i.lens[R[i.have++]]=7&l,l>>>=3,h-=3}for(;i.have<19;)i.lens[R[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,E={bits:i.lenbits},x=Se(0,i.lens,0,19,i.lencode,0,i.work,E),i.lenbits=E.bits,x){t.msg="invalid code lengths set",i.mode=$e;break}i.have=0,i.mode=16198;case 16198:for(;i.have<i.nlen+i.ndist;){for(;S=i.lencode[l&(1<<i.lenbits)-1],_=S>>>24,g=S>>>16&255,m=65535&S,!(_<=h);){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(m<16)l>>>=_,h-=_,i.lens[i.have++]=m;else{if(16===m){for(A=_+2;h<A;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(l>>>=_,h-=_,0===i.have){t.msg="invalid bit length repeat",i.mode=$e;break}k=i.lens[i.have-1],u=3+(3&l),l>>>=2,h-=2}else if(17===m){for(A=_+3;h<A;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}l>>>=_,h-=_,k=0,u=3+(7&l),l>>>=3,h-=3}else{for(A=_+7;h<A;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}l>>>=_,h-=_,k=0,u=11+(127&l),l>>>=7,h-=7}if(i.have+u>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=$e;break}for(;u--;)i.lens[i.have++]=k}}if(i.mode===$e)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=$e;break}if(i.lenbits=9,E={bits:i.lenbits},x=Se(1,i.lens,0,i.nlen,i.lencode,0,i.work,E),i.lenbits=E.bits,x){t.msg="invalid literal/lengths set",i.mode=$e;break}if(i.distbits=6,i.distcode=i.distdyn,E={bits:i.distbits},x=Se(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,E),i.distbits=E.bits,x){t.msg="invalid distances set",i.mode=$e;break}if(i.mode=Ne,e===Ae)break t;case Ne:i.mode=Pe;case Pe:if(o>=6&&d>=258){t.next_out=n,t.avail_out=d,t.next_in=s,t.avail_in=o,i.hold=l,i.bits=h,me(t,w),n=t.next_out,a=t.output,d=t.avail_out,s=t.next_in,r=t.input,o=t.avail_in,l=i.hold,h=i.bits,i.mode===Oe&&(i.back=-1);break}for(i.back=0;S=i.lencode[l&(1<<i.lenbits)-1],_=S>>>24,g=S>>>16&255,m=65535&S,!(_<=h);){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(g&&!(240&g)){for(y=_,b=g,v=m;S=i.lencode[v+((l&(1<<y+b)-1)>>y)],_=S>>>24,g=S>>>16&255,m=65535&S,!(y+_<=h);){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}l>>>=y,h-=y,i.back+=y}if(l>>>=_,h-=_,i.back+=_,i.length=m,0===g){i.mode=16205;break}if(32&g){i.back=-1,i.mode=Oe;break}if(64&g){t.msg="invalid literal/length code",i.mode=$e;break}i.extra=15&g,i.mode=16201;case 16201:if(i.extra){for(A=i.extra;h<A;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}i.length+=l&(1<<i.extra)-1,l>>>=i.extra,h-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=16202;case 16202:for(;S=i.distcode[l&(1<<i.distbits)-1],_=S>>>24,g=S>>>16&255,m=65535&S,!(_<=h);){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(!(240&g)){for(y=_,b=g,v=m;S=i.distcode[v+((l&(1<<y+b)-1)>>y)],_=S>>>24,g=S>>>16&255,m=65535&S,!(y+_<=h);){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}l>>>=y,h-=y,i.back+=y}if(l>>>=_,h-=_,i.back+=_,64&g){t.msg="invalid distance code",i.mode=$e;break}i.offset=m,i.extra=15&g,i.mode=16203;case 16203:if(i.extra){for(A=i.extra;h<A;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}i.offset+=l&(1<<i.extra)-1,l>>>=i.extra,h-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=$e;break}i.mode=16204;case 16204:if(0===d)break t;if(u=w-d,i.offset>u){if(u=i.offset-u,u>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=$e;break}u>i.wnext?(u-=i.wnext,p=i.wsize-u):p=i.wnext-u,u>i.length&&(u=i.length),f=i.window}else f=a,p=n-i.offset,u=i.length;u>d&&(u=d),d-=u,i.length-=u;do{a[n++]=f[p++]}while(--u);0===i.length&&(i.mode=Pe);break;case 16205:if(0===d)break t;a[n++]=i.length,d--,i.mode=Pe;break;case Ve:if(i.wrap){for(;h<32;){if(0===o)break t;o--,l|=r[s++]<<h,h+=8}if(w-=d,t.total_out+=w,i.total+=w,4&i.wrap&&w&&(t.adler=i.check=i.flags?q(i.check,a,w,n-w):X(i.check,a,w,n-w)),w=d,4&i.wrap&&(i.flags?l:He(l))!==i.check){t.msg="incorrect data check",i.mode=$e;break}l=0,h=0}i.mode=16207;case 16207:if(i.wrap&&i.flags){for(;h<32;){if(0===o)break t;o--,l+=r[s++]<<h,h+=8}if(4&i.wrap&&l!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=$e;break}l=0,h=0}i.mode=16208;case 16208:x=Ue;break t;case $e:x=De;break t;case 16210:return Le;default:return Te}return t.next_out=n,t.avail_out=d,t.next_in=s,t.avail_in=o,i.hold=l,i.bits=h,(i.wsize||w!==t.avail_out&&i.mode<$e&&(i.mode<Ve||e!==ze))&&ii(t,t.output,t.next_out,w-t.avail_out),c-=t.avail_in,w-=t.avail_out,t.total_in+=c,t.total_out+=w,i.total+=w,4&i.wrap&&w&&(t.adler=i.check=i.flags?q(i.check,a,w,t.next_out-w):X(i.check,a,w,t.next_out-w)),t.data_type=i.bits+(i.last?64:0)+(i.mode===Oe?128:0)+(i.mode===Ne||i.mode===Fe?256:0),(0===c&&0===w||e===ze)&&x===Re&&(x=je),x},inflateEnd:t=>{if(Ke(t))return Te;let e=t.state;return e.window&&(e.window=null),t.state=null,Re},inflateGetHeader:(t,e)=>{if(Ke(t))return Te;const i=t.state;return 2&i.wrap?(i.head=e,e.done=!1,Re):Te},inflateSetDictionary:(t,e)=>{const i=e.length;let r,a,s;return Ke(t)?Te:(r=t.state,0!==r.wrap&&r.mode!==Ie?Te:r.mode===Ie&&(a=1,a=X(a,e,i,0),a!==r.check)?De:(s=ii(t,e,i,i),s?(r.mode=16210,Le):(r.havedict=1,Re)))},inflateInfo:"pako inflate (from Nodeca project)"};var ai=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const si=Object.prototype.toString,{Z_NO_FLUSH:ni,Z_FINISH:oi,Z_OK:di,Z_STREAM_END:li,Z_NEED_DICT:hi,Z_STREAM_ERROR:ci,Z_DATA_ERROR:wi,Z_MEM_ERROR:ui,Z_BUF_ERROR:pi}=Y,fi={chunkSize:65536,windowBits:15,to:""};function _i(t){this.options=Yt({},fi,t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new re,this.strm.avail_out=0;let i=ri.inflateInit2(this.strm,e.windowBits);if(i!==di)throw new Error(J[i]);if(this.header=new ai,ri.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=te(e.dictionary):"[object ArrayBuffer]"===si.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=ri.inflateSetDictionary(this.strm,e.dictionary),i!==di)))throw new Error(J[i])}_i.prototype.push=function(t,e){const i=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let s,n,o;if(this.ended)return!1;for(n=e===~~e?e:!0===e?oi:ni,"[object ArrayBuffer]"===si.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(r),i.next_out=0,i.avail_out=r),s=ri.inflate(i,n),s===hi&&a&&(s=ri.inflateSetDictionary(i,a),s===di?s=ri.inflate(i,n):s===wi&&(s=hi));i.avail_in>0&&s===li&&2&i.state.wrap&&0!==i.state.flags&&0!==i.input[i.next_in];)ri.inflateReset(i),s=ri.inflate(i,n);switch(s){case ci:case wi:case hi:case ui:return this.onEnd(s),this.ended=!0,!1}if(o=i.avail_out,i.next_out&&(0===i.avail_out||s===li||n>0))if("string"===this.options.to){let t=ie(i.output,i.next_out),e=i.next_out-t,a=ee(i.output,t);i.next_out=e,i.avail_out=r-e,e&&i.output.set(i.output.subarray(t,t+e),0),this.onData(a)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out)),i.avail_out=0,i.next_out=0;if(s!==di&&s!==pi||0!==o){if(s===li)return s=ri.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===i.avail_in){if(n===oi)return s=ri.inflateEnd(this.strm),this.onEnd(s===di?pi:s),this.ended=!0,!1;break}}}return!0},_i.prototype.onData=function(t){this.chunks.push(t)},_i.prototype.onEnd=function(t){t===di&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Gt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var gi={ungzip:function(t,e){const i=new _i(e);if(i.push(t,!0),i.err)throw i.msg||J[i.err];return i.result}};const{gzip:mi}=_e,{ungzip:yi}=gi;var bi=mi,vi=yi;
6
+ /*!
7
+ * Copyright (c) 2020-2023 Digital Bazaar, Inc. All rights reserved.
8
+ */
9
+ class ki{constructor({length:t,buffer:e,leftToRightIndexing:i,littleEndianBits:r}={}){if(t&&e)throw new Error('Only one of "length" or "buffer" must be given.');if(void 0!==t?s(t,"length"):o(e,"buffer"),void 0!==r){if(void 0!==i)throw new Error('Using both "littleEndianBits" and "leftToRightIndexing" is not allowed.');n(r,"littleEndianBits"),i=r}void 0===i?i=!0:n(i,"leftToRightIndexing"),t?(this.bits=new Uint8Array(Math.ceil(t/8)),this.length=t):(this.bits=new Uint8Array(e.buffer),this.length=8*e.length),this.leftToRightIndexing=i}set(t,e){a(t,"position"),n(e,"on");const{length:i,leftToRightIndexing:r}=this,{index:s,bit:o}=xi(t,i,r);e?this.bits[s]|=o:this.bits[s]&=255^o}get(t){a(t,"position");const{length:e,leftToRightIndexing:i}=this,{index:r,bit:s}=xi(t,e,i);return!!(this.bits[r]&s)}async encodeBits(){return t(bi(this.bits))}static async decodeBits({encoded:t}){return function(t,e){if("string"!=typeof t)throw new TypeError(`"${e}" must be a string.`)}(t,"encoded"),vi(e(t))}async compressBits(){return bi(this.bits)}static async uncompressBits({compressed:t}){return o(t,"compressed"),vi(t)}}function xi(t,e,i){if(function(t,e){if(!(Number.isInteger(t)&&t>=0))throw new TypeError(`"${e}" must be a non-negative integer.`)}(t,"position"),s(e,"length"),n(i,"leftToRightIndexing"),t>=e)throw new Error(`Position "${t}" is out of range "0-${e-1}".`);const r=t%8;return{index:Math.floor(t/8),bit:1<<(i?7-r:r)}}
10
+ /*!
11
+ * Copyright (c) 2023-2024 Digital Bazaar, Inc. All rights reserved.
12
+ */
13
+ /*!
14
+ * Copyright (c) 2021-2024 Digital Bazaar, Inc. All rights reserved.
15
+ */
16
+ const Si=new Map,zi=new Map,Ei=new Map;function Ai({contextsMap:t,metadataMap:e,namedMap:i,metadata:r}){t.set(r.id,r.context),e.set(r.id,r),i.set(r.shortName,r)}Ai({contextsMap:Si,metadataMap:zi,namedMap:Ei,metadata:{id:"https://www.w3.org/ns/credentials/undefined-terms/v2",type:"ContextMetadata",shortName:"undefined-terms-v2",url:new URL("../contexts/undefined-terms-v2.jsonld",import.meta.url),context:{"@context":{"@vocab":"https://www.w3.org/ns/credentials/undefined-term#"}}}}),Ai({contextsMap:Si,metadataMap:zi,namedMap:Ei,metadata:{id:"https://www.w3.org/2018/credentials/v1",type:"ContextMetadata",shortName:"v1",url:new URL("../contexts/v1.jsonld",import.meta.url),context:{"@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",credentialSchema:{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",JsonSchemaValidator2018:"cred:JsonSchemaValidator2018"}},credentialStatus:{"@id":"cred:credentialStatus","@type":"@id"},credentialSubject:{"@id":"cred:credentialSubject","@type":"@id"},evidence:{"@id":"cred:evidence","@type":"@id"},expirationDate:{"@id":"cred:expirationDate","@type":"xsd:dateTime"},holder:{"@id":"cred:holder","@type":"@id"},issued:{"@id":"cred:issued","@type":"xsd:dateTime"},issuer:{"@id":"cred:issuer","@type":"@id"},issuanceDate:{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",ManualRefreshService2018:"cred:ManualRefreshService2018"}},termsOfUse:{"@id":"cred:termsOfUse","@type":"@id"},validFrom:{"@id":"cred:validFrom","@type":"xsd:dateTime"},validUntil:{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",holder:{"@id":"cred:holder","@type":"@id"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},verifiableCredential:{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},EcdsaSecp256r1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},Ed25519Signature2018:{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},RsaSignature2018:{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,"@protected":!0,challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,"@protected":!0,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}}}}),Ai({contextsMap:Si,metadataMap:zi,namedMap:Ei,metadata:{id:"https://www.w3.org/ns/credentials/v2",type:"ContextMetadata",shortName:"v2",url:new URL("../contexts/v2.jsonld",import.meta.url),context:{"@context":{"@protected":!0,id:"@id",type:"@type",description:"https://schema.org/description",digestMultibase:{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},digestSRI:{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},mediaType:{"@id":"https://schema.org/encodingFormat"},name:"https://schema.org/name",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":!0,id:"@id",type:"@type",confidenceMethod:{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},credentialSchema:{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},credentialStatus:{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},credentialSubject:{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},description:"https://schema.org/description",evidence:{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},issuer:{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},name:"https://schema.org/name",proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},relatedResource:{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},renderMethod:{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},validFrom:{"@id":"https://www.w3.org/2018/credentials#validFrom","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},validUntil:{"@id":"https://www.w3.org/2018/credentials#validUntil","@type":"http://www.w3.org/2001/XMLSchema#dateTime"}}},EnvelopedVerifiableCredential:"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@protected":!0,id:"@id",type:"@type",holder:{"@id":"https://www.w3.org/2018/credentials#holder","@type":"@id"},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},verifiableCredential:{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},EnvelopedVerifiablePresentation:"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",JsonSchemaCredential:"https://www.w3.org/2018/credentials#JsonSchemaCredential",JsonSchema:{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":!0,id:"@id",type:"@type",jsonSchema:{"@id":"https://www.w3.org/2018/credentials#jsonSchema","@type":"@json"}}},BitstringStatusListCredential:"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential",BitstringStatusList:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":!0,id:"@id",type:"@type",encodedList:{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",ttl:"https://www.w3.org/ns/credentials/status#ttl"}},BitstringStatusListEntry:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":!0,id:"@id",type:"@type",statusListCredential:{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},statusListIndex:"https://www.w3.org/ns/credentials/status#statusListIndex",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",statusMessage:{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":!0,id:"@id",type:"@type",message:"https://www.w3.org/ns/credentials/status#message",status:"https://www.w3.org/ns/credentials/status#status"}},statusReference:{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},statusSize:{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#integer"}}},DataIntegrityProof:{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"},proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},_sd:{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},_sd_alg:{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},aud:{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},cnf:{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":!0,kid:{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},jwk:{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},exp:{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iat:{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iss:{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},jku:{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},kid:{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},nbf:{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},sub:{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},x5u:{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}}}});
17
+ /*!
18
+ * Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
19
+ */
20
+ const Ri=new RegExp("-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](.[0-9]+)?|(24:00:00(.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?"),Ui=Ei.get("v1").id,Mi=Ei.get("v2").id,Ti=new Map([[Ui,1],[Mi,2]]);function Di({credential:t,prop:e}){const i=t[e];if(!Ri.test(i))throw new Error(`"${e}" must be a valid date: ${i}`)}function Li({credential:t,version:e}){return function({credential:t}={}){const e=t?.["@context"]?.[0];return Ti.get(e)}({credential:t})===e}function ji({t1:t,t2:e,maxClockSkew:i}){return Math.abs(t-e)<1e3*i?0:t<e?-1:1}
21
+ /*!
22
+ * Copyright (c) 2019-2024 Digital Bazaar, Inc. All rights reserved.
23
+ */const Zi=new Map([...Si]);
24
+ /*!
25
+ * Copyright (c) 2019-2023 Digital Bazaar, Inc. All rights reserved.
26
+ */
27
+ /*!
28
+ * Copyright (c) 2019-2023 Digital Bazaar, Inc. All rights reserved.
29
+ */
30
+ const{purposes:{AssertionProofPurpose:Ci}}=i;class Ii extends Ci{constructor({controller:t,date:e,maxTimestampDelta:i}={}){super({controller:t,date:e,maxTimestampDelta:i})}async validate(t,{document:e,suite:i,verificationMethod:a,documentLoader:s}){try{const n=await super.validate(t,{document:e,suite:i,verificationMethod:a,documentLoader:s});if(!n.valid)throw n.error;const o=r.getValues(e,"issuer");if(!o||0===o.length)throw new Error("Credential issuer is required.");const d="string"==typeof o[0]?o[0]:o[0].id;if(n.controller.id!==d)throw new Error("Credential issuer must match the verification method controller.");return{valid:!0}}catch(t){return{valid:!1,error:t}}}}
31
+ /**
32
+ * A JavaScript implementation of Verifiable Credentials.
33
+ *
34
+ * @author Dave Longley
35
+ * @author David I. Lehn
36
+ *
37
+ * @license BSD 3-Clause License
38
+ * Copyright (c) 2017-2025 Digital Bazaar, Inc.
39
+ * All rights reserved.
40
+ *
41
+ * Redistribution and use in source and binary forms, with or without
42
+ * modification, are permitted provided that the following conditions are met:
43
+ *
44
+ * Redistributions of source code must retain the above copyright notice,
45
+ * this list of conditions and the following disclaimer.
46
+ *
47
+ * Redistributions in binary form must reproduce the above copyright
48
+ * notice, this list of conditions and the following disclaimer in the
49
+ * documentation and/or other materials provided with the distribution.
50
+ *
51
+ * Neither the name of the Digital Bazaar, Inc. nor the names of its
52
+ * contributors may be used to endorse or promote products derived from
53
+ * this software without specific prior written permission.
54
+ *
55
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
56
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
57
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
58
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
59
+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
60
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
61
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
62
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
63
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
64
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
65
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
66
+ */const{AssertionProofPurpose:Oi,AuthenticationProofPurpose:Bi}=i.purposes,Fi=i.extendContextLoader(async function(t){const e=Zi.get(t);if(void 0!==e)return{contextUrl:null,documentUrl:t,document:e};throw new Error(`Document loader unable to load URL "${t}".`)});async function Ni(t={}){const{credential:e}=t;try{if(!e)throw new TypeError('A "credential" property is required for verifying.');return await async function(t={}){const{credential:e,checkStatus:a,now:s,maxClockSkew:n}=t;if(function({credential:t,now:e=new Date,mode:i="verify",maxClockSkew:a=300}={}){"string"==typeof e&&(e=new Date(e));if(function({context:t}){if(!Ti.has(t[0]))throw new Error(`"${Ui}" or "${Mi}" needs to be first in the list of contexts.`)}({context:t["@context"]}),!t.type)throw new Error('"type" property is required.');if(!r.getValues(t,"type").includes("VerifiableCredential"))throw new Error('"type" must include `VerifiableCredential`.');if(function({credential:t}){if(!t?.credentialSubject)throw new Error('"credentialSubject" property is required.');if(Array.isArray(t?.credentialSubject))return t?.credentialSubject.map(t=>Hi({subject:t}));Hi({subject:t?.credentialSubject})}({credential:t}),!t.issuer)throw new Error('"issuer" property is required.');if(Li({credential:t,version:1})){if(!t.issuanceDate)throw new Error('"issuanceDate" property is required.');if(Di({credential:t,prop:"issuanceDate"}),r.getValues(t,"issuanceDate").length>1)throw new Error('"issuanceDate" property can only have one value.');if("expirationDate"in t&&(Di({credential:t,prop:"expirationDate"}),"verify"===i)){if(ji({t1:e,t2:new Date(t.expirationDate),maxClockSkew:a})>0)throw new Error("Credential has expired.")}if("verify"===i){if(ji({t1:new Date(t.issuanceDate),t2:e,maxClockSkew:a})>0)throw new Error(`The current date time (${e.toISOString()}) is before the "issuanceDate" (${t.issuanceDate}).`)}}if(Li({credential:t,version:2})){let{validUntil:r,validFrom:s}=t;if(r&&(Di({credential:t,prop:"validUntil"}),"verify"===i&&(r=new Date(t.validUntil),ji({t1:e,t2:r,maxClockSkew:a})>0)))throw new Error(`The current date time (${e.toISOString()}) is after "validUntil" (${t.validUntil}).`);if(s&&(Di({credential:t,prop:"validFrom"}),"verify"===i&&(s=new Date(t.validFrom),ji({t1:s,t2:e,maxClockSkew:a})>0)))throw new Error(`The current date time (${e.toISOString()}) is before "validFrom" (${t.validFrom}).`)}if(r.getValues(t,"issuer").length>1)throw new Error('"issuer" property can only have one value.');if("issuer"in t){const e=Pi(t.issuer);if(!e)throw new Error('"issuer" id is required.');qi({id:e,propertyName:"issuer"})}r.getValues(t,"credentialStatus").forEach(t=>{if("id"in t&&qi({id:t.id,propertyName:"credentialStatus.id"}),!t.type)throw new Error('"credentialStatus" must include a type.')}),r.getValues(t,"evidence").forEach(t=>{const e=Pi(t);e&&qi({id:e,propertyName:"evidence"})});for(const e of Vi)if(e in t){const i=t[e];if(Array.isArray(i)){i.forEach(t=>$i(t,e));continue}$i(i,e)}}({credential:e,now:s,maxClockSkew:n}),e.credentialStatus&&"function"!=typeof t.checkStatus)throw new TypeError('A "checkStatus" function must be given to verify credentials with "credentialStatus".');const o=t.documentLoader||Fi,{controller:d}=t,l=t.purpose||new Ii({controller:d}),h=await i.verify(e,{...t,purpose:l,documentLoader:o});if(!h.verified)return h;e.credentialStatus&&(h.statusResult=await a(t),h.statusResult.verified||(h.verified=!1));return h}(t)}catch(t){return{verified:!1,results:[{credential:e,verified:!1,error:t}],error:t}}}function Pi(t){return"string"==typeof t?t:"id"in t?t.id:void 0}const Vi=["proof","credentialStatus","termsOfUse","evidence"];function $i(t,e){if(!Xi(t))throw new Error(`property "${e}" must be an object.`);if(Ki(t))throw new Error(`property "${e}" can not be an empty object.`);if(!("type"in t))throw new Error(`property "${e}" must have property type.`)}function Hi({subject:t}){if(!1===Xi(t))throw new Error('"credentialSubject" must be a non-null object.');if(Ki(t))throw new Error('"credentialSubject" must make a claim.');t.id&&qi({id:t.id,propertyName:"credentialSubject.id"})}function Xi(t){return null!==t&&"object"==typeof t}function Ki(t){return!Xi(t)||0===Object.keys(t).length}function qi({id:t,propertyName:e}){let i;try{i=new URL(t)}catch(i){const r=new TypeError(`"${e}" must be a URI: "${t}".`);throw r.cause=i,r}if(!i.protocol)throw new TypeError(`"${e}" must be a URI: "${t}".`)}export{ki as B,Ei as n,Ni as v};
@@ -0,0 +1,23 @@
1
+ import{u as e,f as t,w as r}from"./main.js";import{s as n}from"./sha2-CJXzPerd-BVhQN7q7.js";import{e as i,w as c,F as s,p as u}from"./weierstrass-qx_4bPUU-BwaVz9Sr.js";
2
+ /*!
3
+ * Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
4
+ */
5
+ const o="ECDSA",y=!0,a="https://w3id.org/security/suites/ecdsa-2019/v1",f="https://w3id.org/security/multikey/v1",l="z",p=new Uint8Array([231,1]),b=new Uint8Array([128,36]),w=new Uint8Array([129,36]),d=new Uint8Array([130,36]),k=new Uint8Array([129,38]),K=new Uint8Array([134,38]),h=new Uint8Array([135,38]),g=new Uint8Array([136,38]),m="P-256",v="P-384",x="P-521",A="K-256",E="SHA-256",M="SHA-384",U="SHA-512",C=globalThis.crypto,j=globalThis.CryptoKey??C.CryptoKey;function T({curve:e}){if(e===m||e===A)return E;if(e===v)return M;if(e===x)return U;throw new TypeError(`Unsupported curve "${e}".`)}
6
+ /*!
7
+ * Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
8
+ */function B({publicMultikey:e}){if(e[0]===b[0]&&e[1]===b[1])return m;if(e[0]===w[0]&&e[1]===w[1])return v;if(e[0]===d[0]&&e[1]===d[1])return x;if(e[0]===p[0]&&e[1]===p[1])return A;throw new TypeError("Unsupported public multikey header.")}function P({secretMultikey:e}){if(e[0]===K[0]&&e[1]===K[1])return m;if(e[0]===h[0]&&e[1]===h[1])return v;if(e[0]===g[0]&&e[1]===g[1])return x;if(e[0]===k[0]&&e[1]===k[1])return A;throw new TypeError("Unsupported secret multikey header.")}function I({curve:e}){if(e===m||e===A)return 32;if(e===v)return 48;if(e===x)return 66;throw new TypeError(`Unsupported curve "${e}".`)}
9
+ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
10
+ const S={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},$={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},D=BigInt(2);const H=s(S.p,{sqrt:function(e){const t=S.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),c=BigInt(22),s=BigInt(23),o=BigInt(44),y=BigInt(88),a=e*e*e%t,f=a*a*e%t,l=u(f,r,t)*f%t,p=u(l,r,t)*f%t,b=u(p,D,t)*a%t,w=u(b,i,t)*b%t,d=u(w,c,t)*w%t,k=u(d,o,t)*d%t,K=u(k,y,t)*k%t,h=u(K,o,t)*d%t,g=u(h,r,t)*f%t,m=u(g,s,t)*w%t,v=u(m,n,t)*a%t,x=u(v,D,t);if(!H.eql(H.sqr(x),e))throw new Error("Cannot find square root");return x}}),q=i(c(S,{Fp:H,endo:$}),n);class X{constructor(e){this.ec={...q},null!=e.priv&&(this.priv=e.priv),null!=e.pub&&(this.pub=e.pub)}static hexToBytes(e){if("string"!=typeof e)throw new Error("hex string expected");if(e.length%2)throw new Error("hex string must have even length");const t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=parseInt(e.substr(2*n,2),16);return r}static bytesToHex(e){return Array.from(e||[]).map(e=>e.toString(16).padStart(2,"0")).join("")}static keyFromPublic(e,t="hex"){const r="hex"===t?X.hexToBytes(e):e;return new X({pub:r})}getPublic(e=!0,t="hex"){this.pub||(this.pub=this.ec.getPublicKey(this.priv,!1));let r=this.pub;const n=this.ec.Point.fromHex(X.bytesToHex(r)).toHex(e);return r=X.hexToBytes(n),"hex"===t?X.bytesToHex(r):r}}
11
+ /*!
12
+ * Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
13
+ */const F=new Map([[m,{secret:new Uint8Array([48,103,2,1,0,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,4,77,48,75,2,1,1,4,32]),public:new Uint8Array([161,36,3,34,0])}],[v,{secret:new Uint8Array([48,129,132,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,4,109,48,107,2,1,1,4,48]),public:new Uint8Array([161,52,3,50,0])}],[x,{secret:new Uint8Array([48,129,170,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,35,4,129,146,48,129,143,2,1,1,4,66]),public:new Uint8Array([161,70,3,68,0])}],[A,{secret:new Uint8Array([48,129,132,2,1,0,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10,4,109,48,107,2,1,1,4,32]),public:new Uint8Array([161,68,3,66,0])}]]),V=new Map([[m,new Uint8Array([48,57,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,34,0])],[v,new Uint8Array([48,70,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,34,3,50,0])],[x,new Uint8Array([48,88,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,35,3,68,0])],[A,new Uint8Array([48,86,48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10,3,66,0])]]);function J(e){return Uint8Array.from(X.keyFromPublic(e,"bytes").getPublic(!1,"array"))}async function _({id:e,controller:r,secretKeyMultibase:n,publicKeyMultibase:i,keyAgreement:c=!1}){if(!i)throw new TypeError('The "publicKeyMultibase" property is required.');const s={id:e,controller:r};if(!i||"string"!=typeof i||i[0]!==l)throw new TypeError('"publicKeyMultibase" must be a multibase, base58-encoded string.');const u=t(i.slice(1)),a={name:c?"ECDH":o,namedCurve:B({publicMultikey:u})},f=function({publicMultikey:e}){const t=B({publicMultikey:e});let r=e.subarray(2);t===A&&(r=J(r));return function({curve:e,publicKey:t}){const r=V.get(e),n=new Uint8Array(r.length+t.length);let i=0;return n.set(r,i),i+=r.length,n.set(t,i),n}
14
+ /*!
15
+ * Copyright (c) 2023 Digital Bazaar, Inc. All rights reserved.
16
+ */({curve:t,publicKey:r})}({publicMultikey:u}),p=c?[]:["verify"];if(a.namedCurve===A){const{Crypto:e}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js"),t=new e;s.publicKey=await t.subtle.importKey("spki",f,a,y,p)}else s.publicKey=await C.subtle.importKey("spki",f,a,y,p);if(n){if("string"!=typeof n||n[0]!==l)throw new TypeError('"secretKeyMultibase" must be a multibase, base58-encoded string.');const e=t(n.slice(1));!function({secretMultikey:e,publicMultikey:t}){const r=B({publicMultikey:t}),n=P({secretMultikey:e});if(r!==n)throw new Error(`Public key curve ('${r}') does not match secret key curve ('${n}').`)}({secretMultikey:e,publicMultikey:u});const r=function({secretMultikey:e,publicMultikey:t}){const r=P({secretMultikey:e}),n=e.subarray(2),i=t.subarray(2);return function({curve:e,secretKey:t,publicKey:r}){const n=F.get(e);if(!n)throw new Error(`Unsupported curve "${e}".`);e===A&&(r=J(r));const i=new Uint8Array(n.secret.length+t.length+n.public.length+r.length);let c=0;return i.set(n.secret,c),c+=n.secret.length,i.set(t,c),c+=t.length,i.set(n.public,c),c+=n.public.length,i.set(r,c),i}({curve:r,secretKey:n,publicKey:i})}({secretMultikey:e,publicMultikey:u}),i=c?["deriveBits"]:["sign"];if(a.namedCurve===A){const{Crypto:e}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js"),t=new e;s.secretKey=await t.subtle.importKey("pkcs8",r,a,y,i)}else s.secretKey=await C.subtle.importKey("pkcs8",r,a,y,i)}return s}function z({jwk:t}={}){if("EC"!==t?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:r}=t,n=I({curve:r}),i=e(t.x),c=e(t.y),s=new Uint8Array(n+1),u=c[c.length-1]%2==0;return s[0]=u?2:3,s.set(i,s.length-i.length),s}function G({jwk:t}={}){if("EC"!==t?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:n}=t,i=I({curve:n}),c=e(t.x),s=e(t.y),u=new Uint8Array(2+(i+1));!function({curve:e,buffer:t}){if(e===m)t[0]=b[0],t[1]=b[1];else if(e===v)t[0]=w[0],t[1]=w[1];else if(e===x)t[0]=d[0],t[1]=d[1];else{if(e!==A)throw new TypeError(`Unsupported curve "${e}".`);t[0]=p[0],t[1]=p[1]}}({curve:n,buffer:u});const o=s[s.length-1]%2==0;u[2]=o?2:3,u.set(c,u.length-c.length);return l+r(u)}function N({jwk:t}={}){if("EC"!==t?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:n}=t,i=I({curve:n}),c=e(t.d),s=new Uint8Array(2+i);!function({curve:e,buffer:t}){if(e===m)t[0]=K[0],t[1]=K[1];else if(e===v)t[0]=h[0],t[1]=h[1];else if(e===x)t[0]=g[0],t[1]=g[1];else{if(e!==A)throw new TypeError(`Unsupported curve "${e}".`);t[0]=k[0],t[1]=k[1]}}({curve:t.crv,buffer:s}),s.set(c,s.length-c.length);return l+r(s)}const O=new Set(["EcdsaSecp256r1VerificationKey2019","EcdsaSecp384r1VerificationKey2019","EcdsaSecp521r1VerificationKey2019","EcdsaSecp256k1VerificationKey2019"]);async function L({keyPair:e}){if(!O.has(e.type))throw new TypeError(`Unsupported key type "${e.type}".`);if(e["@context"]||(e["@context"]=a),!function({document:e,contextUrl:t}){const r=e["@context"];return r===t||Array.isArray(r)&&r.includes(t)}
17
+ /*!
18
+ * Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
19
+ */({document:e,contextUrl:a}))throw new TypeError(`Context not supported "${e["@context"]}".`);return{"@context":f,id:e.id,type:"Multikey",controller:e.controller,publicKeyMultibase:e.publicKeyMultibase,secretKeyMultibase:e.secretKeyMultibase}}async function Q(e,t={}){"boolean"==typeof t&&(t={keyAgreement:t});const{keyAgreement:r}=t;let n={...e};if("Multikey"!==n.type){if(n.publicKeyJwk)return async function({jwk:e,secretKey:t=!1}={}){const r={"@context":f,type:"Multikey",publicKeyMultibase:G({jwk:e})};t&&e.d&&(r.secretKeyMultibase=N({jwk:e}));const n=!e.key_ops||e.key_ops.includes("deriveBits");return Q(r,n)}({jwk:n.publicKeyJwk,secretKey:!1});if(n.type)return n=await L({keyPair:n}),W({keyPair:n,keyAgreement:r})}return n.type||(n.type="Multikey"),n["@context"]||(n["@context"]=f),n.controller&&!n.id&&(n.id=`${e.controller}#${e.publicKeyMultibase}`),function(e){if(!e||"object"!=typeof e)throw new TypeError('"key" must be an object.');if("Multikey"!==e.type)throw new TypeError('"key" must be a Multikey with type "Multikey".');if(!(e["@context"]===f||Array.isArray(e["@context"])&&e["@context"].includes(f)))throw new TypeError(`"key" must be a Multikey with context "${f}".`)}(n),W({keyPair:n,keyAgreement:r})}async function R({keyPair:e,secretKey:t=!1}={}){e?.publicKey instanceof j||(e=await _(e));const r=t&&!!e.secretKey?e.secretKey:e.publicKey;let n;if(e.publicKey.algorithm.namedCurve===A){const{Crypto:e}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js"),t=new e;n=await t.subtle.exportKey("jwk",r)}else n=await C.subtle.exportKey("jwk",r);return n}async function W({keyPair:t,keyAgreement:r=!1}){t?.publicKey instanceof j||t.publicKey?.algorithm.namedCurve===A||(t=await _(t));const n=async({publicKey:r=!0,secretKey:n=!1,includeContext:i=!0,raw:c=!1}={})=>{if(c){const i=await R({keyPair:t,secretKey:n}),c={};return r&&(c.publicKey=z({jwk:i})),n&&(c.secretKey=function({jwk:t}={}){if("EC"!==t?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:r}=t,n=I({curve:r}),i=e(t.d),c=new Uint8Array(n);return c.set(i,c.length-i.length),c}({jwk:i})),c}return async function({keyPair:e,secretKey:t,publicKey:r,includeContext:n}={}){if(!r&&!t)throw new TypeError('Export requires specifying either "publicKey" or "secretKey".');const i=t&&!!e.secretKey,c=i?e.secretKey:e.publicKey;let s;if(c.algorithm.namedCurve===A){const{Crypto:e}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js"),t=new e;s=await t.subtle.exportKey("jwk",c)}else s=await C.subtle.exportKey("jwk",c);const u={};return n&&(u["@context"]=f),u.id=e.id,u.type="Multikey",u.controller=e.controller,r&&(u.publicKeyMultibase=G({jwk:s})),i&&(u.secretKeyMultibase=N({jwk:s})),u}({keyPair:t,publicKey:r,secretKey:n,includeContext:i})},{publicKeyMultibase:i,secretKeyMultibase:c}=await n({publicKey:!0,secretKey:!0,includeContext:!0});return t={...t,publicKeyMultibase:i,secretKeyMultibase:c,keyAgreement:r,export:n,signer(){const{id:e,secretKey:r}=t;
20
+ /*!
21
+ * Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
22
+ */
23
+ return function({id:e,secretKey:t}){if(!t)throw new Error('"secretKey" is required for signing.');const{namedCurve:r}=t.algorithm,n={name:o,hash:{name:T({curve:r})}};return{algorithm:r,id:e,async sign({data:e}={}){if(r===A){const{Crypto:r}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js"),i=new r;return new Uint8Array(await i.subtle.sign(n,t,e))}return new Uint8Array(await C.subtle.sign(n,t,e))}}}({id:e,secretKey:r})},verifier(){const{id:e,publicKey:r}=t;return function({id:e,publicKey:t}){if(!t)throw new Error('"publicKey" is required for verifying.');const{namedCurve:r}=t.algorithm,n={name:o,hash:{name:T({curve:r})}};return{algorithm:r,id:e,async verify({data:e,signature:i}={}){if(r===A){const{Crypto:r}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js");return(new r).subtle.verify(n,t,i,e)}return C.subtle.verify(n,t,i,e)}}}({id:e,publicKey:r})},async deriveSecret({publicKey:e,remotePublicKey:r}={}){if(r&&e)throw new Error('Only one of "remotePublicKey" and "publicKey" must be given.');if(!t.keyAgreement){const e=Error('"keyAgreement" is not supported by this keypair.');throw e.name="NotSupportedError",e}return async function({localKeyPair:e,remoteKeyPair:t}){if(!e.secretKey){const e=Error('"secretKey" required to derive secret.');throw e.name="NotSupportedError",e}e=await _({...e,keyAgreement:!0}),t=await _({...t,keyAgreement:!0});const{namedCurve:r}=e.secretKey.algorithm,n=I({curve:r});if(r===A){const{Crypto:i}=await import("./webcrypto.es-D4KX-5fg-gGk5JRJH.js"),c=new i,s=await c.subtle.deriveBits({name:"ECDH",namedCurve:r,public:t.publicKey},e.secretKey,8*n);return new Uint8Array(s,0,n)}const i=await C.subtle.deriveBits({name:"ECDH",namedCurve:r,public:t.publicKey},e.secretKey,8*n);return new Uint8Array(i,0,n)}({localKeyPair:this,remoteKeyPair:r||e})}}}export{z as a,Q as f,R as t};
@@ -1,4 +1,4 @@
1
- import{c as t,_ as e,g as r}from"./downloadPDF-BU6CfP-N.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.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.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.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,Di,ji={};function Bi(){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,ji.f=Object.getOwnPropertySymbols),ji),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 zi(){if(wr)return br;wr=1;var t=ne(),e=Bi(),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 Ui(){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 Fi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=zi(),o=Ui();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 Hi(){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 Xi(){if(Nr)return Er;Nr=1;var t=Hi();return Er="NODE"===t}function Yi(){if(Rr)return Mr;Rr=1;var t=s();return Mr=t}function Wi(){if(kr)return Ir;kr=1;var t=vt();return Ir=function(e){return t(e)||null===e}}function qi(){if(Dr)return Lr;Dr=1;var t=Wi(),e=String,r=TypeError;return Lr=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function $i(){if(Br)return jr;Br=1;var t=function(){if(Vr)return _r;Vr=1;var t=ht(),e=At();return _r=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=qi();return jr=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),jr}function Gi(){if(Ur)return zr;Ur=1;var t=we().f,e=ne(),r=se()("toStringTag");return zr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function Qi(){if(Hr)return Fr;Hr=1;var t=Xe(),e=we();return Fr=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 Zi(){if(Yr)return Xr;Yr=1;var t=yt(),e=Qi(),r=se(),i=y(),n=r("species");return Xr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Ki(){if(qr)return Wr;qr=1;var t=mt(),e=TypeError;return Wr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Ji(){if(Zr)return Qr;Zr=1;var t=function(){if(Gr)return $r;Gr=1;var t={};return t[se()("toStringTag")]="z",$r="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return Qr=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},Qr}function tn(){if(Jr)return Kr;Jr=1;var t=ht(),e=v(),r=dt(),i=Ji(),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,Kr=!o||e(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?f:l}function en(){if(ei)return ti;ei=1;var t=tn(),e=Ot(),r=TypeError;return ti=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function rn(){if(ii)return ri;ii=1;var t=be(),e=en(),r=ft(),i=se()("species");return ri=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ri}function nn(){if(ai)return ni;ai=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ni="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ni}function an(){if(oi)return si;oi=1;var t=ct(),e=ht();return si=function(r){if("Function"===t(r))return e(r)}}function sn(){if(hi)return ui;hi=1;var t=an(),e=At(),r=m(),i=t(t.bind);return ui=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},ui}function on(){if(li)return ci;li=1;var t=yt();return ci=t("document","documentElement")}function un(){if(gi)return fi;gi=1;var t=ht();return fi=t([].slice)}function hn(){if(di)return pi;di=1;var t=TypeError;return pi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function cn(){if(yi)return vi;yi=1;var t=xt();return vi=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function ln(){if(xi)return mi;xi=1;var t,e,r,i,n=s(),a=nn(),o=sn(),u=dt(),h=ne(),c=v(),l=on(),f=un(),g=ue(),p=hn(),d=cn(),y=Xi(),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)}),mi={set:m,clear:x}}function fn(){if(wi)return bi;wi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return bi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function gn(){if(Ti)return Si;Ti=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}},Si=t}function pn(){if(Ni)return Ei;Ni=1;var t,e,r,i,n,a=s(),o=fn(),u=sn(),h=ln().set,c=gn(),l=cn(),f=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Pi)return Ci;Pi=1;var t=xt();return Ci=/web0s(?!.*chrome)/i.test(t)}(),p=Xi(),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 Ei=x}function dn(){return Ri||(Ri=1,Mi=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Mi}function vn(){return Vi?_i:(Vi=1,_i=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function yn(){if(ki)return Ii;ki=1;var t=s();return Ii=t.Promise}function mn(){if(Di)return Li;Di=1;var t=s(),e=yn(),r=dt(),i=Ui(),n=ze(),a=se(),o=Hi(),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 Li={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var xn,bn,wn={};function Sn(){if(xn)return wn;xn=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 wn.f=function(t){return new r(t)},wn}var Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn,jn,Bn,zn={};function Un(){return On?Tn:(On=1,Tn={})}function Fn(){if(Cn)return An;Cn=1;var t=se(),e=Un(),r=t("iterator"),i=Array.prototype;return An=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function Hn(){if(En)return Pn;En=1;var t=Ji(),e=Ct(),r=ft(),i=Un(),n=se()("iterator");return Pn=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Xn(){if(Mn)return Nn;Mn=1;var t=x(),e=At(),r=be(),i=Ot(),n=Hn(),a=TypeError;return Nn=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")},Nn}function Yn(){if(_n)return Rn;_n=1;var t=x(),e=be(),r=Ct();return Rn=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 Wn(){if(In)return Vn;In=1;var t=sn(),e=x(),r=be(),i=Ot(),n=Fn(),a=gr(),s=mt(),o=Xn(),u=Hn(),h=Yn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Vn=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){var e=v;return v=void 0,e&&h(e,"normal"),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;){var R=S.value;try{b=M(R)}catch(t){if(!v)throw t;h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Vn}function qn(){if(Ln)return kn;Ln=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 kn=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 $n(){if(jn)return Dn;jn=1;var t=yn(),e=qn(),r=mn().CONSTRUCTOR;return Dn=r||!e(function(e){t.all(e).then(void 0,function(){})})}var Gn,Qn={};var Zn,Kn={};var Jn,ta={};var ea,ra,ia,na,aa={};function sa(){if(ra)return ea;ra=1;var t=be(),e=vt(),r=Sn();return ea=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 oa(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 ua(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){oa(a,i,n,s,o,"next",t)}function o(t){oa(a,i,n,s,o,"throw",t)}s(void 0)})}}na||(na=1,function(){if(bn)return a;bn=1;var t,e,r,i,n=Fi(),o=Jt(),u=Xi(),h=s(),c=Yi(),l=x(),f=Ye(),g=$i(),p=Gi(),d=Zi(),v=At(),y=dt(),m=vt(),b=Ki(),w=rn(),S=ln().set,T=pn(),O=dn(),A=vn(),C=gn(),P=He(),E=yn(),N=mn(),M=Sn(),R="Promise",_=N.CONSTRUCTOR,V=N.REJECTION_EVENT,I=N.SUBCLASSING,k=P.getterFor(R),L=P.set,D=E&&E.prototype,j=E,B=D,z=h.TypeError,U=h.document,F=h.process,H=M.f,X=H,Y=!!(U&&U.createEvent&&h.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},$=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,h=t.reject,c=t.domain;try{o?(s||(2===e.rejection&&J(e),e.rejection=1),!0===o?r=a:(c&&c.enter(),r=o(a),c&&(c.exit(),n=!0)),r===t.promise?h(new z("Promise-chain cycle")):(i=q(r))?l(i,r,u,h):u(r)):h(a)}catch(t){c&&!n&&c.exit(),h(t)}},G=function(t,e){t.notified||(t.notified=!0,T(function(){for(var r,i=t.reactions;r=i.get();)$(r,t);t.notified=!1,e&&!t.rejection&&Z(t)}))},Q=function(t,e,r){var i,n;Y?((i=U.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:r},!V&&(n=h["on"+t])?n(i):t===W&&O("Unhandled promise rejection",r)},Z=function(t){l(S,h,function(){var e,r=t.facade,i=t.value;if(K(t)&&(e=A(function(){u?F.emit("unhandledRejection",i,r):Q(W,r,i)}),t.rejection=u||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(S,h,function(){var e=t.facade;u?F.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)})},tt=function(t,e,r){return function(i){t(e,i,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,G(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var i=q(e);i?T(function(){var r={done:!1};try{l(i,e,tt(rt,r,t),tt(et,r,t))}catch(e){et(r,e,t)}}):(t.value=e,t.state=1,G(t,!1))}catch(e){et({done:!1},e,t)}}};if(_&&(B=(j=function(e){b(this,B),v(e),l(t,this);var r=k(this);try{e(tt(rt,r),tt(et,r))}catch(t){et(r,t)}}).prototype,(t=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=f(B,"then",function(t,e){var r=k(this),i=H(w(this,j));return r.parent=!0,i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=u?F.domain:void 0,0===r.state?r.reactions.add(i):T(function(){$(i,r)}),i.promise}),e=function(){var e=new t,r=k(e);this.promise=e,this.resolve=tt(rt,r),this.reject=tt(et,r)},M.f=H=function(t){return t===j||t===r?new e(t):X(t)},!o&&y(E)&&D!==Object.prototype)){i=D.then,I||f(D,"then",function(t,e){var r=this;return new j(function(t,e){l(i,r,t,e)}).then(t,e)},{unsafe:!0});try{delete D.constructor}catch(t){}g&&g(D,B)}n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:j}),r=c.Promise,p(j,R,!1,!0),d(R)}(),function(){if(Bn)return zn;Bn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{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(Gn)return Qn;Gn=1;var t=Fi(),e=Jt(),r=mn().CONSTRUCTOR,i=yn(),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(Zn)return Kn;Zn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{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(Jn)return ta;Jn=1;var t=Fi(),e=Sn();t({target:"Promise",stat:!0,forced:mn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ia)return aa;ia=1;var t=Fi(),e=yt(),r=Jt(),i=yn(),n=mn().CONSTRUCTOR,a=sa(),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 ha,ca,la,fa,ga,pa,da={},va={};function ya(){if(ca)return ha;ca=1;var t=Ji(),e=String;return ha=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function ma(){if(fa)return la;fa=1;var t=be();return la=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 xa(){if(pa)return ga;pa=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 ga={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja,Ba,za,Ua,Fa,Ha,Xa,Ya={};function Wa(){if(wa)return ba;wa=1;var t=dr(),e=vr();return ba=Object.keys||function(r){return t(r,e)},ba}function qa(){if(Oa)return Ta;Oa=1;var t,e=be(),r=function(){if(Sa)return Ya;Sa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Wa();return Ya.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},Ya}(),i=vr(),n=Fe(),a=on(),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,Ta=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)},Ta}function $a(){if(Ma)return Na;Ma=1;var t,e,r=x(),i=ht(),n=ya(),a=ma(),o=xa(),u=re(),h=qa(),c=He().get,l=function(){if(Ca)return Aa;Ca=1;var t=v(),e=s().RegExp;return Aa=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Ea)return Pa;Ea=1;var t=v(),e=s().RegExp;return Pa=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],A=function(t,e){for(var r=t.groups=h(null),i=0;i<e.length;i++){var n=e[i];r[n[0]]=t[n[1]]}};return(S||O||T||l||f)&&(d=function(t){var e,i,s,o=this,u=c(o),h=n(t),l=u.raw;if(l)return l.lastIndex=o.lastIndex,e=r(d,l,h),o.lastIndex=l.lastIndex,e&&u.groups&&A(e,u.groups),e;var f=u.groups,v=T&&o.sticky,x=r(a,o),C=o.source,P=0,E=h;if(v){x=b(x,"y",""),-1===m(x,"g")&&(x+="g"),E=w(h,o.lastIndex);var N=o.lastIndex>0&&y(h,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==N&&"\r"!==N&&"\u2028"!==N&&"\u2029"!==N)&&(C="(?: (?:"+C+"))",E=" "+E,P++),i=new RegExp("^(?:"+C+")",x)}O&&(i=new RegExp("^"+C+"$(?!\\s)",x)),S&&(s=o.lastIndex);var M=r(p,v?i:o,E);return v?M?(M.input=h,M[0]=w(M[0],P),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:S&&M&&(o.lastIndex=o.global?M.index+M[0].length:s),O&&M&&M.length>1&&r(g,M[0],i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&f&&A(M,f),M}),Na=d}function Ga(){if(Va)return _a;Va=1,function(){if(Ra)return va;Ra=1;var t=Fi(),e=$a();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=$a(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return _a=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/;if("split"===u){var r={};r[s]=function(){return e},(e={constructor:r,flags:""})[f]=/./[f]}return 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)},_a}function Qa(){if(Da)return La;Da=1;var t=function(){if(ka)return Ia;ka=1;var t=ht(),e=cr(),r=ya(),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 Ia={codeAt:o(!1),charAt:o(!0)}}().charAt;return La=function(e,r,i){return r+(i&&t(e,r).length||1)},La}function Za(){if(Ua)return za;Ua=1;var t=x(),e=ne(),r=mt(),i=function(){if(Ba)return ja;Ba=1;var t=s(),e=v(),r=t.RegExp,i=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",a=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)a(o,s[o]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==n||i!==n});return ja={correct:i}}(),n=ma(),a=RegExp.prototype;return za=i.correct?function(t){return t.flags}:function(s){return i.correct||!r(a,s)||e(s,"flags")?s.flags:t(n,s)}}function Ka(){if(Ha)return Fa;Ha=1;var t=x(),e=be(),r=dt(),i=ct(),n=$a(),a=TypeError;return Fa=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(Xa)return da;Xa=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=fr(),s=ya(),o=gt(),u=Ct(),h=Qa(),c=Za(),l=Ka(),f=e("".indexOf);r("match",function(e,r,g){return[function(r){var i=o(this),a=n(r)?u(r,e):void 0;return a?t(a,r,i):new RegExp(r)[e](s(i))},function(t){var e=i(this),n=s(t),o=g(r,e,n);if(o.done)return o.value;var u=s(c(e));if(!~f(u,"g"))return l(e,n);var p=!!~f(u,"u")||!!~f(u,"v");e.lastIndex=0;for(var d,v=[],y=0;null!==(d=l(e,n));){var m=s(d[0]);v[y]=m,""===m&&(e.lastIndex=h(n,a(e.lastIndex),p)),y++}return 0===y?null:v}]})}();var Ja,ts,es,rs={};function is(){if(ts)return Ja;ts=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 Ja=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})},Ja}!function(){if(es)return rs;es=1;var t=nn(),e=x(),r=ht(),i=Ga(),n=v(),a=be(),s=dt(),o=vt(),u=cr(),h=fr(),c=ya(),l=gt(),f=Qa(),g=Ct(),p=is(),d=Za(),y=Ka(),m=se()("replace"),b=Math.max,w=Math.min,S=r([].concat),T=r([].push),O=r("".indexOf),A=r("".slice),C=function(t){return void 0===t?t:String(t)},P="$0"==="a".replace(/./,"$0"),E=!!/./[m]&&""===/./[m]("a","$0");i("replace",function(r,i,n){var v=E?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?g(t,m):void 0;return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e),g=s(r);g||(r=c(r));var m=c(d(o));if("string"==typeof r&&!~O(r,v)&&!~O(r,"$<")&&!~O(m,"y")){var x=n(i,o,l,r);if(x.done)return x.value}var P,E=!!~O(m,"g");E&&(P=!!~O(m,"u")||!!~O(m,"v"),o.lastIndex=0);for(var N,M=[];null!==(N=y(o,l))&&(T(M,N),E);){""===c(N[0])&&(o.lastIndex=f(l,h(o.lastIndex),P))}for(var R="",_=0,V=0;V<M.length;V++){for(var I,k=c((N=M[V])[0]),L=b(w(u(N.index),l.length),0),D=[],j=1;j<N.length;j++)T(D,C(N[j]));var B=N.groups;if(g){var z=S([k],D,L,l);void 0!==B&&T(z,B),I=c(t(r,void 0,z))}else I=p(k,l,L,D,B,r);L>=_&&(R+=A(l,_,L)+I,_=L+k.length)}return R+A(l,_)}]},!!n(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||E)}();var ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs,bs,ws,Ss,Ts,Os,As,Cs,Ps={};function Es(){if(os)return ss;os=1;var t=function(){if(as)return ns;as=1;var t=vt(),e=ct(),r=se()("match");return ns=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return ss=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function Ns(){if(hs)return us;hs=1;var t=se()("match");return us=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ms(){if(fs)return ls;fs=1;var t=se(),e=qa(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),ls=function(t){n[i][t]=!0}}function Rs(){if(vs)return ds;vs=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ps)return gs;ps=1;var t=v();return gs=!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 ds=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},ds}function _s(){if(ms)return ys;ms=1;var t,e,r,i=v(),n=dt(),a=vt(),s=qa(),o=Rs(),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}),ys={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function Vs(){if(Ss)return ws;Ss=1;var t=Fi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(bs)return xs;bs=1;var t=_s().IteratorPrototype,e=qa(),r=ut(),i=Gi(),n=Un(),a=function(){return this};return xs=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=Rs(),o=$i(),u=Gi(),h=Se(),c=Ye(),l=se(),f=Un(),g=_s(),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 ws=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 Is(){return Os?Ts:(Os=1,Ts=function(t,e){return{value:t,done:e}})}function ks(){if(Cs)return As;Cs=1;var t=pt(),e=Ms(),r=Un(),i=He(),n=we().f,a=Vs(),s=Is(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);As=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 As}!function(){if(cs)return Ps;cs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),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=a(t),i=n(l(arguments.length>1?arguments[1]:void 0,e.length));return c(e,i,i+r.length)===r}})}(),ks();var Ls,Ds,js,Bs,zs,Us={};function Fs(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 Hs(t,e,r){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(zs)return Us;zs=1;var t=s(),e=Ds?Ls:(Ds=1,Ls={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(Bs)return js;Bs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return js=e===Object.prototype?void 0:e}(),i=ks(),n=Se(),a=Gi(),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 Xs,Ys,Ws,qs,$s,Gs={};function Qs(){if(qs)return Ws;qs=1;var t=v();return Ws=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})}}!function(){if($s)return Gs;$s=1;var t=Fi(),e=function(){if(Ys)return Xs;Ys=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 Xs={left:s(!1),right:s(!0)}}().left,r=Qs(),i=bt();t({target:"Array",proto:!0,forced:!Xi()&&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 Zs,Ks={};!function(){if(Zs)return Ks;Zs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),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=a(t),i=arguments.length>1?arguments[1]:void 0,u=e.length,h=void 0===i?u:l(n(i),u);return c(e,h-r.length,h)===r}})}();var Js,to={};!function(){if(Js)return to;Js=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=gt(),s=rn(),o=Qa(),u=fr(),h=ya(),c=Ct(),l=Za(),f=Ka(),g=xa(),p=v(),d=g.UNSUPPORTED_Y,y=Math.min,m=e([].push),b=e("".slice),w=e("".indexOf),S=!p(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]}),T="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,g){var p="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)?c(r,e):void 0;return o?t(o,r,s,i):t(p,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!T){var c=g(p,n,a,e,p!==r);if(c.done)return c.value}var v=s(n,RegExp),x=h(l(n)),S=!!~w(x,"u")||!!~w(x,"v");d?~w(x,"g")||(x+="g"):~w(x,"y")||(x+="y");var O=new v(d?"^(?:"+n.source+")":n,x),A=void 0===e?4294967295:e>>>0;if(0===A)return[];if(0===a.length)return null===f(O,a)?[a]:[];for(var C=0,P=0,E=[];P<a.length;){O.lastIndex=d?0:P;var N,M=f(O,d?b(a,P):a);if(null===M||(N=y(u(O.lastIndex+(d?P:0)),a.length))===C)P=o(a,P,S);else{if(m(E,b(a,C,P)),E.length===A)return E;for(var R=1;R<=M.length-1;R++)if(m(E,M[R]),E.length===A)return E;P=C=N}}return m(E,b(a,C)),E}]},T||!S,d)}();var eo,ro,io={exports:{}},no={exports:{}},ao=no.exports;var so,oo,uo,ho,co,lo,fo,go,po,vo=function(){if(ro)return io.exports;ro=1;for(var e=(eo||(eo=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?no.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(no.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?(no.exports=function(){return Date.now()-r},r=Date.now()):(no.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(ao)),no.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 io.exports=function(t){return a.call(r,t)},io.exports.cancel=function(){s.apply(r,arguments)},io.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},io.exports}(),yo=r(vo),mo={};function xo(){return oo?so:(oo=1,so="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(fo)return mo;fo=1;var t=Fi(),e=function(){if(ho)return uo;ho=1;var t=ht(),e=gt(),r=ya(),i=xo(),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 uo={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(lo)return co;lo=1;var t=Be().PROPER,e=v(),r=xo();return co=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 bo,wo=(po||(po=1,go=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}}),go),So=r(wo),To={};!function(){if(bo)return To;bo=1;var t=Fi(),e=an(),r=pr().indexOf,i=Qs(),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 Oo,Ao={};!function(){if(Oo)return Ao;Oo=1;var t=Fi(),e=ht(),r=Es(),i=gt(),n=ya(),a=Ns(),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 Co,Po,Eo,No={};function Mo(){if(Po)return Co;Po=1;var t=ct();return Co=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(Eo)return No;Eo=1;var t=Fi(),e=ht(),r=Mo(),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-C-y2U2YC.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.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.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.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,Di,ji={};function Bi(){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,ji.f=Object.getOwnPropertySymbols),ji),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 zi(){if(wr)return br;wr=1;var t=ne(),e=Bi(),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 Ui(){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 Fi(){if(Ar)return Or;Ar=1;var t=s(),e=ce().f,r=Se(),i=Ye(),n=te(),a=zi(),o=Ui();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 Hi(){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 Xi(){if(Nr)return Er;Nr=1;var t=Hi();return Er="NODE"===t}function Yi(){if(Rr)return Mr;Rr=1;var t=s();return Mr=t}function Wi(){if(kr)return Ir;kr=1;var t=vt();return Ir=function(e){return t(e)||null===e}}function qi(){if(Dr)return Lr;Dr=1;var t=Wi(),e=String,r=TypeError;return Lr=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")}}function $i(){if(Br)return jr;Br=1;var t=function(){if(Vr)return _r;Vr=1;var t=ht(),e=At();return _r=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch(t){}}}(),e=vt(),r=gt(),i=qi();return jr=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),jr}function Gi(){if(Ur)return zr;Ur=1;var t=we().f,e=ne(),r=se()("toStringTag");return zr=function(i,n,a){i&&!a&&(i=i.prototype),i&&!e(i,r)&&t(i,r,{configurable:!0,value:n})}}function Qi(){if(Hr)return Fr;Hr=1;var t=Xe(),e=we();return Fr=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 Zi(){if(Yr)return Xr;Yr=1;var t=yt(),e=Qi(),r=se(),i=y(),n=r("species");return Xr=function(r){var a=t(r);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})}}function Ki(){if(qr)return Wr;qr=1;var t=mt(),e=TypeError;return Wr=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")}}function Ji(){if(Zr)return Qr;Zr=1;var t=function(){if(Gr)return $r;Gr=1;var t={};return t[se()("toStringTag")]="z",$r="[object z]"===String(t)}(),e=dt(),r=ct(),i=se()("toStringTag"),n=Object,a="Arguments"===r(function(){return arguments}());return Qr=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},Qr}function tn(){if(Jr)return Kr;Jr=1;var t=ht(),e=v(),r=dt(),i=Ji(),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,Kr=!o||e(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?f:l}function en(){if(ei)return ti;ei=1;var t=tn(),e=Ot(),r=TypeError;return ti=function(i){if(t(i))return i;throw new r(e(i)+" is not a constructor")}}function rn(){if(ii)return ri;ii=1;var t=be(),e=en(),r=ft(),i=se()("species");return ri=function(n,a){var s,o=t(n).constructor;return void 0===o||r(s=t(o)[i])?a:e(s)},ri}function nn(){if(ai)return ni;ai=1;var t=m(),e=Function.prototype,r=e.apply,i=e.call;return ni="object"==typeof Reflect&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),ni}function an(){if(oi)return si;oi=1;var t=ct(),e=ht();return si=function(r){if("Function"===t(r))return e(r)}}function sn(){if(hi)return ui;hi=1;var t=an(),e=At(),r=m(),i=t(t.bind);return ui=function(t,n){return e(t),void 0===n?t:r?i(t,n):function(){return t.apply(n,arguments)}},ui}function on(){if(li)return ci;li=1;var t=yt();return ci=t("document","documentElement")}function un(){if(gi)return fi;gi=1;var t=ht();return fi=t([].slice)}function hn(){if(di)return pi;di=1;var t=TypeError;return pi=function(e,r){if(e<r)throw new t("Not enough arguments");return e}}function cn(){if(yi)return vi;yi=1;var t=xt();return vi=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function ln(){if(xi)return mi;xi=1;var t,e,r,i,n=s(),a=nn(),o=sn(),u=dt(),h=ne(),c=v(),l=on(),f=un(),g=ue(),p=hn(),d=cn(),y=Xi(),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)}),mi={set:m,clear:x}}function fn(){if(wi)return bi;wi=1;var t=s(),e=y(),r=Object.getOwnPropertyDescriptor;return bi=function(i){if(!e)return t[i];var n=r(t,i);return n&&n.value}}function gn(){if(Ti)return Si;Ti=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}},Si=t}function pn(){if(Ni)return Ei;Ni=1;var t,e,r,i,n,a=s(),o=fn(),u=sn(),h=ln().set,c=gn(),l=cn(),f=function(){if(Ai)return Oi;Ai=1;var t=xt();return Oi=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),g=function(){if(Pi)return Ci;Pi=1;var t=xt();return Ci=/web0s(?!.*chrome)/i.test(t)}(),p=Xi(),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 Ei=x}function dn(){return Ri||(Ri=1,Mi=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}),Mi}function vn(){return Vi?_i:(Vi=1,_i=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function yn(){if(ki)return Ii;ki=1;var t=s();return Ii=t.Promise}function mn(){if(Di)return Li;Di=1;var t=s(),e=yn(),r=dt(),i=Ui(),n=ze(),a=se(),o=Hi(),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 Li={CONSTRUCTOR:p,REJECTION_EVENT:g,SUBCLASSING:f}}var xn,bn,wn={};function Sn(){if(xn)return wn;xn=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 wn.f=function(t){return new r(t)},wn}var Tn,On,An,Cn,Pn,En,Nn,Mn,Rn,_n,Vn,In,kn,Ln,Dn,jn,Bn,zn={};function Un(){return On?Tn:(On=1,Tn={})}function Fn(){if(Cn)return An;Cn=1;var t=se(),e=Un(),r=t("iterator"),i=Array.prototype;return An=function(t){return void 0!==t&&(e.Array===t||i[r]===t)}}function Hn(){if(En)return Pn;En=1;var t=Ji(),e=Ct(),r=ft(),i=Un(),n=se()("iterator");return Pn=function(a){if(!r(a))return e(a,n)||e(a,"@@iterator")||i[t(a)]}}function Xn(){if(Mn)return Nn;Mn=1;var t=x(),e=At(),r=be(),i=Ot(),n=Hn(),a=TypeError;return Nn=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")},Nn}function Yn(){if(_n)return Rn;_n=1;var t=x(),e=be(),r=Ct();return Rn=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 Wn(){if(In)return Vn;In=1;var t=sn(),e=x(),r=be(),i=Ot(),n=Fn(),a=gr(),s=mt(),o=Xn(),u=Hn(),h=Yn(),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},f=l.prototype;return Vn=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){var e=v;return v=void 0,e&&h(e,"normal"),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;){var R=S.value;try{b=M(R)}catch(t){if(!v)throw t;h(v,"throw",t)}if("object"==typeof b&&b&&s(f,b))return b}return new l(!1)},Vn}function qn(){if(Ln)return kn;Ln=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 kn=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 $n(){if(jn)return Dn;jn=1;var t=yn(),e=qn(),r=mn().CONSTRUCTOR;return Dn=r||!e(function(e){t.all(e).then(void 0,function(){})})}var Gn,Qn={};var Zn,Kn={};var Jn,ta={};var ea,ra,ia,na,aa={};function sa(){if(ra)return ea;ra=1;var t=be(),e=vt(),r=Sn();return ea=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 oa(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 ua(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){oa(a,i,n,s,o,"next",t)}function o(t){oa(a,i,n,s,o,"throw",t)}s(void 0)})}}na||(na=1,function(){if(bn)return a;bn=1;var t,e,r,i,n=Fi(),o=Jt(),u=Xi(),h=s(),c=Yi(),l=x(),f=Ye(),g=$i(),p=Gi(),d=Zi(),v=At(),y=dt(),m=vt(),b=Ki(),w=rn(),S=ln().set,T=pn(),O=dn(),A=vn(),C=gn(),P=He(),E=yn(),N=mn(),M=Sn(),R="Promise",_=N.CONSTRUCTOR,V=N.REJECTION_EVENT,I=N.SUBCLASSING,k=P.getterFor(R),L=P.set,D=E&&E.prototype,j=E,B=D,z=h.TypeError,U=h.document,F=h.process,H=M.f,X=H,Y=!!(U&&U.createEvent&&h.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},$=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,u=t.resolve,h=t.reject,c=t.domain;try{o?(s||(2===e.rejection&&J(e),e.rejection=1),!0===o?r=a:(c&&c.enter(),r=o(a),c&&(c.exit(),n=!0)),r===t.promise?h(new z("Promise-chain cycle")):(i=q(r))?l(i,r,u,h):u(r)):h(a)}catch(t){c&&!n&&c.exit(),h(t)}},G=function(t,e){t.notified||(t.notified=!0,T(function(){for(var r,i=t.reactions;r=i.get();)$(r,t);t.notified=!1,e&&!t.rejection&&Z(t)}))},Q=function(t,e,r){var i,n;Y?((i=U.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:r},!V&&(n=h["on"+t])?n(i):t===W&&O("Unhandled promise rejection",r)},Z=function(t){l(S,h,function(){var e,r=t.facade,i=t.value;if(K(t)&&(e=A(function(){u?F.emit("unhandledRejection",i,r):Q(W,r,i)}),t.rejection=u||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},J=function(t){l(S,h,function(){var e=t.facade;u?F.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)})},tt=function(t,e,r){return function(i){t(e,i,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,G(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var i=q(e);i?T(function(){var r={done:!1};try{l(i,e,tt(rt,r,t),tt(et,r,t))}catch(e){et(r,e,t)}}):(t.value=e,t.state=1,G(t,!1))}catch(e){et({done:!1},e,t)}}};if(_&&(B=(j=function(e){b(this,B),v(e),l(t,this);var r=k(this);try{e(tt(rt,r),tt(et,r))}catch(t){et(r,t)}}).prototype,(t=function(t){L(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=f(B,"then",function(t,e){var r=k(this),i=H(w(this,j));return r.parent=!0,i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=u?F.domain:void 0,0===r.state?r.reactions.add(i):T(function(){$(i,r)}),i.promise}),e=function(){var e=new t,r=k(e);this.promise=e,this.resolve=tt(rt,r),this.reject=tt(et,r)},M.f=H=function(t){return t===j||t===r?new e(t):X(t)},!o&&y(E)&&D!==Object.prototype)){i=D.then,I||f(D,"then",function(t,e){var r=this;return new j(function(t,e){l(i,r,t,e)}).then(t,e)},{unsafe:!0});try{delete D.constructor}catch(t){}g&&g(D,B)}n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:j}),r=c.Promise,p(j,R,!1,!0),d(R)}(),function(){if(Bn)return zn;Bn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{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(Gn)return Qn;Gn=1;var t=Fi(),e=Jt(),r=mn().CONSTRUCTOR,i=yn(),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(Zn)return Kn;Zn=1;var t=Fi(),e=x(),r=At(),i=Sn(),n=vn(),a=Wn();t({target:"Promise",stat:!0,forced:$n()},{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(Jn)return ta;Jn=1;var t=Fi(),e=Sn();t({target:"Promise",stat:!0,forced:mn().CONSTRUCTOR},{reject:function(t){var r=e.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(ia)return aa;ia=1;var t=Fi(),e=yt(),r=Jt(),i=yn(),n=mn().CONSTRUCTOR,a=sa(),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 ha,ca,la,fa,ga,pa,da={},va={};function ya(){if(ca)return ha;ca=1;var t=Ji(),e=String;return ha=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return e(r)}}function ma(){if(fa)return la;fa=1;var t=be();return la=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 xa(){if(pa)return ga;pa=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 ga={BROKEN_CARET:n,MISSED_STICKY:i,UNSUPPORTED_Y:r}}var ba,wa,Sa,Ta,Oa,Aa,Ca,Pa,Ea,Na,Ma,Ra,_a,Va,Ia,ka,La,Da,ja,Ba,za,Ua,Fa,Ha,Xa,Ya={};function Wa(){if(wa)return ba;wa=1;var t=dr(),e=vr();return ba=Object.keys||function(r){return t(r,e)},ba}function qa(){if(Oa)return Ta;Oa=1;var t,e=be(),r=function(){if(Sa)return Ya;Sa=1;var t=y(),e=xe(),r=we(),i=be(),n=pt(),a=Wa();return Ya.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},Ya}(),i=vr(),n=Fe(),a=on(),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,Ta=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)},Ta}function $a(){if(Ma)return Na;Ma=1;var t,e,r=x(),i=ht(),n=ya(),a=ma(),o=xa(),u=re(),h=qa(),c=He().get,l=function(){if(Ca)return Aa;Ca=1;var t=v(),e=s().RegExp;return Aa=t(function(){var t=e(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),f=function(){if(Ea)return Pa;Ea=1;var t=v(),e=s().RegExp;return Pa=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],A=function(t,e){for(var r=t.groups=h(null),i=0;i<e.length;i++){var n=e[i];r[n[0]]=t[n[1]]}};return(S||O||T||l||f)&&(d=function(t){var e,i,s,o=this,u=c(o),h=n(t),l=u.raw;if(l)return l.lastIndex=o.lastIndex,e=r(d,l,h),o.lastIndex=l.lastIndex,e&&u.groups&&A(e,u.groups),e;var f=u.groups,v=T&&o.sticky,x=r(a,o),C=o.source,P=0,E=h;if(v){x=b(x,"y",""),-1===m(x,"g")&&(x+="g"),E=w(h,o.lastIndex);var N=o.lastIndex>0&&y(h,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==N&&"\r"!==N&&"\u2028"!==N&&"\u2029"!==N)&&(C="(?: (?:"+C+"))",E=" "+E,P++),i=new RegExp("^(?:"+C+")",x)}O&&(i=new RegExp("^"+C+"$(?!\\s)",x)),S&&(s=o.lastIndex);var M=r(p,v?i:o,E);return v?M?(M.input=h,M[0]=w(M[0],P),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:S&&M&&(o.lastIndex=o.global?M.index+M[0].length:s),O&&M&&M.length>1&&r(g,M[0],i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&f&&A(M,f),M}),Na=d}function Ga(){if(Va)return _a;Va=1,function(){if(Ra)return va;Ra=1;var t=Fi(),e=$a();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}();var t=x(),e=Ye(),r=$a(),i=v(),n=se(),a=Se(),s=n("species"),o=RegExp.prototype;return _a=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/;if("split"===u){var r={};r[s]=function(){return e},(e={constructor:r,flags:""})[f]=/./[f]}return 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)},_a}function Qa(){if(Da)return La;Da=1;var t=function(){if(ka)return Ia;ka=1;var t=ht(),e=cr(),r=ya(),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 Ia={codeAt:o(!1),charAt:o(!0)}}().charAt;return La=function(e,r,i){return r+(i&&t(e,r).length||1)},La}function Za(){if(Ua)return za;Ua=1;var t=x(),e=ne(),r=mt(),i=function(){if(Ba)return ja;Ba=1;var t=s(),e=v(),r=t.RegExp,i=!e(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",a=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)a(o,s[o]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==n||i!==n});return ja={correct:i}}(),n=ma(),a=RegExp.prototype;return za=i.correct?function(t){return t.flags}:function(s){return i.correct||!r(a,s)||e(s,"flags")?s.flags:t(n,s)}}function Ka(){if(Ha)return Fa;Ha=1;var t=x(),e=be(),r=dt(),i=ct(),n=$a(),a=TypeError;return Fa=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(Xa)return da;Xa=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=fr(),s=ya(),o=gt(),u=Ct(),h=Qa(),c=Za(),l=Ka(),f=e("".indexOf);r("match",function(e,r,g){return[function(r){var i=o(this),a=n(r)?u(r,e):void 0;return a?t(a,r,i):new RegExp(r)[e](s(i))},function(t){var e=i(this),n=s(t),o=g(r,e,n);if(o.done)return o.value;var u=s(c(e));if(!~f(u,"g"))return l(e,n);var p=!!~f(u,"u")||!!~f(u,"v");e.lastIndex=0;for(var d,v=[],y=0;null!==(d=l(e,n));){var m=s(d[0]);v[y]=m,""===m&&(e.lastIndex=h(n,a(e.lastIndex),p)),y++}return 0===y?null:v}]})}();var Ja,ts,es,rs={};function is(){if(ts)return Ja;ts=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 Ja=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})},Ja}!function(){if(es)return rs;es=1;var t=nn(),e=x(),r=ht(),i=Ga(),n=v(),a=be(),s=dt(),o=vt(),u=cr(),h=fr(),c=ya(),l=gt(),f=Qa(),g=Ct(),p=is(),d=Za(),y=Ka(),m=se()("replace"),b=Math.max,w=Math.min,S=r([].concat),T=r([].push),O=r("".indexOf),A=r("".slice),C=function(t){return void 0===t?t:String(t)},P="$0"==="a".replace(/./,"$0"),E=!!/./[m]&&""===/./[m]("a","$0");i("replace",function(r,i,n){var v=E?"$":"$0";return[function(t,r){var n=l(this),a=o(t)?g(t,m):void 0;return a?e(a,t,n,r):e(i,c(n),t,r)},function(e,r){var o=a(this),l=c(e),g=s(r);g||(r=c(r));var m=c(d(o));if("string"==typeof r&&!~O(r,v)&&!~O(r,"$<")&&!~O(m,"y")){var x=n(i,o,l,r);if(x.done)return x.value}var P,E=!!~O(m,"g");E&&(P=!!~O(m,"u")||!!~O(m,"v"),o.lastIndex=0);for(var N,M=[];null!==(N=y(o,l))&&(T(M,N),E);){""===c(N[0])&&(o.lastIndex=f(l,h(o.lastIndex),P))}for(var R="",_=0,V=0;V<M.length;V++){for(var I,k=c((N=M[V])[0]),L=b(w(u(N.index),l.length),0),D=[],j=1;j<N.length;j++)T(D,C(N[j]));var B=N.groups;if(g){var z=S([k],D,L,l);void 0!==B&&T(z,B),I=c(t(r,void 0,z))}else I=p(k,l,L,D,B,r);L>=_&&(R+=A(l,_,L)+I,_=L+k.length)}return R+A(l,_)}]},!!n(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||E)}();var ns,as,ss,os,us,hs,cs,ls,fs,gs,ps,ds,vs,ys,ms,xs,bs,ws,Ss,Ts,Os,As,Cs,Ps={};function Es(){if(os)return ss;os=1;var t=function(){if(as)return ns;as=1;var t=vt(),e=ct(),r=se()("match");return ns=function(i){var n;return t(i)&&(void 0!==(n=i[r])?!!n:"RegExp"===e(i))}}(),e=TypeError;return ss=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r}}function Ns(){if(hs)return us;hs=1;var t=se()("match");return us=function(e){var r=/./;try{"/./"[e](r)}catch(i){try{return r[t]=!1,"/./"[e](r)}catch(t){}}return!1}}function Ms(){if(fs)return ls;fs=1;var t=se(),e=qa(),r=we().f,i=t("unscopables"),n=Array.prototype;return void 0===n[i]&&r(n,i,{configurable:!0,value:e(null)}),ls=function(t){n[i][t]=!0}}function Rs(){if(vs)return ds;vs=1;var t=ne(),e=dt(),r=ie(),i=Ue(),n=function(){if(ps)return gs;ps=1;var t=v();return gs=!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 ds=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},ds}function _s(){if(ms)return ys;ms=1;var t,e,r,i=v(),n=dt(),a=vt(),s=qa(),o=Rs(),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}),ys={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function Vs(){if(Ss)return ws;Ss=1;var t=Fi(),e=x(),r=Jt(),i=Be(),n=dt(),a=function(){if(bs)return xs;bs=1;var t=_s().IteratorPrototype,e=qa(),r=ut(),i=Gi(),n=Un(),a=function(){return this};return xs=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=Rs(),o=$i(),u=Gi(),h=Se(),c=Ye(),l=se(),f=Un(),g=_s(),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 ws=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 Is(){return Os?Ts:(Os=1,Ts=function(t,e){return{value:t,done:e}})}function ks(){if(Cs)return As;Cs=1;var t=pt(),e=Ms(),r=Un(),i=He(),n=we().f,a=Vs(),s=Is(),o=Jt(),u=y(),h="Array Iterator",c=i.set,l=i.getterFor(h);As=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 As}!function(){if(cs)return Ps;cs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),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=a(t),i=n(l(arguments.length>1?arguments[1]:void 0,e.length));return c(e,i,i+r.length)===r}})}(),ks();var Ls,Ds,js,Bs,zs,Us={};function Fs(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 Hs(t,e,r){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}!function(){if(zs)return Us;zs=1;var t=s(),e=Ds?Ls:(Ds=1,Ls={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(Bs)return js;Bs=1;var t=ue()("span").classList,e=t&&t.constructor&&t.constructor.prototype;return js=e===Object.prototype?void 0:e}(),i=ks(),n=Se(),a=Gi(),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 Xs,Ys,Ws,qs,$s,Gs={};function Qs(){if(qs)return Ws;qs=1;var t=v();return Ws=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})}}!function(){if($s)return Gs;$s=1;var t=Fi(),e=function(){if(Ys)return Xs;Ys=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 Xs={left:s(!1),right:s(!0)}}().left,r=Qs(),i=bt();t({target:"Array",proto:!0,forced:!Xi()&&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 Zs,Ks={};!function(){if(Zs)return Ks;Zs=1;var t,e=Fi(),r=an(),i=ce().f,n=fr(),a=ya(),s=Es(),o=gt(),u=Ns(),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=a(t),i=arguments.length>1?arguments[1]:void 0,u=e.length,h=void 0===i?u:l(n(i),u);return c(e,h-r.length,h)===r}})}();var Js,to={};!function(){if(Js)return to;Js=1;var t=x(),e=ht(),r=Ga(),i=be(),n=vt(),a=gt(),s=rn(),o=Qa(),u=fr(),h=ya(),c=Ct(),l=Za(),f=Ka(),g=xa(),p=v(),d=g.UNSUPPORTED_Y,y=Math.min,m=e([].push),b=e("".slice),w=e("".indexOf),S=!p(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]}),T="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,g){var p="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)?c(r,e):void 0;return o?t(o,r,s,i):t(p,h(s),r,i)},function(t,e){var n=i(this),a=h(t);if(!T){var c=g(p,n,a,e,p!==r);if(c.done)return c.value}var v=s(n,RegExp),x=h(l(n)),S=!!~w(x,"u")||!!~w(x,"v");d?~w(x,"g")||(x+="g"):~w(x,"y")||(x+="y");var O=new v(d?"^(?:"+n.source+")":n,x),A=void 0===e?4294967295:e>>>0;if(0===A)return[];if(0===a.length)return null===f(O,a)?[a]:[];for(var C=0,P=0,E=[];P<a.length;){O.lastIndex=d?0:P;var N,M=f(O,d?b(a,P):a);if(null===M||(N=y(u(O.lastIndex+(d?P:0)),a.length))===C)P=o(a,P,S);else{if(m(E,b(a,C,P)),E.length===A)return E;for(var R=1;R<=M.length-1;R++)if(m(E,M[R]),E.length===A)return E;P=C=N}}return m(E,b(a,C)),E}]},T||!S,d)}();var eo,ro,io={exports:{}},no={exports:{}},ao=no.exports;var so,oo,uo,ho,co,lo,fo,go,po,vo=function(){if(ro)return io.exports;ro=1;for(var e=(eo||(eo=1,function(){var t,e,r,i,n,a;"undefined"!=typeof performance&&null!==performance&&performance.now?no.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(no.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?(no.exports=function(){return Date.now()-r},r=Date.now()):(no.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}.call(ao)),no.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 io.exports=function(t){return a.call(r,t)},io.exports.cancel=function(){s.apply(r,arguments)},io.exports.polyfill=function(t){t||(t=r),t.requestAnimationFrame=a,t.cancelAnimationFrame=s},io.exports}(),yo=r(vo),mo={};function xo(){return oo?so:(oo=1,so="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(fo)return mo;fo=1;var t=Fi(),e=function(){if(ho)return uo;ho=1;var t=ht(),e=gt(),r=ya(),i=xo(),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 uo={start:o(1),end:o(2),trim:o(3)}}().trim,r=function(){if(lo)return co;lo=1;var t=Be().PROPER,e=v(),r=xo();return co=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 bo,wo=(po||(po=1,go=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}}),go),So=r(wo),To={};!function(){if(bo)return To;bo=1;var t=Fi(),e=an(),r=pr().indexOf,i=Qs(),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 Oo,Ao={};!function(){if(Oo)return Ao;Oo=1;var t=Fi(),e=ht(),r=Es(),i=gt(),n=ya(),a=Ns(),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 Co,Po,Eo,No={};function Mo(){if(Po)return Co;Po=1;var t=ct();return Co=Array.isArray||function(e){return"Array"===t(e)}}!function(){if(Eo)return No;Eo=1;var t=Fi(),e=ht(),r=Mo(),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