(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06b32ebc"],{"0b13":function(e,t,i){},1148:function(e,t,i){"use strict";var n=i("a691"),o=i("1d80");e.exports="".repeat||function(e){var t=String(o(this)),i="",r=n(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(i+=t);return i}},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"13d5":function(e,t,i){"use strict";var n=i("23e7"),o=i("d58f").left,r=i("a640"),a=i("ae40"),s=r("reduce"),l=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},1913:function(e,t,i){"use strict";var n=i("23e7"),o=i("857a"),r=i("af03");n({target:"String",proto:!0,forced:r("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},"1f9f":function(e,t,i){"use strict";var n=i("411e"),o=i.n(n);o.a},2168:function(e,t,i){},2532:function(e,t,i){"use strict";var n=i("23e7"),o=i("5a34"),r=i("1d80"),a=i("ab13");n({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(r(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"2db0":function(e,t,i){i("c975"),i("ac1f"),i("466d"),i("5319"),UE.Editor.prototype.getKfContent=function(e){var t=this,i=t.getActionUrl(t.getOpt("scrawlActionName")),n=UE.utils.serializeParam(t.queryCommandValue("serverparam"))||"",o=UE.utils.formatUrl(i+(-1==i.indexOf("?")?"?":"&")+n),r=0,a=t.body.getElementsByTagName("img"),s=[];function l(){r>=s.length&&(t.sync(),e(t.getContent()))}UE.utils.each(a,(function(e){var t=e.getAttribute("src").match(/^[^;]+/)[0];"data:image/png"===t&&s.push(e)})),0==s.length?l():UE.utils.each(s,(function(e){var i={};i[t.getOpt("scrawlFieldName")]=e.getAttribute("src").replace(/^[^,]+,/,""),i.onsuccess=function(i){var n=UE.utils.str2json(i.responseText),o=t.options.scrawlUrlPrefix+n.url;e.setAttribute("src",o),e.setAttribute("_src",o),r++,l()},i.onerror=function(e){console.error(e),r++,l()},UE.ajax.request(o,i)}))}},"2e32":function(e,t){UE.I18N["zh-cn"]={labelMap:{anchor:"锚点",undo:"撤销",redo:"重做",bold:"加粗",indent:"首行缩进",snapscreen:"截图",italic:"斜体",underline:"下划线",strikethrough:"删除线",subscript:"下标",fontborder:"字符边框",superscript:"上标",formatmatch:"格式刷",source:"源代码",blockquote:"引用",pasteplain:"纯文本粘贴模式",selectall:"全选",print:"打印",preview:"预览",horizontal:"分隔线",removeformat:"清除格式",time:"时间",date:"日期",unlink:"取消链接",insertrow:"前插入行",insertcol:"前插入列",mergeright:"右合并单元格",mergedown:"下合并单元格",deleterow:"删除行",deletecol:"删除列",splittorows:"拆分成行",splittocols:"拆分成列",splittocells:"完全拆分单元格",deletecaption:"删除表格标题",inserttitle:"插入标题",mergecells:"合并多个单元格",deletetable:"删除表格",cleardoc:"清空文档",insertparagraphbeforetable:"表格前插入行",insertcode:"代码语言",fontfamily:"字体",fontsize:"字号",paragraph:"段落格式",simpleupload:"单图上传",insertimage:"多图上传",edittable:"表格属性",edittd:"单元格属性",link:"超链接",emotion:"表情",spechars:"特殊字符",searchreplace:"查询替换",map:"Baidu地图",gmap:"Google地图",insertvideo:"视频",help:"帮助",justifyleft:"居左对齐",justifyright:"居右对齐",justifycenter:"居中对齐",justifyjustify:"两端对齐",forecolor:"字体颜色",backcolor:"背景色",insertorderedlist:"有序列表",insertunorderedlist:"无序列表",fullscreen:"全屏",directionalityltr:"从左向右输入",directionalityrtl:"从右向左输入",rowspacingtop:"段前距",rowspacingbottom:"段后距",pagebreak:"分页",insertframe:"插入Iframe",imagenone:"默认",imageleft:"左浮动",imageright:"右浮动",attachment:"附件",imagecenter:"居中",wordimage:"图片转存",lineheight:"行间距",edittip:"编辑提示",customstyle:"自定义标题",autotypeset:"自动排版",webapp:"百度应用",touppercase:"字母大写",tolowercase:"字母小写",background:"背景",template:"模板",scrawl:"涂鸦",music:"音乐",inserttable:"插入表格",drafts:"从草稿箱加载",charts:"图表"},insertorderedlist:{num:"1,2,3...",num1:"1),2),3)...",num2:"(1),(2),(3)...",cn:"一,二,三....",cn1:"一),二),三)....",cn2:"(一),(二),(三)....",decimal:"1,2,3...","lower-alpha":"a,b,c...","lower-roman":"i,ii,iii...","upper-alpha":"A,B,C...","upper-roman":"I,II,III..."},insertunorderedlist:{circle:"○ 大圆圈",disc:"● 小黑点",square:"■ 小方块 ",dash:"— 破折号",dot:" 。 小圆圈"},paragraph:{p:"段落",h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",h5:"标题 5",h6:"标题 6"},fontfamily:{songti:"宋体",kaiti:"楷体",heiti:"黑体",lishu:"隶书",yahei:"微软雅黑",andaleMono:"andale mono",arial:"arial",arialBlack:"arial black",comicSansMs:"comic sans ms",impact:"impact",timesNewRoman:"times new roman"},customstyle:{tc:"标题居中",tl:"标题居左",im:"强调",hi:"明显强调"},autoupload:{exceedSizeError:"文件大小超出限制",exceedTypeError:"文件格式不允许",jsonEncodeError:"服务器返回格式错误",loading:"正在上传...",loadError:"上传错误",errorLoadConfig:"后端配置项没有正常加载,上传插件不能正常使用!"},simpleupload:{exceedSizeError:"文件大小超出限制",exceedTypeError:"文件格式不允许",jsonEncodeError:"服务器返回格式错误",loading:"正在上传...",loadError:"上传错误",errorLoadConfig:"后端配置项没有正常加载,上传插件不能正常使用!"},elementPathTip:"元素路径",wordCountTip:"字数统计",wordCountMsg:"当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ",wordOverFlowMsg:'字数超出最大允许值,服务器可能拒绝保存!',ok:"确认",cancel:"取消",closeDialog:"关闭对话框",tableDrag:"表格拖动必须引入uiUtils.js文件!",autofloatMsg:"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",loadconfigError:"获取后台配置项请求出错,上传功能将不能正常使用!",loadconfigFormatError:"后台配置项返回格式出错,上传功能将不能正常使用!",loadconfigHttpError:"请求后台配置项http错误,上传功能将不能正常使用!",snapScreen_plugin:{browserMsg:"仅支持IE浏览器!",callBackErrorMsg:"服务器返回数据有误,请检查配置项之后重试。",uploadErrorMsg:"截图上传失败,请检查服务器端环境! "},insertcode:{as3:"ActionScript 3",bash:"Bash/Shell",cpp:"C/C++",css:"CSS",cf:"ColdFusion","c#":"C#",delphi:"Delphi",diff:"Diff",erlang:"Erlang",groovy:"Groovy",html:"HTML",java:"Java",jfx:"JavaFX",js:"JavaScript",pl:"Perl",php:"PHP",plain:"Plain Text",ps:"PowerShell",python:"Python",ruby:"Ruby",scala:"Scala",sql:"SQL",vb:"Visual Basic",xml:"XML"},confirmClear:"确定清空当前文档么?",contextMenu:{delete:"删除",selectall:"全选",deletecode:"删除代码",cleardoc:"清空文档",confirmclear:"确定清空当前文档么?",unlink:"删除超链接",paragraph:"段落格式",edittable:"表格属性",aligntd:"单元格对齐方式",aligntable:"表格对齐方式",tableleft:"左浮动",tablecenter:"居中显示",tableright:"右浮动",edittd:"单元格属性",setbordervisible:"设置表格边线可见",justifyleft:"左对齐",justifyright:"右对齐",justifycenter:"居中对齐",justifyjustify:"两端对齐",table:"表格",inserttable:"插入表格",deletetable:"删除表格",insertparagraphbefore:"前插入段落",insertparagraphafter:"后插入段落",deleterow:"删除当前行",deletecol:"删除当前列",insertrow:"前插入行",insertcol:"左插入列",insertrownext:"后插入行",insertcolnext:"右插入列",insertcaption:"插入表格名称",deletecaption:"删除表格名称",inserttitle:"插入表格标题行",deletetitle:"删除表格标题行",inserttitlecol:"插入表格标题列",deletetitlecol:"删除表格标题列",averageDiseRow:"平均分布各行",averageDisCol:"平均分布各列",mergeright:"向右合并",mergeleft:"向左合并",mergedown:"向下合并",mergecells:"合并单元格",splittocells:"完全拆分单元格",splittocols:"拆分成列",splittorows:"拆分成行",tablesort:"表格排序",enablesort:"设置表格可排序",disablesort:"取消表格可排序",reversecurrent:"逆序当前",orderbyasc:"按ASCII字符升序",reversebyasc:"按ASCII字符降序",orderbynum:"按数值大小升序",reversebynum:"按数值大小降序",borderbk:"边框底纹",setcolor:"表格隔行变色",unsetcolor:"取消表格隔行变色",setbackground:"选区背景隔行",unsetbackground:"取消选区背景",redandblue:"红蓝相间",threecolorgradient:"三色渐变",copy:"复制(Ctrl + c)",copymsg:"浏览器不支持,请使用 'Ctrl + c'",paste:"粘贴(Ctrl + v)",pastemsg:"浏览器不支持,请使用 'Ctrl + v'"},copymsg:"浏览器不支持,请使用 'Ctrl + c'",pastemsg:"浏览器不支持,请使用 'Ctrl + v'",anthorMsg:"链接",clearColor:"清空颜色",standardColor:"标准颜色",themeColor:"主题颜色",property:"属性",default:"默认",modify:"修改",justifyleft:"左对齐",justifyright:"右对齐",justifycenter:"居中",justify:"默认",clear:"清除",anchorMsg:"锚点",delete:"删除",clickToUpload:"点击上传",unset:"尚未设置语言文件",t_row:"行",t_col:"列",more:"更多",pasteOpt:"粘贴选项",pasteSourceFormat:"保留源格式",tagFormat:"只保留标签",pasteTextFormat:"只保留文本",autoTypeSet:{mergeLine:"合并空行",delLine:"清除空行",removeFormat:"清除格式",indent:"首行缩进",alignment:"对齐方式",imageFloat:"图片浮动",removeFontsize:"清除字号",removeFontFamily:"清除字体",removeHtml:"清除冗余HTML代码",pasteFilter:"粘贴过滤",run:"执行",symbol:"符号转换",bdc2sb:"全角转半角",tobdc:"半角转全角"},background:{static:{lang_background_normal:"背景设置",lang_background_local:"在线图片",lang_background_set:"选项",lang_background_none:"无背景色",lang_background_colored:"有背景色",lang_background_color:"颜色设置",lang_background_netimg:"网络图片",lang_background_align:"对齐方式",lang_background_position:"精确定位",repeatType:{options:["居中","横向重复","纵向重复","平铺","自定义"]}},noUploadImage:"当前未上传过任何图片!",toggleSelect:"单击可切换选中状态\n原图尺寸: "},insertimage:{static:{lang_tab_remote:"插入图片",lang_tab_upload:"本地上传",lang_tab_online:"在线管理",lang_tab_search:"图片搜索",lang_input_url:"地 址:",lang_input_size:"大 小:",lang_input_width:"宽度",lang_input_height:"高度",lang_input_border:"边 框:",lang_input_vhspace:"边 距:",lang_input_title:"描 述:",lang_input_align:"图片浮动方式:",lang_imgLoading:" 图片加载中……",lang_start_upload:"开始上传",lock:{title:"锁定宽高比例"},searchType:{title:"图片类型",options:["新闻","壁纸","表情","头像"]},searchTxt:{value:"请输入搜索关键词"},searchBtn:{value:"百度一下"},searchReset:{value:"清空搜索"},noneAlign:{title:"无浮动"},leftAlign:{title:"左浮动"},rightAlign:{title:"右浮动"},centerAlign:{title:"居中独占一行"}},uploadSelectFile:"点击选择图片",uploadAddFile:"继续添加",uploadStart:"开始上传",uploadPause:"暂停上传",uploadContinue:"继续上传",uploadRetry:"重试上传",uploadDelete:"删除",uploadTurnLeft:"向左旋转",uploadTurnRight:"向右旋转",uploadPreview:"预览中",uploadNoPreview:"不能预览",updateStatusReady:"选中_张图片,共_KB。",updateStatusConfirm:"已成功上传_张照片,_张照片上传失败",updateStatusFinish:"共_张(_KB),_张上传成功",updateStatusError:",_张上传失败。",errorNotSupport:"WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。",errorLoadConfig:"后端配置项没有正常加载,上传插件不能正常使用!",errorExceedSize:"文件大小超出",errorFileType:"文件格式不允许",errorInterrupt:"文件传输中断",errorUploadRetry:"上传失败,请重试",errorHttp:"http请求错误",errorServerUpload:"服务器返回出错",remoteLockError:"宽高不正确,不能所定比例",numError:"请输入正确的长度或者宽度值!例如:123,400",imageUrlError:"不允许的图片格式或者图片域!",imageLoadError:"图片加载失败!请检查链接地址或网络状态!",searchRemind:"请输入搜索关键词",searchLoading:"图片加载中,请稍后……",searchRetry:" :( ,抱歉,没有找到图片!请重试一次!"},attachment:{static:{lang_tab_upload:"上传附件",lang_tab_online:"在线附件",lang_start_upload:"开始上传",lang_drop_remind:"可以将文件拖到这里,单次最多可选100个文件"},uploadSelectFile:"点击选择文件",uploadAddFile:"继续添加",uploadStart:"开始上传",uploadPause:"暂停上传",uploadContinue:"继续上传",uploadRetry:"重试上传",uploadDelete:"删除",uploadTurnLeft:"向左旋转",uploadTurnRight:"向右旋转",uploadPreview:"预览中",updateStatusReady:"选中_个文件,共_KB。",updateStatusConfirm:"已成功上传_个文件,_个文件上传失败",updateStatusFinish:"共_个(_KB),_个上传成功",updateStatusError:",_张上传失败。",errorNotSupport:"WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。",errorLoadConfig:"后端配置项没有正常加载,上传插件不能正常使用!",errorExceedSize:"文件大小超出",errorFileType:"文件格式不允许",errorInterrupt:"文件传输中断",errorUploadRetry:"上传失败,请重试",errorHttp:"http请求错误",errorServerUpload:"服务器返回出错"},insertvideo:{static:{lang_tab_insertV:"插入视频",lang_tab_searchV:"搜索视频",lang_tab_uploadV:"上传视频",lang_video_url:"视频网址",lang_video_size:"视频尺寸",lang_videoW:"宽度",lang_videoH:"高度",lang_alignment:"对齐方式",videoSearchTxt:{value:"请输入搜索关键字!"},videoType:{options:["全部","热门","娱乐","搞笑","体育","科技","综艺"]},videoSearchBtn:{value:"百度一下"},videoSearchReset:{value:"清空结果"},lang_input_fileStatus:" 当前未上传文件",startUpload:{style:"background:url(upload.png) no-repeat;"},lang_upload_size:"视频尺寸",lang_upload_width:"宽度",lang_upload_height:"高度",lang_upload_alignment:"对齐方式",lang_format_advice:"建议使用mp4格式."},numError:"请输入正确的数值,如123,400",floatLeft:"左浮动",floatRight:"右浮动",'"default"':"默认",block:"独占一行",urlError:"输入的视频地址有误,请检查后再试!",loading:"  视频加载中,请等待……",clickToSelect:"点击选中",goToSource:"访问源视频",noVideo:"    抱歉,找不到对应的视频,请重试!",browseFiles:"浏览文件",uploadSuccess:"上传成功!",delSuccessFile:"从成功队列中移除",delFailSaveFile:"移除保存失败文件",statusPrompt:" 个文件已上传! ",flashVersionError:"当前Flash版本过低,请更新FlashPlayer后重试!",flashLoadingError:"Flash加载失败!请检查路径或网络状态",fileUploadReady:"等待上传……",delUploadQueue:"从上传队列中移除",limitPrompt1:"单次不能选择超过",limitPrompt2:"个文件!请重新选择!",delFailFile:"移除失败文件",fileSizeLimit:"文件大小超出限制!",emptyFile:"空文件无法上传!",fileTypeError:"文件类型不允许!",unknownError:"未知错误!",fileUploading:"上传中,请等待……",cancelUpload:"取消上传",netError:"网络错误",failUpload:"上传失败!",serverIOError:"服务器IO错误!",noAuthority:"无权限!",fileNumLimit:"上传个数限制",failCheck:"验证失败,本次上传被跳过!",fileCanceling:"取消中,请等待……",stopUploading:"上传已停止……",uploadSelectFile:"点击选择文件",uploadAddFile:"继续添加",uploadStart:"开始上传",uploadPause:"暂停上传",uploadContinue:"继续上传",uploadRetry:"重试上传",uploadDelete:"删除",uploadTurnLeft:"向左旋转",uploadTurnRight:"向右旋转",uploadPreview:"预览中",updateStatusReady:"选中_个文件,共_KB。",updateStatusConfirm:"成功上传_个,_个失败",updateStatusFinish:"共_个(_KB),_个成功上传",updateStatusError:",_张上传失败。",errorNotSupport:"WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。",errorLoadConfig:"后端配置项没有正常加载,上传插件不能正常使用!",errorExceedSize:"文件大小超出",errorFileType:"文件格式不允许",errorInterrupt:"文件传输中断",errorUploadRetry:"上传失败,请重试",errorHttp:"http请求错误",errorServerUpload:"服务器返回出错"},webapp:{tip1:"本功能由百度APP提供,如看到此页面,请各位站长首先申请百度APPKey!",tip2:"申请完成之后请至ueditor.config.js中配置获得的appkey! ",applyFor:"点此申请",anthorApi:"百度API"},template:{static:{lang_template_bkcolor:"背景颜色",lang_template_clear:"保留原有内容",lang_template_select:"选择模板"},blank:"空白文档",blog:"博客文章",resume:"个人简历",richText:"图文混排",sciPapers:"科技论文"},scrawl:{static:{lang_input_previousStep:"上一步",lang_input_nextsStep:"下一步",lang_input_clear:"清空",lang_input_addPic:"添加背景",lang_input_ScalePic:"缩放背景",lang_input_removePic:"删除背景",J_imgTxt:{title:"添加背景图片"}},noScarwl:"尚未作画,白纸一张~",scrawlUpLoading:"涂鸦上传中,别急哦~",continueBtn:"继续",imageError:"糟糕,图片读取失败了!",backgroundUploading:"背景图片上传中,别急哦~"},music:{static:{lang_input_tips:"输入歌手/歌曲/专辑,搜索您感兴趣的音乐!",J_searchBtn:{value:"搜索歌曲"}},emptyTxt:"未搜索到相关音乐结果,请换一个关键词试试。",chapter:"歌曲",singer:"歌手",special:"专辑",listenTest:"试听"},anchor:{static:{lang_input_anchorName:"锚点名字:"}},charts:{static:{lang_data_source:"数据源:",lang_chart_format:"图表格式:",lang_data_align:"数据对齐方式",lang_chart_align_same:"数据源与图表X轴Y轴一致",lang_chart_align_reverse:"数据源与图表X轴Y轴相反",lang_chart_title:"图表标题",lang_chart_main_title:"主标题:",lang_chart_sub_title:"子标题:",lang_chart_x_title:"X轴标题:",lang_chart_y_title:"Y轴标题:",lang_chart_tip:"提示文字",lang_cahrt_tip_prefix:"提示文字前缀:",lang_cahrt_tip_description:"仅饼图有效, 当鼠标移动到饼图中相应的块上时,提示框内的文字的前缀",lang_chart_data_unit:"数据单位",lang_chart_data_unit_title:"单位:",lang_chart_data_unit_description:"显示在每个数据点上的数据的单位, 比如: 温度的单位 ℃",lang_chart_type:"图表类型:",lang_prev_btn:"上一个",lang_next_btn:"下一个"}},emotion:{static:{lang_input_choice:"精选",lang_input_Tuzki:"兔斯基",lang_input_BOBO:"BOBO",lang_input_lvdouwa:"绿豆蛙",lang_input_babyCat:"baby猫",lang_input_bubble:"泡泡",lang_input_youa:"有啊"}},gmap:{static:{lang_input_address:"地址",lang_input_search:"搜索",address:{value:"北京"}},searchError:"无法定位到该地址!"},help:{static:{lang_input_about:"关于UEditor",lang_input_shortcuts:"快捷键",lang_input_introduction:"UEditor是由百度web前端研发部开发的所见即所得富文本web编辑器,具有轻量,可定制,注重用户体验等特点。开源基于BSD协议,允许自由使用和修改代码。",lang_Txt_shortcuts:"快捷键",lang_Txt_func:"功能",lang_Txt_bold:"给选中字设置为加粗",lang_Txt_copy:"复制选中内容",lang_Txt_cut:"剪切选中内容",lang_Txt_Paste:"粘贴",lang_Txt_undo:"重新执行上次操作",lang_Txt_redo:"撤销上一次操作",lang_Txt_italic:"给选中字设置为斜体",lang_Txt_underline:"给选中字加下划线",lang_Txt_selectAll:"全部选中",lang_Txt_visualEnter:"软回车",lang_Txt_fullscreen:"全屏"}},insertframe:{static:{lang_input_address:"地址:",lang_input_width:"宽度:",lang_input_height:"高度:",lang_input_isScroll:"允许滚动条:",lang_input_frameborder:"显示框架边框:",lang_input_alignMode:"对齐方式:",align:{title:"对齐方式",options:["默认","左对齐","右对齐","居中"]}},enterAddress:"请输入地址!"},link:{static:{lang_input_text:"文本内容:",lang_input_url:"链接地址:",lang_input_title:"标题:",lang_input_target:"是否在新窗口打开:"},validLink:"只支持选中一个链接时生效",httpPrompt:"您输入的超链接中不包含http等协议名称,默认将为您添加http://前缀"},map:{static:{lang_city:"城市",lang_address:"地址",city:{value:"北京"},lang_search:"搜索",lang_dynamicmap:"插入动态地图"},cityMsg:"请选择城市",errorMsg:"抱歉,找不到该位置!"},searchreplace:{static:{lang_tab_search:"查找",lang_tab_replace:"替换",lang_search1:"查找",lang_search2:"查找",lang_replace:"替换",lang_searchReg:"支持正则表达式,添加前后斜杠标示为正则表达式,例如“/表达式/”",lang_searchReg1:"支持正则表达式,添加前后斜杠标示为正则表达式,例如“/表达式/”",lang_case_sensitive1:"区分大小写",lang_case_sensitive2:"区分大小写",nextFindBtn:{value:"下一个"},preFindBtn:{value:"上一个"},nextReplaceBtn:{value:"下一个"},preReplaceBtn:{value:"上一个"},repalceBtn:{value:"替换"},repalceAllBtn:{value:"全部替换"}},getEnd:"已经搜索到文章末尾!",getStart:"已经搜索到文章头部",countMsg:"总共替换了{#count}处!"},snapscreen:{static:{lang_showMsg:"截图功能需要首先安装UEditor截图插件! ",lang_download:"点此下载",lang_step1:"第一步,下载UEditor截图插件并运行安装。",lang_step2:"第二步,插件安装完成后即可使用,如不生效,请重启浏览器后再试!"}},spechars:{static:{},tsfh:"特殊字符",lmsz:"罗马字符",szfh:"数学字符",rwfh:"日文字符",xlzm:"希腊字母",ewzm:"俄文字符",pyzm:"拼音字母",yyyb:"英语音标",zyzf:"其他"},edittable:{static:{lang_tableStyle:"表格样式",lang_insertCaption:"添加表格名称行",lang_insertTitle:"添加表格标题行",lang_insertTitleCol:"添加表格标题列",lang_orderbycontent:"使表格内容可排序",lang_tableSize:"自动调整表格尺寸",lang_autoSizeContent:"按表格文字自适应",lang_autoSizePage:"按页面宽度自适应",lang_example:"示例",lang_borderStyle:"表格边框",lang_color:"颜色:"},captionName:"表格名称",titleName:"标题",cellsName:"内容",errorMsg:"有合并单元格,不可排序"},edittip:{static:{lang_delRow:"删除整行",lang_delCol:"删除整列"}},edittd:{static:{lang_tdBkColor:"背景颜色:"}},formula:{static:{}},wordimage:{static:{lang_resave:"转存步骤",uploadBtn:{src:"upload.png",alt:"上传"},clipboard:{style:"background: url(copy.png) -153px -1px no-repeat;"},lang_step:"1、点击顶部复制按钮,将地址复制到剪贴板;2、点击添加照片按钮,在弹出的对话框中使用Ctrl+V粘贴地址;3、点击打开后选择图片上传流程。"},fileType:"图片",flashError:"FLASH初始化失败,请检查FLASH插件是否正确安装!",netError:"网络连接错误,请重试!",copySuccess:"图片地址已经复制!",flashI18n:{}},autosave:{saving:"保存中...",success:"本地保存成功"}}},3004:function(e,t,i){"use strict";var n=i("48f6"),o=i.n(n);o.a},3381:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"answer_sheet",style:"height:"+e.answerSheetHeight+"px"},[i("div",{ref:"box",staticClass:"card_edit-wrap"},e._l(e.bigTopicPageArr,(function(t,n){return i("paper",{key:n,class:"pageindex-"+n,attrs:{content:t,totalPageNum:e.bigTopicPageArr.length,pageIndex:n},on:{showEditBigTopic:e.showEditBigTopic,ueBlur:e.ueBlur}})})),1),i("div",{staticClass:"card_setting-wrap"},[i("setting",{on:{showAddBigTopic:e.showAddBigTopic,restAnswerSheet:e.restAnswerSheet}}),e.cardSetting.allowEdit?e._e():i("div",{staticClass:"set-disable"})],1),i("button",{staticClass:"btn btn-go-back",on:{click:e.goBack}},[e._v("返回")]),i("el-dialog",{attrs:{title:"设置",visible:e.dialogVisibleIsAddTopic,width:"915px","before-close":e.handleCloseAddTopic,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisibleIsAddTopic=t},open:e.showBigTopicDialog}},[i("AddTopic",{ref:"AddTopic",attrs:{"is-edit":e.isEdit,"edit-model-id":e.editNo},on:{cancel:function(t){e.dialogVisibleIsAddTopic=!1}}})],1)],1)},o=[],r=(i("99af"),i("4de4"),i("c740"),i("4160"),i("caad"),i("d81d"),i("a434"),i("a9e3"),i("d3b7"),i("6062"),i("3ca3"),i("159b"),i("ddb0"),i("2909")),a=i("5530"),s=(i("a630"),i("c975"),i("fb6a"),i("2f62")),l=i("60a6"),c=i("8a6d"),d={computed:Object(a["a"])({},Object(s["b"])("answerSheet",["bigTopicPageArr","answerCardType","initPageFlag","squareSize","paperListData","chageSomePageIndex","changeUeReadyHeightArr"])),watch:{initPageFlag:function(){var e=this;this.$nextTick((function(){e.loading=e.$loading.service({lock:!0,text:"正在排版中,请勿操作页面!",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),e.scrollPageIndex=null,e.baseRect.w=document.querySelectorAll(".paper-item-js")[0].offsetWidth-60,e.baseRect.h=document.querySelectorAll(".paper-item-js")[0].offsetHeight-100,e.paperInfoH=document.querySelector(".paper-info-index").offsetHeight,e.initPage(0)}))},chageSomePageIndex:{deep:!0,handler:function(e){null!==e.flag&&(this.loading=this.$loading.service({lock:!0,text:"正在排版中,请勿操作页面!",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),e.isToCurPage&&(this.scrollPageIndex=e.index),this.baseRect.w=document.querySelectorAll(".paper-item-js")[0].offsetWidth-60,this.baseRect.h=document.querySelectorAll(".paper-item-js")[0].offsetHeight-100,this.paperInfoH=document.querySelector(".paper-info-index").offsetHeight,this.initPage(e.index))}},changeUeReadyHeightArr:function(){this.setChangeUeReadyHeight.length>0&&this.UeReadyHeightChangeReloadPage()}},data:function(){return{baseRect:{w:0,h:0},paperInfoH:0,arrH:[],loading:null,scrollPageIndex:null,isRunInitPage:!1,isRunSetInterval:!1}},methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setBigTopicPageArr:l["j"],setChangeUeReadyHeight:l["e"]})),{},{initPage:function(e){var t,i=this;if(this.bigTopicPageArr.length>9)return this.loading.close(),!1;var n=[],o=[];this.isRunInitPage=!0,setTimeout((function(){t=document.querySelector(".pageindex-".concat(e)),n=Array.from(t.querySelectorAll(".paper-topic-content")),o=Array.from(t.querySelectorAll("img")),i.changePage(t,n,o,e),i.isRunInitPage=!1}),900)},changePage:function(e,t,i,n){this.arrH=t.map((function(e){return e.offsetHeight}));for(var o=0==n?this.paperInfoH:0,r=0;rthis.baseRect.h){var a=Array.from(t[r].children),s=0,l=JSON.parse(JSON.stringify(this.bigTopicPageArr[n][r]));[1,2,11].includes(l.questionTypeId)&&!l.isQuestionText?this.sortChoice(l,a,s,o,r,n):[1,2,11].includes(l.questionTypeId)&&l.isQuestionText?this.sortTopicContent(l,a,s,o,r,n):[5].includes(l.questionTypeId)&&!l.isQuestionText?this.sortFill(l,a,s,o,r,n):[5].includes(l.questionTypeId)&&l.isQuestionText?this.sortTopicFill(l,a,s,o,r,n):[7,17,27].includes(l.questionTypeId)?17===l.questionTypeId&&l.QuestionTextList?this.sortTopicChoose(l,a,s,o,r,n):this.sortExplain(l,a,s,o,r,n):[77].includes(l.questionTypeId)&&8==l.topicConfigureData.subject?this.sortExplain(l,a,s,o,r,n):[77].includes(l.questionTypeId)&&9==l.topicConfigureData.subject?this.sortArticleCn(l,a,s,o,r,n):(this.bigTopicPageArr.push(JSON.parse(JSON.stringify(this.bigTopicPageArr))[n].slice(r)),this.bigTopicPageArr[n]=[]);break}n==this.bigTopicPageArr.length-1&&(this.loading.close(),null!==this.scrollPageIndex&&(document.querySelector(".card_edit-wrap").scrollTop=this.getDisTop(document.querySelector(".pageindex-".concat(this.scrollPageIndex))),this.scrollPageIndex=null))},getDisTop:function(e){var t=e.offsetTop,i=e.offsetParent;while(null!==i)t+=i.offsetTop,i=i.offsetParent;return t},sortChoice:function(e,t,i,n,o,r){var a,s,l,c,d,u,m;if(e.isLast?(a=Array.from(t[0].querySelectorAll("ul")),s=0==e.topicConfigureData.direction?parseInt((a[0].offsetHeight-20)/a[0].children[0].offsetHeight):parseInt((a[0].offsetWidth-20)/a[0].children[0].offsetWidth),l=(t[0].offsetHeight-4)/a[0].offsetHeight,c=Math.ceil(a.length/l)):(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h?(m=!0,this.setNextPage(r,o,d,u,m)):(a=Array.from(t[1].querySelectorAll("ul")),s=e.topicConfigureData.direction?parseInt((a[0].offsetWidth-20)/a[0].children[0].offsetWidth):parseInt((a[0].offsetHeight-20)/a[0].children[0].offsetHeight),l=(t[1].offsetHeight-4)/a[0].offsetHeight,c=Math.ceil(a.length/l))),!m)for(var p=0;pthis.baseRect.h){0==p?(d=e.questions,u=[]):(d=JSON.parse(JSON.stringify(e.questions)).splice(p*c*s),u=JSON.parse(JSON.stringify(e.questions)).splice(0,p*c*s)),n=0,this.setNextPage(r,o,d,u,m);break}},sortTopicContent:function(e,t,i,n,o,r){var a,s,l,c,d,u,m;if(e.isLast?a=t:(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h?c=!0:a=Array.from(t[1].parentNode.querySelectorAll(".topic-box-border"))),!c)for(var p=0;pthis.baseRect.h){u=p;var h=a[p].querySelector(".title")&&a[p].querySelector(".title").offsetHeight||0,f=i-a[p].offsetHeight;if(f+=h,n-this.arrH[o]+f>this.baseRect.h){d=!0;break}d=!1;var g=Array.from(a[p].querySelectorAll("li"));if(0==e.questions[p].listType){for(var b=0;bthis.baseRect.h){m=b;break}break}if(1==e.questions[p].listType){m=0;break}for(var v=0;vthis.baseRect.h)){m=v;break}break}this.setNextPage(r,o,s,l,c,d,u,m)},sortFill:function(e,t,i,n,o,r){var a,s,l,c,d;if(e.isLast?a=Array.from(t[0].querySelectorAll(".fill-item")):(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h?(d=!0,this.setNextPage(r,o,l,c,d)):a=Array.from(t[1].querySelectorAll(".fill-item"))),!d){e.topicConfigureData.columns=e.topicConfigureData.columns||1,e.topicConfigureData.rowLineHeight=e.topicConfigureData.rowLineHeight||40,s=Math.ceil(a.length/e.topicConfigureData.columns);for(var u=0;uthis.baseRect.h){0==u?(l=e.questions,c=[]):(l=JSON.parse(JSON.stringify(e.questions)).splice(u*e.topicConfigureData.columns),c=JSON.parse(JSON.stringify(e.questions)).splice(0,u*e.topicConfigureData.columns)),n=0,this.setNextPage(r,o,l,c,d);break}}},sortTopicFill:function(e,t,i,n,o,r){var a,s,l,c;if(e.isLast?a=t:(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h?c=!0:a=Array.from(t[1].parentNode.querySelectorAll(".topic-box-border"))),!c)for(var d=0;dthis.baseRect.h){s=JSON.parse(JSON.stringify(e.questions)).splice(d),l=JSON.parse(JSON.stringify(e.questions)).splice(0,d);break}this.setNextPage(r,o,s,l,c)},setNextPage:function(e,t,i,n,o,a,s,l){var c,d,u=this;[7,17].includes(this.bigTopicPageArr[e][t].questionTypeId)||o||(a?(c=JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(t),c[0].questions=c[0].questions.splice(s),d=Object(r["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(0,t+1)),d[t].questions=0==s?[]:d[t].questions.splice(0,s),this.$set(this.bigTopicPageArr,e,d),this.bigTopicPageArr.push(c),this.bigTopicPageArr[e+1][0].isLast=!0):this.bigTopicPageArr[e][t].isQuestionText?(c=JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(t),d=Object(r["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(0,t+1)),5===c[0].questionTypeId?(d[t].questions=JSON.parse(JSON.stringify(n)),c[0].questions=JSON.parse(JSON.stringify(i))):(d[t].questions=JSON.parse(JSON.stringify(d[t].questions.splice(0,s+1))),d[t].questions[s].queOptions=0==l?[]:d[t].questions[s].queOptions.splice(0,l),c[0].questions=JSON.parse(JSON.stringify(c[0].questions.splice(s))),c[0].questions[0].queOptions=c[0].questions[0].queOptions.splice(l),c[0].questions[0].isOnlyShowOption=!0),c[0].isLast=!0,this.$set(this.bigTopicPageArr,e,d),this.bigTopicPageArr.push(c)):(this.bigTopicPageArr.push(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(t)),this.bigTopicPageArr[e+1][0].isLast=!0,this.bigTopicPageArr[e+1][0].questions=JSON.parse(JSON.stringify(i)),0===n.length?(this.bigTopicPageArr[e]=Object(r["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(0,t+1)),this.bigTopicPageArr[e][t].questions=[]):(this.bigTopicPageArr[e]=Object(r["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].splice(0,t+1)),this.bigTopicPageArr[e][t].questions=JSON.parse(JSON.stringify(n)))));if(o){var m=JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].slice(t),p=Object(r["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].slice(0,t));this.$set(this.bigTopicPageArr,e,p),this.bigTopicPageArr.push(m)}this.setBigTopicPageArr(JSON.parse(JSON.stringify(this.bigTopicPageArr))),this.bigTopicPageArr.length>e+1&&this.$nextTick((function(){u.initPage(e+1)}))},sortTopicChoose:function(e,t,i,n,o,r){for(var a,s,l,c,d,u=this.baseRect.h-(n-this.arrH[o]),m=0,p=0;pu)if(e.isLast)a=t;else{if(0!==p){if(1===p){d=!0,a=Array.from(t[1].parentNode.querySelectorAll(".title"));for(var f=0;fthis.baseRect.h){s=JSON.parse(JSON.stringify(e.QuestionTextList)).splice(f),l=JSON.parse(JSON.stringify(e.QuestionTextList)).splice(0,f);break}break}d=!1;var g=m-u,b=h.querySelector("iframe"),v=b.contentDocument.body,y=v.innerHTML.indexOf("-1,C=JSON.parse(JSON.stringify(e.questions[p-2]));""==v.innerHTML&&""!=C.contentHtml&&(y=!0),s=e.questions.splice(p-1),l=e.questions.splice(0,p-1);var x=1===l[l.length-1].cutId?h.offsetHeight-g-45:h.offsetHeight-g,w={curHtml:"",overHtml:""};x<30?(s.unshift(JSON.parse(JSON.stringify(l[l.length-1]))),l.splice(l.length-1,1)):(y?w.curHtml=C.contentHtml:w=this.explainTopicContentCut(x,v),l[l.length-1].contentHtml=w.curHtml,l[l.length-1].TopicAreaHeight=x,g<20&&(g=20),C.contentHtml=w.overHtml,C.cutId=C.cutId+1,C.TopicAreaHeight=g,s.unshift(C));break}c=!0}}this.setTopicChoosePaging(r,o,s,l,c,d)},sortExplain:function(e,t,i,n,o,r){var a=[],s=[],l=this.baseRect.h-(n-this.arrH[o]);if(l<100)return this.setExplainPaging(r,o,e.questions,a),!1;for(var c=0;cl){if(e.isLast){var u=i-l,m=d.querySelector("iframe"),p=m.contentDocument.body,h=p.innerHTML.indexOf("-1,f=JSON.parse(JSON.stringify(e.questions[c]));""==p.innerHTML&&""!=f.contentHtml&&(h=!0),s=e.questions.splice(c+1),a=e.questions.splice(0,c+1);var g=1===a[a.length-1].cutId?d.offsetHeight-u-45:d.offsetHeight-u,b={curHtml:"",overHtml:""};g<30?(s.unshift(JSON.parse(JSON.stringify(a[a.length-1]))),a.splice(a.length-1,1)):(h?b.curHtml=f.contentHtml:b=this.explainTopicContentCut(g,p),a[a.length-1].contentHtml=b.curHtml,a[a.length-1].TopicAreaHeight=g,u<20&&(u=20),f.contentHtml=b.overHtml,f.cutId=f.cutId+1,f.TopicAreaHeight=u,s.unshift(f))}else{if(0===c){a=[],s=e.questions;break}var v=i-l+10+16,y=d.querySelector("iframe"),C=y.contentDocument.body,x=C.innerHTML.indexOf("-1,w=JSON.parse(JSON.stringify(e.questions[c-1]));""==C.innerHTML&&""!=w.contentHtml&&(x=!0),s=e.questions.splice(c),a=e.questions.splice(0,c);var T=1===a[a.length-1].cutId?d.offsetHeight-v-45-10:d.offsetHeight-v-10,N={curHtml:"",overHtml:""};T<30?(s.unshift(JSON.parse(JSON.stringify(a[a.length-1]))),a.splice(a.length-1,1)):(x?N.curHtml=w.contentHtml:N=this.explainTopicContentCut(T,C),a[a.length-1].contentHtml=N.curHtml,a[a.length-1].TopicAreaHeight=T,v<20&&(v=20),w.contentHtml=N.overHtml,w.cutId=w.cutId+1,w.TopicAreaHeight=v,s.unshift(w))}break}}this.setExplainPaging(r,o,s,a)},explainQuestionsCut:function(e,t,i,n,o){var r=e.querySelector("iframe"),a=r.contentDocument.body,s=t-i,l=JSON.parse(JSON.stringify(n.questions[o-1])),c=n.questions.splice(o),d=n.questions.splice(0,o),u=1===d[d.length-1].cutId?e.offsetHeight-s-45:e.offsetHeight-s,m=this.explainTopicContentCut(u,a);return d[d.length-1].contentHtml=m.curHtml,d[d.length-1].TopicAreaHeight=u,s<20&&(s=20),l.contentHtml=m.overHtml,l.cutId=l.cutId+1,l.TopicAreaHeight=s,c.unshift(l),{overArr:c,curArr:d}},explainTopicContentCut:function(e,t){var i=0,n="",o="";return Object(r["a"])(t.children).forEach((function(t){i+=t.offsetHeight,i>e-16?o+=t.outerHTML:n+=t.outerHTML})),{curHtml:n,overHtml:o}},sortArticle:function(e,t,i,n,o,r){var a,s,l,c,d,u,m=this;if(a=document.querySelector(".article-chinese").offsetWidth,s=parseInt(a/this.squareSize.w),l=Math.ceil((e.topicConfigureData.compositionNumber-(e.topicConfigureData.startPositionNumber||1))/s),e.isLast||(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h&&(c=!0,this.setNextPage(r,o,d,u,c))),!c)for(var p=0;pthis.baseRect.h){this.bigTopicPageArr.push(JSON.parse(JSON.stringify(this.bigTopicPageArr))[r].slice(o)),this.bigTopicPageArr[r+1][0].isLast=!0;var h=void 0;h=this.bigTopicPageArr[r-1]&&this.bigTopicPageArr[r-1][this.bigTopicPageArr[r-1].length-1]&&77==this.bigTopicPageArr[r-1][this.bigTopicPageArr[r-1].length-1].questionTypeId?this.bigTopicPageArr[r-1][this.bigTopicPageArr[r-1].length-1].topicConfigureData.compositionNumber:0,this.bigTopicPageArr[r][o].topicConfigureData.compositionNumber=(p-1)*s+h,this.bigTopicPageArr[r+1][0].topicConfigureData.startPositionNumber=1+(p-1)*s+h,this.bigTopicPageArr[r+1][0].questions[0].cutId=this.bigTopicPageArr[r+1][0].questions[0].cutId+1,this.setBigTopicPageArr(JSON.parse(JSON.stringify(this.bigTopicPageArr))),this.bigTopicPageArr.length>r+1&&this.$nextTick((function(){m.initPage(r+1)}));break}},setExplainPaging:function(e,t,i,n){var o=this;if(0===i.length&&0===n.length)return!1;var a=JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].slice(t)[0];if(a.isLast=0!==n.length,a.questions=JSON.parse(JSON.stringify(i)),this.bigTopicPageArr[e+1]){var s=this.bigTopicPageArr[e+1][0]?this.bigTopicPageArr[e+1][0].modelId:0;if(a.modelId===s){var l=a.questions[a.questions.length-1],c=this.bigTopicPageArr[e+1][0].questions[0];if(l.alias===c.alias){c.TopicAreaHeight=c.TopicAreaHeight+l.TopicAreaHeight,c.contentHtml=c.contentHtml+l.contentHtml;for(var d=0;de+1&&this.$nextTick((function(){o.initPage(e+1)}))},setTopicChoosePaging:function(e,t,i,n,o,a){var s=this;if(!i&&!n||0===i.length&&0===n.length)return!1;var l=JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].slice(t)[0];if(o)if(this.bigTopicPageArr[e]=Object(r["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr))[e].slice(0,t)),this.bigTopicPageArr[e+1]){var c=this.bigTopicPageArr[e+1][0]?this.bigTopicPageArr[e+1][0].modelId:0;if(l.modelId===c){var d=l.questions[l.questions.length-1],u=this.bigTopicPageArr[e+1][0].questions[0];if(d.alias===u.alias){u.TopicAreaHeight=u.TopicAreaHeight+d.TopicAreaHeight,u.contentHtml=u.contentHtml+d.contentHtml;for(var m=0;me+1&&this.$nextTick((function(){s.initPage(e+1)}))},sortArticleCn:function(e,t,i,n,o,r){var a,s=[],l=[],c=this.baseRect.h-(n-this.arrH[o]),d=Array.from(document.querySelectorAll(".article-chinese"));0==d.length&&Array.from(document.querySelectorAll(".paper-topic-content")),a=this.cardSetting.hasBindingLine?r==this.bigTopicPageArr.length-1?d[d.length-1].offsetWidth:(this.pageIndex,d[0].offsetWidth):document.querySelector(".article-chinese").offsetWidth;for(var u=0;uc){if(e.isLast){var p=i-c,h=JSON.parse(JSON.stringify(e.questions[u]));if(l=e.questions.splice(u+1),s=e.questions.splice(0,u+1),h.TopicAreaHeight>0){var f=m.querySelector("iframe"),g=f.contentDocument.body,b=1===s[s.length-1].cutId?m.offsetHeight-p-45:m.offsetHeight-p,v={curHtml:"",overHtml:""};if(g.scrollHeight>p)b<30?(l.unshift(JSON.parse(JSON.stringify(s[s.length-1]))),s.splice(s.length-1,1)):(v=this.explainTopicContentCut(b,g),s[s.length-1].contentHtml=v.curHtml,s[s.length-1].TopicAreaHeight=b,p<20&&(p=20),h.contentHtml=v.overHtml,h.cutId=h.cutId+1,h.TopicAreaHeight=p,l.unshift(h));else{var y=void 0,C=void 0,x=void 0;if(y=parseInt(a/this.squareSize.w),C=Math.ceil((e.topicConfigureData.compositionNumber-(e.topicConfigureData.startPositionNumber||1)+1)/y),e.isLast||(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h&&(x=!0,this.setNextPage(r,o,l,s,x))),!x)for(var w=0,T=0;Tb-g.scrollHeight){var N=1===s[s.length-1].startPositionNumber?1:s[s.length-1].startPositionNumber-1;s[s.length-1].endPositionNumber=(T-1)*y+N-1,h.startPositionNumber=(T-1)*y+N,h.cutId=h.cutId+1,h.TopicAreaHeight=0,l.unshift(h);break}}}else{var S=void 0,E=void 0,U=void 0;if(S=parseInt(a/this.squareSize.w),E=Math.ceil((e.topicConfigureData.compositionNumber-(e.topicConfigureData.startPositionNumber||1)+1)/S),e.isLast||(i+=t[0].offsetHeight,n-this.arrH[o]+i>this.baseRect.h&&(U=!0,this.setNextPage(r,o,l,s,U))),!U)for(var _=0,k=0;km.offsetHeight-p-12){var A=1===s[s.length-1].startPositionNumber?1:s[s.length-1].startPositionNumber-1;s[s.length-1].endPositionNumber=(k-1)*S+A-1,h.startPositionNumber=(k-1)*S+A,h.cutId=h.cutId+1,h.TopicAreaHeight=0,l.unshift(h);break}}}else{if(0===u){s=[],l=e.questions;break}var I=i-c,B=m.querySelector("iframe"),O=B.contentDocument.body,D=JSON.parse(JSON.stringify(e.questions[u-1]));l=e.questions.splice(u),s=e.questions.splice(0,u);var L=1===s[s.length-1].cutId?m.offsetHeight-I-45:m.offsetHeight-I;if(D.TopicAreaHeight>c){var P={curHtml:"",overHtml:""};L<30?(l.unshift(JSON.parse(JSON.stringify(s[s.length-1]))),s.splice(s.length-1,1)):(P=this.explainTopicContentCut(L,O),s[s.length-1].contentHtml=P.curHtml,s[s.length-1].TopicAreaHeight=L,s[s.length-1].isShowArticleCn=!1,s[s.length-1].endPositionNumber=0,s[s.length-1].startPositionNumber=0,I<20&&(I=20),D.contentHtml=P.overHtml,D.cutId=D.cutId+1,D.TopicAreaHeight=Number(D.TopicAreaHeight)-Number(L),D.isShowArticleCn=!0,l.unshift(D))}else if(L<30)l.unshift(JSON.parse(JSON.stringify(s[s.length-1]))),s.splice(s.length-1,1);else{var R=void 0,H=void 0;R=parseInt(a/this.squareSize.w),H=Math.ceil((e.topicConfigureData.compositionNumber-(e.topicConfigureData.startPositionNumber||1)+1)/R);for(var q=0,M=0;Mc-D.TopicAreaHeight-45-12){var j=1===s[s.length-1].startPositionNumber?1:s[s.length-1].startPositionNumber-1;s[s.length-1].endPositionNumber=(M-1)*R+j-1,s[s.length-1].endPositionNumber<1&&(s[s.length-1].endPositionNumber=0,s[s.length-1].isShowArticleCn=!1),D.startPositionNumber=(M-1)*R+j,D.cutId=D.cutId+1,D.TopicAreaHeight=0,D.contentHtml="",D.isShowArticleCn=!0,l.unshift(D);break}}}break}}this.setExplainPaging(r,o,l,s)},UeReadyHeightChangeReloadPage:function(){var e=this;if(!this.isRunSetInterval){var t=null;this.isRunInitPage?t=setInterval((function(){this.setIntervalReloadPage()}),1e3):setTimeout((function(){e.isRunInitPage||(e.ReloadPage(),clearInterval(t))}),200)}},ReloadPage:function(){var e=this,t=Math.min.apply(Math,e.changeUeReadyHeightArr),i=JSON.parse(JSON.stringify(e.bigTopicPageArr)).splice(0,t),n=Object(c["a"])(JSON.parse(JSON.stringify(e.bigTopicPageArr)).splice(t),!1,!0);if(i.push(n),t==i.length-1&&1==i[t].length&&(!i[t][0].questions||0==i[t][0].questions.length))return i.pop(),void e.setBigTopicPageArr(i);e.setBigTopicPageArr(i),this.$nextTick((function(){e.initPage(t),e.setChangeUeReadyHeight([])}))},setIntervalReloadPage:function(){var e=this;this.isRunInitPage||setTimeout((function(){e.isRunInitPage||e.ReloadPage()}),200)}})},u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"card_setting"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isSetAnswer,expression:"!isSetAnswer"}],staticClass:"card_setting-topic"},[i("h3",{staticClass:"card_setting-title"},[e._v("选择答题卡布局")]),i("div",{staticClass:"card_setting-box"},[i("div",{staticClass:"card_setting-item"},[i("div",{staticClass:"name"},[e._v("纸张")]),i("div",{staticClass:"content"},[i("el-radio-group",{on:{change:e.changePageSize},model:{value:e.cardSetting.paperSize,callback:function(t){e.$set(e.cardSetting,"paperSize",t)},expression:"cardSetting.paperSize"}},[i("el-radio",{attrs:{label:1}},[e._v("A3")]),i("el-radio",{attrs:{label:2}},[e._v("A4")]),i("el-radio",{attrs:{label:3}},[e._v("16K(185*260)")]),i("el-radio",{attrs:{label:4}},[e._v("8K(260*370)")]),i("el-radio",{attrs:{label:5}},[e._v("8K(270*390)")])],1)],1)]),i("div",{staticClass:"card_setting-item"},[i("div",{staticClass:"name"},[e._v("方向")]),i("div",{staticClass:"content"},[i("el-radio-group",{on:{change:e.changePageDirection},model:{value:e.cardSetting.direction,callback:function(t){e.$set(e.cardSetting,"direction",t)},expression:"cardSetting.direction"}},[i("el-radio",{attrs:{label:1,disabled:e.isDisabledDirection(1)}},[e._v("横版")]),i("el-radio",{attrs:{label:2,disabled:e.isDisabledDirection(2)}},[e._v("竖版")])],1)],1)]),i("div",{staticClass:"card_setting-item border_b"},[i("div",{staticClass:"name"},[e._v("分栏")]),i("div",{staticClass:"content"},[i("div",{staticClass:"layoutList"},[i("div",{staticClass:"layoutItem",class:e.cardColumnClass(1),on:{click:function(t){"disabled"!=e.cardColumnClass(1)&&e.setCardColumn(1)}}},[e._m(0),i("em",[e._v("一栏")]),i("b",{staticClass:"icon_current"})]),i("div",{staticClass:"layoutItem",class:e.cardColumnClass(2),on:{click:function(t){"disabled"!=e.cardColumnClass(2)&&e.setCardColumn(2)}}},[e._m(1),i("em",[e._v("两栏")]),i("b",{staticClass:"icon_current"})]),i("div",{staticClass:"layoutItem",class:e.cardColumnClass(3),on:{click:function(t){"disabled"!=e.cardColumnClass(3)&&e.setCardColumn(3)}}},[e._m(2),i("em",[e._v("三栏")]),i("b",{staticClass:"icon_current"})])])])]),i("div",{staticClass:"card_setting-item border_b"},[i("div",{staticClass:"name"},[e._v("装订线")]),i("div",{staticClass:"content"},[i("el-radio-group",{on:{change:e.saveCardSetting},model:{value:e.cardSetting.hasBindingLine,callback:function(t){e.$set(e.cardSetting,"hasBindingLine",t)},expression:"cardSetting.hasBindingLine"}},[i("el-radio",{attrs:{label:1,disabled:e.cardSetting.cardLength>12&&[3,4,5].includes(e.cardSetting.paperSize)||4==e.cardSetting.paperSize&&3==e.cardSetting.column}},[e._v("有")]),i("el-radio",{attrs:{label:0}},[e._v("无")])],1)],1)]),i("div",{staticClass:"card_setting-item border_b"},[i("div",{staticClass:"name"},[e._v("信息栏")]),i("div",{staticClass:"content"},[i("el-radio-group",{on:{change:e.setPaperInfoMsg},model:{value:e.cardSetting.hasPaperMsg,callback:function(t){e.$set(e.cardSetting,"hasPaperMsg",t)},expression:"cardSetting.hasPaperMsg"}},[i("el-radio",{attrs:{label:!0}},[e._v("有")]),i("el-radio",{attrs:{label:!1}},[e._v("无")])],1),i("div",{staticClass:"centerBox"},[i("span",{staticClass:"iconfont icontishi1",on:{mouseenter:function(t){return e.enterLinesTips()},mouseleave:function(t){return e.leaveLinesTips()}}},[e.tipsBox1?i("b",[e._v("选择“有”,还可以在左侧答题卡编辑页进行内容修改配置!")]):e._e()])])],1)]),i("div",{staticClass:"card_setting-item border_b"},[i("div",{staticClass:"name"},[e._v("考号")]),i("div",{staticClass:"content"},[i("el-checkbox-group",{attrs:{disabled:e.cardSetting.useQrCode},on:{change:e.changePageExaminationNumberType},model:{value:e.cardSetting.examinationNumberType,callback:function(t){e.$set(e.cardSetting,"examinationNumberType",t)},expression:"cardSetting.examinationNumberType"}},[i("el-checkbox",{attrs:{label:1,disabled:e.setDisabled(1)}},[e._v("填涂考号")]),i("el-checkbox",{attrs:{label:2,disabled:e.setDisabled(2)}},[e._v("条形码")])],1),1===e.paperSource?i("el-switch",{staticStyle:{display:"block","margin-top":"10px"},attrs:{"active-color":"#409EFF","inactive-color":"#bbb","active-text":"使用二维码"},on:{change:e.changePageUseQrCode},model:{value:e.cardSetting.useQrCode,callback:function(t){e.$set(e.cardSetting,"useQrCode",t)},expression:"cardSetting.useQrCode"}}):e._e(),1===e.paperSource?i("div",{staticClass:"centerBox ewmCenterBox"},[i("span",{staticClass:"iconfont icontishi1 ewmFont",on:{mouseenter:function(t){return e.enterEwmTips()},mouseleave:function(t){return e.leaveEwmTips()}}},[e.tipsBox2?i("b",[e._v("使用二维码,将给每个考生都生成一份定制答题卡,请慎重!")]):e._e()])]):e._e()],1)])]),i("div",{staticClass:"overBox"},[i("div",{staticClass:"subject-list"},e._l(e.bigTopicArr,(function(t,n){return i("div",{key:n,staticClass:"card_setting-item"},[e.isShowBigTopicNo(t)?[i("div",{staticClass:"name"},[e._v(e._s(e.getTopicTypeText(t.questionTypeId)))]),i("div",{staticClass:"content"},e._l(t.topicConfigureData.topicTypeArr,(function(t,n){return i("div",{key:n,staticClass:"s-num"},[e._v(e._s(t.startNo)+"~"+e._s(t.endNo))])})),0)]:e._e()],2)})),0),0===e.paperSource?i("div",{staticClass:"edit-topic-btn-box"},[i("button",{staticClass:"btn btn-add-topic",on:{click:e.showAddBigTopic}},[e._v("+ 添加试题")]),i("span",{staticClass:"btn-set-answer",on:{click:e.showSelectSetAnswer}},[e._v("设置客观题答案")])]):e._e()]),i("div",{staticClass:"btn-card-box"},[i("button",{staticClass:"btn btn-card-preview",on:{click:e.goPreview}},[e._v("预览")]),i("button",{staticClass:"btn btn-card-save",class:{disabled:e.isAllowEdit},attrs:{disabled:e.isAllowEdit},on:{click:e.savePage}},[e._v(e._s(e.cardSetting.allowEdit?"保存":"编辑"))]),i("button",{staticClass:"btn btn-card-down",class:{disabled:e.isDisabledBtnDown},attrs:{disabled:e.isDisabledBtnDown},on:{click:e.downPdfAll}},[e._v(e._s(e.cardSetting.useQrCode?"生成":"下载"))])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isSetAnswer,expression:"isSetAnswer"}],staticClass:"card_setting-answer"},[i("SetAnswer",{on:{cancel:function(t){e.isSetAnswer=!1}}})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowToPdfHtml,expression:"isShowToPdfHtml"}],staticClass:"to-pdf-html-box"},[i("toPdfHtml",{ref:"toPdfHtml"})],1),i("el-dialog",{attrs:{title:"提示",visible:e.centerDialogVisible,width:"30%",center:""},on:{"update:visible":function(t){e.centerDialogVisible=t}}},[i("p",{staticStyle:{"text-align":"center","font-size":"16px",color:"#000000"}},[e._v(e._s(e.tipsContent))]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){""==e.cardSetting.title?e.centerDialogVisible=!1:e.showSelectSetAnswer()}}},[e._v("去设置")]),i("el-button",{on:{click:function(t){e.centerDialogVisible=!1}}},[e._v("关闭")])],1)])],1)},m=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("i")])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("i"),i("i")])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[i("i"),i("i"),i("i")])}],p=(i("b0c0"),i("b64b"),i("2532"),i("53ca")),h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"set-select-answer"},[i("h3",{staticClass:"card_setting-title"},[e._v("设置客观题答案")]),i("div",{staticClass:"set-select-list"},e._l(e.topicList,(function(t){return i("div",{key:t.alias,staticClass:"answer-item"},[i("span",{staticClass:"number"},[e._v(e._s(t.alias))]),i("span",{staticClass:"topic-type-name"},[e._v(e._s(t.questionTypeText))]),i("p",{staticClass:"option-box"},e._l(t.optionList,(function(n){return i("i",{key:n.value,staticClass:"answer-option",class:{active:n.isAnswer},on:{click:function(i){return e.setAnswer(n,t)}}},[e._v(e._s(n.value))])})),0)])})),0),i("div",{staticClass:"btn-card-box"},[i("button",{staticClass:"btn btn-card-save",on:{click:e.saveSelectAnswer}},[e._v("保存")]),i("button",{staticClass:"btn btn-card-go_back",on:{click:e.cancel}},[e._v("返回")])])])},f=[],g=(i("07ac"),{name:"SetAnswer",components:{},filters:{},props:{},data:function(){return{topicData:[{alias:"1",answer:"",questionTypeId:1,questionTypeText:"单选题",optionsCount:4},{alias:"2",answer:"",questionTypeId:2,questionTypeText:"多选题",optionsCount:7}],topicList:[]}},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["bigTopicArr","topicTypes"])),watch:{bigTopicArr:{handler:function(){this.getDefaultData()},deep:!0}},mounted:function(){this.getDefaultData()},methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setBigTopicArr:l["b"]})),{},{getDefaultData:function(){var e=this;this.topicData=[],this.topicList=[],Object.values(this.bigTopicArr).forEach((function(t){if([1,2,11].includes(t.questionTypeId)){for(var i,n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;if(0!=e.length)for(var a,s=0,l=0;l0)for(var c=s;c3&&void 0!==arguments[3]?arguments[3]:1,o=[],r=[],a=[],s=[],l=Array.from(document.querySelectorAll(".paper-item-js")),d=1==n?0:this.cardSetting.column,u=d;u0?Object(c["a"])(a,!0):[],{eleArr:o,pageEle:s,objArr:r}},resetTopicJson:function(e,t,i){var n=e.filter((function(e){return e.questionTypeId===t&&!e.isQuestionText&&e.modelId==i})),o={};if(0!=n.length){o=JSON.parse(JSON.stringify(n[0]));for(var a=0;a0)(s=o.questions).push.apply(s,Object(r["a"])(JSON.parse(JSON.stringify(n[a].questions))))}}return o},pageSide:function(){var e=document.querySelector(".unique-code"),t=document.querySelectorAll(".paper-item-js")[0],i=t.offsetWidth*this.cardSetting.column,n=t.offsetHeight,o=e.offsetWidth,r=e.offsetHeight,a=T(e),s=[];s.push(a),s.push({x:.35*i,y:20}),s.push({x:i-30-o,y:20}),s.push({x:a.x,y:n-20-r}),s.push({x:i-30-o,y:n-20-r});var l=s.map((function(e){return{x:e.x,y:e.y,width:o,height:r}}));this.pages[0].location=l,this.pages[1].location=JSON.parse(JSON.stringify(l)),this.pages[1].location[0].x=30,this.pages[1].location[1].x=i-.35*i-o,this.pages[1].location[2].x=i-(this.cardSetting.hasBindingLine?50:30)-o,this.pages[1].location[3].x=30,this.pages[1].location[4].x=i-(this.cardSetting.hasBindingLine?50:30)-o},pointWay:function(e){var t=this;this.$nextTick((function(){var i,n=Array.from(document.querySelectorAll(".paper-item"))[0],o=document.querySelector(".notice-ewm");t.cardSetting.useQrCode&&o&&(i=S(e,o));var r,a,s={height:n.offsetHeight,width:n.offsetWidth*t.cardSetting.column},l=document.querySelector(".absent-mark"),c=S(e,l);r=document.querySelector(".code-img"),!t.cardSetting.useQrCode&&r&&(a=S(e,r));var d={object:{}};d.object=a,t.pages[0].studentcode_bar=d,t.pages[0].QrCode=i,t.pages[0].absent=c,t.pages.map((function(e,t){e.imge=s,e.pageNo=t+1}))}))},identCard:function(e){if(this.pages[0].studentcode_fill={},this.cardSetting.examinationNumberType.includes(1)){for(var t=[],i=document.querySelector(".card-id"),n=document.querySelector(".unique-li").offsetWidth,o=0;o2*this.cardSetting.column)return this.$message.error("超出"+2*this.cardSetting.column+"页,请重新编辑后再保存!"),!1;if(""==this.cardSetting.title)return this.centerDialogVisible=!0,this.tipsContent="考试名称不能为空!",!1;var l=!1;for(var c in this.bigTopicArr)[1,2,11].includes(this.bigTopicArr[c].questionTypeId)&&this.bigTopicArr[c].questions.forEach((function(e){""==e.answer&&(l=!0)}));if(l)return this.centerDialogVisible=!0,this.tipsContent="请设置答案!",!1;this.cardSetting.allowEdit=!1,this.setCardSetting(this.cardSetting),this.saveLoading=this.$loading.service({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),this.isShowToPdfHtml=!0,this.$refs.toPdfHtml.getDefaultData(),setTimeout((function(){e.$nextTick((function(){var i=e.setPosInfo();Array.from(document.querySelectorAll(".blank-page")).forEach((function(e){e.style.height=document.querySelectorAll(".paper-item")[0].offsetHeight-100+"px"}));var n={width:"210mm",height:"297mm",name:"pdf",examGroupId:e.cardSetting.examGroupId,pdfHtml:e.pdfHtml};n.width=e.calcPaperSize.width+"mm",n.height=e.calcPaperSize.height+"mm",n.name=e.cardSetting.title,n.pdfHtml=e.getPdfHtml();var o=new FormData;Object.keys(n).forEach((function(e){o.append(e,n[e])})),Object(x["b"])(o).then((function(n){if(0==n.success)return e.$message.error("生成pdf失败,请稍后再试!"),e.cardSetting.allowEdit=!0,e.setCardSetting(e.cardSetting),t.saveLoading.close(),!1;if(e.pdf_url=n.data,i.pdf_url=n.data,i.pdfHtml=e.pdfHtml,t.testFormData.pdf_url=n.data,t.setTestFormData(t.testFormData),0==e.paperSource){e.testFormData.editType=1,e.testFormData.pdf_url=n.data;var o={testFormData:e.testFormData,savePrintInfo:i};localStorage.setItem("upDataThreeCard",JSON.stringify(o)),t.saveLoading.close(),e.$message.success("保存成功!")}else{var r=i,a=new FormData,s=new Blob([t.pdfHtml],{type:"text/plain;charset=utf-8"});t.isShowToPdfHtml=!1,Object.keys(r).forEach((function(e){"object"===Object(p["a"])(r[e])?a.append(e,JSON.stringify(r[e])):a.append(e,r[e])})),a.append("pdfTemplate",s,"pdfTepmlate.txt"),Object(x["d"])(a).then((function(e){t.saveLoading.close(),console.log(e),t.$message.success("保存成功!")})).catch((function(i){console.log(i),t.saveLoading.close(),t.cardSetting.allowEdit=!0,t.setCardSetting(e.cardSetting),t.$message.error("保存失败,请稍后再试!")}))}})).catch((function(){e.saveLoading.close(),t.cardSetting.allowEdit=!0,t.setCardSetting(e.cardSetting),t.$message.error("保存失败,请稍后再试!")}))}))}),200)},changePageSize:function(){var e=this.isDisabledDirection(this.cardSetting.direction);e&&(this.cardSetting.direction=1===this.cardSetting.direction?2:1,this.changePageDirection()),this.isDisabledCardColumn(this.cardSetting.column)&&this.changePageDirection(),this.saveCardSetting()},isDisabledDirection:function(e){var t=1===e?"horizontal":"vertical";return!this.sizeConfig[this.cardSetting.paperSize].direction[t].length>0},changePageDirection:function(){if(this.isDisabledCardColumn(this.cardSetting.column)){var e=1===this.cardSetting.direction?"horizontal":"vertical";this.cardSetting.column=this.sizeConfig[this.cardSetting.paperSize].direction[e][0]}this.saveCardSetting()},setCardColumn:function(e){this.isDisabledCardColumn(e)||(this.cardSetting.column=e),this.saveCardSetting()},cardColumnClass:function(e){return e===this.cardSetting.column?"current":this.isDisabledCardColumn(e)?"disabled":""},isDisabledCardColumn:function(e){var t=1===this.cardSetting.direction?"horizontal":"vertical",i=this.sizeConfig[this.cardSetting.paperSize].direction[t].indexOf(e);return i<=-1},changePageExaminationNumberType:function(){this.saveCardSetting()},changePageUseQrCode:function(e){var t=this;this.cardSetting.useQrCode=!1,e?this.$confirm("使用二维码,将给每个考试都生成一份定制答题卡,是否确定使用?","提示",{confirmButtonText:"仍要使用",cancelButtonText:"取消",type:"warning"}).then((function(){t.cardSetting.useQrCode=!0,t.cardSetting.examinationNumberType=[],t.saveCardSetting()})).catch((function(){t.$message({type:"info",message:"已取消"}),t.cardSetting.useQrCode=!1})):(this.cardSetting.examinationNumberType=[1,2],this.saveCardSetting())},showAddBigTopic:function(){this.$emit("showAddBigTopic",!0)},setPaperInfoMsg:function(){this.cardSetting.examInfoConfig.forEach((function(e){return e.isShow=!0})),this.setCardSetting(this.cardSetting),this.saveCardSetting()},saveCardSetting:function(){3==this.cardSetting.column&&4==this.cardSetting.paperSize&&(this.cardSetting.hasBindingLine=0),this.setCodeRules(),this.setCardSetting(this.cardSetting),(new Date).getTime()-this.curDateTime<2e3||(this.curDateTime=(new Date).getTime(),this.setBigTopicPageArr([Object(c["a"])(this.bigTopicPageArr)]),this.setInitPageFlag(!this.initPageFlag))},showSelectSetAnswer:function(){this.centerDialogVisible=!1,this.isSetAnswer=!0},getTopicTypeText:function(e){var t="";return this.topicTypes.forEach((function(i){e==i.value&&(t=i.label)})),t},goPreview:function(){this.$router.push({path:"/AnswerSheetPreview",query:{exam_group_id:this.cardSetting.examGroupId}})},getPdfHtml:function(){var e="";return e+="",e+='',e+="",e+='',e+="Document",e=e+'',e=e+'',e+="",e+="",e+=this.$refs.toPdfHtml.$el.outerHTML,e+="",this.pdfHtml=e,e},downPdf:function(e){var t=this,i={width:"210mm",height:"297mm",name:"pdf",examGroupId:this.cardSetting.examGroupId,pdfHtml:this.pdfHtml},n=new FormData;Object.keys(i).forEach((function(e){n.append(e,i[e])})),this.isShowToPdfHtml=!1,Object(x["b"])(n).then((function(i){return 0==i.success?(t.$message.error("生成pdf失败,请稍后再试!"),!1):(t.pdf_url=i.data,1===e?Promise.resolve(i):void(location.href={apiBaseUrl:"http://zsyas2.zhixinhuixue.com",siteUrl:"http://zsyas2.zhixinhuixue.com/vue/index.html#",phpPath:"http://zsyas2.zhixinhuixue.com/vue",phpBaseUrl:"/",xiaoben:"http://xbas2.xiaoben.com"}.apiBaseUrl+"/third/download?url="+i.data+"&title=pdf-"+t.cardSetting.title+".pdf"))}))},downPdfAll:function(){var e=this,t=this,i=this.bigTopicPageArr.length;if(i>2*this.cardSetting.column)return this.$message.error("超出"+2*this.cardSetting.column+"页,请重新编辑后再保存!"),!1;this.cardSetting.useQrCode?this.$confirm("该操作会把该场考试下面的所有班级学生考试模板进行批量生成。请勿重复生成!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=new FormData;e.append("exam_group_id",t.cardSetting.examGroupId),Object(x["e"])(e).then((function(e){1===e.status&&t.$message({type:"success",message:"后台批量生成中!"})}))})).catch((function(){e.$message({type:"info",message:"已取消"})})):location.href={apiBaseUrl:"http://zsyas2.zhixinhuixue.com",siteUrl:"http://zsyas2.zhixinhuixue.com/vue/index.html#",phpPath:"http://zsyas2.zhixinhuixue.com/vue",phpBaseUrl:"/",xiaoben:"http://xbas2.xiaoben.com"}.apiBaseUrl+"/third/download?url="+this.pdf_url+"&title=pdf-"+this.cardSetting.title+".pdf"},enterLinesTips:function(){this.tipsBox1=!0},leaveLinesTips:function(){this.tipsBox1=!1},enterEwmTips:function(){this.tipsBox2=!0},leaveEwmTips:function(){this.tipsBox2=!1},isShowBigTopicNo:function(e){var t=e.topicConfigureData.topicTypeArr[0];return""!=t.startNo&&""!=t.endNo},setDisabled:function(e){return this.cardSetting.examinationNumberType.includes(e)&&1==this.cardSetting.examinationNumberType.length||this.cardSetting.cardLength>12&&[3,4,5].includes(this.cardSetting.paperSize)},setCodeRules:function(){var e=this.cardSetting.cardLength<15&&([1,2].includes(this.cardSetting.paperSize)||!(this.cardSetting.cardLength>12&&[3,4,5].includes(this.cardSetting.paperSize)));e||this.cardSetting.useQrCode||(this.cardSetting.examinationNumberType=[1],this.cardSetting.hasBindingLine=0)}})},_=U,k=(i("82cc"),i("43fd"),Object(v["a"])(_,u,m,!1,null,"3de457e1",null)),A=k.exports,I=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paper-item paper-item-js",style:{width:e.calcPaperSize.width+"mm",height:e.calcPaperSize.height+"mm"}},[e.cardSetting.hasBindingLine&&0==e.pageIndex?i("paper-line",{attrs:{PaperLineFlag:e.cardSetting.hasBindingLine}}):e._e(),i("paper-content",e._g(e._b({attrs:{PaperLineFlag:e.cardSetting.hasBindingLine,content:e.content,paperColumn:e.cardSetting.column,pageIndex:e.pageIndex}},"paper-content",e.$attrs,!1),e.$listeners)),i("div",{staticClass:"page-num-cur"},[e._v("第"+e._s(e.pageIndex+1)+"页 共"+e._s(e.totalPageNum)+"页")]),i("div",{staticClass:"page-direction"},[e._v("第"+e._s(Math.ceil((e.pageIndex+1)/(2*e.cardSetting.column)))+"张纸"+e._s(Math.ceil((e.pageIndex+1)/e.cardSetting.column)%2==1?"正面":"反面")+" "+e._s(Math.ceil(e.pageIndex%e.cardSetting.column+1)))]),i("span",{class:["main-dot",{"unique-code":0==e.pageIndex,"unique-code-50":e.cardSetting.hasBindingLine&&0==e.pageIndex}],attrs:{"data-option":"bl"}}),e.cardSetting.allowEdit?e._e():i("div",{staticClass:"set-disable"}),0==e.content.length&&1==e.totalPageNum?i("div",{staticClass:"add-topic-tips"},[e._v(" 请添加试题 ")]):e._e()],1)},B=[],O=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["paper-line",{"line-left":1===e.PaperLineFlag,"line-right":2===e.PaperLineFlag}]},[1===e.PaperLineFlag?i("div",{staticClass:"examinee-info"},[!e.cardSetting.examinationNumberType.includes(1)&&e.cardSetting.examinationNumberType.includes(2)?i("div",{staticClass:"item"},[i("span",{staticClass:"red bineLineClassName"}),e._m(0)]):e._e(),i("div",{staticClass:"item"},[i("span",{staticClass:"red bindLineExamineeName"},[e.cardSetting.useQrCode?e._l("系统自动生成姓名信息",(function(t){return i("b",{key:t},[e._v(e._s(t))])})):e._e()],2),e._m(1)]),i("div",{staticClass:"item"},[i("span",{staticClass:"red bineLineClassName"},[e.cardSetting.useQrCode?e._l("系统自动生成班级信息",(function(t){return i("b",{key:t},[e._v(e._s(t))])})):e._e()],2),e._m(2)])]):e._e(),e._m(3)])},D=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("em",[i("i",[e._v(":")]),i("i",[e._v("号")]),i("i",[e._v("考")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("em",[i("i",[e._v(":")]),i("i",[e._v("名")]),i("i",[e._v("姓")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("em",[i("i",[e._v(":")]),i("i",[e._v("级")]),i("i",[e._v("班")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"line"},[i("span",[e._v("线")]),i("span",[e._v("订")]),i("span",[e._v("装")])])}],L={name:"PaperLine",props:{PaperLineFlag:{type:Number,default:0}},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting"]))},P=L,R=(i("4442"),Object(v["a"])(P,O,D,!1,null,"157042cb",null)),H=R.exports,q=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["paper-content",{"line-left":e.PaperLineFlag&&0==e.pageIndex,"line-right":e.PaperLineFlag&&e.pageIndex==2*e.paperColumn-1}]},[0==e.pageIndex?i("paper-info"):e._e(),i("paper-topic",e._g(e._b({attrs:{pageIndex:e.pageIndex}},"paper-topic",e.$attrs,!1),e.$listeners))],1)},M=[],j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paper-info-index"},[i("PaperTitle"),0==e.cardSetting.hasBindingLine?i("GradeAndName"):e._e(),e.cardSetting.hasPaperMsg?i("PaperInfo"):e._e(),i("PaperAttention"),i("PaperCard")],1)},$=[],F=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paper-title"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.cardSetting.title,expression:"cardSetting.title"}],attrs:{name:"name"},domProps:{value:e.cardSetting.title},on:{change:e.setTitle,input:function(t){t.target.composing||e.$set(e.cardSetting,"title",t.target.value)}}})])},z=[],V={name:"PaperTitle",computed:Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting"])),methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setCardSetting:l["c"]})),{},{setTitle:function(){this.setCardSetting(this.cardSetting)}})},W=V,J=(i("a546"),Object(v["a"])(W,F,z,!1,null,"21c9330c",null)),Q=J.exports,X=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paper-grade clearfix"},[i("div",{staticClass:"item"},[i("em",[e._v("班级:")]),i("span",{staticClass:"red className"},[e._v(e._s(e.cardSetting.useQrCode?"系统自动生成班级信息":""))])]),i("div",{staticClass:"item"},[i("em",[e._v("姓名:")]),i("span",{staticClass:"red examineeName"},[e._v(e._s(e.cardSetting.useQrCode?"系统自动生成姓名信息":""))])]),!e.cardSetting.examinationNumberType.includes(1)&&e.cardSetting.examinationNumberType.includes(2)?i("div",{staticClass:"item"},[i("em",[e._v("考号:")]),i("span",{staticClass:"red examineeName"})]):e._e()])},Y=[],G={name:"GradeAndName",computed:Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting"]))},K=G,Z=(i("70dc"),Object(v["a"])(K,X,Y,!1,null,"d5b317d0",null)),ee=Z.exports,te=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paper-info clearfix"},[e._l(e.infoList,(function(t){return i("span",{key:t.id},[e._v(e._s(t.name)+":"),i("input",{directives:[{name:"model",rawName:"v-model",value:t.text,expression:"info.text"}],staticClass:"input-paper-info",class:{number:t.id<2},attrs:{readonly:1===t.id,maxlength:"9"},domProps:{value:t.text},on:{change:e.setInfoList,input:function(i){i.target.composing||e.$set(t,"text",i.target.value)}}}),e._v(e._s(t.units))])})),i("div",{staticClass:"btn-paper-info iconfont iconedit",on:{click:e.editInfo}}),i("el-dialog",{attrs:{title:"设置",visible:e.paperInfoDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"400px",center:""},on:{"update:visible":function(t){e.paperInfoDialog=t}}},[e._l(e.cardSettingTemp.examInfoConfig,(function(t,n){return i("el-checkbox",{key:n,attrs:{size:"small",label:t.id},model:{value:t.isShow,callback:function(i){e.$set(t,"isShow",i)},expression:"item.isShow"}},[e._v(e._s(t.name))])})),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],2)],2)},ie=[],ne={name:"PaperInfo",data:function(){return{paperInfoDialog:!1,checkedTempInfo:[0,1,2,3],checkedInfo:[0,1,2,3],cardSettingTemp:{examInfoConfig:[]}}},computed:Object(a["a"])(Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting"])),{},{infoList:function(){var e=[];return this.cardSetting.examInfoConfig.forEach((function(t){t.isShow&&e.push(t)})),e}}),methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setCardSetting:l["c"]})),{},{editInfo:function(){this.paperInfoDialog=!0,this.cardSettingTemp=JSON.parse(JSON.stringify(this.cardSetting))},setInfoList:function(){this.setCardSetting(this.cardSetting)},confirm:function(){this.paperInfoDialog=!1;var e=this.cardSettingTemp.examInfoConfig.filter((function(e){return 1==e.isShow}));this.cardSettingTemp.hasPaperMsg=0!=e.length,this.setCardSetting(this.cardSettingTemp)},cancel:function(){this.paperInfoDialog=!1,this.checkedTempInfo=Object(r["a"])(this.checkedInfo)}})},oe=ne,re=(i("ebb6"),Object(v["a"])(oe,te,ie,!1,null,"4db8cda5",null)),ae=re.exports,se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"paper-attention"},[n("div",{class:["notice-info","page-width-"+(e.calcPaperSize.width>165?"default":"small")]},[n("i",{staticClass:"simple-border right"}),n("i",{staticClass:"simple-border"}),n("div",{staticClass:"tips-info"},[e._m(0),n("div",{staticClass:"notice-detail"},[e.isShowAttention(0)?n("p",[e._v("1、考生务必正确书写班级、姓名,请填涂系统准考证号。")]):e._e(),e.isShowAttention(1)?n("p",[e._v("1、考生务必正确书写班级、姓名,请填涂学校准考证号。")]):e._e(),e._l(e.attentionList,(function(t,i){return n("p",{key:i},[e._v(e._s(e.cardSetting.useQrCode?i+1:i+2)+"、"+e._s(t))])}))],2)]),n("div",{staticClass:"warming-info"},[n("div",{staticClass:"notice-ewm"},[e.cardSetting.useQrCode?n("i",{staticClass:"cover red"},[e._v("系统生成"),n("br"),e._v("考生二维码")]):e._e(),e.cardSetting.useQrCode?e._e():n("img",{staticClass:"dtk-ewm",attrs:{id:"dtk-ewm",src:i("50dc")}})]),e._m(1)])])])},le=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("h3",{staticClass:"notice-title"},[i("i",[e._v("注")]),i("i",[e._v("意")]),i("i",[e._v("事")]),i("i",[e._v("项")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"noticeLose"},[i("h4",[e._v("缺考标记 "),i("i",{staticClass:"absent-mark"})]),i("p",[e._v("考生禁止填涂缺考标记!")]),i("p",[e._v("只能由监考老师负责填涂。")])])}],ce=i("f35d"),de={name:"PaperAttention",data:function(){return{attentionOne:["考生务必正确书写班级、姓名,请填涂系统准考证号。","考生务必正确书写班级、姓名,请填涂学校准考证号。"],attentionList:["考生务必用2B铅笔填涂。","考生务必在答题卡指定位置作答,并保持卷面整洁。","如需要条形码,则考生务必要在指定位置正确贴好条形码。","教师务必使用红笔阅卷。"]}},methods:{isShowAttention:function(e){return 0===e?!this.cardSetting.useQrCode&&0==this.cardSetting.cardStatus:1!==e||!this.cardSetting.useQrCode&&1==this.cardSetting.cardStatus}},mixins:[ce["a"]]},ue=de,me=(i("cd95"),Object(v["a"])(ue,se,le,!1,null,"439bd28c",null)),pe=me.exports,he=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paper-card"},[e.cardSetting.examinationNumberType.includes(1)?i("div",{staticClass:"exam-id card-flex"},[i("div",{staticClass:"card-id clearfix"},e._l(Number(e.cardSetting.cardLength),(function(t){return i("div",{key:"id_"+t,staticClass:"fl"},[i("span",{staticClass:"square"}),i("ul",e._l(10,(function(e){return i("li",{key:e,class:{"unique-li":1==e&&1==t}},[i("span",{class:["iconfont","iconnum_"+(e-1)]})])})),0)])})),0),e.cardSetting.examinationNumberType.includes(2)&&([1,2].includes(this.cardSetting.paperSize)||e.cardSetting.cardLength<13&&[3,4,5].includes(e.cardSetting.paperSize))?i("div",{staticClass:"card-code clearfix"},[e._m(0)]):e._e()]):e._e(),!e.cardSetting.examinationNumberType.includes(1)&&e.cardSetting.examinationNumberType.includes(2)?i("div",{staticClass:"exam-code card-flex"},[e._m(1)]):e._e()])},fe=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"code-img fr"},[i("div",{staticClass:"code-words"},[i("i",[e._v("条")]),i("i",[e._v("形")]),i("i",[e._v("码")])])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"card-code clearfix"},[i("div",{staticClass:"code-img fl"},[i("div",{staticClass:"code-words cross-code"},[i("i",[e._v("条")]),i("i",[e._v("形")]),i("i",[e._v("码")])])])])}],ge={name:"PaperCard",computed:Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting"])),mixins:[ce["a"]]},be=ge,ve=(i("9614"),Object(v["a"])(be,he,fe,!1,null,"8562ea80",null)),ye=ve.exports,Ce={name:"PaperInfoIndex",components:{PaperTitle:Q,GradeAndName:ee,PaperInfo:ae,PaperAttention:pe,PaperCard:ye},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting"]))},xe=Ce,we=Object(v["a"])(xe,j,$,!1,null,null,null),Te=we.exports,Ne=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{},e._l(e.content,(function(t,n){return i("div",{key:"topic_"+n,class:["content-"+n,"paper-topic-content"]},[t.isLast?e._e():i("TopicTitle",{attrs:{titleInfo:e.setTopicTitle(t),txt:t}}),t.isQuestionText?e._e():[[1,2,11].includes(t.questionTypeId)?i("TopicChoice",e._g(e._b({class:"topic-"+t.questionTypeId,attrs:{topicInfo:t.questions,modelId:t.modelId,setConfig:t.topicConfigureData}},"TopicChoice",e.$attrs,!1),e.$listeners)):e._e(),5==t.questionTypeId?i("TopicFill",e._g(e._b({attrs:{topicInfo:t.questions,modelId:t.modelId,setConfig:t.topicConfigureData}},"TopicFill",e.$attrs,!1),e.$listeners)):e._e()],[7,17,27].includes(t.questionTypeId)?[17===t.questionTypeId&&t.QuestionTextList?i("ChooseTopic",{attrs:{topic:t.QuestionTextList}}):e._e(),e._l(t.questions,(function(n){return i("TopicExplain",e._g(e._b({key:""+n.alias+n.ChooseArea+n.cutId+Math.random(),class:{"choose-topic":17===t.questionTypeId},attrs:{topicInfo:n,setConfig:t}},"TopicExplain",e.$attrs,!1),e.$listeners))}))]:e._e(),1===e.answerCardType&&1==t.isQuestionText?e._l(t.questions,(function(e,t){return i("Topic",{key:t,attrs:{topicContent:e}})})):e._e(),[77].includes(t.questionTypeId)&&9==e.subject?e._l(t.questions,(function(n){return i("TopicExplain",e._g(e._b({key:""+n.alias+n.cutId+Math.random(),staticClass:"article-topic",attrs:{topicInfo:n,setConfig:t}},"TopicExplain",e.$attrs,!1),e.$listeners))})):e._e(),[77].includes(t.questionTypeId)&&8==e.subject?e._l(t.questions,(function(n){return i("TopicExplain",e._g(e._b({key:""+n.alias+n.cutId+Math.random(),staticClass:"article-topic",attrs:{topicInfo:n,setConfig:t}},"TopicExplain",e.$attrs,!1),e.$listeners))})):e._e()],2)})),0)},Se=[],Ee=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("h3",{staticClass:"topic-title big-topic-title",staticStyle:{height:"auto"}},[e._v(e._s(e.titleInfo.topicTitleText)),i("span",[e._v(e._s(e.titleInfo.topicSubTitleText))])])},Ue=[],_e={name:"TopicTitle",data:function(){return{}},props:{titleInfo:{type:Object,default:function(){return{}}}}},ke=_e,Ae=(i("98e7"),Object(v["a"])(ke,Ee,Ue,!1,null,null,null)),Ie=Ae.exports,Be=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"topic-choice clearfix",class:["flex-direction-"+e.form.direction,{"topic-box-border":e.optionsArr.length>0}]},[i("div",{staticClass:"btn-paper-info iconfont iconedit",on:{click:e.openSet}}),0==e.paperSource?i("div",{staticClass:"del-btn iconfont icondelete",on:{click:e.delTopic}}):e._e(),e._l(e.optionsArr,(function(t,n){return i("ul",{key:n,staticClass:"single-option clearfix"},e._l(t,(function(t,n){return i("li",{key:n,staticClass:"clearfix option-li",attrs:{"data-pageIndex":e.pageIndex,"data-modelId":e.modelId,"data-type":t.questionTypeId}},[i("em",[e._v(e._s(t.alias))]),e._l(parseInt(t.optionCount),(function(e,t){return i("span",{key:t,class:["iconfont","iconwords_"+t]})}))],2)})),0)})),i("el-dialog",{attrs:{title:"设置",visible:e.topicSetDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"30%",center:""},on:{"update:visible":function(t){e.topicSetDialog=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"选择排列方向"}},[i("el-radio-group",{model:{value:e.form.tempDirection,callback:function(t){e.$set(e.form,"tempDirection",t)},expression:"form.tempDirection"}},e._l(e.form.infoList,(function(t,n){return i("el-radio",{key:n,attrs:{label:t.id}},[e._v(e._s(t.name))])})),1)],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],2)},Oe=[],De=i("fbd4"),Le={name:"TopicChoice",mixins:[De["a"]],props:{topicInfo:{type:Array,default:function(){return[]}},setConfig:{type:Object,default:function(){return{}}},modelId:{type:String},pageIndex:{type:Number,default:null}},watch:{topicInfo:{handler:function(e){this.isMounted&&(this.form.direction=this.setConfig.direction||0,this.form.tempDirection=this.setConfig.direction||0,this.sortOptions(e))},deep:!0}},data:function(){return{optionsArr:[],topicSetDialog:!1,form:{direction:0,tempDirection:0,infoList:[{id:0,name:"横向"},{id:1,name:"纵向"}]},isMounted:!1}},created:function(){this.form.direction=this.setConfig.direction||0,this.form.tempDirection=this.setConfig.direction||0},mounted:function(){this.sortOptions(this.topicInfo),this.isMounted=!0},methods:{sortOptions:function(e){var t=this;this.optionsArr=[],e.forEach((function(e,i){t.optionsArr[parseInt(i/5)]||(t.optionsArr[parseInt(i/5)]=[]),t.optionsArr[parseInt(i/5)].push(e)}))},openSet:function(){0!==this.paperSource?this.topicSetDialog=!0:this.$emit("showEditBigTopic",this.modelId)},confirm:function(){var e=this;if(this.topicSetDialog=!1,this.form.direction=this.form.tempDirection,1==this.paperSource){var t=[];t=Object(c["a"])(this.bigTopicPageArr),t=t.map((function(t){return t.modelId==e.modelId&&(t.topicConfigureData.direction=e.form.direction),t})),this.setBigTopicPageArr([t]),this.setInitPageFlag(!this.initPageFlag)}},cancel:function(){this.topicSetDialog=!1,this.form.tempDirection=this.form.direction}}},Pe=Le,Re=(i("5eed"),Object(v["a"])(Pe,Be,Oe,!1,null,"83c167da",null)),He=Re.exports,qe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"topic-fill",class:[{"topic-box-border":e.topicInfo.length>0}]},[i("div",{staticClass:"btn-paper-info iconfont iconedit",on:{click:e.openSet}}),0==e.paperSource?i("div",{staticClass:"del-btn iconfont icondelete",on:{click:e.delTopic}}):e._e(),i("div",{staticClass:"subjectCol clearfix ",class:["","col-"+(e.setConfig.columns||1)]},e._l(e.topicInfo,(function(t,n){return i("div",{key:n,staticClass:"fill-item clearfix",style:{height:(e.setConfig.rowLineHeight||40)+"px"},attrs:{"data-pageIndex":e.pageIndex,"data-type":t.questionTypeId,"data-modelId":e.modelId}},[i("span",[e._v(e._s(t.alias)+"、")]),i("em",{style:{height:(e.setConfig.rowLineHeight||40)+"px"}}),i("strong",e._l(e.form.scoreArr,(function(t){return i("i",{key:t},[e._v(e._s(t))])})),0)])})),0),i("el-dialog",{attrs:{title:"设置",visible:e.topicSetDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"30%",center:""},on:{"update:visible":function(t){e.topicSetDialog=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"每行列数"}},[i("el-select",{attrs:{placeholder:"请选择列数"},model:{value:e.form.columnCount,callback:function(t){e.$set(e.form,"columnCount",t)},expression:"form.columnCount"}},e._l(e.form.columnCountArr,(function(e){return i("el-option",{key:e,attrs:{value:e,label:e}})})),1)],1),i("el-form-item",{attrs:{label:"行间距"}},[i("el-select",{attrs:{placeholder:"请选择间距"},model:{value:e.form.rowLineHeight,callback:function(t){e.$set(e.form,"rowLineHeight",t)},expression:"form.rowLineHeight"}},e._l(e.form.rowHieightArr,(function(e){return i("el-option",{key:e,attrs:{value:e,label:e+"px"}})})),1)],1),i("el-form-item",{attrs:{label:"手写打分"}},[i("el-select",{attrs:{placeholder:"请选择分数"},model:{value:e.form.scoreBoxCount,callback:function(t){e.$set(e.form,"scoreBoxCount",t)},expression:"form.scoreBoxCount"}},e._l(e.form.scoreBoxArr,(function(t,n){return i("el-option",{key:n,attrs:{value:n,label:t.label,disabled:1!=t.id&&t.id!=e.scoreA&&t.id!=e.scoreB&&t.id!=e.scorec}})})),1)],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},Me=[],je={name:"TopicFill",mixins:[De["a"]],props:{topicInfo:{type:Array,default:function(){return[]}},setConfig:{type:Object,default:function(){return{}}},modelId:{type:String},pageIndex:{type:Number,default:null}},watch:{setConfig:{handler:function(){this.isMounted&&this.initFill()},deep:!0}},data:function(){return{topicSetDialog:!1,form:{columnCount:1,rowLineHeight:40,scoreBoxCount:0,columnCountArr:[1,2,3],rowHieightArr:[30,35,40,45,50],scoreBoxArr:[{id:1,label:"空白方框"},{id:2,label:"2/3/5"},{id:3,label:"2/3/4/6"},{id:4,label:"2/4"}],scoreArr:[2,3,5]},isMounted:!1,scoreA:1,scoreB:1,scorec:1,scoreFull:[]}},mounted:function(){this.initFill(),this.questionScore(),this.isMounted=!0},methods:{questionScore:function(){for(var e=0;e0)for(var i=0;i0&&Xe(t.ue,"chineselattice",n)})),e.topicBlur||(document.body.addEventListener("click",(function(t){t.target.className.includes("edui-default")||e.hideUeTitle()})),e.setTopicBlur(!0)),e.ue.addListener("contentChange",(function(){t.text=t.getUEContent(),t.$emit("input",t.getUEContent())})),e.ue.addListener("blur",(function(){t.text=t.getUEContent(),t.$emit("input",t.getUEContent()),t.$emit("ueBlur",!0)})),e.ue.addListener("focus",(function(){e.hideUeTitle(),e.showUeTitle()}))}))}))},getUEContent:function(){return this.ue.getContent()},setText:function(e){this.ue.setContent(e)},pasteEvent:function(e){var t=this,i=["nobr"],n=["zhixinhuixue.com","zhixinhuixue.cn","zhixinhuixue.net","xueping.com","xueping365.com"];e.addListener("beforepaste",(function(e,o,r){if(""!=o.html){for(var a=0;a]+>","gi");-1!=o.html.indexOf(i[a])&&(o.html=o.html.replace(s,""))}if(-1!=o.html.indexOf("img")){var l=[],c=!0,d=JSON.stringify(o.html);if(o.html.search("xueping365")>-1){var u=d.replace(/xueping365.com/g,"zhixinhuixue.net");o.html=decodeURIComponent(JSON.parse(u))}o.html.replace(//gi,(function(e,t){l.push(t);for(var i=0;i-1&&(c=!1),c&&(o.html="",t.$message({type:"info",message:"禁止复制包含外部地址图片(或插入空小图标)的内容 如需上传图片请通过编辑器(或插入空)上传"}))}}else o.html=""}))},addImgDragMousedown:function(){var e=this;this.ue.body.addEventListener("mousedown",(function(t){var i=t.target||t.srcElement;"IMG"===i.tagName&&-1===i.className.indexOf("mathType")?(t.stopPropagation(),t.preventDefault(),e.imgDrag.offsetWidth=i.offsetWidth,e.imgDrag.offsetHeight=i.offsetHeight,e.imgDrag.diffX=t.clientX-i.offsetLeft,e.imgDrag.diffY=t.clientY-i.offsetTop,e.imgDrag.isDrag=!0):e.ue.focus(!0)}))},addImgDragMousemove:function(){var e=this;this.ue.body.addEventListener("mousemove",(function(t){var i=t.target||t.srcElement;if("IMG"===i.tagName&&e.imgDrag.isDrag){t.stopPropagation(),t.preventDefault();var n=t.clientX-e.imgDrag.diffX,o=t.clientY-e.imgDrag.diffY;n<0?n=0:n>e.ue.window.innerWidth-e.imgDrag.offsetWidth&&(n=e.ue.window.innerWidth-e.imgDrag.offsetWidth),o<0?o=0:o>e.ue.window.innerHeight-e.imgDrag.offsetHeight&&(o=e.ue.window.innerHeight-e.imgDrag.offsetHeight),i.style.position="absolute",i.style.left=n+"px",i.style.top=o+"px"}}))},addImgDragMouseup:function(){var e=this;this.ue.body.addEventListener("mouseup",(function(t){e.imgDrag.isDrag=!1}))},showUeTitle:function(){this.$refs.ueCard.getElementsByClassName("edui-editor-toolbarbox")[0].style.display="block"},hideUeTitle:function(){var e=document.querySelectorAll(".edui-editor-toolbarbox");e.forEach((function(e){return e.style.display="none"}))}})},Ge=Ye,Ke=(i("c2e7"),Object(v["a"])(Ge,Je,Qe,!1,null,null,null)),Ze=Ke.exports,et=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"add-topic"},[i("div",{staticClass:"edit-topic-content"},[i("div",{staticClass:"top"},[i("div",{staticClass:"topic-title"},[i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("大题号")]),i("el-select",{staticClass:"select-big_topic-number",attrs:{size:"mini",placeholder:"请选择"},model:{value:e.topicConfigureData.BigNo,callback:function(t){e.$set(e.topicConfigureData,"BigNo",t)},expression:"topicConfigureData.BigNo"}},e._l(e.bigQuestionNos,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("题型标题")]),i("el-input",{staticClass:"input-big_topic-name",attrs:{size:"mini",maxlength:"10",placeholder:"请输入题型标题名称"},nativeOn:{keyup:function(t){return e.trimLR(t)}},model:{value:e.topicConfigureData.name,callback:function(t){e.$set(e.topicConfigureData,"name",t)},expression:"topicConfigureData.name"}})],1),i("span",{staticClass:"color-red"},[e._v(e._s(e.errMsg))])]),e._l(e.topicConfigureData.topicTypeArr,(function(t,n){return i("div",{key:n,staticClass:"topic-type"},[i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("题类")]),i("el-select",{staticClass:"select-topic-topicType",attrs:{size:"mini",placeholder:"请选择题类"},on:{change:function(t){return e.addTopicList(e.topicConfigureData)}},model:{value:e.topicConfigureData.topicType,callback:function(t){e.$set(e.topicConfigureData,"topicType",t)},expression:"topicConfigureData.topicType"}},e._l(e.topicTypeOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("span",{directives:[{name:"show",rawName:"v-show",value:17==e.topicConfigureData.topicType,expression:"topicConfigureData.topicType==17"}],staticClass:"topic-edit-item"},[i("el-select",{staticClass:"select-choose_topic",attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.addTopicList(e.topicConfigureData)}},model:{value:t.chooseOption,callback:function(i){e.$set(t,"chooseOption",i)},expression:"topicConfig.chooseOption"}},e._l(e.chooseOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" 选 "),i("el-select",{staticClass:"select-choose_topic",attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.addTopicList(e.topicConfigureData)}},model:{value:t.chooseSelectOption,callback:function(i){e.$set(t,"chooseSelectOption",i)},expression:"topicConfig.chooseSelectOption"}},e._l(e.chooseSelectOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("span",{staticClass:"topic-edit-item"},[e._v(" 从"),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:"题号"},on:{change:function(i){e.checkNumber(t,"startNo"),e.addTopicList(e.topicConfigureData)},input:function(i){return e.checkNumber(t,"startNo")}},model:{value:t.startNo,callback:function(i){e.$set(t,"startNo",i)},expression:"topicConfig.startNo"}})],1),i("span",{staticClass:"topic-edit-item"},[e._v(" 到"),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:"题号"},on:{change:function(i){e.checkNumber(t,"endNo"),e.addTopicList(e.topicConfigureData)},input:function(i){return e.checkNumber(t,"endNo")}},model:{value:t.endNo,callback:function(i){e.$set(t,"endNo",i)},expression:"topicConfig.endNo"}}),e._v("题 ")],1),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isSelectType,expression:"isSelectType"}],staticClass:"topic-edit-item"},[e._v(" 每题"),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(i){e.checkOptNumber(t,"optionsNumber"),e.addTopicList(e.topicConfigureData)}},model:{value:t.optionsNumber,callback:function(i){e.$set(t,"optionsNumber",i)},expression:"topicConfig.optionsNumber"}}),e._v("个选项 ")],1),i("span",{staticClass:"topic-edit-item"},[e._v(" 每题"),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(i){e.checkScore(t),e.addTopicList(e.topicConfigureData)}},model:{value:t.score,callback:function(i){e.$set(t,"score",i)},expression:"topicConfig.score"}}),e._v("分 ")],1),i("span",{directives:[{name:"show",rawName:"v-show",value:e.isMoreSelectType,expression:"isMoreSelectType"}],staticClass:"topic-edit-item"},[e._v(" 半对"),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(i){e.checkHalfScore(t),e.addTopicList(e.topicConfigureData)}},model:{value:t.halfScore,callback:function(i){e.$set(t,"halfScore",i)},expression:"topicConfig.halfScore"}}),e._v("分 ")],1),e.isZongHe&&17===e.topicConfigureData.topicType?i("SubjectSelect",{attrs:{"subject-id":e.topicConfigureData.subject},on:{subjectChange:e.ChooseChangeSubject}}):e._e(),i("span",{directives:[{name:"show",rawName:"v-show",value:17!=e.topicConfigureData.topicType,expression:"topicConfigureData.topicType!=17"}],staticClass:"topic-edit-item"},[i("i",{directives:[{name:"show",rawName:"v-show",value:e.topicList.length>0,expression:"topicList.length>0"}],staticClass:"el-icon-circle-plus-outline btn-add-topic-type",on:{click:e.addTopicType}}),i("i",{directives:[{name:"show",rawName:"v-show",value:0==e.topicList.length,expression:"topicList.length==0"}],staticClass:"el-icon-circle-plus-outline btn-add-topic-type disabled"})]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.topicConfigureData.topicTypeArr.length>1,expression:"topicConfigureData.topicTypeArr.length>1"}],staticClass:"topic-edit-item"},[i("i",{staticClass:"el-icon-remove-outline btn-del-topic-type",on:{click:function(t){return e.delTopicType(n)}}})])],1)}))],2),e.topicList.length>0?i("div",{key:"topicList",staticClass:"topic-list"},e._l(e.topicList,(function(e,t){return i("div",{key:e.alias,staticClass:"topic-list-item"},[i("MinTopicEditItem",{attrs:{"min-topic-data":e,idx:t}})],1)})),0):i("div",{key:"topicList",staticClass:"topic-list"},[i("p",{staticClass:"msg"},[e._v("请添加题目")])]),e.isSelectType?i("div",{staticClass:"topic-card-setting"},[i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("选项排列方向")]),i("el-radio-group",{model:{value:e.topicConfigureData.direction,callback:function(t){e.$set(e.topicConfigureData,"direction",t)},expression:"topicConfigureData.direction"}},[i("el-radio",{attrs:{label:0}},[e._v("横向")]),i("el-radio",{attrs:{label:1}},[e._v("纵向")])],1)],1)]):e._e(),e.isFillInBlank?i("div",{staticClass:"topic-card-setting"},[i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("答题卡布局")]),e._v(" 每行 "),i("el-select",{staticClass:"select-big_topic-number",attrs:{size:"mini",placeholder:"请选择"},model:{value:e.topicConfigureData.columns,callback:function(t){e.$set(e.topicConfigureData,"columns",t)},expression:"topicConfigureData.columns"}},e._l(e.columns,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" 列 ")],1),i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("行高")]),i("el-select",{staticClass:"select-big_topic-number",attrs:{size:"mini",placeholder:"请选择"},model:{value:e.topicConfigureData.rowLineHeight,callback:function(t){e.$set(e.topicConfigureData,"rowLineHeight",t)},expression:"topicConfigureData.rowLineHeight"}},e._l(e.lineHeights,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("手写打分")]),i("el-select",{staticClass:"select-big_topic-number",attrs:{size:"mini",placeholder:"请选择"},model:{value:e.topicConfigureData.scoreStyle,callback:function(t){e.$set(e.topicConfigureData,"scoreStyle",t)},expression:"topicConfigureData.scoreStyle"}},e._l(e.scoreOpt,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1),i("span",[e._v("仅对线下阅卷打分")])],1)]):e._e(),e.isAnswer?i("div",{staticClass:"topic-card-setting"},[i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("手写打分")]),i("el-select",{staticClass:"select-big_topic-number",attrs:{size:"mini",placeholder:"请选择"},model:{value:e.topicConfigureData.scoreLimit,callback:function(t){e.$set(e.topicConfigureData,"scoreLimit",t)},expression:"topicConfigureData.scoreLimit"}},e._l(e.scoreMaxOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1),i("span",{staticClass:"topic-edit-item"},[i("el-checkbox",{model:{value:e.topicConfigureData.hasHalfScore,callback:function(t){e.$set(e.topicConfigureData,"hasHalfScore",t)},expression:"topicConfigureData.hasHalfScore"}},[e._v("加入0.5分")]),i("span",[e._v("(仅对线下阅卷打分)")])],1),e.isCompositionZH?i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("作文字数")]),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini"},model:{value:e.topicConfigureData.compositionNumber,callback:function(t){e.$set(e.topicConfigureData,"compositionNumber",t)},expression:"topicConfigureData.compositionNumber"}})],1):e._e(),e.isCompositionEN?i("span",{staticClass:"topic-edit-item"},[i("label",[e._v("英语作文横线行数")]),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini"},model:{value:e.topicConfigureData.compositionRows,callback:function(t){e.$set(e.topicConfigureData,"compositionRows",t)},expression:"topicConfigureData.compositionRows"}})],1):e._e()]):e._e()]),i("div",{staticClass:"btn-box"},[i("button",{staticClass:"btn btn-topic-edit-save",on:{click:e.save}},[e._v("保存")]),i("button",{staticClass:"btn btn-topic-edit-cancel",on:{click:e.cancel}},[e._v("取消")])])])},tt=[],it=(i("cb29"),i("a15b"),i("f1ed")),nt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"min-topic-box"},[i("div",{staticClass:"min-topic"},[i("div",{staticClass:"left"},[i("span",{staticClass:"number"},[e._v(e._s(e.minTopicData.alias))]),e.isSelectType||77===e.minTopicData.questionTypeId||17===e.minTopicData.questionTypeId?e._e():i("span",{staticClass:"btn-add-min-topic",on:{click:e.addMiniTopic}},[i("i",[e._v("+")]),e._v("添加小题 ")])]),i("div",{staticClass:"con"},[e._v(e._s(e.minTopicData.questionTypeText))]),e.isSelectType?i("div",{staticClass:"right"},[this.isZongHe&&17!==e.minTopicData.questionTypeId?i("SubjectSelect",{attrs:{"subject-id":e.minTopicData.subject},on:{subjectChange:e.ChangeSubject}}):e._e(),i("span",[e._v(" 选项数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.checkOptNumber(e.minTopicData,"optionsCount")}},model:{value:e.minTopicData.optionsCount,callback:function(t){e.$set(e.minTopicData,"optionsCount",t)},expression:"minTopicData.optionsCount"}})],1),i("span",[e._v(" 分数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.checkScore(e.minTopicData,"fullScore")}},model:{value:e.minTopicData.fullScore,callback:function(t){e.$set(e.minTopicData,"fullScore",t)},expression:"minTopicData.fullScore"}})],1),e.isMoreSelectType?i("span",[e._v(" 半分 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.checkHalfScore(e.minTopicData,"halfScore",e.minTopicData.fullScore)}},model:{value:e.minTopicData.halfScore,callback:function(t){e.$set(e.minTopicData,"halfScore",t)},expression:"minTopicData.halfScore"}})],1):e._e()],1):e._e(),e.hasSmQuestionTopic?i("div",{staticClass:"right"},[this.isZongHe&&17!==e.minTopicData.questionTypeId?i("SubjectSelect",{attrs:{"subject-id":e.minTopicData.subject},on:{subjectChange:e.ChangeSubject}}):e._e(),17!==e.minTopicData.questionTypeId&&0==e.minTopicData.smTopic.length?i("div",{staticClass:"min-question-box"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"小问不需要单独设置模板区域但是每小问需批阅判分",placement:"top"}},[i("i",{staticClass:"el-icon-warning-outline"})]),i("el-switch",{staticClass:"switch-is_question",attrs:{size:"mini","active-color":"#409EFF","inactive-color":"#bbb","active-text":"含小问"},on:{change:function(t){return e.changeTopicQues(e.minTopicData,e.minTopicData.hasSmQuestion)}},model:{value:e.minTopicData.hasSmQuestion,callback:function(t){e.$set(e.minTopicData,"hasSmQuestion",t)},expression:"minTopicData.hasSmQuestion"}}),i("el-input",{staticClass:"input-min_topic-number",attrs:{disabled:!e.minTopicData.hasSmQuestion,size:"mini",placeholder:""},on:{change:function(t){return e.addQuestion(e.minTopicData)}},model:{value:e.minTopicData.topicQues,callback:function(t){e.$set(e.minTopicData,"topicQues",t)},expression:"minTopicData.topicQues"}})],1):e._e(),e._v(" 分数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{disabled:17==e.minTopicData.questionTypeId,size:"mini",placeholder:""},on:{change:function(t){return e.checkScore(e.minTopicData,"fullScore")}},model:{value:e.minTopicData.fullScore,callback:function(t){e.$set(e.minTopicData,"fullScore",t)},expression:"minTopicData.fullScore"}})],1):e._e(),77==e.minTopicData.questionTypeId?i("div",{staticClass:"right"},[e._v(" 分数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{disabled:!0,size:"mini",placeholder:""},on:{change:function(t){return e.checkScore(e.minTopicData,"fullScore")}},model:{value:e.minTopicData.fullScore,callback:function(t){e.$set(e.minTopicData,"fullScore",t)},expression:"minTopicData.fullScore"}})],1):e._e()]),i("div",{staticClass:"min-question"},e._l(e.minTopicData.smQuestion,(function(t){return i("div",{key:t.alias,staticClass:"min-question-item"},[i("div",{staticClass:"left"},[i("span",{staticClass:"number"},[e._v(e._s(t.alias))])]),i("div",{staticClass:"right"},[e._v(" 分数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(i){e.checkScore(t,"score"),e.allAsk(e.minTopicData)}},model:{value:t.score,callback:function(i){e.$set(t,"score",i)},expression:"minQuestion.score"}})],1)])})),0),i("div",{staticClass:"mini-topic"},e._l(e.minTopicData.smTopic,(function(t){return i("div",{key:t.topicEditorIndex,staticClass:"mini-topic-item"},[i("div",{staticClass:"mini-topic-title"},[i("div",{staticClass:"left"},[i("i",{staticClass:"el-icon-remove-outline btn-del-mini-topic",on:{click:function(i){return e.delMiniTopic(t)}}}),i("span",{staticClass:"number"},[e._v(e._s(t.alias))])]),i("div",{staticClass:"con"},[e._v(e._s(e.topicTypeName(t.questionTypeId)))]),i("div",{staticClass:"right"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"小问不需要单独设置模板区域但是每小问需批阅判分",placement:"top"}},[i("i",{staticClass:"el-icon-warning-outline"})]),i("el-switch",{staticClass:"switch-is_question",attrs:{size:"mini","active-color":"#409EFF","inactive-color":"#bbb","active-text":"含小问"},on:{change:function(i){return e.changeTopicQues(t,t.hasSmQuestion)}},model:{value:t.hasSmQuestion,callback:function(i){e.$set(t,"hasSmQuestion",i)},expression:"miniTopic.hasSmQuestion"}}),i("el-input",{staticClass:"input-min_topic-number",attrs:{disabled:!t.hasSmQuestion,size:"mini",placeholder:""},on:{change:function(i){return e.addQuestion(t)}},model:{value:t.topicQues,callback:function(i){e.$set(t,"topicQues",i)},expression:"miniTopic.topicQues"}}),e._v(" 分数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(i){return e.checkScore(t,"fullScore")},blur:function(t){return e.allScore()}},model:{value:t.fullScore,callback:function(i){e.$set(t,"fullScore",i)},expression:"miniTopic.fullScore"}})],1)]),i("div",{staticClass:"mini-question"},e._l(t.smQuestion,(function(n){return i("div",{key:n.alias,staticClass:"mini-question-item"},[i("div",{staticClass:"left"},[i("span",{staticClass:"number"},[e._v(e._s(n.alias))])]),i("div",{staticClass:"right"},[e._v(" 分数 "),i("el-input",{staticClass:"input-min_topic-number",attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.checkScore(n,"score")},blur:function(i){return e.allAsk(t)}},model:{value:n.score,callback:function(t){e.$set(n,"score",t)},expression:"miniQuestion.score"}})],1)])})),0)])})),0)])},ot=[],rt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"subjectSelect"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:this.tipsText,placement:"top"}},[i("i",{staticClass:"el-icon-warning-outline"})]),i("el-select",{staticClass:"select-subject",attrs:{size:"mini",placeholder:"请选择"},on:{change:e.subjectChange},model:{value:e.isSubject,callback:function(t){e.isSubject=t},expression:"isSubject"}},e._l(e.options,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)},at=[],st={name:"subjectSelect",components:{},filters:{},props:{subjectId:Number},data:function(){return{isSubject:12,options:[{label:"物理",id:12},{label:"化学",id:13},{label:"生物",id:14}],wenzong:[{label:"政治",id:15},{label:"历史",id:16},{label:"地理",id:17}],lizong:[{label:"物理",id:12},{label:"化学",id:13},{label:"生物",id:14}],tipsText:"请选择当前题目所属的学科,用以生成各科考试成绩"}},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["subject"])),watch:{subjectId:function(e,t){t!=e&&(this.isSubject=this.subjectId)}},created:function(){19===this.subject?this.options=this.wenzong:18===this.subject&&(this.options=this.lizong),this.isSubject=this.subjectId},mounted:function(){},methods:{subjectChange:function(){this.$emit("subjectChange",this.isSubject)}}},lt=st,ct=(i("c29e"),Object(v["a"])(lt,rt,at,!1,null,"00f80942",null)),dt=ct.exports,ut={name:"MinTopicEditItem",components:{SubjectSelect:dt},filters:{},props:{minTopicData:Object,idx:Number},data:function(){return{}},computed:Object(a["a"])(Object(a["a"])({},Object(s["b"])("answerSheet",["topicTypeObj","subject"])),{},{isSelectType:function(){return[1,2,11].includes(this.minTopicData.questionTypeId)},isMoreSelectType:function(){return[2,11].includes(this.minTopicData.questionTypeId)},hasSmQuestionTopic:function(){return[7,17,5].includes(this.minTopicData.questionTypeId)},isZongHe:function(){return[18,19].includes(this.subject)}}),watch:{},created:function(){this.minTopicData.smTopic&&this.minTopicData.smTopic.length>0&&this.allScore()},mounted:function(){},methods:{addMiniTopic:function(){this.minTopicData.smQuestion.length&&this.$message({message:"不能同时拥有小题和小问",type:"warning"}),this.minTopicData.smQuestion=[];var e={alias:this.minTopicData.topicNo+"."+(this.minTopicData.smTopic.length+1),hasSmQuestion:!1,score:"",fullScore:"",smQuestion:[],topicQues:"",topicEditorIndex:this.minTopicData.topicNo+"_"+(this.minTopicData.smTopic.length+1),questionTypeId:this.minTopicData.questionTypeId};this.minTopicData.fullScore="",this.minTopicData.smTopic.push(e)},addQuestion:function(e){var t=e.topicQues.replace(/[^0-9 .]/g,"");e.topicQues=Math.round(t),e.smQuestion=[];for(var i=0;i0&&this.allScore()},checkOptNumber:function(e,t){var i=e[t].replace(/[^0-9 .]/g,"");i=Math.round(i),i>7?i=7:i<2&&(i=2),e[t]=i},checkScore:function(e,t){var i=e[t].replace(/[^0-9 .]/g,"");e[t]=.5*Math.round(i/.5)||""},checkHalfScore:function(e,t,i){var n=e[t].replace(/[^0-9 .]/g,"");n=.5*Math.round(n/.5),e[t]=n>i-.5?i-.5:n},ChangeSubject:function(e){this.minTopicData.subject=e},changeTopicQues:function(e,t){!1===t?(e.topicQues="",e.smQuestion=[]):""!=e.topicQues&&void 0!=e.topicQues||(e.topicQues="2",this.addQuestion(e))},delMiniTopic:function(e){var t=this.minTopicData.smTopic.findIndex((function(t){return t.alias==e.alias}));this.minTopicData.smTopic.splice(t,1)}}},mt=ut,pt=(i("4fc7"),Object(v["a"])(mt,nt,ot,!1,null,"23bfd8ee",null)),ht=pt.exports,ft={name:"AddTopic",components:{MinTopicEditItem:ht,SubjectSelect:dt},filters:{},props:{subjectId:Number,isEdit:Boolean,editModelId:String},data:function(){return{bigQuestionNos:[],topicTypeOptions:[],topicConfigureData:{BigNo:"一",name:"",topicType:"",subject:12,direction:0,columns:1,rowLineHeight:40,scoreStyle:1,scoreLimit:15,hasHalfScore:!1,compositionNumber:800,compositionRows:10,topicTypeArr:[{startNo:"",endNo:"",optionsNumber:"",chooseOption:2,chooseSelectOption:1,score:"",halfScore:""}]},newTopicConfigureData:{BigNo:"一",name:"",topicType:"",subject:12,direction:0,columns:1,rowLineHeight:40,scoreStyle:1,scoreLimit:15,hasHalfScore:!1,compositionNumber:800,compositionRows:10,topicTypeArr:[{startNo:"",endNo:"",optionsNumber:"4",chooseOption:2,chooseSelectOption:1,score:"",halfScore:""}]},topicList:[],defaultTopicConfig:{startNo:"",endNo:"",optionsNumber:"",chooseOption:2,chooseSelectOption:1,score:"",halfScore:""},chooseOptions:[{label:"二",value:2},{label:"三",value:3},{label:"四",value:4}],chooseSelectOptions:[{label:"一",value:1}],defaultTopicItem:{isQuestion:!1,topicQues:"",score:""},columns:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3}],lineHeights:[{label:"30px",value:30},{label:"35px",value:35},{label:"40px",value:40},{label:"45px",value:45},{label:"50px",value:50}],scoreOpt:[{label:"空白方框",value:1,disabled:!1},{label:"2/3/5",value:2,disabled:!1},{label:"2/3/4/6",value:3,disabled:!1},{label:"2/4",value:4,disabled:!1}],scoreMaxOptions:[{label:"上限15",value:15,disabled:!1},{label:"上限16",value:16,disabled:!1},{label:"上限29",value:29,disabled:!1},{label:"上限49",value:49,disabled:!1},{label:"上限69",value:69,disabled:!1}],topicNoArr:[],errMsg:"",isRunWatch:!0}},computed:Object(a["a"])(Object(a["a"])({},Object(s["b"])("answerSheet",["topicTypes","subject","bigTopicArr","initPageFlag","cardSetting","bigTopicPageArr","chageSomePageIndex"])),{},{isSelectType:function(){return[1,2,11].includes(this.topicConfigureData.topicType)},isMoreSelectType:function(){return[2,11].includes(this.topicConfigureData.topicType)},isFillInBlank:function(){return 5===this.topicConfigureData.topicType},isAnswer:function(){return[7,17,77].includes(this.topicConfigureData.topicType)},isChooseAnswer:function(){return 17===this.topicConfigureData.topicType},isComposition:function(){return 77===this.topicConfigureData.topicType},isCompositionZH:function(){return 77===this.topicConfigureData.topicType&&9===this.subject},isCompositionEN:function(){return 77===this.topicConfigureData.topicType&&8===this.subject},hasSmQuestionTopic:function(){return[5,7,17].includes(this.topicConfigureData.topicType)},isZongHe:function(){return[18,19].includes(this.subject)}}),watch:{topicList:{handler:function(e){this.questionsChangeEdit(e)},deep:!0}},mounted:function(){this.getDefaultData()},methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setBigTopicArr:l["b"],setPaperListData:l["k"],setBigTopicPageArr:l["j"],setInitPageFlag:l["f"],setCardSetting:l["c"],setChangeSomePageIndex:l["d"]})),{},{trimLR:function(){this.topicConfigureData.name=this.topicConfigureData.name.replace(/\s/g,"")},getDefaultData:function(){var e=this;this.errMsg="",this.isEdit?(this.isRunWatch=!1,this.topicConfigureData=this.bigTopicArr[this.editModelId].topicConfigureData,this.topicList=this.bigTopicArr[this.editModelId].topicList):(this.topicConfigureData=JSON.parse(JSON.stringify(this.newTopicConfigureData)),this.topicList=[]),this.calcBigNo(),this.isEdit||(this.topicConfigureData.BigNo=this.bigQuestionNos[0].value,this.isZongHe?18===this.subject?this.topicConfigureData.subject=12:this.topicConfigureData.subject=15:this.topicConfigureData.subject=this.subject);var t=Object.values(this.bigTopicArr);this.topicNoArr=[],t.forEach((function(t){t.topicConfigureData.BigNo!=e.topicConfigureData.BigNo&&t.topicList.forEach((function(t){e.topicNoArr.push(t.topicNo)}))})),this.topicTypeOptions=[],this.topicTypes.forEach((function(t){3===e.subject?11!==t.value&&77!==t.value&&27!==t.value&&e.topicTypeOptions.push(t):8===e.subject||9===e.subject?2!==t.value&&27!==t.value&&e.topicTypeOptions.push(t):2!==t.value&&77!==t.value&&27!==t.value&&e.topicTypeOptions.push(t)}))},calcBigNo:function(){for(var e=[],t=1;t<100;t++){var i=Object(it["a"])(t);e.push({label:i,value:i})}var n=[];for(var o in this.bigTopicArr)n.push(this.bigTopicArr[o].topicConfigureData.BigNo);n.forEach((function(t){e.forEach((function(i,n){i.label==t&&e.splice(n,1)}))})),this.bigQuestionNos=e},addTopicType:function(){var e=JSON.parse(JSON.stringify(this.defaultTopicConfig));e.optionsNumber=e.optionsNumber||"4",this.topicConfigureData.topicTypeArr.push(e)},delTopicType:function(e){if(this.topicConfigureData.topicTypeArr.length>1)this.topicConfigureData.topicTypeArr.splice(e,1);else{var t=JSON.parse(JSON.stringify(this.defaultTopicConfig));this.topicConfigureData.topicTypeArr[0]=t}this.addTopicList(this.topicConfigureData)},setQuestionNum:function(e){var t=String(e).split("."),i=null,n=null,o=null,r=null;return 1==t.length?r=t[0]:(1==t[0].length||3==t[0].length?i=1==t[0].length?999+t[0]:t[0]:2==t[0].length&&(i=t[0].includes("0")?t[0]:t[0].substring(0,1)),n=t[0],o=t[1],r=i+n+o),parseInt(r)},addTopicList:function(e){var t=this;if(!this.addTopicListDataVerification(e))return this.topicList=[],!1;var i=this;this.topicList=[];var n={};this.isSelectType&&(n={optionsCount:e.optionsNumber},this.isMoreSelectType&&(n.halfScore=e.halfScore)),e.topicTypeArr.forEach((function(o){if(Number(o.startNo)<1)return!1;t.isSelectType&&(n={optionsCount:o.optionsNumber},t.isMoreSelectType&&(n.halfScore=o.halfScore));for(var r=17==e.topicType?o.chooseOption:Number(o.endNo)-Number(o.startNo)+1,s=0;s1){var o=[];if(e.topicTypeArr.forEach((function(e){for(var t=Number(e.startNo),i=Number(e.endNo),n=i-t+1,r=t;r0){var o=0;if(t.smQuestion.forEach((function(t){if(Number(t.score)<1)return e.errMsg="小问分数设置错误",i=!0,!1;o=Number(o)+Number(t.score)})),Number(t.fullScore)!==Number(o))return e.errMsg="小问分数设置错误",i=!0,!1}return t.smTopic.length>0&&(t.smTopic.forEach((function(t){if(Number(t.fullScore)<1)return e.errMsg="小问分数设置错误",i=!0,!1;if(n+=Number(t.fullScore),t.smQuestion.length>0){var o=0;if(t.smQuestion.forEach((function(t){if(Number(t.fullScore)<1)return e.errMsg="小问分数设置错误",i=!0,!1;o+=Number(t.score)})),Number(t.fullScore)!==Number(o))return e.errMsg="小问分数设置错误",i=!0,!1}})),Number(t.fullScore)!==Number(n))?(e.errMsg="小题分数设置错误",i=!0,!1):void 0})),!i&&(e.errMsg="",!0)},save:function(){var e,t=this;if(!this.saveBigTopicVerification())return!1;var i=0;if(this.isEdit)i=this.editModelId;else if(i="modelId",0==Object.keys(this.bigTopicArr).length){var n=Object.keys(this.bigTopicArr).length;i="modelId"+ ++n}else{var o=Object.keys(this.bigTopicArr).sort().pop();i="modelId"+(Number(o.replace(/[^0-9]/gi,""))+1)}var a=this.bigTopicArr;a[i]={modelId:i,bigTitle:this.topicConfigureData.BigNo+"、"+this.topicConfigureData.name,subtitle:"",questionTypeId:this.topicConfigureData.topicType,topicConfigureData:this.topicConfigureData,topicList:this.topicList,questions:[]},a[i].questions=this.formatTopicList();var s=JSON.parse(JSON.stringify(a[i]));this.setBigTopicArr(JSON.parse(JSON.stringify(a)));var l=[];l=(e=l).concat.apply(e,Object(r["a"])(Object.values(a))),l.forEach((function(e){if(e.modelId==i&&17===e.questionTypeId){var t=JSON.parse(JSON.stringify(e.questions)),n=t[0];if(n.contentHtml=t[0].alias+"~"+t[t.length-1].alias+"、",e.topicConfigureData.topicTypeArr[0].chooseSelectOption>1){e.questions=[];for(var o=0;o0)i.smTopic.forEach((function(n){var o={questionNum:e.setQuestionNum(n.alias),questionTypeId:77===n.questionTypeId?7:n.questionTypeId,markType:77===n.questionTypeId?4:0,fullScore:n.fullScore,optionCount:n.optionsCount,answer:"",subject:i.subject,alias:n.alias,scores:"",TopicAreaHeight:200,contentHtml:n.alias+"、",cutId:1,isShowArticleCn:!0,startPositionNumber:1,endPositionNumber:e.topicConfigureData.compositionNumber};n.smQuestion.length&&(o.scores=n.smQuestion.map((function(e){return e.score})).join(",")),t.push(o)}));else{var o={questionNum:e.setQuestionNum(i.alias),questionTypeId:77===i.questionTypeId?7:i.questionTypeId,markType:77===i.questionTypeId?4:0,fullScore:i.fullScore,optionCount:i.optionsCount,answer:"",subject:i.subject,alias:i.alias,scores:"",TopicAreaHeight:200,contentHtml:i.alias+"、",cutId:1,isShowArticleCn:!0,startPositionNumber:1,endPositionNumber:e.topicConfigureData.compositionNumber};17===i.questionTypeId&&(o.isChooseTopicFirst=0===n),o.scores=i.smQuestion.map((function(e){return e.score})).join(","),t.push(o)}else{var r={questionNum:e.setQuestionNum(i.alias),questionTypeId:77===i.questionTypeId?7:i.questionTypeId,markType:77===i.questionTypeId?4:0,fullScore:i.fullScore,optionCount:i.optionsCount,answer:"",subject:i.subject,alias:i.alias,scores:"",TopicAreaHeight:200,contentHtml:i.alias+"、",cutId:1,isShowArticleCn:!0,startPositionNumber:1,endPositionNumber:e.topicConfigureData.compositionNumber};if(77===e.topicConfigureData.topicType&&9===e.subject&&(r.TopicAreaHeight=30),77===e.topicConfigureData.topicType&&8===e.subject){for(var a="",s=0;s'+i.alias+"、

":'

';a+=l}a+="

",r.contentHtml=a}2!==e.topicConfigureData.topicType&&11!==e.topicConfigureData.topicType||(r.halfScore=i.halfScore),t.push(r)}})),t},setSomePageReset:function(e,t,i){var n=this,o=JSON.parse(JSON.stringify(i)).splice(0,e),r=Object(c["a"])(JSON.parse(JSON.stringify(i)).splice(e),!1,!0);if(o.push(r),e==o.length-1&&1==o[e].length&&(!o[e][0].questions||0==o[e][0].questions.length))return o.pop(),void this.setBigTopicPageArr(o);this.setBigTopicPageArr(o),this.$nextTick((function(){n.setChangeSomePageIndex({index:e,isToCurPage:!0,flag:!n.chageSomePageIndex.flag})}))},questionsChangeEdit:function(e){var t=this,i=[];if(e.forEach((function(e){i.push(e.fullScore),t.isMoreSelectType&&e.halfScore>Number(e.fullScore)-.5&&(Number(e.fullScore)>0?e.halfScore=e.fullScore-.5:(e.halfScore="",e.fullScore=""))})),5===this.topicConfigureData.topicType){if(this.scoreOpt.forEach((function(e){var t=!0;if(e.value>1)for(var n=0;no||e.value==o)&&r.push(e)})),this.isRunWatch&&(this.topicConfigureData.scoreLimit=r[0].value),this.isRunWatch||(this.isRunWatch=!0)}},checkNumber:function(e,t){var i=/^([1-9]\d*|[0]{1,1})$/;i.test(e[t])?this.$nextTick((function(){var i=Math.min(e[t],200);e[t]=i})):e[t]=""},checkOptNumber:function(e,t){var i=e[t].replace(/[^0-9 .]/g,"");i=Math.round(i),i>7?i=7:i<2&&(i=2),e[t]=i},checkScore:function(e){var t=e.score.replace(/[^0-9 .]/g,"");e.score=.5*Math.round(t/.5)||""},checkHalfScore:function(e){var t=e.halfScore.replace(/[^0-9 .]/g,"");t=.5*Math.round(t/.5),t>e.score-.5?e.halfScore=e.score-.5:e.halfScore=t},ChooseChangeSubject:function(e){this.topicConfigureData.subject=e,this.addTopicList(this.topicConfigureData)}})},gt=ft,bt=(i("6a1b"),Object(v["a"])(gt,et,tt,!1,null,"f097a990",null)),vt=bt.exports,yt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"article-chinese",style:{padding:e.rectPadding/2+"px"}},[i("svg",{staticClass:"article-svg",style:{height:e.totalRowsArr.length/2*(e.squareSize.h+10)-e.squareSize.h-10+"px"},attrs:{xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[i("rect",{ref:"rect",staticClass:"article-rect",attrs:{width:"100%",height:"100%"}}),e._l(e.textArr,(function(t,n){return i("text",{key:"text_"+n,attrs:{x:t.x,y:t.y,fill:"#000"}},[e._v(e._s(t.count))])})),e._l(e.totalRowsArr,(function(t,n){return i("line",{directives:[{name:"show",rawName:"v-show",value:n!=e.totalRowsArr.length-1,expression:"index!=totalRowsArr.length-1"}],key:"total_"+n,staticStyle:{stroke:"rgb(0,0,0)","stroke-width":"0.8"},attrs:{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2}})})),e._l(e.lineArr,(function(e,t){return i("line",{key:t,staticStyle:{stroke:"rgb(0,0,0)","stroke-width":"0.8"},attrs:{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}})}))],2)])},Ct=[],xt={name:"ArticleCh",mixins:[ce["a"]],props:{wordsCountCh:{type:Object,default:function(){return{start:1,end:1}}},pageIndex:Number},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["squareSize"])),data:function(){return{svgWidth:0,lineArr:[],totalRowsArr:[],textArr:[],rectPadding:0,isMounted:!1}},methods:{startX:function(){var e=parseInt(this.svgWidth/this.squareSize.w);if(e<1)return!1;this.rectPadding=this.svgWidth-this.squareSize.w*e;var t=Math.ceil((this.wordsCountCh.end-this.wordsCountCh.start+1)/e);this.totalRowsArr=[];for(var i=0;i15)n=this.scoreLimitMap[e];else for(var o=0;o0&&void 0!==arguments[0]&&arguments[0],i=JSON.parse(JSON.stringify(this.bigTopicPageArr)).splice(0,this.pageIndex),n=Object(c["a"])(JSON.parse(JSON.stringify(this.bigTopicPageArr)).splice(this.pageIndex),!1,!0);if(i.push(n),this.pageIndex==i.length-1&&1==i[this.pageIndex].length&&(!i[this.pageIndex][0].questions||0==i[this.pageIndex][0].questions.length))return i.pop(),void this.setBigTopicPageArr(i);this.setBigTopicPageArr(i),this.$nextTick((function(){e.setChangeSomePageIndex({index:e.pageIndex,isToCurPage:t,flag:!e.chageSomePageIndex.flag})}))},moveTopicAreaHeight:function(e){var t=this,i=[],n=0;this.$refs.ueCard.ue.body.querySelectorAll("img").forEach((function(e){-1===e.className.indexOf("mathType")&&i.push(e.offsetTop+e.offsetHeight)})),this.$refs.ueCard.ue.body.querySelectorAll("p").forEach((function(e){n=e.offsetHeight+n}));var o=Math.max.apply(Math,i),r=o>n?o:n;r<20&&(r=20);var a=t.TopicAreaHeight,s=e.pageY,l=0;this.isMove=!0,this.setExplainMove(this.isMove),document.addEventListener("mousemove",(function(e){if(t.isMove){l=e.pageY-s;var i=a+l;t.TopicAreaHeight=i>r?i:r}}),!0),document.addEventListener("mouseup",this.stopMoveTopicAreaHeight,!1)},stopMoveTopicAreaHeight:function(){this.isMove=!1,this.setExplainMove(this.isMove),this.topicInfo.TopicAreaHeight=this.TopicAreaHeight,this.setSomePageReset(!0),document.removeEventListener("mouseup",this.stopMoveTopicAreaHeight,!1)},handleCloseAddTopic:function(){this.dialogVisibleIsAddTopic=!1},showEditBigTopic:function(){if(0===this.paperSource)return this.modelId=this.setConfig.modelId,void(this.dialogVisibleIsAddTopic=!0);this.topicSetDialog=!0},editTopicData:function(){var e,t=this,i=[],n=0,o="";this.bigTopicPageArr.forEach((function(e){e.forEach((function(e){t.setConfig.modelId===e.modelId&&e.questions.forEach((function(e){e.alias===t.topicInfo.alias&&i.push(e)}))}))})),i.forEach((function(e){n+=e.TopicAreaHeight,o+=e.contentHtml}));var a=JSON.parse(JSON.stringify(this.bigTopicArr));a[this.setConfig.modelId].questions.forEach((function(e){e.alias===t.topicInfo.alias&&(e.TopicAreaHeight=n,e.contentHtml=o)}));var s=[];s=(e=s).concat.apply(e,Object(r["a"])(Object.values(this.bigTopicArr))),this.setBigTopicPageArr([Object(r["a"])(JSON.parse(JSON.stringify(s)))]),this.setInitPageFlag(!this.initPageFlag)},delTopicOver:function(){var e=this,t=this.setConfig.questions.findIndex((function(t){return t.alias==e.topicInfo.alias}));if(""!=this.topicInfo.contentHtml)if(t>0)this.setConfig.questions[t-1].contentHtml=this.setConfig.questions[t-1].contentHtml+this.topicInfo.contentHtml;else{var i=this.bigTopicPageArr[this.pageIndex-1].length-1;this.bigTopicPageArr[this.pageIndex-1][i].contentHtml=this.bigTopicPageArr[this.pageIndex-1][i].contentHtml+this.topicInfo.contentHtml}this.setConfig.questions.splice(t,1),this.setSomePageReset()},ueReady:function(){this.TopicAreaHeight=this.$refs.ueCard.ue.body.scrollHeight,this.topicInfo.TopicAreaHeight!=this.TopicAreaHeight&&(this.topicInfo.TopicAreaHeight=this.TopicAreaHeight+16,this.changeUeReadyHeightArr.push(this.pageIndex),this.setChangeUeReadyHeight(this.changeUeReadyHeightArr))},getAnswerMinScoreLimit:function(e){for(var t,i=16,n=0;t=this.scoreLimitMapArr[n++];)if(t>=e){i=t;break}return i},ueBlur:function(){this.setTopicAreaHeight(),this.$emit("ueBlur",!0)},delTopic:function(){var e=this,t=this;this.$confirm("确定要删除当前题目吗?","提示",{cancelButtonText:"取消",confirmButtonText:"确定",callback:function(i){if("confirm"==i){var n=Object(c["a"])(e.bigTopicPageArr),o=0;n.forEach((function(e,i){if(e.modelId==t.setConfig.modelId){var r=e.questions.findIndex((function(e){return e.alias==t.topicInfo.alias}));e.questions.splice(r,1),0===e.questions.length&&n.splice(i,1)}e.questions.forEach((function(e){o+=e.fullScore}))})),e.cardSetting.examInfoConfig.forEach((function(e){1===e.id&&(e.text=o)}));var r=JSON.parse(JSON.stringify(e.bigTopicArr)),a=r[e.setConfig.modelId].questions.findIndex((function(e){return e.alias==t.topicInfo.alias}));if(r[e.setConfig.modelId].questions.splice(a,1),r[e.setConfig.modelId].topicList.forEach((function(i,n){var o=String(t.topicInfo.alias).indexOf(".");o>-1?i.smTopic.forEach((function(o,a){o.alias==t.topicInfo.alias&&(i.smTopic.splice(a,1),0==i.smTopic.length&&r[e.setConfig.modelId].topicList.splice(n,1))})):i.alias==t.topicInfo.alias&&r[e.setConfig.modelId].topicList.splice(n,1)})),0==r[e.setConfig.modelId].questions.length)delete r[e.setConfig.modelId];else if(17==r[e.setConfig.modelId].questionTypeId)delete r[e.setConfig.modelId];else{var s=t.topicInfo.alias,l=parseInt(t.topicInfo.alias),d=r[e.setConfig.modelId].topicConfigureData.topicTypeArr,u=[];r[e.setConfig.modelId].questions.forEach((function(e){u.push(parseInt(e.alias))}));var m=u.indexOf(l);-1==m&&d.forEach((function(e,t){if(l==e.startNo||l==e.endNo)e.startNo==e.endNo?d.length>1?d.splice(t,1):(d[t].startNo="",d[t].endNo=""):l==e.startNo?e.startNo=Number(e.startNo)+1:e.endNo=Number(e.endNo)-1;else if(l>e.startNo&&l0?i("ol",{staticClass:"options"},e._l(e.topicContent.queOptions,(function(t,n){return i("li",{key:n,class:["option-item","option-"+n,"list-style-"+e.topicContent.listType]},[i("span",{staticClass:"options-words"},[e._v(e._s(e.words[t.index])+".")]),i("span",{domProps:{innerHTML:e._s(t.content)}})])})),0):e._e(),i("el-dialog",{attrs:{title:"设置",visible:e.topicSetDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"30%",center:""},on:{"update:visible":function(t){e.topicSetDialog=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[[1,2,11].includes(e.topicContent.questionTypeId)?i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.topicContent.queOptions,expression:"topicContent.queOptions"}],attrs:{label:"选项每行列数"}},[i("el-select",{attrs:{placeholder:"请选择选项每行列数"},model:{value:e.form.columnCount,callback:function(t){e.$set(e.form,"columnCount",t)},expression:"form.columnCount"}},e._l(e.form.columnCountArr,(function(e){return i("el-option",{key:e.id,attrs:{value:e.id,label:e.label}})})),1)],1):e._e(),i("el-form-item",{attrs:{label:"行间距"}},[i("el-select",{attrs:{placeholder:"请选择行间距"},model:{value:e.form.rowLineHeight,callback:function(t){e.$set(e.form,"rowLineHeight",t)},expression:"form.rowLineHeight"}},e._l(e.form.rowHieightArr,(function(e){return i("el-option",{key:e,attrs:{value:e,label:e+"px"}})})),1)],1),i("el-form-item",{attrs:{label:"字体大小"}},[i("el-select",{attrs:{placeholder:"请选择字体大小"},model:{value:e.form.fontSizeCount,callback:function(t){e.$set(e.form,"fontSizeCount",t)},expression:"form.fontSizeCount"}},e._l(e.form.fontSizeArr,(function(e){return i("el-option",{key:e,attrs:{value:e,label:e+"px"}})})),1)],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},At=[],It={name:"Topic",data:function(){return{topicSetDialog:!1,fillSetting:{columnCount:1,rowLineHeight:30,fontSizeCount:12},form:{columnCount:0,rowLineHeight:30,fontSizeCount:12,columnCountArr:[{id:0,label:1,num:0},{id:2,label:2,num:2},{id:1,label:4,num:1}],rowHieightArr:[25,30,35,40,45,50],fontSizeArr:[12,14,16,18]},words:["A","B","C","D","E","F","G","H","I","J","K","L","M"]}},props:{topicContent:{type:Object,default:function(){return{}}}},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["paperSource","bigTopicPageArr","initPageFlag"])),mounted:function(){this.initTopic()},methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setBigTopicPageArr:l["j"],setInitPageFlag:l["f"]})),{},{initTopic:function(){this.form.columnCount=this.topicContent.listType,this.form.rowLineHeight=this.topicContent.rowLineHeight||30,this.form.fontSizeCount=this.topicContent.fontSizeCount||14},confirm:function(){var e=this;this.topicSetDialog=!1;var t=Object(c["a"])(this.bigTopicPageArr);t.forEach((function(t){t.questionTypeId==e.topicContent.questionTypeId&&t.isQuestionText&&t.questions.forEach((function(i,n){if(i.questionNum==e.topicContent.questionNum){var o=e.form.columnCountArr.findIndex((function(t){return t.id==e.form.columnCount}));t.questions[n].listType=e.form.columnCountArr[o].num,t.questions[n].rowLineHeight=e.form.rowLineHeight,t.questions[n].fontSizeCount=e.form.fontSizeCount}}))})),this.setBigTopicPageArr([t]),this.setInitPageFlag(!this.initPageFlag)},cancel:function(){this.topicSetDialog=!1}})},Bt=It,Ot=(i("648b"),Object(v["a"])(Bt,kt,At,!1,null,"25803e6b",null)),Dt=Ot.exports,Lt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"choose-topic"},e._l(e.topic,(function(t){return i("div",{key:t.alias,staticClass:"title"},[i("span",{staticClass:"topic-no"},[e._v(e._s(t.alias)+"、")]),i("div",{staticClass:"title-content clearfix",domProps:{innerHTML:e._s(t.queBody)}})])})),0)},Pt=[],Rt={name:"ChooseTopic",components:{},filters:{},props:{topic:Array},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{}},Ht=Rt,qt=(i("a347"),Object(v["a"])(Ht,Lt,Pt,!1,null,"312c12a8",null)),Mt=qt.exports,jt={name:"PaperTopic",components:{TopicTitle:Ie,TopicChoice:He,TopicFill:ze,TopicExplain:_t,Topic:Dt,ChooseTopic:Mt},props:{content:{type:Array,default:function(){return[]}}},computed:Object(a["a"])({},Object(s["b"])("answerSheet",["answerCardType","subject","paperSource","bigTopicArr"])),methods:{setTopicTitle:function(e){var t=e.bigTitle,i="";return 1!=this.paperSource||e.isQuestionText||(i=e.subtitle),{topicTitleText:t,topicSubTitleText:i}}}},$t=jt,Ft=Object(v["a"])($t,Ne,Se,!1,null,null,null),zt=Ft.exports,Vt={name:"PaperContent",components:{PaperInfo:Te,PaperTopic:zt},props:{PaperLineFlag:{type:Number,default:0},pageIndex:{type:Number,default:null},paperColumn:{type:Number,default:null}},data:function(){return{}}},Wt=Vt,Jt=(i("1f9f"),Object(v["a"])(Wt,q,M,!1,null,"32ce722d",null)),Qt=Jt.exports,Xt={name:"PaperIndex",components:{PaperLine:H,PaperContent:Qt},mixins:[ce["a"]],props:{pageIndex:{type:Number,default:null},totalPageNum:{type:Number,default:null},content:{type:Array,default:function(){return[]}}}},Yt=Xt,Gt=(i("8fd5"),Object(v["a"])(Yt,I,B,!1,null,"f3de01f0",null)),Kt=Gt.exports,Zt={name:"AnswerSheet",components:{Setting:A,Paper:Kt,AddTopic:vt},mixins:[d],data:function(){return{cardType:0,dialogVisibleIsAddTopic:!1,grade:1,TopicsData:{card_status:0,printClassStatus:0},isEdit:!1,editNo:"",paperData:[],cardSettings:{paperSize:5,direction:1,column:2,hasBindingLine:0,hasPaperMsg:!0,examinationNumberType:[1,2],useQrCode:!1,title:"",examInfoConfig:[{id:0,name:"时间",isShow:!0,text:"100",units:"分钟"},{id:1,name:"满分",isShow:!0,text:"",units:"分"},{id:2,name:"命卷人",isShow:!0,text:"",units:""},{id:3,name:"审核人",isShow:!0,text:"",units:""}],cardStatus:0,cardLength:9,examStatus:0,grade:1,examGroupId:0},editType:0,scoreLimitMapArr:[15,16,29,49]}},computed:Object(a["a"])(Object(a["a"])({},Object(s["b"])("answerSheet",["cardSetting","bigTopicArr","paperListData","topicTypes","bigTopicPageArr","initPageFlag","paperSource","isPreviewBack","testFormData"])),{},{answerSheetHeight:function(){return window.innerHeight}}),mounted:function(){this.getDefaultData()},methods:Object(a["a"])(Object(a["a"])({},Object(s["c"])("answerSheet",{setCardSetting:l["c"],setBigTopicArr:l["b"],setPaperListData:l["k"],setBigTopicPageArr:l["j"],setAnswerCardType:l["a"],setPaperSource:l["l"],setInitPageFlag:l["f"],setTestFormData:l["n"],setSubject:l["m"],setIsPreviewBack:l["i"],setIsAnswerCardTypeChange:l["g"]})),{},{getDefaultData:function(){var e=this;if(this.isPreviewBack)return this.setIsPreviewBack(!1),!1;if(this.cardSettings=this.cardSetting,this.cardSettings.examGroupId=this.$route.query.exam_group_id,this.cardType=Number(this.$route.query.card_type),this.editType=this.$route.query.editType,void 0===this.cardType)return this.$message.error("无法获取答题卡类型!"),!1;if(void 0===this.cardSettings.examGroupId)return this.$message.error("无法获取考试id!"),!1;if(this.setPaperSource(this.cardType),1===this.cardType){var t=new FormData;t.append("examGroupId",this.cardSettings.examGroupId),Object(x["c"])(t).then((function(t){e.TopicsData=JSON.parse(JSON.stringify(t));var i="";t.position&&(i=JSON.parse(t.position));var n=!1;if(i.bigTopicArr){n=!0;var o=1==i.answerCardType?1:2;t.paperTplType!=o&&e.setIsAnswerCardTypeChange(!0)}if(n){var r=1==i.answerCardType?1:2;e.setAnswerCardType(r),e.setEditZXHX(t,i)}else e.setAnswerCardType(1==t.paperTplType?1:0),e.setNewZXHX(t)})).catch((function(e){console.log(e)}))}else{var i=localStorage.getItem("upDataThreeCard");if(void 0!=i){if(null==i)return!1;var n=JSON.parse(i);this.setTestFormData(n.testFormData),this.editType=n.testFormData.editType,void 0===this.editType&&(this.editType=0),this.grade=n.testFormData.grade,this.setSubject(Number(n.testFormData.subjectId)),1===this.editType?this.setEditThree(n):this.setNewThree(n)}}},classificationTree:function(e){var t=this,i=[],n=0;return e.forEach((function(e){var o=i.findIndex((function(t){return t.questionTypeId===e.questionTypeId}));if(o>-1)i[o].questions.push(e);else{var r="modelId"+ ++n,a={modelId:r,bigTitle:Object(it["a"])(n)+"、"+t.getTopicTypeText(e.questionTypeId),subtitle:"",questionTypeId:e.questionTypeId,topicConfigureData:{},questions:[e]};i.push(a)}})),i.forEach((function(e){e.subtitle=t.setSubTitle(e)})),i},setSubTitle:function(e){var t="";if(1==this.paperSource&&!e.isQuestionText){var i=e.questions[0],n=e.questions.map((function(e){return e.fullScore})),o=!(Object(r["a"])(new Set(n)).length>1),a="";o||e.questions.forEach((function(e){a+="第".concat(e.questionNum,"题").concat(e.fullScore,"分,")})),1==e.questionTypeId?t="(本大题共".concat(i.total,"小题,").concat(o?"每小题"+i.fullScore+"分,":a,"共").concat(i.questionTypeFullScore,"分。在每小题给出的").concat(i.optionCount,"个选项中,只有一项是符合题目要求的。把答案填涂在答题卡上。)"):[2,11].includes(e.questionTypeId)?t="(本大题共".concat(i.total,"小题,").concat(o?"每小题"+i.fullScore+"分,":a,"共").concat(i.questionTypeFullScore,"分。在每小题给出的").concat(i.optionCount,"个选项中,有两项及以上是符合题目要求的。把答案填涂在答题卡上。)"):[5].includes(e.questionTypeId)?t="(本大题共".concat(i.total,"小题,").concat(o?"每小题"+i.fullScore+"分,":a,"共").concat(i.questionTypeFullScore,"分。把答案填写在答题卡相应的题号后的横线上。)"):[7].includes(e.questionTypeId)||[27].includes(e.questionTypeId)?t="(本大题共".concat(i.total,"小题,").concat(o?"每小题"+i.fullScore+"分,":a,"共").concat(i.questionTypeFullScore,"分。解答写出相应的文字说明、证明过程或演算步骤。)"):[17].includes(e.questionTypeId)&&(t="(本题包括".concat(i.total,"小题,请选定其中").concat(i.required,"小题,并在相应的答题区域内作答,请用2B铅笔涂黑(示例:■)。若多做,则按作答的前一小题评分。解答应写出文字说明、证明过程或演算步骤。)"))}return t},setNewZXHX:function(e){var t=this,i=this;this.cardSettings.title=e.object.paperName,this.cardSetting.examInfoConfig.forEach((function(t){switch(t.id){case 0:t.text=e.object.wpTimes;break;case 1:t.text=e.object.fullScore;break;case 2:t.text=e.object.wpAuthor;break;case 3:t.text=e.object.wpReviewer;break}})),this.cardSettings.cardLength=e.object.school_card_length,this.cardSettings.cardStatus=e.object.school_card_status,this.setCardSetting(this.cardSettings),this.paperData=this.classificationTree(e.object.questions);var n={},o=JSON.parse(JSON.stringify(this.paperData));if(o.forEach((function(e){e.topicConfigureData.topicTypeArr=[{startNo:e.questions[0].questionNum,endNo:e.questions[e.questions.length-1].questionNum}],n[e.modelId]=e})),this.setBigTopicArr(n),1==e.paperTplType){var a,s=JSON.parse(JSON.stringify(this.paperData.filter((function(e){return![7,17,27].includes(e.questionTypeId)}))));s.forEach((function(e){e.isQuestionText=!0,[1,2,11].includes(e.questionTypeId)&&e.questions.forEach((function(e){e.queOptions.forEach((function(e,t){return e.index=t}))}))})),(a=this.paperData).splice.apply(a,[s.length,0].concat(Object(r["a"])(s)))}this.paperData.forEach((function(i){if([7,27].includes(i.questionTypeId))i.questions.forEach((function(i){i.TopicAreaHeight=200,i.contentHtml=1==e.paperTplType?i.questionNum+"、"+i.queBody+i.matchPicture:i.questionNum+"、"+i.matchPicture,i.cutId=1,i.alias=i.questionNum,i.ChooseArea=1,i.scoreLimit=t.getAnswerMinScoreLimit(i.fullScore),i.point=0}));else if(17===i.questionTypeId){i.topicConfigureData.topicTypeArr=[{chooseOption:i.questions[0].total,chooseSelectOption:i.questions[0].required}],1==e.paperTplType&&(i.QuestionTextList=JSON.parse(JSON.stringify(i.questions)),i.QuestionTextList.forEach((function(e){e.alias=e.questionNum})));var n=JSON.parse(JSON.stringify(i.questions)),o=n[0];if(o.alias=o.questionNum,o.cutId=1,o.TopicAreaHeight=200,o.scoreLimit=t.getAnswerMinScoreLimit(o.fullScore),o.point=0,o.contentHtml=n[0].questionNum+"~"+n[n.length-1].questionNum+"、",o.required>1){i.questions=[];for(var r=0;r=e){i=t;break}return i},goBack:function(){this.testFormData.referrerUrl?window.location.href=this.testFormData.referrerUrl+"/isCardReturn=true":window.history.back()},restAnswerSheet:function(){this.setNewZXHX(this.TopicsData)}})},ei=Zt,ti=(i("cb79"),i("d356"),Object(v["a"])(ei,n,o,!1,null,"5632b639",null));t["default"]=ti.exports},"38cf":function(e,t,i){var n=i("23e7"),o=i("1148");n({target:"String",proto:!0},{repeat:o})},"408a":function(e,t,i){var n=i("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},"411e":function(e,t,i){},"43fd":function(e,t,i){"use strict";var n=i("5def"),o=i.n(n);o.a},4437:function(e,t,i){i("a15b"),i("ac1f"),i("5319"),i("1276"),function(){var e=window.UEDITOR_HOME_URL||i(),t=window.__phpBaseUrl+"online/uploadFile";function i(e,t){return o(e||self.document.URL||self.location.href,t||n())}function n(){var e=document.getElementsByTagName("script");return e[e.length-1].src}function o(e,t){var i=t;return/^(\/|\\\\)/.test(t)?i=/^.+?\w(\/|\\\\)/.exec(e)[0]+t.replace(/^(\/|\\\\)/,""):/^[a-z]+:/i.test(t)||(e=e.split("#")[0].split("?")[0].replace(/[^\\\/]+$/,""),i=e+""+t),r(i)}function r(e){var t=/^[a-z]+:\/\//.exec(e)[0],i=null,n=[];e=e.replace(t,"").split("?")[0].split("#")[0],e=e.replace(/\\/g,"/").split(/\//),e[e.length-1]="";while(e.length)".."===(i=e.shift())?n.pop():"."!==i&&n.push(i);return t+n.join("/")}window.UEDITOR_CONFIG={UEDITOR_HOME_URL:e,serverUrl:t,toolbars:[["fullscreen","source","|","undo","redo","|","bold","italic","underline","fontborder","strikethrough","superscript","subscript","removeformat","formatmatch","autotypeset","blockquote","pasteplain","|","forecolor","backcolor","insertorderedlist","insertunorderedlist","selectall","cleardoc","|","rowspacingtop","rowspacingbottom","lineheight","|","customstyle","paragraph","fontfamily","fontsize","|","directionalityltr","directionalityrtl","indent","|","justifyleft","justifycenter","justifyright","justifyjustify","|","touppercase","tolowercase","|","link","unlink","anchor","|","imagenone","imageleft","imageright","imagecenter","|","simpleupload","insertimage","emotion","scrawl","insertvideo","music","attachment","map","gmap","insertframe","insertcode","webapp","pagebreak","template","background","|","horizontal","date","time","spechars","snapscreen","wordimage","|","inserttable","deletetable","insertparagraphbeforetable","insertrow","deleterow","insertcol","deletecol","mergecells","mergeright","mergedown","splittocells","splittorows","splittocols","charts","|","print","preview","searchreplace","drafts","help"]],elementPathEnabled:!1,wordCount:!1,autoFloatEnabled:!1,catchRemoteImageEnable:!1,xssFilterRules:!0,inputXssFilter:!0,outputXssFilter:!0,whiteList:{a:["target","href","title","class","style"],abbr:["title","class","style"],address:["class","style"],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src","class","style"],b:["class","style"],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite","class","style"],br:[],caption:["class","style"],center:[],cite:[],code:["class","style"],col:["align","valign","span","width","class","style"],colgroup:["align","valign","span","width","class","style"],dd:["class","style"],del:["datetime"],details:["open"],div:["class","style"],dl:["class","style"],dt:["class","style"],em:["class","style"],font:["color","size","face"],footer:[],h1:["class","style"],h2:["class","style"],h3:["class","style"],h4:["class","style"],h5:["class","style"],h6:["class","style"],header:[],hr:[],i:["class","style"],img:["src","alt","title","width","height","id","_src","loadingclass","class","data-latex"],ins:["datetime"],li:["class","style"],mark:[],nav:[],ol:["class","style"],p:["class","style"],pre:["class","style"],s:[],section:[],small:[],span:["class","style"],sub:["class","style"],sup:["class","style"],strong:["class","style"],table:["width","border","align","valign","class","style"],tbody:["align","valign","class","style"],td:["width","rowspan","colspan","align","valign","class","style"],tfoot:["align","valign","class","style"],th:["width","rowspan","colspan","align","valign","class","style"],thead:["align","valign","class","style"],tr:["rowspan","align","valign","class","style"],tt:[],u:[],ul:["class","style"],video:["autoplay","controls","loop","preload","src","height","width","class","style"]}},window.UE={getUEBasePath:i}}()},4442:function(e,t,i){"use strict";var n=i("5aec"),o=i.n(n);o.a},"48f6":function(e,t,i){},"491d":function(e,t,i){},"498a":function(e,t,i){"use strict";var n=i("23e7"),o=i("58a8").trim,r=i("c8d2");n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return o(this)}})},"4fc7":function(e,t,i){"use strict";var n=i("d3a4"),o=i.n(n);o.a},"5a34":function(e,t,i){var n=i("44e7");e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5aec":function(e,t,i){},"5def":function(e,t,i){},"5eed":function(e,t,i){"use strict";var n=i("491d"),o=i.n(n);o.a},6062:function(e,t,i){"use strict";var n=i("6d61"),o=i("6566");e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"648b":function(e,t,i){"use strict";var n=i("da93"),o=i.n(n);o.a},6566:function(e,t,i){"use strict";var n=i("9bf2").f,o=i("7c73"),r=i("e2cc"),a=i("0366"),s=i("19aa"),l=i("2266"),c=i("7dd0"),d=i("2626"),u=i("83ab"),m=i("f183").fastKey,p=i("69f3"),h=p.set,f=p.getterFor;e.exports={getConstructor:function(e,t,i,c){var d=e((function(e,n){s(e,d,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),u||(e.size=0),void 0!=n&&l(n,e[c],e,i)})),p=f(t),g=function(e,t,i){var n,o,r=p(e),a=b(e,t);return a?a.value=i:(r.last=a={index:o=m(t,!0),key:t,value:i,previous:n=r.last,next:void 0,removed:!1},r.first||(r.first=a),n&&(n.next=a),u?r.size++:e.size++,"F"!==o&&(r.index[o]=a)),e},b=function(e,t){var i,n=p(e),o=m(t);if("F"!==o)return n.index[o];for(i=n.first;i;i=i.next)if(i.key==t)return i};return r(d.prototype,{clear:function(){var e=this,t=p(e),i=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete i[n.index],n=n.next;t.first=t.last=void 0,u?t.size=0:e.size=0},delete:function(e){var t=this,i=p(t),n=b(t,e);if(n){var o=n.next,r=n.previous;delete i.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),i.first==n&&(i.first=o),i.last==n&&(i.last=r),u?i.size--:t.size--}return!!n},forEach:function(e){var t,i=p(this),n=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:i.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),r(d.prototype,i?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),u&&n(d.prototype,"size",{get:function(){return p(this).size}}),d},setStrong:function(e,t,i){var n=t+" Iterator",o=f(t),r=f(n);c(e,t,(function(e,t){h(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,i=e.last;while(i&&i.removed)i=i.previous;return e.target&&(e.last=i=i?i.next:e.state.first)?"keys"==t?{value:i.key,done:!1}:"values"==t?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),d(t)}}},"6a1b":function(e,t,i){"use strict";var n=i("0b13"),o=i.n(n);o.a},"6aa2":function(e,t,i){},"6d61":function(e,t,i){"use strict";var n=i("23e7"),o=i("da84"),r=i("94ca"),a=i("6eeb"),s=i("f183"),l=i("2266"),c=i("19aa"),d=i("861d"),u=i("d039"),m=i("1c7e"),p=i("d44e"),h=i("7156");e.exports=function(e,t,i){var f=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),b=f?"set":"add",v=o[e],y=v&&v.prototype,C=v,x={},w=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!d(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!d(e))&&t.call(this,0===e?0:e)}:function(e,i){return t.call(this,0===e?0:e,i),this})};if(r(e,"function"!=typeof v||!(g||y.forEach&&!u((function(){(new v).entries().next()})))))C=i.getConstructor(t,e,f,b),s.REQUIRED=!0;else if(r(e,!0)){var T=new C,N=T[b](g?{}:-0,1)!=T,S=u((function(){T.has(1)})),E=m((function(e){new v(e)})),U=!g&&u((function(){var e=new v,t=5;while(t--)e[b](t,t);return!e.has(-0)}));E||(C=t((function(t,i){c(t,C,e);var n=h(new v,t,C);return void 0!=i&&l(i,n[b],n,f),n})),C.prototype=y,y.constructor=C),(S||U)&&(w("delete"),w("has"),f&&w("get")),(U||N)&&w(b),g&&y.clear&&delete y.clear}return x[e]=C,n({global:!0,forced:C!=v},x),p(C,e),g||i.setStrong(C,e,f),C}},7037:function(e,t,i){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),e.exports=n},"70dc":function(e,t,i){"use strict";var n=i("6aa2"),o=i.n(n);o.a},"753f":function(e,t,i){"use strict";var n=i("2168"),o=i.n(n);o.a},"7b90":function(e,t,i){},"82cc":function(e,t,i){"use strict";var n=i("8c55"),o=i.n(n);o.a},"841c":function(e,t,i){"use strict";var n=i("d784"),o=i("825a"),r=i("1d80"),a=i("129f"),s=i("14c3");n("search",1,(function(e,t,i){return[function(t){var i=r(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var r=o(e),l=String(this),c=r.lastIndex;a(c,0)||(r.lastIndex=0);var d=s(r,l);return a(r.lastIndex,c)||(r.lastIndex=c),null===d?-1:d.index}]}))},"84a7":function(e,t,i){},"857a":function(e,t,i){var n=i("1d80"),o=/"/g;e.exports=function(e,t,i,r){var a=String(n(e)),s="<"+t;return""!==i&&(s+=" "+i+'="'+String(r).replace(o,""")+'"'),s+">"+a+""}},8762:function(e,t,i){"use strict";var n=i("90b2"),o=i.n(n);o.a},"8c55":function(e,t,i){},"8ccd":function(e,t,i){"use strict";var n=i("84a7"),o=i.n(n);o.a},"8fd5":function(e,t,i){"use strict";var n=i("ce59"),o=i.n(n);o.a},"90b2":function(e,t,i){},"93db":function(e,t,i){},"946b":function(e,t){UE.registerUI("kityformula",(function(e,t){var i=new UE.ui.Dialog({iframeUrl:e.options.UEDITOR_HOME_URL+"kityformula-plugin/kityFormulaDialog.html",editor:e,name:t,title:"插入公式 - zhixinhuixue",cssRules:"width:783px; height: 386px;",buttons:[{className:"edui-okbutton",label:"确定",onclick:function(){i.close(!0)}},{className:"edui-cancelbutton",label:"取消",onclick:function(){i.close(!1)}}]});e.ready((function(){UE.utils.cssRule("kfformula","img.kfformula{vertical-align: middle;}",e.document)}));var n=e.options.UEDITOR_HOME_URL+"kityformula-plugin/kf-icon.png",o=document.createElement("a");o.href=n,o.href=o.href,n=o.href;var r=new UE.ui.Button({name:"插入"+t,title:"插入公式",cssRules:'background: url("'+n+'") !important',onclick:function(){i.render(),i.open()}});return e.addListener("selectionchange",(function(){var i=e.queryCommandState(t);-1==i?(r.setDisabled(!0),r.setChecked(!1)):(r.setDisabled(!1),r.setChecked(i))})),r}))},9602:function(e,t,i){},9614:function(e,t,i){"use strict";var n=i("b5c5"),o=i.n(n);o.a},"98e7":function(e,t,i){"use strict";var n=i("93db"),o=i.n(n);o.a},9911:function(e,t,i){"use strict";var n=i("23e7"),o=i("857a"),r=i("af03");n({target:"String",proto:!0,forced:r("link")},{link:function(e){return o(this,"a","href",e)}})},"9e54":function(e,t,i){},a019:function(e,t,i){i("d3b7"),i("ac1f"),i("25f0"),i("5319"),i("1276"),UE.plugins["defaultfilter"]=function(){var e=this;e.setOpt({allowDivTransToP:!0,disabledTableInTable:!0,rgb2Hex:!0}),e.addInputRule((function(t){var i,n=this.options.allowDivTransToP;function o(e){while(e&&"element"==e.type){if("td"==e.tagName)return!0;e=e.parentNode}return!1}t.traversal((function(t){if("element"==t.type){if(!UE.dom.dtd.$cdata[t.tagName]&&e.options.autoClearEmptyNode&&UE.dom.dtd.$inline[t.tagName]&&!UE.dom.dtd.$empty[t.tagName]&&(!t.attrs||UE.utils.isEmptyObject(t.attrs)))return void(t.firstChild()?"span"!=t.tagName||t.attrs&&!UE.utils.isEmptyObject(t.attrs)||t.parentNode.removeChild(t,!0):t.parentNode.removeChild(t));switch(t.tagName){case"style":case"script":t.setAttr({cdata_tag:t.tagName,cdata_data:t.innerHTML()||"",_ue_custom_node_:"true"}),t.tagName="div",t.innerHTML("");break;case"a":(i=t.getAttr("href"))&&t.setAttr("_href",i);break;case"img":t.setAttr("_src",t.getAttr("src"));break;case"span":UE.browser.webkit&&(i=t.getStyle("white-space"))&&/nowrap|normal/.test(i)&&(t.setStyle("white-space",""),e.options.autoClearEmptyNode&&UE.utils.isEmptyObject(t.attrs)&&t.parentNode.removeChild(t,!0)),i=t.getAttr("id"),i&&/^_baidu_bookmark_/i.test(i)&&t.parentNode.removeChild(t);break;case"p":(i=t.getAttr("align"))&&(t.setAttr("align"),t.setStyle("text-align",i)),UE.utils.each(t.children,(function(e){if("element"==e.type&&"p"==e.tagName){var i=e.nextSibling();t.parentNode.insertAfter(e,t);var n=e;while(i){var o=i.nextSibling();t.parentNode.insertAfter(i,n),n=i,i=o}return!1}})),t.firstChild()||t.innerHTML(UE.browser.ie?" ":"
");break;case"div":if(t.getAttr("cdata_tag"))break;if(i=t.getAttr("class"),i&&/^line number\d+/.test(i))break;if(!n)break;var r,a=UE.uNode.createElement("p");while(r=t.firstChild())"text"!=r.type&&UE.dom.dtd.$block[r.tagName]?a.firstChild()?(t.parentNode.insertBefore(a,t),a=UE.uNode.createElement("p")):t.parentNode.insertBefore(r,t):a.appendChild(r);a.firstChild()&&t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t);break;case"dl":t.tagName="ul";break;case"dt":case"dd":t.tagName="li";break;case"li":var s=t.getAttr("class");s&&/list\-/.test(s)||t.setAttr();var l=t.getNodesByTagName("ol ul");UE.utils.each(l,(function(e){t.parentNode.insertAfter(e,t)}));break;case"td":case"th":case"caption":t.children&&t.children.length||t.appendChild(UE.browser.ie11below?UE.uNode.createText(" "):UE.uNode.createElement("br"));break;case"table":e.options.disabledTableInTable&&o(t)&&(t.parentNode.insertBefore(UE.uNode.createText(t.innerText()),t),t.parentNode.removeChild(t))}}}))})),e.addOutputRule((function(t){var i;t.traversal((function(t){if("element"==t.type){if(e.options.autoClearEmptyNode&&UE.dom.dtd.$inline[t.tagName]&&!UE.dom.dtd.$empty[t.tagName]&&(!t.attrs||UE.utils.isEmptyObject(t.attrs)))return void(t.firstChild()?"span"!=t.tagName||t.attrs&&!UE.utils.isEmptyObject(t.attrs)||t.parentNode.removeChild(t,!0):t.parentNode.removeChild(t));switch(t.tagName){case"div":(i=t.getAttr("cdata_tag"))&&(t.tagName=i,t.appendChild(UE.uNode.createText(t.getAttr("cdata_data"))),t.setAttr({cdata_tag:"",cdata_data:"",_ue_custom_node_:""}));break;case"a":(i=t.getAttr("_href"))&&t.setAttr({href:UE.utils.html(i),_href:""});break;case"span":if(i=t.getAttr("id"),i&&/^_baidu_bookmark_/i.test(i)&&t.parentNode.removeChild(t),e.getOpt("rgb2Hex")){var n=t.getAttr("style");n&&t.setAttr("style",n.replace(/rgba?\(([\d,\s]+)\)/g,(function(e,t){var i=t.split(",");if(i.length>3)return"";t="#";for(var n,o=0;n=i[o++];)n=parseInt(n.replace(/[^\d]/gi,""),10).toString(16),t+=1==n.length?"0"+n:n;return t.toUpperCase()})))}break;case"img":(i=t.getAttr("_src"))&&t.setAttr({src:t.getAttr("_src"),_src:""})}}}))}))}},a15b:function(e,t,i){"use strict";var n=i("23e7"),o=i("44ad"),r=i("fc6a"),a=i("a640"),s=[].join,l=o!=Object,c=a("join",",");n({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(r(this),void 0===e?",":e)}})},a347:function(e,t,i){"use strict";var n=i("d8dc"),o=i.n(n);o.a},a546:function(e,t,i){"use strict";var n=i("c9de"),o=i.n(n);o.a},ab13:function(e,t,i){var n=i("b622"),o=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[o]=!1,"/./"[e](t)}catch(n){}}return!1}},af03:function(e,t,i){var n=i("d039");e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b5c5:function(e,t,i){},b680:function(e,t,i){"use strict";var n=i("23e7"),o=i("a691"),r=i("408a"),a=i("1148"),s=i("d039"),l=1..toFixed,c=Math.floor,d=function(e,t,i){return 0===t?i:t%2===1?d(e,t-1,i*e):d(e*e,t/2,i)},u=function(e){var t=0,i=e;while(i>=4096)t+=12,i/=4096;while(i>=2)t+=1,i/=2;return t},m=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));n({target:"Number",proto:!0,forced:m},{toFixed:function(e){var t,i,n,s,l=r(this),m=o(e),p=[0,0,0,0,0,0],h="",f="0",g=function(e,t){var i=-1,n=t;while(++i<6)n+=e*p[i],p[i]=n%1e7,n=c(n/1e7)},b=function(e){var t=6,i=0;while(--t>=0)i+=p[t],p[t]=c(i/e),i=i%e*1e7},v=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==p[e]){var i=String(p[e]);t=""===t?i:t+a.call("0",7-i.length)+i}return t};if(m<0||m>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(t=u(l*d(2,69,1))-69,i=t<0?l*d(2,-t,1):l/d(2,t,1),i*=4503599627370496,t=52-t,t>0){g(0,i),n=m;while(n>=7)g(1e7,0),n-=7;g(d(10,n,1),0),n=t-1;while(n>=23)b(1<<23),n-=23;b(1<0?(s=f.length,f=h+(s<=m?"0."+a.call("0",m-s)+f:f.slice(0,s-m)+"."+f.slice(s-m))):f=h+f,f}})},b9fe:function(module,exports,__webpack_require__){__webpack_require__("99af"),__webpack_require__("4de4"),__webpack_require__("c975"),__webpack_require__("a15b"),__webpack_require__("baa5"),__webpack_require__("fb6a"),__webpack_require__("a434"),__webpack_require__("b0c0"),__webpack_require__("a9e3"),__webpack_require__("b680"),__webpack_require__("d3b7"),__webpack_require__("4d63"),__webpack_require__("ac1f"),__webpack_require__("25f0"),__webpack_require__("466d"),__webpack_require__("38cf"),__webpack_require__("5319"),__webpack_require__("841c"),__webpack_require__("1276"),__webpack_require__("498a"),__webpack_require__("1913"),__webpack_require__("9911");var _typeof=__webpack_require__("7037"); /*! * UEditor * version: ueditor * build: Wed Dec 26 2018 17:25:05 GMT+0800 (CST) */(function(){UEDITOR_CONFIG=window.UEDITOR_CONFIG||{};var baidu=window.baidu||{};window.baidu=baidu,window.UE=baidu.editor=window.UE||{},UE.plugins={},UE.commands={},UE.instants={},UE.I18N={},UE._customizeUI={},UE.version="1.4.3";var dom=UE.dom={},browser=UE.browser=function(){var e=navigator.userAgent.toLowerCase(),t=window.opera,i={ie:/(msie\s|trident.*rv:)([\w.]+)/.test(e),opera:!!t&&t.version,webkit:e.indexOf(" applewebkit/")>-1,mac:e.indexOf("macintosh")>-1,quirks:"BackCompat"==document.compatMode};i.gecko="Gecko"==navigator.product&&!i.webkit&&!i.opera&&!i.ie;var n=0;if(i.ie){var o=e.match(/(?:msie\s([\w.]+))/),r=e.match(/(?:trident.*rv:([\w.]+))/);n=o&&r&&o[1]&&r[1]?Math.max(1*o[1],1*r[1]):o&&o[1]?1*o[1]:r&&r[1]?1*r[1]:0,i.ie11Compat=11==document.documentMode,i.ie9Compat=9==document.documentMode,i.ie8=!!document.documentMode,i.ie8Compat=8==document.documentMode,i.ie7Compat=7==n&&!document.documentMode||7==document.documentMode,i.ie6Compat=n<7||i.quirks,i.ie9above=n>8,i.ie9below=n<9,i.ie11above=n>10,i.ie11below=n<11}if(i.gecko){var a=e.match(/rv:([\d\.]+)/);a&&(a=a[1].split("."),n=1e4*a[0]+100*(a[1]||0)+1*(a[2]||0))}return/chrome\/(\d+\.\d)/i.test(e)&&(i.chrome=+RegExp["$1"]),/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)&&(i.safari=+(RegExp["$1"]||RegExp["$2"])),i.opera&&(n=parseFloat(t.version())),i.webkit&&(n=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),i.version=n,i.isCompatible=!i.mobile&&(i.ie&&n>=6||i.gecko&&n>=10801||i.opera&&n>=9.5||i.air&&n>=1||i.webkit&&n>=522||!1),i}(),ie=browser.ie,webkit=browser.webkit,gecko=browser.gecko,opera=browser.opera,utils=UE.utils={each:function(e,t,i){if(null!=e)if(e.length===+e.length){for(var n=0,o=e.length;n=i&&e===t)return n=o,!1})),n},removeItem:function(e,t){for(var i=0,n=e.length;i'](?:(amp|lt|quot|gt|#39|nbsp|#\d+);)?/g,(function(e,t){return t?e:{"<":"<","&":"&",'"':""",">":">","'":"'"}[e]})):""},unhtmlForUrl:function(e,t){return e?e.replace(t||/[<">']/g,(function(e){return{"<":"<","&":"&",'"':""",">":">","'":"'"}[e]})):""},html:function(e){return e?e.replace(/&((g|l|quo)t|amp|#39|nbsp);/g,(function(e){return{"<":"<","&":"&",""":'"',">":">","'":"'"," ":" "}[e]})):""},cssStyleToDomStyle:function(){var e=document.createElement("div").style,t={float:void 0!=e.cssFloat?"cssFloat":void 0!=e.styleFloat?"styleFloat":"float"};return function(e){return t[e]||(t[e]=e.toLowerCase().replace(/-./g,(function(e){return e.charAt(1).toUpperCase()})))}}(),loadFile:function(){var e=[];function t(t,i){try{for(var n,o=0;n=e[o++];)if(n.doc===t&&n.url==(i.src||i.href))return n}catch(r){return null}}return function(i,n,o){var r=t(i,n);if(r)r.ready?o&&o():r.funs.push(o);else if(e.push({doc:i,url:n.src||n.href,funs:[o]}),i.body){if(!n.id||!i.getElementById(n.id)){var a=i.createElement(n.tag);for(var s in delete n.tag,n)a.setAttribute(s,n[s]);a.onload=a.onreadystatechange=function(){if(!this.readyState||/loaded|complete/.test(this.readyState)){if(r=t(i,n),r.funs.length>0){r.ready=1;for(var e;e=r.funs.pop();)e()}a.onload=a.onreadystatechange=null}},a.onerror=function(){throw Error("The load "+(n.href||n.src)+" fails,check the url settings of file ueditor.config.js ")},i.getElementsByTagName("head")[0].appendChild(a)}}else{var l=[];for(var s in n)"tag"!=s&&l.push(s+'="'+n[s]+'"');i.write("<"+n.tag+" "+l.join(" ")+" >")}}}(),isEmptyObject:function(e){if(null==e)return!0;if(this.isArray(e)||this.isString(e))return 0===e.length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},fixColor:function(e,t){if(/color/i.test(e)&&/rgba?/.test(t)){var i=t.split(",");if(i.length>3)return"";t="#";for(var n,o=0;n=i[o++];)n=parseInt(n.replace(/[^\d]/gi,""),10).toString(16),t+=1==n.length?"0"+n:n;t=t.toUpperCase()}return t},optCss:function(e){var t,i;function n(e,t){if(!e)return"";var i=e.top,n=e.bottom,o=e.left,r=e.right,a="";if(i&&o&&n&&r)a+=";"+t+":"+(i==n&&n==o&&o==r?i:i==n&&o==r?i+" "+o:o==r?i+" "+o+" "+n:i+" "+r+" "+n+" "+o)+";";else for(var s in e)a+=";"+t+"-"+s+":"+e[s]+";";return a}return e=e.replace(/(padding|margin|border)\-([^:]+):([^;]+);?/gi,(function(e,n,o,r){if(1==r.split(" ").length)switch(n){case"padding":return!t&&(t={}),t[o]=r,"";case"margin":return!i&&(i={}),i[o]=r,"";case"border":return"initial"==r?"":e}return e})),e+=n(t,"padding")+n(i,"margin"),e.replace(/^[ \n\r\t;]*|[ \n\r\t]*$/,"").replace(/;([ \n\r\t]+)|\1;/g,";").replace(/(&((l|g)t|quot|#39))?;{2,}/g,(function(e,t){return t?t+";;":";"}))},clone:function(e,t){var i;for(var n in t=t||{},e)e.hasOwnProperty(n)&&(i=e[n],"object"==_typeof(i)?(t[n]=utils.isArray(i)?[]:{},utils.clone(e[n],t[n])):t[n]=i);return t},transUnitToPx:function(e){if(!/(pt|cm)/.test(e))return e;var t;switch(e.replace(/([\d.]+)(\w+)/,(function(i,n,o){e=n,t=o})),t){case"cm":e=25*parseFloat(e);break;case"pt":e=Math.round(96*parseFloat(e)/72)}return e+(e?"px":"")},domReady:function(){var e=[];function t(t){t.isReady=!0;for(var i;i=e.pop();i());}return function(i,n){n=n||window;var o=n.document;i&&e.push(i),"complete"===o.readyState?t(o):(o.isReady&&t(o),browser.ie&&11!=browser.version?(function(){if(!o.isReady){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(arguments.callee,0)}t(o)}}(),n.attachEvent("onload",(function(){t(o)}))):(o.addEventListener("DOMContentLoaded",(function(){o.removeEventListener("DOMContentLoaded",arguments.callee,!1),t(o)}),!1),n.addEventListener("load",(function(){t(o)}),!1)))}}(),cssRule:browser.ie&&11!=browser.version?function(e,t,i){var n,o;return void 0===t||t&&t.nodeType&&9==t.nodeType?(i=t&&t.nodeType&&9==t.nodeType?t:i||document,n=i.indexList||(i.indexList={}),o=n[e],void 0!==o?i.styleSheets[o].cssText:void 0):(i=i||document,n=i.indexList||(i.indexList={}),o=n[e],""===t?void 0!==o&&(i.styleSheets[o].cssText="",delete n[e],!0):(void 0!==o?sheetStyle=i.styleSheets[o]:(sheetStyle=i.createStyleSheet("",o=i.styleSheets.length),n[e]=o),void(sheetStyle.cssText=t)))}:function(e,t,i){var n;return void 0===t||t&&t.nodeType&&9==t.nodeType?(i=t&&t.nodeType&&9==t.nodeType?t:i||document,n=i.getElementById(e),n?n.innerHTML:void 0):(i=i||document,n=i.getElementById(e),""===t?!!n&&(n.parentNode.removeChild(n),!0):void(n?n.innerHTML=t:(n=i.createElement("style"),n.id=e,n.innerHTML=t,i.getElementsByTagName("head")[0].appendChild(n))))},sort:function(e,t){t=t||function(e,t){return e.localeCompare(t)};for(var i=0,n=e.length;i0){var a=e[i];e[i]=e[o],e[o]=a}return e},serializeParam:function(e){var t=[];for(var i in e)if("method"!=i&&"timeout"!=i&&"async"!=i)if("function"!=_typeof(e[i]).toLowerCase()&&"object"!=_typeof(e[i]).toLowerCase())t.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));else if(utils.isArray(e[i]))for(var n=0;n1||t!==e.parentNode){e.style.cssText=t.style.cssText+";"+e.style.cssText,t=t.parentNode;continue}t.style.cssText+=";"+e.style.cssText,"A"==t.tagName&&(t.style.textDecoration="underline")}if("A"!=t.tagName){t===e.parentNode&&domUtils.remove(e,!0);break}}t=t.parentNode}},mergeSibling:function(e,t,i){function n(e,t,i){var n;if((n=i[e])&&!domUtils.isBookmarkNode(n)&&1==n.nodeType&&domUtils.isSameElement(i,n)){while(n.firstChild)"firstChild"==t?i.insertBefore(n.lastChild,i.firstChild):i.appendChild(n.firstChild);domUtils.remove(n)}}!t&&n("previousSibling","firstChild",e),!i&&n("nextSibling","lastChild",e)},unSelectable:ie&&browser.ie9below||browser.opera?function(e){e.onselectstart=function(){return!1},e.onclick=e.onkeyup=e.onkeydown=function(){return!1},e.unselectable="on",e.setAttribute("unselectable","on");for(var t,i=0;t=e.all[i++];)switch(t.tagName.toLowerCase()){case"iframe":case"textarea":case"input":case"select":break;default:t.unselectable="on",e.setAttribute("unselectable","on")}}:function(e){e.style.MozUserSelect=e.style.webkitUserSelect=e.style.msUserSelect=e.style.KhtmlUserSelect="none"},removeAttributes:function(e,t){t=utils.isArray(t)?t:utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var i,n=0;i=t[n++];){switch(i=attrFix[i]||i,i){case"className":e[i]="";break;case"style":e.style.cssText="";var o=e.getAttributeNode("style");!browser.ie&&o&&e.removeAttributeNode(o)}e.removeAttribute(i)}},createElement:function(e,t,i){return domUtils.setAttributes(e.createElement(t),i)},setAttributes:function(e,t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];switch(i){case"class":e.className=n;break;case"style":e.style.cssText=e.style.cssText+";"+n;break;case"innerHTML":e[i]=n;break;case"value":e.value=n;break;default:e.setAttribute(attrFix[i]||i,n)}}return e},getComputedStyle:function(e,t){var i="width height top left";if(i.indexOf(t)>-1)return e["offset"+t.replace(/^\w/,(function(e){return e.toUpperCase()}))]+"px";if(3==e.nodeType&&(e=e.parentNode),browser.ie&&browser.version<9&&"font-size"==t&&!e.style.fontSize&&!dtd.$empty[e.tagName]&&!dtd.$nonChild[e.tagName]){var n=e.ownerDocument.createElement("span");n.style.cssText="padding:0;border:0;font-family:simsun;",n.innerHTML=".",e.appendChild(n);var o=n.offsetHeight;return e.removeChild(n),n=null,o+"px"}try{var r=domUtils.getStyle(e,t)||(window.getComputedStyle?domUtils.getWindow(e).getComputedStyle(e,"").getPropertyValue(t):(e.currentStyle||e.style)[utils.cssStyleToDomStyle(t)])}catch(a){return""}return utils.transUnitToPx(utils.fixColor(t,r))},removeClasses:function(e,t){t=utils.isArray(t)?t:utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var i,n=0,o=e.className;i=t[n++];)o=o.replace(new RegExp("\\b"+i+"\\b"),"");o=utils.trim(o).replace(/[ ]{2,}/g," "),o?e.className=o:domUtils.removeAttributes(e,["class"])},addClass:function(e,t){if(e){t=utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var i,n=0,o=e.className;i=t[n++];)new RegExp("\\b"+i+"\\b").test(o)||(o+=" "+i);e.className=utils.trim(o)}},hasClass:function(e,t){if(utils.isRegExp(t))return t.test(e.className);t=utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var i,n=0,o=e.className;i=t[n++];)if(!new RegExp("\\b"+i+"\\b","i").test(o))return!1;return n-1==t.length},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},removeStyle:function(e,t){browser.ie?("color"==t&&(t="(^|;)"+t),e.style.cssText=e.style.cssText.replace(new RegExp(t+"[^:]*:[^;]+;?","ig"),"")):e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(utils.cssStyleToDomStyle(t)),e.style.cssText||domUtils.removeAttributes(e,["style"])},getStyle:function(e,t){var i=e.style[utils.cssStyleToDomStyle(t)];return utils.fixColor(t,i)},setStyle:function(e,t,i){e.style[utils.cssStyleToDomStyle(t)]=i,utils.trim(e.style.cssText)||this.removeAttributes(e,"style")},setStyles:function(e,t){for(var i in t)t.hasOwnProperty(i)&&domUtils.setStyle(e,i,t[i])},removeDirtyAttr:function(e){for(var t,i=0,n=e.getElementsByTagName("*");t=n[i++];)t.removeAttribute("_moz_dirty");e.removeAttribute("_moz_dirty")},getChildCount:function(e,t){var i=0,n=e.firstChild;t=t||function(){return 1};while(n)t(n)&&i++,n=n.nextSibling;return i},isEmptyNode:function(e){return!e.firstChild||0==domUtils.getChildCount(e,(function(e){return!domUtils.isBr(e)&&!domUtils.isBookmarkNode(e)&&!domUtils.isWhitespace(e)}))},clearSelectedArr:function(e){var t;while(t=e.pop())domUtils.removeAttributes(t,["class"])},scrollToView:function(e,t,i){var n=function(){var e=t.document,i="CSS1Compat"==e.compatMode;return{width:(i?e.documentElement.clientWidth:e.body.clientWidth)||0,height:(i?e.documentElement.clientHeight:e.body.clientHeight)||0}},o=function(e){if("pageXOffset"in e)return{x:e.pageXOffset||0,y:e.pageYOffset||0};var t=e.document;return{x:t.documentElement.scrollLeft||t.body.scrollLeft||0,y:t.documentElement.scrollTop||t.body.scrollTop||0}},r=n().height,a=-1*r+i;a+=e.offsetHeight||0;var s=domUtils.getXY(e);a+=s.y;var l=o(t).y;(a>l||a0)return 0;for(var i in dtd.$isNotEmpty)if(e.getElementsByTagName(i).length)return 0;return 1}},setViewportOffset:function(e,t){var i=0|parseInt(e.style.left),n=0|parseInt(e.style.top),o=e.getBoundingClientRect(),r=t.left-o.left,a=t.top-o.top;r&&(e.style.left=i+r+"px"),a&&(e.style.top=n+a+"px")},fillNode:function(e,t){var i=browser.ie?e.createTextNode(domUtils.fillChar):e.createElement("br");t.innerHTML="",t.appendChild(i)},moveChild:function(e,t,i){while(e.firstChild)i&&t.firstChild?t.insertBefore(e.lastChild,t.firstChild):t.appendChild(e.firstChild)},hasNoAttributes:function(e){return browser.ie?/^<\w+\s*?>/.test(e.outerHTML):0==e.attributes.length},isCustomeNode:function(e){return 1==e.nodeType&&e.getAttribute("_ue_custom_node_")},isTagNode:function(e,t){return 1==e.nodeType&&new RegExp("\\b"+e.tagName+"\\b","i").test(t)},filterNodeList:function(e,t,i){var n=[];if(!utils.isFunction(t)){var o=t;t=function(e){return-1!=utils.indexOf(utils.isArray(o)?o:o.split(" "),e.tagName.toLowerCase())}}return utils.each(e,(function(e){t(e)&&n.push(e)})),0==n.length?null:1!=n.length&&i?n:n[0]},isInNodeEndBoundary:function(e,t){var i=e.startContainer;if(3==i.nodeType&&e.startOffset!=i.nodeValue.length)return 0;if(1==i.nodeType&&e.startOffset!=i.childNodes.length)return 0;while(i!==t){if(i.nextSibling)return 0;i=i.parentNode}return 1},isBoundaryNode:function(e,t){var i;while(!domUtils.isBody(e))if(i=e,e=e.parentNode,i!==e[t])return!1;return!0},fillHtml:browser.ie11below?" ":"
"},fillCharReg=new RegExp(domUtils.fillChar,"g");(function(){var e,t=0,i=domUtils.fillChar;function n(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer===e.endContainer&&e.startOffset==e.endOffset}function o(e){return!e.collapsed&&1==e.startContainer.nodeType&&e.startContainer===e.endContainer&&e.endOffset-e.startOffset==1}function r(e,t,i,o){return 1==t.nodeType&&(dtd.$empty[t.tagName]||dtd.$nonChild[t.tagName])&&(i=domUtils.getNodeIndex(t)+(e?0:1),t=t.parentNode),e?(o.startContainer=t,o.startOffset=i,o.endContainer||o.collapse(!0)):(o.endContainer=t,o.endOffset=i,o.startContainer||o.collapse(!1)),n(o),o}function a(e,t){var i,n,o=e.startContainer,r=e.endContainer,a=e.startOffset,s=e.endOffset,l=e.document,c=l.createDocumentFragment();if(1==o.nodeType&&(o=o.childNodes[a]||(i=o.appendChild(l.createTextNode("")))),1==r.nodeType&&(r=r.childNodes[s]||(n=r.appendChild(l.createTextNode("")))),o===r&&3==o.nodeType)return c.appendChild(l.createTextNode(o.substringData(a,s-a))),t&&(o.deleteData(a,s-a),e.collapse(!0)),c;for(var d,u,m=c,p=domUtils.findParents(o,!0),h=domUtils.findParents(r,!0),f=0;p[f]==h[f];)f++;for(var g,b=f;g=p[b];b++){d=g.nextSibling,g==o?i||(3==e.startContainer.nodeType?(m.appendChild(l.createTextNode(o.nodeValue.slice(a))),t&&o.deleteData(a,o.nodeValue.length-a)):m.appendChild(t?o:o.cloneNode(!0))):(u=g.cloneNode(!1),m.appendChild(u));while(d){if(d===r||d===h[b])break;g=d.nextSibling,m.appendChild(t?d:d.cloneNode(!0)),d=g}m=u}m=c,p[f]||(m.appendChild(p[f-1].cloneNode(!1)),m=m.firstChild);var v;for(b=f;v=h[b];b++){if(d=v.previousSibling,v==r?n||3!=e.endContainer.nodeType||(m.appendChild(l.createTextNode(r.substringData(0,s))),t&&r.deleteData(0,s)):(u=v.cloneNode(!1),m.appendChild(u)),b!=f||!p[f])while(d){if(d===o)break;v=d.previousSibling,m.insertBefore(t?d:d.cloneNode(!0),m.firstChild),d=v}m=u}return t&&e.setStartBefore(h[f]?p[f]?h[f]:p[f-1]:h[f-1]).collapse(!0),i&&domUtils.remove(i),n&&domUtils.remove(n),c}var s=dom.Range=function(e){var t=this;t.startContainer=t.startOffset=t.endContainer=t.endOffset=null,t.document=e,t.collapsed=!0};function l(t,i){try{if(e&&domUtils.inDoc(e,t))if(e.nodeValue.replace(fillCharReg,"").length)e.nodeValue=e.nodeValue.replace(fillCharReg,"");else{var n=e.parentNode;domUtils.remove(e);while(n&&domUtils.isEmptyInlineElement(n)&&(browser.safari?!(domUtils.getPosition(n,i)&domUtils.POSITION_CONTAINS):!n.contains(i)))e=n.parentNode,domUtils.remove(n),n=e}}catch(o){}}function c(e,t){var i;e=e[t];while(e&&domUtils.isFillChar(e))i=e[t],domUtils.remove(e),e=i}s.prototype={cloneContents:function(){return this.collapsed?null:a(this,0)},deleteContents:function(){var e;return this.collapsed||a(this,1),browser.webkit&&(e=this.startContainer,3!=e.nodeType||e.nodeValue.length||(this.setStartBefore(e).collapse(!0),domUtils.remove(e))),this},extractContents:function(){return this.collapsed?null:a(this,2)},setStart:function(e,t){return r(!0,e,t,this)},setEnd:function(e,t){return r(!1,e,t,this)},setStartAfter:function(e){return this.setStart(e.parentNode,domUtils.getNodeIndex(e)+1)},setStartBefore:function(e){return this.setStart(e.parentNode,domUtils.getNodeIndex(e))},setEndAfter:function(e){return this.setEnd(e.parentNode,domUtils.getNodeIndex(e)+1)},setEndBefore:function(e){return this.setEnd(e.parentNode,domUtils.getNodeIndex(e))},setStartAtFirst:function(e){return this.setStart(e,0)},setStartAtLast:function(e){return this.setStart(e,3==e.nodeType?e.nodeValue.length:e.childNodes.length)},setEndAtFirst:function(e){return this.setEnd(e,0)},setEndAtLast:function(e){return this.setEnd(e,3==e.nodeType?e.nodeValue.length:e.childNodes.length)},selectNode:function(e){return this.setStartBefore(e).setEndAfter(e)},selectNodeContents:function(e){return this.setStart(e,0).setEndAtLast(e)},cloneRange:function(){var e=this;return new s(e.document).setStart(e.startContainer,e.startOffset).setEnd(e.endContainer,e.endOffset)},collapse:function(e){var t=this;return e?(t.endContainer=t.startContainer,t.endOffset=t.startOffset):(t.startContainer=t.endContainer,t.startOffset=t.endOffset),t.collapsed=!0,t},shrinkBoundary:function(e){var t,i=this,n=i.collapsed;function o(e){return 1==e.nodeType&&!domUtils.isBookmarkNode(e)&&!dtd.$empty[e.tagName]&&!dtd.$nonChild[e.tagName]}while(1==i.startContainer.nodeType&&(t=i.startContainer.childNodes[i.startOffset])&&o(t))i.setStart(t,0);if(n)return i.collapse(!0);if(!e)while(1==i.endContainer.nodeType&&i.endOffset>0&&(t=i.endContainer.childNodes[i.endOffset-1])&&o(t))i.setEnd(t,t.childNodes.length);return i},getCommonAncestor:function(e,t){var i=this,n=i.startContainer,r=i.endContainer;return n===r?e&&o(this)&&(n=n.childNodes[i.startOffset],1==n.nodeType)?n:t&&3==n.nodeType?n.parentNode:n:domUtils.getCommonAncestor(n,r)},trimBoundary:function(e){this.txtToElmBoundary();var t=this.startContainer,i=this.startOffset,n=this.collapsed,o=this.endContainer;if(3==t.nodeType){if(0==i)this.setStartBefore(t);else if(i>=t.nodeValue.length)this.setStartAfter(t);else{var r=domUtils.split(t,i);t===o?this.setEnd(r,this.endOffset-i):t.parentNode===o&&(this.endOffset+=1),this.setStartBefore(r)}if(n)return this.collapse(!0)}return e||(i=this.endOffset,o=this.endContainer,3==o.nodeType&&(0==i?this.setEndBefore(o):(i=i.nodeValue.length&&e["set"+t.replace(/(\w)/,(function(e){return e.toUpperCase()}))+"After"](i):e["set"+t.replace(/(\w)/,(function(e){return e.toUpperCase()}))+"Before"](i))}return!e&&this.collapsed||(t(this,"start"),t(this,"end")),this},insertNode:function(e){var t=e,i=1;11==e.nodeType&&(t=e.firstChild,i=e.childNodes.length),this.trimBoundary(!0);var n=this.startContainer,o=this.startOffset,r=n.childNodes[o];return r?n.insertBefore(e,r):n.appendChild(e),t.parentNode===this.endContainer&&(this.endOffset=this.endOffset+i),this.setStartBefore(t)},setCursor:function(e,t){return this.collapse(!e).select(t)},createBookmark:function(e,i){var n,o=this.document.createElement("span");return o.style.cssText="display:none;line-height:0px;",o.appendChild(this.document.createTextNode("‍")),o.id="_baidu_bookmark_start_"+(i?"":t++),this.collapsed||(n=o.cloneNode(!0),n.id="_baidu_bookmark_end_"+(i?"":t++)),this.insertNode(o),n&&this.collapse().insertNode(n).setEndBefore(n),this.setStartAfter(o),{start:e?o.id:o,end:n?e?n.id:n:null,id:e}},moveToBookmark:function(e){var t=e.id?this.document.getElementById(e.start):e.start,i=e.end&&e.id?this.document.getElementById(e.end):e.end;return this.setStartBefore(t),domUtils.remove(t),i?(this.setEndBefore(i),domUtils.remove(i)):this.collapse(!0),this},enlarge:function(e,t){var i,n,o=domUtils.isBody,r=this.document.createTextNode("");if(e){n=this.startContainer,1==n.nodeType?n.childNodes[this.startOffset]?i=n=n.childNodes[this.startOffset]:(n.appendChild(r),i=n=r):i=n;while(1){if(domUtils.isBlockElm(n)){n=i;while((i=n.previousSibling)&&!domUtils.isBlockElm(i))n=i;this.setStartBefore(n);break}i=n,n=n.parentNode}n=this.endContainer,1==n.nodeType?((i=n.childNodes[this.endOffset])?n.insertBefore(r,i):n.appendChild(r),i=n=r):i=n;while(1){if(domUtils.isBlockElm(n)){n=i;while((i=n.nextSibling)&&!domUtils.isBlockElm(i))n=i;this.setEndAfter(n);break}i=n,n=n.parentNode}r.parentNode===this.endContainer&&this.endOffset--,domUtils.remove(r)}if(!this.collapsed){while(0==this.startOffset){if(t&&t(this.startContainer))break;if(o(this.startContainer))break;this.setStartBefore(this.startContainer)}while(this.endOffset==(1==this.endContainer.nodeType?this.endContainer.childNodes.length:this.endContainer.nodeValue.length)){if(t&&t(this.endContainer))break;if(o(this.endContainer))break;this.setEndAfter(this.endContainer)}}return this},enlargeToBlockElm:function(e){while(!domUtils.isBlockElm(this.startContainer))this.setStartBefore(this.startContainer);if(!e)while(!domUtils.isBlockElm(this.endContainer))this.setEndAfter(this.endContainer);return this},adjustmentBoundary:function(){if(!this.collapsed){while(!domUtils.isBody(this.startContainer)&&this.startOffset==this.startContainer[3==this.startContainer.nodeType?"nodeValue":"childNodes"].length&&this.startContainer[3==this.startContainer.nodeType?"nodeValue":"childNodes"].length)this.setStartAfter(this.startContainer);while(!domUtils.isBody(this.endContainer)&&!this.endOffset&&this.endContainer[3==this.endContainer.nodeType?"nodeValue":"childNodes"].length)this.setEndBefore(this.endContainer)}return this},applyInlineStyle:function(e,t,i){if(this.collapsed)return this;this.trimBoundary().enlarge(!1,(function(e){return 1==e.nodeType&&domUtils.isBlockElm(e)})).adjustmentBoundary();var n,o,r=this.createBookmark(),a=r.end,s=function(e){return 1==e.nodeType?"br"!=e.tagName.toLowerCase():!domUtils.isWhitespace(e)},l=domUtils.getNextDomNode(r.start,!1,s),c=this.cloneRange();while(l&&domUtils.getPosition(l,a)&domUtils.POSITION_PRECEDING)if(3==l.nodeType||dtd[e][l.tagName]){c.setStartBefore(l),n=l;while(n&&(3==n.nodeType||dtd[e][n.tagName])&&n!==a)o=n,n=domUtils.getNextDomNode(n,1==n.nodeType,null,(function(t){return dtd[e][t.tagName]}));var d,u,m=c.setEndAfter(o).extractContents();if(i&&i.length>0){var p,h;h=p=i[0].cloneNode(!1);for(var f,g=1;f=i[g++];)p.appendChild(f.cloneNode(!1)),p=p.firstChild;d=p}else d=c.document.createElement(e);if(t&&domUtils.setAttributes(d,t),d.appendChild(m),c.insertNode(i?h:d),"span"==e&&t.style&&/text\-decoration/.test(t.style)&&(u=domUtils.findParentByTagName(d,"a",!0))?(domUtils.setAttributes(u,t),domUtils.remove(d,!0),d=u):(domUtils.mergeSibling(d),domUtils.clearEmptySibling(d)),domUtils.mergeChild(d,t),l=domUtils.getNextDomNode(d,!1,s),domUtils.mergeToParent(d),n===a)break}else l=domUtils.getNextDomNode(l,!0,s);return this.moveToBookmark(r)},removeInlineStyle:function(e){if(this.collapsed)return this;e=utils.isArray(e)?e:[e],this.shrinkBoundary().adjustmentBoundary();var t=this.startContainer,i=this.endContainer;while(1){if(1==t.nodeType){if(utils.indexOf(e,t.tagName.toLowerCase())>-1)break;if("body"==t.tagName.toLowerCase()){t=null;break}}t=t.parentNode}while(1){if(1==i.nodeType){if(utils.indexOf(e,i.tagName.toLowerCase())>-1)break;if("body"==i.tagName.toLowerCase()){i=null;break}}i=i.parentNode}var n,o,r=this.createBookmark();t&&(o=this.cloneRange().setEndBefore(r.start).setStartBefore(t),n=o.extractContents(),o.insertNode(n),domUtils.clearEmptySibling(t,!0),t.parentNode.insertBefore(r.start,t)),i&&(o=this.cloneRange().setStartAfter(r.end).setEndAfter(i),n=o.extractContents(),o.insertNode(n),domUtils.clearEmptySibling(i,!1,!0),i.parentNode.insertBefore(r.end,i.nextSibling));var a,s=domUtils.getNextDomNode(r.start,!1,(function(e){return 1==e.nodeType}));while(s&&s!==r.end)a=domUtils.getNextDomNode(s,!0,(function(e){return 1==e.nodeType})),utils.indexOf(e,s.tagName.toLowerCase())>-1&&domUtils.remove(s,!0),s=a;return this.moveToBookmark(r)},getClosedNode:function(){var e;if(!this.collapsed){var t=this.cloneRange().adjustmentBoundary().shrinkBoundary();if(o(t)){var i=t.startContainer.childNodes[t.startOffset];i&&1==i.nodeType&&(dtd.$empty[i.tagName]||dtd.$nonChild[i.tagName])&&(e=i)}}return e},select:browser.ie?function(t,n){var o;this.collapsed||this.shrinkBoundary();var r=this.getClosedNode();if(r&&!n){try{o=this.document.body.createControlRange(),o.addElement(r),o.select()}catch(h){}return this}var a,s=this.createBookmark(),d=s.start;if(o=this.document.body.createTextRange(),o.moveToElementText(d),o.moveStart("character",1),this.collapsed){if(!t&&3!=this.startContainer.nodeType){var u=this.document.createTextNode(i),m=this.document.createElement("span");m.appendChild(this.document.createTextNode(i)),d.parentNode.insertBefore(m,d),d.parentNode.insertBefore(u,d),l(this.document,u),e=u,c(m,"previousSibling"),c(d,"nextSibling"),o.moveStart("character",-1),o.collapse(!0)}}else{var p=this.document.body.createTextRange();a=s.end,p.moveToElementText(a),o.setEndPoint("EndToEnd",p)}this.moveToBookmark(s),m&&domUtils.remove(m);try{o.select()}catch(h){}return this}:function(t){function n(e){function t(t,i,n){3==t.nodeType&&t.nodeValue.length0)c=d-1;else{if(!(u<0))return{container:n,offset:i(o)};l=d+1}}if(-1==d){if(s.moveToElementText(n),s.setEndPoint("StartToStart",e),r=s.text.replace(/(\r\n|\r)/g,"\n").length,a=n.childNodes,!r)return o=a[a.length-1],{container:o,offset:o.nodeValue.length};var m=a.length;while(r>0)r-=a[--m].nodeValue.length;return{container:a[m],offset:-r}}if(s.collapse(u>0),s.setEndPoint(u>0?"StartToStart":"EndToStart",e),r=s.text.replace(/(\r\n|\r)/g,"\n").length,!r)return dtd.$empty[o.tagName]||dtd.$nonChild[o.tagName]?{container:n,offset:i(o)+(u>0?0:1)}:{container:o,offset:u>0?0:o.childNodes.length};while(r>0)try{var p=o;o=o[u>0?"previousSibling":"nextSibling"],r-=o.nodeValue.length}catch(h){return{container:n,offset:i(p)}}return{container:o,offset:u>0?-r:o.nodeValue.length+r}}function t(t,i){if(t.item)i.selectNode(t.item(0));else{var n=e(t,!0);i.setStart(n.container,n.offset),0!=t.compareEndPoints("StartToEnd",t)&&(n=e(t,!1),i.setEnd(n.container,n.offset))}return i}function i(e){var t;try{t=e.getNative().createRange()}catch(n){return null}var i=t.item?t.item(0):t.parentElement();return(i.ownerDocument||i)===e.document?t:null}var n=dom.Selection=function(e){var t,n=this;n.document=e,browser.ie9below&&(t=domUtils.getWindow(e).frameElement,domUtils.on(t,"beforedeactivate",(function(){n._bakIERange=n.getIERange()})),domUtils.on(t,"activate",(function(){try{!i(n)&&n._bakIERange&&n._bakIERange.select()}catch(e){}n._bakIERange=null}))),t=e=null};n.prototype={rangeInBody:function(e,t){var i=browser.ie9below||t?e.item?e.item():e.parentElement():e.startContainer;return i===this.document.body||domUtils.inDoc(i,this.document)},getNative:function(){var e=this.document;try{return e?browser.ie9below?e.selection:domUtils.getWindow(e).getSelection():null}catch(t){return null}},getIERange:function(){var e=i(this);return!e&&this._bakIERange?this._bakIERange:e},cache:function(){this.clear(),this._cachedRange=this.getRange(),this._cachedStartElement=this.getStart(),this._cachedStartElementPath=this.getStartElementPath()},getStartElementPath:function(){if(this._cachedStartElementPath)return this._cachedStartElementPath;var e=this.getStart();return e?domUtils.findParents(e,!0,null,!0):[]},clear:function(){this._cachedStartElementPath=this._cachedRange=this._cachedStartElement=null},isFocus:function(){try{if(browser.ie9below){var e=i(this);return!(!e||!this.rangeInBody(e))}return!!this.getNative().rangeCount}catch(t){return!1}},getRange:function(){var e=this;function i(t){var i=e.document.body.firstChild,n=t.collapsed;while(i&&i.firstChild)t.setStart(i,0),i=i.firstChild;t.startContainer||t.setStart(e.document.body,0),n&&t.collapse(!0)}if(null!=e._cachedRange)return this._cachedRange;var n=new baidu.editor.dom.Range(e.document);if(browser.ie9below){var o=e.getIERange();if(o)try{t(o,n)}catch(l){i(n)}else i(n)}else{var r=e.getNative();if(r&&r.rangeCount){var a=r.getRangeAt(0),s=r.getRangeAt(r.rangeCount-1);n.setStart(a.startContainer,a.startOffset).setEnd(s.endContainer,s.endOffset),n.collapsed&&domUtils.isBody(n.startContainer)&&!n.startOffset&&i(n)}else{if(this._bakRange&&domUtils.inDoc(this._bakRange.startContainer,this.document))return this._bakRange;i(n)}}return this._bakRange=n},getStart:function(){if(this._cachedStartElement)return this._cachedStartElement;var e,t,i,n,o=browser.ie9below?this.getIERange():this.getRange();if(browser.ie9below){if(!o)return this.document.body.firstChild;if(o.item)return o.item(0);e=o.duplicate(),e.text.length>0&&e.moveStart("character",1),e.collapse(1),t=e.parentElement(),n=i=o.parentElement();while(i=i.parentNode)if(i==t){t=n;break}}else if(o.shrinkBoundary(),t=o.startContainer,1==t.nodeType&&t.hasChildNodes()&&(t=t.childNodes[Math.min(t.childNodes.length-1,o.startOffset)]),3==t.nodeType)return t.parentNode;return t},getText:function(){var e,t;return this.isFocus()&&(e=this.getNative())?(t=browser.ie9below?e.createRange():e.getRangeAt(0),browser.ie9below?t.text:t.toString()):""},clearRange:function(){this.getNative()[browser.ie9below?"empty":"removeAllRanges"]()}}}(),function(){var e,t=0;function i(e,t){var i;if(t.textarea)if(utils.isString(t.textarea)){for(var n,o=0,r=domUtils.getElementsByTagName(e,"textarea");n=r[o++];)if(n.id=="ueditor_textarea_"+t.options.textarea){i=n;break}}else i=t.textarea;i||(e.appendChild(i=domUtils.createElement(document,"textarea",{name:t.options.textarea,id:"ueditor_textarea_"+t.options.textarea,style:"display:none"})),t.textarea=i),!i.getAttribute("name")&&i.setAttribute("name",t.options.textarea),i.value=t.hasContents()?t.options.allHtmlEnabled?t.getAllHtml():t.getContent(null,null,!0):""}function n(e){for(var t in e)return t}function o(e){e.langIsReady=!0,e.fireEvent("langReady")}var r=UE.Editor=function(e){var i=this;i.uid=t++,EventBase.call(i),i.commands={},i.options=utils.extend(utils.clone(e||{}),UEDITOR_CONFIG,!0),i.shortcutkeys={},i.inputRules=[],i.outputRules=[],i.setOpt(r.defaultOptions(i)),i.loadServerConfig(),utils.isEmptyObject(UE.I18N)?utils.loadFile(document,{src:i.options.langPath+i.options.lang+"/"+i.options.lang+".js",tag:"script",type:"text/javascript",defer:"defer"},(function(){UE.plugin.load(i),o(i)})):(i.options.lang=n(UE.I18N),UE.plugin.load(i),o(i)),UE.instants["ueditorInstant"+i.uid]=i};r.prototype={registerCommand:function(e,t){this.commands[e]=t},ready:function(e){var t=this;e&&(t.isReady?e.apply(t):t.addListener("ready",e))},setOpt:function(e,t){var i={};utils.isString(e)?i[e]=t:i=e,utils.extend(this.options,i,!0)},getOpt:function(e){return this.options[e]},destroy:function(){var e=this;e.fireEvent("destroy");var t=e.container.parentNode,i=e.textarea;i?i.style.display="":(i=document.createElement("textarea"),t.parentNode.insertBefore(i,t)),i.style.width=e.iframe.offsetWidth+"px",i.style.height=e.iframe.offsetHeight+"px",i.value=e.getContent(),i.id=e.key,t.innerHTML="",domUtils.remove(t);var n=e.key;for(var o in e)e.hasOwnProperty(o)&&delete this[o];UE.delEditor(n)},render:function(e){var t=this,i=t.options,n=function(t){return parseInt(domUtils.getComputedStyle(e,t))};if(utils.isString(e)&&(e=document.getElementById(e)),e){i.initialFrameWidth?i.minFrameWidth=i.initialFrameWidth:i.minFrameWidth=i.initialFrameWidth=e.offsetWidth,i.initialFrameHeight?i.minFrameHeight=i.initialFrameHeight:i.initialFrameHeight=i.minFrameHeight=e.offsetHeight,e.style.width=/%$/.test(i.initialFrameWidth)?"100%":i.initialFrameWidth-n("padding-left")-n("padding-right")+"px",e.style.height=/%$/.test(i.initialFrameHeight)?"100%":i.initialFrameHeight-n("padding-top")-n("padding-bottom")+"px",e.style.zIndex=i.zIndex;var o=(ie&&browser.version<9?"":"")+""+(i.iframeCssUrl?"":"")+(i.initialStyle?"":"")+"