@backtest-kit/ui 5.6.0 → 5.9.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 (70) hide show
  1. package/build/index.cjs +1172 -188
  2. package/build/index.mjs +1173 -189
  3. package/build/modules/frontend/build/3rdparty/ace_1.4.12/ace.js +21338 -0
  4. package/build/modules/frontend/build/3rdparty/ace_1.4.12/mode-javascript.js +798 -0
  5. package/build/modules/frontend/build/3rdparty/ace_1.4.12/theme-chrome.js +138 -0
  6. package/build/modules/frontend/build/3rdparty/ace_1.4.12/theme-twilight.js +116 -0
  7. package/build/modules/frontend/build/3rdparty/ace_1.4.12/worker-javascript.js +15012 -0
  8. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-100.woff +0 -0
  9. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-100.woff2 +0 -0
  10. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-100italic.woff +0 -0
  11. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-100italic.woff2 +0 -0
  12. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-300.woff +0 -0
  13. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-300.woff2 +0 -0
  14. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-300italic.woff +0 -0
  15. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-300italic.woff2 +0 -0
  16. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-400.woff +0 -0
  17. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-400.woff2 +0 -0
  18. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-400italic.woff +0 -0
  19. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-400italic.woff2 +0 -0
  20. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-500.woff +0 -0
  21. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-500.woff2 +0 -0
  22. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-500italic.woff +0 -0
  23. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-500italic.woff2 +0 -0
  24. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-700.woff +0 -0
  25. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-700.woff2 +0 -0
  26. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-700italic.woff +0 -0
  27. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-700italic.woff2 +0 -0
  28. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-900.woff +0 -0
  29. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-900.woff2 +0 -0
  30. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-900italic.woff +0 -0
  31. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/files/roboto-latin-900italic.woff2 +0 -0
  32. package/build/modules/frontend/build/3rdparty/typeface-roboto_0.0.75/typeface-roboto.css +156 -0
  33. package/build/modules/frontend/build/assets/Article-DwCWbgig.js +1 -0
  34. package/build/modules/frontend/build/assets/{Background-BGXaqCCj.js → Background-BUWczIMa.js} +1 -1
  35. package/build/modules/frontend/build/assets/Container-DgcBaXwp.js +1 -0
  36. package/build/modules/frontend/build/assets/IconPhoto-Dg1OJT1g.js +1 -0
  37. package/build/modules/frontend/build/assets/{KeyboardArrowLeft-Brhl60Pa.js → KeyboardArrowLeft-DqH7VCRG.js} +1 -1
  38. package/build/modules/frontend/build/assets/Refresh-ASwi3YWH.js +1 -0
  39. package/build/modules/frontend/build/assets/emitters-EUI31qkt.js +1 -0
  40. package/build/modules/frontend/build/assets/hasRouteMatch-B_-PodjM.js +1 -0
  41. package/build/modules/frontend/build/assets/html2canvas-D67h2MXz.js +1 -0
  42. package/build/modules/frontend/build/assets/index-BXhzoqHB.js +17 -0
  43. package/build/modules/frontend/build/assets/index-BbMctGny.js +1 -0
  44. package/build/modules/frontend/build/assets/index-BjGW-SeZ.js +1560 -0
  45. package/build/modules/frontend/build/assets/index-CGTWcCfJ.js +1 -0
  46. package/build/modules/frontend/build/assets/index-CQbPy5z-.js +1 -0
  47. package/build/modules/frontend/build/assets/index-CYVGtlJR.js +1 -0
  48. package/build/modules/frontend/build/assets/index-CxqvOyvF.js +1 -0
  49. package/build/modules/frontend/build/assets/index-DoQ6TdNT.js +1 -0
  50. package/build/modules/frontend/build/assets/index-Dxunm9la.js +1 -0
  51. package/build/modules/frontend/build/assets/index-lFLkJBoZ.js +1 -0
  52. package/build/modules/frontend/build/assets/index-nAktdNIS.js +1 -0
  53. package/build/modules/frontend/build/assets/{index.es-BFfvVHkP.js → index.es-_Mw9_y9J.js} +2 -2
  54. package/build/modules/frontend/build/assets/markdownit-DnsUyAuX.js +1 -0
  55. package/build/modules/frontend/build/index.html +8 -2
  56. package/package.json +3 -3
  57. package/types.d.ts +84 -1
  58. package/build/modules/frontend/build/assets/IconPhoto-NqvLnXp7.js +0 -1
  59. package/build/modules/frontend/build/assets/Refresh-BGkaUatF.js +0 -1
  60. package/build/modules/frontend/build/assets/hasRouteMatch-7UKYuS0a.js +0 -1
  61. package/build/modules/frontend/build/assets/html2canvas-D-Nv0RTX.js +0 -1
  62. package/build/modules/frontend/build/assets/index-4xZ56Pw3.js +0 -231
  63. package/build/modules/frontend/build/assets/index-9iaIzgTc.js +0 -1331
  64. package/build/modules/frontend/build/assets/index-BDV9EkEY.js +0 -1
  65. package/build/modules/frontend/build/assets/index-BYCwoppH.js +0 -1
  66. package/build/modules/frontend/build/assets/index-CbQBf22x.js +0 -1
  67. package/build/modules/frontend/build/assets/index-CywcKDZi.js +0 -1
  68. package/build/modules/frontend/build/assets/index-D3HRM1Jy.js +0 -1
  69. package/build/modules/frontend/build/assets/index-DG7b0pa9.js +0 -1
  70. package/build/modules/frontend/build/assets/markdownit-GU6B-6e7.js +0 -1
@@ -1,1331 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/html2canvas-D-Nv0RTX.js","assets/index-4xZ56Pw3.js","assets/index-DrRm3Jka.css","assets/index.es-BFfvVHkP.js","assets/hasRouteMatch-7UKYuS0a.js","assets/IconPhoto-NqvLnXp7.js","assets/Refresh-BGkaUatF.js","assets/KeyboardArrowLeft-Brhl60Pa.js"])))=>i.map(i=>d[i]);
2
- import{c as A,f as e,ay as t,az as r,B as n,aA as i,aB as s,aC as o,aD as a,aE as c,i as l,aF as u,aG as h,aH as f,aI as d,aJ as p,aK as g,au as B,aL as w,I as m,aq as b,aM as y,a3 as v,aN as C,E as Q,aO as F,a6 as U,S as x,aP as L,H as _,ar as E,n as k,q as I,Z as S,m as j,M as H,T as N,as as P,b as D,F as O,C as M,e as T,a as K,d as R,l as V,g as G,h as q,aw as z}from"./index-4xZ56Pw3.js";import{h as W}from"./hasRouteMatch-7UKYuS0a.js";import{I as J}from"./IconPhoto-NqvLnXp7.js";import{C as X,R as Y}from"./Refresh-BGkaUatF.js";import{K as Z}from"./KeyboardArrowLeft-Brhl60Pa.js";const $=globalThis||self,AA=A(e("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7zm17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4h-1z"}),"DataObject"),eA=A(e("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description"),tA=A(e("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"}),"PictureAsPdf"),rA=A(e("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"}),"Print"),nA=[{id:"backtest",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/backtest")},{id:"live",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/live")},{id:"breakeven",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/breakeven")},{id:"risk",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/risk")},{id:"partial",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/partial")},{id:"highest_profit",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/highest_profit")},{id:"schedule",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/schedule")},{id:"performance",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/performance")},{id:"sync",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/sync")},{id:"heat",element:({data:A})=>e(n,{sx:{height:"100%",width:"100%",pt:1},children:e(t,{withScrollbar:!0,hideOverflowX:!0,sx:{height:"100%"},children:e("div",{children:[e(r,{content:A||"# Нет данных"}),e(n,{sx:{paddingBottom:"65px"}})]})})}),isActive:A=>A.includes("/markdown_report/heat")}],iA=[{id:"backtest",label:"Backtest",isVisible:({type:A})=>"backtest"===A},{id:"live",label:"Live",isVisible:({type:A})=>"live"===A},{id:"breakeven",label:"Breakeven"},{id:"risk",label:"Risk"},{id:"partial",label:"Partial"},{id:"highest_profit",label:"Highest Profit"},{id:"schedule",label:"Schedule"},{id:"performance",label:"Performance"},{id:"sync",label:"Sync"},{id:"heat",label:"Heat"}];var sA={exports:{}};function oA(A){return(oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}var aA=Uint8Array,cA=Uint16Array,lA=Int32Array,uA=new aA([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,0,0,0]),hA=new aA([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,0,0]),fA=new aA([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dA=function(A,e){for(var t=new cA(31),r=0;r<31;++r)t[r]=e+=1<<A[r-1];var n=new lA(t[30]);for(r=1;r<30;++r)for(var i=t[r];i<t[r+1];++i)n[i]=i-t[r]<<5|r;return{b:t,r:n}},pA=dA(uA,2),gA=pA.b,BA=pA.r;gA[28]=258,BA[258]=28;for(var wA=dA(hA,0).r,mA=new cA(32768),bA=0;bA<32768;++bA){var yA=(43690&bA)>>1|(21845&bA)<<1;yA=(61680&(yA=(52428&yA)>>2|(13107&yA)<<2))>>4|(3855&yA)<<4,mA[bA]=((65280&yA)>>8|(255&yA)<<8)>>1}var vA=function(A,e,t){for(var r=A.length,n=0,i=new cA(e);n<r;++n)A[n]&&++i[A[n]-1];var s,o=new cA(e);for(n=1;n<e;++n)o[n]=o[n-1]+i[n-1]<<1;if(t){s=new cA(1<<e);var a=15-e;for(n=0;n<r;++n)if(A[n])for(var c=n<<4|A[n],l=e-A[n],u=o[A[n]-1]++<<l,h=u|(1<<l)-1;u<=h;++u)s[mA[u]>>a]=c}else for(s=new cA(r),n=0;n<r;++n)A[n]&&(s[n]=mA[o[A[n]-1]++]>>15-A[n]);return s},CA=new aA(288);for(bA=0;bA<144;++bA)CA[bA]=8;for(bA=144;bA<256;++bA)CA[bA]=9;for(bA=256;bA<280;++bA)CA[bA]=7;for(bA=280;bA<288;++bA)CA[bA]=8;var QA=new aA(32);for(bA=0;bA<32;++bA)QA[bA]=5;var FA=vA(CA,9,0),UA=vA(QA,5,0),xA=function(A){return(A+7)/8|0},LA=function(A,e,t){t<<=7&e;var r=e/8|0;A[r]|=t,A[r+1]|=t>>8},_A=function(A,e,t){t<<=7&e;var r=e/8|0;A[r]|=t,A[r+1]|=t>>8,A[r+2]|=t>>16},EA=function(A,e){for(var t=[],r=0;r<A.length;++r)A[r]&&t.push({s:r,f:A[r]});var n=t.length,i=t.slice();if(!n)return{t:PA,l:0};if(1==n){var s=new aA(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(A,e){return A.f-e.f}),t.push({s:-1,f:25001});var o=t[0],a=t[1],c=0,l=1,u=2;for(t[0]={s:-1,f:o.f+a.f,l:o,r:a};l!=n-1;)o=t[t[c].f<t[u].f?c++:u++],a=t[c!=l&&t[c].f<t[u].f?c++:u++],t[l++]={s:-1,f:o.f+a.f,l:o,r:a};var h=i[0].s;for(r=1;r<n;++r)i[r].s>h&&(h=i[r].s);var f=new cA(h+1),d=kA(t[l-1],f,0);if(d>e){r=0;var p=0,g=d-e,B=1<<g;for(i.sort(function(A,e){return f[e.s]-f[A.s]||A.f-e.f});r<n;++r){var w=i[r].s;if(!(f[w]>e))break;p+=B-(1<<d-f[w]),f[w]=e}for(p>>=g;p>0;){var m=i[r].s;f[m]<e?p-=1<<e-f[m]++-1:++r}for(;r>=0&&p;--r){var b=i[r].s;f[b]==e&&(--f[b],++p)}d=e}return{t:new aA(f),l:d}},kA=function(A,e,t){return-1==A.s?Math.max(kA(A.l,e,t+1),kA(A.r,e,t+1)):e[A.s]=t},IA=function(A){for(var e=A.length;e&&!A[--e];);for(var t=new cA(++e),r=0,n=A[0],i=1,s=function(A){t[r++]=A},o=1;o<=e;++o)if(A[o]==n&&o!=e)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=A[o]}return{c:t.subarray(0,r),n:e}},SA=function(A,e){for(var t=0,r=0;r<e.length;++r)t+=A[r]*e[r];return t},jA=function(A,e,t){var r=t.length,n=xA(e+2);A[n]=255&r,A[n+1]=r>>8,A[n+2]=255^A[n],A[n+3]=255^A[n+1];for(var i=0;i<r;++i)A[n+i+4]=t[i];return 8*(n+4+r)},HA=function(A,e,t,r,n,i,s,o,a,c,l){LA(e,l++,t),++n[256];for(var u=EA(n,15),h=u.t,f=u.l,d=EA(i,15),p=d.t,g=d.l,B=IA(h),w=B.c,m=B.n,b=IA(p),y=b.c,v=b.n,C=new cA(19),Q=0;Q<w.length;++Q)++C[31&w[Q]];for(Q=0;Q<y.length;++Q)++C[31&y[Q]];for(var F=EA(C,7),U=F.t,x=F.l,L=19;L>4&&!U[fA[L-1]];--L);var _,E,k,I,S=c+5<<3,j=SA(n,CA)+SA(i,QA)+s,H=SA(n,h)+SA(i,p)+s+14+3*L+SA(C,U)+2*C[16]+3*C[17]+7*C[18];if(a>=0&&S<=j&&S<=H)return jA(e,l,A.subarray(a,a+c));if(LA(e,l,1+(H<j)),l+=2,H<j){_=vA(h,f,0),E=h,k=vA(p,g,0),I=p;var N=vA(U,x,0);LA(e,l,m-257),LA(e,l+5,v-1),LA(e,l+10,L-4),l+=14;for(Q=0;Q<L;++Q)LA(e,l+3*Q,U[fA[Q]]);l+=3*L;for(var P=[w,y],D=0;D<2;++D){var O=P[D];for(Q=0;Q<O.length;++Q){var M=31&O[Q];LA(e,l,N[M]),l+=U[M],M>15&&(LA(e,l,O[Q]>>5&127),l+=O[Q]>>12)}}}else _=FA,E=CA,k=UA,I=QA;for(Q=0;Q<o;++Q){var T=r[Q];if(T>255){_A(e,l,_[(M=T>>18&31)+257]),l+=E[M+257],M>7&&(LA(e,l,T>>23&31),l+=uA[M]);var K=31&T;_A(e,l,k[K]),l+=I[K],K>3&&(_A(e,l,T>>5&8191),l+=hA[K])}else _A(e,l,_[T]),l+=E[T]}return _A(e,l,_[256]),l+E[256]},NA=new lA([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),PA=new aA(0),DA=function(A,e,t,r,n,i){var s=i.z||A.length,o=new aA(r+s+5*(1+Math.ceil(s/7e3))+n),a=o.subarray(r,o.length-n),c=i.l,l=7&(i.r||0);if(e){l&&(a[0]=i.r>>3);for(var u=NA[e-1],h=u>>13,f=8191&u,d=(1<<t)-1,p=i.p||new cA(32768),g=i.h||new cA(d+1),B=Math.ceil(t/3),w=2*B,m=function(e){return(A[e]^A[e+1]<<B^A[e+2]<<w)&d},b=new lA(25e3),y=new cA(288),v=new cA(32),C=0,Q=0,F=i.i||0,U=0,x=i.w||0,L=0;F+2<s;++F){var _=m(F),E=32767&F,k=g[_];if(p[E]=k,g[_]=E,x<=F){var I=s-F;if((C>7e3||U>24576)&&(I>423||!c)){l=HA(A,a,0,b,y,v,Q,U,L,F-L,l),U=C=Q=0,L=F;for(var S=0;S<286;++S)y[S]=0;for(S=0;S<30;++S)v[S]=0}var j=2,H=0,N=f,P=E-k&32767;if(I>2&&_==m(F-P))for(var D=Math.min(h,I)-1,O=Math.min(32767,F),M=Math.min(258,I);P<=O&&--N&&E!=k;){if(A[F+j]==A[F+j-P]){for(var T=0;T<M&&A[F+T]==A[F+T-P];++T);if(T>j){if(j=T,H=P,T>D)break;var K=Math.min(P,T-2),R=0;for(S=0;S<K;++S){var V=F-P+S&32767,G=V-p[V]&32767;G>R&&(R=G,k=V)}}}P+=(E=k)-(k=p[E])&32767}if(H){b[U++]=268435456|BA[j]<<18|wA[H];var q=31&BA[j],z=31&wA[H];Q+=uA[q]+hA[z],++y[257+q],++v[z],x=F+j,++C}else b[U++]=A[F],++y[A[F]]}}for(F=Math.max(F,x);F<s;++F)b[U++]=A[F],++y[A[F]];l=HA(A,a,c,b,y,v,Q,U,L,F-L,l),c||(i.r=7&l|a[l/8|0]<<3,l-=7,i.h=g,i.p=p,i.i=F,i.w=x)}else{for(F=i.w||0;F<s+c;F+=65535){var W=F+65535;W>=s&&(a[l/8|0]=c,W=s),l=jA(a,l+1,A.subarray(F,W))}i.i=s}return function(A,e,t){return(null==t||t>A.length)&&(t=A.length),new aA(A.subarray(e,t))}(o,0,r+xA(l)+n)},OA=function(){var A=1,e=0;return{p:function(t){for(var r=A,n=e,i=0|t.length,s=0;s!=i;){for(var o=Math.min(s+2655,i);s<o;++s)n+=r+=t[s];r=(65535&r)+15*(r>>16),n=(65535&n)+15*(n>>16)}A=r,e=n},d:function(){return(255&(A%=65521))<<24|(65280&A)<<8|(255&(e%=65521))<<8|e>>8}}},MA=function(A,e,t){for(;t;++e)A[e]=t,t>>>=8};function TA(A,e){e||(e={});var t=OA();t.p(A);var r=function(A,e,t,r,n){if(!n&&(n={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),s=new aA(i.length+A.length);s.set(i),s.set(A,i.length),A=s,n.w=i.length}return DA(A,null==e.level?6:e.level,null==e.mem?n.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(A.length)))):20:12+e.mem,t,r,n)}(A,e,e.dictionary?6:2,4);return function(A,e){var t=e.level,r=0==t?0:t<6?1:9==t?3:2;if(A[0]=120,A[1]=r<<6|(e.dictionary&&32),A[1]|=31-(A[0]<<8|A[1])%31,e.dictionary){var n=OA();n.p(e.dictionary),MA(A,2,n.d())}}(r,e),MA(r,r.length-4,t.d()),r}var KA="undefined"!=typeof TextDecoder&&new TextDecoder;try{KA.decode(PA,{stream:!0})}catch(_n){}function RA(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,r=Array(e);t<e;t++)r[t]=A[t];return r}function VA(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=null==A?null:"undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(null!=t){var r,n,i,s,o=[],a=!0,c=!1;try{if(i=(t=t.call(A)).next,0===e);else for(;!(a=(r=i.call(t)).done)&&(o.push(r.value),o.length!==e);a=!0);}catch(l){c=!0,n=l}finally{try{if(!a&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw n}}return o}}(A,e)||function(A,e){if(A){if("string"==typeof A)return RA(A,e);var t={}.toString.call(A).slice(8,-1);return"Object"===t&&A.constructor&&(t=A.constructor.name),"Map"===t||"Set"===t?Array.from(A):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?RA(A,e):void 0}}(A,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GA(A,e="utf8"){return new TextDecoder(e).decode(A)}const qA=new TextEncoder;const zA=(()=>{const A=new Uint8Array(4);return!((new Uint32Array(A.buffer)[0]=1)&A[0])})(),WA={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class JA{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(A=8192,e={}){let t=!1;"number"==typeof A?A=new ArrayBuffer(A):(t=!0,this.lastWrittenByte=A.byteLength);const r=e.offset?e.offset>>>0:0,n=A.byteLength-r;let i=r;(ArrayBuffer.isView(A)||A instanceof JA)&&(A.byteLength!==A.buffer.byteLength&&(i=A.byteOffset+r),A=A.buffer),this.lastWrittenByte=t?n:0,this.buffer=A,this.length=n,this.byteLength=n,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,n),this._mark=0,this._marks=[]}available(A=1){return this.offset+A<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(A=1){return this.offset+=A,this}back(A=1){return this.offset-=A,this}seek(A){return this.offset=A,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const A=this._marks.pop();if(void 0===A)throw new Error("Mark stack empty");return this.seek(A),this}rewind(){return this.offset=0,this}ensureAvailable(A=1){if(!this.available(A)){const e=2*(this.offset+A),t=new Uint8Array(e);t.set(new Uint8Array(this.buffer)),this.buffer=t.buffer,this.length=e,this.byteLength=e,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(A=1){return this.readArray(A,"uint8")}readArray(A,e){const t=WA[e].BYTES_PER_ELEMENT*A,r=this.byteOffset+this.offset,n=this.buffer.slice(r,r+t);if(this.littleEndian===zA&&"uint8"!==e&&"int8"!==e){const A=new Uint8Array(this.buffer.slice(r,r+t));A.reverse();const n=new WA[e](A.buffer);return this.offset+=t,n.reverse(),n}const i=new WA[e](n);return this.offset+=t,i}readInt16(){const A=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,A}readUint16(){const A=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,A}readInt32(){const A=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,A}readUint32(){const A=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat32(){const A=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,A}readFloat64(){const A=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,A}readBigInt64(){const A=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,A}readBigUint64(){const A=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,A}readChar(){return String.fromCharCode(this.readInt8())}readChars(A=1){let e="";for(let t=0;t<A;t++)e+=this.readChar();return e}readUtf8(A=1){return GA(this.readBytes(A))}decodeText(A=1,e="utf8"){return GA(this.readBytes(A),e)}writeBoolean(A){return this.writeUint8(A?255:0),this}writeInt8(A){return this.ensureAvailable(1),this._data.setInt8(this.offset++,A),this._updateLastWrittenByte(),this}writeUint8(A){return this.ensureAvailable(1),this._data.setUint8(this.offset++,A),this._updateLastWrittenByte(),this}writeByte(A){return this.writeUint8(A)}writeBytes(A){this.ensureAvailable(A.length);for(let e=0;e<A.length;e++)this._data.setUint8(this.offset++,A[e]);return this._updateLastWrittenByte(),this}writeInt16(A){return this.ensureAvailable(2),this._data.setInt16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(A){return this.ensureAvailable(2),this._data.setUint16(this.offset,A,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(A){return this.ensureAvailable(4),this._data.setInt32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(A){return this.ensureAvailable(4),this._data.setUint32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(A){return this.ensureAvailable(4),this._data.setFloat32(this.offset,A,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(A){return this.ensureAvailable(8),this._data.setFloat64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(A){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(A){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,A,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(A){return this.writeUint8(A.charCodeAt(0))}writeChars(A){for(let e=0;e<A.length;e++)this.writeUint8(A.charCodeAt(e));return this}writeUtf8(A){return this.writeBytes(function(A){return qA.encode(A)}(A))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function XA(A){let e=A.length;for(;--e>=0;)A[e]=0}XA(new Array(576));XA(new Array(60));XA(new Array(512));XA(new Array(256));XA(new Array(29));XA(new Array(30));var YA=(A,e,t,r)=>{let n=65535&A,i=A>>>16&65535,s=0;for(;0!==t;){s=t>2e3?2e3:t,t-=s;do{n=n+e[r++]|0,i=i+n|0}while(--s);n%=65521,i%=65521}return n|i<<16};const ZA=new Uint32Array((()=>{let A,e=[];for(var t=0;t<256;t++){A=t;for(var r=0;r<8;r++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e})());var $A=(A,e,t,r)=>{const n=ZA,i=r+t;A^=-1;for(let s=r;s<i;s++)A=A>>>8^n[255&(A^e[s])];return-1^A},Ae={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"},ee={Z_NO_FLUSH:0,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_DEFLATED:8};const te=(A,e)=>Object.prototype.hasOwnProperty.call(A,e);var re=function(A){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(const e in t)te(t,e)&&(A[e]=t[e])}}return A},ne=A=>{let e=0;for(let r=0,n=A.length;r<n;r++)e+=A[r].length;const t=new Uint8Array(e);for(let r=0,n=0,i=A.length;r<i;r++){let e=A[r];t.set(e,n),n+=e.length}return t};let ie=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(wo){ie=!1}const se=new Uint8Array(256);for(let mo=0;mo<256;mo++)se[mo]=mo>=252?6:mo>=248?5:mo>=240?4:mo>=224?3:mo>=192?2:1;se[254]=se[254]=1;var oe=A=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);let e,t,r,n,i,s=A.length,o=0;for(n=0;n<s;n++)t=A.charCodeAt(n),55296==(64512&t)&&n+1<s&&(r=A.charCodeAt(n+1),56320==(64512&r)&&(t=65536+(t-55296<<10)+(r-56320),n++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(o),i=0,n=0;i<o;n++)t=A.charCodeAt(n),55296==(64512&t)&&n+1<s&&(r=A.charCodeAt(n+1),56320==(64512&r)&&(t=65536+(t-55296<<10)+(r-56320),n++)),t<128?e[i++]=t:t<2048?(e[i++]=192|t>>>6,e[i++]=128|63&t):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|63&t):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|63&t);return e},ae=(A,e)=>{const t=e||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,e));let r,n;const i=new Array(2*t);for(n=0,r=0;r<t;){let e=A[r++];if(e<128){i[n++]=e;continue}let s=se[e];if(s>4)i[n++]=65533,r+=s-1;else{for(e&=2===s?31:3===s?15:7;s>1&&r<t;)e=e<<6|63&A[r++],s--;s>1?i[n++]=65533:e<65536?i[n++]=e:(e-=65536,i[n++]=55296|e>>10&1023,i[n++]=56320|1023&e)}}return((A,e)=>{if(e<65534&&A.subarray&&ie)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));let t="";for(let r=0;r<e;r++)t+=String.fromCharCode(A[r]);return t})(i,n)},ce=(A,e)=>{(e=e||A.length)>A.length&&(e=A.length);let t=e-1;for(;t>=0&&128==(192&A[t]);)t--;return t<0||0===t?e:t+se[A[t]]>e?t:e};var le=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 ue=16209;var he=function(A,e){let t,r,n,i,s,o,a,c,l,u,h,f,d,p,g,B,w,m,b,y,v,C,Q,F;const U=A.state;t=A.next_in,Q=A.input,r=t+(A.avail_in-5),n=A.next_out,F=A.output,i=n-(e-A.avail_out),s=n+(A.avail_out-257),o=U.dmax,a=U.wsize,c=U.whave,l=U.wnext,u=U.window,h=U.hold,f=U.bits,d=U.lencode,p=U.distcode,g=(1<<U.lenbits)-1,B=(1<<U.distbits)-1;A:do{f<15&&(h+=Q[t++]<<f,f+=8,h+=Q[t++]<<f,f+=8),w=d[h&g];e:for(;;){if(m=w>>>24,h>>>=m,f-=m,m=w>>>16&255,0===m)F[n++]=65535&w;else{if(!(16&m)){if(64&m){if(32&m){U.mode=16191;break A}A.msg="invalid literal/length code",U.mode=ue;break A}w=d[(65535&w)+(h&(1<<m)-1)];continue e}for(b=65535&w,m&=15,m&&(f<m&&(h+=Q[t++]<<f,f+=8),b+=h&(1<<m)-1,h>>>=m,f-=m),f<15&&(h+=Q[t++]<<f,f+=8,h+=Q[t++]<<f,f+=8),w=p[h&B];;){if(m=w>>>24,h>>>=m,f-=m,m=w>>>16&255,16&m){if(y=65535&w,m&=15,f<m&&(h+=Q[t++]<<f,f+=8,f<m&&(h+=Q[t++]<<f,f+=8)),y+=h&(1<<m)-1,y>o){A.msg="invalid distance too far back",U.mode=ue;break A}if(h>>>=m,f-=m,m=n-i,y>m){if(m=y-m,m>c&&U.sane){A.msg="invalid distance too far back",U.mode=ue;break A}if(v=0,C=u,0===l){if(v+=a-m,m<b){b-=m;do{F[n++]=u[v++]}while(--m);v=n-y,C=F}}else if(l<m){if(v+=a+l-m,m-=l,m<b){b-=m;do{F[n++]=u[v++]}while(--m);if(v=0,l<b){m=l,b-=m;do{F[n++]=u[v++]}while(--m);v=n-y,C=F}}}else if(v+=l-m,m<b){b-=m;do{F[n++]=u[v++]}while(--m);v=n-y,C=F}for(;b>2;)F[n++]=C[v++],F[n++]=C[v++],F[n++]=C[v++],b-=3;b&&(F[n++]=C[v++],b>1&&(F[n++]=C[v++]))}else{v=n-y;do{F[n++]=F[v++],F[n++]=F[v++],F[n++]=F[v++],b-=3}while(b>2);b&&(F[n++]=F[v++],b>1&&(F[n++]=F[v++]))}break}if(64&m){A.msg="invalid distance code",U.mode=ue;break A}w=p[(65535&w)+(h&(1<<m)-1)]}}break}}while(t<r&&n<s);b=f>>3,t-=b,f-=b<<3,h&=(1<<f)-1,A.next_in=t,A.next_out=n,A.avail_in=t<r?r-t+5:5-(t-r),A.avail_out=n<s?s-n+257:257-(n-s),U.hold=h,U.bits=f};const fe=15,de=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]),pe=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,72,78]),ge=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]),Be=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 we=(A,e,t,r,n,i,s,o)=>{const a=o.bits;let c,l,u,h,f,d,p=0,g=0,B=0,w=0,m=0,b=0,y=0,v=0,C=0,Q=0,F=null;const U=new Uint16Array(16),x=new Uint16Array(16);let L,_,E,k=null;for(p=0;p<=fe;p++)U[p]=0;for(g=0;g<r;g++)U[e[t+g]]++;for(m=a,w=fe;w>=1&&0===U[w];w--);if(m>w&&(m=w),0===w)return n[i++]=20971520,n[i++]=20971520,o.bits=1,0;for(B=1;B<w&&0===U[B];B++);for(m<B&&(m=B),v=1,p=1;p<=fe;p++)if(v<<=1,v-=U[p],v<0)return-1;if(v>0&&(0===A||1!==w))return-1;for(x[1]=0,p=1;p<fe;p++)x[p+1]=x[p]+U[p];for(g=0;g<r;g++)0!==e[t+g]&&(s[x[e[t+g]]++]=g);if(0===A?(F=k=s,d=20):1===A?(F=de,k=pe,d=257):(F=ge,k=Be,d=0),Q=0,g=0,p=B,f=i,b=m,y=0,u=-1,C=1<<m,h=C-1,1===A&&C>852||2===A&&C>592)return 1;for(;;){L=p-y,s[g]+1<d?(_=0,E=s[g]):s[g]>=d?(_=k[s[g]-d],E=F[s[g]-d]):(_=96,E=0),c=1<<p-y,l=1<<b,B=l;do{l-=c,n[f+(Q>>y)+l]=L<<24|_<<16|E}while(0!==l);for(c=1<<p-1;Q&c;)c>>=1;if(0!==c?(Q&=c-1,Q+=c):Q=0,g++,0===--U[p]){if(p===w)break;p=e[t+s[g]]}if(p>m&&(Q&h)!==u){for(0===y&&(y=m),f+=B,b=p-y,v=1<<b;b+y<w&&(v-=U[b+y],!(v<=0));)b++,v<<=1;if(C+=1<<b,1===A&&C>852||2===A&&C>592)return 1;u=Q&h,n[u]=m<<24|b<<16|f-i}}return 0!==Q&&(n[f+Q]=p-y<<24|64<<16),o.bits=m,0};const{Z_FINISH:me,Z_BLOCK:be,Z_TREES:ye,Z_OK:ve,Z_STREAM_END:Ce,Z_NEED_DICT:Qe,Z_STREAM_ERROR:Fe,Z_DATA_ERROR:Ue,Z_MEM_ERROR:xe,Z_BUF_ERROR:Le,Z_DEFLATED:_e}=ee,Ee=16180,ke=16190,Ie=16191,Se=16192,je=16194,He=16199,Ne=16200,Pe=16206,De=16209,Oe=A=>(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24);function Me(){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 Te=A=>{if(!A)return 1;const e=A.state;return!e||e.strm!==A||e.mode<Ee||e.mode>16211?1:0},Ke=A=>{if(Te(A))return Fe;const e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=Ee,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,ve},Re=A=>{if(Te(A))return Fe;const e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,Ke(A)},Ve=(A,e)=>{let t;if(Te(A))return Fe;const r=A.state;return e<0?(t=0,e=-e):(t=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Fe:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,Re(A))},Ge=(A,e)=>{if(!A)return Fe;const t=new Me;A.state=t,t.strm=A,t.window=null,t.mode=Ee;const r=Ve(A,e);return r!==ve&&(A.state=null),r};let qe,ze,We=!0;const Je=A=>{if(We){qe=new Int32Array(512),ze=new Int32Array(32);let e=0;for(;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(we(1,A.lens,0,288,qe,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;we(2,A.lens,0,32,ze,0,A.work,{bits:5}),We=!1}A.lencode=qe,A.lenbits=9,A.distcode=ze,A.distbits=5},Xe=(A,e,t,r)=>{let n;const i=A.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(e.subarray(t-r,t-r+n),i.wnext),(r-=n)?(i.window.set(e.subarray(t-r,t),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0};var Ye={inflateReset:Re,inflateReset2:Ve,inflateResetKeep:Ke,inflateInit:A=>Ge(A,15),inflateInit2:Ge,inflate:(A,e)=>{let t,r,n,i,s,o,a,c,l,u,h,f,d,p,g,B,w,m,b,y,v,C,Q=0;const F=new Uint8Array(4);let U,x;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Te(A)||!A.output||!A.input&&0!==A.avail_in)return Fe;t=A.state,t.mode===Ie&&(t.mode=Se),s=A.next_out,n=A.output,a=A.avail_out,i=A.next_in,r=A.input,o=A.avail_in,c=t.hold,l=t.bits,u=o,h=a,C=ve;A:for(;;)switch(t.mode){case Ee:if(0===t.wrap){t.mode=Se;break}for(;l<16;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(2&t.wrap&&35615===c){0===t.wbits&&(t.wbits=15),t.check=0,F[0]=255&c,F[1]=c>>>8&255,t.check=$A(t.check,F,2,0),c=0,l=0,t.mode=16181;break}if(t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&c)<<8)+(c>>8))%31){A.msg="incorrect header check",t.mode=De;break}if((15&c)!==_e){A.msg="unknown compression method",t.mode=De;break}if(c>>>=4,l-=4,v=8+(15&c),0===t.wbits&&(t.wbits=v),v>15||v>t.wbits){A.msg="invalid window size",t.mode=De;break}t.dmax=1<<t.wbits,t.flags=0,A.adler=t.check=1,t.mode=512&c?16189:Ie,c=0,l=0;break;case 16181:for(;l<16;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(t.flags=c,(255&t.flags)!==_e){A.msg="unknown compression method",t.mode=De;break}if(57344&t.flags){A.msg="unknown header flags set",t.mode=De;break}t.head&&(t.head.text=c>>8&1),512&t.flags&&4&t.wrap&&(F[0]=255&c,F[1]=c>>>8&255,t.check=$A(t.check,F,2,0)),c=0,l=0,t.mode=16182;case 16182:for(;l<32;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}t.head&&(t.head.time=c),512&t.flags&&4&t.wrap&&(F[0]=255&c,F[1]=c>>>8&255,F[2]=c>>>16&255,F[3]=c>>>24&255,t.check=$A(t.check,F,4,0)),c=0,l=0,t.mode=16183;case 16183:for(;l<16;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}t.head&&(t.head.xflags=255&c,t.head.os=c>>8),512&t.flags&&4&t.wrap&&(F[0]=255&c,F[1]=c>>>8&255,t.check=$A(t.check,F,2,0)),c=0,l=0,t.mode=16184;case 16184:if(1024&t.flags){for(;l<16;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}t.length=c,t.head&&(t.head.extra_len=c),512&t.flags&&4&t.wrap&&(F[0]=255&c,F[1]=c>>>8&255,t.check=$A(t.check,F,2,0)),c=0,l=0}else t.head&&(t.head.extra=null);t.mode=16185;case 16185:if(1024&t.flags&&(f=t.length,f>o&&(f=o),f&&(t.head&&(v=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(i,i+f),v)),512&t.flags&&4&t.wrap&&(t.check=$A(t.check,r,f,i)),o-=f,i+=f,t.length-=f),t.length))break A;t.length=0,t.mode=16186;case 16186:if(2048&t.flags){if(0===o)break A;f=0;do{v=r[i+f++],t.head&&v&&t.length<65536&&(t.head.name+=String.fromCharCode(v))}while(v&&f<o);if(512&t.flags&&4&t.wrap&&(t.check=$A(t.check,r,f,i)),o-=f,i+=f,v)break A}else t.head&&(t.head.name=null);t.length=0,t.mode=16187;case 16187:if(4096&t.flags){if(0===o)break A;f=0;do{v=r[i+f++],t.head&&v&&t.length<65536&&(t.head.comment+=String.fromCharCode(v))}while(v&&f<o);if(512&t.flags&&4&t.wrap&&(t.check=$A(t.check,r,f,i)),o-=f,i+=f,v)break A}else t.head&&(t.head.comment=null);t.mode=16188;case 16188:if(512&t.flags){for(;l<16;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(4&t.wrap&&c!==(65535&t.check)){A.msg="header crc mismatch",t.mode=De;break}c=0,l=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=Ie;break;case 16189:for(;l<32;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}A.adler=t.check=Oe(c),c=0,l=0,t.mode=ke;case ke:if(0===t.havedict)return A.next_out=s,A.avail_out=a,A.next_in=i,A.avail_in=o,t.hold=c,t.bits=l,Qe;A.adler=t.check=1,t.mode=Ie;case Ie:if(e===be||e===ye)break A;case Se:if(t.last){c>>>=7&l,l-=7&l,t.mode=Pe;break}for(;l<3;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}switch(t.last=1&c,c>>>=1,l-=1,3&c){case 0:t.mode=16193;break;case 1:if(Je(t),t.mode=He,e===ye){c>>>=2,l-=2;break A}break;case 2:t.mode=16196;break;case 3:A.msg="invalid block type",t.mode=De}c>>>=2,l-=2;break;case 16193:for(c>>>=7&l,l-=7&l;l<32;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){A.msg="invalid stored block lengths",t.mode=De;break}if(t.length=65535&c,c=0,l=0,t.mode=je,e===ye)break A;case je:t.mode=16195;case 16195:if(f=t.length,f){if(f>o&&(f=o),f>a&&(f=a),0===f)break A;n.set(r.subarray(i,i+f),s),o-=f,i+=f,a-=f,s+=f,t.length-=f;break}t.mode=Ie;break;case 16196:for(;l<14;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(t.nlen=257+(31&c),c>>>=5,l-=5,t.ndist=1+(31&c),c>>>=5,l-=5,t.ncode=4+(15&c),c>>>=4,l-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=De;break}t.have=0,t.mode=16197;case 16197:for(;t.have<t.ncode;){for(;l<3;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}t.lens[L[t.have++]]=7&c,c>>>=3,l-=3}for(;t.have<19;)t.lens[L[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,U={bits:t.lenbits},C=we(0,t.lens,0,19,t.lencode,0,t.work,U),t.lenbits=U.bits,C){A.msg="invalid code lengths set",t.mode=De;break}t.have=0,t.mode=16198;case 16198:for(;t.have<t.nlen+t.ndist;){for(;Q=t.lencode[c&(1<<t.lenbits)-1],g=Q>>>24,B=Q>>>16&255,w=65535&Q,!(g<=l);){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(w<16)c>>>=g,l-=g,t.lens[t.have++]=w;else{if(16===w){for(x=g+2;l<x;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(c>>>=g,l-=g,0===t.have){A.msg="invalid bit length repeat",t.mode=De;break}v=t.lens[t.have-1],f=3+(3&c),c>>>=2,l-=2}else if(17===w){for(x=g+3;l<x;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}c>>>=g,l-=g,v=0,f=3+(7&c),c>>>=3,l-=3}else{for(x=g+7;l<x;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}c>>>=g,l-=g,v=0,f=11+(127&c),c>>>=7,l-=7}if(t.have+f>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=De;break}for(;f--;)t.lens[t.have++]=v}}if(t.mode===De)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=De;break}if(t.lenbits=9,U={bits:t.lenbits},C=we(1,t.lens,0,t.nlen,t.lencode,0,t.work,U),t.lenbits=U.bits,C){A.msg="invalid literal/lengths set",t.mode=De;break}if(t.distbits=6,t.distcode=t.distdyn,U={bits:t.distbits},C=we(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,U),t.distbits=U.bits,C){A.msg="invalid distances set",t.mode=De;break}if(t.mode=He,e===ye)break A;case He:t.mode=Ne;case Ne:if(o>=6&&a>=258){A.next_out=s,A.avail_out=a,A.next_in=i,A.avail_in=o,t.hold=c,t.bits=l,he(A,h),s=A.next_out,n=A.output,a=A.avail_out,i=A.next_in,r=A.input,o=A.avail_in,c=t.hold,l=t.bits,t.mode===Ie&&(t.back=-1);break}for(t.back=0;Q=t.lencode[c&(1<<t.lenbits)-1],g=Q>>>24,B=Q>>>16&255,w=65535&Q,!(g<=l);){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(B&&!(240&B)){for(m=g,b=B,y=w;Q=t.lencode[y+((c&(1<<m+b)-1)>>m)],g=Q>>>24,B=Q>>>16&255,w=65535&Q,!(m+g<=l);){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}c>>>=m,l-=m,t.back+=m}if(c>>>=g,l-=g,t.back+=g,t.length=w,0===B){t.mode=16205;break}if(32&B){t.back=-1,t.mode=Ie;break}if(64&B){A.msg="invalid literal/length code",t.mode=De;break}t.extra=15&B,t.mode=16201;case 16201:if(t.extra){for(x=t.extra;l<x;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}t.length+=c&(1<<t.extra)-1,c>>>=t.extra,l-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=16202;case 16202:for(;Q=t.distcode[c&(1<<t.distbits)-1],g=Q>>>24,B=Q>>>16&255,w=65535&Q,!(g<=l);){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(!(240&B)){for(m=g,b=B,y=w;Q=t.distcode[y+((c&(1<<m+b)-1)>>m)],g=Q>>>24,B=Q>>>16&255,w=65535&Q,!(m+g<=l);){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}c>>>=m,l-=m,t.back+=m}if(c>>>=g,l-=g,t.back+=g,64&B){A.msg="invalid distance code",t.mode=De;break}t.offset=w,t.extra=15&B,t.mode=16203;case 16203:if(t.extra){for(x=t.extra;l<x;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}t.offset+=c&(1<<t.extra)-1,c>>>=t.extra,l-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=De;break}t.mode=16204;case 16204:if(0===a)break A;if(f=h-a,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=De;break}f>t.wnext?(f-=t.wnext,d=t.wsize-f):d=t.wnext-f,f>t.length&&(f=t.length),p=t.window}else p=n,d=s-t.offset,f=t.length;f>a&&(f=a),a-=f,t.length-=f;do{n[s++]=p[d++]}while(--f);0===t.length&&(t.mode=Ne);break;case 16205:if(0===a)break A;n[s++]=t.length,a--,t.mode=Ne;break;case Pe:if(t.wrap){for(;l<32;){if(0===o)break A;o--,c|=r[i++]<<l,l+=8}if(h-=a,A.total_out+=h,t.total+=h,4&t.wrap&&h&&(A.adler=t.check=t.flags?$A(t.check,n,h,s-h):YA(t.check,n,h,s-h)),h=a,4&t.wrap&&(t.flags?c:Oe(c))!==t.check){A.msg="incorrect data check",t.mode=De;break}c=0,l=0}t.mode=16207;case 16207:if(t.wrap&&t.flags){for(;l<32;){if(0===o)break A;o--,c+=r[i++]<<l,l+=8}if(4&t.wrap&&c!==(4294967295&t.total)){A.msg="incorrect length check",t.mode=De;break}c=0,l=0}t.mode=16208;case 16208:C=Ce;break A;case De:C=Ue;break A;case 16210:return xe;default:return Fe}return A.next_out=s,A.avail_out=a,A.next_in=i,A.avail_in=o,t.hold=c,t.bits=l,(t.wsize||h!==A.avail_out&&t.mode<De&&(t.mode<Pe||e!==me))&&Xe(A,A.output,A.next_out,h-A.avail_out),u-=A.avail_in,h-=A.avail_out,A.total_in+=u,A.total_out+=h,t.total+=h,4&t.wrap&&h&&(A.adler=t.check=t.flags?$A(t.check,n,h,A.next_out-h):YA(t.check,n,h,A.next_out-h)),A.data_type=t.bits+(t.last?64:0)+(t.mode===Ie?128:0)+(t.mode===He||t.mode===je?256:0),(0===u&&0===h||e===me)&&C===ve&&(C=Le),C},inflateEnd:A=>{if(Te(A))return Fe;let e=A.state;return e.window&&(e.window=null),A.state=null,ve},inflateGetHeader:(A,e)=>{if(Te(A))return Fe;const t=A.state;return 2&t.wrap?(t.head=e,e.done=!1,ve):Fe},inflateSetDictionary:(A,e)=>{const t=e.length;let r,n,i;return Te(A)?Fe:(r=A.state,0!==r.wrap&&r.mode!==ke?Fe:r.mode===ke&&(n=1,n=YA(n,e,t,0),n!==r.check)?Ue:(i=Xe(A,e,t,t),i?(r.mode=16210,xe):(r.havedict=1,ve)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ze=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 $e=Object.prototype.toString,{Z_NO_FLUSH:At,Z_FINISH:et,Z_OK:tt,Z_STREAM_END:rt,Z_NEED_DICT:nt,Z_STREAM_ERROR:it,Z_DATA_ERROR:st,Z_MEM_ERROR:ot}=ee;function at(A){this.options=re({chunkSize:65536,windowBits:15,to:""},A||{});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)||A&&A.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 le,this.strm.avail_out=0;let t=Ye.inflateInit2(this.strm,e.windowBits);if(t!==tt)throw new Error(Ae[t]);if(this.header=new Ze,Ye.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=oe(e.dictionary):"[object ArrayBuffer]"===$e.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Ye.inflateSetDictionary(this.strm,e.dictionary),t!==tt)))throw new Error(Ae[t])}at.prototype.push=function(A,e){const t=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,s,o;if(this.ended)return!1;for(s=e===~~e?e:!0===e?et:At,"[object ArrayBuffer]"===$e.call(A)?t.input=new Uint8Array(A):t.input=A,t.next_in=0,t.avail_in=t.input.length;;){for(0===t.avail_out&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),i=Ye.inflate(t,s),i===nt&&n&&(i=Ye.inflateSetDictionary(t,n),i===tt?i=Ye.inflate(t,s):i===st&&(i=nt));t.avail_in>0&&i===rt&&t.state.wrap>0&&0!==A[t.next_in];)Ye.inflateReset(t),i=Ye.inflate(t,s);switch(i){case it:case st:case nt:case ot:return this.onEnd(i),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(0===t.avail_out||i===rt))if("string"===this.options.to){let A=ce(t.output,t.next_out),e=t.next_out-A,n=ae(t.output,A);t.next_out=e,t.avail_out=r-e,e&&t.output.set(t.output.subarray(A,A+e),0),this.onData(n)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(i!==tt||0!==o){if(i===rt)return i=Ye.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===t.avail_in)break}}return!0},at.prototype.onData=function(A){this.chunks.push(A)},at.prototype.onEnd=function(A){A===tt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ne(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var ct={Inflate:at,inflate:function(A,e){const t=new at(e);if(t.push(A),t.err)throw t.msg||Ae[t.err];return t.result}};const{Inflate:lt,inflate:ut}=ct;var ht=lt,ft=ut;const dt=[];for(let mo=0;mo<256;mo++){let A=mo;for(let e=0;e<8;e++)1&A?A=3988292384^A>>>1:A>>>=1;dt[mo]=A}const pt=4294967295;function gt(A,e){return(function(A,e,t){let r=A;for(let n=0;n<t;n++)r=dt[255&(r^e[n])]^r>>>8;return r}(pt,A,e)^pt)>>>0}function Bt(A,e,t){const r=A.readUint32(),n=gt(new Uint8Array(A.buffer,A.byteOffset+A.offset-e-4,e),e);if(n!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${n}`)}function wt(A,e,t){for(let r=0;r<t;r++)e[r]=A[r]}function mt(A,e,t,r){let n=0;for(;n<r;n++)e[n]=A[n];for(;n<t;n++)e[n]=A[n]+e[n-r]&255}function bt(A,e,t,r){let n=0;if(0===t.length)for(;n<r;n++)e[n]=A[n];else for(;n<r;n++)e[n]=A[n]+t[n]&255}function yt(A,e,t,r,n){let i=0;if(0===t.length){for(;i<n;i++)e[i]=A[i];for(;i<r;i++)e[i]=A[i]+(e[i-n]>>1)&255}else{for(;i<n;i++)e[i]=A[i]+(t[i]>>1)&255;for(;i<r;i++)e[i]=A[i]+(e[i-n]+t[i]>>1)&255}}function vt(A,e,t,r,n){let i=0;if(0===t.length){for(;i<n;i++)e[i]=A[i];for(;i<r;i++)e[i]=A[i]+e[i-n]&255}else{for(;i<n;i++)e[i]=A[i]+t[i]&255;for(;i<r;i++)e[i]=A[i]+Ct(e[i-n],t[i],t[i-n])&255}}function Ct(A,e,t){const r=A+e-t,n=Math.abs(r-A),i=Math.abs(r-e),s=Math.abs(r-t);return n<=i&&n<=s?A:i<=s?e:t}function Qt(A,e,t,r,n,i){switch(A){case 0:wt(e,t,n);break;case 1:mt(e,t,n,i);break;case 2:bt(e,t,r,n);break;case 3:yt(e,t,r,n,i);break;case 4:vt(e,t,r,n,i);break;default:throw new Error(`Unsupported filter: ${A}`)}}const Ft=new Uint16Array([255]),Ut=255===new Uint8Array(Ft.buffer)[0];function xt(A){return(255&A)<<8|A>>8&255}const Lt=new Uint16Array([255]),_t=255===new Uint8Array(Lt.buffer)[0],Et=new Uint8Array(0);function kt(A){const{data:e,width:t,height:r,channels:n,depth:i}=A,s=Math.ceil(i/8)*n,o=Math.ceil(i/8*n*t),a=new Uint8Array(r*o);let c,l,u=Et,h=0;for(let f=0;f<r;f++){switch(c=e.subarray(h+1,h+1+o),l=a.subarray(f*o,(f+1)*o),e[h]){case 0:wt(c,l,o);break;case 1:mt(c,l,o,s);break;case 2:bt(c,l,u,o);break;case 3:yt(c,l,u,o,s);break;case 4:vt(c,l,u,o,s);break;default:throw new Error(`Unsupported filter: ${e[h]}`)}u=l,h+=o+1}if(16===i){const A=new Uint16Array(a.buffer);if(_t)for(let e=0;e<A.length;e++)A[e]=It(A[e]);return A}return a}function It(A){return(255&A)<<8|A>>8&255}const St=Uint8Array.of(137,80,78,71,13,10,26,10);function jt(A){if(!function(A){if(A.length<St.length)return!1;for(let e=0;e<St.length;e++)if(A[e]!==St[e])return!1;return!0}(A.readBytes(St.length)))throw new Error("wrong PNG signature")}const Ht=new TextDecoder("latin1");function Nt(A){if(function(A){if(!Pt.test(A))throw new Error("invalid latin1 text")}(A),0===A.length||A.length>79)throw new Error("keyword length must be between 1 and 79")}const Pt=/^[\u0000-\u00FF]*$/;function Dt(A,e,t){const r=Ot(e);A[r]=function(A,e){return Ht.decode(A.readBytes(e))}(e,t-r.length-1)}function Ot(A){for(A.mark();0!==A.readByte(););const e=A.offset;A.reset();const t=Ht.decode(A.readBytes(e-A.offset-1));return A.skip(1),Nt(t),t}const Mt=-1,Tt=0,Kt=2,Rt=3,Vt=4,Gt=6,qt=-1,zt=0,Wt=-1,Jt=0,Xt=-1,Yt=0,Zt=1,$t=0,Ar=1,er=2,tr=0,rr=1;class nr extends JA{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(A,e={}){super(A);const{checkCrc:t=!1}=e;this._checkCrc=t,this._inflator=new ht,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=qt,this._filterMethod=Wt,this._interlaceMethod=Xt,this._colorType=Mt,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(jt(this);!this._end;){const A=this.readUint32(),e=this.readChars(4);this.decodeChunk(A,e)}return this.decodeImage(),this._png}decodeApng(){for(jt(this);!this._end;){const A=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(A,e)}return this.decodeApngImage(),this._apng}decodeChunk(A,e){const t=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(A);break;case"IDAT":this.decodeIDAT(A);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(A);break;case"iCCP":this.decodeiCCP(A);break;case"tEXt":Dt(this._png.text,this,A);break;case"pHYs":this.decodepHYs();break;default:this.skip(A)}if(this.offset-t!==A)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Bt(this,A+4,e):this.skip(4)}decodeApngChunk(A,e){const t=this.offset;switch("fdAT"!==e&&"IDAT"!==e&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(A);break;default:this.decodeChunk(A,e),this.offset=t+A}if(this.offset-t!==A)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Bt(this,A+4,e):this.skip(4)}decodeIHDR(){const A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=function(A){if(1!==A&&2!==A&&4!==A&&8!==A&&16!==A)throw new Error(`invalid bit depth: ${A}`);return A}(this.readUint8());const e=this.readUint8();let t;switch(this._colorType=e,e){case Tt:t=1;break;case Kt:t=3;break;case Rt:t=1;break;case Vt:t=2;break;case Gt:t=4;break;default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=t,this._compressionMethod=this.readUint8(),this._compressionMethod!==zt)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const A={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(A)}decodePLTE(A){if(A%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${A}`);const e=A/3;this._hasPalette=!0;const t=[];this._palette=t;for(let r=0;r<e;r++)t.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(A){this._writingDataChunks=!0;const e=A,t=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,t,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodeFDAT(A){this._writingDataChunks=!0;let e=A,t=this.offset+this.byteOffset;if(t+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,t,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodetRNS(A){switch(this._colorType){case Tt:case Kt:if(A%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${A}`);if(A/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${A/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(A/2);for(let e=0;e<A/2;e++)this._transparency[e]=this.readUint16();break;case Rt:{if(A>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${A} vs ${this._palette.length})`);let e=0;for(;e<A;e++){const A=this.readByte();this._palette[e].push(A)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(A){const e=Ot(this),t=this.readUint8();if(t!==zt)throw new Error(`Unsupported iCCP compression method: ${t}`);const r=this.readBytes(A-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:ft(r)}}decodepHYs(){const A=this.readUint32(),e=this.readUint32(),t=this.readByte();this._png.resolution={x:A,y:e,unit:t}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let A=0;A<this._numberOfFrames;A++){const e={sequenceNumber:this._frames[A].sequenceNumber,delayNumber:this._frames[A].delayNumber,delayDenominator:this._frames[A].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},t=this._frames.at(A);if(t){if(t.data=kt({data:t.data,width:t.width,height:t.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===A||0===t.xOffset&&0===t.yOffset&&t.width===this._png.width&&t.height===this._png.height)e.data=t.data;else{const r=this._apng.frames.at(A-1);this.disposeFrame(t,r,e),this.addFrameDataToCanvas(e,t)}this._apng.frames.push(e)}}return this._apng}disposeFrame(A,e,t){switch(A.disposeOp){case $t:break;case Ar:for(let e=0;e<this._png.height;e++)for(let r=0;r<this._png.width;r++){const n=(e*A.width+r)*this._png.channels;for(let A=0;A<this._png.channels;A++)t.data[n+A]=0}break;case er:t.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(A,e){const t=1<<this._png.depth,r=(A,t)=>({index:((A+e.yOffset)*this._png.width+e.xOffset+t)*this._png.channels,frameIndex:(A*e.width+t)*this._png.channels});switch(e.blendOp){case tr:for(let t=0;t<e.height;t++)for(let n=0;n<e.width;n++){const{index:i,frameIndex:s}=r(t,n);for(let t=0;t<this._png.channels;t++)A.data[i+t]=e.data[s+t]}break;case rr:for(let n=0;n<e.height;n++)for(let i=0;i<e.width;i++){const{index:s,frameIndex:o}=r(n,i);for(let r=0;r<this._png.channels;r++){const n=e.data[o+this._png.channels-1]/t,i=r%(this._png.channels-1)==0?1:e.data[o+r],a=Math.floor(n*i+(1-n)*A.data[s+r]);A.data[s+r]+=a}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var A;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(null==(A=this._frames)?void 0:A.at(0)).data:this._inflator.result;if(this._filterMethod!==Jt)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Yt)this._png.data=kt({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==Zt)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(A){const{data:e,width:t,height:r,channels:n,depth:i}=A,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],o=Math.ceil(i/8)*n,a=new Uint8Array(r*t*o);let c=0;for(let l=0;l<7;l++){const A=s[l],n=Math.ceil((t-A.x)/A.xStep),i=Math.ceil((r-A.y)/A.yStep);if(n<=0||i<=0)continue;const u=n*o,h=new Uint8Array(u);for(let s=0;s<i;s++){const i=e[c++],l=e.subarray(c,c+u);c+=u;const f=new Uint8Array(u);Qt(i,l,f,h,u,o),h.set(f);for(let e=0;e<n;e++){const n=A.x+e*A.xStep,i=A.y+s*A.yStep;if(!(n>=t||i>=r))for(let A=0;A<o;A++)a[(i*t+n)*o+A]=f[e*o+A]}}}if(16===i){const A=new Uint16Array(a.buffer);if(Ut)for(let e=0;e<A.length;e++)A[e]=xt(A[e]);return A}return a}({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const A=this._inflator.result,e=this._frames.at(-1);e?e.data=A:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:$t,blendOp:tr,data:A}),this._inflator=new ht,this._writingDataChunks=!1}}var ir,sr;(sr=ir||(ir={}))[sr.UNKNOWN=0]="UNKNOWN",sr[sr.METRE=1]="METRE";var or=function(){return"undefined"!=typeof window?window:void 0!==$?$:"undefined"!=typeof self?self:this}();function ar(){or.console&&"function"==typeof or.console.log&&or.console.log.apply(or.console,arguments)}var cr={log:ar,warn:function(A){or.console&&("function"==typeof or.console.warn?or.console.warn.apply(or.console,arguments):ar.call(null,arguments))},error:function(A){or.console&&("function"==typeof or.console.error?or.console.error.apply(or.console,arguments):ar(A))}};function lr(A,e,t){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){fr(r.response,e,t)},r.onerror=function(){cr.error("could not download file")},r.send()}function ur(A){var e=new XMLHttpRequest;e.open("HEAD",A,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function hr(A){try{A.dispatchEvent(new MouseEvent("click"))}catch(t){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(e)}}var fr=or.saveAs||("object"!==("undefined"==typeof window?"undefined":oA(window))||window!==or?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(A,e,t){var r=or.URL||or.webkitURL,n=document.createElement("a");e=e||A.name||"download",n.download=e,n.rel="noopener","string"==typeof A?(n.href=A,n.origin!==location.origin?ur(n.href)?lr(A,e,t):hr(n,n.target="_blank"):hr(n)):(n.href=r.createObjectURL(A),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){hr(n)},0))}:"msSaveOrOpenBlob"in navigator?function(A,e,t){if(e=e||A.name||"download","string"==typeof A)if(ur(A))lr(A,e,t);else{var r=document.createElement("a");r.href=A,r.target="_blank",setTimeout(function(){hr(r)})}else navigator.msSaveOrOpenBlob((n=A,void 0===(i=t)?i={autoBom:!1}:"object"!==oA(i)&&(cr.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n),e);var n,i}:function(A,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof A)return lr(A,e,t);var n="application/octet-stream"===A.type,i=/constructor/i.test(or.HTMLElement)||or.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&"object"===("undefined"==typeof FileReader?"undefined":oA(FileReader))){var o=new FileReader;o.onloadend=function(){var A=o.result;A=s?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=A:location=A,r=null},o.readAsDataURL(A)}else{var a=or.URL||or.webkitURL,c=a.createObjectURL(A);r?r.location=c:location.href=c,r=null,setTimeout(function(){a.revokeObjectURL(c)},4e4)}});
3
- /**
4
- * A class to parse color values
5
- * @author Stoyan Stefanov <sstoo@gmail.com>
6
- * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
7
- * @license Use it if you like it
8
- */function dr(A){var e;A=A||"",this.ok=!1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A={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",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"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,s=n.exec(A);s&&(e=i(s),this.r=e[0],this.g=e[1],this.b=e[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var A=this.r.toString(16),e=this.g.toString(16),t=this.b.toString(16);return 1==A.length&&(A="0"+A),1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),"#"+A+e+t}}var pr=or.atob.bind(or),gr=or.btoa.bind(or);
9
- /**
10
- * @license
11
- * Joseph Myers does not specify a particular license for his work.
12
- *
13
- * Author: Joseph Myers
14
- * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
15
- *
16
- * Modified by: Owen Leong
17
- */function Br(A,e){var t=A[0],r=A[1],n=A[2],i=A[3];t=mr(t,r,n,i,e[0],7,-680876936),i=mr(i,t,r,n,e[1],12,-389564586),n=mr(n,i,t,r,e[2],17,606105819),r=mr(r,n,i,t,e[3],22,-1044525330),t=mr(t,r,n,i,e[4],7,-176418897),i=mr(i,t,r,n,e[5],12,1200080426),n=mr(n,i,t,r,e[6],17,-1473231341),r=mr(r,n,i,t,e[7],22,-45705983),t=mr(t,r,n,i,e[8],7,1770035416),i=mr(i,t,r,n,e[9],12,-1958414417),n=mr(n,i,t,r,e[10],17,-42063),r=mr(r,n,i,t,e[11],22,-1990404162),t=mr(t,r,n,i,e[12],7,1804603682),i=mr(i,t,r,n,e[13],12,-40341101),n=mr(n,i,t,r,e[14],17,-1502002290),t=br(t,r=mr(r,n,i,t,e[15],22,1236535329),n,i,e[1],5,-165796510),i=br(i,t,r,n,e[6],9,-1069501632),n=br(n,i,t,r,e[11],14,643717713),r=br(r,n,i,t,e[0],20,-373897302),t=br(t,r,n,i,e[5],5,-701558691),i=br(i,t,r,n,e[10],9,38016083),n=br(n,i,t,r,e[15],14,-660478335),r=br(r,n,i,t,e[4],20,-405537848),t=br(t,r,n,i,e[9],5,568446438),i=br(i,t,r,n,e[14],9,-1019803690),n=br(n,i,t,r,e[3],14,-187363961),r=br(r,n,i,t,e[8],20,1163531501),t=br(t,r,n,i,e[13],5,-1444681467),i=br(i,t,r,n,e[2],9,-51403784),n=br(n,i,t,r,e[7],14,1735328473),t=yr(t,r=br(r,n,i,t,e[12],20,-1926607734),n,i,e[5],4,-378558),i=yr(i,t,r,n,e[8],11,-2022574463),n=yr(n,i,t,r,e[11],16,1839030562),r=yr(r,n,i,t,e[14],23,-35309556),t=yr(t,r,n,i,e[1],4,-1530992060),i=yr(i,t,r,n,e[4],11,1272893353),n=yr(n,i,t,r,e[7],16,-155497632),r=yr(r,n,i,t,e[10],23,-1094730640),t=yr(t,r,n,i,e[13],4,681279174),i=yr(i,t,r,n,e[0],11,-358537222),n=yr(n,i,t,r,e[3],16,-722521979),r=yr(r,n,i,t,e[6],23,76029189),t=yr(t,r,n,i,e[9],4,-640364487),i=yr(i,t,r,n,e[12],11,-421815835),n=yr(n,i,t,r,e[15],16,530742520),t=vr(t,r=yr(r,n,i,t,e[2],23,-995338651),n,i,e[0],6,-198630844),i=vr(i,t,r,n,e[7],10,1126891415),n=vr(n,i,t,r,e[14],15,-1416354905),r=vr(r,n,i,t,e[5],21,-57434055),t=vr(t,r,n,i,e[12],6,1700485571),i=vr(i,t,r,n,e[3],10,-1894986606),n=vr(n,i,t,r,e[10],15,-1051523),r=vr(r,n,i,t,e[1],21,-2054922799),t=vr(t,r,n,i,e[8],6,1873313359),i=vr(i,t,r,n,e[15],10,-30611744),n=vr(n,i,t,r,e[6],15,-1560198380),r=vr(r,n,i,t,e[13],21,1309151649),t=vr(t,r,n,i,e[4],6,-145523070),i=vr(i,t,r,n,e[11],10,-1120210379),n=vr(n,i,t,r,e[2],15,718787259),r=vr(r,n,i,t,e[9],21,-343485551),A[0]=Er(t,A[0]),A[1]=Er(r,A[1]),A[2]=Er(n,A[2]),A[3]=Er(i,A[3])}function wr(A,e,t,r,n,i){return e=Er(Er(e,A),Er(r,i)),Er(e<<n|e>>>32-n,t)}function mr(A,e,t,r,n,i,s){return wr(e&t|~e&r,A,e,n,i,s)}function br(A,e,t,r,n,i,s){return wr(e&r|t&~r,A,e,n,i,s)}function yr(A,e,t,r,n,i,s){return wr(e^t^r,A,e,n,i,s)}function vr(A,e,t,r,n,i,s){return wr(t^(e|~r),A,e,n,i,s)}function Cr(A){var e,t=A.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=A.length;e+=64)Br(r,Qr(A.substring(e-64,e)));A=A.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<A.length;e++)n[e>>2]|=A.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(Br(r,n),e=0;e<16;e++)n[e]=0;return n[14]=8*t,Br(r,n),r}function Qr(A){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=A.charCodeAt(e)+(A.charCodeAt(e+1)<<8)+(A.charCodeAt(e+2)<<16)+(A.charCodeAt(e+3)<<24);return t}var Fr="0123456789abcdef".split("");function Ur(A){for(var e="",t=0;t<4;t++)e+=Fr[A>>8*t+4&15]+Fr[A>>8*t&15];return e}function xr(A){return String.fromCharCode(255&A,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function Lr(A){return Cr(A).map(xr).join("")}var _r="5d41402abc4b2a76b9719d911017c592"!=function(A){for(var e=0;e<A.length;e++)A[e]=Ur(A[e]);return A.join("")}(Cr("hello"));function Er(A,e){if(_r){var t=(65535&A)+(65535&e);return(A>>16)+(e>>16)+(t>>16)<<16|65535&t}return A+e&4294967295}
18
- /**
19
- * @license
20
- * FPDF is released under a permissive license: there is no usage restriction.
21
- * You may embed it freely in your application (commercial or not), with or
22
- * without modifications.
23
- *
24
- * Reference: http://www.fpdf.org/en/script/script37.php
25
- */function kr(A,e){var t,r,n,i;if(A!==t){for(var s=(n=A,i=1+(256/A.length|0),new Array(i+1).join(n)),o=[],a=0;a<256;a++)o[a]=a;var c=0;for(a=0;a<256;a++){var l=o[a];c=(c+l+s.charCodeAt(a))%256,o[a]=o[c],o[c]=l}t=A,r=o}else o=r;var u=e.length,h=0,f=0,d="";for(a=0;a<u;a++)f=(f+(l=o[h=(h+1)%256]))%256,o[h]=o[f],o[f]=l,s=o[(o[h]+o[f])%256],d+=String.fromCharCode(e.charCodeAt(a)^s);return d}
26
- /**
27
- * @license
28
- * Licensed under the MIT License.
29
- * http://opensource.org/licenses/mit-license
30
- * Author: Owen Leong (@owenl131)
31
- * Date: 15 Oct 2020
32
- * References:
33
- * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
34
- * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
35
- * http://www.fpdf.org/en/script/script37.php
36
- */var Ir={print:4,modify:8,copy:16,"annot-forms":32};function Sr(A,e,t,r){this.v=1,this.r=2;var n=192;A.forEach(function(A){if(void 0!==Ir.perm)throw new Error("Invalid permission: "+A);n+=Ir[A]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(e+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=Lr(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=kr(this.encryptionKey,this.padding)}function jr(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var e="",t=A.length,r=0;r<t;r++){var n=A.charCodeAt(r);e+=n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126?"#"+("0"+n.toString(16)).slice(-2):A[r]}return e}function Hr(A){if("object"!==oA(A))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(A,t,r){if(r=r||!1,"string"!=typeof A||"function"!=typeof t||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(A)||(e[A]={});var n=Math.random().toString(35);return e[A][n]=[t,!!r],n},this.unsubscribe=function(A){for(var t in e)if(e[t][A])return delete e[t][A],0===Object.keys(e[t]).length&&delete e[t],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in e[t]){var s=e[t][i];try{s[0].apply(A,r)}catch(o){or.console&&cr.error("jsPDF PubSub Error",o.message,o)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Nr(A){if(!(this instanceof Nr))return new Nr(A);var e="opacity,stroke-opacity".split(",");for(var t in A)A.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=A[t]);this.id="",this.objectNumber=-1}function Pr(A,e){this.gState=A,this.matrix=e,this.id="",this.objectNumber=-1}function Dr(A,e,t,r,n){if(!(this instanceof Dr))return new Dr(A,e,t,r,n);this.type="axial"===A?2:3,this.coords=e,this.colors=t,Pr.call(this,r,n)}function Or(A,e,t,r,n){if(!(this instanceof Or))return new Or(A,e,t,r,n);this.boundingBox=A,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,Pr.call(this,r,n)}function Mr(A){var e,t="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],o=1,a=16,c="S",l=null;"object"===oA(A=A||{})&&(t=A.orientation,r=A.unit||r,n=A.format||n,i=A.compress||A.compressPdf||i,null!==(l=A.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),o="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(e=A.precision),void 0!==A.floatPrecision&&(a=A.floatPrecision),c=A.defaultPathOperation||"S"),s=A.filters||(!0===i?["FlateEncode"]:s),r=r||"mm",t=(""+(t||"P")).toLowerCase();var u=A.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=Hr;var d="1.3",p=f.__private__.getPdfVersion=function(){return d};f.__private__.setPdfVersion=function(A){d=A};var g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return g};var B=f.__private__.getPageFormat=function(A){return g[A]};n=n||"a4";var w="compat",m="advanced",b=w;function y(){this.saveGraphicsState(),Y(new IA(fA,0,0,-fA,0,ft()*fA).toString()+" cm"),this.setFontSize(this.getFontSize()/fA),c="n",b=m}function v(){this.restoreGraphicsState(),c="S",b=w}var C=f.__private__.combineFontStyleAndFontWeight=function(A,e){if("bold"==A&&"normal"==e||"bold"==A&&400==e||"normal"==A&&"italic"==e||"bold"==A&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(A=400==e||"normal"===e?"italic"===A?"italic":"normal":700!=e&&"bold"!==e||"normal"!==A?(700==e?"bold":e)+""+A:"bold"),A};f.advancedAPI=function(A){var e=b===w;return e&&y.call(this),"function"!=typeof A||(A(this),e&&v.call(this)),this},f.compatAPI=function(A){var e=b===m;return e&&v.call(this),"function"!=typeof A||(A(this),e&&y.call(this)),this},f.isAdvancedAPI=function(){return b===m};var Q,F=function(A){if(b!==m)throw new Error(A+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},U=f.roundToPrecision=f.__private__.roundToPrecision=function(A,t){var r=e||t;if(isNaN(A)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return A.toFixed(r).replace(/0+$/,"")};Q=f.hpf=f.__private__.hpf="number"==typeof a?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return U(A,a)}:"smart"===a?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return U(A,A>-1&&A<1?16:5)}:function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return U(A,16)};var x=f.f2=f.__private__.f2=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f2");return U(A,2)},L=f.__private__.f3=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f3");return U(A,3)},_=f.scale=f.__private__.scale=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.scale");return b===w?A*fA:b===m?A:void 0},E=function(A){return _((e=A,b===w?ft()-e:b===m?e:void 0));var e};f.__private__.setPrecision=f.setPrecision=function(A){"number"==typeof parseInt(A,10)&&(e=parseInt(A,10))};var k,I="00000000000000000000000000000000",S=f.__private__.getFileId=function(){return I},j=f.__private__.setFileId=function(A){return I=void 0!==A&&/^[a-fA-F0-9]{32}$/.test(A)?A.toUpperCase():I.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==l&&(me=new Sr(l.userPermissions,l.userPassword,l.ownerPassword,I)),I};f.setFileId=function(A){return j(A),this},f.getFileId=function(){return S()};var H=f.__private__.convertDateToPDFDate=function(A){var e=A.getTimezoneOffset(),t=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),i=[t,M(r),"'",M(n),"'"].join("");return["D:",A.getFullYear(),M(A.getMonth()+1),M(A.getDate()),M(A.getHours()),M(A.getMinutes()),M(A.getSeconds()),i].join("")},N=f.__private__.convertPDFDateToDate=function(A){var e=parseInt(A.substr(2,4),10),t=parseInt(A.substr(6,2),10)-1,r=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),i=parseInt(A.substr(12,2),10),s=parseInt(A.substr(14,2),10);return new Date(e,t,r,n,i,s,0)},P=f.__private__.setCreationDate=function(A){var e;if(void 0===A&&(A=new Date),A instanceof Date)e=H(A);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(A))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=A}return k=e},D=f.__private__.getCreationDate=function(A){var e=k;return"jsDate"===A&&(e=N(k)),e};f.setCreationDate=function(A){return P(A),this},f.getCreationDate=function(A){return D(A)};var O,M=f.__private__.padd2=function(A){return("0"+parseInt(A)).slice(-2)},T=f.__private__.padd2Hex=function(A){return("00"+(A=A.toString())).substr(A.length)},K=0,R=[],V=[],G=0,q=[],z=[],W=!1,J=V;f.__private__.setCustomOutputDestination=function(A){W=!0,J=A};var X=function(A){W||(J=A)};f.__private__.resetCustomOutputDestination=function(){W=!1,J=V};var Y=f.__private__.out=function(A){return A=A.toString(),G+=A.length+1,J.push(A),J},Z=f.__private__.write=function(A){return Y(1===arguments.length?A.toString():Array.prototype.join.call(arguments," "))},$=f.__private__.getArrayBuffer=function(A){for(var e=A.length,t=new ArrayBuffer(e),r=new Uint8Array(t);e--;)r[e]=A.charCodeAt(e);return t},AA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return AA};var eA=A.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(A){return eA=b===m?A/fA:A,this};var tA,rA=f.__private__.getFontSize=f.getFontSize=function(){return b===w?eA:eA*fA},nA=A.R2L||!1;f.__private__.setR2L=f.setR2L=function(A){return nA=A,this},f.__private__.getR2L=f.getR2L=function(){return nA};var iA,sA=f.__private__.setZoomMode=function(A){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(A))tA=A;else if(isNaN(A)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(A))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+A+'" is not recognized.');tA=A}else tA=parseInt(A,10)};f.__private__.getZoomMode=function(){return tA};var aA,cA=f.__private__.setPageMode=function(A){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');iA=A};f.__private__.getPageMode=function(){return iA};var lA=f.__private__.setLayoutMode=function(A){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(A))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+A+'" is not recognized.');aA=A};f.__private__.getLayoutMode=function(){return aA},f.__private__.setDisplayMode=f.setDisplayMode=function(A,e,t){return sA(A),lA(e),cA(t),this};var uA={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(A){if(-1===Object.keys(uA).indexOf(A))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return uA[A]},f.__private__.getDocumentProperties=function(){return uA},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(A){for(var e in uA)uA.hasOwnProperty(e)&&A[e]&&(uA[e]=A[e]);return this},f.__private__.setDocumentProperty=function(A,e){if(-1===Object.keys(uA).indexOf(A))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return uA[A]=e};var hA,fA,dA,pA,gA,BA={},wA={},mA=[],bA={},yA={},vA={},CA={},QA=null,FA=0,UA=[],xA=new Hr(f),LA=A.hotfixes||[],_A={},EA={},kA=[],IA=function A(e,t,r,n,i,s){if(!(this instanceof A))return new A(e,t,r,n,i,s);isNaN(e)&&(e=1),isNaN(t)&&(t=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(s)&&(s=0),this._matrix=[e,t,r,n,i,s]};Object.defineProperty(IA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(IA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(IA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(IA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(IA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(IA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(IA.prototype,"a",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(IA.prototype,"b",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(IA.prototype,"c",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(IA.prototype,"d",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(IA.prototype,"e",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(IA.prototype,"f",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(IA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(IA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(IA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(IA.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),IA.prototype.join=function(A){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Q).join(A)},IA.prototype.multiply=function(A){var e=A.sx*this.sx+A.shy*this.shx,t=A.sx*this.shy+A.shy*this.sy,r=A.shx*this.sx+A.sy*this.shx,n=A.shx*this.shy+A.sy*this.sy,i=A.tx*this.sx+A.ty*this.shx+this.tx,s=A.tx*this.shy+A.ty*this.sy+this.ty;return new IA(e,t,r,n,i,s)},IA.prototype.decompose=function(){var A=this.sx,e=this.shy,t=this.shx,r=this.sy,n=this.tx,i=this.ty,s=Math.sqrt(A*A+e*e),o=(A/=s)*t+(e/=s)*r;t-=A*o,r-=e*o;var a=Math.sqrt(t*t+r*r);return o/=a,A*(r/=a)<e*(t/=a)&&(A=-A,e=-e,o=-o,s=-s),{scale:new IA(s,0,0,a,0,0),translate:new IA(1,0,0,1,n,i),rotate:new IA(A,e,-e,A,0,0),skew:new IA(1,0,o,1,0,0)}},IA.prototype.toString=function(A){return this.join(" ")},IA.prototype.inversed=function(){var A=this.sx,e=this.shy,t=this.shx,r=this.sy,n=this.tx,i=this.ty,s=1/(A*r-e*t),o=r*s,a=-e*s,c=-t*s,l=A*s;return new IA(o,a,c,l,-o*n-c*i,-a*n-l*i)},IA.prototype.applyToPoint=function(A){var e=A.x*this.sx+A.y*this.shx+this.tx,t=A.x*this.shy+A.y*this.sy+this.ty;return new tt(e,t)},IA.prototype.applyToRectangle=function(A){var e=this.applyToPoint(A),t=this.applyToPoint(new tt(A.x+A.w,A.y+A.h));return new rt(e.x,e.y,t.x-e.x,t.y-e.y)},IA.prototype.clone=function(){var A=this.sx,e=this.shy,t=this.shx,r=this.sy,n=this.tx,i=this.ty;return new IA(A,e,t,r,n,i)},f.Matrix=IA;var SA=f.matrixMult=function(A,e){return e.multiply(A)},jA=new IA(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=jA;var HA=function(A,e){if(!yA[A]){var t=(e instanceof Dr?"Sh":"P")+(Object.keys(bA).length+1).toString(10);e.id=t,yA[A]=t,bA[t]=e,xA.publish("addPattern",e)}};f.ShadingPattern=Dr,f.TilingPattern=Or,f.addShadingPattern=function(A,e){return F("addShadingPattern()"),HA(A,e),this},f.beginTilingPattern=function(A){F("beginTilingPattern()"),it(A.boundingBox[0],A.boundingBox[1],A.boundingBox[2]-A.boundingBox[0],A.boundingBox[3]-A.boundingBox[1],A.matrix)},f.endTilingPattern=function(A,e){F("endTilingPattern()"),e.stream=z[O].join("\n"),HA(A,e),xA.publish("endTilingPattern",e),kA.pop().restore()};var NA,PA=f.__private__.newObject=function(){var A=DA();return OA(A,!0),A},DA=f.__private__.newObjectDeferred=function(){return K++,R[K]=function(){return G},K},OA=function(A,e){return e="boolean"==typeof e&&e,R[A]=G,e&&Y(A+" 0 obj"),A},MA=f.__private__.newAdditionalObject=function(){var A={objId:DA(),content:""};return q.push(A),A},TA=DA(),KA=DA(),RA=f.__private__.decodeColorString=function(A){var e=A.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var t=parseFloat(e[0]);e=[t,t,t,"r"]}for(var r="#",n=0;n<3;n++)r+=("0"+Math.floor(255*parseFloat(e[n])).toString(16)).slice(-2);return r},VA=f.__private__.encodeColorString=function(A){var e;"string"==typeof A&&(A={ch1:A});var t=A.ch1,r=A.ch2,n=A.ch3,i=A.ch4,s="draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof t&&"#"!==t.charAt(0)){var o=new dr(t);if(o.ok)t=o.toHex();else if(!/^\d*\.?\d*$/.test(t))throw new Error('Invalid color "'+t+'" passed to jsPDF.encodeColorString.')}if("string"==typeof t&&/^#[0-9A-Fa-f]{3}$/.test(t)&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]),"string"==typeof t&&/^#[0-9A-Fa-f]{6}$/.test(t)){var a=parseInt(t.substr(1),16);t=a>>16&255,r=a>>8&255,n=255&a}if(void 0===r||void 0===i&&t===r&&r===n)e="string"==typeof t?t+" "+s[0]:2===A.precision?x(t/255)+" "+s[0]:L(t/255)+" "+s[0];else if(void 0===i||"object"===oA(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof t?[t,r,n,s[1]].join(" "):2===A.precision?[x(t/255),x(r/255),x(n/255),s[1]].join(" "):[L(t/255),L(r/255),L(n/255),s[1]].join(" ")}else e="string"==typeof t?[t,r,n,i,s[2]].join(" "):2===A.precision?[x(t),x(r),x(n),x(i),s[2]].join(" "):[L(t),L(r),L(n),L(i),s[2]].join(" ");return e},GA=f.__private__.getFilters=function(){return s},qA=f.__private__.putStream=function(A){var e=(A=A||{}).data||"",t=A.filters||GA(),r=A.alreadyAppliedFilters||[],n=A.addLength1||!1,i=e.length,s=A.objectId,o=function(A){return A};if(null!==l&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(o=me.encryptor(s,0));var a={};!0===t&&(t=["FlateEncode"]);var c=A.additionalKeyValues||[],u=(a=void 0!==Mr.API.processDataByFilters?Mr.API.processDataByFilters(e,t):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(c.push({key:"Length",value:a.data.length}),!0===n&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var f=[],d=0;d<a.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(c[h].value),c[h].value="["+f.join(" ")+"]"}}Y("<<");for(var p=0;p<c.length;p++)Y("/"+c[p].key+" "+c[p].value);Y(">>"),0!==a.data.length&&(Y("stream"),Y(o(a.data)),Y("endstream"))},zA=f.__private__.putPage=function(A){var e=A.number,t=A.data,r=A.objId,n=A.contentsObjId;OA(r,!0),Y("<</Type /Page"),Y("/Parent "+A.rootDictionaryObjId+" 0 R"),Y("/Resources "+A.resourceDictionaryObjId+" 0 R"),Y("/MediaBox ["+parseFloat(Q(A.mediaBox.bottomLeftX))+" "+parseFloat(Q(A.mediaBox.bottomLeftY))+" "+Q(A.mediaBox.topRightX)+" "+Q(A.mediaBox.topRightY)+"]"),null!==A.cropBox&&Y("/CropBox ["+Q(A.cropBox.bottomLeftX)+" "+Q(A.cropBox.bottomLeftY)+" "+Q(A.cropBox.topRightX)+" "+Q(A.cropBox.topRightY)+"]"),null!==A.bleedBox&&Y("/BleedBox ["+Q(A.bleedBox.bottomLeftX)+" "+Q(A.bleedBox.bottomLeftY)+" "+Q(A.bleedBox.topRightX)+" "+Q(A.bleedBox.topRightY)+"]"),null!==A.trimBox&&Y("/TrimBox ["+Q(A.trimBox.bottomLeftX)+" "+Q(A.trimBox.bottomLeftY)+" "+Q(A.trimBox.topRightX)+" "+Q(A.trimBox.topRightY)+"]"),null!==A.artBox&&Y("/ArtBox ["+Q(A.artBox.bottomLeftX)+" "+Q(A.artBox.bottomLeftY)+" "+Q(A.artBox.topRightX)+" "+Q(A.artBox.topRightY)+"]"),"number"==typeof A.userUnit&&1!==A.userUnit&&Y("/UserUnit "+A.userUnit),xA.publish("putPage",{objId:r,pageContext:UA[e],pageNumber:e,page:t}),Y("/Contents "+n+" 0 R"),Y(">>"),Y("endobj");var i=t.join("\n");return b===m&&(i+="\nQ"),OA(n,!0),qA({data:i,filters:GA(),objectId:n}),Y("endobj"),r},WA=f.__private__.putPages=function(){var A,e,t=[];for(A=1;A<=FA;A++)UA[A].objId=DA(),UA[A].contentsObjId=DA();for(A=1;A<=FA;A++)t.push(zA({number:A,data:z[A],objId:UA[A].objId,contentsObjId:UA[A].contentsObjId,mediaBox:UA[A].mediaBox,cropBox:UA[A].cropBox,bleedBox:UA[A].bleedBox,trimBox:UA[A].trimBox,artBox:UA[A].artBox,userUnit:UA[A].userUnit,rootDictionaryObjId:TA,resourceDictionaryObjId:KA}));OA(TA,!0),Y("<</Type /Pages");var r="/Kids [";for(e=0;e<FA;e++)r+=t[e]+" 0 R ";Y(r+"]"),Y("/Count "+FA),Y(">>"),Y("endobj"),xA.publish("postPutPages")},JA=function(A){xA.publish("putFont",{font:A,out:Y,newObject:PA,putStream:qA}),!0!==A.isAlreadyPutted&&(A.objectNumber=PA(),Y("<<"),Y("/Type /Font"),Y("/BaseFont /"+jr(A.postScriptName)),Y("/Subtype /Type1"),"string"==typeof A.encoding&&Y("/Encoding /"+A.encoding),Y("/FirstChar 32"),Y("/LastChar 255"),Y(">>"),Y("endobj"))},XA=function(A){A.objectNumber=PA();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[Q(A.x),Q(A.y),Q(A.x+A.width),Q(A.y+A.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+A.matrix.toString()+"]"});var t=A.pages[1].join("\n");qA({data:t,additionalKeyValues:e,objectId:A.objectNumber}),Y("endobj")},YA=function(A,e){e||(e=21);var t=PA(),r=function(A,e){var t,r=[],n=1/(e-1);for(t=0;t<1;t+=n)r.push(t);if(r.push(1),0!=A[0].offset){var i={offset:0,color:A[0].color};A.unshift(i)}if(1!=A[A.length-1].offset){var s={offset:1,color:A[A.length-1].color};A.push(s)}for(var o="",a=0,c=0;c<r.length;c++){for(t=r[c];t>A[a+1].offset;)a++;var l=A[a].offset,u=(t-l)/(A[a+1].offset-l),h=A[a].color,f=A[a+1].color;o+=T(Math.round((1-u)*h[0]+u*f[0]).toString(16))+T(Math.round((1-u)*h[1]+u*f[1]).toString(16))+T(Math.round((1-u)*h[2]+u*f[2]).toString(16))}return o.trim()}(A.colors,e),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+e+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),qA({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:t}),Y("endobj"),A.objectNumber=PA(),Y("<< /ShadingType "+A.type),Y("/ColorSpace /DeviceRGB");var i="/Coords ["+Q(parseFloat(A.coords[0]))+" "+Q(parseFloat(A.coords[1]))+" ";2===A.type?i+=Q(parseFloat(A.coords[2]))+" "+Q(parseFloat(A.coords[3])):i+=Q(parseFloat(A.coords[2]))+" "+Q(parseFloat(A.coords[3]))+" "+Q(parseFloat(A.coords[4]))+" "+Q(parseFloat(A.coords[5])),Y(i+="]"),A.matrix&&Y("/Matrix ["+A.matrix.toString()+"]"),Y("/Function "+t+" 0 R"),Y("/Extend [true true]"),Y(">>"),Y("endobj")},ZA=function(A,e){var t=DA(),r=PA();e.push({resourcesOid:t,objectOid:r}),A.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+A.boundingBox.map(Q).join(" ")+"]"}),n.push({key:"XStep",value:Q(A.xStep)}),n.push({key:"YStep",value:Q(A.yStep)}),n.push({key:"Resources",value:t+" 0 R"}),A.matrix&&n.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),qA({data:A.stream,additionalKeyValues:n,objectId:A.objectNumber}),Y("endobj")},$A=function(A){for(var e in A.objectNumber=PA(),Y("<<"),A)switch(e){case"opacity":Y("/ca "+x(A[e]));break;case"stroke-opacity":Y("/CA "+x(A[e]))}Y(">>"),Y("endobj")},Ae=function(A){OA(A.resourcesOid,!0),Y("<<"),Y("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var A in Y("/Font <<"),BA)BA.hasOwnProperty(A)&&(!1===u||!0===u&&h.hasOwnProperty(A))&&Y("/"+A+" "+BA[A].objectNumber+" 0 R");Y(">>")}(),function(){if(Object.keys(bA).length>0){for(var A in Y("/Shading <<"),bA)bA.hasOwnProperty(A)&&bA[A]instanceof Dr&&bA[A].objectNumber>=0&&Y("/"+A+" "+bA[A].objectNumber+" 0 R");xA.publish("putShadingPatternDict"),Y(">>")}}(),function(A){if(Object.keys(bA).length>0){for(var e in Y("/Pattern <<"),bA)bA.hasOwnProperty(e)&&bA[e]instanceof f.TilingPattern&&bA[e].objectNumber>=0&&bA[e].objectNumber<A&&Y("/"+e+" "+bA[e].objectNumber+" 0 R");xA.publish("putTilingPatternDict"),Y(">>")}}(A.objectOid),function(){if(Object.keys(vA).length>0){var A;for(A in Y("/ExtGState <<"),vA)vA.hasOwnProperty(A)&&vA[A].objectNumber>=0&&Y("/"+A+" "+vA[A].objectNumber+" 0 R");xA.publish("putGStateDict"),Y(">>")}}(),function(){for(var A in Y("/XObject <<"),_A)_A.hasOwnProperty(A)&&_A[A].objectNumber>=0&&Y("/"+A+" "+_A[A].objectNumber+" 0 R");xA.publish("putXobjectDict"),Y(">>")}(),Y(">>"),Y("endobj")},ee=function(A){wA[A.fontName]=wA[A.fontName]||{},wA[A.fontName][A.fontStyle]=A.id},te=function(A,e,t,r,n){var i={id:"F"+(Object.keys(BA).length+1).toString(10),postScriptName:A,fontName:e,fontStyle:t,encoding:r,isStandardFont:n||!1,metadata:{}};return xA.publish("addFont",{font:i,instance:this}),BA[i.id]=i,ee(i),i.id},re=f.__private__.pdfEscape=f.pdfEscape=function(A,e){return function(A,e){var t,r,n,i,s,o,a,c,l;if(n=(e=e||{}).sourceEncoding||"Unicode",s=e.outputEncoding,(e.autoencode||s)&&BA[hA].metadata&&BA[hA].metadata[n]&&BA[hA].metadata[n].encoding&&(i=BA[hA].metadata[n].encoding,!s&&BA[hA].encoding&&(s=BA[hA].encoding),!s&&i.codePages&&(s=i.codePages[0]),"string"==typeof s&&(s=i[s]),s)){for(a=!1,o=[],t=0,r=A.length;t<r;t++)(c=s[A.charCodeAt(t)])?o.push(String.fromCharCode(c)):o.push(A[t]),o[t].charCodeAt(0)>>8&&(a=!0);A=o.join("")}for(t=A.length;void 0===a&&0!==t;)A.charCodeAt(t-1)>>8&&(a=!0),t--;if(!a)return A;for(o=e.noBOM?[]:[254,255],t=0,r=A.length;t<r;t++){if((l=(c=A.charCodeAt(t))>>8)>>8)throw new Error("Character at position "+t+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(l),o.push(c-(l<<8))}return String.fromCharCode.apply(void 0,o)}(A,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ne=f.__private__.beginPage=function(A){z[++FA]=[],UA[FA]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(A[0]),topRightY:Number(A[1])}},oe(FA),X(z[O])},ie=function(A,e){var r,i,s;switch(t=e||t,"string"==typeof A&&(r=B(A.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(A)&&(i=A[0]*fA,s=A[1]*fA),isNaN(i)&&(i=n[0],s=n[1]),(i>14400||s>14400)&&(cr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),n=[i,s],t.substr(0,1)){case"l":s>i&&(n=[s,i]);break;case"p":i>s&&(n=[s,i])}ne(n),Oe(Pe),Y(ze),0!==$e&&Y($e+" J"),0!==At&&Y(At+" j"),xA.publish("addPage",{pageNumber:FA})},se=function(A){A>0&&A<=FA&&(z.splice(A,1),UA.splice(A,1),FA--,O>FA&&(O=FA),this.setPage(O))},oe=function(A){A>0&&A<=FA&&(O=A)},ae=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return z.length-1},ce=function(A,e,t){var r,n=void 0;return t=t||{},A=void 0!==A?A:BA[hA].fontName,e=void 0!==e?e:BA[hA].fontStyle,r=A.toLowerCase(),void 0!==wA[r]&&void 0!==wA[r][e]?n=wA[r][e]:void 0!==wA[A]&&void 0!==wA[A][e]?n=wA[A][e]:!1===t.disableWarning&&cr.warn("Unable to look up font label for font '"+A+"', '"+e+"'. Refer to getFontList() for available fonts."),n||t.noFallback||null==(n=wA.times[e])&&(n=wA.times.normal),n},le=f.__private__.putInfo=function(){var A=PA(),e=function(A){return A};for(var t in null!==l&&(e=me.encryptor(A,0)),Y("<<"),Y("/Producer ("+re(e("jsPDF "+Mr.version))+")"),uA)uA.hasOwnProperty(t)&&uA[t]&&Y("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+re(e(uA[t]))+")");Y("/CreationDate ("+re(e(k))+")"),Y(">>"),Y("endobj")},ue=f.__private__.putCatalog=function(A){var e=(A=A||{}).rootDictionaryObjId||TA;switch(PA(),Y("<<"),Y("/Type /Catalog"),Y("/Pages "+e+" 0 R"),tA||(tA="fullwidth"),tA){case"fullwidth":Y("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Y("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Y("/OpenAction [3 0 R /Fit]");break;case"original":Y("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+tA;"%"===t.substr(t.length-1)&&(tA=parseInt(tA)/100),"number"==typeof tA&&Y("/OpenAction [3 0 R /XYZ null null "+x(tA)+"]")}switch(aA||(aA="continuous"),aA){case"continuous":Y("/PageLayout /OneColumn");break;case"single":Y("/PageLayout /SinglePage");break;case"two":case"twoleft":Y("/PageLayout /TwoColumnLeft");break;case"tworight":Y("/PageLayout /TwoColumnRight")}iA&&Y("/PageMode /"+iA),xA.publish("putCatalog"),Y(">>"),Y("endobj")},he=f.__private__.putTrailer=function(){Y("trailer"),Y("<<"),Y("/Size "+(K+1)),Y("/Root "+K+" 0 R"),Y("/Info "+(K-1)+" 0 R"),null!==l&&Y("/Encrypt "+me.oid+" 0 R"),Y("/ID [ <"+I+"> <"+I+"> ]"),Y(">>")},fe=f.__private__.putHeader=function(){Y("%PDF-"+d),Y("%ºß¬à")},de=f.__private__.putXRef=function(){var A="0000000000";Y("xref"),Y("0 "+(K+1)),Y("0000000000 65535 f ");for(var e=1;e<=K;e++)"function"==typeof R[e]?Y((A+R[e]()).slice(-10)+" 00000 n "):void 0!==R[e]?Y((A+R[e]).slice(-10)+" 00000 n "):Y("0000000000 00000 n ")},pe=f.__private__.buildDocument=function(){var A;K=0,G=0,V=[],R=[],q=[],TA=DA(),KA=DA(),X(V),xA.publish("buildDocument"),fe(),WA(),function(){xA.publish("putAdditionalObjects");for(var A=0;A<q.length;A++){var e=q[A];OA(e.objId,!0),Y(e.content),Y("endobj")}xA.publish("postPutAdditionalObjects")}(),A=[],function(){for(var A in BA)BA.hasOwnProperty(A)&&(!1===u||!0===u&&h.hasOwnProperty(A))&&JA(BA[A])}(),function(){var A;for(A in vA)vA.hasOwnProperty(A)&&$A(vA[A])}(),function(){for(var A in _A)_A.hasOwnProperty(A)&&XA(_A[A])}(),function(A){var e;for(e in bA)bA.hasOwnProperty(e)&&(bA[e]instanceof Dr?YA(bA[e]):bA[e]instanceof Or&&ZA(bA[e],A))}(A),xA.publish("putResources"),A.forEach(Ae),Ae({resourcesOid:KA,objectOid:Number.MAX_SAFE_INTEGER}),xA.publish("postPutResources"),null!==l&&(me.oid=PA(),Y("<<"),Y("/Filter /Standard"),Y("/V "+me.v),Y("/R "+me.r),Y("/U <"+me.toHexString(me.U)+">"),Y("/O <"+me.toHexString(me.O)+">"),Y("/P "+me.P),Y(">>"),Y("endobj")),le(),ue();var e=G;return de(),he(),Y("startxref"),Y(""+e),Y("%%EOF"),X(z[O]),V.join("\n")},ge=f.__private__.getBlob=function(A){return new Blob([$(A)],{type:"application/pdf"})},Be=f.output=f.__private__.output=((NA=function(A,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",A){case void 0:return pe();case"save":f.save(e.filename);break;case"arraybuffer":return $(pe());case"blob":return ge(pe());case"bloburi":case"bloburl":if(void 0!==or.URL&&"function"==typeof or.URL.createObjectURL)return or.URL&&or.URL.createObjectURL(ge(pe()))||void 0;cr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var t="",r=pe();try{t=gr(r)}catch(d){t=gr(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+t;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(or)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(n=e.pdfObjectUrl,i="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+n+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",o=or.open();return null!==o&&o.document.write(s),o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(or)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',c=or.open();if(null!==c){c.document.write(a);var l=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=e.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(l.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(or))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',h=or.open();if(null!==h&&(h.document.write(u),h.document.title=e.filename),h||"undefined"==typeof safari)return h;break;case"datauri":case"dataurl":return or.document.location.href=this.output("datauristring",e);default:return null}}).foo=function(){try{return NA.apply(this,arguments)}catch(t){var A=t.stack||"";~A.indexOf(" at ")&&(A=A.split(" at ")[1]);var e="Error in function "+A.split("\n")[0].split("<")[0]+": "+t.message;if(!or.console)throw new Error(e);or.console.error(e,t),or.alert&&alert(e)}},NA.foo.bar=NA,NA.foo),we=function(A){return!0===Array.isArray(LA)&&LA.indexOf(A)>-1};switch(r){case"pt":fA=1;break;case"mm":fA=72/25.4;break;case"cm":fA=72/2.54;break;case"in":fA=72;break;case"px":fA=1==we("px_scaling")?.75:96/72;break;case"pc":case"em":fA=12;break;case"ex":fA=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);fA=r}var me=null;P(),j();var be=f.__private__.getPageInfo=f.getPageInfo=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:UA[A].objId,pageNumber:A,pageContext:UA[A]}},ye=f.__private__.getPageInfoByObjId=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in UA)if(UA[e].objId===A)break;return be(e)},ve=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:UA[O].objId,pageNumber:O,pageContext:UA[O]}};f.addPage=function(){return ie.apply(this,arguments),this},f.setPage=function(){return oe.apply(this,arguments),X.call(this,z[O]),this},f.insertPage=function(A){return this.addPage(),this.movePage(O,A),this},f.movePage=function(A,e){var t,r;if(A>e){t=z[A],r=UA[A];for(var n=A;n>e;n--)z[n]=z[n-1],UA[n]=UA[n-1];z[e]=t,UA[e]=r,this.setPage(e)}else if(A<e){t=z[A],r=UA[A];for(var i=A;i<e;i++)z[i]=z[i+1],UA[i]=UA[i+1];z[e]=t,UA[e]=r,this.setPage(e)}return this},f.deletePage=function(){return se.apply(this,arguments),this},f.__private__.text=f.text=function(A,e,t,r,n){var i,s,o,a,c,l,u,f,d,p=(r=r||{}).scope||this;if("number"==typeof A&&"number"==typeof e&&("string"==typeof t||Array.isArray(t))){var g=t;t=e,e=A,A=g}if(arguments[3]instanceof IA==0?(o=arguments[4],a=arguments[5],"object"===oA(u=arguments[3])&&null!==u||("string"==typeof o&&(a=o,o=null),"string"==typeof u&&(a=u,u=null),"number"==typeof u&&(o=u,u=null),r={flags:u,angle:o,align:a})):(F("The transform parameter of text() with a Matrix value"),d=n),isNaN(e)||isNaN(t)||null==A)throw new Error("Invalid arguments passed to jsPDF.text");if(0===A.length)return p;var B,w="",y="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Ne,v=p.internal.scaleFactor;function C(A){return A=A.split("\t").join(Array(r.TabLen||9).join(" ")),re(A,u)}function U(A){for(var e,t=A.concat(),r=[],n=t.length;n--;)"string"==typeof(e=t.shift())?r.push(e):Array.isArray(A)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function x(A,e){var t;if("string"==typeof A)t=e(A)[0];else if(Array.isArray(A)){for(var r,n,i=A.concat(),s=[],o=i.length;o--;)"string"==typeof(r=i.shift())?s.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(n=e(r[0],r[1],r[2]),s.push([n[0],n[1],n[2]]));t=s}return t}var L=!1,E=!0;if("string"==typeof A)L=!0;else if(Array.isArray(A)){var k=A.concat();s=[];for(var I,S=k.length;S--;)("string"!=typeof(I=k.shift())||Array.isArray(I)&&"string"!=typeof I[0])&&(E=!1);L=E}if(!1===L)throw new Error('Type of text must be string or Array. "'+A+'" is not recognized.');"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]);var j=eA/p.internal.scaleFactor,H=j*(y-1);switch(r.baseline){case"bottom":t-=H;break;case"top":t+=j-H;break;case"hanging":t+=j-2*H;break;case"middle":t+=j/2-H}if((l=r.maxWidth||0)>0&&("string"==typeof A?A=p.splitTextToSize(A,l):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce(function(A,e){return A.concat(p.splitTextToSize(e,l))},[]))),i={text:A,x:e,y:t,options:r,mutex:{pdfEscape:re,activeFontKey:hA,fonts:BA,activeFontSize:eA}},xA.publish("preProcessText",i),A=i.text,o=(r=i.options).angle,d instanceof IA==0&&o&&"number"==typeof o){o*=Math.PI/180,0===r.rotationDirection&&(o=-o),b===m&&(o=-o);var N=Math.cos(o),P=Math.sin(o);d=new IA(N,P,-P,N,0,0)}else o&&o instanceof IA&&(d=o);b!==m||d||(d=jA),void 0!==(c=r.charSpace||Ye)&&(w+=Q(_(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(f=r.horizontalScale)&&(w+=Q(100*f)+" Tz\n"),r.lang;var D=-1,O=void 0!==r.renderingMode?r.renderingMode:r.stroke,M=p.internal.getCurrentPageInfo().pageContext;switch(O){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var T=void 0!==M.usedRenderingMode?M.usedRenderingMode:-1;-1!==D?w+=D+" Tr\n":-1!==T&&(w+="0 Tr\n"),-1!==D&&(M.usedRenderingMode=D),a=r.align||"left";var K,R=eA*y,V=p.internal.pageSize.getWidth(),G=BA[hA];c=r.charSpace||Ye,l=r.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},r.flags);var q=[],z=function(A){return p.getStringUnitWidth(A,{font:G,charSpace:c,fontSize:eA,doKerning:!1})*eA/v};if("[object Array]"===Object.prototype.toString.call(A)){var W;s=U(A),"left"!==a&&(K=s.map(z));var J,X=0;if("right"===a){e-=K[0],A=[],S=s.length;for(var Z=0;Z<S;Z++)0===Z?(J=Re(e),W=Ve(t)):(J=_(X-K[Z]),W=-R),A.push([s[Z],J,W]),X=K[Z]}else if("center"===a){e-=K[0]/2,A=[],S=s.length;for(var $=0;$<S;$++)0===$?(J=Re(e),W=Ve(t)):(J=_((X-K[$])/2),W=-R),A.push([s[$],J,W]),X=K[$]}else if("left"===a){A=[],S=s.length;for(var AA=0;AA<S;AA++)A.push(s[AA])}else if("justify"===a&&"Identity-H"===G.encoding){A=[],S=s.length,l=0!==l?l:V;for(var tA=0,rA=0;rA<S;rA++)if(W=0===rA?Ve(t):-R,J=0===rA?Re(e):tA,rA<S-1){var iA=_((l-K[rA])/(s[rA].split(" ").length-1)),sA=s[rA].split(" ");A.push([sA[0]+" ",J,W]),tA=0;for(var aA=1;aA<sA.length;aA++){var cA=(z(sA[aA-1]+" "+sA[aA])-z(sA[aA]))*v+iA;aA==sA.length-1?A.push([sA[aA],cA,0]):A.push([sA[aA]+" ",cA,0]),tA-=cA}}else A.push([s[rA],J,W]);A.push(["",tA,0])}else{if("justify"!==a)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(A=[],S=s.length,l=0!==l?l:V,rA=0;rA<S;rA++){W=0===rA?Ve(t):-R,J=0===rA?Re(e):0;var lA=s[rA].split(" ").length-1,uA=lA>0?(l-K[rA])/lA:0;rA<S-1?q.push(Q(_(uA))):q.push(0),A.push([s[rA],J,W])}}}!0===("boolean"==typeof r.R2L?r.R2L:nA)&&(A=x(A,function(A,e,t){return[A.split("").reverse().join(""),e,t]})),i={text:A,x:e,y:t,options:r,mutex:{pdfEscape:re,activeFontKey:hA,fonts:BA,activeFontSize:eA}},xA.publish("postProcessText",i),A=i.text,B=i.mutex.isHex||!1;var fA=BA[hA].encoding;"WinAnsiEncoding"!==fA&&"StandardEncoding"!==fA||(A=x(A,function(A,e,t){return[C(A),e,t]})),s=U(A),A=[];for(var dA,pA,gA,wA=Array.isArray(s[0])?1:0,mA="",bA=function(A,e,t){var n="";return t instanceof IA?(t="number"==typeof r.angle?SA(t,new IA(1,0,0,1,A,e)):SA(new IA(1,0,0,1,A,e),t),b===m&&(t=SA(new IA(1,0,0,-1,0,0),t)),n=t.join(" ")+" Tm\n"):n=Q(A)+" "+Q(e)+" Td\n",n},yA=0;yA<s.length;yA++){switch(mA="",wA){case 1:gA=(B?"<":"(")+s[yA][0]+(B?">":")"),dA=parseFloat(s[yA][1]),pA=parseFloat(s[yA][2]);break;case 0:gA=(B?"<":"(")+s[yA]+(B?">":")"),dA=Re(e),pA=Ve(t)}void 0!==q&&void 0!==q[yA]&&(mA=q[yA]+" Tw\n"),0===yA?A.push(mA+bA(dA,pA,d)+gA):0===wA?A.push(mA+gA):1===wA&&A.push(mA+bA(dA,pA,d)+gA)}A=0===wA?A.join(" Tj\nT* "):A.join(" Tj\n"),A+=" Tj\n";var vA="BT\n/";return vA+=hA+" "+eA+" Tf\n",vA+=Q(eA*y)+" TL\n",vA+=Je+"\n",vA+=w,vA+=A,Y(vA+="ET"),h[hA]=!0,p};var Ce=f.__private__.clip=f.clip=function(A){return Y("evenodd"===A?"W*":"W"),this};f.clipEvenOdd=function(){return Ce("evenodd")},f.__private__.discardPath=f.discardPath=function(){return Y("n"),this};var Qe=f.__private__.isValidStyle=function(A){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(A)&&(e=!0),e};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(A){return Qe(A)&&(c=A),this};var Fe=f.__private__.getStyle=f.getStyle=function(A){var e=c;switch(A){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=A}return e},Ue=f.close=function(){return Y("h"),this};f.stroke=function(){return Y("S"),this},f.fill=function(A){return xe("f",A),this},f.fillEvenOdd=function(A){return xe("f*",A),this},f.fillStroke=function(A){return xe("B",A),this},f.fillStrokeEvenOdd=function(A){return xe("B*",A),this};var xe=function(A,e){"object"===oA(e)?Ee(e,A):Y(A)},Le=function(A){null===A||b===m&&void 0===A||(A=Fe(A),Y(A))};function _e(A,e,t,r,n){var i=new Or(e||this.boundingBox,t||this.xStep,r||this.yStep,this.gState,n||this.matrix);i.stream=this.stream;var s=A+"$$"+this.cloneIndex+++"$$";return HA(s,i),i}var Ee=function(A,e){var t=yA[A.key],r=bA[t];if(r instanceof Dr)Y("q"),Y(ke(e)),r.gState&&f.setGState(r.gState),Y(A.matrix.toString()+" cm"),Y("/"+t+" sh"),Y("Q");else if(r instanceof Or){var n=new IA(1,0,0,-1,0,ft());A.matrix&&(n=n.multiply(A.matrix||jA),t=_e.call(r,A.key,A.boundingBox,A.xStep,A.yStep,n).id),Y("q"),Y("/Pattern cs"),Y("/"+t+" scn"),r.gState&&f.setGState(r.gState),Y(e),Y("Q")}},ke=function(A){switch(A){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ie=f.moveTo=function(A,e){return Y(Q(_(A))+" "+Q(E(e))+" m"),this},Se=f.lineTo=function(A,e){return Y(Q(_(A))+" "+Q(E(e))+" l"),this},je=f.curveTo=function(A,e,t,r,n,i){return Y([Q(_(A)),Q(E(e)),Q(_(t)),Q(E(r)),Q(_(n)),Q(E(i)),"c"].join(" ")),this};f.__private__.line=f.line=function(A,e,t,r,n){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.line");return b===w?this.lines([[t-A,r-e]],A,e,[1,1],n||"S"):this.lines([[t-A,r-e]],A,e,[1,1]).stroke()},f.__private__.lines=f.lines=function(A,e,t,r,n,i){var s,o,a,c,l,u,h,f,d,p,g,B;if("number"==typeof A&&(B=t,t=e,e=A,A=B),r=r||[1,1],i=i||!1,isNaN(e)||isNaN(t)||!Array.isArray(A)||!Array.isArray(r)||!Qe(n)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ie(e,t),s=r[0],o=r[1],c=A.length,p=e,g=t,a=0;a<c;a++)2===(l=A[a]).length?(p=l[0]*s+p,g=l[1]*o+g,Se(p,g)):(u=l[0]*s+p,h=l[1]*o+g,f=l[2]*s+p,d=l[3]*o+g,p=l[4]*s+p,g=l[5]*o+g,je(u,h,f,d,p,g));return i&&Ue(),Le(n),this},f.path=function(A){for(var e=0;e<A.length;e++){var t=A[e],r=t.c;switch(t.op){case"m":Ie(r[0],r[1]);break;case"l":Se(r[0],r[1]);break;case"c":je.apply(this,r);break;case"h":Ue()}}return this},f.__private__.rect=f.rect=function(A,e,t,r,n){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.rect");return b===w&&(r=-r),Y([Q(_(A)),Q(E(e)),Q(_(t)),Q(_(r)),"re"].join(" ")),Le(n),this},f.__private__.triangle=f.triangle=function(A,e,t,r,n,i,s){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||!Qe(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[t-A,r-e],[n-t,i-r],[A-n,e-i]],A,e,[1,1],s,!0),this},f.__private__.roundedRect=f.roundedRect=function(A,e,t,r,n,i,s){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||!Qe(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var o=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*t),i=Math.min(i,.5*r),this.lines([[t-2*n,0],[n*o,0,n,i-i*o,n,i],[0,r-2*i],[0,i*o,-n*o,i,-n,i],[2*n-t,0],[-n*o,0,-n,-i*o,-n,-i],[0,2*i-r],[0,-i*o,n*o,-i,n,-i]],A+n,e,[1,1],s,!0),this},f.__private__.ellipse=f.ellipse=function(A,e,t,r,n){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*t,s=4/3*(Math.SQRT2-1)*r;return Ie(A+t,e),je(A+t,e-s,A+i,e-r,A,e-r),je(A-i,e-r,A-t,e-s,A-t,e),je(A-t,e+s,A-i,e+r,A,e+r),je(A+i,e+r,A+t,e+s,A+t,e),Le(n),this},f.__private__.circle=f.circle=function(A,e,t,r){if(isNaN(A)||isNaN(e)||isNaN(t)||!Qe(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(A,e,t,t,r)},f.setFont=function(A,e,t){return t&&(e=C(e,t)),hA=ce(A,e,{disableWarning:!1}),this};var He=f.__private__.getFont=f.getFont=function(){return BA[ce.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var A,e,t={};for(A in wA)if(wA.hasOwnProperty(A))for(e in t[A]=[],wA[A])wA[A].hasOwnProperty(e)&&t[A].push(e);return t},f.addFont=function(A,e,t,r,n){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(t=C(t,r)),te.call(this,A,e,t,n=n||"Identity-H")};var Ne,Pe=A.lineWidth||.200025,De=f.__private__.getLineWidth=f.getLineWidth=function(){return Pe},Oe=f.__private__.setLineWidth=f.setLineWidth=function(A){return Pe=A,Y(Q(_(A))+" w"),this};f.__private__.setLineDash=Mr.API.setLineDash=Mr.API.setLineDashPattern=function(A,e){if(A=A||[],e=e||0,isNaN(e)||!Array.isArray(A))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return A=A.map(function(A){return Q(_(A))}).join(" "),e=Q(_(e)),Y("["+A+"] "+e+" d"),this};var Me=f.__private__.getLineHeight=f.getLineHeight=function(){return eA*Ne};f.__private__.getLineHeight=f.getLineHeight=function(){return eA*Ne};var Te=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(A){return"number"==typeof(A=A||1.15)&&(Ne=A),this},Ke=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Ne};Te(A.lineHeight);var Re=f.__private__.getHorizontalCoordinate=function(A){return _(A)},Ve=f.__private__.getVerticalCoordinate=function(A){return b===m?A:UA[O].mediaBox.topRightY-UA[O].mediaBox.bottomLeftY-_(A)},Ge=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(A){return Q(Re(A))},qe=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(A){return Q(Ve(A))},ze=A.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return RA(ze)},f.__private__.setStrokeColor=f.setDrawColor=function(A,e,t,r){return ze=VA({ch1:A,ch2:e,ch3:t,ch4:r,pdfColorType:"draw",precision:2}),Y(ze),this};var We=A.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return RA(We)},f.__private__.setFillColor=f.setFillColor=function(A,e,t,r){return We=VA({ch1:A,ch2:e,ch3:t,ch4:r,pdfColorType:"fill",precision:2}),Y(We),this};var Je=A.textColor||"0 g",Xe=f.__private__.getTextColor=f.getTextColor=function(){return RA(Je)};f.__private__.setTextColor=f.setTextColor=function(A,e,t,r){return Je=VA({ch1:A,ch2:e,ch3:t,ch4:r,pdfColorType:"text",precision:3}),this};var Ye=A.charSpace,Ze=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Ye||0)};f.__private__.setCharSpace=f.setCharSpace=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ye=A,this};var $e=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(A){var e=f.CapJoinStyles[A];if(void 0===e)throw new Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return $e=e,Y(e+" J"),this};var At=0;f.__private__.setLineJoin=f.setLineJoin=function(A){var e=f.CapJoinStyles[A];if(void 0===e)throw new Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return At=e,Y(e+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(A){if(A=A||0,isNaN(A))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Y(Q(_(A))+" M"),this},f.GState=Nr,f.setGState=function(A){(A="string"==typeof A?vA[CA[A]]:et(null,A)).equals(QA)||(Y("/"+A.id+" gs"),QA=A)};var et=function(A,e){if(!A||!CA[A]){var t=!1;for(var r in vA)if(vA.hasOwnProperty(r)&&vA[r].equals(e)){t=!0;break}if(t)e=vA[r];else{var n="GS"+(Object.keys(vA).length+1).toString(10);vA[n]=e,e.id=n}return A&&(CA[A]=e.id),xA.publish("addGState",e),e}};f.addGState=function(A,e){return et(A,e),this},f.saveGraphicsState=function(){return Y("q"),mA.push({key:hA,size:eA,color:Je}),this},f.restoreGraphicsState=function(){Y("Q");var A=mA.pop();return hA=A.key,eA=A.size,Je=A.color,QA=null,this},f.setCurrentTransformationMatrix=function(A){return Y(A.toString()+" cm"),this},f.comment=function(A){return Y("#"+A),this};var tt=function(A,e){var t=A||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(A){isNaN(A)||(t=parseFloat(A))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(A){isNaN(A)||(r=parseFloat(A))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(A){n=A.toString()}}),this},rt=function(A,e,t,r){tt.call(this,A,e),this.type="rect";var n=t||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(A){isNaN(A)||(n=parseFloat(A))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(A){isNaN(A)||(i=parseFloat(A))}}),this},nt=function(){this.page=FA,this.currentPage=O,this.pages=z.slice(0),this.pagesContext=UA.slice(0),this.x=dA,this.y=pA,this.matrix=gA,this.width=ot(O),this.height=ct(O),this.outputDestination=J,this.id="",this.objectNumber=-1};nt.prototype.restore=function(){FA=this.page,O=this.currentPage,UA=this.pagesContext,z=this.pages,dA=this.x,pA=this.y,gA=this.matrix,at(O,this.width),lt(O,this.height),J=this.outputDestination};var it=function(A,e,t,r,n){kA.push(new nt),FA=O=0,z=[],dA=A,pA=e,gA=n,ne([t,r])};for(var st in f.beginFormObject=function(A,e,t,r,n){return it(A,e,t,r,n),this},f.endFormObject=function(A){return function(A){if(EA[A])kA.pop().restore();else{var e=new nt,t="Xo"+(Object.keys(_A).length+1).toString(10);e.id=t,EA[A]=t,_A[t]=e,xA.publish("addFormObject",e),kA.pop().restore()}}(A),this},f.doFormObject=function(A,e){var t=_A[EA[A]];return Y("q"),Y(e.toString()+" cm"),Y("/"+t.id+" Do"),Y("Q"),this},f.getFormObject=function(A){var e=_A[EA[A]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},f.save=function(A,e){return A=A||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(fr(ge(pe()),A),"function"==typeof fr.unload&&or.setTimeout&&setTimeout(fr.unload,911),this):new Promise(function(e,t){try{var r=fr(ge(pe()),A);"function"==typeof fr.unload&&or.setTimeout&&setTimeout(fr.unload,911),e(r)}catch(n){t(n.message)}})},Mr.API)Mr.API.hasOwnProperty(st)&&("events"===st&&Mr.API.events.length?function(A,e){var t,r,n;for(n=e.length-1;-1!==n;n--)t=e[n][0],r=e[n][1],A.subscribe.apply(A,[t].concat("function"==typeof r?[r]:r))}(xA,Mr.API.events):f[st]=Mr.API[st]);function ot(A){return UA[A].mediaBox.topRightX-UA[A].mediaBox.bottomLeftX}function at(A,e){UA[A].mediaBox.topRightX=e+UA[A].mediaBox.bottomLeftX}function ct(A){return UA[A].mediaBox.topRightY-UA[A].mediaBox.bottomLeftY}function lt(A,e){UA[A].mediaBox.topRightY=e+UA[A].mediaBox.bottomLeftY}var ut=f.getPageWidth=function(A){return ot(A=A||O)/fA},ht=f.setPageWidth=function(A,e){at(A,e*fA)},ft=f.getPageHeight=function(A){return ct(A=A||O)/fA},dt=f.setPageHeight=function(A,e){lt(A,e*fA)};return f.internal={pdfEscape:re,getStyle:Fe,getFont:He,getFontSize:rA,getCharSpace:Ze,getTextColor:Xe,getLineHeight:Me,getLineHeightFactor:Ke,getLineWidth:De,write:Z,getHorizontalCoordinate:Re,getVerticalCoordinate:Ve,getCoordinateString:Ge,getVerticalCoordinateString:qe,collections:{},newObject:PA,newAdditionalObject:MA,newObjectDeferred:DA,newObjectDeferredBegin:OA,getFilters:GA,putStream:qA,events:xA,scaleFactor:fA,pageSize:{getWidth:function(){return ut(O)},setWidth:function(A){ht(O,A)},getHeight:function(){return ft(O)},setHeight:function(A){dt(O,A)}},encryptionOptions:l,encryption:me,getEncryptor:function(A){return null!==l?me.encryptor(A,0):function(A){return A}},output:Be,getNumberOfPages:ae,get pages(){return z},out:Y,f2:x,f3:L,getPageInfo:be,getPageInfoByObjId:ye,getCurrentPageInfo:ve,getPDFVersion:p,Point:tt,Rectangle:rt,Matrix:IA,hasHotfix:we},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return ut(O)},set:function(A){ht(O,A)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return ft(O)},set:function(A){dt(O,A)},enumerable:!0,configurable:!0}),function(A){for(var e=0,t=AA.length;e<t;e++){var r=te.call(this,A[e][0],A[e][1],A[e][2],AA[e][3],!0);!1===u&&(h[r]=!0);var n=A[e][0].split("-");ee({id:r,fontName:n[0],fontStyle:n[1]||""})}xA.publish("addFonts",{fonts:BA,dictionary:wA})}.call(f,AA),hA="F1",ie(n,t),xA.publish("initialized"),f}Sr.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},Sr.prototype.toHexString=function(A){return A.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Sr.prototype.hexToBytes=function(A){for(var e=[],t=0;t<A.length;t+=2)e.push(String.fromCharCode(parseInt(A.substr(t,2),16)));return e.join("")},Sr.prototype.processOwnerPassword=function(A,e){return kr(Lr(e).substr(0,5),A)},Sr.prototype.encryptor=function(A,e){var t=Lr(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&e,e>>8&255)).substr(0,10);return function(A){return kr(t,A)}},Nr.prototype.equals=function(A){var e,t="id,objectNumber,equals";if(!A||oA(A)!==oA(this))return!1;var r=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!A.hasOwnProperty(e))return!1;if(this[e]!==A[e])return!1;r++}for(e in A)A.hasOwnProperty(e)&&t.indexOf(e)<0&&r--;return 0===r},Mr.API={events:[]},Mr.version="3.0.4";var Tr=Mr.API,Kr=1,Rr=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Vr=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Gr=function(A){return A.toFixed(2)},qr=function(A){return A.toFixed(5)};Tr.__acroform__={};var zr=function(A,e){A.prototype=Object.create(e.prototype),A.prototype.constructor=A},Wr=function(A){return A*Kr},Jr=function(A){var e=new hn,t=Un.internal.getHeight(A)||0,r=Un.internal.getWidth(A)||0;return e.BBox=[0,0,Number(Gr(r)),Number(Gr(t))],e},Xr=Tr.__acroform__.setBit=function(A,e){if(A=A||0,e=e||0,isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<e},Yr=Tr.__acroform__.clearBit=function(A,e){if(A=A||0,e=e||0,isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<e)},Zr=Tr.__acroform__.getBit=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<e?1:0},$r=Tr.__acroform__.getBitForPdf=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Zr(A,e-1)},An=Tr.__acroform__.setBitForPdf=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Xr(A,e-1)},en=Tr.__acroform__.clearBitForPdf=function(A,e){if(isNaN(A)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Yr(A,e-1)},tn=Tr.__acroform__.calculateCoordinates=function(A,e){var t=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,n=A[0],i=A[1],s=A[2],o=A[3],a={};return a.lowerLeft_X=t(n)||0,a.lowerLeft_Y=r(i+o)||0,a.upperRight_X=t(n+s)||0,a.upperRight_Y=r(i)||0,[Number(Gr(a.lowerLeft_X)),Number(Gr(a.lowerLeft_Y)),Number(Gr(a.upperRight_X)),Number(Gr(a.upperRight_Y))]},rn=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var e=[],t=A._V||A.DV,r=nn(A,t),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(A.scope.__private__.encodeColorString(A.color)),e.push("/"+n+" "+Gr(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=Jr(A);return i.scope=A.scope,i.stream=e.join("\n"),i}},nn=function(A,e){var t=0===A.fontSize?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");n=A.multiline?n.map(function(A){return A.split("\n")}):n.map(function(A){return[A]});var i=t,s=Un.internal.getHeight(A)||0;s=s<0?-s:s;var o=Un.internal.getWidth(A)||0;o=o<0?-o:o;var a=function(e,t,r){if(e+1<n.length){var i=t+" "+n[e+1][0];return sn(i,A,r).width<=o-4}return!1};i++;A:for(;i>0;){e="",i--;var c,l,u=sn("3",A,i).height,h=A.multiline?s-i:(s-u)/2,f=h+=2,d=0,p=0,g=0;if(i<=0){e="(...) Tj\n",e+="% Width of Text: "+sn(e,A,i=12).width+", FieldWidth:"+o+"\n";break}for(var B="",w=0,m=0;m<n.length;m++)if(n.hasOwnProperty(m)){var b=!1;if(1!==n[m].length&&g!==n[m].length-1){if((u+2)*(w+2)+2>s)continue A;B+=n[m][g],b=!0,p=m,m--}else{B=" "==(B+=n[m][g]+" ").substr(B.length-1)?B.substr(0,B.length-1):B;var y=parseInt(m),v=a(y,B,i),C=m>=n.length-1;if(v&&!C){B+=" ",g=0;continue}if(v||C){if(C)p=y;else if(A.multiline&&(u+2)*(w+2)+2>s)continue A}else{if(!A.multiline)continue A;if((u+2)*(w+2)+2>s)continue A;p=y}}for(var Q="",F=d;F<=p;F++){var U=n[F];if(A.multiline){if(F===p){Q+=U[g]+" ",g=(g+1)%U.length;continue}if(F===d){Q+=U[U.length-1]+" ";continue}}Q+=U[0]+" "}switch(Q=" "==Q.substr(Q.length-1)?Q.substr(0,Q.length-1):Q,l=sn(Q,A,i).width,A.textAlign){case"right":c=o-l-2;break;case"center":c=(o-l)/2;break;default:c=2}e+=Gr(c)+" "+Gr(f)+" Td\n",e+="("+Rr(Q)+") Tj\n",e+=-Gr(c)+" 0 Td\n",f=-(i+2),l=0,d=b?p:p+1,w++,B=""}break}return r.text=e,r.fontSize=i,r},sn=function(A,e,t){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},on={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},an=function(A,e){var t={type:"reference",object:A};void 0===e.internal.getPageInfo(A.page).pageContext.annotations.find(function(A){return A.type===t.type&&A.object===t.object})&&e.internal.getPageInfo(A.page).pageContext.annotations.push(t)},cn=Tr.__acroform__.arrayToPdfArray=function(A,e,t){var r=function(A){return A};if(Array.isArray(A)){for(var n="[",i=0;i<A.length;i++)switch(0!==i&&(n+=" "),oA(A[i])){case"boolean":case"number":case"object":n+=A[i].toString();break;case"string":"/"!==A[i].substr(0,1)?(void 0!==e&&t&&(r=t.internal.getEncryptor(e)),n+="("+Rr(r(A[i].toString()))+")"):n+=A[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ln=function(A,e,t){var r=function(A){return A};return void 0!==e&&t&&(r=t.internal.getEncryptor(e)),(A=A||"").toString(),"("+Rr(r(A))+")"},un=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};un.prototype.toString=function(){return this.objId+" 0 R"},un.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},un.prototype.getKeyValueListForStream=function(){var A=[],e=Object.getOwnPropertyNames(this).filter(function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"scope"!=A&&"objId"!=A&&"_"!=A.substring(0,1)});for(var t in e)if(!1===Object.getOwnPropertyDescriptor(this,e[t]).configurable){var r=e[t],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:cn(n,this.objId,this.scope)}):n instanceof un?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):"function"!=typeof n&&A.push({key:r,value:n}))}return A};var hn=function(){un.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var A,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){A=e.trim()},get:function(){return A||null}})};zr(hn,un);var fn=function(){un.call(this);var A,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var e=function(A){return A};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Rr(e(A))+")"}},set:function(e){A=e}})};zr(fn,un);var dn=function A(){un.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute F supplied.');e=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(e,3))},set:function(A){!0===Boolean(A)?this.F=An(e,3):this.F=en(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute Ff supplied.');t=A}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(A){r=void 0!==A?A:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(A){r[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(A){r[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(A){r[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(A){r[3]=A}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=A;break;default:throw new Error('Invalid value "'+A+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof vn)return;i="FieldObject"+A.FieldNum++}var e=function(A){return A};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Rr(e(i))+")"},set:function(A){i=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(A){i=A}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(A){a=A}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/Kr:c},set:function(A){c=A}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(A){l=A}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof vn||this instanceof Qn))return ln(u,this.objId,this.scope)},set:function(A){A=A.toString(),u=A}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof mn==0?ln(h,this.objId,this.scope):h},set:function(A){A=A.toString(),h=this instanceof mn==0?"("===A.substr(0,1)?Vr(A.substr(1,A.length-2)):Vr(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mn==1?Vr(h.substr(1,h.length-1)):h},set:function(A){A=A.toString(),h=this instanceof mn==1?"/"+A:A}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof mn==0?ln(f,this.objId,this.scope):f},set:function(A){A=A.toString(),f=this instanceof mn==0?"("===A.substr(0,1)?Vr(A.substr(1,A.length-2)):Vr(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mn==1?Vr(f.substr(1,f.length-1)):f},set:function(A){A=A.toString(),f=this instanceof mn==1?"/"+A:A}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var d,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(A){A=Boolean(A),p=A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(A){d=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,1))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,1):this.Ff=en(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,2))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,2):this.Ff=en(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,3))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,3):this.Ff=en(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(A){if(-1===[0,1,2].indexOf(A))throw new Error('Invalid value "'+A+'" for attribute Q supplied.');g=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(g){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};zr(dn,un);var pn=function(){dn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){A=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return cn(e,this.objId,this.scope)},set:function(A){var t,r;r=[],"string"==typeof(t=A)&&(r=function(A,e,t){t||(t=1);for(var r,n=[];r=e.exec(A);)n.push(r[t]);return n}(t,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(A){e=A,this.sort&&e.sort()},this.addOption=function(A){A=(A=A||"").toString(),e.push(A),this.sort&&e.sort()},this.removeOption=function(A,t){for(t=t||!1,A=(A=A||"").toString();-1!==e.indexOf(A)&&(e.splice(e.indexOf(A),1),!1!==t););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,18))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,18):this.Ff=en(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,19))},set:function(A){!0===this.combo&&(!0===Boolean(A)?this.Ff=An(this.Ff,19):this.Ff=en(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,20))},set:function(A){!0===Boolean(A)?(this.Ff=An(this.Ff,20),e.sort()):this.Ff=en(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,22))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,22):this.Ff=en(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,23):this.Ff=en(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,27))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,27):this.Ff=en(this.Ff,27)}}),this.hasAppearanceStream=!1};zr(pn,dn);var gn=function(){pn.call(this),this.fontName="helvetica",this.combo=!1};zr(gn,pn);var Bn=function(){gn.call(this),this.combo=!0};zr(Bn,gn);var wn=function(){Bn.call(this),this.edit=!0};zr(wn,Bn);var mn=function(){dn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,15))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,15):this.Ff=en(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,16))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,16):this.Ff=en(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,17))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,17):this.Ff=en(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,26):this.Ff=en(this.Ff,26)}});var A,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var t,r=[];for(t in r.push("<<"),e)r.push("/"+t+" ("+Rr(A(e[t]))+")");return r.push(">>"),r.join("\n")}},set:function(A){"object"===oA(A)&&(e=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(A){"string"==typeof A&&(e.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(e){A="/"+e}})};zr(mn,dn);var bn=function(){mn.call(this),this.pushButton=!0};zr(bn,mn);var yn=function(){mn.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=void 0!==e?e:[]}})};zr(yn,mn);var vn=function(){var A,e;dn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(A){e=A}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var e,t=[];for(e in t.push("<<"),r)t.push("/"+e+" ("+Rr(A(r[e]))+")");return t.push(">>"),t.join("\n")},set:function(A){"object"===oA(A)&&(r=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(A){"string"==typeof A&&(r.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(A){t="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Un.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};zr(vn,dn),yn.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=A.createAppearanceStream(t.optionName),t.caption=A.getCA()}},yn.prototype.createOption=function(A){var e=new vn;return e.Parent=this,e.optionName=A,this.Kids.push(e),xn.call(this.scope,e),e};var Cn=function(){mn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Un.CheckBox.createAppearanceStream()};zr(Cn,mn);var Qn=function(){dn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,13))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,13):this.Ff=en(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,21))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,21):this.Ff=en(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,23):this.Ff=en(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,24))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,24):this.Ff=en(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,25))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,25):this.Ff=en(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,26):this.Ff=en(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(e){Number.isInteger(e)&&(A=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};zr(Qn,dn);var Fn=function(){Qn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean($r(this.Ff,14))},set:function(A){!0===Boolean(A)?this.Ff=An(this.Ff,14):this.Ff=en(this.Ff,14)}}),this.password=!0};zr(Fn,Qn);var Un={CheckBox:{createAppearanceStream:function(){return{N:{On:Un.CheckBox.YesNormal},D:{On:Un.CheckBox.YesPushDown,Off:Un.CheckBox.OffPushDown}}},YesPushDown:function(A){var e=Jr(A);e.scope=A.scope;var t=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=nn(A,A.caption);return t.push("0.749023 g"),t.push("0 0 "+Gr(Un.internal.getWidth(A))+" "+Gr(Un.internal.getHeight(A))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+Gr(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join("\n"),e},YesNormal:function(A){var e=Jr(A);e.scope=A.scope;var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=Un.internal.getHeight(A),s=Un.internal.getWidth(A),o=nn(A,A.caption);return n.push("1 g"),n.push("0 0 "+Gr(s)+" "+Gr(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+Gr(s-1)+" "+Gr(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+Gr(o.fontSize)+" Tf "+r),n.push(o.text),n.push("ET"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(A){var e=Jr(A);e.scope=A.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Gr(Un.internal.getWidth(A))+" "+Gr(Un.internal.getHeight(A))+" re"),t.push("f"),e.stream=t.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(A){var e={D:{Off:Un.RadioButton.Circle.OffPushDown},N:{}};return e.N[A]=Un.RadioButton.Circle.YesNormal,e.D[A]=Un.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(A){var e=Jr(A);e.scope=A.scope;var t=[],r=Un.internal.getWidth(A)<=Un.internal.getHeight(A)?Un.internal.getWidth(A)/4:Un.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Un.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+qr(Un.internal.getWidth(A)/2)+" "+qr(Un.internal.getHeight(A)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join("\n"),e},YesPushDown:function(A){var e=Jr(A);e.scope=A.scope;var t=[],r=Un.internal.getWidth(A)<=Un.internal.getHeight(A)?Un.internal.getWidth(A)/4:Un.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*Un.internal.Bezier_C).toFixed(5)),s=Number((r*Un.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+qr(Un.internal.getWidth(A)/2)+" "+qr(Un.internal.getHeight(A)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+qr(Un.internal.getWidth(A)/2)+" "+qr(Un.internal.getHeight(A)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),t.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),t.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),t.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join("\n"),e},OffPushDown:function(A){var e=Jr(A);e.scope=A.scope;var t=[],r=Un.internal.getWidth(A)<=Un.internal.getHeight(A)?Un.internal.getWidth(A)/4:Un.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*Un.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+qr(Un.internal.getWidth(A)/2)+" "+qr(Un.internal.getHeight(A)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join("\n"),e}},Cross:{createAppearanceStream:function(A){var e={D:{Off:Un.RadioButton.Cross.OffPushDown},N:{}};return e.N[A]=Un.RadioButton.Cross.YesNormal,e.D[A]=Un.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(A){var e=Jr(A);e.scope=A.scope;var t=[],r=Un.internal.calculateCross(A);return t.push("q"),t.push("1 1 "+Gr(Un.internal.getWidth(A)-2)+" "+Gr(Un.internal.getHeight(A)-2)+" re"),t.push("W"),t.push("n"),t.push(Gr(r.x1.x)+" "+Gr(r.x1.y)+" m"),t.push(Gr(r.x2.x)+" "+Gr(r.x2.y)+" l"),t.push(Gr(r.x4.x)+" "+Gr(r.x4.y)+" m"),t.push(Gr(r.x3.x)+" "+Gr(r.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join("\n"),e},YesPushDown:function(A){var e=Jr(A);e.scope=A.scope;var t=Un.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+Gr(Un.internal.getWidth(A))+" "+Gr(Un.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Gr(Un.internal.getWidth(A)-2)+" "+Gr(Un.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(Gr(t.x1.x)+" "+Gr(t.x1.y)+" m"),r.push(Gr(t.x2.x)+" "+Gr(t.x2.y)+" l"),r.push(Gr(t.x4.x)+" "+Gr(t.x4.y)+" m"),r.push(Gr(t.x3.x)+" "+Gr(t.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(A){var e=Jr(A);e.scope=A.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Gr(Un.internal.getWidth(A))+" "+Gr(Un.internal.getHeight(A))+" re"),t.push("f"),e.stream=t.join("\n"),e}}},createDefaultAppearanceStream:function(A){var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,t=A.scope.__private__.encodeColorString(A.color);return"/"+e+" "+A.fontSize+" Tf "+t}};Un.internal={Bezier_C:.551915024494,calculateCross:function(A){var e=Un.internal.getWidth(A),t=Un.internal.getHeight(A),r=Math.min(e,t);return{x1:{x:(e-r)/2,y:(t-r)/2+r},x2:{x:(e-r)/2+r,y:(t-r)/2},x3:{x:(e-r)/2,y:(t-r)/2},x4:{x:(e-r)/2+r,y:(t-r)/2+r}}}},Un.internal.getWidth=function(A){var e=0;return"object"===oA(A)&&(e=Wr(A.Rect[2])),e},Un.internal.getHeight=function(A){var e=0;return"object"===oA(A)&&(e=Wr(A.Rect[3])),e};var xn=Tr.addField=function(A){if(function(A,e){if(e.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(dn.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(on)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Kr=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new fn,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",function(){var e;(e=A).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}),A.internal.events.subscribe("buildDocument",function(){!function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.objId=void 0,r.hasAnnotation&&an(r,A)}}(A)}),A.internal.events.subscribe("putCatalog",function(){!function(A){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)}),A.internal.events.subscribe("postPutPages",function(e){!function(A,e){var t=!A;for(var r in A||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),A=A||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(A.hasOwnProperty(r)){var n=A[r],i=[],s=n.Rect;if(n.Rect&&(n.Rect=tn(n.Rect,e)),e.internal.newObjectDeferredBegin(n.objId,!0),n.DA=Un.createDefaultAppearanceStream(n),"object"===oA(n)&&"function"==typeof n.getKeyValueListForStream&&(i=n.getKeyValueListForStream()),n.Rect=s,n.hasAppearanceStream&&!n.appearanceStreamContent){var o=rn(n);i.push({key:"AP",value:"<</N "+o+">>"}),e.internal.acroformPlugin.xForms.push(o)}if(n.appearanceStreamContent){var a="";for(var c in n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(c)){var l=n.appearanceStreamContent[c];if(a+="/"+c+" ",a+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var r in l)if(l.hasOwnProperty(r)){var u=l[r];"function"==typeof u&&(u=u.call(e,n)),a+="/"+r+" "+u+" ",e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=l)&&(u=u.call(e,n)),a+="/"+r+" "+u,e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u);a+=">>"}i.push({key:"AP",value:"<<\n"+a+">>"})}e.internal.putStream({additionalKeyValues:i,objectId:n.objId}),e.internal.out("endobj")}t&&function(A,e){for(var t in A)if(A.hasOwnProperty(t)){var r=t,n=A[t];e.internal.newObjectDeferredBegin(n.objId,!0),"object"===oA(n)&&"function"==typeof n.putStream&&n.putStream(),delete A[r]}}(e.internal.acroformPlugin.xForms,e)}(e,A)}),A.internal.acroformPlugin.isInitialized=!0}}(this,A),!(A instanceof dn))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=A).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};Tr.AcroFormChoiceField=pn,Tr.AcroFormListBox=gn,Tr.AcroFormComboBox=Bn,Tr.AcroFormEditBox=wn,Tr.AcroFormButton=mn,Tr.AcroFormPushButton=bn,Tr.AcroFormRadioButton=yn,Tr.AcroFormCheckBox=Cn,Tr.AcroFormTextField=Qn,Tr.AcroFormPasswordField=Fn,Tr.AcroFormAppearance=Un,Tr.AcroForm={ChoiceField:pn,ListBox:gn,ComboBox:Bn,EditBox:wn,Button:mn,PushButton:bn,RadioButton:yn,CheckBox:Cn,TextField:Qn,PasswordField:Fn,Appearance:Un},Mr.AcroForm={ChoiceField:pn,ListBox:gn,ComboBox:Bn,EditBox:wn,Button:mn,PushButton:bn,RadioButton:yn,CheckBox:Cn,TextField:Qn,PasswordField:Fn,Appearance:Un};var Ln,_n,En=Mr.AcroForm;function kn(A){return A.reduce(function(A,e,t){return A[e]=t,A},{})}!function(A){var e="addImage_";A.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=A.__addimage__.getImageFileTypeByImageData=function(A,e){var n,i,s,o,a,c=t;if("RGBA"===(e=e||t)||void 0!==A.data&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(v(A))for(a in r)for(s=r[a],n=0;n<s.length;n+=1){for(o=!0,i=0;i<s[n].length;i+=1)if(void 0!==s[n][i]&&s[n][i]!==A[i]){o=!1;break}if(!0===o){c=a;break}}else for(a in r)for(s=r[a],n=0;n<s.length;n+=1){for(o=!0,i=0;i<s[n].length;i+=1)if(void 0!==s[n][i]&&s[n][i]!==A.charCodeAt(i)){o=!1;break}if(!0===o){c=a;break}}return c===t&&e!==t&&(c=e),c},i=function A(e){for(var t=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:e.width}),i.push({key:"Height",value:e.height}),e.colorSpace===B.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===B.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var s="",o=0,a=e.transparency.length;o<a;o++)s+=e.transparency[o]+" "+e.transparency[o]+" ";i.push({key:"Mask",value:"["+s+"]"})}void 0!==e.sMask&&i.push({key:"SMask",value:e.objectId+1+" 0 R"});var c=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:e.objectId}),t("endobj"),"sMask"in e&&void 0!==e.sMask){var l,u=null!==(l=e.sMaskBitsPerComponent)&&void 0!==l?l:e.bitsPerComponent,h={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:u,data:e.sMask};"filter"in e&&(h.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(u," /Columns ").concat(e.width),h.filter=e.filter),A.call(this,h)}if(e.colorSpace===B.INDEXED){var f=this.internal.newObject();r({data:Q(new Uint8Array(e.palette)),objectId:f}),t("endobj")}},s=function(){var A=this.internal.collections[e+"images"];for(var t in A)i.call(this,A[t])},o=function(){var A,t=this.internal.collections[e+"images"],r=this.internal.write;for(var n in t)r("/I"+(A=t[n]).index,A.objectId,"0","R")},a=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},c=function(){var A=this.internal.collections[e+"images"];return a.call(this),A},l=function(){return Object.keys(this.internal.collections[e+"images"]).length},u=function(e){return"function"==typeof A["process"+e.toUpperCase()]},h=function(A){return"object"===oA(A)&&1===A.nodeType},f=function(e,t){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return pr(unescape(r).split("base64,").pop());var n=A.loadFile(r,!0);if(void 0!==n)return n}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var i;switch(t){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return pr(e.toDataURL(i,1).split("base64,").pop())}},d=function(A){var t=this.internal.collections[e+"images"];if(t)for(var r in t)if(A===t[r].alias)return t[r]},p=function(A,e,t){return A||e||(A=-96,e=-96),A<0&&(A=-1*t.width*72/A/this.internal.scaleFactor),e<0&&(e=-1*t.height*72/e/this.internal.scaleFactor),0===A&&(A=e*t.width/t.height),0===e&&(e=A*t.height/t.width),[A,e]},g=function(A,e,t,r,n,i){var s=p.call(this,t,r,n),o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,l=c.call(this);if(t=s[0],r=s[1],l[n.index]=n,i){i*=Math.PI/180;var u=Math.cos(i),h=Math.sin(i),f=function(A){return A.toFixed(4)},d=[f(u),f(h),f(-1*h),f(u),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,o(A),a(e+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([o(t),"0","0",o(r),"0","0","cm"].join(" "))):this.internal.write([o(t),"0","0",o(r),o(A),a(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},B=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},m=A.__addimage__.sHashCode=function(A){var e,t,r=0;if("string"==typeof A)for(t=A.length,e=0;e<t;e++)r=(r<<5)-r+A.charCodeAt(e),r|=0;else if(v(A))for(t=A.byteLength/2,e=0;e<t;e++)r=(r<<5)-r+A[e],r|=0;return r},b=A.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var e=!0;return 0===A.length&&(e=!1),A.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))&&(e=!1),e},y=A.__addimage__.extractImageFromDataUrl=function(A){if(null==A)return null;if(!(A=A.trim()).startsWith("data:"))return null;var e=A.indexOf(",");return e<0?null:A.substring(0,e).trim().endsWith("base64")?A.substring(e+1):null};A.__addimage__.isArrayBuffer=function(A){return A instanceof ArrayBuffer};var v=A.__addimage__.isArrayBufferView=function(A){return A instanceof Int8Array||A instanceof Uint8Array||A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array},C=A.__addimage__.binaryStringToUint8Array=function(A){for(var e=A.length,t=new Uint8Array(e),r=0;r<e;r++)t[r]=A.charCodeAt(r);return t},Q=A.__addimage__.arrayBufferToBinaryString=function(A){for(var e="",t=v(A)?A:new Uint8Array(A),r=0;r<t.length;r+=8192)e+=String.fromCharCode.apply(null,t.subarray(r,r+8192));return e};A.addImage=function(){var A,e,r,n,i,s,o,c,l;if("number"==typeof arguments[1]?(e=t,r=arguments[1],n=arguments[2],i=arguments[3],s=arguments[4],o=arguments[5],c=arguments[6],l=arguments[7]):(e=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4],s=arguments[5],o=arguments[6],c=arguments[7],l=arguments[8]),"object"===oA(A=arguments[0])&&!h(A)&&"imageData"in A){var u=A;A=u.imageData,e=u.format||e||t,r=u.x||r||0,n=u.y||n||0,i=u.w||u.width||i,s=u.h||u.height||s,o=u.alias||o,c=u.compression||c,l=u.rotation||u.angle||l}var f=this.internal.getFilters();if(void 0===c&&-1!==f.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(n))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var d=F.call(this,A,e,o,c);return g.call(this,r,n,i,s,d,l),this};var F=function(e,r,i,s){var o,a,c,p;if("string"==typeof e&&n(e)===t){e=unescape(e);var g=U(e,!1);(""!==g||void 0!==(g=A.loadFile(e,!0)))&&(e=g)}if(h(e)&&(e=f(e,r)),r=n(e,r),!u(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(c=i)||0===c.length)&&(i="string"==typeof(p=e)||v(p)?m(p):v(p.data)?m(p.data):null),(o=d.call(this,i))||(e instanceof Uint8Array||"RGBA"===r||(a=e,e=C(e)),o=this["process"+r.toUpperCase()](e,l.call(this),i,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in A.image_compression?e:w.NONE}(s),a)),!o)throw new Error("An unknown error occurred whilst processing the image.");return o},U=A.__addimage__.convertBase64ToBinaryString=function(A,e){e="boolean"!=typeof e||e;var t,r="";if("string"==typeof A){var n;t=null!==(n=y(A))&&void 0!==n?n:A;try{r=pr(t)}catch(i){if(e)throw b(t)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+i.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};A.getImageProperties=function(e){var r,i,s="";if(h(e)&&(e=f(e)),"string"==typeof e&&n(e)===t&&(""===(s=U(e,!1))&&(s=A.loadFile(e)||""),e=s),i=n(e),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(e instanceof Uint8Array||(e=C(e)),!(r=this["process"+i.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(Mr.API),
37
- /**
38
- * @license
39
- * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
40
- *
41
- * Licensed under the MIT License.
42
- * http://opensource.org/licenses/mit-license
43
- */
44
- Ln=Mr.API,_n=function(A){if(void 0!==A&&""!=A)return!0},Mr.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),Ln.events.push(["putPage",function(A){for(var e,t,r,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(A.objId),o=A.pageContext.annotations,a=!1,c=0;c<o.length&&!a;c++)switch((e=o[c]).type){case"link":(_n(e.options.url)||_n(e.options.pageNumber))&&(a=!0);break;case"reference":case"text":case"freetext":a=!0}if(0!=a){this.internal.write("/Annots [");for(var l=0;l<o.length;l++){e=o[l];var u=this.internal.pdfEscape,h=this.internal.getEncryptor(A.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),d=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(f.objId),g=e.title||"Note";r="<</Type /Annot /Subtype /Text "+(t="/Rect ["+n(e.bounds.x)+" "+i(e.bounds.y+e.bounds.h)+" "+n(e.bounds.x+e.bounds.w)+" "+i(e.bounds.y)+"] ")+"/Contents ("+u(p(e.contents))+")",r+=" /Popup "+d.objId+" 0 R",r+=" /P "+s.objId+" 0 R",r+=" /T ("+u(p(g))+") >>",f.content=r;var B=f.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(t="/Rect ["+n(e.bounds.x+30)+" "+i(e.bounds.y+e.bounds.h)+" "+n(e.bounds.x+e.bounds.w+30)+" "+i(e.bounds.y)+"] ")+" /Parent "+B,e.open&&(r+=" /Open true"),r+=" >>",d.content=r,this.internal.write(f.objId,"0 R",d.objId,"0 R");break;case"freetext":t="/Rect ["+n(e.bounds.x)+" "+i(e.bounds.y)+" "+n(e.bounds.x+e.bounds.w)+" "+i(e.bounds.y+e.bounds.h)+"] ";var w=e.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+t+"/Contents ("+u(h(e.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+w+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(e.options.name){var m=this.annotations._nameMap[e.options.name];e.options.pageNumber=m.page,e.options.top=m.y}else e.options.top||(e.options.top=0);if(t="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<</Type /Annot /Subtype /Link "+t+"/Border [0 0 0] /A <</S /URI /URI ("+u(h(e.options.url))+") >>";else if(e.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+t+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,r+=" /FitV "+e.options.left+"]";break;default:var b=i(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),r+=" /XYZ "+e.options.left+" "+b+" "+e.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),Ln.createAnnotation=function(A){var e=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":e.pageContext.annotations.push(A)}},Ln.link=function(A,e,t,r,n){var i=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:s(A),y:o(e),w:s(A+t),h:o(e+r)},options:n,type:"link"})},Ln.textWithLink=function(A,e,t,r){var n,i,s=this.getTextWidth(A),o=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var a=this.splitTextToSize(A,i).length;n=Math.ceil(o*a)}else i=s,n=o;return this.text(A,e,t,r),t+=.2*o,"center"===r.align&&(e-=s/2),"right"===r.align&&(e-=s),this.link(e,t-o,i,n,r),s},Ln.getTextWidth=function(A){var e=this.internal.getFontSize();return this.getStringUnitWidth(A)*e/this.internal.scaleFactor},
45
- /**
46
- * @license
47
- * Copyright (c) 2017 Aras Abbasi
48
- *
49
- * Licensed under the MIT License.
50
- * http://opensource.org/licenses/mit-license
51
- */
52
- function(A){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];A.__arabicParser__={};var i=A.__arabicParser__.isInArabicSubstitutionA=function(A){return void 0!==e[A.charCodeAt(0)]},s=A.__arabicParser__.isArabicLetter=function(A){return"string"==typeof A&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(A)},o=A.__arabicParser__.isArabicEndLetter=function(A){return s(A)&&i(A)&&e[A.charCodeAt(0)].length<=2},a=A.__arabicParser__.isArabicAlfLetter=function(A){return s(A)&&n.indexOf(A.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(A){return s(A)&&i(A)&&e[A.charCodeAt(0)].length>=1};var c=A.__arabicParser__.arabicLetterHasFinalForm=function(A){return s(A)&&i(A)&&e[A.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(A){return s(A)&&i(A)&&e[A.charCodeAt(0)].length>=3};var l=A.__arabicParser__.arabicLetterHasMedialForm=function(A){return s(A)&&i(A)&&4==e[A.charCodeAt(0)].length},u=A.__arabicParser__.resolveLigatures=function(A){var e=0,r=t,n="",i=0;for(e=0;e<A.length;e+=1)void 0!==r[A.charCodeAt(e)]?(i++,"number"==typeof(r=r[A.charCodeAt(e)])&&(n+=String.fromCharCode(r),r=t,i=0),e===A.length-1&&(r=t,n+=A.charAt(e-(i-1)),e-=i-1,i=0)):(r=t,n+=A.charAt(e-i),e-=i,i=0);return n};A.__arabicParser__.isArabicDiacritic=function(A){return void 0!==A&&void 0!==r[A.charCodeAt(0)]};var h=A.__arabicParser__.getCorrectForm=function(A,e,t){return s(A)?!1===i(A)?-1:!c(A)||!s(e)&&!s(t)||!s(t)&&o(e)||o(A)&&!s(e)||o(A)&&a(e)||o(A)&&o(e)?0:l(A)&&s(e)&&!o(e)&&s(t)&&c(t)?3:o(A)||!s(t)?1:2:-1},f=function(A){var t=0,r=0,n=0,i="",o="",a="",c=(A=A||"").split("\\s+"),l=[];for(t=0;t<c.length;t+=1){for(l.push(""),r=0;r<c[t].length;r+=1)i=c[t][r],o=c[t][r-1],a=c[t][r+1],s(i)?(n=h(i,o,a),l[t]+=-1!==n?String.fromCharCode(e[i.charCodeAt(0)][n]):i):l[t]+=i;l[t]=u(l[t])}return l.join(" ")},d=A.__arabicParser__.processArabic=A.processArabic=function(){var A,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,t=[];if(Array.isArray(e)){var r=0;for(t=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?t.push([f(e[r][0]),e[r][1],e[r][2]]):t.push([f(e[r])]);A=t}else A=f(e);return"string"==typeof arguments[0]?A:(arguments[0].text=A,arguments[0])};A.events.push(["preProcessText",d])}(Mr.API),Mr.API.autoPrint=function(A){var e;return(A=A||{}).variant=A.variant||"non-conform","javascript"===A.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},
53
- /**
54
- * @license
55
- * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
56
- *
57
- * Licensed under the MIT License.
58
- * http://opensource.org/licenses/mit-license
59
- */
60
- function(A){var e=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(e){A=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(A){e=isNaN(A)||!1===Number.isInteger(A)||A<0?150:A,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var t=300;Object.defineProperty(this,"height",{get:function(){return t},set:function(A){t=isNaN(A)||!1===Number.isInteger(A)||A<0?300:A,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=t+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(A){r=A}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(A,e){var t;if("2d"!==(A=A||"2d"))return null;for(t in e)this.pdf.context2d.hasOwnProperty(t)&&(this.pdf.context2d[t]=e[t]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Mr.API),function(A){var e={left:0,top:0,bottom:0,right:0},t=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(e){A=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(A){e=A}});var t=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return t},set:function(A){t=A}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(A){r=A}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(A){n=A}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(A){i=A}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(A){s=A}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(A){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof A?A:void 0,this},A.getTextDimensions=function(A,e){r.call(this);var t=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,s=0,o=0,a=0,c=this;if(!Array.isArray(A)&&"string"!=typeof A){if("number"!=typeof A)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var l=e.maxWidth;l>0?"string"==typeof A?A=this.splitTextToSize(A,l):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce(function(A,e){return A.concat(c.splitTextToSize(e,l))},[])):A=Array.isArray(A)?A:[A];for(var u=0;u<A.length;u++)s<(a=this.getStringUnitWidth(A[u],{font:n})*t)&&(s=a);return 0!==s&&(o=A.length),{w:s/=i,h:Math.max((o*t*this.getLineHeightFactor()-t*(this.getLineHeightFactor()-1))/i,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var A=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=A.cell=function(){var A;A=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var n=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,o=this.internal.__cell__.margins||e,a=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===A.lineNumber?(A.x=(n.x||0)+(n.width||0),A.y=n.y||0):n.y+n.height+A.height+o.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=o.top,c&&a&&(this.printHeaderRow(A.lineNumber,!0),A.y+=a[0].height)):A.y=n.y+n.height||A.y),void 0!==A.text[0]&&(this.rect(A.x,A.y,A.width,A.height,!0===t?"FD":void 0),"right"===A.align?this.text(A.text,A.x+A.width-s,A.y+s,{align:"right",baseline:"top"}):"center"===A.align?this.text(A.text,A.x+A.width/2,A.y+s,{align:"center",baseline:"top",maxWidth:A.width-s-s}):this.text(A.text,A.x+s,A.y+s,{align:"left",baseline:"top",maxWidth:A.width-s-s})),this.internal.__cell__.lastCell=A,this};A.table=function(A,t,a,c,l){if(r.call(this),!a)throw new Error("No data for PDF table.");var u,h,f,d,p=[],g=[],B=[],w={},m={},b=[],y=[],v=(l=l||{}).autoSize||!1,C=!1!==l.printHeaders,Q=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,F=l.margins||Object.assign({width:this.getPageWidth()},e),U="number"==typeof l.padding?l.padding:3,x=l.headerBackgroundColor||"#c8c8c8",L=l.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=U,this.internal.__cell__.headerBackgroundColor=x,this.internal.__cell__.headerTextColor=L,this.setFontSize(Q),null==c)g=p=Object.keys(a[0]),B=p.map(function(){return"left"});else if(Array.isArray(c)&&"object"===oA(c[0]))for(p=c.map(function(A){return A.name}),g=c.map(function(A){return A.prompt||A.name||""}),B=c.map(function(A){return A.align||"left"}),u=0;u<c.length;u+=1)m[c[u].name]=.7499990551181103*c[u].width;else Array.isArray(c)&&"string"==typeof c[0]&&(g=p=c,B=p.map(function(){return"left"}));if(v||Array.isArray(c)&&"string"==typeof c[0])for(u=0;u<p.length;u+=1){for(w[d=p[u]]=a.map(function(A){return A[d]}),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(g[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=w[d],this.setFont(void 0,"normal"),f=0;f<h.length;f+=1)b.push(this.getTextDimensions(h[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);m[d]=Math.max.apply(null,b)+U+U,b=[]}if(C){var _={};for(u=0;u<p.length;u+=1)_[p[u]]={},_[p[u]].text=g[u],_[p[u]].align=B[u];var E=o.call(this,_,m);y=p.map(function(e){return new i(A,t,m[e],E,_[e].text,void 0,_[e].align)}),this.setTableHeaderRow(y),this.printHeaderRow(1,!1)}var k=c.reduce(function(A,e){return A[e.name]=e.align,A},{});for(u=0;u<a.length;u+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:u,data:a[u]},this);var I=o.call(this,a[u],m);for(f=0;f<p.length;f+=1){var S=a[u][p[f]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:u,col:f,data:S},this),s.call(this,new i(A,t,m[p[f]],I,S,u+2,k[p[f]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=t,this};var o=function(A,e){var t=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(A).map(function(r){var n=A[r];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,e[r]-t-t)},this).map(function(A){return this.getLineHeightFactor()*A.length*r/n+t+t},this).reduce(function(A,e){return Math.max(A,e)},0)};A.setTableHeaderRow=function(A){r.call(this),this.internal.__cell__.tableHeaderRow=A},A.printHeaderRow=function(A,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(t=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var a=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){n=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(n.y=this.internal.__cell__.margins.top||0,a.push(n)),n.lineNumber=A;var l=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,n),this.setTextColor(l)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,"normal"),t=!1}}(Mr.API);var In={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Sn=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],jn=kn(Sn),Hn=[100,200,300,400,500,600,700,800,900],Nn=kn(Hn);function Pn(A){var e,t=A.family.replace(/"|'/g,"").toLowerCase(),r=(e=A.style,In[e=e||"normal"]?e:"normal"),n=function(A){return A?"number"==typeof A?A>=100&&A<=900&&A%100==0?A:400:/^\d00$/.test(A)?parseInt(A):"bold"===A?700:400:400}(A.weight),i=function(A){return"number"==typeof jn[A=A||"normal"]?A:"normal"}(A.stretch);return{family:t,style:r,weight:n,stretch:i,src:A.src||[],ref:A.ref||{name:t,style:[i,r,n].join(" ")}}}function Dn(A,e,t,r){var n;for(n=t;n>=0&&n<e.length;n+=r)if(A[e[n]])return A[e[n]];for(n=t;n>=0&&n<e.length;n-=r)if(A[e[n]])return A[e[n]]}var On={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mn={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Tn(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function Kn(A){return A.trimLeft()}function Rn(A,e){for(var t=0;t<A.length;){if(A.charAt(t)===e)return[A.substring(0,t),A.substring(t+1)];t+=1}return null}function Vn(A){var e=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],A.substring(e[0].length)]}var Gn,qn,zn,Wn,Jn,Xn,Yn,Zn,$n=["times"];function Ai(A,e,t,r,n){var i=4,s=ri;switch(n){case Mr.API.image_compression.FAST:i=1,s=ti;break;case Mr.API.image_compression.MEDIUM:i=6,s=ni;break;case Mr.API.image_compression.SLOW:i=9,s=ii}A=function(A,e,t,r){for(var n,i=A.length/e,s=new Uint8Array(A.length+i),o=[ei,ti,ri,ni,ii],a=0;a<i;a+=1){var c=a*e,l=A.subarray(c,c+e);if(r)s.set(r(l,t,n),c+a);else{for(var u=o.length,h=[],f=0;f<u;f+=1)h[f]=o[f](l,t,n);var d=oi(h.concat());s.set(h[d],c+a)}n=l}return s}(A,e,Math.ceil(t*r/8),s);var o=TA(A,{level:i});return Mr.API.__addimage__.arrayBufferToBinaryString(o)}function ei(A){var e=Array.apply([],A);return e.unshift(0),e}function ti(A,e){var t=A.length,r=[];r[0]=1;for(var n=0;n<t;n+=1){var i=A[n-e]||0;r[n+1]=A[n]-i+256&255}return r}function ri(A,e,t){var r=A.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var s=t&&t[i]||0;n[i+1]=A[i]-s+256&255}return n}function ni(A,e,t){var r=A.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var s=A[i-e]||0,o=t&&t[i]||0;n[i+1]=A[i]+256-(s+o>>>1)&255}return n}function ii(A,e,t){var r=A.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var s=si(A[i-e]||0,t&&t[i]||0,t&&t[i-e]||0);n[i+1]=A[i]-s+256&255}return n}function si(A,e,t){if(A===e&&e===t)return A;var r=Math.abs(e-t),n=Math.abs(A-t),i=Math.abs(A+e-t-t);return r<=n&&r<=i?A:n<=i?e:t}function oi(A){var e=A.map(function(A){return A.reduce(function(A,e){return A+Math.abs(e)},0)});return e.indexOf(Math.min.apply(null,e))}function ai(A,e,t){var r=e*t,n=Math.floor(r/8),i=16-(r-8*n+t),s=(1<<t)-1;return li(A,n)>>i&s}function ci(A,e,t,r){var n=t*r,i=Math.floor(n/8),s=16-(n-8*i+r),o=(1<<r)-1,a=(e&o)<<s;!function(A,e,t){if(e+1<A.byteLength)A.setUint16(e,t,!1);else{var r=t>>8&255;A.setUint8(e,r)}}(A,i,li(A,i)&~(o<<s)&65535|a)}function li(A,e){return e+1<A.byteLength?A.getUint16(e,!1):A.getUint8(e)<<8}function ui(A){var e=0;if(71!==A[e++]||73!==A[e++]||70!==A[e++]||56!==A[e++]||56!=(A[e++]+1&253)||97!==A[e++])throw new Error("Invalid GIF 87a/89a header.");var t=A[e++]|A[e++]<<8,r=A[e++]|A[e++]<<8,n=A[e++],i=n>>7,s=1<<1+(7&n);A[e++],A[e++];var o=null,a=null;i&&(o=e,a=s,e+=3*s);var c=!0,l=[],u=0,h=null,f=0,d=null;for(this.width=t,this.height=r;c&&e<A.length;)switch(A[e++]){case 33:switch(A[e++]){case 255:if(11!==A[e]||78==A[e+1]&&69==A[e+2]&&84==A[e+3]&&83==A[e+4]&&67==A[e+5]&&65==A[e+6]&&80==A[e+7]&&69==A[e+8]&&50==A[e+9]&&46==A[e+10]&&48==A[e+11]&&3==A[e+12]&&1==A[e+13]&&0==A[e+16])e+=14,d=A[e++]|A[e++]<<8,e++;else for(e+=12;;){if(!((x=A[e++])>=0))throw Error("Invalid block size");if(0===x)break;e+=x}break;case 249:if(4!==A[e++]||0!==A[e+4])throw new Error("Invalid graphics extension block.");var p=A[e++];u=A[e++]|A[e++]<<8,h=A[e++],1&p||(h=null),f=p>>2&7,e++;break;case 254:for(;;){if(!((x=A[e++])>=0))throw Error("Invalid block size");if(0===x)break;e+=x}break;default:throw new Error("Unknown graphic control label: 0x"+A[e-1].toString(16))}break;case 44:var g=A[e++]|A[e++]<<8,B=A[e++]|A[e++]<<8,w=A[e++]|A[e++]<<8,m=A[e++]|A[e++]<<8,b=A[e++],y=b>>6&1,v=1<<1+(7&b),C=o,Q=a,F=!1;b>>7&&(F=!0,C=e,Q=v,e+=3*v);var U=e;for(e++;;){var x;if(!((x=A[e++])>=0))throw Error("Invalid block size");if(0===x)break;e+=x}l.push({x:g,y:B,width:w,height:m,has_local_palette:F,palette_offset:C,palette_size:Q,data_offset:U,data_length:e-U,transparent_index:h,interlaced:!!y,delay:u,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+A[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return d},this.frameInfo=function(A){if(A<0||A>=l.length)throw new Error("Frame index out of range.");return l[A]},this.decodeAndBlitFrameBGRA=function(e,r){var n=this.frameInfo(e),i=n.width*n.height,s=new Uint8Array(i);hi(A,n.data_offset,s,i);var o=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var c=n.width,l=t-c,u=c,h=4*(n.y*t+n.x),f=4*((n.y+n.height)*t+n.x),d=h,p=4*l;!0===n.interlaced&&(p+=4*t*7);for(var g=8,B=0,w=s.length;B<w;++B){var m=s[B];if(0===u&&(u=c,(d+=p)>=f&&(p=4*l+4*t*(g-1),d=h+(c+l)*(g<<1),g>>=1)),m===a)d+=4;else{var b=A[o+3*m],y=A[o+3*m+1],v=A[o+3*m+2];r[d++]=v,r[d++]=y,r[d++]=b,r[d++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,r){var n=this.frameInfo(e),i=n.width*n.height,s=new Uint8Array(i);hi(A,n.data_offset,s,i);var o=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var c=n.width,l=t-c,u=c,h=4*(n.y*t+n.x),f=4*((n.y+n.height)*t+n.x),d=h,p=4*l;!0===n.interlaced&&(p+=4*t*7);for(var g=8,B=0,w=s.length;B<w;++B){var m=s[B];if(0===u&&(u=c,(d+=p)>=f&&(p=4*l+4*t*(g-1),d=h+(c+l)*(g<<1),g>>=1)),m===a)d+=4;else{var b=A[o+3*m],y=A[o+3*m+1],v=A[o+3*m+2];r[d++]=b,r[d++]=y,r[d++]=v,r[d++]=255}--u}}}function hi(A,e,t,r){for(var n=A[e++],i=1<<n,s=i+1,o=s+1,a=n+1,c=(1<<a)-1,l=0,u=0,h=0,f=A[e++],d=new Int32Array(4096),p=null;;){for(;l<16&&0!==f;)u|=A[e++]<<l,l+=8,1===f?f=A[e++]:--f;if(l<a)break;var g=u&c;if(u>>=a,l-=a,g!==i){if(g===s)break;for(var B=g<o?g:p,w=0,m=B;m>i;)m=d[m]>>8,++w;var b=m;if(h+w+(B!==g?1:0)>r)return void cr.log("Warning, gif stream longer than expected.");t[h++]=b;var y=h+=w;for(B!==g&&(t[h++]=b),m=B;w--;)m=d[m],t[--y]=255&m,m>>=8;null!==p&&o<4096&&(d[o++]=p<<8|b,o>=c+1&&a<12&&(++a,c=c<<1|1)),p=g}else o=s+1,c=(1<<(a=n+1))-1,p=null}return h!==r&&cr.log("Warning, gif stream shorter than expected."),t
61
- /**
62
- * @license
63
- Copyright (c) 2008, Adobe Systems Incorporated
64
- All rights reserved.
65
-
66
- Redistribution and use in source and binary forms, with or without
67
- modification, are permitted provided that the following conditions are
68
- met:
69
-
70
- * Redistributions of source code must retain the above copyright notice,
71
- this list of conditions and the following disclaimer.
72
-
73
- * Redistributions in binary form must reproduce the above copyright
74
- notice, this list of conditions and the following disclaimer in the
75
- documentation and/or other materials provided with the distribution.
76
-
77
- * Neither the name of Adobe Systems Incorporated nor the names of its
78
- contributors may be used to endorse or promote products derived from
79
- this software without specific prior written permission.
80
-
81
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
82
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
83
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
84
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
85
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
86
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
87
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
88
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
89
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
90
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
91
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
92
- */}function fi(A){var e,t,r,n,i,s=Math.floor,o=new Array(64),a=new Array(64),c=new Array(64),l=new Array(64),u=new Array(65535),h=new Array(65535),f=new Array(64),d=new Array(64),p=[],g=0,B=7,w=new Array(64),m=new Array(64),b=new Array(64),y=new Array(256),v=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function I(A,e){for(var t=0,r=0,n=new Array,i=1;i<=16;i++){for(var s=1;s<=A[i];s++)n[e[r]]=[],n[e[r]][0]=t,n[e[r]][1]=i,r++,t++;t*=2}return n}function S(A){for(var e=A[0],t=A[1]-1;t>=0;)e&1<<t&&(g|=1<<B),t--,--B<0&&(255==g?(j(255),j(0)):j(g),B=7,g=0)}function j(A){p.push(A)}function H(A){j(A>>8&255),j(255&A)}function N(A,e,t,r,n){for(var i,s=n[0],o=n[240],a=function(A,e){var t,r,n,i,s,o,a,c,l,u,h=0;for(l=0;l<8;++l){t=A[h],r=A[h+1],n=A[h+2],i=A[h+3],s=A[h+4],o=A[h+5],a=A[h+6];var d=t+(c=A[h+7]),p=t-c,g=r+a,B=r-a,w=n+o,m=n-o,b=i+s,y=i-s,v=d+b,C=d-b,Q=g+w,F=g-w;A[h]=v+Q,A[h+4]=v-Q;var U=.707106781*(F+C);A[h+2]=C+U,A[h+6]=C-U;var x=.382683433*((v=y+m)-(F=B+p)),L=.5411961*v+x,_=1.306562965*F+x,E=.707106781*(Q=m+B),k=p+E,I=p-E;A[h+5]=I+L,A[h+3]=I-L,A[h+1]=k+_,A[h+7]=k-_,h+=8}for(h=0,l=0;l<8;++l){t=A[h],r=A[h+8],n=A[h+16],i=A[h+24],s=A[h+32],o=A[h+40],a=A[h+48];var S=t+(c=A[h+56]),j=t-c,H=r+a,N=r-a,P=n+o,D=n-o,O=i+s,M=i-s,T=S+O,K=S-O,R=H+P,V=H-P;A[h]=T+R,A[h+32]=T-R;var G=.707106781*(V+K);A[h+16]=K+G,A[h+48]=K-G;var q=.382683433*((T=M+D)-(V=N+j)),z=.5411961*T+q,W=1.306562965*V+q,J=.707106781*(R=D+N),X=j+J,Y=j-J;A[h+40]=Y+z,A[h+24]=Y-z,A[h+8]=X+W,A[h+56]=X-W,h++}for(l=0;l<64;++l)u=A[l]*e[l],f[l]=u>0?u+.5|0:u-.5|0;return f}(A,e),c=0;c<64;++c)d[C[c]]=a[c];var l=d[0]-t;t=d[0],0==l?S(r[0]):(S(r[h[i=32767+l]]),S(u[i]));for(var p=63;p>0&&0==d[p];)p--;if(0==p)return S(s),t;for(var g,B=1;B<=p;){for(var w=B;0==d[B]&&B<=p;)++B;var m=B-w;if(m>=16){g=m>>4;for(var b=1;b<=g;++b)S(o);m&=15}i=32767+d[B],S(n[(m<<4)+h[i]]),S(u[i]),B++}return 63!=p&&S(s),t}function P(A){A=Math.min(Math.max(A,1),100),i!=A&&(function(A){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],t=0;t<64;t++){var r=s((e[t]*A+50)/100);r=Math.min(Math.max(r,1),255),o[C[t]]=r}for(var n=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var u=s((n[i]*A+50)/100);u=Math.min(Math.max(u,1),255),a[C[i]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,d=0;d<8;d++)for(var p=0;p<8;p++)c[f]=1/(o[C[f]]*h[d]*h[p]*8),l[f]=1/(a[C[f]]*h[d]*h[p]*8),f++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),i=A)}this.encode=function(A,i){var s,u;i&&P(i),p=new Array,g=0,B=7,H(65496),H(65504),H(16),j(74),j(70),j(73),j(70),j(0),j(1),j(1),j(0),H(1),H(1),j(0),j(0),function(){H(65499),H(132),j(0);for(var A=0;A<64;A++)j(o[A]);j(1);for(var e=0;e<64;e++)j(a[e])}(),s=A.width,u=A.height,H(65472),H(17),j(8),H(u),H(s),j(3),j(1),j(17),j(0),j(2),j(17),j(1),j(3),j(17),j(1),function(){H(65476),H(418),j(0);for(var A=0;A<16;A++)j(Q[A+1]);for(var e=0;e<=11;e++)j(F[e]);j(16);for(var t=0;t<16;t++)j(U[t+1]);for(var r=0;r<=161;r++)j(x[r]);j(1);for(var n=0;n<16;n++)j(L[n+1]);for(var i=0;i<=11;i++)j(_[i]);j(17);for(var s=0;s<16;s++)j(E[s+1]);for(var o=0;o<=161;o++)j(k[o])}(),H(65498),H(12),j(3),j(1),j(0),j(2),j(17),j(3),j(17),j(0),j(63),j(0);var h=0,f=0,d=0;g=0,B=7,this.encode.displayName="_encode_";for(var y,C,I,D,O,M,T,K,R,V=A.data,G=A.width,q=A.height,z=4*G,W=0;W<q;){for(y=0;y<z;){for(O=z*W+y,T=-1,K=0,R=0;R<64;R++)M=O+(K=R>>3)*z+(T=4*(7&R)),W+K>=q&&(M-=z*(W+1+K-q)),y+T>=z&&(M-=y+T-z+4),C=V[M++],I=V[M++],D=V[M++],w[R]=(v[C]+v[I+256|0]+v[D+512|0]>>16)-128,m[R]=(v[C+768|0]+v[I+1024|0]+v[D+1280|0]>>16)-128,b[R]=(v[C+1280|0]+v[I+1536|0]+v[D+1792|0]>>16)-128;h=N(w,c,h,e,r),f=N(m,l,f,t,n),d=N(b,l,d,t,n),y+=32}W+=8}if(B>=0){var J=[];J[1]=B+1,J[0]=(1<<B+1)-1,S(J)}return H(65497),new Uint8Array(p)},A=A||50,function(){for(var A=String.fromCharCode,e=0;e<256;e++)y[e]=A(e)}(),e=I(Q,F),t=I(L,_),r=I(U,x),n=I(E,k),function(){for(var A=1,e=2,t=1;t<=15;t++){for(var r=A;r<e;r++)h[32767+r]=t,u[32767+r]=[],u[32767+r][1]=t,u[32767+r][0]=r;for(var n=-(e-1);n<=-A;n++)h[32767+n]=t,u[32767+n]=[],u[32767+n][1]=t,u[32767+n][0]=e-1+n;A<<=1,e<<=1}}(),function(){for(var A=0;A<256;A++)v[A]=19595*A,v[A+256|0]=38470*A,v[A+512|0]=7471*A+32768,v[A+768|0]=-11059*A,v[A+1024|0]=-21709*A,v[A+1280|0]=32768*A+8421375,v[A+1536|0]=-27439*A,v[A+1792|0]=-5329*A}(),P(A)}
93
- /**
94
- * @license
95
- * Copyright (c) 2017 Aras Abbasi
96
- *
97
- * Licensed under the MIT License.
98
- * http://opensource.org/licenses/mit-license
99
- */function di(A,e){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function pi(A){function e(A){if(!A)throw Error("assert :P")}function t(A,e,t){for(var r=0;4>r;r++)if(A[e+r]!=t.charCodeAt(r))return!0;return!1}function r(A,e,t,r,n){for(var i=0;i<n;i++)A[e+i]=t[r+i]}function n(A,e,t,r){for(var n=0;n<r;n++)A[e+n]=t}function i(A){return new Int32Array(A)}function s(A,e){for(var t=[],r=0;r<A;r++)t.push(new e);return t}function o(A,e){var t=[];return function A(t,r,n){for(var i=n[r],s=0;s<i&&(t.push(n.length>r+1?[]:new e),!(n.length<r+1));s++)A(t[s],r+1,n)}(t,0,A),t}var a=function(){var A=this;function a(A,e){for(var t=1<<e-1>>>0;A&t;)t>>>=1;return t?(A&t-1)+t:A}function c(A,t,r,n,i){e(!(n%r));do{A[t+(n-=r)]=i}while(0<n)}function l(A,t,r,n,s){if(e(2328>=s),512>=s)var o=i(512);else if(null==(o=i(s)))return 0;return function(A,t,r,n,s,o){var l,h,f=t,d=1<<r,p=i(16),g=i(16);for(e(0!=s),e(null!=n),e(null!=A),e(0<r),h=0;h<s;++h){if(15<n[h])return 0;++p[n[h]]}if(p[0]==s)return 0;for(g[1]=0,l=1;15>l;++l){if(p[l]>1<<l)return 0;g[l+1]=g[l]+p[l]}for(h=0;h<s;++h)l=n[h],0<n[h]&&(o[g[l]++]=h);if(1==g[15])return(n=new u).g=0,n.value=o[0],c(A,f,1,d,n),d;var B,w=-1,m=d-1,b=0,y=1,v=1,C=1<<r;for(h=0,l=1,s=2;l<=r;++l,s<<=1){if(y+=v<<=1,0>(v-=p[l]))return 0;for(;0<p[l];--p[l])(n=new u).g=l,n.value=o[h++],c(A,f+b,s,C,n),b=a(b,l)}for(l=r+1,s=2;15>=l;++l,s<<=1){if(y+=v<<=1,0>(v-=p[l]))return 0;for(;0<p[l];--p[l]){if(n=new u,(b&m)!=w){for(f+=C,B=1<<(w=l)-r;15>w&&!(0>=(B-=p[w]));)++w,B<<=1;d+=C=1<<(B=w-r),A[t+(w=b&m)].g=B+r,A[t+w].value=f-t-w}n.g=l-r,n.value=o[h++],c(A,f+(b>>r),s,C,n),b=a(b,l)}}return y!=2*g[15]-1?0:d}(A,t,r,n,s,o)}function u(){this.value=this.g=0}function h(){this.value=this.g=0}function f(){this.G=s(5,u),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Pt,h)}function d(A,t,r,n){e(null!=A),e(null!=t),e(2147483648>n),A.Ca=254,A.I=0,A.b=-8,A.Ka=0,A.oa=t,A.pa=r,A.Jd=t,A.Yc=r+n,A.Zc=4<=n?r+n-4+1:r,U(A)}function p(A,e){for(var t=0;0<e--;)t|=L(A,128)<<e;return t}function g(A,e){var t=p(A,e);return x(A)?-t:t}function B(A,t,r,n){var i,s=0;for(e(null!=A),e(null!=t),e(4294967288>n),A.Sb=n,A.Ra=0,A.u=0,A.h=0,4<n&&(n=4),i=0;i<n;++i)s+=t[r+i]<<8*i;A.Ra=s,A.bb=n,A.oa=t,A.pa=r}function w(A){for(;8<=A.u&&A.bb<A.Sb;)A.Ra>>>=8,A.Ra+=A.oa[A.pa+A.bb]<<Mt-8>>>0,++A.bb,A.u-=8;C(A)&&(A.h=1,A.u=0)}function m(A,t){if(e(0<=t),!A.h&&t<=Ot){var r=v(A)&Dt[t];return A.u+=t,w(A),r}return A.h=1,A.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function y(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function v(A){return A.Ra>>>(A.u&Mt-1)>>>0}function C(A){return e(A.bb<=A.Sb),A.h||A.bb==A.Sb&&A.u>Mt}function Q(A,e){A.u=e,A.h=C(A)}function F(A){A.u>=Tt&&(e(A.u>=Tt),w(A))}function U(A){e(null!=A&&null!=A.oa),A.pa<A.Zc?(A.I=(A.oa[A.pa++]|A.I<<8)>>>0,A.b+=8):(e(null!=A&&null!=A.oa),A.pa<A.Yc?(A.b+=8,A.I=A.oa[A.pa++]|A.I<<8):A.Ka?A.b=0:(A.I<<=8,A.b+=8,A.Ka=1))}function x(A){return p(A,1)}function L(A,e){var t=A.Ca;0>A.b&&U(A);var r=A.b,n=t*e>>>8,i=(A.I>>>r>n)+0;for(i?(t-=n,A.I-=n+1<<r>>>0):t=n+1,r=t,n=0;256<=r;)n+=8,r>>=8;return r=7^n+Kt[r],A.b-=r,A.Ca=(t<<r)-1,i}function _(A,e,t){A[e+0]=t>>24&255,A[e+1]=t>>16&255,A[e+2]=t>>8&255,A[e+3]=255&t}function E(A,e){return A[e+0]|A[e+1]<<8}function k(A,e){return E(A,e)|A[e+2]<<16}function I(A,e){return E(A,e)|E(A,e+2)<<16}function S(A,t){var r=1<<t;return e(null!=A),e(0<t),A.X=i(r),null==A.X?0:(A.Mb=32-t,A.Xa=t,1)}function j(A,t){e(null!=A),e(null!=t),e(A.Xa==t.Xa),r(t.X,0,A.X,0,1<<t.Xa)}function H(){this.X=[],this.Xa=this.Mb=0}function N(A,t,r,n){e(null!=r),e(null!=n);var i=r[0],s=n[0];return 0==i&&(i=(A*s+t/2)/t),0==s&&(s=(t*i+A/2)/A),0>=i||0>=s?0:(r[0]=i,n[0]=s,1)}function P(A,e){return A+(1<<e)-1>>>e}function D(A,e){return((4278255360&A)+(4278255360&e)>>>0&4278255360)+((16711935&A)+(16711935&e)>>>0&16711935)>>>0}function O(e,t){A[t]=function(t,r,n,i,s,o,a){var c;for(c=0;c<s;++c){var l=A[e](o[a+c-1],n,i+c);o[a+c]=D(t[r+c],l)}}}function M(){this.ud=this.hd=this.jd=0}function T(A,e){return((4278124286&(A^e))>>>1)+(A&e)>>>0}function K(A){return 0<=A&&256>A?A:0>A?0:255<A?255:void 0}function R(A,e){return K(A+(A-e+.5>>1))}function V(A,e,t){return Math.abs(e-t)-Math.abs(A-t)}function G(A,e,t,r,n,i,s){for(r=i[s-1],t=0;t<n;++t)i[s+t]=r=D(A[e+t],r)}function q(A,e,t,r,n){var i;for(i=0;i<t;++i){var s=A[e+i],o=s>>8&255,a=16711935&(a=(a=16711935&s)+((o<<16)+o));r[n+i]=(4278255360&s)+a>>>0}}function z(A,e){e.jd=255&A,e.hd=A>>8&255,e.ud=A>>16&255}function W(A,e,t,r,n,i){var s;for(s=0;s<r;++s){var o=e[t+s],a=o>>>8,c=o,l=255&(l=(l=o>>>16)+((A.jd<<24>>24)*(a<<24>>24)>>>5));c=255&(c=(c+=(A.hd<<24>>24)*(a<<24>>24)>>>5)+((A.ud<<24>>24)*(l<<24>>24)>>>5)),n[i+s]=(4278255360&o)+(l<<16)+c}}function J(e,t,r,n,i){A[t]=function(A,e,t,r,s,o,a,c,l){for(r=a;r<c;++r)for(a=0;a<l;++a)s[o++]=i(t[n(A[e++])])},A[e]=function(e,t,s,o,a,c,l){var u=8>>e.b,h=e.Ea,f=e.K[0],d=e.w;if(8>u)for(e=(1<<e.b)-1,d=(1<<u)-1;t<s;++t){var p,g=0;for(p=0;p<h;++p)p&e||(g=n(o[a++])),c[l++]=i(f[g&d]),g>>=u}else A["VP8LMapColor"+r](o,a,f,d,c,l,t,s,h)}}function X(A,e,t,r,n){for(t=e+t;e<t;){var i=A[e++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=255&i}}function Y(A,e,t,r,n){for(t=e+t;e<t;){var i=A[e++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=255&i,r[n++]=i>>24&255}}function Z(A,e,t,r,n){for(t=e+t;e<t;){var i=(s=A[e++])>>16&240|s>>12&15,s=240&s|s>>28&15;r[n++]=i,r[n++]=s}}function $(A,e,t,r,n){for(t=e+t;e<t;){var i=(s=A[e++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;r[n++]=i,r[n++]=s}}function AA(A,e,t,r,n){for(t=e+t;e<t;){var i=A[e++];r[n++]=255&i,r[n++]=i>>8&255,r[n++]=i>>16&255}}function eA(A,e,t,n,i,s){if(0==s)for(t=e+t;e<t;)_(n,((s=A[e++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),i+=32;else r(n,i,A,e,t)}function tA(e,t){A[t][0]=A[e+"0"],A[t][1]=A[e+"1"],A[t][2]=A[e+"2"],A[t][3]=A[e+"3"],A[t][4]=A[e+"4"],A[t][5]=A[e+"5"],A[t][6]=A[e+"6"],A[t][7]=A[e+"7"],A[t][8]=A[e+"8"],A[t][9]=A[e+"9"],A[t][10]=A[e+"10"],A[t][11]=A[e+"11"],A[t][12]=A[e+"12"],A[t][13]=A[e+"13"],A[t][14]=A[e+"0"],A[t][15]=A[e+"0"]}function rA(A){return A==Tr||A==Kr||A==Rr||A==Vr}function nA(){this.eb=[],this.size=this.A=this.fb=0}function iA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function sA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nA,this.f.kb=new iA,this.sd=null}function oA(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function aA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function cA(A){return alert("todo:WebPSamplerProcessPlane"),A.T}function lA(A,e){var t=A.T,n=e.ba.f.RGBA,i=n.eb,s=n.fb+A.ka*n.A,o=gn[e.ba.S],a=A.y,c=A.O,l=A.f,u=A.N,h=A.ea,f=A.W,d=e.cc,p=e.dc,g=e.Mc,B=e.Nc,w=A.ka,m=A.ka+A.T,b=A.U,y=b+1>>1;for(0==w?o(a,c,null,null,l,u,h,f,l,u,h,f,i,s,null,null,b):(o(e.ec,e.fc,a,c,d,p,g,B,l,u,h,f,i,s-n.A,i,s,b),++t);w+2<m;w+=2)d=l,p=u,g=h,B=f,u+=A.Rc,f+=A.Rc,s+=2*n.A,o(a,(c+=2*A.fa)-A.fa,a,c,d,p,g,B,l,u,h,f,i,s-n.A,i,s,b);return c+=A.fa,A.j+m<A.o?(r(e.ec,e.fc,a,c,b),r(e.cc,e.dc,l,u,y),r(e.Mc,e.Nc,h,f,y),t--):1&m||o(a,c,null,null,l,u,h,f,l,u,h,f,i,s+n.A,null,null,b),t}function uA(A,t,r){var n=A.F,i=[A.J];if(null!=n){var s=A.U,o=t.ba.S,a=o==Dr||o==Rr;t=t.ba.f.RGBA;var c=[0],l=A.ka;c[0]=A.T,A.Kb&&(0==l?--c[0]:(--l,i[0]-=A.width),A.j+A.ka+A.T==A.o&&(c[0]=A.o-A.j-l));var u=t.eb;l=t.fb+l*t.A,A=Cr(n,i[0],A.width,s,c,u,l+(a?0:3),t.A),e(r==c),A&&rA(o)&&yr(u,l,a,s,c,t.A)}return 0}function hA(A){var e=A.ma,t=e.ba.S,r=11>t,n=t==Hr||t==Pr||t==Dr||t==Or||12==t||rA(t);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!jt(e.Oa,A,n?11:12))return 0;if(n&&rA(t)&&Bt(),A.da)alert("todo:use_scaling");else{if(r){if(e.Ib=cA,A.Kb){if(t=A.U+1>>1,e.memory=i(A.U+2*t),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+A.U,e.Mc=e.cc,e.Nc=e.dc+t,e.Ib=lA,Bt()}}else alert("todo:EmitYUV");n&&(e.Jb=uA,r&&pt())}if(r&&!_n){for(A=0;256>A;++A)En[A]=89858*(A-128)+Fn>>Qn,Sn[A]=-22014*(A-128)+Fn,In[A]=-45773*(A-128),kn[A]=113618*(A-128)+Fn>>Qn;for(A=Un;A<xn;++A)e=76283*(A-16)+Fn>>Qn,jn[A-Un]=GA(e,255),Hn[A-Un]=GA(e+8>>4,15);_n=1}return 1}function fA(A){var t=A.ma,r=A.U,n=A.T;return e(!(1&A.ka)),0>=r||0>=n?0:(r=t.Ib(A,t),null!=t.Jb&&t.Jb(A,t,r),t.Dc+=r,1)}function dA(A){A.ma.memory=null}function pA(A,e,t,r){return 47!=m(A,8)?0:(e[0]=m(A,14)+1,t[0]=m(A,14)+1,r[0]=m(A,1),0!=m(A,3)?0:!A.h)}function gA(A,e){if(4>A)return A+1;var t=A-2>>1;return(2+(1&A)<<t)+m(e,t)+1}function BA(A,e){return 120<e?e-120:1<=(t=((t=Xr[e-1])>>4)*A+(8-(15&t)))?t:1;var t}function wA(A,e,t){var r=v(t),n=A[e+=255&r].g-8;return 0<n&&(Q(t,t.u+8),r=v(t),e+=A[e].value,e+=r&(1<<n)-1),Q(t,t.u+A[e].g),A[e].value}function mA(A,t,r){return r.g+=A.g,r.value+=A.value<<t>>>0,e(8>=r.g),A.g}function bA(A,t,r){var n=A.xc;return e((t=0==n?0:A.vc[A.md*(r>>n)+(t>>n)])<A.Wb),A.Ya[t]}function yA(A,t,n,i){var s=A.ab,o=A.c*t,a=A.C;t=a+t;var c=n,l=i;for(i=A.Ta,n=A.Ua;0<s--;){var u=A.gc[s],h=a,f=t,d=c,p=l,g=(l=i,c=n,u.Ea);switch(e(h<f),e(f<=u.nc),u.hc){case 2:Gt(d,p,(f-h)*g,l,c);break;case 0:var B=h,w=f,m=l,b=c,y=(U=u).Ea;0==B&&(Rt(d,p,null,null,1,m,b),G(d,p+1,0,0,y-1,m,b+1),p+=y,b+=y,++B);for(var v=1<<U.b,C=v-1,Q=P(y,U.b),F=U.K,U=U.w+(B>>U.b)*Q;B<w;){var x=F,L=U,_=1;for(Vt(d,p,m,b-y,1,m,b);_<y;){var E=(_&~C)+v;E>y&&(E=y),(0,Xt[x[L++]>>8&15])(d,p+ +_,m,b+_-y,E-_,m,b+_),_=E}p+=y,b+=y,++B&C||(U+=Q)}f!=u.nc&&r(l,c-g,l,c+(f-h-1)*g,g);break;case 1:for(g=d,w=p,y=(d=u.Ea)-(b=d&~(m=(p=1<<u.b)-1)),B=P(d,u.b),v=u.K,u=u.w+(h>>u.b)*B;h<f;){for(C=v,Q=u,F=new M,U=w+b,x=w+d;w<U;)z(C[Q++],F),Yt(F,g,w,p,l,c),w+=p,c+=p;w<x&&(z(C[Q++],F),Yt(F,g,w,y,l,c),w+=y,c+=y),++h&m||(u+=B)}break;case 3:if(d==l&&p==c&&0<u.b){for(w=l,d=g=c+(f-h)*g-(b=(f-h)*P(u.Ea,u.b)),p=l,m=c,B=[],b=(y=b)-1;0<=b;--b)B[b]=p[m+b];for(b=y-1;0<=b;--b)w[d+b]=B[b];qt(u,h,f,l,g,l,c)}else qt(u,h,f,d,p,l,c)}c=i,l=n}l!=n&&r(i,n,c,l,o)}function vA(A,t){var r=A.V,n=A.Ba+A.c*A.C,i=t-A.C;if(e(t<=A.l.o),e(16>=i),0<i){var s=A.l,o=A.Ta,a=A.Ua,c=s.width;if(yA(A,i,r,n),i=a=[a],e((r=A.C)<(n=t)),e(s.v<s.va),n>s.o&&(n=s.o),r<s.j){var l=s.j-r;r=s.j,i[0]+=l*c}if(r>=n?r=0:(i[0]+=4*s.v,s.ka=r-s.j,s.U=s.va-s.v,s.T=n-r,r=1),r){if(a=a[0],11>(r=A.ca).S){var u=r.f.RGBA,h=(n=r.S,i=s.U,s=s.T,l=u.eb,u.A),f=s;for(u=u.fb+A.Ma*u.A;0<f--;){var d=o,p=a,g=i,B=l,w=u;switch(n){case jr:Zt(d,p,g,B,w);break;case Hr:$t(d,p,g,B,w);break;case Tr:$t(d,p,g,B,w),yr(B,w,0,g,1,0);break;case Nr:tr(d,p,g,B,w);break;case Pr:eA(d,p,g,B,w,1);break;case Kr:eA(d,p,g,B,w,1),yr(B,w,0,g,1,0);break;case Dr:eA(d,p,g,B,w,0);break;case Rr:eA(d,p,g,B,w,0),yr(B,w,1,g,1,0);break;case Or:Ar(d,p,g,B,w);break;case Vr:Ar(d,p,g,B,w),vr(B,w,g,1,0);break;case Mr:er(d,p,g,B,w);break;default:e(0)}a+=c,u+=h}A.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");e(A.Ma<=r.height)}}A.C=t,e(A.C<=A.i)}function CA(A){var e;if(0<A.ua)return 0;for(e=0;e<A.Wb;++e){var t=A.Ya[e].G,r=A.Ya[e].H;if(0<t[1][r[1]+0].g||0<t[2][r[2]+0].g||0<t[3][r[3]+0].g)return 0}return 1}function QA(A,t,r,n,i,s){if(0!=A.Z){var o=A.qd,a=A.rd;for(e(null!=pn[A.Z]);t<r;++t)pn[A.Z](o,a,n,i,n,i,s),o=n,a=i,i+=s;A.qd=o,A.rd=a}}function FA(A,t){var r=A.l.ma,n=0==r.Z||1==r.Z?A.l.j:A.C;if(n=A.C<n?n:A.C,e(t<=A.l.o),t>n){var i=A.l.width,s=r.ca,o=r.tb+i*n,a=A.V,c=A.Ba+A.c*n,l=A.gc;e(1==A.ab),e(3==l[0].hc),Wt(l[0],n,t,a,c,s,o),QA(r,n,t,s,o,i)}A.C=A.Ma=t}function UA(A,t,r,n,i,s,o){var a=A.$/n,c=A.$%n,l=A.m,u=A.s,h=r+A.$,f=h;i=r+n*i;var d=r+n*s,p=280+u.ua,g=A.Pb?a:16777216,B=0<u.ua?u.Wa:null,w=u.wc,m=h<d?bA(u,c,a):null;e(A.C<s),e(d<=i);var b=!1;A:for(;;){for(;b||h<d;){var y=0;if(a>=g){var U=h-r;e((g=A).Pb),g.wd=g.m,g.xd=U,0<g.s.ua&&j(g.s.Wa,g.s.vb),g=a+Zr}if(c&w||(m=bA(u,c,a)),e(null!=m),m.Qb&&(t[h]=m.qb,b=!0),!b)if(F(l),m.jc){y=l,U=t;var x=h,L=m.pd[v(y)&Pt-1];e(m.jc),256>L.g?(Q(y,y.u+L.g),U[x]=L.value,y=0):(Q(y,y.u+L.g-256),e(256<=L.value),y=L.value),0==y&&(b=!0)}else y=wA(m.G[0],m.H[0],l);if(l.h)break;if(b||256>y){if(!b)if(m.nd)t[h]=(m.qb|y<<8)>>>0;else{if(F(l),b=wA(m.G[1],m.H[1],l),F(l),U=wA(m.G[2],m.H[2],l),x=wA(m.G[3],m.H[3],l),l.h)break;t[h]=(x<<24|b<<16|y<<8|U)>>>0}if(b=!1,++h,++c>=n&&(c=0,++a,null!=o&&a<=s&&!(a%16)&&o(A,a),null!=B))for(;f<h;)y=t[f++],B.X[(506832829*y&4294967295)>>>B.Mb]=y}else if(280>y){if(y=gA(y-256,l),U=wA(m.G[4],m.H[4],l),F(l),U=BA(n,U=gA(U,l)),l.h)break;if(h-r<U||i-h<y)break A;for(x=0;x<y;++x)t[h+x]=t[h+x-U];for(h+=y,c+=y;c>=n;)c-=n,++a,null!=o&&a<=s&&!(a%16)&&o(A,a);if(e(h<=i),c&w&&(m=bA(u,c,a)),null!=B)for(;f<h;)y=t[f++],B.X[(506832829*y&4294967295)>>>B.Mb]=y}else{if(!(y<p))break A;for(b=y-280,e(null!=B);f<h;)y=t[f++],B.X[(506832829*y&4294967295)>>>B.Mb]=y;y=h,e(!(b>>>(U=B).Xa)),t[y]=U.X[b],b=!0}b||e(l.h==C(l))}if(A.Pb&&l.h&&h<i)e(A.m.h),A.a=5,A.m=A.wd,A.$=A.xd,0<A.s.ua&&j(A.s.vb,A.s.Wa);else{if(l.h)break A;null!=o&&o(A,a>s?s:a),A.a=0,A.$=h-r}return 1}return A.a=3,0}function xA(A){e(null!=A),A.vc=null,A.yc=null,A.Ya=null;var t=A.Wa;null!=t&&(t.X=null),A.vb=null,e(null!=A)}function LA(){var e=new it;return null==e?null:(e.a=0,e.xb=dn,tA("Predictor","VP8LPredictors"),tA("Predictor","VP8LPredictors_C"),tA("PredictorAdd","VP8LPredictorsAdd"),tA("PredictorAdd","VP8LPredictorsAdd_C"),Gt=q,Yt=W,Zt=X,$t=Y,Ar=Z,er=$,tr=AA,A.VP8LMapColor32b=zt,A.VP8LMapColor8b=Jt,e)}function _A(A,t,r,o,a){var c=1,h=[A],d=[t],p=o.m,g=o.s,B=null,w=0;A:for(;;){if(r)for(;c&&m(p,1);){var b=h,y=d,C=o,U=1,x=C.m,L=C.gc[C.ab],_=m(x,2);if(C.Oc&1<<_)c=0;else{switch(C.Oc|=1<<_,L.hc=_,L.Ea=b[0],L.nc=y[0],L.K=[null],++C.ab,e(4>=C.ab),_){case 0:case 1:L.b=m(x,3)+2,U=_A(P(L.Ea,L.b),P(L.nc,L.b),0,C,L.K),L.K=L.K[0];break;case 3:var E,k=m(x,8)+1,I=16<k?0:4<k?1:2<k?2:3;if(b[0]=P(L.Ea,I),L.b=I,E=U=_A(k,1,0,C,L.K)){var j,H=k,N=L,O=1<<(8>>N.b),M=i(O);if(null==M)E=0;else{var T=N.K[0],K=N.w;for(M[0]=N.K[0][0],j=1;j<1*H;++j)M[j]=D(T[K+j],M[j-1]);for(;j<4*O;++j)M[j]=0;N.K[0]=null,N.K[0]=M,E=1}}U=E;break;case 2:break;default:e(0)}c=U}}if(h=h[0],d=d[0],c&&m(p,1)&&!(c=1<=(w=m(p,4))&&11>=w)){o.a=3;break A}var R;if(R=c)e:{var V,G,q,z=o,W=h,J=d,X=w,Y=r,Z=z.m,$=z.s,AA=[null],eA=1,tA=0,rA=Yr[X];t:for(;;){if(Y&&m(Z,1)){var nA=m(Z,3)+2,iA=P(W,nA),sA=P(J,nA),oA=iA*sA;if(!_A(iA,sA,0,z,AA))break t;for(AA=AA[0],$.xc=nA,V=0;V<oA;++V){var aA=AA[V]>>8&65535;AA[V]=aA,aA>=eA&&(eA=aA+1)}}if(Z.h)break t;for(G=0;5>G;++G){var cA=zr[G];!G&&0<X&&(cA+=1<<X),tA<cA&&(tA=cA)}var lA=s(eA*rA,u),uA=eA,hA=s(uA,f);if(null==hA)var fA=null;else e(65536>=uA),fA=hA;var dA=i(tA);if(null==fA||null==dA||null==lA){z.a=1;break t}var pA=lA;for(V=q=0;V<eA;++V){var gA=fA[V],BA=gA.G,wA=gA.H,bA=0,yA=1,vA=0;for(G=0;5>G;++G){cA=zr[G],BA[G]=pA,wA[G]=q,!G&&0<X&&(cA+=1<<X);r:{var CA,QA=cA,FA=z,LA=dA,EA=pA,kA=q,IA=0,SA=FA.m,jA=m(SA,1);if(n(LA,0,0,QA),jA){var HA=m(SA,1)+1,NA=m(SA,1),PA=m(SA,0==NA?1:8);LA[PA]=1,2==HA&&(LA[PA=m(SA,8)]=1);var DA=1}else{var OA=i(19),MA=m(SA,4)+4;if(19<MA){FA.a=3;var TA=0;break r}for(CA=0;CA<MA;++CA)OA[Jr[CA]]=m(SA,3);var KA=void 0,RA=void 0,VA=FA,GA=OA,qA=QA,zA=LA,WA=0,JA=VA.m,XA=8,YA=s(128,u);n:for(;l(YA,0,7,GA,19);){if(m(JA,1)){var ZA=2+2*m(JA,3);if((KA=2+m(JA,ZA))>qA)break n}else KA=qA;for(RA=0;RA<qA&&KA--;){F(JA);var $A=YA[0+(127&v(JA))];Q(JA,JA.u+$A.g);var Ae=$A.value;if(16>Ae)zA[RA++]=Ae,0!=Ae&&(XA=Ae);else{var ee=16==Ae,te=Ae-16,re=qr[te],ne=m(JA,Gr[te])+re;if(RA+ne>qA)break n;for(var ie=ee?XA:0;0<ne--;)zA[RA++]=ie}}WA=1;break n}WA||(VA.a=3),DA=WA}(DA=DA&&!SA.h)&&(IA=l(EA,kA,8,LA,QA)),DA&&0!=IA?TA=IA:(FA.a=3,TA=0)}if(0==TA)break t;if(yA&&1==Wr[G]&&(yA=0==pA[q].g),bA+=pA[q].g,q+=TA,3>=G){var se,oe=dA[0];for(se=1;se<cA;++se)dA[se]>oe&&(oe=dA[se]);vA+=oe}}if(gA.nd=yA,gA.Qb=0,yA&&(gA.qb=(BA[3][wA[3]+0].value<<24|BA[1][wA[1]+0].value<<16|BA[2][wA[2]+0].value)>>>0,0==bA&&256>BA[0][wA[0]+0].value&&(gA.Qb=1,gA.qb+=BA[0][wA[0]+0].value<<8)),gA.jc=!gA.Qb&&6>vA,gA.jc){var ae,ce=gA;for(ae=0;ae<Pt;++ae){var le=ae,ue=ce.pd[le],he=ce.G[0][ce.H[0]+le];256<=he.value?(ue.g=he.g+256,ue.value=he.value):(ue.g=0,ue.value=0,le>>=mA(he,8,ue),le>>=mA(ce.G[1][ce.H[1]+le],16,ue),le>>=mA(ce.G[2][ce.H[2]+le],0,ue),mA(ce.G[3][ce.H[3]+le],24,ue))}}}$.vc=AA,$.Wb=eA,$.Ya=fA,$.yc=lA,R=1;break e}R=0}if(!(c=R)){o.a=3;break A}if(0<w){if(g.ua=1<<w,!S(g.Wa,w)){o.a=1,c=0;break A}}else g.ua=0;var fe=o,de=h,pe=d,ge=fe.s,Be=ge.xc;if(fe.c=de,fe.i=pe,ge.md=P(de,Be),ge.wc=0==Be?-1:(1<<Be)-1,r){o.xb=fn;break A}if(null==(B=i(h*d))){o.a=1,c=0;break A}c=(c=UA(o,B,0,h,d,d,null))&&!p.h;break A}return c?(null!=a?a[0]=B:(e(null==B),e(r)),o.$=0,r||xA(g)):xA(g),c}function EA(A,t){var r=A.c*A.i,n=r+t+16*t;return e(A.c<=t),A.V=i(n),null==A.V?(A.Ta=null,A.Ua=0,A.a=1,0):(A.Ta=A.V,A.Ua=A.Ba+r+t,1)}function kA(A,t){var r=A.C,n=t-r,i=A.V,s=A.Ba+A.c*r;for(e(t<=A.l.o);0<n;){var o=16<n?16:n,a=A.l.ma,c=A.l.width,l=c*o,u=a.ca,h=a.tb+c*r,f=A.Ta,d=A.Ua;yA(A,o,i,s),Qr(f,d,u,h,l),QA(a,r,r+o,u,h,c),n-=o,i+=o*A.c,r+=o}e(r==t),A.C=A.Ma=t}function IA(){this.ub=this.yd=this.td=this.Rb=0}function SA(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function jA(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function HA(){var A;this.Yb=(function A(e,t,r){for(var n=r[t],i=0;i<n&&(e.push(r.length>t+1?[]:0),!(r.length<t+1));i++)A(e[i],t+1,r)}(A=[],0,[3,11]),A)}function NA(){this.jb=i(3),this.Wc=o([4,8],HA),this.Xc=o([4,17],HA)}function PA(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function DA(){this.ld=this.La=this.dd=this.tc=0}function OA(){this.Na=this.la=0}function MA(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function TA(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function KA(){this.uc=this.M=this.Nb=0,this.wa=Array(new DA),this.Y=0,this.ya=Array(new TA),this.aa=0,this.l=new qA}function RA(){this.y=i(16),this.f=i(8),this.ea=i(8)}function VA(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new IA,this.Kc=new SA,this.ed=new PA,this.Qa=new jA,this.Ic=this.$c=this.Aa=0,this.D=new KA,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,b),this.ia=0,this.pb=s(4,MA),this.Pa=new NA,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new RA),this.Hd=0,this.rb=Array(new OA),this.sb=0,this.wa=Array(new DA),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new TA),this.L=this.aa=0,this.gd=o([4,2],DA),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function GA(A,e){return 0>A?0:A>e?e:A}function qA(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function zA(){var A=new VA;return null!=A&&(A.a=0,A.sc="OK",A.cb=0,A.Xb=0,en||(en=YA)),A}function WA(A,e,t){return 0==A.a&&(A.a=e,A.sc=t,A.cb=0),0}function JA(A,e,t){return 3<=t&&157==A[e+0]&&1==A[e+1]&&42==A[e+2]}function XA(A,t){if(null==A)return 0;if(A.a=0,A.sc="OK",null==t)return WA(A,2,"null VP8Io passed to VP8GetHeaders()");var r=t.data,i=t.w,s=t.ha;if(4>s)return WA(A,7,"Truncated header.");var o=r[i+0]|r[i+1]<<8|r[i+2]<<16,a=A.Od;if(a.Rb=!(1&o),a.td=o>>1&7,a.yd=o>>4&1,a.ub=o>>5,3<a.td)return WA(A,3,"Incorrect keyframe parameters.");if(!a.yd)return WA(A,4,"Frame not displayable.");i+=3,s-=3;var c=A.Kc;if(a.Rb){if(7>s)return WA(A,7,"cannot parse picture header");if(!JA(r,i,s))return WA(A,3,"Bad code word");c.c=16383&(r[i+4]<<8|r[i+3]),c.Td=r[i+4]>>6,c.i=16383&(r[i+6]<<8|r[i+5]),c.Ud=r[i+6]>>6,i+=7,s-=7,A.za=c.c+15>>4,A.Ub=c.i+15>>4,t.width=c.c,t.height=c.i,t.Da=0,t.j=0,t.v=0,t.va=t.width,t.o=t.height,t.da=0,t.ib=t.width,t.hb=t.height,t.U=t.width,t.T=t.height,n((o=A.Pa).jb,0,255,o.jb.length),e(null!=(o=A.Qa)),o.Cb=0,o.Bb=0,o.Fb=1,n(o.Zb,0,0,o.Zb.length),n(o.Lb,0,0,o.Lb)}if(a.ub>s)return WA(A,7,"bad partition length");d(o=A.m,r,i,a.ub),i+=a.ub,s-=a.ub,a.Rb&&(c.Ld=x(o),c.Kd=x(o)),c=A.Qa;var l,u=A.Pa;if(e(null!=o),e(null!=c),c.Cb=x(o),c.Cb){if(c.Bb=x(o),x(o)){for(c.Fb=x(o),l=0;4>l;++l)c.Zb[l]=x(o)?g(o,7):0;for(l=0;4>l;++l)c.Lb[l]=x(o)?g(o,6):0}if(c.Bb)for(l=0;3>l;++l)u.jb[l]=x(o)?p(o,8):255}else c.Bb=0;if(o.Ka)return WA(A,3,"cannot parse segment header");if((c=A.ed).zd=x(o),c.Tb=p(o,6),c.wb=p(o,3),c.Pc=x(o),c.Pc&&x(o)){for(u=0;4>u;++u)x(o)&&(c.vd[u]=g(o,6));for(u=0;4>u;++u)x(o)&&(c.od[u]=g(o,6))}if(A.L=0==c.Tb?0:c.zd?1:2,o.Ka)return WA(A,3,"cannot parse filter header");var h=s;if(s=l=i,i=l+h,c=h,A.Xb=(1<<p(A.m,2))-1,h<3*(u=A.Xb))r=7;else{for(l+=3*u,c-=3*u,h=0;h<u;++h){var f=r[s+0]|r[s+1]<<8|r[s+2]<<16;f>c&&(f=c),d(A.Jc[+h],r,l,f),l+=f,c-=f,s+=3}d(A.Jc[+u],r,l,c),r=l<i?0:5}if(0!=r)return WA(A,r,"cannot parse partitions");for(r=p(l=A.m,7),s=x(l)?g(l,4):0,i=x(l)?g(l,4):0,c=x(l)?g(l,4):0,u=x(l)?g(l,4):0,l=x(l)?g(l,4):0,h=A.Qa,f=0;4>f;++f){if(h.Cb){var B=h.Zb[f];h.Fb||(B+=r)}else{if(0<f){A.pb[f]=A.pb[0];continue}B=r}var w=A.pb[f];w.Sc[0]=$r[GA(B+s,127)],w.Sc[1]=An[GA(B+0,127)],w.Eb[0]=2*$r[GA(B+i,127)],w.Eb[1]=101581*An[GA(B+c,127)]>>16,8>w.Eb[1]&&(w.Eb[1]=8),w.Qc[0]=$r[GA(B+u,117)],w.Qc[1]=An[GA(B+l,127)],w.lc=B+l}if(!a.Rb)return WA(A,4,"Not a key frame.");for(x(o),a=A.Pa,r=0;4>r;++r){for(s=0;8>s;++s)for(i=0;3>i;++i)for(c=0;11>c;++c)u=L(o,an[r][s][i][c])?p(o,8):sn[r][s][i][c],a.Wc[r][s].Yb[i][c]=u;for(s=0;17>s;++s)a.Xc[r][s]=a.Wc[r][cn[s]]}return A.kc=x(o),A.kc&&(A.Bd=p(o,8)),A.cb=1}function YA(A,e,t,r,n,i,s){var o=e[n].Yb[t];for(t=0;16>n;++n){if(!L(A,o[t+0]))return n;for(;!L(A,o[t+1]);)if(o=e[++n].Yb[0],t=0,16==n)return 16;var a=e[n+1].Yb;if(L(A,o[t+2])){var c=A,l=0;if(L(c,(h=o)[(u=t)+3]))if(L(c,h[u+6])){for(o=0,u=2*(l=L(c,h[u+8]))+(h=L(c,h[u+9+l])),l=0,h=tn[u];h[o];++o)l+=l+L(c,h[o]);l+=3+(8<<u)}else L(c,h[u+7])?(l=7+2*L(c,165),l+=L(c,145)):l=5+L(c,159);else l=L(c,h[u+4])?3+L(c,h[u+5]):2;o=a[2]}else l=1,o=a[1];a=s+rn[n],0>(c=A).b&&U(c);var u,h=c.b,f=(u=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=f,c.Ca|=1,c.I-=(u+1&f)<<h,i[a]=((l^f)-f)*r[(0<n)+0]}return 16}function ZA(A){var e=A.rb[A.sb-1];e.la=0,e.Na=0,n(A.zc,0,0,A.zc.length),A.ja=0}function $A(A,e,t,r,n){n=A[e+t+32*r]+(n>>3),A[e+t+32*r]=-256&n?0>n?0:255:n}function Ae(A,e,t,r,n,i){$A(A,e,0,t,r+n),$A(A,e,1,t,r+i),$A(A,e,2,t,r-i),$A(A,e,3,t,r-n)}function ee(A){return(20091*A>>16)+A}function te(A,e,t,r){var n,s=0,o=i(16);for(n=0;4>n;++n){var a=A[e+0]+A[e+8],c=A[e+0]-A[e+8],l=(35468*A[e+4]>>16)-ee(A[e+12]),u=ee(A[e+4])+(35468*A[e+12]>>16);o[s+0]=a+u,o[s+1]=c+l,o[s+2]=c-l,o[s+3]=a-u,s+=4,e++}for(n=s=0;4>n;++n)a=(A=o[s+0]+4)+o[s+8],c=A-o[s+8],l=(35468*o[s+4]>>16)-ee(o[s+12]),$A(t,r,0,0,a+(u=ee(o[s+4])+(35468*o[s+12]>>16))),$A(t,r,1,0,c+l),$A(t,r,2,0,c-l),$A(t,r,3,0,a-u),s++,r+=32}function re(A,e,t,r){var n=A[e+0]+4,i=35468*A[e+4]>>16,s=ee(A[e+4]),o=35468*A[e+1]>>16;Ae(t,r,0,n+s,A=ee(A[e+1]),o),Ae(t,r,1,n+i,A,o),Ae(t,r,2,n-i,A,o),Ae(t,r,3,n-s,A,o)}function ne(A,e,t,r,n){te(A,e,t,r),n&&te(A,e+16,t,r+4)}function ie(A,e,t,r){nr(A,e+0,t,r,1),nr(A,e+32,t,r+128,1)}function se(A,e,t,r){var n;for(A=A[e+0]+4,n=0;4>n;++n)for(e=0;4>e;++e)$A(t,r,e,n,A)}function oe(A,e,t,r){A[e+0]&&or(A,e+0,t,r),A[e+16]&&or(A,e+16,t,r+4),A[e+32]&&or(A,e+32,t,r+128),A[e+48]&&or(A,e+48,t,r+128+4)}function ae(A,e,t,r){var n,s=i(16);for(n=0;4>n;++n){var o=A[e+0+n]+A[e+12+n],a=A[e+4+n]+A[e+8+n],c=A[e+4+n]-A[e+8+n],l=A[e+0+n]-A[e+12+n];s[0+n]=o+a,s[8+n]=o-a,s[4+n]=l+c,s[12+n]=l-c}for(n=0;4>n;++n)o=(A=s[0+4*n]+3)+s[3+4*n],a=s[1+4*n]+s[2+4*n],c=s[1+4*n]-s[2+4*n],l=A-s[3+4*n],t[r+0]=o+a>>3,t[r+16]=l+c>>3,t[r+32]=o-a>>3,t[r+48]=l-c>>3,r+=64}function ce(A,e,t){var r,n=e-32,i=Ir,s=255-A[n-1];for(r=0;r<t;++r){var o,a=i,c=s+A[e-1];for(o=0;o<t;++o)A[e+o]=a[c+A[n+o]];e+=32}}function le(A,e){ce(A,e,4)}function ue(A,e){ce(A,e,8)}function he(A,e){ce(A,e,16)}function fe(A,e){var t;for(t=0;16>t;++t)r(A,e+32*t,A,e-32,16)}function de(A,e){var t;for(t=16;0<t;--t)n(A,e,A[e-1],16),e+=32}function pe(A,e,t){var r;for(r=0;16>r;++r)n(e,t+32*r,A,16)}function ge(A,e){var t,r=16;for(t=0;16>t;++t)r+=A[e-1+32*t]+A[e+t-32];pe(r>>5,A,e)}function Be(A,e){var t,r=8;for(t=0;16>t;++t)r+=A[e-1+32*t];pe(r>>4,A,e)}function we(A,e){var t,r=8;for(t=0;16>t;++t)r+=A[e+t-32];pe(r>>4,A,e)}function me(A,e){pe(128,A,e)}function be(A,e,t){return A+2*e+t+2>>2}function ye(A,e){var t,n=e-32;for(n=new Uint8Array([be(A[n-1],A[n+0],A[n+1]),be(A[n+0],A[n+1],A[n+2]),be(A[n+1],A[n+2],A[n+3]),be(A[n+2],A[n+3],A[n+4])]),t=0;4>t;++t)r(A,e+32*t,n,0,n.length)}function ve(A,e){var t=A[e-1],r=A[e-1+32],n=A[e-1+64],i=A[e-1+96];_(A,e+0,16843009*be(A[e-1-32],t,r)),_(A,e+32,16843009*be(t,r,n)),_(A,e+64,16843009*be(r,n,i)),_(A,e+96,16843009*be(n,i,i))}function Ce(A,e){var t,r=4;for(t=0;4>t;++t)r+=A[e+t-32]+A[e-1+32*t];for(r>>=3,t=0;4>t;++t)n(A,e+32*t,r,4)}function Qe(A,e){var t=A[e-1+0],r=A[e-1+32],n=A[e-1+64],i=A[e-1-32],s=A[e+0-32],o=A[e+1-32],a=A[e+2-32],c=A[e+3-32];A[e+0+96]=be(r,n,A[e-1+96]),A[e+1+96]=A[e+0+64]=be(t,r,n),A[e+2+96]=A[e+1+64]=A[e+0+32]=be(i,t,r),A[e+3+96]=A[e+2+64]=A[e+1+32]=A[e+0+0]=be(s,i,t),A[e+3+64]=A[e+2+32]=A[e+1+0]=be(o,s,i),A[e+3+32]=A[e+2+0]=be(a,o,s),A[e+3+0]=be(c,a,o)}function Fe(A,e){var t=A[e+1-32],r=A[e+2-32],n=A[e+3-32],i=A[e+4-32],s=A[e+5-32],o=A[e+6-32],a=A[e+7-32];A[e+0+0]=be(A[e+0-32],t,r),A[e+1+0]=A[e+0+32]=be(t,r,n),A[e+2+0]=A[e+1+32]=A[e+0+64]=be(r,n,i),A[e+3+0]=A[e+2+32]=A[e+1+64]=A[e+0+96]=be(n,i,s),A[e+3+32]=A[e+2+64]=A[e+1+96]=be(i,s,o),A[e+3+64]=A[e+2+96]=be(s,o,a),A[e+3+96]=be(o,a,a)}function Ue(A,e){var t=A[e-1+0],r=A[e-1+32],n=A[e-1+64],i=A[e-1-32],s=A[e+0-32],o=A[e+1-32],a=A[e+2-32],c=A[e+3-32];A[e+0+0]=A[e+1+64]=i+s+1>>1,A[e+1+0]=A[e+2+64]=s+o+1>>1,A[e+2+0]=A[e+3+64]=o+a+1>>1,A[e+3+0]=a+c+1>>1,A[e+0+96]=be(n,r,t),A[e+0+64]=be(r,t,i),A[e+0+32]=A[e+1+96]=be(t,i,s),A[e+1+32]=A[e+2+96]=be(i,s,o),A[e+2+32]=A[e+3+96]=be(s,o,a),A[e+3+32]=be(o,a,c)}function xe(A,e){var t=A[e+0-32],r=A[e+1-32],n=A[e+2-32],i=A[e+3-32],s=A[e+4-32],o=A[e+5-32],a=A[e+6-32],c=A[e+7-32];A[e+0+0]=t+r+1>>1,A[e+1+0]=A[e+0+64]=r+n+1>>1,A[e+2+0]=A[e+1+64]=n+i+1>>1,A[e+3+0]=A[e+2+64]=i+s+1>>1,A[e+0+32]=be(t,r,n),A[e+1+32]=A[e+0+96]=be(r,n,i),A[e+2+32]=A[e+1+96]=be(n,i,s),A[e+3+32]=A[e+2+96]=be(i,s,o),A[e+3+64]=be(s,o,a),A[e+3+96]=be(o,a,c)}function Le(A,e){var t=A[e-1+0],r=A[e-1+32],n=A[e-1+64],i=A[e-1+96];A[e+0+0]=t+r+1>>1,A[e+2+0]=A[e+0+32]=r+n+1>>1,A[e+2+32]=A[e+0+64]=n+i+1>>1,A[e+1+0]=be(t,r,n),A[e+3+0]=A[e+1+32]=be(r,n,i),A[e+3+32]=A[e+1+64]=be(n,i,i),A[e+3+64]=A[e+2+64]=A[e+0+96]=A[e+1+96]=A[e+2+96]=A[e+3+96]=i}function _e(A,e){var t=A[e-1+0],r=A[e-1+32],n=A[e-1+64],i=A[e-1+96],s=A[e-1-32],o=A[e+0-32],a=A[e+1-32],c=A[e+2-32];A[e+0+0]=A[e+2+32]=t+s+1>>1,A[e+0+32]=A[e+2+64]=r+t+1>>1,A[e+0+64]=A[e+2+96]=n+r+1>>1,A[e+0+96]=i+n+1>>1,A[e+3+0]=be(o,a,c),A[e+2+0]=be(s,o,a),A[e+1+0]=A[e+3+32]=be(t,s,o),A[e+1+32]=A[e+3+64]=be(r,t,s),A[e+1+64]=A[e+3+96]=be(n,r,t),A[e+1+96]=be(i,n,r)}function Ee(A,e){var t;for(t=0;8>t;++t)r(A,e+32*t,A,e-32,8)}function ke(A,e){var t;for(t=0;8>t;++t)n(A,e,A[e-1],8),e+=32}function Ie(A,e,t){var r;for(r=0;8>r;++r)n(e,t+32*r,A,8)}function Se(A,e){var t,r=8;for(t=0;8>t;++t)r+=A[e+t-32]+A[e-1+32*t];Ie(r>>4,A,e)}function je(A,e){var t,r=4;for(t=0;8>t;++t)r+=A[e+t-32];Ie(r>>3,A,e)}function He(A,e){var t,r=4;for(t=0;8>t;++t)r+=A[e-1+32*t];Ie(r>>3,A,e)}function Ne(A,e){Ie(128,A,e)}function Pe(A,e,t){var r=A[e-t],n=A[e+0],i=3*(n-r)+Er[1020+A[e-2*t]-A[e+t]],s=kr[112+(i+4>>3)];A[e-t]=Ir[255+r+kr[112+(i+3>>3)]],A[e+0]=Ir[255+n-s]}function De(A,e,t,r){var n=A[e+0],i=A[e+t];return Sr[255+A[e-2*t]-A[e-t]]>r||Sr[255+i-n]>r}function Oe(A,e,t,r){return 4*Sr[255+A[e-t]-A[e+0]]+Sr[255+A[e-2*t]-A[e+t]]<=r}function Me(A,e,t,r,n){var i=A[e-3*t],s=A[e-2*t],o=A[e-t],a=A[e+0],c=A[e+t],l=A[e+2*t],u=A[e+3*t];return 4*Sr[255+o-a]+Sr[255+s-c]>r?0:Sr[255+A[e-4*t]-i]<=n&&Sr[255+i-s]<=n&&Sr[255+s-o]<=n&&Sr[255+u-l]<=n&&Sr[255+l-c]<=n&&Sr[255+c-a]<=n}function Te(A,e,t,r){var n=2*r+1;for(r=0;16>r;++r)Oe(A,e+r,t,n)&&Pe(A,e+r,t)}function Ke(A,e,t,r){var n=2*r+1;for(r=0;16>r;++r)Oe(A,e+r*t,1,n)&&Pe(A,e+r*t,1)}function Re(A,e,t,r){var n;for(n=3;0<n;--n)Te(A,e+=4*t,t,r)}function Ve(A,e,t,r){var n;for(n=3;0<n;--n)Ke(A,e+=4,t,r)}function Ge(A,e,t,r,n,i,s,o){for(i=2*i+1;0<n--;){if(Me(A,e,t,i,s))if(De(A,e,t,o))Pe(A,e,t);else{var a=A,c=e,l=t,u=a[c-2*l],h=a[c-l],f=a[c+0],d=a[c+l],p=a[c+2*l],g=27*(w=Er[1020+3*(f-h)+Er[1020+u-d]])+63>>7,B=18*w+63>>7,w=9*w+63>>7;a[c-3*l]=Ir[255+a[c-3*l]+w],a[c-2*l]=Ir[255+u+B],a[c-l]=Ir[255+h+g],a[c+0]=Ir[255+f-g],a[c+l]=Ir[255+d-B],a[c+2*l]=Ir[255+p-w]}e+=r}}function qe(A,e,t,r,n,i,s,o){for(i=2*i+1;0<n--;){if(Me(A,e,t,i,s))if(De(A,e,t,o))Pe(A,e,t);else{var a=A,c=e,l=t,u=a[c-l],h=a[c+0],f=a[c+l],d=kr[112+(4+(p=3*(h-u))>>3)],p=kr[112+(p+3>>3)],g=d+1>>1;a[c-2*l]=Ir[255+a[c-2*l]+g],a[c-l]=Ir[255+u+p],a[c+0]=Ir[255+h-d],a[c+l]=Ir[255+f-g]}e+=r}}function ze(A,e,t,r,n,i){Ge(A,e,t,1,16,r,n,i)}function We(A,e,t,r,n,i){Ge(A,e,1,t,16,r,n,i)}function Je(A,e,t,r,n,i){var s;for(s=3;0<s;--s)qe(A,e+=4*t,t,1,16,r,n,i)}function Xe(A,e,t,r,n,i){var s;for(s=3;0<s;--s)qe(A,e+=4,1,t,16,r,n,i)}function Ye(A,e,t,r,n,i,s,o){Ge(A,e,n,1,8,i,s,o),Ge(t,r,n,1,8,i,s,o)}function Ze(A,e,t,r,n,i,s,o){Ge(A,e,1,n,8,i,s,o),Ge(t,r,1,n,8,i,s,o)}function $e(A,e,t,r,n,i,s,o){qe(A,e+4*n,n,1,8,i,s,o),qe(t,r+4*n,n,1,8,i,s,o)}function At(A,e,t,r,n,i,s,o){qe(A,e+4,1,n,8,i,s,o),qe(t,r+4,1,n,8,i,s,o)}function et(){this.ba=new sA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new aA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function tt(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function rt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function nt(){this.ua=0,this.Wa=new H,this.vb=new H,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new u}function it(){this.xb=this.a=0,this.l=new qA,this.ca=new sA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new y,this.Pb=0,this.wd=new y,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new nt,this.ab=0,this.gc=s(4,rt),this.Oc=0}function st(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ot(A,e,t,r,n,i,s){for(A=null==A?0:A[e+0],e=0;e<s;++e)n[i+e]=A+t[r+e]&255,A=n[i+e]}function at(A,e,t,r,n,i,s){var o;if(null==A)ot(null,null,t,r,n,i,s);else for(o=0;o<s;++o)n[i+o]=A[e+o]+t[r+o]&255}function ct(A,e,t,r,n,i,s){if(null==A)ot(null,null,t,r,n,i,s);else{var o,a=A[e+0],c=a,l=a;for(o=0;o<s;++o)c=l+(a=A[e+o])-c,l=t[r+o]+(-256&c?0>c?0:255:c)&255,c=a,n[i+o]=l}}function lt(A,t,n,s){var o=t.width,a=t.o;if(e(null!=A&&null!=t),0>n||0>=s||n+s>a)return null;if(!A.Cc){if(null==A.ga){var c;if(A.ga=new st,(c=null==A.ga)||(c=t.width*t.o,e(0==A.Gb.length),A.Gb=i(c),A.Uc=0,null==A.Gb?c=0:(A.mb=A.Gb,A.nb=A.Uc,A.rc=null,c=1),c=!c),!c){c=A.ga;var l=A.Fa,u=A.P,h=A.qc,f=A.mb,d=A.nb,p=u+1,g=h-1,w=c.l;if(e(null!=l&&null!=f&&null!=t),pn[0]=null,pn[1]=ot,pn[2]=at,pn[3]=ct,c.ca=f,c.tb=d,c.c=t.width,c.i=t.height,e(0<c.c&&0<c.i),1>=h)t=0;else if(c.$a=3&l[u+0],c.Z=l[u+0]>>2&3,c.Lc=l[u+0]>>4&3,u=l[u+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||u)t=0;else if(w.put=fA,w.ac=hA,w.bc=dA,w.ma=c,w.width=t.width,w.height=t.height,w.Da=t.Da,w.v=t.v,w.va=t.va,w.j=t.j,w.o=t.o,c.$a)A:{e(1==c.$a),t=LA();e:for(;;){if(null==t){t=0;break A}if(e(null!=c),c.mc=t,t.c=c.c,t.i=c.i,t.l=c.l,t.l.ma=c,t.l.width=c.c,t.l.height=c.i,t.a=0,B(t.m,l,p,g),!_A(c.c,c.i,1,t,null))break e;if(1==t.ab&&3==t.gc[0].hc&&CA(t.s)?(c.ic=1,l=t.c*t.i,t.Ta=null,t.Ua=0,t.V=i(l),t.Ba=0,null==t.V?(t.a=1,t=0):t=1):(c.ic=0,t=EA(t,c.c)),!t)break e;t=1;break A}c.mc=null,t=0}else t=g>=c.c*c.i;c=!t}if(c)return null;1!=A.ga.Lc?A.Ga=0:s=a-n}e(null!=A.ga),e(n+s<=a);A:{if(t=(l=A.ga).c,a=l.l.o,0==l.$a){if(p=A.rc,g=A.Vc,w=A.Fa,u=A.P+1+n*t,h=A.mb,f=A.nb+n*t,e(u<=A.P+A.qc),0!=l.Z)for(e(null!=pn[l.Z]),c=0;c<s;++c)pn[l.Z](p,g,w,u,h,f,t),p=h,g=f,f+=t,u+=t;else for(c=0;c<s;++c)r(h,f,w,u,t),p=h,g=f,f+=t,u+=t;A.rc=p,A.Vc=g}else{if(e(null!=l.mc),t=n+s,e(null!=(c=l.mc)),e(t<=c.i),c.C>=t)t=1;else if(l.ic||pt(),l.ic){l=c.V,p=c.Ba,g=c.c;var m=c.i,b=(w=1,u=c.$/g,h=c.$%g,f=c.m,d=c.s,c.$),y=g*m,v=g*t,Q=d.wc,U=b<v?bA(d,h,u):null;e(b<=y),e(t<=m),e(CA(d));e:for(;;){for(;!f.h&&b<v;){if(h&Q||(U=bA(d,h,u)),e(null!=U),F(f),256>(m=wA(U.G[0],U.H[0],f)))l[p+b]=m,++b,++h>=g&&(h=0,++u<=t&&!(u%16)&&FA(c,u));else{if(!(280>m)){w=0;break e}m=gA(m-256,f);var x,L=wA(U.G[4],U.H[4],f);if(F(f),!(b>=(L=BA(g,L=gA(L,f)))&&y-b>=m)){w=0;break e}for(x=0;x<m;++x)l[p+b+x]=l[p+b+x-L];for(b+=m,h+=m;h>=g;)h-=g,++u<=t&&!(u%16)&&FA(c,u);b<v&&h&Q&&(U=bA(d,h,u))}e(f.h==C(f))}FA(c,u>t?t:u);break e}!w||f.h&&b<y?(w=0,c.a=f.h?5:3):c.$=b,t=w}else t=UA(c,c.V,c.Ba,c.c,c.i,t,kA);if(!t){s=0;break A}}n+s>=a&&(A.Cc=1),s=1}if(!s)return null;if(A.Cc&&(null!=(s=A.ga)&&(s.mc=null),A.ga=null,0<A.Ga))return alert("todo:WebPDequantizeLevels"),null}return A.nb+n*o}function ut(A,e,t,r,n,i){for(;0<n--;){var s,o=A,a=e+(t?1:0),c=A,l=e+(t?0:3);for(s=0;s<r;++s){var u=c[l+4*s];255!=u&&(u*=32897,o[a+4*s+0]=o[a+4*s+0]*u>>23,o[a+4*s+1]=o[a+4*s+1]*u>>23,o[a+4*s+2]=o[a+4*s+2]*u>>23)}e+=i}}function ht(A,e,t,r,n){for(;0<r--;){var i;for(i=0;i<t;++i){var s=A[e+2*i+0],o=15&(c=A[e+2*i+1]),a=4369*o,c=(240&c|c>>4)*a>>16;A[e+2*i+0]=(240&s|s>>4)*a>>16&240|(15&s|s<<4)*a>>16>>4&15,A[e+2*i+1]=240&c|o}e+=n}}function ft(A,e,t,r,n,i,s,o){var a,c,l=255;for(c=0;c<n;++c){for(a=0;a<r;++a){var u=A[e+a];i[s+4*a]=u,l&=u}e+=t,s+=o}return 255!=l}function dt(A,e,t,r,n){var i;for(i=0;i<n;++i)t[r+i]=A[e+i]>>8}function pt(){yr=ut,vr=ht,Cr=ft,Qr=dt}function gt(t,r,n){A[t]=function(A,t,i,s,o,a,c,l,u,h,f,d,p,g,B,w,m){var b,y=m-1>>1,v=o[a+0]|c[l+0]<<16,C=u[h+0]|f[d+0]<<16;e(null!=A);var Q=3*v+C+131074>>2;for(r(A[t+0],255&Q,Q>>16,p,g),null!=i&&(Q=3*C+v+131074>>2,r(i[s+0],255&Q,Q>>16,B,w)),b=1;b<=y;++b){var F=o[a+b]|c[l+b]<<16,U=u[h+b]|f[d+b]<<16,x=v+F+C+U+524296,L=x+2*(F+C)>>3;Q=L+v>>1,v=(x=x+2*(v+U)>>3)+F>>1,r(A[t+2*b-1],255&Q,Q>>16,p,g+(2*b-1)*n),r(A[t+2*b-0],255&v,v>>16,p,g+(2*b-0)*n),null!=i&&(Q=x+C>>1,v=L+U>>1,r(i[s+2*b-1],255&Q,Q>>16,B,w+(2*b-1)*n),r(i[s+2*b+0],255&v,v>>16,B,w+(2*b+0)*n)),v=F,C=U}1&m||(Q=3*v+C+131074>>2,r(A[t+m-1],255&Q,Q>>16,p,g+(m-1)*n),null!=i&&(Q=3*C+v+131074>>2,r(i[s+m-1],255&Q,Q>>16,B,w+(m-1)*n)))}}function Bt(){gn[jr]=Bn,gn[Hr]=mn,gn[Nr]=wn,gn[Pr]=bn,gn[Dr]=yn,gn[Or]=vn,gn[Mr]=Cn,gn[Tr]=mn,gn[Kr]=bn,gn[Rr]=yn,gn[Vr]=vn}function wt(A){return-16384&A?0>A?0:255:A>>Ln}function mt(A,e){return wt((19077*A>>8)+(26149*e>>8)-14234)}function bt(A,e,t){return wt((19077*A>>8)-(6419*e>>8)-(13320*t>>8)+8708)}function yt(A,e){return wt((19077*A>>8)+(33050*e>>8)-17685)}function vt(A,e,t,r,n){r[n+0]=mt(A,t),r[n+1]=bt(A,e,t),r[n+2]=yt(A,e)}function Ct(A,e,t,r,n){r[n+0]=yt(A,e),r[n+1]=bt(A,e,t),r[n+2]=mt(A,t)}function Qt(A,e,t,r,n){var i=bt(A,e,t);e=i<<3&224|yt(A,e)>>3,r[n+0]=248&mt(A,t)|i>>5,r[n+1]=e}function Ft(A,e,t,r,n){var i=240&yt(A,e)|15;r[n+0]=240&mt(A,t)|bt(A,e,t)>>4,r[n+1]=i}function Ut(A,e,t,r,n){r[n+0]=255,vt(A,e,t,r,n+1)}function xt(A,e,t,r,n){Ct(A,e,t,r,n),r[n+3]=255}function Lt(A,e,t,r,n){vt(A,e,t,r,n),r[n+3]=255}function _t(e,t,r){A[e]=function(A,e,n,i,s,o,a,c,l){for(var u=c+(-2&l)*r;c!=u;)t(A[e+0],n[i+0],s[o+0],a,c),t(A[e+1],n[i+0],s[o+0],a,c+r),e+=2,++i,++o,c+=2*r;1&l&&t(A[e+0],n[i+0],s[o+0],a,c)}}function Et(A,e,t){return 0==t?0==A?0==e?6:5:0==e?4:0:t}function kt(A,e,t,r,n){switch(A>>>30){case 3:nr(e,t,r,n,0);break;case 2:ir(e,t,r,n);break;case 1:or(e,t,r,n)}}function It(A,e){var t,i,s=e.M,o=e.Nb,a=A.oc,c=A.pc+40,l=A.oc,u=A.pc+584,h=A.oc,f=A.pc+600;for(t=0;16>t;++t)a[c+32*t-1]=129;for(t=0;8>t;++t)l[u+32*t-1]=129,h[f+32*t-1]=129;for(0<s?a[c-1-32]=l[u-1-32]=h[f-1-32]=129:(n(a,c-32-1,127,21),n(l,u-32-1,127,9),n(h,f-32-1,127,9)),i=0;i<A.za;++i){var d=e.ya[e.aa+i];if(0<i){for(t=-1;16>t;++t)r(a,c+32*t-4,a,c+32*t+12,4);for(t=-1;8>t;++t)r(l,u+32*t-4,l,u+32*t+4,4),r(h,f+32*t-4,h,f+32*t+4,4)}var p=A.Gd,g=A.Hd+i,B=d.ad,w=d.Hc;if(0<s&&(r(a,c-32,p[g].y,0,16),r(l,u-32,p[g].f,0,8),r(h,f-32,p[g].ea,0,8)),d.Za){var m=a,b=c-32+16;for(0<s&&(i>=A.za-1?n(m,b,p[g].y[15],4):r(m,b,p[g+1].y,0,4)),t=0;4>t;t++)m[b+128+t]=m[b+256+t]=m[b+384+t]=m[b+0+t];for(t=0;16>t;++t,w<<=2)m=a,b=c+Nn[t],un[d.Ob[t]](m,b),kt(w,B,16*+t,m,b)}else if(m=Et(i,s,d.Ob[0]),ln[m](a,c),0!=w)for(t=0;16>t;++t,w<<=2)kt(w,B,16*+t,a,c+Nn[t]);for(t=d.Gc,m=Et(i,s,d.Dd),hn[m](l,u),hn[m](h,f),w=B,m=l,b=u,255&(d=0|t)&&(170&d?sr(w,256,m,b):ar(w,256,m,b)),d=h,w=f,255&(t>>=8)&&(170&t?sr(B,320,d,w):ar(B,320,d,w)),s<A.Ub-1&&(r(p[g].y,0,a,c+480,16),r(p[g].f,0,l,u+224,8),r(p[g].ea,0,h,f+224,8)),t=8*o*A.B,p=A.sa,g=A.ta+16*i+16*o*A.R,B=A.qa,d=A.ra+8*i+t,w=A.Ha,m=A.Ia+8*i+t,t=0;16>t;++t)r(p,g+t*A.R,a,c+32*t,16);for(t=0;8>t;++t)r(B,d+t*A.B,l,u+32*t,8),r(w,m+t*A.B,h,f+32*t,8)}}function St(A,r,n,i,s,o,a,c,l){var u=[0],h=[0],f=0,d=null!=l?l.kd:0,p=null!=l?l:new tt;if(null==A||12>n)return 7;p.data=A,p.w=r,p.ha=n,r=[r],n=[n],p.gb=[p.gb];A:{var g=r,w=n,m=p.gb;if(e(null!=A),e(null!=w),e(null!=m),m[0]=0,12<=w[0]&&!t(A,g[0],"RIFF")){if(t(A,g[0]+8,"WEBP")){m=3;break A}var b=I(A,g[0]+4);if(12>b||4294967286<b){m=3;break A}if(d&&b>w[0]-8){m=7;break A}m[0]=b,g[0]+=12,w[0]-=12}m=0}if(0!=m)return m;for(b=0<p.gb[0],n=n[0];;){A:{var v=A;w=r,m=n;var C=u,Q=h,F=g=[0];if((L=f=[f])[0]=0,8>m[0])m=7;else{if(!t(v,w[0],"VP8X")){if(10!=I(v,w[0]+4)){m=3;break A}if(18>m[0]){m=7;break A}var U=I(v,w[0]+8),x=1+k(v,w[0]+12);if(2147483648<=x*(v=1+k(v,w[0]+15))){m=3;break A}null!=F&&(F[0]=U),null!=C&&(C[0]=x),null!=Q&&(Q[0]=v),w[0]+=18,m[0]-=18,L[0]=1}m=0}}if(f=f[0],g=g[0],0!=m)return m;if(w=!!(2&g),!b&&f)return 3;if(null!=o&&(o[0]=!!(16&g)),null!=a&&(a[0]=w),null!=c&&(c[0]=0),a=u[0],g=h[0],f&&w&&null==l){m=0;break}if(4>n){m=7;break}if(b&&f||!b&&!f&&!t(A,r[0],"ALPH")){n=[n],p.na=[p.na],p.P=[p.P],p.Sa=[p.Sa];A:{U=A,m=r,b=n;var L=p.gb;C=p.na,Q=p.P,F=p.Sa,x=22,e(null!=U),e(null!=b),v=m[0];var _=b[0];for(e(null!=C),e(null!=F),C[0]=null,Q[0]=null,F[0]=0;;){if(m[0]=v,b[0]=_,8>_){m=7;break A}var E=I(U,v+4);if(4294967286<E){m=3;break A}var S=8+E+1&-2;if(x+=S,0<L&&x>L){m=3;break A}if(!t(U,v,"VP8 ")||!t(U,v,"VP8L")){m=0;break A}if(_[0]<S){m=7;break A}t(U,v,"ALPH")||(C[0]=U,Q[0]=v+8,F[0]=E),v+=S,_-=S}}if(n=n[0],p.na=p.na[0],p.P=p.P[0],p.Sa=p.Sa[0],0!=m)break}n=[n],p.Ja=[p.Ja],p.xa=[p.xa];A:if(L=A,m=r,b=n,C=p.gb[0],Q=p.Ja,F=p.xa,U=m[0],v=!t(L,U,"VP8 "),x=!t(L,U,"VP8L"),e(null!=L),e(null!=b),e(null!=Q),e(null!=F),8>b[0])m=7;else{if(v||x){if(L=I(L,U+4),12<=C&&L>C-12){m=3;break A}if(d&&L>b[0]-8){m=7;break A}Q[0]=L,m[0]+=8,b[0]-=8,F[0]=x}else F[0]=5<=b[0]&&47==L[U+0]&&!(L[U+4]>>5),Q[0]=b[0];m=0}if(n=n[0],p.Ja=p.Ja[0],p.xa=p.xa[0],r=r[0],0!=m)break;if(4294967286<p.Ja)return 3;if(null==c||w||(c[0]=p.xa?2:1),a=[a],g=[g],p.xa){if(5>n){m=7;break}c=a,d=g,w=o,null==A||5>n?A=0:5<=n&&47==A[r+0]&&!(A[r+4]>>5)?(b=[0],L=[0],C=[0],B(Q=new y,A,r,n),pA(Q,b,L,C)?(null!=c&&(c[0]=b[0]),null!=d&&(d[0]=L[0]),null!=w&&(w[0]=C[0]),A=1):A=0):A=0}else{if(10>n){m=7;break}c=g,null==A||10>n||!JA(A,r+3,n-3)?A=0:(d=A[r+0]|A[r+1]<<8|A[r+2]<<16,w=16383&(A[r+7]<<8|A[r+6]),A=16383&(A[r+9]<<8|A[r+8]),1&d||3<(d>>1&7)||!(d>>4&1)||d>>5>=p.Ja||!w||!A?A=0:(a&&(a[0]=w),c&&(c[0]=A),A=1))}if(!A)return 3;if(a=a[0],g=g[0],f&&(u[0]!=a||h[0]!=g))return 3;null!=l&&(l[0]=p,l.offset=r-l.w,e(4294967286>r-l.w),e(l.offset==l.ha-n));break}return 0==m||7==m&&f&&null==l?(null!=o&&(o[0]|=null!=p.na&&0<p.na.length),null!=i&&(i[0]=a),null!=s&&(s[0]=g),0):m}function jt(A,e,t){var r=e.width,n=e.height,i=0,s=0,o=r,a=n;if(e.Da=null!=A&&0<A.Da,e.Da&&(o=A.cd,a=A.bd,i=A.v,s=A.j,11>t||(i&=-2,s&=-2),0>i||0>s||0>=o||0>=a||i+o>r||s+a>n))return 0;if(e.v=i,e.j=s,e.va=i+o,e.o=s+a,e.U=o,e.T=a,e.da=null!=A&&0<A.da,e.da){if(!N(o,a,t=[A.ib],i=[A.hb]))return 0;e.ib=t[0],e.hb=i[0]}return e.ob=null!=A&&A.ob,e.Kb=null==A||!A.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*n/4,e.Kb=0),1}function Ht(A){if(null==A)return 2;if(11>A.S){var e=A.f.RGBA;e.fb+=(A.height-1)*e.A,e.A=-e.A}else e=A.f.kb,A=A.height,e.O+=(A-1)*e.fa,e.fa=-e.fa,e.N+=(A-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(A-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(A-1)*e.lb,e.lb=-e.lb);return 0}function Nt(A,e,t,r){if(null==r||0>=A||0>=e)return 2;if(null!=t){if(t.Da){var n=t.cd,s=t.bd,o=-2&t.v,a=-2&t.j;if(0>o||0>a||0>=n||0>=s||o+n>A||a+s>e)return 2;A=n,e=s}if(t.da){if(!N(A,e,n=[t.ib],s=[t.hb]))return 2;A=n[0],e=s[0]}}r.width=A,r.height=e;A:{var c=r.width,l=r.height;if(A=r.S,0>=c||0>=l||!(A>=jr&&13>A))A=2;else{if(0>=r.Rd&&null==r.sd){o=s=n=e=0;var u=(a=c*On[A])*l;if(11>A||(s=(l+1)/2*(e=(c+1)/2),12==A&&(o=(n=c)*l)),null==(l=i(u+2*s+o))){A=1;break A}r.sd=l,11>A?((c=r.f.RGBA).eb=l,c.fb=0,c.A=a,c.size=u):((c=r.f.kb).y=l,c.O=0,c.fa=a,c.Fd=u,c.f=l,c.N=0+u,c.Ab=e,c.Cd=s,c.ea=l,c.W=0+u+s,c.Db=e,c.Ed=s,12==A&&(c.F=l,c.J=0+u+2*s),c.Tc=o,c.lb=n)}if(e=1,n=r.S,s=r.width,o=r.height,n>=jr&&13>n)if(11>n)A=r.f.RGBA,e&=(a=Math.abs(A.A))*(o-1)+s<=A.size,e&=a>=s*On[n],e&=null!=A.eb;else{A=r.f.kb,a=(s+1)/2,u=(o+1)/2,c=Math.abs(A.fa),l=Math.abs(A.Ab);var h=Math.abs(A.Db),f=Math.abs(A.lb),d=f*(o-1)+s;e&=c*(o-1)+s<=A.Fd,e&=l*(u-1)+a<=A.Cd,e=(e&=h*(u-1)+a<=A.Ed)&c>=s&l>=a&h>=a,e&=null!=A.y,e&=null!=A.f,e&=null!=A.ea,12==n&&(e&=f>=s,e&=d<=A.Tc,e&=null!=A.F)}else e=0;A=e?0:2}}return 0!=A||null!=t&&t.fd&&(A=Ht(r)),A}var Pt=64,Dt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Ot=24,Mt=32,Tt=8,Kt=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];O("Predictor0","PredictorAdd0"),A.Predictor0=function(){return 4278190080},A.Predictor1=function(A){return A},A.Predictor2=function(A,e,t){return e[t+0]},A.Predictor3=function(A,e,t){return e[t+1]},A.Predictor4=function(A,e,t){return e[t-1]},A.Predictor5=function(A,e,t){return T(T(A,e[t+1]),e[t+0])},A.Predictor6=function(A,e,t){return T(A,e[t-1])},A.Predictor7=function(A,e,t){return T(A,e[t+0])},A.Predictor8=function(A,e,t){return T(e[t-1],e[t+0])},A.Predictor9=function(A,e,t){return T(e[t+0],e[t+1])},A.Predictor10=function(A,e,t){return T(T(A,e[t-1]),T(e[t+0],e[t+1]))},A.Predictor11=function(A,e,t){var r=e[t+0];return 0>=V(r>>24&255,A>>24&255,(e=e[t-1])>>24&255)+V(r>>16&255,A>>16&255,e>>16&255)+V(r>>8&255,A>>8&255,e>>8&255)+V(255&r,255&A,255&e)?r:A},A.Predictor12=function(A,e,t){var r=e[t+0];return(K((A>>24&255)+(r>>24&255)-((e=e[t-1])>>24&255))<<24|K((A>>16&255)+(r>>16&255)-(e>>16&255))<<16|K((A>>8&255)+(r>>8&255)-(e>>8&255))<<8|K((255&A)+(255&r)-(255&e)))>>>0},A.Predictor13=function(A,e,t){var r=e[t-1];return(R((A=T(A,e[t+0]))>>24&255,r>>24&255)<<24|R(A>>16&255,r>>16&255)<<16|R(A>>8&255,r>>8&255)<<8|R(255&A,255&r))>>>0};var Rt=A.PredictorAdd0;A.PredictorAdd1=G,O("Predictor2","PredictorAdd2"),O("Predictor3","PredictorAdd3"),O("Predictor4","PredictorAdd4"),O("Predictor5","PredictorAdd5"),O("Predictor6","PredictorAdd6"),O("Predictor7","PredictorAdd7"),O("Predictor8","PredictorAdd8"),O("Predictor9","PredictorAdd9"),O("Predictor10","PredictorAdd10"),O("Predictor11","PredictorAdd11"),O("Predictor12","PredictorAdd12"),O("Predictor13","PredictorAdd13");var Vt=A.PredictorAdd2;J("ColorIndexInverseTransform","MapARGB","32b",function(A){return A>>8&255},function(A){return A}),J("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(A){return A},function(A){return A>>8&255});var Gt,qt=A.ColorIndexInverseTransform,zt=A.MapARGB,Wt=A.VP8LColorIndexInverseTransformAlpha,Jt=A.MapAlpha,Xt=A.VP8LPredictorsAdd=[];Xt.length=16,(A.VP8LPredictors=[]).length=16,(A.VP8LPredictorsAdd_C=[]).length=16,(A.VP8LPredictors_C=[]).length=16;var Yt,Zt,$t,Ar,er,tr,rr,nr,ir,sr,or,ar,cr,lr,ur,hr,fr,dr,pr,gr,Br,wr,mr,br,yr,vr,Cr,Qr,Fr=i(511),Ur=i(2041),xr=i(225),Lr=i(767),_r=0,Er=Ur,kr=xr,Ir=Lr,Sr=Fr,jr=0,Hr=1,Nr=2,Pr=3,Dr=4,Or=5,Mr=6,Tr=7,Kr=8,Rr=9,Vr=10,Gr=[2,3,7],qr=[3,3,11],zr=[280,256,256,256,40],Wr=[0,1,1,1,0],Jr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Xr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Yr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zr=8,$r=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],An=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],en=null,tn=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],rn=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],nn=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sn=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],on=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],an=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],cn=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ln=[],un=[],hn=[],fn=1,dn=2,pn=[],gn=[];gt("UpsampleRgbLinePair",vt,3),gt("UpsampleBgrLinePair",Ct,3),gt("UpsampleRgbaLinePair",Lt,4),gt("UpsampleBgraLinePair",xt,4),gt("UpsampleArgbLinePair",Ut,4),gt("UpsampleRgba4444LinePair",Ft,2),gt("UpsampleRgb565LinePair",Qt,2);var Bn=A.UpsampleRgbLinePair,wn=A.UpsampleBgrLinePair,mn=A.UpsampleRgbaLinePair,bn=A.UpsampleBgraLinePair,yn=A.UpsampleArgbLinePair,vn=A.UpsampleRgba4444LinePair,Cn=A.UpsampleRgb565LinePair,Qn=16,Fn=1<<Qn-1,Un=-227,xn=482,Ln=6,_n=0,En=i(256),kn=i(256),In=i(256),Sn=i(256),jn=i(xn-Un),Hn=i(xn-Un);_t("YuvToRgbRow",vt,3),_t("YuvToBgrRow",Ct,3),_t("YuvToRgbaRow",Lt,4),_t("YuvToBgraRow",xt,4),_t("YuvToArgbRow",Ut,4),_t("YuvToRgba4444Row",Ft,2),_t("YuvToRgb565Row",Qt,2);var Nn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Pn=[0,2,8],Dn=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(A,t,o,a,c){var l=Hr,u=new et,h=new sA;u.ba=h,h.S=l,h.width=[h.width],h.height=[h.height];var f=h.width,d=h.height,p=new oA;if(null==p||null==A)var g=2;else e(null!=p),g=St(A,t,o,p.width,p.height,p.Pd,p.Qd,p.format,null);if(0!=g?f=0:(null!=f&&(f[0]=p.width[0]),null!=d&&(d[0]=p.height[0]),f=1),f){h.width=h.width[0],h.height=h.height[0],null!=a&&(a[0]=h.width),null!=c&&(c[0]=h.height);A:{if(a=new qA,(c=new tt).data=A,c.w=t,c.ha=o,c.kd=1,t=[0],e(null!=c),(0==(A=St(c.data,c.w,c.ha,null,null,null,t,null,c))||7==A)&&t[0]&&(A=4),0==(t=A)){if(e(null!=u),a.data=c.data,a.w=c.w+c.offset,a.ha=c.ha-c.offset,a.put=fA,a.ac=hA,a.bc=dA,a.ma=u,c.xa){if(null==(A=LA())){u=1;break A}if(function(A,t){var r=[0],n=[0],i=[0];e:for(;;){if(null==A)return 0;if(null==t)return A.a=2,0;if(A.l=t,A.a=0,B(A.m,t.data,t.w,t.ha),!pA(A.m,r,n,i)){A.a=3;break e}if(A.xb=dn,t.width=r[0],t.height=n[0],!_A(r[0],n[0],1,A,null))break e;return 1}return e(0!=A.a),0}(A,a)){if(a=0==(t=Nt(a.width,a.height,u.Oa,u.ba))){e:{a=A;t:for(;;){if(null==a){a=0;break e}if(e(null!=a.s.yc),e(null!=a.s.Ya),e(0<a.s.Wb),e(null!=(o=a.l)),e(null!=(c=o.ma)),0!=a.xb){if(a.ca=c.ba,a.tb=c.tb,e(null!=a.ca),!jt(c.Oa,o,Pr)){a.a=2;break t}if(!EA(a,o.width))break t;if(o.da)break t;if((o.da||rA(a.ca.S))&&pt(),11>a.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=a.ca.f.kb.F&&pt()),a.Pb&&0<a.s.ua&&null==a.s.vb.X&&!S(a.s.vb,a.s.Wa.Xa)){a.a=1;break t}a.xb=0}if(!UA(a,a.V,a.Ba,a.c,a.i,o.o,vA))break t;c.Dc=a.Ma,a=1;break e}e(0!=a.a),a=0}a=!a}a&&(t=A.a)}else t=A.a}else{if(null==(A=new zA)){u=1;break A}if(A.Fa=c.na,A.P=c.P,A.qc=c.Sa,XA(A,a)){if(0==(t=Nt(a.width,a.height,u.Oa,u.ba))){if(A.Aa=0,o=u.Oa,e(null!=(c=A)),null!=o){if(0<(f=0>(f=o.Md)?0:100<f?255:255*f/100)){for(d=p=0;4>d;++d)12>(g=c.pb[d]).lc&&(g.ia=f*Dn[0>g.lc?0:g.lc]>>3),p|=g.ia;p&&(alert("todo:VP8InitRandom"),c.ia=1)}c.Ga=o.Id,100<c.Ga?c.Ga=100:0>c.Ga&&(c.Ga=0)}(function(A,t){if(null==A)return 0;if(null==t)return WA(A,2,"NULL VP8Io parameter in VP8Decode().");if(!A.cb&&!XA(A,t))return 0;if(e(A.cb),null==t.ac||t.ac(t)){t.ob&&(A.L=0);var o=Pn[A.L];if(2==A.L?(A.yb=0,A.zb=0):(A.yb=t.v-o>>4,A.zb=t.j-o>>4,0>A.yb&&(A.yb=0),0>A.zb&&(A.zb=0)),A.Va=t.o+15+o>>4,A.Hb=t.va+15+o>>4,A.Hb>A.za&&(A.Hb=A.za),A.Va>A.Ub&&(A.Va=A.Ub),0<A.L){var a=A.ed;for(o=0;4>o;++o){var c;if(A.Qa.Cb){var l=A.Qa.Lb[o];A.Qa.Fb||(l+=a.Tb)}else l=a.Tb;for(c=0;1>=c;++c){var u=A.gd[o][c],h=l;if(a.Pc&&(h+=a.vd[0],c&&(h+=a.od[0])),0<(h=0>h?0:63<h?63:h)){var f=h;0<a.wb&&(f=4<a.wb?f>>2:f>>1)>9-a.wb&&(f=9-a.wb),1>f&&(f=1),u.dd=f,u.tc=2*h+f,u.ld=40<=h?2:15<=h?1:0}else u.tc=0;u.La=c}}}o=0}else WA(A,6,"Frame setup failed"),o=A.a;if(o=0==o){if(o){A.$c=0,0<A.Aa||(A.Ic=1);e:{o=A.Ic,a=4*(f=A.za);var d=32*f,p=f+1,g=0<A.L?f*(0<A.Aa?2:1):0,B=(2==A.Aa?2:1)*f;if((u=a+832+(c=3*(16*o+Pn[A.L])/2*d)+(l=null!=A.Fa&&0<A.Fa.length?A.Kc.c*A.Kc.i:0))!=u)o=0;else{if(u>A.Vb){if(A.Vb=0,A.Ec=i(u),A.Fc=0,null==A.Ec){o=WA(A,1,"no memory during frame initialization.");break e}A.Vb=u}u=A.Ec,h=A.Fc,A.Ac=u,A.Bc=h,h+=a,A.Gd=s(d,RA),A.Hd=0,A.rb=s(p+1,OA),A.sb=1,A.wa=g?s(g,DA):null,A.Y=0,A.D.Nb=0,A.D.wa=A.wa,A.D.Y=A.Y,0<A.Aa&&(A.D.Y+=f),e(!0),A.oc=u,A.pc=h,h+=832,A.ya=s(B,TA),A.aa=0,A.D.ya=A.ya,A.D.aa=A.aa,2==A.Aa&&(A.D.aa+=f),A.R=16*f,A.B=8*f,f=(d=Pn[A.L])*A.R,d=d/2*A.B,A.sa=u,A.ta=h+f,A.qa=A.sa,A.ra=A.ta+16*o*A.R+d,A.Ha=A.qa,A.Ia=A.ra+8*o*A.B+d,A.$c=0,h+=c,A.mb=l?u:null,A.nb=l?h:null,e(h+l<=A.Fc+A.Vb),ZA(A),n(A.Ac,A.Bc,0,a),o=1}}if(o){if(t.ka=0,t.y=A.sa,t.O=A.ta,t.f=A.qa,t.N=A.ra,t.ea=A.Ha,t.Vd=A.Ia,t.fa=A.R,t.Rc=A.B,t.F=null,t.J=0,!_r){for(o=-255;255>=o;++o)Fr[255+o]=0>o?-o:o;for(o=-1020;1020>=o;++o)Ur[1020+o]=-128>o?-128:127<o?127:o;for(o=-112;112>=o;++o)xr[112+o]=-16>o?-16:15<o?15:o;for(o=-255;510>=o;++o)Lr[255+o]=0>o?0:255<o?255:o;_r=1}rr=ae,nr=ne,sr=ie,or=se,ar=oe,ir=re,cr=ze,lr=We,ur=Ye,hr=Ze,fr=Je,dr=Xe,pr=$e,gr=At,Br=Te,wr=Ke,mr=Re,br=Ve,un[0]=Ce,un[1]=le,un[2]=ye,un[3]=ve,un[4]=Qe,un[5]=Ue,un[6]=Fe,un[7]=xe,un[8]=_e,un[9]=Le,ln[0]=ge,ln[1]=he,ln[2]=fe,ln[3]=de,ln[4]=Be,ln[5]=we,ln[6]=me,hn[0]=Se,hn[1]=ue,hn[2]=Ee,hn[3]=ke,hn[4]=He,hn[5]=je,hn[6]=Ne,o=1}else o=0}o&&(o=function(A,t){for(A.M=0;A.M<A.Va;++A.M){var s,o=A.Jc[A.M&A.Xb],a=A.m,c=A;for(s=0;s<c.za;++s){var l=a,u=c,h=u.Ac,f=u.Bc+4*s,d=u.zc,p=u.ya[u.aa+s];if(u.Qa.Bb?p.$b=L(l,u.Pa.jb[0])?2+L(l,u.Pa.jb[2]):L(l,u.Pa.jb[1]):p.$b=0,u.kc&&(p.Ad=L(l,u.Bd)),p.Za=!L(l,145)+0,p.Za){var g=p.Ob,B=0;for(u=0;4>u;++u){var w,m=d[0+u];for(w=0;4>w;++w){m=on[h[f+w]][m];for(var b=nn[L(l,m[0])];0<b;)b=nn[2*b+L(l,m[b])];m=-b,h[f+w]=m}r(g,B,h,f,4),B+=4,d[0+u]=m}}else m=L(l,156)?L(l,128)?1:3:L(l,163)?2:0,p.Ob[0]=m,n(h,f,m,4),n(d,0,m,4);p.Dd=L(l,142)?L(l,114)?L(l,183)?1:3:2:0}if(c.m.Ka)return WA(A,7,"Premature end-of-partition0 encountered.");for(;A.ja<A.za;++A.ja){if(c=o,l=(a=A).rb[a.sb-1],h=a.rb[a.sb+a.ja],s=a.ya[a.aa+a.ja],f=a.kc?s.Ad:0)l.la=h.la=0,s.Za||(l.Na=h.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var y,v;if(l=h,h=c,f=a.Pa.Xc,d=a.ya[a.aa+a.ja],p=a.pb[d.$b],u=d.ad,g=0,B=a.rb[a.sb-1],m=w=0,n(u,g,0,384),d.Za)var C=0,Q=f[3];else{b=i(16);var F=l.Na+B.Na;if(F=en(h,f[1],F,p.Eb,0,b,0),l.Na=B.Na=(0<F)+0,1<F)rr(b,0,u,g);else{var U=b[0]+3>>3;for(b=0;256>b;b+=16)u[g+b]=U}C=1,Q=f[0]}var x=15&l.la,_=15&B.la;for(b=0;4>b;++b){var E=1&_;for(U=v=0;4>U;++U)x=x>>1|(E=(F=en(h,Q,F=E+(1&x),p.Sc,C,u,g))>C)<<7,v=v<<2|(3<F?3:1<F?2:0!=u[g+0]),g+=16;x>>=4,_=_>>1|E<<7,w=(w<<8|v)>>>0}for(Q=x,C=_>>4,y=0;4>y;y+=2){for(v=0,x=l.la>>4+y,_=B.la>>4+y,b=0;2>b;++b){for(E=1&_,U=0;2>U;++U)F=E+(1&x),x=x>>1|(E=0<(F=en(h,f[2],F,p.Qc,0,u,g)))<<3,v=v<<2|(3<F?3:1<F?2:0!=u[g+0]),g+=16;x>>=2,_=_>>1|E<<5}m|=v<<4*y,Q|=x<<4<<y,C|=(240&_)<<y}l.la=Q,B.la=C,d.Hc=w,d.Gc=m,d.ia=43690&m?0:p.ia,f=!(w|m)}if(0<a.L&&(a.wa[a.Y+a.ja]=a.gd[s.$b][s.Za],a.wa[a.Y+a.ja].La|=!f),c.Ka)return WA(A,7,"Premature end-of-file encountered.")}if(ZA(A),a=t,c=1,s=(o=A).D,l=0<o.L&&o.M>=o.zb&&o.M<=o.Va,0==o.Aa)e:{if(s.M=o.M,s.uc=l,It(o,s),c=1,s=(v=o.D).Nb,l=(m=Pn[o.L])*o.R,h=m/2*o.B,b=16*s*o.R,U=8*s*o.B,f=o.sa,d=o.ta-l+b,p=o.qa,u=o.ra-h+U,g=o.Ha,B=o.Ia-h+U,_=0==(x=v.M),w=x>=o.Va-1,2==o.Aa&&It(o,v),v.uc)for(E=(F=o).D.M,e(F.D.uc),v=F.yb;v<F.Hb;++v){C=v,Q=E;var k=(I=(T=F).D).Nb;y=T.R;var I=I.wa[I.Y+C],S=T.sa,j=T.ta+16*k*y+16*C,H=I.dd,N=I.tc;if(0!=N)if(e(3<=N),1==T.L)0<C&&wr(S,j,y,N+4),I.La&&br(S,j,y,N),0<Q&&Br(S,j,y,N+4),I.La&&mr(S,j,y,N);else{var P=T.B,D=T.qa,O=T.ra+8*k*P+8*C,M=T.Ha,T=T.Ia+8*k*P+8*C;k=I.ld,0<C&&(lr(S,j,y,N+4,H,k),hr(D,O,M,T,P,N+4,H,k)),I.La&&(dr(S,j,y,N,H,k),gr(D,O,M,T,P,N,H,k)),0<Q&&(cr(S,j,y,N+4,H,k),ur(D,O,M,T,P,N+4,H,k)),I.La&&(fr(S,j,y,N,H,k),pr(D,O,M,T,P,N,H,k))}}if(o.ia&&alert("todo:DitherRow"),null!=a.put){if(v=16*x,x=16*(x+1),_?(a.y=o.sa,a.O=o.ta+b,a.f=o.qa,a.N=o.ra+U,a.ea=o.Ha,a.W=o.Ia+U):(v-=m,a.y=f,a.O=d,a.f=p,a.N=u,a.ea=g,a.W=B),w||(x-=m),x>a.o&&(x=a.o),a.F=null,a.J=null,null!=o.Fa&&0<o.Fa.length&&v<x&&(a.J=lt(o,a,v,x-v),a.F=o.mb,null==a.F&&0==a.F.length)){c=WA(o,3,"Could not decode alpha data.");break e}v<a.j&&(m=a.j-v,v=a.j,e(!(1&m)),a.O+=o.R*m,a.N+=o.B*(m>>1),a.W+=o.B*(m>>1),null!=a.F&&(a.J+=a.width*m)),v<x&&(a.O+=a.v,a.N+=a.v>>1,a.W+=a.v>>1,null!=a.F&&(a.J+=a.v),a.ka=v-a.j,a.U=a.va-a.v,a.T=x-v,c=a.put(a))}s+1!=o.Ic||w||(r(o.sa,o.ta-l,f,d+16*o.R,l),r(o.qa,o.ra-h,p,u+8*o.B,h),r(o.Ha,o.Ia-h,g,B+8*o.B,h))}if(!c)return WA(A,6,"Output aborted.")}return 1}(A,t)),null!=t.bc&&t.bc(t),o&=1}return o?(A.cb=0,o):0})(A,a)||(t=A.a)}}else t=A.a}0==t&&null!=u.Oa&&u.Oa.fd&&(t=Ht(u.ba))}u=t}l=0!=u?null:11>l?h.f.RGBA.eb:h.f.kb.y}else l=null;return l};var On=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(A,e){for(var t="",r=0;r<4;r++)t+=String.fromCharCode(A[e++]);return t}function l(A,e){return A[e+0]|A[e+1]<<8}function u(A,e){return(A[e+0]|A[e+1]<<8|A[e+2]<<16)>>>0}function h(A,e){return(A[e+0]|A[e+1]<<8|A[e+2]<<16|A[e+3]<<24)>>>0}new a;var f=[0],d=[0],p=[],g=new a,B=A,w=function(A,e){var t={},r=0,n=!1,i=0,s=0;if(t.frames=[],!
100
- /** @license
101
- * Copyright (c) 2017 Dominik Homberger
102
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
103
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
104
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
105
- https://webpjs.appspot.com
106
- WebPRiffParser dominikhlbg@gmail.com
107
- */
108
- function(A,e){for(var t=0;t<4;t++)if(A[e+t]!="RIFF".charCodeAt(t))return!0;return!1}(A,e)){for(h(A,e+=4),e+=8;e<A.length;){var o=c(A,e),a=h(A,e+=4);e+=4;var f=a+(1&a);switch(o){case"VP8 ":case"VP8L":void 0===t.frames[r]&&(t.frames[r]={}),(g=t.frames[r]).src_off=n?s:e-8,g.src_size=i+a+8,r++,n&&(n=!1,i=0,s=0);break;case"VP8X":(g=t.header={}).feature_flags=A[e];var d=e+4;g.canvas_width=1+u(A,d),d+=3,g.canvas_height=1+u(A,d),d+=3;break;case"ALPH":n=!0,i=f+8,s=e-8;break;case"ANIM":(g=t.header).bgcolor=h(A,e),d=e+4,g.loop_count=l(A,d),d+=2;break;case"ANMF":var p,g;(g=t.frames[r]={}).offset_x=2*u(A,e),e+=3,g.offset_y=2*u(A,e),e+=3,g.width=1+u(A,e),e+=3,g.height=1+u(A,e),e+=3,g.duration=u(A,e),e+=3,p=A[e++],g.dispose=1&p,g.blend=p>>1&1}"ANMF"!=o&&(e+=f)}return t}}(B,0);w.response=B,w.rgbaoutput=!0,w.dataurl=!1;var m=w.header?w.header:null,b=w.frames?w.frames:null;if(m){m.loop_counter=m.loop_count,f=[m.canvas_height],d=[m.canvas_width];for(var y=0;y<b.length&&0!=b[y].blend;y++);}var v=b[0],C=g.WebPDecodeRGBA(B,v.src_off,v.src_size,d,f);v.rgba=C,v.imgwidth=d[0],v.imgheight=f[0];for(var Q=0;Q<d[0]*f[0]*4;Q++)p[Q]=C[Q];return this.width=d,this.height=f,this.data=p,this}!function(A){var e,t,r,n,i,s,o,a,c,l=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=void 0!==A.transform?A.transform.clone():new a,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new s,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new s,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof A.ignoreClearRect||A.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new u(this),e=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,a=this.internal.Matrix,c=new l}]);var u=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=A;Object.defineProperty(this,"pdf",{get:function(){return e}});var t=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return t},set:function(A){t=Boolean(A)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(A){r=Boolean(A)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(A){isNaN(A)||(n=A)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(A){isNaN(A)||(i=A)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(A){var e;"number"==typeof A?e=[A,A,A,A]:((e=new Array(4))[0]=A[0],e[1]=A.length>=2?A[1]:e[0],e[2]=A.length>=3?A[2]:e[0],e[3]=A.length>=4?A[3]:e[1]),c.margin=e}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(A){s=A}});var o=0;Object.defineProperty(this,"lastBreak",{get:function(){return o},set:function(A){o=A}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(A){A instanceof l&&(c=A)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(A){c.path=A}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(A){u=A}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(A){var e;e=h(A),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(A){var e=h(A);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(A){-1!==["butt","round","square"].indexOf(A)&&(this.ctx.lineCap=A,this.pdf.setLineCap(A))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(A){isNaN(A)||(this.ctx.lineWidth=A,this.pdf.setLineWidth(A))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(A){-1!==["bevel","round","miter"].indexOf(A)&&(this.ctx.lineJoin=A,this.pdf.setLineJoin(A))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(A){isNaN(A)||(this.ctx.miterLimit=A,this.pdf.setMiterLimit(A))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(A){this.ctx.textBaseline=A}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(A){-1!==["right","end","center","left","start"].indexOf(A)&&(this.ctx.textAlign=A)}});var f=null,d=null,p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(A){f=null,d=null,p=A}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(A){var e;if(this.ctx.font=A,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(A))){var t=e[1];e[2];var r=e[3],n=e[4];e[5];var i=e[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===s?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var o=function(A){var e,t,r=[],n=A.trim();if(""===n)return $n;if(n in Mn)return[Mn[n]];for(;""!==n;){switch(t=null,e=(n=Kn(n)).charAt(0)){case'"':case"'":t=Rn(n.substring(1),e);break;default:t=Vn(n)}if(null===t)return $n;if(r.push(t[0]),""!==(n=Kn(t[1]))&&","!==n.charAt(0))return $n;n=n.replace(/^,/,"")}return r}(i);if(this.fontFaces){var a=function(A,e,t){for(var r=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},On,t.genericFontFamilies||{}),i=null,s=null,o=0;o<e.length;++o)if(n[(i=Pn(e[o])).family]&&(i.family=n[i.family]),A.hasOwnProperty(i.family)){s=A[i.family];break}if(!(s=s||A[r]))throw new Error("Could not find a font-family for the rule '"+Tn(i)+"' and default family '"+r+"'.");if(s=function(A,e){if(e[A])return e[A];var t=jn[A],r=t<=jn.normal?-1:1,n=Dn(e,Sn,t,r);if(!n)throw new Error("Could not find a matching font-stretch value for "+A);return n}(i.stretch,s),s=function(A,e){if(e[A])return e[A];for(var t=In[A],r=0;r<t.length;++r)if(e[t[r]])return e[t[r]];throw new Error("Could not find a matching font-style for "+A)}(i.style,s),!(s=function(A,e){if(e[A])return e[A];if(400===A&&e[500])return e[500];if(500===A&&e[400])return e[400];var t=Nn[A],r=Dn(e,Hn,t,A<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+A);return r}(i.weight,s)))throw new Error("Failed to resolve a font for the rule '"+Tn(i)+"'.");return s}(function(A,e){var t,r,n=A.getFontList(),i=JSON.stringify(n);if(null===f||d!==i){var s=(t=n,r=[],Object.keys(t).forEach(function(A){t[A].forEach(function(e){var t=null;switch(e){case"bold":t={family:A,weight:"bold"};break;case"italic":t={family:A,style:"italic"};break;case"bolditalic":t={family:A,weight:"bold",style:"italic"};break;case"":case"normal":t={family:A}}null!==t&&(t.ref={name:A,style:e},r.push(t))})}),r);f=function(A){for(var e={},t=0;t<A.length;++t){var r=Pn(A[t]),n=r.family,i=r.stretch,s=r.style,o=r.weight;e[n]=e[n]||{},e[n][i]=e[n][i]||{},e[n][i][s]=e[n][i][s]||{},e[n][i][s][o]=r}return e}(s.concat(e)),d=i}return f}(this.pdf,this.fontFaces),o.map(function(A){return{family:A,stretch:"normal",weight:r,style:t}}));this.pdf.setFont(a.ref.name,a.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===t)&&(c="bold"),"italic"===t&&(c+="italic"),0===c.length&&(c="normal");for(var l="",u={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<o.length;h++){if(void 0!==this.pdf.internal.getFont(o[h],c,{noFallback:!0,disableWarning:!0})){l=o[h];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(o[h],"bold",{noFallback:!0,disableWarning:!0}))l=o[h],c="bold";else if(void 0!==this.pdf.internal.getFont(o[h],"normal",{noFallback:!0,disableWarning:!0})){l=o[h],c="normal";break}}if(""===l)for(var p=0;p<o.length;p++)if(u[o[p]]){l=u[o[p]];break}l=""===l?"Times":l,this.pdf.setFont(l,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(A){this.ctx.globalCompositeOperation=A}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(A){this.ctx.globalAlpha=A}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(A){this.ctx.lineDashOffset=A,P.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(A){this.ctx.lineDash=A,P.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(A){this.ctx.ignoreClearRect=Boolean(A)}})};u.prototype.setLineDash=function(A){this.lineDash=A},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){b.call(this,"fill",!1)},u.prototype.stroke=function(){b.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(A,e){if(isNaN(A)||isNaN(e))throw cr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var t=this.ctx.transform.applyToPoint(new s(A,e));this.path.push({type:"mt",x:t.x,y:t.y}),this.ctx.lastPoint=new s(A,e)},u.prototype.closePath=function(){var A=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===oA(this.path[e+1])&&"number"==typeof this.path[e+1].x){A=new s(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(A.x,A.y)},u.prototype.lineTo=function(A,e){if(isNaN(A)||isNaN(e))throw cr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var t=this.ctx.transform.applyToPoint(new s(A,e));this.path.push({type:"lt",x:t.x,y:t.y}),this.ctx.lastPoint=new s(t.x,t.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},u.prototype.quadraticCurveTo=function(A,e,t,r){if(isNaN(t)||isNaN(r)||isNaN(A)||isNaN(e))throw cr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new s(t,r)),i=this.ctx.transform.applyToPoint(new s(A,e));this.path.push({type:"qct",x1:i.x,y1:i.y,x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},u.prototype.bezierCurveTo=function(A,e,t,r,n,i){if(isNaN(n)||isNaN(i)||isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r))throw cr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(n,i)),a=this.ctx.transform.applyToPoint(new s(A,e)),c=this.ctx.transform.applyToPoint(new s(t,r));this.path.push({type:"bct",x1:a.x,y1:a.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},u.prototype.arc=function(A,e,t,r,n,i){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw cr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(A,e));A=o.x,e=o.y;var a=this.ctx.transform.applyToPoint(new s(0,t)),c=this.ctx.transform.applyToPoint(new s(0,0));t=Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2))}Math.abs(n-r)>=2*Math.PI&&(r=0,n=2*Math.PI),this.path.push({type:"arc",x:A,y:e,radius:t,startAngle:r,endAngle:n,counterclockwise:i})},u.prototype.arcTo=function(A,e,t,r,n){throw new Error("arcTo not implemented.")},u.prototype.rect=function(A,e,t,r){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r))throw cr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,e),this.lineTo(A+t,e),this.lineTo(A+t,e+r),this.lineTo(A,e+r),this.lineTo(A,e),this.lineTo(A+t,e),this.lineTo(A,e)},u.prototype.fillRect=function(A,e,t,r){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r))throw cr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,e,t,r),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},u.prototype.strokeRect=function(A,e,t,r){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r))throw cr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");d.call(this)||(this.beginPath(),this.rect(A,e,t,r),this.stroke())},u.prototype.clearRect=function(A,e,t,r){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r))throw cr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,e,t,r))},u.prototype.save=function(A){A="boolean"!=typeof A||A;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,t=0;t<this.pdf.internal.getNumberOfPages();t++)this.pdf.setPage(t+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},u.prototype.restore=function(A){A="boolean"!=typeof A||A;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,t=0;t<this.pdf.internal.getNumberOfPages();t++)this.pdf.setPage(t+1),this.pdf.internal.out("Q");this.pdf.setPage(e),A&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(A){var e,t,r,n;if(!0===A.isCanvasGradient&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))e=0,t=0,r=0,n=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(null!==i)e=parseInt(i[1]),t=parseInt(i[2]),r=parseInt(i[3]),n=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)))e=parseInt(i[1]),t=parseInt(i[2]),r=parseInt(i[3]),n=parseFloat(i[4]);else{if(n=1,"string"==typeof A&&"#"!==A.charAt(0)){var s=new dr(A);A=s.ok?s.toHex():"#000000"}4===A.length?(e=A.substring(1,2),e+=e,t=A.substring(2,3),t+=t,r=A.substring(3,4),r+=r):(e=A.substring(1,3),t=A.substring(3,5),r=A.substring(5,7)),e=parseInt(e,16),t=parseInt(t,16),r=parseInt(r,16)}}return{r:e,g:t,b:r,a:n,style:A}},f=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},d=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};u.prototype.fillText=function(A,e,t,r){if(isNaN(e)||isNaN(t)||"string"!=typeof A)throw cr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!f.call(this)){var n=j(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;L.call(this,{text:A,x:e,y:t,scale:i,angle:n,align:this.textAlign,maxWidth:r})}},u.prototype.strokeText=function(A,e,t,r){if(isNaN(e)||isNaN(t)||"string"!=typeof A)throw cr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!d.call(this)){r=isNaN(r)?void 0:r;var n=j(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;L.call(this,{text:A,x:e,y:t,scale:i,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:r})}},u.prototype.measureText=function(A){if("string"!=typeof A)throw cr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,t=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),n=e.getStringUnitWidth(A)*r/e.internal.scaleFactor;return new function(A){var e=(A=A||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:n*=Math.round(96*t/72*1e4)/1e4})},u.prototype.scale=function(A,e){if(isNaN(A)||isNaN(e))throw cr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var t=new a(A,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(t)},u.prototype.rotate=function(A){if(isNaN(A))throw cr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new a(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},u.prototype.translate=function(A,e){if(isNaN(A)||isNaN(e))throw cr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var t=new a(1,0,0,1,A,e);this.ctx.transform=this.ctx.transform.multiply(t)},u.prototype.transform=function(A,e,t,r,n,i){if(isNaN(A)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i))throw cr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new a(A,e,t,r,n,i);this.ctx.transform=this.ctx.transform.multiply(s)},u.prototype.setTransform=function(A,e,t,r,n,i){A=isNaN(A)?1:A,e=isNaN(e)?0:e,t=isNaN(t)?0:t,r=isNaN(r)?1:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i,this.ctx.transform=new a(A,e,t,r,n,i)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(A,e,t,r,n,i,s,c,l){var u=this.pdf.getImageProperties(A),h=1,f=1,d=1,B=1;void 0!==r&&void 0!==c&&(d=c/r,B=l/n,h=u.width/r*c/r,f=u.height/n*l/n),void 0===i&&(i=e,s=t,e=0,t=0),void 0!==r&&void 0===c&&(c=r,l=n),void 0===r&&void 0===c&&(c=u.width,l=u.height);var b=this.ctx.transform.decompose(),v=j(b.rotate.shx),C=new a,Q=(C=(C=(C=C.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new o(i-e*d,s-t*B,r*h,n*f));if(this.autoPaging){for(var F,U=g.call(this,Q),x=[],L=0;L<U.length;L+=1)-1===x.indexOf(U[L])&&x.push(U[L]);m(x);for(var _=x[0],E=x[x.length-1],k=_;k<E+1;k++){this.pdf.setPage(k);var I=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===k?this.posY+this.margin[0]:this.margin[0],H=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],N=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===k?0:H+(k-2)*N;if(0!==this.ctx.clip_path.length){var D=this.path;F=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(F,this.posX+this.margin[3],-P+S+this.ctx.prevPageLastElemOffset),y.call(this,"fill",!0),this.path=D}var O=JSON.parse(JSON.stringify(Q));O=w([O],this.posX+this.margin[3],-P+S+this.ctx.prevPageLastElemOffset)[0];var M=(k>_||k<E)&&p.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,N,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",O.x,O.y,O.w,O.h,null,null,v),M&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(A,"JPEG",Q.x,Q.y,Q.w,Q.h,null,null,v)};var g=function(A,e,t){var r=[];e=e||this.pdf.internal.pageSize.width,t=t||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":r.push(Math.floor((A.y+n)/t)+1);break;case"arc":r.push(Math.floor((A.y+n-A.radius)/t)+1),r.push(Math.floor((A.y+n+A.radius)/t)+1);break;case"qct":var i=H(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);r.push(Math.floor((i.y+n)/t)+1),r.push(Math.floor((i.y+i.h+n)/t)+1);break;case"bct":var s=N(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);r.push(Math.floor((s.y+n)/t)+1),r.push(Math.floor((s.y+s.h+n)/t)+1);break;case"rect":r.push(Math.floor((A.y+n)/t)+1),r.push(Math.floor((A.y+A.h+n)/t)+1)}for(var o=0;o<r.length;o+=1)for(;this.pdf.internal.getNumberOfPages()<r[o];)B.call(this);return r},B=function(){var A=this.fillStyle,e=this.strokeStyle,t=this.font,r=this.lineCap,n=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=e,this.font=t,this.lineCap=r,this.lineWidth=n,this.lineJoin=i},w=function(A,e,t){for(var r=0;r<A.length;r++)switch(A[r].type){case"bct":A[r].x2+=e,A[r].y2+=t;case"qct":A[r].x1+=e,A[r].y1+=t;default:A[r].x+=e,A[r].y+=t}return A},m=function(A){return A.sort(function(A,e){return A-e})},b=function(A,e){var t=this.fillStyle,r=this.strokeStyle,n=this.lineCap,i=this.lineWidth,s=Math.abs(i*this.ctx.transform.scaleX),o=this.lineJoin;if(this.autoPaging){for(var a,c,l=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<u.length;f++)if(void 0!==u[f].x)for(var d=g.call(this,u[f]),b=0;b<d.length;b+=1)-1===h.indexOf(d[b])&&h.push(d[b]);for(var v=0;v<h.length;v++)for(;this.pdf.internal.getNumberOfPages()<h[v];)B.call(this);m(h);for(var C=h[0],Q=h[h.length-1],F=C;F<Q+1;F++){this.pdf.setPage(F),this.fillStyle=t,this.strokeStyle=r,this.lineCap=n,this.lineWidth=s,this.lineJoin=o;var U=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],x=1===F?this.posY+this.margin[0]:this.margin[0],L=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===F?0:L+(F-2)*_;if(0!==this.ctx.clip_path.length){var k=this.path;a=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(a,this.posX+this.margin[3],-E+x+this.ctx.prevPageLastElemOffset),y.call(this,A,!0),this.path=k}if(c=JSON.parse(JSON.stringify(l)),this.path=w(c,this.posX+this.margin[3],-E+x+this.ctx.prevPageLastElemOffset),!1===e||0===F){var I=(F>C||F<Q)&&p.call(this);I&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],U,_,null).clip().discardPath()),y.call(this,A,e),I&&this.pdf.restoreGraphicsState()}this.lineWidth=i}this.path=l}else this.lineWidth=s,y.call(this,A,e),this.lineWidth=i},y=function(A,e){if(("stroke"!==A||e||!d.call(this))&&("stroke"===A||e||!f.call(this))){for(var t,r,n=[],i=this.path,s=0;s<i.length;s++){var o=i[s];switch(o.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:o,deltas:[],abs:[]});break;case"lt":var a=n.length;if(i[s-1]&&!isNaN(i[s-1].x)&&(t=[o.x-i[s-1].x,o.y-i[s-1].y],a>0))for(;a>=0;a--)if(!0!==n[a-1].close&&!0!==n[a-1].begin){n[a-1].deltas.push(t),n[a-1].abs.push(o);break}break;case"bct":t=[o.x1-i[s-1].x,o.y1-i[s-1].y,o.x2-i[s-1].x,o.y2-i[s-1].y,o.x-i[s-1].x,o.y-i[s-1].y],n[n.length-1].deltas.push(t);break;case"qct":var c=i[s-1].x+2/3*(o.x1-i[s-1].x),l=i[s-1].y+2/3*(o.y1-i[s-1].y),u=o.x+2/3*(o.x1-o.x),h=o.y+2/3*(o.y1-o.y),p=o.x,g=o.y;t=[c-i[s-1].x,l-i[s-1].y,u-i[s-1].x,h-i[s-1].y,p-i[s-1].x,g-i[s-1].y],n[n.length-1].deltas.push(t);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(o)}}r=e?null:"stroke"===A?"stroke":"fill";for(var B=!1,w=0;w<n.length;w++)if(n[w].arc)for(var m=n[w].abs,b=0;b<m.length;b++){var y=m[b];"arc"===y.type?Q.call(this,y.x,y.y,y.radius,y.startAngle,y.endAngle,y.counterclockwise,void 0,e,!B):_.call(this,y.x,y.y),B=!0}else if(!0===n[w].close)this.pdf.internal.out("h"),B=!1;else if(!0!==n[w].begin){var v=n[w].start.x,C=n[w].start.y;E.call(this,n[w].deltas,v,C),B=!0}r&&F.call(this,r),e&&U.call(this)}},v=function(A){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,t=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-t;case"top":return A+e-t;case"hanging":return A+e-2*t;case"middle":return A+e/2-t;default:return A}},C=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(A,e){this.colorStops.push([A,e])},A.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Q=function(A,e,t,r,n,i,s,o,a){for(var c=I.call(this,t,r,n,i),l=0;l<c.length;l++){var u=c[l];0===l&&(a?x.call(this,u.x1+A,u.y1+e):_.call(this,u.x1+A,u.y1+e)),k.call(this,A,e,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}o?U.call(this):F.call(this,s)},F=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},U=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(A,e){this.pdf.internal.out(t(A)+" "+r(e)+" m")},L=function(A){var e;switch(A.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var t,r,n,i=this.pdf.getTextDimensions(A.text),c=v.call(this,A.y),l=C.call(this,c)-i.h,u=this.ctx.transform.applyToPoint(new s(A.x,c));if(this.autoPaging){var h=this.ctx.transform.decompose(),f=new a;f=(f=(f=f.multiply(h.translate)).multiply(h.skew)).multiply(h.scale);for(var d=this.ctx.transform.applyToRectangle(new o(A.x,c,i.w,i.h)),B=f.applyToRectangle(new o(A.x,l,i.w,i.h)),b=g.call(this,B),Q=[],F=0;F<b.length;F+=1)-1===Q.indexOf(b[F])&&Q.push(b[F]);m(Q);for(var U=Q[0],x=Q[Q.length-1],L=U;L<x+1;L++){this.pdf.setPage(L);var _=1===L?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[2],I=k-this.margin[0],S=this.pdf.internal.pageSize.width-this.margin[1],j=S-this.margin[3],H=1===L?0:E+(L-2)*I;if(0!==this.ctx.clip_path.length){var N=this.path;t=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(t,this.posX+this.margin[3],-1*H+_),y.call(this,"fill",!0),this.path=N}var P=w([JSON.parse(JSON.stringify(B))],this.posX+this.margin[3],-H+_+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*A.scale),n=this.lineWidth,this.lineWidth=n*A.scale);var D="text"!==this.autoPaging;if(D||P.y+P.h<=k){if(D||P.y>=_&&P.x<=S){var O=D?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||S-P.x)[0],M=w([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-H+_+this.ctx.prevPageLastElemOffset)[0],T=D&&(L>U||L<x)&&p.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],j,I,null).clip().discardPath()),this.pdf.text(O,M.x,M.y,{angle:A.angle,align:e,renderingMode:A.renderingMode}),T&&this.pdf.restoreGraphicsState()}}else P.y<k&&(this.ctx.prevPageLastElemOffset+=k-P.y);A.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=n)}}else A.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*A.scale),n=this.lineWidth,this.lineWidth=n*A.scale),this.pdf.text(A.text,u.x+this.posX,u.y+this.posY,{angle:A.angle,align:e,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=n)},_=function(A,e,n,i){n=n||0,i=i||0,this.pdf.internal.out(t(A+n)+" "+r(e+i)+" l")},E=function(A,e,t){return this.pdf.lines(A,e,t,null,null)},k=function(A,t,r,s,o,a,c,l){this.pdf.internal.out([e(n(r+A)),e(i(s+t)),e(n(o+A)),e(i(a+t)),e(n(c+A)),e(i(l+t)),"c"].join(" "))},I=function(A,e,t,r){for(var n=2*Math.PI,i=Math.PI/2;e>t;)e-=n;var s=Math.abs(t-e);s<n&&r&&(s=n-s);for(var o=[],a=r?-1:1,c=e;s>1e-5;){var l=c+a*Math.min(s,i);o.push(S.call(this,A,c,l)),s-=Math.abs(l-c),c=l}return o},S=function(A,e,t){var r=(t-e)/2,n=A*Math.cos(r),i=A*Math.sin(r),s=n,o=-i,a=s*s+o*o,c=a+s*n+o*i,l=4/3*(Math.sqrt(2*a*c)-c)/(s*i-o*n),u=s-l*o,h=o+l*s,f=u,d=-h,p=r+e,g=Math.cos(p),B=Math.sin(p);return{x1:A*Math.cos(e),y1:A*Math.sin(e),x2:u*g-h*B,y2:u*B+h*g,x3:f*g-d*B,y3:f*B+d*g,x4:A*Math.cos(t),y4:A*Math.sin(t)}},j=function(A){return 180*A/Math.PI},H=function(A,e,t,r,n,i){var s=A+.5*(t-A),a=e+.5*(r-e),c=n+.5*(t-n),l=i+.5*(r-i),u=Math.min(A,n,s,c),h=Math.max(A,n,s,c),f=Math.min(e,i,a,l),d=Math.max(e,i,a,l);return new o(u,f,h-u,d-f)},N=function(A,e,t,r,n,i,s,a){var c,l,u,h,f,d,p,g,B,w,m,b,y,v,C=t-A,Q=r-e,F=n-t,U=i-r,x=s-n,L=a-i;for(l=0;l<41;l++)B=(p=(u=A+(c=l/40)*C)+c*((f=t+c*F)-u))+c*(f+c*(n+c*x-f)-p),w=(g=(h=e+c*Q)+c*((d=r+c*U)-h))+c*(d+c*(i+c*L-d)-g),0==l?(m=B,b=w,y=B,v=w):(m=Math.min(m,B),b=Math.min(b,w),y=Math.max(y,B),v=Math.max(v,w));return new o(Math.round(m),Math.round(b),Math.round(y-m),Math.round(v-b))},P=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,e,t=(A=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:e}));this.prevLineDash!==t&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=t)}}}(Mr.API),
109
- /**
110
- * @license
111
- * jsPDF filters PlugIn
112
- * Copyright (c) 2014 Aras Abbasi
113
- *
114
- * Licensed under the MIT License.
115
- * http://opensource.org/licenses/mit-license
116
- */
117
- function(A){var e=function(A){var e,t,r,n,i,s,o,a,c,l;for(t=[],r=0,n=(A+=e="\0\0\0\0".slice(A.length%4||4)).length;n>r;r+=4)0!==(i=(A.charCodeAt(r)<<24)+(A.charCodeAt(r+1)<<16)+(A.charCodeAt(r+2)<<8)+A.charCodeAt(r+3))?(s=(i=((i=((i=((i=(i-(l=i%85))/85)-(c=i%85))/85)-(a=i%85))/85)-(o=i%85))/85)%85,t.push(s+33,o+33,a+33,c+33,l+33)):t.push(122);return function(A,e){for(var t=e;t>0;t--)A.pop()}(t,e.length),String.fromCharCode.apply(String,t)+"~>"},t=function(A){var e,t,r,n,i,s=String,o="length",a=255,c="charCodeAt",l="slice",u="replace";for(A[l](-2),A=A[l](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],n=0,i=(A+=e="uuuuu"[l](A[o]%5||5))[o];i>n;n+=5)t=52200625*(A[c](n)-33)+614125*(A[c](n+1)-33)+7225*(A[c](n+2)-33)+85*(A[c](n+3)-33)+(A[c](n+4)-33),r.push(a&t>>24,a&t>>16,a&t>>8,a&t);return function(A,e){for(var t=e;t>0;t--)A.pop()}(r,e[o]),s.fromCharCode.apply(s,r)},r=function(A){return A.split("").map(function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(A){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(A=A.replace(/\s/g,"")).indexOf(">")&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),!1===e.test(A))return"";for(var t="",r=0;r<A.length;r+=2)t+=String.fromCharCode("0x"+(A[r]+A[r+1]));return t},i=function(A){for(var e=new Uint8Array(A.length),t=A.length;t--;)e[t]=A.charCodeAt(t);return(e=TA(e)).reduce(function(A,e){return A+String.fromCharCode(e)},"")};A.processDataByFilters=function(A,s){var o=0,a=A||"",c=[];for("string"==typeof(s=s||[])&&(s=[s]),o=0;o<s.length;o+=1)switch(s[o]){case"ASCII85Decode":case"/ASCII85Decode":a=t(a),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":a=e(a),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":a=n(a),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":a=r(a),c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":a=i(a),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[o]+'" is not implemented')}return{data:a,reverseChain:c.reverse().join(" ")}}}(Mr.API),
118
- /**
119
- * @license
120
- * jsPDF fileloading PlugIn
121
- * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
122
- *
123
- * Licensed under the MIT License.
124
- * http://opensource.org/licenses/mit-license
125
- */
126
- function(A){A.loadFile=function(A,e,t){return function(A,e,t){e=!1!==e,t="function"==typeof t?t:function(){};var r=void 0;try{r=function(A,e,t){var r=new XMLHttpRequest,n=0,i=function(A){var e=A.length,t=[],r=String.fromCharCode;for(n=0;n<e;n+=1)t.push(r(255&A.charCodeAt(n)));return t.join("")};if(r.open("GET",A,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?t(i(this.responseText)):t(void 0)}),r.send(null),e&&200===r.status)return i(r.responseText)}(A,e,t)}catch(n){}return r}(A,e,t)},A.loadImageFile=A.loadFile}(Mr.API),function(A){function e(){return(or.html2canvas?Promise.resolve(or.html2canvas):i(()=>import("./html2canvas-D-Nv0RTX.js").then(A=>A.h),__vite__mapDeps([0,1,2]))).catch(function(A){return Promise.reject(new Error("Could not load html2canvas: "+A))}).then(function(A){return A.default?A.default:A})}function t(){return(or.DOMPurify?Promise.resolve(or.DOMPurify):i(()=>import("./purify.es-DpMHVkxQ.js"),[])).catch(function(A){return Promise.reject(new Error("Could not load dompurify: "+A))}).then(function(A){return A.default?A.default:A})}var r=function(A){var e=oA(A);return"undefined"===e?"undefined":"string"===e||A instanceof String?"string":"number"===e||A instanceof Number?"number":"function"===e||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===e?"object":"unknown"},n=function(A,e){var t=document.createElement(A);for(var r in e.className&&(t.className=e.className),e.innerHTML&&e.dompurify&&(t.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)t.style[r]=e.style[r];return t},s=function A(e,t){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==t&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,t));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r},o=function A(e){var t=Object.assign(A.convert(Promise.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(Promise.resolve(),t);return(r=r.setProgress(1,A,1,[A])).set(e)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(A,e){return A.__proto__=e||o.prototype,A},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(A,e){return this.then(function(){switch(e=e||function(A){switch(r(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A)){case"string":return this.then(t).then(function(e){return this.set({src:n("div",{innerHTML:A,dompurify:e})})});case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}})},o.prototype.to=function(A){switch(A){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var A={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(A.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:A}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(e).then(function(A){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,A(this.prop.container,e)}).then(function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(e).then(function(A){var e=this.opt.jsPDF,t=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,n=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=t,t)for(var i=0;i<t.length;++i){var s=t[i],o=s.src.find(function(A){return"truetype"===A.format});o&&e.addFont(o.url,s.ref.name,s.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,e.context2d.save(!0),A(this.prop.container,n)}).then(function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(A,e,t){return"img"===(t=t||"pdf").toLowerCase()||"image"===t.toLowerCase()?this.outputImg(A,e):this.outputPdf(A,e)},o.prototype.outputPdf=function(A,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(A,e)})},o.prototype.outputImg=function(A){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(A){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+A+'" is not supported.'}})},o.prototype.save=function(A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(A?{filename:A}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(A){if("object"!==r(A))return this;var e=Object.keys(A||{}).map(function(e){if(e in o.template.prop)return function(){this.prop[e]=A[e]};switch(e){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[e]=A[e]}}},this);return this.then(function(){return this.thenList(e)})},o.prototype.get=function(A,e){return this.then(function(){var t=A in o.template.prop?this.prop[A]:this.opt[A];return e?e(t):t})},o.prototype.setMargin=function(A){return this.then(function(){switch(r(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A}).then(this.setPageSize)},o.prototype.setPageSize=function(A){function e(A,e){return Math.floor(A*e/72*96)}return this.then(function(){(A=A||Mr.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(A.inner={width:A.width-this.opt.margin[1]-this.opt.margin[3],height:A.height-this.opt.margin[0]-this.opt.margin[2]},A.inner.px={width:e(A.inner.width,A.k),height:e(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A})},o.prototype.setProgress=function(A,e,t,r){return null!=A&&(this.progress.val=A),null!=e&&(this.progress.state=e),null!=t&&(this.progress.n=t),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(A,e,t,r){return this.setProgress(A?this.progress.val+A:null,e||null,t?this.progress.n+t:null,r?this.progress.stack.concat(r):null)},o.prototype.then=function(A,e){var t=this;return this.thenCore(A,e,function(A,e){return t.updateProgress(null,null,1,[A]),Promise.prototype.then.call(this,function(e){return t.updateProgress(null,A),e}).then(A,e).then(function(A){return t.updateProgress(1),A})})},o.prototype.thenCore=function(A,e,t){t=t||Promise.prototype.then;var r=this;A&&(A=A.bind(r)),e&&(e=e.bind(r));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:o.convert(Object.assign({},r),Promise.prototype),i=t.call(n,A,e);return o.convert(i,r.__proto__)},o.prototype.thenExternal=function(A,e){return Promise.prototype.then.call(this,A,e)},o.prototype.thenList=function(A){var e=this;return A.forEach(function(A){e=e.thenCore(A)}),e},o.prototype.catch=function(A){A&&(A=A.bind(this));var e=Promise.prototype.catch.call(this,A);return o.convert(e,this)},o.prototype.catchExternal=function(A){return Promise.prototype.catch.call(this,A)},o.prototype.error=function(A){return this.then(function(){throw new Error(A)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Mr.getPageSize=function(A,e,t){if("object"===oA(A)){var r=A;A=r.orientation,e=r.unit||e,t=r.format||t}e=e||"mm",t=t||"a4",A=(""+(A||"P")).toLowerCase();var n,i=(""+t).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":n=1;break;case"mm":n=72/25.4;break;case"cm":n=72/2.54;break;case"in":n=72;break;case"px":n=.75;break;case"pc":case"em":n=12;break;case"ex":n=6;break;default:throw"Invalid unit: "+e}var o,a=0,c=0;if(s.hasOwnProperty(i))a=s[i][1]/n,c=s[i][0]/n;else try{a=t[1],c=t[0]}catch(l){throw new Error("Invalid format: "+t)}if("p"===A||"portrait"===A)A="p",c>a&&(o=c,c=a,a=o);else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",a>c&&(o=c,c=a,a=o)}return{width:c,height:a,unit:e,k:n,orientation:A}},A.html=function(A,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Pn):null;var t=new o(e);return e.worker?t:t.from(A).doCallback()}}(Mr.API),Mr.API.addJS=function(A){return zn=A,this.internal.events.subscribe("postPutResources",function(){Gn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Gn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),qn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+zn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==Gn&&void 0!==qn&&this.internal.out("/Names <</JavaScript "+Gn+" 0 R>>")}),this},
127
- /**
128
- * @license
129
- * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
130
- *
131
- * Licensed under the MIT License.
132
- * http://opensource.org/licenses/mit-license
133
- */
134
- function(A){var e;A.events.push(["postPutResources",function(){var A=this,t=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=A.outline.render().split(/\r\n/),n=0;n<r.length;n++){var i=r[n],s=t.exec(i);if(null!=s){var o=s[1];A.internal.newObjectDeferredBegin(o,!1)}A.internal.write(i)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,c=[];for(n=0;n<a;n++){var l=A.internal.newObject();c.push(l);var u=A.internal.getPageInfo(n+1);A.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var h=A.internal.newObject();for(A.internal.write("<< /Names [ "),n=0;n<c.length;n++)A.internal.write("(page_"+(n+1)+")"+c[n]+" 0 R");A.internal.write(" ] >>","endobj"),e=A.internal.newObject(),A.internal.write("<< /Dests "+h+" 0 R"),A.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+e+" 0 R"))}]),A.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(A,e,t){var r={title:e,options:t,children:[]};return null==A&&(A=this.root),A.children.push(r),r},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(e){e.id=A.internal.newObjectDeferred();for(var t=0;t<e.children.length;t++)this.genIds_r(e.children[t])},A.outline.renderRoot=function(A){this.objStart(A),this.line("/Type /Outlines"),A.children.length>0&&(this.line("/First "+this.makeRef(A.children[0])),this.line("/Last "+this.makeRef(A.children[A.children.length-1]))),this.line("/Count "+this.count_r({count:0},A)),this.objEnd()},A.outline.renderItems=function(e){for(var t=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var n=e.children[r];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var i=this.count=this.count_r({count:0},n);if(i>0&&this.line("/Count "+i),n.options&&n.options.pageNumber){var s=A.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+t(0)+" 0]")}this.objEnd()}for(var o=0;o<e.children.length;o++)this.renderItems(e.children[o])},A.outline.line=function(A){this.ctx.val+=A+"\r\n"},A.outline.makeRef=function(A){return A.id+" 0 R"},A.outline.makeString=function(e){return"("+A.internal.pdfEscape(e)+")"},A.outline.objStart=function(A){this.ctx.val+="\r\n"+A.id+" 0 obj\r\n<<\r\n"},A.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},A.outline.count_r=function(A,e){for(var t=0;t<e.children.length;t++)A.count++,this.count_r(A,e.children[t]);return A.count}}])}(Mr.API),
135
- /**
136
- * @license
137
- *
138
- * Licensed under the MIT License.
139
- * http://opensource.org/licenses/mit-license
140
- */
141
- function(A){var e=[192,193,194,195,196,197,198,199];A.processJPEG=function(A,t,r,n,i,s){var o,a=this.decode.DCT_DECODE,c=null;if("string"==typeof A||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=i||A,A=this.__addimage__.isArrayBuffer(A)?new Uint8Array(A):A,(o=function(A){for(var t,r=256*A.charCodeAt(4)+A.charCodeAt(5),n=A.length,i={width:0,height:0,numcomponents:1},s=4;s<n;s+=2){if(s+=r,-1!==e.indexOf(A.charCodeAt(s+1))){t=256*A.charCodeAt(s+5)+A.charCodeAt(s+6),i={width:256*A.charCodeAt(s+7)+A.charCodeAt(s+8),height:t,numcomponents:A.charCodeAt(s+9)};break}r=256*A.charCodeAt(s+2)+A.charCodeAt(s+3)}return i}(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}c={data:A,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:a,index:t,alias:r}}return c}}(Mr.API),Mr.API.processPNG=function(A,e,t,r){if(this.__addimage__.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.__addimage__.isArrayBufferView(A)){var n,i=new nr(A,{checkCrc:!0}).decode(),s=i.width,o=i.height,a=i.channels,c=i.palette,l=i.depth;n=c&&1===a?function(A){for(var e=A.width,t=A.height,r=A.data,n=A.palette,i=A.depth,s=!1,o=[],a=[],c=void 0,l=!1,u=0,h=0;h<n.length;h++){var f=VA(n[h],4),d=f[0],p=f[1],g=f[2],B=f[3];o.push(d,p,g),null!=B&&(0===B?(u++,a.length<1&&a.push(h)):B<255&&(l=!0))}if(l||u>1){s=!0,a=void 0;var w=e*t;c=new Uint8Array(w);for(var m=new DataView(r.buffer),b=0;b<w;b++){var y=VA(n[ai(m,b,i)],4)[3];c[b]=y}}else 0===u&&(a=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:r,alphaBytes:c,needSMask:s,palette:o,mask:a}}(i):2===a||4===a?function(A){for(var e=A.data,t=A.width,r=A.height,n=A.channels,i=A.depth,s=2===n?"DeviceGray":"DeviceRGB",o=n-1,a=t*r,c=o,l=a*c,u=1*a,h=Math.ceil(l*i/8),f=Math.ceil(u*i/8),d=new Uint8Array(h),p=new Uint8Array(f),g=new DataView(e.buffer),B=new DataView(d.buffer),w=new DataView(p.buffer),m=!1,b=0;b<a;b++){for(var y=b*n,v=0;v<c;v++)ci(B,ai(g,y+v,i),b*c+v,i);var C=ai(g,y+c,i);C<(1<<i)-1&&(m=!0),ci(w,C,1*b,i)}return{colorSpace:s,colorsPerPixel:o,sMaskBitsPerComponent:m?i:void 0,colorBytes:d,alphaBytes:p,needSMask:m}}(i):function(A){var e=A.data,t=1===A.channels?"DeviceGray":"DeviceRGB";return{colorSpace:t,colorsPerPixel:"DeviceGray"===t?1:3,colorBytes:e instanceof Uint16Array?function(A){for(var e=A.length,t=new Uint8Array(2*e),r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=0;n<e;n++)r.setUint16(2*n,A[n],!1);return t}(e):e,needSMask:!1}}(i);var u,h,f,d=n,p=d.colorSpace,g=d.colorsPerPixel,B=d.sMaskBitsPerComponent,w=d.colorBytes,m=d.alphaBytes,b=d.needSMask,y=d.palette,v=d.mask,C=null;return r!==Mr.API.image_compression.NONE?(C=function(A){var e;switch(A){case Mr.API.image_compression.FAST:e=11;break;case Mr.API.image_compression.MEDIUM:e=13;break;case Mr.API.image_compression.SLOW:e=14;break;default:e=12}return e}(r),u=this.decode.FLATE_DECODE,h="/Predictor ".concat(C," /Colors ").concat(g," /BitsPerComponent ").concat(l," /Columns ").concat(s),A=Ai(w,Math.ceil(s*g*l/8),g,l,r),b&&(f=Ai(m,Math.ceil(s*B/8),1,B,r))):(u=void 0,h=void 0,A=w,b&&(f=m)),(this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A))&&(A=this.__addimage__.arrayBufferToBinaryString(A)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:t,data:A,index:e,filter:u,decodeParameters:h,transparency:v,palette:y,sMask:f,predictor:C,width:s,height:o,bitsPerComponent:l,sMaskBitsPerComponent:B,colorSpace:p}}},function(A){A.processGIF89A=function(e,t,r,n){var i=new ui(e),s=i.width,o=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var c={data:a,width:s,height:o},l=new fi(100).encode(c,100);return A.processJPEG.call(this,l,t,r,n)},A.processGIF87A=A.processGIF89A}(Mr.API),di.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var e=0;e<A;e++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:r,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},di.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[A]()}catch(t){cr.log("bit decode error:"+t)}},di.prototype.bit1=function(){var A,e=Math.ceil(this.width/8),t=e%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*n*4,o=0;o<8&&8*n+o<this.width;o++){var a=this.palette[i>>7-o&1];this.data[s+4*o]=a.blue,this.data[s+4*o+1]=a.green,this.data[s+4*o+2]=a.red,this.data[s+4*o+3]=255}0!==t&&(this.pos+=4-t)}},di.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),e=A%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*n*4,o=i>>4,a=15&i,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*n+1>=this.width)break;c=this.palette[a],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}0!==e&&(this.pos+=4-e)}},di.prototype.bit8=function(){for(var A=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;if(n<this.palette.length){var s=this.palette[n];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==A&&(this.pos+=4-A)}},di.prototype.bit15=function(){for(var A=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&e)/e*255|0,o=(i>>5&e)/e*255|0,a=(i>>10&e)/e*255|0,c=i>>15?255:0,l=r*this.width*4+4*n;this.data[l]=a,this.data[l+1]=o,this.data[l+2]=s,this.data[l+3]=c}this.pos+=A}},di.prototype.bit16=function(){for(var A=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,a=(s>>5&t)/t*255|0,c=(s>>11)/e*255|0,l=n*this.width*4+4*i;this.data[l]=c,this.data[l+1]=a,this.data[l+2]=o,this.data[l+3]=255}this.pos+=A}},di.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var e=this.bottom_up?A:this.height-1-A,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},di.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var e=this.bottom_up?A:this.height-1-A,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*t;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=s}},di.prototype.getData=function(){return this.data},
142
- /**
143
- * @license
144
- * Copyright (c) 2018 Aras Abbasi
145
- *
146
- * Licensed under the MIT License.
147
- * http://opensource.org/licenses/mit-license
148
- */
149
- function(A){A.processBMP=function(e,t,r,n){var i=new di(e,!1),s=i.width,o=i.height,a={data:i.getData(),width:s,height:o},c=new fi(100).encode(a,100);return A.processJPEG.call(this,c,t,r,n)}}(Mr.API),pi.prototype.getData=function(){return this.data},
150
- /**
151
- * @license
152
- * Copyright (c) 2019 Aras Abbasi
153
- *
154
- * Licensed under the MIT License.
155
- * http://opensource.org/licenses/mit-license
156
- */
157
- function(A){A.processWEBP=function(e,t,r,n){var i=new pi(e),s=i.width,o=i.height,a={data:i.getData(),width:s,height:o},c=new fi(100).encode(a,100);return A.processJPEG.call(this,c,t,r,n)}}(Mr.API),Mr.API.processRGBA=function(A,e,t){for(var r=A.data,n=r.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),o=0,a=0,c=0;c<n;c+=4){var l=r[c],u=r[c+1],h=r[c+2],f=r[c+3];i[o++]=l,i[o++]=u,i[o++]=h,s[a++]=f}var d=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:d,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},Mr.API.setLanguage=function(A){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[A]&&(this.internal.languageSettings.languageCode=A,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Wn=Mr.API,Jn=Wn.getCharWidthsArray=function(A,e){var t,r,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),o=e.widths?e.widths:n.metadata.Unicode.widths,a=o.fof?o.fof:1,c=e.kerning?e.kerning:n.metadata.Unicode.kerning,l=c.fof?c.fof:1,u=!1!==e.doKerning,h=0,f=A.length,d=0,p=o[0]||a,g=[];for(t=0;t<f;t++)r=A.charCodeAt(t),"function"==typeof n.metadata.widthOfString?g.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+s*(1e3/i)||0)/1e3):(h=u&&"object"===oA(c[r])&&!isNaN(parseInt(c[r][d],10))?c[r][d]/l:0,g.push((o[r]||p)/a+h)),d=r;return g},Xn=Wn.getStringUnitWidth=function(A,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return Wn.processArabic&&(A=Wn.processArabic(A)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(A,t,n)/t:Jn.apply(this,arguments).reduce(function(A,e){return A+e},0)},Yn=function(A,e,t,r){for(var n=[],i=0,s=A.length,o=0;i!==s&&o+e[i]<t;)o+=e[i],i++;n.push(A.slice(0,i));var a=i;for(o=0;i!==s;)o+e[i]>r&&(n.push(A.slice(a,i)),o=0,a=i),o+=e[i],i++;return a!==i&&n.push(A.slice(a,i)),n},Zn=function(A,e,t){t||(t={});var r,n,i,s,o,a,c,l=[],u=[l],h=t.textIndent||0,f=0,d=0,p=A.split(" "),g=Jn.apply(this,[" ",t])[0];if(a=-1===t.lineIndent?p[0].length+2:t.lineIndent||0){var B=Array(a).join(" "),w=[];p.map(function(A){(A=A.split(/\s*\n/)).length>1?w=w.concat(A.map(function(A,e){return(e&&A.length?"\n":"")+A})):w.push(A[0])}),p=w,a=Xn.apply(this,[B,t])}for(i=0,s=p.length;i<s;i++){var m=0;if(r=p[i],a&&"\n"==r[0]&&(r=r.substr(1),m=1),h+f+(d=(n=Jn.apply(this,[r,t])).reduce(function(A,e){return A+e},0))>e||m){if(d>e){for(o=Yn.apply(this,[r,n,e-(h+f),e]),l.push(o.shift()),l=[o.pop()];o.length;)u.push([o.shift()]);d=n.slice(r.length-(l[0]?l[0].length:0)).reduce(function(A,e){return A+e},0)}else l=[r];u.push(l),h=d+a,f=g}else l.push(r),h+=f+d,f=g}return c=a?function(A,e){return(e?B:"")+A.join(" ")}:function(A){return A.join(" ")},u.map(c)},Wn.splitTextToSize=function(A,e,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var e=this.internal.getFont(A.fontName,A.fontStyle),t="Unicode";return e.metadata[t]?{widths:e.metadata[t].widths||{0:1},kerning:e.metadata[t].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);r=Array.isArray(A)?A:String(A).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var o,a,c=[];for(o=0,a=r.length;o<a;o++)c=c.concat(Zn.apply(this,[r[o],s,i]));return c},function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var e="0123456789abcdef",t="klmnopqrstuvwxyz",r={},n={},i=0;i<16;i++)r[t[i]]=e[i],n[e[i]]=t[i];var s=function(A){return"0x"+parseInt(A,10).toString(16)},o=A.__fontmetrics__.compress=function(A){var e,t,r,i,a=["{"];for(var c in A){if(e=A[c],isNaN(parseInt(c,10))?t="'"+c+"'":(c=parseInt(c,10),t=(t=s(c).slice(2)).slice(0,-1)+n[t.slice(-1)]),"number"==typeof e)e<0?(r=s(e).slice(3),i="-"):(r=s(e).slice(2),i=""),r=i+r.slice(0,-1)+n[r.slice(-1)];else{if("object"!==oA(e))throw new Error("Don't know what to do with value type "+oA(e)+".");r=o(e)}a.push(t+r)}return a.push("}"),a.join("")},a=A.__fontmetrics__.uncompress=function(A){if("string"!=typeof A)throw new Error("Invalid argument passed to uncompress.");for(var e,t,n,i,s={},o=1,a=s,c=[],l="",u="",h=A.length-1,f=1;f<h;f+=1)"'"==(i=A[f])?e?(n=e.join(""),e=void 0):e=[]:e?e.push(i):"{"==i?(c.push([a,n]),a={},n=void 0):"}"==i?((t=c.pop())[0][t[1]]=a,n=void 0,a=t[0]):"-"==i?o=-1:void 0===n?r.hasOwnProperty(i)?(l+=r[i],n=parseInt(l,16)*o,o=1,l=""):l+=i:r.hasOwnProperty(i)?(u+=r[i],a[n]=parseInt(u,16)*o,o=1,n=void 0,u=""):u+=i;return s},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},u={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};A.events.push(["addFont",function(A){var e=A.font,t=u.Unicode[e.postScriptName];t&&(e.metadata.Unicode={},e.metadata.Unicode.widths=t.widths,e.metadata.Unicode.kerning=t.kerning);var r=l.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(Mr.API),
158
- /**
159
- * @license
160
- * Licensed under the MIT License.
161
- * http://opensource.org/licenses/mit-license
162
- */
163
- function(A){var e=function(A){for(var e=A.length,t=new Uint8Array(e),r=0;r<e;r++)t[r]=A.charCodeAt(r);return t};A.API.events.push(["addFont",function(t){var r,n,i=void 0,s=t.font,o=t.instance;if(!s.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if("string"!=typeof(i=!1===o.existsFileInVFS(s.postScriptName)?o.loadFile(s.postScriptName):o.getFileFromVFS(s.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");r=s,n=/^\x00\x01\x00\x00/.test(n=i)?e(n):e(pr(n)),r.metadata=A.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}}])}(Mr),Mr.API.addSvgAsImage=function(A,e,t,r,n,s,o,a){if(isNaN(e)||isNaN(t))throw cr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw cr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=n;var l=c.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,c.width,c.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(or.canvg?Promise.resolve(or.canvg):i(()=>import("./index.es-BFfvVHkP.js"),__vite__mapDeps([3,1,2,4,5,6,7]))).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(e){return e.fromString(l,A,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(u)}).then(function(){h.addImage(c.toDataURL("image/jpeg",1),e,t,r,n,o,a)})},Mr.API.putTotalPages=function(A){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(A,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(e,t);return this},Mr.API.viewerPreferences=function(A,e){var t;A=A||{},e=e||!1;var r,n,i,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(s),a=[],c=0,l=0,u=0;function h(A,e){var t,r=!1;for(t=0;t<A.length;t+=1)A[t]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,"reset"===A||!0===e){var f=o.length;for(u=0;u<f;u+=1)t[o[u]].value=t[o[u]].defaultValue,t[o[u]].explicitSet=!1}if("object"===oA(A))for(n in A)if(i=A[n],h(o,n)&&void 0!==i){if("boolean"===t[n].type&&"boolean"==typeof i)t[n].value=i;else if("name"===t[n].type&&h(t[n].valueSet,i))t[n].value=i;else if("integer"===t[n].type&&Number.isInteger(i))t[n].value=i;else if("array"===t[n].type){for(c=0;c<i.length;c+=1)if(r=!0,1===i[c].length&&"number"==typeof i[c][0])a.push(String(i[c]-1));else if(i[c].length>1){for(l=0;l<i[c].length;l+=1)"number"!=typeof i[c][l]&&(r=!1);!0===r&&a.push([i[c][0]-1,i[c][1]-1].join(" "))}t[n].value="["+a.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var A,e=[];for(A in t)!0===t[A].explicitSet&&("name"===t[A].type?e.push("/"+A+" /"+t[A].value):e.push("/"+A+" "+t[A].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},
164
- /** ====================================================================
165
- * @license
166
- * jsPDF XMP metadata plugin
167
- * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
168
- *
169
- * Permission is hereby granted, free of charge, to any person obtaining
170
- * a copy of this software and associated documentation files (the
171
- * "Software"), to deal in the Software without restriction, including
172
- * without limitation the rights to use, copy, modify, merge, publish,
173
- * distribute, sublicense, and/or sell copies of the Software, and to
174
- * permit persons to whom the Software is furnished to do so, subject to
175
- * the following conditions:
176
- *
177
- * The above copyright notice and this permission notice shall be
178
- * included in all copies or substantial portions of the Software.
179
- *
180
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
181
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
182
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
183
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
184
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
185
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
186
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
187
- * ====================================================================
188
- */
189
- function(A){var e=function(){var A='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),t=unescape(encodeURIComponent(A)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),n=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),s=t.length+r.length+n.length+e.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+s+" >>"),this.internal.write("stream"),this.internal.write(e+t+r+n+i),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};A.addMetadata=function(A,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:A,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",e)),this}}(Mr.API),function(A){var e=A.API,t=e.pdfEscape16=function(A,e){for(var t,r=e.metadata.Unicode.widths,n=["","0","00","000","0000"],i=[""],s=0,o=A.length;s<o;++s){if(t=e.metadata.characterToGlyph(A.charCodeAt(s)),e.metadata.glyIdsUsed.push(t),e.metadata.toUnicode[t]=A.charCodeAt(s),-1==r.indexOf(t)&&(r.push(t),r.push([parseInt(e.metadata.widthOfGlyph(t),10)])),"0"==t)return i.join("");t=t.toString(16),i.push(n[4-t.length],t)}return i.join("")},r=function(A){var e,t,r,n,i,s,o;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],s=0,o=(t=Object.keys(A).sort(function(A,e){return A-e})).length;s<o;s++)e=t[s],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==A[e]&&null!==A[e]&&"function"==typeof A[e].toString&&(n=("0000"+A[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+n+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var t=e.font,n=e.out,i=e.newObject,s=e.putStream;if(t.metadata instanceof A.API.TTFFont&&"Identity-H"===t.encoding){for(var o=t.metadata.Unicode.widths,a=t.metadata.subset.encode(t.metadata.glyIdsUsed,1),c="",l=0;l<a.length;l++)c+=String.fromCharCode(a[l]);var u=i();s({data:c,addLength1:!0,objectId:u}),n("endobj");var h=i();s({data:r(t.metadata.toUnicode),addLength1:!0,objectId:h}),n("endobj");var f=i();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+jr(t.fontName)),n("/FontFile2 "+u+" 0 R"),n("/FontBBox "+A.API.PDFObject.convert(t.metadata.bbox)),n("/Flags "+t.metadata.flags),n("/StemV "+t.metadata.stemV),n("/ItalicAngle "+t.metadata.italicAngle),n("/Ascent "+t.metadata.ascender),n("/Descent "+t.metadata.decender),n("/CapHeight "+t.metadata.capHeight),n(">>"),n("endobj");var d=i();n("<<"),n("/Type /Font"),n("/BaseFont /"+jr(t.fontName)),n("/FontDescriptor "+f+" 0 R"),n("/W "+A.API.PDFObject.convert(o)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+t.encoding+")"),n(">>"),n(">>"),n("endobj"),t.objectNumber=i(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+h+" 0 R"),n("/BaseFont /"+jr(t.fontName)),n("/Encoding /"+t.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),t.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var t=e.font,n=e.out,i=e.newObject,s=e.putStream;if(t.metadata instanceof A.API.TTFFont&&"WinAnsiEncoding"===t.encoding){for(var o=t.metadata.rawData,a="",c=0;c<o.length;c++)a+=String.fromCharCode(o[c]);var l=i();s({data:a,addLength1:!0,objectId:l}),n("endobj");var u=i();s({data:r(t.metadata.toUnicode),addLength1:!0,objectId:u}),n("endobj");var h=i();n("<<"),n("/Descent "+t.metadata.decender),n("/CapHeight "+t.metadata.capHeight),n("/StemV "+t.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+l+" 0 R"),n("/Flags 96"),n("/FontBBox "+A.API.PDFObject.convert(t.metadata.bbox)),n("/FontName /"+jr(t.fontName)),n("/ItalicAngle "+t.metadata.italicAngle),n("/Ascent "+t.metadata.ascender),n(">>"),n("endobj"),t.objectNumber=i();for(var f=0;f<t.metadata.hmtx.widths.length;f++)t.metadata.hmtx.widths[f]=parseInt(t.metadata.hmtx.widths[f]*(1e3/t.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+jr(t.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+t.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(t.metadata.hmtx.widths)+">>"),n("endobj"),t.isAlreadyPutted=!0}}(e)}]);var n=function(A){var e,r=A.text||"",n=A.x,i=A.y,s=A.options||{},o=A.mutex||{},a=o.pdfEscape,c=o.activeFontKey,l=o.fonts,u=c,h="",f=0,d="",p=l[u].encoding;if("Identity-H"!==l[u].encoding)return{text:r,x:n,y:i,options:s,mutex:o};for(d=r,u=c,Array.isArray(r)&&(d=r[0]),f=0;f<d.length;f+=1)l[u].metadata.hasOwnProperty("cmap")&&(e=l[u].metadata.cmap.unicode.codeMap[d[f].charCodeAt(0)]),e||d[f].charCodeAt(0)<256&&l[u].metadata.hasOwnProperty("Unicode")?h+=d[f]:h+="";var g="";return parseInt(u.slice(1))<14||"WinAnsiEncoding"===p?g=a(h,u).split("").map(function(A){return A.charCodeAt(0).toString(16)}).join(""):"Identity-H"===p&&(g=t(h,l[u])),o.isHex=!0,{text:g,x:n,y:i,options:s,mutex:o}};e.events.push(["postProcessText",function(A){var e=A.text||"",t=[],r={text:e,x:A.x,y:A.y,options:A.options,mutex:A.mutex};if(Array.isArray(e)){var i=0;for(i=0;i<e.length;i+=1)Array.isArray(e[i])&&3===e[i].length?t.push([n(Object.assign({},r,{text:e[i][0]})).text,e[i][1],e[i][2]]):t.push(n(Object.assign({},r,{text:e[i]})).text);A.text=t}else A.text=n(Object.assign({},r,{text:e})).text}])}(Mr),
190
- /**
191
- * @license
192
- * jsPDF virtual FileSystem functionality
193
- *
194
- * Licensed under the MIT License.
195
- * http://opensource.org/licenses/mit-license
196
- */
197
- function(A){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(A){return e.call(this),void 0!==this.internal.vFS[A]},A.addFileToVFS=function(A,t){return e.call(this),this.internal.vFS[A]=t,this},A.getFileFromVFS=function(A){return e.call(this),void 0!==this.internal.vFS[A]?this.internal.vFS[A]:null}}(Mr.API),
198
- /**
199
- * @license
200
- * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
201
- * MIT License
202
- */
203
- function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(A){var t,r,n,i,s,o,a,c=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},d=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],p=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,B=0;this.__bidiEngine__={};var w=function(A){var e=A.charCodeAt(),t=e>>8,r=f[t];return void 0!==r?c[256*r+(255&e)]:252===t||253===t?"AL":p.test(t)?"L":8===t?"R":"N"},m=function(A){for(var e,t=0;t<A.length;t++){if("L"===(e=w(A.charAt(t))))return!1;if("R"===e)return!0}return!1},b=function(A,e,s,o){var a,c,l,u,h=e[o];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(h="AN");break;case"AL":g=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":o<1||o+1>=e.length||"EN"!==(a=s[o-1])&&"AN"!==a||"EN"!==(c=e[o+1])&&"AN"!==c?h="N":g&&(c="AN"),h=c===a?c:"N";break;case"ES":h="EN"===(a=o>0?s[o-1]:"B")&&o+1<e.length&&"EN"===e[o+1]?"EN":"N";break;case"ET":if(o>0&&"EN"===s[o-1]){h="EN";break}if(g){h="N";break}for(l=o+1,u=e.length;l<u&&"ET"===e[l];)l++;h=l<u&&"EN"===e[l]?"EN":"N";break;case"NSM":if(n&&!i){for(u=e.length,l=o+1;l<u&&"NSM"===e[l];)l++;if(l<u){var f=A[o],d=f>=1425&&f<=2303||64286===f;if(a=e[l],d&&("R"===a||"AL"===a)){h="R";break}}}h=o<1||"B"===(a=e[o-1])?"N":s[o-1];break;case"B":g=!1,t=!0,h=B;break;case"S":r=!0,h="N"}return h},y=function(A,e,t){var r=A.split("");return t&&v(r,t,{hiLevel:B}),r.reverse(),e&&e.reverse(),r.join("")},v=function(A,e,n){var i,s,o,a,c,f=-1,d=A.length,p=0,m=[],y=B?u:l,v=[];for(g=!1,t=!1,r=!1,s=0;s<d;s++)v[s]=w(A[s]);for(o=0;o<d;o++){if(c=p,m[o]=b(A,v,m,o),i=240&(p=y[c][h[m[o]]]),p&=15,e[o]=a=y[p][5],i>0)if(16===i){for(s=f;s<o;s++)e[s]=1;f=-1}else f=-1;if(y[p][6])-1===f&&(f=o);else if(f>-1){for(s=f;s<o;s++)e[s]=a;f=-1}"B"===v[o]&&(e[o]=0),n.hiLevel|=a}r&&function(A,e,t){for(var r=0;r<t;r++)if("S"===A[r]){e[r]=B;for(var n=r-1;n>=0&&"WS"===A[n];n--)e[n]=B}}(v,e,d)},C=function(A,e,r,n,i){if(!(i.hiLevel<A)){if(1===A&&1===B&&!t)return e.reverse(),void(r&&r.reverse());for(var s,o,a,c,l=e.length,u=0;u<l;){if(n[u]>=A){for(a=u+1;a<l&&n[a]>=A;)a++;for(c=u,o=a-1;c<o;c++,o--)s=e[c],e[c]=e[o],e[o]=s,r&&(s=r[c],r[c]=r[o],r[o]=s);u=a}u++}}},Q=function(A,e,t){var r=A.split(""),n={hiLevel:B};return t||(t=[]),v(r,t,n),function(A,e,t){if(0!==t.hiLevel&&a)for(var r,n=0;n<A.length;n++)1===e[n]&&(r=d.indexOf(A[n]))>=0&&(A[n]=d[r+1])}(r,t,n),C(2,r,e,t,n),C(1,r,e,t,n),r.join("")};return this.__bidiEngine__.doBidiReorder=function(A,e,t){if(function(A,e){if(e)for(var t=0;t<A.length;t++)e[t]=t;void 0===i&&(i=m(A)),void 0===o&&(o=m(A))}(A,e),n||!s||o)if(n&&s&&i^o)B=i?1:0,A=y(A,e,t);else if(!n&&s&&o)B=i?1:0,A=Q(A,e,t),A=y(A,e);else if(!n||i||s||o){if(n&&!s&&i^o)A=y(A,e),i?(B=0,A=Q(A,e,t)):(B=1,A=Q(A,e,t),A=y(A,e));else if(n&&i&&!s&&o)B=1,A=Q(A,e,t),A=y(A,e);else if(!n&&!s&&i^o){var r=a;i?(B=1,A=Q(A,e,t),B=0,a=!1,A=Q(A,e,t),a=r):(B=0,A=Q(A,e,t),A=y(A,e),B=1,a=!1,A=Q(A,e,t),a=r,A=y(A,e))}}else B=0,A=Q(A,e,t);else B=i?1:0,A=Q(A,e,t);return A},this.__bidiEngine__.setOptions=function(A){A&&(n=A.isInputVisual,s=A.isOutputVisual,i=A.isInputRtl,o=A.isOutputRtl,a=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(A),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(A){var e=A.text;A.x,A.y;var r=A.options||{};A.mutex,r.lang;var n=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,t.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var i=0;for(n=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?n.push([t.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):n.push([t.doBidiReorder(e[i])]);A.text=n}else A.text=t.doBidiReorder(e);t.setOptions({isInputVisual:!0})}])}(Mr),Mr.API.TTFFont=function(){function A(A){var e;if(this.rawData=A,e=this.contents=new Bi(A),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Ni(this),this.registerTTF()}return A.open=function(e){return new A(e)},A.prototype.parse=function(){return this.directory=new wi(this.contents),this.head=new yi(this),this.name=new Li(this),this.cmap=new Ci(this),this.toUnicode={},this.hhea=new Qi(this),this.maxp=new _i(this),this.hmtx=new Ei(this),this.post=new Ui(this),this.os2=new Fi(this),this.loca=new Hi(this),this.glyf=new Ii(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var A,e,t,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.bbox).length;e<t;e++)A=r[e],n.push(Math.round(A*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(t=255&(r=this.post.italic_angle),32768&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+t)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[A]:void 0)||0},A.prototype.widthOfGlyph=function(A){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*e},A.prototype.widthOfString=function(A,e,t){var r,n,i,s;for(i=0,n=0,s=(A=""+A).length;0<=s?n<s:n>s;n=0<=s?++n:--n)r=A.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+t*(1e3/e)||0;return i*(e/1e3)},A.prototype.lineHeight=function(A,e){var t;return null==e&&(e=!1),t=e?this.lineGap:0,(this.ascender+t-this.decender)/1e3*A},A}();var gi,Bi=function(){function A(A){this.data=null!=A?A:[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var e,t;for(t=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)t[e]=String.fromCharCode(this.readByte());return t.join("")},A.prototype.writeString=function(A){var e,t,r;for(r=[],e=0,t=A.length;0<=t?e<t:e>t;e=0<=t?++e:--e)r.push(this.writeByte(A.charCodeAt(e)));return r},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,e,t,r,n,i,s,o;return A=this.readByte(),e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^e)+1099511627776*(255^t)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^s)+(255^o)+1):72057594037927940*A+281474976710656*e+1099511627776*t+4294967296*r+16777216*n+65536*i+256*s+o},A.prototype.writeLongLong=function(A){var e,t;return e=Math.floor(A/4294967296),t=4294967295&A,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var e,t;for(e=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)e.push(this.readByte());return e},A.prototype.write=function(A){var e,t,r,n;for(n=[],t=0,r=A.length;t<r;t++)e=A[t],n.push(this.writeByte(e));return n},A}(),wi=function(){var A;function e(A){var e,t,r;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},t=0,r=this.tableCount;0<=r?t<r:t>r;t=0<=r?++t:--t)e={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var t,r,n,i,s,o,a,c,l,u,h,f,d;for(d in h=Object.keys(e).length,o=Math.log(2),l=16*Math.floor(Math.log(h)/o),i=Math.floor(l/o),c=16*h-l,(r=new Bi).writeInt(this.scalarType),r.writeShort(h),r.writeShort(l),r.writeShort(i),r.writeShort(c),n=16*h,a=r.pos+n,s=null,f=[],e)for(u=e[d],r.writeString(d),r.writeInt(A(u)),r.writeInt(a),r.writeInt(u.length),f=f.concat(u),"head"===d&&(s=a),a+=u.length;a%4;)f.push(0),a++;return r.write(f),t=2981146554-A(r.data),r.pos=s+8,r.writeUInt32(t),r.data},A=function(A){var e,t,r,n;for(A=ki.call(A);A.length%4;)A.push(0);for(r=new Bi(A),t=0,e=0,n=A.length;e<n;e=e+=4)t+=r.readUInt32();return 4294967295&t},e}(),mi={}.hasOwnProperty,bi=function(A,e){for(var t in e)mi.call(e,t)&&(A[t]=e[t]);function r(){this.constructor=A}return r.prototype=e.prototype,A.prototype=new r,A.__super__=e.prototype,A};gi=function(){function A(A){var e;this.file=A,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var yi=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="head",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},A.prototype.encode=function(A){var e;return(e=new Bi).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(A),e.writeShort(this.glyphDataFormat),e.data},A}(),vi=function(){function A(A,e){var t,r,n,i,s,o,a,c,l,u,h,f,d,p,g,B,w;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=e+A.readInt(),l=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=A.readByte();break;case 4:for(h=A.readUInt16(),u=h/2,A.pos+=6,n=function(){var e,t;for(t=[],o=e=0;0<=u?e<u:e>u;o=0<=u?++e:--e)t.push(A.readUInt16());return t}(),A.pos+=2,d=function(){var e,t;for(t=[],o=e=0;0<=u?e<u:e>u;o=0<=u?++e:--e)t.push(A.readUInt16());return t}(),a=function(){var e,t;for(t=[],o=e=0;0<=u?e<u:e>u;o=0<=u?++e:--e)t.push(A.readUInt16());return t}(),c=function(){var e,t;for(t=[],o=e=0;0<=u?e<u:e>u;o=0<=u?++e:--e)t.push(A.readUInt16());return t}(),r=(this.length-A.pos+this.offset)/2,s=function(){var e,t;for(t=[],o=e=0;0<=r?e<r:e>r;o=0<=r?++e:--e)t.push(A.readUInt16());return t}(),o=g=0,w=n.length;g<w;o=++g)for(p=n[o],t=B=f=d[o];f<=p?B<=p:B>=p;t=f<=p?++B:--B)0===c[o]?i=t+a[o]:0!==(i=s[c[o]/2+(t-f)-(u-o)]||0)&&(i+=a[o]),this.codeMap[t]=65535&i}A.pos=l}return A.encode=function(A,e){var t,r,n,i,s,o,a,c,l,u,h,f,d,p,g,B,w,m,b,y,v,C,Q,F,U,x,L,_,E,k,I,S,j,H,N,P,D,O,M,T,K,R,V,G,q,z;switch(_=new Bi,i=Object.keys(A).sort(function(A,e){return A-e}),e){case"macroman":for(d=0,p=function(){var A=[];for(f=0;f<256;++f)A.push(0);return A}(),B={0:0},n={},E=0,j=i.length;E<j;E++)null==B[V=A[r=i[E]]]&&(B[V]=++d),n[r]={old:A[r],new:B[A[r]]},p[r]=B[A[r]];return _.writeUInt16(1),_.writeUInt16(0),_.writeUInt32(12),_.writeUInt16(0),_.writeUInt16(262),_.writeUInt16(0),_.write(p),{charMap:n,subtable:_.data,maxGlyphID:d+1};case"unicode":for(x=[],l=[],w=0,B={},t={},g=a=null,k=0,H=i.length;k<H;k++)null==B[b=A[r=i[k]]]&&(B[b]=++w),t[r]={old:b,new:B[b]},s=B[b]-r,null!=g&&s===a||(g&&l.push(g),x.push(r),a=s),g=r;for(g&&l.push(g),l.push(65535),x.push(65535),F=2*(Q=x.length),C=2*Math.pow(Math.log(Q)/Math.LN2,2),u=Math.log(C/2)/Math.LN2,v=2*Q-C,o=[],y=[],h=[],f=I=0,N=x.length;I<N;f=++I){if(U=x[f],c=l[f],65535===U){o.push(0),y.push(0);break}if(U-(L=t[U].new)>=32768)for(o.push(0),y.push(2*(h.length+Q-f)),r=S=U;U<=c?S<=c:S>=c;r=U<=c?++S:--S)h.push(t[r].new);else o.push(L-U),y.push(0)}for(_.writeUInt16(3),_.writeUInt16(1),_.writeUInt32(12),_.writeUInt16(4),_.writeUInt16(16+8*Q+2*h.length),_.writeUInt16(0),_.writeUInt16(F),_.writeUInt16(C),_.writeUInt16(u),_.writeUInt16(v),K=0,P=l.length;K<P;K++)r=l[K],_.writeUInt16(r);for(_.writeUInt16(0),R=0,D=x.length;R<D;R++)r=x[R],_.writeUInt16(r);for(G=0,O=o.length;G<O;G++)s=o[G],_.writeUInt16(s);for(q=0,M=y.length;q<M;q++)m=y[q],_.writeUInt16(m);for(z=0,T=h.length;z<T;z++)d=h[z],_.writeUInt16(d);return{charMap:t,subtable:_.data,maxGlyphID:w+1}}},A}(),Ci=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="cmap",A.prototype.parse=function(A){var e,t,r;for(A.pos=this.offset,this.version=A.readUInt16(),r=A.readUInt16(),this.tables=[],this.unicode=null,t=0;0<=r?t<r:t>r;t=0<=r?++t:--t)e=new vi(A,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},A.encode=function(A,e){var t,r;return null==e&&(e="macroman"),t=vi.encode(A,e),(r=new Bi).writeUInt16(0),r.writeUInt16(1),t.table=r.data.concat(t.subtable),t},A}(),Qi=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="hhea",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},A}(),Fi=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="OS/2",A.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var e,t;for(t=[],e=0;e<10;++e)t.push(A.readByte());return t}(),this.charRange=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(A.readInt());return t}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var e,t;for(t=[],e=0;e<2;e=++e)t.push(A.readInt());return t}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},A}(),Ui=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="post",A.prototype.parse=function(A){var e,t,r;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(t=A.readUInt16(),this.glyphNameIndex=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],r=[];A.pos<this.offset+this.length;)e=A.readByte(),r.push(this.names.push(A.readString(e)));return r;case 151552:return t=A.readUInt16(),this.offsets=A.read(t);case 262144:return this.map=function(){var e,t,r;for(r=[],n=e=0,t=this.file.maxp.numGlyphs;0<=t?e<t:e>t;n=0<=t?++e:--e)r.push(A.readUInt32());return r}.call(this)}},A}(),xi=function(A,e){this.raw=A,this.length=A.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Li=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="name",A.prototype.parse=function(A){var e,t,r,n,i,s,o,a,c,l,u;for(A.pos=this.offset,A.readShort(),e=A.readShort(),s=A.readShort(),t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+s+A.readShort()});for(o={},n=c=0,l=t.length;c<l;n=++c)r=t[n],A.pos=r.offset,a=A.readString(r.length),i=new xi(a,r),null==o[u=r.nameID]&&(o[u]=[]),o[r.nameID].push(i);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(h){this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},A}(),_i=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="maxp",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},A}(),Ei=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="hmtx",A.prototype.parse=function(A){var e,t,r,n,i,s,o;for(A.pos=this.offset,this.metrics=[],e=0,s=this.file.hhea.numberOfMetrics;0<=s?e<s:e>s;e=0<=s?++e:--e)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var t,n;for(n=[],e=t=0;0<=r?t<r:t>r;e=0<=r?++t:--t)n.push(A.readInt16());return n}(),this.widths=function(){var A,e,t,r;for(r=[],A=0,e=(t=this.metrics).length;A<e;A++)n=t[A],r.push(n.advance);return r}.call(this),t=this.widths[this.widths.length-1],o=[],e=i=0;0<=r?i<r:i>r;e=0<=r?++i:--i)o.push(this.widths.push(t));return o},A.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},A}(),ki=[].slice,Ii=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(A){var e,t,r,n,i,s,o,a,c,l;return A in this.cache?this.cache[A]:(n=this.file.loca,e=this.file.contents,t=n.indexOf(A),0===(r=n.lengthOf(A))?this.cache[A]=null:(e.pos=this.offset+t,i=(s=new Bi(e.read(r))).readShort(),a=s.readShort(),l=s.readShort(),o=s.readShort(),c=s.readShort(),this.cache[A]=-1===i?new ji(s,a,l,o,c):new Si(s,i,a,l,o,c),this.cache[A]))},A.prototype.encode=function(A,e,t){var r,n,i,s,o;for(i=[],n=[],s=0,o=e.length;s<o;s++)r=A[e[s]],n.push(i.length),r&&(i=i.concat(r.encode(t)));return n.push(i.length),{table:i,offsets:n}},A}(),Si=function(){function A(A,e,t,r,n,i){this.raw=A,this.numberOfContours=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),ji=function(){function A(A,e,t,r,n){var i,s;for(this.raw=A,this.xMin=e,this.yMin=t,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;s=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&s;)i.pos+=1&s?4:2,128&s?i.pos+=8:64&s?i.pos+=4:8&s&&(i.pos+=2)}return A.prototype.encode=function(){var A,e,t;for(e=new Bi(ki.call(this.raw.data)),A=0,t=this.glyphIDs.length;A<t;++A)e.pos=this.glyphOffsets[A];return e.data},A}(),Hi=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return bi(A,gi),A.prototype.tag="loca",A.prototype.parse=function(A){var e,t;return A.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],t=0,e=this.length;t<e;t+=2)r.push(2*A.readUInt16());return r}.call(this):function(){var e,r;for(r=[],t=0,e=this.length;t<e;t+=4)r.push(A.readUInt32());return r}.call(this)},A.prototype.indexOf=function(A){return this.offsets[A]},A.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},A.prototype.encode=function(A,e){for(var t=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<t.length;++i)if(t[i]=r,n<e.length&&e[n]==i){++n,t[i]=r;var s=this.offsets[i],o=this.offsets[i+1]-s;o>0&&(r+=o)}for(var a=new Array(4*t.length),c=0;c<t.length;++c)a[4*c+3]=255&t[c],a[4*c+2]=(65280&t[c])>>8,a[4*c+1]=(16711680&t[c])>>16,a[4*c]=(4278190080&t[c])>>24;return a},A}(),Ni=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,e,t,r,n;for(e in r=this.font.cmap.tables[0].codeMap,A={},n=this.subset)t=n[e],A[e]=r[t];return A},A.prototype.glyphsFor=function(A){var e,t,r,n,i,s,o;for(r={},i=0,s=A.length;i<s;i++)r[n=A[i]]=this.font.glyf.glyphFor(n);for(n in e=[],r)(null!=(t=r[n])?t.compound:void 0)&&e.push.apply(e,t.glyphIDs);if(e.length>0)for(n in o=this.glyphsFor(e))t=o[n],r[n]=t;return r},A.prototype.encode=function(A,e){var t,r,n,i,s,o,a,c,l,u,h,f,d,p,g;for(r in t=Ci.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(A),h={0:0},g=t.charMap)h[(o=g[r]).old]=o.new;for(f in u=t.maxGlyphID,i)f in h||(h[f]=u++);return c=function(A){var e,t;for(e in t={},A)t[A[e]]=e;return t}(h),l=Object.keys(c).sort(function(A,e){return A-e}),d=function(){var A,e,t;for(t=[],A=0,e=l.length;A<e;A++)s=l[A],t.push(c[s]);return t}(),n=this.font.glyf.encode(i,d,h),a=this.font.loca.encode(n.offsets,d),p={cmap:this.font.cmap.raw(),glyf:n.table,loca:a,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},A}();Mr.API.PDFObject=function(){var A;function e(){}return A=function(A,e){return(Array(e+1).join("0")+A).slice(-e)},e.convert=function(t){var r,n,i,s;if(Array.isArray(t))return"["+function(){var A,n,i;for(i=[],A=0,n=t.length;A<n;A++)r=t[A],i.push(e.convert(r));return i}().join(" ")+"]";if("string"==typeof t)return"/"+t;if(null!=t?t.isString:void 0)return"("+t+")";if(t instanceof Date)return"(D:"+A(t.getUTCFullYear(),4)+A(t.getUTCMonth(),2)+A(t.getUTCDate(),2)+A(t.getUTCHours(),2)+A(t.getUTCMinutes(),2)+A(t.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(t)){for(n in i=["<<"],t)s=t[n],i.push("/"+n+" "+e.convert(s));return i.push(">>"),i.join("\n")}return""+t},e}();const Pi=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:En,AcroFormAppearance:Un,AcroFormButton:mn,AcroFormCheckBox:Cn,AcroFormChoiceField:pn,AcroFormComboBox:Bn,AcroFormEditBox:wn,AcroFormListBox:gn,AcroFormPasswordField:Fn,AcroFormPushButton:bn,AcroFormRadioButton:yn,AcroFormTextField:Qn,GState:Nr,ShadingPattern:Dr,TilingPattern:Or,default:Mr,jsPDF:Mr},Symbol.toStringTag,{value:"Module"}));var Di,Oi,Mi={exports:{}};
204
- /*!
205
- * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
206
- * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
207
- * Released under MIT License
208
- */function Ti(){return Di||(Di=1,Mi.exports=function(){
209
- /*! *****************************************************************************
210
- Copyright (c) Microsoft Corporation.
211
-
212
- Permission to use, copy, modify, and/or distribute this software for any
213
- purpose with or without fee is hereby granted.
214
-
215
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
216
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
217
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
218
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
219
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
220
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
221
- PERFORMANCE OF THIS SOFTWARE.
222
- ***************************************************************************** */
223
- var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},t.apply(this,arguments)};function r(A,e,t,r){function n(A){return A instanceof t?A:new t(function(e){e(A)})}return new(t||(t=Promise))(function(e,t){function i(A){try{o(r.next(A))}catch(e){t(e)}}function s(A){try{o(r.throw(A))}catch(e){t(e)}}function o(A){A.done?e(A.value):n(A.value).then(i,s)}o((r=r.apply(A,[])).next())})}function n(A,e){var t,r,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(A){return function(e){return a([A,e])}}function a(i){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(A,s)}catch(o){i=[6,o],r=0}finally{t=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function i(A,e,t){if(2===arguments.length)for(var r,n=0,i=e.length;n<i;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return A.concat(r||e)}for(var s=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(A){return 0!==A.width});return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),o=function(A,e){return s.fromClientRect(A,e.getBoundingClientRect())},a=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new s(0,0,r,n)},c=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);56320==(64512&i)?e.push(((1023&n)<<10)+(1023&i)+65536):(e.push(n),t--)}else e.push(n)}return e},l=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<u.length;f++)h[u.charCodeAt(f)]=f;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),g=0;g<d.length;g++)p[d.charCodeAt(g)]=g;for(var B=function(A){var e,t,r,n,i,s=.75*A.length,o=A.length,a=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<o;e+=4)t=p[A.charCodeAt(e)],r=p[A.charCodeAt(e+1)],n=p[A.charCodeAt(e+2)],i=p[A.charCodeAt(e+3)],l[a++]=t<<2|r>>4,l[a++]=(15&r)<<4|n>>2,l[a++]=(3&n)<<6|63&i;return c},w=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},m=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},b=5,y=11,v=2,C=65536>>b,Q=(1<<b)-1,F=C+(1024>>b)+32,U=65536>>y,x=(1<<y-b)-1,L=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},_=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},E=function(A,e){var t=B(A),r=Array.isArray(t)?m(t):new Uint32Array(t),n=Array.isArray(t)?w(t):new Uint16Array(t),i=24,s=L(n,i/2,r[4]/2),o=2===r[5]?L(n,(i+r[4])/2):_(r,Math.ceil((i+r[4])/4));return new k(r[0],r[1],r[2],r[3],s,o)},k=function(){function A(A,e,t,r,n,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>b])<<v)+(A&Q),this.data[e];if(A<=65535)return e=((e=this.index[C+(A-55296>>b)])<<v)+(A&Q),this.data[e];if(A<this.highStart)return e=F-U+(A>>y),e=this.index[e],e+=A>>b&x,e=((e=this.index[e])<<v)+(A&Q),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="undefined"==typeof Uint8Array?[]:new Uint8Array(256),j=0;j<I.length;j++)S[I.charCodeAt(j)]=j;var H=50,N=1,P=2,D=3,O=4,M=5,T=7,K=8,R=9,V=10,G=11,q=12,z=13,W=14,J=15,X=16,Y=17,Z=18,$=19,AA=20,eA=21,tA=22,rA=23,nA=24,iA=25,sA=26,oA=27,aA=28,cA=29,lA=30,uA=31,hA=32,fA=33,dA=34,pA=35,gA=36,BA=37,wA=38,mA=39,bA=40,yA=41,vA=42,CA=43,QA=[9001,65288],FA="!",UA="×",xA="÷",LA=E("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),_A=[lA,gA],EA=[N,P,D,M],kA=[V,K],IA=[oA,sA],SA=EA.concat(kA),jA=[wA,mA,bA,dA,pA],HA=[J,z],NA=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(A,i){var s=LA.get(A);if(s>H?(n.push(!0),s-=H):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(i),t.push(X);if(s===O||s===G){if(0===i)return r.push(i),t.push(lA);var o=t[i-1];return-1===SA.indexOf(o)?(r.push(r[i-1]),t.push(o)):(r.push(i),t.push(lA))}return r.push(i),s===uA?t.push("strict"===e?eA:BA):s===vA||s===cA?t.push(lA):s===CA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(BA):t.push(lA):void t.push(s)}),[r,t,n]},PA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var i=t;i<=r.length;){if((a=r[++i])===e)return!0;if(a!==V)break}if(n===V)for(i=t;i>0;){var s=r[--i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=t;o<=r.length;){var a;if((a=r[++o])===e)return!0;if(a!==V)break}if(s!==V)break}return!1},DA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==V)return r;t--}return 0},OA=function(A,e,t,r,n){if(0===t[r])return UA;var i=r-1;if(Array.isArray(n)&&!0===n[i])return UA;var s=i-1,o=i+1,a=e[i],c=s>=0?e[s]:0,l=e[o];if(a===P&&l===D)return UA;if(-1!==EA.indexOf(a))return FA;if(-1!==EA.indexOf(l))return UA;if(-1!==kA.indexOf(l))return UA;if(DA(i,e)===K)return xA;if(LA.get(A[i])===G)return UA;if((a===hA||a===fA)&&LA.get(A[o])===G)return UA;if(a===T||l===T)return UA;if(a===R)return UA;if(-1===[V,z,J].indexOf(a)&&l===R)return UA;if(-1!==[Y,Z,$,nA,aA].indexOf(l))return UA;if(DA(i,e)===tA)return UA;if(PA(rA,tA,i,e))return UA;if(PA([Y,Z],eA,i,e))return UA;if(PA(q,q,i,e))return UA;if(a===V)return xA;if(a===rA||l===rA)return UA;if(l===X||a===X)return xA;if(-1!==[z,J,eA].indexOf(l)||a===W)return UA;if(c===gA&&-1!==HA.indexOf(a))return UA;if(a===aA&&l===gA)return UA;if(l===AA)return UA;if(-1!==_A.indexOf(l)&&a===iA||-1!==_A.indexOf(a)&&l===iA)return UA;if(a===oA&&-1!==[BA,hA,fA].indexOf(l)||-1!==[BA,hA,fA].indexOf(a)&&l===sA)return UA;if(-1!==_A.indexOf(a)&&-1!==IA.indexOf(l)||-1!==IA.indexOf(a)&&-1!==_A.indexOf(l))return UA;if(-1!==[oA,sA].indexOf(a)&&(l===iA||-1!==[tA,J].indexOf(l)&&e[o+1]===iA)||-1!==[tA,J].indexOf(a)&&l===iA||a===iA&&-1!==[iA,aA,nA].indexOf(l))return UA;if(-1!==[iA,aA,nA,Y,Z].indexOf(l))for(var u=i;u>=0;){if((h=e[u])===iA)return UA;if(-1===[aA,nA].indexOf(h))break;u--}if(-1!==[oA,sA].indexOf(l))for(u=-1!==[Y,Z].indexOf(a)?s:i;u>=0;){var h;if((h=e[u])===iA)return UA;if(-1===[aA,nA].indexOf(h))break;u--}if(wA===a&&-1!==[wA,mA,dA,pA].indexOf(l)||-1!==[mA,dA].indexOf(a)&&-1!==[mA,bA].indexOf(l)||-1!==[bA,pA].indexOf(a)&&l===bA)return UA;if(-1!==jA.indexOf(a)&&-1!==[AA,sA].indexOf(l)||-1!==jA.indexOf(l)&&a===oA)return UA;if(-1!==_A.indexOf(a)&&-1!==_A.indexOf(l))return UA;if(a===nA&&-1!==_A.indexOf(l))return UA;if(-1!==_A.concat(iA).indexOf(a)&&l===tA&&-1===QA.indexOf(A[o])||-1!==_A.concat(iA).indexOf(l)&&a===Z)return UA;if(a===yA&&l===yA){for(var f=t[i],d=1;f>0&&e[--f]===yA;)d++;if(d%2!=0)return UA}return a===hA&&l===fA?UA:xA},MA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=NA(A,e.lineBreak),r=t[0],n=t[1],i=t[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map(function(A){return-1!==[iA,lA,vA].indexOf(A)?BA:A})),[r,n,"keep-all"===e.wordBreak?i.map(function(e,t){return e&&A[t]>=19968&&A[t]<=40959}):void 0]},TA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===FA,this.start=t,this.end=r}return A.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),KA=function(A,e){var t=c(A),r=MA(t,e),n=r[0],i=r[1],s=r[2],o=t.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var A=UA;l<o&&(A=OA(t,i,n,++l,s))===UA;);if(A!==UA||l===o){var e=new TA(t,A,a,l);return a=l,{value:e,done:!1}}return{done:!0,value:null}}}},RA=1,VA=2,GA=4,qA=8,zA=10,WA=47,JA=92,XA=9,YA=32,ZA=34,$A=61,Ae=35,ee=36,te=37,re=39,ne=40,ie=41,se=95,oe=45,ae=33,ce=60,le=62,ue=64,he=91,fe=93,de=61,pe=123,ge=63,Be=125,we=124,me=126,be=128,ye=65533,ve=42,Ce=43,Qe=44,Fe=58,Ue=59,xe=46,Le=0,_e=8,Ee=11,ke=14,Ie=31,Se=127,je=-1,He=48,Ne=97,Pe=101,De=102,Oe=117,Me=122,Te=65,Ke=69,Re=70,Ve=85,Ge=90,qe=function(A){return A>=He&&A<=57},ze=function(A){return A>=55296&&A<=57343},We=function(A){return qe(A)||A>=Te&&A<=Re||A>=Ne&&A<=De},Je=function(A){return A>=Ne&&A<=Me},Xe=function(A){return A>=Te&&A<=Ge},Ye=function(A){return Je(A)||Xe(A)},Ze=function(A){return A>=be},$e=function(A){return A===zA||A===XA||A===YA},At=function(A){return Ye(A)||Ze(A)||A===se},et=function(A){return At(A)||qe(A)||A===oe},tt=function(A){return A>=Le&&A<=_e||A===Ee||A>=ke&&A<=Ie||A===Se},rt=function(A,e){return A===JA&&e!==zA},nt=function(A,e,t){return A===oe?At(e)||rt(e,t):!!At(A)||!(A!==JA||!rt(A,e))},it=function(A,e,t){return A===Ce||A===oe?!!qe(e)||e===xe&&qe(t):qe(A===xe?e:A)},st=function(A){var e=0,t=1;A[e]!==Ce&&A[e]!==oe||(A[e]===oe&&(t=-1),e++);for(var r=[];qe(A[e]);)r.push(A[e++]);var n=r.length?parseInt(l.apply(void 0,r),10):0;A[e]===xe&&e++;for(var i=[];qe(A[e]);)i.push(A[e++]);var s=i.length,o=s?parseInt(l.apply(void 0,i),10):0;A[e]!==Ke&&A[e]!==Pe||e++;var a=1;A[e]!==Ce&&A[e]!==oe||(A[e]===oe&&(a=-1),e++);for(var c=[];qe(A[e]);)c.push(A[e++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,a*u)},ot={type:2},at={type:3},ct={type:4},lt={type:13},ut={type:8},ht={type:21},ft={type:9},dt={type:10},pt={type:11},gt={type:12},Bt={type:14},wt={type:23},mt={type:1},bt={type:25},yt={type:24},vt={type:26},Ct={type:27},Qt={type:28},Ft={type:29},Ut={type:31},xt={type:32},Lt=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(c(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==xt;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ZA:return this.consumeStringToken(ZA);case Ae:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(et(e)||rt(t,r)){var n=nt(e,t,r)?VA:RA;return{type:5,value:this.consumeName(),flags:n}}break;case ee:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),lt;break;case re:return this.consumeStringToken(re);case ne:return ot;case ie:return at;case ve:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),Bt;break;case Ce:if(it(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Qe:return ct;case oe:var i=A,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(it(i,s,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(nt(i,s,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===oe&&o===le)return this.consumeCodePoint(),this.consumeCodePoint(),yt;break;case xe:if(it(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case WA:if(this.peekCodePoint(0)===ve)for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(a===ve&&(a=this.consumeCodePoint())===WA)return this.consumeToken();if(a===je)return this.consumeToken()}break;case Fe:return vt;case Ue:return Ct;case ce:if(this.peekCodePoint(0)===ae&&this.peekCodePoint(1)===oe&&this.peekCodePoint(2)===oe)return this.consumeCodePoint(),this.consumeCodePoint(),bt;break;case ue:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(nt(c,u,h))return{type:7,value:this.consumeName()};break;case he:return Qt;case JA:if(rt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case fe:return Ft;case de:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),ut;break;case pe:return pt;case Be:return gt;case Oe:case Ve:var f=this.peekCodePoint(0),d=this.peekCodePoint(1);return f!==Ce||!We(d)&&d!==ge||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case we:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),ft;if(this.peekCodePoint(0)===we)return this.consumeCodePoint(),ht;break;case me:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),dt;break;case je:return xt}return $e(A)?(this.consumeWhiteSpace(),Ut):qe(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):At(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:l(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();We(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===ge&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(l.apply(void 0,A.map(function(A){return A===ge?He:A})),16),end:parseInt(l.apply(void 0,A.map(function(A){return A===ge?Re:A})),16)};var r=parseInt(l.apply(void 0,A),16);if(this.peekCodePoint(0)===oe&&We(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var n=[];We(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===ne?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ne?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===je)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===re||e===ZA){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===je||this.peekCodePoint(0)===ie)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),wt)}for(;;){var r=this.consumeCodePoint();if(r===je||r===ie)return{type:22,value:l.apply(void 0,A)};if($e(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===je||this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,A)}):(this.consumeBadUrlRemnants(),wt);if(r===ZA||r===re||r===ne||tt(r))return this.consumeBadUrlRemnants(),wt;if(r===JA){if(!rt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),wt;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;$e(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ie||A===je)return;rt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e=5e4,t="";A>0;){var r=Math.min(e,A);t+=l.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===je||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(r===zA)return this._value.splice(0,t),mt;if(r===JA){var n=this._value[t+1];n!==je&&void 0!==n&&(n===zA?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rt(r,n)&&(e+=this.consumeStringSlice(t),e+=l(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=GA,t=this.peekCodePoint(0);for(t!==Ce&&t!==oe||A.push(this.consumeCodePoint());qe(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===xe&&qe(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=qA;qe(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===Ke||t===Pe)&&((r===Ce||r===oe)&&qe(n)||qe(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=qA;qe(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[st(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);return nt(r,n,i)?{type:15,number:e,flags:t,unit:this.consumeName()}:r===te?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(We(A)){for(var e=l(A);We(this.peekCodePoint(0))&&e.length<6;)e+=l(this.consumeCodePoint());$e(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||ze(t)||t>1114111?ye:t}return A===je?ye:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(et(e))A+=l(e);else{if(!rt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=l(this.consumeEscapedCodePoint())}}},A}(),_t=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new Lt;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||Dt(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?xt:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Et=function(A){return 15===A.type},kt=function(A){return 17===A.type},It=function(A){return 20===A.type},St=function(A){return 0===A.type},jt=function(A,e){return It(A)&&A.value===e},Ht=function(A){return 31!==A.type},Nt=function(A){return 31!==A.type&&4!==A.type},Pt=function(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e},Dt=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},Ot=function(A){return 17===A.type||15===A.type},Mt=function(A){return 16===A.type||Ot(A)},Tt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Kt={type:17,number:0,flags:GA},Rt={type:16,number:50,flags:GA},Vt={type:16,number:100,flags:GA},Gt=function(A,e,t){var r=A[0],n=A[1];return[qt(r,e),qt(void 0!==n?n:r,t)]},qt=function(A,e){if(16===A.type)return A.number/100*e;if(Et(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},zt="deg",Wt="grad",Jt="rad",Xt="turn",Yt={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case zt:return Math.PI*e.number/180;case Wt:return Math.PI/200*e.number;case Jt:return e.number;case Xt:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},Zt=function(A){return 15===A.type&&(A.unit===zt||A.unit===Wt||A.unit===Jt||A.unit===Xt)},$t=function(A){switch(A.filter(It).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Kt,Kt];case"to top":case"bottom":return Ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Kt,Vt];case"to right":case"left":return Ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Vt,Vt];case"to bottom":case"top":return Ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Vt,Kt];case"to left":case"right":return Ar(270)}return 0},Ar=function(A){return Math.PI*A/180},er={name:"color",parse:function(A,e){if(18===e.type){var t=cr[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);return nr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),i=e.value.substring(2,3);var s=e.value.substring(3,4);return nr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6),nr(parseInt(r,16),parseInt(n,16),parseInt(i,16),1);if(8===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),i=e.value.substring(4,6),s=e.value.substring(6,8),nr(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}if(20===e.type){var o=ur[e.value.toUpperCase()];if(void 0!==o)return o}return ur.TRANSPARENT}},tr=function(A){return!(255&A)},rr=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},nr=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r))>>>0},ir=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},sr=function(A,e){var t=e.filter(Nt);if(3===t.length){var r=t.map(ir),n=r[0],i=r[1],s=r[2];return nr(n,i,s,1)}if(4===t.length){var o=t.map(ir),a=(n=o[0],i=o[1],s=o[2],o[3]);return nr(n,i,s,a)}return 0};function or(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var ar=function(A,e){var t=e.filter(Nt),r=t[0],n=t[1],i=t[2],s=t[3],o=(17===r.type?Ar(r.number):Yt.parse(A,r))/(2*Math.PI),a=Mt(n)?n.number/100:0,c=Mt(i)?i.number/100:0,l=void 0!==s&&Mt(s)?qt(s,1):1;if(0===a)return nr(255*c,255*c,255*c,1);var u=c<=.5?c*(a+1):c+a-c*a,h=2*c-u,f=or(h,u,o+1/3),d=or(h,u,o),p=or(h,u,o-1/3);return nr(255*f,255*d,255*p,l)},cr={hsl:ar,hsla:ar,rgb:sr,rgba:sr},lr=function(A,e){return er.parse(A,_t.create(e).parseComponentValue())},ur={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(It(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},fr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr=function(A,e){var t=er.parse(A,e[0]),r=e[1];return r&&Mt(r)?{color:t,stop:r}:{color:t,stop:null}},pr=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=Kt),null===r.stop&&(r.stop=Vt);for(var n=[],i=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var a=qt(o,e);a>i?n.push(a):n.push(i),i=a}else n.push(null)}var c=null;for(s=0;s<n.length;s++){var l=n[s];if(null===l)null===c&&(c=s);else if(null!==c){for(var u=s-c,h=(l-n[c-1])/(u+1),f=1;f<=u;f++)n[c+f-1]=h*f;c=null}}return A.map(function(A,t){return{color:A.color,stop:Math.max(Math.min(1,n[t]/e),0)}})},gr=function(A,e,t){var r=e/2,n=t/2,i=qt(A[0],e)-r,s=n-qt(A[1],t);return(Math.atan2(s,i)+2*Math.PI)%(2*Math.PI)},Br=function(A,e,t){var r="number"==typeof A?A:gr(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),i=e/2,s=t/2,o=n/2,a=Math.sin(r-Math.PI/2)*o,c=Math.cos(r-Math.PI/2)*o;return[n,i-c,i+c,s-a,s+a]},wr=function(A,e){return Math.sqrt(A*A+e*e)},mr=function(A,e,t,r,n){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var i=e[0],s=e[1],o=wr(t-i,r-s);return(n?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},br=function(A,e,t,r,n){var i=0,s=0;switch(A.size){case 0:0===A.shape?i=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(i=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)i=s=Math.min(wr(e,t),wr(e,t-n),wr(e-r,t),wr(e-r,t-n));else if(1===A.shape){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=mr(r,n,e,t,!0),c=a[0],l=a[1];s=o*(i=wr(c-e,(l-t)/o))}break;case 1:0===A.shape?i=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(i=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)i=s=Math.max(wr(e,t),wr(e,t-n),wr(e-r,t),wr(e-r,t-n));else if(1===A.shape){o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var u=mr(r,n,e,t,!1);c=u[0],l=u[1],s=o*(i=wr(c-e,(l-t)/o))}}return Array.isArray(A.size)&&(i=qt(A.size[0],r),s=2===A.size.length?qt(A.size[1],n):i),[i,s]},yr=function(A,e){var t=Ar(180),r=[];return Pt(e).forEach(function(e,n){if(0===n){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(t=$t(e));if(Zt(i))return void(t=(Yt.parse(A,i)+Ar(270))%Ar(360))}var s=dr(A,e);r.push(s)}),{angle:t,stops:r,type:1}},vr="closest-side",Cr="farthest-side",Qr="closest-corner",Fr="farthest-corner",Ur="circle",xr="ellipse",Lr="cover",_r="contain",Er=function(A,e){var t=0,r=3,n=[],i=[];return Pt(e).forEach(function(e,s){var o=!0;if(0===s?o=e.reduce(function(A,e){if(It(e))switch(e.value){case"center":return i.push(Rt),!1;case"top":case"left":return i.push(Kt),!1;case"right":case"bottom":return i.push(Vt),!1}else if(Mt(e)||Ot(e))return i.push(e),!1;return A},o):1===s&&(o=e.reduce(function(A,e){if(It(e))switch(e.value){case Ur:return t=0,!1;case xr:return t=1,!1;case _r:case vr:return r=0,!1;case Cr:return r=1,!1;case Qr:return r=2,!1;case Lr:case Fr:return r=3,!1}else if(Ot(e)||Mt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A},o)),o){var a=dr(A,e);n.push(a)}}),{size:r,shape:t,stops:n,position:i,type:2}},kr=function(A){return 1===A.type},Ir=function(A){return 2===A.type},Sr={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Pr[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function jr(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Pr[A.name])}var Hr,Nr,Pr={"linear-gradient":function(A,e){var t=Ar(180),r=[];return Pt(e).forEach(function(e,n){if(0===n){var i=e[0];if(20===i.type&&"to"===i.value)return void(t=$t(e));if(Zt(i))return void(t=Yt.parse(A,i))}var s=dr(A,e);r.push(s)}),{angle:t,stops:r,type:1}},"-moz-linear-gradient":yr,"-ms-linear-gradient":yr,"-o-linear-gradient":yr,"-webkit-linear-gradient":yr,"radial-gradient":function(A,e){var t=0,r=3,n=[],i=[];return Pt(e).forEach(function(e,s){var o=!0;if(0===s){var a=!1;o=e.reduce(function(A,e){if(a)if(It(e))switch(e.value){case"center":return i.push(Rt),A;case"top":case"left":return i.push(Kt),A;case"right":case"bottom":return i.push(Vt),A}else(Mt(e)||Ot(e))&&i.push(e);else if(It(e))switch(e.value){case Ur:return t=0,!1;case xr:return t=1,!1;case"at":return a=!0,!1;case vr:return r=0,!1;case Lr:case Cr:return r=1,!1;case _r:case Qr:return r=2,!1;case Fr:return r=3,!1}else if(Ot(e)||Mt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A},o)}if(o){var c=dr(A,e);n.push(c)}}),{size:r,shape:t,stops:n,position:i,type:2}},"-moz-radial-gradient":Er,"-ms-radial-gradient":Er,"-o-radial-gradient":Er,"-webkit-radial-gradient":Er,"-webkit-gradient":function(A,e){var t=Ar(180),r=[],n=1,i=0,s=3,o=[];return Pt(e).forEach(function(e,t){var i=e[0];if(0===t){if(It(i)&&"linear"===i.value)return void(n=1);if(It(i)&&"radial"===i.value)return void(n=2)}if(18===i.type)if("from"===i.name){var s=er.parse(A,i.values[0]);r.push({stop:Kt,color:s})}else if("to"===i.name)s=er.parse(A,i.values[0]),r.push({stop:Vt,color:s});else if("color-stop"===i.name){var o=i.values.filter(Nt);if(2===o.length){s=er.parse(A,o[1]);var a=o[0];kt(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:s})}}}),1===n?{angle:(t+Ar(180))%Ar(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:o,type:n}}},Dr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter(function(A){return Nt(A)&&jr(A)}).map(function(e){return Sr.parse(A,e)})}},Or={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(It(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Mr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Pt(e).map(function(A){return A.filter(Mt)}).map(Tt)}},Tr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Pt(e).map(function(A){return A.filter(It).map(function(A){return A.value}).join(" ")}).map(Kr)}},Kr=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(Nr=Hr||(Hr={})).AUTO="auto",Nr.CONTAIN="contain",Nr.COVER="cover";var Rr,Vr,Gr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Pt(e).map(function(A){return A.filter(qr)})}},qr=function(A){return It(A)||Mt(A)},zr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Wr=zr("top"),Jr=zr("right"),Xr=zr("bottom"),Yr=zr("left"),Zr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Tt(e.filter(Mt))}}},$r=Zr("top-left"),An=Zr("top-right"),en=Zr("bottom-right"),tn=Zr("bottom-left"),rn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},nn=rn("top"),sn=rn("right"),on=rn("bottom"),an=rn("left"),cn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Et(e)?e.number:0}}},ln=cn("top"),un=cn("right"),hn=cn("bottom"),fn=cn("left"),dn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},gn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(It).reduce(function(A,e){return A|Bn(e.value)},0)}},Bn=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},wn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(Vr=Rr||(Rr={})).NORMAL="normal",Vr.STRICT="strict";var bn,yn,vn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Rr.STRICT:Rr.NORMAL}},Cn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Qn=function(A,e){return It(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Mt(A)?qt(A,e):e},Fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Sr.parse(A,e)}},Un={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},xn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Ln=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},_n=Ln("top"),En=Ln("right"),kn=Ln("bottom"),In=Ln("left"),Sn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(It).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},jn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},Hn=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nn=Hn("top"),Pn=Hn("right"),Dn=Hn("bottom"),On=Hn("left"),Mn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Tn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&jt(e[0],"none")?[]:Pt(e).map(function(e){for(var t={color:ur.TRANSPARENT,offsetX:Kt,offsetY:Kt,blur:Kt},r=0,n=0;n<e.length;n++){var i=e[n];Ot(i)?(0===r?t.offsetX=i:1===r?t.offsetY=i:t.blur=i,r++):t.color=er.parse(A,i)}return t})}},Rn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Vn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var t=Gn[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Gn={matrix:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number});return 6===e.length?e:null},matrix3d:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],16===e.length?[t,r,n,i,s,o]:null}},qn={type:16,number:50,flags:GA},zn=[qn,qn],Wn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(Mt);return 2!==t.length?zn:[t[0],t[1]]}},Jn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};(yn=bn||(bn={})).NORMAL="normal",yn.BREAK_ALL="break-all",yn.KEEP_ALL="keep-all";for(var Xn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return bn.BREAK_ALL;case"keep-all":return bn.KEEP_ALL;default:return bn.NORMAL}}},Yn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(kt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Zn={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},$n={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return kt(e)?e.number:1}},Ai={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ei={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(It).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},ti={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}}),t.length&&r.push(t.join(" ")),r.map(function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"})}},ri={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ni={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return kt(e)?e.number:It(e)&&"bold"===e.value?700:400}},ii={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(It).map(function(A){return A.value})}},si={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},oi=function(A,e){return 0!==(A&e)},ai={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},ci={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],n=e.filter(Ht),i=0;i<n.length;i++){var s=n[i],o=n[i+1];if(20===s.type){var a=o&&kt(o)?o.number:1;r.push({counter:s.value,increment:a})}}return r}},li={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(Ht),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(It(i)&&"none"!==i.value){var o=s&&kt(s)?s.number:0;t.push({counter:i.value,reset:o})}}return t}},ui={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Et).map(function(e){return Zn.parse(A,e)})}},hi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],n=e.filter(St);if(n.length%2!=0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,o=n[i+1].value;r.push({open:s,close:o})}return r}},fi=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},di={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&jt(e[0],"none")?[]:Pt(e).map(function(e){for(var t={color:255,offsetX:Kt,offsetY:Kt,blur:Kt,spread:Kt,inset:!1},r=0,n=0;n<e.length;n++){var i=e[n];jt(i,"inset")?t.inset=!0:Ot(i)?(0===r?t.offsetX=i:1===r?t.offsetY=i:2===r?t.blur=i:t.spread=i,r++):t.color=er.parse(A,i)}return t})}},pi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(It).forEach(function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}}),t.forEach(function(A){-1===r.indexOf(A)&&r.push(A)}),r}},gi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Bi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Et(e)?e.number:0}},wi=function(){function A(A,e){var t,r;this.animationDuration=yi(A,ui,e.animationDuration),this.backgroundClip=yi(A,hr,e.backgroundClip),this.backgroundColor=yi(A,fr,e.backgroundColor),this.backgroundImage=yi(A,Dr,e.backgroundImage),this.backgroundOrigin=yi(A,Or,e.backgroundOrigin),this.backgroundPosition=yi(A,Mr,e.backgroundPosition),this.backgroundRepeat=yi(A,Tr,e.backgroundRepeat),this.backgroundSize=yi(A,Gr,e.backgroundSize),this.borderTopColor=yi(A,Wr,e.borderTopColor),this.borderRightColor=yi(A,Jr,e.borderRightColor),this.borderBottomColor=yi(A,Xr,e.borderBottomColor),this.borderLeftColor=yi(A,Yr,e.borderLeftColor),this.borderTopLeftRadius=yi(A,$r,e.borderTopLeftRadius),this.borderTopRightRadius=yi(A,An,e.borderTopRightRadius),this.borderBottomRightRadius=yi(A,en,e.borderBottomRightRadius),this.borderBottomLeftRadius=yi(A,tn,e.borderBottomLeftRadius),this.borderTopStyle=yi(A,nn,e.borderTopStyle),this.borderRightStyle=yi(A,sn,e.borderRightStyle),this.borderBottomStyle=yi(A,on,e.borderBottomStyle),this.borderLeftStyle=yi(A,an,e.borderLeftStyle),this.borderTopWidth=yi(A,ln,e.borderTopWidth),this.borderRightWidth=yi(A,un,e.borderRightWidth),this.borderBottomWidth=yi(A,hn,e.borderBottomWidth),this.borderLeftWidth=yi(A,fn,e.borderLeftWidth),this.boxShadow=yi(A,di,e.boxShadow),this.color=yi(A,dn,e.color),this.direction=yi(A,pn,e.direction),this.display=yi(A,gn,e.display),this.float=yi(A,wn,e.cssFloat),this.fontFamily=yi(A,ti,e.fontFamily),this.fontSize=yi(A,ri,e.fontSize),this.fontStyle=yi(A,si,e.fontStyle),this.fontVariant=yi(A,ii,e.fontVariant),this.fontWeight=yi(A,ni,e.fontWeight),this.letterSpacing=yi(A,mn,e.letterSpacing),this.lineBreak=yi(A,vn,e.lineBreak),this.lineHeight=yi(A,Cn,e.lineHeight),this.listStyleImage=yi(A,Fn,e.listStyleImage),this.listStylePosition=yi(A,Un,e.listStylePosition),this.listStyleType=yi(A,xn,e.listStyleType),this.marginTop=yi(A,_n,e.marginTop),this.marginRight=yi(A,En,e.marginRight),this.marginBottom=yi(A,kn,e.marginBottom),this.marginLeft=yi(A,In,e.marginLeft),this.opacity=yi(A,$n,e.opacity);var n=yi(A,Sn,e.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=yi(A,jn,e.overflowWrap),this.paddingTop=yi(A,Nn,e.paddingTop),this.paddingRight=yi(A,Pn,e.paddingRight),this.paddingBottom=yi(A,Dn,e.paddingBottom),this.paddingLeft=yi(A,On,e.paddingLeft),this.paintOrder=yi(A,pi,e.paintOrder),this.position=yi(A,Tn,e.position),this.textAlign=yi(A,Mn,e.textAlign),this.textDecorationColor=yi(A,Ai,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=yi(A,ei,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=yi(A,Kn,e.textShadow),this.textTransform=yi(A,Rn,e.textTransform),this.transform=yi(A,Vn,e.transform),this.transformOrigin=yi(A,Wn,e.transformOrigin),this.visibility=yi(A,Jn,e.visibility),this.webkitTextStrokeColor=yi(A,gi,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=yi(A,Bi,e.webkitTextStrokeWidth),this.wordBreak=yi(A,Xn,e.wordBreak),this.zIndex=yi(A,Yn,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return tr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return oi(this.display,4)||oi(this.display,33554432)||oi(this.display,268435456)||oi(this.display,536870912)||oi(this.display,67108864)||oi(this.display,134217728)},A}(),mi=function(){function A(A,e){this.content=yi(A,ai,e.content),this.quotes=yi(A,hi,e.quotes)}return A}(),bi=function(){function A(A,e){this.counterIncrement=yi(A,ci,e.counterIncrement),this.counterReset=yi(A,li,e.counterReset)}return A}(),yi=function(A,e,t){var r=new Lt,n=null!=t?t.toString():e.initialValue;r.write(n);var i=new _t(r.read());switch(e.type){case 2:var s=i.parseComponentValue();return e.parse(A,It(s)?s.value:e.initialValue);case 0:return e.parse(A,i.parseComponentValue());case 1:return e.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return Yt.parse(A,i.parseComponentValue());case"color":return er.parse(A,i.parseComponentValue());case"image":return Sr.parse(A,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Ot(o)?o:Kt;case"length-percentage":var a=i.parseComponentValue();return Mt(a)?a:Kt;case"time":return Zn.parse(A,i.parseComponentValue())}}},vi="data-html2canvas-debug",Ci=function(A){switch(A.getAttribute(vi)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Qi=function(A,e){var t=Ci(A);return 1===t||e===t},Fi=function(){function A(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Qi(e,3),this.styles=new wi(A,window.getComputedStyle(e,null)),fo(e)&&(this.styles.animationDuration.some(function(A){return A>0})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=o(this.context,e),Qi(e,4)&&(this.flags|=16)}return A}(),Ui="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Li="undefined"==typeof Uint8Array?[]:new Uint8Array(256),_i=0;_i<xi.length;_i++)Li[xi.charCodeAt(_i)]=_i;for(var Ei=function(A){var e,t,r,n,i,s=.75*A.length,o=A.length,a=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<o;e+=4)t=Li[A.charCodeAt(e)],r=Li[A.charCodeAt(e+1)],n=Li[A.charCodeAt(e+2)],i=Li[A.charCodeAt(e+3)],l[a++]=t<<2|r>>4,l[a++]=(15&r)<<4|n>>2,l[a++]=(3&n)<<6|63&i;return c},ki=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Ii=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Si=5,ji=11,Hi=2,Ni=65536>>Si,Pi=(1<<Si)-1,Di=Ni+(1024>>Si)+32,Oi=65536>>ji,Mi=(1<<ji-Si)-1,Ti=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Ki=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},Ri=function(A,e){var t=Ei(A),r=Array.isArray(t)?Ii(t):new Uint32Array(t),n=Array.isArray(t)?ki(t):new Uint16Array(t),i=24,s=Ti(n,i/2,r[4]/2),o=2===r[5]?Ti(n,(i+r[4])/2):Ki(r,Math.ceil((i+r[4])/4));return new Vi(r[0],r[1],r[2],r[3],s,o)},Vi=function(){function A(A,e,t,r,n,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>Si])<<Hi)+(A&Pi),this.data[e];if(A<=65535)return e=((e=this.index[Ni+(A-55296>>Si)])<<Hi)+(A&Pi),this.data[e];if(A<this.highStart)return e=Di-Oi+(A>>ji),e=this.index[e],e+=A>>Si&Mi,e=((e=this.index[e])<<Hi)+(A&Pi),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Gi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),zi=0;zi<Gi.length;zi++)qi[Gi.charCodeAt(zi)]=zi;var Wi,Ji,Xi=1,Yi=2,Zi=3,$i=4,As=5,es=7,ts=8,rs=9,ns=10,is=11,ss=12,os=13,as=14,cs=15,ls=function(A){for(var e=[],t=0,r=A.length;t<r;){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);56320==(64512&i)?e.push(((1023&n)<<10)+(1023&i)+65536):(e.push(n),t--)}else e.push(n)}return e},us=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},hs=Ri(Ui),fs="×",ds="÷",ps=function(A){return hs.get(A)},gs=function(A,e,t){var r=t-2,n=e[r],i=e[t-1],s=e[t];if(i===Yi&&s===Zi)return fs;if(i===Yi||i===Zi||i===$i)return ds;if(s===Yi||s===Zi||s===$i)return ds;if(i===ts&&-1!==[ts,rs,is,ss].indexOf(s))return fs;if(!(i!==is&&i!==rs||s!==rs&&s!==ns))return fs;if((i===ss||i===ns)&&s===ns)return fs;if(s===os||s===As)return fs;if(s===es)return fs;if(i===Xi)return fs;if(i===os&&s===as){for(;n===As;)n=e[--r];if(n===as)return fs}if(i===cs&&s===cs){for(var o=0;n===cs;)o++,n=e[--r];if(o%2==0)return fs}return ds},Bs=function(A){var e=ls(A),t=e.length,r=0,n=0,i=e.map(ps);return{next:function(){if(r>=t)return{done:!0,value:null};for(var A=fs;r<t&&(A=gs(e,i,++r))===fs;);if(A!==fs||r===t){var s=us.apply(null,e.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},ws=function(A){for(var e,t=Bs(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r},ms=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===e)return!0}}return!1},bs=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,n=c(r.data).map(function(A){return l(A)}),i=0,s={},o=n.every(function(A,e){t.setStart(r,i),t.setEnd(r,i+A.length);var n=t.getBoundingClientRect();i+=A.length;var o=n.x>s.x||n.y>s.y;return s=n,0===e||o});return A.body.removeChild(e),o},ys=function(){return void 0!==(new Image).crossOrigin},vs=function(){return"string"==typeof(new XMLHttpRequest).responseType},Cs=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(n){return!1}return!0},Qs=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Fs=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=e.toDataURL();n.src=i;var s=Us(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),xs(s).then(function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var s=A.createElement("div");return s.style.backgroundImage="url("+i+")",s.style.height=t+"px",Qs(n)?xs(Us(t,t,0,0,s)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),Qs(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Us=function(A,e,t,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},xs=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))})},Ls={get SUPPORT_RANGE_BOUNDS(){var A=ms(document);return Object.defineProperty(Ls,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Ls.SUPPORT_RANGE_BOUNDS&&bs(document);return Object.defineProperty(Ls,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Cs(document);return Object.defineProperty(Ls,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?Fs(document):Promise.resolve(!1);return Object.defineProperty(Ls,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=ys();return Object.defineProperty(Ls,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=vs();return Object.defineProperty(Ls,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ls,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Ls,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},_s=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),Es=function(A,e,t,r){var n=Hs(e,t),i=[],o=0;return n.forEach(function(e){if(t.textDecorationLine.length||e.trim().length>0)if(Ls.SUPPORT_RANGE_BOUNDS){var n=Is(r,o,e.length).getClientRects();if(n.length>1){var a=Ss(e),c=0;a.forEach(function(e){i.push(new _s(e,s.fromDOMRectList(A,Is(r,c+o,e.length).getClientRects()))),c+=e.length})}else i.push(new _s(e,s.fromDOMRectList(A,n)))}else{var l=r.splitText(e.length);i.push(new _s(e,ks(A,r))),r=l}else Ls.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));o+=e.length}),i},ks=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var i=o(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return s.EMPTY},Is=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},Ss=function(A){if(Ls.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(A){return A.segment})}return ws(A)},js=function(A,e){if(Ls.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(A){return A.segment})}return Ps(A,e)},Hs=function(A,e){return 0!==e.letterSpacing?Ss(A):js(A,e)},Ns=[32,160,4961,65792,65793,4153,4241],Ps=function(A,e){for(var t,r=KA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),n=[],i=function(){if(t.value){var A=t.value.slice(),e=c(A),r="";e.forEach(function(A){-1===Ns.indexOf(A)?r+=l(A):(r.length&&n.push(r),n.push(l(A)),r="")}),r.length&&n.push(r)}};!(t=r.next()).done;)i();return n},Ds=function(){function A(A,e,t){this.text=Os(e.data,t.textTransform),this.textBounds=Es(A,this.text,t,e)}return A}(),Os=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Ms,Ts);case 2:return A.toUpperCase();default:return A}},Ms=/(^|\s|:|-|\(|\))([a-z])/g,Ts=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Ks=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(Fi),Rs=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(Fi),Vs=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,i=o(e,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(Fi),Gs=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Fi),qs=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(Fi),zs=[{type:15,flags:0,unit:"px",number:3}],Ws=[{type:16,flags:0,number:50}],Js=function(A){return A.width>A.height?new s(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new s(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Xs=function(A){var e=A.type===$s?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},Ys="checkbox",Zs="radio",$s="password",Ao=707406591,eo=function(A){function t(e,t){var r=A.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=Xs(t),r.type!==Ys&&r.type!==Zs||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Js(r.bounds)),r.type){case Ys:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=zs;break;case Zs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Ws}return r}return e(t,A),t}(Fi),to=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return e(t,A),t}(Fi),ro=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Fi),no=function(A){function t(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=ao(e,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?lr(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):ur.TRANSPARENT,i=t.contentWindow.document.body?lr(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):ur.TRANSPARENT;r.backgroundColor=tr(n)?tr(i)?r.styles.backgroundColor:i:n}}catch(s){}return r}return e(t,A),t}(Fi),io=["OL","UL","MENU"],so=function(A,e,t,r){for(var n=e.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,uo(n)&&n.data.trim().length>0)t.textNodes.push(new Ds(A,n,t.styles));else if(ho(n))if(Eo(n)&&n.assignedNodes)n.assignedNodes().forEach(function(e){return so(A,e,t,r)});else{var s=oo(A,n);s.styles.isVisible()&&(co(n,s,r)?s.flags|=4:lo(s.styles)&&(s.flags|=2),-1!==io.indexOf(n.tagName)&&(s.flags|=8),t.elements.push(s),n.slot,n.shadowRoot?so(A,n.shadowRoot,s,r):Lo(n)||bo(n)||_o(n)||so(A,n,s,r))}},oo=function(A,e){return Qo(e)?new Ks(A,e):vo(e)?new Rs(A,e):bo(e)?new Vs(A,e):go(e)?new Gs(A,e):Bo(e)?new qs(A,e):wo(e)?new eo(A,e):_o(e)?new to(A,e):Lo(e)?new ro(A,e):Fo(e)?new no(A,e):new Fi(A,e)},ao=function(A,e){var t=oo(A,e);return t.flags|=4,so(A,e,t,t),t},co=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||yo(A)&&t.styles.isTransparent()},lo=function(A){return A.isPositioned()||A.isFloating()},uo=function(A){return A.nodeType===Node.TEXT_NODE},ho=function(A){return A.nodeType===Node.ELEMENT_NODE},fo=function(A){return ho(A)&&void 0!==A.style&&!po(A)},po=function(A){return"object"==typeof A.className},go=function(A){return"LI"===A.tagName},Bo=function(A){return"OL"===A.tagName},wo=function(A){return"INPUT"===A.tagName},mo=function(A){return"HTML"===A.tagName},bo=function(A){return"svg"===A.tagName},yo=function(A){return"BODY"===A.tagName},vo=function(A){return"CANVAS"===A.tagName},Co=function(A){return"VIDEO"===A.tagName},Qo=function(A){return"IMG"===A.tagName},Fo=function(A){return"IFRAME"===A.tagName},Uo=function(A){return"STYLE"===A.tagName},xo=function(A){return"SCRIPT"===A.tagName},Lo=function(A){return"TEXTAREA"===A.tagName},_o=function(A){return"SELECT"===A.tagName},Eo=function(A){return"SLOT"===A.tagName},ko=function(A){return A.tagName.indexOf("-")>0},Io=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach(function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)});var i=[];return n&&r.forEach(function(A){var t=e.counters[A.counter];i.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)}),i},A}(),So={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},jo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ho={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},No={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Po=function(A,e,t,r,n,i){return A<e||A>t?Xo(A,n,i.length>0):r.integers.reduce(function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e},"")+i},Do=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},Oo=function(A,e,t,r,n){var i=t-e+1;return(A<0?"-":"")+(Do(Math.abs(A),i,r,function(A){return l(Math.floor(A%i)+e)})+n)},Mo=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return Do(Math.abs(A),r,!1,function(A){return e[Math.floor(A%r)]})+t},To=1,Ko=2,Ro=4,Vo=8,Go=function(A,e,t,r,n,i){if(A<-9999||A>9999)return Xo(A,4,n.length>0);var s=Math.abs(A),o=n;if(0===s)return e[0]+o;for(var a=0;s>0&&a<=4;a++){var c=s%10;0===c&&oi(i,To)&&""!==o?o=e[c]+o:c>1||1===c&&0===a||1===c&&1===a&&oi(i,Ko)||1===c&&1===a&&oi(i,Ro)&&A>100||1===c&&a>1&&oi(i,Vo)?o=e[c]+(a>0?t[a-1]:"")+o:1===c&&a>0&&(o=t[a-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},qo="十百千萬",zo="拾佰仟萬",Wo="マイナス",Jo="마이너스",Xo=function(A,e,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=Oo(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Mo(A,"〇一二三四五六七八九",n);case 6:return Po(A,1,3999,So,3,r).toLowerCase();case 7:return Po(A,1,3999,So,3,r);case 8:return Oo(A,945,969,!1,r);case 9:return Oo(A,97,122,!1,r);case 10:return Oo(A,65,90,!1,r);case 11:return Oo(A,1632,1641,!0,r);case 12:case 49:return Po(A,1,9999,jo,3,r);case 35:return Po(A,1,9999,jo,3,r).toLowerCase();case 13:return Oo(A,2534,2543,!0,r);case 14:case 30:return Oo(A,6112,6121,!0,r);case 15:return Mo(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Mo(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Go(A,"零一二三四五六七八九",qo,"負",n,Ko|Ro|Vo);case 47:return Go(A,"零壹貳參肆伍陸柒捌玖",zo,"負",n,To|Ko|Ro|Vo);case 42:return Go(A,"零一二三四五六七八九",qo,"负",n,Ko|Ro|Vo);case 41:return Go(A,"零壹贰叁肆伍陆柒捌玖",zo,"负",n,To|Ko|Ro|Vo);case 26:return Go(A,"〇一二三四五六七八九","十百千万",Wo,n,0);case 25:return Go(A,"零壱弐参四伍六七八九","拾百千万",Wo,n,To|Ko|Ro);case 31:return Go(A,"영일이삼사오육칠팔구","십백천만",Jo,i,To|Ko|Ro);case 33:return Go(A,"零一二三四五六七八九","十百千萬",Jo,i,0);case 32:return Go(A,"零壹貳參四五六七八九","拾百千",Jo,i,To|Ko|Ro);case 18:return Oo(A,2406,2415,!0,r);case 20:return Po(A,1,19999,No,3,r);case 21:return Oo(A,2790,2799,!0,r);case 22:return Oo(A,2662,2671,!0,r);case 22:return Po(A,1,10999,Ho,3,r);case 23:return Mo(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Mo(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Oo(A,3302,3311,!0,r);case 28:return Mo(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Mo(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Oo(A,3792,3801,!0,r);case 37:return Oo(A,6160,6169,!0,r);case 38:return Oo(A,4160,4169,!0,r);case 39:return Oo(A,2918,2927,!0,r);case 40:return Oo(A,1776,1785,!0,r);case 43:return Oo(A,3046,3055,!0,r);case 44:return Oo(A,3174,3183,!0,r);case 45:return Oo(A,3664,3673,!0,r);case 46:return Oo(A,3872,3881,!0,r);default:return Oo(A,48,57,!0,r)}},Yo="data-html2canvas-ignore",Zo=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Io,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,i=ea(A,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,a=i.contentWindow,c=a.document,l=na(i).then(function(){return r(t,void 0,void 0,function(){var A,t;return n(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ca),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ra(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then(function(){return A(c,t)}).then(function(){return i})]:[2,i]}})})});return c.open(),c.write(oa(document.doctype)+"<html></html>"),aa(this.referenceElement.ownerDocument,s,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},A.prototype.createElementClone=function(A){if(Qi(A,2),vo(A))return this.createCanvasClone(A);if(Co(A))return this.createVideoClone(A);if(Uo(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Qo(e)&&(Qo(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),ko(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return sa(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(n){if(this.context.logger.error("Unable to access cssRules property",n),"SecurityError"!==n.name)throw n}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(a){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&n)i.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var s=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}i.drawImage(A,0,0)}return r}catch(a){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(n){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){ho(e)&&(xo(e)||e.hasAttribute(Yo)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&ho(e)&&Uo(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(ho(n)&&Eo(n)&&"function"==typeof n.assignedNodes){var i=n.assignedNodes();i.length&&i.forEach(function(A){return r.appendChildNode(e,A,t)})}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(uo(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&ho(A)&&(fo(A)||po(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&fo(r)&&(this.clonedReferenceElement=r),yo(r)&&pa(r);var o=this.counters.parse(new bi(this.context,n)),a=this.resolvePseudoContent(A,r,i,Wi.BEFORE);ko(A)&&(e=!0),Co(A)||this.cloneChildNodes(A,r,e),a&&r.insertBefore(a,r.firstChild);var c=this.resolvePseudoContent(A,r,s,Wi.AFTER);return c&&r.appendChild(c),this.counters.pop(o),(n&&(this.options.copyStyles||po(A))&&!Fo(A)||e)&&sa(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Lo(A)||_o(A))&&(Lo(r)||_o(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var i=t.content,s=e.ownerDocument;if(s&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new bi(this.context,t));var o=new mi(this.context,t),a=s.createElement("html2canvaspseudoelement");sa(t,a),o.content.forEach(function(e){if(0===e.type)a.appendChild(s.createTextNode(e.value));else if(22===e.type){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(It);r.length&&a.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(Nt),c=i[0],l=i[1];if(c&&It(c)){var u=n.counters.getCounterValue(c.value),h=l&&It(l)?xn.parse(n.context,l.value):3;a.appendChild(s.createTextNode(Xo(u,h,!1)))}}else if("counters"===e.name){var f=e.values.filter(Nt),d=(c=f[0],f[1]);if(l=f[2],c&&It(c)){var p=n.counters.getCounterValues(c.value),g=l&&It(l)?xn.parse(n.context,l.value):3,B=d&&0===d.type?d.value:"",w=p.map(function(A){return Xo(A,g,!1)}).join(B);a.appendChild(s.createTextNode(w))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(s.createTextNode(fi(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(fi(o.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(e.value))}}),a.className=ha+" "+fa;var c=r===Wi.BEFORE?" "+ha:" "+fa;return po(e)?e.className.baseValue+=c:e.className+=c,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();(Ji=Wi||(Wi={}))[Ji.BEFORE=0]="BEFORE",Ji[Ji.AFTER=1]="AFTER";var $o,Aa,ea=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(Yo,"true"),A.body.appendChild(t),t},ta=function(A){return new Promise(function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()})},ra=function(A){return Promise.all([].slice.call(A.images,0).map(ta))},na=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))},50)}})},ia=["all","d","content"],sa=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===ia.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},oa=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},aa=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},ca=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},la=":before",ua=":after",ha="___html2canvas___pseudoelement_before",fa="___html2canvas___pseudoelement_after",da='{\n content: "" !important;\n display: none !important;\n}',pa=function(A){ga(A,"."+ha+la+da+"\n ."+fa+ua+da)},ga=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Ba=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),wa=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Fa(A)||va(A)?((this._cache[A]=this.loadImage(A)).catch(function(){}),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,i,s=this;return n(this,function(n){switch(n.label){case 0:return e=Ba.isSameOrigin(A),t=!Ca(A)&&!0===this._options.useCORS&&Ls.SUPPORT_CORS_IMAGES&&!e,r=!Ca(A)&&!e&&!Fa(A)&&"string"==typeof this._options.proxy&&Ls.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Ca(A)||Fa(A)||r||t?(i=A,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(Qa(i)||t)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout(function(){return A(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,n.sent()]}})})},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(n,i){var s=Ls.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var A=new FileReader;A.addEventListener("load",function(){return n(A.result)},!1),A.addEventListener("error",function(A){return i(A)},!1),A.readAsDataURL(o.response)}else i("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=i;var a=t.indexOf("?")>-1?"&":"?";if(o.open("GET",""+t+a+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var c=e._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}o.send()})},A}(),ma=/^data:image\/svg\+xml/i,ba=/^data:image\/.*;base64,/i,ya=/^data:image\/.*/i,va=function(A){return Ls.SUPPORT_SVG_DRAWING||!Ua(A)},Ca=function(A){return ya.test(A)},Qa=function(A){return ba.test(A)},Fa=function(A){return"blob"===A.substr(0,4)},Ua=function(A){return"svg"===A.substr(-3).toLowerCase()||ma.test(A)},xa=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),La=function(A,e,t){return new xa(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},_a=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=La(this.start,this.startControl,e),n=La(this.startControl,this.endControl,e),i=La(this.endControl,this.end,e),s=La(r,n,e),o=La(n,i,e),a=La(s,o,e);return t?new A(this.start,r,s,a):new A(a,o,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Ea=function(A){return 1===A.type},ka=function(){function A(A){var e=A.styles,t=A.bounds,r=Gt(e.borderTopLeftRadius,t.width,t.height),n=r[0],i=r[1],s=Gt(e.borderTopRightRadius,t.width,t.height),o=s[0],a=s[1],c=Gt(e.borderBottomRightRadius,t.width,t.height),l=c[0],u=c[1],h=Gt(e.borderBottomLeftRadius,t.width,t.height),f=h[0],d=h[1],p=[];p.push((n+o)/t.width),p.push((f+l)/t.width),p.push((i+d)/t.height),p.push((a+u)/t.height);var g=Math.max.apply(Math,p);g>1&&(n/=g,i/=g,o/=g,a/=g,l/=g,u/=g,f/=g,d/=g);var B=t.width-o,w=t.height-u,m=t.width-l,b=t.height-d,y=e.borderTopWidth,v=e.borderRightWidth,C=e.borderBottomWidth,Q=e.borderLeftWidth,F=qt(e.paddingTop,A.bounds.width),U=qt(e.paddingRight,A.bounds.width),x=qt(e.paddingBottom,A.bounds.width),L=qt(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?Ia(t.left+Q/3,t.top+y/3,n-Q/3,i-y/3,$o.TOP_LEFT):new xa(t.left+Q/3,t.top+y/3),this.topRightBorderDoubleOuterBox=n>0||i>0?Ia(t.left+B,t.top+y/3,o-v/3,a-y/3,$o.TOP_RIGHT):new xa(t.left+t.width-v/3,t.top+y/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?Ia(t.left+m,t.top+w,l-v/3,u-C/3,$o.BOTTOM_RIGHT):new xa(t.left+t.width-v/3,t.top+t.height-C/3),this.bottomLeftBorderDoubleOuterBox=f>0||d>0?Ia(t.left+Q/3,t.top+b,f-Q/3,d-C/3,$o.BOTTOM_LEFT):new xa(t.left+Q/3,t.top+t.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?Ia(t.left+2*Q/3,t.top+2*y/3,n-2*Q/3,i-2*y/3,$o.TOP_LEFT):new xa(t.left+2*Q/3,t.top+2*y/3),this.topRightBorderDoubleInnerBox=n>0||i>0?Ia(t.left+B,t.top+2*y/3,o-2*v/3,a-2*y/3,$o.TOP_RIGHT):new xa(t.left+t.width-2*v/3,t.top+2*y/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?Ia(t.left+m,t.top+w,l-2*v/3,u-2*C/3,$o.BOTTOM_RIGHT):new xa(t.left+t.width-2*v/3,t.top+t.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=f>0||d>0?Ia(t.left+2*Q/3,t.top+b,f-2*Q/3,d-2*C/3,$o.BOTTOM_LEFT):new xa(t.left+2*Q/3,t.top+t.height-2*C/3),this.topLeftBorderStroke=n>0||i>0?Ia(t.left+Q/2,t.top+y/2,n-Q/2,i-y/2,$o.TOP_LEFT):new xa(t.left+Q/2,t.top+y/2),this.topRightBorderStroke=n>0||i>0?Ia(t.left+B,t.top+y/2,o-v/2,a-y/2,$o.TOP_RIGHT):new xa(t.left+t.width-v/2,t.top+y/2),this.bottomRightBorderStroke=l>0||u>0?Ia(t.left+m,t.top+w,l-v/2,u-C/2,$o.BOTTOM_RIGHT):new xa(t.left+t.width-v/2,t.top+t.height-C/2),this.bottomLeftBorderStroke=f>0||d>0?Ia(t.left+Q/2,t.top+b,f-Q/2,d-C/2,$o.BOTTOM_LEFT):new xa(t.left+Q/2,t.top+t.height-C/2),this.topLeftBorderBox=n>0||i>0?Ia(t.left,t.top,n,i,$o.TOP_LEFT):new xa(t.left,t.top),this.topRightBorderBox=o>0||a>0?Ia(t.left+B,t.top,o,a,$o.TOP_RIGHT):new xa(t.left+t.width,t.top),this.bottomRightBorderBox=l>0||u>0?Ia(t.left+m,t.top+w,l,u,$o.BOTTOM_RIGHT):new xa(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=f>0||d>0?Ia(t.left,t.top+b,f,d,$o.BOTTOM_LEFT):new xa(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||i>0?Ia(t.left+Q,t.top+y,Math.max(0,n-Q),Math.max(0,i-y),$o.TOP_LEFT):new xa(t.left+Q,t.top+y),this.topRightPaddingBox=o>0||a>0?Ia(t.left+Math.min(B,t.width-v),t.top+y,B>t.width+v?0:Math.max(0,o-v),Math.max(0,a-y),$o.TOP_RIGHT):new xa(t.left+t.width-v,t.top+y),this.bottomRightPaddingBox=l>0||u>0?Ia(t.left+Math.min(m,t.width-Q),t.top+Math.min(w,t.height-C),Math.max(0,l-v),Math.max(0,u-C),$o.BOTTOM_RIGHT):new xa(t.left+t.width-v,t.top+t.height-C),this.bottomLeftPaddingBox=f>0||d>0?Ia(t.left+Q,t.top+Math.min(b,t.height-C),Math.max(0,f-Q),Math.max(0,d-C),$o.BOTTOM_LEFT):new xa(t.left+Q,t.top+t.height-C),this.topLeftContentBox=n>0||i>0?Ia(t.left+Q+L,t.top+y+F,Math.max(0,n-(Q+L)),Math.max(0,i-(y+F)),$o.TOP_LEFT):new xa(t.left+Q+L,t.top+y+F),this.topRightContentBox=o>0||a>0?Ia(t.left+Math.min(B,t.width+Q+L),t.top+y+F,B>t.width+Q+L?0:o-Q+L,a-(y+F),$o.TOP_RIGHT):new xa(t.left+t.width-(v+U),t.top+y+F),this.bottomRightContentBox=l>0||u>0?Ia(t.left+Math.min(m,t.width-(Q+L)),t.top+Math.min(w,t.height+y+F),Math.max(0,l-(v+U)),u-(C+x),$o.BOTTOM_RIGHT):new xa(t.left+t.width-(v+U),t.top+t.height-(C+x)),this.bottomLeftContentBox=f>0||d>0?Ia(t.left+Q+L,t.top+b,Math.max(0,f-(Q+L)),d-(C+x),$o.BOTTOM_LEFT):new xa(t.left+Q+L,t.top+t.height-(C+x))}return A}();(Aa=$o||($o={}))[Aa.TOP_LEFT=0]="TOP_LEFT",Aa[Aa.TOP_RIGHT=1]="TOP_RIGHT",Aa[Aa.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Aa[Aa.BOTTOM_LEFT=3]="BOTTOM_LEFT";var Ia=function(A,e,t,r,n){var i=(Math.sqrt(2)-1)/3*4,s=t*i,o=r*i,a=A+t,c=e+r;switch(n){case $o.TOP_LEFT:return new _a(new xa(A,c),new xa(A,c-o),new xa(a-s,e),new xa(a,e));case $o.TOP_RIGHT:return new _a(new xa(A,e),new xa(A+s,e),new xa(a,c-o),new xa(a,c));case $o.BOTTOM_RIGHT:return new _a(new xa(a,e),new xa(a,e+o),new xa(A+s,c),new xa(A,c));case $o.BOTTOM_LEFT:default:return new _a(new xa(a,c),new xa(a-s,c),new xa(A,e+o),new xa(A,e))}},Sa=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},ja=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ha=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Na=function(){function A(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return A}(),Pa=function(){function A(A,e){this.path=A,this.target=e,this.type=1}return A}(),Da=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Oa=function(A){return 0===A.type},Ma=function(A){return 1===A.type},Ta=function(A){return 2===A.type},Ka=function(A,e){return A.length===e.length&&A.some(function(A,t){return A===e[t]})},Ra=function(A,e,t,r,n){return A.map(function(A,i){switch(i){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+n);case 3:return A.add(e,t+n)}return A})},Va=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),Ga=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new ka(this.container),this.container.styles.opacity<1&&this.effects.push(new Da(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Na(t,r,n))}if(0!==this.container.styles.overflowX){var i=Sa(this.curves),s=Ha(this.curves);Ka(i,s)?this.effects.push(new Pa(i,6)):(this.effects.push(new Pa(i,2)),this.effects.push(new Pa(s,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var n=t.effects.filter(function(A){return!Ma(A)});if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var i=Sa(t.curves),s=Ha(t.curves);Ka(i,s)||r.unshift(new Pa(s,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter(function(e){return oi(e.target,A)})},A}(),qa=function(A,e,t,r){A.container.elements.forEach(function(n){var i=oi(n.flags,4),s=oi(n.flags,2),o=new Ga(n,A);oi(n.styles.display,2048)&&r.push(o);var a=oi(n.flags,8)?[]:r;if(i||s){var c=i||n.styles.isPositioned()?t:e,l=new Va(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var h=0;c.negativeZIndex.some(function(A,e){return u>A.element.container.styles.zIndex.order?(h=e,!1):h>0}),c.negativeZIndex.splice(h,0,l)}else if(u>0){var f=0;c.positiveZIndex.some(function(A,e){return u>=A.element.container.styles.zIndex.order?(f=e+1,!1):f>0}),c.positiveZIndex.splice(f,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else n.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);qa(o,l,i?l:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),qa(o,e,t,a);oi(n.flags,8)&&za(n,a)})},za=function(A,e){for(var t=A instanceof qs?A.start:1,r=A instanceof qs&&A.reversed,n=0;n<e.length;n++){var i=e[n];i.container instanceof Gs&&"number"==typeof i.container.value&&0!==i.container.value&&(t=i.container.value),i.listValue=Xo(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},Wa=function(A){var e=new Ga(A,null),t=new Va(e),r=[];return qa(e,t,t,r),za(e.container,r),t},Ja=function(A,e){switch(e){case 0:return Ac(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ac(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ac(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Ac(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Xa=function(A,e){switch(e){case 0:return Ac(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Ac(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Ac(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Ac(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Ya=function(A,e){switch(e){case 0:return Ac(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Ac(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Ac(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Ac(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Za=function(A,e){switch(e){case 0:return $a(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return $a(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return $a(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return $a(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},$a=function(A,e){var t=[];return Ea(A)?t.push(A.subdivide(.5,!1)):t.push(A),Ea(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ac=function(A,e,t,r){var n=[];return Ea(A)?n.push(A.subdivide(.5,!1)):n.push(A),Ea(t)?n.push(t.subdivide(.5,!0)):n.push(t),Ea(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Ea(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},ec=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},tc=function(A){var e=A.styles,t=A.bounds,r=qt(e.paddingLeft,t.width),n=qt(e.paddingRight,t.width),i=qt(e.paddingTop,t.width),s=qt(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+i+s))},rc=function(A,e){return 0===A?e.bounds:2===A?tc(e):ec(e)},nc=function(A,e){return 0===A?e.bounds:2===A?tc(e):ec(e)},ic=function(A,e,t){var r=rc(cc(A.styles.backgroundOrigin,e),A),n=nc(cc(A.styles.backgroundClip,e),A),i=ac(cc(A.styles.backgroundSize,e),t,r),s=i[0],o=i[1],a=Gt(cc(A.styles.backgroundPosition,e),r.width-s,r.height-o);return[lc(cc(A.styles.backgroundRepeat,e),a,i,r,n),Math.round(r.left+a[0]),Math.round(r.top+a[1]),s,o]},sc=function(A){return It(A)&&A.value===Hr.AUTO},oc=function(A){return"number"==typeof A},ac=function(A,e,t){var r=e[0],n=e[1],i=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(Mt(s)&&o&&Mt(o))return[qt(s,t.width),qt(o,t.height)];var a=oc(i);if(It(s)&&(s.value===Hr.CONTAIN||s.value===Hr.COVER))return oc(i)?t.width/t.height<i!=(s.value===Hr.COVER)?[t.width,t.width/i]:[t.height*i,t.height]:[t.width,t.height];var c=oc(r),l=oc(n),u=c||l;if(sc(s)&&(!o||sc(o)))return c&&l?[r,n]:a||u?u&&a?[c?r:n*i,l?n:r/i]:[c?r:t.width,l?n:t.height]:[t.width,t.height];if(a){var h=0,f=0;return Mt(s)?h=qt(s,t.width):Mt(o)&&(f=qt(o,t.height)),sc(s)?h=f*i:o&&!sc(o)||(f=h/i),[h,f]}var d=null,p=null;if(Mt(s)?d=qt(s,t.width):o&&Mt(o)&&(p=qt(o,t.height)),null===d||o&&!sc(o)||(p=c&&l?d/r*n:t.height),null!==p&&sc(s)&&(d=c&&l?p/n*r:t.width),null!==d&&null!==p)return[d,p];throw new Error("Unable to calculate background-size for element")},cc=function(A,e){var t=A[e];return void 0===t?A[0]:t},lc=function(A,e,t,r,n){var i=e[0],s=e[1],o=t[0],a=t[1];switch(A){case 2:return[new xa(Math.round(r.left),Math.round(r.top+s)),new xa(Math.round(r.left+r.width),Math.round(r.top+s)),new xa(Math.round(r.left+r.width),Math.round(a+r.top+s)),new xa(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new xa(Math.round(r.left+i),Math.round(r.top)),new xa(Math.round(r.left+i+o),Math.round(r.top)),new xa(Math.round(r.left+i+o),Math.round(r.height+r.top)),new xa(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new xa(Math.round(r.left+i),Math.round(r.top+s)),new xa(Math.round(r.left+i+o),Math.round(r.top+s)),new xa(Math.round(r.left+i+o),Math.round(r.top+s+a)),new xa(Math.round(r.left+i),Math.round(r.top+s+a))];default:return[new xa(Math.round(n.left),Math.round(n.top)),new xa(Math.round(n.left+n.width),Math.round(n.top)),new xa(Math.round(n.left+n.width),Math.round(n.height+n.top)),new xa(Math.round(n.left),Math.round(n.height+n.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",hc="Hidden Text",fc=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),r.src=uc,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(hc)),t.appendChild(n),t.appendChild(r);var s=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(hc)),t.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:s,middle:o}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),dc=function(){function A(A,e){this.context=A,this.options=e}return A}(),pc=1e4,gc=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new fc(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return e(t,A),t.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach(function(A){return e.applyEffect(A)})},t.prototype.applyEffect=function(A){this.ctx.save(),Ta(A)&&(this.ctx.globalAlpha=A.opacity),Oa(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Ma(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return oi(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,e,t){var r=this;0===e?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t):Ss(A.text).reduce(function(e,n){return r.ctx.fillText(n,e,A.bounds.top+t),e+r.ctx.measureText(n).width},A.bounds.left)},t.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=yc(A.fontFamily).join(", "),r=Et(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},t.prototype.renderTextNode=function(A,e){return r(this,void 0,void 0,function(){var t,r,i,s,o,a,c,l,u=this;return n(this,function(n){return t=this.createFontStyle(e),r=t[0],i=t[1],s=t[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(i,s),a=o.baseline,c=o.middle,l=e.paintOrder,A.textBounds.forEach(function(A){l.forEach(function(t){switch(t){case 0:u.ctx.fillStyle=rr(e.color),u.renderTextWithLetterSpacing(A,e.letterSpacing,a);var r=e.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach(function(t){u.ctx.shadowColor=rr(t.color),u.ctx.shadowOffsetX=t.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=t.offsetY.number*u.options.scale,u.ctx.shadowBlur=t.blur.number,u.renderTextWithLetterSpacing(A,e.letterSpacing,a)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),e.textDecorationLine.length&&(u.ctx.fillStyle=rr(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+a),A.bounds.width,1);break;case 2:u.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:u.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+c),A.bounds.width,1)}}));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(u.ctx.strokeStyle=rr(e.webkitTextStrokeColor),u.ctx.lineWidth=e.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+a)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}})}),[2]})})},t.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=tc(A),n=Ha(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,function(){var e,r,i,o,a,c,l,u,h,f,d,p,g,B,w,m,b,y;return n(this,function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,i=e.styles,o=0,a=e.textNodes,n.label=1;case 1:return o<a.length?(c=a[o],[4,this.renderTextNode(c,i)]):[3,4];case 2:n.sent(),n.label=3;case 3:return o++,[3,1];case 4:if(!(e instanceof Ks))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return w=n.sent(),this.renderReplacedElement(e,r,w),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Rs&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof Vs))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return w=n.sent(),this.renderReplacedElement(e,r,w),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof no&&e.tree?[4,new t(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:l=n.sent(),e.width&&e.height&&this.ctx.drawImage(l,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),n.label=14;case 14:if(e instanceof eo&&(u=Math.min(e.bounds.width,e.bounds.height),e.type===Ys?e.checked&&(this.ctx.save(),this.path([new xa(e.bounds.left+.39363*u,e.bounds.top+.79*u),new xa(e.bounds.left+.16*u,e.bounds.top+.5549*u),new xa(e.bounds.left+.27347*u,e.bounds.top+.44071*u),new xa(e.bounds.left+.39694*u,e.bounds.top+.5649*u),new xa(e.bounds.left+.72983*u,e.bounds.top+.23*u),new xa(e.bounds.left+.84*u,e.bounds.top+.34085*u),new xa(e.bounds.left+.39363*u,e.bounds.top+.79*u)]),this.ctx.fillStyle=rr(Ao),this.ctx.fill(),this.ctx.restore()):e.type===Zs&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+u/2,e.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=rr(Ao),this.ctx.fill(),this.ctx.restore())),Bc(e)&&e.value.length){switch(h=this.createFontStyle(i),b=h[0],f=h[1],d=this.fontMetrics.getMetrics(b,f).baseline,this.ctx.font=b,this.ctx.fillStyle=rr(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=mc(e.styles.textAlign),y=tc(e),p=0,e.styles.textAlign){case 1:p+=y.width/2;break;case 2:p+=y.width}g=y.add(p,0,0,-y.height/2+1),this.ctx.save(),this.path([new xa(y.left,y.top),new xa(y.left+y.width,y.top),new xa(y.left+y.width,y.top+y.height),new xa(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new _s(e.value,g),i.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!oi(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(B=e.styles.listStyleImage).type)return[3,18];w=void 0,m=B.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return w=n.sent(),this.ctx.drawImage(w,e.bounds.left-(w.width+10),e.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==e.styles.listStyleType&&(b=this.createFontStyle(i)[0],this.ctx.font=b,this.ctx.fillStyle=rr(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new s(e.bounds.left,e.bounds.top+qt(e.styles.paddingTop,e.bounds.width),e.bounds.width,Qn(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new _s(A.listValue,y),i.letterSpacing,Qn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(A){return r(this,void 0,void 0,function(){var e,t,r,i,s,o,a,c,l,u,h,f,d,p,g;return n(this,function(n){switch(n.label){case 0:return oi(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),e=0,t=A.negativeZIndex,n.label=2;case 2:return e<t.length?(g=t[e],[4,this.renderStack(g)]):[3,5];case 3:n.sent(),n.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,i=A.nonInlineLevel,n.label=7;case 7:return r<i.length?(g=i[r],[4,this.renderNode(g)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:s=0,o=A.nonPositionedFloats,n.label=11;case 11:return s<o.length?(g=o[s],[4,this.renderStack(g)]):[3,14];case 12:n.sent(),n.label=13;case 13:return s++,[3,11];case 14:a=0,c=A.nonPositionedInlineLevel,n.label=15;case 15:return a<c.length?(g=c[a],[4,this.renderStack(g)]):[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:l=0,u=A.inlineLevel,n.label=19;case 19:return l<u.length?(g=u[l],[4,this.renderNode(g)]):[3,22];case 20:n.sent(),n.label=21;case 21:return l++,[3,19];case 22:h=0,f=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return h<f.length?(g=f[h],[4,this.renderStack(g)]):[3,26];case 24:n.sent(),n.label=25;case 25:return h++,[3,23];case 26:d=0,p=A.positiveZIndex,n.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:n.sent(),n.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var e=this;A.forEach(function(A,t){var r=Ea(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),Ea(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},t.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},t.prototype.resizeImage=function(A,e,t){var r;if(A.width===e&&A.height===t)return A;var n=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return n.width=Math.max(1,e),n.height=Math.max(1,t),n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),n},t.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,i,s,o;return n(this,function(a){switch(a.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var i,s,o,a,c,l,u,h,f,d,p,g,B,w,m,b,y,v,C,Q,F,U,x,L,_,E,k,I,S,j,H;return n(this,function(n){switch(n.label){case 0:if(0!==t.type)return[3,5];i=void 0,s=t.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return i=n.sent(),[3,4];case 3:return n.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return i&&(o=ic(A,e,[i.width,i.height,i.width/i.height]),b=o[0],U=o[1],x=o[2],C=o[3],Q=o[4],w=r.ctx.createPattern(r.resizeImage(i,C,Q),"repeat"),r.renderRepeat(b,w,U,x)),[3,6];case 5:kr(t)?(a=ic(A,e,[null,null,null]),b=a[0],U=a[1],x=a[2],C=a[3],Q=a[4],c=Br(t.angle,C,Q),l=c[0],u=c[1],h=c[2],f=c[3],d=c[4],(p=document.createElement("canvas")).width=C,p.height=Q,g=p.getContext("2d"),B=g.createLinearGradient(u,f,h,d),pr(t.stops,l).forEach(function(A){return B.addColorStop(A.stop,rr(A.color))}),g.fillStyle=B,g.fillRect(0,0,C,Q),C>0&&Q>0&&(w=r.ctx.createPattern(p,"repeat"),r.renderRepeat(b,w,U,x))):Ir(t)&&(m=ic(A,e,[null,null,null]),b=m[0],y=m[1],v=m[2],C=m[3],Q=m[4],F=0===t.position.length?[Rt]:t.position,U=qt(F[0],C),x=qt(F[F.length-1],Q),L=br(t,U,x,C,Q),_=L[0],E=L[1],_>0&&E>0&&(k=r.ctx.createRadialGradient(y+U,v+x,0,y+U,v+x,_),pr(t.stops,2*_).forEach(function(A){return k.addColorStop(A.stop,rr(A.color))}),r.path(b),r.ctx.fillStyle=k,_!==E?(I=A.bounds.left+.5*A.bounds.width,S=A.bounds.top+.5*A.bounds.height,H=1/(j=E/_),r.ctx.save(),r.ctx.translate(I,S),r.ctx.transform(1,0,0,j,0,0),r.ctx.translate(-I,-S),r.ctx.fillRect(y,H*(v-S)+S,C,Q*H),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}})},r=this,i=0,s=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return i<s.length?(o=s[i],[5,t(o)]):[3,4];case 2:a.sent(),a.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(A,e,t){return r(this,void 0,void 0,function(){return n(this,function(r){return this.path(Ja(t,e)),this.ctx.fillStyle=rr(A),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(A,e,t,i){return r(this,void 0,void 0,function(){var r,s;return n(this,function(n){switch(n.label){case 0:return e<3?[4,this.renderSolidBorder(A,t,i)]:[3,2];case 1:return n.sent(),[2];case 2:return r=Xa(i,t),this.path(r),this.ctx.fillStyle=rr(A),this.ctx.fill(),s=Ya(i,t),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,function(){var e,t,r,i,s,o,a,c,l=this;return n(this,function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),e=A.container.styles,t=!tr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],i=wc(cc(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),tr(e.backgroundColor)||(this.ctx.fillStyle=rr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){l.ctx.save();var t=Sa(A.curves),r=e.inset?0:pc,n=Ra(t,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(l.path(t),l.ctx.clip(),l.mask(n)):(l.mask(t),l.ctx.clip(),l.path(n)),l.ctx.shadowOffsetX=e.offsetX.number+r,l.ctx.shadowOffsetY=e.offsetY.number,l.ctx.shadowColor=rr(e.color),l.ctx.shadowBlur=e.blur.number,l.ctx.fillStyle=e.inset?rr(e.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),n.label=2;case 2:s=0,o=0,a=r,n.label=3;case 3:return o<a.length?0!==(c=a[o]).style&&!tr(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,A.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,A.curves)];case 10:n.sent(),n.label=11;case 11:s++,n.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,e,t,i,s){return r(this,void 0,void 0,function(){var r,o,a,c,l,u,h,f,d,p,g,B,w,m,b,y;return n(this,function(n){return this.ctx.save(),r=Za(i,t),o=Ja(i,t),2===s&&(this.path(o),this.ctx.clip()),Ea(o[0])?(a=o[0].start.x,c=o[0].start.y):(a=o[0].x,c=o[0].y),Ea(o[1])?(l=o[1].end.x,u=o[1].end.y):(l=o[1].x,u=o[1].y),h=0===t||2===t?Math.abs(a-l):Math.abs(c-u),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(o.slice(0,2)),f=e<3?3*e:2*e,d=e<3?2*e:e,3===s&&(f=e,d=e),p=!0,h<=2*f?p=!1:h<=2*f+d?(f*=g=h/(2*f+d),d*=g):(B=Math.floor((h+d)/(f+d)),w=(h-B*f)/(B-1),d=(m=(h-(B+1)*f)/B)<=0||Math.abs(d-w)<Math.abs(d-m)?w:m),p&&(3===s?this.ctx.setLineDash([0,f+d]):this.ctx.setLineDash([f,d])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=rr(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Ea(o[0])&&(b=o[3],y=o[0],this.ctx.beginPath(),this.formatPath([new xa(b.end.x,b.end.y),new xa(y.start.x,y.start.y)]),this.ctx.stroke()),Ea(o[1])&&(b=o[1],y=o[2],this.ctx.beginPath(),this.formatPath([new xa(b.end.x,b.end.y),new xa(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(A){return r(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=Wa(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(dc),Bc=function(A){return A instanceof ro||A instanceof to||A instanceof eo&&A.type!==Zs&&A.type!==Ys},wc=function(A,e){switch(A){case 0:return Sa(e);case 2:return ja(e);default:return Ha(e)}},mc=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},bc=["-apple-system","system-ui"],yc=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(A){return-1===bc.indexOf(A)}):A},vc=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return e(t,A),t.prototype.render=function(A){return r(this,void 0,void 0,function(){var e,t;return n(this,function(r){switch(r.label){case 0:return e=Us(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,Cc(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(dc),Cc=function(A){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))})},Qc=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),Fc=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Qc({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new wa(this,e)}return A.instanceCount=1,A}(),Uc=function(A,e){return void 0===e&&(e={}),xc(A,e)};"undefined"!=typeof window&&Ba.setContext(window);var xc=function(A,e){return r(void 0,void 0,void 0,function(){var r,i,c,l,u,h,f,d,p,g,B,w,m,b,y,v,C,Q,F,U,x,L,_,E,k,I,S,j,H,N,P,D,O,M,T,K,R,V;return n(this,function(n){switch(n.label){case 0:if(!A||"object"!=typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=A.ownerDocument))throw new Error("Element is not attached to a Document");if(!(i=r.defaultView))throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(L=e.allowTaint)&&void 0!==L&&L,imageTimeout:null!==(_=e.imageTimeout)&&void 0!==_?_:15e3,proxy:e.proxy,useCORS:null!==(E=e.useCORS)&&void 0!==E&&E},l=t({logging:null===(k=e.logging)||void 0===k||k,cache:e.cache},c),u={windowWidth:null!==(I=e.windowWidth)&&void 0!==I?I:i.innerWidth,windowHeight:null!==(S=e.windowHeight)&&void 0!==S?S:i.innerHeight,scrollX:null!==(j=e.scrollX)&&void 0!==j?j:i.pageXOffset,scrollY:null!==(H=e.scrollY)&&void 0!==H?H:i.pageYOffset},h=new s(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),f=new Fc(l,h),d=null!==(N=e.foreignObjectRendering)&&void 0!==N&&N,p={allowTaint:null!==(P=e.allowTaint)&&void 0!==P&&P,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:d,copyStyles:d},f.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),g=new Zo(f,A,p),(B=g.clonedReferenceElement)?[4,g.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=n.sent(),m=yo(B)||mo(B)?a(B.ownerDocument):o(f,B),b=m.width,y=m.height,v=m.left,C=m.top,Q=Lc(f,B,e.backgroundColor),F={canvas:e.canvas,backgroundColor:Q,scale:null!==(O=null!==(D=e.scale)&&void 0!==D?D:i.devicePixelRatio)&&void 0!==O?O:1,x:(null!==(M=e.x)&&void 0!==M?M:0)+v,y:(null!==(T=e.y)&&void 0!==T?T:0)+C,width:null!==(K=e.width)&&void 0!==K?K:Math.ceil(b),height:null!==(R=e.height)&&void 0!==R?R:Math.ceil(y)},d?(f.logger.debug("Document cloned, using foreign object rendering"),[4,new vc(f,F).render(B)]):[3,3];case 2:return U=n.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+v+","+C+" with size "+b+"x"+y+" using computed rendering"),f.logger.debug("Starting DOM parsing"),x=ao(f,B),Q===x.styles.backgroundColor&&(x.styles.backgroundColor=ur.TRANSPARENT),f.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),[4,new gc(f,F).render(x)];case 4:U=n.sent(),n.label=5;case 5:return(null===(V=e.removeContainer)||void 0===V||V)&&(Zo.destroy(w)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,U]}})})},Lc=function(A,e,t){var r=e.ownerDocument,n=r.documentElement?lr(A,getComputedStyle(r.documentElement).backgroundColor):ur.TRANSPARENT,i=r.body?lr(A,getComputedStyle(r.body).backgroundColor):ur.TRANSPARENT,s="string"==typeof t?lr(A,t):null===t?ur.TRANSPARENT:4294967295;return e===r.documentElement?tr(n)?tr(i)?s:i:n:s};return Uc}()),Mi.exports}self,Oi=function(A,e){return function(){var t={"./src/plugin/hyperlinks.js":
224
- /*!**********************************!*\
225
- !*** ./src/plugin/hyperlinks.js ***!
226
- \**********************************/function(A,e,t){t.r(e),t(
227
- /*! core-js/modules/web.dom-collections.for-each.js */
228
- "./node_modules/core-js/modules/web.dom-collections.for-each.js"),t(
229
- /*! core-js/modules/es.string.link.js */
230
- "./node_modules/core-js/modules/es.string.link.js");var r=t(
231
- /*! ../worker.js */
232
- "./src/worker.js"),n=t(
233
- /*! ../utils.js */
234
- "./src/utils.js"),i=[],s={toContainer:r.default.prototype.toContainer,toPdf:r.default.prototype.toPdf};r.default.prototype.toContainer=function(){return s.toContainer.call(this).then(function(){if(this.opt.enableLinks){var A=this.prop.container,e=A.querySelectorAll("a"),t=(0,n.unitConvert)(A.getBoundingClientRect(),this.prop.pageSize.k);i=[],Array.prototype.forEach.call(e,function(A){for(var e=A.getClientRects(),r=0;r<e.length;r++){var s=(0,n.unitConvert)(e[r],this.prop.pageSize.k);s.left-=t.left,s.top-=t.top;var o=Math.floor(s.top/this.prop.pageSize.inner.height)+1,a=this.opt.margin[0]+s.top%this.prop.pageSize.inner.height,c=this.opt.margin[1]+s.left;i.push({page:o,top:a,left:c,clientRect:s,link:A})}},this)}})},r.default.prototype.toPdf=function(){return s.toPdf.call(this).then(function(){if(this.opt.enableLinks){i.forEach(function(A){this.prop.pdf.setPage(A.page),this.prop.pdf.link(A.left,A.top,A.clientRect.width,A.clientRect.height,{url:A.link.href})},this);var A=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(A)}})}},"./src/plugin/jspdf-plugin.js":
235
- /*!************************************!*\
236
- !*** ./src/plugin/jspdf-plugin.js ***!
237
- \************************************/function(A,e,t){t.r(e),t(
238
- /*! core-js/modules/es.symbol.js */
239
- "./node_modules/core-js/modules/es.symbol.js"),t(
240
- /*! core-js/modules/es.symbol.description.js */
241
- "./node_modules/core-js/modules/es.symbol.description.js"),t(
242
- /*! core-js/modules/es.object.to-string.js */
243
- "./node_modules/core-js/modules/es.object.to-string.js"),t(
244
- /*! core-js/modules/es.symbol.iterator.js */
245
- "./node_modules/core-js/modules/es.symbol.iterator.js"),t(
246
- /*! core-js/modules/es.array.iterator.js */
247
- "./node_modules/core-js/modules/es.array.iterator.js"),t(
248
- /*! core-js/modules/es.string.iterator.js */
249
- "./node_modules/core-js/modules/es.string.iterator.js"),t(
250
- /*! core-js/modules/web.dom-collections.iterator.js */
251
- "./node_modules/core-js/modules/web.dom-collections.iterator.js");var r=t(
252
- /*! jspdf */
253
- "jspdf");function n(A){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}r.jsPDF.getPageSize=function(A,e,t){if("object"===n(A)){var r=A;A=r.orientation,e=r.unit||e,t=r.format||t}e=e||"mm",t=t||"a4",A=(""+(A||"P")).toLowerCase();var i=(""+t).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":var o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+e}if(s.hasOwnProperty(i))var a=s[i][1]/o,c=s[i][0]/o;else try{a=t[1],c=t[0]}catch(u){throw new Error("Invalid format: "+t)}if("p"===A||"portrait"===A){if(A="p",c>a){var l=c;c=a,a=l}}else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",a>c&&(l=c,c=a,a=l)}return{width:c,height:a,unit:e,k:o}},e.default=r.jsPDF},"./src/plugin/pagebreaks.js":
254
- /*!**********************************!*\
255
- !*** ./src/plugin/pagebreaks.js ***!
256
- \**********************************/function(A,e,t){t.r(e),t(
257
- /*! core-js/modules/es.array.concat.js */
258
- "./node_modules/core-js/modules/es.array.concat.js"),t(
259
- /*! core-js/modules/es.array.slice.js */
260
- "./node_modules/core-js/modules/es.array.slice.js"),t(
261
- /*! core-js/modules/es.array.join.js */
262
- "./node_modules/core-js/modules/es.array.join.js"),t(
263
- /*! core-js/modules/web.dom-collections.for-each.js */
264
- "./node_modules/core-js/modules/web.dom-collections.for-each.js"),t(
265
- /*! core-js/modules/es.object.keys.js */
266
- "./node_modules/core-js/modules/es.object.keys.js");var r=t(
267
- /*! ../worker.js */
268
- "./src/worker.js"),n=t(
269
- /*! ../utils.js */
270
- "./src/utils.js"),i={toContainer:r.default.prototype.toContainer};r.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},r.default.prototype.toContainer=function(){return i.toContainer.call(this).then(function(){var A=this.prop.container,e=this.prop.pageSize.inner.px.height,t=[].concat(this.opt.pagebreak.mode),r={avoidAll:-1!==t.indexOf("avoid-all"),css:-1!==t.indexOf("css"),legacy:-1!==t.indexOf("legacy")},i={},s=this;["before","after","avoid"].forEach(function(e){var t=r.avoidAll&&"avoid"===e;i[e]=t?[]:[].concat(s.opt.pagebreak[e]||[]),i[e].length>0&&(i[e]=Array.prototype.slice.call(A.querySelectorAll(i[e].join(", "))))});var o=A.querySelectorAll(".html2pdf__page-break");o=Array.prototype.slice.call(o);var a=A.querySelectorAll("*");Array.prototype.forEach.call(a,function(A){var t={before:!1,after:r.legacy&&-1!==o.indexOf(A),avoid:r.avoidAll};if(r.css){var s=window.getComputedStyle(A),a=["always","page","left","right"];t={before:t.before||-1!==a.indexOf(s.breakBefore||s.pageBreakBefore),after:t.after||-1!==a.indexOf(s.breakAfter||s.pageBreakAfter),avoid:t.avoid||-1!==["avoid","avoid-page"].indexOf(s.breakInside||s.pageBreakInside)}}Object.keys(t).forEach(function(e){t[e]=t[e]||-1!==i[e].indexOf(A)});var c=A.getBoundingClientRect();if(t.avoid&&!t.before){var l=Math.floor(c.top/e),u=Math.floor(c.bottom/e),h=Math.abs(c.bottom-c.top)/e;u!==l&&h<=1&&(t.before=!0)}if(t.before){var f=(0,n.createElement)("div",{style:{display:"block",height:e-c.top%e+"px"}});A.parentNode.insertBefore(f,A)}t.after&&(f=(0,n.createElement)("div",{style:{display:"block",height:e-c.bottom%e+"px"}}),A.parentNode.insertBefore(f,A.nextSibling))})})}},"./src/utils.js":
271
- /*!**********************!*\
272
- !*** ./src/utils.js ***!
273
- \**********************/function(A,e,t){function r(A){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}t.r(e),t.d(e,{objType:function(){return n},createElement:function(){return i},cloneNode:function(){return s},unitConvert:function(){return o},toPx:function(){return a}}),t(
274
- /*! core-js/modules/es.number.constructor.js */
275
- "./node_modules/core-js/modules/es.number.constructor.js"),t(
276
- /*! core-js/modules/es.symbol.js */
277
- "./node_modules/core-js/modules/es.symbol.js"),t(
278
- /*! core-js/modules/es.symbol.description.js */
279
- "./node_modules/core-js/modules/es.symbol.description.js"),t(
280
- /*! core-js/modules/es.object.to-string.js */
281
- "./node_modules/core-js/modules/es.object.to-string.js"),t(
282
- /*! core-js/modules/es.symbol.iterator.js */
283
- "./node_modules/core-js/modules/es.symbol.iterator.js"),t(
284
- /*! core-js/modules/es.array.iterator.js */
285
- "./node_modules/core-js/modules/es.array.iterator.js"),t(
286
- /*! core-js/modules/es.string.iterator.js */
287
- "./node_modules/core-js/modules/es.string.iterator.js"),t(
288
- /*! core-js/modules/web.dom-collections.iterator.js */
289
- "./node_modules/core-js/modules/web.dom-collections.iterator.js");var n=function(A){var e=r(A);return"undefined"===e?"undefined":"string"===e||A instanceof String?"string":"number"===e||A instanceof Number?"number":"function"===e||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===e?"object":"unknown"},i=function(A,e){var t=document.createElement(A);if(e.className&&(t.className=e.className),e.innerHTML){t.innerHTML=e.innerHTML;for(var r=t.getElementsByTagName("script"),n=r.length;n-- >0;null)r[n].parentNode.removeChild(r[n])}for(var i in e.style)t.style[i]=e.style[i];return t},s=function A(e,t){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==t&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,t));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r},o=function(A,e){if("number"===n(A))return 72*A/96/e;var t={};for(var r in A)t[r]=72*A[r]/96/e;return t},a=function(A,e){return Math.floor(A*e/72*96)}},"./src/worker.js":
290
- /*!***********************!*\
291
- !*** ./src/worker.js ***!
292
- \***********************/function(A,e,t){t.r(e),t(
293
- /*! core-js/modules/es.object.assign.js */
294
- "./node_modules/core-js/modules/es.object.assign.js"),t(
295
- /*! core-js/modules/es.array.map.js */
296
- "./node_modules/core-js/modules/es.array.map.js"),t(
297
- /*! core-js/modules/es.object.keys.js */
298
- "./node_modules/core-js/modules/es.object.keys.js"),t(
299
- /*! core-js/modules/es.array.concat.js */
300
- "./node_modules/core-js/modules/es.array.concat.js"),t(
301
- /*! core-js/modules/es.object.to-string.js */
302
- "./node_modules/core-js/modules/es.object.to-string.js"),t(
303
- /*! core-js/modules/es.regexp.to-string.js */
304
- "./node_modules/core-js/modules/es.regexp.to-string.js"),t(
305
- /*! core-js/modules/es.function.name.js */
306
- "./node_modules/core-js/modules/es.function.name.js"),t(
307
- /*! core-js/modules/web.dom-collections.for-each.js */
308
- "./node_modules/core-js/modules/web.dom-collections.for-each.js");var r=t(
309
- /*! jspdf */
310
- "jspdf"),n=t(
311
- /*! html2canvas */
312
- "html2canvas"),i=t(
313
- /*! ./utils.js */
314
- "./src/utils.js"),s=t(
315
- /*! es6-promise */
316
- "./node_modules/es6-promise/dist/es6-promise.js"),o=t.n(s)().Promise,a=function A(e){var t=Object.assign(A.convert(o.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(o.resolve(),t);return r=(r=r.setProgress(1,A,1,[A])).set(e)};(a.prototype=Object.create(o.prototype)).constructor=a,a.convert=function(A,e){return A.__proto__=e||a.prototype,A},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},a.prototype.from=function(A,e){return this.then(function(){switch(e=e||function(A){switch((0,i.objType)(A)){case"string":return"string";case"element":return A.nodeName.toLowerCase&&"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A)){case"string":return this.set({src:(0,i.createElement)("div",{innerHTML:A})});case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}})},a.prototype.to=function(A){switch(A){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var A={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},e={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};A.opacity=0;var t=(0,i.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,i.createElement)("div",{className:"html2pdf__overlay",style:A}),this.prop.container=(0,i.createElement)("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},a.prototype.toCanvas=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(function(){var A=Object.assign({},this.opt.html2canvas);return delete A.onrendered,n(this.prop.container,A)}).then(function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A})},a.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var A=this.prop.canvas,e=this.opt,t=A.height,n=Math.floor(A.width*this.prop.pageSize.inner.ratio),i=Math.ceil(t/n),s=this.prop.pageSize.inner.height,o=document.createElement("canvas"),a=o.getContext("2d");o.width=A.width,o.height=n,this.prop.pdf=this.prop.pdf||new r.jsPDF(e.jsPDF);for(var c=0;c<i;c++){c===i-1&&t%n!==0&&(o.height=t%n,s=o.height*this.prop.pageSize.inner.width/o.width);var l=o.width,u=o.height;a.fillStyle="white",a.fillRect(0,0,l,u),a.drawImage(A,0,c*n,l,u,0,0,l,u),c&&this.prop.pdf.addPage();var h=o.toDataURL("image/"+e.image.type,e.image.quality);this.prop.pdf.addImage(h,e.image.type,e.margin[1],e.margin[0],this.prop.pageSize.inner.width,s)}})},a.prototype.output=function(A,e,t){return"img"===(t=t||"pdf").toLowerCase()||"image"===t.toLowerCase()?this.outputImg(A,e):this.outputPdf(A,e)},a.prototype.outputPdf=function(A,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(A,e)})},a.prototype.outputImg=function(A,e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(A){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+A+'" is not supported.'}})},a.prototype.save=function(A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(A?{filename:A}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.set=function(A){if("object"!==(0,i.objType)(A))return this;var e=Object.keys(A||{}).map(function(e){switch(e){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return e in a.template.prop?function(){this.prop[e]=A[e]}:function(){this.opt[e]=A[e]}}},this);return this.then(function(){return this.thenList(e)})},a.prototype.get=function(A,e){return this.then(function(){var t=A in a.template.prop?this.prop[A]:this.opt[A];return e?e(t):t})},a.prototype.setMargin=function(A){return this.then(function(){switch((0,i.objType)(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A}).then(this.setPageSize)},a.prototype.setPageSize=function(A){return this.then(function(){(A=A||r.jsPDF.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(A.inner={width:A.width-this.opt.margin[1]-this.opt.margin[3],height:A.height-this.opt.margin[0]-this.opt.margin[2]},A.inner.px={width:(0,i.toPx)(A.inner.width,A.k),height:(0,i.toPx)(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A})},a.prototype.setProgress=function(A,e,t,r){return null!=A&&(this.progress.val=A),null!=e&&(this.progress.state=e),null!=t&&(this.progress.n=t),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(A,e,t,r){return this.setProgress(A?this.progress.val+A:null,e||null,t?this.progress.n+t:null,r?this.progress.stack.concat(r):null)},a.prototype.then=function(A,e){var t=this;return this.thenCore(A,e,function(A,e){return t.updateProgress(null,null,1,[A]),o.prototype.then.call(this,function(e){return t.updateProgress(null,A),e}).then(A,e).then(function(A){return t.updateProgress(1),A})})},a.prototype.thenCore=function(A,e,t){t=t||o.prototype.then;var r=this;A&&(A=A.bind(r)),e&&(e=e.bind(r));var n=-1!==o.toString().indexOf("[native code]")&&"Promise"===o.name?r:a.convert(Object.assign({},r),o.prototype),i=t.call(n,A,e);return a.convert(i,r.__proto__)},a.prototype.thenExternal=function(A,e){return o.prototype.then.call(this,A,e)},a.prototype.thenList=function(A){var e=this;return A.forEach(function(A){e=e.thenCore(A)}),e},a.prototype.catch=function(A){A&&(A=A.bind(this));var e=o.prototype.catch.call(this,A);return a.convert(e,this)},a.prototype.catchExternal=function(A){return o.prototype.catch.call(this,A)},a.prototype.error=function(A){return this.then(function(){throw new Error(A)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,e.default=a},"./node_modules/core-js/internals/a-function.js":
317
- /*!******************************************************!*\
318
- !*** ./node_modules/core-js/internals/a-function.js ***!
319
- \******************************************************/function(A){A.exports=function(A){if("function"!=typeof A)throw TypeError(String(A)+" is not a function");return A}},"./node_modules/core-js/internals/a-possible-prototype.js":
320
- /*!****************************************************************!*\
321
- !*** ./node_modules/core-js/internals/a-possible-prototype.js ***!
322
- \****************************************************************/function(A,e,t){var r=t(
323
- /*! ../internals/is-object */
324
- "./node_modules/core-js/internals/is-object.js");A.exports=function(A){if(!r(A)&&null!==A)throw TypeError("Can't set "+String(A)+" as a prototype");return A}},"./node_modules/core-js/internals/add-to-unscopables.js":
325
- /*!**************************************************************!*\
326
- !*** ./node_modules/core-js/internals/add-to-unscopables.js ***!
327
- \**************************************************************/function(A,e,t){var r=t(
328
- /*! ../internals/well-known-symbol */
329
- "./node_modules/core-js/internals/well-known-symbol.js"),n=t(
330
- /*! ../internals/object-create */
331
- "./node_modules/core-js/internals/object-create.js"),i=t(
332
- /*! ../internals/object-define-property */
333
- "./node_modules/core-js/internals/object-define-property.js"),s=r("unscopables"),o=Array.prototype;null==o[s]&&i.f(o,s,{configurable:!0,value:n(null)}),A.exports=function(A){o[s][A]=!0}},"./node_modules/core-js/internals/an-object.js":
334
- /*!*****************************************************!*\
335
- !*** ./node_modules/core-js/internals/an-object.js ***!
336
- \*****************************************************/function(A,e,t){var r=t(
337
- /*! ../internals/is-object */
338
- "./node_modules/core-js/internals/is-object.js");A.exports=function(A){if(!r(A))throw TypeError(String(A)+" is not an object");return A}},"./node_modules/core-js/internals/array-for-each.js":
339
- /*!**********************************************************!*\
340
- !*** ./node_modules/core-js/internals/array-for-each.js ***!
341
- \**********************************************************/function(A,e,t){var r=t(
342
- /*! ../internals/array-iteration */
343
- "./node_modules/core-js/internals/array-iteration.js").forEach,n=t(
344
- /*! ../internals/array-method-is-strict */
345
- "./node_modules/core-js/internals/array-method-is-strict.js")("forEach");A.exports=n?[].forEach:function(A){return r(this,A,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":
346
- /*!**********************************************************!*\
347
- !*** ./node_modules/core-js/internals/array-includes.js ***!
348
- \**********************************************************/function(A,e,t){var r=t(
349
- /*! ../internals/to-indexed-object */
350
- "./node_modules/core-js/internals/to-indexed-object.js"),n=t(
351
- /*! ../internals/to-length */
352
- "./node_modules/core-js/internals/to-length.js"),i=t(
353
- /*! ../internals/to-absolute-index */
354
- "./node_modules/core-js/internals/to-absolute-index.js"),s=function(A){return function(e,t,s){var o,a=r(e),c=n(a.length),l=i(s,c);if(A&&t!=t){for(;c>l;)if((o=a[l++])!=o)return!0}else for(;c>l;l++)if((A||l in a)&&a[l]===t)return A||l||0;return!A&&-1}};A.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":
355
- /*!***********************************************************!*\
356
- !*** ./node_modules/core-js/internals/array-iteration.js ***!
357
- \***********************************************************/function(A,e,t){var r=t(
358
- /*! ../internals/function-bind-context */
359
- "./node_modules/core-js/internals/function-bind-context.js"),n=t(
360
- /*! ../internals/indexed-object */
361
- "./node_modules/core-js/internals/indexed-object.js"),i=t(
362
- /*! ../internals/to-object */
363
- "./node_modules/core-js/internals/to-object.js"),s=t(
364
- /*! ../internals/to-length */
365
- "./node_modules/core-js/internals/to-length.js"),o=t(
366
- /*! ../internals/array-species-create */
367
- "./node_modules/core-js/internals/array-species-create.js"),a=[].push,c=function(A){var e=1==A,t=2==A,c=3==A,l=4==A,u=6==A,h=7==A,f=5==A||u;return function(d,p,g,B){for(var w,m,b=i(d),y=n(b),v=r(p,g,3),C=s(y.length),Q=0,F=B||o,U=e?F(d,C):t||h?F(d,0):void 0;C>Q;Q++)if((f||Q in y)&&(m=v(w=y[Q],Q,b),A))if(e)U[Q]=m;else if(m)switch(A){case 3:return!0;case 5:return w;case 6:return Q;case 2:a.call(U,w)}else switch(A){case 4:return!1;case 7:a.call(U,w)}return u?-1:c||l?l:U}};A.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":
368
- /*!****************************************************************************!*\
369
- !*** ./node_modules/core-js/internals/array-method-has-species-support.js ***!
370
- \****************************************************************************/function(A,e,t){var r=t(
371
- /*! ../internals/fails */
372
- "./node_modules/core-js/internals/fails.js"),n=t(
373
- /*! ../internals/well-known-symbol */
374
- "./node_modules/core-js/internals/well-known-symbol.js"),i=t(
375
- /*! ../internals/engine-v8-version */
376
- "./node_modules/core-js/internals/engine-v8-version.js"),s=n("species");A.exports=function(A){return i>=51||!r(function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[A](Boolean).foo})}},"./node_modules/core-js/internals/array-method-is-strict.js":
377
- /*!******************************************************************!*\
378
- !*** ./node_modules/core-js/internals/array-method-is-strict.js ***!
379
- \******************************************************************/function(A,e,t){var r=t(
380
- /*! ../internals/fails */
381
- "./node_modules/core-js/internals/fails.js");A.exports=function(A,e){var t=[][A];return!!t&&r(function(){t.call(null,e||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":
382
- /*!*********************************************************************!*\
383
- !*** ./node_modules/core-js/internals/array-species-constructor.js ***!
384
- \*********************************************************************/function(A,e,t){var r=t(
385
- /*! ../internals/is-object */
386
- "./node_modules/core-js/internals/is-object.js"),n=t(
387
- /*! ../internals/is-array */
388
- "./node_modules/core-js/internals/is-array.js"),i=t(
389
- /*! ../internals/well-known-symbol */
390
- "./node_modules/core-js/internals/well-known-symbol.js")("species");A.exports=function(A){var e;return n(A)&&("function"!=typeof(e=A.constructor)||e!==Array&&!n(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},"./node_modules/core-js/internals/array-species-create.js":
391
- /*!****************************************************************!*\
392
- !*** ./node_modules/core-js/internals/array-species-create.js ***!
393
- \****************************************************************/function(A,e,t){var r=t(
394
- /*! ../internals/array-species-constructor */
395
- "./node_modules/core-js/internals/array-species-constructor.js");A.exports=function(A,e){return new(r(A))(0===e?0:e)}},"./node_modules/core-js/internals/classof-raw.js":
396
- /*!*******************************************************!*\
397
- !*** ./node_modules/core-js/internals/classof-raw.js ***!
398
- \*******************************************************/function(A){var e={}.toString;A.exports=function(A){return e.call(A).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":
399
- /*!***************************************************!*\
400
- !*** ./node_modules/core-js/internals/classof.js ***!
401
- \***************************************************/function(A,e,t){var r=t(
402
- /*! ../internals/to-string-tag-support */
403
- "./node_modules/core-js/internals/to-string-tag-support.js"),n=t(
404
- /*! ../internals/classof-raw */
405
- "./node_modules/core-js/internals/classof-raw.js"),i=t(
406
- /*! ../internals/well-known-symbol */
407
- "./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),s="Arguments"==n(function(){return arguments}());A.exports=r?n:function(A){var e,t,r;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=function(A,e){try{return A[e]}catch(t){}}(e=Object(A),i))?t:s?n(e):"Object"==(r=n(e))&&"function"==typeof e.callee?"Arguments":r}},"./node_modules/core-js/internals/copy-constructor-properties.js":
408
- /*!***********************************************************************!*\
409
- !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
410
- \***********************************************************************/function(A,e,t){var r=t(
411
- /*! ../internals/has */
412
- "./node_modules/core-js/internals/has.js"),n=t(
413
- /*! ../internals/own-keys */
414
- "./node_modules/core-js/internals/own-keys.js"),i=t(
415
- /*! ../internals/object-get-own-property-descriptor */
416
- "./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=t(
417
- /*! ../internals/object-define-property */
418
- "./node_modules/core-js/internals/object-define-property.js");A.exports=function(A,e){for(var t=n(e),o=s.f,a=i.f,c=0;c<t.length;c++){var l=t[c];r(A,l)||o(A,l,a(e,l))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":
419
- /*!********************************************************************!*\
420
- !*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
421
- \********************************************************************/function(A,e,t){var r=t(
422
- /*! ../internals/fails */
423
- "./node_modules/core-js/internals/fails.js");A.exports=!r(function(){function A(){}return A.prototype.constructor=null,Object.getPrototypeOf(new A)!==A.prototype})},"./node_modules/core-js/internals/create-html.js":
424
- /*!*******************************************************!*\
425
- !*** ./node_modules/core-js/internals/create-html.js ***!
426
- \*******************************************************/function(A,e,t){var r=t(
427
- /*! ../internals/require-object-coercible */
428
- "./node_modules/core-js/internals/require-object-coercible.js"),n=t(
429
- /*! ../internals/to-string */
430
- "./node_modules/core-js/internals/to-string.js"),i=/"/g;A.exports=function(A,e,t,s){var o=n(r(A)),a="<"+e;return""!==t&&(a+=" "+t+'="'+n(s).replace(i,"&quot;")+'"'),a+">"+o+"</"+e+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":
431
- /*!***********************************************************************!*\
432
- !*** ./node_modules/core-js/internals/create-iterator-constructor.js ***!
433
- \***********************************************************************/function(A,e,t){var r=t(
434
- /*! ../internals/iterators-core */
435
- "./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,n=t(
436
- /*! ../internals/object-create */
437
- "./node_modules/core-js/internals/object-create.js"),i=t(
438
- /*! ../internals/create-property-descriptor */
439
- "./node_modules/core-js/internals/create-property-descriptor.js"),s=t(
440
- /*! ../internals/set-to-string-tag */
441
- "./node_modules/core-js/internals/set-to-string-tag.js"),o=t(
442
- /*! ../internals/iterators */
443
- "./node_modules/core-js/internals/iterators.js"),a=function(){return this};A.exports=function(A,e,t){var c=e+" Iterator";return A.prototype=n(r,{next:i(1,t)}),s(A,c,!1,!0),o[c]=a,A}},"./node_modules/core-js/internals/create-non-enumerable-property.js":
444
- /*!**************************************************************************!*\
445
- !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***!
446
- \**************************************************************************/function(A,e,t){var r=t(
447
- /*! ../internals/descriptors */
448
- "./node_modules/core-js/internals/descriptors.js"),n=t(
449
- /*! ../internals/object-define-property */
450
- "./node_modules/core-js/internals/object-define-property.js"),i=t(
451
- /*! ../internals/create-property-descriptor */
452
- "./node_modules/core-js/internals/create-property-descriptor.js");A.exports=r?function(A,e,t){return n.f(A,e,i(1,t))}:function(A,e,t){return A[e]=t,A}},"./node_modules/core-js/internals/create-property-descriptor.js":
453
- /*!**********************************************************************!*\
454
- !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
455
- \**********************************************************************/function(A){A.exports=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}}},"./node_modules/core-js/internals/create-property.js":
456
- /*!***********************************************************!*\
457
- !*** ./node_modules/core-js/internals/create-property.js ***!
458
- \***********************************************************/function(A,e,t){var r=t(
459
- /*! ../internals/to-property-key */
460
- "./node_modules/core-js/internals/to-property-key.js"),n=t(
461
- /*! ../internals/object-define-property */
462
- "./node_modules/core-js/internals/object-define-property.js"),i=t(
463
- /*! ../internals/create-property-descriptor */
464
- "./node_modules/core-js/internals/create-property-descriptor.js");A.exports=function(A,e,t){var s=r(e);s in A?n.f(A,s,i(0,t)):A[s]=t}},"./node_modules/core-js/internals/define-iterator.js":
465
- /*!***********************************************************!*\
466
- !*** ./node_modules/core-js/internals/define-iterator.js ***!
467
- \***********************************************************/function(A,e,t){var r=t(
468
- /*! ../internals/export */
469
- "./node_modules/core-js/internals/export.js"),n=t(
470
- /*! ../internals/create-iterator-constructor */
471
- "./node_modules/core-js/internals/create-iterator-constructor.js"),i=t(
472
- /*! ../internals/object-get-prototype-of */
473
- "./node_modules/core-js/internals/object-get-prototype-of.js"),s=t(
474
- /*! ../internals/object-set-prototype-of */
475
- "./node_modules/core-js/internals/object-set-prototype-of.js"),o=t(
476
- /*! ../internals/set-to-string-tag */
477
- "./node_modules/core-js/internals/set-to-string-tag.js"),a=t(
478
- /*! ../internals/create-non-enumerable-property */
479
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),c=t(
480
- /*! ../internals/redefine */
481
- "./node_modules/core-js/internals/redefine.js"),l=t(
482
- /*! ../internals/well-known-symbol */
483
- "./node_modules/core-js/internals/well-known-symbol.js"),u=t(
484
- /*! ../internals/is-pure */
485
- "./node_modules/core-js/internals/is-pure.js"),h=t(
486
- /*! ../internals/iterators */
487
- "./node_modules/core-js/internals/iterators.js"),f=t(
488
- /*! ../internals/iterators-core */
489
- "./node_modules/core-js/internals/iterators-core.js"),d=f.IteratorPrototype,p=f.BUGGY_SAFARI_ITERATORS,g=l("iterator"),B="keys",w="values",m="entries",b=function(){return this};A.exports=function(A,e,t,l,f,y,v){n(t,e,l);var C,Q,F,U=function(A){if(A===f&&k)return k;if(!p&&A in _)return _[A];switch(A){case B:case w:case m:return function(){return new t(this,A)}}return function(){return new t(this)}},x=e+" Iterator",L=!1,_=A.prototype,E=_[g]||_["@@iterator"]||f&&_[f],k=!p&&E||U(f),I="Array"==e&&_.entries||E;if(I&&(C=i(I.call(new A)),d!==Object.prototype&&C.next&&(u||i(C)===d||(s?s(C,d):"function"!=typeof C[g]&&a(C,g,b)),o(C,x,!0,!0),u&&(h[x]=b))),f==w&&E&&E.name!==w&&(L=!0,k=function(){return E.call(this)}),u&&!v||_[g]===k||a(_,g,k),h[e]=k,f)if(Q={values:U(w),keys:y?k:U(B),entries:U(m)},v)for(F in Q)(p||L||!(F in _))&&c(_,F,Q[F]);else r({target:e,proto:!0,forced:p||L},Q);return Q}},"./node_modules/core-js/internals/define-well-known-symbol.js":
490
- /*!********************************************************************!*\
491
- !*** ./node_modules/core-js/internals/define-well-known-symbol.js ***!
492
- \********************************************************************/function(A,e,t){var r=t(
493
- /*! ../internals/path */
494
- "./node_modules/core-js/internals/path.js"),n=t(
495
- /*! ../internals/has */
496
- "./node_modules/core-js/internals/has.js"),i=t(
497
- /*! ../internals/well-known-symbol-wrapped */
498
- "./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=t(
499
- /*! ../internals/object-define-property */
500
- "./node_modules/core-js/internals/object-define-property.js").f;A.exports=function(A){var e=r.Symbol||(r.Symbol={});n(e,A)||s(e,A,{value:i.f(A)})}},"./node_modules/core-js/internals/descriptors.js":
501
- /*!*******************************************************!*\
502
- !*** ./node_modules/core-js/internals/descriptors.js ***!
503
- \*******************************************************/function(A,e,t){var r=t(
504
- /*! ../internals/fails */
505
- "./node_modules/core-js/internals/fails.js");A.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},"./node_modules/core-js/internals/document-create-element.js":
506
- /*!*******************************************************************!*\
507
- !*** ./node_modules/core-js/internals/document-create-element.js ***!
508
- \*******************************************************************/function(A,e,t){var r=t(
509
- /*! ../internals/global */
510
- "./node_modules/core-js/internals/global.js"),n=t(
511
- /*! ../internals/is-object */
512
- "./node_modules/core-js/internals/is-object.js"),i=r.document,s=n(i)&&n(i.createElement);A.exports=function(A){return s?i.createElement(A):{}}},"./node_modules/core-js/internals/dom-iterables.js":
513
- /*!*********************************************************!*\
514
- !*** ./node_modules/core-js/internals/dom-iterables.js ***!
515
- \*********************************************************/function(A){A.exports={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}},"./node_modules/core-js/internals/engine-user-agent.js":
516
- /*!*************************************************************!*\
517
- !*** ./node_modules/core-js/internals/engine-user-agent.js ***!
518
- \*************************************************************/function(A,e,t){var r=t(
519
- /*! ../internals/get-built-in */
520
- "./node_modules/core-js/internals/get-built-in.js");A.exports=r("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":
521
- /*!*************************************************************!*\
522
- !*** ./node_modules/core-js/internals/engine-v8-version.js ***!
523
- \*************************************************************/function(A,e,t){var r,n,i=t(
524
- /*! ../internals/global */
525
- "./node_modules/core-js/internals/global.js"),s=t(
526
- /*! ../internals/engine-user-agent */
527
- "./node_modules/core-js/internals/engine-user-agent.js"),o=i.process,a=i.Deno,c=o&&o.versions||a&&a.version,l=c&&c.v8;l?n=(r=l.split("."))[0]<4?1:r[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(n=r[1]),A.exports=n&&+n},"./node_modules/core-js/internals/enum-bug-keys.js":
528
- /*!*********************************************************!*\
529
- !*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
530
- \*********************************************************/function(A){A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":
531
- /*!**************************************************!*\
532
- !*** ./node_modules/core-js/internals/export.js ***!
533
- \**************************************************/function(A,e,t){var r=t(
534
- /*! ../internals/global */
535
- "./node_modules/core-js/internals/global.js"),n=t(
536
- /*! ../internals/object-get-own-property-descriptor */
537
- "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,i=t(
538
- /*! ../internals/create-non-enumerable-property */
539
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),s=t(
540
- /*! ../internals/redefine */
541
- "./node_modules/core-js/internals/redefine.js"),o=t(
542
- /*! ../internals/set-global */
543
- "./node_modules/core-js/internals/set-global.js"),a=t(
544
- /*! ../internals/copy-constructor-properties */
545
- "./node_modules/core-js/internals/copy-constructor-properties.js"),c=t(
546
- /*! ../internals/is-forced */
547
- "./node_modules/core-js/internals/is-forced.js");A.exports=function(A,e){var t,l,u,h,f,d=A.target,p=A.global,g=A.stat;if(t=p?r:g?r[d]||o(d,{}):(r[d]||{}).prototype)for(l in e){if(h=e[l],u=A.noTargetGet?(f=n(t,l))&&f.value:t[l],!c(p?l:d+(g?".":"#")+l,A.forced)&&void 0!==u){if(typeof h==typeof u)continue;a(h,u)}(A.sham||u&&u.sham)&&i(h,"sham",!0),s(t,l,h,A)}}},"./node_modules/core-js/internals/fails.js":
548
- /*!*************************************************!*\
549
- !*** ./node_modules/core-js/internals/fails.js ***!
550
- \*************************************************/function(A){A.exports=function(A){try{return!!A()}catch(e){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":
551
- /*!*****************************************************************!*\
552
- !*** ./node_modules/core-js/internals/function-bind-context.js ***!
553
- \*****************************************************************/function(A,e,t){var r=t(
554
- /*! ../internals/a-function */
555
- "./node_modules/core-js/internals/a-function.js");A.exports=function(A,e,t){if(r(A),void 0===e)return A;switch(t){case 0:return function(){return A.call(e)};case 1:return function(t){return A.call(e,t)};case 2:return function(t,r){return A.call(e,t,r)};case 3:return function(t,r,n){return A.call(e,t,r,n)}}return function(){return A.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":
556
- /*!********************************************************!*\
557
- !*** ./node_modules/core-js/internals/get-built-in.js ***!
558
- \********************************************************/function(A,e,t){var r=t(
559
- /*! ../internals/global */
560
- "./node_modules/core-js/internals/global.js");A.exports=function(A,e){return arguments.length<2?"function"==typeof(t=r[A])?t:void 0:r[A]&&r[A][e];var t}},"./node_modules/core-js/internals/global.js":
561
- /*!**************************************************!*\
562
- !*** ./node_modules/core-js/internals/global.js ***!
563
- \**************************************************/function(A){var e=function(A){return A&&A.Math==Math&&A};A.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof o&&o)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":
564
- /*!***********************************************!*\
565
- !*** ./node_modules/core-js/internals/has.js ***!
566
- \***********************************************/function(A,e,t){var r=t(
567
- /*! ../internals/to-object */
568
- "./node_modules/core-js/internals/to-object.js"),n={}.hasOwnProperty;A.exports=Object.hasOwn||function(A,e){return n.call(r(A),e)}},"./node_modules/core-js/internals/hidden-keys.js":
569
- /*!*******************************************************!*\
570
- !*** ./node_modules/core-js/internals/hidden-keys.js ***!
571
- \*******************************************************/function(A){A.exports={}},"./node_modules/core-js/internals/html.js":
572
- /*!************************************************!*\
573
- !*** ./node_modules/core-js/internals/html.js ***!
574
- \************************************************/function(A,e,t){var r=t(
575
- /*! ../internals/get-built-in */
576
- "./node_modules/core-js/internals/get-built-in.js");A.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":
577
- /*!**********************************************************!*\
578
- !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
579
- \**********************************************************/function(A,e,t){var r=t(
580
- /*! ../internals/descriptors */
581
- "./node_modules/core-js/internals/descriptors.js"),n=t(
582
- /*! ../internals/fails */
583
- "./node_modules/core-js/internals/fails.js"),i=t(
584
- /*! ../internals/document-create-element */
585
- "./node_modules/core-js/internals/document-create-element.js");A.exports=!r&&!n(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/indexed-object.js":
586
- /*!**********************************************************!*\
587
- !*** ./node_modules/core-js/internals/indexed-object.js ***!
588
- \**********************************************************/function(A,e,t){var r=t(
589
- /*! ../internals/fails */
590
- "./node_modules/core-js/internals/fails.js"),n=t(
591
- /*! ../internals/classof-raw */
592
- "./node_modules/core-js/internals/classof-raw.js"),i="".split;A.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(A){return"String"==n(A)?i.call(A,""):Object(A)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":
593
- /*!***************************************************************!*\
594
- !*** ./node_modules/core-js/internals/inherit-if-required.js ***!
595
- \***************************************************************/function(A,e,t){var r=t(
596
- /*! ../internals/is-object */
597
- "./node_modules/core-js/internals/is-object.js"),n=t(
598
- /*! ../internals/object-set-prototype-of */
599
- "./node_modules/core-js/internals/object-set-prototype-of.js");A.exports=function(A,e,t){var i,s;return n&&"function"==typeof(i=e.constructor)&&i!==t&&r(s=i.prototype)&&s!==t.prototype&&n(A,s),A}},"./node_modules/core-js/internals/inspect-source.js":
600
- /*!**********************************************************!*\
601
- !*** ./node_modules/core-js/internals/inspect-source.js ***!
602
- \**********************************************************/function(A,e,t){var r=t(
603
- /*! ../internals/shared-store */
604
- "./node_modules/core-js/internals/shared-store.js"),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(A){return n.call(A)}),A.exports=r.inspectSource},"./node_modules/core-js/internals/internal-state.js":
605
- /*!**********************************************************!*\
606
- !*** ./node_modules/core-js/internals/internal-state.js ***!
607
- \**********************************************************/function(A,e,t){var r,n,i,s=t(
608
- /*! ../internals/native-weak-map */
609
- "./node_modules/core-js/internals/native-weak-map.js"),o=t(
610
- /*! ../internals/global */
611
- "./node_modules/core-js/internals/global.js"),a=t(
612
- /*! ../internals/is-object */
613
- "./node_modules/core-js/internals/is-object.js"),c=t(
614
- /*! ../internals/create-non-enumerable-property */
615
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),l=t(
616
- /*! ../internals/has */
617
- "./node_modules/core-js/internals/has.js"),u=t(
618
- /*! ../internals/shared-store */
619
- "./node_modules/core-js/internals/shared-store.js"),h=t(
620
- /*! ../internals/shared-key */
621
- "./node_modules/core-js/internals/shared-key.js"),f=t(
622
- /*! ../internals/hidden-keys */
623
- "./node_modules/core-js/internals/hidden-keys.js"),d="Object already initialized",p=o.WeakMap;if(s||u.state){var g=u.state||(u.state=new p),B=g.get,w=g.has,m=g.set;r=function(A,e){if(w.call(g,A))throw new TypeError(d);return e.facade=A,m.call(g,A,e),e},n=function(A){return B.call(g,A)||{}},i=function(A){return w.call(g,A)}}else{var b=h("state");f[b]=!0,r=function(A,e){if(l(A,b))throw new TypeError(d);return e.facade=A,c(A,b,e),e},n=function(A){return l(A,b)?A[b]:{}},i=function(A){return l(A,b)}}A.exports={set:r,get:n,has:i,enforce:function(A){return i(A)?n(A):r(A,{})},getterFor:function(A){return function(e){var t;if(!a(e)||(t=n(e)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return t}}}},"./node_modules/core-js/internals/is-array.js":
624
- /*!****************************************************!*\
625
- !*** ./node_modules/core-js/internals/is-array.js ***!
626
- \****************************************************/function(A,e,t){var r=t(
627
- /*! ../internals/classof-raw */
628
- "./node_modules/core-js/internals/classof-raw.js");A.exports=Array.isArray||function(A){return"Array"==r(A)}},"./node_modules/core-js/internals/is-forced.js":
629
- /*!*****************************************************!*\
630
- !*** ./node_modules/core-js/internals/is-forced.js ***!
631
- \*****************************************************/function(A,e,t){var r=t(
632
- /*! ../internals/fails */
633
- "./node_modules/core-js/internals/fails.js"),n=/#|\.prototype\./,i=function(A,e){var t=o[s(A)];return t==c||t!=a&&("function"==typeof e?r(e):!!e)},s=i.normalize=function(A){return String(A).replace(n,".").toLowerCase()},o=i.data={},a=i.NATIVE="N",c=i.POLYFILL="P";A.exports=i},"./node_modules/core-js/internals/is-object.js":
634
- /*!*****************************************************!*\
635
- !*** ./node_modules/core-js/internals/is-object.js ***!
636
- \*****************************************************/function(A){A.exports=function(A){return"object"==typeof A?null!==A:"function"==typeof A}},"./node_modules/core-js/internals/is-pure.js":
637
- /*!***************************************************!*\
638
- !*** ./node_modules/core-js/internals/is-pure.js ***!
639
- \***************************************************/function(A){A.exports=!1},"./node_modules/core-js/internals/is-symbol.js":
640
- /*!*****************************************************!*\
641
- !*** ./node_modules/core-js/internals/is-symbol.js ***!
642
- \*****************************************************/function(A,e,t){var r=t(
643
- /*! ../internals/get-built-in */
644
- "./node_modules/core-js/internals/get-built-in.js"),n=t(
645
- /*! ../internals/use-symbol-as-uid */
646
- "./node_modules/core-js/internals/use-symbol-as-uid.js");A.exports=n?function(A){return"symbol"==typeof A}:function(A){var e=r("Symbol");return"function"==typeof e&&Object(A)instanceof e}},"./node_modules/core-js/internals/iterators-core.js":
647
- /*!**********************************************************!*\
648
- !*** ./node_modules/core-js/internals/iterators-core.js ***!
649
- \**********************************************************/function(A,e,t){var r,n,i,s=t(
650
- /*! ../internals/fails */
651
- "./node_modules/core-js/internals/fails.js"),o=t(
652
- /*! ../internals/object-get-prototype-of */
653
- "./node_modules/core-js/internals/object-get-prototype-of.js"),a=t(
654
- /*! ../internals/create-non-enumerable-property */
655
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),c=t(
656
- /*! ../internals/has */
657
- "./node_modules/core-js/internals/has.js"),l=t(
658
- /*! ../internals/well-known-symbol */
659
- "./node_modules/core-js/internals/well-known-symbol.js"),u=t(
660
- /*! ../internals/is-pure */
661
- "./node_modules/core-js/internals/is-pure.js"),h=l("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=o(o(i)))!==Object.prototype&&(r=n):f=!0);var d=null==r||s(function(){var A={};return r[h].call(A)!==A});d&&(r={}),u&&!d||c(r,h)||a(r,h,function(){return this}),A.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},"./node_modules/core-js/internals/iterators.js":
662
- /*!*****************************************************!*\
663
- !*** ./node_modules/core-js/internals/iterators.js ***!
664
- \*****************************************************/function(A){A.exports={}},"./node_modules/core-js/internals/native-symbol.js":
665
- /*!*********************************************************!*\
666
- !*** ./node_modules/core-js/internals/native-symbol.js ***!
667
- \*********************************************************/function(A,e,t){var r=t(
668
- /*! ../internals/engine-v8-version */
669
- "./node_modules/core-js/internals/engine-v8-version.js"),n=t(
670
- /*! ../internals/fails */
671
- "./node_modules/core-js/internals/fails.js");A.exports=!!Object.getOwnPropertySymbols&&!n(function(){var A=Symbol();return!String(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&r&&r<41})},"./node_modules/core-js/internals/native-weak-map.js":
672
- /*!***********************************************************!*\
673
- !*** ./node_modules/core-js/internals/native-weak-map.js ***!
674
- \***********************************************************/function(A,e,t){var r=t(
675
- /*! ../internals/global */
676
- "./node_modules/core-js/internals/global.js"),n=t(
677
- /*! ../internals/inspect-source */
678
- "./node_modules/core-js/internals/inspect-source.js"),i=r.WeakMap;A.exports="function"==typeof i&&/native code/.test(n(i))},"./node_modules/core-js/internals/object-assign.js":
679
- /*!*********************************************************!*\
680
- !*** ./node_modules/core-js/internals/object-assign.js ***!
681
- \*********************************************************/function(A,e,t){var r=t(
682
- /*! ../internals/descriptors */
683
- "./node_modules/core-js/internals/descriptors.js"),n=t(
684
- /*! ../internals/fails */
685
- "./node_modules/core-js/internals/fails.js"),i=t(
686
- /*! ../internals/object-keys */
687
- "./node_modules/core-js/internals/object-keys.js"),s=t(
688
- /*! ../internals/object-get-own-property-symbols */
689
- "./node_modules/core-js/internals/object-get-own-property-symbols.js"),o=t(
690
- /*! ../internals/object-property-is-enumerable */
691
- "./node_modules/core-js/internals/object-property-is-enumerable.js"),a=t(
692
- /*! ../internals/to-object */
693
- "./node_modules/core-js/internals/to-object.js"),c=t(
694
- /*! ../internals/indexed-object */
695
- "./node_modules/core-js/internals/indexed-object.js"),l=Object.assign,u=Object.defineProperty;A.exports=!l||n(function(){if(r&&1!==l({b:1},l(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},e={},t=Symbol(),n="abcdefghijklmnopqrst";return A[t]=7,n.split("").forEach(function(A){e[A]=A}),7!=l({},A)[t]||i(l({},e)).join("")!=n})?function(A,e){for(var t=a(A),n=arguments.length,l=1,u=s.f,h=o.f;n>l;)for(var f,d=c(arguments[l++]),p=u?i(d).concat(u(d)):i(d),g=p.length,B=0;g>B;)f=p[B++],r&&!h.call(d,f)||(t[f]=d[f]);return t}:l},"./node_modules/core-js/internals/object-create.js":
696
- /*!*********************************************************!*\
697
- !*** ./node_modules/core-js/internals/object-create.js ***!
698
- \*********************************************************/function(A,e,t){var r,n=t(
699
- /*! ../internals/an-object */
700
- "./node_modules/core-js/internals/an-object.js"),i=t(
701
- /*! ../internals/object-define-properties */
702
- "./node_modules/core-js/internals/object-define-properties.js"),s=t(
703
- /*! ../internals/enum-bug-keys */
704
- "./node_modules/core-js/internals/enum-bug-keys.js"),o=t(
705
- /*! ../internals/hidden-keys */
706
- "./node_modules/core-js/internals/hidden-keys.js"),a=t(
707
- /*! ../internals/html */
708
- "./node_modules/core-js/internals/html.js"),c=t(
709
- /*! ../internals/document-create-element */
710
- "./node_modules/core-js/internals/document-create-element.js"),l=t(
711
- /*! ../internals/shared-key */
712
- "./node_modules/core-js/internals/shared-key.js"),u="prototype",h="script",f=l("IE_PROTO"),d=function(){},p=function(A){return"<"+h+">"+A+"</"+h+">"},g=function(A){A.write(p("")),A.close();var e=A.parentWindow.Object;return A=null,e},B=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}B=document.domain&&r?g(r):function(){var A,e=c("iframe"),t="java"+h+":";if(e.style)return e.style.display="none",a.appendChild(e),e.src=String(t),(A=e.contentWindow.document).open(),A.write(p("document.F=Object")),A.close(),A.F}()||g(r);for(var A=s.length;A--;)delete B[u][s[A]];return B()};o[f]=!0,A.exports=Object.create||function(A,e){var t;return null!==A?(d[u]=n(A),t=new d,d[u]=null,t[f]=A):t=B(),void 0===e?t:i(t,e)}},"./node_modules/core-js/internals/object-define-properties.js":
713
- /*!********************************************************************!*\
714
- !*** ./node_modules/core-js/internals/object-define-properties.js ***!
715
- \********************************************************************/function(A,e,t){var r=t(
716
- /*! ../internals/descriptors */
717
- "./node_modules/core-js/internals/descriptors.js"),n=t(
718
- /*! ../internals/object-define-property */
719
- "./node_modules/core-js/internals/object-define-property.js"),i=t(
720
- /*! ../internals/an-object */
721
- "./node_modules/core-js/internals/an-object.js"),s=t(
722
- /*! ../internals/object-keys */
723
- "./node_modules/core-js/internals/object-keys.js");A.exports=r?Object.defineProperties:function(A,e){i(A);for(var t,r=s(e),o=r.length,a=0;o>a;)n.f(A,t=r[a++],e[t]);return A}},"./node_modules/core-js/internals/object-define-property.js":
724
- /*!******************************************************************!*\
725
- !*** ./node_modules/core-js/internals/object-define-property.js ***!
726
- \******************************************************************/function(A,e,t){var r=t(
727
- /*! ../internals/descriptors */
728
- "./node_modules/core-js/internals/descriptors.js"),n=t(
729
- /*! ../internals/ie8-dom-define */
730
- "./node_modules/core-js/internals/ie8-dom-define.js"),i=t(
731
- /*! ../internals/an-object */
732
- "./node_modules/core-js/internals/an-object.js"),s=t(
733
- /*! ../internals/to-property-key */
734
- "./node_modules/core-js/internals/to-property-key.js"),o=Object.defineProperty;e.f=r?o:function(A,e,t){if(i(A),e=s(e),i(t),n)try{return o(A,e,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(A[e]=t.value),A}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":
735
- /*!******************************************************************************!*\
736
- !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
737
- \******************************************************************************/function(A,e,t){var r=t(
738
- /*! ../internals/descriptors */
739
- "./node_modules/core-js/internals/descriptors.js"),n=t(
740
- /*! ../internals/object-property-is-enumerable */
741
- "./node_modules/core-js/internals/object-property-is-enumerable.js"),i=t(
742
- /*! ../internals/create-property-descriptor */
743
- "./node_modules/core-js/internals/create-property-descriptor.js"),s=t(
744
- /*! ../internals/to-indexed-object */
745
- "./node_modules/core-js/internals/to-indexed-object.js"),o=t(
746
- /*! ../internals/to-property-key */
747
- "./node_modules/core-js/internals/to-property-key.js"),a=t(
748
- /*! ../internals/has */
749
- "./node_modules/core-js/internals/has.js"),c=t(
750
- /*! ../internals/ie8-dom-define */
751
- "./node_modules/core-js/internals/ie8-dom-define.js"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(A,e){if(A=s(A),e=o(e),c)try{return l(A,e)}catch(t){}if(a(A,e))return i(!n.f.call(A,e),A[e])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":
752
- /*!**********************************************************************************!*\
753
- !*** ./node_modules/core-js/internals/object-get-own-property-names-external.js ***!
754
- \**********************************************************************************/function(A,e,t){var r=t(
755
- /*! ../internals/to-indexed-object */
756
- "./node_modules/core-js/internals/to-indexed-object.js"),n=t(
757
- /*! ../internals/object-get-own-property-names */
758
- "./node_modules/core-js/internals/object-get-own-property-names.js").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];A.exports.f=function(A){return s&&"[object Window]"==i.call(A)?function(A){try{return n(A)}catch(e){return s.slice()}}(A):n(r(A))}},"./node_modules/core-js/internals/object-get-own-property-names.js":
759
- /*!*************************************************************************!*\
760
- !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
761
- \*************************************************************************/function(A,e,t){var r=t(
762
- /*! ../internals/object-keys-internal */
763
- "./node_modules/core-js/internals/object-keys-internal.js"),n=t(
764
- /*! ../internals/enum-bug-keys */
765
- "./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(A){return r(A,n)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":
766
- /*!***************************************************************************!*\
767
- !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
768
- \***************************************************************************/function(A,e){e.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":
769
- /*!*******************************************************************!*\
770
- !*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
771
- \*******************************************************************/function(A,e,t){var r=t(
772
- /*! ../internals/has */
773
- "./node_modules/core-js/internals/has.js"),n=t(
774
- /*! ../internals/to-object */
775
- "./node_modules/core-js/internals/to-object.js"),i=t(
776
- /*! ../internals/shared-key */
777
- "./node_modules/core-js/internals/shared-key.js"),s=t(
778
- /*! ../internals/correct-prototype-getter */
779
- "./node_modules/core-js/internals/correct-prototype-getter.js"),o=i("IE_PROTO"),a=Object.prototype;A.exports=s?Object.getPrototypeOf:function(A){return A=n(A),r(A,o)?A[o]:"function"==typeof A.constructor&&A instanceof A.constructor?A.constructor.prototype:A instanceof Object?a:null}},"./node_modules/core-js/internals/object-keys-internal.js":
780
- /*!****************************************************************!*\
781
- !*** ./node_modules/core-js/internals/object-keys-internal.js ***!
782
- \****************************************************************/function(A,e,t){var r=t(
783
- /*! ../internals/has */
784
- "./node_modules/core-js/internals/has.js"),n=t(
785
- /*! ../internals/to-indexed-object */
786
- "./node_modules/core-js/internals/to-indexed-object.js"),i=t(
787
- /*! ../internals/array-includes */
788
- "./node_modules/core-js/internals/array-includes.js").indexOf,s=t(
789
- /*! ../internals/hidden-keys */
790
- "./node_modules/core-js/internals/hidden-keys.js");A.exports=function(A,e){var t,o=n(A),a=0,c=[];for(t in o)!r(s,t)&&r(o,t)&&c.push(t);for(;e.length>a;)r(o,t=e[a++])&&(~i(c,t)||c.push(t));return c}},"./node_modules/core-js/internals/object-keys.js":
791
- /*!*******************************************************!*\
792
- !*** ./node_modules/core-js/internals/object-keys.js ***!
793
- \*******************************************************/function(A,e,t){var r=t(
794
- /*! ../internals/object-keys-internal */
795
- "./node_modules/core-js/internals/object-keys-internal.js"),n=t(
796
- /*! ../internals/enum-bug-keys */
797
- "./node_modules/core-js/internals/enum-bug-keys.js");A.exports=Object.keys||function(A){return r(A,n)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":
798
- /*!*************************************************************************!*\
799
- !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
800
- \*************************************************************************/function(A,e){var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(A){var e=r(this,A);return!!e&&e.enumerable}:t},"./node_modules/core-js/internals/object-set-prototype-of.js":
801
- /*!*******************************************************************!*\
802
- !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
803
- \*******************************************************************/function(A,e,t){var r=t(
804
- /*! ../internals/an-object */
805
- "./node_modules/core-js/internals/an-object.js"),n=t(
806
- /*! ../internals/a-possible-prototype */
807
- "./node_modules/core-js/internals/a-possible-prototype.js");A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,e=!1,t={};try{(A=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),e=t instanceof Array}catch(i){}return function(t,i){return r(t),n(i),e?A.call(t,i):t.__proto__=i,t}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":
808
- /*!************************************************************!*\
809
- !*** ./node_modules/core-js/internals/object-to-string.js ***!
810
- \************************************************************/function(A,e,t){var r=t(
811
- /*! ../internals/to-string-tag-support */
812
- "./node_modules/core-js/internals/to-string-tag-support.js"),n=t(
813
- /*! ../internals/classof */
814
- "./node_modules/core-js/internals/classof.js");A.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":
815
- /*!*****************************************************************!*\
816
- !*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***!
817
- \*****************************************************************/function(A,e,t){var r=t(
818
- /*! ../internals/is-object */
819
- "./node_modules/core-js/internals/is-object.js");A.exports=function(A,e){var t,n;if("string"===e&&"function"==typeof(t=A.toString)&&!r(n=t.call(A)))return n;if("function"==typeof(t=A.valueOf)&&!r(n=t.call(A)))return n;if("string"!==e&&"function"==typeof(t=A.toString)&&!r(n=t.call(A)))return n;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":
820
- /*!****************************************************!*\
821
- !*** ./node_modules/core-js/internals/own-keys.js ***!
822
- \****************************************************/function(A,e,t){var r=t(
823
- /*! ../internals/get-built-in */
824
- "./node_modules/core-js/internals/get-built-in.js"),n=t(
825
- /*! ../internals/object-get-own-property-names */
826
- "./node_modules/core-js/internals/object-get-own-property-names.js"),i=t(
827
- /*! ../internals/object-get-own-property-symbols */
828
- "./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=t(
829
- /*! ../internals/an-object */
830
- "./node_modules/core-js/internals/an-object.js");A.exports=r("Reflect","ownKeys")||function(A){var e=n.f(s(A)),t=i.f;return t?e.concat(t(A)):e}},"./node_modules/core-js/internals/path.js":
831
- /*!************************************************!*\
832
- !*** ./node_modules/core-js/internals/path.js ***!
833
- \************************************************/function(A,e,t){var r=t(
834
- /*! ../internals/global */
835
- "./node_modules/core-js/internals/global.js");A.exports=r},"./node_modules/core-js/internals/redefine.js":
836
- /*!****************************************************!*\
837
- !*** ./node_modules/core-js/internals/redefine.js ***!
838
- \****************************************************/function(A,e,t){var r=t(
839
- /*! ../internals/global */
840
- "./node_modules/core-js/internals/global.js"),n=t(
841
- /*! ../internals/create-non-enumerable-property */
842
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),i=t(
843
- /*! ../internals/has */
844
- "./node_modules/core-js/internals/has.js"),s=t(
845
- /*! ../internals/set-global */
846
- "./node_modules/core-js/internals/set-global.js"),o=t(
847
- /*! ../internals/inspect-source */
848
- "./node_modules/core-js/internals/inspect-source.js"),a=t(
849
- /*! ../internals/internal-state */
850
- "./node_modules/core-js/internals/internal-state.js"),c=a.get,l=a.enforce,u=String(String).split("String");(A.exports=function(A,e,t,o){var a,c=!!o&&!!o.unsafe,h=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof t&&("string"!=typeof e||i(t,"name")||n(t,"name",e),(a=l(t)).source||(a.source=u.join("string"==typeof e?e:""))),A!==r?(c?!f&&A[e]&&(h=!0):delete A[e],h?A[e]=t:n(A,e,t)):h?A[e]=t:s(e,t)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||o(this)})},"./node_modules/core-js/internals/regexp-flags.js":
851
- /*!********************************************************!*\
852
- !*** ./node_modules/core-js/internals/regexp-flags.js ***!
853
- \********************************************************/function(A,e,t){var r=t(
854
- /*! ../internals/an-object */
855
- "./node_modules/core-js/internals/an-object.js");A.exports=function(){var A=r(this),e="";return A.global&&(e+="g"),A.ignoreCase&&(e+="i"),A.multiline&&(e+="m"),A.dotAll&&(e+="s"),A.unicode&&(e+="u"),A.sticky&&(e+="y"),e}},"./node_modules/core-js/internals/require-object-coercible.js":
856
- /*!********************************************************************!*\
857
- !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
858
- \********************************************************************/function(A){A.exports=function(A){if(null==A)throw TypeError("Can't call method on "+A);return A}},"./node_modules/core-js/internals/set-global.js":
859
- /*!******************************************************!*\
860
- !*** ./node_modules/core-js/internals/set-global.js ***!
861
- \******************************************************/function(A,e,t){var r=t(
862
- /*! ../internals/global */
863
- "./node_modules/core-js/internals/global.js");A.exports=function(A,e){try{Object.defineProperty(r,A,{value:e,configurable:!0,writable:!0})}catch(t){r[A]=e}return e}},"./node_modules/core-js/internals/set-to-string-tag.js":
864
- /*!*************************************************************!*\
865
- !*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
866
- \*************************************************************/function(A,e,t){var r=t(
867
- /*! ../internals/object-define-property */
868
- "./node_modules/core-js/internals/object-define-property.js").f,n=t(
869
- /*! ../internals/has */
870
- "./node_modules/core-js/internals/has.js"),i=t(
871
- /*! ../internals/well-known-symbol */
872
- "./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");A.exports=function(A,e,t){A&&!n(A=t?A:A.prototype,i)&&r(A,i,{configurable:!0,value:e})}},"./node_modules/core-js/internals/shared-key.js":
873
- /*!******************************************************!*\
874
- !*** ./node_modules/core-js/internals/shared-key.js ***!
875
- \******************************************************/function(A,e,t){var r=t(
876
- /*! ../internals/shared */
877
- "./node_modules/core-js/internals/shared.js"),n=t(
878
- /*! ../internals/uid */
879
- "./node_modules/core-js/internals/uid.js"),i=r("keys");A.exports=function(A){return i[A]||(i[A]=n(A))}},"./node_modules/core-js/internals/shared-store.js":
880
- /*!********************************************************!*\
881
- !*** ./node_modules/core-js/internals/shared-store.js ***!
882
- \********************************************************/function(A,e,t){var r=t(
883
- /*! ../internals/global */
884
- "./node_modules/core-js/internals/global.js"),n=t(
885
- /*! ../internals/set-global */
886
- "./node_modules/core-js/internals/set-global.js"),i="__core-js_shared__",s=r[i]||n(i,{});A.exports=s},"./node_modules/core-js/internals/shared.js":
887
- /*!**************************************************!*\
888
- !*** ./node_modules/core-js/internals/shared.js ***!
889
- \**************************************************/function(A,e,t){var r=t(
890
- /*! ../internals/is-pure */
891
- "./node_modules/core-js/internals/is-pure.js"),n=t(
892
- /*! ../internals/shared-store */
893
- "./node_modules/core-js/internals/shared-store.js");(A.exports=function(A,e){return n[A]||(n[A]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":
894
- /*!**************************************************************!*\
895
- !*** ./node_modules/core-js/internals/string-html-forced.js ***!
896
- \**************************************************************/function(A,e,t){var r=t(
897
- /*! ../internals/fails */
898
- "./node_modules/core-js/internals/fails.js");A.exports=function(A){return r(function(){var e=""[A]('"');return e!==e.toLowerCase()||e.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":
899
- /*!************************************************************!*\
900
- !*** ./node_modules/core-js/internals/string-multibyte.js ***!
901
- \************************************************************/function(A,e,t){var r=t(
902
- /*! ../internals/to-integer */
903
- "./node_modules/core-js/internals/to-integer.js"),n=t(
904
- /*! ../internals/to-string */
905
- "./node_modules/core-js/internals/to-string.js"),i=t(
906
- /*! ../internals/require-object-coercible */
907
- "./node_modules/core-js/internals/require-object-coercible.js"),s=function(A){return function(e,t){var s,o,a=n(i(e)),c=r(t),l=a.length;return c<0||c>=l?A?"":void 0:(s=a.charCodeAt(c))<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?A?a.charAt(c):s:A?a.slice(c,c+2):o-56320+(s-55296<<10)+65536}};A.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":
908
- /*!*******************************************************!*\
909
- !*** ./node_modules/core-js/internals/string-trim.js ***!
910
- \*******************************************************/function(A,e,t){var r=t(
911
- /*! ../internals/require-object-coercible */
912
- "./node_modules/core-js/internals/require-object-coercible.js"),n=t(
913
- /*! ../internals/to-string */
914
- "./node_modules/core-js/internals/to-string.js"),i="["+t(
915
- /*! ../internals/whitespaces */
916
- "./node_modules/core-js/internals/whitespaces.js")+"]",s=RegExp("^"+i+i+"*"),o=RegExp(i+i+"*$"),a=function(A){return function(e){var t=n(r(e));return 1&A&&(t=t.replace(s,"")),2&A&&(t=t.replace(o,"")),t}};A.exports={start:a(1),end:a(2),trim:a(3)}},"./node_modules/core-js/internals/to-absolute-index.js":
917
- /*!*************************************************************!*\
918
- !*** ./node_modules/core-js/internals/to-absolute-index.js ***!
919
- \*************************************************************/function(A,e,t){var r=t(
920
- /*! ../internals/to-integer */
921
- "./node_modules/core-js/internals/to-integer.js"),n=Math.max,i=Math.min;A.exports=function(A,e){var t=r(A);return t<0?n(t+e,0):i(t,e)}},"./node_modules/core-js/internals/to-indexed-object.js":
922
- /*!*************************************************************!*\
923
- !*** ./node_modules/core-js/internals/to-indexed-object.js ***!
924
- \*************************************************************/function(A,e,t){var r=t(
925
- /*! ../internals/indexed-object */
926
- "./node_modules/core-js/internals/indexed-object.js"),n=t(
927
- /*! ../internals/require-object-coercible */
928
- "./node_modules/core-js/internals/require-object-coercible.js");A.exports=function(A){return r(n(A))}},"./node_modules/core-js/internals/to-integer.js":
929
- /*!******************************************************!*\
930
- !*** ./node_modules/core-js/internals/to-integer.js ***!
931
- \******************************************************/function(A){var e=Math.ceil,t=Math.floor;A.exports=function(A){return isNaN(A=+A)?0:(A>0?t:e)(A)}},"./node_modules/core-js/internals/to-length.js":
932
- /*!*****************************************************!*\
933
- !*** ./node_modules/core-js/internals/to-length.js ***!
934
- \*****************************************************/function(A,e,t){var r=t(
935
- /*! ../internals/to-integer */
936
- "./node_modules/core-js/internals/to-integer.js"),n=Math.min;A.exports=function(A){return A>0?n(r(A),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":
937
- /*!*****************************************************!*\
938
- !*** ./node_modules/core-js/internals/to-object.js ***!
939
- \*****************************************************/function(A,e,t){var r=t(
940
- /*! ../internals/require-object-coercible */
941
- "./node_modules/core-js/internals/require-object-coercible.js");A.exports=function(A){return Object(r(A))}},"./node_modules/core-js/internals/to-primitive.js":
942
- /*!********************************************************!*\
943
- !*** ./node_modules/core-js/internals/to-primitive.js ***!
944
- \********************************************************/function(A,e,t){var r=t(
945
- /*! ../internals/is-object */
946
- "./node_modules/core-js/internals/is-object.js"),n=t(
947
- /*! ../internals/is-symbol */
948
- "./node_modules/core-js/internals/is-symbol.js"),i=t(
949
- /*! ../internals/ordinary-to-primitive */
950
- "./node_modules/core-js/internals/ordinary-to-primitive.js"),s=t(
951
- /*! ../internals/well-known-symbol */
952
- "./node_modules/core-js/internals/well-known-symbol.js")("toPrimitive");A.exports=function(A,e){if(!r(A)||n(A))return A;var t,o=A[s];if(void 0!==o){if(void 0===e&&(e="default"),t=o.call(A,e),!r(t)||n(t))return t;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(A,e)}},"./node_modules/core-js/internals/to-property-key.js":
953
- /*!***********************************************************!*\
954
- !*** ./node_modules/core-js/internals/to-property-key.js ***!
955
- \***********************************************************/function(A,e,t){var r=t(
956
- /*! ../internals/to-primitive */
957
- "./node_modules/core-js/internals/to-primitive.js"),n=t(
958
- /*! ../internals/is-symbol */
959
- "./node_modules/core-js/internals/is-symbol.js");A.exports=function(A){var e=r(A,"string");return n(e)?e:String(e)}},"./node_modules/core-js/internals/to-string-tag-support.js":
960
- /*!*****************************************************************!*\
961
- !*** ./node_modules/core-js/internals/to-string-tag-support.js ***!
962
- \*****************************************************************/function(A,e,t){var r={};r[t(
963
- /*! ../internals/well-known-symbol */
964
- "./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",A.exports="[object z]"===String(r)},"./node_modules/core-js/internals/to-string.js":
965
- /*!*****************************************************!*\
966
- !*** ./node_modules/core-js/internals/to-string.js ***!
967
- \*****************************************************/function(A,e,t){var r=t(
968
- /*! ../internals/is-symbol */
969
- "./node_modules/core-js/internals/is-symbol.js");A.exports=function(A){if(r(A))throw TypeError("Cannot convert a Symbol value to a string");return String(A)}},"./node_modules/core-js/internals/uid.js":
970
- /*!***********************************************!*\
971
- !*** ./node_modules/core-js/internals/uid.js ***!
972
- \***********************************************/function(A){var e=0,t=Math.random();A.exports=function(A){return"Symbol("+String(void 0===A?"":A)+")_"+(++e+t).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":
973
- /*!*************************************************************!*\
974
- !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***!
975
- \*************************************************************/function(A,e,t){var r=t(
976
- /*! ../internals/native-symbol */
977
- "./node_modules/core-js/internals/native-symbol.js");A.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":
978
- /*!*********************************************************************!*\
979
- !*** ./node_modules/core-js/internals/well-known-symbol-wrapped.js ***!
980
- \*********************************************************************/function(A,e,t){var r=t(
981
- /*! ../internals/well-known-symbol */
982
- "./node_modules/core-js/internals/well-known-symbol.js");e.f=r},"./node_modules/core-js/internals/well-known-symbol.js":
983
- /*!*************************************************************!*\
984
- !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
985
- \*************************************************************/function(A,e,t){var r=t(
986
- /*! ../internals/global */
987
- "./node_modules/core-js/internals/global.js"),n=t(
988
- /*! ../internals/shared */
989
- "./node_modules/core-js/internals/shared.js"),i=t(
990
- /*! ../internals/has */
991
- "./node_modules/core-js/internals/has.js"),s=t(
992
- /*! ../internals/uid */
993
- "./node_modules/core-js/internals/uid.js"),o=t(
994
- /*! ../internals/native-symbol */
995
- "./node_modules/core-js/internals/native-symbol.js"),a=t(
996
- /*! ../internals/use-symbol-as-uid */
997
- "./node_modules/core-js/internals/use-symbol-as-uid.js"),c=n("wks"),l=r.Symbol,u=a?l:l&&l.withoutSetter||s;A.exports=function(A){return i(c,A)&&(o||"string"==typeof c[A])||(o&&i(l,A)?c[A]=l[A]:c[A]=u("Symbol."+A)),c[A]}},"./node_modules/core-js/internals/whitespaces.js":
998
- /*!*******************************************************!*\
999
- !*** ./node_modules/core-js/internals/whitespaces.js ***!
1000
- \*******************************************************/function(A){A.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.concat.js":
1001
- /*!*********************************************************!*\
1002
- !*** ./node_modules/core-js/modules/es.array.concat.js ***!
1003
- \*********************************************************/function(A,e,t){var r=t(
1004
- /*! ../internals/export */
1005
- "./node_modules/core-js/internals/export.js"),n=t(
1006
- /*! ../internals/fails */
1007
- "./node_modules/core-js/internals/fails.js"),i=t(
1008
- /*! ../internals/is-array */
1009
- "./node_modules/core-js/internals/is-array.js"),s=t(
1010
- /*! ../internals/is-object */
1011
- "./node_modules/core-js/internals/is-object.js"),o=t(
1012
- /*! ../internals/to-object */
1013
- "./node_modules/core-js/internals/to-object.js"),a=t(
1014
- /*! ../internals/to-length */
1015
- "./node_modules/core-js/internals/to-length.js"),c=t(
1016
- /*! ../internals/create-property */
1017
- "./node_modules/core-js/internals/create-property.js"),l=t(
1018
- /*! ../internals/array-species-create */
1019
- "./node_modules/core-js/internals/array-species-create.js"),u=t(
1020
- /*! ../internals/array-method-has-species-support */
1021
- "./node_modules/core-js/internals/array-method-has-species-support.js"),h=t(
1022
- /*! ../internals/well-known-symbol */
1023
- "./node_modules/core-js/internals/well-known-symbol.js"),f=t(
1024
- /*! ../internals/engine-v8-version */
1025
- "./node_modules/core-js/internals/engine-v8-version.js"),d=h("isConcatSpreadable"),p=9007199254740991,g="Maximum allowed index exceeded",B=f>=51||!n(function(){var A=[];return A[d]=!1,A.concat()[0]!==A}),w=u("concat"),m=function(A){if(!s(A))return!1;var e=A[d];return void 0!==e?!!e:i(A)};r({target:"Array",proto:!0,forced:!B||!w},{concat:function(A){var e,t,r,n,i,s=o(this),u=l(s,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?s:arguments[e])){if(h+(n=a(i.length))>p)throw TypeError(g);for(t=0;t<n;t++,h++)t in i&&c(u,h,i[t])}else{if(h>=p)throw TypeError(g);c(u,h++,i)}return u.length=h,u}})},"./node_modules/core-js/modules/es.array.iterator.js":
1026
- /*!***********************************************************!*\
1027
- !*** ./node_modules/core-js/modules/es.array.iterator.js ***!
1028
- \***********************************************************/function(A,e,t){var r=t(
1029
- /*! ../internals/to-indexed-object */
1030
- "./node_modules/core-js/internals/to-indexed-object.js"),n=t(
1031
- /*! ../internals/add-to-unscopables */
1032
- "./node_modules/core-js/internals/add-to-unscopables.js"),i=t(
1033
- /*! ../internals/iterators */
1034
- "./node_modules/core-js/internals/iterators.js"),s=t(
1035
- /*! ../internals/internal-state */
1036
- "./node_modules/core-js/internals/internal-state.js"),o=t(
1037
- /*! ../internals/define-iterator */
1038
- "./node_modules/core-js/internals/define-iterator.js"),a="Array Iterator",c=s.set,l=s.getterFor(a);A.exports=o(Array,"Array",function(A,e){c(this,{type:a,target:r(A),index:0,kind:e})},function(){var A=l(this),e=A.target,t=A.kind,r=A.index++;return!e||r>=e.length?(A.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:r,done:!1}:"values"==t?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},"./node_modules/core-js/modules/es.array.join.js":
1039
- /*!*******************************************************!*\
1040
- !*** ./node_modules/core-js/modules/es.array.join.js ***!
1041
- \*******************************************************/function(A,e,t){var r=t(
1042
- /*! ../internals/export */
1043
- "./node_modules/core-js/internals/export.js"),n=t(
1044
- /*! ../internals/indexed-object */
1045
- "./node_modules/core-js/internals/indexed-object.js"),i=t(
1046
- /*! ../internals/to-indexed-object */
1047
- "./node_modules/core-js/internals/to-indexed-object.js"),s=t(
1048
- /*! ../internals/array-method-is-strict */
1049
- "./node_modules/core-js/internals/array-method-is-strict.js"),o=[].join,a=n!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:a||!c},{join:function(A){return o.call(i(this),void 0===A?",":A)}})},"./node_modules/core-js/modules/es.array.map.js":
1050
- /*!******************************************************!*\
1051
- !*** ./node_modules/core-js/modules/es.array.map.js ***!
1052
- \******************************************************/function(A,e,t){var r=t(
1053
- /*! ../internals/export */
1054
- "./node_modules/core-js/internals/export.js"),n=t(
1055
- /*! ../internals/array-iteration */
1056
- "./node_modules/core-js/internals/array-iteration.js").map;r({target:"Array",proto:!0,forced:!t(
1057
- /*! ../internals/array-method-has-species-support */
1058
- "./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(A){return n(this,A,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":
1059
- /*!********************************************************!*\
1060
- !*** ./node_modules/core-js/modules/es.array.slice.js ***!
1061
- \********************************************************/function(A,e,t){var r=t(
1062
- /*! ../internals/export */
1063
- "./node_modules/core-js/internals/export.js"),n=t(
1064
- /*! ../internals/is-object */
1065
- "./node_modules/core-js/internals/is-object.js"),i=t(
1066
- /*! ../internals/is-array */
1067
- "./node_modules/core-js/internals/is-array.js"),s=t(
1068
- /*! ../internals/to-absolute-index */
1069
- "./node_modules/core-js/internals/to-absolute-index.js"),o=t(
1070
- /*! ../internals/to-length */
1071
- "./node_modules/core-js/internals/to-length.js"),a=t(
1072
- /*! ../internals/to-indexed-object */
1073
- "./node_modules/core-js/internals/to-indexed-object.js"),c=t(
1074
- /*! ../internals/create-property */
1075
- "./node_modules/core-js/internals/create-property.js"),l=t(
1076
- /*! ../internals/well-known-symbol */
1077
- "./node_modules/core-js/internals/well-known-symbol.js"),u=t(
1078
- /*! ../internals/array-method-has-species-support */
1079
- "./node_modules/core-js/internals/array-method-has-species-support.js")("slice"),h=l("species"),f=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!u},{slice:function(A,e){var t,r,l,u=a(this),p=o(u.length),g=s(A,p),B=s(void 0===e?p:e,p);if(i(u)&&("function"!=typeof(t=u.constructor)||t!==Array&&!i(t.prototype)?n(t)&&null===(t=t[h])&&(t=void 0):t=void 0,t===Array||void 0===t))return f.call(u,g,B);for(r=new(void 0===t?Array:t)(d(B-g,0)),l=0;g<B;g++,l++)g in u&&c(r,l,u[g]);return r.length=l,r}})},"./node_modules/core-js/modules/es.function.name.js":
1080
- /*!**********************************************************!*\
1081
- !*** ./node_modules/core-js/modules/es.function.name.js ***!
1082
- \**********************************************************/function(A,e,t){var r=t(
1083
- /*! ../internals/descriptors */
1084
- "./node_modules/core-js/internals/descriptors.js"),n=t(
1085
- /*! ../internals/object-define-property */
1086
- "./node_modules/core-js/internals/object-define-property.js").f,i=Function.prototype,s=i.toString,o=/^\s*function ([^ (]*)/,a="name";r&&!(a in i)&&n(i,a,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(A){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":
1087
- /*!***************************************************************!*\
1088
- !*** ./node_modules/core-js/modules/es.number.constructor.js ***!
1089
- \***************************************************************/function(A,e,t){var r=t(
1090
- /*! ../internals/descriptors */
1091
- "./node_modules/core-js/internals/descriptors.js"),n=t(
1092
- /*! ../internals/global */
1093
- "./node_modules/core-js/internals/global.js"),i=t(
1094
- /*! ../internals/is-forced */
1095
- "./node_modules/core-js/internals/is-forced.js"),s=t(
1096
- /*! ../internals/redefine */
1097
- "./node_modules/core-js/internals/redefine.js"),o=t(
1098
- /*! ../internals/has */
1099
- "./node_modules/core-js/internals/has.js"),a=t(
1100
- /*! ../internals/classof-raw */
1101
- "./node_modules/core-js/internals/classof-raw.js"),c=t(
1102
- /*! ../internals/inherit-if-required */
1103
- "./node_modules/core-js/internals/inherit-if-required.js"),l=t(
1104
- /*! ../internals/is-symbol */
1105
- "./node_modules/core-js/internals/is-symbol.js"),u=t(
1106
- /*! ../internals/to-primitive */
1107
- "./node_modules/core-js/internals/to-primitive.js"),h=t(
1108
- /*! ../internals/fails */
1109
- "./node_modules/core-js/internals/fails.js"),f=t(
1110
- /*! ../internals/object-create */
1111
- "./node_modules/core-js/internals/object-create.js"),d=t(
1112
- /*! ../internals/object-get-own-property-names */
1113
- "./node_modules/core-js/internals/object-get-own-property-names.js").f,p=t(
1114
- /*! ../internals/object-get-own-property-descriptor */
1115
- "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,g=t(
1116
- /*! ../internals/object-define-property */
1117
- "./node_modules/core-js/internals/object-define-property.js").f,B=t(
1118
- /*! ../internals/string-trim */
1119
- "./node_modules/core-js/internals/string-trim.js").trim,w="Number",m=n[w],b=m.prototype,y=a(f(b))==w,v=function(A){if(l(A))throw TypeError("Cannot convert a Symbol value to a number");var e,t,r,n,i,s,o,a,c=u(A,"number");if("string"==typeof c&&c.length>2)if(43===(e=(c=B(c)).charCodeAt(0))||45===e){if(88===(t=c.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+c}for(s=(i=c.slice(2)).length,o=0;o<s;o++)if((a=i.charCodeAt(o))<48||a>n)return NaN;return parseInt(i,r)}return+c};if(i(w,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var C,Q=function(A){var e=arguments.length<1?0:A,t=this;return t instanceof Q&&(y?h(function(){b.valueOf.call(t)}):a(t)!=w)?c(new m(v(e)),t,Q):v(e)},F=r?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),U=0;F.length>U;U++)o(m,C=F[U])&&!o(Q,C)&&g(Q,C,p(m,C));Q.prototype=b,b.constructor=Q,s(n,w,Q)}},"./node_modules/core-js/modules/es.object.assign.js":
1120
- /*!**********************************************************!*\
1121
- !*** ./node_modules/core-js/modules/es.object.assign.js ***!
1122
- \**********************************************************/function(A,e,t){var r=t(
1123
- /*! ../internals/export */
1124
- "./node_modules/core-js/internals/export.js"),n=t(
1125
- /*! ../internals/object-assign */
1126
- "./node_modules/core-js/internals/object-assign.js");r({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},"./node_modules/core-js/modules/es.object.keys.js":
1127
- /*!********************************************************!*\
1128
- !*** ./node_modules/core-js/modules/es.object.keys.js ***!
1129
- \********************************************************/function(A,e,t){var r=t(
1130
- /*! ../internals/export */
1131
- "./node_modules/core-js/internals/export.js"),n=t(
1132
- /*! ../internals/to-object */
1133
- "./node_modules/core-js/internals/to-object.js"),i=t(
1134
- /*! ../internals/object-keys */
1135
- "./node_modules/core-js/internals/object-keys.js");r({target:"Object",stat:!0,forced:t(
1136
- /*! ../internals/fails */
1137
- "./node_modules/core-js/internals/fails.js")(function(){i(1)})},{keys:function(A){return i(n(A))}})},"./node_modules/core-js/modules/es.object.to-string.js":
1138
- /*!*************************************************************!*\
1139
- !*** ./node_modules/core-js/modules/es.object.to-string.js ***!
1140
- \*************************************************************/function(A,e,t){var r=t(
1141
- /*! ../internals/to-string-tag-support */
1142
- "./node_modules/core-js/internals/to-string-tag-support.js"),n=t(
1143
- /*! ../internals/redefine */
1144
- "./node_modules/core-js/internals/redefine.js"),i=t(
1145
- /*! ../internals/object-to-string */
1146
- "./node_modules/core-js/internals/object-to-string.js");r||n(Object.prototype,"toString",i,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":
1147
- /*!*************************************************************!*\
1148
- !*** ./node_modules/core-js/modules/es.regexp.to-string.js ***!
1149
- \*************************************************************/function(A,e,t){var r=t(
1150
- /*! ../internals/redefine */
1151
- "./node_modules/core-js/internals/redefine.js"),n=t(
1152
- /*! ../internals/an-object */
1153
- "./node_modules/core-js/internals/an-object.js"),i=t(
1154
- /*! ../internals/to-string */
1155
- "./node_modules/core-js/internals/to-string.js"),s=t(
1156
- /*! ../internals/fails */
1157
- "./node_modules/core-js/internals/fails.js"),o=t(
1158
- /*! ../internals/regexp-flags */
1159
- "./node_modules/core-js/internals/regexp-flags.js"),a="toString",c=RegExp.prototype,l=c[a],u=s(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),h=l.name!=a;(u||h)&&r(RegExp.prototype,a,function(){var A=n(this),e=i(A.source),t=A.flags;return"/"+e+"/"+i(void 0===t&&A instanceof RegExp&&!("flags"in c)?o.call(A):t)},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":
1160
- /*!************************************************************!*\
1161
- !*** ./node_modules/core-js/modules/es.string.iterator.js ***!
1162
- \************************************************************/function(A,e,t){var r=t(
1163
- /*! ../internals/string-multibyte */
1164
- "./node_modules/core-js/internals/string-multibyte.js").charAt,n=t(
1165
- /*! ../internals/to-string */
1166
- "./node_modules/core-js/internals/to-string.js"),i=t(
1167
- /*! ../internals/internal-state */
1168
- "./node_modules/core-js/internals/internal-state.js"),s=t(
1169
- /*! ../internals/define-iterator */
1170
- "./node_modules/core-js/internals/define-iterator.js"),o="String Iterator",a=i.set,c=i.getterFor(o);s(String,"String",function(A){a(this,{type:o,string:n(A),index:0})},function(){var A,e=c(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(A=r(t,n),e.index+=A.length,{value:A,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":
1171
- /*!********************************************************!*\
1172
- !*** ./node_modules/core-js/modules/es.string.link.js ***!
1173
- \********************************************************/function(A,e,t){var r=t(
1174
- /*! ../internals/export */
1175
- "./node_modules/core-js/internals/export.js"),n=t(
1176
- /*! ../internals/create-html */
1177
- "./node_modules/core-js/internals/create-html.js");r({target:"String",proto:!0,forced:t(
1178
- /*! ../internals/string-html-forced */
1179
- "./node_modules/core-js/internals/string-html-forced.js")("link")},{link:function(A){return n(this,"a","href",A)}})},"./node_modules/core-js/modules/es.symbol.description.js":
1180
- /*!***************************************************************!*\
1181
- !*** ./node_modules/core-js/modules/es.symbol.description.js ***!
1182
- \***************************************************************/function(A,e,t){var r=t(
1183
- /*! ../internals/export */
1184
- "./node_modules/core-js/internals/export.js"),n=t(
1185
- /*! ../internals/descriptors */
1186
- "./node_modules/core-js/internals/descriptors.js"),i=t(
1187
- /*! ../internals/global */
1188
- "./node_modules/core-js/internals/global.js"),s=t(
1189
- /*! ../internals/has */
1190
- "./node_modules/core-js/internals/has.js"),o=t(
1191
- /*! ../internals/is-object */
1192
- "./node_modules/core-js/internals/is-object.js"),a=t(
1193
- /*! ../internals/object-define-property */
1194
- "./node_modules/core-js/internals/object-define-property.js").f,c=t(
1195
- /*! ../internals/copy-constructor-properties */
1196
- "./node_modules/core-js/internals/copy-constructor-properties.js"),l=i.Symbol;if(n&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var u={},h=function(){var A=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new l(A):void 0===A?l():l(A);return""===A&&(u[e]=!0),e};c(h,l);var f=h.prototype=l.prototype;f.constructor=h;var d=f.toString,p="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;a(f,"description",{configurable:!0,get:function(){var A=o(this)?this.valueOf():this,e=d.call(A);if(s(u,A))return"";var t=p?e.slice(7,-1):e.replace(g,"$1");return""===t?void 0:t}}),r({global:!0,forced:!0},{Symbol:h})}},"./node_modules/core-js/modules/es.symbol.iterator.js":
1197
- /*!************************************************************!*\
1198
- !*** ./node_modules/core-js/modules/es.symbol.iterator.js ***!
1199
- \************************************************************/function(A,e,t){t(
1200
- /*! ../internals/define-well-known-symbol */
1201
- "./node_modules/core-js/internals/define-well-known-symbol.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":
1202
- /*!***************************************************!*\
1203
- !*** ./node_modules/core-js/modules/es.symbol.js ***!
1204
- \***************************************************/function(A,e,t){var r=t(
1205
- /*! ../internals/export */
1206
- "./node_modules/core-js/internals/export.js"),n=t(
1207
- /*! ../internals/global */
1208
- "./node_modules/core-js/internals/global.js"),i=t(
1209
- /*! ../internals/get-built-in */
1210
- "./node_modules/core-js/internals/get-built-in.js"),s=t(
1211
- /*! ../internals/is-pure */
1212
- "./node_modules/core-js/internals/is-pure.js"),o=t(
1213
- /*! ../internals/descriptors */
1214
- "./node_modules/core-js/internals/descriptors.js"),a=t(
1215
- /*! ../internals/native-symbol */
1216
- "./node_modules/core-js/internals/native-symbol.js"),c=t(
1217
- /*! ../internals/fails */
1218
- "./node_modules/core-js/internals/fails.js"),l=t(
1219
- /*! ../internals/has */
1220
- "./node_modules/core-js/internals/has.js"),u=t(
1221
- /*! ../internals/is-array */
1222
- "./node_modules/core-js/internals/is-array.js"),h=t(
1223
- /*! ../internals/is-object */
1224
- "./node_modules/core-js/internals/is-object.js"),f=t(
1225
- /*! ../internals/is-symbol */
1226
- "./node_modules/core-js/internals/is-symbol.js"),d=t(
1227
- /*! ../internals/an-object */
1228
- "./node_modules/core-js/internals/an-object.js"),p=t(
1229
- /*! ../internals/to-object */
1230
- "./node_modules/core-js/internals/to-object.js"),g=t(
1231
- /*! ../internals/to-indexed-object */
1232
- "./node_modules/core-js/internals/to-indexed-object.js"),B=t(
1233
- /*! ../internals/to-property-key */
1234
- "./node_modules/core-js/internals/to-property-key.js"),w=t(
1235
- /*! ../internals/to-string */
1236
- "./node_modules/core-js/internals/to-string.js"),m=t(
1237
- /*! ../internals/create-property-descriptor */
1238
- "./node_modules/core-js/internals/create-property-descriptor.js"),b=t(
1239
- /*! ../internals/object-create */
1240
- "./node_modules/core-js/internals/object-create.js"),y=t(
1241
- /*! ../internals/object-keys */
1242
- "./node_modules/core-js/internals/object-keys.js"),v=t(
1243
- /*! ../internals/object-get-own-property-names */
1244
- "./node_modules/core-js/internals/object-get-own-property-names.js"),C=t(
1245
- /*! ../internals/object-get-own-property-names-external */
1246
- "./node_modules/core-js/internals/object-get-own-property-names-external.js"),Q=t(
1247
- /*! ../internals/object-get-own-property-symbols */
1248
- "./node_modules/core-js/internals/object-get-own-property-symbols.js"),F=t(
1249
- /*! ../internals/object-get-own-property-descriptor */
1250
- "./node_modules/core-js/internals/object-get-own-property-descriptor.js"),U=t(
1251
- /*! ../internals/object-define-property */
1252
- "./node_modules/core-js/internals/object-define-property.js"),x=t(
1253
- /*! ../internals/object-property-is-enumerable */
1254
- "./node_modules/core-js/internals/object-property-is-enumerable.js"),L=t(
1255
- /*! ../internals/create-non-enumerable-property */
1256
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),_=t(
1257
- /*! ../internals/redefine */
1258
- "./node_modules/core-js/internals/redefine.js"),E=t(
1259
- /*! ../internals/shared */
1260
- "./node_modules/core-js/internals/shared.js"),k=t(
1261
- /*! ../internals/shared-key */
1262
- "./node_modules/core-js/internals/shared-key.js"),I=t(
1263
- /*! ../internals/hidden-keys */
1264
- "./node_modules/core-js/internals/hidden-keys.js"),S=t(
1265
- /*! ../internals/uid */
1266
- "./node_modules/core-js/internals/uid.js"),j=t(
1267
- /*! ../internals/well-known-symbol */
1268
- "./node_modules/core-js/internals/well-known-symbol.js"),H=t(
1269
- /*! ../internals/well-known-symbol-wrapped */
1270
- "./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=t(
1271
- /*! ../internals/define-well-known-symbol */
1272
- "./node_modules/core-js/internals/define-well-known-symbol.js"),P=t(
1273
- /*! ../internals/set-to-string-tag */
1274
- "./node_modules/core-js/internals/set-to-string-tag.js"),D=t(
1275
- /*! ../internals/internal-state */
1276
- "./node_modules/core-js/internals/internal-state.js"),O=t(
1277
- /*! ../internals/array-iteration */
1278
- "./node_modules/core-js/internals/array-iteration.js").forEach,M=k("hidden"),T="Symbol",K="prototype",R=j("toPrimitive"),V=D.set,G=D.getterFor(T),q=Object[K],z=n.Symbol,W=i("JSON","stringify"),J=F.f,X=U.f,Y=C.f,Z=x.f,$=E("symbols"),AA=E("op-symbols"),eA=E("string-to-symbol-registry"),tA=E("symbol-to-string-registry"),rA=E("wks"),nA=n.QObject,iA=!nA||!nA[K]||!nA[K].findChild,sA=o&&c(function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(A,e,t){var r=J(q,e);r&&delete q[e],X(A,e,t),r&&A!==q&&X(q,e,r)}:X,oA=function(A,e){var t=$[A]=b(z[K]);return V(t,{type:T,tag:A,description:e}),o||(t.description=e),t},aA=function(A,e,t){A===q&&aA(AA,e,t),d(A);var r=B(e);return d(t),l($,r)?(t.enumerable?(l(A,M)&&A[M][r]&&(A[M][r]=!1),t=b(t,{enumerable:m(0,!1)})):(l(A,M)||X(A,M,m(1,{})),A[M][r]=!0),sA(A,r,t)):X(A,r,t)},cA=function(A,e){d(A);var t=g(e),r=y(t).concat(fA(t));return O(r,function(e){o&&!lA.call(t,e)||aA(A,e,t[e])}),A},lA=function(A){var e=B(A),t=Z.call(this,e);return!(this===q&&l($,e)&&!l(AA,e))&&(!(t||!l(this,e)||!l($,e)||l(this,M)&&this[M][e])||t)},uA=function(A,e){var t=g(A),r=B(e);if(t!==q||!l($,r)||l(AA,r)){var n=J(t,r);return!n||!l($,r)||l(t,M)&&t[M][r]||(n.enumerable=!0),n}},hA=function(A){var e=Y(g(A)),t=[];return O(e,function(A){l($,A)||l(I,A)||t.push(A)}),t},fA=function(A){var e=A===q,t=Y(e?AA:g(A)),r=[];return O(t,function(A){!l($,A)||e&&!l(q,A)||r.push($[A])}),r};a||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var A=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=S(A),t=function(A){this===q&&t.call(AA,A),l(this,M)&&l(this[M],e)&&(this[M][e]=!1),sA(this,e,m(1,A))};return o&&iA&&sA(q,e,{configurable:!0,set:t}),oA(e,A)},_(z[K],"toString",function(){return G(this).tag}),_(z,"withoutSetter",function(A){return oA(S(A),A)}),x.f=lA,U.f=aA,F.f=uA,v.f=C.f=hA,Q.f=fA,H.f=function(A){return oA(j(A),A)},o&&(X(z[K],"description",{configurable:!0,get:function(){return G(this).description}}),s||_(q,"propertyIsEnumerable",lA,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:z}),O(y(rA),function(A){N(A)}),r({target:T,stat:!0,forced:!a},{for:function(A){var e=w(A);if(l(eA,e))return eA[e];var t=z(e);return eA[e]=t,tA[t]=e,t},keyFor:function(A){if(!f(A))throw TypeError(A+" is not a symbol");if(l(tA,A))return tA[A]},useSetter:function(){iA=!0},useSimple:function(){iA=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!o},{create:function(A,e){return void 0===e?b(A):cA(b(A),e)},defineProperty:aA,defineProperties:cA,getOwnPropertyDescriptor:uA}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:hA,getOwnPropertySymbols:fA}),r({target:"Object",stat:!0,forced:c(function(){Q.f(1)})},{getOwnPropertySymbols:function(A){return Q.f(p(A))}}),W&&r({target:"JSON",stat:!0,forced:!a||c(function(){var A=z();return"[null]"!=W([A])||"{}"!=W({a:A})||"{}"!=W(Object(A))})},{stringify:function(A,e,t){for(var r,n=[A],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e,(h(e)||void 0!==A)&&!f(A))return u(e)||(e=function(A,e){if("function"==typeof r&&(e=r.call(this,A,e)),!f(e))return e}),n[1]=e,W.apply(null,n)}}),z[K][R]||L(z[K],R,z[K].valueOf),P(z,T),I[M]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":
1279
- /*!**********************************************************************!*\
1280
- !*** ./node_modules/core-js/modules/web.dom-collections.for-each.js ***!
1281
- \**********************************************************************/function(A,e,t){var r=t(
1282
- /*! ../internals/global */
1283
- "./node_modules/core-js/internals/global.js"),n=t(
1284
- /*! ../internals/dom-iterables */
1285
- "./node_modules/core-js/internals/dom-iterables.js"),i=t(
1286
- /*! ../internals/array-for-each */
1287
- "./node_modules/core-js/internals/array-for-each.js"),s=t(
1288
- /*! ../internals/create-non-enumerable-property */
1289
- "./node_modules/core-js/internals/create-non-enumerable-property.js");for(var o in n){var a=r[o],c=a&&a.prototype;if(c&&c.forEach!==i)try{s(c,"forEach",i)}catch(l){c.forEach=i}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":
1290
- /*!**********************************************************************!*\
1291
- !*** ./node_modules/core-js/modules/web.dom-collections.iterator.js ***!
1292
- \**********************************************************************/function(A,e,t){var r=t(
1293
- /*! ../internals/global */
1294
- "./node_modules/core-js/internals/global.js"),n=t(
1295
- /*! ../internals/dom-iterables */
1296
- "./node_modules/core-js/internals/dom-iterables.js"),i=t(
1297
- /*! ../modules/es.array.iterator */
1298
- "./node_modules/core-js/modules/es.array.iterator.js"),s=t(
1299
- /*! ../internals/create-non-enumerable-property */
1300
- "./node_modules/core-js/internals/create-non-enumerable-property.js"),o=t(
1301
- /*! ../internals/well-known-symbol */
1302
- "./node_modules/core-js/internals/well-known-symbol.js"),a=o("iterator"),c=o("toStringTag"),l=i.values;for(var u in n){var h=r[u],f=h&&h.prototype;if(f){if(f[a]!==l)try{s(f,a,l)}catch(p){f[a]=l}if(f[c]||s(f,c,u),n[u])for(var d in i)if(f[d]!==i[d])try{s(f,d,i[d])}catch(p){f[d]=i[d]}}}},"./node_modules/es6-promise/dist/es6-promise.js":
1303
- /*!******************************************************!*\
1304
- !*** ./node_modules/es6-promise/dist/es6-promise.js ***!
1305
- \******************************************************/function(A){
1306
- /*!
1307
- * @overview es6-promise - a tiny implementation of Promises/A+.
1308
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
1309
- * @license Licensed under MIT license
1310
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
1311
- * @version v4.2.8+1e68dce6
1312
- */
1313
- A.exports=function(){function A(A){var e=typeof A;return null!==A&&("object"===e||"function"===e)}function e(A){return"function"==typeof A}var t=Array.isArray?Array.isArray:function(A){return"[object Array]"===Object.prototype.toString.call(A)},r=0,n=void 0,i=void 0,s=function(A,e){y[r]=A,y[r+1]=e,2===(r+=2)&&(i?i(v):Q())};function a(A){i=A}function l(A){s=A}var u="undefined"!=typeof window?window:void 0,h=u||{},f=h.MutationObserver||h.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==c&&"[object process]"==={}.toString.call(c),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function g(){return function(){return c.nextTick(v)}}function B(){return void 0!==n?function(){n(v)}:b()}function w(){var A=0,e=new f(v),t=document.createTextNode("");return e.observe(t,{characterData:!0}),function(){t.data=A=++A%2}}function m(){var A=new MessageChannel;return A.port1.onmessage=v,function(){return A.port2.postMessage(0)}}function b(){var A=setTimeout;return function(){return A(v,1)}}var y=new Array(1e3);function v(){for(var A=0;A<r;A+=2)(0,y[A])(y[A+1]),y[A]=void 0,y[A+1]=void 0;r=0}function C(){try{var A=Function("return this")().require("vertx");return n=A.runOnLoop||A.runOnContext,B()}catch(_n){return b()}}var Q=void 0;function F(A,e){var t=this,r=new this.constructor(L);void 0===r[x]&&W(r);var n=t._state;if(n){var i=arguments[n-1];s(function(){return V(n,r,i,t._result)})}else K(t,r,A,e);return r}function U(A){var e=this;if(A&&"object"==typeof A&&A.constructor===e)return A;var t=new e(L);return D(t,A),t}Q=d?g():f?w():p?m():void 0===u?C():b();var x=Math.random().toString(36).substring(2);function L(){}var _=void 0,E=1,k=2;function I(){return new TypeError("You cannot resolve a promise with itself")}function S(){return new TypeError("A promises callback cannot return that same promise.")}function j(A,e,t,r){try{A.call(e,t,r)}catch(_n){return _n}}function H(A,e,t){s(function(A){var r=!1,n=j(t,e,function(t){r||(r=!0,e!==t?D(A,t):M(A,t))},function(e){r||(r=!0,T(A,e))},"Settle: "+(A._label||" unknown promise"));!r&&n&&(r=!0,T(A,n))},A)}function N(A,e){e._state===E?M(A,e._result):e._state===k?T(A,e._result):K(e,void 0,function(e){return D(A,e)},function(e){return T(A,e)})}function P(A,t,r){t.constructor===A.constructor&&r===F&&t.constructor.resolve===U?N(A,t):void 0===r?M(A,t):e(r)?H(A,t,r):M(A,t)}function D(e,t){if(e===t)T(e,I());else if(A(t)){var r=void 0;try{r=t.then}catch(n){return void T(e,n)}P(e,t,r)}else M(e,t)}function O(A){A._onerror&&A._onerror(A._result),R(A)}function M(A,e){A._state===_&&(A._result=e,A._state=E,0!==A._subscribers.length&&s(R,A))}function T(A,e){A._state===_&&(A._state=k,A._result=e,s(O,A))}function K(A,e,t,r){var n=A._subscribers,i=n.length;A._onerror=null,n[i]=e,n[i+E]=t,n[i+k]=r,0===i&&A._state&&s(R,A)}function R(A){var e=A._subscribers,t=A._state;if(0!==e.length){for(var r=void 0,n=void 0,i=A._result,s=0;s<e.length;s+=3)r=e[s],n=e[s+t],r?V(t,r,n,i):n(i);A._subscribers.length=0}}function V(A,t,r,n){var i=e(r),s=void 0,o=void 0,a=!0;if(i){try{s=r(n)}catch(_n){a=!1,o=_n}if(t===s)return void T(t,S())}else s=n;t._state!==_||(i&&a?D(t,s):!1===a?T(t,o):A===E?M(t,s):A===k&&T(t,s))}function G(A,e){try{e(function(e){D(A,e)},function(e){T(A,e)})}catch(_n){T(A,_n)}}var q=0;function z(){return q++}function W(A){A[x]=q++,A._state=void 0,A._result=void 0,A._subscribers=[]}function J(){return new Error("Array Methods must be provided an Array")}var X=function(){function A(A,e){this._instanceConstructor=A,this.promise=new A(L),this.promise[x]||W(this.promise),t(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&M(this.promise,this._result))):T(this.promise,J())}return A.prototype._enumerate=function(A){for(var e=0;this._state===_&&e<A.length;e++)this._eachEntry(A[e],e)},A.prototype._eachEntry=function(A,e){var t=this._instanceConstructor,r=t.resolve;if(r===U){var n=void 0,i=void 0,s=!1;try{n=A.then}catch(_n){s=!0,i=_n}if(n===F&&A._state!==_)this._settledAt(A._state,e,A._result);else if("function"!=typeof n)this._remaining--,this._result[e]=A;else if(t===tA){var o=new t(L);s?T(o,i):P(o,A,n),this._willSettleAt(o,e)}else this._willSettleAt(new t(function(e){return e(A)}),e)}else this._willSettleAt(r(A),e)},A.prototype._settledAt=function(A,e,t){var r=this.promise;r._state===_&&(this._remaining--,A===k?T(r,t):this._result[e]=t),0===this._remaining&&M(r,this._result)},A.prototype._willSettleAt=function(A,e){var t=this;K(A,void 0,function(A){return t._settledAt(E,e,A)},function(A){return t._settledAt(k,e,A)})},A}();function Y(A){return new X(this,A).promise}function Z(A){var e=this;return t(A)?new e(function(t,r){for(var n=A.length,i=0;i<n;i++)e.resolve(A[i]).then(t,r)}):new e(function(A,e){return e(new TypeError("You must pass an array to race."))})}function $(A){var e=new this(L);return T(e,A),e}function AA(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function eA(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var tA=function(){function A(e){this[x]=z(),this._result=this._state=void 0,this._subscribers=[],L!==e&&("function"!=typeof e&&AA(),this instanceof A?G(this,e):eA())}return A.prototype.catch=function(A){return this.then(null,A)},A.prototype.finally=function(A){var t=this,r=t.constructor;return e(A)?t.then(function(e){return r.resolve(A()).then(function(){return e})},function(e){return r.resolve(A()).then(function(){throw e})}):t.then(A,A)},A}();function rA(){var A=void 0;if(void 0!==o)A=o;else if("undefined"!=typeof self)A=self;else try{A=Function("return this")()}catch(_n){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=A.Promise;if(e){var t=null;try{t=Object.prototype.toString.call(e.resolve())}catch(_n){}if("[object Promise]"===t&&!e.cast)return}A.Promise=tA}return tA.prototype.then=F,tA.all=Y,tA.race=Z,tA.resolve=U,tA.reject=$,tA._setScheduler=a,tA._setAsap=l,tA._asap=s,tA.polyfill=rA,tA.Promise=tA,tA}()},html2canvas:
1314
- /*!******************************!*\
1315
- !*** external "html2canvas" ***!
1316
- \******************************/function(A){A.exports=e},jspdf:
1317
- /*!************************!*\
1318
- !*** external "jspdf" ***!
1319
- \************************/function(e){e.exports=A}},r={};function n(A){var e=r[A];if(void 0!==e)return e.exports;var i=r[A]={exports:{}};return t[A].call(i.exports,i,i.exports,n),i.exports}n.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return n.d(e,{a:e}),e},n.d=function(A,e){for(var t in e)n.o(e,t)&&!n.o(A,t)&&Object.defineProperty(A,t,{enumerable:!0,get:e[t]})},n.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},n.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var i={};return function(){
1320
- /*!**********************!*\
1321
- !*** ./src/index.js ***!
1322
- \**********************/
1323
- n.r(i);var A=n(
1324
- /*! ./worker.js */
1325
- "./src/worker.js");n(
1326
- /*! ./plugin/jspdf-plugin.js */
1327
- "./src/plugin/jspdf-plugin.js"),n(
1328
- /*! ./plugin/pagebreaks.js */
1329
- "./src/plugin/pagebreaks.js"),n(
1330
- /*! ./plugin/hyperlinks.js */
1331
- "./src/plugin/hyperlinks.js");var e=function A(e,t){var r=new A.Worker(t);return e?r.from(e).save():r};e.Worker=A.default,i.default=e}(),i=i.default}()};const Ki=a(sA.exports=Oi(s(Pi),Ti()));function Ri(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Vi={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Gi(A){Vi=A}var qi={exec:()=>null};function zi(A,e=""){let t="string"==typeof A?A:A.source;const r={replace:(A,e)=>{let n="string"==typeof e?e:e.source;return n=n.replace(Wi.caret,"$1"),t=t.replace(A,n),r},getRegex:()=>new RegExp(t,e)};return r}var Wi={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:A=>new RegExp(`^( {0,3}${A})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:A=>new RegExp(`^ {0,${Math.min(3,A-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:A=>new RegExp(`^ {0,${Math.min(3,A-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:A=>new RegExp(`^ {0,${Math.min(3,A-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:A=>new RegExp(`^ {0,${Math.min(3,A-1)}}#`),htmlBeginRegex:A=>new RegExp(`^ {0,${Math.min(3,A-1)}}<(?:[a-z].*>|!--)`,"i")},Ji=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Xi=/(?:[*+-]|\d{1,9}[.)])/,Yi=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Zi=zi(Yi).replace(/bull/g,Xi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),$i=zi(Yi).replace(/bull/g,Xi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),As=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,es=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ts=zi(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",es).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rs=zi(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xi).getRegex(),ns="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",is=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ss=zi("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",is).replace("tag",ns).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),os=zi(As).replace("hr",Ji).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ns).getRegex(),as={blockquote:zi(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",os).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ts,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Ji,html:ss,lheading:Zi,list:rs,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:os,table:qi,text:/^[^\n]+/},cs=zi("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ji).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ns).getRegex(),ls={...as,lheading:$i,table:cs,paragraph:zi(As).replace("hr",Ji).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",cs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ns).getRegex()},us={...as,html:zi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",is).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zi(As).replace("hr",Ji).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Zi).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hs=/^( {2,}|\\)\n(?!\s*$)/,fs=/[\p{P}\p{S}]/u,ds=/[\s\p{P}\p{S}]/u,ps=/[^\s\p{P}\p{S}]/u,gs=zi(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ds).getRegex(),Bs=/(?!~)[\p{P}\p{S}]/u,ws=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ms=zi(ws,"u").replace(/punct/g,fs).getRegex(),bs=zi(ws,"u").replace(/punct/g,Bs).getRegex(),ys="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",vs=zi(ys,"gu").replace(/notPunctSpace/g,ps).replace(/punctSpace/g,ds).replace(/punct/g,fs).getRegex(),Cs=zi(ys,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Bs).getRegex(),Qs=zi("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ps).replace(/punctSpace/g,ds).replace(/punct/g,fs).getRegex(),Fs=zi(/\\(punct)/,"gu").replace(/punct/g,fs).getRegex(),Us=zi(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),xs=zi(is).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ls=zi("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",xs).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_s=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Es=zi(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",_s).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ks=zi(/^!?\[(label)\]\[(ref)\]/).replace("label",_s).replace("ref",es).getRegex(),Is=zi(/^!?\[(ref)\](?:\[\])?/).replace("ref",es).getRegex(),Ss={_backpedal:qi,anyPunctuation:Fs,autolink:Us,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:hs,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:qi,emStrongLDelim:ms,emStrongRDelimAst:vs,emStrongRDelimUnd:Qs,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Es,nolink:Is,punctuation:gs,reflink:ks,reflinkSearch:zi("reflink|nolink(?!\\()","g").replace("reflink",ks).replace("nolink",Is).getRegex(),tag:Ls,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:qi},js={...Ss,link:zi(/^!?\[(label)\]\((.*?)\)/).replace("label",_s).getRegex(),reflink:zi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_s).getRegex()},Hs={...Ss,emStrongRDelimAst:Cs,emStrongLDelim:bs,url:zi(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ns={...Hs,br:zi(hs).replace("{2,}","*").getRegex(),text:zi(Hs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ps={normal:as,gfm:ls,pedantic:us},Ds={normal:Ss,gfm:Hs,breaks:Ns,pedantic:js},Os={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ms=A=>Os[A];function Ts(A,e){if(e){if(Wi.escapeTest.test(A))return A.replace(Wi.escapeReplace,Ms)}else if(Wi.escapeTestNoEncode.test(A))return A.replace(Wi.escapeReplaceNoEncode,Ms);return A}function Ks(A){try{A=encodeURI(A).replace(Wi.percentDecode,"%")}catch{return null}return A}function Rs(A,e){var t;const r=A.replace(Wi.findPipe,(A,e,t)=>{let r=!1,n=e;for(;--n>=0&&"\\"===t[n];)r=!r;return r?"|":" |"}).split(Wi.splitPipe);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!(null==(t=r.at(-1))?void 0:t.trim())&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(Wi.slashPipe,"|");return r}function Vs(A,e,t){const r=A.length;if(0===r)return"";let n=0;for(;n<r;){if(A.charAt(r-n-1)!==e)break;n++}return A.slice(0,r-n)}function Gs(A,e,t,r,n){const i=e.href,s=e.title||null,o=A[1].replace(n.other.outputLinkReplace,"$1");r.state.inLink=!0;const a={type:"!"===A[0].charAt(0)?"image":"link",raw:t,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}var qs=class{options;rules;lexer;constructor(A){this.options=A||Vi}space(A){const e=this.rules.block.newline.exec(A);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(A){const e=this.rules.block.code.exec(A);if(e){const A=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?A:Vs(A,"\n")}}}fences(A){const e=this.rules.block.fences.exec(A);if(e){const A=e[0],t=function(A,e,t){const r=A.match(t.other.indentCodeCompensation);if(null===r)return e;const n=r[1];return e.split("\n").map(A=>{const e=A.match(t.other.beginningSpace);if(null===e)return A;const[r]=e;return r.length>=n.length?A.slice(n.length):A}).join("\n")}(A,e[3]||"",this.rules);return{type:"code",raw:A,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:t}}}heading(A){const e=this.rules.block.heading.exec(A);if(e){let A=e[2].trim();if(this.rules.other.endingHash.test(A)){const e=Vs(A,"#");this.options.pedantic?A=e.trim():e&&!this.rules.other.endingSpaceChar.test(e)||(A=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:A,tokens:this.lexer.inline(A)}}}hr(A){const e=this.rules.block.hr.exec(A);if(e)return{type:"hr",raw:Vs(e[0],"\n")}}blockquote(A){const e=this.rules.block.blockquote.exec(A);if(e){let A=Vs(e[0],"\n").split("\n"),t="",r="";const n=[];for(;A.length>0;){let e=!1;const i=[];let s;for(s=0;s<A.length;s++)if(this.rules.other.blockquoteStart.test(A[s]))i.push(A[s]),e=!0;else{if(e)break;i.push(A[s])}A=A.slice(s);const o=i.join("\n"),a=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");t=t?`${t}\n${o}`:o,r=r?`${r}\n${a}`:a;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,n,!0),this.lexer.state.top=c,0===A.length)break;const l=n.at(-1);if("code"===(null==l?void 0:l.type))break;if("blockquote"===(null==l?void 0:l.type)){const e=l,i=e.raw+"\n"+A.join("\n"),s=this.blockquote(i);n[n.length-1]=s,t=t.substring(0,t.length-e.raw.length)+s.raw,r=r.substring(0,r.length-e.text.length)+s.text;break}if("list"===(null==l?void 0:l.type)){const e=l,i=e.raw+"\n"+A.join("\n"),s=this.list(i);n[n.length-1]=s,t=t.substring(0,t.length-l.raw.length)+s.raw,r=r.substring(0,r.length-e.raw.length)+s.raw,A=i.substring(n.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:t,tokens:n,text:r}}}list(A){let e=this.rules.block.list.exec(A);if(e){let t=e[1].trim();const r=t.length>1,n={type:"list",raw:"",ordered:r,start:r?+t.slice(0,-1):"",loose:!1,items:[]};t=r?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=r?t:"[*+-]");const i=this.rules.other.listItemRegex(t);let s=!1;for(;A;){let t=!1,r="",o="";if(!(e=i.exec(A)))break;if(this.rules.block.hr.test(A))break;r=e[0],A=A.substring(r.length);let a=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,A=>" ".repeat(3*A.length)),c=A.split("\n",1)[0],l=!a.trim(),u=0;if(this.options.pedantic?(u=2,o=a.trimStart()):l?u=e[1].length+1:(u=e[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,o=a.slice(u),u+=e[1].length),l&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",A=A.substring(c.length+1),t=!0),!t){const e=this.rules.other.nextBulletRegex(u),t=this.rules.other.hrRegex(u),n=this.rules.other.fencesBeginRegex(u),i=this.rules.other.headingBeginRegex(u),s=this.rules.other.htmlBeginRegex(u);for(;A;){const h=A.split("\n",1)[0];let f;if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),f=c):f=c.replace(this.rules.other.tabCharGlobal," "),n.test(c))break;if(i.test(c))break;if(s.test(c))break;if(e.test(c))break;if(t.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=u||!c.trim())o+="\n"+f.slice(u);else{if(l)break;if(a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(n.test(a))break;if(i.test(a))break;if(t.test(a))break;o+="\n"+c}l||c.trim()||(l=!0),r+=h+"\n",A=A.substring(h.length+1),a=f.slice(u)}}n.loose||(s?n.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let h,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(o),f&&(h="[ ] "!==f[0],o=o.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:r,task:!!f,checked:h,loose:!1,text:o,tokens:[]}),n.raw+=r}const o=n.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),n.raw=n.raw.trimEnd();for(let A=0;A<n.items.length;A++)if(this.lexer.state.top=!1,n.items[A].tokens=this.lexer.blockTokens(n.items[A].text,[]),!n.loose){const e=n.items[A].tokens.filter(A=>"space"===A.type),t=e.length>0&&e.some(A=>this.rules.other.anyLine.test(A.raw));n.loose=t}if(n.loose)for(let A=0;A<n.items.length;A++)n.items[A].loose=!0;return n}}html(A){const e=this.rules.block.html.exec(A);if(e){return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}}def(A){const e=this.rules.block.def.exec(A);if(e){const A=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),t=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:A,raw:e[0],href:t,title:r}}}table(A){var e;const t=this.rules.block.table.exec(A);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const r=Rs(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(null==(e=t[3])?void 0:e.trim())?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const A of n)this.rules.other.tableAlignRight.test(A)?s.align.push("right"):this.rules.other.tableAlignCenter.test(A)?s.align.push("center"):this.rules.other.tableAlignLeft.test(A)?s.align.push("left"):s.align.push(null);for(let A=0;A<r.length;A++)s.header.push({text:r[A],tokens:this.lexer.inline(r[A]),header:!0,align:s.align[A]});for(const A of i)s.rows.push(Rs(A,s.header.length).map((A,e)=>({text:A,tokens:this.lexer.inline(A),header:!1,align:s.align[e]})));return s}}lheading(A){const e=this.rules.block.lheading.exec(A);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(A){const e=this.rules.block.paragraph.exec(A);if(e){const A="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:A,tokens:this.lexer.inline(A)}}}text(A){const e=this.rules.block.text.exec(A);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(A){const e=this.rules.inline.escape.exec(A);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(A){const e=this.rules.inline.tag.exec(A);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(A){const e=this.rules.inline.link.exec(A);if(e){const A=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(A)){if(!this.rules.other.endAngleBracket.test(A))return;const e=Vs(A.slice(0,-1),"\\");if((A.length-e.length)%2==0)return}else{const A=function(A,e){if(-1===A.indexOf(e[1]))return-1;let t=0;for(let r=0;r<A.length;r++)if("\\"===A[r])r++;else if(A[r]===e[0])t++;else if(A[r]===e[1]&&(t--,t<0))return r;return t>0?-2:-1}(e[2],"()");if(-2===A)return;if(A>-1){const t=(0===e[0].indexOf("!")?5:4)+e[1].length+A;e[2]=e[2].substring(0,A),e[0]=e[0].substring(0,t).trim(),e[3]=""}}let t=e[2],r="";if(this.options.pedantic){const A=this.rules.other.pedanticHrefTitle.exec(t);A&&(t=A[1],r=A[3])}else r=e[3]?e[3].slice(1,-1):"";return t=t.trim(),this.rules.other.startAngleBracket.test(t)&&(t=this.options.pedantic&&!this.rules.other.endAngleBracket.test(A)?t.slice(1):t.slice(1,-1)),Gs(e,{href:t?t.replace(this.rules.inline.anyPunctuation,"$1"):t,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},e[0],this.lexer,this.rules)}}reflink(A,e){let t;if((t=this.rules.inline.reflink.exec(A))||(t=this.rules.inline.nolink.exec(A))){const A=e[(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!A){const A=t[0].charAt(0);return{type:"text",raw:A,text:A}}return Gs(t,A,t[0],this.lexer,this.rules)}}emStrong(A,e,t=""){let r=this.rules.inline.emStrongLDelim.exec(A);if(!r)return;if(r[3]&&t.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!t||this.rules.inline.punctuation.exec(t)){const t=[...r[0]].length-1;let n,i,s=t,o=0;const a="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,e=e.slice(-1*A.length+t);null!=(r=a.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&t%3&&!((t+i)%3)){o+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+o);const e=[...r[0]][0].length,a=A.slice(0,t+r.index+e+i);if(Math.min(t,i)%2){const A=a.slice(1,-1);return{type:"em",raw:a,text:A,tokens:this.lexer.inlineTokens(A)}}const c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(A){const e=this.rules.inline.code.exec(A);if(e){let A=e[2].replace(this.rules.other.newLineCharGlobal," ");const t=this.rules.other.nonSpaceChar.test(A),r=this.rules.other.startingSpaceChar.test(A)&&this.rules.other.endingSpaceChar.test(A);return t&&r&&(A=A.substring(1,A.length-1)),{type:"codespan",raw:e[0],text:A}}}br(A){const e=this.rules.inline.br.exec(A);if(e)return{type:"br",raw:e[0]}}del(A){const e=this.rules.inline.del.exec(A);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(A){const e=this.rules.inline.autolink.exec(A);if(e){let A,t;return"@"===e[2]?(A=e[1],t="mailto:"+A):(A=e[1],t=A),{type:"link",raw:e[0],text:A,href:t,tokens:[{type:"text",raw:A,text:A}]}}}url(A){var e;let t;if(t=this.rules.inline.url.exec(A)){let A,r;if("@"===t[2])A=t[0],r="mailto:"+A;else{let n;do{n=t[0],t[0]=(null==(e=this.rules.inline._backpedal.exec(t[0]))?void 0:e[0])??""}while(n!==t[0]);A=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:A,href:r,tokens:[{type:"text",raw:A,text:A}]}}}inlineText(A){const e=this.rules.inline.text.exec(A);if(e){const A=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:A}}}},zs=class A{tokens;options;state;tokenizer;inlineQueue;constructor(A){this.tokens=[],this.tokens.links=Object.create(null),this.options=A||Vi,this.options.tokenizer=this.options.tokenizer||new qs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={other:Wi,block:Ps.normal,inline:Ds.normal};this.options.pedantic?(e.block=Ps.pedantic,e.inline=Ds.pedantic):this.options.gfm&&(e.block=Ps.gfm,this.options.breaks?e.inline=Ds.breaks:e.inline=Ds.gfm),this.tokenizer.rules=e}static get rules(){return{block:Ps,inline:Ds}}static lex(e,t){return new A(t).lex(e)}static lexInline(e,t){return new A(t).inlineTokens(e)}lex(A){A=A.replace(Wi.carriageReturn,"\n"),this.blockTokens(A,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const A=this.inlineQueue[e];this.inlineTokens(A.src,A.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(A,e=[],t=!1){var r,n,i;for(this.options.pedantic&&(A=A.replace(Wi.tabCharGlobal," ").replace(Wi.spaceLine,""));A;){let s;if(null==(n=null==(r=this.options.extensions)?void 0:r.block)?void 0:n.some(t=>!!(s=t.call({lexer:this},A,e))&&(A=A.substring(s.raw.length),e.push(s),!0)))continue;if(s=this.tokenizer.space(A)){A=A.substring(s.raw.length);const t=e.at(-1);1===s.raw.length&&void 0!==t?t.raw+="\n":e.push(s);continue}if(s=this.tokenizer.code(A)){A=A.substring(s.raw.length);const t=e.at(-1);"paragraph"===(null==t?void 0:t.type)||"text"===(null==t?void 0:t.type)?(t.raw+="\n"+s.raw,t.text+="\n"+s.text,this.inlineQueue.at(-1).src=t.text):e.push(s);continue}if(s=this.tokenizer.fences(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.heading(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.hr(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.blockquote(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.list(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.html(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.def(A)){A=A.substring(s.raw.length);const t=e.at(-1);"paragraph"===(null==t?void 0:t.type)||"text"===(null==t?void 0:t.type)?(t.raw+="\n"+s.raw,t.text+="\n"+s.raw,this.inlineQueue.at(-1).src=t.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.lheading(A)){A=A.substring(s.raw.length),e.push(s);continue}let o=A;if(null==(i=this.options.extensions)?void 0:i.startBlock){let e=1/0;const t=A.slice(1);let r;this.options.extensions.startBlock.forEach(A=>{r=A.call({lexer:this},t),"number"==typeof r&&r>=0&&(e=Math.min(e,r))}),e<1/0&&e>=0&&(o=A.substring(0,e+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){const r=e.at(-1);t&&"paragraph"===(null==r?void 0:r.type)?(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(s),t=o.length!==A.length,A=A.substring(s.raw.length);continue}if(s=this.tokenizer.text(A)){A=A.substring(s.raw.length);const t=e.at(-1);"text"===(null==t?void 0:t.type)?(t.raw+="\n"+s.raw,t.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=t.text):e.push(s);continue}if(A){const e="Infinite loop on byte: "+A.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(A,e=[]){return this.inlineQueue.push({src:A,tokens:e}),e}inlineTokens(A,e=[]){var t,r,n;let i=A,s=null;if(this.tokens.links){const A=Object.keys(this.tokens.links);if(A.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(i));)A.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(i));)i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,a="";for(;A;){let s;if(o||(a=""),o=!1,null==(r=null==(t=this.options.extensions)?void 0:t.inline)?void 0:r.some(t=>!!(s=t.call({lexer:this},A,e))&&(A=A.substring(s.raw.length),e.push(s),!0)))continue;if(s=this.tokenizer.escape(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.tag(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.link(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.reflink(A,this.tokens.links)){A=A.substring(s.raw.length);const t=e.at(-1);"text"===s.type&&"text"===(null==t?void 0:t.type)?(t.raw+=s.raw,t.text+=s.text):e.push(s);continue}if(s=this.tokenizer.emStrong(A,i,a)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.codespan(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.br(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.del(A)){A=A.substring(s.raw.length),e.push(s);continue}if(s=this.tokenizer.autolink(A)){A=A.substring(s.raw.length),e.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(A))){A=A.substring(s.raw.length),e.push(s);continue}let c=A;if(null==(n=this.options.extensions)?void 0:n.startInline){let e=1/0;const t=A.slice(1);let r;this.options.extensions.startInline.forEach(A=>{r=A.call({lexer:this},t),"number"==typeof r&&r>=0&&(e=Math.min(e,r))}),e<1/0&&e>=0&&(c=A.substring(0,e+1))}if(s=this.tokenizer.inlineText(c)){A=A.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(a=s.raw.slice(-1)),o=!0;const t=e.at(-1);"text"===(null==t?void 0:t.type)?(t.raw+=s.raw,t.text+=s.text):e.push(s);continue}if(A){const e="Infinite loop on byte: "+A.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},Ws=class{options;parser;constructor(A){this.options=A||Vi}space(A){return""}code({text:A,lang:e,escaped:t}){var r;const n=null==(r=(e||"").match(Wi.notSpaceStart))?void 0:r[0],i=A.replace(Wi.endingNewline,"")+"\n";return n?'<pre><code class="language-'+Ts(n)+'">'+(t?i:Ts(i,!0))+"</code></pre>\n":"<pre><code>"+(t?i:Ts(i,!0))+"</code></pre>\n"}blockquote({tokens:A}){return`<blockquote>\n${this.parser.parse(A)}</blockquote>\n`}html({text:A}){return A}heading({tokens:A,depth:e}){return`<h${e}>${this.parser.parseInline(A)}</h${e}>\n`}hr(A){return"<hr>\n"}list(A){const e=A.ordered,t=A.start;let r="";for(let i=0;i<A.items.length;i++){const e=A.items[i];r+=this.listitem(e)}const n=e?"ol":"ul";return"<"+n+(e&&1!==t?' start="'+t+'"':"")+">\n"+r+"</"+n+">\n"}listitem(A){var e;let t="";if(A.task){const r=this.checkbox({checked:!!A.checked});A.loose?"paragraph"===(null==(e=A.tokens[0])?void 0:e.type)?(A.tokens[0].text=r+" "+A.tokens[0].text,A.tokens[0].tokens&&A.tokens[0].tokens.length>0&&"text"===A.tokens[0].tokens[0].type&&(A.tokens[0].tokens[0].text=r+" "+Ts(A.tokens[0].tokens[0].text),A.tokens[0].tokens[0].escaped=!0)):A.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(A.tokens,!!A.loose),`<li>${t}</li>\n`}checkbox({checked:A}){return"<input "+(A?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:A}){return`<p>${this.parser.parseInline(A)}</p>\n`}table(A){let e="",t="";for(let n=0;n<A.header.length;n++)t+=this.tablecell(A.header[n]);e+=this.tablerow({text:t});let r="";for(let n=0;n<A.rows.length;n++){const e=A.rows[n];t="";for(let A=0;A<e.length;A++)t+=this.tablecell(e[A]);r+=this.tablerow({text:t})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:A}){return`<tr>\n${A}</tr>\n`}tablecell(A){const e=this.parser.parseInline(A.tokens),t=A.header?"th":"td";return(A.align?`<${t} align="${A.align}">`:`<${t}>`)+e+`</${t}>\n`}strong({tokens:A}){return`<strong>${this.parser.parseInline(A)}</strong>`}em({tokens:A}){return`<em>${this.parser.parseInline(A)}</em>`}codespan({text:A}){return`<code>${Ts(A,!0)}</code>`}br(A){return"<br>"}del({tokens:A}){return`<del>${this.parser.parseInline(A)}</del>`}link({href:A,title:e,tokens:t}){const r=this.parser.parseInline(t),n=Ks(A);if(null===n)return r;let i='<a href="'+(A=n)+'"';return e&&(i+=' title="'+Ts(e)+'"'),i+=">"+r+"</a>",i}image({href:A,title:e,text:t,tokens:r}){r&&(t=this.parser.parseInline(r,this.parser.textRenderer));const n=Ks(A);if(null===n)return Ts(t);let i=`<img src="${A=n}" alt="${t}"`;return e&&(i+=` title="${Ts(e)}"`),i+=">",i}text(A){return"tokens"in A&&A.tokens?this.parser.parseInline(A.tokens):"escaped"in A&&A.escaped?A.text:Ts(A.text)}},Js=class{strong({text:A}){return A}em({text:A}){return A}codespan({text:A}){return A}del({text:A}){return A}html({text:A}){return A}text({text:A}){return A}link({text:A}){return""+A}image({text:A}){return""+A}br(){return""}},Xs=class A{options;renderer;textRenderer;constructor(A){this.options=A||Vi,this.options.renderer=this.options.renderer||new Ws,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Js}static parse(e,t){return new A(t).parse(e)}static parseInline(e,t){return new A(t).parseInline(e)}parse(A,e=!0){var t,r;let n="";for(let i=0;i<A.length;i++){const s=A[i];if(null==(r=null==(t=this.options.extensions)?void 0:t.renderers)?void 0:r[s.type]){const A=s,e=this.options.extensions.renderers[A.type].call({parser:this},A);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(A.type)){n+=e||"";continue}}const o=s;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let t=o,r=this.renderer.text(t);for(;i+1<A.length&&"text"===A[i+1].type;)t=A[++i],r+="\n"+this.renderer.text(t);n+=e?this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):r;continue}default:{const A='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(A),"";throw new Error(A)}}}return n}parseInline(A,e=this.renderer){var t,r;let n="";for(let i=0;i<A.length;i++){const s=A[i];if(null==(r=null==(t=this.options.extensions)?void 0:t.renderers)?void 0:r[s.type]){const A=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==A||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=A||"";continue}}const o=s;switch(o.type){case"escape":case"text":n+=e.text(o);break;case"html":n+=e.html(o);break;case"link":n+=e.link(o);break;case"image":n+=e.image(o);break;case"strong":n+=e.strong(o);break;case"em":n+=e.em(o);break;case"codespan":n+=e.codespan(o);break;case"br":n+=e.br(o);break;case"del":n+=e.del(o);break;default:{const A='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(A),"";throw new Error(A)}}}return n}},Ys=class{options;block;constructor(A){this.options=A||Vi}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(A){return A}postprocess(A){return A}processAllTokens(A){return A}provideLexer(){return this.block?zs.lex:zs.lexInline}provideParser(){return this.block?Xs.parse:Xs.parseInline}},Zs=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Xs;Renderer=Ws;TextRenderer=Js;Lexer=zs;Tokenizer=qs;Hooks=Ys;constructor(...A){this.use(...A)}walkTokens(A,e){var t,r;let n=[];for(const i of A)switch(n=n.concat(e.call(this,i)),i.type){case"table":{const A=i;for(const t of A.header)n=n.concat(this.walkTokens(t.tokens,e));for(const t of A.rows)for(const A of t)n=n.concat(this.walkTokens(A.tokens,e));break}case"list":{const A=i;n=n.concat(this.walkTokens(A.items,e));break}default:{const A=i;(null==(r=null==(t=this.defaults.extensions)?void 0:t.childTokens)?void 0:r[A.type])?this.defaults.extensions.childTokens[A.type].forEach(t=>{const r=A[t].flat(1/0);n=n.concat(this.walkTokens(r,e))}):A.tokens&&(n=n.concat(this.walkTokens(A.tokens,e)))}}return n}use(...A){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return A.forEach(A=>{const t={...A};if(t.async=this.defaults.async||t.async||!1,A.extensions&&(A.extensions.forEach(A=>{if(!A.name)throw new Error("extension name required");if("renderer"in A){const t=e.renderers[A.name];e.renderers[A.name]=t?function(...e){let r=A.renderer.apply(this,e);return!1===r&&(r=t.apply(this,e)),r}:A.renderer}if("tokenizer"in A){if(!A.level||"block"!==A.level&&"inline"!==A.level)throw new Error("extension level must be 'block' or 'inline'");const t=e[A.level];t?t.unshift(A.tokenizer):e[A.level]=[A.tokenizer],A.start&&("block"===A.level?e.startBlock?e.startBlock.push(A.start):e.startBlock=[A.start]:"inline"===A.level&&(e.startInline?e.startInline.push(A.start):e.startInline=[A.start]))}"childTokens"in A&&A.childTokens&&(e.childTokens[A.name]=A.childTokens)}),t.extensions=e),A.renderer){const e=this.defaults.renderer||new Ws(this.defaults);for(const t in A.renderer){if(!(t in e))throw new Error(`renderer '${t}' does not exist`);if(["options","parser"].includes(t))continue;const r=t,n=A.renderer[r],i=e[r];e[r]=(...A)=>{let t=n.apply(e,A);return!1===t&&(t=i.apply(e,A)),t||""}}t.renderer=e}if(A.tokenizer){const e=this.defaults.tokenizer||new qs(this.defaults);for(const t in A.tokenizer){if(!(t in e))throw new Error(`tokenizer '${t}' does not exist`);if(["options","rules","lexer"].includes(t))continue;const r=t,n=A.tokenizer[r],i=e[r];e[r]=(...A)=>{let t=n.apply(e,A);return!1===t&&(t=i.apply(e,A)),t}}t.tokenizer=e}if(A.hooks){const e=this.defaults.hooks||new Ys;for(const t in A.hooks){if(!(t in e))throw new Error(`hook '${t}' does not exist`);if(["options","block"].includes(t))continue;const r=t,n=A.hooks[r],i=e[r];Ys.passThroughHooks.has(t)?e[r]=A=>{if(this.defaults.async)return Promise.resolve(n.call(e,A)).then(A=>i.call(e,A));const t=n.call(e,A);return i.call(e,t)}:e[r]=(...A)=>{let t=n.apply(e,A);return!1===t&&(t=i.apply(e,A)),t}}t.hooks=e}if(A.walkTokens){const e=this.defaults.walkTokens,r=A.walkTokens;t.walkTokens=function(A){let t=[];return t.push(r.call(this,A)),e&&(t=t.concat(e.call(this,A))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(A){return this.defaults={...this.defaults,...A},this}lexer(A,e){return zs.lex(A,e??this.defaults)}parser(A,e){return Xs.parse(A,e??this.defaults)}parseMarkdown(A){return(e,t)=>{const r={...t},n={...this.defaults,...r},i=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==e)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));n.hooks&&(n.hooks.options=n,n.hooks.block=A);const s=n.hooks?n.hooks.provideLexer():A?zs.lex:zs.lexInline,o=n.hooks?n.hooks.provideParser():A?Xs.parse:Xs.parseInline;if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(e):e).then(A=>s(A,n)).then(A=>n.hooks?n.hooks.processAllTokens(A):A).then(A=>n.walkTokens?Promise.all(this.walkTokens(A,n.walkTokens)).then(()=>A):A).then(A=>o(A,n)).then(A=>n.hooks?n.hooks.postprocess(A):A).catch(i);try{n.hooks&&(e=n.hooks.preprocess(e));let A=s(e,n);n.hooks&&(A=n.hooks.processAllTokens(A)),n.walkTokens&&this.walkTokens(A,n.walkTokens);let t=o(A,n);return n.hooks&&(t=n.hooks.postprocess(t)),t}catch(_n){return i(_n)}}}onError(A,e){return t=>{if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",A){const A="<p>An error occurred:</p><pre>"+Ts(t.message+"",!0)+"</pre>";return e?Promise.resolve(A):A}if(e)return Promise.reject(t);throw t}}};function $s(A,e){return Zs.parse(A,e)}$s.options=$s.setOptions=function(A){return Zs.setOptions(A),$s.defaults=Zs.defaults,Gi($s.defaults),$s},$s.getDefaults=Ri,$s.defaults=Vi,$s.use=function(...A){return Zs.use(...A),$s.defaults=Zs.defaults,Gi($s.defaults),$s},$s.walkTokens=function(A,e){return Zs.walkTokens(A,e)},$s.parseInline=Zs.parseInline,$s.Parser=Xs,$s.parser=Xs.parse,$s.Renderer=Ws,$s.TextRenderer=Js,$s.Lexer=zs,$s.lexer=zs.lex,$s.Tokenizer=qs,$s.Hooks=Ys,$s.parse=$s,$s.options,$s.setOptions,$s.use,$s.walkTokens,$s.parseInline,Xs.parse,zs.lex;const Ao=({disabled:A,className:t,style:r,sx:n,onClick:i,color:s})=>e(p,{className:t,style:r,sx:n,disabled:A,color:s,size:36,onClick:async A=>{const[e,{resolve:t}]=d();A.preventDefault(),A.stopPropagation(),await i(A,A=>t(A));const r=await e;await(async A=>{let e=!1;e=e||"string"==typeof A,e=e||"number"==typeof A,e=e||"boolean"==typeof A,e=e||void 0===A,e=e||null===A,e&&await g(String(A))})(r),l.alertService.notify("Copied!")},children:e(f,{})}),eo=[{action:"json",label:"Download JSON",icon:()=>e(m,{icon:AA,color:"#4caf50"})},{action:"markdown",label:"Download Markdown",icon:()=>e(m,{icon:eA,color:"#4caf50"})},{action:"pdf",label:"Download PDF",icon:()=>e(m,{icon:tA,color:"#4caf50"})}],to=({disabled:A,className:t,style:r,sx:n,onDownloadJson:i,onDownloadMarkdown:s,onDownloadPdf:o})=>{const a=B(async A=>{"json"===A?await i():"markdown"===A?await s():"pdf"===A&&await o()});return e(w,{transparent:!0,keepMounted:!0,className:t,style:r,sx:n,disabled:A,options:eo,onAction:a})},ro=Q(),no=_(async(A,e)=>{const t=("backtest"===e?await l.backtestGlobalService.list():await l.liveGlobalService.list()).find(e=>e.id===A);if(!t)throw new Error(`Item not found: ${A}`);const{symbol:r,strategyName:n,exchangeName:i,frameName:s}=t,[o,a,c,u,h,f,d,p,g,B]=await Promise.all(["backtest"===e?l.markdownViewService.getBacktestReport(r,n,i,s):Promise.resolve(""),"live"===e?l.markdownViewService.getLiveReport(r,n,i):Promise.resolve(""),l.markdownViewService.getBreakevenReport(r,n,i,s,"backtest"===e),l.markdownViewService.getRiskReport(r,n,i,s,"backtest"===e),l.markdownViewService.getPartialReport(r,n,i,s,"backtest"===e),l.markdownViewService.getHighestProfitReport(r,n,i,s,"backtest"===e),l.markdownViewService.getScheduleReport(r,n,i,s,"backtest"===e),l.markdownViewService.getPerformanceReport(r,n,i,s,"backtest"===e),l.markdownViewService.getSyncReport(r,n,i,s,"backtest"===e),l.markdownViewService.getHeatReport(n,i,s,"backtest"===e)]);return{type:e,backtest:o,live:a,breakeven:c,risk:u,partial:h,highest_profit:f,schedule:d,performance:p,sync:g,heat:B}},{timeout:45e3,key:([A,e])=>`${A}_${e}`}),io=()=>{const[A,t]=b(""),[r,i]=b("backtest"),s=y(),{push:o,pop:a}=s,[c,f]=v(ro.location.pathname),d=async()=>{const e=(await no(A.current,r.current))[c.current.replace("/markdown_report/","")];"string"==typeof e&&await async function(A){if(!A)return void console.warn("No content provided for PDF export");const e=await(async()=>{try{const{content:e}=await u({strings:{content:A}});return e.length&&h(A,e)||A}catch(e){return console.error("Markdown linting failed:",e),A}})();let t;$s.setOptions({breaks:!0,gfm:!0});try{t=await $s.parse(e)}catch(i){return void console.error("Markdown parsing failed:",i)}const r=document.createElement("div");r.innerHTML=t,r.style.padding="20px",r.style.fontFamily="Arial, sans-serif",r.style.fontSize="12pt",r.style.lineHeight="1.5",r.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(A=>{A.style.color="#2196f3",A.style.fontSize="1.5em",A.style.paddingTop="8px",A.style.paddingBottom="8px"}),r.querySelectorAll("strong").forEach(A=>{A.style.fontWeight="bold",A.style.display="inline"}),r.querySelectorAll("p").forEach(A=>{A.style.marginBottom="12px"}),r.querySelectorAll("hr").forEach(A=>{A.style.marginTop="8px",A.style.marginBottom="16px",A.style.border="0",A.style.borderTop="1px solid #e0e0e0"});const n={margin:[.5,.5,.5,.5],filename:"document.pdf",image:{type:"jpeg",quality:.98},html2canvas:{scale:2,useCORS:!0},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};try{await Ki().from(r).set(n).output("blob").then(A=>{const e=URL.createObjectURL(A),t=l.routerService.listen(()=>{URL.revokeObjectURL(e),t()});l.layoutService.downloadFile(e,"document.pdf")})}catch(s){console.error("PDF generation failed:",s)}}(e)},g=async()=>{const e=await no(A.current,r.current),t=c.current.replace("/markdown_report/",""),n=e[t];if("string"==typeof n){const A=new Blob([n],{type:"text/plain"}),e=URL.createObjectURL(A);l.layoutService.downloadFile(e,`${t}_${r.current}_${Date.now()}.md`)}},B=async()=>{const e=("backtest"===r.current?await l.backtestGlobalService.list():await l.liveGlobalService.list()).find(e=>e.id===A.current);if(!e)throw new Error(`Item not found: ${A.current}`);const{symbol:t,strategyName:n,exchangeName:i,frameName:s}=e,o=c.current.replace("/markdown_report/",""),a="backtest"===r.current;let u;if("backtest"===o?u=await l.markdownViewService.getBacktestData(t,n,i,s):"live"===o?u=await l.markdownViewService.getLiveData(t,n,i):"breakeven"===o?u=await l.markdownViewService.getBreakevenData(t,n,i,s,a):"risk"===o?u=await l.markdownViewService.getRiskData(t,n,i,s,a):"partial"===o?u=await l.markdownViewService.getPartialData(t,n,i,s,a):"highest_profit"===o?u=await l.markdownViewService.getHighestProfitData(t,n,i,s,a):"schedule"===o?u=await l.markdownViewService.getScheduleData(t,n,i,s,a):"performance"===o?u=await l.markdownViewService.getPerformanceData(t,n,i,s,a):"sync"===o?u=await l.markdownViewService.getSyncData(t,n,i,s,a):"heat"===o&&(u=await l.markdownViewService.getHeatData(n,i,s,a)),void 0!==u){const A=new Blob([JSON.stringify(u,null,2)],{type:"application/json"}),e=URL.createObjectURL(A);l.layoutService.downloadFile(e,`${o}_${r.current}_${Date.now()}.json`)}},{pickData:w,render:m}=C({tabs:iA,withStaticAction:!0,onTabChange:(A,e)=>{const t=`/markdown_report/${A}`;e.replace(t),f(t)},animation:"none",title:"Markdown Report",sizeRequest:F,history:ro,routes:nA,BeforeTitle:({onClose:A})=>{const{total:t}=y();return e(n,{sx:{mr:1,display:1===t?"none":"flex"},children:e(p,{onClick:A,children:e(L,{})})})},AfterTitle:({onClose:t})=>e(x,{direction:"row",gap:1,children:[e(p,{sx:{mr:"10px"},onClick:()=>d(),children:e(rA,{})}),e(Ao,{onClick:async(e,t)=>{await(async(A,e,t,r)=>{const n=("backtest"===t?await l.backtestGlobalService.list():await l.liveGlobalService.list()).find(A=>A.id===e);if(!n)throw new Error(`Item not found: ${e}`);const{symbol:i,strategyName:s,exchangeName:o,frameName:a}=n,c="backtest"===t;A.includes("/markdown_report/backtest")?r(JSON.stringify(await l.markdownViewService.getBacktestData(i,s,o,a),null,2)):A.includes("/markdown_report/live")?r(JSON.stringify(await l.markdownViewService.getLiveData(i,s,o),null,2)):A.includes("/markdown_report/breakeven")?r(JSON.stringify(await l.markdownViewService.getBreakevenData(i,s,o,a,c),null,2)):A.includes("/markdown_report/risk")?r(JSON.stringify(await l.markdownViewService.getRiskData(i,s,o,a,c),null,2)):A.includes("/markdown_report/partial")?r(JSON.stringify(await l.markdownViewService.getPartialData(i,s,o,a,c),null,2)):A.includes("/markdown_report/highest_profit")?r(JSON.stringify(await l.markdownViewService.getHighestProfitData(i,s,o,a,c),null,2)):A.includes("/markdown_report/schedule")?r(JSON.stringify(await l.markdownViewService.getScheduleData(i,s,o,a,c),null,2)):A.includes("/markdown_report/performance")?r(JSON.stringify(await l.markdownViewService.getPerformanceData(i,s,o,a,c),null,2)):A.includes("/markdown_report/sync")?r(JSON.stringify(await l.markdownViewService.getSyncData(i,s,o,a,c),null,2)):A.includes("/markdown_report/heat")&&r(JSON.stringify(await l.markdownViewService.getHeatData(s,o,a,c),null,2))})(c.current,A.current,r.current,t)},sx:{mr:"10px",mt:"2.5px"}}),e(to,{sx:{mr:"10px",mt:"0.5px"},onDownloadJson:B,onDownloadMarkdown:g,onDownloadPdf:d}),e(p,{onClick:t,children:e(U,{})})]}),fetchState:async()=>await no(A.current,r.current),mapInitialData:([{type:A,backtest:e,live:t,breakeven:r,risk:n,partial:i,highest_profit:s,schedule:o,performance:a,sync:c,heat:l}])=>({backtest:e,live:t,breakeven:r,risk:n,partial:i,highest_profit:s,schedule:o,performance:a,sync:c,heat:l,type:A}),mapPayload:([{type:A}])=>({type:A}),onLoadStart:()=>l.layoutService.setAppbarLoader(!0),onLoadEnd:()=>l.layoutService.setAppbarLoader(!1),onClose:()=>{a()}});return(A,e)=>{o({id:"markdown_report_modal",render:m,onInit:()=>{const A="live"===e?"/markdown_report/live":"/markdown_report/backtest";ro.push(A),f(A)},onMount:()=>{t(A),i(e),w()}})}},so="trade-gpt__groupHeader",oo="trade-gpt__groupRoot",ao="trade-gpt__symbolImage",co=j()({root:{[`& .${oo}:hover .${so}`]:{opacity:"1 !important"}}});function lo(A){return q(A,"#000000")>q(A,"#FFFFFF")}const uo=[{type:S.Link,action:"back-action",label:e(Z,{sx:{display:"block"}})},{type:S.Link,action:"back-action",label:"Main"},{type:S.Link,action:"back-action",label:"Markdown Report"}],ho=[{action:"update-now",label:"Refresh",icon:()=>e(m,{icon:Y,color:"#4caf50"})}],fo=(A,t)=>({type:H.Group,className:oo,sx:{p:2},tabletColumns:"12",desktopColumns:"3",fields:[{type:H.Component,className:so,style:{transition:"opacity 500ms",opacity:.5},element:()=>e(x,{direction:"row",children:[e(M,{variant:"outlined",size:"small",color:"info",label:`${T.bullet} ${A}`,sx:{mb:1,pr:.5,fontSize:"14px",background:"white",cursor:"not-allowed"}}),e(n,{flex:1})]})},{type:H.Group,fields:t.map(({symbol:A,label:t,id:r,type:n,color:i})=>((A,t,r,n,i)=>({type:H.Component,desktopColumns:"6",tabletColumns:"6",phoneColumns:"12",fieldRightMargin:"1",fieldBottomMargin:"1",element:({payload:s})=>e(G,{component:K,onClick:()=>{s.handleOpen(A,t)},sx:{width:"100%",background:i,color:"white",fontWeight:"bold",fontSize:"14px",height:"75px",minHeight:"75px",textWrap:"wrap",padding:"16px",[`& .${ao}`]:{transition:"filter 500ms"},"&:hover":{background:()=>lo(i)?R(i,.33):V(i,.33),[`& .${ao}`]:{transition:"filter 500ms",filter:lo(i)?"brightness(0.7) contrast(1.2)":"brightness(1.3) contrast(0.5)"}},transition:"background 500ms"},startIcon:e(J,{className:ao,symbol:r}),children:n})}))(r,n,A,t,i))}]}),po=[{id:"main",element:()=>{const{classes:A}=co(),{reloadTrigger:t,doReload:r}=E(),[i,{loading:s}]=k(async()=>await(async()=>{const[A,e,t]=await Promise.all([l.symbolGlobalService.getSymbolMap(),l.backtestGlobalService.list(),l.liveGlobalService.list()]),r={},n={};e.forEach(e=>{const t=A[e.symbol],n=e.strategyName;r[n]||(r[n]=[]),r[n].push({symbol:e.symbol,label:(null==t?void 0:t.displayName)||e.symbol,color:(null==t?void 0:t.color)||"#ccc",type:"backtest",id:e.id})}),t.forEach(e=>{const t=A[e.symbol],r=e.strategyName;n[r]||(n[r]=[]),n[r].push({symbol:e.symbol,label:(null==t?void 0:t.displayName)||e.symbol,color:(null==t?void 0:t.color)||"#ccc",id:e.id,type:"live"})});const i=Object.entries(r).sort(([,A],[,e])=>e.length-A.length).map(([A,e])=>fo(A,e)),s=Object.entries(n).sort(([,A],[,e])=>e.length-A.length).map(([A,e])=>fo(A,e));return s.length||i.length?[{type:H.Fragment,isVisible:()=>!!i.length,fields:[{type:H.Line,title:"Backtest"},{type:H.Group,columns:"12",fields:i}]},{type:H.Fragment,isVisible:()=>!!s.length,fields:[{type:H.Line,title:"Live"},{type:H.Group,columns:"12",fields:s}]}]:[]})(),{onLoadStart:()=>l.layoutService.setAppbarLoader(!0),onLoadEnd:()=>l.layoutService.setAppbarLoader(!1),deps:[t]}),o=io(),a=(A,e)=>{o(A,e)};return e(X,{children:[e(I,{items:uo,actions:ho,onAction:A=>{"back-action"===A&&l.routerService.push("/"),"update-now"===A&&r()}}),s||!i?e(P,{children:e(N,{variant:"h6",sx:{opacity:.5},children:"Loading..."})}):i.length?e(O,{children:[e(D,{className:A.root,fields:i,payload:()=>({handleOpen:a})},t),e(n,{paddingBottom:"24px"})]}):e(P,{children:e(N,{variant:"h6",sx:{opacity:.5},children:"No pending signals"})})]})},isActive:A=>W(["/report"],A),isAvailable:()=>!1}],go=({id:A})=>e(z,{history:l.routerService,onLoadStart:()=>l.layoutService.setAppbarLoader(!0),onLoadEnd:()=>l.layoutService.setAppbarLoader(!1),routes:po,params:{id:A}}),Bo=Object.freeze(Object.defineProperty({__proto__:null,StatusPage:go,default:go},Symbol.toStringTag,{value:"Module"}));export{oA as _,Bo as i,Ti as r};