16 lines
6.8 KiB
JavaScript
16 lines
6.8 KiB
JavaScript
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[13],{451:function(ia,ba,e){e.r(ba);var ea=e(462),x=e(116),ha=e(39),ca=e(74);ia=function(){function e(){this.ub=this.we=this.Rb=this.jc=null;this.Oe=!1}e.prototype.clear=function(){Object(ha.b)(this.jc);this.Rb="";Object(ha.b)(this.we);Object(ha.b)(this.ub);this.Oe=!1};e.prototype.md=function(){this.jc=[];this.we=[];this.ub=[];this.Oe=!1};e.prototype.$z=function(e){for(var w="",x=0,n,h,f;x<e.length;)n=e.charCodeAt(x),9===n?(w+=String.fromCharCode(10),
|
|
x++):128>n?(w+=String.fromCharCode(n),x++):191<n&&224>n?(h=e.charCodeAt(x+1),w+=String.fromCharCode((n&31)<<6|h&63),x+=2):(h=e.charCodeAt(x+1),f=e.charCodeAt(x+2),w+=String.fromCharCode((n&15)<<12|(h&63)<<6|f&63),x+=3);return w};e.prototype.initData=function(e){this.jc=[];this.we=[];this.ub=[];this.Oe=!1;try{var w=new ca.a(e);this.Rb="";w.Ka();if(!w.advance())return;var y=w.current.textContent;this.Rb=y=this.$z(y);Object(ha.b)(this.we);w.advance();y=w.current.textContent;for(var n=y.split(","),h=
|
|
Object(x.a)(n);h.gm();){var f=h.current;try{var r=parseInt(f.trim(),10);this.we.push(r)}catch(la){}}Object(ha.b)(this.jc);w.advance();y=w.current.textContent;n=y.split(",");for(var z=Object(x.a)(n);z.gm();){f=z.current;try{r=parseFloat(f.trim()),this.jc.push(r)}catch(la){}}Object(ha.b)(this.ub);w.advance();y=w.current.textContent;n=y.split(",");e=[];w=[];y=0;for(var aa=Object(x.a)(n);aa.gm();){f=aa.current;switch(f){case "Q":y=1;break;case "R":y=2;break;case "S":y=3;break;default:y=0}if(y)e.push(0),
|
|
w.push(y);else try{r=parseFloat(f.trim()),e.push(r),w.push(y)}catch(la){return}}y=0;var ba=e.length;h=aa=f=n=void 0;for(var da=z=0,ea=0;ea<ba;){var ia=w[ea];if(0<ia)y=ia,++ea,3===y&&(z=e[ea],da=e[ea+1],ea+=2);else if(1===y)for(r=0;8>r;++r)this.ub.push(e[ea++]);else 2===y?(n=e[ea++],f=e[ea++],aa=e[ea++],h=e[ea++],this.ub.push(n),this.ub.push(f),this.ub.push(aa),this.ub.push(f),this.ub.push(aa),this.ub.push(h),this.ub.push(n),this.ub.push(h)):3===y&&(n=e[ea++],f=z,aa=e[ea++],h=da,this.ub.push(n),this.ub.push(f),
|
|
this.ub.push(aa),this.ub.push(f),this.ub.push(aa),this.ub.push(h),this.ub.push(n),this.ub.push(h))}}catch(la){return}this.Rb.length&&this.Rb.length===this.we.length&&8*this.Rb.length===this.ub.length&&(this.Oe=!0)};e.prototype.ready=function(){return this.Oe};e.prototype.Aw=function(){var e=new ea.a;if(!this.jc.length)return e.dh(this.jc,-1,this.Rb,this.ub,0),e;e.dh(this.jc,1,this.Rb,this.ub,1);return e};e.prototype.nf=function(){return this.ub};e.prototype.getData=function(){return{m_Struct:this.jc,
|
|
m_Str:this.Rb,m_Offsets:this.we,m_Quads:this.ub,m_Ready:this.Oe}};return e}();ba["default"]=ia},462:function(ia,ba,e){var ea=e(86),x=e(50),ha=e(478);ia=function(){function e(){this.fe=0;this.rb=this.Ea=this.bf=null;this.Oc=0;this.ee=null}e.prototype.md=function(){this.fe=-1;this.Oc=0;this.ee=[]};e.prototype.dh=function(e,x,w,y,n){this.fe=x;this.Oc=n;this.ee=[];this.bf=e;this.Ea=w;this.rb=y};e.prototype.Fc=function(e){return this.fe===e.fe};e.prototype.fk=function(){return Math.abs(this.bf[this.fe])};
|
|
e.prototype.bm=function(){return 0<this.bf[this.fe]};e.prototype.Yg=function(){var e=this.bm()?6:10,x=new ha.a;x.dh(this.bf,this.fe+e,this.fe,this.Ea,this.rb,1);return x};e.prototype.gU=function(e){if(0>e||e>=this.fk())return e=new ha.a,e.dh(this.bf,-1,-1,this.Ea,this.rb,0),e;var x=this.bm()?6:10,w=this.bm()?5:11,y=new ha.a;y.dh(this.bf,this.fe+x+w*e,this.fe,this.Ea,this.rb,1+e);return y};e.prototype.Vn=function(){var x=this.fe+parseInt(this.bf[this.fe+1],10);if(x>=this.bf.length)return x=new e,x.dh(this.bf,
|
|
-1,this.Ea,this.rb,0),x;var aa=new e;aa.dh(this.bf,x,this.Ea,this.rb,this.Oc+1);return aa};e.prototype.Je=function(e){if(this.bm())e.na=this.bf[this.fe+2+0],e.ja=this.bf[this.fe+2+1],e.oa=this.bf[this.fe+2+2],e.ka=this.bf[this.fe+2+3];else{for(var x=1.79769E308,w=ea.a.MIN,y=1.79769E308,n=ea.a.MIN,h=0;4>h;++h){var f=this.bf[this.fe+2+2*h],r=this.bf[this.fe+2+2*h+1];x=Math.min(x,f);w=Math.max(w,f);y=Math.min(y,r);n=Math.max(n,r)}e.na=x;e.ja=y;e.oa=w;e.ka=n}};e.prototype.lC=function(){if(this.ee.length)return this.ee[0];
|
|
var e=new x.a,aa=new x.a,w=new ha.a;w.md();var y=this.Yg(),n=new ha.a;n.md();for(var h=this.Yg();!h.Fc(w);h=h.$g())n=h;w=Array(8);h=Array(8);y.Ke(0,w);e.x=(w[0]+w[2]+w[4]+w[6])/4;e.y=(w[1]+w[3]+w[5]+w[7])/4;n.Ke(n.ek()-1,h);aa.x=(h[0]+h[2]+h[4]+h[6])/4;aa.y=(h[1]+h[3]+h[5]+h[7])/4;.01>Math.abs(e.x-aa.x)&&.01>Math.abs(e.y-aa.y)&&this.ee.push(0);e=Math.atan2(aa.y-e.y,aa.x-e.x);e*=180/3.1415926;0>e&&(e+=360);this.ee.push(e);return 0};return e}();ba.a=ia},478:function(ia,ba,e){var ea=e(462),x=e(95),ha=
|
|
e(86);ia=function(){function e(){this.dl=this.Jd=0;this.rb=this.Ea=this.jc=null;this.Oc=0}e.prototype.md=function(){this.dl=this.Jd=-1;this.Oc=0};e.prototype.dh=function(e,x,w,y,n,h){this.Jd=x;this.dl=w;this.jc=e;this.Ea=y;this.rb=n;this.Oc=h};e.prototype.Fc=function(e){return this.Jd===e.Jd};e.prototype.ek=function(){return parseInt(this.jc[this.Jd],10)};e.prototype.Pi=function(){return parseInt(this.jc[this.Jd+2],10)};e.prototype.bh=function(){return parseInt(this.jc[this.Jd+1],10)};e.prototype.bm=
|
|
function(){return 0<this.jc[this.dl]};e.prototype.zba=function(){return Math.abs(this.jc[this.dl])};e.prototype.$g=function(){var x=this.bm(),aa=x?5:11;if(this.Jd>=this.dl+(x?6:10)+(this.zba()-1)*aa)return aa=new e,aa.dh(this.jc,-1,-1,this.Ea,this.rb,0),aa;x=new e;x.dh(this.jc,this.Jd+aa,this.dl,this.Ea,this.rb,this.Oc+1);return x};e.prototype.Raa=function(e){var x=this.ek();return 0>e||e>=x?-1:parseInt(this.jc[this.Jd+1],10)+e};e.prototype.Ke=function(e,aa){e=this.Raa(e);if(!(0>e)){var w=new ea.a;
|
|
w.dh(this.jc,this.dl,this.Ea,this.rb,0);if(w.bm()){var y=new x.a;w.Je(y);w=y.ja<y.ka?y.ja:y.ka;y=y.ja>y.ka?y.ja:y.ka;e*=8;aa[0]=this.rb[e];aa[1]=w;aa[2]=this.rb[e+2];aa[3]=aa[1];aa[4]=this.rb[e+4];aa[5]=y;aa[6]=this.rb[e+6];aa[7]=aa[5]}else for(e*=8,w=0;8>w;++w)aa[w]=this.rb[e+w]}};e.prototype.le=function(e){var aa=new ea.a;aa.dh(this.jc,this.dl,this.Ea,this.rb,0);if(aa.bm()){var w=this.jc[this.Jd+3],y=this.jc[this.Jd+4];if(w>y){var n=w;w=y;y=n}n=new x.a;aa.Je(n);aa=n.ja<n.ka?n.ja:n.ka;n=n.ja>n.ka?
|
|
n.ja:n.ka;e[0]=w;e[1]=aa;e[2]=y;e[3]=aa;e[4]=y;e[5]=n;e[6]=w;e[7]=n}else for(w=this.Jd+3,y=0;8>y;++y)e[y]=this.jc[w+y]};e.prototype.Je=function(e){var aa=new ea.a;aa.dh(this.jc,this.dl,this.Ea,this.rb,0);if(aa.bm()){var w=this.jc[this.Jd+3],y=this.jc[this.Jd+4];if(w>y){var n=w;w=y;y=n}n=new x.a;aa.Je(n);aa=n.ja<n.ka?n.ja:n.ka;n=n.ja>n.ka?n.ja:n.ka;e[0]=w;e[1]=aa;e[2]=y;e[3]=n}else{w=1.79769E308;y=ha.a.MIN;aa=1.79769E308;n=ha.a.MIN;for(var h=this.Jd+3,f=0;4>f;++f){var r=this.jc[h+2*f],z=this.jc[h+
|
|
2*f+1];w=Math.min(w,r);y=Math.max(y,r);aa=Math.min(aa,z);n=Math.max(n,z)}e[0]=w;e[1]=aa;e[2]=y;e[3]=n}};return e}();ba.a=ia}}]);}).call(this || window)
|