(()=>{"use strict";(()=>{function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t="padding: 1px 4px; margin: 5px 0; border-radius: 0 3px 3px 0; color: #fff; background:",n={title:"".concat("padding: 1px 4px; margin: 5px 0; border-radius: 3px 0 0 3px; color: #fff; background:").concat("#606060",";"),content:{info:"".concat(t).concat("#3282b8",";"),success:"".concat(t).concat("#42c02e",";"),warning:"".concat(t).concat("#f07b3f",";"),error:"".concat(t).concat("#ea5455",";")}};function o(t){return function(o,c){var a,i=[];switch(e(c)){case"string":i=i.concat("%c".concat(o,"%c").concat(c),n.title,n.content[t]);break;case"object":Array.isArray(c)?(i=i.concat("%c".concat(o,"%cArray\r\n"),n.title,n.content[t],[c]),console.log("%c".concat(o,"%cArray\r\n"),n.title,n.content[t],c)):i=i.concat("%c".concat(o,"%cObject\r\n"),n.title,n.content[t],c);break;case"number":i=Number.isInteger(c)?i.concat("%c".concat(o,"%c%d"),n.title,n.content[t],c):i.concat("%c".concat(o,"%c%f"),n.title,n.content[t],c)}for(var r=arguments.length,l=new Array(r>2?r-2:0),d=2;d<r;d++)l[d-2]=arguments[d];l.length&&(i=(a=i).concat.apply(a,["\r\n附加信息："].concat(l))),console.log.apply(null,i)}}const c={info:o("info"),success:o("success"),warning:o("warning"),error:o("error")},a=JSON.parse('{"u":"tmc_m_yzj_share","i":"2021/4/21 下午5:48:26"}');!function(e){var t=a.u,n=a.i;function o(e){this._setModel(e)}c.info(t,"版本：".concat(n)),o.prototype={_setModel:function(e){this.model=e},init:function(e){c.info(t,"init",this.model,e),i(this.model,e)},update:function(e){c.info(t,"update",this.model,e),r(this.model,e)},destoryed:function(){c.info(t,"destoryed",this.model)}};var i=function(e,n){var o=e.metaData.ci,a={};if(o&&o.forEach((function(e){a[e.key]=e.value})),a.platformInfo){var i=function(){var e=navigator.userAgent,t={platformName:"未知",platformId:"unknown",deviceId:"",deviceName:"",clientId:"",os:"",brand:"",model:"",lang:""};return window.qing&&(window.qing.isDesktop&&(t.platformId="desktop",t.platformName="Desktop"),window.qing.isMobile&&(t.platformId="mobile",t.platformName="Mobile"),window.qing.isSupportNativeJsBridge&&(t.platformId="yzj",t.platformName="云之家",/deviceId:(.*?);deviceName:(.*?);clientId:(.*?);os:(.*?);brand:(.*?);model:(.*?);lang:(.*?);/.test(e)&&(t.deviceId=RegExp.$1,t.deviceName=RegExp.$2,t.clientId="10200"===RegExp.$3?"iOS":"10201"===RegExp.$3?"Android":"10208"===RegExp.$3?"iPad":"unknown",t.os=RegExp.$4,t.brand=RegExp.$5,t.model=RegExp.$6,t.lang=RegExp.$7)),window.qing.isWX&&(t.platformId="wx",t.platformName="微信")),e.startsWith("Qing")&&(t.platformId="yzj",t.platformName="云之家",/deviceId:(.*?);deviceName:(.*?);clientId:(.*?);os:(.*?);brand:(.*?);model:(.*?);lang:(.*?);/.test(e)&&(t.deviceId=RegExp.$1,t.deviceName=RegExp.$2,t.clientId="10200"===RegExp.$3?"iOS":"10201"===RegExp.$3?"Android":"10208"===RegExp.$3?"iPad":"unknown",t.os=RegExp.$4,t.brand=RegExp.$5,t.model=RegExp.$6,t.lang=RegExp.$7)),t}();c.info(t,"平台信息",i),e.invoke("PlatformInfo",i)}},r=function(e,t){e.invoke,e.dom;var n=t.data,o=e.metaData.ci,a={};o&&o.forEach((function(e){a[e.key]=e.value})),n&&n.event&&"share"===n.event&&(c.info("分享",n,a),qing.call("share",{shareType:n.shareType||"4",appId:n.appId,appName:n.appName,lightAppId:n.lightAppId,title:n.title,content:n.content,thumbData:l(n.thumbData||a.thumbData),webpageUrl:n.webpageUrl,cellContent:n.cellContent,sharedObject:n.sharedObject,callbackUrl:n.callbackUrl,selected:n.selected}))},l=function(e){if(e)return str.replace(/^.+,/,"")};e.register(t,o,{isMulLang:!0})}(window.KDApi)})()})();