!function(){var e,t={4449:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return a}});var s=i(7304),n=i.n(s),o=i(4118),r={name:"MusicQrcode",props:{curMusicSrc:{type:String,required:!0,desc:"需要生成二维码的音频链接"},item:{type:Object,required:!0}},data(){return{musicQRCode:"",base64Src:""}},mounted(){this.createMusicQRCode()},computed:{isYZPro:function(){return this.$store.getters.isYZPro},isMusicQRCodeImg:function(){return this.item.isMusicQRCodeImg},qrcodeForeground:function(){return this.item.qrcodeForeground},qrcodeBackground:function(){return this.item.qrcodeBackground}},methods:{createMusicQRCode:async function(){if(!this.curMusicSrc)return;let e=60,t=60;const i=this.handleQRCodeUrl(this.curMusicSrc);this.isYZPro&&this.isMusicQRCodeImg&&(e=Number.parseFloat(this.item.style.width),t=Number.parseFloat(this.item.style.height));let s=new(n())({content:i,padding:0,width:e,height:t,ecl:"M",xmlDeclaration:!1,color:this.qrcodeForeground,background:this.qrcodeBackground}).svg();this.isMusicQRCodeImg&&(this.base64Src=await(0,o.y)(s,e,t)),s=s.replace(/<\?xml.*?>/,""),s=s.replace(//,"").replace(/<\/svg>/,""),this.isMusicQRCodeImg||(this.musicQRCode=s)},handleQRCodeUrl:function(e){const t=e.indexOf("../");let i=e;if(t>-1){let e=window.location.href;e=e.substring(0,e.lastIndexOf("/",e.lastIndexOf("/")-1)+1),i=e+i.replace("../","")}return i}}},a=(0,i(1001).Z)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"video-qrcode MusicQrcode"},[e.isMusicQRCodeImg?e._e():t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 60 60",width:"100%",height:"100%",preserveAspectRatio:"none"}},[t("g",{domProps:{innerHTML:e._s(e.musicQRCode)}})]),e.isMusicQRCodeImg?t("img",{attrs:{src:e.base64Src}}):e._e()])}),[],!1,null,"5c413e7d",null).exports},1593:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var s={name:"PlayProgress",components:{},data(){return{}},mounted(){},methods:{},props:{musicPlayPercent:{default:293.111,type:Number,required:!0},progressTrackColor:{type:String,required:!0,desc:"进度槽颜色"},progressColor:{type:String,required:!0,desc:"进度颜色"},strokeWidth:{type:String,default:"6.7",desc:"进度条宽度"}},watch:{}},n=(0,i(1001).Z)(s,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PlayProgress"},[t("svg",{attrs:{viewBox:"0 0 100 100",width:"100%",height:"100%"}},[t("path",{attrs:{d:"M 50 50 m 0 -46 a 46 46 0 1 1 0 92 a 46 46 0 1 1 0 -92",stroke:e.progressTrackColor,"stroke-width":e.strokeWidth,fill:"none"}}),t("path",{staticClass:"circle",style:{"stroke-dashoffset":`${e.musicPlayPercent}px`},attrs:{d:"M 50 50 m 0 -46 a 46 46 0 1 1 0 92 a 46 46 0 1 1 0 -92","stroke-linecap":"round",stroke:e.progressColor,"stroke-width":e.strokeWidth,fill:"none"}})])])}),[],!1,null,"3d1be770",null).exports},8993:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var s={props:{value:{type:Number,required:!0,default:0,desc:"进度"},max:{type:Number,default:100,desc:"进度条最大值"},min:{type:Number,default:0,desc:"进度条最小值"},isShowThumb:{type:Boolean,default:!1,desc:"是否显示滑块"},orient:{type:String,default:"horizontal",desc:"进度条方向"}},data(){return{dragging:!1,progress:0}},beforeDestroy(){this.dragEnd()},computed:{barStyle(){return"vertical"===this.orient?{height:this.value+"%"}:{width:this.value+"%"}},thumbStyle(){return"vertical"===this.orient?{bottom:this.value+"%"}:{left:this.value+"%"}}},methods:{dragStart(e){this.$emit("start"),this.changeProgress(e),this.dragging=!0,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.dragEnd)},drag(e){this.dragging&&document.hasFocus()&&this.changeProgress(e)},dragEnd(){this.dragging&&this.$emit("end",{target:{value:this.progress}}),this.dragging=!1,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.dragEnd)},changeProgress(e){const t=this.$refs.progressBar.getBoundingClientRect();let i="vertical"===this.orient?e.clientY-t.top:e.clientX-t.left,s="vertical"===this.orient?100*(1-i/t.height):i/t.width*100;this.progress=sthis.max?this.max:s,this.$emit("input",{target:{value:this.progress}})}}},n=(0,i(1001).Z)(s,(function(){var e=this,t=e._self._c;return t("div",{ref:"progressBar",staticClass:"progress-bar-container",class:{"progress-bar-container-vertical":"vertical"===e.orient,"progress-bar-container-horizontal":"horizontal"===e.orient},on:{mousedown:e.dragStart}},[t("div",{staticClass:"progress-bar",style:e.barStyle}),e.isShowThumb?t("div",{staticClass:"thumb",style:e.thumbStyle}):e._e()])}),[],!1,null,"7be6bb9f",null).exports},5525:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d=i(5799),h=i(7750),c=i(8439),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z,VolumeLineIcon:h.Z,ReplayIcon:d.Z,VolumeMuteLineIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"progress-bar"},[t("div",{staticClass:"row_space_y"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.audioDuration))])]),t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)])]),t("div",{staticClass:"row_space_y"},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon")],1)]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[e.isMute?t("VolumeMuteLineIcon"):t("VolumeLineIcon")],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1)]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"500aa014",null).exports},3088:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return h}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z}},h=(0,i(1001).Z)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"progress-bar"},[t("div",{staticClass:"row_center_xy"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em",color:"var(--music-skin_color_3)"}},[e._v("/"+e._s(e.audioDuration))])]),t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)])])]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"16121348",null).exports},5496:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d=i(5799),h=i(8214),c=i(3384),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z,VolumeFullIcon:h.Z,ReplayIcon:d.Z,VolumeMuteFullIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"progress-bar"},[t("div",{staticClass:"audio_time row_space_y"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.audioDuration))])]),t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[e.isMute?t("VolumeMuteFullIcon"):t("VolumeFullIcon")],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1)]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"3ef649c9",null).exports},775:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d=i(5799),h=i(8214),c=i(3384),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z,VolumeFullIcon:h.Z,ReplayIcon:d.Z,VolumeMuteFullIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)])]),t("div",{staticClass:"row_center_x"},[t("div",{staticClass:"progress-bar"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_time row_end_y"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em",color:"var(--music-skin_color_3)"}},[e._v("/"+e._s(e.audioDuration))])])]),t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon")],1)]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t(e.isMute?"VolumeMuteFullIcon":"VolumeFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"49ed7bc3",null).exports},9807:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return g}});var s=i(2261),n=i(254),o=i(1001),r=(0,o.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"100%",height:"100%",viewBox:"0 0 22 37",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{filter:"url(#filter0_i_6633_7952)"}},[e("path",{attrs:{d:"M19.5 19L20.4965 20.1211C20.8168 19.8365 21 19.4285 21 19H19.5ZM0.503454 33.8789C-0.11572 34.4293 -0.171491 35.3774 0.378886 35.9965C0.929263 36.6157 1.87737 36.6715 2.49655 36.1211L0.503454 33.8789ZM18 7.5V19H21V7.5H18ZM18.5035 17.8789L0.503454 33.8789L2.49655 36.1211L20.4965 20.1211L18.5035 17.8789Z",fill:"url(#paint0_linear_6633_7952)"}})]),e("g",{attrs:{filter:"url(#filter1_i_6633_7952)"}},[e("rect",{attrs:{x:"17",width:"5",height:"8",rx:"1",fill:"#D8D8D8"}})]),e("rect",{attrs:{opacity:"0.5",x:"19",width:"1",height:"8",fill:"white"}}),e("defs",[e("filter",{attrs:{id:"filter0_i_6633_7952",x:"0",y:"7.5",width:"22",height:"29",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"}},[e("feFlood",{attrs:{"flood-opacity":"0",result:"BackgroundImageFix"}}),e("feBlend",{attrs:{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}}),e("feColorMatrix",{attrs:{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}}),e("feOffset",{attrs:{dx:"1"}}),e("feGaussianBlur",{attrs:{stdDeviation:"0.5"}}),e("feComposite",{attrs:{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}}),e("feColorMatrix",{attrs:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}}),e("feBlend",{attrs:{mode:"normal",in2:"shape",result:"effect1_innerShadow_6633_7952"}})],1),e("filter",{attrs:{id:"filter1_i_6633_7952",x:"17",y:"0",width:"6",height:"8",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"}},[e("feFlood",{attrs:{"flood-opacity":"0",result:"BackgroundImageFix"}}),e("feBlend",{attrs:{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}}),e("feColorMatrix",{attrs:{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}}),e("feOffset",{attrs:{dx:"1"}}),e("feGaussianBlur",{attrs:{stdDeviation:"0.5"}}),e("feComposite",{attrs:{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}}),e("feColorMatrix",{attrs:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}}),e("feBlend",{attrs:{mode:"normal",in2:"shape",result:"effect1_innerShadow_6633_7952"}})],1),e("linearGradient",{attrs:{id:"paint0_linear_6633_7952",x1:"16.5",y1:"17.5",x2:"21.5",y2:"21",gradientUnits:"userSpaceOnUse"}},[e("stop",{attrs:{"stop-color":"#EFEFEF"}}),e("stop",{attrs:{offset:"0.422524","stop-color":"white"}}),e("stop",{attrs:{offset:"0.96246","stop-color":"#EFEFEF"}})],1)],1)])}),[],!1,null,null,null).exports,a=i(1125),l=i(8088),d=i(1812),h=i(5775),c=(0,o.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 14H14V3H5V5H12V12H3V9L1 8V14Z",fill:"currentColor"}}),e("path",{attrs:{d:"M5 0V8L0 4L5 0Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,u=(0,o.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M5 4H0V10H5L11 14V0L5 4Z",fill:"currentColor"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 11.3396C15.6323 8.9429 15.6323 5.0571 13 2.66041L13.7253 2C16.7582 4.76142 16.7582 9.23857 13.7253 12L13 11.3396Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,p=(0,o.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M4.37854 4H0V10H5L11 14V10.6215L4.37854 4Z",fill:"currentColor"}}),e("path",{attrs:{d:"M15.0364 10.4152L14.3002 9.67898C15.5186 7.39199 15.0852 4.55897 13 2.66041L13.7253 2C16.2288 4.27937 16.6658 7.72772 15.0364 10.4152Z",fill:"currentColor"}}),e("path",{attrs:{d:"M11 6.37882L7.17271 2.55153L11 0V6.37882Z",fill:"currentColor"}}),e("path",{attrs:{d:"M3.48975 1.69666L4.19685 0.989549L15.5106 12.3033L14.8035 13.0104L3.48975 1.69666Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,m={name:"NewSkin_9",mixins:[s.B,n.d],components:{MusicIcon_6:r,PauseAcuityIcon:a.Z,PlayAcuityIcon:l.Z,NextAcuityIcon:d.Z,PrevAcuityIcon:h.Z,VolumeAcuityIcon:u,ReplayAcuityIcon:c,VolumeMuteAcuityIcon:p}},g=(0,o.Z)(m,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"circle_box"},[t("div",{staticClass:"bar"},[t("MusicIcon_6")],1),t("div",{ref:"rotateRef",staticClass:"circle1"},[e._m(0)])]),t("div",{staticStyle:{display:"inline-block",flex:"1"}},[t("div",{staticClass:"row_space_y"},[t("div",{staticClass:"progress-bar"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_time row_end_y"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em",color:"var(--music-skin_color_3)"}},[e._v("/"+e._s(e.audioDuration))])])]),t("div",{staticClass:"row_space_y",staticStyle:{"margin-top":"20em"}},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("ReplayAcuityIcon",{tag:"component"})],1)]),t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevAcuityIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayAcuityIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseAcuityIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextAcuityIcon",{tag:"component"})],1)])]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t(e.isMute?"VolumeMuteAcuityIcon":"VolumeAcuityIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1)])]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[function(){var e=this._self._c;return e("div",{staticClass:"circle2 row_center_xy"},[e("div",{staticClass:"circle3 row_center_xy"},[e("div",{staticClass:"circle4"})])])}],!1,null,"133166e3",null).exports},829:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(5160),l=i(3279),d=i(5799),h=i(8214),c=i(3384),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextDoubleIcon:a.Z,PrevDoubleIcon:l.Z,VolumeFullIcon:h.Z,ReplayIcon:d.Z,VolumeMuteFullIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"audio_box"},[t("div",{staticClass:"audio_time"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))])]),t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("ReplayIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("PrevDoubleIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PlayFullIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PauseFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("NextDoubleIcon",{tag:"component"})],1)]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t(e.isMute?"VolumeMuteFullIcon":"VolumeFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)]),t("div",{staticClass:"audio_time"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.audioDuration))])])],1)]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"17af4d14",null).exports},8949:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d=i(5799),h=i(8214),c=i(3384),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z,VolumeFullIcon:h.Z,ReplayIcon:d.Z,VolumeMuteFullIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"progress_box row_space_y"},[t("div",{staticClass:"audio_time"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))])]),t("div",{staticClass:"progress-bar"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_time"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.audioDuration))])])]),t("div",{staticClass:"control_box row_space_y"},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("ReplayIcon",{tag:"component"})],1)]),t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("PrevFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PlayFullIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PauseFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("NextFullIcon",{tag:"component"})],1)])]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t(e.isMute?"VolumeMuteFullIcon":"VolumeFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1)]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"3f1c067a",null).exports},5558:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(5160),l=i(3279),d=i(5799),h=i(8214),c=i(3384),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextDoubleIcon:a.Z,PrevDoubleIcon:l.Z,VolumeFullIcon:h.Z,ReplayIcon:d.Z,VolumeMuteFullIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"control_box row_space_y"},[t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("PrevDoubleIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PlayFullIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PauseFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("NextDoubleIcon",{tag:"component"})],1)])]),t("div",{staticClass:"row_center_x",staticStyle:{gap:"20em"}},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon",{tag:"component"})],1)]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t(e.isMute?"VolumeMuteFullIcon":"VolumeFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1)]),t("div",{staticClass:"progress-bar"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("div",{staticClass:"audio_time row_space_y"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.audioDuration))])])]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"3ed68c32",null).exports},559:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d=i(5799),h=i(7750),c=i(8439),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z,VolumeLineIcon:h.Z,ReplayIcon:d.Z,VolumeMuteLineIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"control_box row_space_y"},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon",{tag:"component"})],1)]),t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PlayFullIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PauseFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon",{tag:"component"})],1)])]),t("el-popover",{attrs:{placement:"top","popper-class":"music_skin_popper",trigger:"hover","visible-arrow":!1}},[t("div",{staticClass:"control-button",attrs:{slot:"reference"},on:{click:e.muteOrRecover},slot:"reference"},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t(e.isMute?"VolumeMuteLineIcon":"VolumeLineIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box",style:e.VolumeStyle},[t("Progress",{attrs:{value:e.volume,isShowThumb:!0,orient:"vertical"},on:{end:e.changeVolume,input:e.inputVolume}})],1)])],1),t("div",{staticClass:"audio_time row_space_y"},[t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.getAudioCurrentTime))]),t("div",{staticClass:"progress-bar"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1),t("span",{staticStyle:{"font-size":"14em"}},[e._v(e._s(e.audioDuration))])])]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"38b34f9f",null).exports},955:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return m}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(5160),l=i(3279),d=i(5799),h=i(7750),c=i(8439),u=i(1593),p={name:"NewSkin_9",mixins:[s.B,n.d],props:{playPercent:{type:Number,required:!0,desc:"音频播放了多少(百分比)"}},computed:{controlColorList(){return this.item.controlColorList},progressTrackColor(){const e=this.controlColorList.find((e=>"track"===e.type));return e?e.color:"#fff"},progressColor(){const e=this.controlColorList.find((e=>"progress"===e.type));return e?e.color:"#fff"}},components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextDoubleIcon:a.Z,PrevDoubleIcon:l.Z,VolumeLineIcon:h.Z,ReplayIcon:d.Z,VolumeMuteLineIcon:c.Z,PlayProgress:u.Z}},m=(0,i(1001).Z)(p,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("PrevDoubleIcon",{tag:"component"})],1)]),t("div",{staticClass:"progress-play row_center_xy"},[t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PlayFullIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PauseFullIcon",{tag:"component"})],1)]),t("div",[t("PlayProgress",{attrs:{musicPlayPercent:e.playPercent,progressTrackColor:e.progressTrackColor,progressColor:e.progressColor,strokeWidth:"3"}})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("NextDoubleIcon",{tag:"component"})],1)])]),t("div",{staticClass:"audio_time row_center_x"},[t("span",{staticStyle:{"font-size":"14em",color:"var(--music-skin_color_3)"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em"}},[e._v("/ "+e._s(e.audioDuration))])]),t("div",{staticClass:"control_box row_space_y"},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box row_center_x"},[t("div",{staticClass:"control-button",on:{click:e.muteOrRecover}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t(e.isMute?"VolumeMuteLineIcon":"VolumeLineIcon",{tag:"component"})],1)]),t("Progress",{attrs:{value:e.volume,isShowThumb:!0},on:{end:e.changeVolume,input:e.inputVolume}})],1)])]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"cad236ea",null).exports},4048:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return c}});var s=i(2261),n=i(1001),o=(0,n.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M12.2228 16.5226C12.2228 16.5226 13.3928 12.0226 13.7228 9.57757C13.8728 8.63257 14.1428 7.55257 14.1428 7.55257C14.1428 6.98257 14.9078 7.40257 14.9378 7.40257C16.527 8.43431 17.9614 9.68685 19.1978 11.1226C19.3612 11.3024 19.5859 11.4147 19.8278 11.4376C19.9523 11.4658 20.0812 11.4682 20.2066 11.4444C20.332 11.4207 20.4511 11.3715 20.5567 11.2997C20.6622 11.2279 20.7518 11.1352 20.82 11.0273C20.8881 10.9195 20.9333 10.7987 20.9528 10.6726C21.2577 8.45733 20.7722 6.20551 19.5816 4.31269C18.3911 2.41986 16.5716 1.00709 14.4428 0.322573C14.02 0.193759 13.5891 0.0935331 13.1528 0.022573C12.9108 -0.0280707 12.6586 0.00710075 12.4397 0.122053C12.2207 0.237005 12.0486 0.424572 11.9528 0.652573C11.8759 0.833579 11.8303 1.02631 11.8178 1.22257L9.94282 12.7276C8.58054 11.938 7.01385 11.5725 5.44282 11.6776C4.48972 11.6279 3.53945 11.8189 2.67961 12.2331C1.81977 12.6473 1.07805 13.2713 0.522823 14.0476C0.180368 14.6377 0 15.3078 0 15.9901C0 16.6723 0.180368 17.3425 0.522823 17.9326C0.864312 18.6486 1.38007 19.2676 2.02282 19.7326C3.18476 20.4716 4.51483 20.9045 5.88915 20.9911C7.26347 21.0776 8.63735 20.815 9.88282 20.2276C10.5108 19.8085 11.0436 19.2621 11.4467 18.6239C11.8499 17.9856 12.1143 17.2697 12.2228 16.5226Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,r=i(1752),a=i(8320),l=i(5160),d=i(3279),h={name:"NewSkin_2",mixins:[s.B],components:{MusicIcon_2:o,PauseFullIcon:r.Z,PlayFullIcon:a.Z,NextDoubleIcon:l.Z,PrevDoubleIcon:d.Z}},c=(0,n.Z)(h,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{ref:"rotateRef",staticClass:"control-button",on:{click:e.playMusic}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"21em"}},[t("MusicIcon_2")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("PrevDoubleIcon")],1)]),t("div",{staticClass:"control-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("NextDoubleIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"2a0ff6d6",null).exports},2380:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var s=i(2261),n=i(254),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d=i(5799),h=i(7750),c=i(8439),u={name:"NewSkin_9",mixins:[s.B,n.d],components:{PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z,VolumeLineIcon:h.Z,ReplayIcon:d.Z,VolumeMuteLineIcon:c.Z}},p=(0,i(1001).Z)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"control_box row_space_y"},[t("div",{staticClass:"row_center_x"},[t("div",{staticClass:"audio_box"},[t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"10em"}},[t("PrevFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("PlayFullIcon",{tag:"component"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("PauseFullIcon",{tag:"component"})],1)]),t("div",{staticClass:"control-button",class:{isDisabled:1===e.musicSkin},on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"10em"}},[t("NextFullIcon",{tag:"component"})],1)])]),t("div",{staticClass:"audio_time row_center_x"},[t("span",{staticStyle:{"font-size":"14em",color:"var(--music-skin_color_3)"}},[e._v(e._s(e.getAudioCurrentTime))]),t("span",{staticStyle:{"font-size":"14em"}},[e._v("/ "+e._s(e.audioDuration))])])]),t("div",{staticClass:"row_space_y"},[t("div",{staticClass:"control-button",on:{click:e.replay}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("ReplayIcon",{tag:"component"})],1)]),t("div",{staticClass:"volume_box row_center_x"},[t("div",{staticClass:"control-button",on:{click:e.muteOrRecover}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t(e.isMute?"VolumeMuteLineIcon":"VolumeLineIcon",{tag:"component"})],1)]),t("Progress",{attrs:{value:e.volume,isShowThumb:!0},on:{end:e.changeVolume,input:e.inputVolume}})],1)])]),t("div",{staticClass:"progress-bar"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1)]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"b2fcd466",null).exports},323:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return c}});var s=i(2261),n=i(1001),o=(0,n.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.09091 19.25C4.84403 19.25 5.45455 18.6344 5.45455 17.875C5.45455 17.1156 4.84403 16.5 4.09091 16.5C3.33779 16.5 2.72727 17.1156 2.72727 17.875C2.72727 18.6344 3.33779 19.25 4.09091 19.25ZM4.09091 22C6.35026 22 8.18182 20.1532 8.18182 17.875C8.18182 15.5968 6.35026 13.75 4.09091 13.75C1.83156 13.75 0 15.5968 0 17.875C0 20.1532 1.83156 22 4.09091 22Z",fill:"currentColor"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.9091 18.1449C16.6622 18.1449 17.2727 17.5293 17.2727 16.7699C17.2727 16.0105 16.6622 15.3949 15.9091 15.3949C15.156 15.3949 14.5455 16.0105 14.5455 16.7699C14.5455 17.5293 15.156 18.1449 15.9091 18.1449ZM15.9091 20.8949C18.1684 20.8949 20 19.0481 20 16.7699C20 14.4917 18.1684 12.6449 15.9091 12.6449C13.6497 12.6449 11.8182 14.4917 11.8182 16.7699C11.8182 19.0481 13.6497 20.8949 15.9091 20.8949Z",fill:"currentColor"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.2727 3.21052C17.2727 2.90215 16.9768 2.68177 16.6845 2.77245L8.50269 5.31091C8.31196 5.37009 8.18182 5.54777 8.18182 5.74898V17.2283H5.45455V5.74898C5.45455 4.34051 6.36557 3.09674 7.70064 2.68252L15.8825 0.144061C17.9285 -0.490747 20 1.05194 20 3.21052V16.3116H17.2727V3.21052Z",fill:"currentColor"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.5637 8.46495L7.65456 11.6733L6.89092 9.03329L17.8 5.82495L18.5637 8.46495Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,r=i(1752),a=i(8320),l=i(2639),d=i(8903),h={name:"NewSkin_3",mixins:[s.B],methods:{},components:{MusicIcon_1:o,PauseFullIcon:r.Z,PlayFullIcon:a.Z,NextFullIcon:l.Z,PrevFullIcon:d.Z}},c=(0,n.Z)(h,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",ref:"rotateRef",staticClass:"control-button",on:{click:e.playMusic}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"22em"}},[t("MusicIcon_1")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"17em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"17em"}},[t("NextFullIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"51581c13",null).exports},566:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return h}});var s=i(2261),n=i(1916),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d={name:"NewSkin_4",mixins:[s.B],methods:{},components:{MusicIcon_3:n.Z,PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z}},h=(0,i(1001).Z)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",ref:"rotateRef",staticClass:"control-button",on:{click:e.playMusic}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"22em"}},[t("MusicIcon_3")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"17em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"18em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"17em"}},[t("NextFullIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"34cbec18",null).exports},9392:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return h}});var s=i(2261),n=i(1916),o=i(1752),r=i(8320),a=i(2639),l=i(8903),d={name:"NewSkin_5",mixins:[s.B],methods:{},components:{MusicIcon_3:n.Z,PauseFullIcon:o.Z,PlayFullIcon:r.Z,NextFullIcon:a.Z,PrevFullIcon:l.Z}},h=(0,i(1001).Z)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",staticClass:"control-button play-button",on:{click:e.playMusic}},[t("div",{ref:"rotateRef",staticClass:"cirle_1"},[t("div",{staticClass:"cirle_2"})]),t("div",{staticClass:"cirle_3 row_center_xy"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseFullIcon")],1)])])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button play-button",on:{click:e.playMusic}},[t("div",{ref:"rotateRef",staticClass:"cirle_1"},[t("div",{staticClass:"cirle_2",attrs:{justify:"center"}})]),t("div",{staticClass:"cirle_3 row_center_xy"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseFullIcon")],1)])]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"17em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"17em"}},[t("NextFullIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"03e30a8c",null).exports},2776:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return c}});var s=i(2261),n=i(1001),o=(0,n.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 22 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M14 5.92822C15.7328 7.31542 18.3376 9.01462 22 5.92822C19.7176 6.73462 17.7792 4.47247 13.7832 0.392467C13.7807 0.406853 13.7783 0.421253 13.776 0.435667C13.5003 0.182607 13.6113 0.087046 13.2421 0.0258999C12.8729 -0.0352462 12.4939 0.0124245 12.1513 0.163091C11.8087 0.313757 11.5175 0.5609 11.313 0.87435C11.1086 1.1878 10.9998 1.55399 11 1.92822V15.1042C9.9332 14.6912 8.34396 14.4102 7.2 14.4157C3.2232 14.4157 0 16.8325 0 19.8157C0 22.7965 3.2232 25.2157 7.2 25.2157C11.1768 25.2157 14 22.909 14 19.9282V5.92822Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,r=i(1752),a=i(8320),l=i(2639),d=i(8903),h={name:"NewSkin_6",mixins:[s.B],methods:{},components:{MusicIcon_4:o,PauseFullIcon:r.Z,PlayFullIcon:a.Z,NextFullIcon:l.Z,PrevFullIcon:d.Z}},c=(0,n.Z)(h,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",ref:"rotateRef",staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"25em"}},[t("MusicIcon_4")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"4521b6a0",null).exports},4144:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return u}});var s=i(2261),n=i(1001),o=(0,n.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 10 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.53479 0.155382C8.2861 0.515788 6.85544 1.11701 5.6105 1.41444C4.05394 1.71663 3.30638 1.95744 2.49738 2.37926C1.43975 2.98048 0.879443 3.76269 0.942381 4.4851C1.00535 4.6661 2.24872 6.46976 3.74232 8.51579C5.29888 10.5618 6.54226 12.3057 6.60519 12.3655C6.66816 12.4851 6.41791 12.4851 5.73329 12.4253C3.43069 12.2443 1.31541 13.4484 0.319162 15.3118C0.0844486 15.7985 -0.0238132 16.3366 0.00437984 16.8762C0.00437984 18.4406 0.876318 19.6431 2.43129 20.3655C3.06085 20.6063 4.11219 20.6661 4.60954 20.6661C4.79682 20.6661 6.10313 20.6661 7.03644 20.1845C9.58769 18.982 10.6453 16.6952 9.58769 14.5909C9.40041 14.1094 8.03269 11.9437 6.59735 9.65844L3.99101 5.50657H4.42694C6.10788 5.38691 7.28985 4.90532 8.09882 4.00351C8.78344 3.21657 8.97073 2.43907 8.97073 1.23663C8.90779 0.0326006 8.77557 -0.208181 8.53479 0.155382Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports,r=i(1752),a=i(8320),l=i(2639),d=i(8903),h=i(8993),c={name:"NewSkin_7",mixins:[s.B],props:{progress:{type:Number,required:!0,default:0,desc:"音频播放进度"}},methods:{progressMouseDown:function(){this.$emit("progressMouseDown")},progressMouseUp:function(){this.$emit("progressMouseUp")},progressInput:function(e){this.$emit("progressInput",e)}},components:{MusicIcon_5:o,PauseFullIcon:r.Z,PlayFullIcon:a.Z,NextFullIcon:l.Z,PrevFullIcon:d.Z,Progress:h.Z}},u=(0,n.Z)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",ref:"rotateRef",staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"20em"}},[t("MusicIcon_5")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)]),t("div",{staticClass:"progress-bar row_center_x"},[t("Progress",{attrs:{value:e.progress},on:{input:e.progressInput,start:e.progressMouseDown,end:e.progressMouseUp}})],1)]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"57428a1e",null).exports},5635:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return d}});var s=i(2261),n=i(1125),o=i(8088),r=i(1812),a=i(5775),l={name:"NewSkin_8",mixins:[s.B],components:{PauseAcuityIcon:n.Z,PlayAcuityIcon:o.Z,NextAcuityIcon:r.Z,PrevAcuityIcon:a.Z}},d=(0,i(1001).Z)(l,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",staticClass:"control-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayAcuityIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseAcuityIcon")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevAcuityIcon")],1)]),t("div",{staticClass:"control-button play-button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayAcuityIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseAcuityIcon")],1)]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextAcuityIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"cb93ba7c",null).exports},2790:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return d}});var s=i(2261),n=i(1752),o=i(8320),r=i(2639),a=i(8903),l={name:"NewSkin_9",mixins:[s.B],components:{PauseFullIcon:n.Z,PlayFullIcon:o.Z,NextFullIcon:r.Z,PrevFullIcon:a.Z}},d=(0,i(1001).Z)(l,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"audioControler",style:[e.audioStyle]},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner row_center_xy"},[1===e.musicSkin?t("div",{staticClass:"audio_box single_audio"},[t("div",{key:"single",staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"16em"}},[t("PauseFullIcon")],1)])]):e._e(),2===e.musicSkin?t("div",{staticClass:"audio_box multiple-audio"},[t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("PrevFullIcon")],1)]),t("div",{staticClass:"circle"},[t("div",{staticClass:"control-button play_button",on:{click:e.playMusic}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PlayFullIcon")],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"music_icon",staticStyle:{"font-size":"14em"}},[t("PauseFullIcon")],1)])]),t("div",{staticClass:"control-button",on:{click:function(t){return e.switchAudio(1)}}},[t("div",{staticClass:"music_icon",staticStyle:{"font-size":"12em"}},[t("NextFullIcon")],1)])]):e._e()]):e._e(),3===e.musicSkin?t("AudioQrcode",{attrs:{curMusicSrc:e.currentMusicSrc,item:e.item}}):e._e()],1)}),[],!1,null,"495275e0",null).exports},1916:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M21 1.27034V16.0745C21 16.5172 20.851 16.9076 20.5557 17.2513C20.2605 17.5951 19.5526 17.8618 19.1029 18.0515C18.6505 18.2412 18.2009 18.3815 17.7566 18.4749C17.3096 18.5657 16.8924 18.6152 16.4997 18.6152C16.1069 18.6152 15.6897 18.5684 15.2427 18.4749C14.7957 18.3842 14.3461 18.2412 13.8964 18.0515C13.4467 17.8618 13.0729 17.5951 12.7776 17.2513C12.4823 16.9076 12.3333 16.5144 12.3333 16.0745C12.3333 15.6345 12.4823 15.2413 12.7776 14.8976C13.0729 14.5539 13.4467 14.29 13.8964 14.0975C14.3488 13.9078 14.7984 13.7675 15.2427 13.674C15.6897 13.5833 16.1069 13.5338 16.4997 13.5338C17.4126 13.5338 18.2442 13.707 19 14.048V6.95663L8.99999 10.0885V19.4593C8.99999 19.8993 8.851 20.2925 8.55573 20.6362C8.26046 20.9799 7.5526 21.2438 7.10292 21.4363C6.65053 21.626 6.20085 21.7663 5.75658 21.8598C5.30961 21.9505 4.89244 22 4.49964 22C4.10685 22 3.68967 21.9533 3.2427 21.8598C2.79573 21.769 2.34605 21.626 1.89636 21.4363C1.44668 21.2466 1.07285 20.9799 0.777577 20.6362C0.482304 20.2925 0.333313 19.8993 0.333313 19.4593C0.333313 19.0166 0.482304 18.6262 0.777577 18.2825C1.07285 17.9388 1.44668 17.6748 1.89636 17.4823C2.34875 17.2926 2.79844 17.1524 3.2427 17.0589C3.68967 16.9681 4.10685 16.9186 4.49964 16.9186C5.41255 16.9186 6.24419 17.0919 6.99998 17.4328V4.65242C6.99998 4.3802 7.08125 4.12998 7.24649 3.90451C7.41174 3.67904 7.62574 3.52231 7.8858 3.43432L19.3855 0.0522435C19.4884 0.016498 19.6103 0 19.7485 0C20.0952 0 20.3932 0.120985 20.6343 0.368454C20.8808 0.618673 21 0.921135 21 1.27034Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},1812:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0 0L10 6L0 12V0Z",fill:"currentColor"}}),e("path",{attrs:{d:"M12 0H10V12H12V0Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},5160:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M9 10.7479V1.25231C9 0.177584 10.2143 -0.394774 10.9906 0.311299L19.5897 5.05911C19.7185 5.1764 19.8218 5.32106 19.8926 5.48336C19.9634 5.64567 20 5.82186 20 6.00012C20 6.17838 19.9634 6.35457 19.8926 6.51688C19.8218 6.67918 19.7185 6.82384 19.5897 6.94114L10.9906 11.6889C10.2143 12.395 9 11.8214 9 10.7479Z",fill:"currentColor"}}),e("path",{attrs:{d:"M0 10.7479V1.25231C0 0.177584 1.21428 -0.394774 1.99061 0.311299L10.5897 5.05911C10.7185 5.1764 10.8218 5.32106 10.8926 5.48336C10.9634 5.64567 11 5.82186 11 6.00012C11 6.17838 10.9634 6.35457 10.8926 6.51688C10.8218 6.67918 10.7185 6.82384 10.5897 6.94114L1.99061 11.6889C1.21428 12.395 0 11.8214 0 10.7479Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},2639:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0 10.4377V1.56234C0 0.331509 1.3463 -0.414414 2.37513 0.24639L9.28428 4.68405C10.2386 5.29698 10.2386 6.70302 9.28427 7.31596L2.37513 11.7536C1.3463 12.4144 0 11.6685 0 10.4377Z",fill:"currentColor"}}),e("path",{attrs:{d:"M10 1C10 0.447715 10.4477 4.91468e-09 11 4.91468e-09C11.5523 4.91468e-09 12 0.447715 12 1V11C12 11.5523 11.5523 12 11 12C10.4477 12 10 11.5523 10 11V1Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},1125:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0 0H3V14H0V0Z",fill:"currentColor"}}),e("path",{attrs:{d:"M9 0H12V14H9V0Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},1752:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M0 2C0 0.89543 0.895431 0 2 0C3.10457 0 4 0.895431 4 2V16C4 17.1046 3.10457 18 2 18C0.895431 18 0 17.1046 0 16V2Z",fill:"currentColor"}}),e("path",{attrs:{d:"M10 2C10 0.89543 10.8954 0 12 0C13.1046 0 14 0.895431 14 2V16C14 17.1046 13.1046 18 12 18C10.8954 18 10 17.1046 10 16V2Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},8088:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M16 8L2 0V16L16 8Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},8320:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M2 13.8524V2.14764C2 0.4635 3.94332 -0.56324 5.44148 0.329352L14.9428 6.18172C16.3524 7.02153 16.3524 8.97847 14.9428 9.81828L5.44148 15.6706C3.94332 16.5632 2 15.5365 2 13.8524Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},5775:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M12 0L2 6L12 12V0Z",fill:"currentColor"}}),e("path",{attrs:{d:"M0 0H2V12H0V0Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},3279:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M11 10.7479V1.25231C11 0.177584 9.78572 -0.394774 9.00939 0.311299L0.410336 5.05911C0.281456 5.1764 0.178165 5.32106 0.107391 5.48336C0.0366173 5.64567 0 5.82186 0 6.00012C0 6.17838 0.0366173 6.35457 0.107391 6.51688C0.178165 6.67918 0.281456 6.82384 0.410336 6.94114L9.00939 11.6889C9.78572 12.395 11 11.8214 11 10.7479Z",fill:"currentColor"}}),e("path",{attrs:{d:"M20 10.7479V1.25231C20 0.177584 18.7857 -0.394774 18.0094 0.311299L9.41034 5.05911C9.28146 5.1764 9.17816 5.32106 9.10739 5.48336C9.03662 5.64567 9 5.82186 9 6.00012C9 6.17838 9.03662 6.35457 9.10739 6.51688C9.17816 6.67918 9.28146 6.82384 9.41034 6.94114L18.0094 11.6889C18.7857 12.395 20 11.8214 20 10.7479Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},8903:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M12 10.4377V1.56234C12 0.331509 10.6537 -0.414414 9.62487 0.24639L2.71572 4.68405C1.76142 5.29698 1.76143 6.70302 2.71573 7.31596L9.62487 11.7536C10.6537 12.4144 12 11.6685 12 10.4377Z",fill:"currentColor"}}),e("path",{attrs:{d:"M2 1C2 0.447715 1.55228 4.91468e-09 1 4.91468e-09C0.447716 4.91468e-09 0 0.447715 0 1V11C0 11.5523 0.447716 12 1 12C1.55228 12 2 11.5523 2 11V1Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},5799:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M14.9668 4.00125C15.9909 5.83856 16.2684 8.022 15.7382 10.0712C15.2081 12.1205 13.9136 13.8676 12.1397 14.9283C10.3657 15.9891 8.2576 16.2765 6.27905 15.7274C4.3005 15.1783 2.6136 13.8376 1.58945 12.0003C1.51587 11.8702 1.46783 11.7264 1.44812 11.5771C1.42841 11.4278 1.43741 11.276 1.4746 11.1303C1.51179 10.9846 1.57644 10.8479 1.66482 10.7282C1.75321 10.6085 1.86358 10.5081 1.98959 10.4327C2.1156 10.3574 2.25475 10.3086 2.39904 10.2892C2.54333 10.2697 2.68991 10.2801 2.83033 10.3195C2.97075 10.359 3.10224 10.4269 3.21724 10.5192C3.33223 10.6116 3.42846 10.7265 3.50037 10.8575C4.08537 11.9061 4.97692 12.735 6.04635 13.2247C7.11577 13.7144 8.30776 13.8394 9.45027 13.5818C10.5928 13.3242 11.6267 12.6973 12.4028 11.7915C13.179 10.8857 13.6571 9.74794 13.7683 8.54239C13.8795 7.33685 13.618 6.12588 13.0215 5.08428C12.4251 4.04268 11.5245 3.22431 10.4497 2.7473C9.37497 2.27029 8.18168 2.15931 7.04208 2.43037C5.90248 2.70143 4.87551 3.34052 4.1094 4.25539L5.22682 4.69054C5.29508 4.71711 5.35591 4.76079 5.40389 4.81766C5.45186 4.87453 5.48548 4.94283 5.50174 5.01645C5.51801 5.09007 5.5164 5.16672 5.49708 5.23954C5.47775 5.31236 5.4413 5.37909 5.39099 5.43376L5.32303 5.49409L1.57974 8.1845C1.52595 8.22321 1.46451 8.24903 1.39988 8.26009C1.33525 8.27115 1.26906 8.26717 1.2061 8.24844C1.14314 8.22971 1.085 8.1967 1.03589 8.1518C0.986779 8.1069 0.947936 8.05125 0.922176 7.98887L0.895697 7.90019L0.010407 3.40795C-0.00387351 3.3356 -0.00101561 3.26074 0.0187361 3.18979C0.0384878 3.11883 0.0745451 3.05388 0.123822 3.00051C0.173099 2.94714 0.234129 2.90692 0.301687 2.88331C0.369246 2.8597 0.441322 2.8534 0.511748 2.86494L0.598247 2.8887L1.94869 3.41435C2.69327 2.31178 3.69435 1.42156 4.85929 0.826065C6.02423 0.230573 7.31537 -0.0509439 8.61324 0.00756825C9.91111 0.0660804 11.1738 0.462731 12.2843 1.16081C13.3949 1.85889 14.3175 2.83584 14.9668 4.00125Z",fill:"currentColor"}}),e("path",{attrs:{d:"M6.00146 10.2188V5.78117C6.00146 5.16575 6.67462 4.79279 7.18903 5.12319L10.6436 7.34202C11.1208 7.64849 11.1208 8.35151 10.6436 8.65798L7.18903 10.8768C6.67461 11.2072 6.00146 10.8342 6.00146 10.2188Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},8214:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.2251 2.30027C10.5769 1.95526 11.2186 1.89933 11.6584 2.17533C14.7826 4.13611 14.7826 7.86389 11.6584 9.82467C11.2186 10.1007 10.5769 10.0447 10.2251 9.69973C9.87326 9.35472 9.94456 8.85129 10.3843 8.57529C12.8943 7.00006 13.0015 5.06726 10.3843 3.42471C9.94456 3.14871 9.87326 2.64528 10.2251 2.30027Z",fill:"currentColor"}}),e("path",{attrs:{d:"M2.36303 3.03275H2.00146C0.896895 3.03275 0.00146484 3.91352 0.00146484 5V7.03275C0.00146484 8.11923 0.896895 9 2.00146 9H2.36303C2.56046 9 2.75347 9.05748 2.91773 9.1652L6.44688 11.8331C7.11144 12.2689 8.00158 11.8003 8.00158 11.0147V0.985281C8.00158 0.199663 7.11144 -0.268929 6.44688 0.166854L2.91774 2.86755C2.75347 2.97527 2.56046 3.03275 2.36303 3.03275Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},7750:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.2234 3.37534C14.5753 2.94408 15.217 2.87416 15.6568 3.21917C18.781 5.67016 18.781 10.3299 15.6568 12.7809C15.217 13.1259 14.5753 13.056 14.2234 12.6247C13.8716 12.1935 13.9429 11.5642 14.3827 11.2192C16.4864 9.56883 16.4864 6.43125 14.3827 4.78091C13.9429 4.4359 13.8716 3.8066 14.2234 3.37534Z",fill:"currentColor"}}),e("path",{attrs:{d:"M10.9937 14.9969L10.9937 14.9969L10.9869 14.9925L5.29633 11.3264C4.96913 11.1129 4.58687 11 4.19722 11H2C1.43209 11 1 10.5514 1 10.0327L1 5.96725C1 5.44855 1.43209 5 2 5H4.19722C4.58689 5 4.96917 4.88708 5.29637 4.6736L10.9869 1.0075L10.9869 1.00753L10.9937 1.00309C10.9958 1.00166 10.9975 1.00075 10.9986 1.0002C10.9988 1.00025 10.9991 1.0003 10.9993 1.00037C10.9996 1.00042 10.9998 1.00047 11 1.00053V14.9995C10.9998 14.9995 10.9996 14.9996 10.9993 14.9996C10.9991 14.9997 10.9988 14.9998 10.9986 14.9998C10.9975 14.9992 10.9958 14.9983 10.9937 14.9969Z",stroke:"currentColor","stroke-width":"2"}})])}),[],!1,null,null,null).exports},3384:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.19898 3.19751C0.493944 3.50164 0.00146484 4.19425 0.00146484 5V7.03275C0.00146484 8.11923 0.896895 9 2.00146 9H2.36303C2.56046 9 2.75347 9.05748 2.91773 9.1652L6.44688 11.8331C7.11144 12.2689 8.00158 11.8003 8.00158 11.0147V10.0001L1.19898 3.19751ZM12.7627 8.93234L11.514 7.68361C12.843 6.30614 12.5252 4.76829 10.3843 3.42465C9.94453 3.14865 9.87323 2.64522 10.2251 2.30021C10.5769 1.95521 11.2186 1.89927 11.6584 2.17527C14.3564 3.86853 14.7245 6.87951 12.7627 8.93234ZM8.00158 4.17124L5.05916 1.22882L6.44688 0.166856C7.11144 -0.268927 8.00158 0.199665 8.00158 0.985283V4.17124Z",fill:"currentColor"}}),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.31272 0.275003C1.71312 -0.105383 2.34608 -0.0891535 2.72646 0.311253L12.2265 10.3113C12.6068 10.7117 12.5906 11.3446 12.1902 11.725C11.7898 12.1054 11.1569 12.0892 10.7765 11.6888L1.27647 1.68875C0.89608 1.28835 0.912309 0.655388 1.31272 0.275003Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},8439:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var s=(0,i(1001).Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"1em",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M8.57766 3.7492L10 2.83286V5.17155L12 7.17155V0.985281C12 0.199663 11.1099 -0.268929 10.4453 0.166854L7.13072 2.30227L8.57766 3.7492Z",fill:"currentColor"}}),e("path",{attrs:{d:"M5.04886 5.87726L3.1716 4H2C0.89543 4 0 4.88077 0 5.96725V10.0327C0 11.1192 0.89543 12 2 12H4.19722C4.39465 12 4.58766 12.0575 4.75192 12.1652L10.4453 15.8331C11.1099 16.2689 12 15.8003 12 15.0147V12.8284L10 10.8284V13.1671L5.84013 10.4872C5.35015 10.1682 4.77886 10 4.19722 10H2V6H4.19722C4.48658 6 4.77337 5.95837 5.04886 5.87726Z",fill:"currentColor"}}),e("path",{attrs:{d:"M16.6432 11.8148C18.7364 9.24741 18.4076 5.37713 15.6568 3.21912C15.217 2.87411 14.5753 2.94403 14.2235 3.37529C13.8716 3.80655 13.9429 4.43585 14.3827 4.78086C16.1654 6.17937 16.4374 8.64587 15.1988 10.3703L16.6432 11.8148Z",fill:"currentColor"}}),e("path",{attrs:{d:"M3.34315 2.75734C2.95263 2.36681 2.95263 1.73365 3.34315 1.34313C3.73368 0.952601 4.36684 0.952601 4.75737 1.34313L16.6569 13.2426C17.0474 13.6331 17.0474 14.2663 16.6569 14.6568C16.2663 15.0474 15.6332 15.0474 15.2427 14.6568L3.34315 2.75734Z",fill:"currentColor"}})])}),[],!1,null,null,null).exports},6397:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return a}});i(7658);var s=i(6546),n=i(9318),o=i(5965),r={name:"VimeoPlayerIframe",components:{},props:{item:{type:Object,required:!0},realVimeoId:{type:String,required:!0},pluginVideoPageIndex:{type:Number,required:!0},isPhonePopup:{type:Boolean,required:!1},isPopupVideo:{type:Boolean,required:!1,default:!1,desc:"是否为弹出视频"},popupVideoProps:{type:Object,required:!1,desc:"弹出视频的属性"}},data(){return{vimeoPlayer:null,isShowCover:!0,VimeoPlayer:null}},async mounted(){await this.initVimeoPlayer(),this.createVimeoPlayer(),this.bindFlipEvent()},methods:{async initVimeoPlayer(){if(this.isYZPro)return;const e=i(8333);this.VimeoPlayer=e.default},createVimeoPlayer:async function(){try{if(await this.$nextTick(),this.isYZPro||!this.VimeoPlayer)return;this.vimeoPlayer=new this.VimeoPlayer(`VimeoPlayer${this.item.id}`,{id:Number.parseInt(this.realVimeoId)}),this.getVideoWidthHeight(),this.setAutopause(!1),(this.isAutoplay||this.isPhonePopup||this.isPopupVideo&&this.isAutoplay)&&this.playVideo(),this.isLoop&&this.vimeoPlayer.setLoop(!0),this.mutePlay&&this.vimeoPlayer.setVolume(0),this.vimeoPlayer.on("play",this.videoPlayEvent),this.vimeoPlayer.on("pause",this.videoPauseEvent),this.vimeoPlayer.on("ended",this.videoEndedEvent),this.vimeoPlayer.on("timeupdate",(e=>{this.checkIsCurrentPage()||this.isPhonePopup||this.isPopupVideo||this.pauseVideo()}))}catch(e){}},playVideo:function(){this.vimeoPlayer&&(this.isPhonePopup||this.isPopupVideo||this.checkIsCurrentPage())&&(this.isPhonePopup&&this.isIOS&&this.vimeoPlayer.setVolume(0),this.vimeoPlayer.play().catch((e=>{})))},pauseVideo:function(){this.vimeoPlayer&&this.vimeoPlayer?.pause().then((e=>{})).catch((e=>{}))},setAutopause:function(e){this.vimeoPlayer.setAutopause(e).then((e=>{})).catch((e=>{}))},videoCoverClick:function(){this.isShowCover=!1,this.vimeoPlayer&&this.playVideo()},videoPlayEvent:function(e){e&&(this.isShowCover=!1),this.isPlayBgSound=!0,this.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,window.bgSound&&window.bgSound.pause(),(0,n.hb)()),this.isPauseOtherVideoWhenPlay&&(0,n.bv)(this.vimeoPlayer),this.videoPlayObj.push(this.vimeoPlayer),(this.isH5Pro||this.isFlipPro)&&(0,n.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_play":"flip_pdf_media_play",gtagLabel:`vimeo_video_play ${this.realVimeoId}`,pageIndex:this.pluginVideoPageIndex+1})},videoPauseEvent:function(e){const t=this.videoPlayObj.find((e=>e?._originalElement===this.vimeoPlayer._originalElement));-1!==t&&this.videoPlayObj.splice(t,1),window.bgSound&&!this.isPlayBgSound&&window.bgSound.play(),(this.isH5Pro||this.isFlipPro)&&(0,n.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:`vimeo_video_pause ${this.realVimeoId}`,pageIndex:this.pluginVideoPageIndex+1})},videoEndedEvent:function(e){window.bgSound&&!this.isPlayBgSound&&window.bgSound.play(),(this.isH5Pro||this.isFlipPro)&&(0,n.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:`vimeo_video_pause ${this.realVimeoId}`,pageIndex:this.pluginVideoPageIndex+1})},vimeoPlayerDestroy:function(){this.vimeoPlayer&&(this.vimeoPlayer.destroy(),this.vimeoPlayer=null)},checkIsCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.pluginVideoPageIndex+1===e||t.indexOf(this.pluginVideoPageIndex+1)>-1},bindFlipEvent:function(){this.isPhonePopup||this.isPopupVideo||(this.isAutoplay&&s.Q.$on("SLIDER_ENTER_PAGE",(()=>{this.playVideo()})),s.Q.$on("SLIDER_LEAVE_PAGE",(()=>{this.pauseVideo()})),s.Q.$on("SLIDER_REFRESH_PAGE",(()=>{this.vimeoPlayerDestroy(),this.$nextTick((()=>{this.createVimeoPlayer()}))})))},unbindFlipEvent:function(){this.isPhonePopup||this.isPopupVideo||(this.isAutoplay&&s.Q.$off("SLIDER_ENTER_PAGE"),s.Q.$off("SLIDER_LEAVE_PAGE"),s.Q.$off("SLIDER_REFRESH_PAGE"))},getVideoWidthHeight:function(){const e=this.vimeoPlayer.getVideoWidth(),t=this.vimeoPlayer.getVideoHeight();Promise.all([e,t]).then((e=>{this.$emit("getWidthHeight",e)}))}},computed:{isAutoplay:function(){return this.isPopupVideo?this.popupVideoProps.isAutoPlay:"EVT_PageViewed"===this.item.moviePlayTriggerEvt},isLoop:function(){return this.isPopupVideo?this.popupVideoProps.isLoop:this.item.isLoop},mutePlay:function(){return this.isPopupVideo?this.popupVideoProps.mutePlay:this.item.mutePlay},videothumbUrl:function(){return this.isPopupVideo?"":this.item.thumbUrlFileName?this.item.thumbUrl:""},isShowVideoCover:function(){return!this.isPopupVideo&&(!this.isPhonePopup&&!(!this.isShowCover||!this.videothumbUrl))},isIOS:function(){return this.isPopupVideo?o.Z.state.isIOS:this.$store.state.isIOS},isH5Pro:function(){return this.isPopupVideo?o.Z.state.isH5Pro:this.$store.getters.isH5Pro},isYZPro:function(){return this.isPopupVideo?o.Z.state.isYZPro:this.$store.getters.isYZPro},videoPlayObj(){return this.isPopupVideo?o.Z.state.videoPlayObj:this.$store.state.videoPlayObj},isPlayBgSound:{get(){return this.isPopupVideo?o.Z.state.isPlayBgSound:this.$store.state.isPlayBgSound},set(e){if(this.isPopupVideo)return o.Z.state.isPlayBgSound=e;this.$store.state.isPlayBgSound=e}},isFlipPro:function(){return this.isPopupVideo?o.Z.state.isFlipPro:this.$store.getters.isFlipPro},isPauseOtherVideoWhenPlay:function(){return this.isPopupVideo?this.popupVideoProps.isPauseOtherVideoWhenPlay:this.item.isPauseOtherVideoWhenPlay},isPauseBgSoundWhenPlay:function(){return this.isPopupVideo?this.popupVideoProps.isPauseBgSoundWhenPlay:this.item.isPauseBgSoundWhenPlay}},beforeDestroy(){this.vimeoPlayerDestroy(),this.unbindFlipEvent()}},a=(0,i(1001).Z)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"VimeoPlayerIframe"},[e.isShowVideoCover?t("div",{staticClass:"video-cover",style:{"background-image":`url(${e.videothumbUrl})`},on:{click:e.videoCoverClick}},[t("div",{staticClass:"vimeo-play-button"})]):e._e(),t("div",{staticClass:"vimeo-player-container",attrs:{id:`VimeoPlayer${e.item.id}`,"data-vimeo-width":"100%","data-vimeo-height":"100%"}})])}),[],!1,null,"51ae0f53",null).exports},7162:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return a}});i(7658);var s=i(6546),n=i(9318),o=i(5965),r={name:"YoutubePlayerIframe",components:{},data(){return{youtubeApiSrc:"",youtubePlayer:null,isShowCover:!0,youtubePlayerStatus:-1,playerEvents:{onStateChange:this.onStateChange},playerVars:{}}},props:{item:{type:Object,required:!0},realYouTubeId:{type:String,required:!0},pluginVideoPageIndex:{type:Number,required:!0},isPhonePopup:{type:Boolean,required:!1},isPopupVideo:{type:Boolean,required:!1,default:!1,desc:"是否为弹出视频"},popupVideoProps:{type:Object,required:!1,desc:"弹出视频的属性"}},mounted(){this.youtubeApiSrc="https://www.youtube.com/iframe_api",this.createYoutubeApi(),this.createPlayer(),this.bindFlipEvent()},watch:{youtubePlayerStatus:function(e){if(!this.isPhonePopup&&(1===e&&(this.isShowCover=!1,this.isPlayBgSound=!0,this.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,window.bgSound&&window.bgSound.pause(),(0,n.hb)()),this.isPauseOtherVideoWhenPlay&&(0,n.bv)(this.youtubePlayer),this.videoPlayObj.push({type:"youtube",playObj:this.youtubePlayer}),(this.isH5Pro||this.isFlipPro)&&(0,n.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_play":"flip_pdf_media_play",gtagLabel:`youtube_video_play ${this.realYouTubeId}`,pageIndex:this.pluginVideoPageIndex+1})),2===e||0===e)){const e=this.videoPlayObj.find((e=>e?.playObj?.g===this.youtubePlayer.g));-1!==e&&this.videoPlayObj.splice(e,1),(this.isH5Pro||this.isFlipPro)&&(0,n.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:`youtube_video_pause ${this.realYouTubeId}`,pageIndex:this.pluginVideoPageIndex+1}),window.bgSound&&window.bgSound.play()}}},methods:{createYoutubeApi:function(){if(document.querySelector("#YouTubeApi"))return;const e=document.createElement("script");e.setAttribute("src",this.youtubeApiSrc),e.setAttribute("id","YouTubeApi"),this.loadScriptEvent(e),document.head.appendChild(e)},loadScriptEvent:function(e){e.addEventListener("error",(()=>{const e=document.querySelector("#YouTubeApi");e&&e.remove(),this.createYoutubeApi()}))},createPlayer:function(){const e=window.setInterval((()=>{void 0!==window.YT&&window.YT.loaded&&(this.createYoutubePlayer(),window.clearInterval(e))}),500)},createYoutubePlayer:function(){this.releaseYoutubeObj(),this.isLoop&&(this.playerVars.loop=1,this.playerVars.playlist=this.realYouTubeId),this.isAutoplay&&(this.isPopupVideo||this.checkIsCurrentPage())&&(this.playerVars.autoplay=1),this.isPhonePopup&&(this.playerVars.autoplay=1),this.mutePlay&&(this.playerVars.mute=1);try{const e=`youtubePlayer${this.item.id}`,t={height:"100%",width:"100%",videoId:this.realYouTubeId,playerVars:this.playerVars,events:this.playerEvents};this.youtubePlayer=new window.YT.Player(e,t),this.phoneAutoPlayVideo()}catch(e){}},onStateChange:function(e){this.youtubePlayerStatus=e.data},releaseYoutubeObj:function(){this.youtubePlayer&&(this.youtubePlayer.destroy(),this.youtubePlayer=null)},videoCoverClick:function(){this.isShowCover=!1,this.playVideo()},playVideo:function(){if(!this.checkIsCurrentPage()&&!this.isPhonePopup)return;const e=window.setInterval((()=>{if(this.youtubePlayer&&window.YT&&window.YT.loaded)try{this.isIOS&&this.isPhonePopup&&this.youtubePlayer.mute(),this.youtubePlayer.playVideo(),window.clearInterval(e)}catch(e){}}),500)},pauseVideo:function(){this.youtubePlayer&&1===this.youtubePlayerStatus&&this.youtubePlayer?.pauseVideo()},checkIsCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.pluginVideoPageIndex+1===e||t.indexOf(this.pluginVideoPageIndex+1)>-1},bindFlipEvent:function(){this.isPhonePopup||(this.isAutoplay&&s.Q.$on("SLIDER_ENTER_PAGE",(()=>{this.playVideo()})),s.Q.$on(`PAGE_START_FLIP_${this.pluginVideoPageIndex}`,(()=>{this.checkIsCurrentPage()||this.pauseVideo()})),s.Q.$on("SLIDER_LEAVE_PAGE",(()=>{this.pauseVideo()})),s.Q.$on("SLIDER_REFRESH_PAGE",(()=>{this.createPlayer()})))},unbindFlipEvent:function(){this.isPhonePopup||(this.isAutoplay&&s.Q.$off("SLIDER_ENTER_PAGE"),s.Q.$off("SLIDER_LEAVE_PAGE"),s.Q.$off("SLIDER_REFRESH_PAGE"))},phoneAutoPlayVideo:function(){this.isPhonePopup&&this.playVideo()}},computed:{isAutoplay:function(){return this.isPopupVideo?this.popupVideoProps.isAutoPlay:"EVT_PageViewed"===this.item.moviePlayTriggerEvt},isLoop:function(){return this.isPopupVideo?this.popupVideoProps.isLoop:this.item.isLoop},mutePlay:function(){return this.isPopupVideo?this.popupVideoProps.mutePlay:this.item.mutePlay},thumbUrlFileName:function(){return this.isPopupVideo?"":this.item.thumbUrlFileName},videothumbUrl:function(){return this.isPopupVideo?"":this.thumbUrlFileName?this.item.thumbUrl:""},isShowVideoCover:function(){return!this.isPopupVideo&&(!this.isPhonePopup&&!(!this.isShowCover||!this.videothumbUrl))},isIOS:function(){return this.isPopupVideo?o.Z.state.isIOS:this.$store.state.isIOS},isH5Pro:function(){return this.isPopupVideo?o.Z.state.isH5Pro:this.$store.getters.isH5Pro},videoPlayObj(){return this.isPopupVideo?o.Z.state.videoPlayObj:this.$store.state.videoPlayObj},isPlayBgSound:{get(){return this.isPopupVideo?o.Z.state.isPlayBgSound:this.$store.state.isPlayBgSound},set(e){if(this.isPopupVideo)return o.Z.state.isPlayBgSound=e;this.$store.state.isPlayBgSound=e}},isFlipPro:function(){return this.isPopupVideo?o.Z.state.isFlipPro:this.$store.getters.isFlipPro},isPauseOtherVideoWhenPlay:function(){return this.isPopupVideo?this.popupVideoProps.isPauseOtherVideoWhenPlay:this.item.isPauseOtherVideoWhenPlay},isPauseBgSoundWhenPlay:function(){return this.isPopupVideo?this.popupVideoProps.isPauseBgSoundWhenPlay:this.item.isPauseBgSoundWhenPlay}},beforeDestroy(){this.releaseYoutubeObj(),this.unbindFlipEvent()}},a=(0,i(1001).Z)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"YoutubePlayerIframe"},[e.isShowVideoCover?t("div",{staticClass:"video-cover",style:{"background-image":`url(${e.videothumbUrl})`},on:{click:e.videoCoverClick}},[t("div",{staticClass:"youtube-play-button"})]):e._e(),t("div",{attrs:{id:`youtubePlayer${e.item.id}`}})])}),[],!1,null,"30060816",null).exports},3204:function(e,t,i){"use strict";i.r(t)},9375:function(e,t,i){"use strict";i.r(t)},1064:function(e,t,i){"use strict";i.r(t)},777:function(e,t,i){"use strict";i.r(t)},1173:function(e,t,i){"use strict";i.d(t,{$O:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","addWechat"),(0,s.Z)(this,"imgList",[]),(0,s.Z)(this,"logoObj",new r),this.type=e.type??"addWechat",this.imgList=e.imgList?e.imgList.map((e=>new o(e))):[],e.logoObj&&(this.logoObj=new r(e.logoObj))}}class o{constructor(e={}){(0,s.Z)(this,"isLoadingThumb",!1),(0,s.Z)(this,"url",""),(0,s.Z)(this,"title",""),(0,s.Z)(this,"desc",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"fileName",""),this.isLoadingThumb=e.isLoadingThumb??!1,this.url=e.url??"",this.title=e.title??"",this.desc=e.desc??"",this.isNewFile=e.isNewFile??!0,this.fileName=e.fileName??""}}class r{constructor(e={}){(0,s.Z)(this,"isLoadingThumb",!1),(0,s.Z)(this,"url",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"fileName",""),this.isLoadingThumb=e.isLoadingThumb??!1,this.url=e.url??"",this.isNewFile=e.isNewFile??!0,this.fileName=e.fileName??""}}},5049:function(e,t,i){"use strict";i.d(t,{t:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","attachmentFile"),(0,s.Z)(this,"fileObject",new o),this.type=e.type??"attachmentFile",e.fileObject&&(this.fileObject=new o(e.fileObject))}}class o{constructor(e={}){(0,s.Z)(this,"name",""),(0,s.Z)(this,"url",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"fileName",""),this.url=e.url??"",this.name=e.name??"",this.isNewFile=e.isNewFile??!1,this.fileName=e.fileName??""}}},3683:function(e,t,i){"use strict";i.d(t,{$:function(){return n},W:function(){return o}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"bgColor","#f8f8f8"),(0,s.Z)(this,"fontColor","#333940"),(0,s.Z)(this,"fontFamily","Arial"),(0,s.Z)(this,"fontSize",13),(0,s.Z)(this,"textAlign","left"),(0,s.Z)(this,"elements",[]),(0,s.Z)(this,"lineHeight",1),(0,s.Z)(this,"letterSpacing",0),(0,s.Z)(this,"content",""),(0,s.Z)(this,"defaultContent",""),this.bgColor=e.bgColor??this.bgColor,this.fontColor=e.fontColor??this.fontColor,this.fontFamily=e.fontFamily??this.fontFamily,this.fontSize=e.fontSize??this.fontSize,this.textAlign=e.textAlign??this.textAlign,this.elements=e.elements??this.elements,this.lineHeight=e.lineHeight??this.lineHeight,this.letterSpacing=e.letterSpacing??this.letterSpacing,this.content=e.content??this.content,this.defaultContent=e.defaultContent??this.defaultContent}}class o{constructor(e={}){(0,s.Z)(this,"contentProps",new n),(0,s.Z)(this,"windowWP",{maxW:375,winP:"Top Right"}),(0,s.Z)(this,"lineOpts",{isAddLine:!0,lineColor:"#333940",lineType:"dashed"}),(0,s.Z)(this,"commentWidth",0),(0,s.Z)(this,"commentHeight",0),(0,s.Z)(this,"autoDisappear",!0),(0,s.Z)(this,"edited",!1),this.contentProps=new n(e.contentProps??{}),this.windowWP=e.windowWP?Object.assign(this.windowWP,e.windowWP):{maxW:375,winP:"Top Right"},this.lineOpts=e.lineOpts?Object.assign(this.lineOpts,e.lineOpts):{isAddLine:!0,lineColor:"#333940",lineType:"dashed"},this.commentWidth=e.commentWidth??this.commentWidth,this.commentHeight=e.commentHeight??this.commentHeight,this.autoDisappear=e.autoDisappear??this.autoDisappear,this.edited=e.edited??this.edited}}},9997:function(e,t,i){"use strict";i.d(t,{X:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","iframe"),(0,s.Z)(this,"url",""),(0,s.Z)(this,"urlHead","https://"),(0,s.Z)(this,"title",""),(0,s.Z)(this,"newTime",""),this.type=e.type??"link",this.url=e.url??"",this.urlHead=e.urlHead??"https://",this.title=e.title??"",this.newTime=e.newTime??""}}},3858:function(e,t,i){"use strict";i.d(t,{W:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","link"),(0,s.Z)(this,"url",""),(0,s.Z)(this,"urlHead","https://"),(0,s.Z)(this,"target",0),(0,s.Z)(this,"isHasUrlParams",!0),(0,s.Z)(this,"originEmail",""),(0,s.Z)(this,"originUrl",""),this.type=e.type??"link",this.url=e.url??"",this.originEmail=e.originEmail??"",this.originUrl=e.originUrl??"",this.urlHead=e.urlHead??"https://",this.target=e.target??0,this.isHasUrlParams=e.isHasUrlParams??!0}}},4493:function(e,t,i){"use strict";i.d(t,{w:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","openPage"),(0,s.Z)(this,"label","页: 1"),(0,s.Z)(this,"page",1),this.type=e.type??"openPage",this.label=e.label??"页: 1",this.page=e.page??1}}},6783:function(e,t,i){"use strict";i.d(t,{G:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","phone"),(0,s.Z)(this,"phoneNumber",""),this.type=e.type??"phone",this.phoneNumber=e.phoneNumber??""}}},3595:function(e,t,i){"use strict";i.d(t,{QB:function(){return o}});var s=i(7873),n=i(7175);class o{constructor(e={}){(0,s.Z)(this,"type","playAudio"),(0,s.Z)(this,"audioList",[]),(0,s.Z)(this,"specifyAudioList",[]),(0,s.Z)(this,"selectSpecifyAudioListId",""),(0,s.Z)(this,"audioType",1),(0,s.Z)(this,"link",""),(0,s.Z)(this,"isPauseBgSoundWhenPlay",!1),(0,s.Z)(this,"pauseOrStopOnReClick",0),(0,s.Z)(this,"rotateWhenPlay",!1),this.type=e.type??"playAudio",this.selectSpecifyAudioListId=e.selectSpecifyAudioListId??"",this.audioType=e.audioType??1,this.link=e.link??"",this.isPauseBgSoundWhenPlay=e.isPauseBgSoundWhenPlay??!1,this.rotateWhenPlay=e.rotateWhenPlay??!1,this.pauseOrStopOnReClick=e.pauseOrStopOnReClick??0,this.audioList=e.audioList?e.audioList.map((e=>new r(e))):[],this.specifyAudioList=e.specifyAudioList?e.specifyAudioList.map((e=>new a(e))):[]}}class r{constructor(e={}){(0,s.Z)(this,"name",""),(0,s.Z)(this,"fileName",""),(0,s.Z)(this,"localLink",""),(0,s.Z)(this,"percentage",100),(0,s.Z)(this,"uploadStatus","success"),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"uid",0),this.name=e.name??"",this.localLink=e.localLink??"",this.uploadStatus=e.uploadStatus??"success",this.isNewFile=e.isNewFile??!0,this.fileName=e.fileName??!0,this.uid=e.uid??0}}class a{constructor(e={}){(0,s.Z)(this,"id",""),(0,s.Z)(this,"isTryListen",!1),(0,s.Z)(this,"isSelect",!1),(0,s.Z)(this,"musicList",[]),this.id=e.id??"",this.isTryListen=e.isTryListen??!1,this.isSelect=e.isSelect??!1,e.musicList&&(this.musicList=e.musicList.map((e=>new n.U(e))))}}},9514:function(e,t,i){"use strict";i.d(t,{Y:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","popupImg"),(0,s.Z)(this,"imgList",[]),(0,s.Z)(this,"imgCanBeSave",!0),(0,s.Z)(this,"newTime",""),this.rotateX=e.rotateX,this.rotateY=e.rotateY,this.type=e.type??"popupImg",this.imgCanBeSave=e.imgCanBeSave??!0,this.newTime=e.newTime??"",this.fileName=e.fileName,this.imgList=e.imgList?e.imgList.map((e=>(e.fileName===this.fileName&&(e.rotateX=this.rotateX,e.rotateY=this.rotateY),new o(e)))):[]}}class o{constructor(e={}){(0,s.Z)(this,"isLoading",!0),(0,s.Z)(this,"isLoadingThumb",!1),(0,s.Z)(this,"url",""),(0,s.Z)(this,"title",""),(0,s.Z)(this,"desc",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"fileName",""),(0,s.Z)(this,"name",""),(0,s.Z)(this,"uid",0),(0,s.Z)(this,"link",""),(0,s.Z)(this,"newTime",""),(0,s.Z)(this,"rotateX",0),(0,s.Z)(this,"rotateY",0),this.isLoading=e.isLoading??!0,this.isLoadingThumb=e.isLoadingThumb??!1,this.url=e.url??"",this.title=e.title??"",this.desc=e.desc??"",this.isNewFile=e.isNewFile??!0,this.fileName=e.fileName??"",this.name=e.name??"",this.uid=e.uid??0,this.link=e.link??"",this.rotateX=e.rotateX??0,this.rotateY=e.rotateY??0}}},2696:function(e,t,i){"use strict";i.d(t,{s:function(){return o}});var s=i(7873),n=i(3683);class o{constructor(e=new r){(0,s.Z)(this,"titleProps",{bgColor:"#333940",fontColor:"#ffffff",fontFamily:"Arial",fontSize:15,textAlign:"left",elements:[],content:""}),(0,s.Z)(this,"contentProps",new n.$),(0,s.Z)(this,"windowWH",{maxW:375,maxH:160}),(0,s.Z)(this,"imageOpts",{isAddImage:!1,imgPosition:0,isNewFile:!0,imageUrl:"",name:"",imgW:86,imgH:86,isClock:!0}),(0,s.Z)(this,"btnOpts",{isAddBtn:!1,bgColor:"#333940",fontColor:"#ffffff",isClickClose:!0,btnLinkHead:"https://",btnLink:"",btnText:"confirm"}),(0,s.Z)(this,"editored",!1),(0,s.Z)(this,"newTime",""),e.titlePropsContent&&(this.titleProps.content=e.titlePropsContent),e.btnOptsBtnText&&(this.btnOpts.btnText=e.btnOptsBtnText),e.titleProps&&Object.assign(this.titleProps,e.titleProps),e.contentProps&&Object.assign(this.contentProps,e.contentProps),e.windowWH&&Object.assign(this.windowWH,e.windowWH),e.imageOpts&&Object.assign(this.imageOpts,e.imageOpts),e.btnOpts&&Object.assign(this.btnOpts,e.btnOpts),e.newTime&&(this.newTime=e.newTime)}}class r{constructor(){(0,s.Z)(this,"titlePropsContent",""),(0,s.Z)(this,"btnOptsBtnText",""),(0,s.Z)(this,"newTime","")}}},3765:function(e,t,i){"use strict";i.d(t,{J:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","popupVideo"),(0,s.Z)(this,"videoInfo",new o),(0,s.Z)(this,"newTime",""),this.type=e.type??"popupVideo",this.newTime=e.newTime??"",e.videoInfo&&(this.videoInfo=new o(e.videoInfo))}}class o{constructor(e={}){(0,s.Z)(this,"name",""),(0,s.Z)(this,"videoName",""),(0,s.Z)(this,"height",0),(0,s.Z)(this,"width",0),(0,s.Z)(this,"title",""),(0,s.Z)(this,"videoType",""),(0,s.Z)(this,"link",""),(0,s.Z)(this,"youTubeId",""),(0,s.Z)(this,"vimeoId",""),(0,s.Z)(this,"generalCode",""),(0,s.Z)(this,"localLink",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"isAutoPlay",!1),(0,s.Z)(this,"isLoop",!1),(0,s.Z)(this,"isPauseBgSoundWhenPlay",!1),(0,s.Z)(this,"mutePlay",!1),(0,s.Z)(this,"isPauseOtherVideoWhenPlay",!1),Object.assign(this,e)}}},1637:function(e,t,i){"use strict";i.d(t,{C:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","quiz"),(0,s.Z)(this,"quizList",[]),(0,s.Z)(this,"newTime",""),this.type=e.type??"quiz",this.newTime=e.newTime??"",this.quizList=e.quizList?e.quizList.map((e=>new o(e))):[]}}class o{constructor(e={}){(0,s.Z)(this,"type","single"),(0,s.Z)(this,"question",""),(0,s.Z)(this,"options",[]),this.type=e.type??"single",this.question=e.question??"",this.options=e.options??[]}}},8750:function(e,t,i){"use strict";i.d(t,{G:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","runJavaScript"),(0,s.Z)(this,"javaScriptCode",""),this.type=e.type??"runJavaScript",this.javaScriptCode=e.javaScriptCode??""}}},8587:function(e,t,i){"use strict";i.d(t,{h:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"type","showArticle"),this.type=e.type??"showArticle",this.articleId=e.articleId??"-1",this.newTime=e.newTime??"",this.title=e.title??"",this.subTitle=e.subTitle??"",this.categoryId=e.categoryId??"0",this.author=e.author??"",this.articleTextList=e.articleTextList??[]}}},2497:function(e,t,i){"use strict";i.d(t,{m:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"areaLeft",0),(0,s.Z)(this,"areaTop",0),(0,s.Z)(this,"areaWidth",0),(0,s.Z)(this,"areaHeight",0),(0,s.Z)(this,"thumbSrc",""),(0,s.Z)(this,"thumbFileName",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"areaType","current"),this.areaLeft=e.areaLeft??0,this.areaTop=e.areaTop??0,this.areaWidth=e.areaWidth??0,this.areaHeight=e.areaHeight??0,this.areaType=e.areaType??"current",this.thumbSrc=e.thumbSrc??"",this.thumbFileName=e.thumbFileName??""}}},1159:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var s=i(7873),n=i(4118),o=i(5411);class r{constructor(...e){(0,s.Z)(this,"type",""),(0,s.Z)(this,"style",{opacity:1,left:"0px",top:"0px",width:"100px",height:"100px"}),(0,s.Z)(this,"CID",0),(0,s.Z)(this,"isOpenComponent",!0),(0,s.Z)(this,"id",r.getUniqueId()),(0,s.Z)(this,"isCommercial",0),(0,s.Z)(this,"isHidden",!1),(0,s.Z)(this,"isLocked",!1),(0,s.Z)(this,"rotate",0),(0,s.Z)(this,"rotateX",0),(0,s.Z)(this,"rotateY",0),(0,s.Z)(this,"isShowShadow",!1),(0,s.Z)(this,"isShowMaskImage",!1),(0,s.Z)(this,"range",0),(0,s.Z)(this,"animations",new o.FK),(0,s.Z)(this,"existStartTime",-1),(0,s.Z)(this,"existEndTime",-1),(0,s.Z)(this,"filter",Object.assign({selectedIndex:0},new o.x)),(0,s.Z)(this,"pathHeight",0),(0,s.Z)(this,"pathWidth",0),(0,s.Z)(this,"animationFiles",{maskFiles:{in:{url:"",fileName:"",isNewFile:!1},out:{url:"",fileName:"",isNewFile:!1}},maskImageFile:new o.En,scrawlFiles:{in:new o.X0},outEraseFiles:{out:new o.X0},handPaintedFiles:{in:new o.X0}}),(0,s.Z)(this,"scrawlConfig",{in:new o.A6}),(0,s.Z)(this,"maskConfig",{in:new o.W$,out:new o.W$}),(0,s.Z)(this,"outEraseConfig",{out:new o.fB}),(0,s.Z)(this,"isSystemTeamplateResource",!1),(0,s.Z)(this,"isTeamResource",!1),(0,s.Z)(this,"base64Data",""),(0,s.Z)(this,"trackItemToEdit",!1),(0,s.Z)(this,"actionList",[]),(0,s.Z)(this,"isPlayingActAnime",!1),(0,s.Z)(this,"actAnimeTime",-1),(0,s.Z)(this,"actIsHidden",!1),(0,s.Z)(this,"isActionHideCase",!1),(0,s.Z)(this,"showOrHideIsFirstHide",!1),(0,s.Z)(this,"showOrHideTriggerType",0),(0,s.Z)(this,"hiddenClickable",!1),this.setConfig(this,...e)}setConfig(...e){return n.Z.deepAssign(this,...e)}static getUniqueId(){return Math.random().toString().substring(3)+Date.now().toString().slice(-5)}}},4402:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var s=i(1159);class n extends s.Z{constructor(e){super({name:"形状",type:"svg",style:{width:e.style?e.style.width:"",height:e.style?e.style.height:""},svg:{svgViewBox:"0 0 100 100",originViewBox:"0 0 100 100",lastViewBox:"0 0 100 100"},isQRCode:!1,urlPrefix:"http://",qrcodeUrl:"www.xiuzhan365.com",gNode:e.gNode?e.gNode.transform:{transform:"translate(0, 0) scale(1, 1)"},isBGI:!1,isPainted:!1,isUpload:!1,svgCode:"",svgUrl:"",userHasChangedColor:!0,gradientColorList:[],originColorList:[],pathViewBox:e.svg?e.svg.svgViewBox:"0 0 100 100",pathTransform:e.gNode?e.gNode.transform:"translate(0, 0) scale(1, 1)",paintSvgCode:"",paintPathLengthList:[],strokeWidthList:[],originstrokeWidthList:[],qrcodeGap:15,isQRCodeImg:!1,qrcodeImgSrc:""},e)}}},186:function(e,t,i){"use strict";i.d(t,{$h:function(){return d},i_:function(){return m},xJ:function(){return u}});i(1703),i(7658);var s=i(5705),n=i(7746),o=i(6546),r=i(5965),a=i(144);const l=[],d=({type:e="",audioItem:t={},pageIndex:i=0,option:n={}})=>{const o=(0,s.Lg)(t,i);if(o){switch(e){case"play":if(void 0!==window?.handleMultimediaSound&&window.handleMultimediaSound("play"),r.Z.state.isForbidPluginMusic)break;if(t.isPlayAcrossPage&&(0,s.En)(t)){h(n,o,t,i);break}(0,s.OO)(i)&&h(n,o,t,i);break;case"pause":p(),o.paused||o.pause(),void 0!==window?.handleMultimediaSound&&window.handleMultimediaSound("pause");break;case"replay":if(!o.src)return;o.currentTime=0,o.play();break;case"mute":o.volume=0;break;case"unMute":o.volume=n.originVolume?n.originVolume:.5;break;case"setVolume":o.volume=void 0!==n.volume?n.volume:.5;break;case"timeUpdate":o.currentTime=n.currentTime?n.currentTime:0;break;case"setSrc":o.src=n.src?n.src:"";break;default:throw new Error("incorrect type")}return o}},h=(e,t,i,n)=>{if(!t.paused)return;if((0,s.xY)(i,"musicSkin")&&3===i.musicSkin)return;t.volume=i.volume/100;if(!(0,s.xY)(e,"delay"))return void t.play().then((()=>{w(i,n)})).catch((()=>{s.IS&&c(t)}));if(e.noDelay)return void t.play().then((()=>{w(i,n)})).catch((()=>{s.IS&&c(t)}));const o=window.setTimeout((()=>{t.play().then((()=>{w(i,n)})).catch((()=>{s.IS&&c({audio:t,pageIndex:n})}))}),1e3*e.delay);l.push(o)},c=({audio:e,audioItem:t,pageIndex:i})=>{window.WeixinJSBridge?window.WeixinJSBridge.invoke("getNetworkType",{},(function(){e.play().then((()=>{w(t,i)}))}),!1):document.addEventListener("WeixinJSBridgeReady",(function(){window.WeixinJSBridge.invoke("getNetworkType",{},(function(){e.play().then((()=>{w(t,i)}))}))}),!1)},u=(e,t)=>{if(!(0,s.xY)(t,"isPlayAcrossPage")||!t.isPlayAcrossPage)return;(0,s.En)(t)||(e.pause(),void 0!==window?.handleMultimediaSound&&window.handleMultimediaSound("stop"))},p=()=>{0!==l.length&&(l.forEach((e=>{window.clearTimeout(e)})),l.length=0)},m=e=>{o.Q.$on("SLIDER_ENTER_PAGE",(()=>{g(e)})),o.Q.$on("MUSIC_ENDED_EVENT",(t=>{f(t,e)}))},g=e=>{v()},f=(e,t)=>{const i=((e,t)=>{const{currentPages:i}=e,s=i.length>1?i.join("-"):i.join(""),o=r.Z.state.playedPluginMusicItems.get(s);if(!o)return;let a=o.currentPlayerIndex,l=o.pageIndex+1,d={};if(t[l].length-1>a&&(d=t[l][++a]),++l,n.P6.isEmptyObject(d)&&t[l]){let e=t[l];e.length>0&&(d=e[0])}return d})(e,t);if(n.P6.isEmptyObject(i))return;const s=i.pluginMusic,o=i.pageIndex,a="EVT_PageViewed"===s.moviePlayTriggerEvt,l=!!s.playInSequence&&s.playInSequence,h=s.playFromSeconds;if(!a||!l)return;const c={};h>0&&(c.delay=h),d({type:"play",audioItem:s,pageIndex:o,option:c})},w=(e,t)=>{a.default.set(e,"isPlayed",!0),y(e,t)},y=(e,t)=>{const i=((e,t)=>{const i=r.Z.state.autoPlayList;if(!i[e+1])return 0;let s=0;return s=i[e+1].findIndex((e=>e.pluginMusic.id===t.id)),-1===s&&(s=0),s})(t,e);r.Z.commit("UPDATE_MUSIC_INDEX",{pageIndex:t,currentPlayerIndex:i});const{currentPages:n}=(0,s.KK)();n&&r.Z.commit("SAVE_PLAYED_PLUGIN_MUSIC",{playItem:{pageIndex:t,currentPages:n,currentPlayerIndex:i,pluginMusicItem:e}})},v=()=>{const{currentPages:e}=(0,s.KK)();e&&r.Z.commit("UPDATE_MUSIC_INDEX",{pageIndex:Math.min(...e)-1,currentPlayerIndex:0})}},5705:function(e,t,i){"use strict";i.d(t,{En:function(){return h},IS:function(){return d},I_:function(){return c},KK:function(){return w},LY:function(){return g},Lg:function(){return m},OO:function(){return a},Ru:function(){return u},Vm:function(){return l},iE:function(){return f},wJ:function(){return y},xY:function(){return r}});i(7658);var s=i(5965),n=i(7226),o=i(7452);const r=(e,t)=>!(!(0,n.Z)(e)||!t)&&(0,o.Z)(e,t),a=e=>{const{currentPageIndex:t,currentPages:i}=w();return!(!t||!i)&&(e+1===t||i.indexOf(e+1)>-1)},l=()=>{const e=u(),t=s.Z.state.globalAudioItems;if(0===e.length||0===t.length)return!0;let i=!0;for(let s=0;s{const e=navigator.userAgent;return/MicroMessenger/i.test(e)},h=e=>{const{currentPages:t}=w();if(!t)return!1;if(0===t.length)return!1;const i=e.playFromPage,s=e.playToPage;return 1===t.length?!(t[0]s):t.length>1&&(!(t[1]s))},c=(e,t)=>{const i=m(e,t);if(i)return i.volume},u=()=>{const e=p(),t=s.Z.state.globalAudioItems;if(0===e.length||0===t.length)return[];let i=[];return e.forEach((e=>{e.paused||i.push(e)})),i},p=()=>document.querySelectorAll(".audio-container audio"),m=(e,t)=>{if(!e)return null;let i=null;i=e.isPlayAcrossPage?`#audio${t}${e.id}acrossPage`:`#audio${t}${e.id}`;return document.querySelector(i)},g=()=>{const e=document.querySelectorAll(".audio-container audio");if(0===e.length)return[];let t=[];return e.forEach((e=>{e.paused||t.push(e)})),t},f=(e,t)=>{const{currentPages:i}=w();if(!i)return;const s=i.length;if(1===s&&t+1===i[0]){if(!r(e,"items"))return null;let t=e.items;if(0===t.length)return null;return t.find((e=>{if("pluginMusic"===e.type&&"EVT_PageViewed"===e.moviePlayTriggerEvt)return e}))}if(2===s&&i.includes(t+1)){if(!r(e,"items"))return null;let t=e.items;if(0===t.length)return null;return t.find((e=>{if("pluginMusic"===e.type&&"EVT_PageViewed"===e.moviePlayTriggerEvt)return e}))}return null},w=()=>{if(!window.BookInfo)return{currentPageIndex:void 0,currentPages:void 0};return{currentPageIndex:window.BookInfo.getCurrentPageIndex(),currentPages:window.BookInfo.getCurrentPages()}},y=()=>{const e=u();if(0===e.length)return!1;return!!e.find((e=>{const t=e.getAttribute("id");if(t&&t.includes("acrossPage"))return e}))}},2082:function(e,t,i){"use strict";i.d(t,{i:function(){return o}});var s=i(7873),n=(i(2696),i(3765),i(3858),i(4493),i(6783),i(9997),i(9514),i(3595),i(8750),i(1173),i(5049),i(3683),i(8587),i(2497),i(1637),i(9360));class o{constructor(e={}){(0,s.Z)(this,"event","click"),(0,s.Z)(this,"isShowAddSelect",!1),(0,s.Z)(this,"isShowAddShowOrHide",!1),(0,s.Z)(this,"isExpanded",!0),(0,s.Z)(this,"isCollapse",!0),(0,s.Z)(this,"linkList",{}),(0,s.Z)(this,"openPage",{}),(0,s.Z)(this,"phone",{}),(0,s.Z)(this,"iframe",{}),(0,s.Z)(this,"popupImg",{}),(0,s.Z)(this,"showOrHideList",[]),(0,s.Z)(this,"animationList",[]),(0,s.Z)(this,"popupVideo",{}),(0,s.Z)(this,"popupMsg",{}),(0,s.Z)(this,"playAudio",{}),(0,s.Z)(this,"runJavaScript",{}),(0,s.Z)(this,"addWechat",{}),(0,s.Z)(this,"attachmentFile",{}),(0,s.Z)(this,"showArticle",{}),(0,s.Z)(this,"comment",{}),(0,s.Z)(this,"zoomArea",{}),(0,s.Z)(this,"quiz",{}),e.event&&(this.event=e.event),(0,n.Z)(e.isShowAddSelect)||(this.isShowAddSelect=e.isShowAddSelect),(0,n.Z)(e.isShowAddShowOrHide)||(this.isShowAddShowOrHide=e.isShowAddShowOrHide),(0,n.Z)(e.isExpanded)||(this.isExpanded=e.isExpanded),(0,n.Z)(e.isCollapse)||(this.isCollapse=e.isCollapse)}}},9647:function(e,t,i){"use strict";i.d(t,{L:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"url",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"isUpload",!1),(0,s.Z)(this,"isPixabay",!1),(0,s.Z)(this,"pixabayOriginUrl",""),(0,s.Z)(this,"fileName",""),(0,s.Z)(this,"imageInfor",{imgWidth:0,imgHeight:0,imgLeft:0,imgTop:0}),this.url=e.url??"",this.isNewFile=e.isNewFile??!0,this.isUpload=e.isUpload??!1,this.isPixabay=e.isPixabay??!1,this.pixabayOriginUrl=e.pixabayOriginUrl??"",this.fileName=e.fileName??"",e.imageInfor&&(this.imageInfor=e.imageInfor)}}},5411:function(e,t,i){"use strict";i.d(t,{FK:function(){return o},X0:function(){return r},fB:function(){return d},x:function(){return u},W$:function(){return h},En:function(){return p},A6:function(){return l},pj:function(){return m.p}});i(2082);var s=i(7873);class n{constructor(){(0,s.Z)(this,"duration",1),(0,s.Z)(this,"delay",0),(0,s.Z)(this,"name","一直显示"),(0,s.Z)(this,"animeKey","alwaysIn"),(0,s.Z)(this,"isAlways",!0),(0,s.Z)(this,"ease",""),(0,s.Z)(this,"easeFn",""),(0,s.Z)(this,"type","basic"),(0,s.Z)(this,"props",[{}]),(0,s.Z)(this,"advanced",{}),(0,s.Z)(this,"isHoverBorder",!1)}}class o{constructor(){(0,s.Z)(this,"in",new n),(0,s.Z)(this,"middle",[]),(0,s.Z)(this,"out",new n)}}class r{constructor(){(0,s.Z)(this,"url",""),(0,s.Z)(this,"fileName",""),(0,s.Z)(this,"isNewFile",!1),(0,s.Z)(this,"handId",-1),(0,s.Z)(this,"left",""),(0,s.Z)(this,"top",""),(0,s.Z)(this,"scale",1)}}class a{constructor(){(0,s.Z)(this,"maskType","scrawl"),(0,s.Z)(this,"opacity",1),(0,s.Z)(this,"maskImage","none"),(0,s.Z)(this,"repeat","no-repeat"),(0,s.Z)(this,"position","center center")}}class l extends a{constructor(...e){super(...e),(0,s.Z)(this,"maskType","scrawl")}}class d extends a{constructor(...e){super(...e),(0,s.Z)(this,"maskType","outErase")}}class h extends a{constructor(...e){super(...e),(0,s.Z)(this,"maskType",""),(0,s.Z)(this,"maskSize","none"),(0,s.Z)(this,"repeat","repeat"),(0,s.Z)(this,"position","center")}}class c{constructor(e={}){(0,s.Z)(this,"brightness",1),(0,s.Z)(this,"saturate",1),(0,s.Z)(this,"contrast",1),(0,s.Z)(this,"hueRotate",0),(0,s.Z)(this,"grayscale",0),(0,s.Z)(this,"invert",0),(0,s.Z)(this,"sepia",0),(0,s.Z)(this,"blur",0),this.brightness=e.brightness??1,this.saturate=e.saturate??1,this.contrast=e.contrast??1,this.hueRotate=e.hueRotate??0,this.grayscale=e.grayscale??0,this.invert=e.invert??0,this.sepia=e.sepia??0,this.blur=e.blur??0}}class u extends c{constructor(e={}){super(e),(0,s.Z)(this,"dropShadow",{shadowX:4,shadowY:4,shadowBlur:2,shadowColor:"#808080"}),(0,s.Z)(this,"brightness",1),(0,s.Z)(this,"saturate",1),(0,s.Z)(this,"contrast",1),(0,s.Z)(this,"hueRotate",0),(0,s.Z)(this,"grayscale",0),(0,s.Z)(this,"invert",0),(0,s.Z)(this,"sepia",0),(0,s.Z)(this,"blur",0),e.dropShadow&&(this.dropShadow.shadowX=e.dropShadow.shadowX,this.dropShadow.shadowY=e.dropShadow.shadowY,this.dropShadow.shadowBlur=e.dropShadow.shadowBlur,this.dropShadow.shadowColor=e.dropShadow.shadowColor)}}i(9647);class p{constructor(e={}){(0,s.Z)(this,"url",""),(0,s.Z)(this,"fileName",""),(0,s.Z)(this,"width",0),(0,s.Z)(this,"height",0),(0,s.Z)(this,"originW",0),(0,s.Z)(this,"originH",0),(0,s.Z)(this,"x",0),(0,s.Z)(this,"y",0),(0,s.Z)(this,"itemX",0),(0,s.Z)(this,"itemY",0),(0,s.Z)(this,"itemW",100),(0,s.Z)(this,"itemH",100),(0,s.Z)(this,"fileType","png"),(0,s.Z)(this,"isUploadMask",!1),(0,s.Z)(this,"isLockWH",!0),(0,s.Z)(this,"isLockItemWH",!0),(0,s.Z)(this,"maskRepeat","no-repeat"),(0,s.Z)(this,"isNewFile",!1),Object.assign(this,e)}}i(7175);var m=i(5256)},7175:function(e,t,i){"use strict";i.d(t,{U:function(){return n}});var s=i(7873);class n{constructor(e={}){(0,s.Z)(this,"url",""),(0,s.Z)(this,"name",""),(0,s.Z)(this,"isNewFile",!0),(0,s.Z)(this,"fileName",""),this.url=e.url??"",this.name=e.name??"",this.isNewFile=e.isNewFile??!1,this.fileName=e.fileName??!1}}},5256:function(e,t,i){"use strict";i.d(t,{p:function(){return r}});var s=i(7873),n=i(9360),o=i(1062);class r{constructor(e={}){(0,s.Z)(this,"value",""),(0,s.Z)(this,"width",0),(0,s.Z)(this,"height",0),(0,s.Z)(this,"checked",!1),(0,s.Z)(this,"borderWidth",1),(0,s.Z)(this,"borderColor","#333333"),(0,s.Z)(this,"bgColor","#FFFFFF"),(0,s.Z)(this,"isAllBold",!1),(0,s.Z)(this,"isAllItalic",!1),(0,s.Z)(this,"isAllUndeline",!1),(0,s.Z)(this,"strikeThrough",!1),(0,s.Z)(this,"innerTextStyle",new o.m({fontSize:"14px",fontFamily:"Hero",textAlign:"left"})),(0,s.Z)(this,"minFontUrl",""),this.value=(0,n.Z)(e.value)?"":e.value,this.width=(0,n.Z)(e.width)?0:e.width,this.height=(0,n.Z)(e.height)?0:e.height,this.checked=!(0,n.Z)(e.checked)&&e.checked,this.borderWidth=e.borderWidth??1,this.borderColor=e.borderColor??"#333333",this.bgColor=e.bgColor??"#FFFFFF",this.isAllBold=!(0,n.Z)(e.isAllBold)&&e.isAllBold,this.isAllItalic=!(0,n.Z)(e.isAllItalic)&&e.isAllItalic,this.isAllUndeline=!(0,n.Z)(e.isAllUndeline)&&e.isAllUndeline,this.strikeThrough=!(0,n.Z)(e.strikeThrough)&&e.strikeThrough,e.innerTextStyle&&(this.innerTextStyle=Object.assign(this.innerTextStyle,e.innerTextStyle)),this.type=(0,n.Z)(e.type)?"tableCell":e.type,this.uploadFontUrl=(0,n.Z)(e.uploadFontUrl)?"":e.uploadFontUrl,this.positionText=e.positionText?e.positionText.map((e=>e)):[],this.isUploadedFont=!(0,n.Z)(e.isUploadedFont)&&e.isUploadedFont,this.isSystemFont=!(0,n.Z)(e.isSystemFont)&&e.isSystemFont,this.uploadedFontFileName=(0,n.Z)(e.uploadedFontFileName)?"":e.uploadedFontFileName,this.isTurningToSvg=!(0,n.Z)(e.isTurningToSvg)&&e.isTurningToSvg,this.minFontUrl=(0,n.Z)(e.minFontUrl)?"":e.minFontUrl}}},1062:function(e,t,i){"use strict";i.d(t,{m:function(){return r}});var s=i(7873),n=i(7527),o=i(9360);class r{constructor(e={}){(0,s.Z)(this,"opacity",1),(0,s.Z)(this,"lineHeight",1.28),(0,s.Z)(this,"letterSpacing","0px"),(0,s.Z)(this,"fontSize","150px"),(0,s.Z)(this,"fontFamily","SourceHanSansCN"),(0,s.Z)(this,"color","#000000"),(0,s.Z)(this,"wordSpacing","-0.1em"),(0,s.Z)(this,"textAlign","justify"),(0,s.Z)(this,"direction","ltr"),(0,s.Z)(this,"textIndent",""),(0,s.Z)(this,"writingMode",""),(0,s.Z)(this,"textOrientation",""),(0,n.Z)(this,e,(function(e,t,i,s){return Object.prototype.hasOwnProperty.call(s,i),(0,o.Z)(t)?e:t}))}}},5630:function(e,t,i){"use strict";i.d(t,{I:function(){return a}});var s=i(7873),n=i(6458),o=i(7527),r=i(9360);class a{constructor(e={}){(0,s.Z)(this,"items",[]),(0,s.Z)(this,"subtitle",{isEnable:!1,items:[]}),(0,s.Z)(this,"totalTime",0),(0,s.Z)(this,"stayTotalTime",0),(0,s.Z)(this,"width",0),(0,s.Z)(this,"height",0),(0,s.Z)(this,"left",0),(0,s.Z)(this,"top",0),(0,s.Z)(this,"animeTime",0),(0,s.Z)(this,"scale",1),(0,s.Z)(this,"backgroundImage",""),(0,s.Z)(this,"backgroundSvgImage",""),(0,s.Z)(this,"thumbImg","");const t=this;e=(0,n.Z)(e,(function(e,i){return Object.prototype.hasOwnProperty.call(t,i)})),(0,o.Z)(this,e,(function(e,t,i,s){return Object.prototype.hasOwnProperty.call(s,i),(0,r.Z)(t)?e:t}))}}},4649:function(e,t,i){"use strict";i.d(t,{j:function(){return c}});var s=i(6378);const n=Object.fromEntries(Object.entries({items:"BSi",CID:"5gR",isCommercial:"j3o",isHidden:"Tmm",isActionHideCase:"Hox",showOrHideIsFirstHide:"hQW",isLocked:"GfW",rotate:"JMW",rotateX:"Qbx",rotateY:"Rq9",isShowMaskImage:"xO0",range:"Zog",existStartTime:"ojH",existEndTime:"MlZ",isShowShadow:"FeT",filter:"NEo",selectedIndex:"DfQ",brightness:"EFD",saturate:"5TE",contrast:"MGO",hueRotate:"wlJ",grayscale:"Q6g",invert:"MiG",sepia:"F3H",blur:"AO7",dropShadow:"v74",shadowX:"7K5",shadowY:"e34",shadowBlur:"0Zu",shadowColor:"tYe",pathHeight:"EFc",pathWidth:"nRP",animationFiles:"QsY",maskFiles:"n9V",in:"OYd",url:"PVT",fileName:"mt3",isNewFile:"7je",out:"cQs",maskImageFile:"b3Y",width:"UBe",height:"UNE",originW:"l9y",originH:"hVP",x:"XyP",y:"l8x",itemX:"xrz",itemY:"vdn",itemW:"iav",itemH:"inK",fileType:"8EC",isUploadMask:"D59",isLockWH:"ux5",isLockItemWH:"DPs",maskRepeat:"Mln",scrawlFiles:"I3H",handId:"Z15",left:"206",top:"t88",scale:"Fki",outEraseFiles:"jdK",handPaintedFiles:"OxO",scrawlConfig:"UYM",maskType:"Cla",opacity:"RD6",maskImage:"Wgy",repeat:"AFR",position:"iB3",outEraseConfig:"Hcf",maskConfig:"6tD",maskSize:"Xee",isOpenComponent:"wXl",isSystemTeamplateResource:"b1E",isTeamResource:"5v8",isApng:"zhk",base64Data:"ykc",trackItemToEdit:"SqA",isAsyncItem:"KVa",customPage:"Wrn",isAsyncGroupItem:"BvW",isShowSizePosition:"uMQ",isXZSceneMaterial:"sOx",productAttributes:"EvJ",actionList:"2HV",isPlayingActAnime:"iRk",actAnimeTime:"FEn",actIsHidden:"BGx",id:"wLC",resourceId:"S9O",style:"xAA",animations:"Ie1",duration:"IaM",delay:"pZq",name:"QmN",animeKey:"SSr",isAlways:"0IE",ease:"mEy",easeFn:"bPs",type:"Yh6",props:"k8q",immediateRender:"0aL",runBackwards:"aYP",css:"5rr",advanced:"4mS",isHoverBorder:"0Np",easeType:"hsL",noFaded:"Bmo",defaultCutomEase:"tg5",defaultDuration:"xzK",limitVersion:"8E9",middle:"M4V",timePercent:"YNs",border:"k23",rows:"BVr",columns:"RxW",borderStyle:"8tg",borderWidth:"04G",borderColor:"H7P",bgColor:"4st",contenteditable:"4pr",innerTextStyle:"vup",lineHeight:"j5l",letterSpacing:"Tj2",fontSize:"3Zs",fontFamily:"x0J",color:"oF8",wordSpacing:"Gbe",textAlign:"RiS",direction:"SPb",textIndent:"wrt",writingMode:"Qx0",textOrientation:"AbT",thBg:"oj2",trBgColor:"ULB",tableIndex:"NDq",tableList:"u4D",value:"8AT",checked:"H5n",isAllBold:"XN4",isAllItalic:"yCk",isAllUndeline:"QkG",strikeThrough:"xIh",uploadFontUrl:"V4C",originalPathWidth:"ywD",originalPathHeight:"DJX",isTurningToSvg:"IoO",startPageNumber:"JzH",isCustomPage:"0Rz",startPage:"GsF",endPage:"0QQ",copyPagesArray:"0ko",lot:"XXe",isBGI:"nd3",iframeItemInfo:"od7",urlHead:"4Mw",isHasUrlParams:"TDi",urlParams:"vrl",embedCode:"OI6",selectType:"B9Y",pageZoom:"g5Q",event:"nTo",isShowAddSelect:"xmt",isShowAddShowOrHide:"dc5",isExpanded:"S2t",isCollapse:"eX6",linkList:"fRe",openPage:"wSf",phone:"LCl",iframe:"fiC",popupImg:"k2I",showOrHideList:"sY6",animationList:"uqH",popupVideo:"nFd",popupMsg:"JOO",playAudio:"rpJ",runJavaScript:"9S0",addWechat:"3fZ",attachmentFile:"sgq",comment:"g8u",contentProps:"hQR",fontColor:"ZBN",elements:"gf3",content:"lqU",defaultContent:"OUn",windowWP:"FNO",maxW:"ZCJ",winP:"woA",lineOpts:"4w8",isAddLine:"h0v",lineColor:"Taq",lineType:"0d7",commentWidth:"oFJ",commentHeight:"3cj",autoDisappear:"FxH",edited:"Wbd",color1:"vNb",color2:"dRE",iconHref:"25P",parseSvgType:"kqn",isQRCode:"4iD",urlPrefix:"eb9",qrcodeUrl:"fsa",gNode:"Uyf",transform:"tbn",svgUrl:"wxR",isPainted:"9Vc",isUpload:"U6c",shapeType:"LY5",pathViewBox:"lDp",gradientColorList:"IUv",pathTransform:"b9E",paintSvgCode:"lGE",colorIndexList:"K3C",colorList:"8Hi",paintPathLengthList:"Evl",originColorList:"WyH",isThemePackage:"C0b",qrcodeGap:"cyh",isQRCodeImg:"iPu",svg:"8cP",svgViewBox:"vJv",originViewBox:"zLO",lastViewBox:"vze",svgCode:"OrY",background:"uCf",positionType:"usd",count:"ook",initNum:"LmL",iconType:"tpg",size:"Bop",bookId:"W4M",timeId:"7LL",openSound:"ZAe",openVibrate:"MIF",limitType:"TvV",previousLikeTime:"WPx",noBorder:"NYI",backgroundColor:"BFE",showBorderRadius:"2Gm",keepRatio:"vGh",borderRadius:"HVL",topLeft:"xBY",topRight:"nIp",bottomLeft:"uGK",bottomRight:"8Lp",hasGradient:"fVE",gradient:"dTJ",baseShapeType:"i1W",lineWidth:"jL4",strokeDashes:"LJZ",linecap:"s2r",isAdvance:"H3a",ratioX:"I9j",ratioY:"vGO",strokeColor:"JWX",fillColor:"4i1",fillColor2:"xL5",transType:"kkq",colours:"aY2",pointNum:"IHR",splitX:"6jE",splitY:"eIH",controlPoints:"Uuy",firstId:"6QW",itemIndex:"13w",buttonFont:"8HD",fontWeight:"4bm",display:"OXs",alignItems:"GsS",justifyContent:"WbH",fontStyle:"qio",textDecoration:"Nlt",padding:"kGh",buttonText:"RNZ",buttonTextEdit:"nP7",buttonIcon:"Vo3",isShowIconEdit:"TNX",iconSite:"JWu",buttonBackground:"pxe",borderGradient:"tE2",borderTopLeftRadius:"wTU",borderTopRightRadius:"0Fl",borderBottomLeftRadius:"emb",borderBottomRightRadius:"GHC",hasgradient:"SHr",hoverGradient:"0ud",hoverColor:"QAr",clickGradient:"OvZ",clickColor:"e5g",isPhoneButton:"GIV",isShowTextEdit:"Q40",isSystemResource:"tyG",secondId:"fUl",isFavorite:"EKS",url_shot:"9ys",thumbUrl:"lc5",isLoadError:"QAQ",localId:"kPJ",isAutoPlay:"IzN",effectType:"lj0",cycle:"I89",hasLoadedJson:"JyC",colorInfo:"UFI",widthList:"a9v",widthInfo:"AlK",noCycle:"pwP",noEase:"Y2w",jsonUrl:"6QL",speed:"X94",isLoop:"zaf",isHotSpotEffect:"xBP",lottieType:"4qS",publishThumbUrl:"KYx",swiperOpts:"1Fr",demoTitle:"o4N",sliderBgColor:"Emk",sliderFill:"yHB",medium:"O6i",isShowIndexEdit:"mB3",uid:"ZgX",nodeUpdate:"vdQ",delayTime:"OIm",spaceBetween:"JIF",zoom:"bl8",autoplay:"cOz",slidesPerView:"IWe",grabCursor:"XiI",centeredSlides:"wZv",freeMode:"dkS",loop:"nh5",addChangeBtn:"ViT",changeBtnColor:"kns",mousewheel:"Aae",addScrollbar:"oRx",addPagination:"hEz",paginationColor:"iVd",swiperType:"hqe",phoneNumber:"kcR",isCustomIcon:"z5h",zIndex:"JZs",percent:"8fW",isLinear:"dwR",gradientType:"8o9",gradientDeg:"E2P",originalWidth:"tsB",originalHeight:"p1r",innerIconstyle:"hKo",fontIcon:"AKZ",isFixedRatio:"ziO",isShowPoint:"mW2",showHighlight:"J4v",highlightRange:"WEJ",highlightTitle:"sXb",showClassName:"V9M",showGradient:"VJE",showTitle:"gaM",titleColor:"cMl",showGridLine:"jAK",showXYAxis:"KxO",showXYTitle:"QQ0",dataNumber:"iEr",xAxis:"lZY",title:"mTr",yAxis:"QBE",className:"7G5",chartType:"PJ9",chartClass:"6Nm",chartI18nKey:"Mk3",backgroundPosition:"aEg",backgroundSize:"uAs",isShowPopup:"X2n",filterImage:"yoH",isPhoneImg:"xGO",images:"wW6",imgOriginalProportions:"nxa",strategy:"Asd",pathBackgroundPosition:"Nrh",pathBackgroundSize:"gEx",isTransparentImg:"FKP",cropInfor:"96D",isCropped:"VlB",originalPx:"wPn",originalPy:"5eC",originalSx:"5yU",originalSy:"GKc",gifs:"sch",isPixabay:"QSP",pixabayOriginUrl:"lSL",hasLoaded:"kr8",config:"pCI",gifImageLoop:"XRD",isHorizonFlip:"KMZ",updateGifItemIndex:"g4s",isSprite:"56y",image:"ot1",gifIsTurningToCanvas:"zLj",gifToCanvas:"fzK",gifHasTurnedCanvas:"se1",isGifImage:"NdB",svgClass:"gI5",gifId:"uPm",characterId:"lAb",expressionId:"NAk",hasLoadedNormal:"EQ0",styleFix:"UxV",grids:"fwD",clipInfo:"CN0",startTime:"Pfw",endTime:"qYa",clipDuration:"caG",hasClip:"Hx7",speedTime:"BP2",timeScaleNum:"ZrC",time:"yEW",imageUrl:"QcJ",imageWidth:"LWQ",stroke:"4pH",alignment:"TiN",show:"KRz",modifiedByNode:"tFl",textStr:"ejn",isShowStroke:"1w7",textStyleType:"rPp",isUploadedFont:"BTJ",isSystemFont:"qHr",systemFontToSvg:"eGp",uploadedFontToSvg:"N6v",uploadedFontFileName:"3Xw",svgText:"HxK",viewBox:"7IQ",pathCount:"pF2",originalSvgCode:"NFN",transformPositionText:"4Je",positionText:"gAz",text:"Nl7",rowTop:"nUq",rowLeft:"jVm",rowHeight:"0qY",rowWidth:"qod",justify:"avi",rowText:"3av",bold:"4Qn",underline:"F5R",italic:"iB4",textTransform:"ljk",isRichText:"7Xb",columnsInfo:"aqB",useColumns:"0dW",gap:"Dj1",overflow:"Beo",textAreaWidth:"HeH",textAreaHeight:"wzr",isHideScrollBar:"TXJ",scrollBarInfo:"JGO",thumbColor:"nJX",trackColor:"BPe",radius:"WGV",isHasTextScrollAnime:"1zV",isNumberIncrease:"k1O",isPauseBgSoundWhenPlay:"SmS",isPauseOtherVideoWhenPlay:"4jH",musicList:"CN8",moviePlayTriggerEvt:"N5v",movieStopTriggerEvt:"BdQ",playFromSeconds:"3V3",syncWithTimeline:"nUQ",returnThisPageToReplay:"2tU",audioIsPlaying:"P4A",isAdjustable:"hHd",waveformImg:"0Po",musicType:"dY1",musicSkin:"3Ib",skinId:"wfT",volume:"7DA",volumeBeforeMute:"W9D",isMute:"VL4",isPauseOtherMusicWhenPlay:"sMJ",isPlayAcrossPage:"5Kf",playFromPage:"jZN",playToPage:"PAV",skin1ColorObj:"OIq",isSelectColor:"4GK",progressTrackColor:"bci",progressColor:"svQ",buttonBackgroundColor:"owb",playAndPauseIconColor:"hzZ",skin0ColorObj:"csd",controlIconColor:"ChN",progressRunwayColor:"8Uz",createTime:"9zp",update:"hF5",progressBar:"FXm",progressBarSize:"VNW",isMusicQRCodeImg:"cqd",qrcodeForeground:"AC7",qrcodeBackground:"t6D",playInSequence:"bDY",musicScale:"zxZ",isSingleControl:"Sso",controlSize:"UNU",singleW:"t8E",singleH:"kVc",multipleW:"bLt",multipleH:"2hU",controlColorList:"qV5",videoHeight:"xLq",videoWidth:"pQB",thumbUrlFileName:"h4C",thumbUrlIsNewFile:"Ff6",mutePlay:"Yz9",generalCode:"vt7",videoLink:"Nsi",youTubeId:"Trt",vimeoId:"lCF",pluginVideoType:"3Rg",videoInfo:"gYT",originDuration:"dgG",repeatTime:"7pN",isLockedRepeat:"FEP",fadeIn:"6k8",fadeOut:"PKD",playerType:"BxE",isVideoQRCodeImg:"53Q",defaultPosterUrl:"k4y",defaultPosterFilename:"35E",defaultPosterUrlIsNewFile:"k3P",subtitle:"IQr",isEnable:"mdb",loadState:"88b",totalTime:"ZPA",stayTotalTime:"zEh",pageId:"gWd",visible:"Wdq",backgroundImage:"FW9",previewImg:"QVE",backgroundSvgImage:"WIo",thumbImg:"Jyi",pageColor:"M6J",isHasPageColor:"zMW",originMapIndex:"L9f",bmtMapIndex:"aur",olsMapIndex:"BGe",assistantMapIndex:"sRk",fh5MapIndex:"foT",searchMapIndex:"1Rc",showExportPopUps:"0cI",thumbProgress:"8xc",isSaving:"iGX",pageBgType:"8FW",inverseMapIndex:"GX1",isCreatedByYZTemplate:"oYR",target:"i8b",originEmail:"DS8",originUrl:"ZeX",asyncArray:"u56",asyncLot:"pOC",label:"vfO",page:"EeA",automatically:"kE5",isCloseAsyncItem:"aSE",fileObject:"KU3",imgList:"8zi",isLoadingThumb:"fv4",desc:"EQl",logoObj:"bMC",isProductGroup:"ZzU",isPercent:"fWp",isIndicated:"0Nd",isAddForBatch:"qUA",thumbImgIsNewFile:"V2x",normalPath:"93b",backgroundImageIsNewFile:"MN3",groupStyleList:"Rl7",deep:"pIz",isLoading:"Qkd",link:"Ese",imgCanBeSave:"G8O",newTime:"mq4",themeCategoryName:"IGG",isDigitalVideo:"TZk",digitalInfo:"C84",humanId:"mey",tableType:"qfL",bgColor1:"h6G",htmlDiv:"kfF",propsIcon:"rpo",startAt:"q02",interval:"i0W",repeatDelay:"DTQ",isYoyo:"4mV",scaleX:"Imz",scaleY:"Y7S",repeatArr:"UyL",transformOrigin:"VqL",rotationX:"6fh",isRemainOrigin:"p0O",rotation:"XJu",isNeedDownload:"PAE",originBorder:"e91",originPageWidth:"p8Q",originPageHeight:"wi1",keyFromFlip:"3Xe",audios:"JsE",isOriginYZItem:"FVh",isGroupItem:"wtD",groupStyle:"9Xj",themeCategoryId:"lyb",paragraphSpace:"jsZ",isNetWorkFile:"Od2",strokeWidthList:"CXF",originstrokeWidthList:"r8E",isAiSvg:"L3g",create2AiTaskId:"gkS",create2AiStauts:"Mnm",disable:"E4i",selected:"RTF",isExpandAnimePanel:"FPP",index:"1ty",isDefault:"l1k",showOrHideType:"NqB",hiddenClickable:"ELD",isAction:"sk7",showOrHideLabel:"Ikh",textName:"FMX",isWordart:"Klg",s:"I2z",isTextGroup:"iWs",copyAnimeType:"x5u",titleProps:"kJW",windowWH:"DVM",maxH:"LWI",imageOpts:"NjA",isAddImage:"26b",imgPosition:"kr9",imgW:"cts",imgH:"Q56",isClock:"OmA",btnOpts:"axo",isAddBtn:"UO2",isClickClose:"w4e",btnLinkHead:"JNX",btnLink:"mch",btnText:"Kfg",editored:"oJB",shotUrl:"Ang",isLoadFailed:"12y",audioInfo:"Xbz",rangeCode:"pnI",isVoice:"PQE",voiceText:"5cv",voiceName:"I11",voiceEmotion:"jJF",languageType:"fG1",voiceVolume:"GPD",voiceSpeed:"NS0",isSubtitle:"Uku",sizeType:"gBV",originalLeft:"peg",inAnime:"avH",outAnime:"f8q",isAllStrikeThrough:"P6K",subBColor:"zQ5",borderType:"6zo",alignTop:"9d1",subtitleAlign:"zhT",camera:"ED3",foreground:"Xly",foregroundType:"zrk",itemNumber:"jsr",max:"Kc8",min:"iYd",period:"w98",fgFileNameList:"scz",fgFileUrlList:"QBf",isSvgBGI:"anI",hasBGI:"Lke",isGradient:"6zF",hasSceneAnime:"WVH",sceneAnime:"1Qb",sceneId:"C99",enterAnime:"GMS",onStartCss:"MGr",leaveAnime:"wvc",isLottie:"FAC",imgUrl:"Ztl",skewX:"1hK",skewY:"PY1",originalImage:"fZ6",quiz:"cFx",zoomArea:"JmU",isShow:"9Dp"}).map((([e,t])=>[t,e])));i(2801);const o="mobiano";function r(e){if(!e)return null;try{const t=function(e){if(!e)return"";try{const t=atob(e);let i="";for(let e=0;e((0,s.Z)(e)&&(e=r(e)),e&&function(e){return void 0===e.items}(e)?function(e){return u(e)}(e):e||new a.I)))}function u(e){const t={};return h(e)||Array.isArray(e)?Array.isArray(e)?e.map((e=>u(e))):(Object.keys(e).forEach((i=>{const s=e[i],o=n[i]??void 0??i;t[o]=h(s)||Array.isArray(s)?u(s):s})),t):e}},2698:function(e,t,i){"use strict";i.d(t,{Hq:function(){return n},aA:function(){return o},zD:function(){return s}});const s={NODE_ENV:"production",VUE_APP_DIST:"dist-flip",VUE_APP_EDIT:"flip",VUE_APP_SALT:"flip",BASE_URL:""}.VUE_APP_FOLDER??"test1",n="flip",o=!1},5025:function(e,t,i){"use strict";i(7658);var s=i(4118);t.Z={getGradientColorVal:function({gradientItem:e}={}){if(!e)return;let t="",i=[],s="";return this.getSortColorList({colorList:e.colorList}).forEach((e=>{i.push(e.color+" "+e.percent),s=i.toString()})),t="linear"===e.gradientType?"linear-gradient("+e.gradientDeg+"deg,"+s+")":"radial-gradient("+s+")",t},rgbaToRgb:function(e){let t=/[0-9]{1,3}/g,i=e.split(",");return{rgb:`rgb(${i[0].match(t)[0]}, ${i[1].match(t)[0]}, ${i[2].match(t)[0]})`,alpha:i[3].match(/\d?\.?\d+?/g)[0]}},getSortColorList:function({colorList:e}={}){return s.Z.copy(e,!0).sort(this.sortNumber)},sortNumber:function(e,t){return parseFloat(e.percent)-parseFloat(t.percent)},hexToRgb:function(e){let t=e;if(-1!==e.indexOf("#")&&-1===e.indexOf("url")){if(4===t.length){let e="#";for(let i=1;i<4;i+=1)e+=t.slice(i,i+1).concat(t.slice(i,i+1));t=e}let e=t.replace("#","0x");return`rgb(${e>>16&255}, ${e>>8&255}, ${255&e})`}return e},hexToRgba:function(e,t){e=e.toUpperCase();if(/^#[0-9a-fA-F]{3,6}$/.test(e)){let i=[],s=1;for(let t=1;t<=3;t++)e.length-2*t>3-t?(i.push(Number("0x"+e.substring(s,s+2))),s+=2):(i.push(Number("0x"+e.charAt(s)+e.charAt(s))),s+=1);return"rgba("+i.join(",")+","+t+")"}return e},getRgbaColor:function(e){let t=e;e.match(/rgb/gi)||(t=this.hexToRgba(e,1));let i=t.match(/([1-9]\d*|0)(\.\d{1,3})?/g);return{r:i[0],g:i[1],b:i[2],a:i[3]}}}},5125:function(e,t,i){"use strict";i.d(t,{e:function(){return n}});var s=i(7873);const n=new class{constructor(){(0,s.Z)(this,"hasAddedFonts",new Set),(0,s.Z)(this,"errorFonts",new Set)}addFont(e,t,i){i&&document.fonts.add(i),this.hasAddedFonts.has(e)||(this.hasAddedFonts.add(e),this.createFontFaceNode(e,t))}addErrorFont(e,t){this.errorFonts.add(e),this.createFontFaceNode(e,t)}createFontFaceNode(e,t){document.getElementById("readerFont");const i=document.createElement("style"),s=document.createTextNode(`@font-face{font-family: '${e}';src:url('${t}')}`);i.appendChild(s);document.querySelector("head").appendChild(i)}}},7134:function(e,t,i){"use strict";i(7658);t.Z={getColor:function({startColor:e,endColor:t,step:i}){let s=this.colorToRgb(e),n=s[0],o=s[1],r=s[2],a=this.colorToRgb(t),l=(a[0]-n)/i,d=(a[1]-o)/i,h=(a[2]-r)/i,c=[];for(let e=0;eMath.PI&&(y=1);let v=`M${l} ${d} L ${m} ${g} A ${h} ${h} 0 ${y} 1 ${f} ${w} Z`;c.push(v);let x={};x.x=l+(h+4*n)*Math.sin((p+a)/2)-2*n,x.y=d-(h+2.5*n)*Math.cos((p+a)/2)-.5*n,u.push(x),r.push({startAngle:a,angle:s,endAngle:p}),a=p}}if(1===c.length){let e="top"===t,o=parseInt(Math.min(i/2-6*n,s/2-6*n));c=[`M${i/2}, ${e?s/2+2.5*n:s/2-2.5*n}m ${-o}, 0a${o},${o} 0 0,1 ${2*o},0a${o},${o} 0 0,1 ${-2*o},0`]}return{pathArray:c,textPointArray:u,angleArray:r}},getPieProgress:function({startAngle:e,endAngle:t,width:i,height:s,position:n,pointR:o}){let r=t-e,a=i/2,l=s/2-2.5*o;"top"===n&&(l=s/2+2.5*o);let d=Math.min(i/2-6*o,s/2-6*o),h=a+d*Math.sin(e),c=l-d*Math.cos(e),u=a+d*Math.sin(t),p=l-d*Math.cos(t),m=0;return r>Math.PI&&(m=1),`M${a} ${l} L ${h} ${c} A ${d} ${d} 0 ${m} 1 ${u} ${p} Z`}}},7746:function(e,t,i){"use strict";i.d(t,{l3:function(){return s.Z},fL:function(){return o},P6:function(){return a.Z}});i(7134),i(9354);var s=i(4321),n=(i(7658),i(4649)),o={getOffset:function(e,t){let i=document.querySelector(t);if(!i)return;let s=i.getAttribute("d"),n=0;if(""!==s){s.match(/M.*?Z/g).forEach((e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",e);let i=t.getTotalLength();n{if(void 0===e)return[];const t=Number.parseInt(e);if(Number.isNaN(t))return[];if(void 0===window.readerConfig?.pages)return[];if(void 0===window.readerConfig.pages[t])return[];const i=(0,n.j)([window.readerConfig.pages[t]])[0].items.filter((e=>"text"===e.type)),s=[];return i.forEach((e=>{s.push(r(e?.textStr?e.textStr:""))})),s};const r=(e="")=>{const t=document.createElement("div");t.innerHTML=e;let i="";return"string"==typeof t.textContent?i=t.textContent:"string"==typeof t.innerText&&(i=t.innerText),i.replace(/\s+/g," ").trim()};var a=i(4118)},4321:function(e,t,i){"use strict";i(7658);t.Z={getExistColorList({svgCode:e,colorIndexArray:t,colorList:i}){let s=i,n=t,o=e;if(!t||!i){let t=this.getColorList({svgCode:e});n=t.colorIndexList,s=t.originColorList}if(s&&0!==s.length)for(let e=0;e${o}`;return{svgString:o}},getColorList({svgCode:e,fillNone:t}){let i=e.match(/(rgb(a)?\(.*?\)|(#[0-9a-fA-F]{6})|url\(#gradient.*?\))/gi),s=e;if(i){let e=[],n=0,o={},r=[],a=i.length;for(let l=0;l/g,""),s=s.replace(//g,""),s=s.replace(//g,""),s=s.replace(//g,""),s=s.replace(//g,""),s=s.replace(/<\/switch>/g,""),s=s.replace(/i:extraneous="self"/g,""),s=s.replace(/\/tspanx=".*">/g,"/tspan>"),s=s.replace(//)){let e=s.match(/.*?<\/defs>/);e&&i&&(s=e[0].replace(//,"").replace(/<\/defs>/,""),s=s.replace(/id=".*?"/,`id="${t}"`)),s=s.replace(//,"").replace(/<\/svg>/,"")}return s},replaceStyle:function({svgString:e,item:t}){let i=(e=e.replace(/\n|\r|\f|\v|\t/g,"")).match(/id=".*?"/g);if(i&&!i[0].match("QQTID")&&i.forEach((i=>{let s=Math.random().toString().substr(2,8)+(new Date).getTime().toString().substr(0,2),n=i.indexOf('"');if(""!==(i=(i=i.slice(n+1,-1)).replace(/(^\s*)|(\s*$)/g,""))){var o=new RegExp("\\?","g");i=i.replace(o,"Q");let n=new RegExp(`${i}`,"g"),r="QQTID"+t.id.substr(0,5)+s;e=e.replace(n,r)}})),e.match(/.*?<\/style>/)){let t=e.match(/.*?<\/style>/)[0].match(/\..*?{/g);if(t&&-1===t[0].indexOf("QQTClass")){let t=[];e.match(/class=".*?"/g).forEach((e=>{let i=(e=(e=e.slice(7,-1)).replace(/(^\s*)|(\s*$)/g,"")).split(" "),s=i.length;if(s>1)for(let e=0;e{let i=new RegExp(`${t}`,"g"),s=`QQTClass${Math.random().toString().substr(2,6)+(new Date).getTime().toString().substr(0,4)}`;e=e.replace(i,s)}))}}return e},getPathSvg:function({item:e,scale:t,scaleX:i,scaleY:s,direction:n}){let o=e.svg.svgViewBox.split(" "),r=o[2],a=o[3],l=e.svg.lastViewBox.split(" "),d=l[2],h=l[3],c=0,u=0,p="";0!==t&&("vertical"===n?(c=h*t,p=`0 0 ${r} ${c}`):"level"===n?(u=d*t,p=`0 0 ${u} ${a}`):"both"===n&&(c=h*s,u=d*i,p=`0 0 ${u} ${c}`));let m=e.svg.originViewBox.split(" "),g=m[2],f=m[3],w=e.gNode.transform.match(/scale\(.*?\)/)[0],y=e.gNode.transform.match(/translate\(.*?\)/);y&&(y=y[0]);let v=w.indexOf("("),x=w.indexOf(")"),C=w.indexOf(","),b=w.substring(v+1,C),I=w.substring(C+1,x),S=0,P=0;if(y){let e=y.indexOf("("),t=y.indexOf(")"),i=y.indexOf(",");S=y.substring(e+1,i),P=y.substring(i+1,t)}let T="",$="";if(0!==t)if("vertical"===n){let e=c/f;T=`scale(${b},${e})`,y&&($=`translate(${S},${P*e/I})`)}else if("level"===n){let t=u/g;e.svg.hasDefs?T=`scale(1,${I})`:(T=`scale(${t},${I})`,y&&($=`translate(${S*t/b},${P})`))}else if("both"===n){let t=c/f,i=u/g;e.svg.hasDefs?T=`scale(1,${t})`:(T=`scale(${i},${t})`,y&&($=`translate(${S*i/b},${P*t/I})`))}let k=e.gNode.transform.replace(y,$);return k=k.replace(w,T),{viewBox:p,transform:k}},resetSvgId:function(){}}},2983:function(e,t,i){"use strict";i.d(t,{O:function(){return C}});i(4402);var s=i(5025);var n=i(4118),o=i(4321);let r=e=>{let t="",i="";const s=document.createElement("g"),n=e.style;if(t=n.stroke||"",i=n.fill||"",!i){i=e.getAttribute("fill")||""}if(!t){t=e.getAttribute("stroke")||""}if(i&&"none"!==i||t&&"none"!==t){s.setAttribute("style",`fill: ${i}; stroke: ${t}`),e.childNodes.forEach((e=>{s.appendChild(e.cloneNode(!0))}));const n=e.cloneNode();return n.appendChild(s),n}return e},a=e=>{let t=Array.from(e.querySelectorAll("style")),i=d(t);for(const t in i){Array.from(e.querySelectorAll(t)).forEach((e=>{let s=e.style;p(s);let n=i[t];for(const e in n)if(""===s[e]||void 0===s[e]){s[e.trim()]=n[e]}}))}for(let e=0;e{let t=0;for(let i in e)"number"!=typeof Number(i)||isNaN(Number(i))||Number(i)+1>t&&(t=Number(i)+1);return t},d=e=>{let t={};return e.forEach((e=>{if(e.sheet){let i=e.sheet.cssRules;if(null==i||0===i.length)return;for(let e=0,s=i.length;ee.trim()));for(let e=0,i=n.length;e{const i=e.match(/\.[\w\d]*.*?{/)[0].slice(0,-1),s={};e.match(/{.*?}/g)[0].slice(1,-1).split(";").forEach((e=>{if(e){const t=e.split(":");t.length>1&&(s[t[0]]=t[1])}})),t[i]=Object.assign(t[i]||{},s)}))}})),t},h=(e,t)=>{let i={};for(let s=0;s{for(let i in c){let n=i,o=c[i],r=e[n];if(r){let i="opacity"===n?r:s.Z.hexToRgb(r);t?(t.setAttribute(o,i),e[n]=""):e[n]=i}}},m=e=>{u.forEach((t=>{let i=e.getAttribute(t);if(i){let n=s.Z.hexToRgb(i);e.setAttribute(t,n)}})),p(e.style,e)},g=e=>{e.querySelectorAll("stop").forEach((e=>{m(e)}))},f=e=>{m(e),y(e),x(e)};const w={title:e=>{e.parentNode.removeChild(e)},svg:e=>{y(e)},g:e=>{y(e),x(e)},path:e=>{m(e),y(e),x(e)},lineargradient:g,radialgradient:g,defs:e=>{y(e)},clippath:e=>{y(e)},polygon:f,polyline:f,rect:e=>{m(e),y(e),x(e)},circle:e=>{m(e),y(e),x(e)},ellipse:e=>{m(e),y(e),x(e)},line:e=>{m(e),y(e),x(e)},metadata:e=>{e.parentNode.removeChild(e)}};let y=e=>{let t=e.childNodes;for(let e=t.length-1;e>=0;e--)1===t[e].nodeType&&v(t[e])},v=e=>{const t=e.nodeName.toLowerCase(),i=w[t];null!=i&&i(e)};function x(e){let t=e.id;if(t&&!isNaN(Number(t))){let t=e.nodeName.toLowerCase()+Math.random().toString().substr(2,4)+(new Date).getTime().toString().substr(0,2);e.setAttribute("id",t)}e.classList&&e.setAttribute("class","")}function C({item:e,svgStr:t}){const i="line"===e.svgClass;let l=[],d=t;if(1===Number(e.parseSvgType)||i){const t=n.Z.getUniqueId();d=o.Z.getSvgString(d,t,i),i||(d=o.Z.replaceStyle({svgString:d,item:e}))}else d=function(e){let t=(new DOMParser).parseFromString(e,"image/svg+xml");if(t){if(t.querySelector("parsererror"))return e;a(t);let i=t.querySelector("svg");if(i){i=r(i),y(i);let e=i.outerHTML;return e=e.replace(//,"").replace(/<\/svg>/,""),e}return e.replace(//,"").replace(/<\/svg>/,"")}return e.replace(//,"").replace(/<\/svg>/,"")}(d),d=o.Z.replaceStyle({svgString:d,item:e});const{originColorList:h,newColorList:c,colorIndexList:u}=o.Z.getColorList({svgCode:d});let p=c.slice(e.colorList.length);l=e.colorList.concat(p);const m=function(e,t){return-1!==e.map((e=>{const t=s.Z.getRgbaColor(e);return t.a?`rgba(${t.r},${t.g},${t.b},${t.a})`:`rgb(${t.r},${t.g},${t.b})`})).findIndex(((e,i)=>e.replace(/\s/g,"")!==t[i].replace(/\s/g,"")))}(e.colorList,c);if(e.userHasChangedColor=m,m||"painted"===e.animations.in.type){d=o.Z.getExistColorList({colorList:h,svgCode:d,colorIndexArray:u}).svgString;let e=l.length;for(let t=0;t{if(t||i){let e=document.createElement("canvas"),t=e.getContext("2d");e.width=o.width,e.height=o.height,t.drawImage(o,0,0),o._dataUrl=e.toDataURL()}s(o,r)},o.onerror=n,t&&(o.crossOrigin="Anonymous"),o.src=r}))},hasAnime:function(e){let t=e.animations,i=t.in;return"text"!==e.type&&("alwaysIn"!==i.animeKey||("alwaysIn"!==t.out.animeKey||t.middle.length>1))},setPageConfig:function(){return{pageConfig:{pageWidth:736,pageHeight:414,templateId:1,isNeedRerenderThumb:!0,BGMInfo:[]},pages:[{backgroundImage:"",backgroundColor:"",thumbUrl:"",fileName:"",items:[],camera:{isEnable:!1,items:[]},subtitle:{isEnable:!1,items:[],audios:[]},totalTime:0,hasUnsavedChanges:!0}]}},getPageTime:function(e){return 0},getPageInnerDelay:function(e){return 0},getPageTotalAnimeTime:function(e){return[0,0]},sceneAnimeDefaultKey:function(e){return{y:"0%",x:"0%",rotation:"0_short",scaleY:1,scaleX:1,opacity:1,scale:1,transformStyle:"flat",rotationX:0,rotationY:0,transformOrigin:"center center"}[e]},sceneAnimeParentDefaultKey:function(e){return{perspectiveOrigin:"50% 50%",perspective:"none"}[e]},removeArrEmpty:function(e){for(var t=0;t=0&&e.length%1==0}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t=0,i=0){if("string"!=typeof e||0===e.length)return;const s=new Image;return s.src=`data:image/svg+xml;base64,${btoa(e)}`,new Promise(((e,n)=>{s.onload=()=>{const n=document.createElement("canvas");n.width=Number.parseFloat(t),n.height=Number.parseFloat(i);n.getContext("2d").drawImage(s,0,0);const o=n.toDataURL("image/png");e(o)},s.onerror=e=>{n(e)}}))}},1861:function(e,t,i){"use strict";i.d(t,{p:function(){return r}});i(7658);var s=i(144);const n=["st","fl"];function o(e){return`rgba(${parseInt(255*e[0])}, ${parseInt(255*e[1])}, ${parseInt(255*e[2])}, ${e[3]})`}function r(e,t){let{colorInfo:i,widthInfo:r,colorList:a,widthList:l}=function(e){let t=e.layers,i=e.assets,s=[],r=[],a=[],l=[];function d(e,t,i,h,...c){if(n.includes(e.ty)){let n=e.c.k;if("number"==typeof n[0]){s.push(o(n));let e={assetIndex:h,layerIndex:t,shapeIndex:i,color:o(n),itIndex:c};r.push(e)}let d=e.w;if(void 0!==d){let e=d.k;if("number"==typeof e){a.push(e);let s={assetIndex:h,layerIndex:t,shapeIndex:i,width:e,itIndex:c};l.push(s)}}}else void 0!==e.it&&e.it.forEach(((e,s)=>{d(e,t,i,h,...c,s)}))}return t.forEach(((e,t)=>{let i=e.shapes;void 0!==i&&i.forEach(((e,i)=>{d(e,t,i,-1)}))})),i.forEach(((e,t)=>{e.layers.forEach(((e,i)=>{let s=e.shapes;void 0!==s&&s.forEach(((e,s)=>{d(e,i,s,t)}))}))})),s=Array.from(new Set(s)),r.forEach((e=>{let t=s.indexOf(e.color);e.colorIndex=t})),a=Array.from(new Set(a)),l.forEach((e=>{let t=a.indexOf(e.width);e.widthIndex=t})),{json:e,colorList:s,colorInfo:r,widthInfo:l,widthList:a}}(t);0!==i.length&&0===e.colorList.length?e.colorList=a:i.forEach((t=>{e.colorList[t.colorIndex]?t.color=e.colorList[t.colorIndex]:s.default.set(e.colorList,t.colorIndex,t.color)})),0!==r.length&&0===e.widthList.length?e.widthList=l:r.forEach((t=>{e.widthList[t.widthIndex]?t.width=e.widthList[t.widthIndex]:s.default.set(e.widthList,t.widthIndex,t.width)})),s.default.set(e,"colorInfo",i),s.default.set(e,"widthInfo",r)}},6497:function(e,t,i){"use strict";i.d(t,{Aq:function(){return d},JD:function(){return c},Mn:function(){return l},Ti:function(){return h},q8:function(){return a},tr:function(){return u}});var s=i(5965),n=i(7226),o=i(5487),r=i(144);const a=()=>s.Z.getters.isYZPro,l=()=>!(!window.isPhone||!window.isPhone())||!(!window.isPad||!window.isPad()),d=(e,t)=>!(!(0,n.Z)(e)||!t)&&(0,o.Z)(e,t),h=e=>0!==Object.keys(e).length&&(!(!e.type||"playAudio"!==e.type)&&(0!==e.audioList.length||0!==e.link||0!==e.specifyAudioList.length)),c=async e=>{await r.default.nextTick(),e.PlayAudio&&e.PlayAudio.playControl&&e.PlayAudio.playControl()},u=({ignoreId:e,isAll:t=!1})=>{if(!e&&!t)return;const i=document.querySelectorAll(".play-audio");0!==i.length&&i.forEach((i=>{if(t)return i.pause();i.getAttribute("id")!==e&&i.pause()}))}},254:function(e,t,i){"use strict";i.d(t,{d:function(){return r}});var s=i(8993),n=i(186),o=i(5705);const r={props:{progress:{type:Number,required:!0,default:0,desc:"音频播放进度"},curMusicTotalTime:{type:Number,required:!0,desc:"当前音频的总时长"},curMusicCurTime:{type:Number,required:!0,desc:"当前音频播放到第几秒"},pageIndex:{type:Number,required:!0,desc:"pluginMusic元素所在的页面下标"}},computed:{getAudioCurrentTime:function(){if(0===this.item.musicList.length)return"00:00";const e=this.progress/100*this.curMusicTotalTime;return 100===this.progress?this.formatTime(this.curMusicCurTime):this.formatTime(e)},audioDuration:function(){if(0===this.musicList.length)return"00:00";const e=this.formatTime(this.curMusicTotalTime);return e||"00:00"},VolumeStyle(){let e={};return this.item.controlColorList.forEach(((t,i)=>{t.type?.includes("volume")&&(e[`--music-skin_color_${i}`]=t.color)})),e},volume:{get:function(){return this.item.volume},set:function(e){this.item.volume=e}},isMute:{get:function(){return this.item.isMute},set:function(e){this.item.isMute=e}},volumeBeforeMute:function(){return this.item.volumeBeforeMute}},methods:{formatTime:function(e){let t="00:00";if(e>-1){let i=Math.floor(e/60),s=e%60;t=i<10?"0"+i+":":i+":",s<10&&(t+="0"),t+=s.toFixed(2)}return t&&(t=t.substring(0,t.length-3)),t},progressMouseDown:function(){this.$emit("progressMouseDown")},progressMouseUp:function(){this.$emit("progressMouseUp")},progressInput:function(e){this.$emit("progressInput",e)},changeVolume:function(e){(0,n.$h)({type:"setVolume",audioItem:this.item,pageIndex:this.pageIndex,option:{volume:Number.parseFloat(e.target.value)/100}});let t=(0,o.I_)(this.item,this.pageIndex);this.isMute=0===t},muteOrRecover:function(){this.$emit("muteOrRecover")},inputVolume(e){this.volume=e.target.value},replay:function(){this.$emit("replay")}},components:{Progress:s.Z}}},2261:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});const s={props:{item:{type:Object,required:!0},currentMusicSrc:{type:String,required:!1,desc:"当前正在播放的音频链接",default:""}},data(){return{rotateVal:0,timer:null}},components:{AudioQrcode:()=>Promise.resolve().then(i.bind(i,4449))},computed:{musicSkin:function(){return this.item.musicSkin},audioIsPlaying:{get:function(){return this.item.audioIsPlaying},set:function(e){this.item.audioIsPlaying=e}},audioStyle(){let e={};const t=this.item.musicScale.x,i=this.item.musicScale.y;e["font-size"]=Math.min(t,i)+"px";const s=this.item.controlColorList;return s&&s.length&&s.forEach(((t,i)=>{e[`--music-skin_color_${i}`]=t.color})),e},isPreviewMode:function(){return this.$store.state.topHeader.isPreviewMode},musicList:function(){return this.item.musicList}},beforeDestroy(){this.timer&&(window.cancelAnimationFrame(this.timer),this.timer=null)},watch:{audioIsPlaying(e){e?this.timer=window.requestAnimationFrame(this.rotate):this.timer&&(window.cancelAnimationFrame(this.timer),this.timer=null)}},methods:{playMusic(){this.audioIsPlaying?this.$emit("pause"):this.$emit("play")},switchAudio(e){2===this.musicSkin&&this.$emit("switchAudio",e)},rotate(){const e=this.$refs.rotateRef;e&&this.musicList.length&&(this.rotateVal>=360&&(this.rotateVal=0),this.rotateVal+=1.2,e.style.transform=`rotateZ(${this.rotateVal}deg)`,this.timer=window.requestAnimationFrame(this.rotate))}}}},9318:function(e,t,i){"use strict";i.d(t,{Ny:function(){return r},bv:function(){return l},hb:function(){return a}});i(7658);var s=i(5705),n=i(6497),o=i(5965);const r=({item:e,event:t,gtagLabel:i,pageIndex:s})=>{window?.gtag&&window.bookConfig?.googleAnalyticsID&&"number"==typeof s&&window.gtag("event",t,{event_category:e.type,event_label:`Page${s} ${i}`})},a=()=>{const e=(0,s.LY)();0!==e.length&&e.forEach((e=>{e.pause()})),(0,n.tr)({isAll:!0})},l=e=>{const t=document.querySelectorAll(".origin-video video"),i=o.Z.state.videoPlayObj;if(0===t.length&&0===i.length)return;let s=[...i];t.forEach((e=>{e.paused||s.push(e)})),s.forEach((t=>{if("youtube"===t?.type&&void 0!==t.playObj?.g&&void 0!==e.g){const i=e.g?.getAttribute("id"),s=t.playObj.g?.getAttribute("id");if(i===s)return}if(t!==e)try{!t.type&&t?.pause(),"youtube"===t.type&&t.playObj.pauseVideo()}catch(e){}}))}},979:function(e,t,i){"use strict";i.r(t),i.d(t,{SwiperBasicOptions:function(){return ue},SwiperEvents:function(){return pe},SwiperModel:function(){return ce}});var s=i(7873),n=(i(7658),i(7628));function o(e,t=0){return setTimeout(e,t)}function r(){return Date.now()}function a(e,t="x"){const i=(0,n.Jj)();let s,o,r;const a=function(e){const t=(0,n.Jj)();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new i.WebKitCSSMatrix("none"===o?"":o)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===t&&(o=i.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(o=i.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),o||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function d(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let n=1;ni.indexOf(e)<0));for(let i=0,s=e.length;io?"next":"prev",h=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,c=()=>{r=(new Date).getTime(),null===a&&(a=r);const n=Math.max(Math.min((r-a)/l,1),0),d=.5-Math.cos(n*Math.PI)/2;let u=o+d*(t-o);if(h(u,t)&&(u=t),e.wrapperEl.scrollTo({[i]:u}),h(u,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:u})})),void s.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=s.requestAnimationFrame(c)};c()}function u(e){return e.querySelector(".swiper-slide-transform")||e.shadowEl&&e.shadowEl.querySelector(".swiper-slide-transform")||e}function p(e,t=""){return[...e.children].filter((e=>e.matches(t)))}function m(e,t=[]){const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:[t]),i}function g(e){const t=(0,n.Jj)(),i=(0,n.Me)(),s=e.getBoundingClientRect(),o=i.body,r=e.clientTop||o.clientTop||0,a=e.clientLeft||o.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:s.top+l-r,left:s.left+d-a}}function f(e,t){return(0,n.Jj)().getComputedStyle(e,null).getPropertyValue(t)}function w(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function y(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function v(e,t){t&&e.addEventListener("transitionend",(function i(s){s.target===e&&(t.call(e,s),e.removeEventListener("transitionend",i))}))}function x(e,t,i){const s=(0,n.Jj)();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let C,b,I;function S(){return C||(C=function(){const e=(0,n.Jj)(),t=(0,n.Me)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),C}function P(e={}){return b||(b=function({userAgent:e}={}){const t=S(),i=(0,n.Jj)(),s=i.navigator.platform,o=e||i.navigator.userAgent,r={ios:!1,android:!1},a=i.screen.width,l=i.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/);let h=o.match(/(iPad).*OS\s([\d_]+)/);const c=o.match(/(iPod)(.*OS\s([\d_]+))?/),u=!h&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s;let m="MacIntel"===s;return!h&&m&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(h=o.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),m=!1),d&&!p&&(r.os="android",r.android=!0),(h||u||c)&&(r.os="ios",r.ios=!0),r}(e)),b}function T(){return I||(I=function(){const e=(0,n.Jj)();let t=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const i=String(e.navigator.userAgent);if(i.includes("Version/")){const[e,s]=i.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));t=e<16||16===e&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),I}var $={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)})),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function n(...i){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy,t.apply(s,i)}return n.__emitterProxy=t,s.on(e,n,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)}))})),i):i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i,s,n;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),n=t):(i=e[0].events,s=e[0].data,n=e[0].context||t),s.unshift(n);return(Array.isArray(i)?i:i.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(n,[e,...s])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(n,s)}))})),t}};const k=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){const t=i.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},L=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},M=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,o=[i-t];return o.push(...Array.from({length:t}).map(((e,t)=>i+s+t))),void e.slides.forEach(((t,i)=>{o.includes(t.column)&&L(e,i)}))}const o=n+s-1;if(e.params.rewind||e.params.loop)for(let s=n-t;s<=o+t;s+=1){const t=(s%i+i)%i;(to)&&L(e,t)}else for(let s=Math.max(n-t,0);s<=Math.min(o+t,i-1);s+=1)s!==n&&(s>o||s=0?S=parseFloat(S.replace("%",""))/100*r:"string"==typeof S&&(S=parseFloat(S)),e.virtualSize=-S,u.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(h(n,"--swiper-centered-offset-before",""),h(n,"--swiper-centered-offset-after",""));const k=s.grid&&s.grid.rows>1&&e.grid;let L;k&&e.grid.initSlides(m);const M="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let n=0;n1&&g.push(e.virtualSize-r)}if(d&&s.loop){const t=y[0]+S;if(s.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),n=t*s.slidesPerGroup;for(let e=0;e!(s.cssMode&&!s.loop)||t!==u.length-1)).forEach((e=>{e.style[i]=`${S}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;y.forEach((t=>{e+=t+(S||0)})),e-=S;const t=e-r;g=g.map((e=>e<=0?-v:e>t?t+C:e))}if(s.centerInsufficientSlides){let e=0;if(y.forEach((t=>{e+=t+(S||0)})),e-=S,e{g[i]=e-t})),w.forEach(((e,i)=>{w[i]=e+t}))}}if(Object.assign(e,{slides:u,snapGrid:g,slidesGrid:w,slidesSizesGrid:y}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){h(n,"--swiper-centered-offset-before",-g[0]+"px"),h(n,"--swiper-centered-offset-after",e.size/2-y[y.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(m!==c&&e.emit("slidesLengthChange"),g.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),w.length!==I&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(d||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);m<=s.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const r=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{i.push(e)}));else for(n=0;nt.slides.length&&!s)break;i.push(r(e))}else i.push(r(t.activeIndex));for(n=0;no?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s{e.classList.remove(i.slideVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=i.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e=0&&u1&&p<=t.size||u<=0&&p>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),s[e].classList.add(i.slideVisibleClass)),l.progress=n?-h:h,l.originalProgress=n?-c:c}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:o,isEnd:r,progressLoop:a}=t;const l=o,d=r;if(0===s)n=0,o=!0,r=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=i||n<=0,r=a||n>=1,i&&(n=0),a&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],o=t.slidesGrid[s],r=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=n?(l-n)/r:(l+r-o)/r,a>1&&(a-=1)}Object.assign(t,{progress:n,progressLoop:a,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),r&&!d&&t.emit("reachEnd toEdge"),(l&&!o||d&&!r)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:n}=e,o=e.virtual&&i.virtual.enabled,r=e=>p(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let a;if(t.forEach((e=>{e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)})),o)if(i.loop){let t=n-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),a=r(`[data-swiper-slide-index="${t}"]`)}else a=r(`[data-swiper-slide-index="${n}"]`);else a=t[n];if(a){a.classList.add(i.slideActiveClass);let e=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(a,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!e&&(e=t[0]),e&&e.classList.add(i.slideNextClass);let s=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(a,`.${i.slideClass}, swiper-slide`)[0];i.loop&&0===!s&&(s=t[t.length-1]),s&&s.classList.add(i.slidePrevClass)}e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:n,activeIndex:o,realIndex:r,snapIndex:a}=t;let l,d=e;const h=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let e=0;e=t[e]&&s=t[e]&&s=t[e]&&(n=e);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(t)),s.indexOf(i)>=0)l=s.indexOf(i);else{const e=Math.min(n.slidesPerGroupSkip,d);l=e+Math.floor((d-e)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),d===o)return l!==a&&(t.snapIndex=l,t.emit("snapIndexChange")),void(t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=h(d)));let c;c=t.virtual&&n.virtual.enabled&&n.loop?h(d):t.slides[d]?parseInt(t.slides[d].getAttribute("data-swiper-slide-index")||d,10):d,Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:r,realIndex:c,previousIndex:o,activeIndex:d}),t.initialized&&M(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),r!==c&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=e.closest(`.${i.slideClass}, swiper-slide`);let n,o=!1;if(s)for(let e=0;el?l:s&&eo?"next":n=l.length&&(w=l.length-1);const y=-l[w];if(a.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(r=e)}if(o.initialized&&r!==u){if(!o.allowSlideNext&&(p?y>o.translate&&y>o.minTranslate():yo.translate&&y>o.maxTranslate()&&(u||0)!==r)return!1}let v;if(r!==(h||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),v=r>u?"next":r0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{m[e?"scrollLeft":"scrollTop"]=i}))):m[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}))}else{if(!o.support.smoothScroll)return c({swiper:o,targetPosition:i,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,s),o.transitionStart(i,v),0===t?o.transitionEnd(i,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,v))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,s){if("string"==typeof e){e=parseInt(e,10)}const n=this;let o=e;return n.params.loop&&(n.virtual&&n.params.virtual.enabled?o+=n.virtual.slidesBefore:o=n.getSlideIndexByData(o)),n.slideTo(o,t,i,s)},slideNext:function(e=this.params.speed,t=!0,i){const s=this,{enabled:n,params:o,animating:r}=s;if(!n)return s;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndexc(e)));let m=o[p.indexOf(u)-1];if(void 0===m&&n.cssMode){let e;o.forEach(((t,i)=>{u>=t&&(e=i)})),void 0!==e&&(m=o[e>0?e-1:e])}let g=0;if(void 0!==m&&(g=r.indexOf(m),g<0&&(g=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(g=g-s.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(g,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,s=.5){const n=this;let o=n.activeIndex;const r=Math.min(n.params.slidesPerGroupSkip,o),a=r+Math.floor((o-r)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const e=n.snapGrid[a];l-e>(n.snapGrid[a+1]-e)*s&&(o+=n.params.slidesPerGroup)}else{const e=n.snapGrid[a-1];l-e<=(n.snapGrid[a]-e)*s&&(o-=n.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,n.slidesGrid.length-1),n.slideTo(o,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,r=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?re.slides.length-e.loopedSlides+s/2?(e.loopFix(),r=e.getSlideIndex(p(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),o((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-s?(e.loopFix(),r=e.getSlideIndex(p(i,`${a}[data-swiper-slide-index="${n}"]`)[0]),o((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var F={loopCreate:function(e){const t=this,{params:i,slidesEl:s}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;p(s,`.${i.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})),t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:n,byController:o,byMousewheel:r}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:d,allowSlideNext:h,slidesEl:c,params:u}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&u.virtual.enabled)return t&&(u.centeredSlides||0!==a.snapIndex?u.centeredSlides&&a.snapIndexe.classList.contains(u.slideActiveClass)))[0]):w=n;const y="next"===i||!i,v="prev"===i||!i;let x=0,C=0;if(na.slides.length-2*m){C=Math.max(n-(a.slides.length-2*m),u.slidesPerGroup);for(let e=0;e{a.slides[e].swiperLoopMoveDOM=!0,c.prepend(a.slides[e]),a.slides[e].swiperLoopMoveDOM=!1})),y&&f.forEach((e=>{a.slides[e].swiperLoopMoveDOM=!0,c.append(a.slides[e]),a.slides[e].swiperLoopMoveDOM=!1})),a.recalcSlides(),"auto"===u.slidesPerView&&a.updateSlides(),u.watchSlidesProgress&&a.updateSlidesOffset(),t)if(g.length>0&&v)if(void 0===e){const e=a.slidesGrid[w],t=a.slidesGrid[w+x]-e;r?a.setTranslate(a.translate-t):(a.slideTo(w+x,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=t))}else s&&a.slideToLoop(e,0,!1,!0);else if(f.length>0&&y)if(void 0===e){const e=a.slidesGrid[w],t=a.slidesGrid[w-C]-e;r?a.setTranslate(a.translate-t):(a.slideTo(w-C,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=t))}else a.slideToLoop(e,0,!1,!0);if(a.allowSlidePrev=d,a.allowSlideNext=h,a.controller&&a.controller.control&&!o){const t={slideRealIndex:e,slideTo:!1,direction:i,setTranslate:s,activeSlideIndex:n,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach((e=>{!e.destroyed&&e.params.loop&&e.loopFix(t)})):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(t)}a.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),s.forEach((e=>{i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function O(e){const t=this,i=(0,n.Me)(),s=(0,n.Jj)(),o=t.touchEventsData;o.evCache.push(e);const{params:a,touches:l,enabled:d}=t;if(!d)return;if(!a.simulateTouch&&"mouse"===e.pointerType)return;if(t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let h=e;h.originalEvent&&(h=h.originalEvent);let c=h.target;if("wrapper"===a.touchEventsTarget&&!t.wrapperEl.contains(c))return;if("which"in h&&3===h.which)return;if("button"in h&&h.button>0)return;if(o.isTouched&&o.isMoved)return;const u=!!a.noSwipingClass&&""!==a.noSwipingClass,p=e.composedPath?e.composedPath():e.path;u&&h.target&&h.target.shadowRoot&&p&&(c=p[0]);const m=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,g=!(!h.target||!h.target.shadowRoot);if(a.noSwiping&&(g?function(e,t=this){return function t(i){if(!i||i===(0,n.Me)()||i===(0,n.Jj)())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(m,c):c.closest(m)))return void(t.allowClick=!0);if(a.swipeHandler&&!c.closest(a.swipeHandler))return;l.currentX=h.pageX,l.currentY=h.pageY;const f=l.currentX,w=l.currentY,y=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,v=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(y&&(f<=v||f>=s.innerWidth-v)){if("prevent"!==y)return;e.preventDefault()}Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=f,l.startY=w,o.touchStartTime=r(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(o.allowThresholdMove=!1);let x=!0;c.matches(o.focusableElements)&&(x=!1,"SELECT"===c.nodeName&&(o.isTouched=!1)),i.activeElement&&i.activeElement.matches(o.focusableElements)&&i.activeElement!==c&&i.activeElement.blur();const C=x&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!C||c.isContentEditable||h.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",h)}function B(e){const t=(0,n.Me)(),i=this,s=i.touchEventsData,{params:o,touches:a,rtlTranslate:l,enabled:d}=i;if(!d)return;if(!o.simulateTouch&&"mouse"===e.pointerType)return;let h=e;if(h.originalEvent&&(h=h.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",h));const c=s.evCache.findIndex((e=>e.pointerId===h.pointerId));c>=0&&(s.evCache[c]=h);const u=s.evCache.length>1?s.evCache[0]:h,p=u.pageX,m=u.pageY;if(h.preventedByNestedSwiper)return a.startX=p,void(a.startY=m);if(!i.allowTouchMove)return h.target.matches(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(a,{startX:p,startY:m,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:p,currentY:m}),s.touchStartTime=r()));if(o.touchReleaseOnEdges&&!o.loop)if(i.isVertical()){if(ma.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(pa.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&h.target===t.activeElement&&h.target.matches(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",h),h.targetTouches&&h.targetTouches.length>1)return;a.currentX=p,a.currentY=m;const g=a.currentX-a.startX,f=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(g**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(g))/Math.PI,s.isScrolling=i.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",h),void 0===s.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(s.startMoving=!0)),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!o.cssMode&&h.cancelable&&h.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&h.stopPropagation();let w=i.isHorizontal()?g:f,y=i.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;o.oneWayMovement&&(w=Math.abs(w)*(l?1:-1),y=Math.abs(y)*(l?1:-1)),a.diff=w,w*=o.touchRatio,l&&(w=-w,y=-y);const v=i.touchesDirection;i.swipeDirection=w>0?"prev":"next",i.touchesDirection=y>0?"prev":"next";const x=i.params.loop&&!o.cssMode;if(!s.isMoved){if(x&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,!o.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",h)}let C;s.isMoved&&v!==i.touchesDirection&&x&&Math.abs(w)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),C=!0),i.emit("sliderMove",h),s.isMoved=!0,s.currentTranslate=w+s.startTranslate;let b=!0,I=o.resistanceRatio;if(o.touchReleaseOnEdges&&(I=0),w>0?(x&&!C&&s.currentTranslate>(o.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(b=!1,o.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+w)**I))):w<0&&(x&&!C&&s.currentTranslate<(o.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===o.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),o.threshold>0){if(!(Math.abs(w)>o.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Z(e){const t=this,i=t.touchEventsData,s=i.evCache.findIndex((t=>t.pointerId===e.pointerId));if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(e.type)){if(!("pointercancel"===e.type&&(t.browser.isSafari||t.browser.isWebView)))return}const{params:n,touches:a,rtlTranslate:l,slidesGrid:d,enabled:h}=t;if(!h)return;if(!n.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=r(),p=u-i.touchStartTime;if(t.allowClick){const e=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(e&&e[0]||c.target),t.emit("tap click",c),p<300&&u-i.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(i.lastClickTime=r(),o((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===a.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let m;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,m=n.followFinger?l?t.translate:-t.translate:-i.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:m});let g=0,f=t.slidesSizesGrid[0];for(let e=0;e=d[e]&&m=d[e]&&(g=e,f=d[d.length-1]-d[d.length-2])}let w=null,y=null;n.rewind&&(t.isBeginning?y=n.virtual&&n.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const v=(m-d[g])/f,x=gn.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?w:g+x):t.slideTo(g)),"prev"===t.swipeDirection&&(v>1-n.longSwipesRatio?t.slideTo(g+x):null!==y&&v<0&&Math.abs(v)>n.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(g+x):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+x),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:g))}}function H(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:o}=e,r=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=r&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!r?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function N(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function z(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();n=0===o?0:(e.translate-e.minTranslate())/o,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function R(e){const t=this;k(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}let V=!1;function D(){}const G=(e,t)=>{const i=(0,n.Me)(),{params:s,el:o,wrapperEl:r,device:a}=e,l=!!s.nested,d="on"===t?"addEventListener":"removeEventListener",h=t;o[d]("pointerdown",e.onTouchStart,{passive:!1}),i[d]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[d]("pointerup",e.onTouchEnd,{passive:!0}),i[d]("pointercancel",e.onTouchEnd,{passive:!0}),i[d]("pointerout",e.onTouchEnd,{passive:!0}),i[d]("pointerleave",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&o[d]("click",e.onClick,!0),s.cssMode&&r[d]("scroll",e.onScroll),s.updateOnWindowResize?e[h](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",H,!0):e[h]("observerUpdate",H,!0),o[d]("load",e.onLoad,{capture:!0})};const Y=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var j={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function U(e,t){return function(i={}){const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in n?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),d(t,i)):d(t,i)):d(t,i)}}const X={eventsEmitter:$,update:E,translate:A,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`),i.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),_({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),_({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:W,loop:F,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,t=(0,n.Me)(),{params:i}=e;e.onTouchStart=O.bind(e),e.onTouchMove=B.bind(e),e.onTouchEnd=Z.bind(e),i.cssMode&&(e.onScroll=z.bind(e)),e.onClick=N.bind(e),e.onLoad=R.bind(e),V||(t.addEventListener("touchstart",D),V=!0),G(e,"on")},detachEvents:function(){G(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:s,el:n}=e,o=s.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const r=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const a=(r in o?o[r]:void 0)||e.originalParams,l=Y(e,s),h=Y(e,a),c=s.enabled;l&&!h?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&h&&(n.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&"column"===a.grid.fill||!a.grid.fill&&"column"===s.grid.fill)&&n.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===a[t])return;const i=s[t]&&s[t].enabled,n=a[t]&&a[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()}));const u=a.direction&&a.direction!==s.direction,p=s.loop&&(a.slidesPerView!==s.slidesPerView||u);u&&i&&e.changeDirection(),d(e.params,a);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!m?e.disable():!c&&m&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",a),p&&i&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1;const o=(0,n.Jj)(),r="window"===t?o.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;ei}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,el:n,device:o}=e,r=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...r),n.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},q={};class Q{constructor(...e){let t,i;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=d({},i),t&&!i.el&&(i.el=t);const s=(0,n.Me)();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){const e=[];return s.querySelectorAll(i.el).forEach((t=>{const s=d({},i,{el:t});e.push(new Q(s))})),e}const o=this;o.__swiper__=!0,o.support=S(),o.device=P({userAgent:i.userAgent}),o.browser=T(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],i.modules&&Array.isArray(i.modules)&&o.modules.push(...i.modules);const r={};o.modules.forEach((e=>{e({params:i,swiper:o,extendParams:U(i,r),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const a=d({},j,r);return o.params=d({},a,q,i),o.originalParams=d({},o.params),o.passedParams=d({},i),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===o.params.direction},isVertical(){return"vertical"===o.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(e){const{slidesEl:t,params:i}=this,s=w(p(t,`.${i.slideClass}, swiper-slide`)[0]);return w(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=p(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*e+s;i.translateTo(n,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:o,size:r,activeIndex:a}=this;let l=1;if(i.centeredSlides){let e,t=s[a]?s[a].swiperSlideSize:0;for(let i=a+1;ir&&(e=!0));for(let i=a-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>r&&(e=!0))}else if("current"===e)for(let e=a+1;e=0;e-=1){n[a]-n[e]{t.complete&&k(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(t.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.shadowEl&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(s())}return p(i,s())[0]})();return!n&&t.params.createElements&&(n=m("div",t.params.wrapperClass),i.append(n),p(i,`.${t.params.slideClass}`).forEach((e=>{n.append(e)}))),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement?i:n,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===f(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===f(i,"direction")),wrongRTL:"-webkit-box"===f(n,"display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete?k(t,e):e.addEventListener("load",(e=>{k(t,e.target)}))})),M(t),t.initialized=!0,M(t),t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const i=this,{params:s,el:n,wrapperEl:o,slides:r}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttribute("style"),o.removeAttribute("style"),r&&r.length&&r.forEach((e=>{e.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){d(q,e)}static get extendedDefaults(){return q}static get defaults(){return j}static installModule(e){Q.prototype.__modules__||(Q.prototype.__modules__=[]);const t=Q.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Q.installModule(e))),Q):(Q.installModule(e),Q)}}Object.keys(X).forEach((e=>{Object.keys(X[e]).forEach((t=>{Q.prototype[t]=X[e][t]}))})),Q.use([function({swiper:e,on:t,emit:i}){const s=(0,n.Jj)();let o=null,r=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(o=new ResizeObserver((t=>{r=s.requestAnimationFrame((()=>{const{width:i,height:s}=e;let n=i,o=s;t.forEach((({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(n=i?i.width:(t[0]||t).inlineSize,o=i?i.height:(t[0]||t).blockSize)})),n===i&&o===s||a()}))})),o.observe(e.el)):(s.addEventListener("resize",a),s.addEventListener("orientationchange",l))})),t("destroy",(()=>{r&&s.cancelAnimationFrame(r),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",l)}))},function({swiper:e,extendParams:t,on:i,emit:s}){const o=[],r=(0,n.Jj)(),a=(t,i={})=>{const n=new(r.MutationObserver||r.WebkitMutationObserver)((t=>{if(e.__preventObserver__)return;if(1===t.length)return void s("observerUpdate",t[0]);const i=function(){s("observerUpdate",t[0])};r.requestAnimationFrame?r.requestAnimationFrame(i):r.setTimeout(i,0)}));n.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),o.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=y(e.el);for(let e=0;e{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);var K=Q;function J(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach((n=>{if(!i[n]&&!0===i.auto){let o=p(e.el,`.${s[n]}`)[0];o||(o=m("div",s[n]),o.className=s[n],e.el.append(o)),i[n]=o,t[n]=o}})),i}function ee(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}i(6229),i(7330),i(2062);function te(e){const t=this,{params:i,slidesEl:s}=t;i.loop&&t.loopDestroy();const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.append(t.children[0]),t.innerHTML=""}else s.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,n.prepend(t.children[0]),t.innerHTML=""}else n.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t=a)return void i.appendSlide(t);let l=r>e?r+1:r;const d=[];for(let t=a-1;t>=e;t-=1){const e=i.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?r+t.length:r}else o.append(t);for(let e=0;e{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=r?r():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),s("setTranslate",(()=>{i.params.effect===t&&n()})),s("setTransition",((e,s)=>{i.params.effect===t&&o(s)})),s("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!d||!d().slideShadows)return;i.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),l()}})),s("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(h=!0),requestAnimationFrame((()=>{h&&i.slides&&i.slides.length&&(n(),h=!1)})))}))}function ae(e,t){const i=u(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function le({swiper:e,duration:t,transformElements:i,allSlides:s}){const{activeIndex:n}=e;if(e.params.virtualTranslate&&0!==t){let t,o=!1;t=s?i:i.filter((t=>{const i=t.classList.contains("swiper-slide-transform")?(t=>{if(!t.parentElement)return e.slides.filter((e=>e.shadowEl&&e.shadowEl===t.parentNode))[0];return t.parentElement})(t):t;return e.getSlideIndex(i)===n})),t.forEach((t=>{v(t,(()=>{if(o)return;if(!e||e.destroyed)return;o=!0,e.animating=!1;const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(t)}))}))}}function de(e,t,i){const s="swiper-slide-shadow"+(i?`-${i}`:""),n=u(t);let o=n.querySelector(`.${s}`);return o||(o=m("div","swiper-slide-shadow"+(i?`-${i}`:"")),n.append(o)),o}const he=[function({swiper:e,extendParams:t,on:i,emit:s}){let o;t({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const r=(0,n.Me)();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=r.createElement("div");function l(t,i){const s=e.params.virtual;if(s.cache&&e.virtual.cache[i])return e.virtual.cache[i];let n;return s.renderSlide?(n=s.renderSlide.call(e,t,i),"string"==typeof n&&(a.innerHTML=n,n=a.children[0])):n=e.isElement?m("swiper-slide"):m("div",e.params.slideClass),n.setAttribute("data-swiper-slide-index",i),s.renderSlide||(n.innerHTML=t),s.cache&&(e.virtual.cache[i]=n),n}function d(t){const{slidesPerView:i,slidesPerGroup:n,centeredSlides:o,loop:r}=e.params,{addSlidesBefore:a,addSlidesAfter:d}=e.params.virtual,{from:h,to:c,slides:u,slidesGrid:m,offset:g}=e.virtual;e.params.cssMode||e.updateActiveIndex();const f=e.activeIndex||0;let w,y,v;w=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(y=Math.floor(i/2)+n+d,v=Math.floor(i/2)+n+a):(y=i+(n-1)+d,v=(r?i:n)+a);let x=f-v,C=f+y;r||(x=Math.max(x,0),C=Math.min(C,u.length-1));let b=(e.slidesGrid[x]||0)-(e.slidesGrid[0]||0);function I(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s("virtualUpdate")}if(r&&f>=v?(x-=v,o||(b+=e.slidesGrid[0])):r&&f{t.style[w]=b-Math.abs(e.cssOverflowAdjustment())+"px"})),e.updateProgress(),void s("virtualUpdate");if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:b,from:x,to:C,slides:function(){const e=[];for(let t=x;t<=C;t+=1)e.push(u[t]);return e}()}),void(e.params.virtual.renderExternalUpdate?I():s("virtualUpdate"));const S=[],P=[],T=e=>{let t=e;return e<0?t=u.length+e:t>=u.length&&(t-=u.length),t};if(t)e.slidesEl.querySelectorAll(`.${e.params.slideClass}, swiper-slide`).forEach((e=>{e.remove()}));else for(let t=h;t<=c;t+=1)if(tC){const i=T(t);e.slidesEl.querySelectorAll(`.${e.params.slideClass}[data-swiper-slide-index="${i}"], swiper-slide[data-swiper-slide-index="${i}"]`).forEach((e=>{e.remove()}))}const $=r?-u.length:0,k=r?2*u.length:u.length;for(let e=$;e=x&&e<=C){const i=T(e);void 0===c||t?P.push(i):(e>c&&P.push(i),e{e.slidesEl.append(l(u[t],t))})),r)for(let t=S.length-1;t>=0;t-=1){const i=S[t];e.slidesEl.prepend(l(u[i],i))}else S.sort(((e,t)=>t-e)),S.forEach((t=>{e.slidesEl.prepend(l(u[t],t))}));p(e.slidesEl,".swiper-slide, swiper-slide").forEach((t=>{t.style[w]=b-Math.abs(e.cssOverflowAdjustment())+"px"})),I()}i("beforeInit",(()=>{if(!e.params.virtual.enabled)return;let t;if(void 0===e.passedParams.virtual.slides){const i=[...e.slidesEl.children].filter((t=>t.matches(`.${e.params.slideClass}, swiper-slide`)));i&&i.length&&(e.virtual.slides=[...i],t=!0,i.forEach(((t,i)=>{t.setAttribute("data-swiper-slide-index",i),e.virtual.cache[i]=t,t.remove()})))}t||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,e.params.initialSlide||d()})),i("setTranslate",(()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(o),o=setTimeout((()=>{d()}),100)):d())})),i("init update resize",(()=>{e.params.virtual.enabled&&e.params.cssMode&&h(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)})),Object.assign(e.virtual,{appendSlide:function(t){if("object"==typeof t&&"length"in t)for(let i=0;i{const s=t[e],o=s.getAttribute("data-swiper-slide-index");o&&s.setAttribute("data-swiper-slide-index",parseInt(o,10)+n),i[parseInt(e,10)+n]=s})),e.virtual.cache=i}d(!0),e.slideTo(s,0)},removeSlide:function(t){if(null==t)return;let i=e.activeIndex;if(Array.isArray(t))for(let s=t.length-1;s>=0;s-=1)e.virtual.slides.splice(t[s],1),e.params.virtual.cache&&delete e.virtual.cache[t[s]],t[s]0&&0===y(e.el,`.${e.params.slideActiveClass}`).length)return;const s=e.el,n=s.clientWidth,o=s.clientHeight,a=r.innerWidth,l=r.innerHeight,d=g(s);i&&(d.left-=s.scrollLeft);const h=[[d.left,d.top],[d.left+n,d.top],[d.left,d.top+o],[d.left+n,d.top+o]];for(let e=0;e=0&&i[0]<=a&&i[1]>=0&&i[1]<=l){if(0===i[0]&&0===i[1])continue;t=!0}}if(!t)return}e.isHorizontal()?((d||h||c||u)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((h||u)&&!i||(d||c)&&i)&&e.slideNext(),((d||c)&&!i||(h||u)&&i)&&e.slidePrev()):((d||h||p||m)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(h||m)&&e.slideNext(),(d||p)&&e.slidePrev()),s("keyPress",a)}}function l(){e.keyboard.enabled||(o.addEventListener("keydown",a),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(o.removeEventListener("keydown",a),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{e.params.keyboard.enabled&&l()})),i("destroy",(()=>{e.keyboard.enabled&&d()})),Object.assign(e.keyboard,{enable:l,disable:d})},function({swiper:e,extendParams:t,on:i,emit:s}){const a=(0,n.Jj)();let l;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let d,h=r();const c=[];function u(){e.enabled&&(e.mouseEntered=!0)}function p(){e.enabled&&(e.mouseEntered=!1)}function m(t){return!(e.params.mousewheel.thresholdDelta&&t.delta=6&&r()-h<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),s("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),s("scroll",t.raw)),h=(new a.Date).getTime(),!1)))}function g(t){let i=t,n=!0;if(!e.enabled)return;if(t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const a=e.params.mousewheel;e.params.cssMode&&i.preventDefault();let h=e.el;"container"!==e.params.mousewheel.eventsTarget&&(h=document.querySelector(e.params.mousewheel.eventsTarget));const u=h&&h.contains(i.target);if(!e.mouseEntered&&!u&&!a.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let p=0;const g=e.rtlTranslate?-1:1,f=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(i);if(a.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;p=-f.pixelX*g}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;p=-f.pixelY}else p=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*g:-f.pixelY;if(0===p)return!0;a.invert&&(p=-p);let w=e.getTranslate()+p*a.sensitivity;if(w>=e.minTranslate()&&(w=e.minTranslate()),w<=e.maxTranslate()&&(w=e.maxTranslate()),n=!!e.params.loop||!(w===e.minTranslate()||w===e.maxTranslate()),n&&e.params.nested&&i.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:r(),delta:Math.abs(p),direction:Math.sign(p)},n=d&&t.time=e.minTranslate()&&(r=e.minTranslate()),r<=e.maxTranslate()&&(r=e.maxTranslate()),e.setTransition(0),e.setTranslate(r),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!h&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(l),l=void 0,c.length>=15&&c.shift();const i=c.length?c[c.length-1]:void 0,s=c[0];if(c.push(t),i&&(t.delta>i.delta||t.direction!==i.direction))c.splice(0);else if(c.length>=15&&t.time-s.time<500&&s.delta-t.delta>=1&&t.delta<=6){const i=p>0?.8:.2;d=t,c.splice(0),l=o((()=>{e.slideToClosest(e.params.speed,!0,void 0,i)}),0)}l||(l=o((()=>{d=t,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)}),500))}if(n||s("scroll",i),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),r===e.minTranslate()||r===e.maxTranslate())return!0}}else{const i={time:r(),delta:Math.abs(p),direction:Math.sign(p),raw:t};c.length>=2&&c.shift();const s=c.length?c[c.length-1]:void 0;if(c.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&m(i):m(i),function(t){const i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function f(t){let i=e.el;"container"!==e.params.mousewheel.eventsTarget&&(i=document.querySelector(e.params.mousewheel.eventsTarget)),i[t]("mouseenter",u),i[t]("mouseleave",p),i[t]("wheel",g)}function w(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",g),!0):!e.mousewheel.enabled&&(f("addEventListener"),e.mousewheel.enabled=!0,!0)}function y(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,g),!0):!!e.mousewheel.enabled&&(f("removeEventListener"),e.mousewheel.enabled=!1,!0)}i("init",(()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&y(),e.params.mousewheel.enabled&&w()})),i("destroy",(()=>{e.params.cssMode&&w(),e.mousewheel.enabled&&y()})),Object.assign(e.mousewheel,{enable:w,disable:y})},function({swiper:e,extendParams:t,on:i,emit:s}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const n=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function o(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.shadowRoot.querySelector(t),i)?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.el.querySelectorAll(t).length&&(i=e.el.querySelector(t))),t&&!i?t:i)}function r(t,i){const s=e.params.navigation;(t=n(t)).forEach((t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))}))}function a(){const{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop)return r(i,!1),void r(t,!1);r(i,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function d(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function h(){const t=e.params.navigation;if(e.params.navigation=J(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let i=o(t.nextEl),s=o(t.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:s}),i=n(i),s=n(s);const r=(i,s)=>{i&&i.addEventListener("click","next"===s?d:l),!e.enabled&&i&&i.classList.add(...t.lockClass.split(" "))};i.forEach((e=>r(e,"next"))),s.forEach((e=>r(e,"prev")))}function c(){let{nextEl:t,prevEl:i}=e.navigation;t=n(t),i=n(i);const s=(t,i)=>{t.removeEventListener("click","next"===i?d:l),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach((e=>s(e,"next"))),i.forEach((e=>s(e,"prev")))}i("init",(()=>{!1===e.params.navigation.enabled?u():(h(),a())})),i("toEdge fromEdge lock unlock",(()=>{a()})),i("destroy",(()=>{c()})),i("enable disable",(()=>{let{nextEl:t,prevEl:i}=e.navigation;t=n(t),i=n(i),[...t,...i].filter((e=>!!e)).forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass)))})),i("click",((t,i)=>{let{nextEl:o,prevEl:r}=e.navigation;o=n(o),r=n(r);const a=i.target;if(e.params.navigation.hideOnClick&&!r.includes(a)&&!o.includes(a)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;o.length?t=o[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),s(!0===t?"navigationShow":"navigationHide"),[...o,...r].filter((e=>!!e)).forEach((t=>t.classList.toggle(e.params.navigation.hiddenClass)))}}));const u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),h(),a()},disable:u,update:a,init:h,destroy:c})},function({swiper:e,extendParams:t,on:i,emit:s}){const n="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let r=0;const a=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function d(t,i){const{bulletActiveClass:s}=e.params.pagination;t&&(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${s}-${i}`),(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&t.classList.add(`${s}-${i}-${i}`))}function h(t){const i=t.target.closest(ee(e.params.pagination.bulletClass));if(!i)return;t.preventDefault();const s=w(i)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===s)return;const t=e.getSlideIndexByData(s),i=e.getSlideIndexByData(e.realIndex);t>e.slides.length-e.loopedSlides&&e.loopFix({direction:t>i?"next":"prev",activeSlideIndex:t,slideTo:!1}),e.slideToLoop(s)}else e.slideTo(s)}function c(){const t=e.rtl,i=e.params.pagination;if(l())return;let n,h,c=e.pagination.el;c=a(c);const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(h=e.previousRealIndex||0,n=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(n=e.snapIndex,h=e.previousSnapIndex):(h=e.previousIndex||0,n=e.activeIndex||0),"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const s=e.pagination.bullets;let a,l,u;if(i.dynamicBullets&&(o=x(s[0],e.isHorizontal()?"width":"height",!0),c.forEach((t=>{t.style[e.isHorizontal()?"width":"height"]=o*(i.dynamicMainBullets+4)+"px"})),i.dynamicMainBullets>1&&void 0!==h&&(r+=n-(h||0),r>i.dynamicMainBullets-1?r=i.dynamicMainBullets-1:r<0&&(r=0)),a=Math.max(n-r,0),l=a+(Math.min(s.length,i.dynamicMainBullets)-1),u=(l+a)/2),s.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)s.forEach((t=>{const s=w(t);s===n?t.classList.add(...i.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),i.dynamicBullets&&(s>=a&&s<=l&&t.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),s===a&&d(t,"prev"),s===l&&d(t,"next"))}));else{const t=s[n];if(t&&t.classList.add(...i.bulletActiveClass.split(" ")),e.isElement&&s.forEach(((e,t)=>{e.setAttribute("part",t===n?"bullet-active":"bullet")})),i.dynamicBullets){const e=s[a],t=s[l];for(let e=a;e<=l;e+=1)s[e]&&s[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(i.dynamicBullets){const n=Math.min(s.length,i.dynamicMainBullets+4),r=(o*n-o)/2-u*o,a=t?"right":"left";s.forEach((t=>{t.style[e.isHorizontal()?a:"top"]=`${r}px`}))}}c.forEach(((t,o)=>{if("fraction"===i.type&&(t.querySelectorAll(ee(i.currentClass)).forEach((e=>{e.textContent=i.formatFractionCurrent(n+1)})),t.querySelectorAll(ee(i.totalClass)).forEach((e=>{e.textContent=i.formatFractionTotal(p)}))),"progressbar"===i.type){let s;s=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(n+1)/p;let r=1,a=1;"horizontal"===s?r=o:a=o,t.querySelectorAll(ee(i.progressbarFillClass)).forEach((t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${a})`,t.style.transitionDuration=`${e.params.speed}ms`}))}"custom"===i.type&&i.renderCustom?(t.innerHTML=i.renderCustom(e,n+1,p),0===o&&s("paginationRender",t)):(0===o&&s("paginationRender",t),s("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass)}))}function u(){const t=e.params.pagination;if(l())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let n=e.pagination.el;n=a(n);let o="";if("bullets"===t.type){let s=e.params.loop?Math.ceil(i/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``),e.pagination.bullets=[],n.forEach((i=>{"custom"!==t.type&&(i.innerHTML=o||""),"bullets"===t.type&&e.pagination.bullets.push(...i.querySelectorAll(ee(t.bulletClass)))})),"custom"!==t.type&&s("paginationRender",n[0])}function p(){e.params.pagination=J(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i;"string"==typeof t.el&&e.isElement&&(i=e.el.shadowRoot.querySelector(t.el)),i||"string"!=typeof t.el||(i=[...document.querySelectorAll(t.el)]),i||(i=t.el),i&&0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(i)&&i.length>1&&(i=[...e.el.querySelectorAll(t.el)],i.length>1&&(i=i.filter((t=>y(t,".swiper")[0]===e.el))[0])),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(e.pagination,{el:i}),i=a(i),i.forEach((i=>{"bullets"===t.type&&t.clickable&&i.classList.add(t.clickableClass),i.classList.add(t.modifierClass+t.type),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.classList.add(`${t.modifierClass}${t.type}-dynamic`),r=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.classList.add(t.progressbarOppositeClass),t.clickable&&i.addEventListener("click",h),e.enabled||i.classList.add(t.lockClass)})))}function m(){const t=e.params.pagination;if(l())return;let i=e.pagination.el;i&&(i=a(i),i.forEach((i=>{i.classList.remove(t.hiddenClass),i.classList.remove(t.modifierClass+t.type),i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&i.removeEventListener("click",h)}))),e.pagination.bullets&&e.pagination.bullets.forEach((e=>e.classList.remove(...t.bulletActiveClass.split(" "))))}i("changeDirection",(()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:i}=e.pagination;i=a(i),i.forEach((i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)}))})),i("init",(()=>{!1===e.params.pagination.enabled?g():(p(),u(),c())})),i("activeIndexChange",(()=>{void 0===e.snapIndex&&c()})),i("snapIndexChange",(()=>{c()})),i("snapGridLengthChange",(()=>{u(),c()})),i("destroy",(()=>{m()})),i("enable disable",(()=>{let{el:t}=e.pagination;t&&(t=a(t),t.forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))))})),i("lock unlock",(()=>{c()})),i("click",((t,i)=>{const n=i.target;let{el:o}=e.pagination;if(Array.isArray(o)||(o=[o].filter((e=>!!e))),e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!n.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&n===e.navigation.nextEl||e.navigation.prevEl&&n===e.navigation.prevEl))return;const t=o[0].classList.contains(e.params.pagination.hiddenClass);s(!0===t?"paginationShow":"paginationHide"),o.forEach((t=>t.classList.toggle(e.params.pagination.hiddenClass)))}}));const g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=a(t),t.forEach((t=>t.classList.add(e.params.pagination.paginationDisabledClass)))),m()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=a(t),t.forEach((t=>t.classList.remove(e.params.pagination.paginationDisabledClass)))),p(),u(),c()},disable:g,render:u,update:c,init:p,destroy:m})},function({swiper:e,extendParams:t,on:i,emit:s}){const r=(0,n.Me)();let a,l,d,h,c=!1,u=null,p=null;function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:i}=e,{dragEl:s,el:n}=t,o=e.params.scrollbar,r=e.params.loop?e.progressLoop:e.progress;let a=l,h=(d-l)*r;i?(h=-h,h>0?(a=l-h,h=0):-h+l>d&&(a=d+h)):h<0?(a=l+h,h=0):h+l>d&&(a=d-h),e.isHorizontal()?(s.style.transform=`translate3d(${h}px, 0, 0)`,s.style.width=`${a}px`):(s.style.transform=`translate3d(0px, ${h}px, 0)`,s.style.height=`${a}px`),o.hide&&(clearTimeout(u),n.style.opacity=1,u=setTimeout((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3))}function w(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{dragEl:i,el:s}=t;i.style.width="",i.style.height="",d=e.isHorizontal()?s.offsetWidth:s.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),l="auto"===e.params.scrollbar.dragSize?d*h:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i.style.width=`${l}px`:i.style.height=`${l}px`,s.style.display=h>=1?"none":"",e.params.scrollbar.hide&&(s.style.opacity=0),e.params.watchOverflow&&e.enabled&&t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function y(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){const{scrollbar:i,rtlTranslate:s}=e,{el:n}=i;let o;o=(y(t)-g(n)[e.isHorizontal()?"left":"top"]-(null!==a?a:l/2))/(d-l),o=Math.max(Math.min(o,1),0),s&&(o=1-o);const r=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*o;e.updateProgress(r),e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}function x(t){const i=e.params.scrollbar,{scrollbar:n,wrapperEl:o}=e,{el:r,dragEl:l}=n;c=!0,a=t.target===l?y(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),o.style.transitionDuration="100ms",l.style.transitionDuration="100ms",v(t),clearTimeout(p),r.style.transitionDuration="0ms",i.hide&&(r.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",t)}function C(t){const{scrollbar:i,wrapperEl:n}=e,{el:o,dragEl:r}=i;c&&(t.preventDefault?t.preventDefault():t.returnValue=!1,v(t),n.style.transitionDuration="0ms",o.style.transitionDuration="0ms",r.style.transitionDuration="0ms",s("scrollbarDragMove",t))}function b(t){const i=e.params.scrollbar,{scrollbar:n,wrapperEl:r}=e,{el:a}=n;c&&(c=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",r.style.transitionDuration=""),i.hide&&(clearTimeout(p),p=o((()=>{a.style.opacity=0,a.style.transitionDuration="400ms"}),1e3)),s("scrollbarDragEnd",t),i.snapOnRelease&&e.slideToClosest())}function I(t){const{scrollbar:i,params:s}=e,n=i.el;if(!n)return;const o=n,a=!!s.passiveListeners&&{passive:!1,capture:!1},l=!!s.passiveListeners&&{passive:!0,capture:!1};if(!o)return;const d="on"===t?"addEventListener":"removeEventListener";o[d]("pointerdown",x,a),r[d]("pointermove",C,a),r[d]("pointerup",b,l)}function S(){const{scrollbar:t,el:i}=e;e.params.scrollbar=J(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const s=e.params.scrollbar;if(!s.el)return;let n,o;"string"==typeof s.el&&e.isElement&&(n=e.el.shadowRoot.querySelector(s.el)),n||"string"!=typeof s.el?n||(n=s.el):n=r.querySelectorAll(s.el),e.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.querySelectorAll(s.el).length&&(n=i.querySelector(s.el)),n.length>0&&(n=n[0]),n.classList.add(e.isHorizontal()?s.horizontalClass:s.verticalClass),n&&(o=n.querySelector(`.${e.params.scrollbar.dragClass}`),o||(o=m("div",e.params.scrollbar.dragClass),n.append(o))),Object.assign(t,{el:n,dragEl:o}),s.draggable&&e.params.scrollbar.el&&e.scrollbar.el&&I("on"),n&&n.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function P(){const t=e.params.scrollbar,i=e.scrollbar.el;i&&i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.params.scrollbar.el&&e.scrollbar.el&&I("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null},i("init",(()=>{!1===e.params.scrollbar.enabled?T():(S(),w(),f())})),i("update resize observerUpdate lock unlock",(()=>{w()})),i("setTranslate",(()=>{f()})),i("setTransition",((t,i)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&(e.scrollbar.dragEl.style.transitionDuration=`${t}ms`)}(i)})),i("enable disable",(()=>{const{el:t}=e.scrollbar;t&&t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)})),i("destroy",(()=>{P()}));const T=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),P()};Object.assign(e.scrollbar,{enable:()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),S(),w(),f()},disable:T,updateSize:w,setTranslate:f,init:S,destroy:P})},function({swiper:e,extendParams:t,on:i}){t({parallax:{enabled:!1}});const s=(t,i)=>{const{rtl:s}=e,n=s?-1:1,o=t.getAttribute("data-swiper-parallax")||"0";let r=t.getAttribute("data-swiper-parallax-x"),a=t.getAttribute("data-swiper-parallax-y");const l=t.getAttribute("data-swiper-parallax-scale"),d=t.getAttribute("data-swiper-parallax-opacity"),h=t.getAttribute("data-swiper-parallax-rotate");if(r||a?(r=r||"0",a=a||"0"):e.isHorizontal()?(r=o,a="0"):(a=o,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*i*n+"%":r*i*n+"px",a=a.indexOf("%")>=0?parseInt(a,10)*i+"%":a*i+"px",null!=d){const e=d-(d-1)*(1-Math.abs(i));t.style.opacity=e}let c=`translate3d(${r}, ${a}, 0px)`;if(null!=l){c+=` scale(${l-(l-1)*(1-Math.abs(i))})`}if(h&&null!=h){c+=` rotate(${h*i*-1}deg)`}t.style.transform=c},n=()=>{const{el:t,slides:i,progress:n,snapGrid:o}=e;p(t,"[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach((e=>{s(e,n)})),i.forEach(((t,i)=>{let r=t.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(r+=Math.ceil(i/2)-n*(o.length-1)),r=Math.min(Math.max(r,-1),1),t.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]").forEach((e=>{s(e,r)}))}))};i("beforeInit",(()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)})),i("init",(()=>{e.params.parallax.enabled&&n()})),i("setTranslate",(()=>{e.params.parallax.enabled&&n()})),i("setTransition",((t,i)=>{e.params.parallax.enabled&&((t=e.params.speed)=>{const{el:i}=e;i.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach((e=>{let i=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),e.style.transitionDuration=`${i}ms`}))})(i)}))},function({swiper:e,extendParams:t,on:i,emit:s}){const o=(0,n.Jj)();t({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let r,l,d=1,h=!1;const c=[],u={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let w=1;function v(){if(c.length<2)return 1;const e=c[0].pageX,t=c[0].pageY,i=c[1].pageX,s=c[1].pageY;return Math.sqrt((i-e)**2+(s-t)**2)}function x(t){const i=e.isElement?"swiper-slide":`.${e.params.slideClass}`;return!!t.target.matches(i)||e.slides.filter((e=>e.contains(t.target))).length>0}function C(t){if("mouse"===t.pointerType&&c.splice(0,c.length),!x(t))return;const i=e.params.zoom;if(r=!1,l=!1,c.push(t),!(c.length<2)){if(r=!0,u.scaleStart=v(),!u.slideEl){u.slideEl=t.target.closest(`.${e.params.slideClass}, swiper-slide`),u.slideEl||(u.slideEl=e.slides[e.activeIndex]);let s=u.slideEl.querySelector(`.${i.containerClass}`);if(s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=s,u.imageWrapEl=s?y(u.imageEl,`.${i.containerClass}`)[0]:void 0,!u.imageWrapEl)return void(u.imageEl=void 0);u.maxRatio=u.imageWrapEl.getAttribute("data-swiper-zoom")||i.maxRatio}if(u.imageEl){const[e,t]=function(){if(c.length<2)return{x:null,y:null};const e=u.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-e.x)/d,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-e.y)/d]}();u.originX=e,u.originY=t,u.imageEl.style.transitionDuration="0ms"}h=!0}}function b(t){if(!x(t))return;const i=e.params.zoom,s=e.zoom,n=c.findIndex((e=>e.pointerId===t.pointerId));n>=0&&(c[n]=t),c.length<2||(l=!0,u.scaleMove=v(),u.imageEl&&(s.scale=u.scaleMove/u.scaleStart*d,s.scale>u.maxRatio&&(s.scale=u.maxRatio-1+(s.scale-u.maxRatio+1)**.5),s.scalee.pointerId===t.pointerId));n>=0&&c.splice(n,1),r&&l&&(r=!1,l=!1,u.imageEl&&(s.scale=Math.max(Math.min(s.scale,u.maxRatio),i.minRatio),u.imageEl.style.transitionDuration=`${e.params.speed}ms`,u.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,d=s.scale,h=!1,s.scale>1&&u.slideEl?u.slideEl.classList.add(`${i.zoomedSlideClass}`):s.scale<=1&&u.slideEl&&u.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===s.scale&&(u.originX=0,u.originY=0,u.slideEl=void 0)))}function S(t){if(!x(t)||!function(t){const i=`.${e.params.zoom.containerClass}`;return!!t.target.matches(i)||[...e.el.querySelectorAll(i)].filter((e=>e.contains(t.target))).length>0}(t))return;const i=e.zoom;if(!u.imageEl)return;if(!m.isTouched||!u.slideEl)return;m.isMoved||(m.width=u.imageEl.offsetWidth,m.height=u.imageEl.offsetHeight,m.startX=a(u.imageWrapEl,"x")||0,m.startY=a(u.imageWrapEl,"y")||0,u.slideWidth=u.slideEl.offsetWidth,u.slideHeight=u.slideEl.offsetHeight,u.imageWrapEl.style.transitionDuration="0ms");const s=m.width*i.scale,n=m.height*i.scale;if(s0?c[0].pageX:t.pageX,m.touchesCurrent.y=c.length>0?c[0].pageY:t.pageY;if(Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(e.allowClick=!1),!m.isMoved&&!h){if(e.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.xm.touchesStart.x))return void(m.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.ym.touchesStart.y))return void(m.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),m.isMoved=!0;const o=(i.scale-d)/(u.maxRatio-e.params.zoom.minRatio),{originX:r,originY:l}=u;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+o*(m.width-2*r),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+o*(m.height-2*l),m.currentXm.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentYm.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=m.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=m.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(m.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(m.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(m.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(m.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=m.touchesCurrent.x,f.prevPositionY=m.touchesCurrent.y,f.prevTime=Date.now(),u.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function P(){const t=e.zoom;u.slideEl&&e.activeIndex!==e.slides.indexOf(u.slideEl)&&(u.imageEl&&(u.imageEl.style.transform="translate3d(0,0,0) scale(1)"),u.imageWrapEl&&(u.imageWrapEl.style.transform="translate3d(0,0,0)"),u.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),t.scale=1,d=1,u.slideEl=void 0,u.imageEl=void 0,u.imageWrapEl=void 0,u.originX=0,u.originY=0)}function T(t){const i=e.zoom,s=e.params.zoom;if(!u.slideEl){t&&t.target&&(u.slideEl=t.target.closest(`.${e.params.slideClass}, swiper-slide`)),u.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=p(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex]);let i=u.slideEl.querySelector(`.${s.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=i,u.imageWrapEl=i?y(u.imageEl,`.${s.containerClass}`)[0]:void 0}if(!u.imageEl||!u.imageWrapEl)return;let n,r,a,l,h,c,f,w,v,x,C,b,I,S,P,T,$,k;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),u.slideEl.classList.add(`${s.zoomedSlideClass}`),void 0===m.touchesStart.x&&t?(n=t.pageX,r=t.pageY):(n=m.touchesStart.x,r=m.touchesStart.y);const L="number"==typeof t?t:null;1===d&&L&&(n=void 0,r=void 0),i.scale=L||u.imageWrapEl.getAttribute("data-swiper-zoom")||s.maxRatio,d=L||u.imageWrapEl.getAttribute("data-swiper-zoom")||s.maxRatio,!t||1===d&&L?(f=0,w=0):($=u.slideEl.offsetWidth,k=u.slideEl.offsetHeight,a=g(u.slideEl).left+o.scrollX,l=g(u.slideEl).top+o.scrollY,h=a+$/2-n,c=l+k/2-r,v=u.imageEl.offsetWidth,x=u.imageEl.offsetHeight,C=v*i.scale,b=x*i.scale,I=Math.min($/2-C/2,0),S=Math.min(k/2-b/2,0),P=-I,T=-S,f=h*i.scale,w=c*i.scale,fP&&(f=P),wT&&(w=T)),L&&1===i.scale&&(u.originX=0,u.originY=0),u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform=`translate3d(${f}px, ${w}px,0)`,u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function $(){const t=e.zoom,i=e.params.zoom;if(!u.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.slideEl=p(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:u.slideEl=e.slides[e.activeIndex];let t=u.slideEl.querySelector(`.${i.containerClass}`);t&&(t=t.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),u.imageEl=t,u.imageWrapEl=t?y(u.imageEl,`.${i.containerClass}`)[0]:void 0}u.imageEl&&u.imageWrapEl&&(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),t.scale=1,d=1,u.imageWrapEl.style.transitionDuration="300ms",u.imageWrapEl.style.transform="translate3d(0,0,0)",u.imageEl.style.transitionDuration="300ms",u.imageEl.style.transform="translate3d(0,0,0) scale(1)",u.slideEl.classList.remove(`${i.zoomedSlideClass}`),u.slideEl=void 0,u.originX=0,u.originY=0)}function k(t){const i=e.zoom;i.scale&&1!==i.scale?$():T(t)}function L(){return{passiveListener:!!e.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!e.params.passiveListeners||{passive:!1,capture:!0}}}function M(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const{passiveListener:i,activeListenerWithCapture:s}=L();e.wrapperEl.addEventListener("pointerdown",C,i),e.wrapperEl.addEventListener("pointermove",b,s),["pointerup","pointercancel","pointerout"].forEach((t=>{e.wrapperEl.addEventListener(t,I,i)})),e.wrapperEl.addEventListener("pointermove",S,s)}function E(){const t=e.zoom;if(!t.enabled)return;t.enabled=!1;const{passiveListener:i,activeListenerWithCapture:s}=L();e.wrapperEl.removeEventListener("pointerdown",C,i),e.wrapperEl.removeEventListener("pointermove",b,s),["pointerup","pointercancel","pointerout"].forEach((t=>{e.wrapperEl.removeEventListener(t,I,i)})),e.wrapperEl.removeEventListener("pointermove",S,s)}Object.defineProperty(e.zoom,"scale",{get(){return w},set(e){if(w!==e){const t=u.imageEl,i=u.slideEl;s("zoomChange",e,t,i)}w=e}}),i("init",(()=>{e.params.zoom.enabled&&M()})),i("destroy",(()=>{E()})),i("touchStart",((t,i)=>{e.zoom.enabled&&function(t){const i=e.device;if(!u.imageEl)return;if(m.isTouched)return;i.android&&t.cancelable&&t.preventDefault(),m.isTouched=!0;const s=c.length>0?c[0]:t;m.touchesStart.x=s.pageX,m.touchesStart.y=s.pageY}(i)})),i("touchEnd",((t,i)=>{e.zoom.enabled&&function(){const t=e.zoom;if(!u.imageEl)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let i=300,s=300;const n=f.x*i,o=m.currentX+n,r=f.y*s,a=m.currentY+r;0!==f.x&&(i=Math.abs((o-m.currentX)/f.x)),0!==f.y&&(s=Math.abs((a-m.currentY)/f.y));const l=Math.max(i,s);m.currentX=o,m.currentY=a;const d=m.width*t.scale,h=m.height*t.scale;m.minX=Math.min(u.slideWidth/2-d/2,0),m.maxX=-m.minX,m.minY=Math.min(u.slideHeight/2-h/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),u.imageWrapEl.style.transitionDuration=`${l}ms`,u.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}()})),i("doubleTap",((t,i)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&k(i)})),i("transitionEnd",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&P()})),i("slideChange",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&P()})),Object.assign(e.zoom,{enable:M,disable:E,in:T,out:$,toggle:k})},function({swiper:e,extendParams:t,on:i}){function s(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)i=e+t>>1,s[i]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function n(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},i("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof e.params.controller.control||e.params.controller.control instanceof HTMLElement)){const t=document.querySelector(e.params.controller.control);if(t&&t.swiper)e.controller.control=t.swiper;else if(t){const i=s=>{e.controller.control=s.detail[0],e.update(),t.removeEventListener("init",i)};t.addEventListener("init",i)}}else e.controller.control=e.params.controller.control})),i("update",(()=>{n()})),i("resize",(()=>{n()})),i("observerUpdate",(()=>{n()})),i("setTranslate",((t,i,s)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTranslate(i,s)})),i("setTransition",((t,i,s)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTransition(i,s)})),Object.assign(e.controller,{setTranslate:function(t,i){const n=e.controller.control;let o,r;const a=e.constructor;function l(t){if(t.destroyed)return;const i=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline=e.params.loop?new s(e.slidesGrid,t.slidesGrid):new s(e.snapGrid,t.snapGrid)}(t),r=-e.controller.spline.interpolate(-i)),r&&"container"!==e.params.controller.by||(o=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),!Number.isNaN(o)&&Number.isFinite(o)||(o=1),r=(i-e.minTranslate())*o+t.minTranslate()),e.params.controller.inverse&&(r=t.maxTranslate()-r),t.updateProgress(r),t.setTranslate(r,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(let e=0;e{i.updateAutoHeight()})),v(i.wrapperEl,(()=>{n&&i.transitionEnd()}))))}if(Array.isArray(n))for(r=0;r(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function r(e){(e=o(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function a(e){(e=o(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function l(e,t){(e=o(e)).forEach((e=>{e.setAttribute("role",t)}))}function d(e,t){(e=o(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=o(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function c(e){(e=o(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function u(e){(e=o(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function p(t){if(13!==t.keyCode&&32!==t.keyCode)return;const i=e.params.a11y,s=t.target;e.pagination&&e.pagination.el&&(s===e.pagination.el||e.pagination.el.contains(t.target))&&!t.target.matches(ee(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&s===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?n(i.lastSlideMessage):n(i.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&s===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?n(i.firstSlideMessage):n(i.prevSlideMessage)),e.pagination&&s.matches(ee(e.params.pagination.bulletClass))&&s.click())}function g(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function f(){return g()&&e.params.pagination.clickable}const y=(e,t,i)=>{r(e),"BUTTON"!==e.tagName&&(l(e,"button"),e.addEventListener("keydown",p)),h(e,i),function(e,t){(e=o(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},v=()=>{e.a11y.clicked=!0},x=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{e.destroyed||(e.a11y.clicked=!1)}))}))},C=t=>{if(e.a11y.clicked)return;const i=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!i||!e.slides.includes(i))return;const s=e.slides.indexOf(i)===e.activeIndex,n=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(i);s||n||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(i),0))},b=()=>{const t=e.params.a11y;t.itemRoleDescriptionMessage&&d(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&l(e.slides,t.slideRole);const i=e.slides.length;t.slideLabelMessage&&e.slides.forEach(((s,n)=>{const o=e.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):n;h(s,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,i))}))},I=()=>{const t=e.params.a11y;e.isElement?e.el.shadowEl.append(s):e.el.append(s);const i=e.el;t.containerRoleDescriptionMessage&&d(i,t.containerRoleDescriptionMessage),t.containerMessage&&h(i,t.containerMessage);const n=e.wrapperEl,r=t.id||n.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`,a=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var l;l=r,o(n).forEach((e=>{e.setAttribute("id",l)})),function(e,t){(e=o(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(n,a),b();let{nextEl:c,prevEl:u}=e.navigation?e.navigation:{};if(c=o(c),u=o(u),c&&c.forEach((e=>y(e,r,t.nextSlideMessage))),u&&u.forEach((e=>y(e,r,t.prevSlideMessage))),f()){(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach((e=>{e.addEventListener("keydown",p)}))}e.el.addEventListener("focus",C,!0),e.el.addEventListener("pointerdown",v,!0),e.el.addEventListener("pointerup",x,!0)};i("beforeInit",(()=>{s=m("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{e.params.a11y.enabled&&I()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{e.params.a11y.enabled&&b()})),i("fromEdge toEdge afterInit lock unlock",(()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:t,prevEl:i}=e.navigation;i&&(e.isBeginning?(c(i),a(i)):(u(i),r(i))),t&&(e.isEnd?(c(t),a(t)):(u(t),r(t)))}()})),i("paginationUpdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;g()&&e.pagination.bullets.forEach((i=>{e.params.pagination.clickable&&(r(i),e.params.pagination.renderBullet||(l(i,"button"),h(i,t.paginationBulletMessage.replace(/\{\{index\}\}/,w(i)+1)))),i.matches(ee(e.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{e.params.a11y.enabled&&function(){s&&s.remove();let{nextEl:t,prevEl:i}=e.navigation?e.navigation:{};t=o(t),i=o(i),t&&t.forEach((e=>e.removeEventListener("keydown",p))),i&&i.forEach((e=>e.removeEventListener("keydown",p))),f()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach((e=>{e.removeEventListener("keydown",p)}));e.el.removeEventListener("focus",C,!0),e.el.removeEventListener("pointerdown",v,!0),e.el.removeEventListener("pointerup",x,!0)}()}))},function({swiper:e,extendParams:t,on:i}){t({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,o={};const r=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=e=>{const t=(0,n.Jj)();let i;i=e?new URL(e):t.location;const s=i.pathname.slice(1).split("/").filter((e=>""!==e)),o=s.length;return{key:s[o-2],value:s[o-1]}},l=(t,i)=>{const o=(0,n.Jj)();if(!s||!e.params.history.enabled)return;let a;a=e.params.url?new URL(e.params.url):o.location;const l=e.slides[i];let d=r(l.getAttribute("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),d=`${i}/${t?`${t}/`:""}${d}`}else a.pathname.includes(t)||(d=`${t?`${t}/`:""}${d}`);e.params.history.keepQuery&&(d+=a.search);const h=o.history.state;h&&h.value===d||(e.params.history.replaceState?o.history.replaceState({value:d},null,d):o.history.pushState({value:d},null,d))},d=(t,i,s)=>{if(i)for(let n=0,o=e.slides.length;n{o=a(e.params.url),d(e.params.speed,o.value,!1)};i("init",(()=>{e.params.history.enabled&&(()=>{const t=(0,n.Jj)();if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);s=!0,o=a(e.params.url),o.key||o.value?(d(0,o.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",h)):e.params.history.replaceState||t.addEventListener("popstate",h)}})()})),i("destroy",(()=>{e.params.history.enabled&&(()=>{const t=(0,n.Jj)();e.params.history.replaceState||t.removeEventListener("popstate",h)})()})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{s&&l(e.params.history.key,e.activeIndex)})),i("slideChange",(()=>{s&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)}))},function({swiper:e,extendParams:t,emit:i,on:s}){let o=!1;const r=(0,n.Me)(),a=(0,n.Jj)();t({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(t,i){if(e.virtual&&e.params.virtual.enabled){const t=e.slides.filter((e=>e.getAttribute("data-hash")===i))[0];if(!t)return 0;return parseInt(t.getAttribute("data-swiper-slide-index"),10)}return e.getSlideIndex(p(e.slidesEl,`.${e.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const l=()=>{i("hashChange");const t=r.location.hash.replace("#",""),s=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex];if(t!==(s?s.getAttribute("data-hash"):"")){const i=e.params.hashNavigation.getSlideIndex(e,t);if(void 0===i||Number.isNaN(i))return;e.slideTo(i)}},d=()=>{if(!o||!e.params.hashNavigation.enabled)return;const t=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],s=t?t.getAttribute("data-hash")||t.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${s}`||""),i("hashSet")):(r.location.hash=s||"",i("hashSet"))};s("init",(()=>{e.params.hashNavigation.enabled&&(()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;o=!0;const t=r.location.hash.replace("#","");if(t){const i=0,s=e.params.hashNavigation.getSlideIndex(e,t);e.slideTo(s||0,i,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&a.addEventListener("hashchange",l)})()})),s("destroy",(()=>{e.params.hashNavigation.enabled&&e.params.hashNavigation.watchState&&a.removeEventListener("hashchange",l)})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&d()})),s("slideChange",(()=>{o&&e.params.cssMode&&d()}))},function({swiper:e,extendParams:t,on:i,emit:s,params:o}){let r,a;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,d,h,c,u,p,m,g=o&&o.autoplay?o.autoplay.delay:3e3,f=o&&o.autoplay?o.autoplay.delay:3e3,w=(new Date).getTime;function y(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",y),S())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(f=l,d=!1);const t=e.autoplay.paused?l:w+f-(new Date).getTime();e.autoplay.timeLeft=t,s("autoplayTimeLeft",t,t/g),a=requestAnimationFrame((()=>{v()}))},x=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),v();let i=void 0===t?e.params.autoplay.delay:t;g=e.params.autoplay.delay,f=e.params.autoplay.delay;const n=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:e.slides[e.activeIndex],!t)return;return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(n)&&n>0&&void 0===t&&(i=n,g=n,f=n),l=i;const o=e.params.speed,d=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(o,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,o,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(o,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,o,!0,!0),s("autoplay")),e.params.cssMode&&(w=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return i>0?(clearTimeout(r),r=setTimeout((()=>{d()}),i)):requestAnimationFrame((()=>{d()})),i},C=()=>{e.autoplay.running=!0,x(),s("autoplayStart")},b=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(a),s("autoplayStop")},I=(t,i)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),t||(m=!0);const n=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",y):S()};if(e.autoplay.paused=!0,i)return p&&(l=e.params.autoplay.delay),p=!1,void n();const o=l||e.params.autoplay.delay;l=o-((new Date).getTime()-w),e.isEnd&&l<0&&!e.params.loop||(l<0&&(l=0),n())},S=()=>{e.isEnd&&l<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(w=(new Date).getTime(),m?(m=!1,x(l)):x(),e.autoplay.paused=!1,s("autoplayResume"))},P=()=>{if(e.destroyed||!e.autoplay.running)return;const t=(0,n.Me)();"hidden"===t.visibilityState&&(m=!0,I(!0)),"visible"===t.visibilityState&&S()},T=e=>{"mouse"===e.pointerType&&(m=!0,I(!0))},$=t=>{"mouse"===t.pointerType&&e.autoplay.paused&&S()};i("init",(()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",$)),(0,n.Me)().addEventListener("visibilitychange",P),w=(new Date).getTime(),C())})),i("destroy",(()=>{e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",$),(0,n.Me)().removeEventListener("visibilitychange",P),e.autoplay.running&&b()})),i("beforeTransitionStart",((t,i,s)=>{!e.destroyed&&e.autoplay.running&&(s||!e.params.autoplay.disableOnInteraction?I(!0,!0):b())})),i("sliderFirstMove",(()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?b():(h=!0,c=!1,m=!1,u=setTimeout((()=>{m=!0,c=!0,I(!0)}),200)))})),i("touchEnd",(()=>{if(!e.destroyed&&e.autoplay.running&&h){if(clearTimeout(u),clearTimeout(r),e.params.autoplay.disableOnInteraction)return c=!1,void(h=!1);c&&e.params.cssMode&&S(),c=!1,h=!1}})),i("slideChange",(()=>{!e.destroyed&&e.autoplay.running&&(p=!0)})),Object.assign(e.autoplay,{start:C,stop:b,pause:I,resume:S})},function({swiper:e,extendParams:t,on:i}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,o=!1;function r(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,s=t.clickedSlide;if(s&&s.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;n=t.params.loop?parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,e.params.loop?e.slideToLoop(n):e.slideTo(n)}function a(){const{thumbs:t}=e.params;if(s)return!1;s=!0;const i=e.constructor;if(t.swiper instanceof i)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(l(t.swiper)){const s=Object.assign({},t.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(s),o=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",r),!0}function d(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const o=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(n=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.forEach((e=>e.classList.remove(o))),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t{e.classList.add(o)}));else for(let t=0;tt.getAttribute("data-swiper-slide-index")===`${e.realIndex}`))[0];o=i.slides.indexOf(t),l=e.activeIndex>e.previousIndex?"next":"prev"}else o=e.realIndex,l=o>e.previousIndex?"next":"prev";a&&(o+="next"===l?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(o)<0&&(i.params.centeredSlides?o=o>n?o-Math.floor(s/2)+1:o+Math.floor(s/2)-1:o>n&&i.params.slidesPerGroup,i.slideTo(o,t?0:void 0))}}e.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:t}=e.params;if(t&&t.swiper)if("string"==typeof t.swiper||t.swiper instanceof HTMLElement){const i=(0,n.Me)(),s=()=>{const s="string"==typeof t.swiper?i.querySelector(t.swiper):t.swiper;if(s&&s.swiper)t.swiper=s.swiper,a(),d(!0);else if(s){const i=n=>{t.swiper=n.detail[0],s.removeEventListener("init",i),a(),d(!0),t.swiper.update(),e.update()};s.addEventListener("init",i)}return s},o=()=>{if(e.destroyed)return;s()||requestAnimationFrame(o)};requestAnimationFrame(o)}else a(),d(!0)})),i("slideChange update resize observerUpdate",(()=>{d()})),i("setTransition",((t,i)=>{const s=e.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)})),i("beforeDestroy",(()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&o&&t.destroy()})),Object.assign(e.thumbs,{init:a,update:d})},function({swiper:e,extendParams:t,emit:i,once:s}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;const t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;const{touchEventsData:t,touches:i}=e;0===t.velocities.length&&t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:r()})},onTouchEnd:function({currentPos:t}){if(e.params.cssMode)return;const{params:n,wrapperEl:o,rtlTranslate:a,snapGrid:l,touchEventsData:d}=e,h=r()-d.touchStartTime;if(t<-e.minTranslate())e.slideTo(e.activeIndex);else if(t>-e.maxTranslate())e.slides.length1){const t=d.velocities.pop(),i=d.velocities.pop(),s=t.position-i.position,o=t.time-i.time;e.velocity=s/o,e.velocity/=2,Math.abs(e.velocity)150||r()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeMode.momentumVelocityRatio,d.velocities.length=0;let t=1e3*n.freeMode.momentumRatio;const h=e.velocity*t;let c=e.translate+h;a&&(c=-c);let u,p=!1;const m=20*Math.abs(e.velocity)*n.freeMode.momentumBounceRatio;let g;if(ce.minTranslate())n.freeMode.momentumBounce?(c-e.minTranslate()>m&&(c=e.minTranslate()+m),u=e.minTranslate(),p=!0,d.allowMomentumBounce=!0):c=e.minTranslate(),n.loop&&n.centeredSlides&&(g=!0);else if(n.freeMode.sticky){let t;for(let e=0;e-c){t=e;break}c=Math.abs(l[t]-c){e.loopFix()})),0!==e.velocity){if(t=a?Math.abs((-c-e.translate)/e.velocity):Math.abs((c-e.translate)/e.velocity),n.freeMode.sticky){const i=Math.abs((a?-c:c)-e.translate),s=e.slidesSizesGrid[e.activeIndex];t=i{e&&!e.destroyed&&d.allowMomentumBounce&&(i("momentumBounce"),e.setTransition(n.speed),setTimeout((()=>{e.setTranslate(u),v(o,(()=>{e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(i("_freeModeNoMomentumRelease"),e.updateProgress(c),e.setTransition(t),e.setTranslate(c),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,v(o,(()=>{e&&!e.destroyed&&e.transitionEnd()})))):e.updateProgress(c),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(n.freeMode.sticky)return void e.slideToClosest();n.freeMode&&i("_freeModeNoMomentumRelease")}(!n.freeMode.momentum||h>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})},function({swiper:e,extendParams:t}){let i,s,n;t({grid:{rows:1,fill:"column"}});const o=()=>{let t=e.params.spaceBetween;return"string"==typeof t&&t.indexOf("%")>=0?t=parseFloat(t.replace("%",""))/100*e.size:"string"==typeof t&&(t=parseFloat(t)),t};e.grid={initSlides:t=>{const{slidesPerView:o}=e.params,{rows:r,fill:a}=e.params.grid;n=Math.floor(t/r),i=Math.floor(t/r)===t/r?t:Math.ceil(t/r)*r,"auto"!==o&&"row"===a&&(i=Math.max(i,o*r)),s=i/r},updateSlide:(t,r,a,l)=>{const{slidesPerGroup:d}=e.params,h=o(),{rows:c,fill:u}=e.params.grid;let p,m,g;if("row"===u&&d>1){const e=Math.floor(t/(d*c)),s=t-c*d*e,n=0===e?d:Math.min(Math.ceil((a-e*c*d)/c),d);g=Math.floor(s/n),m=s-g*n+e*d,p=m+g*i/c,r.style.order=p}else"column"===u?(m=Math.floor(t/c),g=t-m*c,(m>n||m===n&&g===c-1)&&(g+=1,g>=c&&(g=0,m+=1))):(g=Math.floor(t/s),m=t-g*s);r.row=g,r.column=m,r.style[l("margin-top")]=0!==g?h&&`${h}px`:""},updateWrapperSize:(t,s,n)=>{const{centeredSlides:r,roundLengths:a}=e.params,l=o(),{rows:d}=e.params.grid;if(e.virtualSize=(t+l)*i,e.virtualSize=Math.ceil(e.virtualSize/d)-l,e.wrapperEl.style[n("width")]=`${e.virtualSize+l}px`,r){const t=[];for(let i=0;i{const{slides:t}=e;e.params.fadeEffect;for(let i=0;i{const i=e.slides.map((e=>u(e)));i.forEach((e=>{e.style.transitionDuration=`${t}ms`})),le({swiper:e,duration:t,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:i}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=m("div","swiper-slide-shadow-"+(i?"left":"top")),e.append(s)),n||(n=m("div","swiper-slide-shadow-"+(i?"right":"bottom")),e.append(n)),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};re({effect:"cube",swiper:e,on:i,setTranslate:()=>{const{el:t,wrapperEl:i,slides:n,width:o,height:r,rtlTranslate:a,size:l,browser:d}=e,h=e.params.cubeEffect,c=e.isHorizontal(),u=e.virtual&&e.params.virtual.enabled;let p,g=0;h.shadow&&(c?(p=e.slidesEl.querySelector(".swiper-cube-shadow"),p||(p=m("div","swiper-cube-shadow"),e.slidesEl.append(p)),p.style.height=`${o}px`):(p=t.querySelector(".swiper-cube-shadow"),p||(p=m("div","swiper-cube-shadow"),t.append(p))));for(let e=0;e-1&&(g=90*i+90*d,a&&(g=90*-i-90*d)),t.style.transform=w,h.slideShadows&&s(t,d,c)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,h.shadow)if(c)p.style.transform=`translate3d(0px, ${o/2+h.shadowOffset}px, ${-o/2}px) rotateX(90deg) rotateZ(0deg) scale(${h.shadowScale})`;else{const e=Math.abs(g)-90*Math.floor(Math.abs(g)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=h.shadowScale,s=h.shadowScale/t,n=h.shadowOffset;p.style.transform=`scale3d(${i}, 1, ${s}) translate3d(0px, ${r/2+n}px, ${-r/2/s}px) rotateX(-90deg)`}const f=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${f}px) rotateX(${e.isHorizontal()?0:g}deg) rotateY(${e.isHorizontal()?-g:0}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${f}px`)},setTransition:t=>{const{el:i,slides:s}=e;if(s.forEach((e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>{e.style.transitionDuration=`${t}ms`}))})),e.params.cubeEffect.shadow&&!e.isHorizontal()){const e=i.querySelector(".swiper-cube-shadow");e&&(e.style.transitionDuration=`${t}ms`)}},recreateShadows:()=>{const t=e.isHorizontal();e.slides.forEach((e=>{const i=Math.max(Math.min(e.progress,1),-1);s(e,i,t)}))},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:e,extendParams:t,on:i}){t({flipEffect:{slideShadows:!0,limitRotation:!0}});const s=(t,i,s)=>{let n=e.isHorizontal()?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),o=e.isHorizontal()?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");n||(n=de(0,t,e.isHorizontal()?"left":"top")),o||(o=de(0,t,e.isHorizontal()?"right":"bottom")),n&&(n.style.opacity=Math.max(-i,0)),o&&(o.style.opacity=Math.max(i,0))};re({effect:"flip",swiper:e,on:i,setTranslate:()=>{const{slides:t,rtlTranslate:i}=e,n=e.params.flipEffect;for(let o=0;o{const i=e.slides.map((e=>u(e)));i.forEach((e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>{e.style.transitionDuration=`${t}ms`}))})),le({swiper:e,duration:t,transformElements:i})},recreateShadows:()=>{e.params.flipEffect;e.slides.forEach((t=>{let i=t.progress;e.params.flipEffect.limitRotation&&(i=Math.max(Math.min(t.progress,1),-1)),s(t,i)}))},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:i}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),re({effect:"coverflow",swiper:e,on:i,setTranslate:()=>{const{width:t,height:i,slides:s,slidesSizesGrid:n}=e,o=e.params.coverflowEffect,r=e.isHorizontal(),a=e.translate,l=r?t/2-a:i/2-a,d=r?o.rotate:-o.rotate,h=o.depth;for(let e=0,t=s.length;e0?c:0),i&&(i.style.opacity=-c>0?-c:0)}}},setTransition:t=>{e.slides.map((e=>u(e))).forEach((e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>{e.style.transitionDuration=`${t}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:e,extendParams:t,on:i}){t({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const s=e=>"string"==typeof e?e:`${e}px`;re({effect:"creative",swiper:e,on:i,setTranslate:()=>{const{slides:t,wrapperEl:i,slidesSizesGrid:n}=e,o=e.params.creativeEffect,{progressMultiplier:r}=o,a=e.params.centeredSlides;if(a){const t=n[0]/2-e.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${t}px))`}for(let i=0;i0&&(g=o.prev,m=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${s(g.translate[t])} * ${Math.abs(d*r)}))`})),p.forEach(((e,t)=>{p[t]=g.rotate[t]*Math.abs(d*r)})),n.style.zIndex=-Math.abs(Math.round(l))+t.length;const f=u.join(", "),w=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,y=h<0?`scale(${1+(1-g.scale)*h*r})`:`scale(${1-(1-g.scale)*h*r})`,v=h<0?1+(1-g.opacity)*h*r:1-(1-g.opacity)*h*r,x=`translate3d(${f}) ${w} ${y}`;if(m&&g.shadow||!m){let e=n.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=de(0,n)),e){const t=o.shadowPerProgress?d*(1/o.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const C=ae(0,n);C.style.transform=x,C.style.opacity=v,g.origin&&(C.style.transformOrigin=g.origin)}},setTransition:t=>{const i=e.slides.map((e=>u(e)));i.forEach((e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach((e=>{e.style.transitionDuration=`${t}ms`}))})),le({swiper:e,duration:t,transformElements:i,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})},function({swiper:e,extendParams:t,on:i}){t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),re({effect:"cards",swiper:e,on:i,setTranslate:()=>{const{slides:t,activeIndex:i,rtlTranslate:s}=e,n=e.params.cardsEffect,{startTranslate:o,isTouched:r}=e.touchEventsData,a=s?-e.translate:e.translate;for(let l=0;l0&&c<1&&(r||e.params.cssMode)&&a-1&&(r||e.params.cssMode)&&a>o;if(x||C){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;w+=-28*c*e,f+=-.5*e,y+=96*e,m=-25*e*Math.abs(c)+"%"}if(p=c<0?`calc(${p}px ${s?"-":"+"} (${y*Math.abs(c)}%))`:c>0?`calc(${p}px ${s?"-":"+"} (-${y*Math.abs(c)}%))`:`${p}px`,!e.isHorizontal()){const e=m;m=p,p=e}const b=c<0?""+(1+(1-f)*c):""+(1-(1-f)*c),I=`\n translate3d(${p}, ${m}, ${g}px)\n rotateZ(${n.rotate?s?-w:w:0}deg)\n scale(${b})\n `;if(n.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=de(0,d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(h))+t.length;ae(0,d).style.transform=I}},setTransition:t=>{const i=e.slides.map((e=>u(e)));i.forEach((e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach((e=>{e.style.transitionDuration=`${t}ms`}))})),le({swiper:e,duration:t,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}];K.use(he);class ce{constructor(e,t=new ue){(0,s.Z)(this,"swiperCase",null),this.swiperCase=new K(e,t)}}class ue{constructor(e){(0,s.Z)(this,"allowSlideNext",!0),(0,s.Z)(this,"allowSlidePrev",!0),(0,s.Z)(this,"allowTouchMove",!0),(0,s.Z)(this,"autoHeight",!1),(0,s.Z)(this,"breakpoints",null),(0,s.Z)(this,"direction","horizontal"),(0,s.Z)(this,"effect","slide"),(0,s.Z)(this,"enabled",!0),(0,s.Z)(this,"init",!1),(0,s.Z)(this,"initialSlide",0),(0,s.Z)(this,"loop",!1),(0,s.Z)(this,"loopAdditionalSlides",0),(0,s.Z)(this,"loopFillGroupWithBlank",!1),(0,s.Z)(this,"loopedSlides",null),(0,s.Z)(this,"modules",[]),(0,s.Z)(this,"on",new pe),(0,s.Z)(this,"roundLengths",!0),(0,s.Z)(this,"runCallbacksOnInit",!0),(0,s.Z)(this,"slideActiveClass","swiper-slide-active"),(0,s.Z)(this,"slideBlankClass","swiper-slide-invisible-blank"),(0,s.Z)(this,"slideClass","swiper-slide"),(0,s.Z)(this,"slideDuplicateActiveClass","swiper-slide-duplicate-active"),(0,s.Z)(this,"slideDuplicateClass","swiper-slide-duplicate"),(0,s.Z)(this,"slideDuplicateNextClass","swiper-slide-duplicate-next"),(0,s.Z)(this,"slideDuplicatePrevClass","swiper-slide-duplicate-prev"),(0,s.Z)(this,"slideNextClass","swiper-slide-next"),(0,s.Z)(this,"slidePrevClass","swiper-slide-prev"),(0,s.Z)(this,"slideVisibleClass","swiper-slide-visible"),(0,s.Z)(this,"speed",300),(0,s.Z)(this,"preloadImages",!0),(0,s.Z)(this,"updateOnImagesReady",!0),e&&e.on&&Object.keys(e.on).forEach((e=>{K.on(e,K.params.on[e])}))}}class pe{init(e){}touchStart(e,t){}touchMove(e,t){}touchEnd(e,t){}sliderMove(e,t){}click(e,t){}tap(e,t){}doubleTap(e,t){}progress(e,t){}reachBeginning(e){}reachEnd(e){}}},2534:function(e,t,i){"use strict";i.d(t,{_:function(){return r}});var s=i(7628),n=i(1773);let o;function r(e){return void 0===e&&(e={}),o||(o=function(e){let{userAgent:t}=void 0===e?{}:e;const i=(0,n.C)(),o=(0,s.Jj)(),r=o.navigator.platform,a=t||o.navigator.userAgent,l={ios:!1,android:!1},d=o.screen.width,h=o.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const p=a.match(/(iPod)(.*OS\s([\d_]+))?/),m=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g="Win32"===r;let f="MacIntel"===r;return!u&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${d}x${h}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),c&&!g&&(l.os="android",l.android=!0),(u||m||p)&&(l.os="ios",l.ios=!0),l}(e)),o}},1773:function(e,t,i){"use strict";i.d(t,{C:function(){return o}});var s=i(7628);let n;function o(){return n||(n=function(){const e=(0,s.Jj)(),t=(0,s.Me)();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),n}},8435:function(e,t,i){"use strict";i.r(t),i.d(t,{SwiperBasicOptions:function(){return te},SwiperEvents:function(){return ie},SwiperModel:function(){return ee}});var s=i(7873),n=(i(7658),i(7628)),o=i(4602);const r={addClass:o.cn,removeClass:o.IV,hasClass:o.pv,toggleClass:o.Vj,attr:o.Lj,removeAttr:o.uV,transform:o.vs,transition:o.eR,on:o.on,off:o.S1,trigger:o.X$,transitionEnd:o.ld,outerWidth:o.iO,outerHeight:o.Pb,styles:o.W2,offset:o.cv,css:o.iv,each:o.S6,html:o.dy,text:o.fL,is:o.is,index:o.Kz,eq:o.eq,append:o.R3,prepend:o.Ce,next:o.lp,nextAll:o.eG,prev:o.mp,prevAll:o.pJ,parent:o.qm,parents:o.wV,closest:o.oq,find:o.sE,children:o.pI,filter:o.hX,remove:o.Od};Object.keys(r).forEach((e=>{Object.defineProperty(o.$.fn,e,{value:r[e],writable:!0})}));var a=o.$;function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function d(){return Date.now()}function h(e,t){void 0===t&&(t="x");const i=(0,n.Jj)();let s,o,r;const a=function(e){const t=(0,n.Jj)();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(o=a.transform||a.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new i.WebKitCSSMatrix("none"===o?"":o)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),"x"===t&&(o=i.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(o=i.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),o||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;st.indexOf(e)<0));for(let t=0,s=i.length;tr?"next":"prev",c=(e,t)=>"next"===h&&e>=t||"prev"===h&&e<=t,u=()=>{a=(new Date).getTime(),null===l&&(l=a);const e=Math.max(Math.min((a-l)/d,1),0),n=.5-Math.cos(e*Math.PI)/2;let h=r+n*(i-r);if(c(h,i)&&(h=i),t.wrapperEl.scrollTo({[s]:h}),c(h,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:h})})),void o.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=o.requestAnimationFrame(u)};u()}var g=i(1773),f=i(2534);let w;function y(){return w||(w=function(){const e=(0,n.Jj)();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),w}var v={on(e,t,i){const s=this;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)})),s},once(e,t,i){const s=this;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,o=new Array(i),r=0;r=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,o=new Array(n),r=0;r{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(s,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(s,i)}))})),e}};var x={updateSize:function(){const e=this;let t,i;const s=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const s=e.params,{$wrapperEl:n,size:o,rtlTranslate:r,wrongRTL:a}=e,l=e.virtual&&s.virtual.enabled,d=l?e.virtual.slides.length:e.slides.length,h=n.children(`.${e.params.slideClass}`),c=l?e.virtual.slides.length:h.length;let u=[];const m=[],g=[];let f=s.slidesOffsetBefore;"function"==typeof f&&(f=s.slidesOffsetBefore.call(e));let w=s.slidesOffsetAfter;"function"==typeof w&&(w=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length,v=e.slidesGrid.length;let x=s.spaceBetween,C=-f,b=0,I=0;if(void 0===o)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*o),e.virtualSize=-x,r?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(p(e.wrapperEl,"--swiper-centered-offset-before",""),p(e.wrapperEl,"--swiper-centered-offset-after",""));const S=s.grid&&s.grid.rows>1&&e.grid;let P;S&&e.grid.initSlides(c);const T="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let n=0;n1&&u.push(e.virtualSize-o)}if(0===u.length&&(u=[0]),0!==s.spaceBetween){const i=e.isHorizontal()&&r?"marginLeft":t("marginRight");h.filter(((e,t)=>!s.cssMode||t!==h.length-1)).css({[i]:`${x}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween;const t=e-o;u=u.map((e=>e<0?-f:e>t?t+w:e))}if(s.centerInsufficientSlides){let e=0;if(g.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween,e{u[i]=e-t})),m.forEach(((e,i)=>{m[i]=e+t}))}}if(Object.assign(e,{slides:h,snapGrid:u,slidesGrid:m,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){p(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),p(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(c!==d&&e.emit("slidesLengthChange"),u.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==v&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);c<=s.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const r=e=>s?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each((e=>{i.push(e)}));else for(n=0;nt.slides.length&&!s)break;i.push(r(e))}else i.push(r(t.activeIndex));for(n=0;no?e:o}(o||0===o)&&t.$wrapperEl.css("height",`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i=0&&c1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(e),s.eq(e).addClass(i.slideVisibleClass)),a.progress=n?-d:d,a.originalProgress=n?-h:h}t.visibleSlides=a(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:o,isEnd:r}=t;const a=o,l=r;0===s?(n=0,o=!0,r=!0):(n=(e-t.minTranslate())/s,o=n<=0,r=n>=1),Object.assign(t,{progress:n,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!a&&t.emit("reachBeginning toEdge"),r&&!l&&t.emit("reachEnd toEdge"),(a&&!o||l&&!r)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:s,activeIndex:n,realIndex:o}=e,r=e.virtual&&i.virtual.enabled;let a;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),a=r?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):t.eq(n),a.addClass(i.slideActiveClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(i.slideDuplicateActiveClass));let l=a.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let d=a.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===d.length&&(d=t.eq(-1),d.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),d.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:n,params:o,activeIndex:r,realIndex:a,snapIndex:l}=t;let d,h=e;if(void 0===h){for(let e=0;e=s[e]&&i=s[e]&&i=s[e]&&(h=e);o.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(n.indexOf(i)>=0)d=n.indexOf(i);else{const e=Math.min(o.slidesPerGroupSkip,h);d=e+Math.floor((h-e)/o.slidesPerGroup)}if(d>=n.length&&(d=n.length-1),h===r)return void(d!==l&&(t.snapIndex=d,t.emit("snapIndexChange")));const c=parseInt(t.slides.eq(h).attr("data-swiper-slide-index")||h,10);Object.assign(t,{snapIndex:d,realIndex:c,previousIndex:r,activeIndex:h}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==c&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=a(e).closest(`.${i.slideClass}`)[0];let n,o=!1;if(s)for(let e=0;el?l:s&&er?"next":o=l.length&&(w=l.length-1),(c||a.initialSlide||0)===(h||0)&&i&&o.emit("beforeSlideChangeStart");const y=-l[w];if(o.updateProgress(y),a.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(r=e)}if(o.initialized&&r!==c){if(!o.allowSlideNext&&yo.translate&&y>o.maxTranslate()&&(c||0)!==r)return!1}let v;if(v=r>c?"next":r{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1}))}else{if(!o.support.smoothScroll)return m({swiper:o,targetPosition:i,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,s),o.transitionStart(i,v),0===t?o.transitionEnd(i,v):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,v))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);const n=this;let o=e;return n.params.loop&&(o+=n.loopedSlides),n.slideTo(o,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const s=this,{animating:n,enabled:o,params:r}=s;if(!o)return s;let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndexh(e)));let p=r[u.indexOf(c)-1];if(void 0===p&&n.cssMode){let e;r.forEach(((t,i)=>{c>=t&&(e=i)})),void 0!==e&&(p=r[e>0?e-1:e])}let m=0;if(void 0!==p&&(m=a.indexOf(p),m<0&&(m=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return s.slideTo(m,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;let o=n.activeIndex;const r=Math.min(n.params.slidesPerGroupSkip,o),a=r+Math.floor((o-r)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const e=n.snapGrid[a];l-e>(n.snapGrid[a+1]-e)*s&&(o+=n.params.slidesPerGroup)}else{const e=n.snapGrid[a-1];l-e<=(n.snapGrid[a]-e)*s&&(o-=n.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,n.slidesGrid.length-1),n.slideTo(o,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,o=e.clickedIndex;if(t.loop){if(e.animating)return;n=parseInt(a(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?oe.slides.length-e.loopedSlides+s/2?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),l((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-s?(e.loopFix(),o=i.children(`.${t.slideClass}[data-swiper-slide-index="${n}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),l((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}};var P={loopCreate:function(){const e=this,t=(0,n.Me)(),{params:i,$wrapperEl:s}=e,o=s.children().length>0?a(s.children()[0].parentNode):s;o.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=o.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-r.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let s=0;sr.length&&(e.loopedSlides=r.length);const l=[],d=[];r.each(((t,i)=>{const s=a(t);i=r.length-e.loopedSlides&&l.push(t),s.attr("data-swiper-slide-index",i)}));for(let e=0;e=0;e-=1)o.prepend(a(l[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:n,allowSlideNext:o,snapGrid:r,rtlTranslate:a}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const d=-r[t]-e.getTranslate();if(t=i.length-s){l=-i.length+t+s,l+=s;e.slideTo(l,0,!1,!0)&&0!==d&&e.setTranslate((a?-e.translate:e.translate)-d)}e.allowSlidePrev=n,e.allowSlideNext=o,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function T(e){const t=this,i=(0,n.Me)(),s=(0,n.Jj)(),o=t.touchEventsData,{params:r,touches:l,enabled:h}=t;if(!h)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let c=e;c.originalEvent&&(c=c.originalEvent);let u=a(c.target);if("wrapper"===r.touchEventsTarget&&!u.closest(t.wrapperEl).length)return;if(o.isTouchEvent="touchstart"===c.type,!o.isTouchEvent&&"which"in c&&3===c.which)return;if(!o.isTouchEvent&&"button"in c&&c.button>0)return;if(o.isTouched&&o.isMoved)return;!!r.noSwipingClass&&""!==r.noSwipingClass&&c.target&&c.target.shadowRoot&&e.path&&e.path[0]&&(u=a(e.path[0]));const p=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!(!c.target||!c.target.shadowRoot);if(r.noSwiping&&(m?function(e,t){return void 0===t&&(t=this),function t(i){return i&&i!==(0,n.Me)()&&i!==(0,n.Jj)()?(i.assignedSlot&&(i=i.assignedSlot),i.closest(e)||t(i.getRootNode().host)):null}(t)}(p,c.target):u.closest(p)[0]))return void(t.allowClick=!0);if(r.swipeHandler&&!u.closest(r.swipeHandler)[0])return;l.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,l.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;const g=l.currentX,f=l.currentY,w=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,y=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(w&&(g<=y||g>=s.innerWidth-y)){if("prevent"!==w)return;e.preventDefault()}if(Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=g,l.startY=f,o.touchStartTime=d(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==c.type){let e=!0;u.is(o.focusableElements)&&(e=!1,"SELECT"===u[0].nodeName&&(o.isTouched=!1)),i.activeElement&&a(i.activeElement).is(o.focusableElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const s=e&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!s||u[0].isContentEditable||c.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",c)}function $(e){const t=(0,n.Me)(),i=this,s=i.touchEventsData,{params:o,touches:r,rtlTranslate:l,enabled:h}=i;if(!h)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",c));if(s.isTouchEvent&&"touchmove"!==c.type)return;const u="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),p="touchmove"===c.type?u.pageX:c.pageX,m="touchmove"===c.type?u.pageY:c.pageY;if(c.preventedByNestedSwiper)return r.startX=p,void(r.startY=m);if(!i.allowTouchMove)return a(c.target).is(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(r,{startX:p,startY:m,currentX:p,currentY:m}),s.touchStartTime=d()));if(s.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(i.isVertical()){if(mr.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(pr.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&a(c.target).is(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;r.currentX=p,r.currentY=m;const g=r.currentX-r.startX,f=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(g**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(g))/Math.PI,s.isScrolling=i.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",c),void 0===s.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!o.cssMode&&c.cancelable&&c.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&c.stopPropagation(),s.isMoved||(o.loop&&!o.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!o.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)),i.emit("sliderMove",c),s.isMoved=!0;let w=i.isHorizontal()?g:f;r.diff=w,w*=o.touchRatio,l&&(w=-w),i.swipeDirection=w>0?"prev":"next",s.currentTranslate=w+s.startTranslate;let y=!0,v=o.resistanceRatio;if(o.touchReleaseOnEdges&&(v=0),w>0&&s.currentTranslate>i.minTranslate()?(y=!1,o.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+w)**v)):w<0&&s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),o.threshold>0){if(!(Math.abs(w)>o.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&i.freeMode||o.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&o.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function k(e){const t=this,i=t.touchEventsData,{params:s,touches:n,rtlTranslate:o,slidesGrid:r,enabled:a}=t;if(!a)return;let h=e;if(h.originalEvent&&(h=h.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",h),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=d(),u=c-i.touchStartTime;if(t.allowClick){const e=h.path||h.composedPath&&h.composedPath();t.updateClickedSlide(e&&e[0]||h.target),t.emit("tap click",h),u<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",h)}if(i.lastClickTime=d(),l((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let p;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=s.followFinger?o?t.translate:-t.translate:-i.currentTranslate,s.cssMode)return;if(t.params.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let m=0,g=t.slidesSizesGrid[0];for(let e=0;e=r[e]&&p=r[e]&&(m=e,g=r[r.length-1]-r[r.length-2])}let f=null,w=null;s.rewind&&(t.isBeginning?w=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const y=(p-r[m])/g,v=ms.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?f:m+v):t.slideTo(m)),"prev"===t.swipeDirection&&(y>1-s.longSwipesRatio?t.slideTo(m+v):null!==w&&y<0&&Math.abs(y)>s.longSwipesRatio?t.slideTo(w):t.slideTo(m))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(h.target===t.navigation.nextEl||h.target===t.navigation.prevEl)?h.target===t.navigation.nextEl?t.slideTo(m+v):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==f?f:m+v),"prev"===t.swipeDirection&&t.slideTo(null!==w?w:m))}}function L(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:o}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function M(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function E(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();n=0===o?0:(e.translate-e.minTranslate())/o,n!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let A=!1;function _(){}const W=(e,t)=>{const i=(0,n.Me)(),{params:s,touchEvents:o,el:r,wrapperEl:a,device:l,support:d}=e,h=!!s.nested,c="on"===t?"addEventListener":"removeEventListener",u=t;if(d.touch){const t=!("touchstart"!==o.start||!d.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};r[c](o.start,e.onTouchStart,t),r[c](o.move,e.onTouchMove,d.passiveListener?{passive:!1,capture:h}:h),r[c](o.end,e.onTouchEnd,t),o.cancel&&r[c](o.cancel,e.onTouchEnd,t)}else r[c](o.start,e.onTouchStart,!1),i[c](o.move,e.onTouchMove,h),i[c](o.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&r[c]("click",e.onClick,!0),s.cssMode&&a[c]("scroll",e.onScroll),s.updateOnWindowResize?e[u](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",L,!0):e[u]("observerUpdate",L,!0)};const F=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var O={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function B(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in n?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),u(t,i)):u(t,i)):u(t,i)}}const Z={eventsEmitter:v,update:x,translate:C,transition:I,slide:S,loop:P,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=(0,n.Me)(),{params:i,support:s}=e;e.onTouchStart=T.bind(e),e.onTouchMove=$.bind(e),e.onTouchEnd=k.bind(e),i.cssMode&&(e.onScroll=E.bind(e)),e.onClick=M.bind(e),s.touch&&!A&&(t.addEventListener("touchstart",_),A=!0),W(e,"on")},detachEvents:function(){W(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:s=0,params:n,$el:o}=e,r=n.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in r?r[a]:void 0)||e.originalParams,d=F(e,n),h=F(e,l),c=n.enabled;d&&!h?(o.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&h&&(o.addClass(`${n.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===n.grid.fill)&&o.addClass(`${n.containerModifierClass}grid-column`),e.emitContainerClasses());const p=l.direction&&l.direction!==n.direction,m=n.loop&&(l.slidesPerView!==n.slidesPerView||p);p&&i&&e.changeDirection(),u(e.params,l);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!g?e.disable():!c&&g&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),m&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const o=(0,n.Jj)(),r="window"===t?o.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;ei}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,$el:n,device:o,support:r}=e,a=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!r.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides}],i.containerModifierClass);t.push(...a),n.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,i,s,o,r){const l=(0,n.Jj)();let d;function h(){r&&r()}a(e).parent("picture")[0]||e.complete&&o?h():t?(d=new l.Image,d.onload=h,d.onerror=h,s&&(d.sizes=s),i&&(d.srcset=i),t&&(d.src=t)):h()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i1){const e=[];return a(t.el).each((i=>{const s=u({},t,{el:i});e.push(new N(s))})),e}const o=this;o.__swiper__=!0,o.support=(0,g.C)(),o.device=(0,f._)({userAgent:t.userAgent}),o.browser=y(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const r={};o.modules.forEach((e=>{e({swiper:o,extendParams:B(t,r),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const l=u({},O,r);return o.params=u({},l,H,t),o.originalParams=u({},o.params),o.passedParams=u({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),o.$=a,Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:a(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===o.params.direction},isVertical(){return"vertical"===o.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return o.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},o.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},o.support.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:d(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*e+s;i.translateTo(n,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:o,size:r,activeIndex:a}=this;let l=1;if(i.centeredSlides){let e,t=s[a].swiperSlideSize;for(let i=a+1;ir&&(e=!0));for(let i=a-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>r&&(e=!0))}else if("current"===e)for(let e=a+1;e=0;e-=1){n[a]-n[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),n||s()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}mount(e){const t=this;if(t.mounted)return!0;const i=a(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=a(e.shadowRoot.querySelector(s()));return t.children=e=>i.children(e),t}return i.children(s())})();if(0===o.length&&t.params.createElements){const e=(0,n.Me)().createElement("div");o=a(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{o.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===o.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,$el:n,$wrapperEl:o,slides:r}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n.removeAttr("style"),o.removeAttr("style"),r&&r.length&&r.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){u(H,e)}static get extendedDefaults(){return H}static get defaults(){return O}static installModule(e){N.prototype.__modules__||(N.prototype.__modules__=[]);const t=N.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>N.installModule(e))),N):(N.installModule(e),N)}}Object.keys(Z).forEach((e=>{Object.keys(Z[e]).forEach((t=>{N.prototype[t]=Z[e][t]}))})),N.use([function(e){let{swiper:t,on:i,emit:s}=e;const o=(0,n.Jj)();let r=null,a=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==o.ResizeObserver?t&&!t.destroyed&&t.initialized&&(r=new ResizeObserver((e=>{a=o.requestAnimationFrame((()=>{const{width:i,height:s}=t;let n=i,o=s;e.forEach((e=>{let{contentBoxSize:i,contentRect:s,target:r}=e;r&&r!==t.el||(n=s?s.width:(i[0]||i).inlineSize,o=s?s.height:(i[0]||i).blockSize)})),n===i&&o===s||l()}))})),r.observe(t.el)):(o.addEventListener("resize",l),o.addEventListener("orientationchange",d))})),i("destroy",(()=>{a&&o.cancelAnimationFrame(a),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),o.removeEventListener("resize",l),o.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:o}=e;const r=[],a=(0,n.Jj)(),l=function(e,t){void 0===t&&(t={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(1===e.length)return void o("observerUpdate",e[0]);const t=function(){o("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(t):a.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.push(i)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);var z=N;function R(e,t,i,s){const o=(0,n.Me)();return e.params.createElements&&Object.keys(s).forEach((n=>{if(!i[n]&&!0===i.auto){let r=e.$el.children(`.${s[n]}`)[0];r||(r=o.createElement("div"),r.className=s[n],e.$el.append(r)),i[n]=r,t[n]=r}})),i}function V(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}i(6229),i(7330),i(2062);function D(e){const t=this,{$wrapperEl:i,params:s}=t;if(s.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t=a)return void i.appendSlide(t);let l=r>e?r+1:r;const d=[];for(let t=a-1;t>=e;t-=1){const e=i.slides.eq(t);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?r+t.length:r}else s.append(t);for(let e=0;e{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=r?r():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),s("setTranslate",(()=>{i.params.effect===t&&n()})),s("setTransition",((e,s)=>{i.params.effect===t&&o(s)})),s("virtualUpdate",(()=>{i.slides.length||(l=!0),requestAnimationFrame((()=>{l&&i.slides.length&&(n(),l=!1)}))}))}function q(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function Q(e){let{swiper:t,duration:i,transformEl:s,allSlides:n}=e;const{slides:o,activeIndex:r,$wrapperEl:a}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;e=n?s?o.find(s):o:s?o.eq(r).find(s):o.eq(r),e.transitionEnd((()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t`),n.append(o)),o}const J=[function(e){let t,{swiper:i,extendParams:s,on:n,emit:o}=e;function r(e,t){const s=i.params.virtual;if(s.cache&&i.virtual.cache[t])return i.virtual.cache[t];const n=s.renderSlide?a(s.renderSlide.call(i,e,t)):a(`
${e}
`);return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",t),s.cache&&(i.virtual.cache[t]=n),n}function l(e){const{slidesPerView:t,slidesPerGroup:s,centeredSlides:n}=i.params,{addSlidesBefore:a,addSlidesAfter:l}=i.params.virtual,{from:d,to:h,slides:c,slidesGrid:u,offset:p}=i.virtual;i.params.cssMode||i.updateActiveIndex();const m=i.activeIndex||0;let g,f,w;g=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",n?(f=Math.floor(t/2)+s+l,w=Math.floor(t/2)+s+a):(f=t+(s-1)+l,w=s+a);const y=Math.max((m||0)-w,0),v=Math.min((m||0)+f,c.length-1),x=(i.slidesGrid[y]||0)-(i.slidesGrid[0]||0);function C(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load(),o("virtualUpdate")}if(Object.assign(i.virtual,{from:y,to:v,offset:x,slidesGrid:i.slidesGrid}),d===y&&h===v&&!e)return i.slidesGrid!==u&&x!==p&&i.slides.css(g,`${x}px`),i.updateProgress(),void o("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:x,from:y,to:v,slides:function(){const e=[];for(let t=y;t<=v;t+=1)e.push(c[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?C():o("virtualUpdate"));const b=[],I=[];if(e)i.$wrapperEl.find(`.${i.params.slideClass}`).remove();else for(let e=d;e<=h;e+=1)(ev)&&i.$wrapperEl.find(`.${i.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t=y&&t<=v&&(void 0===h||e?I.push(t):(t>h&&I.push(t),t{i.$wrapperEl.append(r(c[e],e))})),b.sort(((e,t)=>t-e)).forEach((e=>{i.$wrapperEl.prepend(r(c[e],e))})),i.$wrapperEl.children(".swiper-slide").css(g,`${x}px`),C()}s({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},n("beforeInit",(()=>{i.params.virtual.enabled&&(i.virtual.slides=i.params.virtual.slides,i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,i.params.initialSlide||l())})),n("setTranslate",(()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{l()}),100)):l())})),n("init update resize",(()=>{i.params.virtual.enabled&&i.params.cssMode&&p(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)})),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t{const s=e[i],o=s.attr("data-swiper-slide-index");o&&s.attr("data-swiper-slide-index",parseInt(o,10)+n),t[parseInt(i,10)+n]=s})),i.virtual.cache=t}l(!0),i.slideTo(s,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let s=e.length-1;s>=0;s-=1)i.virtual.slides.splice(e[s],1),i.params.virtual.cache&&delete i.virtual.cache[e[s]],e[s]0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const s=t.$el,n=s[0].clientWidth,o=s[0].clientHeight,r=l.innerWidth,a=l.innerHeight,d=t.$el.offset();i&&(d.left-=t.$el[0].scrollLeft);const h=[[d.left,d.top],[d.left+n,d.top],[d.left,d.top+o],[d.left+n,d.top+o]];for(let t=0;t=0&&i[0]<=r&&i[1]>=0&&i[1]<=a){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||h||c||u)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((h||u)&&!i||(d||c)&&i)&&t.slideNext(),((d||c)&&!i||(h||u)&&i)&&t.slidePrev()):((d||h||p||m)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(h||m)&&t.slideNext(),(d||p)&&t.slidePrev()),o("keyPress",n)}}function h(){t.keyboard.enabled||(a(r).on("keydown",d),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(a(r).off("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),s("init",(()=>{t.params.keyboard.enabled&&h()})),s("destroy",(()=>{t.keyboard.enabled&&c()})),Object.assign(t.keyboard,{enable:h,disable:c})},function(e){let{swiper:t,extendParams:i,on:s,emit:o}=e;const r=(0,n.Jj)();let h;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let c,u=d();const p=[];function m(){t.enabled&&(t.mouseEntered=!0)}function g(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&d()-u<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),o("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),o("scroll",e.raw)),u=(new r.Date).getTime(),!1)))}function w(e){let i=e,s=!0;if(!t.enabled)return;const n=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let r=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(r=a(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!r[0].contains(i.target)&&!n.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let u=0;const m=t.rtlTranslate?-1:1,g=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(i);if(n.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;u=-g.pixelX*m}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;u=-g.pixelY}else u=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY;if(0===u)return!0;n.invert&&(u=-u);let w=t.getTranslate()+u*n.sensitivity;if(w>=t.minTranslate()&&(w=t.minTranslate()),w<=t.maxTranslate()&&(w=t.maxTranslate()),s=!!t.params.loop||!(w===t.minTranslate()||w===t.maxTranslate()),s&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:d(),delta:Math.abs(u),direction:Math.sign(u)},s=c&&e.time=t.minTranslate()&&(r=t.minTranslate()),r<=t.maxTranslate()&&(r=t.maxTranslate()),t.setTransition(0),t.setTranslate(r),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!a&&t.isBeginning||!d&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(h),h=void 0,p.length>=15&&p.shift();const i=p.length?p[p.length-1]:void 0,s=p[0];if(p.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))p.splice(0);else if(p.length>=15&&e.time-s.time<500&&s.delta-e.delta>=1&&e.delta<=6){const i=u>0?.8:.2;c=e,p.splice(0),h=l((()=>{t.slideToClosest(t.params.speed,!0,void 0,i)}),0)}h||(h=l((()=>{c=e,p.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(s||o("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),r===t.minTranslate()||r===t.maxTranslate())return!0}}else{const i={time:d(),delta:Math.abs(u),direction:Math.sign(u),raw:e};p.length>=2&&p.shift();const s=p.length?p[p.length-1]:void 0;if(p.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&f(i):f(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function y(e){let i=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(i=a(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",m),i[e]("mouseleave",g),i[e]("wheel",w)}function v(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",w),!0):!t.mousewheel.enabled&&(y("on"),t.mousewheel.enabled=!0,!0)}function x(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,w),!0):!!t.mousewheel.enabled&&(y("off"),t.mousewheel.enabled=!1,!0)}s("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&x(),t.params.mousewheel.enabled&&v()})),s("destroy",(()=>{t.params.cssMode&&v(),t.mousewheel.enabled&&x()})),Object.assign(t.mousewheel,{enable:v,disable:x})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function o(e){let i;return e&&(i=a(e),t.params.uniqueNavElements&&"string"==typeof e&&i.length>1&&1===t.$el.find(e).length&&(i=t.$el.find(e))),i}function r(e,i){const s=t.params.navigation;e&&e.length>0&&(e[i?"addClass":"removeClass"](s.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=i),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](s.lockClass))}function l(){if(t.params.loop)return;const{$nextEl:e,$prevEl:i}=t.navigation;r(i,t.isBeginning&&!t.params.rewind),r(e,t.isEnd&&!t.params.rewind)}function d(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&t.slidePrev()}function h(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&t.slideNext()}function c(){const e=t.params.navigation;if(t.params.navigation=R(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const i=o(e.nextEl),s=o(e.prevEl);i&&i.length>0&&i.on("click",h),s&&s.length>0&&s.on("click",d),Object.assign(t.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]}),t.enabled||(i&&i.addClass(e.lockClass),s&&s.addClass(e.lockClass))}function u(){const{$nextEl:e,$prevEl:i}=t.navigation;e&&e.length&&(e.off("click",h),e.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",d),i.removeClass(t.params.navigation.disabledClass))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},s("init",(()=>{c(),l()})),s("toEdge fromEdge lock unlock",(()=>{l()})),s("destroy",(()=>{u()})),s("enable disable",(()=>{const{$nextEl:e,$prevEl:i}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)})),s("click",((e,i)=>{const{$nextEl:s,$prevEl:o}=t.navigation,r=i.target;if(t.params.navigation.hideOnClick&&!a(r).is(o)&&!a(r).is(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===r||t.pagination.el.contains(r)))return;let e;s?e=s.hasClass(t.params.navigation.hiddenClass):o&&(e=o.hasClass(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),s&&s.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}})),Object.assign(t.navigation,{update:l,init:c,destroy:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const o="swiper-pagination";let r;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`}}),t.pagination={el:null,$el:null,bullets:[]};let l=0;function d(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function h(e,i){const{bulletActiveClass:s}=t.params.pagination;e[i]().addClass(`${s}-${i}`)[i]().addClass(`${s}-${i}-${i}`)}function c(){const e=t.rtl,i=t.params.pagination;if(d())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el;let c;const u=t.params.loop?Math.ceil((s-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(c=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),c>s-1-2*t.loopedSlides&&(c-=s-2*t.loopedSlides),c>u-1&&(c-=u),c<0&&"bullets"!==t.params.paginationType&&(c=u+c)):c=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let n,d,u;if(i.dynamicBullets&&(r=s.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",r*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(l+=c-(t.previousIndex-t.loopedSlides||0),l>i.dynamicMainBullets-1?l=i.dynamicMainBullets-1:l<0&&(l=0)),n=Math.max(c-l,0),d=n+(Math.min(s.length,i.dynamicMainBullets)-1),u=(d+n)/2),s.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),o.length>1)s.each((e=>{const t=a(e),s=t.index();s===c&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(s>=n&&s<=d&&t.addClass(`${i.bulletActiveClass}-main`),s===n&&h(t,"prev"),s===d&&h(t,"next"))}));else{const e=s.eq(c),o=e.index();if(e.addClass(i.bulletActiveClass),i.dynamicBullets){const e=s.eq(n),r=s.eq(d);for(let e=n;e<=d;e+=1)s.eq(e).addClass(`${i.bulletActiveClass}-main`);if(t.params.loop)if(o>=s.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)s.eq(s.length-e).addClass(`${i.bulletActiveClass}-main`);s.eq(s.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else h(e,"prev"),h(r,"next");else h(e,"prev"),h(r,"next")}}if(i.dynamicBullets){const n=Math.min(s.length,i.dynamicMainBullets+4),o=(r*n-r)/2-u*r,a=e?"right":"left";s.css(t.isHorizontal()?a:"top",`${o}px`)}}if("fraction"===i.type&&(o.find(V(i.currentClass)).text(i.formatFractionCurrent(c+1)),o.find(V(i.totalClass)).text(i.formatFractionTotal(u))),"progressbar"===i.type){let e;e=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const s=(c+1)/u;let n=1,r=1;"horizontal"===e?n=s:r=s,o.find(V(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${n}) scaleY(${r})`).transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(o.html(i.renderCustom(t,c+1,u)),n("paginationRender",o[0])):n("paginationUpdate",o[0]),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](i.lockClass)}function u(){const e=t.params.pagination;if(d())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let o="";if("bullets"===e.type){let n=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&n>i&&(n=i);for(let i=0;i`;s.html(o),t.pagination.bullets=s.find(V(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,s.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,s.html(o)),"custom"!==e.type&&n("paginationRender",t.pagination.$el[0])}function p(){t.params.pagination=R(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i=a(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el),i.length>1&&(i=i.filter((e=>a(e).parents(".swiper")[0]===t.el)))),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),i.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",V(e.bulletClass),(function(e){e.preventDefault();let i=a(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),Object.assign(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}function m(){const e=t.params.pagination;if(d())return;const i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),i.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",V(e.bulletClass))}s("init",(()=>{p(),u(),c()})),s("activeIndexChange",(()=>{(t.params.loop||void 0===t.snapIndex)&&c()})),s("snapIndexChange",(()=>{t.params.loop||c()})),s("slidesLengthChange",(()=>{t.params.loop&&(u(),c())})),s("snapGridLengthChange",(()=>{t.params.loop||(u(),c())})),s("destroy",(()=>{m()})),s("enable disable",(()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)})),s("lock unlock",(()=>{c()})),s("click",((e,i)=>{const s=i.target,{$el:o}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o.length>0&&!a(s).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=o.hasClass(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),o.toggleClass(t.params.pagination.hiddenClass)}})),Object.assign(t.pagination,{render:u,update:c,init:p,destroy:m})},function(e){let{swiper:t,extendParams:i,on:s,emit:o}=e;const r=(0,n.Me)();let d,h,c,u,p=!1,m=null,g=null;function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i,progress:s}=t,{$dragEl:n,$el:o}=e,r=t.params.scrollbar;let a=h,l=(c-h)*s;i?(l=-l,l>0?(a=h-l,l=0):-l+h>c&&(a=c+l)):l<0?(a=h+l,l=0):l+h>c&&(a=c-l),t.isHorizontal()?(n.transform(`translate3d(${l}px, 0, 0)`),n[0].style.width=`${a}px`):(n.transform(`translate3d(0px, ${l}px, 0)`),n[0].style.height=`${a}px`),r.hide&&(clearTimeout(m),o[0].style.opacity=1,m=setTimeout((()=>{o[0].style.opacity=0,o.transition(400)}),1e3))}function w(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:i,$el:s}=e;i[0].style.width="",i[0].style.height="",c=t.isHorizontal()?s[0].offsetWidth:s[0].offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),h="auto"===t.params.scrollbar.dragSize?c*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=`${h}px`:i[0].style.height=`${h}px`,s[0].style.display=u>=1?"none":"",t.params.scrollbar.hide&&(s[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function v(e){const{scrollbar:i,rtlTranslate:s}=t,{$el:n}=i;let o;o=(y(e)-n.offset()[t.isHorizontal()?"left":"top"]-(null!==d?d:h/2))/(c-h),o=Math.max(Math.min(o,1),0),s&&(o=1-o);const r=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(r),t.setTranslate(r),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const i=t.params.scrollbar,{scrollbar:s,$wrapperEl:n}=t,{$el:r,$dragEl:a}=s;p=!0,d=e.target===a[0]||e.target===a?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),n.transition(100),a.transition(100),v(e),clearTimeout(g),r.transition(0),i.hide&&r.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),o("scrollbarDragStart",e)}function C(e){const{scrollbar:i,$wrapperEl:s}=t,{$el:n,$dragEl:r}=i;p&&(e.preventDefault?e.preventDefault():e.returnValue=!1,v(e),s.transition(0),n.transition(0),r.transition(0),o("scrollbarDragMove",e))}function b(e){const i=t.params.scrollbar,{scrollbar:s,$wrapperEl:n}=t,{$el:r}=s;p&&(p=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),n.transition("")),i.hide&&(clearTimeout(g),g=l((()=>{r.css("opacity",0),r.transition(400)}),1e3)),o("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function I(e){const{scrollbar:i,touchEventsTouch:s,touchEventsDesktop:n,params:o,support:a}=t,l=i.$el[0],d=!(!a.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},h=!(!a.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};if(!l)return;const c="on"===e?"addEventListener":"removeEventListener";a.touch?(l[c](s.start,x,d),l[c](s.move,C,d),l[c](s.end,b,h)):(l[c](n.start,x,d),r[c](n.move,C,d),r[c](n.end,b,h))}function S(){const{scrollbar:e,$el:i}=t;t.params.scrollbar=R(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const s=t.params.scrollbar;if(!s.el)return;let n=a(s.el);t.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.find(s.el).length&&(n=i.find(s.el));let o=n.find(`.${t.params.scrollbar.dragClass}`);0===o.length&&(o=a(`
`),n.append(o)),Object.assign(e,{$el:n,el:n[0],$dragEl:o,dragEl:o[0]}),s.draggable&&t.params.scrollbar.el&&I("on"),n&&n[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function P(){t.params.scrollbar.el&&I("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},s("init",(()=>{S(),w(),f()})),s("update resize observerUpdate lock unlock",(()=>{w()})),s("setTranslate",(()=>{f()})),s("setTransition",((e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(i)})),s("enable disable",(()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)})),s("destroy",(()=>{P()})),Object.assign(t.scrollbar,{updateSize:w,setTranslate:f,init:S,destroy:P})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({parallax:{enabled:!1}});const n=(e,i)=>{const{rtl:s}=t,n=a(e),o=s?-1:1,r=n.attr("data-swiper-parallax")||"0";let l=n.attr("data-swiper-parallax-x"),d=n.attr("data-swiper-parallax-y");const h=n.attr("data-swiper-parallax-scale"),c=n.attr("data-swiper-parallax-opacity");if(l||d?(l=l||"0",d=d||"0"):t.isHorizontal()?(l=r,d="0"):(d=r,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*i*o+"%":l*i*o+"px",d=d.indexOf("%")>=0?parseInt(d,10)*i+"%":d*i+"px",null!=c){const e=c-(c-1)*(1-Math.abs(i));n[0].style.opacity=e}if(null==h)n.transform(`translate3d(${l}, ${d}, 0px)`);else{const e=h-(h-1)*(1-Math.abs(i));n.transform(`translate3d(${l}, ${d}, 0px) scale(${e})`)}},o=()=>{const{$el:e,slides:i,progress:s,snapGrid:o}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{n(e,s)})),i.each(((e,i)=>{let r=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(i/2)-s*(o.length-1)),r=Math.min(Math.max(r,-1),1),a(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{n(e,r)}))}))};s("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),s("init",(()=>{t.params.parallax.enabled&&o()})),s("setTranslate",(()=>{t.params.parallax.enabled&&o()})),s("setTransition",((e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:i}=t;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t=>{const i=a(t);let s=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),i.transition(s)}))}(i)}))},function(e){let{swiper:t,extendParams:i,on:s,emit:o}=e;const r=(0,n.Jj)();i({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,d,c,u=1,p=!1;const m={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},g={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},f={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let w=1;function y(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,n=e.targetTouches[1].pageY;return Math.sqrt((s-t)**2+(n-i)**2)}function v(e){const i=t.support,s=t.params.zoom;if(d=!1,c=!1,!i.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;d=!0,m.scaleStart=y(e)}m.$slideEl&&m.$slideEl.length||(m.$slideEl=a(e.target).closest(`.${t.params.slideClass}`),0===m.$slideEl.length&&(m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${s.containerClass}`),m.maxRatio=m.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,0!==m.$imageWrapEl.length)?(m.$imageEl&&m.$imageEl.transition(0),p=!0):m.$imageEl=void 0}function x(e){const i=t.support,s=t.params.zoom,n=t.zoom;if(!i.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;c=!0,m.scaleMove=y(e)}m.$imageEl&&0!==m.$imageEl.length?(i.gestures?n.scale=e.scale*u:n.scale=m.scaleMove/m.scaleStart*u,n.scale>m.maxRatio&&(n.scale=m.maxRatio-1+(n.scale-m.maxRatio+1)**.5),n.scaleg.touchesStart.x))return void(g.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(g.minY)===Math.floor(g.startY)&&g.touchesCurrent.yg.touchesStart.y))return void(g.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),g.isMoved=!0,g.currentX=g.touchesCurrent.x-g.touchesStart.x+g.startX,g.currentY=g.touchesCurrent.y-g.touchesStart.y+g.startY,g.currentXg.maxX&&(g.currentX=g.maxX-1+(g.currentX-g.maxX+1)**.8),g.currentYg.maxY&&(g.currentY=g.maxY-1+(g.currentY-g.maxY+1)**.8),f.prevPositionX||(f.prevPositionX=g.touchesCurrent.x),f.prevPositionY||(f.prevPositionY=g.touchesCurrent.y),f.prevTime||(f.prevTime=Date.now()),f.x=(g.touchesCurrent.x-f.prevPositionX)/(Date.now()-f.prevTime)/2,f.y=(g.touchesCurrent.y-f.prevPositionY)/(Date.now()-f.prevTime)/2,Math.abs(g.touchesCurrent.x-f.prevPositionX)<2&&(f.x=0),Math.abs(g.touchesCurrent.y-f.prevPositionY)<2&&(f.y=0),f.prevPositionX=g.touchesCurrent.x,f.prevPositionY=g.touchesCurrent.y,f.prevTime=Date.now(),m.$imageWrapEl.transform(`translate3d(${g.currentX}px, ${g.currentY}px,0)`)}}function I(){const e=t.zoom;m.$slideEl&&t.previousIndex!==t.activeIndex&&(m.$imageEl&&m.$imageEl.transform("translate3d(0,0,0) scale(1)"),m.$imageWrapEl&&m.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,u=1,m.$slideEl=void 0,m.$imageEl=void 0,m.$imageWrapEl=void 0)}function S(e){const i=t.zoom,s=t.params.zoom;if(m.$slideEl||(e&&e.target&&(m.$slideEl=a(e.target).closest(`.${t.params.slideClass}`)),m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex)),m.$imageEl=m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${s.containerClass}`)),!m.$imageEl||0===m.$imageEl.length||!m.$imageWrapEl||0===m.$imageWrapEl.length)return;let n,o,l,d,h,c,p,f,w,y,v,x,C,b,I,S,P,T;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.$slideEl.addClass(`${s.zoomedSlideClass}`),void 0===g.touchesStart.x&&e?(n="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,o="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(n=g.touchesStart.x,o=g.touchesStart.y),i.scale=m.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,u=m.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,e?(P=m.$slideEl[0].offsetWidth,T=m.$slideEl[0].offsetHeight,l=m.$slideEl.offset().left+r.scrollX,d=m.$slideEl.offset().top+r.scrollY,h=l+P/2-n,c=d+T/2-o,w=m.$imageEl[0].offsetWidth,y=m.$imageEl[0].offsetHeight,v=w*i.scale,x=y*i.scale,C=Math.min(P/2-v/2,0),b=Math.min(T/2-x/2,0),I=-C,S=-b,p=h*i.scale,f=c*i.scale,pI&&(p=I),fS&&(f=S)):(p=0,f=0),m.$imageWrapEl.transition(300).transform(`translate3d(${p}px, ${f}px,0)`),m.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${i.scale})`)}function P(){const e=t.zoom,i=t.params.zoom;m.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):m.$slideEl=t.slides.eq(t.activeIndex),m.$imageEl=m.$slideEl.find(`.${i.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),m.$imageWrapEl=m.$imageEl.parent(`.${i.containerClass}`)),m.$imageEl&&0!==m.$imageEl.length&&m.$imageWrapEl&&0!==m.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,u=1,m.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),m.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),m.$slideEl.removeClass(`${i.zoomedSlideClass}`),m.$slideEl=void 0)}function T(e){const i=t.zoom;i.scale&&1!==i.scale?P():S(e)}function $(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function k(){return`.${t.params.slideClass}`}function L(e){const{passiveListener:i}=$(),s=k();t.$wrapperEl[e]("gesturestart",s,v,i),t.$wrapperEl[e]("gesturechange",s,x,i),t.$wrapperEl[e]("gestureend",s,C,i)}function M(){l||(l=!0,L("on"))}function E(){l&&(l=!1,L("off"))}function A(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const i=t.support,{passiveListener:s,activeListenerWithCapture:n}=$(),o=k();i.gestures?(t.$wrapperEl.on(t.touchEvents.start,M,s),t.$wrapperEl.on(t.touchEvents.end,E,s)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,o,v,s),t.$wrapperEl.on(t.touchEvents.move,o,x,n),t.$wrapperEl.on(t.touchEvents.end,o,C,s),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,o,C,s)),t.$wrapperEl.on(t.touchEvents.move,`.${t.params.zoom.containerClass}`,b,n)}function _(){const e=t.zoom;if(!e.enabled)return;const i=t.support;e.enabled=!1;const{passiveListener:s,activeListenerWithCapture:n}=$(),o=k();i.gestures?(t.$wrapperEl.off(t.touchEvents.start,M,s),t.$wrapperEl.off(t.touchEvents.end,E,s)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,o,v,s),t.$wrapperEl.off(t.touchEvents.move,o,x,n),t.$wrapperEl.off(t.touchEvents.end,o,C,s),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,o,C,s)),t.$wrapperEl.off(t.touchEvents.move,`.${t.params.zoom.containerClass}`,b,n)}Object.defineProperty(t.zoom,"scale",{get(){return w},set(e){if(w!==e){const t=m.$imageEl?m.$imageEl[0]:void 0,i=m.$slideEl?m.$slideEl[0]:void 0;o("zoomChange",e,t,i)}w=e}}),s("init",(()=>{t.params.zoom.enabled&&A()})),s("destroy",(()=>{_()})),s("touchStart",((e,i)=>{t.zoom.enabled&&function(e){const i=t.device;m.$imageEl&&0!==m.$imageEl.length&&(g.isTouched||(i.android&&e.cancelable&&e.preventDefault(),g.isTouched=!0,g.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,g.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(i)})),s("touchEnd",((e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.$imageEl||0===m.$imageEl.length)return;if(!g.isTouched||!g.isMoved)return g.isTouched=!1,void(g.isMoved=!1);g.isTouched=!1,g.isMoved=!1;let i=300,s=300;const n=f.x*i,o=g.currentX+n,r=f.y*s,a=g.currentY+r;0!==f.x&&(i=Math.abs((o-g.currentX)/f.x)),0!==f.y&&(s=Math.abs((a-g.currentY)/f.y));const l=Math.max(i,s);g.currentX=o,g.currentY=a;const d=g.width*e.scale,h=g.height*e.scale;g.minX=Math.min(m.slideWidth/2-d/2,0),g.maxX=-g.minX,g.minY=Math.min(m.slideHeight/2-h/2,0),g.maxY=-g.minY,g.currentX=Math.max(Math.min(g.currentX,g.maxX),g.minX),g.currentY=Math.max(Math.min(g.currentY,g.maxY),g.minY),m.$imageWrapEl.transition(l).transform(`translate3d(${g.currentX}px, ${g.currentY}px,0)`)}()})),s("doubleTap",((e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&T(i)})),s("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&I()})),s("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&I()})),Object.assign(t.zoom,{enable:A,disable:_,in:S,out:P,toggle:T})},function(e){let{swiper:t,extendParams:i,on:s,emit:o}=e;i({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let r=!1,l=!1;function d(e,i){void 0===i&&(i=!0);const s=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const n=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),r=n.find(`.${s.elementClass}:not(.${s.loadedClass}):not(.${s.loadingClass})`);!n.hasClass(s.elementClass)||n.hasClass(s.loadedClass)||n.hasClass(s.loadingClass)||r.push(n[0]),0!==r.length&&r.each((e=>{const r=a(e);r.addClass(s.loadingClass);const l=r.attr("data-background"),h=r.attr("data-src"),c=r.attr("data-srcset"),u=r.attr("data-sizes"),p=r.parent("picture");t.loadImage(r[0],h||l,c,u,!1,(()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(l?(r.css("background-image",`url("${l}")`),r.removeAttr("data-background")):(c&&(r.attr("srcset",c),r.removeAttr("data-srcset")),u&&(r.attr("sizes",u),r.removeAttr("data-sizes")),p.length&&p.children("source").each((e=>{const t=a(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))})),h&&(r.attr("src",h),r.removeAttr("data-src"))),r.addClass(s.loadedClass).removeClass(s.loadingClass),n.find(`.${s.preloaderClass}`).remove(),t.params.loop&&i){const e=n.attr("data-swiper-slide-index");if(n.hasClass(t.params.slideDuplicateClass)){d(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1)}else{d(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}}o("lazyImageReady",n[0],r[0]),t.params.autoHeight&&t.updateAutoHeight()}})),o("lazyImageLoad",n[0],r[0])}))}function h(){const{$wrapperEl:e,params:i,slides:s,activeIndex:n}=t,o=t.virtual&&i.virtual.enabled,r=i.lazy;let h=i.slidesPerView;function c(t){if(o){if(e.children(`.${i.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(s[t])return!0;return!1}function u(e){return o?a(e).attr("data-swiper-slide-index"):a(e).index()}if("auto"===h&&(h=0),l||(l=!0),t.params.watchSlidesProgress)e.children(`.${i.slideVisibleClass}`).each((e=>{d(o?a(e).attr("data-swiper-slide-index"):a(e).index())}));else if(h>1)for(let e=n;e1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){const e=r.loadPrevNextAmount,t=h,i=Math.min(n+t+Math.max(e,t),s.length),o=Math.max(n-Math.max(t,e),0);for(let e=n+h;e0&&d(u(t));const s=e.children(`.${i.slidePrevClass}`);s.length>0&&d(u(s))}}function c(){const e=(0,n.Jj)();if(!t||t.destroyed)return;const i=t.params.lazy.scrollingElement?a(t.params.lazy.scrollingElement):a(e),s=i[0]===e,o=s?e.innerWidth:i[0].offsetWidth,l=s?e.innerHeight:i[0].offsetHeight,d=t.$el.offset(),{rtlTranslate:u}=t;let p=!1;u&&(d.left-=t.$el[0].scrollLeft);const m=[[d.left,d.top],[d.left+t.width,d.top],[d.left,d.top+t.height],[d.left+t.width,d.top+t.height]];for(let e=0;e=0&&t[0]<=o&&t[1]>=0&&t[1]<=l){if(0===t[0]&&0===t[1])continue;p=!0}}const g=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};p?(h(),i.off("scroll",c,g)):r||(r=!0,i.on("scroll",c,g))}s("beforeInit",(()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)})),s("init",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():h())})),s("scroll",(()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&h()})),s("scrollbarDragMove resize _freeModeNoMomentumRelease",(()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?c():h())})),s("transitionStart",(()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!l)&&(t.params.lazy.checkInView?c():h())})),s("transitionEnd",(()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?c():h())})),s("slideChange",(()=>{const{lazy:e,cssMode:i,watchSlidesProgress:s,touchReleaseOnEdges:n,resistanceRatio:o}=t.params;e.enabled&&(i||s&&(n||0===o))&&h()})),Object.assign(t.lazy,{load:h,loadInSlide:d})},function(e){let{swiper:t,extendParams:i,on:s}=e;function n(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)i=e+t>>1,s[i]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function o(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},s("beforeInit",(()=>{t.controller.control=t.params.controller.control})),s("update",(()=>{o()})),s("resize",(()=>{o()})),s("observerUpdate",(()=>{o()})),s("setTranslate",((e,i,s)=>{t.controller.control&&t.controller.setTranslate(i,s)})),s("setTransition",((e,i,s)=>{t.controller.control&&t.controller.setTransition(i,s)})),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let o,r;const a=t.constructor;function l(e){const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline||(t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid))}(e),r=-t.controller.spline.interpolate(-i)),r&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),r=(i-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let e=0;e{i.updateAutoHeight()})),i.$wrapperEl.transitionEnd((()=>{n&&(i.params.loop&&"slide"===t.params.controller.by&&i.loopFix(),i.transitionEnd())})))}if(Array.isArray(n))for(o=0;o{r(e),"BUTTON"!==e[0].tagName&&(d(e,"button"),e.on("keydown",m)),c(e,i),function(e,t){e.attr("aria-controls",t)}(e,t)},y=e=>{const i=e.target.closest(`.${t.params.slideClass}`);if(!i||!t.slides.includes(i))return;const s=t.slides.indexOf(i)===t.activeIndex,n=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||n||t.slideTo(t.slides.indexOf(i),0)};function v(){const e=t.params.a11y;t.$el.append(n);const i=t.$el;e.containerRoleDescriptionMessage&&h(i,e.containerRoleDescriptionMessage),e.containerMessage&&c(i,e.containerMessage);const s=t.$wrapperEl,o=s.attr("id")||`swiper-wrapper-${r=16,void 0===r&&(r=16),"x".repeat(r).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var r;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var u;u=o,s.attr("id",u),function(e,t){e.attr("aria-live",t)}(s,l),e.itemRoleDescriptionMessage&&h(a(t.slides),e.itemRoleDescriptionMessage),d(a(t.slides),e.slideRole);const p=t.params.loop?t.slides.filter((e=>!e.classList.contains(t.params.slideDuplicateClass))).length:t.slides.length;let g,v;t.slides.each(((i,s)=>{const n=a(i),o=t.params.loop?parseInt(n.attr("data-swiper-slide-index"),10):s;c(n,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,p))})),t.navigation&&t.navigation.$nextEl&&(g=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(v=t.navigation.$prevEl),g&&g.length&&w(g,o,e.nextSlideMessage),v&&v.length&&w(v,o,e.prevSlideMessage),f()&&t.pagination.$el.on("keydown",V(t.params.pagination.bulletClass),m),t.$el.on("focus",y,!0)}s("beforeInit",(()=>{n=a(``)})),s("afterInit",(()=>{t.params.a11y.enabled&&v()})),s("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:i}=t.navigation;i&&i.length>0&&(t.isBeginning?(u(i),l(i)):(p(i),r(i))),e&&e.length>0&&(t.isEnd?(u(e),l(e)):(p(e),r(e)))}()})),s("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;g()&&t.pagination.bullets.each((i=>{const s=a(i);t.params.pagination.clickable&&(r(s),t.params.pagination.renderBullet||(d(s,"button"),c(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,s.index()+1)))),s.is(`.${t.params.pagination.bulletActiveClass}`)?s.attr("aria-current","true"):s.removeAttr("aria-current")}))}()})),s("destroy",(()=>{t.params.a11y.enabled&&function(){let e,i;n&&n.length>0&&n.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&e.off("keydown",m),i&&i.off("keydown",m),f()&&t.pagination.$el.off("keydown",V(t.params.pagination.bulletClass),m),t.$el.off("focus",y,!0)}()}))},function(e){let{swiper:t,extendParams:i,on:s}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides"}});let o=!1,r={};const a=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=(0,n.Jj)();let i;i=e?new URL(e):t.location;const s=i.pathname.slice(1).split("/").filter((e=>""!==e)),o=s.length;return{key:s[o-2],value:s[o-1]}},d=(e,i)=>{const s=(0,n.Jj)();if(!o||!t.params.history.enabled)return;let r;r=t.params.url?new URL(t.params.url):s.location;const l=t.slides.eq(i);let d=a(l.attr("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),d=`${i}/${e}/${d}`}else r.pathname.includes(e)||(d=`${e}/${d}`);const h=s.history.state;h&&h.value===d||(t.params.history.replaceState?s.history.replaceState({value:d},null,d):s.history.pushState({value:d},null,d))},h=(e,i,s)=>{if(i)for(let n=0,o=t.slides.length;n{r=l(t.params.url),h(t.params.speed,t.paths.value,!1)};s("init",(()=>{t.params.history.enabled&&(()=>{const e=(0,n.Jj)();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);o=!0,r=l(t.params.url),(r.key||r.value)&&(h(0,r.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",c))}})()})),s("destroy",(()=>{t.params.history.enabled&&(()=>{const e=(0,n.Jj)();t.params.history.replaceState||e.removeEventListener("popstate",c)})()})),s("transitionEnd _freeModeNoMomentumRelease",(()=>{o&&d(t.params.history.key,t.activeIndex)})),s("slideChange",(()=>{o&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:i,emit:s,on:o}=e,r=!1;const l=(0,n.Me)(),d=(0,n.Jj)();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const h=()=>{s("hashChange");const e=l.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const i=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===i)return;t.slideTo(i)}},c=()=>{if(r&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState)d.history.replaceState(null,null,`#${t.slides.eq(t.activeIndex).attr("data-hash")}`||""),s("hashSet");else{const e=t.slides.eq(t.activeIndex),i=e.attr("data-hash")||e.attr("data-history");l.location.hash=i||"",s("hashSet")}};o("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;r=!0;const e=l.location.hash.replace("#","");if(e){const i=0;for(let s=0,n=t.slides.length;s{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&a(d).off("hashchange",h)})),o("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&c()})),o("slideChange",(()=>{r&&t.params.cssMode&&c()}))},function(e){let t,{swiper:i,extendParams:s,on:o,emit:r}=e;function a(){const e=i.slides.eq(i.activeIndex);let s=i.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(s=e.attr("data-swiper-autoplay")||i.params.autoplay.delay),clearTimeout(t),t=l((()=>{let e;i.params.autoplay.reverseDirection?i.params.loop?(i.loopFix(),e=i.slidePrev(i.params.speed,!0,!0),r("autoplay")):i.isBeginning?i.params.autoplay.stopOnLastSlide?h():(e=i.slideTo(i.slides.length-1,i.params.speed,!0,!0),r("autoplay")):(e=i.slidePrev(i.params.speed,!0,!0),r("autoplay")):i.params.loop?(i.loopFix(),e=i.slideNext(i.params.speed,!0,!0),r("autoplay")):i.isEnd?i.params.autoplay.stopOnLastSlide?h():(e=i.slideTo(0,i.params.speed,!0,!0),r("autoplay")):(e=i.slideNext(i.params.speed,!0,!0),r("autoplay")),(i.params.cssMode&&i.autoplay.running||!1===e)&&a()}),s)}function d(){return void 0===t&&(!i.autoplay.running&&(i.autoplay.running=!0,r("autoplayStart"),a(),!0))}function h(){return!!i.autoplay.running&&(void 0!==t&&(t&&(clearTimeout(t),t=void 0),i.autoplay.running=!1,r("autoplayStop"),!0))}function c(e){i.autoplay.running&&(i.autoplay.paused||(t&&clearTimeout(t),i.autoplay.paused=!0,0!==e&&i.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].addEventListener(e,p)})):(i.autoplay.paused=!1,a())))}function u(){const e=(0,n.Me)();"hidden"===e.visibilityState&&i.autoplay.running&&c(),"visible"===e.visibilityState&&i.autoplay.paused&&(a(),i.autoplay.paused=!1)}function p(e){i&&!i.destroyed&&i.$wrapperEl&&e.target===i.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].removeEventListener(e,p)})),i.autoplay.paused=!1,i.autoplay.running?a():h())}function m(){i.params.autoplay.disableOnInteraction?h():(r("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach((e=>{i.$wrapperEl[0].removeEventListener(e,p)}))}function g(){i.params.autoplay.disableOnInteraction||(i.autoplay.paused=!1,r("autoplayResume"),a())}i.autoplay={running:!1,paused:!1},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),o("init",(()=>{if(i.params.autoplay.enabled){d();(0,n.Me)().addEventListener("visibilitychange",u),i.params.autoplay.pauseOnMouseEnter&&(i.$el.on("mouseenter",m),i.$el.on("mouseleave",g))}})),o("beforeTransitionStart",((e,t,s)=>{i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(t):h())})),o("sliderFirstMove",(()=>{i.autoplay.running&&(i.params.autoplay.disableOnInteraction?h():c())})),o("touchEnd",(()=>{i.params.cssMode&&i.autoplay.paused&&!i.params.autoplay.disableOnInteraction&&a()})),o("destroy",(()=>{i.$el.off("mouseenter",m),i.$el.off("mouseleave",g),i.autoplay.running&&h();(0,n.Me)().removeEventListener("visibilitychange",u)})),Object.assign(i.autoplay,{pause:c,run:a,start:d,stop:h})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let n=!1,o=!1;function r(){const e=t.thumbs.swiper;if(!e)return;const i=e.clickedIndex,s=e.clickedSlide;if(s&&a(s).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;if(n=e.params.loop?parseInt(a(e.clickedSlide).attr("data-swiper-slide-index"),10):i,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const i=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${n}"]`).eq(0).index(),s=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${n}"]`).eq(0).index();n=void 0===i?s:void 0===s?i:s-e1?s:l:s-lt.previousIndex?"next":"prev"}else r=t.realIndex,a=r>t.previousIndex?"next":"prev";o&&(r+="next"===a?n:-1*n),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>l?r-Math.floor(s/2)+1:r+Math.floor(s/2)-1:r>l&&i.params.slidesPerGroup,i.slideTo(r,e?0:void 0))}let r=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),i.slides.removeClass(a),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e{const{thumbs:e}=t.params;e&&e.swiper&&(l(),d(!0))})),s("slideChange update resize observerUpdate",(()=>{t.thumbs.swiper&&d()})),s("setTransition",((e,i)=>{const s=t.thumbs.swiper;s&&s.setTransition(i)})),s("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&o&&e&&e.destroy()})),Object.assign(t.thumbs,{init:l,update:d})},function(e){let{swiper:t,extendParams:i,emit:s,once:n}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:d()})},onTouchEnd:function(e){let{currentPos:i}=e;const{params:o,$wrapperEl:r,rtlTranslate:a,snapGrid:l,touchEventsData:h}=t,c=d()-h.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length1){const e=h.velocities.pop(),i=h.velocities.pop(),s=e.position-i.position,n=e.time-i.time;t.velocity=s/n,t.velocity/=2,Math.abs(t.velocity)150||d()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=o.freeMode.momentumVelocityRatio,h.velocities.length=0;let e=1e3*o.freeMode.momentumRatio;const i=t.velocity*e;let c=t.translate+i;a&&(c=-c);let u,p=!1;const m=20*Math.abs(t.velocity)*o.freeMode.momentumBounceRatio;let g;if(ct.minTranslate())o.freeMode.momentumBounce?(c-t.minTranslate()>m&&(c=t.minTranslate()+m),u=t.minTranslate(),p=!0,h.allowMomentumBounce=!0):c=t.minTranslate(),o.loop&&o.centeredSlides&&(g=!0);else if(o.freeMode.sticky){let e;for(let t=0;t-c){e=t;break}c=Math.abs(l[e]-c){t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),o.freeMode.sticky){const i=Math.abs((a?-c:c)-t.translate),s=t.slidesSizesGrid[t.activeIndex];e=i{t&&!t.destroyed&&h.allowMomentumBounce&&(s("momentumBounce"),t.setTransition(o.speed),setTimeout((()=>{t.setTranslate(u),r.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(s("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode&&s("_freeModeNoMomentumRelease")}(!o.freeMode.momentum||c>=o.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,i,s,{swiper:n,extendParams:o}=e;o({grid:{rows:1,fill:"column"}}),n.grid={initSlides:e=>{const{slidesPerView:o}=n.params,{rows:r,fill:a}=n.params.grid;i=t/r,s=Math.floor(e/r),t=Math.floor(e/r)===e/r?e:Math.ceil(e/r)*r,"auto"!==o&&"row"===a&&(t=Math.max(t,o*r))},updateSlide:(e,o,r,a)=>{const{slidesPerGroup:l,spaceBetween:d}=n.params,{rows:h,fill:c}=n.params.grid;let u,p,m;if("row"===c&&l>1){const i=Math.floor(e/(l*h)),s=e-h*l*i,n=0===i?l:Math.min(Math.ceil((r-i*h*l)/h),l);m=Math.floor(s/n),p=s-m*n+i*l,u=p+m*t/h,o.css({"-webkit-order":u,order:u})}else"column"===c?(p=Math.floor(e/h),m=e-p*h,(p>s||p===s&&m===h-1)&&(m+=1,m>=h&&(m=0,p+=1))):(m=Math.floor(e/i),p=e-m*i);o.css(a("margin-top"),0!==m?d&&`${d}px`:"")},updateWrapperSize:(e,i,s)=>{const{spaceBetween:o,centeredSlides:r,roundLengths:a}=n.params,{rows:l}=n.params.grid;if(n.virtualSize=(e+o)*t,n.virtualSize=Math.ceil(n.virtualSize/l)-o,n.$wrapperEl.css({[s("width")]:`${n.virtualSize+o}px`}),r){i.splice(0,i.length);const e=[];for(let t=0;t{const{slides:e}=t,i=t.params.fadeEffect;for(let s=0;s{const{transformEl:i}=t.params.fadeEffect;(i?t.slides.find(i):t.slides).transition(e),Q({swiper:t,duration:e,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}}),X({effect:"cube",swiper:t,on:s,setTranslate:()=>{const{$el:e,$wrapperEl:i,slides:s,width:n,height:o,rtlTranslate:r,size:l,browser:d}=t,h=t.params.cubeEffect,c=t.isHorizontal(),u=t.virtual&&t.params.virtual.enabled;let p,m=0;h.shadow&&(c?(p=i.find(".swiper-cube-shadow"),0===p.length&&(p=a('
'),i.append(p)),p.css({height:`${n}px`})):(p=e.find(".swiper-cube-shadow"),0===p.length&&(p=a('
'),e.append(p))));for(let e=0;e-1&&(m=90*i+90*d,r&&(m=90*-i-90*d)),t.transform(w),h.slideShadows){let e=c?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),i=c?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=a(`
`),t.append(e)),0===i.length&&(i=a(`
`),t.append(i)),e.length&&(e[0].style.opacity=Math.max(-d,0)),i.length&&(i[0].style.opacity=Math.max(d,0))}}if(i.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),h.shadow)if(c)p.transform(`translate3d(0px, ${n/2+h.shadowOffset}px, ${-n/2}px) rotateX(90deg) rotateZ(0deg) scale(${h.shadowScale})`);else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=h.shadowScale,s=h.shadowScale/t,n=h.shadowOffset;p.transform(`scale3d(${i}, 1, ${s}) translate3d(0px, ${o/2+n}px, ${-o/2/s}px) rotateX(-90deg)`)}const g=d.isSafari||d.isWebView?-l/2:0;i.transform(`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:m}deg) rotateY(${t.isHorizontal()?-m:0}deg)`)},setTransition:e=>{const{$el:i,slides:s}=t;s.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(e)},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),X({effect:"flip",swiper:t,on:s,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,s=t.params.flipEffect;for(let n=0;n{const{transformEl:i}=t.params.flipEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),Q({swiper:t,duration:e,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),X({effect:"coverflow",swiper:t,on:s,setTranslate:()=>{const{width:e,height:i,slides:s,slidesSizesGrid:n}=t,o=t.params.coverflowEffect,r=t.isHorizontal(),a=t.translate,l=r?e/2-a:i/2-a,d=r?o.rotate:-o.rotate,h=o.depth;for(let e=0,t=s.length;e0?c:0),i.length&&(i[0].style.opacity=-c>0?-c:0)}}},setTransition:e=>{const{transformEl:i}=t.params.coverflowEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const n=e=>"string"==typeof e?e:`${e}px`;X({effect:"creative",swiper:t,on:s,setTranslate:()=>{const{slides:e,$wrapperEl:i,slidesSizesGrid:s}=t,o=t.params.creativeEffect,{progressMultiplier:r}=o,a=t.params.centeredSlides;if(a){const e=s[0]/2-t.params.slidesOffsetBefore||0;i.transform(`translateX(calc(50% - ${e}px))`)}for(let i=0;i0&&(g=o.prev,m=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${n(g.translate[t])} * ${Math.abs(d*r)}))`})),p.forEach(((e,t)=>{p[t]=g.rotate[t]*Math.abs(d*r)})),s[0].style.zIndex=-Math.abs(Math.round(l))+e.length;const f=u.join(", "),w=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,y=h<0?`scale(${1+(1-g.scale)*h*r})`:`scale(${1-(1-g.scale)*h*r})`,v=h<0?1+(1-g.opacity)*h*r:1-(1-g.opacity)*h*r,x=`translate3d(${f}) ${w} ${y}`;if(m&&g.shadow||!m){let e=s.children(".swiper-slide-shadow");if(0===e.length&&g.shadow&&(e=K(o,s)),e.length){const t=o.shadowPerProgress?d*(1/o.limitProgress):d;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const C=q(o,s);C.transform(x).css({opacity:v}),g.origin&&C.css("transform-origin",g.origin)}},setTransition:e=>{const{transformEl:i}=t.params.creativeEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),Q({swiper:t,duration:e,transformEl:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cardsEffect:{slideShadows:!0,transformEl:null}}),X({effect:"cards",swiper:t,on:s,setTranslate:()=>{const{slides:e,activeIndex:i}=t,s=t.params.cardsEffect,{startTranslate:n,isTouched:o}=t.touchEventsData,r=t.translate;for(let a=0;a0&&h<1&&(o||t.params.cssMode)&&r-1&&(o||t.params.cssMode)&&r>n;if(v||x){const e=(1-Math.abs((Math.abs(h)-.5)/.5))**.5;f+=-28*h*e,g+=-.5*e,w+=96*e,p=-25*e*Math.abs(h)+"%"}if(u=h<0?`calc(${u}px + (${w*Math.abs(h)}%))`:h>0?`calc(${u}px + (-${w*Math.abs(h)}%))`:`${u}px`,!t.isHorizontal()){const e=p;p=u,u=e}const C=`\n translate3d(${u}, ${p}, ${m}px)\n rotateZ(${f}deg)\n scale(${h<0?""+(1+(1-g)*h):""+(1-(1-g)*h)})\n `;if(s.slideShadows){let e=l.find(".swiper-slide-shadow");0===e.length&&(e=K(s,l)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(h)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(d))+e.length;q(s,l).transform(C)}},setTransition:e=>{const{transformEl:i}=t.params.cardsEffect;(i?t.slides.find(i):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),Q({swiper:t,duration:e,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];z.use(J);class ee{constructor(e,t=new te){(0,s.Z)(this,"swiperCase",null),this.swiperCase=new z(e,t)}}class te{constructor(e){(0,s.Z)(this,"allowSlideNext",!0),(0,s.Z)(this,"allowSlidePrev",!0),(0,s.Z)(this,"allowTouchMove",!0),(0,s.Z)(this,"autoHeight",!1),(0,s.Z)(this,"breakpoints",null),(0,s.Z)(this,"direction","horizontal"),(0,s.Z)(this,"effect","slide"),(0,s.Z)(this,"enabled",!0),(0,s.Z)(this,"init",!1),(0,s.Z)(this,"initialSlide",0),(0,s.Z)(this,"loop",!1),(0,s.Z)(this,"loopAdditionalSlides",0),(0,s.Z)(this,"loopFillGroupWithBlank",!1),(0,s.Z)(this,"loopedSlides",null),(0,s.Z)(this,"modules",[]),(0,s.Z)(this,"on",new ie),(0,s.Z)(this,"roundLengths",!0),(0,s.Z)(this,"runCallbacksOnInit",!0),(0,s.Z)(this,"slideActiveClass","swiper-slide-active"),(0,s.Z)(this,"slideBlankClass","swiper-slide-invisible-blank"),(0,s.Z)(this,"slideClass","swiper-slide"),(0,s.Z)(this,"slideDuplicateActiveClass","swiper-slide-duplicate-active"),(0,s.Z)(this,"slideDuplicateClass","swiper-slide-duplicate"),(0,s.Z)(this,"slideDuplicateNextClass","swiper-slide-duplicate-next"),(0,s.Z)(this,"slideDuplicatePrevClass","swiper-slide-duplicate-prev"),(0,s.Z)(this,"slideNextClass","swiper-slide-next"),(0,s.Z)(this,"slidePrevClass","swiper-slide-prev"),(0,s.Z)(this,"slideVisibleClass","swiper-slide-visible"),(0,s.Z)(this,"speed",300),(0,s.Z)(this,"preloadImages",!0),(0,s.Z)(this,"updateOnImagesReady",!0),e&&e.on&&Object.keys(e.on).forEach((e=>{z.on(e,z.params.on[e])}))}}class ie{init(e){}touchStart(e,t){}touchMove(e,t){}touchEnd(e,t){}sliderMove(e,t){}click(e,t){}tap(e,t){}doubleTap(e,t){}progress(e,t){}reachBeginning(e){}reachEnd(e){}}},6546:function(e,t,i){"use strict";i.d(t,{Y:function(){return n},Q:function(){return o}});var s=i(144);const n={PAGE_FINISHED:"PAGE_FINISHED",PAGE_POP_FINISHED:"PAGE_POP_FINISHED",TEXT_ADJUST_GROUP:"TEXT_ADJUST_GROUP",TIMELINE_CREATE_ANIME:"TIMELINE_CREATE_ANIME",TIMELINE_SEEK_ANIME_POSITION:"TIMELINE_SEEK_ANIME_POSITION",TIMELINE_LAYER_SCROLL_TO_VIEW:"TIMELINE_LAYER_SCROLL_TO_VIEW",GET_EMIT_CAMERA_SEEK_ANIME:"GET_EMIT_CAMERA_SEEK_ANIME",OPEN_SCREENSHOT_SETTING:"OPEN_SCREENSHOT_SETTING",CLEAR_ACTION_ANIME:"CLEAR_ACTION_ANIME",SEEK_TIMELINE_INEND:"SEEK_TIMELINE_INEND",CLEAR_EMIT_EVENT_TIMELINE:"CLEAR_EMIT_EVENT_TIMELINE",CLEAR_PREVIEW_TIMELINE:"CLEAR_PREVIEW_TIMELINE",PAGE_START_FLIP:"PAGE_START_FLIP",PAGE_END_FLIP:"PAGE_END_FLIP",MUSIC_ENDED_EVENT:"MUSIC_ENDED_EVENT",ENTER_PAGE:"ENTER_PAGE",LEAVE_PAGE:"LEAVE_PAGE",CANCEL_LINK_ANIME:"CANCEL_LINK_ANIME",SLIDER_ENTER_PAGE:"SLIDER_ENTER_PAGE",SLIDER_LEAVE_PAGE:"SLIDER_LEAVE_PAGE",SLIDER_REFRESH_PAGE:"SLIDER_REFRESH_PAGE",RESET_PLUGIN_MUSIC:"RESET_PLUGIN_MUSIC"},o=new s.default},9655:function(e,t,i){"use strict";var s={};i.r(s),i.d(s,{Lottie:function(){return on}});var n={};i.r(n),i.d(n,{AngularRectangle:function(){return Yl},Arc:function(){return Td},ArithmeticsDivision:function(){return ua},ArithmeticsEquality:function(){return fa},ArithmeticsInequality:function(){return xa},ArithmeticsMinus:function(){return na},ArithmeticsMultiply:function(){return la},ArithmeticsPlus:function(){return ea},ArrowDownArc:function(){return hd},ArrowLeftArc:function(){return rd},ArrowRightArc:function(){return ld},ArrowUpArc:function(){return ud},BlockBentArrow:function(){return Gn},BlockBentUpArrow:function(){return so},BlockChevronArrow:function(){return Jn},BlockDoubleArrow:function(){return _n},BlockDownArrow:function(){return ao},BlockDownCalloutArrow:function(){return qr},BlockLeftArrow:function(){return uo},BlockLeftCalloutArrow:function(){return Sa},BlockLeftRightCalloutArrow:function(){return Rr},BlockLeftRightUpArrow:function(){return Mr},BlockLeftUpArrow:function(){return Tr},BlockNotchedArrow:function(){return Bn},BlockPentagonArrow:function(){return Xn},BlockQuadArrow:function(){return Wr},BlockQuadCalloutArrow:function(){return ko},BlockRightArrow:function(){return fo},BlockRightCalloutArrow:function(){return ka},BlockStripedArrow:function(){return zn},BlockUpArrow:function(){return xo},BlockUpCalloutArrow:function(){return Yr},BlockUpDownArrow:function(){return Ln},BlockUpDownCalloutArrow:function(){return Zr},CrossPolygon:function(){return So},Cube:function(){return Ul},CurlyBraces:function(){return Aa},CurlyBracesLeft:function(){return Oa},CurlyBracesRight:function(){return Na},CurveDirectionLine:function(){return Ao},CurveDoubleDirectionLine:function(){return Oo},CurveLine:function(){return No},CutASingleCornerRoundedRectangle:function(){return Ml},CutOffTheApexRectangle:function(){return bl},CutSingleAngleRectangle:function(){return yl},CutTheDiagonalRectangle:function(){return Tl},CutwayRectangle:function(){return ml},Cylindrical:function(){return ql},DeformableCircle:function(){return id},Dike:function(){return Do},DoubleWave:function(){return ed},EightSided:function(){return Uo},FoldDirectionLine:function(){return Ko},FoldDoubleDirectionLine:function(){return ir},ForbiddenCharacter:function(){return nd},GreaterThan:function(){return kd},HalfDosedFrame:function(){return Rl},HollowRound:function(){return hl},HorizontalScroll:function(){return md},LShape:function(){return Dl},LessThan:function(){return Md},LineArc:function(){return rr},LineDash:function(){return hr},LineStraight:function(){return br},LordosisCurvedRibbon:function(){return yd},LordosisRibbon:function(){return bd},NewMoon:function(){return il},Parallelogram:function(){return mr},RectangleSingleCornerRounded:function(){return Al},RectangularSquareHole:function(){return Zl},RoundBracket:function(){return Da},RoundBracketLeft:function(){return Ua},RoundBracketRight:function(){return Ka},RoundedRectangle:function(){return yr},RoundedRectangleOnTheSide:function(){return Ol},RoundedTopRectangle:function(){return Wl},StringShape:function(){return rl},Trapezoid:function(){return Pn},Triangle:function(){return Cn},Twill:function(){return Nl},UpCurvedRibbon:function(){return xd},UpRibbon:function(){return Sd},VerticalRoll:function(){return fd},Wave:function(){return Kl}});var o=i(6546),r=i(7066),a=i(3647),l=i.n(a),d=i(144),h=(i(7658),i(4402)),c=i(1159);class u extends c.Z{constructor(e){super({name:"图表",type:"chart",style:{width:e.style.width,height:e.style.height},showClassName:!0,showGradient:!0,showTitle:!0,titleColor:"#2C2525",position:"top",gNode:e.gNode,isShowPoint:!0,showHighlight:!1,isFixedRatio:!0,highlightRange:"1",highlightTitle:"买入",showGridLine:!0,showXYAxis:!0,showXYTitle:!0,dataNumber:[],xAxis:{title:"标题",color:"#2C2525"},yAxis:{title:"标题",color:"#2C2525"},colorList:[],className:[]},e)}}class p extends c.Z{constructor(e){super({name:"基础图形",type:"baseShape",style:{width:e.style.width,height:e.style.height},noBorder:!1,border:{style:"solid",color:"#7D8693",width:7,originBorder:7},showBorderRadius:!1,keepRatio:!0,borderRadius:{topLeft:10,topRight:10,bottomLeft:10,bottomRight:10},hasGradient:!1,gradient:{}},e)}}var m=i(9647);class g extends c.Z{constructor(e){super({name:"图片吸附框",type:"frames",style:{width:e.style.width,height:e.style.height},containerList:[],imageInfor:[],imageList:[],isNewFileList:[],fileNameList:[],hasFillSvg:!1,parseSvgType:1,fileIsIsSystemTeamplateResource:[],jsonUrl:""},e),0===this.imageList.length&&(this.imageList=this.containerList.map((()=>new m.L)))}}var f=i(7873);class w{constructor(e={}){(0,f.Z)(this,"useColumns",!1),(0,f.Z)(this,"count",2),(0,f.Z)(this,"gap",1),this.useColumns=!!e.useColumns&&e.useColumns,this.count=e.count?e.count:2,this.gap=e.gap?e.gap:1}}var y=i(1062);class v extends c.Z{constructor(e){super({type:"text",name:"文字",style:{width:e.style.width,height:e.style.height},innerTextStyle:new y.m({textAlign:"center"}),stroke:{color:"#888888",width:1},svgText:{svgCode:"",viewBox:""},gradient:{show:!1,isLinear:!0,colorList:[{percent:"0%",color:"#99E265"},{percent:"100%",color:"#00A3CB"}],gradientDeg:180,gradientType:"linear"},isRichText:!1,columnsInfo:new w,textStr:e.textStr,transformPositionText:!0,systemFontToSvg:!0,highLightRects:[],needToCheckRow:!0,isShowStroke:!1,contentRow:0,overflow:"",textAreaWidth:"100%",textAreaHeight:"100%",isHideScrollBar:!1,scrollBarInfo:{thumbColor:"#cccccc",trackColor:"#fafafa",width:6,radius:16,opacity:100}},e)}}class x extends c.Z{constructor(e){let t=x.getImgStyle(e);t.gifHasTurnedCanvas=!1,super({type:"image",name:"图片",style:{backgroundPosition:"0px 0px",backgroundSize:"100% 100%",width:e.style.width,height:e.style.height,top:e.style.top,left:e.style.left},pathBackgroundPosition:"0px 0px",pathBackgroundSize:"100% 100%",url:e.url,isBGI:!1,isGifImage:!1,isQRCodeImg:!1,imgOriginalProportions:!1,gifIsTurningToCanvas:!1,gifToCanvas:!1,gifHasTurnedCanvas:!1,turnCanvasFail:!1,strategy:"stretch",originalWidth:0,originalHeight:0,showBorderRadius:!1,gifStartTime:-1,gifEndTime:-1,superGif:null,gifDuration:-1,gifLength:-1,borderRadius:{topLeft:20,topRight:20,bottomLeft:20,bottomRight:20},cropInfor:{isCropped:!1,originalPx:0,originalPy:0,originalSx:0,originalSy:0},config:{},images:[],gifs:[],image:"",isLoop:!0,isSprite:!1,gifImageLoop:!0,isHorizonFlip:!1,updateGifItemIndex:0},t)}static getImgStyle(e){return e}}class C extends c.Z{constructor(e){super({type:"music",name:"音频",style:{top:"-20px",left:"-20px",width:"20px",height:"20px",opacity:1},audioInfo:{url:"",duration:"",startTime:0,endTime:e.audioInfo.duration,name:"",repeatTime:1,volume:1,isLockedRepeat:!0,fadeIn:0,fadeOut:0},isAdjustable:!1,isHidden:!0,hasLoadedMusic:!0,isLocked:!1,audioTimer:null},e)}}class b extends c.Z{constructor(e){super({type:"video",name:e.name?e.name:"视频",style:{width:.4,height:.4},fileName:"",thumbUrlFileName:"",thumbUrl:"",isBGI:!1,isNewFile:!0,videoTimer:null,isAdjustable:!1,isNeedControls:!1,videoInfo:{name:"",duration:0,delay:0,url:"",startTime:0,originDuration:0,endTime:e.videoInfo.duration,volume:1,isLockedRepeat:!0,fadeIn:0,fadeOut:0}},e)}}class I extends c.Z{constructor(e){let t=e,i=e.pointNum||1,s=e.ratioX||new Array(i).fill(.2),n=e.ratioY||new Array(i).fill(.2);super({name:"可形变图形",type:"transShape",style:{width:t.style.width,height:t.style.height},lineWidth:5,strokeDashes:0,linecap:"round",isAdvance:!1,ratioX:s,ratioY:n,strokeColor:"#7c879b",fillColor:"#99a5bc",fillColor2:"#FF4C4C",transType:"",colours:1,pointNum:i,gradientColorList:[],splitX:new Array(i).fill(0),splitY:new Array(i).fill(0)},t)}}var S=i(4118);class P{constructor(e){let t=P.getSubtitleStyle(e);return JSON.parse(JSON.stringify(S.Z.deepAssign({type:"text",isSubtitle:!0,id:S.Z.getUniqueId(),name:"添加字幕内容",rotate:0,style:{opacity:1},existStartTime:0,existEndTime:0,animations:{duration:1,delay:.3,isHoverBorder:!1,inAnime:{duration:0,props:[{css:{}}]},outAnime:{duration:0,props:[{css:{}}]}},isShowShadow:!1,filter:{dropShadow:{shadowX:4,shadowY:4,shadowBlur:2,shadowColor:"#808080"}},innerTextStyle:new y.m({textAlign:"center"}),isAllBold:!1,isAllItalic:!1,isAllUndeline:!1,isAllStrikeThrough:!1,isShowStroke:!1,stroke:{color:"#888888",width:1},gradient:{show:!1,isLinear:!0,colorList:[{percent:"0%",color:"#99E265"},{percent:"100%",color:"#00A3CB"}],gradientDeg:180,gradientType:"linear"},textStr:"添加字幕内容",contenteditable:!1,textStyleType:0,contentRow:0,needToCheckRow:!0,svgText:{svgCode:"",viewBox:"",pathCount:0},systemFontToSvg:!0,subBColor:{isShow:!1,color:"#ffffff",opacity:.8,padding:0,borderWidth:0,borderColor:"#000000",borderType:"solid",borderRadius:0},isRichText:!1,columnsInfo:new w,highLightRects:[],transformPositionText:!0,subtitleAlign:"bottom",overflow:"",textAreaWidth:"100%",textAreaHeight:"100%",isHideScrollBar:!1,scrollBarInfo:{thumbColor:"#cccccc",trackColor:"#fafafa",width:6,radius:16,opacity:100}},t)))}static getSubtitleStyle(e){return P.isOldConfig(e)&&(e.animations.inAnime={duration:0,props:[{css:{}}]},e.animations.outAnime={duration:0,props:[{css:{}}]}),e}static isOldConfig(e){let t=!1;if(e.animations&&e.animations.inAnime){let i=e.animations.inAnime.props;2===i.length&&i.forEach((e=>{let i=Object.keys(e.css);1===i.length&&"opacity"===i[0]&&(t=!0)}))}return t}}var T=i(5965);class $ extends c.Z{constructor(e){super({name:"特效元素",type:"effect",effectType:"Lottie",style:{width:e.style.width,height:e.style.height},cycle:1,ease:"line",hasLoadedJson:!1,colorList:[],colorInfo:[],widthList:[],widthInfo:[],json:null,isAutoPlay:!1,speed:1,noCycle:!0,noEase:!0,fileName:"",jsonUrl:"",isNewFile:!0,isLoop:!0,isHotSpotEffect:!1},e)}}class k extends c.Z{constructor(e){super({type:"link",name:"link",isIndicated:!0,isInverse:!1,style:{background:"rgba(128, 128, 128, 0.1)",hoverColor:"rgba(128, 128, 128, 0.3)",clickColor:"rgba(128, 128, 128, 0.6)",borderRadius:"0px",width:"100px",height:"20px"}},e)}}class L extends c.Z{constructor(e){super({type:"like",name:"点赞",style:{width:"100px",height:"50px",background:"transparent"},positionType:1,count:0,initNum:0,iconType:1,size:20,bookId:"",timeId:"",openSound:!1,openVibrate:!1,color:"#377aca",limitType:"one",previousLikeTime:"",likeItemNewTime:0,updateList:[{type:"updateStyle",time:"2025-03-25 00:00:00",desc:"元素边框和选择边框贴合优化"},{type:"iconHeight",time:"2025-06-19 00:00:00",desc:"水平布局的图标高度改为auto"}],likeItemFontSize:20},e)}}class M extends c.Z{constructor(e){super({type:"phone",style:{width:.1,height:.1},action:{actionType:"phone",phoneNumber:"",page:1}},e)}}class E extends c.Z{constructor(e={}){super({type:"pluginMusic",name:"音频播放控件",style:{width:.4,height:.4},isHidden:!1,isLocked:!1,musicList:[],musicSkin:1,moviePlayTriggerEvt:"none",movieStopTriggerEvt:"EVT_PageOffView",isAdjustable:!1,isPauseBgSoundWhenPlay:!0,waveformImg:"",fileName:"",audioTimer:null,playFromSeconds:0,syncWithTimeline:!0,returnThisPageToReplay:!1,volume:50,volumeBeforeMute:50,isMute:!1,skinId:1,isPauseOtherMusicWhenPlay:!0,isPlayAcrossPage:!1,playFromPage:void 0!==e.pageIndex?e.pageIndex+1:1,playToPage:void 0!==e.pageIndex?e.pageIndex+1:1,skin1ColorObj:{isSelectColor:!1,progressTrackColor:"#e5e9f2",progressColor:"#20a0ff",buttonBackgroundColor:T.Z.getters.isFlipPro?"#44B986":"#3e89e4",playAndPauseIconColor:"#ffffff"},skin0ColorObj:{isSelectColor:!1,controlIconColor:"#081A2E",buttonBackgroundColor:"#f5f5f5",progressRunwayColor:T.Z.getters.isFlipPro?"#44b986":"#4697cc"},audioIsPlaying:!1,musicType:2,createTime:0,update:{progressBar:[{progressBarSize:"1685429337651"}]},qrcodeGap:15,isMusicQRCodeImg:!1,qrcodeForeground:"rgba(0, 0, 0, 1)",qrcodeBackground:"rgba(255, 255, 255, 1)",playInSequence:!1,isPlayed:!1,musicScale:{x:1,y:1},isSingleControl:!1,controlSize:{singleW:50,singleH:50,multipleW:146,multipleH:50},controlColorList:[{hasGradient:!0,gradient:{},color:"#e2e2e3"}]},e)}}class A extends c.Z{constructor(e={}){super({type:"pluginVideo",name:"视频播放控件",style:{width:.4,height:.4},fileName:"",videoHeight:0,videoWidth:0,thumbUrlFileName:"",thumbUrl:"",thumbUrlIsNewFile:"",isPauseBgSoundWhenPlay:!0,defaultPosterUrl:"",defaultPosterFilename:"",defaultPosterUrlIsNewFile:!1,isBGI:!1,isNewFile:!1,videoTimer:null,isUpload:!1,isAdjustable:!1,isLoop:!1,mutePlay:!1,moviePlayTriggerEvt:"none",movieStopTriggerEvt:"EVT_PageOffView",generalCode:"",videoLink:"",pluginVideoType:0,videoInfo:{name:"",duration:0,delay:0,url:"",startTime:0,originDuration:0,endTime:0,repeatTime:1,volume:1,isLockedRepeat:!0,fadeIn:0,fadeOut:0},youTubeId:"",vimeoId:"",playerType:2,qrcodeGap:15,isVideoQRCodeImg:!1,qrcodeForeground:"rgba(0, 0, 0, 1)",qrcodeBackground:"rgba(255, 255, 255, 1)"},e)}}class _ extends c.Z{constructor(e){"folder"===e.type&&(e.type="component",e.isOpenComponent=e.isOpenFolder),super({type:"component",name:"组件",isOpenComponent:!0,style:{width:"0px",height:"0px",left:"0px",top:"0px"}},e)}}class W extends c.Z{constructor(e){super({type:"button",itemIndex:"",buttonFont:{fontSize:"14px",fontWeight:400,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:"0px",color:"#000000",fontFamily:"Arial",fontStyle:"normal",textDecoration:"none",padding:"0 10px",isNewFile:!1,uploadedFontName:"",uploadFontUrl:"",isUploadedFont:!1,isSystemFont:!1},buttonText:"主要按钮",buttonTextEdit:!1,style:{width:"102px",height:"28px"},buttonIcon:{isShowIconEdit:!0,iconType:"font",iconHref:"el-icon-platform-eleme",isNewFile:!1,fontSize:"20px",color:"#ffffff",iconSite:"left"},buttonBackground:{display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(360deg,#FF9A9E 0%,#FECFEF 100%)",hoverColor:"#000000",clickColor:"#1663C7",hasgradient:!0,gradient:{},borderStyle:"none",borderWidth:"1px",borderColor:"",showBorderRadius:!0,keepRatio:!0,borderTopLeftRadius:"16px",borderTopRightRadius:"16px",borderBottomLeftRadius:"16px",borderBottomRightRadius:"16px"},isPhoneButton:!1,isShowTextEdit:!0},e)}}class F extends c.Z{constructor(e){super({type:"swiper",style:{width:.4,height:.2},swiperOpts:{sliderBgColor:"rgba(0,0,0,0)",sliderFill:[],nodeUpdate:0,delayTime:3,parallaxBackgroundImage:{url:"",name:"",isNewFile:!1,uid:""},...F.returnConfig(e.swiperType)}},e)}static returnConfig(e){switch(e){case"Drawer":case"Interval":case"SimpleSlider":case"Carousel":case"Fold":return new O;case"Grid":return new B;case"Scroll":return new Z;case"Flip":return new z;case"Coverflow":return new H;case"Fade":return new N;case"Cube":return new G;case"Cards":return new D;case"Thumbs":return new V;default:return new R}}}class O{constructor(){(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"zoom",!1),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"addPagination",!1),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"addScrollbar",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class B{constructor(){(0,f.Z)(this,"spaceBetween",10),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"slidesPerView",2),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"freeMode",!1),(0,f.Z)(this,"addChangeBtn",!1),(0,f.Z)(this,"changeBtnColor","#eee"),(0,f.Z)(this,"mousewheel",!0),(0,f.Z)(this,"addScrollbar",!1),(0,f.Z)(this,"addPagination",!1),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class Z{constructor(){(0,f.Z)(this,"parallax",!1)}}class H{constructor(){(0,f.Z)(this,"slidesPerView",3),(0,f.Z)(this,"centeredSlides",!1),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"zoom",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class N{constructor(){(0,f.Z)(this,"zoom",!1),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"direction",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"addPagination",!1),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"mousewheel",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class z{constructor(){(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"direction",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"addPagination",!1),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"mousewheel",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class R{constructor(){(0,f.Z)(this,"spaceBetween",10),(0,f.Z)(this,"zoom",!1),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"slidesPerView",1),(0,f.Z)(this,"direction",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"centeredSlides",!1),(0,f.Z)(this,"freeMode",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"addChangeBtn",!0),(0,f.Z)(this,"changeBtnColor","#eee"),(0,f.Z)(this,"mousewheel",!1),(0,f.Z)(this,"addScrollbar",!1),(0,f.Z)(this,"addPagination",!0),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class V{constructor(){(0,f.Z)(this,"spaceBetween",10),(0,f.Z)(this,"zoom",!1),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"slidesPerView",1),(0,f.Z)(this,"direction",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"centeredSlides",!1),(0,f.Z)(this,"freeMode",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"addChangeBtn",!0),(0,f.Z)(this,"changeBtnColor","#eee"),(0,f.Z)(this,"mousewheel",!1),(0,f.Z)(this,"addScrollbar",!1),(0,f.Z)(this,"addPagination",!0),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"thumbs",!0),(0,f.Z)(this,"parallax",!1)}}class D{constructor(){(0,f.Z)(this,"zoom",!1),(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"direction",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"addPagination",!1),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"mousewheel",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class G{constructor(){(0,f.Z)(this,"autoplay",!1),(0,f.Z)(this,"grabCursor",!1),(0,f.Z)(this,"loop",!1),(0,f.Z)(this,"addPagination",!1),(0,f.Z)(this,"paginationColor","#eee"),(0,f.Z)(this,"paginationTextColor","#eee"),(0,f.Z)(this,"dynamicBullets",!1),(0,f.Z)(this,"fraction",!1),(0,f.Z)(this,"renderBullet",!1),(0,f.Z)(this,"mousewheel",!1),(0,f.Z)(this,"keyboard",!1),(0,f.Z)(this,"rightToLeft",!1),(0,f.Z)(this,"parallax",!1)}}class Y extends c.Z{constructor(e){super({type:"iframe",name:"iframe",style:{width:"540px",height:"360px"},iframeItemInfo:{urlHead:"https://",url:"",isHasUrlParams:!0,urlParams:"",embedCode:"",selectType:1}},e)}}var j=i(5411);class U extends c.Z{constructor(e){super({name:"表格",type:"table",style:{width:.4*c.Z.pageOriginalWidth+"px",height:.4*c.Z.pageOriginalWidth/1.5+"px"},border:!0,rows:3,columns:3,borderStyle:{borderWidth:1,borderColor:"#333333"},bgColor:"#FFFFFF",contenteditable:!0,innerTextStyle:{opacity:1,lineHeight:1.28,letterSpacing:"0px",fontSize:"12px",fontFamily:"Hero",color:"#000000",wordSpacing:"-0.1em",textAlign:"left",direction:"ltr",textIndent:"",writingMode:"",textOrientation:""},tableList:U.initTable(e.rows,e.columns,Math.floor(.4*c.Z.pageOriginalWidth),Math.floor(.4*c.Z.pageOriginalWidth/1.5))},e)}static initTable(e,t,i,s){let n=Array.from(new Array(e),(()=>new Array(t))),o=i/t,r=s/e;for(let i=0;i{t.includes(i)&&delete e[i]})),this.innerStyles=e}}class ie extends te{constructor(e){super(e),(0,f.Z)(this,"tag","SPAN"),(0,f.Z)(this,"content",""),(0,f.Z)(this,"name",""),(0,f.Z)(this,"row",1),(0,f.Z)(this,"iconFont",{path:"",viewbox:""}),this.content=e.content,this.name=this.content.slice(0,10),this.tag="SPAN",this.iconFont=e.iconFont,this.row=e.row}}class se extends te{constructor(e){super(e)}}class ne{toFH5Key(e){return this[e]}toEditorKey(e){let t=Object.keys(this);for(let i of t)if(this[i]===e)return i}}var oe=i(5630),re=i(7134);function ae(e,t){return e.map(((e,i)=>{const s=new oe.I(e||{});if(e&&void 0!==e.insertPageLink){const n=T.Z.getters.isYZPro;n||(s.totalTime=2.5),n&&(s.totalTime=s.totalTime?s.totalTime:2.5),void 0===e.items&&(e.items=[]);const{t:o,l:r}=function({pageIndex:e,insertPage:t}){const i=window.flipHtml5_pages,s="../",n=[];if(Array.isArray(i)){const t=i[e];if(t){const e=void 0!==t.normalSize,i=s+t.t;let n="";const o="";if(e){const e=t.normalSize.length>=2?t.normalSize[1]:t.normalSize[0];n=i.replace(/_\d*?\./,`_${e}.`)}else n=s+t.l;return{l:n,t:i,s:o}}}if(t&&void 0!==t.l)return{l:s+t.l,t:s+t.t};return n}({pageIndex:i,insertPage:e.insertPage});s.backgroundImage=r,s.thumbImg=o;const a=e.insertPageLink,l=[];a.forEach(((e,i)=>{S.Z.isEmptyObject(e)||(e.isInverse&&(e=function(e,t){const i=JSON.parse(JSON.stringify(e)),s=i.location;let n=function(e,t,i,s){let n=function(e,t,i,s){let n=0,o=0,r=0,a=0,l=i/e;return e/t>i/s?ei/s?(n=i,o=t*l,r=0,a=(s-o)/2):(l=s/t,o=s,n=e*l,r=(i-n)/2,a=0),{scale:n/e,width:n,height:o,left:r,top:a}}(e,t,i,s);return{scale:n.scale,width:n.width/i,height:n.height/s,left:n.left/i,top:n.top/s}}(s.pageWidth,s.pageHeight,t.pageWidth,t.pageHeight));let o=(1-n.width)/2,r=(1-n.height)/2;return i.location.x=i.location.x*n.width+o,i.location.y=i.location.y*n.height+r,i.location.width=i.location.width*n.width,i.location.height=i.location.height*n.height,i}(e,t)),l.push(function({item:e,pageWidth:t,pageHeight:i}){let s=e.annotype,n={},o={};(function({item:e}){return void 0!==e.location&&!isNaN(e.location.width)})({item:e})&&(o=function({item:e,pageWidth:t,pageHeight:i}){let s=e.location,n=t*parseFloat(s.x),o=i*parseFloat(s.y),r=t*parseFloat(s.width),a=i*parseFloat(s.height);a<0&&(a=Math.abs(a),o-=a);r<0&&(r=Math.abs(r),n-=r);let l=parseFloat(s.rotation);if(void 0!==s.rotation&&0!==l){let e=n+r/2,t=o+a/2,{x:i,y:s}=c.Z.getRotateXY({x:e,y:t,x0:n,y0:o,deg:l});n=i-r/2,o=s-a/2}let d=null;void 0!==s.tannoName&&""!==s.tannoName&&(d=s.tannoName);return Object.assign({style:{width:r+"px",height:a+"px",top:o+"px",left:n+"px"},rotate:l},d?{name:d}:{})}({item:e,pageWidth:t,pageHeight:i}),void 0===o.id&&(o.id=S.Z.getUniqueId()));let r=function({item:e}){let t=[],i=function(e={}){let t={event:"click",isShowAddSelect:!1,isShowAddShowOrHide:!1,isExpanded:!0,linkList:{},openPage:{},phone:{},iframe:{},popupImg:{},popupMsg:{},popupVideo:{},playAudio:{},runJavaScript:{},showOrHideList:[],animationList:[],showArticle:{},addWechat:{},attachmentFile:{},comment:{},zoomArea:{},quiz:{}};return S.Z.deepAssign(t,e)}(),s=e.action,n=e.annotype,o=!0;if(void 0!==s)switch(s.actionType){case le.openPage:i.openPage={type:"openPage",page:Number(s.pageIndex)},i.event=ce(s.triggerEventType);break;case le.openUrl:{const e=s.url,t=-1!==e.indexOf("mailto:"),o=-1!==e.indexOf("tel:");if(t)i.linkList={type:"link",urlHead:"mailto:",url:e.replace(/^mailto:[/]*/,""),originEmail:e.replace(/^mailto:[/]*/,""),originUrl:"",target:0,isHasUrlParams:!1},i.event=ce(s.triggerEventType);else if(o)i.phone={type:"phone",phoneNumber:e.replace(/^tel:[/]*/,"")},i.event=ce(s.triggerEventType);else{if(n===de.link){let e="http://",t=s.url;if(t.search(/^http/)>-1){let i=t.split("://");t=i[1],e=i[0]+"://"}t.search(/^\/\//)>-1&&(t=t.replace(/^\/\//g,"")),i.linkList={type:"link",urlHead:e,url:t,originEmail:"",originUrl:t,target:0,isHasUrlParams:!1},i.event=ce(s.triggerEventType)}if(n===de.image){let e=s.url.match(/\d+/g);i.phone={type:"phone",phoneNumber:e?e[0]:""},i.event=ce(s.triggerEventType)}}break}case le.showArticle:i.showArticle=s.articleConfig;break;default:o=!1}o&&t.push(i);return t}({item:e});switch(s){case"com.mobiano.flipbook.pageeditor.TAnnoLink":{let t=o.style?o.style:{};void 0!==e.LinkDownColor?(e.downAlpha=e.LinkAlpha?e.LinkAlpha:.6,e.overAlpha=e.downAlpha/2,e.outAlpha=0,t.clickColor=e.LinkDownColor?re.Z.colorToRgba(e.LinkDownColor,e.downAlpha):re.Z.colorToRgba("#808080",.6),t.hoverColor=re.Z.colorToRgba(e.overColor,e.overAlpha),t.background=re.Z.colorToRgba(e.outColor,e.outAlpha)):e.downColor&&(t.clickColor=re.Z.colorToRgba(e.downColor,e.downAlpha),t.hoverColor=re.Z.colorToRgba(e.overColor,e.overAlpha),t.background=re.Z.colorToRgba(e.outColor,e.outAlpha)),o.isInverse=!!e.isInverse&&e.isInverse,n=new k({...o,actionList:r});break}}return n}({item:e,pageWidth:t.pageWidth,pageHeight:t.pageHeight})))})),s.items=[...l,...e.items],delete e.insertPage,delete e.insertPageLink}return s.width=t.pageWidth,s.height=t.pageHeight,s.left=0,s.top=0,s.animeTime=0,s.scale=1,s}))}const le=new class extends ne{constructor(...e){super(...e),(0,f.Z)(this,"openPage","com.mobiano.flipbook.pageeditor.TAnnoActionGotoPage"),(0,f.Z)(this,"openUrl","com.mobiano.flipbook.pageeditor.TAnnoActionOpenURL"),(0,f.Z)(this,"animations","com.mobiano.flipbook.pageeditor.TAnnoActionAnimations"),(0,f.Z)(this,"showArticle","com.mobiano.flipbook.pageeditor.TAnnoActionShowArticle")}},de=new class extends ne{constructor(...e){super(...e),(0,f.Z)(this,"image","com.mobiano.flipbook.pageeditor.TAnnoImage"),(0,f.Z)(this,"link","com.mobiano.flipbook.pageeditor.TAnnoLink"),(0,f.Z)(this,"video",{youtube:"com.mobiano.flipbook.pageeditor.TAnnoYouTube",vimeo:"com.mobiano.flipbook.pageeditor.vimeoPlayer::TAnnoVimeoPlayer"}),(0,f.Z)(this,"audio","com.mobiano.flipbook.pageeditor::TAnnoPlugIn"),(0,f.Z)(this,"text","com.mobiano.flipbook.pageeditor::TAnnoText"),(0,f.Z)(this,"hotSpot","com.mobiano.flipbook.pageeditor.TAnnoHotSpots"),(0,f.Z)(this,"slider",{slider1:"com.mobiano.flipbook.pageeditor.TAnnoEmbeddedSlideshow",slider2:"com.mobiano.flipbook.pageeditor::TAnnoBanner",slider3:"com.mobiano.flipbook.pageeditor.TAnnoAlphaTransitionBanner",slider4:"com.mobiano.flipbook.pageeditor.TAnnoCarouselViewer",slider5:"com.mobiano.flipbook.pageeditor.TAnnoDynamicTurnPhoto",slider6:"com.mobiano.flipbook.pageeditor::TAnnoDynamicShowPhoto",slider7:"com.mobiano.flipbook.pageeditor::TAnnoPlugIn",slider8:"com.mobiano.flipbook.pageeditor::TAnnoPlugIn"})}};function he(e={}){const t=new c.Z({});let i={index:-1,id:0,type:"",name:"",animations:t.animations,animationFiles:t.animationFiles,maskConfig:t.maskConfig,outEraseConfig:t.outEraseConfig,scrawlConfig:t.scrawlConfig,style:{},pathHeight:0,pathWidth:0,rotate:0,existEndTime:-1,existStartTime:-1,isDefault:!1,actIsHidden:!1,showOrHideType:"hide",isActionHideCase:!1,showOrHideIsFirstHide:!1,showOrHideTriggerType:0,hiddenClickable:!1,showOrHideLabel:"",isExpandAnimePanel:!0,isAction:!0,svg:{},gNode:{},items:[]};return S.Z.deepAssign(i,e)}function ce(e){switch(e.toLowerCase()){case"mousedown":case"mouseup":return"click";default:return e}}const ue=function(e){return Object.prototype.hasOwnProperty.call(e,"name")&&Object.prototype.hasOwnProperty.call(e,"svgText")&&Object.prototype.hasOwnProperty.call(e,"textStr")&&""!==e.svgText.svgCode&&""!==e.svgText.viewBox};var pe=i(8501),me=i(7746);let ge=e=>"mask"===e.type&&"svg"===e.props[0].maskType,fe=(e,t)=>{let i=e.pageIndex,s=me.P6.getPageTime(i-1),n=T.Z.state.animeTime[i]-s;if(t){let t=e.animations.in;if(n>=t.delay&&n<=t.delay+t.duration)return!0}else{let t=e.animations.out,i=e.existEndTime;if(n<=i&&n>=i-t.duration)return!0}return!1};var we=i(3441);i(8675),i(3408),i(4590),i(3462),i(1439),i(7585),i(5315);function ye(e,t,i,s){const n=new Float32Array(11);if(e!==t||i!==s)for(let t=0;t<11;++t)n[t]=ve(.1*t,e,i);return function(o){return e===t&&i===s?o:0===o?0:1===o?1:ve(function(t){let s=0,o=1;for(;10!==o&&n[o]<=t;++o)s+=.1;--o;const r=(t-n[o])/(n[o+1]-n[o]),a=s+.1*r,l=xe(a,e,i);return l>=.001?function(e,t,i,s){for(let n=0;n<4;++n){const n=xe(t,i,s);if(0===n)return t;t-=(ve(t,i,s)-e)/n}return t}(t,a,e,i):0===l?a:function(e,t,i,s,n){let o,r,a=0;do{r=t+(i-t)/2,o=ve(r,s,n)-e,o>0?i=r:t=r}while(Math.abs(o)>1e-7&&++a<10);return r}(t,s,s+.1,e,i)}(o),t,s)}}function ve(e,t,i){return(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e}function xe(e,t,i){return 3*(1-3*i+3*t)*e*e+2*(3*i-6*t)*e+3*t}var Ce={checkTarget:function(e){document.querySelector(e)},checkTimePercent:function(e,t){let i=0;e.props.length>1?e.props.forEach(((s,n)=>{"in"===t&&n===e.props.length-1&&void 0!==s.timePercent&&2===e.props.length&&(e.props[0].timePercent=1,delete e.props[1].timePercent),s.timePercent&&(i+=s.timePercent)})):i=1;Math.abs(i-1),Number.EPSILON,Math.pow(2,2)},getPreAnimeStyle:function({item:e,isMiddleAnime:t,middleIndex:i,propsIndex:s,perMiddleAnimeProps:n}){let o=e.animations.middle;if(t){if(0===i)return 0===s?{w:parseFloat(e.style.width),h:parseFloat(e.style.height)}:{w:n[s-1].css.width,h:n[s-1].css.height};{let t=null;for(let s=i-1;s>=0;s--)if("path"===e.animations.middle[s].type){t=s;break}if(0===s){if(null!==t){let e=o[t].props;return{w:e[e.length-1].css.width,h:e[e.length-1].css.height}}return{w:parseFloat(e.style.width),h:parseFloat(e.style.height)}}return{w:n[s-1].css.width,h:n[s-1].css.height}}}for(let e=o.length-1;e>=0;e--){let t=o[e],i=o[e].props.length-1;if("path"===t.type)return{w:t.props[i].css.width,h:t.props[i].css.height}}return{w:parseFloat(e.style.width),h:parseFloat(e.style.height)}},isEmpty:function(e){return null==e||"{}"===JSON.stringify(e)||"[]"===JSON.stringify(e)},checkHasRotatePath:function(){let e=[];this.$store.state.pagePanel.pages.forEach(((t,i)=>{let s=i+1;t.items.forEach(((i,n)=>{let o=t.items.length-n,r=0!==i.rotate;if(r&&"path"===i.animations.in.type){let t={page:"第"+s+"页",itemIndex:"第"+o+"个元素",itemName:i.name,animeType:"in"};e.push(t)}let a=i;if(i.animations.middle.forEach(((t,i)=>{if(r&&"path"===t.type){let t={page:"第"+s+"页",itemIndex:"第"+o+"个元素",itemName:a.name,animeType:"middle第"+(i+1)+"个"};e.push(t)}})),r&&"path"===i.animations.out.type){let t={page:"第"+s+"页",itemIndex:"第"+o+"个元素",itemName:i.name,animeType:"out"};e.push(t)}}))}))},setEase:function(e,t){"default"===e.ease&&e.defaultCutomEase&&0!==e.defaultCutomEase.length&&e.props.forEach(((t,i)=>{e.defaultCutomEase.forEach(((e,s)=>{if(i===s)if(Array.isArray(e)&&0!==e.length){let i=e[0],s=e[1],n=e[2],o=e[3];t.ease=ye(i,s,n,o)}else if(0!==e.length)if("object"==typeof e){if("Back"===e.ease)t.ease=we.eJ[e.easeType].config(e.configNum)}else t.ease=e}))}));"path"===e.type&&"straight"===e.pathType&&e.props.forEach((t=>{t.ease="default"===e.ease?"Power0.easeNone":e.ease}));1===e.duration&&e.defaultDuration&&(e.duration=e.defaultDuration);"SteppedEase"===e.ease&&e.props.forEach((e=>{e.ease=new we.NB(12)}));if(t)return e.props}};function be(e,t){if(Object.keys(e).includes("cycle")){let i=e.cycle;Object.keys(i).forEach((s=>{switch(s){case"strokeDasharray":e.cycle.strokeDasharray=me.fL.getOffset;break;case"strokeDashoffset":e.cycle.strokeDashoffset=me.fL.getOffset;break;case"stroke":e.cycle.stroke=me.fL.getStrokeColor;break;case"strokeWidth":e.cycle.strokeWidth=me.fL.getStrokeWidth;break;case"fill":e.cycle.fill=me.fL.getColor;break;case"waveY":delete i.waveY,e.cycle.y=function(e){return 3*-Math.cos(3.14*e/t)*100+"%"};break;case"waveX":delete i.waveX,e.cycle.x=function(e){return 3*-Math.cos(3.14*e/t)*100+"%"};break;case"bounceDownIn":delete i.bounceDownIn,e.cycle.y=function(){return"-200%"};break;case"bounceUpIn":delete i.bounceUpIn,e.cycle.y=function(){return"200%"};break;case"bounceUpOut":delete i.bounceUpOut,e.cycle.y=function(){return"-200%"};break;case"bounceDownOut":delete i.bounceDownOut,e.cycle.y=function(){return"200%"}}}))}return e}var Ie=i(1100);function Se({item:e,scaleY:t,scaleX:i,toReal:s}){let n="",o="";switch(e.strategy){case"stretch":if("100% 100%"===e.style.backgroundSize||"0px 0px"===e.style.backgroundSize||s)o="100% 100%",n="0 0";else{let s=0,r=0,a=0,l=0,d=S.Z.fetchStrDigit(e.style.backgroundPosition),h=S.Z.fetchStrDigit(e.style.backgroundSize);i?(s=e.cropInfor.originalPx*i,a=e.cropInfor.originalSx*i):(s=d[0],a=h[0]),t?(r=e.cropInfor.originalPy*t,l=e.cropInfor.originalSy*t):(r=d[1],l=h[1]),o=`${a}px ${l}px`,n=`${s}px ${r}px`}break;case"tile":{let t=T.Z.state.pageConfig.originPageWidth,i=e.originalWidth>.4*t?.4*t:e.originalWidth;o=`${i}px ${i*e.originalHeight/e.originalWidth}px`,n="0 0"}break;case"contain":o="contain",n="center";break;case"cover":n=function({item:e}){let t,i,s,n,o,r=parseFloat(e.style.width),a=parseFloat(e.style.height),l=parseFloat(e.originalWidth),d=parseFloat(e.originalHeight);r/a>l/d?(o=r/l,t=r,i=d*o,s=0,n=-(i-a)/2):(o=a/d,i=a,t=l*o,n=0,s=-(t-r)/2);return t+="px",i+="px",s+="px",n+="px",{backgroundPosition:`${s} ${n}`}}({item:e}).backgroundPosition,o="cover"}return e.strategy||(n=e.style.backgroundPosition,o=e.style.backgroundSize),{backgroundPosition:n,backgroundSize:o}}function Pe(e){let t=(e[0]+e[3])/2,i=(e[0]-e[3])/2,s=(e[2]+e[1])/2,n=(e[2]-e[1])/2,o=Math.sqrt(t*t+n*n),r=Math.sqrt(i*i+s*s),a=o+r,l=o-r,d=Math.atan2(s,i),h=Math.atan2(n,t),c=(h+d)/2,u=180*-((h-d)/2)/Math.PI,p=[a,l],m=180*-c/Math.PI;return{translate:[e[4],e[5]],rotate:m,scale:p,skew:u}}function Te(e,t){var i=Math.pow(10,t);return parseInt(e*i,10)/i}function $e(e){let t=e*Math.PI/180;return Te(Math.sin(t),12)}function ke(e){let t=e*Math.PI/180;return Te(Math.cos(t),12)}function Le(e){let t=e*Math.PI/180;return Te(Math.tan(t),12)}function Me(e,t,i){let s=e.length>t.length?e:t,n=e.length>t.length?t:e,o=[];for(let e=0;e{let t=document.querySelector(`#realSvgDom${e.id}`).querySelectorAll("path"),i=[];if(t&&0!==t.length)t=Array.from(t),t=function(e){let t=[],i=e.length;if(i<50)t=e.slice(0,50);else{let s=0,n=i-1,o=(i-2)/48;t.push(e[s]);for(let i=0;i<48;i++){let s=Math.round(o*(i+1));t.push(e[s])}t.push(e[n])}return t}(t),t.forEach((t=>{let s=0,n=[],o=(t,i)=>{if("SVG"!==t.tagName.toUpperCase()&&t.id!==`realSvgDom${e.id}`){let e=window.getComputedStyle(t).transform,r={};if(r="none"===e?new Ee:new Ee(e),i){let e=Pe([r.a,r.b,r.c,r.d,r.e,r.f]);s=e.rotate+e.skew+s}n.push(r),o(t.parentNode,!0)}};o(t,!1);let r=(e=>{let t=e.length,i=e[0];for(let s=1;s=2?d.match(/(M\s?\d+.*?)(M|m)/)[1]:d,t.match(/(Z|z)/g);let i=function(e){let t={},i=0,s=[];return e.forEach(((n,o)=>{if(o===i)if(" MCSQTLHVAZ".indexOf(n)>=0)if("H"===n)s.push(n),t.x=Number(e[o+1]),s.push(Number(e[o+1])),i=o+2;else if("V"===n)s.push(n),t.y=Number(e[o+1]),s.push(Number(e[o+1])),i=o+2;else if("A"===n){let r=0;s.push(n);do{r++,r%7==1||r%7==2?s.push(Number(e[o+r])):r%7==6?(t.x=Number(e[o+r]),s.push(Number(e[o+r]))):r%7==0?(t.y=Number(e[o+r]),s.push(Number(e[o+r]))):s.push(Number(e[o+r]))}while(!isNaN(Number(e[o+r+1])));i=o+r+1}else if(" SQ".indexOf(n)>=0){let r=0;s.push(n);do{r++,r%4==1||r%4==2?s.push(Number(e[o+r])):r%4==3?(s.push(Number(e[o+r])),t.x=Number(e[o+r])):r%4==0&&(s.push(Number(e[o+r])),t.y=Number(e[o+r]))}while(!isNaN(Number(e[o+r+1])));i=o+r+1}else if(" MCTL".indexOf(n)>=0)if(" ML".indexOf(n)>=0){let r=0;s.push(n);do{r++,r%2==1?(s.push(Number(e[o+r])),t.x=Number(e[o+r])):(s.push(Number(e[o+r])),t.y=Number(e[o+r]),isNaN(Number(e[r+o+1]))||s.push("L"))}while(!isNaN(Number(e[r+o+1])));i=o+r+1}else{let r=0;s.push(n);do{r++,r%6==5?t.x=Number(e[o+r]):r%6==0&&(t.y=Number(e[o+r])),s.push(Number(e[o+r]))}while(!isNaN(Number(e[r+o+1])));i=o+r+1}else"Z"===n&&(s.push(n),i=o+1);else if(" mcsqtlhvaz".indexOf(n)>=0)if("h"===n)s.push("H"),s.push(t.x+Number(e[o+1])),t.x=t.x+Number(e[o+1]),i=o+2;else if("v"===n)s.push("V"),s.push(t.y+Number(e[o+1])),t.y=t.y+Number(e[o+1]),i=o+2;else if("a"===n){let n=0;s.push("A");do{if(n++,n%7==1)s.push(Number(e[o+n]));else if(n%7==2)s.push(Number(e[o+n]));else if(n%7==6){let i=Number(t.x)+Number(e[o+n]);s.push(i),t.x=i}else if(n%7==0){let i=Number(t.y)+Number(e[o+n]);s.push(i),t.y=i}else s.push(Number(e[o+n]))}while(!isNaN(Number(e[o+n+1])));i=o+n+1}else if(" sq".indexOf(n)>=0){let r=0;s.push(n.toUpperCase());do{if(r++,r%4==1)s.push(Number(t.x)+Number(e[o+r]));else if(r%4==2)s.push(Number(t.y)+Number(e[o+r]));else if(r%4==3){let i=Number(t.x)+Number(e[o+r]);s.push(i),t.x=i}else if(r%4==0){let i=Number(t.y)+Number(e[o+r]);s.push(i),t.y=i}}while(!isNaN(Number(e[o+r+1])));i=o+r+1}else if(" mctl".indexOf(n)>=0)if(" ml".indexOf(n)>=0){let r=0;s.push(n.toUpperCase());do{if(r++,r%2==1){let i=Number(t.x)+Number(e[o+r]);s.push(i),t.x=i}else if(r%2==0){let i=Number(t.y)+Number(e[o+r]);s.push(i),t.y=i,isNaN(Number(e[r+o+1]))||s.push("L")}}while(!isNaN(Number(e[r+o+1])));i=o+r+1}else if("t"===n){let r=0;s.push(n.toUpperCase());do{if(r++,r%2==1){let i=Number(t.x)+Number(e[o+r]);s.push(i),t.x=i}else if(r%2==0){let i=Number(t.y)+Number(e[o+r]);s.push(i),t.y=i}}while(!isNaN(Number(e[r+o+1])));i=o+r+1}else{let r=0;s.push(n.toUpperCase());do{if(r++,r%6==1)s.push(Number(t.x)+Number(e[o+r]));else if(r%6==2)s.push(Number(t.y)+Number(e[o+r]));else if(r%6==3)s.push(Number(t.x)+Number(e[o+r]));else if(r%6==4)s.push(Number(t.y)+Number(e[o+r]));else if(r%6==5){let i=Number(t.x)+Number(e[o+r]);s.push(i),t.x=i}else if(r%6==0){let i=Number(t.y)+Number(e[o+r]);s.push(i),t.y=i}}while(!isNaN(Number(e[r+o+1])));i=o+r+1}else"z"===n&&(s.push(n.toUpperCase()),i=o+1)})),s}(t.match(/-?\d*\.\d+(e-?\d+)*|-?\d+|[a-zA-Z]/g)).join().replace(/,/g," ");a.path=i}catch(t){let i=function({item:e}){let t=e.pathViewBox.match(/\d+\.\d+|\d+/g)[2];return`M${t/2},${e.pathViewBox.match(/\d+\.\d+|\d+/g)[3]/2}H${(2+Number(t))/2}Z`}({item:e});a.path=i}i.push(a)}));else{let t=function({item:e}){let t=e.pathViewBox.match(/\d+\.\d+|\d+/g)[2],i=e.pathViewBox.match(/\d+\.\d+|\d+/g)[3],s=t/4,n=i/5,o=`M${s},${2*n}H${3*s}`,r=`M${s},${i/2}H${3*s}`,a=`M${s},${3*n}H${3*s}`,l=[];return l.push(o,r,a),l}({item:e});t.forEach((e=>{let t={path:e,matrix:[1,0,0,0,1,0,0,0,1],scaleX:1,scaleY:1,rotate:0};i.push(t)}))}return i};function Fe({item:e,afterMatrixValues:t,viewScale:i}){let s=e,n=i,o=parseFloat(s.style.width),r=parseFloat(s.style.height),a=e.rotate,l=e.gNode.transform.match(/scale\(.*?\)/)[0],d=l.indexOf("("),h=l.indexOf(")"),c=l.indexOf(","),u=Number(l.substring(d+1,c)),p=Number(l.substring(c+1,h)),m=s.pathViewBox.match(/\d+\.\d+|\d+/g)[2]/(o*n),g=s.pathViewBox.match(/\d+\.\d+|\d+/g)[3]/(r*n),f=o*n/2,w=r*n/2,y=t[0]*u/m-f,v=w-t[1]*p/g;return{panToOriginX:y*ke(360-a)-v*$e(360-a)+f,panToOriginY:w-(y*$e(360-a)+v*ke(360-a))}}function Oe(e,t,i){let s=Le(i),n=(e+2*t*s-e*s*s)/(s*s+1);return{flipX:n,flipY:s*(n+e)-t}}function Be(e,t,i){let s=Le(i);s=-1/s;let n=(e+2*t*s-e*s*s)/(s*s+1);return{flipX:n,flipY:s*(n+e)-t}}function Ze(e,t,i){let s=-(e.panToOriginX-t)+t,n=i-(i-e.panToOriginY);return e.panToOriginX=s,e.panToOriginY=n,e}function He(e,t,i){let s=e.panToOriginX-t+t,n=i- -(i-e.panToOriginY);return e.panToOriginX=s,e.panToOriginY=n,e}function Ne(e,t,i,s){let n=Be(e.panToOriginX-t,i-e.panToOriginY,90-s),o=n.flipX+t,r=i-n.flipY;return e.panToOriginX=o,e.panToOriginY=r,e}function ze(e,t,i,s){let n=Oe(e.panToOriginX-t,i-e.panToOriginY,90-s),o=n.flipX+t,r=i-n.flipY;return e.panToOriginX=o,e.panToOriginY=r,e}function Re({item:e,durArr:t,lenArr:i,handPaintedTimeline:s}){for(let n=0;nt?t:e;for(let i=0;it?(a>d&&(r=a-d,a=d),n>e&&(o=o+n-e,n=e)):t>e&&(n>d&&(o=n-d,n=d),a>t&&(r=r+a-t,a=t)),s.push([n,o,r,a]);if(e>=t)do{ne&&(o=n-e+o,n=e),s.push([n,o,r,a])):(o+=l,r+=l,o>t&&(o=t),r>e&&(r=e),s.push([n,o,r,a]))}while(o<=t-1);else if(t>e)do{at&&(r=a-t+r,a=t),s.push([n,o,r,a])):(o+=l,r+=l,o>t&&(o=t),r>e&&(r=e),s.push([n,o,r,a]))}while(r<=e-1);let h=[];s.forEach(((e,t)=>{t%2==0?h.push(e):h.push([e[2],e[3],e[0],e[1]])}));let c="M0,0";h.forEach((e=>{c+=` L${e[0]},${e[1]} L${e[2]},${e[3]}`}));let u=[];s.forEach((e=>{u.push(Math.sqrt(Math.pow(e[0]-e[2],2)+Math.pow(e[1]-e[3],2))+l)}));let p=0;u.forEach((e=>{p+=e}));let m=[];return u.forEach((e=>{m.push(e/p)})),{scrawlPath:c,avgSegmentTime:m}}function Ye({pointX:e,pointY:t,centerPointX:i,centerPointY:s,itemRotate:n}){let o=Be({x:e-i,y:s-t,deg:90-n});return{panToOriginX:o.flipX+i,panToOriginY:s-o.flipY}}function je({pointX:e,pointY:t,centerPointX:i,centerPointY:s,itemRotate:n}){let o=Oe({x:e-i,y:s-t,deg:90-n});return{panToOriginX:o.flipX+i,panToOriginY:s-o.flipY}}function Ue({item:e,pointX:t,pointY:i,selfRotate:s,viewScale:n}){let o=n,r=parseFloat(e.style.width)*o/2,a=parseFloat(e.style.height)*o/2,l=e.rotate;void 0!==s&&(l=s);let d=t-r,h=a-i;return{panToOriginX:d*ke(360-l)-h*$e(360-l)+r,panToOriginY:a-(d*$e(360-l)+h*ke(360-l))}}function Xe({width:e,height:t,segment:i}){let s=[],n=0,o=0,r=0,a=0,l=(e+t)/i,d=e>t?t:e;for(let i=0;it?(a>d&&(r=a-d,a=d),n>e&&(o=o+n-e,n=e)):t>e&&(n>d&&(o=n-d,n=d),a>t&&(r=r+a-t,a=t)),s.push([n,o,r,a]);if(e>=t)do{ne&&(o=n-e+o,n=e),s.push([n,o,r,a])):(o+=l,r+=l,o>t&&(o=t),r>e&&(r=e),s.push([n,o,r,a]))}while(o<=t-1);else if(t>e)do{at&&(r=a-t+r,a=t),s.push([n,o,r,a])):(o+=l,r+=l,o>t&&(o=t),r>e&&(r=e),s.push([n,o,r,a]))}while(r<=e-1);let h=[];s.forEach(((e,t)=>{t%2==0?h.push(e):h.push([e[2],e[3],e[0],e[1]])}));let c="M0,0";h.forEach((e=>{c+=` L${e[0]},${e[1]} L${e[2]},${e[3]}`}));let u=[];s.forEach((e=>{u.push(Math.sqrt(Math.pow(e[0]-e[2],2)+Math.pow(e[1]-e[3],2))+l)}));let p=0;u.forEach((e=>{p+=e}));let m=[];return u.forEach((e=>{m.push(e/p)})),{scrawlPath:c,avgSegmentTime:m}}let qe=e=>{let t=e.animations.middle;for(let e=t.length-1;e>=0;e--){let i=t[e];if("path"===i.type){let e=i.props,t=e[e.length-1].css;return{left:t.left,top:t.top,width:t.width,height:t.height,rotate:parseFloat(t.rotation)}}}return{left:parseFloat(e.style.left),top:parseFloat(e.style.top),width:parseFloat(e.style.width),height:parseFloat(e.style.height),rotate:e.rotate}};let Qe={setInBasicAnime:function({item:e,inTimeline:t,target:i}){let s=e.animations.in,n=s.props.length,o=s.noFaded,r=s.isRemainOrigin;if(Ce.checkTimePercent(s,"in"),n>1){let e=0;s.props.forEach(((r,a)=>{void 0!==r.css.opacity||o||(r.css.opacity=1*e),e+=r.timePercent,0===a?t.fromTo(i,s.duration*r.timePercent,r,s.props[a+1]):a!==n-1&&(o&&s.props[a+1].css&&delete s.props[a+1].css.opacity,t.to(i,s.duration*r.timePercent,s.props[a+1]))}))}else o&&s.props[0].css&&delete s.props[0].css.opacity,t.from(i,s.duration,s.props[0],"in");t.eventCallback("onComplete",(()=>{r||t.set(i,{transformOrigin:"center"})}),["{self}"])},setInTextAnime:function({item:e,inTimeline:t}){let i=e.animations.in,s=i.props.length,n=e,o=n.svgText.pathCount,r=n.id,a=Array.from({length:o},((e,t)=>`#pathAnime${r}${t}`));const l=T.Z.getters.isYZPro,d=T.Z.getters.isH5Pro;if((l||d)&&n.positionText.length>0){a=[];for(let e=0;e0&&t.forEach(((t,i)=>{a.push(`.text_anime_${n.id}_${e}_${i}`)}))}o=a.length}let h=i.advanced.interval,c=i.duration;0===h||(c/=(o+1/h-1)*h),h*=c;let u=be(S.Z.copy(i.props[0],!0),o);if(void 0!==u.cycle&&delete u.css,s>1){let e=be(S.Z.copy(i.props[1],!0));if(0===i.name.indexOf("笔画进入2")){t.staggerFromTo(a,c,u,e,h);let s=be(S.Z.copy(i.props[2],!0));s.immediateRender=!1,t.staggerTo(a,0,s)}else if(0===i.name.indexOf("笔画进入1")){t.staggerFromTo(a,c,u,e,h,0);let s=be(S.Z.copy(i.props[2],!0));s.immediateRender=!1,t.staggerTo(a,0,s,h,c)}else t.staggerFromTo(a,c,u,e,h,"in")}else u.ease=Ce.setEase(i,!0)[0].ease,t.staggerFrom(a,c,u,h,"in")},setInMusicAnime:function({item:e,inTimeline:t,target:i}){let s=T.Z.state.noControl,n=e.animations.in,o=e.audioInfo,r=o.startTime,a=o.endTime-r,l=e.animations.in.duration,d=Math.ceil(l/a),h=document.querySelector(`#audio${e.pageIndex}${e.id}`),c=o.fadeIn,u=o.fadeOut,p=o.volume;for(let m=0;m{if(clearTimeout(e.audioTimer),h){let t=T.Z.state.isPlayingAnime[e.pageIndex];h.currentTime=r,t&&(h.volume=o.volume,h.play())}})),d.eventCallback("onUpdate",(t=>{let i=t.progress();i>v&&i1?1:p,h=document.querySelector(`#audio${e.pageIndex}${e.id}`),h&&(h.volume=p)),i>I&&i1?1:p,h=document.querySelector(`#audio${e.pageIndex}${e.id}`),h&&(h.volume=p))}),["{self}"]),d.eventCallback("onComplete",(()=>{s||(h.pause(),clearTimeout(e.audioTimer))})),t.add(d,g)}},setInPathAnime:function({item:e,itemLayoutTarget:t,inTimeline:i,target:s}){let n=e.animations.in,o=n.noFaded;"default"!==n.ease&&""!==n.ease||(n.ease="Power0.easeNone"),"default"!==n.easeFn&&""!==n.easeFn||(n.easeFn="Power0.easeNone");let r=()=>{let t=parseFloat(n.props[0].css.width),s=parseFloat(e.style.width),o=parseFloat(n.props[0].css.height),r=parseFloat(e.style.height);i.eventCallback("onUpdate",(i=>{let n=t+(s-t)*i.progress();e.pathWidth=n;let a=o+(r-o)*i.progress();e.pathHeight=a;let l=n/s,d=a/r;if("svg"===e.type){let t=me.l3.getPathSvg({item:e,scaleX:l,scaleY:d,direction:"both"});e.pathTransform=t.transform,e.pathViewBox=t.viewBox}else if("image"===e.type){let t=Se({item:e,scaleY:d,scaleX:l});e.pathBackgroundSize=t.backgroundSize,e.pathBackgroundPosition=t.backgroundPosition}}),["{self}"])},a=({fromProps:e,toProps:t,groupInTimeline:i,groupItem:s})=>{let n=parseFloat(e.css.width),o=parseFloat(t.css.width),r=parseFloat(e.css.height),a=parseFloat(t.css.height);i.eventCallback("onUpdate",(e=>{let t=n+(o-n)*e.progress();s.pathWidth=t;let i=r+(a-r)*e.progress();s.pathHeight=i;let l=t/o,d=i/a;if("svg"===s.type){let e=me.l3.getPathSvg({item:s,scaleX:l,scaleY:d,direction:"both"});s.pathTransform=e.transform,s.pathViewBox=e.viewBox}else if("image"===s.type){let e=Se({item:s,scaleY:d,scaleX:l});s.pathBackgroundSize=e.backgroundSize,s.pathBackgroundPosition=e.backgroundPosition}}),["{self}"])};switch(void 0===n.pathType&&(n.pathType="straight"),n.pathType){case"straight":{"group"===e.type&&e.items.forEach((e=>{let t=document.querySelector(`#groupItem${e.id}`);if("path"===e.animations.in.type){let s=new pe.ZP({});"default"===e.animations.in.ease&&(e.animations.in.ease="Power0.easeNone"),"default"===e.animations.in.easeFn&&(e.animations.in.easeFn="Power0.easeNone");let o={css:{width:parseFloat(e.style.width),height:parseFloat(e.style.height),left:parseFloat(e.style.left),top:parseFloat(e.style.top)},ease:n.ease};e.animations.in.props[0].css.opacity=1,Ce.setEase(e.animations.in);let r=me.P6.copy(e.animations.in.props[0],!0);r.css.x=r.css.left-parseFloat(e.style.left),r.css.y=r.css.top-parseFloat(e.style.top),delete r.css.left,delete r.css.top,delete r.css.rotation;let l=me.P6.copy(o,!0);l.css.x=l.css.left-parseFloat(e.style.left),l.css.y=l.css.top-parseFloat(e.style.top),delete l.css.left,delete l.css.top,s.fromTo(t,n.duration,r,l);let d=e.animations.in.props[0];a({fromProps:d,toProps:o,groupInTimeline:s,groupItem:e}),i.add(s,"in")}})),d.default.set(n.props[0].css,"opacity",0),"default"!==n.ease&&""!==n.ease||(n.ease="Power0.easeNone"),"default"!==n.easeFn&&""!==n.easeFn||(n.easeFn="Power0.easeNone");let l={css:{rotation:n.props[0].css.rotation},ease:n.ease,immediateRender:!0},h=me.P6.copy(n.props[0],!0);h.css&&(o&&delete h.css.opacity,delete h.css.rotation),h.css.x=h.css.left-parseFloat(e.style.left),h.css.y=h.css.top-parseFloat(e.style.top),"SteppedEase"===n.ease?h.ease=new we.NB(12):h.ease=n.ease,delete h.css.left,delete h.css.top;let c={css:{width:parseFloat(e.style.width),height:parseFloat(e.style.height),x:0,y:0,opacity:e.style.opacity},ease:n.ease};i.fromTo(s,n.duration,h,c,0),"group"===e.type&&(l.css.width=h.css.width,l.css.height=h.css.height),i.from(t,n.duration,l,0),r()}break;case"circle":{"group"===e.type&&e.items.forEach((e=>{let t=document.querySelector(`#groupItem${e.id}`),s=new pe.ZP({}),o={css:{width:e.animations.in.props[0].css.width,height:e.animations.in.props[0].css.height,left:e.animations.in.props[0].css.left,top:e.animations.in.props[0].css.top},ease:n.ease};e.animations.in.ease=n.ease,e.animations.in.easeFn=n.easeFn;let r={css:{width:parseFloat(e.style.width),height:parseFloat(e.style.height),left:parseFloat(e.style.left),top:parseFloat(e.style.top)},ease:n.ease};s.fromTo(t,n.duration,o,r),i.add(s,"in"),a({fromProps:o,toProps:r,groupInTimeline:s,groupItem:e})}));let l=parseFloat(e.style.left),h=parseFloat(e.style.width),c=parseFloat(e.style.top),u=parseFloat(e.style.height),p=n.props[0].css,m=p.width/2,g=p.height/2,f=h/2,w=u/2;if(!n.differData){let e=n.controlPoint.c1[0]-(m+p.left),t=n.controlPoint.c1[1]-(g+p.top);d.default.set(n,"differData",[e,t])}if(!e.differData){let t=e.controlPoint.c1[0]-(l+f),i=e.controlPoint.c1[1]-(c+w);d.default.set(e,"differData",[t,i])}let y=[{x:p.left-l,y:p.top-c,height:p.height,width:p.width,opacity:o?1:0},{x:-n.differData[0]+p.left-l,y:-n.differData[1]+p.top-c,height:p.height,width:p.width,opacity:o?1:0},{x:e.differData[0],y:e.differData[1],height:u,width:h,opacity:1},{x:l-l,y:c-c,height:u,width:h,opacity:1}],v=[{rotation:p.rotation},{rotation:p.rotation},{rotation:e.rotate+"_short"},{rotation:e.rotate+"_short"}];"group"===e.type&&v.forEach(((e,t)=>{0!==t&&1!==t||(e.height=p.height,e.width=p.width),2!==t&&3!==t||(e.height=u,e.width=h)})),i.to(s,n.duration,{bezier:{type:"cubic",values:y},immediateRender:!0,ease:n.ease},0),i.to(t,n.duration,{bezier:{type:"cubic",values:v},immediateRender:!0,ease:n.ease},0),r()}}},setOutTextAnime:function({item:e,outTimeline:t}){let i=e.animations.out,s=e,n=s.svgText.pathCount,o=s.id,r=Array.from({length:n},((e,t)=>`#pathAnime${o}${t}`));const a=T.Z.getters.isYZPro,l=T.Z.getters.isH5Pro;if((a||l)&&s.positionText.length>0){r=[];for(let e=0;e0&&t.forEach(((t,i)=>{r.push(`.text_anime_${s.id}_${e}_${i}`)}))}n=r.length}let d=i.props.length,h=i.advanced.interval,c=i.duration;if(0===i.advanced.interval||(c/=(n+1/i.advanced.interval-1)*i.advanced.interval),h=c*i.advanced.interval,d>1){let e=be(S.Z.copy(i.props[0],!0)),s=be(S.Z.copy(i.props[1],!0));if(e.immediateRender=!1,0===i.name.indexOf("笔画退出2")){let n=be(S.Z.copy(i.props[2],!0));t.staggerTo(r,0,e,0),t.staggerFromTo(r,c,s,n,h,0)}else if(0===i.name.indexOf("笔画退出1")){let n=be(S.Z.copy(i.props[2],!0));s.immediateRender=!1,t.staggerTo(r,0,e,h,0),t.staggerFromTo(r,c,s,n,h,0)}else t.staggerFromTo(r,c,e,s,h)}else{let e=be(S.Z.copy(i.props[0],!0),n);e.ease=Ce.setEase(i,!0)[0].ease,t.staggerTo(r,c,e,h,"out")}},setOutBasicAnime:function({item:e,outTimeline:t,target:i}){let s=e.animations.out,n=s.noFaded;Ce.checkTimePercent(s,"out"),s.props.forEach((e=>{e.timePercent||1!==s.props.length||(e.timePercent=1),n&&e.css&&delete e.css.opacity,delete e.immediateRender,t.to(i,s.duration*e.timePercent,e)})),t.eventCallback("onComplete",(()=>{t.set(i,{transformPerspective:"none"})}),["{self}"])},setSpriteAnime:function({item:e,gifItem:t,singleGifTimeline:i,gifIndex:s}){t.clipInfo&&t.clipInfo.hasClip||d.default.set(t,"clipInfo",{startTime:0,endTime:t.duration,clipDuration:t.duration,hasClip:!1,speedTime:t.duration,timeScaleNum:1});let n=t.clipInfo,o=n.startTime,r={grids:t.grids,url:t.image};0===s&&d.default.set(e,"config",{time:n.startTime,duration:n.speedTime,grids:r.grids,url:r.url,imageUrl:r.url[0],characterId:t.characterId,expressionId:t.expressionId,gifIndex:0});let a=0;if(t.isLoop){let e,i=t.animations.duration;e=n.hasClip?t.clipInfo.clipDuration:t.duration,a=i/e,a=Math.round(10*a)/10-1}else a=0;const l={t:0};if(i.to(l,t.animations.duration,{a:1}),a>=0){const s=Ie.Q3.to(l,t.clipInfo.clipDuration,{t:1,repeat:a});s.eventCallback("onUpdate",(t=>{const i=o+t.time();(parseInt(a)===parseFloat(a)||1!==l.t)&&(e.config.time=i)}),["{self}"]),i.add(s,0)}i.eventCallback("onUpdate",(i=>{if(a<0){let t=i.time()+o;e.config.time=t}e.config.duration=n.speedTime,e.config.grids=r.grids,e.config.url=r.url,e.config.imageUrl=r.url[0],e.config.characterId=t.characterId,e.config.expressionId=t.expressionId,e.config.gifIndex=s}),["{self}"])},setVideoAnime:function({item:e,videoTimeline:t,pageIndex:i}){let s=T.Z.state.noControl,n=e.videoInfo,o=n.startTime,r=n.endTime-o,a=n.duration,l=Math.ceil(a/r),h=document.querySelector(`#video${e.id}`),c={},u=n.fadeIn,p=n.fadeOut,m=n.volume;for(let i=0;i{if(h){if(T.Z.state.isPlayingAnime[e.pageIndex]){h.currentTime=o,clearTimeout(e.videoTimer),h.volume=n.volume;let t=h.play();void 0!==t&&t.then((()=>{d.default.set(e,"isNeedControls",!1)})).catch((()=>{d.default.set(e,"isNeedControls",!0),window.WeixinJSBridge&&window.WeixinJSBridge.invoke("getNetworkType",{},(()=>{h.play()}),!1)}))}}})),l.eventCallback("onUpdate",(t=>{let i=t.progress();i>v&&i1?1:m,h=document.querySelector(`#video${e.id}`),h&&(h.volume=m)),i>I&&i1?1:m,h&&(h.volume=m))}),["{self}"]),l.eventCallback("onComplete",(()=>{if(!s){if(h.currentTime{s.timePercent||1!==e.props.length||(s.timePercent=1),t.to(i,e.duration*s.timePercent,s)})),t.eventCallback("onComplete",(()=>{s||n||t.set(i,{transformOrigin:"center"})}),["{self}"])},setMiddleColorAnime:function({item:e,perMiddleAnime:t,middleTimeline:i}){let s=e.svgText.pathCount;t.props.forEach(((n,o)=>{let r="#pathAnime"+e.id+o;s-1>=o&&i.to(r,t.duration,n,0)}))},setMiddlePathAnime:function({item:e,itemLayoutTarget:t,perMiddleAnime:i,middleTimeline:s,target:n,lastPathData:o,middleIndex:r}){let a=({pathType:e,p0:t,p1:i,p2:s,p3:n})=>{let o=0;if("straight"===e){let e=Math.abs(n[0]-t[0]),i=Math.abs(n[1]-t[1]);o=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))}else{let e=[],r=0,a=0,l=0,d=0;for(let o=.01;o<=1;o+=.01)r=t[0]*Math.pow(1-o,3)+3*i[0]*o*Math.pow(1-o,2)+3*s[0]*Math.pow(o,2)*(1-o)+n[0]*Math.pow(o,3),a=t[1]*Math.pow(1-o,3)+3*i[1]*o*Math.pow(1-o,2)+3*s[1]*Math.pow(o,2)*(1-o)+n[1]*Math.pow(o,3),e.push([r,a]);e.forEach(((t,i)=>{i!==e.length-1&&(l=Math.abs(e[i+1][0]-t[0]),d=Math.abs(e[i+1][1]-t[1]),o+=Math.sqrt(Math.pow(l,2)+Math.pow(d,2)))}))}return o},l=(e,t,i,s)=>({x:e+s/2,y:t+i/2}),h=({pathType:t,copyMidProps:i,perMiddleAnimeProps:s,propsIndex:n,perMiddleAnime:o})=>{let a,d,h,c;if("straight"===t){if(0===r)if(0===n){let t=l(parseFloat(e.style.left),parseFloat(e.style.top),parseFloat(e.style.height),parseFloat(e.style.width));a=[t.x,t.y]}else{let e=s[n-1].css,t=l(e.left,e.top,e.height,e.width);a=[t.x,t.y]}else{let t,i;for(let i=r-1;i>=0;i--)if("path"===e.animations.middle[i].type){t=i;break}if(0===n){if(t){let s=e.animations.middle[t].props,n=s[s.length-1].css;i=l(n.left,n.top,n.height,n.width)}else i=l(parseFloat(e.style.left),parseFloat(e.style.top),parseFloat(e.style.height),parseFloat(e.style.width));a=[i.x,i.y]}else{let e=s[n-1].css,t=l(e.left,e.top,e.height,e.width);a=[t.x,t.y]}}let t=l(i.css.left,i.css.top,i.css.height,i.css.width);return c=[t.x,t.y],{p0:a,p3:c}}if("circle"===t){if(0===r)if(0===n){let t=l(parseFloat(e.style.left),parseFloat(e.style.top),parseFloat(e.style.height),parseFloat(e.style.width)),s=l(i.css.left,i.css.top,i.css.height,i.css.width);a=[t.x,t.y],d=[-e.differData[0]+t.x,-e.differData[1]+t.y],h=[o.differData[0][0]+s.x,o.differData[0][1]+s.y],c=[s.x,s.y]}else{let e=s[n-1].css,t=l(e.left,e.top,e.height,e.width),r=l(i.css.left,i.css.top,i.css.height,i.css.width);a=[t.x,t.y],d=[-o.differData[n-1][0]+t.x,-o.differData[n-1][1]+t.y],h=[o.differData[n][0]+r.x,o.differData[n][1]+r.y],c=[r.x,r.y]}else{let t,u,p,m,g;for(let i=r-1;i>=0;i--)if("path"===e.animations.middle[i].type){t=i;break}if(t?(u=e.animations.middle[t],p=u.props,m=p[p.length-1],g=l(m.css.left,m.css.top,m.css.height,m.css.width),d=[-u.differData[p.length-1][0]+g.x,-u.differData[p.length-1][1]+g.y]):(g=l(parseFloat(e.style.left),parseFloat(e.style.top),parseFloat(e.style.height),parseFloat(e.style.width)),d=[-e.differData[0]+g.x,-e.differData[1]+g.y]),0===n){let e=l(i.css.left,i.css.top,i.css.height,i.css.width);a=[g.x,g.y],h=[o.differData[0][0]+e.x,o.differData[0][1]+e.y],c=[e.x,e.y]}else{let e=s[n-1].css,t=l(e.left,e.top,e.height,e.width),r=l(i.css.left,i.css.top,i.css.height,i.css.width);a=[t.x,t.y],d=[-o.differData[n-1][0]+t.x,-o.differData[n-1][1]+t.y],h=[o.differData[n][0]+r.x,o.differData[n][1]+r.y],c=[r.x,r.y]}}return{p0:a,p1:d,p2:h,p3:c}}},c=(t,i,s,n)=>{let o=Ce.getPreAnimeStyle({item:e,isMiddleAnime:!0,middleIndex:r,propsIndex:s,perMiddleAnimeProps:n}),a=o.w,l=o.h,d=i.css.width,h=i.css.height;t.eventCallback("onUpdate",(t=>{let i=a+(d-a)*t.progress();e.pathWidth=i;let s=l+(h-l)*t.progress();e.pathHeight=s;let n=i/parseFloat(e.style.width),o=s/parseFloat(e.style.height);if("svg"===e.type){let t=me.l3.getPathSvg({item:e,scaleX:n,scaleY:o,direction:"both"});e.pathTransform=t.transform,e.pathViewBox=t.viewBox}else if("image"===e.type){let t=Se({item:e,scaleY:o,scaleX:n});e.pathBackgroundSize=t.backgroundSize,e.pathBackgroundPosition=t.backgroundPosition}}),["{self}"])},u=({groupItem:e,curMiddleAnime:t,groupMiddleTimeline:i,propsIndex:s,perMiddleAnimeProps:n})=>{let o=Ce.getPreAnimeStyle({item:e,isMiddleAnime:!0,middleIndex:r,propsIndex:s,perMiddleAnimeProps:n}),a=o.w,l=o.h,d=t.props[s].css.width,h=t.props[s].css.height;i.eventCallback("onUpdate",(t=>{let i=a+(d-a)*t.progress();e.pathWidth=i;let s=l+(h-l)*t.progress();e.pathHeight=s;let n=i/parseFloat(e.style.width),o=s/parseFloat(e.style.height);if("svg"===e.type){let t=me.l3.getPathSvg({item:e,scaleX:n,scaleY:o,direction:"both"});e.pathTransform=t.transform,e.pathViewBox=t.viewBox}else if("image"===e.type){let t=Se({item:e,scaleY:o,scaleX:n});e.pathBackgroundSize=t.backgroundSize,e.pathBackgroundPosition=t.backgroundPosition}}),["{self}"])};switch(void 0===i.pathType&&(i.pathType="straight"),i.pathType){case"straight":{let o=0;i.props.forEach(((e,t)=>{let s=h({pathType:"straight",copyMidProps:me.P6.copy(e,!0),perMiddleAnimeProps:i.props,propsIndex:t,perMiddleAnime:i}),n=a({pathType:"straight",p0:s.p0,p3:s.p3});o+=n})),"group"===e.type&&e.items.forEach(((e,t)=>{let n=e.animations.middle[r];if(n){n.repeat=i.repeat,n.isYoyo=i.isYoyo,n.repeatDelay=i.repeatDelay,n.ease=i.ease,n.easeFn=i.easeFn;let t=document.querySelector(`#groupItem${e.id}`),r=new pe.ZP({});n.props.forEach(((s,l)=>{let d=new pe.ZP({delay:0});Ce.setEase(n);let c=me.P6.copy(n.props[l],!0);c.css.x=c.css.left-parseFloat(e.style.left),c.css.y=c.css.top-parseFloat(e.style.top);let p=h({pathType:"straight",copyMidProps:me.P6.copy(i.props[l],!0),perMiddleAnimeProps:i.props,propsIndex:l,perMiddleAnime:i}),m=a({pathType:"straight",p0:p.p0,p3:p.p3});delete c.css.left,delete c.css.top,delete c.css.rotation,d.to(t,i.duration*(m/o),c,0),r.add(d),u({groupItem:e,curMiddleAnime:n,groupMiddleTimeline:d,propsIndex:l,perMiddleAnimeProps:n.props})})),s.add(r,0)}})),"default"!==i.ease&&""!==i.ease||(i.ease="Power0.easeNone"),"default"!==i.easeFn&&""!==i.easeFn||(i.easeFn="Power0.easeNone");let l=new pe.ZP({});i.props.forEach(((r,d)=>{let u=new pe.ZP({delay:0}),p={css:{rotation:r.css.rotation},ease:r.ease},m=me.P6.copy(r,!0);delete m.css.rotation,m.css.x=m.css.left-parseFloat(e.style.left),m.css.y=m.css.top-parseFloat(e.style.top);let g=h({pathType:"straight",copyMidProps:me.P6.copy(r,!0),perMiddleAnimeProps:i.props,propsIndex:d,perMiddleAnime:i}),f=a({pathType:"straight",p0:g.p0,p3:g.p3});"SteppedEase"===i.ease&&(i.ease=new we.NB(12)),delete m.css.left,delete m.css.top,"group"===e.type&&(p.css.width=r.css.width,p.css.height=r.css.height);let w=i.duration*(f/o);0!==o&&(u.to(n,w,m,0),u.to(t,w,p,0)),"group"===e.type?(l.add(u),s.add(l,0)):s.add(u),c(u,r,d,i.props)}));break}case"circle":{let l=0;i.props.forEach(((t,s)=>{let n=i.props[s].css,c=n.width/2,u=n.height/2,p=(t=>{let s,n,a,l;if(0===r){if(Ce.isEmpty(o))if(0===t)s=parseFloat(e.style.left),n=parseFloat(e.style.width),a=parseFloat(e.style.top),l=parseFloat(e.style.height);else{let e=i.props[t-1];s=e.css.left,n=e.css.width,a=e.css.top,l=e.css.height}}else if(0===t)if(Ce.isEmpty(o))s=parseFloat(e.style.left),n=parseFloat(e.style.width),a=parseFloat(e.style.top),l=parseFloat(e.style.height);else{let e=o.props,t=e[e.length-1];s=t.css.left,n=t.css.width,a=t.css.top,l=t.css.height}else{let e=i.props[t-1];s=e.css.left,n=e.css.width,a=e.css.top,l=e.css.height}return{itemLeft:s,itemWidth:n,itemTop:a,itemHeight:l}})(s);if(void 0===e.differData)if(e.controlPoint){let t=e.controlPoint.c1[0]-(p.itemLeft+p.itemWidth/2),i=e.controlPoint.c1[1]-(p.itemTop+p.itemHeight/2);d.default.set(e,"differData",[t,i])}else d.default.set(e,"differData",[0,0]);if(void 0===i.differData){let e=i.controlPoint.c1[0]-(c+n.left),t=i.controlPoint.c1[1]-(u+n.top);d.default.set(i,"differData",[[e,t]])}if(1===i.props.length&&"number"==typeof i.differData[0]){let e=me.P6.copy(i.differData,!0);i.differData=[[e[0],e[1]]]}let m=h({pathType:"circle",copyMidProps:me.P6.copy(t,!0),perMiddleAnimeProps:i.props,propsIndex:s,perMiddleAnime:i}),g=a({pathType:"circle",p0:m.p0,p1:m.p1,p2:m.p2,p3:m.p3});l+=g})),"group"===e.type&&e.items.forEach((e=>{let t=e.animations.middle[r];if(t){t.repeat=i.repeat,t.isYoyo=i.isYoyo,t.repeatDelay=i.repeatDelay,t.ease=i.ease,t.easeFn=i.easeFn;let n=document.querySelector(`#groupItem${e.id}`),o=new pe.ZP({});t.props.forEach(((s,r)=>{let d=new pe.ZP({delay:0}),c=h({pathType:"circle",copyMidProps:me.P6.copy(i.props[r],!0),perMiddleAnimeProps:i.props,propsIndex:r,perMiddleAnime:i}),p=a({pathType:"circle",p0:c.p0,p1:c.p1,p2:c.p2,p3:c.p3}),m=me.P6.copy(t.props[r],!0);delete m.css.rotation,d.to(n,i.duration*(p/l),m),o.add(d),u({groupItem:e,curMiddleAnime:t,groupMiddleTimeline:d,propsIndex:r,perMiddleAnimeProps:t.props})})),s.add(o,0)}}));let p=new pe.ZP;i.props.forEach(((d,u)=>{let m,g,f,w,y,v,x=new pe.ZP({delay:0});if(0===r){if(Ce.isEmpty(o))if(0===u)m=parseFloat(e.style.left),g=parseFloat(e.style.width),f=parseFloat(e.style.top),w=parseFloat(e.style.height),y=e,v=!0;else{let e=i.props[u-1];m=e.css.left,g=e.css.width,f=e.css.top,w=e.css.height,y=i,v=!1}}else if(0===u)if(Ce.isEmpty(o))m=parseFloat(e.style.left),g=parseFloat(e.style.width),f=parseFloat(e.style.top),w=parseFloat(e.style.height),y=e,v=!0;else{let e=o.props,t=e[e.length-1];m=t.css.left,g=t.css.width,f=t.css.top,w=t.css.height,y=i,v=!1}else{let e=i.props[u-1];m=e.css.left,g=e.css.width,f=e.css.top,w=e.css.height,y=i,v=!1}let C=m,b=f,I=y.rotate+"_short";v||(C=parseFloat(e.style.left),b=parseFloat(e.style.top));let S,P=i.props[u].css;if(1===i.props.length&&"number"==typeof i.differData[0]){let e=me.P6.copy(i.differData,!0);i.differData=[[e[0],e[1]]]}if(0===r)0===u?(S=y.differData,I=y.rotate+"_short"):(S=i.differData[u-1],I=i.props[u-1].css.rotation);else if(0===u)if(Ce.isEmpty(o))S=y.differData,I=y.rotate+"_short";else{let e=o.differData,t=o.props;S=e[e.length-1],I=t[t.length-1].css.rotation}else S=i.differData[u-1],I=i.props[u-1].css.rotation;let T=[{x:m-C,y:f-b,height:w,width:g,opacity:1},{x:-S[0]+m-C,y:-S[1]+f-b,height:w,width:g,opacity:1},{x:i.differData[u][0]+P.left-C,y:i.differData[u][1]+P.top-b,height:P.height,width:P.width,opacity:1},{x:P.left-C,y:P.top-b,height:P.height,width:P.width,opacity:1}],$=[{rotation:I},{rotation:I},{rotation:P.rotation},{rotation:P.rotation}];"group"===e.type&&$.forEach(((e,t)=>{0!==t&&1!==t||(e.height=w,e.width=g),2!==t&&3!==t||(e.height=P.height,e.width=P.width)}));let k=h({pathType:"circle",copyMidProps:me.P6.copy(d,!0),perMiddleAnimeProps:i.props,propsIndex:u,perMiddleAnime:i}),L=a({pathType:"circle",p0:k.p0,p1:k.p1,p2:k.p2,p3:k.p3});"default"!==i.ease&&""!==i.ease||(i.ease="Power0.easeNone"),"default"!==i.easeFn&&""!==i.easeFn||(i.easeFn="Power0.easeNone");let M=i.duration*(L/l);0!==l&&(x.to(n,M,{bezier:{type:"cubic",values:T},ease:i.ease},0),x.to(t,M,{bezier:{type:"cubic",values:$},ease:i.ease},0)),"group"===e.type?(p.add(x),s.add(p,0)):s.add(x),c(x,d,u,i.props)}));break}}},setSubtitleAnime:function({subtitle:e,subTimeline:t,target:i,subtitleIndex:s}){let n=e.animations,o=n.delay,r=n.duration,a=n.inAnime,l=a.duration,d=n.outAnime,h=d.duration,c=new pe.ZP({delay:o});a.props[0].immediateRender=!0,c.from(i,l,a.props[0]),t.add(c,"subtitleIn"+s).addLabel("subtitleInEnd"+s);let u=new pe.ZP({delay:0});u.from(i,r-l-h,{ease:"Power0.easeNone",css:{}}),t.add(u);let p=new pe.ZP({delay:0});d.props[0].immediateRender=!1,p.to(i,h,d.props[0]),t.add(p)},setMiddleTextAnime:function({item:e,perMiddleAnime:t,middleTimeline:i}){let s=e,n=s.svgText.pathCount,o=s.id,r=Array.from({length:n},((e,t)=>{let i=`#pathAnime${o}${t}`;return Ce.checkTarget(i),i}));const a=T.Z.getters.isYZPro,l=T.Z.getters.isH5Pro;if((a||l)&&s.positionText.length>0){r=[];for(let e=0;e0&&t.forEach(((t,i)=>{r.push(`.text_anime_${s.id}_${e}_${i}`)}))}n=r.length}let d=be(me.P6.copy(t.props[0],!0),n);if(d.cycle){let e=t.advanced.interval,s=t.duration;0===e||(s/=(n+1/e-1)*e),e*=s;let o={transformOrigin:d.transformOrigin?d.transformOrigin:"center",bezier:function(){return d.cycle}};void 0!==d.cycle?delete d.css:o=d,o.ease=Ce.setEase(t,!0)[0].ease,i.staggerTo(r,s,o,e,"middle")}else{let e=new pe.ZP({}),s=t.advanced.interval,o=t.duration,a=0===s?o:o/((n+1/s-1)*s),l=a*s;r.forEach(((i,s)=>{let n=new pe.ZP({});t.props.forEach((e=>{let s=1===t.props.length?a:a*e.timePercent;e.css.transformOrigin=e.css.transformOrigin||"center",n.to(i,s,e)}));let r=s*l;e.add(n,r),e.totalDuration(o)})),i.add(e)}},setMiddleTextScrollAnime:function({item:e,perMiddleAnime:t,middleTimeline:i}){Ve.Z;const s=new pe.ZP({});let n=null;e.isHideScrollBar&&(n=document.querySelector(`#ItemLayout${e.id}`)),e.isHideScrollBar||(n=document.querySelector(`#ItemLayout${e.id} [data-overlayscrollbars-viewport]`));const o=t.duration;if(!n)return;const r=n.scrollHeight,a=n.offsetHeight;s.addCallback((()=>{n.scrollTop>0&&(n.scrollTop=0)}),0),s.eventCallback("onStart",(()=>{s.set(n,{scrollTop:0})})),s.eventCallback("onComplete",(()=>{s.set(n,{scrollTop:r-a})})),s.to(n,o,{scrollTo:r-a,ease:De.qD.easeNone}),i.add(s)},setOutPathAnime:function({item:e,itemLayoutTarget:t,outTimeline:i,target:s,isChangeTargetToRender:n,lastPathData:o}){let r=e.animations.out,a=r.noFaded;"default"!==r.ease&&""!==r.ease||(r.ease="Power0.easeNone"),"default"!==r.easeFn&&""!==r.easeFn||(r.easeFn="Power0.easeNone");let l=()=>{let t=Ce.getPreAnimeStyle({item:e,isMiddleAnime:!1}),s=t.w,n=t.h,o=r.props[0].css.width,a=r.props[0].css.height;i.eventCallback("onUpdate",(t=>{let i=s+(o-s)*t.progress();e.pathWidth=i;let r=n+(a-n)*t.progress();e.pathHeight=r;let l=i/parseFloat(e.style.width),d=r/parseFloat(e.style.height);if("svg"===e.type){let t=me.l3.getPathSvg({item:e,scaleX:l,scaleY:d,direction:"both"});e.pathTransform=t.transform,e.pathViewBox=t.viewBox}else if("image"===e.type){let t=Se({item:e,scaleY:d,scaleX:l});e.pathBackgroundSize=t.backgroundSize,e.pathBackgroundPosition=t.backgroundPosition}}),["{self}"])},h=({groupItem:e,groupOutTimeline:t,pathType:i,newGroupProps:s})=>{let n,o,r=Ce.getPreAnimeStyle({item:e,isMiddleAnime:!1}),a=r.w,l=r.h;"straight"===i?(n=e.animations.out.props[0].css.width,o=e.animations.out.props[0].css.height):"circle"===i&&(n=s.css.width,o=s.css.height),t.eventCallback("onUpdate",(t=>{let i=a+(n-a)*t.progress();e.pathWidth=i;let s=l+(o-l)*t.progress();e.pathHeight=s;let r=i/parseFloat(e.style.width),d=s/parseFloat(e.style.height);if("svg"===e.type){let t=me.l3.getPathSvg({item:e,scaleX:r,scaleY:d,direction:"both"});e.pathTransform=t.transform,e.pathViewBox=t.viewBox}else if("image"===e.type){let t=Se({item:e,scaleY:d,scaleX:r});e.pathBackgroundSize=t.backgroundSize,e.pathBackgroundPosition=t.backgroundPosition}}),["{self}"])};switch(void 0===r.pathType&&(r.pathType="straight"),r.pathType){case"straight":"group"===e.type&&e.items.forEach(((e,t)=>{if("path"===e.animations.out.type){let t=new pe.ZP({});e.animations.out.ease=r.ease,e.animations.out.easeFn=r.easeFn;let s=document.querySelector(`#groupItem${e.id}`);e.animations.out.props[0].ease=r.ease,Ce.setEase(e.animations.out);let n=me.P6.copy(e.animations.out.props[0],!0);n.css.x=n.css.left-parseFloat(e.style.left),n.css.y=n.css.top-parseFloat(e.style.top),delete n.css.left,delete n.css.top,delete n.css.rotation,t.to(s,r.duration,n),i.add(t,0),h({groupItem:e,groupOutTimeline:t,pathType:"straight"})}})),r.props[0].css.opacity=0,"default"!==r.ease&&""!==r.ease||(r.ease="Power0.easeNone"),"default"!==r.easeFn&&""!==r.easeFn||(r.easeFn="Power0.easeNone");let n={css:{rotation:r.props[0].css.rotation},ease:r.ease},c=me.P6.copy(r.props[0],!0);delete c.css.rotation,c.css.x=c.css.left-parseFloat(e.style.left),c.css.y=c.css.top-parseFloat(e.style.top),"SteppedEase"===r.ease?c.ease=new we.NB(12):c.ease=r.ease,delete c.css.left,delete c.css.top,a&&delete c.css.opacity,i.to(s,r.duration,c,0),"group"===e.type&&(n.css.width=r.props[0].css.width,n.css.height=r.props[0].css.height),i.to(t,r.duration,n,0),l();break;case"circle":{let n,c,u,p,m,g;if("group"===e.type&&e.items.forEach(((e,t)=>{let s=new pe.ZP({}),n={css:{width:e.animations.out.props[0].css.width,height:e.animations.out.props[0].css.height,left:e.animations.out.props[0].css.left,top:e.animations.out.props[0].css.top},ease:r.ease};e.animations.out.ease=r.ease,e.animations.out.easeFn=r.easeFn;let o=document.querySelector(`#groupItem${e.id}`);s.to(o,r.duration,n),i.add(s,0),h({groupItem:e,groupOutTimeline:s,pathType:"circle",newGroupProps:n})})),Ce.isEmpty(o))n=parseFloat(e.style.left),c=parseFloat(e.style.width),u=parseFloat(e.style.top),p=parseFloat(e.style.height),m=e,g=!0;else{let e=me.P6.copy(o.props[o.props.length-1],!0);n=e.css.left,c=e.css.width,u=e.css.top,p=e.css.height,e.differData=o.differData[o.props.length-1],m=e,g=!1}let f=n,w=u,y=m.rotate+"_short";g||(f=parseFloat(e.style.left),w=parseFloat(e.style.top),y=m.css.rotation);let v=r.props[0].css,x=v.width/2,C=v.height/2,b=c/2,I=p/2;if(!r.differData){let e=r.controlPoint.c1[0]-(x+v.left),t=r.controlPoint.c1[1]-(C+v.top);d.default.set(r,"differData",[e,t])}if(!e.differData){let t=e.controlPoint.c1[0]-(n+b),i=e.controlPoint.c1[1]-(u+I);d.default.set(e,"differData",[t,i])}let S=[{x:n-f,y:u-w,height:p,width:c,opacity:1},{x:-m.differData[0]+n-f,y:-m.differData[1]+u-w,height:p,width:c,opacity:1},{x:r.differData[0]+v.left-f,y:r.differData[1]+v.top-w,height:v.height,width:v.width,opacity:a?1:0},{x:v.left-f,y:v.top-w,height:v.height,width:v.width,opacity:a?1:0}],P=[{rotation:y},{rotation:y},{rotation:v.rotation},{rotation:v.rotation}];"group"===e.type&&P.forEach(((e,t)=>{0!==t&&1!==t||(e.height=p,e.width=c),2!==t&&3!==t||(e.height=v.height,e.width=v.width)})),i.to(s,r.duration,{bezier:{type:"cubic",values:S},ease:r.ease},0),i.to(t,r.duration,{bezier:{type:"cubic",values:P},ease:r.ease},0),l();break}}},setInMaskAnime:function({item:e,realItem:t,inTimeline:i,target:s,inMaskTimeline:n,setAnimeFromTrigger:o,isDefault:r}){let a={a:0},l=e.animations.in,d=l.props.length,h=l.props[0];e.maskConfig.in.maskType=h.maskType,l.noFaded?n.fromTo(s,l.duration,{opacity:1},{opacity:1}):n.fromTo(s,l.duration,{opacity:0},{opacity:1});let c=e.pathWidth{let n=i.time()/l.duration,r="",a="no-repeat",d="center";if("svg"===h.maskType?r=t*n*c+"px":(s=`${h.gradientType}(${h.direction}, #000 ${100*n}%, transparent ${100*n}%)`,r=`${h.maskSizeX*c}px ${h.maskSizeY*c}px`,a=h.repeat,d=h.position,o||(e.maskConfig.in.maskImage=s)),e.maskConfig.in.maskSize=r,e.maskConfig.in.repeat=a,e.maskConfig.in.position=d,o){let t=document.querySelector("#item"+e.id);"svg"===h.maskType?t.style.webkitMaskImage=`url( ${s})`:t.style.webkitMaskImage=s,t.style.webkitMaskSize=r,t.style.webkitMaskPosition=d,t.style.webkitMaskRepeat=a}}),["{self}"]),o&&i.eventCallback("onComplete",(t=>{let i=document.querySelector("#item"+e.id);i.style.webkitMaskImage="",i.style.webkitMaskSize="",i.style.webkitMaskPosition="",i.style.webkitMaskRepeat=""}),["{self}"])}else"clipPath"===h.maskType&&l.props.forEach(((e,t)=>{0===t?i.fromTo(`${s}>div`,l.duration*e.timePercent,e.css,l.props[t+1].css):t!==d-1&&i.to(`${s}>div`,l.duration*e.timePercent,l.props[t+1])}))},setOutMaskAnime:function({item:e,realItem:t,outTimeline:i,target:s,outMaskTimeline:n,setAnimeFromTrigger:o}){let r={a:0},a=e.animations.out,l=a.props.length,d=a.props[0];e.maskConfig.out.maskType=d.maskType,a.noFaded?n.fromTo(s,a.duration,{opacity:1},{opacity:1}):n.fromTo(s,a.duration,{opacity:1},{opacity:0});let h=e.pathWidth{let s,n,r,l,c=1-i.time()/a.duration;if("svg"===d.maskType?(s=e.animationFiles.maskFiles.out.url,n=t*c*h+"px",r="no-repeat",l="center"):(s=`${d.gradientType}(${d.direction}, #000 ${100*c}%, transparent ${100*c}%)`,n=`${d.maskSizeX*h}px ${d.maskSizeY*h}px`,r=d.repeat,l=d.position,e.maskConfig.out.maskImage=s),e.maskConfig.out.maskSize=n,e.maskConfig.out.repeat=r,e.maskConfig.out.position=l,o){let t=document.querySelector("#item"+e.id);"svg"===d.maskType?t.style.webkitMaskImage=`url(${s})`:t.style.webkitMaskImage=s,t.style.webkitMaskSize=n,t.style.webkitMaskPosition=l,t.style.webkitMaskRepeat=r}}),["{self}"]),o&&i.eventCallback("onComplete",(t=>{let i=document.querySelector("#item"+e.id);i.style.webkitMaskImage="",i.style.webkitMaskSize="",i.style.webkitMaskPosition="",i.style.webkitMaskRepeat=""}),["{self}"])}else"clipPath"===d.maskType&&a.props.forEach(((e,t)=>{0===t?i.fromTo(`${s}>div`,a.duration*e.timePercent,e.css,a.props[t+1].css):t!==l-1&&i.to(`${s}>div`,a.duration*e.timePercent,a.props[t+1])}))},setHandPaintedAnime:function({item:e,inTimeline:t,target:i,handPaintedTimeline:s}){let n=e.animations.in.duration,o=.1*n,r=.8*n;if(void 0!==e.paintSvgCode&&""!==e.paintSvgCode)d.default.nextTick((()=>{let i=e.paintPathLengthList,n=Ae(i),a=_e({item:e,arr:i,totalLen:n});s.fromTo(`#penCon${e.id}`,o,{y:"500%"},{y:"0%"}),Re({item:e,durArr:a,lenArr:i,handPaintedTimeline:s});let l=`#paintedImg${e.id}`;s.fromTo(l,r,{},{ease:"Power0.easeNone"},o),s.to(l,o,{}),t.add(s,0)}));else{let i=We({item:e}),n=(({item:e,allPathLists:t})=>{let i=document.createElementNS("http://www.w3.org/2000/svg","g"),s=[];return t.forEach(((t,n)=>{let o=document.createElementNS("http://www.w3.org/2000/svg","path");o.style.fill="none",o.style.strokeWidth="1px",o.style.stroke="black";let r=t.matrix,a=`matrix(${r[0]}, ${r[3]},${r[1]},${r[4]},${r[2]},${r[5]})`;o.setAttribute("transform",`${a}`),o.setAttribute("d",t.path),o.setAttribute("id",e.type+e.id+n),i.appendChild(o);let l=o.getTotalLength();o.style.strokeDasharray=Math.ceil(l),o.style.strokeDashoffset=Math.ceil(l),s.push(Math.ceil(l))})),{allPathArr:s,paintSvgCode:i.innerHTML}})({item:e,allPathLists:i});e.paintSvgCode=n.paintSvgCode,e.paintPathLengthList=n.allPathArr,d.default.nextTick((()=>{let i=e.paintPathLengthList,n=Ae(i),a=_e({item:e,arr:i,totalLen:n});s.fromTo(`#penCon${e.id}`,o,{y:"500%"},{y:"0%"}),Re({item:e,durArr:a,lenArr:i,handPaintedTimeline:s});let l=`#paintedImg${e.id}`;s.fromTo(l,r,{},{},o),s.to(l,o,{}),t.add(s,0)}))}let a=new pe.ZP({paused:!1});a.to(i,n,{}),t.add(a,0)},setScrawlAnime:function({item:e,inTimeline:t,target:i,scrawlTimeline:s,setAnimeFromTrigger:n,isDefaultAmine:o,viewScale:r}){let a=r,l=parseFloat(e.style.width)*a,h=parseFloat(e.style.height)*a,c=e.animations.in,u=c.duration,p=`#scrawlImg${e.id}`;n&&!o&&(p=`#scrawlImg-action${e.id}`),d.default.nextTick((()=>{let i=Ge({width:Math.ceil(l),height:Math.ceil(h),segment:20}).avgSegmentTime,r=0,a=[];i.forEach((e=>{r+=e,a.push(r)}));let d="";s.eventCallback("onUpdate",(t=>{let i=t.time()/c.duration;if(d=function({timePercent:e,segmentArr:t}){let i=t.length,s="";return t.forEach(((t,n)=>{e>=t&&(s=`linear-gradient(135deg, #000 ${(n+1)/i*100}%, transparent ${(n+1)/i*100}%)`)})),""===s&&(s="linear-gradient(135deg, #000 0%, transparent 0%)"),s}({timePercent:i,segmentArr:a}),e.scrawlConfig.in.maskImage=d,n){e.isRunAnime=!0;let t=document.querySelector("#item"+e.id),i=document.querySelector("#scrawlCon-action"+e.id);o&&(i=document.querySelector("#scrawlCon"+e.id)),i.style.opacity=1,t.style.webkitMaskImage=d,t.style.webkitMaskPosition="center",t.style.webkitMaskRepeat="no-repeat"}}),["{self}"]),s.eventCallback("onComplete",(t=>{if(n){e.isRunAnime=!1,e.scrawlConfig.in.maskImage="";let t=document.querySelector("#item"+e.id),i=document.querySelector("#scrawlCon-action"+e.id);o&&(i=document.querySelector("#scrawlCon"+e.id)),i.style.opacity=0,t.style.webkitMaskImage="",t.style.webkitMaskPosition="",t.style.webkitMaskRepeat=""}}),["{self}"]),s.fromTo(p,u,{offsetDistance:"0%"},{offsetDistance:"100%",ease:"Power0.easeNone"},0),t.add(s,0)}));let m=new pe.ZP({paused:!1});m.to(i,u,{}),t.add(m,0)},setEraseAnime:function({item:e,realItem:t,outTimeline:i,target:s,outEraseTimeline:n,setAnimeFromTrigger:o,isDefaultAmine:r,viewScale:a}){let l=a,h=qe(e),c=h.width*l,u=h.height*l,p=e.animations.out,m=p.duration,g=`#eraseImg${e.id}`;o&&!r&&(g=`#eraseImg-action${e.id}`),d.default.nextTick((()=>{let t=Xe({width:Math.ceil(c),height:Math.ceil(u),segment:15}).avgSegmentTime,s=0,a=[];t.forEach((e=>{s+=e,a.push(s)}));e.outEraseConfig.out.maskImage="",n.eventCallback("onUpdate",(t=>{let i="";if(i=function({timePercent:e,segmentArr:t}){let i,s=t.length;return t.forEach(((t,n)=>{e>=t&&(i=`linear-gradient(135deg, transparent ${(n+1)/s*100}%, #000 ${(n+1)/s*100}%)`)})),i}({timePercent:t.time()/p.duration,segmentArr:a}),e.outEraseConfig.out.maskImage=i,o){e.isRunAnime=!0;let t=document.querySelector("#item"+e.id),s=document.querySelector("#eraseCon-action"+e.id);r&&(s=document.querySelector("#eraseCon"+e.id)),s.style.opacity=1,t.style.webkitMaskImage=i,t.style.webkitMaskPosition="center",t.style.webkitMaskRepeat="no-repeat"}}),["{self}"]),n.eventCallback("onComplete",(t=>{if(o){e.isRunAnime=!1,e.scrawlConfig.in.maskImage="";let t=document.querySelector("#item"+e.id),i=document.querySelector("#eraseCon-action"+e.id);r&&(i=document.querySelector("#eraseCon"+e.id)),i.style.opacity=0,t.style.webkitMaskImage="",t.style.webkitMaskPosition="",t.style.webkitMaskRepeat=""}}),["{self}"]),n.fromTo(g,m,{offsetDistance:"0%"},{offsetDistance:"100%",ease:"Power0.easeNone"},0),i.add(n,0)}));let f=new pe.ZP({paused:!1});f.to(s,m,{}),i.add(f,0)},setInPluginMusicAnime:function({item:e,target:t,duration:i,delay:s,pluginMusicTimeline:n}){n.to(t,i,{}),n.eventCallback("onStart",(()=>{if(clearTimeout(e.audioTimer),t){T.Z.state.isPlayingAnime[e.pageIndex]&&"none"!==e.moviePlayTriggerEvt&&t.play()}}))},setInChartAnime:function({item:e,inTimeline:t,target:i}){let s=e.animations.in,n=s.isRemainOrigin;Ce.checkTimePercent(s,"in"),t.from(i,s.duration,s.props[0],"in"),t.eventCallback("onUpdate",(e=>{s.props[0].css.progress=e.progress()}),["{self}"]),t.eventCallback("onComplete",(()=>{n||t.set(i,{transformOrigin:"center"})}),["{self}"])}};function Ke(e){e.pathWidth=parseFloat(e.style.width),e.pathHeight=parseFloat(e.style.height),"svg"===e.type?(e.pathViewBox=e.svg.svgViewBox,e.pathTransform=e.gNode.transform):"image"===e.type&&(e.pathBackgroundSize=e.style.backgroundSize,e.pathBackgroundPosition=e.style.backgroundPosition)}function Je(e){if("image"===e.type&&e.isSprite)return!0;if("video"===e.type||"music"===e.type)return!0;const t=e.animations;if(t.middle.length>0)return!0;const i=t.in,s=t.out;return"basic"!==i.type||"basic"!==s.type||("alwaysIn"!==i.animeKey||"alwaysIn"!==s.animeKey)}function et({item:e,realItem:t,isChangeTargetToRender:i=!1,setAnimeFromTrigger:s=!1,curTimeScale:n=1,viewScale:o=1}){let r=`#anime${e.id}`,a=`#ItemLayout${e.id}`;s||Je(e)||(r="#fakeDom",a="#fakeDom1");const l=e.isDefault;s?(t.isPlayingActAnime=s,t.actAnimeTime=0,t.existStartTime=e.animations.in.delay,l&&(e=t)):(e.isPlayingActAnime=!1,e.actAnimeTime=-1),function({item:e}){"group"===e.type?(Ke(e),e.items.forEach((e=>{Ke(e)}))):Ke(e)}({item:e});let h=new pe.ZP({});if("component"===e.type)return{itemTimeline:null};Ce.checkTarget(r);const c=s?t:e;h.set(r,{width:parseFloat(c.style.width),height:parseFloat(c.style.height),left:parseFloat(c.style.left),top:parseFloat(c.style.top),transformPerspective:600});let u=void 0===c.rotateX?0:c.rotateX,p=void 0===c.rotateY?0:c.rotateY;h.set(a,{rotation:c.rotate+"_short",rotationY:p,rotationX:u});const m=e.animations.in;if((!s||s&&!m.isAlways)&&!Ce.isEmpty(m)){Ce.setEase(m),void 0===m.type&&(m.type="basic"),m.isHoverBorder=!1,m.props[0].immediateRender=!0;const d=new pe.ZP({delay:s?0:m.delay});switch(m.type){case"basic":Qe.setInBasicAnime({item:e,inTimeline:d,target:r});break;case"text":Qe.setInTextAnime({item:e,inTimeline:d,target:r,isChangeTargetToRender:i});break;case"painted":{let t=new pe.ZP({delay:0});Qe.setHandPaintedAnime({item:e,inTimeline:d,target:r,handPaintedTimeline:t});break}case"scrawl":{let t=new pe.ZP({delay:0});Qe.setScrawlAnime({item:e,inTimeline:d,target:r,scrawlTimeline:t,setAnimeFromTrigger:s,isDefaultAmine:l,viewScale:o});break}case"path":Qe.setInPathAnime({item:e,itemLayoutTarget:a,inTimeline:d,target:r,isChangeTargetToRender:i});break;case"music":Qe.setInMusicAnime({item:e,inTimeline:d,target:r,isChangeTargetToRender:i,curTimeScale:n});break;case"mask":{let i=new pe.ZP({delay:0});Qe.setInMaskAnime({item:e,realItem:t,inTimeline:d,target:r,inMaskTimeline:i,setAnimeFromTrigger:s,isDefaultAmine:l}),d.add(i,0);break}case"chart":Qe.setInChartAnime({item:e,inTimeline:d,target:r})}s?(t.existStartTime=m.delay,h.add(d,m.delay).addLabel("in",m.delay).addLabel("inEnd")):(e.existStartTime=m.delay,h.add(d,"in").addLabel("inEnd"))}m.isAlways&&(s?t.existStartTime=-1:e.existStartTime=-1);let g=e.animations.middle,f=function({item:e}){return e.animations.middle.findIndex((e=>void 0!==e.repeat&&-1===e.repeat))}({item:e}),w={};Ce.isEmpty(g)||g.forEach(((n,o)=>{if(n.isHoverBorder=!1,-1!==f&&f{let s=new pe.ZP({delay:t.animations.delay});Qe.setSpriteAnime({item:e,gifItem:t,singleGifTimeline:s,gifIndex:i}),v.add(s,"gifStart"+i).addLabel("gifEnd"+i)})),h.add(v,0)),"video"===e.type){const t=new pe.ZP({delay:e.videoInfo.delay});Qe.setVideoAnime({item:e,isChangeTargetToRender:i,target:r,videoTimeline:t,curTimeScale:n}),h.add(t,0)}return s&&function(e,t){e.eventCallback("onUpdate",(()=>{t.actAnimeTime=e.time()}))}(h,t),s||Je(e)?{itemTimeline:h,gifTimeline:v}:{itemTimeline:null,gifTimeline:null}}function tt(e){if(!e)return;e.getChildren(!0,!1,!0).forEach((e=>{e.clear(),e.kill(),tt(e)})),e.clear(),e.kill()}function it(e){let t={};switch(e){case 3:t.width=650,t.height=1300,t.left=-35.4,t.top=-13;break;case 4:t.width=795,t.height=1100,t.left=-1.2,t.top=-57.3;break;case 5:t.width=650,t.height=1130,t.left=-6.3,t.top=-11.8;break;case 7:t.width=1600,t.height=1528,t.left=-71.1,t.top=-531.8;break;case 25:t.width=832,t.height=1426,t.left=-29.2,t.top=-33.5;break;case 36:t.width=441,t.height=231,t.left=-3,t.top=-230.1;break;case 37:t.width=926,t.height=1526,t.left=-6.7,t.top=-1523.7;break;case 38:t.width=953,t.height=1537,t.left=-6.7,t.top=-1523.7;break;case 40:t.width=651,t.height=1201,t.left=-2.5,t.top=-1200.3;break;case 48:t.width=1089,t.height=1552,t.left=-2.8,t.top=-1533.9;break;case 52:t.width=1264,t.height=235,t.left=-1.7,t.top=-40.3;break;case 53:t.width=1024,t.height=724,t.left=-238,t.top=-532.4;break;case 54:t.width=476,t.height=616,t.left=-17.5,t.top=-600.5;break;case 12:t.width=1840,t.height=1492,t.left=-48.4,t.top=-286.9;break;case 20:t.width=1024,t.height=724,t.left=-70.5,t.top=-112.9;break;case 21:t.width=1688,t.height=1276,t.left=-44.3,t.top=-50.9;break;case 22:t.width=1258,t.height=1108,t.left=-59.5,t.top=-152.8;break;case 27:case 28:case 29:case 30:t.width=82,t.height=126,t.left=-6.5,t.top=-2.7;break;case 31:t.width=117,t.height=96,t.left=-6.5,t.top=-2.7;break;case 32:t.width=125,t.height=83,t.left=-6.5,t.top=-2.7;break;case 6:t.width=1390,t.height=936,t.left=-14.2,t.top=-269.6;break;case 17:t.width=1702,t.height=1565,t.left=-29.3,t.top=-193.7;break;case 18:t.width=1974,t.height=1310,t.left=-79.3,t.top=-1393.7;break;case 44:t.width=891,t.height=1213,t.left=-5,t.top=-1223.7;break;case 45:t.width=1852,t.height=2298,t.left=-17,t.top=-2287.3;break;case 47:t.width=1227,t.height=1367,t.left=-6,t.top=-1356.4;break;case 49:t.width=1164,t.height=1554,t.left=-34,t.top=-1528.4;break;case 51:t.width=2e3,t.height=2e3,t.left=-462,t.top=-216.4;break;case 11:t.width=1938,t.height=1517,t.left=-28.3,t.top=-770.3;break;case 13:t.width=1200,t.height=1060,t.left=-50.7,t.top=-254.8;break;case 14:t.width=705,t.height=1134,t.left=-49.7,t.top=-41.8;break;case 15:t.width=690,t.height=1685,t.left=-0,t.top=-2.2;break;case 16:t.width=1830,t.height=2016,t.left=-17.1,t.top=-11.1;break;case 10:t.width=692,t.height=1006,t.left=-18,t.top=-11.8;break;case 55:t.width=771,t.height=617,t.left=-11.3,t.top=-580.2;break;case 56:t.width=1614,t.height=2074,t.left=-33.8,t.top=-1253.4;break;case 57:t.width=3564,t.height=1684,t.left=-31.2,t.top=-1568.4;break;case 58:t.width=2149,t.height=2304,t.left=-10,t.top=-1378.9;break;case 19:t.width=1372,t.height=1752,t.left=-219.3,t.top=-1740.3;break;case 8:t.width=626,t.height=1076,t.left=-183,t.top=-40.2;break;case 9:t.width=1108,t.height=1928,t.left=-4,t.top=-18.2;break;case 23:t.width=880,t.height=1161,t.left=-56,t.top=-123.8;break;case 24:t.width=892,t.height=1580,t.left=-49.6,t.top=-72.2;break;case 39:t.width=834,t.height=1649,t.left=-4,t.top=-1648.4;break;case 41:t.width=651,t.height=1201,t.left=-4.3,t.top=-1197.4;break;case 46:t.width=611,t.height=1640,t.left=-14,t.top=-1644.4;break;case 50:t.width=1477,t.height=1601,t.left=-7.5,t.top=-15.5;break;case 33:t.width=534,t.height=497,t.left=-28.3,t.top=-473.3;break;case 34:t.width=380,t.height=565,t.left=-30,t.top=-563.3;break;case 35:t.width=456,t.height=529,t.left=-96.1,t.top=-427.6;break;case 59:t.width=514,t.height=1124,t.left=-45.7,t.top=-1117.1;break;case 60:t.width=1355,t.height=1601,t.left=-60,t.top=-1545;break;case 61:t.width=1315,t.height=1553,t.left=-10,t.top=-1545;break;case 62:t.width=1853,t.height=1895,t.left=-0,t.top=-1887.5;break;case 63:t.width=1618,t.height=1660,t.left=-10,t.top=-1620;break;case 64:t.width=554,t.height=1798,t.left=-310,t.top=-1785;break;case 65:t.width=1169,t.height=1726,t.left=-50,t.top=-1711.1;break;case 66:t.width=976,t.height=1788,t.left=-190.9,t.top=-1777.3}return t}var st={name:"PaintedCon",props:["page","pageIndex"],data(){return{}},inject:{viewScale:{from:"viewScale",default:1}},computed:{curTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return me.P6.getPageTime(this.pageIndex-1)},items:function(){return this.page.items},pageConfig:function(){return this.$store.state.pageConfig},handPaintedConStyle:function(){let e=this.pageConfig.originPageWidth/this.pageConfig.originPageHeight,t=0,i=0,s=0,n=0,o=this.$store.getters.realPageWH;736/414!==e?(i=o.pageInnerHeight,t=16*i/9,s=o.pageInnerLeft-(t-o.pageInnerWidth)/2,n=o.pageInnerTop-(i-o.pageInnerHeight)/2):(s=o.pageInnerLeft,n=o.pageInnerTop);let r={};return r.top=n+"px",r.left=s+"px",r},pageOffsetCanvas:function(){return{diffLeft:parseFloat(this.handPaintedConStyle.left),diffTop:parseFloat(this.handPaintedConStyle.top)}},viewModuleStyleInner:function(){let e=this.$store.state.pageConfig,t=e.originPageWidth;return{width:t,height:e.originPageHeight,transform:`scale(${t*this.$store.getters.fitViewScale/t})`,transformOrigin:"0px 0px"}},handPaintedItems:function(){let e=[],t=this.pageConfig.originPageWidth,i=this.pageConfig.originPageHeight,s=this.page.left,n=this.page.top,o=this.page.scale;return this.items.forEach((r=>{if("painted"===r.animations.in.type){let a=r.animationFiles.handPaintedFiles.in,l=it(a.handId),d={};if(l){let e=1;switch(e=l.width>l.height?this.viewModuleStyleInner.width/l.width:this.viewModuleStyleInner.height/l.height,a.handId){case 7:e/=1.6;break;case 36:case 52:case 53:case 54:case 55:case 33:e/=1.5;break;case 48:case 61:case 62:e/=1.2}d={left:l.left*e+"px",top:l.top*e+"px",width:l.width+"px",height:l.height+"px",transform:`scale(${e})`}}else d={left:a.left?a.left:"-6.8px",top:a.top?a.top:"-2.1px",transform:a.scale?`scale(${a.scale})`:"scale(0.2)"};let h={style:r.style,url:a.url,id:r.id,pageIndex:r.pageIndex,pathViewBox:r.pathViewBox,gNode:r.gNode,pathWidth:r.pathWidth,pathHeight:r.pathHeight,paintedStyle:{width:parseFloat(r.style.width)*o+"px",height:parseFloat(r.style.height)*o+"px"},rotate:r.rotate,rotateX:r.rotateX,rotateY:r.rotateY,handStyle:d,startTime:0,endTime:0},c=parseFloat(r.style.left),u=parseFloat(r.style.top),p=s-this.pageOffsetCanvas.diffLeft-t/2*(o-1)+c*o,m=n-this.pageOffsetCanvas.diffTop-i/2*(o-1)+u*o;h.paintedStyle.top=m+"px",h.paintedStyle.left=p+"px";let g=r.animations.in.duration,f=.1*g,w=this.curTime;w-=this.intoPageTime;let y=r.animations.in.delay,v=[y,y+g-f];h.startTime=y,h.endTime=y+g,w>v[0]&&w{let s={};if(t>=i.startTime&&t<=i.endTime){s.offsetPath=`path("${function({item:e,pageIndex:t,viewScale:i}){let s=We({item:e}),n=e,o=i,r=parseFloat(n.style.width),a=parseFloat(n.style.height),l=n.pathViewBox.match(/\d+\.\d+|\d+/g)[2],d=n.pathViewBox.match(/\d+\.\d+|\d+/g)[3],h=n.gNode.transform.match(/scale\(.*?\)/)[0],c=h.indexOf("("),u=h.indexOf(")"),p=h.indexOf(","),m=Number(h.substring(c+1,p)),g=Number(h.substring(p+1,u)),f=e.rotate,w=r*o/2,y=a*o/2,v=l/(r*o),x=d/(a*o),C=[];return s.forEach((t=>{let s=t.path,n=0,o=s.match(/-?\d*\.\d+(e-?\d+)*|-?\d+|[a-zA-Z]/g),r={};o.forEach(((s,a)=>{if(n===a)if("H"===s){r.x=Number(o[a+1]);let s=[Number(o[a+1]),r.y,1],l=Me(t.matrix,s,1),d=Fe({item:e,afterMatrixValues:l,viewScale:i});180===e.rotateY&&(d=f%180==0?Ze(d,w,y):ze(d,w,y,f)),180===e.rotateX&&(d=f%180==0?He(d,w,y):Ne(d,w,y,f)),C.push("L",d.panToOriginX,d.panToOriginY),n=a+2}else if("V"===s){r.y=Number(o[a+1]);let s=[r.x,Number(o[a+1]),1],l=Me(t.matrix,s,1),d=Fe({item:e,afterMatrixValues:l,viewScale:i});180===e.rotateY&&(d=f%180==0?Ze(d,w,y):ze(d,w,y,f)),180===e.rotateX&&(d=f%180==0?He(d,w,y):Ne(d,w,y,f)),C.push("L",d.panToOriginX,d.panToOriginY),n=a+2}else if("A"===s){let l=0;C.push(s);do{if(l++,l%7==1){let e=Number(o[l+a]),i=Number(o[l+a+1]);C.push(e*t.scaleX*m/v,i*t.scaleY*g/x)}else if(l%7==2);else if(l%7==6){r.x=Number(o[l+a]);let s=[Number(o[l+a]),Number(o[l+a+1]),1],n=Me(t.matrix,s,1),d=Fe({item:e,afterMatrixValues:n,viewScale:i});180===e.rotateY&&(d=f%180==0?Ze(d,w,y):ze(d,w,y,f)),180===e.rotateX&&(d=f%180==0?He(d,w,y):Ne(d,w,y,f)),C.push(d.panToOriginX,d.panToOriginY)}else l%7==0?r.y=Number(o[l+a]):l%7==3?C.push(Number(o[a+l])+t.rotate):C.push(Number(o[a+l]))}while(!isNaN(Number(o[a+l+1])));n=l+a+1}else if("C"===s){let l=0;C.push(s);do{if(l++,l%6==1){let s=[Number(o[l+a]),Number(o[l+a+1]),1],n=Me(t.matrix,s,1),r=Fe({item:e,afterMatrixValues:n,viewScale:i});180===e.rotateY&&(r=f%180==0?Ze(r,w,y):ze(r,w,y,f)),180===e.rotateX&&(r=f%180==0?He(r,w,y):Ne(r,w,y,f)),C.push(r.panToOriginX,r.panToOriginY)}else if(l%6==2);else if(l%6==3){let s=[Number(o[l+a]),Number(o[l+a+1]),1],n=Me(t.matrix,s,1),r=Fe({item:e,afterMatrixValues:n,viewScale:i});180===e.rotateY&&(r=f%180==0?Ze(r,w,y):ze(r,w,y,f)),180===e.rotateX&&(r=f%180==0?He(r,w,y):Ne(r,w,y,f)),C.push(r.panToOriginX,r.panToOriginY)}else if(l%6==4);else if(l%6==5){r.x=Number(o[l+a]);let s=[Number(o[l+a]),Number(o[l+a+1]),1],n=Me(t.matrix,s,1),d=Fe({item:e,afterMatrixValues:n,viewScale:i});180===e.rotateY&&(d=f%180==0?Ze(d,w,y):ze(d,w,y,f)),180===e.rotateX&&(d=f%180==0?He(d,w,y):Ne(d,w,y,f)),C.push(d.panToOriginX,d.panToOriginY)}else l%6==0&&(r.y=Number(o[l+a]))}while(!isNaN(Number(o[a+l+1])));n=l+a+1}else if(-1!==" SQ".indexOf(s)){let l=0;C.push(s);do{if(l++,l%4==1){let s=[Number(o[l+a]),Number(o[l+a+1]),1],n=Me(t.matrix,s,1),r=Fe({item:e,afterMatrixValues:n,viewScale:i});180===e.rotateY&&(r=f%180==0?Ze(r,w,y):ze(r,w,y,f)),180===e.rotateX&&(r=f%180==0?He(r,w,y):Ne(r,w,y,f)),C.push(r.panToOriginX,r.panToOriginY)}else if(l%4==2);else if(l%4==3){r.x=Number(o[l+a]);let s=[Number(o[l+a]),Number(o[l+a+1]),1],n=Me(t.matrix,s,1),d=Fe({item:e,afterMatrixValues:n,viewScale:i});180===e.rotateY&&(d=f%180==0?Ze(d,w,y):ze(d,w,y,f)),180===e.rotateX&&(d=f%180==0?He(d,w,y):Ne(d,w,y,f)),C.push(d.panToOriginX,d.panToOriginY)}else l%4==0&&(r.y=Number(o[l+a]))}while(!isNaN(Number(o[a+l+1])));n=l+a+1}else if(-1!==" MTL".indexOf(s)){C.push(s),r.x=Number(o[a+1]),r.y=Number(o[a+2]);let l=[Number(o[a+1]),Number(o[a+2]),1],d=Me(t.matrix,l,1),h=Fe({item:e,afterMatrixValues:d,viewScale:i});180===e.rotateY&&(h=f%180==0?Ze(h,w,y):ze(h,w,y,f)),180===e.rotateX&&(h=f%180==0?He(h,w,y):Ne(h,w,y,f)),C.push(h.panToOriginX,h.panToOriginY),n=a+3}else C.push(s),n=a+1}))})),C.join(" ")}({item:i,pageIndex:i.pageIndex,viewScale:this.viewScale})}")`;let e=i.endTime-i.startTime,n=.8*e,o=.1*e;t>=i.startTime+o&&t<=i.endTime-o&&(s.offsetDistance=(t-i.startTime-o)/n*100+"%")}e.push(s)})),e}},methods:{}},nt=st,ot=i(1001),rt={name:"ScrawlCon",props:["page","pageIndex"],data(){return{}},inject:{viewScale:{from:"viewScale",default:1}},computed:{curTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return me.P6.getPageTime(this.pageIndex-1)},items:function(){return this.page.items},pageConfig:function(){return this.$store.state.pageConfig},handPaintedConStyle:function(){let e=this.pageConfig.originPageWidth/this.pageConfig.originPageHeight,t=0,i=0,s=0,n=0,o=this.$store.getters.realPageWH;736/414!==e?(i=o.pageInnerHeight,t=16*i/9,s=o.pageInnerLeft-(t-o.pageInnerWidth)/2,n=o.pageInnerTop-(i-o.pageInnerHeight)/2):(s=o.pageInnerLeft,n=o.pageInnerTop);let r={};return r.top=n+"px",r.left=s+"px",r},pageOffsetCanvas:function(){return{diffLeft:parseFloat(this.handPaintedConStyle.left),diffTop:parseFloat(this.handPaintedConStyle.top)}},viewModuleStyleInner:function(){let e=this.$store.state.pageConfig,t=e.originPageWidth;return{width:t,height:e.originPageHeight,transform:`scale(${t*this.$store.getters.fitViewScale/t})`,transformOrigin:"0px 0px"}},scrawlItems:function(){let e=[];return this.items.forEach((t=>{if("scrawl"===t.animations.in.type){let i=this.getScrawlItem(t);e.push(i)}t.actionList&&t.actionList.forEach((i=>{i.animationList.forEach((i=>{if("scrawl"===i.animations.in.type&&!this.isHasSameItem(e,i)){i.actAnimeTime=t.actAnimeTime;let s=this.getScrawlItem(i);e.push(s)}}))}))})),e},scrawlPathList:function(){let e=[];return this.scrawlItems.forEach((t=>{let i={};i.offsetPath=`path("${(({item:e,pageIndex:t,viewScale:i})=>{let s=i,n=parseFloat(e.style.width)*s,o=parseFloat(e.style.height)*s,r=n/2,a=o/2,l=e.rotate,d=Ge({width:Math.ceil(n),height:Math.ceil(o),segment:20}).scrawlPath,h=d.match(/-?\d*\.\d+(e-?\d+)*|-?\d+|[a-zA-Z]/g),c=0,u=[];return h.forEach(((t,s)=>{if(c===s&&-1!==" ML ".indexOf(t)){u.push(t);let n=Ue({item:e,pointX:h[s+1],pointY:h[s+2],viewScale:i});180===e.rotateY&&(n=l%180==0?Ze(n,r,a):je({pointX:n.panToOriginX,pointY:n.panToOriginY,centerPointX:r,centerPointY:a,itemRotate:l})),180===e.rotateX&&(n=l%180==0?He(n,r,a):Ye({pointX:n.panToOriginX,pointY:n.panToOriginY,centerPointX:r,centerPointY:a,itemRotate:l})),u.push(n.panToOriginX,n.panToOriginY),c=s+3}})),d=u.join(" "),d})({item:t,pageIndex:t.pageIndex,viewScale:this.viewScale})}")`,e.push(i)})),e}},methods:{getScrawlItem:function(e){let t=this.pageConfig.originPageWidth,i=this.pageConfig.originPageHeight,s=this.page.left,n=this.page.top,o=this.page.scale,r=e.animationFiles.scrawlFiles.in,a=it(r.handId),l={};if(a){let e=1;switch(e=a.width>a.height?this.viewModuleStyleInner.width/a.width:this.viewModuleStyleInner.height/a.height,r.handId){case 7:e/=1.6;break;case 36:case 52:case 53:case 54:case 55:case 33:e/=1.5;break;case 48:case 61:case 62:e/=1.2}l={left:a.left*e+"px",top:a.top*e+"px",width:a.width+"px",height:a.height+"px",transform:`scale(${e})`}}else l={left:r.left?r.left:"-6.8px",top:r.top?r.top:"-2.1px",transform:r.scale?`scale(${r.scale})`:"scale(0.2)"};let d={style:e.style,url:r.url,id:e.id,pageIndex:e.pageIndex,pathViewBox:e.pathViewBox,gNode:e.gNode,pathWidth:e.pathWidth,pathHeight:e.pathHeight,paintedStyle:{width:parseFloat(e.style.width)*o+"px",height:parseFloat(e.style.height)*o+"px"},animations:e.animations,rotate:e.rotate,rotateX:e.rotateX,rotateY:e.rotateY,handStyle:l,startTime:0,actAnimeTime:e.actAnimeTime,endTime:0};e.isAction&&(d.isAction=!0,d.pageIndex=this.pageIndex);let h=parseFloat(e.style.left),c=parseFloat(e.style.top),u=s-this.pageOffsetCanvas.diffLeft-t/2*(o-1)+h*o,p=n-this.pageOffsetCanvas.diffTop-i/2*(o-1)+c*o;d.paintedStyle.top=p+"px",d.paintedStyle.left=u+"px";let m=e.animations.in.duration,g=this.curTime;g-=this.intoPageTime;let f=e.animations.in.delay;return d.startTime=f,d.endTime=f+m,e.isAction&&(g=e.actAnimeTime),d},isHasSameItem:function(e,t){for(let i=0;in[0]&&i{"outErase"===t.animations.out.type&&e.push(t)})),e},erasePathList:function(){let e=[];return this.handEraseItems.forEach((t=>{let i={};i.offsetPath=`path("${(({item:e,pageIndex:t,viewScale:i})=>{let s=i,n=qe(e),o=n.width*s,r=n.height*s,a=o/2,l=r/2,d=n.rotate,h=Xe({width:Math.ceil(o),height:Math.ceil(r),segment:15}).scrawlPath,c=h.match(/-?\d*\.\d+(e-?\d+)*|-?\d+|[a-zA-Z]/g),u=0,p=[];return c.forEach(((t,s)=>{if(u===s&&-1!==" ML ".indexOf(t)){p.push(t);let n=Ue({item:e,pointX:c[s+1],pointY:c[s+2],selfRotate:d,viewScale:i});180===e.rotateY&&(n=d%180==0?Ze({needValues:n,centerPointX:a,centerPointY:l}):je({pointX:n.panToOriginX,pointY:n.panToOriginY,centerPointX:a,centerPointY:l,viewScale:i})),180===e.rotateX&&(n=d%180==0?He({needValues:n,centerPointX:a,centerPointY:l}):Ye({pointX:n.panToOriginX,pointY:n.panToOriginY,centerPointX:a,centerPointY:l,itemRotate:d})),p.push(n.panToOriginX,n.panToOriginY),u=s+3}})),h=p.join(" "),h})({item:t,pageIndex:t.pageIndex,viewScale:this.viewScale})}")`,e.push(i)})),e},eraseImgList:function(){let e=[];return this.handEraseItems.forEach((t=>{let i=t.animationFiles.outEraseFiles.out.url;e.push(i)})),e},eraseStyle:function(){let e=[];return this.handEraseItems.forEach((t=>{let i={},s=this.page.scale,n=this.page.left,o=this.page.top,r=this.pageConfig.originPageWidth,a=this.pageConfig.originPageHeight,l=qe(t),d=parseFloat(t.style.left),h=parseFloat(t.style.top);i.width=l.width*s+"px",i.height=l.height*s+"px",i.top=o-this.pageOffsetCanvas.diffTop-a/2*(s-1)+h*s+"px",i.left=n-this.pageOffsetCanvas.diffLeft-r/2*(s-1)+d*s+"px",e.push(i)})),e},eraseStyleList:function(){let e=[];return this.handEraseItems.forEach((t=>{let i,s=t.animationFiles.outEraseFiles.out,n=this.viewModuleStyleInner.width,o=this.viewModuleStyleInner.height,r=function(e){let t={};switch(e){case 1:t.width=451,t.height=1306,t.left=-40.9,t.top=-84.6;break;case 10:t.width=1667,t.height=1333,t.left=-72,t.top=-365.3;break;case 11:t.width=1670,t.height=1300,t.left=-92,t.top=-190.3;break;case 2:t.width=600,t.height=1080,t.left=-176.4,t.top=-29;break;case 3:t.width=350,t.height=1100,t.left=-176.4,t.top=-65.7;break;case 4:t.width=1023,t.height=828,t.left=-286.9,t.top=-177.6;break;case 5:t.width=1533,t.height=1554,t.left=-124,t.top=-351.1;break;case 6:t.width=1827,t.height=1360,t.left=-188.5,t.top=-198.7;break;case 7:t.width=650,t.height=619,t.left=-258,t.top=-74.3;break;case 8:t.width=2918,t.height=2476,t.left=-139.2,t.top=-501.2;break;case 9:t.width=2674,t.height=2148,t.left=-123.2,t.top=-705.2}return t}(s.handId);i=r.width>r.height?o/r.width:n/r.height;let a={};switch(s.handId){case 4:case 7:i/=1.8;break;case 5:i/=1.2;break;case 6:case 10:case 11:i/=1.5;break;case 8:case 9:i/=1.6}a.left=r.left*i+"px",a.top=r.top*i+"px",a.width=r.width+"px",a.height=r.height+"px",a.transform=`scale(${i})`,e.push(a)})),e}},methods:{isHasSameItem:function(e,t){for(let i=0;is[0]&&t({}),computed:{},methods:{},components:{PaintedCon:(0,ot.Z)(nt,(function(){var e=this,t=e._self._c;return t("div",e._l(e.handPaintedItems,(function(i,s){return t("div",{key:s,staticClass:"penContainer",style:i.paintedStyle,attrs:{id:`penCon${i.id}`}},[t("div",{staticClass:"hand_img",style:e.handPathList[s],attrs:{id:`paintedImg${i.id}`}},[-1!==i.handId?t("img",{staticClass:"handInfo",style:i.handStyle,attrs:{src:i.url}}):e._e()])])})),0)}),[],!1,null,"03aa0a0f",null).exports,ScrawlCon:(0,ot.Z)(at,(function(){var e=this,t=e._self._c;return t("div",e._l(e.scrawlItems,(function(i,s){return t("div",{key:e.getKey(i),staticClass:"penContainer",style:[i.paintedStyle,{opacity:e.getOpacity(i)}],attrs:{id:e.getScrawlId(i)}},[t("div",{staticClass:"hand_img",style:e.scrawlPathList[s],attrs:{id:e.getImgId(i)}},[-1!==i.handId?t("img",{staticClass:"handInfo",style:i.handStyle,attrs:{src:i.url}}):e._e()])])})),0)}),[],!1,null,"0486cae9",null).exports,EraseCon:(0,ot.Z)(dt,(function(){var e=this,t=e._self._c;return t("div",e._l(e.handEraseItems,(function(i,s){return t("div",{key:e.getKey(i),staticClass:"penContainer",style:[e.eraseStyle[s],{opacity:e.getOpacity(i)}],attrs:{id:e.getEraseConId(i)}},[i.isHidden?e._e():t("div",{staticClass:"hand_img",style:e.erasePathList[s],attrs:{id:e.getImgId(i)}},[-1!==i.animationFiles.outEraseFiles.out.handId?t("img",{staticClass:"handInfo",style:e.eraseStyleList[s],attrs:{src:e.eraseImgList[s]}}):e._e()])])})),0)}),[],!1,null,"44938402",null).exports}},ct={name:"HandPainted",data(){return{}},props:["page","pageIndex","viewScale"],provide(){return{viewScale:this.viewScale}},computed:{localPage:function(){return this.page},localPageIndex:function(){return this.pageIndex},pageConfig:function(){return this.$store.state.pageConfig},pageOffsetCanvas:function(){return{diffLeft:parseFloat(this.handPaintedConStyle.left),diffTop:parseFloat(this.handPaintedConStyle.top)}},handPaintedConStyle:function(){let e=this.pageConfig.originPageWidth/this.pageConfig.originPageHeight,t=0,i=0,s=0,n=0,o=this.$store.getters.realPageWH;736/414!==e?(i=o.pageInnerHeight,t=16*i/9,s=o.pageInnerLeft-(t-o.pageInnerWidth)/2,n=o.pageInnerTop-(i-o.pageInnerHeight)/2):(i=o.pageInnerHeight,t=o.pageInnerWidth,s=o.pageInnerLeft,n=o.pageInnerTop);let r={};return r.width=t+"px",r.height=i+"px",r.top=n+"px",r.left=s+"px",r}},methods:{},mounted:function(){},components:{HandPageCon:(0,ot.Z)(ht,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"HandPageCon"},[t("PaintedCon",{attrs:{page:e.page,pageIndex:e.pageIndex}}),t("ScrawlCon",{attrs:{page:e.page,pageIndex:e.pageIndex}}),t("EraseCon",{attrs:{page:e.page,pageIndex:e.pageIndex}})],1)}),[],!1,null,"3b4964b0",null).exports}},ut=(0,ot.Z)(ct,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"HandPainted",style:e.handPaintedConStyle},[t("HandPageCon",{attrs:{page:e.localPage,pageIndex:e.localPageIndex}})],1)}),[],!1,null,"567329d6",null).exports,pt={name:"ScrollbarTextTips",components:{ScrollTextIcon:(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("g",{attrs:{id:"Frame","clip-path":"url(#clip0_485_2656)"}},[e("path",{attrs:{id:"Vector",d:"M22.4666 30.9189L22.4471 30.9073C22.4178 30.89 22.373 30.8766 22.3281 30.8633L22.3184 30.8575C22.2988 30.8459 22.2735 30.8441 22.254 30.8326L22.1448 30.7943L22.135 30.7885L16.8079 28.5847C16.1856 28.3218 15.6807 27.8384 15.4144 27.2193C15.1422 26.6099 15.1205 25.9115 15.3483 25.2817C15.6606 24.4645 16.3887 23.8803 17.2577 23.7486L12.6842 17.0863C11.8814 15.9256 12.1077 14.3851 13.1773 13.6471C14.247 12.9091 15.7687 13.2561 16.5715 14.4168L18.0475 16.5562C18.1711 16.392 18.3181 16.2549 18.4789 16.1391C18.9867 15.7936 19.6341 15.7022 20.2559 15.8989C20.4036 15.5381 20.6392 15.2292 20.9492 15.0172C21.3175 14.7737 21.7584 14.6524 22.1886 14.6829C22.5331 14.7023 22.8723 14.7975 23.1905 14.9727C23.314 14.8085 23.4611 14.6714 23.6219 14.5557C24.6218 13.8687 26.0796 14.2569 26.8824 15.4176L30.7276 21.016C31.5756 22.2563 31.9655 24.0032 31.7291 25.4717C31.59 26.2859 31.2707 26.9144 30.8114 27.2226L25.277 31.0266C24.2615 31.7176 23.2704 31.276 22.4666 30.9189ZM30.2346 26.1033C30.4052 25.9933 30.6236 25.4239 30.6065 24.5172C30.589 23.5444 30.2816 22.5714 29.7889 21.8447L25.8336 16.0757C25.5059 15.6049 24.9404 15.402 24.609 15.6277C24.5393 15.6787 24.4735 15.7453 24.437 15.8292L25.815 17.8446C26.0292 18.1955 25.9307 18.6514 25.6051 18.8673C25.2738 19.0931 24.8218 19.0102 24.5748 18.6925L23.3715 16.9388L23.0029 16.4701C22.6716 16.0499 22.1491 15.8856 21.8333 16.1074C21.6996 16.1997 21.6053 16.3812 21.5812 16.5779L23.0749 18.754C23.3242 19.1125 23.2395 19.5898 22.8868 19.8292C22.5399 20.059 22.0684 19.9645 21.8192 19.606L20.5001 17.6915L20.3005 17.4942C19.962 17.1752 19.5216 17.0727 19.2542 17.2572C19.0778 17.377 18.9782 17.6344 19.0033 17.9261L20.4717 20.1005L21.0292 20.9183C21.251 21.2342 21.1699 21.6608 20.8696 21.8785L20.7359 21.9708C20.4258 22.1828 20.005 22.0919 19.7832 21.7761L15.3237 15.2999L15.1667 15.0751C14.8349 14.5887 14.221 14.4231 13.7986 14.7136C13.3761 15.0041 13.3059 15.635 13.6377 16.1214L17.9988 22.4074C18.0126 22.4288 18.0263 22.4501 18.0458 22.4616L19.7653 24.9692C19.9813 25.2948 19.9353 25.729 19.6585 25.9739C19.3759 26.2285 18.9439 26.2233 18.6564 25.974L17.9371 25.4296C17.6854 25.3202 17.3955 25.32 17.1335 25.4286C16.8812 25.543 16.6839 25.7426 16.5843 26C16.3832 26.5402 16.6496 27.1593 17.1938 27.376L22.6789 29.647L22.6984 29.6586L22.7628 29.6835L22.8467 29.7199C22.9013 29.7391 22.9501 29.768 22.9949 29.7813L23.03 29.7889L23.0593 29.8062C23.9412 30.2096 24.208 30.2488 24.5238 30.0271L30.2346 26.1033Z",fill:"white"}}),e("circle",{attrs:{id:"Ellipse 968",cx:"4.92308",cy:"6.15385",r:"4.92308",fill:"white","fill-opacity":"0.2"}}),e("circle",{attrs:{id:"Ellipse 969",cx:"4.92308",cy:"24.6154",r:"4.92308",fill:"white","fill-opacity":"0.2"}}),e("g",{attrs:{id:"Frame_2","clip-path":"url(#clip1_485_2656)"}},[e("path",{attrs:{id:"Vector_2",d:"M6.83761 23.3876L4.92454 25.2992L3.00855 23.3846",fill:"white"}}),e("path",{attrs:{id:"Vector_3",d:"M4.92307 6.15387L4.92307 24.6154",stroke:"white","stroke-width":"1.07692","stroke-linejoin":"round"}})]),e("path",{attrs:{id:"Vector_4",d:"M3.00856 6.83466L4.92161 4.9231L6.83762 6.83763",fill:"white"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_485_2656"}},[e("rect",{attrs:{width:"32",height:"32",fill:"white"}})]),e("clipPath",{attrs:{id:"clip1_485_2656"}},[e("rect",{attrs:{width:"4.92308",height:"20.9231",fill:"white",transform:"translate(2.46154 4.9231)"}})])])])}),[],!1,null,null,null).exports}},mt=(0,ot.Z)(pt,(function(){var e=this._self._c;return e("div",{staticClass:"ScrollbarTextTips"},[e("ScrollTextIcon"),e("span",{staticClass:"tips-text"},[this._v("上下滑动查看")])],1)}),[],!1,null,"aff1e044",null).exports;const gt=()=>!(!window.isPhone||!window.isPhone())||!(!window.isPad||!window.isPad()),ft=e=>{if(0===e.length)return[];const t=e.filter((e=>{if(e.textItem?.overflow)return e}));if(0===t.length)return[];return t.sort(((e,t)=>{const i=Number.parseInt(window.getComputedStyle(e.el).top),s=Number.parseInt(window.getComputedStyle(e.el).left),n=Number.parseInt(window.getComputedStyle(t.el).top),o=Number.parseInt(window.getComputedStyle(t.el).left);return i-n||s-o}))},wt=(e=0)=>new Promise((t=>window.setTimeout(t,e)));var yt=i(5025);const vt=["camera","background","subtitle","foreground"];class xt{constructor(e=!0){(0,f.Z)(this,"isInstanceProperty",!0),(0,f.Z)(this,"isEnable",!1),(0,f.Z)(this,"items",[]),this.isInstanceProperty=e}}function Ct(e){return Object.prototype.hasOwnProperty.call(e,"camera")&&void 0!==e.camera?{isInstanceProperty:!0,items:e.camera.items,isEnable:e.camera.isEnable}:new xt(!1)}function bt(e){return Object.prototype.hasOwnProperty.call(e,"background")&&void 0!==e.background?{isInstanceProperty:!0,items:e.background.items,isEnable:e.background.isEnable}:new xt(!1)}function It(e){return Object.prototype.hasOwnProperty.call(e,"subtitle")&&void 0!==e.subtitle?{isInstanceProperty:!0,items:e.subtitle.items,isEnable:e.subtitle.isEnable}:new xt(!1)}function St(e){return Object.prototype.hasOwnProperty.call(e,"foreground")&&void 0!==e.foreground?{isInstanceProperty:!0,items:e.foreground.items,isEnable:e.foreground.isEnable}:new xt(!1)}function Pt(e){return vt.includes(e.type)||Object.prototype.hasOwnProperty.call(e,"isSubtitle")&&e.isSubtitle}var Tt=function(e,t){let i=me.P6.getPageTime(t-1),s=e.existStartTime+i,n=e.existEndTime+i,o=T.Z.state.animeTime[t]?T.Z.state.animeTime[t]:0,r=!1;return e.isPlayingActAnime&&(o=e.actAnimeTime),-1!==e.existStartTime&&(o=n&&(r=!0),r},$t={name:"commentPreview",props:["commentOpts","item"],data(){return{position:"Top Right",isShowComment:!1,isShowLineSvg:!1,commentMaxWidth:0,horizontalDistance:15,transformX:0,transformY:0,commentPosChangeCount:0,startPoint:{x:0,y:0},transitionPoint:{x:0,y:0},endPoint:{x:0,y:0},winPositionMap:{topRight:"Top Right",topLeft:"Top Left",bottomLeft:"Bottom Left",bottomRight:"Bottom Right",top:"Top",left:"Left",bottom:"Bottom",right:"Right",center:"Center"}}},computed:{pageStyle:function(){const{pageInnerWidth:e,pageInnerHeight:t,pageInnerLeft:i,pageInnerTop:s}=this.$store.getters.realPageWH;return{pageInnerWidth:e,pageInnerHeight:t,pageInnerLeft:i,pageInnerTop:s}},pageConfig:function(){return this.$store.state.pageConfig},canvas:function(){return this.$store.state.canvas},commentStyle:function(){const e={maxWidth:this.commentMaxWidth+"px",background:this.commentOpts.contentProps.bgColor,textAlign:this.commentOpts.contentProps.textAlign,fontSize:this.commentOpts.contentProps.fontSize+"px",color:this.commentOpts.contentProps.fontColor,fontFamily:this.commentOpts.contentProps.fontFamily,lineHeight:this.commentOpts.contentProps.lineHeight,letterSpacing:this.commentOpts.contentProps.letterSpacing+"px"};return~this.commentOpts.contentProps.elements.indexOf("bold")&&(e.fontWeight="bold"),~this.commentOpts.contentProps.elements.indexOf("italic")&&(e.fontStyle="italic"),~this.commentOpts.contentProps.elements.indexOf("underline")&&(e.textDecoration="underline"),e},contentBoxStyle:function(){const e={width:this.commentMaxWidth+"px"},t="calc(100% + 15px)",i=`calc(100% + ${this.horizontalDistance}px)`;switch(this.position){case this.winPositionMap.topRight:e.bottom=t,e.left=i,e.textAlign="left";break;case this.winPositionMap.bottomRight:e.top=t,e.left=i,e.textAlign="left";break;case this.winPositionMap.topLeft:e.bottom=t,e.right=i,e.textAlign="right";break;case this.winPositionMap.bottomLeft:e.top=t,e.right=i,e.textAlign="right";break;case this.winPositionMap.top:e.bottom="calc(100% + 15px)",e.left="50%",e.transform=`translateX(calc(-50% + ${this.transformX}px))`,e.textAlign="center";break;case this.winPositionMap.left:e.top="50%",e.right="calc(100% + 15px)",e.transform=`translateY(calc(-50% + ${this.transformY}px))`,e.textAlign="right";break;case this.winPositionMap.bottom:e.top="calc(100% + 15px)",e.left="50%",e.transform=`translateX(calc(-50% + ${this.transformX}px))`,e.textAlign="center";break;case this.winPositionMap.right:e.top="50%",e.left="calc(100% + 15px)",e.transform=`translateY(calc(-50% + ${this.transformY}px))`,e.textAlign="left";break;case this.winPositionMap.center:e.top="50%",e.left="50%",e.transform=`translate(calc(-50% + ${this.transformX}px),calc(-50% + ${this.transformY}px))`,e.textAlign="center"}return e},points:function(){return`${this.startPoint.x},${this.startPoint.y} ${this.transitionPoint.x},${this.transitionPoint.y} ${this.endPoint.x},${this.endPoint.y}`},svgLine:function(){let e;switch(this.commentOpts.lineOpts.lineType){case"solid":e="none";break;case"dotted":e="1,1";break;default:e="3,4"}return e}},mounted(){this.isShowLineSvg=this.commentOpts.lineOpts.isAddLine,this.commentMaxWidth=this.commentOpts.windowWP.maxW,this.showComment(this.commentOpts.windowWP.winP)},methods:{showComment(e){this.position=e,this.$nextTick((()=>{const t=this.$refs.comment.offsetWidth,i=this.$refs.comment.offsetHeight;if(this.commentWithinPage(e,t,i))return void(this.isShowLineSvg&&this.showLineSvg(e));const s=15;let n=0,o=0,r=0,a=0;if(this.item.isGroupItem){const{top:e,left:t,width:i,height:s}=this.item.groupStyle,{top:l,left:d,width:h,height:c}=this.item.style;n=parseFloat(e)+parseFloat(l),o=parseFloat(t)+parseFloat(d),r=parseFloat(h),a=parseFloat(c)}else{const{top:e,left:t,width:i,height:s}=this.item.style;n=parseFloat(e),o=parseFloat(t),r=parseFloat(i),a=parseFloat(s)}const{originPageWidth:l,originPageHeight:d}=this.pageConfig,h=o+r+s+t-l,c=s+i-n,u=.5*t-o-.5*r,p=o+.5*r+.5*t-l,m=s+t-o,g=.5*i-n-.5*a,f=n+.5*a+.5*i-d,w=n+a+s+i-d,y=Math.min(.25*r+s,o+r+s),v=Math.min(l-o-.5*r-.5*t,.5*t),x=Math.min(.5*t,o+.5*r-.5*t),C=Math.min(.25*r+s,l-(o-s)),b=Math.min(d-n-.5*a-.5*i,.5*i),I=Math.min(.5*i,n+.5*a-.5*i);if(e===this.winPositionMap.topRight){if(c<=0&&h>0&&h0&&u0&&p0?(this.transformX=u,this.isShowLineSvg&&this.showLineSvg(e,u)):p>0&&(this.transformX=-p,this.isShowLineSvg&&this.showLineSvg(e,-p)))}else if(e===this.winPositionMap.topLeft){if(c<=0&&m>0&&m0&&g0&&f0?(this.transformY=g,this.isShowLineSvg&&this.showLineSvg(e,0,g)):f>0&&(this.transformY=-f,this.isShowLineSvg&&this.showLineSvg(e,0,-f)))}else if(e===this.winPositionMap.bottomLeft){if(w<=0&&m>0&&m0&&u0&&p0?(this.transformX=u,this.isShowLineSvg&&this.showLineSvg(e,u)):p>0&&(this.transformX=-p,this.isShowLineSvg&&this.showLineSvg(e,-p)))}else if(e===this.winPositionMap.bottomRight){if(w<=0&&h>0&&h0&&g0&&f0?(this.transformY=g,this.isShowLineSvg&&this.showLineSvg(e,0,g)):f>0&&(this.transformY=-f,this.isShowLineSvg&&this.showLineSvg(e,0,-f)));if(this.commentPosChangeCount++,this.commentPosChangeCount>=16){const e=n+.5*a-.5*this.commentOpts.commentHeight,t=o+.5*r-.5*this.commentOpts.commentWidth,i=o+.5*r+.5*this.commentOpts.commentWidth-l;return e<0&&(this.transformY=Math.abs(e)),(t<0&&i<=0||t>=0&&i>0)&&(this.transformX=t<0?Math.abs(t):-i),this.isShowLineSvg=!1,this.position=this.winPositionMap.center,void(this.commentMaxWidth=this.commentOpts.windowWP.maxW)}let S;switch(e){case this.winPositionMap.topRight:S=this.winPositionMap.top;break;case this.winPositionMap.top:S=this.winPositionMap.topLeft;break;case this.winPositionMap.topLeft:S=this.winPositionMap.left;break;case this.winPositionMap.left:S=this.winPositionMap.bottomLeft;break;case this.winPositionMap.bottomLeft:S=this.winPositionMap.bottom;break;case this.winPositionMap.bottom:S=this.winPositionMap.bottomRight;break;case this.winPositionMap.bottomRight:S=this.winPositionMap.right;break;case this.winPositionMap.right:S=this.winPositionMap.topRight}if(this.commentPosChangeCount>=8&&this.commentPosChangeCount<16){const e=12,t=Math.floor(l-o-r-s),i=Math.floor(o-s),n=Math.floor(l),a=Math.floor(l);switch(S){case this.winPositionMap.top:this.commentMaxWidth=n;break;case this.winPositionMap.bottom:this.commentMaxWidth=a;break;case this.winPositionMap.topRight:case this.winPositionMap.bottomRight:case this.winPositionMap.right:this.commentMaxWidth=Math.max(t,2*e+this.commentOpts.contentProps.fontSize);break;case this.winPositionMap.topLeft:case this.winPositionMap.left:case this.winPositionMap.bottomLeft:this.commentMaxWidth=Math.max(i,2*e+this.commentOpts.contentProps.fontSize)}}this.showComment(S)}))},commentWithinPage:function(e,t,i){const s=15;let n=0,o=0,r=0,a=0;if(this.item.isGroupItem){const{top:e,left:t,width:i,height:s}=this.item.groupStyle,{top:l,left:d,width:h,height:c}=this.item.style;n=parseFloat(e)+parseFloat(l),o=parseFloat(t)+parseFloat(d),r=parseFloat(h),a=parseFloat(c)}else{const{top:e,left:t,width:i,height:s}=this.item.style;n=parseFloat(e),o=parseFloat(t),r=parseFloat(i),a=parseFloat(s)}const{originPageWidth:l,originPageHeight:d}=this.pageConfig,h=o+r+s+2>=0,c=o+r+s+t<=l+2,u=o+2-s-t>=0,p=o-s<=l+2,m=n+2-s-i>=0,g=n-s<=d+2,f=n+a+s+2>=0,w=n+a+s+i<=d+2,y=o+.5*r+2-.5*t>=0,v=o+.5*r+.5*t<=l+2,x=n+.5*a+2-.5*i>=0,C=n+.5*a+.5*i<=d+2,b=n+2-s-i>=0,I=n-s<=d+2,S=n+a+s+2>=0,P=n+a+s+i<=d+2;switch(e){case this.winPositionMap.topRight:return h&&m&&c&&g;case this.winPositionMap.topLeft:return u&&m&&p&&g;case this.winPositionMap.bottomLeft:return u&&f&&p&&w;case this.winPositionMap.bottomRight:return h&&f&&c&&w;case this.winPositionMap.top:return b&&y&&I&&v;case this.winPositionMap.left:return u&&x&&p&&C;case this.winPositionMap.bottom:return S&&y&&P&&v;case this.winPositionMap.right:return h&&x&&c&&C}},showLineSvg:function(e,t=0,i=0){const s=15,n=39,{width:o,height:r}=this.item.style,a={[this.winPositionMap.topRight]:{startPoint:{x:parseFloat(o)/2+s,y:35.5},endPoint:{x:parseFloat(o)+30-t,y:1},transitionPoint:{x:parseFloat(o)+30-t-parseFloat(o)/5,y:1}},[this.winPositionMap.bottomRight]:{startPoint:{x:parseFloat(o)/2+s,y:parseFloat(r)+19.5+s+1},endPoint:{x:parseFloat(o)+30-t,y:parseFloat(r)+n+30+1},transitionPoint:{x:parseFloat(o)+30-t-parseFloat(o)/5,y:parseFloat(r)+n+30+1}},[this.winPositionMap.topLeft]:{startPoint:{x:parseFloat(o)/2+s,y:35.5},endPoint:{x:t,y:1},transitionPoint:{x:t+parseFloat(o)/5,y:1}},[this.winPositionMap.bottomLeft]:{startPoint:{x:parseFloat(o)/2+s,y:parseFloat(r)+19.5+s+1},endPoint:{x:t,y:parseFloat(r)+n+30+1},transitionPoint:{x:t+parseFloat(o)/5,y:parseFloat(r)+n+30+1}},[this.winPositionMap.top]:{startPoint:{x:parseFloat(o)/2+s,y:35.5},endPoint:{x:parseFloat(o)/2+s+t,y:20.5},transitionPoint:{x:parseFloat(o)/2+s+t,y:20.5}},[this.winPositionMap.left]:{startPoint:{x:s,y:parseFloat(r)/2+19.5+s+1},endPoint:{x:0,y:parseFloat(r)/2+19.5+s+1+i},transitionPoint:{x:0,y:parseFloat(r)/2+19.5+s+1+i}},[this.winPositionMap.bottom]:{startPoint:{x:parseFloat(o)/2+s,y:parseFloat(r)+19.5+s+1},endPoint:{x:parseFloat(o)/2+s+t,y:parseFloat(r)+19.5+30+1},transitionPoint:{x:parseFloat(o)/2+s+t,y:parseFloat(r)+19.5+30+1}},[this.winPositionMap.right]:{startPoint:{x:parseFloat(o)+s,y:parseFloat(r)/2+19.5+s+1},endPoint:{x:parseFloat(o)+30,y:parseFloat(r)/2+19.5+s+1+i},transitionPoint:{x:parseFloat(o)+30,y:parseFloat(r)/2+19.5+s+1+i}}},{startPoint:l,endPoint:d,transitionPoint:h}=a[e];this.startPoint=l,this.endPoint=d,this.transitionPoint=h}}},kt=(0,ot.Z)($t,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"comment-preview"},[t("div",{staticClass:"comment-container",style:e.contentBoxStyle},[t("span",{ref:"comment",staticClass:"comment",style:e.commentStyle,domProps:{innerHTML:e._s(e.commentOpts.contentProps.content?e.commentOpts.contentProps.content:e.commentOpts.contentProps.defaultContent)}})]),e.isShowLineSvg?t("svg",{staticClass:"line-svg",attrs:{xmlns:"http://www.w3.org/2000/svg"}},[t("polyline",{attrs:{fill:"none",stroke:e.commentOpts.lineOpts.lineColor,points:e.points,"stroke-dasharray":e.svgLine}})]):e._e()])}),[],!1,null,"08e28822",null).exports,Lt={name:"OutMaskDom",data(){return{}},inject:["getCurrentPage"],props:["item","groupKey"],computed:{maskImageFile:function(){return this.item.animationFiles.maskImageFile},showMaskImgDom:function(){return this.item.isShowMaskImage&&""!==this.maskImageFile.url},maskImgDomStyle:function(){if(this.showMaskImgDom){let e={},t=this.maskImageFile.x*parseFloat(this.item.style.width)/100,i=this.maskImageFile.y*parseFloat(this.item.style.height)/100;return e.maskImage=`url(${this.maskImageFile.url})`,e.maskRepeat=this.maskImageFile.maskRepeat,e.maskPosition=`${t}px ${i}px`,e.maskSize=`${this.maskImageFile.width}% ${this.maskImageFile.height}%`,e}return{}},pageIndex:function(){return this.item.pageIndex},transform:function(){return this.item.pathTransform},viewBox:function(){let e=this.item.pathViewBox,t=parseFloat(e.match(/-?\d.*\d/g)[0].split(" ")[2]),i=parseFloat(e.match(/-?\d.*\d/g)[0].split(" ")[3]);return t<1&&(t=1),i<1&&(i=1),`0 0 ${t} ${i}`},maskFile:function(){return this.item.animationFiles.maskFiles},inMaskFile:function(){return this.maskFile.in},outMaskFile:function(){return this.maskFile.out},oppositeTime:function(){return-1},hasPaintedAnime:function(){let e=this.item;return!Pt(e)&&"painted"===e.animations.in.type},paintedAnimeOpacity:function(){if(!this.hasPaintedAnime)return{};let e={},t=this.item.animations.in,i=t.duration,s=t.delay,n=.1*i,o=.8*i,r=this.$store.state.animeTime[this.pageIndex]-s-o-n;return r<=0&&(e.opacity=0),r>=0&&r<=n&&(e.opacity=r/n),e},pathAnimeOpacity:function(){if(this.hasPaintedAnime){let e=this.item.animations.in.duration,t=.1*e,i=.8*e,s=this.$store.state.animeTime[this.pageIndex]-this.item.animations.in.delay-i-t,n={};return s>=0&&(n.opacity=1-s/t),s<=0&&(n.opacity=1),n}},showOutMaskDom:function(){const e=this.item;if(!Pt(e)){const t=e.animations.out.type;if(("mask"===t||"outErase"===t)&&-1===this.groupKey)return!0}return!1},outMaskDomStyle:function(){if(this.showOutMaskDom){let e=this.item,t={},i=e.maskConfig,s=e.animations.out,n=e.outEraseConfig;if("mask"===s.type){t.clipPath="none";let n=i.out;ge(s)?t.maskImage=`url( ${this.outMaskFile.url})`:"gradient"===n.maskType?t.maskImage=n.maskImage:t.maskImage="none",t.maskRepeat=n.repeat,t.maskPosition=n.position,(({item:e,isInMaskAnime:t})=>{let i=e.existEndTime,s=e.animations,n=e.pageIndex,o=me.P6.getPageTime(n-1),r=T.Z.state.animeTime[n]-o;if(t){let e=s.out.duration;return!(r<=i&&r>=i-e)}return r>i-s.out.duration&&r1?e("div",i.map((e=>e))):i;if(!t.showOutMaskDom&&!t.showMaskImgDom&&!t.hasPaintedAnime)return s;{const i=e("div",{class:"paintedAnimeOpacity",style:t.paintedAnimeOpacity},[s]),n=t.hasPaintedAnime?e("div",{class:"painted",style:t.pathAnimeOpacity},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/1999/xlink",width:"100%",height:"100%",viewBox:t.viewBox,id:`svg${t.item.id}`}},[e("g",{attrs:{transform:t.transform},domProps:{innerHTML:t.item.paintSvgCode}})])]):"",o=t.showOutMaskDom?e("div",{class:"outMaskDom",style:t.outMaskDomStyle},[t.showMaskImgDom?e("div",{class:"maskImgDom",style:t.maskImgDomStyle},[t.hasPaintedAnime?i:s]):t.hasPaintedAnime?i:s]):t.showMaskImgDom?e("div",{class:"maskImgDom",style:t.maskImgDomStyle},[t.hasPaintedAnime?i:s]):t.hasPaintedAnime?i:s;return t.hasPaintedAnime?e("div",[o,n]):o}}},Mt=(0,ot.Z)(Lt,undefined,undefined,!1,null,"598651aa",null).exports,Et=i(8598);const At=[{action:"iframe",timeList:[{time:"2024-12-13 00:00",desc:"弹出窗口使用独立弹窗",key:"independentWindow"},{time:"2025-01-20 00:00",desc:"弹出类触发动作反转显示顺序",key:"reversePopup"}]},{action:"popupImg",timeList:[{time:"2024-12-13 00:00",desc:"弹出图片使用独立弹窗",key:"independentWindow"},{time:"2025-01-20 00:00",desc:"弹出类触发动作反转显示顺序",key:"reversePopup"}]},{action:"popupMsg",timeList:[{time:"2024-12-13 00:00",desc:"弹出信息使用独立弹窗",key:"independentWindow"},{time:"2025-01-20 00:00",desc:"弹出类触发动作反转显示顺序",key:"reversePopup"}]},{action:"popupVideo",timeList:[{time:"2024-12-13 00:00",desc:"弹出视频使用独立弹窗",key:"independentWindow"},{time:"2025-01-20 00:00",desc:"弹出类触发动作反转显示顺序",key:"reversePopup"}]}],_t=(e="",t=0)=>{if(!e)return!1;const i=At.find((t=>t.action===e));if(!i||!i.timeList)return!1;const s=i.timeList.find((e=>"independentWindow"===e.key));if(!s||!s.time)return!1;return t>new Date(s.time).getTime()},Wt=(e=[])=>{if(0===e.length)return e;if(!((e=[])=>{const t=At.reduce(((e,t)=>(e[t.action]=t.timeList.find((e=>"reversePopup"===e.key)),e)),{}),i=(e,i,s)=>{const n=t[i];if(!n)return s;const o=e[i]?.newTime;return o&&o>new Date(n.time).getTime()?s+1:s};let s=0;for(let t=0;t=2})(e))return e;const t=[],i=["iframe","popupImg","popupMsg","popupVideo"];if(e.forEach(((e,s)=>{i.forEach((i=>{Object.keys(e[i]).length>0&&t.push(s)}))})),t.length<2||t.length>4)return e;if(t.some((t=>t<0||t>=e.length)))return e;const s=t.map((t=>e[t])).reverse(),n=[...e];return t.forEach(((e,t)=>{n[e]=s[t]})),n};function Ft(e){const t=[/(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=([0-9A-Za-z_-]+)(?:&.*)?/,/https:\/\/youtu\.be\/([0-9A-Za-z_-]+)/,/(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/([0-9A-Za-z_-]+)/];for(let i of t){let t=e.match(i);if(t)return t[1]}return e}var Ot={name:"WechatDownloadTips",computed:{isIOS:function(){return this.$store.state.isIOS},tipsText:function(){return this.isIOS?"请在Safari或其他浏览器打开此网页来下载文件。":"可在浏览器打开此网页来下载文件。"}}},Bt=(0,ot.Z)(Ot,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"WechatDownloadTips"},[t("span",{staticClass:"tips"},[e._v(e._s(e.tipsText))])])}),[],!1,null,"2d9a4df6",null).exports,Zt=i(6497),Ht=i(5705),Nt={name:"PlayAudio",props:{item:{type:Object,required:!0},pageIndex:{type:Number,required:!0,desc:"元素所在的页码"}},data:function(){return{rotateId:null,itemLayout:null,rotateVal:0,specPlayIndex:0}},mounted:function(){this.itemLayout=document.querySelector(`#ItemLayout${this.item.id}`),this.rotateVal=this.item.rotate},computed:{actionList:function(){return this.item.actionList},currentPlayAudio:function(){if(!this.actionList||0===this.actionList.length)return{};const{playAudio:e}=this.actionList.find((e=>{if((0,Zt.Ti)(e.playAudio))return e}));return e||{}},currentSrc:function(){if(-1===this.audioType)return"";let e="";switch(this.audioType){case 0:e=this.currentPlayAudio.link;break;case 1:e=this.currentPlayAudio.audioList[0].localLink;break;case 2:e=this.getSpecSrc()}return e},audioType:function(){return(0,Zt.Aq)(this.currentPlayAudio,"audioType")?this.currentPlayAudio.audioType:-1},pauseOrStopOnReClick:function(){return(0,Zt.Aq)(this.currentPlayAudio,"pauseOrStopOnReClick")?this.currentPlayAudio.pauseOrStopOnReClick:-1},isPauseBgSoundWhenPlay:function(){return!!(0,Zt.Aq)(this.currentPlayAudio,"isPauseBgSoundWhenPlay")&&this.currentPlayAudio.isPauseBgSoundWhenPlay},rotateWhenPlay:function(){return!!(0,Zt.Aq)(this.currentPlayAudio,"rotateWhenPlay")&&this.currentPlayAudio.rotateWhenPlay},specifyAudioList:function(){return(0,Zt.Aq)(this.currentPlayAudio,"specifyAudioList")?0===this.currentPlayAudio.specifyAudioList.length?[]:this.currentPlayAudio.specifyAudioList:[]},itemPageIndex:function(){return"number"==typeof this.pageIndex?this.pageIndex:this.item.pageIndex}},methods:{isCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.itemPageIndex+1===e||t.indexOf(this.itemPageIndex+1)>-1},playControl:function(){if(!this.isCurrentPage())return;if(!this.$refs.playAudio)return;const e=this.$refs.playAudio;-1!==this.pauseOrStopOnReClick&&(0===this.pauseOrStopOnReClick?e.paused?e.play():e.pause():e.paused?e.play():(e.pause(),e.currentTime=0))},playEvent:function(e){const t=e.target;this.bgSoundControl("play"),this.rotate(t)},pauseEvent:function(){this.bgSoundControl("pause")},timeupdateEvent:function(e){const t=e.target;this.isCurrentPage()||t.pause(),(0,Zt.q8)()&&(0,Zt.Mn)()&&t.paused&&"hidden"===document.visibilityState&&t.pause()},endEvent:async function(e){2===this.audioType&&this.playSpecList(e.target),window.bgSound.play()},bgSoundControl:function(e){if(!this.isPauseBgSoundWhenPlay||!window.bgSound)return;["play","pause"].includes(e)&&("play"===e&&(this.pauseAllPluginMusic(),(0,Zt.tr)({ignoreId:`playAudio${this.item.id}`})),"play"===e?window.bgSound.pause():window.bgSound.play())},pauseAllPluginMusic:function(){const e=(0,Ht.Ru)();e.length>0&&e.forEach((e=>{e.paused||e.pause()}))},rotate:function(e){if(this.rotateWhenPlay&&this.itemLayout)return this.rotateId?(window.clearInterval(this.rotateId),void(this.rotateId=null)):void(this.rotateId=window.setInterval((()=>{if(e.paused)return window.clearInterval(this.rotateId),void(this.rotateId=null);this.rotateVal>=360&&(this.rotateVal=0),this.rotateVal+=1.2,this.itemLayout.style.transform=`rotateZ(${this.rotateVal}deg) rotateX(${this.item.rotateX}deg) rotateY(${this.item.rotateY}deg)`}),10))},getSpecSrc:function(){if(0===this.specifyAudioList.length)return"";const e=this.specifyAudioList[0].musicList;return this.specPlayIndex>e.length-1?"":e[this.specPlayIndex].url},playSpecList:async function(e){++this.specPlayIndex;const t=this.specifyAudioList[0].musicList;this.specPlayIndex>t.length-1||(e.load(),await this.$nextTick(),e.play())}}},zt=(0,ot.Z)(Nt,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PlayAudio"},[t("audio",{ref:"playAudio",staticClass:"play-audio",attrs:{id:`playAudio${e.item.id}`,preload:"auto",src:e.currentSrc},on:{play:e.playEvent,pause:e.pauseEvent,timeupdate:e.timeupdateEvent,ended:e.endEvent}})])}),[],!1,null,"da1edda0",null).exports,Rt={name:"LightboxForItemLayout",data(){return{showContent:!1,isShowLightbox:this.isShow,handler:null}},props:["isShowPopClose","isNoPaddingTop","isTriggleBox","isHiddenHeaderTitle","isAutoPopSize","isAutoPopImg","isPhone","isShowBottomPadding","modalType","sizeType","isShow","showClose","showOutsideClose","showConfirm","showAlert","hideTitleLine","isAutoWidth","customWidth","customHeight","hasNoBorderRadius","hasLoading","hasPadding","hasMinheight","title","secondTitle","message","forbidClickBg","forbidClose","forbidConfirm","forbidKeyboard","isClickContentClose","closeCallBack","lightboxZIndex","hiddenOverFlow","isArticle","lightboxContentBackground","popUpImgLoading"],computed:{lightboxStyle:function(){let e={};return this.lightboxZIndex&&(e.zIndex=this.lightboxZIndex),e},lightboxCenteredStyle:function(){let e={};if(this.customWidth){let t=this.customWidth;t>.85*window.innerWidth&&(t=.85*window.innerWidth),e.width=t+"px",e.maxWidth=t+"px"}if(this.customHeight){let t=this.customHeight;t>.85*window.innerHeight&&(t=.85*window.innerHeight),e.height=t+"px",e.maxHeight=t+"px"}return this.hiddenOverFlow||(e.overflow="hidden"),e},lightBoxTitle:function(){let e=this.title;return(""===e||this.message)&&(e="提示"),this.isHiddenHeaderTitle&&(e=""),e},isHasPadding:function(){let e=this.hasPadding||this.title||this.message||this.showConfirm||this.showAlert;return!1===this.hasPadding&&(e=!1),e},showCloseIcon:function(){let e=this.title||this.showClose||this.message||this.showConfirm||this.showAlert;return!1===this.showClose&&(e=!1),e},backgroundStyle:function(){let e={"background-color":"#ffffff"};return this.lightboxContentBackground&&(e["background-color"]=this.lightboxContentBackground),e}},methods:{afterEnter:function(){this.$emit("domLoaded"),this.$refs.Lightbox&&this.$refs.Lightbox.addEventListener("keydown",(e=>{e.cancelBubble=!0,e.stopPropagation()}))},closeLightbox:function(e){if(this.forbidClose)return;if(0!==e.button&&"click"===e.type||this.forbidClose)return;"lightbox-centered"===e.target.className&&this.forbidClickBg||(this.showContent=!1,this.isShowLightbox=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})),this.closeCallBack&&this.closeCallBack())},contentClickFn:function(e){this.isClickContentClose&&(this.showContent=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})))}},mounted:function(){let e=this;e.isShow&&(e.showContent=!0),e.forbidKeyboard||"Confirm"!==e.modalType||(e.handler=function(){let t=event||window.event,i=t.keyCode;t.stopPropagation(),t.cancelBubble=!0,e.isShowLightbox&&27===i&&e.closeLightbox(t)},document.addEventListener("keyup",e.handler))},destroyed:function(){document.removeEventListener("keyup",this.handler)}},Vt=(0,ot.Z)(Rt,(function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"lightbox-fade"}},[t("div",{ref:"Lightbox",staticClass:"Lightbox",class:{triggleBox:e.isTriggleBox},style:e.lightboxStyle,attrs:{id:"Lightbox"},on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"lightbox-bg"}),t("transition",{attrs:{name:"fade"},on:{"after-enter":e.afterEnter}},[e.showContent?t("div",{staticClass:"lightbox-container",class:{"pop-container":e.isShowPopClose}},[e.isShowPopClose?t("div",{staticClass:"outer-pop-circle",on:{click:e.closeLightbox}},[t("div",{staticClass:"reader-icon outPopBtn"})]):e._e(),t("div",{staticClass:"lightbox-table"},[t("div",{staticClass:"lightbox-centered",on:{mousedown:function(t){return t.stopPropagation(),e.closeLightbox.apply(null,arguments)}}},[e.isShow?t("div",{staticClass:"lightbox-content",class:[e.sizeType,{isAutoWidth:e.isAutoWidth,hasNoBorderRadius:e.hasNoBorderRadius,isAutoPop:e.isAutoPopSize,isPhone:e.isPhone,isAutoPopImg:e.isAutoPopImg,"scale-before":e.popUpImgLoading,"scale-after":!e.popUpImgLoading,"scale-before-auto":e.isAutoPopSize&&e.popUpImgLoading,"scale-after-auto":e.isAutoPopSize&&!e.popUpImgLoading}],style:[e.lightboxCenteredStyle,e.backgroundStyle],on:{mousedown:function(e){e.stopPropagation()},click:function(t){return t.stopPropagation(),e.contentClickFn.apply(null,arguments)}}},[e.hasLoading?t("div",{staticClass:"loading"},[t("svg",{attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])]):e._e(),t("div",{staticClass:"content-container",class:{hasPadding:e.isHasPadding,paddingTop:e.isHiddenHeaderTitle&&!e.isNoPaddingTop,noPaddingTop:e.isNoPaddingTop,hasMinheight:!e.hasMinheight,hasNoPaddingBottom:!e.showConfirm&&!e.showAlert&&!e.isShowBottomPadding}},[e.showOutsideClose?t("div",{staticClass:"reader-icon outsideBtn",class:{disabled:e.forbidClose},on:{click:e.closeLightbox}}):e._e(),e.isHiddenHeaderTitle||e.lightBoxTitle||e.showCloseIcon?t("div",{staticClass:"box-header",class:{hideTitleLine:e.hideTitleLine,noTitle:!e.lightBoxTitle},style:{"border-bottom":e.isShowBottomPadding?"none":""}},[e.lightBoxTitle?t("p",{staticClass:"box-title"},[t("span",{domProps:{innerHTML:e._s(e.lightBoxTitle)}}),t("span",{staticClass:"seconde-title",domProps:{innerHTML:e._s(e.secondTitle)}})]):e._e()]):e._e(),t("div",{staticClass:"box-main",class:{hasNoPadding:!1===e.isHasPadding,noTitleMain:e.isHiddenHeaderTitle}},[e.message?t("p",{staticClass:"box-message"},[e._v(e._s(e.message))]):e._e(),t("div",{staticClass:"content",style:e.backgroundStyle},[e._t("default")],2)])]),e.showCloseIcon?t("div",{staticClass:"reader-icon closeBtn",class:{disabled:e.forbidClose,noTitle:!e.lightBoxTitle},on:{click:e.closeLightbox}}):e._e(),e.isArticle&&e.isPhone?t("div",{staticClass:"reader-icon backBtn",class:{disabled:e.forbidClose,noTitle:!e.lightBoxTitle},on:{click:function(t){return t.stopPropagation(),e.closeLightbox.apply(null,arguments)}}}):e._e()]):e._e()])])]):e._e()])],1)])}),[],!1,null,"2297c0c3",null),Dt=Vt.exports,Gt={name:"PopupImgPhoneSlideBox",data(){return{showContent:!1,isShowLightbox:this.isShow,handler:null}},props:["isShow","isHidePopTitleAndDesc","currentPopImgItem","currentPopImgLength","currentPopImageIndex"],computed:{hasTitle:function(){return!!this.currentPopImgItem.title.trim()}},methods:{hidePhoneSlideBox:function(){setTimeout((()=>{this.$emit("update:isShow",!1)}))},openPopImgLink:function(e){if(!e.link)return;if(/^(https?:\/\/)/.test(e.link))return window.open(e.link);window.open(`https://${e.link}`)}},mounted:function(){}},Yt=(0,ot.Z)(Gt,(function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"slide-fade"}},[t("div",{ref:"SlideBox",staticClass:"SlideBox",attrs:{id:"SlideBox"},on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"SlideBox-bg"}),t("div",{staticClass:"SlideBox-top",class:{"top-noTitle":!e.hasTitle}},[t("div",{staticClass:"top-content"},[t("p",{directives:[{name:"show",rawName:"v-show",value:!e.isHidePopTitleAndDesc,expression:"!isHidePopTitleAndDesc"}],staticClass:"SlideBox-title"},[e._v(" "+e._s(e.currentPopImgItem.title)+" ")]),t("div",{staticClass:"top-btn-box"},[t("span",{staticClass:"reader-icon slide-back",on:{click:function(t){return t.stopPropagation(),e.hidePhoneSlideBox.apply(null,arguments)}}}),e.currentPopImgItem.link&&!e.isHidePopTitleAndDesc?t("span",{staticClass:"reader-icon slide-link",on:{click:function(t){return t.stopPropagation(),e.openPopImgLink(e.currentPopImgItem)}}}):e._e()]),e.currentPopImgLength>1&&!e.isHidePopTitleAndDesc?t("p",{staticClass:"slide-page"},[t("span",{staticClass:"current-page"},[e._v(e._s(e.currentPopImageIndex+1))]),e._v("/"),t("span",{staticClass:"total-page"},[e._v(e._s(e.currentPopImgLength))])]):e._e()])]),t("div",{staticClass:"SlideBox-content",class:{noTitle:!e.hasTitle}},[e._t("default")],2)])])}),[],!1,null,"11ea6cbe",null),jt=Yt.exports,Ut=(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{staticClass:"loading-icon-svg",staticStyle:{"enable-background":"new 0 0 50 50"},attrs:{version:"1.1",id:"图层_1",fill:"#818285",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve"}},[e("path",{attrs:{d:"M25,1.3c0.5,0,0.9,0.2,1.2,0.5c0.3,0.3,0.5,0.7,0.5,1.2v10.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V3c0-0.5,0.2-0.9,0.5-1.2C24.1,1.4,24.5,1.3,25,1.3z M25,35.2c0.5,0,0.9,0.2,1.2,0.5\n c0.3,0.3,0.5,0.7,0.5,1.2V47c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V36.9\n c0-0.5,0.2-0.9,0.5-1.2C24.1,35.3,24.5,35.2,25,35.2z M48.7,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H36.9\n c-0.5,0-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2s0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5H47c0.5,0,0.9,0.2,1.2,0.5\n C48.6,24.1,48.7,24.5,48.7,25z M14.8,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H3c-0.5,0-0.9-0.2-1.2-0.5\n c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5h10.2c0.5,0,0.9,0.2,1.2,0.5C14.7,24.1,14.8,24.5,14.8,25z\n M8.2,8.2C8.6,7.9,9,7.7,9.4,7.7c0.5,0,0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.4,0.5,0.8,0.5,1.2c0,0.4-0.2,0.8-0.5,1.2\n c-0.3,0.3-0.7,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.3-0.3-0.5-0.7-0.5-1.2C7.7,9,7.9,8.6,8.2,8.2z M32.2,32.2\n c0.4-0.4,0.8-0.5,1.2-0.5s0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.3,0.5,0.7,0.5,1.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n c-0.5,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.4-0.4-0.5-0.8-0.5-1.2S31.9,32.6,32.2,32.2L32.2,32.2z M41.8,8.2c0.3,0.4,0.5,0.8,0.5,1.2\n c0,0.5-0.2,0.8-0.5,1.2l-7.2,7.2c-0.4,0.3-0.8,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.4,0.2-0.8,0.5-1.2\n l7.2-7.2c0.3-0.3,0.7-0.5,1.2-0.5C41,7.7,41.4,7.9,41.8,8.2z M17.8,32.2c0.4,0.4,0.5,0.8,0.5,1.2s-0.2,0.8-0.5,1.2l-7.2,7.2\n c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.8,0.5-1.2l7.2-7.2c0.4-0.4,0.8-0.5,1.2-0.5\n S17.4,31.9,17.8,32.2L17.8,32.2z"}})])}),[],!1,null,null,null).exports,Xt=(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{staticClass:"svg",staticStyle:{"enable-background":"new 0 0 20 20"},attrs:{fill:"#fff",version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 20 20","xml:space":"preserve"}},[e("path",{staticClass:"st0",attrs:{d:"M15.2,19.5C15.1,19.5,15.1,19.5,15.2,19.5c-0.7,0.6-1.7,0.6-2.3,0l-8.1-8.3c-0.6-0.6-0.6-1.7,0-2.3l8.1-8.3l0,0 c0.6-0.6,1.6-0.6,2.2,0c0.6,0.7,0.6,1.7,0,2.3L8.2,9.9l6.9,7.1C15.8,17.8,15.8,18.8,15.2,19.5L15.2,19.5z"}})])}),[],!1,null,null,null).exports,qt=(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{staticClass:"svg",staticStyle:{"enable-background":"new 0 0 20 20"},attrs:{fill:"#fff",version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 20 20","xml:space":"preserve"}},[e("path",{staticClass:"st0",attrs:{d:"M4.8,0.5C4.9,0.5,4.9,0.5,4.8,0.5c0.7-0.6,1.7-0.6,2.3,0.1l8.1,8.3c0.6,0.6,0.6,1.7,0,2.3l-8.1,8.3l0,0 c-0.6,0.6-1.6,0.6-2.2,0c-0.6-0.7-0.6-1.7,0-2.3l6.9-7.2L4.9,2.9C4.2,2.2,4.2,1.2,4.8,0.5L4.8,0.5z"}})])}),[],!1,null,null,null).exports,Qt=(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{staticStyle:{"enable-background":"new 0 0 50 50"},attrs:{version:"1.1",id:"图层_1",fill:"#818285",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve"}},[e("path",{attrs:{d:"M25,1.3c0.5,0,0.9,0.2,1.2,0.5c0.3,0.3,0.5,0.7,0.5,1.2v10.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V3c0-0.5,0.2-0.9,0.5-1.2C24.1,1.4,24.5,1.3,25,1.3z M25,35.2c0.5,0,0.9,0.2,1.2,0.5\n c0.3,0.3,0.5,0.7,0.5,1.2V47c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V36.9\n c0-0.5,0.2-0.9,0.5-1.2C24.1,35.3,24.5,35.2,25,35.2z M48.7,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H36.9\n c-0.5,0-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2s0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5H47c0.5,0,0.9,0.2,1.2,0.5\n C48.6,24.1,48.7,24.5,48.7,25z M14.8,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H3c-0.5,0-0.9-0.2-1.2-0.5\n c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5h10.2c0.5,0,0.9,0.2,1.2,0.5C14.7,24.1,14.8,24.5,14.8,25z\n M8.2,8.2C8.6,7.9,9,7.7,9.4,7.7c0.5,0,0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.4,0.5,0.8,0.5,1.2c0,0.4-0.2,0.8-0.5,1.2\n c-0.3,0.3-0.7,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.3-0.3-0.5-0.7-0.5-1.2C7.7,9,7.9,8.6,8.2,8.2z M32.2,32.2\n c0.4-0.4,0.8-0.5,1.2-0.5s0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.3,0.5,0.7,0.5,1.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n c-0.5,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.4-0.4-0.5-0.8-0.5-1.2S31.9,32.6,32.2,32.2L32.2,32.2z M41.8,8.2c0.3,0.4,0.5,0.8,0.5,1.2\n c0,0.5-0.2,0.8-0.5,1.2l-7.2,7.2c-0.4,0.3-0.8,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.4,0.2-0.8,0.5-1.2\n l7.2-7.2c0.3-0.3,0.7-0.5,1.2-0.5C41,7.7,41.4,7.9,41.8,8.2z M17.8,32.2c0.4,0.4,0.5,0.8,0.5,1.2s-0.2,0.8-0.5,1.2l-7.2,7.2\n c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.8,0.5-1.2l7.2-7.2c0.4-0.4,0.8-0.5,1.2-0.5\n S17.4,31.9,17.8,32.2L17.8,32.2z"}})])}),[],!1,null,null,null).exports,Kt={name:"PopupImg",props:{curIframe:{type:Object,required:!0,desc:"存放弹出图片的信息"},closePopupImg:{type:Function,required:!0,default:()=>{}}},mounted:function(){this.isShowPopupImg=!0,this.isPhone()&&(this.isHidePopTitleAndDesc=!1,this.isPopDescOverHeight=!1,this.loadText()),this.popUpImgLoading=!0,this.currentPopImgScale=1,this.currentPopImageIndex=0},components:{Lightbox:Dt,PhoneSlideBox:jt,LoadingIcon:Ut,LeftButton:Xt,RightButton:qt,PcLoadingIcon:Qt},data(){return{isShowPopupImg:!1,currentPopImageIndex:0,popUpImgLoading:!1,isPopDescOverHeight:!1,isLoadedText:!1,isHidePopTitleAndDesc:!1,isLoadingPop:!0,textTimer:null,currentPopImgScale:1,isMouseDown:!1,scaleOriginX:"",scaleOriginY:"",popupImgTop:0,popupImgLeft:0,isShowFirstEnterAlert:!0,isExpandedPopDesc:!1,isChangePopImg:!1,startPos:"",popupImgTouchStore:{pageX:"",pageY:"",pageX2:"",pageY2:"",originX:"",originY:"",moveable:!1,originScale:"",scale:"",touchStartX:"",touchStartY:""},preTouchPosition:{x:0,y:0}}},watch:{currentPopImageIndex:function(){this.currentPopImgScale=1,this.popupImgTop=0,this.popupImgLeft=0},isShowPopupImg:function(e){e||window.setTimeout((()=>{this.closePopupImg()}),300)}},computed:{isPopupImgSvg:function(){return!!(this.isShowPopupImg&&this.curIframe&&this.curIframe.imgList&&this.curIframe.imgList.length)&&this.curIframe.imgList[this.currentPopImageIndex].fileName.indexOf(".svg")>-1},isFlipPro:function(){return this.$store.getters.isFlipPro},expandText:function(){return this.isFlipPro?"Expand":"展开"},hideText:function(){return this.isFlipPro?"Hide":"收起"},imgCanBeSave:function(){const e=this.curIframe.imgCanBeSave;return void 0===e||e?"auto":"none"}},methods:{isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())},isIphone:function(){return!!(window.isIphone&&window.isIphone()||window.isIpad&&window.isIpad())},closeCallBack:function(){this.isShowPopupImg=!1},updatePopupImgIndex:function(e){this.currentPopImageIndex+=e,this.currentPopImageIndex<0&&(this.currentPopImageIndex=this.curIframe.imgList.length-1),this.currentPopImageIndex>=this.curIframe.imgList.length&&(this.currentPopImageIndex=0),this.isPhone()&&(this.isPopDescOverHeight=!1,this.isLoadedText=!1,this.loadText())},loadText:function(){if(this.isHidePopTitleAndDesc)return;if(void 0===this.curIframe.imgList[this.currentPopImageIndex]&&(this.currentPopImageIndex=0),this.curIframe.imgList[this.currentPopImageIndex].desc.trim()){let e=document.querySelector("#popupImg-desc"+this.currentPopImageIndex);if(this.isLoadingPop=!0,this.isLoadedText=!1,!e)return void(this.textTimer=setTimeout((()=>{this.loadText()}),100));clearTimeout(this.textTimer),this.textTimer=null,this.waitTextLoaded(e)}else this.isLoadingPop=!1,this.isPopDescOverHeight=!1,this.isLoadedText=!0},waitTextLoaded:function(e){if(this.isPopDescOverHeight)return this.isLoadingPop=!1,void(this.isLoadedText=!0);e.offsetHeight>0?(e.offsetHeight>78?this.isPopDescOverHeight=!0:this.isPopDescOverHeight=!1,this.isLoadedText=!0,this.isLoadingPop=!1):setTimeout((()=>{this.waitTextLoaded(e)}),100)},openPopImgLink:function(e){if(!e.link)return;if(/^(https?:\/\/)/.test(e.link))return window.open(e.link);window.open(`https://${e.link}`)},popupImgScale:function(e){e.deltaY>0?(this.currentPopImgScale=this.currentPopImgScale-.05<1?1:this.currentPopImgScale-.05,1===this.currentPopImgScale&&(this.popupImgTop=0,this.popupImgLeft=0)):this.currentPopImgScale=this.currentPopImgScale+.05>2?2:this.currentPopImgScale+.05,this.scaleOriginX=e.layerX,this.scaleOriginY=e.layerY},popupImgMouseDown:function(e){this.$refs.pcLightbox.$el.addEventListener("mousemove",this.popupImgMouseMove),this.isMouseDown=!0},popupImgMouseMove:function(e){e=e||window.event,this.isMouseDown&&this.currentPopImgScale>1&&(this.popupImgTop=this.popupImgTop+e.movementY,this.popupImgLeft=this.popupImgLeft+e.movementX)},popupImgMouseUp:function(){this.isMouseDown=!1,this.$refs.pcLightbox.$el?.removeEventListener("mousemove",this.popupImgMouseMove)},loadImg:function(e){e.isLoading=!0;let t=new Image;t.src=this.getImgUrl(e),t.complete?(e.isLoading=!1,e.naturalWidth=t.naturalWidth,e.naturalHeight=t.naturalHeight,this.popUpImgLoading=!1,this.isPhone()||(this.isLoadingPop=!1)):t.onload=()=>{e.isLoading=!1,e.naturalWidth=t.naturalWidth,e.naturalHeight=t.naturalHeight,this.popUpImgLoading=!1,this.isPhone()||(this.isLoadingPop=!1)}},getImgUrl:function(e){return e.url},getMaxHeight:function(){let e=.9*window.innerHeight-50;return this.curIframe.imgList[this.currentPopImageIndex].title&&(e-=40),e},closeFirstAlert:function(){this.isShowFirstEnterAlert&&(this.isShowFirstEnterAlert=!1,window.localStorage&&window.localStorage.setItem("isShowFirstEnterAlert",!1))},exPandPopDesc:function(e){this.isExpandedPopDesc=e},showOrHidePopMsg:function(){this.isHidePopTitleAndDesc=!this.isHidePopTitleAndDesc,this.onlyLoadText()},onlyLoadText:function(){if(!this.isLoadedText)if(this.curIframe.imgList[this.currentPopImageIndex].desc.trim()){this.isLoadedText=!1;let e=document.querySelector("#popupImg-desc"+this.currentPopImageIndex);if(!e)return void(this.textTimer=setTimeout((()=>{this.onlyLoadText()}),100));clearTimeout(this.textTimer),this.textTimer=null,this.waitTextLoaded(e)}else this.isLoadingPop=!1,this.isPopDescOverHeight=!1,this.isLoadedText=!0},popImgTouchStart:function(e){e.targetTouches.length>1?this.isChangePopImg=!1:(this.isChangePopImg=!0,this.startPos=e.changedTouches[0])},popImgTouchEnd:function(e){this.isChangePopImg&&1===this.currentPopImgScale&&(this.closeFirstAlert(),e.changedTouches[0].pageX-this.startPos.pageX<-10&&this.updatePopupImgIndex(1),e.changedTouches[0].pageX-this.startPos.pageX>10&&this.updatePopupImgIndex(-1),this.startPos="")},popupImgScaleTouchStart:function(e){let t=e.touches,i=t[0],s=t[1];this.popupImgTouchStore.pageX=i.pageX,this.popupImgTouchStore.pageY=i.pageY,this.popupImgTouchStore.moveable=!0,s&&(this.recordPreTouchPosition(i),this.popupImgTouchStore.pageX2=s.pageX,this.popupImgTouchStore.pageY2=s.pageY),s||this.recordPreTouchPosition(i),this.popupImgTouchStore.originScale=this.popupImgTouchStore.scale||1},recordPreTouchPosition:function(e){this.preTouchPosition={x:e.clientX,y:e.clientY}},getTouchDistance:function(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},popupImgScaleTouchMove:function(e){if(!this.popupImgTouchStore.moveable)return;let t=e.touches,i=t[0],s=t[1];if(s){this.recordPreTouchPosition(i),this.$nextTick((function(){let e=document.querySelector(`.popupImgImg${this.currentPopImageIndex}`),t=e.offsetTop,n=e.offsetLeft;this.popupImgTouchStore.originX=(i.pageX+s.pageX)/2-n,this.popupImgTouchStore.originY=(i.pageY+s.pageY)/2-t})),this.popupImgTouchStore.pageX2||(this.popupImgTouchStore.pageX2=s.pageX),this.popupImgTouchStore.pageY2||(this.popupImgTouchStore.pageY2=s.pageY);let e=this.getTouchDistance({x:i.pageX,y:i.pageY},{x:s.pageX,y:s.pageY})/this.getTouchDistance({x:this.popupImgTouchStore.pageX,y:this.popupImgTouchStore.pageY},{x:this.popupImgTouchStore.pageX2,y:this.popupImgTouchStore.pageY2}),t=this.popupImgTouchStore.originScale*e;t>2&&(t=2),t<1&&(t=1),this.popupImgTouchStore.scale=t,this.currentPopImgScale=t,1===this.currentPopImgScale&&(this.popupImgTop=0,this.popupImgLeft=0)}!s&&this.currentPopImgScale>1&&(this.popupImgLeft=this.popupImgLeft+(i.clientX-this.preTouchPosition.x),this.popupImgTop=this.popupImgTop+(i.clientY-this.preTouchPosition.y),this.recordPreTouchPosition(i))},popupImgScaleTouchEnd:function(e){this.popupImgTouchStore.moveable=!1},popupImgScaleTouchCancel:function(e){this.popupImgTouchStore.moveable=!1}}},Jt=(0,ot.Z)(Kt,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PopupImg PopupImgContainer"},[!e.isPhone()&&e.isShowPopupImg&&e.curIframe&&e.curIframe.imgList&&e.curIframe.imgList.length?t("Lightbox",{key:"pc-iframe-lightbox",ref:"pcLightbox",attrs:{isShow:e.isShowPopupImg,isHasPadding:!0,hasMinheight:"zoomarea"===e.curIframe.type,hideTitleLine:!0,showClose:!1,hasNoBorderRadius:!0,title:e.curIframe.imgList[e.currentPopImageIndex].title?e.curIframe.imgList[e.currentPopImageIndex].title:" ",isShowBottomPadding:!0,hiddenOverFlow:!0,isAutoPopImg:!0,isHiddenHeaderTitle:!e.curIframe.imgList[e.currentPopImageIndex].title,isTriggleBox:!0,isShowPopClose:!0,popUpImgLoading:e.popUpImgLoading,closeCallBack:e.closeCallBack},on:{"update:isShow":function(t){e.isShowPopupImg=t},"update:is-show":function(t){e.isShowPopupImg=t}}},[t("div",{staticClass:"window-iframe isPC"},[e.curIframe.imgList.length>1?t("p",{staticClass:"popupImg-btn-left",on:{click:function(t){return e.updatePopupImgIndex(-1)}}},[t("span",{staticClass:"popupImg-btn-icon"},[t("LeftButton")],1)]):e._e(),e.curIframe.imgList.length>1?t("p",{staticClass:"popupImg-btn-right",on:{click:function(t){return e.updatePopupImgIndex(1)}}},[t("span",{staticClass:"popupImg-btn-icon"},[t("RightButton")],1)]):e._e(),e._l(e.curIframe.imgList,(function(i,s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentPopImageIndex===s,expression:"currentPopImageIndex === imgIndex"}],key:s,staticClass:"popupImg",class:{noPaddingBottom:!i.desc.trim(),"loading-min-size":i.isLoading}},[i.desc.trim()?t("div",{staticClass:"popupImg-msg"},[t("p",{staticClass:"popupImg-desc"},[e._v(e._s(i.desc))])]):e._e(),t("div",{staticClass:"popupImg-outer"},[t("div",{staticClass:"popupImg-scale",class:{canClick:i.link},style:{transform:"scale("+e.currentPopImgScale+")",transformOrigin:e.scaleOriginX+"px "+e.scaleOriginY+"px",top:e.popupImgTop+"px",left:e.popupImgLeft+"px"},on:{click:function(t){return t.stopPropagation(),e.openPopImgLink(i)}}},[t("img",{directives:[{name:"show",rawName:"v-show",value:!i.isLoading,expression:"!imgItem.isLoading"}],staticClass:"popupImg-img",style:{maxHeight:e.getMaxHeight()+"px",height:e.isPopupImgSvg?e.getMaxHeight()+"px":"",transform:"scale("+e.currentPopImgScale+") rotateX("+i.rotateX+"deg) rotateY("+i.rotateY+"deg)"},attrs:{src:e.getImgUrl(i)},on:{mousewheel:e.popupImgScale,mousedown:function(t){return t.preventDefault(),e.popupImgMouseDown.apply(null,arguments)},mouseup:function(t){return t.preventDefault(),e.popupImgMouseUp.apply(null,arguments)},load:function(t){return e.loadImg(i)}}})])]),i.isLoading?t("div",{staticClass:"popupImg-loading"},[t("div",{staticClass:"loading-icon-outer"},[t("div",{staticClass:"loading-icon-inner"},[t("PcLoadingIcon")],1)])]):e._e()])}))],2),e.curIframe.imgList.length>1?t("p",{staticClass:"slide-page"},[t("span",{staticClass:"current-page"},[e._v(e._s(e.currentPopImageIndex+1))]),e._v("/"),t("span",{staticClass:"total-page"},[e._v(e._s(e.curIframe.imgList.length))])]):e._e()]):e._e(),e.isShowPopupImg&&e.isPhone()?t("meta",{attrs:{name:"viewport",content:"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"}}):e._e(),e.isPhone()&&e.isShowPopupImg&&e.curIframe&&e.curIframe.imgList&&e.curIframe.imgList.length?t("PhoneSlideBox",{key:"phoneSlideBox-lightbox",ref:"phoneSlide",attrs:{isShow:e.isShowPopupImg,currentPopImgItem:e.curIframe.imgList[e.currentPopImageIndex],currentPopImageIndex:e.currentPopImageIndex,currentPopImgLength:e.curIframe.imgList.length,isHidePopTitleAndDesc:e.isHidePopTitleAndDesc},on:{"update:isShow":function(t){e.isShowPopupImg=t},"update:is-show":function(t){e.isShowPopupImg=t}}},[t("div",{staticClass:"window-iframe isPhone",on:{touchend:function(t){return t.stopPropagation(),e.closeFirstAlert.apply(null,arguments)}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isHidePopTitleAndDesc,expression:"!isHidePopTitleAndDesc"}],staticClass:"iframe-top"},[e.isShowFirstEnterAlert&&e.curIframe.link?t("span",{staticClass:"first-enter-alert"},[e._v(e._s(e.clickOpenLinkText)),t("span",{staticClass:"arrow"})]):e._e()]),e._l(e.curIframe.imgList,(function(i,s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentPopImageIndex===s,expression:"currentPopImageIndex === imgIndex"}],key:s,staticClass:"popupImg"},[e.isLoadingPop||i.isLoading?t("div",{staticClass:"popupImg-loading"},[t("div",{staticClass:"loading-icon"},[t("LoadingIcon",{staticClass:"loading-icon-svg"})],1)]):e._e(),i.desc.trim()&&!e.isHidePopTitleAndDesc?t("div",{staticClass:"popupImg-msg",style:{opacity:e.isLoadedText?1:0}},[e.isIphone()&&e.currentPopImageIndex===s&&e.isPopDescOverHeight&&!e.isExpandedPopDesc?t("span",{staticClass:"expandOrHide collapsed isIphone",on:{click:function(t){return t.stopPropagation(),e.exPandPopDesc(!0)}}},[e._v("["+e._s(e.expandText)+"]")]):e._e(),t("div",{staticClass:"popupImg-msg-outer",class:{ellipsis:e.currentPopImageIndex===s&&e.isPopDescOverHeight&&!e.isExpandedPopDesc}},[e.isIphone()||e.currentPopImageIndex!==s||!e.isPopDescOverHeight||e.isExpandedPopDesc?e._e():t("span",{staticClass:"expandOrHide collapsed",on:{click:function(t){return t.stopPropagation(),e.exPandPopDesc(!0)}}},[e._v("["+e._s(e.expandText)+"]")]),t("p",{ref:"msgdesc",refInFor:!0,staticClass:"popupImg-desc",attrs:{id:"popupImg-desc"+s}},[e._v(" "+e._s(i.desc)+" "),e.currentPopImageIndex===s&&e.isPopDescOverHeight&&e.isExpandedPopDesc?t("span",{staticClass:"expandOrHide expanded",on:{click:function(t){return t.stopPropagation(),e.exPandPopDesc(!1)}}},[e._v("["+e._s(e.hideText)+"]")]):e._e()])])]):e._e(),t("div",{staticClass:"popupImg-outer"},[t("div",{staticClass:"popupImg-scale",style:{transform:"scale("+e.currentPopImgScale+")"},on:{click:function(t){return t.stopPropagation(),e.showOrHidePopMsg.apply(null,arguments)},touchstart:function(t){return t.stopPropagation(),e.popImgTouchStart.apply(null,arguments)},touchend:function(t){return t.stopPropagation(),e.popImgTouchEnd.apply(null,arguments)}}},[t("img",{ref:"popupImgImg"+s,refInFor:!0,staticClass:"popupImg-img",class:"popupImgImg"+s,style:{transform:"scale("+e.currentPopImgScale+") rotateX("+i.rotateX+"deg) rotateY("+i.rotateY+"deg)",transformOrigin:e.popupImgTouchStore.originX+"px "+e.popupImgTouchStore.originY+"px",top:e.popupImgTop+"px",left:e.popupImgLeft+"px","pointer-events":e.imgCanBeSave},attrs:{src:e.getImgUrl(i)},on:{load:function(t){return e.loadImg(i)},touchstart:e.popupImgScaleTouchStart,touchmove:e.popupImgScaleTouchMove,touchend:e.popupImgScaleTouchEnd,touchcancel:e.popupImgScaleTouchCancel}})])])])}))],2)]):e._e()],1)}),[],!1,null,"331e8782",null),ei=Jt.exports,ti=i(9514);const ii=e=>{const t=Object.assign({},new ti.Y,e||{});if(0===t.imgList.length)return;return document.querySelector(".PopupImgContainer")?void 0:new Promise((()=>{const e=new(d.default.extend(ei))({propsData:{curIframe:t,closePopupImg:()=>{s()}}}),i=e.$mount().$el;document.body.appendChild(i);const s=()=>{document.body.contains(i)&&(e.$destroy(),document.body.removeChild(i))}}))};var si=i(2696),ni={name:"PreviewBlock",props:["popupMsgOpts"],data(){return{}},computed:{isFlipPro:function(){return this.$store.getters.isFlipPro},titleStyle:function(){const e={textAlign:this.popupMsgOpts.titleProps.textAlign,fontSize:this.popupMsgOpts.titleProps.fontSize+"px",color:this.popupMsgOpts.titleProps.fontColor,fontFamily:this.popupMsgOpts.titleProps.fontFamily};return~this.popupMsgOpts.titleProps.elements.indexOf("bold")&&(e.fontWeight="bold"),~this.popupMsgOpts.titleProps.elements.indexOf("italic")&&(e.fontStyle="italic"),~this.popupMsgOpts.titleProps.elements.indexOf("underline")&&(e.textDecoration="underline"),e},contentStyle:function(){const e={textAlign:this.popupMsgOpts.contentProps.textAlign,fontSize:this.popupMsgOpts.contentProps.fontSize+"px",color:this.popupMsgOpts.contentProps.fontColor,fontFamily:this.popupMsgOpts.contentProps.fontFamily,lineHeight:this.popupMsgOpts.contentProps.lineHeight,letterSpacing:this.popupMsgOpts.contentProps.letterSpacing+"px"};return~this.popupMsgOpts.contentProps.elements.indexOf("bold")&&(e.fontWeight="bold"),~this.popupMsgOpts.contentProps.elements.indexOf("italic")&&(e.fontStyle="italic"),~this.popupMsgOpts.contentProps.elements.indexOf("underline")&&(e.textDecoration="underline"),e},imgStyle(){return this.popupMsgOpts.imageOpts.imgW&&this.popupMsgOpts.imageOpts.imgH?{width:`${this.popupMsgOpts.imageOpts.imgW}px`,height:`${this.popupMsgOpts.imageOpts.imgH}px`}:{"max-width":"86px","max-height":"86px","object-fit":"contain"}}},methods:{clickConfirm:function(){this.popupMsgOpts.btnOpts.isClickClose&&this.$emit("closePanel","confirm"),this.popupMsgOpts.btnOpts.btnLink&&window.open(this.popupMsgOpts.btnOpts.btnLinkHead+this.popupMsgOpts.btnOpts.btnLink)},clickColse:function(){this.$emit("closePanel","close")}},components:{}},oi=(0,ot.Z)(ni,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"t-previewBlock"},[t("div",{staticClass:"top-title",style:{background:e.popupMsgOpts.titleProps.bgColor}},[t("span",{staticClass:"title",style:e.titleStyle,attrs:{title:e.popupMsgOpts.titleProps.content},domProps:{innerHTML:e._s(e.popupMsgOpts.titleProps.content)}}),t("div",{staticClass:"close-btn",on:{click:e.clickColse}},[t("div",{staticClass:"close-icon"})])]),t("div",{staticClass:"content-block",style:{background:e.popupMsgOpts.contentProps.bgColor}},[t("div",{staticClass:"content-top",class:{addBtn:e.popupMsgOpts.btnOpts.isAddBtn}},[1===e.popupMsgOpts.imageOpts.imgPosition?[t("div",{staticClass:"contnet scrollbarStyle",style:e.contentStyle,domProps:{innerHTML:e._s(e.popupMsgOpts.contentProps.content)}}),e.popupMsgOpts.imageOpts.imageUrl&&e.popupMsgOpts.imageOpts.isAddImage?t("img",{staticClass:"img img-right",style:e.imgStyle,attrs:{src:e.popupMsgOpts.imageOpts.imageUrl}}):e._e()]:[e.popupMsgOpts.imageOpts.imageUrl&&e.popupMsgOpts.imageOpts.isAddImage?t("img",{staticClass:"img img-left",style:e.imgStyle,attrs:{src:e.popupMsgOpts.imageOpts.imageUrl}}):e._e(),t("div",{staticClass:"contnet scrollbarStyle",style:e.contentStyle,domProps:{innerHTML:e._s(e.popupMsgOpts.contentProps.content)}})]],2),e.popupMsgOpts.btnOpts.isAddBtn?t("div",{staticClass:"confirm-btn"},[t("div",{staticClass:"this-btn",style:{background:e.popupMsgOpts.btnOpts.bgColor,color:e.popupMsgOpts.btnOpts.fontColor},on:{click:e.clickConfirm}},[e._v(" "+e._s(e.popupMsgOpts.btnOpts.btnText?e.popupMsgOpts.btnOpts.btnText:e.isFlipPro?"Confirm":"确认")+" ")])]):e._e()])])}),[],!1,null,"974d7dac",null).exports,ri={name:"PopupMsg",components:{Lightbox:Dt,PreviewBlock:oi},props:{popupMsgCurIframe:{type:Object,required:!0,desc:"存放弹出信息"},close:{type:Function,required:!0,default:()=>{}}},data(){return{isShowPopupMsg:!1}},mounted(){this.isShowPopupMsg=!0},watch:{isShowPopupMsg(e){e||window.setTimeout((()=>{this.close()}),300)}}},ai=(0,ot.Z)(ri,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PopupMsgContainer"},[e.isShowPopupMsg&&e.popupMsgCurIframe&&Object.keys(e.popupMsgCurIframe.windowWH).length?t("Lightbox",{attrs:{isShow:e.isShowPopupMsg,isShowBottomPadding:!1,customWidth:e.popupMsgCurIframe.windowWH.maxW,customHeight:e.popupMsgCurIframe.windowWH.maxH,hasNoBorderRadius:!1,isAutoPopSize:!0,isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,lightboxContentBackground:"unset"},on:{"update:isShow":function(t){e.isShowPopupMsg=t},"update:is-show":function(t){e.isShowPopupMsg=t}}},[t("PreviewBlock",{attrs:{popupMsgOpts:e.popupMsgCurIframe},on:{closePanel:function(t){e.isShowPopupMsg=!1}}})],1):e._e()],1)}),[],!1,null,"03fa8697",null).exports;var li=i(3765),di=(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"20",viewBox:"0 0 13 20",fill:"none"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.29325 14.795C8.56892 14.5216 8.56892 14.0784 8.29325 13.805L4.20415 9.75L8.29325 5.69497C8.56892 5.42161 8.56892 4.97839 8.29325 4.70503C8.01759 4.43166 7.57065 4.43166 7.29498 4.70503L2.70675 9.25503C2.43108 9.52839 2.43108 9.97161 2.70675 10.245L7.29498 14.795C7.57065 15.0683 8.01759 15.0683 8.29325 14.795Z",fill:"white","fill-opacity":"0.8"}})])}),[],!1,null,null,null).exports,hi=(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"}},[e("path",{attrs:{d:"M18.7371 2.07983H13.0345C12.0744 2.07952 11.1569 2.47659 10.5 3.17679C9.84306 2.47659 8.92564 2.07952 7.96552 2.07983H2.26293C1.73801 2.07981 1.3125 2.50533 1.3125 3.03026V14.4354C1.3125 14.9603 1.73802 15.3859 2.26293 15.3859H7.96552C8.84034 15.3859 9.54957 16.0951 9.54957 16.9699C9.54957 17.7016 10.3416 18.1588 10.9752 17.793C11.2693 17.6232 11.4504 17.3095 11.4504 16.9699C11.4504 16.095 12.1596 15.3858 13.0345 15.3859H18.7371C19.262 15.3859 19.6875 14.9603 19.6875 14.4354V3.03026C19.6875 2.50536 19.262 2.07983 18.7371 2.07983ZM7.96552 13.485H3.21336V3.9807H7.96552C8.84034 3.98073 9.54957 4.68993 9.54957 5.56475V13.866C9.05929 13.615 8.51629 13.4844 7.96552 13.485ZM17.7866 13.485H13.0345C12.4835 13.4847 11.9405 13.6158 11.4504 13.8676V5.56475C11.4504 4.68987 12.1596 3.98065 13.0345 3.9807H17.7866V13.485ZM13.3513 6.19837H15.8858C16.6174 6.1984 17.0747 6.99045 16.7089 7.62405C16.5391 7.91809 16.2253 8.09923 15.8858 8.09923H13.3513C12.6197 8.09923 12.1624 7.3072 12.5282 6.67358C12.698 6.37952 13.0117 6.19837 13.3513 6.19837ZM16.8362 10.3169C16.8362 10.8418 16.4107 11.2673 15.8858 11.2673H13.3513C12.6197 11.2673 12.1624 10.4753 12.5282 9.84168C12.698 9.54762 13.0117 9.36647 13.3513 9.36647H15.8858C16.4107 9.36647 16.8362 9.792 16.8362 10.3169Z",fill:"white"}})])}),[],!1,null,null,null).exports,ci=i(7162),ui=i(6397),pi=i(9318),mi={name:"PhonePopupVideoBox",data(){return{mediaQuery:null,isHorizonal:!1}},props:{item:{type:Object,required:!0,desc:"触发弹出事件的元素"},popupVideoProps:{type:Object,required:!0,desc:"弹出视频的属性"},realYouTubeId:{type:String,required:!1,desc:"YouTube视频ID"},realVimeoId:{type:String,required:!1,desc:"Vimeo视频ID"},youTubeIdOrVimeoId:{type:String}},mounted:function(){window.bgSound&&this.isPauseBgSoundWhenPlay&&window.bgSound.pause(),this.wechatAutoPlay(),this.autoPlayVideo(),this.evtListener()},beforeDestroy:function(){this.unbindEvt()},computed:{isYZPro:function(){return T.Z.getters.isYZPro},isWechatBrowser:function(){const e=navigator.userAgent;return/MicroMessenger/i.test(e)},videoType:function(){return this.popupVideoProps.videoType},videoLink:function(){return this.popupVideoProps.link},generalCode:function(){return this.popupVideoProps.generalCode},videoLocalLink:function(){return this.popupVideoProps.localLink},isAutoPlay:function(){return this.popupVideoProps.isAutoPlay},isLoop:function(){return this.popupVideoProps.isLoop},isPauseBgSoundWhenPlay:function(){return this.popupVideoProps.isPauseBgSoundWhenPlay},isPauseOtherVideoWhenPlay:function(){return this.popupVideoProps.isPauseOtherVideoWhenPlay},isPlayBgSound:{get(){return T.Z.state.isPlayBgSound},set(e){T.Z.state.isPlayBgSound=e}},mutePlay:function(){return this.popupVideoProps.mutePlay}},methods:{hidePhoneVideoBox:function(){this.$emit("close"),window.bgSound&&window.bgSound.play()},wechatAutoPlay:function(){if(this.isWechatBrowser&&this.isAutoPlay)return window?.WeixinJSBridge?window.WeixinJSBridge.invoke("getNetworkType",{},(()=>{1===this.videoType&&this.$refs?.popupVideoOuterLink&&this.$refs.popupVideoOuterLink.play(),2===this.videoType&&this.$refs?.popupVideoLocalLink&&this.$refs.popupVideoLocalLink.play()}),!1):void document.addEventListener("WeixinJSBridgeReady",(()=>{window?.WeixinJSBridge&&window.WeixinJSBridge.invoke("getNetworkType",{},(()=>{1===this.videoType&&this.$refs?.popupVideoOuterLink&&this.$refs.popupVideoOuterLink.play(),2===this.videoType&&this.$refs?.popupVideoLocalLink&&this.$refs.popupVideoLocalLink.play()}))}),!1)},autoPlayVideo:async function(){this.isAutoPlay&&(await this.$nextTick(),1===this.videoType&&this.$refs?.popupVideoOuterLink&&this.$refs.popupVideoOuterLink.play(),2===this.videoType&&this.$refs?.popupVideoLocalLink&&this.$refs.popupVideoLocalLink.play())},evtListener:function(){this.mediaQuery=window.matchMedia("(orientation: portrait)"),this.mediaQuery.addEventListener("change",this.mobileori),this.mobileori(this.mediaQuery)},unbindEvt:function(){this.mediaQuery.removeEventListener("change",this.mobileori),this.mediaQuery=null},mobileori:async function(e){await this.$nextTick(),e.matches||(this.isHorizonal=!0),e.matches&&(this.isHorizonal=!1)},playEvent:function(e){this.isPlayBgSound=!0,this.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,(0,pi.hb)(),window.bgSound&&window.bgSound.pause()),this.isPauseOtherVideoWhenPlay&&(0,pi.bv)(e)},pauseEvent:function(){this.isPauseBgSoundWhenPlay&&!this.isPlayBgSound&&window.bgSound&&window.bgSound.play()},localVideoPlay:function(e){this.playEvent(e)},localVideoPause:function(){this.pauseEvent()},videoLinkPlay:function(e){this.playEvent(e)},videoLinkPause:function(){this.pauseEvent()}},components:{CloseIcon_1:di,CloseIcon_2:hi,YoutubePlayerIframe:ci.default,VimeoPlayerIframe:ui.default}},gi=(0,ot.Z)(mi,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"popPhoneVideo",class:{"yz-background":e.isYZPro}},[t("div",{staticClass:"slide-back-outer",on:{click:function(t){return t.stopPropagation(),e.hidePhoneVideoBox.apply(null,arguments)}}},[t("CloseIcon_1"),t("CloseIcon_2")],1),0===e.videoType?t("div",{staticClass:"video-outer-box embed-code",class:{"is-horizonal":e.isHorizonal},domProps:{innerHTML:e._s(e.generalCode)}}):e._e(),1===e.videoType?t("div",{staticClass:"video-outer-box outer-link",class:{"is-horizonal":e.isHorizonal}},[t("video",{ref:"popupVideoOuterLink",staticClass:"video",attrs:{src:e.videoLink,autoplay:e.isAutoPlay,loop:e.isLoop,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload"},domProps:{muted:e.mutePlay},on:{play:e.videoLinkPlay,pause:e.videoLinkPause}})]):e._e(),2===e.videoType?t("div",{staticClass:"video-outer-box local-video",class:{"is-horizonal":e.isHorizonal}},[t("video",{ref:"popupVideoLocalLink",staticClass:"video",attrs:{src:e.videoLocalLink,loop:e.isLoop,autoplay:e.isAutoPlay,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload"},domProps:{muted:e.mutePlay},on:{play:e.localVideoPlay,pause:e.localVideoPause}})]):e._e(),3===e.videoType?t("div",{staticClass:"video-outer-box youtube-vimeo",class:{"is-horizonal":e.isHorizonal}},[3===e.videoType?t("YoutubePlayerIframe",{attrs:{item:e.item,pluginVideoPageIndex:0,popupVideoProps:e.popupVideoProps,realYouTubeId:e.realYouTubeId,isPopupVideo:!0}}):e._e()],1):e._e(),4===e.videoType?t("div",{staticClass:"video-outer-box youtube-vimeo",class:{"is-horizonal":e.isHorizonal}},[4===e.videoType?t("VimeoPlayerIframe",{attrs:{item:e.item,pluginVideoPageIndex:0,popupVideoProps:e.popupVideoProps,realVimeoId:e.realVimeoId,isPopupVideo:!0}}):e._e()],1):e._e()])}),[],!1,null,"528e7eca",null),fi={name:"PopupVideo",components:{Lightbox:Dt,PhonePopupVideoBox:gi.exports,YoutubePlayerIframe:ci.default,VimeoPlayerIframe:ui.default},props:{curIframe:{type:Object,required:!0,default:()=>{},desc:"存放弹出视频的信息"},close:{type:Function,required:!0,default:()=>{}},item:{type:Object,required:!0,desc:"触发弹出事件的元素"}},data(){return{isShowPopupVideo:!0,getYouTubeIdFromUrl:Ft}},computed:{popupVideoSrc:function(){switch(this.curIframe.videoInfo.videoType){case 1:return this.curIframe.videoInfo.link;case 2:return this.curIframe.videoInfo.localLink}},outerVideoHtml:function(){let e="";return e=3===this.curIframe.videoInfo.videoType?"":4===this.curIframe.videoInfo.videoType?"":"",e},popupVideoIsAutoPlay:function(){return this.curIframe.videoInfo.isAutoPlay},popupVideoIsLoop:function(){return this.curIframe.videoInfo.isLoop},vimeoLoop:function(){return this.popupVideoIsAutoPlay&&this.popupVideoIsLoop?"&loop=1":!this.popupVideoIsAutoPlay&&this.popupVideoIsLoop?"?loop=1":""},isHasPopupVideoLink:function(){return!!(this.curIframe.videoInfo.link||this.curIframe.videoInfo.youTubeId||this.curIframe.videoInfo.vimeoId||this.curIframe.videoInfo.generalCode||this.curIframe.videoInfo.videoName)},isPauseBgSoundWhenPlay:function(){return this.curIframe.videoInfo.isPauseBgSoundWhenPlay},isPlayBgSound:{get(){return T.Z.state.isPlayBgSound},set(e){T.Z.state.isPlayBgSound=e}},mutePlay:function(){return this.curIframe.videoInfo.mutePlay}},methods:{closeLightbox:function(){this.isShowPopupVideo=!1},isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())},videoPlay:function(e){this.isPlayBgSound=!0,this.curIframe.videoInfo.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,(0,pi.hb)(),window.bgSound&&window.bgSound.pause()),this.curIframe.videoInfo.isPauseOtherVideoWhenPlay&&(0,pi.bv)(e)},videoPause:function(){this.curIframe.videoInfo.isPauseBgSoundWhenPlay&&this.isPlayBgSound&&window.bgSound&&window.bgSound.play()},safariAutoPlayVideo:function(){if(!/Safari/.test(navigator.userAgent)||/Chrome/.test(navigator.userAgent))return;let e=window.setInterval((()=>{this.$refs.popupVideo&&(this.$refs.popupVideo.play(),this.$refs.popupVideo.paused||window.clearInterval(e))}),300)},getVimeoIdFromUrl:function(e){const t=e.match(/https?:\/\/(?:www\.)?vimeo\.com\/(\d+)(?:[/?].*)?/);return t&&t[1]?t[1]:e}},watch:{isShowPopupVideo:function(e){e||window.setTimeout((()=>{this.close()}),300)}}},wi=(0,ot.Z)(fi,(function(){var e=this,t=e._self._c;return e.curIframe&&Object.keys(e.curIframe).length&&e.isHasPopupVideoLink?t("div",{staticClass:"PopupVideoContainer"},[e.isPhone()?e._e():t("Lightbox",{attrs:{isShow:e.isShowPopupVideo,isHasPadding:!0,customWidth:e.curIframe.videoInfo.width,customHeight:e.curIframe.videoInfo.height,title:e.curIframe.videoInfo.title?e.curIframe.videoInfo.title:" ",hasNoBorderRadius:!1,isAutoPopSize:!0,isShowBottomPadding:!0,isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,isShowPopClose:!0},on:{"update:isShow":function(t){e.isShowPopupVideo=t},"update:is-show":function(t){e.isShowPopupVideo=t}}},[t("div",{staticClass:"window-iframe popup-video"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.curIframe.videoInfo.title)+" ")]),0===e.curIframe.videoInfo.videoType?t("div",{staticClass:"popupVideo-iframe",domProps:{innerHTML:e._s(e.curIframe.videoInfo.generalCode)}}):e._e(),1===e.curIframe.videoInfo.videoType||2===e.curIframe.videoInfo.videoType?t("video",{ref:"popupVideo",attrs:{src:e.popupVideoSrc,autoplay:e.popupVideoIsAutoPlay,loop:e.popupVideoIsLoop,width:"100%",height:"100%",controls:"",preload:"metadata",controlslist:"nodownload","webkit-playsinline":"true",playsinline:"true"},domProps:{muted:e.mutePlay},on:{play:e.videoPlay,pause:e.videoPause}}):e._e(),3===e.curIframe.videoInfo.videoType?t("YoutubePlayerIframe",{attrs:{item:e.item,pluginVideoPageIndex:0,popupVideoProps:e.curIframe.videoInfo,realYouTubeId:e.getYouTubeIdFromUrl(e.curIframe.videoInfo.youTubeId),isPopupVideo:!0}}):e._e(),4===e.curIframe.videoInfo.videoType?t("VimeoPlayerIframe",{attrs:{item:e.item,pluginVideoPageIndex:0,popupVideoProps:e.curIframe.videoInfo,realVimeoId:e.getVimeoIdFromUrl(e.curIframe.videoInfo.vimeoId),isPopupVideo:!0}}):e._e()],1)]),e.isPhone()?t("PhonePopupVideoBox",{attrs:{isShow:e.isShowPopupVideo,item:e.item,popupVideoProps:e.curIframe.videoInfo,youTubeIdOrVimeoId:e.outerVideoHtml,realYouTubeId:e.getYouTubeIdFromUrl(e.curIframe.videoInfo.youTubeId),realVimeoId:e.getVimeoIdFromUrl(e.curIframe.videoInfo.vimeoId)},on:{"update:isShow":function(t){e.isShowPopupVideo=t},"update:is-show":function(t){e.isShowPopupVideo=t},close:e.close}}):e._e()],1):e._e()}),[],!1,null,"a0f45fda",null).exports;var yi=i(9997),vi={name:"PopupWindow",props:{curIframe:{type:Object,required:!0,desc:"存放弹出窗口的信息"},closeIframe:{type:Function,required:!0,default:()=>{}}},components:{Lightbox:Dt},data(){return{bookDefaultUrl:"",bookDefaultTitle:"",isShowIframe:!1,isShowIframeTip:!1}},mounted:function(){this.isShowIframe=!0},computed:{isArticle:function(){return i.g.templeteName&&i.g.templeteName.match(/article/)}},methods:{isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())},isWeChatBrowser(){return/MicroMessenger/i.test(navigator.userAgent)},closeArticleIframe:function(){this.isArticle&&(window.document.title=this.bookDefaultTitle,window.set_weixin_share&&window.set_weixin_share(document.title,document.desc,this.bookDefaultUrl,window.imgUrl)),this.closeCallBack()},popArticleIframe:function(){this.isArticle&&(this.bookDefaultUrl=window.location.href,this.bookDefaultTitle=window.document.title,window.document.title=this.curIframe.title?this.curIframe.title:window.document.title,window.set_weixin_share&&window.set_weixin_share(document.title,document.desc,this.curIframe.urlHead+this.curIframe.url,window.imgUrl))},closeCallBack:function(){this.isShowIframe=!1}},watch:{isShowIframe:function(e){e||window.setTimeout((()=>{this.closeIframe()}),300)}}},xi=(0,ot.Z)(vi,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PopupWindowContainer"},[e.isShowIframe?t("Lightbox",{key:"phone-iframe-lightbox",attrs:{isShow:e.isShowIframe,isShowBottomPadding:!0,title:e.curIframe.title?e.curIframe.title:" ",hasNoBorderRadius:!e.isPhone(),isPhone:e.isPhone(),isHiddenHeaderTitle:e.isArticle&&e.isPhone(),isArticle:e.isArticle,showClose:!(e.isArticle&&e.isPhone()),hasPadding:!(e.isArticle&&e.isPhone()),isNoPaddingTop:e.isArticle&&e.isPhone(),isAutoPopSize:!0,isTriggleBox:!0,closeCallBack:e.isArticle?e.closeArticleIframe:e.closeCallBack},on:{"update:isShow":function(t){e.isShowIframe=t},"update:is-show":function(t){e.isShowIframe=t}}},[t("div",{staticClass:"window-iframe"},[t("iframe",{attrs:{src:e.curIframe.urlHead+e.curIframe.url,frameborder:"0",width:"100%",height:"100%",id:"myIframe"}})])]):e._e()],1)}),[],!1,null,"47b11108",null).exports;var Ci=i(2534),bi=i(3652),Ii=(i(5140),{name:"QuizPreview",components:{ErrorIcon:(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("circle",{attrs:{cx:"8",cy:"8",r:"8",fill:"#FF5962"}}),e("path",{attrs:{d:"M11 5L5 11",stroke:"white","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M5 5L11 11",stroke:"white","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"}})])}),[],!1,null,null,null).exports,ExactnessIcon:(0,ot.Z)({},(function(){var e=this._self._c;return e("svg",{attrs:{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("rect",{attrs:{width:"16",height:"16",fill:"#00AA94"}}),e("path",{attrs:{d:"M4 7.5L7 11L12 5",stroke:"white","stroke-width":"1.6","stroke-linecap":"square","stroke-linejoin":"round"}})])}),[],!1,null,null,null).exports},props:{quizList:{type:Array,default:()=>[]},close:{type:Function,default:()=>{}}},data(){return{currentQuiz:{},currentQuizIndex:0,maxHeight:400}},computed:{isYZPro:function(){return T.Z.getters.isYZPro}},mounted(){this.currentQuiz={...this.quizList[0],index:0,answer:[],isSubmit:!1},this.$nextTick((()=>{const e=this.$refs.quizPreviewRef;e&&this.maxHeight>e.offsetHeight-164&&(this.maxHeight=e.offsetHeight-164)}))},methods:{formatNumber(e){return e<10?`0${e}`:e},handleOptionClick(e){this.currentQuiz.isSubmit||("single"===this.currentQuiz.type?this.currentQuiz.answer=[e]:this.currentQuiz.answer.includes(e)?this.currentQuiz.answer=this.currentQuiz.answer.filter((t=>t!==e)):this.currentQuiz.answer.push(e))},nextQuiz(){this.quizList.length-1!==this.currentQuizIndex?(this.currentQuizIndex++,this.currentQuiz={...this.quizList[this.currentQuizIndex],index:this.currentQuizIndex,answer:[],isSubmit:!1}):this.closeOpenQuiz()},submitQuiz(){this.currentQuiz.answer&&0===this.currentQuiz.answer?.length||(this.currentQuiz.isSubmit=!0)},closeOpenQuiz(){this.$emit("close")}}}),Si={name:"PopupMsg",components:{Lightbox:Dt,quizPreview:(0,ot.Z)(Ii,(function(){var e=this,t=e._self._c;return t("div",{ref:"quizPreviewRef",staticClass:"quizPreview"},[t("div",{staticClass:"quizPreview-content"},[t("div",{staticClass:"close_btn",on:{click:e.closeOpenQuiz}},[t("i",{staticClass:"el-icon-close"})]),t("div",{staticClass:"quizPreview-content-item",style:{maxHeight:e.maxHeight+"px"}},[t("div",{staticClass:"item-title"},[e._v(" "+e._s(e.formatNumber(e.currentQuiz.index+1))+". "+e._s(e.currentQuiz.question)+" ")]),t("div",{staticClass:"item-content"},e._l(e.currentQuiz.options,(function(i,s){return t("div",{key:s,staticClass:"option-item",class:{selected:e.currentQuiz.answer.includes(s)&&!e.currentQuiz.isSubmit,correct:e.currentQuiz.answer.includes(s)&&e.currentQuiz.isSubmit&&i.isCorrect,incorrect:e.currentQuiz.answer.includes(s)&&e.currentQuiz.isSubmit&&!i.isCorrect},on:{click:function(t){return e.handleOptionClick(s)}}},[t("div",{staticClass:"option-icon",class:{isSingle:"single"===e.currentQuiz.type,isMultiple:"multiple"===e.currentQuiz.type}},[e.currentQuiz.answer.includes(s)?t("div",{staticClass:"option-icon-inner"}):e._e()]),t("div",{staticClass:"option-text"},[e._v(" "+e._s(String.fromCharCode(65+s))+". "+e._s(i.value)+" ")]),e.currentQuiz.isSubmit?t("div",{staticClass:"option-correct"},[i.isCorrect?t("ExactnessIcon",{tag:"component"}):e._e(),e.currentQuiz.answer.includes(s)&&!i.isCorrect?t("ErrorIcon",{tag:"component"}):e._e()],1):e._e()])})),0)]),t("div",{staticClass:"footer"},[t("div",{staticClass:"rubric_num"},[t("span",[e._v(e._s(e.currentQuiz.index+1))]),e._v("/"+e._s(e.quizList.length)+" ")]),e.currentQuiz.isSubmit?t("div",{staticClass:"next_quiz",on:{click:e.nextQuiz}},[e.quizList.length-1!==e.currentQuizIndex?[t("span",[e._v(e._s(e.isYZPro?"继续":"Continue"))]),t("i",{staticClass:"el-icon-arrow-right"})]:[t("span",[e._v(e._s(e.isYZPro?"完成":"Finish"))])]],2):t("div",{staticClass:"submit_quiz",class:{disabled:e.currentQuiz.answer&&0===e.currentQuiz.answer?.length},on:{click:e.submitQuiz}},[e._v(" "+e._s(e.isYZPro?"提交":"Submit")+" ")])])])])}),[],!1,null,"e62edd56",null).exports},props:{quizProps:{type:Object,required:!0,desc:"存放弹出信息"},close:{type:Function,required:!0,default:()=>{}}},data(){return{isShowQuiz:!1}},mounted(){this.isShowQuiz=!0},watch:{isShowQuiz(e){e||window.setTimeout((()=>{this.close()}),300)}},methods:{isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())}}},Pi=(0,ot.Z)(Si,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PopupMsgContainer"},[e.isShowQuiz&&e.quizProps?t("Lightbox",{attrs:{isShow:e.isShowQuiz,isShowBottomPadding:!1,hasNoBorderRadius:!1,isAutoPopSize:!0,isPhone:e.isPhone(),isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,customWidth:560,lightboxContentBackground:"unset"},on:{"update:isShow":function(t){e.isShowQuiz=t},"update:is-show":function(t){e.isShowQuiz=t}}},[t("quizPreview",{attrs:{quizList:e.quizProps.quizList},on:{close:e.close}})],1):e._e()],1)}),[],!1,null,"51266de0",null).exports,Ti=i(1637);var $i={name:"ItemLayout",data(){return{timelineObj:[],currentEventType:"",showFilter:!0,isShowComment:!1,commentOpts:{},scrollbarInfo:{},msg:null,linkFlashAnimeTimeline:null,emitEventPageItemsIndexArr:[],showPlayAudio:!1,isShowWechatDownloadTips:!1,wechatDownloadTipsTimer:null,getYouTubeIdFromUrl:Ft,showOrHideIndex:0}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],inject:["getCurrentPage"],computed:{curItemHasAnime:function(){return Je(this.item)},curItemHasAction:function(){return void 0!==this.item.actionList&&0!==this.item.actionList.length&&this.actionListHasAction()},isPhone:function(){return window.isPhone&&window.isPhone()},isSpecialItem:function(){return Pt(this.item)},actionList:function(){return this.isSpecialItem?[]:this.item.actionList},viewPercent:function(){return this.viewScale},currentPage:function(){},currentPageItems:function(){},pageIsVisiable:function(){return!0},canNotSelect:function(){return!(!this.curItemHasAnime&&!this.item.isPlayingActAnime)&&Tt(this.item,this.pageIndex)},pageOriginalWidth:function(){return this.$store.state.pageConfig.originPageWidth},pageOriginalHeight:function(){return this.$store.state.pageConfig.originPageHeight},maskFile:function(){return this.item.animationFiles.maskFiles},inMaskFile:function(){return this.maskFile.in},outMaskFile:function(){return this.maskFile.out},itemMaskStyle:function(){const e=this.item,t={};if(!this.isSpecialItem){const i=e.animations.in,s=void 0!==i?i.type:"";let n=e.maskConfig,o=e.scrawlConfig;if(i&&"mask"===s&&!e.isPlayingActAnime&&-1===this.groupKey)if(fe(e,!0)){t.clipPath="none";let e=n.in;ge(i)?(t.maskImage=`url( ${this.inMaskFile.url})`,t.maskSize=e.maskSize):"gradient"===e.maskType?t.maskImage=e.maskImage:t.maskImage="none",t.maskRepeat=e.repeat,t.maskPosition=e.position,t.maskSize=e.maskSize}else t.maskImage="none";if(i&&"scrawl"===s&&!e.isPlayingActAnime&&-1===this.groupKey)if(fe(e,!0)){let e=o.in;t.maskImage=e.maskImage,t.clipPath="none",t.maskRepeat="no-repeat",t.maskPosition="center"}else t.maskImage="none"}return{...t}},curItemHasFilter:function(){if(this.isGroup)return!1;if(this.item.isSubtitle)return this.item.isShowShadow;const e=this.item.filter;return!(0===e.blur&&1===e.brightness&&1===e.contrast&&0===e.grayscale&&0===e.hueRotate&&0===e.invert&&1===e.saturate&&0===e.sepia&&!this.item.isShowShadow)},itemStyle:function(){const e={pointerEvents:"auto"};if(!this.curItemHasFilter)return e;if(!this.showFilter)return e;let t=this.item,i={};if(!this.isGroup)if(t.isSubtitle){if(t.isShowShadow){let e=t.filter.dropShadow,s=e.shadowX,n=e.shadowY,o=e.shadowBlur,r=e.shadowColor;i.filter=`drop-shadow(${s}px ${n}px ${o}px ${r})`}}else if(t.filter){let e,s=t.filter,n="blur("+s.blur+"px) ",o="brightness("+s.brightness+") ",r="contrast("+s.contrast+") ",a="grayscale("+s.grayscale+") ",l="hue-rotate("+s.hueRotate+"deg) ",d="invert("+s.invert+") ",h="saturate("+s.saturate+") ",c="sepia("+s.sepia+")";if(t.isShowShadow){if(!S.Z.hasAnime(t)){let t=s.dropShadow;e="drop-shadow("+t.shadowX+"px "+t.shadowY+"px "+t.shadowBlur+"px "+t.shadowColor+") "}}else e="";let u=e+n+o+r+a+l+d+h+c;0===s.blur&&1===s.brightness&&1===s.contrast&&0===s.grayscale&&0===s.hueRotate&&0===s.invert&&1===s.saturate&&0===s.sepia&&""===e||(i.filter=u)}return Object.assign(e,i)},linkItemStyle:function(){if("link"===this.item.type||"quiz"===this.item.type){let e="";switch(this.currentEventType){case"mouseenter":e=this.item.style.hoverColor;break;case"mousedown":case"touchstart":e=this.item.style.clickColor;break;default:e=this.item.style.background}return{background:e,borderRadius:this.item.style.borderRadius}}return{}},itemTransformStyle:function(){const e=this.item,t=e.rotateX,i=e.rotateY;let s="";return(0!==e.rotate&&360!==e.rotate||0!==e.rotateX||0!==e.rotateY)&&(s=`rotateZ(${e.rotate}deg) rotateX(${t}deg) rotateY(${i}deg)`),{transform:s}},itemSizePostionStyle:function(){const e=this.item,t=this.isGroupItem,i={top:e.style.top,left:e.style.left,width:parseFloat(e.style.width)<1?"1px":e.style.width,height:parseFloat(e.style.height)<1?"1px":e.style.height};return t||(i.width="100%",i.height="100%",i.top=0,i.left=0),{...i}},canNotSelectStyle:function(){let e="auto";return this.isGroupItem||this.isSpecialItem||!this.canNotSelect||(e="none"),{pointerEvents:e}},itemOpacityStyle:function(){let e=this.item.style.opacity;return this.isGroupItem||this.isSpecialItem||!(this.canNotSelect||this.item.actIsHidden&&-1===this.item.actAnimeTime)?this.item.hiddenClickable?(e=this.item.isActionHideCase?0:1,{opacity:e}):{opacity:e}:(e=0,{opacity:e})},textItemOverflowStyle:function(){let e={};if("text"!==this.item.type||!this.textIsSetOverflow)return e;if(e.overflow=this.item.overflow,e.position="relative",(this.isHideScrollBar||void 0===this.isHideScrollBar)&&(e.width="100%"),!this.isHideScrollBar){if(!S.Z.isEmptyObject(this.textScrollBarInfo)){const t=Number.parseFloat(this.textScrollBarInfo.width);e.width=`calc(100% + ${t}px)`,e["padding-right"]=`${t}px`}S.Z.isEmptyObject(this.textScrollBarInfo)&&(e.width="calc(100% + 6px)")}if(!S.Z.isEmptyObject(this.textScrollBarInfo)){const t=this.textScrollBarInfo.radius,i=.01*this.textScrollBarInfo.opacity;e["--scrollbar-width"]=`${this.textScrollBarInfo.width}px`,e["--scrollbar-thumb-color"]=this.textScrollBarInfo.thumbColor,e["--scrollbar-track-color"]=this.textScrollBarInfo.trackColor,e["--scrollbar-thumb-radius"]=`${t}px`,e["--scrollbar-thumb-opacity"]=`${i}`}return e},textIsSetOverflow:function(){return"text"===this.item.type&&!(void 0===this.item.overflow||!this.item.overflow)},isQQOrWechatBrowser(){const e=navigator.userAgent;return/MQQBrowser|MicroMessenger|QQ/i.test(e)},isWechatBrowser:function(){const e=navigator.userAgent;return/MicroMessenger/i.test(e)},getInverseLinkClass:function(){let e="";if("link"===this.item.type&&this.item.isInverse)for(let t=0;t{void 0!==e.showOrHideIndex&&(e.showOrHideIndex=0)}));for(let e=0;e{e.pause("inEnd"),tt(e)})),tt(t),t="",this.timelineObj[e].itemTimelines=[],delete this.timelineObj[e])}},clearAnimationListMaskAndHand:function(){if(this.actionList&&this.actionList.length)for(let e=0;e-1)return this.destroyTimeLines(),void this.clearAnimationListMaskAndHand()},refreshIndexArr:function(e){const t=new Set;for(let i=0;i{t.add(e.id)}));this.emitEventPageItemsIndexArr=[...t]},refreshEmitAnimeIdArr:function(){this.emitEventPageItemsIdArr=[];for(let e=0;e{-1===this.emitEventPageItemsIdArr.indexOf(e.id)&&this.emitEventPageItemsIdArr.push(e.id)}))},emitItemEvent:function(e,t){"ended"!==e&&this.changeEventType(e,t),this.cancelLinkItemAnime(),this.actionListHasAction()&&(this.item.isInverse&&t.match(/mouseenter|mouseleave|mousemove/)&&this.toggleArticleTitle(e,"mouseleave"!==t),this.emitActionEvent(t),this.isHasCurrentEvent(t)&&(e.type===t&&"click"===t&&e.stopPropagation(),this.destroyTimeLines(),this.refreshIndexArr(t),this.refreshEmitAnimeIdArr(),o.Q.$emit(`CLEAR_EMIT_EVENT_TIMELINE_${this.pageIndex}`,{idArr:this.emitEventPageItemsIdArr}),o.Q.$emit(`SEEK_TIMELINE_INEND_${this.pageIndex}`,{indexArr:this.emitEventPageItemsIndexArr,seekTime:"inEnd"}),setTimeout((()=>{this.timelineObj[t]={},this.timelineObj[t].mainTimeline=new pe.ZP({paused:!0}),this.timelineObj[t].itemTimelines=[];for(let e=0;e{if(t.event!==e&&!Object.keys(t.comment).length)return;let s="";if(Object.keys(t.linkList).length){let e=t.linkList.url;if(t.linkList.url&&-1===t.linkList.url.toLowerCase().search(/^\/\/|^http|:\/\//)&&(e=t.linkList.urlHead+t.linkList.url),!0===t.linkList.isHasUrlParams&&(e+=this.openLinkUrlParams(t)),window.BookEvent&&window.BookEvent.trigger("jumpLink",["open link",window.BookInfo.getCurrentPages().join("-"),e]))return;if(0===t.linkList.target)window.open(e,"_blank");else{if(1===this.getUrlParam("isClientEnv")||"1"===this.getUrlParam("isClientEnv"))return;window.location.href=e}window.BookEvent&&window.BookEvent.trigger("jumpLink",["open link",window.BookInfo.getCurrentPages().join("-"),e]),s="open link: "+e}if(Object.keys(t.openPage).length&&(window.gotoPageFun&&window.gotoPageFun(t.openPage.page,!1,"action openPage"),s="go to page : "+t.openPage.page),Object.keys(t.phone).length){if(window.BookEvent&&window.BookEvent.trigger("jumpLink",["telePhoneNumber",window.BookInfo.getCurrentPages().join("-"),t.phone.phoneNumber]))return;s=" call : "+t.phone.phoneNumber,window.open("tel:"+t.phone.phoneNumber,"_self")}if(Object.keys(t.iframe).length){if(t.iframe.url){if((0,Ci._)().ios&&t.iframe.url.toLowerCase().endsWith(".pdf"))return this.msg=this.$message({dangerouslyUseHTMLString:!0,showClose:!0,message:"Your current browser can't display the embedded PDF content. Please click 'Open' to view it in a new window: Open.",duration:5e3}),void(this.msg.$el.querySelector("span").onclick=()=>{window.open(t.iframe.urlHead+t.iframe.url)});this.isPhone&&(t.iframe.width=window.innerWidth-50,t.iframe.height=window.innerHeight-50);const e=void 0!==t.iframe?.newTime?t.iframe.newTime:0;_t("iframe",e)?(e=>{const t=Object.assign({},new yi.X,e||{});if(!document.querySelector(".PopupWindowContainer"))new Promise(((e,i)=>{const s=new(d.default.extend(xi))({propsData:{curIframe:t,closeIframe:()=>{o()}}});s.$mount();const n=s.$mount().$el;document.body.appendChild(n);const o=()=>{document.body.contains(n)&&(s.$destroy(),document.body.removeChild(n))}}))})(t.iframe):window.vuePopDom&&window.vuePopDom.popWindow(t.iframe,"iframe")}s="popup window"}if(Object.keys(t.popupMsg).length){const e=void 0!==t.popupMsg?.newTime?t.popupMsg.newTime:0;_t("popupMsg",e)?(e=>{const t=Object.assign({},new si.s,e||{});if(!document.querySelector(".PopupMsgContainer"))new Promise((()=>{const e=new(d.default.extend(ai))({propsData:{popupMsgCurIframe:t,close:()=>{s()}}}),i=e.$mount().$el;document.body.appendChild(i);const s=()=>{document.body.contains(i)&&(e.$destroy(),document.body.removeChild(i))}}))})(t.popupMsg):window.vuePopDom&&window.vuePopDom.popWindow(t.popupMsg,"popupMsg"),s="popup message"}if(Object.keys(t.popupImg).length){t.popupImg.rotateX=this.item.rotateX,t.popupImg.rotateY=this.item.rotateY,t.popupImg.fileName=this.item.fileName;const e=void 0!==t.popupImg?.newTime?t.popupImg.newTime:0;_t("popupImg",e)?ii(t.popupImg):window.vuePopDom&&window.vuePopDom.popWindow(t.popupImg,"popupImg"),s="popup image"}if(t.showOrHideList&&t.showOrHideList.length&&(((e,t,i)=>{if(!e||!t)return;const s=t.showOrHideTriggerType;let n=e?.showOrHideIndex??0;const o=t=>{if(!e.showOrHideList[t])return!1;const s=e.showOrHideList[t],{realItem:n}=((e,t)=>{if(!e||!t)return{};let i={};return t().items.forEach(((t,s)=>{t.id===e.id&&(i={realItem:t,index:s})})),i})(s,i);return"hide"===s.showOrHideType?n.isActionHideCase=!0:"show"===s.showOrHideType?n.isActionHideCase=!1:n.isActionHideCase=!n.isActionHideCase,!0};if(0===s)for(let t=0;t=e.showOrHideList.length&&(n=0));d.default.set(e,"showOrHideIndex",n)})(t,this.item,this.getCurrentPage),s="show or hide"),Object.keys(t.popupVideo).length){const e=void 0!==t.popupVideo?.newTime?t.popupVideo.newTime:0;switch(_t("popupVideo",e)?((e,t)=>{const i=Object.assign({},new li.J,e||{});if(!document.querySelector(".PopupVideoContainer"))new Promise(((e,s)=>{const n=new(d.default.extend(wi))({propsData:{curIframe:i,close:()=>{r()},item:t}}),o=n.$mount().$el;document.body.appendChild(o);const r=()=>{document.body.contains(o)&&(n.$destroy(),document.body.removeChild(o))}}))})(t.popupVideo,this.item):window.vuePopDom&&window.vuePopDom.popWindow(t.popupVideo,"popupVideo",this.item),s="popup video",t.popupVideo.videoInfo.videoType){case 0:s+=" : "+t.popupVideo.videoInfo.generalCode;break;case 1:s+=" : "+t.popupVideo.videoInfo.link;break;case 2:s+=" : "+t.popupVideo.videoInfo.name;break;case 3:s+=" : "+this.getYouTubeIdFromUrl(t.popupVideo.videoInfo.youTubeId);break;case 4:s+=" : "+this.getVimeoIdFromUrl(t.popupVideo.videoInfo.vimeoId)}}if(Object.keys(t.playAudio).length&&(this.showPlayAudio=!0,(0,Zt.JD)(this.$refs),window.vuePopDom&&window.vuePopDom.popWindow(t.playAudio,"playAudio"),this.$store.commit("SAVE_CUR_ITEM",{item:this.item}),s="popup play audio",1===t.playAudio.audioType?t.playAudio.audioList.length&&(s+=" : "+t.playAudio.audioList[0].name):s+=" : "+t.playAudio.link),Object.keys(t.runJavaScript).length){s="run javaScript",this.addEventRecord(e,s);try{let e=Function,i=t.runJavaScript.javaScriptCode;return i=i.replaceAll(/\r|\n|\t/g,""),new e(i)()}catch(e){}}if(t.showArticle&&Object.keys(t.showArticle).length&&(window.showArticleById&&window.showArticleById(t.showArticle.articleId),s="show article"),Object.keys(t.addWechat).length&&(window.vuePopDom&&window.vuePopDom.popWindow(t.addWechat,"addWechat"),s="add wechat"),Object.keys(t.attachmentFile).length&&void 0!==t.attachmentFile.fileObject.url&&void 0!==t.attachmentFile.fileObject.name){const e=t.attachmentFile.fileObject,i=e.url,n=e.name;this.downloadFile(i,n),s="download : "+i}if(t.animationList&&t.animationList.length&&(s="play effect "),Object.keys(t.comment).length){if(!t.comment.edited)return;if(("click"===e||"mouseleave"===e&&"mouseleave"!==t.event&&t.comment.autoDisappear)&&this.isShowComment)return void(this.isShowComment=!1);if(t.event!==e)return;if(this.isShowComment)return;this.isShowComment=!0,this.commentOpts=t.comment,s="show comment "}if(Object.keys(t.zoomArea).length&&t.zoomArea.thumbSrc){const e={type:"zoomarea",imgList:[{isLoading:!0,url:t.zoomArea.thumbSrc,fileName:t.zoomArea.thumbFileName,desc:"",title:""}]};ii(e),s="area zoom in"}Object.keys(t.quiz).length&&t.quiz.quizList.length&&((e=>{const t=Object.assign({},new Ti.C,e||{});if(0===t.quizList.length)return;document.querySelector(".OpenQuiz")||new Promise((()=>{const e=new(d.default.extend(Pi))({propsData:{quizProps:t,close:()=>{s()}}});e.$mount();const i=e.$mount().$el;document.body.appendChild(i);const s=()=>{document.body.contains(i)&&(e.$destroy(),document.body.removeChild(i))}}))})(t.quiz),s="open quiz"),this.addEventRecord(e,s)}))},addEventRecord:function(e,t){if(("click"===e||"mousedown"===e||"mouseup"===e)&&(window.BookEvent&&window.BookEvent.trigger("clickPageItem",[parseInt(this.item.pageIndex)+1,this.item.type,this.item.style.left,this.item.style.top,this.item.style.width,this.item.style.height]),window.gtag&&window.bookConfig.googleAnalyticsID)){const e=window.BookInfo.getCurrentPages(),i=e.length>1?e.join("-"):e[0],s=this.getGtagEventName();window.gtag("event",s,{event_category:this.item.type,event_label:"Page"+i+" "+t})}},createAnime:function({animationList:e,mainTimeline:t,itemTimelines:i,event:s}){e.forEach((e=>{let{realItem:s}=this.getItem(e);s.actAnimeTime=-1,e.actAnimeTime=-1;let n=et({item:e,isGroupItem:!1,realItem:s,setAnimeFromTrigger:!0,groupKey:-1,pageIndex:this.pageIndex});n.itemTimeline&&(i.push(n.itemTimeline),t.add(n.itemTimeline,0))}))},getItem:function(e){let t={};if(!this.getCurrentPage)return;return this.getCurrentPage().items.forEach(((i,s)=>{i.id===e.id&&(t={realItem:i,index:s})})),t},getUrlParam:function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!=i?decodeURI(i[2]):null},openLinkUrlParams:function(e){if(!e.linkList.isHasUrlParams)return"";let t=window.location.search;if(""!==t){if(-1!==e.linkList.url.indexOf("?")){return"&"+window.location.search.slice(1)}return t}return""},downloadFile:function(e,t){if(e&&t)if(this.isQQOrWechatBrowser){if(this.isWechatBrowser&&this.isYZPro)return this.showWechatDownloadTips();const i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("target","_blank"),i.setAttribute("download",t),document.body.appendChild(i),i.click(),window.setTimeout((()=>{document.body.removeChild(i)}),300)}else(0,r.Z)({method:"get",url:e,responseType:"blob"}).then((e=>{200!==e.status&&"OK"!==e.statusText||(0,Et.saveAs)(e.data,t)})).catch((e=>{}))},showWechatDownloadTips:function(){this.wechatDownloadTipsTimer&&(window.clearTimeout(this.wechatDownloadTipsTimer),this.wechatDownloadTipsTimer=null),this.isShowWechatDownloadTips=!0,this.wechatDownloadTipsTimer=window.setTimeout((()=>{this.isShowWechatDownloadTips=!1}),3e3)},createLinkItemAnime(){const{type:e,id:t,style:i}=this.item;"link"!==e||this.linkFlashAnimeTimeline||(this.linkFlashAnimeTimeline=(new pe.ZP).to(`#ItemLayout${t}`,.5,{background:i.hoverColor}).to(`#ItemLayout${t}`,.5,{background:i.background}))},cancelLinkItemAnime:function(){"link"===this.item.type&&o.Q.$emit(`CANCEL_LINK_ANIME_${this.pageIndex}`,this.item.id)},initScrollbar:async function(){if(!this.textIsSetOverflow||this.isHideScrollBar)return;await this.$nextTick();const e=document.querySelector(`#ItemLayout${this.item.id}`);e&&(bi.UN.plugin(bi.ZA),this.scrollbarInfo=(0,bi.UN)(e,{overflow:{y:"scroll",x:"hidden"},scrollbars:{clickScroll:!0}}))},releaseScrollbar:function(){this.textIsSetOverflow&&!this.isHideScrollBar&&(S.Z.isEmptyObject(this.scrollbarInfo)||(this.scrollbarInfo.destroy(),this.scsrollbarInfo={}))},emitHideComment:function(){o.Q.$emit(`HIDE_COMMENT_${this.pageIndex}`)},hideComment:function(){this.isShowComment&&(this.isShowComment=!1)},getGtagEventName:function(){return this.isH5Pro?"fliphtml5_editor_click":this.isFlipPro?"flip_pdf_editor_click":"click"},getVimeoIdFromUrl:function(e){const t=e.match(/https?:\/\/(?:www\.)?vimeo\.com\/(\d+)(?:[/?].*)?/);return t&&t[1]?t[1]:e},showFilterFunction:function(){this.showFilter=!0}},mounted(){if(this.actionList&&this.actionList.length){o.Q.$on(`CLEAR_ACTION_ANIME_${this.pageIndex}`,(()=>{this.destroyTimeLines(),this.clearAnimationListMaskAndHand(),this.changeItemActionCase()})),o.Q.$on(`CLEAR_EMIT_EVENT_TIMELINE_${this.pageIndex}`,(({idArr:e=[]})=>{this.clearEmitEventTimeline({idArr:e})})),o.Q.$on(`HIDE_COMMENT_${this.pageIndex}`,this.hideComment);const e=document.getElementById(`scalePage${this.pageIndex}`);e&&e.addEventListener("click",this.emitHideComment)}this.curItemHasFilter&&(o.Q.$on(`PAGE_START_FLIP_${this.pageIndex}`,(()=>{if(this.isH5Pro){const e=(0,Ci._)();this.showFilter=!e.ios}else this.showFilter=!1})),o.Q.$on(`PAGE_END_FLIP_${this.pageIndex}`,this.showFilterFunction)),"pluginMusic"===this.item.type&&o.Q.$on(`musicEnded${this.pageIndex}`,(e=>{this.endedEmitEvent(e)})),this.initScrollbar()},beforeDestroy(){if(this.actionList&&this.actionList.length){o.Q.$off(`CLEAR_ACTION_ANIME_${this.pageIndex}`),o.Q.$off(`CLEAR_EMIT_EVENT_TIMELINE_${this.pageIndex}`),o.Q.$off(`HIDE_COMMENT_${this.pageIndex}`);const e=document.getElementById(`scalePage${this.pageIndex}`);e&&e.removeEventListener("click",this.emitHideComment)}this.curItemHasFilter&&(o.Q.$off(`PAGE_START_FLIP_${this.pageIndex}`),o.Q.$off(`PAGE_END_FLIP_${this.pageIndex}`,this.showFilterFunction)),"pluginMusic"===this.item.type&&o.Q.$off(`musicEnded${this.pageIndex}`),this.releaseScrollbar()},components:{OutMaskDom:Mt,CommentPreview:kt,PlayAudio:zt,WechatDownloadTips:Bt},directives:{}},ki=(0,ot.Z)($i,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"ItemLayout",class:[{canClick:e.curItemHasAction,"text-can-overflow":e.textIsSetOverflow,"flip-action":e.textIsSetOverflow},e.getInverseLinkClass],style:[e.itemStyle,e.linkItemStyle,e.itemTransformStyle,e.itemSizePostionStyle,e.itemMaskStyle,e.itemOpacityStyle,e.canNotSelectStyle,e.textItemOverflowStyle],attrs:{"data-pageIndex":e.pageIndex,id:`ItemLayout${e.item.id}`},on:{click:function(t){return e.emitItemEvent(t,"click")},mouseenter:function(t){return e.emitItemEvent(t,"mouseenter")},mouseleave:function(t){return e.emitItemEvent(t,"mouseleave")},mousemove:function(t){return e.toggleArticleTitle(t,!0)},mousedown:function(t){return e.changeEventType(t,"mousedown")},mouseup:function(t){return e.changeEventType(t,"mouseup")},touchstart:function(t){return e.changeEventType(t,"touchstart")},touchend:function(t){return e.changeEventType(t,"touchend")}}},[t("OutMaskDom",{attrs:{item:e.item,groupKey:e.groupKey}},[e._t("default")],2),e.isShowComment?t("CommentPreview",{attrs:{item:e.item,commentOpts:e.commentOpts}}):e._e(),e.showPlayAudio?t("PlayAudio",{ref:"PlayAudio",attrs:{item:e.item,pageIndex:e.pageIndex}}):e._e(),e.isShowWechatDownloadTips&&e.isYZPro?t("WechatDownloadTips"):e._e()],1)}),[],!1,null,"1ded9866",null).exports;const Li={data(){return{textScale:1}},mounted(){this.$nextTick((()=>{if(1!==this.$store.state.mobileFontScale){const t=document.getElementById(`textArea${this.item.id}`),i=(e=t,parseInt(window.getComputedStyle(e,null).getPropertyValue("font-size"))),s=parseFloat(this.item.innerTextStyle.fontSize)/i;if(s>1)return;this.item.innerTextStyle.fontSize=i*s*s+"px",this.textScale=s}var e}))},computed:{strokeAlignment(){return this.item.stroke.alignment},hasPositionText:function(){return void 0!==this.item.positionText&&""!==this.item.positionText&&0!==this.item.positionText.length&&this.item.transformPositionText},mobileFontScale(){return 1},truelyFontSize(){return parseFloat(this.item.innerTextStyle.fontSize)*this.mobileFontScale},showFontSizeScaleDom(){return this.truelyFontSize<12},textStyle(){const e=[this.item.innerTextStyle];e[0].textIndent&&(e[0].textIndent=this.gradient.show?"2em":"unset");const t=this.truelyFontSize;if(this.showFontSizeScaleDom?e.push({fontSize:"12px"}):e[0].fontSize=Math.floor(t)+"px",this.item.isShowStroke){const{stroke:t}=this.item;e.push({textStroke:`${t.width}px ${t.color}`,"--text-stroke-width":`${t.width}px`,"--text-stroke-color":`${t.color}`})}if(!this.hasPositionText&&this.item.innerTextStyle.textIndent&&e.push({textIndent:"2em"}),this.gradient.show&&e.push({backgroundImage:yt.Z.getGradientColorVal({gradientItem:this.gradient}),backgroundClip:"text","-webkit-background-clip":"text",color:"transparent"}),this.item.columnsInfo.useColumns){const{columnsInfo:t}=this.item;e.push({columnCount:t.count,columnGap:t.gap+"em"})}return e}},subBColor:function(){return this.item.isSubtitle?this.item.subBColor:{}},showTextBackgroundDom:function(){return this.item.isSubtitle&&this.subBColor.isShow},textBackgroundColor:function(){if(this.showTextBackgroundDom){let e=this.subBColor,t=e.opacity,i=e.color,s=yt.Z.getRgbaColor(i),n=e.padding;return{top:-n+"px",height:parseFloat(this.item.style.height)+2*n+"px",backgroundColor:`rgba(${s.r}, ${s.g}, ${s.b}, ${t})`,border:`${e.borderWidth}px ${e.borderType} ${e.borderColor}`,borderRadius:parseFloat(e.borderRadius)+"px"}}return{}}};var Mi={name:"ItemForSvgText",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted:function(){},mixins:[Li],updated:function(){if(this.gradient.show){let e=this.$refs[`rect${this.item.id}`];e&&(e.style.display="none",e.style.display="block")}},watch:{},computed:{svgUrl:function(){return"../files/pageConfig/"+this.item.id+".svg"},linearId:function(){return`linearID${this.item.id.toString().substring(0,6)}`},maskId:function(){return`maskID${this.item.id.toString().substring(0,6)}`},isIE:function(){return this.$store.state.isIE},textScale:function(){return this.viewScale},scaleStyle:function(){let e=this.item,t={};return t.width=e.style.width,t.height=e.style.height,t.transform="scale(1)",t},textStyle:function(){let e=[this.item.innerTextStyle];if("number"==typeof e[0].fontSize&&(e[0].fontSize=e[0].fontSize+"px"),this.item.isShowStroke){let t={textStroke:`${this.item.stroke.width}px ${this.item.stroke.color}`};e.push(t)}return e},rectCode:function(){return this.item.svgText.svgCode.match(//)[0]},gCode:function(){let e=this.item.svgText.svgCode;return e=e.replace(/fill=".*?"/g,'fill="#ffffff"'),e.replace(this.rectCode,"")},rectCodeWH:function(){return{width:parseFloat(this.rectCode.match(/".*?"/g)[0].slice(1,-1))+40,height:parseFloat(this.rectCode.match(/".*?"/g)[1].slice(1,-1))+40}},lessScaleStyle:function(){let e={},t=parseFloat(this.item.innerTextStyle.fontSize);if(t<12){let i=t/12;e.transform=`scale(${i})`,e.width=parseFloat(this.item.style.width)/i+"px",e.height=parseFloat(this.item.style.height)/i+"px"}return e},gradient:function(){return this.item.gradient},svgGradientDeg(){return function(e){return e-90+" 0.5 0.5"}},subBColor:function(){return this.item.isSubtitle?this.item.subBColor:{}},showTextBackgroundDom:function(){return this.item.isSubtitle&&this.subBColor.isShow},textBackgroundColor:function(){if(this.showTextBackgroundDom){let e=this.subBColor,t=e.opacity,i=e.color,s=yt.Z.getRgbaColor(i),n=e.padding;return{top:-n+"px",height:parseFloat(this.item.style.height)+2*n+"px",backgroundColor:`rgba(${s.r}, ${s.g}, ${s.b}, ${t})`,border:`${e.borderWidth}px ${e.borderType} ${e.borderColor}`,borderRadius:parseFloat(e.borderRadius)+"px"}}return{}},isTextSetScroll:function(){return void 0===this.item.overflow||""===this.item.overflow?null:this.item.overflow},getTextRealWidth:function(){if(void 0===this.item.textAreaWidth)return"100%";if(!this.isTextSetScroll)return"100%";return this.item.textAreaWidth?this.item.textAreaWidth:"100%"},getTextRealHeight:function(){if(void 0===this.item.textAreaHeight)return"100%";if(!this.isTextSetScroll)return"100%";return this.item.textAreaHeight?this.item.textAreaHeight:"100%"}},methods:{},components:{ItemLayout:ki},render(e){const t=this,i=t.$props;return e(ki,{attrs:{item:i.item,viewScale:i.viewScale,index:i.index,groupKey:i.groupKey,isGroup:i.isGroup,isGroupItem:i.isGroupItem,pageIndex:i.pageIndex}},[t.showTextBackgroundDom?e("div",{class:"textBackgroundColor",style:t.textBackgroundColor}):"",e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/1999/xlink",width:t.getTextRealWidth,height:t.getTextRealHeight,overflow:"visible",id:"svgtext"+i.item.id,viewBox:i.item.svgText.viewBox},class:{visible:1,textSvg:1,strokeFirst:"outside"===t.strokeAlignment},ref:"textSvg"+i.item.id},[e("defs",[e("filter",{attrs:{id:"blur"}},[e("feGaussianBlur",{attrs:{in:"SourceGraphic",stdDeviation:"2"}})])]),e("rect",{class:"filterRect",attrs:{filter:"url(#blur)",stroke:"none",fill:"transparent",x:"0",y:-2*parseFloat(i.item.style.height),width:parseFloat(i.item.style.width),height:4*parseFloat(i.item.style.height)},style:"pointer-events: none"}),e("g",{domProps:{innerHTML:i.item.svgText.svgCode},attrs:{overflow:"visible"}}),t.gradient.show?e("g",[e("defs",[t.gradient.isLinear?e("linearGradient",{attrs:{id:t.linearId,gradientTransform:`rotate(${t.svgGradientDeg(t.gradient.gradientDeg)})`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},[t.gradient.colorList.map(((t,i)=>e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})))]):e("radialGradient",{attrs:{id:t.linearId}},[t.gradient.colorList.map(((t,i)=>e("stop",{key:i,attrs:{offset:t.percent,"stop-color":t.color}})))]),e("mask",{attrs:{id:t.maskId},domProps:{innerHTML:t.gCode}})]),e("g",{attrs:{mask:`url(#${t.maskId})`}},[e("rect",{attrs:{width:t.rectCodeWH.width,height:t.rectCodeWH.height,fill:`url(#${t.linearId})`,id:`rect${i.item.id}`,x:"-20",y:"-20",opacity:"1"},ref:`rect${i.item.id}`})])]):""])])}},Ei=Mi,Ai=(0,ot.Z)(Ei,undefined,undefined,!1,null,"477a3a0a",null).exports,_i=i(6749);class Wi{constructor(e,t,i,s){(0,f.Z)(this,"mainRect",null),(0,f.Z)(this,"angle",0),(0,f.Z)(this,"count",new Set),(0,f.Z)(this,"itemId",0),(0,f.Z)(this,"colorList",["red","green","blue","black","pink","yellow"]),(0,f.Z)(this,"colorHead",0),this.mainRect=e.getBoundingClientRect(),this.angle=t,this.itemId=i,this.pageIndex=s}addRectCoordinateY(e){if(!this.count.has(e)){~[...this.count].findIndex((t=>Math.abs(t-e)<3))||this.count.add(Math.round(e))}}paintRect(e,t,i){const s=document.createElement("div");s.style.position="absolute",s.style.width=e.width+"px",s.style.height=e.height+"px",s.style.top=e.y+"px",s.style.left=e.x+"px",s.style.backgroundColor=this.colorList[this.colorHead],this.colorHead=++this.colorHead%this.colorList.length,s.style.opacity=.1,s.setAttribute("class",`rect${this.itemId}`);const n=this.getRectCenterPointer(e);s.dataset.centerPointerY=n.y,s.dataset.childIndex=t,s.dataset.rectText=i,s.dataset.centerPointerX=n.x,document.querySelector("body").appendChild(s)}paintHighLightRect(e,t,i="yellow"){const s=document.createElement("div");s.style.position="absolute",s.style.width=e.width+"px",s.style.height=e.height+"px",s.style.top=e.y+"px",s.style.left=e.x+"px",s.style.backgroundColor=i,s.style.opacity=.4,s.style.pointerEvents="none",t&&(s.style.transform=t),s.setAttribute("class",Wi.highLightDomClassName),document.querySelector("body").appendChild(s)}static clearHighLight(){Array.from(document.getElementsByClassName(Wi.highLightDomClassName)).forEach((e=>{e.parentNode&&e.parentNode.removeChild(e)}))}getBookClassName(){return window.BookInfo?"#animation"+window.BookInfo.getBookType()+"-"+(this.pageIndex+1):"#animation0-"+(this.pageIndex+1)}computeContentRow(e){const t=Array.from(e.childNodes);for(let i=0;i{this.addRectCoordinateY(e)})):this.computeContentRow(s)}}getTextNodeRow(e,t,i){const s=document.createRange();s.setStart(t,i),s.setEnd(t,i+1);const n=s.getClientRects(),o=new Set;for(let e=0;e=t.x?(r=n-o,a=t.y+s*Math.sin(r)):(r=Math.PI-n+o,a=t.y-s*Math.sin(r));let l=t.x+s*Math.cos(r);return 0===r&&(l=i.x,a=i.y),Object.assign({},JSON.parse(JSON.stringify(e)),{x:l-e.width/2,y:a-e.height/2})}getRectCenterPointer(e){return{x:e.left+e.width/2,y:e.top+e.height/2}}searchNormalText(e,t,i,s=!0){const n=Array.from(e.childNodes);for(let o=0;o{i.push(new Fi(t,-1,e.input,e.highLightRect,e.highLightTransform))}))}else this.searchNormalText(r,t,i,s)}}textHighLight(e,t,i,s=!1){const n=new RegExp(i,"ig"),o=Array.from([...e.wholeText.matchAll(n)]);return o&&o.forEach((t=>{const n=t.index,o=i.length+n,r=document.createRange();r.setStart(e,n),r.setEnd(e,o);const a=r.getClientRects();for(let e=0;e{e.highLightRect.forEach((e=>{const a=t,l=(e.x-i)/a-n,d=(e.y-s)/a-o,h=e.width/a,c=e.height/a,u=new Oi(l,d,h,c,this.angle);r.push(u)}))})),r}}(0,f.Z)(Wi,"highLightDomClassName","reader_highlight_text");class Fi{constructor(e,t,i,s,n){(0,f.Z)(this,"searchText",""),(0,f.Z)(this,"search_page",-1),(0,f.Z)(this,"search_text",""),(0,f.Z)(this,"highLightRect",[]),(0,f.Z)(this,"highLightTransform",""),this.searchText=e,this.search_page=-1,this.search_text=i,this.highLightRect=s,this.highLightTransform=n}}class Oi{constructor(e,t,i,s,n){(0,f.Z)(this,"left",0),(0,f.Z)(this,"top",0),(0,f.Z)(this,"width",0),(0,f.Z)(this,"height",0),(0,f.Z)(this,"rotate",0),(0,f.Z)(this,"id",0),this.left=e,this.top=t,this.width=i,this.height=s,this.rotate=n,this.id=(0,_i.Z)("high_light_")}}var Bi=i(5125);const Zi=",@#";class Hi{constructor(){}static getTextPosition(e){const t=e.id,i=document.querySelector(`#spanText${t}`);if(i){if(1===Hi.positionType){const t=[];return Array.from(i.firstChild.querySelectorAll("div")).forEach((i=>{const s=Hi.getTextNode(i,e),n=[];s.forEach((t=>{const i=n.findIndex((e=>e.rowTop===t.top));if(-1===i){const i=new Ni(t.top,t.left,t.height);"justify"===e.innerTextStyle.textAlign&&(i.justify=!0),i.addText(t),n.push(i)}else n[i].addText(t)})),n.length>0&&(n[n.length-1].justify=!1),t.push(...n)})),t}if(2===Hi.positionType){const t=Hi.getTextNode(i,e),s=new Ni(0,0,0);return t.forEach((e=>{s.addText(e)})),s.rowText}return[]}}static positionListToStr(e,t,i,s,n,o){const r=document.createElement("div");if(1===Hi.positionType)for(let a=0;a{const o=[];Hi.getParentsUntilDiv(e,o);const r=new zi;r.fontSize=Math.floor(parseFloat(t.innerTextStyle.fontSize)),r.fontFamily=t.innerTextStyle.fontFamily,"#00000"!==t.innerTextStyle.color&&(r.color=t.innerTextStyle.color),o.forEach((e=>{switch(e.tagName){case"B":r.bold=!0,e.style.color&&(r.color=e.style.color),"italic"===e.style.fontStyle&&(r.italic=!0);break;case"U":r.underline=!0,e.style.color&&(r.color=e.style.color),"italic"===e.style.fontStyle&&(r.italic=!0),"bold"===e.style.fontWeight&&(r.bold=!0);break;case"I":r.italic=!0,e.style.color&&(r.color=e.style.color),"bold"===e.style.fontWeight&&(r.bold=!0);break;case"FONT":e.color&&(r.color=e.color),e.style.color&&(r.color=e.style.color),"italic"===e.style.fontStyle&&(r.italic=!0),"bold"===e.style.fontWeight&&(r.bold=!0);break;case"SPAN":e.style.color&&(r.color=e.style.color),"italic"===e.style.fontStyle&&(r.italic=!0),"bold"===e.style.fontWeight&&(r.bold=!0);break;case"STRIKE":r.strikeThrough=!0,e.style.color&&(r.color=e.style.color),"italic"===e.style.fontStyle&&(r.italic=!0),"bold"===e.style.fontWeight&&(r.bold=!0)}}));let a=e.offsetWidth,l=e.offsetLeft;0===a&&0!==n&&(a=i[n-1].offsetWidth,l-=a/2),r.text=e.innerText,r.left=l,r.top=e.offsetTop,r.width=a,r.height=e.offsetHeight,s.push(r)})),s}static getParentsUntilDiv(e,t){if("DIV"===e.tagName)return t;Hi.getParentsUntilDiv(e.parentNode,t)}}(0,f.Z)(Hi,"positionType",1);class Ni{constructor(e,t,i){(0,f.Z)(this,"text",""),(0,f.Z)(this,"rowTop",0),(0,f.Z)(this,"rowLeft",0),(0,f.Z)(this,"rowHeight",0),(0,f.Z)(this,"rowWidth",0),(0,f.Z)(this,"justify",!1),(0,f.Z)(this,"rowText",[]),this.rowTop=e,this.rowLeft=t,this.rowHeight=i}addText(e){const t=Ni.formatCharacterText(e),i=`${e.left}${Zi}${e.top}${Zi}${e.width}${Zi}${e.height}${Zi}${e.color}${Zi}${e.bold?1:0}${Zi}${e.italic?1:0}${Zi}${e.underline?1:0}${Zi}'${t}'${Zi}${e.strikeThrough?1:0}${Zi}0${Zi}0${Zi}0`;this.rowText.push(i)}static formatCharacterText(e){let t=e.text;return isNaN(t.charCodeAt(0))&&(t=" "),t}static patchRowCharacter(e){return"string"==typeof e[0]?e.map((e=>Ni.characterStr2Character(e))):e}static rowToInnerHtml(e,t,i,s,n,o,r,a){const l=Ni.patchRowCharacter(e),d=document.createElement("div");return l.forEach(((e,l)=>{const h=document.createElement("span"),c=e.text;if(n){const t=e.color?e.color:o.color;h.innerHTML=`\n \n \n ${c}\n \n `}else h.textContent=c;e.bold&&h.classList.add("text_bold"),e.italic&&h.classList.add("text_italic"),e.underline&&h.classList.add("text_undeline"),e.strikeThrough&&h.classList.add("text_lineThrough"),i&&(h.style.fontSize=i+"px"),h.style.color=e.color,e.fontSize&&(h.style.fontSize=parseFloat(e.fontSize)*s+"px"),h.style.left=e.left-t.rowLeft+"px",e.zoom&&1===e.zoom||0===e.zoom||void 0===e.zoom||(h.style.zoom=parseFloat(e.zoom),h.style.left=(e.left-t.rowLeft)/e.zoom+"px"),h.classList.add("text_position"),h.classList.add(`text_anime_${r.id}_${a}_${l}`),h.dataset.dateText=c,d.appendChild(h)})),d.innerHTML}static characterStr2Character(e){const t=e.split(Zi),i=new zi;return i.left=t[0],i.top=t[1],i.width=t[2],i.height=t[3],i.color=t[4],i.bold=1===Number(t[5]),i.italic=1===Number(t[6]),i.underline=1===Number(t[7]),i.text=t[8].slice(1,-1),i.strikeThrough=1===Number(t[9]),i.fontSize=0===Number(t[11])?"":t[11],i.zoom=1===Number(t[12])?"":t[12],i}static patchCharacter(e,t){return!1}}class zi{constructor(){(0,f.Z)(this,"bold",!1),(0,f.Z)(this,"underline",!1),(0,f.Z)(this,"italic",!1),(0,f.Z)(this,"fontSize","12px"),(0,f.Z)(this,"fontFamily",""),(0,f.Z)(this,"color","#000000"),(0,f.Z)(this,"text",""),(0,f.Z)(this,"left",0),(0,f.Z)(this,"top",0),(0,f.Z)(this,"width",0),(0,f.Z)(this,"height",0),(0,f.Z)(this,"strikeThrough",!1)}}function Ri(e){return e.replace(/(rgb(a)?\(.*?\)|(#[0-9a-fA-F]{6}))/gi,"")}var Vi={name:"ItemForNormalText",data(){return{originLetterSpacing:0,fixedLetterSpaceing:"0px",timer:null}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mixins:[Li],mounted:function(){this.originLetterSpacing=parseFloat(String(this.item.innerTextStyle.letterSpacing)),this.fixedLetterSpaceing=this.originLetterSpacing+"px",this.item.isSubtitle||(o.Q.$on(`SEARCH_TEXT_${this.pageIndex}`,(e=>{if(e){const t=document.getElementById(`textArea${this.item.id}`);if(t){const i=[],s=new Wi(t,this.item.rotate,this.item.id);s.searchNormalText(t,e,i,!1),i.forEach((e=>{e.search_page=this.item.pageIndex+1}));const n=document.getElementById(`pageInnerAnime${this.item.pageIndex}`).getBoundingClientRect(),o=s.computedRelativeHighLight(i,this.viewScale,n.x,n.y);this.item.highLightRects.push(...o)}}})),o.Q.$on("SEARCH_TEXT_CLEAR",this.clearHeightLight))},destroyed(){o.Q.$off(`PAGE_END_FLIP_${this.pageIndex}`),o.Q.$off(`SEARCH_TEXT_${this.pageIndex}`),o.Q.$off("SEARCH_TEXT_CLEAR",this.clearHeightLight)},updated:function(){},watch:{},computed:{gradient:function(){return this.item.gradient},lessScaleStyle:function(){let e={};if(this.showFontSizeScaleDom){let t=this.truelyFontSize/12;e.transform=`scale(${t})`,e.width=parseFloat(this.item.style.width)/t+"px",e.height=parseFloat(this.item.style.height)/t+"px"}return e},textContentInnerHtml:function(){return this.gradient.show?Ri(this.item.textStr):function(e){const t=document.createElement("div");t.innerHTML=e;const i=Array.from(t.childNodes);for(;0!==i.length;){const e=i.pop();if(1===e.nodeType){const t=e.nodeName;"B"===t.toLocaleUpperCase()&&(e.style.fontWeight="bold"),"I"===t.toLocaleUpperCase()&&(e.style.fontStyle="italic"),"U"===t.toLocaleUpperCase()&&(e.style.textDecoration="underline")}e.childNodes&&i.push(...Array.from(e.childNodes))}return t.innerHTML}(this.item.textStr)}},methods:{clearHeightLight(){this.item.highLightRects=[]},checkContentRow(){const e=this.item.innerTextStyle.fontFamily,t=Bi.e.errorFonts.has(e)||Bi.e.hasAddedFonts.has(e),i=this.item.contentRow;if((void 0!==i||0!==i)&&t){if(this.$store.state.needToFixItemId.has(this.item.id))return void(this.fixedLetterSpaceing=this.originLetterSpacing-2+"px");const e=document.getElementById(`textArea${this.item.id}`);if(e){const t=new Wi(e,this.item.rotate,this.item.id,this.pageIndex);t.computeContentRow(e);const s=t.count;i{if(e){const t=document.getElementById(`normalTextArea${this.item.id}`);if(t){const i=[],s=new Wi(t,this.item.rotate,this.item.id);s.searchNormalText(t,e,i,!1),i.forEach((e=>{e.search_page=this.item.pageIndex+1}));const n=document.getElementById(`pageInnerAnime${this.item.pageIndex}`).getBoundingClientRect(),o=s.computedRelativeHighLight(i,this.viewScale,n.x,n.y);this.item.highLightRects.push(...o)}}})),o.Q.$on("SEARCH_TEXT_CLEAR",this.clearHeightLight))},mixins:[Li],destroyed(){o.Q.$off(`PAGE_END_FLIP_${this.pageIndex}`),o.Q.$off(`SEARCH_TEXT_${this.pageIndex}`),o.Q.$off("SEARCH_TEXT_CLEAR",this.clearHeightLight)},updated:function(){},watch:{},computed:{lessScaleStyle:function(){let e={};if(this.showFontSizeScaleDom){let t=this.truelyFontSize/12;e.transform=`scale(${t})`,e.width=parseFloat(this.item.style.width)/t+"px",e.height=parseFloat(this.item.style.height)/t+"px"}return e},highLightRects:function(){return this.item.highLightRects},gradient:function(){return this.item.gradient},showPositionText:function(){return!this.gradient.show&&Array.isArray(this.item.positionText)&&0!==this.item.positionText.length},textContentInnerHtml:function(){if(this.gradient.show)return Ri(this.item.textStr);const e=this.item.positionText;if(Array.isArray(e)&&0!==e.length){const t=1===this.$store.state.mobileFontScale;return Hi.positionListToStr(e,t?void 0:this.truelyFontSize,this.textScale,this.item.isShowStroke&&"outside"===this.strokeAlignment,this.item.innerTextStyle,this.item)}return""!==e?e:this.item.textStr},itemRotateStyle:function(){return 0!==this.item.rotate&&360!==this.item.rotate?{transform:`rotate(-${this.item.rotate}deg)`}:{}}},methods:{clearHeightLight(){this.item.highLightRects=[]}},components:{ItemLayout:ki},render(e){const t=this,i=t.$props,s=e("div",{attrs:{spellcheck:"false",id:`textArea${t.item.id}`},class:{textArea:!0,textBreakWord:!t.showPositionText,strokeFirst:"outside"===t.strokeAlignment},style:[...t.textStyle],domProps:{innerHTML:t.textContentInnerHtml}}),n=e("div",{attrs:{spellcheck:"false",id:`normalTextArea${t.item.id}`},class:"textArea normalTextArea",style:[...t.textStyle],domProps:{innerHTML:t.item.textStr}});t.highLightRects.map(((t,i)=>e("div",{class:"reader_highlight_text_inner",key:i,style:t.style})));return e(ki,{attrs:{item:i.item,viewScale:i.viewScale,index:i.index,groupKey:i.groupKey,isGroup:i.isGroup,isGroupItem:i.isGroupItem,pageIndex:i.pageIndex}},[e("div",{class:"textArea_container"},[t.showTextBackgroundDom?e("div",{class:"textBackgroundColor",style:t.textBackgroundColor}):"",t.showFontSizeScaleDom?e("div",{class:"lessScale-wrapper scale-wrapper",style:t.lessScaleStyle},[s]):s,t.showFontSizeScaleDom?e("div",{class:"lessScale-wrapper scale-wrapper normalTextArea",style:t.lessScaleStyle},[n]):n])])}},ji=Yi,Ui=(0,ot.Z)(ji,undefined,undefined,!1,null,"f7271526",null).exports,Xi={name:"ItemForText",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex","groupStyle"],mounted:function(){},updated:function(){},watch:{},computed:{componentId:function(){return this.showTextSvg?Ai:this.hasPositionText?Ui:Gi},hasPositionText:function(){return void 0!==this.item.positionText&&""!==this.item.positionText&&0!==this.item.positionText.length&&this.item.transformPositionText},showTextSvg:function(){return""!==this.item.svgText.svgCode}},methods:{},components:{ItemForSvgText:Ai,ItemForNormalText:Gi,ItemForPositionTextVue:Ui}},qi=(0,ot.Z)(Xi,(function(){var e=this;return(0,e._self._c)(e.componentId,{tag:"component",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex,groupStyle:e.groupStyle}})}),[],!1,null,"46be3b7e",null).exports,Qi={name:"SpecialItemContainer",data:function(){return{}},props:["item","pageIndex","itemIndex","isGroupInner","isLastBg"],computed:{intoPageInAnimeTime:function(){return me.P6.getPageInnerDelay(this.pageIndex-1)},intoPageTime:function(){return me.P6.getPageTime(this.pageIndex-1)},pageVisibleTime:function(){return me.P6.getPageTotalAnimeTime(this.pageIndex)},curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},currentPage:function(){},pageIsVisiable:function(){return!0},itemStyle:function(){let e=me.P6.copy(this.item,!0);if("background"===e.type){let t=e.style;return e.hasBGI?e.isSvgBGI||(t.backgroundColor=e.backgroundColor,t.backgroundImage=`url("${e.url}")`,"tile"===e.strategy?t.backgroundRepeat="repeat":t.backgroundRepeat="no-repeat"):e.isGradient?t.background=yt.Z.getGradientColorVal({gradientItem:e.gradient}):t.background=e.bgColor,t}return this.getItemStyle({item:e})}},methods:{getItemStyle:function({item:e}){let t={};return t.top=parseFloat(e.style.top)+"px",t.left=parseFloat(e.style.left)+"px",t.width=parseFloat(e.style.width)+"px",t.height=parseFloat(e.style.height)+"px",this.pageIsVisiable&&(t.transform=` rotate(${e.rotate}deg)`),this.curSliderTimethis.intoPageTime+e.existEndTime?t.visibility="hidden":t.visibility="visible",t}}},Ki={name:"ViewModule",data(){return{}},props:["page","pageIndex"],watch:{},created:function(){},mounted:function(){},updated:function(){},computed:{noControl:{get:function(){return this.$store.state.noControl},set:function(e){this.$store.state.noControl=e}},intoPageInAnimeTime:function(){return me.P6.getPageInnerDelay(this.pageIndex-1)},intoPageTime:function(){return me.P6.getPageTime(this.pageIndex-1)},curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},currentPage:function(){},pageIsVisiable:function(){return!0},itemWrapSubtitleStyleArr:function(){let e=[],t=this.currentPageSubtitles,i=t.length;for(let s=0;s{i[`--button-color${t+1}`]=e.color})),i.background="none",i.borderWidth="0",e.showBorderRadius&&(i["--button-top-left-radius"]=e.borderTopLeftRadius,i["--button-top-right-radius"]=e.borderTopRightRadius,i["--button-bottom-left-radius"]=e.borderBottomLeftRadius,i["--button-bottom-right-radius"]=e.borderBottomRightRadius),"gradient"===t&&(i["--button-border-color"]=e.borderColor,i["--button-border-width"]=e.borderWidth,i["--button-background-color"]=e.background)),i},isGradientBorder(){return"gradient"===this.item.buttonBackground.borderStyle},itemStyle:function(){return this.item.style},itemWidth:{get:function(){return this.itemStyle.width},set:function(e){this.itemStyle.width=e}},buttonIcon:function(){return this.item.buttonIcon},getSvgSize:function(){return{width:this.buttonIcon.fontSize,height:this.buttonIcon.fontSize}},buttonFont:function(){return this.item.buttonFont},buttonText:function(){return this.item.buttonText},iconSiteLeft:function(){return"left"===this.buttonIcon.iconSite?"":{display:"none"}},iconSiteRight:function(){return"right"===this.buttonIcon.iconSite?"":{display:"none"}},iconHref:function(){return this.buttonIcon.iconHref},isShowIcon:function(){return this.buttonIcon.isShowIconEdit?"":{display:"none"}},itemIndex:function(){return this.item.itemIndex},showBorderRadius:function(){return this.item.buttonBackground.showBorderRadius?{borderRadius:`${this.item.buttonBackground.borderTopLeftRadius} ${this.item.buttonBackground.borderTopRightRadius} ${this.item.buttonBackground.borderBottomRightRadius} ${this.item.buttonBackground.borderBottomLeftRadius} `}:{borderRadius:"0"}},isShowTextInput:function(){return this.$store.getters.isH5Pro?this.item.buttonText:!this.item.isPhoneButton||this.item.isShowTextEdit}},methods:{getIconSvg:function(){return"wechat-fill"===this.iconHref?`\n \n \n `:"wechat-stroke"===this.iconHref?function(e){return`\n \n \n \n \n \n `}(this.buttonIcon.color):void 0},mouseEvent:function(e){switch(e){case"mouseenter":this.buttonForBackground=this.item.buttonBackground.hoverColor||this.buttonForBackground;break;case"mousedown":this.buttonForBackground=this.item.buttonBackground.clickColor||this.buttonForBackground;break;default:this.item.buttonBackground.hasgradient&&!S.Z.isEmptyObject(this.item.buttonBackground.gradient)?this.buttonForBackground=yt.Z.getGradientColorVal({gradientItem:this.item.buttonBackground.gradient}):this.buttonForBackground=this.item.buttonBackground.background}},async appendSvg(){let e=await fetch(this.item.buttonIcon.url);const t=await e.blob();this.svgIcon=URL.createObjectURL(t)}},components:{ItemLayout:ki}},ns=(0,ot.Z)(ss,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForButton",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,pageIndex:e.pageIndex,viewScale:e.viewScale},on:{mouseEvent:e.mouseEvent}},[t("div",{staticClass:"button_con",style:[e.showBorderRadius,e.buttonStyle]},[t("div",{staticClass:"button_icon",style:[e.buttonIcon,e.isShowIcon,e.iconSiteLeft]},[e.item.isPhoneButton?t("svg",{staticClass:"svg-icon"},[t("use",{attrs:{href:`${e.svgIcon}#icon-id`}})]):["wechat-fill"!==e.iconHref&&"wechat-stroke"!==e.iconHref?t("i",{class:e.iconHref}):e._e(),"wechat-fill"===e.iconHref||"wechat-stroke"===e.iconHref?t("p",{staticClass:"wechat",style:e.getSvgSize,domProps:{innerHTML:e._s(e.getIconSvg())}}):e._e()]],2),e.item.isShowRing?t("div",{domProps:{innerHTML:e._s(e.item.ringHtml)}}):e._e(),e.isGradientBorder?t("div",[t("div",{staticStyle:{position:"absolute",top:"0",left:"0",height:"100%",width:"100%",background:"var(--button-border-color)","border-radius":"var(--button-top-left-radius)"}}),t("div",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",height:"calc(100% - (var(--button-border-width) * 2))",width:"calc(100% - (var(--button-border-width) * 2))",background:"var(--button-background-color)","border-radius":"var(--button-top-left-radius)"}})]):e._e(),e.isShowTextInput?t("div",{staticClass:"button_text",style:[e.buttonFont]},[t("span",{attrs:{id:"editSpan"}},[e._v(e._s(e.buttonText))])]):e._e(),t("div",{staticClass:"button_icon",style:[e.buttonIcon,e.isShowIcon,e.iconSiteRight]},[e.item.isPhoneButton?t("svg",{staticClass:"svg-icon"},[t("use",{attrs:{href:`${e.svgIcon}#icon-id`}})]):["wechat-fill"!==e.iconHref&&"wechat-stroke"!==e.iconHref?t("i",{class:e.iconHref}):e._e(),"wechat-fill"===e.iconHref||"wechat-stroke"===e.iconHref?t("p",{staticClass:"wechat",style:e.getSvgSize,domProps:{innerHTML:e._s(e.getIconSvg())}}):e._e()]],2)])])}),[],!1,null,"5e814e7a",null).exports,os=i(9354),rs=i(1223),as=i.n(rs),ls={name:"ItemForChart",props:["item","index","groupKey","isGroup","isGroupItem","pageIndex"],data(){return{beTb:!1,singleHLTextWidth:0}},computed:{pointR:function(){return Math.max(Math.min(.3*this.rectWidth,6),1)},startX:function(){return Math.min(.12*Math.min(this.width,this.height),40)},startY:function(){return"top"===this.item.position?Math.min(.22*Math.min(this.width,this.height),60):Math.min(.15*Math.min(this.width,this.height),40)},endX:function(){return this.width-Math.min(1.5*this.startX,60)},endY:function(){return this.xToTop},ySize:function(){return this.endY-this.startY},xSize:function(){return this.endX-this.startX},height:function(){return this.item.isFixedRatio?500:parseFloat(this.item.style.height)},width:function(){return this.item.isFixedRatio?500:parseFloat(this.item.style.width)},xToTop:function(){return"top"===this.item.position?this.height-Math.min(.12*Math.min(this.width,this.height),60):this.height-Math.min(.22*Math.min(this.width,this.height),60)},circleToTop:function(){return"top"===this.item.position?this.height/2+2.5*this.pointR:this.height/2-2.5*this.pointR},circleR:function(){return.78*Math.min(this.width/2-6*this.pointR,this.height/2-6*this.pointR)},minNum:function(){let e=0;return this.dataNumber.forEach((t=>{e=Math.min(t,e)})),e<0&&(e=-Math.ceil(Math.abs(e))),e},maxYAxis:function(){let e,t=this.maxDataNumber.toString().split(""),i=t.length;if(1===i)e=Math.ceil(this.maxDataNumber);else if(2===i){let i=parseInt(this.maxDataNumber/10);e=t[1]%i!=0?Math.ceil(this.maxDataNumber/i)*i:this.maxDataNumber}else if(3===i){let i=Math.min(t[0]+"0",50);e=Math.ceil(this.maxDataNumber/i)*i}else if(4===i){let i=t[0],s=t[1];e=0!==Number(i+s+"00")-this.maxDataNumber?Number(i+s+"00")+100:this.maxDataNumber}else{let s=t[0],n=t[1],o="0";for(let e=1;eNumber("5"+o)&&(t=2),e=Number(s+n+o+"0")+Number("5"+o)*t}else e=this.maxDataNumber}return e-this.minNum},chartType:function(){return this.item.chartType},chartClass:function(){return this.item.chartClass},dataNumber:function(){return this.item.dataNumber.filter(((e,t)=>{if(""!==e&&void 0!==e)return e}))},maxDataNumber:function(){return Math.ceil(Math.max(...this.dataNumber))},rectWidth:function(){let e=this.xSize,t=this.dataNumber.length;return 3*(e/(3*t+t+1))},yAxisLabel:function(){let e=this.maxYAxis/5,t=[];for(let i=0;i<=5;i++){const s=parseInt(e*i*100)/100;t.unshift(parseInt(100*(this.minNum+s))/100)}return t},rectColorList:function(){let e=this.dataNumber.length;if(this.item.showGradient){let t=this.item.colorList[0],i=this.item.colorList[this.item.colorList.length-1];return re.Z.getColor({startColor:t,endColor:i,step:e})}return this.item.colorList},translateArr:function(){let e=this.dataNumber.length,t=[];for(let i=0;ie&&!isNaN(e))),e=e.map((e=>e-1<0?0:e-1)),2===e.length&&(e[1]{e+=`L${t.x+this.rectWidth/2}, ${t.y}`})),e+=`L${this.translateArr[t].x+this.rectWidth/2}, ${this.xToTop}`,e},currentPieIndex:function(){let e=0;const t=this.originProgress*Math.PI*2;for(let i=0;i=this.angleArray[i].startAngle&&t<=this.angleArray[i].endAngle){e=i;break}return e}},watch:{},mounted:function(){setTimeout((()=>{this.getSingleHLTextWidth()}),1)},methods:{getSingleHLTextWidth:function(){if(!this.item.showHighlight||!this.item.highlightTitle)return;let e=document.getElementById("highText"+this.item.id);e&&e.getBBox().width?this.singleHLTextWidth=e.getBBox().width+2.5*this.pointR:setTimeout(this.getSingleHLTextWidth,500)},getPath:function({firstPoint:e,secondPoint:t}){return`M${e.x+this.rectWidth/2}, ${e.y} L${t.x+this.rectWidth/2}, ${t.y}`},getPathLength:function(e){return as().path.getTotalLength(e)},getDashArray:function(e){return this.isChartAnime?Math.ceil(this.getPathLength(e)):0},isShowLineCircle:function(e){return this.pathArray.length*this.progress>=e},getRgbaColor:function(e,t){return yt.Z.hexToRgba(e,t)},getDashOffset:function(e,t){let i=0,s=this.progress*this.pathArray.length;return s-e>=0&&s-e<1&&(i=this.getPathLength(t),i+=i*(e-s)),i},getRectHeight:function(e,t){let i=this.progress*this.dataNumber.length;return i-t<0?0:i-t>=0&&i-t<1?Math.abs(e*this.ySize/this.maxYAxis)*(i-t):Math.abs(e*this.ySize/this.maxYAxis)},getRectTrans:function(e){const t=e*this.ySize/this.maxYAxis-1,i=t<0?-t/2:t/2;return(t<0?"scale(1, -1)":"scale(1, 1) ")+"rotate(180,"+this.rectWidth/2+","+i+")"},getCirclePath:function(e){if(e2?2:.25*e.pointR,filter:`drop-shadow(2px 4px 3px ${e.getRgbaColor(e.rectColorList[s],.4)})`,stroke:"rgba(255,255,255,0.9)",cx:""+e.rectWidth/2,r:e.pointR,fill:e.rectColorList[s]}}):e._e()]:e._e(),e.item.showClassName?t("text",{staticClass:"className",attrs:{fill:"rgba(0,0,0,0.4)",x:e.rectWidth/2,"font-size":1.5*e.pointR,"letter-spacing":"1",y:e.xToTop-e.translateArr[s].y+2.5*e.pointR,"text-render":"geometricPrecision","text-anchor":e.beTb?"start":"middle","writing-mode":e.beTb?"tb":"rl"}},[e._v(" "+e._s(e.item.className[s])+" ")]):e._e()],2)})):e._e(),"lineChart"===e.chartType&&e.item.showHighlight?["lineChart"===e.chartType&&e.highlightRange&&e.highlightRange.length>1?t("g",{style:{opacity:e.highlightOpacity},attrs:{transform:`translate(${e.highlightRect.x}, ${e.highlightRect.y})`}},[t("linearGradient",{attrs:{id:"lineChatHighLight",x2:"0%",x1:"0%",y1:"0%",y2:"100%"}},[t("stop",{attrs:{offset:"10%","stop-color":"rgba(254, 76, 93, 0.2)"}}),t("stop",{attrs:{offset:"90%","stop-color":"rgba(254, 76, 93, 0.05)"}})],1),t("path",{attrs:{transform:`translate(${-e.highlightRect.x}, ${-e.highlightRect.y})`,d:e.getHighLightTotalPath,filter:"drop-shadow(0px 2px 2px rgba(255,0,0,0.3))",fill:"url('#lineChatHighLight')",stroke:"url('#lineChatHighLight')","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":"1"}}),e.item.highlightTitle?t("text",{staticClass:"className",attrs:{fill:"#A4A2A2",x:e.highlightRect.w/2,"text-anchor":"middle","font-size":1.5*e.pointR,"letter-spacing":"1",y:e.highlightRect.h-12,"text-render":"geometricPrecision"}},[e._v(" "+e._s(e.item.highlightTitle)+" ")]):e._e()],1):e._e(),"lineChart"===e.chartType&&e.item.highlightTitle&&e.highlightRange&&1===e.highlightRange.length&&e.translateArr[e.highlightRange[0]]?t("g",{style:{opacity:e.highlightOpacity},attrs:{transform:`translate(${e.highlightRect.x-e.curSingleHLTextWidth/2+e.rectWidth/2}, ${e.highlightRect.y-6.25*e.pointR})`}},[t("rect",{staticClass:"slide-fade animate",attrs:{rx:4,ry:4,height:4.25*e.pointR,width:e.curSingleHLTextWidth,fill:"#FE4C5D",stroke:"none"}}),"lineChart"===e.chartType?t("circle",{staticClass:"circle",attrs:{cx:""+e.curSingleHLTextWidth/2,filter:"drop-shadow(2px 4px 3px rgba(239, 87, 87, 0.4))",cy:6.25*e.pointR,r:e.pointR,stroke:"rgba(255,255,255,0.9)","stroke-width":"2",fill:e.rectColorList[e.highlightRange[0]]}}):e._e(),t("text",{staticClass:"className",attrs:{id:"highText"+this.item.id,"dominant-baseline":"text-before-edge","font-weight":"bold",fill:"#fff",x:1.25*e.pointR,y:e.pointR,"text-anchor":"start","font-size":2*e.pointR,"letter-spacing":"1","text-render":"geometricPrecision"}},[e._v(" "+e._s(e.item.highlightTitle)+" ")])]):e._e()]:e._e(),"pieChart"===e.chartType?[e._l(e.pathArray,(function(i,s){return t("g",{key:s},[t("path",{attrs:{d:e.getCirclePath(s),fill:e.rectColorList[s]}})])})),e._l(e.pathArray,(function(i,s){return t("g",{key:s+11e3},[e.item.showClassName?t("text",{attrs:{x:e.textPointArray[s].x,y:e.textPointArray[s].y,"font-size":1.25*e.pointR,"font-family":"Microsoft YaHei"}},[e._v(" "+e._s(e.item.className[s])+" ")]):e._e(),e.item.showClassName?t("text",{attrs:{x:e.textPointArray[s].x,y:e.textPointArray[s].y+1.75*e.pointR,"font-size":1.25*e.pointR,"font-family":"Microsoft YaHei"}},[e._v(" "+e._s(parseFloat(e.dataNumber[s]/e.total*100).toFixed(2))+" % ")]):e._e()])}))]:e._e(),"饼图二"===e.chartClass?t("circle",{staticClass:"circle",attrs:{cx:""+e.width/2,cy:e.circleToTop,r:e.circleR,fill:"#fff"}}):e._e(),e.item.showTitle?t("text",{attrs:{x:e.width/2,y:"top"===e.item.position?3*e.pointR:e.endY+Math.min(.22*Math.min(e.width,e.height),60)-2*e.pointR,"font-size":2.5*e.pointR,fill:e.item.titleColor,"text-render":"geometricPrecision","text-anchor":"middle","font-family":"Microsoft YaHei"}},[e._v(" "+e._s(e.item.title)+" ")]):e._e(),e.item.showXYTitle?t("text",{attrs:{x:e.endX,y:e.endY+.625*e.pointR+("lineChart"===e.chartType?0:e.minNum/e.maxYAxis*e.ySize),"font-size":1.5*e.pointR,fill:e.item.xAxis.color,"text-render":"geometricPrecision","text-anchor":"start","font-family":"Microsoft YaHei"}},[e._v(" "+e._s(e.item.xAxis.title)+" ")]):e._e(),e.item.showXYTitle?t("text",{attrs:{x:e.startX,y:Math.max(e.startY-2.75*e.pointR,2.75*e.pointR),"font-size":1.5*e.pointR,fill:e.item.yAxis.color,"text-render":"geometricPrecision","text-anchor":"middle","font-family":"Microsoft YaHei"}},[e._v(" "+e._s(e.item.yAxis.title)+" ")]):e._e()],2)])}),[],!1,null,"62fa974e",null).exports,hs={name:"ItemForComponent",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{},watch:{currentPageIndex:function(){this.timeSeekFlag=!0}},methods:{},mounted:function(){},components:{ItemLayout:ki}},cs=(0,ot.Z)(hs,(function(){var e=this;return(0,e._self._c)("ItemLayout",{attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}})}),[],!1,null,"2345a969",null).exports,us={name:"ItemForFrames",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{selectSvgIndex:-1}},methods:{},computed:{defaultImg:function(){return"https://pub.xiuzhan365.com/resourceFiles/reader/assets/framesBg.svg"},containerInFor:function(){return this.item.containerInFor},idList:function(){let e=this.item.containerList.length,t=[];for(let i=0;i=r?(e=389.9*o,s=556.7*o):(e=389.9*r,s=556.76*r),i.width=s+"px",i.height=e+"px",i.y=this.containerInFor[t].y-(e-this.containerInFor[t].h)/2,i.x=this.containerInFor[t].x-(s-this.containerInFor[t].w)/2}e.push(i)}return e},whichImg:function(){let e=[];for(let t=0;t=73?t:Math.min(e,t)},spriteWrapperStyle:function(){let e={};if(this.currentGif){let t=this.currentGif.isHorizonFlip;e.transform=void 0===t||!1===t?"rotateY(0deg)":"rotateY(180deg)"}return e},spriteStyle:function(){if(this.currentGif&&this.currentGif.styleFix&&this.item.config&&this.item.config.grids){let e=new ms({grids:this.item.config.grids,url:this.item.config.url}),t=0;(this.currentGif.hasLoadedNormal||this.noControl)&&(t=this.currentGif.loadImageIndex);let i=e.get({time:0,totalTime:this.item.config.duration,gridsIndex:t}),s=e.get({time:this.item.config.time,totalTime:this.item.config.duration,gridsIndex:t}),n=i.width,o=i.left,r=i.top,a=i.height,l=s.width,d=s.left,h=s.height,c=s.top,u=this.currentGif.styleFix,p=(u.x/100*n*u.scale+(o-d)*(1-u.scale))/(l*u.scale)*100,m=((u.scale-1)*(c-r)*100-(1-u.scale)*(h-a)*100+u.y*a)/h;return{width:`${parseInt(this.gifSpriteStyle.width)}px`,height:`${parseInt(this.gifSpriteStyle.height)}px`,left:`${parseInt(this.gifSpriteStyle.left)}px`,top:`${parseInt(this.gifSpriteStyle.top)}px`,transform:`scale(${u.scale}) translate(${p}%,${m}%)`,transformOrigin:"left bottom",background:`url(${this.gifSpriteStyle.background.url}) ${-parseInt(this.gifSpriteStyle.background.x)}px ${-parseInt(this.gifSpriteStyle.background.y)}px no-repeat`,position:"absolute"}}return{width:`${parseInt(this.gifSpriteStyle.width)}px`,height:`${parseInt(this.gifSpriteStyle.height)}px`,left:`${parseInt(this.gifSpriteStyle.left)}px`,top:`${parseInt(this.gifSpriteStyle.top)}px`,background:`url(${this.gifSpriteStyle.background.url}) ${-parseInt(this.gifSpriteStyle.background.x)}px ${-parseInt(this.gifSpriteStyle.background.y)}px no-repeat`,position:"absolute"}},spriteContainerStyle:function(){let e={transform:`scale(${this.itemScale})`,width:`${this.metaWidth}px`,height:`${this.metaHeight}px`,top:0,left:0,transformOrigin:"0 0"};return this.item.config.characterId>=73&&(e.transform=`scale(${this.itemScale}) translateX(-50%) translateY(-50%)`,e.top="50%",e.left="50%"),e}},watch:{},mounted:function(){},methods:{loadImage:function(e){e.hasLoadedNormal=!0}},components:{}},fs=(0,ot.Z)(gs,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"ImgForSprite imgItem"},[e.item.isSprite?t("div",{staticClass:"sprite-container",style:e.spriteContainerStyle},[t("div",{staticClass:"sprite-wrapper",style:e.spriteWrapperStyle},[t("div",{style:e.spriteStyle})])]):e._e(),e.item.isSprite?e._l(e.gifs,(function(i,s){return t("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:s,attrs:{src:i.image[i.loadImageIndex]},on:{load:function(t){return e.loadImage(i)}}})})):e._e()],2)}),[],!1,null,"6bcbff77",null).exports,ws={name:"ImgForGif",data:function(){return{showCanvas:!1,canvasNode:null,msg:null,hasAction:!1}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{noControl:function(){return this.$store.state.noControl},gifIsTurningToCanvas:function(){return this.item.gifIsTurningToCanvas},gifHasTurnedCanvas:function(){return this.item.gifHasTurnedCanvas},gifToCanvas:function(){return this.item.gifToCanvas},gifImageLoop:function(){return this.item.gifImageLoop},showNormalGif:function(){return!this.gifHasTurnedCanvas||!this.gifToCanvas},showMaskImgDom:function(){return this.item.isShowMaskImage&&""!==this.maskImageFile.url},maskImageFile:function(){return this.item.animationFiles.maskImageFile},imgBackPosition:function(){if(this.showMaskImgDom&&this.maskImageFile.itemX&&this.maskImageFile.itemY){return`${this.maskImageFile.itemX*parseFloat(this.item.style.width)/100}px ${this.maskImageFile.itemY*parseFloat(this.item.style.height)/100}px`}return this.item.pathBackgroundPosition},imgBackSize:function(){return this.showMaskImgDom&&this.maskImageFile.itemW&&this.maskImageFile.itemH?`${this.maskImageFile.itemW}% ${this.maskImageFile.itemH}%`:this.item.pathBackgroundSize},normalStyle:function(){let e=this.item,t={width:"100%",height:"100%",backgroundPosition:this.imgBackPosition,backgroundSize:this.imgBackSize};return 0===this.item.pageIndex&&(this.isYZPro||this.isFlipPro)&&(t.backgroundImage=`url("${e.url}")`),e.borderRadius&&e.showBorderRadius&&!e.isBGI&&(t.borderTopLeftRadius=e.borderRadius.topLeft+"px",t.borderTopRightRadius=e.borderRadius.topRight+"px",t.borderBottomLeftRadius=e.borderRadius.bottomLeft+"px",t.borderBottomRightRadius=e.borderRadius.bottomRight+"px"),"tile"===e.strategy?t.backgroundRepeat="repeat":t.backgroundRepeat="no-repeat",t},curSliderTime:function(){return this.$store.state.animeTime[this.item.pageIndex]},intoPageTime:function(){return 0},currentPage:function(){return this.getCurrentPage()},pageTotalTime:function(){return this.currentPage.totalTime},subTime:function(){let e=this.item;if(this.curSliderTimethis.intoPageTime+this.pageTotalTime)return this.curSliderTime=e.existStartTime?-1===e.existEndTime||t<=e.existEndTime?1e3*(t-e.existStartTime):1e3*e.existEndTime:0},currentStep:function(){if(this.gifHasTurnedCanvas){let e=this.item.superGif.get_length(),t=this.item.superGif.get_info(),i=t.duration||t.durationChrome;i||(i=1);let s=e*(this.subTime%i)/i;return!this.gifImageLoop&&this.subTime>i&&(s=e-1),s}return 0},isYZPro:function(){return this.$store.getters.isYZPro},isFlipPro:function(){return this.$store.getters.isFlipPro},useCanvasToShowGif(){return this.item.gifToCanvas}},inject:["getCurrentPage"],watch:{currentStep:function(e){this.gifHasTurnedCanvas&&this.seekGIFCanvas()},gifHasTurnedCanvas:function(e){e&&this.appendCanvas()}},mounted:function(){this.gifHasTurnedCanvas&&this.useCanvasToShowGif?(this.appendCanvas(),this.seekGIFCanvas()):this.bindEventBusEvent(),this.actionListHasAction()},methods:{seekGIFCanvas:function(){this.item.superGif.move_to(this.currentStep)},isCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.item.pageIndex+1===e||t.indexOf(this.item.pageIndex+1)>-1},hasCanvasDom:function(e){return!!document.querySelector(`#canvasCon${e.id}`).querySelector("canvas")},clearCanvasDom:function(e,t){let i=document.querySelector(`#canvasCon${e.id}`);i&&(t?i.removeChild(t):i.innerHTML="")},appendCanvas(){let e=document.querySelector(`#canvasCon${this.item.id}`);if(e){let t=this.item.superGif.get_canvas();this.hasCanvasDom(this.item)&&this.clearCanvasDom(this.item,t),setTimeout((()=>{e.appendChild(t)}),400)}},bindEventBusEvent:function(){this.showNormalGif&&(o.Q.$on("SLIDER_ENTER_PAGE",(async()=>{if(await this.$nextTick(),!this.isCurrentPage()||!this.$refs.normalGif)return;const e=document.createElement("a");e.href=this.item.url;const t=new URLSearchParams(e.search);let i=this.item.url;this.isYZPro&&(i=0===t.size?`${this.item.url}?t=${(new Date).getTime()}`:`${this.item.url}&t=${(new Date).getTime()}`),(this.isYZPro||this.isFlipPro)&&0===this.item.pageIndex||(this.$refs.normalGif.style["background-image"]=`url("${i}")`)})),o.Q.$on("SLIDER_LEAVE_PAGE",(async()=>{await this.$nextTick(),!this.isCurrentPage()&&this.$refs.normalGif&&((this.isYZPro||this.isFlipPro)&&0===this.item.pageIndex||(this.$refs.normalGif.style["background-image"]=""))})))},unbindEventBusEvent:function(){this.showNormalGif&&(o.Q.$off("SLIDER_ENTER_PAGE"),o.Q.$off("SLIDER_LEAVE_PAGE"))},actionListHasAction:function(){if(!this.item.actionList||!this.item.actionList.length)return this.hasAction=!1;const e=this.item.actionList;for(let t=0;tt)}case"hours":return!(e-this.previousLikeTime>36e5);case"no":return!!this.previousLikeTime}},limitType:function(){return this.item.limitType},bookId:function(){return this.item.bookId},openSound:function(){return this.item.openSound},openVibrate:function(){return this.item.openVibrate},isShowAlertMsg:{get:function(){return this.$store.state.isShowAlertMsg},set:function(e){this.$store.state.isShowAlertMsg=e}},apiHost:function(){if(this.isH5Pro){return window.location.href.indexOf("t.flipbuilder")>-1?"https://dev.fliphtml5.com/":"https://www.fliphtml5.com/"}return this.$store.getters.apiHost},isUpdateStyle:function(){if(void 0===this.item.likeItemNewTime)return!1;if(0===this.item.likeItemNewTime)return!1;if(void 0===this.item.updateList)return!1;const e=this.item.likeItemNewTime,t=this.item.updateList.find((e=>"updateStyle"===e.type));if(!t)return!1;let i=new Date(Date.parse(t.time)).getTime();if(this.isIphone){const[e,s]=t.time.split(" ");i=new Date(`${e}T${s}`).getTime()}return e>i},isUpdateIconHeight:function(){if(void 0===this.item.likeItemNewTime)return!1;if(0===this.item.likeItemNewTime)return!1;if(void 0===this.item.updateList)return!1;const e=this.item.likeItemNewTime,t=this.item.updateList.find((e=>"iconHeight"===e.type));if(!t)return!1;let i=new Date(Date.parse(t.time)).getTime();if(this.isIphone){const[e,s]=t.time.split(" ");i=new Date(`${e}T${s}`).getTime()}return e>i},likeOuterBoxStyle:function(){if(this.isUpdateStyle){let e=1===this.item.positionType?"100%":"";return this.isUpdateIconHeight&&(e=1===this.item.positionType?"auto":""),{display:"flex","align-items":"center","justify-content":"center",height:e,width:`${this.item.size}px`}}const e={"font-size":`${this.item.size}px`,display:"inline-block",position:"relative"};return 2===this.item.positionType&&(e.display="block"),e},likeContainerStyle:function(){if(this.isUpdateStyle){const e={display:"flex","align-items":"center","justify-content":"center"};return 2===this.item.positionType&&(e["flex-direction"]="column"),e}return{position:"absolute"}},likeItemFontSize:function(){return void 0===this.item.likeItemFontSize?20:this.item.likeItemFontSize},isIphone:function(){return!(!window.isIphone||!window.isIphone())||!(!window.isIpad||!window.isIpad())}},methods:{getUpdateTime:function(){let e="slike"+this.item.timeId;this.previousLikeTime=window.localStorage.getItem(e),this.previousLikeTime?this.previousLikeTime=parseFloat(this.previousLikeTime):this.previousLikeTime=0},setUpdateTime:function(){let e="slike"+this.item.timeId;window.localStorage.setItem(e,this.previousLikeTime)},addOneCount:function(){this.isRunLikeAnime=!0,this.previousLikeTime=(new Date).getTime(),this.count+=1,this.addLikeRequest(),this.openVibrate&&"vibrate"in window.navigator&&window.navigator.vibrate([200,100,200]),this.openSound&&this.$refs.likeAudio.play(),setTimeout((()=>{this.openSound&&this.$refs.likeAudio.pause(),this.isRunLikeAnime=!1}),500)},getLikeCount:function(){this.$http.get(`${this.apiHost}api/likes/get-book-likes`,{params:{bookId:this.item.bookId}}).then((e=>{e.data.code+""=="OK"&&e.data.data.forEach((e=>{if(parseFloat(this.item.timeId)===parseFloat(e.obj_id))return this.getUpdateTime(),void(this.item.count=e.likes_num)}))}))},showLikeLimitMsg:function(){this.isShowAlertMsg=!0},addLikeRequest:function(){this.$http.get(`${this.apiHost}api/likes/inc-likes`,{params:{id:this.item.timeId,bookId:this.item.bookId}}).then((e=>{e.data.code+""=="OK"&&this.setUpdateTime()}))},addCount:function(){if(this.previousLikeTime)switch(this.limitType){case"one":this.showLikeLimitMsg();break;case"day":{let e=new Date(this.previousLikeTime);const t=e.getDate()+1;e.setDate(t),e.setHours(0,0,0,0),new Date>=e?this.addOneCount():this.showLikeLimitMsg();break}case"hours":(new Date).getTime()-this.previousLikeTime>36e5?this.addOneCount():this.showLikeLimitMsg();break;case"no":this.addOneCount()}else this.addOneCount()}},components:{ItemLayout:ki,LikeIconBox_1:Ss,LikeIconBox_2:Ts,SolidIcon_1:ks,SolidIcon_2:Ms}},As=(0,ot.Z)(Es,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForLike",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[t("div",{staticClass:"like",style:[e.likeContainerStyle]},[t("div",{staticClass:"like-outer-box",style:e.likeOuterBoxStyle,on:{click:function(t){return t.stopPropagation(),e.addCount.apply(null,arguments)}}},[1!==e.item.iconType||e.isBetweenLimitTime||e.isRunLikeAnime?e._e():t("div",{staticClass:"likeIconBox",class:{"update-style-box":e.isUpdateStyle},style:[e.likeStyle]},[t("LikeIconBox_1",{attrs:{color:e.color}})],1),1===e.item.iconType&&(e.isBetweenLimitTime||e.isRunLikeAnime)?t("div",{staticClass:"likeIconBox solidIcon",class:{runAnime:e.isRunLikeAnime,"update-style-box":e.isUpdateStyle},style:[e.likeStyle]},[t("SolidIcon_1",{attrs:{color:e.color}}),t("div",{staticClass:"animeBox"},[t("div",{staticClass:"circle-bg",class:{runAnime:e.isRunLikeAnime}},[t("svg",{style:{width:1.5*e.size+"px",height:1.5*e.size+"px"},attrs:{xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[t("circle",{attrs:{cx:1.5*e.size/2,cy:1.5*e.size/2,r:1.5*e.size/2,stroke:e.color,"stroke-width":e.size/20,"stroke-dasharray":e.dashSize,fill:"none"}})])])])],1):e._e(),2!==e.item.iconType||e.isBetweenLimitTime||e.isRunLikeAnime?e._e():t("div",{staticClass:"likeIconBox",class:{"update-style-box":e.isUpdateStyle},style:[e.likeStyle]},[t("LikeIconBox_2",{attrs:{color:e.color}})],1),2===e.item.iconType&&(e.isBetweenLimitTime||e.isRunLikeAnime)?t("div",{staticClass:"likeIconBox solidIcon",class:{runAnime:e.isRunLikeAnime,"update-style-box":e.isUpdateStyle},style:[e.likeStyle]},[t("SolidIcon_2",{attrs:{color:e.color}}),t("div",{staticClass:"animeBox"},[t("div",{staticClass:"circle-bg",class:{runAnime:e.isRunLikeAnime}},[t("svg",{style:{width:1.5*e.size+"px",height:1.5*e.size+"px"},attrs:{xmlns:"http://www.w3.org/2000/svg",version:"1.1"}},[t("circle",{attrs:{cx:1.5*e.size/2,cy:1.5*e.size/2,r:1.5*e.size/2,stroke:e.color,"stroke-width":e.size/20,"stroke-dasharray":e.dashSize,fill:"none"}})])])])],1):e._e()]),t("span",{staticClass:"count",class:{vertical:2===e.item.positionType},style:[e.fontStyle,e.horizontalCountStyle]},[e._v(" "+e._s(e.totalCount)+" ")]),t("audio",{ref:"likeAudio",attrs:{src:"https://test2.yunzhan365.com/resourceFiles/editor/phone/like.mp3"}})])])}),[],!1,null,"343ee488",null),_s=As.exports,Ws={name:"ItemForLink",data(){return{}},computed:{},methods:{},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],components:{ItemLayout:ki}},Fs=(0,ot.Z)(Ws,(function(){var e=this;return(0,e._self._c)("ItemLayout",{staticClass:"ItemForLink",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}})}),[],!1,null,"486b2794",null).exports,Os={name:"ItemForVideo",data(){return{msgList:[],timeSeekFlag:!0,audio:""}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{isIOS:{get:function(){return this.$store.state.isIOS},set:function(e){this.$store.state.isIOS=e}},animeTime:function(){return this.$store.state.animeTime[this.pageIndex]},audioTime:function(){return this.audio.currentTime},rmsgList:function(){return this.msgList.slice(0).reverse()},itemPageIndex:function(){return this.item.pageIndex},currentPageIndex:function(){return this.$store.state.currentPageIndex},musicHref:function(){return this.item.audioInfo?this.item.audioInfo.url:this.item.url},isPlayingAnime:function(){return this.$store.state.isPlayingAnime[this.pageIndex]}},watch:{currentPageIndex:function(){this.timeSeekFlag=!0}},methods:{error:function(){this.msgList.push(`error(音频加载错误时触发), currentTime:${this.audio.currentTime}`)},canplay:function(){this.msgList.push(`canPlay(当浏览器可以开始播放音频/视频时触发), currentTime:${this.audio.currentTime}`)},loadstart:function(){this.msgList.push(`loadstart(当浏览器开始查找音频/视频时触发。), currentTime:${this.audio.currentTime}`)},play:function(){void 0!==this.item.audioInfo.volume&&(this.audio.volume=this.item.audioInfo.volume),this.msgList.push(`play(当音频/视频已开始播放触发。), currentTime:${this.audio.currentTime}`)},pause:function(){this.msgList.push(`pause(当音频/视频已暂停时触发。), currentTime:${this.audio.currentTime}`)},progress:function(){this.msgList.push(`progress(当浏览器正在下载音频/视频时触发。), currentTime:${this.audio.currentTime}`)},durationchange:function(){this.msgList.push(`durationchange(当音频/视频的时长已更改时触发。), currentTime:${this.audio.currentTime}`)},canplaythrough:function(){if(this.msgList.push(`canplaythrough(当浏览器可在不因缓冲而停顿的情况下进行播放时触发。), currentTime:${this.audio.currentTime}`),this.isPlayingAnime&&this.isIOS){let e=this.currentPageIndex,t=me.P6.getPageTime(e-1),i=this.animeTime-t;if(this.itemPageIndex===e){let e=this.item,t=e.animations.in.delay,s=e.audioInfo.endTime+t-e.audioInfo.startTime;if(i>t&&i{Ds().svgAsDataUri(this.$refs.svgRef,{encoderOptions:1}).then((e=>{this.qrcodeImgSrc=e})).catch((e=>{}))}),500)}},components:{ItemLayout:ki}},Ys=(0,ot.Z)(Gs,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForSvg",style:[e.qrcodeItemStyle],attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[e.isShowQrcodeImg?t("div",{staticClass:"qrcode-img"},[t("img",{attrs:{src:e.qrcodeImgSrc}})]):t("svg",{ref:"svgRef",attrs:{id:e.svgId,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"100%",height:"100%",viewBox:e.viewBox}},[e._l(e.gradientColorList,(function(i,s){return t("defs",{key:s},[i.isLinear?t("linearGradient",{attrs:{id:i.id,gradientTransform:`rotate(${e.svgGradientDeg(i.gradientDeg)})`}},e._l(i.colorList,(function(e,i){return t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})})),1):t("radialGradient",{attrs:{id:i.id}},e._l(i.colorList,(function(e,i){return t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})})),1)],1)})),e.item.svg.hasDefs?e._e():t("g",{attrs:{transform:e.transform,id:e.svgRealDomId},domProps:{innerHTML:e._s(e.item.svgCode)}}),e.item.svg.hasDefs?t("g",{attrs:{transform:e.transform,id:e.svgRealDomId}},[t("defs",{domProps:{innerHTML:e._s(e.item.svgCode)}}),t("rect",{attrs:{fill:`url(#${e.item.rectNode.id})`,width:e.item.rectNode.width,height:e.item.rectNode.height,x:"0",y:"0"}})]):e._e()],2)])}),[],!1,null,"6f868fbc",null).exports,js={name:"ItemForSvg",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{}},computed:{componentId:function(){return this.item.userHasChangedColor||"painted"===this.item.animations.in.type?Ys:Rs}},mounted:function(){},methods:{},components:{ItemForSvgImageVue:Rs,ItemForSvgStrVue:Ys}},Us=(0,ot.Z)(js,(function(){var e=this;return(0,e._self._c)(e.componentId,{tag:"component",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}})}),[],!1,null,"679ac67e",null).exports;function Xs(){return-1!==window.location.search.indexOf("video=1")}var qs={name:"ItemForVideo",data(){return{videoDom:null,startSeek:0,time:0}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],inject:["getPageModel"],computed:{curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return S.Z.getPageTime(this.pageIndex-1)},showMaskImgDom:function(){return this.item.isShowMaskImage&&""!==this.maskImageFile.url},maskImageFile:function(){return this.item.animationFiles.maskImageFile},videoStyle(){if(!this.showMaskImgDom)return{};let e=this.maskImageFile.itemX*parseFloat(this.item.style.width)/100,t=this.maskImageFile.itemY*parseFloat(this.item.style.height)/100;return{width:`${this.maskImageFile.itemW}%`,height:`${this.maskImageFile.itemH}%`,left:`${e}px`,top:`${t}px`}},videoInfo:function(){return this.item.videoInfo},videoBGIStyle:function(){return this.item.isBGI?{backgroundColor:"#000"}:{}},isPlayingAnime:function(){return this.$store.state.isPlayingAnime[this.pageIndex]},currentPageIndex:function(){return this.$store.state.currentPageIndex},noControl:function(){return this.$store.state.noControl},isIos:function(){return window.isIphone&&window.isIphone()||window.isIpad&&window.isIpad()}},mounted:function(){this.videoDom=this.$refs[`video${this.item.id}`],this.videoDom.addEventListener("play",(()=>{this.item.isNeedControls=!1,window.bgSound&&window.bgSound.pause()})),this.videoDom.addEventListener("pause",(()=>{window.bgSound&&window.bgSound.play()}))},watch:{},methods:{videoPlay:function(){window.gtag&&window.bookConfig.googleAnalyticsID&&window.gtag("event","playVideo",{event_category:this.item.type,event_label:"Page"+window.BookInfo.getCurrentPages()[0]+" "+this.videoInfo.url})},videoPause:function(){window.gtag&&window.bookConfig.googleAnalyticsID&&window.gtag("event","pauseVideo",{event_category:this.item.type,event_label:"Page"+window.BookInfo.getCurrentPages()[0]+" "+this.videoInfo.url})},videoCanplay:function(){},videoSeeked:function(){this.getPageModel().updateVideoSeeked()},videoSeeking:function(){this.startTime=(new Date).getTime()},videoTimeupdate:function(e){Xs()||this.checkIsCurrentPage()||e.target.pause()},videoError:function(){this.getPageModel().updateVideoSeeked()},checkIsCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.pageIndex+1===e||t.indexOf(this.pageIndex+1)>-1}},components:{ItemLayout:ki}},Qs=(0,ot.Z)(qs,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForVideo",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,pageIndex:e.pageIndex}},[t("div",{staticClass:"videoBGI",style:e.videoBGIStyle},[t("video",{ref:`video${e.item.id}`,style:e.videoStyle,attrs:{id:`video${e.item.id}`,src:e.videoInfo.url,width:"100%",height:"100%",preload:"auto",controls:e.item.isNeedControls,"webkit-playsinline":"true",playsinline:"true","x-webkit-airplay":"true","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x5-video-orientation":"portraint"},on:{play:e.videoPlay,pause:e.videoPause,canplay:e.videoCanplay,seeked:e.videoSeeked,seeking:e.videoSeeking,timeupdate:e.videoTimeupdate,error:e.videoError}})])])}),[],!1,null,"4490e4f8",null).exports,Ks=i(8234),Js=i.n(Ks);function en(e){return!window.BookInfo||!!window.BookInfo.getCurrentPages().includes(e+1)}var tn={name:"Lottie",data(){return{dom:null,lottieObj:null,error:!1}},props:["item","currentStep","pageIndex"],inject:["getPageModel"],computed:{isFlipPro:function(){return this.$store.getters.isFlipPro},itemId:function(){return`dom${this.item.id}`},jsonUrl:function(){return this.item.jsonUrl},speed:function(){return this.item.speed},hasLoadedJson:function(){return this.item.hasLoadedJson},json:function(){return this.item.json},isAutoPlay:function(){return this.item.isAutoPlay},colorInfo:function(){return this.item.colorInfo},widthInfo:function(){return this.item.widthInfo},noControl:function(){return this.$store.state.noControl},isLoop:function(){return this.item.isLoop},lottieIsLoop:function(){return!!this.isFlipPro||this.isLoop},lottieIsAutoPlay:function(){return!!this.isFlipPro||this.isAutoPlay}},watch:{currentStep:function(e){this.isAutoPlay||this.lottieObj.goToAndStop(e,!1)},hasLoadedJson:function(){this.setLottie()}},mounted(){Xs()||o.Q.$on(`PAGE_END_FLIP_${this.pageIndex}`,(()=>{this.lottieObj&&(en(this.pageIndex)?this.lottieObj.play():this.lottieObj.stop())})),Xs()||o.Q.$on(`SLIDER_LEAVE_PAGE_${this.pageIndex}`,(()=>{this.lottieObj&&this.lottieObj.stop()}))},beforeDestroy(){o.Q.$off(`PAGE_END_FLIP_${this.pageIndex}`),o.Q.$off(`SLIDER_LEAVE_PAGE_${this.pageIndex}`)},destroyed(){this.lottieObj&&(this.lottieObj.destroy(),this.lottieObj=null)},methods:{setLottie:function(){this.lottieObj&&(this.lottieObj.destroy(),this.lottieObj=null);try{let e=this.setLottieColor();e=this.setLottieWidth(e);let t=this.$refs[this.itemId];this.lottieObj=Js().loadAnimation({container:t,renderer:"svg",loop:this.lottieIsLoop,autoplay:this.lottieIsAutoPlay,animationData:e}),en(this.pageIndex)||this.lottieObj.stop(),this.lottieObj.addEventListener("DOMLoaded",(()=>{this.getPageModel().readyCounter.add("lottie"),this.noControl})),this.lottieObj.addEventListener("data_failed",(()=>{})),this.lottieObj.renderer.layerElement.removeAttribute("clip-path"),this.lottieObj.renderer.svgElement.style.transform="",this.lottieObj.setSpeed(this.speed)}catch(e){this.noControl}},setLottieColor:function(){try{let e=me.P6.copy(this.json,!0);return this.colorInfo.forEach((t=>{let i=t.color,s=yt.Z.getRgbaColor(i),n={};n=-1===t.assetIndex?e.layers[t.layerIndex].shapes[t.shapeIndex]:e.assets[t.assetIndex].layers[t.layerIndex].shapes[t.shapeIndex],t.itIndex.forEach((e=>{n=n.it[e]})),n.o.k=100*Number(s.a),n.c.k[0]=parseInt(s.r)/255,n.c.k[1]=parseInt(s.g)/255,n.c.k[2]=parseInt(s.b)/255})),e}catch(e){}},setLottieWidth:function(e){return this.widthInfo.forEach((t=>{let i=t.width;if(i){let s={};s=-1===t.assetIndex?e.layers[t.layerIndex].shapes[t.shapeIndex]:e.assets[t.assetIndex].layers[t.layerIndex].shapes[t.shapeIndex],t.itIndex.forEach((e=>{s=s.it[e]})),s.w.k=Number(i)}})),e}}},sn=tn,nn=(0,ot.Z)(sn,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"lottieBox"},[t("div",{ref:e.itemId,staticClass:"lottieBox",attrs:{id:e.itemId}})])}),[],!1,null,"62bf94ec",null),on=nn.exports,rn={name:"ItemForEffect",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],inject:["getCurrentPage"],computed:{curSliderTime:function(){return this.$store.state.animeTime[this.pageIndex]},intoPageTime:function(){return me.P6.getPageTime(this.pageIndex-1)},currentPage:function(){},pageTotalTime:function(){return this.getCurrentPage?this.getCurrentPage().totalTime:0},subTime:function(){let e=this.item;if(this.curSliderTimethis.intoPageTime+this.pageTotalTime&&!this.isLoop)return this.curSliderTime=e.existStartTime?-1===e.existEndTime||t<=e.existEndTime?1e3*(t-e.existStartTime):1e3*e.existEndTime:0},componentClassName:function(){return this.item.effectType},cycleTime:function(){return"Lottie"===this.item.effectType?1e3*this.item.cycle/this.item.speed:1e3*this.item.cycle},isLoop:function(){return this.item.isLoop},currentStep:function(){return this.isLoop?this.subTime%this.cycleTime:this.subTime>this.cycleTime?this.cycleTime:this.subTime%this.cycleTime},hasLoadedJson:function(){return this.item.hasLoadedJson}},watch:{},methods:{},components:{ItemLayout:ki,...s}},an=rn,ln=(0,ot.Z)(an,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForEffect",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[t(e.componentClassName,{tag:"component",attrs:{item:e.item,currentStep:e.currentStep,pageIndex:e.pageIndex}})],1)}),[],!1,null,"780d10cc",null),dn=ln.exports,hn={name:"SimpleSwiper",data(){return{swiper:null,swiperThumbs:null}},props:{item:{type:Object,desc:"swiper元素"},viewScale:{type:Number,default:1,desc:"页面的缩放比例"},index:{desc:"item选中的下标"},swiperId:{type:String,default:"#mySwiper",desc:"组件初始化节点选择器"},swiperOpts:{type:Object,desc:"开放给用户调整的参数"},swiperType:{type:String,default:"Normal",desc:"swiper类型"}},computed:{isIos:function(){return window.isIphone&&window.isIphone()||window.isIpad&&window.isIpad()},pageScale:function(){return this.viewScale},slideBlockStyle:function(){if("Grid"===this.swiperType)return{height:`calc((100% - ${this.swiperOpts.spaceBetween?this.swiperOpts.spaceBetween:0}px) / 2)`}},slideBg:function(){return{backgroundColor:this.swiperOpts.sliderBgColor}},localSwiperId:function(){return this.swiperId},localSwiperConStyle:function(){return{width:this.swiperOpts.width+"px",height:this.swiperOpts.height+"px",minWidth:"30px",minHeight:"20px"}},createSwiperOpts:function(){let e={watchOverflow:!0,preventClicks:!1};switch(this.swiperType){case"Cards":e.effect="cards";break;case"Carousel":e={...e,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-125%",0,-800],rotate:[0,0,-90]},next:{shadow:!0,translate:["125%",0,-800],rotate:[0,0,90]}}};break;case"Coverflow":e={...e,effect:"coverflow",coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}};break;case"Cube":e={...e,effect:"cube"};break;case"Drawer":e={...e,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:[0,0,-400]},next:{translate:["100%",0,0]}}};break;case"Fade":e={...e,effect:"fade",spaceBetween:30};break;case"Flip":e={...e,effect:"flip"};break;case"Fold":e={...e,effect:"creative",creativeEffect:{prev:{shadow:!0,origin:"left center",translate:["-5%",0,-200],rotate:[0,100,0]},next:{origin:"right center",translate:["5%",0,-200],rotate:[0,-100,0]}}};break;case"Grid":e={...e,grid:{fill:"column",rows:2}};break;case"Interval":e={...e,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-120%",0,-500]},next:{shadow:!0,translate:["120%",0,-500]}}};break;case"Scroll":e={...e,slidesPerView:"auto",freeMode:!0,scrollbar:{el:".swiper-scrollbar",hide:!0,draggable:!0},loop:!1,mousewheel:!0,direction:"vertical"};break;case"SimpleSlider":e={...e,effect:"creative",creativeEffect:{prev:{shadow:!0,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}}}}if(this.swiperOpts.changeBtnColor&&document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-navigation-size",35/this.pageScale+"px"),this.swiperOpts.paginationColor){const e=[{maxWidth:600,scale:5},{maxWidth:1100,scale:6}].find((e=>window.innerWidth<=e.maxWidth));let t=e?.scale||8;this.swiperOpts.dynamicBullets&&this.swiperOpts.direction||(t=8),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-inactive-color",this.swiperOpts.paginationColor),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-color",this.swiperOpts.paginationColor),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-width",t/this.pageScale+"px"),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-height",t/this.pageScale+"px")}return this.swiperOpts.paginationTextColor&&document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-text-color",this.swiperOpts.paginationTextColor),this.swiperOpts.spaceBetween&&(e.spaceBetween=parseInt(this.swiperOpts.spaceBetween)),this.swiperOpts.autoplay&&(e.autoplay={delay:1e3*Number(this.swiperOpts.delayTime),stopOnLastSlide:!1,disableOnInteraction:!1}),this.swiperOpts.zoom&&(e.zoom=!0),this.swiperOpts.slidesPerView&&(e.slidesPerView=parseInt(this.swiperOpts.slidesPerView)),this.swiperOpts.direction&&(e.direction="vertical"),this.swiperOpts.grabCursor&&(e.grabCursor=!0),this.swiperOpts.centeredSlides&&(e.centeredSlides=!0),this.swiperOpts.freeMode&&(e.freeMode=!0),this.swiperOpts.loop&&(e.loop=!0),this.swiperOpts.addChangeBtn&&(e.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}),this.swiperOpts.mousewheel&&(e.mousewheel={enabled:!0,onlyInViewport:!0}),this.swiperOpts.addScrollbar&&(e.scrollbar={hide:!0,draggable:!0,el:".swiper-scrollbar"}),this.swiperOpts.addPagination&&(e.pagination={clickable:!0,type:"bullets",el:".swiper-pagination"},this.swiperOpts.dynamicBullets&&(e.pagination.dynamicBullets=!0),this.swiperOpts.fraction&&(e.pagination.type="fraction"),this.swiperOpts.renderBullet&&(delete e.pagination.type,e.pagination.renderBullet=(e,t)=>`\n \n ${e+1}\n \n `)),this.swiperOpts.parallax&&(e.parallax=!0),e},nodeUpdate:function(){return this.swiperOpts.nodeUpdate},isVirtual:function(){const e=this.swiperOpts.sliderFill;if(0!==e.length&&e.length<=10)return!1;if(["Grid","Cube","Scroll"].includes(this.swiperType))return!1;if(["Carousel","SimpleSlider","Drawer"].includes(this.swiperType)&&this.isIOS)return!0;if(["Normal","Interval","Fold","Carousel"].includes(this.swiperType)&&this.swiperOpts.addScrollbar)return!1;if(["Cards","Fade","Fold"].includes(this.swiperType)){if(this.swiperOpts.autoplay){if("Fade"===this.swiperType){if(this.isIOS)return!0;if(this.swiperOpts.addPagination&&this.isIOS)return!0;if(this.swiperOpts.zoom&&this.isIOS)return!0}return!1}if("Cards"===this.swiperType)return!0}return!(this.swiperOpts.zoom&&!this.isIOS)&&(!!this.swiperOpts.mousewheel&&!(!this.isIOS||"Fade"!==this.swiperType))},isMobile:function(){return this.$store.state.isMobile},isIOS:function(){return this.$store.state.isIOS},swiperShadowStyle:function(){if(!this.isMobile||!this.isIOS||!this.item?.filter?.dropShadow)return{};if(!this.item.isShowShadow||S.Z.hasAnime(this.item))return{};const e=this.item.filter.dropShadow;return{filter:`drop-shadow(${e.shadowX}px ${e.shadowY}px ${e.shadowBlur}px ${e.shadowColor})`}},isPaginationStyle:function(){return!(!this.isIOS||this.swiperOpts.direction)},parallaxBackgroundUrl:function(){return void 0===this.swiperOpts.parallaxBackgroundImage?"":this.swiperOpts.parallaxBackgroundImage.url}},inject:["getPageModel"],async mounted(){this.initSwiperOpts(),await this.importSwiper(),this.createSwiper()},watch:{nodeUpdate:function(){this.$nextTick((()=>{if(this.swiper.destroy(),this.swiperThumbs&&(this.swiperThumbs.destroy(),this.swiperThumbs=null),this.createSwiper(),this.swiperOpts.paginationColor&&(document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-inactive-color",this.swiperOpts.paginationColor),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-color",this.swiperOpts.paginationColor)),this.swiperOpts.paginationTextColor&&document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-text-color",this.swiperOpts.paginationTextColor),"Grid"===this.swiperType)for(const e of document.getElementsByClassName("swiper-grid-container-class"))e.style.height=`calc((100% - ${this.swiperOpts.spaceBetween?this.swiperOpts.spaceBetween:0}px) / 2)`}))},pageScale:function(){document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-navigation-size",35/this.pageScale+"px"),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-width",8/this.pageScale+"px"),document.getElementById(this.localSwiperId.slice(1)).style.setProperty("--swiper-pagination-bullet-height",8/this.pageScale+"px")}},methods:{stopPropagation:function(e){e.stopPropagation()},swiperWheel:function(){this.swiperOpts.mousewheel||"Scroll"===this.swiperType?this.$refs.thisSwiper.addEventListener("wheel",this.stopPropagation):this.$refs.thisSwiper.removeEventListener("wheel",this.stopPropagation)},setThumbsOpts:async function(e){if("Thumbs"!==this.swiperType)return;this.swiperThumbs=new this.swiperModel(`#swiperThumb${this.item.id}`,{spaceBetween:10,slidesPerView:4,watchSlidesVisibility:!0}).swiperCase,await this.$nextTick(),e.thumbs={swiper:this.swiperThumbs}},createSwiper:async function(){const e=this,t=this.getPageModel(),i={init:!0,...this.createSwiperOpts,on:{init:function(){t.readyCounter.add("swiper"),e.swiperOpts.loop?(this.slideToLoop(1),window.setTimeout((()=>{this.slideToLoop(0)}),300)):(this.slideTo(1),window.setTimeout((()=>{this.slideTo(0)}),300))}}};await this.setThumbsOpts(i),this.swiperOpts.sliderFill.length>10&&this.isVirtual&&(i.virtual={slides:this.swiperVirtual()}),this.swiper=new this.swiperModel(this.localSwiperId,i).swiperCase},swiperVirtual:function(){const e=[];for(let t=0;t\n \n \n \n \n `)}return e},swiperModel:function(){},importSwiper:async function(){if(this.isVirtual){const{SwiperModel:e}=await Promise.resolve().then((()=>i(979)));return this.swiperModel=e,await Promise.resolve().then((()=>i(1064))),void await Promise.resolve().then((()=>i(3204)))}const{SwiperModel:e}=await Promise.resolve().then((()=>i(8435)));this.swiperModel=e,await Promise.resolve().then((()=>i(777))),await Promise.resolve().then((()=>i(9375)))},initSwiperOpts:function(){"Flip"===this.swiperType&&this.swiperOpts.mousewheel&&this.isIOS&&this.isMobile&&(this.swiperOpts.mousewheel=!1)}},components:{}},cn=hn,un=(0,ot.Z)(cn,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"swiper-container"},[t("div",{ref:"thisSwiper",staticClass:"swiper mySwiper",class:{"ios-swiper":e.isPaginationStyle,"thumbs-height":"Thumbs"===e.swiperType},style:[e.swiperShadowStyle],attrs:{id:e.localSwiperId.slice(1),dir:e.swiperOpts.rightToLeft?"rtl":"ltr"},on:{pointerdown:function(e){e.stopPropagation()},mousedown:function(e){e.stopPropagation()},touchdown:function(e){e.stopPropagation()},touchmove:function(e){e.stopPropagation()},mousemove:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()}}},[e.swiperOpts.parallax?t("div",{staticClass:"parallax-bg",style:{"background-image":`url(${e.parallaxBackgroundUrl})`},attrs:{"data-swiper-parallax":"0"}}):e._e(),0===e.swiperOpts.sliderFill.length?t("div",{staticClass:"swiper-wrapper",on:{mousewheel:e.swiperWheel}},e._l(5,(function(i){return t("div",{key:i,staticClass:"swiper-slide",class:[{"swiper-grid-container-class":"Grid"===e.swiperType},"slide-demo"],style:e.slideBlockStyle},[t("div",{staticClass:"swiper-zoom-container"},[t("div",{staticClass:"swiper-zoom-target"},[e._v(e._s(e.swiperOpts.demoTitle))])])])})),0):e._e(),e.isVirtual?e._e():t("div",{staticClass:"swiper-wrapper",on:{mousewheel:e.swiperWheel}},e._l(e.swiperOpts.sliderFill,(function(i,s){return t("div",{key:s,staticClass:"swiper-slide",class:{"swiper-grid-container-class":"Grid"===e.swiperType},style:e.slideBlockStyle},[t("div",{staticClass:"swiper-zoom-container",style:{backgroundColor:e.swiperOpts.sliderBgColor}},[t("div",{staticClass:"swiper-zoom-target img-show",style:{backgroundImage:`url(${i.url})`}})])])})),0),e.isVirtual?t("div",{staticClass:"swiper-wrapper",class:{"no-shadow":"Interval"===e.swiperType,"no-trans":"Normal"===e.swiperType||"Scroll"===e.swiperType,"swiper-grid-container-class":"Grid"===e.swiperType},style:e.slideBlockStyle,on:{mousewheel:e.swiperWheel}}):e._e(),e.swiperOpts.addChangeBtn?t("div",{staticClass:"swiper-button-next",style:{color:e.swiperOpts.changeBtnColor}}):e._e(),e.swiperOpts.addChangeBtn?t("div",{staticClass:"swiper-button-prev",style:{color:e.swiperOpts.changeBtnColor}}):e._e(),e.swiperOpts.addScrollbar||"Scroll"===e.swiperType?t("div",{staticClass:"swiper-scrollbar"}):e._e(),e.swiperOpts.addPagination?t("div",{staticClass:"swiper-pagination",class:{"ios-swiper-pagination":e.isIos,"render-bullet-pagination":e.swiperOpts.renderBullet}}):e._e()]),"Thumbs"===e.swiperType?t("div",{staticClass:"thumb-gap"}):e._e(),"Thumbs"===e.swiperType?t("div",{staticClass:"mySwiper-thumbs",class:{"thumbs-height":"Thumbs"===e.swiperType},attrs:{id:`swiperThumb${e.item.id}`,dir:e.swiperOpts.rightToLeft?"rtl":"ltr"},on:{pointerdown:function(e){e.stopPropagation()},mousedown:function(e){e.stopPropagation()},touchdown:function(e){e.stopPropagation()},touchmove:function(e){e.stopPropagation()},mousemove:function(e){e.stopPropagation()},touchstart:function(e){e.stopPropagation()}}},[0!==e.swiperOpts.sliderFill.length?t("div",{staticClass:"swiper-wrapper"},e._l(e.swiperOpts.sliderFill,(function(i,s){return t("div",{key:s,staticClass:"swiper-slide",class:{"swiper-grid-container-class":"Grid"===e.swiperType},style:e.slideBlockStyle},[t("div",{staticClass:"swiper-zoom-container",style:{backgroundColor:e.swiperOpts.sliderBgColor}},[t("div",{staticClass:"swiper-zoom-target img-show",style:{backgroundImage:`url(${i.url})`}})])])})),0):e._e(),0===e.swiperOpts.sliderFill.length?t("div",{staticClass:"swiper-wrapper"},e._l(5,(function(i){return t("div",{key:i,staticClass:"swiper-slide slide-demo",style:e.slideBlockStyle},[e._m(0,!0)])})),0):e._e()]):e._e()])}),[function(){var e=this._self._c;return e("div",{staticClass:"swiper-zoom-container"},[e("div",{staticClass:"swiper-zoom-target"})])}],!1,null,"49039a1d",null),pn=un.exports,mn={name:"ItemForSwiper",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{render2:function(){return this.render},currentPage:function(){return this.$store.getters.currentPage},pageTotalTime:function(){return this.currentPage.totalTime},swiperCom:function(){return this.item.swiperType,"SimpleSwiper"}},methods:{},components:{ItemLayout:ki,SimpleSwiper:pn}},gn=mn,fn=(0,ot.Z)(gn,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForSwiper",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[e.render2?e._e():t(e.swiperCom,{tag:"component",attrs:{item:e.item,index:e.index,viewScale:e.viewScale,swiperType:e.item.swiperType,swiperId:"#mySwiper"+e.item.id,swiperOpts:e.item.swiperOpts}})],1)}),[],!1,null,"ad7656b6",null),wn=fn.exports,yn={name:"Triangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.height-e.lineWidth/2} L${t} ${e.lineWidth/2}z`}}},vn=yn,xn=(0,ot.Z)(vn,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5ef90034",null),Cn=xn.exports,bn={name:"Trapezoid",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width/2,t),t=Math.max(e.lineWidth/2,t),`M${e.lineWidth/2} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.width-t} ${e.height-e.lineWidth/2} L${t} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.lineWidth/2}z`}}},In=bn,Sn=(0,ot.Z)(In,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3a3ab986",null),Pn=Sn.exports,Tn={name:"BlockUpDownArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${e.lineWidth/2} ${i}L${e.width/2} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${i}L${e.width-t} ${i}L${e.width-t} ${e.height-i}L${e.width-e.lineWidth/2} ${e.height-i}L${e.width/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-i}L${t} ${e.height-i}L${t} ${i}L${e.lineWidth/2} ${i}z`}}},$n=Tn,kn=(0,ot.Z)($n,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"68d538de",null),Ln=kn.exports,Mn={name:"BlockDoubleArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${e.lineWidth/2} ${e.height/2}L${t} ${e.lineWidth/2}L${t} ${i}L${e.width-t} ${i}L${e.width-t} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height/2}L${e.width-t} ${e.height-e.lineWidth/2}L${e.width-t} ${e.height-i}L${t} ${e.height-i}L${t} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height/2}z`}}},En=Mn,An=(0,ot.Z)(En,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4a32bd36",null),_n=An.exports,Wn={name:"BlockNotchedArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.max(e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${(e.width-t)/2} ${e.height/2}L${e.lineWidth/2} ${i}L${t} ${i}L${t} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height/2}L${t} ${e.height-e.lineWidth/2}L${t} ${e.height-i}L${e.lineWidth/2} ${e.height-i}L${(e.width-t)/2} ${e.height/2}z`}}},Fn=Wn,On=(0,ot.Z)(Fn,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"9d803512",null),Bn=On.exports,Zn={name:"BlockStripedArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.max(5*e.width/24,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${e.lineWidth/2} ${i}L${e.width/24} ${i}L${e.width/24} ${e.height-i}L${e.lineWidth/2} ${e.height-i}L${e.lineWidth/2} ${i}z M${e.width/12} ${i}L${e.width/6} ${i}L${e.width/6} ${e.height-i}L${e.width/12} ${e.height-i}L${e.width/12} ${i}z M${5*e.width/24} ${i}L${t} ${i}L${t} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height/2}L${t} ${e.height-e.lineWidth/2}L${t} ${e.height-i}L${5*e.width/24} ${e.height-i}L${5*e.width/24} ${i}z`}}},Hn=Zn,Nn=(0,ot.Z)(Hn,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"6e49fab2",null),zn=Nn.exports,Rn={name:"BlockBentArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.max(e.width/2,t),i=Math.min(e.height/4,i),`M${e.lineWidth/2} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.height/2}A${e.width/2},${e.height/2-i} 0 0,1 ${e.width/2},${i} L${t} ${i}L${t} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height/4}L${t} ${e.height/2}L${t} ${e.height/2-i}L${e.width/2} ${e.height/2-i}A${2*i/e.height*e.width},${i} 0 0,0 ${e.width/2-2*i/e.height*e.width+e.lineWidth/2},${e.height/2}L${e.width/2-2*i/e.height*e.width+e.lineWidth/2} ${e.height-e.lineWidth/2}z`}}},Vn=Rn,Dn=(0,ot.Z)(Vn,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"45bc9072",null),Gn=Dn.exports,Yn={name:"BlockPentagonArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width,t),t=Math.max(e.lineWidth,t),i=Math.min(e.lineWidth/2,i),i=Math.max(e.lineWidth/2,i),`M${e.lineWidth/2} ${i}L${t} ${i}L${e.width-e.lineWidth/2} ${e.height/2}L${t} ${e.height-i}L${e.lineWidth/2} ${e.height-i}L${e.lineWidth/2} ${i}z`}}},jn=Yn,Un=(0,ot.Z)(jn,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5233cdc0",null),Xn=Un.exports,qn={name:"BlockChevronArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width,t),t=Math.max(e.lineWidth,t),i=Math.min(e.lineWidth/2,i),i=Math.max(e.lineWidth/2,i),`M${e.width-t} ${e.height/2}L${e.lineWidth/2} ${i}L${t} ${i}L${e.width-e.lineWidth/2} ${e.height/2}L${t} ${e.height-i}L${e.lineWidth/2} ${e.height-i}L${e.width-t} ${e.height/2}z`}}},Qn=qn,Kn=(0,ot.Z)(Qn,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"94a83f84",null),Jn=Kn.exports,eo={name:"BlockBentUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1],n=e.splitY[1];return s=Math.min(2*t-e.width,s),s=Math.max(e.width/2,s),n=Math.min(e.lineWidth/2,n),n=Math.max(e.lineWidth/2,n),t=Math.max((e.width+s)/2,t),t=Math.min(e.width-e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${t} ${i}L${e.width-e.lineWidth/2} ${i}L${(e.width+s)/2} ${n}L${s} ${i}L${s+e.width-t} ${i}L${s+e.width-t} ${e.height-2*t+s+e.width}L${e.lineWidth/2} ${e.height-2*t+s+e.width}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${t} ${e.height-e.lineWidth/2}L${t} ${i}z`}}},to=eo,io=(0,ot.Z)(to,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7baa3e2b",null),so=io.exports,no={name:"BlockDownArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height-e.lineWidth/2,i),i=Math.max(e.lineWidth/2,i),`M${t} ${e.lineWidth/2} L${e.width-t} ${e.lineWidth/2} L${e.width-t} ${i} L${e.width-e.lineWidth/2} ${i} L${e.width/2} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${i} L${t} ${i} L${t} ${e.lineWidth/2}z`}}},oo=no,ro=(0,ot.Z)(oo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1c3d84d9",null),ao=ro.exports,lo={name:"BlockLeftArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${t} ${e.lineWidth/2} L${t} ${i} L${e.width-e.lineWidth/2} ${i} L${e.width-e.lineWidth/2} ${e.height-i} L${t} ${e.height-i} L${t} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.height/2} L${t} ${e.lineWidth/2}z`}}},ho=lo,co=(0,ot.Z)(ho,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"190712f6",null),uo=co.exports,po={name:"BlockRightArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height/2} L${t} ${e.height-e.lineWidth/2} L${t} ${e.height-i} L${e.lineWidth/2} ${e.height-i} L${e.lineWidth/2} ${i} L${t} ${i} L${t} ${e.lineWidth/2}z`}}},mo=po,go=(0,ot.Z)(mo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"ee30383c",null),fo=go.exports,wo={name:"BlockUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];return t=Math.min(e.width/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height-e.lineWidth/2,i),i=Math.max(e.lineWidth/2,i),`M${t} ${e.height-e.lineWidth/2} L${e.width-t} ${e.height-e.lineWidth/2} L${e.width-t} ${i} L${e.width-e.lineWidth/2} ${i} L${e.width/2} ${e.lineWidth/2} L${e.lineWidth/2} ${i} L${t} ${i} L${t} ${e.height-e.lineWidth/2}z`}}},yo=wo,vo=(0,ot.Z)(yo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"deec4f7e",null),xo=vo.exports,Co={name:"CrossPolygon",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width/2,t),t=Math.min(e.height/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-t} ${e.lineWidth/2} L${e.width-t} ${t} L${e.width-e.lineWidth/2} ${t} L${e.width-e.lineWidth/2} ${e.height-t} L${e.width-t} ${e.height-t} L${e.width-t} ${e.height-e.lineWidth/2} L${t} ${e.height-e.lineWidth/2} L${t} ${e.height-t} L${e.lineWidth/2} ${e.height-t} L${e.lineWidth/2} ${t} L${t} ${t} L${t} ${e.lineWidth/2}z`}}},bo=Co,Io=(0,ot.Z)(bo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"54b80d23",null),So=Io.exports,Po={name:"BlockQuadCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1],s=e.splitY[1],n=e.splitY[2];return n=Math.min(t/e.width*e.height,n),s=Math.min(n,s),n=Math.max(s,n),i=Math.min(e.width/2,i),t=Math.min(i,t),t=Math.max(n/e.height*e.width,t),i=Math.max(t,i),s=Math.max(e.lineWidth/2,s),`M${e.width/2} ${e.lineWidth/2} L${t} ${s} L${i} ${s} L${i} ${n} L${n/e.height*e.width} ${n} L${n/e.height*e.width} ${i/e.width*e.height} L${s/e.height*e.width} ${i/e.width*e.height}L${s/e.height*e.width} ${t/e.width*e.height}L${e.lineWidth/2} ${e.height/2}L${s/e.height*e.width} ${e.height-t/e.width*e.height}L${s/e.height*e.width} ${e.height-i/e.width*e.height}L${n/e.height*e.width} ${e.height-i/e.width*e.height} L${n/e.height*e.width} ${e.height-n}L${i} ${e.height-n}L${i} ${e.height-s}L${t} ${e.height-s}L${e.width/2} ${e.height-e.lineWidth/2}L${e.width-t} ${e.height-s}L${e.width-i} ${e.height-s}L${e.width-i} ${e.height-n}L${e.width-n/e.height*e.width} ${e.height-n}L${e.width-n/e.height*e.width} ${e.height-i/e.width*e.height}L${e.width-s/e.height*e.width} ${e.height-i/e.width*e.height}L${e.width-s/e.height*e.width} ${e.height-t/e.width*e.height}L${e.width-e.lineWidth/2} ${e.height/2}L${e.width-s/e.height*e.width} ${t/e.width*e.height}L${e.width-s/e.height*e.width} ${i/e.width*e.height}L${e.width-n/e.height*e.width} ${i/e.width*e.height}L${e.width-n/e.height*e.width} ${n}L${e.width-i} ${n}L${e.width-i} ${s}L${e.width-t} ${s}z`}}},To=Po,$o=(0,ot.Z)(To,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5821391a",null),ko=$o.exports,Lo={name:"CurveDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-3*e.lineWidth,t),t=Math.max(e.lineWidth/2,t),`M0 ${e.lineWidth/2} a${t},${(e.height-e.lineWidth)/2} 0 0,1 ${t},${(e.height-e.lineWidth)/2} M${e.width-3*e.lineWidth} ${e.height-2*e.lineWidth} a${e.width-t},${(e.height-e.lineWidth)/2} 0 0,1 ${-e.width+t+3*e.lineWidth},${-e.height/2+2*e.lineWidth}`},d1:function(){let e=this.transConfig;return`M${e.width-3*e.lineWidth} ${e.height-e.lineWidth} L${e.width-3*e.lineWidth} ${e.height-3*e.lineWidth} L${e.width-e.lineWidth} ${e.height-2*e.lineWidth}z`}}},Mo=Lo,Eo=(0,ot.Z)(Mo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,"stroke-dasharray":e.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":"round","stroke-linecap":e.transConfig.linecap}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"07c7383a",null),Ao=Eo.exports,_o={name:"CurveDoubleDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-3*e.lineWidth,t),t=Math.max(3*e.lineWidth,t),`M${3*e.lineWidth} ${2*e.lineWidth} a${t},${(e.height-e.lineWidth)/2} 0 0,1 ${t-3*e.lineWidth},${e.height/2-2*e.lineWidth} M${e.width-3*e.lineWidth} ${e.height-2*e.lineWidth} a${e.width-t},${(e.height-e.lineWidth)/2} 0 0,1 ${-e.width+t+3*e.lineWidth},${-e.height/2+2*e.lineWidth} `},d1:function(){let e=this.transConfig;return`M${3*e.lineWidth} ${e.lineWidth} L${3*e.lineWidth} ${3*e.lineWidth} L${e.lineWidth} ${2*e.lineWidth}z`},d2:function(){let e=this.transConfig;return`M${e.width-3*e.lineWidth} ${e.height-e.lineWidth} L${e.width-3*e.lineWidth} ${e.height-3*e.lineWidth} L${e.width-e.lineWidth} ${e.height-2*e.lineWidth}z`}}},Wo=_o,Fo=(0,ot.Z)(Wo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:"transparent","stroke-dasharray":e.transConfig.strokeDashes,"stroke-linejoin":"round","stroke-linecap":e.transConfig.linecap}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"0ffa30f8",null),Oo=Fo.exports,Bo={name:"CurveLine",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M0 ${e.lineWidth/2} a${t},${(e.height-e.lineWidth)/2} 0 0,1 ${t},${(e.height-e.lineWidth)/2} M${e.width} ${e.height-e.lineWidth/2} a${e.width-t},${(e.height-e.lineWidth)/2} 0 0,1 ${-e.width+t},${(-e.height+e.lineWidth)/2}`}}},Zo=Bo,Ho=(0,ot.Z)(Zo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,"stroke-dasharray":e.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":"round","stroke-linecap":e.transConfig.linecap}})])}),[],!1,null,"d51d3e1c",null),No=Ho.exports,zo={name:"Dike",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${e.lineWidth/2} ${e.lineWidth/2} L${t} ${e.lineWidth/2} L${t} ${e.height-e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}`}}},Ro=zo,Vo=(0,ot.Z)(Ro,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:"transparent","stroke-dasharray":e.transConfig.strokeDashes,"stroke-linejoin":e.transConfig.linecap,"stroke-linecap":e.transConfig.linecap}})])}),[],!1,null,"34f592bb",null),Do=Vo.exports,Go={name:"EightSided",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width/2,t),t=Math.min(e.height/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${t} L${e.width-e.lineWidth/2} ${e.height-t} L${e.width-t} ${e.height-e.lineWidth/2} L${t} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.height-t} L${e.lineWidth/2} ${t} L${t} ${e.lineWidth/2}z`}}},Yo=Go,jo=(0,ot.Z)(Yo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"a1bdd0d6",null),Uo=jo.exports,Xo={name:"FoldDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${e.width-3*e.lineWidth} ${e.height-2*e.lineWidth} L${t} ${e.height-2*e.lineWidth} L${t} ${e.lineWidth/2} L${e.lineWidth/2} ${e.lineWidth/2}`},d1:function(){let e=this.transConfig;return`M${e.width-3*e.lineWidth} ${e.height-e.lineWidth} L${e.width-3*e.lineWidth} ${e.height-3*e.lineWidth} L${e.width-e.lineWidth} ${e.height-2*e.lineWidth}z`}}},qo=Xo,Qo=(0,ot.Z)(qo,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,"stroke-dasharray":e.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":e.transConfig.linecap,"stroke-linecap":e.transConfig.linecap}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"7104f33f",null),Ko=Qo.exports,Jo={name:"FoldDirectionLine",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${e.width-3*e.lineWidth} ${e.height-2*e.lineWidth} L${t} ${e.height-2*e.lineWidth} L${t} ${2*e.lineWidth} L${3*e.lineWidth} ${2*e.lineWidth}`},d1:function(){let e=this.transConfig;return`M${e.width-3*e.lineWidth} ${e.height-e.lineWidth} L${e.width-3*e.lineWidth} ${e.height-3*e.lineWidth} L${e.width-e.lineWidth} ${e.height-2*e.lineWidth}z`},d2:function(){let e=this.transConfig;return`M${3*e.lineWidth} ${e.lineWidth} L${3*e.lineWidth} ${3*e.lineWidth} L${e.lineWidth} ${2*e.lineWidth}z`}}},er=Jo,tr=(0,ot.Z)(er,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,"stroke-dasharray":e.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":e.transConfig.linecap,"stroke-linecap":e.transConfig.linecap}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.strokeColor,"stroke-linejoin":"miter","stroke-linecap":"miter"}})])}),[],!1,null,"334faacb",null),ir=tr.exports,sr={name:"lineArc",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0];t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),i=Math.min(e.height-e.lineWidth/2,i),i=Math.max(e.lineWidth/2,i),t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t);let s=i>e.height/2?0:1,n=0;return n=Math.sqrt(Math.pow((e.width-e.lineWidth)/2,2)+Math.pow((t*t+i*i-e.height*e.height/4-e.width*t-e.lineWidth*e.lineWidth/4+e.lineWidth*e.width/2)/(2*i-e.height)-e.height/2,2)),`M${e.lineWidth/2} ${e.height/2} a${n},${n} 0 0,${s} ${e.width-e.lineWidth},0`}}},nr=sr,or=(0,ot.Z)(nr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,"stroke-dasharray":e.transConfig.strokeDashes,fill:"transparent","stroke-linejoin":"miter","stroke-linecap":e.transConfig.linecap}})])}),[],!1,null,"32171692",null),rr=or.exports,ar={name:"LineDash",data(){return{}},props:["transConfig"],computed:{dasharray:function(){return`${3*this.transConfig.lineWidth},${this.transConfig.lineWidth}`},d:function(){let e=this.transConfig,t=e.splitY[0];t=Math.min(7*e.height/8,t),t=Math.max(e.height/8,t);let i=e.height/2,s=(4*t-e.height/2)/3;return i===s&&(s+=.1),`M0 ${i} L${e.width} ${s}`}}},lr=ar,dr=(0,ot.Z)(lr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:"transparent","stroke-linejoin":"miter","stroke-linecap":"miter","stroke-dasharray":e.dasharray}})])}),[],!1,null,"e440f21a",null),hr=dr.exports,cr={name:"Parallelogram",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.width-t} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.height-e.lineWidth/2} L${t} ${e.lineWidth/2}z`}}},ur=cr,pr=(0,ot.Z)(ur,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"da2f5bf4",null),mr=pr.exports,gr={name:"RoundedRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width/2,t),t=Math.min(e.height/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-t} ${e.lineWidth/2} a${t},${t} 0 0,1 ${t-e.lineWidth/2},${t-e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height-t} a${t},${t} 0 0,1 ${-t+e.lineWidth/2},${t-e.lineWidth/2} L${t} ${e.height-e.lineWidth/2} a${t},${t} 0 0,1 ${-t+e.lineWidth/2},${-t+e.lineWidth/2} L${e.lineWidth/2} ${t} a${t},${t} 0 0,1 ${t-e.lineWidth/2},${-t+e.lineWidth/2}z`}}},fr=gr,wr=(0,ot.Z)(fr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1f6d9601",null),yr=wr.exports,vr={name:"LineStraight",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0];const i=parseFloat(String(e.lineWidth));t=Math.min(7*(e.height-i/2)/8,t),t=Math.max((e.height-i/2)/8+i/2,t);let s=e.height/2,n=(4*t-e.height/2)/3;return s===n&&(n+=.1),`M${0+i/2} ${s} L${e.width-i/2} ${n}`}}},xr=vr,Cr=(0,ot.Z)(xr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:"transparent","stroke-dasharray":e.transConfig.strokeDashes,"stroke-linejoin":"miter","stroke-linecap":e.transConfig.linecap}})])}),[],!1,null,"52c5e3f5",null),br=Cr.exports,Ir={name:"BlockLeftUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1];return s=Math.min(2*t-e.width,s),s=Math.max(e.width/2,s),t=Math.max((e.width+s)/2,t),t=Math.min(e.width-e.lineWidth/2,t),i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),`M${(e.width+s)/2} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${i}L${t} ${i}L${t} ${t/e.width*e.height}L${i/e.height*e.width} ${t/e.width*e.height}L${i/e.height*e.width} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${(e.width/2+s/2)/e.width*e.height} L${i/e.height*e.width} ${s/e.width*e.height}L${i/e.height*e.width} ${(e.width-t+s)/e.width*e.height}L${e.width-t+s} ${(e.width-t+s)/e.width*e.height}L${e.width-t+s} ${i}L${s} ${i}z`}}},Sr=Ir,Pr=(0,ot.Z)(Sr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4b70b185",null),Tr=Pr.exports,$r={name:"BlockLeftRightUpArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1];return i=Math.min(e.height/4,i),i=Math.max(e.lineWidth/2,i),t=Math.min(e.width/2,t),s=Math.max(i/e.height*e.width,s),s=Math.min(e.width/2,s),t=Math.max(s,t),`M${e.width/2} ${e.lineWidth/2}L${s} ${i}L${t} ${i}L${t} ${(t+s)/e.width*e.height}L${i/e.height*e.width} ${(t+s)/e.width*e.height}L${i/e.height*e.width} ${2*s/e.width*e.height}L${e.lineWidth/2} ${(e.width/2+s)/e.width*e.height}L${i/e.height*e.width} ${e.height-e.lineWidth/2}L${i/e.height*e.width} ${(e.width-t+s)/e.width*e.height}L${(e.height-i)/e.height*e.width} ${(e.width-t+s)/e.width*e.height}L${(e.height-i)/e.height*e.width} ${e.height-e.lineWidth/2}L${e.width-e.lineWidth/2} ${(e.width/2+s)/e.width*e.height}L${(e.height-i)/e.height*e.width} ${2*s/e.width*e.height}L${(e.height-i)/e.height*e.width} ${(t+s)/e.width*e.height}L${e.width-t} ${(t+s)/e.width*e.height}L${e.width-t} ${i}L${e.width-s} ${i}z`}}},kr=$r,Lr=(0,ot.Z)(kr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"6e29c624",null),Mr=Lr.exports,Er={name:"BlockQuadArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1];return s=Math.max(i,s),t=Math.max(s,t),s=Math.min(e.width/2,s),t=Math.min(e.width/2,t),i=Math.min(e.height/4,i),i=Math.max(e.lineWidth/2,i),`M${e.width/2} ${e.lineWidth/2}L${s} ${i}L${t} ${i}L${t} ${t/e.width*e.height}L${i/e.height*e.width} ${t/e.width*e.height}L${i/e.height*e.width} ${s/e.width*e.height}L${e.lineWidth/2} ${e.height/2}L${i/e.height*e.width} ${(e.width-s)/e.width*e.height}L${i/e.height*e.width} ${(e.width-t)/e.width*e.height}L${t} ${(e.width-t)/e.width*e.height}L${t} ${e.height-i}L${s} ${e.height-i}L${e.width/2} ${e.height-e.lineWidth/2}L${e.width-s} ${e.height-i}L${e.width-t} ${e.height-i}L${e.width-t} ${(e.width-t)/e.width*e.height}L${(e.height-i)/e.height*e.width} ${(e.width-t)/e.width*e.height}L${(e.height-i)/e.height*e.width} ${(e.width-s)/e.width*e.height}L${e.width-e.lineWidth/2} ${e.height/2}L${(e.height-i)/e.height*e.width} ${s/e.width*e.height}L${(e.height-i)/e.height*e.width} ${t/e.width*e.height}L${e.width-t} ${t/e.width*e.height}L${e.width-t} ${i}L${e.width-s} ${i}z`}}},Ar=Er,_r=(0,ot.Z)(Ar,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4d98ccae",null),Wr=_r.exports,Fr={name:"BlockUpDownCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1],n=e.splitY[2];return t=Math.min(e.width/2,t),t=Math.max(s,t),s=Math.min(t,s),s=Math.max(e.lineWidth/2,s),i=Math.max(e.lineWidth/2,i),n=Math.min(e.height/2,n),i=Math.min(n,i),n=Math.max(i,n),`M${e.width/2} ${e.lineWidth/2}L${s} ${i}L${t} ${i}L${t} ${n}L${e.lineWidth/2} ${n}L${e.lineWidth/2} ${e.height-n}L${t} ${e.height-n}L${t} ${e.height-i}L${s} ${e.height-i}L${e.width/2} ${e.height-e.lineWidth/2}L${e.width-s} ${e.height-i}L${e.width-t} ${e.height-i}L${e.width-t} ${e.height-n}L${e.width-e.lineWidth/2} ${e.height-n}L${e.width-e.lineWidth/2} ${n}L${e.width-t} ${n}L${e.width-t} ${i}L${e.width-s} ${i}L${e.width/2} ${e.lineWidth/2}Z`}}},Or=Fr,Br=(0,ot.Z)(Or,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"207790ac",null),Zr=Br.exports,Hr={name:"BlockLeftRightCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitY[1],n=e.splitX[2];return i=Math.min(e.height/2,i),s=Math.min(i,s),s=Math.max(e.lineWidth/2,s),i=Math.max(s,i),n=Math.min(e.width/2,n),t=Math.min(n,t),t=Math.max(e.lineWidth/2,t),n=Math.max(t,n),`M${e.lineWidth/2} ${e.height/2} L${t} ${s} L${t} ${i} L${n} ${i} L${n} ${e.lineWidth/2} L${e.width-n} ${e.lineWidth/2} L${e.width-n} ${i} L${e.width-t} ${i} L${e.width-t} ${s} L${e.width-e.lineWidth/2} ${e.height/2} L${e.width-t} ${e.height-s} L${e.width-t} ${e.height-i} L${e.width-n} ${e.height-i} L${e.width-n} ${e.height-e.lineWidth/2} L${n} ${e.height-e.lineWidth/2} L${n} ${e.height-i} L${t} ${e.height-i} L${t} ${e.height-s} L${e.lineWidth/2} ${e.height/2} z`}}},Nr=Hr,zr=(0,ot.Z)(Nr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"63ac9d96",null),Rr=zr.exports,Vr={name:"BlockUpDownCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1],n=e.splitY[2];return t=Math.min(e.width/2,t),t=Math.max(s,t),s=Math.min(t,s),s=Math.max(e.lineWidth/2,s),n=Math.min(e.height-e.lineWidth/2,n),n=Math.max(i,n),i=Math.min(n,i),i=Math.max(e.lineWidth/2,i),`M${e.width/2} ${e.lineWidth/2}L${s} ${i}L${t} ${i}L${t} ${n}L${e.lineWidth/2} ${n}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.width-e.lineWidth/2} ${n}L${e.width-t} ${n}L${e.width-t} ${i}L${e.width-t} ${i}L${e.width-t} ${i}L${e.width-s} ${i}L${e.width/2} ${e.lineWidth/2}Z`}}},Dr=Vr,Gr=(0,ot.Z)(Dr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"e69d5260",null),Yr=Gr.exports,jr={name:"BlockUpDownCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1],n=e.splitY[2];return t=Math.min(e.width/2,t),s=Math.min(t,s),s=Math.max(e.lineWidth/2,s),t=Math.max(s,t),n=Math.min(i,n),n=Math.max(e.lineWidth/2,n),i=Math.max(n,i),`M${e.width/2} ${e.height-e.lineWidth/2}L${s} ${i}L${t} ${i}L${t} ${n}L${e.lineWidth/2} ${n}L${e.lineWidth/2} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${n}L${e.width-t} ${n}L${e.width-t} ${i}L${e.width-s} ${i}L${e.width/2} ${e.height-e.lineWidth/2}Z`}}},Ur=jr,Xr=(0,ot.Z)(Ur,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"d4cc6f30",null),qr=Xr.exports,Qr={name:"ArithmeticsPlus",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0];return t=Math.min(e.height/2,t),e.height-2*t>=0&&(t=Math.max(e.height/8,t)),`M${e.width/8} ${t}L${(e.width-e.height+2*t)/2} ${t}L${(e.width-e.height+2*t)/2} ${e.height/8}L${(e.width+e.height-2*t)/2} ${e.height/8}L${(e.width+e.height-2*t)/2} ${t}L${7*e.width/8} ${t}L${7*e.width/8} ${t+e.height-2*t}L${(e.width+e.height-2*t)/2} ${t+e.height-2*t}L${(e.width+e.height-2*t)/2} ${7*e.height/8}L${(e.width-e.height+2*t)/2} ${7*e.height/8}L${(e.width-e.height+2*t)/2} ${t+e.height-2*t}L${e.width/8} ${t+e.height-2*t}z`}}},Kr=Qr,Jr=(0,ot.Z)(Kr,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"0571a92c",null),ea=Jr.exports,ta={name:"ArithmeticsMinus",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0];return e.height-t>=0&&(t=Math.max(e.height/8,t)),t=Math.min(e.height/2,t),`M${e.width/8} ${t}L${7*e.width/8} ${t}L${7*e.width/8} ${e.height-t}L${e.width/8} ${e.height-t}L${e.width/8} ${t}z`}}},ia=ta,sa=(0,ot.Z)(ia,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4949887c",null),na=sa.exports,oa={name:"ArithmeticsMultiply",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0];return t=Math.min(2*e.height/5,t),t=Math.max(e.lineWidth/2,t),`M${e.width/16} ${t+e.height/16}L${t/e.height*e.width+e.height/16} ${e.height/16}L${e.width/2} ${e.height/2-t}L${e.width-t/e.height*e.width-e.height/16} ${e.height/16}L${15*e.width/16} ${t+e.height/16}L${e.width-e.width/2*(1-2*t/e.height)} ${e.height/2}L${15*e.width/16} ${15*e.height/16-t}L${e.width-t/e.height*e.width-e.height/16} ${15*e.height/16}L${e.width/2} ${e.height/2+t}L${t/e.height*e.width+e.height/16} ${15*e.height/16}L${e.width/16} ${15*e.height/16-t}L${e.width/2*(1-2*t/e.height)} ${e.height/2}z`}}},ra=oa,aa=(0,ot.Z)(ra,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2ea59988",null),la=aa.exports,da={name:"ArithmeticsDivision",data(){return{cx:"",d:"",r:"",cy:"",cy1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitY[0],i=e.splitX[1],s=e.splitY[2];i=Math.min(e.width/2,i),i=Math.max(e.width/2-s+e.lineWidth/2,i),s=Math.max(e.width/2-i,s),t=Math.max(e.height/2-(e.height/2-e.width/2+i-s)+e.lineWidth/2,t),s=Math.min(e.height/2,s),t=Math.min(e.height/2,t),this.d=`M${e.width/8} ${t}L${7*e.width/8} ${t}L${7*e.width/8} ${e.height-t}L${e.width/8} ${e.height-t}L${e.width/8} ${t}z`,this.cx=e.width/2,this.r=e.width/2-i,this.r<0&&(this.r=0),this.cy=s,this.cy1=e.height-s}}},ha=da,ca=(0,ot.Z)(ha,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("circle",{attrs:{cx:e.cx,cy:e.cy,r:e.r,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("circle",{attrs:{cx:e.cx,cy:e.cy1,r:e.r,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5f0b5361",null),ua=ca.exports,pa={name:"ArithmeticsEquality",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0],i=e.splitY[1];return t=Math.min(i,t),t=Math.max(e.height/8,t),i=Math.min(e.height/2,i),i=Math.max(t,i),`M${e.width/8} ${t}L${7*e.width/8} ${t}L${7*e.width/8} ${i}L${e.width/8} ${i}L${e.width/8} ${t}z M${e.width/8} ${e.height-i}L${7*e.width/8} ${e.height-i}L${7*e.width/8} ${e.height-t}L${e.width/8} ${e.height-t}L${e.width/8} ${e.height-i}z`}}},ma=pa,ga=(0,ot.Z)(ma,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2d77e9aa",null),fa=ga.exports,wa={name:"ArithmeticsInequality",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0],i=e.splitY[1];i=Math.max(t,i),t=Math.min(i,t),t=Math.min(e.height/2,t),t=Math.max(e.height/8,t),i=Math.min(e.height/2,i);let s=i-t,n=90-60*s/e.height,o=Math.cos(n*Math.PI/180),r=Math.tan(n*Math.PI/180),a=(-e.height+e.lineWidth/2+r*e.width/2)/r,l=(-e.lineWidth/2+r*e.width/2)/r;return`M${e.width/8} ${t}L${t/r+a} ${t} L${o*s/r+a} ${o*s} L${e.width/2} ${e.lineWidth/2}L${t/r+l} ${t} L${7*e.width/8} ${t}L${7*e.width/8} ${i} L${i/r+l} ${i} L${(e.height-i)/r+l} ${e.height-i}L${7*e.width/8} ${e.height-i}L${7*e.width/8} ${e.height-t} L${(e.height-t)/r+l} ${e.height-t} L${e.width-o*s/r-a} ${e.height-o*s} L${e.width/2} ${e.height-e.lineWidth/2} L${(e.height-t)/r+a} ${e.height-t} L${e.width/8} ${e.height-t} L${e.width/8} ${e.height-i} L${(e.height-i)/r+a} ${e.height-i} L${i/r+a} ${i} L${e.width/8} ${i}z`}}},ya=wa,va=(0,ot.Z)(ya,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7cafad26",null),xa=va.exports,Ca={name:"BlockLeftRightCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitY[1],n=e.splitX[2];return s=Math.min(i,s),s=Math.max(e.lineWidth/2,s),i=Math.min(e.height/2,i),i=Math.max(s,i),t=Math.min(n,t),t=Math.max(e.lineWidth/2,t),n=Math.max(t,n),`M${e.lineWidth/2} ${e.height/2} L${t} ${s} L${t} ${i} L${n} ${i} L${n} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2} L${n} ${e.height-e.lineWidth/2} L${n} ${e.height-i} L${t} ${e.height-i} L${t} ${e.height-s} L${e.lineWidth/2} ${e.height/2} z`}}},ba=Ca,Ia=(0,ot.Z)(ba,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2bfc6ec3",null),Sa=Ia.exports,Pa={name:"BlockLeftRightCalloutArrow",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitY[1],n=e.splitX[2];return s=Math.min(i,s),i=Math.min(e.height/2,i),i=Math.max(s,i),t=Math.max(n,t),n=Math.min(t,n),`M${e.lineWidth/2} ${e.lineWidth/2}L${n} ${e.lineWidth/2}L${n} ${i}L${t} ${i}L${t} ${s}L${e.width-e.lineWidth/2} ${e.height/2}L${t} ${e.height-s}L${t} ${e.height-i}L${n} ${e.height-i}L${n} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.lineWidth/2}z`}}},Ta=Pa,$a=(0,ot.Z)(Ta,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3e75bf4e",null),ka=$a.exports,La={name:"CurlyBraces",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0];return t=e.widthl?e.height-e.lineWidth/2:e.lineWidth/2:t>a?(t=a+h,i=(t-a)*d+l):(t=a-h,i=(t-a)*d+l);let c=(n-l)/(s-a),u=Math.sqrt(Math.pow(o,2)*Math.pow(s-a,2)*Math.pow(r,2)/(Math.pow(s-a,2)*Math.pow(r,2)+Math.pow(o,2)*Math.pow(n-l,2)));s===a?n=n>l?e.height-e.lineWidth/2:e.lineWidth/2:s>a?(s=a+u,n=(s-a)*c+l):(s=a-u,n=(s-a)*c+l);let p="";return p=i<=e.height/2?n<=e.height/2?t>s?0:1:t+s>=e.width?1:0:n=e.width?0:1:t>s?1:0,`M${t} ${i} A${o},${r} 0 ${p},0 ${s},${n} L${t} ${i}`}}},nl=sl,ol=(0,ot.Z)(nl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1ceb596f",null),rl=ol.exports,al={name:"HollowRound",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.max(e.lineWidth/2,t),t=Math.min(e.width/2,t),`M${t} ${e.height/2} A${e.width/2-t},${e.height/2-t/e.width*e.height} 0 0,1 ${e.width-t},${e.height/2} A${e.width/2-t},${e.height/2-t/e.width*e.height} 0 0,1 ${t},${e.height/2} M${e.lineWidth/2} ${e.height/2} A${e.width/2-e.lineWidth/2},${e.height/2-e.lineWidth/2} 0 0,1 ${e.width-e.lineWidth/2},${e.height/2} A${e.width/2-e.lineWidth/2},${e.height/2-e.lineWidth/2} 0 0,1 ${e.lineWidth/2},${e.height/2}z`}}},ll=al,dl=(0,ot.Z)(ll,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"040fadde",null),hl=dl.exports,cl={name:"CutwayRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return e.heighte.height/2&&(t=e.height/2)):t=Math.min(e.width/2,t),`M${t} ${e.lineWidth/2} L${e.width-t} ${e.lineWidth/2} A${t},${t} 0 0,0 ${e.width-e.lineWidth/2},${t} L${e.width-e.lineWidth/2} ${e.height-t} A${t},${t} 0 0,0 ${e.width-t},${e.height-e.lineWidth/2}L${t} ${e.height-e.lineWidth/2} A${t},${t} 0 0,0 ${e.lineWidth/2},${e.height-t} L${e.lineWidth/2} ${t} A${t},${t} 0 0,0 ${t},${e.lineWidth/2}`}}},ul=cl,pl=(0,ot.Z)(ul,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"16a81739",null),ml=pl.exports,gl={name:"CutSingleAngleRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${(e.width-t)/e.width*e.height} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.lineWidth/2}z`}}},fl=gl,wl=(0,ot.Z)(fl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2ae91fbd",null),yl=wl.exports,vl={name:"CutSingleAngleRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.max(e.width/2,t),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${(e.width-t)/e.width*e.height} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${(e.width-t)/e.width*e.height}L${e.width-t} ${e.lineWidth/2}z`}}},xl=vl,Cl=(0,ot.Z)(xl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"5b160344",null),bl=Cl.exports,Il={name:"CutSingleAngleRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1];return t=Math.max(e.width/2,t),i=Math.min(e.width/2,i),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${(e.width-t)/e.width*e.height}L${e.width-e.lineWidth/2} ${(e.width-i)/e.width*e.height} L${e.width-i} ${e.height-e.lineWidth/2}L${e.width-t} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${t/e.width*e.height}L${e.lineWidth/2} ${i/e.width*e.height}L${i} ${e.lineWidth/2}z`}}},Sl=Il,Pl=(0,ot.Z)(Sl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"d0b64cf2",null),Tl=Pl.exports,$l={name:"CutASingleCornerRoundedRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1];return t=Math.max(e.width/2,t),i=e.width>e.height?Math.min(e.height/2,i):Math.min(e.width/2,i),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${(e.width-t)/e.width*e.height} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${i} A${i},${i} 0 0,1 ${i},${e.lineWidth/2}z`}}},kl=$l,Ll=(0,ot.Z)(kl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"46b6679d",null),Ml=Ll.exports,El={name:"RectangleSingleCornerRounded",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.max(e.lineWidth/2,t),t=e.width>e.height?Math.max(e.width-e.height/2,t):Math.max(e.width/2,t),`M${t} ${e.lineWidth/2} A${e.width-t},${e.width-t} 0 0,1 ${e.width-e.lineWidth/2},${e.width-t} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.lineWidth/2}z`}}},Al=(0,ot.Z)(El,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"422ab568",null).exports,_l={name:"RoundedTopRectangle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1];return t=Math.max(e.lineWidth/2,t),i=Math.max(e.lineWidth/2,i),t=e.width>e.height?Math.min(e.height/2,t):Math.min(e.width/2,t),i=e.width>e.height?Math.min(e.height/2,i):Math.min(e.width/2,i),`M${t} ${e.lineWidth/2} A${t},${t} 0 0,0 ${e.lineWidth/2},${t} L${e.lineWidth/2} ${e.height-i}A${i},${i} 0 0,0 ${i},${e.height-e.lineWidth/2}L${e.width-i} ${e.height-e.lineWidth/2}A${i},${i} 0 0,0 ${e.width-e.lineWidth/2},${e.height-i} L${e.width-e.lineWidth/2},${t}A${t},${t} 0 0,0 ${e.width-t},${e.lineWidth/2} L${t} ${e.lineWidth/2}z`}}},Wl=(0,ot.Z)(_l,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"32680158",null).exports,Fl={name:"RoundedRectangleOnTheSide",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1];return t=Math.max(e.lineWidth/2,t),i=Math.max(e.lineWidth/2,i),t=e.width>e.height?Math.min(e.height/2,t):Math.min(e.width/2,t),i=e.width>e.height?Math.min(e.height/2,i):Math.min(e.width/2,i),`M${t} ${e.lineWidth/2} A${t},${t} 0 0,0 ${e.lineWidth/2},${t} L${e.lineWidth/2} ${e.height-i}A${i},${i} 0 0,0 ${i},${e.height-e.lineWidth/2}L${e.width-t} ${e.height-e.lineWidth/2}A${t},${t} 0 0,0 ${e.width-e.lineWidth/2},${e.height-t}L${e.width-e.lineWidth/2} ${i}A${i},${i} 0 0,0 ${e.width-i},${e.lineWidth/2}z`}}},Ol=(0,ot.Z)(Fl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"79f54918",null).exports,Bl={name:"HollowRound",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t>=e.height/2&&(t=e.height/2),t=Math.max(e.lineWidth/2,t),t=Math.min(e.width/2,t),`M${e.lineWidth/2} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${e.height-e.lineWidth/2}z M${t} ${t} L${t} ${e.height-t} L${e.width-t} ${e.height-t}L${e.width-t} ${t}z`}}},Zl=(0,ot.Z)(Bl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7cdc09ca",null).exports,Hl={name:"Twill",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];return t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.lineWidth/2} ${e.height-e.lineWidth/2} L${e.lineWidth/2} ${t/e.width*e.height}z`}}},Nl=(0,ot.Z)(Hl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3a4bb558",null).exports,zl={name:"HalfDosedFrame",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[1];return t=Math.min((1-i/e.height)*e.width,t),i=Math.min((1-t/e.width)*e.height,i),`M${e.lineWidth/2} ${e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2}L${e.width-e.width/e.height*i} ${i}L${t} ${i}L${t} ${e.height-e.height/e.width*t}L${e.lineWidth/2} ${e.height-e.lineWidth/2}z`}}},Rl=(0,ot.Z)(zl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4247896e",null).exports,Vl={name:"LShape",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[1];return t=Math.min(e.width-e.lineWidth/2,t),i=Math.min(e.height-e.lineWidth/2,i),`M${e.lineWidth/2} ${e.lineWidth/2} L${t} ${e.lineWidth/2}L${t} ${i}L${e.width-e.lineWidth/2} ${i}L${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}z`}}},Dl=(0,ot.Z)(Vl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"669c2acd",null).exports,Gl={name:"AngularRectangle",data(){return{d1:"",d2:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitX[0];t=(e.height,e.width,Math.max(e.width/2,t)),this.d1=`M${e.width-e.lineWidth/2} ${t/e.width*e.height} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.lineWidth/2} ${e.lineWidth/2}L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${t} ${e.height-e.lineWidth/2}`,this.d2=`M${t} ${e.height-e.lineWidth/2}L${e.width-e.lineWidth/2} ${t/e.width*e.height}L${t+.1*(e.width-t)} ${e.height/e.width*(t+.1*(e.width-t)-e.width)+e.height}z`}}},Yl=(0,ot.Z)(Gl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"7da04c9e",null).exports,jl={name:"Cube",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitY[0];return`M${e.lineWidth/2} ${t} L${e.lineWidth/2} ${e.height-e.lineWidth/2}L${(e.height-9*t/10)/e.height*e.width} ${e.height-e.lineWidth/2}L${(e.height-9*t/10)/e.height*e.width} ${t}Z M${(e.height-9*t/10)/e.height*e.width} ${t} L${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.width-(e.height-9*t/10)/e.height*e.width} ${e.lineWidth/2} L${e.lineWidth/2} ${t} M${e.width-e.lineWidth/2} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height-t}L${(e.height-9*t/10)/e.height*e.width} ${e.height-e.lineWidth/2}L${(e.height-9*t/10)/e.height*e.width} ${t}Z`}}},Ul=(0,ot.Z)(jl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1378e4b8",null).exports,Xl={name:"Cylindrical",data(){return{d1:"",cx:"",cy:"",rx:"",ry:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitY[0];t=Math.max(e.lineWidth,t),this.cx=e.width/2,this.cy=t/2,e.width>e.lineWidth?this.rx=e.width/2-e.lineWidth/2:this.rx=0,this.ry=t/2-e.lineWidth/2,this.d1=`M${e.lineWidth/2} ${t/2}L${e.lineWidth/2} ${e.height-t/2} A${e.width/2-e.lineWidth/2},${t/2-e.lineWidth/2} 0 0,0 ${e.width-e.lineWidth/2},${e.height-t/2} L${e.width-e.lineWidth/2} ${t/2}A${e.width/2-e.lineWidth/2},${t/2-e.lineWidth/2} 0 0,1 ${e.lineWidth/2},${t/2}`}}},ql=(0,ot.Z)(Xl,(function(){var e=this,t=e._self._c;return t("g",[t("ellipse",{attrs:{cx:e.cx,cy:e.cy,rx:e.rx,ry:e.ry,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"06629c98",null).exports,Ql={name:"Wave",data(){return{d:"",skew:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitX[1],i=e.splitY[0];t=Math.min(5*e.width/8,t),t=Math.max(3*e.width/8,t),i=Math.min(e.height/6,i),i=Math.max(e.lineWidth/2,i);let s="";t>=e.width/2?(s=t-e.width/2,this.d=`M${e.lineWidth/2} ${i} Q${e.width/4} ${-i+e.lineWidth} ${e.width/2} ${i} T${e.width-e.lineWidth/2-s} ${i} L${e.width-e.lineWidth/2} ${e.height-i} Q${3*e.width/4} ${i+e.height-e.lineWidth} ${e.width/2} ${e.height-i} T${s+e.lineWidth/2} ${e.height-i}z`):(s=e.width/2-t,this.d=`M${e.lineWidth/2+s} ${i} Q${e.width/4+s} ${-i+e.lineWidth} ${e.width/2} ${i} T${e.width-e.lineWidth/2} ${i} L${e.width-e.lineWidth/2-s} ${e.height-i} Q${3*e.width/4-s} ${i+e.height-e.lineWidth} ${e.width/2} ${e.height-i} T${e.lineWidth/2} ${e.height-i}z`)}}},Kl=(0,ot.Z)(Ql,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"760737e8",null).exports,Jl={name:"DoubleWave",data(){return{d:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitX[1],i=e.splitY[0];t=Math.min(5*e.width/8,t),t=Math.max(4*e.width/9,t),i=Math.min(e.height/6,i),i=Math.max(e.lineWidth/2,i);let s="";t>=e.width/2?(s=t-e.width/2,this.d=`M${e.lineWidth/2} ${i} Q${e.width/8-s} ${-i+11*e.lineWidth/10} ${e.width/4-s} ${i} T${e.width/2-s} ${i}T${3*e.width/4-s} ${i}T${e.width-s-e.lineWidth/2} ${i}L${e.width-e.lineWidth/2} ${e.height-i}Q${7*e.width/8+s} ${i+e.height-e.lineWidth} ${3*e.width/4+s} ${e.height-i} T${e.width/2+s} ${e.height-i} T${e.width/4+s} ${e.height-i} T${s+e.lineWidth/2} ${e.height-i}z`):(s=e.width/2-t,this.d=`M${e.lineWidth/2+s} ${i} Q${e.width/8+s} ${-i+11*e.lineWidth/10} ${e.width/4+s} ${i} T${e.width/2+s} ${i}T${3*e.width/4+s} ${i}T${e.width-e.lineWidth/2} ${i}L${e.width-e.lineWidth/2-s} ${e.height-i} Q${7*e.width/8-s} ${i+e.height-e.lineWidth} ${3*e.width/4-s} ${e.height-i} T${e.width/2-s} ${e.height-i} T${e.width/4-s} ${e.height-i} T${e.lineWidth/2} ${e.height-i}z`)}}},ed=(0,ot.Z)(Jl,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"3d9df9bd",null).exports,td={name:"DeformableCircle",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1],n=e.splitY[1],o=e.splitX[2];t=Math.max(e.lineWidth/2,t),t=Math.min(e.width-e.lineWidth/2,t),s=Math.max(e.lineWidth/2,s),s=Math.min(e.width-e.lineWidth/2,s),o=Math.max(e.width/2,o),o=Math.min(e.width-e.lineWidth,o);let r=(e.width-e.lineWidth)/2,a=(e.height-e.lineWidth)/2,l=o-(e.width-e.lineWidth)/2,d=(o-(e.width-e.lineWidth)/2)/e.width*e.height,h=e.width/2,c=e.height/2,u="",p="",m="",g="",f=(i-c)/(t-h),w=Math.sqrt(Math.pow(r,2)*Math.pow(t-h,2)*Math.pow(a,2)/(Math.pow(t-h,2)*Math.pow(a,2)+Math.pow(r,2)*Math.pow(i-c,2))),y=Math.sqrt(Math.pow(l,2)*Math.pow(t-h,2)*Math.pow(d,2)/(Math.pow(t-h,2)*Math.pow(d,2)+Math.pow(l,2)*Math.pow(i-c,2)));l||(y=0),t===h?(i=i>c?e.height-e.lineWidth/2:e.lineWidth/2,u=h,p=i>c?e.height/2+d:e.height/2-d):t>h?(t=h+w,i=(t-h)*f+c,u=h+y,p=(u-h)*f+c):(t=h-w,i=(t-h)*f+c,u=h-y,p=(u-h)*f+c);let v=(n-c)/(s-h),x=Math.sqrt(Math.pow(r,2)*Math.pow(s-h,2)*Math.pow(a,2)/(Math.pow(s-h,2)*Math.pow(a,2)+Math.pow(r,2)*Math.pow(n-c,2))),C=Math.sqrt(Math.pow(l,2)*Math.pow(s-h,2)*Math.pow(d,2)/(Math.pow(s-h,2)*Math.pow(d,2)+Math.pow(l,2)*Math.pow(n-c,2)));l||(C=0),s===h?(n=n>c?e.height-e.lineWidth/2:e.lineWidth/2,m=h,g=n>c?e.height/2+d:e.height/2-d):s>h?(s=h+x,n=(s-h)*v+c,m=h+C,g=(m-h)*v+c):(s=h-x,n=(s-h)*v+c,m=h-C,g=(m-h)*v+c);let b="";return b=i<=e.height/2?n<=e.height/2?t>s?0:1:t+s>=e.width?1:0:n=e.width?0:1:t>s?1:0,`M${t} ${i} A${r},${a} 0 ${b},0 ${s},${n} M${t} ${i} L${u} ${p} A${l},${d} 0 ${b},0 ${m},${g} L${s},${n}`}}},id=(0,ot.Z)(td,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"25292a26",null).exports,sd={name:"ForbiddenCharacter",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0];t=Math.max(e.lineWidth/2,t),t=Math.min(e.width/3,t);let i=Math.tan(45*Math.PI/180),s=e.width/2-Math.sqrt(2)*(t/2),n=e.width/2+Math.sqrt(2)*(t/2),o=e.height/2,r=(e.width-e.lineWidth)/2-t,a=((e.width-e.lineWidth)/2-t)/e.width*e.height,l=e.width/2,d=e.height/2,h=o-s*i-d,c=o-n*i-d,u=Math.pow(a,2)+Math.pow(r,2)*Math.pow(i,2),p=2*Math.pow(a,2)*l-2*Math.pow(r,2)*i*h,m=2*Math.pow(a,2)*l-2*Math.pow(r,2)*i*c,g=Math.pow(a,2)*Math.pow(l,2)-Math.pow(a,2)*Math.pow(r,2)+Math.pow(r,2)*Math.pow(h,2),f=Math.pow(a,2)*Math.pow(l,2)-Math.pow(a,2)*Math.pow(r,2)+Math.pow(r,2)*Math.pow(c,2),w=(p+Math.sqrt(Math.abs(Math.pow(p,2)-4*u*g)))/(2*u),y=i*w-s*i+o,v=(p-Math.sqrt(Math.abs(Math.pow(p,2)-4*u*g)))/(2*u),x=i*v-s*i+o,C=(m+Math.sqrt(Math.abs(Math.pow(m,2)-4*u*f)))/(2*u),b=i*C-n*i+o,I=(m-Math.sqrt(Math.abs(Math.pow(m,2)-4*u*f)))/(2*u),S=i*I-n*i+o;return`M${e.lineWidth/2} ${e.height/2} A${e.width/2-e.lineWidth/2},${e.height/2-e.lineWidth/2} 0 0,1 ${e.width-e.lineWidth/2},${e.height/2} A${e.width/2-e.lineWidth/2},${e.height/2-e.lineWidth/2} 0 0,1 ${e.lineWidth/2},${e.height/2}z M${w} ${y} A${r},${a} 0 0,1 ${v},${x}z M${C} ${b} A${r},${a} 0 0,0 ${I},${S}z`}}},nd=(0,ot.Z)(sd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"2d9daca3",null).exports,od={name:"ArrowLeftArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitY[0],i=e.splitY[1],s=e.splitX[2];s=Math.min(e.width-e.lineWidth/2,s),i=Math.min(e.height-t-2*e.lineWidth,i),i=Math.max(e.height/2,i),t=Math.min(e.height/2,t);let n=e.width-e.lineWidth/2,o=(e.height-t+i)/4,r=e.width,a=o+e.lineWidth/2,l=2*a,d=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(s-r,2)/Math.pow(n,2)),h=(l+Math.sqrt(Math.abs(Math.pow(l,2)-4*d)))/2;this.d=`M${e.width-e.lineWidth/2} ${e.lineWidth/2} A${n},${o} 0 0,0 ${e.lineWidth/2},${o} L${e.lineWidth/2} ${o+t} A${n},${o} 0 0,1 ${e.width-e.lineWidth/2},${t+e.lineWidth/2}z`,this.d1=`M${e.lineWidth/2} ${o} A${n},${o} 0 0,0 ${s},${h} L${s} ${h-(e.height-t-i)/2} L${e.width-e.lineWidth/2} ${(e.height-i)/2+i} L${s} ${h+(e.height-t-i)/2+t}L${s} ${h+t}A${n},${o} 0 0,1 ${e.lineWidth/2},${o+t} L${e.lineWidth/2},${o}z`}}},rd=(0,ot.Z)(od,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"e80b444c",null).exports,ad={name:"ArrowRightArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitY[0],i=e.splitY[1],s=e.splitX[2];s=Math.min(e.width-e.lineWidth/2,s),s=Math.max(e.lineWidth/2,s),i=Math.min(e.height-t-2*e.lineWidth,i),i=Math.max(e.height/2,i),t=Math.min(e.height/2,t);let n=e.width-e.lineWidth/2,o=(e.height-t+i)/4,r=o+e.lineWidth/2,a=2*r,l=Math.pow(r,2)-Math.pow(o,2)*(1-Math.pow(s-0,2)/Math.pow(n,2)),d=(a+Math.sqrt(Math.abs(Math.pow(a,2)-4*l)))/2;this.d=`M${e.lineWidth/2} ${e.lineWidth/2} A${n},${o} 0 0,1 ${e.width-e.lineWidth/2},${o} L${e.width-e.lineWidth/2} ${o+t} A${n},${o} 0 0,0 ${e.lineWidth/2},${t+e.lineWidth/2}z`,this.d1=`M${e.width-e.lineWidth/2} ${o} A${n},${o} 0 0,1 ${s},${d} L${s} ${d-(e.height-t-i)/2} L${e.lineWidth/2} ${(e.height-i)/2+i} L${s} ${d+(e.height-t-i)/2+t}L${s} ${d+t}A${n},${o} 0 0,0 ${e.width-e.lineWidth/2},${o+t} L${e.width-e.lineWidth/2},${o}z`}}},ld=(0,ot.Z)(ad,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"28b0e2b8",null).exports,dd={name:"ArrowDownArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1],s=e.splitY[2];s=Math.min(e.height-e.lineWidth/2,s),s=Math.max(e.lineWidth/2,s),i=Math.min(e.width-t-2*e.lineWidth,i),i=Math.max(e.width/2,i),t=Math.min(e.width/2,t);let n=(e.width-t+i)/4,o=e.height-e.lineWidth/2,r=n+e.lineWidth/2,a=2*r,l=Math.pow(r,2)-Math.pow(n,2)*(1-Math.pow(s-0,2)/Math.pow(o,2)),d=(a+Math.sqrt(Math.abs(Math.pow(a,2)-4*l)))/2;this.d=`M${e.lineWidth/2} ${e.lineWidth/2} A${n},${o} 0 0,0 ${n},${e.height-e.lineWidth/2} L${n+t} ${e.height-e.lineWidth/2} A${n},${o} 0 0,1 ${t+e.lineWidth/2},${e.lineWidth/2}z`,this.d1=`M${n} ${e.height-e.lineWidth/2} A${n},${o} 0 0,0 ${d},${s} L${d-(e.width-t-i)/2} ${s} L${(e.width-i)/2+i} ${e.lineWidth/2} L${d+(e.width-t-i)/2+t} ${s}L${d+t} ${s}A${n},${o} 0 0,1 ${n+t},${e.height-e.lineWidth/2} L${n},${e.height-e.lineWidth/2}z`}}},hd=(0,ot.Z)(dd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"5e4bd272",null).exports,cd={name:"ArrowDownArc",data(){return{d:"",d1:""}},props:["transConfig"],created:function(){},watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1],s=e.splitY[2];s=Math.min(e.height-e.lineWidth/2,s),s=Math.max(e.lineWidth/2,s),i=Math.min(e.width-t-2*e.lineWidth,i),i=Math.max(e.width/2,i),t=Math.min(e.width/2,t);let n=(e.width-t+i)/4,o=e.height-e.lineWidth/2,r=n+e.lineWidth/2,a=e.height,l=2*r,d=Math.pow(r,2)-Math.pow(n,2)*(1-Math.pow(s-a,2)/Math.pow(o,2)),h=(l+Math.sqrt(Math.abs(Math.pow(l,2)-4*d)))/2;this.d=`M${e.lineWidth/2} ${e.height-e.lineWidth/2} A${n},${o} 0 0,1 ${n},${e.lineWidth/2} L${n+t} ${e.lineWidth/2} A${n},${o} 0 0,0 ${t+e.lineWidth/2},${e.height-e.lineWidth/2}z`,this.d1=`M${n} ${e.lineWidth/2} A${n},${o} 0 0,1 ${h},${s} L${h-(e.width-t-i)/2} ${s} L${(e.width-i)/2+i} ${e.height-e.lineWidth/2} L${h+(e.width-t-i)/2+t} ${s}L${h+t} ${s}A${n},${o} 0 0,0 ${n+t},${e.lineWidth/2} L${n},${e.lineWidth/2}z`}}},ud=(0,ot.Z)(cd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round","fill-rule":"evenodd"}})])}),[],!1,null,"1a572cb2",null).exports,pd={name:"HorizontalScroll",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){let e=this.transConfig,t=e.splitX[0];t=Math.min(.13*e.width,t);let i=t;e.width/4-e.lineWidth/2>t/e.width*e.height&&(i=t/e.width*e.height),this.d=`M${e.lineWidth/2} ${3*i+e.lineWidth/2} A${i},${i} 0 0,0 ${e.lineWidth/2+2*i},${3*i+e.lineWidth/2} L${e.lineWidth/2+2*i} ${e.height-i-e.lineWidth/2}A${i},${i} 0 0,1 ${e.lineWidth/2},${e.height-i-e.lineWidth/2} L${e.lineWidth/2} ${3*i+e.lineWidth/2}z`,this.d1=` M${e.lineWidth/2} ${3*i+e.lineWidth/2} A${i},${i} 0 0,1 ${e.lineWidth/2+i},${2*i+e.lineWidth/2} L${e.width-i-e.lineWidth/2} ${2*i+e.lineWidth/2} A${i},${i} 0 0,0 ${e.width-e.lineWidth/2},${i+e.lineWidth/2} L${e.width-e.lineWidth/2} ${e.height-3*i-e.lineWidth/2} A${i},${i} 0 0,1 ${e.width-i-e.lineWidth/2},${e.height-2*i-e.lineWidth/2} L${2*i+e.lineWidth/2} ${e.height-2*i-e.lineWidth/2} L${2*i+e.lineWidth/2} ${3*i|+e.lineWidth/2} A${i},${i} 0 0,1 ${e.lineWidth/2},${3*i+e.lineWidth/2}z`,this.d2=`M${e.width-e.lineWidth/2-2*i} ${2*i+e.lineWidth/2} L${e.width-e.lineWidth/2-2*i} ${i+e.lineWidth/2} A${i/2},${i/2} 0 0,0 ${e.width-e.lineWidth/2-i},${i+e.lineWidth/2} L${e.width-e.lineWidth/2-i} ${2*i+e.lineWidth/2}z`,this.d3=`M${e.lineWidth/2+2*i} ${3*i+e.lineWidth/2} A${i},${i} 0 0,1 ${e.lineWidth/2+i},${4*i+e.lineWidth/2} L${i+e.lineWidth/2} ${3*i+e.lineWidth/2} A${i/2},${i/2} 0 0,1 ${2*i+e.lineWidth/2},${3*i+e.lineWidth/2}`,this.d4=`M${e.width-e.lineWidth/2-i} ${i+e.lineWidth/2} A${i/2},${i/2} 0 0,1 ${e.width-e.lineWidth/2-2*i},${i+e.lineWidth/2} A${i},${i} 0 1,1 ${e.width-e.lineWidth/2-i},${2*i+e.lineWidth/2} L${e.width-e.lineWidth/2-i} ${i+e.lineWidth/2}`}}},md=(0,ot.Z)(pd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d3,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d4,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"2968c5d8",null).exports,gd={name:"VerticalRoll",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){let e=this.transConfig,t=e.splitY[0];t=Math.min(.13*e.height,t);let i=t;e.height/4-e.lineWidth/2>t/e.height*e.width&&(i=t/e.height*e.width),this.d=`M${3*i+e.lineWidth/2} ${e.lineWidth/2} A${i},${i} 0 0,1 ${3*i+e.lineWidth/2},${e.lineWidth/2+2*i} L${e.width-i-e.lineWidth/2} ${e.lineWidth/2+2*i} A${i},${i} 0 0,0 ${e.width-i-e.lineWidth/2},${e.lineWidth/2} L${3*i+e.lineWidth/2} ${e.lineWidth/2} z`,this.d1=`M${2*i+e.lineWidth/2} ${e.height-e.lineWidth/2-2*i} L${i+e.lineWidth/2} ${e.height-e.lineWidth/2-2*i} A${i/2},${i/2} 0 0,1 ${i+e.lineWidth/2},${e.height-e.lineWidth/2-i} L ${2*i+e.lineWidth/2} ${e.height-e.lineWidth/2-i}z`,this.d2=` M${3*i+e.lineWidth/2} ${e.lineWidth/2} A${i},${i} 0 0,0 ${2*i+e.lineWidth/2},${e.lineWidth/2+i} L${2*i+e.lineWidth/2} ${e.height-i-e.lineWidth/2} A${i},${i} 0 0,1 ${i+e.lineWidth/2} ${e.height-e.lineWidth/2} L${e.width-3*i-e.lineWidth/2} ${e.height-e.lineWidth/2} A${i},${i} 0 0,0 ${e.width-2*i-e.lineWidth/2} ,${e.height-i-e.lineWidth/2} L${e.width-2*i-e.lineWidth/2} ${2*i+e.lineWidth/2} L${3*i+e.lineWidth/2} ${2*i+e.lineWidth/2} A${i},${i} 0 0,0 ${3*i+e.lineWidth/2},${e.lineWidth/2}z`,this.d3=`M${3*i+e.lineWidth/2} ${e.lineWidth/2+2*i} A${i},${i} 0 0,0 ${4*i+e.lineWidth/2},${e.lineWidth/2+i} L${3*i+e.lineWidth/2} ${i+e.lineWidth/2} A${i/2},${i/2} 0 0,0 ${3*i+e.lineWidth/2},${2*i+e.lineWidth/2}`,this.d4=`M${i+e.lineWidth/2} ${e.height-e.lineWidth/2-i} A${i/2},${i/2} 0 0,0 ${i+e.lineWidth/2},${e.height-e.lineWidth/2-2*i} A${i},${i} 0 1,0 ${2*i+e.lineWidth/2},${e.height-e.lineWidth/2-i} L${i+e.lineWidth/2} ${e.height-e.lineWidth/2-i}`}}},fd=(0,ot.Z)(gd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d3,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d4,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"4522b4dd",null).exports,wd={name:"LordosisCurvedRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[1],s=e.splitY[2];i=Math.min(e.height-e.lineWidth/2,i),i=Math.max(e.height/2,i),t=Math.max(.13*e.width,t),t=Math.min(.37*e.width,t);let n=1.15*(e.width/2-e.lineWidth),o=1.7*(e.height-i-e.lineWidth/2),r=e.width/2,a=-o/2,l=t+.13*e.width,d=t,h=.13*e.width,c=2*a,u=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(l-r,2)/Math.pow(n,2)),p=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(d-r,2)/Math.pow(n,2)),m=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(h-r,2)/Math.pow(n,2)),g=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(e.width/2-r,2)/Math.pow(n,2)),f=(c+Math.sqrt(Math.abs(Math.pow(c,2)-4*u)))/2,w=(c+Math.sqrt(Math.abs(Math.pow(c,2)-4*p)))/2,y=(c+Math.sqrt(Math.abs(Math.pow(c,2)-4*m)))/2,v=(c+Math.sqrt(Math.abs(Math.pow(c,2)-4*g)))/2;s=Math.min(e.height/2,s),s=Math.max(v,s),this.d=`M${e.lineWidth/2} ${e.lineWidth/2} A${n},${o} 0 0,0 ${l},${f} L${d} ${w+s-v} L${d} ${w+e.height-s} A${n},${o} 0 0,1 ${e.lineWidth/2},${e.height-s} L${h} ${y+(e.height-s)/2} L${e.lineWidth/2} ${e.lineWidth/2}z`,this.d1=`M${e.width-e.lineWidth/2} ${e.lineWidth/2} A${n},${o} 0 0,1 ${e.width-l},${f} L${e.width-d} ${w+s-v} L${e.width-d} ${w+e.height-s} A${n},${o} 0 0,0 ${e.width-e.lineWidth/2},${e.height-s} L${e.width-h} ${y+(e.height-s)/2} L${e.width-e.lineWidth/2} ${e.lineWidth/2}z`,this.d2=`M${d} ${w+s-v} A${n},${o} 0 0,0 ${e.width-d},${w+s-v} L${e.width-d} ${w+e.height-v-e.lineWidth/2} A${n},${o} 0 0,1 ${d},${w+e.height-v-e.lineWidth/2}z`,this.d3=`M${d} ${w+s-v} L${l} ${f} L${l} ${f+s-v} A${n},${o} 0 0,1 ${d},${w+s-v}z`,this.d4=`M${e.width-d} ${w+s-v} L${e.width-l} ${f} L${e.width-l} ${f+s-v} A${n},${o} 0 0,1 ${e.width-d},${w+s-v}z`}}},yd=(0,ot.Z)(wd,(function(){var e=this,t=e._self._c;return t("g",[e._l(e.gradientColorList,(function(i,s){return t("defs",{key:s},[i.isLinear?t("linearGradient",{attrs:{id:i.id,gradientTransform:`rotate(${i.rotate})`}},e._l(i.colorList,(function(e,i){return t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})})),1):t("radialGradient",{attrs:{id:i.id}},e._l(i.colorList,(function(e,i){return t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})})),1)],1)})),t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d3,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d4,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})],2)}),[],!1,null,"42ab37b6",null).exports,vd={name:"UpCurvedRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[1],s=e.splitY[2];i=Math.max(e.lineWidth,i),i=Math.min(e.height/2,i),t=Math.max(.13*e.width,t),t=Math.min(.37*e.width,t);let n=1.15*(e.width/2-e.lineWidth),o=1.7*(i-e.lineWidth/2),r=e.width/2,a=e.height+o/2,l=t+.13*e.width,d=t,h=.13*e.width,c=2*a,u=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(l-r,2)/Math.pow(n,2)),p=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(d-r,2)/Math.pow(n,2)),m=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(h-r,2)/Math.pow(n,2)),g=Math.pow(a,2)-Math.pow(o,2)*(1-Math.pow(e.width/2-r,2)/Math.pow(n,2)),f=(c-Math.sqrt(Math.abs(Math.pow(c,2)-4*u)))/2,w=(c-Math.sqrt(Math.abs(Math.pow(c,2)-4*p)))/2,y=(c-Math.sqrt(Math.abs(Math.pow(c,2)-4*m)))/2,v=(c-Math.sqrt(Math.abs(Math.pow(c,2)-4*g)))/2;s=Math.max(e.height/2-e.lineWidth/4,s),s=Math.min(v,s),this.d=`M${e.lineWidth/2} ${e.height-e.lineWidth/2} A${n},${o} 0 0,1 ${l},${f} L${d} ${w-v+s} L${d} ${w-s} A${n},${o} 0 0,0 ${e.lineWidth/2},${e.height-s} L${h} ${y-s/2}z`,this.d1=`M${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2} A${n},${o} 0 0,0 ${e.width-l},${f} L${e.width-d} ${w-v+s} L${e.width-d} ${w-s} A${n},${o} 0 0,1 ${e.width-e.lineWidth/2},${e.height-s} L${e.width-h} ${y-s/2}z`,this.d2=`M${d} ${w-v+s} A${n},${o} 0 0,1 ${e.width-d} ${w-v+s} L${e.width-d} ${w-v+e.lineWidth/2} A${n},${o} 0 0,0 ${d} ${w-v+e.lineWidth/2}z`,this.d3=`M${l} ${f} L${d} ${w-v+s} A${n},${o} 0 0,1 ${l} ${f-v+s}z`,this.d4=`M${e.width-l} ${f} L${e.width-d} ${w-v+s} A${n},${o} 0 0,0 ${e.width-l} ${f-v+s}z`}}},xd=(0,ot.Z)(vd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d3,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d4,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"cd21fac0",null).exports,Cd={name:"LordosisRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[1];i=Math.min(e.height/2,i),i=Math.max(e.lineWidth/2,i),t=Math.max(.13*e.width,t),t=Math.min(.37*e.width,t);let s=.032*e.width,n=i/2;this.d=`M${e.lineWidth/2} ${e.lineWidth/2} L${t+e.width/8-s} ${e.lineWidth/2} Q${t+e.width/8} ${e.lineWidth/2} ${t+e.width/8} ${n/2} Q${t+e.width/8} ${n} ${t+e.width/8-s} ${n} L${t+s} ${n} Q${t} ${n} ${t} ${1.5*n} L${t} ${2*n} L${e.lineWidth/2} ${2*n} L${e.width/8} ${n}Z`,this.d1=`M${e.width-e.lineWidth/2} ${e.lineWidth/2} L${e.width-(t+e.width/8-s)} ${e.lineWidth/2} Q${e.width-(t+e.width/8)} ${e.lineWidth/2} ${e.width-(t+e.width/8)} ${n/2} Q${e.width-(t+e.width/8)} ${n} ${e.width-(t+e.width/8-s)} ${n} L${e.width-(t+s)} ${n} Q${e.width-t} ${n} ${e.width-t} ${1.5*n} L${e.width-t} ${2*n} L${e.width-e.lineWidth/2} ${2*n} L${e.width-e.width/8} ${n}Z`,this.d2=`M${t} ${1.5*n} Q${t} ${2*n} ${t+s} ${2*n} L${e.width-(t+s)} ${2*n} Q${e.width-t} ${2*n} ${e.width-t} ${1.5*n} L${e.width-t} ${e.height-n/2} Q${e.width-t} ${e.height-e.lineWidth/2} ${e.width-t-s} ${e.height-e.lineWidth/2} L${t+s} ${e.height-e.lineWidth/2} Q${t} ${e.height-e.lineWidth/2} ${t} ${e.height-n/2}Z`,this.d3=`M${t+e.width/8} ${n/2} Q${t+e.width/8} ${n} ${t+e.width/8-s} ${n} L${t+s} ${n} Q${t} ${n} ${t} ${1.5*n} Q${t} ${2*n} ${t+s} ${2*n} L${t+e.width/8} ${2*n}Z`,this.d4=`M${e.width-(t+e.width/8)} ${n/2} Q${e.width-(t+e.width/8)} ${n} ${e.width-(t+e.width/8-s)} ${n} L${e.width-(t+s)} ${n} Q${e.width-t} ${n} ${e.width-t} ${1.5*n} Q${e.width-t} ${2*n} ${e.width-(t+s)} ${2*n} L${e.width-t-e.width/8} ${2*n}Z`}}},bd=(0,ot.Z)(Cd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d3,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d4,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"9d9f22fa",null).exports,Id={name:"LordosisRibbon",data(){return{d:"",d1:"",d2:"",d3:"",d4:""}},props:["transConfig"],watch:{transConfig:{handler(){this.cal()},deep:!0,immediate:!0}},computed:{},methods:{cal:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[1];i=Math.max(e.height/2,i),i=Math.min(e.height-e.lineWidth/2,i),t=Math.max(.13*e.width,t),t=Math.min(.37*e.width,t);let s=.032*e.width,n=(e.height-i)/2;this.d=`M${e.lineWidth/2} ${e.height-e.lineWidth/2} L${t+e.width/8-s} ${e.height-e.lineWidth/2} Q${t+e.width/8} ${e.height-e.lineWidth/2} ${t+e.width/8} ${e.height-n/2} Q${t+e.width/8} ${e.height-n} ${t+e.width/8-s} ${e.height-n} L${t+s} ${e.height-n} Q${t} ${e.height-n} ${t} ${e.height-1.5*n} L${t} ${e.height-i} L${e.lineWidth/2} ${e.height-i} L${e.width/8} ${e.height-i/2}Z`,this.d1=`M${e.width-e.lineWidth/2} ${e.height-e.lineWidth/2} L${e.width-(t+e.width/8-s)} ${e.height-e.lineWidth/2} Q${e.width-(t+e.width/8)} ${e.height-e.lineWidth/2} ${e.width-(t+e.width/8)} ${e.height-n/2} Q${e.width-(t+e.width/8)} ${e.height-n} ${e.width-(t+e.width/8-s)} ${e.height-n} L${e.width-(t+s)} ${e.height-n} Q${e.width-t} ${e.height-n} ${e.width-t} ${e.height-1.5*n} L${e.width-t} ${e.height-i} L${e.width-e.lineWidth/2} ${e.height-i} L${e.width-e.width/8} ${e.height-i/2}Z`,this.d2=`M ${t} ${e.height-1.5*n} Q${t} ${e.height-2*n} ${t+s} ${e.height-2*n} L${e.width-(t+s)} ${e.height-2*n} Q${e.width-t} ${e.height-2*n} ${e.width-t} ${e.height-1.5*n} L${e.width-t} ${n/2} Q${e.width-t} ${e.lineWidth/2} ${e.width-t-s} ${e.lineWidth/2} L${t+s} ${e.lineWidth/2} Q${t} ${e.lineWidth/2} ${t} ${n/2}Z`,this.d3=`M${t+e.width/8} ${e.height-n/2} Q${t+e.width/8} ${e.height-n} ${t+e.width/8-s} ${e.height-n} L${t+s} ${e.height-n} Q${t} ${e.height-n} ${t} ${e.height-1.5*n} Q${t} ${e.height-2*n} ${t+s} ${e.height-2*n} L${t+e.width/8} ${e.height-2*n}Z`,this.d4=`M${e.width-(t+e.width/8)} ${e.height-n/2} Q${e.width-(t+e.width/8)} ${e.height-n} ${e.width-(t+e.width/8-s)} ${e.height-n} L${e.width-(t+s)} ${e.height-n} Q${e.width-t} ${e.height-n} ${e.width-t} ${e.height-1.5*n} Q${e.width-t} ${e.height-2*n} ${e.width-(t+s)} ${e.height-2*n} L${e.width-(t+e.width/8)} ${e.height-2*n}Z`}}},Sd=(0,ot.Z)(Id,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d1,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d2,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d3,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}}),t("path",{attrs:{d:e.d4,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor2,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"6a120639",null).exports,Pd={name:"Arc",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitY[0],s=e.splitX[1],n=e.splitY[1];t=Math.max(e.lineWidth/2,t),t=Math.min(e.width-e.lineWidth/2,t),s=Math.max(e.lineWidth/2,s),s=Math.min(e.width-e.lineWidth/2,s);let o=(e.width-e.lineWidth)/2,r=(e.height-e.lineWidth)/2,a=e.width/2,l=e.height/2,d=(i-l)/(t-a),h=Math.sqrt(Math.pow(o,2)*Math.pow(t-a,2)*Math.pow(r,2)/(Math.pow(t-a,2)*Math.pow(r,2)+Math.pow(o,2)*Math.pow(i-l,2)));t===a?i=i>l?e.height-e.lineWidth/2:e.lineWidth/2:t>a?(t=a+h,i=(t-a)*d+l):(t=a-h,i=(t-a)*d+l);let c=(n-l)/(s-a),u=Math.sqrt(Math.pow(o,2)*Math.pow(s-a,2)*Math.pow(r,2)/(Math.pow(s-a,2)*Math.pow(r,2)+Math.pow(o,2)*Math.pow(n-l,2)));s===a?n=n>l?e.height-e.lineWidth/2:e.lineWidth/2:s>a?(s=a+u,n=(s-a)*c+l):(s=a-u,n=(s-a)*c+l);let p="";return p=i<=e.height/2?n<=e.height/2?t>s?0:1:t+s>=e.width?1:0:n=e.width?0:1:t>s?1:0,`M${t} ${i} A${o},${r} 0 ${p},0 ${s},${n}`}}},Td=(0,ot.Z)(Pd,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,"stroke-dasharray":e.transConfig.strokeDashes,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":e.transConfig.linecap}})])}),[],!1,null,"226b1f84",null).exports,$d={name:"GreaterThan",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1],s=Math.atan(e.height/2/(e.width-t)),n=Math.cos(s)*(e.width-i),o=Math.sin(s)*n,r=Math.cos(s)*n,a=t-e.width+i+r;return a=Math.max(e.lineWidth/2,a),i=Math.max(e.lineWidth/2,i),i=Math.min(e.width-e.lineWidth/2,i),t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2}L${e.width-e.lineWidth/2} ${e.height/2}L${t} ${e.height-e.lineWidth/2}L${a} ${e.height-o-e.lineWidth/2}L${i} ${e.height/2}L${a} ${o+e.lineWidth/2}z`}}},kd=(0,ot.Z)($d,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"1d6c3156",null).exports,Ld={name:"LessThan",data(){return{}},props:["transConfig"],computed:{d:function(){let e=this.transConfig,t=e.splitX[0],i=e.splitX[1],s=Math.atan(e.height/2/t),n=Math.cos(s)*i,o=Math.sin(s)*n,r=t+i-Math.cos(s)*n;return r=Math.min(e.width-e.lineWidth/2,r),i=Math.max(e.lineWidth/2,i),i=Math.min(e.width-e.lineWidth/2,i),t=Math.min(e.width-e.lineWidth/2,t),t=Math.max(e.lineWidth/2,t),`M${t} ${e.lineWidth/2}L${e.lineWidth/2} ${e.height/2}L${t} ${e.height-e.lineWidth/2}L${r} ${e.height-o-e.lineWidth/2}L${i} ${e.height/2}L${r} ${o+e.lineWidth/2}z`}}},Md=(0,ot.Z)(Ld,(function(){var e=this,t=e._self._c;return t("g",[t("path",{attrs:{d:e.d,stroke:e.transConfig.strokeColor,"stroke-width":e.transConfig.lineWidth,fill:e.transConfig.fillColor,"stroke-linejoin":"round","stroke-linecap":"round"}})])}),[],!1,null,"186335b7",null).exports,Ed={name:"ItemForTransShape",props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],data:function(){return{points:new Array(this.item.pointNum).fill({x:0,y:0})}},computed:{itemWidth:function(){return this.item.pathWidth},itemHeight:function(){return this.item.pathHeight},transConfig:function(){let e=this.item.splitX;this.item.ratioX.forEach(((t,i)=>{e[i]=parseFloat(t*this.itemWidth)}));let t=this.item.splitY;return this.item.ratioY.forEach(((e,i)=>{t[i]=parseFloat(e*this.itemHeight)})),{transType:this.item.transType,lineWidth:this.item.lineWidth,splitX:e,splitY:t,strokeColor:this.item.strokeColor,fillColor:this.item.fillColor,fillColor2:this.item.fillColor2,strokeDashes:this.item.strokeDashes,linecap:this.item.linecap,width:this.itemWidth,height:this.itemHeight}},currentTransShapeComponent:function(){return this.item.transType.substr(0,1).toUpperCase()+this.item.transType.substr(1)},gradientColorList:function(){return me.P6.removeArrEmpty(this.item.gradientColorList.slice(0))},svgGradientDeg(){return function(e){return e-90+" 0.5 0.5"}}},watch:{},mounted:function(){},methods:{},components:{ItemLayout:ki,...n}},Ad=(0,ot.Z)(Ed,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForTransShape",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[t("svg",{ref:"mySvg",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",overflow:"visible"}},[e._l(e.gradientColorList,(function(i,s){return t("defs",{key:s},[i.isLinear?t("linearGradient",{attrs:{id:i.id,gradientTransform:`rotate(${e.svgGradientDeg(i.gradientDeg)})`}},e._l(i.colorList,(function(e,i){return t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})})),1):t("radialGradient",{attrs:{id:i.id}},e._l(i.colorList,(function(e,i){return t("stop",{key:i,attrs:{offset:e.percent,"stop-color":e.color}})})),1)],1)})),t(e.currentTransShapeComponent,{tag:"component",attrs:{transConfig:e.transConfig}})],2)])}),[],!1,null,"1d003872",null).exports,_d={name:"ItemForQuiz",data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],computed:{},methods:{},components:{ItemLayout:ki}},Wd=(0,ot.Z)(_d,(function(){var e=this;return(0,e._self._c)("ItemLayout",{staticClass:"ItemForQuiz",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}})}),[],!1,null,"200bbdce",null).exports,Fd={name:"ItemForFontIcon",data(){return{}},props:["item","index","groupKey","isGroupItem","isPathItem"],computed:{fontIcon:function(){return`icon-${this.item.fontIcon}`},iconColor(){return this.item.innerIconstyle.color},iconStyle(){const e=Math.min(parseFloat(this.item.style.width),parseFloat(this.item.style.height));return{color:this.iconColor,height:"100%",width:"100%",fontSize:e+"px"}}},components:{ItemLayout:ki}},Od=(0,ot.Z)(Fd,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForFontIcon",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroupItem:e.isGroupItem,isPathItem:e.isPathItem}},[t("div",{staticClass:"icon_box",class:e.fontIcon,style:e.iconStyle})])}),[],!1,null,"0f1195ab",null).exports,Bd={name:"ItemForHtmlDom",props:["item","index","groupKey","isGroup","isGroupItem","isPathItem"],render(e){const{item:t,index:i,groupKey:s,isGroupItem:n,isPathItem:o,isGroup:r}=this,{tag:a,innerStyles:l,content:d}=t,h=e(a.toLowerCase(),{style:l,class:"conatiner_inner"},d),c=e("div",{class:["html_dom_container"]},[h]);return e(ki,{attrs:{item:t,index:i,groupKey:s,isGroup:r,isGroupItem:n,isPathItem:o}},[c])}},Zd=(0,ot.Z)(Bd,undefined,undefined,!1,null,"34e61d7a",null).exports,Hd={name:"ItemForMap",data(){return{map:null,googleUrl:"",addressHeight:59}},props:["item","index","render","thumbRender","groupKey","thumbPanel","isGroup","isGroupItem","isCopyText","isReplace","isPathItem","pageInnerIndex","pageIndex"],mounted(){this.googleUrl="https://www.google.com/maps/embed/v1/place?key=AIzaSyBw8XwUSywFulb0VXyp9qhDrsIeY8dnHLU",this.insertScript(),setTimeout((()=>{this.addressHeight=document.getElementById("address"+this.item.id)&&document.getElementById("address"+this.item.id).offsetHeight}),1e3)},computed:{mapId:function(){return"mapId"+(this.pageInnerIndex?"sideSpace":"workSpace")+this.item.id},itemStyle:function(){return this.item.style},itemWidth:{get:function(){return this.itemStyle.width},set:function(e){this.itemStyle.width=e}},itemHeight:function(){return parseFloat(this.itemStyle.height.split("px")[0])-60+"px"},showBorderRadius:function(){return this.item.buttonBackground.showBorderRadius?{borderRadius:`${this.item.buttonBackground.borderTopLeftRadius} ${this.item.buttonBackground.borderTopRightRadius} ${this.item.buttonBackground.borderBottomRightRadius} ${this.item.buttonBackground.borderBottomLeftRadius}`}:{borderRadius:"0"}},zoom:function(){return this.item.zoom},lng:function(){return this.item.center[0]},lat:function(){return this.item.center[1]},center:function(){return this.item.center},googleIframeCenter:function(){return`${this.lat},${this.lng}`},url:function(){return this.googleUrl+"&q="+this.item.place.detailAddress+"&zoom="+this.zoom+"¢er="+this.googleIframeCenter},isYZPro:function(){return this.$store.getters.isYZPro},routeStyle:function(){return{"background-color":this.item.routeBgColor}},jumpUrl:function(){let e="";e=`https://www.google.com.hk/maps/search/${this.item.place.address}`;let t="";return t=this.$store.getters.isH5Pro?e:"https://map.tianditu.gov.cn/",t},isH5Pro:function(){return this.$store.getters.isH5Pro},yzMapUrl:function(){return`http://api.tianditu.gov.cn/staticimage?tk=72ca2da1a51ca4786daaa21e4f548957¢er=${this.center[0]},${this.center[1]}&zoom=${this.zoom}`}},watch:{mapId:function(){},zoom:function(){},center:{handler(){const e={lat:this.lat,lng:this.lng};this.map.setCenter(e),this.createMark()},deep:!0}},methods:{initMap:function(){},jumpMap:function(){let e="";e=`https://www.google.com.hk/maps/search/${this.item.place.address}`;let t="";this.$store.getters.isH5Pro&&(t=e),window.open(t,"_blank")},browserAPPVersion:function(){let e=navigator.userAgent;navigator.appVersion;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1===e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("iPhone")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1===e.indexOf("Safari"),souyue:e.indexOf("souyue")>-1,superapp:e.indexOf("superapp")>-1,weixin:e.toLowerCase().indexOf("micromessenger")>-1,Safari:e.indexOf("Safari")>-1,uc:e.indexOf("Linux")>-1}},insertScript:function(){let e=this.$store.getters.isH5Pro,t=document.getElementById("alreadyLoadMap");if(!e&&!t){let e="http://api.tianditu.gov.cn/api?v=4.0&tk=d32d19b122c8654e8704a882a1d5b795",t=document.createElement("script");t.type="text/javascript",t.src=e,t.id="alreadyLoadMap",document.body.append(t)}}},destroyed:function(){this.map=null},components:{ItemLayout:ki}},Nd=Hd,zd=(0,ot.Z)(Nd,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForMap",attrs:{item:e.item,index:e.index,render:e.render,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,thumbRender:e.thumbRender,thumbPanel:e.thumbPanel,isPathItem:e.isPathItem,pageIndex:e.pageIndex}},[t("div",{staticClass:"map-box"},[e.isH5Pro?t("iframe",{staticClass:"google-map",staticStyle:{border:"0"},attrs:{width:"100%",height:e.itemHeight,loading:"lazy",allowfullscreen:"",referrerpolicy:"no-referrer-when-downgrade",src:e.url,name:e.mapId,scrolling:"no"}}):e._e(),e.isYZPro?t("div",{staticClass:"yz-map-content"},[t("img",{staticClass:"yz-map-img",style:{width:e.itemWidth,height:e.itemHeight},attrs:{src:e.yzMapUrl}})]):e._e(),t("div",{staticClass:"address-box",attrs:{title:`${e.item.place.address}\n${e.item.place.detailAddress}`,id:"address"+e.item.id}},[t("div",{staticClass:"box-left"},[t("div",{staticClass:"address-short"},[e._v(e._s(e.item.place.address))]),t("div",{staticClass:"address-detail"},[e._v(e._s(e.item.place.detailAddress))])]),t("div",{staticClass:"box-right",on:{click:function(e){e.stopPropagation()}}},[t("a",{staticClass:"reader-icon route",style:e.routeStyle,attrs:{href:e.jumpUrl,target:"_blank"}})])])])])}),[],!1,null,"2ed4b6d1",null).exports,Rd={name:"ItemForPagination",components:{ItemLayout:ki},props:["item","index","render","thumbRender","groupKey","thumbPanel","isGroup","isGroupItem","isCopyText","isReplace","isPathItem","pageIndex"],data(){return{}},mounted(){},computed:{localRender:function(){return this.render},paginationStyle:function(){let e=this.item,t=parseFloat(e.innerTextStyle.fontSize),i=t<12?t/12:1,s="none";return s=e.isAllUndeline&&e.strikeThrough?"underline line-through":e.isAllUndeline&&!e.strikeThrough?"underline":!e.isAllUndeline&&e.strikeThrough?"line-through":"none",{"font-size":e.innerTextStyle.fontSize,color:e.innerTextStyle.color,"text-align":e.innerTextStyle.textAlign,"text-indent":e.innerTextStyle.textIndent||"unset","font-family":e.innerTextStyle.fontFamily,"font-weight":e.isAllBold?"bold":"normal",background:"transparent","font-style":e.isAllItalic?"italic":"","text-decoration":s,transform:`scale(${i})`}},currentPageIndex:function(){return this.pageIndex},fontSize:function(){return this.item.innerTextStyle.fontSize},pages:function(){return this.$store.state.pagePanel.pages},curPageIndex:function(){return this.$store.state.pageConfig.isDoubleEditor&&0!==this.currentPageIndex?this.item.value:parseInt(this.currentPageIndex)-this.item.copyPagesArray[0]+parseInt(this.item.startPageNumber)}},methods:{changeTextSize:function(){this.$nextTick((()=>{let e=document.getElementById(`text${this.item.id}`).getBoundingClientRect().height,t=this.item.style.height.split("px")[0];this.pages.forEach((i=>{i.items.forEach((i=>{"pagination"===i.type&&i.lot===this.item.lot&&e>t&&(i.style.height=e+"px")}))}))}))}}},Vd=Rd,Dd=(0,ot.Z)(Vd,(function(){var e=this,t=e._self._c;return t("ItemLayout",{key:e.item.id,staticClass:"ItemForPagination",attrs:{item:e.item,index:e.index,render:e.localRender,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,thumbRender:e.thumbRender,thumbPanel:e.thumbPanel,isPathItem:e.isPathItem,pageIndex:e.pageIndex}},[t("div",{staticClass:"pagination-content",style:{width:e.item.style.width,height:e.item.style.height}},[t("div",{staticClass:"textArea",style:e.paginationStyle,attrs:{id:"text"+e.item.id}},[e._v(" "+e._s(e.curPageIndex)+" ")])])])}),[],!1,null,"4da0152e",null).exports,Gd=i(186),Yd=i(8731);const jd=()=>0!==T.Z.state.globalAudioItems.length,Ud=({method:e="pause"})=>{switch(e){case"play":T.Z.state.isForbidPluginMusic=!1,Xd();break;case"pause":T.Z.state.isForbidPluginMusic=!0,Qd()}},Xd=()=>{const e=T.Z.state.pluginMusiclastList;if(Array.isArray(e)&&0!==e.length){const t=(0,Gd.$h)({type:"play",audioItem:e[0],pageIndex:e[0].pageIndex});return e.length=0,void(t.paused&&qd())}qd()},qd=()=>{if(window.vuePopDom&&window.vuePopDom.sliderEnterPage(),window.BookInfo){const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();o.Q.$emit("ENTER_PAGE",{pages:t,pageIndex:e})}},Qd=()=>{const e=T.Z.state.pluginMusicPlayList;Array.isArray(e)&&0!==e.length&&(T.Z.state.pluginMusiclastList=(0,Yd.Z)(e),e.forEach((e=>{(0,Gd.$h)({type:"pause",audioItem:e,pageIndex:e.pageIndex})})))},Kd=()=>{const e=T.Z.state.pluginMusicPlayList;return!(!Array.isArray(e)||0===e.length)},Jd=(e=!1)=>{void 0===window.mulEditorInfo&&(window.mulEditorInfo.isPlaying=e)},eh=e=>{if(void 0===e)return!1;if(!Array.isArray(e))return!1;const t=T.Z.state.globalAudioItems;if(0===t.length)return!1;let i=!1;for(let s=0;se.originMapIndex===n))){i=!0;break}}return i};var th=i(2698),ih=i(4649);const sh=async()=>{await nh().then((e=>{const t=(0,ih.j)(e),i=oh(t);rh(i),void 0===window.mulEditorInfo&&(window.mulEditorInfo={hasMusic:jd(),isPlaying:!1,handleMusic:Ud,pageHasMusic:eh},void 0!==window.initSettingBody&&window.initSettingBody())}))},nh=async()=>{const e=th.aA,t=th.zD;return e?await r.Z.get(`/test/${t}/config.js`).then((e=>JSON.parse(e.data.replace(/var.*?=\s{/,"{").replace(/export\sdefault.*/,"")).pages)):void 0!==window.readerConfig?window.readerConfig.pages:[]},oh=e=>{if(0===e.length)return;const t=[];for(let i=0;i=0)for(let e=0;e{if(0!==e.length){for(let t=0;t0)for(let e=0;e0}}},yh=(0,ot.Z)(wh,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"CircleSkin audioControler skinId1"},[3!==e.musicSkin?t("div",{staticClass:"control-button",class:{"single-audio":1===e.musicSkin,"multiple-audio":1!==e.musicSkin}},[1!==e.musicSkin?t("div",{staticClass:"prev-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("PrevButton",{attrs:{item:e.item}})],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],key:"play",staticClass:"play-button",on:{click:e.play,touchstart:e.play}},[t("PlayButton",{attrs:{musicPlayPercent:e.playPercent,item:e.item}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],key:"pause",staticClass:"pause-button",on:{click:e.pause,touchstart:e.pause}},[t("PauseButton",{attrs:{musicPlayPercent:e.playPercent,item:e.item}})],1),1!==e.musicSkin?t("div",{staticClass:"next-button",on:{click:function(t){return e.switchAudio(1)}}},[t("NextButton",{attrs:{item:e.item}})],1):e._e()]):e._e(),3===e.musicSkin?t("MusicQrcode",{attrs:{item:e.item,curMusicSrc:e.curMusicSrc}}):e._e()],1)}),[],!1,null,"6755fa16",null).exports,vh={name:"ReplaySvgIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor}}},xh=(0,ot.Z)(vh,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"ReplaySvgIcon"},[t("svg",{attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame"}},[t("path",{attrs:{id:"Vector",d:"M12 15V11L15.5 13L19 15L15.5 17L12 19V15Z",fill:e.controlIconColor,stroke:e.controlIconColor,"stroke-width":"1.75","stroke-linejoin":"round"}}),t("path",{attrs:{id:"Vector_2",d:"M5.51473 23.3388C7.68627 25.6009 10.6863 27 14 27C20.6274 27 26 21.4035 26 14.5C26 7.59646 20.6274 2 14 2C10.6863 2 7.68627 3.39911 5.51473 5.66118C4.4094 6.81257 2 9.63889 2 9.63889",stroke:e.controlIconColor,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{id:"Vector_3",d:"M2 4V10H8",stroke:e.controlIconColor,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])])}),[],!1,null,"770018fa",null).exports,Ch={name:"PrevSvgIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor}}},bh=(0,ot.Z)(Ch,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PrevSvgIcon"},[t("svg",{attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame 427319607"}},[t("g",{attrs:{id:"Group"}},[t("path",{attrs:{id:"Vector",d:"M24.4961 4.87726C25.1628 4.48837 26 4.96925 26 5.74104V23.259C26 24.0308 25.1628 24.5116 24.4961 24.1227L9.48076 15.3638C8.81926 14.9779 8.81926 14.0221 9.48076 13.6362L24.4961 4.87726Z",fill:e.controlIconColor}})]),t("g",{attrs:{id:"Group_2"}},[t("path",{attrs:{id:"Vector_2",d:"M1 4.4375C1 3.64359 1.44772 3 2 3C2.55229 3 3 3.64359 3 4.4375H1ZM3 24.5625C3 25.3564 2.55229 26 2 26C1.44772 26 1 25.3564 1 24.5625H3ZM3 4.4375V24.5625H1V4.4375H3Z",fill:e.controlIconColor}})])])])])}),[],!1,null,"8d7cc3a0",null).exports,Ih={name:"PlaySvgIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor},buttonBackgroundColor:function(){return this.item.skin0ColorObj.buttonBackgroundColor}}},Sh=(0,ot.Z)(Ih,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PlaySvgIcon"},[t("svg",{attrs:{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame 427319607"}},[t("g",{attrs:{id:"Frame 427319606"}},[t("g",{attrs:{id:"Frame 427319605"}},[t("path",{attrs:{id:"Vector",d:"M32 64C49.6731 64 64 49.6731 64 32C64 14.3269 49.6731 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:e.buttonBackgroundColor}}),t("g",{attrs:{id:"Group"}},[t("path",{attrs:{id:"Vector_2",d:"M25.334 21.334V42.6673L42.6673 32.0006L25.334 21.334Z",fill:e.controlIconColor}}),t("path",{attrs:{id:"Vector_3",d:"M41.9679 33.1355L24.6345 22.4689L25.3333 21.3333H26.6667V42.6667H25.3333L24.6345 41.5311L41.9679 30.8645L42.6667 32L41.9679 33.1355ZM43.3655 30.8645C43.5457 30.9754 43.6913 31.121 43.8023 31.3012C43.8481 31.3758 43.8863 31.4541 43.9167 31.5362C43.9471 31.6182 43.9693 31.7025 43.9832 31.7889C43.9971 31.8754 44.0023 31.9624 43.9991 32.0498C43.9958 32.1373 43.984 32.2237 43.9637 32.3088C43.9435 32.394 43.9151 32.4764 43.8785 32.5559C43.8421 32.6355 43.7982 32.7108 43.7468 32.7817C43.6955 32.8526 43.6378 32.9178 43.5736 32.9774C43.5094 33.0369 43.44 33.0897 43.3655 33.1355L26.0321 43.8023C25.8179 43.9341 25.5849 44 25.3333 44C25.2458 44 25.1591 43.9915 25.0732 43.9744C24.9873 43.9573 24.904 43.932 24.8231 43.8985C24.7422 43.865 24.6654 43.8239 24.5926 43.7753C24.5198 43.7266 24.4524 43.6713 24.3905 43.6095C24.3286 43.5476 24.2733 43.4803 24.2247 43.4075C24.1761 43.3347 24.135 43.2578 24.1015 43.1769C24.068 43.096 24.0427 43.0127 24.0256 42.9268C24.0085 42.8409 24 42.7542 24 42.6667V21.3333C24 21.0817 24.0659 20.8488 24.1978 20.6345C24.2437 20.56 24.2964 20.4906 24.3559 20.4264C24.4155 20.3623 24.4807 20.3045 24.5516 20.2532C24.6226 20.2019 24.6978 20.1579 24.7774 20.1214C24.857 20.0849 24.9393 20.0565 25.0245 20.0363C25.1097 20.016 25.196 20.0042 25.2835 20.0009C25.371 19.9977 25.4579 20.003 25.5444 20.0168C25.6308 20.0307 25.7151 20.0528 25.7972 20.0833C25.8792 20.1137 25.9576 20.1519 26.0321 20.1978L43.3655 30.8645Z",fill:e.controlIconColor}}),t("path",{attrs:{id:"Vector_4",d:"M41.9679 33.1355L24.6345 22.4689L25.3333 21.3333H26.6667V42.6667H25.3333L24.6345 41.5311L41.9679 30.8645L42.6667 32L41.9679 33.1355ZM43.3655 30.8645C43.5457 30.9754 43.6913 31.121 43.8023 31.3012C43.8481 31.3758 43.8863 31.4541 43.9167 31.5362C43.9471 31.6182 43.9693 31.7025 43.9832 31.7889C43.9971 31.8754 44.0023 31.9624 43.9991 32.0498C43.9958 32.1373 43.984 32.2237 43.9637 32.3088C43.9435 32.394 43.9151 32.4764 43.8785 32.5559C43.8421 32.6355 43.7982 32.7108 43.7468 32.7817C43.6955 32.8526 43.6378 32.9178 43.5736 32.9774C43.5094 33.0369 43.44 33.0897 43.3655 33.1355L26.0321 43.8023C25.8179 43.9341 25.5849 44 25.3333 44C25.2458 44 25.1591 43.9915 25.0732 43.9744C24.9873 43.9573 24.904 43.932 24.8231 43.8985C24.7422 43.865 24.6654 43.8239 24.5926 43.7753C24.5198 43.7266 24.4524 43.6713 24.3905 43.6095C24.3286 43.5476 24.2733 43.4803 24.2247 43.4075C24.1761 43.3347 24.135 43.2578 24.1015 43.1769C24.068 43.096 24.0427 43.0127 24.0256 42.9268C24.0085 42.8409 24 42.7542 24 42.6667V21.3333C24 21.0817 24.0659 20.8488 24.1978 20.6345C24.2437 20.56 24.2964 20.4906 24.3559 20.4264C24.4155 20.3623 24.4807 20.3045 24.5516 20.2532C24.6226 20.2019 24.6978 20.1579 24.7774 20.1214C24.857 20.0849 24.9393 20.0565 25.0245 20.0363C25.1097 20.016 25.196 20.0042 25.2835 20.0009C25.371 19.9977 25.4579 20.003 25.5444 20.0168C25.6308 20.0307 25.7151 20.0528 25.7972 20.0833C25.8792 20.1137 25.9576 20.1519 26.0321 20.1978L43.3655 30.8645Z",fill:e.controlIconColor}})])])])])])])}),[],!1,null,"b11e12fe",null).exports,Ph={name:"PauseSveIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor},buttonBackgroundColor:function(){return this.item.skin0ColorObj.buttonBackgroundColor}}},Th=(0,ot.Z)(Ph,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"PauseSveIcon"},[t("svg",{attrs:{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame 427319605"}},[t("path",{attrs:{id:"Vector",d:"M32 64C49.6731 64 64 49.6731 64 32C64 14.3269 49.6731 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:e.buttonBackgroundColor}}),t("path",{attrs:{id:"Vector_2",d:"M25 22V42",stroke:e.controlIconColor,"stroke-width":"5","stroke-linecap":"round","stroke-linejoin":"round"}}),t("path",{attrs:{id:"Vector_3",d:"M39 22V42",stroke:e.controlIconColor,"stroke-width":"5","stroke-linecap":"round","stroke-linejoin":"round"}})])])])}),[],!1,null,"5423000f",null).exports,$h={name:"NextSvgIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor}}},kh=(0,ot.Z)($h,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"NextSvgIcon"},[t("svg",{attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame 427319604"}},[t("g",{attrs:{id:"Group"}},[t("path",{attrs:{id:"Vector",d:"M2.50387 4.87726C1.83721 4.48837 1 4.96925 1 5.74104V23.259C1 24.0308 1.83721 24.5116 2.50387 24.1227L17.5192 15.3638C18.1807 14.9779 18.1807 14.0221 17.5192 13.6362L2.50387 4.87726Z",fill:e.controlIconColor}})]),t("g",{attrs:{id:"Group_2"}},[t("path",{attrs:{id:"Vector_2",d:"M26 4.4375C26 3.64359 25.5523 3 25 3C24.4477 3 24 3.64359 24 4.4375H26ZM24 24.5625C24 25.3564 24.4477 26 25 26C25.5523 26 26 25.3564 26 24.5625H24ZM24 4.4375V24.5625H26V4.4375H24Z",fill:e.controlIconColor}})])])])])}),[],!1,null,"e312f424",null).exports,Lh={name:"MuteSvgIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor}}},Mh=(0,ot.Z)(Lh,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"MuteSvgIcon"},[t("svg",{attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame 427319609"}},[t("g",{attrs:{id:"Group"}},[t("g",{attrs:{id:"Group_2"}},[t("path",{attrs:{id:"Vector","fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 9.48436V18.4656H6.98749L12.7648 24.2428C13.3947 24.8728 14.4719 24.4266 14.4719 23.5357V4.41421C14.4719 3.52331 13.3947 3.07714 12.7647 3.70711L6.98749 9.48436H1Z",fill:e.controlIconColor}})])]),t("g",{attrs:{id:"Frame 427319615"}},[t("path",{attrs:{id:"Vector_2",d:"M22.8333 11L17 16.8333",stroke:e.controlIconColor,"stroke-width":"1.5","stroke-linecap":"square","stroke-linejoin":"round"}}),t("path",{attrs:{id:"Vector_3",d:"M17 11L22.8333 16.8333",stroke:e.controlIconColor,"stroke-width":"1.5","stroke-linecap":"square","stroke-linejoin":"round"}})])])])])}),[],!1,null,"2aa5b9e8",null).exports,Eh={name:"UnMuteSvgIcon",components:{},data(){return{}},mounted(){},methods:{},props:{item:{type:Object,required:!0}},computed:{controlIconColor:function(){return this.item.skin0ColorObj.controlIconColor}}},Ah={name:"RectangleSkin",components:{ReplaySvgIcon:xh,PrevSvgIcon:bh,PlaySvgIcon:Sh,PauseSveIcon:Th,NextSvgIcon:kh,MuteSvgIcon:Mh,UnMuteSvgIcon:(0,ot.Z)(Eh,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"UnMuteSvgIcon"},[t("svg",{attrs:{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{id:"Frame 427319608"}},[t("g",{attrs:{id:"Group"}},[t("g",{attrs:{id:"Group_2"}},[t("path",{attrs:{id:"Vector","fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 9.48436V18.4656H6.98749L12.7648 24.2428C13.3947 24.8728 14.4719 24.4266 14.4719 23.5357V4.41421C14.4719 3.52331 13.3947 3.07714 12.7647 3.70711L6.98749 9.48436H1Z",fill:e.controlIconColor}})])]),t("path",{attrs:{id:"Vector_2",d:"M18 10C18.3116 10.2473 18.5941 10.5243 18.8421 10.8261C19.5694 11.7113 20 12.8099 20 14C20 15.1798 19.5768 16.2696 18.8609 17.1508C18.6084 17.4616 18.3196 17.7464 18 18",stroke:e.controlIconColor,"stroke-width":"1.5","stroke-linecap":"square","stroke-linejoin":"round"}}),t("path",{attrs:{id:"Vector_3",d:"M19 24C23.1923 21.9592 26 18.2229 26 13.9518C26 9.74709 23.2788 6.06068 19.1944 4",stroke:e.controlIconColor,"stroke-width":"1.5","stroke-linecap":"square"}})])])])}),[],!1,null,"b3298df6",null).exports,MusicQrcode:fh.default},props:{item:{type:Object,required:!0},pageIndex:{type:Number,required:!0,desc:"pluginMusic元素所在的页面下标"},curMusicCurTime:{type:Number,required:!0,desc:"当前音频播放到第几秒"},curMusicTotalTime:{type:Number,required:!0,desc:"当前音频的总时长"},progress:{type:Number,required:!0,desc:"音频播放进度"},curMusicSrc:{type:String,required:!0,desc:"需要生成二维码的音频链接"}},data(){return{isShowMiddleBar:!1,isShowSmallBar:!1,isShowVolumeProgress:!1,volumeSliderIsBlock:!1}},mounted(){this.setContainerSize()},computed:{isFlipPro:function(){return this.$store.getters.isFlipPro},musicSkin:function(){return this.item.musicSkin},audioIsPlaying:function(){return this.item.audioIsPlaying},gradientColor:function(){return this.isFlipPro?"#44b986":"#4697cc"},volumeBackgroundStyle:function(){return{"background-image":`linear-gradient(to right, ${this.gradientColor} ${this.volume}%, #f0f0f0 0%, #f0f0f0 100%`}},volumeBeforeMute:function(){return this.item.volumeBeforeMute},musicList:function(){return this.item.musicList},currentTime:function(){if(0===this.musicList.length)return"00:00";const e=this.progress/100*this.curMusicTotalTime;return 100===this.progress?this.formatTime(this.curMusicCurTime):this.formatTime(e)},progressRunwayColor:function(){return this.item.skin0ColorObj.progressRunwayColor},progressStyle:function(){return{background:`linear-gradient(to right, ${this.progressRunwayColor} ${this.progress}%, #f0f0f0 0%, #f0f0f0 100%`}},audioDuration:function(){if(0===this.musicList.length)return"00:00";let e=this.formatTime(this.curMusicTotalTime);return e||"00:00"},skinId:function(){return void 0===this.item.skinId?1:this.item.skinId},createTime:function(){return this.item.createTime},update:function(){return this.item.update},style:function(){return this.item.style},volume:{get:function(){return this.item.volume},set:function(e){this.item.volume=e}},isMute:{get:function(){return this.item.isMute},set:function(e){this.item.isMute=e}}},methods:{replayAudio:function(){this.$emit("replayAudio")},switchAudio:function(e){this.$emit("switchAudio",e)},play:function(){this.$emit("play",{options:{noDelay:!0}})},pause:function(){this.$emit("pause")},muteOrRecover:function(){this.$emit("muteOrRecover")},isShowVolumeSetting:function(){return!0===this.isShowVolumeProgress?this.isShowVolumeProgress=!1:(this.setVolumeSliderPosition(),this.isShowVolumeProgress=!0)},changeVolume:function(e){(0,Gd.$h)({type:"setVolume",audioItem:this.item,pageIndex:this.pageIndex,option:{volume:Number.parseFloat(e.target.value)/100}}),this.volumeBeforeMute=Number.parseFloat(e.target.value/100);let t=(0,Ht.I_)(this.item,this.pageIndex);this.isMute=0===t},formatTime:function(e){let t="00:00";if(e>-1){let i=Math.floor(e/60),s=e%60;t=i<10?"0"+i+":":i+":",s<10&&(t+="0"),t+=s.toFixed(2)}return t&&(t=t.substring(0,t.length-3)),t},progressInput:function(e){this.$emit("progressInput",e)},progressMouseDown:function(){this.$emit("progressMouseDown")},progressMouseMove:function(e){this.$emit("progressMouseMove",e)},progressMouseUp:function(e){this.$emit("progressMouseUp",e)},setVolumeSliderPosition:function(){const e=document.querySelector(".app"),t=document.querySelector(`#volumeSlider${this.pageIndex}${this.item.id}`);this.volumeSliderIsBlock=!1,t&&e&&window.setTimeout((()=>{const i=t.getBoundingClientRect().top,s=e.getBoundingClientRect().top;this.volumeSliderIsBlock=i=200?(this.isShowMiddleBar=!0,this.isShowSmallBar=!1):t<200?(this.isShowMiddleBar=!1,this.isShowSmallBar=!0):(this.isShowMiddleBar=!1,this.isShowSmallBar=!1)}}},_h=(0,ot.Z)(Ah,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"RectangleSkin audioControler skinId2",class:{single:1===e.musicSkin,multiple:1!==e.musicSkin,"middle-bar":e.isShowMiddleBar,"small-bar":e.isShowSmallBar}},[3!==e.musicSkin?t("div",{staticClass:"audioControler-inner"},[t("div",{staticClass:"control-list"},[t("div",{staticClass:"replay-button",on:{click:e.replayAudio}},[t("ReplaySvgIcon",{attrs:{item:e.item}})],1),1!==e.musicSkin?t("div",{staticClass:"prev-button",on:{click:function(t){return e.switchAudio(-1)}}},[t("PrevSvgIcon",{attrs:{item:e.item}})],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.audioIsPlaying,expression:"!audioIsPlaying"}],staticClass:"play-button",on:{click:e.play}},[t("PlaySvgIcon",{attrs:{item:e.item}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.audioIsPlaying,expression:"audioIsPlaying"}],staticClass:"pause-button",on:{click:e.pause}},[t("PauseSveIcon",{attrs:{item:e.item}})],1),1!==e.musicSkin?t("div",{staticClass:"next-button",on:{click:function(t){return e.switchAudio(1)}}},[t("NextSvgIcon",{attrs:{item:e.item}})],1):e._e(),t("div",{staticClass:"volume-setting",on:{mouseenter:e.isShowVolumeSetting,mouseleave:e.isShowVolumeSetting}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isMute,expression:"!isMute"}],staticClass:"mute-button",on:{click:e.muteOrRecover}},[t("UnMuteSvgIcon",{attrs:{item:e.item}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isMute,expression:"isMute"}],staticClass:"unmute-button",on:{click:e.muteOrRecover}},[t("MuteSvgIcon",{attrs:{item:e.item}})],1),t("transition",{attrs:{name:"volumeSlider"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowVolumeProgress,expression:"isShowVolumeProgress"}],staticClass:"slider-outer flip-action",class:{"slider-outer-bottom":e.volumeSliderIsBlock},attrs:{id:`volumeSlider${e.pageIndex}${e.item.id}`},on:{pointerdown:function(e){e.stopPropagation()}}},[t("div",{staticClass:"slider"},[t("span",[e._v(e._s(e.volume))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.volume,expression:"volume"}],class:{"flip-slider-thumb":e.isFlipPro,"other-slider-thumb":!e.isFlipPro},style:e.volumeBackgroundStyle,attrs:{type:"range"},domProps:{value:e.volume},on:{input:e.changeVolume,touchmove:function(t){return t.stopPropagation(),e.changeVolume.apply(null,arguments)},__r:function(t){e.volume=t.target.value}}})])])])],1)]),t("div",{staticClass:"progress-bar flip-action",on:{pointerdown:function(e){e.stopPropagation()}}},[t("span",[e._v(e._s(e.currentTime))]),t("input",{class:{"flip-slider-thumb":e.isFlipPro,"other-slider-thumb":!e.isFlipPro},style:e.progressStyle,attrs:{type:"range"},domProps:{value:e.progress},on:{input:e.progressInput,mousedown:function(t){return t.stopPropagation(),e.progressMouseDown.apply(null,arguments)},touchstart:function(t){return t.stopPropagation(),e.progressMouseDown.apply(null,arguments)},mousemove:function(t){return t.stopPropagation(),e.progressMouseMove.apply(null,arguments)},touchmove:function(t){return t.stopPropagation(),e.progressMouseMove.apply(null,arguments)},mouseup:function(t){return t.stopPropagation(),e.progressMouseUp.apply(null,arguments)},touchend:function(t){return t.stopPropagation(),e.progressMouseUp.apply(null,arguments)}}}),t("span",[e._v(e._s(e.audioDuration))])])]):e._e(),3===e.musicSkin?t("MusicQrcode",{attrs:{item:e.item,curMusicSrc:e.curMusicSrc}}):e._e()],1)}),[],!1,null,"71e17aed",null),Wh=_h.exports;const Fh=({item:e,event:t,gtagLabel:i,pageIndex:s})=>{window?.gtag&&window.bookConfig?.googleAnalyticsID&&"number"==typeof s&&window.gtag("event",t,{event_category:e.type,event_label:`Page${s} ${i}`})},Oh=(e={})=>{if(!e||"pluginMusic"!==e?.type)return;const t=T.Z.state.pluginMusicPlayList;if(!Array.isArray(t))return;const i=t.findIndex((t=>t.id===e.id));-1!==i&&(t.splice(i,1),window?.mulEditorInfo&&(window.mulEditorInfo.isPlaying=Kd()))},Bh=i(855);let Zh={};Bh.keys().forEach((e=>{const t=Bh(e),i=e.replace(/^\.\//,"").replace(/\.\w+$/,"");Zh[i]=t.default||t}));var Hh={name:"ItemForPluginMusic",data(){return{musicPlayIndex:0,audioProgress:0,isDraging:!1,curMusicTotalTime:0,curMusicCurTime:0,musicListIsEnd:!1}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],inject:["getCurrentPage"],mounted:function(){this.getCurAudioCurTime(),this.getCurrentAudioDuration(),this.initCreateAudioElement(this.item,this.pageIndex),this.setAudioBindEvent(),this.currentPageAudioPlay()},computed:{isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())},isYZPro:function(){return this.$store.getters.isYZPro},isFlipPro:function(){return this.$store.getters.isFlipPro},isH5Pro:function(){return this.$store.getters.isH5Pro},isAutoPlay:function(){return"EVT_PageViewed"===this.item.moviePlayTriggerEvt},playPercent:function(){let e=293.111;if(0===this.curMusicTotalTime)e=293.111;else{e=293.111*(1-this.curMusicCurTime/this.curMusicTotalTime)}return e},musicList:function(){return this.item.musicList},currentMusic:function(){return this.musicList[this.musicPlayIndex]?this.musicList[this.musicPlayIndex].url:""},skinId:function(){return void 0===this.item.skinId?1:this.item.skinId},returnThisPageToReplay:function(){return this.item.returnThisPageToReplay},pages:function(){return this.getCurrentPage()},isPlayAcrossPage:function(){return this.item.isPlayAcrossPage},playFromPage:function(){return this.item.playFromPage},playFromSeconds:function(){return this.item.playFromSeconds},isPauseOtherMusicWhenPlay:function(){return this.item.isPauseOtherMusicWhenPlay},isPauseBgSoundWhenPlay:function(){return this.isFlipPro?this.item.isPauseBgSoundWhenPlay:void 0!==this.isPauseOtherMusicWhenPlay?this.isPauseOtherMusicWhenPlay:this.item.isPauseBgSoundWhenPlay},musicSkin:function(){return this.item.musicSkin},qrcodeStyle:function(){return this.isYZPro&&3===this.musicSkin&&this.currentMusic?{padding:`${this.item.qrcodeGap}px`,"background-color":this.item.qrcodeBackground}:{}},playInSequence:function(){return this.item.playInSequence},volumeBeforeMute:{get:function(){return this.item.volumeBeforeMute},set:function(e){this.item.volumeBeforeMute=e}},audioIsPlaying:{get:function(){return this.item.audioIsPlaying},set:function(e){this.item.audioIsPlaying=e}},isMute:{get:function(){return this.item.isMute},set:function(e){this.item.isMute=e}},volume:{get:function(){return this.item.volume},set:function(e){this.item.volume=e}},isPlayBgSound:{get(){return this.$store.state.isPlayBgSound},set(e){this.$store.state.isPlayBgSound=e}},curComponent(){switch(this.skinId){case 0:return"RectangleSkin";case 1:return"CircleSkin";default:return`NewSkin_${this.skinId}`}}},methods:{isCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.pageIndex+1===e||t.indexOf(this.pageIndex+1)>-1},play:function(e={}){this.musicList.length&&(this.playFromSeconds>0&&Object.assign(e,{delay:this.playFromSeconds}),(0,Gd.$h)({type:"play",audioItem:this.item,pageIndex:this.pageIndex,option:e}))},pause:function(){this.musicList.length&&(0,Gd.$h)({type:"pause",audioItem:this.item,pageIndex:this.pageIndex})},switchAudio:function(e){this.audioProgress=0,this.musicPlayIndex+=e,this.musicPlayIndex<0&&(this.musicPlayIndex=this.musicList.length-1),this.musicPlayIndex>=this.musicList.length-1&&(this.musicPlayIndex===this.musicList.length-1&&2===this.musicSkin&&0===this.skinId&&(this.musicListIsEnd=!0),this.musicPlayIndex>this.musicList.length-1&&(this.musicPlayIndex=0)),this.musicList.length&&window.setTimeout((()=>{(0,Gd.$h)({type:"setSrc",audioItem:this.item,pageIndex:this.pageIndex,option:{src:this.currentMusic}}),this.play()}),100)},replayAudio:function(){(0,Gd.$h)({type:"replay",audioItem:this.item,pageIndex:this.pageIndex})},muteOrRecover:function(){if(this.isMute){const e=0===this.volumeBeforeMute?50:this.volumeBeforeMute;(0,Gd.$h)({type:"unMute",audioItem:this.item,pageIndex:this.pageIndex,option:{originVolume:e/100}}),this.volume=e,this.isMute=!1}else this.volumeBeforeMute=this.volume,(0,Gd.$h)({type:"mute",audioItem:this.item,pageIndex:this.pageIndex}),this.volume=0,this.isMute=!0},progressInput:function(e){this.audioProgress=e.target.value;const t=e.target.value/100*this.curMusicTotalTime;(0,Gd.$h)({type:"timeUpdate",audioItem:this.item,pageIndex:this.pageIndex,option:{currentTime:Math.round(t)}})},progressMouseDown:function(e){this.isDraging=!0,this.pause()},progressMouseMove:function(e){this.isDraging&&(this.audioProgress=e.target.value)},progressMouseUp:function(e){this.isDraging=!1,this.play()},initCreateAudioElement:function(e,t){(()=>{let e=document.querySelector("body");if(!document.querySelector(".audio-container")&&e){const t=document.createElement("div");t.setAttribute("class","audio-container"),t.setAttribute("style","display: none;"),e.append(t)}})(),((e,t)=>{let i=document.querySelector(".audio-container"),s=document.querySelector(`#audio${t}${e.id}`),n=document.querySelector(`#audio${t}${e.id}acrossPage`);if(!i||s||n)return;const o=document.createElement("audio"),r=((e,t)=>{let i;return i=void 0!==e.isPlayAcrossPage&&!0===e.isPlayAcrossPage?`audio${t}${e.id}acrossPage`:`audio${t}${e.id}`,i})(e,t);o.setAttribute("id",r),o.setAttribute("preload","auto"),e.musicList.length>0&&o.setAttribute("src",e.musicList[0].url),i.append(o)})(e,t)},setAudioBindEvent:function(){window.setTimeout((()=>{const e=(0,Ht.Lg)(this.item,this.pageIndex);e&&this.audioEvent(e)}),30)},audioEvent:function(e){e.addEventListener("canplay",(async t=>{e.paused&&(this.audioIsPlaying=!1);const i=t.target;for(;e.duration===1/0;)await new Promise((e=>window.setTimeout(e,200))),i.currentTime=1e7*Math.random();this.curMusicTotalTime=e.duration})),e.addEventListener("loadstart",(()=>{this.audioProgress=0})),e.addEventListener("loadedmetadata",(()=>{this.curMusicTotalTime=e.duration})),e.addEventListener("play",(()=>{this.audioIsPlaying=!0,this.isPlayBgSound=!0,(this.isH5Pro||this.isFlipPro)&&Fh({item:this.item,event:this.isH5Pro?"fliphtml5_media_play":"flip_pdf_media_play",gtagLabel:"audio_play",pageIndex:this.pageIndex+1}),void 0!==this.isPauseOtherMusicWhenPlay&&this.isPauseOtherMusicWhenPlay&&this.isPauseBgSoundWhenPlay&&(this.pauseOtherPluginMusic(e),window.bgSound&&window.bgSound.pause()),Jd(!0),this.item.isPauseOtherVideoWhenPlay&&(0,pi.bv)()})),e.addEventListener("timeupdate",(()=>{if(this.isCurrentPage()||this.isPlayAcrossPage||this.pause(),this.visibilitychangeEvent(e),3===this.musicSkin&&this.pause(),this.isPauseOtherMusicWhenPlay&&this.isPauseBgSoundWhenPlay&&window.bgSound&&window.isPlaying&&window.bgSound.pause(),Number.isNaN(e.duration)?this.curMusicTotalTime=0:this.curMusicTotalTime=e.duration,this.audioIsPlaying=!e.paused,this.curMusicCurTime=e.currentTime,1!==this.skinId&&!this.isDraging)if(0===this.curMusicTotalTime)this.audioProgress=0;else{const e=this.curMusicCurTime/this.curMusicTotalTime*100;this.audioProgress=e}(0,Gd.xJ)(e,this.item),Jd(!0),((e={})=>{if(!e||"pluginMusic"!==e?.type)return;const t=T.Z.state.pluginMusicPlayList;if(!Array.isArray(t))return;-1===t.findIndex((t=>t.id===e.id))&&(t.push(e),window?.mulEditorInfo&&(window.mulEditorInfo.isPlaying=Kd()))})(this.item)})),e.addEventListener("pause",(()=>{(this.isH5Pro||this.isFlipPro)&&Fh({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:"audio_pause",pageIndex:this.pageIndex+1});const e=(0,Ht.Vm)();window.bgSound&&e&&!this.isPlayBgSound&&window.bgSound.play(),this.audioIsPlaying=!1,Jd(!1),Oh(this.item)})),e.addEventListener("ended",(()=>{if(1===this.musicSkin&&(o.Q.$emit(`musicEnded${this.pageIndex}`,{e:"ended",eventType:"ended",pageIndex:this.pageIndex}),this.isAutoPlay&&this.playInSequence&&window.BookInfo&&o.Q.$emit("MUSIC_ENDED_EVENT",{pageIndex:this.pageIndex,currentPages:window.BookInfo.getCurrentPages()}),Jd(!1),Oh(this.item),void 0!==window?.handleMultimediaSound&&window.handleMultimediaSound("stop")),2===this.musicSkin){if(0===this.skinId&&1===this.musicList.length&&(this.musicListIsEnd=!0,Jd(!1),Oh(this.item),void 0!==window?.handleMultimediaSound&&window.handleMultimediaSound("stop")),this.musicListIsEnd&&(o.Q.$emit(`musicEnded${this.pageIndex}`,{e:"ended",eventType:"ended",pageIndex:this.pageIndex}),this.isAutoPlay&&this.playInSequence&&o.Q.$emit("MUSIC_ENDED_EVENT",{pageIndex:this.pageIndex,currentPages:window.BookInfo.getCurrentPages()}),(this.isH5Pro||this.isFlipPro)&&Fh({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:"audio_pause",pageIndex:this.pageIndex+1}),Jd(!1),Oh(this.item),void 0!==window?.handleMultimediaSound&&window.handleMultimediaSound("stop")),0===this.skinId&&this.musicListIsEnd)return this.resetAudioStatus(e);this.switchAudio(1)}this.audioProgress=0})),this.eventBusBindEvent(e)},eventBusBindEvent:function(e){o.Q.$on("ENTER_PAGE",(({pageIndex:t})=>{if((this.isYZPro||this.isH5Pro)&&this.playInSequence&&!this.isPlayAcrossPage)this.returnThisPageToReplay&&this.isCurrentPage()&&this.resetAudioStatus(e);else if(this.returnThisPageToReplay&&this.isCurrentPage()&&this.resetAudioStatus(e),window.setTimeout((()=>{this.playAcrossPageAudio()}),100),this.isCurrentPage()&&this.isAutoPlay){const e=(0,Ht.iE)(this.pages,this.pageIndex);e&&this.play({pluginMusicItem:e})}}))},getCurrentAudioDuration:function(){if(!this.isPlayAcrossPage&&!this.isFlipPro)return;const e=(0,Ht.Lg)(this.item,this.pageIndex);e&&e.duration>0&&(this.curMusicTotalTime=e.duration)},pauseOtherPluginMusic:function(e){const t=(0,Ht.LY)();0!==t.length&&(t.forEach((t=>{t!==e&&t.pause()})),(0,Zt.tr)({isAll:!0}))},currentPageAudioPlay:function(){this.playAcrossPageAudio(),this.isCurrentPage()&&this.isAutoPlay&&((this.isYZPro||this.isH5Pro)&&this.playInSequence||this.play())},visibilitychangeEvent:function(e){if(!this.isYZPro||!this.isPhone||e.paused)return;"hidden"===document.visibilityState&&this.pause()},resetAudioStatus:function(e){e.currentTime=0,this.musicPlayIndex=0,this.musicListIsEnd=!1,(0,Gd.$h)({type:"setSrc",audioItem:this.item,pageIndex:this.pageIndex,option:{src:this.currentMusic}})},getCurAudioCurTime:async function(){await this.$nextTick();const e=(0,Ht.Lg)(this.item,this.pageIndex);e&&(this.curMusicCurTime=e.currentTime)},playAcrossPageAudio:function(){if(!this.isAutoPlay||!this.isPlayAcrossPage)return;if(!(this.isYZPro||this.isH5Pro))return;const e=(0,Ht.En)(this.item),t=(0,Ht.wJ)();e&&!t&&this.play()}},components:{...Zh,ItemLayout:ki,CircleSkin:yh,RectangleSkin:Wh}},Nh=(0,ot.Z)(Hh,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForPluginMusic",style:[e.qrcodeStyle],attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[1===e.skinId?t("CircleSkin",{attrs:{item:e.item,playPercent:e.playPercent,curMusicSrc:e.currentMusic},on:{play:e.play,pause:e.pause,switchAudio:e.switchAudio}}):e._e(),0===e.skinId?t("RectangleSkin",{attrs:{item:e.item,pageIndex:e.pageIndex,curMusicSrc:e.currentMusic,curMusicCurTime:e.curMusicCurTime,curMusicTotalTime:e.curMusicTotalTime,progress:e.audioProgress},on:{replayAudio:e.replayAudio,play:e.play,pause:e.pause,switchAudio:e.switchAudio,muteOrRecover:e.muteOrRecover,progressInput:e.progressInput,progressMouseDown:e.progressMouseDown,progressMouseMove:e.progressMouseMove,progressMouseUp:e.progressMouseUp}}):e._e(),0!==e.skinId&&1!==e.skinId?t(e.curComponent,{tag:"component",attrs:{item:e.item,pageIndex:e.pageIndex,curMusicTotalTime:e.curMusicTotalTime,curMusicCurTime:e.curMusicCurTime,currentMusicSrc:e.currentMusic,progress:e.audioProgress,playPercent:e.playPercent},on:{replay:e.replayAudio,play:e.play,pause:e.pause,switchAudio:e.switchAudio,muteOrRecover:e.muteOrRecover,progressMouseDown:e.progressMouseDown,progressMouseMove:e.progressMouseMove,progressMouseUp:e.progressMouseUp,progressInput:e.progressInput}}):e._e()],1)}),[],!1,null,"23b013ca",null).exports;const zh={resolution:500,iframes:[],interval:null,Iframe:function(){this.element=arguments[0],this.cb=arguments[1],this.hasTracked=!1},track:function(e,t){this.iframes.push(new this.Iframe(e,t)),this.interval||(this.interval=window.setInterval((()=>{this.checkClick()}),this.resolution))},checkClick:function(){if(document.activeElement){let e=document.activeElement;for(let t in this.iframes)e===this.iframes[t].element?0==this.iframes[t].hasTracked&&(this.iframes[t].cb.apply(window,[]),this.iframes[t].hasTracked=!0):this.iframes[t].hasTracked=!1}}};var Rh=i(7304),Vh=i.n(Rh),Dh={name:"ItemForPluginVideo",data(){return{isShowHtmlIframeCover:!0,videoQRCode:"",videoBase64Src:"",pcGeneralCode:"",getYouTubeIdFromUrl:Ft}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted:async function(){if(3===this.playerType&&await this.createVideoQRCode(),this.bindVideoEvent(),this.hasVideo&&!this.isPhone){if(!this.$refs.pluginVideo)return;this.bindVideoEvent()}},updated:function(){},computed:{isH5Pro:function(){return this.$store.getters.isH5Pro},isYZPro:function(){return this.$store.getters.isYZPro},isCurrentPage:function(){return window.BookInfo&&(this.pageIndex+1===window.BookInfo.getCurrentPageIndex()||window.BookInfo.getCurrentPages().indexOf(this.pageIndex+1)>-1)},getPhoneVideoThumb:function(){return this.videothumbUrl?{background:`url(${this.videothumbUrl}) center center no-repeat`,"background-size":"cover"}:this.defaultPosterUrl&&this.isYZPro?{background:`url(${this.defaultPosterUrl}) center center no-repeat`,"background-size":"cover"}:""},isPhone:function(){return window.isPhone&&window.isPhone()||window.isPad&&window.isPad()},getPlayerClass:function(){return this.item.generalCode.indexOf("youku")>-1?"youku":this.item.generalCode.indexOf("qq")>-1?"vQQ":this.item.generalCode.indexOf("bilibili")>-1?"bilibili":this.item.generalCode.indexOf("youtube")>-1?"youtube":this.item.generalCode.indexOf("vimeo")>-1?"vimeo":"movie"},getOuterPlayStyle:function(){var e=Math.min(48,.36*this.item.style.width.replace("px","")),t=Math.min(48,.36*this.item.style.height.replace("px","")),i=Math.min(e,t);return{width:i+"px",height:i+"px"}},render2:function(){return this.render},videoId:function(){return`video${this.item.id}`},isAutoPlay:function(){return"EVT_PageViewed"===this.item.moviePlayTriggerEvt},videoInfo:function(){return this.item.videoInfo},videothumbUrl:function(){return""!==this.item.thumbUrlFileName?this.item.thumbUrl:""},hasVideo:function(){return 1===this.item.pluginVideoType&&""!==this.item.videoLink&&this.item.videoLink.search(/mp4|ogg|webm/)>-1||2===this.item.pluginVideoType&&""!==this.videoInfo.url},getVideoSrc:function(){return 2===this.item.pluginVideoType?this.videoInfo.url:this.item.videoLink},isHtmlIframe:function(){return 0===this.item.pluginVideoType&&""!==this.item.generalCode&&this.item.generalCode.search(/^-1},getGeneralCode:function(){let e=this.item.generalCode;return e.search(/^"),e):e.search(/^http[s]*|^\/\//)>-1?``:void 0},isYoutube:function(){return 3===this.item.pluginVideoType&&""!==this.realYouTubeId.trim()},isVimeo:function(){return 4===this.item.pluginVideoType&&""!==this.realVimeoId.trim()},outerVideoHtml:function(){let e="";if(this.isYoutube){const t=this.isAutoPlay?"&autoplay=1":"",i=this.mutePlay?"&mute=1":"",s=this.isLoop?`&loop=1&playlist=${this.realYouTubeId}`:"";let n="";n=`https://www.youtube.com/embed/${this.realYouTubeId}?enablejsapi=1&rel=0${t}${s}${i}`,e=`\n \n `}if(this.isVimeo){const t=this.isAutoPlay?"?autoplay=1":"";let i="";i=`https://player.vimeo.com/video/${this.realVimeoId}${t}${this.vimeoIsLoop}${this.vimeoIsMute}`,e=`\n \n `}return e},outerAutoPlayVideoHtml:function(){let e="";if(this.isYoutube){const t=this.isLoop?`&loop=1&playlist=${this.realYouTubeId}`:"";let i="";i=`https://www.youtube.com/embed/${this.realYouTubeId}?enablejsapi=1&rel=0&autoplay=1&mute=1${t}`,e=`\n \n `}if(this.isVimeo){let t="";t=`https://player.vimeo.com/video/${this.realVimeoId}?autoplay=1&muted=1${this.vimeoIsLoop}`,e=`\n \n `}return e},isShowPopVideo:{get:function(){return this.$store.state.isShowPopVideo},set:function(e){this.$store.state.isShowPopVideo=e}},isLoop:function(){return this.item.isLoop},mutePlay:function(){return this.item.mutePlay},vimeoIsLoop:function(){let e="";return this.isLoop&&(e=this.isAutoPlay?"&loop=1&autopause=0":"?loop=1&autopause=0"),e},vimeoIsMute(){let e="";return this.mutePlay&&(e=this.isAutoPlay||this.isLoop?"&muted=1":"?muted=1"),e},pluginVideoType:function(){return this.item.pluginVideoType},youTubeId:function(){return this.item.youTubeId},realYouTubeId:function(){return this.getYouTubeIdFromUrl(this.youTubeId)},vimeoId:function(){return this.item.vimeoId},realVimeoId:function(){return this.getVimeoIdFromUrl(this.vimeoId)},playerType:function(){return void 0===this.item.playerType?2:this.item.playerType},isVideoQRCodeImg:function(){return this.item.isVideoQRCodeImg},qrcodeForeground:function(){return this.item.qrcodeForeground},qrcodeBackground:function(){return this.item.qrcodeBackground},qrcodeStyle:function(){return this.isYZPro&&3===this.playerType&&this.hasVideo?{padding:`${this.item.qrcodeGap}px`,"background-color":this.item.qrcodeBackground}:{}},defaultPosterUrl:function(){return this.item.defaultPosterUrl&&this.item.defaultPosterFilename?this.item.defaultPosterUrl:""},isShowPlayIcon:function(){return!!this.videothumbUrl||!(!this.isYZPro||!this.defaultPosterUrl)},isShowDefaultPoster:function(){return!this.videothumbUrl&&(!this.isYZPro||!this.defaultPosterUrl)},isPlayBgSound:{get(){return this.$store.state.isPlayBgSound},set(e){this.$store.state.isPlayBgSound=e}},isFlipPro:function(){return this.$store.getters.isFlipPro},showMaskImgDom:function(){return this.item.isShowMaskImage&&""!==this.maskImageFile.url},maskImageFile:function(){return this.item.animationFiles.maskImageFile},videoStyle(){if(!this.showMaskImgDom)return{};let e=this.maskImageFile.itemX*parseFloat(this.item.style.width)/100,t=this.maskImageFile.itemY*parseFloat(this.item.style.height)/100;return{width:`${this.maskImageFile.itemW}%`,height:`${this.maskImageFile.itemH}%`,left:`${e}px`,top:`${t}px`}}},methods:{pluginVideoClick:function(e){e.preventDefault()},popOuterVideo:function(e){this.isPlayBgSound=!0,this.item.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,window.bgSound&&window.bgSound.pause(),(0,pi.hb)());const t={isLoop:this.isLoop,item:this.item,mutePlay:this.mutePlay,youTubeId:this.realYouTubeId,vimeoId:this.realVimeoId,pluginVideoPageIndex:this.pageIndex};let i="";switch(e){case"video":this.isShowPopVideo=!0,i=this.getVideoSrc,window.vuePopDom&&window.vuePopDom.popWindow(this.getVideoSrc,e,t);break;case"vimeo":i=this.realVimeoId,window.vuePopDom&&window.vuePopDom.popWindow(this.outerAutoPlayVideoHtml,e,t);break;case"youtube":i=this.youtubeId,window.vuePopDom&&window.vuePopDom.popWindow(this.outerAutoPlayVideoHtml,e,t);break;case"outerVideo":i=this.getGeneralCode,window.vuePopDom&&window.vuePopDom.popWindow(this.getGeneralCode,e,t)}window.gtag&&window.bookConfig.googleAnalyticsID&&window.gtag("event","PopupVideo-play",{event_category:e,event_label:"Page"+window.BookInfo.getCurrentPages()[0]+" "+i})},handleCover:function(){this.$nextTick((()=>{const e=this.$refs.htmlIframe;if(void 0===e)return;const t=e.querySelector("iframe");t&&zh.track(t,(()=>{this.isShowHtmlIframeCover=!1}))}))},createVideoQRCode:async function(){if(!this.videoInfo.url&&!this.item.videoLink)return;const e=Number.parseInt(this.item.pluginVideoType);let t="";if(1===e&&(t=this.item.videoLink),2===e&&(t=this.videoInfo.url),!t)return;const i=this.handleQRCodeUrl(t);let s=60,n=60;this.isYZPro&&this.isVideoQRCodeImg&&(s=Number.parseFloat(this.item.style.width),n=Number.parseFloat(this.item.style.height));let o=new(Vh())({content:i,padding:0,width:s,height:n,ecl:"M",xmlDeclaration:!1,color:this.qrcodeForeground,background:this.qrcodeBackground}).svg();this.videoBase64Src=await(0,S.y)(o,s,n),o=o.replace(/<\?xml.*?>/,""),o=o.replace(//,"").replace(/<\/svg>/,""),this.videoQRCode=o},handleQRCodeUrl:function(e){const t=e.indexOf("../");let i=e;if(t>-1){let e=window.location.href;e=e.substring(0,e.lastIndexOf("/",e.lastIndexOf("/")-1)+1),i=e+i.replace("../","")}return i},checkIsCurrentPage:function(){if(!window.BookInfo)return!1;const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();return this.pageIndex+1===e||t.indexOf(this.pageIndex+1)>-1},bindVideoEvent:function(){o.Q.$on("SLIDER_ENTER_PAGE",(()=>{this.checkIsCurrentPage()&&(this.isAutoPlay&&this.hasVideo&&!this.isPhone&&window.setTimeout((()=>{this.$refs.pluginVideo.play()}),500),this.isHtmlIframe&&(this.pcGeneralCode=this.getGeneralCode,this.handleCover()))}))},unbindVideoEvent:function(){o.Q.$off("SLIDER_ENTER_PAGE")},pluginVideoTimeupdate:function(e){document.body.contains(this.$refs.pluginVideo)||this.$refs.pluginVideo.pause(),this.checkIsCurrentPage()||e.target.pause()},pluginVideoPlay:function(e){const t=e.target;if(this.hasVideo&&!this.isPhone&&(this.checkIsCurrentPage()||t.pause(),this.isPlayBgSound=!0,this.item.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,(0,pi.hb)(),window.bgSound&&window.bgSound.pause()),this.item.isPauseOtherVideoWhenPlay&&(0,pi.bv)(t)),this.isH5Pro||this.isFlipPro){let e="local_video_play";1===this.pluginVideoType&&(e="link_video_play"),(0,pi.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_play":"flip_pdf_media_play",gtagLabel:`${e} ${this.getVideoSrc}`,pageIndex:this.pageIndex+1})}},pluginVideoPause:function(e){if(window.bgSound&&!this.isPlayBgSound&&window.bgSound.play(),this.isH5Pro||this.isFlipPro){let e="local_video_pause";1===this.pluginVideoType&&(e="link_video_pause"),(0,pi.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:`${e} ${this.getVideoSrc}`,pageIndex:this.pageIndex+1})}},pluginVideoEnded:function(e){if(this.isH5Pro||this.isFlipPro){let e="local_video_pause";1===this.pluginVideoType&&(e="link_video_pause"),(0,pi.Ny)({item:this.item,event:this.isH5Pro?"fliphtml5_media_pause":"flip_pdf_media_pause",gtagLabel:`${e} ${this.getVideoSrc}`,pageIndex:this.pageIndex+1})}},getVimeoIdFromUrl:function(e){const t=e.match(/https?:\/\/(?:www\.)?vimeo\.com\/(\d+)(?:[/?].*)?/);return t&&t[1]?t[1]:e}},components:{ItemLayout:ki,YoutubePlayerIframe:()=>Promise.resolve().then(i.bind(i,7162)),VimeoPlayerIframe:()=>Promise.resolve().then(i.bind(i,6397))},directives:{}},Gh=(0,ot.Z)(Dh,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForPluginVideo",style:[e.qrcodeStyle],attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[e.hasVideo?t("div",{staticClass:"flip-action videoBGI"},[3!==e.playerType?t("div",{staticClass:"origin-video"},[e.isPhone?e._e():t("video",{ref:"pluginVideo",staticClass:"video",style:e.videoStyle,attrs:{poster:e.videothumbUrl,id:e.videoId,src:e.getVideoSrc,loop:e.isLoop,autoplay:e.isAutoPlay,controls:"",width:"100%",controlsList:"nodownload",preload:"auto","webkit-playsinline":"true",playsinline:"true"},domProps:{muted:e.mutePlay},on:{click:function(t){return e.pluginVideoClick(t)},timeupdate:function(t){return e.pluginVideoTimeupdate(t)},play:e.pluginVideoPlay,pause:e.pluginVideoPause,ended:e.pluginVideoEnded}}),e.isPhone?t("div",{staticClass:"phone-video video-bg",class:{"other-video-cover":e.isShowDefaultPoster},style:[e.getPhoneVideoThumb],on:{click:function(t){return t.stopPropagation(),e.popOuterVideo("video")}}},[e.isShowPlayIcon?t("div",{staticClass:"other-video-play-icon"}):e._e()]):e._e()]):e._e(),3===e.playerType?t("div",{staticClass:"video-qrcode"},[e.isVideoQRCodeImg?t("img",{attrs:{src:e.videoBase64Src}}):t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 60 60",width:"100%",height:"100%",preserveAspectRatio:"none"}},[t("g",{domProps:{innerHTML:e._s(e.videoQRCode)}})])]):e._e()]):e.isHtmlIframe?t("div",{ref:"htmlIframe",staticClass:"htmlVideoCon"},[e.isPhone?e._e():t("div",{staticClass:"pc-video-style"},[e.isShowHtmlIframeCover&&""!==e.videothumbUrl?t("div",{staticClass:"video-cover",style:{"background-image":`url(${e.videothumbUrl})`}},[t("div",{staticClass:"htmlIframe-play-button"})]):e._e(),t("div",{staticClass:"htmlVideo",domProps:{innerHTML:e._s(e.pcGeneralCode)}})]),e.isPhone?t("div",{class:["phone-video","phoneHtmlVideo"],style:{"background-image":`url(${e.videothumbUrl})`},on:{click:function(t){return t.stopPropagation(),e.popOuterVideo("outerVideo")}}},[e.videothumbUrl?e._e():t("div",{staticClass:"other-video-cover"}),""!==e.videothumbUrl?t("div",{staticClass:"player-icon"}):e._e()]):e._e()]):e.isYoutube?t("div",{ref:"youtubeVideo",staticClass:"video-style"},[e.isPhone?e._e():t("div",{staticClass:"pc-video-style"},[t("YoutubePlayerIframe",{attrs:{item:e.item,realYouTubeId:e.realYouTubeId,pluginVideoPageIndex:e.pageIndex}})],1),e.isPhone?t("div",{staticClass:"youtube phone-video",style:{"background-image":`url(${e.videothumbUrl})`},on:{click:function(t){return t.stopPropagation(),e.popOuterVideo("youtube")}}},[""===e.videothumbUrl?t("div",{staticClass:"youtube-logo"}):e._e(),""!==e.videothumbUrl?t("div",{staticClass:"youtube-play",style:[e.getOuterPlayStyle]}):e._e()]):e._e()]):e.isVimeo?t("div",{ref:"vimeoVideo",staticClass:"video-style"},[e.isPhone?e._e():t("div",{staticClass:"pc-video-style"},[t("VimeoPlayerIframe",{attrs:{item:e.item,realVimeoId:e.realVimeoId,pluginVideoPageIndex:e.pageIndex}})],1),e.isPhone?t("div",{staticClass:"vimeo phone-video",style:{"background-image":`url(${e.videothumbUrl})`},on:{click:function(t){return t.stopPropagation(),e.popOuterVideo("vimeo")}}},[""===e.videothumbUrl?t("div",{staticClass:"vimeo-logo"}):e._e(),""!==e.videothumbUrl?t("div",{staticClass:"vimeo-play",style:[e.getOuterPlayStyle]}):e._e()]):e._e()]):t("div",{staticClass:"emptyPlugin"},[t("span",{staticClass:"icon icon-video"})])])}),[],!1,null,"2e78737a",null).exports,Yh={name:"ItemForTable",data(){return{value:"",selectColIndex:null,selectRowIndex:null,tableList:[],showText:!0,clickNum:null,isTextEdit:!1,quickInput:null,tableOldHeight:0,tableOldWidth:0}},props:["item","index","render","thumbRender","groupKey","thumbPanel","isGroup","isGroupItem","isCopyText","isReplace","isPathItem","pageIndex"],mounted(){this.initTable(),this.isEnableDrag||this.changeTableHeight()},watch:{tableList:function(e,t){this.$set(this.item,"tableList",e)},currentSelectedItem:function(e){e&&"table"===e.type?this.clickNum=1:(this.clickNum=null,this.item.tableList.forEach((e=>{e.forEach((e=>{e.checked=!1}))})))},rows:{handler(){this.initTable(),this.changeTableHeight()}},columns:function(e){this.initTable(),this.changeTableHeight()},fontSize:function(){this.fontSizeId===this.item.id&&this.changeTextHeight()},fontName:function(){this.changeSelectHeight(1e3)},borderWidth:function(){this.changeSelectHeight(10)},tableTextIndent:function(){this.changeSelectHeight(10)},"itemStyle.height":function(e){},"itemStyle.width":function(e){},"item.id":function(e){this.selectColIndex=null,this.selectRowIndex=null,this.clickNum=null,this.item.tableList.forEach((e=>{e.forEach((e=>{e.checked=!1}))}))}},computed:{itemStyle:function(){return this.item.style},itemWidth:{get:function(){return this.itemStyle.width},set:function(e){this.itemStyle.width=e}},localRender:function(){return this.render},pathAnime:function(){return this.$store.state.timeline.pathAnime},pathItemSelectedIndex:function(){return this.pathAnime.pathItemSelectedIndex},currentSelectedItem:function(){return this.$store.getters.currentSelectedItem},isSelectCell:function(){return this.clickNum>=2&&this.currentSelectedItem},rows:function(){return this.item.rows},columns:function(){return this.item.columns},isEnableDrag:function(){return this.$store.getters.isH5Pro||this.$store.getters.isYZPro}},methods:{initTable:function(){this.tableList=[],this.tableList=S.Z.copy(this.item.tableList)},splitPx:function(e){let t=0;return e&&(t=parseFloat(e.split("px")[0])),t},textChange:function(e,t,i){this.isTextEdit=!0;this.tableList[t][i].innerTextStyle.fontFamily;setTimeout((()=>{let e=document.getElementById(`${this.item.id}${t}${i}`);this.tableList[t][i].height{i.forEach((i=>{s===t&&(i.height=e.scrollHeight)}))})),this.$set(this.item,"tableList",this.tableList),this.$refs.table.offsetHeight,this.splitPx(this.item.style.height)}))},paste:function(e,t,i){},textContentHtml:function(e,t){let i=this.item.tableList[e][t].value;return(0,Ci._)().ios&&(i=this.item.tableList[e][t].value.replace(/

<\/div>/g,"\n")),i},blurText:function(e,t,i){let s=e.target.innerText;this.tableList[t][i].value=s,this.$set(this.item,"tableList",this.tableList)},changeTableHeight:function(){setTimeout((()=>{this.$refs.table&&this.$refs.table.offsetHeight&&(this.item.style.height=this.$refs.table&&this.$refs.table.offsetHeight+"px")}),10)},fontStyle:function(e,t){let i=this.item.tableList[e][t],s=parseFloat(i.innerTextStyle.fontSize),n=s<12?s/12:1,o="none";o=i.isAllUndeline&&i.strikeThrough?"underline line-through":i.isAllUndeline&&!i.strikeThrough?"underline":!i.isAllUndeline&&i.strikeThrough?"line-through":"none";let r={};return(0,Ci._)().ios&&(r={"line-height":1.2}),{"font-size":i.innerTextStyle.fontSize,color:i.innerTextStyle.color,"text-align":i.innerTextStyle.textAlign,"text-indent":i.innerTextStyle.textIndent||"unset","font-family":i.innerTextStyle.fontFamily,"font-weight":i.isAllBold?"bold":"normal",background:"transparent","font-style":i.isAllItalic?"italic":"","text-decoration":o,transform:`scale(${n})`,...r}},textStyle:function(e,t){let i=this.item.tableList[e][t];return{height:"auto !important","min-height":i&&(i.height>=10?i.height:10)+"px",width:"auto !important"}},cellStyle:function(e,t){let i=this.item.tableList[e][t],s={"background-color":i.bgColor,border:`${i.borderWidth}px solid ${i.borderColor}`};return this.isEnableDrag&&(s=Object.assign(s,{width:i.width+"px",height:i.height+"px"})),s},changeTextHeight:function(){this.$nextTick((()=>{this.tableList.forEach(((e,t)=>{e.forEach(((e,i)=>{let s=document.getElementById(`${this.item.id}${t}${i}`);e.value&&(e.height=s.getBoundingClientRect().height)}))})),setTimeout((()=>{this.item.style.height=S.Z.copy(this.$refs.table.offsetHeight+"px")}))}))},changeSelectHeight:function(e){},textFocus(e,t){if(this.isSelectCell){let i=document.getElementById(`${this.item.id+e+t}`);i.setAttribute("contenteditable",!0),i.focus()}}},components:{ItemLayout:ki}},jh=Yh,Uh=(0,ot.Z)(jh,(function(){var e=this,t=e._self._c;return t("ItemLayout",{key:e.item.id,staticClass:"ItemForTable",attrs:{item:e.item,index:e.index,render:e.localRender,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,thumbRender:e.thumbRender,thumbPanel:e.thumbPanel,isPathItem:e.isPathItem,pageIndex:e.pageIndex}},[e.tableList&&e.tableList.length?t("table",{ref:"table",staticClass:"table-content",style:{border:`${e.item.borderWidth}px solid ${e.item.borderColor}`},attrs:{id:"table"+e.item.id,border:e.item.border}},[t("tbody",{staticClass:"table-tbody"},e._l(e.item.rows,(function(i,s){return t("tr",{key:s,staticClass:"table-tr"},e._l(e.item.columns,(function(i,n){return t("td",{key:n,class:{"td-selected":e.tableList[s][n]&&e.tableList[s][n].checked&&e.isSelectCell},style:e.cellStyle(s,n)},[t("div",{staticClass:"text-content",style:e.textStyle(s,n)},[t("div",{staticClass:"textArea",style:e.fontStyle(s,n),attrs:{"data-textid":e.item.id,id:e.item.id+s+n},domProps:{innerHTML:e._s(e.textContentHtml(s,n))},on:{blur:function(t){return e.blurText(t,s,n)}}})])])})),0)})),0)]):e._e()])}),[],!1,null,"5f492169",null).exports,Xh=(i(2801),{name:"ItemForIframe",components:{ItemLayout:ki},data(){return{}},props:["item","index","groupKey","isGroup","isGroupItem","viewScale","pageIndex"],mounted(){this.$nextTick((()=>{this.renderEmbedCode()}))},methods:{addScript(e){let t=document.createElement("script");e.src&&(t.src=e.src),e.innerText&&(t.innerText=e.innerText),e.dataset&&e.dataset.useServiceCore&&(t.dataset.useServiceCore=e.dataset.useServiceCore),t.defer=e.defer,"async"in e&&(t.async=e.async),this.$refs.embedCover.appendChild(t)},renderEmbedCode(){if(2===this.selectType&&""!==this.embedCode)try{let e=this.$refs.embedCover;for(;e.firstChild;)e.removeChild(e.firstChild);let t=(new DOMParser).parseFromString(window.atob(this.embedCode),"text/html"),i=t.body.children;for(let e=0;e{this.addScript(e)}))}catch(e){}}},computed:{iframeSrc:function(){return this.item.iframeItemInfo.url?this.item.iframeItemInfo.urlHead+this.item.iframeItemInfo.url+this.iframeSrcParams:""},iframeSrcParams:function(){if(!this.item.iframeItemInfo.isHasUrlParams)return"";if(""!==window.location.search){if(-1!==this.item.iframeItemInfo.url.indexOf("?")){return"&"+window.location.search.slice(1)}return window.location.search}return""},selectType:function(){return this.item.iframeItemInfo.selectType?this.item.iframeItemInfo.selectType:1},embedCode:function(){return this.item.iframeItemInfo.embedCode?this.item.iframeItemInfo.embedCode:""},zoom(){return this.item.pageZoom?this.item.pageZoom/100:1}}}),qh=(0,ot.Z)(Xh,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForIframe",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroup:e.isGroup,isGroupItem:e.isGroupItem,viewScale:e.viewScale,pageIndex:e.pageIndex}},[t("div",{staticClass:"iframe-cover"},[1===e.selectType?t("iframe",{staticClass:"iframe-contain",style:{transformOrigin:"0 0",transform:`scale(${e.zoom})`},attrs:{src:e.iframeSrc,width:100/e.zoom+"%",height:100/e.zoom+"%"}}):e._e(),2===e.selectType?t("div",{ref:"embedCover",staticClass:"embed-cover scrollbarStyle"}):e._e()])])}),[],!1,null,"0ee21ed8",null).exports,Qh={props:{color1:{type:String,default:"#000000"},color2:{type:String,default:"#ffffff"}}},Kh=(0,ot.Z)(Qh,(function(){var e=this,t=e._self._c;return t("svg",{staticStyle:{width:"100%",height:"100%"},attrs:{viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"}},[t("rect",{attrs:{x:"6",y:"4",width:"19",height:"21",fill:e.color1}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 30C23.2843 30 30 23.2843 30 15C30 6.7157 23.2843 0 15 0C6.7157 0 0 6.7157 0 15C0 23.2843 6.7157 30 15 30ZM16 10C17.1046 10 18 9.10455 18 8C18 6.89545 17.1046 6 16 6C14.8954 6 14 6.89545 14 8C14 9.10455 14.8954 10 16 10ZM16.8659 23.7583C17.3356 23.5969 17.9528 23.3694 18.7383 23.0743L19 22.0403C18.8658 22.1077 18.6509 22.175 18.3493 22.2556C18.0478 22.3354 17.7789 22.3754 17.5438 22.3754C17.0408 22.3754 16.6851 22.2948 16.4769 22.1343C16.2753 21.973 16.1679 21.6647 16.1679 21.2217C16.1679 21.1164 16.18 20.9769 16.2044 20.8089C16.2205 20.6987 16.2418 20.5762 16.2686 20.4431C16.3293 20.0939 16.4026 19.7849 16.4769 19.5164L17.7655 16.1611C17.8596 15.8528 17.9271 15.517 17.9603 15.1548C17.9937 14.7791 18.0146 14.5239 18.0146 14.376C18.0146 13.6779 17.4506 13.1011 16.9407 12.6581C16.431 12.2151 15.7053 12 14.7591 12C14.2419 12 13.6855 12.0806 13.1014 12.2682C12.5168 12.4428 11.8996 12.6573 11.2624 12.9125L11 13.9597C11.0952 13.9189 11.2004 13.9149 11.316 13.9106C11.4291 13.9063 11.552 13.9017 11.6848 13.8617C11.9462 13.7945 12.2078 13.7546 12.4636 13.7546C12.5645 13.7546 12.6586 13.7527 12.7463 13.7509C13.1082 13.7436 13.359 13.7385 13.5106 13.8789C13.6643 14.0154 13.6611 14.2478 13.6565 14.5849C13.6556 14.6461 13.6548 14.7108 13.6548 14.7791C13.6548 15.0068 13.6283 15.2753 13.5679 15.5569C13.5406 15.6895 13.5355 15.8219 13.5303 15.9567C13.5239 16.1226 13.5173 16.2919 13.4691 16.4694L12.4896 19.8387C12.4086 20.1879 12.342 20.5104 12.3011 20.7921C12.2612 21.0737 12.2412 21.3423 12.2412 21.6107C12.2412 22.3089 12.5029 22.8723 13.0333 23.3285C13.5565 23.7715 14.2952 24 15.2416 24C15.8588 24 16.4026 23.9194 16.8659 23.7583Z",fill:e.color2}})])}),[],!1,null,null,null).exports,Jh={name:"ItemForTooltip",data(){return{}},props:["item","index","groupKey","isGroupItem","isPathItem"],computed:{iconHref:function(){return this.item.iconHref},tooltipComponent:function(){return Kh},color1:function(){return this.item.color1},color2:function(){return this.item.color2}},components:{ItemLayout:ki}},ec=(0,ot.Z)(Jh,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForTooltip",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroupItem:e.isGroupItem,isPathItem:e.isPathItem}},[t(e.tooltipComponent,{tag:"component",attrs:{color1:e.color1,color2:e.color2}})],1)}),[],!1,null,"ccfba004",null).exports,tc={name:"ItemContainer",data:function(){return{translateZ:0}},mounted(){},destroyed(){o.Q.$off(`PAGE_START_FLIP_${this.pageIndex}`),o.Q.$off(`PAGE_END_FLIP_${this.pageIndex}`)},props:["item","itemIndex","isGroupInner","pageIndex"],computed:{transformStyleWhenFlip:function(){return this.translateZ&&this.isGroupInner,{}},actionId:function(){return`action${this.item.id}`},canNotSelect:function(){return Tt(this.item,this.pageIndex)},currentPage:function(){},pageItemLength:function(){},pageIsVisiable:function(){},maskFile:function(){return this.item.animationFiles.maskFiles},inMaskFile:function(){return this.maskFile.in},outMaskFile:function(){return this.maskFile.out},curItemHasAnime:function(){return Je(this.item)},canNotSelectStyle:function(){if(this.isGroupInner)return this.canNotSelect||this.item.actIsHidden&&-1===this.item.actAnimeTime?{opacity:0}:void 0},itemStyle:function(){let e=this.item,t={pointerEvents:"none"};if(this.isGroupInner){t.width=parseFloat(e.style.width)+"px",t.height=parseFloat(e.style.height)+"px",t.opacity=e.style.opacity,t.transform=` rotate(${e.rotate}deg)`,this.canNotSelect&&(t.opacity=0,t.pointerEvents="none");let i=e.maskConfig.in;if("svg"===i.maskType){let i=ge(e.animations.in);t.maskImage=i?`url( ${this.inMaskFile.url})`:"none"}else"gradient"===i.maskType&&(t.maskImage=i.maskImage);t.maskRepeat=i.repeat,t.maskPosition=i.position,t.maskSize=i.maskSize}else Je(e)||Object.assign(t,{top:Math.round(parseFloat(e.style.top))+"px",left:Math.round(parseFloat(e.style.left))+"px",width:Math.round(parseFloat(e.style.width))+"px",height:Math.round(parseFloat(e.style.height))+"px"}),t.zIndex=this.itemIndex;return t},actionHideCase:function(){return!this.item.isActionHideCase||this.item.hiddenClickable}},methods:{}},ic=(0,ot.Z)(tc,(function(){var e=this;return(0,e._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:e.actionHideCase,expression:"actionHideCase"}],staticClass:"itemContainer",style:[e.itemStyle,e.transformStyleWhenFlip,e.canNotSelectStyle]},[e._t("default")],2)}),[],!1,null,"19d76b67",null).exports,sc={name:"HighLight",props:{highLightItem:{type:Oi},zIndex:{type:Number,default:0}},computed:{highLightId:function(){return this.highLightItem.id},highLightStyle:function(){return{left:this.highLightItem.left+"px",top:this.highLightItem.top+"px",width:this.highLightItem.width+"px",height:this.highLightItem.height+"px",transform:`rotate(${this.highLightItem.rotate}deg)`,zIndex:this.zIndex}}}},nc=(0,ot.Z)(sc,(function(){var e=this;return(0,e._self._c)("div",{key:e.highLightId,staticClass:"reader_highlight_text_inner",style:e.highLightStyle})}),[],!1,null,"5e96dbe0",null).exports,oc=i(4389),rc={name:"ItemForEChart",props:["item","index","render","thumbRender","groupKey","thumbPanel","isGroup","isGroupItem","isCopyText","isReplace","isPathItem","pageInnerIndex","pageIndex"],data(){return{eChart:null}},computed:{eChartId:function(){return"eChartId"+this.item.id},itemWidth:function(){return this.item.style.width},itemHeight:function(){return parseFloat(this.item.style.height)-30+"px"},titleStyle:function(){return{color:this.item.titleColor,fontSize:this.item.option.title.textStyle.fontSize+"px"}},showTitle:function(){return this.item.showTitle},titlePosition:function(){return this.item.titlePosition||"bottom"},isTop:function(){return"top"===this.titlePosition},eChartStyle:function(){let e={width:this.itemWidth,height:this.itemHeight,position:"absolute"};return this.isTop?e.top="30px":e.bottom="30px",e}},mounted(){this.initEChart(),this.bindEvent()},methods:{initEChart:function(){let e=document.getElementById(this.eChartId);this.eChart=oc.S1(e,null,{renderer:"svg",useDirtyRect:!1});let t=this.item.option;t&&this.eChart.setOption(t),this.eChart.on("click",(function(e){e.event&&e.event.stopPropagation?e.event.stopPropagation():window&&(window.cancelBubble=!0)}))},bindEvent:function(){o.Q.$on(`PAGE_END_FLIP_${this.pageIndex}`,(()=>{"eChart"===this.item.type&&this.eChart&&(this.eChart.dispose(),this.initEChart())}))}},components:{ItemLayout:ki},destroyed(){this.eChart.dispose(),o.Q.$off(`PAGE_END_FLIP_${this.pageIndex}`)}},ac={name:"WorkSpacePageInner",props:["page","pageIndex"],data(){return{fingleImg:"https://pub.xiuzhan365.com/resourceFiles/reader/assets/fingle.png"}},computed:{pageStyle:function(){const{pageInnerWidth:e,pageInnerHeight:t,pageInnerLeft:i,pageInnerTop:s}=this.$store.getters.realPageWH;return{width:e+"px",height:t+"px",left:i+"px",top:s+"px"}},viewScale:function(){let e=this.$store.state.pageConfig,t=this.page.width/e.originPageWidth,i=this.page.height/e.originPageHeight,s=Math.min(t,i),n=e.originPageWidth/e.originPageHeight,o=Math.ceil(e.originPageWidth*s),r=o/n,a=o/e.originPageWidth,l=r/e.originPageHeight;return Math.min(a,l)},scalePageStyle:function(){const e=this.$store.state.pageConfig,t=e.originPageWidth,i=e.originPageHeight,s=this.page.left,n=this.page.top,o=this.$store.state.canvas,r=this.$store.getters.fitViewScale,a=(o.height-e.originPageHeight*r)/2;return{width:t+"px",height:i+"px",left:s-(o.width-e.originPageWidth*r)/2+"px",top:n-a+"px",transform:`scale(${this.viewScale})`}},pageItems:function(){return this.page.items},textHighLightItems:function(){return this.getAllHighLightText(this.pageItems)}},watch:{},mounted:function(){},methods:{currentItemComponent:function(e){return"ItemFor"+e.type.substr(0,1).toUpperCase()+e.type.substr(1)},getAllHighLightText:function(e){const t=[];return e.forEach((e=>{"text"===e.type?t.push(...e.highLightRects?e.highLightRects:[]):"group"===e.type&&e.items.forEach((e=>{"text"===e.type&&t.push(...e.highLightRects?e.highLightRects:[])}))})),t}},components:{ItemForSwiper:wn,ItemForImage:bs,ItemForText:qi,ItemForSvg:Us,ItemForChart:ds,ItemForFrames:ps,ItemForBaseShape:is,ItemForButton:ns,ItemForMusic:Bs,ItemForVideo:Qs,ItemForComponent:cs,ItemForLink:Fs,ItemForQuiz:Wd,ItemForLike:_s,ItemForPhone:Hs,ViewModule:es,ItemForEffect:dn,ItemForHighLight:nc,ItemContainer:ic,ItemForTransShape:Ad,ItemForPluginVideo:Gh,ItemForPluginMusic:Nh,ItemForIframe:qh,OutMaskDom:Mt,ItemForTable:Uh,ItemForMap:zd,ItemForPagination:Dd,ItemForTooltip:ec,ItemForFontIcon:Od,ItemForHtmlDom:Zd,ItemForEChart:(0,ot.Z)(rc,(function(){var e=this,t=e._self._c;return t("ItemLayout",{staticClass:"ItemForEChart",attrs:{item:e.item,index:e.index,groupKey:e.groupKey,isGroupItem:e.isGroupItem,isPathItem:e.isPathItem,pageIndex:e.pageIndex}},[t("div",{staticClass:"eChart-item-box"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showTitle,expression:"showTitle"}],staticClass:"eChart-title",class:{"title-top":e.isTop,"title-bottom":!e.isTop},style:e.titleStyle},[e._v(" "+e._s(e.item.option.title.text)+" ")]),t("div",{staticClass:"eChart-item",style:e.eChartStyle,attrs:{id:e.eChartId}})])])}),[],!1,null,"f6a622b8",null).exports},directives:{}},lc=ac,dc=(0,ot.Z)(lc,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"pageInner",style:e.pageStyle,attrs:{id:`pageInnerAnime${e.pageIndex}`}},[t("div",{staticClass:"scalePage",style:e.scalePageStyle,attrs:{id:`scalePage${e.pageIndex}`}},[e._l(e.pageItems,(function(i,s){return t("ItemContainer",{key:i.id,attrs:{id:`anime${i.id}`,item:i,pageIndex:e.pageIndex,itemIndex:s}},[i.items?e._e():t(e.currentItemComponent(i),{directives:[{name:"show",rawName:"v-show",value:!i.isHidden,expression:"!item.isHidden"}],ref:`${i.type}${i.id}`,refInFor:!0,tag:"component",staticClass:"item singleItem",attrs:{item:i,index:s,groupKey:-1,pageIndex:e.pageIndex,viewScale:e.viewScale}}),i.items?t("ItemContainer",{directives:[{name:"show",rawName:"v-show",value:!i.isHidden,expression:"!item.isHidden"}],attrs:{id:`item${i.id}`,item:i,itemIndex:s,pageIndex:e.pageIndex,isGroupInner:!0}},[t("OutMaskDom",{attrs:{groupKey:-1,item:i}},e._l(i.items,(function(n,o){return t(e.currentItemComponent(n),{key:o,tag:"component",staticClass:"item",attrs:{item:n,index:s,groupKey:o,isGroupItem:!0,pageIndex:e.pageIndex,viewScale:e.viewScale,isGroup:!1,id:`groupItem${n.id}`,groupStyle:i.style}})})),1)],1):e._e()],1)})),e._l(e.textHighLightItems,(function(i){return t("ItemForHighLight",{key:i.id,attrs:{highLightItem:i,"z-index":e.pageItems.length}})}))],2),t("ViewModule",{attrs:{page:e.page,pageIndex:e.pageIndex}})],1)}),[],!1,null,"9b5aede8",null).exports,hc=i(9975),cc=i(5947),uc=i(5033);function pc(e,t=""){const i=t?-1===t.lastIndexOf("?")?"":t.slice(t.lastIndexOf("?")+1):location.search;if(i){if(e){const t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),s=i.slice(1).match(t);return s?decodeURIComponent(s[2]):null}{const e={};return i.replace("?","").split("&").reduce(((e,t)=>{const i=e,[s,n]=t.split("=");return i[s]=n,e}),e),e}}return{}}const mc=new class{constructor(){(0,f.Z)(this,"collect",new Map),(0,f.Z)(this,"extraParams",{})}add(e){const t=S.Z.getPathFilename(decodeURIComponent(e));this.collect.has(t)||this.collect.set(t,e)}collectPagePrivateRes(e,t={}){const{pageResList:i}=t.collectPageRes(e);return[...i].map((e=>{let t=e.slice(0,-1!==e.lastIndexOf("?")?e.lastIndexOf("?"):e.length);return this.toAbsURL(t)})).filter((e=>{const t=S.Z.getPathFilename(e);if(!this.collect.has(t))return e}))}getPrivateRes(e){const t=S.Z.getPathFilename(e);return[...this.collect.keys()].includes(t)?this.collect.get(t):this.joinCode(e)}toAbsURL(e){const t=document.createElement("a");return t.href=e,t.href}checkCurrentHrefCode(){const e=pc("code");e&&!S.Z.isEmptyObject(e)&&(this.extraParams.code=e)}joinCode(e){const t=pc("",e),i=Object.keys(this.extraParams).reduce(((e,t)=>e+`${t}=${this.extraParams[t]}`),"");return i?t&&!S.Z.isEmptyObject(t)?e+`&${i}`:e+`?${i}`:e}};const gc=new class{constructor(){}getHost(){const e=window.location.pathname;switch(th.Hq){case"yunzhan":default:return~e.indexOf("mobile")||~e.indexOf("articles")?window.bookConfig&&window.bookConfig.bookResourceBaseURL?window.bookConfig.bookResourceBaseURL+"files/pageConfig/":"../files/pageConfig/":window.bookConfig&&window.bookConfig.bookResourceBaseURL?window.bookConfig.bookResourceBaseURL+"files/pageConfig/":"./files/pageConfig/";case"flip":return"./files/editor/files/extfile/"}}getEditorPage(){0}getApiHost(){const e=window.location.href;return e.indexOf("flipbuilder")>-1?"/":e.match(/book|www.yunzhan365/)?"//www.yunzhan365.com/":e.match(/test[\S]*./)||e.indexOf("dev.")>-1?"":"/yzapi/"}};var fc=i(6470),wc=i.n(fc);function yc(e,t=!0){let i=decodeURIComponent(e);if(~i.lastIndexOf("?")&&(i=i.slice(0,i.lastIndexOf("?"))),i=wc().basename(i),!t){const e=i.lastIndexOf(".");i=i.slice(0,e)}return i}async function vc(e){return await async function(e){const t=`/test/${e}/config.js`;return r.Z.get(t).then((e=>JSON.parse(e.data.replace(/var.*?=\s{/,"{").replace(/export\sdefault.*/,""))))}(e).catch((t=>async function(e){const t=`/test/${e}/mobile/javascript/config.js`,i={pageConfig:null,pages:[]};return r.Z.get(t).then((e=>{let t=e.data.replace(/var.*?=\s{/,"{");t.endsWith(";")&&(t=t.slice(0,-1));const s=JSON.parse(t),{pages_editor:n}=s;i.pageConfig=n.pageConfig;const o=gc.getEditorPage(),a=n.pages.map((e=>o+yc(e)));return Promise.all(a.map((e=>r.Z.get(e).then((e=>{i.pages.push(e.data)})).catch((e=>{})))))})).then((()=>i))}(e)))}class xc{clearPageItem(e){let t=!1;e.items.length>0&&(t=!0),e.items=[];const i=Ct(e);i.isInstanceProperty&&i.isEnable&&(0!==e.camera.items.length&&(t=!0),e.camera.items=[]);const s=It(e);s.isInstanceProperty&&s.isEnable&&(0!==e.subtitle.items.length&&(t=!0),e.subtitle.items=[]);const n=St(e);n.isInstanceProperty&&n.isEnable&&(0!==e.foreground.items.length&&(t=!0),e.foreground.items=[]);const o=bt(e);return o.isInstanceProperty&&o.isEnable&&(0!==e.background.items.length&&(t=!0),e.background.items=[]),{hasItemDeleted:t}}isEmptyPage(e){return function(e){return!~[0===e.items.length,0===Ct(e).items.length,0===St(e).items.length,0===bt(e).items.length,0===It(e).items.length].findIndex((e=>!e))}(e)}}var Cc=i(9360);class bc{constructor(){(0,f.Z)(this,"font",0),(0,f.Z)(this,"image",0),(0,f.Z)(this,"sprite",0),(0,f.Z)(this,"gif",0),(0,f.Z)(this,"lottie",0),(0,f.Z)(this,"video",0),(0,f.Z)(this,"svg",0),(0,f.Z)(this,"frames",0),(0,f.Z)(this,"swiper",0)}add(e){this[e]++}get total(){return this.font+this.image+this.sprite+this.gif+this.lottie+this.video+this.svg+this.frames+this.swiper}}function Ic({items:e,isMobile:t,pageIndex:i}={isMobile:!1}){const s=[],n=[],o=[];return e.forEach((e=>{const r=e.type;if(t||"pluginVideo"!==r||"EVT_PageViewed"!==e.moviePlayTriggerEvt||s.push("#video"+e.id),"pluginMusic"===r){if("EVT_PageViewed"===e.moviePlayTriggerEvt&&e.playInSequence){const t=new E(e);s.push({type:"pluginMusic",pluginMusic:t,pageIndex:i})}}if(["video","pluginVideo"].includes(r)&&n.push(e),["music","pluginMusic"].includes(r)&&o.push(e),0!==e.actionList.length&&e.actionList.forEach((t=>{t.playAudio&&(t.playAudio.link||t.playAudio.audioList)&&o.push(e)})),"group"===r){const{autoPlayArray:r,videoItems:a,audioItems:l}=Ic({items:e.items,isMobile:t,pageIndex:i});s.push(...r),n.push(...a),o.push(...l)}})),{autoPlayArray:s,videoItems:n,audioItems:o}}i(1703);var Sc={ArrayBuffer:"undefined"!=typeof ArrayBuffer,DataView:"undefined"!=typeof DataView&&("getFloat64"in DataView.prototype||"getFloat64"in new DataView(new ArrayBuffer(1))),NodeBuffer:"undefined"!=typeof Buffer&&"readInt16LE"in Buffer.prototype},Pc={Int8:1,Int16:2,Int32:4,Uint8:1,Uint16:2,Uint32:4,Float32:4,Float64:8},Tc={Int8:"Int8",Int16:"Int16",Int32:"Int32",Uint8:"UInt8",Uint16:"UInt16",Uint32:"UInt32",Float32:"Float",Float64:"Double"},$c=function(e,t,s,n){if(!(this instanceof $c))throw new Error("jDataView constructor may not be called as a function");if(this.buffer=e,!(Sc.NodeBuffer&&e instanceof Buffer||Sc.ArrayBuffer&&e instanceof ArrayBuffer||"string"==typeof e))throw new TypeError("jDataView buffer has an incompatible type");this._isArrayBuffer=Sc.ArrayBuffer&&e instanceof ArrayBuffer,this._isDataView=Sc.DataView&&this._isArrayBuffer,this._isNodeBuffer=Sc.NodeBuffer&&e instanceof Buffer,this._littleEndian=void 0!==n&&n;var o=this._isArrayBuffer?e.byteLength:e.length;if(void 0===t&&(t=0),this.byteOffset=t,void 0===s&&(s=o-t),this.byteLength=s,!this._isDataView){if("number"!=typeof t)throw new TypeError("jDataView byteOffset is not a number");if("number"!=typeof s)throw new TypeError("jDataView byteLength is not a number");if(t<0)throw new Error("jDataView byteOffset is negative");if(s<0)throw new Error("jDataView byteLength is negative")}if(this._isDataView&&(this._view=new DataView(e,t,s),this._start=0),this._start=t,t+s>o)throw new Error("jDataView (byteOffset + byteLength) value is out of bounds");if(this._offset=0,this._isDataView)for(var r in Pc)Pc.hasOwnProperty(r)&&function(e,t){var i=Pc[e];t["get"+e]=function(s,n){return void 0===n&&(n=t._littleEndian),void 0===s&&(s=t._offset),t._offset=s+i,t._view["get"+e](s,n)}}(r,this);else if(this._isNodeBuffer&&Sc.NodeBuffer)for(var r in Pc){if(Pc.hasOwnProperty(r))(function(e,t,i){var s=Pc[e];t["get"+e]=function(e,n){return void 0===n&&(n=t._littleEndian),void 0===e&&(e=t._offset),t._offset=e+s,t.buffer[i](t._start+e)}})(r,this,"Int8"===r||"Uint8"===r?"read"+Tc[r]:n?"read"+Tc[r]+"LE":"read"+Tc[r]+"BE")}else for(var r in Pc)Pc.hasOwnProperty(r)&&function(e,t){var s=Pc[e];t["get"+e]=function(n,o){if(void 0===o&&(o=t._littleEndian),void 0===n&&(n=t._offset),t._offset=n+s,t._isArrayBuffer&&(t._start+n)%s==0&&(1===s||o))return new i.g[e+"Array"](t.buffer,t._start+n,1)[0];if("number"!=typeof n)throw new TypeError("jDataView byteOffset is not a number");if(n+s>t.byteLength)throw new Error("jDataView (byteOffset + size) value is out of bounds");return t["_get"+e](t._start+n,o)}}(r,this)};if($c.createBuffer=Sc.NodeBuffer?function(){for(var e=new Buffer(arguments.length),t=0;tthis.byteLength)throw new Error("jDataView length or (byteOffset+length) value is out of bounds");if(this._isNodeBuffer)i=this.buffer.toString("ascii",this._start+t,this._start+t+e);else{i="";for(var s=0;s127?65533:n)}}return this._offset=t+e,i},getChar:function(e){return this.getString(1,e)},tell:function(){return this._offset},seek:function(e){if("number"!=typeof e)throw new TypeError("jDataView byteOffset is not a number");if(e<0||e>this.byteLength)throw new Error("jDataView byteOffset value is out of bounds");return this._offset=e},_endianness:function(e,t,i,s){return e+(s?i-t-1:t)},_getFloat64:function(e,t){var i=this._getUint8(this._endianness(e,0,8,t)),s=this._getUint8(this._endianness(e,1,8,t)),n=this._getUint8(this._endianness(e,2,8,t)),o=this._getUint8(this._endianness(e,3,8,t)),r=this._getUint8(this._endianness(e,4,8,t)),a=this._getUint8(this._endianness(e,5,8,t)),l=this._getUint8(this._endianness(e,6,8,t)),d=this._getUint8(this._endianness(e,7,8,t)),h=1-2*(i>>7),c=((i<<1&255)<<3|s>>4)-(Math.pow(2,10)-1),u=(15&s)*Math.pow(2,48)+n*Math.pow(2,40)+o*Math.pow(2,32)+r*Math.pow(2,24)+a*Math.pow(2,16)+l*Math.pow(2,8)+d;return 1024===c?0!==u?NaN:h*(1/0):-1023===c?h*u*Math.pow(2,-1074):h*(1+u*Math.pow(2,-52))*Math.pow(2,c)},_getFloat32:function(e,t){var i=this._getUint8(this._endianness(e,0,4,t)),s=this._getUint8(this._endianness(e,1,4,t)),n=1-2*(i>>7),o=(i<<1&255|s>>7)-127,r=(127&s)<<16|this._getUint8(this._endianness(e,2,4,t))<<8|this._getUint8(this._endianness(e,3,4,t));return 128===o?0!==r?NaN:n*(1/0):-127===o?n*r*Math.pow(2,-149):n*(1+r*Math.pow(2,-23))*Math.pow(2,o)},_getInt32:function(e,t){var i=this._getUint32(e,t);return i>Math.pow(2,31)-1?i-Math.pow(2,32):i},_getUint32:function(e,t){var i=this._getUint8(this._endianness(e,0,4,t)),s=this._getUint8(this._endianness(e,1,4,t)),n=this._getUint8(this._endianness(e,2,4,t)),o=this._getUint8(this._endianness(e,3,4,t));return i*Math.pow(2,24)+(s<<16)+(n<<8)+o},_getInt16:function(e,t){var i=this._getUint16(e,t);return i>Math.pow(2,15)-1?i-Math.pow(2,16):i},_getUint16:function(e,t){return(this._getUint8(this._endianness(e,0,2,t))<<8)+this._getUint8(this._endianness(e,1,2,t))},_getInt8:function(e){var t=this._getUint8(e);return t>Math.pow(2,7)-1?t-Math.pow(2,8):t},_getUint8:function(e){return this._isArrayBuffer?new Uint8Array(this.buffer,e,1)[0]:this._isNodeBuffer?this.buffer[e]:255&this.buffer.charCodeAt(e)}},"undefined"!=typeof jQuery&&jQuery.fn.jquery>="1.6.2"){jQuery.ajaxSetup({converters:{"* dataview":function(e){return new $c(e)}},accepts:{dataview:"text/plain; charset=x-user-defined"},responseHandler:{dataview:function(e,t,i){"mozResponseArrayBuffer"in i?e.text=i.mozResponseArrayBuffer:"responseType"in i&&"arraybuffer"===i.responseType&&i.response?e.text=i.response:e.text="responseBody"in i?function(e){var t;try{t=IEBinaryToArray_ByteStr(e)}catch(i){window.execScript("Function IEBinaryToArray_ByteStr(Binary)\r\n\tIEBinaryToArray_ByteStr = CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n\tDim lastIndex\r\n\tlastIndex = LenB(Binary)\r\n\tif lastIndex mod 2 Then\r\n\t\tIEBinaryToArray_ByteStr_Last = AscB( MidB( Binary, lastIndex, 1 ) )\r\n\tElse\r\n\t\tIEBinaryToArray_ByteStr_Last = -1\r\n\tEnd If\r\nEnd Function\r\n","vbscript"),t=IEBinaryToArray_ByteStr(e)}for(var i,s=IEBinaryToArray_ByteStr_Last(e),n="",o=0,r=t.length%8;o>8);for(r=t.length;o>8,255&(i=t.charCodeAt(o++)),i>>8,255&(i=t.charCodeAt(o++)),i>>8,255&(i=t.charCodeAt(o++)),i>>8,255&(i=t.charCodeAt(o++)),i>>8,255&(i=t.charCodeAt(o++)),i>>8,255&(i=t.charCodeAt(o++)),i>>8,255&(i=t.charCodeAt(o++)),i>>8);return s>-1&&(n+=String.fromCharCode(s)),n}(i.responseBody):i.responseText}}}),jQuery.ajaxPrefilter("dataview",(function(e,t,i){jQuery.support.ajaxResponseType&&(e.hasOwnProperty("xhrFields")||(e.xhrFields={}),e.xhrFields.responseType="arraybuffer"),e.mimeType="text/plain; charset=x-user-defined"}))}var kc=$c,Lc=function(){var e=100;function t(e){return 3*Math.pow(2,1+e.slice(5,8).reduce((function(e,t){return 2*e+t}),0))}function i(e){for(var t=[],i=7;i>=0;i--)t.push(e&1<1&&!l.animated&&(l.animated=!0,o))return l;r+=11,r+=(x=s(d,r,!1)).size;break;case 59:return l;default:r++}}catch(e){return l.valid=!1,l}if(r>=n.byteLength)return l}return l}return{isAnimated:function(e){return n(e,!0).animated},getInfo:function(e){return n(e,!1)}}}(),Mc=Lc,Ec=function(e){return e.reduce((function(e,t){return 2*e+t}),0)},Ac=function(e){for(var t=[],i=7;i>=0;i--)t.push(!!(e&1<=this.data.length)throw new Error("Attempted to read past end of stream.");return e instanceof Uint8Array?e[this.pos++]:255&e.charCodeAt(this.pos++)},this.readBytes=function(e){for(var t=[],i=0;i>3)&1<<(7&n)&&(i|=1<f.length-1&&(n=0),n<0&&(n=0),e=w[n],C.getContext("2d").putImageData(f[n].data,e.x,e.y),v.globalCompositeOperation="copy",v.drawImage(C,0,0)};return{init:function(){o||(s.c_w&&s.c_h||v.scale(z(),z()),s.auto_play?l():(n=0,d()))},step:l,play:function(){m=!0,l()},pause:function(){m=!1},playing:m,move_relative:a,current_frame:function(){return n},length:function(){return f.length},move_to:function(e){n=e,d()}}}(),B=function(e){_(t.pos,t.data.length,e)},Z=function(){},H=function(e,t){return function(i){e(i),B(t)}},N={hdr:H((function(e){A((i=e).width,i.height)})),gce:H((function(e){F(),M(),a=e.transparencyGiven?e.transparencyIndex:null,l=e.delayTime,d=e.disposalMethod})),com:H(Z),app:{NETSCAPE:H(Z)},img:H((function(e){u||(u=C.getContext("2d"));var t=f.length,n=e.lctFlag?e.lct:i.gct;t>0&&(3===c?null!==h?u.putImageData(f[h].data,0,0):u.clearRect(p.leftPos,p.topPos,p.width,p.height):h=t-1,2===c&&u.clearRect(p.leftPos,p.topPos,p.width,p.height));var o=u.getImageData(e.leftPos,e.topPos,e.width,e.height);e.pixels.forEach((function(e,t){e!==a&&(o.data[4*t+0]=n[e][0],o.data[4*t+1]=n[e][1],o.data[4*t+2]=n[e][2],o.data[4*t+3]=255)})),u.putImageData(o,e.leftPos,e.topPos),g||(v.scale(z(),z()),g=!0),P&&(v.drawImage(C,0,0),P=s.auto_play),p=e}),!0),eof:function(e){F(),B(!1),s.c_w&&s.c_h||(y.width=i.width*z(),y.height=i.height*z()),O.init(),r=!1,V&&V(y)}},z=function(){return s.max_width&&i&&i.width>s.max_width?s.max_width/i.width:1},R=!1,V=!1,D={};return{move_to:O.move_to,get_canvas:function(){return y},get_length:function(){return O.length()},load_url:function(e,i,n){if(function(e,t){return!r&&(V=e||!1,t||!1,r=!0,f=[],M(),h=null,c=null,u=null,p=null,!0)}(i,n)){var o=new XMLHttpRequest;o.open("GET",e,!0),"overrideMimeType"in o?o.overrideMimeType("text/plain; charset=x-user-defined"):"responseType"in o?o.responseType="arraybuffer":o.setRequestHeader("Accept-Charset","x-user-defined"),o.onloadstart=function(){var e;R||(e=document.createElement("div"),y=document.createElement("canvas"),v=y.getContext("2d"),x=document.createElement("div"),C=document.createElement("canvas"),e.style.width="100%",e.style.height="100%",e.style.overflow="hidden",e.className="jsgif",x.className="jsgif_toolbar",y.style.width="100%",y.style.height="100%",y.id=s.gifId,e.appendChild(y),e.appendChild(x),s.c_w&&s.c_h&&A(s.c_w,s.c_h),R=!0)},o.onload=function(e){200!=this.status&&W("xhr - response"),"response"in this||(this.response=new VBArray(this.responseText).toArray().map(String.fromCharCode).join(""));var i=this.response;i.toString().indexOf("ArrayBuffer")>0&&(i=new Uint8Array(i)),t=new _c(i),D=Mc.getInfo(this.responseText),setTimeout(E,0)},o.onprogress=function(e){e.lengthComputable&&_(e.loaded,e.total,!0)},o.onerror=function(){W("xhr")},o.send()}},load:function(e,t){},clearData:function(){f=[]},get_info:()=>JSON.parse(JSON.stringify(D))}};var Oc=i(2983),Bc=i(1861);let Zc=()=>{};const Hc=new Set,Nc=new Set,zc=(new Set,new Set,new Map,new Map,new Map,[]);function Rc({item:e,pageIndex:t,itemIndex:s,pageTool:n}){const{type:o}=e;switch(o){case"image":{const{url:t,isSprite:i,fileName:s,gifs:o,isGifImage:a}=e;i?o.forEach((e=>{e.hasLoadedNormal=!1;let t=e.jsonUrl.length-1;const i=[0,t];e.loadImageIndex=t,e.jsonUrl.forEach(((t,s)=>{if(i.includes(s)&&(n.counter.add("sprite"),zc.push(r.Z.get(t).then((t=>{d.default.set(e.grids,s,t.data)})).catch((e=>{})).finally((()=>{Zc()})))),0===s){const t=e.image[0];zc.push(Dc({fileName:t,url:t,pageTool:n}).then((()=>{})).catch((e=>{})).finally((()=>{Zc()})))}}))})):(zc.push(Dc({fileName:s,url:t,pageTool:n}).then((()=>{})).catch((e=>{})).finally((()=>{Zc()}))),Xs()&&a&&(n.counter.add("gif"),e.gifIsTurningToCanvas=!0,e.gifHasTurnedCanvas=!1,zc.push(function(e){return new Promise(((t,i)=>{const{id:s,url:n}=e;let o=null;try{o=setTimeout((()=>{throw clearTimeout(o),Error("over time")}),6e4);const e=new Fc({gifId:`canvas${s}`,auto_play:!1,loop_mode:!1,show_progress_bar:!1,draw_while_loading:!1});e.load_url(n,((i,s)=>{if(s)throw Error("fail to create canvas");clearTimeout(o),t(e)}))}catch(e){clearTimeout(o),i(e)}}))}(e).then((t=>{e.superGif=t,e.gifToCanvas=!0,e.gifHasTurnedCanvas=!0})).catch((t=>{e.superGif=null,e.gifHasTurnedCanvas=!1,e.gifToCanvas=!1})).finally((()=>{e.gifIsTurningToCanvas=!1,n.readyCounter.add("gif"),Zc()})))));break}case"pagination":case"button":case"text":Xs()?zc.push(Vc({item:e,pageTool:n})):Vc({item:e,pageTool:n});break;case"swiper":n.counter.add("swiper");break;case"table":{const t=new Map;e.tableList.forEach((e=>{let i=e.filter((e=>!t.has(e.innerTextStyle.fontFamily)&&t.set(e.innerTextStyle.fontFamily,1)));i.forEach((e=>{Xs()?zc.push(Vc({item:e,pageTool:n})):Vc({item:e,pageTool:n})}))}));break}case"frames":{const{containerList:t}=e;if(0===t.length){const{jsonUrl:t,imageList:i}=e;n.counter.add("frames"),zc.push(r.Z.get(t).then((t=>{!function(e,t){if("string"==typeof t){let i=S.Z.getUniqueId(),s=!1,n=me.l3.getSvgString(t,i,s),o=[me.l3.getColorList({svgCode:n,fillNone:!0}).svgString];d.default.set(e,"containerList",o)}if("object"==typeof t){let i={};e.hasFillSvg&&(i.fillColor=e.fillColor),delete t.type,delete t.viewBox,Object.assign(e,t,i)}}(e,t.data)})).catch((e=>{})).finally((()=>{Zc()}))),i.forEach((e=>{const{url:t,fileName:i}=e;t&&zc.push(Dc({fileName:i,url:t,pageTool:n}).then((()=>{})).catch((e=>{})).finally((()=>{Zc()})))}))}break}case"svg":{const{svgCode:t,isQRCode:s}=e;if(!t)if(s){const{urlPrefix:t,qrcodeUrl:s,colorList:n}=e;let o=60,r=new(i(7304))({content:t+s,padding:0,width:o,height:o,color:n[1],background:n[0],ecl:"M"}).svg(),a=r.match("");r=r.replace(a,""),r=r.replace(/<\/svg>/,""),Gc(e,r)}else{const{svgUrl:t}=e;n.counter.add("svg"),zc.push(r.Z.get(t).then((t=>{const{userHasChangedColor:i,svgString:s}=(0,Oc.O)({item:e,svgStr:t.data});(i||"painted"===e.animations.in.type)&&Gc(e,s)})).catch((e=>{})).finally((()=>{Zc()})))}break}case"effect":{const{jsonUrl:t}=e;e.hasLoadedJson=!1,n.counter.add("lottie"),zc.push(r.Z.get(t).then((t=>{e.hasLoadedJson=!0,e.json=t.data,(0,Bc.p)(e,t.data)})).catch((e=>{})).finally((()=>{Zc()})));break}case"group":e.items.forEach((e=>{Rc({item:e,pageIndex:t,itemIndex:s,pageTool:n})}))}}function Vc({item:e,pageTool:t}){let{systemFontToSvg:i,innerTextStyle:s,isUploadedFont:n,uploadFontUrl:o,minFontUrl:r}=e,a="";if("button"===e.type?(a=e.buttonFont.fontFamily,r=e.buttonFont.minFontUrl,o=e.buttonFont.uploadFontUrl,n=e.buttonFont.isUploadedFont):a=s.fontFamily,!Hc.has(a)&&!Bi.e.hasAddedFonts.has(a)&&!Bi.e.errorFonts.has(a)){Hc.add(a);const e=n?o:r,i=new FontFace(a,`url('${e}')`);return t.counter.add("font"),i.load().then((t=>{Bi.e.addFont(a,e,i)})).catch((e=>{Bi.e.addErrorFont(a)})).finally((()=>{t.readyCounter.add("font")}))}return t.counter.add("font"),t.readyCounter.add("font"),Promise.resolve()}function Dc({fileName:e,url:t,pageTool:i}){return Nc.has(e)?Promise.resolve():(i.counter.add("image"),Nc.add(e),S.Z.preLoadImage(t))}function Gc(e,t){d.default.set(e,"svgCode",t)}const Yc=["isHidden","isLocked","rotate","rotateX","rotateY","isShowShadow","publishThumbUrl","range","filter","isShowMaskImage","type","name","id","pageIndex","isTeamResource","showOrHideIsFirstHide","showOrHideTriggerType","trackItemToEdit","isCommercial","firstId","isThemePackage","firstId","secondId","isFavorite","themeCategoryId","resourceId","isNewFile","fileName","gradient","isCreatedByYZTemplate","base64Data","CID","isApng","isOpenComponent","isSystemTeamplateResource","isVisualChina","keyFromFlip","hiddenClickable"],jc=["stroke","svgText","gradient","textStr","transformPositionText","systemFontToSvg","needToCheckRow","isShowStroke","contentRow","overflow","textAreaWidth","textAreaHeight","isHideScrollBar","scrollBarInfo","trackItemToEdit","positionText","isHasTextScrollAnime","minFontUrl","alignTop","contenteditable","isAllBold","isAllItalic","isAllStrikeThrough","isAllUndeline","isSubtitle","originalLeft","originalWidth","sizeType","subBColor","subtitleAlign","textStyleType","modifiedByNode","isWordart"],Uc=["gifDuration","gifEndTime","gifImageLoop","gifLength","gifStartTime","image","images","imgOriginalProportions","isBGI","isQRCodeImg","isPhoneImg","isHorizonFlip","isGifImage","isSprite","isLoop","isUpload","strategy","turnCanvasFail","cropInfor","borderRadius","imageWidth","updateGifItemIndex","originalHeight","originalWidth","showBorderRadius"],Xc=["backgroundColor","baseShapeType","border","borderRadius","hasGradient","keepRatio","noBorder","showBorderRadius"],qc=["isQRCode","urlPrefix","qrcodeUrl","gNode","svgUrl","gradientColorList","originColorList","parseSvgType","isBGI","isUpload","svgClass","svg","colorList","colorIndexList"],Qc=["fileIsIsSystemTeamplateResource","fileIsUploadedList","fileNameList","imageInfor","isNewFileList","jsonUrl","imageList","parseSvgType","viewBox"],Kc=["buttonBackground","buttonFont","buttonIcon","buttonText","buttonTextEdit","isAutoPlay","itemIndex"],Jc=["isBGI","iframeItemInfo"],eu=["bookId","color","iconType","initNum","limitType","openVibrate","openSound","positionType","size","timeId"],tu=["isIndicated","isInverse"],iu=["musicSkin","musicType","skinId","update","createTime","movieStopTriggerEvt","moviePlayTriggerEvt","isPauseBgSoundWhenPlay","isPauseOtherMusicWhenPlay","playFromPage","playFromSeconds","playToPage","returnThisPageToReplay","skin0ColorObj","skin1ColorObj","syncWithTimeline","waveformImg","isAdjustable"],su=["isAdjustable","isBGI","isLoop","isPauseBgSoundWhenPlay","isUpload","movieStopTriggerEvt","moviePlayTriggerEvt","playerType","pluginVideoType","thumbUrl","thumbUrlFileName","thumbUrlIsNewFile","videoHeight","videoWidth","videoInfo","vimeoId","youTubeId","generalCode","videoLink"],nu=["swiperType"],ou=["borderColor","bgColor","border","borderStyle","borderWidth","columns","contenteditable","innerTextStyle","rows","thBg","trBgColor"],ru=["colours","fillColor","fillColor2","gradientColorList","isAdvance","lineWidth","linecap","pointNum","ratioX","splitX","ratioY","splitY","strokeColor","strokeDashes","transType"],au=["chartClass","chartI18nKey","chartType","title","dataNumber","highlightRange","highlightTitle","isShowPoint","isFixedRatio","position","titleColor","showClassName","showGradient","showGridLine","showXYAxis","showXYTitle","xAxis","yAxis","colorList","className"],lu=["color1","color2","iconHref"],du=["animationFiles.handPaintedFiles","animationFiles.maskFiles","animationFiles.outEraseFiles","animationFiles.scrawlFiles"];function hu(e,t){(0,Cc.Z)(t[e])||Object.defineProperty(t,e,{configurable:!1,writable:!1})}function cu(e){return["[object Object]","[object Array]"].includes(Object.prototype.toString.call(e))}var uu=i(1173),pu=i(5049),mu=i(3683),gu=i(3858),fu=i(4493),wu=i(6783),yu=i(3595),vu=i(8750),xu=i(8587),Cu=i(2497),bu=i(2082);function Iu(e){return Array.isArray(e)&&0===e.length||S.Z.isEmptyObject(e)}const Su={AlibabaPuHuiTiRegular:"AlibabaPuHuiTiRegular.ttf",BaoTuXiaoBai:"BaoTuXiaoBai.ttf",ChaoJiXi:"ChaoJiXi.ttf",HuXiaoBoNanShenTi:"HuXiaoBoNanShenTi.otf",HuXiaoBoSaoBaoiTi:"HuXiaoBoSaoBaoiTi.otf",HuXiaoBoZhenShuaiTi:"HuXiaoBoZhenShuaiTi.otf",jiangchengyuanti:"jiangchengyuanti.ttf",JiangXiZhuoKaiTi:"JiangXiZhuoKaiTi.otf",LianMengQiYiLuShuaiZhengRuiHeiTi:"LianMengQiYiLuShuaiZhengRuiHeiTi.ttf",MuYaoRuanBiShouShuTi:"MuYaoRuanBiShouShuTi.ttf",PangMenZhengDaoBiaoTiTi:"PangMenZhengDaoBiaoTiTi.ttf",PangMenZhengDaoCuTi:"PangMenZhengDaoCuTi.ttf",PangMenZhengDaoQST:"PangMenZhengDaoQST.otf",QingSongShouXieTi1:"QingSongShouXieTi1.ttf",QingSongShouXieTi2:"QingSongShouXieTi2.ttf",RuiZiZhenYan:"RuiZiZhenYan.ttf",ShuShouTi:"ShuShouTi.ttf",SourceHanSansCN:"SourceHanSansCN.ttf",SourceHanSerifCN:"SourceHanSerifCN.ttf",WenCangShuFang:"WenCangShuFang.ttf",WenDingJianBaoSong:"WenDingJianBaoSong.ttf",WenQuanDengKuanWeiMiHei:"WenQuanDengKuanWeiMiHei.ttf",WenQuanDengKuanZhengHei:"WenQuanDengKuanZhengHei.ttf",WenQuanWeiMiHei:"WenQuanWeiMiHei.ttf",WenQuanZhengHei:"WenQuanZhengHei.ttf",XianErTi:"XianErTi.ttf",XinYeNianTi:"XinYeNianTi.otf",YangRenDongZhuShiTi:"YangRenDongZhuShiTi.ttf",YeGenYouRuiJinTi:"YeGenYouRuiJinTi.ttf",YeGenYouShouZhongQuHua:"YeGenYouShouZhongQuHua.ttf",YeGenYouWeiDian:"YeGenYouWeiDian.ttf",YeGenYouWeiShanYun:"YeGenYouWeiShanYun.ttf",YouSheBiaoTiHei:"YouSheBiaoTiHei.ttf",YuanRouTi:"YuanRouTi.ttf",ZhanKuGaoDianHeiTi:"ZhanKuGaoDianHeiTi.ttf",ZhanKuHeiTi:"ZhanKuHeiTi.ttf",ZhanKuKuaiLeTi:"ZhanKuKuaiLeTi.ttf",ZhanKuWenYiTi:"ZhanKuWenYiTi.ttf",ZhanKuXiaoWei:"ZhanKuXiaoWei.otf",ZhengQingKeHuangYouTi:"ZhengQingKeHuangYouTi.ttf",ZiTiShiJieFaGunTi:"ZiTiShiJieFaGunTi.ttf","Addict Italic1":"Addict Italic1.ttf","Addict Italic2":"Addict Italic2.ttf",Age:"Age.otf",Akrobat:"Akrobat.otf",Aleo:"Aleo.ttf",Archive:"Archive.otf",Arkhip:"Arkhip.ttf",Averta:"Averta.otf",BebasNeue:"BebasNeue.ttf","BERNIER Distressed":"BERNIER Distressed.otf","BERNIER Shade":"BERNIER Shade.otf",BERNIER:"BERNIER.otf","Blogger Sans":"Blogger Sans.ttf",Braxton:"Braxton.otf",BukhariScript:"BukhariScript.otf",Campton:"Campton.otf","Canter Bold Shadow":"Canter Bold Shadow.otf","Canter Bold Strips":"Canter Bold Strips.otf","Canter Bold":"Canter Bold.otf","Canter Bold3D":"Canter Bold3D.otf","Canter Outline":"Canter Outline.otf",Canter:"Canter.otf",Casper:"Casper.ttf","Cheque Black":"Cheque Black.otf",Cheque:"Cheque.otf","Choplin ExtraLight":"Choplin ExtraLight.otf","Choplin Medium":"Choplin Medium.otf",CODE:"CODE.otf",Colus:"Colus.otf",Dan:"Dan.otf",Dekar:"Dekar.otf","Disclaimer Classic":"Disclaimer Classic.otf","Disclaimer Plain":"Disclaimer Plain.otf","Donau Neue Uppercase":"Donau Neue Uppercase.otf","Facet Black":"Facet Black.ttf","Facet Ultra":"Facet Ultra.ttf",File:"File.otf",Gagalin:"Gagalin.otf",Gilam:"Gilam.otf","Glober SemiBold":"Glober SemiBold.otf","Glober Thin":"Glober Thin.otf","GOGOIA Deco":"GOGOIA Deco.otf",GOGOIA:"GOGOIA.otf","Gota Light":"Gota Light.otf",Gota:"Gota.otf",GUERRILLA:"GUERRILLA.otf","Hagin Caps Medium":"Hagin Caps Medium.otf","Hagin Caps Thin":"Hagin Caps Thin.otf","Hero Light":"Hero Light.otf",Hero:"Hero.otf","HighTide Sans":"HighTide Sans.otf",HighTide:"HighTide.otf","Idealist Sans":"Idealist Sans.ttf","Intro Cond Black":"Intro Cond Black.otf","Intro Cond":"Intro Cond.otf","Intro Inline":"Intro Inline.otf",Intro:"Intro.otf",IntroHeadR:"IntroHeadR.otf","IntroRustG Line":"IntroRustG Line.otf","IntroScriptR H2":"IntroScriptR H2.otf",Kankin:"Kankin.ttf","Kelson Sans":"Kelson Sans.otf",LOT:"LOT.otf","Lovelo Black":"Lovelo Black.otf","Lovelo Line":"Lovelo Line.otf","Madras Extra Light":"Madras Extra Light.otf",Metropolis1920:"Metropolis1920.otf",MOD:"MOD.otf","Mont Heavy":"Mont Heavy.otf",Multicolore:"Multicolore.otf","Myra4F Caps":"Myra4F Caps.ttf","Nexa Bold":"Nexa Bold.otf","Nexa Slab":"Nexa Slab.otf",Nexa:"Nexa.otf","NexaRust Handmade":"NexaRust Handmade.otf","NexaRust Sans Black":"NexaRust Sans Black.otf","NexaRust ScriptL":"NexaRust ScriptL.otf","NexaRust Slab BlackShadow":"NexaRust Slab BlackShadow.otf",NexaScript:"NexaScript.otf",Nickainley:"Nickainley.otf",Null:"Null.otf","Oval Single":"Oval Single.otf","Panton Blackitalic Caps":"Panton Blackitalic Caps.otf",Perfograma:"Perfograma.otf","PH-300 CondCaps":"PH-300 CondCaps.otf","PH-400 Caps":"PH-400 Caps.otf",Phenomena:"Phenomena.otf","Portal Black":"Portal Black.otf",Prime:"Prime.otf","Quad Ultra":"Quad Ultra.otf",Quad:"Quad.otf","Rafale RU":"Rafale RU.otf",RBNo2Light:"RBNo2Light.otf",Resphekt:"Resphekt.otf","Rex Bold Inline":"Rex Bold Inline.otf","Rex Bold":"Rex Bold.otf",Rex:"Rex.otf",SAF:"SAF.otf",SantElia:"SantElia.otf","Sensa Sans":"Sensa Sans.otf","SensaBrush Fill":"SensaBrush Fill.otf",Sensei:"Sensei.ttf",Signika:"Signika.ttf",Silverfake:"Silverfake.otf",Slovic:"Slovic.ttf",Solena:"Solena.otf","Sprite Graffiti Shadow":"Sprite Graffiti Shadow.otf","Sprite Graffiti":"Sprite Graffiti.otf",Sreda:"Sreda.otf",Static:"Static.otf","Stiff Staff":"Stiff Staff.otf",Summer:"Summer.otf",Sunday:"Sunday.ttf","Tetra Decorative":"Tetra Decorative.ttf",TETRA:"TETRA.otf",Track:"Track.ttf","Uni Sans Heavy":"Uni Sans Heavy.otf","Uni Sans Thin":"Uni Sans Thin.otf",UniNeue:"UniNeue.otf","VAL Stencil":"VAL Stencil.otf",VAL:"VAL.otf",Vision:"Vision.otf",Weston:"Weston.otf",Yarin:"Yarin.ttf",Zag:"Zag.otf","ZingRust D2":"ZingRust D2.otf","ZingRust L":"ZingRust L.otf","ZingRust Script":"ZingRust Script.otf","ZingRust Sh1":"ZingRust Sh1.otf",ZingRust:"ZingRust.otf","ZingRustL H1 Fill":"ZingRustL H1 Fill.otf","Zona Pro":"Zona Pro.otf",cwTeXQFangSong:"cwTeXQFangSong.ttf",cwTeXQHeiTi:"cwTeXQHeiTi.ttf",cwTeXQKaiTi:"cwTeXQKaiTi.ttf",cwTeXQYuanTi:"cwTeXQYuanTi.ttf","HHZ BoKaTiKongYin":"HHZ BoKaTiKongYin.ttf","HHZ ChaoHeiQiaoPiDongWu":"HHZ ChaoHeiQiaoPiDongWu.ttf","HHZ ChaoMing":"HHZ ChaoMing.ttf","HHZ CuGangTi":"HHZ CuGangTi.ttf","HHZ CuGangTiShiYin":"HHZ CuGangTiShiYin.ttf","HHZ CuGangTiShuangKong":"HHZ CuGangTiShuangKong.ttf","HHZ CuMing":"HHZ CuMing.ttf","HHZ GangBiXingKai":"HHZ GangBiXingKai.ttf","HHZ HaiBaoTiBanTianShui":"HHZ HaiBaoTiBanTianShui.ttf","HHZ KuLiHaiBao":"HHZ KuLiHaiBao.ttf","HHZ TeHei":"HHZ TeHei.ttf","HHZ WeiBeiJianTi":"HHZ WeiBeiJianTi.ttf","HHZ XiHei":"HHZ XiHei.ttf","HHZ XiMing":"HHZ XiMing.ttf","HHZ XinSongJianTi":"HHZ XinSongJianTi.ttf","HHZ XiYuan":"HHZ XiYuan.ttf","HHZ YanTi":"HHZ YanTi.ttf","HHZ ZhengHaiBao":"HHZ ZhengHaiBao.ttf",KeShiLuGangBiHeTi:"KeShiLuGangBiHeTi.ttf",KeShiLuYanTi:"KeShiLuYanTi.ttf",LaiHuZiTi:"LaiHuZiTi.ttf",SiYuanRouHei:"SiYuanRouHei.ttf",TaiBeiHeiTi:"TaiBeiHeiTi.ttf",YuanJieMingChao:"YuanJieMingChao.ttf",YuanYunMingTi:"YuanYunMingTi.ttf",ZhuangJiaMingChao:"ZhuangJiaMingChao.ttf","SourceHanSerifCN-Heavy":"SourceHanSerifCN-Heavy.ttf","SourceHanSerifCN-Bold":"SourceHanSerifCN-Bold.ttf",almmldt:"almmldt.ttf","hs-B":"hs-B.ttf","hs-I":"hs-I.ttf","hs-L":"hs-L.ttf","hs-R":"hs-R.ttf","hsc-B":"hsc-B.ttf","hsc-I":"hsc-I.ttf","hsc-L":"hsc-L.ttf","hsc-R":"hsc-R.ttf","hse-B":"hse-B.ttf","hse-I":"hse-I.ttf","hse-L":"hse-L.ttf","hse-R":"hse-R.ttf","inter-B":"inter-B.ttf","inter-I":"inter-I.ttf","inter-L":"inter-L.ttf","inter-R":"inter-R.ttf","inter-T":"inter-T.ttf","interD-B":"interD-B.ttf","interD-I":"interD-I.ttf","interD-L":"interD-L.ttf","interD-R":"interD-R.ttf","interD-T":"interD-T.ttf","ma-B":"ma-B.otf","ma-I":"ma-I.otf","ma-L":"ma-L.otf","ma-R":"ma-R.otf","mk-I":"mk-I.otf","mk-L":"mk-L.otf","mk-b":"mk-b.otf","mk-r":"mk-r.otf","mn-B":"mn-B.otf","mn-I":"mn-I.otf","mn-L":"mn-L.otf","mn-R":"mn-R.otf","mr-B":"mr-B.otf","mr-I":"mr-I.otf","mr-L":"mr-L.otf","mr-R":"mr-R.otf","ms-B":"ms-B.ttf","ms-I":"ms-I.ttf","ms-L":"ms-L.ttf","ms-R":"ms-R.ttf","msc-B":"msc-B.ttf","msc-I":"msc-I.ttf","msc-L":"msc-L.ttf","msc-R":"msc-R.ttf","mse-B":"mse-B.ttf","mse-I":"mse-I.ttf","mse-L":"mse-L.ttf","mse-R":"mse-R.ttf","mx-B":"mx-B.otf","mx-I":"mx-I.otf","mx-L":"mx-L.otf","mx-R":"mx-R.otf","robote-B":"robote-B.ttf","roboto-I":"roboto-I.ttf","roboto-L":"roboto-L.ttf","roboto-R":"roboto-R.ttf","roboto-T":"roboto-T.ttf","ws-B":"ws-B.ttf","ws-I":"ws-I.ttf","ws-L":"ws-L.ttf","ws-R":"ws-R.ttf","ws-T":"ws-T.ttf",almmdlt:"almmdlt.ttf",almmfyt:"almmfyt.ttf",ceyyt01:"ceyyt01.ttf",ceyyt02:"ceyyt02.ttf",ceyyt03:"ceyyt03.ttf",ceyyt04:"ceyyt04.ttf",ceyyt05:"ceyyt05.ttf",deyihei:"deyihei.ttf",zzjftt:"zzjftt.ttf","cf-B":"cf-B.ttf","cf-I":"cf-I.ttf","cf-L":"cf-L.ttf","cf-M":"cf-M.ttf","cf-R":"cf-R.ttf","domine-B":"domine-B.ttf","domine-M":"domine-M.ttf","domine-R":"domine-R.ttf","domine-SB":"domine-SB.ttf","ds-B":"ds-B.ttf","ds-M":"ds-M.ttf","ds-R":"ds-R.ttf","ds-SB":"ds-SB.ttf","mw-B":"mw-B.ttf","mw-I":"mw-I.ttf","mw-L":"mw-L.ttf","mw-R":"mw-R.ttf","pd-B":"pd-B.ttf","pd-I":"pd-I.ttf","pd-R":"pd-R.ttf",LongZhuTi:"LongZhuTi.ttf","Lxgw975HazyGoSC-200W":"Lxgw975HazyGoSC-200W.ttf","Lxgw975HazyGoSC-300W":"Lxgw975HazyGoSC-300W.ttf","Lxgw975HazyGoSC-400W":"Lxgw975HazyGoSC-400W.ttf","Lxgw975HazyGoSC-500W":"Lxgw975HazyGoSC-500W.ttf","Lxgw975HazyGoSC-600W":"Lxgw975HazyGoSC-600W.ttf",MaokenAssortedSans:"MaokenAssortedSans.ttf","ceym-01":"ceym-01.ttf","ceym-02":"ceym-02.ttf","ceym-03":"ceym-03.ttf","ceym-04":"ceym-04.ttf","ceym-05":"ceym-05.ttf",cezkzd:"cezkzd.ttf","toneoz-B":"toneoz-B.ttf","toneoz-L":"toneoz-L.ttf","toneoz-R":"toneoz-R.ttf",DouyinSansBold:"DouyinSansBold.ttf",ChenYuluoyan:"ChenYuluoyan.ttf","ant-R":"ant-R.ttf","ar-B":"ar-B.ttf","ar-BI":"ar-BI.ttf","ar-I":"ar-I.ttf","ar-R":"ar-R.ttf","bay-R":"bay-R.ttf",bxzwjh:"bxzwjh.ttf","fo-R":"fo-R.ttf","hmp-R":"hmp-R.ttf","ib-B":"ib-B.ttf","ib-Bk":"ib-Bk.ttf","ib-EB":"ib-EB.ttf","ib-EL":"ib-EL.ttf","ib-L":"ib-L.ttf","ib-M":"ib-M.ttf","ib-R":"ib-R.ttf","ib-SB":"ib-SB.ttf","ib-T":"ib-T.ttf","id-R":"id-R.ttf","lr-R":"lr-R.ttf","met-R":"met-R.ttf","mp1-B":"mp1-B.ttf","mp1-Bk":"mp1-Bk.ttf","mp1-H":"mp1-H.ttf","mp1-L":"mp1-L.ttf","mp1-M":"mp1-M.ttf","mp1-R":"mp1-R.ttf","mp1-T":"mp1-T.ttf","ng-B":"ng-B.ttf","ng-EB":"ng-EB.ttf","ng-R":"ng-R.ttf","nscj-B":"nscj-B.otf","nscj-Bk":"nscj-Bk.otf","nscj-DL":"nscj-DL.otf","nscj-L":"nscj-L.otf","nscj-M":"nscj-M.otf","nscj-R":"nscj-R.otf","nscj-T":"nscj-T.otf","nsck-B":"nsck-B.otf","nsck-Bk":"nsck-Bk.otf","nsck-D":"nsck-D.otf","nsck-L":"nsck-L.otf","nsck-M":"nsck-M.otf","nsck-R":"nsck-R.otf","nsck-T":"nsck-T.otf","pd-BI":"pd-BI.ttf","pd-Bk":"pd-Bk.ttf","pd-BkI":"pd-BkI.ttf","pgo-R":"pgo-R.ttf","ps-R":"ps-R.ttf","rg-R":"rg-R.ttf","ro-R":"ro-R.ttf","shsj-B":"shsj-B.otf","shsj-EL":"shsj-EL.otf","shsj-H":"shsj-H.otf","shsj-L":"shsj-L.otf","shsj-M":"shsj-M.otf","shsj-N":"shsj-N.otf","shsj-R":"shsj-R.otf","shsk-B":"shsk-B.otf","shsk-E":"shsk-E.otf","shsk-H":"shsk-H.otf","shsk-L":"shsk-L.otf","shsk-M":"shsk-M.otf","shsk-R":"shsk-R.otf","shsk-SB":"shsk-SB.otf","shskr-B":"shskr-B.otf","shskr-E":"shskr-E.otf","shskr-H":"shskr-H.otf","shskr-L":"shskr-L.otf","shskr-M":"shskr-M.otf","shskr-N":"shskr-N.otf","shskr-R":"shskr-R.otf","shspcj-B":"shspcj-B.otf","shspcj-EL":"shspcj-EL.otf","shspcj-H":"shspcj-H.otf","shspcj-L":"shspcj-L.otf","shspcj-M":"shspcj-M.otf","shspcj-R":"shspcj-R.otf","shspcj-SB":"shspcj-SB.otf","sta-R":"sta-R.ttf","swg-R":"swg-R.ttf","swm-R":"swm-R.ttf","vl-R":"vl-R.ttf","wo-R":"wo-R.ttf"};var Pu=i(6378);function Tu(e){e.props&&(e.props.forEach((e=>{Array.isArray(e.css)&&0===e.css.length&&(e.css={})})),Array.isArray(e.props)&&e.props.length>0&&Array.isArray(e.props[0])&&0===e.props[0].length&&(e.props[0]={}))}var $u=i(5256);const ku=new class{constructor(){(0,f.Z)(this,"webp",!0)}getSuffix(e){if("flip"===th.Hq)return"";return window.bookConfig&&window.bookConfig.useTheAliCloudChart?`?x-oss-process=image/${this.webp?"format,webp/":""}auto-orient,0/resize,l_${e}`:""}};function Lu({item:e,collectRes:t,resMap:i,isSpItem:s,pageIndex:n}={collectRes:!1,resMap:new Map}){e.pageIndex=n,t||s||(function(e){if("music"!==e.type&&"foreground"!==e.type){let t=e.animations;Tu(t.in);let i=parseFloat(e.style.left),s=parseFloat(e.style.width),n=parseFloat(e.style.top),o=s/2,r=parseFloat(e.style.height)/2;if(void 0===e.differData&&void 0!==e.controlPoint){let t=e.controlPoint.c1[0]-(i+o),s=e.controlPoint.c1[1]-(n+r);e.differData=[t,s],delete e.controlPoint}let a=t.out;if(Tu(a),void 0!==a.name&&0===a.name.indexOf("笔画退出")){let e=a.props[0],t=a.props[1];void 0===e.opacity&&(e.opacity=1),void 0!==t.opacity&&delete t.opacity}}if("text"===e.type&&void 0!==e.gradient){let t=e.gradient;void 0!==t.startColor&&(t.isLinear=!0,t.colorList=[{percent:"0%",color:t.startColor},{percent:"100%",color:t.endColor}],t.gradientType="linear",t.gradientDeg=t.horizontal?90:180,delete t.startColor,delete t.endColor,delete t.horizontal)}if("effect"===e.type&&void 0!==e.isHotSpotEffect&&e.isHotSpotEffect&&(e.isLoop=!0,e.isAutoPlay=!0),"frames"===e.type){const{imageList:t,fileNameList:i,imageInfor:s}=e;if(t&&(t.find((e=>(0,Pu.Z)(e)))||0===t.length)){const n=0!==t.length?i.map(((e,t)=>new m.L({fileName:e,isNewFile:!1,imageInfor:s[t]}))):[new m.L];e.imageList=n}}}(e),function(e){const t=e.animations.in;t.isAlways?e.existStartTime=-1:e.existStartTime=t.delay}(e),function({item:e}){void 0!==e.actionList&&(S.Z.isEmptyObject,void 0!==e.actionList&&(e.actionList=e.actionList.map((t=>{const i=new bu.i(t),{comment:s,addWechat:n,linkList:o,openPage:r,phone:a,iframe:l,attachmentFile:d,popupMsg:h,popupImg:c,popupVideo:u,runJavaScript:p,playAudio:m,showOrHideList:g,animationList:f,showArticle:w,zoomArea:y,quiz:v}=t,{rotateX:x,rotateY:C,fileName:b}=e;return Iu(s)||(i.comment=new mu.W(s)),Iu(n)||(i.addWechat=new uu.$O(n)),Iu(o)||(i.linkList=new gu.W(o)),Iu(r)||(i.openPage=new fu.w(r)),Iu(a)||(i.phone=new wu.G(a)),Iu(l)||(i.iframe=new yi.X(l)),Iu(d)||(i.attachmentFile=new pu.t(d)),Iu(h)||(i.popupMsg=new si.s(h)),Iu(c)||(c.rotateX=x,c.rotateY=C,c.fileName=b,i.popupImg=new ti.Y(c)),Iu(u)||(i.popupVideo=new li.J(u)),Iu(p)||(i.runJavaScript=new vu.G(p)),Iu(m)||(i.playAudio=new yu.QB(m)),Iu(y)||(i.zoomArea=new Cu.m(y)),Iu(v)||(i.quiz=new Ti.C(v)),g&&g.length&&(i.showOrHideList=g.map((e=>he(e)))),f&&f.length&&(i.animationList=f.map((e=>he(e)))),Iu(w)||(i.showArticle=new xu.h(w)),i}))))}({item:e})),function({item:e,collectRes:t,resMap:i}){const{actionList:s}=e;s&&e.actionList.forEach((e=>{const{popupImg:s,addWechat:n,popupMsg:o,popupVideo:r}=e;if((0,Cc.Z)(s)||(0,Cc.Z)(s.imgList)||s.imgList.forEach((e=>{const{url:s,fileName:n}=e;if(s&&-1===s.indexOf("upload-control/files")||n)if(t)i.set(n,Eu(n));else{const t=Math.ceil(Math.max(window.innerWidth*window.devicePixelRatio,window.innerHeight*window.devicePixelRatio));e.url=Au(n,!0,t)}})),!(0,Cc.Z)(n)&&!(0,Cc.Z)(n.imgList)){n.imgList.forEach((e=>{const{fileName:s}=e;t?i.set(s,Eu(s)):e.url=Au(s)}));const{logoObj:e}=n;(0,Cc.Z)(e)||(0,Cc.Z)(e.fileName)||(t?i.set(e.fileName,Eu(e.fileName)):e.url=Au(e.fileName))}if(!(0,Cc.Z)(o)&&!(0,Cc.Z)(o.imageOpts)&&o.imageOpts.name){const{imageOpts:e}=o,s=e.name;t?i.set(s,Eu(s)):e.imageUrl=Au(s)}if(!(0,Cc.Z)(r)&&!(0,Cc.Z)(r.videoInfo)){const{videoInfo:e}=r;t?i.set(e.videoName,Eu(e.videoName)):e.localLink=Au(e.videoName)}const{playAudio:a}=e;if(!(0,Cc.Z)(a)){const{audioList:e,specifyAudioList:s}=a;(0,Cc.Z)(e)||e.forEach((e=>{const s=e.fileName;t?i.set(s,Eu(s)):e.localLink=Au(s)})),(0,Cc.Z)(s)||Array.isArray(s)&&s.length>0&&s.forEach((e=>{void 0!==e.musicList&&Array.isArray(e.musicList)&&e.musicList.length>0&&e.musicList.forEach((e=>{const s=e?.fileName;t?i.set(s,Eu(s)):e.url=Au(s)}))}))}const{attachmentFile:l}=e;if(!(0,Cc.Z)(l)&&!(0,Cc.Z)(l.fileObject)&&!(0,Cc.Z)(l.fileObject.fileName)){const{fileObject:e}=l,s=e.fileName;t?i.set(s,Eu(s)):e.url=Au(s)}if(void 0!==e.zoomArea&&e.zoomArea.thumbFileName){const s=e.zoomArea.thumbFileName;t?i.set(s,Eu(s)):e.zoomArea.thumbSrc=Au(s)}}))}({item:e,collectRes:t,resMap:i});const{type:o}=e;let r=null;switch(o){case"text":{const{isUploadedFont:s,systemFontToSvg:n,uploadedFontFileName:o,innerTextStyle:a}=e,{fontFamily:l}=a;if(t)n||(s?i.set(o,Eu(o)):Su[l]&&i.set(Su[l],Eu(Su[l])));else{const{svgText:t,isSubtitle:i}=e;t&&(t.svgCode="",void 0!==t.originalSvgCode&&""!==t.originalSvgCode&&(t.svgCode=t.originalSvgCode)),n||(s?e.uploadFontUrl=Au(o):Su[l]&&(e.minFontUrl=Au(Su[l]))),r=i?new P(e):new v(e)}break}case"image":{const{isSprite:s,gifs:n,fileName:o,id:a}=e;if(t)s?n.forEach((e=>{e.fileName.forEach(((t,s)=>{i.set(t,Eu(t));const n=yc(e.jsonUrl[s]);i.set(n,Eu(n))}))})):i.set(o,Eu(o));else{if(s)n.forEach((e=>{e.grids=[];const t=[],i=[];e.fileName.forEach(((s,n)=>{t.push(Au(s));const o=yc(e.jsonUrl[n]);i.push(Au(o))})),e.image=t,e.jsonUrl=i}));else{const t=2*Math.ceil(Math.max(parseFloat(String(e.style.width)),parseFloat(String(e.style.height))));e.url=Au(o,!0,t)}r=new x(e)}break}case"svg":{const{isQRCode:s,fileName:n,parseSvgType:o}=e;t?!s&&n&&i.set(n,Eu(n)):(!s&&n&&(e.svgUrl=Au(n),e.parseSvgType=2),r=new h.Z(e));break}case"chart":t||(r=new u(e));break;case"baseShape":t||(r=new p(e));break;case"frames":{const{fileName:s,imageList:n}=e;t?(i.set(s,Eu(s)),n.forEach((e=>{const{fileName:t}=e;t&&i.set(t,Eu(t))}))):(e.jsonUrl=Au(s),n.forEach((t=>{const i=2*Math.ceil(Math.max(parseFloat(String(e.style.width)),parseFloat(String(e.style.height)))),{fileName:s}=t;s&&(t.url=Au(s,!0,i))})),r=new g(e));break}case"swiper":{const{swiperOpts:s}=e;if(s){if(s.sliderFill)for(const n of s.sliderFill){const{name:s}=n;if(t)i.set(s,Eu(s));else{const t=2*Math.ceil(Math.max(parseFloat(String(e.style.width)),parseFloat(String(e.style.height))));n.url=Au(s,!0,t)}}if(void 0!==s.parallaxBackgroundImage){const n=s.parallaxBackgroundImage,o=n.name||"";if(o)if(t)i.set(o,Eu(o));else{const t=2*Math.ceil(Math.max(parseFloat(String(e.style.width)),parseFloat(String(e.style.height))));n.url=Au(o,!0,t)}}Xs()&&(s.autoplay=!1)}t||(r=new F(e));break}case"transShape":t||(r=new I(e));break;case"component":t||(r=new _(e));break;case"effect":{const{fileName:s}=e;t?i.set(s,Eu(s)):(e.jsonUrl=Au(s),e.hasLoadedJson=!1,Xs()&&(e.isAutoPlay=!1),r=new $(e));break}case"music":{const{fileName:s,audioInfo:n}=e;t?i.set(s,Eu(s)):(n.url=Au(s),e.style={top:"0px",left:"0px",width:"20px",height:"20px",opacity:1},e.isHidden=!1,r=new C(e));break}case"video":{const{fileName:s,videoInfo:n}=e;t?i.set(s,Eu(s)):(n.url=Au(s),r=new b(e));break}case"link":t||(r=new k(e));break;case"quiz":t||(r=new J(e));break;case"like":t||(r=new L(e));break;case"phone":t||(r=new M(e));break;case"pluginVideo":{const{pluginVideoType:s,fileName:n,thumbUrlFileName:o,defaultPosterFilename:a}=e;t?(2===s&&i.set(n,Eu(n)),o&&i.set(o,Eu(o)),a&&i.set(a,Eu(a))):(2===s&&(e.videoInfo.url=Au(n)),o&&(e.thumbUrl=Au(o)),a&&(e.defaultPosterUrl=Au(a)),Xs()&&(e.moviePlayTriggerEvt="none"),r=new A(e));break}case"pluginMusic":{const{pluginVideoType:s,fileName:n,musicList:o}=e;t?o&&o.forEach((e=>{i.set(e.fileName,Eu(e.fileName))})):(o&&o.forEach((e=>{e.url=Au(e.fileName)})),Xs()&&(e.moviePlayTriggerEvt="none"),r=new E(e));break}case"button":{const{iconType:s,iconHref:n}=e.buttonIcon,{isUploadedFont:o,uploadedFontFileName:a,fontFamily:l}=e.buttonFont;t?("svg"===s&&n&&i.set(n,Eu(n)),o?i.set(a,Eu(a)):Su[l]&&i.set(Su[l],Eu(Su[l]))):(o?e.buttonFont.uploadFontUrl=Au(a):Su[l]&&(e.buttonFont.minFontUrl=Au(Su[l])),"svg"===s&&n&&(e.buttonIcon.url=Au(n)),r=new W(e));break}case"iframe":t||(r=new Y(e));break;case"table":{const{tableList:s}=e;t?s.forEach((e=>{e.forEach((e=>{const{isUploadedFont:t,uploadedFontFileName:s}=e;if(t)e.uploadFontUrl=Au(s),i.set(s,Eu(s));else{const t=e.innerTextStyle.fontFamily;Su[t]&&i.set(Su[t],Eu(Su[t]))}}))})):(e.tableList=e.tableList.map((e=>e.map((e=>{const{isUploadedFont:t,uploadedFontFileName:i}=e;if(t)e.uploadFontUrl=Au(i);else{const t=e.innerTextStyle.fontFamily;Su[t]&&(e.minFontUrl=Au(Su[t]))}return new $u.p(e)})))),r=new U(e));break}case"pagination":{const{isUploadedFont:s,uploadedFontFileName:n,innerTextStyle:o}=e;if(t)if(s)i.set(n,Eu(n));else{const t=e.innerTextStyle.fontFamily;Su[t]&&i.set(Su[t],Eu(Su[t]))}else{if(s)e.uploadFontUrl=Au(n);else{const t=e.innerTextStyle.fontFamily;Su[t]&&(e.minFontUrl=Au(Su[t]))}r=new q(e)}break}case"map":t||(r=new X(e));break;case"tooltip":t||(r=new Q(e));break;case"fontIcon":t||(r=new K(e));break;case"htmlDom":t||(r=new ee(e));break;default:r=new c.Z(e)}return s||function({item:e,collectRes:t,resMap:i}){const{animationFiles:s,animations:n}=e;if(!(0,Cc.Z)(s)){const{maskFiles:e}=s,o=n.in,r=n.out;if(!(0,Cc.Z)(e)){const s=e.in;if(_u(o)){const{fileName:e}=s;t?i.set(e,Eu(e)):s.url=Au(e)}else s.url="";const n=e.out;if(_u(r)){const{fileName:e}=n;t?i.set(e,Eu(e)):n.url=Au(e)}else n.url=""}const{maskImageFile:a}=s;if(!(0,Cc.Z)(a)){const{fileName:e}=a;""!==e&&(t?i.set(e,Eu(e)):a.url=Au(e))}const{handPaintedFiles:l,scrawlFiles:d}=s;if(!(0,Cc.Z)(l)||!(0,Cc.Z)(d)){let e=l.in;if(["scrawl","painted"].includes(o.type)&&("scrawl"===o.type&&(e=d.in),""===e.handId&&(e.handId=-1),-1!==e.handId)){const{fileName:s}=e;t?i.set(s,Eu(s)):e.url=Au(s)}}const{outEraseFiles:h}=s;if(!(0,Cc.Z)(h)){let e=h.out;if("outErase"===r.type&&(""===e.handId&&(e.handId=-1),-1!==e.handId)){const{fileName:s}=e;t?i.set(s,Eu(s)):e.url=Au(s)}}}}({item:t?e:r,collectRes:t,resMap:i}),t||function(e){du.forEach((t=>{const i=t.split(".").reduce(((e,t)=>{if(!(0,Cc.Z)(e)&&!(0,Cc.Z)(e[t]))return cu(e[t])?e[t]:{target:e,key:t}}),e);cu(i)&&((0,Cc.Z)(i.target)&&(0,Cc.Z)(i.key)?Object.freeze(i):hu(i.key,i.target))}));const t=Yc.slice(0);switch(e.type){case"text":t.push(...jc);break;case"image":t.push(...Uc);break;case"baseShape":t.push(...Xc);break;case"svg":t.push(...qc);break;case"frames":t.push(...Qc);break;case"button":t.push(...Kc);break;case"iframe":t.push(...Jc);break;case"like":t.push(...eu);break;case"link":t.push(...tu);break;case"pluginMusic":t.push(...iu);break;case"pluginVideo":t.push(...su);break;case"swiper":t.push(...nu);break;case"table":t.push(...ou);break;case"transShape":t.push(...ru);break;case"chart":t.push(...au);break;case"tooltip":t.push(...lu)}t.forEach((t=>{hu(t,e)}))}(r),r}function Mu({items:e,collectRes:t,pageIndex:i}={collectRes:!1}){const s=new Map,n=e.map((e=>{if("group"!==e.type)return Lu({item:e,collectRes:t,resMap:s,isSpItem:e.isSubtitle,pageIndex:i});{const{items:n,pageResList:o}=Mu({items:e.items,collectRes:t,pageIndex:i});if(!t){const o=Lu({item:e,collectRes:t,resMap:s,pageIndex:i});return o.items=n,o.items.forEach((e=>{e.isGroupItem=!0,e.groupStyle=o.style})),o}o.forEach((e=>{s.set((0,_i.Z)("temp_"),e)}))}}));return t?{pageResList:[...s.values()]}:{pageResList:[],items:n}}function Eu(e){return`${gc.getHost()}${e}`}function Au(e,t=!1,i=720){let s=Eu(e);if(["png","jpg","jpeg"].includes(function(e){const t=fc.basename(e),i=-1===t.lastIndexOf("?")?t.length:t.lastIndexOf("?"),s=t.indexOf(".");return t.slice(s+1,i)}(e).toLowerCase())&&t){s+=`${ku.getSuffix(i)}`}return mc.getPrivateRes(s)}function _u(e){return"mask"===e.type&&"svg"===e.props[0].maskType}class Wu{get _animeFinish(){return this.animeTime>=this.pageTotalTime}get _pageIsReady(){return this.counter.lottie<=this.readyCounter.lottie&&this.counter.font<=this.readyCounter.font&&this.counter.swiper<=this.readyCounter.swiper}forceRead(){this.counter=new bc}constructor(e={}){(0,f.Z)(this,"pageIndex",0),(0,f.Z)(this,"page",new oe.I),(0,f.Z)(this,"pageConfig",{pageWidth:736,pageHeight:414}),(0,f.Z)(this,"counter",new bc),(0,f.Z)(this,"readyCounter",new bc),(0,f.Z)(this,"pageIsReady",!1),(0,f.Z)(this,"animeTime",0),(0,f.Z)(this,"pageTotalTime",0),(0,f.Z)(this,"videoSeeked",0),(0,Cc.Z)(e.pageIndex)||(this.pageIndex=e.pageIndex),(0,Cc.Z)(e.page)||(this.page=e.page),(0,Cc.Z)(e.pageConfig)||(this.pageConfig=e.pageConfig)}parse(e){return function(e,t,i){const s=e,{items:n}=Mu({items:s.items,collectRes:!1,pageIndex:t});s.items=n;const{items:o}=Mu({items:s.subtitle.items,collectRes:!1,pageIndex:t});return s.subtitle.items=o,e}(e,this.pageIndex,this.pageConfig)}collectPageRes(e){return Mu({items:e.items,collectRes:!0})}collectPageMedia(e,t=!1,i=0){return Ic({items:e.items,isMobile:t,pageIndex:i})}load(e,t,i=(()=>{}),s=new Wu){const{counter:n,fetchHandle:o}=function({page:e,pageIndex:t,callback:i,pageTool:s}){const{items:n,subtitle:o}=e;return n.forEach(((e,n)=>{Rc({item:e,pageIndex:t,itemIndex:n,bet:i,pageTool:s})})),o.items.forEach((e=>{Rc({item:e,pageIndex:t,pageTool:s})})),{fetchHandle:Promise.all(zc)}}({page:e,pageIndex:t,callback:i,counter:this.counter,pageTool:s});return o.then((()=>{})).catch((e=>{})).finally((()=>{}))}checkAnime(e=0){}updateVideoSeeked(e=!1){e?this.videoSeeked=0:this.videoSeeked++}}function Fu(e="1000",t="1000",i="0",s="-850",n="red",o="yellow",r="10"){const a=document.createElementNS("http://www.w3.org/2000/svg","rect");return a.setAttribute("width",e),a.setAttribute("height",t),a.setAttribute("stroke",n),a.setAttribute("fill",o),a.setAttribute("stroke-width",r),a.setAttribute("x",i),a.setAttribute("y",s),a}function Ou(){return new Promise((e=>{setTimeout(e,0)}))}async function Bu(e){let t=performance.now()+50;for(;e.length>0;){t=performance.now()+50;const i=e.shift()();i&&i instanceof Promise&&await i,await Ou()}}let Zu=0;var Hu={name:"Loading",props:["page","pageIndex"],computed:{},methods:{getPreviewStyle:function(){if(!this.page)return"";let e="";return this.page.previewImage?e=this.page.previewImage:window.bookConfig&&window.bookConfig.previewPath&&window.bookConfig.previewSuffix&&(e=window.bookConfig.previewPath+(this.pageIndex+1)+"."+window.bookConfig.previewSuffix),e?e.indexOf("none")>-1?{background:"#fff"}:e?{background:`url(${e}) center center no-repeat`,"background-size":"cover"}:void 0:e}}},Nu=(0,ot.Z)(Hu,(function(){var e=this._self._c;return e("div",{staticClass:"loading_layer"},[e("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])}),[],!1,null,"1b414a41",null).exports;let zu=1e3/30;var Ru={name:"app",data:function(){return{plugins:[hc.Z,cc.C,uc.Z,De.SX,De.qD,De.EA,De.Lp,De.Aq,De.Yp,De.bJ,we.eJ,we.tQ,we.sm,we.l6,we.Dd,we.NB,we.zO,we.Au,we.Yv,we.$p],currentPage:null,pageIndex:"",pageTimeline:null,autoPlayArray:[],pageVideoItems:[],replayTimer:null,linkFlashTimlineMap:new Map,isLoadingRes:!1,isCreatingAnime:!1,seekTime_ms:0,totalFrames:0,handleFrames:0,playTimer:null,pageModel:new Wu,textItemList:[],isRunAnime:!1}},provide:function(){return{getCurrentPage:()=>this.currentPage,getPageModel:()=>this.pageModel}},mounted:async function(){this.checkMobileFontSize();const{pageIndex:e}=this.$root;this.parseAgent(),mc.checkCurrentHrefCode(),await this.isSupportWebpTest();let t=[],i={};th.aA?await vc(th.zD).then((s=>{window.readerConfig={pages:s.pages,pageConfig:s.pageConfig},t=s.pages[e],i=s.pageConfig})):(t=me.P6.copy(window.readerConfig.pages[e],!0),i=window.readerConfig.pageConfig),this.$store.commit("SAVE_PAGE_CONFIG",{pageConfig:i});let s=this.getCurrentInverseList(e);if(s&&(t.insertPageLink=s),t=(0,ih.j)([t])[0],t=ae([t],i)[0],this.isHasItems(t)&&(this.isLoadingRes=!0),window.bookConfig&&window.bookConfig.isEncryptionBook){const e=mc.collectPagePrivateRes(t,this.pageModel);e.length>0&&await function(e){const t=window.BookRestrict?window.BookRestrict.getRestrictToken():"",i=window.restrictUrl?window.restrictUrl:"";return r.Z.post(i,{token:t,urls:JSON.stringify(e)}).then((e=>{if("ok"===e.data.code.toLocaleLowerCase())return e.data.data})).catch((e=>({})))}(e).then((e=>{Object.keys(e).forEach((t=>{const i=e[t];mc.add(i)}))})).catch((()=>({})))}this.pageModel.pageIndex=e,this.pageModel.pageConfig=i,this.pageModel.pageTotalTime=t.totalTime??2,this.totalFrames=Math.floor(1e3*this.pageModel.pageTotalTime/zu);1e3*this.pageModel.pageTotalTime%zu>0&&this.totalFrames++,t=this.pageModel.parse(t);const{videoItems:n,audioItems:a,autoPlayArray:l}=this.pageModel.collectPageMedia(t,this.isPhone,e);if(this.autoPlayArray.push(...l),this.pageVideoItems.push(...n),this.initAutoPlayList(e),this.$root.lazy){const i=t.items;t.items=[];const s=t.subtitle.items;t.subtitle.items=[];const n=this;await Bu([function(){n.currentPage=t},function(){n.setPageSizeStyle()},n.setPageSizeStyle,function(){n.pageIndex=e},function(){return async function(e,t,i){for(;t.length>0;){const i=t.shift();e.items.push(i),5===Zu?(Zu=0,await Ou()):Zu++}for(;i.length>0;){const t=i.shift();e.subtitle.items.push(t),5===Zu?(Zu=0,await Ou()):Zu++}}(n.currentPage,i,s)}])}else{const i=this;await Bu([function(){i.currentPage=t},function(){i.setPageSizeStyle()},i.setPageSizeStyle,function(){i.pageIndex=e}])}this.updatePageAnimeTime(0),this.updatePageAnimeTotalTime(t.totalTime),this.pageModel.load(t,e,(()=>{}),this.pageModel).then((()=>{this.$nextTick((()=>{this.createAnime({page:t,pageIndex:e,isFirstTime:!0}),this.isLoadingRes=!1,o.Q.$emit(`PAGE_FINISHED_${e}`,e)}))})),this.addListern()},beforeDestroy:function(){},computed:{pageConfig:function(){return this.$store.state.pageConfig},animeTimeObj:function(){return this.$store.state.animeTime},animeTime:function(){return this.animeTimeObj[this.pageIndex]},isPhone:function(){return window.isPhone&&window.isPhone()||window.isPad&&window.isPad()},viewScale:function(){let e=this.pageConfig,t=this.currentPage.width/e.originPageWidth,i=this.currentPage.height/e.originPageHeight,s=Math.min(t,i),n=e.originPageWidth/e.originPageHeight,o=Math.ceil(e.originPageWidth*s),r=o/n,a=o/e.originPageWidth,l=r/e.originPageHeight;return Math.min(a,l)}},watch:{},methods:{parseAgent(){const e=navigator.userAgent.toLowerCase();e.match(/i(?:pod|phone|pad)|android|wpdesktop|blackberry|mobile|windows phone/gi)&&this.$store.commit("NAVIGATOR_INFO",{isMobile:!0}),e.match(/macintosh|pad|ipad/gi)&&this.$store.commit("NAVIGATOR_INFO",{isPad:!0}),e.match(/iphone|ipod|ipad|ios/g)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!0}),e.match(/macintosh|mac os x/gi)&&!e.match(/mobile/gi)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!1})},checkMobileFontSize(){const e=document.createElement("div");e.style="font-size:12px;",document.body.appendChild(e);var t=parseInt(window.getComputedStyle(e,null).getPropertyValue("font-size"));document.body.removeChild(e);const i=12/t;this.$store.commit("UPDATE_FONT_SCALE",i)},getCurrentInverseList:function(e){if(window.inverseEditor&&"[object Array]"===Object.prototype.toString.call(window.inverseEditor)&&window.inverseEditor.length&&window.inverseEditor[e]&&window.inverseEditor[e].length){if(window.articleConfig&&window.articleConfig.hotArea){let i=window.articleConfig.hotArea,s=window.inverseEditor[e];for(var t=0;t{t&&"load"===t.type?this.$store.commit("IS_SUPPORT_WEBP",{isSupport:1===e.width}):this.$store.commit("IS_SUPPORT_WEBP",{isSupport:!1}),e=null};return new Promise((function(i){e.onload=e=>{t(e),i()},e.onerror=e=>{t(e),i()},e.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="}))},searchSvgText(e,t=!1){for(let i=0;i1&&t.removeChild(t.children[0]),o+=t.getAttribute("data-text")}if(i)return;const r=o.indexOf(t);for(let e=r;e{window.vuePopDom.initAutoplayList(this.autoPlayArray,e+1)}))},checkVuePopDom:async function(){for(;void 0===window.vuePopDom;)await new Promise((e=>window.setTimeout(e,1e3)))},pauseAnimeByTrigger:function({indexArr:e,seekTime:t}){if(!this.pageTimeline)return;this.pageTimeline.getChildren(!0,!1,!0).map((i=>{e.includes(i.id)&&i.pause(t)}))},addListern(){o.Q.$on(`SEEK_TIMELINE_INEND_${this.pageIndex}`,this.pauseAnimeByTrigger),o.Q.$on(`CANCEL_LINK_ANIME_${this.pageIndex}`,(e=>{if(this.linkFlashTimlineMap.has(e)){tt(this.linkFlashTimlineMap.get(e)),this.linkFlashTimlineMap.delete(e)}}))},removeListern(){o.Q.$off(`CANCEL_LINK_ANIME_${this.pageIndex}`),o.Q.$off(`SEEK_TIMELINE_INEND_${this.pageIndex}`)},createAnime:function({page:e,pageIndex:t,isFirstTime:i=!1}){this.isCreatingAnime=!0;let s=e.items,n=new pe.ZP({paused:!0});this.textItemList=[],s.forEach(((e,i)=>{if("link"===e.type){let t=new pe.ZP({});this.linkFlashTimlineMap.set(e.id,t),t.to(`#ItemLayout${e.id}`,.5,{background:e.style.hoverColor}).to(`#ItemLayout${e.id}`,.5,{background:e.style.background}),n.add(t,0)}let{itemTimeline:s}=et({item:e,index:i,isGroupItem:!1,groupKey:-1,curTimeScale:this.curTimeScale,viewScale:this.viewScale,pageIndex:t});s&&(s.seek("in"),s.id=e.id,n.add(s,0)),((e,t)=>{if(!Array.isArray(e))return;if("text"!==t?.type||!t?.overflow)return;const i=document.querySelector(`#anime${t?.id}`);i&&e.push({el:i,textItem:t})})(this.textItemList,e)})),this.setStayTimeline(e,n),this.setSpecialyItemAnime(e,n,t);const o=new pe.ZP({delay:0});o.to("fakedom",e.totalTime,{a:1}),n.add(o,0),this.pageTimeline=n,this.isCreatingAnime=!1,this.pageTimeline.eventCallback("onStart",(()=>{this.isRunAnime=!0})),this.pageTimeline.eventCallback("onUpdate",this.pageTimelineUpdate,["{self}"]),this.pageTimeline.eventCallback("onComplete",(()=>{this.pageTimelineComplete(e)}))},pageTimelineStart:function(){},updatePageAnimeTime(e){this.pageModel.animeTime=e,this.$store.commit("UPDATE_PAGE_TIME",{pageIndex:this.pageIndex,time:e})},updatePageAnimeTotalTime(e){this.$store.commit("UPDATE_PAGE_TOTAL_TIME",{pageIndex:this.pageIndex,time:e})},pageTimelineUpdate:function(){let e=this.pageTimeline.duration()*this.pageTimeline.progress();this.updatePageAnimeTime(e)},pageItemHasAnime:function(e){if(0===e.items.length)return!1;let t=!1;const i=e.items;for(let e=0;e0){t=!0;break}}return t},pageTimelineComplete:function(e){if(!this.$store.getters.isH5Pro||!this.isRunAnime)return;if(!this.pageItemHasAnime(e))return;if(void 0===window.BookInfo||void 0===window.bookConfig)return;if(!window.bookConfig?.autoFlipPageOnTimelineEnd)return;const t=window.BookInfo.getCurrentPages();if(1===t.length&&"function"==typeof window.nextPageFun&&window.nextPageFun(),t.length>1){const e=this.pageIndex+1,i=t.findIndex((t=>t===e)),s=t[0===i?1:0]-1,n=this.$store.state.animeTotalTime;n[s]||"function"!=typeof window.nextPageFun||window.nextPageFun(),n[this.pageIndex]>=n[s]&&"function"==typeof window.nextPageFun&&window.nextPageFun()}this.isRunAnime=!1},setSpecialyItemAnime:function(e,t,i){vt.forEach((s=>{if("subtitle"===s)e.subtitle.isEnable&&this.setSubtitleTimeline(e,t,i)}))},setSubtitleTimeline:function(e,t){let i=new pe.ZP({});e.subtitle.items.forEach(((e,t)=>{let s="#anime"+e.id,n=new pe.ZP({}),o=e.animations.delay;Qe.setSubtitleAnime({subtitle:e,subTimeline:n,target:s,subtitleIndex:t}),i.add(n,"subtitleStart"+t).addLabel("subtitleEnd"+t);let r=i.getLabelTime("subtitleStart"+t)+o,a=i.getLabelTime("subtitleEnd"+t);e.existStartTime=r,e.existEndTime=a})),t.add(i,0)},setStayTimeline:function(e,t){let i=e.totalTime,s=e.stayTotalTime;if(s>0&&s!==i){let e=new pe.ZP({delay:i-s}),n={a:0};e.to(n,s,{a:1}),t.add(e,0)}},seek:function(e){e<0&&(e=0),e>this.pageModel.pageTotalTime&&(e=this.pageModel.pageTotalTime),this.pageTimeline&&(this.pageTimeline.seek(e,!1),Xs()?this.seekVideo(e):(this.audioPause(!0),this.videoPause(!0)))},seekVideo(e){this.currentPage.items.forEach((t=>{if("video"===t.type){const{videoInfo:i,id:s}=t,{duration:n,delay:o}=i,r=n+o,a=document.querySelector(`#video${s}`);if(e>=o&&e{-1!==t.getLabelTime("inEnd")&&(void 0!==e?-1===e?t.pause():t.pause(e):t.pause("inEnd"))}))},destory:function(){this.removeListern(),this.clearTimeline(),this.autoPlayArray=[],this.$store.commit("CLEAR_PAGE",{pageIndex:this.pageIndex}),this.currentPage=null,this.pageIndex=""},clearTimeline:function(){this.pageTimeline&&(this.pageTimeline.eventCallback("onUpdate",null),this.pageTimeline.pause(),this.pauseItemAnimeInEnd(),this.pageTimeline.kill(),this.pageTimeline=null,this.audioPause(),this.videoPause())},play:function(e){this.pageTimeline?(this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!0}),this.pageTimeline.play(),this.audioOrVideoPlay()):(this.playTimer&&clearTimeout(this.playTimer),this.playTimer=setTimeout(this.play.bind(this),100))},pauseToInEnd:function(){this.pageTimeline&&(this.pageTimeline.pause(),this.pauseItemAnimeInEnd(),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!1}))},clearActionAnime:function(){o.Q.$emit(`CLEAR_ACTION_ANIME_${this.pageIndex}`)},pause:function(e,t=!1){this.pageTimeline&&(this.pageTimeline.pause(),this.audioPause(t),this.videoPause(t),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!1}))},replay:function(){(async({mountEl:e=[],closeDelay:t=1500,showDelay:i=1e3})=>{if(!T.Z.getters.isYZPro||!gt()||0===e.length)return;const s=ft(e);await wt(i),s.forEach((async(e,i)=>{const s=new(d.default.extend(mt));s.$mount();const n=s.$mount().$el,o=()=>{e.el.contains(n)&&(s.$destroy(),e.el.removeChild(n))};await wt(1e3*i),e.el.querySelector(".ScrollbarTextTips")||(e.el.appendChild(n),await wt(t)),o()}))})({mountEl:this.textItemList}),this.replayTimer&&(clearTimeout(this.replayTimer),this.replayTimer=null),this.pageTimeline?(o.Q.$emit(`CLEAR_ACTION_ANIME_${this.pageIndex}`),this.seekTime_ms=0,this.handleFrames=0,this.creatPageAnime(),this.pageTimeline.play(),this.audioOrVideoPlay(),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!0})):this.replayTimer=setTimeout(this.replay.bind(this),100)},creatPageAnime:function(){if(this.pageTimeline){this.clearTimeline();let e=this.pageIndex;this.createAnime({page:this.currentPage,pageIndex:e}),this.$store.commit("UPDATE_PAGE_STATUS",{pageIndex:this.pageIndex,status:!1})}},resize:function({width:e,height:t}){this.$store.commit("SET_CANVAS",{width:e,height:t,needResetPage:!0}),this.setPageSizeStyle()},audioPause:function(e){},videoPause:function(e){this.pageVideoItems.forEach((t=>{let i=t.id,s=document.querySelector(`#video${i}`);t.videoTimer&&clearTimeout(t.videoTimer),"video"===t.type&&0!==t.pageIndex&&s&&s.pause(),e||"pluginVideo"!==t.type||1!==t.pluginVideoType&&2!==t.pluginVideoType||s&&s.pause()}))},audioOrVideoPlay:function(){window.vuePopDom&&window.vuePopDom.sliderEnterPage()},startFlip:function(){o.Q.$emit(`PAGE_START_FLIP_${this.pageIndex}`)},endFlip:function(){o.Q.$emit(`PAGE_END_FLIP_${this.pageIndex}`)},refreshEvent:function(){o.Q.$emit("SLIDER_REFRESH_PAGE")},sliderLeavePage:function(){o.Q.$emit(`SLIDER_LEAVE_PAGE_${this.pageIndex}`)},searchText:function(e){this.searchSvgText(e),o.Q.$emit(`SEARCH_TEXT_${this.pageIndex}`,e)},matchAllText:function(e){},getSearchTextResults:function(){return this.$store.state.textSearchResults},clearHighLight:function(){this.searchSvgText("",!0),Wi.clearHighLight(),o.Q.$emit("SEARCH_TEXT_CLEAR"),this.$store.commit("STORE_TEXT_SEARCH_RESULTS",{clear:!0})},setPageSizeStyle:function(){const e=this.$store.state.canvas,t=this.$store.state.pageConfig,i=e.width,s=e.height,n=t.originPageWidth,o=t.originPageHeight;this.currentPage.width=i,this.currentPage.height=s,this.currentPage.left=(i-n)/2,this.currentPage.top=(s-o)/2;let r=i/n,a=s/o;this.currentPage.scale=Math.min(r,a)},theSeekTimeVideoCount(e){const t=this.currentPage.items.filter((t=>{if("video"===t.type){const{videoInfo:i}=t,{delay:s,duration:n}=i;return e>=s&&e<=s+n}}));return t.length},async checkPageStatus(){return new Promise((e=>{let t=setInterval((()=>{this.pageModel._pageIsReady&&(e(),clearInterval(t),clearTimeout(i))}),100),i=setTimeout((()=>{clearInterval(t),clearTimeout(i),e()}),6e4)}))},checkPageAnime(){return this.pageModel._animeFinish},async seek2Next(){if(this.pageModel._animeFinish)return!0;let e=this.seekTime_ms/1e3;this.seekTime_ms+zu>1e3*this.pageModel.pageTotalTime&&(e=this.pageModel.pageTotalTime),this.seek(e);const t=this.theSeekTimeVideoCount(e);t&&(await new Promise(((e,i)=>{let s=setTimeout((()=>{clearTimeout(s),clearInterval(n),e()}),1e4),n=setInterval((()=>{t<=this.pageModel.videoSeeked||(clearTimeout(s),clearInterval(n),e())}),2e3)})),this.pageModel.updateVideoSeeked(!0)),this.handleFrames++,this.seekTime_ms+=zu},findItem(e,t=-1){for(let t=0;tt.id===e));if(t)return t}}}},components:{WorkSpacePageInner:dc,HandPainted:ut,Loading:Nu}},Vu=Ru,Du=(0,ot.Z)(Vu,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"app"},[""!==e.pageIndex?[t("WorkSpacePageInner",{key:e.pageIndex,class:{invisibleDom:e.isLoadingRes},attrs:{pageIndex:e.pageIndex,page:e.currentPage}}),t("HandPainted",{class:{invisibleDom:e.isLoadingRes},attrs:{pageIndex:e.pageIndex,page:e.currentPage,viewScale:e.viewScale}})]:e._e()],2)}),[],!1,null,null,null).exports,Gu=i(7771),Yu=i(3925);function ju(e,t){if(""===t)return[];const i=e.map(((e,i)=>{if(e&&!(0,Gu.Z)(e)&&e.items){const s=(0,Yu.Z)(function(e,t){return e.items.map((e=>Uu(e,t)))}(e,t));return s.forEach((e=>{e.search_page=i+1})),[s]}return[]}));return(0,Yu.Z)(i)}function Uu(e,t){if("text"===e.type)return function(e,t){const i=document.createElement("div");i.innerHTML=e;const s=i.innerText,n=new RegExp(t,"ig"),o=Array.from([...s.matchAll(n)]);return o?o.map((e=>new Xu(t,e.input,e.index))):[]}(e.textStr,t);if("group"===e.type){const i=[];return e.items.forEach((e=>{i.push(...Uu(e,t))})),i}return[]}class Xu{constructor(e,t,i=-1,s=-1){(0,f.Z)(this,"searchText",""),(0,f.Z)(this,"search_page",-1),(0,f.Z)(this,"search_text",""),(0,f.Z)(this,"search_index",-1),this.searchText=e,this.search_text=t,this.search_page=s,this.search_index=i}}var qu=i(4650),Qu=i.n(qu),Ku=i(2111);[i.n(Ku)(),Qu()].forEach((e=>{d.default.use(e)}));const Ju=()=>{const e=(()=>{if(!(0,Ht.xY)(window,"BookInfo"))return"";const{currentPages:e}=(0,Ht.KK)();return e?e.length>1?e.join("-"):e.join(""):""})();return T.Z.state.playedPluginMusicItems.get(e)},ep=e=>{const t=Ju();if(!(0,Ht.xY)(t,"pluginMusicItem"))return;const i=t.currentPages,s=t.pageIndex+1,n=t.pluginMusicItem,o="EVT_PageViewed"===n.moviePlayTriggerEvt,r=n.playInSequence,a=n.returnThisPageToReplay;let l=e[s][t.currentPlayerIndex];const d=tp(l,i,e);return o&&r&&(a||d)&&(l=e[Math.min(...i)][0]),l},tp=(e,t,i)=>{const s=e?.pageIndex+1,n=t.length>1&&t[0]>t[1];if(!t.includes(s))return!1;if(s===(n?t[0]:t[t.length-1])){const s=n?i[t[0]]:i[t[t.length-1]],o=s[s.length-1].pluginMusic?.id,r=e.pluginMusic,a=r.musicList?.length>1;if(o===r.id&&r?.isPlayed){const t=`#audio${e?.pageIndex}${r.id}`,i=document.querySelector(t);if(!i)return!1;if(i.currentTime===i.duration&&!a)return!0;if(0===i.currentTime&&a)return!0}}return!1};var ip={name:"Lightbox",data(){return{showContent:!1,isShowLightbox:this.isShow,handler:null}},props:["isShowPopClose","isNoPaddingTop","isTriggleBox","isHiddenHeaderTitle","isAutoPopSize","isAutoPopImg","isPhone","isShowBottomPadding","modalType","sizeType","isShow","showClose","showOutsideClose","showConfirm","showAlert","hideTitleLine","isAutoWidth","customWidth","customHeight","hasNoBorderRadius","hasLoading","hasPadding","title","secondTitle","message","forbidClickBg","forbidClose","forbidConfirm","forbidKeyboard","isClickContentClose","closeCallBack","confirmCallBack","confirmCallBackNoClose","confirmBtnTxt","cancelBtnTxt","lightboxZIndex","hiddenOverFlow","isArticle","lightboxContentBackground","popUpImgLoading"],computed:{lightboxTarget:function(){let e="Lightbox";return this.modalType&&(e=this.modalType),e},lightboxStyle:function(){let e={};return this.lightboxZIndex&&(e.zIndex=this.lightboxZIndex),e},lightboxCenteredStyle:function(){let e={};if(this.customWidth){let t=this.customWidth;t>.85*window.innerWidth&&(t=.85*window.innerWidth),e.width=t+"px",e.maxWidth=t+"px"}if(this.customHeight){let t=this.customHeight;t>.85*window.innerHeight&&(t=.85*window.innerHeight),e.height=t+"px",e.maxHeight=t+"px"}return this.hiddenOverFlow||(e.overflow="hidden"),e},lightBoxTitle:function(){let e=this.title;return(""===e||this.message)&&(e="提示"),this.isHiddenHeaderTitle&&(e=""),e},isHasPadding:function(){let e=this.hasPadding||this.title||this.message||this.showConfirm||this.showAlert;return!1===this.hasPadding&&(e=!1),e},showCloseIcon:function(){let e=this.title||this.showClose||this.message||this.showConfirm||this.showAlert;return!1===this.showClose&&(e=!1),e},backgroundStyle:function(){let e={"background-color":"#ffffff"};return this.lightboxContentBackground&&(e["background-color"]=this.lightboxContentBackground),e}},methods:{afterEnter:function(){this.$emit("domLoaded"),this.$refs.Lightbox&&this.$refs.Lightbox.addEventListener("keydown",(e=>{e.cancelBubble=!0,e.stopPropagation()}))},closeLightbox:function(e){if(this.forbidClose)return;if(0!==e.button&&"click"===e.type||this.forbidClose)return;"lightbox-centered"===e.target.className&&this.forbidClickBg||(this.showContent=!1,this.isShowLightbox=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})),this.closeCallBack&&this.closeCallBack())},confirmFn:function(){this.forbidConfirm||(this.confirmCallBackNoClose?this.confirmCallBackNoClose():(this.showContent=!1,this.isShowLightbox=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})),this.confirmCallBack?this.confirmCallBack():this.confirmCallBackNoClose))},contentClickFn:function(e){this.isClickContentClose&&(this.showContent=!1,setTimeout((()=>{this.$emit("update:isShow",!1)})))}},mounted:function(){let e=this;e.isShow&&(e.showContent=!0),e.forbidKeyboard||"Confirm"!==e.modalType||(e.handler=function(){let t=event||window.event,i=t.keyCode;t.stopPropagation(),t.cancelBubble=!0,e.isShowLightbox&&(13===i&&e.confirmFn(),27===i&&e.closeLightbox(t))},document.addEventListener("keyup",e.handler))},destroyed:function(){document.removeEventListener("keyup",this.handler)}},sp=(0,ot.Z)(ip,(function(){var e=this,t=e._self._c;return t("portal",{attrs:{to:e.lightboxTarget}},[t("transition",{attrs:{name:"lightbox-fade"}},[t("div",{ref:"Lightbox",staticClass:"Lightbox",class:{triggleBox:e.isTriggleBox},style:e.lightboxStyle,attrs:{id:"Lightbox"},on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"lightbox-bg"}),t("transition",{attrs:{name:"fade"},on:{"after-enter":e.afterEnter}},[e.showContent?t("div",{staticClass:"lightbox-container",class:{"pop-container":e.isShowPopClose}},[e.isShowPopClose?t("div",{staticClass:"outer-pop-circle",on:{click:e.closeLightbox}},[t("div",{staticClass:"reader-icon outPopBtn"})]):e._e(),t("div",{staticClass:"lightbox-table"},[t("div",{staticClass:"lightbox-centered",on:{mousedown:function(t){return t.stopPropagation(),e.closeLightbox.apply(null,arguments)}}},[e.isShow?t("div",{staticClass:"lightbox-content",class:[e.sizeType,{isAutoWidth:e.isAutoWidth,hasNoBorderRadius:e.hasNoBorderRadius,isAutoPop:e.isAutoPopSize,isPhone:e.isPhone,isAutoPopImg:e.isAutoPopImg,"scale-before":e.popUpImgLoading,"scale-after":!e.popUpImgLoading,"scale-before-auto":e.isAutoPopSize&&e.popUpImgLoading,"scale-after-auto":e.isAutoPopSize&&!e.popUpImgLoading}],style:[e.lightboxCenteredStyle,e.backgroundStyle],on:{mousedown:function(e){e.stopPropagation()},click:function(t){return t.stopPropagation(),e.contentClickFn.apply(null,arguments)}}},[e.hasLoading?t("div",{staticClass:"loading"},[t("svg",{attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])]):e._e(),t("div",{staticClass:"content-container",class:{hasPadding:e.isHasPadding,paddingTop:e.isHiddenHeaderTitle&&!e.isNoPaddingTop,noPaddingTop:e.isNoPaddingTop,hasNoPaddingBottom:!e.showConfirm&&!e.showAlert&&!e.isShowBottomPadding}},[e.showOutsideClose?t("div",{staticClass:"reader-icon outsideBtn",class:{disabled:e.forbidClose},on:{click:e.closeLightbox}}):e._e(),e.isHiddenHeaderTitle||e.lightBoxTitle||e.showCloseIcon?t("div",{staticClass:"box-header",class:{hideTitleLine:e.hideTitleLine,noTitle:!e.lightBoxTitle},style:{"border-bottom":e.isShowBottomPadding?"none":""}},[e.lightBoxTitle?t("p",{staticClass:"box-title"},[t("span",{domProps:{innerHTML:e._s(e.lightBoxTitle)}}),t("span",{staticClass:"seconde-title",domProps:{innerHTML:e._s(e.secondTitle)}})]):e._e()]):e._e(),t("div",{staticClass:"box-main",class:{hasNoPadding:!1===e.isHasPadding,noTitleMain:e.isHiddenHeaderTitle}},[e.message?t("p",{staticClass:"box-message"},[e._v(e._s(e.message))]):e._e(),t("div",{staticClass:"content",style:e.backgroundStyle},[e._t("default")],2)]),e.showConfirm||e.showAlert?t("div",{staticClass:"box-btns",class:{isConfirm:"Confirm"===e.modalType}},[t("el-row",[t("el-col",{staticClass:"btn-option"},[t("div",{staticClass:"btn btn-green btn-block",class:{forbidConfirm:e.forbidConfirm},on:{click:e.confirmFn}},[e._v(" "+e._s(e.confirmBtnTxt?e.confirmBtnTxt:e.$t("ChangePageSizePanel_vue.text9"))+" ")])]),e.showConfirm?t("el-col",{staticClass:"btn-option"},[t("div",{staticClass:"btn btn-white btn-block",class:{forbidConfirm:e.forbidClose},on:{click:e.closeLightbox}},[e._v(" "+e._s(e.cancelBtnTxt?e.cancelBtnTxt:e.$t("MenuForPathTool_vue.text3"))+" ")])]):e._e()],1)],1):e._e()]),e.showCloseIcon?t("div",{staticClass:"reader-icon closeBtn",class:{disabled:e.forbidClose,noTitle:!e.lightBoxTitle},on:{click:e.closeLightbox}}):e._e(),e.isArticle&&e.isPhone?t("div",{staticClass:"reader-icon backBtn",class:{disabled:e.forbidClose,noTitle:!e.lightBoxTitle},on:{click:function(t){return t.stopPropagation(),e.closeLightbox.apply(null,arguments)}}}):e._e()]):e._e()])])]):e._e()])],1)])],1)}),[],!1,null,"776731f7",null),np=sp.exports,op={name:"ParseAddWechat",components:{Lightbox:np},props:["index","curIframe"],data(){return{currentPopImgScale:1,currentPopImageIndex:0,isTitleOneline:!1,isDescOneline:!1}},mounted(){setTimeout((()=>{this.$refs.addWechatTitle&&this.$refs.addWechatTitle.clientHeight<25&&(this.isTitleOneline=!0),this.$refs.addWechatDesc&&this.$refs.addWechatDesc.clientHeight<25&&(this.isDescOneline=!0)}),10)},computed:{isShowAddWechat:{get:function(){return this.$store.state.isShowAddWechat},set:function(e){this.$store.state.isShowAddWechat=e}},isPhone:function(){return window.isPhone&&window.isPhone()},isPopupImgSvg:function(){return!!(this.isShowPopupImg&&this.curIframe&&this.curIframe.imgList&&this.curIframe.imgList.length)&&this.curIframe.imgList[this.currentPopImageIndex].fileName.indexOf(".svg")>-1},getLogoStyle:function(){return{"background-image":`url(${this.curIframe.logoObj.url})`}}},methods:{cancel:function(){this.isShowAddWechat=!1},getMaxHeight:function(){let e=.9*window.innerHeight-50;return this.curIframe.imgList[this.currentPopImageIndex].title&&(e-=30),e},popupImgScale:function(e){e.deltaY>0?(this.currentPopImgScale=this.currentPopImgScale-.05<1?1:this.currentPopImgScale-.05,1===this.currentPopImgScale&&(this.popupImgTop=0,this.popupImgLeft=0)):this.currentPopImgScale=this.currentPopImgScale+.05>2?2:this.currentPopImgScale+.05,this.scaleOriginX=e.layerX,this.scaleOriginY=e.layerY},popupImgMouseDown:function(e){document.querySelector("#Lightbox").addEventListener("mousemove",this.popupImgMouseMove),this.isMouseDown=!0},popupImgMouseMove:function(e){e=e||window.event,this.isMouseDown&&this.currentPopImgScale>1&&(this.popupImgTop=this.popupImgTop+e.movementY,this.popupImgLeft=this.popupImgLeft+e.movementX)},popupImgMouseUp:function(){this.isMouseDown=!1,document.querySelector("#Lightbox").removeEventListener("mousemove",this.popupImgMouseMove)},loadImg:function(e){e.isLoading=!0;let t=new Image;t.src=e.url,t.complete?(e.isLoading=!1,e.naturalWidth=t.naturalWidth,e.naturalHeight=t.naturalHeight,this.isPhone||(this.isLoadingPop=!1)):t.onload=()=>{e.isLoading=!1,e.naturalWidth=t.naturalWidth,e.naturalHeight=t.naturalHeight,this.isPhone||(this.isLoadingPop=!1)}}}},rp=(0,ot.Z)(op,(function(){var e=this,t=e._self._c;return e.isShowAddWechat&&e.curIframe&&e.curIframe.imgList&&e.curIframe.imgList.length?t("Lightbox",{attrs:{isShow:e.isShowAddWechat,isHasPadding:!0,hideTitleLine:!0,showClose:!1,hasNoBorderRadius:!0,title:" ",isShowBottomPadding:!0,hiddenOverFlow:!0,isAutoPopImg:!1,isHiddenHeaderTitle:!0,isTriggleBox:!0,isShowPopClose:!0,customWidth:312},on:{"update:isShow":function(t){e.isShowAddWechat=t},"update:is-show":function(t){e.isShowAddWechat=t}}},[t("div",{staticClass:"window-iframe isPC ParseAddWechat"},[e.curIframe.logoObj.fileName||e.curIframe.imgList[e.currentPopImageIndex].title||e.curIframe.imgList[e.currentPopImageIndex].desc?t("div",{staticClass:"head",class:{hasLogo:e.curIframe.logoObj.fileName}},[e.curIframe.logoObj.fileName?t("div",{staticClass:"logo",style:e.getLogoStyle}):e._e(),t("div",{staticClass:"msg",class:{"no-logo":!e.curIframe.logoObj.fileName}},[e.curIframe.imgList[e.currentPopImageIndex].title?t("div",{ref:"addWechatTitle",staticClass:"title",class:{"no-desc":!e.curIframe.imgList[e.currentPopImageIndex].desc&&e.isTitleOneline}},[e._v(" "+e._s(e.curIframe.imgList[e.currentPopImageIndex].title)+" ")]):e._e(),e.curIframe.imgList[e.currentPopImageIndex].desc?t("div",{ref:"addWechatDesc",staticClass:"desc",class:{"no-title":!e.curIframe.imgList[e.currentPopImageIndex].title&&e.isDescOneline}},[e._v(" "+e._s(e.curIframe.imgList[e.currentPopImageIndex].desc)+" ")]):e._e()])]):e._e(),e._l(e.curIframe.imgList,(function(i,s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentPopImageIndex===s,expression:"currentPopImageIndex === imgIndex"}],key:s,staticClass:"popupImg",class:{noPaddingBottom:!i.desc.trim()}},[t("div",{staticClass:"popupImg-outer"},[t("div",{staticClass:"border-corner left-top"}),t("div",{staticClass:"border-corner right-top"}),t("div",{staticClass:"border-corner left-bottom"}),t("div",{staticClass:"border-corner right-bottom"}),t("div",{staticClass:"popupImg-scale"},[t("img",{staticClass:"popupImg-img",style:{maxHeight:e.getMaxHeight()+"px",height:e.isPopupImgSvg?e.getMaxHeight()+"px":""},attrs:{src:i.url},on:{load:function(t){return e.loadImg(i)}}})])]),t("div",{staticClass:"alert"},[t("span",[e._v("扫描二维码添加微信")])])])}))],2)]):e._e()}),[],!1,null,"2e977c74",null).exports,ap={name:"PhonePopupVideoBox",data(){return{mediaQuery:null,isHorizonal:!1}},props:{item:{type:Object,required:!0,desc:"触发弹出事件的元素"},popupVideoProps:{type:Object,required:!0,desc:"弹出视频的属性"},realYouTubeId:{type:String,required:!1,desc:"YouTube视频ID"},realVimeoId:{type:String,required:!1,desc:"Vimeo视频ID"},youTubeIdOrVimeoId:{type:String}},mounted:function(){window.bgSound&&this.isPauseBgSoundWhenPlay&&window.bgSound.pause(),this.wechatAutoPlay(),this.autoPlayVideo(),this.evtListener()},beforeDestroy:function(){this.unbindEvt()},computed:{isShowPopupVideo:{get:function(){return this.$store.state.isShowPopupVideo},set:function(e){this.$store.state.isShowPopupVideo=e}},isYZPro:function(){return this.$store.getters.isYZPro},isWechatBrowser:function(){const e=navigator.userAgent;return/MicroMessenger/i.test(e)},videoType:function(){return this.popupVideoProps.videoType},videoLink:function(){return this.popupVideoProps.link},generalCode:function(){return this.popupVideoProps.generalCode},videoLocalLink:function(){return this.popupVideoProps.localLink},isAutoPlay:function(){return this.popupVideoProps.isAutoPlay},isLoop:function(){return this.popupVideoProps.isLoop},isPauseBgSoundWhenPlay:function(){return this.popupVideoProps.isPauseBgSoundWhenPlay},isPauseOtherVideoWhenPlay:function(){return this.popupVideoProps.isPauseOtherVideoWhenPlay},isPlayBgSound:{get(){return this.$store.state.isPlayBgSound},set(e){this.$store.state.isPlayBgSound=e}},mutePlay:function(){return this.popupVideoProps.mutePlay}},methods:{hidePhoneVideoBox:function(){this.isShowPopupVideo=!1,window.bgSound&&window.bgSound.play()},wechatAutoPlay:function(){if(this.isWechatBrowser&&this.isAutoPlay)return window?.WeixinJSBridge?window.WeixinJSBridge.invoke("getNetworkType",{},(()=>{1===this.videoType&&this.$refs?.popupVideoOuterLink&&this.$refs.popupVideoOuterLink.play(),2===this.videoType&&this.$refs?.popupVideoLocalLink&&this.$refs.popupVideoLocalLink.play()}),!1):void document.addEventListener("WeixinJSBridgeReady",(()=>{window?.WeixinJSBridge&&window.WeixinJSBridge.invoke("getNetworkType",{},(()=>{1===this.videoType&&this.$refs?.popupVideoOuterLink&&this.$refs.popupVideoOuterLink.play(),2===this.videoType&&this.$refs?.popupVideoLocalLink&&this.$refs.popupVideoLocalLink.play()}))}),!1)},autoPlayVideo:async function(){this.isAutoPlay&&(await this.$nextTick(),1===this.videoType&&this.$refs?.popupVideoOuterLink&&this.$refs.popupVideoOuterLink.play(),2===this.videoType&&this.$refs?.popupVideoLocalLink&&this.$refs.popupVideoLocalLink.play())},evtListener:function(){this.mediaQuery=window.matchMedia("(orientation: portrait)"),this.mediaQuery.addEventListener("change",this.mobileori),this.mobileori(this.mediaQuery)},unbindEvt:function(){this.mediaQuery.removeEventListener("change",this.mobileori),this.mediaQuery=null},mobileori:async function(e){await this.$nextTick(),e.matches||(this.isHorizonal=!0),e.matches&&(this.isHorizonal=!1)},playEvent:function(e){this.isPlayBgSound=!0,this.isPauseBgSoundWhenPlay&&(this.isPlayBgSound=!1,(0,pi.hb)(),window.bgSound&&window.bgSound.pause()),this.isPauseOtherVideoWhenPlay&&(0,pi.bv)(e)},pauseEvent:function(){this.isPauseBgSoundWhenPlay&&!this.isPlayBgSound&&window.bgSound&&window.bgSound.play()},localVideoPlay:function(e){this.playEvent(e)},localVideoPause:function(){this.pauseEvent()},videoLinkPlay:function(e){this.playEvent(e)},videoLinkPause:function(){this.pauseEvent()}},components:{CloseIcon_1:di,CloseIcon_2:hi,YoutubePlayerIframe:ci.default,VimeoPlayerIframe:ui.default}},lp=(0,ot.Z)(ap,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"popPhoneVideo",class:{"yz-background":e.isYZPro}},[t("div",{staticClass:"slide-back-outer",on:{click:function(t){return t.stopPropagation(),e.hidePhoneVideoBox.apply(null,arguments)}}},[t("CloseIcon_1"),t("CloseIcon_2")],1),0===e.videoType?t("div",{staticClass:"video-outer-box embed-code",class:{"is-horizonal":e.isHorizonal},domProps:{innerHTML:e._s(e.generalCode)}}):e._e(),1===e.videoType?t("div",{staticClass:"video-outer-box outer-link",class:{"is-horizonal":e.isHorizonal}},[t("video",{ref:"popupVideoOuterLink",staticClass:"video",attrs:{src:e.videoLink,autoplay:e.isAutoPlay,loop:e.isLoop,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload"},domProps:{muted:e.mutePlay},on:{play:e.videoLinkPlay,pause:e.videoLinkPause}})]):e._e(),2===e.videoType?t("div",{staticClass:"video-outer-box local-video",class:{"is-horizonal":e.isHorizonal}},[t("video",{ref:"popupVideoLocalLink",staticClass:"video",attrs:{src:e.videoLocalLink,autoplay:e.isAutoPlay,loop:e.isLoop,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload"},domProps:{muted:e.mutePlay},on:{play:e.localVideoPlay,pause:e.localVideoPause}})]):e._e(),3===e.videoType?t("div",{staticClass:"video-outer-box youtube-vimeo",class:{"is-horizonal":e.isHorizonal}},[3===e.videoType?t("YoutubePlayerIframe",{attrs:{item:e.item,pluginVideoPageIndex:0,popupVideoProps:e.popupVideoProps,realYouTubeId:e.realYouTubeId,isPopupVideo:!0}}):e._e()],1):e._e(),4===e.videoType?t("div",{staticClass:"video-outer-box youtube-vimeo",class:{"is-horizonal":e.isHorizonal}},[4===e.videoType?t("VimeoPlayerIframe",{attrs:{item:e.item,pluginVideoPageIndex:0,popupVideoProps:e.popupVideoProps,realVimeoId:e.realVimeoId,isPopupVideo:!0}}):e._e()],1):e._e()])}),[],!1,null,"b9a871e0",null),dp=lp.exports,hp={name:"PhoneSlideBox",data(){return{showContent:!1,isShowLightbox:this.isShow,handler:null}},props:["isShow","isHidePopTitleAndDesc","currentPopImgItem","currentPopImgLength","currentPopImageIndex"],computed:{hasTitle:function(){return!!this.currentPopImgItem.title.trim()}},methods:{hidePhoneSlideBox:function(){setTimeout((()=>{this.$emit("update:isShow",!1)}))},openPopImgLink:function(e){if(!e.link)return;if(/^(https?:\/\/)/.test(e.link))return window.open(e.link);window.open(`https://${e.link}`)}},mounted:function(){}},cp=(0,ot.Z)(hp,(function(){var e=this,t=e._self._c;return t("portal",{attrs:{to:"PhoneSlideBox"}},[t("transition",{attrs:{name:"slide-fade"}},[t("div",{ref:"SlideBox",staticClass:"SlideBox",attrs:{id:"SlideBox"},on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"SlideBox-bg"}),t("div",{staticClass:"SlideBox-top",class:{"top-noTitle":!e.hasTitle}},[t("div",{staticClass:"top-content"},[t("p",{directives:[{name:"show",rawName:"v-show",value:!e.isHidePopTitleAndDesc,expression:"!isHidePopTitleAndDesc"}],staticClass:"SlideBox-title"},[e._v(" "+e._s(e.currentPopImgItem.title)+" ")]),t("div",{staticClass:"top-btn-box"},[t("span",{staticClass:"reader-icon slide-back",on:{click:function(t){return t.stopPropagation(),e.hidePhoneSlideBox.apply(null,arguments)}}}),e.currentPopImgItem.link&&!e.isHidePopTitleAndDesc?t("span",{staticClass:"reader-icon slide-link",on:{click:function(t){return t.stopPropagation(),e.openPopImgLink(e.currentPopImgItem)}}}):e._e()]),e.currentPopImgLength>1&&!e.isHidePopTitleAndDesc?t("p",{staticClass:"slide-page"},[t("span",{staticClass:"current-page"},[e._v(e._s(e.currentPopImageIndex+1))]),e._v("/"),t("span",{staticClass:"total-page"},[e._v(e._s(e.currentPopImgLength))])]):e._e()])]),t("div",{staticClass:"SlideBox-content",class:{noTitle:!e.hasTitle}},[e._t("default")],2)])])],1)}),[],!1,null,"226130f7",null),up=cp.exports,pp={name:"AlertMsg",data(){return{}},created(){setTimeout((()=>{this.isShowAlertMsg=!1}),3e3)},computed:{isShowAlertMsg:{get:function(){return this.$store.state.isShowAlertMsg},set:function(e){this.$store.state.isShowAlertMsg=e}},isH5Pro:function(){return this.$store.getters.isH5Pro},isYZPro:function(){return this.$store.getters.isYZPro},msg:function(){return this.isYZPro?"您已经点过赞了":"You have already liked this!"}}},mp=(0,ot.Z)(pp,(function(){var e=this;return(0,e._self._c)("div",{staticClass:"alert-msg-box warning"},[e._v(" "+e._s(e.msg)+" ")])}),[],!1,null,"72044cc3",null).exports,gp={name:"PhoneVideoBox",data(){return{videoOriginHeight:0,windowWidth:window.innerWidth,containerHeight:"",videoStyle:{},mediaQuery:null,getYouTubeIdFromUrl:Ft}},props:["videoUrl","videoType","videoPlayParams"],mounted:function(){this.playVideo(),this.evtListener()},computed:{isShowPopVideo:{get:function(){return this.$store.state.isShowPopVideo},set:function(e){this.$store.state.isShowPopVideo=e}},isLoop:function(){return this.videoPlayParams.isLoop},mutePlay:function(){return this.videoPlayParams.mutePlay},isYoutube:function(){return"youtube"===this.videoType},isVimeo:function(){return"vimeo"===this.videoType},isHtmlIframe:function(){return"outerVideo"===this.videoType},pluginVideoItem:function(){return this.videoPlayParams.item},youTubeId:function(){return this.videoPlayParams.youTubeId},realYouTubeId:function(){return this.getYouTubeIdFromUrl(this.youTubeId)},vimeoId:function(){return this.videoPlayParams.vimeoId},realVimeoId:function(){return this.getVimeoIdFromUrl(this.vimeoId)},pageIndex:function(){return this.videoPlayParams.pluginVideoPageIndex},isIOS:function(){return this.$store.state.isIOS},videoContainerStyle:function(){if("video"===this.videoType)return{};let e={width:"100%",height:"",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)","max-height":"95%"};const t=this.windowWidth/16*9;return e.height=`${t}px`,e},isYZPro:function(){return this.$store.getters.isYZPro},isH5Pro:function(){return this.$store.getters.isH5Pro},isFlipPro:function(){return this.$store.getters.isFlipPro}},methods:{popOuterVideo:function(e){switch(e){case"video":this.isShowPopVideo=!0,window.vuePopDom&&window.vuePopDom.popWindow(this.getVideoSrc,e);break;case"vimeo":case"youtube":window.vuePopDom&&window.vuePopDom.popWindow(this.outerVideoHtml,e);break;case"outerVideo":window.vuePopDom&&window.vuePopDom.popWindow(this.getGeneralCode,e)}},hidePhoneVideoBox:function(){this.isShowPopVideo=!1,window.bgSound&&window.bgSound.play()},playVideo:function(){if(void 0===this.$refs.video)return;this.$refs.video.paused&&this.$refs.video.play()},getVideoWidthHeight:function(e){this.videoOriginHeight=e[1]},recordWindowWidth:function(){this.windowWidth=window.innerWidth},mobileori:async function(e){await this.$nextTick();const t=this.$refs.videoContainer||{};t&&t?.style?.height.includes("px")&&(this.containerHeight=this.$refs.videoContainer.style.height),e.matches||("video"===this.videoType&&(this.videoStyle={height:"80%",width:"calc(100% - 100px)",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}),"video"!==this.videoType&&(this.$refs.videoContainer.style.height="80%",this.$refs.videoContainer.style.width="calc(100% - 100px)")),e.matches&&("video"===this.videoType&&(this.videoStyle={height:"",top:"",transform:""}),"video"!==this.videoType&&(this.$refs.videoContainer.style.height=this.containerHeight,this.$refs.videoContainer.style.width="100%"))},evtListener:function(){window.addEventListener("resize",this.recordWindowWidth),this.mediaQuery=window.matchMedia("(orientation: portrait)"),this.mediaQuery.addEventListener("change",this.mobileori),this.mobileori(this.mediaQuery)},unbindEvt:function(){window.removeEventListener("resize",this.recordWindowWidth),this.mediaQuery.removeEventListener("change",this.mobileori),this.mediaQuery=null},getVimeoIdFromUrl:function(e){const t=e.match(/https?:\/\/(?:www\.)?vimeo\.com\/(\d+)(?:[/?].*)?/);return t&&t[1]?t[1]:e}},components:{YoutubePlayerIframe:()=>Promise.resolve().then(i.bind(i,7162)),VimeoPlayerIframe:()=>Promise.resolve().then(i.bind(i,6397)),CloseIcon_1:di,CloseIcon_2:hi},beforeDestroy:function(){this.unbindEvt()}},fp=(0,ot.Z)(gp,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"popPhoneVideo"},[t("div",{staticClass:"slide-back-outer",on:{click:function(t){return t.stopPropagation(),e.hidePhoneVideoBox.apply(null,arguments)}}},[t("CloseIcon_1"),t("CloseIcon_2")],1),t("div",{ref:"videoContainer",staticClass:"video-container",class:{horizontal:e.isVimeo},style:{...e.videoContainerStyle}},["video"!==e.videoType?t("div",{staticClass:"iframe-video"},[e.isHtmlIframe?t("div",{staticClass:"video-outer-box",domProps:{innerHTML:e._s(e.videoUrl)}}):e._e(),e.isYoutube?t("div",{staticClass:"embed-video-box"},[t("div",{staticClass:"iframe-player-container"},[t("YoutubePlayerIframe",{attrs:{item:e.pluginVideoItem,realYouTubeId:e.realYouTubeId,pluginVideoPageIndex:e.pageIndex,isPhonePopup:!0}})],1)]):e._e(),e.isVimeo?t("div",{staticClass:"embed-video-box"},[t("div",{staticClass:"iframe-player-container"},[t("VimeoPlayerIframe",{attrs:{item:e.pluginVideoItem,realVimeoId:e.realVimeoId,vimeoPageIndex:e.pageIndex,isPhonePopup:!0},on:{getWidthHeight:e.getVideoWidthHeight}})],1)]):e._e()]):e._e(),"video"===e.videoType?t("div",{staticClass:"video-outer-box",style:{...e.videoStyle}},[t("video",{ref:"video",staticClass:"video",attrs:{src:e.videoUrl,controls:"","x5-video-player-type":"h5","x5-video-player-fullscreen":"true","x-webkit-airplay":"true","webkit-playsinline":"true",playsinline:"true",controlslist:"nodownload",autoplay:!0,loop:e.isLoop},domProps:{muted:e.mutePlay}})]):e._e()])])}),[],!1,null,"0393d1c6",null),wp={name:"popapp",data:function(){return{pageIndex:"",isPopWindow:!1,currentPopImageIndex:0,currentPopImgScale:1,isFirstEnterPopImg:!0,isExpandedPopDesc:!1,isPopDescOverHeight:!1,isLoadingPop:!0,isLoadedText:!1,textTimer:null,isHidePopTitleAndDesc:!1,isShowFirstEnterAlert:!0,isShowOnOuter:!1,isShowIframe:!1,isShowPopupImg:!1,isChangePopImg:!1,isMouseDown:!1,scaleOriginX:"",scaleOriginY:"",popupImgTop:0,popupImgLeft:0,isTouchStart:!1,popupImgTouchStore:{pageX:"",pageY:"",pageX2:"",pageY2:"",originX:"",originY:"",moveable:!1,originScale:"",scale:"",touchStartX:"",touchStartY:""},preTouchPosition:{x:0,y:0},curIframe:{},popupMsgCurIframe:{},bookDefaultUrl:"",bookDefaultTitle:"",startPos:"",videoUrl:"",videoType:"",currentPlayer:"",pagesAutoPlayList:{},autoPlayTimer:null,isPhoneHasTouched:!1,videoPlayParams:{},popUpImgLoading:!1,popupImgCurIframe:{},popupWindowCurIframe:{},popupVideoCurIframe:{},getYouTubeIdFromUrl:Ft,actionItem:{}}},mounted:async function(){this.initPluginMusic();let e=this.$root.pageIndex;this.isPopWindow=this.$root.isPop;let t=navigator.userAgent.toLowerCase();t.match(/i(?:pod|phone|pad)|android|wpdesktop|blackberry|mobile|windows phone/gi)&&this.$store.commit("NAVIGATOR_INFO",{isMobile:!0}),t.match(/macintosh|pad|ipad/gi)&&this.$store.commit("NAVIGATOR_INFO",{isPad:!0}),t.match(/iphone|ipod|ipad|ios/g)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!0}),t.match(/macintosh|mac os x/gi)&&!t.match(/mobile/gi)&&this.$store.commit("NAVIGATOR_INFO",{isIOS:!1}),window.localStorage&&null!==window.localStorage.getItem("isShowFirstEnterAlert")&&(this.isShowFirstEnterAlert=window.localStorage.getItem("isShowFirstEnterAlert")),this.$nextTick((()=>{o.Q.$emit(o.Y.PAGE_POP_FINISHED,e)})),this.firstTouchBind=this.firstToutch.bind(this),document.addEventListener("touchstart",this.firstTouchBind,!1),document.addEventListener("mousedown",this.firstTouchBind,!1)},beforeDestroy:function(){},computed:{isShowAddWechat:{get:function(){return this.$store.state.isShowAddWechat},set:function(e){this.$store.state.isShowAddWechat=e}},isArticle:function(){return i.g.templeteName&&i.g.templeteName.match(/article/)},isPopupImgSvg:function(){return!!(this.isShowPopupImg&&this.popupImgCurIframe&&this.popupImgCurIframe.imgList&&this.popupImgCurIframe.imgList.length)&&this.popupImgCurIframe.imgList[this.currentPopImageIndex].fileName.indexOf(".svg")>-1},isShowPopVideo:{get:function(){return this.$store.state.isShowPopVideo},set:function(e){this.$store.state.isShowPopVideo=e}},isFlipPro:function(){return this.$store.getters.isFlipPro},expandText:function(){return this.isFlipPro?"Expand":"展开"},hideText:function(){return this.isFlipPro?"Hide":"收起"},clickOpenLinkText:function(){return this.isFlipPro?"Click to open link":"点击打开详情链接"},popupVideoSrc:function(){switch(this.popupVideoCurIframe.videoInfo.videoType){case 1:return this.popupVideoCurIframe.videoInfo.link;case 2:return this.popupVideoCurIframe.videoInfo.localLink}},isShowPopupVideo:{get:function(){return this.$store.state.isShowPopupVideo},set:function(e){this.$store.state.isShowPopupVideo=e}},isShowPopupMsg:{get:function(){return this.$store.state.isShowPopupMsg},set:function(e){this.$store.state.isShowPopupMsg=e}},outerVideoHtml:function(){let e="";return e=3===this.popupVideoCurIframe.videoInfo.videoType?"":4===this.popupVideoCurIframe.videoInfo.videoType?"":"",e},popupVideoIsAutoPlay:function(){return this.popupVideoCurIframe.videoInfo.isAutoPlay},popupVideoIsLoop:function(){return this.popupVideoCurIframe.videoInfo.isLoop},vimeoLoop:function(){return this.popupVideoIsAutoPlay&&this.popupVideoIsLoop?"&loop=1":!this.popupVideoIsAutoPlay&&this.popupVideoIsLoop?"?loop=1":""},isHasPopupVideoLink:function(){return!!(this.popupVideoCurIframe.videoInfo.link||this.popupVideoCurIframe.videoInfo.youTubeId||this.popupVideoCurIframe.videoInfo.vimeoId||this.popupVideoCurIframe.videoInfo.generalCode||this.popupVideoCurIframe.videoInfo.videoName)},isPauseBgSoundWhenPlay:function(){return this.popupVideoCurIframe.videoInfo.isPauseBgSoundWhenPlay},isShowAlertMsg:function(){return this.$store.state.isShowAlertMsg},imgCanBeSave:function(){const e=this.popupImgCurIframe.imgCanBeSave;return void 0===e||e?"auto":"none"},isYZPro:function(){return this.$store.getters.isYZPro},isShowPhonePopupVideo:function(){return!(!this.isPhone()||!this.isShowPopupVideo)&&(void 0!==this.popupVideoCurIframe?.videoInfo&&0!==Object.keys(this.popupVideoCurIframe).length)}},watch:{currentPopImageIndex:function(){this.currentPopImgScale=1,this.popupImgTop=0,this.popupImgLeft=0}},methods:{firstToutch:function(){this.isPhoneHasTouched=!0,this.sliderEnterPage(),document.removeEventListener("touchstart",this.firstTouchBind,!1),document.removeEventListener("mousedown",this.firstTouchBind,!1),this.firstTouchBind=null},initAutoplayList:function(e,t){this.pagesAutoPlayList[t]||(this.pagesAutoPlayList[t]=e)},sliderEnterPage:function(){if(o.Q.$emit("SLIDER_ENTER_PAGE"),!this.isPhoneHasTouched)return;if(this.currentPlayer)return void this.playAuto();this.clearAutoTimer();const e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();if(this.isYZPro)return this.getCurrentPlayer(t);if(this.pagesAutoPlayList[e]&&this.pagesAutoPlayList[e].length)this.currentPlayer=this.pagesAutoPlayList[e][0],this.playAuto();else for(let e=0;e1&&e[0]>e[1],i=e=>{let i=e,s=this.pagesAutoPlayList[i];if(!this.pagesAutoPlayList[i]){const e=t?--i:++i;return this.pagesAutoPlayList[e]}return s};if(t)for(let t=e[e.length-1];t>=0;t--){const s=i(e[t]);if(s&&s.length)return this.currentPlayer=s[0],this.playAuto()}else for(let t=0;t{((e,t)=>{if(!(0,Ht.xY)(window,"BookInfo"))return;const{currentPages:i}=(0,Ht.KK)();if(!i)return;let s=e,n=0,o=Math.min(...i)-1;(0,Ht.xY)(e,"pluginMusic")&&(s=e.pluginMusic),(0,Ht.xY)(e,"playFromSeconds")&&(n=e.playFromSeconds),(0,Ht.xY)(e,"pageIndex")&&(o=e.pageIndex);const r=ep(t);r&&r.pluginMusic.playInSequence&&(s=r.pluginMusic,o=r.pageIndex,n=r.pluginMusic.playFromSeconds),(0,Gd.$h)({type:"play",audioItem:s,pageIndex:o,option:{delay:n}})})(this.currentPlayer,this.pagesAutoPlayList)}),200)))}const e=document.querySelector(this.currentPlayer);!this.currentPlayer||e?(e.play(),e.paused&&(this.playTimer=setTimeout((()=>{this.playAuto()}),200))):this.playTimer=setTimeout((()=>{this.playAuto()}),200)},clearAutoTimer:function(){this.playTimer&&(clearTimeout(this.playTimer),this.playTimer=null)},sliderLeavePage:function(e){o.Q.$emit("SLIDER_LEAVE_PAGE"),this.clearAutoTimer(),this.currentPlayer&&(this.currentPlayer=""),this.$refs.playAudio&&!this.$refs.playAudio.paused&&this.$refs.playAudio.pause()},closeLightbox:function(){this.isShowPopupVideo=!1},initPopVideo:function(e,t,i){e&&t&&(this.videoUrl=e,this.videoType=t,this.isShowPopVideo=!0,this.videoPlayParams=i)},getMaxHeight:function(){let e=.9*window.innerHeight-50;return this.popupImgCurIframe.imgList[this.currentPopImageIndex].title&&(e-=40),e},isPhone:function(){return!!(window.isPhone&&window.isPhone()||window.isPad&&window.isPad())},isIphone:function(){return!!(window.isIphone&&window.isIphone()||window.isIpad&&window.isIpad())},popArticleIframe:function(){this.isArticle&&(this.bookDefaultUrl=window.location.href,this.bookDefaultTitle=window.document.title,window.document.title=this.popupWindowCurIframe.title?this.popupWindowCurIframe.title:window.document.title,window.set_weixin_share&&window.set_weixin_share(document.title,document.desc,this.popupWindowCurIframe.urlHead+this.popupWindowCurIframe.url,window.imgUrl))},closeArticleIframe:function(){this.isArticle&&(window.document.title=this.bookDefaultTitle,window.set_weixin_share&&window.set_weixin_share(document.title,document.desc,this.bookDefaultUrl,window.imgUrl))},popWindow:function(e,t,i){if(this.isPopWindow)if("video"===t||"vimeo"===t||"youtube"===t||"outerVideo"===t)this.initPopVideo(e,t,i);else if(this.curIframe=JSON.parse(JSON.stringify(e)),"popupImg"!==t&&"zoomarea"!==t||(this.popupImgCurIframe=JSON.parse(JSON.stringify(e)),this.popupImgCurIframe.imgList.forEach(((e,t)=>{this.popupImgCurIframe.imgList[t].isLoading=!0})),this.isPhone()&&(this.isHidePopTitleAndDesc=!1,this.isPopDescOverHeight=!1,this.loadText()),this.popUpImgLoading=!0,this.currentPopImgScale=1,this.currentPopImageIndex=0,this.isShowPopupImg=!0),"addWechat"===t&&(this.curIframe.imgList.forEach(((e,t)=>{this.curIframe.imgList[t].isLoading=!0})),this.isShowAddWechat=!0),"iframe"===t&&(this.popupWindowCurIframe=JSON.parse(JSON.stringify(e)),this.isShowIframe=!0,this.popArticleIframe()),"popupVideo"===t&&(this.actionItem=i,this.popupVideoCurIframe=JSON.parse(JSON.stringify(e)),this.popupVideoCurIframe.videoInfo.isPauseBgSoundWhenPlay&&!this.isPhone()&&window.bgSound&&window.setTimeout((()=>{if(this.$refs.popupVideo){const e=this.$refs.popupVideo;e.addEventListener("play",(()=>{window.bgSound.pause()})),e.addEventListener("pause",(()=>{window.bgSound.play()}))}})),this.isHasPopupVideoLink&&(this.isShowPopupVideo=!0,this.safariAutoPlayVideo())),"popupMsg"===t){if(this.isShowPopupMsg)return;this.popupMsgCurIframe=JSON.parse(JSON.stringify(e)),this.isShowPopupMsg=!0}},loadText:function(){if(this.isHidePopTitleAndDesc)return;if(void 0===this.popupImgCurIframe.imgList[this.currentPopImageIndex]&&(this.currentPopImageIndex=0),this.popupImgCurIframe.imgList[this.currentPopImageIndex].desc.trim()){let e=document.querySelector("#popupImg-desc"+this.currentPopImageIndex);if(this.isLoadingPop=!0,this.isLoadedText=!1,!e)return void(this.textTimer=setTimeout((()=>{this.loadText()}),100));clearTimeout(this.textTimer),this.textTimer=null,this.waitTextLoaded(e)}else this.isLoadingPop=!1,this.isPopDescOverHeight=!1,this.isLoadedText=!0},waitTextLoaded:function(e){if(this.isPopDescOverHeight)return this.isLoadingPop=!1,void(this.isLoadedText=!0);e.offsetHeight>0?(e.offsetHeight>78?this.isPopDescOverHeight=!0:this.isPopDescOverHeight=!1,this.isLoadedText=!0,this.isLoadingPop=!1):setTimeout((()=>{this.waitTextLoaded(e)}),100)},showOrHidePopMsg:function(){this.isHidePopTitleAndDesc=!this.isHidePopTitleAndDesc,this.onlyLoadText()},onlyLoadText:function(){if(!this.isLoadedText)if(this.popupImgCurIframe.imgList[this.currentPopImageIndex].desc.trim()){this.isLoadedText=!1;let e=document.querySelector("#popupImg-desc"+this.currentPopImageIndex);if(!e)return void(this.textTimer=setTimeout((()=>{this.onlyLoadText()}),100));clearTimeout(this.textTimer),this.textTimer=null,this.waitTextLoaded(e)}else this.isLoadingPop=!1,this.isPopDescOverHeight=!1,this.isLoadedText=!0},exPandPopDesc:function(e){this.isExpandedPopDesc=e},openPopImgLink:function(e){if(!e.link)return;if(/^(https?:\/\/)/.test(e.link))return window.open(e.link);window.open(`https://${e.link}`)},closeFirstAlert:function(){this.isShowFirstEnterAlert&&(this.isShowFirstEnterAlert=!1,window.localStorage&&window.localStorage.setItem("isShowFirstEnterAlert",!1))},popImgTouchStart:function(e){e.targetTouches.length>1?this.isChangePopImg=!1:(this.isChangePopImg=!0,this.startPos=e.changedTouches[0])},popImgTouchEnd:function(e){this.isChangePopImg&&1===this.currentPopImgScale&&(this.closeFirstAlert(),e.changedTouches[0].pageX-this.startPos.pageX<-10&&this.updatePopupImgIndex(1),e.changedTouches[0].pageX-this.startPos.pageX>10&&this.updatePopupImgIndex(-1),this.startPos="")},popupImgScaleTouchStart:function(e){let t=e.touches,i=t[0],s=t[1];this.popupImgTouchStore.pageX=i.pageX,this.popupImgTouchStore.pageY=i.pageY,this.popupImgTouchStore.moveable=!0,s&&(this.recordPreTouchPosition(i),this.popupImgTouchStore.pageX2=s.pageX,this.popupImgTouchStore.pageY2=s.pageY),s||this.recordPreTouchPosition(i),this.popupImgTouchStore.originScale=this.popupImgTouchStore.scale||1},popupImgScaleTouchCancel:function(e){this.popupImgTouchStore.moveable=!1},popupImgScaleTouchMove:function(e){if(!this.popupImgTouchStore.moveable)return;let t=e.touches,i=t[0],s=t[1];if(s){this.recordPreTouchPosition(i),this.$nextTick((function(){let e=document.querySelector(`.popupImgImg${this.currentPopImageIndex}`),t=e.offsetTop,n=e.offsetLeft;this.popupImgTouchStore.originX=(i.pageX+s.pageX)/2-n,this.popupImgTouchStore.originY=(i.pageY+s.pageY)/2-t})),this.popupImgTouchStore.pageX2||(this.popupImgTouchStore.pageX2=s.pageX),this.popupImgTouchStore.pageY2||(this.popupImgTouchStore.pageY2=s.pageY);let e=this.getTouchDistance({x:i.pageX,y:i.pageY},{x:s.pageX,y:s.pageY})/this.getTouchDistance({x:this.popupImgTouchStore.pageX,y:this.popupImgTouchStore.pageY},{x:this.popupImgTouchStore.pageX2,y:this.popupImgTouchStore.pageY2}),t=this.popupImgTouchStore.originScale*e;t>2&&(t=2),t<1&&(t=1),this.popupImgTouchStore.scale=t,this.currentPopImgScale=t,1===this.currentPopImgScale&&(this.popupImgTop=0,this.popupImgLeft=0)}!s&&this.currentPopImgScale>1&&(this.popupImgLeft=this.popupImgLeft+(i.clientX-this.preTouchPosition.x),this.popupImgTop=this.popupImgTop+(i.clientY-this.preTouchPosition.y),this.recordPreTouchPosition(i))},popupImgScaleTouchEnd:function(e){this.popupImgTouchStore.moveable=!1},getTouchDistance:function(e,t){return Math.hypot(t.x-e.x,t.y-e.y)},recordPreTouchPosition:function(e){this.preTouchPosition={x:e.clientX,y:e.clientY}},loadImg:function(e){e.isLoading=!0;let t=new Image;t.src=this.getImgUrl(e),t.complete?(e.isLoading=!1,e.naturalWidth=t.naturalWidth,e.naturalHeight=t.naturalHeight,this.popUpImgLoading=!1,this.isPhone()||(this.isLoadingPop=!1)):t.onload=()=>{e.isLoading=!1,e.naturalWidth=t.naturalWidth,e.naturalHeight=t.naturalHeight,this.popUpImgLoading=!1,this.isPhone()||(this.isLoadingPop=!1)}},getImgUrl:function(e){return e.url},updatePopupImgIndex:function(e){this.currentPopImageIndex+=e,this.currentPopImageIndex<0&&(this.currentPopImageIndex=this.popupImgCurIframe.imgList.length-1),this.currentPopImageIndex>=this.popupImgCurIframe.imgList.length&&(this.currentPopImageIndex=0),this.isPhone()&&(this.isPopDescOverHeight=!1,this.isLoadedText=!1,this.loadText())},popupImgScale:function(e){e.deltaY>0?(this.currentPopImgScale=this.currentPopImgScale-.05<1?1:this.currentPopImgScale-.05,1===this.currentPopImgScale&&(this.popupImgTop=0,this.popupImgLeft=0)):this.currentPopImgScale=this.currentPopImgScale+.05>2?2:this.currentPopImgScale+.05,this.scaleOriginX=e.layerX,this.scaleOriginY=e.layerY},popupImgMouseDown:function(e){document.querySelector("#Lightbox").addEventListener("mousemove",this.popupImgMouseMove),this.isMouseDown=!0},popupImgMouseMove:function(e){e=e||window.event,this.isMouseDown&&this.currentPopImgScale>1&&(this.popupImgTop=this.popupImgTop+e.movementY,this.popupImgLeft=this.popupImgLeft+e.movementX)},popupImgMouseUp:function(){this.isMouseDown=!1,document.querySelector("#Lightbox").removeEventListener("mousemove",this.popupImgMouseMove)},resize:function({width:e,height:t}){this.isPopDescOverHeight=!1,this.isPhone()&&this.isShowPopupImg&&(this.isPopDescOverHeight=!1,this.isLoadedText=!1,setTimeout((()=>{this.loadText()}),10))},enterPage:function(){if(window.BookInfo){let e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();o.Q.$emit("ENTER_PAGE",{pages:t,pageIndex:e})}},leavePage:function(){if(this.sliderLeavePage(),window.BookInfo){let e=window.BookInfo.getCurrentPageIndex(),t=window.BookInfo.getCurrentPages();o.Q.$emit("LEAVE_PAGE",{pages:t,pageIndex:e})}},safariAutoPlayVideo:function(){if(!/Safari/.test(navigator.userAgent)||/Chrome/.test(navigator.userAgent))return;let e=window.setInterval((()=>{this.$refs.popupVideo&&(this.$refs.popupVideo.play(),this.$refs.popupVideo.paused||window.clearInterval(e))}),300)},initPluginMusic:function(){sh(),(0,Gd.i_)(this.pagesAutoPlayList)},getVimeoIdFromUrl:function(e){const t=e.match(/https?:\/\/(?:www\.)?vimeo\.com\/(\d+)(?:[/?].*)?/);return t&&t[1]?t[1]:e},popupVideoPlay:(e,t)=>{e&&t&&(T.Z.state.isPlayBgSound=!0,t.isPauseBgSoundWhenPlay&&(T.Z.state.isPlayBgSound=!1,(0,pi.hb)(),window.bgSound&&window.bgSound.pause()),t.isPauseOtherVideoWhenPlay&&(0,pi.bv)(e))},popupVideoPause:e=>{e&&e.isPauseBgSoundWhenPlay&&T.Z.state.isPlayBgSound&&window.bgSound&&window.bgSound.play()}},components:{PreviewBlock:oi,Lightbox:np,PhoneSlideBox:up,PhoneVideoBox:fp.exports,PhonePopupVideoBox:dp,AlertMsg:mp,ParseAddWechat:rp,YoutubePlayerIframe:ci.default,VimeoPlayerIframe:ui.default}},yp=wp,vp=(0,ot.Z)(yp,(function(){var e=this,t=e._self._c;return t("div",{ref:"popapp",staticClass:"popapp"},[t("portal-target",{key:"lightBox",attrs:{name:"Lightbox"}}),t("portal-target",{key:"PhoneSlideBox",attrs:{name:"PhoneSlideBox"}}),e.isShowIframe?t("Lightbox",{key:"phone-iframe-lightbox",attrs:{isShow:e.isShowIframe,isShowBottomPadding:!0,title:e.popupWindowCurIframe.title?e.popupWindowCurIframe.title:" ",hasNoBorderRadius:!e.isPhone(),isPhone:e.isPhone(),isHiddenHeaderTitle:e.isArticle&&e.isPhone(),isArticle:e.isArticle,showClose:!(e.isArticle&&e.isPhone()),hasPadding:!(e.isArticle&&e.isPhone()),isNoPaddingTop:e.isArticle&&e.isPhone(),isAutoPopSize:!0,isTriggleBox:!0,closeCallBack:e.isArticle?e.closeArticleIframe:""},on:{"update:isShow":function(t){e.isShowIframe=t},"update:is-show":function(t){e.isShowIframe=t}}},[t("div",{staticClass:"window-iframe"},[t("iframe",{attrs:{src:e.popupWindowCurIframe.urlHead+e.popupWindowCurIframe.url,frameborder:"0",width:"100%",height:"100%"}})])]):e._e(),e.isShowPopupMsg&&e.popupMsgCurIframe&&Object.keys(e.popupMsgCurIframe.windowWH).length?t("Lightbox",{attrs:{isShow:e.isShowPopupMsg,isShowBottomPadding:!1,customWidth:e.popupMsgCurIframe.windowWH.maxW,customHeight:e.popupMsgCurIframe.windowWH.maxH,hasNoBorderRadius:!1,isAutoPopSize:!0,isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,lightboxContentBackground:"unset"},on:{"update:isShow":function(t){e.isShowPopupMsg=t},"update:is-show":function(t){e.isShowPopupMsg=t}}},[t("PreviewBlock",{attrs:{popupMsgOpts:e.popupMsgCurIframe},on:{closePanel:function(t){e.isShowPopupMsg=!1}}})],1):e._e(),!e.isPhone()&&e.isShowPopupVideo&&e.popupVideoCurIframe&&Object.keys(e.popupVideoCurIframe).length?t("Lightbox",{attrs:{isShow:e.isShowPopupVideo,isHasPadding:!0,customWidth:e.popupVideoCurIframe.videoInfo.width,customHeight:e.popupVideoCurIframe.videoInfo.height,title:e.popupVideoCurIframe.videoInfo.title?e.popupVideoCurIframe.videoInfo.title:" ",hasNoBorderRadius:!1,isAutoPopSize:!0,isShowBottomPadding:!0,isTriggleBox:!0,hasPadding:!1,isHiddenHeaderTitle:!0,isNoPaddingTop:!0,showClose:!1,isShowPopClose:!0},on:{"update:isShow":function(t){e.isShowPopupVideo=t},"update:is-show":function(t){e.isShowPopupVideo=t}}},[t("div",{staticClass:"window-iframe popup-video"},[t("div",{staticClass:"title"},[e._v(" "+e._s(e.popupVideoCurIframe.videoInfo.title)+" ")]),0===e.popupVideoCurIframe.videoInfo.videoType?t("div",{staticClass:"popupVideo-iframe",domProps:{innerHTML:e._s(e.popupVideoCurIframe.videoInfo.generalCode)}}):e._e(),1===e.popupVideoCurIframe.videoInfo.videoType||2===e.popupVideoCurIframe.videoInfo.videoType?t("video",{ref:"popupVideo",attrs:{src:e.popupVideoSrc,autoplay:e.popupVideoIsAutoPlay,loop:e.popupVideoIsLoop,width:"100%",height:"100%",controls:"",preload:"metadata",controlslist:"nodownload","webkit-playsinline":"true",playsinline:"true"},domProps:{muted:e.popupVideoCurIframe.videoInfo.mutePlay},on:{play:t=>e.popupVideoPlay(t,e.popupVideoCurIframe.videoInfo),pause:function(t){return e.popupVideoPause(e.popupVideoCurIframe.videoInfo)}}}):e._e(),3===e.popupVideoCurIframe.videoInfo.videoType?t("YoutubePlayerIframe",{attrs:{item:e.actionItem,pluginVideoPageIndex:0,popupVideoProps:e.curIframe.videoInfo,realYouTubeId:e.getYouTubeIdFromUrl(e.popupVideoCurIframe.videoInfo.youTubeId),isPopupVideo:!0}}):e._e(),4===e.popupVideoCurIframe.videoInfo.videoType?t("VimeoPlayerIframe",{attrs:{item:e.actionItem,pluginVideoPageIndex:0,popupVideoProps:e.curIframe.videoInfo,realVimeoId:e.getVimeoIdFromUrl(e.popupVideoCurIframe.videoInfo.vimeoId),isPopupVideo:!0}}):e._e()],1)]):e._e(),!e.isPhone()&&e.isShowPopupImg&&e.popupImgCurIframe&&e.popupImgCurIframe.imgList&&e.popupImgCurIframe.imgList.length?t("Lightbox",{key:"pc-iframe-lightbox",attrs:{isShow:e.isShowPopupImg,isHasPadding:!0,hideTitleLine:!0,showClose:!1,hasNoBorderRadius:!0,title:e.popupImgCurIframe.imgList[e.currentPopImageIndex].title?e.popupImgCurIframe.imgList[e.currentPopImageIndex].title:" ",isShowBottomPadding:!0,hiddenOverFlow:!0,isAutoPopImg:!0,isHiddenHeaderTitle:!e.popupImgCurIframe.imgList[e.currentPopImageIndex].title,isTriggleBox:!0,isShowPopClose:!0,popUpImgLoading:e.popUpImgLoading},on:{"update:isShow":function(t){e.isShowPopupImg=t},"update:is-show":function(t){e.isShowPopupImg=t}}},[t("div",{staticClass:"window-iframe isPC"},[e.popupImgCurIframe.imgList.length>1?t("p",{staticClass:"popupImg-btn-left",on:{click:function(t){return e.updatePopupImgIndex(-1)}}},[t("span",{staticClass:"popupImg-btn-icon"},[t("svg",{staticClass:"svg",staticStyle:{"enable-background":"new 0 0 20 20"},attrs:{fill:"#fff",version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 20 20","xml:space":"preserve"}},[t("path",{staticClass:"st0",attrs:{d:"M15.2,19.5C15.1,19.5,15.1,19.5,15.2,19.5c-0.7,0.6-1.7,0.6-2.3,0l-8.1-8.3c-0.6-0.6-0.6-1.7,0-2.3l8.1-8.3l0,0 c0.6-0.6,1.6-0.6,2.2,0c0.6,0.7,0.6,1.7,0,2.3L8.2,9.9l6.9,7.1C15.8,17.8,15.8,18.8,15.2,19.5L15.2,19.5z"}})])])]):e._e(),e.popupImgCurIframe.imgList.length>1?t("p",{staticClass:"popupImg-btn-right",on:{click:function(t){return e.updatePopupImgIndex(1)}}},[t("span",{staticClass:"popupImg-btn-icon"},[t("svg",{staticClass:"svg",staticStyle:{"enable-background":"new 0 0 20 20"},attrs:{fill:"#fff",version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 20 20","xml:space":"preserve"}},[t("path",{staticClass:"st0",attrs:{d:"M4.8,0.5C4.9,0.5,4.9,0.5,4.8,0.5c0.7-0.6,1.7-0.6,2.3,0.1l8.1,8.3c0.6,0.6,0.6,1.7,0,2.3l-8.1,8.3l0,0 c-0.6,0.6-1.6,0.6-2.2,0c-0.6-0.7-0.6-1.7,0-2.3l6.9-7.2L4.9,2.9C4.2,2.2,4.2,1.2,4.8,0.5L4.8,0.5z"}})])])]):e._e(),e._l(e.popupImgCurIframe.imgList,(function(i,s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentPopImageIndex===s,expression:"currentPopImageIndex === imgIndex"}],key:s,staticClass:"popupImg",class:{noPaddingBottom:!i.desc.trim(),"loading-min-size":i.isLoading}},[i.desc.trim()?t("div",{staticClass:"popupImg-msg"},[t("p",{staticClass:"popupImg-desc"},[e._v(e._s(i.desc))])]):e._e(),t("div",{staticClass:"popupImg-outer"},[t("div",{staticClass:"popupImg-scale",class:{canClick:i.link},style:{transform:"scale("+e.currentPopImgScale+")",transformOrigin:e.scaleOriginX+"px "+e.scaleOriginY+"px",top:e.popupImgTop+"px",left:e.popupImgLeft+"px"},on:{click:function(t){return t.stopPropagation(),e.openPopImgLink(i)}}},[t("img",{directives:[{name:"show",rawName:"v-show",value:!i.isLoading,expression:"!imgItem.isLoading"}],staticClass:"popupImg-img",style:{maxHeight:e.getMaxHeight()+"px",height:e.isPopupImgSvg?e.getMaxHeight()+"px":""},attrs:{src:e.getImgUrl(i)},on:{mousewheel:e.popupImgScale,mousedown:function(t){return t.preventDefault(),e.popupImgMouseDown.apply(null,arguments)},mouseup:function(t){return t.preventDefault(),e.popupImgMouseUp.apply(null,arguments)},load:function(t){return e.loadImg(i)}}})])]),i.isLoading?t("div",{staticClass:"popupImg-loading"},[t("div",{staticClass:"loading-icon-outer"},[t("div",{staticClass:"loading-icon-inner"},[t("svg",{staticStyle:{"enable-background":"new 0 0 50 50"},attrs:{version:"1.1",id:"图层_1",fill:"#818285",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve"}},[t("path",{attrs:{d:"M25,1.3c0.5,0,0.9,0.2,1.2,0.5c0.3,0.3,0.5,0.7,0.5,1.2v10.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V3c0-0.5,0.2-0.9,0.5-1.2C24.1,1.4,24.5,1.3,25,1.3z M25,35.2c0.5,0,0.9,0.2,1.2,0.5\n c0.3,0.3,0.5,0.7,0.5,1.2V47c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V36.9\n c0-0.5,0.2-0.9,0.5-1.2C24.1,35.3,24.5,35.2,25,35.2z M48.7,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H36.9\n c-0.5,0-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2s0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5H47c0.5,0,0.9,0.2,1.2,0.5\n C48.6,24.1,48.7,24.5,48.7,25z M14.8,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H3c-0.5,0-0.9-0.2-1.2-0.5\n c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5h10.2c0.5,0,0.9,0.2,1.2,0.5C14.7,24.1,14.8,24.5,14.8,25z\n M8.2,8.2C8.6,7.9,9,7.7,9.4,7.7c0.5,0,0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.4,0.5,0.8,0.5,1.2c0,0.4-0.2,0.8-0.5,1.2\n c-0.3,0.3-0.7,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.3-0.3-0.5-0.7-0.5-1.2C7.7,9,7.9,8.6,8.2,8.2z M32.2,32.2\n c0.4-0.4,0.8-0.5,1.2-0.5s0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.3,0.5,0.7,0.5,1.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n c-0.5,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.4-0.4-0.5-0.8-0.5-1.2S31.9,32.6,32.2,32.2L32.2,32.2z M41.8,8.2c0.3,0.4,0.5,0.8,0.5,1.2\n c0,0.5-0.2,0.8-0.5,1.2l-7.2,7.2c-0.4,0.3-0.8,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.4,0.2-0.8,0.5-1.2\n l7.2-7.2c0.3-0.3,0.7-0.5,1.2-0.5C41,7.7,41.4,7.9,41.8,8.2z M17.8,32.2c0.4,0.4,0.5,0.8,0.5,1.2s-0.2,0.8-0.5,1.2l-7.2,7.2\n c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.8,0.5-1.2l7.2-7.2c0.4-0.4,0.8-0.5,1.2-0.5\n S17.4,31.9,17.8,32.2L17.8,32.2z"}})])])])]):e._e()])})),e.popupImgCurIframe.imgList.length>1?t("p",{staticClass:"slide-page"},[t("span",{staticClass:"current-page"},[e._v(e._s(e.currentPopImageIndex+1))]),e._v("/"),t("span",{staticClass:"total-page"},[e._v(e._s(e.popupImgCurIframe.imgList.length))])]):e._e()],2)]):e._e(),e.isShowPopupImg&&e.isPhone()?t("meta",{attrs:{name:"viewport",content:"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"}}):e._e(),e.isPhone()&&e.isShowPopupImg&&e.popupImgCurIframe&&e.popupImgCurIframe.imgList&&e.popupImgCurIframe.imgList.length?t("PhoneSlideBox",{key:"phoneSlideBox-lightbox",ref:"phoneSlide",attrs:{isShow:e.isShowPopupImg,currentPopImgItem:e.popupImgCurIframe.imgList[e.currentPopImageIndex],currentPopImageIndex:e.currentPopImageIndex,currentPopImgLength:e.popupImgCurIframe.imgList.length,isHidePopTitleAndDesc:e.isHidePopTitleAndDesc},on:{"update:isShow":function(t){e.isShowPopupImg=t},"update:is-show":function(t){e.isShowPopupImg=t}}},[t("div",{staticClass:"window-iframe isPhone",on:{touchend:function(t){return t.stopPropagation(),e.closeFirstAlert.apply(null,arguments)}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isHidePopTitleAndDesc,expression:"!isHidePopTitleAndDesc"}],staticClass:"iframe-top"},[e.isShowFirstEnterAlert&&e.popupImgCurIframe.link?t("span",{staticClass:"first-enter-alert"},[e._v(e._s(e.clickOpenLinkText)),t("span",{staticClass:"arrow"})]):e._e()]),e._l(e.popupImgCurIframe.imgList,(function(i,s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentPopImageIndex===s,expression:"currentPopImageIndex === imgIndex"}],key:s,staticClass:"popupImg"},[e.isLoadingPop||i.isLoading?t("div",{staticClass:"popupImg-loading"},[t("div",{staticClass:"loading-icon"},[t("svg",{staticClass:"loading-icon-svg",staticStyle:{"enable-background":"new 0 0 50 50"},attrs:{version:"1.1",id:"图层_1",fill:"#818285",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve"}},[t("path",{attrs:{d:"M25,1.3c0.5,0,0.9,0.2,1.2,0.5c0.3,0.3,0.5,0.7,0.5,1.2v10.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V3c0-0.5,0.2-0.9,0.5-1.2C24.1,1.4,24.5,1.3,25,1.3z M25,35.2c0.5,0,0.9,0.2,1.2,0.5\n c0.3,0.3,0.5,0.7,0.5,1.2V47c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2V36.9\n c0-0.5,0.2-0.9,0.5-1.2C24.1,35.3,24.5,35.2,25,35.2z M48.7,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H36.9\n c-0.5,0-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2s0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5H47c0.5,0,0.9,0.2,1.2,0.5\n C48.6,24.1,48.7,24.5,48.7,25z M14.8,25c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5H3c-0.5,0-0.9-0.2-1.2-0.5\n c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.9,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5h10.2c0.5,0,0.9,0.2,1.2,0.5C14.7,24.1,14.8,24.5,14.8,25z\n M8.2,8.2C8.6,7.9,9,7.7,9.4,7.7c0.5,0,0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.4,0.5,0.8,0.5,1.2c0,0.4-0.2,0.8-0.5,1.2\n c-0.3,0.3-0.7,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.3-0.3-0.5-0.7-0.5-1.2C7.7,9,7.9,8.6,8.2,8.2z M32.2,32.2\n c0.4-0.4,0.8-0.5,1.2-0.5s0.8,0.2,1.2,0.5l7.2,7.2c0.3,0.3,0.5,0.7,0.5,1.2c0,0.5-0.2,0.9-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n c-0.5,0-0.8-0.2-1.2-0.5l-7.2-7.2c-0.4-0.4-0.5-0.8-0.5-1.2S31.9,32.6,32.2,32.2L32.2,32.2z M41.8,8.2c0.3,0.4,0.5,0.8,0.5,1.2\n c0,0.5-0.2,0.8-0.5,1.2l-7.2,7.2c-0.4,0.3-0.8,0.5-1.2,0.5c-0.4,0-0.8-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.4,0.2-0.8,0.5-1.2\n l7.2-7.2c0.3-0.3,0.7-0.5,1.2-0.5C41,7.7,41.4,7.9,41.8,8.2z M17.8,32.2c0.4,0.4,0.5,0.8,0.5,1.2s-0.2,0.8-0.5,1.2l-7.2,7.2\n c-0.3,0.3-0.7,0.5-1.2,0.5s-0.9-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2c0-0.5,0.2-0.8,0.5-1.2l7.2-7.2c0.4-0.4,0.8-0.5,1.2-0.5\n S17.4,31.9,17.8,32.2L17.8,32.2z"}})])])]):e._e(),i.desc.trim()&&!e.isHidePopTitleAndDesc?t("div",{staticClass:"popupImg-msg",style:{opacity:e.isLoadedText?1:0}},[e.isIphone()&&e.currentPopImageIndex===s&&e.isPopDescOverHeight&&!e.isExpandedPopDesc?t("span",{staticClass:"expandOrHide collapsed isIphone",on:{click:function(t){return t.stopPropagation(),e.exPandPopDesc(!0)}}},[e._v("["+e._s(e.expandText)+"]")]):e._e(),t("div",{staticClass:"popupImg-msg-outer",class:{ellipsis:e.currentPopImageIndex===s&&e.isPopDescOverHeight&&!e.isExpandedPopDesc}},[e.isIphone()||e.currentPopImageIndex!==s||!e.isPopDescOverHeight||e.isExpandedPopDesc?e._e():t("span",{staticClass:"expandOrHide collapsed",on:{click:function(t){return t.stopPropagation(),e.exPandPopDesc(!0)}}},[e._v("["+e._s(e.expandText)+"]")]),t("p",{ref:"msgdesc",refInFor:!0,staticClass:"popupImg-desc",attrs:{id:"popupImg-desc"+s}},[e._v(" "+e._s(i.desc)+" "),e.currentPopImageIndex===s&&e.isPopDescOverHeight&&e.isExpandedPopDesc?t("span",{staticClass:"expandOrHide expanded",on:{click:function(t){return t.stopPropagation(),e.exPandPopDesc(!1)}}},[e._v("["+e._s(e.hideText)+"]")]):e._e()])])]):e._e(),t("div",{staticClass:"popupImg-outer"},[t("div",{staticClass:"popupImg-scale",style:{transform:"scale("+e.currentPopImgScale+")"},on:{click:function(t){return t.stopPropagation(),e.showOrHidePopMsg.apply(null,arguments)},touchstart:function(t){return t.stopPropagation(),e.popImgTouchStart.apply(null,arguments)},touchend:function(t){return t.stopPropagation(),e.popImgTouchEnd.apply(null,arguments)}}},[t("img",{ref:"popupImgImg"+s,refInFor:!0,staticClass:"popupImg-img",class:"popupImgImg"+s,style:{transform:"scale("+e.currentPopImgScale+")",transformOrigin:e.popupImgTouchStore.originX+"px "+e.popupImgTouchStore.originY+"px",top:e.popupImgTop+"px",left:e.popupImgLeft+"px","pointer-events":e.imgCanBeSave},attrs:{src:e.getImgUrl(i)},on:{load:function(t){return e.loadImg(i)},touchstart:e.popupImgScaleTouchStart,touchmove:e.popupImgScaleTouchMove,touchend:e.popupImgScaleTouchEnd,touchcancel:e.popupImgScaleTouchCancel}})])])])}))],2)]):e._e(),t("transition",{attrs:{name:"fade"}},[e.isShowPopVideo?t("PhoneVideoBox",{key:"PhoneVideoBox-lightbox",attrs:{videoUrl:e.videoUrl,videoType:e.videoType,videoPlayParams:e.videoPlayParams}}):e._e()],1),e.isShowPhonePopupVideo?t("PhonePopupVideoBox",{attrs:{isShow:e.isShowPopupVideo,item:e.actionItem,popupVideoProps:e.popupVideoCurIframe.videoInfo,youTubeIdOrVimeoId:e.outerVideoHtml,realYouTubeId:e.getYouTubeIdFromUrl(e.popupVideoCurIframe.videoInfo.youTubeId),realVimeoId:e.getVimeoIdFromUrl(e.popupVideoCurIframe.videoInfo.vimeoId)},on:{"update:isShow":function(t){e.isShowPopupVideo=t},"update:is-show":function(t){e.isShowPopupVideo=t}}}):e._e(),t("transition",{attrs:{name:"alertmsg"}},[e.isShowAlertMsg?t("div",{staticClass:"alert-msg warning"},[t("AlertMsg")],1):e._e()]),e.isShowAddWechat?t("ParseAddWechat",{attrs:{curIframe:e.curIframe}}):e._e()],1)}),[],!1,null,null,null),xp=vp.exports;d.default.config.productionTip=!1,d.default.prototype.$http=r.Z,d.default.use(l());let Cp={};function bp(e,t,i){let s={hidePreviewImage:function(){},play:function(t){e.$children.forEach((function(e){e.isPlayingAnime=!0,e.play(t)}))},pause:function(t){e.$children.forEach((function(e){e.isPlayingAnime=!1,e.pause(t)}))},replay:function(){e.$children.forEach((function(e){e.isPlayingAnime=!0,e.replay()}))},getAutoPlayArray:function(){let t=[];return e.$children.forEach((function(e){t=e.getAutoPlayArray()})),t},seek:function(e){},reset:function(){e.$children.forEach((function(e){e.seek(0),e.isPlayingAnime=!1,e.pause(),e.clearActionAnime()}))},resize:function(t,i){e.$children.forEach((function(e){e.resize({width:parseFloat(t),height:parseFloat(i)})}))},clear:function(){e.$children.forEach((function(e){e.clearTimeline()}))},popWindow:function(t,i,s){e.$children[0].popWindow(t,i,s)},initAutoplayList:function(t,i){e.$children[0].initAutoplayList(t,i)},sliderEnterPage:function(t,i,s){e.$children[0].sliderEnterPage(t,i,s)},sliderLeavePage:function(){e.$children[0].sliderLeavePage()},destoryed:function(){e.$children[0].destory(),e.$destroy(),e=null},startFlip:function(){e.$children[0].startFlip()},endFlip:function(){e.$children[0].endFlip()},refreshEvent:function(){e.$children[0].refreshEvent()},enterPage:function(){e.$children[0].enterPage()},leavePage:function(){e.$children[0].leavePage()},searchText:function(t){return e.$children[0].searchText(t),e.$children[0].getSearchTextResults()},getSearchTextResults:function(){return e.$children[0].getSearchTextResults()},clearHighLight:function(){e.$children[0].clearHighLight()},pageIsReady(){return e.$children[0].checkPageStatus()},pageAnimeFinish(){return e.$children[0].checkPageAnime()},pageSeekNext(){return e.$children[0].seek2Next()},restorePages(){e.$children[0].restorePages()},findItem(t,i=-1){return e.$children[0].findItem(t,i)}};return s}void 0!==window.readerConfig&&(Cp=window.readerConfig.pageConfig,T.Z.commit("SAVE_PAGE_CONFIG",{pageConfig:Cp})),window.setVueDom=function({dom:e,scaleDom:t,pageIndex:i,width:s,height:n,pageStr:r,lazy:a=!1}){return new Promise((l=>{const h=Number(i);T.Z.commit("SET_CANVAS",{width:s,height:n,needResetPage:!1});const c=e,u=new d.default({data:{pageStr:r,scaleDom:t,lazy:a,pageIndex:h},store:T.Z,render:e=>e(Du)}).$mount(c);o.Q.$on(`PAGE_FINISHED_${h}`,(e=>{l(bp(u,h,"setVueDom")),o.Q.$off(`PAGE_FINISHED_${h}`)}))}))},window.setVuePopDom=function({dom:e,scaleDom:t,pageIndex:i,width:s,height:n,pageStr:r}){return new Promise((s=>{const n=Number(i),a=e,l=new d.default({data:{pageStr:r,scaleDom:t,pageIndex:n,isPop:!0},store:T.Z,render:e=>e(xp)}).$mount(a);o.Q.$on(o.Y.PAGE_POP_FINISHED,(()=>{s(bp(l,n,"setVuePopDom")),o.Q.$off(o.Y.PAGE_POP_FINISHED)}))}))},window._matchEditorText=function(e){const t=window.readerConfig&&window.readerConfig.pages?window.readerConfig.pages:[];return ju((0,ih.j)(t),e)}},5965:function(e,t,i){"use strict";i(7658);var s=i(7746),n=i(1861),o=i(7066),r=i(144),a=i(629),l=i(2698),d=i(5125),h=i(2983),c=i(6546);r.default.use(a.ZP,o.Z),t.Z=new a.ZP.Store({state:{isSupportWebp:!1,isMobile:!1,isIOS:!1,pageConfig:{originPageWidth:0,originPageHeight:0},canvas:{width:736,height:500},isShowAlertMsg:!1,videoPlayObj:[],isPlayBgSound:!0,autoPlayList:{},currentPlayerIndex:0,animeTime:{},animeTotalTime:{},isPlayingAnime:{},isShowPopVideo:!1,isShowPopupVideo:!1,isPlayAudio:!1,isShowPopupMsg:!1,isShowAddWechat:!1,mobileFontScale:1,textSearchResults:Object.freeze([]),globalAudioItems:[],playedPluginMusicItems:new Map,pluginMusicPlayList:[],pluginMusiclastList:[],isForbidPluginMusic:!1},getters:{isFlipPro:e=>"flip"===l.Hq,isYZPro:e=>"yunzhan"===l.Hq,isH5Pro:e=>"h5"===l.Hq,apiHost:e=>{const t=window.location.href;return t.indexOf("flipbuilder")>-1?"/":t.match(/book|www.yunzhan365/)?"//www.yunzhan365.com/":t.match(/test[\S]*./)||t.indexOf("dev.")>-1?"":"/yzapi/"},host:e=>{{const e=window.location.pathname;switch("flip"){case"yunzhan":default:return~e.indexOf("mobile")||~e.indexOf("articles")?window.bookConfig&&window.bookConfig.bookResourceBaseURL?window.bookConfig.bookResourceBaseURL+"files/pageConfig/":"../files/pageConfig/":window.bookConfig&&window.bookConfig.bookResourceBaseURL?window.bookConfig.bookResourceBaseURL+"files/pageConfig/":"./files/pageConfig/";case"flip":return"./files/editor/files/extfile/"}}},ossWebp:e=>"",ossImgSuffix:e=>"",ossGifSuffix:e=>{},fitViewScale:function(e){let t=e.canvas.width/e.pageConfig.originPageWidth,i=e.canvas.height/e.pageConfig.originPageHeight;return Math.min(t,i)},realPageWH:function(e,t){e.pageConfig.originPageWidth,e.pageConfig.originPageHeight;let i=e.canvas.width,s=e.canvas.height;return{pageInnerWidth:i,pageInnerHeight:s,pageInnerLeft:0,pageInnerTop:0}}},mutations:{IS_SUPPORT_WEBP:(e,{isSupport:t})=>{e.isSupportWebp=t},NAVIGATOR_INFO:(e,{isMobile:t,isIOS:i})=>{void 0!==t&&(e.isMobile=t),void 0!==i&&(e.isIOS=i)},SAVE_PAGE_CONFIG:(e,{pageConfig:t,page:i,pageIndex:s})=>{e.pageConfig.originPageWidth=t.pageWidth,e.pageConfig.originPageHeight=t.pageHeight},CLEAR_PAGE:(e,{pageIndex:t})=>{r.default.set(e.animeTime,t,-1),r.default.set(e.isPlayingAnime,t,!1)},REFRESH_CODE:(e,{item:t,type:i,value:n})=>{switch(i){case"svg":r.default.set(t,"svgCode",n);break;case"frames":if("string"==typeof n){let e=s.P6.getUniqueId(),i=!1,o=s.l3.getSvgString(n,e,i),a=[s.l3.getColorList({svgCode:o,fillNone:!0}).svgString];r.default.set(t,"containerList",a)}if("object"==typeof n){let e={};t.hasFillSvg&&(e.fillColor=t.fillColor),delete n.type,delete n.viewBox,Object.assign(t,n,e)}}},SET_CANVAS:(e,{width:t,height:i,needResetPage:s})=>{e.canvas.width=t,e.canvas.height=i},SET_PAGE_STYLE:(e,{page:t,width:i,height:s,left:n,top:o,scale:r})=>{void 0!==i&&(t.width=i),void 0!==s&&(t.height=s),void 0!==n&&(t.left=n),void 0!==o&&(t.top=o),void 0!==r&&(t.scale=r)},UPDATE_PAGE_STATUS:(e,{pageIndex:t,status:i})=>{r.default.set(e.isPlayingAnime,t,i)},UPDATE_PAGE_TIME:(e,{pageIndex:t,time:i})=>{r.default.set(e.animeTime,t,i)},UPDATE_PAGE_TOTAL_TIME:(e,{pageIndex:t,time:i})=>{r.default.set(e.animeTotalTime,t,i)},STORE_TEXT_SEARCH_RESULTS:(e,{results:t,clear:i=!1})=>{if(i)e.textSearchResults=[];else{const i=Object.isFrozen(e.textSearchResults)?JSON.parse(JSON.stringify(e.textSearchResults)):e.textSearchResults;i.push(...t),e.textSearchResults=Object.freeze(i)}},SAVE_PLAYED_PLUGIN_MUSIC:(e,{playItem:t={}})=>{if(s.P6.isEmptyObject(t))return;let i=t.currentPages;i=i.length>1?i.join("-"):i.join(""),e.playedPluginMusicItems.get(i)&&e.playedPluginMusicItems.delete(i),e.playedPluginMusicItems.set(i,t)},UPDATE_MUSIC_INDEX:(e,{pageIndex:t=0,currentPlayerIndex:i=0})=>{e.currentPlayerIndex=i},UPDATE_AUTOPLAY_LIST:(e,{list:t={}})=>{e.autoPlayList=t},UPDATE_FONT_SCALE(e,t){e.mobileFontScale=t}},actions:{ASYN_GET_ITEM_RES({state:e,commit:t,getters:a},{pageIndex:l,page:u}){return new Promise((a=>{let l=[],p=[],m=a=>{if("text"===a.type&&!a.systemFontToSvg){const e=a.innerTextStyle.fontFamily;if(!p.includes(e)&&!d.e.hasAddedFonts.has(e)&&!d.e.errorFonts.has(e)){p.push(e);const t=a.isUploadedFont?a.uploadFontUrl:a.minFontUrl,i=new FontFace(e,`url('${t}')`);i.load().then((s=>{d.e.addFont(e,t,i)})).catch((i=>{d.e.addErrorFont(e),d.e.createFontFaceNode(e,t)})).finally((()=>{c.Q.$emit(`FONT_HAS_LOAD_${e}`)}))}}if("table"===a.type){const e=new Map;a.tableList.forEach((t=>{let i=t.filter((t=>!e.has(t.innerTextStyle.fontFamily)&&e.set(t.innerTextStyle.fontFamily,1)));i.forEach((e=>{const t=e.innerTextStyle.fontFamily;if(!p.includes(t)&&!d.e.hasAddedFonts.has(t)&&!d.e.errorFonts.has(t)){p.push(t);const i=e.isUploadedFont?e.uploadFontUrl:e.minFontUrl,s=new FontFace(t,`url('${i}')`);s.load().then((e=>{d.e.addFont(t,i,s)})).catch((e=>{d.e.addErrorFont(t),d.e.createFontFaceNode(t,i)})).finally((()=>{c.Q.$emit(`FONT_HAS_LOAD_${t}`)}))}}))}))}if("pagination"===a.type){const e=a.innerTextStyle.fontFamily;if(!p.includes(e)&&!d.e.hasAddedFonts.has(e)&&!d.e.errorFonts.has(e)){p.push(e);const t=a.isUploadedFont?a.uploadFontUrl:a.minFontUrl,i=new FontFace(e,`url('${t}')`);i.load().then((s=>{d.e.addFont(e,t,i)})).catch((i=>{d.e.addErrorFont(e),d.e.createFontFaceNode(e,t)})).finally((()=>{c.Q.$emit(`FONT_HAS_LOAD_${e}`)}))}}if("image"===a.type)if(a.isSprite)a.gifs.forEach((t=>{t.hasLoadedNormal=!1;let i=t.jsonUrl.length-1;e.isMobile&&(i=1);let n=[0,i];r.default.set(t,"loadImageIndex",i),t.jsonUrl.forEach(((e,i)=>{if(n.includes(i)){let s=o.Z.get(e).then((e=>{r.default.set(t.grids,i,e.data)})).catch((e=>{}));l.push(s)}if(0===i&&!p.includes(t.image[0])){p.push(t.image[0]);let e=s.P6.preLoadImage(t.image[0]).catch((e=>{}));l.push(e)}}))}));else if(!p.includes(a.fileName)){p.push(a.fileName);let e=s.P6.preLoadImage(a.url).catch((e=>{}));l.push(e)}if("frames"===a.type&&0===a.containerList.length){let e=`${a.jsonUrl}`,i=o.Z.get(e).then((e=>{t("REFRESH_CODE",{item:a,type:"frames",value:e.data})})).catch((e=>{}));l.push(i),a.imageList.forEach(((e,t)=>{const{url:i,fileName:n}=e;if(i&&!p.includes(n)){p.push(n);let e=s.P6.preLoadImage(i).catch((e=>{}));l.push(e)}}))}if("svg"===a.type&&!a.svgCode)if(a.isQRCode){let e=a.urlPrefix+a.qrcodeUrl,s=a.colorList,n=60,o=new(i(7304))({content:e,padding:0,width:n,height:n,color:s[1],background:s[0],ecl:"M"}).svg(),r=o.match("");o=o.replace(r,""),o=o.replace(/<\/svg>/,""),t("REFRESH_CODE",{item:a,type:"svg",value:o})}else{let e=`${a.svgUrl}`,i=o.Z.get(e).then((e=>{const{userHasChangedColor:i,svgString:s}=(0,h.O)({item:a,svgStr:e.data});(i||"painted"===a.animations.in.type)&&t("REFRESH_CODE",{item:a,type:"svg",value:s})})).catch((e=>{}));l.push(i)}if("effect"===a.type){let e=`${a.jsonUrl}`;a.hasLoadedJson=!1;let t=o.Z.get(e).then((e=>{a.hasLoadedJson=!0,a.json=e.data,(0,n.p)(a,e.data)})).catch((e=>{}));l.push(t)}};u.items.forEach((e=>{m(e),"group"===e.type&&e.items.forEach((e=>{m(e)}))})),u.subtitle.items.forEach((e=>m(e))),Promise.all(l).then((()=>{})).catch((e=>{})).finally((()=>{a()}))}))}}})},855:function(e,t,i){var s={"./NewSkin_10.vue":5525,"./NewSkin_11.vue":3088,"./NewSkin_12.vue":5496,"./NewSkin_13.vue":775,"./NewSkin_14.vue":9807,"./NewSkin_15.vue":829,"./NewSkin_16.vue":8949,"./NewSkin_17.vue":5558,"./NewSkin_18.vue":559,"./NewSkin_19.vue":955,"./NewSkin_2.vue":4048,"./NewSkin_20.vue":2380,"./NewSkin_3.vue":323,"./NewSkin_4.vue":566,"./NewSkin_5.vue":9392,"./NewSkin_6.vue":2776,"./NewSkin_7.vue":4144,"./NewSkin_8.vue":5635,"./NewSkin_9.vue":2790};function n(e){var t=o(e);return i(t)}function o(e){if(!i.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=o,e.exports=n,n.id=855},9951:function(){}},i={};function s(e){var n=i[e];if(void 0!==n)return n.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,s),o.loaded=!0,o.exports}s.m=t,s.amdD=function(){throw new Error("define cannot be used indirect")},s.amdO={},e=[],s.O=function(t,i,n,o){if(!i){var r=1/0;for(h=0;h=o)&&Object.keys(s.O).every((function(e){return s.O[e](i[l])}))?i.splice(l--,1):(a=!1,o0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[i,n,o]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={143:0};s.O.j=function(t){return 0===e[t]};var t=function(t,i){var n,o,r=i[0],a=i[1],l=i[2],d=0;if(r.some((function(t){return 0!==e[t]}))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var h=l(s)}for(t&&t(i);d