(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2b7a11fd"],{"004f":function(A,t,e){},"01628":function(A,t,e){"use strict";var n=e("f9a7");e.n(n).a},"02a4":function(A,t,e){"use strict";e.r(t);var n={name:"c_select",props:{configObj:{type:Object},configNme:{type:String},number:{type:null}},data:function(){return{defaults:{},configData:{},timeStamp:""}},mounted:function(){var A=this;this.$nextTick((function(){A.defaults=A.configObj,A.configData=A.configObj[A.configNme]}))},watch:{configObj:{handler:function(A,t){this.defaults=A,this.configData=A[this.configNme]},deep:!0},number:function(A){this.timeStamp=A}},methods:{sliderChange:function(A){var t=window.localStorage;this.configData.activeValue=A||t.getItem(this.timeStamp),this.$emit("getConfig",{name:"select",values:A})}}};e("6e83"),e=e("2877"),e=Object(e.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"slider-box"},[e("div",{staticClass:"c_row-item"},[A.configData.title?e("Col",{staticClass:"label",attrs:{span:"4"}},[A._v("\n "+A._s(A.configData.title)+"\n ")]):A._e(),e("Col",{staticClass:"slider-box",attrs:{span:"19"}},[e("Select",{on:{"on-change":A.sliderChange},model:{value:A.configData.activeValue,callback:function(t){A.$set(A.configData,"activeValue",t)},expression:"configData.activeValue"}},A._l(A.configData.list,(function(t,n){return e("Option",{key:n,attrs:{value:t.activeValue}},[A._v(A._s(t.title))])})),1)],1)],1)])}),[],!1,null,"4b23b85d",null);t.default=e.exports},"035d":function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=(e("e9c4"),e("99af"),e("ab01")),o=e("befa");n={name:"c_home_service",componentsName:"home_service",cname:"在线客服",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(n.a)(Object(n.a)({},i.a),{},{rightBtn:o.a}),data:function(){return{hotIndex:1,configObj:{},rCom:[{components:i.a.c_set_up,configNme:"setUp"}]}},watch:{num:function(A){A=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[A])),this.configObj=A},configObj:{handler:function(A,t){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:A})},deep:!0},"configObj.setUp.tabVal":{handler:function(A,t){var e=[this.rCom[0]];0==A?(A=[{components:i.a.c_upload_img,configNme:"logoConfig"}],this.rCom=e.concat(A)):(A=[{components:i.a.c_slider,configNme:"topConfig"}],this.rCom=e.concat(A))},deep:!0}},mounted:function(){var A=this;this.$nextTick((function(){var t=JSON.parse(JSON.stringify(A.$store.state.mobildConfig.defaultArray[A.num]));A.configObj=t}))},methods:{getConfig:function(A){}}},e("aa72"),o=e("2877"),e=Object(o.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"mobile-config"},[e("Form",{ref:"formInline"},[A._l(A.rCom,(function(t,n){return e("div",{key:n},[e(t.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:A.configObj,configNme:t.configNme,index:A.activeIndex,num:t.num},on:{getConfig:A.getConfig}})],1)})),e("rightBtn",{attrs:{activeIndex:A.activeIndex,configObj:A.configObj}})],2)],1)}),[],!1,null,"7fad8318",null);t.default=e.exports},"05e1":function(A,t,e){"use strict";var n=e("4c87");e.n(n).a},"06ac":function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=(e("99af"),e("ab01")),o=e("befa");n={name:"pageFoot",cname:"底部菜单",components:Object(n.a)(Object(n.a)({},i.a),{},{rightBtn:o.a}),data:function(){return{hotIndex:1,configObj:{},rCom:[{components:i.a.c_set_up,configNme:"setUp"}]}},watch:{"configObj.setUp.tabVal":{handler:function(A,t){var e=[this.rCom[0]];0==A?(A=[{components:i.a.c_status,configNme:"status"},{components:i.a.c_foot,configNme:"menuList"}],this.rCom=e.concat(A)):(A=[{components:i.a.c_bg_color,configNme:"txtColor"},{components:i.a.c_bg_color,configNme:"activeTxtColor"},{components:i.a.c_bg_color,configNme:"bgColor"}],this.rCom=e.concat(A))},deep:!0}},mounted:function(){this.configObj=this.$store.state.mobildConfig.pageFooter},methods:{}},e("f405"),o=e("2877"),e=Object(o.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"mobile-config"},[e("Form",{ref:"formInline"},A._l(A.rCom,(function(t,n){return e("div",{key:n},[e(t.components.name,{ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:A.configObj,configNme:t.configNme}})],1)})),0)],1)}),[],!1,null,"4a4ca508",null);t.default=e.exports},"0701":function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=(e("e9c4"),e("99af"),e("ab01")),o=e("befa");n={name:"c_ueditor_box",componentsName:"z_ueditor",components:Object(n.a)(Object(n.a)({},i.a),{},{rightBtn:o.a}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:i.a.c_set_up,configNme:"setUp"}]}},watch:{num:function(A){A=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[A])),this.configObj=A},configObj:{handler:function(A,t){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:A})},deep:!0},"configObj.setUp.tabVal":{handler:function(A,t){var e=[this.rCom[0]];0==A?(A=[{components:i.a.c_page_ueditor,configNme:"richText"}],this.rCom=e.concat(A)):(A=[{components:i.a.c_bg_color,configNme:"bgColor"},{components:i.a.c_slider,configNme:"lrConfig"},{components:i.a.c_slider,configNme:"udConfig"}],this.rCom=e.concat(A))},deep:!0}},mounted:function(){var A=this;this.$nextTick((function(){var t=JSON.parse(JSON.stringify(A.$store.state.mobildConfig.defaultArray[A.num]));A.configObj=t}))},methods:{getConfig:function(A){}}},o=e("2877"),e=Object(o.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"mobile-config"},[A._l(A.rCom,(function(t,n){return e("div",{key:n},[e(t.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:A.configObj,configNme:t.configNme,index:A.activeIndex,num:t.num},on:{getConfig:A.getConfig}})],1)})),e("rightBtn",{attrs:{activeIndex:A.activeIndex,configObj:A.configObj}})],2)}),[],!1,null,"692a794a",null);t.default=e.exports},"0af2":function(A,t,e){"use strict";var n=e("84e8");e.n(n).a},"0d9a":function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=e("2f62");n={name:"z_auxiliary_box",cname:"辅助空白",configName:"c_auxiliary_box",icon:"iconfuzhukongbai1",type:2,defaultName:"blankPage",props:{index:{type:null,default:-1},num:{type:null}},computed:Object(n.a)({},Object(i.d)("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(A,t){this.setConfig(A)},deep:!0},num:{handler:function(A,t){A=this.$store.state.mobildConfig.defaultArray[A],this.setConfig(A)},deep:!0},defaultArray:{handler:function(A,t){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"blankPage",timestamp:this.num,bgColor:{title:"背景颜色",name:"bgColor",default:[{item:"#f5f5f5"}],color:[{item:"#f5f5f5"}]},heightConfig:{title:"组件高度",val:10,min:1}},cSlider:"",bgColor:"",confObj:{},pageData:{},edge:""}},mounted:function(){var A=this;this.$nextTick((function(){A.pageData=A.$store.state.mobildConfig.defaultArray[A.num],A.setConfig(A.pageData)}))},methods:{setConfig:function(A){A&&A.heightConfig&&(this.cSlider=A.heightConfig.val,this.bgColor=A.bgColor.color[0].item)}}},e("8aef"),i=e("2877"),e=Object(i.a)(n,(function(){var A=this.$createElement;A=this._self._c||A;return A("div",{staticClass:"mobile-page"},[A("div",{staticClass:"box",style:{height:this.cSlider+"px",background:this.bgColor}})])}),[],!1,null,"0c29708c",null);t.default=e.exports},"0ee2":function(A,t,e){"use strict";e.r(t),e("b0c0");var n={name:"pageTitle",components:{uploadPictures:e("b0e7").a},data:function(){return{value:"",name:"",isShow:!0,picList:["icondantu","iconpingpu","iconlashen"],bgColor:!1,bgPic:!1,tabVal:0,colorPicker:"#f5f5f5",modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},bgPicUrl:""}},created:function(){var A=this.$store.state.mobildConfig;this.value=A.pageTitle,this.name=A.pageName,this.isShow=!!A.pageShow,this.bgColor=!!A.pageColor,this.bgPic=!!A.pagePic,this.colorPicker=A.pageColorPicker,this.tabVal=A.pageTabVal,this.bgPicUrl=A.pagePicUrl},methods:{modalPicTap:function(A){this.modalPic=!0},bindDelete:function(){this.bgPicUrl=""},getPic:function(A){var t=this;this.$nextTick((function(){t.bgPicUrl=A.att_dir,t.modalPic=!1,t.$store.commit("mobildConfig/UPPICURL",A.att_dir)}))},colorPickerTap:function(A){this.$store.commit("mobildConfig/UPPICKER",A)},radioTap:function(A){this.$store.commit("mobildConfig/UPRADIO",A)},changVal:function(A){this.$store.commit("mobildConfig/UPTITLE",A.target.value)},changName:function(A){this.$store.commit("mobildConfig/UPNAME",A.target.value)},changeState:function(A){this.$store.commit("mobildConfig/UPSHOW",A)},bgColorTap:function(A){this.$store.commit("mobildConfig/UPCOLOR",A)},bgPicTap:function(A){this.$store.commit("mobildConfig/UPPIC",A)}}};e("7a14"),e=e("2877"),e=Object(e.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"box"},[2!==this.$route.query.type?e("div",{staticClass:"c_row-item"},[e("Col",{staticClass:"label",attrs:{span:"4"}},[A._v(" 模板名称 ")]),e("Col",{staticClass:"slider-box",attrs:{span:"19"}},[e("Input",{attrs:{placeholder:"选填不超过15个字",maxlength:"15"},on:{"on-change":A.changName},model:{value:A.name,callback:function(t){A.name=t},expression:"name"}})],1)],1):A._e(),e("div",{staticClass:"c_row-item"},[e("Col",{staticClass:"label",attrs:{span:"4"}},[A._v(" 页面标题 ")]),e("Col",{staticClass:"slider-box",attrs:{span:"19"}},[e("Input",{attrs:{placeholder:"选填不超过30个字",maxlength:"30"},on:{"on-change":A.changVal},model:{value:A.value,callback:function(t){A.value=t},expression:"value"}})],1)],1),e("div",{staticClass:"c_row-item"},[e("Col",{staticClass:"label",attrs:{span:"4"}},[A._v(" 页面状态 ")]),e("Col",{staticClass:"slider-box",attrs:{span:"19"}},[e("i-switch",{on:{"on-change":A.changeState},model:{value:A.isShow,callback:function(t){A.isShow=t},expression:"isShow"}})],1)],1),e("div",{staticClass:"c_row-item acea-row row-top"},[e("Col",{staticClass:"label",attrs:{span:"4"}},[A._v(" 背景设置 ")]),e("Col",{staticClass:"slider-box",attrs:{span:"19"}},[e("div",{staticClass:"acea-row row-between row-top color"},[e("Checkbox",{on:{"on-change":A.bgColorTap},model:{value:A.bgColor,callback:function(t){A.bgColor=t},expression:"bgColor"}},[A._v("背景色")]),e("ColorPicker",{on:{"on-change":function(t){return A.colorPickerTap(A.colorPicker)}},model:{value:A.colorPicker,callback:function(t){A.colorPicker=t},expression:"colorPicker"}})],1),e("div",{staticClass:"acea-row row-between row-top color"},[e("Checkbox",{on:{"on-change":A.bgPicTap},model:{value:A.bgPic,callback:function(t){A.bgPic=t},expression:"bgPic"}},[A._v("背景图")]),e("RadioGroup",{attrs:{type:"button"},on:{"on-change":A.radioTap},model:{value:A.tabVal,callback:function(t){A.tabVal=t},expression:"tabVal"}},A._l(A.picList,(function(A,t){return e("Radio",{key:t,attrs:{label:t}},[e("span",{staticClass:"iconfont-diy",class:A})])})),1)],1),A.bgPic?e("div",[e("div",{staticClass:"title"},[A._v("建议尺寸:690 * 240px")]),e("div",{staticClass:"boxs",on:{click:function(t){return A.modalPicTap("单选")}}},[A.bgPicUrl?e("img",{attrs:{src:A.bgPicUrl,alt:""}}):e("div",{staticClass:"upload-box"},[e("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1),A.bgPicUrl?e("div",{staticClass:"replace"},[A._v("更换图片")]):A._e()])]):A._e()])],1),e("div",[e("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传背景图","mask-closable":!1,"z-index":1},model:{value:A.modalPic,callback:function(t){A.modalPic=t},expression:"modalPic"}},[A.modalPic?e("uploadPictures",{attrs:{isChoice:A.isChoice,gridBtn:A.gridBtn,gridPic:A.gridPic},on:{getPic:A.getPic}}):A._e()],1)],1)])}),[],!1,null,"4cf80462",null);t.default=e.exports},"0f37":function(A,t,e){"use strict";var n=e("4a68");e.n(n).a},"0f51":function(A,t,e){},"12e6":function(A,t,e){var n={"./banner.vue":"b667","./home_bargain.vue":"b2635","./home_coupon.vue":"5a7b","./home_goods_list.vue":"8831","./home_hot.vue":"1824","./home_menu.vue":"beea","./home_new_list.vue":"e945","./home_news_roll.vue":"2cc5","./home_pink.vue":"c29d","./home_product.vue":"9567","./home_seckill.vue":"f5de","./home_service.vue":"c447","./home_title.vue":"a77a","./nav_bar.vue":"70b5","./picture_cube.vue":"cc5b","./search_box.vue":"90b8","./wechat_live.vue":"ba2f","./z_auxiliary_box.vue":"0d9a","./z_auxiliary_line.vue":"4667","./z_ueditor.vue":"d8b9","./z_wechat_attention.vue":"77dd"};function i(A){return A=o(A),e(A)}function o(A){if(e.o(n,A))return n[A];throw(A=new Error("Cannot find module '"+A+"'")).code="MODULE_NOT_FOUND",A}i.keys=function(){return Object.keys(n)},i.resolve=o,(A.exports=i).id="12e6"},1654:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=(e("e9c4"),e("ab01")),o=e("befa");n={name:"c_auxiliary_box",componentsName:"auxiliary_box",components:Object(n.a)(Object(n.a)({},i.a),{},{rightBtn:o.a}),props:{activeIndex:{type:null},num:{type:null},index:{type:null}},data:function(){return{configObj:{},rCom:[{components:i.a.c_bg_color,configNme:"bgColor"},{components:i.a.c_slider,configNme:"heightConfig"}]}},watch:{num:function(A){A=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[A])),this.configObj=A},configObj:{handler:function(A,t){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:A})},deep:!0}},mounted:function(){var A=this;this.$nextTick((function(){var t=JSON.parse(JSON.stringify(A.$store.state.mobildConfig.defaultArray[A.num]));A.configObj=t}))},methods:{getConfig:function(A){}}},o=e("2877"),e=Object(o.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"mobile-config"},[A._l(A.rCom,(function(t,n){return e("div",{key:n},[e(t.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:A.configObj,configNme:t.configNme,index:A.activeIndex,num:t.num},on:{getConfig:A.getConfig}})],1)})),e("rightBtn",{attrs:{activeIndex:A.activeIndex,configObj:A.configObj}})],2)}),[],!1,null,"46df21e1",null);t.default=e.exports},1824:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=e("2f62");n={name:"home_hot",cname:"活动魔方",icon:"iconhuodongmofang1",configName:"c_home_hot",type:1,defaultName:"activeParty",props:{index:{type:null},num:{type:null}},computed:Object(n.a)({},Object(i.d)("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(A,t){this.setConfig(A)},deep:!0},num:{handler:function(A,t){A=this.$store.state.mobildConfig.defaultArray[A],this.setConfig(A)},deep:!0},defaultArray:{handler:function(A,t){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"activeParty",timestamp:this.num,setUp:{tabVal:0},titleConfig:{title:"促销标题",value:"超值爆款",place:"请输入标题",max:10},desConfig:{title:"促销简介",value:"美好生活由此开始",place:"请输入简介",max:8},menuConfig:{title:"最多可添加4个版块,图片建议尺寸140 * 140px;鼠标拖拽左侧圆点可 调整版块顺序",maxList:4,list:[{img:"",info:[{title:"标题",value:"今日推荐",tips:"选填,不超过4个字",max:4},{title:"简介",value:"店主诚意推荐 品质商品",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"热门榜单",tips:"选填,不超过4个字",max:4},{title:"简介",value:"店主诚意推荐 品质商品",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"首发新品",tips:"选填,不超过4个字",max:4},{title:"简介",value:"新品上架等 你来拿",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]},{img:"",info:[{title:"标题",value:"促销单品",tips:"选填,不超过4个字",max:4},{title:"简介",value:"综合评选好 产品",tips:"选填,不超过20个字",max:20},{title:"链接",value:"",tips:"请输入链接",max:100}]}]},themeColor:{title:"主题颜色",name:"themeColor",default:[{item:"#fc3c3e"}],color:[{item:"#fc3c3e"}]},bgColor:{title:"标签背景颜色",name:"bgColor",default:[{item:"#F62C2C"},{item:"#F96E29"}],color:[{item:"#F62C2C"},{item:"#F96E29"}]},boxColor:{title:"背景颜色",name:"boxColor",default:[{item:"#ffe5e3"}],color:[{item:"#ffe5e3"}]},mbConfig:{title:"页面间距",val:0,min:0}},titleTxt:"",msgTxt:"",slider:"",hotList:[],txtColor:"",bgColor:[],pageData:{},boxColor:""}},mounted:function(){var A=this;this.$nextTick((function(){A.pageData=A.$store.state.mobildConfig.defaultArray[A.num],A.setConfig(A.pageData)}))},methods:{setConfig:function(A){A&&A.mbConfig&&(this.titleTxt=A.titleConfig.value,this.msgTxt=A.desConfig.value,this.slider=A.mbConfig.val,this.hotList=A.menuConfig.list,this.txtColor=A.themeColor.color[0].item,this.bgColor=A.bgColor.color,this.boxColor=A.boxColor.color[0].item)}}},e("ed79"),i=e("2877"),e=Object(i.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return 0@^][^\s!#%&*+<=>@^]*>/,I=/a/g,K=/a/g,T=(e=new E(I)!==I,d.MISSED_STICKY),D=d.UNSUPPORTED_Y;b=n&&(!e||T||Q||v||h((function(){return K[U]=!1,E(I)!=I||E(K)==K||"/a/i"!=E(I,"i")})));if(a("RegExp",b)){function R(A,t){var e,n,i=l(F,this),o=u(A),a=void 0===t,c=[],d=A;if(!i&&o&&a&&A.constructor===R)return A;if((o||l(F,A))&&(A=A.source,a&&(t=g(d))),A=void 0===A?"":f(A),t=void 0===t?"":f(t),d=A,o=t=Q&&"dotAll"in I&&(e=!!t&&-1"===t&&r:if(""===l||C(a,l))throw new _("Invalid capture group name");a[l]=!0,r=!(o[o.length]=[l,c]),l="";continue}r?l+=t:i+=t}return[i,o]}(A))[0],c=a[1]),a=s(E(A,t),i?this:F,R),(e||n||c.length)&&(t=p(a),e&&(t.dotAll=!0,t.raw=R(function(A){for(var t,e=A.length,n=0,i="",o=!1;n<=e;n++)"\\"===(t=N(A,n))?i+=t+N(A,++n):o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]";return i}(A),o)),n&&(t.sticky=!0),c.length&&(t.groups=c)),A!==d)try{r(a,"source",""===d?"(?:)":d)}catch(A){}return a}for(var L=c(E),k=0;L.length>k;)B(R,E,L[k++]);(F.constructor=R).prototype=F,m(i,"RegExp",R,{constructor:!0})}w("RegExp")},"4e82":function(A,t,e){"use strict";var n=e("23e7"),i=e("e330"),o=e("59ed"),a=e("7b0b"),s=e("07fa"),r=e("577e"),c=e("d039"),l=e("addb"),u=e("a640"),f=e("04d1"),g=e("d998"),d=e("2d00"),B=e("512ce"),m=[],h=i(m.sort),C=i(m.push),p=(e=c((function(){m.sort(void 0)})),i=c((function(){m.sort(null)})),u=u("sort"),!c((function(){if(d)return d<70;if(!(f&&3r(t)?1:-1})),e=i.length,u=0;u"+A+""}},8581:function(A,t,e){"use strict";e.r(t);var n=e("310e"),i=(n=e.n(n),e("b0e7")),o=(e("b562"),e("d708"));n={name:"c_hot_imgs",props:{configObj:{type:Object}},components:{draggable:n.a,uploadPictures:i.a},data:function(){return{defaults:{},menus:[],list:[{title:"aa",val:""}],modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0}},created:function(){this.defaults=this.configObj},watch:{configObj:{handler:function(A,t){this.defaults=A},immediate:!0,deep:!0}},methods:{addBox:function(){this.defaults.menu.push({img:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1594458238721&di=d9978a807dcbf5d8a01400875bc51162&imgtype=0&src=http%3A%2F%2Fattachments.gfan.com%2Fforum%2F201604%2F23%2F002205xqdkj84gnw4oi85v.jpg",info:[{title:"标题",value:"",tips:"选填,不超过4个字",max:4},{title:"简介",value:"",tips:"选填,不超过20个字",max:20}],link:{title:"链接",optiops:[{type:0,value:"",label:"一级>二级分类"},{type:1,value:"",label:"自定义链接"}]}})},modalPicTap:function(A,t){this.activeIndex=t,this.modalPic=!0},addCustomDialog:function(A){window.UE.registerUI("test-dialog",(function(A,t){var e=new window.UE.ui.Dialog({iframeUrl:o.a.routePre+"/widget.images/index.html?fodder=dialog",editor:A,name:t,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});return this.dialog=e,new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}})}),37)},getPic:function(A){this.defaults.menu[this.activeIndex].img=A.att_dir,this.modalPic=!1}}},e("53b3"),i=e("2877"),e=Object(i.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"hot_imgs"},[e("div",{staticClass:"title"},[A._v("最多可添加4个版块,图片建议尺寸140 * 140px;鼠标拖拽左侧圆点可 调整版块顺序")]),e("div",{staticClass:"list-box"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:A.defaults.menu,group:"people",handle:".move-icon"}},A._l(A.defaults.menu,(function(t,n){return e("div",{key:n,staticClass:"item"},[e("div",{staticClass:"move-icon"},[e("Icon",{attrs:{type:"ios-keypad-outline",size:"22"}})],1),e("div",{staticClass:"img-box",on:{click:function(t){return A.modalPicTap("单选",n)}}},[t.img?e("img",{attrs:{src:t.img,alt:""}}):e("div",{staticClass:"upload-box"},[e("Icon",{attrs:{type:"ios-camera-outline",size:"36"}})],1),e("div",[e("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传图片","mask-closable":!1,"z-index":1},model:{value:A.modalPic,callback:function(t){A.modalPic=t},expression:"modalPic"}},[A.modalPic?e("uploadPictures",{attrs:{isChoice:A.isChoice,gridBtn:A.gridBtn,gridPic:A.gridPic},on:{getPic:A.getPic}}):A._e()],1)],1)]),e("div",{staticClass:"info"},A._l(t.info,(function(t,n){return e("div",{key:n,staticClass:"info-item"},[e("span",[A._v(A._s(t.title))]),e("div",{staticClass:"input-box"},[e("Input",{attrs:{placeholder:t.tips,maxlength:t.max},model:{value:t.value,callback:function(e){A.$set(t,"value",e)},expression:"infos.value"}})],1)])})),0)])})),0)],1),A.defaults.menu.length<4?e("div",{staticClass:"add-btn"},[e("Button",{staticStyle:{width:"100%",height:"40px"},on:{click:A.addBox}},[A._v("添加板块")])],1):A._e()])}),[],!1,null,"ec1960b0",null);t.default=e.exports},"87f5":function(A,t,e){},8831:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=e("2f62");n={name:"home_goods_list",cname:"商品列表",configName:"c_home_goods_list",icon:"iconcuxiaoliebiao1",type:0,defaultName:"goodList",props:{index:{type:null},num:{type:null}},computed:Object(n.a)({},Object(i.d)("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(A,t){this.setConfig(A)},deep:!0},num:{handler:function(A,t){A=this.$store.state.mobildConfig.defaultArray[A],this.setConfig(A)},deep:!0},defaultArray:{handler:function(A,t){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"goodList",timestamp:this.num,setUp:{tabVal:0},tabConfig:{title:"选择模板",tabVal:0,type:1,tabList:[{name:"自动选择",icon:"iconzidongxuanze"},{name:"手动选择",icon:"iconshoudongxuanze"}]},titleShow:{title:"是否显示名称",val:!0},opriceShow:{title:"是否显示原价",val:!0},priceShow:{title:"是否显示价格",val:!0},couponShow:{title:"是否显示优惠券",val:!0},selectConfig:{title:"商品分类",activeValue:[],list:[{value:"",label:""},{value:"",label:""}]},goodsSort:{title:"商品排序",name:"goodsSort",type:0,list:[{val:"综合",icon:"iconComm_whole"},{val:"销量",icon:"iconComm_number"},{val:"价格",icon:"iconComm_Price"}]},numConfig:{val:6},themeColor:{title:"背景颜色",name:"themeColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},fontColor:{title:"价格颜色",name:"fontColor",default:[{item:"#e93323"}],color:[{item:"#e93323"}]},labelColor:{title:"活动标签",name:"labelColor",default:[{item:"#e93323"}],color:[{item:"#e93323"}]},itemStyle:{title:"显示类型",name:"itemSstyle",type:0,list:[{val:"单列",icon:"iconzuoyoutuwen"},{val:"两列",icon:"iconlianglie"},{val:"三列",icon:"iconsanlie"},{val:"大图",icon:"icondanlie"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},prConfig:{title:"背景边距",val:0,min:0},mbConfig:{title:"商品间距",val:0,min:0},productList:{title:"商品列表",list:[]},goodsList:{max:20,list:[]}},navlist:[],imgStyle:"",txtColor:"",slider:"",tabCur:0,list:[],activeColor:"",fontColor:"",labelColor:"",pageData:{},itemStyle:0,titleShow:!0,opriceShow:!0,priceShow:!0,couponShow:!0,prConfig:0,bgStyle:0,conStyle:1}},mounted:function(){var A=this;this.$nextTick((function(){A.pageData=A.$store.state.mobildConfig.defaultArray[A.num],A.setConfig(A.pageData)}))},methods:{setConfig:function(A){A&&A.mbConfig&&(this.itemStyle=A.itemStyle.type||0,this.activeColor=A.themeColor.color[0].item,this.fontColor=A.fontColor.color[0].item,this.labelColor=A.labelColor.color[0].item,this.slider=A.mbConfig.val,this.prConfig=A.prConfig.val,this.titleShow=A.titleShow.val,this.opriceShow=A.opriceShow.val,this.priceShow=A.priceShow.val,this.couponShow=A.couponShow.val,this.bgStyle=A.bgStyle.type,this.conStyle=A.conStyle.type,A.tabConfig.tabVal?this.list=A.goodsList.list||[]:this.list=A.productList.list||[])}}},e("8553"),i=e("2877"),e=Object(i.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{style:{padding:"0 "+A.prConfig+"px"}},[e("div",{staticClass:"mobile-page paddingBox",class:0===A.bgStyle?"":"pageOn",style:{marginTop:A.slider+"px",background:A.activeColor}},[e("div",{staticClass:"home_product"},[0==A.itemStyle?[0 * Copyright (c) 2019 Niklas von Hertzen * Released under MIT License */ A.exports=function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var A=function(t,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var e in t)t.hasOwnProperty(e)&&(A[e]=t[e])},A(t,e)};function t(t,e){function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var e=function(){return e=Object.assign||function(A){for(var t,e=1,n=arguments.length;e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=55296&&i<=56319&&e>10),a%1024+56320)),(i+1===e||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f>4,l[r++]=(15&n)<<4|i>>2,l[r++]=(3&i)<<6|63&o;return c},B=function(A){for(var t=A.length,e=[],n=0;n>h,b=(1<>h)+32,v=65536>>C,U=(1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>h],t=(t<>h)],t=(t<>C),t=this.index[t],t+=A>>h&U,t=this.index[t],t=(t<N?(i.push(!0),a-=N):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(o),e.push(V);if(a===S||a===L){if(0===o)return n.push(o),e.push(iA);var s=e[o-1];return-1===FA.indexOf(s)?(n.push(n[o-1]),e.push(s)):(n.push(o),e.push(iA))}return n.push(o),a===oA?e.push("strict"===t?$:uA):a===mA||a===nA?e.push(iA):a===hA?A>=131072&&A<=196605||A>=196608&&A<=262141?e.push(uA):e.push(iA):void e.push(a)})),[n,e,i]},HA=function(A,t,e,n){var i=n[e];if(Array.isArray(A)?-1!==A.indexOf(i):A===i){var o=e;while(o<=n.length){o++;var a=n[o];if(a===t)return!0;if(a!==R)break}}if(i===R){o=e;while(o>0){o--;var s=n[o];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var r=e;while(r<=n.length){r++;a=n[r];if(a===t)return!0;if(a!==R)break}}if(s!==R)break}}return!1},xA=function(A,t){var e=A;while(e>=0){var n=t[e];if(n!==R)return n;e--}return 0},OA=function(A,t,e,n,i){if(0===e[n])return pA;var o=n-1;if(Array.isArray(i)&&!0===i[o])return pA;var a=o-1,s=o+1,r=t[o],c=a>=0?t[a]:0,l=t[s];if(r===x&&l===O)return pA;if(-1!==vA.indexOf(r))return CA;if(-1!==vA.indexOf(l))return pA;if(-1!==UA.indexOf(l))return pA;if(xA(o,t)===T)return wA;if(bA.get(A[o])===L&&(l===uA||l===aA||l===sA))return pA;if(r===K||l===K)return pA;if(r===D)return pA;if(-1===[R,M,j].indexOf(r)&&l===D)return pA;if(-1!==[z,J,X,q,eA].indexOf(l))return pA;if(xA(o,t)===W)return pA;if(HA(Y,W,o,t))return pA;if(HA([z,J],$,o,t))return pA;if(HA(k,k,o,t))return pA;if(r===R)return wA;if(r===Y||l===Y)return pA;if(l===V||r===V)return wA;if(-1!==[M,j,$].indexOf(l)||r===P)return pA;if(c===lA&&-1!==yA.indexOf(r))return pA;if(r===eA&&l===lA)return pA;if(l===G&&-1!==QA.concat(G,X,Z,uA,aA,sA).indexOf(r))return pA;if(-1!==QA.indexOf(l)&&r===Z||-1!==QA.indexOf(r)&&l===Z)return pA;if(r===tA&&-1!==[uA,aA,sA].indexOf(l)||-1!==[uA,aA,sA].indexOf(r)&&l===AA)return pA;if(-1!==QA.indexOf(r)&&-1!==EA.indexOf(l)||-1!==EA.indexOf(r)&&-1!==QA.indexOf(l))return pA;if(-1!==[tA,AA].indexOf(r)&&(l===Z||-1!==[W,j].indexOf(l)&&t[s+1]===Z)||-1!==[W,j].indexOf(r)&&l===Z||r===Z&&-1!==[Z,eA,q].indexOf(l))return pA;if(-1!==[Z,eA,q,z,J].indexOf(l)){var u=o;while(u>=0){var f=t[u];if(f===Z)return pA;if(-1===[eA,q].indexOf(f))break;u--}}if(-1!==[tA,AA].indexOf(l)){u=-1!==[z,J].indexOf(r)?a:o;while(u>=0){f=t[u];if(f===Z)return pA;if(-1===[eA,q].indexOf(f))break;u--}}if(fA===r&&-1!==[fA,gA,rA,cA].indexOf(l)||-1!==[gA,rA].indexOf(r)&&-1!==[gA,dA].indexOf(l)||-1!==[dA,cA].indexOf(r)&&l===dA)return pA;if(-1!==_A.indexOf(r)&&-1!==[G,AA].indexOf(l)||-1!==_A.indexOf(l)&&r===tA)return pA;if(-1!==QA.indexOf(r)&&-1!==QA.indexOf(l))return pA;if(r===q&&-1!==QA.indexOf(l))return pA;if(-1!==QA.concat(Z).indexOf(r)&&l===W||-1!==QA.concat(Z).indexOf(l)&&r===J)return pA;if(r===BA&&l===BA){var g=e[o],d=1;while(g>0){if(g--,t[g]!==BA)break;d++}if(d%2!==0)return pA}return r===aA&&l===sA?pA:wA},SA=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=NA(A,t.lineBreak),n=e[0],i=e[1],o=e[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map((function(A){return-1!==[Z,iA,mA].indexOf(A)?uA:A})));var a="keep-all"===t.wordBreak?o.map((function(t,e){return t&&A[e]>=19968&&A[e]<=40959})):void 0;return[n,i,a]},IA=function(){function A(A,t,e,n){this.codePoints=A,this.required=t===CA,this.start=e,this.end=n}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),KA=function(A,t){var e=r(A),n=SA(e,t),i=n[0],o=n[1],a=n[2],s=e.length,c=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};var A=pA;while(l=Nt&&A<=57},Mt=function(A){return A>=55296&&A<=57343},Pt=function(A){return kt(A)||A>=Kt&&A<=Dt||A>=Ht&&A<=Ot},jt=function(A){return A>=Ht&&A<=It},Vt=function(A){return A>=Kt&&A<=Lt},zt=function(A){return jt(A)||Vt(A)},Jt=function(A){return A>=dt},Xt=function(A){return A===MA||A===VA||A===zA},Gt=function(A){return zt(A)||Jt(A)||A===At},$t=function(A){return Gt(A)||kt(A)||A===tt},Wt=function(A){return A>=Qt&&A<=vt||A===Ut||A>=Et&&A<=Ft||A===_t},Yt=function(A,t){return A===jA&&t!==MA},qt=function(A,t,e){return A===tt?Gt(t)||Yt(t,e):!!Gt(A)||!(A!==jA||!Yt(A,t))},Zt=function(A,t,e){return A===ht||A===tt?!!kt(t)||t===bt&&kt(e):kt(A===bt?t:A)},Ae=function(A){var t=0,e=1;A[t]!==ht&&A[t]!==tt||(A[t]===tt&&(e=-1),t++);var n=[];while(kt(A[t]))n.push(A[t++]);var i=n.length?parseInt(c.apply(void 0,n),10):0;A[t]===bt&&t++;var o=[];while(kt(A[t]))o.push(A[t++]);var a=o.length,s=a?parseInt(c.apply(void 0,o),10):0;A[t]!==Tt&&A[t]!==xt||t++;var r=1;A[t]!==ht&&A[t]!==tt||(A[t]===tt&&(r=-1),t++);var l=[];while(kt(A[t]))l.push(A[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return e*(i+s*Math.pow(10,-a))*Math.pow(10,r*u)},te={type:g.LEFT_PARENTHESIS_TOKEN},ee={type:g.RIGHT_PARENTHESIS_TOKEN},ne={type:g.COMMA_TOKEN},ie={type:g.SUFFIX_MATCH_TOKEN},oe={type:g.PREFIX_MATCH_TOKEN},ae={type:g.COLUMN_TOKEN},se={type:g.DASH_MATCH_TOKEN},re={type:g.INCLUDE_MATCH_TOKEN},ce={type:g.LEFT_CURLY_BRACKET_TOKEN},le={type:g.RIGHT_CURLY_BRACKET_TOKEN},ue={type:g.SUBSTRING_MATCH_TOKEN},fe={type:g.BAD_URL_TOKEN},ge={type:g.BAD_STRING_TOKEN},de={type:g.CDO_TOKEN},Be={type:g.CDC_TOKEN},me={type:g.COLON_TOKEN},he={type:g.SEMICOLON_TOKEN},Ce={type:g.LEFT_SQUARE_BRACKET_TOKEN},pe={type:g.RIGHT_SQUARE_BRACKET_TOKEN},we={type:g.WHITESPACE_TOKEN},be={type:g.EOF_TOKEN},Qe=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(r(A))},A.prototype.read=function(){var A=[],t=this.consumeToken();while(t!==be)A.push(t),t=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case JA:return this.consumeStringToken(JA);case GA:var t=this.peekCodePoint(0),e=this.peekCodePoint(1),n=this.peekCodePoint(2);if($t(t)||Yt(e,n)){var i=qt(t,e,n)?RA:DA,o=this.consumeName();return{type:g.HASH_TOKEN,value:o,flags:i}}break;case $A:if(this.peekCodePoint(0)===XA)return this.consumeCodePoint(),ie;break;case YA:return this.consumeStringToken(YA);case qA:return te;case ZA:return ee;case mt:if(this.peekCodePoint(0)===XA)return this.consumeCodePoint(),ue;break;case ht:if(Zt(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ct:return ne;case tt:var a=A,s=this.peekCodePoint(0),r=this.peekCodePoint(1);if(Zt(a,s,r))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(qt(a,s,r))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===tt&&r===it)return this.consumeCodePoint(),this.consumeCodePoint(),Be;break;case bt:if(Zt(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case PA:if(this.peekCodePoint(0)===mt){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===mt&&(l=this.consumeCodePoint(),l===PA))return this.consumeToken();if(l===yt)return this.consumeToken()}}break;case pt:return me;case wt:return he;case nt:if(this.peekCodePoint(0)===et&&this.peekCodePoint(1)===tt&&this.peekCodePoint(2)===tt)return this.consumeCodePoint(),this.consumeCodePoint(),de;break;case ot:var u=this.peekCodePoint(0),f=this.peekCodePoint(1),d=this.peekCodePoint(2);if(qt(u,f,d)){o=this.consumeName();return{type:g.AT_KEYWORD_TOKEN,value:o}}break;case at:return Ce;case jA:if(Yt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case st:return pe;case rt:if(this.peekCodePoint(0)===XA)return this.consumeCodePoint(),oe;break;case ct:return ce;case ut:return le;case St:case Rt:var B=this.peekCodePoint(0),m=this.peekCodePoint(1);return B!==ht||!Pt(m)&&m!==lt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case ft:if(this.peekCodePoint(0)===XA)return this.consumeCodePoint(),se;if(this.peekCodePoint(0)===ft)return this.consumeCodePoint(),ae;break;case gt:if(this.peekCodePoint(0)===XA)return this.consumeCodePoint(),re;break;case yt:return be}return Xt(A)?(this.consumeWhiteSpace(),we):kt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Gt(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:g.DELIM_TOKEN,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){var A=[],t=this.consumeCodePoint();while(Pt(t)&&A.length<6)A.push(t),t=this.consumeCodePoint();var e=!1;while(t===lt&&A.length<6)A.push(t),t=this.consumeCodePoint(),e=!0;if(e){var n=parseInt(c.apply(void 0,A.map((function(A){return A===lt?Nt:A}))),16),i=parseInt(c.apply(void 0,A.map((function(A){return A===lt?Dt:A}))),16);return{type:g.UNICODE_RANGE_TOKEN,start:n,end:i}}var o=parseInt(c.apply(void 0,A),16);if(this.peekCodePoint(0)===tt&&Pt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var a=[];while(Pt(t)&&a.length<6)a.push(t),t=this.consumeCodePoint();i=parseInt(c.apply(void 0,a),16);return{type:g.UNICODE_RANGE_TOKEN,start:o,end:i}}return{type:g.UNICODE_RANGE_TOKEN,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===qA?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qA?(this.consumeCodePoint(),{type:g.FUNCTION_TOKEN,value:A}):{type:g.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===yt)return{type:g.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(t===YA||t===JA){var e=this.consumeStringToken(this.consumeCodePoint());return e.type===g.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===yt||this.peekCodePoint(0)===ZA)?(this.consumeCodePoint(),{type:g.URL_TOKEN,value:e.value}):(this.consumeBadUrlRemnants(),fe)}while(1){var n=this.consumeCodePoint();if(n===yt||n===ZA)return{type:g.URL_TOKEN,value:c.apply(void 0,A)};if(Xt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===yt||this.peekCodePoint(0)===ZA?(this.consumeCodePoint(),{type:g.URL_TOKEN,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),fe);if(n===JA||n===YA||n===qA||Wt(n))return this.consumeBadUrlRemnants(),fe;if(n===jA){if(!Yt(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),fe;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){while(Xt(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===ZA||A===yt)return;Yt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var t=6e4,e="";while(A>0){var n=Math.min(t,A);e+=c.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){var t="",e=0;do{var n=this._value[e];if(n===yt||void 0===n||n===A)return t+=this.consumeStringSlice(e),{type:g.STRING_TOKEN,value:t};if(n===MA)return this._value.splice(0,e),ge;if(n===jA){var i=this._value[e+1];i!==yt&&void 0!==i&&(i===MA?(t+=this.consumeStringSlice(e),e=-1,this._value.shift()):Yt(n,i)&&(t+=this.consumeStringSlice(e),t+=c(this.consumeEscapedCodePoint()),e=-1))}e++}while(1)},A.prototype.consumeNumber=function(){var A=[],t=LA,e=this.peekCodePoint(0);e!==ht&&e!==tt||A.push(this.consumeCodePoint());while(kt(this.peekCodePoint(0)))A.push(this.consumeCodePoint());e=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(e===bt&&kt(n)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=kA;while(kt(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}e=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((e===Tt||e===xt)&&((n===ht||n===tt)&&kt(i)||kt(n))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=kA;while(kt(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[Ae(A),t]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],e=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(qt(n,i,o)){var a=this.consumeName();return{type:g.DIMENSION_TOKEN,number:t,flags:e,unit:a}}return n===WA?(this.consumeCodePoint(),{type:g.PERCENTAGE_TOKEN,number:t,flags:e}):{type:g.NUMBER_TOKEN,number:t,flags:e}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Pt(A)){var t=c(A);while(Pt(this.peekCodePoint(0))&&t.length<6)t+=c(this.consumeCodePoint());Xt(this.peekCodePoint(0))&&this.consumeCodePoint();var e=parseInt(t,16);return 0===e||Mt(e)||e>1114111?Bt:e}return A===yt?Bt:A},A.prototype.consumeName=function(){var A="";while(1){var t=this.consumeCodePoint();if($t(t))A+=c(t);else{if(!Yt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),ve=function(){function A(A){this._tokens=A}return A.create=function(t){var e=new Qe;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){var A=this.consumeToken();while(A.type===g.WHITESPACE_TOKEN)A=this.consumeToken();if(A.type===g.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===g.WHITESPACE_TOKEN);if(A.type===g.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var t=this.consumeComponentValue();if(t.type===g.EOF_TOKEN)return A;A.push(t),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case g.LEFT_CURLY_BRACKET_TOKEN:case g.LEFT_SQUARE_BRACKET_TOKEN:case g.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case g.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var t={type:A,values:[]},e=this.consumeToken();while(1){if(e.type===g.EOF_TOKEN||Oe(e,A))return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue()),e=this.consumeToken()}},A.prototype.consumeFunction=function(A){var t={name:A.value,values:[],type:g.FUNCTION};while(1){var e=this.consumeToken();if(e.type===g.EOF_TOKEN||e.type===g.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?be:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Ue=function(A){return A.type===g.DIMENSION_TOKEN},Ee=function(A){return A.type===g.NUMBER_TOKEN},Fe=function(A){return A.type===g.IDENT_TOKEN},_e=function(A){return A.type===g.STRING_TOKEN},ye=function(A,t){return Fe(A)&&A.value===t},Ne=function(A){return A.type!==g.WHITESPACE_TOKEN},He=function(A){return A.type!==g.WHITESPACE_TOKEN&&A.type!==g.COMMA_TOKEN},xe=function(A){var t=[],e=[];return A.forEach((function(A){if(A.type===g.COMMA_TOKEN){if(0===e.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(e),void(e=[])}A.type!==g.WHITESPACE_TOKEN&&e.push(A)})),e.length&&t.push(e),t},Oe=function(A,t){return t===g.LEFT_CURLY_BRACKET_TOKEN&&A.type===g.RIGHT_CURLY_BRACKET_TOKEN||(t===g.LEFT_SQUARE_BRACKET_TOKEN&&A.type===g.RIGHT_SQUARE_BRACKET_TOKEN||t===g.LEFT_PARENTHESIS_TOKEN&&A.type===g.RIGHT_PARENTHESIS_TOKEN)},Se=function(A){return A.type===g.NUMBER_TOKEN||A.type===g.DIMENSION_TOKEN},Ie=function(A){return A.type===g.PERCENTAGE_TOKEN||Se(A)},Ke=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Te={type:g.NUMBER_TOKEN,number:0,flags:LA},De={type:g.PERCENTAGE_TOKEN,number:50,flags:LA},Re={type:g.PERCENTAGE_TOKEN,number:100,flags:LA},Le=function(A,t,e){var n=A[0],i=A[1];return[ke(n,t),ke("undefined"!==typeof i?i:n,e)]},ke=function(A,t){if(A.type===g.PERCENTAGE_TOKEN)return A.number/100*t;if(Ue(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},Me="deg",Pe="grad",je="rad",Ve="turn",ze={name:"angle",parse:function(A){if(A.type===g.DIMENSION_TOKEN)switch(A.unit){case Me:return Math.PI*A.number/180;case Pe:return Math.PI/200*A.number;case je:return A.number;case Ve:return 2*Math.PI*A.number}throw new Error("Unsupported angle type")}},Je=function(A){return A.type===g.DIMENSION_TOKEN&&(A.unit===Me||A.unit===Pe||A.unit===je||A.unit===Ve)},Xe=function(A){var t=A.filter(Fe).map((function(A){return A.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Te,Te];case"to top":case"bottom":return Ge(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Te,Re];case"to right":case"left":return Ge(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Re,Re];case"to bottom":case"top":return Ge(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Re,Te];case"to left":case"right":return Ge(270)}return 0},Ge=function(A){return Math.PI*A/180},$e={name:"color",parse:function(A){if(A.type===g.FUNCTION){var t=cn[A.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(A.values)}if(A.type===g.HASH_TOKEN){if(3===A.value.length){var e=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return qe(parseInt(e+e,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(4===A.value.length){e=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);var o=A.value.substring(3,4);return qe(parseInt(e+e,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===A.value.length){e=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return qe(parseInt(e,16),parseInt(n,16),parseInt(i,16),1)}if(8===A.value.length){e=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),o=A.value.substring(6,8);return qe(parseInt(e,16),parseInt(n,16),parseInt(i,16),parseInt(o,16)/255)}}if(A.type===g.IDENT_TOKEN){var a=ln[A.value.toUpperCase()];if("undefined"!==typeof a)return a}return ln.TRANSPARENT}},We=function(A){return 0===(255&A)},Ye=function(A){var t=255&A,e=255&A>>8,n=255&A>>16,i=255&A>>24;return t<255?"rgba("+i+","+n+","+e+","+t/255+")":"rgb("+i+","+n+","+e+")"},qe=function(A,t,e,n){return(A<<24|t<<16|e<<8|Math.round(255*n)<<0)>>>0},Ze=function(A,t){if(A.type===g.NUMBER_TOKEN)return A.number;if(A.type===g.PERCENTAGE_TOKEN){var e=3===t?1:255;return 3===t?A.number/100*e:Math.round(A.number/100*e)}return 0},An=function(A){var t=A.filter(He);if(3===t.length){var e=t.map(Ze),n=e[0],i=e[1],o=e[2];return qe(n,i,o,1)}if(4===t.length){var a=t.map(Ze),s=(n=a[0],i=a[1],o=a[2],a[3]);return qe(n,i,o,s)}return 0};function tn(A,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-A)*e*6+A:e<.5?t:e<2/3?6*(t-A)*(2/3-e)+A:A}var en,nn,on,an,sn,rn=function(A){var t=A.filter(He),e=t[0],n=t[1],i=t[2],o=t[3],a=(e.type===g.NUMBER_TOKEN?Ge(e.number):ze.parse(e))/(2*Math.PI),s=Ie(n)?n.number/100:0,r=Ie(i)?i.number/100:0,c="undefined"!==typeof o&&Ie(o)?ke(o,1):1;if(0===s)return qe(255*r,255*r,255*r,1);var l=r<=.5?r*(s+1):r+s-r*s,u=2*r-l,f=tn(u,l,a+1/3),d=tn(u,l,a),B=tn(u,l,a-1/3);return qe(255*f,255*d,255*B,c)},cn={hsl:rn,hsla:rn,rgb:An,rgba:An},ln={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},un=en||(en={}),fn=(un[un["VALUE"]=0]="VALUE",un[un["LIST"]=1]="LIST",un[un["IDENT_VALUE"]=2]="IDENT_VALUE",un[un["TYPE_VALUE"]=3]="TYPE_VALUE",un[un["TOKEN_VALUE"]=4]="TOKEN_VALUE",nn||(nn={})),gn=(fn[fn["BORDER_BOX"]=0]="BORDER_BOX",fn[fn["PADDING_BOX"]=1]="PADDING_BOX",fn[fn["CONTENT_BOX"]=2]="CONTENT_BOX",{name:"background-clip",initialValue:"border-box",prefix:!1,type:en.LIST,parse:function(A){return A.map((function(A){if(Fe(A))switch(A.value){case"padding-box":return nn.PADDING_BOX;case"content-box":return nn.CONTENT_BOX}return nn.BORDER_BOX}))}}),dn={name:"background-color",initialValue:"transparent",prefix:!1,type:en.TYPE_VALUE,format:"color"},Bn=function(A){var t=$e.parse(A[0]),e=A[1];return e&&Ie(e)?{color:t,stop:e}:{color:t,stop:null}},mn=function(A,t){var e=A[0],n=A[A.length-1];null===e.stop&&(e.stop=Te),null===n.stop&&(n.stop=Re);for(var i=[],o=0,a=0;ao?i.push(r):i.push(o),o=r}else i.push(null)}var c=null;for(a=0;aA.optimumDistance)?{optimumCorner:t,optimumDistance:s}:A}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},bn=function(A,t,e,n,i){var o=0,a=0;switch(A.size){case sn.CLOSEST_SIDE:A.shape===an.CIRCLE?o=a=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-i)):A.shape===an.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-n)),a=Math.min(Math.abs(e),Math.abs(e-i)));break;case sn.CLOSEST_CORNER:if(A.shape===an.CIRCLE)o=a=Math.min(pn(t,e),pn(t,e-i),pn(t-n,e),pn(t-n,e-i));else if(A.shape===an.ELLIPSE){var s=Math.min(Math.abs(e),Math.abs(e-i))/Math.min(Math.abs(t),Math.abs(t-n)),r=wn(n,i,t,e,!0),c=r[0],l=r[1];o=pn(c-t,(l-e)/s),a=s*o}break;case sn.FARTHEST_SIDE:A.shape===an.CIRCLE?o=a=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-i)):A.shape===an.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-n)),a=Math.max(Math.abs(e),Math.abs(e-i)));break;case sn.FARTHEST_CORNER:if(A.shape===an.CIRCLE)o=a=Math.max(pn(t,e),pn(t,e-i),pn(t-n,e),pn(t-n,e-i));else if(A.shape===an.ELLIPSE){s=Math.max(Math.abs(e),Math.abs(e-i))/Math.max(Math.abs(t),Math.abs(t-n));var u=wn(n,i,t,e,!1);c=u[0],l=u[1];o=pn(c-t,(l-e)/s),a=s*o}break}return Array.isArray(A.size)&&(o=ke(A.size[0],n),a=2===A.size.length?ke(A.size[1],i):o),[o,a]},Qn=function(A){var t=Ge(180),e=[];return xe(A).forEach((function(A,n){if(0===n){var i=A[0];if(i.type===g.IDENT_TOKEN&&"to"===i.value)return void(t=Xe(A));if(Je(i))return void(t=ze.parse(i))}var o=Bn(A);e.push(o)})),{angle:t,stops:e,type:on.LINEAR_GRADIENT}},vn=function(A){var t=Ge(180),e=[];return xe(A).forEach((function(A,n){if(0===n){var i=A[0];if(i.type===g.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(t=Xe(A));if(Je(i))return void(t=(ze.parse(i)+Ge(270))%Ge(360))}var o=Bn(A);e.push(o)})),{angle:t,stops:e,type:on.LINEAR_GRADIENT}},Un=function(A){var t=123;if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var n=A.createElement("boundtest");n.style.height=t+"px",n.style.display="block",A.body.appendChild(n),e.selectNode(n);var i=e.getBoundingClientRect(),o=Math.round(i.height);if(A.body.removeChild(n),o===t)return!0}}return!1},En=function(){return"undefined"!==typeof(new Image).crossOrigin},Fn=function(){return"string"===typeof(new XMLHttpRequest).responseType},_n=function(A){var t=new Image,e=A.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),e.toDataURL()}catch(A){return!1}return!0},yn=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Nn=function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var i=new Image,o=t.toDataURL();i.src=o;var a=Hn(e,e,0,0,i);return n.fillStyle="red",n.fillRect(0,0,e,e),xn(a).then((function(t){n.drawImage(t,0,0);var i=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var a=A.createElement("div");return a.style.backgroundImage="url("+o+")",a.style.height=e+"px",yn(i)?xn(Hn(e,e,0,0,a)):Promise.reject(!1)})).then((function(A){return n.drawImage(A,0,0),yn(n.getImageData(0,0,e,e).data)})).catch((function(){return!1}))},Hn=function(A,t,e,n,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",A.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",e.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(i),a},xn=function(A){return new Promise((function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},On={get SUPPORT_RANGE_BOUNDS(){var A=Un(document);return Object.defineProperty(On,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=_n(document);return Object.defineProperty(On,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?Nn(document):Promise.resolve(!1);return Object.defineProperty(On,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=En();return Object.defineProperty(On,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Fn();return Object.defineProperty(On,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(On,"SUPPORT_CORS_XHR",{value:A}),A}},Sn=function(){function A(A){var t=A.id,e=A.enabled;this.id=t,this.enabled=e,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],t=0;t0&&setTimeout((function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var t=this,e=this._options.proxy;if(!e)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(i,o){var a=On.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===a)i(s.response);else{var A=new FileReader;A.addEventListener("load",(function(){return i(A.result)}),!1),A.addEventListener("error",(function(A){return o(A)}),!1),A.readAsDataURL(s.response)}else o("Failed to proxy resource "+n+" with status code "+s.status)},s.onerror=o,s.open("GET",e+"?url="+encodeURIComponent(A)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var r=t._options.imageTimeout;s.timeout=r,s.ontimeout=function(){return o("Timed out ("+r+"ms) proxying "+n)}}s.send()}))},A}(),Tn=/^data:image\/svg\+xml/i,Dn=/^data:image\/.*;base64,/i,Rn=/^data:image\/.*/i,Ln=function(A){return On.SUPPORT_SVG_DRAWING||!jn(A)},kn=function(A){return Rn.test(A)},Mn=function(A){return Dn.test(A)},Pn=function(A){return"blob"===A.substr(0,4)},jn=function(A){return"svg"===A.substr(-3).toLowerCase()||Tn.test(A)},Vn=function(A){var t=Ge(180),e=[],n=on.LINEAR_GRADIENT,i=an.CIRCLE,o=sn.FARTHEST_CORNER,a=[];return xe(A).forEach((function(A,t){var i=A[0];if(0===t){if(Fe(i)&&"linear"===i.value)return void(n=on.LINEAR_GRADIENT);if(Fe(i)&&"radial"===i.value)return void(n=on.RADIAL_GRADIENT)}if(i.type===g.FUNCTION)if("from"===i.name){var o=$e.parse(i.values[0]);e.push({stop:Te,color:o})}else if("to"===i.name){o=$e.parse(i.values[0]);e.push({stop:Re,color:o})}else if("color-stop"===i.name){var a=i.values.filter(He);if(2===a.length){o=$e.parse(a[1]);var s=a[0];Ee(s)&&e.push({stop:{type:g.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}})),n===on.LINEAR_GRADIENT?{angle:(t+Ge(180))%Ge(360),stops:e,type:n}:{size:o,shape:i,stops:e,position:a,type:n}},zn="closest-side",Jn="farthest-side",Xn="closest-corner",Gn="farthest-corner",$n="circle",Wn="ellipse",Yn="cover",qn="contain",Zn=function(A){var t=an.CIRCLE,e=sn.FARTHEST_CORNER,n=[],i=[];return xe(A).forEach((function(A,o){var a=!0;if(0===o){var s=!1;a=A.reduce((function(A,n){if(s)if(Fe(n))switch(n.value){case"center":return i.push(De),A;case"top":case"left":return i.push(Te),A;case"right":case"bottom":return i.push(Re),A}else(Ie(n)||Se(n))&&i.push(n);else if(Fe(n))switch(n.value){case $n:return t=an.CIRCLE,!1;case Wn:return t=an.ELLIPSE,!1;case"at":return s=!0,!1;case zn:return e=sn.CLOSEST_SIDE,!1;case Yn:case Jn:return e=sn.FARTHEST_SIDE,!1;case qn:case Xn:return e=sn.CLOSEST_CORNER,!1;case Gn:return e=sn.FARTHEST_CORNER,!1}else if(Se(n)||Ie(n))return Array.isArray(e)||(e=[]),e.push(n),!1;return A}),a)}if(a){var r=Bn(A);n.push(r)}})),{size:e,shape:t,stops:n,position:i,type:on.RADIAL_GRADIENT}},Ai=function(A){var t=an.CIRCLE,e=sn.FARTHEST_CORNER,n=[],i=[];return xe(A).forEach((function(A,o){var a=!0;if(0===o?a=A.reduce((function(A,t){if(Fe(t))switch(t.value){case"center":return i.push(De),!1;case"top":case"left":return i.push(Te),!1;case"right":case"bottom":return i.push(Re),!1}else if(Ie(t)||Se(t))return i.push(t),!1;return A}),a):1===o&&(a=A.reduce((function(A,n){if(Fe(n))switch(n.value){case $n:return t=an.CIRCLE,!1;case Wn:return t=an.ELLIPSE,!1;case qn:case zn:return e=sn.CLOSEST_SIDE,!1;case Jn:return e=sn.FARTHEST_SIDE,!1;case Xn:return e=sn.CLOSEST_CORNER,!1;case Yn:case Gn:return e=sn.FARTHEST_CORNER,!1}else if(Se(n)||Ie(n))return Array.isArray(e)||(e=[]),e.push(n),!1;return A}),a)),a){var s=Bn(A);n.push(s)}})),{size:e,shape:t,stops:n,position:i,type:on.RADIAL_GRADIENT}},ti=on||(on={}),ei=(ti[ti["URL"]=0]="URL",ti[ti["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",ti[ti["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT",function(A){return A.type===on.LINEAR_GRADIENT}),ni=function(A){return A.type===on.RADIAL_GRADIENT},ii=an||(an={}),oi=(ii[ii["CIRCLE"]=0]="CIRCLE",ii[ii["ELLIPSE"]=1]="ELLIPSE",sn||(sn={})),ai=(oi[oi["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",oi[oi["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",oi[oi["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",oi[oi["FARTHEST_CORNER"]=3]="FARTHEST_CORNER",{name:"image",parse:function(A){if(A.type===g.URL_TOKEN){var t={url:A.value,type:on.URL};return In.getInstance().addImage(A.value),t}if(A.type===g.FUNCTION){var e=Fi[A.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return e(A.values)}throw new Error("Unsupported image type")}});function si(A){return A.type!==g.FUNCTION||Fi[A.name]}var ri,ci,li,ui,fi,gi,di,Bi,mi,hi,Ci,pi,wi,bi,Qi,vi,Ui,Ei,Fi={"linear-gradient":Qn,"-moz-linear-gradient":vn,"-ms-linear-gradient":vn,"-o-linear-gradient":vn,"-webkit-linear-gradient":vn,"radial-gradient":Zn,"-moz-radial-gradient":Ai,"-ms-radial-gradient":Ai,"-o-radial-gradient":Ai,"-webkit-radial-gradient":Ai,"-webkit-gradient":Vn},_i={name:"background-image",initialValue:"none",type:en.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var t=A[0];return t.type===g.IDENT_TOKEN&&"none"===t.value?[]:A.filter((function(A){return He(A)&&si(A)})).map(ai.parse)}},yi={name:"background-origin",initialValue:"border-box",prefix:!1,type:en.LIST,parse:function(A){return A.map((function(A){if(Fe(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ni={name:"background-position",initialValue:"0% 0%",type:en.LIST,prefix:!1,parse:function(A){return xe(A).map((function(A){return A.filter(Ie)})).map(Ke)}},Hi=ri||(ri={}),xi=(Hi[Hi["REPEAT"]=0]="REPEAT",Hi[Hi["NO_REPEAT"]=1]="NO_REPEAT",Hi[Hi["REPEAT_X"]=2]="REPEAT_X",Hi[Hi["REPEAT_Y"]=3]="REPEAT_Y",{name:"background-repeat",initialValue:"repeat",prefix:!1,type:en.LIST,parse:function(A){return xe(A).map((function(A){return A.filter(Fe).map((function(A){return A.value})).join(" ")})).map(Oi)}}),Oi=function(A){switch(A){case"no-repeat":return ri.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return ri.REPEAT_X;case"repeat-y":case"no-repeat repeat":return ri.REPEAT_Y;case"repeat":default:return ri.REPEAT}},Si=ci||(ci={}),Ii=(Si["AUTO"]="auto",Si["CONTAIN"]="contain",Si["COVER"]="cover",{name:"background-size",initialValue:"0",prefix:!1,type:en.LIST,parse:function(A){return xe(A).map((function(A){return A.filter(Ki)}))}}),Ki=function(A){return Fe(A)||Ie(A)},Ti=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:en.TYPE_VALUE,format:"color"}},Di=Ti("top"),Ri=Ti("right"),Li=Ti("bottom"),ki=Ti("left"),Mi=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:en.LIST,parse:function(A){return Ke(A.filter(Ie))}}},Pi=Mi("top-left"),ji=Mi("top-right"),Vi=Mi("bottom-right"),zi=Mi("bottom-left"),Ji=li||(li={}),Xi=(Ji[Ji["NONE"]=0]="NONE",Ji[Ji["SOLID"]=1]="SOLID",function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"none":return li.NONE}return li.SOLID}}}),Gi=Xi("top"),$i=Xi("right"),Wi=Xi("bottom"),Yi=Xi("left"),qi=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:en.VALUE,prefix:!1,parse:function(A){return Ue(A)?A.number:0}}},Zi=qi("top"),Ao=qi("right"),to=qi("bottom"),eo=qi("left"),no={name:"color",initialValue:"transparent",prefix:!1,type:en.TYPE_VALUE,format:"color"},io={name:"display",initialValue:"inline-block",prefix:!1,type:en.LIST,parse:function(A){return A.filter(Fe).reduce((function(A,t){return A|oo(t.value)}),0)}},oo=function(A){switch(A){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ao=ui||(ui={}),so=(ao[ao["NONE"]=0]="NONE",ao[ao["LEFT"]=1]="LEFT",ao[ao["RIGHT"]=2]="RIGHT",ao[ao["INLINE_START"]=3]="INLINE_START",ao[ao["INLINE_END"]=4]="INLINE_END",{name:"float",initialValue:"none",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"left":return ui.LEFT;case"right":return ui.RIGHT;case"inline-start":return ui.INLINE_START;case"inline-end":return ui.INLINE_END}return ui.NONE}}),ro={name:"letter-spacing",initialValue:"0",prefix:!1,type:en.VALUE,parse:function(A){return A.type===g.IDENT_TOKEN&&"normal"===A.value?0:A.type===g.NUMBER_TOKEN||A.type===g.DIMENSION_TOKEN?A.number:0}},co=fi||(fi={}),lo=(co["NORMAL"]="normal",co["STRICT"]="strict",{name:"line-break",initialValue:"normal",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"strict":return fi.STRICT;case"normal":default:return fi.NORMAL}}}),uo={name:"line-height",initialValue:"normal",prefix:!1,type:en.TOKEN_VALUE},fo=function(A,t){return Fe(A)&&"normal"===A.value?1.2*t:A.type===g.NUMBER_TOKEN?t*A.number:Ie(A)?ke(A,t):t},go={name:"list-style-image",initialValue:"none",type:en.VALUE,prefix:!1,parse:function(A){return A.type===g.IDENT_TOKEN&&"none"===A.value?null:ai.parse(A)}},Bo=gi||(gi={}),mo=(Bo[Bo["INSIDE"]=0]="INSIDE",Bo[Bo["OUTSIDE"]=1]="OUTSIDE",{name:"list-style-position",initialValue:"outside",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"inside":return gi.INSIDE;case"outside":default:return gi.OUTSIDE}}}),ho=di||(di={}),Co=(ho[ho["NONE"]=-1]="NONE",ho[ho["DISC"]=0]="DISC",ho[ho["CIRCLE"]=1]="CIRCLE",ho[ho["SQUARE"]=2]="SQUARE",ho[ho["DECIMAL"]=3]="DECIMAL",ho[ho["CJK_DECIMAL"]=4]="CJK_DECIMAL",ho[ho["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",ho[ho["LOWER_ROMAN"]=6]="LOWER_ROMAN",ho[ho["UPPER_ROMAN"]=7]="UPPER_ROMAN",ho[ho["LOWER_GREEK"]=8]="LOWER_GREEK",ho[ho["LOWER_ALPHA"]=9]="LOWER_ALPHA",ho[ho["UPPER_ALPHA"]=10]="UPPER_ALPHA",ho[ho["ARABIC_INDIC"]=11]="ARABIC_INDIC",ho[ho["ARMENIAN"]=12]="ARMENIAN",ho[ho["BENGALI"]=13]="BENGALI",ho[ho["CAMBODIAN"]=14]="CAMBODIAN",ho[ho["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",ho[ho["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",ho[ho["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",ho[ho["DEVANAGARI"]=18]="DEVANAGARI",ho[ho["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",ho[ho["GEORGIAN"]=20]="GEORGIAN",ho[ho["GUJARATI"]=21]="GUJARATI",ho[ho["GURMUKHI"]=22]="GURMUKHI",ho[ho["HEBREW"]=22]="HEBREW",ho[ho["HIRAGANA"]=23]="HIRAGANA",ho[ho["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",ho[ho["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",ho[ho["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",ho[ho["KANNADA"]=27]="KANNADA",ho[ho["KATAKANA"]=28]="KATAKANA",ho[ho["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",ho[ho["KHMER"]=30]="KHMER",ho[ho["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",ho[ho["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",ho[ho["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",ho[ho["LAO"]=34]="LAO",ho[ho["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",ho[ho["MALAYALAM"]=36]="MALAYALAM",ho[ho["MONGOLIAN"]=37]="MONGOLIAN",ho[ho["MYANMAR"]=38]="MYANMAR",ho[ho["ORIYA"]=39]="ORIYA",ho[ho["PERSIAN"]=40]="PERSIAN",ho[ho["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",ho[ho["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",ho[ho["TAMIL"]=43]="TAMIL",ho[ho["TELUGU"]=44]="TELUGU",ho[ho["THAI"]=45]="THAI",ho[ho["TIBETAN"]=46]="TIBETAN",ho[ho["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",ho[ho["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",ho[ho["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",ho[ho["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",ho[ho["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED",{name:"list-style-type",initialValue:"none",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"disc":return di.DISC;case"circle":return di.CIRCLE;case"square":return di.SQUARE;case"decimal":return di.DECIMAL;case"cjk-decimal":return di.CJK_DECIMAL;case"decimal-leading-zero":return di.DECIMAL_LEADING_ZERO;case"lower-roman":return di.LOWER_ROMAN;case"upper-roman":return di.UPPER_ROMAN;case"lower-greek":return di.LOWER_GREEK;case"lower-alpha":return di.LOWER_ALPHA;case"upper-alpha":return di.UPPER_ALPHA;case"arabic-indic":return di.ARABIC_INDIC;case"armenian":return di.ARMENIAN;case"bengali":return di.BENGALI;case"cambodian":return di.CAMBODIAN;case"cjk-earthly-branch":return di.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return di.CJK_HEAVENLY_STEM;case"cjk-ideographic":return di.CJK_IDEOGRAPHIC;case"devanagari":return di.DEVANAGARI;case"ethiopic-numeric":return di.ETHIOPIC_NUMERIC;case"georgian":return di.GEORGIAN;case"gujarati":return di.GUJARATI;case"gurmukhi":return di.GURMUKHI;case"hebrew":return di.HEBREW;case"hiragana":return di.HIRAGANA;case"hiragana-iroha":return di.HIRAGANA_IROHA;case"japanese-formal":return di.JAPANESE_FORMAL;case"japanese-informal":return di.JAPANESE_INFORMAL;case"kannada":return di.KANNADA;case"katakana":return di.KATAKANA;case"katakana-iroha":return di.KATAKANA_IROHA;case"khmer":return di.KHMER;case"korean-hangul-formal":return di.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return di.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return di.KOREAN_HANJA_INFORMAL;case"lao":return di.LAO;case"lower-armenian":return di.LOWER_ARMENIAN;case"malayalam":return di.MALAYALAM;case"mongolian":return di.MONGOLIAN;case"myanmar":return di.MYANMAR;case"oriya":return di.ORIYA;case"persian":return di.PERSIAN;case"simp-chinese-formal":return di.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return di.SIMP_CHINESE_INFORMAL;case"tamil":return di.TAMIL;case"telugu":return di.TELUGU;case"thai":return di.THAI;case"tibetan":return di.TIBETAN;case"trad-chinese-formal":return di.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return di.TRAD_CHINESE_INFORMAL;case"upper-armenian":return di.UPPER_ARMENIAN;case"disclosure-open":return di.DISCLOSURE_OPEN;case"disclosure-closed":return di.DISCLOSURE_CLOSED;case"none":default:return di.NONE}}}),po=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:en.TOKEN_VALUE}},wo=po("top"),bo=po("right"),Qo=po("bottom"),vo=po("left"),Uo=Bi||(Bi={}),Eo=(Uo[Uo["VISIBLE"]=0]="VISIBLE",Uo[Uo["HIDDEN"]=1]="HIDDEN",Uo[Uo["SCROLL"]=2]="SCROLL",Uo[Uo["AUTO"]=3]="AUTO",{name:"overflow",initialValue:"visible",prefix:!1,type:en.LIST,parse:function(A){return A.filter(Fe).map((function(A){switch(A.value){case"hidden":return Bi.HIDDEN;case"scroll":return Bi.SCROLL;case"auto":return Bi.AUTO;case"visible":default:return Bi.VISIBLE}}))}}),Fo=mi||(mi={}),_o=(Fo["NORMAL"]="normal",Fo["BREAK_WORD"]="break-word",{name:"overflow-wrap",initialValue:"normal",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return mi.BREAK_WORD;case"normal":default:return mi.NORMAL}}}),yo=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:en.TYPE_VALUE,format:"length-percentage"}},No=yo("top"),Ho=yo("right"),xo=yo("bottom"),Oo=yo("left"),So=hi||(hi={}),Io=(So[So["LEFT"]=0]="LEFT",So[So["CENTER"]=1]="CENTER",So[So["RIGHT"]=2]="RIGHT",{name:"text-align",initialValue:"left",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"right":return hi.RIGHT;case"center":case"justify":return hi.CENTER;case"left":default:return hi.LEFT}}}),Ko=Ci||(Ci={}),To=(Ko[Ko["STATIC"]=0]="STATIC",Ko[Ko["RELATIVE"]=1]="RELATIVE",Ko[Ko["ABSOLUTE"]=2]="ABSOLUTE",Ko[Ko["FIXED"]=3]="FIXED",Ko[Ko["STICKY"]=4]="STICKY",{name:"position",initialValue:"static",prefix:!1,type:en.IDENT_VALUE,parse:function(A){switch(A){case"relative":return Ci.RELATIVE;case"absolute":return Ci.ABSOLUTE;case"fixed":return Ci.FIXED;case"sticky":return Ci.STICKY}return Ci.STATIC}}),Do={name:"text-shadow",initialValue:"none",type:en.LIST,prefix:!1,parse:function(A){return 1===A.length&&ye(A[0],"none")?[]:xe(A).map((function(A){for(var t={color:ln.TRANSPARENT,offsetX:Te,offsetY:Te,blur:Te},e=0,n=0;n1?1:0],this.overflowWrap=ma(_o,A.overflowWrap),this.paddingTop=ma(No,A.paddingTop),this.paddingRight=ma(Ho,A.paddingRight),this.paddingBottom=ma(xo,A.paddingBottom),this.paddingLeft=ma(Oo,A.paddingLeft),this.position=ma(To,A.position),this.textAlign=ma(Io,A.textAlign),this.textDecorationColor=ma(Yo,A.textDecorationColor||A.color),this.textDecorationLine=ma(qo,A.textDecorationLine),this.textShadow=ma(Do,A.textShadow),this.textTransform=ma(Lo,A.textTransform),this.transform=ma(ko,A.transform),this.transformOrigin=ma(Vo,A.transformOrigin),this.visibility=ma(Jo,A.visibility),this.wordBreak=ma(Go,A.wordBreak),this.zIndex=ma($o,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===wi.VISIBLE},A.prototype.isTransparent=function(){return We(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==Ci.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==ui.NONE},A.prototype.isInlineLevel=function(){return aa(this.display,4)||aa(this.display,33554432)||aa(this.display,268435456)||aa(this.display,536870912)||aa(this.display,67108864)||aa(this.display,134217728)},A}(),da=function(){function A(A){this.content=ma(sa,A.content),this.quotes=ma(la,A.quotes)}return A}(),Ba=function(){function A(A){this.counterIncrement=ma(ra,A.counterIncrement),this.counterReset=ma(ca,A.counterReset)}return A}(),ma=function(A,t){var e=new Qe,n=null!==t&&"undefined"!==typeof t?t.toString():A.initialValue;e.write(n);var i=new ve(e.read());switch(A.type){case en.IDENT_VALUE:var o=i.parseComponentValue();return A.parse(Fe(o)?o.value:A.initialValue);case en.VALUE:return A.parse(i.parseComponentValue());case en.LIST:return A.parse(i.parseComponentValues());case en.TOKEN_VALUE:return i.parseComponentValue();case en.TYPE_VALUE:switch(A.format){case"angle":return ze.parse(i.parseComponentValue());case"color":return $e.parse(i.parseComponentValue());case"image":return ai.parse(i.parseComponentValue());case"length":var a=i.parseComponentValue();return Se(a)?a:Te;case"length-percentage":var s=i.parseComponentValue();return Ie(s)?s:Te}}throw new Error("Attempting to parse unsupported css format type "+A.format)},ha=function(){function A(A){this.styles=new ga(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&As(A)&&(A.style.transform="none"),this.bounds=a(A),this.flags=0}return A}(),Ca=function(){function A(A,t){this.text=A,this.bounds=t}return A}(),pa=function(A,t,e){var n=Qa(A,t),i=[],o=0;return n.forEach((function(A){if(t.textDecorationLine.length||A.trim().length>0)if(On.SUPPORT_RANGE_BOUNDS)i.push(new Ca(A,ba(e,o,A.length)));else{var n=e.splitText(A.length);i.push(new Ca(A,wa(e))),e=n}else On.SUPPORT_RANGE_BOUNDS||(e=e.splitText(A.length));o+=A.length})),i},wa=function(A){var t=A.ownerDocument;if(t){var e=t.createElement("html2canvaswrapper");e.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(e,A);var i=a(e);return e.firstChild&&n.replaceChild(e.firstChild,e),i}}return new o(0,0,0,0)},ba=function(A,t,e){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(A,t),i.setEnd(A,t+e),o.fromClientRect(i.getBoundingClientRect())},Qa=function(A,t){return 0!==t.letterSpacing?r(A).map((function(A){return c(A)})):va(A,t)},va=function(A,t){var e,n=KA(A,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===mi.BREAK_WORD?"break-word":t.wordBreak}),i=[];while(!(e=n.next()).done)e.value&&i.push(e.value.slice());return i},Ua=function(){function A(A,t){this.text=Ea(A.data,t.textTransform),this.textBounds=pa(this.text,t,A)}return A}(),Ea=function(A,t){switch(t){case pi.LOWERCASE:return A.toLowerCase();case pi.CAPITALIZE:return A.replace(Fa,_a);case pi.UPPERCASE:return A.toUpperCase();default:return A}},Fa=/(^|\s|:|-|\(|\))([a-z])/g,_a=function(A,t,e){return A.length>0?t+e.toUpperCase():A},ya=function(A){function e(t){var e=A.call(this,t)||this;return e.src=t.currentSrc||t.src,e.intrinsicWidth=t.naturalWidth,e.intrinsicHeight=t.naturalHeight,In.getInstance().addImage(e.src),e}return t(e,A),e}(ha),Na=function(A){function e(t){var e=A.call(this,t)||this;return e.canvas=t,e.intrinsicWidth=t.width,e.intrinsicHeight=t.height,e}return t(e,A),e}(ha),Ha=function(A){function e(t){var e=A.call(this,t)||this,n=new XMLSerializer;return e.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),e.intrinsicWidth=t.width.baseVal.value,e.intrinsicHeight=t.height.baseVal.value,In.getInstance().addImage(e.svg),e}return t(e,A),e}(ha),xa=function(A){function e(t){var e=A.call(this,t)||this;return e.value=t.value,e}return t(e,A),e}(ha),Oa=function(A){function e(t){var e=A.call(this,t)||this;return e.start=t.start,e.reversed="boolean"===typeof t.reversed&&!0===t.reversed,e}return t(e,A),e}(ha),Sa=[{type:g.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Ia=[{type:g.PERCENTAGE_TOKEN,flags:0,number:50}],Ka=function(A){return A.width>A.height?new o(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)t.textNodes.push(new Ua(n,t.styles));else if(Za(n)){var o=Ga(n);o.styles.isVisible()&&(Wa(n,o,e)?o.flags|=4:Ya(o.styles)&&(o.flags|=2),-1!==Ja.indexOf(n.tagName)&&(o.flags|=8),t.elements.push(o),fs(n)||os(n)||gs(n)||Xa(n,o,e))}},Ga=function(A){return rs(A)?new ya(A):ss(A)?new Na(A):os(A)?new Ha(A):ts(A)?new xa(A):es(A)?new Oa(A):ns(A)?new Ma(A):gs(A)?new Pa(A):fs(A)?new ja(A):cs(A)?new za(A):new ha(A)},$a=function(A){var t=Ga(A);return t.flags|=4,Xa(A,t,t),t},Wa=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||as(A)&&e.styles.isTransparent()},Ya=function(A){return A.isPositioned()||A.isFloating()},qa=function(A){return A.nodeType===Node.TEXT_NODE},Za=function(A){return A.nodeType===Node.ELEMENT_NODE},As=function(A){return"undefined"!==typeof A.style},ts=function(A){return"LI"===A.tagName},es=function(A){return"OL"===A.tagName},ns=function(A){return"INPUT"===A.tagName},is=function(A){return"HTML"===A.tagName},os=function(A){return"svg"===A.tagName},as=function(A){return"BODY"===A.tagName},ss=function(A){return"CANVAS"===A.tagName},rs=function(A){return"IMG"===A.tagName},cs=function(A){return"IFRAME"===A.tagName},ls=function(A){return"STYLE"===A.tagName},us=function(A){return"SCRIPT"===A.tagName},fs=function(A){return"TEXTAREA"===A.tagName},gs=function(A){return"SELECT"===A.tagName},ds=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},A.prototype.pop=function(A){var t=this;A.forEach((function(A){return t.counters[A].pop()}))},A.prototype.parse=function(A){var t=this,e=A.counterIncrement,n=A.counterReset,i=!0;null!==e&&e.forEach((function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(i=!1,e[Math.max(0,e.length-1)]+=A.increment)}));var o=[];return i&&n.forEach((function(A){var e=t.counters[A.counter];o.push(A.counter),e||(e=t.counters[A.counter]=[]),e.push(A.reset)})),o},A}(),Bs={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ms={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},hs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Cs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ps=function(A,t,e,n,i,o){return Ae?Os(A,i,o.length>0):n.integers.reduce((function(t,e,i){while(A>=e)A-=e,t+=n.values[i];return t}),"")+o},ws=function(A,t,e,n){var i="";do{e||A--,i=n(A)+i,A/=t}while(A*t>=t);return i},bs=function(A,t,e,n,i){var o=e-t+1;return(A<0?"-":"")+(ws(Math.abs(A),o,n,(function(A){return c(Math.floor(A%o)+t)}))+i)},Qs=function(A,t,e){void 0===e&&(e=". ");var n=t.length;return ws(Math.abs(A),n,!1,(function(A){return t[Math.floor(A%n)]}))+e},vs=1,Us=2,Es=4,Fs=8,_s=function(A,t,e,n,i,o){if(A<-9999||A>9999)return Os(A,di.CJK_DECIMAL,i.length>0);var a=Math.abs(A),s=i;if(0===a)return t[0]+s;for(var r=0;a>0&&r<=4;r++){var c=a%10;0===c&&aa(o,vs)&&""!==s?s=t[c]+s:c>1||1===c&&0===r||1===c&&1===r&&aa(o,Us)||1===c&&1===r&&aa(o,Es)&&A>100||1===c&&r>1&&aa(o,Fs)?s=t[c]+(r>0?e[r-1]:"")+s:1===c&&r>0&&(s=e[r-1]+s),a=Math.floor(a/10)}return(A<0?n:"")+s},ys="十百千萬",Ns="拾佰仟萬",Hs="マイナス",xs="마이너스",Os=function(A,t,e){var n=e?". ":"",i=e?"、":"",o=e?", ":"",a=e?" ":"";switch(t){case di.DISC:return"•"+a;case di.CIRCLE:return"◦"+a;case di.SQUARE:return"◾"+a;case di.DECIMAL_LEADING_ZERO:var s=bs(A,48,57,!0,n);return s.length<4?"0"+s:s;case di.CJK_DECIMAL:return Qs(A,"〇一二三四五六七八九",i);case di.LOWER_ROMAN:return ps(A,1,3999,Bs,di.DECIMAL,n).toLowerCase();case di.UPPER_ROMAN:return ps(A,1,3999,Bs,di.DECIMAL,n);case di.LOWER_GREEK:return bs(A,945,969,!1,n);case di.LOWER_ALPHA:return bs(A,97,122,!1,n);case di.UPPER_ALPHA:return bs(A,65,90,!1,n);case di.ARABIC_INDIC:return bs(A,1632,1641,!0,n);case di.ARMENIAN:case di.UPPER_ARMENIAN:return ps(A,1,9999,ms,di.DECIMAL,n);case di.LOWER_ARMENIAN:return ps(A,1,9999,ms,di.DECIMAL,n).toLowerCase();case di.BENGALI:return bs(A,2534,2543,!0,n);case di.CAMBODIAN:case di.KHMER:return bs(A,6112,6121,!0,n);case di.CJK_EARTHLY_BRANCH:return Qs(A,"子丑寅卯辰巳午未申酉戌亥",i);case di.CJK_HEAVENLY_STEM:return Qs(A,"甲乙丙丁戊己庚辛壬癸",i);case di.CJK_IDEOGRAPHIC:case di.TRAD_CHINESE_INFORMAL:return _s(A,"零一二三四五六七八九",ys,"負",i,Us|Es|Fs);case di.TRAD_CHINESE_FORMAL:return _s(A,"零壹貳參肆伍陸柒捌玖",Ns,"負",i,vs|Us|Es|Fs);case di.SIMP_CHINESE_INFORMAL:return _s(A,"零一二三四五六七八九",ys,"负",i,Us|Es|Fs);case di.SIMP_CHINESE_FORMAL:return _s(A,"零壹贰叁肆伍陆柒捌玖",Ns,"负",i,vs|Us|Es|Fs);case di.JAPANESE_INFORMAL:return _s(A,"〇一二三四五六七八九","十百千万",Hs,i,0);case di.JAPANESE_FORMAL:return _s(A,"零壱弐参四伍六七八九","拾百千万",Hs,i,vs|Us|Es);case di.KOREAN_HANGUL_FORMAL:return _s(A,"영일이삼사오육칠팔구","십백천만",xs,o,vs|Us|Es);case di.KOREAN_HANJA_INFORMAL:return _s(A,"零一二三四五六七八九","十百千萬",xs,o,0);case di.KOREAN_HANJA_FORMAL:return _s(A,"零壹貳參四五六七八九","拾百千",xs,o,vs|Us|Es);case di.DEVANAGARI:return bs(A,2406,2415,!0,n);case di.GEORGIAN:return ps(A,1,19999,Cs,di.DECIMAL,n);case di.GUJARATI:return bs(A,2790,2799,!0,n);case di.GURMUKHI:return bs(A,2662,2671,!0,n);case di.HEBREW:return ps(A,1,10999,hs,di.DECIMAL,n);case di.HIRAGANA:return Qs(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case di.HIRAGANA_IROHA:return Qs(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case di.KANNADA:return bs(A,3302,3311,!0,n);case di.KATAKANA:return Qs(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case di.KATAKANA_IROHA:return Qs(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case di.LAO:return bs(A,3792,3801,!0,n);case di.MONGOLIAN:return bs(A,6160,6169,!0,n);case di.MYANMAR:return bs(A,4160,4169,!0,n);case di.ORIYA:return bs(A,2918,2927,!0,n);case di.PERSIAN:return bs(A,1776,1785,!0,n);case di.TAMIL:return bs(A,3046,3055,!0,n);case di.TELUGU:return bs(A,3174,3183,!0,n);case di.THAI:return bs(A,3664,3673,!0,n);case di.TIBETAN:return bs(A,3872,3881,!0,n);case di.DECIMAL:default:return bs(A,48,57,!0,n)}},Ss="data-html2canvas-ignore",Is=function(){function A(A,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=A,this.counters=new ds,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,t){var e=this,o=Ts(A,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,r=o.contentWindow,c=r.document,l=Ds(o).then((function(){return n(e,void 0,void 0,(function(){var A;return i(this,(function(e){switch(e.label){case 0:return this.scrolledElements.forEach(Ms),r&&(r.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||r.scrollY===t.top&&r.scrollX===t.left||(c.documentElement.style.top=-t.top+"px",c.documentElement.style.left=-t.left+"px",c.documentElement.style.position="absolute")),A=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:e.sent(),e.label=2;case 2:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(c)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(Ls(document.doctype)+""),ks(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},A.prototype.createElementClone=function(A){return ss(A)?this.createCanvasClone(A):ls(A)?this.createStyleClone(A):A.cloneNode(!1)},A.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var e=[].slice.call(t.cssRules,0).reduce((function(A,t){return t&&"string"===typeof t.cssText?A+t.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=e,n}}catch(A){if(Sn.getInstance(this.options.id).error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(A){Sn.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var e=A.cloneNode(!1);try{e.width=A.width,e.height=A.height;var n=A.getContext("2d"),i=e.getContext("2d");return i&&(n?i.putImageData(n.getImageData(0,0,A.width,A.height),0,0):i.drawImage(A,0,0)),e}catch(A){}return e},A.prototype.cloneNode=function(A){if(qa(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(As(A)&&t){var e=this.createElementClone(A),n=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&(this.clonedReferenceElement=e),as(e)&&Xs(e);for(var a=this.counters.parse(new Ba(n)),s=this.resolvePseudoContent(A,e,i,vi.BEFORE),r=A.firstChild;r;r=r.nextSibling)Za(r)&&(us(r)||r.hasAttribute(Ss)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(r))||this.options.copyStyles&&Za(r)&&ls(r)||e.appendChild(this.cloneNode(r));s&&e.insertBefore(s,e.firstChild);var c=this.resolvePseudoContent(A,e,o,vi.AFTER);return c&&e.appendChild(c),this.counters.pop(a),n&&this.options.copyStyles&&!cs(A)&&Rs(n,e),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([e,A.scrollLeft,A.scrollTop]),(fs(A)||gs(A))&&(fs(e)||gs(e))&&(e.value=A.value),e}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,t,e,n){var i=this;if(e){var o=e.content,a=t.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==e.display){this.counters.parse(new Ba(e));var s=new da(e),r=a.createElement("html2canvaspseudoelement");return Rs(e,r),s.content.forEach((function(t){if(t.type===g.STRING_TOKEN)r.appendChild(a.createTextNode(t.value));else if(t.type===g.URL_TOKEN){var e=a.createElement("img");e.src=t.value,e.style.opacity="1",r.appendChild(e)}else if(t.type===g.FUNCTION){if("attr"===t.name){var n=t.values.filter(Fe);n.length&&r.appendChild(a.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(He),c=o[0],l=o[1];if(c&&Fe(c)){var u=i.counters.getCounterValue(c.value),f=l&&Fe(l)?Co.parse(l.value):di.DECIMAL;r.appendChild(a.createTextNode(Os(u,f,!1)))}}else if("counters"===t.name){var d=t.values.filter(He),B=(c=d[0],d[1]);l=d[2];if(c&&Fe(c)){var m=i.counters.getCounterValues(c.value),h=l&&Fe(l)?Co.parse(l.value):di.DECIMAL,C=B&&B.type===g.STRING_TOKEN?B.value:"",p=m.map((function(A){return Os(A,h,!1)})).join(C);r.appendChild(a.createTextNode(p))}}}else if(t.type===g.IDENT_TOKEN)switch(t.value){case"open-quote":r.appendChild(a.createTextNode(ua(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":r.appendChild(a.createTextNode(ua(s.quotes,--i.quoteDepth,!1)));break;default:r.appendChild(a.createTextNode(t.value))}})),r.className=Vs+" "+zs,t.className+=n===vi.BEFORE?" "+Vs:" "+zs,r}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}(),Ks=vi||(vi={}),Ts=(Ks[Ks["BEFORE"]=0]="BEFORE",Ks[Ks["AFTER"]=1]="AFTER",function(A,t){var e=A.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(Ss,"true"),A.body.appendChild(e),e}),Ds=function(A){return new Promise((function(t,e){var n=A.contentWindow;if(!n)return e("No window assigned for iframe");var i=n.document;n.onload=A.onload=i.onreadystatechange=function(){n.onload=A.onload=i.onreadystatechange=null;var e=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(e),t(A))}),50)}}))},Rs=function(A,t){for(var e=A.length-1;e>=0;e--){var n=A.item(e);"content"!==n&&t.style.setProperty(n,A.getPropertyValue(n))}return t},Ls=function(A){var t="";return A&&(t+=""),t},ks=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},Ms=function(A){var t=A[0],e=A[1],n=A[2];t.scrollLeft=e,t.scrollTop=n},Ps=":before",js=":after",Vs="___html2canvas___pseudoelement_before",zs="___html2canvas___pseudoelement_after",Js='{\n content: "" !important;\n display: none !important;\n}',Xs=function(A){Gs(A,"."+Vs+Ps+Js+"\n ."+zs+js+Js)},Gs=function(A,t){var e=A.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,A.appendChild(n)}},$s=Ui||(Ui={}),Ws=($s[$s["VECTOR"]=0]="VECTOR",$s[$s["BEZIER_CURVE"]=1]="BEZIER_CURVE",function(A,t){return A.length===t.length&&A.some((function(A,e){return A===t[e]}))}),Ys=function(A,t,e,n,i){return A.map((function(A,o){switch(o){case 0:return A.add(t,e);case 1:return A.add(t+n,e);case 2:return A.add(t+n,e+i);case 3:return A.add(t,e+i)}return A}))},qs=function(){function A(A,t){this.type=Ui.VECTOR,this.x=A,this.y=t}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A}(),Zs=function(A,t,e){return new qs(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},Ar=function(){function A(A,t,e,n){this.type=Ui.BEZIER_CURVE,this.start=A,this.startControl=t,this.endControl=e,this.end=n}return A.prototype.subdivide=function(t,e){var n=Zs(this.start,this.startControl,t),i=Zs(this.startControl,this.endControl,t),o=Zs(this.endControl,this.end,t),a=Zs(n,i,t),s=Zs(i,o,t),r=Zs(a,s,t);return e?new A(this.start,n,a,r):new A(r,s,o,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),tr=function(A){return A.type===Ui.BEZIER_CURVE},er=function(){function A(A){var t=A.styles,e=A.bounds,n=Le(t.borderTopLeftRadius,e.width,e.height),i=n[0],o=n[1],a=Le(t.borderTopRightRadius,e.width,e.height),s=a[0],r=a[1],c=Le(t.borderBottomRightRadius,e.width,e.height),l=c[0],u=c[1],f=Le(t.borderBottomLeftRadius,e.width,e.height),g=f[0],d=f[1],B=[];B.push((i+s)/e.width),B.push((g+l)/e.width),B.push((o+d)/e.height),B.push((r+u)/e.height);var m=Math.max.apply(Math,B);m>1&&(i/=m,o/=m,s/=m,r/=m,l/=m,u/=m,g/=m,d/=m);var h=e.width-s,C=e.height-u,p=e.width-l,w=e.height-d,b=t.borderTopWidth,Q=t.borderRightWidth,v=t.borderBottomWidth,U=t.borderLeftWidth,E=ke(t.paddingTop,A.bounds.width),F=ke(t.paddingRight,A.bounds.width),_=ke(t.paddingBottom,A.bounds.width),y=ke(t.paddingLeft,A.bounds.width);this.topLeftBorderBox=i>0||o>0?ir(e.left,e.top,i,o,Ei.TOP_LEFT):new qs(e.left,e.top),this.topRightBorderBox=s>0||r>0?ir(e.left+h,e.top,s,r,Ei.TOP_RIGHT):new qs(e.left+e.width,e.top),this.bottomRightBorderBox=l>0||u>0?ir(e.left+p,e.top+C,l,u,Ei.BOTTOM_RIGHT):new qs(e.left+e.width,e.top+e.height),this.bottomLeftBorderBox=g>0||d>0?ir(e.left,e.top+w,g,d,Ei.BOTTOM_LEFT):new qs(e.left,e.top+e.height),this.topLeftPaddingBox=i>0||o>0?ir(e.left+U,e.top+b,Math.max(0,i-U),Math.max(0,o-b),Ei.TOP_LEFT):new qs(e.left+U,e.top+b),this.topRightPaddingBox=s>0||r>0?ir(e.left+Math.min(h,e.width+U),e.top+b,h>e.width+U?0:s-U,r-b,Ei.TOP_RIGHT):new qs(e.left+e.width-Q,e.top+b),this.bottomRightPaddingBox=l>0||u>0?ir(e.left+Math.min(p,e.width-U),e.top+Math.min(C,e.height+b),Math.max(0,l-Q),u-v,Ei.BOTTOM_RIGHT):new qs(e.left+e.width-Q,e.top+e.height-v),this.bottomLeftPaddingBox=g>0||d>0?ir(e.left+U,e.top+w,Math.max(0,g-U),d-v,Ei.BOTTOM_LEFT):new qs(e.left+U,e.top+e.height-v),this.topLeftContentBox=i>0||o>0?ir(e.left+U+y,e.top+b+E,Math.max(0,i-(U+y)),Math.max(0,o-(b+E)),Ei.TOP_LEFT):new qs(e.left+U+y,e.top+b+E),this.topRightContentBox=s>0||r>0?ir(e.left+Math.min(h,e.width+U+y),e.top+b+E,h>e.width+U+y?0:s-U+y,r-(b+E),Ei.TOP_RIGHT):new qs(e.left+e.width-(Q+F),e.top+b+E),this.bottomRightContentBox=l>0||u>0?ir(e.left+Math.min(p,e.width-(U+y)),e.top+Math.min(C,e.height+b+E),Math.max(0,l-(Q+F)),u-(v+_),Ei.BOTTOM_RIGHT):new qs(e.left+e.width-(Q+F),e.top+e.height-(v+_)),this.bottomLeftContentBox=g>0||d>0?ir(e.left+U+y,e.top+w,Math.max(0,g-(U+y)),d-(v+_),Ei.BOTTOM_LEFT):new qs(e.left+U+y,e.top+e.height-(v+_))}return A}(),nr=Ei||(Ei={}),ir=(nr[nr["TOP_LEFT"]=0]="TOP_LEFT",nr[nr["TOP_RIGHT"]=1]="TOP_RIGHT",nr[nr["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",nr[nr["BOTTOM_LEFT"]=3]="BOTTOM_LEFT",function(A,t,e,n,i){var o=(Math.sqrt(2)-1)/3*4,a=e*o,s=n*o,r=A+e,c=t+n;switch(i){case Ei.TOP_LEFT:return new Ar(new qs(A,c),new qs(A,c-s),new qs(r-a,t),new qs(r,t));case Ei.TOP_RIGHT:return new Ar(new qs(A,t),new qs(A+a,t),new qs(r,c-s),new qs(r,c));case Ei.BOTTOM_RIGHT:return new Ar(new qs(r,t),new qs(r,t+s),new qs(A+a,c),new qs(A,c));case Ei.BOTTOM_LEFT:default:return new Ar(new qs(r,c),new qs(r-a,c),new qs(A,t+s),new qs(A,t))}}),or=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},ar=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},sr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},rr=function(){function A(A,t,e){this.type=0,this.offsetX=A,this.offsetY=t,this.matrix=e,this.target=6}return A}(),cr=function(){function A(A,t){this.type=1,this.target=t,this.path=A}return A}(),lr=function(A){return 0===A.type},ur=function(A){return 1===A.type},fr=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),gr=function(){function A(A,t){if(this.container=A,this.effects=t.slice(0),this.curves=new er(A),null!==A.styles.transform){var e=A.bounds.left+A.styles.transformOrigin[0].number,n=A.bounds.top+A.styles.transformOrigin[1].number,i=A.styles.transform;this.effects.push(new rr(e,n,i))}if(A.styles.overflowX!==Bi.VISIBLE){var o=or(this.curves),a=sr(this.curves);Ws(o,a)?this.effects.push(new cr(o,6)):(this.effects.push(new cr(o,2)),this.effects.push(new cr(a,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==Bi.VISIBLE){var t=or(this.curves),e=sr(this.curves);Ws(t,e)||A.push(new cr(e,6))}return A},A}(),dr=function(A,t,e,n){A.container.elements.forEach((function(i){var o=aa(i.flags,4),a=aa(i.flags,2),s=new gr(i,A.getParentEffects());aa(i.styles.display,2048)&&n.push(s);var r=aa(i.flags,8)?[]:n;if(o||a){var c=o||i.styles.isPositioned()?e:t,l=new fr(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var f=0;c.negativeZIndex.some((function(A,t){return u>A.element.container.styles.zIndex.order?(f=t,!1):f>0})),c.negativeZIndex.splice(f,0,l)}else if(u>0){var g=0;c.positiveZIndex.some((function(A,t){return u>A.element.container.styles.zIndex.order?(g=t+1,!1):g>0})),c.positiveZIndex.splice(g,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else i.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);dr(s,l,o?l:e,r)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),dr(s,t,e,r);aa(i.flags,8)&&Br(i,r)}))},Br=function(A,t){for(var e=A instanceof Oa?A.start:1,n=A instanceof Oa&&A.reversed,i=0;i0&&A.intrinsicHeight>0){var n=wr(A),i=sr(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(e,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return n(this,void 0,void 0,(function(){var e,n,a,s,r,c,l,u,f,g,d,B,m,h,C;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.effects,4),e=t.container,n=t.curves,a=e.styles,s=0,r=e.textNodes,i.label=1;case 1:return s0&&U>0&&(C=n.ctx.createPattern(B,"repeat"),n.renderRepeat(w,C,F,_))):ni(e)&&(p=vr(A,t,[null,null,null]),w=p[0],b=p[1],Q=p[2],v=p[3],U=p[4],E=0===e.position.length?[De]:e.position,F=ke(E[0],v),_=ke(E[E.length-1],U),y=bn(e,F,_,v,U),N=y[0],H=y[1],N>0&&N>0&&(x=n.ctx.createRadialGradient(b+F,Q+_,0,b+F,Q+_,N),mn(e.stops,2*N).forEach((function(A){return x.addColorStop(A.stop,Ye(A.color))})),n.path(w),n.ctx.fillStyle=x,N!==H?(O=A.bounds.left+.5*A.bounds.width,S=A.bounds.top+.5*A.bounds.height,I=H/N,K=1/I,n.ctx.save(),n.ctx.translate(O,S),n.ctx.transform(1,0,0,I,0,0),n.ctx.translate(-O,-S),n.ctx.fillRect(b,K*(Q-S)+S,v,U*K),n.ctx.restore()):n.ctx.fill())),i.label=6;case 6:return t--,[2]}}))},n=this,o=0,a=A.styles.backgroundImage.slice(0).reverse(),r.label=1;case 1:return oA.moved.newIndex,this.mConfig.forEach((function(A,t){A.num=1e3*(new Date).getTime()+t})),A.moved.list=this.mConfig,this.rConfig=[];var t=A.moved.element,e=JSON.parse(JSON.stringify(t));this.rConfig.push(e),this.activeIndex=A.moved.newIndex,this.$store.commit("mobildConfig/SETCONFIGNAME",t.name),this.$store.commit("mobildConfig/defaultArraySort",A.moved)}A.added&&(e=A.added.element,t=1e3*(new Date).getTime(),e.num=t,this.activeConfigName=e.name,(t=JSON.parse(JSON.stringify(e))).id="id"+t.num,this.mConfig[A.added.newIndex]=t,this.rConfig=[],this.rConfig.push(t),this.mConfig.forEach((function(A,t){A.num=1e3*(new Date).getTime()+t})),A.added.list=this.mConfig,this.activeIndex=A.added.newIndex,this.$store.commit("mobildConfig/SETCONFIGNAME",e.name),this.$store.commit("mobildConfig/defaultArraySort",A.added))},cloneDog:function(A){return Object(n.a)({},A)},swapArray:function(A,t,e){return A[t]=A.splice(e,1,A[t])[0],A},movePage:function(A,t,e){if(e){if(0==t)return}else if(t==this.mConfig.length-1)return;if("search_box"==A.name||"nav_bar"==A.name)return this.$Message.warning("该组件禁止移动");if(e){if("search_box"==this.mConfig[t-1].name)return this.$Message.warning("搜索框必须为顶部");this.swapArray(this.mConfig,t-1,t)}else this.swapArray(this.mConfig,t,t+1);var n={},i=(this.rConfig=[],n.oldIndex=t,n.newIndex=e?t-1:t+1,this.mConfig.forEach((function(A,t){A.num=1e3*(new Date).getTime()+t})),JSON.parse(JSON.stringify(A)));this.rConfig.push(i),n.element=A,n.list=this.mConfig,this.activeIndex=e?t-1:t+1,this.$store.commit("mobildConfig/SETCONFIGNAME",A.name),this.$store.commit("mobildConfig/defaultArraySort",n)},addDomCon:function(A,t,e){if("search_box"==A.name){if(this.isSearch)return this.$Message.error("该组件只能添加一次");this.isSearch=!0}if("nav_bar"==A.name){if(this.isTab)return this.$Message.error("该组件只能添加一次");this.isTab=!0}var n={},i=1e3*(new Date).getTime();A.num="".concat(i),A.id="id".concat(i),this.activeConfigName=A.name,i=JSON.parse(JSON.stringify(A));"search_box"==A.name?(this.rConfig=[],this.mConfig.unshift(i),this.activeIndex=0,this.rConfig.push(i)):"nav_bar"==A.name?(this.rConfig=[],this.mConfig[0]&&"search_box"===this.mConfig[0].name?(this.mConfig.splice(1,0,i),this.activeIndex=1):(this.mConfig.splice(0,0,i),this.activeIndex=0),this.rConfig.push(i)):t?(this.rConfig=[],this.mConfig.push(i),this.activeIndex=this.mConfig.length-1,this.rConfig.push(i)):(this.mConfig.splice(e+1,0,i),this.activeIndex=e),this.mConfig.forEach((function(A,t){A.num=1e3*(new Date).getTime()+t})),n.element=A,n.list=this.mConfig,this.$store.commit("mobildConfig/SETCONFIGNAME",A.name),this.$store.commit("mobildConfig/defaultArraySort",n)},bindAddDom:function(A,t,e){var n=A;this.lConfig.forEach((function(t){A.name==t.name&&(n=t)})),this.addDomCon(n,t,e)},addDom:function(A,t){this.addDomCon(A,t)},bindconfig:function(A,t){this.rConfig=[];var e=JSON.parse(JSON.stringify(A));this.rConfig.push(e),this.activeIndex=t,this.$store.commit("mobildConfig/SETCONFIGNAME",A.name)},bindDelete:function(A,t){"search_box"==A.name&&(this.isSearch=!1),"nav_bar"==A.name&&(this.isTab=!1),this.mConfig.splice(t,1),this.rConfig.splice(0,1),this.mConfig.length!=t?this.rConfig.push(this.mConfig[t]):this.mConfig.length?(this.activeIndex=t-1,this.rConfig.push(this.mConfig[t-1])):this.showTitle(),this.$store.commit("mobildConfig/DELETEARRAY",A)},config:function(A){var t=this.propsObj;t.data=A,t.name=this.activeConfigName},addSort:function(A,t,e){return A[t]=A.splice(e,1,A[t])[0],A},arraySort:function(){var A=[],t={title:"基础组件",list:[],isOpen:!0},e={title:"营销组件",list:[],isOpen:!0},n={title:"工具组件",list:[],isOpen:!0};this.lConfig.map((function(A,i){0==A.type&&t.list.push(A),1==A.type&&e.list.push(A),2==A.type&&n.list.push(A)})),A.push(t,e,n),this.leftMenu=A},diySaveDate:function(A,t,e){var n=this;Object(i.t)(t?0:this.pageId,{type:this.pageType,value:A,title:this.titleTxt,name:e||this.nameTxt,is_show:this.showTxt?1:0,is_bg_color:this.colorTxt?1:0,color_picker:this.colorPickerTxt,bg_pic:this.picUrlTxt,bg_tab_val:this.tabValTxt,is_bg_pic:this.picTxt?1:0}).then((function(A){n.loading=!1,t||(n.pageId=A.data.id),n.saveName="",n.$Message.success(A.msg)})).catch((function(A){n.loading=!1,n.$Message.error(A.msg)}))},saveConfig:function(A,t){var e=this;if(0==this.mConfig.length)return this.$Message.error("暂未添加任何组件,保存失败!");this.loading=!0;var n,i=this.$store.state.mobildConfig.defaultArray;this.footActive||(n=1e3*(new Date).getTime(),i[n]=this.$store.state.mobildConfig.pageFooter,this.footActive=!0),this.$nextTick((function(){e.diySaveDate(i,A,t)}))},getDefaultConfig:function(){var A=this;Object(i.i)(this.pageId).then((function(t){t=t.data;var e={},n=[];A.$store.commit("mobildConfig/titleUpdata",t.info.title),A.$store.commit("mobildConfig/nameUpdata",t.info.name),A.$store.commit("mobildConfig/showUpdata",t.info.is_show),A.$store.commit("mobildConfig/colorUpdata",t.info.is_bg_color||0),A.$store.commit("mobildConfig/picUpdata",t.info.is_bg_pic||0),A.$store.commit("mobildConfig/pickerUpdata",t.info.color_picker||"#f5f5f5"),A.$store.commit("mobildConfig/radioUpdata",t.info.bg_tab_val||0),A.$store.commit("mobildConfig/picurlUpdata",t.info.bg_pic||""),t=A.objToArr(t.info.value);t.sort((function(A,t){return A.timestamp-t.timestamp})),t.map((function(t,i){"headerSerch"==t.name&&(A.isSearch=!0),"tabNav"==t.name&&(A.isTab=!0),"goodList"==t.name&&window.localStorage.setItem(t.timestamp,t.selectConfig.activeValue),t.id="id"+t.timestamp,A.lConfig.map((function(i,o){t.name==i.defaultName&&(i.num=t.timestamp,i.id="id"+t.timestamp,i=JSON.parse(JSON.stringify(i)),n.push(i),e[t.timestamp]=t,A.mConfig.push(i),A.$store.commit("mobildConfig/ADDARRAY",{num:t.timestamp,val:t}))}))})),t=t[t.length-1],"pageFoot"==t.name&&A.$store.commit("mobildConfig/footPageUpdata",t),A.showTitle()}))},categoryList:function(){var A=this;Object(i.a)((function(t){A.category=t.data}))},reast:function(){var A=this;0==this.pageId?this.$Message.error("新增页面,无法重置"):this.$Modal.confirm({title:"提示",content:"

重置会恢复到上次保存的数据,确定不保存当前操作吗?

",onOk:function(){A.mConfig=[],A.rConfig=[],A.activeIndex=-99,A.getDefaultConfig()},onCancel:function(){}})}},beforeDestroy:function(){this.$store.commit("mobildConfig/titleUpdata",""),this.$store.commit("mobildConfig/nameUpdata",""),this.$store.commit("mobildConfig/showUpdata",1),this.$store.commit("mobildConfig/colorUpdata",0),this.$store.commit("mobildConfig/picUpdata",0),this.$store.commit("mobildConfig/pickerUpdata","#f5f5f5"),this.$store.commit("mobildConfig/radioUpdata",0),this.$store.commit("mobildConfig/picurlUpdata",""),this.$store.commit("mobildConfig/SETEMPTY")},destroyed:function(){this.$store.commit("mobildConfig/titleUpdata",""),this.$store.commit("mobildConfig/nameUpdata",""),this.$store.commit("mobildConfig/showUpdata",1),this.$store.commit("mobildConfig/colorUpdata",0),this.$store.commit("mobildConfig/picUpdata",0),this.$store.commit("mobildConfig/pickerUpdata","#f5f5f5"),this.$store.commit("mobildConfig/radioUpdata",0),this.$store.commit("mobildConfig/picurlUpdata",""),this.$store.commit("mobildConfig/SETEMPTY")}},e("5db1"),B=Object(m.a)(C,(function(){var A=this,t=A.$createElement,n=A._self._c||t;return n("div",{staticClass:"diy-page"},[n("div",{staticClass:"i-layout-page-header header-title"},[n("div",{staticClass:"fl_header"},[n("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"},domProps:{textContent:A._s(A.$route.meta.title)}}),n("div",{staticClass:"rbtn"},[n("Button",{staticClass:"bnt ml20",attrs:{type:"info",loading:A.loading},on:{click:A.preview}},[A._v("预览")]),n("Button",{staticClass:"bnt ml20",attrs:{type:"primary",loading:A.loading},on:{click:function(t){return A.saveConfig(0)}}},[A._v("保存")]),n("Button",{staticClass:"ml20",attrs:{type:"error",loading:A.loading},on:{click:A.closeWindow}},[A._v("关闭")])],1)])]),n("Card",{staticClass:"ivu-mt",staticStyle:{margin:"0 10px"},attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"diy-wrapper"},[n("div",{staticClass:"left"},[n("div",{staticClass:"title-bar"},A._l(A.tabList,(function(t,e){return n("div",{key:e,staticClass:"title-item",class:{on:A.tabCur==e},on:{click:function(t){return A.bindTab(e)}}},[A._v("\n "+A._s(t.title)+"\n ")])})),0),0==A.tabCur?n("div",{staticClass:"wrapper"},A._l(A.leftMenu,(function(t,e){return n("div",{key:e},[n("div",{staticClass:"tips",on:{click:function(A){t.isOpen=!t.isOpen}}},[A._v("\n "+A._s(t.title)+"\n\n "),t.isOpen?n("Icon",{attrs:{type:"ios-arrow-down",size:"16"}}):n("Icon",{attrs:{type:"ios-arrow-forward",size:"16"}})],1),n("draggable",{staticClass:"dragArea list-group",attrs:{list:t.list,group:{name:"people",pull:"clone",put:!1},clone:A.cloneDog,dragClass:"dragClass",filter:".search , .navbar"}},A._l(t.list,(function(e,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"item.isOpen"}],key:e.id,staticClass:"list-group-item",class:{search:"搜索框"==e.cname,navbar:"商品分类"==e.cname},on:{click:function(t){return A.addDom(e,1)}}},[n("div",[n("div",{staticClass:"position",staticStyle:{display:"none"}},[A._v("释放鼠标将组建添加到此处")]),n("span",{staticClass:"conter iconfont-diy",class:e.icon}),n("p",{staticClass:"conter"},[A._v(A._s(e.cname))])])])})),0)],1)})),0):n("div",{staticClass:"wrapper",style:"height:"+(A.clientHeight-200)+"px;"},A._l(A.urlList,(function(t,e){return n("div",{key:e,staticClass:"link-item"},[n("div",{staticClass:"name"},[A._v(A._s(t.name))]),n("div",{staticClass:"link-txt"},[A._v("地址:"+A._s(t.url))]),n("div",{staticClass:"params"},[n("span",{staticClass:"txt"},[A._v("参数:")]),n("span",[A._v(A._s(t.parameter))])]),n("div",{staticClass:"lable"},[n("p",{staticClass:"txt"},[A._v("例如:"+A._s(t.example))]),n("Button",{attrs:{size:"small"},on:{click:function(e){return A.onCopy(t.example)}}},[A._v("复制 ")])],1)])})),0)]),n("div",{staticClass:"wrapper-con",staticStyle:{flex:"1",background:"#f0f2f5",display:"flex","justify-content":"center","padding-top":"20px",height:"100%"}},[n("div",{staticClass:"acticon"},[n("Button",{staticClass:"bnt mb10",on:{click:A.showTitle}},[A._v("页面设置")]),n("Button",{staticClass:"bnt mb10",on:{click:function(t){A.nameModal=!0}}},[A._v("另存模板")]),n("Button",{staticClass:"bnt",on:{click:A.reast}},[A._v("重置")])],1),n("div",{staticClass:"content"},[n("div",{staticClass:"contxt",staticStyle:{display:"flex","flex-direction":"column",overflow:"hidden",height:"100%"}},[n("div",{staticClass:"overflowy"},[n("div",{staticClass:"picture"},[n("img",{attrs:{src:e("2d44")}})]),n("div",{staticClass:"page-title",class:{on:-100==A.activeIndex},on:{click:A.showTitle}},[A._v("\n "+A._s(A.titleTxt)+"\n "),n("div",{staticClass:"delete-box"}),n("div",{staticClass:"handle"})])]),n("div",{staticClass:"scrollCon"},[n("div",{staticStyle:{width:"460px",margin:"0 auto"}},[n("div",{ref:"imgContainer",staticClass:"scroll-box",class:A.picTxt&&2==A.tabValTxt?"fullsize noRepeat":A.picTxt&&1==A.tabValTxt?"repeat ysize":"noRepeat ysize",style:"background-color:"+(A.colorTxt?A.colorPickerTxt:"")+";background-image: url("+(A.picTxt?A.picUrlTxt:"")+");height:calc(100vh - 200px)"},[n("draggable",{staticClass:"dragArea list-group",attrs:{list:A.mConfig,group:"people",filter:".top",move:A.onMove,animation:"300"},on:{change:A.log}},A._l(A.mConfig,(function(t,e){return n("div",{key:e,staticClass:"mConfig-item",class:{on:A.activeIndex==e,top:"search_box"==t.name||"nav_bar"==t.name},style:A.colorTxt?"background-color:"+A.colorPickerTxt+";":"background-color:#fff;",on:{click:function(n){return n.stopPropagation(),A.bindconfig(t,e)}}},[n(t.name,{ref:"getComponentData",refInFor:!0,tag:"component",attrs:{configData:A.propsObj,index:e,num:t.num}}),n("div",{staticClass:"delete-box"},[n("div",{staticClass:"handleType"},[n("Tooltip",{attrs:{content:"删除当前模块",placement:"top"}},[n("div",{staticClass:"iconfont iconshanchu2",on:{click:function(n){return n.stopPropagation(),A.bindDelete(t,e)}}})]),n("div",{staticClass:"iconfont iconfuzhi",on:{click:function(n){return n.stopPropagation(),A.bindAddDom(t,0,e)}}}),n("div",{staticClass:"iconfont iconshangyi",class:0===e?"on":"",on:{click:function(n){return n.stopPropagation(),A.movePage(t,e,1)}}}),n("div",{staticClass:"iconfont iconxiayi",class:e===A.mConfig.length-1?"on":"",on:{click:function(n){return n.stopPropagation(),A.movePage(t,e,0)}}})],1)]),n("div",{staticClass:"handle"})],1)})),0)],1)])]),n("div",{staticClass:"overflowy"},[n("div",{staticClass:"page-foot",class:{on:-101==A.activeIndex},on:{click:A.showFoot}},[n("footPage"),n("div",{staticClass:"delete-box"}),n("div",{staticClass:"handle"})],1)])])])]),n("div",{staticClass:"right-box"},A._l(A.rConfig,(function(t,e){return n("div",{key:e,staticClass:"mConfig-item",staticStyle:{"background-color":"#fff"}},[n("div",{staticClass:"title-bar"},[A._v(A._s(t.cname))]),n(t.configName,{tag:"component",attrs:{activeIndex:A.activeIndex,num:t.num,index:e},on:{config:A.config}})],1)})),0)])]),n("Modal",{attrs:{title:"预览","footer-hide":""},model:{value:A.modal,callback:function(t){A.modal=t},expression:"modal"}},[n("div",[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"acea-row row-around code"},[n("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[n("div",{ref:"qrCodeUrl",staticClass:"QRpic"}),n("span",{staticClass:"mt10"},[A._v("公众号二维码")])]),n("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[n("div",{staticClass:"QRpic"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:A.qrcodeImg,expression:"qrcodeImg"}]})]),n("span",{staticClass:"mt10"},[A._v("小程序二维码")])])])])]),n("Modal",{attrs:{title:"设置模版名称",closable:!1},on:{"on-ok":A.saveModal,"on-cancel":function(t){A.nameModal=!1}},model:{value:A.nameModal,callback:function(t){A.nameModal=t},expression:"nameModal"}},[n("Input",{attrs:{placeholder:"请输入模版名称"},model:{value:A.saveName,callback:function(t){A.saveName=t},expression:"saveName"}})],1)],1)}),[],!1,null,"e7ba1d4a",null);t.default=B.exports},d8b9:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=e("2f62");n={name:"z_ueditor",cname:"富文本",configName:"c_ueditor_box",icon:"iconfuwenben1",type:2,defaultName:"richText",props:{index:{type:null,default:-1},num:{type:null}},computed:Object(n.a)({},Object(i.d)("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(A,t){this.setConfig(A)},deep:!0},num:{handler:function(A,t){A=this.$store.state.mobildConfig.defaultArray[A],this.setConfig(A)},deep:!0},defaultArray:{handler:function(A,t){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"richText",timestamp:this.num,setUp:{tabVal:0},bgColor:{title:"背景色",name:"bgColor",default:[{item:"#f5f5f5"}],color:[{item:"#f5f5f5"}]},lrConfig:{title:"左右边距",val:0,min:0},udConfig:{title:"上下边距",val:0,min:0},richText:{val:""}},cSlider:"",bgColor:"",confObj:{},pageData:{},edge:"",udEdge:"",richText:""}},mounted:function(){var A=this;this.$nextTick((function(){A.pageData=A.$store.state.mobildConfig.defaultArray[A.num],A.setConfig(A.pageData)}))},methods:{setConfig:function(A){A&&A.lrConfig&&(this.bgColor=A.bgColor.color[0].item,this.edge=A.lrConfig.val,this.udEdge=A.udConfig.val,this.richText=A.richText.val)}}},e("fc85"),i=e("2877"),e=Object(i.a)(n,(function(){var A=this.$createElement;A=this._self._c||A;return A("div",{staticClass:"mobile-page"},[A("div",{staticClass:"box",style:{background:this.bgColor,marginLeft:this.edge+"px",marginRight:this.edge+"px",marginTop:this.udEdge+"px"},domProps:{innerHTML:this._s(this.richText)}})])}),[],!1,null,"70881bbe",null);t.default=e.exports},d9b8:function(A,t,e){},df85:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=(e("e9c4"),e("ab01")),o=e("befa");n={name:"c_picture_cube",componentsName:"picture_cube",cname:"图片魔方",props:{activeIndex:{type:null},num:{type:null},index:{type:null}},components:Object(n.a)(Object(n.a)({},i.a),{},{rightBtn:o.a}),data:function(){return{configObj:{},rCom:[{components:i.a.c_tab,configNme:"tabConfig"},{components:i.a.c_pictrue,configNme:"picStyle"},{components:i.a.c_menu_list,configNme:"menuConfig"},{components:i.a.c_bg_color,configNme:"bgColor"},{components:i.a.c_txt_tab,configNme:"bgStyle"},{components:i.a.c_slider,configNme:"prConfig"},{components:i.a.c_slider,configNme:"mbConfig"}]}},watch:{num:function(A){A=JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[A])),this.configObj=A},configObj:{handler:function(A,t){this.$store.commit("mobildConfig/UPDATEARR",{num:this.num,val:A})},deep:!0}},mounted:function(){var A=this;this.$nextTick((function(){var t=JSON.parse(JSON.stringify(A.$store.state.mobildConfig.defaultArray[A.num]));A.configObj=t}))},methods:{}},e("4a96"),o=e("2877"),e=Object(o.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"mobile-config pro"},[A._l(A.rCom,(function(t,n){return e("div",{key:n},[e(t.components.name,{key:n,ref:"childData",refInFor:!0,tag:"component",attrs:{configObj:A.configObj,configNme:t.configNme,index:A.activeIndex,num:t.num}})],1)})),e("rightBtn",{attrs:{activeIndex:A.activeIndex,configObj:A.configObj}})],2)}),[],!1,null,"0402e251",null);t.default=e.exports},e642:function(A,t,e){var n={"./c_bg_color.vue":"62cf","./c_cascader.vue":"d767","./c_foot.vue":"be50","./c_goods.vue":"4fa6","./c_hot_box.vue":"3fc7","./c_hot_imgs.vue":"8581","./c_hot_word.vue":"b646","./c_input_item.vue":"d670","./c_input_number.vue":"b0c5","./c_is_show.vue":"b85c","./c_menu_list.vue":"5969","./c_page_ueditor.vue":"cfff","./c_pictrue.vue":"2144","./c_product.vue":"d115","./c_select.vue":"02a4","./c_set_up.vue":"967b","./c_slider.vue":"d4ce","./c_status.vue":"55ab","./c_tab.vue":"a920","./c_txt_tab.vue":"1e18","./c_upload_img.vue":"d36e"};function i(A){return A=o(A),e(A)}function o(A){if(e.o(n,A))return n[A];throw(A=new Error("Cannot find module '"+A+"'")).code="MODULE_NOT_FOUND",A}i.keys=function(){return Object.keys(n)},i.resolve=o,(A.exports=i).id="e642"},e945:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=(e("d81d"),e("d3b7"),e("25f0"),e("f478")),o=e("2f62"),a=e("61f7");n={name:"home_new_list",filters:{formatDate:function(A){if(0!==A)return A=new Date(1e3*A),Object(a.a)(A,"yyyy-MM-dd hh:mm")}},cname:"新闻列表",icon:"iconwenzhangliebiao1",configName:"c_new_list",type:0,defaultName:"articleList",props:{index:{type:null},num:{type:null}},computed:Object(n.a)({},Object(o.d)("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(A,t){this.setConfig(A)},deep:!0},num:{handler:function(A,t){A=this.$store.state.mobildConfig.defaultArray[A],this.setConfig(A)},deep:!0},defaultArray:{handler:function(A,t){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{list:[],defaultConfig:{name:"articleList",timestamp:this.num,setUp:{tabVal:0},numConfig:{val:3,title:"文章数量"},selectConfig:{title:"文章分类",activeValue:"",list:[{activeValue:"",title:""},{activeValue:"",title:""}]},selectList:{title:"文章列表",list:[]},listStyle:{cname:"listStyle",title:"文本位置",type:0,list:[{val:"居左",icon:"icondoc_left"},{val:"居右",icon:"icondoc_right"}]},bgColor:{title:"背景颜色",default:[{item:"#fff"}],color:[{item:"#fff"}]},bgStyle:{title:"背景样式",name:"bgStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},conStyle:{title:"内容样式",name:"conStyle",type:0,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},prConfig:{title:"背景边距",val:0,min:0},itemConfig:{title:"文章间距",val:0,min:0},mbConfig:{title:"页面间距",val:0,min:0}},mTOP:0,bgColor:[],itemEdge:0,listStyle:0,itemStyle:0,bgStyle:0,conStyle:0,prConfig:0}},created:function(){},mounted:function(){var A=this;this.$nextTick((function(){A.pageData=A.$store.state.mobildConfig.defaultArray[A.num],A.setConfig(A.pageData)}))},methods:{categoryList:function(){var A=this;Object(i.a)().then((function(t){A.pageData.selectConfig.list=t.data,A.pageData.selectConfig.list.map((function(A){A.id.toString()})),A.$store.commit("mobildConfig/UPDATEARR",{num:A.num,val:A.pageData})}))},setConfig:function(A){A&&A.mbConfig&&(this.bgColor=A.bgColor.color[0].item,this.mTOP=A.mbConfig.val,this.itemEdge=A.itemConfig.val,this.listStyle=A.listStyle.type,this.bgStyle=A.bgStyle.type,this.prConfig=A.prConfig.val,this.conStyle=A.conStyle.type,(A=A.selectList.list||[]).length?this.list=A:this.list=[{title:"文章标题文章标题文章标题文章 标题文章标题",add_time:"1621474811",type:"noList"}])}}},e("6e65"),o=e("2877"),e=Object(o.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{staticClass:"mobile-page",style:{marginTop:A.mTOP+"px",padding:"0 "+A.prConfig+"px"}},[e("div",{staticClass:"list-wrapper",class:{pageOn:1===A.bgStyle},style:{background:A.bgColor}},A._l(A.list,(function(t,n){return e("div",{key:n,staticClass:"item",class:{on:0==A.listStyle,pageOn:1===A.conStyle},style:{marginBottom:A.itemEdge+"px"}},["noList"===A.list[0].type?e("div",{staticClass:"empty-box on"},[e("span",{staticClass:"iconfont-diy icontupian"})]):e("div",{staticClass:"pictrue"},[e("img",{attrs:{src:t.image_input[0]}})]),e("div",{staticClass:"info"},[e("div",{staticClass:"title line2"},[A._v(A._s(t.title))]),e("div",{staticClass:"time"},[A._v(A._s(A._f("formatDate")(t.add_time)))])])])})),0)])}),[],!1,null,"0e344be9",null);t.default=e.exports},e995:function(A,t,e){"use strict";var n=e("3952");e.n(n).a},e996:function(A,t,e){},e99b:function(A,t,e){"use strict";var n=e("f19a");e.n(n).a},ead9:function(A,t,e){},ed79:function(A,t,e){"use strict";var n=e("2c4d");e.n(n).a},edd0:function(A,t,e){var n=e("13d2"),i=e("9bf2");A.exports=function(A,t,e){return e.get&&n(e.get,t,{getter:!0}),e.set&&n(e.set,t,{setter:!0}),i.f(A,t,e)}},efa3:function(A,t,e){},f19a:function(A,t,e){},f232:function(A,t,e){},f405:function(A,t,e){"use strict";var n=e("44b0");e.n(n).a},f572:function(A,t,e){},f5de:function(A,t,e){"use strict";e.r(t);var n=e("f3f3"),i=e("2f62");n={name:"home_seckill",cname:"秒杀",configName:"c_home_seckill",icon:"iconmiaosha1",type:1,defaultName:"seckill",props:{index:{type:null},num:{type:null}},computed:Object(n.a)({},Object(i.d)("mobildConfig",["defaultArray"])),watch:{pageData:{handler:function(A,t){this.setConfig(A)},deep:!0},num:{handler:function(A,t){A=this.$store.state.mobildConfig.defaultArray[A],this.setConfig(A)},deep:!0},defaultArray:{handler:function(A,t){var e=this.$store.state.mobildConfig.defaultArray[this.num];this.setConfig(e)},deep:!0}},data:function(){return{defaultConfig:{name:"seckill",timestamp:this.num,setUp:{tabVal:0},countDownColor:{title:"倒计时背景色",name:"countDownColor",default:[{item:"rgba(252,60,62,0.09)"}],color:[{item:"rgba(252,60,62,0.09)"}]},themeColor:{title:"主题风格",name:"themeColor",default:[{item:"#E93323"}],color:[{item:"#E93323"}]},conStyle:{title:"背景样式",name:"conStyle",type:1,list:[{val:"直角",icon:"iconPic_square"},{val:"圆角",icon:"iconPic_fillet"}]},bgColor:{title:"背景颜色",name:"themeColor",default:[{item:"#fff"}],color:[{item:"#fff"}]},prConfig:{title:"背景边距",val:10,min:0},priceShow:{title:"是否显示价格",val:!0},discountShow:{title:"是否显示折扣标签",val:!0},titleShow:{title:"是否显示名称",val:!0},seckillShow:{title:"抢购标签",val:!0},numberConfig:{val:3},lrConfig:{title:"左右边距",val:10,min:0},mbConfig:{title:"页面间距",val:0,min:0},imgConfig:{title:"最多可添加1张图片,建议宽度18 * 18px",url:"http://pro.crmeb.net/static/images/spike-icon-002.gif"}},list:[{img:"",name:"小米家用电饭煲小米家用电饭煲",price:"234",discount:"1.2"},{img:"",name:"小米家用电饭煲小米家用电饭煲",price:"234",discount:"1.2"},{img:"",name:"小米家用电饭煲小米家用电饭煲",price:"234",discount:"1.2"}],mTOP:0,listRight:0,countDownColor:"",themeColor:"",pageData:{},imgUrl:"",priceShow:!0,discountShow:!0,titleShow:!0,seckillShow:!0,prConfig:0,bgColor:"",conStyle:1}},mounted:function(){var A=this;this.$nextTick((function(){A.pageData=A.$store.state.mobildConfig.defaultArray[A.num],A.setConfig(A.pageData)}))},methods:{setConfig:function(A){A&&A.mbConfig&&(this.mTOP=A.mbConfig.val,this.listRight=A.lrConfig.val,this.countDownColor=A.countDownColor.color[0].item,this.themeColor=A.themeColor.color[0].item,this.imgUrl=A.imgConfig.url,this.priceShow=A.priceShow.val,this.discountShow=A.discountShow.val,this.titleShow=A.titleShow.val,this.seckillShow=A.seckillShow.val,this.prConfig=A.prConfig.val,this.bgColor=A.bgColor.color[0].item,this.conStyle=A.conStyle.type)}}},e("d71c"),i=e("2877"),e=Object(i.a)(n,(function(){var A=this,t=A.$createElement,e=A._self._c||t;return e("div",{style:{padding:"0 "+A.prConfig+"px"}},[e("div",{staticClass:"seckill-box",class:A.conStyle?"":"seckillOn",style:{background:A.bgColor,marginTop:A.mTOP+"px"}},[e("div",{staticClass:"hd"},[e("div",{staticClass:"left"},[e("img",{attrs:{src:A.imgUrl,alt:""}}),e("p",[A._v("限时秒杀")]),e("div",{staticClass:"time"},[e("span",{style:{background:A.countDownColor,color:A.themeColor}},[A._v("00")]),e("em",[A._v(":")]),e("span",{style:{background:A.countDownColor,color:A.themeColor}},[A._v("00")]),e("em",[A._v(":")]),e("span",{style:{background:A.countDownColor,color:A.themeColor}},[A._v("00")])])]),e("div",{staticClass:"right"},[A._v("更多")])]),e("div",{staticClass:"list-wrapper"},A._l(A.list,(function(t,n){return e("div",{staticClass:"list-item",style:{marginRight:A.listRight+"px"},attrs:{index:n}},[e("div",{staticClass:"img-box"},[t.img?e("img",{attrs:{src:t.img,alt:""}}):A._e(),A._m(0,!0),A.discountShow?e("div",{staticClass:"discount",style:{borderColor:A.themeColor,color:A.themeColor}},[A._v("\n "+A._s(t.discount)+"折起\n ")]):A._e()]),A.titleShow?e("div",{staticClass:"title line1"},[A._v(A._s(t.name))]):A._e(),e("div",{staticClass:"price"},[A.seckillShow?e("span",{staticClass:"label",style:{background:A.themeColor}},[A._v("抢")]):A._e(),A.priceShow?e("span",{staticClass:"num-label",style:{color:A.themeColor}},[A._v("¥")]):A._e(),A.priceShow?e("span",{staticClass:"num",style:{color:A.themeColor}},[A._v(A._s(t.price))]):A._e()])])})),0)])])}),[function(){var A=this.$createElement;A=this._self._c||A;return A("div",{staticClass:"empty-box"},[A("span",{staticClass:"iconfont-diy icontupian"})])}],!1,null,"2378e588",null);t.default=e.exports},f9a7:function(A,t,e){},fa17:function(A,t,e){},fac5:function(A,t,e){"use strict";var n=e("bcb9");e.n(n).a},fc85:function(A,t,e){"use strict";var n=e("0f51");e.n(n).a},fd04:function(A,t,e){"use strict";var n=e("1f61");e.n(n).a},feef:function(A,t,e){},ffa6:function(A,t,e){"use strict";var n=e("9f8c");e.n(n).a},ffca:function(A,t,e){},fff6:function(A,t,e){}}]);