var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(D,C,u){if(null==D)throw new TypeError("The 'this' value for String.prototype."+u+" must not be null or undefined");if(C instanceof RegExp)throw new TypeError("First argument to String.prototype."+u+" must not be a regular expression");return D+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(D,C,u){if(D==Array.prototype||D==Object.prototype)return D;D[C]=u.value;return D};
$jscomp.getGlobal=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var C=0;C<D.length;++C){var u=D[C];if(u&&u.Math==Math)return u}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(D,C){var u=$jscomp.propertyToPolyfillSymbol[C];if(null==u)return D[C];u=D[u];return void 0!==u?u:D[C]};$jscomp.polyfill=function(D,C,u,y){C&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(D,C,u,y):$jscomp.polyfillUnisolated(D,C,u,y))};
$jscomp.polyfillUnisolated=function(D,C,u,y){u=$jscomp.global;D=D.split(".");for(y=0;y<D.length-1;y++){var q=D[y];if(!(q in u))return;u=u[q]}D=D[D.length-1];y=u[D];C=C(y);C!=y&&null!=C&&$jscomp.defineProperty(u,D,{configurable:!0,writable:!0,value:C})};
$jscomp.polyfillIsolated=function(D,C,u,y){var q=D.split(".");D=1===q.length;y=q[0];y=!D&&y in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var x=0;x<q.length-1;x++){var p=q[x];if(!(p in y))return;y=y[p]}q=q[q.length-1];u=$jscomp.IS_SYMBOL_NATIVE&&"es6"===u?y[q]:null;C=C(u);null!=C&&(D?$jscomp.defineProperty($jscomp.polyfills,q,{configurable:!0,writable:!0,value:C}):C!==u&&(void 0===$jscomp.propertyToPolyfillSymbol[q]&&(u=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(q):$jscomp.POLYFILL_PREFIX+u+"$"+q),$jscomp.defineProperty(y,$jscomp.propertyToPolyfillSymbol[q],{configurable:!0,writable:!0,value:C})))};$jscomp.polyfill("String.prototype.startsWith",function(D){return D?D:function(C,u){var y=$jscomp.checkStringArgs(this,C,"startsWith");C+="";var q=y.length,x=C.length;u=Math.max(0,Math.min(u|0,y.length));for(var p=0;p<x&&u<q;)if(y[u++]!=C[p++])return!1;return p>=x}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(D){return D?D:function(C,u,y){var q=this.length||0;0>u&&(u=Math.max(0,q+u));if(null==y||y>q)y=q;y=Number(y);0>y&&(y=Math.max(0,q+y));for(u=Number(u||0);u<y;u++)this[u]=C;return this}},"es6","es3");$jscomp.typedArrayFill=function(D){return D?D:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
(function(){function D(u){var y=u.getRootPath();this.setRootPath=function(c){y=c};var q=[],x=[];this.pushJs=function(c){b(x,c);q.push([y,c])};var p=[],l=[];this.pushCss=function(c){b(l,c);p.push([y,c])};var g=[],f=[];this.pushSkinJs=function(c,k){b(f,c+"//"+k);g.push([y,c,k])};var h=[],e=[];this.pushSkinCss=function(c,k){b(e,c+"//"+k);h.push([y,c,k])};var d=[],a=[];this.pushI18n=function(c,k){b(a,c+"//"+k);d.push([y,c,k])};var b=function(c,k){k=y+"|"+k;if(c[k])throw Error("Duplicated: "+k);c[k]=!0};
this.load=function(c){c&&u.setCallback(c);for(c=0;c<q.length;c++){var k=q[c],m=k[0],r=k[1];u.setRootPath(m);u.loadJs(r)}for(c=0;c<p.length;c++)k=p[c],m=k[0],r=k[1],u.setRootPath(m),u.loadCss(r);for(c=0;c<g.length;c++)k=g[c],m=k[0],r=k[1],k=k[2],u.setRootPath(m),u.loadSkinJs(r,k);for(c=0;c<h.length;c++)k=h[c],m=k[0],r=k[1],k=k[2],u.setRootPath(m),u.loadSkinCss(r,k);for(c=0;c<d.length;c++)k=d[c],m=k[0],r=k[1],k=k[2],u.setRootPath(m),u.loadI18n(r,k)}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&
(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});var C=com.kingdee.bos.qing;C.CodeLoader=new function(){var u=this,y=null,q=[],x=!1,p,l="/",g=".",f="pioneer",h="zh_CN",e={},d=[],a=!1,b;this.createSafety=function(){return new D(u)};var c=function(){x=!0;var v=new XMLHttpRequest;v.open("GET",g+"/resources.json?version="+(new Date).getTime(),!0);v.setRequestHeader("Content-type","application/json");v.onreadystatechange=
function(){if(4==v.readyState){if(200==v.status)try{y=JSON.parse(v.responseText)}catch(J){window.console&&console.log(J)}!y&&(y={});for(var B=0;B<q.length;B++){var H=q[B];n(H[0],H[1],H[2])}q=null;x=!1}};v.send()};this.getIconUrl=function(v,B){B&&(v=v+"/skin/"+f+"/res/"+B);return m(g,v)};this.setRootPath=function(v){g=v};this.getRootPath=function(){return g};this.setSkinName=function(v){f=v};this.getSkinName=function(){return f};this.setI18nLocal=function(v){h=v};this.setCdnUrls=function(v){p=v};this.setUrlBase=
function(v){var B=window.location.protocol+"//"+window.location.host+window.location.pathname,H=B.lastIndexOf("/");B=B.substring(0,H);H=B.indexOf(v);if(0<=H)B=B.substring(H+v.length);else throw Error("It must be part of current URL.");l=B};this.setCallback=function(v){k(v)};this.loadJsBatch=function(v,B){k(B);B=!1;for(var H=0;H<v.length;H++){var J=v[H],A=m(g,J);e[A]||(B=!0,r(J,"js"))}B||w()};this.loadJs=function(v,B){k(B);r(v,"js")};this.loadCss=function(v,B){k(B);r(v,"css")};this.loadSkinJs=function(v,
B,H){k(H);r((v?v+"/":"")+"skin/"+f+"/"+B+".js","js")};this.loadSkinCss=function(v,B,H){k(H);r((v?v+"/":"")+"skin/"+f+"/"+B+".css","css")};this.loadI18n=function(v,B,H){k(H);r((v?v+"/":"")+"i18n/"+B+"-"+h+".js","js")};var k=function(v){v&&(!b&&(b=[]),b.push(v))},m=function(v,B){if("."==v){var H=p?p.length:0;if(0==H)H="";else if(1==H)H=p[0];else{for(var J=0,A=0;A<B.length;A++)J+=B.charCodeAt(A);H=p[J%H]}H&&(v=l)}else if("/"==v.charAt(0))H="";else throw Error("Unsupported");J="";y&&(A=y[B])&&(J="?version="+
A);return H+(v?v+"/":"")+B+J},r=function(v,B){y?n(g,v,B):(q.push([g,v,B]),x||c())},n=function(v,B,H){v=m(v,B);d.push([v,H]);a||(a=!0,t())},w=function(){if(b){var v=b;b=null;for(var B=0;B<v.length;B++)(0,v[B])()}},t=function(){if(0<d.length){var v=d.shift(),B=v[0];v=v[1];if(e[B])t();else switch(v){case "js":G(B);break;case "css":E(B);break;default:throw Error("I don't know: "+v);}}else a=!1,w()},G=function(v){var B=document.createElement("script");B.src=v;B.onerror=function(){F(v)};B.onload=function(){z(v)};
document.head.appendChild(B)},E=function(v){var B=document.createElement("link");B.rel="stylesheet";B.href=v;var H=536>navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1"),J="onload"in B;H||!J?(document.head.appendChild(B),setTimeout(function(){I(v,B,H,0)},1)):(J?(B.onerror=function(){F(v)},B.onload=function(){z(v)}):B.onreadystatechange=function(){/loaded|complete/.test(B.readyState)?z(v):F(v)},document.head.appendChild(B))},z=function(v){window.console&&console.log("Loading success: "+
v);e[v]=!0;t()},F=function(v){window.console&&console.error("Loading error: "+v);e[v]=!1;t()},I=function(v,B,H,J){var A=B.sheet;J+=1;if(3E5<J){var K=!0;B=null;z(v)}else{if(H)A&&(K=!0);else if(A)try{A.cssRules&&(K=!0)}catch(L){"NS_ERROR_DOM_SECURITY_ERR"===L.name&&(K=!0)}setTimeout(function(){K?z(v):I(v,B,H,J)},20)}}};C.CommonCodeImporter=new function(){var u=this;this.importRemoteProxy=function(q){q.loadJsBatch(["jquery/jquery.js","common/qing-table.js","common/qing-common.js","common/qing-remote-proxy.js"]);
q.loadSkinJs("common","skin");q.loadI18n("common","qing-common");q.loadSkinCss("common","qing-ui-component")};this.importCode=function(q){q.loadJsBatch("jquery/jquery.js common/qing-table.js common/qing-common.js common/qing-framework-remote.js core/qing-charts.js core/qing-main.js core/qing-scene.js".split(" "))};this.importSkin=function(q){q.loadSkinJs("common","skin");q.loadSkinJs("core","skin");q.loadSkinCss("common","qing-ui-component");q.loadSkinCss("core","qing")};this.importI18n=function(q){q.loadI18n("common",
"qing-common");q.loadI18n("core","qing-core")};this.importDashboardDesignerCode=function(q){u.importCode(q);q.loadJsBatch(["dashboard/dsb-main.js","dashboard/dsb-scene.js"])};this.importDashboardDesignerSkin=function(q){u.importSkin(q);q.loadSkinJs("dashboard","skin");q.loadSkinCss("dashboard","dsb")};this.importDashboardDesignerI18n=function(q){u.importI18n(q);q.loadI18n("dashboard","dsb")};this.importMapDesignerCode=function(q){q.loadJsBatch("jquery/jquery.js common/qing-table.js common/qing-common.js common/qing-framework-remote.js core/qing-charts.js map-designer/map-designer.js".split(" "))};
this.importMapDesignerSkin=function(q){q.loadSkinJs("common","skin");q.loadSkinCss("common","qing-ui-component");q.loadSkinJs("map-designer","skin");q.loadSkinCss("map-designer","map-designer")};this.importMapDesignerI18n=function(q){q.loadI18n("common","qing-common");q.loadI18n("map-designer","map-designer")};this.importDataModelingCode=function(q){q.loadJs("jquery/jquery.js");q.loadJs("common/qing-table.js");q.loadJs("common/qing-common.js");q.loadJs("common/qing-framework-remote.js");q.loadJs("common/qing-schedule.js");
q.loadJs("biz-common/qing-biz-common.js");q.loadJs("data-modeling/qing-data-modeling.js")};this.importDataModelingSkin=function(q){q.loadSkinJs("common","skin");q.loadSkinJs("biz-common","skin");q.loadSkinJs("data-modeling","skin");q.loadSkinCss("common","qing-ui-component");q.loadSkinCss("biz-common","biz-common");q.loadSkinCss("data-modeling","dm-relationview");q.loadSkinCss("data-modeling","dm")};this.importDataModelingI18n=function(q){q.loadI18n("common","qing-common");q.loadJs("common/qing-framework-remote.js");
q.loadI18n("common","qing-schedule");q.loadI18n("biz-common","biz-common");q.loadI18n("data-modeling","qing-dm")};this.importLongerMobileCode=function(q,x){y(q,x);q.loadJs("lightapp/core/qing-lapp-longer-ui.js");q.loadJs("lightapp/scene/qing-lapp-longer-scene.js")};this.importSquareMobileCode=function(q,x){y(q,x);q.loadJs("lightapp/core/qing-lapp-square-ui.js");q.loadJs("lightapp/scene/qing-lapp-square-scene.js")};this.importDsbMobileCode=function(q,x){y(q,x);q.loadJs("dashboard/dsb-main-mobile.js");
q.loadJs("lightapp/dashboard/dsb-widget-ctrl-mobile.js");q.loadJs("dashboard/dsb-scene.js");q.loadJs("lightapp/core/qing-lapp-dsb-ui.js");q.loadJs("lightapp/scene/qing-lapp-dsb-scene.js")};var y=function(q,x){q.loadJs("common/qing-table.js");q.loadJs("common/qing-common.js");q.loadJs("common/qing-framework-remote.js");x?(q.loadJs("core/qing-charts.js"),q.loadJs("core/qing-main.js")):(q.loadJs("core/qing-mobile-charts.js"),q.loadJs("core/qing-mobile-main.js"));q.loadJs("core/qing-scene.js");q.loadJs("lightapp/common/qing-lapp-common.js")};
this.importLappSkin=function(q){q.loadSkinJs("common","skin");q.loadSkinJs("core","skin");q.loadSkinCss("common","qing-ui-component");q.loadSkinCss("core","qing");q.loadCss("lightapp/common/qing-lapp.css")};this.importLappI18n=function(q){q.loadI18n("common","qing-common");q.loadI18n("core","qing-core");q.loadI18n("lightapp/core","qing-lapp-core")};this.lazyImportFunctionProvider=function(q){C.CodeLoader.setCallback(q);C.CodeLoader.loadJs("common/qing-functions.js");C.CodeLoader.loadI18n("common",
"qing-formula")}};C.Seer=new function(){this.getUrlParamValue=function(u){var y=window.location.search,q=u+"=";for(u=-1;!(u=y.indexOf(q,u+1),0>=u);){var x=y.charAt(u-1);if("&"==x||"?"==x)break}return-1!=u?(u+=q.length,q=y.indexOf("&",u),q=-1==q?y.length:q,window.decodeURIComponent(y.substring(u,q))):null}};C.SkinUtil=new function(){var u,y;this.setUrlParamValue=function(q){(q=q?q.split("_"):null)?(u=q[0],y=1<q.length?q[1]:null):y=u=null};this.getUrlParamValue=function(){return u?y?u+"_"+y:u:null};
this.getMainSkinName=function(){return u};this.getSkinColorTheme=function(){return y};this.changeColorTheme=function(q){var x=com.kingdee.bos.qing.common.ColorUtil.decodeStringToRgbArray(q);if(x){var p=com.kingdee.bos.qing.common.ColorUtil,l=p.rgbToHsv(x[0],x[1],x[2]),g=l[0],f=l[1]/100,h=l[2]/100;l=p.hsvToRgb(60<=g&&240>=g?0>g-2?g-2+360:g-2:360<g+2?g+2-360:g+2,Math.round(100*Math.max(.05,f-.18)),Math.round(100*Math.min(1,h+.08)));g=p.hsvToRgb(60<=g&&240>=g?0>g-10?g-10+360:g-10:360<g+10?g+10-360:g+
10,Math.round(100*Math.max(.05,f-.9)),Math.round(100*Math.min(1,h+.4)));p={};p["--color-main"]=q;p["--color-lightish"]="rgb("+l.join(",")+")";p["--color-tint"]="rgba("+x.join(",")+",0.5)";p["--color-pale"]="rgb("+g.join(",")+")";y=q;q=document.body.style;for(var e in p)q.setProperty(e,p[e])}else console&&console.error("Unsupported skin color theme: "+q)}};C.SkinUtil.ORANGE="orange";C.SkinUtil.BLUE="blue";C.SkinUtil.GRAPE="grape";C.SkinUtil.CYAN="cyan";C.SkinUtil.RED="red";(function(){var u=C.Seer.getUrlParamValue("skin");
C.SkinUtil.setUrlParamValue(u);(u=C.SkinUtil.getMainSkinName())&&C.CodeLoader.setSkinName(u);(u=C.Seer.getUrlParamValue("language"))&&C.CodeLoader.setI18nLocal(u);(u=C.Seer.getUrlParamValue("cdnUrl"))&&C.CodeLoader.setCdnUrls(u.split(";"));(u=C.Seer.getUrlParamValue("path"))&&C.CodeLoader.setUrlBase(u)})()})();(function(){function D(d){var a=this;this.getAppType=function(){return d};this.protectedUserAgreementAndDeactivateShown=function(){return!1};this.getJSBridgeUrl=function(){return h.RemoteFrameworkUtil.getResourcePrefix()+a.protectedGetJSBridgeUrl()};this.protectedGetJSBridgeUrl=function(){throw Error("Override");};this.protectedOpen=function(b){throw Error("Override");};this.protectedHideNavTitle=function(){throw Error("Override");};this.protectedCloseWebView=function(){throw Error("Override");};
this.protectedRotateUI=function(b){throw Error("Override");};this.protectedInit=function(b){throw Error("Override");};this.protectedNeedCachePage=function(){throw Error("Override");};this.protectedRedirectToLogin=function(){};this.protectedLoadUserInfo=function(b){};this.protectedCreateIframeUrl=function(b){return b};this.protectedSSORedirect=function(){}}function C(d){D.call(this,d);var a=this,b=!1,c;this.protectedGetJSBridgeUrl=function(){return"third-app/yunzhijia/qingjs.js"};this.protectedOpen=
function(k){b||(b=!0,XuntongJSBridge.call("gotoLightApp",{appId:com.kingdee.bos.qing.lapp.integration.APP_ID,appName:"",urlParam:k}));clearTimeout(c);c=setTimeout(function(){b=!1},1E3)};this.protectedHideNavTitle=function(){XuntongJSBridge.call("setWebViewTitleBar",{isShow:"false"})};this.protectedCloseWebView=function(){XuntongJSBridge.call("closeWebView")};this.protectedRotateUI=function(k){XuntongJSBridge.call("rotateUI",{orientation:k?"landscape":"portrait"},{})};this.protectedInit=function(k){var m=
document.createElement("script"),r=a.getJSBridgeUrl();m.onload=function(){a.protectedHideNavTitle();k&&k()};m.src=r;document.head.appendChild(m)};this.protectedNeedCachePage=function(){return!1};this.protectedLoadUserInfo=function(k){XuntongJSBridge.call("getPersonInfo",{},function(m){m.success?(m=m.data,k(m.openId,m.name,m.photoUrl,m.eid)):$(document.body).html("\u62b1\u6b49\uff0c\u83b7\u53d6\u60a8\u7684\u4fe1\u606f\u5931\u8d25(T_T)")})};this.protectedCreateIframeUrl=function(k){var m=e.getUrlParamValue("ticket");
return k+"&ticket="+m}}function u(d){D.call(this,d);var a=this;this.protectedGetJSBridgeUrl=function(){return"third-app/dingding/dingtalk.open.js"};this.protectedOpen=function(c){dd.biz.util.openLink({url:c,onFail:function(k){alert("dingding open url err! "+k)}})};this.protectedHideNavTitle=function(){dd.biz.navigation.hideBar({hidden:!0,onFail:function(c){alert("dingding hide nav title fail! "+c)}})};this.protectedCloseWebView=function(){dd.biz.navigation.close({onFail:function(c){alert("dingding close web view fail! "+
c)}})};this.protectedRotateUI=function(c){};this.protectedInit=function(c){b(c)};this.protectedNeedCachePage=function(){return!1};var b=function(c){var k=document.createElement("script"),m=a.getJSBridgeUrl();k.onload=function(){var r=e.getUrlParamValue("code");if(r)a.protectedHideNavTitle(),c&&c();else{var n=e.getUrlParamValue("corpid");dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:n,onSuccess:function(w){r=w.code;w=location.href;w+="&code="+r;location.href=w},onFail:function(w){alert("dingding get code err! "+
w)}})})}};k.src=m;document.head.appendChild(k)}}function y(d){D.call(this,d);var a=this,b=!1,c;this.protectedGetJSBridgeUrl=function(){return"third-app/dingding/dingtalk.open.js"};this.protectedOpen=function(k){h.EnvUtil.isMobile()?(b||(b=!0,dd.biz.util.openLink({url:k,onFail:function(m){alert("dingding open url err! "+m)}})),clearTimeout(c),c=setTimeout(function(){b=!1},1500)):location.href=k};this.protectedHideNavTitle=function(){dd.biz.navigation.hideBar({hidden:!0,onFail:function(k){alert("dingding hide nav title fail! "+
k)}})};this.protectedCloseWebView=function(){dd.biz.navigation.close({onFail:function(k){alert("dingding close web view fail! "+k)}})};this.protectedRotateUI=function(k){};this.protectedInit=function(k){var m=document.createElement("script"),r=a.getJSBridgeUrl();m.onload=function(){a.protectedHideNavTitle();k&&k()};m.src=r;document.head.appendChild(m)};this.protectedNeedCachePage=function(){return h.EnvUtil.isMobile()?!1:!0}}function q(d){D.call(this,d);var a=this;this.protectedGetJSBridgeUrl=function(){return"third-app/wxqyh/jweixin-1.2.0.js"};
this.protectedOpen=function(c){location.href=c};this.protectedHideNavTitle=function(){};this.protectedCloseWebView=function(){wx.closeWindow()};this.protectedRotateUI=function(c){};this.protectedInit=function(c){b()};this.protectedNeedCachePage=function(){return!0};var b=function(){var c=a.getJSBridgeUrl(),k=e.getUrlParamValue("corpid"),m=e.getUrlParamValue("agentid"),r=window.location.href,n=document.createElement("script");n.src=c;document.head.appendChild(n);$.ajax({url:h.SERVER_HOST_URL+"tools/getWxqyhJsapiInfos",
type:"get",data:{corpid:k,agentid:m,url:r},dataType:"json",success:function(w){w=w.data;wx.config({beta:!0,debug:!1,appId:k,timestamp:w.timestamp,nonceStr:w.nonceStr,signature:w.signature,jsApiList:["hideAllNonBaseMenuItem","closeWindow"]});wx.ready(function(){wx.hideAllNonBaseMenuItem()});wx.error(function(t){console.error("wx ready error")})},error:function(){console.error("getWxqyhJsapiInfos fail")}})}}function x(d){D.call(this,d);var a=this;this.protectedGetJSBridgeUrl=function(){return"Android"==
com.kingdee.bos.qing.lapp.integration.EnvUtil.getOS()?"third-app/missioncloud/android/cordova.js":"third-app/missioncloud/ios/cordova.js"};this.protectedOpen=function(b){cordova.exec({},{},"MideaCommon","openUrl",[b,{}])};this.protectedHideNavTitle=function(){cordova.exec({},{},"MideaCommon","hideNav",[])};this.protectedCloseWebView=function(){cordova.exec({},{},"MideaCommon","exit",[])};this.protectedRotateUI=function(b){cordova.exec({},{},"MideaCommon","orientation",[b?1:0])};this.protectedInit=
function(b){var c=document.createElement("script"),k=a.getJSBridgeUrl();document.addEventListener("deviceready",function(){a.protectedHideNavTitle();b&&b()});c.src=k;document.head.appendChild(c)};this.protectedNeedCachePage=function(){return!1}}function p(d){D.call(this,d);var a=this;this.protectedGetJSBridgeUrl=function(){return"third-app/welink/hwh5-cloudonline.js"};this.protectedOpen=function(b){window.open(b)};this.protectedHideNavTitle=function(){};this.protectedCloseWebView=function(){HWH5.close()};
this.protectedRotateUI=function(b){};this.protectedInit=function(b){var c=document.createElement("script"),k=a.getJSBridgeUrl();c.onload=function(){a.protectedHideNavTitle();b&&b()};c.src=k;document.head.appendChild(c)};this.protectedNeedCachePage=function(){return!0};this.protectedSSORedirect=function(){var b=document.createElement("script"),c=a.getJSBridgeUrl();b.onload=function(){var k=e.getUrlParamValue("redirectTo"),m=e.getUrlParamValue("clientId");HWH5.getAuthCode({clientId:m}).then(function(r){k=
k+"&code="+r.code;location.replace(k)})};b.src=c;document.head.appendChild(b)}}function l(d){D.call(this,d);var a=this,b=!1,c;this.protectedUserAgreementAndDeactivateShown=function(){return!0};this.protectedGetJSBridgeUrl=function(){return"third-app/wxxcx/jweixin-1.3.2.js"};this.protectedOpen=function(k){b||(b=!0,k=encodeURIComponent(k),wx.miniProgram.navigateTo({url:"../product/product?url="+k}));clearTimeout(c);c=setTimeout(function(){b=!1},1E3)};this.protectedHideNavTitle=function(){};this.protectedCloseWebView=
function(){window.close()};this.protectedRotateUI=function(k){};this.protectedInit=function(k){var m=document.createElement("script"),r=a.getJSBridgeUrl();m.onload=function(){a.protectedHideNavTitle();k&&k()};m.src=r;document.head.appendChild(m)};this.protectedNeedCachePage=function(){return!1};this.protectedRedirectToLogin=function(){wx.miniProgram.redirectTo({url:"../login/login?clearStorage=clearStorage"})}}function g(d){D.call(this,d);this.protectedGetJSBridgeUrl=function(){};this.protectedOpen=
function(a){location.href=a};this.protectedHideNavTitle=function(){};this.protectedCloseWebView=function(){window.close()};this.protectedRotateUI=function(a){};this.protectedInit=function(a){a&&a()};this.protectedNeedCachePage=function(){return!0}}function f(d){D.call(this,d);var a=this;this.protectedGetJSBridgeUrl=function(){return navigator.userAgent.startsWith("kdcloud/")?"third-app/jdy/kdcloud.min.js":"third-app/jdy/qingjs.js"};this.protectedOpen=function(c){b(function(k){var m=c.indexOf("/qing/lappEntrance.do");
if(-1==m)location.href=c;else{var r=k["app-token"];r?location.href=c+"&app-token="+r:(m=c.substring(0,m),$.ajax({headers:{Authorization:"bearer "+k.v7_access_token,accountId:k.accountId,groupName:k.groupName,appUserId:k.userId},url:m+"/qing/auth.do",xhrFields:{withCredentials:!0},type:"get",success:function(n){location.href=c},error:function(n){location.href=c}}))}})};this.protectedHideNavTitle=function(){};this.protectedCloseWebView=function(){XuntongJSBridge.call("closeWebView")};this.protectedRotateUI=
function(c){};this.protectedInit=function(c){var k=document.createElement("script"),m=a.getJSBridgeUrl();k.onload=function(){c&&c()};k.src=m;document.head.appendChild(k)};this.protectedNeedCachePage=function(){return!0};this.protectedSSORedirect=function(){var c=document.createElement("script"),k=a.getJSBridgeUrl();c.onload=function(){var m=e.getUrlParamValue("redirectTo"),r=e.getUrlParamValue("code");b(function(n){var w=n.v7_access_token,t=m+"?code="+r;t=t+"&userId="+n.userId+"&accountId="+n.accountId;
t=t+"&token="+w+"&appType="+a.getAppType();location.replace(t)})};c.src=k;document.head.appendChild(c)};var b=function(c){var k=function(m){m.success?c(m.data):alert("\u8c03\u7528APP\u6865\u5931\u8d25\uff01"+JSON.stringify(m))};navigator.userAgent.startsWith("kdcloud/")?kdcloud.call("getQingLoginParams",function(m){k(m)}):XuntongJSBridge.call("getLoginParams",{},function(m){k(m)})}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&
(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.integration&&(com.kingdee.bos.qing.lapp.integration={});var h=com.kingdee.bos.qing.lapp.integration;h.SERVER_HOST_URL="https://qtest.kingdee.com/qing-lightapp/";h.APP_ID="10954";h.AppType={};h.AppType.YZJ="yzj";h.AppType.DINGDING="dingding";h.AppType.DINGDING_OFFLINE="dingdingoffline";h.AppType.WXQYH=
"wxqyh";h.AppType.MISSIONCLOUD="missioncloud";h.AppType.WELINK="welink";h.AppType.WXXCX="wxxcx";h.AppType.THIRDPARTY="THIRDPARTY";h.AppType.JDY="jdy";var e=com.kingdee.bos.qing.Seer;h.EnvUtil=new function(){var d=this;this.getAppType=function(){return a.getAppType()};this.isYzjApp=function(){return navigator.userAgent.match(/Qing\/.*;/)?!0:!1};this.isYzjDesktop=function(){return navigator.userAgent.match(/cloudhub/)?!0:!1};this.getOS=function(){return navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?
"iOS":navigator.userAgent.match(/Android/i)?"Android":"others"};this.isMobile=function(){var b=d.getOS();return"iOS"==b||"Android"==b};this.isUserAgreementAndDeactivateShown=function(){return a.protectedUserAgreementAndDeactivateShown()};this.open=function(b){e.getUrlParamValue("dev")?location.href=b:a.protectedOpen(b)};this.hideNavTitle=function(){a.protectedHideNavTitle()};this.closeWebView=function(){a.protectedCloseWebView()};this.rotateUI=function(b){a.protectedRotateUI(b)};this.init=function(b){a.protectedInit(b)};
this.needCachePage=function(){return a.protectedNeedCachePage()};this.redirectToLogin=function(){a.protectedRedirectToLogin()};this.loadUserInfo=function(b){e.getUrlParamValue("dev")||a.protectedLoadUserInfo(b)};this.createIframeUrl=function(b){return e.getUrlParamValue("dev")?b:a.protectedCreateIframeUrl(b)};this.startSSORedirect=function(){a.protectedSSORedirect()};this.setEnv=function(b,c){b&&(h.SERVER_HOST_URL=b);c&&(h.APP_ID=c)};-1==location.href.indexOf("https")&&(h.SERVER_HOST_URL=h.SERVER_HOST_URL.replace("https",
"http"));var a=function(){var b=e.getUrlParamValue("appType"),c=com.kingdee.bos.qing.lapp.integration.AppType;if(null==b)return new C(c.YZJ);if("dingding"==b)return new u(c.DINGDING);if("dingdingoffline"==b)return new y(c.DINGDING_OFFLINE);if("wxqyh"==b)return new q(c.WXQYH);if("missioncloud"==b)return new x(c.MISSIONCLOUD);if("welink"==b)return new p(c.WELINK);if("wxxcx"==b)return new l(c.WXXCX);if("thirdparty"==b)return new g(c.THIRDPARTY);if("jdy"==b)return new f(c.JDY);throw Error("Unknown app type.");
}()};h.RemoteFrameworkUtil=new function(){var d,a,b,c,k,m,r="";this.setRemoteUrlCreator=function(n){d=n};this.setImageUrlCreator=function(n){a=n};this.setDownloadImageUrlCreator=function(n){b=n};this.setSharedDownloadImageUrlCreator=function(n){c=n};this.setShareWebpageUrlCreator=function(n){k=n};this.setShareCallbackUrlCreator=function(n){m=n};this.createRemoteUrl=function(n,w,t){return d?d(n,w):h.SERVER_HOST_URL+n+"/"+w+(t?"":".do")};this.createImageUrl=function(n){return a?a(n):h.SERVER_HOST_URL+
n};this.createDownloadImageUrl=function(n){return b?b(n):h.SERVER_HOST_URL+"image/downloadImage?path="+n};this.createSharedDownloadImageUrl=function(n){return c?c(n):h.SERVER_HOST_URL+"image/downloadImage?path="+n};this.createShareWebpageUrl=function(n){return k?k():n?h.SERVER_HOST_URL+"sharing/getShareUrlById.do":h.SERVER_HOST_URL+"share.html"};this.createShareCallbackUrl=function(n){return m?m():n?h.SERVER_HOST_URL+"sharing/add":h.SERVER_HOST_URL+"sharing/addShare"};this.setResourcePrefix=function(n){r=
n};this.getResourcePrefix=function(){return r}}})();(function(){var D=new function(){this.initEnv=function(){var q=com.kingdee.bos.qing.Seer,x=q.getUrlParamValue("path");x=x?x:"/ierp";var p=x+"/qing/lappPrivateInfo.do";p=u(p);var l=x+"/qing/lappEntrance.do";l=u(l);var g=x+"/qing/loadImg.do";g=u(g);var f=x+"/auth/qing/loadLappImg.do";f=u(f);var h=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil;h.setResourcePrefix("lightapp-private/");h.setRemoteUrlCreator(function(e,d){e=C.encode("/"+e+"/"+d);e=y(p,"serviceType",e);(d=q.getUrlParamValue("appType"))||
(d="yzj");return e=y(e,"appType",d)});h.setImageUrlCreator(function(e){return x+"/qinganalysis/lightapp-private/"+e});h.setDownloadImageUrlCreator(function(e){e=y(g,"fileName",e);return e=y(e,"fileType","lapp-thumbnail")});h.setSharedDownloadImageUrlCreator(function(e){e=y(f,"fileName",e);return e=y(e,"fileType","lapp-thumbnail")});h.setShareWebpageUrlCreator(function(){return y(l,"qingLightAppShare","true")});h.setShareCallbackUrlCreator(function(){var e=C.encode("/sharing/add"),d=q.getUrlParamValue("access_token");
e=y(p,"serviceType",e);return e=y(e,"access_token",d)})};var u=function(q){var x=com.kingdee.bos.qing.Seer.getUrlParamValue("kdcdc");x&&(q=y(q,"kdcdc",x));return q},y=function(q,x,p){q+=0>q.indexOf("?")?"?":"&";return q=q+x+"="+window.encodeURIComponent(p)}},C=new function(){this.encode=function(u){if(void 0==u||""==u)return"";u=u.replace("/\r\ng","\n");for(var y="",q=0;q<u.length;q++){var x=u.charCodeAt(q);128>x?y+=String.fromCharCode(x):(127<x&&2048>x?y+=String.fromCharCode(x>>6|192):(y+=String.fromCharCode(x>>
12|224),y+=String.fromCharCode(x>>6&63|128)),y+=String.fromCharCode(x&63|128))}u=y;y="";for(var p,l,g,f,h=0;h<u.length;)p=u.charCodeAt(h++),q=u.charCodeAt(h++),x=u.charCodeAt(h++),l=p>>2,p=(p&3)<<4|q>>4,g=(q&15)<<2|x>>6,f=x&63,isNaN(q)?g=f=64:isNaN(x)&&(f=64),y=y+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(p)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f);
return y}};D.initEnv()})();(function(){function D(){var p=[];this.addListener=function(l){for(var g=!1,f=p.length-1;0<=f;f--)if(l==p[f]){g=!0;break}g||p.push(l)};this.removeListener=function(l){for(var g=p.length-1;0<=g;g--)if(l==p[g]){p.splice(g,1);break}};this.removeAllListener=function(){p.length=0};this.fireEvent=function(l){for(var g=0;g<p.length;g++)l(p[g])}}function C(){this.setFormatString=function(p){throw Error("Override me.");};this.format=function(p){throw Error("Override me.");};this.protectedMethod={addZeroBefore:function(p,
l){for(var g="",f=0;f<l;f++)g+="0";return g+p},addZeroAfter:function(p,l){for(var g="",f=0;f<l;f++)g+="0";return p+g}}}function u(){function p(){var a=!1,b=0,c=0,k=0,m=".",r=",",n="",w="",t,G,E;this.setNoNumber=function(z){a=z};this.setIgnoreNegativeSign=function(z){t=z};this.setRoundingMode=function(z){G=z};this.setDecimal=function(z){b=z};this.getDecimal=function(){return b};this.setGrouping=function(z){c=z};this.setUnitPower=function(z){k=z};this.setDecimalSymbol=function(z){m=z};this.setGroupingSymbol=
function(z){r=z};this.setPrefix=function(z){n=z};this.setSuffix=function(z){w=z};this.format=function(z){if(a)z="";else{var F=""+z;z="";"-"==F.charAt(0)&&(F=F.substring(1),z="-");var I=F.indexOf(".");0<=I?F=F.substring(0,I)+F.substring(I+1):I=F.length;var v=I-k;0>v?F=g.addZeroBefore(F,0-v):v>F.length&&(F=g.addZeroAfter(F,v-F.length));I=F.substring(0,v);F=F.substring(v);z=[z,I,F];I=z[0];F=z[2];E=!1;v=b-F.length;if(0<v)F=g.addZeroAfter(F,v);else if(0>v){v=parseInt(F.charAt(b));I=I?!0:!1;var B=!1;switch(G){case u.RoundingMode.HALF_UP:B=
4<v;break;case u.RoundingMode.CEILING:B=0<v&&!I;break;case u.RoundingMode.FLOOR:B=0<v&&I}I=B;F=F.substring(0,b);I&&(0==b?E=!0:(I=F.length,F=""+(parseInt(F,10)+1),F.length>I?(F=F.substring(1),E=!0):F.length<I&&(F=g.addZeroBefore(F,I-F.length))))}I=z[0];z=z[1];if(15<z.length){for(;1<z.length&&"0"==z.charAt(0);)z=z.substring(1);if(E)for(v=z.length-1;0<=v;)if(B=parseInt(z.charAt(v)),B+=1,9<B&&(B=0),z=z.substring(0,v)+B+z.substring(v+1),0==v&&(z="1"+z),0==B)v--;else break}else z=0==z.length?0:parseInt(z,
10),z=(E?z+1:z)+"";if(0<c)for(v=z.length-c;0<v;v-=c)z=z.substring(0,v)+r+z.substring(v);z=(t?"":I)+z;z+=F?m+F:""}return n+z+w}}C.call(this);var l=this,g=this.protectedMethod,f,h,e;this.setFormatString=function(a){d(a)};this.format=function(a,b){for(var c,k=0;k<h.length;k++)if(!f||!f[k]||f[k](a)){c=h[k];if(null==c)return""+a;"string"==typeof c&&(c=l.parseString(c),c.setIgnoreNegativeSign(e[k]),h[k]=c);break}c.setRoundingMode(b?b:u.RoundingMode.HALF_UP);return c.format(a)};var d=function(a){if(a){var b=
a.split(";");3<=b.length?(f=[function(c){return 0==parseFloat(c)},function(c){return 0>parseFloat(c)},null],h=[b[2],b[1],b[0]],e=[!1,!0,!1]):2==b.length?(f=[function(c){return 0>parseFloat(c)},null],h=[b[1],b[0]],e=[!0,!1]):(f=null,h=[a],e=[!1])}else f=null,h=[null]};this.parseString=function(a){var b=new p,c=a.search(/\{-?\d+\}/);if(0<=c){var k=a.indexOf("}",c),m=parseInt(a.substring(c+1,k));a=a.substring(0,c)+a.substring(k+1);b.setUnitPower(m)}var r=-1,n=-1;c=-1;var w=a.indexOf("#");if(0<=w){n=
a.lastIndexOf("#");r=null;for(k=w+1;k<n;k++){m=a.charAt(k);if(null!=r&&"#"!=m){r=null;c=-1;break}"#"!=m&&(r=m,c=k)}null!=r&&b.setGroupingSymbol(r);r=w;n+=1}w=-1;var t=a.indexOf("0");if(0<=t){var G=a.lastIndexOf("0"),E=null;for(k=t+1;k<G;k++){m=a.charAt(k);if(null!=E&&"0"!=m){E=null;w=-1;break}"0"!=m&&(E=m,w=k)}null!=E&&(b.setDecimalSymbol(E),b.setDecimal(G-w));r=0>r?t:Math.min(r,t);n=Math.max(n,G+1)}0<=r?b.setPrefix(a.substring(0,r)):(b.setPrefix(a),b.setNoNumber(!0));0<=n&&b.setSuffix(a.substring(n));
0<=c&&(0<=w?b.setGrouping(w-c-1):b.setGrouping(n-c-1));return b}}function y(){C.call(this);var p=this.protectedMethod,l="january february march april may june july august september october november december".split(" "),g="sunday monday tuesday wednesday thursday friday saturday".split(" "),f=["am","pm"],h=x.MLS,e;this.setFormatString=function(b){for(var c=[],k=null,m="",r=!1,n=0;n<b.length;n++){var w=b.charAt(n);r?"'"==w?(r=!1,m&&c.push([!1,m]),m=""):m+=w:"'"==w&&0<=b.indexOf("'",n+1)?(r=!0,m&&c.push([!0,
m]),m="",k=null):(k&&w!=k?(m&&c.push([!0,m]),m=w):m+=w,k=w)}c.push([!0,m]);e=c};this.format=function(b){var c=b;var k=null;c instanceof Date?k=c:"string"==typeof c?(c=c.replace(/-/g,"/"),k=new Date(c)):"number"==typeof c&&(k=new Date(c));if(c=k){b=e;k="";for(var m=0;m<b.length;m++){var r=b[m],n=r[1],w=n.length;switch(r[0]?n.charAt(0):""){case "y":r=w;n=c.getFullYear()+"";n=a(n,r,!1);r=n=d(n,r);break;case "M":r=w;n=c.getMonth();2<r?(n=l[n],n=h.get(n,n),4>r&&(n=a(n,3,!0))):n=d(n+1+"",r);r=n;break;case "d":r=
w;n=c.getDate()+"";r=n=d(n,r);break;case "H":r=w;n=c.getHours()+"";r=n=d(n,r);break;case "m":r=w;n=c.getMinutes()+"";r=n=d(n,r);break;case "s":r=w;n=c.getSeconds()+"";r=n=d(n,r);break;case "a":r=c.getHours();r=f[12>r?0:1];r=h.get(r,r);break;case "h":r=w;n=c.getHours()%12;r=d((0==n?12:n)+"",r);break;case "E":r=w;n=c.getDay();n=g[n];n=h.get(n,n);4>r&&(n=a(n,3,!0));r=n;break;default:r=n}k+=r}c=k}else c=b;return c};var d=function(b,c){var k=b.length;k<c&&(b=p.addZeroBefore(b,c-k));return b},a=function(b,
c,k){var m=b.length;m>c&&(b=k?b.substring(0,c):b.substring(m-c));return b}}function q(){var p=q.PERIOD_DAY,l=null,g=0,f=!1,h=null;this.setPeriod=function(e){p=e};this.getPeriod=function(){return p};this.setWhichPeriod=function(e){l=e};this.getWhichPeriod=function(){return l};this.setFromNowOn=function(e){g=e};this.getFromNowOn=function(){return g};this.setUpToNow=function(e){f=e};this.getUpToNow=function(){return f};this.setAnchor=function(e){h=e};this.getAnchor=function(){return h};this.toJsonObject=
function(){var e={};e.period=p;e.whichPeriod=l;e.fromNowOn=g;e.upToNow=f;e.anchor=h&&h instanceof Date?h.getTime():h;return e};this.fromJsonObject=function(e){if(e&&(p=e.hasOwnProperty("period")?e.period:p,l=e.hasOwnProperty("whichPeriod")?e.whichPeriod:null,g=e.hasOwnProperty("fromNowOn")?e.fromNowOn:g,f=e.hasOwnProperty("upToNow")?e.upToNow:f,e=e.hasOwnProperty("anchor")?parseInt(e.anchor):null,!isNaN(e)&&null!=e)){var d=new Date;d.setTime(e);h=d}}}"undefined"==typeof com&&(com={});"undefined"==
typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.common&&(com.kingdee.bos.qing.common={});var x=com.kingdee.bos.qing.common;x.MLS=new function(){var p;this.hookAccessor=function(l){p=l};this.get=function(l,g){return p?p.get(l,g):g}};x.Util=new function(){this.decodeParamFromUrl=function(l,g){var f=g+"=";for(g=-1;!(g=l.indexOf(f,g+1),0>=g);){var h=
l.charAt(g-1);if("&"==h||"?"==h)break}return-1!=g?(g+=f.length,f=l.indexOf("&",g),f=-1==f?l.length:f,window.decodeURIComponent(l.substring(g,f))):null};this.appendParamToUrl=function(l,g,f){l+=0>l.indexOf("?")?"?":"&";return l=l+g+"="+window.encodeURIComponent(f)};this.setCookie=function(l,g,f){var h=new Date;h.setTime(h.getTime()+864E5*f);f="expires="+h.toUTCString();document.cookie=l+"="+g+"; "+f+";path=/"};this.getCookie=function(l){l+="=";for(var g=document.cookie.split(";"),f=0;f<g.length;f++){for(var h=
g[f];" "==h.charAt(0);)h=h.substring(1);if(0==h.indexOf(l))return h.substring(l.length,h.length)}return""};this.isIEBrowser=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("msie")?!0:!1};this.createUUID=function(){for(var l=[],g=0;36>g;g++)l[g]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);l[14]="4";l[19]="0123456789abcdef".substr(Math.floor(4*Math.random())+8,1);l[8]=l[13]=l[18]=l[23]="-";return l.join("")};this.cleanInvalidChar=function(l,g){for(var f=!1,h=l.length-1;0<=
h;h--){var e=l.charCodeAt(h);if(55295<e&&57344>e||32>e&&9!=e&&10!=e&&13!=e)l=l.substring(0,h)+l.substring(h+1),f=!0}f&&g(l);return f};this.formatDate=function(l,g){var f=new y;f.setFormatString(l?l:"yyyy-MM-dd HH:mm:ss");return f.format(g?g:new Date)};var p=/^[a-zA-Z][a-zA-Z0-9_]*$/;this.checkVariableNaming=function(l){return p.test(l)}};x.BrowserUtil=new function(){var p,l;this.getBrowserName=function(){!p&&g();return p};this.getBrowserVersion=function(){!l&&g();return l};var g=function(){var f=
window.navigator.userAgent.toLowerCase();0<=f.indexOf("edge")?(p="Edge",l=f.match(/edge\/([\d.]+)/)[1]):0<=f.indexOf("chrome")?(p="Chrome",l=f.match(/chrome\/([\d.]+)/)[1]):0<=f.indexOf("safari")?(p="Safari",l=f.match(/version\/([\d.]+)/)[1]):0<=f.indexOf("firefox")?(p="FireFox",l=f.match(/firefox\/([\d.]+)/)[1]):0<=f.indexOf("msie")?(p="IE",l=f.match(/msie ([\d.]+)/)[1]):0<=f.indexOf("trident")?(p="IE",l="11"):0<=f.indexOf("opera")?(p="Opera",l=f.match(/opera.([\d.]+)/)[1]):(p="Other unknown",l=
"?")}};x.FullScreenHelper=new function(){var p=this,l,g,f=[],h=function(){l||(l=new D,void 0!==document.onwebkitfullscreenchange?document.onwebkitfullscreenchange=function(b){e(document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)}:void 0!==document.onmsfullscreenchange?document.onmsfullscreenchange=function(b){e(document.msFullscreenElement)}:void 0!==document.onmozfullscreenchange?document.onmozfullscreenchange=function(b){e(document.mozFullscreenElement||document.fullscreenElement)}:
document.addEventListener("fullscreenchange",function(b){e(document.fullscreenElement)}));return l},e=function(b){b||(f=[]);d()};this.addChangedListener=function(b){h().addListener(b)};this.removeChangedListener=function(b){h().removeListener(b)};var d=function(){var b=0<f.length?f[f.length-1]:null;l.fireEvent(function(c){c(b)})};this.request=function(b){a()?(g&&g(),f.push(b),1<f.length?d():(b=document.body,b.requestFullScreen?b.requestFullScreen():b.webkitRequestFullScreen?b.webkitRequestFullScreen():
b.msRequestFullscreen?b.msRequestFullscreen():b.mozRequestFullScreen&&b.mozRequestFullScreen())):window.console&&window.console.error("Unsupport full-screen.")};var a=function(){return document.body.requestFullScreen||document.body.webkitRequestFullScreen||document.body.msRequestFullscreen||document.body.mozRequestFullScreen?!0:!1};this.exit=function(){if(a()){f.pop();if(0<f.length)return d(),!0;p.exitAll();return!1}};this.exitAll=function(){document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?
document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()};this.setRequestListener=function(b){g=b}};x.DomUtil=new function(){this.getCurrentTargetPosition=function(l){var g=l.originalEvent;return void 0==l.offsetX&&void 0==l.layerX&&void 0!=g?[void 0==g.offsetX?g.layerX:g.offsetX,void 0==g.offsetY?g.layerY:g.offsetY]:[void 0==l.offsetX?l.layerX:l.offsetX,void 0==l.offsetY?l.layerY:l.offsetY]};this.upwardCoordinate=
function(l,g,f){for(var h=f.scrollLeft-f.clientLeft,e=f.scrollTop-f.clientTop;l!=f;){if(l==document.body)throw Error("Not immediate family.");var d=l.parentNode;h+=d.clientLeft-d.scrollLeft+l.offsetLeft;e+=d.clientTop-d.scrollTop+l.offsetTop;l=d}return[h+g[0],e+g[1]]};this.upwardSearch=function(l,g,f){for(;0<l.length&&l[0]!=g[0];){if(f(l))return l;l=l.parent()}return null};this.upwardSearchHasClass=function(l,g,f){return this.upwardSearch(l,g,function(h){return h.hasClass(f)})};this.upwardSearchHasData=
function(l,g,f){return this.upwardSearch(l,g,function(h){return h.data(f)})};this.isInDomTree=function(l){for(var g=l;g!=document.body;)if(g=g.parentNode,!g||g===l)return!1;return!0};this.isDescendent=function(l,g){for(;l&&l!=document.body;){if(l==g)return!0;l=l.parentNode}return!1};this.layoutCtrl=function(l,g,f,h,e){var d={position:"absolute"};d.left=g;d.top=f;d.width=h;d.height=e;l.css(d)};this.layoutCtrlWithLRTB=function(l,g,f,h,e,d,a){var b={position:"absolute"};(g||0===g)&&(b.left=g);(f||0===
f)&&(b.right=f);(h||0===h)&&(b.width=h);(e||0===e)&&(b.top=e);(d||0===d)&&(b.bottom=d);(a||0===a)&&(b.height=a);l.css(b)};this.layoutCtrlCenterAlign=function(l,g){var f={position:"absolute",left:"50%"};f["margin-left"]=-(g>>1)+"px";f.width=g+"px";l.css(f)};this.layoutCtrlMiddleAlign=function(l,g){var f={position:"absolute",top:"50%"};f["margin-top"]=-(g>>1)+"px";f.height=g+"px";f["line-height"]=g+"px";l.css(f)};this.makeTextOmissible=function(l){l.css({overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"})};
this.makeSelectable=function(l,g){var f=g?"":"none";l.css({"user-select":f,"-webkit-user-select":f,"-moz-user-select":f,"-ms-user-select":f,"-o-user-select":f});if(g)l.off("selectstart",p);else l.on("selectstart",p)};var p=function(l){return!1}};x.Base64Util=new function(){this.encode=function(p){if(void 0==p||""==p)return"";p=p.replace("/\r\ng","\n");for(var l="",g=0;g<p.length;g++){var f=p.charCodeAt(g);128>f?l+=String.fromCharCode(f):(127<f&&2048>f?l+=String.fromCharCode(f>>6|192):(l+=String.fromCharCode(f>>
12|224),l+=String.fromCharCode(f>>6&63|128)),l+=String.fromCharCode(f&63|128))}p=l;l="";for(var h,e,d,a,b=0;b<p.length;)h=p.charCodeAt(b++),g=p.charCodeAt(b++),f=p.charCodeAt(b++),e=h>>2,h=(h&3)<<4|g>>4,d=(g&15)<<2|f>>6,a=f&63,isNaN(g)?d=a=64:isNaN(f)&&(a=64),l=l+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);
return l};this.decode=function(p){var l="",g=0;for(p=p.replace(/[^A-Za-z0-9\+\/=]/g,"");g<p.length;){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(g++));var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(g++));var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(g++));var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(p.charAt(g++));f=f<<2|h>>4;
h=(h&15)<<4|e>>2;var a=(e&3)<<6|d;l+=String.fromCharCode(f);64!=e&&(l+=String.fromCharCode(h));64!=d&&(l+=String.fromCharCode(a))}p=l;l="";for(e=0;e<p.length;)d=p.charCodeAt(e),128>d?(l+=String.fromCharCode(d),e++):191<d&&224>d?(g=p.charCodeAt(e+1),l+=String.fromCharCode((d&31)<<6|g&63),e+=2):(g=p.charCodeAt(e+1),f=p.charCodeAt(e+2),l+=String.fromCharCode((d&15)<<12|(g&63)<<6|f&63),e+=3);return l}};x.Base32Util=new function(){this.encode=function(p){if(void 0==p||""==p)return"";p=p.replace("/\r\ng",
"\n");for(var l="",g=0;g<p.length;g++){var f=p.charCodeAt(g);128>f?l+=String.fromCharCode(f):(127<f&&2048>f?l+=String.fromCharCode(f>>6|192):(l+=String.fromCharCode(f>>12|224),l+=String.fromCharCode(f>>6&63|128)),l+=String.fromCharCode(f&63|128))}p=l;l="";for(var h,e,d,a,b,c,k,m,r,n,w=0;w<p.length;)h=p.charCodeAt(w++),g=p.charCodeAt(w++),f=p.charCodeAt(w++),e=p.charCodeAt(w++),d=p.charCodeAt(w++),a=h>>3,h=(h&7)<<2|g>>6,b=(g&63)>>1,c=(g&1)<<4|f>>4,k=(f&15)<<1|e>>7,m=(e&127)>>2,r=(e&3)<<3|d>>5,n=d&
31,isNaN(g)?b=c=k=m=r=n=32:isNaN(f)?k=m=r=n=32:isNaN(e)?m=r=n=32:isNaN(d)&&(n=32),l=l+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(a)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(h)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(b)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(c)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(k)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(m)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(r)+"ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".charAt(n);return l};this.decode=function(p){var l="",g=0;
for(p=p.replace(/[^A-Z3-9_]/g,"");g<p.length;){var f="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));var h="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));var e="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));var d="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));var a="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));var b="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));var c="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));
var k="ABCDEFGHIJKLMNPQRSTUVWXYZ3456789_".indexOf(p.charAt(g++));f=f<<3|(h&31)>>2;h=(h&3)<<6|e<<1|d>>4;d=(d&15)<<4|a>>1;var m=(a&1)<<7|b<<2|c>>3;c=(c&7)<<5|k;l+=String.fromCharCode(f);32!=e&&(l+=String.fromCharCode(h));32!=a&&(l+=String.fromCharCode(d));32!=b&&(l+=String.fromCharCode(m));32!=k&&(l+=String.fromCharCode(c))}p=l;l="";for(e=0;e<p.length;)a=p.charCodeAt(e),128>a?(l+=String.fromCharCode(a),e++):191<a&&224>a?(b=p.charCodeAt(e+1),l+=String.fromCharCode((a&31)<<6|b&63),e+=2):(b=p.charCodeAt(e+
1),k=p.charCodeAt(e+2),l+=String.fromCharCode((a&15)<<12|(b&63)<<6|k&63),e+=3);return l}};x.ColorUtil=new function(){var p=/^rgba\(\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(0|1|0\.\d*|1\.0*)\s*\)$/i,l=/^rgb\(\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*,\s*(25[0-5]|2[0-4][0-9]|[0-1]?\d?\d)\s*\)$/i,g=/^hsl\(\s*(360|3[0-5][0-9]|[0-2]?\d?\d)\s*,\s*(100|\d?\d)%\s*,\s*(100|\d?\d)%\s*\)$/i,
f=/^hsla\(\s*(360|3[0-5][0-9]|[0-2]?\d?\d)\s*,\s*(100|\d?\d)%\s*,\s*(100|\d?\d)%\s*,\s*(0|1|0\.\d*|1\.0*)\s*\)$/i,h=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,e=/^#([a-f\d])([a-f\d])([a-f\d])$/i,d=this;this.isHexRgb=function(a){return h.test(a)};this.isSimpleHexRgb=function(a){return e.test(a)};this.isFunctionRgb=function(a){return l.test(a)};this.isFunctionRgba=function(a){return p.test(a)};this.isFunctionHsl=function(a){return g.test(a)};this.isFunctionHsla=function(a){return f.test(a)};this.decodeHexRgb=
function(a){a=h.exec(a);return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]};this.decodeSimpleHexRgb=function(a){a=e.exec(a);return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]};this.decodeFunctionRgb=function(a){a=l.exec(a);return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]};this.decodeFunctionRgba=function(a){a=p.exec(a);return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),parseFloat(a[4])]};this.decodeFunctionHsl=function(a){a=g.exec(a);return[parseInt(a[1]),
parseInt(a[2]),parseInt(a[3])]};this.decodeFunctionHsla=function(a){a=f.exec(a);return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3]),parseFloat(a[4])]};this.decodeStringToRgbArray=function(a){return d.isHexRgb(a)?d.decodeHexRgb(a):d.isSimpleHexRgb(a)?d.decodeSimpleHexRgb(a):d.isFunctionRgb(a)?d.decodeFunctionRgb(a):d.isFunctionHsl(a)?(a=d.decodeFunctionHsl(a),d.hslToRgb(a[0],a[1],a[2])):d.isFunctionRgba(a)?(a=d.decodeFunctionRgba(a),[a[0],a[1],a[2]]):d.isFunctionHsla(a)?(a=d.decodeFunctionHsla(a),
d.hslToRgb(a[0],a[1],a[2])):null};this.decodeStringToRgbaArray=function(a){var b=null;d.isHexRgb(a)?(b=d.decodeHexRgb(a),b.push(1)):d.isSimpleHexRgb(a)?(b=d.decodeSimpleHexRgb(a),b.push(1)):d.isFunctionRgb(a)?(b=d.decodeFunctionRgb(a),b.push(1)):d.isFunctionHsl(a)?(b=d.decodeFunctionHsl(a),b=d.hslToRgb(b[0],b[1],b[2]),b.push(1)):d.isFunctionRgba(a)?b=d.decodeFunctionRgba(a):d.isFunctionHsla(a)&&(a=d.decodeFunctionHsla(a),b=d.hslToRgb(a[0],a[1],a[2]),b.push(a[3]));return b};this.rgbToHsl=function(a,
b,c){a/=255;b/=255;c/=255;var k=Math.max(a,b,c),m=Math.min(a,b,c),r=(k+m)/2;if(k==m)var n=m=0;else{var w=k-m;m=.5>=r?w/(k+m):w/(2-k-m);switch(k){case a:n=(b-c)/w;break;case b:n=(c-a)/w+2;break;case c:n=(a-b)/w+4}n*=60;0>n&&(n+=360)}return[Math.round(n),Math.round(100*m),Math.round(100*r)]};this.hslToRgb=function(a,b,c){a/=360;b/=100;c/=100;if(0==b)c=b=a=Math.round(255*c);else{var k=function(n,w,t){0>t&&(t+=1);1<t&&--t;return t<1/6?n+6*(w-n)*t:.5>t?w:t<2/3?n+(w-n)*(2/3-t)*6:n},m=.5>c?c*(1+b):c+b-c*
b,r=2*c-m;c=Math.round(255*k(r,m,a+1/3));b=Math.round(255*k(r,m,a));a=Math.round(255*k(r,m,a-1/3))}return[c,b,a]};this.rgbToHsv=function(a,b,c){a/=255;b/=255;c/=255;var k=Math.max(a,b,c),m=Math.min(a,b,c);if(k==m)var r=0;else{var n=k-m;switch(k){case a:r=(b-c)/n;break;case b:r=(c-a)/n+2;break;case c:r=(a-b)/n+4}r*=60;0>r&&(r+=360)}return[Math.round(r),Math.round(100*(0==k?0:1-m/k)),Math.round(100*k)]};this.hsvToRgb=function(a,b,c){b/=100;c/=100;var k=Math.floor(a/60)%6,m=a/60-k;a=c*(1-b);var r=c*
(1-m*b);b=c*(1-(1-m)*b);switch(k){case 0:var n=c;var w=b;var t=a;break;case 1:n=r;w=c;t=a;break;case 2:n=a;w=c;t=b;break;case 3:n=a;w=r;t=c;break;case 4:n=b;w=a;t=c;break;case 5:n=c,w=a,t=r}return[Math.round(255*n),Math.round(255*w),Math.round(255*t)]};this.withOpacityToRgba=function(a,b){var c=d.decodeStringToRgbArray(a);if(c)for(c.push(b),a="rgba(#0,#1,#2,#3)",b=0;4>b;b++)a=a.replace("#"+b,c[b]);return a};this.splitRgbAndOpacity=function(a){var b=1,c=d.decodeStringToRgbaArray(a);if(c){a="rgb(#0,#1,#2)";
for(b=0;3>b;b++)a=a.replace("#"+b,c[b]);b=c[3]}return[a,b]}};x.CssUtil=new function(){var p=["","-ms-","-moz-","-webkit-","-o-"];this.rotate=function(l,g){var f=l.css;g="rotate("+g+"deg)";for(var h={},e=0;e<p.length;e++)h[p[e]+"transform"]=g;f.call(l,h)}};x.TextMeasurer=function(){var p,l;this.setFontSize=function(f,h){g().font="bold "+f+"px "+(h?h:"sans-serif")};this.measureWidth=function(f){f=g().measureText(f).width;return parseInt(f+1)};this.destroy=function(){};var g=function(){l||(p=document.createElement("canvas"),
p.width=1,p.height=1,l=p.getContext("2d"));return l}};x.Graphics=function(p){var l=[1,0,0,1,0,0],g=[1,0,0,1,0,0];this.getContext=function(){return p};this.getWidth=function(){var e=p.canvas.style&&p.canvas.style.width;return e?parseInt(e):p.canvas.width};this.getHeight=function(){var e=p.canvas.style&&p.canvas.style.height;return e?parseInt(e):p.canvas.height};this.stroke=function(){p.stroke()};this.beginPath=function(){p.beginPath()};this.closePath=function(){p.closePath()};this.fill=function(){p.fill()};
this.setTransformMatrix=function(e,d,a,b,c,k){c=Math.floor(c)==c?c+.5:c;k=Math.floor(k)==k?k+.5:k;l=[e,d,a,b,c,k];var m=e*b-d*a;g=[b/m,-d/m,-a/m,e/m,(a*k-b*c)/m,-(e*k-d*c)/m]};this.transformXY=function(e,d){return f(e,d)};this.retransformMouseXY=function(e,d){return[g[0]*e+g[2]*d+g[4],g[1]*e+g[3]*d+g[5]]};var f=function(e,d){return[l[0]*e+l[2]*d+l[4],l[1]*e+l[3]*d+l[5]]},h=function(e){var d=-Math.asin(l[2]);d=0>l[0]?Math.PI-d:d;return e+d};this.fillText=function(e,d,a,b){var c=!0;d=f(d,a);b&&(c=b(d));
!1!==c&&p.fillText(e,d[0],d[1])};this.moveTo=function(e,d){e=f(e,d);p.moveTo(e[0],e[1])};this.lineTo=function(e,d){e=f(e,d);p.lineTo(e[0],e[1])};this.drawDashedLine=function(e,d,a,b,c){a-=e;b-=d;c=~~(Math.sqrt(a*a+b*b)/c);p.beginPath();for(var k=0;k<c;k++){var m=f(e+a*k/c,d+b*k/c);k&1?p.lineTo(m[0],m[1]):p.moveTo(m[0],m[1])}p.stroke()};this.arc=function(e,d,a,b,c,k){e=f(e,d);b=h(b);c=h(c);p.arc(e[0],e[1],a,b,c,k)};this.bezierCurveTo=function(e,d,a,b,c,k){e=f(e,d);a=f(a,b);c=f(c,k);p.bezierCurveTo(e[0],
e[1],a[0],a[1],c[0],c[1])};this.fillRect=function(e,d,a,b){e=f(e,d);a=f(a,b);b=Math.min(e[0],a[0]);d=Math.min(e[1],a[1]);p.fillRect(b,d,Math.max(e[0],a[0])-b,Math.max(e[1],a[1])-d)};this.strokeRect=function(e,d,a,b){e=f(e,d);a=f(a,b);b=Math.min(e[0],a[0]);d=Math.min(e[1],a[1]);p.strokeRect(b,d,Math.max(e[0],a[0])-b,Math.max(e[1],a[1])-d)};this.clearAll=function(){p.clearRect(0,0,p.canvas.width,p.canvas.height)}};x.EventListenerList=D;x.NumberFormater=u;x.DateFormater=y;x.PercentageFaker=function(){var p=
0;this.run=function(l){l?p=100:(l=100-p,p+=Math.sqrt(l)/100*l*(1+(4*Math.random()-2)/10));return Math.floor(p)}};x.RelativePeriodModel=q;x.CompositeCtrl=function(){var p=this,l,g=[];this.setEnabled=function(e){for(var d=0;d<g.length;d++)g[d].setEnabled(e)};this.getJqUi=function(){l||(l=$("<div>"),l.css({display:"flex","flex-flow":"row nowrap","align-items":"stretch"}));return l};this.addGap=function(e){f($("<div>"),e)};this.addStableChild=function(e,d){g.push(e);f(e.getJqUi(),d)};this.addActiveChild=
function(e){g.push(e);e=e.getJqUi();h(e);e.css("flex","auto")};var f=function(e,d){h(e);e.css("flex","none");d&&e.css("width",d)},h=function(e){e.appendTo(p.getJqUi());e.css("position","relative")}};u.RoundingMode={};u.RoundingMode.DOWN="Down";u.RoundingMode.HALF_UP="HalfUp";u.RoundingMode.CEILING="Ceiling";u.RoundingMode.FLOOR="Floor";q.PERIOD_YEAR="Year";q.PERIOD_QUARTER="Quarter";q.PERIOD_MONTH="Month";q.PERIOD_WEEK="Week";q.PERIOD_DAY="Day";q.PERIOD_HOUR="Hour";q.PERIOD_MINUTE="Minute"})();(function(){function D(){var g,f,h;this.setFilePath=function(e){g=e};this.setFileSize=function(e,d){f=e;h=d};this.createDescription=function(e,d){return[g,f,h,e,d]}}function C(){var g=0,f=0,h,e,d,a=1,b=1;this.setFilePath=function(c){h=c};this.setStartPosition=function(c,k){g=c;f=k};this.setIconSize=function(c,k){e=c;d=k};this.setGap=function(c,k){a=c;b=void 0==k?c:k};this.createDescription=function(c,k){return[h,g+(e+a)*k,f+(d+b)*c]}}function u(g,f,h,e){var d,a=!1,b,c=0,k=com.kingdee.bos.qing.lapp.integration.EnvUtil,
m=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil;this.tryAgain=function(){c=0;b()};this.setShowBlocking=function(E){a=E};var r=function(){d=$("<div>");d.addClass("lapp-common-loading-modallayer");var E=$("<div>");E.addClass("lapp-common-loading-icon");E.css("background-image",com.kingdee.bos.qing.lapp.framework.common.Resource.getIconUrl("qing-lapp/core","pullup_loading.gif"));E.appendTo(d);d.appendTo($(document.body))},n=function(E,z,F,I){E=m.createRemoteUrl(g,E,x);z.language=G();var v=
z.customSettings;delete z.customSettings;jQuery.support.cors=!0;l&&l(z);v=v?v:{};v.type="POST";v.dataType="json";v.url=E;v.data=z;v.success=function(B){F(B)};v.error=function(B,H){I(B.status,H,B)};$.ajax(v)},w=function(E){"number"==typeof E.errorCode?t(E.errorCode,E.errorMessage):(f(E.data),d&&d.remove(),e&&e())},t=function(E,z,F){var I=q.MultilanguageManager.createPackageAccessor(q);if(!navigator.onLine&&k.isMobile()){var v=$("<div>");v.addClass("lapp-networkdisavailable");v.on("touchstart",function(){v&&
v.remove();b()});E=$("<span>");E.addClass("lapp-networkdisavailable-icon");E.css("background-image","url(data:image/png;base64, )");
z=$("<span>");z.addClass("lapp-networkdisavailable-fail");z.text(I.get("promotForNetworkError","\u54ce\u5440\uff0c\u7f51\u7edc\u52a0\u8f7d\u5931\u8d25\u4e86"));F=$("<span>");F.addClass("lapp-networkdisavailable-retry");F.text(I.get("promotForNetworkErrorRetry","\u8bf7\u68c0\u67e5\u7f51\u7edc\u8bbe\u7f6e\u6216\u8f7b\u89e6\u5c4f\u5e55\u91cd\u65b0\u52a0\u8f7d"));E.appendTo(v);z.appendTo(v);F.appendTo(v);v.appendTo($(document.body))}else if(0==E)3>c?(d&&d.remove(),c++,b()):z=I.get("promptForErrorCode0",
"\u7531\u4e8e\u7f51\u7edc\u95ee\u9898\uff0c\u4e0d\u80fd\u6b63\u5e38\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002");else if(10001==E)k.redirectToLogin();else{var B=!1;h&&(B=h(E,z));B||(p?p(E,z,F):(z=I.get("remoteCallException","\u8bbf\u95ee\u670d\u52a1\u5668\u8fc7\u7a0b\u51fa\u73b0\u9519\u8bef\uff1a")+z,E&&(z+="\r\n"+I.get("errorCode","\u9519\u8bef\u7801\uff1a")+E),alert(z)));d&&d.remove();e&&e()}},G=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var E=
"zh_CN";else E=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==E?E="zh_CN":"en-CN"==E&&(E="en");return E};this.protectedMethod={remote:function(E,z){c=0;a&&r();b=function(){a&&r();setTimeout(function(){n(E,z,w,t)},1E3)};n(E,z,w,t)},setShowBlocking:function(E){a=E}}}function y(){function g(){var n,w;this.setLogtype=function(t){n=t};this.getLogtype=function(){return n};this.setDataList=function(t){w=t};this.getDataList=function(){return w};this.addData=function(t){w||(w=[]);w.push(t)};
this.toJson=function(){var t={};t.logtype=n;for(var G=[],E=0;E<w.length;E++){var z=w[E].toJson();G.push(z)}t.data=G;return t};this.fromJson=function(t){n=t.logtype;w=[];t=t.data;for(var G=0;G<t.length;G++){var E=new f;E.fromJson(t[G]);w.push(E)}}}function f(){var n=this,w,t;this.setLogtype=function(G){w=G};this.getLogtype=function(){return w};this.setMessage=function(G){t=G};this.getMessage=function(){return t};this.toJson=function(){var G={};G.logtype=w;G.message=t.toJson();return G};this.fromJson=
function(G){w=G.logtype;t=new h;t.fromJson(G.message)};this.copy=function(){var G=n.toJson(),E=new n.constructor;E.fromJson(G);return E}}function h(){var n,w,t,G,E;this.setScene=function(z){E=z};this.getScene=function(){return E};this.setTime=function(z){G=z};this.getTime=function(){return G};this.toJson=function(){var z={};z.lappUserId=n;z.appName=w;z.corpId=t;z.time=G;z.scene=E;return z};this.fromJson=function(z){n=z.lappUserId;w=z.appName;t=z.corpId;G=z.time;E=z.scene}}var e=this,d=null,a,b,c;
this.protectedLoadBehaviorContext=function(n){throw Error("Override me.");};this.interestInBehavior=function(n){a?k(n):e.protectedLoadBehaviorContext(function(w,t,G){var E=new h;E.fromJson(w);a=new f;a.setMessage(E);a.setLogtype(t);b=G;k(n)})};var k=function(n){var w=a.copy(),t=w.getMessage();t.setScene(n);t.setTime((new Date).getTime());m(w)},m=function(n){d||(d=new g);d.setLogtype(n.getLogtype());d.addData(n);clearTimeout(c);c=setTimeout(function(){var w=d.toJson();d=null;r(w)},1E3)},r=function(n){$.ajax({type:"post",
async:!0,url:b,dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(n),success:function(w){},error:function(w){}})}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.framework&&(com.kingdee.bos.qing.lapp.framework=
{});"undefined"==typeof com.kingdee.bos.qing.lapp.framework.common&&(com.kingdee.bos.qing.lapp.framework.common={});var q=com.kingdee.bos.qing.lapp.framework.common;q.LanguageUtil=new function(){this.getParamLanguage=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var g="zh_CN";else g=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==g?g="zh_CN":"en-CN"==g&&(g="en");return g}};q.MultilanguageManager=new function(){function g(d){var a;
this.get=function(b,c){if(!a){var k=e(d);a=0>k?{}:h[k]}b=a[b];return void 0===b?c:b}}var f=[],h=[];this.registPackageResources=function(d,a){var b=e(d);0>b&&(f.push(d),b=f.length-1);h[b]=a};var e=function(d){for(var a=0;a<f.length;a++)if(f[a]===d)return a;return-1};this.createPackageAccessor=function(d){return new g(d)}};q.Resource=new function(){var g=com.kingdee.bos.qing.CodeLoader,f=com.kingdee.bos.qing.lapp.integration.RemoteFrameworkUtil;this.bindLoader=function(h){g=h};this.getIconUrl=function(h,
e){e&&(h=h+"/resource/"+e);h=f.getResourcePrefix()+h;return"url("+g.getIconUrl(h)+")"};this.getUrl=function(h,e){e&&(h=h+"/resource/"+e);h=f.getResourcePrefix()+h;return g.getIconUrl(h)}};q.AbstractMobileIcons=function(){var g=this,f,h;this.background=function(d,a){if(null===a)d.css("background-image","none");else{!f&&e();var b=f[a];if(b){a=b[1];var c=b[2],k=b[3],m=b[4];b=q.Resource.getIconUrl(b[0]);d.css({"background-image":b,"background-position":k/2+"px "+m/2+"px","background-repeat":"no-repeat",
"background-size":a/2+"px "+c/2+"px"})}else d.css("background-image","url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC)"),d.css("background-repeat","no-repeat"),d.css("background-position","center")}};this.getBackground=function(d){d=d.css("background-position");for(var a in f){var b=f[a];if(d==b[3]/2+"px "+b[4]/2+"px")return a}};this.regist=function(d,a){!f&&e();
if(f[d])throw Error("Duplicate definition.");f[d]=a};var e=function(){f={};h=new D;g.protectedInit(f,h)};this.protectedInit=function(d,a){};this.protectedMethod={registIcon:function(d,a,b){d=h.createDescription(d,a);f[b]=d}}};q.AbstractIcons=function(){var g=this,f,h;this.background=function(d,a){if(null===a)d.css("background-image","none");else{!f&&e();var b=f[a];if(b){a=-b[1];var c=-b[2];b=q.Resource.getIconUrl(b[0]);d.css({"background-image":b,"background-position":a+"px "+c+"px","background-repeat":"no-repeat"})}else d.css("background-image",
"url(data:image/gif;base64,R0lGODlhDAAMAJEDAKOjo+fn5////////yH5BAEAAAMALAAAAAAMAAwAAAImnI8ZwBDqgljPUIGXMw7PCHDeJYRDRy5cQH4WI3nby37VocHJjhQAOw==)"),d.css("background-repeat","no-repeat"),d.css("background-position","center")}};this.backgroundWithHover=function(d,a,b){g.background(d,a);b=b?b:d;b.on("mouseenter",function(c){g.background(d,a+"_hover")});b.on("mouseleave",function(c){g.background(d,a)})};this.regist=function(d,a){!f&&e();if(f[d])throw Error("Duplicate definition.");f[d]=a};var e=function(){f=
{};h=new C;g.protectedInit(f,h)};this.protectedInit=function(d,a){};this.protectedMethod={registIcon:function(d,a,b){d=h.createDescription(d,a);f[b]=d}}};q.WindowResizeObserver=function(){var g,f,h=100,e,d;this.setCallback=function(b){f=b};this.setCallbackImmediately=function(b){g=b};this.setDelay=function(b){h=b};this.observe=function(){"function"==typeof window.ResizeObserver&&(d=new ResizeObserver(function(b,c){$(document.body).is(":visible")&&a()}),d.observe(document.body));$(window).on("resize",
a)};var a=function(){g&&g();f&&(clearTimeout(e),e=setTimeout(f,h))};this.unobserve=function(){d&&d.unobserve(document.body);$(window).off("resize",a)}};q.AbstractFacade=u;q.AbstractBehaviorManager=y;var x=!1;u.setWithoutDotDo=function(g){x=g};var p;u.setCustomErrorHandler=function(g){p=g};var l;u.setSSOParamAppender=function(g){l=g};y.SCENE_FAVORITE="\u5173\u6ce8";y.SCENE_CANCEL_FAVORITE="\u53d6\u6d88\u5173\u6ce8";y.SCENE_SHARE="\u5206\u4eab";y.SCENE_COMMENT="\u8bc4\u8bba";y.SCENE_LIKE="\u70b9\u8d5e";
y.SCENE_DELETE_CARD="\u5220\u9664\u5361\u7247"})();(function(){function D(){var g=this,f,h,e,d,a,b,c,k,m,r;this.setPropertyChangeListener=function(n){r=n};this.removePropertyChangeListener=function(){r=null};this.setId=function(n){f=n};this.getId=function(){return f};this.setName=function(n){h!=n&&(h=n)};this.getName=function(){return h};this.getCompleteName=function(){return h+(e?" ("+e+")":"")};this.setAnalysesCount=function(n){e!=n&&(e=n,r&&r(g))};this.getAnalysesCount=function(){return e?e:0};this.setSeq=function(n){d=n};this.getSeq=function(){return d};
this.setOpenId=function(n){a=n};this.getOpenId=function(){return a};this.setDeleted=function(n){b=n};this.getAnalysisList=function(){return m};this.isDefaultOpen=function(){return c};this.getIdsSameName=function(n){return k};this.fromJsonObject=function(n){f=n.id;h=n.name;e=n.analyticalCount;d=n.seq;a=n.openId;c=n.defaultOpen;k=n.idSameName;if(n=n.analysisVOs){m=[];for(var w=0;w<n.length;w++){var t=new C;t.fromJsonObject(n[w]);m.push(t)}}};this.toJsonObject=function(){var n={};n.id=f;n.name=h;n.isDeleted=
b;n.seq=d;n.openId=a;n.idSameName=k;var w=[];if(m)for(var t=0;t<m.length;t++)w.push(m[t].toJsonObject());n.analysisVOs=w;return n}}function C(){var g,f,h,e,d,a,b,c,k,m,r,n,w,t,G,E,z,F,I,v,B,H,J;this.setId=function(A){g=A};this.getId=function(){return g};this.setParentId=function(A){f=A};this.getParentId=function(){return f};this.setName=function(A){h=A};this.getName=function(){return h};this.setScene=function(A){e=A};this.getScene=function(){return e};this.isFavorite=function(){return d};this.setFavorite=
function(A){d=A};this.setSeq=function(A){r=A};this.getSeq=function(){return r};this.getPermissionInfo=function(){return n};this.setShareCreator=function(A){w=A};this.getShareCreator=function(){return w};this.setShareTime=function(A){t=A};this.getShareTime=function(){return t};this.setDesc=function(A){a=A};this.getDesc=function(){return a};this.setUrl=function(A){b=A};this.getUrl=function(){return b};this.setSmallThumbnail=function(A){k=A};this.getSmallThumbnail=function(){return k};this.setLargeThumbnail=
function(A){m=A};this.getLargeThumbnail=function(){return m};this.setLayoutType=function(A){c=A};this.setUploadData=function(A){G=A};this.isUploadData=function(){return G};this.setQsId=function(A){E=A};this.getQsId=function(){return E};this.setSchemaId=function(A){z=A};this.getSchemaId=function(){return z};this.setDemo=function(A){F=A};this.getDemo=function(){return F};this.isDeleted=function(){return I};this.setViewType=function(A){v=A};this.getViewType=function(){return v};this.setBottomAnnotation=
function(A){B=A};this.getBottomAnnotation=function(){return B};this.setDisplayStyle=function(A){H=A};this.getDisplayStyle=function(){return H};this.setCreatorName=function(A){J=A};this.getCreatorName=function(){return J};this.fromJsonObject=function(A){g=A.id;f=A.parentId;h=A.name;e=A.scene;d=A.favorite;a=A.description;b=A.url;m=A.largeThumb;k=A.smallThumb;G=A.withData;E=A.qsId;z=A.schemaId;F=A.demo;w=A.shareCreator;t=A.shareTime;I=A.isDeleted;n=A.permissionInfo;v=A.viewType;B=A.bottomAnnotation;
H=A.displayStyle;J=A.creatorName;r=A.seq};this.toJsonObject=function(){var A={};A.id=g;A.parentId=f;A.name=h;A.scene=e;A.favorite=d;A.description=a;A.url=b;A.layoutType=c;A.largeThumb=m;A.smallThumb=k;A.withData=G;A.qsId=E;A.schemaId=z;A.demo=F;A.shareCreator=w;A.shareTime=t;A.viewType=v;A.bottomAnnotation=B;A.displayStyle=H;A.creatorName=J;A.seq=r;return A}}function u(){var g,f,h,e,d;this.setId=function(a){g=a};this.getId=function(){return g};this.setName=function(a){f=a};this.getName=function(){return f};
this.setAvatar=function(a){h=a};this.getAvatar=function(){return h};this.setReplyTotalCount=function(a){e=a};this.getReplyTotalCount=function(){return e};this.setReplyUnreadCount=function(a){d=a};this.getReplyUnreadCount=function(){return d};this.fromJsonObject=function(a){g=a.id;f=a.name;h=a.avator;e=a.replyTotalCount;d=a.replyUnreadCount};this.toJsonObject=function(){var a={};a.id=g;a.name=f;a.avator=h;a.replyTotalCount=e;a.replyUnreadCount=d;return a}}function y(){var g,f,h,e,d,a,b,c,k,m,r,n,w;
this.setReplyerIco=function(t){g=t};this.getReplyerIco=function(){return g};this.setReplyerName=function(t){f=t};this.getReplyerName=function(){return f};this.setReplyerId=function(t){h=t};this.getReplyerId=function(){return h};this.setReceiverName=function(t){e=t};this.getReceiverName=function(){return e};this.setReceiverId=function(t){d=sReceiverId};this.getReceiverId=function(){return d};this.setSharingCreatorName=function(t){a=t};this.getSharingCreatorName=function(){return a};this.setSharingCreatorId=
function(t){b=t};this.getSharingCreatorId=function(){return b};this.setContents=function(t){c=t};this.getContents=function(){return c};this.setCreateTime=function(t){k=t};this.getCreateTime=function(){return k};this.setTitle=function(t){m=t};this.getTitle=function(){return m};this.setSharingTargetId=function(t){r=t};this.getSharingTargetId=function(){return r};this.setSharingContents=function(t){n=t};this.getSharingContents=function(){return n};this.isDeleted=function(){return w};this.fromJsonObject=
function(t){g=t.replyerIco;f=t.replyerName;h=t.replyerId;e=t.receiverName;d=t.receiverId;a=t.sharingCreatorName;b=t.sharingCreatorId;c=t.contents;k=t.createTime;m=t.title;r=t.sharingTargetId;n=t.sharingContents;w=t.isDeleted};this.toJsonObject=function(){var t={};t.replyerIco=g;t.replyerName=f;t.replyerId=h;t.receiverName=e;t.receiverId=d;t.sharingCreatorName=a;t.sharingCreatorId=b;t.contents=c;t.createTime=k;t.title=m;t.sharingTargetId=r;t.sharingContents=n;return t}}function q(){var g,f,h,e,d;this.setTabIndex=
function(a){g=a};this.getTabIndex=function(){return g};this.setScrollTop=function(a){f=a};this.getScrollTop=function(){return f};this.setKeyword=function(a){h=a};this.getKeyword=function(){return h};this.setType=function(a){e=a};this.getType=function(){return e};this.setTriggerAnalysis=function(a){d=a};this.getTriggerAnalysis=function(){return d};this.protectedMethod={fromJsonObject:function(a){g=a.tabIndex;f=a.scrollTop;h=a.keyword;e=a.type;d=new C;d.fromJsonObject(a.triggerAnalysis)},toJsonObject:function(){var a=
{};a.tabIndex=g;a.scrollTop=f;a.keyword=h;a.type=e;a.triggerAnalysis=d.toJsonObject();return a}}}function x(){var g,f=[],h,e;this.setDisplayMode=function(d){g=d};this.getDisplayMode=function(){return g};this.setAllDatacenterModel=function(d){f=d};this.getAllDatacenterModel=function(){return f};this.setCurrentDatacenterModel=function(d){h=d};this.getCurrentDatacenterModel=function(){return h};this.setVisitedViewType=function(d){e=d};this.getVisitedViewType=function(){return e};this.fromJsonObject=
function(d){g=d.displayMode;d.currentDatacenterBO&&(h=new p,h.fromJsonObject(d.currentDatacenterBO));if(d.datacenterBOs){f=[];for(var a=d.datacenterBOs,b=0;b<a.length;b++){var c=new p;c.fromJsonObject(a[b]);f.push(c)}}e=d.visitedViewType}}function p(){var g,f,h,e,d,a,b;this.setId=function(c){g=c};this.getId=function(){return g};this.setCreateTime=function(c){f=c};this.getCreateTime=function(){return f};this.setUpdateTime=function(c){h=c};this.getUpdateTime=function(){return h};this.setProductType=
function(c){e=c};this.getProductType=function(){return e};this.setAccountName=function(c){d=c};this.getAccountName=function(){return d};this.setUserDatacenterRelationId=function(c){b=c};this.getUserDatacenterRelationId=function(){return b};this.setLastUsedTime=function(c){a=c};this.getLastUsedTime=function(){return a};this.fromJsonObject=function(c){g=c.id;f=c.createTime;h=c.updateTime;e=c.productType;d=c.accountName;a=c.lastUsedTime;b=c.userDatacenterRelationId}}"undefined"==typeof com&&(com={});
"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.lapp&&(com.kingdee.bos.qing.lapp={});"undefined"==typeof com.kingdee.bos.qing.lapp.model&&(com.kingdee.bos.qing.lapp.model={});var l=com.kingdee.bos.qing.lapp.model;l.Directory=D;l.DirectorySet=function(){var g=this,f=[],h;this.setChangedListener=function(a){h=a};this.removeChangedListener=
function(){h=null};this.isEmpty=function(){return 0==f.length};this.getCount=function(){return f.length};this.add=function(a){f.push(a);a.setPropertyChangeListener(d)};this.remove=function(a){var b=g.getIndex(a);0>b||(f.splice(b,1),a.removePropertyChangeListener())};this.get=function(a){return f[a]};this.getAllDirectory=function(){return f};this.reOrder=function(a){for(var b=0;b<f.length;b++){var c=f[b];c.setSeq(a[c.getId()])}f=f.sort(e)};this.getById=function(a){for(var b=0;b<f.length;b++)if(f[b].getId()==
a)return f[b];return null};this.getIndex=function(a){for(var b=0;b<f.length;b++)if(f[b]==a)return b;return-1};var e=function(a,b){a=a.getSeq();b=b.getSeq();return a>b?1:a<b?-1:0},d=function(a){h&&h(a)};this.fromJsonObject=function(a){for(var b=0;b<a.length;b++){var c=new D;c.fromJsonObject(a[b]);f.push(c);c.setPropertyChangeListener(d)}};this.toJsonObject=function(){for(var a=[],b=0;b<f.length;b++)a.push(f[b].toJsonObject());return a}};l.Analysis=C;l.Post=function(){var g,f,h,e;this.setAnalysisId=
function(d){g=d};this.setAuthorId=function(d){f=d};this.setAuthorName=function(d){h=d};this.setAuthorHeadUrl=function(d){e=d};this.toJsonObject=function(){var d={};d.analysisId=g;d.creatorId=f;d.creatorName=h;d.avatar=e;return d}};l.ShareImageVO=function(){var g,f,h,e,d;this.setJsonModelWrapper=function(a){g=a};this.setExportOriginalImg=function(a){f=a};this.setExportSmallImg=function(a){h=a};this.setExportOneMobileScreenImg=function(a){e=a};this.setExportThumbnailImg=function(a){d=a};this.toJsonObject=
function(){var a={};a.modelWrapper=JSON.stringify(g);f&&(a.isExportOriginalImg=f);h&&(a.isExportSmallImg=h);e&&(a.isExportAScreenImg=e);d&&(a.isExportThumbnail=d);return a}};l.ImageSharedPathModel=function(){var g,f,h,e;this.getThumbnailImgPath=function(){return g};this.setThumbnailImgPath=function(d){g=d};this.getOneMobileScreenImgPath=function(){return f};this.setOneMobileScreenImgPath=function(d){f=d};this.getSmallImgPath=function(){return h};this.setSmallImgPath=function(d){h=d};this.getOriginalImgPath=
function(){return e};this.setOriginalImgPath=function(d){e=d};this.fromJsonObject=function(d){g=d.thumbnailImgPath;h=d.smallImgPath;e=d.originalImgPath;f=d.oneMobileScreenImgPath}};l.SharingModel=function(){var g=this,f,h,e,d,a,b,c,k=[];this.setAnalysisId=function(m){f=m};this.getAnalysisId=function(){return f};this.setId=function(m){h=m};this.getId=function(){return h};this.setTitle=function(m){e=m};this.getTitle=function(){return e};this.setContent=function(m){d=m};this.getContent=function(){return d};
this.setThrumb=function(m){a=m};this.getThrumb=function(){return a};this.setViewType=function(m){b=m};this.getViewType=function(){return b};this.setAccountName=function(m){c=m};this.getAccountName=function(){return c};this.setArrSharingTargets=function(m){k=m};this.getArrSharingTargets=function(){return k};this.isEmpty=function(){return 0==k.length};this.getCount=function(){return k.length};this.remove=function(m){var r=g.getIndex(m);0>r||(k.splice(r,1),m.removePropertyChangeListener())};this.get=
function(m){return k[m]};this.getAllSharingTargetsModel=function(){return k};this.getById=function(m){for(var r=0;r<k.length;r++)if(k[r].getId()==m)return k[r];return null};this.getIndex=function(m){for(var r=0;r<k.length;r++)if(k[r]==m)return r;return-1};this.fromJsonObject=function(m){f=m.analysisId;h=m.id;e=m.title;d=m.contents;a=m.thrumb;b=m.viewType;c=m.accountName;k=[];m=m.sharingTargetVOs;for(var r=0;r<m.length;r++){var n=new u;n.fromJsonObject(m[r]);k.push(n)}};this.toJsonObject=function(){for(var m=
{},r=[],n=0;n<k.length;n++)r.push(k[n].toJsonObject());m.sharingTargetVOs=r;m.title=e;m.contents=d;m.thrumb=a;m.id=h;m.analysisId=h;return m}};l.SharingTargetsModel=u;l.MessageModel=y;l.CardViewCachePageModel=function(){q.call(this);var g=this.protectedMethod,f,h,e,d,a,b;this.setAnalysisList=function(c){f=c};this.getAnalysisList=function(){return f};this.setAnalysisListPage=function(c){h=c};this.getAnalysisListPage=function(){return h};this.setHasNextPage=function(c){e=c};this.isHasNextPage=function(){return e};
this.setLastUpdateTime=function(c){d=c};this.getLastUpdateTime=function(){return d};this.setAuthorizedAnalysis=function(c){b=c};this.isAuthorizedAnalysis=function(){return b};this.setAllId=function(c){a=c};this.getAllId=function(){return a};this.fromJsonObject=function(c){g.fromJsonObject(c);f=[];for(var k=c.analysisList,m=0;m<k.length;m++){var r=new C;r.fromJsonObject(k[m]);f.push(r)}h=c.analysisListPage;e=c.hasNextPage;d=c.lastUpdateTime;b=c.authorizedAnalysis;a=c.allId};this.toJsonObject=function(){for(var c=
g.toJsonObject(),k=[],m=0;m<f.length;m++)k.push(f[m].toJsonObject());c.analysisList=k;c.analysisListPage=h;c.hasNextPage=e;c.lastUpdateTime=d;c.authorizedAnalysis=b;c.allId=a;return c}};l.ListViewCachePageModel=function(){q.call(this);var g=this.protectedMethod,f;this.setOpenDirNames=function(h){f=h};this.getOpenDirNames=function(){return f};this.fromJsonObject=function(h){g.fromJsonObject(h);f=h.openDirNames};this.toJsonObject=function(){var h=g.toJsonObject();h.openDirNames=f;return h}};l.DatacenterInfo=
x;l.DatacenterModel=p;l.YZJAnalysis=function(){C.call(this);var g,f,h=!0,e=!1,d=this.fromJsonObject,a=this.toJsonObject,b=this;this.setDatacenterId=function(c){g=c};this.getDatacenterId=function(){return g};this.setAccountName=function(c){f=c};this.getAccountName=function(){return f};this.setAuthorized=function(c){h=c};this.isAuthorized=function(){return h};this.setNoFound=function(c){e=c};this.isNoFound=function(){return e};this.fromJsonObject=function(c){d(c);g=c.datacenterId;f=c.accountName;h=
c.authorized};this.toJsonObject=function(){var c=a();c.datacenterId=g;c.accountName=f;c.authorized=h;return c};this.fromAnalysis=function(c){c=c.toJsonObject();b.fromJsonObject(c);h=!0;e=!1}};C.LT_NORMAL="NORMAL";C.LT_WIDTH="WIDTH";C.LT_HEIGHT="HEIGHT";C.LT_ALL="ALL";C.LT_ADAPT="ADAPT";C.VIEW_TYPE_LONGER="1";C.VIEW_TYPE_SQUARE="2";C.VIEW_TYPE_DASHBOARD="3";C.DISPLAYSTYLE_THUMNAIL="1";C.DISPLAYSTYLE_EXECUTION="2";y.REPLY="REPLY";y.COMMENT="COMMENT";x.DISPLAY_MODE_NONE="NONE";x.DISPLAY_MODE_SHOW_ALL=
"SHOW_ALL";x.DISPLAY_MODE_SHOW_LAST_USED="SHOW_LAST_USED"})();(function(){function D(x,p,l,g){u.call(this,x,p,l,g);var f=this.protectedMethod,h=com.kingdee.bos.qing.lapp.integration.EnvUtil,e=function(d,a){f.remote(d,a)};this.getForShare=function(d,a){e("getForShare",{id:d,sharingTargetId:a})};this.getSharing=function(d){d={sharingTargetId:d,phoneModel:h.getOS(),screenPixel:document.documentElement.clientWidth+", "+document.documentElement.clientHeight};e("get",d)};this.getPraises=function(d){e("query",{sharingTargetId:d})};this.getComments=function(d,a){e("query",
{sharingTargetId:d,size:20,page:a})};this.reply=function(d){d={model:JSON.stringify(d.toJsonObject())};e("add",d)};this.deleteReply=function(d){e("delete",{id:d})};this.addAndCancelPraise=function(d){d={model:JSON.stringify(d.toJsonObject())};e("addAndCancel",d)};this.isPraise=function(d,a){e("isPraise",{openId:d,sharingTargetId:a})};this.getPraiseCount=function(d){e("getPraiseCount",{sharingTargetId:d})};this.getCommentCount=function(d){e("getCommentCount",{sharingTargetId:d})};this.getBehaviorContext=
function(){e("getBehaviorContext",{})};this.getYZJAppId=function(d){e("getYZJAppId",{eid:d})};this.getAnalysis=function(d){e("get",{id:d})}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.share&&(com.kingdee.bos.qing.share={});"undefined"==typeof com.kingdee.bos.qing.share.framework&&(com.kingdee.bos.qing.share.framework=
{});var C=com.kingdee.bos.qing.share.framework;C.Facade=D;var u,y;(function(){var x=com.kingdee.bos.qing.lapp.framework.common;u=x.AbstractFacade;y=x.AbstractBehaviorManager})();D.setCustomErrorHandler=function(x){u.setCustomErrorHandler(x)};D.setWithoutDotDo=function(x){u.setWithoutDotDo(x)};D.setUserIdAndUserType=function(x,p){u.setSSOParamAppender(function(l){l.lappUserId=x;l.lappUserType=p})};var q=new function(){y.call(this);this.protectedLoadBehaviorContext=function(x){(new D("behavior",function(p){x(p.message,
p.logtype,p.url)})).getBehaviorContext()}};C.BehaviorManager=q})();(function(){var D,C,u,y,q;(function(){var x=com.kingdee.bos.qing.lapp.model;D=x.Analysis;C=x.Post;x=com.kingdee.bos.qing.share.framework;u=x.Facade;x=com.kingdee.bos.qing.common;y=x.Util;x=com.kingdee.bos.qing.lapp.integration;q=x.RemoteFrameworkUtil})();ShareOuter=new function(){var x,p,l,g,f,h,e=!1,d;this.setIsNewShare=function(m){e=m};this.doShare=function(m,r,n){f=r;h=n;var w=com.kingdee.bos.qing.lapp.integration.EnvUtil;w.loadUserInfo(function(t,G,E,z){p=t;l=G;g=E;d=z;f||(f=p,h="10");u.setWithoutDotDo(!0);
u.setUserIdAndUserType(f,h);(new u("env",function(F){w.setEnv(null,F);a(m)})).getYZJAppId(d)})};var a=function(m){x?b():(u.setWithoutDotDo(!0),u.setUserIdAndUserType(f,h),(new u("lappAnalysisMgr",function(r){r&&(x=new D,x.fromJsonObject(r),b())})).getAnalysis(m))},b=function(){var m=x.getLargeThumbnail()?q.createSharedDownloadImageUrl(x.getLargeThumbnail()):x.getViewType()==D.VIEW_TYPE_DASHBOARD?q.createImageUrl("qing-lapp/core/resource/icon_chart_dsb.png"):q.createImageUrl("qing-lapp/core/resource/icon_chart.png");
c(m)},c=function(m){var r=new C;r.setAnalysisId(x.getId());r.setAuthorId(p);r.setAuthorName(l);r.setAuthorHeadUrl(g);var n="zh_CN"==k()?"\u8f7b\u5206\u6790":"Qing Analysis";var w=q.createShareWebpageUrl(e),t=q.createShareCallbackUrl(e);t=y.appendParamToUrl(t,"model",JSON.stringify(r.toJsonObject()));t=y.appendParamToUrl(t,"lappUserId",f);t=y.appendParamToUrl(t,"lappUserType",h);t=y.appendParamToUrl(t,"openId",p);d&&(t=y.appendParamToUrl(t,"eid",d));r=x.getName();XuntongJSBridge.call("share",{shareType:"4",
appId:com.kingdee.bos.qing.lapp.integration.APP_ID,appName:n,lightAppId:com.kingdee.bos.qing.lapp.integration.APP_ID,title:r,content:r,thumbData:" ",
params:{customStyle:2,contentUrl:m},webpageUrl:w,sharedObject:"all",callbackUrl:t},function(G){})},k=function(){if(null==navigator.userAgent.split("lang:")[1]||""==navigator.userAgent.split("lang:")[1])var m="zh_CN";else m=navigator.userAgent.split("lang:")[1].split(";")[0],"zh-CN"==m?m="zh_CN":"en-CN"==m&&(m="en");return m}}})();
//qingVersionTag: 20250415