P?_-=.0125:_+=.0125:z&&E P?_-=.0125:_+=.0125:z&&ES?g+=.0125:g-=.0125),d.push(D,Ws(((P-C)*w+x)*Ys-Gs),",",Ws(((S-M)*T+b)*Ys-Gs),",",Ws(((P+C)*w+x)*Ys-Gs),",",Ws(((S+M)*T+b)*Ys-Gs),",",Ws((R*w+x)*Ys-Gs),",",Ws((E*T+b)*Ys-Gs),",",Ws((g*w+x)*Ys-Gs),",",Ws((_*T+b)*Ys-Gs)),o=g,s=_;break;case Ms.R:var B=sh[0],O=sh[1];B[0]=t[a++],B[1]=t[a++],O[0]=B[0]+t[a++],O[1]=B[1]+t[a++],e&&(Us(B,B,e),Us(O,O,e)),B[0]=Ws(B[0]*Ys-Gs),O[0]=Ws(O[0]*Ys-Gs),B[1]=Ws(B[1]*Ys-Gs),O[1]=Ws(O[1]*Ys-Gs),d.push(" m ",B[0],",",B[1]," l ",O[0],",",B[1]," l ",O[0],",",O[1]," l ",B[0],",",O[1]);break;case Ms.Z:d.push(" x ")}if(i>0){d.push(r);for(var I=0;I100&&(fh=0,ch={});var i,r=dh.style;try{r.font=t,i=r.fontFamily.split(",")[0]}catch(t){}e={style:r.fontStyle||"normal",variant:r.fontVariant||"normal",weight:r.fontWeight||"normal",size:0|parseFloat(r.fontSize||12),family:i||"Microsoft YaHei"},ch[t]=e,fh++}return e};As.measureText=function(t,e){var i=Fs.doc;uh||((uh=i.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",Fs.doc.body.appendChild(uh));try{uh.style.font=e}catch(t){}return uh.innerHTML="",uh.appendChild(i.createTextNode(t)),{width:uh.offsetWidth}};for(var vh=new Cs,gh=[Rs,Es,Ds,Os,Bs],_h=0;_h0;)o=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}else{for(s=n+1;hs&&(h=s);var l=o;o=n-h,h=n-l}for(o++;os&&(h=s);var l=o;o=n-h,h=n-l}else{for(s=r-n;h=0;)o=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}for(o++;o=a;s++)o-=a;var h=mt(i);return h>o&&(i="",h=0),o=t-h,r.ellipsis=i,r.ellipsisWidth=h,r.contentWidth=o,r.containerWidth=t,r}function Pt(t,e){var i=e.containerWidth,r=e.font,n=e.contentWidth;if(!i)return"";var a=mt(t,r);if(a<=i)return t;for(var o=0;;o++){if(a<=n||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?St(t,n,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*n/a):0;a=mt(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function St(t,e,i,r){for(var n=0,a=0,o=t.length;aS?g+=.0125:g-=.0125),d.push(D,Ws(((P-C)*w+x)*Ys-Gs),",",Ws(((S-M)*T+b)*Ys-Gs),",",Ws(((P+C)*w+x)*Ys-Gs),",",Ws(((S+M)*T+b)*Ys-Gs),",",Ws((R*w+x)*Ys-Gs),",",Ws((E*T+b)*Ys-Gs),",",Ws((g*w+x)*Ys-Gs),",",Ws((_*T+b)*Ys-Gs)),o=g,s=_;break;case Ms.R:var B=sh[0],O=sh[1];B[0]=t[a++],B[1]=t[a++],O[0]=B[0]+t[a++],O[1]=B[1]+t[a++],e&&(Us(B,B,e),Us(O,O,e)),B[0]=Ws(B[0]*Ys-Gs),O[0]=Ws(O[0]*Ys-Gs),B[1]=Ws(B[1]*Ys-Gs),O[1]=Ws(O[1]*Ys-Gs),d.push(" m ",B[0],",",B[1]," l ",O[0],",",B[1]," l ",O[0],",",O[1]," l ",B[0],",",O[1]);break;case Ms.Z:d.push(" x ")}if(i>0){d.push(r);for(var I=0;I100&&(fh=0,ch={});var i,r=dh.style;try{r.font=t,i=r.fontFamily.split(",")[0]}catch(t){}e={style:r.fontStyle||"normal",variant:r.fontVariant||"normal",weight:r.fontWeight||"normal",size:0|parseFloat(r.fontSize||12),family:i||"Microsoft YaHei"},ch[t]=e,fh++}return e};As.measureText=function(t,e){var i=Fs.doc;uh||((uh=i.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",Fs.doc.body.appendChild(uh));try{uh.style.font=e}catch(t){}return uh.innerHTML="",uh.appendChild(i.createTextNode(t)),{width:uh.offsetWidth}};for(var vh=new Cs,gh=[Rs,Es,Ds,Os,Bs],_h=0;_h