HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/6M21-uFDNdCJW.js
import{E as qe,ag as Xe,aj as Qe,q as h,r as j,K as G,h as oe,ks as n,R as F,aA as L,aH as k,a8 as I,a7 as B,bo as ue,aF as W,J as Ye,au as ne,C as X,M as q,o as U,b5 as H,ae as xe,b_ as Se,aB as Fe,W as re,c as ve,a_ as ke,bv as Re,Q as ae,p as Ie,l as He,O as Ge}from"./index-XCg2QAX4.js";import{b as Me,c as Ne}from"./2dAnimation-CHlApqtb.js";const ze="08/06/2022",Ve="Compare perimeters and/or areas of figures",Ke=!0,_e="qcm";function je(ye,O,C,ie,v,de,t=5,e=2){Ge.call(this,{}),this.svg=function(r){Me(ie,t,t+e,1);let u="<g> ";if(Array.isArray(O))for(const y of O)u+=`
`+y.svg(r);else u+=`
`+O.svg(r);if(u+=`<animateTransform
    attributeName="transform"
    attributeType="XML"
    type="translate"
    from="0 0"
    to="${re(C.xSVG(r),0)} ${re(C.ySVG(r),0)}"
    begin="0s" dur="${t}s" fill="freeze"  repeatCount="1" id="translat${ye}"
    /></path></g>`,Ne(O,t,0,1),u+="<g>",Array.isArray(ie))for(const y of ie)u+=`
`+y.svg(r);else u+=`
`+ie.svg(r);return u+=`<animateTransform
  attributeName="transform"
  type="rotate"
  from="0 ${v.xSVG(r)} ${v.ySVG(r)}"
  to="${-de} ${v.xSVG(r)} ${v.ySVG(r)}"
  begin="translat${ye}.end" dur="${e}s" fill="freeze" repeatCount="1" id="rotat-${ye}"
  /></path>`,u+="</g>",u}}function Te(...ye){return new je(...ye)}const We="95313",Ue="6M21";function Ze(){qe.call(this),this.titre=Ve,this.consigne="",this.nbQuestions=3,this.nbCols=1,this.nbColsCorr=1,this.spacingCorr=1,this.sup=13,this.sup2=3,this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const ye=Xe({max:12,defaut:13,melange:13,nbQuestions:this.nbQuestions,saisie:this.sup}),O=Qe(["red","blue","green","gray","pink","#f15929"],this.nbQuestions);let C="Both";this.sup2===1?C="Perimeter":this.sup2===2&&(C="Area");let ie=0;for(let v=0,de=0,t,e,r,u,y,Q,g,Y,f,V,b,M,$,T,A,D,ee,m,te,R,o,c,l,P,w,z,K,Ee,E,a,i,N,Z,S,fe,me,pe,he,De,Pe,Ae,Ce,x,_,d,J,p,s,we,Be,ge,$e,se,Oe,ce,le,be;v<this.nbQuestions&&de<50;){switch(d=[],t=h(0,0),e=h(j(5,10),0),r=h(e.x,j(5,10,e.x)),u=h(0,r.y),_=G([t,e,r,u]),_.hachures=!0,_.pointilles=2,$e=!1,se=!1,Oe=!1,ce=!1,le=!1,be=!1,this.sup2===4&&(C=oe(["Area","Perimeter"])),ye[v]){case 1:y=t,g=h(n((t.x+e.x)/2,e.x),t.y),Q=h(n(y.x,g.x),n(t.y,t.y+(u.y+t.y)/2)),Y=h(n(g.x,e.x),n(t.y,t.y+(u.y+t.y)/2)),f=e,V=h(n(Y.x,e.x),n(Y.y,r.y)),b=h(e.x,n(V.y,r.y)),M=h(n(t.x+(t.x+e.x)/2,e.x),n(b.y,r.y)),$=r,T=h(n(t.x+(t.x+e.x)/2,M.x),n(M.y,u.y)),A=h(n(u.x,T.x),u.y),D=h(n(u.x,A.x),n(u.y,t.y+(u.y+t.y)/2)),ee=u,m=h(n(t.x,D.x),n(D.y,t.y+(u.y+t.y)/2)),R=h(n(t.x,Q.x),n(Q.y,t.y+(u.y+t.y)/2)),te=h(t.x,n(m.y,R.y)),x=G(y,Q,g,Y,f,V,b,M,$,T,A,D,ee,m,te,R),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,d.push(x,_),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers more area than the colored figure. Therefore, the hatched rectangle has an area greater than that of the colored figure.":"",this.interactif&&(se=!0,ce=!0);break;case 2:y=t,g=h(n((t.x+e.x)/2,e.x),t.y),Q=h(n(y.x,g.x),n(t.y,t.y-(u.y+t.y)/2)),Y=h(n(g.x,e.x),n(t.y,t.y-(u.y+t.y)/2)),f=e,V=h(n(e.x,e.x+(t.x+e.x)/2),n(f.y,(f.y+r.y)/2)),b=h(e.x,n(e.y,r.y)),M=h(n(e.x,V.x),r.y),T=h(n(u.x,(r.x+u.x)/2),r.y),$=h(n(T.x,M.x),n(u.y,u.y+(u.y+t.y)/2)),A=h(n(u.x,T.x),n(u.y,u.y+(u.y+t.y)/2)),D=h(n(t.x-(t.x+e.x)/2,t.x),u.y),ee=h(t.x,n(t.y,u.y)),m=h(n(t.x-(t.x+e.x)/2,t.x),n(ee.y,t.y)),x=G(y,Q,g,Y,f,V,b,M,$,T,A,D,ee,m),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,d.push(x,_),s={xmin:L(D.x,m.x)-.5,ymin:L(Q.y,Y.y)-.5,xmax:xe(V.x,M.x)+.5,ymax:xe($.y,A.y)+.5,pixelsParCm:30,scale:.7,mainlevee:!1},J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers less area than the colored figure. Therefore, the colored figure has an area greater than that of the hatched rectangle.":"",this.interactif&&(se=!0,le=!0);break;case 3:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),o=re(L(k(y,Q),k(g,Y),k(f,V),k(b,M))/2),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o;break;case 1:c=T,l=g,s.xmax=o+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o;break}P=ae(l,c,180,!1,O[v],"black",.5),a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],a===1&&(s.xmax=o+e.x+.5),a===3&&(s.xmin=-.5-o),w=ae(i[a][0],i[a][1],-180,!1,"white","black",1.1),$=W(l,c,60),T=X($,c,"black"),T.epaisseur=2,A=W(i[a][0],i[a][1],-60),D=X(A,i[a][1],"black"),D.epaisseur=2,d.push(P,w,T,q($,c,"|||"),D,q(A,i[a][1],"|||"),_),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers as much surface as the colored figure. Therefore, the colored figure has an area equal to that of the hatched rectangle.":"",(this.sup2===2||this.sup2===3||C!=="Perimeter")&&(d=[],P=ae(l,c,180,!1,"white","black",1.1),z=ae(l,c,180,!1,O[v],"black",.5),N=a-E<0?a-E+4:a-E,N=N===1?90:N===2?0:-90,K=ae(W(i[a][0],i[a][1],N),i[a][1],-180,!1,O[v],"black",.5),d.push(x,P,w,T,q($,c,"|||"),D,q(A,i[a][1],"|||"),_),d.push(Te(v,z,B(c,i[a][1]),K,i[a][1],-N)),s.ymin=a===0?-.5-o:s.ymin,s.ymax=a===2?o+r.y+.5:s.ymax,p+="<br>"+U(s,d),ve.isHtml&&(p+=`<br><button class='btn ui labeled icon button'  style='margin:10px' onclick="document.getElementById('${z.id}').style.visibility = 'visible',document.getElementById('${K.id}').style.visibility = 'hidden',
              setTimeout(function() {document.getElementById('${z.id}').style.visibility = 'hidden'}, 5000),
              setTimeout(function() {document.getElementById('${K.id}').style.visibility = "visible'}, 5000),document.getElementById('translat${v}").beginElement()"><i class="redo circle icon"></i>Restart area comparison animation </button>`)),this.interactif&&(se=!0,be=!0);break;case 4:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),me=oe([!0,!1]),fe=j(2,3),o=re(L(k(y,Q),k(g,Y),k(f,V),k(b,M))/2),o=me?o:o/fe,$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o;break;case 1:c=T,l=g,s.xmax=o+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o;break}P=ae(l,c,180,!1,O[v],"black",.5),a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],s.xmax=a===1?o+e.x+.5:s.xmax,s.xmin=a===3?-.5-o:s.xmin,w=ae(me?ne(i[a][1],i[a][0],1/fe):i[a][0],me?i[a][1]:ne(i[a][1],i[a][0],fe),-180,!1,"white","black",1.1),d.push(P,w,_),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=me?this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers less area than the colored figure. Therefore, the colored figure has an area greater than that of the hatched rectangle.":"":this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers more area than the colored figure. Therefore, the hatched rectangle has an area greater than that of the colored figure.":"",(this.sup2===2||this.sup2===3||C!=="Perimeter")&&(d=[],P=ae(l,c,180,!1,"white","black",1.1),z=ae(l,c,180,!1,O[v],"black",.5),N=a-E<0?a-E+4:a-E,N=N===1?90:N===2?0:-90,K=ae(W(i[a][0],i[a][1],N),i[a][1],-180,!1,O[v],"black",.5),d.push(x,P,w,_),d.push(Te(v,z,B(c,i[a][1]),K,i[a][1],-N)),s.ymin=a===0?-.5-o:s.ymin,s.ymax=a===2?o+r.y+.5:s.ymax,p+="<br>"+U(s,d),ve.isHtml&&(p+=`<br><button class='btn ui labeled icon button'  style='margin:10px' onclick="document.getElementById('${z.id}').style.visibility = 'visible',document.getElementById('${K.id}').style.visibility = 'hidden',
              setTimeout(function() {document.getElementById('${z.id}').style.visibility = 'hidden'}, 5000),
              setTimeout(function() {document.getElementById('${K.id}').style.visibility = "visible'}, 5000),document.getElementById('translat${v}").beginElement()"><i class="redo circle icon"></i>Restart area comparison animation </button>`)),this.interactif&&(se=!0,ce=!me,le=me);break;case 5:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),o=re(L(k(y,Q),k(g,Y),k(f,V),k(b,M))/2),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o;break;case 1:c=T,l=g,s.xmax=o+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o;break}P=ae(l,c,180,!1,O[v],"black",.5),a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],s.ymin=a===0?-.5-o:s.ymin,s.xmax=a===1?o+e.x+.5:s.xmax,s.ymax=a===2?o+r.y+.5:s.ymax,s.xmin=a===3?-.5-o:s.xmin,w=ae(i[a][0],i[a][1],180,!1,O[v],"black",.5),$=W(l,c,60),T=X($,c,"black"),T.epaisseur=2,A=W(i[a][0],i[a][1],60),D=X(A,i[a][1],"black"),D.epaisseur=2,d.push(P,w,T,q($,c,"|||"),D,q(A,i[a][1],"|||"),_),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers less area than the colored figure. Therefore, the colored figure has an area greater than that of the hatched rectangle.":"",this.interactif&&(se=!0,le=!0);break;case 6:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),o=re(L(k(y,Q),k(g,Y),k(f,V),k(b,M))/2),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o;break;case 1:c=T,l=g,s.xmax=o+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o;break}P=ae(l,c,-180,!1,"white","black",1.1),a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],s.ymin=a===0?-.5-o:s.ymin,s.xmax=a===1?o+e.x+.5:s.xmax,s.ymax=a===2?o+r.y+.5:s.ymax,s.xmin=a===3?-.5-o:s.xmin,w=ae(i[a][0],i[a][1],-180,!1,"white","black",1.1),$=W(l,c,-60),T=X($,c,"black"),T.epaisseur=2,A=W(i[a][0],i[a][1],-60),D=X(A,i[a][1],"black"),D.epaisseur=2,d.push(P,w,T,q($,c,"|||"),D,q(A,i[a][1],"|||"),_),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers more area than the colored figure. Therefore, the hatched rectangle has an area greater than that of the colored figure.":"",this.interactif&&(se=!0,ce=!0);break;case 7:y=h(n(t.x,e.x),t.y),Q=h(e.x,n(e.y,r.y)),g=h(n(t.x,e.x),r.y),Y=h(t.x,n(e.y,r.y)),x=G(y,Q,g,Y),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,d.push(x,_),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover less distance to go around the colored figure than around the hatched rectangle. Therefore, the hatched rectangle has a larger perimeter than that of the colored figure.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers more area than the colored figure. Therefore, the hatched rectangle has an area greater than that of the colored figure.":"",this.interactif&&($e=!0,ce=!0);break;case 8:pe=oe([0,.5]),De=ke(t,-(pe+j(10,50)/100)),Pe=ke(e,-(pe-j(50,90)/100)),Ae=ke(r,-(pe+j(10,50)/100)),Ce=ke(u,-(pe-j(50,90)/100)),y=Re(De,Pe),Q=Re(Pe,Ae),g=Re(Ae,Ce),Y=Re(Ce,De),x=G(y,Q,g,Y),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,d.push(x,_),s={xmin:Y.x-.5,ymin:y.y-.5,xmax:Q.x+.5,ymax:g.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers less area than the colored figure. Therefore, the colored figure has an area greater than that of the hatched rectangle.":"",this.interactif&&(se=!0,le=!0);break;case 9:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),o=L(k(y,Q),k(g,Y),k(f,V),k(b,M)),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},S=oe([-1,1]),E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o-S;break;case 1:c=T,l=g,s.xmax=o+S+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+S+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o-S;break}Z=oe([40,50,70,80]),ee=ue(l,c,o+S),m=W(ee,l,-Z),P=G(l,c,m),P.color="none",P.couleurDeRemplissage=F(O[v]),P.opaciteDeRemplissage=.5,a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],s.xmax=a===1?o+e.x+.5:s.xmax,s.xmin=a===3?-.5-o:s.xmin,te=ue(i[a][1],i[a][0],o+S),R=W(te,i[a][1],-Z),w=G(i[a][0],i[a][1],R),w.color="none",w.couleurDeRemplissage=F("white"),w.opaciteDeRemplissage=1.1,d.push(P,w,X(l,m),X(c,m),q(l,m,"|||"),q(l,c,"OO"),q(c,m,"XX"),_),d.push(X(i[a][0],R),X(i[a][1],R),q(i[a][1],R,"|||"),q(i[a][1],i[a][0],"OO"),q(i[a][0],R,"XX")),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers as much surface as the colored figure. Therefore, the colored figure has an area equal to that of the hatched rectangle.":"",d=[],(this.sup2===2||this.sup2===3||C!=="Perimeter")&&(P=G(l,c,m),P.color="none",P.couleurDeRemplissage=F("white"),P.opaciteDeRemplissage=1.1,z=G(l,c,m),z.couleurDeRemplissage=F(O[v]),z.opaciteDeRemplissage=.5,N=a-E<0?a-E+4:a-E,N=N===1?90:N===2?0:-90,K=W(w,i[a][0],N),K.couleurDeRemplissage=F(O[v]),K.opaciteDeRemplissage=.5,d.push(x,P,w,X(l,m),X(c,m),q(l,m,"|||"),q(l,c,"OO"),q(c,m,"XX"),_),d.push(X(i[a][0],R),X(i[a][1],R),q(i[a][1],R,"|||"),q(i[a][1],i[a][0],"OO"),q(i[a][0],R,"XX")),d.push(Te(v,z,B(c,i[a][0]),K,i[a][0],-N)),s.ymin=a===0?-.5-o:s.ymin,s.ymax=a===2?o+r.y+.5:s.ymax,p+="<br>"+U(s,d),ve.isHtml&&(p+=`<br><button class='btn ui labeled icon button'  style='margin:10px' onclick="document.getElementById('${z.id}').style.visibility = 'visible',document.getElementById('${K.id}').style.visibility = 'hidden',
              setTimeout(function() {document.getElementById('${z.id}').style.visibility = 'hidden'}, 5000),
              setTimeout(function() {document.getElementById('${K.id}').style.visibility = "visible'}, 5000),document.getElementById('translat${v}").beginElement()"><i class="redo circle icon"></i>Restart area comparison animation </button>`)),this.interactif&&(se=!0,be=!0);break;case 10:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),o=L(k(y,Q),k(g,Y),k(f,V),k(b,M)),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},S=oe([-1,1]),E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o-S;break;case 1:c=T,l=g,s.xmax=o+S+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+S+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o-S;break}Z=oe([40,50,70,80]),ee=ue(l,c,o+S),m=W(ee,l,-Z),P=G(l,c,m),P.color="none",P.couleurDeRemplissage=F(O[v]),P.opaciteDeRemplissage=.5,a=j(0,3,[E]),ge=k(m,Se(m,Fe(c,l))),i=[[y,$,re(L(ge/k(e,r),k(y,e)/k(y,$)))],[g,T,re(L(ge/k(t,e),k(g,r)/k(g,T)))],[f,A,re(L(ge/k(e,r),k(f,u)/k(f,A)))],[b,D,re(L(ge/k(t,e),k(b,t)/k(b,D)))]],a===1&&(s.xmax=o+e.x+.5),a===3&&(s.xmin=-.5-o),te=ue(i[a][1],i[a][0],o+S),R=W(te,i[a][1],-Z),w=G(i[a][0],i[a][1],R),he=oe([.7,.8,re(L(1.2,i[a][2]-.01)),L(1.3,re(i[a][2]-.01))]),w=ne(w,i[a][0],he),w.color="none",w.couleurDeRemplissage=F("white"),w.opaciteDeRemplissage=1.1,d.push(P,w,X(l,m),X(c,m),_),d.push(ne(X(i[a][0],R),i[a][0],he),ne(X(i[a][1],R),i[a][0],he)),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=he<1?this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers less area than the colored figure. Therefore, the colored figure has an area greater than that of the hatched rectangle.":"":this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers more area than the colored figure. Therefore, the hatched rectangle has an area greater than that of the colored figure.":"",(this.sup2===2||this.sup2===3||C!=="Perimeter")&&(d=[],P=G(l,c,m),P.color="none",P.couleurDeRemplissage=F("white"),P.opaciteDeRemplissage=1.1,z=G(l,c,m),z.couleurDeRemplissage=F(O[v]),z.opaciteDeRemplissage=.5,Ee=ne(w,i[a][0],1/he),N=a-E<0?a-E+4:a-E,N=N===1?90:N===2?0:-90,K=W(Ee,i[a][0],N),K.couleurDeRemplissage=F(O[v]),K.opaciteDeRemplissage=.5,d.push(x,P,w,X(l,m),X(c,m),_),d.push(ne(X(i[a][0],R),i[a][0],he),ne(X(i[a][1],R),i[a][0],he)),d.push(Te(v,z,B(c,i[a][0]),K,i[a][0],-N)),s.ymin=a===0?-.5-o:s.ymin,s.ymax=a===2?o+r.y+.5:s.ymax,p+="<br>"+U(s,d),ve.isHtml&&(p+=`<br><button class='btn ui labeled icon button'  style='margin:10px' onclick="document.getElementById('${z.id}').style.visibility = 'visible',document.getElementById('${K.id}').style.visibility = 'hidden',
              setTimeout(function() {document.getElementById('${z.id}').style.visibility = 'hidden'}, 5000),
              setTimeout(function() {document.getElementById('${K.id}').style.visibility = "visible'}, 5000),document.getElementById('translat${v}").beginElement()"><i class="redo circle icon"></i>Restart area comparison animation </button>`)),this.interactif&&(se=!0,ce=!(he<1),le=he<1);break;case 11:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=.5,x.color="none",d.push(x),o=L(k(y,Q),k(g,Y),k(f,V),k(b,M)),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},S=oe([-1,1]),E=j(0,3),E){case 0:c=$,l=y,s.ymin=-.5-o-S;break;case 1:c=T,l=g,s.xmax=o+S+e.x+.5;break;case 2:c=A,l=f,s.ymax=o+S+r.y+.5;break;case 3:c=D,l=b,s.xmin=-.5-o-S;break}switch(Z=oe([40,50,70,80,100,110]),ee=ue(l,c,o+S),m=W(ee,l,-Z),E){case 0:case 2:s.xmin=-.5+L(t.x,m.x),s.xmax=.5+xe(e.x,m.x);break;case 1:case 3:s.ymin=-.5+L(t.y,m.y),s.ymax=.5+xe(u.y,m.y);break}switch(P=G(l,c,m),P.color="none",P.couleurDeRemplissage=F(O[v]),P.opaciteDeRemplissage=.5,a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],te=ue(i[a][1],i[a][0],o+S),R=W(te,i[a][1],Z),a){case 0:s.xmin=-.5+L(t.x,R.x,m.x),s.xmax=.5+xe(e.x,R.x,m.x),s.ymin=-.5-o-S;break;case 1:s.ymin=-.5+L(t.y,R.y,m.y),s.ymax=.5+xe(u.y,R.y,m.y),s.xmax=o+S+e.x+.5;break;case 2:s.xmin=-.5+L(t.x,R.x,m.x),s.xmax=.5+xe(e.x,R.x,m.x),s.ymax=o+S+r.y+.5;break;case 3:s.ymin=-.5+L(t.y,R.y,m.y),s.ymax=.5+xe(u.y,R.y,m.y),s.xmin=-.5-o-S;break}w=G(i[a][0],i[a][1],R),w.color="none",w.couleurDeRemplissage=F(O[v]),w.opaciteDeRemplissage=.5,d.push(P,w,X(l,m),X(c,m),q(l,m,"|||"),q(l,c,"OO"),q(c,m,"XX"),_),d.push(X(i[a][0],R),X(i[a][1],R),q(i[a][1],R,"|||"),q(i[a][1],i[a][0],"OO"),q(i[a][0],R,"XX")),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers less area than the colored figure. Therefore, the colored figure has an area greater than that of the hatched rectangle.":"",this.interactif&&(se=!0,le=!0);break;case 12:switch(y=h(n(t.x,t.x+(e.x-t.x)/3),t.y),Q=h(n(e.x,t.x+2*(e.x-t.x)/3),t.y),g=h(e.x,n(e.y,e.y+(r.y-e.y)/3)),Y=h(e.x,n(r.y,e.y+2*(r.y-e.y)/3)),f=h(n(e.x,t.x+2*(e.x-t.x)/3),u.y),V=h(n(t.x,t.x+(e.x-t.x)/3),u.y),b=h(t.x,n(r.y,e.y+2*(r.y-e.y)/3)),M=h(t.x,n(e.y,e.y+(r.y-e.y)/3)),x=G(t,e,r,u),x.couleurDeRemplissage=F(O[v]),x.opaciteDeRemplissage=1.1,x.color="none",d.push(x),o=L(k(y,Q),k(g,Y),k(f,V),k(b,M)),$=I(y,B(o,0)),T=I(g,B(0,o)),A=I(f,B(-o,0)),D=I(b,B(0,-o)),s={xmin:-.5,ymin:-.5,xmax:e.x+.5,ymax:r.y+.5,pixelsParCm:30,scale:.7,mainlevee:!1},S=-1,E=j(0,3),E){case 0:c=$,l=y;break;case 1:c=T,l=g;break;case 2:c=A,l=f;break;case 3:c=D,l=b;break}Z=oe([40,50,70,80,100,110]),ee=ue(l,c,o+S),m=W(ee,l,Z),m.estDansQuadrilatere(t,e,r,u)||(Z=180-Z,m=W(ee,l,Z)),P=G(l,c,m),P.color="none",P.couleurDeRemplissage=F("white"),P.opaciteDeRemplissage=1.1,a=j(0,3,[E]),i=[[y,$],[g,T],[f,A],[b,D]],te=ue(i[a][0],i[a][1],o+S),R=W(te,i[a][0],Z),(!R.estDansQuadrilatere(t,e,r,u)||R.estDansTriangle(l,c,m)||m.estDansTriangle(i[a][0],i[a][1],R))&&(te=Ye(t,r),i[a][1]=ne(c,te,-1),i[a][0]=ne(l,te,-1),R=ne(m,te,-1)),w=G(i[a][0],i[a][1],R),w.color="none",w.couleurDeRemplissage=F("white"),w.opaciteDeRemplissage=1.1,d.push(P,w,X(l,m),X(c,m),q(l,m,"|||"),q(l,c,"OO"),q(c,m,"XX"),_),d.push(X(i[a][0],R),X(i[a][1],R),q(i[a][1],R,"XX"),q(i[a][1],i[a][0],"OO"),q(i[a][0],R,"|||")),J=U(s,d),p=this.sup2===3?H(0):"",p+=this.sup2===1||this.sup2===3||C!=="Area"?"You have to cover more ground to go around the colored figure than around the hatched rectangle. Therefore, the colored figure has a larger perimeter than that of the hatched rectangle.":"",p+=this.sup2===3?"<br>"+H(1):"",p+=this.sup2===2||this.sup2===3||C!=="Perimeter"?"The hatched rectangle covers more area than the colored figure. Therefore, the hatched rectangle has an area greater than that of the colored figure.":"",this.interactif&&(se=!0,ce=!0);break}this.interactif&&((this.sup2===1||this.sup2===3||C!=="Area")&&(this.autoCorrection[ie]={enonce:"Never mind",propositions:[{texte:"The hatched rectangle",statut:$e,feedback:""},{texte:"The colored figure",statut:se,feedback:""},{texte:"As much as one as the other",statut:Oe,feedback:""}]},we=Ie(this,ie),ie++),(this.sup2===2||this.sup2===3||C!=="Perimeter")&&(this.autoCorrection[ie]={enonce:"Never mind",propositions:[{texte:"The hatched rectangle",statut:ce,feedback:""},{texte:"The colored figure",statut:le,feedback:""},{texte:"As much as one as the other",statut:be,feedback:""}]},Be=Ie(this,ie),ie++)),J+="<br>",this.sup2===3&&(J+=H(0)),(this.sup2===1||this.sup2===3||C!=="Area")&&(J+="Between the hatched rectangle and the colored figure, which has the largest perimeter?",this.interactif&&(J+=we.texte)),this.sup2===3&&(J+="<br>"+H(1)),(this.sup2===2||this.sup2===3||C!=="Perimeter")&&(J+="Between the hatched rectangle and the colored figure, which has the largest area?",this.interactif&&(J+=Be.texte)),this.questionJamaisPosee(v,J)&&(this.listeQuestions.push(J),this.listeCorrections.push(p),v++),de++}He(this)},this.besoinFormulaireTexte=["Type of figures",`Nombres séparés par des tirets :
  1 : Polygone inscrit dans un rectangle
  2 : Rectangle inscrit dans un polygone
  3 : Rectangle avec deux demi-disques alternés qui s'emboitent
  4 : Rectangle avec deux demi-disques alternés qui ne s'emboitent pas
  5 : Rectangle avec deux demi-disques en plus
  6 : Rectangle avec deux demi-disques en moins
  7 : Quadrilatère inscrit dans un rectangle
  8 : Rectangle inscrit dans un quadrilatère
  9 : Rectangle avec deux triangles alternés qui s'emboîtent
  10 : Rectangle avec deux triangles alternés qui ne s'emboîtent pas
  11 : Rectangle avec deux triangles en plus
  12 : Rectangle avec deux triangles en moins
  13 : Mélange `],this.besoinFormulaire2Numerique=["Perimeters and/or areas",4,`1: Only perimeters
2: Only areas
3: Both
4: One or the other at random questions`]}export{ze as dateDePublication,Ze as default,Ke as interactifReady,_e as interactifType,Ue as ref,Ve as titre,We as uuid};
//# sourceMappingURL=6M21-uFDNdCJW.js.map