(function(e){function t(t){for(var c,l,r=t[0],i=t[1],u=t[2],s=0,f=[];sb){var p=e.nodeAt(o),m=p&&p.marks.find(a);if(!m||m!==l)break;s=o,r=p,o--}o=n+1,b=e.nodeSize-2;while(o-1||t.type===e},A=function(e,t){for(var n=e.depth;n>0;n--){var c=e.node(n);if(t(c))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:c}}},F=function(e){return function(t){return A(t.$from,e)}},R=function(e){return function(t){return F((function(t){return z(e,t)}))(t)}},P=function(e,t){var n=t.schema.nodes[e];return!!R(n)(t.selection)},H=function(e){var t,n,c=e.state,o=c.selection,a=c.doc,l=o.from,r=a.nodeAt(l)||a.nodeAt(l-1);return null!==(t=r)&&void 0!==t&&t.lastChild&&(r=r.lastChild),(null===(n=r)||void 0===n?void 0:n.marks)||[]},q=function(e,t,n){var c,o=Object(L["a"])(e);try{for(o.s();!(c=o.n()).done;){var a=c.value;if(a.type.name===t&&a.attrs[n])return a.attrs[n]}}catch(l){o.e(l)}finally{o.f()}return null},U=function(e,t){var n,c=Object(L["a"])(e);try{for(c.s();!(n=c.n()).done;){var o=n.value;if(o.type.name===t)return!0}}catch(a){c.e(a)}finally{c.f()}return!1},G=function(e,t){var n=e.selection,c=n.from,o=n.$from,a=n.to,l=n.empty;return l?t.isInSet(e.storedMarks||o.marks()):e.doc.rangeHasMark(c,a,t)},X=function(e,t){var n=e.state,c=n.selection,o=n.doc,a=c.from,l=c.to,r=!0,i="";return o.nodesBetween(a,l,(function(e){return r&&e.attrs[t]&&(r=!1,i=e.attrs[t]),r})),i},Y={color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left"},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(B["a"])(Object(B["a"])({},Y),t);var n=H(e),c=U(n,"strong"),o=U(n,"em"),a=U(n,"underline"),l=U(n,"strikethrough"),r=U(n,"superscript"),i=U(n,"subscript"),u=U(n,"code"),d=q(n,"forecolor","color")||t.color,s=q(n,"backcolor","backcolor")||t.backcolor,f=q(n,"fontsize","fontsize")||t.fontsize,b=q(n,"fontname","fontname")||t.fontname,p=q(n,"link","href")||"",m=X(e,"align")||t.align,v=P("bullet_list",e.state),O=P("ordered_list",e.state),j=P("blockquote",e.state);return{bold:c,em:o,underline:a,strikethrough:l,superscript:r,subscript:i,code:u,color:d,backcolor:s,fontsize:f,fontname:b,link:p,align:m,bulletList:v,orderedList:O,blockquote:j}},W=function(e){var t=H(e),n=q(t,"fontsize","fontsize")||Y.fontsize;return parseInt(n)},J={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",link:"",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},K=(n("99af"),n("fb6a"),n("a15b"),function(e){if("string"!==typeof e)return!1;var t="Arial";if(e.toLowerCase()===t.toLowerCase())return!0;var n=100,c=100,o=100,a="a",l=document.createElement("canvas"),r=l.getContext("2d");if(!r)return!1;l.width=c,l.height=o,r.textAlign="center",r.fillStyle="black",r.textBaseline="middle";var i=function(e){r.clearRect(0,0,c,o),r.font="".concat(n,"px ").concat(e,", ").concat(t),r.fillText(a,c/2,o/2);var l=r.getImageData(0,0,c,o).data;return[].slice.call(l).filter((function(e){return 0!==e}))};return i(t).join("")!==i(e).join("")}),Q=n("2909"),$=(n("d81d"),n("ac1f"),n("5319"),n("5b81"),n("a434"),n("c740"),n("66cb")),ee=n.n($),te=n("2ef0"),ne=[{id:"test-slide-1",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"idn7Mx",left:355,top:65.25,width:585,height:188,lineHeight:1.2,content:"PPTIST
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"基于 Vue 3.x + TypeScript 的在线演示文稿应用
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}},{id:"test-slide-2",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"#5b9bd5",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"#fff"}},{id:"test-slide-3",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"#5b9bd5",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"感谢观看
",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333",wordSpace:5}],background:{type:"solid",color:"#fff"}}],ce={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff"},oe=[{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"请在此处输入副标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"{{themeColor}}",style:"solid",width:2}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"在此处添加标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"在此处添加副标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"{{themeColor}}",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"感谢观看
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:5}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"MZVO1kkj",elements:[{type:"shape",id:"cql0h8",left:0,top:0,width:352.59259259259255,height:562.5,viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"_RTaF4",left:171.4814814814814,top:100.13888888888887,width:362.22222222222223,height:362.22222222222223,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"rgba(255,255,255,0)",fixedRatio:!1,rotate:0,outline:{width:10,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"UZfo8N",left:216.66666666666663,top:145.32407407407408,width:271.85185185185185,height:271.85185185185185,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0,text:{content:"01
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"ysqtBg",left:561.4814814814814,top:100.1388888888889,width:359.25925925925924,height:80,content:"在此处输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"lXsoHa",left:572.5925925925925,top:202.3611111111111,width:257.77777777777777,height:260,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",lineHeight:2,fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"EBBnTr",left:360.5996472663139,top:141.8496472663139,width:278.80070546737215,height:278.80070546737215,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:0,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"gDIWDH",left:456.4373897707231,top:98.287037037037,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"1
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"DUWT7E",left:317.037037037037,top:237.68738977072314,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"4
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"pbhn38",left:456.43738977072303,top:377.08774250440916,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"3
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"CvMKrO",left:595.8377425044091,top:237.6873897707231,width:87.12522045855381,height:87.12522045855381,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"2
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"adudHB",left:402.962962962963,top:39.39814814814815,width:194.07407407407408,height:50,content:"在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"9UpDwg",left:402.962962962963,top:473.1018518518518,width:194.07407407407408,height:50,content:"在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"GERdpB",left:111.48148148148151,top:256.25,width:194.07407407407408,height:50,content:"在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"G5qoho",left:691.1111111111111,top:256.25,width:194.07407407407408,height:50,content:"在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"shape",id:"vdZcI6",left:415.18518518518516,top:196.4351851851852,width:169.62962962962962,height:169.62962962962962,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"tYUmrx",left:156.66666666666683,top:149.02777777777771,width:264.4444444444445,height:264.4444444444445,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"01
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"0GVHf8",left:342.2222222222223,top:217.17592592592587,width:128.14814814814812,height:128.14814814814812,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0},{type:"text",id:"BO33Sv",left:378.8888888888889,top:235.24999999999994,width:464.4444444444444,height:92,content:"在此处添加标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"1.请输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"2.请输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"1.请输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"2.请输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"3.请输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"4.请输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"在此处输入内容
在此处输入内容
在此处输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"请在此处输入标题
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:8,fill:"{{themeColor}}"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"请在此处输入内容1
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"请在此处输入内容2
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"请在此处输入内容3
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"请在此处输入内容4
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"SUWirT",left:73.8888888888889,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"1
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"YjzN1M",left:148.70370370370372,top:64.21296296296302,width:323.7037037037037,height:120,content:"在此输入内容
在此输入内容
在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"fS09I7",left:527.5925925925926,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"2
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"qCnfB1",left:602.4074074074074,top:64.21296296296302,width:323.7037037037037,height:120,content:"在此输入内容
在此输入内容
在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"difAAT",left:73.8888888888889,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"3
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"EUlvMo",left:148.70370370370372,top:221.25000000000003,width:323.7037037037037,height:120,content:"在此输入内容
在此输入内容
在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"US_9jB",left:527.5925925925926,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"4
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"243MnQ",left:602.4074074074074,top:221.25000000000003,width:323.7037037037037,height:120,content:"在此输入内容
在此输入内容
在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"Y_KUj0",left:73.8888888888889,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"5
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"9GglMe",left:148.70370370370372,top:378.287037037037,width:323.7037037037037,height:120,content:"在此输入内容
在此输入内容
在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"eSInje",left:527.5925925925926,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"6
",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"0S3yUg",left:602.4074074074074,top:378.287037037037,width:323.7037037037037,height:120,content:"在此输入内容
在此输入内容
在此输入内容
",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}}],ae=Object(g["b"])("slides",{state:function(){return{theme:ce,slides:ne,slideIndex:0,viewportRatio:.5625}},getters:{currentSlide:function(e){return e.slides[e.slideIndex]},currentSlideAnimations:function(e){var t=e.slides[e.slideIndex];if(null===t||void 0===t||!t.animations)return[];var n=t.elements,c=n.map((function(e){return e.id}));return t.animations.filter((function(e){return c.includes(e.elId)}))},formatedAnimations:function(e){var t=e.slides[e.slideIndex];if(null===t||void 0===t||!t.animations)return[];var n,c=t.elements,o=c.map((function(e){return e.id})),a=t.animations.filter((function(e){return o.includes(e.elId)})),l=[],r=Object(L["a"])(a);try{var i=function(){var e=n.value;if("click"!==e.trigger&&l.length){if("meantime"===e.trigger){var t=l[l.length-1];t.animations=t.animations.filter((function(t){return t.elId!==e.elId})),t.animations.push(e),l[l.length-1]=t}else if("auto"===e.trigger){var c=l[l.length-1];c.autoNext=!0,l[l.length-1]=c,l.push({animations:[e],autoNext:!1})}}else l.push({animations:[e],autoNext:!1})};for(r.s();!(n=r.n()).done;)i()}catch(u){r.e(u)}finally{r.f()}return l},layouts:function(e){var t=e.theme,n=t.themeColor,c=t.fontColor,o=t.fontName,a=t.backgroundColor,l=ee()(c).isDark()?"rgba(230, 230, 230, 0.5)":"rgba(180, 180, 180, 0.5)",r=JSON.stringify(oe).replaceAll("{{themeColor}}",n).replaceAll("{{fontColor}}",c).replaceAll("{{fontName}}",o).replaceAll("{{backgroundColor}}",a).replaceAll("{{subColor}}",l);return JSON.parse(r)}},actions:{setTheme:function(e){this.theme=Object(B["a"])(Object(B["a"])({},this.theme),e)},setViewportRatio:function(e){this.viewportRatio=e},setSlides:function(e){this.slides=e},addSlide:function(e){var t,n=Array.isArray(e)?e:[e],c=this.slideIndex+1;(t=this.slides).splice.apply(t,[c,0].concat(Object(Q["a"])(n))),this.slideIndex=c},updateSlide:function(e){var t=this.slideIndex;this.slides[t]=Object(B["a"])(Object(B["a"])({},this.slides[t]),e)},deleteSlide:function(e){for(var t=this,n=Array.isArray(e)?e:[e],c=[],o=function(e){var o=t.slides.findIndex((function(t){return t.id===n[e]}));c.push(o)},a=0;ar&&(l=r),this.slideIndex=l,this.slides=this.slides.filter((function(e){return!n.includes(e.id)}))},updateSlideIndex:function(e){this.slideIndex=e},addElement:function(e){var t=Array.isArray(e)?e:[e],n=this.slides[this.slideIndex].elements,c=[].concat(Object(Q["a"])(n),Object(Q["a"])(t));this.slides[this.slideIndex].elements=c},deleteElement:function(e){var t=Array.isArray(e)?e:[e],n=this.slides[this.slideIndex].elements,c=n.filter((function(e){return!t.includes(e.id)}));this.slides[this.slideIndex].elements=c},updateElement:function(e){var t=e.id,n=e.props,c="string"===typeof t?[t]:t,o=this.slideIndex,a=this.slides[o],l=a.elements.map((function(e){return c.includes(e.id)?Object(B["a"])(Object(B["a"])({},e),n):e}));this.slides[o].elements=l},removeElementProps:function(e){var t=e.id,n=e.propName,c="string"===typeof n?[n]:n,o=this.slideIndex,a=this.slides[o],l=a.elements.map((function(e){return e.id===t?Object(te["omit"])(e,c):e}));this.slides[o].elements=l}}}),le=Object(x["a"])("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),re=le(10),ie=Object(g["b"])("main",{state:function(){return{activeElementIdList:[],handleElementId:"",activeGroupElementId:"",canvasPercentage:90,canvasScale:1,canvasDragged:!1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,gridLineSize:0,showRuler:!1,creatingElement:null,availableFonts:I,toolbarState:c.SLIDE_DESIGN,clipingImageElementId:"",richTextAttrs:J,selectedTableCells:[],isScaling:!1,selectedSlidesIndex:[],dialogForExport:"",databaseId:re}},getters:{activeElementList:function(e){var t=ae(),n=t.currentSlide;return n&&n.elements?n.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=ae(),n=t.currentSlide;return n&&n.elements&&n.elements.find((function(t){return e.handleElementId===t.id}))||null}},actions:{setActiveElementIdList:function(e){1===e.length?this.handleElementId=e[0]:this.handleElementId="",this.activeElementIdList=e},setHandleElementId:function(e){this.handleElementId=e},setActiveGroupElementId:function(e){this.activeGroupElementId=e},setCanvasPercentage:function(e){this.canvasPercentage=e},setCanvasScale:function(e){this.canvasScale=e},setCanvasDragged:function(e){this.canvasDragged=e},setThumbnailsFocus:function(e){this.thumbnailsFocus=e},setEditorareaFocus:function(e){this.editorAreaFocus=e},setDisableHotkeysState:function(e){this.disableHotkeys=e},setGridLineSize:function(e){this.gridLineSize=e},setRulerState:function(e){this.showRuler=e},setCreatingElement:function(e){this.creatingElement=e},setAvailableFonts:function(){this.availableFonts=I.filter((function(e){return K(e.value)}))},setToolbarState:function(e){this.toolbarState=e},setClipingImageElementId:function(e){this.clipingImageElementId=e},setRichtextAttrs:function(e){this.richTextAttrs=e},setSelectedTableCells:function(e){this.selectedTableCells=e},setScalingState:function(e){this.isScaling=e},updateSelectedSlidesIndex:function(e){this.selectedSlidesIndex=e},setDialogForExport:function(e){this.dialogForExport=e}}}),ue=n("1da1"),de=(n("ddb0"),n("96cf"),n("d4ec")),se=n("257e"),fe=n("262e"),be=n("2caf"),pe=n("ade3"),me=n("3835"),ve=(n("1276"),n("4dec")),Oe="PPTIST_DISCARDED_DB",je="PPTist",he=function(){var e=Object(ue["a"])(regeneratorRuntime.mark((function e(){var t,n,c,o,a,l,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=(new Date).getTime(),n=localStorage.getItem(Oe),c=n?JSON.parse(n):[],e.next=5,ve["a"].getDatabaseNames();case 5:o=e.sent,a=o.filter((function(e){if(-1===e.indexOf(je))return!1;var n=e.split("_"),o=Object(me["a"])(n,3),a=o[0],l=o[1],r=o[2];return a!==je||!l||!r||(!!c.includes(l)||t-+r>=432e5)})),l=Object(L["a"])(a);try{for(l.s();!(r=l.n()).done;)i=r.value,ve["a"].delete(i)}catch(u){l.e(u)}finally{l.f()}localStorage.removeItem(Oe);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ye=function(e){Object(fe["a"])(n,e);var t=Object(be["a"])(n);function n(){var e;return Object(de["a"])(this,n),e=t.call(this,"".concat(je,"_").concat(re,"_").concat((new Date).getTime())),Object(pe["a"])(Object(se["a"])(e),"snapshots",void 0),e.version(1).stores({snapshots:"++id"}),e.snapshots=e.table("snapshots"),e}return n}(ve["a"]),ge=new ye,xe=Object(g["b"])("snapshot",{state:function(){return{snapshotCursor:-1,snapshotLength:0}},getters:{canUndo:function(e){return e.snapshotCursor>0},canRedo:function(e){return e.snapshotCursor=0&&e.snapshotCursorr&&(o.push(c[0]),l--),l>=2&&ge.snapshots.update(c[l-2],{index:n.slideIndex}),t.next=15,ge.snapshots.bulkDelete(o);case 15:e.setSnapshotCursor(l-1),e.setSnapshotLength(l);case 17:case"end":return t.stop()}}),t)})))()},unDo:function(){var e=this;return Object(ue["a"])(regeneratorRuntime.mark((function t(){var n,c,o,a,l,r,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.snapshotCursor<=0)){t.next=2;break}return t.abrupt("return");case 2:return n=ae(),c=ie(),o=e.snapshotCursor-1,t.next=7,ge.snapshots.orderBy("id").toArray();case 7:a=t.sent,l=a[o],r=l.index,i=l.slides,u=r>i.length-1?i.length-1:r,n.setSlides(i),n.updateSlideIndex(u),e.setSnapshotCursor(o),c.setActiveElementIdList([]);case 15:case"end":return t.stop()}}),t)})))()},reDo:function(){var e=this;return Object(ue["a"])(regeneratorRuntime.mark((function t(){var n,c,o,a,l,r,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.snapshotCursor>=e.snapshotLength-1)){t.next=2;break}return t.abrupt("return");case 2:return n=ae(),c=ie(),o=e.snapshotCursor+1,t.next=7,ge.snapshots.orderBy("id").toArray();case 7:a=t.sent,l=a[o],r=l.index,i=l.slides,u=r>i.length-1?i.length-1:r,n.setSlides(i),n.updateSlideIndex(u),e.setSnapshotCursor(o),c.setActiveElementIdList([]);case 15:case"end":return t.stop()}}),t)})))()}}}),ke=Object(g["b"])("keyboard",{state:function(){return{ctrlKeyState:!1,shiftKeyState:!1,spaceKeyState:!1}},getters:{ctrlOrShiftKeyActive:function(e){return e.ctrlKeyState||e.shiftKeyState}},actions:{setCtrlKeyState:function(e){this.ctrlKeyState=e},setShiftKeyState:function(e){this.shiftKeyState=e},setSpaceKeyState:function(e){this.spaceKeyState=e}}}),Ce=Object(g["b"])("screen",{state:function(){return{screening:!1}},actions:{setScreening:function(e){this.screening=e}}}),Ne=(n("466d"),function(e,t){return Object(te["padStart"])(""+e,t,"0")}),Ee=function(){return!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i)};(function(e){e["UP"]="up",e["DOWN"]="down",e["TOP"]="top",e["BOTTOM"]="bottom"})(k||(k={})),function(e){e["TOP"]="top",e["BOTTOM"]="bottom",e["LEFT"]="left",e["RIGHT"]="right",e["VERTICAL"]="vertical",e["HORIZONTAL"]="horizontal",e["CENTER"]="center"}(C||(C={})),function(e){e["T"]="top",e["B"]="bottom",e["L"]="left",e["R"]="right"}(N||(N={})),function(e){e["LEFT_TOP"]="left-top",e["TOP"]="top",e["RIGHT_TOP"]="right-top",e["LEFT"]="left",e["RIGHT"]="right",e["LEFT_BOTTOM"]="left-bottom",e["BOTTOM"]="bottom",e["RIGHT_BOTTOM"]="right-bottom"}(E||(E={})),function(e){e["START"]="start",e["END"]="end",e["C"]="ctrl",e["C1"]="ctrl1",e["C2"]="ctrl2"}(w||(w={})),function(e){e["C"]="C",e["X"]="X",e["Z"]="Z",e["Y"]="Y",e["A"]="A",e["G"]="G",e["L"]="L",e["F"]="F",e["D"]="D",e["B"]="B",e["P"]="P",e["MINUS"]="-",e["EQUAL"]="=",e["DIGIT_0"]="0",e["DELETE"]="DELETE",e["UP"]="ARROWUP",e["DOWN"]="ARROWDOWN",e["LEFT"]="ARROWLEFT",e["RIGHT"]="ARROWRIGHT",e["ENTER"]="ENTER",e["SPACE"]=" ",e["TAB"]="TAB",e["BACKSPACE"]="BACKSPACE",e["ESC"]="ESCAPE",e["PAGEUP"]="PAGEUP",e["PAGEDOWN"]="PAGEDOWN",e["F5"]="F5"}(V||(V={}));var we,Ve,Ie,Se=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打印",value:"Ctrl + P"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"},{label:"调整画笔笔触大小",value:"鼠标滚轮"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑ / ←"},{label:"下一页(未选中元素)",value:"↓ / →"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"删除线",value:"Ctrl + D"}]}],Be=(n("3b18"),n("f64c")),Le=(n("a630"),n("3ca3"),n("b311")),_e=n.n(Le),Te=(n("25f0"),n("3452")),Me=n.n(Te),De="pptist",ze=function(e){return Me.a.AES.encrypt(e,De).toString()},Ae=function(e){var t=Me.a.AES.decrypt(e,De);return t.toString(Me.a.enc.Utf8)},Fe=function(e){return new Promise((function(t,n){var c=document.createElement("button"),o=new _e.a(c,{text:function(){return e},action:function(){return"copy"},container:document.body});o.on("success",(function(e){o.destroy(),t(e)})),o.on("error",(function(e){o.destroy(),n(e)})),document.body.appendChild(c),c.click(),document.body.removeChild(c)}))},Re=function(){return new Promise((function(e,t){var n;null!==(n=navigator.clipboard)&&void 0!==n&&n.readText?navigator.clipboard.readText().then((function(n){return n||t("剪贴板为空或者不包含文本"),e(n)})):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}))},Pe=function(e){var t;try{t=JSON.parse(Ae(e))}catch(n){t=e}return t},He=function(e){var t=e.split("\r\n");""===t[t.length-1]&&t.pop();var n=-1,c=[];for(var o in t){if(c[o]=t[o].split("\t"),1===c[o].length)return null;if(-1===n)n=c[o].length;else if(n!==c[o].length)return null}return c},qe=(n("159b"),function(e){var t=e.left,n=e.top,c=e.width,o=e.height,a=e.rotate,l=void 0===a?0:a,r=Math.sqrt(Math.pow(c,2)+Math.pow(o,2))/2,i=180*Math.atan(o/c)/Math.PI,u=(180-l-i)*Math.PI/180,d=(i-l)*Math.PI/180,s=t+c/2,f=n+o/2,b=[s+r*Math.cos(u),s+r*Math.cos(d),s-r*Math.cos(u),s-r*Math.cos(d)],p=[f-r*Math.sin(u),f-r*Math.sin(d),f+r*Math.sin(u),f+r*Math.sin(d)];return{xRange:[Math.min.apply(Math,b),Math.max.apply(Math,b)],yRange:[Math.min.apply(Math,p),Math.max.apply(Math,p)]}}),Ue=function(e){var t=qe({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),n=t.xRange,c=t.yRange,o=qe({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=o.xRange,l=o.yRange;return{offsetX:a[0]-n[0],offsetY:l[0]-c[0]}},Ge=function(e){var t,n,c,o;if("line"===e.type)t=e.left,n=e.left+Math.max(e.start[0],e.end[0]),c=e.top,o=e.top+Math.max(e.start[1],e.end[1]);else if("rotate"in e&&e.rotate){var a=e.left,l=e.top,r=e.width,i=e.height,u=e.rotate,d=qe({left:a,top:l,width:r,height:i,rotate:u}),s=d.xRange,f=d.yRange;t=s[0],n=s[1],c=f[0],o=f[1]}else t=e.left,n=e.left+e.width,c=e.top,o=e.top+e.height;return{minX:t,maxX:n,minY:c,maxY:o}},Xe=function(e){var t=[],n=[],c=[],o=[];e.forEach((function(e){var a=Ge(e),l=a.minX,r=a.maxX,i=a.minY,u=a.maxY;t.push(l),n.push(i),c.push(r),o.push(u)}));var a=Math.min.apply(Math,t),l=Math.max.apply(Math,c),r=Math.min.apply(Math,n),i=Math.max.apply(Math,o);return{minX:a,maxX:l,minY:r,maxY:i}},Ye=function(e){var t=[];return e.forEach((function(e){var n=t.findIndex((function(t){return t.value===e.value}));if(-1===n)t.push(e);else{var c=t[n],o=Math.min(c.range[0],e.range[0]),a=Math.max(c.range[1],e.range[1]),l=[o,a],r={value:e.value,range:l};t[n]=r}})),t},Ze=function(e){var t,n={},c=Object(L["a"])(e);try{for(c.s();!(t=c.n()).done;){var o=t.value;n[o.id]=Object(x["b"])(10)}}catch(a){c.e(a)}finally{c.f()}return n},We=function(e){var t,n={},c={},o=Object(L["a"])(e);try{for(o.s();!(t=o.n()).done;){var a=t.value,l=a.groupId;l&&!n[l]&&(n[l]=Object(x["b"])(10)),c[a.id]=Object(x["b"])(10)}}catch(r){o.e(r)}finally{o.f()}return{groupIdMap:n,elIdMap:c}},Je=function(e){var t=ee()(e);return[t.setAlpha(.3).toRgbString(),t.setAlpha(.1).toRgbString()]},Ke=function(e){var t=e.start.join(","),n=e.end.join(",");if(e.broken){var c=e.broken.join(",");return"M".concat(t," L").concat(c," L").concat(n)}if(e.curve){var o=e.curve.join(",");return"M".concat(t," Q").concat(o," ").concat(n)}if(e.cubic){var a=Object(me["a"])(e.cubic,2),l=a[0],r=a[1],i=l.join(","),u=r.join(",");return"M".concat(t," C").concat(i," ").concat(u," ").concat(n)}return"M".concat(t," L").concat(n)},Qe=n("53ca"),$e=function(e){var t,n=e.replace(/[\n\r]+/g,"
"),c=n.split("
"),o="",a=Object(L["a"])(c);try{for(a.s();!(t=a.n()).done;){var l=t.value;l&&(o+="".concat(l,"
"))}}catch(r){a.e(r)}finally{a.f()}return o},et=(n("cb29"),function(e){return new Promise((function(t){var n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=function(){var e=n.clientWidth,c=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:e,height:c})},n.onerror=function(){n.onload=null,n.onerror=null}}))}),tt=function(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(){t(n.result)})),n.readAsDataURL(e)}))},nt=1e3;(function(e){e["ROUND_RECT"]="roundRect",e["ROUND_RECT_DIAGONAL"]="roundRectDiagonal",e["ROUND_RECT_SINGLE"]="roundRectSingle",e["ROUND_RECT_SAMESIDE"]="roundRectSameSide",e["CUT_RECT_DIAGONAL"]="cutRectDiagonal",e["CUT_RECT_SINGLE"]="cutRectSingle",e["CUT_RECT_SAMESIDE"]="cutRectSameSide",e["MESSAGE"]="message",e["ROUND_MESSAGE"]="roundMessage",e["L"]="L",e["RING_RECT"]="ringRect",e["PLUS"]="plus",e["TRIANGLE"]="triangle",e["PARALLELOGRAM_LEFT"]="parallelogramLeft",e["PARALLELOGRAM_RIGHT"]="parallelogramRight",e["TRAPEZOID"]="trapezoid",e["BULLET"]="bullet",e["INDICATOR"]="indicator"})(we||(we={})),function(e){e["TEXT"]="text",e["IMAGE"]="image",e["SHAPE"]="shape",e["LINE"]="line",e["CHART"]="chart",e["TABLE"]="table",e["LATEX"]="latex",e["VIDEO"]="video",e["AUDIO"]="audio"}(Ve||(Ve={}));var ct=(Ie={},Object(pe["a"])(Ie,we.ROUND_RECT,{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M ".concat(c," 0 L ").concat(e-c," 0 Q ").concat(e," 0 ").concat(e," ").concat(c," L ").concat(e," ").concat(t-c," Q ").concat(e," ").concat(t," ").concat(e-c," ").concat(t," L ").concat(c," ").concat(t," Q 0 ").concat(t," 0 ").concat(t-c," L 0 ").concat(c," Q 0 0 ").concat(c," 0 Z")}}),Object(pe["a"])(Ie,we.CUT_RECT_DIAGONAL,{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 ".concat(t-c," L 0 0 L ").concat(e-c," 0 L ").concat(e," ").concat(c," L ").concat(e," ").concat(t," L ").concat(c," ").concat(t," Z")}}),Object(pe["a"])(Ie,we.CUT_RECT_SINGLE,{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 ".concat(t," L 0 0 L ").concat(e-c," 0 L ").concat(e," ").concat(c," L ").concat(e," ").concat(t," Z")}}),Object(pe["a"])(Ie,we.CUT_RECT_SAMESIDE,{editable:!0,defaultValue:.2,range:[0,.5],relative:"left",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 ".concat(c," L ").concat(c," 0 L ").concat(e-c," 0 L ").concat(e," ").concat(c," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}}),Object(pe["a"])(Ie,we.ROUND_RECT_DIAGONAL,{editable:!0,defaultValue:.125,range:[0,1],relative:"right",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 0 L ".concat(e-c," 0 Q ").concat(e," 0 ").concat(e," ").concat(c," L ").concat(e," ").concat(t," L ").concat(c," ").concat(t," Q 0 ").concat(t," 0 ").concat(t-c," L 0 0 Z")}}),Object(pe["a"])(Ie,we.ROUND_RECT_SINGLE,{editable:!0,defaultValue:.125,range:[0,1],relative:"right",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 0 L ".concat(e-c," 0 Q ").concat(e," 0 ").concat(e," ").concat(c," L ").concat(e," ").concat(t," L 0 ").concat(t," L 0 0 Z")}}),Object(pe["a"])(Ie,we.ROUND_RECT_SAMESIDE,{editable:!0,defaultValue:.125,range:[0,.5],relative:"left",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 ".concat(c," Q 0 0 ").concat(c," 0 L ").concat(e-c," 0 Q ").concat(e," 0 ").concat(e," ").concat(c," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}}),Object(pe["a"])(Ie,we.MESSAGE,{formula:function(e,t){var n=.2*e,c=.2*t;return"M 0 0 L ".concat(e," 0 L ").concat(e," ").concat(t-c," L ").concat(e/2," ").concat(t-c," L ").concat(e/2-n," ").concat(t," L ").concat(e/2-n," ").concat(t-c," L 0 ").concat(t-c," Z")}}),Object(pe["a"])(Ie,we.ROUND_MESSAGE,{formula:function(e,t){var n=.125*Math.min(e,t),c=.2*e,o=.2*t;return"M 0 ".concat(n," Q 0 0 ").concat(n," 0 L ").concat(e-n," 0 Q ").concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(t-n-o," Q ").concat(e," ").concat(t-o," ").concat(e-n," ").concat(t-o," L ").concat(e/2," ").concat(t-o," L ").concat(e/2-c," ").concat(t," L ").concat(e/2-c," ").concat(t-o," L ").concat(n," ").concat(t-o," Q 0 ").concat(t-o," 0 ").concat(t-n-o," L 0 ").concat(n," Z")}}),Object(pe["a"])(Ie,we.L,{editable:!0,defaultValue:.25,range:[.1,.9],relative:"left",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 0 L 0 ".concat(t," L ").concat(e," ").concat(t," L ").concat(e," ").concat(t-c," L ").concat(c," ").concat(t-c," L ").concat(c," 0 Z")}}),Object(pe["a"])(Ie,we.RING_RECT,{editable:!0,defaultValue:.25,range:[.1,.45],relative:"left",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M 0 0 ".concat(e," 0 ").concat(e," ").concat(t," L 0 ").concat(t," L 0 0 Z M ").concat(c," ").concat(c," L ").concat(c," ").concat(t-c," L ").concat(e-c," ").concat(t-c," L ").concat(e-c," ").concat(c," Z")}}),Object(pe["a"])(Ie,we.PLUS,{editable:!0,defaultValue:.25,range:[.1,.9],relative:"center",getBaseSize:function(e,t){return Math.min(e,t)},formula:function(e,t,n){var c=Math.min(e,t)*n;return"M ".concat(e/2-c/2," 0 L ").concat(e/2-c/2," ").concat(t/2-c/2," L 0 ").concat(t/2-c/2," L 0 ").concat(t/2+c/2," L ").concat(e/2-c/2," ").concat(t/2+c/2," L ").concat(e/2-c/2," ").concat(t," L ").concat(e/2+c/2," ").concat(t," L ").concat(e/2+c/2," ").concat(t/2+c/2," L ").concat(e," ").concat(t/2+c/2," L ").concat(e," ").concat(t/2-c/2," L ").concat(e/2+c/2," ").concat(t/2-c/2," L ").concat(e/2+c/2," 0 Z")}}),Object(pe["a"])(Ie,we.TRIANGLE,{editable:!0,defaultValue:.5,range:[0,1],relative:"left",getBaseSize:function(e,t){return e},formula:function(e,t,n){var c=e*n;return"M ".concat(c," 0 L 0 ").concat(t," L ").concat(e," ").concat(t," Z")}}),Object(pe["a"])(Ie,we.PARALLELOGRAM_LEFT,{editable:!0,defaultValue:.25,range:[0,.9],relative:"left",getBaseSize:function(e,t){return e},formula:function(e,t,n){var c=e*n;return"M ".concat(c," 0 L ").concat(e," 0 L ").concat(e-c," ").concat(t," L 0 ").concat(t," Z")}}),Object(pe["a"])(Ie,we.PARALLELOGRAM_RIGHT,{editable:!0,defaultValue:.25,range:[0,.9],relative:"right",getBaseSize:function(e,t){return e},formula:function(e,t,n){var c=e*n;return"M 0 0 L ".concat(e-c," 0 L ").concat(e," ").concat(t," L ").concat(c," ").concat(t," Z")}}),Object(pe["a"])(Ie,we.TRAPEZOID,{editable:!0,defaultValue:.25,range:[0,.5],relative:"left",getBaseSize:function(e,t){return e},formula:function(e,t,n){var c=e*n;return"M ".concat(c," 0 L ").concat(e-c," 0 L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}}),Object(pe["a"])(Ie,we.BULLET,{editable:!0,defaultValue:.2,range:[0,1],relative:"top",getBaseSize:function(e,t){return t},formula:function(e,t,n){var c=t*n;return"M ".concat(e/2," 0 L 0 ").concat(c," L 0 ").concat(t," L ").concat(e," ").concat(t," L ").concat(e," ").concat(c," Z")}}),Object(pe["a"])(Ie,we.INDICATOR,{editable:!0,defaultValue:.2,range:[0,.9],relative:"right",getBaseSize:function(e,t){return e},formula:function(e,t,n){var c=e*n;return"M ".concat(e," ").concat(t/2," L ").concat(e-c," 0 L 0 0 L ").concat(c," ").concat(t/2," L 0 ").concat(t," L ").concat(e-c," ").concat(t," Z")}}),Ie),ot=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:we.ROUND_RECT},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:we.CUT_RECT_DIAGONAL},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:we.CUT_RECT_SINGLE},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:we.CUT_RECT_SAMESIDE},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 50 200 Q 0 200 0 150 L 0 0 Z",pathFormula:we.ROUND_RECT_DIAGONAL},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:we.ROUND_RECT_SINGLE},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:we.ROUND_RECT_SAMESIDE}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:we.TRIANGLE},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:we.PARALLELOGRAM_LEFT},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:we.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:we.TRAPEZOID},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:we.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:we.INDICATOR},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:we.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:we.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:we.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:we.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:we.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0}]}],at={bar:"bar",horizontalBar:"bar",line:"line",area:"line",scatter:"line",pie:"pie",ring:"pie"},lt=function(){var e=xe(),t=Object(te["debounce"])((function(){e.addSnapshot()}),300,{trailing:!0}),n=Object(te["throttle"])((function(){e.reDo()}),100,{leading:!0,trailing:!1}),c=Object(te["throttle"])((function(){e.unDo()}),100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:c}},rt=function(){var e=ie(),t=ae(),n=Object(g["c"])(e),c=n.creatingElement,o=Object(g["c"])(t),a=o.theme,l=o.viewportRatio,r=lt(),i=r.addHistorySnapshot,u=function(n,o){t.addElement(n),e.setActiveElementIdList([n.id]),c.value&&e.setCreatingElement(null),setTimeout((function(){e.setEditorareaFocus(!0)}),0),o&&o(),i()},d=function(e){et(e).then((function(t){var n=t.width,c=t.height,o=c/n;ont?(n=nt,c=n*o):c>nt*l.value&&(c=nt*l.value,n=c/o),u({type:"image",id:Object(x["b"])(10),src:e,width:n,height:c,left:(nt-n)/2,top:(nt*l.value-c)/2,fixedRatio:!0,rotate:0})}))},s=function(e){var t={type:"chart",id:Object(x["b"])(10),chartType:at[e],left:300,top:81.25,width:400,height:400,rotate:0,themeColor:[a.value.themeColor],gridColor:a.value.fontColor,data:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1"],series:[[12,19,5,2,18]]}},n={};"horizontalBar"===e?n={horizontalBars:!0}:"area"===e?n={showArea:!0}:"scatter"===e?n={showLine:!1}:"ring"===e&&(n={donut:!0}),u(Object(B["a"])(Object(B["a"])({},t),{},{options:n}))},f=function(e,t){for(var n={fontname:a.value.fontName,color:a.value.fontColor},c=[],o=0;o0?(o.value.length&&e.setActiveElementIdList([]),t.updateSlideIndex(u.value-1)):n===V.DOWN&&u.value0&&void 0!==arguments[0]?arguments[0]:f.value;r.value.length===n.length?h():t.deleteSlide(n),e.updateSelectedSlidesIndex([]),j()},_=function(){var e=Object(Q["a"])(f.value);C(),S(e)},T=function(){var t=Array.from(Array(r.value.length),(function(e,t){return t}));e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(t)};return{resetSlides:h,updateSlideIndex:k,copySlide:C,pasteSlide:N,createSlide:E,createSlideByTemplate:w,copyAndPasteSlide:I,deleteSlide:S,cutSlide:_,selectAllSlide:T}},st=function(){var e=ie(),t=ae(),n=Object(g["c"])(e),c=n.activeElementIdList,o=Object(g["c"])(t),a=o.currentSlide,l=lt(),r=l.addHistorySnapshot,i=function(){var n,o=JSON.parse(JSON.stringify(a.value.elements)),l=Object(L["a"])(o);try{for(l.s();!(n=l.n()).done;){var i=n.value;c.value.includes(i.id)&&(i.lock=!0)}}catch(u){l.e(u)}finally{l.f()}t.updateSlide({elements:o}),e.setActiveElementIdList([]),r()},u=function(n){var c=JSON.parse(JSON.stringify(a.value.elements));if(n.groupId){var o,l=[],i=Object(L["a"])(c);try{for(i.s();!(o=i.n()).done;){var u=o.value;u.groupId===n.groupId&&(u.lock=!1,l.push(u.id))}}catch(b){i.e(b)}finally{i.f()}t.updateSlide({elements:c}),e.setActiveElementIdList(l)}else{var d,s=Object(L["a"])(c);try{for(s.s();!(d=s.n()).done;){var f=d.value;if(f.id===n.id){f.lock=!1;break}}}catch(b){s.e(b)}finally{s.f()}t.updateSlide({elements:c}),e.setActiveElementIdList([n.id])}r()};return{lockElement:i,unlockElement:u}},ft=function(){var e=ie(),t=ae(),n=Object(g["c"])(e),c=n.activeElementIdList,o=n.activeGroupElementId,a=Object(g["c"])(t),l=a.currentSlide,r=lt(),i=r.addHistorySnapshot,u=function(){if(c.value.length){var n=[];n=o.value?l.value.elements.filter((function(e){return e.id!==o.value})):l.value.elements.filter((function(e){return!c.value.includes(e.id)})),e.setActiveElementIdList([]),t.updateSlide({elements:n}),i()}},d=function(){l.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),i())};return{deleteElement:u,deleteAllElements:d}},bt=function(){var e=ie(),t=ae(),n=Object(g["c"])(e),c=n.activeElementIdList,o=n.activeElementList,a=n.handleElementId,l=Object(g["c"])(t),r=l.currentSlide,i=lt(),u=i.addHistorySnapshot,d=Object(y["computed"])((function(){if(o.value.length<2)return!1;var e=o.value[0].groupId;if(!e)return!0;var t=o.value.every((function(t){return(t.groupId&&t.groupId)===e}));return!t})),s=function(){var e;if(o.value.length){var n,a=JSON.parse(JSON.stringify(r.value.elements)),l=Object(x["b"])(10),i=[],d=Object(L["a"])(a);try{for(d.s();!(n=d.n()).done;){var s=n.value;c.value.includes(s.id)&&(s.groupId=l,i.push(s))}}catch(m){d.e(m)}finally{d.f()}var f=a.findIndex((function(e){return e.id===i[i.length-1].id})),b=i.map((function(e){return e.id}));a=a.filter((function(e){return!b.includes(e.id)}));var p=f-i.length+1;(e=a).splice.apply(e,[p,0].concat(i)),t.updateSlide({elements:a}),u()}},f=function(){if(o.value.length){var n=o.value.some((function(e){return e.groupId}));if(n){var l,i=JSON.parse(JSON.stringify(r.value.elements)),d=Object(L["a"])(i);try{for(d.s();!(l=d.n()).done;){var s=l.value;c.value.includes(s.id)&&s.groupId&&delete s.groupId}}catch(b){d.e(b)}finally{d.f()}t.updateSlide({elements:i});var f=a.value?[a.value]:[];e.setActiveElementIdList(f),u()}}};return{canCombine:d,combineElements:s,uncombineElements:f}},pt=function(){var e=ie(),t=Object(g["c"])(e),n=t.activeElementIdList,c=t.activeElementList,o=ut(),a=o.pasteTextClipboardData,l=ft(),r=l.deleteElement,i=function(){if(n.value.length){var t=ze(JSON.stringify({type:"elements",data:c.value}));Fe(t).then((function(){e.setEditorareaFocus(!0)}))}},u=function(){i(),r()},d=function(){Re().then((function(e){a(e)})).catch((function(e){return Be["a"].warning(e)}))},s=function(){i(),d()};return{copyElement:i,cutElement:u,pasteElement:d,quickCopyElement:s}},mt=function(){var e=ie(),t=Object(g["c"])(ae()),n=t.currentSlide,c=function(){var t=n.value.elements.filter((function(e){return!e.lock})),c=t.map((function(e){return e.id}));e.setActiveElementIdList(c)};return{selectAllElement:c}},vt=function(){var e=ae(),t=Object(g["c"])(ie()),n=t.activeElementIdList,c=t.activeGroupElementId,o=Object(g["c"])(e),a=o.currentSlide,l=lt(),r=l.addHistorySnapshot,i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=[],i=function(e){var n=e.left,c=e.top;switch(t){case V.LEFT:n-=o;break;case V.RIGHT:n+=o;break;case V.UP:c-=o;break;case V.DOWN:c+=o;break;default:break}return Object(B["a"])(Object(B["a"])({},e),{},{left:n,top:c})};l=c.value?a.value.elements.map((function(e){return c.value===e.id?i(e):e})):a.value.elements.map((function(e){return n.value.includes(e.id)?i(e):e})),e.updateSlide({elements:l}),r()};return{moveElement:i}},Ot=function(){var e=ae(),t=Object(g["c"])(e),n=t.currentSlide,c=lt(),o=c.addHistorySnapshot,a=function(e,t){return{minLevel:e.findIndex((function(e){return e.id===t[0].id})),maxLevel:e.findIndex((function(e){return e.id===t[t.length-1].id}))}},l=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var c=n.filter((function(e){return e.groupId===t.groupId})),o=a(e,c),l=o.minLevel,r=o.maxLevel;if(r===e.length-1)return;var i=n[r+1],u=n.splice(l,c.length);if(i.groupId){var d=n.filter((function(e){return e.groupId===i.groupId}));n.splice.apply(n,[l+d.length,0].concat(Object(Q["a"])(u)))}else n.splice.apply(n,[l+1,0].concat(Object(Q["a"])(u)))}else{var s=e.findIndex((function(e){return e.id===t.id}));if(s===e.length-1)return;var f=n[s+1],b=n.splice(s,1)[0];if(f.groupId){var p=n.filter((function(e){return e.groupId===f.groupId}));n.splice(s+p.length,0,b)}else n.splice(s+1,0,b)}return n},r=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var c=n.filter((function(e){return e.groupId===t.groupId})),o=a(e,c),l=o.minLevel;if(0===l)return;var r=n[l-1],i=n.splice(l,c.length);if(r.groupId){var u=n.filter((function(e){return e.groupId===r.groupId}));n.splice.apply(n,[l-u.length,0].concat(Object(Q["a"])(i)))}else n.splice.apply(n,[l-1,0].concat(Object(Q["a"])(i)))}else{var d=e.findIndex((function(e){return e.id===t.id}));if(0===d)return;var s=n[d-1],f=n.splice(d,1)[0];if(s.groupId){var b=n.filter((function(e){return e.groupId===s.groupId}));n.splice(d-b.length,0,f)}else n.splice(d-1,0,f)}return n},i=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var c=n.filter((function(e){return e.groupId===t.groupId})),o=a(e,c),l=o.minLevel,r=o.maxLevel;if(r===e.length-1)return null;var i=n.splice(l,c.length);n.push.apply(n,Object(Q["a"])(i))}else{var u=e.findIndex((function(e){return e.id===t.id}));if(u===e.length-1)return null;n.splice(u,1),n.push(t)}return n},u=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var c=n.filter((function(e){return e.groupId===t.groupId})),o=a(e,c),l=o.minLevel;if(0===l)return;var r=n.splice(l,c.length);n.unshift.apply(n,Object(Q["a"])(r))}else{var i=e.findIndex((function(e){return e.id===t.id}));if(0===i)return;n.splice(i,1),n.unshift(t)}return n},d=function(t,c){var a;c===k.UP?a=l(n.value.elements,t):c===k.DOWN?a=r(n.value.elements,t):c===k.TOP?a=i(n.value.elements,t):c===k.BOTTOM&&(a=u(n.value.elements,t)),a&&(e.updateSlide({elements:a}),o())};return{orderElement:d}},jt=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()},ht=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},yt=function(){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement;return!!e},gt=function(){var e=Ce(),t=ae(),n=function(){jt(),e.setScreening(!0)},c=function(){t.updateSlideIndex(0),n()},o=function(){e.setScreening(!1),yt()&&ht()};return{enterScreening:n,enterScreeningFromStart:c,exitScreening:o}},xt=function(){var e=ie(),t=Object(g["c"])(e),n=t.canvasPercentage,c=t.canvasScale,o=t.canvasDragged,a=Object(y["computed"])((function(){return Math.round(100*c.value)+"%"})),l=function(t){var c=n.value,o=5,a=200,l=30;"+"===t&&c<=a&&(c+=o),"-"===t&&c>=l&&(c-=o),e.setCanvasPercentage(c)},r=function(t){var o=Math.round(t/c.value*n.value)/100;e.setCanvasPercentage(o)},i=function(){e.setCanvasPercentage(90),o&&e.setCanvasDragged(!1)};return{canvasScalePercentage:a,setCanvasScalePercentage:r,scaleCanvas:l,resetCanvas:i}},kt=function(){var e=ie(),t=ke(),n=Object(g["c"])(e),c=n.activeElementIdList,o=n.disableHotkeys,a=n.handleElement,l=n.handleElementId,r=n.editorAreaFocus,i=n.thumbnailsFocus,u=Object(g["c"])(ae()),d=u.currentSlide,s=Object(g["c"])(t),f=s.ctrlKeyState,b=s.shiftKeyState,p=s.spaceKeyState,m=dt(),v=m.updateSlideIndex,O=m.copySlide,j=m.createSlide,h=m.deleteSlide,x=m.cutSlide,C=m.copyAndPasteSlide,N=m.selectAllSlide,E=bt(),w=E.combineElements,I=E.uncombineElements,S=ft(),B=S.deleteElement,L=st(),_=L.lockElement,T=pt(),M=T.copyElement,D=T.cutElement,z=T.quickCopyElement,A=mt(),F=A.selectAllElement,R=vt(),P=R.moveElement,H=Ot(),q=H.orderElement,U=lt(),G=U.redo,X=U.undo,Y=gt(),Z=Y.enterScreening,W=Y.enterScreeningFromStart,J=xt(),K=J.scaleCanvas,Q=J.resetCanvas,$=function(){c.value.length?M():i.value&&O()},ee=function(){c.value.length?D():i.value&&x()},te=function(){c.value.length?z():i.value&&C()},ne=function(){r.value&&F(),i.value&&N()},ce=function(){r.value&&_()},oe=function(){r.value&&w()},le=function(){r.value&&I()},re=function(){c.value.length?B():i.value&&h()},ue=function(e){c.value.length?P(e):e!==V.UP&&e!==V.DOWN||v(e)},de=function(e){e===V.PAGEUP?v(V.UP):e===V.PAGEDOWN&&v(V.DOWN)},se=function(e){a.value&&q(a.value,e)},fe=function(){i.value&&j()},be=function(){if(d.value.elements.length)if(l.value){var t=d.value.elements.findIndex((function(e){return e.id===l.value})),n=t>=d.value.elements.length-1?0:t+1,c=d.value.elements[n].id;e.setActiveElementIdList([c])}else{var o=d.value.elements[0];e.setActiveElementIdList([o.id])}},pe=function(n){var c=n.ctrlKey,a=n.shiftKey,l=n.altKey,u=n.metaKey,d=c||u,s=n.key.toUpperCase();if(d&&!f.value&&t.setCtrlKeyState(!0),a&&!b.value&&t.setShiftKeyState(!0),o.value||s!==V.SPACE||t.setSpaceKeyState(!0),d&&s===V.P)return n.preventDefault(),void e.setDialogForExport("pdf");if(a&&s===V.F5)return n.preventDefault(),Z(),void t.setShiftKeyState(!1);if(s===V.F5)return n.preventDefault(),void W();if(r.value||i.value){if(d&&s===V.C){if(o.value)return;n.preventDefault(),$()}if(d&&s===V.X){if(o.value)return;n.preventDefault(),ee()}if(d&&s===V.D){if(o.value)return;n.preventDefault(),te()}if(d&&s===V.Z){if(o.value)return;n.preventDefault(),X()}if(d&&s===V.Y){if(o.value)return;n.preventDefault(),G()}if(d&&s===V.A){if(o.value)return;n.preventDefault(),ne()}if(d&&s===V.L){if(o.value)return;n.preventDefault(),ce()}if(!a&&d&&s===V.G){if(o.value)return;n.preventDefault(),oe()}if(a&&d&&s===V.G){if(o.value)return;n.preventDefault(),le()}if(l&&s===V.F){if(o.value)return;n.preventDefault(),se(k.TOP)}if(l&&s===V.B){if(o.value)return;n.preventDefault(),se(k.BOTTOM)}if(s===V.DELETE||s===V.BACKSPACE){if(o.value)return;n.preventDefault(),re()}if(s===V.UP){if(o.value)return;n.preventDefault(),ue(V.UP)}if(s===V.DOWN){if(o.value)return;n.preventDefault(),ue(V.DOWN)}if(s===V.LEFT){if(o.value)return;n.preventDefault(),ue(V.LEFT)}if(s===V.RIGHT){if(o.value)return;n.preventDefault(),ue(V.RIGHT)}if(s===V.PAGEUP){if(o.value)return;n.preventDefault(),de(V.PAGEUP)}if(s===V.PAGEDOWN){if(o.value)return;n.preventDefault(),de(V.PAGEDOWN)}if(s===V.ENTER){if(o.value)return;n.preventDefault(),fe()}if(s===V.MINUS){if(o.value)return;n.preventDefault(),K("-")}if(s===V.EQUAL){if(o.value)return;n.preventDefault(),K("+")}if(s===V.DIGIT_0){if(o.value)return;n.preventDefault(),Q()}if(s===V.TAB){if(o.value)return;n.preventDefault(),be()}}},me=function(){f.value&&t.setCtrlKeyState(!1),b.value&&t.setShiftKeyState(!1),p.value&&t.setSpaceKeyState(!1)};Object(y["onMounted"])((function(){document.addEventListener("keydown",pe),document.addEventListener("keyup",me),window.addEventListener("blur",me)})),Object(y["onUnmounted"])((function(){document.removeEventListener("keydown",pe),document.removeEventListener("keyup",me),window.removeEventListener("blur",me)}))},Ct=function(){var e=Object(g["c"])(ie()),t=e.editorAreaFocus,n=e.thumbnailsFocus,c=e.disableHotkeys,o=ut(),a=o.pasteTextClipboardData,l=rt(),r=l.createImageElement,i=function(e){tt(e).then((function(e){return r(e)}))},u=function(e){if((t.value||n.value)&&!c.value&&e.clipboardData){var o=e.clipboardData.items,l=o[0];if(l){var r,u=Object(L["a"])(o);try{for(u.s();!(r=u.n()).done;){var d=r.value;if("file"===d.kind&&-1!==d.type.indexOf("image")){var s=d.getAsFile();return void(s&&i(s))}}}catch(f){u.e(f)}finally{u.f()}"string"===l.kind&&"text/plain"===l.type&&l.getAsString((function(e){return a(e)}))}}};Object(y["onMounted"])((function(){document.addEventListener("paste",u)})),Object(y["onUnmounted"])((function(){document.removeEventListener("paste",u)}))},Nt=(n("cc71"),n("21a6")),Et=n("8f74"),wt=n("e774"),Vt=(n("00b4"),["style","script","template"]),It=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],St={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},Bt=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Lt=function(e,t){var n=t-e.position;_t(e,n)},_t=function(e,t){e.position=e.position+t},Tt=function(e,t){var n=!1;while(!n){var c=e.indexOf("<",t);if(-1===c)return c;var o=e.charAt(c+1);if("/"===o||"!"===o||/[A-Za-z0-9]/.test(o))return c;t=c+1}return-1},Mt=function(e){var t=e.str,n=Tt(t,e.position);if(n!==e.position){-1===n&&(n=t.length);var c=t.slice(e.position,n);Lt(e,n),e.tokens.push({type:"text",content:c})}},Dt=function(e){var t=e.str;_t(e,4);var n=t.indexOf("--\x3e",e.position),c=n+3;-1===n&&(n=c=t.length);var o=t.slice(e.position,n);Lt(e,c),e.tokens.push({type:"comment",content:o})},zt=function(e){var t=e.str,n=t.length,c=e.position;while(c"===o);if(a)break;c++}var l=c+1;while(l"===r);if(!i)break;l++}Lt(e,l);var u=t.slice(c,l);return e.tokens.push({type:"tag",content:u}),u},At=function(e){var t=e.str,n=e.tokens,c=e.position,o=null,a=c,l=[],r=t.length;while(c"===i;if(d){c!==a&&l.push(t.slice(a,c));break}var s=/\s/.test(i);if(s)c!==a&&l.push(t.slice(a,c)),a=c+1,c++;else{var f="'"===i||'"'===i;f?(o=i,c++):c++}}}Lt(e,c);for(var b="attribute",p=0;p1){var j=m+O;n.push({type:b,content:j}),p+=1;continue}var h=l[p+2];if(p+=1,h){var y=m+"="+h;n.push({type:b,content:y}),p+=1;continue}}}if(Object(te["endsWith"])(m,"=")){var g=l[p+1];if(g&&-1===g.indexOf("=")){var x=m+g;n.push({type:b,content:x}),p+=1;continue}var k=m.slice(0,-1);n.push({type:b,content:k})}else n.push({type:b,content:m})}},Ft=function(e,t){var n=t.str,c=t.tokens,o=e.toLowerCase(),a=n.length,l=t.position;while(l=0){var o=t[c].tagName;if(o===e)break;if(n.includes(o))return!0;c--}}return!1},Gt=function(e,t){e.splice(t)},Xt=function e(t){var n=t.stack,c=t.tokens,o=t.cursor,a=n[n.length-1].children,l=c.length;while(o-1)if(n[d].tagName===u){s=!0;break}while(o0){if(u===n[p].tagName){Gt(n,p);var m=p-1;a=n[m].children;break}p-=1}}var v=[],O=void 0;while(o127&&c<2048?(t+=String.fromCharCode(c>>6|192),t+=String.fromCharCode(63&c|128)):(t+=String.fromCharCode(c>>12|224),t+=String.fromCharCode(c>>6&63|128),t+=String.fromCharCode(63&c|128))}return t},an=function(e){var t,n,c,o,a,l,r,i="",u=0;e=on(e);while(u>2,a=(3&t)<<4|n>>4,l=(15&n)<<2|c>>6,r=63&c,isNaN(n)?l=r=64:isNaN(c)&&(r=64),i=i+nn.charAt(o)+nn.charAt(a)+nn.charAt(l)+nn.charAt(r);return i},ln=function(e){var t=new XMLSerializer,n=t.serializeToString(e);return cn+an(n)},rn=function(){var e=ae(),t=Object(g["c"])(e),n=t.slides,c=t.theme,o=t.viewportRatio,a=it(),l=a.addSlidesFromData,r=Object(y["ref"])(!1),i=function(e,t,n){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r.value=!0;var o="png"===t?wt["c"]:wt["b"],a=e.querySelectorAll("foreignObject [xmlns]");a.forEach((function(e){return e.removeAttribute("xmlns")})),setTimeout((function(){var a={quality:n,width:1600};c&&(a.fontEmbedCSS=""),o(e,a).then((function(e){r.value=!1,Object(Nt["saveAs"])(e,"pptist_slides.".concat(t))})).catch((function(){r.value=!1,Be["a"].error("导出图片失败")}))}),200)},u=function(e){var t=new Blob([ze(JSON.stringify(e))],{type:""});Object(Nt["saveAs"])(t,"pptist_slides.pptist")},d=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=t[0],o=new FileReader;o.addEventListener("load",(function(){try{var t=JSON.parse(Ae(o.result));n?e.setSlides(t):l(t)}catch(c){Be["a"].error("无法正确读取 / 解析该文件")}})),o.readAsText(c)},s=function(){var e=new Blob([JSON.stringify(n.value)],{type:""});Object(Nt["saveAs"])(e,"pptist_slides.json")},f=function(e){var t=ee()(e),n=t.getAlpha(),c=0===n?"#ffffff":t.setAlpha(1).toHexString();return{alpha:n,color:c}},b=function(e){var t=Kt(e),n=!1,c=0,o=[],a=function e(t){var a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(L["a"])(t);try{for(r.s();!(a=r.n()).done;){var i=a.value,u="tagName"in i&&["div","li","p"].includes(i.tagName);if(u&&o.length){var d=o[o.length-1];d.options||(d.options={}),d.options.breakLine=!0}var s=Object(B["a"])({},l),b="attributes"in i?i.attributes.find((function(e){return"style"===e.key})):null;if(b&&b.value){var p,m=b.value.split(";"),v=Object(L["a"])(m);try{for(v.s();!(p=v.n()).done;){var O=p.value,j=O.split(": "),h=Object(me["a"])(j,2),y=h[0],g=h[1],x=[Object(te["trim"])(y),Object(te["trim"])(g)],k=x[0],C=x[1];k&&C&&(s[k]=C)}}catch(I){v.e(I)}finally{v.f()}}if("tagName"in i){if("em"===i.tagName&&(s["font-style"]="italic"),"strong"===i.tagName&&(s["font-weight"]="bold"),"sup"===i.tagName&&(s["vertical-align"]="super"),"sub"===i.tagName&&(s["vertical-align"]="sub"),"a"===i.tagName){var N=i.attributes.find((function(e){return"href"===e.key}));s["href"]=(null===N||void 0===N?void 0:N.value)||""}if("ul"===i.tagName&&(s["list-type"]="ul"),"ol"===i.tagName&&(s["list-type"]="ol"),"li"===i.tagName&&(n=!0),"p"===i.tagName&&"attributes"in i){var E=i.attributes.find((function(e){return"data-indent"===e.key}));E&&E.value&&(c=+E.value)}}if("tagName"in i&&"br"===i.tagName)o.push({text:"",options:{breakLine:!0}});else if("content"in i){var w=i.content.replace(/ /g," ").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,""),V={};s["font-size"]&&(V.fontSize=.75*parseInt(s["font-size"])),s["color"]&&(V.color=f(s["color"]).color),s["background-color"]&&(V.highlight=f(s["background-color"]).color),s["text-decoration-line"]&&(-1!==s["text-decoration-line"].indexOf("underline")&&(V.underline={color:V.color||"#000000",style:"sng"}),-1!==s["text-decoration-line"].indexOf("line-through")&&(V.strike="sngStrike")),s["text-decoration"]&&(-1!==s["text-decoration"].indexOf("underline")&&(V.underline={color:V.color||"#000000",style:"sng"}),-1!==s["text-decoration"].indexOf("line-through")&&(V.strike="sngStrike")),s["vertical-align"]&&("super"===s["vertical-align"]&&(V.superscript=!0),"sub"===s["vertical-align"]&&(V.subscript=!0)),s["text-align"]&&(V.align=s["text-align"]),s["font-weight"]&&(V.bold="bold"===s["font-weight"]),s["font-style"]&&(V.italic="italic"===s["font-style"]),s["font-family"]&&(V.fontFace=s["font-family"]),s["href"]&&(V.hyperlink={url:s["href"]}),n&&"ol"===s["list-type"]&&(V.bullet={type:"number",indent:15},V.paraSpaceBefore=.1,n=!1),n&&"ul"===s["list-type"]&&(V.bullet={indent:15},V.paraSpaceBefore=.1,n=!1),c&&(V.indentLevel=c,c=0),o.push({text:w,options:V})}else"children"in i&&e(i.children,s)}}catch(I){r.e(I)}finally{r.f()}};return a(t),o},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:1,y:1};return e.map((function(e){if(void 0!==e.close)return{close:!0};if("M"===e.type)return{x:e.x/100*t.x,y:e.y/100*t.y,moveTo:!0};if(e.curve){if("cubic"===e.curve.type)return{x:e.x/100*t.x,y:e.y/100*t.y,curve:{type:"cubic",x1:e.curve.x1/100*t.x,y1:e.curve.y1/100*t.y,x2:e.curve.x2/100*t.x,y2:e.curve.y2/100*t.y}};if("quadratic"===e.curve.type)return{x:e.x/100*t.x,y:e.y/100*t.y,curve:{type:"quadratic",x1:e.curve.x1/100*t.x,y1:e.curve.y1/100*t.y}}}return{x:e.x/100*t.x,y:e.y/100*t.y}}))},m=function(e){var t=f(e.color),n=e.h,c=e.v,o=4,a=45;return 0===n&&0===c?(o=4,a=45):0===n?c>0?(o=c,a=90):(o=-c,a=270):0===c?n>0?(o=n,a=1):(o=-n,a=180):n>0&&c>0?(o=Math.max(n,c),a=45):n>0&&c<0?(o=Math.max(n,-c),a=315):n<0&&c>0?(o=Math.max(-n,c),a=135):n<0&&c<0&&(o=Math.max(-n,-c),a=225),{type:"outer",color:t.color.replace("#",""),opacity:t.alpha,blur:.75*e.blur,offset:o,angle:a}},v=function(e){var t=f((null===e||void 0===e?void 0:e.color)||"#000000");return{color:t.color,transparency:100*(1-t.alpha),width:.75*(e.width||1),dashType:"solid"===e.style?"solid":"dash"}},O=function(e){var t=e.type,c=e.target;if("web"===t)return{url:c};if("slide"===t){var o=n.value.findIndex((function(e){return e.id===c}));if(-1!==o)return{slide:o+1}}return null},j=function(e,t){r.value=!0;var n=new Et["a"];if(.625===o.value?n.layout="LAYOUT_16x10":.75===o.value?n.layout="LAYOUT_4x3":n.layout="LAYOUT_16x9",t){var a=f(c.value.backgroundColor),l=a.color,i=a.alpha;n.defineSlideMaster({title:"PPTIST_MASTER",background:{color:l,transparency:100*(1-i)}})}var u,d=Object(L["a"])(e);try{for(d.s();!(u=d.n()).done;){var s=u.value,j=n.addSlide();if(s.background){var h=s.background;if("image"===h.type&&h.image)j.background={data:h.image};else if("solid"===h.type&&h.color){var y=f(h.color);j.background={color:y.color,transparency:100*(1-y.alpha)}}else if("gradient"===h.type&&h.gradientColor){var g=Object(me["a"])(h.gradientColor,2),x=g[0],k=g[1],C=ee.a.mix(x,k).toHexString(),N=f(C);j.background={color:N.color,transparency:100*(1-N.alpha)}}}if(s.remark&&j.addNotes(s.remark),s.elements){var E,w=Object(L["a"])(s.elements);try{var V=function(){var e=E.value;if("text"===e.type){var t,c=b(e.content),o={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fontSize:15,fontFace:"微软雅黑",color:"#000000",valign:"top",margin:7.5,paraSpaceBefore:3.75,lineSpacingMultiple:1.2,autoFit:!0};if(e.rotate&&(o.rotate=e.rotate),e.wordSpace&&(o.charSpacing=.75*e.wordSpace),e.lineHeight&&(o.lineSpacingMultiple=e.lineHeight/1.25),e.fill){var a=f(e.fill),l=void 0===e.opacity?1:e.opacity;o.fill={color:a.color,transparency:100*(1-a.alpha*l)}}e.defaultColor&&(o.color=f(e.defaultColor).color),e.defaultFontName&&(o.fontFace=e.defaultFontName),e.shadow&&(o.shadow=m(e.shadow)),null!==(t=e.outline)&&void 0!==t&&t.width&&(o.line=v(e.outline)),void 0!==e.opacity&&(o.transparency=100*(1-e.opacity)),void 0!==e.paragraphSpace&&(o.paraSpaceBefore=.75*e.paragraphSpace),e.vertical&&(o.vert="eaVert"),j.addText(c,o)}else if("image"===e.type){var r,i,u={path:e.src,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};if(e.flipH&&(u.flipH=e.flipH),e.flipV&&(u.flipV=e.flipV),e.rotate&&(u.rotate=e.rotate),e.link){var d=O(e.link);d&&(u.hyperlink=d)}if(null!==(r=e.filters)&&void 0!==r&&r.opacity&&(u.transparency=100-parseInt(null===(i=e.filters)||void 0===i?void 0:i.opacity)),e.clip){"ellipse"===e.clip.shape&&(u.rounding=!0);var s=Object(me["a"])(e.clip.range,2),h=s[0],y=s[1],g=Object(me["a"])(h,2),x=g[0],k=g[1],C=Object(me["a"])(y,2),N=C[0],w=C[1],V=e.width/((N-x)/100),I=e.height/((w-k)/100);u.w=V/100,u.h=I/100,u.sizing={type:"crop",x:x/100*V/100,y:k/100*I/100,w:(N-x)/100*V/100,h:(w-k)/100*I/100}}j.addImage(u)}else if("shape"===e.type){if(e.special){var S=document.querySelector(".thumbnail-list .base-element-".concat(e.id," svg")),B=ln(S),L={data:B,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};if(e.rotate&&(L.rotate=e.rotate),e.link){var _=O(e.link);_&&(L.hyperlink=_)}j.addImage(L)}else{var T,M={x:e.width/e.viewBox[0],y:e.height/e.viewBox[1]},D=p(tn(e.path),M),z=f(e.fill),A=void 0===e.opacity?1:e.opacity,F={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fill:{color:z.color,transparency:100*(1-z.alpha*A)},points:D};if(e.flipH&&(F.flipH=e.flipH),e.flipV&&(F.flipV=e.flipV),e.shadow&&(F.shadow=m(e.shadow)),null!==(T=e.outline)&&void 0!==T&&T.width&&(F.line=v(e.outline)),e.link){var R=O(e.link);R&&(F.hyperlink=R)}j.addShape("custGeom",F)}if(e.text){var P=b(e.text.content),H={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fontSize:15,fontFace:"微软雅黑",color:"#000000",paraSpaceBefore:3.75,valign:e.text.align};e.rotate&&(H.rotate=e.rotate),e.text.defaultColor&&(H.color=f(e.text.defaultColor).color),e.text.defaultFontName&&(H.fontFace=e.text.defaultFontName),j.addText(P,H)}}else if("line"===e.type){var q=Ke(e),U=p(tn(q)),G=Ge(e),X=G.minX,Y=G.maxX,Z=G.minY,W=G.maxY,J=f(e.color),K={x:e.left/100,y:e.top/100,w:(Y-X)/100,h:(W-Z)/100,line:{color:J.color,transparency:100*(1-J.alpha),width:.75*e.width,dashType:"solid"===e.style?"solid":"dash",beginArrowType:e.points[0]?"arrow":"none",endArrowType:e.points[1]?"arrow":"none"},points:U};e.shadow&&(K.shadow=m(e.shadow)),j.addShape("custGeom",K)}else if("chart"===e.type){for(var $=[],te=0;te1||je.rowspan>1)for(var he=pe;hei.value){var r=o*(a.value/100);c.setCanvasScale(r/nt),t.value=(o-r)/2,n.value=(l-r*i.value)/2}else{var u=l*(a.value/100);c.setCanvasScale(u/(nt*i.value)),t.value=(o-u/i.value)/2,n.value=(l-u)/2}}};Object(y["watch"])([a,i],u),Object(y["watch"])(l,(function(){l.value||u()}));var d=Object(y["computed"])((function(){return{width:nt,height:nt*i.value,left:t.value,top:n.value}})),s=new ResizeObserver(u);Object(y["onMounted"])((function(){e.value&&s.observe(e.value)})),Object(y["onUnmounted"])((function(){e.value&&s.unobserve(e.value)}));var f=function(e){var o=!0,a=e.pageX,l=e.pageY,r=t.value,i=n.value;document.onmousemove=function(e){if(o){var c=e.pageX,u=e.pageY;t.value=r+(c-a),n.value=i+(u-l)}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null,c.setCanvasDragged(!0)}};return{viewportStyles:d,dragViewport:f}},lc=function(e,t){var n=ie(),c=Object(g["c"])(n),o=c.canvasScale,a=Object(y["ref"])(!1),l=Object(y["ref"])(1),r=Object(y["ref"])({top:0,left:0,width:0,height:0}),i=function(c){if(t.value){var i=!0,u=t.value.getBoundingClientRect(),d=5,s=c.pageX,f=c.pageY,b=(s-u.x)/o.value,p=(f-u.y)/o.value;r.value={top:p,left:b,width:0,height:0},a.value=!1,l.value=4,document.onmousemove=function(e){if(i){var t=e.pageX,n=e.pageY,c=(t-s)/o.value,u=(n-f)/o.value,b=Math.abs(c),p=Math.abs(u);if(!(b0&&u>0?m=4:c<0&&u<0?m=1:c>0&&u<0?m=2:c<0&&u>0&&(m=3),r.value=Object(B["a"])(Object(B["a"])({},r.value),{},{width:b,height:p}),a.value=!0,l.value=m}}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,i=!1;for(var t=[],c=0;cu&&md&&Ou-s&&md-f&&Ou&&md-f&&Ou-s&&md&&O0&&Math.abs(r-45)<=d?r-=r-45:r<0&&Math.abs(r+45)<=d?r-=r+45:r>0&&Math.abs(r-90)<=d?r-=r-90:r<0&&Math.abs(r+90)<=d?r-=r+90:r>0&&Math.abs(r-135)<=d?r-=r-135:r<0&&Math.abs(r+135)<=d?r-=r+135:r>0&&Math.abs(r-180)<=d?r-=r-180:r<0&&Math.abs(r+180)<=d&&(r-=r+180),e.value=e.value.map((function(e){return c.id===e.id?Object(B["a"])(Object(B["a"])({},e),{},{rotate:r}):e}))}},document.onmouseup=function(){a=!1,document.onmousemove=null,document.onmouseup=null,i!==r&&(n.updateSlide({elements:e.value}),l())}}};return{rotateElement:r}},dc={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频"},sc={text:20,image:20,shape:15,chart:200,table:20,video:250,audio:20},fc=function(e,t){var n=e.left,c=e.top,o=e.width,a=e.height,l=Math.sqrt(Math.pow(o,2)+Math.pow(a,2))/2,r=180*Math.atan(a/o)/Math.PI,i=(180-t-r)*Math.PI/180,u=(r-t)*Math.PI/180,d=(90-t)*Math.PI/180,s=t*Math.PI/180,f=o/2,b=a/2,p=n+f,m=c+b,v={left:p+l*Math.cos(i),top:m-l*Math.sin(i)},O={left:p+b*Math.cos(d),top:m-b*Math.sin(d)},j={left:p+l*Math.cos(u),top:m-l*Math.sin(u)},h={left:p+f*Math.cos(s),top:m+f*Math.sin(s)},y={left:p-l*Math.cos(i),top:m+l*Math.sin(i)},g={left:p-b*Math.sin(s),top:m+b*Math.cos(s)},x={left:p-l*Math.cos(u),top:m+l*Math.sin(u)},k={left:p-f*Math.cos(s),top:m-f*Math.sin(s)};return{leftTopPoint:v,topPoint:O,rightTopPoint:j,rightPoint:h,rightBottomPoint:y,bottomPoint:g,leftBottomPoint:x,leftPoint:k}},bc=function(e,t){var n,c=(n={},Object(pe["a"])(n,E.RIGHT_BOTTOM,t.leftTopPoint),Object(pe["a"])(n,E.LEFT_BOTTOM,t.rightTopPoint),Object(pe["a"])(n,E.LEFT_TOP,t.rightBottomPoint),Object(pe["a"])(n,E.RIGHT_TOP,t.leftBottomPoint),Object(pe["a"])(n,E.TOP,t.bottomPoint),Object(pe["a"])(n,E.BOTTOM,t.topPoint),Object(pe["a"])(n,E.LEFT,t.rightPoint),Object(pe["a"])(n,E.RIGHT,t.leftPoint),n);return c[e]},pc=function(e,t,n){var c=ie(),o=ae(),a=Object(g["c"])(c),l=a.activeElementIdList,r=a.activeGroupElementId,i=Object(g["c"])(o),u=i.viewportRatio,d=Object(g["c"])(ke()),s=d.ctrlOrShiftKeyActive,f=lt(),b=f.addHistorySnapshot,p=function(a,i,d){var f=!(a instanceof MouseEvent);if(!f||a.changedTouches&&a.changedTouches[0]){var p=!0;c.setScalingState(!0);var m,v=i.left,O=i.top,j=i.width,h=i.height,y="rotate"in i&&i.rotate?i.rotate:0,g=Math.PI*y/180,x=s.value||"fixedRatio"in i&&i.fixedRatio,k=j/h,C=f?a.changedTouches[0].pageX:a.pageX,N=f?a.changedTouches[0].pageY:a.pageY,w=sc[i.type]||20,V=function(e){return e2&&void 0!==arguments[2])||arguments[2];if(r.value||n.setEditorareaFocus(!0),o.value.includes(i.id)){if(u.value){var s=[];if(i.groupId){var f=[];e.value.forEach((function(e){e.groupId===i.groupId&&f.push(e.id)})),s=o.value.filter((function(e){return!f.includes(e)}))}else s=o.value.filter((function(e){return e!==i.id}));s.length>0&&n.setActiveElementIdList(s)}else if(l.value!==i.id)n.setHandleElementId(i.id);else if(a.value!==i.id){var b=c instanceof MouseEvent?c.pageX:c.changedTouches[0].pageX,p=c instanceof MouseEvent?c.pageY:c.changedTouches[0].pageY;c.target.onmouseup=function(e){var t=e.pageX,c=e.pageY;b===t&&p===c&&(n.setActiveGroupElementId(i.id),e.target.onmouseup=null)}}}else{var m=[];if(m=u.value?[].concat(Object(Q["a"])(o.value),[i.id]):[i.id],i.groupId){var v=[];e.value.forEach((function(e){e.groupId===i.groupId&&v.push(e.id)})),m=[].concat(Object(Q["a"])(m),v)}n.setActiveElementIdList(Object(te["uniq"])(m)),n.setHandleElementId(i.id)}d&&t(c,i)},s=function(){var t=e.value.filter((function(e){return!e.lock})),c=t.map((function(e){return e.id}));n.setActiveElementIdList(c)};return{selectElement:d,selectAllElement:s}},vc=function(e,t,n){var c=ae(),o=Object(g["c"])(ie()),a=o.activeElementIdList,l=o.activeGroupElementId,r=Object(g["c"])(c),i=r.viewportRatio,u=lt(),d=u.addHistorySnapshot,s=function(o,r){var u=!(o instanceof MouseEvent);if((!u||o.changedTouches&&o.changedTouches[0])&&a.value.includes(r.id)){var s,f=!0,b=nt,p=nt*i.value,m=5,v=JSON.parse(JSON.stringify(e.value)),O=v.filter((function(e){return a.value.includes(e.id)})),j=r.left,h=r.top,y=r.width,g="height"in r&&r.height?r.height:0,x="rotate"in r&&r.rotate?r.rotate:0,k=u?o.changedTouches[0].pageX:o.pageX,C=u?o.changedTouches[0].pageY:o.pageY,N=null,E=r.id===l.value,w=[],V=[],I=Object(L["a"])(e.value);try{for(I.s();!(s=I.n()).done;){var S=s.value;if("line"!==S.type&&((!E||S.id!==r.id)&&(E||!a.value.includes(S.id)))){var _=void 0,T=void 0,M=void 0,D=void 0;if("rotate"in S&&S.rotate){var z=qe({left:S.left,top:S.top,width:S.width,height:S.height,rotate:S.rotate}),A=z.xRange,F=z.yRange;_=A[0],T=F[0],M=A[1]-A[0],D=F[1]-F[0]}else _=S.left,T=S.top,M=S.width,D=S.height;var R=_+M,P=T+D,H=T+D/2,q=_+M/2,U={value:T,range:[_,R]},G={value:P,range:[_,R]},X={value:H,range:[_,R]},Y={value:_,range:[T,P]},Z={value:R,range:[T,P]},W={value:q,range:[T,P]};w.push(U,G,X),V.push(Y,Z,W)}}}catch(ae){I.e(ae)}finally{I.f()}var J={value:0,range:[0,b]},K={value:p,range:[0,b]},$={value:p/2,range:[0,b]},ee={value:0,range:[0,p]},te={value:b,range:[0,p]},ne={value:b/2,range:[0,p]};w.push(J,K,$),V.push(ee,te,ne),w=Ye(w),V=Ye(V);var ce=function(c){var o=c instanceof MouseEvent?c.pageX:c.changedTouches[0].pageX,l=c instanceof MouseEvent?c.pageY:c.changedTouches[0].pageY;if(!1!==N&&(N=Math.abs(k-o)v&&(X[0]=U-H,Y[0]=0),m>O&&(X[1]=G-q,Y[1]=0),e.value=e.value.map((function(e){if(e.id===o.id){var t=Object(B["a"])(Object(B["a"])({},e),{},{left:H,top:q,start:X,end:Y});return l===w.START||l===w.END?(o.broken&&(t.broken=[(X[0]+Y[0])/2,(X[1]+Y[1])/2]),o.curve&&(t.curve=[(X[0]+Y[0])/2,(X[1]+Y[1])/2]),o.cubic&&(t.cubic=[[(X[0]+Y[0])/2,(X[1]+Y[1])/2],[(X[0]+Y[0])/2,(X[1]+Y[1])/2]])):l===w.C?(o.broken&&(t.broken=[h-H,y-q]),o.curve&&(t.curve=[h-H,y-q])):o.cubic&&(t.cubic=[[N-H,E-q],[V-H,I-q]]),t}return e}))}},document.onmouseup=function(n){r=!1,document.onmousemove=null,document.onmouseup=null;var c=n.pageX,o=n.pageY;u===c&&d===o||(t.updateSlide({elements:e.value}),a())}};return{dragLineElement:l}},jc=function(e,t){var n=ae(),c=lt(),o=c.addHistorySnapshot,a=function(c,a){var l=!(c instanceof MouseEvent);if(!l||c.changedTouches&&c.changedTouches[0]){var r=!0,i=l?c.changedTouches[0].pageX:c.pageX,u=l?c.changedTouches[0].pageY:c.pageY,d=ct[a.pathFormula],s=null;if("editable"in d){var f=d.getBaseSize(a.width,a.height),b=f*a.keypoint,p=Object(me["a"])(d.range,2),m=p[0],v=p[1],O=d.relative;s={baseSize:f,originPos:b,min:m,max:v,relative:O}}var j=function(n){if(r){var c=n instanceof MouseEvent?n.pageX:n.changedTouches[0].pageX,o=n instanceof MouseEvent?n.pageY:n.changedTouches[0].pageY,l=(c-i)/t.value,f=(o-u)/t.value;e.value=e.value.map((function(e){if(e.id===a.id&&s){var t=s,n=t.baseSize,c=t.originPos,o=t.min,r=t.max,i=t.relative,u=e,b=0;return"left"===i&&(b=(c+l)/n),"right"===i&&(b=(c-l)/n),"center"===i&&(b=(c-2*l)/n),"top"===i&&(b=(c+f)/n),"bottom"===i&&(b=(c-f)/n),br&&(b=r),Object(B["a"])(Object(B["a"])({},e),{},{keypoint:b,path:d.formula(u.width,u.height,b)})}return e}))}},h=function(t){r=!1,document.ontouchmove=null,document.ontouchend=null,document.onmousemove=null,document.onmouseup=null;var c=t instanceof MouseEvent?t.pageX:t.changedTouches[0].pageX,a=t instanceof MouseEvent?t.pageY:t.changedTouches[0].pageY;i===c&&u===a||(n.updateSlide({elements:e.value}),o())};l?(document.ontouchmove=j,document.ontouchend=h):(document.onmousemove=j,document.onmouseup=h)}};return{moveShapeKeypoint:a}},hc=function(e){var t=ie(),n=Object(g["c"])(t),c=n.canvasScale,o=n.creatingElement,a=function(t){var n=t.start,o=t.end;if(e.value){var a=e.value.getBoundingClientRect(),l=Object(me["a"])(n,2),r=l[0],i=l[1],u=Object(me["a"])(o,2),d=u[0],s=u[1],f=Math.min(r,d),b=Math.max(r,d),p=Math.min(i,s),m=Math.max(i,s),v=(f-a.x)/c.value,O=(p-a.y)/c.value,j=(b-f)/c.value,h=(m-p)/c.value;return{left:v,top:O,width:j,height:h}}},l=function(t){var n=t.start,o=t.end;if(e.value){var a=e.value.getBoundingClientRect(),l=Object(me["a"])(n,2),r=l[0],i=l[1],u=Object(me["a"])(o,2),d=u[0],s=u[1],f=Math.min(r,d),b=Math.max(r,d),p=Math.min(i,s),m=Math.max(i,s),v=(f-a.x)/c.value,O=(p-a.y)/c.value,j=(b-f)/c.value,h=(m-p)/c.value,y=[r===f?0:j,i===p?0:h],g=[d===f?0:j,s===p?0:h];return{left:v,top:O,start:y,end:g}}},r=rt(),i=r.createTextElement,u=r.createShapeElement,d=r.createLineElement,s=function(e){if(o.value){var n=o.value.type;if("text"===n){var c=a(e);c&&i(c,{vertical:o.value.vertical})}else if("shape"===n){var r=a(e);r&&u(r,o.value.data)}else if("line"===n){var s=l(e);s&&d(s,o.value.data)}t.setCreatingElement(null)}};return{insertElementFromCreateSelection:s}},yc=(n("a9e3"),function(){var e=ae(),t=Object(g["c"])(ie()),n=t.activeElementIdList,c=t.activeElementList,o=Object(g["c"])(e),a=o.currentSlide,l=o.viewportRatio,r=lt(),i=r.addHistorySnapshot,u=function(t){var o,r=nt,u=nt*l.value,d=Xe(c.value),s=d.minX,f=d.maxX,b=d.minY,p=d.maxY,m=JSON.parse(JSON.stringify(a.value.elements)),v=Object(L["a"])(m);try{for(v.s();!(o=v.n()).done;){var O=o.value;if(n.value.includes(O.id)){if(t===C.CENTER){var j=b+(p-b)/2-u/2,h=s+(f-s)/2-r/2;O.top=O.top-j,O.left=O.left-h}if(t===C.TOP){var y=b-0;O.top=O.top-y}else if(t===C.VERTICAL){var g=b+(p-b)/2-u/2;O.top=O.top-g}else if(t===C.BOTTOM){var x=p-u;O.top=O.top-x}else if(t===C.LEFT){var k=s-0;O.left=O.left-k}else if(t===C.HORIZONTAL){var N=s+(f-s)/2-r/2;O.left=O.left-N}else if(t===C.RIGHT){var E=f-r;O.left=O.left-E}}}}catch(w){v.e(w)}finally{v.f()}e.updateSlide({elements:m}),i()};return{alignElementToCanvas:u}}),gc=function(e){var t=Object(y["computed"])((function(){if(e.value){var t=e.value,n=t.h,c=t.v,o=t.blur,a=t.color;return"".concat(n,"px ").concat(c,"px ").concat(o,"px ").concat(a)}return""}));return{shadowStyle:t}},xc=function(e,t){var n=Object(y["computed"])((function(){var n="";return e.value&&t.value?n="rotateX(180deg) rotateY(180deg)":t.value?n="rotateX(180deg)":e.value&&(n="rotateY(180deg)"),n}));return{flipStyle:n}};(function(e){e["RECT"]="rect",e["ELLIPSE"]="ellipse",e["POLYGON"]="polygon"})($n||($n={})),function(e){e["RECT"]="rect",e["ROUNDRECT"]="roundRect",e["ELLIPSE"]="ellipse",e["TRIANGLE"]="triangle",e["PENTAGON"]="pentagon",e["RHOMBUS"]="rhombus",e["STAR"]="star"}(ec||(ec={}));var kc={rect:{name:"矩形",type:$n.RECT,radius:"0",style:""},rect2:{name:"矩形2",type:$n.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},rect3:{name:"矩形3",type:$n.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.8*t," Z")}},roundRect:{name:"圆角矩形",type:$n.RECT,radius:"10px",style:"inset(0 0 0 0 round 10px 10px 10px 10px)"},ellipse:{name:"圆形",type:$n.ELLIPSE,style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:$n.POLYGON,style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L 0 ").concat(t," L ").concat(e," ").concat(t," Z")}},triangle2:{name:"三角形2",type:$n.POLYGON,style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:function(e,t){return"M ".concat(.5*e," ").concat(t," L 0 0 L ").concat(e," 0 Z")}},triangle3:{name:"三角形3",type:$n.POLYGON,style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M 0 0 L 0 ".concat(t," L ").concat(e," ").concat(t," Z")}},rhombus:{name:"菱形",type:$n.POLYGON,style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.5*e," ").concat(t," L 0 ").concat(.5*t," Z")}},pentagon:{name:"五边形",type:$n.POLYGON,style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.38*t," L ").concat(.82*e," ").concat(t," L ").concat(.18*e," ").concat(t," L 0 ").concat(.38*t," Z")}},hexagon:{name:"六边形",type:$n.POLYGON,style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.2*e," 0 L ").concat(.8*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.8*e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.5*t," Z")}},heptagon:{name:"七边形",type:$n.POLYGON,style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(.9*e," ").concat(.2*t," L ").concat(e," ").concat(.6*t," L ").concat(.75*e," ").concat(t," L ").concat(.25*e," ").concat(t," L 0 ").concat(.6*t," L ").concat(.1*e," ").concat(.2*t," Z")}},octagon:{name:"八边形",type:$n.POLYGON,style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:function(e,t){return"M ".concat(.3*e," 0 L ").concat(.7*e," 0 L ").concat(e," ").concat(.3*t," L ").concat(e," ").concat(.7*t," L ").concat(.7*e," ").concat(t," L ").concat(.3*e," ").concat(t," L 0 ").concat(.7*t," L 0 ").concat(.3*t," Z")}},chevron:{name:"V形",type:$n.POLYGON,style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:function(e,t){return"M ".concat(.75*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.75*e," ").concat(t," L 0 ").concat(t," L ").concat(.25*e," ").concat(.5*t," L 0 0 Z")}},point:{name:"点",type:$n.POLYGON,style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:function(e,t){return"M 0 0 L ".concat(.75*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.75*e," ").concat(t," L 0 ").concat(t," Z")}},arrow:{name:"箭头",type:$n.POLYGON,style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:function(e,t){return"M 0 ".concat(.2*t," L ").concat(.6*e," ").concat(.2*t," L ").concat(.6*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.6*e," ").concat(t," L ").concat(.6*e," ").concat(.8*t," L 0 ").concat(.8*t," Z")}},parallelogram:{name:"平行四边形",type:$n.POLYGON,style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.3*e," 0 L ").concat(e," 0 L ").concat(.7*e," ").concat(t," L 0 ").concat(t," Z")}},parallelogram2:{name:"平行四边形2",type:$n.POLYGON,style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:function(e,t){return"M ".concat(.3*e," ").concat(t," L ").concat(e," ").concat(t," L ").concat(.7*e," 0 L 0 0 Z")}},trapezoid:{name:"梯形",type:$n.POLYGON,style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.25*e," 0 L ").concat(.75*e," 0 L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},trapezoid2:{name:"梯形2",type:$n.POLYGON,style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:function(e,t){return"M 0 0 L ".concat(e," 0 L ").concat(.75*e," ").concat(t," L ").concat(.25*e," ").concat(t," Z")}}},Cc=function(e){var t=Object(y["computed"])((function(){if(!e.value)return kc.rect;var t=e.value.shape||$n.RECT;return kc[t]})),n=Object(y["computed"])((function(){if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};var t=Object(me["a"])(e.value.range,2),n=t[0],c=t[1],o=(c[0]-n[0])/100,a=(c[1]-n[1])/100,l=n[0]/o,r=n[1]/a;return{left:-l+"%",top:-r+"%",width:100/o+"%",height:100/a+"%"}}));return{clipShape:t,imgPosition:n}},Nc=(n("b64b"),function(e){var t=Object(y["computed"])((function(){if(!e.value)return"";for(var t="",n=0,c=Object.keys(e.value);n45&&c.rotate<135&&(d=(u-o)/a.value/c.width*100,s=-(i-n)/a.value/c.height*100),(c.rotate>=135&&c.rotate<=180||c.rotate>=-180&&c.rotate<=-135)&&(d=-d,s=-s),c.rotate>-135&&c.rotate<-45&&(d=-(u-o)/a.value/c.width*100,s=(i-n)/a.value/c.height*100);var f=r.left+d,b=r.top+s;f<0?f=0:f+r.width>l.width&&(f=l.width-r.width),b<0?b=0:b+r.height>l.height&&(b=l.height-r.height),p.value=Object(B["a"])(Object(B["a"])({},p.value),{},{left:f,top:b})}},document.onmouseup=function(){t=!1,document.onmousemove=null,document.onmouseup=null,x(),setTimeout((function(){u.value=!1}),0)}},C=function(e,t){u.value=!0;var n=!0,o=50/c.width*100,l=50/c.height*100,i=e.pageX,d=e.pageY,s=f.value,b=Object(B["a"])({},p.value),m=p.value.width/p.value.height;document.onmousemove=function(e){if(n){var u,f,v,O,j=e.pageX,h=e.pageY,y=(j-i)/a.value/c.width*100,g=(h-d)/a.value/c.height*100;c.rotate>45&&c.rotate<135&&(y=(h-d)/a.value/c.width*100,g=-(j-i)/a.value/c.height*100),(c.rotate>=135&&c.rotate<=180||c.rotate>=-180&&c.rotate<=-135)&&(y=-y,g=-g),c.rotate>-135&&c.rotate<-45&&(y=-(h-d)/a.value/c.width*100,g=(j-i)/a.value/c.height*100),r.value&&(t!==E.RIGHT_BOTTOM&&t!==E.LEFT_TOP||(g=y/m),t!==E.LEFT_BOTTOM&&t!==E.RIGHT_TOP||(g=-y/m)),t===E.LEFT_TOP?(b.left+y<0&&(y=-b.left),b.top+g<0&&(g=-b.top),b.width-ys.width&&(y=s.width-(b.left+b.width)),b.top+g<0&&(g=-b.top),b.width+ys.height&&(g=s.height-(b.top+b.height)),b.width-ys.width&&(y=s.width-(b.left+b.width)),b.top+b.height+g>s.height&&(g=s.height-(b.top+b.height)),b.width+ys.height&&(g=s.height-(b.top+b.height)),b.height+gs.width&&(y=s.width-(b.left+b.width)),b.width+y-22.5&&t<=22.5?e+0:t>22.5&&t<=67.5?e+45:t>67.5&&t<=112.5?e+90:t>112.5&&t<=157.5?e+135:t>157.5||t<=-157.5?e+0:t>-157.5&&t<=-112.5?e+45:t>-112.5&&t<=-67.5?e+90:t>-67.5&&t<=-22.5?e+135:e+0})),w=[E.LEFT_TOP,E.RIGHT_TOP,E.LEFT_BOTTOM,E.RIGHT_BOTTOM],I=[E.TOP,E.BOTTOM,E.LEFT,E.RIGHT];return function(t,n){var c=Object(y["resolveDirective"])("click-outside");return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"image-clip-handler",style:Object(y["normalizeStyle"])(i.value)},[Object(y["createElementVNode"])("img",{class:"bottom-img",src:e.src,draggable:!1,alt:"",style:Object(y["normalizeStyle"])(Object(y["unref"])(b))},null,12,Yc),Object(y["createElementVNode"])("div",{class:"top-image-content",style:Object(y["normalizeStyle"])(Object(B["a"])(Object(B["a"])({},Object(y["unref"])(m)),{},{clipPath:e.clipPath}))},[Object(y["createElementVNode"])("img",{class:"top-img",src:e.src,draggable:!1,alt:"",style:Object(y["normalizeStyle"])(Object(y["unref"])(v))},null,12,Zc)],4),Object(y["createElementVNode"])("div",{class:"operate",style:Object(y["normalizeStyle"])(Object(y["unref"])(m)),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(e){return k(e)}),["stop"]))},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(w,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["clip-point",e,Object(y["unref"])(N)]),key:e,onMousedown:Object(y["withModifiers"])((function(t){return C(t,e)}),["stop"])},Kc,42,Wc)})),64)),(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(I,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["clip-point",e,Object(y["unref"])(N)]),key:e,onMousedown:Object(y["withModifiers"])((function(t){return C(t,e)}),["stop"])},eo,42,Qc)})),64))],36)],4)),[[c,j]])}}});n("5970");const no=mn()(to,[["__scopeId","data-v-3e0199ec"]]);var co=no,oo=["src"],ao=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=ie(),c=ae(),o=Object(g["c"])(n),a=o.clipingImageElementId,l=Object(y["computed"])((function(){return a.value===t.elementInfo.id})),r=lt(),i=r.addHistorySnapshot,u=Object(y["computed"])((function(){return t.elementInfo.shadow})),d=gc(u),s=d.shadowStyle,f=Object(y["computed"])((function(){return t.elementInfo.flipH})),b=Object(y["computed"])((function(){return t.elementInfo.flipV})),p=xc(f,b),m=p.flipStyle,v=Object(y["computed"])((function(){return t.elementInfo.clip})),O=Cc(v),j=O.clipShape,h=O.imgPosition,x=Object(y["computed"])((function(){return t.elementInfo.filters})),k=Nc(x),C=k.filter,N=function(e){t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},E=function(e){if(n.setClipingImageElementId(""),e){var o=e.range,a=e.position,l=t.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},r=t.elementInfo.left+a.left,u=t.elementInfo.top+a.top,d=t.elementInfo.width+a.width,s=t.elementInfo.height+a.height,f=0,b=0;if(t.elementInfo.rotate){var p=r+d/2-(t.elementInfo.left+t.elementInfo.width/2),m=-(u+s/2-(t.elementInfo.top+t.elementInfo.height/2)),v=-t.elementInfo.rotate*Math.PI/180,O=p*Math.cos(v)-m*Math.sin(v),j=p*Math.sin(v)+m*Math.cos(v);f=O-p,b=-(j-m)}var h={clip:Object(B["a"])(Object(B["a"])({},l),{},{range:o}),left:r+f,top:u+b,width:d,height:s};c.updateElement({id:t.elementInfo.id,props:h}),i()}};return function(t,n){var c=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-image",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["unref"])(l)?(Object(y["openBlock"])(),Object(y["createBlock"])(co,{key:0,src:e.elementInfo.src,clipData:e.elementInfo.clip,width:e.elementInfo.width,height:e.elementInfo.height,top:e.elementInfo.top,left:e.elementInfo.left,rotate:e.elementInfo.rotate,clipPath:Object(y["unref"])(j).style,onClip:n[0]||(n[0]=function(e){return E(e)})},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:1,class:"element-content",style:Object(y["normalizeStyle"])({filter:Object(y["unref"])(s)?"drop-shadow(".concat(Object(y["unref"])(s),")"):"",transform:Object(y["unref"])(m)}),onMousedown:n[2]||(n[2]=function(e){return N(e)}),onTouchstart:n[3]||(n[3]=function(e){return N(e)})},[Object(y["createVNode"])(Gc,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(y["createElementVNode"])("div",{class:"image-content",style:Object(y["normalizeStyle"])({clipPath:Object(y["unref"])(j).style})},[Object(y["createElementVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:Object(y["normalizeStyle"])({top:Object(y["unref"])(h).top,left:Object(y["unref"])(h).left,width:Object(y["unref"])(h).width,height:Object(y["unref"])(h).height,filter:Object(y["unref"])(C)}),onDragstart:n[1]||(n[1]=Object(y["withModifiers"])((function(){}),["prevent"])),alt:""},null,44,oo),e.elementInfo.colorMask?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"color-mask",style:Object(y["normalizeStyle"])({backgroundColor:e.elementInfo.colorMask.color,opacity:e.elementInfo.colorMask.opacity})},null,4)):Object(y["createCommentVNode"])("",!0)],4)],36)),[[c,e.contextmenus]])],4)],6)}}});n("bcf0");const lo=mn()(ao,[["__scopeId","data-v-963e3dfc"]]);var ro=lo,io=["width","height"],uo=["d","stroke","stroke-width","stroke-dasharray"],so=Object(y["defineComponent"])({__name:"ElementOutline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=e,n=Ec(Object(y["toRef"])(t,"outline")),c=n.outlineWidth,o=n.outlineStyle,a=n.outlineColor;return function(t,n){return e.outline?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,class:"element-outline",overflow:"visible",width:e.width,height:e.height},[Object(y["createElementVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:"M0,0 L".concat(e.width,",0 L").concat(e.width,",").concat(e.height," L0,").concat(e.height," Z"),stroke:Object(y["unref"])(a),"stroke-width":Object(y["unref"])(c),"stroke-dasharray":"dashed"===Object(y["unref"])(o)?"10 6":"0 0"},null,8,uo)],8,io)):Object(y["createCommentVNode"])("",!0)}}});n("4731");const fo=mn()(so,[["__scopeId","data-v-61b7d06a"]]);var bo,po=fo,mo=n("5313"),vo=n("576a"),Oo=n("304a"),jo=n("7f06"),ho=n("8726"),yo=n("23f1"),go=n("1a16"),xo=n("665f"),ko=n("f95e"),Co=function(e){var t={},n=function(e,n){return t[e]=n};return n("Alt-ArrowUp",_["c"]),n("Alt-ArrowDown",_["b"]),n("Ctrl-z",ho["c"]),n("Ctrl-y",ho["b"]),n("Backspace",ko["f"]),n("Escape",_["e"]),n("Ctrl-b",Object(_["f"])(e.marks.strong)),n("Ctrl-i",Object(_["f"])(e.marks.em)),n("Ctrl-u",Object(_["f"])(e.marks.underline)),n("Ctrl-d",Object(_["f"])(e.marks.strikethrough)),n("Enter",Object(xo["f"])(e.nodes.list_item)),n("Mod-[",Object(xo["b"])(e.nodes.list_item)),n("Mod-]",Object(xo["e"])(e.nodes.list_item)),t},No=function(e){return Object(ko["g"])(/^\s*>\s$/,e)},Eo=function(e){return Object(ko["g"])(/^(\d+)\.\s$/,e,(function(e){return{order:+e[1]}}),(function(e,t){return t.childCount+t.attrs.order===+e[1]}))},wo=function(e){return Object(ko["g"])(/^\s*([-+*])\s$/,e)},Vo=function(e){return Object(ko["e"])(/^```$/,e)},Io=function(e){var t=[].concat(Object(Q["a"])(ko["d"]),[ko["a"],ko["b"]]);return t.push(No(e.nodes.blockquote)),t.push(Eo(e.nodes.ordered_list)),t.push(wo(e.nodes.bullet_list)),t.push(Vo(e.nodes.code_block)),Object(ko["c"])({rules:t})},So=function(e){return[Io(e),Object(jo["b"])(Co(e)),Object(jo["b"])(_["a"]),Object(yo["a"])(),Object(go["a"])(),Object(ho["a"])()]},Bo=n("15fd"),Lo=n("2210"),_o=Object(B["a"])(Object(B["a"])({},xo["d"]),{},{content:"list_item+",group:"block"}),To=Object(B["a"])(Object(B["a"])({},xo["a"]),{},{content:"list_item+",group:"block"}),Mo=Object(B["a"])(Object(B["a"])({},xo["c"]),{},{content:"paragraph block*",group:"block"}),Do={attrs:{align:{default:""},indent:{default:0}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:function(e){var t=e.style.textAlign,n=e.getAttribute("align")||t||"";n=/(left|right|center|justify)/.test(n)?n:"";var c=+(e.getAttribute("data-indent")||0);return{align:n,indent:c}}}],toDOM:function(e){var t=e.attrs,n=t.align,c=t.indent,o="";n&&"left"!==n&&(o+="text-align: ".concat(n,";"));var a={style:o};return c&&(a["data-indent"]=c),["p",a,0]}},zo=(Lo["b"].hard_break,Object(Bo["a"])(Lo["b"],["hard_break"])),Ao=Object(B["a"])(Object(B["a"])({},zo),{},{ordered_list:_o,bullet_list:To,list_item:Mo,paragraph:Do}),Fo={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:function(e){return"sub"===e&&null}}],toDOM:function(){return["sub",0]}},Ro={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:function(e){return"super"===e&&null}}],toDOM:function(){return["sup",0]}},Po={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:function(e){return"line-through"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"line-through"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration-line: line-through"},0]}},Ho={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:function(e){return"underline"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"underline"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration: underline"},0]}},qo={attrs:{color:{}},inline:!0,group:"inline",parseDOM:[{style:"color",getAttrs:function(e){return e?{color:e}:{}}}],toDOM:function(e){var t=e.attrs.color,n="";return t&&(n+="color: ".concat(t,";")),["span",{style:n},0]}},Uo={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{style:"background-color",getAttrs:function(e){return e?{backcolor:e}:{}}}],toDOM:function(e){var t=e.attrs.backcolor,n="";return t&&(n+="background-color: ".concat(t,";")),["span",{style:n},0]}},Go={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:function(e){return e?{fontsize:e}:{}}}],toDOM:function(e){var t=e.attrs.fontsize,n="";return t&&(n+="font-size: ".concat(t)),["span",{style:n},0]}},Xo={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:function(e){return{fontname:e&&"string"===typeof e?e.replace(/[\"\']/g,""):""}}}],toDOM:function(e){var t=e.attrs.fontname,n="";return t&&(n+="font-family: ".concat(t)),["span",{style:n},0]}},Yo={attrs:{href:{},title:{default:null},target:{default:"_blank"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(e){var t=e.getAttribute("href"),n=e.getAttribute("title");return{href:t,title:n}}}],toDOM:function(e){return["a",e.attrs,0]}},Zo=Object(B["a"])(Object(B["a"])({},Lo["a"]),{},{subscript:Fo,superscript:Ro,strikethrough:Po,underline:Ho,forecolor:qo,backcolor:Uo,fontsize:Go,fontname:Xo,link:Yo}),Wo=Ao,Jo=Zo,Ko=new Oo["i"]({nodes:Wo,marks:Jo}),Qo=function(e){var t="".concat(e,"
"),n=new window.DOMParser,c=n.parseFromString(t,"text/html").body.firstElementChild;return Oo["a"].fromSchema(Ko).parse(c)},$o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new vo["c"](e,Object(B["a"])({state:mo["b"].create({doc:Qo(t),plugins:So(Ko)})},n))},ea=n("1344");(function(e){e["RICH_TEXT_COMMAND"]="RICH_TEXT_COMMAND",e["OPEN_CHART_DATA_EDITOR"]="OPEN_CHART_DATA_EDITOR",e["OPEN_LATEX_EDITOR"]="OPEN_LATEX_EDITOR"})(bo||(bo={}));var ta=Object(ea["a"])(),na=ta,ca=(n("6062"),function(e,t,n){var c=e,o=c.selection,a=c.doc;if(!o||!a)return e;var l=o.from,r=o.to,i=t.nodes,u=i.blockquote,d=i.list_item,s=i.paragraph,f=[];n=n||"";var b=new Set([u,d,s]);return a.nodesBetween(l,r,(function(e,t){var c=e.type,o=e.attrs.align||"";return o!==n&&b.has(c)&&f.push({node:e,pos:t,nodeType:c}),!0})),f.length?(f.forEach((function(t){var c=t.node,o=t.pos,a=t.nodeType,l=c.attrs;l=n?Object(B["a"])(Object(B["a"])({},l),{},{align:n}):Object(B["a"])(Object(B["a"])({},l),{},{align:null}),e=e.setNodeMarkup(o,a,l,c.marks)})),e):e}),oa=function(e,t){var n=e.state,c=n.schema,o=n.selection,a=ca(n.tr.setSelection(o),c,t);e.dispatch(a)},aa=function(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list},la=function(e,t){return function(n,c){var o=n.schema,a=n.selection,l=a.$from,r=a.$to,i=l.blockRange(r);if(!i)return!1;var u=F((function(e){return aa(e,o)}))(a);if(i.depth>=1&&u&&i.depth-u.depth<=1){if(u.node.type===e)return Object(xo["b"])(t)(n,c);if(aa(u.node,o)&&e.validContent(u.node.content)){var d=n.tr;return d.setNodeMarkup(u.pos,e),c&&c(d),!1}}return Object(xo["g"])(e)(n,c)}};function ra(e,t,n){if(!e.doc)return e;var c=e.doc.nodeAt(t);if(!c)return e;var o=0,a=7,l=(c.attrs.indent||0)+n;if(la&&(l=a),l===c.attrs.indent)return e;var r=Object(B["a"])(Object(B["a"])({},c.attrs),{},{indent:l});return e.setNodeMarkup(t,c.type,r,c.marks)}var ia=function(e,t,n){var c=e,o=c.selection,a=c.doc;if(!o||!a)return e;if(!(o instanceof mo["g"]||o instanceof mo["a"]))return e;var l=o.from,r=o.to;return a.nodesBetween(l,r,(function(c,o){var a=c.type;return"paragraph"===a.name||"blockquote"===a.name?(e=ra(e,o,n),!1):!aa(c,t)})),e},ua=function(e,t){var n=e.state,c=n.schema,o=n.selection,a=ia(n.tr.setSelection(o),c,t);return!!a.docChanged&&(e.dispatch(a),!0)},da=Object(y["defineComponent"])({__name:"ProsemirrorEditor",props:{elementId:{type:String,required:!0},defaultColor:{type:String,required:!0},defaultFontName:{type:String,required:!0},editable:{type:Boolean,default:!1},value:{type:String,required:!0},autoFocus:{type:Boolean,default:!1}},emits:["update","focus","blur"],setup:function(e,t){var n,c=t.expose,o=t.emit,a=e,l=ie(),r=Object(g["c"])(l),i=r.handleElementId,u=Object(y["ref"])(),d=Object(te["debounce"])((function(){o("update",n.dom.innerHTML)}),300,{trailing:!0}),s=function(){l.setDisableHotkeysState(!0),o("focus")},f=function(){l.setDisableHotkeysState(!1),o("blur")},b=Object(te["debounce"])((function(){var e=Z(n,{color:a.defaultColor,fontname:a.defaultFontName});l.setRichtextAttrs(e)}),30,{trailing:!0}),p=function(){d(),b()},m=Object(y["computed"])((function(){return a.value}));Object(y["watch"])(m,(function(){if(n&&!n.hasFocus()){var e=n.state,t=e.doc,c=e.tr;n.dispatch(c.replaceRangeWith(0,t.content.size,Qo(m.value)))}})),Object(y["watch"])((function(){return a.editable}),(function(){n.setProps({editable:function(){return a.editable}})})),Object(y["onMounted"])((function(){n=$o(u.value,m.value,{handleDOMEvents:{focus:s,blur:f,keydown:p,click:b},editable:function(){return a.editable}}),a.autoFocus&&n.focus()})),Object(y["onUnmounted"])((function(){n&&n.destroy()}));var v=function(){return n.focus()};c({focus:v});var O=function(e){var t=e.target,c=e.action;if((t||i.value===a.elementId)&&(!t||t===a.elementId)){var o,l="command"in c?[c]:c,r=Object(L["a"])(l);try{for(r.s();!(o=r.n()).done;){var u=o.value;if("fontname"===u.command&&u.value){var s=n.state.schema.marks.fontname.create({fontname:u.value});T(n),M(n,s)}else if("fontsize"===u.command&&u.value){var f=n.state.schema.marks.fontsize.create({fontsize:u.value});T(n),M(n,f)}else if("fontsize-add"===u.command){var p=u.value?+u.value:2;T(n);var m=W(n)+p+"px",v=n.state.schema.marks.fontsize.create({fontsize:m});M(n,v)}else if("fontsize-reduce"===u.command){var O=u.value?+u.value:2;T(n);var j=W(n)-O;j<12&&(j=12);var h=n.state.schema.marks.fontsize.create({fontsize:j+"px"});M(n,h)}else if("color"===u.command&&u.value){var y=n.state.schema.marks.forecolor.create({color:u.value});T(n),M(n,y)}else if("backcolor"===u.command&&u.value){var g=n.state.schema.marks.backcolor.create({backcolor:u.value});T(n),M(n,g)}else if("bold"===u.command)T(n),Object(_["f"])(n.state.schema.marks.strong)(n.state,n.dispatch);else if("em"===u.command)T(n),Object(_["f"])(n.state.schema.marks.em)(n.state,n.dispatch);else if("underline"===u.command)T(n),Object(_["f"])(n.state.schema.marks.underline)(n.state,n.dispatch);else if("strikethrough"===u.command)T(n),Object(_["f"])(n.state.schema.marks.strikethrough)(n.state,n.dispatch);else if("subscript"===u.command)Object(_["f"])(n.state.schema.marks.subscript)(n.state,n.dispatch);else if("superscript"===u.command)Object(_["f"])(n.state.schema.marks.superscript)(n.state,n.dispatch);else if("blockquote"===u.command)Object(_["g"])(n.state.schema.nodes.blockquote)(n.state,n.dispatch);else if("code"===u.command)Object(_["f"])(n.state.schema.marks.code)(n.state,n.dispatch);else if("align"===u.command&&u.value)oa(n,u.value);else if("indent"===u.command&&u.value)ua(n,+u.value);else if("bulletList"===u.command){var x=n.state.schema.nodes,k=x.bullet_list,C=x.list_item;la(k,C)(n.state,n.dispatch)}else if("orderedList"===u.command){var N=n.state.schema.nodes,E=N.ordered_list,w=N.list_item;la(E,w)(n.state,n.dispatch)}else if("clear"===u.command){T(n);var V=n.state.selection,I=V.$from,S=V.$to;n.dispatch(n.state.tr.removeMark(I.pos,S.pos))}else if("link"===u.command){var B=n.state.schema.marks.link,z=n.state.selection,A=z.from,F=z.to,R=D(n.state.doc,A,F,B);if(R)if(u.value){var P=n.state.schema.marks.link.create({href:u.value,title:u.value});M(n,P,{from:R.from.pos,to:R.to.pos+1})}else n.dispatch(n.state.tr.removeMark(R.from.pos,R.to.pos+1,B));else if(G(n.state,B))if(u.value){var H=n.state.schema.marks.link.create({href:u.value,title:u.value});M(n,H)}else Object(_["f"])(B)(n.state,n.dispatch);else u.value&&(T(n),Object(_["f"])(B,{href:u.value,title:u.value})(n.state,n.dispatch))}else"insert"===u.command&&u.value&&n.dispatch(n.state.tr.insertText(u.value))}}catch(q){r.e(q)}finally{r.f()}n.focus(),d(),b()}};return na.on(bo.RICH_TEXT_COMMAND,O),Object(y["onUnmounted"])((function(){na.off(bo.RICH_TEXT_COMMAND,O)})),function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"prosemirror-editor",ref_key:"editorViewRef",ref:u},null,512)}}});n("a511");const sa=mn()(da,[["__scopeId","data-v-1debd6ff"]]);var fa=sa,ba=function(e){return Object(y["pushScopeId"])("data-v-e2312e2e"),e=e(),Object(y["popScopeId"])(),e},pa=ba((function(){return Object(y["createElementVNode"])("div",{class:"drag-handler top"},null,-1)})),ma=ba((function(){return Object(y["createElementVNode"])("div",{class:"drag-handler bottom"},null,-1)})),va=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=ie(),c=ae(),o=Object(g["c"])(n),a=o.handleElementId,l=o.isScaling,r=lt(),i=r.addHistorySnapshot,u=Object(y["ref"])(),d=Object(y["computed"])((function(){return t.elementInfo.shadow})),s=gc(d),f=s.shadowStyle,b=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo,n))},p=Object(y["ref"])(-1),m=Object(y["ref"])(-1);Object(y["watch"])(l,(function(){a.value===t.elementInfo.id&&(l.value||(t.elementInfo.vertical||-1===p.value||(c.updateElement({id:t.elementInfo.id,props:{height:p.value}}),p.value=-1),t.elementInfo.vertical&&-1!==m.value&&(c.updateElement({id:t.elementInfo.id,props:{width:m.value}}),m.value=-1)))}));var v=function(e){var n=e[0].contentRect;if(u.value){var o=n.height+20,a=n.width+20;t.elementInfo.vertical||t.elementInfo.height===o||(l.value?p.value=o:c.updateElement({id:t.elementInfo.id,props:{height:o}})),t.elementInfo.vertical&&t.elementInfo.width!==a&&(l.value?m.value=a:c.updateElement({id:t.elementInfo.id,props:{width:a}}))}},O=new ResizeObserver(v);Object(y["onMounted"])((function(){u.value&&O.observe(u.value)})),Object(y["onUnmounted"])((function(){u.value&&O.unobserve(u.value)}));var j=function(e){c.updateElement({id:t.elementInfo.id,props:{content:e}}),i()},h=function(){var e=t.elementInfo.content.replaceAll(/<[^>]+>/g,"");e||c.deleteElement(t.elementInfo.id)},x=Object(y["computed"])((function(){return a.value===t.elementInfo.id}));return Object(y["watch"])(x,(function(){x.value||h()})),function(t,n){var c=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-text",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",ref_key:"elementRef",ref:u,style:Object(y["normalizeStyle"])({width:e.elementInfo.vertical?"auto":e.elementInfo.width+"px",height:e.elementInfo.vertical?e.elementInfo.height+"px":"auto",backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:Object(y["unref"])(f),lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName,writingMode:e.elementInfo.vertical?"vertical-rl":"horizontal-tb"}),onMousedown:n[3]||(n[3]=function(e){return b(e)}),onTouchstart:n[4]||(n[4]=function(e){return b(e)})},[Object(y["createVNode"])(po,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(y["createVNode"])(fa,{class:"text",elementId:e.elementInfo.id,defaultColor:e.elementInfo.defaultColor,defaultFontName:e.elementInfo.defaultFontName,editable:!e.elementInfo.lock,value:e.elementInfo.content,style:Object(y["normalizeStyle"])({"--textIndent":"".concat(e.elementInfo.textIndent||0,"px"),"--paragraphSpace":"".concat(void 0===e.elementInfo.paragraphSpace?5:e.elementInfo.paragraphSpace,"px")}),onUpdate:n[0]||(n[0]=function(e){return j(e)}),onMousedown:n[1]||(n[1]=function(e){return b(e,!1)}),onTouchstart:n[2]||(n[2]=function(e){return b(e)})},null,8,["elementId","defaultColor","defaultFontName","editable","value","style"]),pa,ma],36)),[[c,e.contextmenus]])],4)],6)}}});n("7832");const Oa=mn()(va,[["__scopeId","data-v-e2312e2e"]]);var ja=Oa,ha=["id","gradientTransform"],ya=["stop-color"],ga=["stop-color"],xa=["id"],ka=["stop-color"],Ca=["stop-color"],Na=Object(y["defineComponent"])({__name:"GradientDefs",props:{id:{type:String,required:!0},type:{type:String},color1:{type:String,required:!0},color2:{type:String,required:!0},rotate:{type:Number,default:0}},setup:function(e){return function(t,n){return"linear"===e.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:"rotate(".concat(e.rotate,",0.5,0.5)")},[Object(y["createElementVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,ya),Object(y["createElementVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,ga)],8,ha)):(Object(y["openBlock"])(),Object(y["createElementBlock"])("radialGradient",{key:1,id:e.id},[Object(y["createElementVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,ka),Object(y["createElementVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,Ca)],8,xa))}}});const Ea=Na;var wa=Ea,Va=["width","height"],Ia={key:0},Sa=["transform"],Ba=["d","fill","stroke","stroke-width","stroke-dasharray"],La=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=ie(),c=ae(),o=Object(g["c"])(n),a=o.handleElementId,l=lt(),r=l.addHistorySnapshot,i=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo,n))},u=Object(y["computed"])((function(){return t.elementInfo.outline})),d=Ec(u),s=d.outlineWidth,f=d.outlineStyle,b=d.outlineColor,p=Object(y["computed"])((function(){return t.elementInfo.shadow})),m=gc(p),v=m.shadowStyle,O=Object(y["computed"])((function(){return t.elementInfo.flipH})),j=Object(y["computed"])((function(){return t.elementInfo.flipV})),h=xc(O,j),x=h.flipStyle,k=Object(y["ref"])(!1);Object(y["watch"])(a,(function(){a.value!==t.elementInfo.id&&k.value&&(k.value=!1)}));var C=Object(y["computed"])((function(){var e={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return t.elementInfo.text?t.elementInfo.text:e})),N=function(e){var n=Object(B["a"])(Object(B["a"])({},C.value),{},{content:e});c.updateElement({id:t.elementInfo.id,props:{text:n}}),r()},E=function(){if(t.elementInfo.text){var e=t.elementInfo.text.content.replaceAll(/<[^>]+>/g,"");e||(c.removeElementProps({id:t.elementInfo.id,propName:"text"}),r())}},w=Object(y["ref"])(),V=function(){k.value=!0,Object(y["nextTick"])((function(){return w.value&&w.value.focus()}))};return function(t,n){var c=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-shape",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({opacity:e.elementInfo.opacity,filter:Object(y["unref"])(v)?"drop-shadow(".concat(Object(y["unref"])(v),")"):"",transform:Object(y["unref"])(x),color:Object(y["unref"])(C).defaultColor,fontFamily:Object(y["unref"])(C).defaultFontName}),onMousedown:n[4]||(n[4]=function(e){return i(e)}),onTouchstart:n[5]||(n[5]=function(e){return i(e)}),onDblclick:n[6]||(n[6]=function(e){return V()})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?(Object(y["openBlock"])(),Object(y["createElementBlock"])("defs",Ia,[Object(y["createVNode"])(wa,{id:"editabel-gradient-".concat(e.elementInfo.id),type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox[0],", ").concat(e.elementInfo.height/e.elementInfo.viewBox[1],") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(y["createElementVNode"])("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:e.elementInfo.path,fill:e.elementInfo.gradient?"url(#editabel-gradient-".concat(e.elementInfo.id,")"):e.elementInfo.fill,stroke:Object(y["unref"])(b),"stroke-width":Object(y["unref"])(s),"stroke-dasharray":"dashed"===Object(y["unref"])(f)?"10 6":"0 0"},null,8,Ba)],8,Sa)],8,Va)),Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["shape-text",[Object(y["unref"])(C).align,{editable:k.value||Object(y["unref"])(C).content}]])},[k.value||Object(y["unref"])(C).content?(Object(y["openBlock"])(),Object(y["createBlock"])(fa,{key:0,ref_key:"prosemirrorEditorRef",ref:w,elementId:e.elementInfo.id,defaultColor:Object(y["unref"])(C).defaultColor,defaultFontName:Object(y["unref"])(C).defaultFontName,editable:!e.elementInfo.lock,value:Object(y["unref"])(C).content,onUpdate:n[0]||(n[0]=function(e){return N(e)}),onBlur:n[1]||(n[1]=function(e){return E()}),onMousedown:n[2]||(n[2]=function(e){return i(e,!1)}),onTouchstart:n[3]||(n[3]=function(e){return i(e,!1)})},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):Object(y["createCommentVNode"])("",!0)],2)],36)),[[c,e.contextmenus]])],4)],6)}}});n("990c");const _a=mn()(La,[["__scopeId","data-v-d4c718fa"]]);var Ta=_a,Ma=["id","markerWidth","markerHeight","refX","refY"],Da=["d","fill","transform"],za=Object(y["defineComponent"])({__name:"LinePointMarker",props:{id:{type:String,required:!0},position:{type:String,required:!0},type:{type:String,required:!0},color:{type:String},baseSize:{type:Number,required:!0}},setup:function(e){var t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},c={"arrow-start":180,"arrow-end":0},o=Object(y["computed"])((function(){return n[t.type]})),a=Object(y["computed"])((function(){return c["".concat(t.type,"-").concat(t.position)]||0})),l=Object(y["computed"])((function(){return t.baseSize<2?2:t.baseSize}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("marker",{id:"".concat(e.id,"-").concat(e.type,"-").concat(e.position),markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:3*Object(y["unref"])(l),markerHeight:3*Object(y["unref"])(l),refX:1.5*Object(y["unref"])(l),refY:1.5*Object(y["unref"])(l)},[Object(y["createElementVNode"])("path",{d:Object(y["unref"])(o),fill:e.color,transform:"scale(".concat(.3*Object(y["unref"])(l),", ").concat(.3*Object(y["unref"])(l),") rotate(").concat(Object(y["unref"])(a),", 5, 5)")},null,8,Da)],8,Ma)}}});const Aa=za;var Fa=Aa,Ra=["width","height"],Pa=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Ha=["d"],qa=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=function(e){t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},c=Object(y["computed"])((function(){return t.elementInfo.shadow})),o=gc(c),a=o.shadowStyle,l=Object(y["computed"])((function(){var e=Math.abs(t.elementInfo.start[0]-t.elementInfo.end[0]);return e<24?24:e})),r=Object(y["computed"])((function(){var e=Math.abs(t.elementInfo.start[1]-t.elementInfo.end[1]);return e<24?24:e})),i=Object(y["computed"])((function(){return"dashed"===t.elementInfo.style?"10 6":"0 0"})),u=Object(y["computed"])((function(){return Ke(t.elementInfo)}));return function(t,c){var o=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-shape",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({filter:Object(y["unref"])(a)?"drop-shadow(".concat(Object(y["unref"])(a),")"):""}),onMousedown:c[0]||(c[0]=function(e){return n(e)}),onTouchstart:c[1]||(c[1]=function(e){return n(e)})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:Object(y["unref"])(l),height:Object(y["unref"])(r)},[Object(y["createElementVNode"])("defs",null,[e.elementInfo.points[0]?(Object(y["openBlock"])(),Object(y["createBlock"])(Fa,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(y["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(y["openBlock"])(),Object(y["createBlock"])(Fa,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(y["createCommentVNode"])("",!0)]),Object(y["createElementVNode"])("path",{class:"line-point",d:Object(y["unref"])(u),stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":Object(y["unref"])(i),fill:"none","marker-start":e.elementInfo.points[0]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[0],"-start)"):"","marker-end":e.elementInfo.points[1]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[1],"-end)"):""},null,8,Pa),Object(y["withDirectives"])(Object(y["createElementVNode"])("path",{class:"line-path",d:Object(y["unref"])(u),stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Ha),[[o,e.contextmenus]])],8,Ra))],36)],6)}}});n("bde5");const Ua=mn()(qa,[["__scopeId","data-v-6550e504"]]);var Ga=Ua,Xa=n("b239"),Ya=Object(y["defineComponent"])({__name:"Chart",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},type:{type:String,required:!0},data:{type:Object,required:!0},options:{type:Object},themeColor:{type:Array,required:!0},legends:{type:Array,required:!0},gridColor:{type:String},legend:{type:String}},setup:function(e){var t,n=e,c=Object(y["ref"])(),o=Object(y["inject"])(nc)||Object(y["ref"])(1),a=Object(y["computed"])((function(){return n.legend?n.height-20:n.height})),l=function(){return Object(B["a"])(Object(B["a"])({},n.data),{},{series:n.data.series[0]})},r=function(){var e=n.options||{};return Object(B["a"])(Object(B["a"])({},e),{},{width:n.width*o.value,height:a.value*o.value})},i=function(){if(c.value){var e=r();"bar"===n.type&&(t=new Xa["a"](c.value,n.data,e)),"line"===n.type&&(t=new Xa["b"](c.value,n.data,e)),"pie"===n.type&&(t=new Xa["c"](c.value,l(),e))}},u=function(){if(t){var e=r(),c="pie"===n.type?l():n.data;t.update(c,e)}else i()};Object(y["watch"])([function(){return n.width},function(){return n.height},function(){return n.data},function(){return n.options},o],u),Object(y["onMounted"])(i);var d=Object(y["computed"])((function(){var e=[];if(n.themeColor.length>=10)e=n.themeColor;else if(1===n.themeColor.length)e=ee()(n.themeColor[0]).analogous(10).map((function(e){return e.toHexString()}));else{var t=n.themeColor.length,c=ee()(n.themeColor[t-1]).analogous(11-t).map((function(e){return e.toHexString()}));e=[].concat(Object(Q["a"])(n.themeColor.slice(0,t-1)),Object(Q["a"])(c))}return e})),s=function(){if(c.value)for(var e=0;e<10;e++)c.value.style.setProperty("--theme-color-".concat(e+1),d.value[e])};Object(y["watch"])(d,s),Object(y["onMounted"])(s);var f=function(){c.value&&n.gridColor&&c.value.style.setProperty("--grid-color",n.gridColor)};return Object(y["watch"])((function(){return n.gridColor}),f),Object(y["onMounted"])(f),function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"chart",style:Object(y["normalizeStyle"])({flexDirection:"top"===e.legend?"column-reverse":"column"})},[Object(y["createElementVNode"])("div",{class:"chart-content",ref_key:"chartRef",ref:c,style:Object(y["normalizeStyle"])({width:e.width+"px",height:Object(y["unref"])(a)+"px",transform:"scale(".concat(1/Object(y["unref"])(o),")")})},null,4),e.legend?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"legends",style:Object(y["normalizeStyle"])({transform:"scale(".concat(1/Object(y["unref"])(o),")")})},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.legends,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"legend",key:n,style:Object(y["normalizeStyle"])({color:e.gridColor})},[Object(y["createElementVNode"])("div",{class:"block",style:Object(y["normalizeStyle"])({backgroundColor:Object(y["unref"])(d)[n]})},null,4),Object(y["createTextVNode"])(" "+Object(y["toDisplayString"])(t),1)],4)})),128))],4)):Object(y["createCommentVNode"])("",!0)],4)}}});n("6116"),n("68b8");const Za=mn()(Ya,[["__scopeId","data-v-1f8d633e"]]);var Wa=Za,Ja=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=function(e){t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},c=function(){na.emit(bo.OPEN_CHART_DATA_EDITOR)};return function(t,o){var a=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-chart",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({backgroundColor:e.elementInfo.fill}),onMousedown:o[0]||(o[0]=function(e){return n(e)}),onTouchstart:o[1]||(o[1]=function(e){return n(e)}),onDblclick:o[2]||(o[2]=function(e){return c()})},[Object(y["createVNode"])(po,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(y["createVNode"])(Wa,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor,legends:e.elementInfo.data.legends,legend:e.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36)),[[a,e.contextmenus]])],4)],6)}}});n("8216");const Ka=mn()(Ja,[["__scopeId","data-v-f3c03862"]]);var Qa=Ka,$a=function(e){if(!e)return{};var t=e.bold,n=e.em,c=e.underline,o=e.strikethrough,a=e.color,l=e.backcolor,r=e.fontsize,i=e.fontname,u=e.align,d="".concat(c?"underline":""," ").concat(o?"line-through":"");return" "===d&&(d="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:d,color:a||"#000",backgroundColor:l||"",fontSize:r||"14px",fontFamily:i||"微软雅黑",textAlign:u||"left"}},el=function(e){return e.replace(/\n/g,"").replace(/ /g," ")},tl=function(e){var t=Object(y["computed"])((function(){for(var t=[],n=0;n1||a.rowspan>1)for(var l=n;l=d&&p<=f&&v>=s&&v<=b&&l.push("".concat(p,"_").concat(v));return l}));Object(y["watch"])(k,(function(e,t){Object(te["isEqual"])(e,t)||n("changeSelectedCells",k.value)}));var C=Object(y["computed"])((function(){return k.value.length>1?null:k.value[0]})),N=(Object(y["computed"])((function(){if(!r.value.length)return null;var e=Object(me["a"])(r.value,2),t=e[0],n=e[1];if(!i.value.length)return{row:[t,t],col:[n,n]};var c=Object(me["a"])(i.value,2),o=c[0],a=c[1];if(t===o&&n===a)return{row:[t,t],col:[n,n]};var l=Math.min(t,o),u=Math.min(n,a),d=Math.max(t,o),s=Math.max(n,a);return{row:[l,d],col:[u,s]}})),function(){return l.value=!1}),E=function(e,t,n){0===e.button&&(i.value=[],l.value=!0,r.value=[t,n])},w=function(e,t){l.value&&(i.value=[e,t])};Object(y["onMounted"])((function(){document.addEventListener("mouseup",N)})),Object(y["onUnmounted"])((function(){document.removeEventListener("mouseup",N)}));var I=function(e,t){return h.value.includes("".concat(e,"_").concat(t))},S=function(e){var t=u.value.length-1;r.value=[0,e],i.value=[t,e]},L=function(e){var t=u.value[e].length-1;r.value=[e,0],i.value=[e,t]},_=function(){var e=u.value.length-1,t=u.value[e].length-1;r.value=[0,0],i.value=[e,t]},T=function(e){for(var t=JSON.parse(JSON.stringify(u.value)),n=u.value[e],c=[],o=0;o=0;i--)if(!I(i,r)){t[i][r].rowspan=t[i][r].rowspan-1;break}t.splice(e,1),u.value=t},M=function(e){for(var t=JSON.parse(JSON.stringify(u.value)),c=[],o=0;o=0;i--)if(!I(r,i)){t[r][i].colspan=t[r][i].colspan-1;break}u.value=t.map((function(t){return t.splice(e,1),t})),b.value.splice(e,1),n("changeColWidths",b.value)},D=function(e){for(var t=JSON.parse(JSON.stringify(u.value)),n=[],c=0;cu.value.length&&(l=t+o-u.value.length),c+a>u.value[0].length&&(r=c+a-u.value[0].length),(l||r)&&A(l,r),Object(y["nextTick"])((function(){for(var l=0;l1,n=e[0].length>1;return{canDeleteRow:t,canDeleteCol:n}},W=function(e,t){var n=k.value.length>1,c=u.value[e][t],o=n,a=!n&&(c.rowspan>1||c.colspan>1);return{canMerge:o,canSplit:a}},J=function(e){var t=e.dataset.cellIndex,n=+t.split("_")[0],c=+t.split("_")[1];k.value.includes("".concat(n,"_").concat(c))||(r.value=[n,c],i.value=[]);var o=W(n,c),a=o.canMerge,l=o.canSplit,u=Z(),d=u.canDeleteRow,s=u.canDeleteCol;return[{text:"插入列",children:[{text:"到左侧",handler:function(){return z(c)}},{text:"到右侧",handler:function(){return z(c+1)}}]},{text:"插入行",children:[{text:"到上方",handler:function(){return D(n)}},{text:"到下方",handler:function(){return D(n+1)}}]},{text:"删除列",disable:!s,handler:function(){return M(c)}},{text:"删除行",disable:!d,handler:function(){return T(n)}},{divider:!0},{text:"合并单元格",disable:!a,handler:F},{text:"取消合并单元格",disable:!l,handler:function(){return R(n,c)}},{divider:!0},{text:"选中当前列",handler:function(){return S(c)}},{text:"选中当前行",handler:function(){return L(n)}},{text:"选中全部单元格",handler:_}]};return function(t,n){var c,o,a,l,r,i=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"editable-table",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(p)+"px"})},[e.editable?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",rl,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(v),(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"drag-line",key:t,style:Object(y["normalizeStyle"])({left:e+"px"}),onMousedown:function(e){return P(e,t)}},null,44,il)})),128))])):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("table",{class:Object(y["normalizeClass"])({theme:Object(y["unref"])(d),"row-header":null===(c=Object(y["unref"])(d))||void 0===c?void 0:c.rowHeader,"row-footer":null===(o=Object(y["unref"])(d))||void 0===o?void 0:o.rowFooter,"col-header":null===(a=Object(y["unref"])(d))||void 0===a?void 0:a.colHeader,"col-footer":null===(l=Object(y["unref"])(d))||void 0===l?void 0:l.colFooter}),style:Object(y["normalizeStyle"])("--themeColor: ".concat(null===(r=Object(y["unref"])(d))||void 0===r?void 0:r.color,"; --subThemeColor1: ").concat(Object(y["unref"])(f)[0],"; --subThemeColor2: ").concat(Object(y["unref"])(f)[1]))},[Object(y["createElementVNode"])("colgroup",null,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(b.value,(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("col",{span:"1",key:t,width:e},null,8,ul)})),128))]),Object(y["createElementVNode"])("tbody",null,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(u),(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("tr",{key:n},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t,(function(t,c){return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("td",{class:Object(y["normalizeClass"])(["cell",{selected:Object(y["unref"])(k).includes("".concat(n,"_").concat(c))&&Object(y["unref"])(k).length>1,active:Object(y["unref"])(C)==="".concat(n,"_").concat(c)}]),style:Object(y["normalizeStyle"])(Object(B["a"])({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px"},Object(y["unref"])($a)(t.style))),key:t.id,rowspan:t.rowspan,colspan:t.colspan,"data-cell-index":"".concat(n,"_").concat(c),onMousedown:function(e){return E(e,n,c)},onMouseenter:function(e){return w(n,c)}},[Object(y["unref"])(C)==="".concat(n,"_").concat(c)?(Object(y["openBlock"])(),Object(y["createBlock"])(ll,{key:0,class:Object(y["normalizeClass"])(["cell-text",{active:Object(y["unref"])(C)==="".concat(n,"_").concat(c)}]),value:t.text,onUpdateValue:function(e){return Object(y["unref"])(G)(e,n,c)},onInsertExcelData:function(e){return X(e,n,c)}},null,8,["class","value","onUpdateValue","onInsertExcelData"])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:1,class:"cell-text",innerHTML:Object(y["unref"])(el)(t.text)},null,8,sl))],46,dl)),[[y["vShow"],!Object(y["unref"])(h).includes("".concat(n,"_").concat(c))],[i,function(e){return J(e)}]])})),128))])})),128))])],6)],4)}}});n("bc8c");const bl=mn()(fl,[["__scopeId","data-v-bae8c794"]]);var pl=bl,ml={class:"element-content"},vl=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=ie(),c=ae(),o=Object(g["c"])(n),a=o.canvasScale,l=o.handleElementId,r=o.isScaling,i=Object(y["ref"])(),u=lt(),d=u.addHistorySnapshot,s=function(e){t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},f=Object(y["ref"])(!1);Object(y["watch"])(l,(function(){l.value!==t.elementInfo.id&&(f.value=!1)})),Object(y["watch"])(f,(function(){n.setDisableHotkeysState(f.value)}));var b=function(){t.elementInfo.lock||(f.value=!0)},p=Object(y["ref"])(-1);Object(y["watch"])(r,(function(){l.value===t.elementInfo.id&&(r.value&&(f.value=!1),r.value||-1===p.value||(c.updateElement({id:t.elementInfo.id,props:{height:p.value}}),p.value=-1))}));var m=function(e){var n=e[0].contentRect;if(i.value){var o=n.height;t.elementInfo.height!==o&&(r.value?p.value=o:c.updateElement({id:t.elementInfo.id,props:{height:o}}))}},v=new ResizeObserver(m);Object(y["onMounted"])((function(){i.value&&v.observe(i.value)})),Object(y["onUnmounted"])((function(){i.value&&v.unobserve(i.value)}));var O=function(e){c.updateElement({id:t.elementInfo.id,props:{data:e}}),d()},j=function(e){var n=e.reduce((function(e,t){return e+t})),o=e.map((function(e){return e/n}));c.updateElement({id:t.elementInfo.id,props:{width:n,colWidths:o}}),d()},h=function(e){Object(y["nextTick"])((function(){return n.setSelectedTableCells(e)}))};return function(t,n){var c=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-table",{lock:e.elementInfo.lock}]),ref_key:"elementRef",ref:i,style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ml,[Object(y["createVNode"])(pl,{onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(){}),["stop"])),data:e.elementInfo.data,width:e.elementInfo.width,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme,editable:f.value,onChange:n[1]||(n[1]=function(e){return O(e)}),onChangeColWidths:n[2]||(n[2]=function(e){return j(e)}),onChangeSelectedCells:n[3]||(n[3]=function(e){return h(e)})},null,8,["data","width","colWidths","outline","theme","editable"]),!f.value||e.elementInfo.lock?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:Object(y["normalizeClass"])(["table-mask",{lock:e.elementInfo.lock}]),onDblclick:n[4]||(n[4]=function(e){return b()}),onMousedown:n[5]||(n[5]=function(e){return s(e)}),onTouchstart:n[6]||(n[6]=function(e){return s(e)})},[Object(y["createElementVNode"])("div",{class:"mask-tip",style:Object(y["normalizeStyle"])({transform:"scale(".concat(1/Object(y["unref"])(a),")")})},"双击编辑",4)],34)):Object(y["createCommentVNode"])("",!0)])),[[c,e.contextmenus]])],4)],6)}}});n("76c1");const Ol=mn()(vl,[["__scopeId","data-v-6391c486"]]);var jl=Ol,hl=["width","height","stroke","stroke-width"],yl=["transform"],gl=["d"],xl=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=function(e){t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))},c=function(){na.emit(bo.OPEN_LATEX_EDITOR)};return function(t,o){var a=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-latex",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",onMousedown:o[0]||(o[0]=function(e){return n(e)}),onTouchstart:o[1]||(o[1]=function(e){return n(e)}),onDblclick:o[2]||(o[2]=function(e){return c()})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Object(y["createElementVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox[0],", ").concat(e.elementInfo.height/e.elementInfo.viewBox[1],") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(y["createElementVNode"])("path",{d:e.elementInfo.path},null,8,gl)],8,yl)],8,hl))],32)),[[a,e.contextmenus]])],4)],6)}}});n("0f64");const kl=mn()(xl,[["__scopeId","data-v-31390388"]]);var Cl=kl,Nl=function(e,t){Object(y["onMounted"])((function(){if(t.value){var n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&"hls"===n&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),"hls"===n){var c=window.Hls;if(c&&c.isSupported()){var o=new c;o.loadSource(e),o.attachMedia(t.value)}}else if("flv"===n){var a=window.flvjs;if(a&&a.isSupported()){var l=a.createPlayer({type:"flv",url:e});l.attachMediaElement(t.value),l.load()}}}}))},El=function(e){return Object(y["pushScopeId"])("data-v-2fc4c202"),e=e(),Object(y["popScopeId"])(),e},wl=["src","poster"],Vl={class:"bezel"},Il=El((function(){return Object(y["createElementVNode"])("div",{class:"controller-mask"},null,-1)})),Sl={class:"controller"},Bl={class:"icons icons-left"},Ll={class:"icon-content"},_l={class:"volume"},Tl={class:"icon-content"},Ml=El((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),Dl=[Ml],zl={class:"time"},Al={class:"ptime"},Fl=Object(y["createTextVNode"])(" / "),Rl={class:"dtime"},Pl={class:"icons icons-right"},Hl={class:"speed"},ql={class:"icon speed-icon"},Ul=["onClick"],Gl=El((function(){return Object(y["createElementVNode"])("span",{class:"icon-content"},"循环",-1)})),Xl=[Gl],Yl={class:"bar"},Zl=El((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),Wl=[Zl],Jl=Object(y["defineComponent"])({__name:"index",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},src:{type:String,required:!0},poster:{type:String,default:""},scale:{type:Number,default:1}},setup:function(e){var t=e,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===e||isNaN(e))return"00:00";var t=function(e){return e<10?"0"+e:""+e},n=Math.floor(e/3600),c=Math.floor((e-3600*n)/60),o=Math.floor(e-3600*n-60*c);return(n>0?[n,c,o]:[c,o]).map(t).join(":")},c=function(e){return e.getBoundingClientRect().left},o=Object(y["ref"])(),a=Object(y["ref"])(),l=Object(y["ref"])(),r=Object(y["ref"])(.5),i=Object(y["ref"])(!0),u=Object(y["ref"])(0),d=Object(y["ref"])(0),s=Object(y["ref"])(0),f=Object(y["ref"])(!1),b=Object(y["ref"])(!1),p=Object(y["ref"])(1),m=Object(y["ref"])(!1),v=Object(y["ref"])("00:00"),O=Object(y["ref"])("0"),j=Object(y["computed"])((function(){return n(u.value)})),h=Object(y["computed"])((function(){return n(d.value)})),g=Object(y["computed"])((function(){return u.value/d.value*100+"%"})),x=Object(y["computed"])((function(){return s.value/d.value*100+"%"})),k=Object(y["computed"])((function(){return 100*r.value+"%"})),C=Object(y["ref"])(!1),N=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],E=function(e){o.value&&(e=Math.max(e,0),e=Math.min(e,d.value),o.value.currentTime=e,u.value=e)},w=function(){o.value&&(i.value=!1,o.value.play(),b.value=!0)},V=function(){o.value&&(i.value=!0,o.value.pause(),b.value=!0)},I=function(){i.value?w():V()},S=function(e){o.value&&(e=Math.max(e,0),e=Math.min(e,1),o.value.volume=e,r.value=e,o.value.muted&&0!==e&&(o.value.muted=!1))},B=function(e){o.value&&(o.value.playbackRate=e),p.value=e},L=function(){var e;d.value=(null===(e=o.value)||void 0===e?void 0:e.duration)||0},_=function(){var e;u.value=(null===(e=o.value)||void 0===e?void 0:e.currentTime)||0},T=function(){f.value?(E(0),w()):V()},M=function(){var e;s.value=null!==(e=o.value)&&void 0!==e&&e.buffered.length?o.value.buffered.end(o.value.buffered.length-1):0},D=function(){return Be["a"].error("视频加载失败")},z=function(e){if(o.value&&a.value){var t="clientX"in e?e.clientX:e.changedTouches[0].clientX,n=(t-c(a.value))/a.value.clientWidth;n=Math.max(n,0),n=Math.min(n,1);var l=n*d.value;o.value.currentTime=l,u.value=l}},A=function e(t){if(o.value&&a.value){var n="clientX"in t?t.clientX:t.changedTouches[0].clientX,l=(n-c(a.value))/a.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);var r=l*d.value;o.value.currentTime=r,u.value=r,document.removeEventListener("mousemove",z),document.removeEventListener("touchmove",z),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)}},F=function(){document.addEventListener("mousemove",z),document.addEventListener("touchmove",z),document.addEventListener("mouseup",A),document.addEventListener("touchend",A)},R=function(e){if(l.value){var t="clientX"in e?e.clientX:e.changedTouches[0].clientX,n=(t-c(l.value))/45;S(n)}},P=function e(){document.removeEventListener("mousemove",R),document.removeEventListener("touchmove",R),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)},H=function(){document.addEventListener("mousemove",R),document.addEventListener("touchmove",R),document.addEventListener("mouseup",P),document.addEventListener("touchend",P)},q=function(e){if(l.value){var t=(e.clientX-c(l.value))/45;S(t)}},U=function(e){if(d.value&&a.value){var t=a.value.getBoundingClientRect().left,c=e.clientX-t;if(c<0||c>a.value.offsetWidth)return;var o=d.value*(c/a.value.offsetWidth);O.value="".concat(c-(o>=3600?25:20),"px"),v.value=n(o),m.value=!0}},G=function(){o.value&&(o.value.muted?(o.value.muted=!1,S(.5)):(o.value.muted=!0,S(0)))},X=function(){f.value=!f.value},Y=Object(y["ref"])(-1),Z=Object(y["ref"])(!1),W=function(){Z.value=!1,clearTimeout(Y.value),Y.value=setTimeout((function(){var e;null!==(e=o.value)&&void 0!==e&&e.played.length&&(Z.value=!0)}),3e3)};return Nl(t.src,o),function(t,n){var c=Object(y["resolveComponent"])("IconPause"),u=Object(y["resolveComponent"])("IconPlayOne"),d=Object(y["resolveComponent"])("IconVolumeMute"),s=Object(y["resolveComponent"])("IconVolumeNotice"),E=Object(y["resolveComponent"])("IconVolumeSmall");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["video-player",{"hide-controller":Z.value}]),style:Object(y["normalizeStyle"])({width:e.width*e.scale+"px",height:e.height*e.scale+"px",transform:"scale(".concat(1/e.scale,")")}),onMousemove:n[22]||(n[22]=function(e){return W()}),onClick:n[23]||(n[23]=function(e){return W()})},[Object(y["createElementVNode"])("div",{class:"video-wrap",onClick:n[8]||(n[8]=function(e){return I()})},[Object(y["createElementVNode"])("video",{class:"video",ref_key:"videoRef",ref:o,src:e.src,poster:e.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:n[0]||(n[0]=function(e){return L()}),onTimeupdate:n[1]||(n[1]=function(e){return _()}),onEnded:n[2]||(n[2]=function(e){return T()}),onProgress:n[3]||(n[3]=function(e){return M()}),onPlay:n[4]||(n[4]=function(e){return W()}),onPause:n[5]||(n[5]=function(e){return W()}),onError:n[6]||(n[6]=function(e){return D()})},null,40,wl),Object(y["createElementVNode"])("div",Vl,[Object(y["createElementVNode"])("span",{class:Object(y["normalizeClass"])(["bezel-icon",{"bezel-transition":b.value}]),onAnimationend:n[7]||(n[7]=function(e){return b.value=!1})},[i.value?(Object(y["openBlock"])(),Object(y["createBlock"])(c,{key:0})):(Object(y["openBlock"])(),Object(y["createBlock"])(u,{key:1}))],34)])]),Il,Object(y["createElementVNode"])("div",Sl,[Object(y["createElementVNode"])("div",Bl,[Object(y["createElementVNode"])("div",{class:"icon play-icon",onClick:n[9]||(n[9]=function(e){return I()})},[Object(y["createElementVNode"])("span",Ll,[i.value?(Object(y["openBlock"])(),Object(y["createBlock"])(u,{key:0})):(Object(y["openBlock"])(),Object(y["createBlock"])(c,{key:1}))])]),Object(y["createElementVNode"])("div",_l,[Object(y["createElementVNode"])("div",{class:"icon volume-icon",onClick:n[10]||(n[10]=function(e){return G()})},[Object(y["createElementVNode"])("span",Tl,[0===r.value?(Object(y["openBlock"])(),Object(y["createBlock"])(d,{key:0})):1===r.value?(Object(y["openBlock"])(),Object(y["createBlock"])(s,{key:1})):(Object(y["openBlock"])(),Object(y["createBlock"])(E,{key:2}))])]),Object(y["createElementVNode"])("div",{class:"volume-bar-wrap",onMousedown:n[11]||(n[11]=function(e){return H()}),onTouchstart:n[12]||(n[12]=function(e){return H()}),onClick:n[13]||(n[13]=function(e){return q(e)})},[Object(y["createElementVNode"])("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:l},[Object(y["createElementVNode"])("div",{class:"volume-bar-inner",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(k)})},Dl,4)],512)],32)]),Object(y["createElementVNode"])("span",zl,[Object(y["createElementVNode"])("span",Al,Object(y["toDisplayString"])(Object(y["unref"])(j)),1),Fl,Object(y["createElementVNode"])("span",Rl,Object(y["toDisplayString"])(Object(y["unref"])(h)),1)])]),Object(y["createElementVNode"])("div",Pl,[Object(y["createElementVNode"])("div",Hl,[Object(y["createElementVNode"])("div",ql,[Object(y["createElementVNode"])("span",{class:"icon-content",onClick:n[14]||(n[14]=function(e){return C.value=!C.value})},"倍速"),C.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"speed-menu",onMouseleave:n[15]||(n[15]=function(e){return C.value=!1})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(N,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["speed-menu-item",{active:e.value===p.value}]),key:e.label,onClick:function(t){return B(e.value)}},Object(y["toDisplayString"])(e.label),11,Ul)})),64))],32)):Object(y["createCommentVNode"])("",!0)])]),Object(y["createElementVNode"])("div",{class:"loop",onClick:n[16]||(n[16]=function(e){return X()})},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["icon loop-icon",{active:f.value}])},Xl,2)])]),Object(y["createElementVNode"])("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:n[17]||(n[17]=function(e){return F()}),onTouchstart:n[18]||(n[18]=function(e){return F()}),onMousemove:n[19]||(n[19]=function(e){return U(e)}),onMouseenter:n[20]||(n[20]=function(e){return m.value=!0}),onMouseleave:n[21]||(n[21]=function(e){return m.value=!1})},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["bar-time",{hidden:!m.value}]),style:Object(y["normalizeStyle"])({left:O.value})},Object(y["toDisplayString"])(v.value),7),Object(y["createElementVNode"])("div",Yl,[Object(y["createElementVNode"])("div",{class:"loaded",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(x)})},null,4),Object(y["createElementVNode"])("div",{class:"played",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(g)})},Wl,4)])],544)])],38)}}});n("3696");const Kl=mn()(Jl,[["__scopeId","data-v-2fc4c202"]]);var Ql=Kl,$l=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo,n))};return function(t,n){var a=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-video",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",onMousedown:n[2]||(n[2]=function(e){return o(e,!1)}),onTouchstart:n[3]||(n[3]=function(e){return o(e,!1)})},[Object(y["createVNode"])(Ql,{width:e.elementInfo.width,height:e.elementInfo.height,src:e.elementInfo.src,poster:e.elementInfo.poster,scale:Object(y["unref"])(c)},null,8,["width","height","src","poster","scale"]),(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(["t","b","l","r"],(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["handler-border",e]),key:e,onMousedown:n[0]||(n[0]=function(e){return o(e)}),onTouchstart:n[1]||(n[1]=function(e){return o(e)})},null,34)})),64))],32)),[[a,e.contextmenus]])],4)],6)}}});n("679c");const er=mn()($l,[["__scopeId","data-v-9d5469c6"]]);var tr=er,nr=function(e){return Object(y["pushScopeId"])("data-v-121f3d11"),e=e(),Object(y["popScopeId"])(),e},cr=["src","autoplay"],or={class:"controller"},ar={class:"icons"},lr={class:"icon-content"},rr={class:"volume"},ir={class:"icon-content"},ur=nr((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),dr=[ur],sr={class:"time"},fr={class:"ptime"},br=Object(y["createTextVNode"])(" / "),pr={class:"dtime"},mr={class:"bar"},vr=nr((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),Or=[vr],jr=Object(y["defineComponent"])({__name:"AudioPlayer",props:{src:{type:String,required:!0},loop:{type:Boolean,required:!0},autoplay:{type:Boolean,default:!1},scale:{type:Number,default:1}},setup:function(e,t){var n=t.expose,c=e,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===e||isNaN(e))return"00:00";var t=function(e){return e<10?"0"+e:""+e},n=Math.floor(e/3600),c=Math.floor((e-3600*n)/60),o=Math.floor(e-3600*n-60*c);return(n>0?[n,c,o]:[c,o]).map(t).join(":")},a=function(e){return e.getBoundingClientRect().left},l=Object(y["ref"])(),r=Object(y["ref"])(),i=Object(y["ref"])(),u=Object(y["ref"])(.5),d=Object(y["ref"])(!0),s=Object(y["ref"])(0),f=Object(y["ref"])(0),b=Object(y["ref"])(0),p=Object(y["ref"])(!1),m=Object(y["ref"])("00:00"),v=Object(y["ref"])("0"),O=Object(y["computed"])((function(){return o(s.value)})),j=Object(y["computed"])((function(){return o(f.value)})),h=Object(y["computed"])((function(){return s.value/f.value*100+"%"})),g=Object(y["computed"])((function(){return b.value/f.value*100+"%"})),x=Object(y["computed"])((function(){return 100*u.value+"%"})),k=function(e){l.value&&(e=Math.max(e,0),e=Math.min(e,f.value),l.value.currentTime=e,s.value=e)},C=function(){l.value&&(d.value=!1,l.value.play())},N=function(){l.value&&(d.value=!0,l.value.pause())},E=function(){d.value?C():N()},w=function(e){l.value&&(e=Math.max(e,0),e=Math.min(e,1),l.value.volume=e,u.value=e,l.value.muted&&0!==e&&(l.value.muted=!1))},V=function(){var e;f.value=(null===(e=l.value)||void 0===e?void 0:e.duration)||0},I=function(){var e;s.value=(null===(e=l.value)||void 0===e?void 0:e.currentTime)||0},S=function(){d.value=!1},B=function(){c.loop?(k(0),C()):N()},L=function(){var e;b.value=null!==(e=l.value)&&void 0!==e&&e.buffered.length?l.value.buffered.end(l.value.buffered.length-1):0},_=function(){return Be["a"].error("视频加载失败")},T=function(e){if(l.value&&r.value){var t="clientX"in e?e.clientX:e.changedTouches[0].clientX,n=(t-a(r.value))/r.value.clientWidth;n=Math.max(n,0),n=Math.min(n,1);var c=n*f.value;l.value.currentTime=c,s.value=c}},M=function e(t){if(l.value&&r.value){var n="clientX"in t?t.clientX:t.changedTouches[0].clientX,c=(n-a(r.value))/r.value.clientWidth;c=Math.max(c,0),c=Math.min(c,1);var o=c*f.value;l.value.currentTime=o,s.value=o,document.removeEventListener("mousemove",T),document.removeEventListener("touchmove",T),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)}},D=function(){document.addEventListener("mousemove",T),document.addEventListener("touchmove",T),document.addEventListener("mouseup",M),document.addEventListener("touchend",M)},z=function(e){if(i.value){var t="clientX"in e?e.clientX:e.changedTouches[0].clientX,n=(t-a(i.value))/45;w(n)}},A=function e(){document.removeEventListener("mousemove",z),document.removeEventListener("touchmove",z),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)},F=function(){document.addEventListener("mousemove",z),document.addEventListener("touchmove",z),document.addEventListener("mouseup",A),document.addEventListener("touchend",A)},R=function(e){if(i.value){var t=(e.clientX-a(i.value))/45;w(t)}},P=function(e){if(f.value&&r.value){var t=r.value.getBoundingClientRect().left,n=e.clientX-t;if(n<0||n>r.value.offsetWidth)return;var c=f.value*(n/r.value.offsetWidth);v.value="".concat(n-(c>=3600?25:20),"px"),m.value=o(c),p.value=!0}},H=function(){l.value&&(l.value.muted?(l.value.muted=!1,w(.5)):(l.value.muted=!0,w(0)))};return n({toggle:E}),function(t,n){var c=Object(y["resolveComponent"])("IconPlayOne"),o=Object(y["resolveComponent"])("IconPause"),a=Object(y["resolveComponent"])("IconVolumeMute"),s=Object(y["resolveComponent"])("IconVolumeNotice"),f=Object(y["resolveComponent"])("IconVolumeSmall");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"audio-player",style:Object(y["normalizeStyle"])({transform:"scale(".concat(1/e.scale,")")})},[Object(y["createElementVNode"])("audio",{class:"audio",ref_key:"audioRef",ref:l,src:e.src,autoplay:e.autoplay,onDurationchange:n[0]||(n[0]=function(e){return V()}),onTimeupdate:n[1]||(n[1]=function(e){return I()}),onPlay:n[2]||(n[2]=function(e){return S()}),onEnded:n[3]||(n[3]=function(e){return B()}),onProgress:n[4]||(n[4]=function(e){return L()}),onError:n[5]||(n[5]=function(e){return _()})},null,40,cr),Object(y["createElementVNode"])("div",or,[Object(y["createElementVNode"])("div",ar,[Object(y["createElementVNode"])("div",{class:"icon play-icon",onClick:n[6]||(n[6]=function(e){return E()})},[Object(y["createElementVNode"])("span",lr,[d.value?(Object(y["openBlock"])(),Object(y["createBlock"])(c,{key:0})):(Object(y["openBlock"])(),Object(y["createBlock"])(o,{key:1}))])]),Object(y["createElementVNode"])("div",rr,[Object(y["createElementVNode"])("div",{class:"icon volume-icon",onClick:n[7]||(n[7]=function(e){return H()})},[Object(y["createElementVNode"])("span",ir,[0===u.value?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0})):1===u.value?(Object(y["openBlock"])(),Object(y["createBlock"])(s,{key:1})):(Object(y["openBlock"])(),Object(y["createBlock"])(f,{key:2}))])]),Object(y["createElementVNode"])("div",{class:"volume-bar-wrap",onMousedown:n[8]||(n[8]=function(e){return F()}),onTouchstart:n[9]||(n[9]=function(e){return F()}),onClick:n[10]||(n[10]=function(e){return R(e)})},[Object(y["createElementVNode"])("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:i},[Object(y["createElementVNode"])("div",{class:"volume-bar-inner",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(x)})},dr,4)],512)],32)])]),Object(y["createElementVNode"])("span",sr,[Object(y["createElementVNode"])("span",fr,Object(y["toDisplayString"])(Object(y["unref"])(O)),1),br,Object(y["createElementVNode"])("span",pr,Object(y["toDisplayString"])(Object(y["unref"])(j)),1)]),Object(y["createElementVNode"])("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:r,onMousedown:n[11]||(n[11]=function(e){return D()}),onTouchstart:n[12]||(n[12]=function(e){return D()}),onMousemove:n[13]||(n[13]=function(e){return P(e)}),onMouseenter:n[14]||(n[14]=function(e){return p.value=!0}),onMouseleave:n[15]||(n[15]=function(e){return p.value=!1})},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["bar-time",{hidden:!p.value}]),style:Object(y["normalizeStyle"])({left:v.value})},Object(y["toDisplayString"])(m.value),7),Object(y["createElementVNode"])("div",mr,[Object(y["createElementVNode"])("div",{class:"loaded",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(g)})},null,4),Object(y["createElementVNode"])("div",{class:"played",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(h)})},Or,4)])],544)])],4)}}});n("3929");const hr=mn()(jr,[["__scopeId","data-v-121f3d11"]]);var yr=hr,gr=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=n.handleElementId,a=Object(g["c"])(ae()),l=a.viewportRatio,r=Object(y["computed"])((function(){return Math.min(t.elementInfo.width,t.elementInfo.height)+"px"})),i=Object(y["computed"])((function(){var e=nt,n=nt*l.value,o=280/c.value,a=50/c.value,r=t.elementInfo.width,i=t.elementInfo.height,u=t.elementInfo.left,d=t.elementInfo.top,s=0,f=i;return u+o>=e&&(s=r-o),d+i+a>=n&&(f=-a),{left:s+"px",top:f+"px"}})),u=function(e){t.elementInfo.lock||(e.stopPropagation(),t.selectElement(e,t.elementInfo))};return function(t,n){var a=Object(y["resolveComponent"])("IconVolumeNotice"),l=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-audio",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",onMousedown:n[1]||(n[1]=function(e){return u(e)}),onTouchstart:n[2]||(n[2]=function(e){return u(e)})},[Object(y["createVNode"])(a,{class:"audio-icon",style:Object(y["normalizeStyle"])({fontSize:Object(y["unref"])(r),color:e.elementInfo.color})},null,8,["style"]),Object(y["unref"])(o)===e.elementInfo.id?(Object(y["openBlock"])(),Object(y["createBlock"])(yr,{key:0,class:"audio-player",style:Object(y["normalizeStyle"])(Object(B["a"])({},Object(y["unref"])(i))),src:e.elementInfo.src,loop:e.elementInfo.loop,scale:Object(y["unref"])(c),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(){}),["stop"]))},null,8,["style","src","loop","scale"])):Object(y["createCommentVNode"])("",!0)],32)),[[l,e.contextmenus]])],4)],6)}}});n("75e6");const xr=mn()(gr,[["__scopeId","data-v-001bfbc4"]]);var kr=xr,Cr=["id"],Nr=Object(y["defineComponent"])({__name:"EditableElement",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},isMultiSelect:{type:Boolean,required:!0},selectElement:{type:Function,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(y["computed"])((function(){var e,n=(e={},Object(pe["a"])(e,Ve.IMAGE,ro),Object(pe["a"])(e,Ve.TEXT,ja),Object(pe["a"])(e,Ve.SHAPE,Ta),Object(pe["a"])(e,Ve.LINE,Ga),Object(pe["a"])(e,Ve.CHART,Qa),Object(pe["a"])(e,Ve.TABLE,jl),Object(pe["a"])(e,Ve.LATEX,Cl),Object(pe["a"])(e,Ve.VIDEO,tr),Object(pe["a"])(e,Ve.AUDIO,kr),e);return n[t.elementInfo.type]||null})),c=Ot(),o=c.orderElement,a=yc(),l=a.alignElementToCanvas,r=bt(),i=r.combineElements,u=r.uncombineElements,d=ft(),s=d.deleteElement,f=st(),b=f.lockElement,p=f.unlockElement,m=pt(),v=m.copyElement,O=m.pasteElement,j=m.cutElement,h=mt(),g=h.selectAllElement,x=function(){return t.elementInfo.lock?[{text:"解锁",handler:function(){return p(t.elementInfo)}}]:[{text:"剪切",subText:"Ctrl + X",handler:j},{text:"复制",subText:"Ctrl + C",handler:v},{text:"粘贴",subText:"Ctrl + V",handler:O},{divider:!0},{text:"水平居中",handler:function(){return l(C.HORIZONTAL)},children:[{text:"水平垂直居中",handler:function(){return l(C.CENTER)}},{text:"水平居中",handler:function(){return l(C.HORIZONTAL)}},{text:"左对齐",handler:function(){return l(C.LEFT)}},{text:"右对齐",handler:function(){return l(C.RIGHT)}}]},{text:"垂直居中",handler:function(){return l(C.VERTICAL)},children:[{text:"水平垂直居中",handler:function(){return l(C.CENTER)}},{text:"垂直居中",handler:function(){return l(C.VERTICAL)}},{text:"顶部对齐",handler:function(){return l(C.TOP)}},{text:"底部对齐",handler:function(){return l(C.BOTTOM)}}]},{divider:!0},{text:"置于顶层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:function(){return o(t.elementInfo,k.TOP)},children:[{text:"置于顶层",handler:function(){return o(t.elementInfo,k.TOP)}},{text:"上移一层",handler:function(){return o(t.elementInfo,k.UP)}}]},{text:"置于底层",disable:t.isMultiSelect&&!t.elementInfo.groupId,handler:function(){return o(t.elementInfo,k.BOTTOM)},children:[{text:"置于底层",handler:function(){return o(t.elementInfo,k.BOTTOM)}},{text:"下移一层",handler:function(){return o(t.elementInfo,k.DOWN)}}]},{divider:!0},{text:"设置链接",handler:t.openLinkDialog},{text:t.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:t.elementInfo.groupId?u:i,hide:!t.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:g},{text:"锁定",subText:"Ctrl + L",handler:b},{text:"删除",subText:"Delete",handler:s}]};return function(t,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"editable-element",ref:"elementRef",id:"editable-element-".concat(e.elementInfo.id),style:Object(y["normalizeStyle"])({zIndex:e.elementIndex})},[(Object(y["openBlock"])(),Object(y["createBlock"])(Object(y["resolveDynamicComponent"])(Object(y["unref"])(n)),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:x},null,8,["elementInfo","selectElement"]))],12,Cr)}}});const Er=Nr;var wr=Er,Vr=Object(y["defineComponent"])({__name:"MouseSelection",props:{top:{type:Number,required:!0},left:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},quadrant:{type:Number,required:!0,validator:function(e){return[1,2,3,4].includes(e)}}},setup:function(e){return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])("mouse-selection quadrant-".concat(e.quadrant)),style:Object(y["normalizeStyle"])({top:e.top+"px",left:e.left+"px",width:e.width+"px",height:e.height+"px"})},null,6)}}});n("4b9a");const Ir=mn()(Vr,[["__scopeId","data-v-0d6c0f73"]]);var Sr=Ir,Br={class:"grid-lines"},Lr=["d","stroke"],_r=Object(y["defineComponent"])({__name:"GridLines",setup:function(e){var t=Object(g["c"])(ie()),n=t.canvasScale,c=t.gridLineSize,o=Object(g["c"])(ae()),a=o.currentSlide,l=o.viewportRatio,r=Object(y["computed"])((function(){var e;return null===(e=a.value)||void 0===e?void 0:e.background})),i=Object(y["computed"])((function(){var e,t=(null===(e=r.value)||void 0===e?void 0:e.color)||"#fff",n=["#000","#fff"];return ee.a.mostReadable(t,n,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()})),u=Object(y["computed"])((function(){for(var e=nt,t=nt*l.value,n="",o=0;o<=Math.floor(t/c.value);o++)n+="M0 ".concat(o*c.value," L").concat(e," ").concat(o*c.value," ");for(var a=0;a<=Math.floor(e/c.value);a++)n+="M".concat(a*c.value," 0 L").concat(a*c.value," ").concat(t," ");return n}));return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",Br,[Object(y["createElementVNode"])("path",{style:Object(y["normalizeStyle"])({transform:"scale(".concat(Object(y["unref"])(n),")")}),d:Object(y["unref"])(u),fill:"none",stroke:Object(y["unref"])(i),"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Lr)])}}});n("dd7b");const Tr=mn()(_r,[["__scopeId","data-v-aebac580"]]);var Mr=Tr,Dr=function(e){var t=Object(y["computed"])((function(){if(!e.value)return{backgroundColor:"#fff"};var t=e.value,n=t.type,c=t.color,o=t.image,a=t.imageSize,l=t.gradientColor,r=t.gradientRotate,i=t.gradientType;if("solid"===n)return{backgroundColor:c};if("image"===n)return o?"repeat"===a?{backgroundImage:"url(".concat(o),backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:"url(".concat(o),backgroundRepeat:"no-repeat",backgroundSize:a||"cover"}:{backgroundColor:"#fff"};if("gradient"===n){var u=r||0,d=l?l[0]:"#fff",s=l?l[1]:"#fff";return"radial"===i?{backgroundImage:"radial-gradient(".concat(d,", ").concat(s)}:{backgroundImage:"linear-gradient(".concat(u,"deg, ").concat(d,", ").concat(s)}}return{backgroundColor:"#fff"}}));return{backgroundStyle:t}},zr=Object(y["defineComponent"])({__name:"ViewportBackground",setup:function(e){var t=Object(g["c"])(ie()),n=t.gridLineSize,c=Object(g["c"])(ae()),o=c.currentSlide,a=Object(y["computed"])((function(){var e;return null===(e=o.value)||void 0===e?void 0:e.background})),l=Dr(a),r=l.backgroundStyle;return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"viewport-background",style:Object(y["normalizeStyle"])(Object(y["unref"])(r))},[Object(y["unref"])(n)?(Object(y["openBlock"])(),Object(y["createBlock"])(Mr,{key:0})):Object(y["createCommentVNode"])("",!0)],4)}}});n("5977");const Ar=mn()(zr,[["__scopeId","data-v-61c4db4a"]]);var Fr=Ar,Rr=Object(y["defineComponent"])({__name:"AlignmentLine",props:{type:{type:String,required:!0},axis:{type:Object,required:!0},length:{type:Number,required:!0},canvasScale:{type:Number,required:!0}},setup:function(e){var t=e,n=Object(y["computed"])((function(){return t.axis.x*t.canvasScale+"px"})),c=Object(y["computed"])((function(){return t.axis.y*t.canvasScale+"px"})),o=Object(y["computed"])((function(){return"vertical"===t.type?{height:t.length*t.canvasScale+"px"}:{width:t.length*t.canvasScale+"px"}}));return function(t,a){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"alignment-line",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(n),top:Object(y["unref"])(c)})},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["line",e.type]),style:Object(y["normalizeStyle"])(Object(y["unref"])(o))},null,6)],4)}}});n("5688");const Pr=mn()(Rr,[["__scopeId","data-v-37fa6068"]]);var Hr=Pr,qr={class:"ruler"},Ur=Object(y["defineComponent"])({__name:"Ruler",props:{viewportStyles:{type:Object,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Object(y["computed"])((function(){return t.viewportStyles.width*c.value/10}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",qr,[Object(y["createElementVNode"])("div",{class:"h",style:Object(y["normalizeStyle"])({width:e.viewportStyles.width*Object(y["unref"])(c)+"px",left:e.viewportStyles.left+"px"})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(10,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["ruler-marker-100",{hide:Object(y["unref"])(o)<36,omit:Object(y["unref"])(o)<72}]),key:"marker-100-".concat(e)},[Object(y["createElementVNode"])("span",null,Object(y["toDisplayString"])(100*e),1)],2)})),64))],4),Object(y["createElementVNode"])("div",{class:"v",style:Object(y["normalizeStyle"])({height:e.viewportStyles.height*Object(y["unref"])(c)+"px",top:e.viewportStyles.top+"px"})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(10,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["ruler-marker-100",{hide:Object(y["unref"])(o)<36,omit:Object(y["unref"])(o)<72}]),key:e,style:Object(y["normalizeStyle"])({height:Object(y["unref"])(o)+"px"})},[Object(y["createElementVNode"])("span",null,Object(y["toDisplayString"])(100*e),1)],6)})),64))],4)])}}});n("9854");const Gr=mn()(Ur,[["__scopeId","data-v-60e06332"]]);var Xr=Gr,Yr=["width","height"],Zr=["d"],Wr=Object(y["defineComponent"])({__name:"ElementCreateSelection",emits:["created"],setup:function(e,t){var n=t.emit,c=ie(),o=Object(g["c"])(c),a=o.creatingElement,l=Object(g["c"])(ke()),r=l.ctrlOrShiftKeyActive,i=Object(y["ref"])(),u=Object(y["ref"])(),d=Object(y["ref"])(),s=Object(y["ref"])({x:0,y:0});Object(y["onMounted"])((function(){if(d.value){var e=d.value.getBoundingClientRect(),t=e.x,n=e.y;s.value={x:t,y:n}}}));var f=function(e){var t=!0,o=e.pageX,l=e.pageY;i.value=[o,l],document.onmousemove=function(e){if(a.value&&t){var n=e.pageX,c=e.pageY;if(r.value){var i=n-o,d=c-l,s=Math.abs(i),f=Math.abs(d);if("shape"===a.value.type){var b=d>0&&i<0||d<0&&i>0;s>f?c=b?l-i:l+i:n=b?o-d:o+d}else"line"===a.value.type&&(s>f?c=l:n=o)}u.value=[n,c]}},document.onmouseup=function(e){var r,d;if(document.onmousemove=null,document.onmouseup=null,2!==e.button){t=!1;var s=e.pageX,f=e.pageY,b=30;if("line"===(null===(r=a.value)||void 0===r?void 0:r.type)&&(Math.abs(s-o)>=b||Math.abs(f-l)>=b))n("created",{start:i.value,end:u.value});else if("line"!==(null===(d=a.value)||void 0===d?void 0:d.type)&&Math.abs(s-o)>=b&&Math.abs(f-l)>=b)n("created",{start:i.value,end:u.value});else{var p=200,m=Math.min(s,o),v=Math.min(f,l),O=Math.max(s,o),j=Math.max(f,l),h=O-m>=b?O-m:p,y=j-v>=b?j-v:p;n("created",{start:[m,v],end:[m+h,v+y]})}}else setTimeout((function(){return c.setCreatingElement(null)}),0)}},b=Object(y["computed"])((function(){if(!i.value||!u.value)return null;if(!a.value||"line"!==a.value.type)return null;var e=Object(me["a"])(i.value,2),t=e[0],n=e[1],c=Object(me["a"])(u.value,2),o=c[0],l=c[1],r=Math.min(t,o),d=Math.max(t,o),s=Math.min(n,l),f=Math.max(n,l),b=d-r>=24?d-r:24,p=f-s>=24?f-s:24,m=t===r?0:d-r,v=n===s?0:f-s,O=o===r?0:d-r,j=l===s?0:f-s,h="M".concat(m,", ").concat(v," L").concat(O,", ").concat(j);return{svgWidth:b,svgHeight:p,startX:m,startY:v,endX:O,endY:j,path:h}})),p=Object(y["computed"])((function(){if(!i.value||!u.value)return{};var e=Object(me["a"])(i.value,2),t=e[0],n=e[1],c=Object(me["a"])(u.value,2),o=c[0],a=c[1],l=Math.min(t,o),r=Math.max(t,o),d=Math.min(n,a),f=Math.max(n,a),b=r-l,p=f-d;return{left:l-s.value.x+"px",top:d-s.value.y+"px",width:b+"px",height:p+"px"}}));return function(e,t){var n,c;return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-create-selection",ref_key:"selectionRef",ref:d,onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(e){return f(e)}),["stop"])),onContextmenu:t[1]||(t[1]=Object(y["withModifiers"])((function(){}),["stop","prevent"]))},[i.value&&u.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:Object(y["normalizeClass"])(["selection",null===(n=Object(y["unref"])(a))||void 0===n?void 0:n.type]),style:Object(y["normalizeStyle"])(Object(y["unref"])(p))},["line"===(null===(c=Object(y["unref"])(a))||void 0===c?void 0:c.type)&&Object(y["unref"])(b)?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,overflow:"visible",width:Object(y["unref"])(b).svgWidth,height:Object(y["unref"])(b).svgHeight},[Object(y["createElementVNode"])("path",{d:Object(y["unref"])(b).path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,Zr)],8,Yr)):Object(y["createCommentVNode"])("",!0)],6)):Object(y["createCommentVNode"])("",!0)],544)}}});n("7aed");const Jr=mn()(Wr,[["__scopeId","data-v-5a941f07"]]);var Kr=Jr,Qr=function(e,t){var n=Object(y["computed"])((function(){return[{direction:E.LEFT_TOP,style:{}},{direction:E.TOP,style:{left:e.value/2+"px"}},{direction:E.RIGHT_TOP,style:{left:e.value+"px"}},{direction:E.LEFT,style:{top:t.value/2+"px"}},{direction:E.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:E.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:E.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:E.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]})),c=Object(y["computed"])((function(){return[{direction:E.LEFT,style:{top:t.value/2+"px"}},{direction:E.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]})),o=Object(y["computed"])((function(){return[{direction:E.TOP,style:{left:e.value/2+"px"}},{direction:E.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}}]})),a=Object(y["computed"])((function(){return[{type:N.T,style:{width:e.value+"px"}},{type:N.B,style:{top:t.value+"px",width:e.value+"px"}},{type:N.L,style:{height:t.value+"px"}},{type:N.R,style:{left:e.value+"px",height:t.value+"px"}}]}));return{resizeHandlers:n,textElementResizeHandlers:c,verticalTextElementResizeHandlers:o,borderLines:a}},$r=Object(y["defineComponent"])({__name:"ResizeHandler",props:{type:{type:String,default:""},rotate:{type:Number,default:0}},setup:function(e){var t=e,n=Object(y["computed"])((function(){var e="rotate-",n=t.rotate;return n>-22.5&&n<=22.5?e+0:n>22.5&&n<=67.5?e+45:n>67.5&&n<=112.5?e+90:n>112.5&&n<=157.5?e+135:n>157.5||n<=-157.5?e+0:n>-157.5&&n<=-112.5?e+45:n>-112.5&&n<=-67.5?e+90:n>-67.5&&n<=-22.5?e+135:e+0}));return function(t,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["resize-handler",Object(y["unref"])(n),e.type])},null,2)}}});n("b510");const ei=mn()($r,[["__scopeId","data-v-881ee3f8"]]);var ti=ei,ni=Object(y["defineComponent"])({__name:"BorderLine",props:{type:{type:String,required:!0},isWide:{type:Boolean,default:!1}},setup:function(e){return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["border-line",e.type,{wide:e.isWide}])},null,2)}}});n("2460");const ci=mn()(ni,[["__scopeId","data-v-7170d1be"]]);var oi=ci,ai=Object(y["defineComponent"])({__name:"MultiSelectOperate",props:{elementList:{type:Array,required:!0},scaleMultiElement:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.activeElementIdList,o=n.canvasScale,a=Object(y["computed"])((function(){return t.elementList.filter((function(e){return c.value.includes(e.id)}))})),l=Object(y["ref"])({minX:0,maxX:0,minY:0,maxY:0}),r=Object(y["computed"])((function(){return(l.value.maxX-l.value.minX)*o.value})),i=Object(y["computed"])((function(){return(l.value.maxY-l.value.minY)*o.value})),u=Qr(r,i),d=u.resizeHandlers,s=u.borderLines,f=function(){var e=Xe(a.value),t=e.minX,n=e.maxX,c=e.minY,o=e.maxY;l.value={minX:t,maxX:n,minY:c,maxY:o}};Object(y["watchEffect"])(f);var b=Object(y["computed"])((function(){return a.value.some((function(e){return!!("image"!==e.type&&"shape"!==e.type||e.rotate)}))}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"multi-select-operate",style:Object(y["normalizeStyle"])({left:l.value.minX*Object(y["unref"])(o)+"px",top:l.value.minY*Object(y["unref"])(o)+"px"})},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(s),(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(oi,{key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),Object(y["unref"])(b)?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],{key:0},Object(y["renderList"])(Object(y["unref"])(d),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{key:t.direction,type:t.direction,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleMultiElement(n,l.value,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))],4)}}});n("a669");const li=mn()(ai,[["__scopeId","data-v-defbd922"]]);var ri=li,ii={class:"rotate-handler"};function ui(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ii)}n("1ebd");const di={},si=mn()(di,[["render",ui],["__scopeId","data-v-b99d8dae"]]);var fi=si,bi={inheritAttrs:!1},pi=Object(y["defineComponent"])(Object(B["a"])(Object(B["a"])({},bi),{},{__name:"ImageElementOperate",props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=n.clipingImageElementId,a=Object(y["computed"])((function(){return o.value===t.elementInfo.id})),l=Object(y["computed"])((function(){return t.elementInfo.width*c.value})),r=Object(y["computed"])((function(){return t.elementInfo.height*c.value})),i=Qr(l,r),u=i.resizeHandlers,d=i.borderLines;return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["image-element-operate",{cliping:Object(y["unref"])(a)}])},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(d),(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(oi,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(u),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(fi,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(l)/2+"px"}),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)],2)}}}));n("ae9f");const mi=mn()(pi,[["__scopeId","data-v-46b250c2"]]);var vi=mi,Oi={class:"text-element-operate"},ji={inheritAttrs:!1},hi=Object(y["defineComponent"])(Object(B["a"])(Object(B["a"])({},ji),{},{__name:"TextElementOperate",props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Object(y["computed"])((function(){return t.elementInfo.width*c.value})),a=Object(y["computed"])((function(){return t.elementInfo.height*c.value})),l=Qr(o,a),r=l.textElementResizeHandlers,i=l.verticalTextElementResizeHandlers,u=l.borderLines,d=Object(y["computed"])((function(){return t.elementInfo.vertical?i.value:r.value}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Oi,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(u),(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(oi,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(d),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(fi,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(o)/2+"px"}),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)])}}}));const yi=hi;var gi=yi,xi={class:"shape-element-operate"},ki={inheritAttrs:!1},Ci=Object(y["defineComponent"])(Object(B["a"])(Object(B["a"])({},ki),{},{__name:"ShapeElementOperate",props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0},moveShapeKeypoint:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Object(y["computed"])((function(){return t.elementInfo.width*c.value})),a=Object(y["computed"])((function(){return t.elementInfo.height*c.value})),l=Qr(o,a),r=l.resizeHandlers,i=l.borderLines,u=Object(y["computed"])((function(){if(!t.elementInfo.pathFormula||!t.elementInfo.keypoint)return{};var e=ct[t.elementInfo.pathFormula];if("editable"in e){var n=e.getBaseSize(t.elementInfo.width,t.elementInfo.height)*t.elementInfo.keypoint;if("left"===e.relative)return{left:n*c.value+"px"};if("right"===e.relative)return{left:(t.elementInfo.width-n)*c.value+"px"};if("center"===e.relative)return{left:(t.elementInfo.width-n)/2*c.value+"px"};if("top"===e.relative)return{top:n*c.value+"px"};if("bottom"===e.relative)return{top:(t.elementInfo.height-n)*c.value+"px"}}return{}}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",xi,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(i),(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(oi,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(r),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(fi,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(o)/2+"px"}),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"]),void 0!==e.elementInfo.keypoint?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"operate-keypoint-handler",style:Object(y["normalizeStyle"])(Object(y["unref"])(u)),onMousedown:n[1]||(n[1]=Object(y["withModifiers"])((function(t){return e.moveShapeKeypoint(t,e.elementInfo)}),["stop"]))},null,36)):Object(y["createCommentVNode"])("",!0)],64)):Object(y["createCommentVNode"])("",!0)])}}}));n("614e");const Ni=mn()(Ci,[["__scopeId","data-v-fd38df18"]]);var Ei=Ni,wi={class:"line-element-operate"},Vi=["width","height","stroke"],Ii={key:0},Si=["x1","y1","x2","y2"],Bi=["x1","y1","x2","y2"],Li=["x1","y1","x2","y2"],_i=["x1","y1","x2","y2"],Ti={inheritAttrs:!1},Mi=Object(y["defineComponent"])(Object(B["a"])(Object(B["a"])({},Ti),{},{__name:"LineElementOperate",props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},dragLineElement:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Object(y["computed"])((function(){return Math.max(t.elementInfo.start[0],t.elementInfo.end[0])})),a=Object(y["computed"])((function(){return Math.max(t.elementInfo.start[1],t.elementInfo.end[1])})),l=Object(y["computed"])((function(){var e=[{handler:w.START,style:{left:t.elementInfo.start[0]*c.value+"px",top:t.elementInfo.start[1]*c.value+"px"}},{handler:w.END,style:{left:t.elementInfo.end[0]*c.value+"px",top:t.elementInfo.end[1]*c.value+"px"}}];if(t.elementInfo.curve||t.elementInfo.broken){var n=t.elementInfo.curve||t.elementInfo.broken;e.push({handler:w.C,style:{left:n[0]*c.value+"px",top:n[1]*c.value+"px"}})}else if(t.elementInfo.cubic){var o=Object(me["a"])(t.elementInfo.cubic,2),a=o[0],l=o[1];e.push({handler:w.C1,style:{left:a[0]*c.value+"px",top:a[1]*c.value+"px"}}),e.push({handler:w.C2,style:{left:l[0]*c.value+"px",top:l[1]*c.value+"px"}})}return e}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",wi,[e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(l),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{class:"operate-resize-handler",key:t.handler,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.dragLineElement(n,e.elementInfo,t.handler)}),["stop"])},null,8,["style","onMousedown"])})),128)),(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{width:Object(y["unref"])(o)||1,height:Object(y["unref"])(a)||1,stroke:e.elementInfo.color,overflow:"visible",style:Object(y["normalizeStyle"])({transform:"scale(".concat(Object(y["unref"])(c),")")})},[e.elementInfo.curve?(Object(y["openBlock"])(),Object(y["createElementBlock"])("g",Ii,[Object(y["createElementVNode"])("line",{class:"anchor-line",x1:e.elementInfo.start[0],y1:e.elementInfo.start[1],x2:e.elementInfo.curve[0],y2:e.elementInfo.curve[1]},null,8,Si),Object(y["createElementVNode"])("line",{class:"anchor-line",x1:e.elementInfo.end[0],y1:e.elementInfo.end[1],x2:e.elementInfo.curve[0],y2:e.elementInfo.curve[1]},null,8,Bi)])):Object(y["createCommentVNode"])("",!0),e.elementInfo.cubic?(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],{key:1},Object(y["renderList"])(e.elementInfo.cubic,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("g",{key:n},[0===n?(Object(y["openBlock"])(),Object(y["createElementBlock"])("line",{key:0,class:"anchor-line",x1:e.elementInfo.start[0],y1:e.elementInfo.start[1],x2:t[0],y2:t[1]},null,8,Li)):Object(y["createCommentVNode"])("",!0),1===n?(Object(y["openBlock"])(),Object(y["createElementBlock"])("line",{key:1,class:"anchor-line",x1:e.elementInfo.end[0],y1:e.elementInfo.end[1],x2:t[0],y2:t[1]},null,8,_i)):Object(y["createCommentVNode"])("",!0)])})),128)):Object(y["createCommentVNode"])("",!0)],12,Vi))],64)):Object(y["createCommentVNode"])("",!0)])}}}));n("fac9");const Di=mn()(Mi,[["__scopeId","data-v-4659f395"]]);var zi=Di,Ai={class:"table-element-operate"},Fi={inheritAttrs:!1},Ri=Object(y["defineComponent"])(Object(B["a"])(Object(B["a"])({},Fi),{},{__name:"TableElementOperate",props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Object(y["computed"])((function(){return t.elementInfo.outline.width||1})),a=Object(y["computed"])((function(){return(t.elementInfo.width+o.value)*c.value})),l=Object(y["computed"])((function(){return t.elementInfo.height*c.value})),r=Qr(a,l),i=r.textElementResizeHandlers,u=r.borderLines;return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ai,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(u),(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(oi,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(i),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(fi,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(a)/2+"px"}),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)])}}}));const Pi=Ri;var Hi=Pi,qi={class:"common-element-operate"},Ui={inheritAttrs:!1},Gi=Object(y["defineComponent"])(Object(B["a"])(Object(B["a"])({},Ui),{},{__name:"CommonElementOperate",props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Object(y["computed"])((function(){return t.elementInfo.width*c.value})),a=Object(y["computed"])((function(){return t.elementInfo.height*c.value})),l=Qr(o,a),r=l.resizeHandlers,i=l.borderLines,u=Object(y["computed"])((function(){return["video","audio"].includes(t.elementInfo.type)}));return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",qi,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(i),(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(oi,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(r),(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(ti,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["unref"])(u)?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createBlock"])(fi,{key:0,class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(o)/2+"px"}),onMousedown:n[0]||(n[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"]))],64)):Object(y["createCommentVNode"])("",!0)])}}}));const Xi=Gi;var Yi=Xi,Zi=function(){var e=ae(),t=lt(),n=t.addHistorySnapshot,c=function(t,c){var o=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if("web"===c.type&&!o.test(c.target))return Be["a"].error("不是正确的网页链接地址"),!1;var a={link:c};return e.updateElement({id:t.id,props:a}),n(),!0},o=function(t){e.removeElementProps({id:t.id,propName:"link"}),n()};return{setLink:c,removeLink:o}},Wi=["href"],Ji={key:1,class:"link"},Ki={class:"btns"},Qi=Object(y["defineComponent"])({__name:"LinkHandler",props:{elementInfo:{type:Object,required:!0},link:{type:Object,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=Zi(),a=o.removeLink,l=Object(y["computed"])((function(){return"line"===t.elementInfo.type?0:t.elementInfo.height}));return function(t,n){var o=Object(y["resolveComponent"])("Divider");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"link-handler",style:Object(y["normalizeStyle"])({top:Object(y["unref"])(l)*Object(y["unref"])(c)+10+"px"})},["web"===e.link.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])("a",{key:0,class:"link",href:e.link.target,target:"_blank"},Object(y["toDisplayString"])(e.link.target),9,Wi)):(Object(y["openBlock"])(),Object(y["createElementBlock"])("a",Ji,"幻灯片页面 "+Object(y["toDisplayString"])(e.link.target),1)),Object(y["createElementVNode"])("div",Ki,[Object(y["createElementVNode"])("div",{class:"btn",onClick:n[0]||(n[0]=function(t){return e.openLinkDialog()})},"更换"),Object(y["createVNode"])(o,{type:"vertical"}),Object(y["createElementVNode"])("div",{class:"btn",onClick:n[1]||(n[1]=function(t){return Object(y["unref"])(a)(e.elementInfo)})},"移除")])],4)}}});n("7851");const $i=mn()(Qi,[["__scopeId","data-v-bb722fc0"]]);var eu=$i,tu={key:1,class:"animation-index"},nu=Object(y["defineComponent"])({__name:"index",props:{elementInfo:{type:Object,required:!0},isSelected:{type:Boolean,required:!0},isActive:{type:Boolean,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0},dragLineElement:{type:Function,required:!0},moveShapeKeypoint:{type:Function,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=e,n=Object(g["c"])(ie()),c=n.canvasScale,o=n.toolbarState,a=Object(g["c"])(ae()),l=a.formatedAnimations,r=Object(y["computed"])((function(){var e,n=(e={},Object(pe["a"])(e,Ve.IMAGE,vi),Object(pe["a"])(e,Ve.TEXT,gi),Object(pe["a"])(e,Ve.SHAPE,Ei),Object(pe["a"])(e,Ve.LINE,zi),Object(pe["a"])(e,Ve.TABLE,Hi),Object(pe["a"])(e,Ve.CHART,Yi),Object(pe["a"])(e,Ve.LATEX,Yi),Object(pe["a"])(e,Ve.VIDEO,Yi),Object(pe["a"])(e,Ve.AUDIO,Yi),e);return n[t.elementInfo.type]||null})),i=Object(y["computed"])((function(){for(var e=[],n=0;n0?de("-"):e.deltaY<0&&de("+"):e.deltaY>0?se(V.DOWN):e.deltaY<0&&se(V.UP)},be=function(){t.setRulerState(!i.value)},pe=hc(v),me=pe.insertElementFromCreateSelection,ve=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:Q},{text:"全选",subText:"Ctrl + A",handler:Z},{text:"标尺",subText:i.value?"√":"",handler:be},{text:"网格线",handler:function(){return t.setGridLineSize(r.value?0:50)},children:[{text:"无",subText:0===r.value?"√":"",handler:function(){return t.setGridLineSize(0)}},{text:"小",subText:25===r.value?"√":"",handler:function(){return t.setGridLineSize(25)}},{text:"中",subText:50===r.value?"√":"",handler:function(){return t.setGridLineSize(50)}},{text:"大",subText:100===r.value?"√":"",handler:function(){return t.setGridLineSize(100)}}]},{text:"重置当前页",handler:J},{divider:!0},{text:"幻灯片放映",subText:"F5",handler:ee}]};return Object(y["provide"])(nc,d),function(e,t){var n=Object(y["resolveComponent"])("Modal"),l=Object(y["resolveDirective"])("contextmenu"),r=Object(y["resolveDirective"])("click-outside");return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"canvas",ref_key:"canvasRef",ref:C,onWheel:t[3]||(t[3]=function(e){return fe(e)}),onMousedown:t[4]||(t[4]=function(e){return oe(e)})},[Object(y["unref"])(u)?(Object(y["openBlock"])(),Object(y["createBlock"])(Kr,{key:0,onCreated:t[0]||(t[0]=function(e){return Object(y["unref"])(me)(e)})})):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",{class:"viewport-wrapper",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(w).width*Object(y["unref"])(d)+"px",height:Object(y["unref"])(w).height*Object(y["unref"])(d)+"px",left:Object(y["unref"])(w).left+"px",top:Object(y["unref"])(w).top+"px"})},[Object(y["createElementVNode"])("div",jd,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(O.value,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(Hr,{key:t,type:e.type,axis:e.axis,length:e.length,canvasScale:Object(y["unref"])(d)},null,8,["type","axis","length","canvasScale"])})),128)),Object(y["unref"])(c).length>1?(Object(y["openBlock"])(),Object(y["createBlock"])(ri,{key:0,elementList:x.value,scaleMultiElement:Object(y["unref"])(H)},null,8,["elementList","scaleMultiElement"])):Object(y["createCommentVNode"])("",!0),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(x.value,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(ou,{key:e.id,elementInfo:e,isSelected:Object(y["unref"])(c).includes(e.id),isActive:Object(y["unref"])(a)===e.id,isActiveGroupElement:Object(y["unref"])(o)===e.id,isMultiSelect:Object(y["unref"])(c).length>1,rotateElement:Object(y["unref"])(U),scaleElement:Object(y["unref"])(P),openLinkDialog:h,dragLineElement:Object(y["unref"])(z),moveShapeKeypoint:Object(y["unref"])(X)},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement","moveShapeKeypoint"])})),128)),Object(y["createVNode"])(Fr)]),Object(y["createElementVNode"])("div",{class:"viewport",ref_key:"viewportRef",ref:v,style:Object(y["normalizeStyle"])({transform:"scale(".concat(Object(y["unref"])(d),")")})},[Object(y["unref"])(B)?(Object(y["openBlock"])(),Object(y["createBlock"])(Sr,{key:0,top:Object(y["unref"])(S).top,left:Object(y["unref"])(S).left,width:Object(y["unref"])(S).width,height:Object(y["unref"])(S).height,quadrant:Object(y["unref"])(L)},null,8,["top","left","width","height","quadrant"])):Object(y["createCommentVNode"])("",!0),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(x.value,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(wr,{key:e.id,elementInfo:e,elementIndex:t+1,isMultiSelect:Object(y["unref"])(c).length>1,selectElement:Object(y["unref"])(F),openLinkDialog:h},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement"])})),128))],4)],4),Object(y["unref"])(m)?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",hd)):Object(y["createCommentVNode"])("",!0),Object(y["unref"])(i)?(Object(y["openBlock"])(),Object(y["createBlock"])(Xr,{key:2,viewportStyles:Object(y["unref"])(w)},null,8,["viewportStyles"])):Object(y["createCommentVNode"])("",!0),Object(y["createVNode"])(n,{visible:j.value,"onUpdate:visible":t[2]||(t[2]=function(e){return j.value=e}),footer:null,centered:"",width:540,destroyOnClose:""},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(Od,{onClose:t[1]||(t[1]=function(e){return j.value=!1})})]})),_:1},8,["visible"])],32)),[[l,ve],[r,le]])}}});n("0239");const gd=mn()(yd,[["__scopeId","data-v-27676bf3"]]);var xd=gd,kd={class:"shape-pool"},Cd={class:"category-name"},Nd={class:"shape-list"},Ed=["onClick"],wd={overflow:"visible",width:"18",height:"18"},Vd=["transform"],Id=["fill","stroke","d"],Sd=Object(y["defineComponent"])({__name:"ShapePool",emits:["select"],setup:function(e,t){var n=t.emit,c=function(e){n("select",e)};return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",kd,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(ot),(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"category",key:e.type},[Object(y["createElementVNode"])("div",Cd,Object(y["toDisplayString"])(e.type),1),Object(y["createElementVNode"])("div",Nd,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.children,(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"shape-item",key:t},[Object(y["createElementVNode"])("div",{class:"shape-content",onClick:function(t){return c(e)}},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",wd,[Object(y["createElementVNode"])("g",{transform:"scale(".concat(18/e.viewBox[0],", ").concat(18/e.viewBox[1],") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(y["createElementVNode"])("path",{class:Object(y["normalizeClass"])(["shape-path",{outlined:e.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.outlined?"#999":"transparent",stroke:e.outlined?"transparent":"#999","stroke-width":"2",d:e.path},null,10,Id)],8,Vd)]))],8,Ed)])})),128))])])})),128))])}}});n("c24c9");const Bd=mn()(Sd,[["__scopeId","data-v-5788e0d2"]]);var Ld=Bd,_d=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],Td={class:"line-pool"},Md={class:"category-name"},Dd={class:"line-list"},zd=["onClick"],Ad={overflow:"visible",width:"20",height:"20"},Fd=["d","stroke-dasharray","marker-start","marker-end"],Rd=Object(y["defineComponent"])({__name:"LinePool",emits:["select"],setup:function(e,t){var n=t.emit,c=function(e){n("select",e)};return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Td,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(_d),(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"category",key:e.type},[Object(y["createElementVNode"])("div",Md,Object(y["toDisplayString"])(e.type),1),Object(y["createElementVNode"])("div",Dd,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.children,(function(e,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"line-item",key:n},[Object(y["createElementVNode"])("div",{class:"line-content",onClick:function(t){return c(e)}},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",Ad,[Object(y["createElementVNode"])("defs",null,[e.points[0]?(Object(y["openBlock"])(),Object(y["createBlock"])(Fa,{key:0,class:"line-marker",id:"preset-line-".concat(t,"-").concat(n),position:"start",type:e.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(y["createCommentVNode"])("",!0),e.points[1]?(Object(y["openBlock"])(),Object(y["createBlock"])(Fa,{key:1,class:"line-marker",id:"preset-line-".concat(t,"-").concat(n),position:"end",type:e.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(y["createCommentVNode"])("",!0)]),Object(y["createElementVNode"])("path",{class:"line-path",d:e.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===e.style?"0, 0":"4, 1","marker-start":e.points[0]?"url(#".concat("preset-line-".concat(t,"-").concat(n),"-",e.points[0],"-start)"):"","marker-end":e.points[1]?"url(#".concat("preset-line-".concat(t,"-").concat(n),"-",e.points[1],"-end)"):""},null,8,Fd)]))],8,zd)])})),128))])])})),128))])}}});n("3836");const Pd=mn()(Rd,[["__scopeId","data-v-bca68faa"]]);var Hd=Pd,qd={class:"chart-pool"},Ud=["onClick"],Gd=Object(y["defineComponent"])({__name:"ChartPool",emits:["select"],setup:function(e,t){var n=t.emit,c=["bar","horizontalBar","line","area","scatter","pie","ring"],o=function(e){n("select",e)};return function(e,t){var n=Object(y["resolveComponent"])("IconChartLine"),a=Object(y["resolveComponent"])("IconChartHistogram"),l=Object(y["resolveComponent"])("IconChartPie"),r=Object(y["resolveComponent"])("IconChartHistogramOne"),i=Object(y["resolveComponent"])("IconChartLineArea"),u=Object(y["resolveComponent"])("IconChartRing"),d=Object(y["resolveComponent"])("IconChartScatter");return Object(y["openBlock"])(),Object(y["createElementBlock"])("ul",qd,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(c,(function(e,t){return Object(y["createElementVNode"])("li",{class:"chart-item",key:t},[Object(y["createElementVNode"])("div",{class:"chart-content",onClick:function(t){return o(e)}},["line"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(n,{key:0,size:"24"})):"bar"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:1,size:"24"})):"pie"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(l,{key:2,size:"24"})):"horizontalBar"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:3,size:"24"})):"area"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:4,size:"24"})):"ring"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(u,{key:5,size:"24"})):"scatter"===e?(Object(y["openBlock"])(),Object(y["createBlock"])(d,{key:6,size:"24"})):Object(y["createCommentVNode"])("",!0)],8,Ud)])})),64))])}}});n("24bc");const Xd=mn()(Gd,[["__scopeId","data-v-3870b42e"]]);var Yd=Xd,Zd=function(e){return Object(y["pushScopeId"])("data-v-144fbd05"),e=e(),Object(y["popScopeId"])(),e},Wd={class:"table-generator"},Jd={class:"title"},Kd={class:"lef"},Qd=["onMouseenter"],$d={key:1,class:"custom"},es={class:"row"},ts=Zd((function(){return Object(y["createElementVNode"])("div",{class:"label",style:{flex:"1"}},"行数:",-1)})),ns={class:"row"},cs=Zd((function(){return Object(y["createElementVNode"])("div",{class:"label",style:{flex:"1"}},"列数:",-1)})),os={class:"btns"},as=Object(y["createTextVNode"])("取消"),ls=Object(y["createTextVNode"])("确认"),rs=Object(y["defineComponent"])({__name:"TableGenerator",emits:["insert","close"],setup:function(e,t){var n=t.emit,c=Object(y["ref"])([]),o=Object(y["ref"])(3),a=Object(y["ref"])(3),l=Object(y["ref"])(!1),r=function(){if(c.value.length){var e=Object(me["a"])(c.value,2),t=e[0],o=e[1];n("insert",{row:t,col:o})}},i=function(){return o.value<1||o.value>20||a.value<1||a.value>20?Be["a"].warning("行数/列数必须在0~20之间!"):(n("insert",{row:o.value,col:a.value}),void(l.value=!1))},u=function(){n("close"),l.value=!1};return function(e,t){var n=Object(y["resolveComponent"])("InputNumber"),d=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Wd,[Object(y["createElementVNode"])("div",Jd,[Object(y["createElementVNode"])("div",Kd,"表格 "+Object(y["toDisplayString"])(c.value.length?"".concat(c.value[0]," x ").concat(c.value[1]):""),1),Object(y["createElementVNode"])("div",{class:"right",onClick:t[0]||(t[0]=function(e){return l.value=!l.value})},Object(y["toDisplayString"])(l.value?"返回":"自定义"),1)]),l.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",$d,[Object(y["createElementVNode"])("div",es,[ts,Object(y["createVNode"])(n,{min:1,max:20,value:o.value,"onUpdate:value":t[3]||(t[3]=function(e){return o.value=e}),style:{flex:"3"}},null,8,["value"])]),Object(y["createElementVNode"])("div",ns,[cs,Object(y["createVNode"])(n,{min:1,max:20,value:a.value,"onUpdate:value":t[4]||(t[4]=function(e){return a.value=e}),style:{flex:"3"}},null,8,["value"])]),Object(y["createElementVNode"])("div",os,[Object(y["createVNode"])(d,{class:"btn",onClick:t[5]||(t[5]=function(e){return u()})},{default:Object(y["withCtx"])((function(){return[as]})),_:1}),Object(y["createVNode"])(d,{class:"btn",type:"primary",onClick:t[6]||(t[6]=function(e){return i()})},{default:Object(y["withCtx"])((function(){return[ls]})),_:1})])])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("table",{key:0,onMouseleave:t[1]||(t[1]=function(e){return c.value=[]}),onClick:t[2]||(t[2]=function(e){return r()})},[Object(y["createElementVNode"])("tbody",null,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(10,(function(e){return Object(y["createElementVNode"])("tr",{key:e},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(10,(function(t){return Object(y["createElementVNode"])("td",{onMouseenter:function(n){return c.value=[e,t]},key:t},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["cell",{active:c.value.length&&e<=c.value[0]&&t<=c.value[1]}])},null,2)],40,Qd)})),64))])})),64))])],32))])}}});n("307a");const is=mn()(rs,[["__scopeId","data-v-144fbd05"]]);var us=is,ds={class:"media-input"},ss={class:"tabs"},fs=["onClick"],bs={class:"btns"},ps=Object(y["createTextVNode"])("取消"),ms=Object(y["createTextVNode"])("确认"),vs={class:"btns"},Os=Object(y["createTextVNode"])("取消"),js=Object(y["createTextVNode"])("确认"),hs=Object(y["defineComponent"])({__name:"MediaInput",emits:["insertVideo","insertAudio","close"],setup:function(e,t){var n=t.emit,c=Object(y["ref"])("video"),o=Object(y["ref"])("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),a=Object(y["ref"])("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),l=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],r=function(){if(!o.value)return Be["a"].error("请先输入正确的视频地址");n("insertVideo",o.value)},i=function(){if(!a.value)return Be["a"].error("请先输入正确的音频地址");n("insertAudio",a.value)};return function(e,t){var u=Object(y["resolveComponent"])("Input"),d=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ds,[Object(y["createElementVNode"])("div",ss,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(l,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["tab",{active:c.value===e.key}]),key:e.key,onClick:function(t){return c.value=e.key}},Object(y["toDisplayString"])(e.label),11,fs)})),64))]),"video"===c.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createVNode"])(u,{value:o.value,"onUpdate:value":t[0]||(t[0]=function(e){return o.value=e}),placeholder:"请输入视频地址,e.g. https://xxx.mp4"},null,8,["value"]),Object(y["createElementVNode"])("div",bs,[Object(y["createVNode"])(d,{onClick:t[1]||(t[1]=function(e){return n("close")}),style:{"margin-right":"10px"}},{default:Object(y["withCtx"])((function(){return[ps]})),_:1}),Object(y["createVNode"])(d,{type:"primary",onClick:t[2]||(t[2]=function(e){return r()})},{default:Object(y["withCtx"])((function(){return[ms]})),_:1})])],64)):Object(y["createCommentVNode"])("",!0),"audio"===c.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:1},[Object(y["createVNode"])(u,{value:a.value,"onUpdate:value":t[3]||(t[3]=function(e){return a.value=e}),placeholder:"请输入音频地址,e.g. https://xxx.mp3"},null,8,["value"]),Object(y["createElementVNode"])("div",vs,[Object(y["createVNode"])(d,{onClick:t[4]||(t[4]=function(e){return n("close")}),style:{"margin-right":"10px"}},{default:Object(y["withCtx"])((function(){return[Os]})),_:1}),Object(y["createVNode"])(d,{type:"primary",onClick:t[5]||(t[5]=function(e){return i()})},{default:Object(y["withCtx"])((function(){return[js]})),_:1})])],64)):Object(y["createCommentVNode"])("",!0)])}}});n("4675");const ys=mn()(hs,[["__scopeId","data-v-b9437110"]]);var gs=ys,xs=n("e5ca");xs["a"].SUB_SUP_SCALE=.5;var ks=[{label:"高斯公式",latex:"\\int\\int\\int _ { \\Omega } \\left( \\frac { \\partial {P} } { \\partial {x} } + \\frac { \\partial {Q} } { \\partial {y} } + \\frac { \\partial {R} }{ \\partial {z} } \\right) \\mathrm { d } V = \\oint _ { \\partial \\Omega } ( P \\cos \\alpha + Q \\cos \\beta + R \\cos \\gamma ) \\mathrm{ d} S"},{label:"傅里叶级数",latex:"f(x) = \\frac {a_0} 2 + \\sum_{n = 1}^\\infty {({a_n}\\cos {nx} + {b_n}\\sin {nx})}"},{label:"泰勒展开式",latex:"e ^ { x } = 1 + \\frac { x } { 1 ! } + \\frac { x ^ { 2 } } { 2 ! } + \\frac { x ^ { 3 } } { 3 ! } + ... , \\quad - \\infty < x < \\infty"},{label:"定积分",latex:"\\lim_ { n \\rightarrow + \\infty } \\sum _ { i = 1 } ^ { n } f \\left[ a + \\frac { i } { n } ( b - a ) \\right] \\frac { b - a } { n } = \\int _ { a } ^ { b } f ( x ) dx"},{label:"三角恒等式1",latex:"\\sin \\alpha \\pm \\sin \\beta = 2 \\sin \\frac { 1 } { 2 } ( \\alpha \\pm \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha \\mp \\beta )"},{label:"三角恒等式2",latex:"\\cos \\alpha + \\cos \\beta = 2 \\cos \\frac { 1 } { 2 } ( \\alpha + \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha - \\beta )"},{label:"和的展开式",latex:"( 1 + x ) ^ { n } = 1 + \\frac { n x } { 1 ! } + \\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ..."},{label:"欧拉公式",latex:" e^{ix} = \\cos {x} + i\\sin {x}"},{label:"贝努利方程",latex:"\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\not= {0,1})"},{label:"全微分方程",latex:"du(x,y) = P(x,y)dx + Q(x,y)dy = 0"},{label:"非齐次方程",latex:"y = (\\int Q(x) e^{\\int {P(x)dx}}dx + C)e^{-\\int {P(x)dx}}"},{label:"柯西中值定理",latex:"\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\frac{{f'(\\xi )}}{{F'(\\xi )}}"},{label:"拉格朗日中值定理",latex:"f(b) - f(a) = f'(\\xi )(b - a)"},{label:"导数公式",latex:"(\\arcsin x)' = \\frac{1}{{\\sqrt {1 - x^2} }}"},{label:"三角函数积分",latex:"\\int {tgxdx = - \\ln \\left| {\\cos x} \\right| + C}"},{label:"二次曲面",latex:"\\frac{{{x^2}}}{{{a^2}}} + \\frac{{{y^2}}}{{{b^2}}} - \\frac{{{z^2}}}{{{c^2}}} = 1"},{label:"二阶微分",latex:"\\frac {{d^2}y} {dx^2} + P(x) \\frac {dy} {dx} + Q(x)y = f(x)"},{label:"方向导数",latex:"\\frac{{\\partial f}}{{\\partial l}} = \\frac{{\\partial f}}{{\\partial x}}\\cos \\phi + \\frac{{\\partial f}}{{\\partial y}}\\sin \\phi"}],Cs=[{type:"operators",label:"数学",children:[{latex:"\\cdot"},{latex:"\\pm"},{latex:"\\mp"},{latex:"+"},{latex:"-"},{latex:"\\times"},{latex:"\\div"},{latex:"<"},{latex:">"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],Ns=["width","height"],Es=["transform"],ws=["d"],Vs=Object(y["defineComponent"])({__name:"FormulaContent",props:{latex:{type:String,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},setup:function(e){var t=e,n=Object(y["ref"])({x:0,y:0,w:0,h:0}),c=Object(y["ref"])("");Object(y["watch"])((function(){return t.latex}),(function(){var e=new xs["b"](t.latex);c.value=e.pathd({}),n.value=e.box({})}),{immediate:!0});var o=Object(y["computed"])((function(){var e=n.value.w+32,c=n.value.h+32;return e>t.width||c>t.height?e/c>t.width/t.height?t.width/e:t.height/c:1}));return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{class:"formula-content",overflow:"visible",width:n.value.w+32,height:n.value.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Object(y["createElementVNode"])("g",{transform:"scale(".concat(Object(y["unref"])(o),", ").concat(Object(y["unref"])(o),") translate(0,0) matrix(1,0,0,1,0,0)"),"transform-origin":"0 50%"},[Object(y["createElementVNode"])("path",{d:c.value},null,8,ws)],8,Es)],8,Ns)}}});n("e9df");const Is=mn()(Vs,[["__scopeId","data-v-1c41d9fe"]]);var Ss=Is,Bs=["innerHTML"],Ls=Object(y["defineComponent"])({__name:"SymbolContent",props:{latex:{type:String,required:!0}},setup:function(e){var t=e,n=Object(y["computed"])((function(){var e=new xs["b"](t.latex);return e.svg({SCALE_X:10,SCALE_Y:10})}));return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"symbol-content",innerHTML:Object(y["unref"])(n)},null,8,Bs)}}});const _s=Ls;var Ts=_s,Ms={class:"latex-editor"},Ds={class:"container"},zs={class:"left"},As={class:"input-area"},Fs={class:"preview"},Rs={key:0,class:"placeholder"},Ps={key:1,class:"preview-content"},Hs={class:"right"},qs={class:"tabs"},Us=["onClick"],Gs={class:"content"},Xs={key:0,class:"symbol"},Ys={class:"symbol-tabs"},Zs=["onClick"],Ws={class:"symbol-pool"},Js=["onClick"],Ks={key:1,class:"formula"},Qs={class:"formula-title"},$s=["onClick"],ef={class:"footer"},tf=Object(y["createTextVNode"])("取消"),nf=Object(y["createTextVNode"])("确定"),cf=Object(y["defineComponent"])({__name:"index",props:{value:{type:String,default:""}},emits:["update","close"],setup:function(e,t){var n=t.emit,c=e,o=[{label:"常用符号",value:"symbol"},{label:"预置公式",value:"formula"}],a=ks,l=Cs,r=Object(y["ref"])(""),i=Object(y["ref"])("symbol"),u=Object(y["ref"])(),d=Object(y["ref"])(Cs[0].type),s=Object(y["computed"])((function(){var e=Cs.find((function(e){return e.type===d.value}));return(null===e||void 0===e?void 0:e.children)||[]}));Object(y["onMounted"])((function(){c.value&&(r.value=c.value)}));var f=function(){if(!r.value)return Be["a"].error("公式不能为空");var e=new xs["b"](r.value),t=e.pathd({}),c=e.box({});n("update",{latex:r.value,path:t,w:c.w+32,h:c.h+32})},b=function(e){u.value&&(u.value.focus(),document.execCommand("insertText",!1,e))};return function(e,t){var c=Object(y["resolveComponent"])("TextArea"),p=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ms,[Object(y["createElementVNode"])("div",Ds,[Object(y["createElementVNode"])("div",zs,[Object(y["createElementVNode"])("div",As,[Object(y["createVNode"])(c,{value:r.value,"onUpdate:value":t[0]||(t[0]=function(e){return r.value=e}),placeholder:"输入 LaTeX 公式",ref_key:"textAreaRef",ref:u},null,8,["value"])]),Object(y["createElementVNode"])("div",Fs,[r.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ps,[Object(y["createVNode"])(Ss,{width:518,height:138,latex:r.value},null,8,["latex"])])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Rs,"公式预览"))])]),Object(y["createElementVNode"])("div",Hs,[Object(y["createElementVNode"])("div",qs,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(o,(function(e){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["tab",{active:e.value===i.value}]),key:e.value,onClick:function(t){return i.value=e.value}},Object(y["toDisplayString"])(e.label),11,Us)})),64))]),Object(y["createElementVNode"])("div",Gs,["symbol"===i.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Xs,[Object(y["createElementVNode"])("div",Ys,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(l),(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["symbol-tab",{active:d.value===e.type}]),key:e.type,onClick:function(t){return d.value=e.type}},Object(y["toDisplayString"])(e.label),11,Zs)})),128))]),Object(y["createElementVNode"])("div",Ws,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(s),(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"symbol-item",key:e.latex,onClick:function(t){return b(e.latex)}},[Object(y["createVNode"])(Ts,{latex:e.latex},null,8,["latex"])],8,Js)})),128))])])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ks,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(a),(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"formula-item",key:e.label},[Object(y["createElementVNode"])("div",Qs,Object(y["toDisplayString"])(e.label),1),Object(y["createElementVNode"])("div",{class:"formula-item-content",onClick:function(t){return r.value=e.latex}},[Object(y["createVNode"])(Ss,{width:236,height:60,latex:e.latex},null,8,["latex"])],8,$s)])})),128))]))])])]),Object(y["createElementVNode"])("div",ef,[Object(y["createVNode"])(p,{class:"btn",onClick:t[1]||(t[1]=function(e){return n("close")})},{default:Object(y["withCtx"])((function(){return[tf]})),_:1}),Object(y["createVNode"])(p,{class:"btn",type:"primary",onClick:t[2]||(t[2]=function(e){return f()})},{default:Object(y["withCtx"])((function(){return[nf]})),_:1})])])}}});n("1933");const of=mn()(cf,[["__scopeId","data-v-2d73bf28"]]);var af=of,lf={class:"canvas-tool"},rf={class:"left-handler"},uf={class:"add-element-handler"},df={class:"handler-item group-btn"},sf=Object(y["createTextVNode"])(" 横向文本框"),ff=Object(y["createTextVNode"])(" 竖向文本框"),bf={class:"right-handler"},pf={class:"viewport-size-preset"},mf=["onClick"],vf={class:"text"},Of=Object(y["defineComponent"])({__name:"index",setup:function(e){var t=ie(),n=Object(g["c"])(t),c=n.creatingElement,o=Object(g["c"])(xe()),a=o.canUndo,l=o.canRedo,r=lt(),i=r.redo,u=r.undo,d=xt(),s=d.scaleCanvas,f=d.setCanvasScalePercentage,b=d.resetCanvas,p=d.canvasScalePercentage,m=[200,150,100,80,50],v=Object(y["ref"])(!1),O=function(e){f(e),v.value=!1},j=rt(),h=j.createImageElement,x=j.createChartElement,k=j.createTableElement,C=j.createLatexElement,N=j.createVideoElement,E=j.createAudioElement,w=function(e){var t=e[0];t&&tt(t).then((function(e){return h(e)}))},V=Object(y["ref"])(!1),I=Object(y["ref"])(!1),S=Object(y["ref"])(!1),B=Object(y["ref"])(!1),L=Object(y["ref"])(!1),_=Object(y["ref"])(!1),T=Object(y["ref"])(!1),M=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.setCreatingElement({type:"text",vertical:e})},D=function(e){t.setCreatingElement({type:"shape",data:e}),V.value=!1},z=function(e){t.setCreatingElement({type:"line",data:e}),I.value=!1};return function(e,t){var n=Object(y["resolveComponent"])("IconBack"),o=Object(y["resolveComponent"])("Tooltip"),r=Object(y["resolveComponent"])("IconNext"),d=Object(y["resolveComponent"])("IconFontSize"),f=Object(y["resolveComponent"])("IconTextRotationNone"),j=Object(y["resolveComponent"])("IconTextRotationDown"),h=Object(y["resolveComponent"])("IconDown"),g=Object(y["resolveComponent"])("Popover"),A=Object(y["resolveComponent"])("IconPicture"),F=Object(y["resolveComponent"])("FileInput"),R=Object(y["resolveComponent"])("IconGraphicDesign"),P=Object(y["resolveComponent"])("IconConnection"),H=Object(y["resolveComponent"])("IconChartProportion"),q=Object(y["resolveComponent"])("IconInsertTable"),U=Object(y["resolveComponent"])("IconFormula"),G=Object(y["resolveComponent"])("IconVideoTwo"),X=Object(y["resolveComponent"])("IconMinus"),Y=Object(y["resolveComponent"])("IconPlus"),Z=Object(y["resolveComponent"])("IconFullScreen"),W=Object(y["resolveComponent"])("Modal");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",lf,[Object(y["createElementVNode"])("div",rf,[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"撤销"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(n,{class:Object(y["normalizeClass"])(["handler-item",{disable:!Object(y["unref"])(a)}]),onClick:t[0]||(t[0]=function(e){return Object(y["unref"])(u)()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"重做"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{class:Object(y["normalizeClass"])(["handler-item",{disable:!Object(y["unref"])(l)}]),onClick:t[1]||(t[1]=function(e){return Object(y["unref"])(i)()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]),Object(y["createElementVNode"])("div",uf,[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入文字"},{default:Object(y["withCtx"])((function(){var e;return[Object(y["createElementVNode"])("div",df,[Object(y["createVNode"])(d,{class:Object(y["normalizeClass"])(["icon",{active:"text"===(null===(e=Object(y["unref"])(c))||void 0===e?void 0:e.type)}]),onClick:t[2]||(t[2]=function(e){return M()})},null,8,["class"]),Object(y["createVNode"])(g,{trigger:"click",visible:T.value,"onUpdate:visible":t[5]||(t[5]=function(e){return T.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:"text-type-item",onClick:t[3]||(t[3]=function(){M(),T.value=!1})},[Object(y["createVNode"])(f),sf]),Object(y["createElementVNode"])("div",{class:"text-type-item",onClick:t[4]||(t[4]=function(){M(!0),T.value=!1})},[Object(y["createVNode"])(j),ff])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h,{class:"arrow"})]})),_:1},8,["visible"])])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(F,{onChange:t[6]||(t[6]=function(e){return w(e)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图片"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(A,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(g,{trigger:"click",visible:V.value,"onUpdate:visible":t[8]||(t[8]=function(e){return V.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(Ld,{onSelect:t[7]||(t[7]=function(e){return D(e)})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入形状"},{default:Object(y["withCtx"])((function(){var e;return[Object(y["createVNode"])(R,{class:Object(y["normalizeClass"])(["handler-item",{active:"shape"===(null===(e=Object(y["unref"])(c))||void 0===e?void 0:e.type)}])},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(g,{trigger:"click",visible:I.value,"onUpdate:visible":t[10]||(t[10]=function(e){return I.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(Hd,{onSelect:t[9]||(t[9]=function(e){return z(e)})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入线条"},{default:Object(y["withCtx"])((function(){var e;return[Object(y["createVNode"])(P,{class:Object(y["normalizeClass"])(["handler-item",{active:"line"===(null===(e=Object(y["unref"])(c))||void 0===e?void 0:e.type)}])},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(g,{trigger:"click",visible:S.value,"onUpdate:visible":t[12]||(t[12]=function(e){return S.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(Yd,{onSelect:t[11]||(t[11]=function(e){Object(y["unref"])(x)(e),S.value=!1})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图表"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(H,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(g,{trigger:"click",visible:B.value,"onUpdate:visible":t[15]||(t[15]=function(e){return B.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(us,{onClose:t[13]||(t[13]=function(e){return B.value=!1}),onInsert:t[14]||(t[14]=function(e){var t=e.row,n=e.col;Object(y["unref"])(k)(t,n),B.value=!1})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入表格"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(q,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入公式"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(U,{class:"handler-item",onClick:t[16]||(t[16]=function(e){return _.value=!0})})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{trigger:"click",visible:L.value,"onUpdate:visible":t[20]||(t[20]=function(e){return L.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(gs,{onClose:t[17]||(t[17]=function(e){return L.value=!1}),onInsertVideo:t[18]||(t[18]=function(e){Object(y["unref"])(N)(e),L.value=!1}),onInsertAudio:t[19]||(t[19]=function(e){Object(y["unref"])(E)(e),L.value=!1})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入音视频"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(G,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"])]),Object(y["createElementVNode"])("div",bf,[Object(y["createVNode"])(X,{class:"handler-item viewport-size",onClick:t[21]||(t[21]=function(e){return Object(y["unref"])(s)("-")})}),Object(y["createVNode"])(g,{trigger:"click",visible:v.value,"onUpdate:visible":t[22]||(t[22]=function(e){return v.value=e})},{content:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",pf,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(m,(function(e){return Object(y["createElementVNode"])("div",{class:"preset-item",key:e,onClick:function(t){return O(e)}},Object(y["toDisplayString"])(e)+"%",9,mf)})),64))])]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",vf,Object(y["toDisplayString"])(Object(y["unref"])(p)),1)]})),_:1},8,["visible"]),Object(y["createVNode"])(Y,{class:"handler-item viewport-size",onClick:t[23]||(t[23]=function(e){return Object(y["unref"])(s)("+")})}),Object(y["createVNode"])(o,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"适应屏幕"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(Z,{class:"handler-item viewport-size-adaptation",onClick:t[24]||(t[24]=function(e){return Object(y["unref"])(b)()})})]})),_:1},8,["mouseEnterDelay"])]),Object(y["createVNode"])(W,{visible:_.value,"onUpdate:visible":t[27]||(t[27]=function(e){return _.value=e}),footer:null,centered:"",width:880,destroyOnClose:""},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(af,{onClose:t[25]||(t[25]=function(e){return _.value=!1}),onUpdate:t[26]||(t[26]=function(e){Object(y["unref"])(C)(e),_.value=!1})})]})),_:1},8,["visible"])])}}});n("1ba1");const jf=mn()(Of,[["__scopeId","data-v-33091fba"]]);var hf=jf,yf=function(){var e=Object(g["c"])(ae()),t=e.slides,n=Object(y["ref"])(null),c=Object(y["ref"])(50),o=function e(){t.value.length>c.value?n.value=setTimeout((function(){c.value=c.value+20,e()}),600):c.value=9999};return Object(y["onMounted"])(o),Object(y["onUnmounted"])((function(){n.value&&clearTimeout(n.value)})),{slidesLoadLimit:c}},gf=n("b76a"),xf=n.n(gf),kf={class:"layout-pool"},Cf=["onClick"],Nf=Object(y["defineComponent"])({__name:"LayoutPool",emits:["select"],setup:function(e,t){var n=t.emit,c=Object(g["c"])(ae()),o=c.layouts,a=function(e){n("select",e)};return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",kf,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(o),(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"layout-item",key:e.id,onClick:function(t){return a(e)}},[Object(y["createVNode"])(ad,{class:"thumbnail",slide:e,size:180},null,8,["slide"])],8,Cf)})),128))])}}});n("3328");const Ef=mn()(Nf,[["__scopeId","data-v-cc6b7dca"]]);var wf=Ef,Vf={class:"add-slide"},If=Object(y["createTextVNode"])("添加幻灯片"),Sf={class:"select-btn"},Bf=["onMousedown"],Lf={class:"page-number"},_f=Object(y["defineComponent"])({__name:"index",setup:function(e){var t=ie(),n=ae(),c=ke(),o=Object(g["c"])(t),a=o.selectedSlidesIndex,l=o.thumbnailsFocus,r=Object(g["c"])(n),i=r.slides,u=r.slideIndex,d=Object(g["c"])(c),s=d.ctrlKeyState,f=d.shiftKeyState,b=yf(),p=b.slidesLoadLimit,m=Object(y["computed"])((function(){return[].concat(Object(Q["a"])(a.value),[u.value])})),v=Object(y["ref"])(!1),O=dt(),j=O.copySlide,h=O.pasteSlide,x=O.createSlide,k=O.createSlideByTemplate,C=O.copyAndPasteSlide,N=O.deleteSlide,E=O.cutSlide,w=O.selectAllSlide,V=function(e){t.setActiveElementIdList([]),u.value!==e&&n.updateSlideIndex(e)},I=function(e,n){var c=m.value.length>1;if(!c||!m.value.includes(n)||0===e.button)if(s.value)if(u.value===n){if(!c)return;var o=m.value.filter((function(e){return e!==n}));t.updateSelectedSlidesIndex(o),V(m.value[0])}else if(m.value.includes(n)){var a=m.value.filter((function(e){return e!==n}));t.updateSelectedSlidesIndex(a)}else{var l=[].concat(Object(Q["a"])(m.value),[n]);t.updateSelectedSlidesIndex(l),V(n)}else if(f.value){if(u.value===n&&!c)return;var r=Math.min.apply(Math,Object(Q["a"])(m.value)),i=n;n=99}])},Object(y["toDisplayString"])(Object(y["unref"])(Ne)(n+1,2)),3),Object(y["createVNode"])(ad,{class:"thumbnail",slide:t,size:120,visible:n
"})},p=function(e){e&&e[0]&&tt(e[0]).then((function(e){return s(e)}))},m=function(e){var t={viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},n={viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},o={square:t,round:n},a=200;f({left:(nt-a)/2,top:(nt*c.value-a)/2,width:a,height:a},o[e])},v=Object(y["computed"])((function(){var e;return(null===(e=o.value)||void 0===e?void 0:e.remark)||""})),O=function(e){var n=e.target.value;t.updateSlide({remark:n})};return function(e,t){var n=Object(y["resolveComponent"])("IconPlus"),c=Object(y["resolveComponent"])("Button"),o=Object(y["resolveComponent"])("IconCopy"),a=Object(y["resolveComponent"])("IconDelete"),u=Object(y["resolveComponent"])("ButtonGroup"),d=Object(y["resolveComponent"])("IconFontSize"),s=Object(y["resolveComponent"])("IconPicture"),f=Object(y["resolveComponent"])("FileInput"),j=Object(y["resolveComponent"])("IconSquare"),h=Object(y["resolveComponent"])("IconRound");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",eC,[Object(y["createElementVNode"])("div",tC,[Object(y["createElementVNode"])("textarea",{value:Object(y["unref"])(v),placeholder:"点击输入演讲者备注",onInput:t[0]||(t[0]=function(e){return O(e)})},null,40,nC)]),Object(y["createElementVNode"])("div",cC,[Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(c,{style:{flex:"1"},onClick:t[1]||(t[1]=function(e){return Object(y["unref"])(l)()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(n,{class:"icon"}),oC]})),_:1}),Object(y["createVNode"])(c,{style:{flex:"1"},onClick:t[2]||(t[2]=function(e){return Object(y["unref"])(r)()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(o,{class:"icon"}),aC]})),_:1}),Object(y["createVNode"])(c,{style:{flex:"1"},onClick:t[3]||(t[3]=function(e){return Object(y["unref"])(i)()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{class:"icon"}),lC]})),_:1})]})),_:1}),Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(c,{style:{flex:"1"},onClick:t[4]||(t[4]=function(e){return b()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{class:"icon"}),rC]})),_:1}),Object(y["createVNode"])(c,{style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{onChange:t[5]||(t[5]=function(e){return p(e)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(s,{class:"icon"}),iC]})),_:1})]})),_:1}),Object(y["createVNode"])(c,{style:{flex:"1"},onClick:t[6]||(t[6]=function(e){return m("square")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(j,{class:"icon"}),uC]})),_:1}),Object(y["createVNode"])(c,{style:{flex:"1"},onClick:t[7]||(t[7]=function(e){return m("round")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h,{class:"icon"}),dC]})),_:1})]})),_:1})]),Object(y["createVNode"])($k)])}}});n("e2d2");const fC=mn()(sC,[["__scopeId","data-v-dcc0171c"]]);var bC=fC,pC=function(e){return Object(y["pushScopeId"])("data-v-446388c6"),e=e(),Object(y["popScopeId"])(),e},mC={class:"element-toolbar"},vC={class:"tabs"},OC=["onClick"],jC={class:"content"},hC={key:0,class:"style"},yC=Object(y["createTextVNode"])("+"),gC=Object(y["createTextVNode"])("-"),xC={class:"row-block"},kC=pC((function(){return Object(y["createElementVNode"])("div",{class:"label"},"文字颜色:",-1)})),CC={class:"colors"},NC=["onClick"],EC={class:"row-block"},wC=pC((function(){return Object(y["createElementVNode"])("div",{class:"label"},"填充色:",-1)})),VC={class:"colors"},IC=["onClick"],SC={key:1,class:"common"},BC=Object(y["createTextVNode"])(" 复制"),LC=Object(y["createTextVNode"])(" 删除"),_C=Object(y["createTextVNode"])(" 置顶"),TC=Object(y["createTextVNode"])(" 置底"),MC=Object(y["createTextVNode"])(" 上移"),DC=Object(y["createTextVNode"])(" 下移"),zC=Object(y["createTextVNode"])(" 左对齐"),AC=Object(y["createTextVNode"])(" 水平居中"),FC=Object(y["createTextVNode"])(" 右对齐"),RC=Object(y["createTextVNode"])(" 上对齐"),PC=Object(y["createTextVNode"])(" 垂直居中"),HC=Object(y["createTextVNode"])(" 下对齐"),qC=Object(y["defineComponent"])({__name:"ElementToolbar",setup:function(e){var t=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57"],n=ie(),c=ae(),o=Object(g["c"])(n),a=o.handleElement,l=o.handleElementId,r=o.richTextAttrs,i=lt(),u=i.addHistorySnapshot,d=function(e,t){c.updateElement({id:e,props:t}),u()},s=[{key:"style",label:"样式"},{key:"common",label:"布局"}],f=Object(y["ref"])("common"),b=Ot(),p=b.orderElement,m=yc(),v=m.alignElementToCanvas,O=it(),j=O.addElementsFromData,h=ft(),x=h.deleteElement,N=function(){var e=JSON.parse(JSON.stringify(a.value));j([e])},E=function(e,t){na.emit(bo.RICH_TEXT_COMMAND,{action:{command:e,value:t}})},w=function(e){var t;if(a.value){if(("text"===a.value.type||"shape"===a.value.type&&null!==(t=a.value.text)&&void 0!==t&&t.content)&&na.emit(bo.RICH_TEXT_COMMAND,{action:{command:"color",value:e}}),"table"===a.value.type){for(var n=JSON.parse(JSON.stringify(a.value.data)),c=0;c=l.value?(e-20)/nt:(t-20)/l.value/nt}));Object(y["onMounted"])((function(){i.value.length&&n.setActiveElementIdList([]),0!==o.value&&t.updateSlideIndex(0)}));var v=Object(y["computed"])((function(){return{width:nt*m.value+"px",height:nt*l.value*m.value+"px"}})),O=Object(y["ref"])([]),j=function(){O.value=a.value?JSON.parse(JSON.stringify(a.value.elements)):[]};Object(y["watchEffect"])(j);var h=vc(O,s,m),x=h.dragElement,k=pc(O,s,m),C=k.scaleElement,N=function(e,t){var c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i.value.includes(t.id)||(n.setActiveElementIdList([t.id]),n.setHandleElementId(t.id)),c&&x(e,t)},E=function(){n.setActiveElementIdList([])};return function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",eN,[Object(y["createVNode"])($C,{changeMode:e.changeMode},null,8,["changeMode"]),Object(y["createElementVNode"])("div",{class:"content",ref_key:"contentRef",ref:d,onTouchstart:n[0]||(n[0]=function(e){return E()})},[Object(y["createElementVNode"])("div",{class:"viewport-wrapper",style:Object(y["normalizeStyle"])(Object(y["unref"])(v))},[Object(y["createElementVNode"])("div",{class:"background",style:Object(y["normalizeStyle"])(Object(y["unref"])(p))},null,4),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(s.value,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(Hr,{key:t,type:e.type,axis:e.axis,length:e.length,canvasScale:Object(y["unref"])(m)},null,8,["type","axis","length","canvasScale"])})),128)),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(O.value,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:e.id},["line"!==e.type?(Object(y["openBlock"])(),Object(y["createBlock"])(Yk,{key:0,elementInfo:e,isSelected:Object(y["unref"])(i).includes(e.id),canvasScale:Object(y["unref"])(m),scaleElement:Object(y["unref"])(C)},null,8,["elementInfo","isSelected","canvasScale","scaleElement"])):Object(y["createCommentVNode"])("",!0)],64)})),128)),Object(y["createElementVNode"])("div",{class:"viewport",style:Object(y["normalizeStyle"])({transform:"scale(".concat(Object(y["unref"])(m),")")})},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(O.value,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(Uk,{key:e.id,elementInfo:e,elementIndex:t+1,selectElement:N},null,8,["elementInfo","elementIndex"])})),128))],4)],4)],544),Object(y["createVNode"])(bC),Object(y["unref"])(u)?(Object(y["openBlock"])(),Object(y["createBlock"])(GC,{key:0})):Object(y["createCommentVNode"])("",!0)])}}});n("2d86");const nN=mn()(tN,[["__scopeId","data-v-8cdcde82"]]);var cN=nN,oN={class:"header"},aN=Object(y["createTextVNode"])(" 退出播放"),lN=Object(y["defineComponent"])({__name:"MobilePlayer",props:{changeMode:{type:Function,required:!0}},setup:function(e){var t=ae(),n=Object(g["c"])(t),c=n.slides,o=n.slideIndex,a=n.currentSlide,l=n.viewportRatio,r=Object(y["ref"])(!1),i=Object(y["ref"])({width:0,height:0});Object(y["onMounted"])((function(){0!==o.value&&t.updateSlideIndex(0),i.value={width:document.body.clientHeight,height:document.body.clientWidth}}));var u=Object(y["computed"])((function(){var e=i.value.height/i.value.width,t=0,n=0;return e>=l.value?(t=i.value.width,n=t*l.value):(n=i.value.height,t=n/l.value),{width:t,height:n}})),d=Object(y["ref"])(null),s=function(e){d.value={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},f=function(e){if(d.value){var n=Math.abs(d.value.y-e.changedTouches[0].pageY),a=e.changedTouches[0].pageX-d.value.x;Math.abs(a)>n&&Math.abs(a)>50&&(d.value=null,a<0&&o.value>0&&t.updateSlideIndex(o.value-1),a>0&&o.valueObject(y["unref"])(o),hide:(t===Object(y["unref"])(o)-1||t===Object(y["unref"])(o)+1)&&e.turningMode!==Object(y["unref"])(a).turningMode}]),key:e.id},[Math.abs(Object(y["unref"])(o)-t)<2?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"slide-content",style:Object(y["normalizeStyle"])({width:Object(y["unref"])(u).width+"px",height:Object(y["unref"])(u).height+"px"})},[Object(y["createVNode"])(ad,{slide:e,size:Object(y["unref"])(u).width},null,8,["slide","size"])],4)):Object(y["createCommentVNode"])("",!0)],2)})),128))],32),r.value?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createElementVNode"])("div",oN,[Object(y["createElementVNode"])("div",{class:"back",onClick:n[3]||(n[3]=function(t){return e.changeMode("preview")})},[Object(y["createVNode"])(l),aN])]),Object(y["createVNode"])($k,{class:"thumbnails"})],64)):Object(y["createCommentVNode"])("",!0)],4)}}});n("4f8b");const rN=mn()(lN,[["__scopeId","data-v-5293de3b"]]);var iN=rN,uN={class:"thumbnail-list"},dN={class:"menu"},sN=Object(y["createTextVNode"])(" 编辑"),fN=Object(y["createTextVNode"])(" 播放"),bN=Object(y["defineComponent"])({__name:"MobilePreview",props:{changeMode:{type:Function,required:!0}},setup:function(e){var t=Object(g["c"])(ae()),n=t.slides,c=yf(),o=c.slidesLoadLimit,a=Object(y["ref"])(),l=Object(y["ref"])(0);return Object(y["onMounted"])((function(){a.value&&(l.value=a.value.clientWidth)})),function(t,c){var r=Object(y["resolveComponent"])("IconEdit"),i=Object(y["resolveComponent"])("Divider"),u=Object(y["resolveComponent"])("IconFullScreenPlay");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"mobile-preview",ref_key:"mobileRef",ref:a},[Object(y["createElementVNode"])("div",uN,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(n),(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"thumbnail-item",key:e.id},[Object(y["createVNode"])(ad,{slide:e,size:l.value-20,visible:tc?1:Math.round(100*r/c)/100,o.value.a!==t&&n("colorChange",{r:o.value.r,g:o.value.g,b:o.value.b,a:t})}},i=function e(){window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",e)},u=function(e){r(e),window.addEventListener("mousemove",r),window.addEventListener("mouseup",i)};return Object(y["onUnmounted"])(i),function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Pw,[Object(y["createElementVNode"])("div",Hw,[Object(y["createVNode"])(Fw)]),Object(y["createElementVNode"])("div",{class:"alpha-gradient",style:Object(y["normalizeStyle"])({background:Object(y["unref"])(a)})},null,4),Object(y["createElementVNode"])("div",{class:"alpha-container",ref_key:"alphaRef",ref:l,onMousedown:t[0]||(t[0]=function(e){return u(e)})},[Object(y["createElementVNode"])("div",{class:"alpha-pointer",style:Object(y["normalizeStyle"])({left:100*Object(y["unref"])(o).a+"%"})},Uw,4)],544)])}}});n("e83e");const Xw=mn()(Gw,[["__scopeId","data-v-246b525c"]]);var Yw=Xw,Zw=function(e){return Object(y["pushScopeId"])("data-v-60c3cca1"),e=e(),Object(y["popScopeId"])(),e},Ww={class:"hue"},Jw=Zw((function(){return Object(y["createElementVNode"])("div",{class:"hue-picker"},null,-1)})),Kw=[Jw],Qw=Object(y["defineComponent"])({__name:"Hue",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},emits:["colorChange"],setup:function(e,t){var n=t.emit,c=e,o=Object(y["ref"])(0),a=Object(y["ref"])(""),l=Object(y["computed"])((function(){var e=ee()(c.value).toHsl();return-1!==c.hue&&(e.h=c.hue),e})),r=Object(y["computed"])((function(){return 0===l.value.h&&"right"===a.value?"100%":100*l.value.h/360+"%"}));Object(y["watch"])((function(){return c.value}),(function(){var e=ee()(c.value).toHsl(),t=0===e.s?c.hue:e.h;0!==t&&t-o.value>0&&(a.value="right"),0!==t&&t-o.value<0&&(a.value="left"),o.value=t}));var i=Object(y["ref"])(),u=function(e){if(e.preventDefault(),i.value){var t,o,a=i.value.clientWidth,r=i.value.getBoundingClientRect().left+window.pageXOffset,u=e.pageX-r;u<0?t=0:u>a?t=360:(o=100*u/a,t=360*o/100),-1!==c.hue&&l.value.h===t||n("colorChange",{h:t,l:l.value.l,s:l.value.s,a:l.value.a})}},d=function e(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e)},s=function(e){u(e),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)};return Object(y["onUnmounted"])(d),function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ww,[Object(y["createElementVNode"])("div",{class:"hue-container",ref_key:"hueRef",ref:i,onMousedown:t[0]||(t[0]=function(e){return s(e)})},[Object(y["createElementVNode"])("div",{class:"hue-pointer",style:Object(y["normalizeStyle"])({left:Object(y["unref"])(r)})},Kw,4)],544)])}}});n("179a");const $w=mn()(Qw,[["__scopeId","data-v-60c3cca1"]]);var eV=$w,tV=function(e){return Object(y["pushScopeId"])("data-v-d230faf4"),e=e(),Object(y["popScopeId"])(),e},nV=tV((function(){return Object(y["createElementVNode"])("div",{class:"saturation-white"},null,-1)})),cV=tV((function(){return Object(y["createElementVNode"])("div",{class:"saturation-black"},null,-1)})),oV=tV((function(){return Object(y["createElementVNode"])("div",{class:"saturation-circle"},null,-1)})),aV=[oV],lV=Object(y["defineComponent"])({__name:"Saturation",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},emits:["colorChange"],setup:function(e,t){var n=t.emit,c=e,o=Object(y["computed"])((function(){var e=ee()(c.value).toHsv();return-1!==c.hue&&(e.h=c.hue),e})),a=Object(y["computed"])((function(){return"hsl(".concat(o.value.h,", 100%, 50%)")})),l=Object(y["computed"])((function(){return-100*o.value.v+1+100+"%"})),r=Object(y["computed"])((function(){return 100*o.value.s+"%"})),i=Object(te["throttle"])((function(e){n("colorChange",e)}),20,{leading:!0,trailing:!1}),u=Object(y["ref"])(),d=function(e){if(e.preventDefault(),u.value){var t=u.value.clientWidth,n=u.value.clientHeight,c=u.value.getBoundingClientRect().left+window.pageXOffset,a=u.value.getBoundingClientRect().top+window.pageYOffset,l=Object(te["clamp"])(e.pageX-c,0,t),r=Object(te["clamp"])(e.pageY-a,0,n),d=l/t,s=Object(te["clamp"])(-r/n+1,0,1);i({h:o.value.h,s:d,v:s,a:o.value.a})}},s=function e(){window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",e)},f=function(e){d(e),window.addEventListener("mousemove",d),window.addEventListener("mouseup",s)};return Object(y["onUnmounted"])(s),function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"saturation",ref_key:"saturationRef",ref:u,style:Object(y["normalizeStyle"])({background:Object(y["unref"])(a)}),onMousedown:t[0]||(t[0]=function(e){return f(e)})},[nV,cV,Object(y["createElementVNode"])("div",{class:"saturation-pointer",style:Object(y["normalizeStyle"])({top:Object(y["unref"])(l),left:Object(y["unref"])(r)})},aV,4)],36)}}});n("0516");const rV=mn()(lV,[["__scopeId","data-v-d230faf4"]]);var iV=rV,uV={class:"editable-input"},dV=["value"],sV=Object(y["defineComponent"])({__name:"EditableInput",props:{value:{type:Object,required:!0}},emits:["colorChange"],setup:function(e,t){var n=t.emit,c=e,o=Object(y["computed"])((function(){var e="";return e=c.value.a<1?ee()(c.value).toHex8String().toUpperCase():ee()(c.value).toHexString().toUpperCase(),e.replace("#","")})),a=function(e){var t=e.target.value;t.length>=6&&n("colorChange",ee()(t).toRgb())};return function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",uV,[Object(y["createElementVNode"])("input",{class:"input-content",value:Object(y["unref"])(o),onInput:t[0]||(t[0]=function(e){return a(e)})},null,40,dV)])}}});n("a9b0");const fV=mn()(sV,[["__scopeId","data-v-2f428dde"]]);var bV=fV,pV={class:"color-picker"},mV={class:"picker-saturation-wrap"},vV={class:"picker-controls"},OV={class:"picker-color-wrap"},jV={class:"picker-sliders"},hV={class:"picker-hue-wrap"},yV={class:"picker-alpha-wrap"},gV={class:"picker-field"},xV={class:"picker-presets"},kV=["onClick"],CV={class:"picker-gradient-presets"},NV=["onClick"],EV={class:"picker-presets"},wV=["onClick"],VV={key:0,class:"recent-colors-title"},IV={class:"picker-presets"},SV=["onClick"],BV=Object(y["defineComponent"])({__name:"index",props:{modelValue:{type:String,default:"#e86b99"}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,c=e,o="RECENT_COLORS",a=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],l=function(e,t,n){for(var c=ee()(e).toRgb(),o=ee()(t).toRgb(),a=(o.r-c.r)/n,l=(o.g-c.g)/n,r=(o.b-c.b)/n,i=[],u=0;ut&&(s.value=s.value.slice(0,t))}}),300,{trailing:!0});Object(y["onMounted"])((function(){var e=localStorage.getItem(o);e&&(s.value=JSON.parse(e))})),Object(y["watch"])(s,(function(){var e=JSON.stringify(s.value);localStorage.setItem(o,e)}));var O=function(e){"h"in e?(d.value=e.h,f.value=ee()(e).toRgb()):(d.value=ee()(e).toHsl().h,f.value=e),v()},j=function(){var e="EyeDropper"in window;e?h():g()},h=function(){Be["a"].success("按 ESC 键关闭取色吸管");var e=new window.EyeDropper;e.open().then((function(e){var t=ee()(e.sRGBHex);d.value=t.toHsl().h,f.value=t.toRgb(),v()})).catch((function(){Be["a"].success("关闭取色吸管")}))},g=function(){var e=document.querySelector(".canvas");if(e){var t=document.createElement("div");t.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(t);var n=document.createElement("div");n.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",t.appendChild(n);var c=e.getBoundingClientRect(),o=c.left,a=c.top,l=c.width,r=c.height,i=function(e){return(!e.tagName||"FOREIGNOBJECT"!==e.tagName.toUpperCase())&&(!e.classList||!e.classList.contains("operate"))};Object(wt["a"])(e,{filter:i,fontEmbedCSS:"",width:l,height:r,canvasWidth:l,canvasHeight:r,pixelRatio:1}).then((function(e){e.style.cssText="position: absolute; top: ".concat(a,"px; left: ").concat(o,"px; cursor: crosshair;"),t.style.cursor="default",t.appendChild(e);var c=e.getContext("2d");if(c){var l="",r=function(e){var t=e.x,r=e.y,i=t-o,u=r-a,d=Object(me["a"])(c.getImageData(i,u,1,1).data,4),s=d[0],f=d[1],b=d[2],p=d[3];l="rgba(".concat(s,", ").concat(f,", ").concat(b,", ").concat((p/255).toFixed(2),")"),n.style.left=t+10+"px",n.style.top=r+10+"px",n.style.backgroundColor=l},i=function(){l="",n.style.left="-100px",n.style.top="-100px",n.style.backgroundColor=""},u=function n(c){if(l&&0===c.button){var o=ee()(l);d.value=o.toHsl().h,f.value=o.toRgb(),v()}document.body.removeChild(t),e.removeEventListener("mousemove",r),e.removeEventListener("mouseleave",i),window.removeEventListener("mousedown",n)};e.addEventListener("mousemove",r),e.addEventListener("mouseleave",i),window.addEventListener("mousedown",u)}})).catch((function(){Be["a"].error("取色吸管初始化失败"),document.body.removeChild(t)}))}};return function(e,t){var n=Object(y["resolveComponent"])("IconNeedle");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",pV,[Object(y["createElementVNode"])("div",mV,[Object(y["createVNode"])(iV,{value:Object(y["unref"])(f),hue:d.value,onColorChange:t[0]||(t[0]=function(e){return O(e)})},null,8,["value","hue"])]),Object(y["createElementVNode"])("div",vV,[Object(y["createElementVNode"])("div",OV,[Object(y["createElementVNode"])("div",{class:"picker-current-color",style:Object(y["normalizeStyle"])({background:Object(y["unref"])(p)})},null,4),Object(y["createVNode"])(Fw)]),Object(y["createElementVNode"])("div",jV,[Object(y["createElementVNode"])("div",hV,[Object(y["createVNode"])(eV,{value:Object(y["unref"])(f),hue:d.value,onColorChange:t[1]||(t[1]=function(e){return O(e)})},null,8,["value","hue"])]),Object(y["createElementVNode"])("div",yV,[Object(y["createVNode"])(Yw,{value:Object(y["unref"])(f),onColorChange:t[2]||(t[2]=function(e){return O(e)})},null,8,["value"])])])]),Object(y["createElementVNode"])("div",gV,[Object(y["createVNode"])(bV,{class:"input",value:Object(y["unref"])(f),onColorChange:t[3]||(t[3]=function(e){return O(e)})},null,8,["value"]),Object(y["createElementVNode"])("div",{class:"straw",onClick:t[4]||(t[4]=function(e){return j()})},[Object(y["createVNode"])(n)])]),Object(y["createElementVNode"])("div",xV,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(i,(function(e){return Object(y["createElementVNode"])("div",{class:"picker-presets-color",key:e,style:Object(y["normalizeStyle"])({background:e}),onClick:function(t){return m(e)}},null,12,kV)})),64))]),Object(y["createElementVNode"])("div",CV,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(Object(y["unref"])(b),(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"picker-gradient-col",key:t},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"picker-gradient-color",key:e,style:Object(y["normalizeStyle"])({background:e}),onClick:function(t){return m(e)}},null,12,NV)})),128))])})),128))]),Object(y["createElementVNode"])("div",EV,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(u,(function(e){return Object(y["createElementVNode"])("div",{key:e,class:"picker-presets-color",style:Object(y["normalizeStyle"])({background:e}),onClick:function(t){return m(e)}},null,12,wV)})),64))]),s.value.length?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",VV,"最近使用:")):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",IV,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(s.value,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:e,class:"picker-presets-color alpha",onClick:function(t){return m(e)}},[Object(y["createElementVNode"])("div",{class:"picker-presets-color-content",style:Object(y["normalizeStyle"])({background:e})},null,4)],8,SV)})),128))])])}}});n("ecf8");const LV=mn()(BV,[["__scopeId","data-v-c46eb110"]]);var _V=LV,TV={key:0,class:"fullscreen-spin"},MV=Object(y["defineComponent"])({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{type:String,default:""}},setup:function(e){return function(t,n){var c=Object(y["resolveComponent"])("Spin");return e.loading?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",TV,[Object(y["createVNode"])(c,{tip:e.tip,size:"large"},null,8,["tip"])])):Object(y["createCommentVNode"])("",!0)}}});n("5d4b");const DV=mn()(MV,[["__scopeId","data-v-16ead44e"]]);var zV=DV,AV={FileInput:Vw,CheckboxButton:Bw,CheckboxButtonGroup:Dw,ColorPicker:_V,FullscreenSpin:zV},FV={install:function(e){for(var t=0,n=Object.keys(AV);t