1 line
371 KiB
JavaScript
1 line
371 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-detail"],{"02ec":function(e,t,n){var r=n("23e7"),i=n("67b6");r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},"07dc":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3835"));n("a9e3"),n("c975"),n("ac1f"),n("5319");var a=r(n("93e8")),o=r(n("78ed")),s=n("37dc"),c=r(n("082c")),l=(0,s.initVueI18n)(c.default),d=l.t,u={name:"UniDatetimePicker",components:{calendar:a.default,timePicker:o.default},data:function(){return{isRange:!1,hasTime:!1,mobileRange:!1,singleVal:"",tempSingleDate:"",defSingleDate:"",time:"",caleRange:{startDate:"",startTime:"",endDate:"",endTime:""},range:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},visible:!1,popup:!1,popover:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,iconBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAACVklEQVRoge2Zv2vTQRTAP4oWJQQskmolBAnSQVMcSxbp4ubmIEWETu0oIjg5iIOgpLNunfQfMHToUgpOVgfRqRAL4q8WRLQVq4sOdyHPL9/7evfNJReS+8DB433v7r37fl/eu9xBJBKUB0BLt+uDaOOQZb8SUNXyuKuRftg46NeXcBww6M8AC0ANOAycAyb1s7e6+SbNxi/gBfAQ2HadcA7YB/4MUPsKzLos4jzwewAcNy3mhMnx5I/9BiqUAD4DDWAXmAfqWt8Enlq+GBfSbEwAt4AicAxYBO7aTPaGzhu4KvTLQn/Hh9cpmGzcFvqmaXAyaxWE/MGTg93yXsgFUyfbOrJCJ2s8y+tRP21s0fmMTlmih8zT8WnN1GloCmJWaF0CpvrlSAb1/3fJXshNT470hZEIrZeoahqaU8BZ10Exa4XGtiCaKKL+EIHaMX8U81ZEP7ntrwi7n4CfWi7p+UCFdFdh7Rpaps9+mn93rjY2THut0QqtoVlIkpi1QjNyCzEdnl0W+idCXxb6VmKudaGfsbBhRbcHdEWhf5eYt0o6FVR6BjhqYcOKoQkt2y/SAB5rWVbpVeCilmUl3hb6JNeAI1p+ZWEjFzH9hsY2tEwHdHX9DGATWNLyceCeGL/YhY+58LWhy9o0uhJDKw3T4dlr4L6WZab5JvRBGJqs9UPI5R44lQfpx56pUzK0NlA3R6AK1Engu1+/nGhfK7R5bjtwGnXdFfpSJ6190Quz5grqQCC048lFXMhy2nQZWkUVsRowZv8OvLOPCvdHwE5APyKRSMQzfwE22DtT3T5PPwAAAABJRU5ErkJggg=="}},props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1}},watch:{type:{immediate:!0,handler:function(e,t){-1!==e.indexOf("time")?this.hasTime=!0:this.hasTime=!1,-1!==e.indexOf("range")?this.isRange=!0:this.isRange=!1}},value:{immediate:!0,handler:function(e,t){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler:function(e,t){if(e){var n=this.parseDate(e),r=n.defDate,i=n.defTime;this.caleRange.startDate=r,this.hasTime&&(this.caleRange.startTime=i)}}},end:{immediate:!0,handler:function(e,t){if(e){var n=this.parseDate(e),r=n.defDate,i=n.defTime;this.caleRange.endDate=r,this.hasTime&&(this.caleRange.endTime=i)}}}},computed:{reactStartTime:function(){var e=this.isRange?this.tempRange.startDate:this.tempSingleDate,t=e===this.caleRange.startDate?this.caleRange.startTime:"";return t},reactEndTime:function(){var e=this.isRange?this.tempRange.endDate:this.tempSingleDate,t=e===this.caleRange.endDate?this.caleRange.endTime:"";return t},reactMobDefTime:function(){var e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.time},mobSelectableTime:function(){return{start:this.caleRange.startTime,end:this.caleRange.endTime}},datePopupWidth:function(){return this.isRange?653:301},singlePlaceholderText:function(){return this.placeholder||("date"===this.type?this.selectDateText:d("uni-datetime-picker.selectDateTime"))},startPlaceholderText:function(){return this.startPlaceholder||this.startDateText},endPlaceholderText:function(){return this.endPlaceholder||this.endDateText},selectDateText:function(){return d("uni-datetime-picker.selectDate")},selectTimeText:function(){return d("uni-datetime-picker.selectTime")},startDateText:function(){return this.startPlaceholder||d("uni-datetime-picker.startDate")},startTimeText:function(){return d("uni-datetime-picker.startTime")},endDateText:function(){return this.endPlaceholder||d("uni-datetime-picker.endDate")},endTimeText:function(){return d("uni-datetime-picker.endTime")},okText:function(){return d("uni-datetime-picker.ok")},clearText:function(){return d("uni-datetime-picker.clear")}},created:function(){this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem")},mounted:function(){this.platform()},methods:{getForm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniForms",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t},initPicker:function(e){var t=this;if(!e||Array.isArray(e)&&!e.length)this.$nextTick((function(){t.clear(!1)}));else if(Array.isArray(e)||this.isRange){var n=(0,i.default)(e,2),r=n[0],a=n[1];if(!r&&!a)return;var o=this.parseDate(r),s=this.parseDate(a),c=o.defDate,l=s.defDate;this.range.startDate=this.tempRange.startDate=c,this.range.endDate=this.tempRange.endDate=l,this.hasTime&&(this.range.startDate=o.defDate+" "+o.defTime,this.range.endDate=s.defDate+" "+s.defTime,this.tempRange.startTime=o.defTime,this.tempRange.endTime=s.defTime);var d={before:o.defDate,after:s.defDate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,d,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,d,{which:"left"})}else{var u=this.parseDate(e),f=u.defDate,p=u.defTime;this.singleVal=f,this.tempSingleDate=f,this.defSingleDate=f,this.hasTime&&(this.singleVal=f+" "+p,this.time=p)}},updateLeftCale:function(e){var t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale:function(e){var t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform:function(){var e=uni.getSystemInfoSync();this.isPhone=e.windowWidth<=500,this.windowWidth=e.windowWidth},show:function(e){var t=this;if(!this.disabled)if(this.platform(),this.isPhone)this.$refs.mobile.open();else{this.popover={top:"10px"};var n=uni.createSelectorQuery().in(this).select(".uni-date-editor");n.boundingClientRect((function(e){t.windowWidth-e.left<t.datePopupWidth&&(t.popover.right=0)})).exec(),setTimeout((function(){if(t.popup=!t.popup,!t.isPhone&&t.isRange&&t.isFirstShow){t.isFirstShow=!1;var e=t.range,n=e.startDate,r=e.endDate;n&&r?t.diffDate(n,r)<30&&t.$refs.right.next():(t.$refs.right.next(),t.$refs.right.cale.lastHover=!1)}}),20)}},close:function(){var e=this;setTimeout((function(){e.popup=!1,e.$emit("maskClick",e.value)}),20)},setEmit:function(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.formItem&&this.formItem.setValue(e),this.$emit("change",e),this.$emit("input",e),this.$emit("update:modelValue",e),this.isEmitValue=!0},createTimestamp:function(e){return e=this.fixIosDateFormat(e),Date.parse(new Date(e))},singleChange:function(e){this.tempSingleDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange:function(){this.tempSingleDate?(this.hasTime?this.singleVal=this.tempSingleDate+" "+(this.time?this.time:"00:00:00"):this.singleVal=this.tempSingleDate,this.setEmit(this.singleVal),this.popup=!1):this.popup=!1},leftChange:function(e){var t=e.range,n=t.before,r=t.after;this.rangeChange(n,r);var i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i)},rightChange:function(e){var t=e.range,n=t.before,r=t.after;this.rangeChange(n,r);var i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i)},mobileChange:function(e){if(this.isRange){var t=e.range,n=t.before,r=t.after;if(this.handleStartAndEnd(n,r,!0),this.hasTime){var i=e.timeRange,a=i.startTime,o=i.endTime;this.tempRange.startTime=a,this.tempRange.endTime=o}this.confirmRangeChange()}else this.hasTime?this.singleVal=e.fulldate+" "+e.time:this.singleVal=e.fulldate,this.setEmit(this.singleVal);this.$refs.mobile.close()},rangeChange:function(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange:function(){if(this.tempRange.startDate||this.tempRange.endDate){var e,t;this.hasTime?(e=this.range.startDate=this.tempRange.startDate+" "+(this.tempRange.startTime?this.tempRange.startTime:"00:00:00"),t=this.range.endDate=this.tempRange.endDate+" "+(this.tempRange.endTime?this.tempRange.endTime:"00:00:00")):(e=this.range.startDate=this.tempRange.startDate,t=this.range.endDate=this.tempRange.endDate);var n=[e,t];this.setEmit(n),this.popup=!1}else this.popup=!1},handleStartAndEnd:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&t){var r=n?"tempRange":"range";this.dateCompare(e,t)?(this[r].startDate=e,this[r].endDate=t):(this[r].startDate=t,this[r].endDate=e)}},dateCompare:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e<=t},diffDate:function(e,t){e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/"));var n=(t-e)/864e5;return Math.abs(n)},clear:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isRange?(this.range.startDate="",this.range.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile.clearCalender():(this.$refs.left.clearCalender(),this.$refs.right.clearCalender(),this.$refs.right.next()),e&&(this.formItem&&this.formItem.setValue([]),this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.singleVal="",this.tempSingleDate="",this.time="",this.isPhone?this.$refs.mobile.clearCalender():this.$refs.pcSingle.clearCalender(),e&&(this.formItem&&this.formItem.setValue(""),this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},parseDate:function(e){e=this.fixIosDateFormat(e);var t=new Date(e),n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),a=t.getHours(),o=t.getMinutes(),s=t.getSeconds(),c=n+"-"+this.lessTen(r)+"-"+this.lessTen(i),l=this.lessTen(a)+":"+this.lessTen(o)+(this.hideSecond?"":":"+this.lessTen(s));return{defDate:c,defTime:l}},lessTen:function(e){return e<10?"0"+e:e},fixIosDateFormat:function(e){return"string"===typeof e&&(e=e.replace(/-/g,"/")),e},leftMonthSwitch:function(e){},rightMonthSwitch:function(e){}}};t.default=u},"082c":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("d314")),a=r(n("8e50")),o=r(n("b2af")),s={en:i.default,"zh-Hans":a.default,"zh-Hant":o.default};t.default=s},"0897":function(e,t,n){"use strict";n.r(t);var r=n("3627"),i=n("7a87");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("0fe2");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"1de8c812",null,!1,r["a"],void 0);t["default"]=s.exports},"0dda":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("14d9"),n("d3b7"),n("d9e2"),n("d401"),n("e25e"),n("ac1f"),n("5319"),n("99af");var i=r(n("8295")),a=r(n("0e6e")),o=[],s={name:"mp-html",data:function(){return{nodes:[]}},props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},components:{node:i.default},watch:{content:function(e){this.setContent(e)}},created:function(){this.plugins=[];for(var e=o.length;e--;)this.plugins.push(new o[e](this))},mounted:function(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy:function(){this._hook("onDetached"),clearInterval(this._timer)},methods:{in:function(e,t,n){e&&t&&n&&(this._in={page:e,selector:t,scrollTop:n})},navigateTo:function(e,t){var n=this;return new Promise((function(r,i){if(n.useAnchor){t=t||parseInt(n.useAnchor)||0;var a=uni.createSelectorQuery().in(n._in?n._in.page:n).select((n._in?n._in.selector:"._root")+(e?"".concat(" ","#").concat(e):"")).boundingClientRect();n._in?a.select(n._in.selector).scrollOffset().select(n._in.selector).boundingClientRect():a.selectViewport().scrollOffset(),a.exec((function(e){if(e[0]){var a=e[1].scrollTop+e[0].top-(e[2]?e[2].top:0)+t;n._in?n._in.page[n._in.scrollTop]=a:uni.pageScrollTo({scrollTop:a,duration:300}),r()}else i(Error("Label not found"))}))}else i(Error("Anchor is disabled"))}))},getText:function(e){var t="";return function e(n){for(var r=0;r<n.length;r++){var i=n[r];if("text"===i.type)t+=i.text.replace(/&/g,"&");else if("br"===i.name)t+="\n";else{var a="p"===i.name||"div"===i.name||"tr"===i.name||"li"===i.name||"h"===i.name[0]&&i.name[1]>"0"&&i.name[1]<"7";a&&t&&"\n"!==t[t.length-1]&&(t+="\n"),i.children&&e(i.children),a&&"\n"!==t[t.length-1]?t+="\n":"td"!==i.name&&"th"!==i.name||(t+="\t")}}}(e||this.nodes),t},getRect:function(){var e=this;return new Promise((function(t,n){uni.createSelectorQuery().in(e).select("#_root").boundingClientRect().exec((function(e){return e[0]?t(e[0]):n(Error("Root label not found"))}))}))},pauseMedia:function(){for(var e=(this._videos||[]).length;e--;)this._videos[e].pause()},setContent:function(e,t){var n=this;t&&this.imgList||(this.imgList=[]);var r,i=new a.default(this).parse(e);this.$set(this,"nodes",t?(this.nodes||[]).concat(i):i),this._videos=[],this.$nextTick((function(){n._hook("onLoad"),n.$emit("load")})),clearInterval(this._timer),this._timer=setInterval((function(){n.getRect().then((function(e){e.height===r&&(n.$emit("ready",e),clearInterval(n._timer)),r=e.height})).catch((function(){}))}),350)},_hook:function(e){for(var t=o.length;t--;)this.plugins[t][e]&&this.plugins[t][e]()}}};t.default=s},"0e6e":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c975"),n("e25e"),n("caad"),n("2532"),n("99af"),n("acd8"),n("498a"),n("baa5"),n("ac1f"),n("5319"),n("14d9"),n("d401"),n("d3b7"),n("25f0"),n("a434"),n("fb6a");var r={trustTags:l("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:l("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:l("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:l("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur"}},i={},a=uni.getSystemInfoSync(),o=a.windowWidth,s=l(" ,\r,\n,\t,\f"),c=0;function l(e){for(var t=Object.create(null),n=e.split(","),r=n.length;r--;)t[n[r]]=!0;return t}function d(e,t){var n=e.indexOf("&");while(-1!==n){var i=e.indexOf(";",n+3),a=void 0;if(-1===i)break;"#"===e[n+1]?(a=parseInt(("x"===e[n+2]?"0":"")+e.substring(n+2,i)),isNaN(a)||(e=e.substr(0,n)+String.fromCharCode(a)+e.substr(i+1))):(a=e.substring(n+1,i),(r.entities[a]||"amp"===a&&t)&&(e=e.substr(0,n)+(r.entities[a]||"&")+e.substr(i+1))),n=e.indexOf("&",n+1)}return e}function u(e){this.options=e||{},this.tagStyle=Object.assign({},r.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function f(e){this.handler=e}r.ignoreTags.iframe=void 0,r.trustTags.iframe=!0,r.ignoreTags.embed=void 0,r.trustTags.embed=!0,u.prototype.parse=function(e){for(var t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,r)||e);new f(this).parse(e);while(this.stack.length)this.popNode();return this.nodes},u.prototype.expose=function(){for(var e=this.stack.length;e--;){var t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},u.prototype.hook=function(e){for(var t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},u.prototype.getUrl=function(e){var t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):!t||e.includes("data:")||e.includes("://")||(e=t+"/"+e),e},u.prototype.parseStyle=function(e){var t=e.attrs,n=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),r={},i="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(r.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(r.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(var a=0,c=n.length;a<c;a++){var l=n[a].split(":");if(!(l.length<2)){var d=l.shift().trim().toLowerCase(),u=l.join(":").trim();if("-"===u[0]&&u.lastIndexOf("-")>0||u.includes("safe"))i+=";".concat(d,":").concat(u);else if(!r[d]||u.includes("import")||!r[d].includes("import")){if(u.includes("url")){var f=u.indexOf("(")+1;if(f){while('"'===u[f]||"'"===u[f]||s[u[f]])f++;u=u.substr(0,f)+this.getUrl(u.substr(f))}}else u.includes("rpx")&&(u=u.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*o/750+"px"})));r[d]=u}}}return e.attrs.style=i,r},u.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1)},u.prototype.onAttrName=function(e){e=this.xml?e:e.toLowerCase(),"data-"===e.substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},u.prototype.onAttrVal=function(e){var t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=d(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(d(e,!0)):t&&(this.attrs[t]=e)},u.prototype.onOpenTag=function(e){var t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);var n=t.attrs,a=this.stack[this.stack.length-1],s=a?a.children:this.nodes,l=this.xml?e:r.voidTags[t.name];if(i[t.name]&&(n.class=i[t.name]+(n.class?" "+n.class:"")),"embed"===t.name&&this.expose(),"video"!==t.name&&"audio"!==t.name||("video"!==t.name||n.id||(n.id="v"+c++),n.controls||n.autoplay||(n.controls="T"),t.src=[],n.src&&(t.src.push(n.src),n.src=void 0),this.expose()),l){if(!this.hook(t)||r.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&a&&("video"===a.name||"audio"===a.name)&&n.src&&a.src.push(n.src):this.options.domain=n.href);var d=this.parseStyle(t);if("img"===t.name){if(n.src&&(n.src.includes("webp")&&(t.webp="T"),n.src.includes("data:")&&!n["original-src"]&&(n.ignore="T"),!n.ignore||t.webp||n.src.includes("cloud://"))){for(var u=this.stack.length;u--;){var f=this.stack[u];if("a"===f.name){t.a=f.attrs;break}f.c=1}n.i=this.imgList.length.toString();var p=n["original-src"]||n.src;this.imgList.push(p),this.options.lazyLoad&&(n["data-src"]=n.src,n.src=void 0)}"inline"===d.display&&(d.display=""),n.ignore&&(d["max-width"]=d["max-width"]||"100%",n.style+=";-webkit-touch-callout:none"),parseInt(d.width)>o&&(d.height=void 0),isNaN(parseInt(d.width))||(t.w="T"),!isNaN(parseInt(d.height))&&(!d.height.includes("%")||a&&(a.attrs.style||"").includes("height"))&&(t.h="T")}else if("svg"===t.name)return s.push(t),this.stack.push(t),void this.popNode();for(var h in d)d[h]&&(n.style+=";".concat(h,":").concat(d[h].replace(" !important","")));n.style=n.style.substr(1)||void 0}else("pre"===t.name||(n.style||"").includes("white-space")&&n.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);s.push(t)},u.prototype.onCloseTag=function(e){var t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--;)if(this.stack[t].name===e)break;if(-1!==t)while(this.stack.length>t)this.popNode();else if("p"===e||"br"===e){var n=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;n.push({name:e,attrs:{class:i[e],style:this.tagStyle[e]}})}},u.prototype.popNode=function(){var e=this.stack.pop(),t=e.attrs,n=e.children,i=this.stack[this.stack.length-1],a=i?i.children:this.nodes;if(!this.hook(e)||r.ignoreTags[e.name])return"title"===e.name&&n.length&&"text"===n[0].type&&this.options.setTitle&&uni.setNavigationBarTitle({title:n[0].text}),void a.pop();if(e.pre&&2!==this.pre){this.pre=e.pre=void 0;for(var s=this.stack.length;s--;)this.stack[s].pre&&(this.pre=1)}var c={};if("svg"===e.name){if(this.xml>1)return void this.xml--;var l="",d=t.style;return t.style="",t.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"!==t.type){var n=r.svgDict[t.name]||t.name;for(var i in l+="<"+n,t.attrs){var a=t.attrs[i];a&&(l+=" ".concat(r.svgDict[i]||i,'="').concat(a,'"'))}if(t.children){l+=">";for(var o=0;o<t.children.length;o++)e(t.children[o]);l+="</"+n+">"}else l+="/>"}else l+=t.text}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,"+l.replace(/#/g,"%23"),style:d,ignore:"T"},e.children=void 0,void(this.xml=!1)}if(t.align&&("table"===e.name?"center"===t.align?c["margin-inline-start"]=c["margin-inline-end"]="auto":c.float=t.align:c["text-align"]=t.align,t.align=void 0),t.dir&&(c.direction=t.dir,t.dir=void 0),"font"===e.name&&(t.color&&(c.color=t.color,t.color=void 0),t.face&&(c["font-family"]=t.face,t.face=void 0),t.size)){var u=parseInt(t.size);isNaN(u)||(u<1?u=1:u>7&&(u=7),c["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][u-1]),t.size=void 0}if((t.class||"").includes("align-center")&&(c["text-align"]="center"),Object.assign(c,this.parseStyle(e)),"table"!==e.name&&parseInt(c.width)>o&&(c["max-width"]="100%",c["box-sizing"]="border-box"),r.blockTags[e.name]?e.name="div":r.trustTags[e.name]||this.xml||(e.name="span"),"a"===e.name||"ad"===e.name||"iframe"===e.name)this.expose();else if("video"===e.name)(c.height||"").includes("auto")&&(c.height=void 0);else if("ul"!==e.name&&"ol"!==e.name||!e.c){if("table"===e.name){var f=parseFloat(t.cellpadding),p=parseFloat(t.cellspacing),h=parseFloat(t.border);if(e.c&&(isNaN(f)&&(f=2),isNaN(p)&&(p=2)),h&&(t.style+=";border:"+h+"px solid gray"),e.flag&&e.c){c.display="grid",p?(c["grid-gap"]=p+"px",c.padding=p+"px"):h&&(t.style+=";border-left:0;border-top:0");var m=[],v=[],b=[],g={};(function e(t){for(var n=0;n<t.length;n++)"tr"===t[n].name?v.push(t[n]):e(t[n].children||[])})(n);for(var y=1;y<=v.length;y++){for(var _=1,x=0;x<v[y-1].children.length;x++){var k=v[y-1].children[x];if("td"===k.name||"th"===k.name){while(g[y+"."+_])_++;var w=k.attrs.style||"",C=w.indexOf("width")?w.indexOf(";width"):0;if(-1!==C){var T=w.indexOf(";",C+6);-1===T&&(T=w.length),k.attrs.colspan||(m[_]=w.substring(C?C+7:6,T)),w=w.substr(0,C)+w.substr(T)}if(w+=(h?";border:".concat(h,"px solid gray")+(p?"":";border-right:0;border-bottom:0"):"")+(f?";padding:".concat(f,"px"):""),k.attrs.colspan&&(w+=";grid-column-start:".concat(_,";grid-column-end:").concat(_+parseInt(k.attrs.colspan)),k.attrs.rowspan||(w+=";grid-row-start:".concat(y,";grid-row-end:").concat(y+1)),_+=parseInt(k.attrs.colspan)-1),k.attrs.rowspan){w+=";grid-row-start:".concat(y,";grid-row-end:").concat(y+parseInt(k.attrs.rowspan)),k.attrs.colspan||(w+=";grid-column-start:".concat(_,";grid-column-end:").concat(_+1));for(var S=1;S<k.attrs.rowspan;S++)for(var D=0;D<(k.attrs.colspan||1);D++)g[y+S+"."+(_-D)]=1}w&&(k.attrs.style=w),b.push(k),_++}}if(1===y){for(var R="",E=1;E<_;E++)R+=(m[E]?m[E]:"auto")+" ";c["grid-template-columns"]=R}}e.children=b}else e.c&&(c.display="table"),isNaN(p)||(c["border-spacing"]=p+"px"),(h||f)&&function e(t){for(var n=0;n<t.length;n++){var r=t[n];"th"===r.name||"td"===r.name?(h&&(r.attrs.style="border:".concat(h,"px solid gray;").concat(r.attrs.style||"")),f&&(r.attrs.style="padding:".concat(f,"px;").concat(r.attrs.style||""))):r.children&&e(r.children)}}(n);if(this.options.scrollTable&&!(t.style||"").includes("inline")){var P=Object.assign({},e);e.name="div",e.attrs={style:"overflow:auto"},e.children=[P],t=P.attrs}}else if("td"!==e.name&&"th"!==e.name||!t.colspan&&!t.rowspan){if("ruby"===e.name){e.name="span";for(var M=0;M<n.length-1;M++)"text"===n[M].type&&"rt"===n[M+1].name&&(n[M]={name:"div",attrs:{style:"display:inline-block;text-align:center"},children:[{name:"div",attrs:{style:"font-size:50%;"+(n[M+1].attrs.style||"")},children:n[M+1].children},n[M]]},n.splice(M+1,1))}else if(e.c){e.c=2;for(var I=e.children.length;I--;){var O=e.children[I];O.c&&"table"!==O.name||(e.c=1)}}}else for(var A=this.stack.length;A--;)if("table"===this.stack[A].name){this.stack[A].flag=1;break}}else{var j={a:"lower-alpha",A:"upper-alpha",i:"lower-roman",I:"upper-roman"};j[t.type]&&(t.style+=";list-style-type:"+j[t.type],t.type=void 0);for(var B=n.length;B--;)"li"===n[B].name&&(n[B].c=1)}if((c.display||"").includes("flex")&&!e.c)for(var N=n.length;N--;){var $=n[N];$.f&&($.attrs.style=($.attrs.style||"")+$.f,$.f=void 0)}var L=i&&((i.attrs.style||"").includes("flex")||(i.attrs.style||"").includes("grid"))&&!e.c;if(L&&(e.f=";max-width:100%"),n.length>=50&&e.c&&!(c.display||"").includes("flex"))for(var z=n.length-1,U=z;U>=-1;U--)(-1===U||n[U].c||!n[U].name||"div"!==n[U].name&&"p"!==n[U].name&&"h"!==n[U].name[0]||(n[U].attrs.style||"").includes("inline"))&&(z-U>=5&&n.splice(U+1,z-U,{name:"div",attrs:{},children:e.children.slice(U+1,z+1)}),z=U-1);for(var F in c)if(c[F]){var V=";".concat(F,":").concat(c[F].replace(" !important",""));L&&(F.includes("flex")&&"flex-direction"!==F||"align-self"===F||F.includes("grid")||"-"===c[F][0]||F.includes("width")&&V.includes("%"))?(e.f+=V,"width"===F&&(t.style+=";width:100%")):t.style+=V}t.style=t.style.substr(1)||void 0},u.prototype.onText=function(e){if(!this.pre){for(var t,n="",r=0,i=e.length;r<i;r++)s[e[r]]?(" "!==n[n.length-1]&&(n+=" "),"\n"!==e[r]||t||(t=!0)):n+=e[r];if(" "===n&&t)return;e=n}var a=Object.create(null);if(a.type="text",a.text=d(e),this.hook(a)){var o=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;o.push(a)}},f.prototype.parse=function(e){this.content=e||"",this.i=0,this.start=0,this.state=this.text;for(var t=this.content.length;-1!==this.i&&this.i<t;)this.state()},f.prototype.checkClose=function(e){var t="/"===this.content[this.i];return!!(">"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("</",this.i),-1!==this.i&&(this.i+=2,this.start=this.i),this.state=this.endTag):this.state=this.text,!0)},f.prototype.text=function(){if(this.i=this.content.indexOf("<",this.i),-1!==this.i){var e=this.content[this.i+1];if(e>="a"&&e<="z"||e>="A"&&e<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));var t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);var n="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!==this.i&&(this.i+=n.length,this.start=this.i)}else this.i++}else this.start<this.content.length&&this.handler.onText(this.content.substring(this.start,this.content.length))},f.prototype.tagName=function(){if(s[this.content[this.i]]){this.handler.onTagName(this.content.substring(this.start,this.i));while(s[this.content[++this.i]]);this.i<this.content.length&&!this.checkClose()&&(this.start=this.i,this.state=this.attrName)}else this.checkClose("onTagName")||this.i++},f.prototype.attrName=function(){var e=this.content[this.i];if(s[e]||"="===e){this.handler.onAttrName(this.content.substring(this.start,this.i));var t="="===e,n=this.content.length;while(++this.i<n)if(e=this.content[this.i],!s[e]){if(this.checkClose())return;if(t)return this.start=this.i,void(this.state=this.attrVal);if("="!==this.content[this.i])return this.start=this.i,void(this.state=this.attrName);t=!0}}else this.checkClose("onAttrName")||this.i++},f.prototype.attrVal=function(){var e=this.content[this.i],t=this.content.length;if('"'===e||"'"===e){if(this.start=++this.i,this.i=this.content.indexOf(e,this.i),-1===this.i)return;this.handler.onAttrVal(this.content.substring(this.start,this.i))}else for(;this.i<t;this.i++){if(s[this.content[this.i]]){this.handler.onAttrVal(this.content.substring(this.start,this.i));break}if(this.checkClose("onAttrVal"))return}while(s[this.content[++this.i]]);this.i<t&&!this.checkClose()&&(this.start=this.i,this.state=this.attrName)},f.prototype.endTag=function(){var e=this.content[this.i];if(s[e]||">"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};var p=u;t.default=p},"0fe2":function(e,t,n){"use strict";var r=n("46a3"),i=n.n(r);i.a},"1bfb":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniDatetimePicker:n("40c0").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-filter-dropdown"},[n("v-uni-view",{staticClass:"dropdown-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onDropdown.apply(void 0,arguments)}}},[e.isSelect||e.isRange?n("v-uni-view",{staticClass:"icon-select",class:{active:e.canReset}}):e._e(),e.isSearch?n("v-uni-view",{staticClass:"icon-search",class:{active:e.canReset}},[n("v-uni-view",{staticClass:"icon-search-0"}),n("v-uni-view",{staticClass:"icon-search-1"})],1):e._e(),e.isDate?n("v-uni-view",{staticClass:"icon-calendar",class:{active:e.canReset}},[n("v-uni-view",{staticClass:"icon-calendar-0"}),n("v-uni-view",{staticClass:"icon-calendar-1"})],1):e._e()],1),e.isOpened?n("v-uni-view",{staticClass:"uni-dropdown-cover",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleClose.apply(void 0,arguments)}}}):e._e(),e.isOpened?n("v-uni-view",{staticClass:"dropdown-popup dropdown-popup-right",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t)}}},[e.isSelect?n("v-uni-view",{staticClass:"list"},e._l(e.dataList,(function(t,r){return n("v-uni-label",{key:r,staticClass:"flex-r a-i-c list-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onItemClick(t,r)}}},[n("check-box",{staticClass:"check",attrs:{checked:t.checked}}),n("v-uni-view",{staticClass:"checklist-content"},[n("v-uni-text",{staticClass:"checklist-text",style:t.styleIconText},[e._v(e._s(t[e.map.text]))])],1)],1)})),1):e._e(),e.isSelect?n("v-uni-view",{staticClass:"flex-r opera-area"},[n("v-uni-view",{staticClass:"flex-f btn btn-default",class:{disable:!e.canReset},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleSelectReset.apply(void 0,arguments)}}},[e._v(e._s(e.resource.reset))]),n("v-uni-view",{staticClass:"flex-f btn btn-submit",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleSelectSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.resource.submit))])],1):e._e(),e.isSearch?n("v-uni-view",{staticClass:"search-area"},[n("v-uni-input",{staticClass:"search-input",model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1):e._e(),e.isSearch?n("v-uni-view",{staticClass:"flex-r opera-area"},[n("v-uni-view",{staticClass:"flex-f btn btn-submit",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleSearchSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.resource.search))]),n("v-uni-view",{staticClass:"flex-f btn btn-default",class:{disable:!e.canReset},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleSearchReset.apply(void 0,arguments)}}},[e._v(e._s(e.resource.reset))])],1):e._e(),e.isRange?n("v-uni-view",[n("v-uni-view",{staticClass:"input-label"},[e._v(e._s(e.resource.gt))]),n("v-uni-input",{staticClass:"input",model:{value:e.gtValue,callback:function(t){e.gtValue=t},expression:"gtValue"}}),n("v-uni-view",{staticClass:"input-label"},[e._v(e._s(e.resource.lt))]),n("v-uni-input",{staticClass:"input",model:{value:e.ltValue,callback:function(t){e.ltValue=t},expression:"ltValue"}})],1):e._e(),e.isRange?n("v-uni-view",{staticClass:"flex-r opera-area"},[n("v-uni-view",{staticClass:"flex-f btn btn-default",class:{disable:!e.canReset},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleRangeReset.apply(void 0,arguments)}}},[e._v(e._s(e.resource.reset))]),n("v-uni-view",{staticClass:"flex-f btn btn-submit",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleRangeSubmit.apply(void 0,arguments)}}},[e._v(e._s(e.resource.submit))])],1):e._e(),e.isDate?n("v-uni-view",[n("uni-datetime-picker",{ref:"datetimepicker",attrs:{value:e.dateRange,type:"datetimerange","return-type":"timestamp"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.datetimechange.apply(void 0,arguments)},maskClick:function(t){arguments[0]=t=e.$handleEvent(t),e.timepickerclose.apply(void 0,arguments)}}},[n("v-uni-view")],1)],1):e._e()],1):e._e()],1)},a=[]},"1da5":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3");var r={name:"TableCheckbox",emits:["checkboxSelected"],props:{indeterminate:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},index:{type:Number,default:-1},cellData:{type:Object,default:function(){return{}}}},watch:{checked:function(e){"boolean"===typeof this.checked?this.isChecked=e:this.isChecked=!0},indeterminate:function(e){this.isIndeterminate=e}},data:function(){return{isChecked:!1,isDisabled:!1,isIndeterminate:!1}},created:function(){"boolean"===typeof this.checked&&(this.isChecked=this.checked),this.isDisabled=this.disabled},methods:{selected:function(){this.isDisabled||(this.isIndeterminate=!1,this.isChecked=!this.isChecked,this.$emit("checkboxSelected",{checked:this.isChecked,data:this.cellData}))}}};t.default=r},"1e25":function(e,t,n){n("cad8");var r=n("23e7"),i=n("cb4c");r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},"225f":function(e,t,n){var r=n("4dc0");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("2544db27",r,!0,{sourceMap:!1,shadowMode:!1})},2577:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".uni-datetime-picker[data-v-0442256a]{\n\n\t/* width: 100%; */\n}.uni-datetime-picker-view[data-v-0442256a]{height:130px;width:270px;\ncursor:pointer\n}.uni-datetime-picker-item[data-v-0442256a]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-0442256a]{margin-top:60px;\ndisplay:flex;cursor:pointer;\nflex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-0442256a]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-0442256a]{\ndisplay:flex;\nflex-direction:row}.uni-datetime-picker-cancel[data-v-0442256a]{margin-right:30px}.uni-datetime-picker-mask[data-v-0442256a]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-0442256a]{border-radius:8px;padding:30px;width:270px;\n\n\n\nbackground-color:#fff;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.fix-nvue-height[data-v-0442256a]{\n}.uni-datetime-picker-time[data-v-0442256a]{color:grey}.uni-datetime-picker-column[data-v-0442256a]{height:50px}.uni-datetime-picker-timebox[data-v-0442256a]{border:1px solid #e5e5e5;border-radius:5px;padding:7px 10px;\nbox-sizing:border-box;cursor:pointer\n}.uni-datetime-picker-timebox-pointer[data-v-0442256a]{\ncursor:pointer\n}.uni-datetime-picker-disabled[data-v-0442256a]{opacity:.4;\ncursor:not-allowed!important\n}.uni-datetime-picker-text[data-v-0442256a]{font-size:14px}.uni-datetime-picker-sign[data-v-0442256a]{position:absolute;top:53px;\n\t/* 减掉 10px 的元素高度,兼容nvue */color:#999;\n}.sign-left[data-v-0442256a]{left:86px}.sign-right[data-v-0442256a]{right:86px}.sign-center[data-v-0442256a]{left:135px}.uni-datetime-picker__container-box[data-v-0442256a]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-0442256a]{width:180px}",""]),e.exports=t},"2c56":function(e,t,n){var r=n("79ce");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("15f69973",r,!0,{sourceMap:!1,shadowMode:!1})},"2d2e":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-table-th[data-v-7e731640]{padding:12px 10px;display:table-cell;box-sizing:border-box;font-size:14px;font-weight:700;color:#909399;border-bottom:1px #ebeef5 solid}.uni-table-th-row[data-v-7e731640]{display:flex;flex-direction:row}.table--border[data-v-7e731640]{border-right:1px #ebeef5 solid}.uni-table-th-content[data-v-7e731640]{display:flex;align-items:center;flex:1}.arrow[data-v-7e731640]{display:block;position:relative;width:10px;height:8px;left:5px;overflow:hidden;cursor:pointer}.down[data-v-7e731640]{top:3px}.down[data-v-7e731640] ::after{content:"";width:8px;height:8px;position:absolute;left:2px;top:-5px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background-color:#ccc}.down.active[data-v-7e731640] ::after{background-color:#007aff}.up[data-v-7e731640] ::after{content:"";width:8px;height:8px;position:absolute;left:2px;top:5px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background-color:#ccc}.up.active[data-v-7e731640] ::after{background-color:#007aff}',""]),e.exports=t},"2d55":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* a 标签默认效果 */._a[data-v-444783d8]{padding:1.5px 0 1.5px 0;color:#366092;word-break:break-all}\r\n/* a 标签点击态效果 */._hover[data-v-444783d8]{text-decoration:underline;opacity:.7}\r\n/* 图片默认效果 */._img[data-v-444783d8]{max-width:100%;-webkit-touch-callout:none}\r\n/* 内部样式 */._block[data-v-444783d8]{display:block}._b[data-v-444783d8],\r\n._strong[data-v-444783d8]{font-weight:700}._code[data-v-444783d8]{font-family:monospace}._del[data-v-444783d8]{text-decoration:line-through}._em[data-v-444783d8],\r\n._i[data-v-444783d8]{font-style:italic}._h1[data-v-444783d8]{font-size:2em}._h2[data-v-444783d8]{font-size:1.5em}._h3[data-v-444783d8]{font-size:1.17em}._h5[data-v-444783d8]{font-size:.83em}._h6[data-v-444783d8]{font-size:.67em}._h1[data-v-444783d8],\r\n._h2[data-v-444783d8],\r\n._h3[data-v-444783d8],\r\n._h4[data-v-444783d8],\r\n._h5[data-v-444783d8],\r\n._h6[data-v-444783d8]{display:block;font-weight:700}._image[data-v-444783d8]{height:1px}._ins[data-v-444783d8]{text-decoration:underline}._li[data-v-444783d8]{display:list-item}._ol[data-v-444783d8]{list-style-type:decimal}._ol[data-v-444783d8],\r\n._ul[data-v-444783d8]{display:block;padding-left:40px;margin:1em 0}._q[data-v-444783d8]::before{content:'\"'}._q[data-v-444783d8]::after{content:'\"'}._sub[data-v-444783d8]{font-size:smaller;vertical-align:sub}._sup[data-v-444783d8]{font-size:smaller;vertical-align:super}._thead[data-v-444783d8],\r\n._tbody[data-v-444783d8],\r\n._tfoot[data-v-444783d8]{display:table-row-group}._tr[data-v-444783d8]{display:table-row}._td[data-v-444783d8],\r\n._th[data-v-444783d8]{display:table-cell;vertical-align:middle}._th[data-v-444783d8]{font-weight:700;text-align:center}._ul[data-v-444783d8]{list-style-type:disc}._ul ._ul[data-v-444783d8]{margin:0;list-style-type:circle}._ul ._ul ._ul[data-v-444783d8]{list-style-type:square}._abbr[data-v-444783d8],\r\n._b[data-v-444783d8],\r\n._code[data-v-444783d8],\r\n._del[data-v-444783d8],\r\n._em[data-v-444783d8],\r\n._i[data-v-444783d8],\r\n._ins[data-v-444783d8],\r\n._label[data-v-444783d8],\r\n._q[data-v-444783d8],\r\n._span[data-v-444783d8],\r\n._strong[data-v-444783d8],\r\n._sub[data-v-444783d8],\r\n._sup[data-v-444783d8]{display:inline}\r\n\r\n",""]),e.exports=t},"2f4a":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("14d9"),n("498a"),n("eee7"),n("1e25"),n("ac1f"),n("5319");var r={name:"uni-easyinput",props:{name:String,value:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:String,placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:15},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!0},styles:{type:Object,default:function(){return{color:"#333",disableColor:"#eee",borderColor:"#e5e5e5"}}}},data:function(){return{focused:!1,errMsg:"",val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1}},computed:{msg:function(){return this.errorMessage||this.errMsg},inputMaxlength:function(){return Number(this.maxlength)}},watch:{value:function(e){this.errMsg&&(this.errMsg=""),this.val=e,this.form&&this.formItem&&this.formItem.setValue(e)},focus:function(e){var t=this;this.$nextTick((function(){t.focused=t.focus}))}},created:function(){this.val=this.value,this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},mounted:function(){var e=this;this.$nextTick((function(){e.focused=e.focus}))},methods:{init:function(){},onClickIcon:function(e){this.$emit("iconClick",e)},getForm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniForms",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t},onEyes:function(){this.showPassword=!this.showPassword},onInput:function(e){var t=e.detail.value;this.trim&&("boolean"===typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"===typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t)},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){e.detail.value;this.$emit("blur",e)},onConfirm:function(e){this.$emit("confirm",e.detail.value)},onClear:function(e){this.val="",this.$emit("input","")},fieldClick:function(){this.$emit("click")},trimStr:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}}};t.default=r},"2f90":function(e,t,n){"use strict";var r=n("2c56"),i=n.n(r);i.a},3033:function(e,t,n){var r=n("7037").default;n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630"),n("fb6a"),n("ac1f"),n("00b4"),n("d9e2"),n("d401"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("14d9"),n("c19f"),n("2ca0"),n("25f0"),n("5319"),n("b64b"),n("466d"),n("e25e"),n("4ec9"),n("13d5"),n("159b"),n("8a79"),n("99af"),n("e9c4"),n("7db0"),n("4de4"),n("caad"),n("2532"),n("0eb6"),n("b7ef"),n("8bd4"),n("c975"),n("a434"),n("d81d"),n("4d63"),n("c607"),n("2c3e"),n("e439"),n("498a"),n("f4b3"),n("bf19"),n("acd8"),n("a9e3"),n("131a"),n("2b3d"),n("9861"),function(){function e(e){return e&&e.__esModule?e.default:e}function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var n,i,a;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return e&&e.constructor===Symbol?"symbol":r(e)}var d={};d.useBlobBuilder=function(){try{return new Blob([]),!1}catch(e){return!0}}(),d.useArrayBufferView=!d.useBlobBuilder&&function(){try{return 0===new Blob([new Uint8Array([])]).size}catch(e){return!0}}(),i=d;var u=a;function f(){this._pieces=[],this._parts=[]}"undefined"!=typeof window&&(u=a=window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder||window.BlobBuilder),f.prototype.append=function(e){"number"==typeof e?this._pieces.push(e):(this.flush(),this._parts.push(e))},f.prototype.flush=function(){if(this._pieces.length>0){var e=new Uint8Array(this._pieces);d.useArrayBufferView||(e=e.buffer),this._parts.push(e),this._pieces=[]}},f.prototype.getBuffer=function(){if(this.flush(),d.useBlobBuilder){for(var e=new u,t=0,n=this._parts.length;t<n;t++)e.append(this._parts[t]);return e.getBlob()}return new Blob(this._parts)};var p=f,h=i;function m(e){this.index=0,this.dataBuffer=e,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}function v(){this.bufferBuilder=new p}function b(e){var t=e.charCodeAt(0);return t<=2047?"00":t<=65535?"000":t<=2097151?"0000":t<=67108863?"00000":"000000"}n={unpack:function(e){return new m(e).unpack()},pack:function(e){var t=new v;return t.pack(e),t.getBuffer()}},m.prototype.unpack=function(){var e,t=this.unpack_uint8();if(t<128)return t;if((224^t)<32)return(224^t)-32;if((e=160^t)<=15)return this.unpack_raw(e);if((e=176^t)<=15)return this.unpack_string(e);if((e=144^t)<=15)return this.unpack_array(e);if((e=128^t)<=15)return this.unpack_map(e);switch(t){case 192:return null;case 193:case 212:case 213:case 214:case 215:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 216:return e=this.unpack_uint16(),this.unpack_string(e);case 217:return e=this.unpack_uint32(),this.unpack_string(e);case 218:return e=this.unpack_uint16(),this.unpack_raw(e);case 219:return e=this.unpack_uint32(),this.unpack_raw(e);case 220:return e=this.unpack_uint16(),this.unpack_array(e);case 221:return e=this.unpack_uint32(),this.unpack_array(e);case 222:return e=this.unpack_uint16(),this.unpack_map(e);case 223:return e=this.unpack_uint32(),this.unpack_map(e)}},m.prototype.unpack_uint8=function(){var e=255&this.dataView[this.index];return this.index++,e},m.prototype.unpack_uint16=function(){var e=this.read(2),t=256*(255&e[0])+(255&e[1]);return this.index+=2,t},m.prototype.unpack_uint32=function(){var e=this.read(4),t=256*(256*(256*e[0]+e[1])+e[2])+e[3];return this.index+=4,t},m.prototype.unpack_uint64=function(){var e=this.read(8),t=256*(256*(256*(256*(256*(256*(256*e[0]+e[1])+e[2])+e[3])+e[4])+e[5])+e[6])+e[7];return this.index+=8,t},m.prototype.unpack_int8=function(){var e=this.unpack_uint8();return e<128?e:e-256},m.prototype.unpack_int16=function(){var e=this.unpack_uint16();return e<32768?e:e-65536},m.prototype.unpack_int32=function(){var e=this.unpack_uint32();return e<Math.pow(2,31)?e:e-Math.pow(2,32)},m.prototype.unpack_int64=function(){var e=this.unpack_uint64();return e<Math.pow(2,63)?e:e-Math.pow(2,64)},m.prototype.unpack_raw=function(e){if(this.length<this.index+e)throw new Error("BinaryPackFailure: index is out of range "+this.index+" "+e+" "+this.length);var t=this.dataBuffer.slice(this.index,this.index+e);return this.index+=e,t},m.prototype.unpack_string=function(e){for(var t,n,r=this.read(e),i=0,a="";i<e;)(t=r[i])<128?(a+=String.fromCharCode(t),i++):(192^t)<32?(n=(192^t)<<6|63&r[i+1],a+=String.fromCharCode(n),i+=2):(n=(15&t)<<12|(63&r[i+1])<<6|63&r[i+2],a+=String.fromCharCode(n),i+=3);return this.index+=e,a},m.prototype.unpack_array=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=this.unpack();return t},m.prototype.unpack_map=function(e){for(var t={},n=0;n<e;n++){var r=this.unpack(),i=this.unpack();t[r]=i}return t},m.prototype.unpack_float=function(){var e=this.unpack_uint32(),t=(e>>23&255)-127;return(0===e>>31?1:-1)*(8388607&e|8388608)*Math.pow(2,t-23)},m.prototype.unpack_double=function(){var e=this.unpack_uint32(),t=this.unpack_uint32(),n=(e>>20&2047)-1023;return(0===e>>31?1:-1)*((1048575&e|1048576)*Math.pow(2,n-20)+t*Math.pow(2,n-52))},m.prototype.read=function(e){var t=this.index;if(t+e<=this.length)return this.dataView.subarray(t,t+e);throw new Error("BinaryPackFailure: read index out of range")},v.prototype.getBuffer=function(){return this.bufferBuilder.getBuffer()},v.prototype.pack=function(e){var t=void 0===e?"undefined":l(e);if("string"===t)this.pack_string(e);else if("number"===t)Math.floor(e)===e?this.pack_integer(e):this.pack_double(e);else if("boolean"===t)!0===e?this.bufferBuilder.append(195):!1===e&&this.bufferBuilder.append(194);else if("undefined"===t)this.bufferBuilder.append(192);else{if("object"!==t)throw new Error('Type "'+t+'" not yet supported');if(null===e)this.bufferBuilder.append(192);else{var n=e.constructor;if(n==Array)this.pack_array(e);else if(n==Blob||n==File||e instanceof Blob||e instanceof File)this.pack_bin(e);else if(n==ArrayBuffer)h.useArrayBufferView?this.pack_bin(new Uint8Array(e)):this.pack_bin(e);else if("BYTES_PER_ELEMENT"in e)h.useArrayBufferView?this.pack_bin(new Uint8Array(e.buffer)):this.pack_bin(e.buffer);else if(n==Object||n.toString().startsWith("class"))this.pack_object(e);else if(n==Date)this.pack_string(e.toString());else{if("function"!=typeof e.toBinaryPack)throw new Error('Type "'+n.toString()+'" not yet supported');this.bufferBuilder.append(e.toBinaryPack())}}}this.bufferBuilder.flush()},v.prototype.pack_bin=function(e){var t=e.length||e.byteLength||e.size;if(t<=15)this.pack_uint8(160+t);else if(t<=65535)this.bufferBuilder.append(218),this.pack_uint16(t);else{if(!(t<=4294967295))throw new Error("Invalid length");this.bufferBuilder.append(219),this.pack_uint32(t)}this.bufferBuilder.append(e)},v.prototype.pack_string=function(e){var t=function(e){return e.length>600?new Blob([e]).size:e.replace(/[^\u0000-\u007F]/g,b).length}(e);if(t<=15)this.pack_uint8(176+t);else if(t<=65535)this.bufferBuilder.append(216),this.pack_uint16(t);else{if(!(t<=4294967295))throw new Error("Invalid length");this.bufferBuilder.append(217),this.pack_uint32(t)}this.bufferBuilder.append(e)},v.prototype.pack_array=function(e){var t=e.length;if(t<=15)this.pack_uint8(144+t);else if(t<=65535)this.bufferBuilder.append(220),this.pack_uint16(t);else{if(!(t<=4294967295))throw new Error("Invalid length");this.bufferBuilder.append(221),this.pack_uint32(t)}for(var n=0;n<t;n++)this.pack(e[n])},v.prototype.pack_integer=function(e){if(e>=-32&&e<=127)this.bufferBuilder.append(255&e);else if(e>=0&&e<=255)this.bufferBuilder.append(204),this.pack_uint8(e);else if(e>=-128&&e<=127)this.bufferBuilder.append(208),this.pack_int8(e);else if(e>=0&&e<=65535)this.bufferBuilder.append(205),this.pack_uint16(e);else if(e>=-32768&&e<=32767)this.bufferBuilder.append(209),this.pack_int16(e);else if(e>=0&&e<=4294967295)this.bufferBuilder.append(206),this.pack_uint32(e);else if(e>=-2147483648&&e<=2147483647)this.bufferBuilder.append(210),this.pack_int32(e);else if(e>=-0x8000000000000000&&e<=0x8000000000000000)this.bufferBuilder.append(211),this.pack_int64(e);else{if(!(e>=0&&e<=0x10000000000000000))throw new Error("Invalid integer");this.bufferBuilder.append(207),this.pack_uint64(e)}},v.prototype.pack_double=function(e){var t=0;e<0&&(t=1,e=-e);var n=Math.floor(Math.log(e)/Math.LN2),r=e/Math.pow(2,n)-1,i=Math.floor(r*Math.pow(2,52)),a=Math.pow(2,32),o=t<<31|n+1023<<20|i/a&1048575,s=i%a;this.bufferBuilder.append(203),this.pack_int32(o),this.pack_int32(s)},v.prototype.pack_object=function(e){var t=Object.keys(e).length;if(t<=15)this.pack_uint8(128+t);else if(t<=65535)this.bufferBuilder.append(222),this.pack_uint16(t);else{if(!(t<=4294967295))throw new Error("Invalid length");this.bufferBuilder.append(223),this.pack_uint32(t)}for(var n in e)e.hasOwnProperty(n)&&(this.pack(n),this.pack(e[n]))},v.prototype.pack_uint8=function(e){this.bufferBuilder.append(e)},v.prototype.pack_uint16=function(e){this.bufferBuilder.append(e>>8),this.bufferBuilder.append(255&e)},v.prototype.pack_uint32=function(e){var t=4294967295&e;this.bufferBuilder.append((4278190080&t)>>>24),this.bufferBuilder.append((16711680&t)>>>16),this.bufferBuilder.append((65280&t)>>>8),this.bufferBuilder.append(255&t)},v.prototype.pack_uint64=function(e){var t=e/Math.pow(2,32),n=e%Math.pow(2,32);this.bufferBuilder.append((4278190080&t)>>>24),this.bufferBuilder.append((16711680&t)>>>16),this.bufferBuilder.append((65280&t)>>>8),this.bufferBuilder.append(255&t),this.bufferBuilder.append((4278190080&n)>>>24),this.bufferBuilder.append((16711680&n)>>>16),this.bufferBuilder.append((65280&n)>>>8),this.bufferBuilder.append(255&n)},v.prototype.pack_int8=function(e){this.bufferBuilder.append(255&e)},v.prototype.pack_int16=function(e){this.bufferBuilder.append((65280&e)>>8),this.bufferBuilder.append(255&e)},v.prototype.pack_int32=function(e){this.bufferBuilder.append(e>>>24&255),this.bufferBuilder.append((16711680&e)>>>16),this.bufferBuilder.append((65280&e)>>>8),this.bufferBuilder.append(255&e)},v.prototype.pack_int64=function(e){var t=Math.floor(e/Math.pow(2,32)),n=e%Math.pow(2,32);this.bufferBuilder.append((4278190080&t)>>>24),this.bufferBuilder.append((16711680&t)>>>16),this.bufferBuilder.append((65280&t)>>>8),this.bufferBuilder.append(255&t),this.bufferBuilder.append((4278190080&n)>>>24),this.bufferBuilder.append((16711680&n)>>>16),this.bufferBuilder.append((65280&n)>>>8),this.bufferBuilder.append(255&n)};var g=!0,y=!0;function _(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function x(e,t,n){if(e.RTCPeerConnection){var r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);var a=function(e){var t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,a),i.apply(this,[e,a])};var a=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(n))return a.apply(this,arguments);var r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,a.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}}function k(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":l(e))+". Please use a boolean."):(g=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function w(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":l(e))+". Please use a boolean."):(y=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function C(){if("object"==("undefined"===typeof window?"undefined":r(window))){if(g)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function T(e,t){y&&console.warn(e+" is deprecated, please use "+t+" instead.")}function S(e){var t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;var n=e.navigator;if(n.mozGetUserMedia)t.browser="firefox",t.version=_(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=_(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=_(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=_(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function D(e){return"[object Object]"===Object.prototype.toString.call(e)}function R(e){return D(e)?Object.keys(e).reduce((function(t,n){var r=D(e[n]),i=r?R(e[n]):e[n],a=r&&!Object.keys(i).length;return void 0===i||a?t:Object.assign(t,o({},n,i))}),{}):e}function E(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;var a=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&a.push(e)})),a.forEach((function(t){e.forEach((function(n){n.type===r&&n.trackId===t.id&&function e(t,n,r){n&&!r.has(n.id)&&(r.set(n.id,n),Object.keys(n).forEach((function(i){i.endsWith("Id")?e(t,t.get(n[i]),r):i.endsWith("Ids")&&n[i].forEach((function(n){e(t,t.get(n),r)}))})))}(e,n,i)}))})),i}var P={};t(P,"shimMediaStream",(function(){return A})),t(P,"shimOnTrack",(function(){return j})),t(P,"shimGetSendersWithDtmf",(function(){return B})),t(P,"shimGetStats",(function(){return N})),t(P,"shimSenderReceiverGetStats",(function(){return $})),t(P,"shimAddTrackRemoveTrackWithNative",(function(){return L})),t(P,"shimAddTrackRemoveTrack",(function(){return z})),t(P,"shimPeerConnection",(function(){return U})),t(P,"fixNegotiationNeeded",(function(){return F})),t(P,"shimGetUserMedia",(function(){return I})),t(P,"shimGetDisplayMedia",(function(){return O}));var M=C;function I(e,t){var n=e&&e.navigator;if(n.mediaDevices){var i=function(e){if("object"!=r(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var i="object"==r(e[n])?e[n]:{ideal:e[n]};void 0!==i.exact&&"number"==typeof i.exact&&(i.min=i.max=i.exact);var a=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==i.ideal){t.optional=t.optional||[];var o={};"number"==typeof i.ideal?(o[a("min",n)]=i.ideal,t.optional.push(o),(o={})[a("max",n)]=i.ideal,t.optional.push(o)):(o[a("",n)]=i.ideal,t.optional.push(o))}void 0!==i.exact&&"number"!=typeof i.exact?(t.mandatory=t.mandatory||{},t.mandatory[a("",n)]=i.exact):["min","max"].forEach((function(e){void 0!==i[e]&&(t.mandatory=t.mandatory||{},t.mandatory[a(e,n)]=i[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},a=function(e,a){if(t.version>=61)return a(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==r(e.audio)){var o=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=i(e.audio)}if(e&&"object"==r(e.video)){var s=e.video.facingMode;s=s&&("object"==r(s)?s:{ideal:s});var c,l=t.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||l)&&(delete e.video.facingMode,"environment"===s.exact||"environment"===s.ideal?c=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(c=["front"]),c))return n.mediaDevices.enumerateDevices().then((function(t){var n=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return c.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!n&&t.length&&c.includes("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=s.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=i(e.video),M("chrome: "+JSON.stringify(e)),a(e)}));e.video=i(e.video)}return M("chrome: "+JSON.stringify(e)),a(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){a(e,(function(e){n.webkitGetUserMedia(e,t,(function(e){r&&r(o(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){var s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return a(e,(function(e){return s(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(o(e))}))}))}}}}function O(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((function(t){var r=n.video&&n.video.width,i=n.video&&n.video.height,a=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:a||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function A(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function j(e){if("object"==r(e)&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(!this._ontrackpoly){var n=this;this._ontrackpoly=function(t){var r=n;t.stream.addEventListener("addtrack",(function(n){var i;i=e.RTCPeerConnection.prototype.getReceivers?r.getReceivers().find((function(e){return e.track&&e.track.id===n.track.id})):{track:n.track};var a=new Event("track");a.track=n.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[t.stream],r.dispatchEvent(a)})),t.stream.getTracks().forEach((function(n){var i;i=e.RTCPeerConnection.prototype.getReceivers?r.getReceivers().find((function(e){return e.track&&e.track.id===n.id})):{track:n};var a=new Event("track");a.track=n,a.receiver=i,a.transceiver={receiver:i},a.streams=[t.stream],r.dispatchEvent(a)}))},this.addEventListener("addstream",this._ontrackpoly)}return t.apply(this,arguments)}}else x(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}))}function B(e){if("object"==r(e)&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){var i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};var i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){i.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var a=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._senders=this._senders||[],a.apply(this,[e]),e.getTracks().forEach((function(e){n._senders.push(t(n,e))}))};var o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._senders=this._senders||[],o.apply(this,[e]),e.getTracks().forEach((function(e){var n=t._senders.find((function(t){return t.track===e}));n&&t._senders.splice(t._senders.indexOf(n),1)}))}}else if("object"==r(e)&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var s=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=s.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function N(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,n=c(arguments,3),r=n[0],i=n[1],a=n[2];if(arguments.length>0&&"function"==typeof r)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof r))return t.apply(this,[]);var o=function(e){var t={};return e.result().forEach((function(e){var n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(t){n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((function(t){return[t,e[t]]})))};if(arguments.length>=2){var l=function(e){i(s(o(e)))};return t.apply(this,[l,r])}return new Promise((function(n,r){t.apply(e,[function(e){n(s(o(e)))},r])})).then(i,a)}}}function $(e){if("object"==r(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return E(t,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var i=e.RTCPeerConnection.prototype.getReceivers;i&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=i.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t}),x(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return E(t,e.track,!1)}))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var t,n,r,i=arguments[0];return this.getSenders().forEach((function(e){e.track===i&&(t?r=!0:t=e)})),this.getReceivers().forEach((function(e){return e.track===i&&(n?r=!0:n=e),e.track===i})),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return a.apply(this,arguments)}}}}function L(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(t){return e._shimmedLocalStreams[t][0]}))};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){if(t.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")}));var r=this.getSenders();n.apply(this,arguments);var i=this.getSenders().filter((function(e){return-1===r.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(i)};var r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};var i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var t=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(n){var r=t._shimmedLocalStreams[n].indexOf(e);-1!==r&&t._shimmedLocalStreams[n].splice(r,1),1===t._shimmedLocalStreams[n].length&&delete t._shimmedLocalStreams[n]})),i.apply(this,arguments)}}function z(e,t){var n=function(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})},r=function(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:n})};if(e.RTCPeerConnection){if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return L(e);var i=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=i.apply(this);return this._reverseStreams=this._reverseStreams||{},t.map((function(t){return e._reverseStreams[t.id]}))};var a=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var n=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((function(e){if(n.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){var r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}a.apply(this,[t])};var s=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},s.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((function(e){return e===t})))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");var i=this.getSenders().find((function(e){return e.track===t}));if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var a=this._streams[n.id];if(a){var o=this;a.addTrack(t),Promise.resolve().then((function(){o.dispatchEvent(new Event("negotiationneeded"))}))}else{var s=new e.MediaStream([t]);this._streams[n.id]=s,this._reverseStreams[s.id]=n,this.addStream(s)}return this.getSenders().find((function(e){return e.track===t}))},["createOffer","createAnswer"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],i=o({},t,(function(){var e=this,t=arguments,i=arguments.length&&"function"==typeof arguments[0];return i?r.apply(this,[function(r){var i=n(e,r);t[0].apply(null,[i])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):r.apply(this,arguments).then((function(t){return n(e,t)}))}));e.RTCPeerConnection.prototype[t]=i[t]}));var c=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=r(this,arguments[0]),c.apply(this,arguments)):c.apply(this,arguments)};var l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=l.get.apply(this);return""===e.type?e:n(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,n=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach((function(r){n._streams[r].getTracks().find((function(t){return e.track===t}))&&(t=n._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}}function U(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=o({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}))}function F(e,t){x(e,"negotiationneeded",(function(e){var n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}var V={};t(V,"shimPeerConnection",(function(){return ee})),t(V,"shimReplaceTrack",(function(){return te})),t(V,"shimGetUserMedia",(function(){return Z})),t(V,"shimGetDisplayMedia",(function(){return X}));var G,H={},q={};function W(e,t,n,r,i){var a=H.writeRtpDescription(e.kind,t);if(a+=H.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=H.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":i||"active"),a+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var o=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=o;var s="msid:"+(r?r.id:"-")+" "+o+"\r\n";a+="a="+s,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+s,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+s,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+H.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+H.localCName+"\r\n"),a}function J(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},i=function(e,t,n,i){var a=r(e.parameters.apt,n),o=r(t.parameters.apt,i);return a&&o&&a.name.toLowerCase()===o.name.toLowerCase()};return e.codecs.forEach((function(r){for(var a=0;a<t.codecs.length;a++){var o=t.codecs[a];if(r.name.toLowerCase()===o.name.toLowerCase()&&r.clockRate===o.clockRate){if("rtx"===r.name.toLowerCase()&&r.parameters&&o.parameters.apt&&!i(r,o,e.codecs,t.codecs))continue;(o=JSON.parse(JSON.stringify(o))).numChannels=Math.min(r.numChannels,o.numChannels),n.codecs.push(o),o.rtcpFeedback=o.rtcpFeedback.filter((function(e){for(var t=0;t<r.rtcpFeedback.length;t++)if(r.rtcpFeedback[t].type===e.type&&r.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var r=0;r<t.headerExtensions.length;r++){var i=t.headerExtensions[r];if(e.uri===i.uri){n.headerExtensions.push(i);break}}})),n}function Y(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function K(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function Q(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}function Z(e){var t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))}))}}function X(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function ee(t,n){if(t.RTCIceGatherer&&(t.RTCIceCandidate||(t.RTCIceCandidate=function(e){return e}),t.RTCSessionDescription||(t.RTCSessionDescription=function(e){return e}),n.version<15025)){var r=Object.getOwnPropertyDescriptor(t.MediaStreamTrack.prototype,"enabled");Object.defineProperty(t.MediaStreamTrack.prototype,"enabled",{set:function(e){r.set.call(this,e);var t=new Event("enabled");t.enabled=e,this.dispatchEvent(t)}})}t.RTCRtpSender&&!("dtmf"in t.RTCRtpSender.prototype)&&Object.defineProperty(t.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new t.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),t.RTCDtmfSender&&!t.RTCDTMFSender&&(t.RTCDTMFSender=t.RTCDtmfSender);var i=e(G)(t,n.version);t.RTCPeerConnection=function(e){var t,r;return e&&e.iceServers&&(e.iceServers=(t=e.iceServers,n.version,r=!1,(t=JSON.parse(JSON.stringify(t))).filter((function(e){if(e&&(e.urls||e.url)){var t=e.urls||e.url;e.url&&!e.urls&&T("RTCIceServer.url","RTCIceServer.urls");var n="string"==typeof t;return n&&(t=[t]),t=t.filter((function(e){if(0===e.indexOf("stun:"))return!1;var t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!r?(r=!0,!0):t&&!r})),delete e.url,e.urls=n?t[0]:t,!!t.length}}))),C("ICE servers after filtering:",e.iceServers)),new i(e)},t.RTCPeerConnection.prototype=i.prototype}function te(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}q.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},q.localCName=q.generateIdentifier(),q.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},q.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},q.getDescription=function(e){var t=q.splitSections(e);return t&&t[0]},q.getMediaSections=function(e){var t=q.splitSections(e);return t.shift(),t},q.matchPrefix=function(e,t){return q.splitLines(e).filter((function(e){return 0===e.indexOf(t)}))},q.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:n[t[r]]=t[r+1]}return n},q.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},q.parseIceOptions=function(e){return e.substr(14).split(" ")},q.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},q.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},q.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},q.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},q.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)n[(t=r[i].trim().split("="))[0].trim()]=t[1];return n},q.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},q.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},q.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},q.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},q.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},q.getMid=function(e){var t=q.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},q.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},q.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:q.matchPrefix(e+t,"a=fingerprint:").map(q.parseFingerprint)}},q.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},q.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},q.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==r(e.keyParams)?q.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},q.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},q.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},q.getCryptoParameters=function(e,t){return q.matchPrefix(e+t,"a=crypto:").map(q.parseCryptoLine)},q.getIceParameters=function(e,t){var n=q.matchPrefix(e+t,"a=ice-ufrag:")[0],r=q.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&r?{usernameFragment:n.substr(12),password:r.substr(10)}:null},q.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},q.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=q.splitLines(e)[0].split(" "),r=3;r<n.length;r++){var i=n[r],a=q.matchPrefix(e,"a=rtpmap:"+i+" ")[0];if(a){var o=q.parseRtpMap(a),s=q.matchPrefix(e,"a=fmtp:"+i+" ");switch(o.parameters=s.length?q.parseFmtp(s[0]):{},o.rtcpFeedback=q.matchPrefix(e,"a=rtcp-fb:"+i+" ").map(q.parseRtcpFb),t.codecs.push(o),o.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(o.name.toUpperCase())}}}return q.matchPrefix(e,"a=extmap:").forEach((function(e){t.headerExtensions.push(q.parseExtmap(e))})),t},q.writeRtpDescription=function(e,t){var n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){n+=q.writeRtpMap(e),n+=q.writeFmtp(e),n+=q.writeRtcpFb(e)}));var r=0;return t.codecs.forEach((function(e){e.maxptime>r&&(r=e.maxptime)})),r>0&&(n+="a=maxptime:"+r+"\r\n"),n+="a=rtcp-mux\r\n",t.headerExtensions&&t.headerExtensions.forEach((function(e){n+=q.writeExtmap(e)})),n},q.parseRtpEncodingParameters=function(e){var t,n=[],r=q.parseRtpParameters(e),i=-1!==r.fecMechanisms.indexOf("RED"),a=-1!==r.fecMechanisms.indexOf("ULPFEC"),o=q.matchPrefix(e,"a=ssrc:").map((function(e){return q.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),s=o.length>0&&o[0].ssrc,c=q.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));c.length>0&&c[0].length>1&&c[0][0]===s&&(t=c[0][1]),r.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var r={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&t&&(r.rtx={ssrc:t}),n.push(r),i&&((r=JSON.parse(JSON.stringify(r))).fec={ssrc:s,mechanism:a?"red+ulpfec":"red"},n.push(r))}})),0===n.length&&s&&n.push({ssrc:s});var l=q.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?950*parseInt(l[0].substr(5),10)-16e3:void 0,n.forEach((function(e){e.maxBitrate=l}))),n},q.parseRtcpParameters=function(e){var t={},n=q.matchPrefix(e,"a=ssrc:").map((function(e){return q.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);var r=q.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;var i=q.matchPrefix(e,"a=rtcp-mux");return t.mux=i.length>0,t},q.parseMsid=function(e){var t,n=q.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(t=n[0].substr(7).split(" "))[0],track:t[1]};var r=q.matchPrefix(e,"a=ssrc:").map((function(e){return q.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return r.length>0?{stream:(t=r[0].value.split(" "))[0],track:t[1]}:void 0},q.parseSctpDescription=function(e){var t,n=q.parseMLine(e),r=q.matchPrefix(e,"a=max-message-size:");r.length>0&&(t=parseInt(r[0].substr(19),10)),isNaN(t)&&(t=65536);var i=q.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substr(12),10),protocol:n.fmt,maxMessageSize:t};if(q.matchPrefix(e,"a=sctpmap:").length>0){var a=q.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:t}}},q.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},q.generateSessionId=function(){return Math.random().toString().substr(2,21)},q.writeSessionBoilerplate=function(e,t,n){var r=void 0!==t?t:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||q.generateSessionId())+" "+r+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},q.writeMediaSection=function(e,t,n,r){var i=q.writeRtpDescription(e.kind,t);if(i+=q.writeIceParameters(e.iceGatherer.getLocalParameters()),i+=q.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),i+="a=mid:"+e.mid+"\r\n",e.direction?i+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?i+="a=sendrecv\r\n":e.rtpSender?i+="a=sendonly\r\n":e.rtpReceiver?i+="a=recvonly\r\n":i+="a=inactive\r\n",e.rtpSender){var a="msid:"+r.id+" "+e.rtpSender.track.id+"\r\n";i+="a="+a,i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,i+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+q.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+q.localCName+"\r\n"),i},q.getDirection=function(e,t){for(var n=q.splitLines(e),r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substr(2)}return t?q.getDirection(t):"sendrecv"},q.getKind=function(e){return q.splitLines(e)[0].split(" ")[0].substr(2)},q.isRejected=function(e){return"0"===e.split(" ",2)[1]},q.parseMLine=function(e){var t=q.splitLines(e)[0].substr(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},q.parseOLine=function(e){var t=q.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},q.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var t=q.splitLines(e),n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},H=q,G=function(e,t){var n=function(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))},r=function(t,n,r,i){var a=new Event("track");a.track=n,a.receiver=r,a.transceiver={receiver:r},a.streams=i,e.setTimeout((function(){t._dispatchEvent("track",a)}))},i=function(n){var r=this,i=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){r[e]=i[e].bind(i)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw Q("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var r=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var i="string"==typeof r;return i&&(r=[r]),r=r.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||n?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=i?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var a=n.iceCandidatePoolSize;a>0;a--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=H.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(i.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(i.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),i.prototype.onicecandidate=null,i.prototype.onaddstream=null,i.prototype.ontrack=null,i.prototype.onremovestream=null,i.prototype.onsignalingstatechange=null,i.prototype.oniceconnectionstatechange=null,i.prototype.onconnectionstatechange=null,i.prototype.onicegatheringstatechange=null,i.prototype.onnegotiationneeded=null,i.prototype.ondatachannel=null,i.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},i.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},i.prototype.getConfiguration=function(){return this._config},i.prototype.getLocalStreams=function(){return this.localStreams},i.prototype.getRemoteStreams=function(){return this.remoteStreams},i.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();r.iceTransport=i.iceTransport,r.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(r),r},i.prototype.addTrack=function(t,n){if(this._isClosed)throw Q("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw Q("InvalidAccessError","Track already exists.");for(var i=0;i<this.transceivers.length;i++)this.transceivers[i].track||this.transceivers[i].kind!==t.kind||(r=this.transceivers[i]);return r||(r=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),r.track=t,r.stream=n,r.rtpSender=new e.RTCRtpSender(t,r.dtlsTransport),r.rtpSender},i.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},i.prototype.removeTrack=function(t){if(this._isClosed)throw Q("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw Q("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},i.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},i.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},i.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},i.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;i.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},i.prototype._gather=function(t,n){var r=this,i=this.transceivers[n].iceGatherer;if(!i.onlocalcandidate){var a=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,i.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),i.onlocalcandidate=function(e){if(!(r.usingBundle&&n>0)){var a=new Event("icecandidate");a.candidate={sdpMid:t,sdpMLineIndex:n};var o=e.candidate,s=!o||0===Object.keys(o).length;if(s)"new"!==i.state&&"gathering"!==i.state||(i.state="completed");else{"new"===i.state&&(i.state="gathering"),o.component=1,o.ufrag=i.getLocalParameters().usernameFragment;var c=H.writeCandidate(o);a.candidate=Object.assign(a.candidate,H.parseCandidate(c)),a.candidate.candidate=c,a.candidate.toJSON=function(){return{candidate:a.candidate.candidate,sdpMid:a.candidate.sdpMid,sdpMLineIndex:a.candidate.sdpMLineIndex,usernameFragment:a.candidate.usernameFragment}}}var l=H.getMediaSections(r._localDescription.sdp);l[a.candidate.sdpMLineIndex]+=s?"a=end-of-candidates\r\n":"a="+a.candidate.candidate+"\r\n",r._localDescription.sdp=H.getDescription(r._localDescription.sdp)+l.join("");var d=r.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==r.iceGatheringState&&(r.iceGatheringState="gathering",r._emitGatheringStateChange()),s||r._dispatchEvent("icecandidate",a),d&&(r._dispatchEvent("icecandidate",new Event("icecandidate")),r.iceGatheringState="complete",r._emitGatheringStateChange())}},e.setTimeout((function(){a.forEach((function(e){i.onlocalcandidate(e)}))}),0)}},i.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},i.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},i.prototype._transceive=function(e,n,r){var i=J(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(i.encodings=e.sendEncodingParameters,i.rtcp={cname:H.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(i.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(i)),r&&e.rtpReceiver&&i.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?i.encodings=e.recvEncodingParameters:i.encodings=[{}],i.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(i.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(i.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(i))},i.prototype.setLocalDescription=function(e){var t,n,r=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(Q("TypeError",'Unsupported type "'+e.type+'"'));if(!Y("setLocalDescription",e.type,r.signalingState)||r._isClosed)return Promise.reject(Q("InvalidStateError","Can not set local "+e.type+" in state "+r.signalingState));if("offer"===e.type)t=H.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=H.parseRtpParameters(e);r.transceivers[t].localCapabilities=n})),r.transceivers.forEach((function(e,t){r._gather(e.mid,t)}));else if("answer"===e.type){t=H.splitSections(r._remoteDescription.sdp),n=t.shift();var i=H.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var a=r.transceivers[t],o=a.iceGatherer,s=a.iceTransport,c=a.dtlsTransport,l=a.localCapabilities,d=a.remoteCapabilities;if((!H.isRejected(e)||0!==H.matchPrefix(e,"a=bundle-only").length)&&!a.rejected){var u=H.getIceParameters(e,n),f=H.getDtlsParameters(e,n);i&&(f.role="server"),r.usingBundle&&0!==t||(r._gather(a.mid,t),"new"===s.state&&s.start(o,u,i?"controlling":"controlled"),"new"===c.state&&c.start(f));var p=J(l,d);r._transceive(a,p.codecs.length>0,!1)}}))}return r._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?r._updateSignalingState("have-local-offer"):r._updateSignalingState("stable"),Promise.resolve()},i.prototype.setRemoteDescription=function(i){var a=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(Q("TypeError",'Unsupported type "'+i.type+'"'));if(!Y("setRemoteDescription",i.type,a.signalingState)||a._isClosed)return Promise.reject(Q("InvalidStateError","Can not set remote "+i.type+" in state "+a.signalingState));var o={};a.remoteStreams.forEach((function(e){o[e.id]=e}));var s=[],c=H.splitSections(i.sdp),l=c.shift(),d=H.matchPrefix(l,"a=ice-lite").length>0,u=H.matchPrefix(l,"a=group:BUNDLE ").length>0;a.usingBundle=u;var f=H.matchPrefix(l,"a=ice-options:")[0];return a.canTrickleIceCandidates=!!f&&f.substr(14).split(" ").indexOf("trickle")>=0,c.forEach((function(r,c){var f=H.splitLines(r),p=H.getKind(r),h=H.isRejected(r)&&0===H.matchPrefix(r,"a=bundle-only").length,m=f[0].substr(2).split(" ")[2],v=H.getDirection(r,l),b=H.parseMsid(r),g=H.getMid(r)||H.generateIdentifier();if(h||"application"===p&&("DTLS/SCTP"===m||"UDP/DTLS/SCTP"===m))a.transceivers[c]={mid:g,kind:p,protocol:m,rejected:!0};else{var y,_,x,k,w,C,T,S,D;!h&&a.transceivers[c]&&a.transceivers[c].rejected&&(a.transceivers[c]=a._createTransceiver(p,!0));var R,E,P=H.parseRtpParameters(r);h||(R=H.getIceParameters(r,l),(E=H.getDtlsParameters(r,l)).role="client"),T=H.parseRtpEncodingParameters(r);var M=H.parseRtcpParameters(r),I=H.matchPrefix(r,"a=end-of-candidates",l).length>0,O=H.matchPrefix(r,"a=candidate:").map((function(e){return H.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===i.type||"answer"===i.type)&&!h&&u&&c>0&&a.transceivers[c]&&(a._disposeIceAndDtlsTransports(c),a.transceivers[c].iceGatherer=a.transceivers[0].iceGatherer,a.transceivers[c].iceTransport=a.transceivers[0].iceTransport,a.transceivers[c].dtlsTransport=a.transceivers[0].dtlsTransport,a.transceivers[c].rtpSender&&a.transceivers[c].rtpSender.setTransport(a.transceivers[0].dtlsTransport),a.transceivers[c].rtpReceiver&&a.transceivers[c].rtpReceiver.setTransport(a.transceivers[0].dtlsTransport)),"offer"!==i.type||h)"answer"!==i.type||h||(_=(y=a.transceivers[c]).iceGatherer,x=y.iceTransport,k=y.dtlsTransport,w=y.rtpReceiver,C=y.sendEncodingParameters,S=y.localCapabilities,a.transceivers[c].recvEncodingParameters=T,a.transceivers[c].remoteCapabilities=P,a.transceivers[c].rtcpParameters=M,O.length&&"new"===x.state&&(!d&&!I||u&&0!==c?O.forEach((function(e){K(y.iceTransport,e)})):x.setRemoteCandidates(O)),u&&0!==c||("new"===x.state&&x.start(_,R,"controlling"),"new"===k.state&&k.start(E)),!J(y.localCapabilities,y.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&y.sendEncodingParameters[0].rtx&&delete y.sendEncodingParameters[0].rtx,a._transceive(y,"sendrecv"===v||"recvonly"===v,"sendrecv"===v||"sendonly"===v),!w||"sendrecv"!==v&&"sendonly"!==v?delete y.rtpReceiver:(D=w.track,b?(o[b.stream]||(o[b.stream]=new e.MediaStream),n(D,o[b.stream]),s.push([D,w,o[b.stream]])):(o.default||(o.default=new e.MediaStream),n(D,o.default),s.push([D,w,o.default]))));else{(y=a.transceivers[c]||a._createTransceiver(p)).mid=g,y.iceGatherer||(y.iceGatherer=a._createIceGatherer(c,u)),O.length&&"new"===y.iceTransport.state&&(!I||u&&0!==c?O.forEach((function(e){K(y.iceTransport,e)})):y.iceTransport.setRemoteCandidates(O)),S=e.RTCRtpReceiver.getCapabilities(p),t<15019&&(S.codecs=S.codecs.filter((function(e){return"rtx"!==e.name}))),C=y.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var A,j=!1;"sendrecv"===v||"sendonly"===v?(j=!y.rtpReceiver,w=y.rtpReceiver||new e.RTCRtpReceiver(y.dtlsTransport,p),j&&(D=w.track,b&&"-"===b.stream||(b?(o[b.stream]||(o[b.stream]=new e.MediaStream,Object.defineProperty(o[b.stream],"id",{get:function(){return b.stream}})),Object.defineProperty(D,"id",{get:function(){return b.track}}),A=o[b.stream]):(o.default||(o.default=new e.MediaStream),A=o.default)),A&&(n(D,A),y.associatedRemoteMediaStreams.push(A)),s.push([D,w,A]))):y.rtpReceiver&&y.rtpReceiver.track&&(y.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===y.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),y.associatedRemoteMediaStreams=[]),y.localCapabilities=S,y.remoteCapabilities=P,y.rtpReceiver=w,y.rtcpParameters=M,y.sendEncodingParameters=C,y.recvEncodingParameters=T,a._transceive(a.transceivers[c],!1,j)}}})),void 0===a._dtlsRole&&(a._dtlsRole="offer"===i.type?"active":"passive"),a._remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?a._updateSignalingState("have-remote-offer"):a._updateSignalingState("stable"),Object.keys(o).forEach((function(t){var n=o[t];if(n.getTracks().length){if(-1===a.remoteStreams.indexOf(n)){a.remoteStreams.push(n);var i=new Event("addstream");i.stream=n,e.setTimeout((function(){a._dispatchEvent("addstream",i)}))}s.forEach((function(e){var t=e[0],i=e[1];n.id===e[2].id&&r(a,t,i,[n])}))}})),s.forEach((function(e){e[2]||r(a,e[0],e[1],[])})),e.setTimeout((function(){a&&a.transceivers&&a.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},i.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},i.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},i.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},i.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},i.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},i.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(Q("InvalidStateError","Can not call createOffer after close"));var r=n.transceivers.filter((function(e){return"audio"===e.kind})).length,i=n.transceivers.filter((function(e){return"video"===e.kind})).length,a=arguments[0];if(a){if(a.mandatory||a.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==a.offerToReceiveAudio&&(r=!0===a.offerToReceiveAudio?1:!1===a.offerToReceiveAudio?0:a.offerToReceiveAudio),void 0!==a.offerToReceiveVideo&&(i=!0===a.offerToReceiveVideo?1:!1===a.offerToReceiveVideo?0:a.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--r<0&&(e.wantReceive=!1):"video"===e.kind&&--i<0&&(e.wantReceive=!1)}));r>0||i>0;)r>0&&(n._createTransceiver("audio"),r--),i>0&&(n._createTransceiver("video"),i--);var o=H.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(r,i){var a=r.track,o=r.kind,s=r.mid||H.generateIdentifier();r.mid=s,r.iceGatherer||(r.iceGatherer=n._createIceGatherer(i,n.usingBundle));var c=e.RTCRtpSender.getCapabilities(o);t<15019&&(c.codecs=c.codecs.filter((function(e){return"rtx"!==e.name}))),c.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),r.remoteCapabilities&&r.remoteCapabilities.codecs&&r.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),c.headerExtensions.forEach((function(e){(r.remoteCapabilities&&r.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var l=r.sendEncodingParameters||[{ssrc:1001*(2*i+1)}];a&&t>=15019&&"video"===o&&!l[0].rtx&&(l[0].rtx={ssrc:l[0].ssrc+1}),r.wantReceive&&(r.rtpReceiver=new e.RTCRtpReceiver(r.dtlsTransport,o)),r.localCapabilities=c,r.sendEncodingParameters=l})),"max-compat"!==n._config.bundlePolicy&&(o+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),o+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){o+=W(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),o+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,o+="a="+H.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(o+="a=end-of-candidates\r\n"))}));var s=new e.RTCSessionDescription({type:"offer",sdp:o});return Promise.resolve(s)},i.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(Q("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(Q("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var r=H.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(r+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),r+="a=ice-options:trickle\r\n";var i=H.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,a){if(!(a+1>i)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?r+="m=application 0 DTLS/SCTP 5000\r\n":r+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?r+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(r+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(r+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var o;e.stream&&("audio"===e.kind?o=e.stream.getAudioTracks()[0]:"video"===e.kind&&(o=e.stream.getVideoTracks()[0]),o&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var s=J(e.localCapabilities,e.remoteCapabilities);!s.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,r+=W(e,s,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(r+="a=rtcp-rsize\r\n")}}));var a=new e.RTCSessionDescription({type:"answer",sdp:r});return Promise.resolve(a)},i.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(r,i){if(!n._remoteDescription)return i(Q("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var a=e.sdpMLineIndex;if(e.sdpMid)for(var o=0;o<n.transceivers.length;o++)if(n.transceivers[o].mid===e.sdpMid){a=o;break}var s=n.transceivers[a];if(!s)return i(Q("OperationError","Can not add ICE candidate"));if(s.rejected)return r();var c=Object.keys(e.candidate).length>0?H.parseCandidate(e.candidate):{};if("tcp"===c.protocol&&(0===c.port||9===c.port))return r();if(c.component&&1!==c.component)return r();if((0===a||a>0&&s.iceTransport!==n.transceivers[0].iceTransport)&&!K(s.iceTransport,c))return i(Q("OperationError","Can not add ICE candidate"));var l=e.candidate.trim();0===l.indexOf("a=")&&(l=l.substr(2)),(t=H.getMediaSections(n._remoteDescription.sdp))[a]+="a="+(c.type?l:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=H.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var d=0;d<n.transceivers.length&&(n.transceivers[d].rejected||(n.transceivers[d].iceTransport.addRemoteCandidate({}),(t=H.getMediaSections(n._remoteDescription.sdp))[d]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=H.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));d++);r()}))},i.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw Q("InvalidAccessError","Invalid selector.");return n.getStats()}var r=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&r.push(e[t].getStats())}))})),Promise.all(r).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var r=n.prototype.getStats;n.prototype.getStats=function(){return r.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var r;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(r=e[n]).type]||r.type,t.set(n,e[n])})),t}))}}}));var a=["createOffer","createAnswer"];return a.forEach((function(e){var t=i.prototype[e];i.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(a=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=i.prototype[e];i.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=i.prototype[e];i.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),i};var ne={};function re(e,t){var n=e&&e.navigator,i=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){T("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var a=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"==r(e)&&"object"==r(e.audio)&&(e=JSON.parse(JSON.stringify(e)),a(e.audio,"autoGainControl","mozAutoGainControl"),a(e.audio,"noiseSuppression","mozNoiseSuppression")),o(e)},i&&i.prototype.getSettings){var s=i.prototype.getSettings;i.prototype.getSettings=function(){var e=s.apply(this,arguments);return a(e,"mozAutoGainControl","autoGainControl"),a(e,"mozNoiseSuppression","noiseSuppression"),e}}if(i&&i.prototype.applyConstraints){var c=i.prototype.applyConstraints;i.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"==r(e)&&(e=JSON.parse(JSON.stringify(e)),a(e,"autoGainControl","mozAutoGainControl"),a(e,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[e])}}}}function ie(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){var r=new DOMException("getDisplayMedia without video constraints is undefined");return r.name="NotFoundError",r.code=8,Promise.reject(r)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function ae(e){"object"==r(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function oe(e,t){if("object"==r(e)&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=o({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}));var n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=c(arguments,3),r=e[0],a=e[1],o=e[2];return i.apply(this,[r||null]).then((function(e){if(t.version<53&&!a)try{e.forEach((function(e){e.type=n[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach((function(t,r){e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(a,o)}}}function se(e){if("object"==r(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function ce(e){if("object"==r(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n}),x(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function le(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;T("removeStream","removeTrack"),this.getSenders().forEach((function(n){n.track&&e.getTracks().includes(n.track)&&t.removeTrack(n)}))})}function de(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function ue(e){if("object"==r(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach((function(e){if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var r=t.apply(this,arguments);if(n){var i=r.sender,a=i.getParameters();(!("encodings"in a)||1===a.encodings.length&&0===Object.keys(a.encodings[0]).length)&&(a.encodings=e.sendEncodings,i.sendEncodings=e.sendEncodings,this.setParametersPromises.push(i.setParameters(a).then((function(){delete i.sendEncodings})).catch((function(){delete i.sendEncodings}))))}return r})}}function fe(e){if("object"==r(e)&&e.RTCRtpSender){var t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}}function pe(e){if("object"==r(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=this,n=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(e,n)})).finally((function(){e.setParametersPromises=[]})):t.apply(this,arguments)}}}function he(e){if("object"==r(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=this,n=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(e,n)})).finally((function(){e.setParametersPromises=[]})):t.apply(this,arguments)}}}t(ne,"shimOnTrack",(function(){return ae})),t(ne,"shimPeerConnection",(function(){return oe})),t(ne,"shimSenderGetStats",(function(){return se})),t(ne,"shimReceiverGetStats",(function(){return ce})),t(ne,"shimRemoveStream",(function(){return le})),t(ne,"shimRTCDataChannel",(function(){return de})),t(ne,"shimAddTransceiver",(function(){return ue})),t(ne,"shimGetParameters",(function(){return fe})),t(ne,"shimCreateOffer",(function(){return pe})),t(ne,"shimCreateAnswer",(function(){return he})),t(ne,"shimGetUserMedia",(function(){return re})),t(ne,"shimGetDisplayMedia",(function(){return ie}));var me={};function ve(e){if("object"==r(e)&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(r){return t.call(n,r,e)})),e.getVideoTracks().forEach((function(r){return t.call(n,r,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var a=this;return r&&r.forEach((function(e){a._localStreams?a._localStreams.includes(e)||a._localStreams.push(e):a._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._localStreams||(this._localStreams=[]);var n=this._localStreams.indexOf(e);if(-1!==n){this._localStreams.splice(n,1);var r=e.getTracks();this.getSenders().forEach((function(e){r.includes(e.track)&&t.removeTrack(e)}))}})}}function be(e){if("object"==r(e)&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){var n=t;e.streams.forEach((function(e){if(n._remoteStreams||(n._remoteStreams=[]),!n._remoteStreams.includes(e)){n._remoteStreams.push(e);var t=new Event("addstream");t.stream=e,n.dispatchEvent(t)}}))})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((function(t){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}}))}),t.apply(e,arguments)}}}function ge(e){if("object"==r(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,n=t.createOffer,i=t.createAnswer,a=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],r=i.apply(this,[n]);return t?(r.then(e,t),Promise.resolve()):r};var c=function(e,t,n){var r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=c,c=function(e,t,n){var r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=c,c=function(e,t,n){var r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=c}}function ye(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(e){return r(_e(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function _e(e){return e&&void 0!==e.video?Object.assign({},e,{video:R(e.video)}):e}function xe(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){for(var r=[],i=0;i<e.iceServers.length;i++){var a=e.iceServers[i];!a.hasOwnProperty("urls")&&a.hasOwnProperty("url")?(T("RTCIceServer.url","RTCIceServer.urls"),(a=JSON.parse(JSON.stringify(a))).urls=a.url,delete a.url,r.push(a)):r.push(e.iceServers[i])}e.iceServers=r}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}}function ke(e){"object"==r(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function we(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var n=this.getTransceivers().find((function(e){return"audio"===e.receiver.track.kind}));!1===e.offerToReceiveAudio&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveAudio||n||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var r=this.getTransceivers().find((function(e){return"video"===e.receiver.track.kind}));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video")}return t.apply(this,arguments)}}function Ce(e){"object"!=r(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}t(me,"shimLocalStreamsAPI",(function(){return ve})),t(me,"shimRemoteStreamsAPI",(function(){return be})),t(me,"shimCallbacksAPI",(function(){return ge})),t(me,"shimGetUserMedia",(function(){return ye})),t(me,"shimConstraints",(function(){return _e})),t(me,"shimRTCIceServerUrls",(function(){return xe})),t(me,"shimTrackEventTransceiver",(function(){return ke})),t(me,"shimCreateOfferLegacy",(function(){return we})),t(me,"shimAudioContext",(function(){return Ce}));var Te={};function Se(t){if(!(!t.RTCIceCandidate||t.RTCIceCandidate&&"foundation"in t.RTCIceCandidate.prototype)){var n=t.RTCIceCandidate;t.RTCIceCandidate=function(t){if("object"==r(t)&&t.candidate&&0===t.candidate.indexOf("a=")&&((t=JSON.parse(JSON.stringify(t))).candidate=t.candidate.substr(2)),t.candidate&&t.candidate.length){var i=new n(t),a=e(H).parseCandidate(t.candidate),o=Object.assign(i,a);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new n(t)},t.RTCIceCandidate.prototype=n.prototype,x(t,"icecandidate",(function(e){return e.candidate&&Object.defineProperty(e,"candidate",{value:new t.RTCIceCandidate(e.candidate),writable:"false"}),e}))}}function De(t,n){if(t.RTCPeerConnection){"sctp"in t.RTCPeerConnection.prototype||Object.defineProperty(t.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var r=function(t){if(!t||!t.sdp)return!1;var n=e(H).splitSections(t.sdp);return n.shift(),n.some((function(t){var n=e(H).parseMLine(t);return n&&"application"===n.kind&&-1!==n.protocol.indexOf("SCTP")}))},i=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var n=parseInt(t[1],10);return n!=n?-1:n},a=function(e){var t=65536;return"firefox"===n.browser&&(t=n.version<57?-1===e?16384:2147483637:n.version<60?57===n.version?65535:65536:2147483637),t},o=function(t,r){var i=65536;"firefox"===n.browser&&57===n.version&&(i=65535);var a=e(H).matchPrefix(t.sdp,"a=max-message-size:");return a.length>0?i=parseInt(a[0].substr(19),10):"firefox"===n.browser&&-1!==r&&(i=2147483637),i},s=t.RTCPeerConnection.prototype.setRemoteDescription;t.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===n.browser&&n.version>=76){var e=this.getConfiguration().sdpSemantics;"plan-b"===e&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){var t,c=i(arguments[0]),l=a(c),d=o(arguments[0],c);t=0===l&&0===d?Number.POSITIVE_INFINITY:0===l||0===d?Math.max(l,d):Math.min(l,d);var u={};Object.defineProperty(u,"maxMessageSize",{get:function(){return t}}),this._sctp=u}return s.apply(this,arguments)}}}function Re(e){var t=function(e,t){var n=e.send;e.send=function(){var r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}};if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=n.apply(this,arguments);return t(e,this),e},x(e,"datachannel",(function(e){return t(e.channel,e.target),e}))}}function Ee(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}}function Pe(e,t){if(e.RTCPeerConnection&&!("chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)){var n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){var r=t.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r}return n.apply(this,arguments)}}}function Me(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}}t(Te,"shimRTCIceCandidate",(function(){return Se})),t(Te,"shimMaxMessageSize",(function(){return De})),t(Te,"shimSendThrowTypeError",(function(){return Re})),t(Te,"shimConnectionState",(function(){return Ee})),t(Te,"removeExtmapAllowMixed",(function(){return Pe})),t(Te,"shimAddIceCandidateNullOrEmpty",(function(){return Me}));var Ie,Oe,Ae=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).window,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},n=C,r=S(e),i={browserDetails:r,commonShim:Te,extractVersion:_,disableLog:k,disableWarnings:w};switch(r.browser){case"chrome":if(!P||!P.shimPeerConnection||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=P,Te.shimAddIceCandidateNullOrEmpty(e,r),P.shimGetUserMedia(e,r),P.shimMediaStream(e,r),P.shimPeerConnection(e,r),P.shimOnTrack(e,r),P.shimAddTrackRemoveTrack(e,r),P.shimGetSendersWithDtmf(e,r),P.shimGetStats(e,r),P.shimSenderReceiverGetStats(e,r),P.fixNegotiationNeeded(e,r),Te.shimRTCIceCandidate(e,r),Te.shimConnectionState(e,r),Te.shimMaxMessageSize(e,r),Te.shimSendThrowTypeError(e,r),Te.removeExtmapAllowMixed(e,r);break;case"firefox":if(!ne||!ne.shimPeerConnection||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=ne,Te.shimAddIceCandidateNullOrEmpty(e,r),ne.shimGetUserMedia(e,r),ne.shimPeerConnection(e,r),ne.shimOnTrack(e,r),ne.shimRemoveStream(e,r),ne.shimSenderGetStats(e,r),ne.shimReceiverGetStats(e,r),ne.shimRTCDataChannel(e,r),ne.shimAddTransceiver(e,r),ne.shimGetParameters(e,r),ne.shimCreateOffer(e,r),ne.shimCreateAnswer(e,r),Te.shimRTCIceCandidate(e,r),Te.shimConnectionState(e,r),Te.shimMaxMessageSize(e,r),Te.shimSendThrowTypeError(e,r);break;case"edge":if(!V||!V.shimPeerConnection||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),i;n("adapter.js shimming edge."),i.browserShim=V,V.shimGetUserMedia(e,r),V.shimGetDisplayMedia(e,r),V.shimPeerConnection(e,r),V.shimReplaceTrack(e,r),Te.shimMaxMessageSize(e,r),Te.shimSendThrowTypeError(e,r);break;case"safari":if(!me||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=me,Te.shimAddIceCandidateNullOrEmpty(e,r),me.shimRTCIceServerUrls(e,r),me.shimCreateOfferLegacy(e,r),me.shimCallbacksAPI(e,r),me.shimLocalStreamsAPI(e,r),me.shimRemoteStreamsAPI(e,r),me.shimTrackEventTransceiver(e,r),me.shimGetUserMedia(e,r),me.shimAudioContext(e,r),Te.shimRTCIceCandidate(e,r),Te.shimMaxMessageSize(e,r),Te.shimSendThrowTypeError(e,r),Te.removeExtmapAllowMixed(e,r);break;default:n("Unsupported browser!")}return i}({window:"undefined"==typeof window?void 0:window}),je=Ae,Be=je.default||je,Ne=new((Ie=function(){this.isIOS=["iPad","iPhone","iPod"].includes(navigator.platform),this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}).prototype.isWebRTCSupported=function(){return"undefined"!=typeof RTCPeerConnection},Ie.prototype.isBrowserSupported=function(){var e=this.getBrowser(),t=this.getVersion();return!!this.supportedBrowsers.includes(e)&&("chrome"===e?t>=this.minChromeVersion:"firefox"===e?t>=this.minFirefoxVersion:"safari"===e&&!this.isIOS&&t>=this.minSafariVersion)},Ie.prototype.getBrowser=function(){return Be.browserDetails.browser},Ie.prototype.getVersion=function(){return Be.browserDetails.version||0},Ie.prototype.isUnifiedPlanSupported=function(){var e,t=this.getBrowser(),n=Be.browserDetails.version||0;if("chrome"===t&&n<this.minChromeVersion)return!1;if("firefox"===t&&n>=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;var r=!1;try{(e=new RTCPeerConnection).addTransceiver("audio"),r=!0}catch(e){}finally{e&&e.close()}return r},Ie.prototype.toString=function(){return"Supports:\n browser:".concat(this.getBrowser(),"\n version:").concat(this.getVersion(),"\n isIOS:").concat(this.isIOS,"\n isWebRTCSupported:").concat(this.isWebRTCSupported(),"\n isBrowserSupported:").concat(this.isBrowserSupported(),"\n isUnifiedPlanSupported:").concat(this.isUnifiedPlanSupported())},Ie),$e={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"},Le=new((Oe=function(){this.CLOUD_HOST="0.peerjs.com",this.CLOUD_PORT=443,this.chunkedBrowsers={Chrome:1,chrome:1},this.chunkedMTU=16300,this.defaultConfig=$e,this.browser=Ne.getBrowser(),this.browserVersion=Ne.getVersion(),this.supports=function(){var e,t={browser:Ne.isBrowserSupported(),webRTC:Ne.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!t.webRTC)return t;try{e=new RTCPeerConnection($e),t.audioVideo=!0;var n=void 0;try{n=e.createDataChannel("_PEERJSTEST",{ordered:!0}),t.data=!0,t.reliable=!!n.ordered;try{n.binaryType="blob",t.binaryBlob=!Ne.isIOS}catch(e){}}catch(e){}finally{n&&n.close()}}catch(e){}finally{e&&e.close()}return t}(),this.pack=e(n).pack,this.unpack=e(n).unpack,this._dataCount=1}).prototype.noop=function(){},Oe.prototype.validateId=function(e){return!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e)},Oe.prototype.chunk=function(e){for(var t=[],n=e.size,r=Math.ceil(n/Le.chunkedMTU),i=0,a=0;a<n;){var o=Math.min(n,a+Le.chunkedMTU),s=e.slice(a,o),c={__peerData:this._dataCount,n:i,data:s,total:r};t.push(c),a=o,i++}return this._dataCount++,t},Oe.prototype.blobToArrayBuffer=function(e,t){var n=new FileReader;return n.onload=function(e){e.target&&t(e.target.result)},n.readAsArrayBuffer(e),n},Oe.prototype.binaryStringToArrayBuffer=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=255&e.charCodeAt(n);return t.buffer},Oe.prototype.randomToken=function(){return Math.random().toString(36).slice(2)},Oe.prototype.isSecure=function(){return"https:"===location.protocol},Oe),ze={};t(ze,"Peer",(function(){return Lt}),(function(e){return Lt=e}));var Ue,Fe=Object.prototype.hasOwnProperty,Ve="~";function Ge(){}function He(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function qe(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new He(n,r||e,i),o=Ve?Ve+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function We(e,t){0==--e._eventsCount?e._events=new Ge:delete e._events[t]}function Je(){this._events=new Ge,this._eventsCount=0}Object.create&&(Ge.prototype=Object.create(null),(new Ge).__proto__||(Ve=!1)),Je.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)Fe.call(e,t)&&n.push(Ve?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},Je.prototype.listeners=function(e){var t=Ve?Ve+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},Je.prototype.listenerCount=function(e){var t=Ve?Ve+e:e,n=this._events[t];return n?n.fn?1:n.length:0},Je.prototype.emit=function(e,t,n,r,i,a){var o=Ve?Ve+e:e;if(!this._events[o])return!1;var s,c,l=this._events[o],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,i),!0;case 6:return l.fn.call(l.context,t,n,r,i,a),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var u,f=l.length;for(c=0;c<f;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,r);break;default:if(!s)for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];l[c].fn.apply(l[c].context,s)}}return!0},Je.prototype.on=function(e,t,n){return qe(this,e,t,n,!1)},Je.prototype.once=function(e,t,n){return qe(this,e,t,n,!0)},Je.prototype.removeListener=function(e,t,n,r){var i=Ve?Ve+e:e;if(!this._events[i])return this;if(!t)return We(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||We(this,i);else{for(var o=0,s=[],c=a.length;o<c;o++)(a[o].fn!==t||r&&!a[o].once||n&&a[o].context!==n)&&s.push(a[o]);s.length?this._events[i]=1===s.length?s[0]:s:We(this,i)}return this},Je.prototype.removeAllListeners=function(e){var t;return e?(t=Ve?Ve+e:e,this._events[t]&&We(this,t)):(this._events=new Ge,this._eventsCount=0),this},Je.prototype.off=Je.prototype.removeListener,Je.prototype.addListener=Je.prototype.on,Je.prefixed=Ve,Je.EventEmitter=Je,Ue=Je;var Ye={};t(Ye,"LogLevel",(function(){return Ke}),(function(e){return Ke=e})),t(Ye,"default",(function(){return ct}),(function(e){return ct=e}));var Ke,Qe=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},Ze=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},Xe="PeerJS: ";!function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"}(Ke||(Ke={}));var et,tt,nt,rt,it,at,ot,st=(et=function(){this._logLevel=Ke.Disabled},Object.defineProperty(et.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){this._logLevel=e},enumerable:!1,configurable:!0}),et.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logLevel>=Ke.All&&this._print.apply(this,Ze([Ke.All],Qe(e),!1))},et.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logLevel>=Ke.Warnings&&this._print.apply(this,Ze([Ke.Warnings],Qe(e),!1))},et.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logLevel>=Ke.Errors&&this._print.apply(this,Ze([Ke.Errors],Qe(e),!1))},et.prototype.setLogFunction=function(e){this._print=e},et.prototype._print=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Ze([Xe],Qe(t),!1);for(var i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);e>=Ke.All?console.log.apply(console,Ze([],Qe(r),!1)):e>=Ke.Warnings?console.warn.apply(console,Ze(["WARNING"],Qe(r),!1)):e>=Ke.Errors&&console.error.apply(console,Ze(["ERROR"],Qe(r),!1))},et),ct=new st,lt={};t(lt,"Socket",(function(){return ft}),(function(e){return ft=e})),function(e){e.Data="data",e.Media="media"}(tt||(tt={})),function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"}(nt||(nt={})),function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json"}(rt||(rt={})),function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"}(it||(it={})),function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"}(at||(at={})),ot=JSON.parse('{"name":"peerjs","version":"1.4.7","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","types":"dist/types.d.ts","engines":{"node":">= 10"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"cover 99%, not dead"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"cover 99%, not dead"},"source":"lib/global.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"mocha -r ts-node/register -r jsdom-global/register test/**/*.ts","format":"prettier --write .","semantic-release":"semantic-release"},"devDependencies":{"@parcel/config-default":"^2.5.0","@parcel/packager-ts":"^2.5.0","@parcel/transformer-typescript-tsc":"^2.5.0","@parcel/transformer-typescript-types":"^2.5.0","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@types/chai":"^4.3.0","@types/mocha":"^9.1.0","@types/node":"^17.0.18","chai":"^4.3.6","git-authors-cli":"^1.0.40","jsdom":"^19.0.0","jsdom-global":"^3.0.2","mocha":"^9.2.0","mock-socket":"8.0.5","parcel":"^2.5.0","parcel-transformer-tsc-sourcemaps":"^1.0.2","prettier":"^2.6.2","semantic-release":"^19.0.2","standard":"^16.0.4","ts-node":"^10.5.0","typescript":"^4.5.5"},"dependencies":{"@swc/helpers":"^0.3.13","eventemitter3":"^4.0.7","peerjs-js-binarypack":"1.0.1","webrtc-adapter":"^7.7.1"}}');var dt,ut=(dt=function(e,t){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){var n=function(){this.constructor=e};if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ft=function(e){var t=function(t,n,r,i,a,o){void 0===o&&(o=5e3);var s=e.call(this)||this;s.pingInterval=o,s._disconnected=!0,s._messagesQueue=[];var c=t?"wss://":"ws://";return s._baseUrl=c+n+":"+r+i+"peerjs?key="+a,s};return ut(t,e),t.prototype.start=function(e,t){var n=this;this._id=e;var r="".concat(this._baseUrl,"&id=").concat(e,"&token=").concat(t);!this._socket&&this._disconnected&&(this._socket=new WebSocket(r+"&version="+ot.version),this._disconnected=!1,this._socket.onmessage=function(e){var t;try{t=JSON.parse(e.data),Ye.default.log("Server message received:",t)}catch(t){return void Ye.default.log("Invalid server message",e.data)}n.emit(it.Message,t)},this._socket.onclose=function(e){n._disconnected||(Ye.default.log("Socket closed.",e),n._cleanup(),n._disconnected=!0,n.emit(it.Disconnected))},this._socket.onopen=function(){n._disconnected||(n._sendQueuedMessages(),Ye.default.log("Socket open"),n._scheduleHeartbeat())})},t.prototype._scheduleHeartbeat=function(){var e=this;this._wsPingTimer=setTimeout((function(){e._sendHeartbeat()}),this.pingInterval)},t.prototype._sendHeartbeat=function(){if(this._wsOpen()){var e=JSON.stringify({type:at.Heartbeat});this._socket.send(e),this._scheduleHeartbeat()}else Ye.default.log("Cannot send heartbeat, because socket closed")},t.prototype._wsOpen=function(){return!!this._socket&&1===this._socket.readyState},t.prototype._sendQueuedMessages=function(){var e,t,n=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(this._messagesQueue),!1);this._messagesQueue=[];try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),i=r.next();!i.done;i=r.next()){var a=i.value;this.send(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.send=function(e){if(!this._disconnected)if(this._id)if(e.type){if(this._wsOpen()){var t=JSON.stringify(e);this._socket.send(t)}}else this.emit(it.Error,"Invalid message");else this._messagesQueue.push(e)},t.prototype.close=function(){this._disconnected||(this._cleanup(),this._disconnected=!0)},t.prototype._cleanup=function(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)},t}(Ue.EventEmitter),pt={};t(pt,"MediaConnection",(function(){return Ct}),(function(e){return Ct=e}));var ht={};t(ht,"Negotiator",(function(){return gt}),(function(e){return gt=e}));var mt=function(){return mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mt.apply(this,arguments)},vt=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){var o=function(e){try{c(r.next(e))}catch(e){a(e)}},s=function(e){try{c(r.throw(e))}catch(e){a(e)}},c=function(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)};c((r=r.apply(e,t||[])).next())}))},bt=function(e,t){var n,r,i,a,o=function(e){return function(t){return s([e,t])}},s=function(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!((i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){c.label=a[1];break}if(6===a[0]&&c.label<i[1]){c.label=i[1],i=a;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(a);break}i[2]&&c.ops.pop(),c.trys.pop();continue}a=t.call(e,c)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}},c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},gt=function(){var e=function(e){this.connection=e};return e.prototype.startConnection=function(e){var t=this._startPeerConnection();if(this.connection.peerConnection=t,this.connection.type===tt.Media&&e._stream&&this._addTracksToConnection(e._stream,t),e.originator){if(this.connection.type===tt.Data){var n=this.connection,r={ordered:!!e.reliable},i=t.createDataChannel(n.label,r);n.initialize(i)}this._makeOffer()}else this.handleSDP("OFFER",e.sdp)},e.prototype._startPeerConnection=function(){Ye.default.log("Creating RTCPeerConnection.");var e=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(e),e},e.prototype._setupListeners=function(e){var t=this,n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,a=this.connection.provider;Ye.default.log("Listening for ICE candidates."),e.onicecandidate=function(e){e.candidate&&e.candidate.candidate&&(Ye.default.log("Received ICE candidates for ".concat(n,":"),e.candidate),a.socket.send({type:at.Candidate,payload:{candidate:e.candidate,type:i,connectionId:r},dst:n}))},e.oniceconnectionstatechange=function(){switch(e.iceConnectionState){case"failed":Ye.default.log("iceConnectionState is failed, closing connections to "+n),t.connection.emit("error",new Error("Negotiation of connection to "+n+" failed.")),t.connection.close();break;case"closed":Ye.default.log("iceConnectionState is closed, closing connections to "+n),t.connection.emit("error",new Error("Connection to "+n+" closed.")),t.connection.close();break;case"disconnected":Ye.default.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":e.onicecandidate=Le.noop}t.connection.emit("iceStateChanged",e.iceConnectionState)},Ye.default.log("Listening for data channel"),e.ondatachannel=function(e){Ye.default.log("Received data channel");var t=e.channel;a.getConnection(n,r).initialize(t)},Ye.default.log("Listening for remote stream"),e.ontrack=function(e){Ye.default.log("Received remote stream");var i=e.streams[0],o=a.getConnection(n,r);if(o.type===tt.Media){var s=o;t._addStreamToMediaConnection(i,s)}}},e.prototype.cleanup=function(){Ye.default.log("Cleaning up PeerConnection to "+this.connection.peer);var e=this.connection.peerConnection;if(e){this.connection.peerConnection=null,e.onicecandidate=e.oniceconnectionstatechange=e.ondatachannel=e.ontrack=function(){};var t="closed"!==e.signalingState,n=!1;if(this.connection.type===tt.Data){var r=this.connection.dataChannel;r&&(n=!!r.readyState&&"closed"!==r.readyState)}(t||n)&&e.close()}},e.prototype._makeOffer=function(){return vt(this,void 0,Promise,(function(){var e,t,n,r,i,a,o;return bt(this,(function(s){switch(s.label){case 0:e=this.connection.peerConnection,t=this.connection.provider,s.label=1;case 1:return s.trys.push([1,7,,8]),[4,e.createOffer(this.connection.options.constraints)];case 2:n=s.sent(),Ye.default.log("Created offer."),this.connection.options.sdpTransform&&"function"==typeof this.connection.options.sdpTransform&&(n.sdp=this.connection.options.sdpTransform(n.sdp)||n.sdp),s.label=3;case 3:return s.trys.push([3,5,,6]),[4,e.setLocalDescription(n)];case 4:return s.sent(),Ye.default.log("Set localDescription:",n,"for:".concat(this.connection.peer)),r={sdp:n,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata,browser:Le.browser},this.connection.type===tt.Data&&(i=this.connection,r=mt(mt({},r),{label:i.label,reliable:i.reliable,serialization:i.serialization})),t.socket.send({type:at.Offer,payload:r,dst:this.connection.peer}),[3,6];case 5:return"OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"!=(a=s.sent())&&(t.emitError(nt.WebRTC,a),Ye.default.log("Failed to setLocalDescription, ",a)),[3,6];case 6:return[3,8];case 7:return o=s.sent(),t.emitError(nt.WebRTC,o),Ye.default.log("Failed to createOffer, ",o),[3,8];case 8:return[2]}}))}))},e.prototype._makeAnswer=function(){return vt(this,void 0,Promise,(function(){var e,t,n,r,i;return bt(this,(function(a){switch(a.label){case 0:e=this.connection.peerConnection,t=this.connection.provider,a.label=1;case 1:return a.trys.push([1,7,,8]),[4,e.createAnswer()];case 2:n=a.sent(),Ye.default.log("Created answer."),this.connection.options.sdpTransform&&"function"==typeof this.connection.options.sdpTransform&&(n.sdp=this.connection.options.sdpTransform(n.sdp)||n.sdp),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,e.setLocalDescription(n)];case 4:return a.sent(),Ye.default.log("Set localDescription:",n,"for:".concat(this.connection.peer)),t.socket.send({type:at.Answer,payload:{sdp:n,type:this.connection.type,connectionId:this.connection.connectionId,browser:Le.browser},dst:this.connection.peer}),[3,6];case 5:return r=a.sent(),t.emitError(nt.WebRTC,r),Ye.default.log("Failed to setLocalDescription, ",r),[3,6];case 6:return[3,8];case 7:return i=a.sent(),t.emitError(nt.WebRTC,i),Ye.default.log("Failed to create answer, ",i),[3,8];case 8:return[2]}}))}))},e.prototype.handleSDP=function(e,t){return vt(this,void 0,Promise,(function(){var n,r,i,a;return bt(this,(function(o){switch(o.label){case 0:t=new RTCSessionDescription(t),n=this.connection.peerConnection,r=this.connection.provider,Ye.default.log("Setting remote description",t),i=this,o.label=1;case 1:return o.trys.push([1,5,,6]),[4,n.setRemoteDescription(t)];case 2:return o.sent(),Ye.default.log("Set remoteDescription:".concat(e," for:").concat(this.connection.peer)),"OFFER"!==e?[3,4]:[4,i._makeAnswer()];case 3:o.sent(),o.label=4;case 4:return[3,6];case 5:return a=o.sent(),r.emitError(nt.WebRTC,a),Ye.default.log("Failed to setRemoteDescription, ",a),[3,6];case 6:return[2]}}))}))},e.prototype.handleCandidate=function(e){return vt(this,void 0,Promise,(function(){var t,n,r,i,a,o;return bt(this,(function(s){switch(s.label){case 0:Ye.default.log("handleCandidate:",e),t=e.candidate,n=e.sdpMLineIndex,r=e.sdpMid,i=this.connection.peerConnection,a=this.connection.provider,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,i.addIceCandidate(new RTCIceCandidate({sdpMid:r,sdpMLineIndex:n,candidate:t}))];case 2:return s.sent(),Ye.default.log("Added ICE candidate for:".concat(this.connection.peer)),[3,4];case 3:return o=s.sent(),a.emitError(nt.WebRTC,o),Ye.default.log("Failed to handleCandidate, ",o),[3,4];case 4:return[2]}}))}))},e.prototype._addTracksToConnection=function(e,t){if(Ye.default.log("add tracks from stream ".concat(e.id," to peer connection")),!t.addTrack)return Ye.default.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");e.getTracks().forEach((function(n){t.addTrack(n,e)}))},e.prototype._addStreamToMediaConnection=function(e,t){Ye.default.log("add stream ".concat(e.id," to media connection ").concat(t.connectionId)),t.addStream(e)},e}(),yt={};t(yt,"BaseConnection",(function(){return xt}),(function(e){return xt=e}));var _t=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){var r=function(){this.constructor=t};if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(e){var t=function(t,n,r){var i=e.call(this)||this;return i.peer=t,i.provider=n,i.options=r,i._open=!1,i.metadata=r.metadata,i};return _t(t,e),Object.defineProperty(t.prototype,"open",{get:function(){return this._open},enumerable:!1,configurable:!0}),t}(Ue.EventEmitter),kt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){var r=function(){this.constructor=t};if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(){return wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wt.apply(this,arguments)},Ct=function(e){function t(n,r,i){var a=e.call(this,n,r,i)||this;return a._localStream=a.options._stream,a.connectionId=a.options.connectionId||t.ID_PREFIX+Le.randomToken(),a._negotiator=new ht.Negotiator(a),a._localStream&&a._negotiator.startConnection({_stream:a._localStream,originator:!0}),a}return kt(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return tt.Media},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localStream",{get:function(){return this._localStream},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"remoteStream",{get:function(){return this._remoteStream},enumerable:!1,configurable:!0}),t.prototype.addStream=function(t){Ye.default.log("Receiving stream",t),this._remoteStream=t,e.prototype.emit.call(this,"stream",t)},t.prototype.handleMessage=function(e){var t=e.type,n=e.payload;switch(e.type){case at.Answer:this._negotiator.handleSDP(t,n.sdp),this._open=!0;break;case at.Candidate:this._negotiator.handleCandidate(n.candidate);break;default:Ye.default.warn("Unrecognized message type:".concat(t," from peer:").concat(this.peer))}},t.prototype.answer=function(e,t){var n,r;if(void 0===t&&(t={}),this._localStream)Ye.default.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");else{this._localStream=e,t&&t.sdpTransform&&(this.options.sdpTransform=t.sdpTransform),this._negotiator.startConnection(wt(wt({},this.options._payload),{_stream:e}));var i=this.provider._getMessages(this.connectionId);try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),o=a.next();!o.done;o=a.next()){var s=o.value;this.handleMessage(s)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}this._open=!0}},t.prototype.close=function(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,e.prototype.emit.call(this,"close"))},t.ID_PREFIX="mc_",t}(yt.BaseConnection),Tt={};t(Tt,"DataConnection",(function(){return Pt}),(function(e){return Pt=e}));var St={};t(St,"EncodingQueue",(function(){return Rt}),(function(e){return Rt=e}));var Dt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){var r=function(){this.constructor=t};if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rt=function(e){var t=function(){var t=e.call(this)||this;return t.fileReader=new FileReader,t._queue=[],t._processing=!1,t.fileReader.onload=function(e){t._processing=!1,e.target&&t.emit("done",e.target.result),t.doNextTask()},t.fileReader.onerror=function(e){Ye.default.error("EncodingQueue error:",e),t._processing=!1,t.destroy(),t.emit("error",e)},t};return Dt(t,e),Object.defineProperty(t.prototype,"queue",{get:function(){return this._queue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),t.prototype.enque=function(e){this.queue.push(e),this.processing||this.doNextTask()},t.prototype.destroy=function(){this.fileReader.abort(),this._queue=[]},t.prototype.doNextTask=function(){0!==this.size&&(this.processing||(this._processing=!0,this.fileReader.readAsArrayBuffer(this.queue.shift())))},t}(Ue.EventEmitter),Et=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){var r=function(){this.constructor=t};if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pt=function(e){function t(n,r,i){var a=e.call(this,n,r,i)||this;return a.stringify=JSON.stringify,a.parse=JSON.parse,a._buffer=[],a._bufferSize=0,a._buffering=!1,a._chunkedData={},a._encodingQueue=new St.EncodingQueue,a.connectionId=a.options.connectionId||t.ID_PREFIX+Le.randomToken(),a.label=a.options.label||a.connectionId,a.serialization=a.options.serialization||rt.Binary,a.reliable=!!a.options.reliable,a._encodingQueue.on("done",(function(e){a._bufferedSend(e)})),a._encodingQueue.on("error",(function(){Ye.default.error("DC#".concat(a.connectionId,": Error occured in encoding from blob to arraybuffer, close DC")),a.close()})),a._negotiator=new ht.Negotiator(a),a._negotiator.startConnection(a.options._payload||{originator:!0}),a}return Et(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return tt.Data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChannel",{get:function(){return this._dc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bufferSize",{get:function(){return this._bufferSize},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e){this._dc=e,this._configureDataChannel()},t.prototype._configureDataChannel=function(){var e=this;Le.supports.binaryBlob&&!Le.supports.reliable||(this.dataChannel.binaryType="arraybuffer"),this.dataChannel.onopen=function(){Ye.default.log("DC#".concat(e.connectionId," dc connection success")),e._open=!0,e.emit("open")},this.dataChannel.onmessage=function(t){Ye.default.log("DC#".concat(e.connectionId," dc onmessage:"),t.data),e._handleDataMessage(t)},this.dataChannel.onclose=function(){Ye.default.log("DC#".concat(e.connectionId," dc closed for:"),e.peer),e.close()}},t.prototype._handleDataMessage=function(t){var n=this,r=t.data,i=r.constructor,a=r;if(this.serialization===rt.Binary||this.serialization===rt.BinaryUTF8){if(i===Blob)return void Le.blobToArrayBuffer(r,(function(e){var t=Le.unpack(e);n.emit("data",t)}));if(i===ArrayBuffer)a=Le.unpack(r);else if(i===String){var o=Le.binaryStringToArrayBuffer(r);a=Le.unpack(o)}}else this.serialization===rt.JSON&&(a=this.parse(r));a.__peerData?this._handleChunk(a):e.prototype.emit.call(this,"data",a)},t.prototype._handleChunk=function(e){var t=e.__peerData,n=this._chunkedData[t]||{data:[],count:0,total:e.total};if(n.data[e.n]=e.data,n.count++,this._chunkedData[t]=n,n.total===n.count){delete this._chunkedData[t];var r=new Blob(n.data);this._handleDataMessage({data:r})}},t.prototype.close=function(){this._buffer=[],this._bufferSize=0,this._chunkedData={},this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this._dc=null),this._encodingQueue&&(this._encodingQueue.destroy(),this._encodingQueue.removeAllListeners(),this._encodingQueue=null),this.open&&(this._open=!1,e.prototype.emit.call(this,"close"))},t.prototype.send=function(t,n){if(this.open)if(this.serialization===rt.JSON)this._bufferedSend(this.stringify(t));else if(this.serialization===rt.Binary||this.serialization===rt.BinaryUTF8){var r=Le.pack(t);if(!n&&r.size>Le.chunkedMTU)return void this._sendChunks(r);Le.supports.binaryBlob?this._bufferedSend(r):this._encodingQueue.enque(r)}else this._bufferedSend(t);else e.prototype.emit.call(this,"error",new Error("Connection is not open. You should listen for the `open` event before sending messages."))},t.prototype._bufferedSend=function(e){!this._buffering&&this._trySend(e)||(this._buffer.push(e),this._bufferSize=this._buffer.length)},t.prototype._trySend=function(e){var n=this;if(!this.open)return!1;if(this.dataChannel.bufferedAmount>t.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout((function(){n._buffering=!1,n._tryBuffer()}),50),!1;try{this.dataChannel.send(e)}catch(e){return Ye.default.error("DC#:".concat(this.connectionId," Error when sending:"),e),this._buffering=!0,this.close(),!1}return!0},t.prototype._tryBuffer=function(){if(this.open&&0!==this._buffer.length){var e=this._buffer[0];this._trySend(e)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}},t.prototype._sendChunks=function(e){var t,n,r=Le.chunk(e);Ye.default.log("DC#".concat(this.connectionId," Try to send ").concat(r.length," chunks..."));try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),a=i.next();!a.done;a=i.next()){var o=a.value;this.send(o,!0)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.prototype.handleMessage=function(e){var t=e.payload;switch(e.type){case at.Answer:this._negotiator.handleSDP(e.type,t.sdp);break;case at.Candidate:this._negotiator.handleCandidate(t.candidate);break;default:Ye.default.warn("Unrecognized message type:",e.type,"from peer:",this.peer)}},t.ID_PREFIX="dc_",t.MAX_BUFFERED_AMOUNT=8388608,t}(yt.BaseConnection),Mt={};t(Mt,"API",(function(){return At}),(function(e){return At=e}));var It=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){var o=function(e){try{c(r.next(e))}catch(e){a(e)}},s=function(e){try{c(r.throw(e))}catch(e){a(e)}},c=function(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)};c((r=r.apply(e,t||[])).next())}))},Ot=function(e,t){var n,r,i,a,o=function(e){return function(t){return s([e,t])}},s=function(a){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!((i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){c.label=a[1];break}if(6===a[0]&&c.label<i[1]){c.label=i[1],i=a;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(a);break}i[2]&&c.ops.pop(),c.trys.pop();continue}a=t.call(e,c)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}},c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},At=function(){var e=function(e){this._options=e};return e.prototype._buildRequest=function(e){var t=this._options.secure?"https":"http",n=this._options,r=n.host,i=n.port,a=n.path,o=n.key,s=new URL("".concat(t,"://").concat(r,":").concat(i).concat(a).concat(o,"/").concat(e));return s.searchParams.set("ts","".concat(Date.now()).concat(Math.random())),s.searchParams.set("version",ot.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})},e.prototype.retrieveId=function(){return It(this,void 0,Promise,(function(){var e,t,n;return Ot(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._buildRequest("id")];case 1:if(200!==(e=r.sent()).status)throw new Error("Error. Status:".concat(e.status));return[2,e.text()];case 2:throw t=r.sent(),Ye.default.error("Error retrieving ID",t),n="","/"===this._options.path&&this._options.host!==Le.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n);case 3:return[2]}}))}))},e.prototype.listAllPeers=function(){return It(this,void 0,Promise,(function(){var e,t,n;return Ot(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._buildRequest("peers")];case 1:if(200!==(e=r.sent()).status){if(401===e.status)throw"",t=this._options.host===Le.CLOUD_HOST?"It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":"You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+t);throw new Error("Error. Status:".concat(e.status))}return[2,e.json()];case 2:throw n=r.sent(),Ye.default.error("Error retrieving list peers",n),new Error("Could not get list peers from the server."+n);case 3:return[2]}}))}))},e}(),jt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){var r=function(){this.constructor=t};if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bt=function(){return Bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Bt.apply(this,arguments)},Nt=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o},Lt=function(e){function t(n,r){var i,a=e.call(this)||this;return a._id=null,a._lastServerId=null,a._destroyed=!1,a._disconnected=!1,a._open=!1,a._connections=new Map,a._lostMessages=new Map,n&&n.constructor==Object?r=n:n&&(i=n.toString()),r=Bt({debug:0,host:Le.CLOUD_HOST,port:Le.CLOUD_PORT,path:"/",key:t.DEFAULT_KEY,token:Le.randomToken(),config:Le.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin"},r),a._options=r,"/"===a._options.host&&(a._options.host=window.location.hostname),a._options.path&&("/"!==a._options.path[0]&&(a._options.path="/"+a._options.path),"/"!==a._options.path[a._options.path.length-1]&&(a._options.path+="/")),void 0===a._options.secure&&a._options.host!==Le.CLOUD_HOST?a._options.secure=Le.isSecure():a._options.host==Le.CLOUD_HOST&&(a._options.secure=!0),a._options.logFunction&&Ye.default.setLogFunction(a._options.logFunction),Ye.default.logLevel=a._options.debug||0,a._api=new Mt.API(r),a._socket=a._createServerConnection(),Le.supports.audioVideo||Le.supports.data?i&&!Le.validateId(i)?(a._delayedAbort(nt.InvalidID,'ID "'.concat(i,'" is invalid')),a):(i?a._initialize(i):a._api.retrieveId().then((function(e){return a._initialize(e)})).catch((function(e){return a._abort(nt.ServerError,e)})),a):(a._delayedAbort(nt.BrowserIncompatible,"The current browser does not support WebRTC"),a)}return jt(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"open",{get:function(){return this._open},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"socket",{get:function(){return this._socket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connections",{get:function(){var e,t,n=Object.create(null);try{for(var r=Nt(this._connections),i=r.next();!i.done;i=r.next()){var a=$t(i.value,2),o=a[0],s=a[1];n[o]=s}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disconnected",{get:function(){return this._disconnected},enumerable:!1,configurable:!0}),t.prototype._createServerConnection=function(){var e=this,t=new lt.Socket(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(it.Message,(function(t){e._handleMessage(t)})),t.on(it.Error,(function(t){e._abort(nt.SocketError,t)})),t.on(it.Disconnected,(function(){e.disconnected||(e.emitError(nt.Network,"Lost connection to server."),e.disconnect())})),t.on(it.Close,(function(){e.disconnected||e._abort(nt.SocketClosed,"Underlying socket is already closed.")})),t},t.prototype._initialize=function(e){this._id=e,this.socket.start(e,this._options.token)},t.prototype._handleMessage=function(e){var t,n,r=e.type,i=e.payload,a=e.src;switch(r){case at.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case at.Error:this._abort(nt.ServerError,i.msg);break;case at.IdTaken:this._abort(nt.UnavailableID,'ID "'.concat(this.id,'" is taken'));break;case at.InvalidKey:this._abort(nt.InvalidKey,'API KEY "'.concat(this._options.key,'" is invalid'));break;case at.Leave:Ye.default.log("Received leave message from ".concat(a)),this._cleanupPeer(a),this._connections.delete(a);break;case at.Expire:this.emitError(nt.PeerUnavailable,"Could not connect to peer ".concat(a));break;case at.Offer:var o=i.connectionId;if((p=this.getConnection(a,o))&&(p.close(),Ye.default.warn("Offer received for existing Connection ID:".concat(o))),i.type===tt.Media){var s=new pt.MediaConnection(a,this,{connectionId:o,_payload:i,metadata:i.metadata});p=s,this._addConnection(a,p),this.emit("call",s)}else{if(i.type!==tt.Data)return void Ye.default.warn("Received malformed connection type:".concat(i.type));var c=new Tt.DataConnection(a,this,{connectionId:o,_payload:i,metadata:i.metadata,label:i.label,serialization:i.serialization,reliable:i.reliable});p=c,this._addConnection(a,p),this.emit("connection",c)}var l=this._getMessages(o);try{for(var d=Nt(l),u=d.next();!u.done;u=d.next()){var f=u.value;p.handleMessage(f)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}break;default:if(!i)return void Ye.default.warn("You received a malformed message from ".concat(a," of type ").concat(r));var p;o=i.connectionId,(p=this.getConnection(a,o))&&p.peerConnection?p.handleMessage(e):o?this._storeMessage(o,e):Ye.default.warn("You received an unrecognized message:",e)}},t.prototype._storeMessage=function(e,t){this._lostMessages.has(e)||this._lostMessages.set(e,[]),this._lostMessages.get(e).push(t)},t.prototype._getMessages=function(e){var t=this._lostMessages.get(e);return t?(this._lostMessages.delete(e),t):[]},t.prototype.connect=function(e,t){if(void 0===t&&(t={}),this.disconnected)return Ye.default.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),void this.emitError(nt.Disconnected,"Cannot connect to new Peer after disconnecting from server.");var n=new Tt.DataConnection(e,this,t);return this._addConnection(e,n),n},t.prototype.call=function(e,t,n){if(void 0===n&&(n={}),this.disconnected)return Ye.default.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),void this.emitError(nt.Disconnected,"Cannot connect to new Peer after disconnecting from server.");if(t){var r=new pt.MediaConnection(e,this,Bt(Bt({},n),{_stream:t}));return this._addConnection(e,r),r}Ye.default.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.")},t.prototype._addConnection=function(e,t){Ye.default.log("add connection ".concat(t.type,":").concat(t.connectionId," to peerId:").concat(e)),this._connections.has(e)||this._connections.set(e,[]),this._connections.get(e).push(t)},t.prototype._removeConnection=function(e){var t=this._connections.get(e.peer);if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}this._lostMessages.delete(e.connectionId)},t.prototype.getConnection=function(e,t){var n,r,i=this._connections.get(e);if(!i)return null;try{for(var a=Nt(i),o=a.next();!o.done;o=a.next()){var s=o.value;if(s.connectionId===t)return s}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return null},t.prototype._delayedAbort=function(e,t){var n=this;setTimeout((function(){n._abort(e,t)}),0)},t.prototype._abort=function(e,t){Ye.default.error("Aborting!"),this.emitError(e,t),this._lastServerId?this.disconnect():this.destroy()},t.prototype.emitError=function(e,t){var n;Ye.default.error("Error:",t),(n="string"==typeof t?new Error(t):t).type=e,this.emit("error",n)},t.prototype.destroy=function(){this.destroyed||(Ye.default.log("Destroy peer with ID:".concat(this.id)),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))},t.prototype._cleanup=function(){var e,t;try{for(var n=Nt(this._connections.keys()),r=n.next();!r.done;r=n.next()){var i=r.value;this._cleanupPeer(i),this._connections.delete(i)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.socket.removeAllListeners()},t.prototype._cleanupPeer=function(e){var t,n,r=this._connections.get(e);if(r)try{for(var i=Nt(r),a=i.next();!a.done;a=i.next())a.value.close()}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.prototype.disconnect=function(){if(!this.disconnected){var e=this.id;Ye.default.log("Disconnect peer with ID:".concat(e)),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=e,this._id=null,this.emit("disconnected",e)}},t.prototype.reconnect=function(){if(this.disconnected&&!this.destroyed)Ye.default.log("Attempting reconnection to server with ID ".concat(this._lastServerId)),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(this.disconnected||this.open)throw new Error("Peer ".concat(this.id," cannot reconnect because it is not disconnected from the server!"));Ye.default.error("In a hurry? We're still trying to make the initial connection!")}},t.prototype.listAllPeers=function(e){var t=this;void 0===e&&(e=function(e){}),this._api.listAllPeers().then((function(t){return e(t)})).catch((function(e){return t._abort(nt.ServerError,e)}))},t.DEFAULT_KEY="peerjs",t}(Ue.EventEmitter);window.peerjs={Peer:ze.Peer,util:Le},window.Peer=ze.Peer}()},3219:function(e,t,n){var r=n("9fea");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("70903fbf",r,!0,{sourceMap:!1,shadowMode:!1})},"32a1":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("14d9"),n("d81d");var i=r(n("8432")),a={name:"uniTh",options:{virtualHost:!0},components:{dropdown:i.default},emits:["sort-change","filter-change"],props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1},sortable:{type:Boolean,default:!1},filterType:{type:String,default:""},filterData:{type:Array,default:function(){return[]}}},data:function(){return{border:!1,ascending:!1,descending:!1}},computed:{contentAlign:function(){var e="left";switch(this.align){case"left":e="flex-start";break;case"center":e="center";break;case"right":e="flex-end";break}return e}},created:function(){this.root=this.getTable("uniTable"),this.rootTr=this.getTable("uniTr"),this.rootTr.minWidthUpdate(this.width?this.width:140),this.border=this.root.border,this.root.thChildren.push(this)},methods:{sort:function(){if(this.sortable)return this.clearOther(),this.ascending||this.descending?this.ascending&&!this.descending?(this.ascending=!1,this.descending=!0,void this.$emit("sort-change",{order:"descending"})):void(!this.ascending&&this.descending&&(this.ascending=!1,this.descending=!1,this.$emit("sort-change",{order:null}))):(this.ascending=!0,void this.$emit("sort-change",{order:"ascending"}))},ascendingFn:function(){this.clearOther(),this.ascending=!this.ascending,this.descending=!1,this.$emit("sort-change",{order:this.ascending?"ascending":null})},descendingFn:function(){this.clearOther(),this.descending=!this.descending,this.ascending=!1,this.$emit("sort-change",{order:this.descending?"descending":null})},clearOther:function(){var e=this;this.root.thChildren.map((function(t){return t!==e&&(t.ascending=!1,t.descending=!1),t}))},ondropdown:function(e){this.$emit("filter-change",e)},getTable:function(e){var t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=a},3346:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d3b7"),n("159b"),n("14d9");var r={name:"uniCollapse",emits:["change","activeItem","input","update:modelValue"],props:{value:{type:[String,Array],default:""},modelValue:{type:[String,Array],default:""},accordion:{type:[Boolean,String],default:!1}},data:function(){return{}},computed:{dataValue:function(){var e="string"===typeof this.value&&""===this.value||Array.isArray(this.value)&&0===this.value.length;"string"===typeof this.modelValue&&""===this.modelValue||Array.isArray(this.modelValue)&&this.modelValue.length;return e?this.modelValue:this.value}},watch:{dataValue:function(e){this.setOpen(e)}},created:function(){this.childrens=[],this.names=[]},mounted:function(){var e=this;this.$nextTick((function(){e.setOpen(e.dataValue)}))},methods:{setOpen:function(e){var t=this,n="string"===typeof e,r=Array.isArray(e);this.childrens.forEach((function(i,a){if(n&&e===i.nameSync){if(!t.accordion)return void console.warn("accordion 属性为 false ,v-model 类型应该为 array");i.isOpen=!0}r&&e.forEach((function(e){if(e===i.nameSync){if(t.accordion)return void console.warn("accordion 属性为 true ,v-model 类型应该为 string");i.isOpen=!0}}))})),this.emit(e)},setAccordion:function(e){this.accordion&&this.childrens.forEach((function(t,n){e!==t&&(t.isOpen=!1)}))},resize:function(){this.childrens.forEach((function(e,t){e.getCollapseHeight()}))},onChange:function(e,t){var n=[];this.accordion?n=e?t.nameSync:"":this.childrens.forEach((function(e,t){e.isOpen&&n.push(e.nameSync)})),this.$emit("change",n),this.emit(n)},emit:function(e){this.$emit("input",e),this.$emit("update:modelValue",e)}}};t.default=r},3494:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-calendar[data-v-f8ef3a90]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-f8ef3a90]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-f8ef3a90]{opacity:1}.uni-calendar--fixed[data-v-f8ef3a90]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.3s;-webkit-transform:translateY(460px);transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-f8ef3a90]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-calendar__content[data-v-f8ef3a90]{background-color:#fff}.uni-calendar__header[data-v-f8ef3a90]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar--fixed-top[data-v-f8ef3a90]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:#c8c7cc;border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-f8ef3a90]{width:50px}.uni-calendar__backtoday[data-v-f8ef3a90]{position:absolute;right:0;top:%?25?%;padding:0 5px;padding-left:10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#333;background-color:#f1f1f1}.uni-calendar__header-text[data-v-f8ef3a90]{text-align:center;width:100px;font-size:%?28?%;color:#333}.uni-calendar__button-text[data-v-f8ef3a90]{text-align:center;width:100px;font-size:%?28?%;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-f8ef3a90]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-f8ef3a90]{width:8px;height:8px;border-left-color:grey;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-f8ef3a90]{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-calendar--right[data-v-f8ef3a90]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.uni-calendar__weeks[data-v-f8ef3a90]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-f8ef3a90]{flex:1}.uni-calendar__weeks-day[data-v-f8ef3a90]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-f8ef3a90]{font-size:12px}.uni-calendar__box[data-v-f8ef3a90]{position:relative}.uni-calendar__box-bg[data-v-f8ef3a90]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-f8ef3a90]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-f8ef3a90]{padding:0 10px;text-align:center;color:#333;border-top-color:#c8c7cc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-changed--time-start[data-v-f8ef3a90]{display:flex;align-items:center}.uni-date-changed--time-end[data-v-f8ef3a90]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-f8ef3a90]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-f8ef3a90]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-f8ef3a90]{margin-right:10px}',""]),e.exports=t},3627:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"uni-collapse"},[this._t("default")],2)},i=[]},"39cb":function(e,t,n){"use strict";n.r(t);var r=n("ac6f"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"3b1f":function(e,t,n){"use strict";var r=n("225f"),i=n.n(r);i.a},"3c71":function(e,t,n){"use strict";n.r(t);var r=n("e9cc"),i=n("4604");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("fbc9");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"354c5075",null,!1,r["a"],void 0);t["default"]=s.exports},"3e7b":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-table-checkbox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.selected.apply(void 0,arguments)}}},[e.indeterminate?n("v-uni-view",{staticClass:"checkbox__inner checkbox--indeterminate"},[n("v-uni-view",{staticClass:"checkbox__inner-icon"})],1):n("v-uni-view",{staticClass:"checkbox__inner",class:{"is-checked":e.isChecked,"is-disable":e.isDisabled}},[n("v-uni-view",{staticClass:"checkbox__inner-icon"})],1)],1)},i=[]},"40c0":function(e,t,n){"use strict";n.r(t);var r=n("643a"),i=n("c5cb");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("59d1");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"794f63b1",null,!1,r["a"],void 0);t["default"]=s.exports},4151:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-table-checkbox[data-v-132b8064]{display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;margin:5px 0;cursor:pointer}.uni-table-checkbox .checkbox__inner[data-v-132b8064]{flex-shrink:0;box-sizing:border-box;position:relative;width:16px;height:16px;border:1px solid #dcdfe6;border-radius:2px;background-color:#fff;z-index:1}.uni-table-checkbox .checkbox__inner .checkbox__inner-icon[data-v-132b8064]{position:absolute;top:2px;left:5px;height:7px;width:3px;border:1px solid #fff;border-left:0;border-top:0;opacity:0;-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);box-sizing:initial}.uni-table-checkbox .checkbox__inner.checkbox--indeterminate[data-v-132b8064]{border-color:#007aff;background-color:#007aff}.uni-table-checkbox .checkbox__inner.checkbox--indeterminate .checkbox__inner-icon[data-v-132b8064]{position:absolute;opacity:1;-webkit-transform:rotate(0deg);transform:rotate(0deg);height:2px;top:0;bottom:0;margin:auto;left:0;right:0;bottom:0;width:auto;border:none;border-radius:2px;-webkit-transform:scale(.5);transform:scale(.5);background-color:#fff}.uni-table-checkbox .checkbox__inner[data-v-132b8064]:hover{border-color:#007aff}.uni-table-checkbox .checkbox__inner.is-disable[data-v-132b8064]{cursor:not-allowed;background-color:#f2f6fc;border-color:#dcdfe6}.uni-table-checkbox .checkbox__inner.is-checked[data-v-132b8064]{border-color:#007aff;background-color:#007aff}.uni-table-checkbox .checkbox__inner.is-checked .checkbox__inner-icon[data-v-132b8064]{opacity:1;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.uni-table-checkbox .checkbox__inner.is-checked.is-disable[data-v-132b8064]{opacity:.4}',""]),e.exports=t},4511:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-table-tr[data-v-354c5075]{display:table-row;transition:all .3s;box-sizing:border-box}.checkbox[data-v-354c5075]{padding:0 8px;width:26px;padding-left:12px;display:table-cell;vertical-align:middle;color:#333;font-weight:500;border-bottom:1px #ebeef5 solid;font-size:14px}.tr-table--border[data-v-354c5075]{border-right:1px #ebeef5 solid}',""]),e.exports=t},4574:function(e,t,n){"use strict";var r=n("bcd5"),i=n.n(r);i.a},4604:function(e,t,n){"use strict";n.r(t);var r=n("eb85"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"46a3":function(e,t,n){var r=n("4b93");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("5a027c3e",r,!0,{sourceMap:!1,shadowMode:!1})},4837:function(e,t,n){"use strict";var r=n("c68f"),i=n.n(r);i.a},"4b93":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-collapse[data-v-1de8c812]{width:100%;display:flex;flex-direction:column;background-color:#fff}',""]),e.exports=t},"4ba5":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3");var r={name:"uniTd",options:{virtualHost:!0},props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1}},data:function(){return{border:!1}},created:function(){this.root=this.getTable(),this.border=this.root.border},methods:{getTable:function(){var e=this.$parent,t=e.$options.name;while("uniTable"!==t){if(e=e.$parent,!e)return!1;t=e.$options.name}return e}}};t.default=r},"4dc0":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-tag[data-v-350e8d74]{line-height:14px;font-size:12px;font-weight:200;padding:4px 7px;color:#fff;border-radius:3px;background-color:#8f939c;border-width:%?1?%;border-style:solid;border-color:#8f939c;cursor:pointer}.uni-tag--default[data-v-350e8d74]{font-size:12px}.uni-tag--default--inverted[data-v-350e8d74]{color:#8f939c;border-color:#8f939c}.uni-tag--small[data-v-350e8d74]{padding:2px 5px;font-size:12px;border-radius:2px}.uni-tag--mini[data-v-350e8d74]{padding:1px 3px;font-size:12px;border-radius:2px}.uni-tag--primary[data-v-350e8d74]{background-color:#2979ff;border-color:#2979ff;color:#fff}.uni-tag--success[data-v-350e8d74]{color:#fff;background-color:#18bc37;border-color:#18bc37}.uni-tag--warning[data-v-350e8d74]{color:#fff;background-color:#f3a73f;border-color:#f3a73f}.uni-tag--error[data-v-350e8d74]{color:#fff;background-color:#e43d33;border-color:#e43d33}.uni-tag--primary--inverted[data-v-350e8d74]{color:#2979ff;border-color:#2979ff}.uni-tag--success--inverted[data-v-350e8d74]{color:#18bc37;border-color:#18bc37}.uni-tag--warning--inverted[data-v-350e8d74]{color:#f3a73f;border-color:#f3a73f}.uni-tag--error--inverted[data-v-350e8d74]{color:#e43d33;border-color:#e43d33}.uni-tag--inverted[data-v-350e8d74]{background-color:#fff}.uni-tag--circle[data-v-350e8d74]{border-radius:15px!important}.uni-tag--mark[data-v-350e8d74]{border-top-left-radius:0!important;border-bottom-left-radius:0!important;border-top-right-radius:15px!important;border-bottom-right-radius:15px!important}.uni-tag--disabled[data-v-350e8d74]{opacity:.5;cursor:not-allowed}.uni-tag-text[data-v-350e8d74]{color:#fff;font-size:14px}.uni-tag-text--primary[data-v-350e8d74]{color:#2979ff}.uni-tag-text--success[data-v-350e8d74]{color:#18bc37}.uni-tag-text--warning[data-v-350e8d74]{color:#f3a73f}.uni-tag-text--error[data-v-350e8d74]{color:#e43d33}.uni-tag-text--small[data-v-350e8d74]{font-size:12px}',""]),e.exports=t},"4e50":function(e,t,n){"use strict";n.r(t);var r=n("32a1"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"50b9":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-table-td[data-v-ba60828c]{display:table-cell;padding:8px 10px;font-size:14px;border-bottom:1px #ebeef5 solid;font-weight:400;color:#606266;line-height:23px;box-sizing:border-box}.table--border[data-v-ba60828c]{border-right:1px #ebeef5 solid}',""]),e.exports=t},5623:function(e,t,n){"use strict";n.r(t);var r=n("e5e7"),i=n("4e50");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("7cb5");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"7e731640",null,!1,r["a"],void 0);t["default"]=s.exports},"563e":function(e,t,n){"use strict";n.r(t);var r=n("3e7b"),i=n("c7ac");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("7cae");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"132b8064",null,!1,r["a"],void 0);t["default"]=s.exports},"593d":function(e,t,n){"use strict";n.r(t);var r=n("99b5"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},5991:function(e,t,n){"use strict";var r=n("bda4"),i=n.n(r);i.a},"59d1":function(e,t,n){"use strict";var r=n("efea"),i=n.n(r);i.a},"5dc3":function(e,t,n){"use strict";var r=n("7f17"),i=n.n(r);i.a},"5e0d":function(e,t,n){"use strict";n.r(t);var r=n("d24a"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"5ee0":function(e,t,n){"use strict";n.r(t);var r=n("87c4"),i=n("7d1f");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("81c1");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"03de91c8",null,!1,r["a"],void 0);t["default"]=s.exports},"5fae":function(e,t,n){"use strict";n.r(t);var r=n("845d"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},6163:function(e,t,n){"use strict";n.r(t);var r=n("98df"),i=n("b338");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("2f90");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"2856e250",null,!1,r["a"],void 0);t["default"]=s.exports},"635b":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("416b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-calendar",on:{mouseleave:function(t){arguments[0]=t=e.$handleEvent(t),e.leaveCale.apply(void 0,arguments)}}},[!e.insert&&e.show?n("v-uni-view",{staticClass:"uni-calendar__mask",class:{"uni-calendar--mask-show":e.aniMaskShow},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clean.apply(void 0,arguments)}}}):e._e(),e.insert||e.show?n("v-uni-view",{staticClass:"uni-calendar__content",class:{"uni-calendar--fixed":!e.insert,"uni-calendar--ani-show":e.aniMaskShow}},[n("v-uni-view",{staticClass:"uni-calendar__header"},[e.left?n("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.pre.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--left"})],1):e._e(),n("v-uni-picker",{attrs:{mode:"date",value:e.date,fields:"month"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindDateChange.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-calendar__header-text"},[e._v(e._s((e.nowDate.year||"")+" / "+(e.nowDate.month||"")))])],1),e.right?n("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.next.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--right"})],1):e._e()],1),n("v-uni-view",{staticClass:"uni-calendar__box"},[e.showMonth?n("v-uni-view",{staticClass:"uni-calendar__box-bg"},[n("v-uni-text",{staticClass:"uni-calendar__box-bg-text"},[e._v(e._s(e.nowDate.month))])],1):e._e(),n("v-uni-view",{staticClass:"uni-calendar__weeks"},[n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.SUNText))])],1),n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.monText))])],1),n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.TUEText))])],1),n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.WEDText))])],1),n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.THUText))])],1),n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.FRIText))])],1),n("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[n("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[e._v(e._s(e.SATText))])],1)],1),e._l(e.weeks,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-calendar__weeks"},e._l(t,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-calendar__weeks-item"},[n("calendar-item",{staticClass:"uni-calendar-item--hook",attrs:{weeks:t,calendar:e.calendar,selected:e.selected,lunar:e.lunar,checkHover:e.range},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.choiceDate.apply(void 0,arguments)},handleMouse:function(t){arguments[0]=t=e.$handleEvent(t),e.handleMouse.apply(void 0,arguments)}}})],1)})),1)}))],2),e.insert||e.range||!e.typeHasTime?e._e():n("v-uni-view",{staticClass:"uni-date-changed uni-calendar--fixed-top",staticStyle:{padding:"0 80px"}},[n("v-uni-view",{staticClass:"uni-date-changed--time-date"},[e._v(e._s(e.tempSingleDate?e.tempSingleDate:e.selectDateText))]),n("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",start:e.reactStartTime,end:e.reactEndTime,disabled:!e.tempSingleDate,border:!1,"hide-second":e.hideSecond},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1),!e.insert&&e.range&&e.typeHasTime?n("v-uni-view",{staticClass:"uni-date-changed uni-calendar--fixed-top"},[n("v-uni-view",{staticClass:"uni-date-changed--time-start"},[n("v-uni-view",{staticClass:"uni-date-changed--time-date"},[e._v(e._s(e.tempRange.before?e.tempRange.before:e.startDateText))]),n("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",start:e.reactStartTime,border:!1,"hide-second":e.hideSecond,disabled:!e.tempRange.before},model:{value:e.timeRange.startTime,callback:function(t){e.$set(e.timeRange,"startTime",t)},expression:"timeRange.startTime"}})],1),n("uni-icons",{staticStyle:{"line-height":"50px"},attrs:{type:"arrowthinright",color:"#999"}}),n("v-uni-view",{staticClass:"uni-date-changed--time-end"},[n("v-uni-view",{staticClass:"uni-date-changed--time-date"},[e._v(e._s(e.tempRange.after?e.tempRange.after:e.endDateText))]),n("time-picker",{staticClass:"time-picker-style",attrs:{type:"time",end:e.reactEndTime,border:!1,"hide-second":e.hideSecond,disabled:!e.tempRange.after},model:{value:e.timeRange.endTime,callback:function(t){e.$set(e.timeRange,"endTime",t)},expression:"timeRange.endTime"}})],1)],1):e._e(),e.insert?e._e():n("v-uni-view",{staticClass:"uni-date-changed uni-calendar__header",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-calendar__header-btn-box"},[n("v-uni-text",{staticClass:"uni-calendar__button-text uni-calendar--fixed-width"},[e._v(e._s(e.okText))])],1)],1)],1):e._e()],1)},a=[]},"643a":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("416b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-date"},[n("v-uni-view",{staticClass:"uni-date-editor",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.show.apply(void 0,arguments)}}},[e._t("default",[n("v-uni-view",{staticClass:"uni-date-editor--x",class:{"uni-date-editor--x__disabled":e.disabled,"uni-date-x--border":e.border}},[e.isRange?n("v-uni-view",{staticClass:"uni-date-x uni-date-range"},[n("v-uni-view",{staticClass:"uni-date__icon-logo"},[n("v-uni-image",{staticClass:"uni-date-editor--logo",attrs:{src:e.iconBase64,mode:""}})],1),n("v-uni-input",{staticClass:"uni-date__x-input t-c",attrs:{type:"text",placeholder:e.startPlaceholderText,disabled:!0},model:{value:e.range.startDate,callback:function(t){e.$set(e.range,"startDate",t)},expression:"range.startDate"}}),e._t("default",[n("v-uni-view",{},[e._v(e._s(e.rangeSeparator))])]),n("v-uni-input",{staticClass:"uni-date__x-input t-c",attrs:{type:"text",placeholder:e.endPlaceholderText,disabled:!0},model:{value:e.range.endDate,callback:function(t){e.$set(e.range,"endDate",t)},expression:"range.endDate"}})],2):n("v-uni-view",{staticClass:"uni-date-x uni-date-single"},[n("v-uni-view",{staticClass:"uni-date__icon-logo"},[n("v-uni-image",{staticClass:"uni-date-editor--logo",attrs:{src:e.iconBase64,mode:""}})],1),n("v-uni-input",{staticClass:"uni-date__x-input",attrs:{type:"text",placeholder:e.singlePlaceholderText,disabled:!0},model:{value:e.singleVal,callback:function(t){e.singleVal=t},expression:"singleVal"}})],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.clearIcon&&!e.disabled&&(e.singleVal||e.range.startDate&&e.range.endDate),expression:"clearIcon && !disabled && (singleVal || (range.startDate && range.endDate))"}],staticClass:"uni-date__icon-clear",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[n("uni-icons",{attrs:{type:"clear",color:"#e1e1e1",size:"14"}})],1)],1)])],2),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.popup,expression:"popup"}],staticClass:"uni-date-mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}}),e.isPhone?e._e():n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.popup,expression:"popup"}],ref:"datePicker",staticClass:"uni-date-picker__container"},[e.isRange?n("v-uni-view",{staticClass:"uni-date-range--x",style:e.popover},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.hasTime,expression:"hasTime"}],staticClass:"popup-x-header uni-date-changed"},[n("v-uni-view",{staticClass:"popup-x-header--datetime"},[n("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.startDateText},model:{value:e.tempRange.startDate,callback:function(t){e.$set(e.tempRange,"startDate",t)},expression:"tempRange.startDate"}}),n("time-picker",{attrs:{type:"time",start:e.reactStartTime,border:!1,disabled:!e.tempRange.startDate,hideSecond:e.hideSecond},model:{value:e.tempRange.startTime,callback:function(t){e.$set(e.tempRange,"startTime",t)},expression:"tempRange.startTime"}},[n("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.startTimeText,disabled:!e.tempRange.startDate},model:{value:e.tempRange.startTime,callback:function(t){e.$set(e.tempRange,"startTime",t)},expression:"tempRange.startTime"}})],1)],1),n("uni-icons",{staticStyle:{"line-height":"40px"},attrs:{type:"arrowthinright",color:"#999"}}),n("v-uni-view",{staticClass:"popup-x-header--datetime"},[n("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.endDateText},model:{value:e.tempRange.endDate,callback:function(t){e.$set(e.tempRange,"endDate",t)},expression:"tempRange.endDate"}}),n("time-picker",{attrs:{type:"time",end:e.reactEndTime,border:!1,disabled:!e.tempRange.endDate,hideSecond:e.hideSecond},model:{value:e.tempRange.endTime,callback:function(t){e.$set(e.tempRange,"endTime",t)},expression:"tempRange.endTime"}},[n("v-uni-input",{staticClass:"uni-date__input uni-date-range__input",attrs:{type:"text",placeholder:e.endTimeText,disabled:!e.tempRange.endDate},model:{value:e.tempRange.endTime,callback:function(t){e.$set(e.tempRange,"endTime",t)},expression:"tempRange.endTime"}})],1)],1)],1),n("v-uni-view",{staticClass:"popup-x-body"},[n("calendar",{ref:"left",staticClass:"uni-date_calendar-pc",attrs:{showMonth:!1,"start-date":e.caleRange.startDate,"end-date":e.caleRange.endDate,range:!0,pleStatus:e.endMultipleStatus},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.leftChange.apply(void 0,arguments)},firstEnterCale:function(t){arguments[0]=t=e.$handleEvent(t),e.updateRightCale.apply(void 0,arguments)},monthSwitch:function(t){arguments[0]=t=e.$handleEvent(t),e.leftMonthSwitch.apply(void 0,arguments)}}}),n("calendar",{ref:"right",staticClass:"uni-date_calendar-pc",staticStyle:{"border-left":"1px solid #F1F1F1"},attrs:{showMonth:!1,"start-date":e.caleRange.startDate,"end-date":e.caleRange.endDate,range:!0,pleStatus:e.startMultipleStatus},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.rightChange.apply(void 0,arguments)},firstEnterCale:function(t){arguments[0]=t=e.$handleEvent(t),e.updateLeftCale.apply(void 0,arguments)},monthSwitch:function(t){arguments[0]=t=e.$handleEvent(t),e.rightMonthSwitch.apply(void 0,arguments)}}})],1),e.hasTime?n("v-uni-view",{staticClass:"popup-x-footer"},[n("v-uni-text",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e._v(e._s(e.clearText))]),n("v-uni-text",{staticClass:"confirm",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmRangeChange.apply(void 0,arguments)}}},[e._v(e._s(e.okText))])],1):e._e()],1):n("v-uni-view",{staticClass:"uni-date-single--x",style:e.popover},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.hasTime,expression:"hasTime"}],staticClass:"uni-date-changed popup-x-header"},[n("v-uni-input",{staticClass:"uni-date__input t-c",attrs:{type:"text",placeholder:e.selectDateText},model:{value:e.tempSingleDate,callback:function(t){e.tempSingleDate=t},expression:"tempSingleDate"}}),n("time-picker",{staticStyle:{width:"100%"},attrs:{type:"time",border:!1,disabled:!e.tempSingleDate,start:e.reactStartTime,end:e.reactEndTime,hideSecond:e.hideSecond},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}},[n("v-uni-input",{staticClass:"uni-date__input t-c",attrs:{type:"text",placeholder:e.selectTimeText,disabled:!e.tempSingleDate},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1),n("calendar",{ref:"pcSingle",staticClass:"uni-date_calendar-pc",attrs:{showMonth:!1,"start-date":e.caleRange.startDate,"end-date":e.caleRange.endDate,date:e.defSingleDate},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.singleChange.apply(void 0,arguments)}}}),e.hasTime?n("v-uni-view",{staticClass:"popup-x-footer"},[n("v-uni-text",{staticClass:"confirm",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmSingleChange.apply(void 0,arguments)}}},[e._v(e._s(e.okText))])],1):e._e(),n("v-uni-view",{staticClass:"uni-date-popper__arrow"})],1)],1),e.isPhone?n("calendar",{ref:"mobile",attrs:{clearDate:!1,date:e.defSingleDate,defTime:e.reactMobDefTime,"start-date":e.caleRange.startDate,"end-date":e.caleRange.endDate,selectableTimes:e.mobSelectableTime,pleStatus:e.endMultipleStatus,showMonth:!1,range:e.isRange,typeHasTime:e.hasTime,insert:!1,hideSecond:e.hideSecond},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.mobileChange.apply(void 0,arguments)}}}):e._e()],1)},a=[]},6694:function(e,t,n){"use strict";n.r(t);var r=n("ec4a"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},6722:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-easyinput[data-v-03de91c8]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-03de91c8]{flex:1;width:100%;display:flex;box-sizing:border-box;min-height:36px;flex-direction:row;align-items:center}.uni-easyinput__content-input[data-v-03de91c8]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px}.is-textarea[data-v-03de91c8]{align-items:flex-start}.is-textarea-icon[data-v-03de91c8]{margin-top:5px}.uni-easyinput__content-textarea[data-v-03de91c8]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;padding-top:6px;padding-bottom:10px;height:80px;min-height:80px;width:auto}.input-padding[data-v-03de91c8]{padding-left:10px}.content-clear-icon[data-v-03de91c8]{padding:0 5px}.label-icon[data-v-03de91c8]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-03de91c8]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #c8c7cc;border-radius:4px}.is-required[data-v-03de91c8]{color:#dd524d}.uni-error-message[data-v-03de91c8]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#dd524d;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-03de91c8]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-03de91c8]{border-color:#dd524d}.uni-easyinput--border[data-v-03de91c8]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-03de91c8]{padding-bottom:0}.is-first-border[data-v-03de91c8]{border:none}.is-disabled[data-v-03de91c8]{background-color:#eee}',""]),e.exports=t},"67b6":function(e,t,n){"use strict";var r=n("58a8").start,i=n("c8d2");e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},"6d80":function(e,t,n){"use strict";n.r(t);var r=n("c46b"),i=n("5e0d");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("7eb1");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"58947a61",null,!1,r["a"],void 0);t["default"]=s.exports},7007:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("ac1f"),n("5319");var i=r(n("3835")),a=r(n("d308")),o=r(n("6d80")),s=r(n("78ed")),c=n("37dc"),l=r(n("082c")),d=(0,c.initVueI18n)(l.default),u=d.t,f={components:{calendarItem:o.default,timePicker:s.default},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:function(){return{}}},selected:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1},startDate:{type:String,default:""},endDate:{type:String,default:""},range:{type:Boolean,default:!1},typeHasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},left:{type:Boolean,default:!0},right:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:function(){return{before:"",after:"",data:[],fulldate:""}}}},data:function(){return{show:!1,weeks:[],calendar:{},nowDate:"",aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}},watch:{date:{immediate:!0,handler:function(e,t){var n=this;this.range||(this.tempSingleDate=e,setTimeout((function(){n.init(e)}),100))}},defTime:{immediate:!0,handler:function(e,t){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate:function(e){this.cale.resetSatrtDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks},endDate:function(e){this.cale.resetEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks},selected:function(e){this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks},pleStatus:{immediate:!0,handler:function(e,t){var n=this,r=e.before,i=e.after,a=e.fulldate,o=e.which;this.tempRange.before=r,this.tempRange.after=i,setTimeout((function(){if(a)if(n.cale.setHoverMultiple(a),r&&i){if(n.cale.lastHover=!0,n.rangeWithinMonth(i,r))return;n.setDate(r)}else n.cale.setMultiple(a),n.setDate(n.nowDate.fullDate),n.calendar.fullDate="",n.cale.lastHover=!1;else n.cale.setDefaultMultiple(r,i),"left"===o?(n.setDate(r),n.weeks=n.cale.weeks):(n.setDate(i),n.weeks=n.cale.weeks),n.cale.lastHover=!0}),16)}}},computed:{reactStartTime:function(){var e=this.range?this.tempRange.before:this.calendar.fullDate,t=e===this.startDate?this.selectableTimes.start:"";return t},reactEndTime:function(){var e=this.range?this.tempRange.after:this.calendar.fullDate,t=e===this.endDate?this.selectableTimes.end:"";return t},selectDateText:function(){return u("uni-datetime-picker.selectDate")},startDateText:function(){return this.startPlaceholder||u("uni-datetime-picker.startDate")},endDateText:function(){return this.endPlaceholder||u("uni-datetime-picker.endDate")},okText:function(){return u("uni-datetime-picker.ok")},monText:function(){return u("uni-calender.MON")},TUEText:function(){return u("uni-calender.TUE")},WEDText:function(){return u("uni-calender.WED")},THUText:function(){return u("uni-calender.THU")},FRIText:function(){return u("uni-calender.FRI")},SATText:function(){return u("uni-calender.SAT")},SUNText:function(){return u("uni-calender.SUN")}},created:function(){this.cale=new a.default({selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.date)},methods:{leaveCale:function(){this.firstEnter=!0},handleMouse:function(e){if(!e.disable&&!this.cale.lastHover){var t=this.cale.multipleStatus,n=t.before;t.after;n&&(this.calendar=e,this.cale.setHoverMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.firstEnter&&(this.$emit("firstEnterCale",this.cale.multipleStatus),this.firstEnter=!1))}},rangeWithinMonth:function(e,t){var n=e.split("-"),r=(0,i.default)(n,2),a=r[0],o=r[1],s=t.split("-"),c=(0,i.default)(s,2),l=c[0],d=c[1];return a===l&&o===d},clean:function(){this.close()},clearCalender:function(){this.range?(this.timeRange.startTime="",this.timeRange.endTime="",this.tempRange.before="",this.tempRange.after="",this.cale.multipleStatus.before="",this.cale.multipleStatus.after="",this.cale.multipleStatus.data=[],this.cale.lastHover=!1):(this.time="",this.tempSingleDate=""),this.calendar.fullDate="",this.setDate()},bindDateChange:function(e){var t=e.detail.value+"-1";this.init(t)},init:function(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(e)},open:function(){var e=this;this.clearDate&&!this.insert&&(this.cale.cleanMultipleStatus(),this.init(this.date)),this.show=!0,this.$nextTick((function(){setTimeout((function(){e.aniMaskShow=!0}),50)}))},close:function(){var e=this;this.aniMaskShow=!1,this.$nextTick((function(){setTimeout((function(){e.show=!1,e.$emit("close")}),300)}))},confirm:function(){this.setEmit("confirm"),this.close()},change:function(){this.insert&&this.setEmit("change")},monthSwitch:function(){var e=this.nowDate,t=e.year,n=e.month;this.$emit("monthSwitch",{year:t,month:Number(n)})},setEmit:function(e){var t=this.calendar,n=t.year,r=t.month,i=t.date,a=t.fullDate,o=t.lunar,s=t.extraInfo;this.$emit(e,{range:this.cale.multipleStatus,year:n,month:r,date:i,time:this.time,timeRange:this.timeRange,fulldate:a,lunar:o,extraInfo:s||{}})},choiceDate:function(e){e.disable||(this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate,this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after,this.change())},backtoday:function(){var e=this.cale.getDate(new Date).fullDate;this.init(e),this.change()},dateCompare:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e<=t},pre:function(){var e=this.cale.getDate(this.nowDate.fullDate,-1,"month").fullDate;this.setDate(e),this.monthSwitch()},next:function(){var e=this.cale.getDate(this.nowDate.fullDate,1,"month").fullDate;this.setDate(e),this.monthSwitch()},setDate:function(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};t.default=f},"703f":function(e,t,n){var r=n("2d2e");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("b675f014",r,!0,{sourceMap:!1,shadowMode:!1})},"722d":function(e,t,n){"use strict";n.r(t);var r=n("ab1d"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"75bb":function(e,t,n){"use strict";n.r(t);var r=n("99cf"),i=n("5fae");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("3b1f");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"350e8d74",null,!1,r["a"],void 0);t["default"]=s.exports},7735:function(e,t,n){"use strict";var r=n("7e06"),i=n.n(r);i.a},7741:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("416b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-collapse-item"},[n("v-uni-view",{staticClass:"uni-collapse-item__title",class:{"is-open":e.isOpen&&"auto"===e.titleBorder,"uni-collapse-item-border":"none"!==e.titleBorder},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick(!e.isOpen)}}},[n("v-uni-view",{staticClass:"uni-collapse-item__title-wrap"},[e._t("title",[n("v-uni-view",{staticClass:"uni-collapse-item__title-box",class:{"is-disabled":e.disabled}},[e.thumb?n("v-uni-image",{staticClass:"uni-collapse-item__title-img",attrs:{src:e.thumb}}):e._e(),n("v-uni-text",{staticClass:"uni-collapse-item__title-text"},[e._v(e._s(e.title))])],1)])],2),e.showArrow?n("v-uni-view",{staticClass:"uni-collapse-item__title-arrow",class:{"uni-collapse-item__title-arrow-active":e.isOpen,"uni-collapse-item--animation":!0===e.showAnimation}},[n("uni-icons",{attrs:{color:e.disabled?"#ddd":"#bbb",size:"14",type:"bottom"}})],1):e._e()],1),n("v-uni-view",{staticClass:"uni-collapse-item__wrap",class:{"is--transition":e.showAnimation},style:{height:(e.isOpen?e.height:0)+"px"}},[n("v-uni-view",{ref:"collapse--hook",staticClass:"uni-collapse-item__wrap-content",class:{open:e.isheight,"uni-collapse-item--border":e.border&&e.isOpen},attrs:{id:e.elId}},[e._t("default")],2)],1)],1)},a=[]},"780d":function(e,t,n){"use strict";n.r(t);var r=n("e757"),i=n("39cb");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"c9811fc2",null,!1,r["a"],void 0);t["default"]=s.exports},"78ba":function(e,t,n){var r=n("4511");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("2857f7a1",r,!0,{sourceMap:!1,shadowMode:!1})},"78ed":function(e,t,n){"use strict";n.r(t);var r=n("8163"),i=n("593d");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("db67");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"0442256a",null,!1,r["a"],void 0);t["default"]=s.exports},"79ce":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* 根节点样式 */._root[data-v-2856e250]{padding:1px 0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}\r\n/* 长按复制 */._select[data-v-2856e250]{-webkit-user-select:text;user-select:text}\r\n",""]),e.exports=t},"7a87":function(e,t,n){"use strict";n.r(t);var r=n("3346"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"7cae":function(e,t,n){"use strict";var r=n("cc72"),i=n.n(r);i.a},"7cb5":function(e,t,n){"use strict";var r=n("703f"),i=n.n(r);i.a},"7d1f":function(e,t,n){"use strict";n.r(t);var r=n("2f4a"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"7e06":function(e,t,n){var r=n("2d55");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("60bf5e46",r,!0,{sourceMap:!1,shadowMode:!1})},"7eb1":function(e,t,n){"use strict";var r=n("e9dc"),i=n.n(r);i.a},"7f17":function(e,t,n){var r=n("3494");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("60451d25",r,!0,{sourceMap:!1,shadowMode:!1})},8163:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-datetime-picker"},[n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.initTimePicker.apply(void 0,arguments)}}},[e._t("default",[n("v-uni-view",{staticClass:"uni-datetime-picker-timebox-pointer",class:{"uni-datetime-picker-disabled":e.disabled,"uni-datetime-picker-timebox":e.border}},[n("v-uni-text",{staticClass:"uni-datetime-picker-text"},[e._v(e._s(e.time))]),e.time?e._e():n("v-uni-view",{staticClass:"uni-datetime-picker-time"},[n("v-uni-text",{staticClass:"uni-datetime-picker-text"},[e._v(e._s(e.selectTimeText))])],1)],1)])],2),e.visible?n("v-uni-view",{staticClass:"uni-datetime-picker-mask",attrs:{id:"mask"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tiggerTimePicker.apply(void 0,arguments)}}}):e._e(),e.visible?n("v-uni-view",{staticClass:"uni-datetime-picker-popup",class:[e.dateShow&&e.timeShow?"":"fix-nvue-height"],style:e.fixNvueBug},[n("v-uni-view",{staticClass:"uni-title"},[n("v-uni-text",{staticClass:"uni-datetime-picker-text"},[e._v(e._s(e.selectTimeText))])],1),e.dateShow?n("v-uni-view",{staticClass:"uni-datetime-picker__container-box"},[n("v-uni-picker-view",{staticClass:"uni-datetime-picker-view",attrs:{"indicator-style":e.indicatorStyle,value:e.ymd},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindDateChange.apply(void 0,arguments)}}},[n("v-uni-picker-view-column",e._l(e.years,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-datetime-picker-item"},[n("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),n("v-uni-picker-view-column",e._l(e.months,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-datetime-picker-item"},[n("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),n("v-uni-picker-view-column",e._l(e.days,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-datetime-picker-item"},[n("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1)],1),n("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-left"},[e._v("-")]),n("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-right"},[e._v("-")])],1):e._e(),e.timeShow?n("v-uni-view",{staticClass:"uni-datetime-picker__container-box"},[n("v-uni-picker-view",{staticClass:"uni-datetime-picker-view",class:[e.hideSecond?"time-hide-second":""],attrs:{"indicator-style":e.indicatorStyle,value:e.hms},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindTimeChange.apply(void 0,arguments)}}},[n("v-uni-picker-view-column",e._l(e.hours,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-datetime-picker-item"},[n("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),n("v-uni-picker-view-column",e._l(e.minutes,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-datetime-picker-item"},[n("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1),e.hideSecond?e._e():n("v-uni-picker-view-column",e._l(e.seconds,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-datetime-picker-item"},[n("v-uni-text",{staticClass:"uni-datetime-picker-item"},[e._v(e._s(e.lessThanTen(t)))])],1)})),1)],1),n("v-uni-text",{staticClass:"uni-datetime-picker-sign",class:[e.hideSecond?"sign-center":"sign-left"]},[e._v(":")]),e.hideSecond?e._e():n("v-uni-text",{staticClass:"uni-datetime-picker-sign sign-right"},[e._v(":")])],1):e._e(),n("v-uni-view",{staticClass:"uni-datetime-picker-btn"},[n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearTime.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[e._v(e._s(e.clearText))])],1),n("v-uni-view",{staticClass:"uni-datetime-picker-btn-group"},[n("v-uni-view",{staticClass:"uni-datetime-picker-cancel",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tiggerTimePicker.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[e._v(e._s(e.cancelText))])],1),n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.setTime.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"uni-datetime-picker-btn-text"},[e._v(e._s(e.okText))])],1)],1)],1)],1):e._e()],1)},i=[]},"81c1":function(e,t,n){"use strict";var r=n("faf9"),i=n.n(r);i.a},8295:function(e,t,n){"use strict";n.r(t);var r=n("fd6b"),i=n("6694");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("7735");var o=n("f0c5"),s=n("ae80"),c=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"444783d8",null,!1,r["a"],void 0);"function"===typeof s["a"]&&Object(s["a"])(c),t["default"]=c.exports},8432:function(e,t,n){"use strict";n.r(t);var r=n("1bfb"),i=n("b606");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("4574");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"71ba7593",null,!1,r["a"],void 0);t["default"]=s.exports},"845d":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes:function(){var e=this.type,t=this.disabled,n=this.inverted,r=this.circle,i=this.mark,a=this.size,o=this.isTrue,s=["uni-tag--"+e,"uni-tag--"+a,o(t)?"uni-tag--disabled":"",o(n)?"uni-tag--"+e+"--inverted":"",o(r)?"uni-tag--circle":"",o(i)?"uni-tag--mark":"",o(n)?"uni-tag--inverted uni-tag-text--"+e:"","small"===a?"uni-tag-text--small":""];return s.join(" ")}},methods:{isTrue:function(e){return!0===e||"true"===e},onClick:function(){this.isTrue(this.disabled)||this.$emit("click")}}};t.default=r},8490:function(e,t,n){"use strict";var r=n("3219"),i=n.n(r);i.a},"87c4":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniIcons:n("416b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-easyinput",class:{"uni-easyinput-error":e.msg},style:{color:e.inputBorder&&e.msg?"#dd524d":e.styles.color}},[n("v-uni-view",{staticClass:"uni-easyinput__content",class:{"is-input-border":e.inputBorder,"is-input-error-border":e.inputBorder&&e.msg,"is-textarea":"textarea"===e.type,"is-disabled":e.disabled},style:{"border-color":e.inputBorder&&e.msg?"#dd524d":e.styles.borderColor,"background-color":e.disabled?e.styles.disableColor:""}},[e.prefixIcon?n("uni-icons",{staticClass:"content-clear-icon",attrs:{type:e.prefixIcon,color:"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClickIcon("prefix")}}}):e._e(),"textarea"===e.type?n("v-uni-textarea",{staticClass:"uni-easyinput__content-textarea",class:{"input-padding":e.inputBorder},attrs:{name:e.name,value:e.val,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled,maxlength:e.inputMaxlength,focus:e.focused,autoHeight:e.autoHeight},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onBlur.apply(void 0,arguments)},focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}):n("v-uni-input",{staticClass:"uni-easyinput__content-input",style:{"padding-right":"password"===e.type||e.clearable||e.prefixIcon?"":"10px","padding-left":e.prefixIcon?"":"10px"},attrs:{type:"password"===e.type?"text":e.type,name:e.name,value:e.val,password:!e.showPassword&&"password"===e.type,placeholder:e.placeholder,placeholderStyle:e.placeholderStyle,disabled:e.disabled,maxlength:e.inputMaxlength,focus:e.focused},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.onFocus.apply(void 0,arguments)},blur:function(t){arguments[0]=t=e.$handleEvent(t),e.onBlur.apply(void 0,arguments)},input:function(t){arguments[0]=t=e.$handleEvent(t),e.onInput.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.onConfirm.apply(void 0,arguments)}}}),"password"===e.type?[""!=e.val?n("uni-icons",{staticClass:"content-clear-icon",class:{"is-textarea-icon":"textarea"===e.type},attrs:{type:e.showPassword?"eye-slash-filled":"eye-filled",size:18,color:"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onEyes.apply(void 0,arguments)}}}):e._e()]:e.suffixIcon?[e.suffixIcon?n("uni-icons",{staticClass:"content-clear-icon",attrs:{type:e.suffixIcon,color:"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClickIcon("suffix")}}}):e._e()]:[e.clearable&&e.val?n("uni-icons",{staticClass:"content-clear-icon",class:{"is-textarea-icon":"textarea"===e.type},attrs:{type:"clear",size:e.clearSize,color:"#c0c4cc"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClear.apply(void 0,arguments)}}}):e._e()],e._t("right")],2)],1)},a=[]},"8a53":function(e,t,n){"use strict";n.r(t);var r=n("4ba5"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"8a79":function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),a=n("06cf").f,o=n("50c4"),s=n("577e"),c=n("5a34"),l=n("1d80"),d=n("ab13"),u=n("c430"),f=i("".endsWith),p=i("".slice),h=Math.min,m=d("endsWith"),v=!u&&!m&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!m},{endsWith:function(e){var t=s(l(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:h(o(n),r),a=s(e);return f?f(t,a,i):p(t,i-a.length,i)===a}})},"8e50":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六"}')},"91a3":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'uni-page-body[data-v-01f70fa8]{background-color:#eef0f6}body.?%PAGE?%[data-v-01f70fa8]{background-color:#eef0f6}.flyAvatar[data-v-01f70fa8]{display:inline-block;box-sizing:border-box;text-align:center;color:#fff;background:#c0c4cc;width:40px;height:40px;line-height:40px;border-radius:50%;margin-top:5px}.chatContent .chatImagePic[data-v-01f70fa8]{max-width:100%!important;display:inline-block}.chatUser[data-v-01f70fa8]{line-height:24px;font-size:12px;white-space:nowrap;color:#999;text-align:left}.chatLittle[data-v-01f70fa8]{width:12.5%;float:left}.chatBig[data-v-01f70fa8]{width:87.5%;float:right}.chatBox[data-v-01f70fa8]{padding:0 4px}.chatContent a[data-v-01f70fa8]{text-decoration:none}.chatBoxMe .chatContent[data-v-01f70fa8]{float:right;background-color:#c9e7ff}.chatBoxMe .chatContent[data-v-01f70fa8]:after{border-top-color:#98e165}.chatBoxMe .chatLittle[data-v-01f70fa8]{width:12.5%;float:right;text-align:right}.chatBoxMe .chatUser[data-v-01f70fa8]{text-align:right}.chatBoxMe .chatContent[data-v-01f70fa8]:after{left:auto;right:-10px}.chatContent[data-v-01f70fa8]{background-color:#fff;color:#000;border:1px solid #f2f2f2;padding:5px 7px;word-break:break-all;position:relative;border-radius:5px;display:inline-block;margin:0 4px;font-size:13px;line-height:23px}.chatBoxMe .chatContent[data-v-01f70fa8]{margin-right:4px}.chatTime[data-v-01f70fa8]{text-align:center;color:#bbb;margin:5px 0;font-size:12px}.chatArea[data-v-01f70fa8]{width:100%;height:70px;padding:2px 5px;background:#fff;font-size:13px;line-height:24px}.btnArea[data-v-01f70fa8]{position:absolute;right:5px;bottom:10px;z-index:2;background:linear-gradient(90deg,#3875ea,#1890fc)}.btnArea uni-button[data-v-01f70fa8]{width:55px;height:40px;line-height:40px;text-align:center;font-size:13px}.chatBoxSendIcons[data-v-01f70fa8]{\n/* \t\tposition: absolute;\n\t\tleft: 2px;\n\t\tbottom: 2px; */}.chatBoxSendIcons .mr-10[data-v-01f70fa8]{margin:0 5px 0 10px}.visitorFaceBox[data-v-01f70fa8]{position:absolute;bottom:70px}.chatBoxSend[data-v-01f70fa8]{background:#fff;height:140px;position:fixed;bottom:0;left:0;width:100%;border-top:1px solid #e4e4e4;padding-top:5px}.chatContext[data-v-01f70fa8]{text-align:left;position:relative;padding:10px;padding-bottom:150px;padding-top:10px}.visitorNotice[data-v-01f70fa8]{position:fixed;z-index:9}.visitorNotice .uni-table[data-v-01f70fa8]{background-color:#f5f5f5}.visitorNotice .uni-table-td[data-v-01f70fa8]{margin-top:10px;font-size:12px;color:#6c6c6c;padding:5px 10px}.inputing[data-v-01f70fa8]{padding:2px 4px;color:#6c6c6c;font-size:12px;position:absolute;top:-20px}.folderBtn[data-v-01f70fa8]{display:inline-block;background-color:initial;overflow:hidden;font-size:1px}.folderBtn[data-v-01f70fa8]:before{content:"";float:left;background-color:#9da0a0;width:15px;height:3px;margin-left:2px;border-top-left-radius:2px;border-top-right-radius:2px;box-shadow:2px 2px 0 0 #9da0a0}.folderBtn[data-v-01f70fa8]:after{content:"";float:left;clear:left;background-color:#d4d6d6;width:33px;height:22px;border-radius:1px}.remarkDialog[data-v-01f70fa8]{padding:10px}.replyDialog[data-v-01f70fa8]{max-width:100%;height:500px}.overflowYauto[data-v-01f70fa8]{overflow-y:auto}.replyTitle[data-v-01f70fa8]{color:#333;font-size:14px;background:#e3e3e3;padding:5px 7px}.replyContent[data-v-01f70fa8]{padding:20px}.replyBox[data-v-01f70fa8]{margin:10px 15px;line-height:22px;border:1px solid #e6e6e6}.clear[data-v-01f70fa8]{clear:both}.area[data-v-01f70fa8]{border:1px solid #c8c7cc;padding:2px}.chatReadStatus[data-v-01f70fa8]{font-size:12px;color:#7f7f7f;margin:8px 5px 0 0;float:right}.deleteMessage[data-v-01f70fa8]{font-size:12px;color:#00a7ff;margin:8px 5px 0 0;float:right}.faceBox[data-v-01f70fa8]{width:100%;background:#fff;z-index:99999999;position:absolute;bottom:145px}.faceBoxList .faceIcon[data-v-01f70fa8]{cursor:pointer;float:left;border:1px solid #e8e8e8;width:28px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.chatContext .faceiconImg[data-v-01f70fa8]{width:28px!important;height:28px!important}.topBtns[data-v-01f70fa8]{display:flex;flex-direction:row;align-items:center}.topBtns .txtBtn[data-v-01f70fa8]{line-height:2;font-size:12px;padding:0 .8em;margin:0 5px 0 4px}.fastReplyBox[data-v-01f70fa8]{position:fixed;bottom:0;left:0;right:0;z-index:999;height:100%;background:#fff;overflow:auto}.recorderBox[data-v-01f70fa8]{padding:10px;display:flex;flex-direction:column}.recorderBtn[data-v-01f70fa8]{margin:10px 20px}.remoteVideoMask[data-v-01f70fa8]{width:100%;height:100%;position:fixed;z-index:9999999;left:0;top:0;background:#333}.remoteVideoMaskLogo[data-v-01f70fa8]{width:60px;height:60px;position:absolute;border-radius:5px;z-index:9;top:60px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.refuse[data-v-01f70fa8]{bottom:60px;position:fixed;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);display:inline-block;width:60px;height:60px;color:#fff;background-color:#f56c6c;border-color:#f56c6c;text-align:center;line-height:60px;border-radius:50%}.emojis[data-v-01f70fa8]{background-color:#fff;display:flex;flex-wrap:wrap;height:160px;overflow:auto;font-size:20px}.emojis span[data-v-01f70fa8]{display:block;margin:5px;cursor:pointer}',""]),e.exports=t},"93e8":function(e,t,n){"use strict";n.r(t);var r=n("635b"),i=n("e2de");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("5dc3");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"f8ef3a90",null,!1,r["a"],void 0);t["default"]=s.exports},"98df":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{class:(e.selectable?"_select ":"")+"_root",style:e.containerStyle,attrs:{id:"_root"}},[e.nodes[0]?n("node",{attrs:{childs:e.nodes,opts:[e.lazyLoad,e.loadingImg,e.errorImg,e.showImgMenu],name:"span"}}):e._t("default")],2)},i=[]},"99b5":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("53ca"));n("a9e3"),n("e25e"),n("ac1f"),n("00b4"),n("14d9"),n("fb6a"),n("c975"),n("5319");var a=r(n("b021")),o=n("37dc"),s=r(n("082c")),c=(0,o.initVueI18n)(s.default),l=c.t,d={name:"UniDatetimePicker",components:{keypress:a.default},data:function(){return{indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{value:{handler:function(e,t){e?(this.parseValue(this.fixIosDateFormat(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler:function(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler:function(e){this.parseDatetimeRange(this.fixIosDateFormat(e),"start")},immediate:!0},end:{handler:function(e){this.parseDatetimeRange(this.fixIosDateFormat(e),"end")},immediate:!0},months:function(e){this.checkValue("month",this.month,e)},days:function(e){this.checkValue("day",this.day,e)},hours:function(e){this.checkValue("hour",this.hour,e)},minutes:function(e){this.checkValue("minute",this.minute,e)},seconds:function(e){this.checkValue("second",this.second,e)}},computed:{years:function(){return this.getCurrentRange("year")},months:function(){return this.getCurrentRange("month")},days:function(){return this.getCurrentRange("day")},hours:function(){return this.getCurrentRange("hour")},minutes:function(){return this.getCurrentRange("minute")},seconds:function(){return this.getCurrentRange("second")},ymd:function(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms:function(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart:function(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd:function(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear:function(){return this.startYear},maxYear:function(){return this.endYear},minMonth:function(){return this.year===this.startYear?this.startMonth:1},maxMonth:function(){return this.year===this.endYear?this.endMonth:12},minDay:function(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay:function(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour:function(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour:function(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute:function(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute:function(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond:function(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond:function(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:function(){return l("uni-datetime-picker.selectTime")},okText:function(){return l("uni-datetime-picker.ok")},clearText:function(){return l("uni-datetime-picker.clear")},cancelText:function(){return l("uni-datetime-picker.cancel")}},mounted:function(){},methods:{lessThanTen:function(e){return e<10?"0"+e:e},parseTimeType:function(e){if(e){var t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue:function(e){var t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd:function(e,t,n){var r=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),r=t&&n?e<t?new Date(t):e>n?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),r},superTimeStamp:function(e){var t="";if("time"===this.type&&e&&"string"===typeof e){var n=new Date,r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate();t=r+"/"+a+"/"+o+" "}return Number(e)&&NaN!==(0,i.default)(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue:function(e){if(e){if("time"===this.type&&"string"===typeof e)this.parseTimeType(e);else{var t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange:function(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){var n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&NaN!==Number(e)&&(e=parseInt(e));"datetime"!==this.type||"end"!==t||"string"!==typeof e||/[0-9]:[0-9]/.test(e)||(e+=" 23:59:59");var r=new Date(e);this[t+"Year"]=r.getFullYear(),this[t+"Month"]=r.getMonth()+1,this[t+"Day"]=r.getDate(),"datetime"===this.type&&(this[t+"Hour"]=r.getHours(),this[t+"Minute"]=r.getMinutes(),this[t+"Second"]=r.getSeconds())}},getCurrentRange:function(e){for(var t=[],n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},checkValue:function(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:function(e,t){return new Date(e,t,0).getDate()},fixIosDateFormat:function(e){return"string"===typeof e&&(e=e.replace(/-/g,"/")),e},createTimeStamp:function(e){if(e)return"number"===typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting:function(){var e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day),t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange:function(e){var t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange:function(e){var t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker:function(){if(!this.disabled){var e=this.fixIosDateFormat(this.value);this.initPickerValue(e),this.visible=!this.visible}},tiggerTimePicker:function(e){this.visible=!this.visible},clearTime:function(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime:function(){this.initTime(),this.tiggerTimePicker()}}};t.default=d},"99cf":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.text?n("v-uni-text",{staticClass:"uni-tag",class:e.classes,style:e.customStyle,on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick.apply(void 0,arguments)}}},[e._v(e._s(e.text))]):e._e()},i=[]},"9b85":function(e,t,n){"use strict";n.r(t);var r=n("7741"),i=n("ad8c");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("d6e5");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"335e5506",null,!1,r["a"],void 0);t["default"]=s.exports},"9dbe":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d401"),n("d3b7"),n("25f0"),n("e25e");var r={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(e){var t,n=348;for(t=32768;t>8;t>>=1)n+=this.lunarInfo[e-1900]&t?1:0;return n+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var n=t-1;return 1==n?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[n]},toGanZhiYear:function(e){var t=(e-3)%10,n=(e-3)%12;return 0==t&&(t=10),0==n&&(n=12),this.Gan[t-1]+this.Zhi[n-1]},toAstro:function(e,t){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*e-(t<[20,19,21,21,21,22,23,23,23,23,22,22][e-1]?2:0),2)+"座"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var n=this.sTermInfo[e-1900],r=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],i=[r[0].substr(0,1),r[0].substr(1,2),r[0].substr(3,1),r[0].substr(4,2),r[1].substr(0,1),r[1].substr(1,2),r[1].substr(3,1),r[1].substr(4,2),r[2].substr(0,1),r[2].substr(1,2),r[2].substr(3,1),r[2].substr(4,2),r[3].substr(0,1),r[3].substr(1,2),r[3].substr(3,1),r[3].substr(4,2),r[4].substr(0,1),r[4].substr(1,2),r[4].substr(3,1),r[4].substr(4,2),r[5].substr(0,1),r[5].substr(1,2),r[5].substr(3,1),r[5].substr(4,2)];return parseInt(i[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月",t},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,n){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&n<31)return-1;if(e)r=new Date(e,parseInt(t)-1,n);else var r=new Date;var i,a=0,o=(e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate(),(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&o>0;i++)a=this.lYearDays(i),o-=a;o<0&&(o+=a,i--);var s=new Date,c=!1;s.getFullYear()==e&&s.getMonth()+1==t&&s.getDate()==n&&(c=!0);var l=r.getDay(),d=this.nStr1[l];0==l&&(l=7);var u=i,f=this.leapMonth(i),p=!1;for(i=1;i<13&&o>0;i++)f>0&&i==f+1&&0==p?(--i,p=!0,a=this.leapDays(u)):a=this.monthDays(u,i),1==p&&i==f+1&&(p=!1),o-=a;0==o&&f>0&&i==f+1&&(p?p=!1:(p=!0,--i)),o<0&&(o+=a,--i);var h=i,m=o+1,v=t-1,b=this.toGanZhiYear(u),g=this.getTerm(e,2*t-1),y=this.getTerm(e,2*t),_=this.toGanZhi(12*(e-1900)+t+11);n>=g&&(_=this.toGanZhi(12*(e-1900)+t+12));var x=!1,k=null;g==n&&(x=!0,k=this.solarTerm[2*t-2]),y==n&&(x=!0,k=this.solarTerm[2*t-1]);var w=Date.UTC(e,v,1,0,0,0,0)/864e5+25567+10,C=this.toGanZhi(w+n-1),T=this.toAstro(t,n);return{lYear:u,lMonth:h,lDay:m,Animal:this.getAnimal(u),IMonthCn:(p?"闰":"")+this.toChinaMonth(h),IDayCn:this.toChinaDay(m),cYear:e,cMonth:t,cDay:n,gzYear:b,gzMonth:_,gzDay:C,isToday:c,isLeap:p,nWeek:l,ncWeek:"星期"+d,isTerm:x,Term:k,astro:T}},lunar2solar:function(e,t,n,r){r=!!r;var i=this.leapMonth(e);this.leapDays(e);if(r&&i!=t)return-1;if(2100==e&&12==t&&n>1||1900==e&&1==t&&n<31)return-1;var a=this.monthDays(e,t),o=a;if(r&&(o=this.leapDays(e,t)),e<1900||e>2100||n>o)return-1;for(var s=0,c=1900;c<e;c++)s+=this.lYearDays(c);var l=0,d=!1;for(c=1;c<t;c++)l=this.leapMonth(e),d||l<=c&&l>0&&(s+=this.leapDays(e),d=!0),s+=this.monthDays(e,c);r&&(s+=a);var u=Date.UTC(1900,1,30,0,0,0),f=new Date(864e5*(s+n-31)+u),p=f.getUTCFullYear(),h=f.getUTCMonth()+1,m=f.getUTCDate();return this.solar2lunar(p,h,m)}},i=r;t.default=i},"9fea":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-table-scroll[data-v-146b5f3c]{width:100%;overflow-x:auto}.uni-table[data-v-146b5f3c]{position:relative;width:100%;border-radius:5px;background-color:#fff;box-sizing:border-box;display:table;overflow-x:auto}.uni-table[data-v-146b5f3c] .uni-table-tr:nth-child(n + 2):hover{background-color:#f5f7fa}.uni-table[data-v-146b5f3c] .uni-table-thead .uni-table-tr:hover{background-color:#fafafa}.table--border[data-v-146b5f3c]{border:1px #ebeef5 solid;border-right:none}.border-none[data-v-146b5f3c]{border-bottom:none}.table--stripe[data-v-146b5f3c] .uni-table-tr:nth-child(2n + 3){background-color:#fafafa}\r\n/* 表格加载、无数据样式 */.uni-table-loading[data-v-146b5f3c]{position:relative;display:table-row;height:50px;line-height:50px;overflow:hidden;box-sizing:border-box}.empty-border[data-v-146b5f3c]{border-right:1px #ebeef5 solid}.uni-table-text[data-v-146b5f3c]{position:absolute;right:0;left:0;text-align:center;font-size:14px;color:#999}.uni-table-mask[data-v-146b5f3c]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:hsla(0,0%,100%,.8);z-index:99;display:flex;margin:auto;transition:all .5s;justify-content:center;align-items:center}.uni-table--loader[data-v-146b5f3c]{width:30px;height:30px;border:2px solid #aaa;border-radius:50%;-webkit-animation:2s uni-table--loader-data-v-146b5f3c linear infinite;animation:2s uni-table--loader-data-v-146b5f3c linear infinite;position:relative}@-webkit-keyframes uni-table--loader-data-v-146b5f3c{0%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}10%{border-left-color:transparent}20%{border-bottom-color:transparent}30%{border-right-color:transparent}40%{border-top-color:transparent}50%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{border-top-color:transparent}70%{border-left-color:transparent}80%{border-bottom-color:transparent}90%{border-right-color:transparent}100%{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@keyframes uni-table--loader-data-v-146b5f3c{0%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}10%{border-left-color:transparent}20%{border-bottom-color:transparent}30%{border-right-color:transparent}40%{border-top-color:transparent}50%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}60%{border-top-color:transparent}70%{border-left-color:transparent}80%{border-bottom-color:transparent}90%{border-right-color:transparent}100%{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}',""]),e.exports=t},ab1d:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("c7eb")),a=r(n("1da1"));n("14d9"),n("ac1f"),n("5319"),n("3c65"),n("498a"),n("e9c4"),n("a434"),n("d401"),n("d3b7"),n("25f0");var o=r(n("81b7")),s=r(n("3242")),c=r(n("780d"));n("3033");var l=getApp(),d={components:{MumuRecorder:c.default},data:function(){return{baseUrl:getApp().globalData.baseUrl,wsBaseUrl:getApp().globalData.wsBaseUrl,kefuInfo:{avator:"",nickname:"",username:""},messages:[],messageContent:"",sendDisabled:!1,token:"",visitor:{},visitor_id:"",visitorExtra:[],visitor_name:"",visitor_ip:"",isDisabled:!1,area:"",showArea:!1,scrollSize:2,showFaceIcon:!1,face:[],faceTitles:["[a]","[b]","[c]","[d]","[e]","[f]","[g]","[h]","[i]","[j]","[k]","[l]","[m]","[n]","[o]","[p]","[q]","[r]","[s]","[t]","[u]","[v]","[w]","[x]","[y]","[z]","[aa]","[bb]","[cc]","[dd]","[ee]","[ff]","[gg]","[hh]","[ii]","[jj]","[kk]","[ll]","[mm]","[nn]","[oo]","[pp]","[qq]","[rr]","[ss]","[tt]","[uu]","[vv]","[ww]","[xx]","[yy]","[zz]","[a1]","[b1]","[good]","[NO]","[c1]","[d1]","[e1]","[f1]","[g1]","[h1]","[i1]","[g1]","[k1]","[l1]","[m1]","[n1]","[o1]","[p1]","[q1]","[cake]"],noticeContent:"通知: 无",currentPage:1,loadMoreDisable:!1,showLoadMore:!1,inputingAction:"",moremessage:"点击加载更多记录",showRecorder:!1,recorder:null,realName:"",tel:"",wechat:"",qq:"",email:"",comment:"",replys:[],ent_replys:[],visitorTags:[],entTags:[],tagName:"",messageExist:[],Loop:null,voicePath:"",visitorProfile:!1,fastReplyBtn:!1,recorderBtn:!1,otherKefuBtn:!1,endRecorderBtn:!0,sendRecorderBtn:!1,remark:!1,otherKefuList:[],robotStatus:!0,peerjs:{peer:null,peerjsId:"",localStream:null,remoteAudioStream:null,remoteVideoStream:null,call:null,visitorId:"",callCancel:!1},searchReplyItem:"",emojis:{smile:"😄",smiley:"😃",grinning:"😀",blush:"😊",wink:"😉",heart_eyes:"😍",kissing_heart:"😘",kissing_closed_eyes:"😚",kissing:"😗",kissing_smiling_eyes:"😙",stuck_out_tongue_winking_eye:"😜",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue:"😛",flushed:"😳",grin:"😁",pensive:"😔",relieved:"😌",unamused:"😒",disappointed:"😞",persevere:"😣",cry:"😢",joy:"😂",sob:"😭",sleepy:"😪",disappointed_relieved:"😥",cold_sweat:"😰",sweat_smile:"😅",sweat:"😓",weary:"😩",tired_face:"😫",fearful:"😨",scream:"😱",angry:"😠",rage:"😡",triumph:"😤",confounded:"😖",laughing:"😆",yum:"😋",mask:"😷",sunglasses:"😎",sleeping:"😴",dizzy_face:"😵",astonished:"😲",worried:"😟",frowning:"😦",anguished:"😧",imp:"👿",open_mouth:"😮",grimacing:"😬",neutral_face:"😐",confused:"😕",hushed:"😯",smirk:"😏",expressionless:"😑",man_with_gua_pi_mao:"👲",man_with_turban:"👳",cop:"👮",construction_worker:"👷",guardsman:"💂",baby:"👶",boy:"👦",girl:"👧",man:"👨",woman:"👩",older_man:"👴",older_woman:"👵",person_with_blond_hair:"👱",angel:"👼",princess:"👸",smiley_cat:"😺",smile_cat:"😸",heart_eyes_cat:"😻",kissing_cat:"😽",smirk_cat:"😼",scream_cat:"🙀",crying_cat_face:"😿",joy_cat:"😹",pouting_cat:"😾",japanese_ogre:"👹",japanese_goblin:"👺",see_no_evil:"🙈",hear_no_evil:"🙉",speak_no_evil:"🙊",skull:"💀",alien:"👽",hankey:"💩",fire:"🔥",sparkles:"✨",star2:"🌟",dizzy:"💫",boom:"💥",anger:"💢",sweat_drops:"💦",droplet:"💧",zzz:"💤",dash:"💨",ear:"👂",eyes:"👀",nose:"👃",tongue:"👅",lips:"👄",thumbs_up:"👍","-1":"👎",ok_hand:"👌",facepunch:"👊",fist:"✊",wave:"👋",hand:"✋",open_hands:"👐",point_up_2:"👆",point_down:"👇",point_right:"👉",point_left:"👈",raised_hands:"🙌",pray:"🙏",clap:"👏",muscle:"💪",walking:"🚶",runner:"🏃",dancer:"💃",couple:"👫",family:"👪",couplekiss:"💏",couple_with_heart:"💑",dancers:"👯",ok_woman:"🙆",no_good:"🙅",information_desk_person:"💁",raising_hand:"🙋",massage:"💆",haircut:"💇",nail_care:"💅",bride_with_veil:"👰",person_with_pouting_face:"🙎",person_frowning:"🙍",bow:"🙇",tophat:"🎩",crown:"👑",womans_hat:"👒",athletic_shoe:"👟",mans_shoe:"👞",sandal:"👡",high_heel:"👠",boot:"👢",shirt:"👕",necktie:"👔",womans_clothes:"👚",dress:"👗",running_shirt_with_sash:"🎽",jeans:"👖",kimono:"👘",bikini:"👙",briefcase:"💼",handbag:"👜",pouch:"👝",purse:"👛",eyeglasses:"👓",ribbon:"🎀",closed_umbrella:"🌂",lipstick:"💄",yellow_heart:"💛",blue_heart:"💙",purple_heart:"💜",green_heart:"💚",broken_heart:"💔",heartpulse:"💗",heartbeat:"💓",two_hearts:"💕",sparkling_heart:"💖",revolving_hearts:"💞",cupid:"💘",love_letter:"💌",kiss:"💋",ring:"💍",gem:"💎",bust_in_silhouette:"👤",speech_balloon:"💬",footprints:"👣"}}},onLoad:function(e){var t=uni.getStorageSync("app");t&&(this.token=t.token);var n=uni.getStorageSync("domain");n&&(this.baseUrl=n.domain,this.wsBaseUrl=o.default.getWsUrl(n.domain)),this.visitor_id=e.visitor_id,this.getKefuInfo(),this.getVisitor(),this.currentPage=1,this.messages=[],this.getMessages()},onShow:function(){this.checkAuth();var e=this.currentPage;this.currentPage=1,this.getMessages(),this.currentPage=e,this.readMessages(),this.initSocket(),this.getFaces()},methods:{initSocket:function(){l.globalData.socketObj?l.globalData.socketObj.isConnect||l.globalData.socketObj.initSocket():(l.globalData.socketObj=new s.default(this.wsBaseUrl+"?token="+this.token,60),l.globalData.socketObj.initSocket())},getVisitor:function(){var e=this.baseUrl,t=this;uni.request({url:e+"/kefu/visitor?visitorId="+this.visitor_id+"&token="+t.token,method:"GET",success:function(e){var n=e.data.code;if(200==n){t.visitor_name=e.data.result.name,t.visitor_ip=e.data.result.client_ip,uni.setNavigationBarTitle({title:t.visitor_name});var r={key:"标题",val:e.data.result.refer};if(t.visitorExtra.push(r),t.visitorExtra.push({key:"IP地址",val:e.data.result.client_ip}),t.visitorExtra.push({key:"城市",val:e.data.result.city}),t.visitorExtra.push({key:"操作系统",val:e.data.os_version}),t.visitorExtra.push({key:"浏览器",val:e.data.browser}),t.visitorExtra.push({key:"首次访问",val:e.data.create_time}),t.visitorExtra.push({key:"上次访问",val:e.data.last_time}),t.visitorExtra.push({key:"访问次数",val:e.data.result.visit_num}),t.visitorExtra.push({key:"同IP访客",val:e.data.same_ip}),t.visitorExtra.push({key:"访客ID",val:t.visitor_id}),t.robotStatus="2"!=e.data.result.state.substr(0,1),t.visitor=e.data.result,e.data.result.extra&&""!=e.data.result.extra){var i=e.data.result.extra.replace(" ","+"),a=o.default.b64DecodeUnicode(i),s=JSON.parse(a);for(var c in console.log(s),"string"==typeof s&&(s=JSON.parse(s)),s)if(""==s[c]&&(s[c]="无"),"visitorAvatar"!=c&&"visitorName"!=c&&"visitorProduct"!=c){r={key:c,val:s[c]};t.visitorExtra.push(r)}}}}})},readMessages:function(){uni.request({url:this.baseUrl+"/kefu/messages_read?token="+this.token,method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},data:{visitor_id:this.visitor_id},success:function(e){}})},getMessages:function(){var e=this;e.loadMoreDisable||(uni.showLoading({title:"加载中..."}),this.moremessage="加载中",this.loadMoreDisable=!0,uni.request({url:this.baseUrl+"/kefu/messages_page",method:"GET",data:{pagesize:10,page:e.currentPage,visitor_id:e.visitor_id,token:e.token},success:function(t){uni.hideLoading();var n=t.data.result.list,r=n.length;if(r<=0)e.showLoadMore=!1;else{for(var i in e.showLoadMore=!(r<10),n){n[i];var a=[];a=n[i],a.avator=o.default.getImageUrl(a.avator,e.baseUrl),a.content=e.replaceContent(a["content"],e.baseUrl),e.messageExist["id_"+a.msg_id]||(e.messages.unshift(a),e.messageExist["id_"+a.msg_id]=1),"read"==a.read_status?a.read_status="已读":a.read_status="未读"}e.currentPage<=1&&e.pageScrollToBottom(!0),e.currentPage++,e.moremessage="点击加载更多记录",e.loadMoreDisable=!1}}}))},checkAuth:function(){var e=this;uni.request({url:e.baseUrl+"/uc/v1/refreshToken?token="+e.token,method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},success:function(t){var n=t.data.code;2e4!=n?uni.navigateTo({url:"/pages/index/login"}):(uni.setStorageSync("app",{token:t.data.result.token}),e.onlineIntime())}})},getKefuInfo:function(){var e=this;uni.request({url:e.baseUrl+"/kefu/kefuinfo?token="+e.token,method:"GET",header:{"Content-Type":"application/x-www-form-urlencoded"},success:function(t){t.data.code;var n=t.data.result;e.kefuInfo.avator=n.avator,e.kefuInfo.username=n.name,e.kefuInfo.nickname=n.nickname}})},onlineIntime:function(){var e=this,t=this;console.log(this.wsBaseUrl+"?token="+this.token),uni.onSocketMessage((function(n){var r=JSON.parse(n.data);switch(r.type){case"message":t.recvMessage(r.data);break;case"inputing":if(r.data.from!=t.visitor_id)return;""!=r.data.content?t.inputingAction="正在输入:"+r.data.content:t.inputingAction="",uni.setNavigationBarTitle({title:"[在线]:"+t.visitor_name});break;case"read":if(r.data.visitor_id==t.visitor_id)for(var i=0;i<e.messages.length;i++)e.$set(e.messages[i],"read_status","已读");break;case"userOffline":if(t.showNoticeBar(r.data.name+"离线"),r.data.visitor_id!=t.visitor_id)return;uni.setNavigationBarTitle({title:"[离线]:"+t.visitor_name});break;case"userOnline":if(o.default.playVoice(),t.showNoticeBar(r.data.username+"来了"),r.data.visitor_id!=t.visitor_id)return;uni.setNavigationBarTitle({title:"[在线]:"+t.visitor_name});break;case"callCancel":t.callClear();break;case"callpeer":if(t.peerjs.visitorId)return void uni.request({url:t.baseUrl+"/kefu/callVisitor?token="+t.token,method:"POST",data:{peer_id:"222",visitor_id:r.data.visitor_id,action:"refuse"}});uni.showModal({title:"提示",content:r.data.name+"请求通话?",cancelText:"拒绝",confirmText:"接通",showCancel:!0,confirmColor:"#39B54A",cancelColor:"#f55850",success:function(e){e.confirm?(console.log("comfirm"),t.initPeerjs(r.data.visitor_id)):uni.request({url:t.baseUrl+"/kefu/callVisitor?token="+t.token,method:"POST",data:{peer_id:"222",visitor_id:r.data.visitor_id,action:"refuse"}})}});break}}))},recvMessage:function(e){e.id==this.visitor_id?this.messageExist["id_"+e.msg_id]||(o.default.playVoice(),e.mes_type="yes"==e.is_kefu?"kefu":"visitor",e.content=this.replaceContent(e.content,this.baseUrl),e.avator=o.default.getImageUrl(e.avator,this.baseUrl),this.messageExist["id_"+e.msg_id]=1,this.messages.push(e),this.pageScrollToBottom(),"visitor"==e.mes_type&&(this.inputingAction="")):this.showNoticeBar(e.name+":"+e.content)},pageScrollToBottom:function(e){var t=300;e&&(t=1),this.$nextTick((function(){uni.pageScrollTo({scrollTop:1e17,duration:t})}))},getFaces:function(){this.face=o.default.emojiGifsMap(this.baseUrl)},placeFace:function(){for(var e=[],t=0;t<this.faceTitles.length;t++)e[this.faceTitles[t]]="/static/images/face/"+t+".png";return e},replaceContent:function(e,t){"undefined"==typeof t&&(t="");var n=this.placeFace(),r=this;return e=e.replace(/face\[([^\s\[\]]+?)\]/g,(function(e){var r=e.replace(/^face/g,"");return'<img width="28" class="faceiconImg" alt="'+r+'" title="'+r+'" src="'+t+n[r]+'">'})).replace(/img\[([^\s\[\]]+?)\]/g,(function(e){var t=e.replace(/^img\[/g,"").replace(/\]/g,""),n=o.default.getImageUrl(t,r.baseUrl);return'<img class="chatImagePic" src="'+n+'?width=400"/>'})).replace(/audio\[([^\s\[\]]+?)\]/g,(function(e){var t=e.replace(/^audio\[/g,"").replace(/\]/g,""),n=o.default.getImageUrl(t,r.baseUrl);return'<audio controls ref="audio" src="'+n+'" id="audio"></audio>'})).replace(/file\[([^\s\[\]]+?)\]/g,(function(e){var t=e.replace(/^file\[/g,"").replace(/\]/g,""),n=o.default.getImageUrl(t,r.baseUrl),i=o.default.getImageUrl("/static/images/download.png",r.baseUrl);return'<a href="'+n+'"><img src="'+i+'"/></a>'})).replace(/\[([^\]]+?)\]+link\[([^\]]+?)\]/g,(function(e){var t=e.replace(/link\[.*?\]/g,"").replace(/\[|\]/g,""),n=e.replace(/^\[([^\s\[\]]+?)\]+link\[/g,"").replace(/\]/g,"");return'<a href="'+n+'" target="_blank"/>'+t+"</a>"})).replace(/product\[([^\[\]]+?)\]/g,(function(e){if(arguments[1]){var t=arguments[1].replace(/\'/g,'"');console.log(t);try{var n=JSON.parse(t);if("undefined"==typeof n)return;var i="";n.title&&(i=n.title);var a="";if(n.price)a=n.price;var s="";n.img&&(s="<img src='"+o.default.getImageUrl(n.img,r.baseUrl)+"' style='width: 100px;height: 100px;margin-right: 15px;'/>");var c="";n.url&&(c=n.url);var l="\n\t\t\t\t\t\t\t\t\t<a style='display: block;background: #fff;padding: 5px;border-radius: 2px;max-width: 98%;display: flex;border-radius: 5px;' href=\""+c+'" target="_blank"/>\n\t\t\t\t\t\t\t\t\t'+s+"\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div style='color: #333;'>\n\t\t\t\t\t\t\t\t\t\t<div>"+i+"</div>\n\t\t\t\t\t\t\t\t\t\t<div style='color: #ff7736;font-weight: bold;font-size: 16px;margin-top: 10px;'>"+a+"</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t";return l}catch(d){return t}}})),e=o.default.replaceMutiFile(e,r.baseUrl),e},chatToUser:function(){var e=this;this.messageContent=this.messageContent.trim("\r\n"),""!=this.messageContent&&"\r\n"!=this.messageContent&&""!=this.currentGuest?e.isDisabled||(uni.showLoading({title:"发送中..."}),e.isDisabled=!0,e.pageScrollToBottom(!0),uni.request({url:e.baseUrl+"/kefu/message?token="+e.token,method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},data:{to_id:e.visitor_id,content:e.messageContent,type:"kefu"},success:function(t){e.isDisabled=!1,uni.hideLoading();var n=t.data.code;200!=n?uni.showModal({content:t.data.msg}):e.messageContent=""}})):uni.showModal({content:"内容不能为空"})},closeRemark:function(){this.remark=!1},openRemark:function(){var e=this;e.remark=!0,uni.request({url:this.baseUrl+"/kefu/visitor_attr?token="+e.token,method:"GET",data:{visitor_id:e.visitor_id},success:function(t){var n=t.data.result;e.realName=n.real_name,e.tel=n.tel,e.email=n.email,e.qq=n.qq,e.wechat=n.wechat,e.comment=n.comment,console.log(t)}}),e.entTags=[],uni.request({url:this.baseUrl+"/kefu/tags?token="+e.token,method:"GET",success:function(t){var n=t.data.result;for(var r in n){var i={text:n[r].name,value:n[r].name};e.entTags.push(i)}}}),this.getTags()},blackVisitor:function(e){var t=this.baseUrl;"visitor"==e?(t=t+"/kefu/visitorBlack?token="+this.token,uni.request({url:t,method:"POST",data:{visitor_id:this.visitor_id,name:this.visitor_name},success:function(e){uni.showToast({title:e.data.msg,icon:"success"})}})):(t=t+"/kefu/ipblack?token="+this.token,uni.request({url:t,method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},data:{ip:this.visitor_ip,name:this.visitor_name},success:function(e){uni.showToast({title:e.data.msg,icon:"success"})}}))},getTags:function(){var e=this;uni.request({url:this.baseUrl+"/kefu/visitorTag?token="+e.token,method:"GET",data:{visitor_id:e.visitor_id},success:function(t){var n=t.data.result;e.visitorTags=n}})},closeFastReply:function(){this.$refs.fastReply.close()},openFastReply:function(){var e=this;0==e.replys.length?(uni.showLoading({title:"加载中"}),uni.request({url:this.baseUrl+"/kefu/entReplys?token="+e.token,method:"GET",success:function(t){uni.hideLoading();var n=t.data.result;e.ent_replys=n,e.fastReplyBtn=!0}}),uni.request({url:this.baseUrl+"/replys?token="+e.token,method:"GET",success:function(t){uni.hideLoading();var n=t.data.result;e.replys=n,e.fastReplyBtn=!0}})):e.fastReplyBtn=!0},saveRemark:function(){var e=this,t={visitor_id:this.visitor_id,visitor_attr:{real_name:this.realName,tel:this.tel,email:this.email,wechat:this.wechat,qq:this.qq,comment:this.comment}};uni.request({url:e.baseUrl+"/kefu/visitor_attrs?token="+e.token,method:"POST",data:t,success:function(t){e.$refs.remark.close()}})},changeTag:function(e){var t=e.detail.value[0].value;console.log(t),this.doChangeTag(t)},doChangeTag:function(e){var t=this,n={visitor_id:this.visitor_id,tag_name:e};uni.request({url:t.baseUrl+"/kefu/visitorTag?token="+t.token,method:"POST",data:n,header:{"Content-Type":"application/x-www-form-urlencoded"},success:function(e){t.getTags()}})},delTag:function(e){var t=this,n={visitor_id:this.visitor_id,tag_name:e};uni.request({url:this.baseUrl+"/kefu/delVisitorTag?token="+t.token,method:"GET",data:n,success:function(e){t.getTags()}})},showNotice:function(e){},showNoticeBar:function(e){this.noticeContent=e},uploadImage:function(){var e=this;uni.chooseImage({success:function(t){var n=t.tempFilePaths;uni.uploadFile({url:e.baseUrl+"/uploadimg?token="+e.token,filePath:n[0],name:"imgfile",success:function(t){console.log(t);var n=JSON.parse(t.data);200==n.code?(e.messageContent+="img["+n.result.path+"]",e.chatToUser()):uni.showToast({title:n.msg,icon:"none"})}})}})},uploadFile:function(){var e=this;uni.chooseFile({success:function(t){var n=t.tempFilePaths;uni.uploadFile({url:e.baseUrl+"/2/uploadFile?token="+e.token,filePath:n[0],name:"realfile",success:function(t){console.log(t);var n=JSON.parse(t.data);if(200==n.code){var r=JSON.stringify({name:n.result.name,ext:n.result.ext,size:n.result.size,path:n.result.path});e.messageContent="mutiFile["+r+"]",e.chatToUser(!0)}else uni.showToast({title:n.msg,icon:"none"})}})}})},formatTime:function(e){var t=Math.round(new Date(e).getTime()/1e3),n=Math.round((new Date).getTime()/1e3);return n-t<=86400?o.default.beautifyTime(t):e},longDelete:function(e){var t=this;uni.showModal({title:"撤回操作",content:"请问要撤回本条消息吗?",success:function(){var n=(0,a.default)((0,i.default)().mark((function n(r){var a;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:r.confirm?(a={msg_id:e,visitor_id:t.visitor_id},uni.request({url:t.baseUrl+"/kefu/message_delete?token="+t.token,method:"POST",data:a,header:{"Content-Type":"application/x-www-form-urlencoded"},success:function(n){if(200==n.data.code)for(var r=0;r<t.messages.length;r++)t.messages[r].msg_id==e&&t.messages.splice(r,1);else uni.showToast({title:n.data.msg,icon:"error"})}})):r.cancel&&console.log("用户点击取消");case 1:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()})},faceIconClick:function(e){this.showFaceIcon=!1,this.messageContent+="face"+this.face[e].name},trashMessage:function(){var e=this;uni.showModal({title:"清空操作",content:"请问要清空所有消息吗?",success:function(){var t=(0,a.default)((0,i.default)().mark((function t(n){var r;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.confirm&&(r={visitor_id:e.visitor_id},uni.request({url:e.baseUrl+"/kefu/delVisitorMessage?token="+e.token,method:"GET",data:r,success:function(t){e.messages=[]}}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})},transferKefu:function(){var e=this;0!=e.otherKefuList.length&&(e.otherKefuBtn=!0),uni.request({url:e.baseUrl+"/kefu/otherKefulist",method:"get",header:{token:e.token},success:function(t){var n=t.data.result;e.otherKefuBtn=!0,e.otherKefuList=n}})},transKefuVisitor:function(e,t){var n=this;uni.request({url:n.baseUrl+"/kefu/transKefu",data:{kefu_id:e,visitor_id:t},method:"get",header:{token:n.token},success:function(e){n.otherKefuBtn=!1}})},translate:function(e,t){var n=e,r=this;uni.request({url:r.baseUrl+"/translate",data:{words:t,from:"auto",to:"zh"},method:"get",header:{token:r.token},success:function(e,t){var i=e.data.result.dst;""!=i&&(r.messages[n].content=r.messages[n].content+"<br/>"+i)}})},translateKefu:function(){var e=this,t=o.default.replaceHtml(e.messageContent);""!=t&&uni.request({url:e.baseUrl+"/translate",data:{words:t,from:"auto",to:"en"},method:"get",header:{token:e.token},success:function(t,n){var r=t.data.result.dst;""!=r&&(e.messageContent=r)}})},confirm:function(e){var t=this;this.showRecorder=!1,uni.uploadFile({url:t.baseUrl+"/uploadaudio?token="+t.token,filePath:e,name:"realfile",success:function(e){var n=JSON.parse(e.data);t.messageContent+="audio[/"+n.result.path+"]",t.chatToUser()}})},openRecord:function(){this.$refs.recorderDialog.open()},startRecord:function(){uni.showToast({title:"开始录音,如需结束请点击停止录音",duration:5e3,icon:"none"}),this.endRecorderBtn=!0,this.sendRecorderBtn=!1,this.$refs.recorder.start()},endRecord:function(){uni.showToast({title:"录音已经结束",duration:2e3,icon:"none"}),this.endRecorderBtn=!1,this.sendRecorderBtn=!0,this.$refs.recorder.stop()},sendRecord:function(){var e=this;this.recorder&&this.recorder.localUrl?(console.log("上传录音"),uni.uploadFile({url:this.baseUrl+"/2/uploadAudio?token="+this.token,filePath:this.recorder.localUrl,name:"realfile",success:function(t){var n=JSON.parse(t.data);e.messageContent+="audio["+n.result.path+"]",e.chatToUser(),e.recorderBtn=!1,e.endRecorderBtn=!0,e.sendRecorderBtn=!1}})):uni.showToast({title:"录音失败",duration:2e3,icon:"none"})},handlerRecordSuccess:function(e){console.log(e),this.recorder=e},handlerRecordError:function(e){uni.showToast({title:e,duration:3e3,icon:"none"})},initPeerjs:function(e){var t=this,n=new Peer;n.on("open",(function(n){console.log("My peer ID is: "+n),uni.request({url:t.baseUrl+"/kefu/callVisitor?token="+t.token,method:"POST",data:{peer_id:n,visitor_id:e,action:"accept"}}),t.peerjs.peerjsId=n,t.peerjs.visitorId=e})),n.on("close",(function(){t.callClear()})),n.on("disconnected",(function(){t.callClear()})),n.on("error",(function(){t.callClear()})),n.on("call",(function(n){console.log("peer call",n),t.peerjs.call=n,uni.showModal({title:"请选择语音/视频接待",cancelText:"语音",confirmText:"视频",showCancel:!0,success:function(n){n.confirm?t.startUserMedia(e,!0):t.startUserMedia(e,!1)}})})),this.peerjs.peer=n},startUserMedia:function(e,t){var n=this;if(n.peerjs.call){var r=o.default.getCompatibleUserMedia({video:t,audio:{noiseSuppression:!0,echoCancellation:!0}},(function(e){n.peerjs.localStream=e,n.peerjs.call.answer(e),n.peerjs.call.on("stream",(function(e){var t=e.getVideoTracks(),r=e.getAudioTracks();if(t.length>0){n.peerjs.remoteVideoStream=e;var i=document.getElementsByTagName("video")[0];i.srcObject=e,i.play()}else if(r.length>0){n.peerjs.remoteAudioStream=e;var a=document.getElementsByTagName("audio")[0];a.srcObject=e,a.play()}})),n.peerjs.call.on("close",(function(){n.callClear()})),n.peerjs.call.on("error",(function(e){n.callClear()}))}),(function(e){console.log(e),uni.showToast({title:e.toString(),duration:5e3,icon:"none"}),n.callClear()}));r||(uni.showToast({title:"Your browser does not support the getUserMedia API.",duration:5e3,icon:"none"}),n.callClear())}},refuseCall:function(){this.peerjs.visitorId&&(uni.request({url:this.baseUrl+"/kefu/callVisitor?token="+this.token,method:"POST",data:{peer_id:"222",visitor_id:this.peerjs.visitorId,action:"refuse"}}),this.peerjs.visitorId="")},callPhone:function(){uni.request({url:this.baseUrl+"/kefu/callVisitor?token="+this.token,method:"POST",data:{peer_id:"222",visitor_id:this.visitor_id,action:"callPhone"},success:function(e){uni.showToast({title:"请求语音通话指令发出",duration:5e3,icon:"none"})}})},callVideo:function(){uni.request({url:this.baseUrl+"/kefu/callVisitor?token="+this.token,method:"POST",data:{peer_id:"222",visitor_id:this.visitor_id,action:"callVideo"},success:function(e){uni.showToast({title:"请求视频通话指令发出",duration:5e3,icon:"none"})}})},callClear:function(){if(this.peerjs.call&&(this.peerjs.call.close(),this.peerjs.call=null),this.peerjs.remoteVideoStream){for(var e=this.peerjs.remoteVideoStream.getTracks(),t=0;t<e.length;t++)e[t].stop();this.peerjs.remoteVideoStream=null}if(this.peerjs.remoteAudioStream){for(e=this.peerjs.remoteAudioStream.getTracks(),t=0;t<e.length;t++)e[t].stop();this.peerjs.remoteAudioStream=null}if(this.peerjs.localStream){for(e=this.peerjs.localStream.getTracks(),t=0;t<e.length;t++)e[t].stop();this.peerjs.localStream=null}this.refuseCall()},searchReply:function(){var e=this;console.log(this.searchReplyItem);var t=this.searchReplyItem;""!=t&&uni.request({url:this.baseUrl+"/kefu/replySearch?token="+e.token,method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded"},data:{search:t},success:function(t){var n=t.data.result;n.length<=0||(e.replys=n)}})},goTo:function(e){uni.reLaunch({url:e})},sendComment:function(){uni.request({url:this.baseUrl+"/kefu/sendComment?token="+this.token,method:"GET",data:{visitor_id:this.visitor_id},success:function(e){uni.showToast({title:"发送评价请求成功",icon:"none"})}})},switchRobotStatus:function(e){var t=this,n=e.detail.value?"1":"2";uni.request({url:this.baseUrl+"/kefu/visitorState",method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded",token:t.token},data:{state:this.visitor.state,position:1,value:n,visitor_id:this.visitor_id},success:function(e){t.getVisitor(),uni.showToast({title:"切换机器人状态成功",icon:"none"})}})}}};t.default=d},ac6f:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d3b7"),n("159b"),n("14d9"),n("3ca3"),n("ddb0"),n("2b3d"),n("9861"),n("d401"),n("25f0"),n("a434"),n("acd8");var r={data:function(){return{isUserMedia:!1,stream:null,audio:null,recorder:null,chunks:[],startTime:0}},mounted:function(){if(!navigator.mediaDevices||!window.MediaRecorder)throw this.$emit("error","101"),"当前浏览器不支持";this.getRecorderManager()},methods:{getRecorderManager:function(){var e=this;this.audio=document.createElement("audio"),navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e.isUserMedia=!0,t.getTracks().forEach((function(e){e.stop()}))})).catch((function(t){e.onErrorHandler(t)}))},start:function(){var e=this;if(!this.isUserMedia)return this.$emit("error","当前设备不支持"),console.log("当前设备不支持");navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e.startTime=(new Date).getTime(),e.stream=t,e.recorder=new MediaRecorder(t),e.recorder.ondataavailable=e.getRecordingData,e.recorder.onstop=e.saveRecordingData,e.recorder.start()})).catch((function(t){e.onErrorHandler(t)}))},stop:function(){this.recorder?(this.recorder.stop(),this.stream.getTracks().forEach((function(e){e.stop()}))):this.$emit("error","当前设备不支持")},getRecordingData:function(e){this.chunks.push(e.data)},saveRecordingData:function(){var e=new Blob(this.chunks,{type:"audio/mpeg"}),t=URL.createObjectURL(e),n=(new Date).getTime(),r=(n-this.startTime).toString().split("");r.splice(r.length-2),r.splice(r.length-1,0,"."),r=parseFloat(r.join(""));var i={data:e,duration:r,localUrl:t};this.$emit("success",i)},onErrorHandler:function(e){if(console.log(e),"NotAllowedError"===e.name)throw this.$emit("error","201"),"用户拒绝了当前的浏览器实例的访问请求";if("NotReadableError"===e.name)throw this.$emit("error","101"),"当前浏览器不支持";if("NotFoundError"===e.name)throw this.$emit("error","没有找到录音设备"),"没有找到录音设备";throw this.$emit("error","调用录音失败"),"调用失败,原因不详"}},destroyed:function(){this.stop()}};t.default=r},ad8c:function(e,t,n){"use strict";n.r(t);var r=n("af1e"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},ae80:function(e,t,n){"use strict";t["a"]=function(e){(e.options.wxs||(e.options.wxs={}))["handler"]=function(e){var t={abbr:!0,b:!0,big:!0,code:!0,del:!0,em:!0,i:!0,ins:!0,label:!0,q:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0};return e.exports={isInline:function(e,n){return t[e]||-1!==(n||"").indexOf("display:inline")}},e.exports}({exports:{}})}},af1e:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("d401"),n("d3b7"),n("25f0"),n("c975"),n("14d9"),n("159b"),n("a434"),n("ac1f");var r={name:"uniCollapseItem",props:{title:{type:String,default:""},name:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1},showAnimation:{type:Boolean,default:!0},open:{type:Boolean,default:!1},thumb:{type:String,default:""},titleBorder:{type:String,default:"auto"},border:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0}},data:function(){var e="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{isOpen:!1,isheight:null,height:0,elId:e,nameSync:0}},watch:{open:function(e){this.isOpen=e,this.onClick(e,"init")}},updated:function(e){var t=this;this.$nextTick((function(){t.init(!0)}))},created:function(){this.collapse=this.getCollapse(),this.oldHeight=0,this.onClick(this.open,"init")},destroyed:function(){this.__isUnmounted||this.uninstall()},mounted:function(){this.collapse&&(""!==this.name?this.nameSync=this.name:this.nameSync=this.collapse.childrens.length+"",-1===this.collapse.names.indexOf(this.nameSync)?this.collapse.names.push(this.nameSync):console.warn("name 值 ".concat(this.nameSync," 重复")),-1===this.collapse.childrens.indexOf(this)&&this.collapse.childrens.push(this),this.init())},methods:{init:function(e){this.getCollapseHeight(e)},uninstall:function(){var e=this;this.collapse&&(this.collapse.childrens.forEach((function(t,n){t===e&&e.collapse.childrens.splice(n,1)})),this.collapse.names.forEach((function(t,n){t===e.nameSync&&e.collapse.names.splice(n,1)})))},onClick:function(e,t){this.disabled||(this.isOpen=e,this.isOpen&&this.collapse&&this.collapse.setAccordion(this),"init"!==t&&this.collapse.onChange(e,this))},getCollapseHeight:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=uni.createSelectorQuery().in(this);r.select("#".concat(this.elId)).fields({size:!0},(function(r){if(!(n>=10)){if(!r)return n++,void t.getCollapseHeight(!1,n);t.height=r.height,t.isheight=!0,e||t.onClick(t.isOpen,"init")}})).exec()},getNvueHwight:function(e){var t=this;dom.getComponentRect(this.$refs["collapse--hook"],(function(n){if(n&&n.result&&n.size){if(t.height=n.size.height,t.isheight=!0,e)return;t.onClick(t.open,"init")}}))},getCollapse:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniCollapse",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=r},b021:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("7db0"),n("d3b7"),n("b64b"),n("caad"),n("2532");var r={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var e=this,t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},n=function(n){if(!e.disable){var r=Object.keys(t).find((function(e){var r=n.key,i=t[e];return i===r||Array.isArray(i)&&i.includes(r)}));r&&setTimeout((function(){e.$emit(r,{})}),0)}};document.addEventListener("keyup",n),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("keyup",n)}))},render:function(){}};t.default=r},b2af:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六"}')},b338:function(e,t,n){"use strict";n.r(t);var r=n("0dda"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},b606:function(e,t,n){"use strict";n.r(t);var r=n("d4b8"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},b91b:function(e,t,n){"use strict";n.r(t);var r=n("c5a2"),i=n("722d");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("4837");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"01f70fa8",null,!1,r["a"],void 0);t["default"]=s.exports},bcd5:function(e,t,n){var r=n("fd72");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("2e082718",r,!0,{sourceMap:!1,shadowMode:!1})},bda4:function(e,t,n){var r=n("50b9");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4e8bc63f",r,!0,{sourceMap:!1,shadowMode:!1})},bdee:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("td",{staticClass:"uni-table-td",class:{"table--border":this.border},style:{width:this.width+"px","text-align":this.align},attrs:{rowspan:this.rowspan,colspan:this.colspan}},[this._t("default")],2)},i=[]},bfb7:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-calendar-item__weeks-box[data-v-58947a61]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:3px 0}.uni-calendar-item__weeks-box-text[data-v-58947a61]{font-size:12px}.uni-calendar-item__weeks-lunar-text[data-v-58947a61]{font-size:%?24?%;color:#333}.uni-calendar-item__weeks-box-item[data-v-58947a61]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px;cursor:pointer}.uni-calendar-item__weeks-box-circle[data-v-58947a61]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-58947a61]{color:silver;cursor:default}.uni-calendar-item__weeks-box .uni-calendar-item--isDay-text[data-v-58947a61]{color:#007aff}.uni-calendar-item--isDay[data-v-58947a61]{background-color:#007aff;opacity:.8;color:#fff}.uni-calendar-item--extra[data-v-58947a61]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-58947a61]{background-color:#007aff;box-sizing:border-box;border:6px solid #f2f6fc;color:#fff;opacity:.8}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-58947a61]{color:#333}.uni-calendar-item--multiple[data-v-58947a61]{background-color:#f2f6fc;opacity:.8}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-58947a61]{background-color:#409eff;color:#fff!important;box-sizing:border-box;border:6px solid #f2f6fc}.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-58947a61]{background-color:#409eff;color:#fff!important;box-sizing:border-box;border:6px solid #f2f6fc}.uni-calendar-item--before-checked-x[data-v-58947a61]{background-color:#f2f6fc}.uni-calendar-item--after-checked-x[data-v-58947a61]{background-color:#f2f6fc}',""]),e.exports=t},c46b:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-calendar-item__weeks-box",class:{"uni-calendar-item--disable":e.weeks.disable,"uni-calendar-item--before-checked-x":e.weeks.beforeMultiple,"uni-calendar-item--multiple":e.weeks.multiple,"uni-calendar-item--after-checked-x":e.weeks.afterMultiple},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.choiceDate(e.weeks)},mouseenter:function(t){arguments[0]=t=e.$handleEvent(t),e.handleMousemove(e.weeks)}}},[n("v-uni-view",{staticClass:"uni-calendar-item__weeks-box-item",class:{"uni-calendar-item--isDay-text":e.weeks.isDay,"uni-calendar-item--checked":e.calendar.fullDate===e.weeks.fullDate&&(e.calendar.userChecked||!e.checkHover),"uni-calendar-item--checked-range-text":e.checkHover,"uni-calendar-item--before-checked":e.weeks.beforeMultiple,"uni-calendar-item--multiple":e.weeks.multiple,"uni-calendar-item--after-checked":e.weeks.afterMultiple,"uni-calendar-item--disable":e.weeks.disable}},[e.selected&&e.weeks.extraInfo?n("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-circle"}):e._e(),n("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-text"},[e._v(e._s(e.weeks.date))])],1)],1)},i=[]},c5a2:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uniTable:n("c5bb").default,uniTr:n("3c71").default,uniTh:n("5623").default,uniTd:n("d244").default,mpHtml:n("6163").default,uniForms:n("edcc").default,uniEasyinput:n("5ee0").default,uniTag:n("75bb").default,uniDataPicker:n("dc89").default,mumuRecorder:n("780d").default,uniCollapse:n("0897").default,uniCollapseItem:n("9b85").default,uniIcons:n("416b").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"chatContext"},[e.visitorProfile?r("v-uni-view",{staticClass:"fastReplyBox"},[r("uni-table",{attrs:{emptyText:"暂无更多数据"}},[r("uni-tr",[r("uni-th",{attrs:{width:"80"}},[e._v("访客名")]),r("uni-th",[e._v(e._s(e.visitor_name))])],1),e._l(e.visitorExtra,(function(t){return r("uni-tr",{key:t.key,attrs:{align:"left"}},[r("uni-td",[e._v(e._s(t.key))]),r("uni-td",[e._v(e._s(t.val)),"同IP访客"==t.key?r("a",{staticStyle:{margin:"0 10px",color:"#07a9fe"},attrs:{type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goTo("/pages/index/history?client_ip="+e.visitor_ip)}}},[e._v("查询")]):e._e()])],1)}))],2),r("v-uni-button",{staticStyle:{margin:"10px"},attrs:{size:"mini",type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.visitorProfile=!1}}},[e._v("关闭")])],1):e._e(),0==e.messages.length?r("v-uni-view",{staticClass:"flyNotice"},[r("v-uni-view",[r("v-uni-image",{staticStyle:{width:"135px",height:"132px"},attrs:{src:n("dac7")}})],1),r("v-uni-view",{staticStyle:{color:"#333"}},[e._v("暂无消息记录")]),r("v-uni-view",[e._v("没有要处理的对话,休息一下吧")])],1):e._e(),r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.showLoadMore,expression:"showLoadMore"}],staticClass:"chatTime",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getMessages.apply(void 0,arguments)}}},[e._v(e._s(e.moremessage))]),r("v-uni-view",{staticClass:"chatBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showFaceIcon=!1}}},e._l(e.messages,(function(t,n){return r("v-uni-view",{key:t.msg_id,class:{chatBoxMe:"kefu"==t.mes_type}},[r("v-uni-view",{staticClass:"chatTime",class:{chatTimeHide:0==t.show_time}},[e._v(e._s(e.formatTime(t.time)))]),r("v-uni-view",{staticClass:"chatLittle"},[r("v-uni-image",{staticClass:"flyAvatar",attrs:{src:t.avator}})],1),r("v-uni-view",{staticClass:"chatBig"},[r("v-uni-view",{staticClass:"chatUser"},[e._v(e._s(t.name))]),r("v-uni-view",{staticClass:"chatContent"},[r("mp-html",{attrs:{content:t.content,selectable:!0}}),r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"kefu"!=t.mes_type,expression:"v.mes_type!='kefu'"}],staticStyle:{color:"#07a9fe"},on:{click:function(r){arguments[0]=r=e.$handleEvent(r),e.translate(n,t.content)}}},[e._v("翻译")])],1),r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"kefu"==t.mes_type,expression:"v.mes_type=='kefu'"}],staticClass:"chatReadStatus"},[e._v(e._s(t.read_status))]),r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"kefu"==t.mes_type,expression:"v.mes_type=='kefu'"}],staticClass:"deleteMessage",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.longDelete(t.msg_id)}}},[e._v("撤回")])],1),r("v-uni-view",{staticClass:"clear"})],1)})),1),e.remark?r("v-uni-view",{staticClass:"fastReplyBox"},[r("v-uni-view",{staticClass:"remarkDialog"},[r("uni-forms",[r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"text",placeholder:"姓名"},model:{value:e.realName,callback:function(t){e.realName=t},expression:"realName"}}),r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"text",placeholder:"手机"},model:{value:e.tel,callback:function(t){e.tel=t},expression:"tel"}}),r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"text",placeholder:"微信"},model:{value:e.wechat,callback:function(t){e.wechat=t},expression:"wechat"}}),r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"text",placeholder:"QQ"},model:{value:e.qq,callback:function(t){e.qq=t},expression:"qq"}}),r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"text",placeholder:"邮箱"},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"textarea",placeholder:"备注"},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}})],1),r("v-uni-button",{staticClass:"mt-10",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.saveRemark.apply(void 0,arguments)}}},[e._v("保存")]),r("v-uni-view",{staticClass:"mt-10"},[e._l(e.visitorTags,(function(t){return r("uni-tag",{key:t.id,staticClass:"mr-10 mt-10",attrs:{type:"primary",text:t.tag_name},on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.delTag(t.tag_name)}}})})),r("uni-data-picker",{staticClass:"mt-10",attrs:{localdata:e.entTags,"popup-title":"请选择标签"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeTag.apply(void 0,arguments)}}}),r("uni-easyinput",{staticClass:"mt-10",attrs:{type:"text",placeholder:"新标签"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.doChangeTag(e.tagName)}},model:{value:e.tagName,callback:function(t){e.tagName=t},expression:"tagName"}})],2),r("v-uni-button",{staticClass:"mt-10",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closeRemark.apply(void 0,arguments)}}},[e._v("关闭")]),r("v-uni-button",{staticClass:"mt-10",attrs:{type:"warn"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.blackVisitor("visitor")}}},[e._v("拉黑访客")]),r("v-uni-button",{staticClass:"mt-10",attrs:{type:"warn"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.blackVisitor("ip")}}},[e._v("拉黑IP")])],1)],1):e._e(),e.recorderBtn?r("v-uni-view",{staticClass:"fastReplyBox"},[r("v-uni-view",{staticClass:"recorderBox"},[e.recorder?r("v-uni-audio",{staticStyle:{margin:"0 auto"},attrs:{src:e.recorder.localUrl,author:"客服助手",name:"本地录音",controls:"true"}}):e._e(),r("v-uni-button",{staticClass:"recorderBtn",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.startRecord.apply(void 0,arguments)}}},[e._v("开始录音")]),r("v-uni-button",{directives:[{name:"show",rawName:"v-show",value:e.endRecorderBtn,expression:"endRecorderBtn"}],staticClass:"recorderBtn",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.endRecord.apply(void 0,arguments)}}},[e._v("停止录音")]),r("v-uni-button",{directives:[{name:"show",rawName:"v-show",value:e.sendRecorderBtn,expression:"sendRecorderBtn"}],staticClass:"recorderBtn",attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sendRecord.apply(void 0,arguments)}}},[e._v("发送录音")]),r("v-uni-button",{staticClass:"recorderBtn",attrs:{type:"warn"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.recorderBtn=!1}}},[e._v("关闭")]),r("mumu-recorder",{ref:"recorder",on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.handlerRecordSuccess.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.handlerRecordError.apply(void 0,arguments)}}})],1)],1):e._e(),r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:null!=e.peerjs.remoteVideoStream,expression:"peerjs.remoteVideoStream!=null"}],staticClass:"fastReplyBox remoteVideoMask",staticStyle:{display:"none"}},[r("v-uni-video",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"remoteVideo",controls:"true",autoplay:"true"}}),r("v-uni-view",{staticClass:"refuse",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.callClear.apply(void 0,arguments)}}},[e._v("挂断")])],1),r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:null!=e.peerjs.remoteAudioStream,expression:"peerjs.remoteAudioStream!=null"}],staticClass:"fastReplyBox remoteVideoMask",staticStyle:{display:"none"}},[r("v-uni-image",{staticClass:"remoteVideoMaskLogo",attrs:{src:e.kefuInfo.avator}}),r("v-uni-audio",{staticStyle:{display:"none"},attrs:{id:"remoteAudio",controls:"true",autoplay:"true"}}),r("v-uni-view",{staticClass:"refuse",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.callClear.apply(void 0,arguments)}}},[e._v("挂断")])],1),e.fastReplyBtn?r("v-uni-view",{staticClass:"fastReplyBox"},[r("v-uni-view",{staticStyle:{padding:"10px"}},[r("v-uni-input",{staticClass:"searchArea",staticStyle:{padding:"5px 0"},attrs:{placeholder:"搜索快捷回复"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.searchReply.apply(void 0,arguments)}},model:{value:e.searchReplyItem,callback:function(t){e.searchReplyItem=t},expression:"searchReplyItem"}})],1),r("uni-collapse",{attrs:{accordion:!0}},[e._l(e.ent_replys,(function(t){return r("uni-collapse-item",{key:t.group_id,attrs:{title:t.group_name},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.messageContent=e.replyItem.item_content,e.fastReplyBtn=!1}}},e._l(t.items,(function(n){return r("v-uni-view",{key:t.item_id,staticClass:"replyBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.messageContent=n.item_content,e.fastReplyBtn=!1}}},[r("v-uni-view",{staticClass:"replyTitle"},[e._v(e._s(n.item_name))]),r("v-uni-view",{staticClass:"replyContent"},[r("mp-html",{attrs:{"preview-img":!1,content:e.replaceContent(n.item_content)}})],1)],1)})),1)})),e._l(e.replys,(function(t){return r("uni-collapse-item",{key:t.group_id,attrs:{title:t.group_name},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.messageContent=e.replyItem.item_content,e.fastReplyBtn=!1}}},e._l(t.items,(function(n){return r("v-uni-view",{key:t.item_id,staticClass:"replyBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.messageContent=n.item_content,e.fastReplyBtn=!1}}},[r("v-uni-view",{staticClass:"replyTitle"},[e._v(e._s(n.item_name))]),r("v-uni-view",{staticClass:"replyContent"},[r("mp-html",{attrs:{"preview-img":!1,content:e.replaceContent(n.item_content)}})],1)],1)})),1)}))],2),r("v-uni-button",{staticStyle:{margin:"10px"},attrs:{size:"mini",type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.fastReplyBtn=!1}}},[e._v("关闭")])],1):e._e(),e.otherKefuBtn&&0!=e.otherKefuList.length?r("v-uni-view",{staticClass:"fastReplyBox"},[r("uni-table",{attrs:{emptyText:"暂无更多数据"}},[r("uni-tr",[r("uni-th",[e._v("账号")]),r("uni-th",[e._v("操作")])],1),e._l(e.otherKefuList,(function(t){return r("uni-tr",{key:t.name,attrs:{align:"left"}},[r("uni-td",[e._v(e._s(t.nickname)+" ( "+e._s(t.name)+" )")]),r("uni-td",[r("span",{directives:[{name:"show",rawName:"v-show",value:"offline"==t.status,expression:"item.status=='offline'"}]},[e._v(e._s(t.status))]),r("v-uni-button",{directives:[{name:"show",rawName:"v-show",value:"online"==t.status,expression:"item.status=='online'"}],attrs:{size:"mini",type:"primary"},on:{click:[function(n){arguments[0]=n=e.$handleEvent(n),e.transKefuVisitor(t.name,e.visitor_id)},function(t){arguments[0]=t=e.$handleEvent(t),e.otherKefuBtn=!1}]}},[e._v("转接")])],1)],1)}))],2),r("v-uni-button",{staticStyle:{margin:"10px"},attrs:{size:"mini",type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.otherKefuBtn=!1}}},[e._v("关闭")])],1):e._e(),r("v-uni-view",{staticClass:"chatBoxSend"},[r("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:""!=e.inputingAction,expression:"inputingAction!=''"}],staticClass:"inputing"},[e._v(e._s(e.inputingAction))]),r("v-uni-view",{staticClass:"topBtns"},[r("v-uni-button",{staticClass:"txtBtn",attrs:{size:"mini",type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),1==e.visitorProfile?e.visitorProfile=!1:e.visitorProfile=!0}}},[e._v("访客资料")]),r("v-uni-button",{staticClass:"txtBtn",attrs:{size:"mini",type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openFastReply()}}},[e._v("快捷回复")]),r("v-uni-button",{staticClass:"txtBtn",attrs:{size:"mini",type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.openRemark()}}},[e._v("备注")]),r("v-uni-switch",{staticStyle:{transform:"scale(0.7)"},attrs:{checked:e.robotStatus},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.switchRobotStatus.apply(void 0,arguments)}}})],1),e.showFaceIcon?r("v-uni-view",{staticClass:"faceBox"},[r("div",{staticClass:"emojis"},e._l(e.emojis,(function(t){return r("span",{on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.messageContent+=t,e.showFaceIcon=!1}}},[e._v(e._s(t))])})),0)]):e._e(),r("v-uni-view",[r("v-uni-view",{staticClass:"chatBoxSendIcons"},[r("uni-icons",{staticClass:"mr-10",attrs:{"custom-prefix":"iconfont",type:"icon-xiaolian",size:"22",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),1==e.showFaceIcon?e.showFaceIcon=!1:e.showFaceIcon=!0}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"image",size:"28",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadImage.apply(void 0,arguments)}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"upload-filled",size:"26",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadFile.apply(void 0,arguments)}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"mic",size:"26",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.recorderBtn=!0}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"font",size:"26",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.translateKefu.apply(void 0,arguments)}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"redo",size:"26",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.transferKefu.apply(void 0,arguments)}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"star-filled",size:"28",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sendComment.apply(void 0,arguments)}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"phone",size:"25",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.callPhone.apply(void 0,arguments)}}}),r("uni-icons",{staticClass:"mr-10",attrs:{type:"videocam",size:"28",color:"#8b8b8b"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.callVideo.apply(void 0,arguments)}}})],1),r("v-uni-button",{staticClass:"btnArea",attrs:{type:"primary",size:"mini"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chatToUser.apply(void 0,arguments)}}},[e._v("发送")])],1),r("v-uni-textarea",{staticClass:"chatArea",attrs:{"adjust-position":!0,maxlength:"-1",placeholder:"请输入信息"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.readMessages(),e.pageScrollToBottom(!0)}},model:{value:e.messageContent,callback:function(t){e.messageContent=t},expression:"messageContent"}})],1)],1)},a=[]},c5bb:function(e,t,n){"use strict";n.r(t);var r=n("f611"),i=n("cb68");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("8490");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"146b5f3c",null,!1,r["a"],void 0);t["default"]=s.exports},c5cb:function(e,t,n){"use strict";n.r(t);var r=n("07dc"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},c68f:function(e,t,n){var r=n("91a3");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("7cc1fb87",r,!0,{sourceMap:!1,shadowMode:!1})},c7ac:function(e,t,n){"use strict";n.r(t);var r=n("1da5"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},c9a1:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".uni-date-x[data-v-794f63b1]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 10px;border-radius:4px;background-color:#fff;color:#666;font-size:14px}.uni-date-x--border[data-v-794f63b1]{box-sizing:border-box;border-radius:4px;border:1px solid #dcdfe6}.uni-date-editor--x[data-v-794f63b1]{position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-794f63b1]{position:absolute;top:5px;right:0;display:inline-block;box-sizing:border-box;border:6px solid transparent;margin-right:6px;\ncursor:pointer\n}.uni-date__x-input[data-v-794f63b1]{padding:0 8px;height:40px;width:100%;line-height:40px;font-size:14px}.t-c[data-v-794f63b1]{text-align:center}.uni-date__input[data-v-794f63b1]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-794f63b1]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-794f63b1]{position:relative\n\t/* \t\tposition: fixed;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n\tbottom: 0;\n\tbox-sizing: border-box;\n\tz-index: 996;\n\tfont-size: 14px; */}.uni-date-mask[data-v-794f63b1]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:transparent;transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-794f63b1]{\n\t/* padding: 0 8px; */background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #e4e7ed;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px}.uni-date-range--x[data-v-794f63b1]{\n\t/* padding: 0 8px; */background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #e4e7ed;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-794f63b1]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-794f63b1]{width:16px;height:16px;vertical-align:middle}\n\n/* 添加时间 */.popup-x-header[data-v-794f63b1]{\ndisplay:flex;\nflex-direction:row\n\t/* justify-content: space-between; */}.popup-x-header--datetime[data-v-794f63b1]{\ndisplay:flex;\nflex-direction:row;flex:1}.popup-x-body[data-v-794f63b1]{display:flex}.popup-x-footer[data-v-794f63b1]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;background-color:#fff;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-794f63b1]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm[data-v-794f63b1]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-794f63b1]{background-color:#fff;text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px\n\t/* padding: 0 50px; */}.uni-date-changed--time uni-text[data-v-794f63b1]{\n\t/* padding: 0 20px; */height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-794f63b1]{\n\t/* display: flex; */flex:1}.uni-date-changed--time-date[data-v-794f63b1]{color:#333;opacity:.6}.mr-50[data-v-794f63b1]{margin-right:50px}.uni-date_calendar-pc[data-v-794f63b1]{padding:0 6px}",""]),e.exports=t},cad8:function(e,t,n){var r=n("23e7"),i=n("cb4c");r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},cb4c:function(e,t,n){"use strict";var r=n("58a8").end,i=n("c8d2");e.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},cb68:function(e,t,n){"use strict";n.r(t);var r=n("fee0"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},cc72:function(e,t,n){var r=n("4151");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("f4e28e9e",r,!0,{sourceMap:!1,shadowMode:!1})},d244:function(e,t,n){"use strict";n.r(t);var r=n("bdee"),i=n("8a53");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("5991");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"ba60828c",null,!1,r["a"],void 0);t["default"]=s.exports},d24a:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{weeks:{type:Object,default:function(){return{}}},calendar:{type:Object,default:function(){return{}}},selected:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1},checkHover:{type:Boolean,default:!1}},methods:{choiceDate:function(e){this.$emit("change",e)},handleMousemove:function(e){this.$emit("handleMouse",e)}}};t.default=r},d308:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("ac1f"),n("5319"),n("14d9"),n("7db0"),n("d3b7"),n("c740"),n("a9e3"),n("e25e"),n("99af");var i=r(n("53ca")),a=r(n("d4ec")),o=r(n("bee2")),s=r(n("9dbe")),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(t.date,t.selected),r=t.startDate,i=t.endDate,o=t.range;(0,a.default)(this,e),this.date=this.getDate(new Date),this.selected=n||[],this.startDate=r,this.endDate=i,this.range=o,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,o.default)(e,[{key:"setDate",value:function(e){this.selectDate=this.getDate(e),this._getWeek(this.selectDate.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"resetSatrtDate",value:function(e){this.startDate=e}},{key:"resetEndDate",value:function(e){this.endDate=e}},{key:"getDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";e||(e=new Date),"object"!==(0,i.default)(e)&&(e=e.replace(/-/g,"/"));var r=new Date(e);switch(n){case"day":r.setDate(r.getDate()+t);break;case"month":31===r.getDate()?r.setDate(r.getDate()+t):r.setMonth(r.getMonth()+t);break;case"year":r.setFullYear(r.getFullYear()+t);break}var a=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,s=r.getDate()<10?"0"+r.getDate():r.getDate();return{fullDate:a+"-"+o+"-"+s,year:a,month:o,date:s,day:r.getDay()}}},{key:"_getLastMonthDays",value:function(e,t){for(var n=[],r=e;r>0;r--){var i=new Date(t.year,t.month-1,1-r).getDate();n.push({date:i,month:t.month-1,lunar:this.getlunar(t.year,t.month-1,i),disable:!0})}return n}},{key:"_currentMonthDys",value:function(e,t){for(var n=this,r=[],i=this.date.fullDate,a=function(e){var a=t.year+"-"+(t.month,t.month+"-")+(e<10?"0"+e:e),o=i===a,s=n.selected&&n.selected.find((function(e){if(n.dateEqual(a,e.date))return e})),c=!0,l=!0;n.startDate&&(c=n.dateCompare(n.startDate,a)),n.endDate&&(l=n.dateCompare(a,n.endDate));var d=n.multipleStatus.data,u=!1,f=-1;n.range&&(d&&(f=d.findIndex((function(e){return n.dateEqual(e,a)}))),-1!==f&&(u=!0));var p={fullDate:a,year:t.year,date:e,multiple:!!n.range&&u,beforeMultiple:n.dateEqual(n.multipleStatus.before,a),afterMultiple:n.dateEqual(n.multipleStatus.after,a),month:t.month,lunar:n.getlunar(t.year,t.month,e),disable:!(c&&l),isDay:o,userChecked:!1};s&&(p.extraInfo=s),r.push(p)},o=1;o<=e;o++)a(o);return r}},{key:"_getNextMonthDays",value:function(e,t){for(var n=[],r=1;r<e+1;r++)n.push({date:r,month:Number(t.month)+1,lunar:this.getlunar(t.year,Number(t.month)+1,r),disable:!0});return n}},{key:"getInfo",value:function(e){var t=this;e||(e=new Date);var n=this.canlender.find((function(n){return n.fullDate===t.getDate(e).fullDate}));return n}},{key:"dateCompare",value:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e<=t}},{key:"dateEqual",value:function(e,t){return e=new Date(e.replace("-","/").replace("-","/")),t=new Date(t.replace("-","/").replace("-","/")),e.getTime()-t.getTime()===0}},{key:"geDateAll",value:function(e,t){var n=[],r=e.split("-"),i=t.split("-"),a=new Date;a.setFullYear(r[0],r[1]-1,r[2]);var o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);for(var s=a.getTime()-864e5,c=o.getTime()-864e5,l=s;l<=c;)l+=864e5,n.push(this.getDate(new Date(parseInt(l))).fullDate);return n}},{key:"getlunar",value:function(e,t,n){return s.default.solar2lunar(e,t,n)}},{key:"setSelectInfo",value:function(e,t){this.selected=t,this._getWeek(e)}},{key:"setMultiple",value:function(e){var t=this.multipleStatus,n=t.before,r=t.after;if(this.range){if(n&&r){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else this.lastHover=!1,n?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e;this._getWeek(e)}}},{key:"setHoverMultiple",value:function(e){var t=this.multipleStatus,n=t.before;t.after;this.range&&(this.lastHover||(n?(this.multipleStatus.after=e,this.dateCompare(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this._getWeek(e)))}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(this.dateCompare(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this._getWeek(t)):(this.multipleStatus.data=this.geDateAll(t,e),this._getWeek(e)))}},{key:"_getWeek",value:function(e){var t=this.getDate(e),n=(t.fullDate,t.year),r=t.month,i=(t.date,t.day,new Date(n,r-1,1).getDay()),a=new Date(n,r,0).getDate(),o={lastMonthDays:this._getLastMonthDays(i,this.getDate(e)),currentMonthDys:this._currentMonthDys(a,this.getDate(e)),nextMonthDays:[],weeks:[]},s=[],c=42-(o.lastMonthDays.length+o.currentMonthDys.length);o.nextMonthDays=this._getNextMonthDays(c,this.getDate(e)),s=s.concat(o.lastMonthDays,o.currentMonthDys,o.nextMonthDays);for(var l={},d=0;d<s.length;d++)d%7===0&&(l[parseInt(d/7)]=new Array(7)),l[parseInt(d/7)][d%7]=s[d];this.canlender=s,this.weeks=l}}]),e}(),l=c;t.default=l},d314:function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select datetime","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN"}')},d4b8:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("e9c4"),n("14d9"),n("e25e");var i=r(n("563e")),a={reset:"重置",search:"搜索",submit:"确定",filter:"筛选",gt:"大于等于",lt:"小于等于",date:"日期范围"},o={Select:"select",Search:"search",Range:"range",Date:"date",Timestamp:"timestamp"},s={name:"FilterDropdown",emits:["change"],components:{checkBox:i.default},options:{virtualHost:!0},props:{filterType:{type:String,default:o.Select},filterData:{type:Array,default:function(){return[]}},mode:{type:String,default:"default"},map:{type:Object,default:function(){return{text:"text",value:"value"}}}},computed:{canReset:function(){return this.isSearch?this.filterValue.length>0:this.isSelect?this.checkedValues.length>0:this.isRange?this.gtValue.length>0&&this.ltValue.length>0:!!this.isDate&&this.dateSelect.length>0},isSelect:function(){return this.filterType===o.Select},isSearch:function(){return this.filterType===o.Search},isRange:function(){return this.filterType===o.Range},isDate:function(){return this.filterType===o.Date||this.filterType===o.Timestamp}},watch:{filters:function(e){this._copyFilters()},indeterminate:function(e){this.isIndeterminate=e}},data:function(){return{resource:a,enabled:!0,isOpened:!1,dataList:[],filterValue:"",checkedValues:[],gtValue:"",ltValue:"",dateRange:[],dateSelect:[]}},created:function(){this._copyFilters()},methods:{_copyFilters:function(){for(var e=JSON.parse(JSON.stringify(this.filterData)),t=0;t<e.length;t++)void 0===e[t].checked&&(e[t].checked=!1);this.dataList=e},openPopup:function(){var e=this;this.isOpened=!0,this.isDate&&this.$nextTick((function(){e.dateRange.length||e.resetDate(),e.$refs.datetimepicker.show()}))},closePopup:function(){this.isOpened=!1},handleClose:function(e){this.closePopup()},resetDate:function(){var e=new Date,t=e.toISOString().split("T")[0];this.dateRange=[t+" 0:00:00",t+" 23:59:59"]},onDropdown:function(e){this.openPopup()},onItemClick:function(e,t){var n=this.dataList,r=n[t];void 0===r.checked?n[t].checked=!0:n[t].checked=!r.checked;for(var i=[],a=0;a<n.length;a++){var o=n[a];o.checked&&i.push(o.value)}this.checkedValues=i},datetimechange:function(e){this.closePopup(),this.dateRange=e,this.dateSelect=e,this.$emit("change",{filterType:this.filterType,filter:e})},timepickerclose:function(e){this.closePopup()},handleSelectSubmit:function(){this.closePopup(),this.$emit("change",{filterType:this.filterType,filter:this.checkedValues})},handleSelectReset:function(){if(this.canReset){for(var e=this.dataList,t=0;t<e.length;t++){var n=e[t];this.$set(n,"checked",!1)}this.checkedValues=[],this.handleSelectSubmit()}},handleSearchSubmit:function(){this.closePopup(),this.$emit("change",{filterType:this.filterType,filter:this.filterValue})},handleSearchReset:function(){this.canReset&&(this.filterValue="",this.handleSearchSubmit())},handleRangeSubmit:function(e){this.closePopup(),this.$emit("change",{filterType:this.filterType,filter:!0===e?[]:[parseInt(this.gtValue),parseInt(this.ltValue)]})},handleRangeReset:function(){this.canReset&&(this.gtValue="",this.ltValue="",this.handleRangeSubmit(!0))}}};t.default=s},d502:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.uni-collapse-item[data-v-335e5506]{box-sizing:border-box}.uni-collapse-item__title[data-v-335e5506]{display:flex;width:100%;box-sizing:border-box;flex-direction:row;align-items:center;transition:border-bottom-color .3s}.uni-collapse-item__title-wrap[data-v-335e5506]{width:100%;flex:1}.uni-collapse-item__title-box[data-v-335e5506]{padding:0 15px;display:flex;width:100%;box-sizing:border-box;flex-direction:row;justify-content:space-between;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;font-size:13px;font-weight:500;cursor:pointer;outline:none}.uni-collapse-item__title-box.is-disabled .uni-collapse-item__title-text[data-v-335e5506]{color:#999}.uni-collapse-item__title.uni-collapse-item-border[data-v-335e5506]{border-bottom:1px solid #ebeef5}.uni-collapse-item__title.is-open[data-v-335e5506]{border-bottom-color:transparent}.uni-collapse-item__title-img[data-v-335e5506]{height:22px;width:22px;margin-right:10px}.uni-collapse-item__title-text[data-v-335e5506]{flex:1;font-size:14px;white-space:nowrap;color:inherit;overflow:hidden;text-overflow:ellipsis}.uni-collapse-item__title-arrow[data-v-335e5506]{display:flex;box-sizing:border-box;align-items:center;justify-content:center;width:20px;height:20px;margin-right:10px;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.uni-collapse-item__title-arrow-active[data-v-335e5506]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.uni-collapse-item__wrap[data-v-335e5506]{will-change:height;box-sizing:border-box;background-color:#fff;overflow:hidden;position:relative;height:0}.uni-collapse-item__wrap.is--transition[data-v-335e5506]{transition-property:height,border-bottom-width;transition-duration:.3s;will-change:height}.uni-collapse-item__wrap-content[data-v-335e5506]{position:absolute;font-size:13px;color:#303133;border-bottom-color:transparent;border-bottom-style:solid;border-bottom-width:0}.uni-collapse-item__wrap-content.uni-collapse-item--border[data-v-335e5506]{border-bottom-width:1px;border-bottom-color:red;border-bottom-color:#ebeef5}.uni-collapse-item__wrap-content.open[data-v-335e5506]{position:relative}.uni-collapse-item--animation[data-v-335e5506]{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.3s;transition-timing-function:ease}',""]),e.exports=t},d6db:function(e,t,n){var r=n("d502");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("36c9c553",r,!0,{sourceMap:!1,shadowMode:!1})},d6e5:function(e,t,n){"use strict";var r=n("d6db"),i=n.n(r);i.a},db4e:function(e,t,n){var r=n("2577");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("7dfeb154",r,!0,{sourceMap:!1,shadowMode:!1})},db67:function(e,t,n){"use strict";var r=n("db4e"),i=n.n(r);i.a},e2de:function(e,t,n){"use strict";n.r(t);var r=n("7007"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},e5e7:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("th",{staticClass:"uni-table-th",class:{"table--border":e.border},style:{width:e.width+"px","text-align":e.align},attrs:{rowspan:e.rowspan,colspan:e.colspan}},[n("v-uni-view",{staticClass:"uni-table-th-row"},[n("v-uni-view",{staticClass:"uni-table-th-content",style:{"justify-content":e.contentAlign},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sort.apply(void 0,arguments)}}},[e._t("default"),e.sortable?n("v-uni-view",{staticClass:"arrow-box"},[n("v-uni-text",{staticClass:"arrow up",class:{active:e.ascending},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.ascendingFn.apply(void 0,arguments)}}}),n("v-uni-text",{staticClass:"arrow down",class:{active:e.descending},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.descendingFn.apply(void 0,arguments)}}})],1):e._e()],2),e.filterType||e.filterData.length?n("dropdown",{attrs:{filterData:e.filterData,filterType:e.filterType},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.ondropdown.apply(void 0,arguments)}}}):e._e()],1)],1)},i=[]},e757:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"recorder"})},i=[]},e9cc:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"uni-table-tr"},["selection"===e.selection&&e.ishead?n("th",{staticClass:"checkbox",class:{"tr-table--border":e.border}},[n("table-checkbox",{attrs:{checked:e.checked,indeterminate:e.indeterminate,disabled:e.disabled},on:{checkboxSelected:function(t){arguments[0]=t=e.$handleEvent(t),e.checkboxSelected.apply(void 0,arguments)}}})],1):e._e(),e._t("default")],2)},i=[]},e9dc:function(e,t,n){var r=n("bfb7");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("561f7a6e",r,!0,{sourceMap:!1,shadowMode:!1})},eb85:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("14d9"),n("7db0"),n("d3b7"),n("13d5"),n("c740"),n("a434"),n("159b");var i=r(n("563e")),a={name:"uniTr",components:{tableCheckbox:i.default},props:{disabled:{type:Boolean,default:!1},keyValue:{type:[String,Number],default:""}},options:{virtualHost:!0},data:function(){return{value:!1,border:!1,selection:!1,widthThArr:[],ishead:!0,checked:!1,indeterminate:!1}},created:function(){var e=this;this.root=this.getTable(),this.head=this.getTable("uniThead"),this.head&&(this.ishead=!1,this.head.init(this)),this.border=this.root.border,this.selection=this.root.type,this.root.trChildren.push(this);var t=this.root.data.find((function(t){return t[e.root.rowKey]===e.keyValue}));t&&(this.rowData=t),this.root.isNodata()},mounted:function(){if(this.widthThArr.length>0){var e="selection"===this.selection?50:0;this.root.minWidth=this.widthThArr.reduce((function(e,t){return Number(e)+Number(t)}))+e}},destroyed:function(){var e=this,t=this.root.trChildren.findIndex((function(t){return t===e}));this.root.trChildren.splice(t,1),this.root.isNodata()},methods:{minWidthUpdate:function(e){this.widthThArr.push(e)},checkboxSelected:function(e){var t=this,n=this.root.data.find((function(e){return e[t.root.rowKey]===t.keyValue}));this.checked=e.checked,this.root.check(n||this,e.checked,n?this.keyValue:null)},change:function(e){var t=this;this.root.trChildren.forEach((function(n){n===t&&t.root.check(t,e.detail.value.length>0)}))},getTable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniTable",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=a},ec4a:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("14d9"),n("e25e"),n("caad"),n("2532");var i=r(n("8295")),a={name:"node",options:{},data:function(){return{ctrl:{}}},props:{name:String,attrs:{type:Object,default:function(){return{}}},childs:Array,opts:Array},components:{node:i.default},mounted:function(){var e=this;if(this.$nextTick((function(){for(e.root=e.$parent;"mp-html"!==e.root.$options.name;e.root=e.root.$parent);})),this.opts[0]){var t;for(t=this.childs.length;t--;)if("img"===this.childs[t].name)break;-1!==t&&(this.observer=uni.createIntersectionObserver(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",(function(t){t.intersectionRatio&&(e.$set(e.ctrl,"load",1),e.observer.disconnect())})))}},beforeDestroy:function(){this.observer&&this.observer.disconnect()},methods:{play:function(e){if(this.root.$emit("play"),this.root.pauseVideo){for(var t=!1,n=e.target.id,r=this.root._videos.length;r--;)this.root._videos[r].id===n?t=!0:this.root._videos[r].pause();if(!t){var i=uni.createVideoContext(n,this);i.id=n,this.root._videos.push(i)}}},imgTap:function(e){var t=this.childs[e.currentTarget.dataset.i];t.a?this.linkTap(t.a):t.attrs.ignore||(t.attrs.src=t.attrs.src||t.attrs["data-src"],this.root.$emit("imgtap",t.attrs),this.root.previewImg&&uni.previewImage({current:parseInt(t.attrs.i),urls:this.root.imgList}))},imgLongTap:function(e){},imgLoad:function(e){var t=e.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[t]||-1===this.ctrl[t])&&this.$set(this.ctrl,t,1)},linkTap:function(e){var t=e.currentTarget?this.childs[e.currentTarget.dataset.i]:{},n=t.attrs||e,r=n.href;this.root.$emit("linktap",Object.assign({innerText:this.root.getText(t.children||[])},n)),r&&("#"===r[0]?this.root.navigateTo(r.substring(1)).catch((function(){})):r.split("?")[0].includes("://")?this.root.copyLink&&window.open(r):uni.navigateTo({url:r,fail:function(){uni.switchTab({url:r,fail:function(){}})}}))},mediaError:function(e){var t=e.currentTarget.dataset.i,n=this.childs[t];if("video"===n.name||"audio"===n.name){var r=(this.ctrl[t]||0)+1;if(r>n.src.length&&(r=0),r<n.src.length)return void this.$set(this.ctrl,t,r)}else"img"===n.name&&this.opts[2]&&this.$set(this.ctrl,t,-1);this.root&&this.root.$emit("error",{source:n.name,attrs:n.attrs,errMsg:e.detail.errMsg})}}};t.default=a},eee7:function(e,t,n){n("02ec");var r=n("23e7"),i=n("67b6");r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},efea:function(e,t,n){var r=n("c9a1");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("6ad01d64",r,!0,{sourceMap:!1,shadowMode:!1})},f611:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-table-scroll",class:{"table--border":e.border,"border-none":!e.noData}},[n("table",{staticClass:"uni-table",class:{"table--stripe":e.stripe},style:{"min-width":e.minWidth+"px"},attrs:{border:"0",cellpadding:"0",cellspacing:"0"}},[e._t("default"),e.noData?n("v-uni-view",{staticClass:"uni-table-loading"},[n("v-uni-view",{staticClass:"uni-table-text",class:{"empty-border":e.border}},[e._v(e._s(e.emptyText))])],1):e._e(),e.loading?n("v-uni-view",{staticClass:"uni-table-mask",class:{"empty-border":e.border}},[n("div",{staticClass:"uni-table--loader"})]):e._e()],2)])},i=[]},faf9:function(e,t,n){var r=n("6722");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("21d0d79c",r,!0,{sourceMap:!1,shadowMode:!1})},fbc9:function(e,t,n){"use strict";var r=n("78ba"),i=n.n(r);i.a},fd6b:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{class:"_block _"+e.name+" "+e.attrs.class,style:e.attrs.style,attrs:{id:e.attrs.id}},[e._l(e.childs,(function(t,r){return["img"===t.name&&(e.opts[1]&&!e.ctrl[r]||e.ctrl[r]<0)?n("v-uni-image",{key:r+"_0",staticClass:"_img",style:t.attrs.style,attrs:{src:e.ctrl[r]<0?e.opts[2]:e.opts[1],mode:"widthFix"}}):e._e(),"img"===t.name?n("img",{key:r+"_1",class:"_img "+t.attrs.class,style:(-1===e.ctrl[r]?"display:none;":"")+t.attrs.style,attrs:{id:t.attrs.id,src:t.attrs.src||(e.ctrl.load?t.attrs["data-src"]:""),"data-i":r},on:{load:function(t){arguments[0]=t=e.$handleEvent(t),e.imgLoad.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.mediaError.apply(void 0,arguments)},longpress:function(t){arguments[0]=t=e.$handleEvent(t),e.imgLongTap.apply(void 0,arguments)},click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.imgTap.apply(void 0,arguments)}}}):t.text?n("v-uni-text",{attrs:{"user-select":t.us,decode:!0}},[e._v(e._s(t.text))]):"br"===t.name?n("v-uni-text",[e._v("\\n")]):"a"===t.name?n("v-uni-view",{class:(t.attrs.href?"_a ":"")+t.attrs.class,style:"display:inline;"+t.attrs.style,attrs:{id:t.attrs.id,"hover-class":"_hover","data-i":r},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.linkTap.apply(void 0,arguments)}}},[n("node",{staticStyle:{display:"inherit"},attrs:{name:"span",childs:t.children,opts:e.opts}})],1):"video"===t.name?n("v-uni-video",{class:t.attrs.class,style:t.attrs.style,attrs:{id:t.attrs.id,autoplay:t.attrs.autoplay,controls:t.attrs.controls,loop:t.attrs.loop,muted:t.attrs.muted,"object-fit":t.attrs["object-fit"],poster:t.attrs.poster,src:t.src[e.ctrl[r]||0],"data-i":r},on:{play:function(t){arguments[0]=t=e.$handleEvent(t),e.play.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.mediaError.apply(void 0,arguments)}}}):"iframe"===t.name?n("iframe",{style:t.attrs.style,attrs:{allowfullscreen:t.attrs.allowfullscreen,frameborder:t.attrs.frameborder,src:t.attrs.src}}):"embed"===t.name?n("embed",{style:t.attrs.style,attrs:{src:t.attrs.src}}):"audio"===t.name?n("v-uni-audio",{class:t.attrs.class,style:t.attrs.style,attrs:{id:t.attrs.id,author:t.attrs.author,controls:t.attrs.controls,loop:t.attrs.loop,name:t.attrs.name,poster:t.attrs.poster,src:t.src[e.ctrl[r]||0],"data-i":r},on:{play:function(t){arguments[0]=t=e.$handleEvent(t),e.play.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.mediaError.apply(void 0,arguments)}}}):"table"===t.name&&t.c||"li"===t.name?n("v-uni-view",{class:"_"+t.name+" "+t.attrs.class,style:t.attrs.style,attrs:{id:t.attrs.id}},["li"===t.name?n("node",{attrs:{childs:t.children,opts:e.opts}}):e._l(t.children,(function(t,r){return n("v-uni-view",{key:r,class:"_"+t.name+" "+t.attrs.class,style:t.attrs.style},["td"===t.name||"th"===t.name?n("node",{attrs:{childs:t.children,opts:e.opts}}):e._l(t.children,(function(t,r){return["td"===t.name||"th"===t.name?n("v-uni-view",{key:r+"_0",class:"_"+t.name+" "+t.attrs.class,style:t.attrs.style},[n("node",{attrs:{childs:t.children,opts:e.opts}})],1):n("v-uni-view",{class:"_"+t.name+" "+t.attrs.class,style:t.attrs.style},e._l(t.children,(function(t,r){return n("v-uni-view",{key:r,class:"_"+t.name+" "+t.attrs.class,style:t.attrs.style},[n("node",{attrs:{childs:t.children,opts:e.opts}})],1)})),1)]}))],2)}))],2):t.c||e.handler.isInline(t.name,t.attrs.style)?2===t.c?n("v-uni-view",{class:"_block _"+t.name+" "+t.attrs.class,style:t.f+";"+t.attrs.style,attrs:{id:t.attrs.id}},e._l(t.children,(function(t,r){return n("node",{key:r,style:t.f,attrs:{name:t.name,attrs:t.attrs,childs:t.children,opts:e.opts}})})),1):n("node",{style:t.f,attrs:{name:t.name,attrs:t.attrs,childs:t.children,opts:e.opts}}):n("v-uni-rich-text",{style:t.f,attrs:{id:t.attrs.id,nodes:[t]}})]}))],2)},i=[]},fd72:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.flex-r[data-v-71ba7593]{display:flex;flex-direction:row}.flex-f[data-v-71ba7593]{flex:1}.a-i-c[data-v-71ba7593]{align-items:center}.j-c-c[data-v-71ba7593]{justify-content:center}.icon-select[data-v-71ba7593]{width:14px;height:16px;border:solid 6px transparent;border-top:solid 6px #ddd;border-bottom:none;background-color:#ddd;background-clip:content-box;box-sizing:border-box}.icon-select.active[data-v-71ba7593]{background-color:#1890ff;border-top-color:#1890ff}.icon-search[data-v-71ba7593]{width:12px;height:16px;position:relative}.icon-search-0[data-v-71ba7593]{border:2px solid #ddd;border-radius:8px;width:7px;height:7px}.icon-search-1[data-v-71ba7593]{position:absolute;top:8px;right:0;width:1px;height:7px;background-color:#ddd;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.icon-search.active .icon-search-0[data-v-71ba7593]{border-color:#1890ff}.icon-search.active .icon-search-1[data-v-71ba7593]{background-color:#1890ff}.icon-calendar[data-v-71ba7593]{color:#ddd;width:14px;height:16px}.icon-calendar-0[data-v-71ba7593]{height:4px;margin-top:3px;margin-bottom:1px;background-color:#ddd;border-radius:2px 2px 1px 1px;position:relative}.icon-calendar-0[data-v-71ba7593]:before, .icon-calendar-0[data-v-71ba7593]:after{content:"";position:absolute;top:-3px;width:4px;height:3px;border-radius:1px;background-color:#ddd}.icon-calendar-0[data-v-71ba7593]:before{left:2px}.icon-calendar-0[data-v-71ba7593]:after{right:2px}.icon-calendar-1[data-v-71ba7593]{height:9px;background-color:#ddd;border-radius:1px 1px 2px 2px}.icon-calendar.active[data-v-71ba7593]{color:#1890ff}.icon-calendar.active .icon-calendar-0[data-v-71ba7593],\r\n.icon-calendar.active .icon-calendar-1[data-v-71ba7593],\r\n.icon-calendar.active .icon-calendar-0[data-v-71ba7593]:before,\r\n.icon-calendar.active .icon-calendar-0[data-v-71ba7593]:after{background-color:#1890ff}.uni-filter-dropdown[data-v-71ba7593]{position:relative;font-weight:400}.dropdown-popup[data-v-71ba7593]{position:absolute;top:100%;background-color:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,.12156862745098039),0 6px 16px rgba(0,0,0,.0784313725490196),0 9px 28px 8px rgba(0,0,0,.050980392156862744);min-width:150px;z-index:1000}.dropdown-popup-left[data-v-71ba7593]{left:0}.dropdown-popup-right[data-v-71ba7593]{right:0}.uni-dropdown-cover[data-v-71ba7593]{position:fixed;left:0;top:0;right:0;bottom:0;background-color:initial;z-index:100}.list[data-v-71ba7593]{margin-top:5px;margin-bottom:5px}.list-item[data-v-71ba7593]{padding:5px 10px;text-align:left}.list-item[data-v-71ba7593]:hover{background-color:#f0f0f0}.check[data-v-71ba7593]{margin-right:5px}.search-area[data-v-71ba7593]{padding:10px}.search-input[data-v-71ba7593]{font-size:12px;border:1px solid #f0f0f0;border-radius:3px;padding:2px 5px;min-width:150px;text-align:left}.input-label[data-v-71ba7593]{margin:10px 10px 5px 10px;text-align:left}.input[data-v-71ba7593]{font-size:12px;border:1px solid #f0f0f0;border-radius:3px;margin:10px;padding:2px 5px;min-width:150px;text-align:left}.opera-area[data-v-71ba7593]{cursor:default;border-top:1px solid #ddd;padding:5px}.opera-area .btn[data-v-71ba7593]{font-size:12px;border-radius:3px;margin:5px;padding:4px 4px}.btn-default[data-v-71ba7593]{border:1px solid #ddd}.btn-default.disable[data-v-71ba7593]{border-color:transparent}.btn-submit[data-v-71ba7593]{background-color:#1890ff;color:#fff}',""]),e.exports=t},fee0:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d3b7"),n("159b"),n("7db0"),n("14d9"),n("c975"),n("99af"),n("c740"),n("4de4"),n("a434");var r={name:"uniTable",options:{virtualHost:!0},emits:["selection-change"],props:{data:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1},type:{type:String,default:""},emptyText:{type:String,default:"没有更多数据"},loading:{type:Boolean,default:!1},rowKey:{type:String,default:""}},data:function(){return{noData:!0,minWidth:0,multiTableHeads:[]}},watch:{loading:function(e){},data:function(e){this.theadChildren;this.theadChildren&&this.theadChildren.rowspan,this.noData=!1}},created:function(){this.trChildren=[],this.thChildren=[],this.theadChildren=null,this.backData=[],this.backIndexData=[]},methods:{isNodata:function(){this.theadChildren;var e=1;this.theadChildren&&(e=this.theadChildren.rowspan),this.noData=this.trChildren.length-e<=0},selectionAll:function(){var e=this,t=1,n=this.theadChildren;this.theadChildren?t=n.rowspan-1:n=this.trChildren[0];var r=this.data&&this.data.length.length>0;n.checked=!0,n.indeterminate=!1,this.trChildren.forEach((function(n,i){if(!n.disabled){if(n.checked=!0,r&&n.keyValue){var a=e.data.find((function(t){return t[e.rowKey]===n.keyValue}));e.backData.find((function(t){return t[e.rowKey]===a[e.rowKey]}))||e.backData.push(a)}i>t-1&&-1===e.backIndexData.indexOf(i-t)&&e.backIndexData.push(i-t)}})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},toggleRowSelection:function(e,t){var n=this;e=[].concat(e),this.trChildren.forEach((function(r,i){var a=e.findIndex((function(e){return"number"===typeof e?e===i-1:e[n.rowKey]===r.keyValue})),o=r.checked;-1!==a&&(r.checked="boolean"===typeof t?t:!r.checked,o!==r.checked&&n.check(r.rowData||r,r.checked,r.rowData?r.keyValue:null,!0))})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},clearSelection:function(){var e=this.theadChildren;this.theadChildren||(e=this.trChildren[0]),e.checked=!1,e.indeterminate=!1,this.trChildren.forEach((function(e){e.checked=!1})),this.backData=[],this.backIndexData=[],this.$emit("selection-change",{detail:{value:[],index:[]}})},toggleAllSelection:function(){var e=[],t=1,n=this.theadChildren;this.theadChildren?t=n.rowspan-1:n=this.trChildren[0],this.trChildren.forEach((function(n,r){n.disabled||r>t-1&&e.push(r-t)})),this.toggleRowSelection(e)},check:function(e,t,n,r){var i=this,a=this.theadChildren;this.theadChildren||(a=this.trChildren[0]);var o=this.trChildren.findIndex((function(t,n){return e===t}));o<0&&(o=this.data.findIndex((function(e){return e[i.rowKey]===n}))+1);this.trChildren.filter((function(e){return!e.disabled&&e.keyValue})).length;if(0!==o){if(t)n&&this.backData.push(e),this.backIndexData.push(o-1);else{var s=this.backData.findIndex((function(e){return e[i.rowKey]===n})),c=this.backIndexData.findIndex((function(e){return e===o-1}));n&&this.backData.splice(s,1),this.backIndexData.splice(c,1)}var l=this.trChildren.find((function(e,t){return t>0&&!e.checked&&!e.disabled}));l?(a.indeterminate=!0,a.checked=!1):(a.indeterminate=!1,a.checked=!0),0===this.backIndexData.length&&(a.indeterminate=!1),r||this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})}else t?this.selectionAll():this.clearSelection()}}};t.default=r}}]); |