From 663c10a8c312eea3a5ddabb55d749df4804e0508 Mon Sep 17 00:00:00 2001 From: Tady Date: Sun, 15 Oct 2017 02:32:29 +0300 Subject: [PATCH] v.1.9.0 --- js/pptxjs.js | 5456 +++++++++++++++++++++++++++++++++++++++++----- js/pptxjs.min.js | 10 +- 2 files changed, 4925 insertions(+), 541 deletions(-) diff --git a/js/pptxjs.js b/js/pptxjs.js index 7581d62..4ac43f3 100644 --- a/js/pptxjs.js +++ b/js/pptxjs.js @@ -1,6 +1,6 @@ /** * pptxjs.js - * Ver. : 1.1.0 + * Ver. : 1.9.0 * Author: meshesha , https://github.com/meshesha * LICENSE: MIT * url:https://github.com/meshesha/PPTXjs @@ -252,7 +252,13 @@ } function readXmlFile(zip, filename) { - return tXml(zip.file(filename).asText()); + var xmlData = tXml(zip.file(filename).asText(),{simplify:1}); + if(xmlData["?xml"] !== undefined){ + return xmlData["?xml"]; + }else{ + return xmlData; + } + } function getContentTypes(zip) { var ContentTypesJson = readXmlFile(zip, "[Content_Types].xml"); @@ -651,9 +657,9 @@ var txtXframeRot = getTextByPathList(txtXframeNode,["attrs","rot"]); if (txtXframeRot !== undefined){ txtRotate = angleToDegrees(txtXframeRot)+90; - }else{ - txtRotate = rotate; } + }else{ + txtRotate = rotate; } ////////////////////////////////////////////////// if (shapType !== undefined || custShapType !== undefined) { @@ -693,7 +699,14 @@ //console.log(svgBgImg) result += svgBgImg ; }else{ - if(clrFillType != "SOLID_FILL" && clrFillType != "PATTERN_FILL" && shapType == "arc"){ //Temp solution for arc shape - TODO + if(clrFillType != "SOLID_FILL" && clrFillType != "PATTERN_FILL" && + (shapType == "arc" || + shapType == "bracketPair" || + shapType == "bracePair" || + shapType == "leftBracket" || + shapType == "leftBrace" || + shapType == "rightBrace" || + shapType == "rightBracket")){ //Temp solution for arc shape - TODO fillColor = "none"; } } @@ -715,249 +728,1015 @@ if (shapType !== undefined && custShapType === undefined) { switch (shapType) { - case "accentBorderCallout1": - case "accentBorderCallout2": - case "accentBorderCallout3": - case "accentCallout1": - case "accentCallout2": - case "accentCallout3": - case "actionButtonBackPrevious": - case "actionButtonBeginning": - case "actionButtonBlank": - case "actionButtonDocument": - case "actionButtonEnd": - case "actionButtonForwardNext": - case "actionButtonHelp": - case "actionButtonHome": - case "actionButtonInformation": - case "actionButtonMovie": - case "actionButtonReturn": - case "actionButtonSound": - case "bevel": - case "blockArc": - case "borderCallout1": - case "borderCallout2": - case "borderCallout3": - case "bracePair": - case "bracketPair": - case "callout1": - case "callout2": - case "callout3": - case "can": case "chartPlus": case "chartStar": case "chartX": - case "chevron": - case "chord": case "cloud": case "cloudCallout": - case "corner": case "cornerTabs": - case "cube": - case "diagStripe": - case "donut": - case "doubleWave": - case "downArrowCallout": - case "ellipseRibbon": - case "ellipseRibbon2": - case "flowChartAlternateProcess": - case "flowChartCollate": - case "flowChartConnector": - case "flowChartDecision": - case "flowChartDelay": - case "flowChartDisplay": - case "flowChartDocument": - case "flowChartExtract": - case "flowChartInputOutput": - case "flowChartInternalStorage": - case "flowChartMagneticDisk": - case "flowChartMagneticDrum": - case "flowChartMagneticTape": - case "flowChartManualInput": - case "flowChartManualOperation": - case "flowChartMerge": - case "flowChartMultidocument": case "flowChartOfflineStorage": - case "flowChartOffpageConnector": - case "flowChartOnlineStorage": - case "flowChartOr": - case "flowChartPredefinedProcess": - case "flowChartPreparation": - case "flowChartProcess": - case "flowChartPunchedCard": - case "flowChartPunchedTape": - case "flowChartSort": - case "flowChartSummingJunction": - case "flowChartTerminator": case "folderCorner": - case "frame": case "funnel": - case "halfFrame": - case "heart": - case "homePlate": - case "horizontalScroll": - case "irregularSeal1": - case "irregularSeal2": - case "leftArrowCallout": - case "leftBrace": - case "leftBracket": - case "leftRightArrowCallout": case "leftRightRibbon": - case "irregularSeal1": - case "lightningBolt": case "lineInv": - case "mathDivide": - case "mathEqual": - case "mathMinus": - case "mathMultiply": - case "mathNotEqual": - case "mathPlus": - case "moon": case "nonIsoscelesTrapezoid": - case "noSmoking": - case "plaque": case "plaqueTabs": - case "quadArrowCallout": - case "rect": - case "ribbon": - case "ribbon2": - case "rightArrowCallout": - case "rightBrace": - case "rightBracket": - case "round1Rect": - case "round2DiagRect": - case "round2SameRect": - case "smileyFace": - case "snip1Rect": - case "snip2DiagRect": - case "snip2SameRect": - case "snipRoundRect": case "squareTabs": - case "sun": - case "teardrop": - case "upArrowCallout": case "upDownArrowCallout": - case "verticalScroll": - case "wave": - case "wedgeEllipseCallout": - case "wedgeRectCallout": - case "wedgeRoundRectCallout": + case "circularArrow": + case "rect": + case "flowChartProcess": + case "flowChartPredefinedProcess": + case "flowChartInternalStorage": + case "actionButtonBlank": + if( shapType != "rect" && + shapType != "flowChartProcess" && + shapType != "flowChartPredefinedProcess" && + shapType != "actionButtonBlank" && + shapType != "flowChartInternalStorage"){ + console.log("shapType: ",shapType) + } result += ""; + + if(shapType == "flowChartPredefinedProcess"){ + result += ""; + }else if(shapType == "flowChartInternalStorage"){ + result += " "; + result += " "; + } break; - case "ellipse": - result += ""; + case "flowChartCollate": + var d = "M 0,0"+ + " L" + w + "," + 0 + + " L" + 0 + "," + h + + " L" + w + "," + h + + " z"; + result += ""; + break; - case "roundRect": - result += ""; + case "flowChartDocument": + var y1, y2,y3,x1; + x1 = w*10800/21600; + y1 = h*17322/21600; + y2 = h*20172/21600; + y3 = h*23922/21600; + var d = "M" + 0+ "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + y1 + + " C" + x1 + "," + y1 + " " + x1 + "," + y3 + " " + 0 + "," + y2 + + " z"; + result += ""; break; - case "bentConnector2": - var d = ""; - if (isFlipV) { - d = "M 0 " + w + " L " + h + " " + w + " L " + h + " 0"; - } else { - d = "M " + w + " 0 L " + w + " " + h + " L 0 " + h; - } - result += ""; break; - case "rtTriangle": - result += " "; + break; - case "triangle": - var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); - var shapAdjst_val = 0.5; - if(shapAdjst !== undefined){ - shapAdjst_val = parseInt(shapAdjst.substr(4)) * 96 / 9144000; - //console.log("w: "+w+"\nh: "+h+"\nshapAdjst: "+shapAdjst+"\nshapAdjst_val: "+shapAdjst_val); - } - result += " "; + case "actionButtonBeginning": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, g11, g12, g13, g14, g15, g16, g17; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + g11 = hc-dx2; + g12 = hc+dx2; + g13 = ss*3/4; + g14 = g13/8; + g15 = g13/4; + g16 = g11+g14; + g17 = g11+g15; + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + "M" + g17 + "," + vc + + " L" + g12 + "," + g9 + + " L" + g12 + "," + g10 + + " z" + + "M" + g16 + "," + g9 + + " L" + g11 + "," + g9 + + " L" + g11 + "," + g10 + + " L" + g16 + "," + g10 + + " z"; + + result += ""; + break; - case "diamond": - result += " "; + case "actionButtonDocument": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, dx1, g11, g12, g13, g14, g15; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + dx1 = ss*9/32; + g11 = hc-dx1; + g12 = hc+dx1; + g13 = ss*3/16; + g14 = g12-g13; + g15 = g9+g13; + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" +0 + "," + h + + " z" + + "M" + g11 + "," + g9 + + " L" + g14 + "," + g9 + + " L" + g12 + "," + g15 + + " L" + g12 + "," + g10 + + " L" + g11 + "," + g10 + + " z" + + "M" + g14 + "," + g9 + + " L" + g14 + "," + g15 + + " L" + g12 + "," + g15 + + " z"; + + result += ""; + break; - case "trapezoid": - var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); - var adjst_val = 0.25; - var max_adj_const = 0.7407; - if(shapAdjst !== undefined){ - var adjst = parseInt(shapAdjst.substr(4)) * 96 / 9144000; - adjst_val = (adjst*0.5)/max_adj_const; - // console.log("w: "+w+"\nh: "+h+"\nshapAdjst: "+shapAdjst+"\nadjst_val: "+adjst_val); - } - result += " "; + case "actionButtonEnd": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, g11, g12, g13, g14, g15, g16, g17; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + g11 = hc-dx2; + g12 = hc+dx2; + g13 = ss*3/4; + g14 = g13*3/4; + g15 = g13*7/8; + g16 = g11+g14; + g17 = g11+g15; + var d = "M" + 0 + "," + h + + " L" + w + "," + h + + " L" + w + "," + 0 + + " L" + 0 + "," + 0 + + " z" + + " M" + g17 + "," + g9 + + " L" + g12 + "," + g9 + + " L" + g12 + "," + g10 + + " L" + g17 + "," + g10 + + " z" + + " M" + g16 + "," + vc + + " L" + g11 + "," + g9 + + " L" + g11 + "," + g10 + + " z"; + + result += ""; + break; - case "parallelogram": - var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); - var adjst_val = 0.25; - var max_adj_const; - if(w > h){ - max_adj_const = w/h; - }else{ - max_adj_const = h/w; - } - if(shapAdjst !== undefined){ - var adjst = parseInt(shapAdjst.substr(4)) /100000; - adjst_val = adjst/max_adj_const; - //console.log("w: "+w+"\nh: "+h+"\nadjst: "+adjst_val+"\nmax_adj_const: "+max_adj_const); - } - result += " "; + case "actionButtonForwardNext": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, g11, g12; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + g11 = hc-dx2; + g12 = hc+dx2; + + var d = "M" + 0 + "," + h + + " L" + w + "," + h + + " L" + w + "," + 0 + + " L" + 0 + "," + 0 + + " z" + + " M" + g12 + "," + vc + + " L" + g11 + "," + g9 + + " L" + g11 + "," + g10 + + " z"; + + result += ""; + break; + case "actionButtonHelp": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g11, g13, g14, g15, g16, g19, g20, g21, g23, g24, g27, g29, g30, g31, g33, g36, g37, g41, g42; + + dx2 = ss*3/8; + g9 = vc-dx2; + g11 = hc-dx2; + g13 = ss*3/4; + g14 = g13/7; + g15 = g13*3/14; + g16 = g13*2/7; + g19 = g13*3/7; + g20 = g13*4/7; + g21 = g13*17/28; + g23 = g13*21/28; + g24 = g13*11/14; + g27 = g9+g16; + g29 = g9+g21; + g30 = g9+g23; + g31 = g9+g24; + g33 = g11+g15; + g36 = g11+g19; + g37 = g11+g20; + g41 = g13/14; + g42 = g13*3/28; + var cX1 = g33 + g16; + var cX2 = g36 + g14; + var cY3 = g31 + g42; + var cX4 = (g37+g36+g16)/2; + + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + "M" + g33 + "," + g27+ + shapeArc(cX1,g27,g16,g16,180,360,false).replace("M","L") + + shapeArc(cX4,g27,g14,g15,0,90,false).replace("M","L") + + shapeArc(cX4,g29,g41,g42,270,180,false).replace("M","L") + + " L" + g37 + "," + g30 + + " L" + g36 + "," + g30 + + " L" + g36 + "," + g29 + + shapeArc(cX2,g29,g14,g15,180,270,false).replace("M","L") + + shapeArc(g37,g27,g41,g42,90,0,false).replace("M","L") + + shapeArc(cX1,g27,g14,g14,0,-180,false).replace("M","L") + + " z" + + "M" + hc + "," + g31 + + shapeArc(hc,cY3,g42,g42,270,630,false).replace("M","L") + + " z"; + result += ""; + break; - case "pentagon": - result += " "; + case "actionButtonHome": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, g11, g12, g13, g14, g15, g16, g17, g18, g19, g20, g21, g22, g23, g24, g25, g26, g27, g28, g29, g30, g31, g32, g33; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + g11 = hc-dx2; + g12 = hc+dx2; + g13 = ss*3/4; + g14 = g13/16; + g15 = g13/8; + g16 = g13*3/16; + g17 = g13*5/16; + g18 = g13*7/16; + g19 = g13*9/16; + g20 = g13*11/16; + g21 = g13*3/4; + g22 = g13*13/16; + g23 = g13*7/8; + g24 = g9+g14; + g25 = g9+g16; + g26 = g9+g17; + g27 = g9+g21; + g28 = g11+g15; + g29 = g11+g18; + g30 = g11+g19; + g31 = g11+g20; + g32 = g11+g22; + g33 = g11+g23; + + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + " M" + hc + "," + g9 + + " L" + g11 + "," + vc + + " L" + g28 + "," + vc + + " L" + g28 + "," + g10 + + " L" + g33 + "," + g10 + + " L" + g33 + "," + vc + + " L" + g12 + "," + vc + + " L" + g32 + "," + g26 + + " L" + g32 + "," + g24 + + " L" + g31 + "," + g24 + + " L" + g31 + "," + g25 + + " z" + + " M" + g29 + "," + g27 + + " L" + g30 + "," + g27 + + " L" + g30 + "," + g10 + + " L" + g29 + "," + g10 + + " z"; + + result += ""; + break; - case "hexagon": - var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var shapAdjst = undefined; - for(var i=0; i"; + case "actionButtonInformation": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g11, g13, g14, g17, g18, g19, g20, g22, g23, g24, g25, g28, g29, g30, g31, g32, g34, g35, g37, g38; + + dx2 = ss*3/8; + g9 = vc-dx2; + g11 = hc-dx2; + g13 = ss*3/4; + g14 = g13/32; + g17 = g13*5/16; + g18 = g13*3/8; + g19 = g13*13/32; + g20 = g13*19/32; + g22 = g13*11/16; + g23 = g13*13/16; + g24 = g13*7/8; + g25 = g9+g14; + g28 = g9+g17; + g29 = g9+g18; + g30 = g9+g23; + g31 = g9+g24; + g32 = g11+g17; + g34 = g11+g19; + g35 = g11+g20; + g37 = g11+g22; + g38 = g13*3/32; + var cY1 = g9 + dx2; + var cY2 = g25 + g38; + + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + "M" + hc + "," + g9 + + shapeArc(hc,cY1,dx2,dx2,270,630,false).replace("M","L") + + " z" + + "M" + hc + "," + g25 + + shapeArc(hc,cY2,g38,g38,270,630,false).replace("M","L") + + "M" + g32 + "," + g28 + + " L" + g35 + "," + g28 + + " L" + g35 + "," + g30 + + " L" + g37 + "," + g30 + + " L" + g37 + "," + g31 + + " L" + g32 + "," + g31 + + " L" + g32 + "," + g30 + + " L" + g34 + "," + g30 + + " L" + g34 + "," + g29 + + " L" + g32 + "," + g29 + + " z"; + + result += ""; + break; - case "heptagon": - result += " "; + case "actionButtonMovie": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, g11, g12, g13, g14, g15, g16, g17, g18, g19, g20, g21, g22, g23, g24, g25, g26, g27, + g28, g29, g30, g31, g32, g33, g34, g35, g36, g37, g38, g39, g40, g41, g42, g43, g44, g45, g46, g47, g48; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + g11 = hc-dx2; + g12 = hc+dx2; + g13 = ss*3/4; + g14 = g13*1455/21600; + g15 = g13*1905/21600; + g16 = g13*2325/21600; + g17 = g13*16155/21600; + g18 = g13*17010/21600; + g19 = g13*19335/21600; + g20 = g13*19725/21600; + g21 = g13*20595/21600; + g22 = g13*5280/21600; + g23 = g13*5730/21600; + g24 = g13*6630/21600; + g25 = g13*7492/21600; + g26 = g13*9067/21600; + g27 = g13*9555/21600; + g28 = g13*13342/21600; + g29 = g13*14580/21600; + g30 = g13*15592/21600; + g31 = g11+g14; + g32 = g11+g15; + g33 = g11+g16; + g34 = g11+g17; + g35 = g11+g18; + g36 = g11+g19; + g37 = g11+g20; + g38 = g11+g21; + g39 = g9+g22; + g40 = g9+g23; + g41 = g9+g24; + g42 = g9+g25; + g43 = g9+g26; + g44 = g9+g27; + g45 = g9+g28; + g46 = g9+g29; + g47 = g9+g30; + g48 = g9+g31; + + var d = "M" + 0 + "," + h + + " L" + w + "," + h + + " L" + w + "," + 0 + + " L" + 0 + "," + 0 + + " z" + + "M" + g11 + "," + g39 + + " L" + g11 + "," + g44 + + " L" + g31 + "," + g44 + + " L" + g32 + "," + g43 + + " L" + g33 + "," + g43 + + " L" + g33 + "," + g47 + + " L" + g35 + "," + g47 + + " L" + g35 + "," + g45 + + " L" + g36 + "," + g45 + + " L" + g38 + "," + g46 + + " L" + g12 + "," + g46 + + " L" + g12 + "," + g41 + + " L" + g38 + "," + g41 + + " L" + g37 + "," + g42 + + " L" + g35 + "," + g42 + + " L" + g35 + "," + g41 + + " L" + g34 + "," + g40 + + " L" + g32 + "," + g40 + + " L" + g31 + "," + g39 + + " z"; + + result += ""; + break; - case "octagon": - var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); - var adj1 = 0.25; - if(shapAdjst !== undefined){ - adj1 = parseInt(shapAdjst.substr(4)) /100000; - - } - var adj2 = (1-adj1); - //console.log("adj1: "+adj1+"\nadj2: "+adj2); - result += " "; + + break; + case "actionButtonSound": + var hc = w/2, vc = h/2 , ss=Math.min(w,h); + var dx2, g9, g10, g11, g12, g13, g14, g15, g16, g17, g18, g19, g20, g21, g22, g23, g24, g25, g26; + + dx2 = ss*3/8; + g9 = vc-dx2; + g10 = vc+dx2; + g11 = hc-dx2; + g12 = hc+dx2; + g13 = ss*3/4; + g14 = g13/8; + g15 = g13*5/16; + g16 = g13*5/8; + g17 = g13*11/16; + g18 = g13*3/4; + g19 = g13*7/8; + g20 = g9+g14; + g21 = g9+g15; + g22 = g9+g17; + g23 = g9+g19; + g24 = g11+g15; + g25 = g11+g16; + g26 = g11+g18; + + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + " M" + g11 + "," + g21 + + " L" + g24 + "," + g21 + + " L" + g25 + "," + g9 + + " L" + g25 + "," + g10 + + " L" + g24 + "," + g22 + + " L" + g11 + "," + g22 + + " z" + + " M" + g26 + "," + g21 + + " L" + g12 + "," + g20 + + " M" + g26 + "," + vc + + " L" + g12 + "," + vc + + " M" + g26 + "," + g22 + + " L" + g12 + "," + g23; + + result += ""; + + break; + case "irregularSeal1": + case "irregularSeal2": + if(shapType == "irregularSeal1"){ + var d = "M" + w*10800/21600 + "," + h*5800/21600 + + " L" + w*14522/21600 + "," + 0 + + " L" + w*14155/21600 + "," + h*5325/21600 + + " L" + w*18380/21600 + "," + h*4457/21600 + + " L" + w*16702/21600 + "," + h*7315/21600 + + " L" + w*21097/21600 + "," + h*8137/21600 + + " L" + w*17607/21600 + "," + h*10475/21600 + + " L" + w + "," + h*13290/21600 + + " L" + w*16837/21600 + "," + h*12942/21600 + + " L" + w*18145/21600 + "," + h*18095/21600 + + " L" + w*14020/21600 + "," + h*14457/21600 + + " L" + w*13247/21600 + "," + h*19737/21600 + + " L" + w*10532/21600 + "," + h*14935/21600 + + " L" + w*8485/21600 + "," + h + + " L" + w*7715/21600 + "," + h*15627/21600 + + " L" + w*4762/21600 + "," + h*17617/21600 + + " L" + w*5667/21600 + "," + h*13937/21600 + + " L" + w*135/21600 + "," + h*14587/21600 + + " L" + w*3722/21600 + "," + h*11775/21600 + + " L" + 0 + "," + h*8615/21600 + + " L" + w*4627/21600 + "," + h*7617/21600 + + " L" + w*370/21600 + "," + h*2295/21600 + + " L" + w*7312/21600 + "," + h*6320/21600 + + " L" + w*8352/21600 + "," + h*2295/21600 + + " z"; + }else if(shapType == "irregularSeal2"){ + var d = "M" + w*11462/21600 + "," + h*4342/21600 + + " L" + w*14790/21600 + "," + 0 + + " L" + w*14525/21600 + "," + h*5777/21600 + + " L" + w*18007/21600 + "," + h*3172/21600 + + " L" + w*16380/21600 + "," + h*6532/21600 + + " L" + w + "," + h*6645/21600 + + " L" + w*16985/21600 + "," + h*9402/21600 + + " L" + w*18270/21600 + "," + h*11290/21600 + + " L" + w*16380/21600 + "," + h*12310/21600 + + " L" + w*18877/21600 + "," + h*15632/21600 + + " L" + w*14640/21600 + "," + h*14350/21600 + + " L" + w*14942/21600 + "," + h*17370/21600 + + " L" + w*12180/21600 + "," + h*15935/21600 + + " L" + w*11612/21600 + "," + h*18842/21600 + + " L" + w*9872/21600 + "," + h*17370/21600 + + " L" + w*8700/21600 + "," + h*19712/21600 + + " L" + w*7527/21600 + "," + h*18125/21600 + + " L" + w*4917/21600 + "," + h + + " L" + w*4805/21600 + "," + h*18240/21600 + + " L" + w*1285/21600 + "," + h*17825/21600 + + " L" + w*3330/21600 + "," + h*15370/21600 + + " L" + 0 + "," + h*12877/21600 + + " L" + w*3935/21600 + "," + h*11592/21600 + + " L" + w*1172/21600 + "," + h*8270/21600 + + " L" + w*5372/21600 + "," + h*7817/21600 + + " L" + w*4502/21600 + "," + h*3625/21600 + + " L" + w*8550/21600 + "," + h*6382/21600 + + " L" + w*9722/21600 + "," + h*1887/21600 + + " z"; + } + result += ""; + break; + case "flowChartTerminator": + var x1, x2, y1, cd2=180,cd4=90,c3d4=270; + x1 = w*3475/21600; + x2 = w*18125/21600; + y1 = h*10800/21600; + //path attrs: w = 21600; h = 21600; + var d = "M" + x1 + "," + 0 + + " L" + x2 + "," + 0 + + shapeArc(x2,h/2,x1,y1,c3d4,c3d4+cd2,false).replace("M","L") + + " L" + x1 + "," + h + + shapeArc(x1,h/2,x1,y1,cd4,cd4+cd2,false).replace("M","L") + + " z"; + result += ""; + break; + case "flowChartPunchedTape": + var x1, x1,y1,y2, cd2=180; + x1 = w*5/20; + y1 = h*2/20; + y2 = h*18/20; + var d = "M" + 0 + "," + y1 + + shapeArc(x1,y1,x1,y1,cd2,0,false).replace("M","L") + + shapeArc(w*(3/4),y1,x1,y1,cd2,360,false).replace("M","L") + + " L" + w + "," + y2 + + shapeArc(w*(3/4),y2,x1,y1,0,-cd2,false).replace("M","L") + + shapeArc(x1,y2,x1,y1,0,cd2,false).replace("M","L") + + " z"; + result += ""; + break; + case "flowChartOnlineStorage": + var x1, y1,c3d4=270,cd4=90; + x1 = w*1/6; + y1 = h*3/6; + var d = "M" + x1 + "," + 0 + + " L" + w + "," + 0 + + shapeArc(w,h/2,x1,y1,c3d4,90,false).replace("M","L") + + " L" + x1 + "," + h + + shapeArc(x1,h/2,x1,y1,cd4,270,false).replace("M","L") + + " z"; + result += ""; + break; + case "flowChartDisplay": + var x1, x2, y1,c3d4=270,cd2=180; + x1 = w*1/6; + x2 = w*5/6; + y1 = h*3/6; + //path attrs: w = 6; h = 6; + var d = "M" + 0 + "," + y1 + + " L" + x1 + "," + 0 + + " L" + x2 + "," + 0 + + shapeArc(w,h/2,x1,y1,c3d4,c3d4+cd2,false).replace("M","L") + + " L" + x1 + "," + h + + " z"; + result += ""; + break; + case "flowChartDelay": + var wd2=w/2,hd2=h/2, cd2=180 ,c3d4=270,cd4=90; + var d = "M" + 0 + "," + 0 + + " L" + wd2 + "," + 0 + + shapeArc(wd2,hd2,wd2,hd2,c3d4,c3d4+cd2,false).replace("M","L") + + " L" + 0 + "," + h + + " z"; + result += ""; + break; + case "flowChartMagneticTape": + var wd2=w/2,hd2=h/2, cd2=180 ,c3d4=270,cd4=90; + var idy,ib,ang1; + idy = hd2*Math.sin(Math.PI/4); + ib = hd2+idy; + ang1 = Math.atan(h/w); + var ang1Dg = ang1*180/Math.PI; + var d = "M" + wd2 + "," + h + + shapeArc(wd2,hd2,wd2,hd2,cd4,cd2,false).replace("M","L") + + shapeArc(wd2,hd2,wd2,hd2,cd2,c3d4,false).replace("M","L") + + shapeArc(wd2,hd2,wd2,hd2,c3d4,360,false).replace("M","L") + + shapeArc(wd2,hd2,wd2,hd2,0,ang1Dg,false).replace("M","L") + + " L" + w + "," + ib + + " L" + w + "," + h + + " z"; + result += ""; + break; + case "ellipse": + case "flowChartConnector": + case "flowChartSummingJunction": + case "flowChartOr": + result += ""; + if(shapType == "flowChartOr"){ + result += " "; + result += " "; + }else if(shapType == "flowChartSummingJunction"){ + var idx, idy, il, ir, it, ib , hc = w/2 , vc = h/2 ,wd2=w/2, hd2 = h/2 ; + var angVal = Math.PI/4; + idx = wd2*Math.cos(angVal); + idy = hd2*Math.sin(angVal); + il = hc-idx; + ir = hc+idx; + it = vc-idy; + ib = vc+idy; + result += " "; + result += " "; + } + break; + case "roundRect": + case "round1Rect": + case "round2DiagRect": + case "round2SameRect": + case "snip1Rect": + case "snip2DiagRect": + case "snip2SameRect": + case "flowChartAlternateProcess": + case "flowChartPunchedCard": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val;// = 0.33334; + var sAdj2,sAdj2_val;// = 0.33334; + var shpTyp, adjTyp; + if(shapAdjst_ary !== undefined && shapAdjst_ary.constructor === Array){ + for(var i=0; i"; + break; + case "snipRoundRect": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 0.33334; + var sAdj2,sAdj2_val = 0.33334; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + break; + case "bentConnector2": + var d = ""; + if (isFlipV) { + d = "M 0 " + w + " L " + h + " " + w + " L " + h + " 0"; + } else { + d = "M " + w + " 0 L " + w + " " + h + " L 0 " + h; + } + result += ""; + break; + case "triangle": + case "flowChartExtract": + case "flowChartMerge": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var shapAdjst_val = 0.5; + if(shapAdjst !== undefined){ + shapAdjst_val = parseInt(shapAdjst.substr(4)) * 96 / 9144000; + //console.log("w: "+w+"\nh: "+h+"\nshapAdjst: "+shapAdjst+"\nshapAdjst_val: "+shapAdjst_val); + } + var tranglRott = ""; + if(shapType == "flowChartMerge"){ + tranglRott = "transform='rotate(180 " + w/2 +"," + h/2 + ")'"; + } + result += " "; + break; + case "diamond": + case "flowChartDecision": + case "flowChartSort": + result += " "; + if(shapType == "flowChartSort"){ + result += " "; + } + break; + case "trapezoid": + case "flowChartManualOperation": + case "flowChartManualInput": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var adjst_val = 0.2; + var max_adj_const = 0.7407; + if(shapAdjst !== undefined){ + var adjst = parseInt(shapAdjst.substr(4)) * 96 / 9144000; + adjst_val = (adjst*0.5)/max_adj_const; + // console.log("w: "+w+"\nh: "+h+"\nshapAdjst: "+shapAdjst+"\nadjst_val: "+adjst_val); + } + var cnstVal = 0; + var tranglRott = ""; + if(shapType == "flowChartManualOperation"){ + tranglRott = "transform='rotate(180 " + w/2 +"," + h/2 + ")'"; + } + if(shapType == "flowChartManualInput"){ + adjst_val = 0; + cnstVal = h/5; + } + result += " "; + break; + case "parallelogram": + case "flowChartInputOutput": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var adjst_val = 0.25; + var max_adj_const; + if(w > h){ + max_adj_const = w/h; + }else{ + max_adj_const = h/w; + } + if(shapAdjst !== undefined){ + var adjst = parseInt(shapAdjst.substr(4)) /100000; + adjst_val = adjst/max_adj_const; + //console.log("w: "+w+"\nh: "+h+"\nadjst: "+adjst_val+"\nmax_adj_const: "+max_adj_const); + } + result += " "; + break; + + break; + case "pentagon": + result += " "; + break; + case "hexagon": + case "flowChartPreparation": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 25000*96/914400; + var vf = 115470*96/914400;; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var angVal1 = 60*Math.PI/180; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var maxAdj, a, shd2, x1, x2, dy1, y1, y2 , vc = h/2 ,hd2=h/2; + var ss = Math.min(w,h); + maxAdj = cnstVal1*w/ss; + a = (adj<0)?0:(adj>maxAdj)?maxAdj:adj; + shd2 = hd2*vf/cnstVal2; + x1 = ss*a/cnstVal2; + x2 = w-x1; + dy1 = shd2*Math.sin(angVal1); + y1 = vc-dy1; + y2 = vc+dy1; + + var d = "M" + 0 + "," + vc + + " L" + x1 + "," + y1 + + " L" + x2 + "," + y1 + + " L" + w + "," + vc + + " L" + x2 + "," + y2 + + " L" + x1 + "," + y2 + + " z"; + + result += ""; + break; + case "heptagon": + result += " "; + break; + case "octagon": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var adj1 = 0.25; + if(shapAdjst !== undefined){ + adj1 = parseInt(shapAdjst.substr(4)) /100000; + + } + var adj2 = (1-adj1); + //console.log("adj1: "+adj1+"\nadj2: "+adj2); + result += " "; @@ -1041,8 +1820,8 @@ H = 2*h; isClose = true; }else if(shapType == "arc"){ - adj1 = 0; - adj2 = 270; + adj1 = 270; + adj2 = 0; H = h; isClose = false; } @@ -1065,242 +1844,3957 @@ result += ""; break; - case "gear6": - case "gear9": - txtRotate = 0; - var gearNum = shapType.substr(4) , d; - if(gearNum == "6"){ - d = shapeGear(w,h/3.5,parseInt(gearNum)); - }else{ //gearNum=="9" - d = shapeGear(w,h/3.5,parseInt(gearNum)); + case "chord": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 45; + var sAdj2,sAdj2_val = 270; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; break; - case "bentConnector3": - var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); - //console.log("isFlipV: "+String(isFlipV)+"\nshapAdjst: "+shapAdjst) - var shapAdjst_val = 0.5; + case "frame": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj1 = 12500*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; if(shapAdjst !== undefined){ - shapAdjst_val = parseInt(shapAdjst.substr(4)) /100000; - //console.log("isFlipV: "+String(isFlipV)+"\nshapAdjst: "+shapAdjst+"\nshapAdjst_val: "+shapAdjst_val); - if(isFlipV){ - result += " cnstVal1) a1 = cnstVal1 + else a1 = adj1 + x1 = Math.min(w,h)*a1/cnstVal2; + x4 = w - x1; + y4 = h - x1; + var d = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + "M" + x1 + "," + x1 + + " L" + x1 + "," + y4 + + " L" + x4 + "," + y4 + + " L" + x4 + "," + x1 + + " z"; + result += ""; break; - case "plus": - var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); - var adj1 = 0.25; + case "donut": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; if(shapAdjst !== undefined){ - adj1 = parseInt(shapAdjst.substr(4)) /100000; - + adj = parseInt(shapAdjst.substr(4))*96/914400; } - var adj2 = (1-adj1); - result += " "; - //console.log((!imgFillFlg?(grndFillFlg?"url(#linGrd_"+shpId+")":fillColor):"url(#imgPtrn_"+shpId+")")) + var a,dr,iwd2,ihd2; + if(adj < 0) a = 0 + else if (adj > cnstVal1) a = cnstVal1 + else a = adj + dr = Math.min(w,h)*a/cnstVal2; + iwd2 = w/2 - dr; + ihd2 = h/2 - dr; + var d = "M" + 0 + "," + h/2 + + shapeArc(w/2,h/2,w/2,h/2,180,270,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,270,360,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,0,90,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,90,180,false).replace("M","L") + + " z" + + "M" + dr + "," + h/2 + + shapeArc(w/2,h/2,iwd2,ihd2,180,90,false).replace("M","L") + + shapeArc(w/2,h/2,iwd2,ihd2,90,0,false).replace("M","L") + + shapeArc(w/2,h/2,iwd2,ihd2,0,-90,false).replace("M","L") + + shapeArc(w/2,h/2,iwd2,ihd2,270,180,false).replace("M","L") + + " z"; + result += ""; break; - case "line": - case "straightConnector1": - case "bentConnector4": - case "bentConnector5": - case "curvedConnector2": - case "curvedConnector3": - case "curvedConnector4": - case "curvedConnector5": - if (isFlipV) { - result += " cnstVal1) a = cnstVal1 + else a = adj + dr = Math.min(w,h)*a/cnstVal2; + iwd2 = w/2 - dr; + ihd2 = h/2 - dr; + ang = Math.atan(h/w); + //ang2rad = ang*Math.PI/180; + ct = ihd2*Math.cos(ang); + st = iwd2*Math.sin(ang); + m = Math.sqrt(ct*ct+st*st); //"mod ct st 0" + n = iwd2*ihd2/m; + drd2 = dr/2; + dang = Math.atan(drd2/n); + dang2 = dang*2; + swAng = -Math.PI+dang2; + //t3 = Math.atan(h/w); + stAng1 = ang-dang; + stAng2 = stAng1-Math.PI; + var ct1,st1,m1,n1,dx1,dy1,x1,y1,y1,y2; + ct1 = ihd2*Math.cos(stAng1); + st1 = iwd2*Math.sin(stAng1); + m1 =Math.sqrt(ct1*ct1 + st1*st1); //"mod ct1 st1 0" + n1 = iwd2*ihd2/m1; + dx1 = n1*Math.cos(stAng1); + dy1 = n1*Math.sin(stAng1); + x1 = w/2+dx1; + y1 = h/2+dy1; + x2 = w/2-dx1; + y2 = h/2-dy1; + var stAng1deg = stAng1*180/Math.PI; + var stAng2deg = stAng2*180/Math.PI; + var swAng2deg = swAng*180/Math.PI; + var d = "M" + 0 + "," + h/2 + + shapeArc(w/2,h/2,w/2,h/2,180,270,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,270,360,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,0,90,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,90,180,false).replace("M","L") + + " z" + + "M" + x1 + "," + y1 + + shapeArc(w/2,h/2,iwd2,ihd2,stAng1deg,(stAng1deg+swAng2deg),false).replace("M","L") + + " z" + + "M" + x2 + "," + y2 + + shapeArc(w/2,h/2,iwd2,ihd2,stAng2deg,(stAng2deg+swAng2deg),false).replace("M","L") + + " z"; + //console.log("adj: ",adj,"x1:",x1,",y1:",y1," x2:",x2,",y2:",y2,",stAng1:",stAng1,",stAng1deg:",stAng1deg,",stAng2:",stAng2,",stAng2deg:",stAng2deg,",swAng:",swAng,",swAng2deg:",swAng2deg) + + result += ""; + break; + case "halfFrame": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val= 3.5; + var sAdj2,sAdj2_val = 3.5; + var cnsVal = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i maxAdj2) a2 = maxAdj2 + else a2 = sAdj2_val + var x1 = (minWH* a2)/cnsVal; + var g1 = h *x1/w; + var g2 = h-g1; + var maxAdj1 = (cnsVal * g2)/ minWH; + if(sAdj1_val < 0) a1 = 0 + else if (sAdj1_val > maxAdj1) a1 = maxAdj1 + else a1 = sAdj1_val + var y1 = minWH*a1/cnsVal; + var dx2 = y1* w/h; + var x2 = w - dx2; + var dy2 = x1*h/w; + var y2 = h - dy2; + var d = "M0,0" + + " L" + w + "," + 0 + + " L" + x2 + "," + y1 + + " L" + x1 + "," + y1 + + " L"+ x1 + "," + y2 + + " L0," + h +" z"; + + result += ""; + //console.log("w: ",w,", h: ",h,", sAdj1_val: ",sAdj1_val,", sAdj2_val: ",sAdj2_val,",maxAdj1: ",maxAdj1,",maxAdj2: ",maxAdj2) + break; + case "blockArc": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1= 180; + var sAdj2,adj2 = 0; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cd1) stAng = cd1 + else stAng = adj1 //180 + + if(adj2 < 0) istAng = 0 + else if (adj2 > cd1) istAng = cd1 + else istAng = adj2 //0 + + if(adj3 < 0) a3 = 0 + else if (adj3 > cnstVal1) a3 = cnstVal1 + else a3 = adj3 + + sw11 = istAng - stAng; // -180 + sw12 = sw11 + cd1; //180 + swAng = (sw11>0)?sw11:sw12; //180 + iswAng = -swAng; //-180 + + var endAng = stAng + swAng; + var iendAng = istAng + iswAng; + + var wt1,ht1,dx1,dy1,x1,y1,stRd,istRd,wd2,hd2,hc,vc; + stRd = stAng*(Math.PI)/180; + istRd = istAng*(Math.PI)/180; + wd2 = w/2; + hd2 = h/2; + hc = w/2; + vc = h/2; + if(stAng > 90 && stAng < 270){ + wt1 = wd2*(Math.sin((Math.PI)/2 - stRd)); + ht1 = hd2*(Math.cos((Math.PI)/2 - stRd)); + + dx1 = wd2*(Math.cos(Math.atan(ht1/wt1))); + dy1 = hd2*(Math.sin(Math.atan(ht1/wt1))); + + x1 = hc - dx1; + y1 = vc - dy1; + }else{ + wt1 = wd2*(Math.sin(stRd)); + ht1 = hd2*(Math.cos(stRd)); + + dx1 = wd2*(Math.cos(Math.atan(wt1/ht1))); + dy1 = hd2*(Math.sin(Math.atan(wt1/ht1))); + + x1 = hc + dx1; + y1 = vc + dy1; + } + var dr,iwd2,ihd2,wt2,ht2,dx2,dy2,x2,y2; + dr = Math.min(w,h)*a3/cnstVal2; + iwd2 = wd2 - dr; + ihd2 = hd2 - dr; + //console.log("stAng: ",stAng," swAng: ",swAng ," endAng:",endAng) + if((endAng <= 450 && endAng > 270) || ((endAng >=630 && endAng <720)) ){ + wt2 = iwd2*(Math.sin(istRd)); + ht2 = ihd2*(Math.cos(istRd)); + dx2 = iwd2*(Math.cos(Math.atan(wt2/ht2))); + dy2 = ihd2*(Math.sin(Math.atan(wt2/ht2))); + x2 = hc + dx2; + y2 = vc + dy2; + }else{ + wt2 = iwd2*(Math.sin((Math.PI)/2 - istRd)); + ht2 = ihd2*(Math.cos((Math.PI)/2 - istRd)); + + dx2 = iwd2*(Math.cos(Math.atan(ht2/wt2))); + dy2 = ihd2*(Math.sin(Math.atan(ht2/wt2))); + x2 = hc - dx2; + y2 = vc - dy2; + } + var d = "M" + x1 + "," + y1 + + shapeArc(wd2,hd2,wd2,hd2,stAng,endAng,false).replace("M","L") + + " L" + x2 + "," + y2 + + shapeArc(wd2,hd2,iwd2,ihd2,istAng,iendAng,false).replace("M","L") + + " z"; + result += ""; + break; + case "bracePair": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 8333*96/914400; + var cnstVal1 = 25000*96/914400; + var cnstVal2 = 50000*96/914400; + var cnstVal3 = 100000*96/914400; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var vc=h/2,cd=360,cd2=180,cd4=90,c3d4=270,a,x1,x2,x3,x4,y2,y3,y4; + if(adj < 0) a = 0 + else if (adj > cnstVal1) a = cnstVal1 + else a = adj + var minWH = Math.min(w,h); + x1 = minWH*a/cnstVal3; + x2 = minWH*a/cnstVal2; + x3 = w - x2; + x4 = w - x1; + y2 = vc - x1; + y3 = vc + x1; + y4 = h - x1; + //console.log("w:",w," h:",h," x1:",x1," x2:",x2," x3:",x3," x4:",x4," y2:",y2," y3:",y3," y4:",y4) + var d = "M" + x2 + "," + h + + shapeArc(x2,y4,x1,x1,cd4,cd2,false).replace("M","L") + + " L" + x1 + "," + y3 + + shapeArc(0,y3,x1,x1,0,(-cd4),false).replace("M","L") + + shapeArc(0,y2,x1,x1,cd4,0,false).replace("M","L") + + " L" + x1 + "," + x1 + + shapeArc(x2,x1,x1,x1,cd2,c3d4,false).replace("M","L") + + " M" + x3 + "," + 0 + + shapeArc(x3,x1,x1,x1,c3d4,cd,false).replace("M","L") + + " L" + x4 + "," + y2 + + shapeArc(w,y2,x1,x1,cd2,cd4,false).replace("M","L") + + shapeArc(w,y3,x1,x1,c3d4,cd2,false).replace("M","L") + + " L" + x4 + "," + y4 + + shapeArc(x3,y4,x1,x1,0,cd4,false).replace("M","L"); + + result += ""; + break; + case "leftBrace": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 8333*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal2) a2 = cnstVal2 + else a2 = adj2 + var minWH = Math.min(w,h); + q1 = cnstVal2 - a2; + if(q1 < a2) q2 = q1 + else q2 = a2 + q3 = q2/2; + var maxAdj1 = q3*h/minWH; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + y1 = minWH*a1/cnstVal2; + y3 = h*a2/cnstVal2; + y2 = y3 - y1; + y4 = y3 + y1; + //console.log("w:",w," h:",h," q1:",q1," q2:",q2," q3:",q3," y1:",y1," y3:",y3," y4:",y4," maxAdj1:",maxAdj1) + var d = "M" + w + "," + h + + shapeArc(w,h-y1,w/2,y1,cd4,cd2,false).replace("M","L") + + " L" + w/2 + "," + y4 + + shapeArc(0,y4,w/2,y1,0,(-cd4),false).replace("M","L") + + shapeArc(0,y2,w/2,y1,cd4,0,false).replace("M","L") + + " L" + w/2 + "," + y1 + + shapeArc(w,y1,w/2,y1,cd2,c3d4,false).replace("M","L"); + + result += ""; + break; + case "rightBrace": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 8333*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal2) a2 = cnstVal2 + else a2 = adj2 + var minWH = Math.min(w,h); + q1 = cnstVal2 - a2; + if(q1 < a2) q2 = q1 + else q2 = a2 + q3 = q2/2; + var maxAdj1 = q3*h/minWH; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + y1 = minWH*a1/cnstVal2; + y3 = h*a2/cnstVal2; + y2 = y3 - y1; + y4 = h - y1; + //console.log("w:",w," h:",h," q1:",q1," q2:",q2," q3:",q3," y1:",y1," y2:",y2," y3:",y3," y4:",y4," maxAdj1:",maxAdj1) + var d = "M" + 0 + "," + 0 + + shapeArc(0,y1,w/2,y1,c3d4,cd,false).replace("M","L") + + " L" + w/2 + "," + y2 + + shapeArc(w,y2,w/2,y1,cd2,cd4,false).replace("M","L") + + shapeArc(w,y3+y1,w/2,y1,c3d4,cd2,false).replace("M","L") + + " L" + w/2 + "," + y4 + + shapeArc(0,y4,w/2,y1,0,cd4,false).replace("M","L"); + + result += ""; + break; + case "bracketPair": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 16667*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var r=w,b=h,cd2=180,cd4=90,c3d4=270,a,x1,x2,y2; + if(adj < 0) a = 0 + else if (adj > cnstVal1) a = cnstVal1 + else a = adj + x1 = Math.min(w,h)*a/cnstVal2; + x2 = r - x1; + y2 = b - x1; + //console.log("w:",w," h:",h," x1:",x1," x2:",x2," y2:",y2) + var d = shapeArc(x1,x1,x1,x1,c3d4,cd2,false) + + shapeArc(x1,y2,x1,x1,cd2,cd4,false).replace("M","L") + + shapeArc(x2,x1,x1,x1,c3d4,(c3d4+cd4),false) + + shapeArc(x2,y2,x1,x1,0,cd4,false).replace("M","L"); + result += ""; + break; + case "leftBracket": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 8333*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var maxAdj = cnstVal1*h/Math.min(w,h); + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var r=w,b=h,cd2=180,cd4=90,c3d4=270,a,y1,y2; + if(adj < 0) a = 0 + else if (adj > maxAdj) a = maxAdj + else a = adj + y1 = Math.min(w,h)*a/cnstVal2; + if(y1>w) y1=w; + y2 = b - y1; + var d = "M"+ r + "," + b + + shapeArc(y1,y2,y1,y1,cd4,cd2,false).replace("M","L") + + " L"+ 0 + "," + y1 + + shapeArc(y1,y1,y1,y1,cd2,c3d4,false).replace("M","L") + + " L"+ r + "," + 0 + result += ""; + break; + case "rightBracket": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 8333*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var maxAdj = cnstVal1*h/Math.min(w,h); + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var cd=360,cd2=180,cd4=90,c3d4=270,a,y1,y2,y3; + if(adj < 0) a = 0 + else if (adj > maxAdj) a = maxAdj + else a = adj + y1 = Math.min(w,h)*a/cnstVal2; + y2 = h - y1; + y3 = w - y1; + //console.log("w:",w," h:",h," y1:",y1," y2:",y2," y3:",y3) + var d = "M"+ 0 + "," + h + + shapeArc(y3,y2,y1,y1,cd4,0,false).replace("M","L") + + //" L"+ r + "," + y2 + + " L"+ w + "," + h/2 + + shapeArc(y3,y1,y1,y1,cd,c3d4,false).replace("M","L") + + " L"+ 0 + "," + 0 + result += ""; + break; + case "moon": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 0.5; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))/100000;//*96/914400;; + } + var hd2,cd2,cd4; + + hd2 = h/2; + cd2 = 180; + cd4 = 90; + + var adj2 = (1-adj) * w; + var d = "M" + w + "," + h + + shapeArc(w,hd2,w,hd2,cd4,(cd4+cd2),false).replace("M","L") + + shapeArc(w,hd2,adj2,hd2,(cd4+cd2),cd4,false).replace("M","L") + + " z"; + result += ""; + break; + case "corner": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val= 50000*96/914400; + var sAdj2,sAdj2_val = 50000*96/914400; + var cnsVal = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i maxAdj1) a1 = maxAdj1 + else a1 = sAdj1_val + + if(sAdj2_val < 0) a2 = 0 + else if (sAdj2_val > maxAdj2) a2 = maxAdj2 + else a2 = sAdj2_val + x1 = minWH*a2/cnsVal; + dy1 = minWH*a1/cnsVal; + y1 = h - dy1; + + var d = "M0,0" + + " L" + x1 + "," + 0 + + " L" + x1 + "," + y1 + + " L" + w + "," + y1 + + " L"+ w + "," + h + + " L0," + h +" z"; + + result += ""; + break; + case "diagStripe": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var sAdj1_val= 50000*96/914400; + var cnsVal = 100000*96/914400; + if(shapAdjst !== undefined){ + sAdj1_val = parseInt(shapAdjst.substr(4))* 96/914400; + } + var a1 , x2 , y2; + if(sAdj1_val < 0) a1 = 0 + else if (sAdj1_val > cnsVal) a1 = cnsVal + else a1 = sAdj1_val + x2 = w*a1/cnsVal; + y2 = h*a1/cnsVal; + var d = "M" + 0 + "," + y2 + + " L" + x2 + "," + 0 + + " L" + w + "," + 0 + + " L"+ 0 + "," + h +" z"; + + result += ""; + break; + case "gear6": + case "gear9": + txtRotate = 0; + var gearNum = shapType.substr(4) , d; + if(gearNum == "6"){ + d = shapeGear(w,h/3.5,parseInt(gearNum)); + }else{ //gearNum=="9" + d = shapeGear(w,h/3.5,parseInt(gearNum)); + } + result += ""; + break; + case "bentConnector3": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + //console.log("isFlipV: "+String(isFlipV)+"\nshapAdjst: "+shapAdjst) + var shapAdjst_val = 0.5; + if(shapAdjst !== undefined){ + shapAdjst_val = parseInt(shapAdjst.substr(4)) /100000; + //console.log("isFlipV: "+String(isFlipV)+"\nshapAdjst: "+shapAdjst+"\nshapAdjst_val: "+shapAdjst_val); + if(isFlipV){ + result += " "; + //console.log((!imgFillFlg?(grndFillFlg?"url(#linGrd_"+shpId+")":fillColor):"url(#imgPtrn_"+shpId+")")) + break; + case "teardrop": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var adj1 = 100000*96/914400; + var cnsVal1 = adj1; + var cnsVal2 = 200000*96/914400; + if(shapAdjst !== undefined){ + adj1 = parseInt(shapAdjst.substr(4))*96/914400; + } + var a1 ,r2 ,tw,th,sw,sh,dx1,dy1,x1,y1, x2 , y2 ,rd45; + if(adj1 < 0) a1 = 0 + else if (adj1 > cnsVal2) a1 = cnsVal2 + else a1 = adj1 + r2 = Math.sqrt(2); + tw = r2*(w/2); + th = r2*(h/2); + sw = (tw*a1)/cnsVal1; + sh = (th*a1)/cnsVal1; + rd45 = (45*(Math.PI)/180); + dx1 = sw*(Math.cos(rd45)); + dy1 = sh*(Math.cos(rd45)); + x1 = (w/2) + dx1; + y1 = (h/2) - dy1; + x2 = ((w/2)+x1)/2; + y2 = ((h/2)+y1)/2; + + var d_val = shapeArc(w/2,h/2,w/2,h/2,180,270,false) + + "Q " + x2 + ",0 " + x1 + "," + y1 + + "Q " + w + "," + y2 + " " + w + "," + h/2 + + shapeArc(w/2,h/2,w/2,h/2,0,90,false).replace("M","L") + + shapeArc(w/2,h/2,w/2,h/2,90,180,false).replace("M","L") + " z"; + result += ""; + + // console.log("shapAdjst: ",shapAdjst,", adj1: ",adj1); + break; + case "plaque": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var adj1 = 16667*96/914400; + var cnsVal1 = 50000*96/914400; + var cnsVal2 = 100000*96/914400; + if(shapAdjst !== undefined){ + adj1 = parseInt(shapAdjst.substr(4))*96/914400; + } + var a1 ,x1, x2 , y2; + if(adj1 < 0) a1 = 0 + else if (adj1 > cnsVal1) a1 = cnsVal1 + else a1 = adj1 + x1 = a1*(Math.min(w,h))/cnsVal2; + x2 = w-x1; + y2 = h-x1; + + var d_val = "M0," + x1 + + shapeArc(0,0,x1,x1,90,0,false).replace("M","L") + + " L" + x2 + "," + 0 + + shapeArc(w,0,x1,x1,180,90,false).replace("M","L") + + " L" + w + "," + y2 + + shapeArc(w,h,x1,x1,270,180,false).replace("M","L") + + " L" + x1 + "," + h + + shapeArc(0,h,x1,x1,0,-90,false).replace("M","L") + " z"; + result += ""; + + break; + case "sun": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var refr = 96/914400; + var adj1 = 25000*refr; + var cnstVal1 = 12500*refr; + var cnstVal2 = 46875*refr; + if(shapAdjst !== undefined){ + adj1 = parseInt(shapAdjst.substr(4))*refr; + } + var a1; + if(adj1 < cnstVal1) a1 = cnstVal1 + else if (adj1 > cnstVal2) a1 = cnstVal2 + else a1 = adj1 + + var cnstVa3 = 50000*refr; + var cnstVa4 = 100000*refr; + var g0 = cnstVa3 - a1, + g1 = g0*(30274*refr)/(32768*refr), + g2 = g0*(12540*refr)/(32768*refr), + g3 = g1+cnstVa3, + g4 = g2+cnstVa3, + g5 = cnstVa3-g1, + g6 = cnstVa3-g2, + g7 = g0*(23170*refr)/(32768*refr), + g8 = cnstVa3+g7, + g9 = cnstVa3-g7, + g10 = g5*3/4, + g11 = g6*3/4, + g12 = g10+3662*refr, + g13 = g11+36620*refr, + g14 = g11+12500*refr, + g15 = cnstVa4-g10, + g16 = cnstVa4-g12, + g17 = cnstVa4-g13, + g18 = cnstVa4-g14, + ox1 = w*(18436*refr)/(21600*refr), + oy1 = h*(3163*refr)/(21600*refr), + ox2 = w*(3163*refr)/(21600*refr), + oy2 = h*(18436*refr)/(21600*refr), + x8 = w*g8/cnstVa4, + x9 = w*g9/cnstVa4, + x10 = w*g10/cnstVa4, + x12 = w*g12/cnstVa4, + x13 = w*g13/cnstVa4, + x14 = w*g14/cnstVa4, + x15 = w*g15/cnstVa4, + x16 = w*g16/cnstVa4, + x17 = w*g17/cnstVa4, + x18 = w*g18/cnstVa4, + x19 = w*a1/cnstVa4, + wR = w*g0/cnstVa4, + hR = h*g0/cnstVa4, + y8 = h*g8/cnstVa4, + y9 = h*g9/cnstVa4, + y10 = h*g10/cnstVa4, + y12 = h*g12/cnstVa4, + y13 = h*g13/cnstVa4, + y14 = h*g14/cnstVa4, + y15 = h*g15/cnstVa4, + y16 = h*g16/cnstVa4, + y17 = h*g17/cnstVa4, + y18 = h*g18/cnstVa4; + + var d_val = "M"+w+"," + h/2 + + " L"+x15+","+y18+ + " L"+x15+","+y14+ + "z" + + " M"+ox1+","+oy1+ + " L"+x16+","+y17+ + " L"+x13+","+y12+ + "z" + + " M"+w/2+","+0+ + " L"+x18+","+y10+ + " L"+x14+","+y10+ + "z" + + " M"+ox2+","+oy1+ + " L"+x17+","+y12+ + " L"+x12+","+y17+ + "z" + + " M"+0+","+h/2+ + " L"+x10+","+y14+ + " L"+x10+","+y18+ + "z" + + " M"+ox2+","+oy2+ + " L"+x12+","+y13+ + " L"+x17+","+y16+ + "z" + + " M"+w/2+","+h+ + " L"+x14+","+y15+ + " L"+x18+","+y15+ + "z" + + " M"+ox1+","+oy2+ + " L"+x13+","+y16+ + " L"+x16+","+y13+ + " z" + + " M"+x19+","+h/2+ + shapeArc(w/2,h/2,wR,hR,180,540,false).replace("M","L") + + " z"; + //console.log("adj1: ",adj1,d_val); + result += ""; + + + break; + case "heart": + var dx1,dx2,x1, x2,x3,x4,y1; + dx1 = w*49/48; + dx2 = w*10/48 + x1 = w/2-dx1 + x2 = w/2-dx2 + x3 = w/2+dx2 + x4 = w/2+dx1 + y1 = -h/3; + var d_val = "M" + w/2 + "," + h/4 + + "C" + x3 + "," + y1 +" "+ x4 + "," + h/4 + " " + w/2 + "," + h + + "C" + x1 + "," + h/4 +" "+ x2 + "," + y1 + " " + w/2 + "," + h/4 + " z"; + + result += ""; + + break; + case "lightningBolt": + var x1 = w*5022/21600, + x2 = w*11050/21600, + x3 = w*8472/21600, + x4 = w*8757/21600, + x5 = w*10012/21600, + x6 = w*14767/21600, + x7 = w*12222/21600, + x8 = w*12860/21600, + x9 = w*13917/21600, + x10 = w*7602/21600, + x11 = w*16577/21600, + y1 = h*3890/21600, + y2 = h*6080/21600, + y3 = h*6797/21600, + y4 = h*7437/21600, + y5 = h*12877/21600, + y6 = h*9705/21600, + y7 = h*12007/21600, + y8 = h*13987/21600, + y9 = h*8382/21600, + y10 = h*14277/21600, + y11 = h*14915/21600; + + var d_val = "M" + x3 + "," + 0 + + " L" + x8 + "," + y2 + + " L" + x2 + "," + y3 + + " L" + x11 + "," + y7 + + " L" + x6 + "," + y5 + + " L" + w + "," + h + + " L" + x5 + "," + y11 + + " L" + x7 + "," + y8 + + " L" + x1 + "," + y6 + + " L" + x10 + "," + y9 + + " L" + 0 + "," + y1 + " z"; + + result += ""; + + break; + case "cube": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var refr = 96/914400; + var adj = 25000*refr; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*refr; + } + var d_val; + var cnstVal2 = 100000*refr; + var ss = Math.min(w,h); + var a, y1, y4, x4; + a = (adj<0)?0:(adj>cnstVal2)?cnstVal2:adj; + y1 = ss*a/cnstVal2; + y4 = h-y1; + x4 = w-y1; + d_val = "M" + 0 + "," + y1 + + " L" + y1 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + y4 + + " L" + x4 + "," + h + + " L" + 0 + "," + h + + " z" + + "M" + 0 + "," + y1 + + " L" + x4 + "," + y1 + + " M" + x4 + "," + y1 + + " L" + w + "," + 0 + + "M" + x4 + "," + y1 + + " L" + x4 + "," + h; + + result += ""; + + break; + case "bevel": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var refr = 96/914400; + var adj = 12500*refr; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*refr; + } + var d_val; + var cnstVal1 = 50000*refr; + var cnstVal2 = 100000*refr; + var ss = Math.min(w,h); + var a, x1, x2, y2; + a = (adj<0)?0:(adj>cnstVal1)?cnstVal1:adj; + x1 = ss*a/cnstVal2; + x2 = w-x1; + y2 = h-x1; + d_val = "M" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + h + + " L" + 0 + "," + h + + " z" + + " M" + x1 + "," + x1 + + " L" + x2 + "," + x1 + + " L" + x2 + "," + y2 + + " L" + x1 + "," + y2 + + " z" + + " M" + 0 + "," + 0 + + " L" + x1 + "," + x1 + + " M" + 0 + "," + h + + " L" + x1 + "," + y2 + + " M" + w + "," + 0 + + " L" + x2 + "," + x1 + + " M" + w + "," + h + + " L" + x2 + "," + y2; + + result += ""; + + break; + case "foldedCorner": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var refr = 96/914400; + var adj = 16667*refr; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*refr; + } + var d_val; + var cnstVal1 = 50000*refr; + var cnstVal2 = 100000*refr; + var ss = Math.min(w,h); + var a, dy2, dy1, x1, x2, y2, y1; + a = (adj<0)?0:(adj>cnstVal1)?cnstVal1:adj; + dy2 = ss*a/cnstVal2; + dy1 = dy2/5; + x1 = w-dy2; + x2 = x1+dy1; + y2 = h-dy2; + y1 = y2+dy1; + d_val = "M" + x1 + "," + h + + " L" + x2 + "," + y1 + + " L" + w + "," + y2 + + " L" + x1 + "," + h + + " L" + 0 + "," + h + + " L" + 0 + "," + 0 + + " L" + w + "," + 0 + + " L" + w + "," + y2; + + result += ""; + + break; + case "smileyFace": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var refr = 96/914400; + var adj = 4653*refr; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*refr; + } + var d_val; + var cnstVal1 = 50000*refr; + var cnstVal2 = 100000*refr; + var cnstVal3 = 4653*refr; + var ss = Math.min(w,h); + var a, x1, x2, x3, x4, y1, y3, dy2, y2, y4, dy3, y5, wR, hR, wd2, hd2; + wd2 = w/2; + hd2 = h/2; + a = (adj<-cnstVal3)?-cnstVal3:(adj>cnstVal3)?cnstVal3:adj; + x1 = w*4969/21699; + x2 = w*6215/21600; + x3 = w*13135/21600; + x4 = w*16640/21600; + y1 = h*7570/21600; + y3 = h*16515/21600; + dy2 = h*a/cnstVal2; + y2 = y3-dy2; + y4 = y3+dy2; + dy3 = h*a/cnstVal1; + y5 = y4+dy3; + wR = w*1125/21600; + hR = h*1125/21600; + var cX1 = x2 - wR*Math.cos(Math.PI); + var cY1 = y1 - hR*Math.sin(Math.PI); + var cX2 = x3 - wR*Math.cos(Math.PI); + d_val = //eyes + shapeArc(cX1,cY1,wR,hR,180,540,false) + + shapeArc(cX2,cY1,wR,hR,180,540,false) + + //mouth + " M" + x1 + "," + y2 + + " Q" + wd2 + "," + y5 + " " + x4 + "," + y2 + + " Q" + wd2 + "," + y5 + " " + x1 + "," + y2 + + //head + " M" + 0 + "," + hd2 + + shapeArc(wd2,hd2,wd2,hd2,180,540,false).replace("M","L") + + " z"; + result += ""; + + break; + case "verticalScroll": + case "horizontalScroll": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd", "attrs", "fmla"]); + var refr = 96/914400; + var adj = 12500*refr; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*refr; + } + var d_val; + var cnstVal1 = 25000*refr; + var cnstVal2 = 100000*refr; + var ss = Math.min(w,h); + var t=0,l=0,b=h,r=w; + var a, ch, ch2, ch4; + a = (adj<0)?0:(adj>cnstVal1)?cnstVal1:adj; + ch = ss*a/cnstVal2; + ch2 = ch/2; + ch4 = ch/4; + if(shapType == "verticalScroll"){ + var x3, x4, x6, x7, x5, y3, y4; + x3 = ch+ch2; + x4 = ch+ch; + x6 = r-ch; + x7 = r-ch2; + x5 = x6-ch2; + y3 = b-ch; + y4 = b-ch2; + + d_val = "M" + ch + "," + y3 + + " L" + ch + "," + ch2 + + shapeArc(x3,ch2,ch2,ch2,180,270,false).replace("M","L") + + " L" + x7 + "," + t + + shapeArc(x7,ch2,ch2,ch2,270,450,false).replace("M","L") + + " L" + x6 + "," + ch + + " L" + x6 + "," + y4 + + shapeArc(x5,y4,ch2,ch2,0,90,false).replace("M","L") + + " L" + ch2 + "," + b + + shapeArc(ch2,y4,ch2,ch2,90,270,false).replace("M","L") + + " z" + + " M" + x3 + "," + t + + shapeArc(x3,ch2,ch2,ch2,270,450,false).replace("M","L") + + shapeArc(x3,x3/2,ch4,ch4,90,270,false).replace("M","L") + + " L" + x4 + "," + ch2 + + " M" + x6 + "," + ch + + " L" + x3 + "," + ch + + " M" + ch + "," + y4 + + shapeArc(ch2,y4,ch2,ch2,0,270,false).replace("M","L") + + shapeArc(ch2,(y4+y3)/2,ch4,ch4,270,450,false).replace("M","L") + + " z"+ + " M" + ch + "," + y4 + + " L" + ch + "," + y3; + }else if(shapType == "horizontalScroll"){ + var y3, y4, y6, y7, y5, x3, x4; + y3 = ch+ch2; + y4 = ch+ch; + y6 = b-ch; + y7 = b-ch2; + y5 = y6-ch2; + x3 = r-ch; + x4 = r-ch2; + + d_val = "M" + l + "," + y3 + + shapeArc(ch2,y3,ch2,ch2,180,270,false).replace("M","L") + + " L" + x3 + "," + ch + + " L" + x3 + "," + ch2 + + shapeArc(x4,ch2,ch2,ch2,180,360,false).replace("M","L") + + " L" + r + "," + y5 + + shapeArc(x4,y5,ch2,ch2,0,90,false).replace("M","L") + + " L" + ch + "," + y6 + + " L" + ch + "," + y7 + + shapeArc(ch2,y7,ch2,ch2,0,180,false).replace("M","L") + + " z" + + "M" + x4 + "," + ch + + shapeArc(x4,ch2,ch2,ch2,90,-180,false).replace("M","L") + + shapeArc((x3+x4)/2,ch2,ch4,ch4,180,0,false).replace("M","L") + + " z" + + " M" + x4 + "," + ch + + " L" + x3 + "," + ch + + " M" + ch2 + "," + y4 + + " L" + ch2 + "," + y3 + + shapeArc(y3/2,y3,ch4,ch4,180,360,false).replace("M","L") + + shapeArc(ch2,y3,ch2,ch2,0,180,false).replace("M","L") + + " M" + ch + "," + y3 + + " L" + ch + "," + y6; + } + + result += ""; + + break; + case "wedgeEllipseCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var refr = 96/914400; + var sAdj1,adj1= -20833*refr; + var sAdj2,adj2 = 62500*refr; + if(shapAdjst_ary !== undefined){ + for(var i=0; i= 0 ){ + x1 = hc+dx1; + y1 = vc+dy1; + x2 = hc+dx2; + y2 = vc+dy2; + }else{ + x1 = hc-dx1; + y1 = vc-dy1; + x2 = hc-dx2; + y2 = vc-dy2; + } + /* + //stAng = pang+angVal1; + //enAng = pang-angVal1; + //dx1 = hc*Math.cos(stAng); + //dy1 = vc*Math.sin(stAng); + x1 = hc+dx1; + y1 = vc+dy1; + dx2 = hc*Math.cos(enAng); + dy2 = vc*Math.sin(enAng); + x2 = hc+dx2; + y2 = vc+dy2; + stAng1 = Math.atan(dy1/dx1); + enAng1 = Math.atan(dy2/dx2); + swAng1 = enAng1-stAng1; + swAng2 = swAng1+2*Math.PI; + swAng = (swAng1 > 0)?swAng1:swAng2; + var stAng1Dg = stAng1*180/Math.PI; + var swAngDg = swAng*180/Math.PI; + var endAng = stAng1Dg + swAngDg; + */ + d_val = "M" + x1 + "," + y1 + + " L" + xPos + "," + yPos + + " L" + x2 + "," + y2 + + //" z" + + shapeArc(hc,vc,hc,vc,0,360,true);// + + //shapeArc(hc,vc,hc,vc,stAng1Dg,stAng1Dg+swAngDg,false).replace("M","L") + + //" z"; + result += ""; + + break; + case "wedgeRectCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var refr = 96/914400; + var sAdj1,adj1= -20833*refr; + var sAdj2,adj2 = 62500*refr; + if(shapAdjst_ary !== undefined){ + for(var i=0; i 0)?7:2; + xg2 = (dxPos > 0)?10:5; + x1 = w*xg1/12; + x2 = w*xg2/12; + yg1 = (dyPos > 0)?7:2; + yg2 = (dyPos > 0)?10:5; + y1 = h*yg1/12; + y2 = h*yg2/12; + t1 = (dxPos > 0)?0:xPos; + xl = (dz > 0)?0:t1; + t2 = (dyPos > 0)?x1:xPos; + xt = (dz > 0)?t2:x1; + t3 = (dxPos > 0)?xPos:w; + xr = (dz > 0)?w:t3; + t4 = (dyPos > 0)?xPos:x1; + xb = (dz > 0)?t4:x1; + t5 = (dxPos > 0)?y1:yPos; + yl = (dz > 0)?y1:t5; + t6 = (dyPos > 0)?0:yPos; + yt = (dz > 0)?t6:0; + t7 = (dxPos > 0)?yPos:y1; + yr = (dz > 0)?y1:t7; + t8 = (dyPos > 0)?yPos:h; + yb = (dz > 0)?t8:h; + + d_val = "M" + 0 + "," +0 + + " L" + x1 + "," +0 + + " L" + xt + "," +yt + + " L" + x2 + "," +0 + + " L" + w + "," +0 + + " L" + w + "," +y1 + + " L" + xr + "," +yr + + " L" + w + "," +y2 + + " L" + w + "," +h + + " L" + x2 + "," +h + + " L" + xb + "," +yb + + " L" + x1 + "," +h + + " L" + 0 + "," +h + + " L" + 0 + "," +y2 + + " L" + xl + "," +yl + + " L" + 0 + "," +y1 + + " z"; + + result += ""; + + break; + case "wedgeRoundRectCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var refr = 96/914400; + var sAdj1,adj1= -20833*refr; + var sAdj2,adj2 = 62500*refr; + var sAdj3,adj3 = 16667*refr; + if(shapAdjst_ary !== undefined){ + for(var i=0; i 0)?7:2; + xg2 = (dxPos > 0)?10:5; + x1 = w*xg1/12; + x2 = w*xg2/12; + yg1 = (dyPos > 0)?7:2; + yg2 = (dyPos > 0)?10:5; + y1 = h*yg1/12; + y2 = h*yg2/12; + t1 = (dxPos > 0)?0:xPos; + xl = (dz > 0)?0:t1; + t2 = (dyPos > 0)?x1:xPos; + xt = (dz > 0)?t2:x1; + t3 = (dxPos > 0)?xPos:w; + xr = (dz > 0)?w:t3; + t4 = (dyPos > 0)?xPos:x1; + xb = (dz > 0)?t4:x1; + t5 = (dxPos > 0)?y1:yPos; + yl = (dz > 0)?y1:t5; + t6 = (dyPos > 0)?0:yPos; + yt = (dz > 0)?t6:0; + t7 = (dxPos > 0)?yPos:y1; + yr = (dz > 0)?y1:t7; + t8 = (dyPos > 0)?yPos:h; + yb = (dz > 0)?t8:h; + u1 = ss*adj3/cnstVal1; + u2 = w-u1; + v2 = h-u1; + d_val = "M" + 0 + "," + u1 + + shapeArc(u1,u1,u1,u1,180,270,false).replace("M","L") + + " L" + x1 + "," + 0 + + " L" + xt + "," + yt + + " L" + x2 + "," + 0 + + " L" + u2 + "," + 0 + + shapeArc(u2,u1,u1,u1,270,360,false).replace("M","L") + + " L" + w + "," + y1 + + " L" + xr + "," + yr + + " L" + w + "," + y2 + + " L" + w + "," + v2 + + shapeArc(u2,v2,u1,u1,0,90,false).replace("M","L") + + " L" + x2 + "," + h + + " L" + xb + "," + yb + + " L" + x1 + "," + h + + " L" + u1 + "," + h + + shapeArc(u1,v2,u1,u1,90,180,false).replace("M","L") + + " L" + 0 + "," + y2 + + " L" + xl + "," + yl + + " L" + 0 + "," + y1 + + " z"; + result += ""; + + break; + case "accentBorderCallout1": + case "accentBorderCallout2": + case "accentBorderCallout3": + case "borderCallout1": + case "borderCallout2": + case "borderCallout3": + case "accentCallout1": + case "accentCallout2": + case "accentCallout3": + case "callout1": + case "callout2": + case "callout3": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var refr = 96/914400; + var sAdj1,adj1= 18750*refr; + var sAdj2,adj2 = -8333*refr; + var sAdj3,adj3 = 18750*refr; + var sAdj4,adj4= -16667*refr; + var sAdj5,adj5 = 100000*refr; + var sAdj6,adj6 = -16667*refr; + var sAdj7,adj7 = 112963*refr; + var sAdj8,adj8 = -8333*refr; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + + //}else{ + // result += ""; + + //} + break; + case "ribbon": + case "ribbon2": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1= 16667*96/914400; + var sAdj2,adj2 = 50000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; icnstVal2)?cnstVal2:adj1; + a2 = (adj2cnstVal3)?cnstVal3:adj2; + x10 = r-wd8; + dx2 = w*a2/cnstVal5; + x2 = hc-dx2; + x9 = hc+dx2; + x3 = x2+wd32; + x8 = x9-wd32; + x5 = x2+wd8; + x6 = x9-wd8; + x4 = x5-wd32; + x7 = x6+wd32; + hR = h*a1/cnstVal6; + if(shapType == "ribbon2"){ + var dy1, dy2, y7; + dy1 = h*a1/cnstVal5; + y1 = b-dy1; + dy2 = h*a1/cnstVal4; + y2 = b-dy2; + y4 = t+dy2; + y3 = (y4+b)/2; + y6 = b-hR;/////////////////// + y7 = y1-hR; + + d_val = "M" + l + "," + b + + " L" + wd8 + "," + y3 + + " L" + l + "," + y4 + + " L" + x2 + "," + y4 + + " L" + x2 + "," + hR + + shapeArc(x3,hR,wd32,hR,180,270,false).replace("M","L") + + " L" + x8 + "," + t + + shapeArc(x8,hR,wd32,hR,270,360,false).replace("M","L") + + " L" + x9 + "," + y4 + + " L" + x9 + "," + y4 + + " L" + r + "," + y4 + + " L" + x10 + "," + y3 + + " L" + r + "," + b + + " L" + x7 + "," + b + + shapeArc(x7,y6,wd32,hR,90,270,false).replace("M","L") + + " L" + x8 + "," + y1 + + shapeArc(x8,y7,wd32,hR,90,-90,false).replace("M","L") + + " L" + x3 + "," + y2 + + shapeArc(x3,y7,wd32,hR,270,90,false).replace("M","L") + + " L" + x4 + "," + y1 + + shapeArc(x4,y6,wd32,hR,270,450,false).replace("M","L") + + " z" + + " M" + x5 + "," + y2 + + " L" + x5 + "," + y6 + + "M" + x6 + "," + y6 + + " L" + x6 + "," + y2 + + "M" + x2 + "," + y7 + + " L" + x2 + "," + y4 + + "M" + x9 + "," + y4 + + " L" + x9 + "," + y7; + }else if(shapType == "ribbon"){ + var y5; + y1 = h*a1/cnstVal5; + y2 = h*a1/cnstVal4; + y4 = b-y2; + y3 = y4/2; + y5 = b-hR; /////////////////////// + y6 = y2-hR; + d_val = "M" + l + "," + t + + " L" + x4 + "," + t + + shapeArc(x4,hR,wd32,hR,270,450,false).replace("M","L") + + " L" + x3 + "," + y1 + + shapeArc(x3,y6,wd32,hR,270,90,false).replace("M","L") + + " L" + x8 + "," + y2 + + shapeArc(x8,y6,wd32,hR,90,-90,false).replace("M","L") + + " L" + x7 + "," + y1 + + shapeArc(x7,hR,wd32,hR,90,270,false).replace("M","L") + + " L" + r + "," + t + + " L" + x10 + "," + y3 + + " L" + r + "," + y4 + + " L" + x9 + "," + y4 + + " L" + x9 + "," + y5 + + shapeArc(x8,y5,wd32,hR,0,90,false).replace("M","L") + + " L" + x3 + "," + b + + shapeArc(x3,y5,wd32,hR,90,180,false).replace("M","L") + + " L" + x2 + "," + y4 + + " L" + l + "," + y4 + + " L" + wd8 + "," + y3 + + " z" + + " M" + x5 + "," + hR + + " L" + x5 + "," + y2 + + "M" + x6 + "," + y2 + + " L" + x6 + "," + hR + + "M" + x2 + "," + y4 + + " L" + x2 + "," + y6 + + "M" + x9 + "," + y6 + + " L" + x9 + "," + y4; + } + result += ""; + + break; + case "doubleWave": + case "wave": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1, adj1 = (shapType == "doubleWave")?6250*96/914400:12500*96/914400; + var sAdj2,adj2 = 0; + if(shapAdjst_ary !== undefined){ + for(var i=0; icnstVal1)?cnstVal1:adj1; + a2 = (adj2cnstVal4)?cnstVal4:adj2; + y1 = h*a1/cnstVal4; + dy2 = y1*10/3; + y2 = y1-dy2; + y3 = y1+dy2; + y4 = b-y1; + y5 = y4-dy2; + y6 = y4+dy2; + of2 = w*a2/cnstVal3; + dx2 = (of2 > 0)?0:of2; + x2 = l-dx2; + dx8 = (of2 > 0)?of2:0; + x8 = r-dx8; + dx3 = (dx2+x8)/6; + x3 = x2+dx3; + dx4 = (dx2+x8)/3; + x4 = x2+dx4; + x5 = (x2+x8)/2; + x6 = x5+dx3; + x7 = (x6+x8)/2; + x9 = l+dx8; + x15 = r+dx2; + x10 = x9+dx3; + x11 = x9+dx4; + x12 = (x9+x15)/2; + x13 = x12+dx3; + x14 = (x13+x15)/2; + + d_val = "M" + x2 + "," + y1 + + " C" + x3 + "," + y2 + " "+ x4 + "," + y3 + " "+ x5 + "," + y1 + + " C" + x6 + "," + y2 + " "+ x7 + "," + y3 + " "+ x8 + "," + y1 + + " L" + x15 + "," + y4 + + " C" + x14 + "," + y6 + " "+x13 + "," + y5 + " "+x12 + "," + y4 + + " C" + x11 + "," + y6 + " "+x10 + "," + y5 + " "+x9 + "," + y4 + + " z"; + }else if(shapType == "wave"){ + var cnstVal5 = 20000*96/914400; + var a1, a2, y1, dy2, y2, y3, y4, y5, y6, of2, dx2, x2, dx5, x5, dx3, x3, x4, x6, x10, x7, x8; + a1 = (adj1<0)?0:(adj1>cnstVal5)?cnstVal5:adj1; + a2 = (adj2cnstVal4)?cnstVal4:adj2; + y1 = h*a1/cnstVal4; + dy2 = y1*10/3; + y2 = y1-dy2; + y3 = y1+dy2; + y4 = b-y1; + y5 = y4-dy2; + y6 = y4+dy2; + of2 = w*a2/cnstVal3; + dx2 = (of2 > 0)?0:of2; + x2 = l-dx2; + dx5 = (of2 > 0)?of2:0; + x5 = r-dx5; + dx3 = (dx2+x5)/3; + x3 = x2+dx3; + x4 = (x3+x5)/2; + x6 = l+dx5; + x10 = r+dx2; + x7 = x6+dx3; + x8 = (x7+x10)/2; + + d_val = "M" + x2 + "," + y1 + + " C" + x3 + "," + y2 + " "+ x4 + "," + y3 + " "+ x5 + "," + y1 + + " L" + x10 + "," + y4 + + " C" + x8 + "," + y6 + " "+ x7 + "," + y5 + " "+ x6 + "," + y4 + + " z"; + } + result += ""; + + break; + case "ellipseRibbon": + case "ellipseRibbon2": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1= 25000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var sAdj3,adj3 = 12500*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; icnstVal4)?cnstVal4:adj1; + a2 = (adj2cnstVal3)?cnstVal3:adj2; + q10 = cnstVal4-a1; + q11 = q10/2; + q12 = a1-q11; + minAdj3 = (0>q12)?0:q12; + a3 = (adj3a1)?a1:adj3; + dx2 = w*a2/cnstVal5; + x2 = hc-dx2; + x3 = x2+wd8; + x4 = r-x3; + x5 = r-x2; + x6 = r-wd8; + dy1 = h*a3/cnstVal4; + f1 = 4*dy1/w; + q1 = x3*x3/w; + q2 = x3-q1; + cx1 = x3/2; + cx2 = r-cx1; + q1 = h*a1/cnstVal4; + dy3 = q1-dy1; + q3 = x2*x2/w; + q4 = x2-q3; + q5 = f1*q4; + rh = b-q1; + q8 = dy1*14/16; + cx4 = x2/2; + q9 = f1*cx4; + cx5 = r-cx4; + if(shapType == "ellipseRibbon"){ + var y1, cy1, y3, q6, q7, cy3, y2, y5, y6, + cy4, cy6, y7, cy7, y8; + y1 = f1*q2; + cy1 = f1*cx1; + y3 = q5+dy3; + q6 = dy1+dy3-y3; + q7 = q6+dy1; + cy3 = q7+dy3; + y2 = (q8+rh)/2; + y5 = q5+rh; + y6 = y3+rh; + cy4 = q9+rh; + cy6 = cy3+rh; + y7 = y1+dy3; + cy7 = q1+q1-y7; + y8 = b-dy1; + // + d_val = "M" + l + "," + t + + " Q" + cx1 + "," + cy1 + " " + x3 + "," + y1 + + " L" + x2 + "," + y3 + + " Q" + hc + "," + cy3 + " " + x5 + "," + y3 + + " L" + x4 + "," + y1 + + " Q" + cx2 + "," + cy1 + " " + r + "," + t + + " L" + x6 + "," + y2 + + " L" + r + "," + rh + + " Q" + cx5 + "," + cy4 + " " + x5 + "," + y5 + + " L" + x5 + "," + y6 + + " Q" + hc + "," + cy6 + " " + x2 + "," + y6 + + " L" + x2 + "," + y5 + + " Q" + cx4 + "," + cy4 + " " + l + "," + rh + + " L" + wd8 + "," + y2 + + " z" + + "M" + x2 + "," + y5 + + " L" + x2 + "," + y3 + + "M" + x5 + "," + y3 + + " L" + x5 + "," + y5 + + "M" + x3 + "," + y1 + + " L" + x3 + "," + y7 + + "M" + x4 + "," + y7 + + " L" + x4 + "," + y1; + }else if(shapType == "ellipseRibbon2"){ + var u1, y1, cu1, cy1, q3, q5, u3, y3, q6, q7, cu3, cy3, rh, q8, u2, y2, + u5, y5, u6, y6, cu4, cy4, cu6, cy6, u7, y7, cu7, cy7; + u1 = f1*q2; + y1 = b-u1; + cu1 = f1*cx1; + cy1 = b-cu1; + u3 = q5+dy3; + y3 = b-u3; + q6 = dy1+dy3-u3; + q7 = q6+dy1; + cu3 = q7+dy3; + cy3 = b-cu3; + u2 = (q8+rh)/2; + y2 = b-u2; + u5 = q5+rh; + y5 = b-u5; + u6 = u3+rh; + y6 = b-u6; + cu4 = q9+rh; + cy4 = b-cu4; + cu6 = cu3+rh; + cy6 = b-cu6; + u7 = u1+dy3; + y7 = b-u7; + cu7 = q1+q1-u7; + cy7 = b-cu7; + // + d_val = "M" + l + "," + b + + " L" + wd8 + "," + y2 + + " L" + l + "," + q1 + + " Q" + cx4 + "," + cy4 + " " + x2 + "," + y5 + + " L" + x2 + "," + y6 + + " Q" + hc + "," + cy6 + " " + x5 + "," + y6 + + " L" + x5 + "," + y5 + + " Q" + cx5 + "," + cy4 + " " + r + "," + q1 + + " L" + x6 + "," + y2 + + " L" + r + "," + b + + " Q" + cx2 + "," + cy1 + " " + x4 + "," + y1 + + " L" + x5 + "," + y3 + + " Q" + hc + "," + cy3 + " " + x2 + "," + y3 + + " L" + x3 + "," + y1 + + " Q" + cx1 + "," + cy1 + " " + l + "," + b + + " z" + + "M" + x2 + "," + y3 + + " L" + x2 + "," + y5 + + "M" + x5 + "," + y5 + + " L" + x5 + "," + y3 + + "M" + x3 + "," + y7 + + " L" + x3 + "," + y1 + + "M" + x4 + "," + y1 + + " L" + x4 + "," + y7; + } + result += ""; + + break; + case "line": + case "straightConnector1": + case "bentConnector4": + case "bentConnector5": + case "curvedConnector2": + case "curvedConnector3": + case "curvedConnector4": + case "curvedConnector5": + if (isFlipV) { + result += ""; + break; + case "leftArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 0.25;//0.5; + var sAdj2,sAdj2_val = 0.5; + var max_sAdj2_const = w/h; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + break; + case "downArrow": + case "flowChartOffpageConnector": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 0.25;//0.5; + var sAdj2,sAdj2_val = 0.5; + var max_sAdj2_const = h/w; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + break; + case "upArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 0.25;//0.5; + var sAdj2,sAdj2_val = 0.5; + var max_sAdj2_const = h/w; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + break; + case "leftRightArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 0.25; + var sAdj2,sAdj2_val = 0.25; + var max_sAdj2_const = w/h; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + break; + case "upDownArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,sAdj1_val = 0.25; + var sAdj2,sAdj2_val = 0.25; + var max_sAdj2_const = h/w; + if(shapAdjst_ary !== undefined){ + for(var i=0; i"; + break; + case "quadArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 22500*96/914400; + var sAdj2,adj2 = 22500*96/914400; + var sAdj3,adj3 = 22500*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a2 = cnstVal1 + else a2 = adj2 + maxAdj1 = 2*a2; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + q1 = cnstVal2 - maxAdj1; + maxAdj3 = q1/2; + if(adj3 < 0) a3 = 0 + else if (adj3 > maxAdj3) a3 = maxAdj3 + else a3 = adj3 + x1 = minWH*a3/cnstVal2; + dx2 = minWH*a2/cnstVal2; + x2 = hc - dx2; + x5 = hc + dx2; + dx3 = minWH*a1/cnstVal3; + x3 = hc - dx3; + x4 = hc + dx3; + x6 = w - x1; + y2 = vc - dx2; + y5 = vc + dx2; + y3 = vc - dx3; + y4 = vc + dx3; + y6 = h - x1; + var d_val = "M" + 0 + "," + vc + + " L" + x1 + "," + y2 + + " L" + x1 + "," + y3 + + " L" + x3 + "," + y3 + + " L" + x3 + "," + x1 + + " L" + x2 + "," + x1 + + " L" + hc + "," + 0 + + " L" + x5 + "," + x1 + + " L" + x4 + "," + x1 + + " L" + x4 + "," + y3 + + " L" + x6 + "," + y3 + + " L" + x6 + "," + y2 + + " L" + w + "," + vc + + " L" + x6 + "," + y5 + + " L" + x6 + "," + y4 + + " L" + x4 + "," + y4 + + " L" + x4 + "," + y6 + + " L" + x5 + "," + y6 + + " L" + hc + "," + h + + " L" + x2 + "," + y6 + + " L" + x3 + "," + y6 + + " L" + x3 + "," + y4 + + " L" + x1 + "," + y4 + + " L" + x1 + "," + y5 + " z"; + + result += ""; + + break; + case "leftRightUpArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a2 = cnstVal1 + else a2 = adj2 + maxAdj1 = 2*a2; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + q1 = cnstVal2 - maxAdj1; + maxAdj3 = q1/2; + if(adj3 < 0) a3 = 0 + else if (adj3 > maxAdj3) a3 = maxAdj3 + else a3 = adj3 + x1 = minWH*a3/cnstVal2; + dx2 = minWH*a2/cnstVal2; + x2 = hc - dx2; + x5 = hc + dx2; + dx3 = minWH*a1/cnstVal3; + x3 = hc - dx3; + x4 = hc + dx3; + x6 = w - x1; + dy2 = minWH*a2/cnstVal1; + y2 = h - dy2; + y4 = h - dx2; + y3 = y4 - dx3; + y5 = y4 + dx3; + var d_val = "M" + 0 + "," + y4 + + " L" + x1 + "," + y2 + + " L" + x1 + "," + y3 + + " L" + x3 + "," + y3 + + " L" + x3 + "," + x1 + + " L" + x2 + "," + x1 + + " L" + hc + "," + 0 + + " L" + x5 + "," + x1 + + " L" + x4 + "," + x1 + + " L" + x4 + "," + y3 + + " L" + x6 + "," + y3 + + " L" + x6 + "," + y2 + + " L" + w + "," + y4 + + " L" + x6 + "," + h + + " L" + x6 + "," + y5 + + " L" + x1 + "," + y5 + + " L" + x1 + "," + h + " z"; + + result += ""; + + break; + case "leftUpArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a2 = cnstVal1 + else a2 = adj2 + maxAdj1 = 2*a2; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + maxAdj3 = cnstVal2 - maxAdj1; + if(adj3 < 0) a3 = 0 + else if (adj3 > maxAdj3) a3 = maxAdj3 + else a3 = adj3 + x1 = minWH*a3/cnstVal2; + dx2 = minWH*a2/cnstVal1; + x2 = w - dx2; + y2 = h - dx2; + dx4 = minWH*a2/cnstVal2; + x4 = w - dx4; + y4 = h - dx4; + dx3 = minWH*a1/cnstVal3; + x3 = x4 - dx3; + x5 = x4 + dx3; + y3 = y4 - dx3; + y5 = y4 + dx3; + var d_val = "M" + 0 + "," + y4 + + " L" + x1 + "," + y2 + + " L" + x1 + "," + y3 + + " L" + x3 + "," + y3 + + " L" + x3 + "," + x1 + + " L" + x2 + "," + x1 + + " L" + x4 + "," + 0 + + " L" + w + "," + x1 + + " L" + x5 + "," + x1 + + " L" + x5 + "," + y5 + + " L" + x1 + "," + y5 + + " L" + x1 + "," + h + " z"; + + result += ""; + + break; + case "bentUpArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a1 = cnstVal1 + else a1 = adj1 + if(adj2 < 0) a2 = 0 + else if (adj2 > cnstVal1) a2 = cnstVal1 + else a2 = adj2 + if(adj3 < 0) a3 = 0 + else if (adj3 > maxAdj3) a3 = maxAdj3 + else a3 = adj3 + y1 = minWH*a3/cnstVal2; + dx1 = minWH*a2/cnstVal1; + x1 = w - dx1; + dx3 = minWH*a2/cnstVal2; + x3 = w - dx3; + dx2 = minWH*a1/cnstVal3; + x2 = x3 - dx2; + x4 = x3 + dx2; + dy2 = minWH*a1/cnstVal2; + y2 = h - dy2; + var d_val = "M" + 0 + "," + y2 + + " L" + x2 + "," + y2 + + " L" + x2 + "," + y1 + + " L" + x1 + "," + y1 + + " L" + x3 + "," + 0 + + " L" + w + "," + y1 + + " L" + x4 + "," + y1 + + " L" + x4 + "," + h + + " L" + 0 + "," + h + " z"; + + result += ""; + + break; + case "bentArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 43750*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a2 = cnstVal1 + else a2 = adj2 + maxAdj1 = 2*a2; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + if(adj3 < 0) a3 = 0 + else if (adj3 > cnstVal1) a3 = cnstVal1 + else a3 = adj3 + var th,aw2,th2,dh2,ah,bw,bh,bs,bd,bd3,bd2, + th = minWH*a1/cnstVal2; + aw2 = minWH*a2/cnstVal2; + th2 = th/2; + dh2 = aw2-th2; + ah = minWH*a3/cnstVal2; + bw = w-ah; + bh = h-dh2; + bs = (bw maxAdj4) a4 = maxAdj4 + else a4 = adj4 + bd = minWH*a4/cnstVal2; + bd3 = bd-th; + bd2 = (bd3>0)?bd3:0; + x3 = th+bd2; + x4 = w-ah; + y3 = dh2+th; + y4 = y3+dh2; + y5 = dh2+bd; + y6 = y3+bd2; + + var d_val = "M" + 0 + "," + h + + " L" + 0 + "," + y5 + + shapeArc(bd,y5,bd,bd,180,270,false).replace("M","L") + + " L" + x4 + "," + dh2 + + " L" + x4 + "," + 0 + + " L" + w + "," + aw2 + + " L" + x4 + "," + y4 + + " L" + x4 + "," + y3 + + " L" + x3 + "," + y3 + + shapeArc(x3,y6,bd2,bd2,270,180,false).replace("M","L") + + " L" + th + "," + h + " z"; + + result += ""; + + break; + case "uturnArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 43750*96/914400; + var sAdj5,adj5 = 75000*96/914400; + var cnstVal1 = 25000*96/914400; + var cnstVal2 = 100000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a2 = cnstVal1 + else a2 = adj2 + maxAdj1 = 2*a2; + if(adj1 < 0) a1 = 0 + else if (adj1 > maxAdj1) a1 = maxAdj1 + else a1 = adj1 + q2 = a1*minWH/h; + q3 = cnstVal2 - q2; + maxAdj3 = q3*h/minWH; + if(adj3 < 0) a3 = 0 + else if (adj3 > maxAdj3) a3 = maxAdj3 + else a3 = adj3 + q1 = a3+a1; + minAdj5 = q1*minWH/h; + if(adj5 < minAdj5) a5 = minAdj5 + else if (adj5 > cnstVal2) a5 = cnstVal2 + else a5 = adj5 + + var th,aw2,th2,dh2,ah,bw,bs,bd,bd3,bd2, + th = minWH*a1/cnstVal2; + aw2 = minWH*a2/cnstVal2; + th2 = th/2; + dh2 = aw2-th2; + y5 = h*a5/cnstVal2; + ah = minWH*a3/cnstVal2; + y4 = y5-ah; + x9 = w-dh2; + bw = x9/2; + bs = (bw maxAdj4) a4 = maxAdj4 + else a4 = adj4 + bd = minWH*a4/cnstVal2; + bd3 = bd-th; + bd2 = (bd3>0)?bd3:0; + x3 = th+bd2; + x8 = w - aw2; + x6 = x8 - aw2; + x7 = x6 + dh2; + x4 = x9-bd; + x5 = x7 - bd2; + cx = (th + x7)/2 + var cy = (y4+th)/2 + var d_val = "M" + 0 + "," + h + + " L" + 0 + "," + bd + + shapeArc(bd,bd,bd,bd,180,270,false).replace("M","L") + + " L" + x4 + "," + 0 + + shapeArc(x4,bd,bd,bd,270,360,false).replace("M","L") + + " L" + x9 + "," + y4 + + " L" + w + "," + y4 + + " L" + x8 + "," + y5 + + " L" + x6 + "," + y4 + + " L" + x7 + "," + y4 + + " L" + x7 + "," + x3 + + shapeArc(x5,x3,bd2,bd2,0,-90,false).replace("M","L") + + " L" + x3 + "," + th + + shapeArc(x3,x3,bd2,bd2,270,180,false).replace("M","L") + + " L" + th + "," + h + " z"; + + result += ""; + + break; + case "stripedRightArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 50000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var cnstVal1 = 100000*96/914400; + var cnstVal2 = 200000*96/914400; + var cnstVal3 = 84375*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a1 = cnstVal1 + else a1 = adj1 + if(adj2 < 0) a2 = 0 + else if (adj2 > maxAdj2) a2 = maxAdj2 + else a2 = adj2 + x4 = minWH*5/32; + dx5 = minWH*a2/cnstVal1; + x5 = w-dx5; + dy1 = h*a1/cnstVal2; + y1 = vc-dy1; + y2 = vc+dy1; + //dx6 = dy1*dx5/hd2; + //x6 = w-dx6; + var ssd8 = minWH/8, + ssd16 = minWH/16, + ssd32 = minWH/32; + var d_val = "M" + 0 + "," + y1 + + " L" + ssd32 + "," + y1 + + " L" + ssd32 + "," + y2 + + " L" + 0 + "," + y2 + " z" + + " M" + ssd16 + "," + y1 + + " L" + ssd8 + "," + y1 + + " L" + ssd8 + "," + y2 + + " L" + ssd16 + "," + y2 +" z" + + " M" + x4 + "," + y1 + + " L" + x5 + "," + y1 + + " L" + x5 + "," + 0 + + " L" + w + "," + vc + + " L" + x5 + "," + h + + " L" + x5 + "," + y2 + + " L" + x4 + "," + y2 + " z"; + + result += ""; + + break; + case "notchedRightArrow": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 50000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var cnstVal1 = 100000*96/914400; + var cnstVal2 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; i cnstVal1) a1 = cnstVal1 + else a1 = adj1 + if(adj2 < 0) a2 = 0 + else if (adj2 > maxAdj2) a2 = maxAdj2 + else a2 = adj2 + dx2 = minWH*a2/cnstVal1; + x2 = w-dx2; + dy1 = h*a1/cnstVal2; + y1 = vc-dy1; + y2 = vc+dy1; + x1 = dy1*dx2/hd2; + var d_val = "M" + 0 + "," + y1 + + " L" + x2 + "," + y1 + + " L" + x2 + "," + 0 + + " L" + w + "," + vc + + " L" + x2 + "," + h + + " L" + x2 + "," + y2 + + " L" + 0 + "," + y2 + + " L" + x1 + "," + vc + " z"; + + result += ""; + + break; + case "homePlate": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 50000*96/914400; + var cnstVal1 = 100000*96/914400; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var a,x1,dx1,maxAdj,vc=h/2; + var minWH = Math.min(w,h); + maxAdj = cnstVal1*w/minWH; + if(adj < 0) a = 0 + else if (adj > maxAdj) a = maxAdj + else a = adj + dx1 = minWH*a/cnstVal1; + x1 = w-dx1; + var d_val = "M" + 0 + "," + 0 + + " L" + x1 + "," + 0 + + " L" + w + "," + vc + + " L" + x1 + "," + h + + " L" + 0 + "," + h + " z"; + + result += ""; + + break; + case "chevron": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 50000*96/914400; + var cnstVal1 = 100000*96/914400; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var a,x1,dx1,x2,maxAdj,vc=h/2; + var minWH = Math.min(w,h); + maxAdj = cnstVal1*w/minWH; + if(adj < 0) a = 0 + else if (adj > maxAdj) a = maxAdj + else a = adj + x1 = minWH*a/cnstVal1; + x2 = w-x1; + var d_val = "M" + 0 + "," + 0 + + " L" + x2 + "," + 0 + + " L" + w + "," + vc + + " L" + x2 + "," + h + + " L" + 0 + "," + h + + " L" + x1 + "," + vc + " z"; + + result += ""; + + + break; + case "rightArrowCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 64977*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; imaxAdj2)?maxAdj2:adj2; + maxAdj1 = a2*2; + a1 = (adj1<0)?0:(adj1>maxAdj1)?maxAdj1:adj1; + maxAdj3 = cnstVal2*w/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + q2 = a3*ss/w; + maxAdj4 = cnstVal-q2; + a4 = (adj4<0)?0:(adj4>maxAdj4)?maxAdj4:adj4; + dy1 = ss*a2/cnstVal2; + dy2 = ss*a1/cnstVal3; + y1 = vc-dy1; + y2 = vc-dy2; + y3 = vc+dy2; + y4 = vc+dy1; + dx3 = ss*a3/cnstVal2; + x3 = r-dx3; + x2 = w*a4/cnstVal2; + x1 = x2/2; + var d_val = "M" + l + "," + t + + " L" + x2 + "," + t + + " L" + x2 + "," + y2 + + " L" + x3 + "," + y2 + + " L" + x3 + "," + y1 + + " L" + r + "," + vc + + " L" + x3 + "," + y4 + + " L" + x3 + "," + y3 + + " L" + x2 + "," + y3 + + " L" + x2 + "," + b + + " L" + l + "," + b + + " z"; + result += ""; + + break; + case "downArrowCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 64977*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; imaxAdj2)?maxAdj2:adj2; + maxAdj1 = a2*2; + a1 = (adj1<0)?0:(adj1>maxAdj1)?maxAdj1:adj1; + maxAdj3 = cnstVal2*h/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + q2 = a3*ss/h; + maxAdj4 = cnstVal2-q2; + a4 = (adj4<0)?0:(adj4>maxAdj4)?maxAdj4:adj4; + dx1 = ss*a2/cnstVal2; + dx2 = ss*a1/cnstVal3; + x1 = hc-dx1; + x2 = hc-dx2; + x3 = hc+dx2; + x4 = hc+dx1; + dy3 = ss*a3/cnstVal2; + y3 = b-dy3; + y2 = h*a4/cnstVal2; + y1 = y2/2; + var d_val = "M" + l + "," + t + + " L" + r + "," + t + + " L" + r + "," + y2 + + " L" + x3 + "," + y2 + + " L" + x3 + "," + y3 + + " L" + x4 + "," + y3 + + " L" + hc + "," + b + + " L" + x1 + "," + y3 + + " L" + x2 + "," + y3 + + " L" + x2 + "," + y2 + + " L" + l + "," + y2 + + " z"; + result += ""; + + break; + case "leftArrowCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 64977*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; imaxAdj2)?maxAdj2:adj2; + maxAdj1 = a2*2; + a1 = (adj1<0)?0:(adj1>maxAdj1)?maxAdj1:adj1; + maxAdj3 = cnstVal2*w/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + q2 = a3*ss/w; + maxAdj4 = cnstVal2-q2; + a4 = (adj4<0)?0:(adj4>maxAdj4)?maxAdj4:adj4; + dy1 = ss*a2/cnstVal2; + dy2 = ss*a1/cnstVal3; + y1 = vc-dy1; + y2 = vc-dy2; + y3 = vc+dy2; + y4 = vc+dy1; + x1 = ss*a3/cnstVal2; + dx2 = w*a4/cnstVal2; + x2 = r-dx2; + x3 = (x2+r)/2; + var d_val = "M" + l + "," + vc + + " L" + x1 + "," + y1 + + " L" + x1 + "," + y2 + + " L" + x2 + "," + y2 + + " L" + x2 + "," + t + + " L" + r + "," + t + + " L" + r + "," + b + + " L" + x2 + "," + b + + " L" + x2 + "," + y3 + + " L" + x1 + "," + y3 + + " L" + x1 + "," + y4 + + " z"; + result += ""; + + break; + case "upArrowCallout": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 64977*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; + if(shapAdjst_ary !== undefined){ + for(var i=0; imaxAdj2)?maxAdj2:adj2; + maxAdj1 = a2*2; + a1 = (adj1<0)?0:(adj1>maxAdj1)?maxAdj1:adj1; + maxAdj3 = cnstVal2*h/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + q2 = a3*ss/h; + maxAdj4 = cnstVal2-q2; + a4 = (adj4<0)?0:(adj4>maxAdj4)?maxAdj4:adj4; + dx1 = ss*a2/cnstVal2; + dx2 = ss*a1/cnstVal3; + x1 = hc-dx1; + x2 = hc-dx2; + x3 = hc+dx2; + x4 = hc+dx1; + y1 = ss*a3/cnstVal2; + dy2 = h*a4/cnstVal2; + y2 = b-dy2; + y3 = (y2+b)/2; + + var d_val = "M" + l + "," + y2 + + " L" + x2 + "," + y2 + + " L" + x2 + "," + y1 + + " L" + x1 + "," + y1 + + " L" + hc + "," + t + + " L" + x4 + "," + y1 + + " L" + x3 + "," + y1 + + " L" + x3 + "," + y2 + + " L" + r + "," + y2 + + " L" + r + "," + b + + " L" + l + "," + b + + " z"; + result += ""; + break; - case "rightArrow": + case "leftRightArrowCallout": var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var sAdj1,sAdj1_val = 0.25;//0.5; - var sAdj2,sAdj2_val = 0.5; - var max_sAdj2_const = w/h; + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 25000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var sAdj4,adj4 = 48123*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; if(shapAdjst_ary !== undefined){ for(var i=0; imaxAdj2)?maxAdj2:adj2; + maxAdj1 = a2*2; + a1 = (adj1<0)?0:(adj1>maxAdj1)?maxAdj1:adj1; + maxAdj3 = cnstVal1*w/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + q2 = a3*ss/wd2; + maxAdj4 = cnstVal2-q2; + a4 = (adj4<0)?0:(adj4>maxAdj4)?maxAdj4:adj4; + dy1 = ss*a2/cnstVal2; + dy2 = ss*a1/cnstVal3; + y1 = vc-dy1; + y2 = vc-dy2; + y3 = vc+dy2; + y4 = vc+dy1; + x1 = ss*a3/cnstVal2; + x4 = r-x1; + dx2 = w*a4/cnstVal3; + x2 = hc-dx2; + x3 = hc+dx2; + var d_val = "M" + l + "," + vc + + " L" + x1 + "," + y1 + + " L" + x1 + "," + y2 + + " L" + x2 + "," + y2 + + " L" + x2 + "," + t + + " L" + x3 + "," + t + + " L" + x3 + "," + y2 + + " L" + x4 + "," + y2 + + " L" + x4 + "," + y1 + + " L" + r + "," + vc + + " L" + x4 + "," + y4 + + " L" + x4 + "," + y3 + + " L" + x3 + "," + y3 + + " L" + x3 + "," + b + + " L" + x2 + "," + b + + " L" + x2 + "," + y3 + + " L" + x1 + "," + y3 + + " L" + x1 + "," + y4 + + " z"; + result += ""; - result += " "; break; - case "leftArrow": + case "quadArrowCallout": var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var sAdj1,sAdj1_val = 0.25;//0.5; - var sAdj2,sAdj2_val = 0.5; - var max_sAdj2_const = w/h; + var sAdj1,adj1 = 18515*96/914400; + var sAdj2,adj2 = 18515*96/914400; + var sAdj3,adj3 = 18515*96/914400; + var sAdj4,adj4 = 48123*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; + var cnstVal3 = 200000*96/914400; if(shapAdjst_ary !== undefined){ for(var i=0; icnstVal1)?cnstVal1:adj2; + maxAdj1 = a2*2; + a1 = (adj1<0)?0:(adj1>maxAdj1)?maxAdj1:adj1; + maxAdj3 = cnstVal1-a2; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + q2 = a3*2; + maxAdj4 = cnstVal2-q2; + a4 = (adj4maxAdj4)?maxAdj4:adj4; + dx2 = ss*a2/cnstVal2; + dx3 = ss*a1/cnstVal3; + ah = ss*a3/cnstVal2; + dx1 = w*a4/cnstVal3; + dy1 = h*a4/cnstVal3; + x8 = r-ah; + x2 = hc-dx1; + x7 = hc+dx1; + x3 = hc-dx2; + x6 = hc+dx2; + x4 = hc-dx3; + x5 = hc+dx3; + y8 = b-ah; + y2 = vc-dy1; + y7 = vc+dy1; + y3 = vc-dx2; + y6 = vc+dx2; + y4 = vc-dx3; + y5 = vc+dx3; + var d_val = "M" + l + "," + vc + + " L" + ah + "," + y3 + + " L" + ah + "," + y4 + + " L" + x2 + "," + y4 + + " L" + x2 + "," + y2 + + " L" + x4 + "," + y2 + + " L" + x4 + "," + ah + + " L" + x3 + "," + ah + + " L" + hc + "," + t + + " L" + x6 + "," + ah + + " L" + x5 + "," + ah + + " L" + x5 + "," + y2 + + " L" + x7 + "," + y2 + + " L" + x7 + "," + y4 + + " L" + x8 + "," + y4 + + " L" + x8 + "," + y3 + + " L" + r + "," + vc + + " L" + x8 + "," + y6 + + " L" + x8 + "," + y5 + + " L" + x7 + "," + y5 + + " L" + x7 + "," + y7 + + " L" + x5 + "," + y7 + + " L" + x5 + "," + y8 + + " L" + x6 + "," + y8 + + " L" + hc + "," + b + + " L" + x3 + "," + y8 + + " L" + x4 + "," + y8 + + " L" + x4 + "," + y7 + + " L" + x2 + "," + y7 + + " L" + x2 + "," + y5 + + " L" + ah + "," + y5 + + " L" + ah + "," + y6 + + " z"; - result += " "; + break; - case "downArrow": + case "curvedDownArrow": var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var sAdj1,sAdj1_val = 0.25;//0.5; - var sAdj2,sAdj2_val = 0.5; - var max_sAdj2_const = h/w; + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; if(shapAdjst_ary !== undefined){ for(var i=0; i"; - break; - case "upArrow": + maxAdj2 = cnstVal1*w/ss; + a2 = (adj2<0)?0:(adj2>maxAdj2)?maxAdj2:adj2; + a1 = (adj1<0)?0:(adj1>cnstVal2)?cnstVal2:adj1; + th = ss*a1/cnstVal2; + aw = ss*a2/cnstVal2; + q1 = (th+aw)/4; + wR = wd2-q1; + q7 = wR*2; + q8 = q7*q7; + q9 = th*th; + q10 = q8-q9; + q11 = Math.sqrt(q10); + idy = q11*h/q7; + maxAdj3 = cnstVal2*idy/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + ah = ss*adj3/cnstVal2; + x3 = wR+th; + q2 = h*h; + q3 = ah*ah; + q4 = q2-q3; + q5 = Math.sqrt(q4); + dx = q5*wR/h; + x5 = wR+dx; + x7 = x3+dx; + q6 = aw-th; + dh = q6/2; + x4 = x5-dh; + x8 = x7+dh; + aw2 = aw/2; + x6 = r-aw2; + y1 = b-ah; + swAng = Math.atan(dx/ah); + var swAngDeg = swAng*180/Math.PI; + mswAng = -swAngDeg; + iy = b-idy; + ix = (wR+x3)/2; + q12 = th/2; + dang2 = Math.atan(q12/idy); + var dang2Deg = dang2*180/Math.PI; + stAng = c3d4+swAngDeg; + stAng2 = c3d4-dang2Deg; + swAng2 = dang2Deg-cd4; + swAng3 = cd4+dang2Deg; + //var cX = x5 - Math.cos(stAng*Math.PI/180) * wR; + //var cY = y1 - Math.sin(stAng*Math.PI/180) * h; + + var d_val = "M" + x6 + "," + b + + " L" + x4 + "," + y1 + + " L" + x5 + "," + y1 + + shapeArc(wR,h,wR,h,stAng,(stAng+mswAng),false).replace("M","L") + + " L" + x3 + "," + t + + shapeArc(x3,h,wR,h,c3d4,(c3d4+swAngDeg),false).replace("M","L") + + " L" + (x5+th)+ "," + y1 + + " L" + x8 + "," + y1 + + " z" + + "M" + x3 + "," + t + + shapeArc(x3,h,wR,h,stAng2,(stAng2+swAng2),false).replace("M","L") + + shapeArc(wR,h,wR,h,cd2,(cd2+swAng3),false).replace("M","L"); + + result += ""; + + break; + case "curvedLeftArrow": var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var sAdj1,sAdj1_val = 0.25;//0.5; - var sAdj2,sAdj2_val = 0.5; - var max_sAdj2_const = h/w; + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; if(shapAdjst_ary !== undefined){ for(var i=0; i"; + var vc = h/2, hc = w/2 , hd2=h/2, r = w,b=h , l=0 , t=0 ,c3d4=270 ,cd2=180,cd4=90; + var ss = Math.min(w,h); + var maxAdj2, a2, a1, th, aw, q1, hR, q7, q8, q9, q10, q11, idx, maxAdj3, a3, ah, y3, q2, q3, q4, q5, dy, y5, y7, q6, dh, y4, y8, aw2, y6, x1, swAng, mswAng, ix, iy, q12, dang2, swAng2, swAng3, stAng3; + + maxAdj2 = cnstVal1*h/ss; + a2 = (adj2<0)?0:(adj2>maxAdj2)?maxAdj2:adj2; + a1 = (adj1<0)?0:(adj1>a2)?a2:adj1; + th = ss*a1/cnstVal2; + aw = ss*a2/cnstVal2; + q1 = (th+aw)/4; + hR = hd2-q1; + q7 = hR*2; + q8 = q7*q7; + q9 = th*th; + q10 = q8-q9; + q11 = Math.sqrt(q10); + idx = q11*w/q7; + maxAdj3 = cnstVal2*idx/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + ah = ss*a3/cnstVal2; + y3 = hR+th; + q2 = w*w; + q3 = ah*ah; + q4 = q2-q3; + q5 = Math.sqrt(q4); + dy = q5*hR/w; + y5 = hR+dy; + y7 = y3+dy; + q6 = aw-th; + dh = q6/2; + y4 = y5-dh; + y8 = y7+dh; + aw2 = aw/2; + y6 = b-aw2; + x1 = l+ah; + swAng = Math.atan(dy/ah); + mswAng = -swAng; + ix = l+idx; + iy = (hR+y3)/2; + q12 = th/2; + dang2 = Math.atan(q12/idx); + swAng2 = dang2-swAng; + swAng3 = swAng+dang2; + stAng3 = -dang2; + var swAngDg,swAng2Dg,swAng3Dg,stAng3dg; + swAngDg = swAng*180/Math.PI; + swAng2Dg = swAng2*180/Math.PI; + swAng3Dg = swAng3*180/Math.PI; + stAng3dg = stAng3*180/Math.PI; + + var d_val = "M" + r+ "," + y3 + + shapeArc(l,hR,w,hR,0,-cd4,false).replace("M","L") + + " L" + l+ "," + t + + shapeArc(l,y3,w,hR,c3d4,(c3d4+cd4),false).replace("M","L") + + " L" + r+ "," + y3 + + shapeArc(l,y3,w,hR,0,swAngDg,false).replace("M","L") + + " L" + x1+ "," + y7 + + " L" + x1+ "," + y8 + + " L" + l+ "," + y6 + + " L" + x1+ "," + y4 + + " L" + x1+ "," + y5 + + shapeArc(l,hR,w,hR,swAngDg,(swAngDg+swAng2Dg),false).replace("M","L")+ + shapeArc(l,hR,w,hR,0,-cd4,false).replace("M","L")+ + shapeArc(l,y3,w,hR,c3d4,(c3d4+cd4),false).replace("M","L"); + + result += ""; + break; - case "leftRightArrow": + case "curvedRightArrow": var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var sAdj1,sAdj1_val = 0.25; - var sAdj2,sAdj2_val = 0.25; - var max_sAdj2_const = w/h; + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; if(shapAdjst_ary !== undefined){ for(var i=0; i"; + break; - case "upDownArrow": + case "curvedUpArrow": var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); - var sAdj1,sAdj1_val = 0.25; - var sAdj2,sAdj2_val = 0.25; - var max_sAdj2_const = h/w; + var sAdj1,adj1 = 25000*96/914400; + var sAdj2,adj2 = 50000*96/914400; + var sAdj3,adj3 = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 100000*96/914400; if(shapAdjst_ary !== undefined){ for(var i=0; imaxAdj2)?maxAdj2:adj2; + a1 = (adj1<0)?0:(adj1>cnstVal2)?cnstVal2:adj1; + th = ss*a1/cnstVal2; + aw = ss*a2/cnstVal2; + q1 = (th+aw)/4; + wR = wd2-q1; + q7 = wR*2; + q8 = q7*q7; + q9 = th*th; + q10 = q8-q9; + q11 = Math.sqrt(q10); + idy = q11*h/q7; + maxAdj3 = cnstVal2*idy/ss; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + ah = ss*adj3/cnstVal2; + x3 = wR+th; + q2 = h*h; + q3 = ah*ah; + q4 = q2-q3; + q5 = Math.sqrt(q4); + dx = q5*wR/h; + x5 = wR+dx; + x7 = x3+dx; + q6 = aw-th; + dh = q6/2; + x4 = x5-dh; + x8 = x7+dh; + aw2 = aw/2; + x6 = r-aw2; + y1 = t+ah; + swAng = Math.atan(dx/ah); + mswAng = -swAng; + iy = t+idy; + ix = (wR+x3)/2; + q12 = th/2; + dang2 = Math.atan(q12/idy); + swAng2 = dang2-swAng; + mswAng2 = -swAng2; + stAng3 = Math.PI/2-swAng; + swAng3 = swAng+dang2; + stAng2 = Math.PI/2-dang2; + + var stAng2dg,swAng2dg,swAngDg,swAng2dg; + stAng2dg = stAng2*180/Math.PI; + swAng2dg = swAng2*180/Math.PI; + stAng3dg = stAng3*180/Math.PI; + swAngDg = swAng*180/Math.PI; - result += " "; + + break; + case "mathDivide": + case "mathEqual": + case "mathMinus": + case "mathMultiply": + case "mathNotEqual": + case "mathPlus": + var shapAdjst_ary = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd"]); + var sAdj1,adj1; + var sAdj2,adj2; + var sAdj3,adj3; + if(shapAdjst_ary !== undefined){ + if(shapAdjst_ary.constructor === Array){ + for(var i=0; icnstVal1)?cnstVal1:adj1; + crAng = (adj2angVal2)?angVal2:adj2; + a2a1 = a1*2; + maxAdj3 = cnstVal2-a2a1; + a3 = (adj3<0)?0:(adj3>maxAdj3)?maxAdj3:adj3; + dy1 = h*a1/cnstVal2; + dy2 = h*a3/cnstVal3; + dx1 = w*cnstVal4/cnstVal3; + x1 = hc-dx1; + x8 = hc+dx1; + y2 = vc-dy2; + y3 = vc+dy2; + y1 = y2-dy1; + y4 = y3+dy1; + cadj2 = crAng-Math.PI/2; + xadj2 = hd2*Math.tan(cadj2); + len = Math.sqrt(xadj2*xadj2 + hd2*hd2); + bhw = len*dy1/hd2; + bhw2 = bhw/2; + x7 = hc+xadj2-bhw2; + dx67 = xadj2*y1/hd2; + x6 = x7-dx67; + dx57 = xadj2*y2/hd2; + x5 = x7-dx57; + dx47 = xadj2*y3/hd2; + x4 = x7-dx47; + dx37 = xadj2*y4/hd2; + x3 = x7-dx37; + dx27 = xadj2*2; + x2 = x7-dx27; + rx7 = x7+bhw; + rx6 = x6+bhw; + rx5 = x5+bhw; + rx4 = x4+bhw; + rx3 = x3+bhw; + rx2 = x2+bhw; + dx7 = dy1*hd2/len; + rxt = x7+dx7; + lxt = rx7-dx7; + rx = (cadj2 > 0)?rxt:rx7; + lx = (cadj2 > 0)?x7:lxt; + dy3 = dy1*xadj2/len; + dy4 = -dy3; + ry = (cadj2 > 0)?dy3:0; + ly = (cadj2 > 0)?0:dy4; + dlx = w-rx; + drx = w-lx; + dly = h-ry; + dry = h-ly; + xC1 = (rx+lx)/2; + xC2 = (drx+dlx)/2; + yC1 = (ry+ly)/2; + yC2 = (y1+y2)/2; + yC3 = (y3+y4)/2; + yC4 = (dry+dly)/2; + + dVal = "M" + x1 + "," + y1 + + " L" + x6 + "," + y1 + + " L" + lx + "," + ly + + " L" + rx + "," + ry + + " L" + rx6 + "," + y1 + + " L" + x8 + "," + y1 + + " L" + x8 + "," + y2 + + " L" + rx5 + "," + y2 + + " L" + rx4 + "," + y3 + + " L" + x8 + "," + y3 + + " L" + x8 + "," + y4 + + " L" + rx3 + "," + y4 + + " L" + drx + "," + dry + + " L" + dlx + "," + dly + + " L" + x3 + "," + y4 + + " L" + x1 + "," + y4 + + " L" + x1 + "," + y3 + + " L" + x4 + "," + y3 + + " L" + x5 + "," + y2 + + " L" + x1 + "," + y2 + + " z"; + }else if(shapType == "mathDivide"){ + if(shapAdjst_ary === undefined){ + adj1 = 23520*96/914400; + adj2 = 5880*96/914400; + adj3 = 11760*96/914400; + }else{ + adj1 = adj1*96/914400; + adj2 = adj2*96/914400; + adj3 = adj3*96/914400; + } + var a1, ma1, ma3h, ma3w, maxAdj3, a3, m4a3, maxAdj2, a2, dy1, yg, rad, dx1, + y3, y4, a, y2, y1, y5, x1, x3, x2; + var cnstVal4 = 1000*96/914400; + var cnstVal5 = 36745*96/914400; + var cnstVal6 = 73490*96/914400; + a1 = (adj1cnstVal5)?cnstVal5:adj1; + ma1 = -a1; + ma3h = (cnstVal6+ma1)/4; + ma3w = cnstVal5*w/h; + maxAdj3 = (ma3hmaxAdj3)?maxAdj3:adj3; + m4a3 = -4*a3; + maxAdj2 = cnstVal6+m4a3-a1; + a2 = (adj2<0)?0:(adj2>maxAdj2)?maxAdj2:adj2; + dy1 = h*a1/cnstVal3; + yg = h*a2/cnstVal2; + rad = h*a3/cnstVal2; + dx1 = w*cnstVal6/cnstVal3; + y3 = vc-dy1; + y4 = vc+dy1; + a = yg+rad; + y2 = y3-a; + y1 = y2-rad; + y5 = h-y1; + x1 = hc-dx1; + x3 = hc+dx1; + x2 = hc-rad; + var cd4=90,c3d4=270; + var cX1 = hc - Math.cos(c3d4*Math.PI/180) * rad; + var cY1 = y1 - Math.sin(c3d4*Math.PI/180) * rad; + var cX2 = hc - Math.cos(Math.PI/2) * rad; + var cY2 = y5 - Math.sin(Math.PI/2) * rad; + dVal = "M" + hc + "," + y1 + + shapeArc(cX1,cY1,rad,rad,c3d4,c3d4+360,false).replace("M","L") + + " z" + + " M" + hc + "," + y5 + + shapeArc(cX2,cY2,rad,rad,cd4,cd4+360,false).replace("M","L") + + " z" + + " M" + x1 + "," + y3 + + " L" + x3 + "," + y3 + + " L" + x3 + "," + y4 + + " L" + x1 + "," + y4 + + " z"; + }else if(shapType == "mathEqual"){ + if(shapAdjst_ary === undefined){ + adj1 = 23520*96/914400; + adj2 = 11760*96/914400; + }else{ + adj1 = adj1*96/914400; + adj2 = adj2*96/914400; + } + var cnstVal5 = 36745*96/914400; + var cnstVal6 = 73490*96/914400; + var a1, a2a1, mAdj2, a2, dy1, dy2, dx1, y2, y3, y1, y4, x1, x2, yC1, yC2; + + a1 = (adj1<0)?0:(adj1>cnstVal5)?cnstVal5:adj1; + a2a1 = a1*2; + mAdj2 = cnstVal2-a2a1; + a2 = (adj2<0)?0:(adj2>mAdj2)?mAdj2:adj2; + dy1 = h*a1/cnstVal2; + dy2 = h*a2/cnstVal3; + dx1 = w*cnstVal6/cnstVal3; + y2 = vc-dy2; + y3 = vc+dy2; + y1 = y2-dy1; + y4 = y3+dy1; + x1 = hc-dx1; + x2 = hc+dx1; + yC1 = (y1+y2)/2; + yC2 = (y3+y4)/2; + dVal = "M" + x1 + "," + y1 + + " L" + x2 + "," + y1 + + " L" + x2 + "," + y2 + + " L" + x1 + "," + y2 + + " z" + + "M" + x1 + "," + y3 + + " L" + x2 + "," + y3 + + " L" + x2 + "," + y4 + + " L" + x1 + "," + y4 + + " z"; + }else if(shapType == "mathMinus"){ + if(shapAdjst_ary === undefined){ + adj1 = 23520*96/914400; + }else{ + adj1 = adj1*96/914400; + } + var cnstVal6 = 73490*96/914400; + var a1, dy1, dx1, y1, y2, x1, x2; + a1 = (adj1<0)?0:(adj1>cnstVal2)?cnstVal2:adj1; + dy1 = h*a1/cnstVal3; + dx1 = w*cnstVal6/cnstVal3; + y1 = vc-dy1; + y2 = vc+dy1; + x1 = hc-dx1; + x2 = hc+dx1; + + dVal = "M" + x1 + "," + y1 + + " L" + x2 + "," + y1 + + " L" + x2 + "," + y2 + + " L" + x1 + "," + y2 + + " z"; + }else if(shapType == "mathMultiply"){ + if(shapAdjst_ary === undefined){ + adj1 = 23520*96/914400; + }else{ + adj1 = adj1*96/914400; + } + var cnstVal6 = 51965*96/914400; + var a1, th, a, sa, ca, ta, dl, rw, lM, xM, yM, dxAM, dyAM, + xA, yA, xB, yB, xBC, yBC, yC, xD, xE, yFE, xFE, xF, xL, yG, yH, yI, xC2, yC3; + var ss = Math.min(w,h); + a1 = (adj1<0)?0:(adj1>cnstVal6)?cnstVal6:adj1; + th = ss*a1/cnstVal2; + a = Math.atan(h/w); + sa = 1*Math.sin(a); + ca = 1*Math.cos(a); + ta = 1*Math.tan(a); + dl = Math.sqrt(w*w + h*h); + rw = dl*cnstVal6/cnstVal2; + lM = dl-rw; + xM = ca*lM/2; + yM = sa*lM/2; + dxAM = sa*th/2; + dyAM = ca*th/2; + xA = xM-dxAM; + yA = yM+dyAM; + xB = xM+dxAM; + yB = yM-dyAM; + xBC = hc-xB; + yBC = xBC*ta; + yC = yBC+yB; + xD = w-xB; + xE = w-xA; + yFE = vc-yA; + xFE = yFE/ta; + xF = xE-xFE; + xL = xA+xFE; + yG = h-yA; + yH = h-yB; + yI = h-yC; + xC2 = w-xM; + yC3 = h-yM; + + dVal = "M" + xA + "," + yA + + " L" + xB + "," + yB + + " L" + hc + "," + yC + + " L" + xD + "," + yB + + " L" + xE + "," + yA + + " L" + xF + "," + vc + + " L" + xE + "," + yG + + " L" + xD + "," + yH + + " L" + hc + "," + yI + + " L" + xB + "," + yH + + " L" + xA + "," + yG + + " L" + xL + "," + vc + + " z"; + }else if(shapType == "mathPlus"){ + if(shapAdjst_ary === undefined){ + adj1 = 23520*96/914400; + }else{ + adj1 = adj1*96/914400; + } + var cnstVal6 = 73490*96/914400; + var ss = Math.min(w,h); + var a1, dx1, dy1, dx2, x1, x2, x3, x4, y1, y2, y3, y4; + + a1 = (adj1<0)?0:(adj1>cnstVal6)?cnstVal6:adj1; + dx1 = w*cnstVal6/cnstVal3; + dy1 = h*cnstVal6/cnstVal3; + dx2 = ss*a1/cnstVal3; + x1 = hc-dx1; + x2 = hc-dx2; + x3 = hc+dx2; + x4 = hc+dx1; + y1 = vc-dy1; + y2 = vc-dx2; + y3 = vc+dx2; + y4 = vc+dy1; + + dVal = "M" + x1 + "," + y2 + + " L" + x2 + "," + y2 + + " L" + x2 + "," + y1 + + " L" + x3 + "," + y1 + + " L" + x3 + "," + y2 + + " L" + x4 + "," + y2 + + " L" + x4 + "," + y3 + + " L" + x3 + "," + y3 + + " L" + x3 + "," + y4 + + " L" + x2 + "," + y4 + + " L" + x2 + "," + y3 + + " L" + x1 + "," + y3 + + " z"; + } + result += ""; + + //console.log(shapType); + break; + case "can": + case "flowChartMagneticDisk": + case "flowChartMagneticDrum": + var shapAdjst = getTextByPathList(node, ["p:spPr", "a:prstGeom","a:avLst","a:gd","attrs","fmla"]); + var adj = 25000*96/914400; + var cnstVal1 = 50000*96/914400; + var cnstVal2 = 200000*96/914400; + if(shapAdjst !== undefined){ + adj = parseInt(shapAdjst.substr(4))*96/914400; + } + var ss = Math.min(w,h); + var maxAdj, a, y1, y2, y3,dVal; + if(shapType == "flowChartMagneticDisk" || shapType == "flowChartMagneticDrum"){ + adj = 50000*96/914400; + } + maxAdj = cnstVal1*h/ss; + a = (adj<0)?0:(adj>maxAdj)?maxAdj:adj; + y1 = ss*a/cnstVal2; + y2 = y1+y1; + y3 = h-y1; + var cd2=180 , wd2 = w/2; + + var tranglRott = ""; + if(shapType == "flowChartMagneticDrum"){ + tranglRott = "transform='rotate(90 " + w/2 +"," + h/2 + ")'"; + } + dVal = shapeArc(wd2,y1,wd2,y1,0,cd2,false) + + shapeArc(wd2,y1,wd2,y1,cd2,cd2+cd2,false).replace("M","L") + + " L" + w + "," + y3 + + shapeArc(wd2,y3,wd2,y1,0,cd2,false).replace("M","L") + + " L" + 0 + "," + y1; + + result += ""; + break; - case "bentArrow": - case "bentUpArrow": - case "stripedRightArrow": - case "quadArrow": - case "circularArrow": case "swooshArrow": - case "leftRightUpArrow": - case "leftUpArrow": case "leftCircularArrow": - case "notchedRightArrow": - case "curvedDownArrow": - case "curvedLeftArrow": - case "curvedRightArrow": - case "curvedUpArrow": - case "uturnArrow": case "leftRightCircularArrow": + console.log(shapType); break; case undefined: default: - console.warn("Undefine shape type."); + console.warn("Undefine shape type.("+shapType+")"); } result += ""; @@ -1386,8 +5880,6 @@ }); } if(arcToNodes !== undefined){ - //TODO - var arcToNodesAttrs = arcToNodes["attrs"]; var arcOrder = arcToNodesAttrs["order"]; var hR = arcToNodesAttrs["hR"]; @@ -1445,7 +5937,7 @@ //var shftY = parseInt(sortByOrder[k].shftY) * 96 / 914400; var endAng = stAng + swAng; - d += shapeArc(hR,wR,hR,wR,stAng,endAng); + d += shapeArc(wR,hR,wR,hR,stAng,endAng,false); k++; } } @@ -1597,21 +6089,76 @@ d += " "; return d; } - function shapeArc(cX,cY,rX,rY,stAng,endAng){ + function shapeArc(cX,cY,rX,rY,stAng,endAng , isClose){ var dData; var angle = stAng; - while(angle <= endAng){ - var radians = angle * (Math.PI / 180); // convert degree to radians - var x = cX + Math.cos(radians) * rX; - var y = cY + Math.sin(radians) * rY; - if(angle == stAng){ - dData = " M "+ x + " " + y; + if(endAng >= stAng){ + while(angle <= endAng){ + var radians = angle * (Math.PI / 180); // convert degree to radians + var x = cX + Math.cos(radians) * rX; + var y = cY + Math.sin(radians) * rY; + if(angle == stAng){ + dData = " M"+ x + " " + y; + } + dData += " L"+ x + " " + y ; + angle++; } - dData += " L "+ x + " " + y; - angle++; + }else{ + while(angle > endAng){ + var radians = angle * (Math.PI / 180); // convert degree to radians + var x = cX + Math.cos(radians) * rX; + var y = cY + Math.sin(radians) * rY; + if(angle == stAng){ + dData = " M "+ x + " " + y; + } + dData += " L "+ x + " " + y ; + angle--; + } } + dData += (isClose?" z":""); return dData; } + function shapeSnipRoundRect(w,h,adj1,adj2,shapeType,adjType){ + /* + shapeType: snip,round + adjType: cornr1,cornr2,cornrAll,diag + */ + var adjA,adjB,adjC,adjD; + if(adjType == "cornr1"){ + adjA = 0; + adjB = 0; + adjC = 0; + adjD = adj1; + }else if(adjType == "cornr2"){ + adjA = adj1; + adjB = adj2; + adjC = adj2; + adjD = adj1; + }else if(adjType == "cornrAll"){ + adjA = adj1; + adjB = adj1; + adjC = adj1; + adjD = adj1; + }else if(adjType == "diag"){ + adjA = adj1; + adjB = adj2; + adjC = adj1; + adjD = adj2; + } + //d is a string that describes the path of the slice. + var d; + if(shapeType == "round"){ + d = "M0" + "," + (h/2 + (1-adjB)*(h/2)) + " Q" +0+ "," + h +" " + adjB*(w/2) +"," + h + " L" + (w/2 + (1-adjC)*(w/2)) + "," + h + + " Q" + w + "," + h + " "+ w + "," +(h/2 + (h/2)*(1-adjC)) + "L" + w + "," + (h/2)*adjD + + " Q" + w + "," + 0 + " " + (w/2 + (w/2)*(1-adjD)) + ",0 L" + (w/2)*adjA + ",0" + + " Q" + 0 + "," + 0 + " 0," + (h/2)*(adjA) + " z"; + }else if(shapeType == "snip"){ + d = "M0" + "," + adjA*(h/2) + " L0" + "," + (h/2 + (h/2)*(1-adjB)) + "L" + adjB*(w/2) + "," + h + + " L" + (w/2 + (w/2)*(1-adjC)) + "," + h + "L" + w + "," + (h/2 + (h/2)*(1-adjC)) + + " L" + w + "," + adjD*(h/2) + "L" + (w/2 + (w/2)*(1-adjD)) + ",0 L" + ((w/2)*adjA) + ",0 z"; + } + return d; + } /* function shapePolygon(sidesNum) { var sides = sidesNum; @@ -4254,175 +8801,10 @@ return text.replace(/[&<>"']/g, function(m) { return map[m]; }); } /////////////////////////////////////tXml/////////////////////////// - function tXml(S) { - - "use strict"; - var openBracket = "<"; - var openBracketCC = "<".charCodeAt(0); - var closeBracket = ">"; - var closeBracketCC = ">".charCodeAt(0); - var minus = "-"; - var minusCC = "-".charCodeAt(0); - var slash = "/"; - var slashCC = "/".charCodeAt(0); - var exclamation = '!'; - var exclamationCC = '!'.charCodeAt(0); - var singleQuote = "'"; - var singleQuoteCC = "'".charCodeAt(0); - var doubleQuote = '"'; - var doubleQuoteCC = '"'.charCodeAt(0); - var questionMark = '?'; - var questionMarkCC = '?'.charCodeAt(0); - - /** - * returns text until the first nonAlphebetic letter - */ - var nameSpacer = "\r\n\t>/= "; - - var pos = 0; - - /** - * Parsing a list of entries - */ - function parseChildren() { - var children = []; - while (S[pos]) { - if (S.charCodeAt(pos) == openBracketCC) { - if (S.charCodeAt(pos+1) === slashCC) { // ') { pos++; } - pos = S.indexOf(closeBracket, pos); - return children; - } else if (S.charCodeAt(pos+1) === exclamationCC) { // 64 && c < 91) || (c > 96 && c < 123)) { - startNamePos = pos; - for (; nameSpacer.indexOf(S[pos]) === -1; pos++) {} - var name = S.slice(startNamePos, pos); - // search beginning of the string - var code = S.charCodeAt(pos); - while (code !== singleQuoteCC && code !== doubleQuoteCC) { - pos++; - code = S.charCodeAt(pos); - } - - var startChar = S[pos]; - var startStringPos= ++pos; - pos = S.indexOf(startChar, startStringPos); - var value = S.slice(startStringPos, pos); - if (!attrFound) { - node_attributes = {}; - attrFound = true; - } - node_attributes[name] = value; - } - } - - // Optional parsing of children - if (S.charCodeAt(pos-1) !== slashCC) { - pos++; - var node_children = parseChildren(); - } - - children.push({ - "children": node_children, - "tagName": node_tagName, - "attrs": node_attributes - }); - - } else { - var startTextPos = pos; - pos = S.indexOf(openBracket, pos) - 1; // Skip characters until '<' - if (pos === -2) { - pos = S.length; - } - var text = S.slice(startTextPos, pos + 1); - if (text.trim().length > 0) { - children.push(text); - } - } - pos++; - } - return children; - } - - _order = 1; - return simplefy(parseChildren()); - } - - function simplefy(children) { - var node = {}; - - if (children === undefined) { - return {}; - } - - // Text node (e.g. This is text.) - if (children.length === 1 && typeof children[0] == 'string') { - return children[0]; - } - - // map each object - children.forEach(function (child) { - - if (!node[child.tagName]) { - node[child.tagName] = []; - } - - if (typeof child === 'object') { - var kids = simplefy(child.children); - if (child.attrs) { - kids.attrs = child.attrs; - } - - if (kids["attrs"] === undefined) { - kids["attrs"] = {"order": _order}; - } else { - kids["attrs"]["order"] = _order; - } - _order++; - node[child.tagName].push(kids); - } - }); - - for (var i in node) { - if (node[i].length == 1) { - node[i] = node[i][0]; - } - } - - return node; - }; + /* + This is my custom tXml.js file + */ + function tXml(t,r){"use strict";function e(){for(var r=[];t[l];)if(t.charCodeAt(l)==s){if(t.charCodeAt(l+1)===h)return l=t.indexOf(u,l),l+1&&(l+=1),r;if(t.charCodeAt(l+1)===v){if(t.charCodeAt(l+2)==m){for(;-1!==l&&(t.charCodeAt(l)!==d||t.charCodeAt(l-1)!=m||t.charCodeAt(l-2)!=m||-1==l);)l=t.indexOf(u,l+1);-1===l&&(l=t.length)}else for(l+=2;t.charCodeAt(l)!==d&&t[l];)l++;l++;continue}var e=a();r.push(e)}else{var i=n();i.trim().length>0&&r.push(i),l++}return r}function n(){var r=l;return l=t.indexOf(c,l)-1,-2===l&&(l=t.length),t.slice(r,l+1)}function i(){for(var r=l;-1===A.indexOf(t[l])&&t[l];)l++;return t.slice(r,l)}function a(){var r={};l++,r.tagName=i();for(var n=!1;t.charCodeAt(l)!==d&&t[l];){var a=t.charCodeAt(l);if(a>64&&91>a||a>96&&123>a){for(var f=i(),c=t.charCodeAt(l);c&&c!==p&&c!==g&&!(c>64&&91>c||c>96&&123>c)&&c!==d;)l++,c=t.charCodeAt(l);if(n||(r.attributes={},n=!0),c===p||c===g){var s=o();if(-1===l)return r}else s=null,l--;r.attributes[f]=s}l++}if(t.charCodeAt(l-1)!==h)if("script"==r.tagName){var u=l+1;l=t.indexOf("",l),r.children=[t.slice(u,l-1)],l+=8}else if("style"==r.tagName){var u=l+1;l=t.indexOf("",l),r.children=[t.slice(u,l-1)],l+=7}else-1==C.indexOf(r.tagName)&&(l++,r.children=e(f));else l++;return r}function o(){var r=t[l],e=++l;return l=t.indexOf(r,e),t.slice(e,l)}function f(){var e=new RegExp("\\s"+r.attrName+"\\s*=['\"]"+r.attrValue+"['\"]").exec(t);return e?e.index:-1}r=r||{};var l=r.pos||0,c="<",s="<".charCodeAt(0),u=">",d=">".charCodeAt(0),m="-".charCodeAt(0),h="/".charCodeAt(0),v="!".charCodeAt(0),p="'".charCodeAt(0),g='"'.charCodeAt(0),A="\n >/= ",C=["img","br","input","meta","link"],y=null;if(void 0!==r.attrValue){r.attrName=r.attrName||"id";for(var y=[];-1!==(l=f());)l=t.lastIndexOf("<",l),-1!==l&&y.push(a()),t=t.substr(l),l=0}else y=r.parseNode?a():e();return r.filter&&(y=tXml.filter(y,r.filter)),r.simplify&&(y=tXml.simplify(y)),y.pos=l,y}var _order=1;tXml.simplify=function(t){var r={};if(void 0===t)return{};if(1===t.length&&"string"==typeof t[0])return t[0];t.forEach(function(t){if("object"==typeof t){r[t.tagName]||(r[t.tagName]=[]);var e=tXml.simplify(t.children||[]);r[t.tagName].push(e),t.attributes&&(e.attrs=t.attributes),void 0===e.attrs?e.attrs={order:_order}:e.attrs.order=_order,_order++}});for(var e in r)1==r[e].length&&(r[e]=r[e][0]);return r},tXml.filter=function(t,r){var e=[];return t.forEach(function(t){if("object"==typeof t&&r(t)&&e.push(t),t.children){var n=tXml.filter(t.children,r);e=e.concat(n)}}),e},tXml.stringify=function(t){function r(t){if(t)for(var r=0;r"}var n="";return r(t),n},tXml.toContentString=function(t){if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=" "+tXml.toContentString(t),r=r.trim()}),r}return"object"==typeof t?tXml.toContentString(t.children):" "+t},tXml.getElementById=function(t,r,e){var n=tXml(t,{attrValue:r,simplify:e});return e?n:n[0]},tXml.getElementsByClassName=function(t,r,e){return tXml(t,{attrName:"class",attrValue:"[a-zA-Z0-9-s ]*"+r+"[a-zA-Z0-9-s ]*",simplify:e})},tXml.parseStream=function(t,r){if("function"==typeof r&&(cb=r,r=0),"string"==typeof r&&(r=r.length+2),"string"==typeof t){var e=require("fs");t=e.createReadStream(t,{start:r}),r=0}var n=r,i="",a=0;return t.on("data",function(r){a++,i+=r;for(var e=0;;){n=i.indexOf("<",n)+1;var o=tXml(i,{pos:n,parseNode:!0});if(n=o.pos,n>i.length-1||e>n)return void(e&&(i=i.slice(e),n=0,e=0));t.emit("xml",o),e=n}i=i.slice(n),n=0}),t.on("end",function(){console.log("end")}),t},"object"==typeof module&&(module.exports=tXml); }; /*! diff --git a/js/pptxjs.min.js b/js/pptxjs.min.js index b6b1753..1821772 100644 --- a/js/pptxjs.min.js +++ b/js/pptxjs.min.js @@ -1,10 +1,12 @@ /** * pptxjs.js - * Ver. : 1.1.0 + * Ver. : 1.9.0 * Author: meshesha , https://github.com/meshesha * LICENSE: MIT * url:https://github.com/meshesha/PPTXjs */ -!function(r){r.fn.pptxToHtml=function(t){function e(a){var t=new JSZip;t=t.load(a);for(var e=s(t),i=0;i"+e[i].data+"");break;case"ExecutionTime":vr(Ar),br(r(".block")),br(r("table td")),Fr.slideMode&&!Br?(Br=!0,r("#"+Tr+" .slide").hide(),setTimeout(function(){var a=Fr.slideModeConfig;r(".slides-loadnig-msg").remove(),r("#"+Tr).divs2slides({first:a.first,nav:a.nav,showPlayPauseBtn:Fr.showPlayPauseBtn,navTxtColor:a.navTxtColor,navNextTxt:a.navNextTxt,navPrevTxt:a.navPrevTxt,keyBoardShortCut:a.keyBoardShortCut,showSlideNum:a.showSlideNum,showTotalSlideNum:a.showTotalSlideNum,autoSlide:a.autoSlide,randomAutoSlide:a.randomAutoSlide,loop:a.loop,background:a.background,transition:a.transition,transitionTime:a.transitionTime})},1500)):Fr.slideMode||r(".slides-loadnig-msg").remove()}}function s(r){var a=[],t=new Date;if(null!==r.file("docProps/thumbnail.jpeg")){var e=xr(r.file("docProps/thumbnail.jpeg").asArrayBuffer());a.push({type:"pptx-thumb",data:e})}var s=o(r),d=n(r);Dr=l(r),tableStyles=i(r,"ppt/tableStyles.xml"),a.push({type:"slideSize",data:d});for(var p=s.slides.length,f=0;p>f;f++){var h=s.slides[f],u=c(r,h,f,d);a.push({type:"slide",data:u}),a.push({type:"progress-update",data:100*(f+1)/p})}a.push({type:"globalCSS",data:I()});var v=new Date;return a.push({type:"ExecutionTime",data:v-t}),a}function i(r,a){return Pr(r.file(a).asText())}function o(r){for(var a=i(r,"[Content_Types].xml"),t=a.Types.Override,e=[],s=[],o=0;o";for(var _ in L)if(L[_].constructor===Array)for(var f=0;f"}function d(r){var a=Object.keys(r),t=r[a[0]]["p:cSld"]["p:spTree"],e={},s={},i={};for(var o in t)if("p:nvGrpSpPr"!=o&&"p:grpSpPr"!=o){var n=t[o];if(n.constructor===Array)for(var l=0;l";for(var v in r)if(r[v].constructor===Array)for(var g=0;g",h+="";var B=V(r,!0,l),N=!1,F=!1,O=W(or(r,["p:spPr"]));if("GRADIENT_FILL"==O){N=!0;var G=B.color,j=B.rot,E=pr(R,M,j,G,u);h+=E}else if("PIC_FILL"==O){F=!0;var z=ur(B,u);h+=z}else"SOLID_FILL"!=O&&"PATTERN_FILL"!=O&&"arc"==v&&(B="none");var U=H(r,!0,"shape"),X=or(r,["p:spPr","a:ln","a:headEnd","attrs"]),q=or(r,["p:spPr","a:ln","a:tailEnd","attrs"]);if(void 0!==X&&("triangle"===X.type||"arrow"===X.type)||void 0!==q&&("triangle"===q.type||"arrow"===q.type)){var Y="";h+=Y}h+=""}if(void 0!==v&&void 0===k){switch(v){case"accentBorderCallout1":case"accentBorderCallout2":case"accentBorderCallout3":case"accentCallout1":case"accentCallout2":case"accentCallout3":case"actionButtonBackPrevious":case"actionButtonBeginning":case"actionButtonBlank":case"actionButtonDocument":case"actionButtonEnd":case"actionButtonForwardNext":case"actionButtonHelp":case"actionButtonHome":case"actionButtonInformation":case"actionButtonMovie":case"actionButtonReturn":case"actionButtonSound":case"bevel":case"blockArc":case"borderCallout1":case"borderCallout2":case"borderCallout3":case"bracePair":case"bracketPair":case"callout1":case"callout2":case"callout3":case"can":case"chartPlus":case"chartStar":case"chartX":case"chevron":case"chord":case"cloud":case"cloudCallout":case"corner":case"cornerTabs":case"cube":case"diagStripe":case"donut":case"doubleWave":case"downArrowCallout":case"ellipseRibbon":case"ellipseRibbon2":case"flowChartAlternateProcess":case"flowChartCollate":case"flowChartConnector":case"flowChartDecision":case"flowChartDelay":case"flowChartDisplay":case"flowChartDocument":case"flowChartExtract":case"flowChartInputOutput":case"flowChartInternalStorage":case"flowChartMagneticDisk":case"flowChartMagneticDrum":case"flowChartMagneticTape":case"flowChartManualInput":case"flowChartManualOperation":case"flowChartMerge":case"flowChartMultidocument":case"flowChartOfflineStorage":case"flowChartOffpageConnector":case"flowChartOnlineStorage":case"flowChartOr":case"flowChartPredefinedProcess":case"flowChartPreparation":case"flowChartProcess":case"flowChartPunchedCard":case"flowChartPunchedTape":case"flowChartSort":case"flowChartSummingJunction":case"flowChartTerminator":case"folderCorner":case"frame":case"funnel":case"halfFrame":case"heart":case"homePlate":case"horizontalScroll":case"irregularSeal1":case"irregularSeal2":case"leftArrowCallout":case"leftBrace":case"leftBracket":case"leftRightArrowCallout":case"leftRightRibbon":case"irregularSeal1":case"lightningBolt":case"lineInv":case"mathDivide":case"mathEqual":case"mathMinus":case"mathMultiply":case"mathNotEqual":case"mathPlus":case"moon":case"nonIsoscelesTrapezoid":case"noSmoking":case"plaque":case"plaqueTabs":case"quadArrowCallout":case"rect":case"ribbon":case"ribbon2":case"rightArrowCallout":case"rightBrace":case"rightBracket":case"round1Rect":case"round2DiagRect":case"round2SameRect":case"smileyFace":case"snip1Rect":case"snip2DiagRect":case"snip2SameRect":case"snipRoundRect":case"squareTabs":case"sun":case"teardrop":case"upArrowCallout":case"upDownArrowCallout":case"verticalScroll":case"wave":case"wedgeEllipseCallout":case"wedgeRectCallout":case"wedgeRoundRectCallout":case"rect":h+="";break;case"ellipse":h+="";break;case"roundRect":h+="";break;case"bentConnector2":var J="";J=w?"M 0 "+R+" L "+M+" "+R+" L "+M+" 0":"M "+R+" 0 L "+R+" "+M+" L 0 "+M,h+="";break;case"triangle":var Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Z=.5;void 0!==Q&&(Z=96*parseInt(Q.substr(4))/9144e3),h+=" ";break;case"diamond":h+=" ";break;case"trapezoid":var Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),$=.25,K=.7407;if(void 0!==Q){var rr=96*parseInt(Q.substr(4))/9144e3;$=.5*rr/K}h+=" ";break;case"parallelogram":var K,Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),$=.25;if(K=R>M?R/M:M/R,void 0!==Q){var rr=parseInt(Q.substr(4))/1e5;$=rr/K}h+=" ";break;case"pentagon":h+=" ";break;case"hexagon":for(var ar=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Q=void 0,tr=0;tr";break;case"heptagon":h+=" ";break;case"octagon":var Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),er=.25;void 0!==Q&&(er=parseInt(Q.substr(4))/1e5);var sr=1-er;h+=" ";break;case"decagon":h+=" ";break;case"dodecagon":h+=" ";break;case"star4":case"star5":case"star6":case"star7":case"star8":case"star10":case"star12":case"star16":case"star24":case"star32":var ir,nr,Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),lr=v.substr(4);switch(lr){case"4":nr=30;break;case"5":nr=40;break;case"6":nr=60;break;case"7":nr=70;break;case"8":nr=77;break;case"10":nr=86;break;case"12":case"16":case"24":case"32":nr=75}void 0!==Q&&(ir=or(Q,["attrs","fmla"]),void 0===ir&&(ir=Q[0].attrs.fmla),void 0!==ir&&(nr=2*parseInt(ir.substr(4))/1e3));var dr=g(nr,lr);h+=" ";break;case"pie":case"pieWedge":case"arc":var er,sr,fr,ir,hr,vr,Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);"pie"==v?(er=0,sr=270,fr=M,vr=!0):"pieWedge"==v?(er=180,sr=270,fr=2*M,vr=!0):"arc"==v&&(er=0,sr=270,fr=M,vr=!1),void 0!==Q&&(ir=or(Q,["attrs","fmla"]),hr=ir,void 0===ir&&(ir=Q[0].attrs.fmla,hr=Q[1].attrs.fmla),void 0!==ir&&(er=parseInt(ir.substr(4))/6e4),void 0!==hr&&(sr=parseInt(hr.substr(4))/6e4));var gr=b(fr,R,er,sr,vr);h+="";break;case"gear6":case"gear9":C=0;var J,br=v.substr(4);J="6"==br?m(R,M/3.5,parseInt(br)):m(R,M/3.5,parseInt(br)),h+="";break;case"bentConnector3":var Q=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Z=.5;void 0!==Q&&(Z=parseInt(Q.substr(4))/1e5,h+=w?" ";break;case"line":case"straightConnector1":case"bentConnector4":case"bentConnector5":case"curvedConnector2":case"curvedConnector3":case"curvedConnector4":case"curvedConnector5":h+=w?"";break;case"leftArrow":var mr,yr,ar=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),kr=.25,wr=.5,xr=R/M;if(void 0!==ar)for(var tr=0;tr";break;case"downArrow":var mr,yr,ar=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),kr=.25,wr=.5,xr=M/R;if(void 0!==ar)for(var tr=0;tr";break;case"upArrow":var mr,yr,ar=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),kr=.25,wr=.5,xr=M/R;if(void 0!==ar)for(var tr=0;tr";break;case"leftRightArrow":var mr,yr,ar=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),kr=.25,wr=.25,xr=R/M;if(void 0!==ar)for(var tr=0;tr";break;case"upDownArrow":var mr,yr,ar=or(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),kr=.25,wr=.25,xr=M/R;if(void 0!==ar)for(var tr=0;tr";break;case"bentArrow":case"bentUpArrow":case"stripedRightArrow":case"quadArrow":case"circularArrow":case"swooshArrow":case"leftRightUpArrow":case"leftUpArrow":case"leftCircularArrow":case"notchedRightArrow":case"curvedDownArrow":case"curvedLeftArrow":case"curvedRightArrow":case"curvedUpArrow":case"uturnArrow":case"leftRightCircularArrow":break;case void 0:default:console.warn("Undefine shape type.")}h+="",h+="
",void 0!==r["p:txBody"]&&(h+=x(r["p:txBody"],r,a,t,o,l)),h+="
"}else if(void 0!==k){var Ir=or(k,["a:pathLst"]),Sr=or(Ir,["a:path","attrs"]),Tr=(96*parseInt(Sr.w)/914400,96*parseInt(Sr.h)/914400,or(Ir,["a:path","a:close"])),Lr=or(Ir,["a:path","a:moveTo","a:pt","attrs"]),Ar=96*parseInt(Lr.x)/914400,Dr=96*parseInt(Lr.y)/914400,J="M"+Ar+","+Dr,Rr=or(Ir,["a:path"]),_r=Rr["a:lnTo"],Mr=Rr["a:cubicBezTo"],Br=Rr["a:arcTo"],Nr=[];if(void 0!==_r&&Object.keys(_r).forEach(function(r){var a=_r[r]["a:pt"];void 0!==a&&Object.keys(a).forEach(function(r){var t={},e=a[r],s=e.x,i=e.y,o=e.order;t.type="lnto",t.order=o,t.x=s,t.y=i,Nr.push(t)})}),void 0!==Mr&&Object.keys(Mr).forEach(function(r){var a=Mr[r]["a:pt"];void 0!==a&&Object.keys(a).forEach(function(r){var t=a[r];Object.keys(t).forEach(function(r){var a={},e=t[r],s=e.x,i=e.y,o=e.order;a.type="cubicBezTo",a.order=o,a.x=s,a.y=i,Nr.push(a)})})}),void 0!==Br){var Fr=Br.attrs,Or=Fr.order,Gr=Fr.hR,jr=Fr.wR,Er=Fr.stAng,zr=Fr.swAng,Hr=0,Ur=0,Xr=or(Br,["a:pt","attrs"]);void 0!==Xr&&(Hr=Xr.x,Ur=Xr.y);var qr={};qr.type="arcTo",qr.order=Or,qr.hR=Gr,qr.wR=jr,qr.stAng=Er,qr.swAng=zr,qr.shftX=Hr,qr.shftY=Ur,Nr.push(qr)}var Yr=Nr.slice(0);Yr.sort(function(r,a){return r.order-a.order});for(var Vr=0;Vr":(void 0===X||"triangle"!==X.type&&"arrow"!==X.type||(h+="marker-start='url(#markerTriangle_"+u+")' "),void 0===q||"triangle"!==q.type&&"arrow"!==q.type||(h+="marker-end='url(#markerTriangle_"+u+")' "),h+="/>"),h+="",h+="
",void 0!==r["p:txBody"]&&(h+=x(r["p:txBody"],r,a,t,o,l)),h+="
"}else h+="
",void 0!==r["p:txBody"]&&(h+=x(r["p:txBody"],r,a,t,o,l)),h+="
";return h}function g(r,a){for(var t=r,e=100,s=a,i=Math.max(t,e),o=Math.PI/s,n=[],l=0;2*s>l;l++){var c=1&l?t:e;n.push(i+c*Math.sin(l*o)),n.push(i-c*Math.cos(l*o))}return n}function b(r,a,t,e,s){var i=parseInt(e),o=parseInt(t),n=parseInt(r),l=n/2,c=i-o;0>c&&(c=360+c),c=Math.min(Math.max(c,0),360);var d,p,f,h=Math.cos(2*Math.PI/(360/c)),u=Math.sin(2*Math.PI/(360/c));if(s)d=180>=c?0:1,p="M"+l+","+l+" L"+l+",0 A"+l+","+l+" 0 "+d+",1 "+(l+u*l)+","+(l-h*l)+" z",f="rotate("+(o-270)+", "+l+", "+l+")";else{d=180>=c?0:1;var v=l,g=a/2;p="M"+v+",0 A"+g+","+v+" 0 "+d+",1 "+(g+u*g)+","+(v-h*v),f="rotate("+(o+90)+", "+l+", "+l+")"}return[p,f]}function m(r,t,e){var s=t,i=1.5*s,o=i;cy=i,notches=e,radiusO=i,radiusI=s,taperO=50,taperI=35,pi2=2*Math.PI,angle=pi2/(2*notches),taperAI=angle*taperI*.005,taperAO=angle*taperO*.005,a=angle,toggle=!1;for(var n=" M"+(o+radiusO*Math.cos(taperAO))+" "+(cy+radiusO*Math.sin(taperAO));a<=pi2+angle;a+=angle)toggle?(n+=" L"+(o+radiusI*Math.cos(a-taperAI))+","+(cy+radiusI*Math.sin(a-taperAI)),n+=" L"+(o+radiusO*Math.cos(a+taperAO))+","+(cy+radiusO*Math.sin(a+taperAO))):(n+=" L"+(o+radiusO*Math.cos(a-taperAO))+","+(cy+radiusO*Math.sin(a-taperAO)),n+=" L"+(o+radiusI*Math.cos(a+taperAI))+","+(cy+radiusI*Math.sin(a+taperAI))),toggle=!toggle;return n+=" "}function y(r,a,t,e,s,i){for(var o,n=s;i>=n;){var l=n*(Math.PI/180),c=r+Math.cos(l)*t,d=a+Math.sin(l)*e;n==s&&(o=" M "+c+" "+d),o+=" L "+c+" "+d,n++}return o}function k(r,a){var t="",e=!1,s=r.attrs.order,i=r["p:blipFill"]["a:blip"].attrs["r:embed"],o=a.slideResObj[i].target,n=Cr(o).toLowerCase(),l=a.zip,c=l.file(o).asArrayBuffer(),d="",p=r["p:spPr"]["a:xfrm"],f=0,h=or(r,["p:spPr","a:xfrm","attrs","rot"]);void 0!==h&&(f=cr(h));var u,v,g,b,m,y,k,w=or(r,["p:nvPicPr","p:nvPr","a:videoFile"]),x=!1,C=Fr.mediaProcess;void 0!==w&C&&(u=w.attrs["r:link"],v=a.slideResObj[u].target,m=l.file(v).asArrayBuffer(),g=Cr(v).toLowerCase(),("mp4"==g||"webm"==g||"ogg"==g)&&(b=dr(g),y=new Blob([m],{type:b}),k=URL.createObjectURL(y),x=!0,e=!0));var P,I,S,T,L,R,_,M=or(r,["p:nvPicPr","p:nvPr","a:audioFile"]),B=!1;if(void 0!==M&C&&(P=M.attrs["r:link"],I=a.slideResObj[P].target,S=Cr(I).toLowerCase(),"mp3"==S||"wav"==S||"ogg"==S)){T=l.file(I).asArrayBuffer(),L=new Blob([T]),R=URL.createObjectURL(L);var N=20*parseInt(p["a:ext"].attrs.cx),F=p["a:ext"].attrs.cy,O=parseInt(p["a:off"].attrs.x)/2.5,G=p["a:off"].attrs.y;_={"a:ext":{attrs:{cx:N,cy:F}},"a:off":{attrs:{x:O,y:G}}},B=!0,x=!0,e=!0}return d=dr(n),t="
",void 0===w&&void 0===M||!C||!x?t+="":(void 0!==w||void 0!==M)&&C&&x&&(void 0!==w&&(t+=""),void 0!==M&&(t+='')),!x&&e&&(t+="This media file Not supported by HTML5"),void 0===w&&void 0===M||C||!x||console.log("Founded supported media file but media process disabled (mediaProcess=false)"),t+="
"}function w(r,a){var t="",e=or(r,["a:graphic","a:graphicData","attrs","uri"]);switch(e){case"http://schemas.openxmlformats.org/drawingml/2006/table":t=S(r,a);break;case"http://schemas.openxmlformats.org/drawingml/2006/chart":t=T(r,a);break;case"http://schemas.openxmlformats.org/drawingml/2006/diagram":t=L(r,a)}return t}function x(r,a,t,e,s,i){var o="",n=i.slideMasterTextStyles;if(void 0===r)return o;if(r["a:p"].constructor===Array)for(var l=0;l",o+=C(c,a,t,e,s,i),void 0===d)o+=P(c,a,t,e,s,i);else if(d.constructor===Array)for(var p=0;p");else o+=P(d,a,t,e,s,i);o+=""}else{var c=r["a:p"],d=c["a:r"];if(o+="
",o+=C(c,a,t,e,s,i),void 0===d)o+=P(c,a,t,e,s,i);else if(d.constructor===Array)for(var p=0;p");else o+=P(d,a,t,e,s,i);o+="
"}return o}function C(r,a,t,e,s,i){var o=i.slideMasterTextStyles,n=or(r,["a:r"]);void 0!==n&&n.constructor===Array&&(n=n[0]); -var l,c,d,p;void 0!==n?(l=B(n,a,s,o)[0],c=N(n,t,e,s,o)):(l=B(r,a,s,o)[0],c=N(r,t,e,s,o));var f="",h=r["a:pPr"],u=or(h,["attrs","rtl"]),v=!1;void 0!==u&&"1"==u&&(v=!0);var g=parseInt(or(h,["attrs","lvl"]));isNaN(g)&&(g=0);var b=or(h,["a:buChar","attrs","char"]),m="TYPE_NONE",y=or(h,["a:buAutoNum","attrs","type"]),k=or(h,["a:buBlip"]);if(void 0!==b&&(m="TYPE_BULLET"),void 0!==y&&(m="TYPE_NUMERIC"),void 0!==k&&(m="TYPE_BULPIC"),"TYPE_NONE"!=m)var w=or(h,["a:buFont","attrs"]);var x=or(h,["a:buClr"]),C="NoNe";void 0!==x&&(C=$(x)),d="NoNe"==C?l:"#"+C;var P;if(P=or(h,["a:buSzPts","attrs","val"]),void 0!==P)p=parseInt(P)/100+"pt";else if(P=or(h,["a:buSzPct","attrs","val"]),void 0!==P){var I=parseInt(P)/1e5,S=c.substr(0,c.length-2);p=I*parseInt(S)+"pt"}else p=c;if("TYPE_BULLET"==m)if(void 0!==w){var T=96*parseInt(or(h,["attrs","marL"]))/914400,L=parseInt(w.pitchFamily);isNaN(T)&&(T=31545600/914400),isNaN(L)&&(L=0);var A=w.typeface;f=""+b+""}else T=31545600/914400*g,f=""+b+"";else if("TYPE_NUMERIC"==m)if(void 0!==w){var T=96*parseInt(or(h,["attrs","marL"]))/914400,L=parseInt(w.pitchFamily);isNaN(T)&&(T=31545600/914400),isNaN(L)&&(L=0),f=""}else T=31545600/914400*g,f="";else if("TYPE_BULPIC"==m){var T=96*parseInt(or(h,["attrs","marL"]))/914400,L=96*parseInt(or(h,["attrs","marR"]))/914400;isNaN(L)&&(L=0),T=isNaN(T)?31545600/914400:0;var D,R=or(k,["a:blip","attrs","r:embed"]);if(void 0!==R){var _=i.slideResObj[R].target,M=i.zip.file(_).asArrayBuffer(),F=_.split(".").pop(),O=dr(F);D=""}void 0===R&&(D="‣"),f=""+D+" "}else f="";return f}function P(r,a,t,e,s,i){var o=i.slideMasterTextStyles,n=r["a:t"];"string"!=typeof n&&(n=or(r,["a:fld","a:t"]),"string"!=typeof n&&(n=" "));var l=B(r,a,s,o),c="color:"+l[0]+";text-shadow:"+l[1]+";font-size:"+N(r,t,e,s,o)+";font-family:"+M(r,s,o)+";font-weight:"+F(r,s,o)+";font-style:"+O(r,s,o)+";text-decoration:"+G(r,s,o)+";text-align:"+j(r,s,o)+";vertical-align:"+E(r,s,o)+";",d=or(r,["a:rPr","a:highlight"]);void 0!==d&&(c+="background-color:#"+$(d)+";",c+="Opacity:"+er(d)+";");var p="";c in Nr?p=Nr[c].name:(p="_css_"+(Object.keys(Nr).length+1),Nr[c]={name:p,text:c});var f=or(r,["a:rPr","a:hlinkClick","attrs","r:id"]);if(void 0!==f){var h=i.slideResObj[f].target;return""+n.replace(/\s/i," ")+""}return""+n.replace(/\s/i," ")+""}function I(){var r="";for(var a in Nr)r+="div ."+Nr[a].name+"{"+Nr[a].text+"}\n";return r}function S(r,a){var t=r.attrs.order,e=or(r,["a:graphic","a:graphicData","a:tbl"]),s=or(r,["p:xfrm"]),i=or(r,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),o=or(r,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]),n="";if(void 0!==i){var l=i.attrs.rtl;n=1==l?"dir=rtl":"dir=ltr"}var c=i.attrs.firstRow,d=(i.attrs.firstCol,i.attrs.lastRow,i.attrs.lastCol,i.attrs.bandRow),p=(i.attrs.bandCol,""),f=e["a:tr"];if(f.constructor===Array)for(var h=0;h0&&void 0!==d){var w="fff",C=1;if(h%2==0){if(void 0!==b["a:band2H"]){var P=or(b,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);void 0!==P&&(w=$(P),C=er(P));var I=or(b,["a:band2H","a:tcStyle","a:tcBdr"]);if(void 0!==I){var S=z(I);g+=S}or(b,["a:band2H","a:tcTxStyle"])}}else if(void 0!==b["a:band1H"]){var P=or(b,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);void 0!==P&&(w=$(P),C=er(P));var I=or(b,["a:band1H","a:tcStyle","a:tcBdr"]);if(void 0!==I){var S=z(I);g+=S}or(b,["a:band1H","a:tcTxStyle"])}g+=" background-color:#"+w+"; opacity:"+C+";"}p+="";var T=f[h]["a:tc"];if(T.constructor===Array)for(var L=0;L"+R+"":void 0!==M?p+="":void 0===B&&void 0===N&&(p+="")}else{var R=x(T["a:txBody"]),F=o[0].attrs.w,O="";if(void 0!==F){var G=96*parseInt(F)/914400;O+="width:"+G+"px;"}var j=T["a:tcPr"]["a:solidFill"],w="",C=1;void 0!==j&&(w=$(j),C=er(j)),""!=w&&(O+=" background-color:#"+w+";",O+=" opacity"+C+";"),p+=""}p+=""}else{var u=f.attrs.h,v=0;void 0!==u?(v=96*parseInt(u)/914400,p+=""):p+="";var T=f["a:tc"];if(T.constructor===Array)for(var L=0;L"+R+""}else{var R=x(T["a:txBody"]),F=o[0].attrs.w,O="";if(void 0!==F){var G=96*parseInt(F)/914400;O+="width:"+G+"px;"}var j=T[L]["a:tcPr"]["a:solidFill"],w="",C=1;void 0!==j&&(w=$(j),C=er(j)),""!=w&&(O+=" background-color:#"+w+";",O+=" opacity"+C+";"),p+=""}p+=""}return p}function T(r,a){var t=r.attrs.order,e=or(r,["p:xfrm"]),s="
",o=r["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],n=a.slideResObj[o].target,l=i(a.zip,n),c=or(l,["c:chartSpace","c:chart","c:plotArea"]),d=null;for(var p in c)switch(p){case"c:lineChart":d={type:"createChart",data:{chartID:"chart"+_r,chartType:"lineChart",chartData:ir(c[p]["c:ser"])}};break;case"c:barChart":d={type:"createChart",data:{chartID:"chart"+_r,chartType:"barChart",chartData:ir(c[p]["c:ser"])}};break;case"c:pieChart":d={type:"createChart",data:{chartID:"chart"+_r,chartType:"pieChart",chartData:ir(c[p]["c:ser"])}};break;case"c:pie3DChart":d={type:"createChart",data:{chartID:"chart"+_r,chartType:"pie3DChart",chartData:ir(c[p]["c:ser"])}};break;case"c:areaChart":d={type:"createChart",data:{chartID:"chart"+_r,chartType:"areaChart",chartData:ir(c[p]["c:ser"])}};break;case"c:scatterChart":d={type:"createChart",data:{chartID:"chart"+_r,chartType:"scatterChart",chartData:ir(c[p]["c:ser"])}};break;case"c:catAx":break;case"c:valAx":}return null!==d&&Ar.push(d),_r++,s}function L(r,a){var t=(r.attrs.order,a.zip),e=or(r,["p:xfrm"]),s=or(r,["a:graphic","a:graphicData","dgm:relIds","attrs"]),o=s["r:cs"],n=s["r:dm"],l=s["r:lo"],c=s["r:qs"],d=a.slideResObj[o].target,p=a.slideResObj[n].target,f=a.slideResObj[l].target;dgmQuickStyleFileName=a.slideResObj[c].target;var u=(i(t,d),i(t,p)),v=(i(t,f),i(t,dgmQuickStyleFileName),""),g=or(u,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs"]);if(void 0!==g){var b=g.relId;v=a.slideResObj[b].target}var m="";""!=v&&(m=i(t,v));var y=or(m,["dsp:drawing","dsp:spTree","dsp:sp"]),k="";if(void 0!==y)for(var w=y.length,x=0;w>x;x++){var C=y[x],P=JSON.stringify(C),I=P.replace(/dsp:/g,"p:"),S=JSON.parse(I);k+=h(S,a)}return"
"+k+"
"}function A(r,a,t){var e=void 0,s=-1,i=-1;return void 0!==r?e=r["a:off"].attrs:void 0!==a?e=a["a:off"].attrs:void 0!==t&&(e=t["a:off"].attrs),void 0===e?"":(s=96*parseInt(e.x)/914400,i=96*parseInt(e.y)/914400,isNaN(s)||isNaN(i)?"":"top:"+i+"px; left:"+s+"px;")}function D(r,a,t){var e=void 0,s=-1,i=-1;return void 0!==r?e=r["a:ext"].attrs:void 0!==a?e=a["a:ext"].attrs:void 0!==t&&(e=t["a:ext"].attrs),void 0===e?"":(s=96*parseInt(e.cx)/914400,i=96*parseInt(e.cy)/914400,isNaN(s)||isNaN(i)?"":"width:"+s+"px; height:"+i+"px;")}function R(r,a,t,e,s){var i=or(r,["a:pPr","attrs","algn"]);if(void 0===i&&(i=or(a,["p:txBody","a:p","a:pPr","attrs","algn"]),void 0===i&&(i=or(t,["p:txBody","a:p","a:pPr","attrs","algn"]),void 0===i)))switch(e){case"title":case"subTitle":case"ctrTitle":i=or(s,["p:titleStyle","a:lvl1pPr","attrs","alng"]);break;default:i=or(s,["p:otherStyle","a:lvl1pPr","attrs","alng"])}if(void 0===i){if("title"==e||"subTitle"==e||"ctrTitle"==e)return"h-mid";if("sldNum"==e)return"h-right"}return"ctr"===i?"h-mid":"r"===i?"h-right":"h-left"}function _(r,a,t,e,s){var i=or(r,["p:txBody","a:bodyPr","attrs","anchor"]);return void 0===i&&(i=or(a,["p:txBody","a:bodyPr","attrs","anchor"]),void 0===i&&(i=or(t,["p:txBody","a:bodyPr","attrs","anchor"]))),"ctr"===i?"v-mid":"b"===i?"v-down":"v-up"}function M(r,a,t){var e=or(r,["a:rPr","a:latin","attrs","typeface"]);if(void 0===e){var s=or(Dr,["a:theme","a:themeElements","a:fontScheme"]);e="title"==a||"subTitle"==a||"ctrTitle"==a?or(s,["a:majorFont","a:latin","attrs","typeface"]):"body"==a?or(s,["a:minorFont","a:latin","attrs","typeface"]):or(s,["a:minorFont","a:latin","attrs","typeface"])}return void 0===e?"inherit":e}function B(r,a,t,e){var s,i,o,n=or(r,["a:rPr"]);if(void 0!==n)if(s=W(n),"SOLID_FILL"==s){var l=or(r,["a:rPr","a:solidFill"]);i=$(l)}else if("PATTERN_FILL"==s){var c=or(r,["a:rPr","a:pattFill"]);i=Z(c)}else{var d=or(a,["p:style","a:fontRef"]);void 0!==d&&(i=$(d))}i=void 0===i||"FFF"===i?"#000":"#"+i;var p=or(r,["a:rPr","a:ln"]);if(void 0!==p){var f=H(r,!1,"text"),h=f.split(" "),u=parseInt(h[0].substring(0,h[0].indexOf("pt")))*(4/3)+"px",v=h[2];o="-"+u+" 0 "+v+", 0 "+u+" "+v+", "+u+" 0 "+v+", 0 -"+u+" "+v+";"}else o="none";return[i,o]}function N(r,a,t,e,s){var i=void 0;if(void 0!==r["a:rPr"]&&(i=parseInt(r["a:rPr"].attrs.sz)/100),isNaN(i)||void 0===i){var o=or(a,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);i=parseInt(o)/100}if(isNaN(i)||void 0===i){if("title"==e||"subTitle"==e||"ctrTitle"==e)var o=or(s,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);else if("body"==e)var o=or(s,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);else if("dt"==e||"sldNum"==e)var o="1200";else if(void 0===e)var o=or(s,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);i=parseInt(o)/100}var n=or(r,["a:rPr","attrs","baseline"]);return void 0===n||isNaN(i)||(i-=10),isNaN(i)?"inherit":i+"pt"}function F(r,a,t){return void 0!==r["a:rPr"]&&"1"===r["a:rPr"].attrs.b?"bold":"initial"}function O(r,a,t){return void 0!==r["a:rPr"]&&"1"===r["a:rPr"].attrs.i?"italic":"normal"}function G(r,a,t){if(void 0!==r["a:rPr"]){var e=void 0!==r["a:rPr"].attrs.u?r["a:rPr"].attrs.u:"none",s=void 0!==r["a:rPr"].attrs.strike?r["a:rPr"].attrs.strike:"noStrike";return"none"!=e&&"noStrike"==s?"underline":"none"==e&&"noStrike"!=s?"line-through":"none"!=e&&"noStrike"!=s?"underline line-through":"initial"}return"initial"}function j(r,a,t){var e=or(r,["a:pPr","attrs","algn"]),s="initial";if(void 0!==e)switch(e){case"l":s="left";break;case"r":s="right";break;case"ctr":s="center";break;case"just":s="justify";break;case"dist":s="justify";break;default:s="initial"}return s}function E(r,a,t){var e=or(r,["a:rPr","attrs","baseline"]);return void 0===e?"baseline":parseInt(e)/1e3+"%"}function z(r){var a="";if(void 0!==r["a:bottom"]){var t={"p:spPr":{"a:ln":r["a:bottom"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-bottom")}if(void 0!==r["a:top"]){var t={"p:spPr":{"a:ln":r["a:top"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-top")}if(void 0!==r["a:right"]){var t={"p:spPr":{"a:ln":r["a:right"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-right")}if(void 0!==r["a:left"]){var t={"p:spPr":{"a:ln":r["a:left"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-left")}return a}function H(r,a,t){var e,s;"shape"==t?(e="border: ",s=r["p:spPr"]["a:ln"]):"text"==t&&(e="",s=r["a:rPr"]["a:ln"]);var i=parseInt(or(s,["attrs","w"]))/12700;e+=isNaN(i)||1>i?"1pt ":i+"pt ";var o=or(s,["a:prstDash","attrs","val"]),n="0";switch(o){case"solid":e+="solid",n="0";break;case"dash":e+="dashed",n="5";break;case"dashDot":e+="dashed",n="5, 5, 1, 5";break;case"dot":e+="dotted",n="1, 5";break;case"lgDash":e+="dashed",n="10, 5";break;case"lgDashDotDot":e+="dashed",n="10, 5, 1, 5, 1, 5";break;case"sysDash":e+="dashed",n="5, 2";break;case"sysDashDot":e+="dashed",n="5, 2, 1, 5";break;case"sysDashDotDot":e+="dashed",n="5, 2, 1, 5, 1, 5";break;case"sysDot":e+="dotted",n="2, 5";break;case void 0:default:e+="solid",n="0"}var l=or(s,["a:solidFill","a:srgbClr","attrs","val"]);if(void 0===l){var c=or(s,["a:solidFill","a:schemeClr"]);if(void 0!==c)var d="a:"+or(c,["attrs","val"]),l=sr(d,void 0)}if(void 0===l){var c=or(r,["p:style","a:lnRef","a:schemeClr"]);if(void 0!==c)var d="a:"+or(c,["attrs","val"]),l=sr(d,void 0);if(void 0!==l){var p=or(c,["a:shade","attrs","val"]);if(void 0!==p){p=parseInt(p)/1e5;var f=new colz.Color("#"+l);f.setLum(f.hsl.l*p),l=f.hex.replace("#","")}}}return l=void 0===l?a?"none":"#000":"#"+l,e+=" "+l+" ",a?{color:l,width:i,type:o,strokeDasharray:n}:e+";"}function U(r,a,t,e){var s,i=or(r,["p:sld","p:cSld","p:bg","p:bgPr"]),o=or(r,["p:sld","p:cSld","p:bg","p:bgRef"]);if(void 0!==i){var n=W(i);if("SOLID_FILL"==n){var l=i["a:solidFill"],c=$(l),d=er(l);s="background: rgba("+Y(c)+","+d+");"}else"GRADIENT_FILL"==n?s=X(i,void 0,t):"PIC_FILL"==n&&(s=q(i,"slideBg",e))}else if(void 0!==o){var p;if(void 0!==o["a:srgbClr"])p=or(o,["a:srgbClr","attrs","val"]);else if(void 0!==o["a:schemeClr"]){var f=or(o,["a:schemeClr","attrs","val"]);p=sr("a:"+f,t)}var h=Number(o.attrs.idx);if(0==h||1e3==h);else if(h>0&&1e3>h);else if(h>1e3){var u=h-1e3,v=Dr["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],g=[];Object.keys(v).forEach(function(r){var a=v[r];if("attrs"!=r)if(a.constructor===Array)for(var t=0;t0&&1e3>h);else if(h>1e3){var u=h-1e3,v=Dr["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],g=[];Object.keys(v).forEach(function(r){var a=v[r];if("attrs"!=r)if(a.constructor===Array)for(var t=0;t=t?t*(a+1):t+a-t*a,e=2*t-s,i=255*ar(e,s,r+2),o=255*ar(e,s,r),n=255*ar(e,s,r-2),{r:i,g:o,b:n}}function ar(r,a,t){return 0>t&&(t+=6),t>=6&&(t-=6),1>t?(a-r)*t+r:3>t?a:4>t?(a-r)*(4-t)+r:r}function tr(r){var a,t=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],e=["f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],s=t.indexOf(r);return-1!=s&&(a=e[s]),a}function er(r){if(void 0===r)return void 0;var a=1;if(void 0!==r["a:srgbClr"]){var t=or(r,["a:srgbClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:schemeClr"]){var t=or(r,["a:schemeClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:scrgbClr"]){var t=or(r,["a:scrgbClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:prstClr"]){var t=or(r,["a:prstClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:hslClr"]){var t=or(r,["a:hslClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:sysClr"]){var t=or(r,["a:sysClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}return a}function sr(r,a){(""==Rr||void 0===Rr)&&(Rr=or(a,["p:sldMaster","p:clrMap","attrs"]));var t=r.substr(2);if(void 0!==Rr)switch(t){case"tx1":case"tx2":case"bg1":case"bg2":r="a:"+Rr[t]}else switch(t){case"tx1":r="a:dk1";break;case"tx2":r="a:dk2";break;case"bg1":r="a:lt1";break;case"bg2":r="a:lt2"}var e=or(Dr,["a:theme","a:themeElements","a:clrScheme",r]),s=or(e,["a:srgbClr","attrs","val"]);return void 0===s&&void 0!==e&&(s=or(e,["a:sysClr","attrs","lastClr"])),s}function ir(r){var a=new Array;if(void 0===r)return a;if(void 0!==r["c:xVal"]){var t=new Array;nr(r["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return t.push(parseFloat(r["c:v"])),""}),a.push(t),t=new Array,nr(r["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return t.push(parseFloat(r["c:v"])),""}),a.push(t)}else nr(r,function(r,t){var e=new Array,s=or(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||t,i={};return void 0!==or(r,["c:cat","c:strRef","c:strCache","c:pt"])?nr(r["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],function(r,a){return i[r.attrs.idx]=r["c:v"],""}):void 0!==or(r,["c:cat","c:numRef","c:numCache","c:pt"])&&nr(r["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return i[r.attrs.idx]=r["c:v"],""}),void 0!==or(r,["c:val","c:numRef","c:numCache","c:pt"])&&nr(r["c:val"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return e.push({x:r.attrs.idx,y:parseFloat(r["c:v"])}),""}),a.push({key:s,values:e,xlabels:i}),""});return a}function or(r,a){if(a.constructor!==Array)throw Error("Error of path type! path is not array.");if(void 0===r)return void 0;for(var t=a.length,e=0;t>e;e++)if(r=r[a[e]],void 0===r)return void 0;return r}function nr(r,a){if(void 0!==r){var t="";if(r.constructor===Array)for(var e=r.length,s=0;e>s;s++)t+=a(r[s],s);else t+=a(r,0);return t}}function lr(r,a,t){var e=new colz.Color(r);return e.setLum(e.hsl.l*(1+t)),e.rgb.toString()}function cr(r){return""==r||null==r?0:Math.round(r/6e4)}function dr(r){var a="";switch(r.toLowerCase()){case"jpg":case"jpeg":a="image/jpeg";break;case"png":a="image/png";break;case"gif":a="image/gif";break;case"emf":a="image/x-emf";break;case"wmf":a="image/x-wmf";break;case"svg":a="image/svg+xml";break;case"mp4":a="video/mp4";break;case"webm":a="video/webm";break;case"ogg":a="video/ogg";break;case"avi":a="video/avi";break;case"mpg":a="video/mpg";break;case"wmv":a="video/wmv";break;case"mp3":a="audio/mpeg";break;case"wav":a="audio/wav"}return a}function pr(r,a,t,e,s){var i=fr(e.length-2),o="",n=a,l=r,c="",d=hr(t,n,l),p=d[0],f=d[1],h=d[2],u=d[3],v=i.length,g=20>v?100:1e3;o=' gradientUnits="userSpaceOnUse" x1="'+p+'%" y1="'+f+'%" x2="'+h+'%" y2="'+u+'%"',o='\n",c+=o;for(var b=0;v>b;b++)c+='u?(n=e,o=0):90==u?(d=l,p=0,f=l,h=s):180>u?(n=0,o=0):180==u?(d=0,p=c,f=e,h=c):270>u?(n=0,o=s):270==u?(d=l,p=s,f=l,h=0):(n=e,o=s);var m=o+n/g,d=2==d?g*(m-b)/(Math.pow(g,2)+1):d,p=2==p?g*d+b:p,f=2==f?e-d:f,h=2==h?s-p:h,y=Math.round(f/e*100*100)/100,k=Math.round(h/s*100*100)/100,w=Math.round(d/e*100*100)/100,x=Math.round(p/s*100*100)/100;return[y,k,w,x]}function ur(r,a){var t='';return t+='',t+=""}function vr(r){for(var a=0;a0)for(var i="",o="",n=0,l=new Array,c=0,d=new Array,p=0;pNumber(o)?(i=f,o=h,c++,l[c]=n,d[c]=f,n=1):f!=i&&Number(h)0)for(;a>=r;a-=r)t+=this[1];else t=t.replace(r,this[1])}),t}}}function wr(r,a){r=Number(r)-1;var t="";return"upperCase"==a?t=((r/26>=1?String.fromCharCode(r/26+64):"")+String.fromCharCode(r%26+65)).toUpperCase():"lowerCase"==a&&(t=((r/26>=1?String.fromCharCode(r/26+64):"")+String.fromCharCode(r%26+65)).toLowerCase()),t}function xr(r){for(var a,t,e,s,i,o="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=new Uint8Array(r),c=l.byteLength,d=c%3,p=c-d,f=0;p>f;f+=3)i=l[f]<<16|l[f+1]<<8|l[f+2], -a=(16515072&i)>>18,t=(258048&i)>>12,e=(4032&i)>>6,s=63&i,o+=n[a]+n[t]+n[e]+n[s];return 1==d?(i=l[p],a=(252&i)>>2,t=(3&i)<<4,o+=n[a]+n[t]+"=="):2==d&&(i=l[p]<<8|l[p+1],a=(64512&i)>>10,t=(1008&i)>>4,e=(15&i)<<2,o+=n[a]+n[t]+n[e]+"="),o}function Cr(r){return r.substr((~-r.lastIndexOf(".")>>>0)+2)}function Pr(r){"use strict";function a(){for(var u=[];r[h];){if(r.charCodeAt(h)==e){if(r.charCodeAt(h+1)===n)return h=r.indexOf(s,h),u;if(r.charCodeAt(h+1)===l){if(r.charCodeAt(h+2)==o){for(;r.charCodeAt(h)!==i||r.charCodeAt(h-1)!=o||r.charCodeAt(h-2)!=o||-1==h;)h=r.indexOf(s,h+1);-1===h&&(h=r.length)}else for(h+=2;r.charCodeAt(h)!==i;h++);h++;continue}if(r.charCodeAt(h+1)===p){h=r.indexOf(s,h),h++;continue}h++;for(var v=h;-1===f.indexOf(r[h]);h++);for(var g=r.slice(v,h),b=!1,m={};r.charCodeAt(h)!==i;h++){var y=r.charCodeAt(h);if(y>64&&91>y||y>96&&123>y){for(v=h;-1===f.indexOf(r[h]);h++);for(var k=r.slice(v,h),w=r.charCodeAt(h);w!==c&&w!==d;)h++,w=r.charCodeAt(h);var x=r[h],C=++h;h=r.indexOf(x,C);var P=r.slice(C,h);b||(m={},b=!0),m[k]=P}}if(r.charCodeAt(h-1)!==n){h++;var I=a()}u.push({children:I,tagName:g,attrs:m})}else{var S=h;h=r.indexOf(t,h)-1,-2===h&&(h=r.length);var T=r.slice(S,h+1);T.trim().length>0&&u.push(T)}h++}return u}var t="<",e="<".charCodeAt(0),s=">",i=">".charCodeAt(0),o="-".charCodeAt(0),n="/".charCodeAt(0),l="!".charCodeAt(0),c="'".charCodeAt(0),d='"'.charCodeAt(0),p="?".charCodeAt(0),f="\r\n >/= ",h=0;return Mr=1,Ir(a())}function Ir(r){var a={};if(void 0===r)return{};if(1===r.length&&"string"==typeof r[0])return r[0];r.forEach(function(r){if(a[r.tagName]||(a[r.tagName]=[]),"object"==typeof r){var t=Ir(r.children);r.attrs&&(t.attrs=r.attrs),void 0===t.attrs?t.attrs={order:Mr}:t.attrs.order=Mr,Mr++,a[r.tagName].push(t)}});for(var t in a)1==a[t].length&&(a[t]=a[t][0]);return a}var Sr=r(this),Tr=Sr.attr("id"),Lr=!1,Ar=new Array,Dr=null,Rr="",_r=0,Mr=1,Br=!1,Nr={},Fr=r.extend({pptxFileUrl:"",fileInputId:"",slideMode:!1,keyBoardShortCut:!1,mediaProcess:!0,slideModeConfig:{first:1,nav:!0,navTxtColor:"black",navNextTxt:"›",navPrevTxt:"‹",keyBoardShortCut:!0,showSlideNum:!0,showTotalSlideNum:!0,autoSlide:!0,randomAutoSlide:!1,loop:!1,background:!1,transition:"default",transitionTime:1}},t);r("#"+Tr).prepend(r("").attr({"class":"slides-loadnig-msg",style:"display:block; color:blue; font-size:20px; width:50%; margin:0 auto;"}).html("Loading...")),Fr.slideMode&&(jQuery().divs2slides||jQuery.getScript("./js/divs2slides.js",function(){})),Fr.keyBoardShortCut&&Fr.slideMode&&r(document).bind("keydown",function(a){a.preventDefault();var t=a.keyCode;if(116==t&&!Br&&(Br=!0,r("#"+Tr+" .slide").hide(),Lr)){var e=Fr.slideModeConfig;r(".slides-loadnig-msg").remove(),r("#"+Tr).divs2slides({first:e.first,nav:e.nav,showPlayPauseBtn:Fr.showPlayPauseBtn,navTxtColor:e.navTxtColor,navNextTxt:e.navNextTxt,navPrevTxt:e.navPrevTxt,keyBoardShortCut:e.keyBoardShortCut,showSlideNum:e.showSlideNum,showTotalSlideNum:e.showTotalSlideNum,autoSlide:e.autoSlide,randomAutoSlide:e.randomAutoSlide,loop:e.loop,background:e.background,transition:e.transition,transitionTime:e.transitionTime})}}),JSZipUtils.getBinaryContent(Fr.pptxFileUrl,function(r,a){var t=new Blob([a]),s=Fr.pptxFileUrl,i=s.split(".");i.pop(),t.name=i[0],FileReaderJS.setupBlob(t,{readAsDefault:"ArrayBuffer",on:{load:function(r,a){e(r.target.result)}}})}),""!=Fr.fileInputId&&r("#"+Fr.fileInputId).on("change",function(r){Sr.html("");var a=r.target.files[0],t=a.type;"application/vnd.openxmlformats-officedocument.presentationml.presentation"==t?FileReaderJS.setupBlob(a,{readAsDefault:"ArrayBuffer",on:{load:function(r,a){e(r.target.result)}}}):alert("This is not pptx file")});var Or=kr([[1e3,""],[400,"ת"],[300,"ש"],[200,"ר"],[100,"ק"],[90,"צ"],[80,"פ"],[70,"ע"],[60,"ס"],[50,"נ"],[40,"מ"],[30,"ל"],[20,"כ"],[10,"י"],[9,"ט"],[8,"ח"],[7,"ז"],[6,"ו"],[5,"ה"],[4,"ד"],[3,"ג"],[2,"ב"],[1,"א"],[/יה/,"ט״ו"],[/יו/,"ט״ז"],[/([א-ת])([א-ת])$/,"$1״$2"],[/^([א-ת])$/,"$1׳"]])},!function(r){"object"==typeof exports?module.exports=r():"function"==typeof define&&define.amd?define(r):"undefined"!=typeof window?window.JSZipUtils=r():"undefined"!=typeof global?global.JSZipUtils=r():"undefined"!=typeof self&&(self.JSZipUtils=r())}(function(){return function r(a,t,e){function s(o,n){if(!t[o]){if(!a[o]){var l="function"==typeof require&&require;if(!n&&l)return l(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=t[o]={exports:{}};a[o][0].call(c.exports,function(r){var t=a[o][1][r];return s(t?t:r)},c,c.exports,r,a,t,e)}return t[o].exports}for(var i="function"==typeof require&&require,o=0;o1?(a=r[0],t=r[1],e=r[2]):(a=r[0][0],t=r[0][1],e=r[0][2]),"#"+n(a)+n(t)+n(e)},c=k.rgbToHsl=function(){var r,a,t,e,s,i,o,n,l,c;if(r=arguments,"number"==typeof r[0]?(a=r[0],t=r[1],e=r[2]):(a=r[0][0],t=r[0][1],e=r[0][2]),a/=255,t/=255,e/=255,l=Math.max(a,t,e),c=Math.min(a,t,e),o=(l+c)/2,l===c)s=i=0;else{switch(n=l-c,i=o>.5?n/(2-l-c):n/(l+c),l){case a:s=(t-e)/n+(e>t?6:0);break;case t:s=(e-a)/n+2;break;case e:s=(a-t)/n+4}s/=6}return s=m(360*s),i=m(100*i),o=m(100*o),[s,i,o]},d=k.hue2rgb=function(r,a,t){return 0>t&&(t+=1),t>1&&(t-=1),1/6>t?r+6*(a-r)*t:.5>t?a:2/3>t?r+(a-r)*(2/3-t)*6:r},p=k.hslToRgb=function(){var r,a,t,e,s,i,o,n,l;return r=arguments,"number"==typeof r[0]?(s=r[0]/360,i=r[1]/100,o=r[2]/100):(s=r[0][0]/360,i=r[0][1]/100,o=r[0][2]/100),0===i?a=t=e=o:(n=.5>o?o*(1+i):o+i-o*i,l=2*o-n,a=k.hue2rgb(l,n,s+1/3),t=k.hue2rgb(l,n,s),e=k.hue2rgb(l,n,s-1/3)),[m(255*a),m(255*t),m(255*e)]},f=k.rgbToHsb=function(r,a,t){var e,s,i,o,n,l;if(r/=255,a/=255,t/=255,e=Math.max(r,a,t),s=Math.min(r,a,t),n=e,l=e-s,o=0===e?0:l/e,e===s)i=0;else{switch(e){case r:i=(a-t)/l+(t>a?6:0);break;case a:i=(t-r)/l+2;break;case t:i=(r-a)/l+4}i/=6}return i=m(360*i),o=m(100*o),n=m(100*n),[i,o,n]},h=k.hsbToRgb=function(r,a,t){var e,s,i,o,n,l,c,d;return 0===t?[0,0,0]:(a/=100,t/=100,r/=60,o=Math.floor(r),n=r-o,l=t*(1-a),c=t*(1-a*n),d=t*(1-a*(1-n)),0===o?(e=t,s=d,i=l):1===o?(e=c,s=t,i=l):2===o?(e=l,s=t,i=d):3===o?(e=l,s=c,i=t):4===o?(e=d,s=l,i=t):5===o&&(e=t,s=l,i=c),e=Math.floor(255*e),s=Math.floor(255*s),i=Math.floor(255*i),[e,s,i])},u=k.hsbToHsl=function(r,a,t){return k.rgbToHsl(k.hsbToRgb(r,a,t))},v=k.hsvToHsl=k.hsbToHsl,g=k.hsvToRgb=k.hsbToRgb,i=k.ColorScheme=function(r,a){this.palette=[],void 0===a&&r instanceof Array?this.createFromColors(r):this.createFromAngles(r,a)};var x=i.prototype;return x.createFromColors=function(r){for(var a in r)r.hasOwnProperty(a)&&this.palette.push(new s(r[a]));return this.palette},x.createFromAngles=function(r,a){this.palette.push(new s(r));for(var t in a)if(a.hasOwnProperty(t)){var e=(this.palette[0].h+a[t])%360;this.palette.push(new s(k.hslToRgb([e,this.palette[0].s,this.palette[0].l])))}return this.palette},i.Compl=function(r){return new i(r,[180])},i.Triad=function(r){return new i(r,[120,240])},i.Tetrad=function(r){return new i(r,[60,180,240])},i.Analog=function(r){return new i(r,[-45,45])},i.Split=function(r){return new i(r,[150,210])},i.Accent=function(r){return new i(r,[-45,45,180])},k})}(jQuery); \ No newline at end of file +!function(r){r.fn.pptxToHtml=function(t){function e(a){var t=new JSZip;t=t.load(a);for(var e=s(t),o=0;o"+e[o].data+"");break;case"ExecutionTime":Lr(Dr),gr(r(".block")),gr(r("table td")),Rr.slideMode&&!Ar?(Ar=!0,r("#"+xr+" .slide").hide(),setTimeout(function(){var a=Rr.slideModeConfig;r(".slides-loadnig-msg").remove(),r("#"+xr).divs2slides({first:a.first,nav:a.nav,showPlayPauseBtn:Rr.showPlayPauseBtn,navTxtColor:a.navTxtColor,navNextTxt:a.navNextTxt,navPrevTxt:a.navPrevTxt,keyBoardShortCut:a.keyBoardShortCut,showSlideNum:a.showSlideNum,showTotalSlideNum:a.showTotalSlideNum,autoSlide:a.autoSlide,randomAutoSlide:a.randomAutoSlide,loop:a.loop,background:a.background,transition:a.transition,transitionTime:a.transitionTime})},1500)):Rr.slideMode||r(".slides-loadnig-msg").remove()}}function s(r){var a=[],t=new Date;if(null!==r.file("docProps/thumbnail.jpeg")){var e=wr(r.file("docProps/thumbnail.jpeg").asArrayBuffer());a.push({type:"pptx-thumb",data:e})}var s=i(r),c=l(r);Gr=n(r),tableStyles=o(r,"ppt/tableStyles.xml"),a.push({type:"slideSize",data:c});for(var h=s.slides.length,p=0;h>p;p++){var f=s.slides[p],v=d(r,f,p,c);a.push({type:"slide",data:v}),a.push({type:"progress-update",data:100*(p+1)/h})}a.push({type:"globalCSS",data:C()});var u=new Date;return a.push({type:"ExecutionTime",data:u-t}),a}function o(r,a){var t=Ir(r.file(a).asText(),{simplify:1});return void 0!==t["?xml"]?t["?xml"]:t}function i(r){for(var a=o(r,"[Content_Types].xml"),t=a.Types.Override,e=[],s=[],i=0;i";for(var T in _)if(_[T].constructor===Array)for(var p=0;p<_[T].length;p++)S+=h(T,_[T][p],D);else S+=h(T,_[T],D);return S+""}function c(r){var a=Object.keys(r),t=r[a[0]]["p:cSld"]["p:spTree"],e={},s={},o={};for(var i in t)if("p:nvGrpSpPr"!=i&&"p:grpSpPr"!=i){var l=t[i];if(l.constructor===Array)for(var n=0;n";for(var u in r)if(r[u].constructor===Array)for(var L=0;L",f+="";var z=Y(r,!0,n),R=!1,B=!1,N=W(lr(r,["p:spPr"]));if("GRADIENT_FILL"==N){R=!0;var F=z.color,O=z.rot,E=pr(T,A,O,F,v);f+=E}else if("PIC_FILL"==N){B=!0;var q=ur(z,v);f+=q}else"SOLID_FILL"==N||"PATTERN_FILL"==N||"arc"!=u&&"bracketPair"!=u&&"bracePair"!=u&&"leftBracket"!=u&&"leftBrace"!=u&&"rightBrace"!=u&&"rightBracket"!=u||(z="none");var U=H(r,!0,"shape"),Q=lr(r,["p:spPr","a:ln","a:headEnd","attrs"]),X=lr(r,["p:spPr","a:ln","a:tailEnd","attrs"]);if(void 0!==Q&&("triangle"===Q.type||"arrow"===Q.type)||void 0!==X&&("triangle"===X.type||"arrow"===X.type)){var V="";f+=V}f+=""}if(void 0!==u&&void 0===y){switch(u){case"chartPlus":case"chartStar":case"chartX":case"cloud":case"cloudCallout":case"cornerTabs":case"flowChartOfflineStorage":case"folderCorner":case"funnel":case"leftRightRibbon":case"lineInv":case"nonIsoscelesTrapezoid":case"plaqueTabs":case"squareTabs":case"upDownArrowCallout":case"circularArrow":case"rect":case"flowChartProcess":case"flowChartPredefinedProcess":case"flowChartInternalStorage":case"actionButtonBlank":"rect"!=u&&"flowChartProcess"!=u&&"flowChartPredefinedProcess"!=u&&"actionButtonBlank"!=u&&"flowChartInternalStorage"!=u&&console.log("shapType: ",u),f+="","flowChartPredefinedProcess"==u?f+="":"flowChartInternalStorage"==u&&(f+=" ",f+=" ");break;case"flowChartCollate":var J="M 0,0 L"+T+",0 L0,"+A+" L"+T+","+A+" z";f+="";break;case"flowChartDocument":var Z,$,K,rr;rr=10800*T/21600,Z=17322*A/21600,$=20172*A/21600,K=23922*A/21600;var J="M0,0 L"+T+",0 L"+T+","+Z+" C"+rr+","+Z+" "+rr+","+K+" 0,"+$+" z";f+="";break;case"flowChartMultidocument":var Z,$,K,ar,tr,er,sr,or,ir,rr,nr,dr,hr,fr,vr,Lr;Z=18022*A/21600,$=3675*A/21600,K=23542*A/21600,ar=1815*A/21600,tr=16252*A/21600,er=16352*A/21600,sr=14392*A/21600,or=20782*A/21600,ir=14467*A/21600,rr=1532*T/21600,nr=2e4*T/21600,dr=9298*T/21600,hr=19298*T/21600,fr=18595*T/21600,vr=2972*T/21600,Lr=20800*T/21600;var J="M0,"+$+" L"+fr+","+$+" L"+fr+","+Z+" C"+dr+","+Z+" "+dr+","+K+" 0,"+or+" zM"+rr+","+$+" L"+rr+","+ar+" L"+nr+","+ar+" L"+nr+","+tr+" C"+hr+","+tr+" "+fr+","+er+" "+fr+","+er+"M"+vr+","+ar+" L"+vr+",0 L"+T+",0 L"+T+","+sr+" C"+Lr+","+sr+" "+nr+","+ir+" "+nr+","+ir;f+="";break;case"actionButtonBackPrevious":var mr,gr,br,kr,yr,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr;var J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" zM"+kr+","+wr+" L"+yr+","+gr+" L"+yr+","+br+" z";f+="";break;case"actionButtonBeginning":var mr,gr,br,kr,yr,Ir,Cr,xr,_r,Dr,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr,Ir=3*Pr/4,Cr=Ir/8,xr=Ir/4,_r=kr+Cr,Dr=kr+xr;var J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" zM"+Dr+","+wr+" L"+yr+","+gr+" L"+yr+","+br+" zM"+_r+","+gr+" L"+kr+","+gr+" L"+kr+","+br+" L"+_r+","+br+" z";f+="";break;case"actionButtonDocument":var mr,gr,br,Gr,kr,yr,Ir,Cr,xr,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,Gr=9*Pr/32,kr=Mr-Gr,yr=Mr+Gr,Ir=3*Pr/16,Cr=yr-Ir,xr=gr+Ir;var J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" zM"+kr+","+gr+" L"+Cr+","+gr+" L"+yr+","+xr+" L"+yr+","+br+" L"+kr+","+br+" zM"+Cr+","+gr+" L"+Cr+","+xr+" L"+yr+","+xr+" z";f+="";break;case"actionButtonEnd":var mr,gr,br,kr,yr,Ir,Cr,xr,_r,Dr,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr,Ir=3*Pr/4,Cr=3*Ir/4,xr=7*Ir/8,_r=kr+Cr,Dr=kr+xr;var J="M0,"+A+" L"+T+","+A+" L"+T+",0 L0,0 z M"+Dr+","+gr+" L"+yr+","+gr+" L"+yr+","+br+" L"+Dr+","+br+" z M"+_r+","+wr+" L"+kr+","+gr+" L"+kr+","+br+" z";f+="";break;case"actionButtonForwardNext":var mr,gr,br,kr,yr,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr;var J="M0,"+A+" L"+T+","+A+" L"+T+",0 L0,0 z M"+yr+","+wr+" L"+kr+","+gr+" L"+kr+","+br+" z";f+="";break;case"actionButtonHelp":var mr,gr,kr,Ir,Cr,xr,_r,Sr,Tr,jr,Ar,zr,Rr,Br,Nr,Fr,Or,Er,qr,Hr,Ur,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,kr=Mr-mr,Ir=3*Pr/4,Cr=Ir/7,xr=3*Ir/14,_r=2*Ir/7,Sr=3*Ir/7,Tr=4*Ir/7,jr=17*Ir/28,Ar=21*Ir/28,zr=11*Ir/14,Rr=gr+_r,Br=gr+jr,Nr=gr+Ar,Fr=gr+zr,Or=kr+xr,Er=kr+Sr,qr=kr+Tr,Hr=Ir/14,Ur=3*Ir/28;var Qr=Or+_r,Xr=Er+Cr,Vr=Fr+Ur,Yr=(qr+Er+_r)/2,J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" zM"+Or+","+Rr+b(Qr,Rr,_r,_r,180,360,!1).replace("M","L")+b(Yr,Rr,Cr,xr,0,90,!1).replace("M","L")+b(Yr,Br,Hr,Ur,270,180,!1).replace("M","L")+" L"+qr+","+Nr+" L"+Er+","+Nr+" L"+Er+","+Br+b(Xr,Br,Cr,xr,180,270,!1).replace("M","L")+b(qr,Rr,Hr,Ur,90,0,!1).replace("M","L")+b(Qr,Rr,Cr,Cr,0,-180,!1).replace("M","L")+" zM"+Mr+","+Fr+b(Mr,Vr,Ur,Ur,270,630,!1).replace("M","L")+" z";f+="";break;case"actionButtonHome":var mr,gr,br,kr,yr,Ir,Cr,xr,_r,Dr,Wr,Sr,Tr,jr,Jr,Ar,zr,Zr,$r,Rr,Kr,Br,Nr,Fr,ra,Or,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr,Ir=3*Pr/4,Cr=Ir/16,xr=Ir/8,_r=3*Ir/16,Dr=5*Ir/16,Wr=7*Ir/16,Sr=9*Ir/16,Tr=11*Ir/16,jr=3*Ir/4,Jr=13*Ir/16,Ar=7*Ir/8,zr=gr+Cr,Zr=gr+_r,$r=gr+Dr,Rr=gr+jr,Kr=kr+xr,Br=kr+Wr,Nr=kr+Sr,Fr=kr+Tr,ra=kr+Jr,Or=kr+Ar;var J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" z M"+Mr+","+gr+" L"+kr+","+wr+" L"+Kr+","+wr+" L"+Kr+","+br+" L"+Or+","+br+" L"+Or+","+wr+" L"+yr+","+wr+" L"+ra+","+$r+" L"+ra+","+zr+" L"+Fr+","+zr+" L"+Fr+","+Zr+" z M"+Br+","+Rr+" L"+Nr+","+Rr+" L"+Nr+","+br+" L"+Br+","+br+" z";f+="";break;case"actionButtonInformation":var mr,gr,kr,Ir,Cr,Dr,Wr,Sr,Tr,Jr,Ar,zr,Zr,Kr,Br,Nr,Fr,ra,aa,ta,qr,ea,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,kr=Mr-mr,Ir=3*Pr/4,Cr=Ir/32,Dr=5*Ir/16,Wr=3*Ir/8,Sr=13*Ir/32,Tr=19*Ir/32,Jr=11*Ir/16,Ar=13*Ir/16,zr=7*Ir/8,Zr=gr+Cr,Kr=gr+Dr,Br=gr+Wr,Nr=gr+Ar,Fr=gr+zr,ra=kr+Dr,aa=kr+Sr,ta=kr+Tr,qr=kr+Jr,ea=3*Ir/32;var sa=gr+mr,oa=Zr+ea,J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" zM"+Mr+","+gr+b(Mr,sa,mr,mr,270,630,!1).replace("M","L")+" zM"+Mr+","+Zr+b(Mr,oa,ea,ea,270,630,!1).replace("M","L")+"M"+ra+","+Kr+" L"+ta+","+Kr+" L"+ta+","+Nr+" L"+qr+","+Nr+" L"+qr+","+Fr+" L"+ra+","+Fr+" L"+ra+","+Nr+" L"+aa+","+Nr+" L"+aa+","+Br+" L"+ra+","+Br+" z";f+="";break;case"actionButtonMovie":var mr,gr,br,kr,yr,Ir,Cr,xr,_r,Dr,Wr,Sr,Tr,jr,Jr,Ar,zr,Zr,$r,Rr,Kr,Br,Nr,Fr,ra,Or,aa,ta,Er,qr,ea,ia,la,Hr,Ur,na,da,ca,ha,pa,fa,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr,Ir=3*Pr/4,Cr=1455*Ir/21600,xr=1905*Ir/21600,_r=2325*Ir/21600,Dr=16155*Ir/21600,Wr=17010*Ir/21600,Sr=19335*Ir/21600,Tr=19725*Ir/21600,jr=20595*Ir/21600,Jr=5280*Ir/21600,Ar=5730*Ir/21600,zr=6630*Ir/21600,Zr=7492*Ir/21600,$r=9067*Ir/21600,Rr=9555*Ir/21600,Kr=13342*Ir/21600,Br=14580*Ir/21600,Nr=15592*Ir/21600,Fr=kr+Cr,ra=kr+xr,Or=kr+_r,aa=kr+Dr,ta=kr+Wr,Er=kr+Sr,qr=kr+Tr,ea=kr+jr,ia=gr+Jr,la=gr+Ar,Hr=gr+zr,Ur=gr+Zr,na=gr+$r,da=gr+Rr,ca=gr+Kr,ha=gr+Br,pa=gr+Nr,fa=gr+Fr;var J="M0,"+A+" L"+T+","+A+" L"+T+",0 L0,0 zM"+kr+","+ia+" L"+kr+","+da+" L"+Fr+","+da+" L"+ra+","+na+" L"+Or+","+na+" L"+Or+","+pa+" L"+ta+","+pa+" L"+ta+","+ca+" L"+Er+","+ca+" L"+ea+","+ha+" L"+yr+","+ha+" L"+yr+","+Hr+" L"+ea+","+Hr+" L"+qr+","+Ur+" L"+ta+","+Ur+" L"+ta+","+Hr+" L"+aa+","+la+" L"+ra+","+la+" L"+Fr+","+ia+" z";f+="";break;case"actionButtonReturn":var mr,gr,br,kr,yr,Ir,Cr,xr,_r,Dr,Wr,Sr,Tr,jr,Jr,Ar,zr,Zr,$r,Rr,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr,Ir=3*Pr/4,Cr=7*Ir/8,xr=3*Ir/4,_r=5*Ir/8,Dr=3*Ir/8,Wr=Ir/4,Sr=gr+xr,Tr=gr+_r,jr=gr+Wr,Jr=kr+Cr,Ar=kr+xr,zr=kr+_r,Zr=kr+Dr,$r=kr+Wr,Rr=Ir/8;var Qr=zr-Rr,oa=Sr-Rr,va=kr+Dr,ua=br-Dr,J="M0,"+A+" L"+T+","+A+" L"+T+",0 L0,0 z M"+yr+","+jr+" L"+Ar+","+gr+" L"+Mr+","+jr+" L"+zr+","+jr+" L"+zr+","+Tr+b(Qr,Tr,Rr,Rr,0,90,!1).replace("M","L")+" L"+Zr+","+Sr+b(Zr,oa,Rr,Rr,90,180,!1).replace("M","L")+" L"+$r+","+jr+" L"+kr+","+jr+" L"+kr+","+Tr+b(va,Tr,Dr,Dr,180,90,!1).replace("M","L")+" L"+Mr+","+br+b(Mr,ua,Dr,Dr,90,0,!1).replace("M","L")+" L"+Jr+","+jr+" z";f+="";break;case"actionButtonSound":var mr,gr,br,kr,yr,Ir,Cr,xr,_r,Dr,Wr,Sr,Tr,jr,Jr,Ar,zr,Zr,$r,Mr=T/2,wr=A/2,Pr=Math.min(T,A);mr=3*Pr/8,gr=wr-mr,br=wr+mr,kr=Mr-mr,yr=Mr+mr,Ir=3*Pr/4,Cr=Ir/8,xr=5*Ir/16,_r=5*Ir/8,Dr=11*Ir/16,Wr=3*Ir/4,Sr=7*Ir/8,Tr=gr+Cr,jr=gr+xr,Jr=gr+Dr,Ar=gr+Sr,zr=kr+xr,Zr=kr+_r,$r=kr+Wr;var J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" z M"+kr+","+jr+" L"+zr+","+jr+" L"+Zr+","+gr+" L"+Zr+","+br+" L"+zr+","+Jr+" L"+kr+","+Jr+" z M"+$r+","+jr+" L"+yr+","+Tr+" M"+$r+","+wr+" L"+yr+","+wr+" M"+$r+","+Jr+" L"+yr+","+Ar;f+="";break;case"irregularSeal1":case"irregularSeal2":if("irregularSeal1"==u)var J="M"+10800*T/21600+","+5800*A/21600+" L"+14522*T/21600+",0 L"+14155*T/21600+","+5325*A/21600+" L"+18380*T/21600+","+4457*A/21600+" L"+16702*T/21600+","+7315*A/21600+" L"+21097*T/21600+","+8137*A/21600+" L"+17607*T/21600+","+10475*A/21600+" L"+T+","+13290*A/21600+" L"+16837*T/21600+","+12942*A/21600+" L"+18145*T/21600+","+18095*A/21600+" L"+14020*T/21600+","+14457*A/21600+" L"+13247*T/21600+","+19737*A/21600+" L"+10532*T/21600+","+14935*A/21600+" L"+8485*T/21600+","+A+" L"+7715*T/21600+","+15627*A/21600+" L"+4762*T/21600+","+17617*A/21600+" L"+5667*T/21600+","+13937*A/21600+" L"+135*T/21600+","+14587*A/21600+" L"+3722*T/21600+","+11775*A/21600+" L0,"+8615*A/21600+" L"+4627*T/21600+","+7617*A/21600+" L"+370*T/21600+","+2295*A/21600+" L"+7312*T/21600+","+6320*A/21600+" L"+8352*T/21600+","+2295*A/21600+" z";else if("irregularSeal2"==u)var J="M"+11462*T/21600+","+4342*A/21600+" L"+14790*T/21600+",0 L"+14525*T/21600+","+5777*A/21600+" L"+18007*T/21600+","+3172*A/21600+" L"+16380*T/21600+","+6532*A/21600+" L"+T+","+6645*A/21600+" L"+16985*T/21600+","+9402*A/21600+" L"+18270*T/21600+","+11290*A/21600+" L"+16380*T/21600+","+12310*A/21600+" L"+18877*T/21600+","+15632*A/21600+" L"+14640*T/21600+","+14350*A/21600+" L"+14942*T/21600+","+17370*A/21600+" L"+12180*T/21600+","+15935*A/21600+" L"+11612*T/21600+","+18842*A/21600+" L"+9872*T/21600+","+17370*A/21600+" L"+8700*T/21600+","+19712*A/21600+" L"+7527*T/21600+","+18125*A/21600+" L"+4917*T/21600+","+A+" L"+4805*T/21600+","+18240*A/21600+" L"+1285*T/21600+","+17825*A/21600+" L"+3330*T/21600+","+15370*A/21600+" L0,"+12877*A/21600+" L"+3935*T/21600+","+11592*A/21600+" L"+1172*T/21600+","+8270*A/21600+" L"+5372*T/21600+","+7817*A/21600+" L"+4502*T/21600+","+3625*A/21600+" L"+8550*T/21600+","+6382*A/21600+" L"+9722*T/21600+","+1887*A/21600+" z";f+="";break;case"flowChartTerminator":var rr,nr,Z,La=180,ma=90,ga=270;rr=3475*T/21600,nr=18125*T/21600,Z=10800*A/21600;var J="M"+rr+",0 L"+nr+",0"+b(nr,A/2,rr,Z,ga,ga+La,!1).replace("M","L")+" L"+rr+","+A+b(rr,A/2,rr,Z,ma,ma+La,!1).replace("M","L")+" z";f+="";break;case"flowChartPunchedTape":var rr,rr,Z,$,La=180;rr=5*T/20,Z=2*A/20,$=18*A/20;var J="M0,"+Z+b(rr,Z,rr,Z,La,0,!1).replace("M","L")+b(.75*T,Z,rr,Z,La,360,!1).replace("M","L")+" L"+T+","+$+b(.75*T,$,rr,Z,0,-La,!1).replace("M","L")+b(rr,$,rr,Z,0,La,!1).replace("M","L")+" z";f+="";break;case"flowChartOnlineStorage":var rr,Z,ga=270,ma=90;rr=1*T/6,Z=3*A/6;var J="M"+rr+",0 L"+T+",0"+b(T,A/2,rr,Z,ga,90,!1).replace("M","L")+" L"+rr+","+A+b(rr,A/2,rr,Z,ma,270,!1).replace("M","L")+" z";f+="";break;case"flowChartDisplay":var rr,nr,Z,ga=270,La=180;rr=1*T/6,nr=5*T/6,Z=3*A/6;var J="M0,"+Z+" L"+rr+",0 L"+nr+",0"+b(T,A/2,rr,Z,ga,ga+La,!1).replace("M","L")+" L"+rr+","+A+" z";f+="";break;case"flowChartDelay":var ba=T/2,ka=A/2,La=180,ga=270,ma=90,J="M0,0 L"+ba+",0"+b(ba,ka,ba,ka,ga,ga+La,!1).replace("M","L")+" L0,"+A+" z";f+="";break;case"flowChartMagneticTape":var ya,Ma,wa,ba=T/2,ka=A/2,La=180,ga=270,ma=90;ya=ka*Math.sin(Math.PI/4),Ma=ka+ya,wa=Math.atan(A/T);var Pa=180*wa/Math.PI,J="M"+ba+","+A+b(ba,ka,ba,ka,ma,La,!1).replace("M","L")+b(ba,ka,ba,ka,La,ga,!1).replace("M","L")+b(ba,ka,ba,ka,ga,360,!1).replace("M","L")+b(ba,ka,ba,ka,0,Pa,!1).replace("M","L")+" L"+T+","+Ma+" L"+T+","+A+" z";f+="";break;case"ellipse":case"flowChartConnector":case"flowChartSummingJunction":case"flowChartOr":if(f+="","flowChartOr"==u)f+=" ",f+=" ";else if("flowChartSummingJunction"==u){var o,ya,Ia,Ca,xa,Ma,Mr=T/2,wr=A/2,ba=T/2,ka=A/2,_a=Math.PI/4;o=ba*Math.cos(_a),ya=ka*Math.sin(_a),Ia=Mr-o,Ca=Mr+o,xa=wr-ya,Ma=wr+ya,f+=" ",f+=" "}break;case"roundRect":case"round1Rect":case"round2DiagRect":case"round2SameRect":case"snip1Rect":case"snip2DiagRect":case"snip2SameRect":case"flowChartAlternateProcess":case"flowChartPunchedCard":var Da,Ga,Sa,Ta,ja,Aa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(void 0!==za&&za.constructor===Array)for(var Ra=0;Ra";break;case"snipRoundRect":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=.33334,Ta=.33334;if(void 0!==za)for(var Ra=0;Ra";break;case"bentConnector2":var J="";J=M?"M 0 "+T+" L "+A+" "+T+" L "+A+" 0":"M "+T+" 0 L "+T+" "+A+" L 0 "+A,f+="";break;case"triangle":case"flowChartExtract":case"flowChartMerge":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),qa=.5;void 0!==Ea&&(qa=96*parseInt(Ea.substr(4))/9144e3);var Fa="";"flowChartMerge"==u&&(Fa="transform='rotate(180 "+T/2+","+A/2+")'"),f+=" ";break;case"diamond":case"flowChartDecision":case"flowChartSort":f+=" ","flowChartSort"==u&&(f+=" ");break;case"trapezoid":case"flowChartManualOperation":case"flowChartManualInput":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Ha=.2,Ua=.7407;if(void 0!==Ea){var Qa=96*parseInt(Ea.substr(4))/9144e3;Ha=.5*Qa/Ua}var Xa=0,Fa="";"flowChartManualOperation"==u&&(Fa="transform='rotate(180 "+T/2+","+A/2+")'"),"flowChartManualInput"==u&&(Ha=0,Xa=A/5),f+=" ";break;case"parallelogram":case"flowChartInputOutput":var Ua,Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Ha=.25;if(Ua=T>A?T/A:A/T,void 0!==Ea){var Qa=parseInt(Ea.substr(4))/1e5;Ha=Qa/Ua}f+=" ";break;case"pentagon":f+=" ";break;case"hexagon":case"flowChartPreparation":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=24e5/914400,Ya=11085120/914400,Wa=48e5/914400,Ja=96e5/914400,Za=60*Math.PI/180;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var $a,Ka,rt,rr,nr,at,Z,$,wr=A/2,ka=A/2,Pr=Math.min(T,A);$a=Wa*T/Pr,Ka=0>Va?0:Va>$a?$a:Va,rt=ka*Ya/Ja,rr=Pr*Ka/Ja,nr=T-rr,at=rt*Math.sin(Za),Z=wr-at,$=wr+at;var J="M0,"+wr+" L"+rr+","+Z+" L"+nr+","+Z+" L"+T+","+wr+" L"+nr+","+$+" L"+rr+","+$+" z";f+="";break;case"heptagon":f+=" ";break;case"octagon":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),tt=.25;void 0!==Ea&&(tt=parseInt(Ea.substr(4))/1e5);var et=1-tt;f+=" ";break; +case"decagon":f+=" ";break;case"dodecagon":f+=" ";break;case"star4":case"star5":case"star6":case"star7":case"star8":case"star10":case"star12":case"star16":case"star24":case"star32":var st,Va,Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),ot=u.substr(4);switch(ot){case"4":Va=30;break;case"5":Va=40;break;case"6":Va=60;break;case"7":Va=70;break;case"8":Va=77;break;case"10":Va=86;break;case"12":case"16":case"24":case"32":Va=75}void 0!==Ea&&(st=lr(Ea,["attrs","fmla"]),void 0===st&&(st=Ea[0].attrs.fmla),void 0!==st&&(Va=2*parseInt(st.substr(4))/1e3));var it=L(Va,ot);f+=" ";break;case"pie":case"pieWedge":case"arc":var tt,et,lt,st,nt,dt,Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);"pie"==u?(tt=0,et=270,lt=A,dt=!0):"pieWedge"==u?(tt=180,et=270,lt=2*A,dt=!0):"arc"==u&&(tt=270,et=0,lt=A,dt=!1),void 0!==Ea&&(st=lr(Ea,["attrs","fmla"]),nt=st,void 0===st&&(st=Ea[0].attrs.fmla,nt=Ea[1].attrs.fmla),void 0!==st&&(tt=parseInt(st.substr(4))/6e4),void 0!==nt&&(et=parseInt(nt.substr(4))/6e4));var ct=m(lt,T,tt,et,dt);f+="";break;case"chord":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=45,Ta=270;if(void 0!==za)for(var Ra=0;Ra";break;case"frame":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),tt=12e5/914400,Wa=48e5/914400,Ja=96e5/914400;void 0!==Ea&&(tt=96*parseInt(Ea.substr(4))/914400);var ft,rr,hr,ar;ft=0>tt?0:tt>Wa?Wa:tt,rr=Math.min(T,A)*ft/Ja,hr=T-rr,ar=A-rr;var J="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" zM"+rr+","+rr+" L"+rr+","+ar+" L"+hr+","+ar+" L"+hr+","+rr+" z";f+="";break;case"donut":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=24e5/914400,Wa=48e5/914400,Ja=96e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,vt,ut,Lt;Ka=0>Va?0:Va>Wa?Wa:Va,vt=Math.min(T,A)*Ka/Ja,ut=T/2-vt,Lt=A/2-vt;var J="M0,"+A/2+b(T/2,A/2,T/2,A/2,180,270,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,270,360,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,0,90,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,90,180,!1).replace("M","L")+" zM"+vt+","+A/2+b(T/2,A/2,ut,Lt,180,90,!1).replace("M","L")+b(T/2,A/2,ut,Lt,90,0,!1).replace("M","L")+b(T/2,A/2,ut,Lt,0,-90,!1).replace("M","L")+b(T/2,A/2,ut,Lt,270,180,!1).replace("M","L")+" z";f+="";break;case"noSmoking":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=18e5/914400,Wa=48e5/914400,Ja=96e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,vt,ut,Lt,mt,gt,bt,kt,yt,Mt,wt,Pt,It,Ct,xt,_t;Ka=0>Va?0:Va>Wa?Wa:Va,vt=Math.min(T,A)*Ka/Ja,ut=T/2-vt,Lt=A/2-vt,mt=Math.atan(A/T),gt=Lt*Math.cos(mt),bt=ut*Math.sin(mt),kt=Math.sqrt(gt*gt+bt*bt),yt=ut*Lt/kt,Mt=vt/2,wt=Math.atan(Mt/yt),Pt=2*wt,It=-Math.PI+Pt,xt=mt-wt,_t=xt-Math.PI;var Dt,Gt,St,Tt,Gr,at,rr,Z,Z,$;Dt=Lt*Math.cos(xt),Gt=ut*Math.sin(xt),St=Math.sqrt(Dt*Dt+Gt*Gt),Tt=ut*Lt/St,Gr=Tt*Math.cos(xt),at=Tt*Math.sin(xt),rr=T/2+Gr,Z=A/2+at,nr=T/2-Gr,$=A/2-at;var jt=180*xt/Math.PI,At=180*_t/Math.PI,zt=180*It/Math.PI,J="M0,"+A/2+b(T/2,A/2,T/2,A/2,180,270,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,270,360,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,0,90,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,90,180,!1).replace("M","L")+" zM"+rr+","+Z+b(T/2,A/2,ut,Lt,jt,jt+zt,!1).replace("M","L")+" zM"+nr+","+$+b(T/2,A/2,ut,Lt,At,At+zt,!1).replace("M","L")+" z";f+="";break;case"halfFrame":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=3.5,Ta=3.5,Rt=96e5/914400;if(void 0!==za)for(var Ra=0;RaTa?0:Ta>Ft?Ft:Ta;var rr=Nt*Bt/Rt,Ot=A*rr/T,Et=A-Ot,qt=Rt*Et/Nt;ft=0>Ga?0:Ga>qt?qt:Ga;var Z=Nt*ft/Rt,mr=Z*T/A,nr=T-mr,Ht=rr*A/T,$=A-Ht,J="M0,0 L"+T+",0 L"+nr+","+Z+" L"+rr+","+Z+" L"+rr+","+$+" L0,"+A+" z";f+="";break;case"blockArc":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=180,et=0,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Ratt?0:tt>$t?$t:tt,Vt=0>et?0:et>$t?$t:et,Yt=0>Qt?0:Qt>Wa?Wa:Qt,Wt=Vt-Xt,Jt=Wt+$t,It=Wt>0?Wt:Jt,Zt=-It;var Kt,re,Gr,at,rr,Z,ae,te,ba,ka,Mr,wr,ee=Xt+It,se=Vt+Zt;ae=Xt*Math.PI/180,te=Vt*Math.PI/180,ba=T/2,ka=A/2,Mr=T/2,wr=A/2,Xt>90&&270>Xt?(Kt=ba*Math.sin(Math.PI/2-ae),re=ka*Math.cos(Math.PI/2-ae),Gr=ba*Math.cos(Math.atan(re/Kt)),at=ka*Math.sin(Math.atan(re/Kt)),rr=Mr-Gr,Z=wr-at):(Kt=ba*Math.sin(ae),re=ka*Math.cos(ae),Gr=ba*Math.cos(Math.atan(Kt/re)),at=ka*Math.sin(Math.atan(Kt/re)),rr=Mr+Gr,Z=wr+at);var vt,ut,Lt,oe,ie,mr,Ht,nr,$;vt=Math.min(T,A)*Yt/Ja,ut=ba-vt,Lt=ka-vt,450>=ee&&ee>270||ee>=630&&720>ee?(oe=ut*Math.sin(te),ie=Lt*Math.cos(te),mr=ut*Math.cos(Math.atan(oe/ie)),Ht=Lt*Math.sin(Math.atan(oe/ie)),nr=Mr+mr,$=wr+Ht):(oe=ut*Math.sin(Math.PI/2-te),ie=Lt*Math.cos(Math.PI/2-te),mr=ut*Math.cos(Math.atan(ie/oe)),Ht=Lt*Math.sin(Math.atan(ie/oe)),nr=Mr-mr,$=wr-Ht);var J="M"+rr+","+Z+b(ba,ka,ba,ka,Xt,ee,!1).replace("M","L")+" L"+nr+","+$+b(ba,ka,ut,Lt,Vt,se,!1).replace("M","L")+" z";f+="";break;case"bracePair":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=799968/914400,Wa=24e5/914400,Ja=48e5/914400,le=96e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,rr,nr,dr,hr,$,K,ar,wr=A/2,ne=360,La=180,ma=90,ga=270;Ka=0>Va?0:Va>Wa?Wa:Va;var Nt=Math.min(T,A);rr=Nt*Ka/le,nr=Nt*Ka/Ja,dr=T-nr,hr=T-rr,$=wr-rr,K=wr+rr,ar=A-rr;var J="M"+nr+","+A+b(nr,ar,rr,rr,ma,La,!1).replace("M","L")+" L"+rr+","+K+b(0,K,rr,rr,0,-ma,!1).replace("M","L")+b(0,$,rr,rr,ma,0,!1).replace("M","L")+" L"+rr+","+rr+b(nr,rr,rr,rr,La,ga,!1).replace("M","L")+" M"+dr+",0"+b(dr,rr,rr,rr,ga,ne,!1).replace("M","L")+" L"+hr+","+$+b(T,$,rr,rr,La,ma,!1).replace("M","L")+b(T,K,rr,rr,ga,La,!1).replace("M","L")+" L"+hr+","+ar+b(dr,ar,rr,rr,0,ma,!1).replace("M","L");f+="";break;case"leftBrace":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=799968/914400,et=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ja?Ja:et;var Nt=Math.min(T,A);de=Ja-Bt,ce=Bt>de?de:Bt,he=ce/2;var qt=he*A/Nt;ft=0>tt?0:tt>qt?qt:tt,Z=Nt*ft/Ja,K=A*Bt/Ja,$=K-Z,ar=K+Z;var J="M"+T+","+A+b(T,A-Z,T/2,Z,ma,La,!1).replace("M","L")+" L"+T/2+","+ar+b(0,ar,T/2,Z,0,-ma,!1).replace("M","L")+b(0,$,T/2,Z,ma,0,!1).replace("M","L")+" L"+T/2+","+Z+b(T,Z,T/2,Z,La,ga,!1).replace("M","L");f+="";break;case"rightBrace":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=799968/914400,et=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ja?Ja:et;var Nt=Math.min(T,A);de=Ja-Bt,ce=Bt>de?de:Bt,he=ce/2;var qt=he*A/Nt;ft=0>tt?0:tt>qt?qt:tt,Z=Nt*ft/Ja,K=A*Bt/Ja,$=K-Z,ar=A-Z;var J="M0,0"+b(0,Z,T/2,Z,ga,ne,!1).replace("M","L")+" L"+T/2+","+$+b(T,$,T/2,Z,La,ma,!1).replace("M","L")+b(T,K+Z,T/2,Z,ga,La,!1).replace("M","L")+" L"+T/2+","+ar+b(0,ar,T/2,Z,0,ma,!1).replace("M","L");f+="";break;case"bracketPair":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=1600032/914400,Wa=48e5/914400,Ja=96e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,rr,nr,$,pe=T,fe=A,La=180,ma=90,ga=270;Ka=0>Va?0:Va>Wa?Wa:Va,rr=Math.min(T,A)*Ka/Ja,nr=pe-rr,$=fe-rr;var J=b(rr,rr,rr,rr,ga,La,!1)+b(rr,$,rr,rr,La,ma,!1).replace("M","L")+b(nr,rr,rr,rr,ga,ga+ma,!1)+b(nr,$,rr,rr,0,ma,!1).replace("M","L");f+="";break;case"leftBracket":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=799968/914400,Wa=48e5/914400,Ja=96e5/914400,$a=Wa*A/Math.min(T,A);void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,Z,$,pe=T,fe=A,La=180,ma=90,ga=270;Ka=0>Va?0:Va>$a?$a:Va,Z=Math.min(T,A)*Ka/Ja,Z>T&&(Z=T),$=fe-Z;var J="M"+pe+","+fe+b(Z,$,Z,Z,ma,La,!1).replace("M","L")+" L0,"+Z+b(Z,Z,Z,Z,La,ga,!1).replace("M","L")+" L"+pe+",0";f+="";break;case"rightBracket":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=799968/914400,Wa=48e5/914400,Ja=96e5/914400,$a=Wa*A/Math.min(T,A);void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,Z,$,K,ne=360,La=180,ma=90,ga=270;Ka=0>Va?0:Va>$a?$a:Va,Z=Math.min(T,A)*Ka/Ja,$=A-Z,K=T-Z;var J="M0,"+A+b(K,$,Z,Z,ma,0,!1).replace("M","L")+" L"+T+","+A/2+b(K,Z,Z,Z,ne,ga,!1).replace("M","L")+" L0,0";f+="";break;case"moon":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=.5;void 0!==Ea&&(Va=parseInt(Ea.substr(4))/1e5);var ka,La,ma;ka=A/2,La=180,ma=90;var et=(1-Va)*T,J="M"+T+","+A+b(T,ka,T,ka,ma,ma+La,!1).replace("M","L")+b(T,ka,et,ka,ma+La,ma,!1).replace("M","L")+" z";f+="";break;case"corner":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=48e5/914400,Ta=48e5/914400,Rt=96e5/914400;if(void 0!==za)for(var Ra=0;RaGa?0:Ga>qt?qt:Ga,Bt=0>Ta?0:Ta>Ft?Ft:Ta,rr=Nt*Bt/Rt,at=Nt*ft/Rt,Z=A-at;var J="M0,0 L"+rr+",0 L"+rr+","+Z+" L"+T+","+Z+" L"+T+","+A+" L0,"+A+" z";f+="";break;case"diagStripe":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Ga=48e5/914400,Rt=96e5/914400;void 0!==Ea&&(Ga=96*parseInt(Ea.substr(4))/914400);var ft,nr,$;ft=0>Ga?0:Ga>Rt?Rt:Ga,nr=T*ft/Rt,$=A*ft/Rt;var J="M0,"+$+" L"+nr+",0 L"+T+",0 L0,"+A+" z";f+="";break;case"gear6":case"gear9":P=0;var J,ve=u.substr(4);J="6"==ve?g(T,A/3.5,parseInt(ve)):g(T,A/3.5,parseInt(ve)),f+="";break;case"bentConnector3":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),qa=.5;void 0!==Ea&&(qa=parseInt(Ea.substr(4))/1e5,f+=M?" ";break;case"teardrop":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),tt=96e5/914400,ue=tt,Le=192e5/914400;void 0!==Ea&&(tt=96*parseInt(Ea.substr(4))/914400);var ft,me,ge,be,ke,ye,Gr,at,rr,Z,nr,$,Me;ft=0>tt?0:tt>Le?Le:tt,me=Math.sqrt(2),ge=me*(T/2),be=me*(A/2),ke=ge*ft/ue,ye=be*ft/ue,Me=45*Math.PI/180,Gr=ke*Math.cos(Me),at=ye*Math.cos(Me),rr=T/2+Gr,Z=A/2-at,nr=(T/2+rr)/2,$=(A/2+Z)/2;var Oa=b(T/2,A/2,T/2,A/2,180,270,!1)+"Q "+nr+",0 "+rr+","+Z+"Q "+T+","+$+" "+T+","+A/2+b(T/2,A/2,T/2,A/2,0,90,!1).replace("M","L")+b(T/2,A/2,T/2,A/2,90,180,!1).replace("M","L")+" z";f+="";break;case"plaque":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),tt=1600032/914400,ue=48e5/914400,Le=96e5/914400;void 0!==Ea&&(tt=96*parseInt(Ea.substr(4))/914400);var ft,rr,nr,$;ft=0>tt?0:tt>ue?ue:tt,rr=ft*Math.min(T,A)/Le,nr=T-rr,$=A-rr;var Oa="M0,"+rr+b(0,0,rr,rr,90,0,!1).replace("M","L")+" L"+nr+",0"+b(T,0,rr,rr,180,90,!1).replace("M","L")+" L"+T+","+$+b(T,A,rr,rr,270,180,!1).replace("M","L")+" L"+rr+","+A+b(0,A,rr,rr,0,-90,!1).replace("M","L")+" z";f+="";break;case"sun":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),we=96/914400,tt=25e3*we,Wa=12500*we,Ja=46875*we;void 0!==Ea&&(tt=parseInt(Ea.substr(4))*we);var ft;ft=Wa>tt?Wa:tt>Ja?Ja:tt;var Pe=5e4*we,Ie=1e5*we,Ce=Pe-ft,Ot=Ce*(30274*we)/(32768*we),Et=Ce*(12540*we)/(32768*we),xe=Pe-Ot,_e=Pe-Et,De=Ce*(23170*we)/(32768*we),Ge=Pe+De,gr=Pe-De,br=3*xe/4,kr=3*_e/4,yr=br+3662*we,Ir=kr+36620*we,Cr=kr+12500*we,xr=Ie-br,_r=Ie-yr,Dr=Ie-Ir,Wr=Ie-Cr,Se=T*(18436*we)/(21600*we),Te=A*(3163*we)/(21600*we),je=T*(3163*we)/(21600*we),Ae=A*(18436*we)/(21600*we),ze=T*Ge/Ie,Re=T*gr/Ie,Be=T*br/Ie,Ne=T*yr/Ie,Fe=T*Ir/Ie,Oe=T*Cr/Ie,Ee=T*xr/Ie,qe=T*_r/Ie,He=T*Dr/Ie,Ue=T*Wr/Ie,Qe=T*ft/Ie,pt=T*Ce/Ie,ht=A*Ce/Ie,or=A*Ge/Ie,ir=A*gr/Ie,Xe=A*br/Ie,Ve=A*yr/Ie,Ye=A*Ir/Ie,We=A*Cr/Ie,Je=A*xr/Ie,Ze=A*_r/Ie,$e=A*Dr/Ie,Ke=A*Wr/Ie,Oa="M"+T+","+A/2+" L"+Ee+","+Ke+" L"+Ee+","+We+"z M"+Se+","+Te+" L"+qe+","+$e+" L"+Fe+","+Ve+"z M"+T/2+",0 L"+Ue+","+Xe+" L"+Oe+","+Xe+"z M"+je+","+Te+" L"+He+","+Ve+" L"+Ne+","+$e+"z M0,"+A/2+" L"+Be+","+We+" L"+Be+","+Ke+"z M"+je+","+Ae+" L"+Ne+","+Ye+" L"+He+","+Ze+"z M"+T/2+","+A+" L"+Oe+","+Je+" L"+Ue+","+Je+"z M"+Se+","+Ae+" L"+Fe+","+Ze+" L"+qe+","+Ye+" z M"+Qe+","+A/2+b(T/2,A/2,pt,ht,180,540,!1).replace("M","L")+" z";f+="";break;case"heart":var Gr,mr,rr,nr,dr,hr,Z;Gr=49*T/48,mr=10*T/48,rr=T/2-Gr,nr=T/2-mr,dr=T/2+mr,hr=T/2+Gr,Z=-A/3;var Oa="M"+T/2+","+A/4+"C"+dr+","+Z+" "+hr+","+A/4+" "+T/2+","+A+"C"+rr+","+A/4+" "+nr+","+Z+" "+T/2+","+A/4+" z";f+="";break;case"lightningBolt":var rr=5022*T/21600,nr=11050*T/21600,dr=8472*T/21600,hr=8757*T/21600,fr=10012*T/21600,vr=14767*T/21600,Lr=12222*T/21600,ze=12860*T/21600,Re=13917*T/21600,Be=7602*T/21600,rs=16577*T/21600,Z=3890*A/21600,$=6080*A/21600,K=6797*A/21600,ar=7437*A/21600,tr=12877*A/21600,er=9705*A/21600,sr=12007*A/21600,or=13987*A/21600,ir=8382*A/21600,Xe=14277*A/21600,as=14915*A/21600,Oa="M"+dr+",0 L"+ze+","+$+" L"+nr+","+K+" L"+rs+","+sr+" L"+vr+","+tr+" L"+T+","+A+" L"+fr+","+as+" L"+Lr+","+or+" L"+rr+","+er+" L"+Be+","+ir+" L0,"+Z+" z";f+="";break;case"cube":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),we=96/914400,Va=25e3*we;void 0!==Ea&&(Va=parseInt(Ea.substr(4))*we);var Oa,Ka,Z,ar,hr,Ja=1e5*we,Pr=Math.min(T,A);Ka=0>Va?0:Va>Ja?Ja:Va,Z=Pr*Ka/Ja,ar=A-Z,hr=T-Z,Oa="M0,"+Z+" L"+Z+",0 L"+T+",0 L"+T+","+ar+" L"+hr+","+A+" L0,"+A+" zM0,"+Z+" L"+hr+","+Z+" M"+hr+","+Z+" L"+T+",0M"+hr+","+Z+" L"+hr+","+A,f+="";break;case"bevel":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),we=96/914400,Va=12500*we;void 0!==Ea&&(Va=parseInt(Ea.substr(4))*we);var Oa,Ka,rr,nr,$,Wa=5e4*we,Ja=1e5*we,Pr=Math.min(T,A);Ka=0>Va?0:Va>Wa?Wa:Va,rr=Pr*Ka/Ja,nr=T-rr,$=A-rr,Oa="M0,0 L"+T+",0 L"+T+","+A+" L0,"+A+" z M"+rr+","+rr+" L"+nr+","+rr+" L"+nr+","+$+" L"+rr+","+$+" z M0,0 L"+rr+","+rr+" M0,"+A+" L"+rr+","+$+" M"+T+",0 L"+nr+","+rr+" M"+T+","+A+" L"+nr+","+$,f+="";break;case"foldedCorner":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),we=96/914400,Va=16667*we;void 0!==Ea&&(Va=parseInt(Ea.substr(4))*we);var Oa,Ka,Ht,at,rr,nr,$,Z,Wa=5e4*we,Ja=1e5*we,Pr=Math.min(T,A);Ka=0>Va?0:Va>Wa?Wa:Va,Ht=Pr*Ka/Ja,at=Ht/5,rr=T-Ht,nr=rr+at,$=A-Ht,Z=$+at,Oa="M"+rr+","+A+" L"+nr+","+Z+" L"+T+","+$+" L"+rr+","+A+" L0,"+A+" L0,0 L"+T+",0 L"+T+","+$,f+="";break;case"smileyFace":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),we=96/914400,Va=4653*we;void 0!==Ea&&(Va=parseInt(Ea.substr(4))*we);var Oa,Ka,rr,nr,dr,hr,Z,K,Ht,$,ar,ts,tr,pt,ht,ba,ka,Wa=5e4*we,Ja=1e5*we,le=4653*we,Pr=Math.min(T,A);ba=T/2,ka=A/2,Ka=-le>Va?-le:Va>le?le:Va,rr=4969*T/21699,nr=6215*T/21600,dr=13135*T/21600,hr=16640*T/21600,Z=7570*A/21600,K=16515*A/21600,Ht=A*Ka/Ja,$=K-Ht,ar=K+Ht,ts=A*Ka/Wa,tr=ar+ts,pt=1125*T/21600,ht=1125*A/21600;var Qr=nr-pt*Math.cos(Math.PI),sa=Z-ht*Math.sin(Math.PI),Xr=dr-pt*Math.cos(Math.PI);Oa=b(Qr,sa,pt,ht,180,540,!1)+b(Xr,sa,pt,ht,180,540,!1)+" M"+rr+","+$+" Q"+ba+","+tr+" "+hr+","+$+" Q"+ba+","+tr+" "+rr+","+$+" M0,"+ka+b(ba,ka,ba,ka,180,540,!1).replace("M","L")+" z",f+="";break;case"verticalScroll":case"horizontalScroll":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),we=96/914400,Va=12500*we;void 0!==Ea&&(Va=parseInt(Ea.substr(4))*we);var Oa,Ka,es,ss,os,Wa=25e3*we,Ja=1e5*we,Pr=Math.min(T,A),is=0,ls=0,fe=A,pe=T;if(Ka=0>Va?0:Va>Wa?Wa:Va,es=Pr*Ka/Ja,ss=es/2,os=es/4,"verticalScroll"==u){var dr,hr,vr,Lr,fr,K,ar;dr=es+ss,hr=es+es,vr=pe-es,Lr=pe-ss,fr=vr-ss,K=fe-es,ar=fe-ss,Oa="M"+es+","+K+" L"+es+","+ss+b(dr,ss,ss,ss,180,270,!1).replace("M","L")+" L"+Lr+","+is+b(Lr,ss,ss,ss,270,450,!1).replace("M","L")+" L"+vr+","+es+" L"+vr+","+ar+b(fr,ar,ss,ss,0,90,!1).replace("M","L")+" L"+ss+","+fe+b(ss,ar,ss,ss,90,270,!1).replace("M","L")+" z M"+dr+","+is+b(dr,ss,ss,ss,270,450,!1).replace("M","L")+b(dr,dr/2,os,os,90,270,!1).replace("M","L")+" L"+hr+","+ss+" M"+vr+","+es+" L"+dr+","+es+" M"+es+","+ar+b(ss,ar,ss,ss,0,270,!1).replace("M","L")+b(ss,(ar+K)/2,os,os,270,450,!1).replace("M","L")+" z M"+es+","+ar+" L"+es+","+K}else if("horizontalScroll"==u){var K,ar,er,sr,tr,dr,hr;K=es+ss,ar=es+es,er=fe-es,sr=fe-ss,tr=er-ss,dr=pe-es,hr=pe-ss,Oa="M"+ls+","+K+b(ss,K,ss,ss,180,270,!1).replace("M","L")+" L"+dr+","+es+" L"+dr+","+ss+b(hr,ss,ss,ss,180,360,!1).replace("M","L")+" L"+pe+","+tr+b(hr,tr,ss,ss,0,90,!1).replace("M","L")+" L"+es+","+er+" L"+es+","+sr+b(ss,sr,ss,ss,0,180,!1).replace("M","L")+" zM"+hr+","+es+b(hr,ss,ss,ss,90,-180,!1).replace("M","L")+b((dr+hr)/2,ss,os,os,180,0,!1).replace("M","L")+" z M"+hr+","+es+" L"+dr+","+es+" M"+ss+","+ar+" L"+ss+","+K+b(K/2,K,os,os,180,360,!1).replace("M","L")+b(ss,K,ss,ss,0,180,!1).replace("M","L")+" M"+es+","+K+" L"+es+","+er}f+="";break;case"wedgeEllipseCallout":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),we=96/914400,tt=-20833*we,et=62500*we;if(void 0!==za)for(var Ra=0;Ra=0?(rr=Mr+Gr,Z=wr+at,nr=Mr+mr,$=wr+Ht):(rr=Mr-Gr,Z=wr-at,nr=Mr-mr,$=wr-Ht),Oa="M"+rr+","+Z+" L"+cs+","+hs+" L"+nr+","+$+b(Mr,wr,Mr,wr,0,360,!0),f+="";break;case"wedgeRectCallout":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),we=96/914400,tt=-20833*we,et=62500*we;if(void 0!==za)for(var Ra=0;Ra0?7:2,Ps=ns>0?10:5,rr=T*ws/12,nr=T*Ps/12,Is=ds>0?7:2,Cs=ds>0?10:5,Z=A*Is/12,$=A*Cs/12,xs=ns>0?0:cs,_s=Ms>0?0:xs,Ds=ds>0?rr:cs,Gs=Ms>0?Ds:rr,Ct=ns>0?cs:T,Ss=Ms>0?T:Ct,Ts=ds>0?cs:rr,js=Ms>0?Ts:rr,As=ns>0?Z:hs,zs=Ms>0?Z:As,Rs=ds>0?0:hs,Bs=Ms>0?Rs:0,Ns=ns>0?hs:Z,Fs=Ms>0?Z:Ns,Os=ds>0?hs:A,Es=Ms>0?Os:A,Oa="M0,0 L"+rr+",0 L"+Gs+","+Bs+" L"+nr+",0 L"+T+",0 L"+T+","+Z+" L"+Ss+","+Fs+" L"+T+","+$+" L"+T+","+A+" L"+nr+","+A+" L"+js+","+Es+" L"+rr+","+A+" L0,"+A+" L0,"+$+" L"+_s+","+zs+" L0,"+Z+" z",f+="";break;case"wedgeRoundRectCallout":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),we=96/914400,tt=-20833*we,et=62500*we,Qt=16667*we;if(void 0!==za)for(var Ra=0;Ra0?7:2,Ps=ns>0?10:5,rr=T*ws/12,nr=T*Ps/12,Is=ds>0?7:2,Cs=ds>0?10:5,Z=A*Is/12,$=A*Cs/12,xs=ns>0?0:cs,_s=Ms>0?0:xs,Ds=ds>0?rr:cs,Gs=Ms>0?Ds:rr,Ct=ns>0?cs:T,Ss=Ms>0?T:Ct,Ts=ds>0?cs:rr,js=Ms>0?Ts:rr,As=ns>0?Z:hs,zs=Ms>0?Z:As,Rs=ds>0?0:hs,Bs=Ms>0?Rs:0,Ns=ns>0?hs:Z,Fs=Ms>0?Z:Ns,Os=ds>0?hs:A,Es=Ms>0?Os:A,qs=Pr*Qt/Wa,Hs=T-qs,Us=A-qs,Oa="M0,"+qs+b(qs,qs,qs,qs,180,270,!1).replace("M","L")+" L"+rr+",0 L"+Gs+","+Bs+" L"+nr+",0 L"+Hs+",0"+b(Hs,qs,qs,qs,270,360,!1).replace("M","L")+" L"+T+","+Z+" L"+Ss+","+Fs+" L"+T+","+$+" L"+T+","+Us+b(Hs,Us,qs,qs,0,90,!1).replace("M","L")+" L"+nr+","+A+" L"+js+","+Es+" L"+rr+","+A+" L"+qs+","+A+b(qs,Us,qs,qs,90,180,!1).replace("M","L")+" L0,"+$+" L"+_s+","+zs+" L0,"+Z+" z",f+="";break;case"accentBorderCallout1":case"accentBorderCallout2":case"accentBorderCallout3":case"borderCallout1":case"borderCallout2":case"borderCallout3":case"accentCallout1":case"accentCallout2":case"accentCallout3":case"callout1":case"callout2":case"callout3":var Da,Sa,Ut,Qs,Xs,Vs,Ys,Ws,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),we=96/914400,tt=18750*we,et=-8333*we,Qt=18750*we,Js=-16667*we,Zs=1e5*we,$s=-16667*we,Ks=112963*we,ro=-8333*we;if(void 0!==za)for(var Ra=0;Ra";break;case"ribbon":case"ribbon2":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=1600032/914400,et=48e5/914400;if(void 0!==za)for(var Ra=0;Ratt?0:tt>Ja?Ja:tt,Bt=Wa>et?Wa:et>le?le:et,Be=pe-oo,mr=T*Bt/eo,nr=Mr-mr,Re=Mr+mr,dr=nr+io,ze=Re-io,fr=nr+oo,vr=Re-oo,hr=fr-io,Lr=vr+io,ht=A*ft/so,"ribbon2"==u){var at,Ht,sr;at=A*ft/eo,Z=fe-at,Ht=A*ft/to,$=fe-Ht,ar=is+Ht,K=(ar+fe)/2,er=fe-ht,sr=Z-ht,Oa="M"+ls+","+fe+" L"+oo+","+K+" L"+ls+","+ar+" L"+nr+","+ar+" L"+nr+","+ht+b(dr,ht,io,ht,180,270,!1).replace("M","L")+" L"+ze+","+is+b(ze,ht,io,ht,270,360,!1).replace("M","L")+" L"+Re+","+ar+" L"+Re+","+ar+" L"+pe+","+ar+" L"+Be+","+K+" L"+pe+","+fe+" L"+Lr+","+fe+b(Lr,er,io,ht,90,270,!1).replace("M","L")+" L"+ze+","+Z+b(ze,sr,io,ht,90,-90,!1).replace("M","L")+" L"+dr+","+$+b(dr,sr,io,ht,270,90,!1).replace("M","L")+" L"+hr+","+Z+b(hr,er,io,ht,270,450,!1).replace("M","L")+" z M"+fr+","+$+" L"+fr+","+er+"M"+vr+","+er+" L"+vr+","+$+"M"+nr+","+sr+" L"+nr+","+ar+"M"+Re+","+ar+" L"+Re+","+sr}else if("ribbon"==u){var tr;Z=A*ft/eo,$=A*ft/to,ar=fe-$,K=ar/2,tr=fe-ht,er=$-ht,Oa="M"+ls+","+is+" L"+hr+","+is+b(hr,ht,io,ht,270,450,!1).replace("M","L")+" L"+dr+","+Z+b(dr,er,io,ht,270,90,!1).replace("M","L")+" L"+ze+","+$+b(ze,er,io,ht,90,-90,!1).replace("M","L")+" L"+Lr+","+Z+b(Lr,ht,io,ht,90,270,!1).replace("M","L")+" L"+pe+","+is+" L"+Be+","+K+" L"+pe+","+ar+" L"+Re+","+ar+" L"+Re+","+tr+b(ze,tr,io,ht,0,90,!1).replace("M","L")+" L"+dr+","+fe+b(dr,tr,io,ht,90,180,!1).replace("M","L")+" L"+nr+","+ar+" L"+ls+","+ar+" L"+oo+","+K+" z M"+fr+","+ht+" L"+fr+","+$+"M"+vr+","+$+" L"+vr+","+ht+"M"+nr+","+ar+" L"+nr+","+er+"M"+Re+","+er+" L"+Re+","+ar}f+="";break;case"doubleWave":case"wave":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt="doubleWave"==u?6e5/914400:12e5/914400,et=0;if(void 0!==za)for(var Ra=0;Ratt?0:tt>Wa?Wa:tt,Bt=Ja>et?Ja:et>to?to:et,Z=A*ft/to,Ht=10*Z/3,$=Z-Ht,K=Z+Ht,ar=fe-Z,tr=ar-Ht,er=ar+Ht,lo=T*Bt/le,mr=lo>0?0:lo,nr=ls-mr,no=lo>0?lo:0,ze=pe-no,co=(mr+ze)/6,dr=nr+co,ho=(mr+ze)/3,hr=nr+ho,fr=(nr+ze)/2,vr=fr+co,Lr=(vr+ze)/2,Re=ls+no,Ee=pe+mr,Be=Re+co,rs=Re+ho,Ne=(Re+Ee)/2,Fe=Ne+co,Oe=(Fe+Ee)/2,Oa="M"+nr+","+Z+" C"+dr+","+$+" "+hr+","+K+" "+fr+","+Z+" C"+vr+","+$+" "+Lr+","+K+" "+ze+","+Z+" L"+Ee+","+ar+" C"+Oe+","+er+" "+Fe+","+tr+" "+Ne+","+ar+" C"+rs+","+er+" "+Be+","+tr+" "+Re+","+ar+" z"}else if("wave"==u){var ft,Bt,Z,Ht,$,K,ar,tr,er,lo,mr,nr,po,fr,co,dr,hr,vr,Be,Lr,ze,eo=192e4/914400;ft=0>tt?0:tt>eo?eo:tt,Bt=Ja>et?Ja:et>to?to:et,Z=A*ft/to,Ht=10*Z/3,$=Z-Ht,K=Z+Ht,ar=fe-Z,tr=ar-Ht,er=ar+Ht,lo=T*Bt/le,mr=lo>0?0:lo,nr=ls-mr,po=lo>0?lo:0,fr=pe-po,co=(mr+fr)/3,dr=nr+co,hr=(dr+fr)/2,vr=ls+po,Be=pe+mr,Lr=vr+co,ze=(Lr+Be)/2,Oa="M"+nr+","+Z+" C"+dr+","+$+" "+hr+","+K+" "+fr+","+Z+" L"+Be+","+ar+" C"+ze+","+er+" "+Lr+","+tr+" "+vr+","+ar+" z"}f+="";break;case"ellipseRibbon":case"ellipseRibbon2":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=48e5/914400,Qt=12e5/914400;if(void 0!==za)for(var Ra=0;Ratt?0:tt>to?to:tt,Bt=Wa>et?Wa:et>le?le:et,fo=to-ft,vo=fo/2,uo=ft-vo,Lo=0>uo?0:uo,Yt=Lo>Qt?Lo:Qt>ft?ft:Qt,mr=T*Bt/eo,nr=Mr-mr,dr=nr+oo,hr=pe-dr,fr=pe-nr,vr=pe-oo,at=A*Yt/to,mo=4*at/T,de=dr*dr/T,ce=dr-de,go=dr/2,bo=pe-go,de=A*ft/to,ts=de-at,he=nr*nr/T,ko=nr-he,yo=mo*ko,Mo=fe-de,wo=14*at/16,Po=nr/2,Io=mo*Po,Co=pe-Po,"ellipseRibbon"==u){var Z,xo,K,_o,Do,Go,$,tr,er,So,To,sr,jo,or;Z=mo*ce,xo=mo*go,K=yo+ts,_o=at+ts-K,Do=_o+at,Go=Do+ts,$=(wo+Mo)/2,tr=yo+Mo,er=K+Mo,So=Io+Mo,To=Go+Mo,sr=Z+ts,jo=de+de-sr,or=fe-at,Oa="M"+ls+","+is+" Q"+go+","+xo+" "+dr+","+Z+" L"+nr+","+K+" Q"+Mr+","+Go+" "+fr+","+K+" L"+hr+","+Z+" Q"+bo+","+xo+" "+pe+","+is+" L"+vr+","+$+" L"+pe+","+Mo+" Q"+Co+","+So+" "+fr+","+tr+" L"+fr+","+er+" Q"+Mr+","+To+" "+nr+","+er+" L"+nr+","+tr+" Q"+Po+","+So+" "+ls+","+Mo+" L"+oo+","+$+" zM"+nr+","+tr+" L"+nr+","+K+"M"+fr+","+K+" L"+fr+","+tr+"M"+dr+","+Z+" L"+dr+","+sr+"M"+hr+","+sr+" L"+hr+","+Z}else if("ellipseRibbon2"==u){var qs,Z,Ao,xo,he,yo,zo,K,_o,Do,Ro,Go,Mo,wo,Hs,$,Bo,tr,No,er,Fo,So,Oo,To,Eo,sr,qo,jo;qs=mo*ce,Z=fe-qs,Ao=mo*go,xo=fe-Ao,zo=yo+ts,K=fe-zo,_o=at+ts-zo,Do=_o+at,Ro=Do+ts,Go=fe-Ro,Hs=(wo+Mo)/2,$=fe-Hs,Bo=yo+Mo,tr=fe-Bo,No=zo+Mo,er=fe-No,Fo=Io+Mo,So=fe-Fo,Oo=Ro+Mo,To=fe-Oo,Eo=qs+ts,sr=fe-Eo,qo=de+de-Eo,jo=fe-qo,Oa="M"+ls+","+fe+" L"+oo+","+$+" L"+ls+","+de+" Q"+Po+","+So+" "+nr+","+tr+" L"+nr+","+er+" Q"+Mr+","+To+" "+fr+","+er+" L"+fr+","+tr+" Q"+Co+","+So+" "+pe+","+de+" L"+vr+","+$+" L"+pe+","+fe+" Q"+bo+","+xo+" "+hr+","+Z+" L"+fr+","+K+" Q"+Mr+","+Go+" "+nr+","+K+" L"+dr+","+Z+" Q"+go+","+xo+" "+ls+","+fe+" zM"+nr+","+K+" L"+nr+","+tr+"M"+fr+","+tr+" L"+fr+","+K+"M"+dr+","+sr+" L"+dr+","+Z+"M"+hr+","+Z+" L"+hr+","+sr}f+="";break;case"line":case"straightConnector1":case"bentConnector4":case"bentConnector5":case"curvedConnector2":case"curvedConnector3":case"curvedConnector4":case"curvedConnector5":f+=M?"";break;case"leftArrow":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=.25,Ta=.5,Ho=T/A;if(void 0!==za)for(var Ra=0;Ra";break;case"downArrow":case"flowChartOffpageConnector":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=.25,Ta=.5,Ho=A/T;if(void 0!==za)for(var Ra=0;Ra";break;case"upArrow":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=.25,Ta=.5,Ho=A/T;if(void 0!==za)for(var Ra=0;Ra";break;case"leftRightArrow":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=.25,Ta=.25,Ho=T/A;if(void 0!==za)for(var Ra=0;Ra";break;case"upDownArrow":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),Ga=.25,Ta=.25,Ho=A/T;if(void 0!==za)for(var Ra=0;Ra";break;case"quadArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=216e4/914400,et=216e4/914400,Qt=216e4/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Wa?Wa:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,de=Ja-qt,Qo=de/2,Yt=0>Qt?0:Qt>Qo?Qo:Qt,rr=Nt*Yt/Ja,mr=Nt*Bt/Ja,nr=Mr-mr,fr=Mr+mr,co=Nt*ft/le,dr=Mr-co,hr=Mr+co,vr=T-rr,$=wr-mr,tr=wr+mr,K=wr-co,ar=wr+co,er=A-rr;var Oa="M0,"+wr+" L"+rr+","+$+" L"+rr+","+K+" L"+dr+","+K+" L"+dr+","+rr+" L"+nr+","+rr+" L"+Mr+",0 L"+fr+","+rr+" L"+hr+","+rr+" L"+hr+","+K+" L"+vr+","+K+" L"+vr+","+$+" L"+T+","+wr+" L"+vr+","+tr+" L"+vr+","+ar+" L"+hr+","+ar+" L"+hr+","+er+" L"+fr+","+er+" L"+Mr+","+A+" L"+nr+","+er+" L"+dr+","+er+" L"+dr+","+ar+" L"+rr+","+ar+" L"+rr+","+tr+" z";f+="";break;case"leftRightUpArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Wa?Wa:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,de=Ja-qt,Qo=de/2,Yt=0>Qt?0:Qt>Qo?Qo:Qt,rr=Nt*Yt/Ja,mr=Nt*Bt/Ja,nr=Mr-mr,fr=Mr+mr,co=Nt*ft/le,dr=Mr-co,hr=Mr+co,vr=T-rr,Ht=Nt*Bt/Wa,$=A-Ht,ar=A-mr,K=ar-co,tr=ar+co;var Oa="M0,"+ar+" L"+rr+","+$+" L"+rr+","+K+" L"+dr+","+K+" L"+dr+","+rr+" L"+nr+","+rr+" L"+Mr+",0 L"+fr+","+rr+" L"+hr+","+rr+" L"+hr+","+K+" L"+vr+","+K+" L"+vr+","+$+" L"+T+","+ar+" L"+vr+","+A+" L"+vr+","+tr+" L"+rr+","+tr+" L"+rr+","+A+" z";f+="";break;case"leftUpArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Wa?Wa:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Ja-qt,Yt=0>Qt?0:Qt>Qo?Qo:Qt,rr=Nt*Yt/Ja,mr=Nt*Bt/Wa,nr=T-mr,$=A-mr,ho=Nt*Bt/Ja,hr=T-ho,ar=A-ho,co=Nt*ft/le,dr=hr-co,fr=hr+co,K=ar-co,tr=ar+co;var Oa="M0,"+ar+" L"+rr+","+$+" L"+rr+","+K+" L"+dr+","+K+" L"+dr+","+rr+" L"+nr+","+rr+" L"+hr+",0 L"+T+","+rr+" L"+fr+","+rr+" L"+fr+","+tr+" L"+rr+","+tr+" L"+rr+","+A+" z";f+="";break;case"bentUpArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Ratt?0:tt>Wa?Wa:tt,Bt=0>et?0:et>Wa?Wa:et,Yt=0>Qt?0:Qt>Qo?Qo:Qt,Z=Nt*Yt/Ja,Gr=Nt*Bt/Wa,rr=T-Gr,co=Nt*Bt/Ja,dr=T-co,mr=Nt*ft/le,nr=dr-mr,hr=dr+mr,Ht=Nt*ft/Ja,$=A-Ht;var Oa="M0,"+$+" L"+nr+","+$+" L"+nr+","+Z+" L"+rr+","+Z+" L"+dr+",0 L"+T+","+Z+" L"+hr+","+Z+" L"+hr+","+A+" L0,"+A+" z";f+="";break;case"bentArrow":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=42e5/914400,Wa=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Wa?Wa:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Yt=0>Qt?0:Qt>Wa?Wa:Qt;var be,Yo,Wo,Jo,Zo,$o,Ko,ri,ai,ti,ei,be=Nt*ft/Ja;Yo=Nt*Bt/Ja,Wo=be/2,Jo=Yo-Wo,Zo=Nt*Yt/Ja,$o=T-Zo,Ko=A-Jo,ri=Ko>$o?$o:Ko,Vo=Ja*ri/Nt,Xo=0>Js?0:Js>Vo?Vo:Js,ai=Nt*Xo/Ja,ti=ai-be,ei=ti>0?ti:0,dr=be+ei,hr=T-Zo,K=Jo+be,ar=K+Jo,tr=Jo+ai,er=K+ei;var Oa="M0,"+A+" L0,"+tr+b(ai,tr,ai,ai,180,270,!1).replace("M","L")+" L"+hr+","+Jo+" L"+hr+",0 L"+T+","+Yo+" L"+hr+","+ar+" L"+hr+","+K+" L"+dr+","+K+b(dr,er,ei,ei,270,180,!1).replace("M","L")+" L"+be+","+A+" z";f+="";break;case"uturnArrow":var Da,Sa,Ut,Qs,Xs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=42e5/914400,Zs=72e5/914400,Wa=24e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Wa?Wa:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,ce=ft*Nt/A,he=Ja-ce,Qo=he*A/Nt,Yt=0>Qt?0:Qt>Qo?Qo:Qt,de=Yt+ft,oi=de*Nt/A,si=oi>Zs?oi:Zs>Ja?Ja:Zs;var be,Yo,Wo,Jo,Zo,$o,ri,ai,ti,ei,be=Nt*ft/Ja;Yo=Nt*Bt/Ja,Wo=be/2,Jo=Yo-Wo,tr=A*si/Ja,Zo=Nt*Yt/Ja,ar=tr-Zo,Re=T-Jo,$o=Re/2,ri=ar>$o?$o:ar,Vo=Ja*ri/Nt,Xo=0>Js?0:Js>Vo?Vo:Js,ai=Nt*Xo/Ja,ti=ai-be,ei=ti>0?ti:0,dr=be+ei,ze=T-Yo,vr=ze-Yo,Lr=vr+Jo,hr=Re-ai,fr=Lr-ei,cx=(be+Lr)/2;var Oa="M0,"+A+" L0,"+ai+b(ai,ai,ai,ai,180,270,!1).replace("M","L")+" L"+hr+",0"+b(hr,ai,ai,ai,270,360,!1).replace("M","L")+" L"+Re+","+ar+" L"+T+","+ar+" L"+ze+","+tr+" L"+vr+","+ar+" L"+Lr+","+ar+" L"+Lr+","+dr+b(fr,dr,ei,ei,0,-90,!1).replace("M","L")+" L"+dr+","+be+b(dr,dr,ei,ei,270,180,!1).replace("M","L")+" L"+be+","+A+" z";f+="";break;case"stripedRightArrow":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=48e5/914400,et=48e5/914400,Wa=96e5/914400,Ja=192e5/914400,le=81e5/914400;if(void 0!==za)for(var Ra=0;Ratt?0:tt>Wa?Wa:tt,Bt=0>et?0:et>Ft?Ft:et,hr=5*Nt/32,po=Nt*Bt/Wa,fr=T-po,at=A*ft/Ja,Z=wr-at,$=wr+at;var ii=Nt/8,li=Nt/16,ni=Nt/32,Oa="M0,"+Z+" L"+ni+","+Z+" L"+ni+","+$+" L0,"+$+" z M"+li+","+Z+" L"+ii+","+Z+" L"+ii+","+$+" L"+li+","+$+" z M"+hr+","+Z+" L"+fr+","+Z+" L"+fr+",0 L"+T+","+wr+" L"+fr+","+A+" L"+fr+","+$+" L"+hr+","+$+" z";f+="";break;case"notchedRightArrow":var Da,Sa,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=48e5/914400,et=48e5/914400,Wa=96e5/914400,Ja=192e5/914400;if(void 0!==za)for(var Ra=0;Ratt?0:tt>Wa?Wa:tt,Bt=0>et?0:et>Ft?Ft:et,mr=Nt*Bt/Wa,nr=T-mr,at=A*ft/Ja,Z=wr-at,$=wr+at,rr=at*mr/ka;var Oa="M0,"+Z+" L"+nr+","+Z+" L"+nr+",0 L"+T+","+wr+" L"+nr+","+A+" L"+nr+","+$+" L0,"+$+" L"+rr+","+wr+" z";f+="";break;case"homePlate":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=48e5/914400,Wa=96e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,rr,Gr,$a,wr=A/2,Nt=Math.min(T,A);$a=Wa*T/Nt,Ka=0>Va?0:Va>$a?$a:Va,Gr=Nt*Ka/Wa,rr=T-Gr;var Oa="M0,0 L"+rr+",0 L"+T+","+wr+" L"+rr+","+A+" L0,"+A+" z";f+="";break;case"chevron":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=48e5/914400,Wa=96e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var Ka,rr,Gr,nr,$a,wr=A/2,Nt=Math.min(T,A);$a=Wa*T/Nt,Ka=0>Va?0:Va>$a?$a:Va,rr=Nt*Ka/Wa,nr=T-rr;var Oa="M0,0 L"+nr+",0 L"+T+","+wr+" L"+nr+","+A+" L0,"+A+" L"+rr+","+wr+" z";f+="";break;case"rightArrowCallout":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=6237792/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Ja*T/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,ce=Yt*Pr/T,Vo=Xa-ce,Xo=0>Js?0:Js>Vo?Vo:Js,at=Pr*Bt/Ja,Ht=Pr*ft/le,Z=wr-at,$=wr-Ht,K=wr+Ht,ar=wr+at,co=Pr*Yt/Ja,dr=pe-co,nr=T*Xo/Ja,rr=nr/2;var Oa="M"+ls+","+is+" L"+nr+","+is+" L"+nr+","+$+" L"+dr+","+$+" L"+dr+","+Z+" L"+pe+","+wr+" L"+dr+","+ar+" L"+dr+","+K+" L"+nr+","+K+" L"+nr+","+fe+" L"+ls+","+fe+" z";f+="";break;case"downArrowCallout":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=6237792/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Ja*A/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,ce=Yt*Pr/A,Vo=Ja-ce,Xo=0>Js?0:Js>Vo?Vo:Js,Gr=Pr*Bt/Ja,mr=Pr*ft/le,rr=Mr-Gr,nr=Mr-mr,dr=Mr+mr,hr=Mr+Gr,ts=Pr*Yt/Ja,K=fe-ts,$=A*Xo/Ja,Z=$/2;var Oa="M"+ls+","+is+" L"+pe+","+is+" L"+pe+","+$+" L"+dr+","+$+" L"+dr+","+K+" L"+hr+","+K+" L"+Mr+","+fe+" L"+rr+","+K+" L"+nr+","+K+" L"+nr+","+$+" L"+ls+","+$+" z";f+="";break;case"leftArrowCallout":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=6237792/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Ja*T/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,ce=Yt*Pr/T,Vo=Ja-ce,Xo=0>Js?0:Js>Vo?Vo:Js,at=Pr*Bt/Ja,Ht=Pr*ft/le,Z=wr-at,$=wr-Ht,K=wr+Ht,ar=wr+at,rr=Pr*Yt/Ja,mr=T*Xo/Ja,nr=pe-mr,dr=(nr+pe)/2;var Oa="M"+ls+","+wr+" L"+rr+","+Z+" L"+rr+","+$+" L"+nr+","+$+" L"+nr+","+is+" L"+pe+","+is+" L"+pe+","+fe+" L"+nr+","+fe+" L"+nr+","+K+" L"+rr+","+K+" L"+rr+","+ar+" z";f+="";break;case"upArrowCallout":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=6237792/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Ja*A/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,ce=Yt*Pr/A,Vo=Ja-ce,Xo=0>Js?0:Js>Vo?Vo:Js,Gr=Pr*Bt/Ja,mr=Pr*ft/le,rr=Mr-Gr,nr=Mr-mr,dr=Mr+mr,hr=Mr+Gr,Z=Pr*Yt/Ja,Ht=A*Xo/Ja,$=fe-Ht,K=($+fe)/2;var Oa="M"+ls+","+$+" L"+nr+","+$+" L"+nr+","+Z+" L"+rr+","+Z+" L"+Mr+","+is+" L"+hr+","+Z+" L"+dr+","+Z+" L"+dr+","+$+" L"+pe+","+$+" L"+pe+","+fe+" L"+ls+","+fe+" z";f+="";break;case"leftRightArrowCallout":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=24e5/914400,Qt=24e5/914400,Js=4619808/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Wa*T/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,ce=Yt*Pr/ba,Vo=Ja-ce,Xo=0>Js?0:Js>Vo?Vo:Js,at=Pr*Bt/Ja,Ht=Pr*ft/le,Z=wr-at,$=wr-Ht,K=wr+Ht,ar=wr+at,rr=Pr*Yt/Ja,hr=pe-rr,mr=T*Xo/le,nr=Mr-mr,dr=Mr+mr;var Oa="M"+ls+","+wr+" L"+rr+","+Z+" L"+rr+","+$+" L"+nr+","+$+" L"+nr+","+is+" L"+dr+","+is+" L"+dr+","+$+" L"+hr+","+$+" L"+hr+","+Z+" L"+pe+","+wr+" L"+hr+","+ar+" L"+hr+","+K+" L"+dr+","+K+" L"+dr+","+fe+" L"+nr+","+fe+" L"+nr+","+K+" L"+rr+","+K+" L"+rr+","+ar+" z";f+="";break;case"quadArrowCallout":var Da,Sa,Ut,Qs,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=1777440/914400,et=1777440/914400,Qt=1777440/914400,Js=4619808/914400,Wa=48e5/914400,Ja=96e5/914400,le=192e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Wa?Wa:et,qt=2*Bt,ft=0>tt?0:tt>qt?qt:tt,Qo=Wa-Bt,Yt=0>Qt?0:Qt>Qo?Qo:Qt,ce=2*Yt,Vo=Ja-ce,Xo=ft>Js?ft:Js>Vo?Vo:Js,mr=Pr*Bt/Ja,co=Pr*ft/le,Zo=Pr*Yt/Ja,Gr=T*Xo/le,at=A*Xo/le,ze=pe-Zo,nr=Mr-Gr,Lr=Mr+Gr,dr=Mr-mr,vr=Mr+mr,hr=Mr-co,fr=Mr+co,or=fe-Zo,$=wr-at,sr=wr+at,K=wr-mr,er=wr+mr,ar=wr-co,tr=wr+co;var Oa="M"+ls+","+wr+" L"+Zo+","+K+" L"+Zo+","+ar+" L"+nr+","+ar+" L"+nr+","+$+" L"+hr+","+$+" L"+hr+","+Zo+" L"+dr+","+Zo+" L"+Mr+","+is+" L"+vr+","+Zo+" L"+fr+","+Zo+" L"+fr+","+$+" L"+Lr+","+$+" L"+Lr+","+ar+" L"+ze+","+ar+" L"+ze+","+K+" L"+pe+","+wr+" L"+ze+","+er+" L"+ze+","+tr+" L"+Lr+","+tr+" L"+Lr+","+sr+" L"+fr+","+sr+" L"+fr+","+or+" L"+vr+","+or+" L"+Mr+","+fe+" L"+dr+","+or+" L"+hr+","+or+" L"+hr+","+sr+" L"+nr+","+sr+" L"+nr+","+tr+" L"+Zo+","+tr+" L"+Zo+","+er+" z";f+="";break;case"curvedDownArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=48e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,ft=0>tt?0:tt>Ja?Ja:tt,be=Pr*ft/Ja,di=Pr*Bt/Ja,de=(be+di)/4,pt=ba-de,Do=2*pt,wo=Do*Do,Io=be*be,fo=wo-Io,vo=Math.sqrt(fo),ya=vo*A/Do,Qo=Ja*ya/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,Zo=Pr*Qt/Ja,dr=pt+be,ce=A*A,he=Zo*Zo,ko=ce-he,yo=Math.sqrt(ko),ms=yo*pt/A,fr=pt+ms,Lr=dr+ms,_o=di-be,ci=_o/2,hr=fr-ci,ze=Lr+ci,Yo=di/2,vr=pe-Yo,Z=fe-Zo,It=Math.atan(ms/Zo);var ui=180*It/Math.PI;hi=-ui,pi=fe-ya,fi=(pt+dr)/2,uo=be/2,Pt=Math.atan(uo/ya);var Li=180*Pt/Math.PI;Xt=ga+ui,_t=ga-Li,Ls=Li-ma,vi=ma+Li;var Oa="M"+vr+","+fe+" L"+hr+","+Z+" L"+fr+","+Z+b(pt,A,pt,A,Xt,Xt+hi,!1).replace("M","L")+" L"+dr+","+is+b(dr,A,pt,A,ga,ga+ui,!1).replace("M","L")+" L"+(fr+be)+","+Z+" L"+ze+","+Z+" zM"+dr+","+is+b(dr,A,pt,A,_t,_t+Ls,!1).replace("M","L")+b(pt,A,pt,A,La,La+vi,!1).replace("M","L");f+="";break;case"curvedLeftArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=48e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,ft=0>tt?0:tt>Bt?Bt:tt,be=Pr*ft/Ja,di=Pr*Bt/Ja,de=(be+di)/4,ht=ka-de,Do=2*ht,wo=Do*Do,Io=be*be,fo=wo-Io,vo=Math.sqrt(fo),o=vo*T/Do,Qo=Ja*o/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,Zo=Pr*Yt/Ja,K=ht+be,ce=T*T,he=Zo*Zo,ko=ce-he,yo=Math.sqrt(ko),gs=yo*ht/T,tr=ht+gs,sr=K+gs,_o=di-be,ci=_o/2,ar=tr-ci,or=sr+ci,Yo=di/2,er=fe-Yo,rr=ls+Zo,It=Math.atan(gs/Zo),hi=-It,fi=ls+o,pi=(ht+K)/2,uo=be/2,Pt=Math.atan(uo/o),Ls=Pt-It,vi=It+Pt,mi=-Pt;var gi,bi,ki,yi;gi=180*It/Math.PI,bi=180*Ls/Math.PI,ki=180*vi/Math.PI,yi=180*mi/Math.PI;var Oa="M"+pe+","+K+b(ls,ht,T,ht,0,-ma,!1).replace("M","L")+" L"+ls+","+is+b(ls,K,T,ht,ga,ga+ma,!1).replace("M","L")+" L"+pe+","+K+b(ls,K,T,ht,0,gi,!1).replace("M","L")+" L"+rr+","+sr+" L"+rr+","+or+" L"+ls+","+er+" L"+rr+","+ar+" L"+rr+","+tr+b(ls,ht,T,ht,gi,gi+bi,!1).replace("M","L")+b(ls,ht,T,ht,0,-ma,!1).replace("M","L")+b(ls,K,T,ht,ga,ga+ma,!1).replace("M","L");f+="";break;case"curvedRightArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=48e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,ft=0>tt?0:tt>Bt?Bt:tt,be=Pr*ft/Ja,di=Pr*Bt/Ja,de=(be+di)/4,ht=ka-de,Do=2*ht,wo=Do*Do,Io=be*be,fo=wo-Io,vo=Math.sqrt(fo),o=vo*T/Do,Qo=Ja*o/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,Zo=Pr*Yt/Ja,K=ht+be,ce=T*T,he=Zo*Zo,ko=ce-he,yo=Math.sqrt(ko),gs=yo*ht/T,tr=ht+gs,sr=K+gs,_o=di-be,ci=_o/2,ar=tr-ci,or=sr+ci,Yo=di/2,er=fe-Yo,rr=pe-Zo,It=Math.atan(gs/Zo),Xt=Math.PI+0-It,hi=-It,fi=pe-o,pi=(ht+K)/2,uo=be/2,Pt=Math.atan(uo/o),Ls=Pt-Math.PI/2,vi=Math.PI/2+Pt,mi=Math.PI-Pt;var Mi,wi,gi,Pi;Mi=180*Xt/Math.PI,wi=180*hi/Math.PI,gi=180*It/Math.PI,Pi=180*Ls/Math.PI;var Oa="M"+ls+","+ht+b(T,ht,T,ht,La,La+wi,!1).replace("M","L")+" L"+rr+","+tr+" L"+rr+","+ar+" L"+pe+","+er+" L"+rr+","+or+" L"+rr+","+sr+b(T,K,T,ht,Mi,Mi+gi,!1).replace("M","L")+" L"+ls+","+ht+b(T,ht,T,ht,La,La+ma,!1).replace("M","L")+" L"+pe+","+be+b(T,K,T,ht,ga,ga+Pi,!1).replace("M","L");f+="";break;case"curvedUpArrow":var Da,Sa,Ut,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]),tt=24e5/914400,et=48e5/914400,Qt=24e5/914400,Wa=48e5/914400,Ja=96e5/914400;if(void 0!==za)for(var Ra=0;Raet?0:et>Ft?Ft:et,ft=0>tt?0:tt>Ja?Ja:tt,be=Pr*ft/Ja,di=Pr*Bt/Ja,de=(be+di)/4,pt=ba-de,Do=2*pt,wo=Do*Do,Io=be*be,fo=wo-Io,vo=Math.sqrt(fo),ya=vo*A/Do,Qo=Ja*ya/Pr,Yt=0>Qt?0:Qt>Qo?Qo:Qt,Zo=Pr*Qt/Ja,dr=pt+be,ce=A*A,he=Zo*Zo,ko=ce-he,yo=Math.sqrt(ko),ms=yo*pt/A,fr=pt+ms,Lr=dr+ms,_o=di-be,ci=_o/2,hr=fr-ci,ze=Lr+ci,Yo=di/2,vr=pe-Yo,Z=is+Zo,It=Math.atan(ms/Zo),hi=-It,pi=is+ya,fi=(pt+dr)/2,uo=be/2,Pt=Math.atan(uo/ya),Ls=Pt-It,Ii=-Ls,mi=Math.PI/2-It,vi=It+Pt,_t=Math.PI/2-Pt;var Ci,Pi,gi,Pi;Ci=180*_t/Math.PI,Pi=180*Ls/Math.PI,yi=180*mi/Math.PI,gi=180*It/Math.PI;var Oa=b(pt,0,pt,A,Ci,Ci+Pi,!1)+" L"+fr+","+Z+" L"+hr+","+Z+" L"+vr+","+is+" L"+ze+","+Z+" L"+Lr+","+Z+b(dr,0,pt,A,yi,yi+gi,!1).replace("M","L")+" L"+pt+","+fe+b(pt,0,pt,A,ma,La,!1).replace("M","L")+" L"+be+","+is+b(dr,0,pt,A,La,ma,!1).replace("M","L");f+="";break;case"mathDivide":case"mathEqual":case"mathMinus":case"mathMultiply":case"mathNotEqual":case"mathPlus":var Da,tt,Sa,et,Ut,Qt,za=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(void 0!==za)if(za.constructor===Array)for(var Ra=0;Ratt?0:tt>Wa?Wa:tt,_i=Za>et?Za:et>cl?cl:et,Di=2*ft,Qo=Ja-Di,Yt=0>Qt?0:Qt>Qo?Qo:Qt,at=A*ft/Ja,Ht=A*Yt/le,Gr=T*to/le,rr=Mr-Gr,ze=Mr+Gr,$=wr-Ht,K=wr+Ht,Z=$-at,ar=K+at,Gi=_i-Math.PI/2,Si=ka*Math.tan(Gi),Ti=Math.sqrt(Si*Si+ka*ka),ji=Ti*at/ka,Ai=ji/2,Lr=Mr+Si-Ai,zi=Si*Z/ka,vr=Lr-zi,Ri=Si*$/ka,fr=Lr-Ri,Bi=Si*K/ka,hr=Lr-Bi,Ni=Si*ar/ka,dr=Lr-Ni,Fi=2*Si,nr=Lr-Fi,Oi=Lr+ji,Ei=vr+ji,qi=fr+ji,Hi=hr+ji,Ui=dr+ji,Qi=nr+ji,Xi=at*ka/Ti,Vi=Lr+Xi,Yi=Oi-Xi,Wi=Gi>0?Vi:Oi,Ji=Gi>0?Lr:Yi,ts=at*Si/Ti,Zi=-ts,$i=Gi>0?ts:0,Ki=Gi>0?0:Zi,rl=T-Wi,al=T-Ji,tl=A-$i,el=A-Ki,sl=(Wi+Ji)/2,ol=(al+rl)/2,il=($i+Ki)/2,ll=(Z+$)/2,nl=(K+ar)/2,dl=(el+tl)/2,xi="M"+rr+","+Z+" L"+vr+","+Z+" L"+Ji+","+Ki+" L"+Wi+","+$i+" L"+Ei+","+Z+" L"+ze+","+Z+" L"+ze+","+$+" L"+qi+","+$+" L"+Hi+","+K+" L"+ze+","+K+" L"+ze+","+ar+" L"+Ui+","+ar+" L"+al+","+el+" L"+rl+","+tl+" L"+dr+","+ar+" L"+rr+","+ar+" L"+rr+","+K+" L"+hr+","+K+" L"+fr+","+$+" L"+rr+","+$+" z"}else if("mathDivide"==u){void 0===za?(tt=2257920/914400,et=564480/914400,Qt=1128960/914400):(tt=96*tt/914400,et=96*et/914400,Qt=96*Qt/914400);var ft,hl,pl,fl,Qo,Yt,vl,Ft,Bt,at,ul,Ll,Gr,K,ar,Ka,$,Z,tr,rr,dr,nr,to=96e3/914400,eo=3527520/914400,so=7055040/914400;ft=to>tt?to:tt>eo?eo:tt,hl=-ft,pl=(so+hl)/4,fl=eo*T/A,Qo=fl>pl?pl:fl,Yt=to>Qt?to:Qt>Qo?Qo:Qt,vl=-4*Yt,Ft=so+vl-ft,Bt=0>et?0:et>Ft?Ft:et,at=A*ft/le,ul=A*Bt/Ja,Ll=A*Yt/Ja,Gr=T*so/le,K=wr-at,ar=wr+at,Ka=ul+Ll,$=K-Ka,Z=$-Ll,tr=A-Z,rr=Mr-Gr,dr=Mr+Gr,nr=Mr-Ll;var ma=90,ga=270,Qr=Mr-Math.cos(ga*Math.PI/180)*Ll,sa=Z-Math.sin(ga*Math.PI/180)*Ll,Xr=Mr-Math.cos(Math.PI/2)*Ll,oa=tr-Math.sin(Math.PI/2)*Ll;xi="M"+Mr+","+Z+b(Qr,sa,Ll,Ll,ga,ga+360,!1).replace("M","L")+" z M"+Mr+","+tr+b(Xr,oa,Ll,Ll,ma,ma+360,!1).replace("M","L")+" z M"+rr+","+K+" L"+dr+","+K+" L"+dr+","+ar+" L"+rr+","+ar+" z"}else if("mathEqual"==u){void 0===za?(tt=2257920/914400,et=1128960/914400):(tt=96*tt/914400,et=96*et/914400);var ft,Di,ml,Bt,at,Ht,Gr,$,K,Z,ar,rr,nr,il,ll,eo=3527520/914400,so=7055040/914400;ft=0>tt?0:tt>eo?eo:tt,Di=2*ft,ml=Ja-Di,Bt=0>et?0:et>ml?ml:et,at=A*ft/Ja,Ht=A*Bt/le,Gr=T*so/le,$=wr-Ht,K=wr+Ht,Z=$-at,ar=K+at,rr=Mr-Gr,nr=Mr+Gr,il=(Z+$)/2,ll=(K+ar)/2,xi="M"+rr+","+Z+" L"+nr+","+Z+" L"+nr+","+$+" L"+rr+","+$+" zM"+rr+","+K+" L"+nr+","+K+" L"+nr+","+ar+" L"+rr+","+ar+" z"}else if("mathMinus"==u){tt=void 0===za?2257920/914400:96*tt/914400;var ft,at,Gr,Z,$,rr,nr,so=7055040/914400;ft=0>tt?0:tt>Ja?Ja:tt,at=A*ft/le,Gr=T*so/le,Z=wr-at,$=wr+at,rr=Mr-Gr,nr=Mr+Gr,xi="M"+rr+","+Z+" L"+nr+","+Z+" L"+nr+","+$+" L"+rr+","+$+" z"}else if("mathMultiply"==u){tt=void 0===za?2257920/914400:96*tt/914400;var ft,be,Ka,gl,bl,kl,yl,Ml,wl,Pl,Il,Cl,xl,_l,Dl,Gl,Sl,Tl,jl,Al,zl,Rl,Bl,Nl,Fl,Ol,El,ql,Hl,ol,nl,so=4988640/914400,Pr=Math.min(T,A);ft=0>tt?0:tt>so?so:tt,be=Pr*ft/Ja,Ka=Math.atan(A/T),gl=1*Math.sin(Ka),bl=1*Math.cos(Ka),kl=1*Math.tan(Ka),yl=Math.sqrt(T*T+A*A),Ml=yl*so/Ja,wl=yl-Ml,Pl=bl*wl/2,Il=gl*wl/2,Cl=gl*be/2,xl=bl*be/2,_l=Pl-Cl,Dl=Il+xl,Gl=Pl+Cl,Sl=Il-xl,Tl=Mr-Gl,jl=Tl*kl,Al=jl+Sl,zl=T-Gl,Rl=T-_l,Bl=wr-Dl,Nl=Bl/kl,Fl=Rl-Nl,Ol=_l+Nl,El=A-Dl,ql=A-Sl,Hl=A-Al,ol=T-Pl,nl=A-Il,xi="M"+_l+","+Dl+" L"+Gl+","+Sl+" L"+Mr+","+Al+" L"+zl+","+Sl+" L"+Rl+","+Dl+" L"+Fl+","+wr+" L"+Rl+","+El+" L"+zl+","+ql+" L"+Mr+","+Hl+" L"+Gl+","+ql+" L"+_l+","+El+" L"+Ol+","+wr+" z"}else if("mathPlus"==u){tt=void 0===za?2257920/914400:96*tt/914400;var ft,Gr,at,mr,rr,nr,dr,hr,Z,$,K,ar,so=7055040/914400,Pr=Math.min(T,A);ft=0>tt?0:tt>so?so:tt,Gr=T*so/le,at=A*so/le,mr=Pr*ft/le,rr=Mr-Gr,nr=Mr-mr,dr=Mr+mr,hr=Mr+Gr,Z=wr-at,$=wr-mr,K=wr+mr,ar=wr+at,xi="M"+rr+","+$+" L"+nr+","+$+" L"+nr+","+Z+" L"+dr+","+Z+" L"+dr+","+$+" L"+hr+","+$+" L"+hr+","+K+" L"+dr+","+K+" L"+dr+","+ar+" L"+nr+","+ar+" L"+nr+","+K+" L"+rr+","+K+" z"}f+="";break;case"can":case"flowChartMagneticDisk":case"flowChartMagneticDrum":var Ea=lr(r,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),Va=24e5/914400,Wa=48e5/914400,Ja=192e5/914400;void 0!==Ea&&(Va=96*parseInt(Ea.substr(4))/914400);var $a,Ka,Z,$,K,xi,Pr=Math.min(T,A);("flowChartMagneticDisk"==u||"flowChartMagneticDrum"==u)&&(Va=48e5/914400),$a=Wa*A/Pr,Ka=0>Va?0:Va>$a?$a:Va,Z=Pr*Ka/Ja,$=Z+Z,K=A-Z;var La=180,ba=T/2,Fa="";"flowChartMagneticDrum"==u&&(Fa="transform='rotate(90 "+T/2+","+A/2+")'"),xi=b(ba,Z,ba,Z,0,La,!1)+b(ba,Z,ba,Z,La,La+La,!1).replace("M","L")+" L"+T+","+K+b(ba,K,ba,Z,0,La,!1).replace("M","L")+" L0,"+Z,f+="";break;case"swooshArrow":case"leftCircularArrow":case"leftRightCircularArrow":console.log(u);break;case void 0:default:console.warn("Undefine shape type.("+u+")")}f+="",f+="
",void 0!==r["p:txBody"]&&(f+=w(r["p:txBody"],r,a,t,i,n)),f+="
"}else if(void 0!==y){var Ul=lr(y,["a:pathLst"]),Ql=lr(Ul,["a:path","attrs"]),Xl=(96*parseInt(Ql.w)/914400,96*parseInt(Ql.h)/914400,lr(Ul,["a:path","a:close"])),Vl=lr(Ul,["a:path","a:moveTo","a:pt","attrs"]),Yl=96*parseInt(Vl.x)/914400,Wl=96*parseInt(Vl.y)/914400,J="M"+Yl+","+Wl,Jl=lr(Ul,["a:path"]),Zl=Jl["a:lnTo"],$l=Jl["a:cubicBezTo"],Kl=Jl["a:arcTo"],rn=[];if(void 0!==Zl&&Object.keys(Zl).forEach(function(r){var a=Zl[r]["a:pt"];void 0!==a&&Object.keys(a).forEach(function(r){var t={},e=a[r],s=e.x,o=e.y,i=e.order;t.type="lnto",t.order=i,t.x=s,t.y=o,rn.push(t)})}),void 0!==$l&&Object.keys($l).forEach(function(r){var a=$l[r]["a:pt"];void 0!==a&&Object.keys(a).forEach(function(r){var t=a[r];Object.keys(t).forEach(function(r){var a={},e=t[r],s=e.x,o=e.y,i=e.order;a.type="cubicBezTo",a.order=i,a.x=s,a.y=o,rn.push(a)})})}),void 0!==Kl){var an=Kl.attrs,tn=an.order,ht=an.hR,pt=an.wR,Xt=an.stAng,It=an.swAng,en=0,sn=0,on=lr(Kl,["a:pt","attrs"]);void 0!==on&&(en=on.x,sn=on.y);var ln={};ln.type="arcTo",ln.order=tn,ln.hR=ht,ln.wR=pt,ln.stAng=Xt,ln.swAng=It,ln.shftX=en,ln.shftY=sn,rn.push(ln)}var nn=rn.slice(0);nn.sort(function(r,a){return r.order-a.order});for(var dn=0;dn":(void 0===Q||"triangle"!==Q.type&&"arrow"!==Q.type||(f+="marker-start='url(#markerTriangle_"+v+")' "),void 0===X||"triangle"!==X.type&&"arrow"!==X.type||(f+="marker-end='url(#markerTriangle_"+v+")' "),f+="/>"),f+="",f+="
",void 0!==r["p:txBody"]&&(f+=w(r["p:txBody"],r,a,t,i,n)),f+="
"}else f+="
",void 0!==r["p:txBody"]&&(f+=w(r["p:txBody"],r,a,t,i,n)),f+="
";return f}function L(r,a){for(var t=r,e=100,s=a,o=Math.max(t,e),i=Math.PI/s,l=[],n=0;2*s>n;n++){var d=1&n?t:e;l.push(o+d*Math.sin(n*i)),l.push(o-d*Math.cos(n*i))}return l}function m(r,a,t,e,s){var o=parseInt(e),i=parseInt(t),l=parseInt(r),n=l/2,d=o-i;0>d&&(d=360+d),d=Math.min(Math.max(d,0),360);var c,h,p,f=Math.cos(2*Math.PI/(360/d)),v=Math.sin(2*Math.PI/(360/d));if(s)c=180>=d?0:1,h="M"+n+","+n+" L"+n+",0 A"+n+","+n+" 0 "+c+",1 "+(n+v*n)+","+(n-f*n)+" z",p="rotate("+(i-270)+", "+n+", "+n+")";else{c=180>=d?0:1;var u=n,L=a/2;h="M"+u+",0 A"+L+","+u+" 0 "+c+",1 "+(L+v*L)+","+(u-f*u),p="rotate("+(i+90)+", "+n+", "+n+")"}return[h,p]}function g(r,t,e){var s=t,o=1.5*s,i=o;cy=o,notches=e,radiusO=o,radiusI=s,taperO=50,taperI=35,pi2=2*Math.PI,angle=pi2/(2*notches),taperAI=angle*taperI*.005,taperAO=angle*taperO*.005,a=angle,toggle=!1;for(var l=" M"+(i+radiusO*Math.cos(taperAO))+" "+(cy+radiusO*Math.sin(taperAO));a<=pi2+angle;a+=angle)toggle?(l+=" L"+(i+radiusI*Math.cos(a-taperAI))+","+(cy+radiusI*Math.sin(a-taperAI)),l+=" L"+(i+radiusO*Math.cos(a+taperAO))+","+(cy+radiusO*Math.sin(a+taperAO))):(l+=" L"+(i+radiusO*Math.cos(a-taperAO))+","+(cy+radiusO*Math.sin(a-taperAO)),l+=" L"+(i+radiusI*Math.cos(a+taperAI))+","+(cy+radiusI*Math.sin(a+taperAI))),toggle=!toggle;return l+=" "}function b(r,a,t,e,s,o,i){var l,n=s;if(o>=s)for(;o>=n;){var d=n*(Math.PI/180),c=r+Math.cos(d)*t,h=a+Math.sin(d)*e;n==s&&(l=" M"+c+" "+h),l+=" L"+c+" "+h,n++}else for(;n>o;){var d=n*(Math.PI/180),c=r+Math.cos(d)*t,h=a+Math.sin(d)*e;n==s&&(l=" M "+c+" "+h),l+=" L "+c+" "+h,n--}return l+=i?" z":""}function k(r,a,t,e,s,o){var i,l,n,d;"cornr1"==o?(i=0,l=0,n=0,d=t):"cornr2"==o?(i=t,l=e,n=e,d=t):"cornrAll"==o?(i=t,l=t,n=t,d=t):"diag"==o&&(i=t,l=e,n=t,d=e);var c;return"round"==s?c="M0,"+(a/2+(1-l)*(a/2))+" Q0,"+a+" "+l*(r/2)+","+a+" L"+(r/2+(1-n)*(r/2))+","+a+" Q"+r+","+a+" "+r+","+(a/2+a/2*(1-n))+"L"+r+","+a/2*d+" Q"+r+",0 "+(r/2+r/2*(1-d))+",0 L"+r/2*i+",0 Q0,0 0,"+a/2*i+" z":"snip"==s&&(c="M0,"+i*(a/2)+" L0,"+(a/2+a/2*(1-l))+"L"+l*(r/2)+","+a+" L"+(r/2+r/2*(1-n))+","+a+"L"+r+","+(a/2+a/2*(1-n))+" L"+r+","+d*(a/2)+"L"+(r/2+r/2*(1-d))+",0 L"+r/2*i+",0 z"),c}function y(r,a){var t="",e=!1,s=r.attrs.order,o=r["p:blipFill"]["a:blip"].attrs["r:embed"],i=a.slideResObj[o].target,l=Pr(i).toLowerCase(),n=a.zip,d=n.file(i).asArrayBuffer(),c="",h=r["p:spPr"]["a:xfrm"],p=0,f=lr(r,["p:spPr","a:xfrm","attrs","rot"]);void 0!==f&&(p=cr(f));var v,u,L,m,g,b,k,y=lr(r,["p:nvPicPr","p:nvPr","a:videoFile"]),M=!1,w=Rr.mediaProcess;void 0!==y&w&&(v=y.attrs["r:link"],u=a.slideResObj[v].target,g=n.file(u).asArrayBuffer(),L=Pr(u).toLowerCase(),("mp4"==L||"webm"==L||"ogg"==L)&&(m=hr(L),b=new Blob([g],{type:m}),k=URL.createObjectURL(b),M=!0,e=!0));var P,I,C,x,_,D,T,j=lr(r,["p:nvPicPr","p:nvPr","a:audioFile"]),A=!1;if(void 0!==j&w&&(P=j.attrs["r:link"],I=a.slideResObj[P].target,C=Pr(I).toLowerCase(),"mp3"==C||"wav"==C||"ogg"==C)){x=n.file(I).asArrayBuffer(),_=new Blob([x]),D=URL.createObjectURL(_);var z=20*parseInt(h["a:ext"].attrs.cx),R=h["a:ext"].attrs.cy,B=parseInt(h["a:off"].attrs.x)/2.5,N=h["a:off"].attrs.y;T={"a:ext":{attrs:{cx:z,cy:R}},"a:off":{attrs:{x:B,y:N}}},A=!0,M=!0,e=!0}return c=hr(l),t="
",void 0===y&&void 0===j||!w||!M?t+="":(void 0!==y||void 0!==j)&&w&&M&&(void 0!==y&&(t+=""),void 0!==j&&(t+='')),!M&&e&&(t+="This media file Not supported by HTML5"),void 0===y&&void 0===j||w||!M||console.log("Founded supported media file but media process disabled (mediaProcess=false)"),t+="
"}function M(r,a){var t="",e=lr(r,["a:graphic","a:graphicData","attrs","uri"]);switch(e){case"http://schemas.openxmlformats.org/drawingml/2006/table":t=x(r,a);break;case"http://schemas.openxmlformats.org/drawingml/2006/chart":t=_(r,a);break;case"http://schemas.openxmlformats.org/drawingml/2006/diagram":t=D(r,a)}return t}function w(r,a,t,e,s,o){var i="",l=o.slideMasterTextStyles;if(void 0===r)return i;if(r["a:p"].constructor===Array)for(var n=0;n",i+=P(d,a,t,e,s,o),void 0===c)i+=I(d,a,t,e,s,o);else if(c.constructor===Array)for(var h=0;h");else i+=I(c,a,t,e,s,o);i+=""}else{var d=r["a:p"],c=d["a:r"];if(i+="
",i+=P(d,a,t,e,s,o),void 0===c)i+=I(d,a,t,e,s,o);else if(c.constructor===Array)for(var h=0;h");else i+=I(c,a,t,e,s,o);i+="
"}return i}function P(r,a,t,e,s,o){var i=o.slideMasterTextStyles,l=lr(r,["a:r"]);void 0!==l&&l.constructor===Array&&(l=l[0]);var n,d,c,h;void 0!==l?(n=z(l,a,s,i)[0],d=R(l,t,e,s,i)):(n=z(r,a,s,i)[0],d=R(r,t,e,s,i));var p="",f=r["a:pPr"],v=lr(f,["attrs","rtl"]),u=!1;void 0!==v&&"1"==v&&(u=!0);var L=parseInt(lr(f,["attrs","lvl"]));isNaN(L)&&(L=0);var m=lr(f,["a:buChar","attrs","char"]),g="TYPE_NONE",b=lr(f,["a:buAutoNum","attrs","type"]),k=lr(f,["a:buBlip"]);if(void 0!==m&&(g="TYPE_BULLET"),void 0!==b&&(g="TYPE_NUMERIC"),void 0!==k&&(g="TYPE_BULPIC"),"TYPE_NONE"!=g)var y=lr(f,["a:buFont","attrs"]);var M=lr(f,["a:buClr"]),w="NoNe";void 0!==M&&(w=K(M)),c="NoNe"==w?n:"#"+w;var P;if(P=lr(f,["a:buSzPts","attrs","val"]),void 0!==P)h=parseInt(P)/100+"pt";else if(P=lr(f,["a:buSzPct","attrs","val"]),void 0!==P){var I=parseInt(P)/1e5,C=d.substr(0,d.length-2);h=I*parseInt(C)+"pt"}else h=d;if("TYPE_BULLET"==g)if(void 0!==y){var x=96*parseInt(lr(f,["attrs","marL"]))/914400,_=parseInt(y.pitchFamily);isNaN(x)&&(x=31545600/914400),isNaN(_)&&(_=0);var D=y.typeface;p=""+m+""}else x=31545600/914400*L,p=""+m+"";else if("TYPE_NUMERIC"==g)if(void 0!==y){var x=96*parseInt(lr(f,["attrs","marL"]))/914400,_=parseInt(y.pitchFamily);isNaN(x)&&(x=31545600/914400),isNaN(_)&&(_=0),p=""}else x=31545600/914400*L,p="";else if("TYPE_BULPIC"==g){var x=96*parseInt(lr(f,["attrs","marL"]))/914400,_=96*parseInt(lr(f,["attrs","marR"]))/914400;isNaN(_)&&(_=0),x=isNaN(x)?31545600/914400:0;var G,S=lr(k,["a:blip","attrs","r:embed"]);if(void 0!==S){var T=o.slideResObj[S].target,j=o.zip.file(T).asArrayBuffer(),A=T.split(".").pop(),B=hr(A);G=""}void 0===S&&(G="‣"),p=""+G+" "}else p="";return p}function I(r,a,t,e,s,o){var i=o.slideMasterTextStyles,l=r["a:t"];"string"!=typeof l&&(l=lr(r,["a:fld","a:t"]),"string"!=typeof l&&(l=" "));var n=z(r,a,s,i),d="color:"+n[0]+";text-shadow:"+n[1]+";font-size:"+R(r,t,e,s,i)+";font-family:"+A(r,s,i)+";font-weight:"+B(r,s,i)+";font-style:"+N(r,s,i)+";text-decoration:"+F(r,s,i)+";text-align:"+O(r,s,i)+";vertical-align:"+E(r,s,i)+";",c=lr(r,["a:rPr","a:highlight"]);void 0!==c&&(d+="background-color:#"+K(c)+";",d+="Opacity:"+sr(c)+";");var h="";d in zr?h=zr[d].name:(h="_css_"+(Object.keys(zr).length+1),zr[d]={name:h,text:d});var p=lr(r,["a:rPr","a:hlinkClick","attrs","r:id"]);if(void 0!==p){var f=o.slideResObj[p].target;return""+l.replace(/\s/i," ")+""}return""+l.replace(/\s/i," ")+""}function C(){var r="";for(var a in zr)r+="div ."+zr[a].name+"{"+zr[a].text+"}\n";return r}function x(r,a){var t=r.attrs.order,e=lr(r,["a:graphic","a:graphicData","a:tbl"]),s=lr(r,["p:xfrm"]),o=lr(r,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),i=lr(r,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]),l="";if(void 0!==o){var n=o.attrs.rtl;l=1==n?"dir=rtl":"dir=ltr"}var d=o.attrs.firstRow,c=(o.attrs.firstCol,o.attrs.lastRow,o.attrs.lastCol,o.attrs.bandRow),h=(o.attrs.bandCol,"
"+R+""+R+""+R+"
"+R+"
"),p=e["a:tr"];if(p.constructor===Array)for(var f=0;f0&&void 0!==c){var y="fff",M=1;if(f%2==0){if(void 0!==m["a:band2H"]){var P=lr(m,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);void 0!==P&&(y=K(P),M=sr(P));var I=lr(m,["a:band2H","a:tcStyle","a:tcBdr"]);if(void 0!==I){var C=q(I);L+=C}lr(m,["a:band2H","a:tcTxStyle"])}}else if(void 0!==m["a:band1H"]){var P=lr(m,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);void 0!==P&&(y=K(P),M=sr(P));var I=lr(m,["a:band1H","a:tcStyle","a:tcBdr"]);if(void 0!==I){var C=q(I);L+=C}lr(m,["a:band1H","a:tcTxStyle"])}L+=" background-color:#"+y+"; opacity:"+M+";"}h+="";var x=p[f]["a:tc"];if(x.constructor===Array)for(var _=0;_"+D+"":void 0!==j?h+="":void 0===A&&void 0===z&&(h+="")}else{var D=w(x["a:txBody"]),R=i[0].attrs.w,B="";if(void 0!==R){var N=96*parseInt(R)/914400;B+="width:"+N+"px;"}var F=x["a:tcPr"]["a:solidFill"],y="",M=1;void 0!==F&&(y=K(F),M=sr(F)),""!=y&&(B+=" background-color:#"+y+";",B+=" opacity"+M+";"),h+=""}h+=""}else{var v=p.attrs.h,u=0;void 0!==v?(u=96*parseInt(v)/914400,h+=""):h+="";var x=p["a:tc"];if(x.constructor===Array)for(var _=0;_"+D+""}else{var D=w(x["a:txBody"]),R=i[0].attrs.w,B="";if(void 0!==R){var N=96*parseInt(R)/914400;B+="width:"+N+"px;"}var F=x[_]["a:tcPr"]["a:solidFill"],y="",M=1;void 0!==F&&(y=K(F),M=sr(F)),""!=y&&(B+=" background-color:#"+y+";",B+=" opacity"+M+";"),h+=""}h+=""}return h}function _(r,a){var t=r.attrs.order,e=lr(r,["p:xfrm"]),s="
",i=r["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],l=a.slideResObj[i].target,n=o(a.zip,l),d=lr(n,["c:chartSpace","c:chart","c:plotArea"]),c=null;for(var h in d)switch(h){case"c:lineChart":c={type:"createChart",data:{chartID:"chart"+Tr,chartType:"lineChart",chartData:ir(d[h]["c:ser"])}};break;case"c:barChart":c={type:"createChart",data:{chartID:"chart"+Tr,chartType:"barChart",chartData:ir(d[h]["c:ser"])}};break;case"c:pieChart":c={type:"createChart",data:{chartID:"chart"+Tr,chartType:"pieChart",chartData:ir(d[h]["c:ser"])}};break;case"c:pie3DChart":c={type:"createChart",data:{chartID:"chart"+Tr,chartType:"pie3DChart",chartData:ir(d[h]["c:ser"])}};break;case"c:areaChart":c={type:"createChart",data:{chartID:"chart"+Tr,chartType:"areaChart",chartData:ir(d[h]["c:ser"])}};break;case"c:scatterChart":c={type:"createChart",data:{chartID:"chart"+Tr,chartType:"scatterChart",chartData:ir(d[h]["c:ser"])}};break;case"c:catAx":break;case"c:valAx":}return null!==c&&Dr.push(c),Tr++,s}function D(r,a){var t=(r.attrs.order,a.zip),e=lr(r,["p:xfrm"]),s=lr(r,["a:graphic","a:graphicData","dgm:relIds","attrs"]),i=s["r:cs"],l=s["r:dm"],n=s["r:lo"],d=s["r:qs"],c=a.slideResObj[i].target,h=a.slideResObj[l].target,p=a.slideResObj[n].target;dgmQuickStyleFileName=a.slideResObj[d].target;var v=(o(t,c),o(t,h)),u=(o(t,p),o(t,dgmQuickStyleFileName),""),L=lr(v,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs"]);if(void 0!==L){var m=L.relId;u=a.slideResObj[m].target}var g="";""!=u&&(g=o(t,u));var b=lr(g,["dsp:drawing","dsp:spTree","dsp:sp"]),k="";if(void 0!==b)for(var y=b.length,M=0;y>M;M++){var w=b[M],P=JSON.stringify(w),I=P.replace(/dsp:/g,"p:"),C=JSON.parse(I);k+=f(C,a)}return"
"+k+"
"}function G(r,a,t){var e=void 0,s=-1,o=-1;return void 0!==r?e=r["a:off"].attrs:void 0!==a?e=a["a:off"].attrs:void 0!==t&&(e=t["a:off"].attrs),void 0===e?"":(s=96*parseInt(e.x)/914400,o=96*parseInt(e.y)/914400,isNaN(s)||isNaN(o)?"":"top:"+o+"px; left:"+s+"px;")}function S(r,a,t){var e=void 0,s=-1,o=-1;return void 0!==r?e=r["a:ext"].attrs:void 0!==a?e=a["a:ext"].attrs:void 0!==t&&(e=t["a:ext"].attrs),void 0===e?"":(s=96*parseInt(e.cx)/914400,o=96*parseInt(e.cy)/914400,isNaN(s)||isNaN(o)?"":"width:"+s+"px; height:"+o+"px;")}function T(r,a,t,e,s){var o=lr(r,["a:pPr","attrs","algn"]);if(void 0===o&&(o=lr(a,["p:txBody","a:p","a:pPr","attrs","algn"]),void 0===o&&(o=lr(t,["p:txBody","a:p","a:pPr","attrs","algn"]),void 0===o)))switch(e){case"title":case"subTitle":case"ctrTitle":o=lr(s,["p:titleStyle","a:lvl1pPr","attrs","alng"]);break;default:o=lr(s,["p:otherStyle","a:lvl1pPr","attrs","alng"])}if(void 0===o){if("title"==e||"subTitle"==e||"ctrTitle"==e)return"h-mid";if("sldNum"==e)return"h-right"}return"ctr"===o?"h-mid":"r"===o?"h-right":"h-left"}function j(r,a,t,e,s){var o=lr(r,["p:txBody","a:bodyPr","attrs","anchor"]);return void 0===o&&(o=lr(a,["p:txBody","a:bodyPr","attrs","anchor"]),void 0===o&&(o=lr(t,["p:txBody","a:bodyPr","attrs","anchor"]))),"ctr"===o?"v-mid":"b"===o?"v-down":"v-up"}function A(r,a,t){var e=lr(r,["a:rPr","a:latin","attrs","typeface"]);if(void 0===e){var s=lr(Gr,["a:theme","a:themeElements","a:fontScheme"]);e="title"==a||"subTitle"==a||"ctrTitle"==a?lr(s,["a:majorFont","a:latin","attrs","typeface"]):"body"==a?lr(s,["a:minorFont","a:latin","attrs","typeface"]):lr(s,["a:minorFont","a:latin","attrs","typeface"])}return void 0===e?"inherit":e}function z(r,a,t,e){var s,o,i,l=lr(r,["a:rPr"]);if(void 0!==l)if(s=W(l),"SOLID_FILL"==s){var n=lr(r,["a:rPr","a:solidFill"]);o=K(n)}else if("PATTERN_FILL"==s){var d=lr(r,["a:rPr","a:pattFill"]);o=$(d)}else{var c=lr(a,["p:style","a:fontRef"]);void 0!==c&&(o=K(c))}o=void 0===o||"FFF"===o?"#000":"#"+o;var h=lr(r,["a:rPr","a:ln"]);if(void 0!==h){var p=H(r,!1,"text"),f=p.split(" "),v=parseInt(f[0].substring(0,f[0].indexOf("pt")))*(4/3)+"px",u=f[2];i="-"+v+" 0 "+u+", 0 "+v+" "+u+", "+v+" 0 "+u+", 0 -"+v+" "+u+";"}else i="none";return[o,i]}function R(r,a,t,e,s){var o=void 0;if(void 0!==r["a:rPr"]&&(o=parseInt(r["a:rPr"].attrs.sz)/100),isNaN(o)||void 0===o){var i=lr(a,["p:txBody","a:lstStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);o=parseInt(i)/100}if(isNaN(o)||void 0===o){if("title"==e||"subTitle"==e||"ctrTitle"==e)var i=lr(s,["p:titleStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);else if("body"==e)var i=lr(s,["p:bodyStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);else if("dt"==e||"sldNum"==e)var i="1200";else if(void 0===e)var i=lr(s,["p:otherStyle","a:lvl1pPr","a:defRPr","attrs","sz"]);o=parseInt(i)/100}var l=lr(r,["a:rPr","attrs","baseline"]);return void 0===l||isNaN(o)||(o-=10),isNaN(o)?"inherit":o+"pt"}function B(r,a,t){return void 0!==r["a:rPr"]&&"1"===r["a:rPr"].attrs.b?"bold":"initial"}function N(r,a,t){return void 0!==r["a:rPr"]&&"1"===r["a:rPr"].attrs.i?"italic":"normal"}function F(r,a,t){if(void 0!==r["a:rPr"]){var e=void 0!==r["a:rPr"].attrs.u?r["a:rPr"].attrs.u:"none",s=void 0!==r["a:rPr"].attrs.strike?r["a:rPr"].attrs.strike:"noStrike";return"none"!=e&&"noStrike"==s?"underline":"none"==e&&"noStrike"!=s?"line-through":"none"!=e&&"noStrike"!=s?"underline line-through":"initial"}return"initial"}function O(r,a,t){var e=lr(r,["a:pPr","attrs","algn"]),s="initial";if(void 0!==e)switch(e){case"l":s="left";break;case"r":s="right";break;case"ctr":s="center";break;case"just":s="justify";break;case"dist":s="justify";break;default:s="initial"}return s}function E(r,a,t){var e=lr(r,["a:rPr","attrs","baseline"]);return void 0===e?"baseline":parseInt(e)/1e3+"%"}function q(r){var a="";if(void 0!==r["a:bottom"]){var t={"p:spPr":{"a:ln":r["a:bottom"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-bottom")}if(void 0!==r["a:top"]){var t={"p:spPr":{"a:ln":r["a:top"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-top")}if(void 0!==r["a:right"]){var t={"p:spPr":{"a:ln":r["a:right"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-right")}if(void 0!==r["a:left"]){var t={"p:spPr":{"a:ln":r["a:left"]["a:ln"]}},e=H(t,!1,"shape");a+=e.replace("border","border-left")}return a}function H(r,a,t){var e,s;"shape"==t?(e="border: ",s=r["p:spPr"]["a:ln"]):"text"==t&&(e="",s=r["a:rPr"]["a:ln"]);var o=parseInt(lr(s,["attrs","w"]))/12700;e+=isNaN(o)||1>o?"1pt ":o+"pt ";var i=lr(s,["a:prstDash","attrs","val"]),l="0";switch(i){case"solid":e+="solid",l="0";break;case"dash":e+="dashed",l="5";break;case"dashDot":e+="dashed",l="5, 5, 1, 5"; +break;case"dot":e+="dotted",l="1, 5";break;case"lgDash":e+="dashed",l="10, 5";break;case"lgDashDotDot":e+="dashed",l="10, 5, 1, 5, 1, 5";break;case"sysDash":e+="dashed",l="5, 2";break;case"sysDashDot":e+="dashed",l="5, 2, 1, 5";break;case"sysDashDotDot":e+="dashed",l="5, 2, 1, 5, 1, 5";break;case"sysDot":e+="dotted",l="2, 5";break;case void 0:default:e+="solid",l="0"}var n=lr(s,["a:solidFill","a:srgbClr","attrs","val"]);if(void 0===n){var d=lr(s,["a:solidFill","a:schemeClr"]);if(void 0!==d)var c="a:"+lr(d,["attrs","val"]),n=or(c,void 0)}if(void 0===n){var d=lr(r,["p:style","a:lnRef","a:schemeClr"]);if(void 0!==d)var c="a:"+lr(d,["attrs","val"]),n=or(c,void 0);if(void 0!==n){var h=lr(d,["a:shade","attrs","val"]);if(void 0!==h){h=parseInt(h)/1e5;var p=new colz.Color("#"+n);p.setLum(p.hsl.l*h),n=p.hex.replace("#","")}}}return n=void 0===n?a?"none":"#000":"#"+n,e+=" "+n+" ",a?{color:n,width:o,type:i,strokeDasharray:l}:e+";"}function U(r,a,t,e){var s,o=lr(r,["p:sld","p:cSld","p:bg","p:bgPr"]),i=lr(r,["p:sld","p:cSld","p:bg","p:bgRef"]);if(void 0!==o){var l=W(o);if("SOLID_FILL"==l){var n=o["a:solidFill"],d=K(n),c=sr(n);s="background: rgba("+V(d)+","+c+");"}else"GRADIENT_FILL"==l?s=Q(o,void 0,t):"PIC_FILL"==l&&(s=X(o,"slideBg",e))}else if(void 0!==i){var h;if(void 0!==i["a:srgbClr"])h=lr(i,["a:srgbClr","attrs","val"]);else if(void 0!==i["a:schemeClr"]){var p=lr(i,["a:schemeClr","attrs","val"]);h=or("a:"+p,t)}var f=Number(i.attrs.idx);if(0==f||1e3==f);else if(f>0&&1e3>f);else if(f>1e3){var v=f-1e3,u=Gr["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],L=[];Object.keys(u).forEach(function(r){var a=u[r];if("attrs"!=r)if(a.constructor===Array)for(var t=0;t0&&1e3>f);else if(f>1e3){var v=f-1e3,u=Gr["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],L=[];Object.keys(u).forEach(function(r){var a=u[r];if("attrs"!=r)if(a.constructor===Array)for(var t=0;t=t?t*(a+1):t+a-t*a,e=2*t-s,o=255*tr(e,s,r+2),i=255*tr(e,s,r),l=255*tr(e,s,r-2),{r:o,g:i,b:l}}function tr(r,a,t){return 0>t&&(t+=6),t>=6&&(t-=6),1>t?(a-r)*t+r:3>t?a:4>t?(a-r)*(4-t)+r:r}function er(r){var a,t=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],e=["f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],s=t.indexOf(r);return-1!=s&&(a=e[s]),a}function sr(r){if(void 0===r)return void 0;var a=1;if(void 0!==r["a:srgbClr"]){var t=lr(r,["a:srgbClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:schemeClr"]){var t=lr(r,["a:schemeClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:scrgbClr"]){var t=lr(r,["a:scrgbClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:prstClr"]){var t=lr(r,["a:prstClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:hslClr"]){var t=lr(r,["a:hslClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}else if(void 0!==r["a:sysClr"]){var t=lr(r,["a:sysClr","a:tint","attrs","val"]);void 0!==t&&(a=parseInt(t)/1e5)}return a}function or(r,a){(""==Sr||void 0===Sr)&&(Sr=lr(a,["p:sldMaster","p:clrMap","attrs"]));var t=r.substr(2);if(void 0!==Sr)switch(t){case"tx1":case"tx2":case"bg1":case"bg2":r="a:"+Sr[t]}else switch(t){case"tx1":r="a:dk1";break;case"tx2":r="a:dk2";break;case"bg1":r="a:lt1";break;case"bg2":r="a:lt2"}var e=lr(Gr,["a:theme","a:themeElements","a:clrScheme",r]),s=lr(e,["a:srgbClr","attrs","val"]);return void 0===s&&void 0!==e&&(s=lr(e,["a:sysClr","attrs","lastClr"])),s}function ir(r){var a=new Array;if(void 0===r)return a;if(void 0!==r["c:xVal"]){var t=new Array;nr(r["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return t.push(parseFloat(r["c:v"])),""}),a.push(t),t=new Array,nr(r["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return t.push(parseFloat(r["c:v"])),""}),a.push(t)}else nr(r,function(r,t){var e=new Array,s=lr(r,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||t,o={};return void 0!==lr(r,["c:cat","c:strRef","c:strCache","c:pt"])?nr(r["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],function(r,a){return o[r.attrs.idx]=r["c:v"],""}):void 0!==lr(r,["c:cat","c:numRef","c:numCache","c:pt"])&&nr(r["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return o[r.attrs.idx]=r["c:v"],""}),void 0!==lr(r,["c:val","c:numRef","c:numCache","c:pt"])&&nr(r["c:val"]["c:numRef"]["c:numCache"]["c:pt"],function(r,a){return e.push({x:r.attrs.idx,y:parseFloat(r["c:v"])}),""}),a.push({key:s,values:e,xlabels:o}),""});return a}function lr(r,a){if(a.constructor!==Array)throw Error("Error of path type! path is not array.");if(void 0===r)return void 0;for(var t=a.length,e=0;t>e;e++)if(r=r[a[e]],void 0===r)return void 0;return r}function nr(r,a){if(void 0!==r){var t="";if(r.constructor===Array)for(var e=r.length,s=0;e>s;s++)t+=a(r[s],s);else t+=a(r,0);return t}}function dr(r,a,t){var e=new colz.Color(r);return e.setLum(e.hsl.l*(1+t)),e.rgb.toString()}function cr(r){return""==r||null==r?0:Math.round(r/6e4)}function hr(r){var a="";switch(r.toLowerCase()){case"jpg":case"jpeg":a="image/jpeg";break;case"png":a="image/png";break;case"gif":a="image/gif";break;case"emf":a="image/x-emf";break;case"wmf":a="image/x-wmf";break;case"svg":a="image/svg+xml";break;case"mp4":a="video/mp4";break;case"webm":a="video/webm";break;case"ogg":a="video/ogg";break;case"avi":a="video/avi";break;case"mpg":a="video/mpg";break;case"wmv":a="video/wmv";break;case"mp3":a="audio/mpeg";break;case"wav":a="audio/wav"}return a}function pr(r,a,t,e,s){var o=fr(e.length-2),i="",l=a,n=r,d="",c=vr(t,l,n),h=c[0],p=c[1],f=c[2],v=c[3],u=o.length,L=20>u?100:1e3;i=' gradientUnits="userSpaceOnUse" x1="'+h+'%" y1="'+p+'%" x2="'+f+'%" y2="'+v+'%"',i='\n",d+=i;for(var m=0;u>m;m++)d+='v?(l=e,i=0):90==v?(c=n,h=0,p=n,f=s):180>v?(l=0,i=0):180==v?(c=0,h=d,p=e,f=d):270>v?(l=0,i=s):270==v?(c=n,h=s,p=n,f=0):(l=e,i=s);var g=i+l/L,c=2==c?L*(g-m)/(Math.pow(L,2)+1):c,h=2==h?L*c+m:h,p=2==p?e-c:p,f=2==f?s-h:f,b=Math.round(p/e*100*100)/100,k=Math.round(f/s*100*100)/100,y=Math.round(c/e*100*100)/100,M=Math.round(h/s*100*100)/100;return[b,k,y,M]}function ur(r,a){var t='';return t+='',t+=""}function Lr(r){for(var a=0;a0)for(var o="",i="",l=0,n=new Array,d=0,c=new Array,h=0;hNumber(i)?(o=p,i=f,d++,n[d]=l,c[d]=p,l=1):p!=o&&Number(f)0)for(;a>=r;a-=r)t+=this[1];else t=t.replace(r,this[1])}),t}}}function Mr(r,a){r=Number(r)-1;var t="";return"upperCase"==a?t=((r/26>=1?String.fromCharCode(r/26+64):"")+String.fromCharCode(r%26+65)).toUpperCase():"lowerCase"==a&&(t=((r/26>=1?String.fromCharCode(r/26+64):"")+String.fromCharCode(r%26+65)).toLowerCase()),t}function wr(r){for(var a,t,e,s,o,i="",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(r),d=n.byteLength,c=d%3,h=d-c,p=0;h>p;p+=3)o=n[p]<<16|n[p+1]<<8|n[p+2],a=(16515072&o)>>18,t=(258048&o)>>12,e=(4032&o)>>6,s=63&o,i+=l[a]+l[t]+l[e]+l[s];return 1==c?(o=n[h],a=(252&o)>>2,t=(3&o)<<4,i+=l[a]+l[t]+"=="):2==c&&(o=n[h]<<8|n[h+1],a=(64512&o)>>10,t=(1008&o)>>4,e=(15&o)<<2,i+=l[a]+l[t]+l[e]+"="),i}function Pr(r){return r.substr((~-r.lastIndexOf(".")>>>0)+2)}function Ir(r,a){"use strict";function t(){for(var a=[];r[n];)if(r.charCodeAt(n)==c){if(r.charCodeAt(n+1)===v)return n=r.indexOf(h,n),n+1&&(n+=1),a;if(r.charCodeAt(n+1)===u){if(r.charCodeAt(n+2)==f){for(;-1!==n&&(r.charCodeAt(n)!==p||r.charCodeAt(n-1)!=f||r.charCodeAt(n-2)!=f||-1==n);)n=r.indexOf(h,n+1);-1===n&&(n=r.length)}else for(n+=2;r.charCodeAt(n)!==p&&r[n];)n++;n++;continue}var t=o();a.push(t)}else{var s=e();s.trim().length>0&&a.push(s),n++}return a}function e(){var a=n;return n=r.indexOf(d,n)-1,-2===n&&(n=r.length),r.slice(a,n+1)}function s(){for(var a=n;-1===g.indexOf(r[n])&&r[n];)n++;return r.slice(a,n)}function o(){var a={};n++,a.tagName=s();for(var e=!1;r.charCodeAt(n)!==p&&r[n];){var o=r.charCodeAt(n);if(o>64&&91>o||o>96&&123>o){for(var l=s(),d=r.charCodeAt(n);d&&d!==L&&d!==m&&!(d>64&&91>d||d>96&&123>d)&&d!==p;)n++,d=r.charCodeAt(n);if(e||(a.attributes={},e=!0),d===L||d===m){var c=i();if(-1===n)return a}else c=null,n--;a.attributes[l]=c}n++}if(r.charCodeAt(n-1)!==v)if("script"==a.tagName){var h=n+1;n=r.indexOf("",n),a.children=[r.slice(h,n-1)],n+=8}else if("style"==a.tagName){var h=n+1;n=r.indexOf("",n),a.children=[r.slice(h,n-1)],n+=7}else-1==b.indexOf(a.tagName)&&(n++,a.children=t(l));else n++;return a}function i(){var a=r[n],t=++n;return n=r.indexOf(a,t),r.slice(t,n)}function l(){var t=new RegExp("\\s"+a.attrName+"\\s*=['\"]"+a.attrValue+"['\"]").exec(r);return t?t.index:-1}a=a||{};var n=a.pos||0,d="<",c="<".charCodeAt(0),h=">",p=">".charCodeAt(0),f="-".charCodeAt(0),v="/".charCodeAt(0),u="!".charCodeAt(0),L="'".charCodeAt(0),m='"'.charCodeAt(0),g="\n >/= ",b=["img","br","input","meta","link"],k=null;if(void 0!==a.attrValue){a.attrName=a.attrName||"id";for(var k=[];-1!==(n=l());)n=r.lastIndexOf("<",n),-1!==n&&k.push(o()),r=r.substr(n),n=0}else k=a.parseNode?o():t();return a.filter&&(k=Ir.filter(k,a.filter)),a.simplify&&(k=Ir.simplify(k)),k.pos=n,k}var Cr=r(this),xr=Cr.attr("id"),_r=!1,Dr=new Array,Gr=null,Sr="",Tr=0,jr=1,Ar=!1,zr={},Rr=r.extend({pptxFileUrl:"",fileInputId:"",slideMode:!1,keyBoardShortCut:!1,mediaProcess:!0,slideModeConfig:{first:1,nav:!0,navTxtColor:"black",navNextTxt:"›",navPrevTxt:"‹",keyBoardShortCut:!0,showSlideNum:!0,showTotalSlideNum:!0,autoSlide:!0,randomAutoSlide:!1,loop:!1,background:!1,transition:"default",transitionTime:1}},t);r("#"+xr).prepend(r("").attr({"class":"slides-loadnig-msg",style:"display:block; color:blue; font-size:20px; width:50%; margin:0 auto;"}).html("Loading...")),Rr.slideMode&&(jQuery().divs2slides||jQuery.getScript("./js/divs2slides.js",function(){})),Rr.keyBoardShortCut&&Rr.slideMode&&r(document).bind("keydown",function(a){a.preventDefault();var t=a.keyCode;if(116==t&&!Ar&&(Ar=!0,r("#"+xr+" .slide").hide(),_r)){var e=Rr.slideModeConfig;r(".slides-loadnig-msg").remove(),r("#"+xr).divs2slides({first:e.first,nav:e.nav,showPlayPauseBtn:Rr.showPlayPauseBtn,navTxtColor:e.navTxtColor,navNextTxt:e.navNextTxt,navPrevTxt:e.navPrevTxt,keyBoardShortCut:e.keyBoardShortCut,showSlideNum:e.showSlideNum,showTotalSlideNum:e.showTotalSlideNum,autoSlide:e.autoSlide,randomAutoSlide:e.randomAutoSlide,loop:e.loop,background:e.background,transition:e.transition,transitionTime:e.transitionTime})}}),JSZipUtils.getBinaryContent(Rr.pptxFileUrl,function(r,a){var t=new Blob([a]),s=Rr.pptxFileUrl,o=s.split(".");o.pop(),t.name=o[0],FileReaderJS.setupBlob(t,{readAsDefault:"ArrayBuffer",on:{load:function(r,a){e(r.target.result)}}})}),""!=Rr.fileInputId&&r("#"+Rr.fileInputId).on("change",function(r){Cr.html("");var a=r.target.files[0],t=a.type;"application/vnd.openxmlformats-officedocument.presentationml.presentation"==t?FileReaderJS.setupBlob(a,{readAsDefault:"ArrayBuffer",on:{load:function(r,a){e(r.target.result)}}}):alert("This is not pptx file")});var Br=yr([[1e3,""],[400,"ת"],[300,"ש"],[200,"ר"],[100,"ק"],[90,"צ"],[80,"פ"],[70,"ע"],[60,"ס"],[50,"נ"],[40,"מ"],[30,"ל"],[20,"כ"],[10,"י"],[9,"ט"],[8,"ח"],[7,"ז"],[6,"ו"],[5,"ה"],[4,"ד"],[3,"ג"],[2,"ב"],[1,"א"],[/יה/,"ט״ו"],[/יו/,"ט״ז"],[/([א-ת])([א-ת])$/,"$1״$2"],[/^([א-ת])$/,"$1׳"]]),jr=1;Ir.simplify=function(r){var a={};if(void 0===r)return{};if(1===r.length&&"string"==typeof r[0])return r[0];r.forEach(function(r){if("object"==typeof r){a[r.tagName]||(a[r.tagName]=[]);var t=Ir.simplify(r.children||[]);a[r.tagName].push(t),r.attributes&&(t.attrs=r.attributes),void 0===t.attrs?t.attrs={order:jr}:t.attrs.order=jr,jr++}});for(var t in a)1==a[t].length&&(a[t]=a[t][0]);return a},Ir.filter=function(r,a){var t=[];return r.forEach(function(r){if("object"==typeof r&&a(r)&&t.push(r),r.children){var e=Ir.filter(r.children,a);t=t.concat(e)}}),t},Ir.stringify=function(r){function a(r){if(r)for(var a=0;a"}var e="";return a(r),e},Ir.toContentString=function(r){if(Array.isArray(r)){var a="";return r.forEach(function(r){a+=" "+Ir.toContentString(r),a=a.trim()}),a}return"object"==typeof r?Ir.toContentString(r.children):" "+r},Ir.getElementById=function(r,a,t){var e=Ir(r,{attrValue:a,simplify:t});return t?e:e[0]},Ir.getElementsByClassName=function(r,a,t){return Ir(r,{attrName:"class",attrValue:"[a-zA-Z0-9-s ]*"+a+"[a-zA-Z0-9-s ]*",simplify:t})},Ir.parseStream=function(r,a){if("function"==typeof a&&(cb=a,a=0),"string"==typeof a&&(a=a.length+2),"string"==typeof r){var t=require("fs");r=t.createReadStream(r,{start:a}),a=0}var e=a,s="",o=0;return r.on("data",function(a){o++,s+=a;for(var t=0;;){e=s.indexOf("<",e)+1;var i=Ir(s,{pos:e,parseNode:!0});if(e=i.pos,e>s.length-1||t>e)return void(t&&(s=s.slice(t),e=0,t=0));r.emit("xml",i),t=e}s=s.slice(e),e=0}),r.on("end",function(){console.log("end")}),r},"object"==typeof module&&(module.exports=Ir)},!function(r){"object"==typeof exports?module.exports=r():"function"==typeof define&&define.amd?define(r):"undefined"!=typeof window?window.JSZipUtils=r():"undefined"!=typeof global?global.JSZipUtils=r():"undefined"!=typeof self&&(self.JSZipUtils=r())}(function(){return function r(a,t,e){function s(i,l){if(!t[i]){if(!a[i]){var n="function"==typeof require&&require;if(!l&&n)return n(i,!0);if(o)return o(i,!0);throw new Error("Cannot find module '"+i+"'")}var d=t[i]={exports:{}};a[i][0].call(d.exports,function(r){var t=a[i][1][r];return s(t?t:r)},d,d.exports,r,a,t,e)}return t[i].exports}for(var o="function"==typeof require&&require,i=0;i1?(a=r[0],t=r[1],e=r[2]):(a=r[0][0],t=r[0][1],e=r[0][2]),"#"+l(a)+l(t)+l(e)},d=k.rgbToHsl=function(){var r,a,t,e,s,o,i,l,n,d;if(r=arguments,"number"==typeof r[0]?(a=r[0],t=r[1],e=r[2]):(a=r[0][0],t=r[0][1],e=r[0][2]),a/=255,t/=255,e/=255,n=Math.max(a,t,e),d=Math.min(a,t,e),i=(n+d)/2,n===d)s=o=0;else{switch(l=n-d,o=i>.5?l/(2-n-d):l/(n+d),n){case a:s=(t-e)/l+(e>t?6:0);break;case t:s=(e-a)/l+2;break;case e:s=(a-t)/l+4}s/=6}return s=g(360*s),o=g(100*o),i=g(100*i),[s,o,i]},c=k.hue2rgb=function(r,a,t){return 0>t&&(t+=1),t>1&&(t-=1),1/6>t?r+6*(a-r)*t:.5>t?a:2/3>t?r+(a-r)*(2/3-t)*6:r},h=k.hslToRgb=function(){var r,a,t,e,s,o,i,l,n;return r=arguments,"number"==typeof r[0]?(s=r[0]/360,o=r[1]/100,i=r[2]/100):(s=r[0][0]/360,o=r[0][1]/100,i=r[0][2]/100),0===o?a=t=e=i:(l=.5>i?i*(1+o):i+o-i*o,n=2*i-l,a=k.hue2rgb(n,l,s+1/3),t=k.hue2rgb(n,l,s),e=k.hue2rgb(n,l,s-1/3)),[g(255*a),g(255*t),g(255*e)]},p=k.rgbToHsb=function(r,a,t){var e,s,o,i,l,n;if(r/=255,a/=255,t/=255,e=Math.max(r,a,t),s=Math.min(r,a,t),l=e,n=e-s,i=0===e?0:n/e,e===s)o=0;else{switch(e){case r:o=(a-t)/n+(t>a?6:0);break;case a:o=(t-r)/n+2;break;case t:o=(r-a)/n+4}o/=6}return o=g(360*o),i=g(100*i),l=g(100*l),[o,i,l]},f=k.hsbToRgb=function(r,a,t){var e,s,o,i,l,n,d,c;return 0===t?[0,0,0]:(a/=100,t/=100,r/=60,i=Math.floor(r),l=r-i,n=t*(1-a),d=t*(1-a*l),c=t*(1-a*(1-l)),0===i?(e=t,s=c,o=n):1===i?(e=d,s=t,o=n):2===i?(e=n,s=t,o=c):3===i?(e=n,s=d,o=t):4===i?(e=c,s=n,o=t):5===i&&(e=t,s=n,o=d),e=Math.floor(255*e),s=Math.floor(255*s),o=Math.floor(255*o),[e,s,o])},v=k.hsbToHsl=function(r,a,t){return k.rgbToHsl(k.hsbToRgb(r,a,t))},u=k.hsvToHsl=k.hsbToHsl,L=k.hsvToRgb=k.hsbToRgb,o=k.ColorScheme=function(r,a){this.palette=[],void 0===a&&r instanceof Array?this.createFromColors(r):this.createFromAngles(r,a)};var M=o.prototype;return M.createFromColors=function(r){for(var a in r)r.hasOwnProperty(a)&&this.palette.push(new s(r[a]));return this.palette},M.createFromAngles=function(r,a){this.palette.push(new s(r));for(var t in a)if(a.hasOwnProperty(t)){var e=(this.palette[0].h+a[t])%360;this.palette.push(new s(k.hslToRgb([e,this.palette[0].s,this.palette[0].l])))}return this.palette},o.Compl=function(r){return new o(r,[180])},o.Triad=function(r){return new o(r,[120,240])},o.Tetrad=function(r){return new o(r,[60,180,240])},o.Analog=function(r){return new o(r,[-45,45])},o.Split=function(r){return new o(r,[150,210])},o.Accent=function(r){return new o(r,[-45,45,180])},k})}(jQuery); \ No newline at end of file
"+D+""+D+""+D+"
"+D+"