File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/_Solide_6e-MAPVNiBe.js
import{E as pe,aj as oe,ag as he,aM as ke,h as ge,r as A,q as L,K as le,aS as ie,jW as re,C as E,R as e,bk as ue,I as be,o as fe,c as xe,cn as me,p as de,l as ye}from"./index-XCg2QAX4.js";import{g as Ce,s as Pe}from"./reperes-uV74d7Az.js";const Te="07/06/2023";function Fe(){pe.call(this),this.nbQuestions=1,this.nbCols=1,this.nbColsCorr=1,this.sup=1,this.sup2=1,this.sup3=5,this.titre="",this.nouvelleVersion=function(){this.listeQuestions=[],this.listeCorrections=[],this.autoCorrection=[];const ne=this.sup===3?[1,2]:[this.sup],se=oe(ne,this.nbQuestions),S=he({saisie:this.sup3,max:4,melange:5,defaut:5,nbQuestions:this.nbQuestions});let W,v,O,I,te;const $e=this.sup2===1?.5:.8;let h,k,Q,N,n,H,j,G,T,F,M,w,i,u,b,f,g,x,m,d,R,q,V,z,U=[],Z=[],X,_;for(let C=0,B,P,y,ce=0;C<this.nbQuestions&&ce<50;){C%2===0&&(_=["PQD"]);const o=ke(8,_);_.push(o);const ee=ge([30,45,-30,-45,150,135,-150,-135]);switch(R=ee%10===0?.6:.4,Z=[],U=[],se[C]){case 1:B=`$${o}$ is a cube.<br>`,q=`The ${o} cube.<br>`;break;case 2:B=`$${o}$ is a right pad.<br>`,q=`The right ${o} pad.<br>`;break}const $=[[[0,1],[2,3],[4,5],[6,7]],[[0,3],[1,2],[4,7],[5,6]],[[0,4],[1,5],[2,6],[3,7]]],p=[[[0,1,2,3],[4,5,6,7]],[[3,7,4,0],[1,5,6,2]],[[0,1,5,4],[2,6,7,3]]],a=[[[0,1],[0,4],[0,3],[1,5],[1,2]],[[0,4],[0,1],[0,3],[4,5],[4,7]],[[0,3],[0,1],[0,4],[2,3],[3,7]],[[1,2],[0,1],[1,5],[2,3],[2,6]],[[1,5],[0,1],[1,2],[4,5],[5,6]],[[4,5],[1,5],[5,6],[0,4],[4,7]],[[5,6],[1,5],[4,5],[2,6],[6,7]],[[2,6],[6,5],[6,7],[1,2],[2,3]],[[2,3],[1,2],[2,6],[0,3],[3,7]],[[3,7],[2,3],[0,3],[4,7],[6,7]],[[4,7],[0,4],[4,5],[7,3],[6,7]],[[6,7],[2,6],[6,5],[7,3],[4,7]]],c=[[[0,1,2,3],[1,5,6,2],[2,6,7,3],[3,7,4,0],[0,1,5,4]],[[1,5,6,2],[0,1,2,3],[2,6,7,3],[4,5,6,7],[0,1,5,4]],[[0,1,5,4],[1,5,6,2],[4,5,6,7],[3,7,4,0],[0,1,2,3]],[[4,5,6,7],[0,1,5,4],[1,5,6,2],[2,6,7,3],[3,7,4,0]],[[3,7,4,0],[0,1,2,3],[0,1,5,4],[4,5,6,7],[2,6,7,3]],[[2,6,7,3],[0,1,2,3],[1,5,6,2],[4,5,6,7],[3,7,4,0]]],Y=[[0,1,2,3],[1,5,6,2],[2,6,7,3],[3,7,4,0],[0,1,5,4],[4,5,6,7]];let s,l,r,J,K;switch(S[C]){case 1:[s,l,r]=[A(0,2),A(0,3),A(0,1)],B+=this.interactif?`Among the proposed edges, cite all those parallel to [$${o[$[s][l][r]]+o[$[s][l][(r+1)%2]]}$].<br>`:`Quote all edges parallel to [$${o[$[s][l][r]]+o[$[s][l][(r+1)%2]]}$].<br>`,q=`The edges parallel to [$${o[$[s][l][r]]+o[$[s][l][(r+1)%2]]}$] are [$${o[$[s][(l+1)%4][r]]+o[$[s][(l+1)%4][(r+1)%2]]}$], [$${o[$[s][(l+2)%4][r]]+o[$[s][(l+2)%4][(r+1)%2]]}$] and [$${o[$[s][(l+3)%4][r]]+o[$[s][(l+3)%4][(r+1)%2]]}$].<br>`,P=[`[$${o[$[s][(l+1)%4][r]]+o[$[s][(l+1)%4][(r+1)%2]]}$]`,`[$${o[$[s][(l+2)%4][r]]+o[$[s][(l+2)%4][(r+1)%2]]}$]`,`[$${o[$[s][(l+3)%4][r]]+o[$[s][(l+3)%4][(r+1)%2]]}$]`],y=[];for(let t=0;t<3;t++)if(t!==s)for(let D=0;D<4;D++)y.push(`[$${o[$[t][D][r]]+o[$[t][D][(r+1)%2]]}$]`);break;case 2:[s,l,r]=[A(0,2),A(0,1),A(0,3)],B+=`What is the face parallel to $${o[p[s][l][r]]+o[p[s][l][(r+1)%4]]+o[p[s][l][(r+2)%4]]+o[p[s][l][(r+3)%4]]}$?<br>`,q=`The face parallel to $${o[p[s][l][r]]+o[p[s][l][(r+1)%4]]+o[p[s][l][(r+2)%4]]+o[p[s][l][(r+3)%4]]}$ is the face $${o[p[s][(l+1)%2][r]]+o[p[s][(l+1)%2][(r+1)%4]]+o[p[s][(l+1)%2][(r+2)%4]]+o[p[s][(l+1)%2][(r+3)%4]]}$.<br>`,P=[`$${o[p[s][(l+1)%2][r]]+o[p[s][(l+1)%2][(r+1)%4]]+o[p[s][(l+1)%2][(r+2)%4]]+o[p[s][(l+1)%2][(r+3)%4]]}$`],y=[];for(let t=0;t<3;t++)if(t!==s)for(let D=0;D<2;D++)y.push(`$${o[p[t][D][r]]+o[p[t][D][(r+1)%4]]+o[p[t][D][(r+2)%4]]+o[p[t][D][(r+3)%4]]}$`);break;case 3:[s,l,r]=[A(0,11),0,A(0,1)],B+=this.interactif?`Among the proposed edges, cite all those perpendicular to the edge [$${o[a[s][l][r]]+o[a[s][l][(r+1)%2]]}$].<br>`:`What are the edges perpendicular to the edge [$${o[a[s][l][r]]+o[a[s][l][(r+1)%2]]}$]?<br>`,q=`The edges perpendicular to edge [$${o[a[s][l][r]]+o[a[s][l][(r+1)%2]]}$] are [$${o[a[s][1][r]]+o[a[s][1][(r+1)%2]]}$], [$${o[a[s][2][r]]+o[a[s][2][(r+1)%2]]}$], [$${o[a[s][3][r]]+o[a[s][3][(r+1)%2]]}$] and [$${o[a[s][4][r]]+o[a[s][4][(r+1)%2]]}$].`,P=[`[$${o[a[s][1][r]]+o[a[s][1][(r+1)%2]]}$]`,`[$${o[a[s][2][r]]+o[a[s][2][(r+1)%2]]}$]`,`[$${o[a[s][3][r]]+o[a[s][3][(r+1)%2]]}$]`,`[$${o[a[s][4][r]]+o[a[s][4][(r+1)%2]]}$]`],y=[];for(let t=0;t<3;t++)if(t!==s)for(let D=1;D<5;D++)K=`[$${o[a[t][D][r]]+o[a[t][D][(r+1)%2]]}$]`,P.indexOf(K)===-1&&K!==`[$${o[a[s][l][r]]+o[a[s][l][(r+1)%2]]}$]`&&y.push(K);break;case 4:[s,l,r]=[A(0,5),0,A(0,3)],B+=`What are the faces perpendicular to the face $${o[c[s][l][r]]+o[c[s][l][(r+1)%4]]+o[c[s][l][(r+2)%4]]+o[c[s][l][(r+3)%4]]}$?<br>`,q=`Faces perpendicular to face $${o[c[s][l][r]]+o[c[s][l][(r+1)%4]]+o[c[s][l][(r+2)%4]]+o[c[s][l][(r+3)%4]]}$`,q+=`are the faces $${o[c[s][l+1][r]]+o[c[s][l+1][(r+1)%4]]+o[c[s][l+1][(r+2)%4]]+o[c[s][l+1][(r+3)%4]]}$,`,q+=`$${o[c[s][l+2][r]]+o[c[s][l+2][(r+1)%4]]+o[c[s][l+2][(r+2)%4]]+o[c[s][l+2][(r+3)%4]]}$,`,q+=`$${o[c[s][l+3][r]]+o[c[s][l+3][(r+1)%4]]+o[c[s][l+3][(r+2)%4]]+o[c[s][l+3][(r+3)%4]]}$ and`,q+=`$${o[c[s][l+4][r]]+o[c[s][l+4][(r+1)%4]]+o[c[s][l+4][(r+2)%4]]+o[c[s][l+4][(r+3)%4]]}$.`,P=[];for(let t=1;t<5;t++)P.push(`$${o[c[s][l+t][r]]+o[c[s][l+t][(r+1)%4]]+o[c[s][l+t][(r+2)%4]]+o[c[s][l+t][(r+3)%4]]}$`);y=[];for(let t=0;t<6;t++)J=`$${o[Y[t][r]]+o[Y[t][(r+1)%4]]+o[Y[t][(r+2)%4]]+o[Y[t][(r+3)%4]]}$`,P.indexOf(J)===-1&&J!==`$${o[c[s][l][r]]+o[c[s][l][(r+1)%4]]+o[c[s][l][(r+2)%4]]+o[c[s][l][(r+3)%4]]}$`&&y.push(J);break}switch(se[C]%2){case 1:h=L(6,0,o[0],"left"),k=L(11,0,o[1],"right"),Q=L(11,5,o[2],"right"),N=L(6,5,o[3],"left"),X=le(h,k,Q,N),n=ie(k,h,ee,R,o[4],"left"),n.x=Math.round(n.x),n.y=Math.round(n.y);break;case 0:h=L(5,0,o[0],"left"),k=L(9+A(1,3),0,o[1],"right"),Q=L(k.x,A(3,7),o[2],"right"),N=L(h.x,Q.y,o[3],"left"),X=le(h,k,Q,N),n=ie(k,h,ee,R*A(5,12)/10,o[4],"left"),n.x=Math.round(n.x),n.y=Math.round(n.y);break}X=le(h,k,Q,N),H=re(n,h,k,o[5],"right"),j=re(H,k,Q,o[6],"right"),G=re(j,Q,N,o[7],"left"),T=E(h,k,"black"),F=E(k,Q,"black"),M=E(Q,N,"black"),w=E(N,h,"black"),i=E(n,H,"black"),u=E(H,j,"black"),b=E(j,G,"black"),f=E(G,n,"black"),g=E(h,n,"black"),x=E(k,H,"black"),m=E(Q,j,"black"),d=E(N,G,"black"),T.epaisseur=2,F.epaisseur=2,M.epaisseur=2,w.epaisseur=2,i.epaisseur=2,u.epaisseur=2,b.epaisseur=2,f.epaisseur=2,g.epaisseur=2,x.epaisseur=2,m.epaisseur=2,d.epaisseur=2,j.y<Q.y&&j.x<Q.x?(m.pointilles=5,m.color=e("gray"),m.opacite=.7,b.pointilles=5,b.color=e("gray"),b.opacite=.7,u.pointilles=5,u.color=e("gray"),u.opacite=.7):n.y>h.y&&n.x>h.x?(g.pointilles=5,i.pointilles=5,f.pointilles=5,g.color=e("gray"),i.color=e("gray"),f.color=e("gray"),g.opacite=.7,i.opacite=.7,f.opacite=.7):H.x<k.x&&H.y>k.y?(x.pointilles=5,u.pointilles=5,i.pointilles=5,x.color=e("gray"),u.color=e("gray"),i.color=e("gray"),x.opacite=.7,u.opacite=.7,i.opacite=.7):G.x>N.x&&G.y<N.y&&(d.pointilles=5,b.pointilles=5,f.pointilles=5,d.color=e("gray"),b.color=e("gray"),f.color=e("gray"),d.opacite=.7,b.opacite=.7,f.opacite=.7),W=Math.min(h.x,n.x)-1,O=Math.min(h.y,n.y)-1,v=Math.max(k.x,H.x)+2,I=Math.max(N.y,G.y)+1,te=20,z=this.sup2<3?Ce(W,O,v,I,"gray",.7):ue(),V=this.sup2===2?Pe(W,O,v,I):ue(),U.push(T,F,M,w,i,u,b,f,g,x,m,d,be(h,k,Q,N,n,H,j,G),X,z,V);const ae={xmin:W,ymin:O,xmax:v,ymax:I,pixelsParCm:te,scale:$e};switch(B+=fe(ae,U),S[C]){case 1:switch(s){case 0:T.color=l===0?e("blue"):e("#f15929"),M.color=l===1?e("blue"):e("#f15929"),i.color=l===2?e("blue"):e("#f15929"),b.color=l===3?e("blue"):e("#f15929");break;case 1:F.color=l===1?e("blue"):e("#f15929"),w.color=l===0?e("blue"):e("#f15929"),u.color=l===3?e("blue"):e("#f15929"),f.color=l===2?e("blue"):e("#f15929");break;case 2:x.color=l===1?e("blue"):e("#f15929"),m.color=l===2?e("blue"):e("#f15929"),d.color=l===3?e("blue"):e("#f15929"),g.color=l===0?e("blue"):e("#f15929");break}break;case 2:switch(s){case 0:T.color=l!==0?e("#f15929"):e("blue"),F.color=l!==0?e("#f15929"):e("blue"),M.color=l!==0?e("#f15929"):e("blue"),w.color=l!==0?e("#f15929"):e("blue"),i.color=l===0?e("#f15929"):e("blue"),u.color=l===0?e("#f15929"):e("blue"),b.color=l===0?e("#f15929"):e("blue"),f.color=l===0?e("#f15929"):e("blue");break;case 1:d.color=l!==0?e("#f15929"):e("blue"),f.color=l!==0?e("#f15929"):e("blue"),g.color=l!==0?e("#f15929"):e("blue"),w.color=l!==0?e("#f15929"):e("blue"),x.color=l===0?e("#f15929"):e("blue"),u.color=l===0?e("#f15929"):e("blue"),m.color=l===0?e("#f15929"):e("blue"),F.color=l===0?e("#f15929"):e("blue");break;case 2:T.color=l!==0?e("#f15929"):e("blue"),x.color=l!==0?e("#f15929"):e("blue"),i.color=l!==0?e("#f15929"):e("blue"),g.color=l!==0?e("#f15929"):e("blue"),m.color=l===0?e("#f15929"):e("blue"),b.color=l===0?e("#f15929"):e("blue"),d.color=l===0?e("#f15929"):e("blue"),M.color=l===0?e("#f15929"):e("blue");break}break;case 3:switch(s){case 0:T.color=e("blue"),g.color=e("#f15929"),w.color=e("#f15929"),x.color=e("#f15929"),F.color=e("#f15929");break;case 1:g.color=e("blue"),T.color=e("#f15929"),w.color=e("#f15929"),i.color=e("#f15929"),f.color=e("#f15929");break;case 2:w.color=e("blue"),T.color=e("#f15929"),g.color=e("#f15929"),M.color=e("#f15929"),d.color=e("#f15929");break;case 3:F.color=e("blue"),T.color=e("#f15929"),x.color=e("#f15929"),M.color=e("#f15929"),m.color=e("#f15929");break;case 4:x.color=e("blue"),T.color=e("#f15929"),F.color=e("#f15929"),i.color=e("#f15929"),u.color=e("#f15929");break;case 5:i.color=e("blue"),x.color=e("#f15929"),u.color=e("#f15929"),g.color=e("#f15929"),f.color=e("#f15929");break;case 6:u.color=e("blue"),x.color=e("#f15929"),i.color=e("#f15929"),m.color=e("#f15929"),b.color=e("#f15929");break;case 7:m.color=e("blue"),u.color=e("#f15929"),b.color=e("#f15929"),F.color=e("#f15929"),M.color=e("#f15929");break;case 8:M.color=e("blue"),F.color=e("#f15929"),m.color=e("#f15929"),w.color=e("#f15929"),d.color=e("#f15929");break;case 9:d.color=e("blue"),M.color=e("#f15929"),w.color=e("#f15929"),f.color=e("#f15929"),b.color=e("#f15929");break;case 10:f.color=e("blue"),g.color=e("#f15929"),i.color=e("#f15929"),d.color=e("#f15929"),b.color=e("#f15929");break;case 11:b.color=e("blue"),m.color=e("#f15929"),u.color=e("#f15929"),d.color=e("#f15929"),f.color=e("#f15929");break}break;case 4:switch(T.color=e("#f15929"),F.color=e("#f15929"),M.color=e("#f15929"),w.color=e("#f15929"),i.color=e("#f15929"),u.color=e("#f15929"),b.color=e("#f15929"),f.color=e("#f15929"),g.color=e("#f15929"),x.color=e("#f15929"),m.color=e("#f15929"),d.color=e("#f15929"),s){case 0:T.color=e("blue"),F.color=e("blue"),M.color=e("blue"),w.color=e("blue");break;case 1:x.color=e("blue"),u.color=e("blue"),m.color=e("blue"),F.color=e("blue");break;case 2:T.color=e("blue"),x.color=e("blue"),i.color=e("blue"),g.color=e("blue");break;case 3:i.color=e("blue"),u.color=e("blue"),b.color=e("blue"),f.color=e("blue");break;case 4:d.color=e("blue"),f.color=e("blue"),g.color=e("blue"),w.color=e("blue");break;case 5:m.color=e("blue"),b.color=e("blue"),d.color=e("blue"),M.color=e("blue");break}break}Z.push(T,F,M,w,i,u,b,f,g,x,m,d,be(h,k,Q,N,n,H,j,G),z,V),q+=fe(ae,Z),(this.interactif||xe.isAmc)&&(P=oe(P,P.length),y=me(y),y=oe(y,y.length),this.autoCorrection[C]={},this.autoCorrection[C].enonce=B,this.autoCorrection[C].propositions=[{texte:P[0],statut:!0},{texte:P.length>1?P[1]:y[3],statut:P.length>1},{texte:y[0],statut:!1},{texte:S[C]===4?P[2]:y[1],statut:S[C]===4},{texte:S[C]===4?P[3]:y[2],statut:S[C]===4}],B+=de(this,C).texte),this.questionJamaisPosee(C,B,s,l,r)&&(this.listeQuestions.push(B+"<br>"),this.listeCorrections.push(q+"<br>"),C++),ce++}ye(this)},this.besoinFormulaireNumerique=["Type of solids",3,` 1: Cubes
2: Straight blocks
3: Mix`],this.besoinFormulaire2Numerique=["Notebook type",3,`1: Notebook with small squares
2: Notebook with large squares (Seyes)
3: Blank sheet`],this.besoinFormulaire3Texte=["Type of questions",`Numbers separated by hyphens
1: Parallel edges
2: Parallel faces
3: Perpendicular edges
4: Perpendicular faces
5: Blend`]}export{Te as dateDeModifImportante,Fe as default};
//# sourceMappingURL=_Solide_6e-MAPVNiBe.js.map