if (window.FR == null) {window.FR = {};}FR.servletURL = '/webroot/decision/view/report';FR.serverURL = 'http://223.75.52.115:8088';FR.server = 'http://223.75.52.115:8088/webroot';FR.fineServletURL = '/webroot/decision';FR.fineContextPath = '/webroot';FR.PROJECTNAME = '市场监督管理局';FR.shouldSendHeartBeat = true;(function(){var v=this;var k=v._;var I=Array.prototype,g=Object.prototype,n=Function.prototype;var L=I.push,l=I.slice,c=g.toString,j=g.hasOwnProperty;var s=Array.isArray,e=Object.keys,J=n.bind,B=Object.create;var E=function(){};var P=function(Q){if(Q instanceof P){return Q}if(!(this instanceof P)){return new P(Q)}this._wrapped=Q};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=P}exports._=P}else{v._=P}P.VERSION="1.8.3";var b=function(R,Q,S){if(Q===void 0){return R
}switch(S==null?3:S){case 1:return function(T){return R.call(Q,T)};case 2:return function(U,T){return R.call(Q,U,T)};case 3:return function(U,T,V){return R.call(Q,U,T,V)};case 4:return function(T,V,U,W){return R.call(Q,T,V,U,W)}}return function(){return R.apply(Q,arguments)}};var F=function(R,Q,S){if(R==null){return P.identity}if(P.isFunction(R)){return b(R,Q,S)}if(P.isObject(R)){return P.matcher(R)}return P.property(R)};P.iteratee=function(R,Q){return F(R,Q,Infinity)};var p=function(R,Q){return function(Z){var X=arguments.length;
if(X<2||Z==null){return Z}for(var T=1;T<X;T++){var Y=arguments[T],W=R(Y),S=W.length;for(var V=0;V<S;V++){var U=W[V];if(!Q||Z[U]===void 0){Z[U]=Y[U]}}}return Z}};var C=function(R){if(!P.isObject(R)){return{}}if(B){return B(R)}E.prototype=R;var Q=new E;E.prototype=null;return Q};var M=function(Q){return function(R){return R==null?void 0:R[Q]}};var K=Math.pow(2,53)-1;var O=M("length");var D=function(R){var Q=O(R);return typeof Q=="number"&&Q>=0&&Q<=K};P.each=P.forEach=function(U,V,R){V=b(V,R);var Q,T;
if(D(U)){for(Q=0,T=U.length;Q<T;Q++){V(U[Q],Q,U)}}else{var S=P.keys(U);for(Q=0,T=S.length;Q<T;Q++){V(U[S[Q]],S[Q],U)}}return U};P.map=P.collect=function(V,X,S){X=F(X,S);var U=!D(V)&&P.keys(V),T=(U||V).length,R=Array(T);for(var Q=0;Q<T;Q++){var W=U?U[Q]:Q;R[Q]=X(V[W],W,V)}return R};function z(Q){function R(W,Y,S,V,T,U){for(;T>=0&&T<U;T+=Q){var X=V?V[T]:T;S=Y(S,W[X],X,W)}return S}return function(X,Y,S,U){Y=b(Y,U,4);var W=!D(X)&&P.keys(X),V=(W||X).length,T=Q>0?0:V-1;if(arguments.length<3){S=X[W?W[T]:T];
T+=Q}return R(X,Y,S,W,T,V)}}P.reduce=P.foldl=P.inject=z(1);P.reduceRight=P.foldr=z(-1);P.find=P.detect=function(T,Q,S){var R;if(D(T)){R=P.findIndex(T,Q,S)}else{R=P.findKey(T,Q,S)}if(R!==void 0&&R!==-1){return T[R]}};P.filter=P.select=function(T,Q,S){var R=[];Q=F(Q,S);P.each(T,function(W,U,V){if(Q(W,U,V)){R.push(W)}});return R};P.reject=function(S,Q,R){return P.filter(S,P.negate(F(Q)),R)};P.every=P.all=function(V,Q,S){Q=F(Q,S);var U=!D(V)&&P.keys(V),T=(U||V).length;for(var R=0;R<T;R++){var W=U?U[R]:R;
if(!Q(V[W],W,V)){return false}}return true};P.some=P.any=function(V,Q,S){Q=F(Q,S);var U=!D(V)&&P.keys(V),T=(U||V).length;for(var R=0;R<T;R++){var W=U?U[R]:R;if(Q(V[W],W,V)){return true}}return false};P.contains=P.includes=P.include=function(T,S,Q,R){if(!D(T)){T=P.values(T)}if(typeof Q!="number"||R){Q=0}return P.indexOf(T,S,Q)>=0};P.invoke=function(S,T){var Q=l.call(arguments,2);var R=P.isFunction(T);return P.map(S,function(V){var U=R?T:V[T];return U==null?U:U.apply(V,Q)})};P.pluck=function(R,Q){return P.map(R,P.property(Q))
};P.where=function(R,Q){return P.filter(R,P.matcher(Q))};P.findWhere=function(R,Q){return P.find(R,P.matcher(Q))};P.max=function(T,V,Q){var Y=-Infinity,W=-Infinity,X,S;if(V==null&&T!=null){T=D(T)?T:P.values(T);for(var U=0,R=T.length;U<R;U++){X=T[U];if(X>Y){Y=X}}}else{V=F(V,Q);P.each(T,function(ab,Z,aa){S=V(ab,Z,aa);if(S>W||S===-Infinity&&Y===-Infinity){Y=ab;W=S}})}return Y};P.min=function(T,V,Q){var Y=Infinity,W=Infinity,X,S;if(V==null&&T!=null){T=D(T)?T:P.values(T);for(var U=0,R=T.length;U<R;U++){X=T[U];
if(X<Y){Y=X}}}else{V=F(V,Q);P.each(T,function(ab,Z,aa){S=V(ab,Z,aa);if(S<W||S===Infinity&&Y===Infinity){Y=ab;W=S}})}return Y};P.shuffle=function(U){var V=D(U)?U:P.values(U);var T=V.length;var Q=Array(T);for(var R=0,S;R<T;R++){S=P.random(0,R);if(S!==R){Q[R]=Q[S]}Q[S]=V[R]}return Q};P.sample=function(R,S,Q){if(S==null||Q){if(!D(R)){R=P.values(R)}return R[P.random(R.length-1)]}return P.shuffle(R).slice(0,Math.max(0,S))};P.sortBy=function(R,S,Q){S=F(S,Q);return P.pluck(P.map(R,function(V,T,U){return{value:V,index:T,criteria:S(V,T,U)}
}).sort(function(W,V){var U=W.criteria;var T=V.criteria;if(U!==T){if(U>T||U===void 0){return 1}if(U<T||T===void 0){return -1}}return W.index-V.index}),"value")};var q=function(Q){return function(T,U,S){var R={};U=F(U,S);P.each(T,function(X,V){var W=U(X,V,T);Q(R,X,W)});return R}};P.groupBy=q(function(Q,S,R){if(P.has(Q,R)){Q[R].push(S)}else{Q[R]=[S]}});P.indexBy=q(function(Q,S,R){Q[R]=S});P.countBy=q(function(Q,S,R){if(P.has(Q,R)){Q[R]++}else{Q[R]=1}});P.toArray=function(Q){if(!Q){return[]}if(P.isArray(Q)){return l.call(Q)
}if(D(Q)){return P.map(Q,P.identity)}return P.values(Q)};P.size=function(Q){if(Q==null){return 0}return D(Q)?Q.length:P.keys(Q).length};P.partition=function(U,Q,S){Q=F(Q,S);var T=[],R=[];P.each(U,function(W,V,X){(Q(W,V,X)?T:R).push(W)});return[T,R]};P.first=P.head=P.take=function(S,R,Q){if(S==null){return void 0}if(R==null||Q){return S[0]}return P.initial(S,S.length-R)};P.initial=function(S,R,Q){return l.call(S,0,Math.max(0,S.length-(R==null||Q?1:R)))};P.last=function(S,R,Q){if(S==null){return void 0
}if(R==null||Q){return S[S.length-1]}return P.rest(S,Math.max(0,S.length-R))};P.rest=P.tail=P.drop=function(S,R,Q){return l.call(S,R==null||Q?1:R)};P.compact=function(Q){return P.filter(Q,P.identity)};var x=function(W,S,X,aa){var R=[],Z=0;for(var U=aa||0,Q=O(W);U<Q;U++){var Y=W[U];if(D(Y)&&(P.isArray(Y)||P.isArguments(Y))){if(!S){Y=x(Y,S,X)}var T=0,V=Y.length;R.length+=V;while(T<V){R[Z++]=Y[T++]}}else{if(!X){R[Z++]=Y}}}return R};P.flatten=function(R,Q){return x(R,Q,false)};P.without=function(Q){return P.difference(Q,l.call(arguments,1))
};P.uniq=P.unique=function(X,T,W,R){if(!P.isBoolean(T)){R=W;W=T;T=false}if(W!=null){W=F(W,R)}var Z=[];var Q=[];for(var V=0,S=O(X);V<S;V++){var Y=X[V],U=W?W(Y,V,X):Y;if(T){if(!V||Q!==U){Z.push(Y)}Q=U}else{if(W){if(!P.contains(Q,U)){Q.push(U);Z.push(Y)}}else{if(!P.contains(Z,Y)){Z.push(Y)}}}}return Z};P.union=function(){return P.uniq(x(arguments,true,true))};P.intersection=function(W){var Q=[];var V=arguments.length;for(var S=0,U=O(W);S<U;S++){var T=W[S];if(P.contains(Q,T)){continue}for(var R=1;R<V;
R++){if(!P.contains(arguments[R],T)){break}}if(R===V){Q.push(T)}}return Q};P.difference=function(R){var Q=x(arguments,true,true,1);return P.filter(R,function(S){return !P.contains(Q,S)})};P.zip=function(){return P.unzip(arguments)};P.unzip=function(T){var S=T&&P.max(T,O).length||0;var Q=Array(S);for(var R=0;R<S;R++){Q[R]=P.pluck(T,R)}return Q};P.object=function(U,R){var Q={};for(var S=0,T=O(U);S<T;S++){if(R){Q[U[S]]=R[S]}else{Q[U[S][0]]=U[S][1]}}return Q};function u(Q){return function(V,R,T){R=F(R,T);
var U=O(V);var S=Q>0?0:U-1;for(;S>=0&&S<U;S+=Q){if(R(V[S],S,V)){return S}}return -1}}P.findIndex=u(1);P.findLastIndex=u(-1);P.sortedIndex=function(X,V,W,S){W=F(W,S,1);var U=W(V);var Q=0,T=O(X);while(Q<T){var R=Math.floor((Q+T)/2);if(W(X[R])<U){Q=R+1}else{T=R}}return Q};function f(Q,R,S){return function(X,W,T){var U=0,V=O(X);if(typeof T=="number"){if(Q>0){U=T>=0?T:Math.max(T+V,U)}else{V=T>=0?Math.min(T+1,V):T+V+1}}else{if(S&&T&&V){T=S(X,W);return X[T]===W?T:-1}}if(W!==W){T=R(l.call(X,U,V),P.isNaN);
return T>=0?T+U:-1}for(T=Q>0?U:V-1;T>=0&&T<V;T+=Q){if(X[T]===W){return T}}return -1}}P.indexOf=f(1,P.findIndex,P.sortedIndex);P.lastIndexOf=f(-1,P.findLastIndex);P.range=function(V,S,U){if(S==null){S=V||0;V=0}U=U||1;var T=Math.max(Math.ceil((S-V)/U),0);var R=Array(T);for(var Q=0;Q<T;Q++,V+=U){R[Q]=V}return R};var y=function(V,S,U,W,T){if(!(W instanceof S)){return V.apply(U,T)}var R=C(V.prototype);var Q=V.apply(R,T);if(P.isObject(Q)){return Q}return R};P.bind=function(T,R){if(J&&T.bind===J){return J.apply(T,l.call(arguments,1))
}if(!P.isFunction(T)){throw new TypeError("Bind must be called on a function")}var Q=l.call(arguments,2);var S=function(){return y(T,S,R,this,Q.concat(l.call(arguments)))};return S};P.partial=function(R){var S=l.call(arguments,1);var Q=function(){var T=0,W=S.length;var U=Array(W);for(var V=0;V<W;V++){U[V]=S[V]===P?arguments[T++]:S[V]}while(T<arguments.length){U.push(arguments[T++])}return y(R,Q,this,this,U)};return Q};P.bindAll=function(T){var R,S=arguments.length,Q;if(S<=1){throw new Error("bindAll must be passed function names")
}for(R=1;R<S;R++){Q=arguments[R];T[Q]=P.bind(T[Q],T)}return T};P.memoize=function(R,Q){var S=function(V){var U=S.cache;var T=""+(Q?Q.apply(this,arguments):V);if(!P.has(U,T)){U[T]=R.apply(this,arguments)}return U[T]};S.cache={};return S};P.delay=function(R,S){var Q=l.call(arguments,2);return setTimeout(function(){return R.apply(null,Q)},S)};P.defer=P.partial(P.delay,P,1);P.throttle=function(R,T,X){var Q,V,Y;var W=null;var U=0;if(!X){X={}}var S=function(){U=X.leading===false?0:P.now();W=null;Y=R.apply(Q,V);
if(!W){Q=V=null}};return function(){var Z=P.now();if(!U&&X.leading===false){U=Z}var aa=T-(Z-U);Q=this;V=arguments;if(aa<=0||aa>T){if(W){clearTimeout(W);W=null}U=Z;Y=R.apply(Q,V);if(!W){Q=V=null}}else{if(!W&&X.trailing!==false){W=setTimeout(S,aa)}}return Y}};P.debounce=function(S,U,R){var X,W,Q,V,Y;var T=function(){var Z=P.now()-V;if(Z<U&&Z>=0){X=setTimeout(T,U-Z)}else{X=null;if(!R){Y=S.apply(Q,W);if(!X){Q=W=null}}}};return function(){Q=this;W=arguments;V=P.now();var Z=R&&!X;if(!X){X=setTimeout(T,U)
}if(Z){Y=S.apply(Q,W);Q=W=null}return Y}};P.wrap=function(Q,R){return P.partial(R,Q)};P.negate=function(Q){return function(){return !Q.apply(this,arguments)}};P.compose=function(){var Q=arguments;var R=Q.length-1;return function(){var T=R;var S=Q[R].apply(this,arguments);while(T--){S=Q[T].call(this,S)}return S}};P.after=function(R,Q){return function(){if(--R<1){return Q.apply(this,arguments)}}};P.before=function(S,R){var Q;return function(){if(--S>0){Q=R.apply(this,arguments)}if(S<=1){R=null}return Q
}};P.once=P.partial(P.before,2);var G=!{toString:null}.propertyIsEnumerable("toString");var a=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function d(U,T){var Q=a.length;var R=U.constructor;var S=(P.isFunction(R)&&R.prototype)||g;var V="constructor";if(P.has(U,V)&&!P.contains(T,V)){T.push(V)}while(Q--){V=a[Q];if(V in U&&U[V]!==S[V]&&!P.contains(T,V)){T.push(V)}}}P.keys=function(S){if(!P.isObject(S)){return[]}if(e){return e(S)}var R=[];for(var Q in S){if(P.has(S,Q)){R.push(Q)
}}if(G){d(S,R)}return R};P.allKeys=function(S){if(!P.isObject(S)){return[]}var R=[];for(var Q in S){R.push(Q)}if(G){d(S,R)}return R};P.values=function(U){var T=P.keys(U);var S=T.length;var Q=Array(S);for(var R=0;R<S;R++){Q[R]=U[T[R]]}return Q};P.mapObject=function(V,X,S){X=F(X,S);var U=P.keys(V),T=U.length,R={},W;for(var Q=0;Q<T;Q++){W=U[Q];R[W]=X(V[W],W,V)}return R};P.pairs=function(U){var S=P.keys(U);var R=S.length;var T=Array(R);for(var Q=0;Q<R;Q++){T[Q]=[S[Q],U[S[Q]]]}return T};P.invert=function(U){var Q={};
var T=P.keys(U);for(var R=0,S=T.length;R<S;R++){Q[U[T[R]]]=T[R]}return Q};P.functions=P.methods=function(S){var R=[];for(var Q in S){if(P.isFunction(S[Q])){R.push(Q)}}return R.sort()};P.extend=p(P.allKeys);P.extendOwn=P.assign=p(P.keys);P.findKey=function(W,Q,T){Q=F(Q,T);var V=P.keys(W),S;for(var R=0,U=V.length;R<U;R++){S=V[R];if(Q(W[S],S,W)){return S}}};P.pick=function(S,W,Q){var aa={},T=S,V,Z;if(T==null){return aa}if(P.isFunction(W)){Z=P.allKeys(T);V=b(W,Q)}else{Z=x(arguments,false,false,1);V=function(ac,ab,ad){return ab in ad
};T=Object(T)}for(var U=0,R=Z.length;U<R;U++){var Y=Z[U];var X=T[Y];if(V(X,Y,T)){aa[Y]=X}}return aa};P.omit=function(S,T,Q){if(P.isFunction(T)){T=P.negate(T)}else{var R=P.map(x(arguments,false,false,1),String);T=function(V,U){return !P.contains(R,U)}}return P.pick(S,T,Q)};P.defaults=p(P.allKeys,true);P.create=function(R,S){var Q=C(R);if(S){P.extendOwn(Q,S)}return Q};P.clone=function(Q){if(!P.isObject(Q)){return Q}return P.isArray(Q)?Q.slice():P.extend({},Q)};P.tap=function(R,Q){Q(R);return R};P.isMatch=function(R,Q){var V=P.keys(Q),U=V.length;
if(R==null){return !U}var W=Object(R);for(var T=0;T<U;T++){var S=V[T];if(Q[S]!==W[S]||!(S in W)){return false}}return true};var N=function(Y,X,R,T){if(Y===X){return Y!==0||1/Y===1/X}if(Y==null||X==null){return Y===X}if(Y instanceof P){Y=Y._wrapped}if(X instanceof P){X=X._wrapped}var V=c.call(Y);if(V!==c.call(X)){return false}switch(V){case"[object RegExp]":case"[object String]":return""+Y===""+X;case"[object Number]":if(+Y!==+Y){return +X!==+X}return +Y===0?1/+Y===1/X:+Y===+X;case"[object Date]":case"[object Boolean]":return +Y===+X
}var S=V==="[object Array]";if(!S){if(typeof Y!="object"||typeof X!="object"){return false}var W=Y.constructor,U=X.constructor;if(W!==U&&!(P.isFunction(W)&&W instanceof W&&P.isFunction(U)&&U instanceof U)&&("constructor" in Y&&"constructor" in X)){return false}}R=R||[];T=T||[];var Q=R.length;while(Q--){if(R[Q]===Y){return T[Q]===X}}R.push(Y);T.push(X);if(S){Q=Y.length;if(Q!==X.length){return false}while(Q--){if(!N(Y[Q],X[Q],R,T)){return false}}}else{var aa=P.keys(Y),Z;Q=aa.length;if(P.keys(X).length!==Q){return false
}while(Q--){Z=aa[Q];if(!(P.has(X,Z)&&N(Y[Z],X[Z],R,T))){return false}}}R.pop();T.pop();return true};P.isEqual=function(R,Q){return N(R,Q)};P.isEmpty=function(Q){if(Q==null){return true}if(D(Q)&&(P.isArray(Q)||P.isString(Q)||P.isArguments(Q))){return Q.length===0}return P.keys(Q).length===0};P.isElement=function(Q){return !!(Q&&Q.nodeType===1)};P.isArray=s||function(Q){return c.call(Q)==="[object Array]"};P.isObject=function(R){var Q=typeof R;return Q==="function"||Q==="object"&&!!R};P.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(Q){P["is"+Q]=function(R){return c.call(R)==="[object "+Q+"]"
}});if(!P.isArguments(arguments)){P.isArguments=function(Q){return P.has(Q,"callee")}}if(typeof/./!="function"&&typeof Int8Array!="object"){P.isFunction=function(Q){return typeof Q=="function"||false}}P.isFinite=function(Q){return isFinite(Q)&&!isNaN(parseFloat(Q))};P.isNaN=function(Q){return P.isNumber(Q)&&Q!==+Q};P.isBoolean=function(Q){return Q===true||Q===false||c.call(Q)==="[object Boolean]"};P.isNull=function(Q){return Q===null};P.isUndefined=function(Q){return Q===void 0};P.has=function(R,Q){return R!=null&&j.call(R,Q)
};P.noConflict=function(){v._=k;return this};P.identity=function(Q){return Q};P.constant=function(Q){return function(){return Q}};P.noop=function(){};P.property=M;P.propertyOf=function(Q){return Q==null?function(){}:function(R){return Q[R]}};P.matcher=P.matches=function(Q){Q=P.extendOwn({},Q);return function(R){return P.isMatch(R,Q)}};P.times=function(U,T,S){var Q=Array(Math.max(0,U));T=b(T,S,1);for(var R=0;R<U;R++){Q[R]=T(R)}return Q};P.random=function(R,Q){if(Q==null){Q=R;R=0}return R+Math.floor(Math.random()*(Q-R+1))
};P.now=Date.now||function(){return new Date().getTime()};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};var m=P.invert(r);var w=function(U){var R=function(V){return U[V]};var T="(?:"+P.keys(U).join("|")+")";var S=RegExp(T);var Q=RegExp(T,"g");return function(V){V=V==null?"":""+V;return S.test(V)?V.replace(Q,R):V}};P.escape=w(r);P.unescape=w(m);P.result=function(Q,S,T){var R=Q==null?void 0:Q[S];if(R===void 0){R=T}return P.isFunction(R)?R.call(Q):R};var A=0;P.uniqueId=function(Q){var R=++A+"";
return Q?Q+R:R};P.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var t=/(.)^/;var h={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var i=/\\|'|\r|\n|\u2028|\u2029/g;var H=function(Q){return"\\"+h[Q]};P.template=function(Z,T,W){if(!T&&W){T=W}T=P.defaults({},T,P.templateSettings);var U=RegExp([(T.escape||t).source,(T.interpolate||t).source,(T.evaluate||t).source].join("|")+"|$","g");var V=0;var Q="__p+='";Z.replace(U,function(ab,ac,aa,ae,ad){Q+=Z.slice(V,ad).replace(i,H);
V=ad+ab.length;if(ac){Q+="'+\n((__t=("+ac+"))==null?'':_.escape(__t))+\n'"}else{if(aa){Q+="'+\n((__t=("+aa+"))==null?'':__t)+\n'"}else{if(ae){Q+="';\n"+ae+"\n__p+='"}}}return ab});Q+="';\n";if(!T.variable){Q="with(obj||{}){\n"+Q+"}\n"}Q="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+Q+"return __p;\n";try{var S=new Function(T.variable||"obj","_",Q)}catch(X){X.source=Q;throw X}var Y=function(aa){return S.call(this,aa,P)};var R=T.variable||"obj";Y.source="function("+R+"){\n"+Q+"}";
return Y};P.chain=function(R){var Q=P(R);Q._chain=true;return Q};var o=function(Q,R){return Q._chain?P(R).chain():R};P.mixin=function(Q){P.each(P.functions(Q),function(R){var S=P[R]=Q[R];P.prototype[R]=function(){var T=[this._wrapped];L.apply(T,arguments);return o(this,S.apply(P,T))}})};P.mixin(P);P.each(["pop","push","reverse","shift","sort","splice","unshift"],function(Q){var R=I[Q];P.prototype[Q]=function(){var S=this._wrapped;R.apply(S,arguments);if((Q==="shift"||Q==="splice")&&S.length===0){delete S[0]
}return o(this,S)}});P.each(["concat","join","slice"],function(Q){var R=I[Q];P.prototype[Q]=function(){return o(this,R.apply(this._wrapped,arguments))}});P.prototype.value=function(){return this._wrapped};P.prototype.valueOf=P.prototype.toJSON=P.prototype.value;P.prototype.toString=function(){return""+this._wrapped};if(typeof define==="function"&&define.amd){define("underscore",[],function(){return P})}}.call(this));
/*!
 * jQuery JavaScript Library v1.12.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:17Z
 */
(function(b,a){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=b.document?a(b,true):function(c){if(!c.document){throw new Error("jQuery requires a window with a document")}return a(c)}}else{a(b)}}(typeof window!=="undefined"?window:this,function(bc,aD){var aW=[];
var m=bc.document;var X=aW.slice;var aH=aW.concat;var w=aW.push;var b2=aW.indexOf;var ak={};var x=ak.toString;var R=ak.hasOwnProperty;var F={};var ap="1.12.4",bP=function(i,cd){return new bP.fn.init(i,cd)},G=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bZ=/^-ms-/,a3=/-([\da-z])/gi,W=function(i,cd){return cd.toUpperCase()};bP.fn=bP.prototype={jquery:ap,constructor:bP,selector:"",length:0,toArray:function(){return X.call(this)},get:function(i){return i!=null?(i<0?this[i+this.length]:this[i]):X.call(this)},pushStack:function(i){var cd=bP.merge(this.constructor(),i);
cd.prevObject=this;cd.context=this.context;return cd},each:function(i){if(arguments.length>1){throw new Error("调用兼容出错")}return bP.each(this,i)},map:function(i){return this.pushStack(bP.map(this,function(ce,cd){return i.call(ce,cd,ce)}))},slice:function(){return this.pushStack(X.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(cf){var cd=this.length,ce=+cf+(cf<0?cd:0);return this.pushStack(ce>=0&&ce<cd?[this[ce]]:[])},end:function(){return this.prevObject||this.constructor()
},push:w,sort:aW.sort,splice:aW.splice};bP.extend=bP.fn.extend=function(){var cd,cj,ce,cf,cm,ck,ci=arguments[0]||{},ch=1,cg=arguments.length,cl=false;if(typeof ci==="boolean"){cl=ci;ci=arguments[ch]||{};ch++}if(typeof ci!=="object"&&!bP.isFunction(ci)){ci={}}if(ch===cg){ci=this;ch--}for(;ch<cg;ch++){if((cm=arguments[ch])!=null){for(cf in cm){cd=ci[cf];ce=cm[cf];if(ci===ce){continue}if(cl&&ce&&(bP.isPlainObject(ce)||(cj=bP.isArray(ce)))){if(cj){cj=false;ck=cd&&bP.isArray(cd)?cd:[]}else{ck=cd&&bP.isPlainObject(cd)?cd:{}
}ci[cf]=bP.extend(cl,ck,ce)}else{if(ce!==undefined){ci[cf]=ce}}}}}return ci};bP.extend({expando:"jQuery"+(ap+Math.random()).replace(/\D/g,""),isReady:true,error:function(i){throw new Error(i)},noop:function(){},isFunction:function(i){return bP.type(i)==="function"},isArray:Array.isArray||function(i){return bP.type(i)==="array"},isWindow:function(i){return i!=null&&i==i.window},isNumeric:function(cd){var i=cd&&cd.toString();return !bP.isArray(cd)&&(i-parseFloat(i)+1)>=0},isEmptyObject:function(cd){var i;
for(i in cd){return false}return true},isPlainObject:function(ce){var i;if(!ce||bP.type(ce)!=="object"||ce.nodeType||bP.isWindow(ce)){return false}try{if(ce.constructor&&!R.call(ce,"constructor")&&!R.call(ce.constructor.prototype,"isPrototypeOf")){return false}}catch(cd){return false}if(!F.ownFirst){for(i in ce){return R.call(ce,i)}}for(i in ce){}return i===undefined||R.call(ce,i)},type:function(i){if(i==null){return i+""}return typeof i==="object"||typeof i==="function"?ak[x.call(i)]||"object":typeof i
},globalEval:function(i){if(i&&bP.trim(i)){(bc.execScript||function(cd){bc["eval"].call(bc,cd)})(i)}},camelCase:function(i){return i.replace(bZ,"ms-").replace(a3,W)},nodeName:function(cd,i){return cd.nodeName&&cd.nodeName.toLowerCase()===i.toLowerCase()},each:function(cf,cg){var ce,cd=0;if(aB(cf)){ce=cf.length;for(;cd<ce;cd++){if(cg.call(cf[cd],cd,cf[cd])===false){break}}}else{for(cd in cf){if(cg.call(cf[cd],cd,cf[cd])===false){break}}}return cf},trim:function(i){return i==null?"":(i+"").replace(G,"")
},makeArray:function(i,ce){var cd=ce||[];if(i!=null){if(aB(Object(i))){bP.merge(cd,typeof i==="string"?[i]:i)}else{w.call(cd,i)}}return cd},inArray:function(cg,ce,cf){var cd;if(ce){if(b2){return b2.call(ce,cg,cf)}cd=ce.length;cf=cf?cf<0?Math.max(0,cd+cf):cf:0;for(;cf<cd;cf++){if(cf in ce&&ce[cf]===cg){return cf}}}return -1},merge:function(ch,cf){var cd=+cf.length,ce=0,cg=ch.length;while(ce<cd){ch[cg++]=cf[ce++]}if(cd!==cd){while(cf[ce]!==undefined){ch[cg++]=cf[ce++]}}ch.length=cg;return ch},grep:function(cd,ck,ch){var cj,cg=[],ce=0,cf=cd.length,ci=!ch;
for(;ce<cf;ce++){cj=!ck(cd[ce],ce);if(cj!==ci){cg.push(cd[ce])}}return cg},map:function(ce,cj,cd){var ch,ci,cg=0,cf=[];if(aB(ce)){ch=ce.length;for(;cg<ch;cg++){ci=cj(ce[cg],cg,cd);if(ci!=null){cf.push(ci)}}}else{for(cg in ce){ci=cj(ce[cg],cg,cd);if(ci!=null){cf.push(ci)}}}return aH.apply([],cf)},guid:1,proxy:function(cg,cf){var i,ce,cd;if(typeof cf==="string"){cd=cg[cf];cf=cg;cg=cd}if(!bP.isFunction(cg)){return undefined}i=X.call(arguments,2);ce=function(){return cg.apply(cf||this,i.concat(X.call(arguments)))
};ce.guid=cg.guid=cg.guid||bP.guid++;return ce},now:function(){return +(new Date())},support:F});if(typeof Symbol==="function"){bP.fn[Symbol.iterator]=aW[Symbol.iterator]}bP.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(ce,cd){ak["[object "+cd+"]"]=cd.toLowerCase()});function aB(ce){var cd=!!ce&&"length" in ce&&ce.length,i=bP.type(ce);if(i==="function"||bP.isWindow(ce)){return false}return i==="array"||cd===0||typeof cd==="number"&&cd>0&&(cd-1) in ce
}var l=
/*!
 * Sizzle CSS Selector Engine v2.2.1
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-10-17
 */
(function(dk){var cE,dn,ct,cN,cQ,cn,c2,dm,dt,cO,c3,c5,cI,cu,de,c9,dl,ck,cL,dg="sizzle"+1*new Date(),cP=dk.document,dp=0,da=0,cf=cG(),df=cG(),cM=cG(),cK=function(du,i){if(du===i){c3=true}return 0},cW=1<<31,cU=({}).hasOwnProperty,di=[],dj=di.pop,cS=di.push,cd=di.push,cs=di.slice,cj=function(dx,dw){var dv=0,du=dx.length;
for(;dv<du;dv++){if(dx[dv]===dw){return dv}}return -1},ce="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cv="[\\x20\\t\\r\\n\\f]",cR="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",dc="\\["+cv+"*("+cR+")(?:"+cv+"*([*^$|!~]?=)"+cv+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+cR+"))|)"+cv+"*\\]",cq=":("+cR+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+dc+")*)|"+".*"+")\\)|)",cA=new RegExp(cv+"+","g"),cx=new RegExp("^"+cv+"+|((?:^|[^\\\\])(?:\\\\.)*)"+cv+"+$","g"),cB=new RegExp("^"+cv+"*,"+cv+"*"),cH=new RegExp("^"+cv+"*([>+~]|"+cv+")"+cv+"*"),cz=new RegExp("="+cv+"*([^\\]'\"]*?)"+cv+"*\\]","g"),cY=new RegExp(cq),c0=new RegExp("^"+cR+"$"),c8={"ID":new RegExp("^#("+cR+")"),"CLASS":new RegExp("^\\.("+cR+")"),"TAG":new RegExp("^("+cR+"|[*])"),"ATTR":new RegExp("^"+dc),"PSEUDO":new RegExp("^"+cq),"CHILD":new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cv+"*(even|odd|(([+-]|)(\\d*)n|)"+cv+"*(?:([+-]|)"+cv+"*(\\d+)|))"+cv+"*\\)|)","i"),"bool":new RegExp("^(?:"+ce+")$","i"),"needsContext":new RegExp("^"+cv+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cv+"*((?:-\\d)?\\d*)"+cv+"*\\)|)(?=[^-]|$)","i")},ci=/^(?:input|select|textarea|button)$/i,cr=/^h\d$/i,cV=/^[^{]+\{\s*\[native \w/,cX=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,c7=/[+~]/,cT=/'|\\/g,cy=new RegExp("\\\\([\\da-f]{1,6}"+cv+"?|("+cv+")|.)","ig"),db=function(i,dw,du){var dv="0x"+dw-65536;
return dv!==dv||du?dw:dv<0?String.fromCharCode(dv+65536):String.fromCharCode(dv>>10|55296,dv&1023|56320)},ds=function(){c5()};try{cd.apply((di=cs.call(cP.childNodes)),cP.childNodes);di[cP.childNodes.length].nodeType}catch(cJ){cd={apply:di.length?function(du,i){cS.apply(du,cs.call(i))}:function(dx,dw){var du=dx.length,dv=0;while((dx[du++]=dw[dv++])){}dx.length=du-1}}}function cC(dB,dv,dE,dH){var dz,dF,dy,du,dI,dG,dx,dC,dw=dv&&dv.ownerDocument,dD=dv?dv.nodeType:9;dE=dE||[];if(typeof dB!=="string"||!dB||dD!==1&&dD!==9&&dD!==11){return dE
}if(!dH){if((dv?dv.ownerDocument||dv:cP)!==cI){c5(dv)}dv=dv||cI;if(de){if(dD!==11&&(dG=cX.exec(dB))){if((dz=dG[1])){if(dD===9){if((dy=dv.getElementById(dz))){if(dy.id===dz){dE.push(dy);return dE}}else{return dE}}else{if(dw&&(dy=dw.getElementById(dz))&&cL(dv,dy)&&dy.id===dz){dE.push(dy);return dE}}}else{if(dG[2]){cd.apply(dE,dv.getElementsByTagName(dB));return dE}else{if((dz=dG[3])&&dn.getElementsByClassName&&dv.getElementsByClassName){cd.apply(dE,dv.getElementsByClassName(dz));return dE}}}}if(dn.qsa&&!cM[dB+" "]&&(!c9||!c9.test(dB))){if(dD!==1){dw=dv;
dC=dB}else{if(dv.nodeName.toLowerCase()!=="object"){if((du=dv.getAttribute("id"))){du=du.replace(cT,"\\$&")}else{dv.setAttribute("id",(du=dg))}dx=cn(dB);dF=dx.length;dI=c0.test(du)?"#"+du:"[id='"+du+"']";while(dF--){dx[dF]=dI+" "+co(dx[dF])}dC=dx.join(",");dw=c7.test(dB)&&cZ(dv.parentNode)||dv}}if(dC){try{cd.apply(dE,dw.querySelectorAll(dC));return dE}catch(dA){}finally{if(du===dg){dv.removeAttribute("id")}}}}}}return dm(dB.replace(cx,"$1"),dv,dE,dH)}function cG(){var du=[];function i(dv,dw){if(du.push(dv+" ")>ct.cacheLength){delete i[du.shift()]
}return(i[dv+" "]=dw)}return i}function cp(i){i[dg]=true;return i}function cl(i){var dv=cI.createElement("div");try{return !!i(dv)}catch(du){return false}finally{if(dv.parentNode){dv.parentNode.removeChild(dv)}dv=null}}function dq(dv,dx){var du=dv.split("|"),dw=du.length;while(dw--){ct.attrHandle[du[dw]]=dx}}function cg(du,i){var dw=i&&du,dv=dw&&du.nodeType===1&&i.nodeType===1&&(~i.sourceIndex||cW)-(~du.sourceIndex||cW);if(dv){return dv}if(dw){while((dw=dw.nextSibling)){if(dw===i){return -1}}}return du?1:-1
}function cD(i){return function(dv){var du=dv.nodeName.toLowerCase();return du==="input"&&dv.type===i}}function ch(i){return function(dv){var du=dv.nodeName.toLowerCase();return(du==="input"||du==="button")&&dv.type===i}}function dd(i){return cp(function(du){du=+du;return cp(function(dv,dz){var dx,dw=i([],dv.length,du),dy=dw.length;while(dy--){if(dv[(dx=dw[dy])]){dv[dx]=!(dz[dx]=dv[dx])}}})})}function cZ(i){return i&&typeof i.getElementsByTagName!=="undefined"&&i}dn=cC.support={};cQ=cC.isXML=function(i){var du=i&&(i.ownerDocument||i).documentElement;
return du?du.nodeName!=="HTML":false};c5=cC.setDocument=function(dv){var i,du,dw=dv?dv.ownerDocument||dv:cP;if(dw===cI||dw.nodeType!==9||!dw.documentElement){return cI}cI=dw;cu=cI.documentElement;de=!cQ(cI);if((du=cI.defaultView)&&du.top!==du){if(du.addEventListener){du.addEventListener("unload",ds,false)}else{if(du.attachEvent){du.attachEvent("onunload",ds)}}}dn.attributes=cl(function(dx){dx.className="i";return !dx.getAttribute("className")});dn.getElementsByTagName=cl(function(dx){dx.appendChild(cI.createComment(""));
return !dx.getElementsByTagName("*").length});dn.getElementsByClassName=cV.test(cI.getElementsByClassName);dn.getById=cl(function(dx){cu.appendChild(dx).id=dg;return !cI.getElementsByName||!cI.getElementsByName(dg).length});if(dn.getById){ct.find["ID"]=function(dz,dy){if(typeof dy.getElementById!=="undefined"&&de){var dx=dy.getElementById(dz);return dx?[dx]:[]}};ct.filter["ID"]=function(dy){var dx=dy.replace(cy,db);return function(dz){return dz.getAttribute("id")===dx}}}else{delete ct.find["ID"];
ct.filter["ID"]=function(dy){var dx=dy.replace(cy,db);return function(dA){var dz=typeof dA.getAttributeNode!=="undefined"&&dA.getAttributeNode("id");return dz&&dz.value===dx}}}ct.find["TAG"]=dn.getElementsByTagName?function(dx,dy){if(typeof dy.getElementsByTagName!=="undefined"){return dy.getElementsByTagName(dx)}else{if(dn.qsa){return dy.querySelectorAll(dx)}}}:function(dx,dB){var dC,dA=[],dz=0,dy=dB.getElementsByTagName(dx);if(dx==="*"){while((dC=dy[dz++])){if(dC.nodeType===1){dA.push(dC)}}return dA
}return dy};ct.find["CLASS"]=dn.getElementsByClassName&&function(dy,dx){if(typeof dx.getElementsByClassName!=="undefined"&&de){return dx.getElementsByClassName(dy)}};dl=[];c9=[];if((dn.qsa=cV.test(cI.querySelectorAll))){cl(function(dx){cu.appendChild(dx).innerHTML="<a id='"+dg+"'></a>"+"<select id='"+dg+"-\r\\' msallowcapture=''>"+"<option selected=''></option></select>";if(dx.querySelectorAll("[msallowcapture^='']").length){c9.push("[*^$]="+cv+"*(?:''|\"\")")}if(!dx.querySelectorAll("[selected]").length){c9.push("\\["+cv+"*(?:value|"+ce+")")
}if(!dx.querySelectorAll("[id~="+dg+"-]").length){c9.push("~=")}if(!dx.querySelectorAll(":checked").length){c9.push(":checked")}if(!dx.querySelectorAll("a#"+dg+"+*").length){c9.push(".#.+[+~]")}});cl(function(dy){var dx=cI.createElement("input");dx.setAttribute("type","hidden");dy.appendChild(dx).setAttribute("name","D");if(dy.querySelectorAll("[name=d]").length){c9.push("name"+cv+"*[*^$|!~]?=")}if(!dy.querySelectorAll(":enabled").length){c9.push(":enabled",":disabled")}dy.querySelectorAll("*,:x");
c9.push(",.*:")})}if((dn.matchesSelector=cV.test((ck=cu.matches||cu.webkitMatchesSelector||cu.mozMatchesSelector||cu.oMatchesSelector||cu.msMatchesSelector)))){cl(function(dx){dn.disconnectedMatch=ck.call(dx,"div");ck.call(dx,"[s!='']:x");dl.push("!=",cq)})}c9=c9.length&&new RegExp(c9.join("|"));dl=dl.length&&new RegExp(dl.join("|"));i=cV.test(cu.compareDocumentPosition);cL=i||cV.test(cu.contains)?function(dy,dx){var dA=dy.nodeType===9?dy.documentElement:dy,dz=dx&&dx.parentNode;return dy===dz||!!(dz&&dz.nodeType===1&&(dA.contains?dA.contains(dz):dy.compareDocumentPosition&&dy.compareDocumentPosition(dz)&16))
}:function(dy,dx){if(dx){while((dx=dx.parentNode)){if(dx===dy){return true}}}return false};cK=i?function(dy,dx){if(dy===dx){c3=true;return 0}var dz=!dy.compareDocumentPosition-!dx.compareDocumentPosition;if(dz){return dz}dz=(dy.ownerDocument||dy)===(dx.ownerDocument||dx)?dy.compareDocumentPosition(dx):1;if(dz&1||(!dn.sortDetached&&dx.compareDocumentPosition(dy)===dz)){if(dy===cI||dy.ownerDocument===cP&&cL(cP,dy)){return -1}if(dx===cI||dx.ownerDocument===cP&&cL(cP,dx)){return 1}return cO?(cj(cO,dy)-cj(cO,dx)):0
}return dz&4?-1:1}:function(dy,dx){if(dy===dx){c3=true;return 0}var dE,dB=0,dD=dy.parentNode,dA=dx.parentNode,dz=[dy],dC=[dx];if(!dD||!dA){return dy===cI?-1:dx===cI?1:dD?-1:dA?1:cO?(cj(cO,dy)-cj(cO,dx)):0}else{if(dD===dA){return cg(dy,dx)}}dE=dy;while((dE=dE.parentNode)){dz.unshift(dE)}dE=dx;while((dE=dE.parentNode)){dC.unshift(dE)}while(dz[dB]===dC[dB]){dB++}return dB?cg(dz[dB],dC[dB]):dz[dB]===cP?-1:dC[dB]===cP?1:0};return cI};cC.matches=function(du,i){return cC(du,null,null,i)};cC.matchesSelector=function(du,dw){if((du.ownerDocument||du)!==cI){c5(du)
}dw=dw.replace(cz,"='$1']");if(dn.matchesSelector&&de&&!cM[dw+" "]&&(!dl||!dl.test(dw))&&(!c9||!c9.test(dw))){try{var i=ck.call(du,dw);if(i||dn.disconnectedMatch||du.document&&du.document.nodeType!==11){return i}}catch(dv){}}return cC(dw,cI,null,[du]).length>0};cC.contains=function(i,du){if((i.ownerDocument||i)!==cI){c5(i)}return cL(i,du)};cC.attr=function(dv,i){if((dv.ownerDocument||dv)!==cI){c5(dv)}var du=ct.attrHandle[i.toLowerCase()],dw=du&&cU.call(ct.attrHandle,i.toLowerCase())?du(dv,i,!de):undefined;
return dw!==undefined?dw:dn.attributes||!de?dv.getAttribute(i):(dw=dv.getAttributeNode(i))&&dw.specified?dw.value:null};cC.error=function(i){throw new Error("Syntax error, unrecognized expression: "+i)};cC.uniqueSort=function(dw){var dx,dy=[],du=0,dv=0;c3=!dn.detectDuplicates;cO=!dn.sortStable&&dw.slice(0);dw.sort(cK);if(c3){while((dx=dw[dv++])){if(dx===dw[dv]){du=dy.push(dv)}}while(du--){dw.splice(dy[du],1)}}cO=null;return dw};cN=cC.getText=function(dy){var dx,dv="",dw=0,du=dy.nodeType;if(!du){while((dx=dy[dw++])){dv+=cN(dx)
}}else{if(du===1||du===9||du===11){if(typeof dy.textContent==="string"){return dy.textContent}else{for(dy=dy.firstChild;dy;dy=dy.nextSibling){dv+=cN(dy)}}}else{if(du===3||du===4){return dy.nodeValue}}}return dv};ct=cC.selectors={cacheLength:50,createPseudo:cp,match:c8,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{"ATTR":function(i){i[1]=i[1].replace(cy,db);i[3]=(i[3]||i[4]||i[5]||"").replace(cy,db);
if(i[2]==="~="){i[3]=" "+i[3]+" "}return i.slice(0,4)},"CHILD":function(i){i[1]=i[1].toLowerCase();if(i[1].slice(0,3)==="nth"){if(!i[3]){cC.error(i[0])}i[4]=+(i[4]?i[5]+(i[6]||1):2*(i[3]==="even"||i[3]==="odd"));i[5]=+((i[7]+i[8])||i[3]==="odd")}else{if(i[3]){cC.error(i[0])}}return i},"PSEUDO":function(du){var i,dv=!du[6]&&du[2];if(c8["CHILD"].test(du[0])){return null}if(du[3]){du[2]=du[4]||du[5]||""}else{if(dv&&cY.test(dv)&&(i=cn(dv,true))&&(i=dv.indexOf(")",dv.length-i)-dv.length)){du[0]=du[0].slice(0,i);
du[2]=dv.slice(0,i)}}return du.slice(0,3)}},filter:{"TAG":function(du){var i=du.replace(cy,db).toLowerCase();return du==="*"?function(){return true}:function(dv){return dv.nodeName&&dv.nodeName.toLowerCase()===i}},"CLASS":function(i){var du=cf[i+" "];return du||(du=new RegExp("(^|"+cv+")"+i+"("+cv+"|$)"))&&cf(i,function(dv){return du.test(typeof dv.className==="string"&&dv.className||typeof dv.getAttribute!=="undefined"&&dv.getAttribute("class")||"")})},"ATTR":function(dv,du,i){return function(dx){var dw=cC.attr(dx,dv);
if(dw==null){return du==="!="}if(!du){return true}dw+="";return du==="="?dw===i:du==="!="?dw!==i:du==="^="?i&&dw.indexOf(i)===0:du==="*="?i&&dw.indexOf(i)>-1:du==="$="?i&&dw.slice(-i.length)===i:du==="~="?(" "+dw.replace(cA," ")+" ").indexOf(i)>-1:du==="|="?dw===i||dw.slice(0,i.length+1)===i+"-":false}},"CHILD":function(du,dx,dw,dy,dv){var dA=du.slice(0,3)!=="nth",i=du.slice(-4)!=="last",dz=dx==="of-type";return dy===1&&dv===0?function(dB){return !!dB.parentNode}:function(dI,dG,dL){var dB,dE,dO,dJ,dK,dF,dH=dA!==i?"nextSibling":"previousSibling",dN=dI.parentNode,dD=dz&&dI.nodeName.toLowerCase(),dC=!dL&&!dz,dM=false;
if(dN){if(dA){while(dH){dJ=dI;while((dJ=dJ[dH])){if(dz?dJ.nodeName.toLowerCase()===dD:dJ.nodeType===1){return false}}dF=dH=du==="only"&&!dF&&"nextSibling"}return true}dF=[i?dN.firstChild:dN.lastChild];if(i&&dC){dJ=dN;dO=dJ[dg]||(dJ[dg]={});dE=dO[dJ.uniqueID]||(dO[dJ.uniqueID]={});dB=dE[du]||[];dK=dB[0]===dp&&dB[1];dM=dK&&dB[2];dJ=dK&&dN.childNodes[dK];while((dJ=++dK&&dJ&&dJ[dH]||(dM=dK=0)||dF.pop())){if(dJ.nodeType===1&&++dM&&dJ===dI){dE[du]=[dp,dK,dM];break}}}else{if(dC){dJ=dI;dO=dJ[dg]||(dJ[dg]={});
dE=dO[dJ.uniqueID]||(dO[dJ.uniqueID]={});dB=dE[du]||[];dK=dB[0]===dp&&dB[1];dM=dK}if(dM===false){while((dJ=++dK&&dJ&&dJ[dH]||(dM=dK=0)||dF.pop())){if((dz?dJ.nodeName.toLowerCase()===dD:dJ.nodeType===1)&&++dM){if(dC){dO=dJ[dg]||(dJ[dg]={});dE=dO[dJ.uniqueID]||(dO[dJ.uniqueID]={});dE[du]=[dp,dM]}if(dJ===dI){break}}}}}dM-=dv;return dM===dy||(dM%dy===0&&dM/dy>=0)}}},"PSEUDO":function(dw,dv){var i,du=ct.pseudos[dw]||ct.setFilters[dw.toLowerCase()]||cC.error("unsupported pseudo: "+dw);if(du[dg]){return du(dv)
}if(du.length>1){i=[dw,dw,"",dv];return ct.setFilters.hasOwnProperty(dw.toLowerCase())?cp(function(dz,dB){var dy,dx=du(dz,dv),dA=dx.length;while(dA--){dy=cj(dz,dx[dA]);dz[dy]=!(dB[dy]=dx[dA])}}):function(dx){return du(dx,0,i)}}return du}},pseudos:{"not":cp(function(i){var du=[],dv=[],dw=c2(i.replace(cx,"$1"));return dw[dg]?cp(function(dy,dD,dB,dz){var dC,dx=dw(dy,null,dz,[]),dA=dy.length;while(dA--){if((dC=dx[dA])){dy[dA]=!(dD[dA]=dC)}}}):function(dz,dy,dx){du[0]=dz;dw(du,null,dx,dv);du[0]=null;return !dv.pop()
}}),"has":cp(function(i){return function(du){return cC(i,du).length>0}}),"contains":cp(function(i){i=i.replace(cy,db);return function(du){return(du.textContent||du.innerText||cN(du)).indexOf(i)>-1}}),"lang":cp(function(i){if(!c0.test(i||"")){cC.error("unsupported lang: "+i)}i=i.replace(cy,db).toLowerCase();return function(dv){var du;do{if((du=de?dv.lang:dv.getAttribute("xml:lang")||dv.getAttribute("lang"))){du=du.toLowerCase();return du===i||du.indexOf(i+"-")===0}}while((dv=dv.parentNode)&&dv.nodeType===1);
return false}}),"target":function(i){var du=dk.location&&dk.location.hash;return du&&du.slice(1)===i.id},"root":function(i){return i===cu},"focus":function(i){return i===cI.activeElement&&(!cI.hasFocus||cI.hasFocus())&&!!(i.type||i.href||~i.tabIndex)},"enabled":function(i){return i.disabled===false},"disabled":function(i){return i.disabled===true},"checked":function(i){var du=i.nodeName.toLowerCase();return(du==="input"&&!!i.checked)||(du==="option"&&!!i.selected)},"selected":function(i){if(i.parentNode){i.parentNode.selectedIndex
}return i.selected===true},"empty":function(i){for(i=i.firstChild;i;i=i.nextSibling){if(i.nodeType<6){return false}}return true},"parent":function(i){return !ct.pseudos["empty"](i)},"header":function(i){return cr.test(i.nodeName)},"input":function(i){return ci.test(i.nodeName)},"button":function(du){var i=du.nodeName.toLowerCase();return i==="input"&&du.type==="button"||i==="button"},"text":function(du){var i;return du.nodeName.toLowerCase()==="input"&&du.type==="text"&&((i=du.getAttribute("type"))==null||i.toLowerCase()==="text")
},"first":dd(function(){return[0]}),"last":dd(function(i,du){return[du-1]}),"eq":dd(function(i,dv,du){return[du<0?du+dv:du]}),"even":dd(function(du,dw){var dv=0;for(;dv<dw;dv+=2){du.push(dv)}return du}),"odd":dd(function(du,dw){var dv=1;for(;dv<dw;dv+=2){du.push(dv)}return du}),"lt":dd(function(du,dx,dw){var dv=dw<0?dw+dx:dw;for(;--dv>=0;){du.push(dv)}return du}),"gt":dd(function(du,dx,dw){var dv=dw<0?dw+dx:dw;for(;++dv<dx;){du.push(dv)}return du})}};ct.pseudos["nth"]=ct.pseudos["eq"];for(cE in {radio:true,checkbox:true,file:true,password:true,image:true}){ct.pseudos[cE]=cD(cE)
}for(cE in {submit:true,reset:true}){ct.pseudos[cE]=ch(cE)}function c1(){}c1.prototype=ct.filters=ct.pseudos;ct.setFilters=new c1();cn=cC.tokenize=function(dx,dC){var du,dy,dA,dB,dz,dv,i,dw=df[dx+" "];if(dw){return dC?0:dw.slice(0)}dz=dx;dv=[];i=ct.preFilter;while(dz){if(!du||(dy=cB.exec(dz))){if(dy){dz=dz.slice(dy[0].length)||dz}dv.push((dA=[]))}du=false;if((dy=cH.exec(dz))){du=dy.shift();dA.push({value:du,type:dy[0].replace(cx," ")});dz=dz.slice(du.length)}for(dB in ct.filter){if((dy=c8[dB].exec(dz))&&(!i[dB]||(dy=i[dB](dy)))){du=dy.shift();
dA.push({value:du,type:dB,matches:dy});dz=dz.slice(du.length)}}if(!du){break}}return dC?dz.length:dz?cC.error(dx):df(dx,dv).slice(0)};function co(dx){var dw=0,dv=dx.length,du="";for(;dw<dv;dw++){du+=dx[dw].value}return du}function cw(dx,dv,dw){var i=dv.dir,dy=dw&&i==="parentNode",du=da++;return dv.first?function(dB,dA,dz){while((dB=dB[i])){if(dB.nodeType===1||dy){return dx(dB,dA,dz)}}}:function(dE,dC,dB){var dF,dz,dD,dA=[dp,du];if(dB){while((dE=dE[i])){if(dE.nodeType===1||dy){if(dx(dE,dC,dB)){return true
}}}}else{while((dE=dE[i])){if(dE.nodeType===1||dy){dD=dE[dg]||(dE[dg]={});dz=dD[dE.uniqueID]||(dD[dE.uniqueID]={});if((dF=dz[i])&&dF[0]===dp&&dF[1]===du){return(dA[2]=dF[2])}else{dz[i]=dA;if((dA[2]=dx(dE,dC,dB))){return true}}}}}}}function dr(i){return i.length>1?function(dx,dw,du){var dv=i.length;while(dv--){if(!i[dv](dx,dw,du)){return false}}return true}:i[0]}function cF(dv,dy,dx){var dw=0,du=dy.length;for(;dw<du;dw++){cC(dv,dy[dw],dx)}return dx}function c6(du,dv,dw,dx,dA){var dy,dD=[],dz=0,dB=du.length,dC=dv!=null;
for(;dz<dB;dz++){if((dy=du[dz])){if(!dw||dw(dy,dx,dA)){dD.push(dy);if(dC){dv.push(dz)}}}}return dD}function cm(dv,du,dx,dw,dy,i){if(dw&&!dw[dg]){dw=cm(dw)}if(dy&&!dy[dg]){dy=cm(dy,i)}return cp(function(dJ,dG,dB,dI){var dL,dH,dD,dC=[],dK=[],dA=dG.length,dz=dJ||cF(du||"*",dB.nodeType?[dB]:dB,[]),dE=dv&&(dJ||!du)?c6(dz,dC,dv,dB,dI):dz,dF=dx?dy||(dJ?dv:dA||dw)?[]:dG:dE;if(dx){dx(dE,dF,dB,dI)}if(dw){dL=c6(dF,dK);dw(dL,[],dB,dI);dH=dL.length;while(dH--){if((dD=dL[dH])){dF[dK[dH]]=!(dE[dK[dH]]=dD)}}}if(dJ){if(dy||dv){if(dy){dL=[];
dH=dF.length;while(dH--){if((dD=dF[dH])){dL.push((dE[dH]=dD))}}dy(null,(dF=[]),dL,dI)}dH=dF.length;while(dH--){if((dD=dF[dH])&&(dL=dy?cj(dJ,dD):dC[dH])>-1){dJ[dL]=!(dG[dL]=dD)}}}}else{dF=c6(dF===dG?dF.splice(dA,dF.length):dF);if(dy){dy(null,dG,dF,dI)}else{cd.apply(dG,dF)}}})}function dh(dA){var dv,dy,dw,dz=dA.length,dD=ct.relative[dA[0].type],dE=dD||ct.relative[" "],dx=dD?1:0,dB=cw(function(i){return i===dv},dE,true),dC=cw(function(i){return cj(dv,i)>-1},dE,true),du=[function(dH,dG,dF){var i=(!dD&&(dF||dG!==dt))||((dv=dG).nodeType?dB(dH,dG,dF):dC(dH,dG,dF));
dv=null;return i}];for(;dx<dz;dx++){if((dy=ct.relative[dA[dx].type])){du=[cw(dr(du),dy)]}else{dy=ct.filter[dA[dx].type].apply(null,dA[dx].matches);if(dy[dg]){dw=++dx;for(;dw<dz;dw++){if(ct.relative[dA[dw].type]){break}}return cm(dx>1&&dr(du),dx>1&&co(dA.slice(0,dx-1).concat({value:dA[dx-2].type===" "?"*":""})).replace(cx,"$1"),dy,dx<dw&&dh(dA.slice(dx,dw)),dw<dz&&dh((dA=dA.slice(dw))),dw<dz&&co(dA))}du.push(dy)}}return dr(du)}function c4(dw,dv){var i=dv.length>0,dx=dw.length>0,du=function(dH,dB,dG,dF,dK){var dC,dD,dI,dM=0,dE="0",dy=dH&&[],dN=[],dL=dt,dA=dH||dx&&ct.find["TAG"]("*",dK),dz=(dp+=dL==null?1:Math.random()||0.1),dJ=dA.length;
if(dK){dt=dB===cI||dB||dK}for(;dE!==dJ&&(dC=dA[dE])!=null;dE++){if(dx&&dC){dD=0;if(!dB&&dC.ownerDocument!==cI){c5(dC);dG=!de}while((dI=dw[dD++])){if(dI(dC,dB||cI,dG)){dF.push(dC);break}}if(dK){dp=dz}}if(i){if((dC=!dI&&dC)){dM--}if(dH){dy.push(dC)}}}dM+=dE;if(i&&dE!==dM){dD=0;while((dI=dv[dD++])){dI(dy,dN,dB,dG)}if(dH){if(dM>0){while(dE--){if(!(dy[dE]||dN[dE])){dN[dE]=dj.call(dF)}}}dN=c6(dN)}cd.apply(dF,dN);if(dK&&!dH&&dN.length>0&&(dM+dv.length)>1){cC.uniqueSort(dF)}}if(dK){dp=dz;dt=dL}return dy};
return i?cp(du):du}c2=cC.compile=function(du,dw){var dx,dv=[],dz=[],dy=cM[du+" "];if(!dy){if(!dw){dw=cn(du)}dx=dw.length;while(dx--){dy=dh(dw[dx]);if(dy[dg]){dv.push(dy)}else{dz.push(dy)}}dy=cM(du,c4(dz,dv));dy.selector=du}return dy};dm=cC.select=function(dw,du,dx,dA){var dy,dD,dv,dE,dB,dC=typeof dw==="function"&&dw,dz=!dA&&cn((dw=dC.selector||dw));dx=dx||[];if(dz.length===1){dD=dz[0]=dz[0].slice(0);if(dD.length>2&&(dv=dD[0]).type==="ID"&&dn.getById&&du.nodeType===9&&de&&ct.relative[dD[1].type]){du=(ct.find["ID"](dv.matches[0].replace(cy,db),du)||[])[0];
if(!du){return dx}else{if(dC){du=du.parentNode}}dw=dw.slice(dD.shift().value.length)}dy=c8["needsContext"].test(dw)?0:dD.length;while(dy--){dv=dD[dy];if(ct.relative[(dE=dv.type)]){break}if((dB=ct.find[dE])){if((dA=dB(dv.matches[0].replace(cy,db),c7.test(dD[0].type)&&cZ(du.parentNode)||du))){dD.splice(dy,1);dw=dA.length&&co(dD);if(!dw){cd.apply(dx,dA);return dx}break}}}}(dC||c2(dw,dz))(dA,du,!de,dx,!du||c7.test(dw)&&cZ(du.parentNode)||du);return dx};dn.sortStable=dg.split("").sort(cK).join("")===dg;
dn.detectDuplicates=!!c3;c5();dn.sortDetached=cl(function(i){return i.compareDocumentPosition(cI.createElement("div"))&1});if(!cl(function(i){i.innerHTML="<a href='#'></a>";return i.firstChild.getAttribute("href")==="#"})){dq("type|href|height|width",function(du,i,dv){if(!dv){return du.getAttribute(i,i.toLowerCase()==="type"?1:2)}})}if(!dn.attributes||!cl(function(i){i.innerHTML="<input/>";i.firstChild.setAttribute("value","");return i.firstChild.getAttribute("value")===""})){dq("value",function(du,i,dv){if(!dv&&du.nodeName.toLowerCase()==="input"){return du.defaultValue
}})}if(!cl(function(i){return i.getAttribute("disabled")==null})){dq(ce,function(du,i,dw){var dv;if(!dw){return du[i]===true?i.toLowerCase():(dv=du.getAttributeNode(i))&&dv.specified?dv.value:null}})}return cC})(bc);bP.find=l;bP.expr=l.selectors;bP.expr[":"]=bP.expr.pseudos;bP.uniqueSort=bP.unique=l.uniqueSort;bP.text=l.getText;bP.isXMLDoc=l.isXML;bP.contains=l.contains;var af=function(cf,cd,cg){var i=[],ce=cg!==undefined;while((cf=cf[cd])&&cf.nodeType!==9){if(cf.nodeType===1){if(ce&&bP(cf).is(cg)){break
}i.push(cf)}}return i};var o=function(ce,cd){var i=[];for(;ce;ce=ce.nextSibling){if(ce.nodeType===1&&ce!==cd){i.push(ce)}}return i};var z=bP.expr.match.needsContext;var a=(/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/);var aR=/^.[^:#\[\.,]*$/;function aY(ce,i,cd){if(bP.isFunction(i)){return bP.grep(ce,function(cg,cf){return !!i.call(cg,cf,cg)!==cd})}if(i.nodeType){return bP.grep(ce,function(cf){return(cf===i)!==cd})}if(typeof i==="string"){if(aR.test(i)){return bP.filter(i,ce,cd)}i=bP.filter(i,ce)}return bP.grep(ce,function(cf){return(bP.inArray(cf,i)>-1)!==cd
})}bP.filter=function(cf,i,ce){var cd=i[0];if(ce){cf=":not("+cf+")"}return i.length===1&&cd.nodeType===1?bP.find.matchesSelector(cd,cf)?[cd]:[]:bP.find.matches(cf,bP.grep(i,function(cg){return cg.nodeType===1}))};bP.fn.extend({find:function(ce){var ch,cg=[],cf=this,cd=cf.length;if(typeof ce!=="string"){return this.pushStack(bP(ce).filter(function(){for(ch=0;ch<cd;ch++){if(bP.contains(cf[ch],this)){return true}}}))}for(ch=0;ch<cd;ch++){bP.find(ce,cf[ch],cg)}cg=this.pushStack(cd>1?bP.unique(cg):cg);
cg.selector=this.selector?this.selector+" "+ce:ce;return cg},filter:function(i){return this.pushStack(aY(this,i||[],false))},not:function(i){return this.pushStack(aY(this,i||[],true))},is:function(i){return !!aY(this,typeof i==="string"&&z.test(i)?bP(i):i||[],false).length}});var y,bA=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,b3=bP.fn.init=function(i,cf,cd){var ce,cg;if(!i){return this}cd=cd||y;if(typeof i==="string"){if(i.charAt(0)==="<"&&i.charAt(i.length-1)===">"&&i.length>=3){ce=[null,i,null]}else{ce=bA.exec(i)
}if(ce&&(ce[1]||!cf)){if(ce[1]){cf=cf instanceof bP?cf[0]:cf;bP.merge(this,bP.parseHTML(ce[1],cf&&cf.nodeType?cf.ownerDocument||cf:m,true));if(a.test(ce[1])&&bP.isPlainObject(cf)){for(ce in cf){if(bP.isFunction(this[ce])){this[ce](cf[ce])}else{this.attr(ce,cf[ce])}}}return this}else{cg=m.getElementById(ce[2]);if(cg&&cg.parentNode){if(cg.id!==ce[2]){return y.find(i)}this.length=1;this[0]=cg}this.context=m;this.selector=i;return this}}else{if(!cf||cf.jquery){return(cf||cd).find(i)}else{return this.constructor(cf).find(i)
}}}else{if(i.nodeType){this.context=this[0]=i;this.length=1;return this}else{if(bP.isFunction(i)){return typeof cd.ready!=="undefined"?cd.ready(i):i(bP)}}}if(i.selector!==undefined){this.selector=i.selector;this.context=i.context}return bP.makeArray(i,this)};b3.prototype=bP.fn;y=bP(m);var bC=/^(?:parents|prev(?:Until|All))/,bG={children:true,contents:true,next:true,prev:true};bP.fn.extend({has:function(cg){var cf,ce=bP(cg,this),cd=ce.length;return this.filter(function(){for(cf=0;cf<cd;cf++){if(bP.contains(this,ce[cf])){return true
}}})},closest:function(ch,cg){var ci,cf=0,ce=this.length,cd=[],cj=z.test(ch)||typeof ch!=="string"?bP(ch,cg||this.context):0;for(;cf<ce;cf++){for(ci=this[cf];ci&&ci!==cg;ci=ci.parentNode){if(ci.nodeType<11&&(cj?cj.index(ci)>-1:ci.nodeType===1&&bP.find.matchesSelector(ci,ch))){cd.push(ci);break}}}return this.pushStack(cd.length>1?bP.uniqueSort(cd):cd)},index:function(i){if(!i){return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1}if(typeof i==="string"){return bP.inArray(this[0],bP(i))
}return bP.inArray(i.jquery?i[0]:i,this)},add:function(i,cd){return this.pushStack(bP.uniqueSort(bP.merge(this.get(),bP(i,cd))))},addBack:function(i){return this.add(i==null?this.prevObject:this.prevObject.filter(i))}});function a6(cd,i){do{cd=cd[i]}while(cd&&cd.nodeType!==1);return cd}bP.each({parent:function(cd){var i=cd.parentNode;return i&&i.nodeType!==11?i:null},parents:function(i){return af(i,"parentNode")},parentsUntil:function(ce,cd,cf){return af(ce,"parentNode",cf)},next:function(i){return a6(i,"nextSibling")
},prev:function(i){return a6(i,"previousSibling")},nextAll:function(i){return af(i,"nextSibling")},prevAll:function(i){return af(i,"previousSibling")},nextUntil:function(ce,cd,cf){return af(ce,"nextSibling",cf)},prevUntil:function(ce,cd,cf){return af(ce,"previousSibling",cf)},siblings:function(i){return o((i.parentNode||{}).firstChild,i)},children:function(i){return o(i.firstChild)},contents:function(i){return bP.nodeName(i,"iframe")?i.contentDocument||i.contentWindow.document:bP.merge([],i.childNodes)
}},function(i,cd){bP.fn[i]=function(cg,ce){var cf=bP.map(this,cd,cg);if(i.slice(-5)!=="Until"){ce=cg}if(ce&&typeof ce==="string"){cf=bP.filter(ce,cf)}if(this.length>1){if(!bG[i]){cf=bP.uniqueSort(cf)}if(bC.test(i)){cf=cf.reverse()}}return this.pushStack(cf)}});var aM=(/\S+/g);function am(cd){var i={};bP.each(cd.match(aM)||[],function(cf,ce){i[ce]=true});return i}bP.Callbacks=function(cl){cl=typeof cl==="string"?am(cl):bP.extend({},cl);var cg,ce,i,cf,cj=[],ch=[],ci=-1,cd=function(){cf=cl.once;i=cg=true;
for(;ch.length;ci=-1){ce=ch.shift();while(++ci<cj.length){if(cj[ci].apply(ce[0],ce[1])===false&&cl.stopOnFalse){ci=cj.length;ce=false}}}if(!cl.memory){ce=false}cg=false;if(cf){if(ce){cj=[]}else{cj=""}}},ck={add:function(){if(cj){if(ce&&!cg){ci=cj.length-1;ch.push(ce)}(function cm(cn){bP.each(cn,function(cp,co){if(bP.isFunction(co)){if(!cl.unique||!ck.has(co)){cj.push(co)}}else{if(co&&co.length&&bP.type(co)!=="string"){cm(co)}}})})(arguments);if(ce&&!cg){cd()}}return this},remove:function(){bP.each(arguments,function(co,cm){var cn;
while((cn=bP.inArray(cm,cj,cn))>-1){cj.splice(cn,1);if(cn<=ci){ci--}}});return this},has:function(cm){return cm?bP.inArray(cm,cj)>-1:cj.length>0},empty:function(){if(cj){cj=[]}return this},disable:function(){cf=ch=[];cj=ce="";return this},disabled:function(){return !cj},lock:function(){cf=true;if(!ce){ck.disable()}return this},locked:function(){return !!cf},fireWith:function(cn,cm){if(!cf){cm=cm||[];cm=[cn,cm.slice?cm.slice():cm];ch.push(cm);if(!cg){cd()}}return this},fire:function(){ck.fireWith(this,arguments);
return this},fired:function(){return !!i}};return ck};bP.extend({Deferred:function(ce){var cd=[["resolve","done",bP.Callbacks("once memory"),"resolved"],["reject","fail",bP.Callbacks("once memory"),"rejected"],["notify","progress",bP.Callbacks("memory")]],cf="pending",cg={state:function(){return cf},always:function(){i.done(arguments).fail(arguments);return this},then:function(){var ch=arguments;return bP.Deferred(function(ci){bP.each(cd,function(ck,cj){var cl=bP.isFunction(ch[ck])&&ch[ck];i[cj[1]](function(){var cm=cl&&cl.apply(this,arguments);
if(cm&&bP.isFunction(cm.promise)){cm.promise().progress(ci.notify).done(ci.resolve).fail(ci.reject)}else{ci[cj[0]+"With"](this===cg?ci.promise():this,cl?[cm]:arguments)}})});ch=null}).promise()},promise:function(ch){return ch!=null?bP.extend(ch,cg):cg}},i={};cg.pipe=cg.then;bP.each(cd,function(ci,ch){var ck=ch[2],cj=ch[3];cg[ch[1]]=ck.add;if(cj){ck.add(function(){cf=cj},cd[ci^1][2].disable,cd[2][2].lock)}i[ch[0]]=function(){i[ch[0]+"With"](this===i?cg:this,arguments);return this};i[ch[0]+"With"]=ck.fireWith
});cg.promise(i);if(ce){ce.call(i,i)}return i},when:function(ch){var cf=0,cj=X.call(arguments),cd=cj.length,ce=cd!==1||(ch&&bP.isFunction(ch.promise))?cd:0,cm=ce===1?ch:bP.Deferred(),cg=function(co,cp,cn){return function(i){cp[co]=this;cn[co]=arguments.length>1?X.call(arguments):i;if(cn===cl){cm.notifyWith(cp,cn)}else{if(!(--ce)){cm.resolveWith(cp,cn)}}}},cl,ci,ck;if(cd>1){cl=new Array(cd);ci=new Array(cd);ck=new Array(cd);for(;cf<cd;cf++){if(cj[cf]&&bP.isFunction(cj[cf].promise)){cj[cf].promise().progress(cg(cf,ci,cl)).done(cg(cf,ck,cj)).fail(cm.reject)
}else{--ce}}}if(!ce){cm.resolveWith(ck,cj)}return cm.promise()}});var ar;bP.fn.ready=function(i){bP.ready.promise().done(i);return this};bP.extend({isReady:false,readyWait:1,holdReady:function(i){if(i){bP.readyWait++}else{bP.ready(true)}},ready:function(i){if(i===true?--bP.readyWait:bP.isReady){return}bP.isReady=true;if(i!==true&&--bP.readyWait>0){return}ar.resolveWith(m,[bP]);if(bP.fn.triggerHandler){bP(m).triggerHandler("ready");bP(m).off("ready")}}});function bt(){if(m.addEventListener){m.removeEventListener("DOMContentLoaded",b7);
bc.removeEventListener("load",b7)}else{m.detachEvent("onreadystatechange",b7);bc.detachEvent("onload",b7)}}function b7(){if(m.addEventListener||bc.event.type==="load"||m.readyState==="complete"){bt();bP.ready()}}bP.ready.promise=function(cf){if(!ar){ar=bP.Deferred();if(m.readyState==="complete"||(m.readyState!=="loading"&&!m.documentElement.doScroll)){bc.setTimeout(bP.ready)}else{if(m.addEventListener){m.addEventListener("DOMContentLoaded",b7);bc.addEventListener("load",b7)}else{m.attachEvent("onreadystatechange",b7);
bc.attachEvent("onload",b7);var ce=false;try{ce=bc.frameElement==null&&m.documentElement}catch(cd){}if(ce&&ce.doScroll){(function i(){if(!bP.isReady){try{ce.doScroll("left")}catch(cg){return bc.setTimeout(i,50)}bt();bP.ready()}})()}}}}return ar.promise(cf)};bP.ready.promise();var bo;for(bo in bP(F)){break}F.ownFirst=bo==="0";F.inlineBlockNeedsLayout=false;bP(function(){var ce,cf,i,cd;i=m.getElementsByTagName("body")[0];if(!i||!i.style){return}cf=m.createElement("div");cd=m.createElement("div");cd.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
i.appendChild(cd).appendChild(cf);if(typeof cf.style.zoom!=="undefined"){cf.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";F.inlineBlockNeedsLayout=ce=cf.offsetWidth===3;if(ce){i.style.zoom=1}}i.removeChild(cd)});(function(){var cd=m.createElement("div");F.deleteExpando=true;try{delete cd.test}catch(i){F.deleteExpando=false}cd=null})();var V=function(ce){var cd=bP.noData[(ce.nodeName+" ").toLowerCase()],i=+ce.nodeType||1;return i!==1&&i!==9?false:!cd||cd!==true&&ce.getAttribute("classid")===cd
};var bF=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,aX=/([A-Z])/g;function bH(ce,cd,cf){if(cf===undefined&&ce.nodeType===1){var i="data-"+cd.replace(aX,"-$1").toLowerCase();cf=ce.getAttribute(i);if(typeof cf==="string"){try{cf=cf==="true"?true:cf==="false"?false:cf==="null"?null:+cf+""===cf?+cf:bF.test(cf)?bP.parseJSON(cf):cf}catch(cg){}bP.data(ce,cd,cf)}else{cf=undefined}}return cf}function Y(cd){var i;for(i in cd){if(i==="data"&&bP.isEmptyObject(cd[i])){continue}if(i!=="toJSON"){return false}}return true}function bj(cf,cd,ch,cg){if(!V(cf)){return
}var cj,ci,ck=bP.expando,cl=cf.nodeType,i=cl?bP.cache:cf,ce=cl?cf[ck]:cf[ck]&&ck;if((!ce||!i[ce]||(!cg&&!i[ce].data))&&ch===undefined&&typeof cd==="string"){return}if(!ce){if(cl){ce=cf[ck]=aW.pop()||bP.guid++}else{ce=ck}}if(!i[ce]){i[ce]=cl?{}:{toJSON:bP.noop}}if(typeof cd==="object"||typeof cd==="function"){if(cg){i[ce]=bP.extend(i[ce],cd)}else{i[ce].data=bP.extend(i[ce].data,cd)}}ci=i[ce];if(!cg){if(!ci.data){ci.data={}}ci=ci.data}if(ch!==undefined){ci[bP.camelCase(cd)]=ch}if(typeof cd==="string"){cj=ci[cd];
if(cj==null){cj=ci[bP.camelCase(cd)]}}else{cj=ci}return cj}function aj(ch,cf,cd){if(!V(ch)){return}var cj,cg,ci=ch.nodeType,ce=ci?bP.cache:ch,ck=ci?ch[bP.expando]:bP.expando;if(!ce[ck]){return}if(cf){cj=cd?ce[ck]:ce[ck].data;if(cj){if(!bP.isArray(cf)){if(cf in cj){cf=[cf]}else{cf=bP.camelCase(cf);if(cf in cj){cf=[cf]}else{cf=cf.split(" ")}}}else{cf=cf.concat(bP.map(cf,bP.camelCase))}cg=cf.length;while(cg--){delete cj[cf[cg]]}if(cd?!Y(cj):!bP.isEmptyObject(cj)){return}}}if(!cd){delete ce[ck].data;
if(!Y(ce[ck])){return}}if(ci){bP.cleanData([ch],true)}else{if(F.deleteExpando||ce!=ce.window){delete ce[ck]}else{ce[ck]=undefined}}}bP.extend({cache:{},noData:{"applet ":true,"embed ":true,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(i){i=i.nodeType?bP.cache[i[bP.expando]]:i[bP.expando];return !!i&&!Y(i)},data:function(cd,i,ce){return bj(cd,i,ce)},removeData:function(cd,i){return aj(cd,i)},_data:function(cd,i,ce){return bj(cd,i,ce,true)},_removeData:function(cd,i){return aj(cd,i,true)
}});bP.fn.extend({data:function(cg,cj){var cf,ce,ci,ch=this[0],cd=ch&&ch.attributes;if(cg===undefined){if(this.length){ci=bP.data(ch);if(ch.nodeType===1&&!bP._data(ch,"parsedAttrs")){cf=cd.length;while(cf--){if(cd[cf]){ce=cd[cf].name;if(ce.indexOf("data-")===0){ce=bP.camelCase(ce.slice(5));bH(ch,ce,ci[ce])}}}bP._data(ch,"parsedAttrs",true)}}return ci}if(typeof cg==="object"){return this.each(function(){bP.data(this,cg)})}return arguments.length>1?this.each(function(){bP.data(this,cg,cj)}):ch?bH(ch,cg,bP.data(ch,cg)):undefined
},removeData:function(i){return this.each(function(){bP.removeData(this,i)})}});bP.extend({queue:function(ce,cd,cf){var i;if(ce){cd=(cd||"fx")+"queue";i=bP._data(ce,cd);if(cf){if(!i||bP.isArray(cf)){i=bP._data(ce,cd,bP.makeArray(cf))}else{i.push(cf)}}return i||[]}},dequeue:function(ch,cg){cg=cg||"fx";var cd=bP.queue(ch,cg),ci=cd.length,cf=cd.shift(),i=bP._queueHooks(ch,cg),ce=function(){bP.dequeue(ch,cg)};if(cf==="inprogress"){cf=cd.shift();ci--}if(cf){if(cg==="fx"){cd.unshift("inprogress")}delete i.stop;
cf.call(ch,ce,i)}if(!ci&&i){i.empty.fire()}},_queueHooks:function(ce,cd){var i=cd+"queueHooks";return bP._data(ce,i)||bP._data(ce,i,{empty:bP.Callbacks("once memory").add(function(){bP._removeData(ce,cd+"queue");bP._removeData(ce,i)})})}});bP.fn.extend({queue:function(i,cd){var ce=2;if(typeof i!=="string"){cd=i;i="fx";ce--}if(arguments.length<ce){return bP.queue(this[0],i)}return cd===undefined?this:this.each(function(){var cf=bP.queue(this,i,cd);bP._queueHooks(this,i);if(i==="fx"&&cf[0]!=="inprogress"){bP.dequeue(this,i)
}})},dequeue:function(i){return this.each(function(){bP.dequeue(this,i)})},clearQueue:function(i){return this.queue(i||"fx",[])},promise:function(cf,cj){var ce,cg=1,ck=bP.Deferred(),ci=this,cd=this.length,ch=function(){if(!(--cg)){ck.resolveWith(ci,[ci])}};if(typeof cf!=="string"){cj=cf;cf=undefined}cf=cf||"fx";while(cd--){ce=bP._data(ci[cd],cf+"queueHooks");if(ce&&ce.empty){cg++;ce.empty.add(ch)}}ch();return ck.promise(cj)}});(function(){var i;F.shrinkWrapBlocks=function(){if(i!=null){return i}i=false;
var cf,cd,ce;cd=m.getElementsByTagName("body")[0];if(!cd||!cd.style){return}cf=m.createElement("div");ce=m.createElement("div");ce.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";cd.appendChild(ce).appendChild(cf);if(typeof cf.style.zoom!=="undefined"){cf.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;"+"padding:1px;width:1px;zoom:1";cf.appendChild(m.createElement("div")).style.width="5px";
i=cf.offsetWidth!==3}cd.removeChild(ce);return i}})();var aL=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;var b6=new RegExp("^(?:([+-])=|)("+aL+")([a-z%]*)$","i");var b0=["Top","Right","Bottom","Left"];var aa=function(cd,i){cd=i||cd;return bP.css(cd,"display")==="none"||!bP.contains(cd.ownerDocument,cd)};function A(cd,i,cg,cl){var cm,ce=1,ci=20,ck=cl?function(){return cl.cur()}:function(){return bP.css(cd,i,"")},ch=ck(),cj=cg&&cg[3]||(bP.cssNumber[i]?"":"px"),cf=(bP.cssNumber[i]||cj!=="px"&&+ch)&&b6.exec(bP.css(cd,i));
if(cf&&cf[3]!==cj){cj=cj||cf[3];cg=cg||[];cf=+ch||1;do{ce=ce||".5";cf=cf/ce;bP.style(cd,i,cf+cj)}while(ce!==(ce=ck()/ch)&&ce!==1&&--ci)}if(cg){cf=+cf||+ch||0;cm=cg[1]?cf+(cg[1]+1)*cg[2]:+cg[2];if(cl){cl.unit=cj;cl.start=cf;cl.end=cm}}return cm}var aJ=function(cd,ci,ck,cj,cg,cm,cl){var cf=0,ce=cd.length,ch=ck==null;if(bP.type(ck)==="object"){cg=true;for(cf in ck){aJ(cd,ci,cf,ck[cf],true,cm,cl)}}else{if(cj!==undefined){cg=true;if(!bP.isFunction(cj)){cl=true}if(ch){if(cl){ci.call(cd,cj);ci=null}else{ch=ci;
ci=function(cn,i,co){return ch.call(bP(cn),co)}}}if(ci){for(;cf<ce;cf++){ci(cd[cf],ck,cl?cj:cj.call(cd[cf],cf,ci(cd[cf],ck)))}}}}return cg?cd:ch?ci.call(cd):ce?ci(cd[0],ck):cm};var aS=(/^(?:checkbox|radio)$/i);var n=(/<([\w:-]+)/);var bI=(/^$|\/(?:java|ecma)script/i);var cc=(/^\s+/);var d="abbr|article|aside|audio|bdi|canvas|data|datalist|"+"details|dialog|figcaption|figure|footer|header|hgroup|main|"+"mark|meter|nav|output|picture|progress|section|summary|template|time|video";function C(i){var ce=d.split("|"),cd=i.createDocumentFragment();
if(cd.createElement){while(ce.length){cd.createElement(ce.pop())}}return cd}(function(){var ce=m.createElement("div"),cd=m.createDocumentFragment(),i=m.createElement("input");ce.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";F.leadingWhitespace=ce.firstChild.nodeType===3;F.tbody=!ce.getElementsByTagName("tbody").length;F.htmlSerialize=!!ce.getElementsByTagName("link").length;F.html5Clone=m.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>";i.type="checkbox";
i.checked=true;cd.appendChild(i);F.appendChecked=i.checked;ce.innerHTML="<textarea>x</textarea>";F.noCloneChecked=!!ce.cloneNode(true).lastChild.defaultValue;cd.appendChild(ce);i=m.createElement("input");i.setAttribute("type","radio");i.setAttribute("checked","checked");i.setAttribute("name","t");ce.appendChild(i);F.checkClone=ce.cloneNode(true).cloneNode(true).lastChild.checked;F.noCloneEvent=!!ce.addEventListener;ce[bP.expando]=1;F.attributes=!ce.getAttribute(bP.expando)})();var ad={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:F.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};
ad.optgroup=ad.option;ad.tbody=ad.tfoot=ad.colgroup=ad.caption=ad.thead;ad.th=ad.td;function k(cg,cd){var ce,ch,cf=0,ci=typeof cg.getElementsByTagName!=="undefined"?cg.getElementsByTagName(cd||"*"):typeof cg.querySelectorAll!=="undefined"?cg.querySelectorAll(cd||"*"):undefined;if(!ci){for(ci=[],ce=cg.childNodes||cg;(ch=ce[cf])!=null;cf++){if(!cd||bP.nodeName(ch,cd)){ci.push(ch)}else{bP.merge(ci,k(ch,cd))}}}return cd===undefined||cd&&bP.nodeName(cg,cd)?bP.merge([cg],ci):ci}function bB(cd,cf){var cg,ce=0;
for(;(cg=cd[ce])!=null;ce++){bP._data(cg,"globalEval",!cf||bP._data(cf[ce],"globalEval"))}}var S=/<|&#?\w+;/,b8=/<tbody/i;function b5(i){if(aS.test(i.type)){i.defaultChecked=i.checked}}function B(ce,cg,cm,cr,cj){var cn,ci,cl,cq,cs,cp,cf,ck=ce.length,ch=C(cg),cd=[],co=0;for(;co<ck;co++){ci=ce[co];if(ci||ci===0){if(bP.type(ci)==="object"){bP.merge(cd,ci.nodeType?[ci]:ci)}else{if(!S.test(ci)){cd.push(cg.createTextNode(ci))}else{cq=cq||ch.appendChild(cg.createElement("div"));cs=(n.exec(ci)||["",""])[1].toLowerCase();
cf=ad[cs]||ad._default;cq.innerHTML=cf[1]+bP.htmlPrefilter(ci)+cf[2];cn=cf[0];while(cn--){cq=cq.lastChild}if(!F.leadingWhitespace&&cc.test(ci)){cd.push(cg.createTextNode(cc.exec(ci)[0]))}if(!F.tbody){ci=cs==="table"&&!b8.test(ci)?cq.firstChild:cf[1]==="<table>"&&!b8.test(ci)?cq:0;cn=ci&&ci.childNodes.length;while(cn--){if(bP.nodeName((cp=ci.childNodes[cn]),"tbody")&&!cp.childNodes.length){ci.removeChild(cp)}}}bP.merge(cd,cq.childNodes);cq.textContent="";while(cq.firstChild){cq.removeChild(cq.firstChild)
}cq=ch.lastChild}}}}if(cq){ch.removeChild(cq)}if(!F.appendChecked){bP.grep(k(cd,"input"),b5)}co=0;while((ci=cd[co++])){if(cr&&bP.inArray(ci,cr)>-1){if(cj){cj.push(ci)}continue}cl=bP.contains(ci.ownerDocument,ci);cq=k(ch.appendChild(ci),"script");if(cl){bB(cq)}if(cm){cn=0;while((ci=cq[cn++])){if(bI.test(ci.type||"")){cm.push(ci)}}}}cq=null;return ch}(function(){var ce,cd,cf=m.createElement("div");for(ce in {submit:true,change:true,focusin:true}){cd="on"+ce;if(!(F[ce]=cd in bc)){cf.setAttribute(cd,"t");
F[ce]=cf.attributes[cd].expando===false}}cf=null})();var bN=/^(?:input|select|textarea)$/i,bd=/^key/,bS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bJ=/^(?:focusinfocus|focusoutblur)$/,bE=/^([^.]*)(?:\.(.+)|)/;function ac(){return true}function ah(){return false}function au(){try{return m.activeElement}catch(i){}}function bp(ch,ce,i,ci,cg,cd){var cj,cf;if(typeof ce==="object"){if(typeof i!=="string"){ci=ci||i;i=undefined}for(cf in ce){bp(ch,cf,i,ci,ce[cf],cd)}return ch}if(ci==null&&cg==null){cg=i;
ci=i=undefined}else{if(cg==null){if(typeof i==="string"){cg=ci;ci=undefined}else{cg=ci;ci=i;i=undefined}}}if(cg===false){cg=ah}else{if(!cg){return ch}}if(cd===1){cj=cg;cg=function(ck){bP().off(ck);return cj.apply(this,arguments)};cg.guid=cj.guid||(cj.guid=bP.guid++)}return ch.each(function(){bP.event.add(this,ce,cg,ci,i)})}bP.event={global:{},add:function(cg,cl,cq,ci,ch){var cj,cr,cs,ce,cn,ck,cp,cf,co,i,cd,cm=bP._data(cg);if(!cm){return}if(cq.handler){ce=cq;cq=ce.handler;ch=ce.selector}if(!cq.guid){cq.guid=bP.guid++
}if(!(cr=cm.events)){cr=cm.events={}}if(!(ck=cm.handle)){ck=cm.handle=function(ct){return typeof bP!=="undefined"&&(!ct||bP.event.triggered!==ct.type)?bP.event.dispatch.apply(ck.elem,arguments):undefined};ck.elem=cg}cl=(cl||"").match(aM)||[""];cs=cl.length;while(cs--){cj=bE.exec(cl[cs])||[];co=cd=cj[1];i=(cj[2]||"").split(".").sort();if(!co){continue}cn=bP.event.special[co]||{};co=(ch?cn.delegateType:cn.bindType)||co;cn=bP.event.special[co]||{};cp=bP.extend({type:co,origType:cd,data:ci,handler:cq,guid:cq.guid,selector:ch,needsContext:ch&&bP.expr.match.needsContext.test(ch),namespace:i.join(".")},ce);
if(!(cf=cr[co])){cf=cr[co]=[];cf.delegateCount=0;if(!cn.setup||cn.setup.call(cg,ci,i,ck)===false){if(cg.addEventListener){cg.addEventListener(co,ck,false)}else{if(cg.attachEvent){cg.attachEvent("on"+co,ck)}}}}if(cn.add){cn.add.call(cg,cp);if(!cp.handler.guid){cp.handler.guid=cq.guid}}if(ch){cf.splice(cf.delegateCount++,0,cp)}else{cf.push(cp)}bP.event.global[co]=true}cg=null},remove:function(cf,cl,cs,cg,ck){var ci,cp,cj,ch,cr,cq,cn,ce,co,i,cd,cm=bP.hasData(cf)&&bP._data(cf);if(!cm||!(cq=cm.events)){return
}cl=(cl||"").match(aM)||[""];cr=cl.length;while(cr--){cj=bE.exec(cl[cr])||[];co=cd=cj[1];i=(cj[2]||"").split(".").sort();if(!co){for(co in cq){bP.event.remove(cf,co+cl[cr],cs,cg,true)}continue}cn=bP.event.special[co]||{};co=(cg?cn.delegateType:cn.bindType)||co;ce=cq[co]||[];cj=cj[2]&&new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.|)")+"(\\.|$)");ch=ci=ce.length;while(ci--){cp=ce[ci];if((ck||cd===cp.origType)&&(!cs||cs.guid===cp.guid)&&(!cj||cj.test(cp.namespace))&&(!cg||cg===cp.selector||cg==="**"&&cp.selector)){ce.splice(ci,1);
if(cp.selector){ce.delegateCount--}if(cn.remove){cn.remove.call(cf,cp)}}}if(ch&&!ce.length){if(!cn.teardown||cn.teardown.call(cf,i,cm.handle)===false){bP.removeEvent(cf,co,cm.handle)}delete cq[co]}}if(bP.isEmptyObject(cq)){delete cm.handle;bP._removeData(cf,"events")}},trigger:function(cd,ck,cg,cr){var cl,cf,cp,cq,cn,cj,ci,ch=[cg||m],co=R.call(cd,"type")?cd.type:cd,ce=R.call(cd,"namespace")?cd.namespace.split("."):[];cp=cj=cg=cg||m;if(cg.nodeType===3||cg.nodeType===8){return}if(bJ.test(co+bP.event.triggered)){return
}if(co.indexOf(".")>-1){ce=co.split(".");co=ce.shift();ce.sort()}cf=co.indexOf(":")<0&&"on"+co;cd=cd[bP.expando]?cd:new bP.Event(co,typeof cd==="object"&&cd);cd.isTrigger=cr?2:3;cd.namespace=ce.join(".");cd.rnamespace=cd.namespace?new RegExp("(^|\\.)"+ce.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;cd.result=undefined;if(!cd.target){cd.target=cg}ck=ck==null?[cd]:bP.makeArray(ck,[cd]);cn=bP.event.special[co]||{};if(!cr&&cn.trigger&&cn.trigger.apply(cg,ck)===false){return}if(!cr&&!cn.noBubble&&!bP.isWindow(cg)){cq=cn.delegateType||co;
if(!bJ.test(cq+co)){cp=cp.parentNode}for(;cp;cp=cp.parentNode){ch.push(cp);cj=cp}if(cj===(cg.ownerDocument||m)){ch.push(cj.defaultView||cj.parentWindow||bc)}}ci=0;while((cp=ch[ci++])&&!cd.isPropagationStopped()){cd.type=ci>1?cq:cn.bindType||co;cl=(bP._data(cp,"events")||{})[cd.type]&&bP._data(cp,"handle");if(cl){cl.apply(cp,ck)}cl=cf&&cp[cf];if(cl&&cl.apply&&V(cp)){cd.result=cl.apply(cp,ck);if(cd.result===false){cd.preventDefault()}}}cd.type=co;if(!cr&&!cd.isDefaultPrevented()){if((!cn._default||cn._default.apply(ch.pop(),ck)===false)&&V(cg)){if(cf&&cg[co]&&!bP.isWindow(cg)){cj=cg[cf];
if(cj){cg[cf]=null}bP.event.triggered=co;try{cg[co]()}catch(cm){}bP.event.triggered=undefined;if(cj){cg[cf]=cj}}}}return cd.result},dispatch:function(cd){cd=bP.event.fix(cd);var ch,cg,ci,ce,cm,cl=[],ck=X.call(arguments),cf=(bP._data(this,"events")||{})[cd.type]||[],cj=bP.event.special[cd.type]||{};ck[0]=cd;cd.delegateTarget=this;if(cj.preDispatch&&cj.preDispatch.call(this,cd)===false){return}cl=bP.event.handlers.call(this,cd,cf);ch=0;while((ce=cl[ch++])&&!cd.isPropagationStopped()){cd.currentTarget=ce.elem;
cg=0;while((cm=ce.handlers[cg++])&&!cd.isImmediatePropagationStopped()){if(!cd.rnamespace||cd.rnamespace.test(cm.namespace)){cd.handleObj=cm;cd.data=cm.data;ci=((bP.event.special[cm.origType]||{}).handle||cm.handler).apply(ce.elem,ck);if(ci!==undefined){if((cd.result=ci)===false){cd.preventDefault();cd.stopPropagation()}}}}}if(cj.postDispatch){cj.postDispatch.call(this,cd)}return cd.result},handlers:function(cd,cf){var ch,ci,ce,ck,cj=[],cg=cf.delegateCount,cl=cd.target;if(cg&&cl.nodeType&&(cd.type!=="click"||isNaN(cd.button)||cd.button<1)){for(;
cl!=this;cl=cl.parentNode||this){if(cl.nodeType===1&&(cl.disabled!==true||cd.type!=="click")){ci=[];for(ch=0;ch<cg;ch++){ck=cf[ch];ce=ck.selector+" ";if(ci[ce]===undefined){ci[ce]=ck.needsContext?bP(ce,this).index(cl)>-1:bP.find(ce,this,null,[cl]).length}if(ci[ce]){ci.push(ck)}}if(ci.length){cj.push({elem:cl,handlers:ci})}}}}if(cg<cf.length){cj.push({elem:this,handlers:cf.slice(cg)})}return cj},fix:function(cg){if(cg[bP.expando]){return cg}var ce,cj,ci,cf=cg.type,cd=cg,ch=this.fixHooks[cf];if(!ch){this.fixHooks[cf]=ch=bS.test(cf)?this.mouseHooks:bd.test(cf)?this.keyHooks:{}
}ci=ch.props?this.props.concat(ch.props):this.props;cg=new bP.Event(cd);ce=ci.length;while(ce--){cj=ci[ce];cg[cj]=cd[cj]}if(!cg.target){cg.target=cd.srcElement||m}if(cg.target.nodeType===3){cg.target=cg.target.parentNode}cg.metaKey=!!cg.metaKey;return ch.filter?ch.filter(cg,cd):cg},props:("altKey bubbles cancelable ctrlKey currentTarget detail eventPhase "+"metaKey relatedTarget shiftKey target timeStamp view which").split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(cd,i){if(cd.which==null){cd.which=i.charCode!=null?i.charCode:i.keyCode
}return cd}},mouseHooks:{props:("button buttons clientX clientY fromElement offsetX offsetY "+"pageX pageY screenX screenY toElement").split(" "),filter:function(cf,ce){var i,cg,ch,cd=ce.button,ci=ce.fromElement;if(cf.pageX==null&&ce.clientX!=null){cg=cf.target.ownerDocument||m;ch=cg.documentElement;i=cg.body;cf.pageX=ce.clientX+(ch&&ch.scrollLeft||i&&i.scrollLeft||0)-(ch&&ch.clientLeft||i&&i.clientLeft||0);cf.pageY=ce.clientY+(ch&&ch.scrollTop||i&&i.scrollTop||0)-(ch&&ch.clientTop||i&&i.clientTop||0)
}if(!cf.relatedTarget&&ci){cf.relatedTarget=ci===cf.target?ce.toElement:ci}if(!cf.which&&cd!==undefined){cf.which=(cd&1?1:(cd&2?3:(cd&4?2:0)))}return cf}},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==au()&&this.focus){try{this.focus();return false}catch(i){}}},delegateType:"focusin"},blur:{trigger:function(){if(this===au()&&this.blur){this.blur();return false}},delegateType:"focusout"},click:{trigger:function(){if(bP.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();
return false}},_default:function(i){return bP.nodeName(i.target,"a")}},beforeunload:{postDispatch:function(i){if(i.result!==undefined&&i.originalEvent){i.originalEvent.returnValue=i.result}}}},simulate:function(i,ce,cd){var cf=bP.extend(new bP.Event(),cd,{type:i,isSimulated:true});bP.event.trigger(cf,null,ce);if(cf.isDefaultPrevented()){cd.preventDefault()}}};bP.removeEvent=m.removeEventListener?function(cd,i,ce){if(cd.removeEventListener){cd.removeEventListener(i,ce)}}:function(ce,cd,cf){var i="on"+cd;
if(ce.detachEvent){if(typeof ce[i]==="undefined"){ce[i]=null}ce.detachEvent(i,cf)}};bP.Event=function(cd,i){if(!(this instanceof bP.Event)){return new bP.Event(cd,i)}if(cd&&cd.type){this.originalEvent=cd;this.type=cd.type;this.isDefaultPrevented=cd.defaultPrevented||cd.defaultPrevented===undefined&&cd.returnValue===false?ac:ah}else{this.type=cd}if(i){bP.extend(this,i)}this.timeStamp=cd&&cd.timeStamp||bP.now();this[bP.expando]=true};bP.Event.prototype={constructor:bP.Event,isDefaultPrevented:ah,isPropagationStopped:ah,isImmediatePropagationStopped:ah,preventDefault:function(){var i=this.originalEvent;
this.isDefaultPrevented=ac;if(!i){return}if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}},stopPropagation:function(){var i=this.originalEvent;this.isPropagationStopped=ac;if(!i||this.isSimulated){return}if(i.stopPropagation){i.stopPropagation()}i.cancelBubble=true},stopImmediatePropagation:function(){var i=this.originalEvent;this.isImmediatePropagationStopped=ac;if(i&&i.stopImmediatePropagation){i.stopImmediatePropagation()}this.stopPropagation()}};bP.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(cd,i){bP.event.special[cd]={delegateType:i,bindType:i,handle:function(cg){var ce,ci=this,ch=cg.relatedTarget,cf=cg.handleObj;
if(!ch||(ch!==ci&&!bP.contains(ci,ch))){cg.type=cf.origType;ce=cf.handler.apply(this,arguments);cg.type=i}return ce}}});if(!F.submit){bP.event.special.submit={setup:function(){if(bP.nodeName(this,"form")){return false}bP.event.add(this,"click._submit keypress._submit",function(ce){var cd=ce.target,i=bP.nodeName(cd,"input")||bP.nodeName(cd,"button")?bP.prop(cd,"form"):undefined;if(i&&!bP._data(i,"submit")){bP.event.add(i,"submit._submit",function(cf){cf._submitBubble=true});bP._data(i,"submit",true)
}})},postDispatch:function(i){if(i._submitBubble){delete i._submitBubble;if(this.parentNode&&!i.isTrigger){bP.event.simulate("submit",this.parentNode,i)}}},teardown:function(){if(bP.nodeName(this,"form")){return false}bP.event.remove(this,"._submit")}}}if(!F.change){bP.event.special.change={setup:function(){if(bN.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){bP.event.add(this,"propertychange._change",function(i){if(i.originalEvent.propertyName==="checked"){this._justChanged=true
}});bP.event.add(this,"click._change",function(i){if(this._justChanged&&!i.isTrigger){this._justChanged=false}bP.event.simulate("change",this,i)})}return false}bP.event.add(this,"beforeactivate._change",function(cd){var i=cd.target;if(bN.test(i.nodeName)&&!bP._data(i,"change")){bP.event.add(i,"change._change",function(ce){if(this.parentNode&&!ce.isSimulated&&!ce.isTrigger){bP.event.simulate("change",this.parentNode,ce)}});bP._data(i,"change",true)}})},handle:function(cd){var i=cd.target;if(this!==i||cd.isSimulated||cd.isTrigger||(i.type!=="radio"&&i.type!=="checkbox")){return cd.handleObj.handler.apply(this,arguments)
}},teardown:function(){bP.event.remove(this,"._change");return !bN.test(this.nodeName)}}}if(!F.focusin){bP.each({focus:"focusin",blur:"focusout"},function(ce,i){var cd=function(cf){bP.event.simulate(i,cf.target,bP.event.fix(cf))};bP.event.special[i]={setup:function(){var cg=this.ownerDocument||this,cf=bP._data(cg,i);if(!cf){cg.addEventListener(ce,cd,true)}bP._data(cg,i,(cf||0)+1)},teardown:function(){var cg=this.ownerDocument||this,cf=bP._data(cg,i)-1;if(!cf){cg.removeEventListener(ce,cd,true);bP._removeData(cg,i)
}else{bP._data(cg,i,cf)}}}})}bP.fn.extend({on:function(cd,i,cf,ce){return bp(this,cd,i,cf,ce)},one:function(cd,i,cf,ce){return bp(this,cd,i,cf,ce,1)},off:function(ce,i,cg){var cd,cf;if(ce&&ce.preventDefault&&ce.handleObj){cd=ce.handleObj;bP(ce.delegateTarget).off(cd.namespace?cd.origType+"."+cd.namespace:cd.origType,cd.selector,cd.handler);return this}if(typeof ce==="object"){for(cf in ce){this.off(cf,i,ce[cf])}return this}if(i===false||typeof i==="function"){cg=i;i=undefined}if(cg===false){cg=ah
}return this.each(function(){bP.event.remove(this,ce,cg,i)})},trigger:function(i,cd){return this.each(function(){bP.event.trigger(i,cd,this)})},triggerHandler:function(i,ce){var cd=this[0];if(cd){return bP.event.trigger(i,ce,cd,true)}}});var aK=/ jQuery\d+="(?:null|\d+)"/g,T=new RegExp("<(?:"+d+")[\\s/>]","i"),aN=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,av=/<script|<style|<link/i,b4=/checked\s*(?:[^=]|=\s*.checked.)/i,az=/^true\/(.*)/,aU=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,a0=C(m),j=a0.appendChild(m.createElement("div"));
function ba(cd,i){return bP.nodeName(cd,"table")&&bP.nodeName(i.nodeType!==11?i:i.firstChild,"tr")?cd.getElementsByTagName("tbody")[0]||cd.appendChild(cd.ownerDocument.createElement("tbody")):cd}function u(i){i.type=(bP.find.attr(i,"type")!==null)+"/"+i.type;return i}function bm(cd){var i=az.exec(cd.type);if(i){cd.type=i[1]}else{cd.removeAttribute("type")}return cd}function aA(ck,ce){if(ce.nodeType!==1||!bP.hasData(ck)){return}var ch,cg,cd,cj=bP._data(ck),ci=bP._data(ce,cj),cf=cj.events;if(cf){delete ci.handle;
ci.events={};for(ch in cf){for(cg=0,cd=cf[ch].length;cg<cd;cg++){bP.event.add(ce,ch,cf[ch][cg])}}}if(ci.data){ci.data=bP.extend({},ci.data)}}function ab(cf,i){var cg,ce,cd;if(i.nodeType!==1){return}cg=i.nodeName.toLowerCase();if(!F.noCloneEvent&&i[bP.expando]){cd=bP._data(i);for(ce in cd.events){bP.removeEvent(i,ce,cd.handle)}i.removeAttribute(bP.expando)}if(cg==="script"&&i.text!==cf.text){u(i).text=cf.text;bm(i)}else{if(cg==="object"){if(i.parentNode){i.outerHTML=cf.outerHTML}if(F.html5Clone&&(cf.innerHTML&&!bP.trim(i.innerHTML))){i.innerHTML=cf.innerHTML
}}else{if(cg==="input"&&aS.test(cf.type)){i.defaultChecked=i.checked=cf.checked;if(i.value!==cf.value){i.value=cf.value}}else{if(cg==="option"){i.defaultSelected=i.selected=cf.defaultSelected}else{if(cg==="input"||cg==="textarea"){i.defaultValue=cf.defaultValue}}}}}}function J(cl,cn,cr,cg){cn=aH.apply([],cn);var ck,cf,cd,ci,cp,cm,cj=0,ch=cl.length,cq=ch-1,co=cn[0],ce=bP.isFunction(co);if(ce||(ch>1&&typeof co==="string"&&!F.checkClone&&b4.test(co))){return cl.each(function(cs){var i=cl.eq(cs);if(ce){cn[0]=co.call(this,cs,i.html())
}J(i,cn,cr,cg)})}if(ch){cm=B(cn,cl[0].ownerDocument,false,cl,cg);ck=cm.firstChild;if(cm.childNodes.length===1){cm=ck}if(ck||cg){ci=bP.map(k(cm,"script"),u);cd=ci.length;for(;cj<ch;cj++){cf=cm;if(cj!==cq){cf=bP.clone(cf,true,true);if(cd){bP.merge(ci,k(cf,"script"))}}cr.call(cl[cj],cf,cj)}if(cd){cp=ci[ci.length-1].ownerDocument;bP.map(ci,bm);for(cj=0;cj<cd;cj++){cf=ci[cj];if(bI.test(cf.type||"")&&!bP._data(cf,"globalEval")&&bP.contains(cp,cf)){if(cf.src){if(bP._evalUrl){bP._evalUrl(cf.src)}}else{bP.globalEval((cf.text||cf.textContent||cf.innerHTML||"").replace(aU,""))
}}}}cm=ck=null}}return cl}function L(ch,cd,ci){var cg,ce=cd?bP.filter(cd,ch):ch,cf=0;for(;(cg=ce[cf])!=null;cf++){if(!ci&&cg.nodeType===1){bP.cleanData(k(cg))}if(cg.parentNode){if(ci&&bP.contains(cg.ownerDocument,cg)){bB(k(cg,"script"))}cg.parentNode.removeChild(cg)}}return ch}bP.extend({htmlPrefilter:function(i){return i.replace(aN,"<$1></$2>")},clone:function(ce,cg,cd){var ci,cf,cl,ch,cj,ck=bP.contains(ce.ownerDocument,ce);if(F.html5Clone||bP.isXMLDoc(ce)||!T.test("<"+ce.nodeName+">")){cl=ce.cloneNode(true)
}else{j.innerHTML=ce.outerHTML;j.removeChild(cl=j.firstChild)}if((!F.noCloneEvent||!F.noCloneChecked)&&(ce.nodeType===1||ce.nodeType===11)&&!bP.isXMLDoc(ce)){ci=k(cl);cj=k(ce);for(ch=0;(cf=cj[ch])!=null;++ch){if(ci[ch]){ab(cf,ci[ch])}}}if(cg){if(cd){cj=cj||k(ce);ci=ci||k(cl);for(ch=0;(cf=cj[ch])!=null;ch++){aA(cf,ci[ch])}}else{aA(ce,cl)}}ci=k(cl,"script");if(ci.length>0){bB(ci,!ck&&k(ce,"script"))}ci=cj=cf=null;return cl},cleanData:function(ce,cm){var cg,cl,cf,ci,cj=0,cn=bP.expando,cd=bP.cache,ch=F.attributes,ck=bP.event.special;
for(;(cg=ce[cj])!=null;cj++){if(cm||V(cg)){cf=cg[cn];ci=cf&&cd[cf];if(ci){if(ci.events){for(cl in ci.events){if(ck[cl]){bP.event.remove(cg,cl)}else{bP.removeEvent(cg,cl,ci.handle)}}}if(cd[cf]){delete cd[cf];if(!ch&&typeof cg.removeAttribute!=="undefined"){cg.removeAttribute(cn)}else{cg[cn]=undefined}aW.push(cf)}}}}}});bP.fn.extend({domManip:J,detach:function(i){return L(this,i,true)},remove:function(i){return L(this,i)},text:function(i){return aJ(this,function(cd){return cd===undefined?bP.text(this):this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(cd))
},null,i,arguments.length)},append:function(){return J(this,arguments,function(i){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var cd=ba(this,i);cd.appendChild(i)}})},prepend:function(){return J(this,arguments,function(i){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var cd=ba(this,i);cd.insertBefore(i,cd.firstChild)}})},before:function(){return J(this,arguments,function(i){if(this.parentNode){this.parentNode.insertBefore(i,this)}})},after:function(){return J(this,arguments,function(i){if(this.parentNode){this.parentNode.insertBefore(i,this.nextSibling)
}})},empty:function(){var ce,cd=0;for(;(ce=this[cd])!=null;cd++){if(ce.nodeType===1){bP.cleanData(k(ce,false))}while(ce.firstChild){ce.removeChild(ce.firstChild)}if(ce.options&&bP.nodeName(ce,"select")){ce.options.length=0}}return this},clone:function(cd,i){cd=cd==null?false:cd;i=i==null?cd:i;return this.map(function(){return bP.clone(this,cd,i)})},html:function(i){return aJ(this,function(cg){var cf=this[0]||{},ce=0,cd=this.length;if(cg===undefined){return cf.nodeType===1?cf.innerHTML.replace(aK,""):undefined
}if(typeof cg==="string"&&!av.test(cg)&&(F.htmlSerialize||!T.test(cg))&&(F.leadingWhitespace||!cc.test(cg))&&!ad[(n.exec(cg)||["",""])[1].toLowerCase()]){cg=bP.htmlPrefilter(cg);try{for(;ce<cd;ce++){cf=this[ce]||{};if(cf.nodeType===1){bP.cleanData(k(cf,false));cf.innerHTML=cg}}cf=0}catch(ch){}}if(cf){this.empty().append(cg)}},null,i,arguments.length)},replaceWith:function(){var i=[];return J(this,arguments,function(ce){var cd=this.parentNode;if(bP.inArray(this,i)<0){bP.cleanData(k(this));if(cd){cd.replaceChild(ce,this)
}}},i)}});bP.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(i,cd){bP.fn[i]=function(ce){var cf,ch=0,cg=[],cj=bP(ce),ci=cj.length-1;for(;ch<=ci;ch++){cf=ch===ci?this:this.clone(true);bP(cj[ch])[cd](cf);w.apply(cg,cf.get())}return this.pushStack(cg)}});var aO,bs={HTML:"block",BODY:"block"};function bb(i,cf){var cd=bP(cf.createElement(i)).appendTo(cf.body),ce=bP.css(cd[0],"display");cd.detach();return ce}function a8(ce){var cd=m,i=bs[ce];
if(!i){i=bb(ce,cd);if(i==="none"||!i){aO=(aO||bP("<iframe frameborder='0' width='0' height='0'/>")).appendTo(cd.documentElement);cd=(aO[0].contentWindow||aO[0].contentDocument).document;cd.write();cd.close();i=bb(ce,cd);aO.detach()}bs[ce]=i}return i}var a7=(/^margin/);var ag=new RegExp("^("+aL+")(?!px)[a-z%]+$","i");var K=function(ch,cg,ci,cf){var ce,cd,i={};for(cd in cg){i[cd]=ch.style[cd];ch.style[cd]=cg[cd]}ce=ci.apply(ch,cf||[]);for(cd in cg){ch.style[cd]=i[cd]}return ce};var b1=m.documentElement;
(function(){var ch,ce,ci,ck,cj,cf,cd=m.createElement("div"),i=m.createElement("div");if(!i.style){return}i.style.cssText="float:left;opacity:.5";F.opacity=i.style.opacity==="0.5";F.cssFloat=!!i.style.cssFloat;i.style.backgroundClip="content-box";i.cloneNode(true).style.backgroundClip="";F.clearCloneStyle=i.style.backgroundClip==="content-box";cd=m.createElement("div");cd.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;"+"padding:0;margin-top:1px;position:absolute";i.innerHTML="";cd.appendChild(i);
F.boxSizing=i.style.boxSizing===""||i.style.MozBoxSizing===""||i.style.WebkitBoxSizing==="";bP.extend(F,{reliableHiddenOffsets:function(){if(ch==null){cg()}return ck},boxSizingReliable:function(){if(ch==null){cg()}return ci},pixelMarginRight:function(){if(ch==null){cg()}return ce},pixelPosition:function(){if(ch==null){cg()}return ch},reliableMarginRight:function(){if(ch==null){cg()}return cj},reliableMarginLeft:function(){if(ch==null){cg()}return cf}});function cg(){var cm,cl,cn=m.documentElement;
cn.appendChild(cd);i.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;"+"position:relative;display:block;"+"margin:auto;border:1px;padding:1px;"+"top:1%;width:50%";ch=ci=cf=false;ce=cj=true;if(bc.getComputedStyle){cl=bc.getComputedStyle(i);ch=(cl||{}).top!=="1%";cf=(cl||{}).marginLeft==="2px";ci=(cl||{width:"4px"}).width==="4px";i.style.marginRight="50%";ce=(cl||{marginRight:"4px"}).marginRight==="4px";cm=i.appendChild(m.createElement("div"));cm.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;padding:0";
cm.style.marginRight=cm.style.width="0";i.style.width="1px";cj=!parseFloat((bc.getComputedStyle(cm)||{}).marginRight);i.removeChild(cm)}i.style.display="none";ck=i.getClientRects().length===0;if(ck){i.style.display="";i.innerHTML="<table><tr><td></td><td>t</td></tr></table>";i.childNodes[0].style.borderCollapse="separate";cm=i.getElementsByTagName("td");cm[0].style.cssText="margin:0;border:0;padding:0;display:none";ck=cm[0].offsetHeight===0;if(ck){cm[0].style.display="";cm[1].style.display="none";
ck=cm[0].offsetHeight===0}}cn.removeChild(cd)}})();var bx,I,bv=/^(top|right|bottom|left)$/;if(bc.getComputedStyle){bx=function(cd){var i=cd.ownerDocument.defaultView;if(!i||!i.opener){i=bc}return i.getComputedStyle(cd)};I=function(cj,cd,ci){var cg,cf,ch,i,ce=cj.style;ci=ci||bx(cj);i=ci?ci.getPropertyValue(cd)||ci[cd]:undefined;if((i===""||i===undefined)&&!bP.contains(cj.ownerDocument,cj)){i=bP.style(cj,cd)}if(ci){if(!F.pixelMarginRight()&&ag.test(i)&&a7.test(cd)){cg=ce.width;cf=ce.minWidth;ch=ce.maxWidth;
ce.minWidth=ce.maxWidth=ce.width=i;i=ci.width;ce.width=cg;ce.minWidth=cf;ce.maxWidth=ch}}return i===undefined?i:i+""}}else{if(b1.currentStyle){bx=function(i){return i.currentStyle};I=function(ci,cf,ch){var cj,cd,i,ce,cg=ci.style;ch=ch||bx(ci);ce=ch?ch[cf]:undefined;if(ce==null&&cg&&cg[cf]){ce=cg[cf]}if(ag.test(ce)&&!bv.test(cf)){cj=cg.left;cd=ci.runtimeStyle;i=cd&&cd.left;if(i){cd.left=ci.currentStyle.left}cg.left=cf==="fontSize"?"1em":ce;ce=cg.pixelLeft+"px";cg.left=cj;if(i){cd.left=i}}return ce===undefined?ce:ce+""||"auto"
}}}function be(i,cd){return{get:function(){if(i()){delete this.get;return}return(this.get=cd).apply(this,arguments)}}}var bq=/alpha\([^)]*\)/i,a2=/opacity\s*=\s*([^)]*)/i,M=/^(none|table(?!-c[ea]).+)/,bi=new RegExp("^("+aL+")(.*)$","i"),bl={position:"absolute",visibility:"hidden",display:"block"},bK={letterSpacing:"0",fontWeight:"400"},aE=["Webkit","O","Moz","ms"],bY=m.createElement("div").style;function c(cd){if(cd in bY){return cd}var cf=cd.charAt(0).toUpperCase()+cd.slice(1),ce=aE.length;while(ce--){cd=aE[ce]+cf;
if(cd in bY){return cd}}}function r(ci,i){var cj,cg,ch,cd=[],ce=0,cf=ci.length;for(;ce<cf;ce++){cg=ci[ce];if(!cg.style){continue}cd[ce]=bP._data(cg,"olddisplay");cj=cg.style.display;if(i){if(!cd[ce]&&cj==="none"){cg.style.display=""}if(cg.style.display===""&&aa(cg)){cd[ce]=bP._data(cg,"olddisplay",a8(cg.nodeName))}}else{ch=aa(cg);if(cj&&cj!=="none"||!ch){bP._data(cg,"olddisplay",ch?cj:bP.css(cg,"display"))}}}for(ce=0;ce<cf;ce++){cg=ci[ce];if(!cg.style){continue}if(!i||cg.style.display==="none"||cg.style.display===""){cg.style.display=i?cd[ce]||"":"none"
}}return ci}function aT(i,ce,cf){var cd=bi.exec(ce);return cd?Math.max(0,cd[1]-(cf||0))+(cd[2]||"px"):ce}function aF(ch,ce,cd,cj,cg){var cf=cd===(cj?"border":"content")?4:ce==="width"?1:0,ci=0;for(;cf<4;cf+=2){if(cd==="margin"){ci+=bP.css(ch,cd+b0[cf],true,cg)}if(cj){if(cd==="content"){ci-=bP.css(ch,"padding"+b0[cf],true,cg)}if(cd!=="margin"){ci-=bP.css(ch,"border"+b0[cf]+"Width",true,cg)}}else{ci+=bP.css(ch,"padding"+b0[cf],true,cg);if(cd!=="padding"){ci+=bP.css(ch,"border"+b0[cf]+"Width",true,cg)
}}}return ci}function v(cg,cd,i){var cf=true,ch=cd==="width"?cg.offsetWidth:cg.offsetHeight,ce=bx(cg),ci=F.boxSizing&&bP.css(cg,"boxSizing",false,ce)==="border-box";if(ch<=0||ch==null){ch=I(cg,cd,ce);if(ch<0||ch==null){ch=cg.style[cd]}if(ag.test(ch)){return ch}cf=ci&&(F.boxSizingReliable()||ch===cg.style[cd]);ch=parseFloat(ch)||0}return(ch+aF(cg,cd,i||(ci?"border":"content"),cf,ce))+"px"}bP.extend({cssHooks:{opacity:{get:function(ce,cd){if(cd){var i=I(ce,"opacity");return i===""?"1":i}}}},cssNumber:{"animationIterationCount":true,"columnCount":true,"fillOpacity":true,"flexGrow":true,"flexShrink":true,"fontWeight":true,"lineHeight":true,"opacity":true,"order":true,"orphans":true,"widows":true,"zIndex":true,"zoom":true},cssProps:{"float":F.cssFloat?"cssFloat":"styleFloat"},style:function(ce,cd,ck,cf){if(!ce||ce.nodeType===3||ce.nodeType===8||!ce.style){return
}var ci,cj,cl,cg=bP.camelCase(cd),i=ce.style;cd=bP.cssProps[cg]||(bP.cssProps[cg]=c(cg)||cg);cl=bP.cssHooks[cd]||bP.cssHooks[cg];if(ck!==undefined){cj=typeof ck;if(cj==="string"&&(ci=b6.exec(ck))&&ci[1]){ck=A(ce,cd,ci);cj="number"}if(ck==null||ck!==ck){return}if(cj==="number"){ck+=ci&&ci[3]||(bP.cssNumber[cg]?"":"px")}if(!F.clearCloneStyle&&ck===""&&cd.indexOf("background")===0){i[cd]="inherit"}if(!cl||!("set" in cl)||(ck=cl.set(ce,ck,cf))!==undefined){try{i[cd]=ck}catch(ch){}}}else{if(cl&&"get" in cl&&(ci=cl.get(ce,false,cf))!==undefined){return ci
}return i[cd]}},css:function(ci,cg,cd,ch){var cf,cj,i,ce=bP.camelCase(cg);cg=bP.cssProps[ce]||(bP.cssProps[ce]=c(ce)||ce);i=bP.cssHooks[cg]||bP.cssHooks[ce];if(i&&"get" in i){cj=i.get(ci,true,cd)}if(cj===undefined){cj=I(ci,cg,ch)}if(cj==="normal"&&cg in bK){cj=bK[cg]}if(cd===""||cd){cf=parseFloat(cj);return cd===true||isFinite(cf)?cf||0:cj}return cj}});bP.each(["height","width"],function(ce,cd){bP.cssHooks[cd]={get:function(cg,cf,i){if(cf){return M.test(bP.css(cg,"display"))&&cg.offsetWidth===0?K(cg,bl,function(){return v(cg,cd,i)
}):v(cg,cd,i)}},set:function(cg,ch,i){var cf=i&&bx(cg);return aT(cg,ch,i?aF(cg,cd,i,F.boxSizing&&bP.css(cg,"boxSizing",false,cf)==="border-box",cf):0)}}});if(!F.opacity){bP.cssHooks.opacity={get:function(cd,i){return a2.test((i&&cd.currentStyle?cd.currentStyle.filter:cd.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":i?"1":""},set:function(cg,ch){var cf=cg.style,cd=cg.currentStyle,i=bP.isNumeric(ch)?"alpha(opacity="+ch*100+")":"",ce=cd&&cd.filter||cf.filter||"";cf.zoom=1;if((ch>=1||ch==="")&&bP.trim(ce.replace(bq,""))===""&&cf.removeAttribute){cf.removeAttribute("filter");
if(ch===""||cd&&!cd.filter){return}}cf.filter=bq.test(ce)?ce.replace(bq,i):ce+" "+i}}}bP.cssHooks.marginRight=be(F.reliableMarginRight,function(cd,i){if(i){return K(cd,{"display":"inline-block"},I,[cd,"marginRight"])}});bP.cssHooks.marginLeft=be(F.reliableMarginLeft,function(cd,i){if(i){return(parseFloat(I(cd,"marginLeft"))||(bP.contains(cd.ownerDocument,cd)?cd.getBoundingClientRect().left-K(cd,{marginLeft:0},function(){return cd.getBoundingClientRect().left}):0))+"px"}});bP.each({margin:"",padding:"",border:"Width"},function(i,cd){bP.cssHooks[i+cd]={expand:function(cg){var cf=0,ce={},ch=typeof cg==="string"?cg.split(" "):[cg];
for(;cf<4;cf++){ce[i+b0[cf]+cd]=ch[cf]||ch[cf-2]||ch[0]}return ce}};if(!a7.test(i)){bP.cssHooks[i+cd].set=aT}});bP.fn.extend({css:function(i,cd){return aJ(this,function(ci,cf,cj){var ch,ce,ck={},cg=0;if(bP.isArray(cf)){ch=bx(ci);ce=cf.length;for(;cg<ce;cg++){ck[cf[cg]]=bP.css(ci,cf[cg],false,ch)}return ck}return cj!==undefined?bP.style(ci,cf,cj):bP.css(ci,cf)},i,cd,arguments.length>1)},show:function(){return r(this,true)},hide:function(){return r(this)},toggle:function(i){if(typeof i==="boolean"){return i?this.show():this.hide()
}return this.each(function(){if(aa(this)){bP(this).show()}else{bP(this).hide()}})}});function P(ce,cd,cg,i,cf){return new P.prototype.init(ce,cd,cg,i,cf)}bP.Tween=P;P.prototype={constructor:P,init:function(cf,cd,ch,i,cg,ce){this.elem=cf;this.prop=ch;this.easing=cg||bP.easing._default;this.options=cd;this.start=this.now=this.cur();this.end=i;this.unit=ce||(bP.cssNumber[ch]?"":"px")},cur:function(){var i=P.propHooks[this.prop];return i&&i.get?i.get(this):P.propHooks._default.get(this)},run:function(ce){var cd,i=P.propHooks[this.prop];
if(this.options.duration){this.pos=cd=bP.easing[this.easing](ce,this.options.duration*ce,0,1,this.options.duration)}else{this.pos=cd=ce}this.now=(this.end-this.start)*cd+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(i&&i.set){i.set(this)}else{P.propHooks._default.set(this)}return this}};P.prototype.init.prototype=P.prototype;P.propHooks={_default:{get:function(cd){var i;if(cd.elem.nodeType!==1||cd.elem[cd.prop]!=null&&cd.elem.style[cd.prop]==null){return cd.elem[cd.prop]
}i=bP.css(cd.elem,cd.prop,"");return !i||i==="auto"?0:i},set:function(i){if(bP.fx.step[i.prop]){bP.fx.step[i.prop](i)}else{if(i.elem.nodeType===1&&(i.elem.style[bP.cssProps[i.prop]]!=null||bP.cssHooks[i.prop])){bP.style(i.elem,i.prop,i.now+i.unit)}else{i.elem[i.prop]=i.now}}}}};P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(i){if(i.elem.nodeType&&i.elem.parentNode){i.elem[i.prop]=i.now}}};bP.easing={linear:function(i){return i},swing:function(i){return 0.5-Math.cos(i*Math.PI)/2},_default:"swing"};
bP.fx=P.prototype.init;bP.fx.step={};var U,al,bX=/^(?:toggle|show|hide)$/,bV=/queueHooks$/;function bu(){bc.setTimeout(function(){U=undefined});return(U=bP.now())}function bO(cf,ch){var cg,cd={height:cf},ce=0;ch=ch?1:0;for(;ce<4;ce+=2-ch){cg=b0[ce];cd["margin"+cg]=cd["padding"+cg]=cf}if(ch){cd.opacity=cd.width=cf}return cd}function bk(cg,ci,cf){var cd,ch=(e.tweeners[ci]||[]).concat(e.tweeners["*"]),i=0,ce=ch.length;for(;i<ce;i++){if((cd=ch[i].call(cf,ci,cg))){return cd}}}function g(cf,ck,i){var ce,cn,ch,cq,cr,co,cj,cm,cg=this,cl={},cd=cf.style,ci=cf.nodeType&&aa(cf),cp=bP._data(cf,"fxshow");
if(!i.queue){cr=bP._queueHooks(cf,"fx");if(cr.unqueued==null){cr.unqueued=0;co=cr.empty.fire;cr.empty.fire=function(){if(!cr.unqueued){co()}}}cr.unqueued++;cg.always(function(){cg.always(function(){cr.unqueued--;if(!bP.queue(cf,"fx").length){cr.empty.fire()}})})}if(cf.nodeType===1&&("height" in ck||"width" in ck)){i.overflow=[cd.overflow,cd.overflowX,cd.overflowY];cj=bP.css(cf,"display");cm=cj==="none"?bP._data(cf,"olddisplay")||a8(cf.nodeName):cj;if(cm==="inline"&&bP.css(cf,"float")==="none"){if(!F.inlineBlockNeedsLayout||a8(cf.nodeName)==="inline"){cd.display="inline-block"
}else{cd.zoom=1}}}if(i.overflow){cd.overflow="hidden";if(!F.shrinkWrapBlocks()){cg.always(function(){cd.overflow=i.overflow[0];cd.overflowX=i.overflow[1];cd.overflowY=i.overflow[2]})}}for(ce in ck){cn=ck[ce];if(bX.exec(cn)){delete ck[ce];ch=ch||cn==="toggle";if(cn===(ci?"hide":"show")){if(cn==="show"&&cp&&cp[ce]!==undefined){ci=true}else{continue}}cl[ce]=cp&&cp[ce]||bP.style(cf,ce)}else{cj=undefined}}if(!bP.isEmptyObject(cl)){if(cp){if("hidden" in cp){ci=cp.hidden}}else{cp=bP._data(cf,"fxshow",{})
}if(ch){cp.hidden=!ci}if(ci){bP(cf).show()}else{cg.done(function(){bP(cf).hide()})}cg.done(function(){var cs;bP._removeData(cf,"fxshow");for(cs in cl){bP.style(cf,cs,cl[cs])}});for(ce in cl){cq=bk(ci?cp[ce]:0,ce,cg);if(!(ce in cp)){cp[ce]=cq.start;if(ci){cq.end=cq.start;cq.start=ce==="width"||ce==="height"?1:0}}}}else{if((cj==="none"?a8(cf.nodeName):cj)==="inline"){cd.display=cj}}}function aw(cf,ch){var ce,cd,ci,cg,i;for(ce in cf){cd=bP.camelCase(ce);ci=ch[cd];cg=cf[ce];if(bP.isArray(cg)){ci=cg[1];
cg=cf[ce]=cg[0]}if(ce!==cd){cf[cd]=cg;delete cf[ce]}i=bP.cssHooks[cd];if(i&&"expand" in i){cg=i.expand(cg);delete cf[cd];for(ce in cg){if(!(ce in cf)){cf[ce]=cg[ce];ch[ce]=ci}}}else{ch[cd]=ci}}}function e(ce,ci,cl){var cm,i,ch=0,cd=e.prefilters.length,ck=bP.Deferred().always(function(){delete cg.elem}),cg=function(){if(i){return false}var cs=U||bu(),cp=Math.max(0,cf.startTime+cf.duration-cs),cn=cp/cf.duration||0,cr=1-cn,co=0,cq=cf.tweens.length;for(;co<cq;co++){cf.tweens[co].run(cr)}ck.notifyWith(ce,[cf,cr,cp]);
if(cr<1&&cq){return cp}else{ck.resolveWith(ce,[cf]);return false}},cf=ck.promise({elem:ce,props:bP.extend({},ci),opts:bP.extend(true,{specialEasing:{},easing:bP.easing._default},cl),originalProperties:ci,originalOptions:cl,startTime:U||bu(),duration:cl.duration,tweens:[],createTween:function(cp,cn){var co=bP.Tween(ce,cf.opts,cp,cn,cf.opts.specialEasing[cp]||cf.opts.easing);cf.tweens.push(co);return co},stop:function(co){var cn=0,cp=co?cf.tweens.length:0;if(i){return this}i=true;for(;cn<cp;cn++){cf.tweens[cn].run(1)
}if(co){ck.notifyWith(ce,[cf,1,0]);ck.resolveWith(ce,[cf,co])}else{ck.rejectWith(ce,[cf,co])}return this}}),cj=cf.props;aw(cj,cf.opts.specialEasing);for(;ch<cd;ch++){cm=e.prefilters[ch].call(cf,ce,cj,cf.opts);if(cm){if(bP.isFunction(cm.stop)){bP._queueHooks(cf.elem,cf.opts.queue).stop=bP.proxy(cm.stop,cm)}return cm}}bP.map(cj,bk,cf);if(bP.isFunction(cf.opts.start)){cf.opts.start.call(ce,cf)}bP.fx.timer(bP.extend(cg,{elem:ce,anim:cf,queue:cf.opts.queue}));return cf.progress(cf.opts.progress).done(cf.opts.done,cf.opts.complete).fail(cf.opts.fail).always(cf.opts.always)
}bP.Animation=bP.extend(e,{tweeners:{"*":[function(ce,cd){var i=this.createTween(ce,cd);A(i.elem,ce,b6.exec(cd),i);return i}]},tweener:function(cd,cg){if(bP.isFunction(cd)){cg=cd;cd=["*"]}else{cd=cd.match(aM)}var cf,i=0,ce=cd.length;for(;i<ce;i++){cf=cd[i];e.tweeners[cf]=e.tweeners[cf]||[];e.tweeners[cf].unshift(cg)}},prefilters:[g],prefilter:function(cd,i){if(i){e.prefilters.unshift(cd)}else{e.prefilters.push(cd)}}});bP.speed=function(ce,cf,cd){var i=ce&&typeof ce==="object"?bP.extend({},ce):{complete:cd||!cd&&cf||bP.isFunction(ce)&&ce,duration:ce,easing:cd&&cf||cf&&!bP.isFunction(cf)&&cf};
i.duration=bP.fx.off?0:typeof i.duration==="number"?i.duration:i.duration in bP.fx.speeds?bP.fx.speeds[i.duration]:bP.fx.speeds._default;if(i.queue==null||i.queue===true){i.queue="fx"}i.old=i.complete;i.complete=function(){if(bP.isFunction(i.old)){i.old.call(this)}if(i.queue){bP.dequeue(this,i.queue)}};return i};bP.fn.extend({fadeTo:function(i,cf,ce,cd){return this.filter(aa).css("opacity",0).show().end().animate({opacity:cf},i,ce,cd)},animate:function(ci,cf,ch,cg){var ce=bP.isEmptyObject(ci),i=bP.speed(cf,ch,cg),cd=function(){var cj=e(this,bP.extend({},ci),i);
if(ce||bP._data(this,"finish")){cj.stop(true)}};cd.finish=cd;return ce||i.queue===false?this.each(cd):this.queue(i.queue,cd)},stop:function(ce,cd,i){var cf=function(cg){var ch=cg.stop;delete cg.stop;ch(i)};if(typeof ce!=="string"){i=cd;cd=ce;ce=undefined}if(cd&&ce!==false){this.queue(ce||"fx",[])}return this.each(function(){var cj=true,cg=ce!=null&&ce+"queueHooks",ci=bP.timers,ch=bP._data(this);if(cg){if(ch[cg]&&ch[cg].stop){cf(ch[cg])}}else{for(cg in ch){if(ch[cg]&&ch[cg].stop&&bV.test(cg)){cf(ch[cg])
}}}for(cg=ci.length;cg--;){if(ci[cg].elem===this&&(ce==null||ci[cg].queue===ce)){ci[cg].anim.stop(i);cj=false;ci.splice(cg,1)}}if(cj||!i){bP.dequeue(this,ce)}})},finish:function(i){if(i!==false){i=i||"fx"}return this.each(function(){var cf,ci=bP._data(this),ce=ci[i+"queue"],cd=ci[i+"queueHooks"],ch=bP.timers,cg=ce?ce.length:0;ci.finish=true;bP.queue(this,i,[]);if(cd&&cd.stop){cd.stop.call(this,true)}for(cf=ch.length;cf--;){if(ch[cf].elem===this&&ch[cf].queue===i){ch[cf].anim.stop(true);ch.splice(cf,1)
}}for(cf=0;cf<cg;cf++){if(ce[cf]&&ce[cf].finish){ce[cf].finish.call(this)}}delete ci.finish})}});bP.each(["toggle","show","hide"],function(ce,cd){var cf=bP.fn[cd];bP.fn[cd]=function(i,ch,cg){return i==null||typeof i==="boolean"?cf.apply(this,arguments):this.animate(bO(cd,true),i,ch,cg)}});bP.each({slideDown:bO("show"),slideUp:bO("hide"),slideToggle:bO("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(i,cd){bP.fn[i]=function(ce,cg,cf){return this.animate(cd,ce,cg,cf)
}});bP.timers=[];bP.fx.tick=function(){var cf,ce=bP.timers,cd=0;U=bP.now();for(;cd<ce.length;cd++){cf=ce[cd];if(!cf()&&ce[cd]===cf){ce.splice(cd--,1)}}if(!ce.length){bP.fx.stop()}U=undefined};bP.fx.timer=function(i){bP.timers.push(i);if(i()){bP.fx.start()}else{bP.timers.pop()}};bP.fx.interval=13;bP.fx.start=function(){if(!al){al=bc.setInterval(bP.fx.tick,bP.fx.interval)}};bP.fx.stop=function(){bc.clearInterval(al);al=null};bP.fx.speeds={slow:600,fast:200,_default:400};bP.fn.delay=function(cd,i){cd=bP.fx?bP.fx.speeds[cd]||cd:cd;
i=i||"fx";return this.queue(i,function(cf,ce){var cg=bc.setTimeout(cf,cd);ce.stop=function(){bc.clearTimeout(cg)}})};(function(){var cd,ce=m.createElement("input"),cg=m.createElement("div"),i=m.createElement("select"),cf=i.appendChild(m.createElement("option"));cg=m.createElement("div");cg.setAttribute("className","t");cg.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";cd=cg.getElementsByTagName("a")[0];ce.setAttribute("type","checkbox");cg.appendChild(ce);cd=cg.getElementsByTagName("a")[0];
cd.style.cssText="top:1px";F.getSetAttribute=cg.className!=="t";F.style=/top/.test(cd.getAttribute("style"));F.hrefNormalized=cd.getAttribute("href")==="/a";F.checkOn=!!ce.value;F.optSelected=cf.selected;F.enctype=!!m.createElement("form").enctype;i.disabled=true;F.optDisabled=!cf.disabled;ce=m.createElement("input");ce.setAttribute("value","");F.input=ce.getAttribute("value")==="";ce.value="t";ce.setAttribute("type","radio");F.radioValue=ce.value==="t"})();var at=/\r/g,a4=/[\x20\t\r\n\f]+/g;bP.fn.extend({val:function(cf){var i,cd,cg,ce=this[0];
if(!arguments.length){if(ce){i=bP.valHooks[ce.type]||bP.valHooks[ce.nodeName.toLowerCase()];if(i&&"get" in i&&(cd=i.get(ce,"value"))!==undefined){return cd}cd=ce.value;return typeof cd==="string"?cd.replace(at,""):cd==null?"":cd}return}cg=bP.isFunction(cf);return this.each(function(ch){var ci;if(this.nodeType!==1){return}if(cg){ci=cf.call(this,ch,bP(this).val())}else{ci=cf}if(ci==null){ci=""}else{if(typeof ci==="number"){ci+=""}else{if(bP.isArray(ci)){ci=bP.map(ci,function(cj){return cj==null?"":cj+""
})}}}i=bP.valHooks[this.type]||bP.valHooks[this.nodeName.toLowerCase()];if(!i||!("set" in i)||i.set(this,ci,"value")===undefined){this.value=ci}})}});bP.extend({valHooks:{option:{get:function(i){var cd=bP.find.attr(i,"value");return cd!=null?cd:bP.trim(bP.text(i)).replace(a4," ")}},select:{get:function(cd){var cj,cf,cl=cd.options,ch=cd.selectedIndex,cg=cd.type==="select-one"||ch<0,ck=cg?null:[],ci=cg?ch+1:cl.length,ce=ch<0?ci:cg?ch:0;for(;ce<ci;ce++){cf=cl[ce];if((cf.selected||ce===ch)&&(F.optDisabled?!cf.disabled:cf.getAttribute("disabled")===null)&&(!cf.parentNode.disabled||!bP.nodeName(cf.parentNode,"optgroup"))){cj=bP(cf).val();
if(cg){return cj}ck.push(cj)}}return ck},set:function(ci,cj){var ck,ch,cf=ci.options,cd=bP.makeArray(cj),cg=cf.length;while(cg--){ch=cf[cg];if(bP.inArray(bP.valHooks.option.get(ch),cd)>-1){try{ch.selected=ck=true}catch(ce){ch.scrollHeight}}else{ch.selected=false}}if(!ck){ci.selectedIndex=-1}return cf}}}});bP.each(["radio","checkbox"],function(){bP.valHooks[this]={set:function(i,cd){if(bP.isArray(cd)){return(i.checked=bP.inArray(bP(i).val(),cd)>-1)}}};if(!F.checkOn){bP.valHooks[this].get=function(i){return i.getAttribute("value")===null?"on":i.value
}}});var bh,ca,bU=bP.expr.attrHandle,ay=/^(?:checked|selected)$/i,bT=F.getSetAttribute,bM=F.input;bP.fn.extend({attr:function(i,cd){return aJ(this,bP.attr,i,cd,arguments.length>1)},removeAttr:function(i){return this.each(function(){bP.removeAttr(this,i)})}});bP.extend({attr:function(cg,cf,ch){var ce,i,cd=cg.nodeType;if(cd===3||cd===8||cd===2){return}if(typeof cg.getAttribute==="undefined"){return bP.prop(cg,cf,ch)}if(cd!==1||!bP.isXMLDoc(cg)){cf=cf.toLowerCase();i=bP.attrHooks[cf]||(bP.expr.match.bool.test(cf)?ca:bh)
}if(ch!==undefined){if(ch===null){bP.removeAttr(cg,cf);return}if(i&&"set" in i&&(ce=i.set(cg,ch,cf))!==undefined){return ce}cg.setAttribute(cf,ch+"");return ch}if(i&&"get" in i&&(ce=i.get(cg,cf))!==null){return ce}ce=bP.find.attr(cg,cf);return ce==null?undefined:ce},attrHooks:{type:{set:function(i,cd){if(!F.radioValue&&cd==="radio"&&bP.nodeName(i,"input")){var ce=i.value;i.setAttribute("type",cd);if(ce){i.value=ce}return cd}}}},removeAttr:function(cf,ch){var cd,cg,ce=0,ci=ch&&ch.match(aM);if(ci&&cf.nodeType===1){while((cd=ci[ce++])){cg=bP.propFix[cd]||cd;
if(bP.expr.match.bool.test(cd)){if(bM&&bT||!ay.test(cd)){cf[cg]=false}else{cf[bP.camelCase("default-"+cd)]=cf[cg]=false}}else{bP.attr(cf,cd,"")}cf.removeAttribute(bT?cd:cg)}}}});ca={set:function(cd,ce,i){if(ce===false){bP.removeAttr(cd,i)}else{if(bM&&bT||!ay.test(i)){cd.setAttribute(!bT&&bP.propFix[i]||i,i)}else{cd[bP.camelCase("default-"+i)]=cd[i]=true}}return i}};bP.each(bP.expr.match.bool.source.match(/\w+/g),function(cf,ce){var cd=bU[ce]||bP.find.attr;if(bM&&bT||!ay.test(ce)){bU[ce]=function(ch,cg,cj){var i,ci;
if(!cj){ci=bU[cg];bU[cg]=i;i=cd(ch,cg,cj)!=null?cg.toLowerCase():null;bU[cg]=ci}return i}}else{bU[ce]=function(cg,i,ch){if(!ch){return cg[bP.camelCase("default-"+i)]?i.toLowerCase():null}}}});if(!bM||!bT){bP.attrHooks.value={set:function(cd,ce,i){if(bP.nodeName(cd,"input")){cd.defaultValue=ce}else{return bh&&bh.set(cd,ce,i)}}}}if(!bT){bh={set:function(ce,cf,cd){var i=ce.getAttributeNode(cd);if(!i){ce.setAttributeNode((i=ce.ownerDocument.createAttribute(cd)))}i.value=cf+="";if(cd==="value"||cf===ce.getAttribute(cd)){return cf
}}};bU.id=bU.name=bU.coords=function(ce,cd,cf){var i;if(!cf){return(i=ce.getAttributeNode(cd))&&i.value!==""?i.value:null}};bP.valHooks.button={get:function(ce,cd){var i=ce.getAttributeNode(cd);if(i&&i.specified){return i.value}},set:bh.set};bP.attrHooks.contenteditable={set:function(cd,ce,i){bh.set(cd,ce===""?false:ce,i)}};bP.each(["width","height"],function(ce,cd){bP.attrHooks[cd]={set:function(i,cf){if(cf===""){i.setAttribute(cd,"auto");return cf}}}})}if(!F.style){bP.attrHooks.style={get:function(i){return i.style.cssText||undefined
},set:function(i,cd){return(i.style.cssText=cd+"")}}}var aP=/^(?:input|select|textarea|button|object)$/i,H=/^(?:a|area)$/i;bP.fn.extend({prop:function(i,cd){return aJ(this,bP.prop,i,cd,arguments.length>1)},removeProp:function(i){i=bP.propFix[i]||i;return this.each(function(){try{this[i]=undefined;delete this[i]}catch(cd){}})}});bP.extend({prop:function(cg,cf,ch){var ce,i,cd=cg.nodeType;if(cd===3||cd===8||cd===2){return}if(cd!==1||!bP.isXMLDoc(cg)){cf=bP.propFix[cf]||cf;i=bP.propHooks[cf]}if(ch!==undefined){if(i&&"set" in i&&(ce=i.set(cg,ch,cf))!==undefined){return ce
}return(cg[cf]=ch)}if(i&&"get" in i&&(ce=i.get(cg,cf))!==null){return ce}return cg[cf]},propHooks:{tabIndex:{get:function(cd){var i=bP.find.attr(cd,"tabindex");return i?parseInt(i,10):aP.test(cd.nodeName)||H.test(cd.nodeName)&&cd.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});if(!F.hrefNormalized){bP.each(["href","src"],function(ce,cd){bP.propHooks[cd]={get:function(i){return i.getAttribute(cd,4)}}})}if(!F.optSelected){bP.propHooks.selected={get:function(cd){var i=cd.parentNode;if(i){i.selectedIndex;
if(i.parentNode){i.parentNode.selectedIndex}}return null},set:function(cd){var i=cd.parentNode;if(i){i.selectedIndex;if(i.parentNode){i.parentNode.selectedIndex}}}}}bP.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){bP.propFix[this.toLowerCase()]=this});if(!F.enctype){bP.propFix.enctype="encoding"}var bR=/[\t\r\n\f]/g;function D(i){return bP.attr(i,"class")||""}bP.fn.extend({addClass:function(ck){var cf,ce,cl,cg,cj,ch,cd,ci=0;
if(bP.isFunction(ck)){return this.each(function(i){bP(this).addClass(ck.call(this,i,D(this)))})}if(typeof ck==="string"&&ck){cf=ck.match(aM)||[];while((ce=this[ci++])){cg=D(ce);cl=ce.nodeType===1&&(" "+cg+" ").replace(bR," ");if(cl){ch=0;while((cj=cf[ch++])){if(cl.indexOf(" "+cj+" ")<0){cl+=cj+" "}}cd=bP.trim(cl);if(cg!==cd){bP.attr(ce,"class",cd)}}}}return this},removeClass:function(ck){var cf,ce,cl,cg,cj,ch,cd,ci=0;if(bP.isFunction(ck)){return this.each(function(i){bP(this).removeClass(ck.call(this,i,D(this)))
})}if(!arguments.length){return this.attr("class","")}if(typeof ck==="string"&&ck){cf=ck.match(aM)||[];while((ce=this[ci++])){cg=D(ce);cl=ce.nodeType===1&&(" "+cg+" ").replace(bR," ");if(cl){ch=0;while((cj=cf[ch++])){while(cl.indexOf(" "+cj+" ")>-1){cl=cl.replace(" "+cj+" "," ")}}cd=bP.trim(cl);if(cg!==cd){bP.attr(ce,"class",cd)}}}}return this},toggleClass:function(ce,i){var cd=typeof ce;if(typeof i==="boolean"&&cd==="string"){return i?this.addClass(ce):this.removeClass(ce)}if(bP.isFunction(ce)){return this.each(function(cf){bP(this).toggleClass(ce.call(this,cf,D(this),i),i)
})}return this.each(function(){var ch,cg,cf,ci;if(cd==="string"){cg=0;cf=bP(this);ci=ce.match(aM)||[];while((ch=ci[cg++])){if(cf.hasClass(ch)){cf.removeClass(ch)}else{cf.addClass(ch)}}}else{if(ce===undefined||cd==="boolean"){ch=D(this);if(ch){bP._data(this,"__className__",ch)}bP.attr(this,"class",ch||ce===false?"":bP._data(this,"__className__")||"")}}})},hasClass:function(cd){var cf,cg,ce=0;cf=" "+cd+" ";while((cg=this[ce++])){if(cg.nodeType===1&&(" "+D(cg)+" ").replace(bR," ").indexOf(cf)>-1){return true
}}return false}});bP.each(("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error contextmenu").split(" "),function(ce,cd){bP.fn[cd]=function(cf,i){return arguments.length>0?this.on(cd,null,cf,i):this.trigger(cd)}});bP.fn.extend({hover:function(i,cd){return this.mouseenter(i).mouseleave(cd||i)}});var aV=bc.location;var bw=bP.now();var bW=(/\?/);var a9=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
bP.parseJSON=function(i){if(bc.JSON&&bc.JSON.parse){return bc.JSON.parse(i+"")}var cf,ce=null,cd=bP.trim(i+"");return cd&&!bP.trim(cd.replace(a9,function(ci,cg,ch,cj){if(cf&&cg){ce=0}if(ce===0){return ci}cf=ch||cg;ce+=!cj-!ch;return""}))?(Function("return "+cd))():bP.error("Invalid JSON: "+i)};bP.parseXML=function(ce){var i,cd;if(!ce||typeof ce!=="string"){return null}try{if(bc.DOMParser){cd=new bc.DOMParser();i=cd.parseFromString(ce,"text/xml")}else{i=new bc.ActiveXObject("Microsoft.XMLDOM");i.async="false";
i.loadXML(ce)}}catch(cf){i=undefined}if(!i||!i.documentElement||i.getElementsByTagName("parsererror").length){bP.error("Invalid XML: "+ce)}return i};var ax=/#.*$/,Z=/([?&])_=[^&]*/,ao=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,E=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,q=/^(?:GET|HEAD)$/,aQ=/^\/\//,a1=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,t={},bg={},a5="*/".concat("*"),ai=aV.href,cb=a1.exec(ai.toLowerCase())||[];function bQ(i){return function(cg,ch){if(typeof cg!=="string"){ch=cg;
cg="*"}var cd,ce=0,cf=cg.toLowerCase().match(aM)||[];if(bP.isFunction(ch)){while((cd=cf[ce++])){if(cd.charAt(0)==="+"){cd=cd.slice(1)||"*";(i[cd]=i[cd]||[]).unshift(ch)}else{(i[cd]=i[cd]||[]).push(ch)}}}}}function p(i,ce,ci,cf){var cd={},cg=(i===bg);function ch(cj){var ck;cd[cj]=true;bP.each(i[cj]||[],function(cm,cl){var cn=cl(ce,ci,cf);if(typeof cn==="string"&&!cg&&!cd[cn]){ce.dataTypes.unshift(cn);ch(cn);return false}else{if(cg){return !(ck=cn)}}});return ck}return ch(ce.dataTypes[0])||!cd["*"]&&ch("*")
}function s(ce,cf){var i,cd,cg=bP.ajaxSettings.flatOptions||{};for(cd in cf){if(cf[cd]!==undefined){(cg[cd]?ce:(i||(i={})))[cd]=cf[cd]}}if(i){bP.extend(true,ce,i)}return ce}function f(ck,cj,cg){var i,cf,ce,ch,cd=ck.contents,ci=ck.dataTypes;while(ci[0]==="*"){ci.shift();if(cf===undefined){cf=ck.mimeType||cj.getResponseHeader("Content-Type")}}if(cf){for(ch in cd){if(cd[ch]&&cd[ch].test(cf)){ci.unshift(ch);break}}}if(ci[0] in cg){ce=ci[0]}else{for(ch in cg){if(!ci[0]||ck.converters[ch+" "+ci[0]]){ce=ch;
break}if(!i){i=ch}}ce=ce||i}if(ce){if(ce!==ci[0]){ci.unshift(ce)}return cg[ce]}}function an(cn,cf,ck,cd){var i,ci,cl,cg,ce,cm={},cj=cn.dataTypes.slice();if(cj[1]){for(cl in cn.converters){cm[cl.toLowerCase()]=cn.converters[cl]}}ci=cj.shift();while(ci){if(cn.responseFields[ci]){ck[cn.responseFields[ci]]=cf}if(!ce&&cd&&cn.dataFilter){cf=cn.dataFilter(cf,cn.dataType)}ce=ci;ci=cj.shift();if(ci){if(ci==="*"){ci=ce}else{if(ce!=="*"&&ce!==ci){cl=cm[ce+" "+ci]||cm["* "+ci];if(!cl){for(i in cm){cg=i.split(" ");
if(cg[1]===ci){cl=cm[ce+" "+cg[0]]||cm["* "+cg[0]];if(cl){if(cl===true){cl=cm[i]}else{if(cm[i]!==true){ci=cg[0];cj.unshift(cg[1])}}break}}}}if(cl!==true){if(cl&&cn["throws"]){cf=cl(cf)}else{try{cf=cl(cf)}catch(ch){return{state:"parsererror",error:cl?ch:"No conversion from "+ce+" to "+ci}}}}}}}}return{state:"success",data:cf}}bP.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ai,type:"GET",isLocal:E.test(cb[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":a5,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":bP.parseJSON,"text xml":bP.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(cd,i){return i?s(s(cd,bP.ajaxSettings),i):s(bP.ajaxSettings,cd)
},ajaxPrefilter:bQ(t),ajaxTransport:bQ(bg),ajax:function(ch,ce){if(typeof ch==="object"){ce=ch;ch=undefined}ce=ce||{};var cq,cs,ci,cx,cm,cd,ct,cf,cl=bP.ajaxSetup({},ce),cz=cl.context||cl,co=cl.context&&(cz.nodeType||cz.jquery)?bP(cz):bP.event,cy=bP.Deferred(),cv=bP.Callbacks("once memory"),cj=cl.statusCode||{},cp={},cw={},cg=0,ck="canceled",cr={readyState:0,getResponseHeader:function(cA){var i;if(cg===2){if(!cf){cf={};while((i=ao.exec(cx))){cf[i[1].toLowerCase()]=i[2]}}i=cf[cA.toLowerCase()]}return i==null?null:i
},getAllResponseHeaders:function(){return cg===2?cx:null},setRequestHeader:function(cA,cB){var i=cA.toLowerCase();if(!cg){cA=cw[i]=cw[i]||cA;cp[cA]=cB}return this},overrideMimeType:function(i){if(!cg){cl.mimeType=i}return this},statusCode:function(cA){var i;if(cA){if(cg<2){for(i in cA){cj[i]=[cj[i],cA[i]]}}else{cr.always(cA[cr.status])}}return this},abort:function(cA){var i=cA||ck;if(ct){ct.abort(i)}cn(0,i);return this}};cy.promise(cr).complete=cv.add;cr.success=cr.done;cr.error=cr.fail;cl.url=((ch||cl.url||ai)+"").replace(ax,"").replace(aQ,cb[1]+"//");
cl.type=ce.method||ce.type||cl.method||cl.type;cl.dataTypes=bP.trim(cl.dataType||"*").toLowerCase().match(aM)||[""];if(cl.crossDomain==null){cq=a1.exec(cl.url.toLowerCase());cl.crossDomain=!!(cq&&(cq[1]!==cb[1]||cq[2]!==cb[2]||(cq[3]||(cq[1]==="http:"?"80":"443"))!==(cb[3]||(cb[1]==="http:"?"80":"443"))))}if(cl.data&&cl.processData&&typeof cl.data!=="string"){cl.data=bP.param(cl.data,cl.traditional)}p(t,cl,ce,cr);if(cg===2){return cr}cd=bP.event&&cl.global;if(cd&&bP.active++===0){bP.event.trigger("ajaxStart")
}cl.type=cl.type.toUpperCase();cl.hasContent=!q.test(cl.type);ci=cl.url;if(!cl.hasContent){if(cl.data){ci=(cl.url+=(bW.test(ci)?"&":"?")+cl.data);delete cl.data}if(cl.cache===false){cl.url=Z.test(ci)?ci.replace(Z,"$1_="+bw++):ci+(bW.test(ci)?"&":"?")+"_="+bw++}}if(cl.ifModified){if(bP.lastModified[ci]){cr.setRequestHeader("If-Modified-Since",bP.lastModified[ci])}if(bP.etag[ci]){cr.setRequestHeader("If-None-Match",bP.etag[ci])}}if(cl.data&&cl.hasContent&&cl.contentType!==false||ce.contentType){cr.setRequestHeader("Content-Type",cl.contentType)
}cr.setRequestHeader("Accept",cl.dataTypes[0]&&cl.accepts[cl.dataTypes[0]]?cl.accepts[cl.dataTypes[0]]+(cl.dataTypes[0]!=="*"?", "+a5+"; q=0.01":""):cl.accepts["*"]);for(cs in cl.headers){cr.setRequestHeader(cs,cl.headers[cs])}if(cl.beforeSend&&(cl.beforeSend.call(cz,cr,cl)===false||cg===2)){return cr.abort()}ck="abort";for(cs in {success:1,error:1,complete:1}){cr[cs](cl[cs])}ct=p(bg,cl,ce,cr);if(!ct){cn(-1,"No Transport")}else{cr.readyState=1;if(cd){co.trigger("ajaxSend",[cr,cl])}if(cg===2){return cr
}if(cl.async&&cl.timeout>0){cm=bc.setTimeout(function(){cr.abort("timeout")},cl.timeout)}try{cg=1;ct.send(cp,cn)}catch(cu){if(cg<2){cn(-1,cu)}else{throw cu}}}function cn(cE,cA,cF,cC){var i,cI,cG,cD,cH,cB=cA;if(cg===2){return}cg=2;if(cm){bc.clearTimeout(cm)}ct=undefined;cx=cC||"";cr.readyState=cE>0?4:0;i=cE>=200&&cE<300||cE===304;if(cF){cD=f(cl,cr,cF)}cD=an(cl,cD,cr,i);if(i){if(cl.ifModified){cH=cr.getResponseHeader("Last-Modified");if(cH){bP.lastModified[ci]=cH}cH=cr.getResponseHeader("etag");if(cH){bP.etag[ci]=cH
}}if(cE===204||cl.type==="HEAD"){cB="nocontent"}else{if(cE===304){cB="notmodified"}else{cB=cD.state;cI=cD.data;cG=cD.error;i=!cG}}}else{cG=cB;if(cE||!cB){cB="error";if(cE<0){cE=0}}}cr.status=cE;cr.statusText=(cA||cB)+"";if(i){cy.resolveWith(cz,[cI,cB,cr])}else{cy.rejectWith(cz,[cr,cB,cG])}cr.statusCode(cj);cj=undefined;if(cd){co.trigger(i?"ajaxSuccess":"ajaxError",[cr,cl,i?cI:cG])}cv.fireWith(cz,[cr,cB]);if(cd){co.trigger("ajaxComplete",[cr,cl]);if(!(--bP.active)){bP.event.trigger("ajaxStop")}}}return cr
},getJSON:function(i,cd,ce){return bP.get(i,cd,ce,"json")},getScript:function(i,cd){return bP.get(i,undefined,cd,"script")}});bP.each(["get","post"],function(cd,ce){bP[ce]=function(i,cg,ch,cf){if(bP.isFunction(cg)){cf=cf||ch;ch=cg;cg=undefined}return bP.ajax(bP.extend({url:i,type:ce,dataType:cf,data:cg,success:ch},bP.isPlainObject(i)&&i))}});bP._evalUrl=function(i){return bP.ajax({url:i,type:"GET",dataType:"script",cache:true,async:false,global:false,"throws":true})};bP.fn.extend({wrapAll:function(i){if(bP.isFunction(i)){return this.each(function(ce){bP(this).wrapAll(i.call(this,ce))
})}if(this[0]){var cd=bP(i,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){cd.insertBefore(this[0])}cd.map(function(){var ce=this;while(ce.firstChild&&ce.firstChild.nodeType===1){ce=ce.firstChild}return ce}).append(this)}return this},wrapInner:function(i){if(bP.isFunction(i)){return this.each(function(cd){bP(this).wrapInner(i.call(this,cd))})}return this.each(function(){var cd=bP(this),ce=cd.contents();if(ce.length){ce.wrapAll(i)}else{cd.append(i)}})},wrap:function(i){var cd=bP.isFunction(i);
return this.each(function(ce){bP(this).wrapAll(cd?i.call(this,ce):i)})},unwrap:function(){return this.parent().each(function(){if(!bP.nodeName(this,"body")){bP(this).replaceWith(this.childNodes)}}).end()}});function Q(i){return i.style&&i.style.display||bP.css(i,"display")}function N(i){if(!bP.contains(i.ownerDocument||m,i)){return true}while(i&&i.nodeType===1){if(Q(i)==="none"||i.type==="hidden"){return true}i=i.parentNode}return false}bP.expr.filters.hidden=function(i){return F.reliableHiddenOffsets()?(i.offsetWidth<=0&&i.offsetHeight<=0&&!i.getClientRects().length):N(i)
};bP.expr.filters.visible=function(i){return !bP.expr.filters.hidden(i)};var bD=/%20/g,aZ=/\[\]$/,ae=/\r?\n/g,b=/^(?:submit|button|image|reset|file)$/i,aC=/^(?:input|select|textarea|keygen)/i;function h(ce,cg,cd,cf){var i;if(bP.isArray(cg)){bP.each(cg,function(ci,ch){if(cd||aZ.test(ce)){cf(ce,ch)}else{h(ce+"["+(typeof ch==="object"&&ch!=null?ci:"")+"]",ch,cd,cf)}})}else{if(!cd&&bP.type(cg)==="object"){for(i in cg){h(ce+"["+i+"]",cg[i],cd,cf)}}else{cf(ce,cg)}}}bP.param=function(i,ce){var cf,cd=[],cg=function(ch,ci){ci=bP.isFunction(ci)?ci():(ci==null?"":ci);
cd[cd.length]=encodeURIComponent(ch)+"="+encodeURIComponent(ci)};if(ce===undefined){ce=bP.ajaxSettings&&bP.ajaxSettings.traditional}if(bP.isArray(i)||(i.jquery&&!bP.isPlainObject(i))){bP.each(i,function(){cg(this.name,this.value)})}else{for(cf in i){h(cf,i[cf],ce,cg)}}return cd.join("&").replace(bD,"+")};bP.fn.extend({serialize:function(){return bP.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var i=bP.prop(this,"elements");return i?bP.makeArray(i):this}).filter(function(){var i=this.type;
return this.name&&!bP(this).is(":disabled")&&aC.test(this.nodeName)&&!b.test(i)&&(this.checked||!aS.test(i))}).map(function(cd,ce){var cf=bP(this).val();return cf==null?null:bP.isArray(cf)?bP.map(cf,function(i){return{name:ce.name,value:i.replace(ae,"\r\n")}}):{name:ce.name,value:cf.replace(ae,"\r\n")}}).get()}});bP.ajaxSettings.xhr=bc.ActiveXObject!==undefined?function(){if(this.isLocal){return bn()}if(m.documentMode>8){return bL()}return/^(get|post|head|put|delete|options)$/i.test(this.type)&&bL()||bn()
}:bL;var aI=0,aq={},aG=bP.ajaxSettings.xhr();if(bc.attachEvent){bc.attachEvent("onunload",function(){for(var i in aq){aq[i](undefined,true)}})}F.cors=!!aG&&("withCredentials" in aG);aG=F.ajax=!!aG;if(aG){bP.ajaxTransport(function(i){if(!i.crossDomain||F.cors){var cd;return{send:function(ch,ce){var cf,cg=i.xhr(),ci=++aI;cg.open(i.type,i.url,i.async,i.username,i.password);if(i.xhrFields){for(cf in i.xhrFields){cg[cf]=i.xhrFields[cf]}}if(i.mimeType&&cg.overrideMimeType){cg.overrideMimeType(i.mimeType)
}if(!i.crossDomain&&!ch["X-Requested-With"]){ch["X-Requested-With"]="XMLHttpRequest"}for(cf in ch){if(ch[cf]!==undefined){cg.setRequestHeader(cf,ch[cf]+"")}}cg.send((i.hasContent&&i.data)||null);cd=function(cl,ck){var cj,co,cm;if(cd&&(ck||cg.readyState===4)){delete aq[ci];cd=undefined;cg.onreadystatechange=bP.noop;if(ck){if(cg.readyState!==4){cg.abort()}}else{cm={};cj=cg.status;if(typeof cg.responseText==="string"){cm.text=cg.responseText}try{co=cg.statusText}catch(cn){co=""}if(!cj&&i.isLocal&&!i.crossDomain){cj=cm.text?200:404
}else{if(cj===1223){cj=204}}}}if(cm){ce(cj,co,cm,cg.getAllResponseHeaders())}};if(!i.async){cd()}else{if(cg.readyState===4){bc.setTimeout(cd)}else{cg.onreadystatechange=aq[ci]=cd}}},abort:function(){if(cd){cd(undefined,true)}}}}})}function bL(){try{return new bc.XMLHttpRequest()}catch(i){}}function bn(){try{return new bc.ActiveXObject("Microsoft.XMLHTTP")}catch(i){}}bP.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(i){bP.globalEval(i);
return i}}});bP.ajaxPrefilter("script",function(i){if(i.cache===undefined){i.cache=false}if(i.crossDomain){i.type="GET";i.global=false}});bP.ajaxTransport("script",function(ce){if(ce.crossDomain){var i,cd=m.head||bP("head")[0]||m.documentElement;return{send:function(cf,cg){i=m.createElement("script");i.async=true;if(ce.scriptCharset){i.charset=ce.scriptCharset}i.src=ce.url;i.onload=i.onreadystatechange=function(ci,ch){if(ch||!i.readyState||/loaded|complete/.test(i.readyState)){i.onload=i.onreadystatechange=null;
if(i.parentNode){i.parentNode.removeChild(i)}i=null;if(!ch){cg(200,"success")}}};cd.insertBefore(i,cd.firstChild)},abort:function(){if(i){i.onload(undefined,true)}}}}});var bz=[],bf=/(=)\?(?=&|$)|\?\?/;bP.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var i=bz.pop()||(bP.expando+"_"+(bw++));this[i]=true;return i}});bP.ajaxPrefilter("json jsonp",function(cf,i,cg){var ci,cd,ce,ch=cf.jsonp!==false&&(bf.test(cf.url)?"url":typeof cf.data==="string"&&(cf.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&bf.test(cf.data)&&"data");
if(ch||cf.dataTypes[0]==="jsonp"){ci=cf.jsonpCallback=bP.isFunction(cf.jsonpCallback)?cf.jsonpCallback():cf.jsonpCallback;if(ch){cf[ch]=cf[ch].replace(bf,"$1"+ci)}else{if(cf.jsonp!==false){cf.url+=(bW.test(cf.url)?"&":"?")+cf.jsonp+"="+ci}}cf.converters["script json"]=function(){if(!ce){bP.error(ci+" was not called")}return ce[0]};cf.dataTypes[0]="json";cd=bc[ci];bc[ci]=function(){ce=arguments};cg.always(function(){if(cd===undefined){bP(bc).removeProp(ci)}else{bc[ci]=cd}if(cf[ci]){cf.jsonpCallback=i.jsonpCallback;
bz.push(ci)}if(ce&&bP.isFunction(cd)){cd(ce[0])}ce=cd=undefined});return"script"}});bP.parseHTML=function(cg,ce,cf){if(!cg||typeof cg!=="string"){return null}if(typeof ce==="boolean"){cf=ce;ce=false}ce=ce||m;var cd=a.exec(cg),i=!cf&&[];if(cd){return[ce.createElement(cd[1])]}cd=B([cg],ce,i);if(i&&i.length){bP(i).remove()}return bP.merge([],cd.childNodes)};var b9=bP.fn.load;bP.fn.load=function(cf,ci,cj){if(typeof cf!=="string"&&b9){return b9.apply(this,arguments)}var i,cg,ce,cd=this,ch=cf.indexOf(" ");
if(ch>-1){i=bP.trim(cf.slice(ch,cf.length));cf=cf.slice(0,ch)}if(bP.isFunction(ci)){cj=ci;ci=undefined}else{if(ci&&typeof ci==="object"){cg="POST"}}if(cd.length>0){bP.ajax({url:cf,type:cg||"GET",dataType:"html",data:ci}).done(function(ck){ce=arguments;cd.html(i?bP("<div>").append(bP.parseHTML(ck)).find(i):ck)}).always(cj&&function(cl,ck){cd.each(function(){cj.apply(this,ce||[cl.responseText,ck,cl])})})}return this};bP.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(cd,ce){bP.fn[ce]=function(i){return this.on(ce,i)
}});bP.expr.filters.animated=function(i){return bP.grep(bP.timers,function(cd){return i===cd.elem}).length};function by(i){return bP.isWindow(i)?i:i.nodeType===9?i.defaultView||i.parentWindow:false}bP.offset={setOffset:function(cf,cp,cj){var cl,ci,cd,cg,ce,cn,co,ck=bP.css(cf,"position"),ch=bP(cf),cm={};if(ck==="static"){cf.style.position="relative"}ce=ch.offset();cd=bP.css(cf,"top");cn=bP.css(cf,"left");co=(ck==="absolute"||ck==="fixed")&&bP.inArray("auto",[cd,cn])>-1;if(co){cl=ch.position();cg=cl.top;
ci=cl.left}else{cg=parseFloat(cd)||0;ci=parseFloat(cn)||0}if(bP.isFunction(cp)){cp=cp.call(cf,cj,bP.extend({},ce))}if(cp.top!=null){cm.top=(cp.top-ce.top)+cg}if(cp.left!=null){cm.left=(cp.left-ce.left)+ci}if("using" in cp){cp.using.call(cf,cm)}else{ch.css(cm)}}};bP.fn.extend({offset:function(cd){if(arguments.length){return cd===undefined?this:this.each(function(ci){bP.offset.setOffset(this,cd,ci)})}var i,ch,cf={top:0,left:0},ce=this[0],cg=ce&&ce.ownerDocument;if(!cg){return}i=cg.documentElement;if(!bP.contains(i,ce)){return cf
}if(typeof ce.getBoundingClientRect!=="undefined"){cf=ce.getBoundingClientRect()}ch=by(cg);return{top:cf.top+(ch.pageYOffset||i.scrollTop)-(i.clientTop||0),left:cf.left+(ch.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}},position:function(){if(!this[0]){return}var ce,cf,i={top:0,left:0},cd=this[0];if(bP.css(cd,"position")==="fixed"){cf=cd.getBoundingClientRect()}else{ce=this.offsetParent();cf=this.offset();if(!bP.nodeName(ce[0],"html")){i=ce.offset()}i.top+=bP.css(ce[0],"borderTopWidth",true);i.left+=bP.css(ce[0],"borderLeftWidth",true)
}return{top:cf.top-i.top-bP.css(cd,"marginTop",true),left:cf.left-i.left-bP.css(cd,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var i=this.offsetParent;while(i&&(!bP.nodeName(i,"html")&&bP.css(i,"position")==="static")){i=i.offsetParent}return i||b1})}});bP.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(ce,cd){var i=/Y/.test(cd);bP.fn[ce]=function(cf){return aJ(this,function(cg,cj,ci){var ch=by(cg);if(ci===undefined){return ch?(cd in ch)?ch[cd]:ch.document.documentElement[cj]:cg[cj]
}if(ch){ch.scrollTo(!i?ci:bP(ch).scrollLeft(),i?ci:bP(ch).scrollTop())}else{cg[cj]=ci}},ce,cf,arguments.length,null)}});bP.each(["top","left"],function(cd,ce){bP.cssHooks[ce]=be(F.pixelPosition,function(cf,i){if(i){i=I(cf,ce);return ag.test(i)?bP(cf).position()[ce]+"px":i}})});bP.each({Height:"height",Width:"width"},function(i,cd){bP.each({padding:"inner"+i,content:cd,"":"outer"+i},function(ce,cf){bP.fn[cf]=function(cj,ci){var ch=arguments.length&&(ce||typeof cj!=="boolean"),cg=ce||(cj===true||ci===true?"margin":"border");
return aJ(this,function(cl,ck,cm){var cn;if(bP.isWindow(cl)){return cl.document.documentElement["client"+i]}if(cl.nodeType===9){cn=cl.documentElement;return Math.max(cl.body["scroll"+i],cn["scroll"+i],cl.body["offset"+i],cn["offset"+i],cn["client"+i])}return cm===undefined?bP.css(cl,ck,cg):bP.style(cl,ck,cm,cg)},cd,ch?cj:undefined,ch,null)}})});bP.fn.extend({bind:function(i,ce,cd){return this.on(i,null,ce,cd)},unbind:function(i,cd){return this.off(i,null,cd)},delegate:function(i,cd,cf,ce){return this.on(cd,i,cf,ce)
},undelegate:function(i,cd,ce){return arguments.length===1?this.off(i,"**"):this.off(cd,i||"**",ce)}});bP.fn.size=function(){return this.length};bP.fn.andSelf=bP.fn.addBack;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return bP})}var br=bc.jQuery,O=bc.$;bP.noConflict=function(i){if(bc.$===bP){bc.$=O}if(i&&bc.jQuery===bP){bc.jQuery=br}return bP};if(!aD){bc.jQuery=bc.$=bP}return bP}));
/*!
 * jQuery Migrate - v1.4.1 - 2016-05-19
 * Copyright jQuery Foundation and other contributors
 */
(function(u,I,j){u.migrateVersion="1.4.1";var p={};u.migrateWarnings=[];if(I.console&&I.console.log){I.console.log("JQMIGRATE: Migrate is installed"+(u.migrateMute?"":" with logging active")+", version "+u.migrateVersion)}if(u.migrateTrace===j){u.migrateTrace=true}u.migrateReset=function(){p={};u.migrateWarnings.length=0};function K(R){var Q=I.console;if(!p[R]){p[R]=true;u.migrateWarnings.push(R);
if(Q&&Q.warn&&!u.migrateMute){Q.warn("JQMIGRATE: "+R);if(u.migrateTrace&&Q.trace){Q.trace()}}}}function s(S,U,R,T){if(Object.defineProperty){try{Object.defineProperty(S,U,{configurable:true,enumerable:true,get:function(){K(T);return R},set:function(V){K(T);R=V}});return}catch(Q){}}u._definePropertyBroken=true;S[U]=R}if(document.compatMode==="BackCompat"){K("jQuery is not compatible with Quirks Mode")}var G=u("<input/>",{size:1}).attr("size")&&u.attrFn,M=u.attr,H=u.attrHooks.value&&u.attrHooks.value.get||function(){return null
},r=u.attrHooks.value&&u.attrHooks.value.set||function(){return j},w=/^(?:input|button)$/i,o=/^[238]$/,O=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;s(u,"attrFn",G||{},"jQuery.attrFn is deprecated");u.attr=function(U,S,V,T){var R=S.toLowerCase(),Q=U&&U.nodeType;if(T){if(M.length<4){K("jQuery.fn.attr( props, pass ) is deprecated")}if(U&&!o.test(Q)&&(G?S in G:u.isFunction(u.fn[S]))){return u(U)[S](V)
}}if(S==="type"&&V!==j&&w.test(U.nodeName)&&U.parentNode){K("Can't change the 'type' of an input or button in IE 6/7/8")}if(!u.attrHooks[R]&&O.test(R)){u.attrHooks[R]={get:function(X,W){var Z,Y=u.prop(X,W);return Y===true||typeof Y!=="boolean"&&(Z=X.getAttributeNode(W))&&Z.nodeValue!==false?W.toLowerCase():j},set:function(X,Z,W){var Y;if(Z===false){u.removeAttr(X,W)}else{Y=u.propFix[W]||W;if(Y in X){X[Y]=true}X.setAttribute(W,W.toLowerCase())}return W}};if(f.test(R)){K("jQuery.fn.attr('"+R+"') might use property instead of attribute")
}}return M.call(u,U,S,V)};u.attrHooks.value={get:function(R,Q){var S=(R.nodeName||"").toLowerCase();if(S==="button"){return H.apply(this,arguments)}if(S!=="input"&&S!=="option"){K("jQuery.fn.attr('value') no longer gets properties")}return Q in R?R.value:null},set:function(Q,R){var S=(Q.nodeName||"").toLowerCase();if(S==="button"){return r.apply(this,arguments)}if(S!=="input"&&S!=="option"){K("jQuery.fn.attr('value', val) no longer sets properties")}Q.value=R}};var h,b,t=u.fn.init,k=u.find,y=u.parseJSON,v=/^\s*</,l=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,A=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,F=/^([^<]*)(<[\w\W]+>)([^>]*)$/;
u.fn.init=function(Q,U,T){var S,R;if(Q&&typeof Q==="string"){if(!u.isPlainObject(U)&&(S=F.exec(u.trim(Q)))&&S[0]){if(!v.test(Q)){K("$(html) HTML strings must start with '<' character")}if(S[3]){K("$(html) HTML text after last tag is ignored")}if(S[0].charAt(0)==="#"){K("HTML string cannot start with a '#' character");u.error("JQMIGRATE: Invalid selector string (XSS)")}if(U&&U.context&&U.context.nodeType){U=U.context}if(u.parseHTML){return t.call(this,u.parseHTML(S[2],U&&U.ownerDocument||U||document,true),U,T)
}}}R=t.apply(this,arguments);if(Q&&Q.selector!==j){R.selector=Q.selector;R.context=Q.context}else{R.selector=typeof Q==="string"?Q:"";if(Q){R.context=Q.nodeType?Q:U||document}}return R};u.fn.init.prototype=u.fn;u.find=function(Q){var T=Array.prototype.slice.call(arguments);if(typeof Q==="string"&&l.test(Q)){try{document.querySelector(Q)}catch(S){Q=Q.replace(A,function(V,U,X,W){return"["+U+X+'"'+W+'"]'});try{document.querySelector(Q);K("Attribute selector with '#' must be quoted: "+T[0]);T[0]=Q}catch(R){K("Attribute selector with '#' was not fixed: "+T[0])
}}}return k.apply(this,T)};var N;for(N in k){if(Object.prototype.hasOwnProperty.call(k,N)){u.find[N]=k[N]}}u.parseJSON=function(Q){if(!Q){K("jQuery.parseJSON requires a valid JSON string");return null}return y.apply(this,arguments)};u.uaMatch=function(R){R=R.toLowerCase();var Q=/(chrome)[ \/]([\w.]+)/.exec(R)||/(webkit)[ \/]([\w.]+)/.exec(R)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(R)||/(msie) ([\w.]+)/.exec(R)||R.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(R)||[];return{browser:Q[1]||"",version:Q[2]||"0"}
};if(!u.browser){h=u.uaMatch(navigator.userAgent);b={};if(h.browser){b[h.browser]=true;b.version=h.version}if(b.chrome){b.webkit=true}else{if(b.webkit){b.safari=true}}u.browser=b}s(u,"browser",u.browser,"jQuery.browser is deprecated");u.boxModel=u.support.boxModel=(document.compatMode==="CSS1Compat");s(u,"boxModel",u.boxModel,"jQuery.boxModel is deprecated");s(u.support,"boxModel",u.support.boxModel,"jQuery.support.boxModel is deprecated");u.sub=function(){function Q(T,U){return new Q.fn.init(T,U)
}u.extend(true,Q,this);Q.superclass=this;Q.fn=Q.prototype=this();Q.fn.constructor=Q;Q.sub=this.sub;Q.fn.init=function S(U,V){var T=u.fn.init.call(this,U,V,R);return T instanceof Q?T:Q(T)};Q.fn.init.prototype=Q.fn;var R=Q(document);K("jQuery.sub() is deprecated");return Q};u.fn.size=function(){K("jQuery.fn.size() is deprecated; use the .length property");return this.length};var n=false;if(u.swap){u.each(["height","width","reliableMarginRight"],function(R,Q){var S=u.cssHooks[Q]&&u.cssHooks[Q].get;if(S){u.cssHooks[Q].get=function(){var T;
n=true;T=S.apply(this,arguments);n=false;return T}}})}u.swap=function(V,U,W,T){var S,R,Q={};if(!n){K("jQuery.swap() is undocumented and deprecated")}for(R in U){Q[R]=V.style[R];V.style[R]=U[R]}S=W.apply(V,T||[]);for(R in U){V.style[R]=Q[R]}return S};u.ajaxSetup({converters:{"text json":u.parseJSON}});var L=u.fn.data;u.fn.data=function(S){var R,Q,T=this[0];if(T&&S==="events"&&arguments.length===1){R=u.data(T,S);Q=u._data(T,S);if((R===j||R===Q)&&Q!==j){K("Use of jQuery.fn.data('events') is deprecated");
return Q}}return L.apply(this,arguments)};var P=/\/(java|ecma)script/i;if(!u.clean){u.clean=function(Q,R,X,T){R=R||document;R=!R.nodeType&&R[0]||R;R=R.ownerDocument||R;K("jQuery.clean() is deprecated");var U,S,V,Y,W=[];u.merge(W,u.buildFragment(Q,R).childNodes);if(X){V=function(Z){if(!Z.type||P.test(Z.type)){return T?T.push(Z.parentNode?Z.parentNode.removeChild(Z):Z):X.appendChild(Z)}};for(U=0;(S=W[U])!=null;U++){if(!(u.nodeName(S,"script")&&V(S))){X.appendChild(S);if(typeof S.getElementsByTagName!=="undefined"){Y=u.grep(u.merge([],S.getElementsByTagName("script")),V);
W.splice.apply(W,[U+1,0].concat(Y));U+=Y.length}}}}return W}}var C=u.event.add,x=u.event.remove,q=u.event.trigger,a=u.fn.toggle,d=u.fn.live,z=u.fn.die,m=u.fn.load,g="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",i=new RegExp("\\b(?:"+g+")\\b"),J=/(?:^|\s)hover(\.\S+|)\b/,c=function(Q){if(typeof(Q)!=="string"||u.event.special.hover){return Q}if(J.test(Q)){K("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'")}return Q&&Q.replace(J,"mouseenter$1 mouseleave$1")};if(u.event.props&&u.event.props[0]!=="attrChange"){u.event.props.unshift("attrChange","attrName","relatedNode","srcElement")
}if(u.event.dispatch){s(u.event,"handle",u.event.dispatch,"jQuery.event.handle is undocumented and deprecated")}u.event.add=function(T,R,S,U,Q){if(T!==document&&i.test(R)){K("AJAX events should be attached to document: "+R)}C.call(this,T,c(R||""),S,U,Q)};u.event.remove=function(U,S,T,Q,R){x.call(this,U,c(S)||"",T,Q,R)};u.each(["load","unload","error"],function(R,Q){u.fn[Q]=function(){var S=Array.prototype.slice.call(arguments,0);if(Q==="load"&&typeof S[0]==="string"){return m.apply(this,S)}K("jQuery.fn."+Q+"() is deprecated");
S.splice(0,0,Q);if(arguments.length){return this.bind.apply(this,S)}this.triggerHandler.apply(this,S);return this}});u.fn.toggle=function(U,S){if(!u.isFunction(U)||!u.isFunction(S)){return a.apply(this,arguments)}K("jQuery.fn.toggle(handler, handler...) is deprecated");var R=arguments,Q=U.guid||u.guid++,T=0,V=function(W){var X=(u._data(this,"lastToggle"+U.guid)||0)%T;u._data(this,"lastToggle"+U.guid,X+1);W.preventDefault();return R[X].apply(this,arguments)||false};V.guid=Q;while(T<R.length){R[T++].guid=Q
}return this.click(V)};u.fn.live=function(Q,S,R){K("jQuery.fn.live() is deprecated");if(d){return d.apply(this,arguments)}u(this.context).on(Q,this.selector,S,R);return this};u.fn.die=function(Q,R){K("jQuery.fn.die() is deprecated");if(z){return z.apply(this,arguments)}u(this.context).off(Q,this.selector||"**",R);return this};u.event.trigger=function(S,T,R,Q){if(!R&&!i.test(S)){K("Global events are undocumented and deprecated")}return q.call(this,S,T,R||document,Q)};u.each(g.split("|"),function(R,Q){u.event.special[Q]={setup:function(){var S=this;
if(S!==document){u.event.add(document,Q+"."+u.guid,function(){u.event.trigger(Q,Array.prototype.slice.call(arguments,1),S,true)});u._data(this,Q,u.guid++)}return false},teardown:function(){if(this!==document){u.event.remove(document,Q+"."+u._data(this,Q))}return false}}});u.event.special.ready={setup:function(){if(this===document){K("'ready' event is deprecated")}}};var E=u.fn.andSelf||u.fn.addBack,B=u.fn.find;u.fn.andSelf=function(){K("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");return E.apply(this,arguments)
};u.fn.find=function(Q){var R=B.apply(this,arguments);R.context=this.context;R.selector=this.selector?this.selector+" "+Q:Q;return R};if(u.Callbacks){var D=u.Deferred,e=[["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),"rejected"],["notify","progress",u.Callbacks("memory"),u.Callbacks("memory")]];u.Deferred=function(R){var Q=D(),S=Q.promise();Q.pipe=S.pipe=function(){var T=arguments;K("deferred.pipe() is deprecated");
return u.Deferred(function(U){u.each(e,function(W,V){var X=u.isFunction(T[W])&&T[W];Q[V[1]](function(){var Y=X&&X.apply(this,arguments);if(Y&&u.isFunction(Y.promise)){Y.promise().done(U.resolve).fail(U.reject).progress(U.notify)}else{U[V[0]+"With"](this===S?U.promise():this,X?[Y]:arguments)}})});T=null}).promise()};Q.isResolved=function(){K("deferred.isResolved is deprecated");return Q.state()==="resolved"};Q.isRejected=function(){K("deferred.isRejected is deprecated");return Q.state()==="rejected"
};if(R){R.call(Q,Q)}return Q}}})(jQuery,window);
(function(b){b.fn.__bind__=b.fn.bind;b.fn.__unbind__=b.fn.unbind;b.fn.__find__=b.fn.find;var a={version:"0.7.9",override:/keypress|keydown|keyup/g,triggersMap:{},specialKeys:{27:"esc",9:"tab",32:"space",13:"enter",8:"backspace",145:"scroll",20:"capslock",144:"numlock",19:"pause",45:"insert",36:"home",46:"del",35:"end",33:"pageup",34:"pagedown",37:"left",38:"up",39:"right",40:"down",109:"-",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",191:"/"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},newTrigger:function(e,d,f){var c={};
c[e]={};c[e][d]={cb:f,disableInInput:false};return c}};a.specialKeys=b.extend(a.specialKeys,{96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/"});b.fn.find=function(c){this.query=c;return b.fn.__find__.apply(this,arguments)};b.fn.unHotbind=function(h,e,g){if(b.isFunction(e)){g=e;e=null}if(e&&typeof e==="string"){var f=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();var d=h.split(" ");for(var c=0;
c<d.length;c++){delete a.triggersMap[f][d[c]][e]}}return this.__unbind__(h,g)};b.fn.hotbind=function(j,f,k){var h=j.match(a.override);if(b.isFunction(f)||!h){return this.__bind__(j,f,k)}else{var n=null,i=b.trim(j.replace(a.override,""));if(i){n=this.__bind__(i,f,k)}if(typeof f==="string"){f={"combi":f}}if(f.combi){for(var m=0;m<h.length;m++){var d=h[m];var g=f.combi.toLowerCase(),e=a.newTrigger(d,g,k),l=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();e[d][g].disableInInput=f.disableInInput;
if(!a.triggersMap[l]){a.triggersMap[l]=e}else{if(!a.triggersMap[l][d]){a.triggersMap[l][d]=e[d]}}var c=a.triggersMap[l][d][g];if(!c){a.triggersMap[l][d][g]=[e[d][g]]}else{if(c.constructor!==Array){a.triggersMap[l][d][g]=[c]}else{a.triggersMap[l][d][g][c.length]=e[d][g]}}this.each(function(){var o=b(this);if(o.attr("hkId")&&o.attr("hkId")!==l){l=o.attr("hkId")+";"+l}o.attr("hkId",l)});n=this.__bind__(h.join(" "),f,a.handler)}}return n}};b.fn.codeToString=function(d){var e=d.which,j=a.specialKeys[e],i=!j&&String.fromCharCode(e).toLowerCase(),f=d.shiftKey,c=d.ctrlKey,h=d.altKey||d.originalEvent.altKey;
var k=j||i;var g="";if(h){g+="alt+"}if(c){g+="ctrl+"}if(f){g+="shift+"}return g+k};a.findElement=function(c){if(!b(c).attr("hkId")){if(b.browser.opera||b.browser.safari){while(!b(c).attr("hkId")&&c.parentNode){c=c.parentNode}}}return c};a.handler=function(e){var o=a.findElement(e.currentTarget),i=b(o),d=i.attr("hkId");if(d){d=d.split(";");var g=e.which,q=e.type,p=a.specialKeys[g],n=!p&&String.fromCharCode(g).toLowerCase(),h=e.shiftKey,c=e.ctrlKey,m=e.altKey||e.originalEvent.altKey,f=null;for(var r=0;
r<d.length;r++){if(a.triggersMap[d[r]][q]){f=a.triggersMap[d[r]][q];break}}if(f){var j;if(!h&&!c&&!m){j=f[p]||(n&&f[n])}else{var l="";if(m){l+="alt+"}if(c){l+="ctrl+"}if(h){l+="shift+"}j=f[l+p];if(!j){if(n){j=f[l+n]||f[l+a.shiftNums[n]]||(l==="shift+"&&f[a.shiftNums[n]])}}}if(j){var s=false;for(var r=0;r<j.length;r++){if(j[r].disableInInput){var k=b(e.target);if(i.is("input")||i.is("textarea")||i.is("select")||k.is("input")||k.is("textarea")||k.is("select")){return true}}s=s||j[r].cb.apply(this,[e])
}return s}}}};window.hotkeys=a;return b})(jQuery);
(function(f){function c(m){var i=f.data(m.data.target,"draggable");var h=i.options;var g=i.proxy;var l=m.data;var k=l.startLeft+m.pageX-l.startX;var j=l.startTop+m.pageY-l.startY;if(g){if(g.parent()[0]==document.body){if(h.deltaX!=null&&h.deltaX!=undefined){k=m.pageX+h.deltaX}else{k=m.pageX-m.data.offsetWidth}if(h.deltaY!=null&&h.deltaY!=undefined){j=m.pageY+h.deltaY}else{j=m.pageY-m.data.offsetHeight}}else{if(h.deltaX!=null&&h.deltaX!=undefined){k+=m.data.offsetWidth+h.deltaX}if(h.deltaY!=null&&h.deltaY!=undefined){j+=m.data.offsetHeight+h.deltaY
}}}if(m.data.parent!=document.body){k+=f(m.data.parent).scrollLeft();j+=f(m.data.parent).scrollTop()}if(h.axis=="h"){l.left=k}else{if(h.axis=="v"){l.top=j}else{l.left=k;l.top=j}}}function e(j){var i=f.data(j.data.target,"draggable");var h=i.options;var g=i.proxy;if(!g){g=f(j.data.target)}g.css({left:j.data.left,top:j.data.top});f("body").css("cursor",h.cursor)}function a(k){f.fn.draggable.isDragging=true;var j=f.data(k.data.target,"draggable");var i=j.options;var g=f(".droppable").filter(function(){return k.data.target!=this
}).filter(function(){var l=f.data(this,"droppable").options.accept;if(l){return f(l).filter(function(){return this==k.data.target}).length>0}else{return true}});j.droppables=g;var h=j.proxy;if(!h){if(i.proxy){if(i.proxy=="clone"){h=f(k.data.target).clone().insertAfter(k.data.target)}else{h=i.proxy.call(k.data.target,k.data.target)}j.proxy=h}else{h=f(k.data.target)}}h.css("position","absolute");c(k);e(k);i.onStartDrag.call(k.data.target,k);return false}function b(i){var h=f.data(i.data.target,"draggable");
c(i);if(h.options.onDrag.call(i.data.target,i)!=false){e(i)}var g=i.data.target;h.droppables.each(function(){var k=f(this);if(k.droppable("options").disabled){return}var j=k.offset();if(i.pageX>j.left&&i.pageX<j.left+k.outerWidth()&&i.pageY>j.top&&i.pageY<j.top+k.outerHeight()){if(!this.entered){f(this).trigger("_dragenter",[g]);this.entered=true}f(this).trigger("_dragover",[g])}else{if(this.entered){f(this).trigger("_dragleave",[g]);this.entered=false}}});return false}function d(n){f.fn.draggable.isDragging=false;
b(n);var j=f.data(n.data.target,"draggable");var g=j.proxy;var i=j.options;if(i.revert){if(k()==true){f(n.data.target).css({position:n.data.startPosition,left:n.data.startLeft,top:n.data.startTop})}else{if(g){var m,l;if(g.parent()[0]==document.body){m=n.data.startX-n.data.offsetWidth;l=n.data.startY-n.data.offsetHeight}else{m=n.data.startLeft;l=n.data.startTop}g.animate({left:m,top:l},function(){h()})}else{f(n.data.target).animate({left:n.data.startLeft,top:n.data.startTop},function(){f(n.data.target).css("position",n.data.startPosition)
})}}}else{f(n.data.target).css({position:"absolute",left:n.data.left,top:n.data.top});k()}i.onStopDrag.call(n.data.target,n);f(document).unbind(".draggable");setTimeout(function(){f("body").css("cursor","")},100);function h(){if(g){g.remove()}j.proxy=null}function k(){var o=false;j.droppables.each(function(){var q=f(this);if(q.droppable("options").disabled){return}var p=q.offset();if(n.pageX>p.left&&n.pageX<p.left+q.outerWidth()&&n.pageY>p.top&&n.pageY<p.top+q.outerHeight()){if(i.revert){f(n.data.target).css({position:n.data.startPosition,left:n.data.startLeft,top:n.data.startTop})
}f(this).trigger("_drop",[n.data.target]);h();o=true;this.entered=false;return false}});if(!o&&!i.revert){h()}return o}return false}f.fn.draggable=function(g,h){if(typeof g=="string"){return f.fn.draggable.methods[g](this,h)}return this.each(function(){var j;var l=f.data(this,"draggable");if(l){l.handle.unbind(".draggable");j=f.extend(l.options,g)}else{j=f.extend({},f.fn.draggable.defaults,g||{})}var k=j.handle?(typeof j.handle=="string"?f(j.handle,this):j.handle):f(this);f.data(this,"draggable",{options:j,handle:k});
if(j.disabled){f(this).css("cursor","");return}k.unbind(".draggable").bind("mousemove.draggable",{target:this},function(n){if(f.fn.draggable.isDragging){return}var m=f.data(n.data.target,"draggable").options;if(i(n)){f(this).css("cursor",m.cursor)}else{f(this).css("cursor","")}}).bind("mouseleave.draggable",{target:this},function(m){f(this).css("cursor","")}).bind("mousedown.draggable",{target:this},function(p){if(i(p)==false){return}f(this).css("cursor","");var m=f(p.data.target).position();var q=f(p.data.target).offset();
var o={startPosition:f(p.data.target).css("position"),startLeft:m.left,startTop:m.top,left:m.left,top:m.top,startX:p.pageX,startY:p.pageY,offsetWidth:(p.pageX-q.left),offsetHeight:(p.pageY-q.top),target:p.data.target,parent:f(p.data.target).parent()[0]};f.extend(p.data,o);var n=f.data(p.data.target,"draggable").options;if(n.onBeforeDrag.call(p.data.target,p)==false){return}f(document).bind("mousedown.draggable",p.data,a);f(document).bind("mousemove.draggable",p.data,b);f(document).bind("mouseup.draggable",p.data,d)
});function i(u){var n=f.data(u.data.target,"draggable");var s=n.handle;var q=f(s).offset();var o=f(s).outerWidth();var w=f(s).outerHeight();var x=u.pageY-q.top;var m=q.left+o-u.pageX;var v=q.top+w-u.pageY;var p=u.pageX-q.left;return Math.min(x,m,v,p)>n.options.edge}})};f.fn.draggable.methods={options:function(g){return f.data(g[0],"draggable").options},proxy:function(g){return f.data(g[0],"draggable").proxy},enable:function(g){return g.each(function(){f(this).draggable({disabled:false})})},disable:function(g){return g.each(function(){f(this).draggable({disabled:true})
})}};f.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,onBeforeDrag:function(g){},onStartDrag:function(g){},onDrag:function(g){},onStopDrag:function(g){}};f.fn.draggable.isDragging=false})(jQuery);
(function(a){function b(c){a(c).addClass("droppable");a(c).bind("_dragenter",function(f,d){a.data(c,"droppable").options.onDragEnter.apply(c,[f,d])});a(c).bind("_dragleave",function(f,d){a.data(c,"droppable").options.onDragLeave.apply(c,[f,d])});a(c).bind("_dragover",function(f,d){a.data(c,"droppable").options.onDragOver.apply(c,[f,d])});a(c).bind("_drop",function(f,d){a.data(c,"droppable").options.onDrop.apply(c,[f,d])})}a.fn.droppable=function(c,d){if(typeof c=="string"){return a.fn.droppable.methods[c](this,d)
}c=c||{};return this.each(function(){var e=a.data(this,"droppable");if(e){a.extend(e.options,c)}else{b(this);a.data(this,"droppable",{options:a.extend({},a.fn.droppable.defaults,c)})}})};a.fn.droppable.methods={options:function(c){return a.data(c[0],"droppable").options},enable:function(c){return c.each(function(){a(this).droppable({disabled:false})})},disable:function(c){return c.each(function(){a(this).droppable({disabled:true})})}};a.fn.droppable.defaults={accept:null,disabled:false,onDragEnter:function(d,c){},onDragOver:function(d,c){},onDragLeave:function(d,c){},onDrop:function(d,c){}}
})(jQuery);
(function(a){a.fn.resizable=function(d,h){if(typeof d=="string"){return a.fn.resizable.methods[d](this,h)}function c(m){var l=m.data;var j=a.data(l.target,"resizable").options;if(l.dir.indexOf("e")!=-1){var k=l.startWidth+m.pageX-l.startX;k=Math.min(Math.max(k,j.minWidth),j.maxWidth);l.width=k}if(l.dir.indexOf("s")!=-1){var i=l.startHeight+m.pageY-l.startY;i=Math.min(Math.max(i,j.minHeight),j.maxHeight);l.height=i}if(l.dir.indexOf("w")!=-1){var k=l.startWidth-m.pageX+l.startX;k=Math.min(Math.max(k,j.minWidth),j.maxWidth);
l.width=k;l.left=l.startLeft+l.startWidth-l.width}if(l.dir.indexOf("n")!=-1){var i=l.startHeight-m.pageY+l.startY;i=Math.min(Math.max(i,j.minHeight),j.maxHeight);l.height=i;l.top=l.startTop+l.startHeight-l.height}}function f(k){var j=k.data;var i=a(j.target);i.css({left:j.left,top:j.top});if(i.outerWidth()!=j.width){i._outerWidth(j.width)}if(i.outerHeight()!=j.height){i._outerHeight(j.height)}}function b(i){a.fn.resizable.isResizing=true;a.data(i.data.target,"resizable").options.onStartResize.call(i.data.target,i);
return false}function e(i){c(i);if(a.data(i.data.target,"resizable").options.onResize.call(i.data.target,i)!==false){f(i)}return false}function g(i){a.fn.resizable.isResizing=false;c(i,true);f(i);a.data(i.data.target,"resizable").options.onStopResize.call(i.data.target,i);a(document).unbind(".resizable");a("body").css("cursor","");return false}return this.each(function(){var j=null;var k=a.data(this,"resizable");if(k){a(this).unbind(".resizable");j=a.extend(k.options,d||{})}else{j=a.extend({},a.fn.resizable.defaults,d||{});
a.data(this,"resizable",{options:j})}if(j.disabled===true){return}a(this).bind("mousemove.resizable",{target:this},function(m){if(a.fn.resizable.isResizing){return}var l=i(m);if(l==""){a(m.data.target).css("cursor","")}else{a(m.data.target).css("cursor",l+"-resize")}}).bind("mouseleave.resizable",{target:this},function(l){a(l.data.target).css("cursor","")}).bind("mousedown.resizable",{target:this},function(o){var l=i(o);if(l==""){return}function n(p){var q=parseInt(a(o.data.target).css(p));if(isNaN(q)){return 0
}else{return q}}var m={target:o.data.target,dir:l,startLeft:n("left"),startTop:n("top"),left:n("left"),top:n("top"),startX:o.pageX,startY:o.pageY,startWidth:a(o.data.target).outerWidth(),startHeight:a(o.data.target).outerHeight(),width:a(o.data.target).outerWidth(),height:a(o.data.target).outerHeight(),deltaWidth:a(o.data.target).outerWidth()-a(o.data.target).width(),deltaHeight:a(o.data.target).outerHeight()-a(o.data.target).height()};a(document).bind("mousedown.resizable",m,b);a(document).bind("mousemove.resizable",m,e);
a(document).bind("mouseup.resizable",m,g);a("body").css("cursor",l+"-resize")});function i(r){var s=a(r.data.target);var n="";var o=s.offset();var l=s.outerWidth();var u=s.outerHeight();var m=j.edge;if(r.pageY>o.top&&r.pageY<o.top+m){n+="n"}else{if(r.pageY<o.top+u&&r.pageY>o.top+u-m){n+="s"}}if(r.pageX>o.left&&r.pageX<o.left+m){n+="w"}else{if(r.pageX<o.left+l&&r.pageX>o.left+l-m){n+="e"}}var t=j.handles.split(",");for(var p=0;p<t.length;p++){var q=t[p].replace(/(^\s*)|(\s*$)/g,"");if(q=="all"||q==n){return n
}}return""}})};a.fn.resizable.methods={options:function(b){return a.data(b[0],"resizable").options},enable:function(b){return b.each(function(){a(this).resizable({disabled:false})})},disable:function(b){return b.each(function(){a(this).resizable({disabled:true})})}};a.fn.resizable.defaults={disabled:false,handles:"n, e, s, w, ne, se, sw, nw, all",minWidth:233,minHeight:149,maxWidth:10000,maxHeight:10000,edge:5,onStartResize:function(b){},onResize:function(b){},onStopResize:function(b){}};a.fn.resizable.isResizing=false
})(jQuery);
(function(j){var c,m="sortable",l={drag:true,drop:true,exclude:"",nested:true,vertical:true},a={afterMove:function(q,d,r){},containerPath:"",containerSelector:"ol, ul",distance:0,delay:0,handle:"",itemPath:"",itemSelector:"li",isValidTarget:function(q,d){return true},onCancel:function(q,d,s,r){},onDrag:function(q,d,s,r){q.css(d)},onDragStart:function(q,d,s,r){q.css({height:q.height(),width:q.width()});q.addClass("dragged");j("body").addClass("dragging")},onDrop:function(q,d,s,r){q.removeClass("dragged").removeAttr("style");
j("body").removeClass("dragging")},onMousedown:function(d,r,q){if(q.target.nodeName!="INPUT"&&q.target.nodeName!="SELECT"){q.preventDefault();return true}},placeholder:'<li class="placeholder"/>',pullPlaceholder:true,serialize:function(s,r,q){var d=j.extend({},s.data());if(q){return r}else{if(r[0]){d.children=r;delete d.subContainer}}delete d.sortable;return d},tolerance:0},i={},e=0,f={left:0,top:0,bottom:0,right:0};c={start:"touchstart.sortable mousedown.sortable",drop:"touchend.sortable touchcancel.sortable mouseup.sortable",drag:"touchmove.sortable mousemove.sortable",scroll:"scroll.sortable"};
function n(r,q){var d=Math.max(0,r[0]-q[0],q[0]-r[1]),s=Math.max(0,r[2]-q[1],q[1]-r[3]);return d+s}function p(w,u,q,s){var r=w.length,d=s?"offset":"position";q=q||0;while(r--){var t=w[r].el?w[r].el:j(w[r]),v=t[d]();v.left+=parseInt(t.css("margin-left"),10);v.top+=parseInt(t.css("margin-top"),10);u[r]=[v.left-q,v.left+t.outerWidth()+q,v.top-q,v.top+t.outerHeight()+q]}}function k(r,d){var q=d.offset();return{left:r.left-q.left,top:r.top-q.top}}function o(s,u,r){u=[u.left,u.top];r=r&&[r.left,r.top];
var t,q=s.length,d=[];while(q--){t=s[q];d[q]=[q,n(t,u),r&&n(t,r)]}d=d.sort(function(w,v){return v[1]-w[1]||v[2]-w[2]||v[0]-w[0]});return d}function h(d){this.options=j.extend({},a,d);this.containers=[];if(!this.options.parentContainer){this.scrollProxy=j.proxy(this.scroll,this);this.dragProxy=j.proxy(this.drag,this);this.dropProxy=j.proxy(this.drop,this);this.placeholder=j(this.options.placeholder);if(!d.isValidTarget){this.options.isValidTarget=undefined}}}h.get=function(d){if(!i[d.group]){if(d.group===undefined){d.group=e++
}i[d.group]=new h(d)}return i[d.group]};h.prototype={dragInit:function(q,d){this.$document=j(d.el[0].ownerDocument);if(d.enabled()){this.item=j(q.target).closest(this.options.itemSelector);this.itemContainer=d;if(this.item.is(this.options.exclude)||!this.options.onMousedown(this.item,a.onMousedown,q)){return}this.setPointer(q);this.toggleListeners("on")}else{this.toggleListeners("on",["drop"])}this.setupDelayTimer();this.dragInitDone=true},drag:function(s){if(!this.dragging){if(!this.distanceMet(s)||!this.delayMet){return
}this.options.onDragStart(this.item,this.itemContainer,a.onDragStart,s);this.item.before(this.placeholder);this.dragging=true}this.setPointer(s);this.options.onDrag(this.item,k(this.pointer,this.item.offsetParent()),a.onDrag,s);var d=s.pageX,u=s.pageY,r=this.sameResultBox,q=this.options.tolerance;if(!r||r.top-q>u||r.bottom+q<u||r.left-q>d||r.right+q<d){if(!this.searchValidTarget()){this.placeholder.detach()}}},drop:function(d){this.toggleListeners("off");this.dragInitDone=false;if(this.dragging){if(this.placeholder.closest("html")[0]){this.placeholder.before(this.item).detach()
}else{this.options.onCancel(this.item,this.itemContainer,a.onCancel,d)}this.options.onDrop(this.item,this.getContainer(this.item),a.onDrop,d);this.clearDimensions();this.clearOffsetParent();this.lastAppendedItem=this.sameResultBox=undefined;this.dragging=false}},searchValidTarget:function(v,t){if(!v){v=this.relativePointer||this.pointer;t=this.lastRelativePointer||this.lastPointer}var q=o(this.getContainerDimensions(),v,t),s=q.length;while(s--){var r=q[s][0],w=q[s][1];if(!w||this.options.pullPlaceholder){var d=this.containers[r];
if(!d.disabled){if(!this.$getOffsetParent()){var u=d.getItemOffsetParent();v=k(v,u);t=k(t,u)}if(d.searchValidTarget(v,t)){return true}}}}if(this.sameResultBox){this.sameResultBox=undefined}},movePlaceholder:function(q,r,t,d){var s=this.lastAppendedItem;if(!d&&s&&s[0]===r[0]){return}r[t](this.placeholder);this.lastAppendedItem=r;this.sameResultBox=d;this.options.afterMove(this.placeholder,q,r)},getContainerDimensions:function(){if(!this.containerDimensions){p(this.containers,this.containerDimensions=[],this.options.tolerance,!this.$getOffsetParent())
}return this.containerDimensions},getContainer:function(d){return d.closest(this.options.containerSelector).data(m)},$getOffsetParent:function(){if(this.offsetParent===undefined){var d=this.containers.length-1,q=this.containers[d].getItemOffsetParent();if(!this.options.parentContainer){while(d--){if(q[0]!=this.containers[d].getItemOffsetParent()[0]){q=false;break}}}this.offsetParent=q}return this.offsetParent},setPointer:function(q){var r={left:q.pageX,top:q.pageY};if(this.$getOffsetParent()){var d=k(r,this.$getOffsetParent());
this.lastRelativePointer=this.relativePointer;this.relativePointer=d}this.lastPointer=this.pointer;this.pointer=r},distanceMet:function(d){return(Math.max(Math.abs(this.pointer.left-d.pageX),Math.abs(this.pointer.top-d.pageY))>=this.options.distance)},setupDelayTimer:function(){var d=this;this.delayMet=!this.options.delay;if(!this.delayMet){clearTimeout(this._mouseDelayTimer);this._mouseDelayTimer=setTimeout(function(){d.delayMet=true},this.options.delay)}},scroll:function(d){this.clearDimensions();
this.clearOffsetParent()},toggleListeners:function(r,d){var q=this;d=d||["drag","drop","scroll"];j.each(d,function(s,t){q.$document[r](c[t],q[t+"Proxy"])})},clearOffsetParent:function(){this.offsetParent=undefined},clearDimensions:function(){this.containerDimensions=undefined;var d=this.containers.length;while(d--){this.containers[d].clearDimensions()}},destroy:function(){i[this.options.group]=undefined}};function g(r,q){this.el=r;this.options=j.extend({},l,q);this.group=h.get(this.options);this.rootGroup=this.options.rootGroup||this.group;
this.parentContainer=this.options.parentContainer;this.handle=this.rootGroup.options.handle||this.rootGroup.options.itemSelector;var d=this.rootGroup.options.itemPath,s=d?this.el.find(d):this.el;s.on(c.start,this.handle,j.proxy(this.dragInit,this));if(this.options.drop){this.group.containers.push(this)}}g.prototype={dragInit:function(q){var d=this.rootGroup;if(!d.dragInitDone&&q.which===1&&this.options.drag){d.dragInit(q,this)}},searchValidTarget:function(d,r){var v=o(this.getItemDimensions(),d,r),s=v.length,w=this.rootGroup,y=!w.options.isValidTarget||w.options.isValidTarget(w.item,this);
if(!s&&y){var x=this.rootGroup.options.itemPath,u=x?this.el.find(x):this.el;w.movePlaceholder(this,u,"append");return true}else{while(s--){var t=v[s][0],q=v[s][1];if(!q&&this.hasChildGroup(t)){var z=this.getContainerGroup(t).searchValidTarget(d,r);if(z){return true}}else{if(y){this.movePlaceholder(t,d);return true}}}}},movePlaceholder:function(x,q){var B=j(this.items[x]),w=this.itemDimensions[x],d="after",r=B.outerWidth(),A=B.outerHeight(),v=B.offset(),s={left:v.left,right:v.left+r,top:v.top,bottom:v.top+A};
if(this.options.vertical){var z=(w[2]+w[3])/2,y=q.top<=z;if(y){d="before";s.bottom-=A/2}else{s.top+=A/2}}else{var t=(w[0]+w[1])/2,u=q.left<=t;if(u){d="before";s.right-=r/2}else{s.left+=r/2}}if(this.hasChildGroup(x)){s=f}this.rootGroup.movePlaceholder(this,B,d,s)},getItemDimensions:function(){if(!this.itemDimensions){this.items=this.$getChildren(this.el,"item").filter(":not(.placeholder, .dragged)").get();p(this.items,this.itemDimensions=[],this.options.tolerance)}return this.itemDimensions},getItemOffsetParent:function(){var q,d=this.el;
if(d.css("position")==="relative"||d.css("position")==="absolute"||d.css("position")==="fixed"){q=d}else{q=d.offsetParent()}return q},hasChildGroup:function(d){return this.options.nested&&this.getContainerGroup(d)},getContainerGroup:function(r){var s=j.data(this.items[r],"subContainer");if(s===undefined){var q=this.$getChildren(this.items[r],"container");s=false;if(q[0]){var d=j.extend({},this.options,{parentContainer:this,rootGroup:this.rootGroup,group:e++});s=q[m](d).data(m).group}j.data(this.items[r],"subContainer",s)
}return s},enabled:function(){return !this.disabled&&(!this.parentContainer||this.parentContainer.enabled())},$getChildren:function(s,r){var q=this.rootGroup.options,t=q[r+"Path"],d=q[r+"Selector"];s=j(s);if(t){s=s.find(t)}return s.children(d)},_serialize:function(s,r){var t=this,d=r?"item":"container",q=this.$getChildren(s,d).not(this.options.exclude).map(function(){return t._serialize(j(this),!r)}).get();return this.rootGroup.options.serialize(s,q,r)},clearDimensions:function(){this.itemDimensions=undefined;
if(this.items&&this.items[0]){var d=this.items.length;while(d--){var q=j.data(this.items[d],"subContainer");if(q){q.clearDimensions()}}}}};var b={enable:function(d){this.disabled=false},disable:function(d){this.disabled=true},serialize:function(){return this._serialize(this.el,true)},destroy:function(){this.rootGroup.destroy()}};j.extend(g.prototype,b);j.fn[m]=function(d){var q=Array.prototype.slice.call(arguments,1);return this.map(function(){var s=j(this),r=s.data(m);if(r&&b[d]){return b[d].apply(r,q)||this
}else{if(!r&&(d===undefined||typeof d==="object")){s.data(m,new g(s,d))}}return this})}})(jQuery);
if (window.FR == null) {
    window.FR = {};
}

$.extend(FR, {
    /**
     * 这里添加一些必须要使用中文的键值对，然后通过FR.plainText(key)进行调用
     */
    chinese : {

    },

    i18n: {"Dec-Plugin_Has_Been_Disabled":"插件已被禁用","Dec-Delete_Task":"删除任务","Dec-Error_Task_Condition_Custom_Null":"自定义类名不能为空!","Dec-Edit_Role":"编辑角色","Dec-System_Login_Authentication_Set":"登录验证设置","Dec-Intelligent_Cloud_Data_Upload_Exist_Tip":"{}已经存在，\n继续上传将代替已有日志生成新的报告，是否继续上传？","Dec-Task_Recipient":"接收人","Fine-Dec_Chart_Longitude":"经度","Dec-User_Delete_Count":"共{}项","Dec-Cluster_Synchronization_File_Tip":"为保证节点文件同步，向硬盘手动添加文件后请进行手动同步，以其他方式发生的文件变动均可自动同步","Dec-Dcm_Connection_Analytic_DB":"阿里云AnalyticDB","Dec-Workflow__Name_Not_Null":"流程名称不能为空","Dec-Basic_Horizontal":"横向","Fine-Engine_Copy_Succeed":"复制成功","Dec-Management_Map_Point_Geo":"点","Dec-Login_Change_Phone_Success":"手机修改成功","Dec-Workflow_Current_Node_Staff":"本节点人员","Dec-Task_Mount_Platform":"挂载平台","Dec-System_Login_Binding_Email":"绑定邮箱","BI-Select_Part":"部分选择","Dec-Task_WeChat_Notification":"微信通知","Dec-Cluster_Refresh_Cache_Fail":"刷新缓存失败","BI-Basic_And_Condition":"且条件","Dec-Dcm_Connection_Form_ConnectionName":"数据连接名","Dec-System_WebSocket_Request_Port_Tips":"若存在多个端口，请以,隔开，外部端口优先","Dec-Deployment_Socket_Port_Fail_Tip":"建议修改端口","Dec-Mobile_Server_Name_Watermark":"建议10个汉字以内","Dec-User_Import_Encryption_Method_Change":"更改加密方式将清空原有导入/添加的用户、部门、职务、角色数据，并重置管理员账号，确定更改？","Dec-Users_Sync_Import_Log":"批量操作日志","Dec-Intelligent_Cloud_Data_Upload_Monthly":"每月1日自动上传","Dec-Mobile_Directory_Style_T9_Column_Count":"列数","Dec-Intelligent_Cloud_Data_Upload_Fail":"日志上传失败","Dec-Records_Send_SMS":"短信发送","Dec-Cluster_Parameter_Redirect_Timeout":"超时时间","Dec-Error_Percent_Range_Number":"请输入{}的整数","Fine-Core_LIC_Support_Multi_Env":"多报表运行环境","Dec-Login_Old_Password":"请输入旧密码","Dec-System_Login_Lock_Time":"锁定时间","Dec-Log_Size":"当前日志大小","Dec-Get_Pre_Connection_Check":"获取连接前校验","Dec-System_Login_Last":"上次登录信息","Fine-Engine_Basic_File_Upload":"文件上传","Fine-Engine_X_Offset":"X方向偏移","Fine-Engine_Execute":"执行","Dec-Server_Log_View":"日志查看","Fine-Dec_Chart_Use_Data":"数据","Dec-Register_No_Limit":"无限制","Dec-Module-Report_Manager":"目录管理","Fine-Engine_ConditionB_Is_Greater_Than":"大于","Dec-Memory_Life_Cycle_Clear_Label":"清除超过","Fine-Engine_Every":"每","Dec-Plugin_Shop_Need_Install":"您还没有插件商店的资源,是否下载?","Dec-Workflow_Mon":"一","Dec-Cluster_Close_Tip":"重启后即可退出集群模式。集群模式下configdb、decisiondb、状态服务器、文件服务器为多节点共用状态，为确保正常使用，请在关闭集群后取消共用","Dec-Look_Login_Background_Size_Tip":"· 建议图片尺寸不小于{}","Dec-Memory_Limit_Submit_Count":"提交记录数限制","BI-Basic_Sure":"确定","Fine-Engine_Base_Post_Meridian":"下午","Dec-Basic_Subject":"主题","Dec-Memory_Life_Cycle_Clear":"清除过期会话","Dec-Login_Need_Slider":"请完成滑块验证","Fine-Dec_Chart_Map_DrawRectangleTip":"点击并拖拽画矩形","Dec-Workflow_Print_Copy":"份数","Fine-Engine_Report_ReportServerP_PDF":"PDF","Dec-System_Rserve_Link":"rserve链接","BI-Basic_Year_End":"年末","Dec-System_Login_Email_Authentication_Reset_Password":"邮件验证重置密码","Fine-Engine_Report_HJS_Mail_Role":"角色","Dec-System_Mail_Result":"发送结果","Dec-Error_Schedule_End_Time_Start":"结束时间要大于当前时间且大于开始时间","Dec-Plugin_Error_LockOfDependenceFile":"缺少依赖文件","Dec-Connection_Editor":"请输入","Fine-Engine_Basic_File_Uploaded_File":"该文件已上传","Fine-Engine_Report_Import_Excel_Import":"Excel输入","Dec-Schedule_Records":"运行监控","Dec-Department_Name":"部门名称","Dec-Workflow_Moment":"时刻","Dec-Task_File_Description":"文件描述","Dec-Log_Finish":"结束","Dec-System_Login_Unlock_Set":"锁定账号/IP","Dec-Reg_Detecting_Dongle":"检测加密锁","Dec-Function_List":"功能列表","Dec-Error_Task_Mount_Name_Null":"挂载名称不能为空!","BI-Basic_Formula_Vars":"变量","Dec-Look_No_Upload":"未上传","Dec-Choose_Dependent_Resource":"选择依赖资源","Dec-Management_Map_Edit_Layers":"编辑层级","BI-Multi_Date_Day_Next":"天后","Dec-Memory_Limit_Submit_Max_Count":"填报最大提交记录数","Dec-Security_Detailed_Error_Message_Visible":"请求响应优化","FR-Plugin_Server_Satellite_Layer":"卫星","Fine-Engine_Please_Enter_Step_Greater_Than_Zero":"请输入步长且大于零","Fine-Engine_Report_ECP_Pwd_Long":"密码长度过长","Dec-Failed_Lic_Account_Status_Error":"账户状态不正常","Fine-Plugin-Engine_Filter_Cross_Dataset":"跨数据集过滤","Fine-Engine_Platform_Short_Jul":"七","Fine-Engine_Platform_Short_Jun":"六","Dec-Plugin_Error_NoPluginToUpdate":"没有找到对应的插件","Dec-Workflow_Mail":"邮件","Dec-Basic_Check_All":"全选","Dec-Plugin_Error_NoInstallPackageFound":"未找到安装包","Dec-Error_Password_Not_Null":"密码不能为空","Dec-Mobile_Widget_Default_Height_Error_Message":"高度不小于1","Dec-Entry_Management":"平台目录","Dec-User_Password_Setting":"密码设置","Dec-Backup_Waiting":"正在备份...","FR-Plugin_Server_Circle":"圆形","Fine-Engine_edit":"在线编辑","Dec-Error_Task_Deleted":"该任务已被删除","Dec-Monitor-Menu_Decision_Log":"平台日志","Dec-H5_Integrated_Login_Custom_Clazz":"自定义的登录认证类","Fine-Core_Func_Print_Export":"打印导出","Dec-All_Users":"所有用户","Dec-Platform_User_Count_No_Limit":"不限人数","Fine-Engine_ExecuteFrequency":"执行频率","Dec-Disable_Users":"禁用用户","Dec-Title_Task_Basic_User":"1.通过用户组快捷设置通知对象\n2.通过用户组生成不同的结果文件","Fine-Engine_Base_January":"一月","Dec-Mobile_Directory_Banner_Interval":"轮播间隔","Dec-Package_Group_No_Grouped":"未分组","Dec-Deployment_HSQL_Database":"内置数据库","Dec-System-Edit_Forbid_Keyword":"编辑特殊关键字","Dec-Task_None_Attachments":"无附件生成","Dec-Plugin-Store_Disconnected":"无法连接应用中心","Dec-Email_Sender_Address":"发件人地址","Dec-Package":"业务包","Dec-Error_Multi_Export_TaskName_No_Empty":"任务名称不能为空","Dec-Task_Execution_Frequency":"执行频率","Fine-Engine_print_applet":"Applet打印","Fine-Engine_Report_Restart_Browser_After_Installation":"安装之后请重启浏览器.","Fine-Engine_ConditionB_Does_Not_Contain":"不包含","Fine-Engine_Please_Select_Define_Group_Value":"请选择定义组的值","Dec-Add_Role":"添加角色","Fine-Engine_ConditionB_Is_Greater_Than_Or_Equal_To":"大于或等于","Fine-Engine_Cpt_Backup_Sure":"备份模板可以防止数据丢失，您确定不备份吗？","Dec-Cluster_Connection_Mode":"集群通信协议","Dec-Error_Password_Strength_Not":"密码不符合强度限制","Fine-Dec_Chart_Gantt_PlanTime":"计划时间","Fine-Engine_Please_Select_Report_Path":"请选择报表路径","Fine-Engine_Base_Error_Input_Value":"错误的输入值","Fine-Engine_Basic_File_Should_Select_Excel_File":"需要选择一个Excel文件来源","Dec-Basic_Manage":"管理","Dec-Dcm_Connection_Form_JNDI_Advanced":"高级","Dec-Reg_Registered_Plugins":"已注册插件","Fine-Engine_Excel_To":"至","Dec-Init_Config_DB":"配置数据库","Dec-Cluster_IP_Changed":"IP编辑后请重启以生效","Dec-Template_ViewType_Card":"卡片视图","Dec-Setting_Backup_Each":"每隔","Dec-Local_Machine_Code":"本地机器码","FR-Plugin_Design_Deep":"深度","Dec-Role_Name_Can_Not_Null":"角色名不能为空","Dec-Basic_Time":"时间","Dec-Workflow_Parameter-Formula":"公式","FR-Plugin_Server_Symbol_Rect":"方形","Dec-Workflow_Alert_Mode":"提醒方式","BI-Multi_Date_Quarter_End":"季度末","Fine-Engine_Platform_RP_Process_View":"任务流程查看","Dec-Dcm_Change_Name":"重命名","Dec-Management_Map_Resume_Poly_Line":"点击以继续画线","Dec-Error_Duplicate_Department_Names":"部门名重复","Fine-Engine_Input_A_Name":"请输入一个名字","Dec-Authority_Only_Open_Templates":"开放权限模板","Dec-Backup_Auto_Push_Update":"自动推送更新","Dec-Memory_Total_Size":"内存总量: {}","Dec-Resource_BI_Data_Sheet":"BI数据表","Dec-Task_Transport_Mode":"传输模式","Fine-Dec_Chart_Map_ClickCancel":"点击取消来撤销更改","Dec-Plugin_Intelligent_Cloud_Email_Tip":"分析结果生成后，收件人将会收到邮件通知","Dec-User_Display_Name":"用户名称","Fine-Core_Module_Name":"核心模块","Dec-Platform_Directory_PC":"PC","Dec-Plugin-Store_My_Plugins":"我的插件","Dec-System-Selected_Keyword":"已禁用的特殊关键字","Dec-Task_Platform_Notification":"平台通知","Dec-Mobile_Global_Loading_Background_Default":"默认效果","Dec-Cluster_Open_Success_Tip":"成功开启集群。请关闭服务器，将工程拷贝至多个服务器后依次启动各服务器","Dec-Task_Only_Leave_Recently":"仅保留最近{}次","Dec-Mobile_Directory_Style_T9_Font_Size_Small":"小","Dec-Migration_Backup_Fail":"启用目标数据库失败","Dec-Management_Map_Poly_Line_Error":"图形不能交叉","Dec-Directory_Confirm_Delete_Folder":"目录下的内容将与目录一起删除,是否确认删除?","Fine-Engine_Error":"错误","Dec-Resource_Export":"资源导出","Dec-Basic_Custom_Formula":"自定义公式","Fine-Schedule_Focus_Point_Mobile_Directory":"移动平台—目录","Dec-System-Time_To_Live_Seconds":"最大生存时间","Dec-Report_Cache_Percent":"当内存占用","Dec-Failed-Lic_Multi_Server":"已达可授权数量上限","Dec-Column-Authority":"列权限","Fine-Engine_Report_Thu":"四","Dec-Dcm_Connection_Form_Auto":"自动","Fine-Engine_Excel_Title_Lines":"标题行","Dec-Management_Map_Delete_Layers":"删除层级","Dec-System_SqlInj_Add_Char":"添加字符","Dec-System_Password_Strength_Set":"密码强度限制设置","Dec-Users-Post_Rename_Confirm_Tip":"职位重命名将影响到所有已添加的该职务,确定进行重命名?","Dec-Init_DB_Dialect":"数据库方言","Dec-Look_Platform_Logo":"平台Logo","Dec-Plugin_Intelligent_Cloud_Update_Online_Tip":"更新云端运维，体验最新功能","Fine-Dec_Chart_Map_NoLayers":"没有可编辑的层级","Dec-Intelligent_Cloud_Analytics":"云端运维","Fine-Dec_Chart_Map_ResumePolygon":"点击以继续绘制","BI-Basic_Default":"默认","Fine-Engine_Base_Tue":"二","Fine-Engine_Report_Upload_Progress":"上传进度","Dec-Look_Style_Six":"样式六","Dec-Mobile_Loading_Default":"默认","Fine-Engine_Page_Setup_Landscape":"横向","Dec-Maximum_Number_Idle_Connections":"最大空闲连接数","Dec-Workflow_Creator":"创建人","Dec-Task_File_Count_Folder_Name_Over":"当前设置可能导致任务运行耗时长、结果文件夹名称过长而任务运行失败，确定继续？","Dec-H5_TOP_NAVIGATOR_TITLE_ALIGN":"对齐方式","Dec-Failed_Lic_AppContent_Not_Match":"应用内容不匹配","Dec-Basic_SMS_Signature_Platform":"信息平台","Dec-Templates_Filter_Template":"筛选模板","Dec-Workflow_Leapfrog_Back":"越级回退","Fine-Engine_Deselect_All":"不选","Dec-Dcm_Connection_Test":"测试连接","Dec-Failed_Lic_License_Appname_Error":"应用名不在允许范围内","Dec-Dcm_Connection_Form_Connection-Check":"获取连接前校验","Dec-Cache_Manage":"内存管理","BI-Less_Than":"小于","Fine-Engine_RP_Alert_Setting":"预警设置","Dec-Cluster_File_Cache_Mode_Close_Caching":"关闭缓存","FR-Plugin_Server_Arrow":"箭头","Dec-Task_Copy_Name":"副本","Dec-Dcm_Connection_Form_OriginalCharsetName":"编码","Dec-Dcm_Connection_Management":"数据连接管理","Dec-Management_Map_Point_Name":"点名称","Fine-Engine_Custom_FS_Process":"自定义流程匹配","FR-Plugin_Design_Bevel_Size":"边角","Dec-Look_Style_Four":"样式四","Fine-Engine_Base_Short_Dec":"十二","Fine-Engine_Base_Sche_Friday":"星期五","Dec-Log_Clear_Warning":"清理预警","Dec-Workflow_Leapfrog_Back_Tip":"只有直线流程，才能使用越级回退功能，且每个节点只有一个用户或一个角色","Dec-Workflow_Node_Name":"节点名称","Dec-Report_Process_Authority":"上报权限","Dec-Report_Resources_Root_Directory_Name":"报表资源根目录名","Dec-Plugin_Install_Failed":"安装失败","Dec-Error_Task_Handling_Delete":"无法删除{}!","Fine-Plugin_Engine-Attr":"计算属性","Fine-Engine_Day":"天","BI-Font_Family":"字体","Dec-Basic_Basic_Settings":"基本设置","Dec-Basic_Cross_Logout":"跨域退出","Fine-Engine_Loading_PDF":"正在加载PDF","Dec-Basic_No_Prompt":"不再提醒","BI-Conf_Condition_Or":"或条件","Fine-Engine_Write_Enhanc_Not_Support_Null":"不能为空","Dec-Records_Timing_Report":"定时填报","Fine-Engine_Modify_Schedule_Task_Name":"修改任务名称","Fine-Engine_FS_Role_Instruction":"请配置角色权限，编辑角色请登录数据决策系统","Fine-Engine_Enlarge_Or_Reduce":"缩放","Dec-Dcm_Connection_Download_Driver":"下载对应驱动","Fine-Core_FS_BI":"决策平台","FR-Plugin_Server_Slide_Show_Map":"轮播GIS点地图","Fine-Engine_Closed":"已关闭","Fine-Engine_Report_Store_Pass":"用户名/邮箱/手机号","Dec-Error_Sql_Char_Exit":"该字符已存在","Dec-System_WebSocket_SSL_Password_Tips":"申请时用的秘钥，对应如%TOMCAT_HOME%\\conf\\server.xml中的keystorePass字段的值","Dec-Create_Data_Connection":"新建数据连接","Fine-Engine_Report_User":"用户","Dec-Delete_Success":"删除成功","Dec-Error_Template_Has_Been_Hangout":"该模板已被挂出，请点击确定刷新页面","Dec-Basic_Tips":"提示","Dec-Platform_Log_Performance_Monitoring":"性能监控","Dec-Error_Process_Name_No_Blank":"标签名不能为空","Fine-Engine_Report_Module_Name":"报表模块","Dec-Security_File_Upload_Verify_Tip":"开启后对填报及平台外观配置中上传文件的后缀和大小进行校验","Dec-Task_View_Preset_Expression_Example_Daily":"每个工作日早上9点和晚上6点","Dec-System_Mail_Send_Fail_Tip":"请检查用户名密码，收件人地址以及邮件服务器是否填写正确，并确保网络畅通。","Fine-Engine_Print_Auth_Check_No_Authority":"此用户无权限打印该模板","Dec-H5_TOP_NAVIGATOR_BACKGROUND":"导航背景","Dec-Error_Connection_Name_Tip":"*修改数据连接名会影响相关数据表和仪表板","Dec-Workflow_Execute_Time":"执行时间","Dec-Workflow_May":"五月","Dec-Mark_Readed":"标记为已读","BI-Multi_Date_Month_Begin":"月初","Dec-Module-Server_Setting":"系统管理","Dec-Workflow_Timing_Issue":"定时下发","Dec-Intelligent_Cloud_Confidentiality_Agreement":"保密协议","Dec-H5_Insert_CSS":"引入css","Dec-H5_Integrated_Login":"H5集成登录","Dec-Cache_Higher_Than":"内存高于","Dec-Data_Set_Tree_Build_Way":"构建方式","Dec-Workflow_Everyday":"每日","Dec-Department_Id":"部门ID","Dec-Dcm_Connection_Support_Inner":"内置支持","Fine-Engine_Base_Short_May":"五","Fine-Dec_Chart_Latitude":"纬度","Dec-Basic_Date":"日期","Dec-Backup_Lookup":"浏览","Fine-Engine_Base_Short_Mar":"三","Dec-Security_Intercept_Count":"拦截次数","Dec-Backup_Rollback_Waiting":"正在还原...","FR-Plugin_Design_UnFixed":"不固定","Dec-Workflow_To_Report":"待上报","Dec-Login_Verify_Password_Tip":"系统开启了{}，请联系管理员绑定{}，然后进行身份验证并修改密码","BI-Basic_Date_Time_Error_Text":"日期格式示例:2015-3-11 00:00:00","Dec-Error_Template_Under_Edit":"模板正在编辑,无法进行操作","Dec-Plugin-Store_Private_Message":"私人消息","Dec-Task_Day":"日","Dec-Basic_Remark":"备注","Dec-Init_Database_Setting":"数据库设置","Dec-Basic_Link":"链接","BI-Multi_Date_YMD":"年月日","Dec-Fail_Report":"失败预警","Dec-Cluster_Synchronization_File":"同步文件","Fine-Engine_Create_One_Group_For_Remaining_Values":"将所有剩余值创建为一个新组","Fine-Engine_Base_Thu":"四","Dec-Log_User_Visit_Count_Daily":"日活跃用户数","Dec-System_Login_Timeout_Time":"登录超时时间","Dec-Workflow_Overtime":"超时","Dec-Login_Other_Logged_Tip":"您的账号已在其他平台登录，如非本人操作，为确保账号安全建议立即","Dec-Custom_Password_Encryption":"自定义密码加密","Dec-Mobile_Global_Loading_Background":"全局加载动画背景","Dec-Error_Task_Restart_Time_Null":"重启次数不能为空!","Dec-Memory_Low":"服务器内存太大","Dec-Plugin_Msg-Delete_YES_NO":"确认删除此插件？","Dec-Last_Login_Info_Set":"上次登录信息提示设置","Fine-Engine_Excel_Data_Lines":"数据行","BI-Basic_February":"二月","Fine-Engine_Click_To_Get_Registration_Code":"点击获取注册码","BI-Custom_Color":"自定义颜色","Dec-Authority_Only_Open_Departments":"开放权限部门","Dec-Intelligent_Cloud_Incentive_Buy_Market_Plugin":"·  用于购买帆软市场中的插件","Dec-Users_Source_Sync":"同步","Dec-Intelligent_Cloud_First":"首期重磅推出","Dec-Cluster_Save_File_Server_Fail":"未能成功连接文件服务器，请确认相关配置准确后再次保存","Fine-Engine_Invalid_Cell":"无效的单元格","Dec-System_Login_Timeout_Setting":"登录超时设置","Dec-Workflow_All_Tasks":"所有任务","Dec-Error_Integer_Range":"请输入{R1}-{R2}之间的整数","Fine-Engine_write_html":"填报HTML导出","Dec-Department_Post":"部门下职务","Dec-Backup_Update_Jar_Now":"正在进行jar包更新（{}）","Dec-User_Already_Reach_Upper_Limit":"已达到可用人数上限","Dec-Error_Not_Input_Account":"请输入公有云账号","FR-Plugin_Design_KPI_Name":"指标名","Dec-Records_Mount_Dir":"平台挂载","BI-Multi_Date_Year":"年","Dec-Workflow__RP_To_Report":"待上报","Fine-Engine_Using_Single_Template_Set":"使用单模板偏移","Fine-Engine_Search_Task_Name":"搜索任务","Dec-System_Login_Lock_Target":"锁定对象","Dec-Users_Sync_Update_Strategy_Overwrite":"清空现有用户信息及权限等设置,重新写入","Dec-Hangout_Template":"挂出模板","Fine-Engine_Report_HJS_Mail_Department":"部门","Dec-Schedule_Records_Detail":"任务执行明细","BI-Number_Index":"序号","Fine-Engine_Error_Solution":"解决方案","Dec-Backup_Auto_Memory":"各模块自动备份可占磁盘","Dec-Plugin_Intelligent_Cloud_Plugin_Installing":"正在进行云端运维更新…","Dec-Plugin_Error_WrongPluginMarker":"指定了错误的插件ID","Dec-Reg_Fail_Out_Date":"证书已过期","Dec-Intelligent_Cloud_Intranet_Technical_Support":"提供给帆软技术支持","Dec-Error_Captcha_Null":"验证码不能为空","Dec-Plugin-Store_Export_Print":"导出打印","Dec-Dcm_Socket_Unable_Connect":"Socket未连接，可能存在多人同时编辑造成冲突，相关端口可能未开放","Fine-Engine_Base_Sche_Saturday":"星期六","BI-Multi_Date_Week_Prev":"周前","Fine-Engine_Report_HJS_Range":"范围","Fine-Engine_Utils_Import_Excel_Data_Customized":"自定义导入Excel行列","Dec-System_Sql_Injection_Prevention":"SQL防注入","Dec-Task_Create_Time":"创建时间","BI-Basic_Year_Fen":"年份","Dec-Add_BITemplate":"BI模板","Dec-Message_Model":"模板消息","Dec-System_Modify_Password_Authentication":"修改密码验证方式","Dec-Failed-License_Not_Match":"lic文件信息与本地不匹配","Dec-Plugin-Store_Installed":"已安装","Dec-Basic_Pause":"暂停","Dec-Dcm_Connection_Form_Database_Advanced_Setting":"高级设置","Dec-Add_BI":"添加BI","Dec-Connection_Active_Connections":"活动连接数","Dec-Rserve_Link":"Rserve链接","Dec-Error_Upload_File_Size_Error":"请选择不超过{}MB的文件","Fine-Engine_ConditionB_Ends_With":"结尾是","Dec-Basic_Entry":"目录","Fine-Engine_Base_Sche_Monday":"星期一","FR-Plugin_Server_Area_Name":"区域名","Dec-Workflow_Pass":"通过","Fine-Engine_Using_Global_Offset":"使用全局偏移设置","Dec-Task_DingTalk_Notification":"钉钉通知","Dec-Basic_Import":"导入","Dec-Management_Map_Image":"自定义图片","Dec-Monitor-Menu_Intelligent_Detection":"智能检测","Dec-Basic_Custom":"自定义","Dec-Task_Update_Success":"任务更新成功","Dec-Cache_Name":"名称","Dec-Error_Not_Input_Password":"请输入公有云密码","Dec-Data_Set_Preview_Part_Data":"预览仅显示部分数据","FR-Plugin_Server_Index_Value":"指标值","Dec-Task_Without_Cleaning_Up":"不清理","Dec-Memory_Life_Cycle_Session":"分钟无操作的会话","Fine-Engine_Offline_Html_Info":"很抱歉的告知您，目前IE9及I9+浏览器暂时不支持离线填报功能，请使用其他浏览器打开！","Dec-Authority_Entry":"目录权限","Dec-Basic_Recharge":"充值","Fine-Engine_Excel_Requied_Remark":"必填，如果无标题则都填0","Fine-Engine_Param_Template_Cannot_Empty":"名称不能为空","Fine-Engine_Report_Bottom":"下","Dec-Basic_Days":"天","Dec-Register_Success":"注册成功","Dec-Resource_Migration_Result_Failed_List":"导入失败资源列表","Dec-Server_Address":"服务器地址","Dec-Log_Logout":"退出","Dec-Basic_Cancel":"取消","Fine-Engine_Report_Cache_Validate_Time":"报表缓存有效时间","Dec-Register_Gen_Certificate_Fail":"服务凭证生成失败，可联系技术支持获取帮助","Dec-Export_Resource_Preparing":"导出资源准备中...","Dec-Basic_Delete_Fail":"删除失败","Fine-Dec_Chart_Map_ResumePolyline":"点击以继续画线","Dec-Authority_Internal":"内部权限","Dec-System_Sql_Keyword_UnSelected_Empty_Tip":"当前无未选择的特殊关键字","Dec-Dcm_Connection_Np_Registered":"该类型暂仅支持在设计器中使用旧版本数据连接查看","Fine-Plugin_Engine_Experimental_Feature":"实验性功能","Dec-Task_Push_Terminal":"推送终端","Dec-Task_Output_Mode":"输出方式","Dec-Operation_Type":"操作","Dec-Cache_Used_Percent":"内存利用率","Dec-Cluster_File_Cache_Mode_Active_Caching_Tip":"对所有资源文件进行缓存","Dec-Memory_Delete_Session_Tip":"确定删除所选{}个会话","Dec-Security_Advanced_Setup":"高级设置","Dec-Copy_Password":"复制密码","Dec-Authority_Only_Open_Directories":"开放权限目录","Dec-Server_Config_Check":"服务器配置检测","Fine-Engine_Report_Task_List_Chosen":"已选任务列表","Dec-Login_Change_Password_Tip":"系统开启了{}，请修改密码","Dec-Plugin_Delete_Success":"插件删除成功","Dec-Intelligent_Cloud_Analysis_Report":"生成分析报告","Fine-Engine_Report_Sun":"日","Dec-Basic_BCC":"密送","Dec-Module_Engine":"引擎版本","Dec-H5_TOP_NAVIGATOR_TITLE_FONT_SIZE":"标题字号","Dec-Workflow_Sure_to_delete_process":"确认删除","Fine-Engine_Platform_RP_Content":"内容","Dec-Task_Mount_Name":"挂载名称","Dec-Security_X_Frame":"点击劫持攻击防护","Fine-Engine_PageSetup_Orientation":"方向","Dec-Choose_Path":"选择路径","Dec-Users_Synchronize_Users_Manage":"同步用户管理","DEC-Login_Not_Logged_Role":"未登录角色","Dec-Backup_Update_Time":"更新日期","Dec-Task_Simple_Repeat_Desc":"每隔{}执行一次","Dec-Memory_Warning_Info":"你好，{}系统内存持续{}分钟内存高于{}，可能存在宕机风险，请及时关注。","Dec-Migration_To_New_DB":"迁移数据至要启用的数据库","Dec-System_Print_Local_Settings_Window":"打印时需要打印设置窗口","Dec-Cluster_Test_And_Save":"测试连接并保存","Dec-Init_DB_URL":"数据库连接URL","Dec-Task_Detail":"明细频率设置","Dec-Basic_Confirm_Delete":"确认删除","Fine-Engine_Platform_Schedule_New_Task":"添加任务","BI-Basic_Parameter_Type_Int":"整型","Dec-Look_Directory_Icons":"目录图标","Dec-Authority_Source_Write":"填报权限","Fine-Engine_Platform_RP_Page_Writeass_After_All_Operations":"该节点所有操作人员完成后流转","Fine-Engine_Report_Privilege_Allocate":"权限分配","Fine-Core_Cartesian_Product_Message":"为防止填报笛卡尔积数据提交失败","Dec-Resource_Type":"资源类型","Dec-System_Password_Update_Cycle":"更新周期","BI-Basic_Month":"月","Dec-Plugin-Store_Jar_Damaged":"Jar包损坏","Dec-Error_Character_Limit_Tip":"{}只允许包含字母、汉字、数字、下划线、点和括号","Dec-Log_Settings":"日志设置","Dec-Use_Multi_Thread_When_Calculating":"计算时多线程","Dec-Intelligent_Cloud_Download_Data":"下载日志","Dec-Visit_Time":"访问时间","Dec-Platform_Jar":"jar包","Dec-Department-List":"部门列表","Dec-Chcek_Problem":"问题","Dec-Deployment_Database_Connection":"数据库连接","Dec-User_Toggle_Limit_Switcher_Close_Tip":"关闭后将取消对{}的限制，确认关闭?","Dec-Authority_UserNames":"用户","Dec-Management_Map_Draw_Poly_Line":"画多边形","Fine-Engine_Report_Print_To_Fit_Paper_Size":"根据纸张大小缩放打印","Dec-Digital_Signature_Verification_Key":"数字签名密钥","Dec-Init_Import_Data":"导入数据","Dec-Authority_Setting_Entry_Edit_License_Not_Support_Tip":"决策平台功能未注册,如需使用请联系销售","Dec-Security_Intercept_List":"当前拦截名单","Dec-BI_Template_Manage":"模板管理","Fine-Engine_Error_Page":"出错页面","Dec-Authority_Lack_Authority_Tip":"您没有该{}节点的权限,如有疑问请联系管理员","FR-Engine_Not_limited_IP":"不限并发","Fine-Plugin-Engine_Incompatible":"不符合转换要求","Dec-Cluster_Parameter_Redis_Key_Prefix":"key前缀","Dec-System_Send_Test_Email":"发送测试邮件","BI-Next_Page":"下一页","Dec-File_Analysis_Finish":"解析成功,正在跳转...","Dec-Dcm_Connection_Support_Plugin":"插件支持","Fine-Engine_Report_Width":"宽","Fine-Engine_Cancel_Combination":"取消组合","FR-Plugin_Design_Theme_Color":"主题色","Fine-Engine_Delete":"删除","Dec-Server_Address_Watermark":"例：https://localhost:8080","BI-Numerical_Interval_Input_Data":"请输入数值","Dec-Cache_Now":"实时内存","Dec-Plugin-Store_Day":"天","BI-Basic_Please_Select":"请选择","Dec-Basic_Simple_Hours":"时","Dec-Basic_Temp_Auth":"模板认证","Dec-Basic_Date_Interval":"日期区间","Dec-Workflow_NoLimit":"无限期","Dec-Basic_Complete":"完成","Dec-Monitor-Menu_System_Message":"信息通知","Dec-Login_Change_Password_Success":"密码修改成功","Dec-Basic_Not_Save":"不保存","Dec-Log_Accessed_Resources":"被访问资源","Dec-Init_Login_Direct":"直接登录","Dec-System_WebSocket_Request_Path":"WebSocket请求路径","Dec-System_Normal_Param":"常规参数","Dec-Please_Select_Template":"请选择模板","Dec-Security_CSP_Tip":"开启后请求头部增加Content-Security-Policy:object-src 'self'设置","Fine-Schedule_By_PageSize_False":"横向不分页","Dec-Cluster_File_Set_Calibration_Node_Waiting":"正在切换基准节点，请稍后…","Dec-Plugin-Store_Update-ALL":"全部更新","Dec-Basic_Add":"添加","Dec-User_Process_Success":"处理完成","Dec-Error_Task_Expression_Null":"请输入表达式","Fine-Engine_Report_Role_List":"角色列表","Dec-Users_Source_Manual_User":"导入/添加的用户","Dec-Memory_Detection_Server_How_To_Operate":"如何操作？","Dec-All_Departments":"所有部门","Dec-Task_Count_Unit":"次","Dec-Retrieve_Location":"检索位置","Fine-Engine_Platform_RP_Last_Node":"上一节点：","Dec-Password_Column_Can_Not_Null":"密码列不能为空","BI-Basic_Seconds":"秒","Fine-Dec_Focus_Point_Backup_Restore":"手动还原","Dec-Platform_Log_Performance_Monitoring_Detail":"性能监控详细信息","Fine-Engine_Report_Write_Cell_Not_Found":"错误代码11201001：无法赋值，模版未编辑单元格{}","Fine-Engine_form":"决策报表预览","Fine-Dec_Chart_Map_DrawPolyline":"画多边形","Dec-Log_Clean":"日志清理","Dec-Plugin_Read_Plugin_List_Error":"插件列表读取失败","Dec-Basic_Hours":"小时","Dec-Log_Clear":"清理","BI-Right_Page":"向右翻页","Dec-Users_Add_Clean_Sync_DataSet_Users":"清除同步用户并添加新用户中...","Dec-Task_SMS_Template_Parameter_Formula":"参数类型选择公式，可以通过“=$taskname”、“=$time”获取任务名及执行时间","Dec-Mobile_Loading_None":"不显示","Fine-Dec_Chart_Map_ClickToRemove":"点击一个层级来删除","Dec-Dcm_Connection_Is_Existence":"数据连接名已存在","Dec-Create_SQL_Data_Set":"添加SQL数据集","Dec-Suggestion_FS_Report":"模板可能被删除或者移动位置，建议删除FS目录管理里对应模板或者修改其位置","BI-Numerical_Interval_Signal_Value":"前后值相等，请将操作符改为“≤”","Fine-Engine_write_plus":"新填报","Fine-Engine_Base_April":"四月","Dec-Support_Or_Not":"是否支持","Dec-Users_Import_Other_Source_Delete_Tip":"暂不支持多个数据来源，以下来自其他来源的数据已被删除","Dec-System_Print_Local":"本地软件打印","Dec-Users_Import_Failed_Help_Link":"点击获得更多帮助","Fine-Engine_Custom_FS_Roles":"自定义角色","Fine-Engine_Basic_Email_Format":"格式","Fine-Engine_Report_JavaScript_Commit_To_Database":"提交入库","Fine-Dec_Chart_Use_MSBold":"微软雅黑","Dec-Workflow_Wed":"三","Dec-Login_ReLogin_Tip":"请重新登录","Dec-License_Generate_Certificate":"生成注册凭证","Dec-Reg_Upload_Lic":"上传lic","Dec-Intelligent_Cloud_High_Growth":"高成长","FR-Plugin_Server_Value":"值","Dec-Dcm_Connection_JDBC_Other":"其他JDBC","Dec-Data_Connection_Manage":"数据连接管理","Dec-Login_Fail":"登录失败","Dec-Data_Set_Empty_Data_List":"无可用数据集，请点击添加","Fine-Engine_Condition_Not_Begin_With":"开头不是","Dec-Only_Name_Password":"仅认证用户密码","Dec-Mobile_Directory_Icon_Flat":"扁平","Dec-Workflow_SetStartTime":"设定开始时间","Fine-Engine_Condition_Not_End_With":"结尾不是","Fine-Engine_Platform_FS-Schedule_Task_Name":"任务名","Dec-Cluster_Manage":"集群管理","Dec-System_Password_Strength_Not_Support_Tip":"对于无法在本系统修改密码的用户，密码策略不会生效","Dec-Basic_Save_Fail":"保存失败！","Fine-Engine_Report_HJS_Server_Printer":"服务器端的打印机","Dec-Error_Login_Admin_Add_Account":"配置管理员密码出错","Dec-Basic_Nothing":"无","Dec-Plugin-Store_Form_Components":"表单组件","Fine-Core_LIC_Support_Dynamic_Chart":"H5动态图表","Dec-Reg_Local_Version":"本地应用版本","Dec-Login_Bind_Phone":"已绑定手机号","Dec-Memory_Detection_Server_Disk_Tip":"系统所在磁盘剩余空间为{}M，建议不小于5G","Dec-Backup_Is_Transferred_Tip":"当前平台数据库为内置数据库，不支持备份还原功能","Fine-Engine_Need_Registration_Code_Or_Exceed_Limited_Number":"你需要一个注册码或者该报表服务器的使用人数超过了注册限制的数量。","BI-Basic_Year":"年","Fine-Engine_Basic_Email":"邮件","Dec-Log_View_Count":"查看次数","Dec-Connection_Schema":"模式","Dec-Basic_Host":"主机","Dec-H5_Single_Login_Fail_Solution":"抱歉您无法查看该页面，如需访问请联系管理员","Dec-Memory_Limit_Sql_Run_Time":"sql执行时长限制","Dec-Intelligent_Cloud_Basic_Upload_Times":"基于数据累计上传次数核算奖励","Fine-Engine_Custom_Sort_Rule":"自定义排序规则...","Fine-Engine_Web_Close":"关闭","Dec-Plugin_Intelligent_Cloud_Email_Duplicated":"邮箱不可重复","Dec-Log_Auto_Clean":"自动清理","Dec-Dcm_Pool_Connection_Management":"连接池状态","Dec-Records_Custom_Class":"自定义类","Dec-Login_Account_Not_Available":"当前账号已不可用，如有疑问请联系管理员","Dec-Data-List":"数据列表","Dec-Basic_Export":"导出","Dec-Post_Id":"职务ID","Dec-Plugin_Error_PreTaskRunFailed":"存在失败的前置任务","Dec-Re_Registration":"重新注册","Dec-Plugin-Store_Install_From_Local":"从本地安装","Dec-Sync_ID_Conflict_With_Platform_Detail":"原有ID：{} ；新ID：{}","Dec-Maximum_Number_Active_Connections":"最大活动连接数","Dec-Platform_Directories":"平台目录","Dec-Mobile_Directory_Style_T9_Font_Bold":"字体加粗","Dec-Data_Set_Server_Name_Empty":"数据集名称不可为空","Fine-Engine_Base_Mon":"一","Dec-Basic_Homepage":"首页","Dec-No_Matching_Item":"无匹配项","Dec-Add_Homepage":"添加首页","Dec-Backup_Setting":"备份设置","Fine-Engine_Add_Role":"添加角色","Fine-Dec_Chart_Map_FinishPolyline":"点击最后一个点完成绘制形状","Dec-Plugin-Install_Dependence_Failed":"依赖插件安装失败","Dec-Directory_Parameter_Config":"参数设置","Dec-Resource_Server_Path":"资源服务器地址","Dec-Users_Synchronize_Users":"同步用户","Dec-Log_Auto_Clean_Tip_Data":"的数据","Dec-Workflow_Parameter-String":"字符串","Dec-Look_Configure_Builtin":"预定义","Fine-Authority_Template_Privilege":"模板权限","Dec-Look_Platform_Text_Color":"文字颜色","Fine-Engine_Report_New_Offset":"新建偏移","Dec-Cluster_File_Server_Upload_Success":"上传成功","Dec-Data_Set_Tree_Parent_Field":"父标记字段","Dec-Plugin_No_Plugin_Update":"没有找到对应的插件，是否安装？","FR-Plugin_Design_Display":"播放维度","Dec-Cluster_File_Cache_Mode":"缓存模式","Fine-Engine_FS_Msg_Send_Failed":"消息发送失败","Dec-Workflow_Reach_Node":"到达该节点","BI-Please_Input_Natural_Number":"请输入非负整数","Dec-Basic_Exported":"导出","Dec-System_Password_Update_Remind":"提醒更新","Dec-Plugin_Error_HasNewerPluginWhenUpdate":"已经安装了更高的版本","Dec-Intelligent_Cloud_Operations":"云端运维","Fine-Engine_Platform_RP_Page_Writerocess_Created_By_Me":"我创建的流程","Fine-Dec_Chart_Stock_Volume":"成交量","Dec-Failed_Lic_Json_Parser_Error":"数据格式不正确","Dec-Plugin-Store_User_Password_Error":"用户名或密码错误","Fine-Engine_Report_Receiving_Page":"正在接收页码","Dec-Connection_Select":"请选择","Dec-Workflow_Face_View":"查看","Dec-Cluster_Cache_System":"缓存系统","BI-Basic_Or_Condition":"或条件","BI-Basic_Parameter_Value":"值","Dec-Management_Map_Release_to_Finish_Drawing":"松开鼠标完成绘制","BI-No_More_Data":"无更多数据","BI-Conf_Formula_Time_Function":"日期函数","Fine-Engine_Report":"报表","Dec-Connection_Test_Success":"连接成功","Dec-Physical_Resource":"物理资源","Dec-Intelligent_Cloud_Go_View":"前往查看","Fine-Engine_Report_Quiet_Print_Confirm_Tip":"保存客户端习惯后，打印设置窗口不再弹出，以后打印时，按本次保存的打印设置进行打印。确定保存吗？","Fine-Engine_Basic_File_Uping_File":"正在上传文件","Fine-Dec_Chart_Invalid_WMS":"WMS invalid","Fine-Engine_Condition_In":"包含于","Dec-Directory_Edit":"目录编辑","Dec-Dcm_Connection_Option_Cannot_Find":"找不到该连接的配置信息","FIne-Engine_Err_The_Value_Cannot_Be_Negative":"不能为负数","Dec-Authority_Source_Manage":"管理权限","Dec-Intelligence_User":"用户","Dec-System_Server":"服务器","Dec-Init_Select_Hsql":"","Dec-Mobile_Refresh_Setting":"刷新设置","Dec-System_Configured_Proxy_Server":"已配置代理服务器","Dec-Users_Source_Manual":"手动","Dec-Templates_Not_Application_Hangout":"未申请挂出","Fine-Engine_Fit_Paper_Size":"适应页面大小","Dec-System_UnSelected_Keyword":"未选择的关键字","BI-Basic_December":"十二月","Dec-Cluster_File_Server_Share_Mode_Auto_Restart_Tip":"切换操作在重启后生效,请立即重启各节点工程","Fine-Engine_Bottom":"下","Dec-Workflow_Remind_SMS_Tip":"开启短信服务后可使用短信通知","Fine-Engine_Base_May":"五月","Fine-Engine_Platform_RP_Send_Date":"发送时间","Fine-Engine_Basic_Cancel":"取消","Fine-Dec_Focus_Point_Platform_Log_Export_Log":"平台日志导出成Log","Dec-Init_DB_Name":"数据库名称","Dec-Log_Sync":"同步","Fine-Dec_Default_Solution":"如需访问请联系管理员","BI-Basic_Behind":"后","Dec-Task_Test_Upload_Success":"测试上传成功","Dec-Login_Authentication_Password_Strength_Multi_Tip":"当前密码不符合密码强度要求，请通过手机或邮箱进行身份验证，并修改密码","Fine-Engine_Platform_ProcessName":"流程名称","Dec-Memory_Release_Open_Tips":"开启后，系统检测到服务器压力过大时，通过清除占用内存过大的报表会话预防宕机","Dec-Data_Set_Tree_Original_Field":"原始标记字段","Dec-Multi_Import_Reimport":"重新导入","Fine-Engine_Basic_Time":"时间","Dec-Intelligent_Cloud_Desc":"系统稳定可用有时比功能丰富强大更重要，特别是对于2B产品，所以智能运维一直以来就是我们产品的重心。相比于本地运维，云端运维有其优势，比如大计算、零成本、低门槛、高成长等等。因此我们希望通过云端运维和本地运维两种方式丰富运维功能，发挥各自优势，为系统的稳定可用保驾护航。","Dec-Look_Login_Custom_Page":"设置登录网页","Fine-Engine_Platform_RP_Task_Operations":"任务操作","Dec-Error_Directory_Name_No_Blank":"目录名不能为空","Dec-Report_Manage_Check":"报表管理检测","Dec-Mobile_QR_Code_Config":"二维码配置","Dec-Confirm_Delete_Department":"确认删除该部门?","Fine-Engine_Report_Designer_Save_As_Params_Template":"保存为常用参数组合","BI-Basic_Parameter_Insert":"插入","Dec-Workflow_Custom":"自定义","Fine-Engine_Excel_Will_Be_Imported":"行数据执行导入","Dec-Plugin_Intelligent_Cloud_Plugin_Install_Fail":"云端运维更新失败，请重新更新","Dec-Reg_Surplus":"剩余","Dec-Error_Task_Running":"该任务正在执行","Fine-Dec_Chart_Unit_Thousand":"千","Dec-Users_Username_Conflict_Field":"用户重复验证字段","Dec-System_Week_Begins_Tips":"设置周开始于星期一时，系统中周的范围为星期一到星期日；设置周开始于星期日时，系统中周的范围为星期日到星期六。保存并重启系统后，设置项生效。","Dec-Backup_Rollback_Success":"还原成功，请重启服务器以生效","Fine-Dec_Chart_Loading_Layers":"正在加载","Dec-Task_Dispatching_Cycle":"调度周期","Dec-Memory_Limit_Single_Template_Max_Cell":"单模板最大单元格个数","Dec-Workflow_TaskName_CalculateOneTime":"仅在任务发起时计算一次","Dec-System_FR_Register_Now":"立即注册","Dec-Plugin_Error_BeyondSystem":"插件版本过高，需升级系统","Fine-Engine_FS_Report_Type":"类型","Dec-System_Test_Mail_Send_Success":"测试邮件发送成功","Dec-Basic_Forget_Password_Authentication_Email":"忘记密码-邮箱重置密码","Fine-Engine_Custom_FS_Users":"自定义用户","Dec-Plugin_Error_InnerError":"内部未知错误","Dec-Login_User_Field":"登录用户所在字段","Dec-Basic_View_Help":"查看帮助","Dec-Custom_User":"自定义用户","Dec-Error_Task_To_Run_Once":"执行任务出错","Dec-Backup_Not_Support_Update":"判断出当前为设计器启动的平台，请使用设计器的更新升级功能","Dec-Dcm_Millisecond":"毫秒","Fine-Engine_FS_Ecp_Old_Password":"旧密码","Dec-Task_ReRead":"重新读取","Dec-Workflow_Search":"搜索","Dec-Gzip_Condense":"Gzip压缩","Dec-Intelligent_Cloud_Low_Threshold_Tip":"无需维护运维工具本身（运维工具部署在云端，由帆软的专业人员维护）","Dec-Module-User_Manager":"用户管理","Fine-Engine_Report_Start_At":"起始于：","Dec-Users_Only_Show_Part_Other_Source_Data":"仅显示部分数据","Dec-Plugin_Update_Failed":"插件更新失败","FR-Plugin_Design_Symbol":"点形状","Dec-Log_Total_Operation_Times":"总操作次数","Dec-Plugin_Cloud_Analysis_Feature_SolidSendByJsonp":"通过浏览器获取服务器运行数据","Dec-Init_Reload":"重试","Fine-Plugin-Engine_Performance_func":"性能函数","Fine-Engine_Report_PageSetup_Page_Setup":"页面设置","Dec-Basic_Message":"消息","Dec-Role":"角色","Fine-Engine_Base_February":"二月","Dec-User_Name_Can_Not_Contain":"用户名不能包含( )","Fine-Engine_Platform_RP_Report_Deadline":"填报时限","Dec-Intelligent_Cloud_No_Support_In_War_Or_Cluster":"War或集成部署不支持此安装方式","Fine-Dec_Chart_Stock_High":"盘高","Dec-Basic_Fail":"失败","Dec-Dcm_Connection_Form_Database_Addr":"数据库地址","Fine-Engine_Report_SQLWizard_Would_You_Like_To_Continue":"是否想继续","Dec-User_Setting_Add_Remind":"添加用户后邮件通知","Dec-Mobile_Device_Mac":"mac地址","Dec-System_Not_Support_Type":"不支持的类型：","Dec-Task_Custom_Classes":"自定义类名","Fine-Engine_Report_Sche_Minute":"分","Dec-Backup_Visit_Count":"统计访问","Dec-Refresh_Fail_Report":"数据更新失败预警","Dec-Confirm_Delete_Users":"确认删除所选{}个用户?","Dec-Plugin_Intelligent_Cloud_Email_Max_Count":"不可超过{}个邮箱","Dec-Mobile_Directory_Banner_Link_Watermark":"相对路径或http/https开头的绝对路径","Fine-Engine_Performance_Monitor_Row_Over_Warning_Info":"很抱歉,数据量过大触发保护机制,请减少数据量或联系管理员","BI-Basic_Input_Can_Not_Null":"输入框不能为空","Dec-Log_User_Visit_Count_Daily_Month":"当月活跃用户数","Dec-Dcm_Connection_Form_SQL_Validation_Query":"SQL验证查询","Dec-Basic_Reload":"重试","Dec-Connection_Options_Tip":"多个值请用“;”隔开","Dec-Basic_Online_Installation":"在线安装","Dec-System_External_Database_Setting":"外接数据库配置","Dec-Error_Schedule_Start_Time_Now":"开始时间要大于当前时间","Dec-System_Login_Authentication_Tip":"提示：请确保其他成员已绑定{}，否则他们将无法独自完成登录验证","Fine-Engine_Offline":"离线","Dec-System_Editor_Tip":"请输入","Dec-Plugin-Store_Net_Connect_Failed":"网络连接失败","Dec-Basic_App_Name":"应用","Dec-Error_Task_Detail_Minutes":"请填写正确的分钟","Dec-Task_View_Preset_Expression_Example_Quarter":"2018年第4季度每天19点50分","BI-Basic_Formula_Data_Set_Vars":"数据集参数","BI-Basic_Altogether":"共","Dec-Failed_Lic_Do_Not_Need_Deactivate":"该机器未授权无需解除绑定","Dec-Authority_Belong_To_Role_Tip":"您属于该角色，编辑其权限可能对您的权限产生影响，请谨慎操作","Dec-Basic_State":"状态","Dec-Cluster_File_Server_Close_Tip":"当前处于集群状态，关闭文件服务器后集群同步方式切换为节点间⾃自动同步。关闭操作在重启后生效。确定关闭文件服务器？","Fine-Engine_Verify_Verify_Success":"校验成功","BI-Conf_Formula_Text_Function":"文本函数","Dec-Half_Year":"6月","Dec-Auth_Search_Entity":"搜索{}权限","Fine-Dec_Chart_Save_Success":"保存成功","Fine-Engine_Report_Specified_Pages":"指定页","Dec-Connection_Test_Fail":"{}测试连接失败","Dec-Authority_Settings_Schedule_License_Not_Support_Tip":"定时调度功能未注册,如需使用请联系销售","Dec-Memory_Release_Clear_Template_Session":"的模板会话","Dec-Color_Scheme_Dark":"深色","FR-Plugin_html_parse":"Html解析","Dec-Plugin-Store_Password":"密码","Dec-Whole_Config":"全局配置","Fine-Engine_Excel_Customize_Import":"Excel自定义导入行列","Fine-Dec_Chart_Map_SaveChanges":"保存更改","Dec-System_Test_Mail_Sending":"测试邮件发送中...","Dec-Example_URL":"例如: ldap://192.168.255.26:433","Dec-Register_Certificate_Service_Tips":"获取技术支持服务时请提供该凭证信息：","BI-Basic_Sunday":"星期日","Dec-No_User_For_Show":"暂无用户点击编辑用户进行添加","Fine-Schedule_Task":"定时任务","Dec-Next_Fire_Time":"下次运行时间","Dec-Module-System_Monitor":"智能运维","Dec-Log_Auto_Clean_Tip":"自动清理一次，保留近","Fine-Engine_FS_Report_Do_Select_Dir":"选择路径","Dec-Users_Department_Confirm_Delete_Root":"所有导入/添加的部⻔将被删除，确定删除？","FR-Plugin_Server_KPI_Main_Type":"扩展图表—指标卡类","Dec-Error_URL_Limit_Tip":"链接不能包含@","Fine-Engine_Report_Top":"上","Fine-Dec_Chart_Not_Excel":"非excel文件","Fine-Engine_Platform_RP_Exist_Null_Node":"该节点中存在未填写项","Dec-Use_Global_Config":"使用全局配置","Dec-Dcm_Connection_Plase_Add_One":"请选择左侧数据连接或点击新建数据连接","Dec-Row-Authority":"行权限","Dec-Schedule_Manage_SMS_Template":"管理短信签名和模板","Fine-Engine_Platform_RP_Execute_Month":"执行月","Dec-Resource_Migration_Importing_Finish":"导入完成,正在跳转...","Fine-Basic_Share":"分享","Dec-Error_Duplicate_Process_Names":"标签名重复","Dec-Workflow_RestartAfterSet":"配置结束立刻开始","Dec-Workflow_Execute":"执行","Dec-Security_Watermark_Gap":"水印间距","Dec-User_Enable":"启用","FR-Plugin_Design_Graphics_Shape":"图形形状","Dec-Intelligence_Push":"智能推送","Dec-Workflow_Management":"管理","Dec-Basic_Help_Document":"帮助文档","Dec-Workflow_Month_Count":"月","Dec-Login_Admin_Account":"您的管理员账号为","Fine-Engine_Basic_Email_Message":"内容","Dec-User_Platform_User_Remove_Self_Tip":"将自己移出该⻆色，可能对您的权限产生影响，确定移出？","Fine-Dec_Chart_Map_Delete":"删除","Fine-Dec_Module_Name":"平台模块","Dec-Template_Authority_Unopened_Tip":"当前所有模板任何人皆可查看,可先在全局设置页面修改配置,以设置模板认证","Dec-Memory_CPU_Used_Percent":"CPU利用率","Dec-System_SMS_Signatures":"短信签名","Dec-Authority_Information":"权限信息","Dec-Data_Set_Tree":"树数据集","Dec-Visit_IP":"访问IP","Fine-Dec_System_Email_Not_Configured":"服务器尚未设置邮箱，系统成员无法通过邮件接收通知、验证等信息。为了更方便、安全的使用系统，建议立即设置服务器邮箱。","Dec-Reg_Lic_Version":"认证应用版本","Dec-Intelligent_Cloud_Data_Upload_New_Data":"只上传新日志","Dec-Confirm_Delete_Task_Detail":"确认删除该任务配置?","Dec-Workflow_Alert":"警告","FR-Plugin_Design_Trail_Effect":"轨迹动效","Dec-Auto_Backup":"自动备份","Dec-Failed-Lic_Format_Not_Match":"证书内容不正确","Dec-Init_Select_Database_Action":"{}   >","Dec-Task_Set_End_Time":"设定结束时间","Fine-Engine_Clear_All_Filters":"清除所有筛选","Fine-Plugin-Engine_Unable_Improve":"暂不可提升","Dec-Workflow_Back_To_Start":"可越级回退至首节点","Dec-Visit_User_IP":"访问用户IP","Dec-Look_Login_Mode":"登录方式","Dec-Basic_Original_Encoding":"原始编码","Dec-Module-Look_And_Feel":"外观配置","Dec-System_Login_Lock_Error_Limit":"错误次数限定","Dec-Account_Setting":"用户设置","Dec-Module-Simple_Register":"注册管理","FR-Plugin_Design_Refresh_Interval":"刷新间隔","Dec-Intelligent_Cloud_Offline_Tip":"若已在帆软市场开通了该服务，请点击此","Dec-Dcm_Back":"返回","Dec-Mobile_Directory_Tree":"目录树","Fine-Engine_Report_Sort_Vertical":"排序（纵向）","Fine-Engine_Report_New_Name":"新的名称","Dec-Plugin-Store_Integrate_Deployment":"部署集成","Fine-Engine_Choose_All_Or_None":"全选/全不选","Dec-Login_Login_Info_Changed_Tip":"登录认证信息已修改，请用修改后的账号信息重新登录","Fine-Engine_Base_August":"八月","Dec-Security_CSP":"CSP内容安全策略","Dec-Workflow_End":"结束","Dec-Workflow_WF-Name":"名称","Dec-Plugin_Delete_Confirmed":"确定删除此插件？","Fine-Engine_Base_November":"十一月","BI-Basic_Begin_Start":"初","Fine-Engine_Example":"例如","Fine-Engine_Report_Export_Word":"word","Dec-Login_Authentication_Password_Update_Tip":"当前密码已失效，请进行身份验证并修改密码","Fine-Engine_FS_Start_Time":"开始时间","Dec-Platform_Report_Under_Editing_Can_Not_Rename":"仪表板正在被{}编辑,不能重命名","Dec-Basic_Phone_Watermark":"请输入手机号","Dec-Dcm_Second_Step":"第二步","Dec-Platform-Directory_Detail":"可选择一个目录查看详情","Dec-Intelligent_Cloud_Intranet_Technical_Support_Send":"报告由技术支持手动发送给您","Dec-Platform_Directory_Pad":"平板","Dec-Cluster_File_Cache_Mode_Tip":"缓存的资源文件为WEB-INF目录下reportlets、resources、assets、dashboards文件夹的内容，缓存模式仅在开启集群后生效","Dec-Workflow_Operator":"操作人员","Dec-Failed_Lic_Version_Not_Match":"证书内容不正确","Dec-Wait_In_Line":"排队等待","Dec-Dcm_Connection_Form_Database_Min_Evictable_Idle_Time_Millis":"保持空闲最小时间值","Fine-Engine_Platform_RP_To_Check":"待审核","Dec-Dcm_Connection_Form_Database_Name":"数据库名称","Dec-Error_Email_Format":"请填写正确的邮箱","Fine-Engine_Parameter_Boolean":"布尔型","Dec-Cluster_Cache_Mode_Switching":"正在切换,请稍候...","BI-Basic_Front":"前","Dec-Mobile_Others":"其它","Dec-Workflow_Add_Process":"添加流程","Dec-Login_Username":"请输入用户名","Dec-Mobile_Directory_Icon_Gradient":"渐变","Dec-Log_Delete":"删除","Dec-System_SMS_Run_Information":"运行信息","Dec-Please_Select_One":"请选择","Dec-Common-Help_Intelligence_Operation":"智能运维","Dec-Cluster_Node_Quit_Tip":"新加入的节点与集群中的其他节点文件不一致，请关闭后自行更新，然后重启服务器","Dec-Task_Run_Time":"执行时间","Dec-User_Email":"邮箱","Fine-Engine_Report_Task_Name_Repeat":"任务名重复","Fine-Engine_Plugin_Store_Switch_Account":"切换账户","Fine-Engine_Report_TaskEndWhenOneTime":"任务执行一次后即结束","Dec-Dcm_Connection_Form_Database_Test_On_Borrow":"获取连接前检验","Dec-Task_Do_Not_Restart":"不重启","Fine-Plugin-Engine_Can_Improve":"可提升","Dec-Dcm_Connection_Form_Database_Validation_Query":"SQL验证查询","Dec-Basic_Success_Save":"保存成功!","Dec-Task_Run_Custom_Judge":"自定义类判断","FR-Plugin_Design_Lambert":"明暗","Dec-Users_The_Following_Data_Synchronize_Failed":"以下数据同步失败","Fine-Engine_PageSetup_Predefined":"预定义","Dec-Retry_Max_Times_Description":"操作（计算，数据转移等）失败后可自动重新尝试操作，若尝试次数超过该值，重试结束","Dec-Basic_Location":"地点","Dec-Intelligent_Cloud_Upload":"一键上传","Dec-Error_Check_Captcha_Error":"校验验证码时发生错误","Fine-Engine_Please_Enter_End_Value":"请输入终止值，不选择默认为最大值","Fine-Engine_Platform_RP_System_Message":"系统消息","Dec-User_Import_Dataset_Tip":"您需要先使用设计器新建一个包含4类不同字段的服务器数据集","Dec-Failed_Lic_Dongle_Serial_Not_Match":"加密狗序列号不匹配","Dec-Server_Side_Character_Encoding":"服务器端字符编码","Dec-Cluster_UnHealth_Node_Tip":"该节点存在异常的模块，暂无法正常提供服务。","Dec-Confirm_Rollback_Backup":"确定还原该备份？","Dec-System_Modify_Password_Authentication_Email":"修改密码验证方式-邮件验证","Fine-Engine_Report_Tooltips":"提示","Dec-Memory_Release_Meanwhile":"同时：","Dec-Log_Error_Time":"发生错误的时间","Dec-User_Import_Incremental_Update_Control":"已存在用户的个人信息字段不更新","Dec-Basic_For_Example":"例如","Fine-Engine_Platform_Short_Dec":"十二","Dec-Users_Sync_Failed_Object_Type":"失败对象类型","FR-Plugin_Server_Time_Gear":"时间齿轮","Dec-Show_Message":"查看消息","Dec-Intelligent_Cloud_Intranet_Download":"“下载日志”至本地","Dec-End_Dialog":"结束会话","Dec-Cache_Percent":"内存占用比例","Fine-Engine_Copy_Link":"复制链接","Dec-Msg-New_Message":"新消息","Dec-Workflow_Cancel":"取消","Dec-Login_Authentication_Password_Strength_Tip":"当前密码不符合密码强度要求，请进行身份验证并修改密码","Dec-Reg_Authentication_Local_App_Content":"本地工程内容","Fine-Engine_Platform_Receiver":"收件人","Dec-Workflow_Unfinished_Task_Name":"未处理任务","Dec-Log_Clear_Success":"日志清理成功","Dec-Reg_Failed_Multi_Server_Tip":"证书已被同服务器上其它工程使用","Dec-Plugin-Store_Login":"登录","Fine-Dec_Chart_Gantt_ErrorTip":"甘特图必须要有","BI-Basic_Month_End":"月末","Fine-Engine_Report_Last_Submit_Time":"上次提交时间","Fine-Engine_Platform_RP_Cpt_Namept_Operation":"模版操作","Dec-Management_Map_Save_Changes":"保存更改","Dec-Users_Other_Source_Update_Tip":"以下来自其他来源的数据已被更新","Dec-Confirm_Import_Selected_Resources":"确定导入所选资源?","Dec-Plugin_Intelligent_Cloud_Plugin_Install_Success":"云端运维更新成功","Dec-Memory_Detection_Server_Disk_Litter":"{}磁盘剩余空间过小","Fine-Engine_Tip_Tooltips":"提示","BI-Basic_Function_Name":"函数名：","Dec-Platform_User_Limit_Self_And_Admin":"不可操作超级管理员和用户自己","Dec-Cluster_Refresh_Cache":"刷新缓存","Dec-Illegal_Mail_Address":"请输入合法的邮箱地址","Fine-Engine_Institution":"机构部门","Dec-Directory_Link_Path":"链接路径","Dec-Platform":"平台","Dec-Basic_SMS_Parameter":"短信参数","Dec-Log_Online_Web_Socket_Error_Tip":"为什么在线人数无法正确显示？","Dec-Mobile_Native_Chart_Enable_Tip":"开启后，仅BI的图表将由webView渲染切换为原生图表渲染","Fine-Dec_Chart_Song_TypeFace":"宋体","Dec-Multi_Import_Download_Error_File":"下载勘错文件","BI-Widget_Background_Colour":"组件背景","Fine-Engine_Platform_RP_Cpt_Namereator":"创建人","Dec-Cache_Remain":"内存大小","Dec-Sync_Source_Name_Conflict":"名称与其他来源对象重复","Dec-Basic_Switch_Account":"切换账户","Fine-Engine_Current_Node_Staff":"本节点人员","Dec-System_SqlInj_Add_Keyword":"添加特殊关键字","Dec-Intelligent_Cloud_Large_Calculation_Tip":"通过大量复杂计算模型、基于大数据的统计、比较和拟合，给出更精准、更智能、更全面的运维建议","Dec-Schedule_Export":"导出","Dec-Error_Captcha_Limited":"验证码校验次数达到上限","Dec-Error_Username_Not_Null":"用户名不能为空","Fine-Engine_Export_Excel_Simple":"原样导出","BI-Word_Align_Center":"文字居中","Dec-Look_Entry_Style":"目录样式","Dec-Init_Connect_DB_Fail":"数据库连接失败","Dec-Task_Parameter_Setting":"参数设置","Fine-Engine_Designer_Plugin_Shop_Need_Update":"插件商店有新版本,是否更新?","Fine-Engine_Cross_Domain_Unsupported_Tip":"此接口不支持跨域 URL，建议使用相对路径。如需跨域，请用 FR.doURLPrint。","Dec-Plugin-Error_No_Support_In_War_Or_Cluster":"War包或集成部署下不支持此功能.","Dec-Dcm_Connection_Filter_Tip":"提示：当前仅支持部分插件类型，未支持类型请使用设计器的旧版本数据连接进行创建","Dec-Task_Customize_Link":"自定义链接","BI-Basic_Beautify_Level":"优化展示层级","Dec-Error_Mail_Phone_Null":"邮箱或手机不能为空","Dec-System_Log_Level_Tip":"提示：此设置仅影响系统日志的输出，不影响操作日志","Dec-Common-Setting":"常用设置","Fine-Engine_Report_ECP_Success":"加密成功","Fine-Dec_Chart_Geographic":"地理信息","Dec-System_Modify_Password_Authentication_SMS":"修改密码验证方式-短信验证","Fine-Engine_Base_June":"六月","Dec-Memory_Detection_Server_Cluster":"节点{}设置的最大内存为{}M，建议不应小于12G","Dec-Preview_Template":"预览模板","Dec-Cluster_Node_ID":"节点ID","Dec-Email_Encrypt_None":"不加密","Dec-Task_View_Repeat_Count":"额外重复执行{}次","BI-Conf_Formula_Water_Mark":"示例=销售额 / 计划销售额","Dec-Log_Select_All":"全选","BI-Conf_Formula_Time_Field":"时间字段","Dec-Plugin_Error_None":"成功","FR-Plugin_Design_Description":"说明信息","Dec-Login_Phone_Watermark":"请输入手机号","Dec-Management_Map_Drag_To_Edit":"拖拽来编辑层级","Fine-Engine_Y_Offset":"Y方向偏移","Dec-Look_Platform_Title_Background":"标题背景","FR-Plugin_Design_Bloom":"高光效果","Dec-Plugin-Store_Unexpected_Error":"未知错误","Dec-Post_User":"职务下人员","FR-Plugin_Design_Realistic":"真实","Fine-Plugin_Engine_Tree_Async_Query":"异步取数","Dec-Role_Only_Admin_Allow_Add":"只有超级管理可以添加角色","BI-Color_Picker_Error_Text":"请输入0~255的正整数","Fine-Engine_Report_Tue":"二","Fine-Engine_Preview_Write":"填报","Dec-Log_Operation_Behavior":"操作行为","Dec-Basic_Expression":"表达式","Fine-Engine_Base_July":"七月","Dec-System_Password_Strength":"密码强度限制","Dec-User_Name_Can_Not_Null":"用户名不能为空","Dec-Common-Help":"常用帮助","Dec-Basic_SMS_Signature":"短信签名","Dec-Cluster_UnHealth_Node_Modules":"异常模块：{}","Fine-Engine_Plugin_Store_User_Password_Error":"用户名或密码错误","Dec-Authority_Recovery_Inherit_Tooltip":"恢复对部门/角色权限的继承","Fine-Dec_Focus_Point_Template":"模板属性","Fine-Dec_Focus_Point_Platform_Log_Export_Excel":"平台日志导出成Excel","Dec-Server_Table_Can_Not_Null":"请选择一个服务器数据集","Dec-Intelligent_Cloud_Application_ID":"应用ID","Fine-Engine_Base_OK":"确定","Dec-Task_Dispatcher_Default_Object":"无调度对象","Dec-Basic_Collapse":"收起","Dec-Plugin_Has_Been_Actived":"插件已被启用","Fine-Engine_Report_HJS_BCC_to":"密送","Dec-Look_Style_Three":"样式三","Dec-Module_Connection_Management":"数据连接管理","Dec-Show_Unread_Message":"未读消息","BI-Basic_And":"且","Dec-Init_Select_Tip":"","Dec-Look_Login_Style":"登录风格","Dec-Workflow_Sche-Minute":"分","Dec-LDAP_User_Suffix":"用户名后缀","Dec-Log_Maximum_Response_Time":"最长响应时间(ms)","FR-Plugin_Design_KPI_Main_Type":"扩展图表—指标卡类","Dec-System_Password_Strength_Contain_Digit":"包含数字","Dec-Cluster_Cache_Mode_Switch_Fail":"切换失败","Fine-Engine_RP_Edit_Task":"编辑任务","Dec-Cluster_File_Server_Tip":"若不启用，集群通过节点间自动同步的方式进行文件同步","Fine-Engine_Do_Not_Know_Me":"不认识我","Fine-Engine_Remote_Design":"远程设计","Fine-Engine_Plugin_Store_User_Not_Exist":"用户名不存在","Dec-Schedule_Running_Task_Start_Time":"本次执行开始时间","Dec-Basic_Integer":"整型","Dec-Data_Set_SQL_Parameter_Example":"参数示例：select * from table where id='${abc}'，abc为参数名。","Dec-Error_Task_Name":"任务名称不能包含\\ / : * ? \" < > | 和空格","Fine-Engine_Page":"页面","Dec-Reg_Confirm_Unbind":"是否确定解除绑定？","Dec-Role_Name":"角色名称","Fine-Engine_Base_Ante_Meridian":"上午","Fine-Engine_Report_Backup_To":"备份到","Dec-Workflow_Task_List":"任务列表","Dec-Backup_Auto_Count":"各模块可自动备份","BI-Basic_Saturday":"星期六","Dec-Security_Access_Control":"访问控制","Dec-Intelligent_Cloud_Analytics_File_Upload_Failed":"上传文件失败，帆软市场或云中心响应失败","Dec-Intelligence_Overflow_Info_Tip":"很抱歉，数据量过大触发保护机制，请减少查询数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Login_Verify_Password_Update_Tip":"当前密码已失效，请联系管理员绑定{}，然后进行身份验证并修改密码","Dec-System-Forbidden_Keyword":"已禁用的特殊关键字","Fine-Engine_Platform_Short_Mar":"三","Dec-Dependent_Empty_Tip":"已选项无依赖资源","Dec-Log_Advanced_Search_Conditions":"高级查询条件","Dec-Cluster_Parameter_Redirect_Block_Timeout":"失效时间","Dec-Task_Repeat_Count":"额外重复执行次数","BI-Multi_Date_Month":"月","Fine-Plugin_Engine-Transform-Tooltip":"模板转换","Dec-Cluster_Open_Verify_Configs_Error":"检测到未成功配置{}，无法开启集群，请完善后重试","Dec-Error_Integer_Max":"请输入不大于{}的整数","Dec-Authority_Reuse_Target":"生效对象","Dec-Workflow_System_Message":"系统消息","Dec-Plugin-Store_Not_Official":"非官方","Fine-Engine_Basic_File_Allow_To_Upload_Contains":"允许上传的文件包括","Dec-Error_Digital_Key_No_Empty":"数字签名密钥地址不能为空","Dec-Confirm_URL":"请确认地址是否正确","Dec-Error_Template_Name_No_Blank":"模板名不能为空","Fine-Core_LIC_Form":"决策报表","BI-Conf_Formula_And":"且公式条件","Fine-Engine_Report_Err_The_Number_Is_Less_Than_The_Minimum_Value":"值小于允许输入的最小值","Fine-Dec_Chart_Unit_Ten_Million":"千万","BI-Basic_Simple_Wednesday":"三","Fine-Dec_Chart_Gantt_Progress":"完成百分比","Fine-Dec_Failed_License_Format_Not_Match":"证书格式不正确","Dec-Basic_Login":"登录","Dec-Dcm_Connection_Is_Using":"该连接正在被{R1}编辑，请稍后再试","Dec-Plugin_Error_PluginAlreadyInstalled":"插件已经安装","Dec-Task_Run_Ends_Configuration":"配置结束立即执行","Dec-One_Month":"1月","Fine-Engine_Report_Unregistered":"未注册","Dec-Workflow_Sche-Hour":"时","Fine-Engine_Import":"导入","Dec-Task_Test_Upload_Waiting":"正在测试上传，请稍候...","Dec-Error_Password_Is_History":"不可使用历史密码","BI-Basic_Formula_Invalid":"公式不合法","Dec-Security_Script_Invocation_Formula_Restriction_Tip":"开启后将限制脚本中有风险的公式调用","Fine-Engine_FS_Msg_Send_Success":"消息发送成功","Dec-Cluster_Open":"开启集群","Dec-User_Belong_To_Role_Tip":"您属于该⻆色，删除该⻆色可能对您的权限产生影响，确定删除？","FR-Plugin_Design_Rotate":"自动旋转","Dec-Error_Connection_Deleted":"该连接已被删除，请刷新页面，如有疑问请联系管理员","Dec-Task_Restart_Time_Desc":"最多尝试重启次数","Dec-Manage_PlatformModule":"系统管理","Dec-Connection_Test_Waiting":"正在测试连接，请稍候...","Fine-Core_Poly":"聚合报表","Dec-Task_Run_Month":"执行月","Fine-Engine_Report_Deploy_Help":"帮助文档","Fine-Engine_png":"PNG图片导出","Dec-Schedule_Search":"查询","Dec-Cache_Info":"%，持续","Dec-Plugin_Error_PluginAlreadyEnabled":"插件已经启用","Dec-Platform_Log_Access_Statistics":"访问统计","Fine-Dec_Chart_Map_Cancel":"取消","Dec-Workflow_FS_End_Time":"结束时间","Dec-System_WebSocket_SSL_Path":"SSL密钥路径","Fine-Schedule_Link":"定时任务结果链接","Dec-Dcm_Connection_Value_Out_Range":"数值超出范围","Dec-Error_Phone_Separator_Format":"请确认号码及分隔符格式正确","Dec-Intelligent_Cloud_Large_Calculation":"大计算","Dec-Template_Set_Default_Parameters":"[设置默认参数值]","BI-No_Selected_Item":"没有可选项","Dec-Error_Mac_Address_Error_Tip":"请使用正确的MAC地址格式","Dec-Directory_Confirm_Delete":"是否确认删除?","Dec-Workflow_Edit":"编辑","Dec-User_In_Process":"处理中...","Dec-Security_HTTP_Strict_Transport_Security":"HSTS设置","Dec-Reg_Concurrency":"同时访问模板IP个数","Dec-Export_Info":"导出注册信息","Dec-Dcm_Connection_Form_JNDI_Other_Attributes":"其他属性","FR-Plugin_Design_Shading":"三维效果","Dec-Workflow__Type":"流程类型","BI-Multi_Date_Year_Begin":"年初","Dec-Basic_String":"字符串","Dec-Login_Change_Email_Fail":"邮箱修改失败","Fine-Dec_Chart_Map_CancelDrawing":"取消绘制","BI-Basic_Formula_Global_Vars":"全局参数","Fine-Plugin_Engine_Transforming":"正在转换","Dec-Mobile_Forbid_Refresh":"不刷新","Dec-User_Synchronized_Edit_Control":"同步状态下用户信息可编辑","Dec-System_WebSocket_SSL_Path_Tips":"密钥和公钥存放路径，使用绝对路径，对应如%TOMCAT_HOME%\\conf\\server.xml中keystoreFile字段的值","Fine-Dec_Chart_Unit_Hundred":"百","Dec-Plugin-Store_Update":"更新","Dec-Intelligent_Cloud_Performance_Problem_Template_Recommendation":"模板性能风险分析","Fine-Engine_Should_Select_An_Excel_File":"需要选择一个Excel文件来源","BI-Basic_Year_Begin":"年初","Dec-Workflow_Email":"邮件提醒","Dec-User_Source":"用户来源","Dec-Memory_Detection_Server_Transferred":"当前平台数据存储于hsql中，仅适合本地使用产品功能","BI-Basic_Formula_Data_Items":"数据项","Dec-Security_Watermark_Color":"水印颜色","Dec-Theme_Classic":"经典","Fine-Engine_Base_Short_Aug":"八","Fine-Engine_Report_Software":"软件","BI-Basic_Input_From_To_Number":"请输入{}的数值","Fine-Engine_Report_Mon":"一","BI-Quarter_1":"第1季度","BI-Quarter_2":"第2季度","BI-Quarter_3":"第3季度","BI-Quarter_4":"第4季度","Dec-Confirm_Delete_Sql_Char":"确定删除该字符？","Dec-Security_Cookies_Enhance":"Cookie增强","Dec-Directory_Choose_Path":"选择路径","Dec-Memory_Release_Report_Text":"报表内存智能释放","Dec-System_Password_Update_Set":"密码定期更新设置","Fine-Engine_print_flash":"flash","Dec-Mobile_Upload_Icon_Tip":"提示：请选择尺寸不小于24*24，文件大小在50KB以内的图片，支持JPG、PNG格式。","Dec-Memory_Limit_Single_Template":"单模板单元格限制","Dec-Basic_Parameter_Type":"参数类型","Dec-Security_Global_Watermark":"全局水印","Fine-Engine_Platform_RP_Pass":"通过","Dec-Look_Platform_Theme":"平台主题","Dec-Template_Which_Need_Authenticate":"需要认证的模板","Dec-Failed_Lic_UUID_Not_Match":"机器码不匹配","Dec-System-Forbid_Keyword":"禁用特殊关键字","Dec-Dcm_Connection_Form_Host":"主机","Dec-Please_Input":"请输入","Dec-No_Message":"暂无消息","Dec-Select-Please":"请选择","Dec-Basic_Content":"内容","Dec-Workflow_Execute_Day":"执行日","FR-Plugin_Design_Time_Main_Type":"扩展图表—时间类","Dec-Deployment_WAS_Jar_Way":"WAS部署：","Fine-Engine_Base_Short_Sep":"九","Dec-Common-Help_Auth_Manage":"权限管理","Dec-Error_Only_Support_Single_Login":"当前许可文件只支持单一登录","Dec-LDAP_Authentication":"LDAP认证","Dec-Intelligent_Cloud_Plugin_Enable_Fail":"云端运维启用失败，请重新启用","Fine-Engine_Base_Short_Jul":"七","Dec-Role_Auth_Control":"角色权限认证","Dec-Intelligent_Cloud_Internet_More":"了解更多云端运维信息请查阅","Dec-Task_Set_Start_Time":"设置开始时间","Fine-Engine_Base_Short_Jun":"六","Dec-Dcm_Leisure_Connections_Number":"空闲连接数","BI-Multi_Date_Quarter_Next":"个季度后","Dec-Login_Password":"请输入密码","Fine-Engine_FS_FailPass_Improve_Your_Version":"当前版本无此功能，请使用高级版本。","Dec-Basic_Click_Login":"点击登录","BI-Basic_October":"十月","Dec-Management_Map_Latitude":"纬度","Dec-Error_Connection_Max_Active":"请输入不小于0的整数","Dec-Basic_Name":"名称","Fine-Engine_Report_Err_The_value_Must_Be_Number":"值必须是一个数字","BI-Basic_Function_Type":"函数类型：","Dec-System_FR_Forget_Password":"忘记密码?","Fine-Engine_Report_Submit-Log":"提交入库","Dec-Platform_Plugin":"插件","Fine-Engine_Platform_RP_Invalid_Task_Or_Process":"任务名称或流程名称不符合规范","Fine-Engine_Report_Unload_Check_Msg":"有数据没有提交","Dec-Cluster_Cache_Mode_Switch_Success":"切换成功","Dec-User_Dataset_Syncing_Fail":"同步失败","Dec-Grade_Auth":"分级授权","Fine-Engine_Modify":"修改","Dec-Cluster_Parameter_Key_Prefix_Tip":"当Redis服务被多套工程共用时，请配置key前缀以区分各个工程，避免冲突","Dec-Task_Daily":"每日","Dec-Intelligent_Cloud_Upload_Tips":"日志上传至云中心分析引擎（{}），可分析系统问题，生成系统使用报告","Fine-Core_Func_SMS":"短信平台","Dec-Basic_Optional_Filling":"非必填","Fine-Engine_Excel_Clean_Failed_Tip":"excel文件缓存清除失败,下次导入之前请刷新模板","Dec-Basic_Column_Ordinal":"列序号","Dec-Template_Authority_Select_Need_Authenticate_Templates":"请选择需要认证的模板","BI-Multi_Date_Year_Next":"年后","Fine-Engine_Basic_File_Not_Allow_To_Upload":"是禁止上传的文件类型","Dec-System-Connection_List":"数据连接","Dec-Cluster_Connection_Mode_Change_Tip":"若确认变更集群通信协议，请重启各节点工程以生效。","Dec-Error_Password_Null":"请输入密码","Dec-Basic_View":"查看","BI-Basic_Simple_Friday":"五","Dec-Export_Resource_Waiting_Download":"准备完毕,请等待浏览器下载完成","FR-Plugin_Design_Slide_Show_Map":"轮播GIS点地图","Dec-Intelligence_Operation":"智能运维","Dec-Report_Manage":"上报任务管理","Dec-Error_Memory_Life_Cycle":"请输入10-10000的正整数","Fine-Engine_FS_Generic_Invalid_File_Type_To_Upload":"禁止上传，允许上传的文件类型包括","Fine-Engine_Parameter_Setting":"参数设置","Fine-Plugin_Engine_Format_Transform":"格式转换","Dec-Basic_Config":"配置","Dec-Directory_Config_Template":"设置模板","Dec-Error_Upload_File_Type_Error":"{}是禁止上传的文件类型","Fine-Schedule_Send_Failed_Prompt":"尊敬的管理员，{}于{}运行失败，请知晓","Dec-Directory_Template_Hangout_Failed_Tip":"模板\"{}\"当前为不可挂出模板,不可被挂出","Dec-Mobile_Loading_Animation_Setting":"加载动画设置","Fine-Dec_Chart_Map_DragToEdit":"拖拽来编辑层级","Fine-Engine_Print_Copy":"打印份数","Fine-Plugin_Engine_Template_Size":"预编译文件大小","Dec-Authority_Config":"权限配置","Fine-Engine_Odd_Pages":"奇数页","FR-Plugin_Server_Minute":"分 hh:mm","Dec-User_Already_Selected":"已选择用户","Dec-Basic_Loading":"加载中...","Dec-Account_Bind":"账号绑定","Dec-Basic_Yes":"是","Dec-Cluster_Parameter_Internal_Forwarding":"内部转发参数","Fine-Engine_Excel_Help_Msg":"默认导入除标题行外的所有数据;<br>只填起始行,则导入该行及其后所有数据;<br>只填结束行,则导入该行及其之前的数据;","Dec-Cluster_Synchronization_File_Syncing":"集群正在进行自动同步，请稍后重试","BI-Multi_Date_Month_Prev":"个月前","Dec-Dcm_Connection_Read_Mode_List":"以读取模式列表","Dec-Authority_Source_Authorized":"授权权限","BI-Basic_Fang_Song":"仿宋","Dec-Management_Map_Start_Poly_Line":"点击开始画线","Fine-Engine_ConditionB_Is_Less_Than_Or_Equal_To":"小于或等于","Dec-Users_Synchronize_Success_Count":"同步{}个用户","Dec-Error_Cluster_Node_Name_Exits":"节点名不可重复","Dec-Login_Change_Password_Update_Tip":"当前密码已失效，请修改密码","Dec-Intelligent_Cloud_Data_Disclosure":"数据披露","Dec-Workflow_Rollback":"回退","Dec-Management_Connection":"数据连接","Dec-Basic_Pack_Up_Information":"收起信息","Dec-Plugin-Store_Commodity_Description":"商品|版本号|说明","Fine-Engine_Cal_Calculating":"处理中","Fine-Core_Func_Extended_Chart":"扩展图表","BI-Month_Trigger_Error_Text":"请输入1~12的正整数","Fine-Engine_Excel_Current_Sheet":"当前sheet","Dec-Init_Not_Config":"暂不设置，","Fine-Engine_Report_File_File_Too_Big":"文件过大，上限为","Fine-Engine_Platform_Short_May":"五","Dec-Memory_Session":"内存会话","Dec-Dcm_Connection_Form_Pool_Properties":"连接池属性","BI-Less_And_Equal":"小于等于","Dec-Basic_Captcha_Watermark":"请输入验证码","Dec-Workflow_Short-Sep":"九","Dec-Menu_Dashboard":"仪表板","Dec-Basic_Protocol":"协议","Dec-Task_State_Running":"运行中","Dec-Mobile_Directory_Style_Settings_Tip":"设置仅在手机端生效","Dec-Task_Putin_Preset_Expression":"收起预置表达式","Dec-System_Password_Update_Little_Cycle":"需小于更新周期","Fine-Engine_Remote_Evaluate_Limit_Tip":"此调用存在安全风险，如需使用请在安全管理中修改脚本调用公式限制","FR-Plugin_Server_Catalog_Gear":"轮播目录齿轮","Dec-Mobile_Directory_Icon":"目录图标","Dec-Basic_Delete":"删除","Dec-Workflow_Short-Jun":"六","Dec-Workflow_Short-Jul":"七","Dec-Management_Plugin":"插件管理","Fine-Engine_Edit_Role":"编辑角色","Fine-Engine_Platform_RP_Add_MultiNode":"添加联合填报节点","Fine-Engine_Report_Prospecting_File_Error":"勘错文件导出时发生错误","Dec-Security_Security_Headers_Tip":"开启后将给请求头附加HTTP Security Headers属性，阻止漏洞攻击","Dec-Basic_SMS_Reminder":"短信提醒","Dec-Mobile_Device_Add_By_Admin":"管理员添加的设备","Dec-Basic_Letter_Sort":"按字母排序","Dec-Management_Map_Cancel_Changes":"取消更改","Dec-Workflow_Deliver":"分发","Fine-Engine_Report_Export_SVG":"svg","Dec-Error_Reset_Password":"密码重置失败，请重新操作","Dec-Basic_Printer":"打印机","Dec-Authority_Set":"权限设置","Dec-Memory_Detection_Server_Tmp_Dir_Privilege_Tip":"修改tmp路径或赋予原路径读写权限。","Fine-Engine_Condition_Equals":"等于","Dec-Cluster_Refresh_Cache_Tip":"手动修改资源文件后,请点击按钮刷新集群缓存,以免影响使用","Fine-Dec_Chart_Gantt_Error_Check":"请检查您的数据","Fine-Engine_FS_Task_Start":"任务开始后","Dec-Plugin-Store_Update_From_Local":"从本地更新","Fine-Dec_Chart_Create_GIS_LAYER":"创建GIS背景","Dec-System_Login_Password_Email_Remind_Tip":"提示：开启邮件验证后，请确保其他成员已绑定邮箱，否则他们将无法接收验证邮件","Dec-Error_Task_File_Handling_Value":"{}未填写完整，请完善设置项后保存","Dec-Security_Intercept_IP":"拦截IP","Dec-Log_Close":"关闭","Dec-Later_Login_First":"后登录踢出先登录","Dec-Security_Frequencies_Restrict":"频率限制","Fine-Engine_ConditionB_Equals":"等于","Dec-Workflow_Short-Aug":"八","Dec-Reg_Local_Dongle_Number":"本地加密锁序列号","Dec-Config_Auto_Backup":"自动备份","Dec-Init_DB_Driver":"驱动","Fine-Engine_Report_Total_Page_Number_X":"总计：{}页","Fine-Engine_Report_Export":"输出","Fine-Engine_Export-Excel-LargeData-Page-Info":"请耐心等待文件的生成，所花费的时间将视数据量的大小而定，在此过程中请勿关闭当前页面或浏览器。","Dec-Cluster_File_Structure_Building":"文件结构构建中，暂无法切换","Dec-Intelligent_Cloud_Data_Download_Tip":"下载所得日志数据可用于分析问题和生成系统使用报告。解压文件可查看相关数据。","FR-Plugin_Design_Vertical_Position":"竖直位置","Dec-Schedule_Setting_Email_Hint":"提示：支持填写多个邮箱，以,隔开","Fine-Engine_Platform_WF_Name":"名称","Dec-System_Balance_Less_Than":"余额不足{}元 请尽快充值","Dec-Import_User":"导入用户","Dec-Basic_Logout":"退出","BI-Basic_Formula_Valid":"公式合法","Dec-User_Role_Import_Post_NO_Edit_Tip":"同步数据集职务不可编辑","Dec-Plugin-Store_User_Not_Exist":"用户名不存在","Fine-Engine_ConditionB_Does_Not_In":"不包含于","Dec-Basic_Empty_Search_Result":"无搜索结果","Fine-Schedule-Public-Result":"通用结果","Dec-Report_Root_Directory_Name":"网络报表根目录名","Fine-Engine_Search":"搜索","Dec-Deployment_Exception":"{}异常","Dec-Intelligent_Cloud_More_Analyze":"使用云端运维查看更多分析","BI-Year_Trigger_Invalid_Text":"请输入有效时间","Dec-Mobile_Directory_Style_T9_Font_Size_Large":"大","Dec-Memory_Lifecycle":"生命周期","Dec-Authority_User_Set":"用户设置","Dec-Directory_Drag_Error_Duplicate_Name":"存在重名节点,无法完成拖动","Dec-Error_Connection_Name":"数据连接名字不合法","BI-Basic_Parameter_Type_Boolean":"布尔型","Dec-Migration_Need_To_New":"目标数据库为新数据库，将当前数据迁移至目标数据库后方能使用","Dec-System_Extensible_Advanced_Tuning_Parameters":"高级调优参数","Dec-Cluster_Parameter_Change_Alert":"参数设置已修改，请重启各节点工程以生效","Fine-Core_Re_Multi_Privilege":"集团权限控制","Fine-Engine_Platform_Schedule_Remove_Task":"删除任务","Dec-Intelligent_Cloud_Data_Upload_Monthly_Tip":"勾选后可在云端定期生成报告","Dec-Data_Set_Data_SQL_Statement":"SQL语句","BI-Multi_Date_Week_Next":"周后","Fine-Engine_Report_ECP_Start":"开始加密","FR-Plugin_Design_Globe":"地球","Fine-Engine_Platform_None":"无","Dec-Report_Workflow_Restart_Sync":"重新同步","Dec-Data_Set_Confirm_Delete":"确定删除该数据集？","Dec-Confirm_Enable_User":"确认启用该用户?","Fine-Dec_Chart_Map_Center":"中心点","Dec-Look_Login_Logo":"登录Logo","Dec-Create_Excel_Data_Set":"添加EXCEL数据集","Dec-Workflow_Sponsor":"发起人","Fine-Engine_RP_Alert_Mode":"提醒方式","Fine-Engine_Report_Not_Imported":"尚未导入","Dec-Management_Map_Area_Name":"区域名","Dec-Dcm_Search":"搜索","BI-Font_Size":"字号","Dec-Look_Platform_Frame_Color_Scheme":"框架配色","Fine-Engine_Create_Time":"创建时间","Fine-Engine_Platform_RP_Task_Type":"任务类型","Fine-Engine_FS_Report_No_Dir_Selected":"请选择除根节点以外的目录节点！","Dec-Confirm_Delete_Role":"确认删除该角色?","Dec-Plugin-Store_Not_Null":"用户名或密码不能为空","Dec-Platform_Log_User_Behavior":"用户行为","Dec-Password":"密码","Dec-User_New_Password_Watermark":"请输入新密码","Dec-BI_Edit_User":"BI设计用户","Dec-Workflow_User":"用户","Dec-User_Importing":"导入用户中...","Dec-Authority_Belong_To_Department_Tip":"您属于该部门，编辑其权限可能对您的权限产生影响，请谨慎操作","Fine-Plugin_Engine-Transform-Unsupport":"转换失败, 尚未支持","Dec-User_No_Post_Need_Add_Tip":"暂无职务,点击编辑职务进行添加","Dec-Current_Package":"当前业务包","Dec-User_Dataset_Change_Tip":"切换数据集后将清空原有同步数据，包括用户及其部门、职务、角色、权限等，确认切换数据集？","Dec-System_SMS_Used":"使用短信平台","BI-Basic_Total":"共","Dec-Basic_Default":"默认","Dec-Role-List":"角色列表","Dec-User_Name":"用户名","Dec-Memory_Detection_Server_Tmp_Dir_Tip":"增大tmp所在磁盘容量。","Dec-Default_User_Group":"默认用户组","Fine-Engine_Report_Overall_Upload_Progress":"整体上传进度","Dec-System_SMS_Send_Fail_Tip":"请检查用户名、密码、接受手机号是否正确，并确保网络畅通","Dec-Role_Id":"角色ID","Fine-Engine_Selection_Filter":"条件筛选","Dec-System_SMS_Tip":"每条信息收费0.06元当余额不足时将可能无法正常发送短信请及时充值。","Fine-Engine_Report_Pwd_Format":"6-16个字符，支持字母、数字","Dec-System_Search":"查询","Dec-User_Synchro_Dataset_Tip":"成员可以通过邮箱和手机接收通知,验证等信息.为了更方便安全的使用系统,建议同步邮箱和手机号!","FR-Plugin_Design_Graphics":"图形","Dec-Login_Now":"立即登录","Fine-Engine_Schedule_Monthly":"每月","Fine-Dec_No_Privilege_Access_Page":"您没有该页面的访问权限","Dec-Appearance_Entry_Image_Delete_Confirm":"确定删除该元素?","BI-Upload_File_Error":"文件上传失败","Dec-Task_Run_Once":"执行一次","Dec-Backup_Update_Success":"已更新至最新版本，服务器重启后生效","Dec-Workflow_Edit_Task":"编辑任务","Dec-Backup_Name":"备份名称","Dec-Workflow_FS_Task_End":"内截止","BI-Already_Selected":"已选择","Fine-Engine_Designer_Plugin_Shop_Need_Install":"您还没有插件商店的资源,是否下载?","Dec-Plugin_Intelligent_Cloud_Update_Tip":"检测到资源长时间未更新，以便体验最新的云端运维功能，可前往帆软市场或联系技术支持获取最新资源","Fine-Engine_Not_In_List":"不在列表中","Fine-Engine_FS_Task_End":"内截止","Fine-Engine_Choose_Date_Time":"选择日期时间","Fine-Engine_Report_Successfully":"成功","Dec-Workflow_FS_Task_Start":"任务开始后","Dec-Department_Name_Can_Not_Null":"部门名不能为空","BI-Formula_Insert":"插入","Dec-Basic_Param_Day":"{}日","Dec-Task_Result_Report":"结果报表","Fine-Engine_Abnormal_Communication":"通信异常","Dec-Login_Authentication_Single_Multi_Tip":"修改密码前，请通过手机或邮箱进行身份验证","BI-Basic_Parameter_Delete_Alert":"当前列表为空或者你没有选中任何项","Fine-Engine_Platform_RP_Unfinished_Task_Name":"未处理任务","Fine-Engine_Report_Quiet_Print_Check_Tip":"保存客户端习惯，执行静默打印","BI-Select_All":"全选","BI-Basic_Current_Year":"今年","Fine-Plugin_Engine-Page-Plus":"新分页预览","Fine-Engine_Copy_Failed":"复制失败","Dec-Task_Leave_Recently":"保留最近","Dec-Plugin-Store_Version":"版本","Dec-Cluster_Parameter_Redirect_Max_Error_Status_Try_Time_Tip":"单个周期内最大尝试的次数，此参数须≥1次","Dec-Data_Refresh":"信息更新","Dec-One_Week":"1周","Dec-User_Enabled":"已启用","Dec-Task_Editor_Name":"名称","Dec-Simple_Error_Info":"简单的出错信息","Fine-Engine_Excel_Import_Append":"增量导入","Dec-Select_Please":"请选择","Dec-Template_ViewType_List":"列表视图","Dec-System_SMS_Free_Number":"可用免费短信条数","Fine-Engine_Err_The_Number_Is_Less_Than_The_Minimum_Value":"值小于允许输入的最小值","Dec-Users_Belong_To_Department_Confirm_Delete_Root":"您属于所有部门，删除所有部门可能对您的权限产生影响，确定删除？","Dec-Task_Filter_Setting":"过滤设置","Dec-System_View_Detail":"查看明细","Dec-Http_Authentication_Address":"认证地址","Dec-Data_Set_Tree_Build_Way_Parent":"依赖所选数据集的父标记字段构建树","Dec-Select_Import_Resource_Tip":"请选择导入资源","Dec-System-Cache_Dataset_Share":"数据集共享","Dec-Intelligent_Cloud_Data_Upload_Success":"日志上传成功","FR-Plugin_Design_Grid3D":"空间","Dec-Basic_Cross_Login":"跨域登录","Fine-Engine_Platform_RP_Task_List":"任务列表","FR-Plugin_Design_Value_Axis_Height":"值轴高度","Fine-Engine_wbmp":"WBMP图片导出","Dec-Intelligent_Cloud_Analytics_Need_Update_Online":"检测到云端运维有新资源可更新，可前往云端运维更新资源","BI-Basic_Save":"保存","Dec-Task_Not_Supported_Formula":"暂不支持公式","Dec-System_SMS_Records":"运行监控","Dec-Init_Database_Desc":"外接数据库的性能更加强大、稳定，若要正式使用强烈建议配置外接数据库。选择该数据库需先进行数据库配置。","Fine-Plugin-LargeDatasetExcelExport_Export_Column_Name":"导出列名","Fine-Engine_Platform_RP_Execute_Day":"执行日","Dec-System_Password_Strength_Contain_Lowercase":"包含小写字母","Dec-Multi_Export_Task_Authority":"任务权限","Fine-Engine_Report_Enter_Pwd_ECP":"请输入密码进行加密","Fine-Plugin_Engine_Exception_Expand":"单元格扩展错误","Dec-Security_Intercept_Add_Time":"开始拦截时间","Dec-Color_Scheme_Custom":"自定义","Dec-Workflow_Sun":"日","FR-Plugin_Server_Percentage":"百分比","Fine-Engine_Click_To_Shrink_Panel":"点击收缩面板","Fine-Engine_Export_Excel_PageToSheet":"分页分Sheet导出","Fine-Dec_Chart_Unit_Hundred_Million":"亿","Dec-Look_Style_Five":"样式五","Dec-Task_Update_Fail":"任务更新失败","Fine-Engine_Basic_Loading":"正在加载","Fine-Engine_Print_As_Image":"以图片方式打印( 针式打印机推荐使用 )","Fine-Engine_Utils_UnDelete_Column":"撤销删除列","Dec-Cloud_Operation_Maintenance_Conf_Performance":"配置推荐","Fine-Engine_Filter_Filter":"过滤","Dec-Dcm_Connection_None":"无可用数据连接，请点击添加","Fine-Engine_Double_Side_Print":"双面打印","Dec-Dcm_Connection_Lack_Driver":"未找到“{R1}”驱动。","Fine-Engine_Platform_RP_Finished_Task":"已处理任务","Dec-Plugin_Install_Dependence":"是否安装依赖插件","Fine-Engine_Save":"保存","Dec-Look_Login_Color_Tip":"用于按钮等组件颜色","Dec-Plugin_Cloud_Analysis_Feature_ShellExecute_Desc":"通过shell命令获取服务器配置信息","Fine-Plugin-Engine_Massive_Data":"大数据量","Dec-Task_Fail_Reminder":"运行失败提醒","Fine-Engine_Excel_Submit_Rights_Assignment":"权限分配","Fine-Engine_Fri":"五","Fine-Dec_Chart_Map_DrawMarkerTip":"点击来放置标记点","Fine-Dec_Chart_Gantt_RealEndTime":"实际结束时间","Fine-Engine_Try_Mode":"试用模式","Fine-Core_Excel_Import":"Excel导入","Dec-Intelligence_Single_Row":"单数据集最大行数","Dec-Log_Error_Template":"发生错误的模板","Dec-Dcm_Connection_New":"新建数据连接","Fine-Engine_Platform_Role_Name":"角色名称","Dec-Multi_Export_Edit_Task":"编辑任务","Fine-Engine_Current_Page":"当前页","Dec-System_WebSocket_Fail_Connection_Edit":"可能存在多人同时编辑造成冲突","Dec-Plugin_Delete_Failed":"插件删除失败","FR-Plugin_Server_Latitude":"纬度","Dec-Template_Authority":"模板认证","Fine-Engine_PageSetup_Landscape":"横向","Fine-Engine_Basic_Email_Subject":"主题","Dec-Workflow_Short-Jan":"一","Dec-Security_Intercept_IP_Shift_Tip":"确定解除对该IP的拦截？","Dec-User_Change_Password":"修改密码","Fine-Engine_Basic_Email_From":"发件人","Fine-Plugin_Engine_Cell_Show_As_Tree_Node_TIP":"提示：可在菜单栏模版的计算属性中进行折叠树设置。","Dec-Workflow_Short-Apr":"四","Dec-Security_X_Frame_Tip":"开启后请求头部增加X-Frame-Options:SAMEORIGIN 设置","Fine-Engine_Delete_Data":"删除数据","Fine-Engine_Offline_Html_Browser":"如果您未安装其他浏览器，推荐您使用","Dec-Session_Timeout":"会话失效","FR-Plugin_Server_Series_Name":"系列名","Fine-Dec_Chart_Add_Line":"添加","Dec-Mobile_Device_Auth_State_Unauthorized":"未授权","Dec-H5_Resource_Server_Tip":"以http/https开头的绝对路径","Fine-Engine_Condition_Operator":"操作符","Dec-Dcm_Connection_ReConnect":"重新连接","Dec-Task_Every_Other":"每隔","Dec-User_Not_Yet_Selected":"未选择用户","Fine-Engine_ReportServerP_Next":"下一页","Dec-Users_Import_Success_Count":"导入{}个用户","Dec-Create_Menu_Package_No_Empty_Tip":"位置不能为空","Dec-Plugin-Store_Mobile_Terminal":"移动端","Fine-Dec_Chart_Map_PolylineError":"图形不能交叉","Dec-System_Visit_Times":"系统访问次数统计","Dec-Log_Add":"添加","Dec-Directory_List":"目录列表","Dec-Init_Use_New_DB":"启用新数据库","Fine-Plugin_Engine_Transform_Failed_Tip":"模版转换时发现未知错误，无法生成转换文件，您的原文件将依旧可用\n可将您的错误信息告知我们的工作人员，我们很乐意接受您的反馈;","Dec-Plugin-Store_Forgot_Password":"忘记密码","Fine-Engine_RP_Back_To_Start":"可越级回退至首节点","Dec-Cluster_File_Sync_Calibration_Tip2":"非基准节点下的手动变更操作无法生效","Dec-Cluster_File_Sync_Calibration_Tip1":"基准节点手动变更资源文件后将自动同步到其他节点","Fine-Engine_Platform_RP_Email":"邮件提醒","Fine-Engine_Report_No_Offset":"无偏移","Dec-Cluster_Warning_Information":"未注册版本同时可访问模板IP个受限！","Fine-Engine_Report_Task":"任务","Fine-Engine_Report_ECP_Failed":"加密失败","Dec-Workflow_Task_Type":"任务类型","Dec-Mobile_Device_Auth_State":"授权状态","Fine-Engine_Report_Utils_Submit_Forcibly":"强行提交","Dec-Intelligence_Call":"智能预警","Dec-Add_Directory":"添加目录","Dec-Cluster_Configuration":"集群配置","Dec-Department_Post_Must_Conjugated":"部门和职位不允许只选择一个","Dec-Init_Account_Setting":"账号设置","Dec-Dcm_Connection_Form_Place_Input-Number":"请输入有效的正整数","Dec-H5_Integrated_Login_UniqueKey_Tip":"平台及模板访问请求中带有身份识别参数名，则会被拦截进行自定义登录认证","Dec-Basic_Delete_Success":"删除成功","Dec-Confirm_Delete_All_Tasks":"确认删除全部任务?","Dec-Init_Tip":"","Fine-Engine_Specified_Sheets":"指定sheet","Dec-Task_State_Pause":"已暂停","Fine-Engine_Report_HJS_Specified_Pages":"指定页","Dec-Cluster_File_Set_Calibration_Node_Success":"基准节点切换成功","Dec-Close_Other_Tabs":"关闭其他标签","Dec-Report_Warning_Info":"服务器压力过大，触发保护机制，请重新操作","Fine-Engine_No_Client_Print":"零客户端打印","Dec-Dcm_Connection_Form_AuthType":"认证方式","Dec-Error_Captcha_Error":"验证码错误","Dec-Workflow_Create_Time":"创建时间","Dec-User_Import_Tree_Clear_Tip":"导入树数据集将清空原有用户,确定导入?","Dec-Add_Task":"添加任务","Dec-Workflow_FS_End_Date":"结束日期","Dec-Security_Cookies_Enhance_Tip":"服务器开启HTTPS后方可开启","Dec-Platform_Directory_Linkname":"名称","Dec-Task_View_Preset_Expression_Example_Week":"每月第4个周五19点50分","Fine-Plugin-LargeDatasetExcelExport_Only_Support_RDB":"*仅支持关系型数据库","Dec-Add_Department":"添加部门","Fine-Engine_Base_December":"十二月","Dec-System-Selected_Char":"已选择的字符","Dec-User_Confirm_Password_Watermark":"请再次输入新密码","Dec-Monitor-Menu_Memory_Manager":"内存管理","Dec-Intelligence_Detection_Global_Miss_Tip":"建议增加名为“{}”的全局样式，或者修改模板，取消使用该全局样式","Dec-Generic-Last_Day":"最后一天","BI-Basic_Tuesday":"星期二","Dec-Upload_Lic_File":"上传lic文件","Dec-Look_BI_Global_Style":"BI全局样式","Fine-Engine_Cannot_Set_Duplicate_Role_Name":"不能设置重复的角色名","Fine-Engine_Please_Select_Step":"请选择步长！","Fine-Engine_Please_Install":"请安装","Fine-Plugin-LargeDatasetExcelExport_DB_Not_Supported":"不支持此类数据库","Dec-Authority_All_Templates":"所有模板","Fine-Engine_Func_AlphaFine":"AlphaFine","Dec-Basic_Template":"模板","Dec-Basic_Pad":"平板","Dec-Dcm_Active_Connections_Number":"活动连接数","Dec-Basic_Color":"颜色","Fine-Engine_Confirm":"确认","Dec-Cluster_File_Synchronization_Mode":"文件一致方式","Dec-Task_Ends_With_Cleaning_Up":"任务结束即清理","Dec-Cluster_File_Cache_Mode_Passive_Caching_Tip":"对访问到的资源文件进行缓存","Dec-System_Mail_Send_Fail":"邮件发送失败！","Fine-Engine_Report_Undo":"撤销","Dec-Intelligent_Cloud_Data_Upload_All":"继续上传","Dec-Mobile_Directory_Banner_Tip":"提示：仅官方实现的部分目录样式支持横幅显示","Fine-Engine_view":"在线分析","Dec-System_Email_Authentication":"邮件验证","Fine-Engine_Base_September":"九月","Dec-Login_Auto_Time":"后自动登录","Dec-User_Limit_Switcher":"限制使用用户","Dec-Cluster_Node_Exception_Reminder_Details":"异常情况","Fine-Engine_Write_Clear":"清空","Dec-Intelligent_Cloud_Verify_Success":"验证成功，开始下载","Fine-Engine_Basic_Fail_Location":"失败","Dec-Reg_Local_Machine_Code":"本地机器码","Dec-Error_Upload_App_Cover_Image_Tip":"提示：为了显示效果较佳，请选择尺寸不小于{}的图片，支持JPG，PNG格式。","Dec-Workflow_ExecuteFrequency":"执行频率","Dec-System_Extensible_More_Parameters":"更多参数","Dec-Register_Certificate_QRCode_Info":"请提供扫描二维码后显示的信息","Dec-System_Selected_Keyword":"已选择的关键字","Dec-Confirm_Delete_Device":"确认删除该设备?","FR-Plugin_Design_Center_Latitude":"中心点纬度","Dec-Clear_User":"清空列表","Dec-Workflow_Layout":"位置","Dec-Mobile_Confirm_Delete_Banner":"确定删除该元素？","Fine-Engine_Base_Sche_Tuesday":"星期二","Dec-Task_Handling":"处理方式","Fine-Engine_Report_HJS_Send_Successfully":"发送成功","Dec-User_Account_Setting":"账号设置","Dec-Override_Import":"覆盖导入","Fine-Engine_List_Filter":"列表筛选","Fine-Plugin_Engine-X":"新计算引擎","Fine-Plugin_Engine_Feature_Tree":"折叠树","Fine-Dec_Chart_TimeUnit_Minute":"分钟","Fine-Engine_Report_Wed":"三","Fine-Plugin_Engine_Transform_Result_Tip":"成功转换{}个模板","Dec-Mobile_Device_Operator":"操作","Dec-BI_Template":"BI模板","Dec-Task_APP_Notification":"APP通知","Fine-Core_LIC_Support_Privilege":"模板权限集成","FR-Plugin_Server_Meter_Main_Type":"扩展图表—仪表盘类","Dec-Look_Login_Copyright":"显示品牌信息","Fine-Engine_Edit_Clear":"清除","Dec-System_Login_Password_Sms_Remind_Tip":"提示：开启短信验证后，请确保其他成员已绑定手机，否则他们将无法接收验证短信","Dec-Security_Search":"查询","Dec-Plugin-Store_My_FR_Plugins":"我的插件","Dec-Workflow_Task_Operations":"任务操作","Dec-Workflow_Have_Come_To_You_For":"已经到你这里","Dec-Dcm_Connection_Other":"其他","Fine-Dec_Chart_Create_GEO_Map":"创建地理信息地图","Fine-Engine_Report_This_Template_Has_Exist":"这个模板已经存在","Dec-Summit_Authority":"提交认证","Fine-Engine_Even_Pages":"偶数页","FR-Plugin_Design_Interval_Time":"间隔时间","Dec-Design_No_Usable_Fields":"无可用字段","Dec-Machine_Code":"机器码","Dec-Authority_All_Package":"所有业务包","Dec-Error_Task_Timer_Calculate_Delete":"无法删除定时计算!","Dec-Login_Authentication_Password_Update_Multi_Tip":"当前密码已失效，请通过手机或邮箱进行身份验证，并修改密码","BI-Numerical_Interval_Number_Value":"请保证前面的数值小于/等于后面的数值","Fine-Engine_Report_Role_Source":"角色来源","Fine-Plugin_Engine_Tree_Expand_Layer_Label":"提示：当设置的展开层级超过此折叠树的最大层级时，预览效果按折叠树最大层级展示","Dec-Plugin_Error_InitClassesError":"加载类时发生错误","Dec-Basic_Demo":"示例","Dec-Cluster_App_Name_Watermark":"如：WebReport","Fine-Engine_Report_ECP_Error_Input":"密码格式不符","Fine-Dec_Chart_Stock_Error":"股价图必须要有","Dec-Plugin_Install_Success":"插件安装成功","Dec-Plugin_Error_InvalidInstallZip":"无效的安装包","Dec-Mobile_Server_URL":"服务器地址","Dec-Error_Length_Greater_Than_Long_Text":"文本长度不能大于10000个字符","Dec-Memory_Limit_Import_Excel_Count":"导入Excel单元格限制","Dec-Select_role_Tip":"请选择角色进行查看","Dec-Migration_Current_DB":"当前连接数据库：","Dec-Intelligent_Cloud_Internet_Demo_Text":"为您提供了示例以详细说明","BI-Multi_Date_Month_End":"月末","Fine-Dec_Chart_Map_CancelChanges":"取消更改","Fine-Dec_Chart_TimeUnit_Hour":"小时","Fine-Plugin-Engine_Sql_Slow":"sql性能慢","Fine-Engine_Platform_RP_Edit_Task":"编辑任务","Fine-Authority_Workflow_Privilege":"多级上报独立链接权限","Dec-Backup_Fail_Empty":"当前尚无可备份的{}","Dec-Look_Login_Title":"登录标题","Dec-Error_Repeat_Count_Null":"请输入重复执行次数","Dec-System_WebSocket_SSL_Protocol_Link":"https推荐采用nginx配置ssl","Dec-Sync_ID_Conflict_With_Platform":"和原有ID冲突","Dec-Cluster_File_Sync_Calibration_Node":"文件同步基准节点","Dec-Task_Push_Message_Cover_Upload_Tip":"提示：建议尺寸{}, {}以内JPG、PNG格式图片","Dec-Mobile_Directory_Icon_Custom":"自定义","Dec-Reg_Authentication_Success":"认证成功","Fine-Engine_Platform_RestartAfterSet":"配置结束立刻开始","Dec-Digital_Signature_Verification":"数字签名认证","BI-Basic_Charset":"编码","Dec-Cluster_Open_State_Server_Disable_Close_Tip":"集群开启状态下无法关闭状态服务器","Dec-Synchronize_Immediately":"立即同步","Dec-Backup_Jar_Update":"jar包更新","Dec-Monitor-Menu_System_Situation":"系统情况","Dec-Basic_Boolean":"布尔型","Fine-Engine_Report_Select_FS_Users":"选择平台用户","Dec-Plugin-Store_Official":"官方(帆软)","Fine-Dec_Chart_Rename":"重命名","Dec-Error_Duplicated_Username":"用户名不可重复","Fine-Dec_Chart_Map_DeleteLayers":"删除层级","Dec-Log_Server_Online_User_Count":"当前系统在线人数：{}","FR-Plugin_Server_Particle_Counter":"粒子计数器","Dec-Memory_Web_Socket_Error_Tip":"为什么显示空白？","Dec-Mobile_Server_Name":"服务器名称","Fine-Plugin-Engine_Preview_Message":"请将模板文件保存在当前运行环境目录下","Fine-Engine_Report_ReportServerP_Last":"末页","Dec-Users_Sync_Update_Strategy_Tips_0":"现有用户来源为: 同步数据集","Dec-Users_Sync_Update_Strategy_Tips_2":"切换同步数据集方式后,若现有用户也包含在同步数据集中,该用户将被更新,其他现有用户将被删除","Dec-Basic_Mobile":"手机","Fine-Engine_Condition_Not_Contains":"不包含","Dec-Users_Sync_Update_Strategy_Tips_1":"现有用户来源为: 导入/手动添加","Dec-Users_Sync_Update_Strategy_Tips_4":"手动添加用户后,现有来自同步数据集的用户将被清空","Fine-Core_Mobile_show":"移动终端报表展现","Dec-Users_Sync_Update_Strategy_Tips_3":"若确认切换用户来源,请选择新旧两个来源中重复用户的更新方式","Fine-Engine_Report_Err_The_Number_Is_Larger_Than_The_Maximum_Value":"值大于允许输入的最大值","Dec-Users_Sync_Update_Strategy_Tips_5":"切换导入用户后,若现有用户也包含在导入的数据集中,该用户将被更新,其他现有用户将被删除","Dec-Components_Upload_Private_File":"已上传秘钥","BI-Basic_Year_Quarter":"年季度","Dec-Intelligent_Cloud_Internet_Auto_Upload":"开启“每月1日自动上传”\n定时将日志上传至云中心分析引擎","Dec-Dcm_Delete":"删除","Dec-Look_Theme_Switched_Success":"主题切换成功,刷新平台后生效!","Fine-Engine_FS_Frame_Delete_Data":"删除数据","Fine-Engine_Report_Native_Print_Loading_Failed_Title":"本地打印软件启动失败！","Dec-Task_Timer_Calculate":"定时计算","Fine-Dec_Invalid_File_Type_To_Upload":"是禁止上传的文件类型，允许上传的文件包括","Fine-Engine_Report_ECP_Input_Oldpwd":"请输入旧密码","Dec-Dcm_No":"否","Dec-Dcm_Login_Error":"登录信息已失效，请重新登录","Fine-Plugin_Engine_Feature_Tree_Async":"折叠树-异步取数","BI-Basic_Formula_Watermark":"提示:您可以通过输入B1来写入第一行第二列的数据。","Fine-Engine_HF_The_Page_Number":"页码","Dec-Init_Connecting":"正在连接数据库...","Dec-System_Sql_Char_Empty_Tip":"当前无已转义的字符","Dec-Data_Set_Data_Source_Connection":"数据来自数据连接","Dec-Data_Set_Tree_Build_Source":"构建自数据集","Dec-Check_Time":"检测时间","Dec-Account":"账号","Dec-Intelligent_Cloud_Plugin_Need_Install":"未检测到相应资源，无法使用云端运维功能，请重新安装","Fine-Plugin_Engine_Template_Name":"模板名字","Dec-Disk_Sort":"外排","Dec-Authority_Connection":"数据连接","Dec-Dcm_Connection_Form_Database_Max_Wait":"最大等待时间","Dec-Log_Switch":"切换","Dec-Failed_Lic_Register_Out_Of_Limit":"已达可授权数量上限","Dec-Error_Reg_File_Type":"该文件类型不支持，请上传{}文件","Dec-Chcek_Advice":"修改建议","Dec-Data_Set_Preview_Max_Rows":"最多预览行数","BI-Previous_Page":"上一页","BI-No_Select":"搜索结果为空","Dec-Log_Level":"日志级别","Dec-Report_Workflow_Not_Sync_Authority":"不同步","Fine-Plugin_Engine-X-Preview":"X引擎预览","Fine-Engine_Platform_RP_Operator":"操作人员","Fine-Engine_Base_March":"三月","Dec-Plugin_Error_NetworkAnomaly":"网络异常","Dec-Login_Verify_Password_Strength_Tip":"当前密码不符合密码强度要求，请联系管理员绑定{}，然后进行身份验证并修改密码","Dec-Basic_Connection_Management":"数据连接管理","Fine-Core_LIC_Support_Advanced_Formula":"增强分析统计模块","Fine-Dec_Chart_Map_Remove_Disable":"没有可删除的层级","Dec-Log_Output":"导出","Dec-Basic_Alert":"提示","Fine-Engine_FS_Generic_Simple_Cancel":"取消","Dec-Basic_Get_Captcha":"获取验证码","Fine-Engine_ConditionB_In":"包含于","Dec-Error_Internet_Disconnect":"本机或服务器网络已断开，请联网后重试","BI-Load_More":"点击加载更多数据","Dec-User_Mobile":"手机","Fine-Engine_Platform_RP_Rollback":"回退","Dec-Reg_Authentication_App_Content":"认证工程内容","Dec-Log_Print_Times":"打印次数","Fine-Engine_Not_NULL":"不能为空","Dec-Dcm_Connection_Testing":"正在测试连接，请稍候...","Dec-Basic_Select_Decision_Users":"选择平台用户","Dec-Server_Port":"端口","Dec-Next_Step":"下一步","Dec-Log_Username":"用户名称","Dec-Basic_Lowercase":"小写字母","Fine-Engine_Current_Sheet":"当前sheet","Dec-Piece":"条","Fine-Engine_Report_ReportServerP_Previous":"上一页","Fine-Plugin_Engine_Cell_Show_As_Tree_Node":"显示为折叠树","Dec-Task_Only_Run_Once":"只执行一次","Dec-Un_Register":"未注册","Fine-Engine_Report_Select_FS_Roles":"选择平台角色","Fine-Engine_Please_Input_With_Right_Format":"请用正确的格式输入","Fine-Engine_PageSetup_Portrait":"纵向","Dec-Login_Email_Watermark":"请输入邮箱","Dec-Init_Waring_Tip_Two":"","Dec-Task_Local_File":"本地文件","Dec-Intelligent_Lifecycle":"生命周期","Dec-Basic_Success":"成功","Dec-Management_Map_Draw_Polygon":"画多边形","Fine-Engine_Sort_Sort":"排序","Dec-Basic_Version":"版本","Fine-Engine_Report_Privilege_Password_Can_Not_Be_Null":"密码不能为空","Dec-Authority_RoleNames":"角色","Fine-Engine_Function_The_Selected_File_Cannot_Be_Null":"文件不能为空","Dec-System-Cache_Template_Set":"模板缓存属性设置","Dec-Register_Certificate":"服务凭证","BI-Basic_Week":"周","Dec-Basic_Database":"数据库","Dec-Intelligent_Cloud_Data_Disclosure_Tip":"用户可以随时看到上传了哪些数据","Dec-Management_Map_Non_Layers":"没有可编辑的层级","Dec-Plugin_Error_PluginAlreadyForbidden":"插件已经被禁用","Dec-Plugin_Error_ResourceConflict":"资源冲突","Dec-Reg_Max_Connection":"最大连接数","Dec-Mobile_Template_Layout_Grid":"网格布局","Dec-Failed_Lic_License_Expired":"证书过期","Dec-H5_Integrated_Login_UniqueKey":"身份识别参数名","Dec-Close_All":"关闭全部","Dec-Login_Password_Changed":"密码已被修改，请使用修改后的密码重新登录","Fine-Engine_Page_Setup_Portrait":"纵向","Fine-Engine_Platform_Month_Count":"月","Dec-System-Time_To_Idle_Seconds":"最大空闲时间","Dec-Module_Connection_Dataset":"服务器数据集","Fine-Engine_page_plus":"新分页预览","Dec-Task_Last_Day":"最后一天","Dec-Platform_Report_Under_Editing_Can_Not_Delete":"仪表板正在被{}编辑,不能删除","BI-Basic_Clears":"清空","Dec-Directory_Move_No_Privilege":"无权限移动到当前节点下","Dec-Basic_Image":"图片","Dec-Login_Authentication":"身份验证","Dec-Init_Select_Hsql_Tip":"","Dec-Mobile_Device_Auth_State_No_Limit":"不限","FR-Plugin_Design_View_Control":"视角","Dec-Security_XSS_Tip":"开启后请求头部增加X-XSS-Protection:1; mode=block 设置","Fine-Engine_Please_Enter_Define_Group_Name":"请输入定义组名称","Dec-Cluster_Redis_Add_Node":"请添加节点","Dec-User_Role_Import_Dep_NO_Edit_Tip":"同步数据集部门不可编辑","Fine-Engine_Parameter_Formula":"公式","Fine-Dec_Chart_Unit_Hundred_Thousand":"十万","Dec-Task_Mount_Directory":"挂载目录","Dec-Templates_All_User_Templates":"所有用户模板","Dec-System_Password_Strength_Digit":"位","BI-Basic_No_Select":"不选","Dec-Backup_Delete_Lists":"确定删除所选备份?","Dec-User_Post_User_Remove_Self_Tip":"将自己移出该职务，可能对您的权限产生影响，确定移出？","Dec-Error_Duplicate_Directory_Names":"节点名重复","Dec-Basic_Design":"设计","Fine-Dec_Chart_Chart_Name":"图表","Dec-Basic_SMS_Template":"短信模板","Dec-Report_Workflow_Syncing_Failed":"权限同步失败","Dec-Backup_Is_WAR_Tip":"当前服务器部署方式为war包压缩部署，不支持备份还原功能","Dec-Backup_Fail":"备份失败","Dec-Intelligent_Memory_High_Tips":"系统检测到负载状态过高时提醒运维人员","Dec-Init_Config_How":"如何配置？","Dec-Login_Verify_Password_Single_Tip":"修改密码需要进行身份验证，请联系管理员绑定{}，然后进行身份验证并修改密码","Dec-GradeAuth_No_Support":"分级授权功能未注册,如需使用请联系销售","Fine-Engine_Export_Excel_Page":"分页导出","Dec-Cluster_State_Server":"状态服务器","Fine-Engine_Record":"记录","Dec-Workflow_Day":"天","Dec-Edit_User":"编辑用户","Dec-Monitor-Not_Exist":"中模板路径不存在","Dec-Task_Push_Message_Type_Link":"链接消息","Fine-Dec_Chart_Map_EditLayers":"编辑层级","Dec-Deployment_HSQL_Database_Connection_Fail_Tip":"请删除WEB-INF/embed/finedb/目录下的db.lck文件。为了避免该异常再次出现，建议成功启动后配置外接数据库。","Dec-Migration_Switching":"正在切换数据库","Dec-Plugin_Error_InitInstanceError":"初始化插件对象失败","Dec-Transport_Thread_Pool_Size":"数据转移最大线程数","Dec-Basic_Shift":"移出","Fine-Engine_Report_JavaScript_Commit_To_Database_Failed":"提交入库失败","Fine-Engine_gif":"GIF图片导出","Dec-Intelligent_Cloud_Plugin_Enable_Success":"云端运维启用成功","Dec-Reg_Lic_App_Name":"认证应用工程名","Fine-Engine_Report_Email_Can_Preview_Report_Content":"正文预览报表内容","Dec-Dcm_Connection_Form_Connection_Max_Number":"最大活动连接数","Dec-Basic_Server_Protocol":"服务器协议","Fine-Engine_Base_NOT_NULL_Des":"不能为空","Dec-Disk_Sort_Dump_Threshold_Description":"当容量到达配置的阈值之后，触发外排","Dec-Login_First_Tip":"您是第一次使用数据决策系统，请先配置您的管理员用户名和密码","Dec-User_Id":"用户ID","BI-Created_By_Me":"我创建的","Fine-Dec_Chart_Supported_Format":"支持格式:.gif/.jpg/.png/.bmp","Dec-Cluster_Save_Config_Waiting":"正对将要保存的配置进行测试连接","Dec-Report_Auth_Control":"模板认证","Fine-Engine_Write_Are_Stashed_Clear":"是否要清空暂存数据？","Fine-Engine_Platform_RP_Page_Writeage_Write":"页面填报","Dec-Config_Time":"配置频率","Dec-Workflow_None":"无","BI-Basic_Simple_Tuesday":"二","Dec-Intelligence_Memory_Limit_Common":"通用限制","Dec-Log_User_Visit_Count":"访问用户个数","Dec-Cluster_File_Server_Use_Tip":"需要配置文件服务器","BI-Basic_Week_Begin":"周初","Dec-Cancel_Pin_Panel":"取消固定","Dec-Error_Login_Choose_Username":"请选择用户名","Dec-Task_Preview_Template_Content":"正文预览模板内容","Fine-Engine_Basic_File_All_File_Uploaded":"所有文件已上传","Dec-Directory_Show_Type":"类型","BI-Word_Align_Right":"文字居右","Dec-Error_Task_Restart_Frequency_Null":"重启频率不能为空!","Dec-Authority_All_Post":"所有职务","Dec-Plugin_Error_PluginAlreadyRunning":"插件正在运行","Dec-Error_Get_Captcha":"获取验证码出错","Dec-Mobile_Template_Layout_Fit":"自适应布局","Dec-Task_Report":"填报","BI-Basic_Vars":"变量：","Fine-Dec_System_DB_Not_Transferred":"强烈建议正式使用前配置更稳定强大的外接数据库，当前内置hsql数据库仅适合本地试用。","Dec-Records_Attachment":"附件发送","Dec-Management_Map_Draw_Circle":"画圆","Fine-Dec_Default_Error_Tip":"非常抱歉，您无法查看该页面","BI-Summary_Values":"汇总","Dec-Workflow_Print":"打印","Dec-Plugin-Store_Chart":"图表","Dec-Dcm_Socket_Unable_Connect_Tip":"可能出现编辑冲突","Dec-Plugin-Store_Disabled":"禁用","Dec-Error_Connection_Database":"请选择数据源","Dec-Look_Login_Copyright_Tip":"控制登录页底部是否显示帆软品牌信息","Dec-Intelligent_Cloud_Privacy":"云端运维数据安全保护政策","Dec-Authority_All_Directories":"所有目录","Dec-LDAP_Referral":"转诊","Dec-Mobile_Device_Search":"查询","Dec-Module-Template_Management":"模板认证","Dec-New_Message":"新消息","Dec-System_Mail_Receiver_Mail":"收件人邮箱","Fine-Dec_Chart_Trend_Line":"趋势线","Dec-Heart_Time":"心跳","FR-Plugin_Server_To_Longitude":"终点经度","Dec-Schedule_Running_Task_Tip":"以下定时任务已被触发执行","Dec-Deployment_Socket_Ports":"提示：若存在多个端口，请以 , 隔开","Dec-Look_Platform_Style_Unify":"一体式背景","Dec-Basic_Preview":"预览","Dec-Export_Cluster_Info":"导出集群注册信息","Dec-Manage_Homepages":"管理首页","Dec-Task_Attachment_Archiving":"附件存档","Dec-Plugin_Error_UnexpectedError":"未知错误","BI-Basic_Single_Quarter":"季","Fine-Plugin_Engine_Batch_Transform":"批量格式转换","Dec-Mobile_Directory_Banner_UpLoad_Tip":"提示：请选择尺寸不小于{}的图片，支持JPG、PNG格式。","Dec-Basic_Save_Success":"保存成功！","Dec-Init_Login_Tip":"登录后可在平台根据\n需要进行数据库配置","Dec-Authority_PlatformModule":"管理系统","BI-Basic_Clear":"清除","Dec-User_Import_Fail":"导入用户失败","Dec-Security_Frequencies_Restrict_Desc":"秒内单IP允许访问","BI-Basic_Report_Or_Analyze_Keep_Formula":"填报/分析时，保留公式用于计算","Fine-Plugin_Engine_Transform_Suspend":"中止","Dec-System_Mail_Sender_IP":"发件人IP","Dec-Report_Edit":"报表编辑","Dec-My_Message":"我的消息","Fine-Engine_Base_Fri":"五","Dec-Connection_HW_Fusioninsight":"华为Fusioninsight","Fine-Engine_Report_HJS_All_Pages":"所有页","Dec-Workflow_Cpt_Name":"模版名称","Dec-Server_Table_Data":"服务器数据集","Dec-Click_Add_New":"点击新增\"{}\"","Dec-Plugin_Shop_Need_Update_Version":"需要更新到10.0插件商店,是否更新?","Dec-Directory_Link_Path_No_Empty":"链接路径不能为空","Dec-Memory_Not_Support_Tip":"技术升级中，设计器内置的服务器暂不支持内存管理功能，如需使用内存管理功能请使用服务器部署方式","Dec-Error_Old_Password_Error":"旧密码错误","Dec-How_To_Register":"如何注册？","Dec-Management_Map_Start_Polygon":"点击并开始","Dec-Error_Duplicate_Link_Names":"链接名重复","Dec-Plugin-Store_Quick_Login":"快捷登录:","Dec-Plugin-Store_Free":"免费","Dec-Intelligence_Overflow_Info":"超出提示","Fine-Engine_Platform_Short_Nov":"十一","Dec-Authority_Settings_Schedule_Authority_Tip":"开启后可对每个定时调度任务进行权限控制","Dec-Mobile_Directory_Template_Position_Bottom":"目录下方","Dec-Task_Print_File":"打印文件","Dec-Plugin_Register_Count":"个插件未成功注册","Dec-Not_Less_Than":"建议不应小于","Dec-Memory_Release_Warning_Info":"服务器压力过大，触发保护机制，请稍后刷新该页面重新访问","Dec-Authority_Filter_System_User_ID":"系统用户名","Dec-Users_Import_Failed":"导入失败","BI-Upload_File_Size_Error":"文件大小不支持","Fine-Plugin_Engine_Exception_Marshal":"序列化/反序列化错误","Dec-Error_Homepage_Name_No_Blank":"首页名不能为空","Dec-MD5_Encryption":"内置MD5加密","Fine-Engine_Web_ConditionB_Contains":"包含","BI-Basic_Export_Or_Edit_Keep_Formula":"导出/编辑结果时，保留公式","Dec-Dcm_Connection_Detailed_Information":"详细信息","Dec-Workflow_Note":"备注","Dec-Basic_RMB":"元","Dec-Register_Version_Jar_Time":"{}（JAR：{}）","Fine-Engine_Utils_UnDelete_Row":"撤销删除行","Dec-Dcm_Default":"默认","Dec-Basic_Email_Watermark":"请输入邮箱","Dec-Deployment_WAS_Jar_Home":"${WEBSPHERE_HOME}/AppServer/java/lib/","Dec-Workflow_Thu":"四","Dec-Authority_Privilege_Error_Text":"您没有该页面的访问权限，如需访问请联系管理员","Dec-Mobile_Directory_Edit_Banner":"编辑","Fine-Engine_Type_Date":"日期","Dec-Min_Cube_Free_HDSpace_Rate":"更新所需空间倍数","Dec-Reg_Upload_Fail":"注册失败，请重新注册","Dec-Example_User_Suffix":"例如: @fanruan.com","Fine-Engine_RP_Add_Process":"添加流程","Dec-Plugin-Store_Login_By_QQ":"用QQ号登录","Dec-Workflow_ExecuteOneTime":"执行一次","Dec-Log_Access_Module":"统计对象","Dec-Error_Task_Condition_Formula_Null":"请输入执行公式!","Fine-Engine_Prospecting_File":"Prospecting File","BI-Basic_September":"九月","Dec-System_Password_Update":"密码定期更新","Fine-Engine_Report_Right":"右","Fine-Engine_Report_Start_Print":"开始打印","Dec-Mobile_Directory_Banner":"横幅","Dec-Cluster_Nodes_Manage":"节点管理","Dec-Show_All_Message":"查看全部消息","Dec-Authority_Recovery_Inherit_Bubble_Tip":"确定清除该用户关于{}的单独权限设置、恢复对部门/角色权限的继承？","Fine-Engine_Export_Print_Not_Support":"当前版本不支持打印导出, 请升级您的lic","Dec-Homepage_Type":"首页类型","Dec-Look_Style_Two":"样式二","FR-Plugin_Server_Time_Main_Type":"扩展图表—时间类","Dec-Data_Set_Preview_Rows":"显示行数","Dec-Custom_Password_Can_Not_Null":"自定义密码不能为空","Fine-Engine_Platform_RP_Start_Node":"开始节点：","Dec-System_WebSocket_Fail_Token":"使用过程中将无法保持登录状态","Fine-Engine_Session_Timeout":"Session Timeout...由于当前Session的超时, 或者超过了允许的并发用户数, 产生Session过期。获得更多的帮助信息, 请点击<a href\\=\"\\#\" onClick\\=getCompanyWebsite()>这里</a>","BI-More_Than":"大于","Fine-Engine_Report_Err_The_Time_Out_Of_Range":"超出时间范围","Fine-Engine_Value_Not_Match":"值不匹配","Dec-Workflow_Exist_Null_Node":"该节点中存在未填写项","Fine-Engine_Type_String":"字符串","Fine-Engine_Create_New_Groups_For_Remaining_Values":"将各个剩余值分别创建为新组","Dec-User-List":"用户列表","Dec-Ten_End_Dialog":"近10分钟内结束会话数","Dec-System_Sql_Char_Selected_Empty_Tip":"当前无已选择的字符","Dec-Task_Push_Message_Type_NEWS":"图文消息","Dec-Users_Sync_Data_Strategy_Cover":"保留。若上述对象也包含在同步数据集中，该对象将被更新，其权限设置将被保留","Dec-Reg_Registered_Function_Points":"已注册功能点","Dec-Connection_Pooling_Info":"连接池信息","Dec-Workflow_Rollback_To":"回退至","Dec-Cluster_Nodes_Exception_Tip":"该节点与{}节点的jar包不一致，请及时更新jar包并重启该节点。","Dec-Workflow_Value":"值","BI-Basic_Sim_Sun":"宋体","Dec-Basic_Recommended_Image_Size":"提示：建议尺寸{}*{}，支持JPG,PNG格式","Dec-Users_Sync_Failed_Reason":"失败原因","Dec-Cluster_Computing_Engine_Pop_Reason":"","Fine-Engine_Platform_SingleTime":"次","Fine-Engine_pdf":"PDF导出","Dec-Task_Restart_Once_Every":"分钟一次","BI-Current_Is_Last_Page":"当前已是最后一页","Fine-Dec_Chart_Save_Edit":"是否保存本次修改?","Dec-Memory_Limit_Import_Excel_Max_Count":"导入Excel最大单元格数","Dec-Task_Add_Fail":"任务添加失败","Fine-Engine_Report_Deploy_You_Could_Access":"您还可以由此进入","Dec-Directory_Multi_Delete":"批量删除","Fine-Engine_Base_Short_Apr":"四","Dec-Look_Platform_Frame_Style":"框架样式","Fine-Engine_Base_Wed":"三","Dec-Sync_Name_Conflict":"ID与其他对象重复","Dec-Cluster_File_Synchronization_Mode_Tip":"各节点读取WEB-INF目录下的assets、reportlets、resources、schedule、dashboards、treasures、../backup文件夹内容会保持一致性","Fine-Engine_Platform_RP_End":"结束","Fine-Engine_Base_Short_Jan":"一","FR-Plugin_Design_To_Latitude":"终点纬度","Dec-Workflow_Schedule-Weekly":"每周","Dec-Error_Templet":"发生错误的模板","Dec-Task_Test_Upload_Fail":"测试上传失败","Fine-Dec_Chart_Preview_Data":"导入预览数据","Dec-Workflow_Every":"每","Dec-Public_Cloud_Auth":"公有云认证","Dec-System_SMS_Recipients_Number":"接收手机号","Fine-Engine_RP_Authority_Edit":"权限编辑","BI-Basic_Parameter_Please_Set_Parameter_Name":"请先设置参数名","Dec-Mac_Address":"mac地址","Dec-Failed_Lic_Param_Input_Error":"您输入的参数有误","Fine-Dec_Chart_Import_Data":"导入数据","Fine-Engine_Report_Title":"标题","Dec-Intelligent_Cloud_Plugin_Need_Enable":"检测到相应资源被禁用，无法使用云端运维功能","Dec-Basic_Finish_Import":"导入完成","Dec-Workflow_Tue":"二","Fine-Engine_Native_Print":"本地软件打印","Dec-Plugin_Downloading_Plugin":"下载插件中","Dec-System_SqlInj_Escape_Char":"已转义的字符","Dec-Auth_Open_Connection":"开放权限连接","Dec-Error_Directory_No_Auth":"缺少目录管理权限","Dec-Log_Time_Per_Request":"平均耗时(ms)","Dec-Mobile_Device_User_Input_Tip":"请输入","Dec-Deployment_Socket_Port":"websocket端口","Dec-Look_Login_Page":"登录页","Datasource-Datasource":"数据源模块","Dec-Basic_Create":"创建","Dec-Task_Parameter_Setting_Desc":"除通用结果外，根据默认用户组内的用户单独生成结果","Dec-Data_Set_Server_Name_Duplicate":"数据集名称重复","Dec-Workflow_Send_Offline_Report":"发送离线报表","Dec-Error_Multi_Export_Task_Template_No_Empty":"任务模板不能为空","Dec-Plugin_Error_CopyLicenseFileFailed":"拷贝License文件失败","Dec-Confirm_Delete_Connection":"确定删除该数据连接？","Dec-Direct_Import":"直接导入","Dec-Cluster_Cache_System_How":"如何配置缓存系统？","Dec-Init_Hsql_Tip":"适用于个人本地试用","Fine-Engine_Platform_Short_Feb":"二","Fine-Engine_Print":"打印","Dec-Memory_Limit_Single_Data":"单数据集行数限制","Dec-System-Forget_Password_Tip2":"2.服务器开启短信服务，且用户绑定手机后，可使用短信认证","Dec-System-Forget_Password_Tip1":"提示：1.服务器设置邮箱，且用户绑定邮箱后，可使用邮箱验证","Dec-Backup_File":"备份文件","Dec-Workflow_FS_Report_Type":"类型","BI-Basic_Current_Month":"本月","Dec-Migration_Start_Action_Fail":"开始迁移失败","Dec-Data_Set_Not_Support_Type":"该数据集类型仅支持在设计器中预览","Dec-Version_Info":"版本信息","Dec-Basic_FR_Login":"帆软通行证登录","Dec-Authority_Only_Open_Modules":"开放权限模块","Dec-Dcm_Connection_Form_Database_Initial_Size":"初始化连接数","Dec-Cluster_Redis_Cluster":"Redis集群","Dec-System_Login_Lock_Password_Error":"密码错误","Fine-Core_M_Data_Analysis":"数据分析","BI-More_And_Equal":"大于等于","Fine-Engine_ConditionB_Does_Not_Equal_To":"不等于","Fine-Engine_Report_This_Name_Has_Exist":"该名称已存在","Dec-H5_TOP_NAVIGATOR_BUTTON_COLOR":"按钮颜色","Dec-Failed_Lic_License_Domain_Error":"域名不在允许范围内","Dec-Report_Procedure":"上报流程管理","BI-Up_Page":"向上翻页","Dec-Deployment_Database_Connection_Fail_Tip":"请确认数据库连接信息","Fine-Engine_Excel_Import_Cover":"覆盖导入","Dec-Schedule_Setting_SMS_Hint":"提示：支持填写多个号码，以,隔开","Dec-Resource_Export_Bind_DataSheet_Package_Authority":"导出数据表权限时将同时导出所在业务包权限","Dec-Security_Watermark_Content":"水印内容","BI-Basic_Work_Day":"工作日","Fine-Engine_Platform_Setting":"选项","Fine-Engine_Param_Template_Save":"保存为常用组合","Dec-Workflow_Institution":"机构部门","Fine-Engine_Basic_Clear":"清除","FR-Plugin_Design_Theme_Color_Second":"主题色2","Fine-Plugin_Engine_Exception_Compile":"预编译错误","Dec-Date_Interval":"日期区间","Dec-LDAP_Admin_Name":"管理员名称","Fine-Plugin_Engine_Template_To_Transform":"待转换模板","Dec-Mobile_Directory_Icon_Simple":"简约","BI-Basic_Auto":"自动","Fine-Plugin-LargeDatasetExcelExport":"大数据集导出Excel","Dec-Log_Error_Simple":"简单的出错信息","Dec-Look_Background_Image_Upload_Tip":"提示：为使显示效果较佳，请选择尺寸不小于{}的图片，支持PNG、JPG等格式","Dec-System_Password_Strength_Length_More":"长度不低于{}位","Dec-Resource_Migration_Result_Succeeded_List":"查看导入成功资源列表","Dec-Dcm_Connection_Type_Filter":"类型筛选：","Dec-Workflow_March":"三月=","Fine-Engine_Platform_Short_Oct":"十","Dec-Dcm_Connection_Form_URL":"URL","Dec-System_Apply_SMS_Service":"申请开通短信服务","Dec-Intelligent_Cloud_Data_Upload_Success_Tip":"日志上传成功。为了保证系统的稳定运行，已为您开启自动上传，定期分析系统性能问题。您可返回设置页面关闭自动上传","Dec-Workflow_Send_Date":"发送时间","Dec-Workflow_Previous_Node_Staff":"上节点人员","Dec-Cluster_Synchronization_File_Waiting":"正在同步文件","Dec-Authority_Package_Auth_Setting":"权限设置","Dec-Dcm_Connection_JDBC_Warning":"请确认已经将krb5.Conf文件添加到/webapps/webroot/WEB_INF/resources目录","Fine-Engine_Excel_Foot_Tip_Page_Count":",显示{}行数据","Dec-Init_Admin_Account_Success_Tip":"此密码只显示一次，请牢记您的用户名和密码","Dec-Cluster_File_Cache_Mode_Close_Caching_Tip":"节点间同步模式下无法关闭缓存","Dec-Task_Dispatcher_Object":"调度对象","Dec-Average_Cache":"平均内存","Dec-Seconds":"秒","Dec-Latest_Revision_Date":"最近修改日期","Dec-Log_Visit_Count":"系统访问次数","Dec-Connect-Failed":"连接失败","Dec-Look_Login_Page_Plugin":"登录页插件","Dec-Workflow_Pass_After_All_Operations":"该节点所有操作人员完成后流转","Dec-Mobile_Directory_Add_Banner":"添加","Dec-System_Mail_Sender":"发件人","Dec-Records_File_Print":"文件打印","Dec-Error_Confirm_Password_Null":"确认密码不能为空","Dec-Management_Map_Zoom_In_Title":"放大","Fine-Dec_Chart_ZoomOut_Title":"缩小","Dec-Config_File_Check":"配置文件检测","Dec-Http_Public_Key":"公钥","FR-Plugin_Server_Symbol_Pin":"水滴","Dec-Init_Admin_Account_Tip":"请设置管理员账号：","Dec-System_Password_History_Check":"历史密码重复校验","Dec-Task_SMS_Notification":"短信通知","BI-Basic_Count":"个","Dec-Plugin_Cloud_Analysis_Features":"云端运维","Dec-Error_Duplicated_Templates":"存在重名模板","Dec-Error_Task_Repetition":"请输入时间间隔","Fine-Dec_Focus_Point_Resource_Upload":"资源上传","Dec-Intelligent_Cloud_Internet_Detail":"功能详细说明","Dec-Users_Role_Conflict_Field":"角色重复验证字段","Dec-Basic_Write":"填报","Dec-Data_Connection_Control":"数据连接控制","Dec-One_Day":"1天","Fine-Engine_Platform_RP_Leapfrog_Back":"越级回退","Dec-Records_Send_FTP":"FTP上传","Dec-Task_Using_Attachments":"使用附件","Dec-Workflow__Select":"流程选择","Dec-Look_Configure_Custom":"自定义","Fine-Engine_Base_Widget_Error_Mark_Text":"找不到控件类型","Fine-Core_LIC_Support_WorkBook":"多sheet报表设计","Dec-Error_Task_Detail_Null":"请设置执行明细频率","Dec-Reuse_Authority":"权限复用","Dec-Report_Workflow_Syncing_Success":"同步成功","Dec-System_Password_Strength_Min_Length":"最小长度","Dec-Login_Get_Captcha":"获取验证码","Fine-Engine_Param_Template_Max":"参数模板最多保存9个","FR-Plugin_Design_Trail_Color":"轨迹颜色","Dec-Plugin-Store_Switch_Account":"切换账户","Dec-Authority_Package":"业务包权限","Dec-Reset_Password":"重置用户密码","Dec-Management_Map_Upload_Images":"导入图片","Fine-Engine_RP_All_Tasks":"所有任务","Dec-Workflow_Execute_Month":"执行月","Dec-Plugin-Store_Pay":"付费","Fine-Plugin_Engine-Monitor-Incompletion":"非全量取数","Fine-Engine_Base_Sche_Wednesday":"星期三","Dec-Pre_Fire_Time":"上次运行时间","Dec-System_Send_Time":"发送时间","Dec-Plugin_Cloud_Analysis_Feature_UploadFileByMarket_Desc":"通过帆软市场上传服务器运行数据","Dec-Cluster_Parameter_Redirect_Timeout_Tip":"当节点间转发的请求超时不响应，前端会进行报错提醒，并终止请求，此参数最低不小于10秒","Dec-Workflow_Parameter-Boolean":"布尔型","Dec-Reg_Dongle_Authentication_Waiting":"正在认证加密锁","Dec-Package_No_Login_Field_Tip":"请先设置登录用户名所在字段","Dec-Intelligent_Cloud_Zero_Cost":"零成本","Dec-User_Screening":"用户筛选","Dec-Task_Run_Formula_Judge":"公式判断","Dec-User_Dataset_Syncing_Success":"同步成功","Dec-Basic_Parameter_Setting":"参数设置","BI-Basic_Month_Begin":"月初","Fine-Core_Formula_Date_Termination":"日期格式有误，公式计算中止","Fine-Engine_Platform_SimgleNumber":"号","Dec-Basic_Seconds":"秒","Dec-Authority_Reuse_Source":"复用来源","Dec-Memory_Limit_Sql_Max_Run_Time_Tip":"很抱歉，sql执行时间过长触发保护机制，请稍后重试。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Error_Need_Set_Reuse_Target":"请先设置生效目标","Dec-Workflow_Hour":"小时","Dec-Workflow_De":"的","Dec-System_SMS_Send_Fail":"信息发送失败!","Fine-Engine_Month":"月","Dec-Management_Map_Geographic":"地理信息","Dec-Platform_Directory_Phone":"手机","Dec-Log_Clearing":"清理中","Dec-Create_Database_Table":"添加数据库表","BI-Basic_Quarter_End":"季末","Dec-Cluster_Parameter_Redirect_Max_Error_Status_Try_Time":"尝试次数","Dec-Workflow_Short-May":"五","Dec-Error_Connection_Name_Contain":"数据连接名字不能包含.'","Dec-Error_Email_Not_Null":"邮箱不能为空","Dec-Deployment_Jar_Missing_Tip":"将{}目录下的tools.jar复制到{}文件夹下","Dec-Mobile_Device_Phone":"手机","Dec-Disk_Sort_Description":"启用外排可以减少内存压力，但是对速度有一定影响","Dec-Workflow_Short-Mar":"三","Dec-Log_Visit_Count_Daily_Month":"当月日均访问量","FR-Plugin_Design_Height_Texture":"高度纹理","Dec-Intelligent_Cloud_Low_Threshold":"低门槛","Dec-User":"用户","Dec-Report_Workflow_Process_Already_Done":"该任务已经处理完成","Dec-Plugin-Store_Probation":"试用:","Dec-Management_Resource_Migration":"资源迁移","BI-Basic_Underline":"下划线","Dec-Basic_Clear":"清空","Dec-System_Login_Lock_Password_Error_Label":"次，锁定","Dec-Error_Incorrect_Password_Username":"用户名或密码错误","Dec-Backup_Path":"备份路径","Dec-Platform_Directory_Allmove":"批量移动","Dec-Task_Select_Template":"选择模板","Dec-System_Sql_Keyword_Empty_Tip":"当前无已禁用的特殊关键字","Dec-Basic_Clean":"%时，强力清除","Fine-Engine_Export_Excel_LargeData_Page_Info":"请耐心等待文件的生成，所花费的时间将视数据量的大小而定，在此过程中请勿关闭当前页面或浏览器。","Dec-Deployment_Jar_Way":"非WAS部署：","Dec-Backup_Latest_JAR_Version":"最新jar","Dec-Connection_Download_Driver":"下载对应驱动","Dec-Cache_Active_Dialog":"存活会话数","Fine-Engine_Plugin_Store_Unexpected_Error":"未知错误","Dec-H5_TOP_NAVIGATOR":"顶部导航栏","Dec-Dcm_Connection_Form_Database_Test_Between_Eviction_Millis":"空闲连接回收器休眠时间","Dec-Init_Database_Choose":"数据库选择","Dec-Error_Basic_Name_Not_Allow_Blank":"名称不能为空","Dec-Data_Set_Server_Name_Contain":"数据集名称不能包含.","Dec-Cluster_File_Server_Closed_Tip":"文件服务器的关闭操作在重启后生效，请立即重启","Dec-Failed_Lic_Account_Input_Error":"该账户密码并未被授权","Dec-Intelligent_Cloud_Data_Null":"已选时间日志不存在","Fine-Engine_Sort_Sorting":"排序中","Dec-User_Role_Import_Role_NO_Edit_Tip":"同步数据集角色不可编辑","Dec-Reg_Authentication_Machine_Code":"认证机器码","Dec-Task_State_End":"已结束","BI-Basic_Value":"值","Dec-Plugin-Store_No_Plugins":"已安装了0个插件","BI-Basic_Unrestricted":"无限制","Dec-Cluster_Error_Remind":"集群异常提醒","Fine-Engine_Platform_RP_Edit_Process":"编辑流程","Dec-Reg_Local_Mac_Address":"本地mac地址","Dec-Failed_Lic_License_Ip_Error":"ip 不在允许范围内","Dec-Error_Link_Name_No_Blank":"链接名不能为空","Dec-Task_Get_SMS_Template":"，以获取短信模板","Dec-Backup_Update_Now":"立即更新","Dec-User_Status":"状态","Dec-Authority_Schedule_Configure_Text_All":"所有任务","Fine-Engine_RP_Deliver":"分发","Dec-Look_Platform_Color_Scheme":"配色","Dec-Workflow_June":"六月","Dec-Mobile_Device_Binding":"设备绑定","Dec-Connection_Query_Type":"请求类型","Dec-Workflow_Sender":"发送人","Dec-Workflow_Timed_Write":"限时填报","Dec-Intelligent_Cloud_Data_Desensitization":"数据脱敏","BI-Conf_Formula_Text_Field":"文本字段","Fine-Engine_Condition_End_With":"结尾是","Dec-Deployment_Port_Detection_Tip":"仅检测更改后的端口是否被占用","Dec-Plugin_Intelligent_Cloud_Update_Online_Toast":"检测到新资源，请在页面底部更新云端运维体验最新功能","Dec-Plugin-Store_Key_Word":"关键字","Fine-Dec_Chart_Map_SimpelShape":"'松开鼠标完成绘制'","Dec-Init_Select_Database_Tips":"请根据使用场景选择数据库：","Fine-Engine_Failed":"失败","Dec-Security_Browser_Cache_Disabled":"浏览器缓存禁用","Fine-Engine_Platform_RP_Report":"上报","BI-Quarter_Trigger_Error_Text":"请输入1~4的正整数","Fine-Engine_Report_Show_All_Remaining_Values":"显示所有剩余的值","Dec-Info_Call":"信息通知","Fine-Plugin_Engine_Tree_Expand_Layer":"展开层级：","BI-Basic_More":"更多","Dec-Plugin_Intelligent_Cloud_Emial_Set_Tip":"提示：建议填写企业邮箱，以防错过分析报告的提醒邮件，支持填写最多{}个邮箱，以”,“隔开","Dec-Monitor-Resource_Path_Is":"配置文件路径为","Fine-Engine_Platform_RP_Rollback_To":"回退至","Fine-Engine_Face_View":"查看","Dec-HTTP_Authentication":"HTTP认证","Dec-System_External_Database":"外接数据库","Dec-Authority_Source_Edit":"编辑权限","Dec-System-Forget_Password_Set":"忘记密码设置","Dec-Mobile_Add_Device":"添加设备","FR-Plugin_Server_Black_Layer":"黑色","Dec-Report_Visit_Detail":"模板访问明细","FR-Plugin_Design_Trail_Length":"轨迹长度","BI-Basic_Simple_Sunday":"日","Dec-Security_Access_Frequencies_Restrict":"访问频率限制","Dec-Cache_Dialog":"内存会话","Dec-Add_Link":"添加链接","Dec-Enable_SMS":"开启短信功能","Dec-Log_Template_Visit_Count_Daily_Month":"当月活跃模板数","Dec-Workflow_Short-Dec":"十二","Dec-Sync_ID_Conflict":"对应多个ID","Dec-Mobile_Loading_Custom":"自定义","Fine-Engine_Preview":"预览","Fine-Engine_Define_Group_Value":"定义组的值","BI-Font_Family_Default":"默认字体","Dec-System_Login_Binding_Phone":"绑定手机号","Fine-Engine_Detail_Message":"详细信息","BI-Multi_Date_Relative_Current_Time":"相对当前时间","Dec-System_Sql_Keyword_Selected_Empty_Tip":"当前无已选择的特殊关键字","Dec-Users_Other_Source_Data":"其他来源数据","Dec-Users_Department_Conflict_Field":"部门重复验证字段","Fine-Engine_Excel_Import_Clean":"清空导入","Dec-Intelligent_Cloud_Intranet_Upload":"上传至云中心分析引擎","Dec-Share_to_Me":"分享给我的","Dec-Memory_Release_Clear_Max":"清除单元格个数超过","Dec-Intelligence_Detection_Global_Miss_Widget":"缺少全局控件“{}”","Fine-Engine_Platform_NoLimit":"无限期","FR-Plugin_Design_Node_Name":"节点名称","Dec-Local_Machine_Auth":"本地机器信息认证","Fine-Dec_Focus_Point_Resource_Export":"资源导出","Dec-Directory_Name":"名称","Fine-Engine_FS_Generic_Simple_Wrong":"出错了","Fine-Engine_Report_HJS_Mail_to":"收件人","Dec-Basic_Private_Message":"私人消息","Fine-Engine_Report_ECP_Re":"请重新进行加密","BI-Basic_Wednesday":"星期三","Dec-Basic_Captcha_Timeout":"验证码超时","Dec-Memory_Limit_Sql_Max_Run_Time":"sql最大执行时长(s)","Dec-Reg_Credentials":"认证信息","Dec-Look_Login_Background_Accept_Tip":"· 支持PNG、JPG等格式","Dec-Cluster_Save_State_Server_Fail":"未能成功连接状态服务器，请确认相关配置准确后再次连接","Dec-Mobile_Directory_Banner_Link_Tip":"链接路径不符合规范","Dec-Workflow_Cpt_Operation":"模版操作","Dec-Login_Change_Password_Forbid":"您的账号无法修改密码，如有疑问请联系管理员","Dec-Platform_Homepages":"平台首页","Dec-Connection_Idle_Connections":"空闲连接数","Dec-Basic_Minute_Dialog":"分钟前会话","FR-Plugin_Server_Name":"名称","BI-Basic_Parameter_Refresh":"刷新","Dec-Error_Not_Support_SMS":"短信平台功能未注册,如需使用请联系销售","Dec-Thread_Pool_Size":"更新时可用最大线程数","Dec-Basic_Query":"查询","Dec-Intelligent_Cloud_Plugin_Install_Success":"云端运维安装成功","Fine-Engine_Generic_Invalid_File_Type_Security":"禁止上传，文件类型不符合安全防护规则","Dec-Cache_Report":"内存预警","Fine-Engine_Func_Print_Export":"打印导出","Dec-System_BI_Param":"BI参数","Dec-Task_SMS_Template_Network":"网络连接失败，无法读取短信模板","Dec-Mobile_Device_User":"所属用户","Dec-Task_Dispatcher_Result":"调度结果","Dec-Multi_Database":"多维数据库","Dec-Log_Clear_Day_Sure":"确认清理{}前的日志?","Dec-Sync_ID_Conflict_Detail":"对应的ID: {}/{}","BI-Basic_Please_Input_Content":"请输入内容","Dec-System_WebSocket_SSL_Protocol_Tips":"协议类型。http选择plain，https选择ssl","Dec-Over_Time":"超时时间","Dec-Basic_Regain_Captcha":"重新获取","Dec-Deployment_Restart_Tip":"请修复后重启服务器","Fine-Dec_Chart_TimeUnit_Second":"秒","Dec-User_Disable":"禁用","Dec-Session_End_Solution":"请刷新该页面","BI-Conf_Add_Formula":"添加公式","Dec-Reg_Upload_Success":"注册成功","Fine-Engine_Print_Set_Printer_Offset":"打印机偏移","BI-Basic_Day":"天","Dec-Grade_Auth_Manage":"分级权限管理","Dec-Send_Success":"发送成功","Dec-Platform_Messaging":"平台消息","Dec-Manage_Directory":"管理目录","Dec-Task_State":"运行状态","Fine-Plugin-Engine_Sort_After_Expand":"扩展后排序","Dec-Confirm_Delete_Sql_Keyword":"确定删除该特殊关键字？","Dec-System_Password_Policies_Set":"密码策略设置","Dec-Basic_Print_Config":"打印设置","Dec-Intelligent_Cloud_Upload_To_Cloud_Center":"“一键上传”日志至云中心分析引擎","Fine-Engine_FS_Generic_Simple_Printer":"打印机","Dec-Task_Open_Link_Platform":"定时结果链接在平台内打开","Dec-Components_Private_File_Password":"请输入密码或上传密钥文件","Dec-Management_Security":"安全管理","BI-Basic_Function_Description":"公式说明：","BI-Basic_Sim_Hei":"黑体","Dec-Reg_Dead_Time":"过期时间","BI-Apple_Light":"苹方-light","Dec-Look_Platform_Head_Title_Style":"顶部标题行样式","Fine-Engine_Plugin_Finerest_Addon":"帆软应用中心","Dec-Add_Template":"添加模板","Dec-Error_Login_Unbind_Mail":"该邮箱尚未绑定过账号","BI-Basic_Bold":"加粗","Fine-Engine_End_At":"终止于：","Fine-Dec_Chart_Map_DrawCircle":"画圆","Dec-Task_Not_Open_SMS_Template":"尚未开通短信服务","Dec-Dcm_Creator":"创建者：{R1}","BI-Basic_Simple_Saturday":"六","Dec-Task_Set_Parameter_Defaults":"设置参数默认值","Dec-Basic_Addressee":"收件人","Dec-Push_To_Database":"输出至数据库","Dec-Memory_Release_Minutes_Ago_Session":"分钟前的会话","Dec-System_Send_Test_Sms":"发送测试消息","Fine-Plugin-LargeDatasetExcelExport_TableData_Valid":"数据集不能为空","Dec-Sync_Source_Id_Conflict_Detail":"重复对象: {} {}","Dec-Intelligence_Detection_Global_Miss_Color":"缺少图表预定义配色“{}”","BI-Basic_Or_Formula":"或公式","Dec-Log_Setting_Items":"设置项","Fine-Engine_Cancel":"取消","Dec-Error_Homepage_Name_Can_Not_Empty":"首页名称不能为空","Dec-Basic_Phone_View":"手机查看","BI-Selected_Data":"已选数据：","Dec-Migration_Has_Data":"该数据库已存在平台数据，导入数据前将清空原有平台数据，确认连接该数据库？","BI-Focus_Point_Directory_Management":"目录管理BI","Dec-Data_Set_Preview_Error":"预览失败","Dec-Plugin_Cloud_Analysis_Feature_SolidSendByJsonp_Desc":"通过浏览器获取服务器运行数据","Dec-Dcm_Connection_No_Search_Result":"无搜索结果","FR-Plugin_Server_From_Latitude":"起点纬度","Dec-Multi_Export_Search_Tasks":"搜索任务权限","BI-Multi_Date_Month_Next":"个月后","Dec-Mobile_Directory_Banner_Title":"名称","Dec-User_Platform_No_Privilege":"无操作权限","Dec-Task_Push_App_Terminal_Tip":"提示：APP仅支持链接消息，其它消息类型都将转为链接消息进行发送","Dec-Confirm_Delete_Post":"确认删除该职务?","Dec-Log_Print_Count":"打印次数","Dec-System_SMS_Test":"信息测试","Dec-H5_Single_Login_Fail":"错误代码：11205040，用户无法使用","Dec-Error_Folder_Name":"不符合文件夹名规范","FR-Plugin_Design_Alpha":"上下角度","Dec-Department_Post_Item_Empty_Text":"<未命名>","Dec-Dcm_Connection_Check_Number":"只允许为整数","Dec-Log_Sync_Id_Change":"id冲突","Dec-Basic_No":"否","Fine-Dec_Chart_Unit_Billion":"十亿","Dec-Mobile_Device_Pad":"平板","Fine-Engine_jpg":"JPG图片导出","Fine-Engine_Platform_Sure_To_Delete":"确认删除","Dec-Management_Map_Draw_Rectangle":"画矩形","BI-Basic_Parameter_Type_Date":"日期","Dec-Email_Sender_Password":"密码","BI-Conf_Formula_Logic_Function":"逻辑函数","Dec-Plugin_Error_InvalidPluginFolder":"不是有效的插件目录","Dec-Error_Percent_Range":"请输入0-100的整数","Dec-Workflow_Custom_FS_Users":"自定义用户","Dec-Error_Phone_Format":"请填写正确的号码","Fine-Engine_Platform_RP_Node_Name":"节点名称","Fine-Engine_FS_Msg_Not_Login":"消息发送失败，无发送者","Dec-System_Slider_Authentication_Tip":"提示: 开启后，输错2次密码则会出现滑块验证","Dec-Users_Sync_Update_Strategy_Tips":"是否保留现有非同步数据，包括导入/添加的用户、部⻔职务、⻆色？","Fine-Core_LIC_Support_Remote_Design":"远程设计","Dec-Use_Resource_Server":"使用资源服务器","Dec-Directory_Need_Select_Template_Tip":"请先选择模板","Dec-Log_Analytics_Download":"下载","Dec-Workflow_Custom_FS_Roles":"自定义角色","Dec-Intelligent_Cloud_End_Date_Error":"所选时间不得超过当前时间","Dec-Real_Name_Can_Not_Null":"姓名不能为空","Fine-Engine_Enter_Task_Name":"请输入任务名称","Dec-System_Connect_Cloud":"连接网址管理中心","BI-Basic_Week_End":"周末","BI-Multi_Date_Quarter":"季度","Dec-Reg_Local_App_Name":"本地应用工程名","Dec-Log_Clear_Fail":"日志清理失败","Dec-Intelligence_Memory_Limit_Single":"部分模板单独限制","Dec-Workflow_Last_Node":"上一节点：","Dec-H5_Insert_JS":"引入js","Dec-Log_Template_Visit_Count_Daily":"日活跃模板数","Dec-Log_Access_IP":"访问IP","Dec-Common-Help_Decision":"决策系统","Fine-Dec_Focus_Point_Manual_Backup":"手动备份","FR-Module_Engine":"引擎模块","Dec-Error_New_Password_Null":"新密码不能为空","Dec-Dcm_Connection_Form_Password":"密码","Fine-Plugin-Engine_Transformer_Tips":"转换提示","Dec-Task_Restart":"任务重启","Fine-Engine_Platform_RP_Page_Writerocess_Select":"流程选择","FR-Plugin_Design_Play_Interval":"播放间隔","Dec-Error_Natural_Number":"请输入自然数","Fine-Engine_Utils_Import_Excel_Data":"导入[Excel]","Dec-Error_Task_Detail_Hours":"请填写正确的小时","Fine-Plugin_Engine_Transform_Select_Template":"请选择模板","BI-Check_Selected":"查看已选","Dec-Basic_Double":"双精度型","Dec-Plugin-Store_Report_Write":"填报","Dec-Look_Login_Web_Page_URL":"网页URL","Dec-Workflow_Closed":"关闭","Dec-Error_No_Current_Node_permissions":"没有当前节点权限","Fine-Engine_Platform_RP_Deliver":"分发","Dec-Update_NetWork_Error":"网络连接失败, 未能读取更新信息","BI-Basic_Search":"搜索","Dec-Task_Timer_Result_Link":"定时结果链接","Dec-Delete_All_Task":"删除全部任务","Dec-Multi_Export_Delete_Task":"刪除任务","Dec-Look_Platform_Style":"平台样式","Dec-Log_Reuse":"复用","Dec-Failed_Lic_Report_Version_Error":"版本不匹配","FR-Plugin_Design_Z_Axis":"Z轴","Fine-Engine_Check_Communication":"请检查网络通讯是否正常及服务器是否正常运行","Dec-Workflow_July":"七月","Dec-Users_Sync_Failed_Object":"失败对象","Dec-Basic_Current_Time":"当前时间","Fine-Plugin_Engine_Transform_Success_Tip":"转换成功","Dec-Log_Backup":"备份","Dec-Synchronization_Frequency":"同步频率","Dec-Authority_Personnel":"人员管理","Dec-Plugin-Update_Dependence_Success":"依赖插件更新成功","Dec-Connection_HW_DWS":"华为云DWS","BI-Basic_Add_Or_Condition":"添加条件(或)","Dec-Module-Plugin_Operate":"插件管理","Dec-Login_Change_Password_Strength_Tip":"当前密码不符合密码强度要求，请修改密码","Fine-Engine_Local_Offset":"本机偏移","Dec-Platform_Directory_Terminal":"展示终端","BI-Basic_March":"三月","Dec-Reg_Registered_Plugin_Packages":"已注册插件包","Fine-Engine_Platform_RP_Reach_Node":"到达该节点","Fine-Plugin_Engine-Transform-Success":"转换成功, 请查看设计器目录同名文件","Dec-Intelligent_Cloud_Connection":"网址管理","FR-Plugin_Design_From_Longitude":"起点经度","Dec-System_Mail_Content":"邮件内容","Dec-Dcm_Connection_Form_JNDI_Context":"上下文","Dec-Workflow_No_Back_Target":"no back target","Dec-Dcm_Connections":"连接","BI-Current_Is_First_Page":"当前已是第一页","Dec-Workflow_Inform_Appending":"　","Fine-Engine_Platform_RP_Review":"审核","Dec-Export_Authority_Configuration_Too":"同时导出权限配置","Fine-Engine_Choose_None":"不选","FR-Plugin_Server_Scatter3D_On_Globe":"三维点地球","Dec-Cluster_File_Server":"文件服务器","Dec-Template_Limit":"模板限制","Dec-Data_Connection":"数据连接","Dec-System_Sql_Char_UnSelected_Empty_Tip":"当前无未选择的字符","FR-Plugin_Design_Count":"计数值","Dec-Look_Style_One":"样式一","Dec-Task_Report_Path":"使用模板","FR-Plugin_Design_X_Axis_Width":"X轴宽度","Dec-Log_View_Times":"查看次数","Fine-Engine_Report_Layout":"布局","Dec-Data_Connection_Name":"数据连接名","Dec-Intelligence_Detection_Global_Miss_Color_Tip":"建议增加名为“{}”的图表预定义配色，或者修改模板，取消使用该图表预定义配色","Dec-Look_Directory_Covers":"目录封面","Dec-Builtin_SHA_Encryption":"内置SHA加密","Dec-Dcm_Connection_JNDI_Form_ConnectionName":"JNDI的名字","Dec-Error_Task_Name_Exists":"任务名称已经存在","Dec-Update":"更新升级","Fine-Engine_Report_Ecp_Being":"正在加密……","Dec-Reg_Status":"注册状态","Dec-Mobile_Server_URL_Format_Error":"服务器地址格式错误","BI-Basic_Check_Validation":"检查合法性","Fine-Engine_Export":"导出","Dec-Plugin_Cloud_Analysis_Feature_ShellExecute":"通过shell命令获取服务器配置信息","Dec-Management_Map_Add_Image":"添加自定义图片","Dec-Mobile_Theme":"主题","FR-Plugin_Design_Value_Format":"数值格式","Dec-Cluster_Parameter_Redirect_Tip":"节点间存在内部转发的请求，配置以下参数来解决节点间请求异常的问题","Fine-Engine_Current_File_Upload_Progress":"当前文件上传进度","Fine-Engine_Platform_Refresh_Successfully":"刷新成功","Fine_Core_Func_AI":"智能运维","Dec-Auth_Search_Package":"搜索业务包权限","Dec-Error_Duplicate_Post_Names":"职务名重复","Fine-Dec_Chart_Map_DeleteLast":"删除上一个画的点","Dec-Memory_Used_Percent":"内存利用率","Fine-Engine_Excel_Submit_Add_Task":"新建任务","Fine-Plugin_Engine-Transform-Failed":"转换失败, 请查看日志","Fine-Dec_Chart_ZoomIn_Title":"放大","Dec-Authority_Set_Detail":"权限项：{} 类型：{}","Dec-Security_Frequencies_Restrict_Tip":"开启后将对报表访问频率进行限制，缓解CC攻击、爬虫爬取及暴力轮询","FR-Plugin_Server_Scatter":"散点","Dec-Intelligent_Cloud_Data_Security":"数据安全","Dec-Failed_Lic_Overdue":"MAC 地址不匹配","Dec-Last_Login_Info_Example":"提示样例","Dec-Look_Login_BackgroundImg":"背景图片","Dec-Basic_Copy_Success":"复制成功","Fine-Engine_Plugin_Store_Not_Login":"未登录","Dec-Report_Workflow_Sync_Authority_Tip":"目录权限中有关于上报页面的权限设置,是否从目录权限出同步权限设置?","Dec-Workflow_To_Check":"待审核","FR-Focus_Point_Template_Debug":"模板调试","BI-Focus_Point_User_Management":"用户管理BI","Dec-Login_Re_New_Password":"请再次输入新密码","Dec-Log_All_Operation_Count":"总操作次数","Dec-Department_Of_User":"用户所在部门","Dec-Mobile_Device_User_Belong_To":"所属用户","BI-Basic_May":"五月","Dec-Task_Simple_Repeat_Execution":"简单重复执行","Dec-Plugin_Intelligent_Cloud_Unset_Email_Auto":"未设置通知邮箱，将无法接受分析报告的邮件提醒。建议设置邮箱提醒，方便我们及时通知到您！","Fine-Engine_Report_ReportServerP_First":"首页","Dec-System-Simple_LRU":"最近使用","Fine-Engine_Write_Enhanc_No_Select":"不选","Dec-Workflow_Deal_With_It_As_Soon_As_Possible":"请尽快处理","Fine-Engine_Report_Backup_Cpt":"备份模板","Dec-System_Login_Lock":"登录锁定","Dec-Add_Process":"添加标签","Dec-Error_Duplicate_Homepage_Names":"首页名重复","Fine-Dec_Chart_TimeUnit_Month":"月","Dec-System_Login_Lock_Admin_Unlock":"管理员解锁","Fine-Plugin_Engine-Compile-All":"编译所有模板","Dec-System-Always_Reload_Template":"总是重新读取模板","Dec-Reg_Re_Authentication":"重新认证","Fine-Engine_Widget_Message_Letter_Space":"8","Dec-Users_Post_Conflict_Field":"职务重复验证字段","BI-Basic_Current_Day":"当天","Dec-Basic_Refresh":"刷新","Dec-System_WebSocket_Fail_Memory":"实时内存显示等异常","Dec-Dcm_Connection_Form_Principal":"客户端principal","Dec-Login_Powered_By_FanRuan":"Powered by 帆软","Dec-Basic_Save":"保存","Dec-Task_Name":"任务名称","Dec-Mobile_Directory_Style_Square":"九宫格","Dec-Task_Basic_Settings":"基本设置","Fine-Engine_bmp":"BMP图片导出","Dec-Failed_Lic_Redis_Update_Error":"redis 数据库出错","BI-Basic_Current_Quarter":"本季度","Dec-Authority_Source_Preview":"查看权限","Dec-System_Login_SMS_Authentication_Reset_Password":"短信验证重置密码","Dec-System_Print":"打印","Dec-Plugin_Delete_Dependence":"是否删除依赖环境","Dec-Basic_IP":"IP地址","Fine-Plugin_Engine_Exception_Data_Dispatch":"计算调度错误","Dec-Template_Last_Change_Time":"修改时间","Dec-Plugin_Error_BelowSystem":"插件版本过低，需升级","Dec-Workflow_Task_Status":"任务状态","BI-Basic_And_Formula":"且公式","Dec-Mobile_Server_URL_Empty_Error":"服务器地址不可为空","Fine-Plugin_Engine_Exception_Sheet":"报表页计算错误","Fine-Engine_Function_RemoteDesign":"远程设计","Fine-Dec_Focus_Point_Config":"配置信息","Fine-Engine_layer":"行式引擎","BI-Basic_Thursday":"星期四","Dec-Plugin_Error_PluginRunningError":"运行过程出错","BI-Basic_Parameter_Type_String":"字符串","Dec-Mobile_Device_Auth_State_Authorized":"已授权","Dec-Intelligent_Cloud_Analytics_Need_Update_Offline":"检测到云端运维资源长时间未更新，可前往云端运维更新资源","Dec-Templates_Already_Hangout":"已挂出","Dec-Workflow_Refresh":"刷新","Dec-Plugin-Store_Category":"类别","DEC-Login_Not_Logged":"未登录用户","BI-Conf_Formula_Or":"或公式条件","Dec-Thread_Pool_Size_Description":"线程数越高，处理速度越快，但同时服务器负载压力也越大。故合理设置线程数可在服务器可承受负载压力范围内最大程度地提升性能","Dec-Error_Login_Email_Unable":"平台未设置邮件服务器，无法接收验证消息。您可以使用其他验证方式或联系管理员帮助重置密码","Dec-Retry_Max_Times":"最大重试次数","Dec-Reg_Authentication_Fail":"认证失败，请重新认证","Fine-Core_Data_Upload":"数据多级上报","Fine-Engine_Form_Action":"操作","Dec-Cluster_File_Server_Share_Mode_Confirm":"切换至节点间自动同步后建议最多使用两个节点，确认切换？","Dec-Start_Time":"开始时间","Dec-Platform_My_Dashboard":"我的仪表板","BI-Basic_Background_Color":"背景色","FR-Plugin_Design_Play_Status":"播放状态","Dec-Error_Email_Separator_Format":"请确认邮箱及分隔符格式正确","Dec-Error_Not_Input_English":"请输入英文字符","Dec-Login_To_Slider":"拖动滑块完成拼图","Dec-Color_Scheme_Light":"浅色","Dec-Mobile_Directory_Banner_Pad_Error_Tip":"平板图片不可为空","Dec-Plugin-Store_Cost":"费用","Fine-Engine_Report_Utils_Delete_Column":"删除列","Dec-Backup_Frequency":"备份频率","Dec-Task_Restart_Repeat_Time":"两次重启间隔：","Fine-Engine_Base_Sche_Hour":"时","Fine-Engine_Report_Deploy_Page":"部署页面","Dec-Jar_Time":"JAR:","Dec-Intelligent_Cloud_To_Detail":"前往云中心查看详情","Dec-Management_Map_Delete_Latest_Data_Item":"删除上一个画的点","Fine-Engine_Error_Input_Value":"错误的输入值","BI-Please_Enter_SQL":"请输入SQL","BI-Conf_Formula_Numberic_Function":"数值函数","Fine-Engine_page":"分页预览","Dec-Authority_User_Authority_Change_Tip_2":"可点击恢复按钮清除用户单独设置、恢复对部门/角色权限的继承。","Dec-Basic_Back_Home":"回到主页","Dec-Confirm_Delete_Selected_User":"确认清空以下已选用户?","Dec-Task_Run_Always":"始终执行","Dec-Basic_Bind_Account":"账号绑定","Dec-Task_Test_Upload":"测试上传","Dec-Authority_User_Authority_Change_Tip_1":"对用户权限进行单独设置后该用户的本条权限将不再受部门/角色设置影响。","Fine-Engine_Report_Export_Excel03":"excel03","Fine-Engine_Report_Deploy_Official_Website":"官方网址","Dec-Login_Info_Not_Available":"登录信息已失效，请重新登录","Dec-Workflow_Task_Created_By_Me":"我创建的任务","Fine-Engine_Err_The_Number_Is_Larger_Than_The_Maximum_Value":"值大于允许输入的最大值","Dec-Mobile_Global_Loading_Background_Custom":"自定义","Dec-Plugin_Error_CycleDependencyFound":"发现循环依赖","Dec-Task_Push_Message_Type_FILE":"文件消息","Dec-More_Data_Connection":"更多数据连接","Fine-Engine_Custom_Sort":"自定义排序","Dec-Workflow_View_Task":"查看任务","Dec-Session_Lifecycle_End":"模板未操作时长过长","Fine-Engine_Report_Native_Print_Loading_Failed_Tip":"安装最新版本（{R1}版本）本地打印软件后，才能继续打印，可点击<a {R2}>下载更新</a>；<br>若已安装最新版本，可<a {R3}>查看启动帮助</a>或<a {R4}>关闭当前窗口</a>。","Dec-Connection_Client_Principal":"客户端principal","Fine-Engine_Report_ECP_Error_Same":"密码不能与原始密码相同","Dec-Common-Help_Update":"升级指南","BI-Conf_Add_Condition":"添加条件","Dec-Plugin_Update_Dependence":"是否更新依赖插件","Dec-Management_Map_Add_Directory":"添加目录","Dec-Task_Edit_Detail":"编辑明细频率","Fine-Engine_Report_Total":"全部","BI-Continue_Select":"继续选择","Dec-Plugin-Update_Dependence_Failed":"依赖插件更新失败","Dec-Templates_Hangout_Directory_Target":"目录节点","Fine-Engine_Platform_RP_Sponsor":"发起人","Fine-Engine_Plugin_Store_Login":"登录","Dec-Plugin-Store_Register":"注册","Dec-All_Connection":"所有连接","Dec-Error_System_Login_Timeout_Max":"超时时间不可超过14天","Dec-Mail_Account":"发件人账户","Dec-Basic_Vertical":"纵向","Dec-Basic_Analyze":"分析","Dec-Intelligent_Cloud_Incentive_Extend_Service_Time":"·  延长企业技术支持服务时间","Dec-Basic_Network_Error":"网络连接失败","Dec-Common-Help_Scheduler":"定时调度","Dec-Basic_Open":"开启","Dec-Basic_File_Name":"文件名称","Fine-Engine_Server":"服务器","Dec-User_Count_No_Limit":"不限","Dec-Reg_Lic_Context_Error":"证书内容不正确","FR-Plugin_Design_Goal_Value":"目标值","Dec-Error_IE9_Below_No_Support":"您使用的浏览器版本过旧,为了获得更好的使用体验,请升级浏览器至更高版本,推进使用Chrome浏览器和Firefox浏览器","Dec-Dcm_Connection_Handup_Information":"收起信息","Dec-Backup_To_Transferred_Tip":"如需使用备份还原功能请配置外接数据库","Fine-Plugin_Engine_Transform_Tip":"转换产生的模板将保存于原模板同一目录下，不影响原模板","Dec-Unbind":"解除绑定","Dec-Task_Restart_Frequency_Desc":"重启频率：每隔","Dec-Migration_Importing":"导入数据中...","Fine-Core_Func_AlphaFine":"AlphaFine","Dec-Version_Number":"版本号","Fine-Engine_Edit":"编辑","Dec-Report_Workflow_Sync_Authority":"同步权限","Dec-Intelligent_Cloud_Generated_Report":"已生成报告","Dec-Task_Transport_Mode_Active":"主动","Dec-Look_Platform_Popover_Background_Color":"悬浮面板背景","Fine-Engine_ConditionB_Operator":"操作符","Fine-Engine_Page_Total":"共","Dec-Authority_Only_Open_Roles":"开放权限角色","Dec-Delete_Failed":"删除失败","Dec-Cluster_Synchronization_File_Success":"文件同步成功","Dec-Plugin-Store_Plugins_Count":"个插件","Fine-Engine_Plugin_Store_Forgot_Password":"忘记密码","FR-Plugin_Design_Y_Axis_Width":"Y轴宽度","Dec-Dcm_Third_Step":"第三步","Fine-Plugin_Engine_Transform_Result":"转换结果","Fine-Dec_Chart_Point_Name":"点名称","Dec-System_Configured_Proxy_Server_Tips":"开启后可以配置WebSocket请求端口；集群下自动开启","Dec-System_Slider_Authentication":"滑块验证","Dec-Template_Name":"模板名称","Dec-System_Input_Username":"请输入用户名","Fine-Engine_Report_Not_Allow_Null":"不允许为空","Dec-Dcm_Connection_Form_Driver":"驱动","Dec-Connection_Is_Empty":"请选择左侧数据连接或点击新建数据连接","Fine-Dec_Chart_TimeUnit_Day":"日","Dec-Intelligent_Cloud_Open_Service":"开通云端运维服务","Dec-System_Login_Unlock_Target":"解锁对象","Dec-Task_Add_Success":"任务添加成功","Fine-Engine_FS_Handle_Affairs":"处理事务","Dec-Plugin_Error_UpdateParameterError":"升级指定的参数错误","Dec-Plugin_Downloading_Dependence_File":"下载依赖文件","Dec-Error_Connection_Test_First":"请先测试连接","Fine-Dec_Chart_Map_Name":"区域名","Fine-Plugin_Engine_Transform_Logs":"转换日志：","Dec-Intelligent_Cloud_Not_Support":"集群下暂不支持，功能开发中","Dec-System_Information_Content":"信息内容","Dec-Basic_CC":"抄送","Dec-Workflow_TaskEndWhenOneTime":"任务执行一次后即结束","Dec-Log_Clear_Warning_Size":"日志文件大于","Dec-Error_Addressee_Null":"请选择收件人","Dec-Login_Change_Phone_Fail":"手机修改失败","FR-Plugin_Server_To_Latitude":"终点纬度","Fine-Engine_Report_Sche_Hour":"时","Dec-Task_SMS_Content":"您好，${taskname}于${time}运行成功运行。","Dec-Log_Clear_All":"清空","Dec-Choose_Export_Resource_Tip":"请选择需要导出的资源","FR-Plugin_Server_Map_Main_Type":"扩展图表—地图类","Fine-Engine_Base_Sche_Second":"秒","Dec-Basic_Support_Formula_Input":"支持公式输入","Dec-Workflow_Send_Time":"发送时间","Fine-Engine_Report_HJS_Send_Failed":"发送失败","Dec-Error_Open_Forget_Password_Authentication":"当前用户认证方式为{}，开启后用户仍无法使用忘记密码功能","Dec-Whole_Project":"整体工程","Fine-Engine_Report_Week":"周","Fine-Engine_Report_Data_Get_Data_Error":"获取数据时发生错误","Dec-Connection_Only_JDBC":"平台仅支持使用JDBC的数据连接的管理","Dec-System_Password_Strength_Length":"长度不低于","Dec-Dcm_Connection_Form_JNDI_Collapse-Attributes":"收起","Dec-Reset_Password_Button":"生成用户密码","Fine-Engine_Report_ECP_Pwd_Short":"密码长度过短","Dec-Mobile_Global_Loading_Show_Close":"显示取消加载按钮","Dec-Basic_Column_Name":"列名","FR-Plugin_Design_Frame_Color":"边框主题色","Fine-Engine_Report_Sort_Horizontal":"排序（横向）","Fine-Engine_Report_Native_Print_Loading_Tip":"正在启动本地打印软件，请稍后...","Dec-Basic_Formula":"公式","Dec-Init_Database_Setting_Suggest":"数据库设置","Dec-Workflow_Refresh_Successfully":"刷新成功","Dec-System-SqlInj_Forbid_Char":"字符","BI-Basic_Prompt":"提示","Fine-Dec_Chart_Map_DrawMarker":"画标记点","Dec-Basic_Setting":"设置","Dec-Example_Retrieve_Location":"例如: DC=finereport","Fine-Engine_Plugin_Store_Password":"密码","Dec-Confirm_Delete":"确认删除？","Fine-Engine_Basic_OK":"确定","Dec-Authority_All_Roles":"所有角色","Dec-Deployment_Configuration_Exception_Detected":"检测到{}项配置异常","Dec-Template_Authority_Config":"认证配置","Dec-Log_Operation_Time":"操作时间","BI-Basic_Formula_Report_Vars":"报表参数","Dec-Workflow__View":"任务流程查看","Dec-Users_Filed_Must_Appear_In_Pairs":"{}名称与ID需成对选择","Dec-Confirm_Clear_Users":"确认删除所有用户?","Dec-Mobile_Server_Name_Empty_Error":"服务器名称不可为空","Dec-Reg_Authentication_Dongle_Number":"认证加密锁序列号","Fine-Engine_Basic_Email_Send_Error":"请检查邮件服务器配置，确认SMTP邮件服务器以及用户名密码和收件人地址填写正确，并确保网络畅通。","Dec-Login_Re_Set":"重新设置","Dec-Cluster_File_Server_Un_Use_Tip":"仅建议2个节点时使用","Dec-Login_Change_Email_Success":"邮箱修改成功","BI-Multi_Date_Today":"今天","Dec-Workflow_Data-upload":"数据多级上报","Dec-Authority_Post_Carrier_Tip":"此处职务权限与部⻔下的职务权限互相独立，分别作用于所包含的用户","Dec-Login_Remember":"保持登录状态","Dec-Deployment_Connection_Fail":"{}连接失败","Dec-Users_Import_Failed_Help_Tip":"或在帮助文档搜索相关错误码了解更多","Dec-Plugin_Error_DownloadDependFileFailed":"下载依赖文件失败","Dec-Confirm_Delete_Task":"确认删除该任务?","Fine-Engine_Report_Modify_Task_Name":"修改任务名称","Dec-Reg_Lic_Mac_Address":"认证mac地址","Dec-Workflow_Sat":"六","Dec-Prompt_Need_Admin_Privilege":"提示代码：2103 只有系统管理员拥有此权限","Dec-Task_Push_Message_Schedule_Result_File":"定时结果附件","Dec-Authority_Only_Open_Users":"开放权限用户","Dec-Email_Port":"端口","Dec-Basic_Formula_Null":"请添加公式","Dec-No_Password_Encryption":"不设置密码加密","Dec-Memory_Limit_Single_Data_Max_Row_Tip":"很抱歉，数据集行数过多触发保护机制，请减少查询数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Plugin-Store_Function":"函数","Dec-Intelligent_Cloud_Not_Online":"本系统当前无法连接帆软市场，请至应用市场云端运维页面免费体验","Dec-Dcm_Connection_Form_Database_Max_Active":"最大活动连接数","Fine-Dec_Connect_Failed":"服务器连接失败，请检查网络连接是否正常、服务器信息是否填写正确","Fine-Engine_FS_Name":"FS用户","Dec-Plugin_Intelligent_Cloud_Unset":"未设置","Dec-Log":"平台日志","Dec-LDAP_Admin_Password":"管理员密码","Dec-Dcm_Connection_Form_ConnectionName-Change-Confirm":"*修改数据连接名会影响相关数据表和仪表板","Dec-Error_Not_Input_URL_Port":"请输入数字端口号","Dec-Error_Integer_Number":"请输入整数","Dec-Tip_Browsers_Do_Not_Support_Full_Screen_API":"浏览器不支持全屏API","Fine-Engine_Report_ReportServerP_PDF2_INFO":"仅在LINUX/UNIX下未安装中文字体时使用","Dec-Dcm_Connection_Make_Sure_Delete":"确定删除该数据连接？","Dec-Error_Get_Users":"获取用户名列表出错","Fine-Engine_Platform_RP_Everyday":"每日","Dec-Memory_Detection_Server_Memory_Litter":"服务器内存太小","Fine-Engine_Base_DecimalNumber_Out":"小数位过多","Dec-System_SMS":"短信","Dec-Mobile_Theme_Blue":"蓝色","Dec-Login_Authentication_Multi_Tip":"系统开启了{R1}，为了确保账号安全，请通过手机或邮箱进行身份验证","Dec-Deployment_Jar_Mismatch":"tools.jar不匹配","Dec-Workflow_Son_Task_Not_Complete":"子任务尚未完成","Dec-Authentication_Mode":"认证方式","Dec-Mobile_Directory_Template_Position_Top":"目录上方","Dec-Task_Run_Day":"执行日","Dec-Mobile_Widget_Cell_Icon_Setting":"填报控件图标设置\n","Dec-Basic_Simple_Minutes":"分","Dec-No_Certification":"不做身份认证","Dec-Workflow_FrequencySet":"频率设置","Fine-Engine_Report_Left":"左","Dec-Log_Import_Times":"导出次数","Dec-Error_Duplicate_Task_Names":"任务名重复","Dec-Log_Operation_IP":"操作IP","Dec-System-Edit_Forbid_Char":"编辑字符","Dec-Authority_All_Modules":"所有模块","Dec-Monitor-View":"分析浏览","Dec-Task_View_Preset_Expression_Example_Work_Last":"每月最后一个工作日19点50分","Fine-Engine_Report_String":"字符串","Fine-Engine_RP_After_Use":"后，使用","FR-Plugin_Server_Second":"秒 hh:mm:ss","Fine-Dec_Chart_File_Name":"文件名","Dec-Intelligence_Detection_Global_Miss_Widget_Tip":"建议增加名为“{}”的全局控件，或者修改模板，取消使用该全局控件","Dec-Cluster_File_Cache_Mode_Passive_Caching":"被动缓存","BI-Basic_Font_Color":"文字颜色","Dec-Mobile_App_Start_Cover":"APP启动画面","Fine-Engine_Report_Verify_Message":"错误信息","FR-Plugin_Design_Time_Unit":"时间单位","Dec-Task_Set_Filter":"设置过滤条件","Dec-Workflow_Review":"审核","Dec-Basic_Driver":"驱动器","Dec-Log_Test_Connection":"测试连接","Dec-Reg_Dongle_Number":"加密锁序列号","Dec-Workflow_sure_to_delete":"确认删除","Fine-Engine_Report_OK":"确定","Dec-Memory_Release_Percent":"当内存占用达到","Dec-Correctly_Identify_Field_Types":"正确识别字段类型","Dec-Error_Captcha_Timeout":"验证码已失效","Fine-Core_Mobile_BI":"移动决策平台","Dec-Basic_Click_Preview":"点击查看","Dec-Basic_Encoding":"编码","Dec-Users_Source_Sync_User":"同步的用户","Dec-Cluster_Connection_Mode_Tip":"通常使用TCP，若开启集群后各节点只显示本工程的节点信息，则请更换通信协议，并重启集群工程。","Dec-Login_Account_Tip":"请牢记您的用户名和密码","Dec-Error_Phone_Null":"手机号不能为空","Dec-System_Login_Location":"江苏南京","Dec-Management_Map_Zoom_Out_Title":"缩小","Dec-Data_Set_Tree_Build_Way_Length":"依赖所选数据集的标记字段的长度构建树","Dec-Deployment_Jar_Mismatch_Tip":"使用{}目录下的tools.jar覆盖{}文件夹下的tools.jar","Dec-Please_Choose_One_For_Manage":"请选择一个{}查看或编辑","Dec-Register_Info":"注册信息","Dec-Basic_Part":"份","Dec-Task_Preview_Report_Content":"正文预览报表内容","Dec-Basic_Phone_Number":"手机号","Dec-Illegal_Phone_Number":"请输入合法的手机号","Dec-System_Send_Test_SMS":"发送测试信息","Dec-Backup_Rollback_Fail":"还原失败","Dec-Plugin_Error_OperationNotSupport":"当前部署环境下不支持该操作","Dec-Plugin-Store_Account":"账号","Dec-Log_Month":"{}个月","BI-Basic_Parameter_Type_Number":"双精度型","Dec-Task_Run_Once_Tip":"{}开始执行一次","Dec-Memory_Full_Delete_Session":"服务器压力过大，触发保护机制，请刷新该页面。若您是管理员，还可在智能运维-内存管理-智能释放中更改此项保护机制。","Fine-Plugin_Engine-Monitor-Completion":"全量取数","Dec-System_WebSocket_Request_Port":"WebSocket请求端口","Dec-Resource_Migration_Result_Text":"{}项导入成功 | {}项导入失败","Dec-User_Belong_To_Post_Tip":"您属于该职务，删除该职务可能对您的权限产生影响，确定删除？","Dec-Look_Platform_Tab_Bar_Background_Color":"标签栏背景","Dec-Login_Verify_Tip":"系统开启了登录验证，为了确保账号安全，请联系管理员绑定{}，然后进行身份验证","Dec-System_SMS_Free_Zero_Tip":"每条测试短信收费0.06元","Dec-Platform_User":"平台使用用户","Fine-Engine_Excel_Import":"Excel导入","Dec-Backup_FineReport_Version":"FineReport版本","Dec-Log_Total_Visit_Count":"访问次数","Dec-Cluster_Login_After_Save":"保存配置后需重新登录","Fine-Dec_Detail-Message":"详细信息","Fine-Engine_FS_Ecp_New_Password":"新密码","Dec-Dcm_Connection_Form_Place_Input":"请输入","Fine-Engine_Report_Registration_Code":"注册码","FR-Plugin_Design_KPI_Value":"指标值","Dec-Mobile_Directory_Select_Template":"选择模板","Dec-Plugin_Shop_Need_Update":"插件商店有新版本,是否更新?","Dec-Log_Module":"模块","Fine-Engine_Custom":"自定义","Dec-Basic_FR_Report":"报表","Fine-Engine_Creating_Group":"创建组...","Dec-Email_Recipients_Address":"邮件接收人","Dec-Task_File_Over_Count":"当前任务设置预计产生{}套结果文件，任务运行耗时可能较长，确定继续？","BI-Multi_Date_Quarter_Prev":"个季度前","Fine-Engine_Platform_RP_Send_Offline_Report":"发送离线报表","BI-Please_Input_Positive_Integer":"请输入正整数","Dec-System_FR_Username":"用户名/邮箱/手机号","Dec-Login_Authentication_Single_Tip":"修改密码前，请进行身份验证","Dec-Memory_Detection_Server_Tmp_Dir_Privilege":"{}java IO操作临时目录无读写权限","Fine-Dec_Chart_Reset":"重置","Fine-Plugin_Engine_Compatibility_Mode":" - 兼容性模式","Dec-Workflow_Select_FS_Users":"选择平台用户","Fine-Engine_SQLTime_Over_Message":"很抱歉，sql执行时间过长触发保护机制，请稍后重试。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-H5_Use_JSBridge":"使用JSBridge","FR-Plugin_Design_Theme_Color_First":"主题色1","Dec-Platform_User_Types_Mobile":"移动端使用用户","Fine-Dec_Chart_DataFunction_None":"无","Fine-Dec_Chart_Stock_Low":"盘低","Fine-Engine_write":"填报预览","Dec-Basic_Bind":"绑定","Dec-Migration_Backup_Tip":"原数据库配置已备份至config文件夹下，如有需要可以使用备份文件还原数据库配置","Dec-Reg_Plugin_Name":"插件名称","Dec-Basic_Click_Full_Preview":"点击完整查看","Dec-Platform_Directory_Manage":"目录管理","BI-Row_Header":"行表头","Dec-Machine_Info":"机器信息","Dec-Error_Special_Character_Limit_Tip":"{}只允许包含字母、汉字、数字、下划线、减号、点和括号","Dec-Memory_Limit_Single_Limit_Templates":"单独限制的模板","BI-Upload_File_Type_Error":"文件类型不支持","Dec-Login_Email_Phone":"请输入邮箱或手机","Fine-Engine_Platform_No_Back_Target":"no back target","Fine-Engine_Report_Number":"数字","Dec-Ten_Add_Dialog":"近10分钟内新增会话数","Dec-Management_Map_Cancel_Drawing":"取消绘制","Dec-Post_Name":"职务名称","Dec-Error_Null":"不可为空","Fine-Engine_flush":"Flash打印","Dec-Templates_Filter_Template_Count_Unit":"张","Dec-Task_Dispatcher_Object_Type":"对象类型","Dec-Basic_Loading_Now_Please_Wait":"正在加载数据，请稍后...","Dec-Log_Access_Time":"访问时间","FR-Plugin_Server_Symbol_Triangle":"三角","Dec_Sync_ID_EMPTY":"ID为空","Dec-Confirm_Delete_Tasks":"确认删除所选{}个任务?","Fine-Plugin-Engine_More_Filter_Column":"过滤格过多","Dec-Security_X_Content_Type":"内容嗅探攻击防护","Dec-Test_Connection":"测试连接","Fine-Engine_Report_PrintP_Print_Preview":"打印预览","Dec-Intelligent_Cloud_Internet_Market_Report":"您可于帆软市场中自行查看系统分析报告","Dec-Cloud_Operation_Maintenance_Stat_Performance":"运行稳定性分析","Dec-Error_Mail_Phone_Format":"请输入正确的邮箱或手机","Dec-Intelligent_Cloud_Date_Interval_Error":"时间跨度不得超过6个月","Dec-Platform_Directory_Alldelete":"批量删除","Dec-Plugin_Connect_Server_Error":"无法连接插件商店，请稍候再试","Dec-Theme_Modern":"扁平化","BI-Date_Trigger_Error_Text":"日期格式示例:2015-3-11","Fine-Engine_Error_Tip":"非常抱歉，出错啦。","Fine-Engine_Importing":"导入中","Dec-Cluster_Closed_Server_Tip":"当前处于集群状态，无法关闭{}","Dec-Dcm_Connection_More":"更多数据连接...","Fine-Engine_Report_Task_Name":"任务名称","Dec-Log_Auto_Clean_Tip_Save":"保留近","Dec-Migration_Switch_Success":"已成功切换至目标数据库！新旧数据库若存在数据差异可能影响系统运行，建议重启工程以确保正常使用","Fine-Engine_Platform_RP_Sender":"发送人","Dec-Plugin_Error_NeedDealWithPluginDependency":"需要安装或更新依赖或的插件","Dec-Management_Map_Area_Geo":"区域","FR-Plugin_Server_Extended_Chart":"扩展图表","Dec-Basic_Path":"路径","Fine-Engine_Schedule_Weekly":"每周","Fine-Dec_Chart_Delete_Line":"删除行","Dec-Basic_Auto_Match":"自动匹配","Dec-Management_Map_Load_Map_Layer":"加载图层","Fine-Engine_Platform_RP_Task_Status":"任务状态","Dec-Dcm_Connection_Form_UserName_Password":"用户名密码","Dec-Log_Access_Interception":"错误代码:11300015 访问频率过高被拦截","Dec-Users_The_Following_Data_Import_Failed":"以下数据导入失败","Dec-User_Import_Success":"导入完成!","Dec-Management_Map_Click_To_Remove":"点击一个层级来删除","Fine-Engine_Param_Template_Name":"组合名称","Fine-Engine_Condition_Not_In":"不包含于","Fine-Engine_print_noclient":"零客户端打印","Fine-Engine_Re_Multi_Privilege":"集团权限控制","BI-Basic_Cancel":"取消","Fine-Engine_Is":"为","Dec-Intelligent_Push":"智能释放","Dec-Digital_Sign_Key_Url":"数字签名密钥地址","Fine-Engine_Import_Again":"重新导入","Fine-Plugin_Engine_Exception_Cell_Data_Read":"单元格数据计算错误({})","Dec-User_Role_User_Remove_Self_Tip":"将自己移出该⻆色，可能对您的权限产生影响，确定移出？","Dec-Templates_Modify_Time":"修改时间","Dec-Log_Shortest_Response_Time":"最短响应时间(ms)","Dec-Confirm_Delete_Parameter":"确认删除该参数?","Fine-Engine_Platform_RP_Cpt_Namept_Name":"模版名称","Dec-Memory_Detection_Server_Transferred_Tip":"配置更稳定强大的外接数据库。前往配置：","Dec-Error_Login_SMS_Unable":"平台未开启短信服务，无法接收验证消息。您可以使用其他验证方式或联系管理员帮助重置密码","Fine-Engine_Plugin_Store_Not_Null":"用户名或密码不能为空","Dec-LDAP_Context":"前后关系","Dec-H5_TOP_NAVIGATOR_TITLE_FONT_COLOR":"标题颜色","Fine-Engine_All_Pages":"所有页","Fine-Core_LIC_Support_Schedule":"定时调度","Fine-Engine_Define_Group_Name":"定义组的名称","Dec-System_Send_Fail":"发送失败","Dec-Basic_Detail":"详情","Dec-Login_Regain_Captcha":"重新获取","Fine-Engine_Report_Invalid_Cell":"无效的单元格","Fine-Engine_Basic_Not_Allow_User_Defined":"不允许自定义值","Fine-Engine_Err_The_Value_Must_Be_Number":"值必须是一个数字","Fine-Engine_Platform_User":"值","Dec-Log_Memory_Cost":"占用内存(KB)","Dec-Backup_Update_Content":"更新内容","Dec-System_Login_Lock_Admin_Account":"锁定管理员账号","Dec-Error_Length_Greater_Than_Max":"长度不能大于{}个字符","Fine-Engine_Excel_Foot_Tip":"共{R1}行数据{R2}","Dec-Log_Update":"更新","Dec-Workflow_Parameter-Double":"双精度型","Dec-Resource_Importing":"资源导入中...","Dec-Error_System_Login_Timeout_Min":"超时时间不可小于10分钟","Dec-Single_Login":"单一登录","Dec-Authority_Reuse_Modules":"复用模块","Dec-Plugin_Intelligent_Cloud_Send_Email":"发送邮件提醒","FR-Plugin_Engine-Execute-Error":"模板计算报错","Dec-Basic_Back":"返回","Dec-Dcm_Connection_Form_Database_Tests_PerEviction_Run_Num":"空闲连接回收检查数","Dec-Plugin_Register":"插件注册","Dec-Management_Map_Draw_Marker":"画标记点","Dec-System_Normal_Save_Tip":"您修改的参数将在重启后生效，请重启服务器","Dec-Role_Remark":"角色备注","Fine-Engine_Delete_Column_Row":"删除列行","Dec-Intelligent_Cloud_Verify_Fail":"下载失败","Dec-Security_Watermark_Gap_Min":"{}不小于{}","BI-Basic_January":"一月","Dec-Error_Get_Captcha_Limited":"验证码获取次数达到上限","Dec-System_WebSocket_Fail_Tips":"Socket未连接，{}，相关端口可能未开放","Fine-Engine_Base_Sche_Sunday":"星期日","Dec-Basic_Not_Contain":"不包含","Dec-Platform_Config":"平台配置","Dec-Data_Set_Create":"创建数据集","Dec-Connection_Pooling_Driver":"数据连接驱动器名称","Dec-Mobile_Directory_Banner_Phone":"手机","Dec-Please_Input_Positive_Number":"请输入正数","Dec-Login_Password_Space":"密   码","Fine-Engine_Value_Value":"数值","Dec-Visited_Report":"被访问报表","Dec-Data_Set":"数据集","Dec-Real_Name":"姓名","Dec-Log_Export":"导出","Fine-Dec_Focus_Point_Resource_Import":"资源导入","Dec-Users_Import_User_Rule_Help_Link":"点击了解更多数据更新规则","Dec-Mobile_Directory_Banner_Link":"链接","Dec-Basic_Previous_Step":"上一步","Dec-Workflow_No_Property":"no property","Dec-Department_No_Auth_Tip":"您没有该部门节点的权限,如有疑问请联系管理员","Dec-Error_Duplicate_Template_Names":"模板名重复","Dec-Plugin_Error_NeedUninstallDependingPluginFirst":"需要先卸载依赖该插件的其他插件","Dec-Management_Map_Finish_Polygon":"点击第一个点完成绘制形状","Dec-Dcm_Connection_Name":"数据连接名称","Dec-Workflow_Receiver":"收件人","Dec-Basic_Captcha_Error":"验证码错误","Dec-Basic_Every":"每","Fine-Engine_Add_Record":"增加记录","Dec-Auth_Search_Carrier":"搜索{}","Dec-Message_My_Message":"我的消息","Fine-Engine_Excel_Import_Cell_Count_Over_Message":"很抱歉，导入EXCEL格子数超过限制，请减少导入数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Sync_Source_Name_Conflict_Detail":"重复对象: {} {}","Fine-Dec_Focus_Point_Sql_Frequency":"SQL重复率","Dec-Session_Lifecycle_End_Solution":"请刷新该页面。若您是管理员，还可在智能运维-内存管理-生命周期中延长此项时长。","Dec-Basic_Skip":"跳过","BI-Conf_Formula_Numberic_Field":"数值字段","Dec-Mobile_Widget_Default_Height":"控件默认高度","Fine-Dec_Chart_Gantt_RealStartTime":"实际开始时间","Fine-Basic_Preview":"预览","Dec-Mobile_Directory_Banner_Phone_Error_Tip":"手机图片不可为空","Dec-Workflow_Report":"上报","Dec-Platform_Directory_Description":"描述","Fine-Engine_Condition_Less_Than":"小于","FR-Plugin_Design_Light":"光照","Dec-Error_Phone_Not_Null":"手机号不能为空","Dec-Intelligent_Cloud_High_Growth_Tip":"持续更新成长的运维平台，功能更新不需要用户额外理，不会对用户产生任何负担","FR-Plugin_Design_Range_Color":"区间颜色","Dec-Basic_Global_Settings":"全局设置","Dec-Multi_Export_Authority":"任务权限","Dec-Email_Encrypt_TLS":"TLS 加密","Dec-Plugin-Store_Designer":"设计器","Dec-Authority_Depost":"部门","Dec-System_Cache":"缓存","Dec-Sync_Source_Id_Conflict":"ID与其他来源对象重复","Dec-Plugin-Store_Permanent":"永久","Dec-Workflow_NO_Privilege":"没有操作权限","Dec-Basic_Enable":"启用","Dec-Workflow_OK":"确定","Dec-User_Disabled":"已禁用","Dec-Basic_Print":"打印","Dec-System-Cache_Principle":"缓存原则","Dec-Basic_Auto_Upload":"自动上传","Dec-Warning_Information":"未注册版本同时可访问模板IP个数限制为2个！","Dec-Backup_JAR_Version":"jar版本","Dec-License_Dongle_Validate":"加密狗验证","Dec-Plugin_Error_ReadXmlError":"读取Plugin.xml失败","Dec-Mobile_Directory_Style_T9_Font_Size_Medium":"中","Dec-Intelligent_Cloud_Analytics_System_Time_Verified_Failed":"服务器时间不正确","Dec-Basic_Text":"文本","Dec-Init_Import_Success":"已成功启用新数据库","Fine-Engine_Report_Task_List_To_Choose":"可选任务列表","Dec-Error_Password_Username_Error":"用户名与密码不匹配","Fine-Engine_RP_Edit_Process":"编辑流程","Dec-Workflow_Select_FS_Roles":"选择平台角色","Dec-Dcm_Connection_Test_Success":"连接成功","Fine-Engine_Report_HJS_Current_Page":"当前页","Dec-Synchronized_DataSet":"用户同步数据集","Dec-Management_Map_Draw_Circle_Tip":"点击并拖拽画圆","Fine-Engine_Platform_RP_Overtime":"超时","Dec-System_Test_Mail_Send_Fail":"测试邮件发送失败","Dec-Log_Average_Memory":"平均内存(KB)","Dec-System_WebSocket_Setting":"WebSocket设置","FR-Plugin_Design_Beta":"左右角度","Dec-Import_Mode":"导入方式","Dec-Cluster_Login_After_Save_Tip":"状态服务器设置改变，请重新登录","Dec-Basic_Restart":"重启","Dec-User_Edit_User_Clear_Self_Tip":"您属于已选用户，清空操作可能对您的权限产生影响，确定清空？","Dec-Unconfigured_Authority":"未配置权限","Dec-Memory_Detection_Server_Tmp_Dir_Litter":"{}java IO操作临时目录剩余空间不足1G","BI-Conf_Formula_Other_Function":"其他函数","Dec-Mobile_Directory_Style_Settings":"样式设置","Dec-Plugin_Intelligent_Cloud_Unset_Email_Upload":"未设置通知邮箱，将无法接受分析报告的邮件提醒。建议设置邮箱提醒后重新上传数据包！","Fine-Engine_Report_HJS_CC_to":"抄送","Fine-Authority_Excel_Submit_Task_Privilege":"excel批量任务权限","Fine-Engine_Base_Sche_Thursday":"星期四","Dec-Error_Task_Month_Run_Time":"请选择月执行时间","Fine-Engine_cpt":"内置数据集导出模板","Dec-Message_System":"系统消息","Dec-Login_Change_Password":"修改密码","Fine-Engine_Excel_Sheet_Import":"导入sheet","Dec-Login_Authentication_Choose_Username":"请选择用户名","Dec-Plugin-Install_Dependence_Success":"依赖插件安装成功","Dec-Mail_Host(SMTP)":"邮件服务器(SMTP)","Dec-Error_Need_Set_Reuse_Source":"请先设置复用模块和复用来源","Fine-Engine_Write_Enhanc_Please_Select_A_Cell":"请选择一个单元格","Fine-Report_Module_Name":"报表模块","Dec-Deployment_Database":"外接数据库","Dec-System_Not_Configured":"待配置","Fine-Engine_Base_Short_Feb":"二","Dec-Basic_Status":"状态","Dec-Module-Management_Map":"地图配置","Dec-Dcm_Connection_JNDI_Form_Connection":"数据来自数据连接","Dec-Use_Multi_Thread_Cal_Description":"启用多线程可提升计算速度，但对服务器性能会有更高的要求","Dec-Basic_Operate_Successfully":"操作成功","Dec-Task_Editor_Value":"值","FR-Plugin_Design_To_Longitude":"终点经度","Dec-System-SqlInj_Escape_String":"转义字符","Dec-Plugin-Store_BBS_Account_Login":"帆软通行证登录","Fine-Engine_csv":"CSV导出","Dec-Enable_Users":"启用用户","Dec-Plugin-Store_Authorize":"授权:","Dec-Register_View_Certificate":"查看服务凭证","Dec-Basic_Change":"修改","Dec-Message_Handle":"处理","Dec-Basic_Other":"其他","Dec-Authority_No_Authorized_Auth":"无授权权限","Dec-Users_Confirm_To_Add_User":"确定添加用户?","Dec-Mobile_Support_Widget_Activation_Feature_Hint":"提示：全局配置开启，组件选中以单个组件设置为准；全局配置关闭，所有组件不可选中。","BI-Basic_June":"六月","BI-Basic_Parameter_Name":"参数","Dec-System_Login_Unlock":"解锁","Fine-Dec_Chart_Load_Layers":"加载图层","BI-Basic_Friday":"星期五","Dec-Intelligent_Cloud_Data_Download":"日志下载","Dec-Error_Name_Limit_Tip":"{}只允许包含字母、汉字、数字、下划线、@、减号和点","Dec-Platform_Directory_Cover":"目录封面","Dec-Memory_Warning":"内存预警","BI-Basic_July":"七月","FR-Plugin_Server_Description":"说明信息","Fine-Core_Func_Multi_Login":"非单一登录","Fine-Engine_De":"的","Dec-System_Sql_Support_Regular":"支持正则表达式","Dec-Schedule_Record_Help":"历史监控信息不见了？","Dec-Task_FTP":"FTP上传附件","Dec-Module-Security_Management":"安全管理","Dec-Memory_Limit_Submit_Allow_Cartesian_Product_Tip":"提示:开启此项设置将允许多个无过滤、跟随关系的数组在同一行进行填报提交","Dec-Backup_Rollback_Success_Tip":"还原成功","Dec-Deployment_Detection":"重新检测","Dec-Workflow_Short-Oct":"十","Fine-Engine_Save_Client_Habit":"保存客户端习惯","Dec-Security_HTTP_Strict_Transport_Security_Disable_Tip":"检测到当前服务器协议为HTTP，未能成功启用。请确认服务器开启HTTPS后重试","Fine-Engine_Base_Short_Nov":"十一","Dec-Reg_Dongle_Auth":"加密锁认证","Dec-Plugin_Msg_Warning":"警告","Dec-Task_Client_Notification":"客户端通知","Dec-Error_Login_Unbind_Phone":"该手机尚未绑定过账号","Dec-Setting_Backup_One":"自动备份一次","Fine-Engine_FS_End_Time":"结束时间","Fine-Engine_DS_TableData":"数据集","Dec-Dcm_Connection_Deleted":"该数据连接已被删除，无法进行操作","Dec-Security_X_Content_Type_Tip":"开启后请求头部增加X-Content-Type-Options:nosniff设置","Dec-Workflow_Unlimited":"不限","Fine-Engine_Platform_RP_View_Task":"查看任务","Dec-Cluster_File_Server_SFTP_Tip":"请上传密钥文件","Dec-Dcm_Connection_Form_Database_Min_Idle":"最小空闲连接数","Dec-Common-Help_Safe_Model":"安全模块","Fine-Dec_Chart_Stock_Close":"收盘","Dec-User_Toggle_Limit_Switcher_Open_Tip":"开启后将对{}加以限制，且初始可使用人数为0，确认开启?","Dec-Task_New_Report":"新填报","Dec-Workflow_Add_Task":"添加任务","Dec-Authority_DepartPostNames":"部门","Dec-Mobile_Directory_Template_Position":"显示位置","BI-Basic_Parameter_Type_Formula":"公式","Fine-Engine_ExecuteOneTime":"执行一次","Fine-Dec_Chart_Unit_Million":"百万","Dec-Schedule_Running_Task":"执行中的任务","Dec-Dcm_Tips":"提示","Dec-Post-List":"职务列表","Dec-Workflow_Node_Description":"节点描述","Dec-Dcm_Yes":"是","Dec-Choose_Dependent_Resource_Tip":"请选择需同时导出的依赖资源","Dec-Error_Login_Username_Unable":"用户名不可用","Dec-Basic_Minutes":"分钟","Dec-Log_Restore":"还原","Dec-Full_Screen":"全屏","BI-Down_Page":"向下翻页","DEC-No_Retrieve_Location_As_BaseDN":"不将检索位置作为 baseDN","Dec-Monitor-New_Write":"新填报浏览","BI-Basic_Monday":"星期一","Fine-Engine_Inform_Appending":"　","Dec-Error_Sql_Keyword_Exit":"该特殊关键字已存在","Dec-Workflow_Parameter_Setting":"参数设置","Fine-Dec_Chart_Map_FinishPolygon":"点击第一个点完成绘制形状","Fine-Dec_Chart_Map_StartPolyline":"点击开始画线","BI-Basic_Now":"此刻","BI-Left_Page":"向左翻页","Fine-Engine_Basic_Page_Number":"页","FR-Plugin_Design_From_Latitude":"起点纬度","Dec-Resource_Migration_Before_Tip":"导入前建议进行","Fine-Engine_Excel_Edit_Sheets":"编辑导入sheet","BI-Transparent_Color":"透明","Fine-Engine_Platform_RP_Timing_Issue":"定时下发","Fine-Engine_Func_SMS":"短信平台","Dec-Edit_Post":"编辑职务","Dec-Error_Duplicate_User_Names":"用户名重复","Dec-Dcm_Connection_Form_Database_Port":"端口","BI-Microsoft_YaHei":"微软雅黑","Fine-Engine_PageSetup_Margin":"页边距","BI-Basic_Add_Or_Formula":"添加公式(或)","Fine-Engine_Please_Enter_Start_Value":"请输入起始值，不选择默认为最小值","Dec-Mobile_Generate_QR_Code":"生成二维码","Dec-Init_Import_Fail":"导入数据失败","Dec-Workflow_Support_Formula":"支持公式输入，如${today()}","Dec-Look_Platform_Pane_Focus_Color":"面板聚焦颜色","Dec-Workflow_Printing":"正在打印","Dec-Reg_Authentication_Waiting":"认证中...","Dec-Module-Privilege_Manager":"权限管理","Dec-Mobile_Directory_Style_T9_Font_Size":"目录字号","Dec-Monitor-Menu_Backup_Restore":"备份还原","Dec-H5_Not_Null":"不可为空","Dec-Management_Map_Click_To_Cancel":"点击取消来撤销更改","Fine-Plugin-LargeDatasetExcelExport_Export_File_Name":"导出文件名","Dec-Init_Waring_Tip_Mark":"","BI-Basic_Parameter_Move_Up":"上移","Fine-Engine_Printing":"正在打印","Fine-Engine_Platform_RP_Execute_Time":"执行时间","Dec-Log_Login":"登录","Dec-Task_State_On_Running":"正在执行","Fine-Engine_html":"HTML导出","Dec-Plugin-Store_Businesses":"商家","Dec-Error_Open_Forget_Password_Dataset":"当前用户数据来自同步数据集，开启后用户仍无法使用忘记密码功能","Dec-Plugin_Intelligent_Cloud_Update":"更新","Dec-Workflow__Created_By_Me":"我创建的流程","Dec-Task_Weekly":"每周","Dec-Department_And_Post":"部门职务","Dec-Mobile_Plate":"移动平台","Fine-Dec_Chart_Chart_Alert":"警戒","Dec-Mobile_Directory_Style_T9_Font_Color":"字体颜色","DEC-Role_Undefined":"未定义角色","Dec-Intelligent_Cloud_Demo_Text":"为您提供了示例以详细说明，可在外网环境中查看","Dec-Users_Update_Config":"用户更新设置","Fine-Engine_PageSetup_Paper_Size":"纸张大小","Dec-Report_Info":"警报提示","Fine-Engine_Decimal_Number_Out":"小数位过多","Dec-Intelligence_Import_Excel_Overflow_Info_Tip":"很抱歉，导入EXCEL格子数超过限制，请减少导入数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Fine-Engine_Report_Export_Excel":"excel07","Dec-Exist_Full_Screen":"退出全屏","FR-Plugin_Server_Bar3D_On_Globe":"三维柱形地球","Fine-Engine_Platform_RP_Sure_to_delete_process":"确认删除","Dec-Init_Waring_Tip_One":"","Dec-Process_Task_Is_Overdue":"该任务已过期","Dec-Yes_I_Known":"知道了","Fine-Engine_Platform_Previous_Node_Staff":"上节点人员","Dec-Dcm_Connection_ConnectionName_Cannt_Null":"数据连接名不可为空","Dec-Error_Need_Authority_To_View_Page_Tip":"您没有该页面的访问权限，如需访问请联系管理员","Dec-System-Simple_FIFO":"先进先出","Dec-Task_Expression":"表达式设置","Dec-Users_Import_User_Conflict_Field_Check_Tip":"「重复验证字段」从名称切换到ID将清空相关字段原有数据并重新同步,这将导致相关权限丢失。若需设置ID,强烈建议初次设置时选择,避免使用过程中的切换。","Dec-Mobile_Delete_Icon_Confirm":"确定删除该元素？","BI-Conf_Formula_Array_Function":"数组函数","Dec-Login_Authentication_Tip":"系统开启了{}，为了确保账号安全，请进行身份验证","Fine-Dec_Chart_Map_DrawCircleTip":"点击并拖拽画圆","Dec-Memory_Clean_Up":"清除","Dec-Role_User":"角色下人员","Dec-Error_Password_Be_Equal":"两次输入的密码不一致","Dec-Users_Sync_Failed_Detail":"详细说明","Dec-Basic_Close":"关闭","Fine-Engine_Delimiter":",","Fine-Engine_Alert":"警告","Dec-Authority_Source_Use":"使用权限","Dec-Platform_User_Types":"用户分类","Dec-System_Login_SMS_Authentication":"短信验证","Dec-Reg_Dongle":"加密锁","Dec-Security_XSS":"XSS攻击防护","Dec-System-Max_Shared_Datasets":"共享数据集最大个数","FR-Plugin_Server_Symbol_Diamond":"菱形","Fine-Engine_Basic_Choose_None":"不选","Fine-Engine_Print_Margin":"打印边距","Dec-Error_Integer":"请输入整数","Dec-Confirm_Disable_User":"确认禁用该用户?","Dec-Platform_Log_Template_Popularity":"模板热度","Dec-Memory_Detection_Server_Cluster_Memory_Litter":"单节点内存太小","FR-Plugin_Server_Other_Main_Type":"扩展图表—其余","Fine-Engine_Basic_Today":"今天","Dec-Not_Found":"找不到请求的资源","Fine-Plugin_Engine_Tree_Config":"折叠树设置","Dec-Log_Open":"打开","Dec-Error_Migration_Database_Host":"只允许包含数字、字母、下划线、-和.","BI-Platform_Copy_Link":"复制链接","Dec-Error_Port_Format":"端口格式错误","Dec-All_Data":"所有数据","Fine-Engine_Platform_RP_Node_Description":"节点描述","Dec-Error_Unknown_Error":"未知错误","Fine-Dec_Chart_TimeUnit_Year":"年","Dec-Dcm_Connection_JNDI":"JNDI数据连接","Dec-Workflow_Content":"内容","Dec-Platform_User_Types_PC":"PC端使用用户","Fine-Engine_Add_Task":"添加任务","Dec-Homepage_management":"平台首页","Dec-Mobile_Button_Refresh":"按钮刷新","Fine-Engine_getDataFromCache":"从共享数据集缓存中获取数据","Dec-Security_Browser_Cache_Disabled_Tip":"开启后增加Cache-Control:no-cache、Pragma:no-cache&Expires:0设置","Dec-Basic_Contain":"包含","Dec-Plugin_Error_FindNoPlugin":"未找到该插件","Dec-Intelligent_Cloud_Verify_Waiting":"正在连接，请稍后…","Dec-System_Password_History_Check_Tips":"提示：用户修改密码时禁止使用之前N个密码","Dec-Intelligent_Cloud_User_Incentive":"现加入云端运维，可享受用户激励计划","Dec-Log_Visit_Count_Daily":"日访问量","Fine-Engine_word":"Word导出","Dec-Backup_Rollback":"还原","Dec-Basic_No_Search_Results":"无搜索结果","Dec-Cluster_Node_Name":"节点名称","Dec-Init_Select_Migration_Tip":"","Fine-Engine_Report_Verify_Error":"校验出错","Fine-Engine_Finish":"完成","Fine-Engine_Height":"高","Dec-Log_Operation_Type":"操作类型","FR-Focus_Point_Check_Font":"导出/打印（检测模板）字体缺失检测","Dec-Department_Root_No_Add":"不能为根节点添加职务","Dec-Directory_Multi_Delete_Select_Tip":"请勾选需要删除的目录","Dec-Department":"部门","Dec-Application_Name":"应用工程名","BI-Basic_Please_Enter_Number_Between":"请输入{}-{}的值","Fine-Engine_Please_Select_Sort_Rule":"请选择排序规则","Fine-Engine_Base_Sche_Minute":"分","Fine-Engine_Type_Number":"数字","Fine-Plugin_Engine_Exception_Func":"公式计算错误({})","Dec-Error_Connection_Name_Exists":"数据连接名已存在","FR-Plugin_Design_Graphics_Size":"图形大小","Fine-Engine_Web_ConditionB_Does_Not_Begin_With":"开头不是","Dec-Cluster_Redis_Stand_Alone":"Redis单机","Dec-Init_Importing":"连接成功，正在导入数据…...","Dec-Dcm_Connection_Error":"接口访问错误","Fine-Engine_Image":"图片","BI-Basic_Simple_Monday":"一","BI-Basic_Add_And_Formula":"添加公式(且)","Dec-Three_Months":"3月","Fine-Dec_Chart_GIS_LAYER":"GIS背景","Dec-Log_Template_Visit_Count":"访问模板个数","Dec-Plugin_Error_InvalidBBSCode":"未登录","Dec-Plugin-Store_App":"应用商城","Dec-Log_Recover_Inherit_Authority_Detail":"权限项：{}","Dec-Warning_Info":"提示=当使用了平台数据迁移功能后，平台设置不支持备份和还原、日志清理不支持备份、整体工程中的finedb和logdb不支持备份和还原","Fine-Engine_Condition_Contains":"包含","FR-Plugin_Design_Meter_Main_Type":"扩展图表—仪表盘类","Fine-Engine_Basic_Week":"周","Dec-Plugin-Store_Jar":"jar包","Dec-Cluster_File_Set_Calibration_Node_Fail":"基准节点切换失败，请稍后重试","Fine-Datasource_Module_Name":"数据源模块","Dec-Department_Root_Name":"所有部门","Dec-Email_Encrypt_SSL":"SSL 加密","Dec-Manual_Backup":"手动备份","Dec-Multi_Export_Add_Task":"添加任务","Dec-Workflow_Short-Nov":"十一","Dec-Management_Map_Name_Required_Not_Empty":"名称不能为空","Dec-Mobile_Directory_Style_T9_Icon_Size":"图标大小","Dec-Task_File_Processing":"文件处理","Dec-Users_Sync_Update_Strategy_Keep":"仅更新现有用户基本信息,不改变权限等设置","BI-Basic_Common_Function":"常用函数","Dec-Basic_Field":"字段","Dec-User_Source_Add_Or_Import":"导入/添加用户","Fine-Plugin-LargeDatasetExcelExport_Export_Data_Column":"导出数据列","BI-Multi_Date_Year_End":"年末","Dec-Authority_Role":"角色","Dec-Authority_Source_Exported":"导出权限","Dec-Cluster_Servlet_Name_Watermark":"如：ReportServer","Fine-Engine_Please_Enter_Role_Name":"请输入角色名称","Fine-Engine_Plugin_Store_Net_Connect_Failed":"网络连接失败","Fine-Engine_Platform_Schedule_Select_Template":"选择模板","Fine-Engine_Base_Short_Oct":"十","Fine-Plugin_Engine_Calculate_Query_Cache":"查询缓存","Fine-Engine_Delete_Role":"删除角色","Fine-Engine_Unload_Check_Msg":"有数据没有提交","Dec-Delete_User":"删除用户","Dec-Workflow_Fri":"五","Dec-Task_File_Count":"预计产生{}套结果文件，可能导致计算量过大，是否继续？","BI-Time_Interval_Error_Text":"请保证开始时间早于/等于结束时间","Dec-Intelligence_Detection_Global_Miss":"缺少全局样式“{}”","Dec-Task_Push_Message_Cover":"封面图","Dec-Visit_User":"访问用户","Fine-Engine_Platform_SetPrinterOffset":"打印机偏移","Fine-Engine_System-Concurrency-Full":"系统并发数已满。获得更多的帮助信息, 请点击<a href=\"#\" onClick=getCompanyWebsite()>这里</a>","Dec-Error_Positive_Integer_Number":"请输入不小于{}的整数","Fine-Engine_Get_Registration_Code_Url":"http://www.finereporthelp.com/help/9/11.html","Fine-Engine_Excel_Requied_Tip":"存在必填项未填!请排查各个sheet","Dec-Dcm_Connection_HW_DWS":"华为云DWS","Dec-Dcm_Data_Connections":"数据连接","Fine-Plugin-LargeDatasetExcelExport_Refresh":"刷新","Dec-Please_Choose_Department":"请先选择一个部门","Fine-Dec_Chart_Area":"区域","Dec-Deployment_Jar_Tip":"请根据部署方式进行相应文件操作","Dec-Dcm_Connection_Form_Pattern":"模式","Dec-Add_HomePage_Tip":"添加多个首页后可通过\"权限管理\"页面进行权限设置以实现不同用户登录系统查看不同的首页","Dec-System_Send_Success":"发送成功","Fine-Engine_Send_Failed":"发送失败","Fine-Engine_Note":"备注","Dec-Look_Login_Color":"登录主题色","Fine-Engine_Condition_Not_Equals":"不等于","Dec-Basic_Missed":"缺失","Dec-Init_DB_Type":"数据库类型","Dec-Deployment_Jar_Missing":"工程缺少tools.jar","Dec-Basic_Authorized":"授权","Dec-Basic_Next_Step":"下一步","Dec-Basic_New_Encoding":"新编码","Dec-Workflow_Close":"关闭","Dec-Plugin_Error_InvalidLevel":"需升级插件","BI-Basic_Time":"时间","Fine-Dec_Error_Tip":"非常抱歉，出错啦...","Dec-User_Import_Keep_Data":"保留信息","Dec-Transport_Thread_Pool_Size_Description":"线程数越高，FineIndex更新中数据转移速度也越快。但同时对数据库和服务器性能也有一定要求","Dec-Management_Map_Longitude":"经度","Fine-Core_Chart_Map":"地图","Dec-Plugin-Store_Front_End_Display":"前端展现","Dec-Server_Max_Memory_Is":"当前服务器设置的最大内存为","Dec-User_Import_Incremental_Update_Control_Tip":"勾选后，已存在用户的姓名、密码、手机、邮箱不会被更新","Dec-Error_Duplicate_Role_Names":"角色名重复","Dec-Basic_Detailed_Information":"详细信息","Dec-System_Extensible_Time_End_Null":"请输入结束时间","Dec-Records_Send_Email":"邮件发送","Dec-Dcm_Other":"其他","Dec-System_Print_Zero_Client":"零客户端打印","Fine-Engine_Date":"日期","Dec-Basic_Quit_Preview":"退出预览","Dec-Delete":"删除","Fine-Engine_Filter":"筛选...","Fine-Engine_Platform_RP_Send_Time":"发送时间","Dec-Common-Help_Source_Authorized":"授权注册","Dec-Authority_Reuse_Target_Detail":"来源：{} 类型：{}","Dec-Look_Platform_Left_Menu_Background_Color":"左侧导航背景","Dec-Enable_Email":"配置邮箱服务","Dec-Workflow_Alert_Setting":"预警设置","Fine-Engine_FS_System_Event_Submitsuccess":"提交成功","Dec-Cluster_State_Server_Config":"状态服务器设置","Dec-Workflow_Short-Feb":"二","Dec-Module-Simple_Scheduler":"定时调度","Dec-Intelligent_Cloud_Data_Uploading":"日志上传中…","Dec-System_Password_Strength_Not_Contain_Username":"不包含用户名","Dec-Select_Department_Tip":"请选择部门及职务进行查看","Dec-Save_Path":"保存路径","Dec-Cluster_Redis_Node_Odd":"节点个数需为奇数","Dec-Mobile_Directory_Style_T9_First_Directory":"一级目录","Fine-Engine_Sort_Descending":"降序","Dec-Error_Format":"格式错误","Dec-Security_Cookies_Enhance_Disable_Tip":"检测到当前服务器协议为HTTP，未能成功启用。请确认服务器开启HTTPS后重试","Fine-Engine_Report_Step":"步长：","Fine-Dec_Chart_Create_Image_Map":"创建自定义图片地图","Fine-Plugin_Engine-Calculate-End":"使用全量计算","Dec-Dcm_Connection_Form_Database_Test_On_Return":"归还连接前检验","Dec-Mobile_Global_Loading":"全局加载动画","BI-Basic_April":"四月","Fine-Engine_Report_HJS_Mail_Receive":"用户","Dec-Task_Customize":"自定义附件处理","Fine-Engine_Report_Task_Submit":"任务提交","Dec-System_WebSocket_Https_Setting":"https设置","Dec-Connection_Pool_Property":"连接池属性","Fine-Engine_Invalid_Page_Number":"无效页码","Dec-System_Extensible_Time_Start_Null":"请输入开始时间","Dec-Email_Show_Full_Name":"显示姓名","Dec-Backup_Success":"备份完成","FR-Plugin_Design_Horizontal_Position":"水平位置","Dec-Memory_Release_Percent_To_Line":"%时，会话进入排队等待","Dec-Management_Log":"平台日志","Fine-Schedule_Focus_Point_Mobile_Other":"移动平台—其他","Fine-Engine_Ajax_Failed_And_Need_Retry":"请求失败,请重试!","Dec-Look_Platform_Tab_Active_Background_Color":"激活标签","Fine-Engine_ReportServerP_Print[Server]":"打印[服务器]","Dec-Cluster_Automatic_Synchronization_Between_Nodes":"节点间自动同步","Dec-Authority_User_Special_Restrictions":"本条权限为该用户单独设置","Fine-Engine_Cpt_Backup":"加密前先进行模板备份","Dec-Plugin_Intelligent_Cloud_Update_Toast":"检测到资源长时间未更新，可在页面底部更新资源","Dec-Data_Set_Preview_Current_Rows":"当前数据行数","BI-Basic_OK":"确定","Dec-Basic_Authentication":"认证","Dec-Init_Connect_DB":"连接数据库","Dec-Plugin-Store_Expired":"过期","Dec-Cluster_Config_How":"如何配置开启集群？","Dec-Backup_Jar_Update_Fail":"jar包更新失败","BI-Multi_Date_Quarter_Begin":"季度初","Dec-Login_Re_Password":"请再次输入密码","Fine-Engine_FS_Generic_Simple_Save":"保存","Dec-Sync_Name_Conflict_Detail":"重复对象：{}","FR-Plugin_Server_From_Longitude":"起点经度","Dec-Alive_Time":"存活时间","Dec-Cluster_Parameter_Redirect_Block_Timeout_Tip":"失败请求超过最大尝试次数后，节点会被置为失效，新的请求将不会内部转发给该节点，此参数最低不小于10秒","Dec-Security_HTTP_Strict_Transport_Security_Tip":"服务器开启HTTPS后方可开启,开启后将禁止HTTP访问,IE11以下浏览器暂不支持此设置","Dec-Failed_Lic_AppName_Not_Match":"应用名不匹配","Dec-Menu_Data_Config":"数据准备","Dec-Workflow_Name":"流程名称","Fine-Engine_RP_AllProcesses":"所有流程","Dec-Set_Templet":"设置模板","Fine-Engine_Report_Basic_Not_In_List":"值不在下拉列表内","Dec-Cluster_Closed_Tip":"开启集群前请先配置外接数据库、状态服务器","Dec-Mobile_Support_Widget_Activation_Feature":"全局组件可选中","Dec-Dcm_Connection_JNDI_Warning":"注意：需要把包含INTIAL_CONTEXT_FACTORY类的.jar文件复制到软件安装目录下的/lib目录下","Fine-Engine_FS_End_Date":"结束日期","Dec-Init_Start_Set":"开始设置","Dec-Dcm_Test_Connection":"测试连接","Dec-Prev_Step":"上一步","Dec-User_Setting_Reset_Password_Remind":"重置密码后邮件通知","Dec-Last_Login_Info":"上次登录信息提示","Dec-Workflow_Label":"标签","Dec-Dcm_Connection_All":"所有","Dec-Management_Map_Preview_Importing_Data":"导入数据预览","Dec-Error_Time":"发生错误的时间","Dec-Connection_Reconnect":"重新连接","Fine-Engine_Utils_Flash_Print[Client]":"打印[客户端]","Dec-Cluster_Parameter_Redirect_Detail_Helper_Link":"点击查看详细原理","Dec-Register_Now":"立即注册","Dec-Error_Length_Greater_Than_Short_Text":"文本长度不能大于200个字符","BI-Conf_Formula_Valid":"公式不合法","Dec-Authentication_Type":"认证类型","Dec-H5_TOP_NAVIGATOR_TITLE_BOLD":"字体加粗","Dec-Log_Manual_Clean":"手动清理","Dec-System_Password_Update_Advance":"提前","Dec-Deployment_Configuration_Success":"{}配置成功","Dec-Users_Total_Count":"平台用户总人数","Fine-Engine_Platform_RP_Timed_Write":"限时填报","Dec-Init_Admin_Re_Password":"再次输入密码","Dec-User_Select_Department_To_View":"请选择部门进行查看","Fine-Engine_CellCount_Over_Message":"很抱歉，数据量过大触发保护机制，请减少查询数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Task_Run_Conditions":"执行条件","Dec-Register_Way":"认证方式","Fine-Plugin-LargeDatasetExcelExport_Export_File_Names_Hint":"默认为\"模板名-数据集名称.xlsx\"","Dec-Intelligent_Cloud_Zero_Cost_Tip":"无需消耗本地计算资源，大计算在帆软提供的云中心完成","Dec-SQL_Validation_Query":"SQL验证查询","Dec-Plugin_Error_DependenceServiceNotStarted":"插件依赖的服务尚未启动或启动失败","Dec-User_No_Department_Roles":"无部门用户","Dec-Run_Time":"运行时刻","Dec-Plugin_Error_HasHigherPluginWhenInstall":"已经安装了更高的版本","Dec-Cluster_File_Set_Calibration_Node":"设为基准节点","Fine-Engine_Report_Deploy_Success_Info":"看到此页面，说明您已经成功部署了报表服务器","Dec-System_WebSocket_Fail_User_Count":"系统访问用户统计等异常","Dec-Intelligent_Cloud_Advantage":"云端优势","FR-Plugin_Server_Longitude":"经度","Fine-Engine_Platform_Role":"角色","Dec-Connection_Key_Path":"keytab密钥路径","Dec-System_Configured":"已配置","Fine-Engine_text":"文本导出","Fine-Engine_Report_Ecp_Convert":"注：加密后reportlets文件夹的文件将转为密文。","Dec-H5_TOP_NAVIGATOR_TERMINALS":"终端设置","Dec-Init_Admin_Account_Success":"管理员账号设置成功！","Dec-Basic_Code_Conversion":"编码转换","Fine-Core_Static_Chart":"静态图表","Dec-System_SMS_Platform":"短信平台","Fine-Basic_Design":"设计","Dec-Security_File_Upload_Verify":"文件上传校验","Dec-Dcm_Connection_Form_Database_URL":"数据连接URL","Fine-Dec_Chart_Save_Error":"保存失败","Dec-Basic_Parameter":"参数","Fine-Engine-Name_Cannot_Be_Null":"名字不能为空","Fine-Plugin_Engine_Transform_Start":"开始转换","Dec-Intelligent_Cloud_Used_Function_List":"已使用功能列表","Dec-Cluster_File_Synchronization_Config":"文件一致设置","BI-Multi_Date_Week":"周","Fine-Core_LIC_Support_Parameter_Interface":"参数查询界面","Dec-Login_Input_Captcha":"请输入验证码","Dec-Continue_Upload_File":"继续上传文件","Dec-Task_Push_Message_Type":"消息类型","Dec-Reg_Detecting_Dongle_None":"未检测到加密锁","FR-Plugin_Server_Bar3D":"三维柱形图","Fine-Engine_Report_TaskName":"任务名称","BI-Basic_Kai_Ti":"楷体","Dec-Memory_Release_Support_JDK":"支持的JDK版本：JDK7、JDK8","Dec-System_Print_Zero_Client_Padding":"打印时可设置打印边距","Fine-Engine_Page_Number":"页码","BI-Basic_Parameter_Delete_Confirm":"你确定决定删除选中的项？","Fine-Dec_Chart_Custom_Image":"自定义图片","Dec-Basic_Copy_Link":"复制链接","Dec-System-SqlInj_Forbid_Keyword":"特殊关键字","Dec-Workflow_Report_Deadline":"填报时限","Dec-Intelligent_Cloud_Plugin_Install_Fail":"云端运维安装失败，请重新安装","Dec-Task_Transport_Mode_Passive":"被动","Dec-Mobile_Native_Chart_Enable":"BI新图表渲染模式","Dec-Log_Analytics_Upload":"上传","Fine-Dec_Chart_Import_Image":"导入图片","Dec-Mobile_Directory_Icon_Colorful":"缤纷","Fine-Engine_Please_Enter_New_Group_Name":"请输入新组的名字","Dec-System_Week_Begins_With":"周开始于","Dec-Upload_File":"上传文件","Dec-Basic_Tip":"提示","BI-Basic_Or":"或","Fine-Dec_Failed_License_Not_Match":"证书信息与本地不匹配","Dec-Module-Management_BI_Map":"","Dec-Workflow_Delete_Data":"删除数据","Fine-Schedule_Result_File_Not_Exist":"结果文件不存在","Dec-Workflow_January":"一月","Dec-System_Normal":"常规","Fine-Engine_Print_Compatible":"打印（兼容）","Dec-Multi_Export_List":"任务列表","Fine-Dec_Chart_Unsupported_Browser":"请使用IE9及以上浏览器","Dec-Authority_Export":"导出权限","Dec-Report_Workflow_Syncing_Please_Wait":"正在同步,请稍候.......","Dec-Cluster_File_Cache_Mode_Close_Caching_Tip_Warning":"节点间同步模式下无法关闭缓存","Dec-Intelligence_Server_Used":"服务器使用情况","Dec-Error_Password_Equal_Old":"新密码不能与原密码相同","Dec-Mobile_Directory_Banner_Pad":"平板","Dec-Memory_Release_Not_Support":"当前JDK版本不支持该功能","Dec-Reg-FR-Version":"FR版本","Dec-Register_Machine_Name":"机器名称","Dec-Builtin_Authentication":"平台内置认证","Dec-System-Deploy_Type":"当前部署方式","Dec-Servlet_Path_Name":"Servlet路径名","Dec-Intelligent_Cloud_Analyze_Performance":"使用云端运维可分析当前系统存在的性能问题","Dec-Authority_Schedule_Configure_Text_Open":"开放权限任务","BI-Basic_Function":"函数","Dec-System_SMS_Account_Bind":"帐号绑定","Dec-User_Dataset_Syncing_Please_Wait":"正在进行同步,请稍候...","Dec-Plugin_Update_Success":"插件更新成功","Dec-Failed_Lic_MacAddress_Not_Match":"MAC 地址不匹配","Dec-Cluster_Synchronization_File_Fail":"文件同步失败","Dec-Error_Task_Detail_Month_Null":"请选择执行月","Dec-Search_Or_Add_Post":"搜索或添加职务","Dec-Look_Platform_Pane_Head_Text_Color":"标题文字颜色","Fine-Engine_Report_Sure_To_Remove_This_Role":"你确定删除该角色吗","Dec-Management_Map_Add_GIS_Background":"添加gis背景","FR-Plugin_Server_Texture_Red":"红色","Dec-Basic_Number":"数值","Dec-Log_Template_Physical_Path":"物理路径","Dec-Authority_Source_View":"查看权限","Dec-Submit_Tag":"上报标签","Dec-Private_Cloud_Auth":"私有云认证","Dec-System_WebSocket_SSL_Password":"SSL密钥密码","Dec-Basic_Local_View":"本地查看","Dec-Reg_Upload_Waiting":"lic文件上传中...","Fine-Engine_Utils_PDF_Print[Client]":"打印[客户端]","Dec-Workflow_DS-TableData":"数据集","Dec-Mobile_Directory":"目录","FR-Plugin_Design_Period":"动效时间","Fine-Engine_FrequencySet":"频率设置","Dec-System_Password_Strength_Contain_Capital":"包含大写字母","Dec-System_WebSocket_Request_Path_Tips":"默认值对应请求路径如http://ip:port/socket.io\n可指定中间路径如设置/webroot/decision/socket.io则路径为http://ip:port/webroot/decision/socket.io","Dec-System_WebSocket_SSL_Type":"SSL证书类型","Dec-User_Basic_Info":"基本信息","Dec-System_WebSocket_SSL_Type_Tips":"证书格式，如果是pfx证书，改成PKCS12","Fine-Engine_Param_Template_Already_Existed":"参数组合名称已存在","Dec-Basic_Time_Sort":"按时间排序","Dec-Plugin_Error_UnzipFileError":"解压文件错误","Fine-Engine_Base_Sun":"日","Dec-Dcm_Connection_NO_Connection_Pool":"无数据连接，可在数据连接管理页面添加","Dec-Log_Recover_Inherit_Authority":"恢复继承权限","Dec-Deployment_Wizard":"服务器部署向导","Dec-Plugin-Store_Not_Login":"未登录","Dec-Task_View_Preset_Expression":"查看预置表达式","Dec-Basic_Table":"表","Fine-Engine_Condition_Greater_Than_Or_Equals":"大于或等于","Dec-Basic_Parameter_Name":"参数名","Dec-Report_My_Task":"我的上报任务","Dec-Cache_Report_Way":"预警方式","Fine-Engine_Condition_Less_Than_Or_Equals":"小于或等于","Dec-Directory_Need_Select_Tag":"请选择标签","Dec-Message_Mark_As_read":"标为已读","Dec-System-Simple_LFU":"最不常使用","Fine-Engine_Choose_All":"全选","Fine-Dec_Chart_Map_StartPolygon":"点击并开始","Fine-Engine_Print_Auth_Check_Login":"请登录后进行打印","Dec-Workflow_AllProcesses":"所有流程","Dec-Plugin-Store_Developer":"开发者","Fine-Engine_FS_System_Report_Message":"上报消息","Dec-Log_Search":"查找","Dec-Backup_Memory":"备份容量","Dec-Security_Script_Invocation_Formula_Restriction":"脚本调用公式限制","Fine-Engine_Import_Failed":"导入失败","Dec-Login_Change_Password_Fail":"密码修改失败","Dec-Whole_Check":"全局属性检测","Dec-Run_Type":"运行类型","Dec-Workflow_Save":"保存","Dec-Intelligent_Cloud_Intranet_Market_Report":"您可于帆软市场中\n自行查看系统分析报告","Fine-Engine_Param_Template_Content_Existed":"该参数组合内容已保存于","Dec-Encryption_Method":"加密方式","Fine-Engine_All_Sheets":"所有sheet","Dec-Security_Watermark_Default_Formula":"=$fine_username + now()","Dec-System_Password_History_Count":"禁用个数","Dec-Workflow_Start_Node":"开始节点：","BI-Basic_Dynamic_Title":"动态时间","Dec-BI_Map_Config":"地图配置","Dec-Authority_Only_Open_Package":"开发权限业务包","Fine-Plugin-Engine_Need_Adjust":"调整后提升","Dec-Dcm_Connection_Form_KeyPath":"keytab密钥路径","Dec-Log_Back_To_Template_Popularity_Summary_Tables":"返回模板热度汇总表","Fine-Engine_Report_Specified_Pages_Not_Exist":"页面没找到","Dec-Plugin_Intelligent_Cloud_Local_Update":"本地更新","Dec-Cluster_Refresh_Cache_Success":"刷新缓存成功","Dec-H5_Insert_Tip":"相对路径或http/https开头的绝对路径,多个文件以;隔开","BI-Basic_Simple_Thursday":"四","FR-Plugin_Design_Center_Longitude":"中心点经度","Dec-Basic_Options":"选项","Fine-Engine_Hour":"小时","Dec-Backup_Count_Limit":"份数上限","FR-Plugin_Server_Meter_Lumos":"轮播夜光仪表盘","FR-Plugin_Design_Base_Texture":"图层","Fine-Engine_FS_Report_RP_MyTask":"我的上报任务","Dec-User_Confirm_Clear":"手动添加、导入的所有用户将被清空，确定清空?","Dec-Workflow_Authority_Edit":"权限编辑","Dec-Dcm_Connection_Check_Integer":"请输入不小于0的整数","Dec-Error_Login_Username_Not_Exits":"用户名不存在","BI-Click_Blank_To_Select":"点击\"空格键\"选中完全匹配项","Dec-Error_Schedule_Parameter_Exist":"不能有相同名称的参数，请重新命名","Dec-Dcm_First_Step":"第一步","Fine-Engine_Sort_Ascending":"升序","Dec-Error_User_Username_Special_Keyword":"用户名包含安全设置的禁用字符","Dec-System_Input_Password":"请输入密码","Dec-Basic_Get_Help":"获取帮助","Dec-Basic_Edit":"编辑","Dec-Mobile_Template_Setting":"模板设置","Fine-Engine_Plugin_Store_BBS_Account_Login":"帆软通行证登录","Dec-Records_Take_Snapshot":"快照生成","FR-Plugin_Design_Blend_Mode":"叠加效果","Dec-Dcm_Type":"类型：{R1}","Dec-Templet_Limit":"模板限制","FR-Plugin_Design_Other_Main_Type":"扩展图表—其余","Dec-Workflow_Parameter-Integer":"整型","Fine-Engine_Plugin_Expire_Dialog_Title":"插件过期","Dec-H5_Setting":"H5设置","Dec-File_Analysis_Failed":"文件解析失败","Fine-Engine_Please_Enter_Correct_Date_Step":"请输入正确的日期步长！","FR-Plugin_Design_Trail_Width":"轨迹宽度","Fine-Dec_Error-Solution":"解决方案","Fine-Engine_Platform_RP_Page_Writerocess_Name_Not_Null":"流程名称不能为空","Fine-Engine_Report_Verifying":"校验中","Dec-Plugin_Cloud_Analysis_Feature_UploadFileByMarket":"通过帆软市场上传服务器运行数据","Fine-Engine_svg":"SVG导出","Dec-Basic_Manual_Upload":"手动上传","Dec-Management_Map_Draw_Marker_Tip":"点击来放置标记点","BI-Basic_Parameter_Move_Down":"下移","Fine-Engine_Basic_Email_Sending":"正在发送邮件","Dec-Cluster_Computing_Engine_Pop_Tip":"","Dec-Basic_Capital":"大写字母","Dec-Show_Error":"报错","Dec-Waiting_In_Line":"排队等待中","Dec-Dcm_Connection_Config_No_Save":"当前设置尚未保存，是否保存？","Dec-Error_Need_Select_Folder":"请选择目录节点","Dec-Connection_Authentication_Method":"{}认证","Dec-Task_Email_Notification":"邮件通知","Dec-Cluster_Manage_Set":"集群管理设置","Dec-End_Time":"结束时间","Dec-Connection_Item_Detail":"类型：{}\n创建者：{}","Dec-Intelligent_Cloud_Confidentiality_Agreement_Tip":"如有需求，可以签署保密协议","Dec-Platform_Log_Admin_Log":"管理日志","Fine-Engine_Platform_Short_Apr":"四","Dec-Workflow_Edit_Process":"编辑流程","Fine-Engine_Platform_Short_Jan":"一","Dec-Error_Not_Input_Https_URL":"请使用https://开头的服务器地址","Dec-Backup_Is_Latest_Now":"当前已是最新版本","Dec-Process_Task_Is_Processed":"该任务已经处理完毕","Dec-Deployment_Socket_Port_Tip":"请输入websocket端口号：","Fine-Engine_Basic_Email_Send_Success":"邮件已发送","Dec-Error_Backup_Name_Exit":"备份名称已存在","Dec-Users_Sync_Primary_Key_Change_Tip":"您将{}验证字段切换成了ID,这一操作将清空{}重新同步,导致相关权限丢失,确定进行切换?","Dec-Trigger_Condition":"触发条件","Dec-System_Login_Timeout_Tip":"勾选保持登录后不受超时时间限制","Dec-Reset_Password_Done":"生成的用户密码为: {}","Fine-Plugin_Engine_Transform_Unsupport_Tip":"模版转换成功，由于模版使用了暂未支持的功能，无法对其进行性能优化，将以兼容性模式支持正常使用\n若模版有优化诉求，可编辑cptx文件修改不支持的功能并保存或向我们反馈需求;","Dec-System_Password_Init_Update":"初始密码强制修改","Dec-Plugin-Store_Data_Interface":"数据接口","Dec-Disk_Sort_Dump_Threshold":"外排阈值","Dec-Mobile-Mobile_Dev_Binding":"移动平台","Dec-Intelligent_Cloud_Center_Detail":"前往云中心分析引擎查看分析详情","Dec-Dcm_Copy":"复制","Dec-System_Password_Strength_Contain_Symbol":"包含符号","Dec-Platform_Log_Error_Log":"出错日志","Dec-Basic_Continue":"继续","Dec-Basic_Clean_All":"%时，清除所有会话","Fine-Engine_Excel_The":"第","Dec-Version_Reg":"版本注册","Fine-Engine_Search_Role":"搜索角色","Fine-Dec_Chart_Dialog_OK":"确定","Fine-Engine_Report_Designer_Alert":"警告","Dec-System_Login_Lock_Set":"登录锁定设置","Dec-User_Dataset_Cleaning_Tip":"正在清空原有数据,请稍候...","Dec-Platform_User_Own_User":"平台使用用户下人员","Dec-Cluster_Redis_Node_Exception_Reminder_Tip":"该Redis节点无法正常使用，请及时检查该节点状态。","Dec-Monitor-Page":"分页浏览","Fine-Engine_Data_Upload":"数据多级上报","Dec-Cluster_Save_Open_Fail":"开启集群失败。请确认相关配置准确后再次提交","Dec-Dcm_Connection_Form_Database_Test_While_Idle":"开启空闲回收器检验","Fine-Engine_FS_System_Event_Submitfailure":"提交失败","Dec-Task_Detail_Value":"每{}的{}的{}时{}分执行","Dec-BI_View_User":"BI查看用户","Dec-Security_Watermark_Font_Size":"水印字号","Dec-Intelligent_Cloud_Incentive_Deduction_Service_Renewal":"·  抵扣企业技术支持服务续费中的合同金额","Dec-Deployment_Jar_Home":"%JAVA_HOME%/lib","Dec-System_Login_Auto_Unlock_Time":"自动解锁时间","Dec-Cluster_File_Server_SFTP_Has_Password":"使用SFTP必须填写用户名密码或者上传密钥文件","Dec-Reselection_Please":"重新选择","Dec-Task_Parameter_Add":"无参数，可添加","Dec-Plugin-Store_Delete":"删除","Dec-Backup_Jar_Rollback":"jar包还原","Dec-Reg_Fail_Reason":"失败原因","BI-Basic_August":"八月","Dec-Task_SFTP":"SFTP上传附件","Fine-Engine_Report_Year":"年","Fine-Engine_Report_Page_Setup":"页面设置","Fine-Engine_Platform_RP_To_Report":"待上报","Dec-User_Sync_Rate_Max_Limit":"同步频率应小于上限：{}秒","Dec-System_Log_Level":"系统日志级别","Dec-Task_Add_Detail":"添加明细频率","Dec-Monitor_Suggestion_Comma":"，","Dec-Workflow_Role":"角色","Dec-Task_Timer_Calculate_Desc":"所选模板将根据设置的周期和参数组合定时计算，生成结果报表和其他附件","Dec-Error_Contain_String":"不能包含{}","Dec-Templates_Application_Hangout":"申请挂出","BI-Word_Align_Left":"文字居左","Dec-Dcm_Connection_Click_Connect_Database":"点击连接数据库","Dec-Directory":"目录","Dec-Directory_Tag":"标签","Fine-Engine_print_pdf":"PDF打印","Dec-Plugin-Store_Install":"安装","Dec-Error_Migration_Database_Name":"只允许包含数字、字母、下划线和.","Dec-Mobile_Device":"设备","Fine-Engine_Excel_Data_Cols":"数据列","Fine-Engine_Report_Sat":"六","Dec-Management_Map_Center_Point":"中心点","Fine-Engine_Verify_Data_Verify":"数据校验","Dec-Dcm_Connection_Commonly":"常用","Dec-Basic_Forget_Password":"忘记密码","Dec-Look_Platform_Style_Block":"分块式背景","Dec-Add_User":"添加用户","Dec-Connection_Pooling":"连接池状态","Fine-Dec_Chart_TimeSwitch_Global":"全部","Dec-Workflow_Schedule-Monthly":"每月","Dec-Management_Map_Draw_Rectangle_Tip":"点击并拖拽画矩形","Dec-Basic_Digit":"数字","Fine-Engine_Platform_RP_Leapfrog_Back_Tip":"只有直线流程，才能使用越级回退功能，且每个节点只有一个用户或一个角色","Dec-System-UnSelected_Char":"未选择的字符","Dec-Login_Single_Logged_Tip":"您的账号已在其他平台登录，如非本人操作，为确保账号安全建议重新登录并立即修改密码","Dec-Workflow_FS_Start_Time":"开始时间","Dec-H5_TOP_NAVIGATOR_CHANGE_TITLE_SETTINGS":"修改标题默认设置","Fine-Core_LIC_Support_Online_Write":"数据录入","Dec-Dcm_Connection_Cannot_Too_Lang":"文本长度不能大于{R1}个字符","Dec-Plugin_Error_RemoteServiceNotStarted":"远程服务未开启","Dec-Plugin_Error_NotPluginInstallPackage":"不是插件安装包","Dec-Connection_Encoding_Auto":"自动","Dec-Task_Reload":"重新上传","Dec-Task_Indefinite_Duration":"无限期","Dec-Plugin_Has_Install_Lower":"已经安装低版本插件，是否进行更新？","Fine-Engine_Parameter_Double":"双精度型","Dec-User_Upper_Limit_Reached":"与其他管理员操作冲突，请刷新后重试","Fine-Engine_Basic_Calendar":"日历","Dec-Directory_Drag_Error_Not_Removable":"无效的移动","Dec-Basic_Email_Reminder":"邮件提醒","Dec-Look_Platform_Title":"平台标题","Dec-Plugin_Error_HasLowerPluginWhenInstall":"已经安装了低版本的插件","Dec-Cloud_Operation_Maintenance_Tpl_Performance":"模板性能风险分析","Dec-Interceptor_Error":"您的访问有风险，已被系统限制访问，如有疑问请联系管理员。","Dec-Log_Import":"导入","Fine-Engine_Report_Data_Connection_Driver_Name":"数据连接驱动器名称","Dec-Records_Push_Message":"消息推送","FR-Plugin_Design_Intensity":"强度","BI-Conf_Condition_And":"且条件","Fine-Engine_Report_Write_Group_Name_Here":"这里填写组名","Fine-Engine_Report_Verify_Failed":"校验失败","Dec-Report_Support_Formula":"支持公式輸入，如${today()}","Dec-Basic_Copy":"复制","Dec-Mobile_Directory_Style":"目录结构","Dec-No_Retrieve_Location_As_BaseDN":"不将检索位置作为 baseDN","Dec-Plugin-Store_Finereport":"帆软","Dec-Management_Map_Remove_Disable":"没有可删除的层级","Dec-Login_New_Password":"请输入新密码","Fine-Engine_ConditionB_Not_Null":"不为空","Fine-Engine_Plugin_Store_Private_Message":"私人消息","BI-Focus_Point_Schedule_Task":"定时调度BI","Dec-Memory_Release":"智能释放","BI-Basic_Please_Input_Formula":"请在下面的编辑框里面输入公式:","Dec-Illegal_Mail_Port":"请输入合法的端口号","Fine-Engine_Plugin_Store_No_Account_Tip":"还没有账号? |","Dec-User_Authentication_Tip":"提示：使用此认证方式的用户无法在本系统修改密码","Dec-Error_Task_Week_Run_Time":"请选择周执行时间","Fine-Dec_Chart_Map_Save":"保存","Fine-Engine_Loading_Component":"正在加载控件","Dec-Basic_Local_Installation":"本地安装","Dec-Task_File_Folder_Name_Over_Length":"任务设置参数较多或参数值较长，可能导致结果文件夹名称长度超出系统限制而任务运行失败。确定继续？","Dec-User_Synchronized_Edit_Enable":"用户可编辑","Dec-User_Name_Column_Can_Not_Null":"用户名列不能为空","Dec-Basic_Type":"类型","Dec-Workflow_Offline":"离线","FR-Plugin_Design_Node_Content":"节点内容","Dec-Message_Report":"上报消息","Dec-Single_Login_Set":"单一登录设置","Dec-Log_Migration":"迁移","Dec-Pin_Panel":"固定面板","Dec-Intelligent_Cloud_Data_Upload":"日志上传","Dec-Intelligent_Cloud_Application_Name":"应用名称","Fine-Plugin_Engine_Exception_Variable_Calculate":"变量计算错误({})","Dec-Already_Login_First":"已登录禁止再登录","Dec-Basic_None":"无","BI-Basic_Empty":"空","Dec-Confirm_Delete_Node":"确认删除该节点?","Dec.Reuse_Authority":"权限复用","Fine-Engine_FS_Task_Has_Been_Closed":"这个任务已经关闭","Dec-Post":"职务","Dec-Basic_User":"用户","Dec-Management_Map_Resume_Polygon":"点击以继续绘制","Fine-Engine_Parameter_Integer":"整型","Fine-Engine_ConditionB_Is_Less_Than":"小于","Fine-Engine_Report_Server_All_Error":"错误","Fine-Engine_Write_Stash_Failed_Msg":"暂存失败，请注意保存数据。","Fine-Engine_Parameter_String":"字符串","Dec-Error_Task_Mount_Directory_Null":"挂载目录不能为空!","BI-Basic_November":"十一月","Fine-Dec_Chart_Point":"点","Dec-Mobile_Loading_Upload_Tip":"支持GIF格式","Fine-Engine_Err_The_Value_Must_Be_Integer":"必须为整数","Fine-Plugin-Engine_Unconfirmed":"进一步确认","Dec-Memory_Detection_Server_Cluster_Node":"节点{}，","Dec-Cluster_File_Server_Sharing":"文件服务器共享","Fine-Engine_Platform_SetStartTime":"设定开始时间","BI-Multi_Date_Year_Prev":"年前","Dec-Memory_Release_Warning":"警报提示","Dec-Add_User_Tips":"成员可以通过邮箱和手机接收通知、验证等信息。为了更方便、安全地使用系统，建议添加邮箱和手机号！","Dec-Management_Map_Finish_Poly_Line":"点击最后一个点完成绘制形状","Fine-Engine_Platform_Refresh":"刷新","Fine-Engine_ConditionB_Contains":"contain","Dec-License_Dongle_Connection":"加密狗连接","Dec-Template_Authority_Select_Templates_Tip":"可在全局配置页面选择需要认证的模板","Dec-Cluster_Redis_Input_Node":"请完善节点信息","Fine-Engine_print_native":"本地软件打印","Dec-Security_Manage":"安全管理","Dec-Task_Last_Modify_Time":"上次修改时间","Dec-Security_Protection":"安全防护","Dec-Cache_Push":"释放内存","Dec-Look_Platform_Color_Scheme_Edit":"配色编辑","Dec-Data_Set_Preview_Rows_Setting":"显示行数设置","Fine-Dec_Chart_Use_Unit":"单位","Dec-Templates_Quick_Hangout":"快速挂出","Fine-Engine_Excel_Is_Title_Lines":"行是标题行","Dec-Plugin_Intelligent_Cloud_Unset_Email_Download":"未设置通知邮箱，将无法接受分析报告的邮件提醒。建议设置邮箱提醒后重新下载、上传数据包！","Dec-BI_Template_Filter_Reset":"重置","Dec-Email_Encryption_Method":"加密方式","Dec-Management_Map_Support_Format":"支持格式: .gif/.jpg/.png/.bmp","Dec-Error_Positive_Integer":"请输入有效的正整数","Dec-Workflow_Invalid_Task_Or_Process":"任务名称或流程名称不符合规范","Dec-User_Belong_To_Department_Tip":"您属于该部门，删除该部门可能对您的权限产生影响，确定删除？","Dec-Authority_Settings_Schedule_Authority":"定时调度管理","Fine-Engine_Report_Err_The_Value_Must_Be_Integer":"必须为整数","Dec-Dcm_Connection_Test_Fail":"{R1}测试连接失败","Dec-Cluster_Parameter_Redis_Storage_Key_Prefix":"Redis存储key前缀","Dec-File_Uploading_And_Analysising":"文件上传解析中...","Dec-Cluster_File_Cache_Mode_Active_Caching":"主动缓存","Dec-Schedule_Delete_Count":"共{}项","Dec-Task_Plus_Result_Link":"正文加上结果链接","Dec-System_SMS_Account_Balance":"帐号余额","Dec-Admin_Delete_Session":"管理员结束会话","Dec-Authority_Quick_Config":"权限快捷配置","Dec-Add_Tag":"添加标签","Fine-Engine_Report_Write_Attributes_Msg":"没有设置填报属性","Dec-Log_Back_Behavior_List":"返回用户行为汇总表","Dec-Log_Operation_User":"操作用户","Fine-Engine_Write_Enhanc_Not_Support_Function":"不支持此函数","Dec-Data_Set_Columns_Fail":"数据集不可用","Dec-Deployment_Socket_Port_Fail":"websocket端口冲突","Dec-User_Synchronized_Edit_Control_Tip":"勾选后，用户可编辑姓名、密码、手机、邮箱，可使用忘记密码功能。已存在用户的以上字段在定期同步时将不再更新","Dec-Mobile_Text_Icon_Visible":"显示文本控件图标\n","Dec-Init_Select_Migration":"","Dec-Generic-Manager_System":"管理系统根节点","BI-Basic_Year_Month":"年月","Fine-Dec_Chart_Map_DrawRectangle":"画矩形","Dec-Basic_Favorite":"收藏","Dec-Common-Help_Configuration":"集群配置","Dec-Basic_Rename":"重命名","Dec-Basic_Forget_Password_Authentication_SMS":"忘记密码-短信重置密码","Fine-Engine_Report_N.O..":"第","Fine-Engine_Condition_Greater_Than":"大于","Fine-Engine_Base_October":"十月","Fine-Core_Chart_Advanced_Interaction":"高级图表交互","Fine-Engine_Commit_Row_Count_Over_Message":"很抱歉，填报记录行数超过限制，请减少填报数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Workflow_Title":"标题","Dec-Schedule_Manage":"任务管理","Dec-Cluster_Parameter_Configuration":"参数配置","Fine-Plugin_Engine_Exception_Template_Calculate":"模版单元格计算错误({})","Dec-Authority_Set_Package_Auth":"对{}进行权限设置","Dec-Platform_Template":"报表模板","Fine-Engine_Applet_Print":"Applet打印","Fine-Dec_Chart_Stock_Check_Data":"请检查您的数据","Dec-Error_Old_Password_Null":"旧密码不能为空","Dec-Sava_All":"保存","Dec-User_Edit_User_Role_Column_Tip":"编辑自己所属⻆色可能对您的权限产生影响，请谨慎操作","Dec-Dcm_Connection_Form_UserName":"用户名","Fine-Plugin_Engine_Exception_Cycle":"发现循环依赖","Dec-Dcm_Connection_Form_Database_Max_Idle":"最大空闲连接数","Dec-Basic_Ajax_Request_Fail":"请求服务器数据失败","Dec-Basic_Default_Value":"默认值","Fine-Engine_Remote_Design_Authority_Manager":"权限管理","Dec-Connection_Lack_Driver":"未找到“{}”驱动。","Dec-Basic_Symbol":"符号","Fine-Engine_Combination":"组合","Dec-Workflow_Finished_Task":"已处理任务","Dec-Workflow_add":"添加","Fine-Dec_Title":"数据决策系统","BI-Tiao_Data":"条数据","Dec-System_WebSocket_Path_Error":"路径格式错误","Dec-Preview_Link":"预览链接","Dec-Error_Username_Null":"请输入用户名","Dec-Log_Time_Cost":"耗时(ms)","Dec-Cluster_Parameter_Redis_Storage_Key_Prefix_Validation_Checker":"支持英文大小写、阿拉伯数字、下划线，不支持中文和特殊字符","Fine-Engine_Basic_Email_Send_Failed":"邮件发送失败","Dec-Log_Export_Count":"导出次数","Fine-Engine_Add":"添加","Dec-Templates_My_Own_Templates":"我的模板","Fine-Dec_Chart_Unit_Ten_Thousand":"万","Fine-Engine_Platform_RP_Task_Created_By_Me":"我创建的任务","Dec-Mobile_Platform_User":"移动平台用户","Dec-System_Info":"系统情况","Dec-Basic_Sure":"确定","Dec-Intelligent_Cloud_Data_Desensitization_Tip":"只涉及产品改良和应用运维所需数据，绝不涉及业务数据","Fine-Engine_Report_Unit_MM":"毫米","Dec-Workflow_Page_Write":"页面填报","Fine-Dec_Chart_GIS_LAYER_NAME":"GIS层名称","Dec-Visit_Start_Time":"访问开始时间","Dec-Password_Can_Not_Null":"密码不能为空","FR-Plugin_Server_KPI_Card1":"轮播KPI指标卡-闪烁","Dec-Confirm_Check_All_UnSelected_User":"确认全选以下未选用户?","FR-Plugin_Server_KPI_Card2":"轮播KPI指标卡-电子","Dec-Platform_Path":"平台路径","Dec-Basic_Use":"使用","Dec-Path_Conflict":"路径冲突","Dec-User_Lic_Not_Limit_Tip":"当前用户类型不限人数，可点击编辑用户加以限制","Dec-Init_Database_Tip":"适用于企业正式使用","Dec-Basic_Learn_More":"了解更多","Dec-Workflow_Week":"周","Dec-Decision":"数据决策系统","Dec-Plugin-Store_BI":"决策平台","Dec-Cluster_Should_Restart":"为确保平台正常使用，请立即重启以关闭集群模式","Dec-Connection_Key_Path_Tip":"*请确认已经将krb5.conf文件已经添加到\\webapps\\webroot\\WEB-INF\\resources目录","Dec-Basic_Select":"选择","Fine-Engine_Web_ConditionB_Begins_With":"开头是","Dec-Memory_Detection_Server_Memory":"当前服务器设置的最大内存为{}M，建议不应小于12G","Fine-Engine_RowCount_Over_Message":"很抱歉，数据集行数过多触发保护机制，请减少查询数据量。若您是管理员，可于智能运维-内存管理-模板限制中更改此项限制。","Dec-Dcm_Connection_More_Title":"更多数据连接","Fine-Engine_Platform_Short_Aug":"八","Dec-Memory_Limit_Submit_Allow_Cartesian_Product":"允许填报笛卡尔积","Fine-Engine_excel":"Excel分页导出","Dec-Security_Access_Frequencies":"访问频率","Dec-Mobile_Template_Layout_Setting":"BI布局设置","FR-Plugin_Design_Map_Main_Type":"扩展图表—地图类","Dec-Task_Run_Once_End":"任务执行一次后即结束","Fine-Dec_Chart_Stock_Open":"开盘","Fine-Engine_Buy_Or_Change":"购买或者更换","FR-Plugin_Server_Texture_Light":"荧光","Dec-Workflow_After_Use":"后，使用","Dec-Data_Set_Name":"数据集名称","Dec-System_FR_Without_Account":"还没有帐号?","Dec-Workflow_Minute":"分","Dec-Intelligent_Cloud_Analysis_Report_Send_Email":"发送邮件提醒","Dec-Init_Waring_Tip":"","Dec-Cluster_Server_Configuration":"服务器配置","Fine-Dec_Chart_Map_DrawPolygon":"画多边形","Fine-Engine_ConditionB_Does_Not_Begin_With":"not begin with","Dec-Task_Restart_Desc":"如果任务中断按以下频率重新启动","Dec-Error_Task_Trigger_Tip":"以下执行频率无法触发，请检查频率设置，并确保和任务开始时间、结束时间无冲突：","Dec-Management_Map_GIS_Background":"gis背景","BI-Basic_Click_To_Add_Text":"+点击新增\"{}\"","Dec-Visit_Report":"访问报表","Fine-Engine_excelS":"Excel分页分sheet导出","Dec-Confirm_Delete_User":"确认删除该用户?","Fine-Template":"报表模板","Fine-Engine_excelO":"Excel原样导出","Fine-Plugin-Engine_Collapse_Tree":"折叠树","Dec-Error_Connection_Under_Edit":"该连接正在被{}编辑，请稍后再试","Dec-Login_Authentication_Open":"登录验证","FR-Plugin_Server_Layer_Blue":"蓝色","Dec-Intelligent_Cloud_Plugin_Installing":"正在安装云端运维…","Fine-Engine_Condition_Begin_With":"开头是","Dec-Task_Custom_Class_Parameter_Tip":"若自定义类中包含参数，可在此设置参数值","Fine-Engine_Platform_Short_Sep":"九","BI-Basic_Parameter_Delete":"删除","Dec-Users_Import_User_Tip":"数据更新过程中将跳过超级管理员。即若数据集中包含超级管理员信息,无法对超级管理员生效。","Dec-Basic_Simple_Month":"号","BI-Basic_Quarter_Begin":"季初","Dec-System_Backup":"系统备份","Dec-Module-Management_BI_Dashboard":"模板管理","Fine-Engine_FS_Report_RP_AddLabel":"添加上报标签","Fine-Engine_Write_Stash":"暂存","Fine-Engine_Exporting":"正在导出","Dec-Workflow_Add_MultiNode":"添加联合填报节点","Dec-Connection_Step_3":"第三步","Dec-Connection_Step_1":"第一步","Dec-Connection_Step_2":"第二步","Fine-Engine_Data_Type":"数据类型","Dec-Register_Failed":"注册失败","Fine-Engine_Utils_Submit":"提交","FR-Plugin_Server_Goal_Value":"目标值","Fine-Engine_excelL":"Excel整页导出","Fine-Engine_Report_Export_PDF":"pdf","Dec-System_UserName_And_Password":"用户名和密码","Fine-Engine_Report_Paper":"纸张","BI-Basic_Italic":"斜体","Fine-Engine_Platform_Loading":"正在加载","Dec-Task_View_Preset_Expression_Example_Month_Last":"每月最后一天19点50分","Fine-Engine_Platform_RP_Unlimited":"不限","Dec-Cloud_Operation_Maintenance":"云端运维","Dec-Show_All":"查看全部","Dec-Plugin_Intelligent_Cloud_Support_Email":"现已支持邮件提醒，第一时间获取云端分析数据报告","Dec-Init_Hsql_Desc":"默认平台数据存储于hsql中，建议初次下载的新用户选择内置数据库，可直接登录系统使用。考虑数据库性能，在开放给企业使用时需换成外接数据库。","FR-Plugin_Design_Split_Number":"分割段数","FR-Plugin_Server_Lines3D_On_Globe":"三维流向地球","Dec-Plugin-Store_Enable":"启用","Dec-Task_Monthly":"每月","Dec-Cluster_To_Configure":"待配置","Dec-Fine_Decision":"数据决策平台","Dec-Data_Set_Sql":"SQL数据集","Dec-Collecting_Dependents_Tip":"计算中,请稍候...","Dec-Task_Input_Method":"输入方式","Dec-Resource_Import":"资源导入","Fine-Engine_Utils_Print[Client]":"打印[客户端]","Dec-User_Old_Password_Watermark":"请输入旧密码","Dec-Monitor-Write":"填报浏览","Dec-Records_Send_SFTP":"SFTP上传","Dec-Auth_Search_Carrier_Package":"搜索业务包","Dec-Templates_Application_Hangout_Number":"申请挂出模板个数","Fine-Dec_Chart_DataFunction_Percent":"占比","Dec-H5_Use_Main_Tab_Navigator":"底部首页切换","Fine-Engine_Report_Season":"季","Dec-Current_System_Visit":"当前系统访问人数：","Dec-Workflow_SimgleNumber":"号","Dec-Error_File_Name":"不符合文件名规范","Dec-H5_Set_Resource_Server_Url":"设置资源地址","Dec-Connection_Save_Tip":"当前设置尚未保存，是否保存？","BI-Font_Colour":"字体颜色","Dec-Basic_Confirm":"确认","Dec-Migration_Import_Success":"已成功启用目标数据库","Dec-Connection_Authentication_Methods":"认证方式","Dec-Authority_Recovery_Inherit":"恢复继承权限","Dec-Workflow_TaskName":"任务名称","Fine-Engine_Base_Sat":"六","Dec-Workflow_Custom_FS_Process":"自定义流程匹配","BI-Basic_End_Stop":"末","Dec-Dcm_Edit":"编辑","BI-Basic_Add_And_Condition":"添加条件(且)","Dec-Monitor-Frm":"表单浏览","Dec-Workflow_Month":"月","Fine-Engine_Platform_Minute":"分","Dec-Backup_Link_Features":"查看新特性","Fine-Core_LIC_Support_Source_Relation":"多数据源关联","Dec-Real_Name_Column_Can_Not_Null":"姓名列不能为空","Fine-Engine_Report_Row":"行","Dec-Create_Analysis_Table":"添加自助数据集","Dec-Plugin_Intelligent_Cloud_System_Point":"「管理系统」访问记录","Dec-Operation_Time":"近一个月操作次数","Dec-Basic_Custom_Email":"自定义邮箱","Dec-Mobile_Platform_User_Own_User":"移动平台用户下人员","Dec-Management_Map_Restore":"重置","Dec-Cluster_Servlet_Name":"服务","Fine-Engine_Report_Multi_Excel_Import":"批量Excel数据导入","Dec-Users_Sync_Update_Roles_Help_Link":"点击了解更多数据更新规则","BI-Multi_Date_Day_Prev":"天前","Dec-Log_Test":"测试","Dec-Mail_Port_And_Encrypt":"端口和加密","Dec-Mobile_Directory_Style_Modify_T9_Default_Style":"修改九宫格默认设置","FR-Plugin_Design_Center":"居中","FR-Plugin_Design_Theme_Name":"主题名称","Dec-Basic_Select_None":"不选","Dec-Plugin-Install_Package":"插件安装包","Fine-Engine_Plugin_Expire_Dialog_Text":"插件过期,请前往帆软应用中心进行购买。","Fine-Engine_FS_Generic_Simple_Alert":"警告","Fine-Engine_Platform_RP_Page_Writerocess_Type":"流程类型","Fine-Engine_Write_Enhanc_Select_All":"全选","Fine-Engine_Basic_Current":"当前","Dec-Min_Cube_Free_HDSpace_Rate_Description":"当启用空间检查后，若空间倍数小于该值，则FineIndex不触发更新；FineIndex更新需求空间倍数=当前剩余空间/当前FineIndex占用空间","Fine-Basic_Write":"填报","Dec-Failed_Lic_Mysql_Update_Error":"更新 mysql 数据库出错","Dec-Migration_To_New_And_Use":"迁移并启用","Dec-Login_Normal_Other_Logged_Tip":"您的账号已在其他平台登录"},
    /**
     * 根据键获取国际化后的值
     * @param key 键
     * @returns {String} 国际化后的文本
     * @example
     *    FR.i18nText("Click");//输出结果为"点击"
     *    FR.i18nText("Sum({}, {}) = 3", 1,2);//输出结果为"Sum(1, 2) = 3"
     */
    i18nText: function (key) {
        var localeText = FR.i18n[key];
        if (!localeText) {
            localeText = key;
        }
        var len = arguments.length;
        if(len > 1){
            for(var i = 1;i<len;i++){
                var key = len === 2 ? "{}" : "{R"+i+"}";
                localeText = localeText.replaceAll(key, arguments[i]+"");
            }
        }
        return localeText;
    },

    /**
     * 获取不需要国际化的中文字符串
     * @param key 中文字符串对应的键
     * @returns {String} 中文字符串
     */
    plainText : function(key) {
        return this.chinese[key] || key;
    },

    /**
     * 获取国际化字符串的字符串宽度（根据当前语言环境动态变化）
     * @param key 国际化字符串对应的键
     * @param fontWidth 字体宽度
     * @returns {number} 字符串宽度
     */
    i18nTextWidth: function (key, fontWidth) {
        return FR.byteLength(this.i18nText(key)) * (fontWidth ? fontWidth : 6);
    }
});if (window.FR == null) {
	window.FR = {};
}
$.extend(FR, {
	$defaultImport : function() {
		var ars = arguments;
        if (ars[0] && typeof ars[0] === "object") {
            var config = $.extend({
                op: 'resource',
                path: null,
                type: null,
                must: false,
                async:false,
                callback:null
            }, ars[0]);
            config.url = FR.servletURL + '?op=' + config.op + '&resource=' + config.path;
            this.$import(config.url, config.type, config.must, config.async, config.callback);
        }
        else {
            if (ars[0] != null) {
                ars[0] = FR.servletURL + '?op=resource&resource=' + ars[0];
            }
            this.$import.apply(null, ars);
        }
	},

    $import: function () {
		var _LOADED = {}; // alex:保存加载过的
		function loadReady(src, must){
			var $scripts = $("head script");
			$.each($scripts, function(i, item) {
				if (item.src.indexOf(src) != -1) {
					_LOADED[src] = true;
				}
			});
			var $links = $("head link");
			$.each($links, function(i, item) {
				if (item.href.indexOf(src) != -1 && must){
					_LOADED[src] = false;
					$(item).remove();
				}
			});
		}

        function isFunction(callback) {
            if (null != callback && typeof callback === "function") {
                return true;
            }
            return false;
        }

		// must=true 强行加载
        return function (src, ext, must, isAsync, callback) {
			loadReady(src, must);
			// alex:如果已经加载过了的,直接return
            if (_LOADED[src] === true) {
                if (isFunction(callback)) {
                    callback();
                }
                return;
            }
			if (ext === 'css') {
				var link = document.createElement('link');
				link.rel = 'stylesheet'
				link.type = 'text/css';
				link.href = src;
				var head = document.getElementsByTagName('head')[0];
				head.appendChild(link);
				_LOADED[src] = true;
			} else {
                var async = false;
                if (null != isAsync && typeof isAsync === "boolean") {
                    async = isAsync;
                }
				// alex:这里用同步调用的方式,必须等待ajax完成
				$.ajax({
					url : src,
					dataType : "script", // alex:指定dataType为script,jquery会帮忙做globalEval的事情
					async : async,
                    cache: true,
					complete : function(res, status) {
						/*
						 * alex:发现jquery会很智能地判断一下返回的数据类型是不是script,然后做一个globalEval
						 * 所以当status为success时就不需要再把其中的内容加到script里面去了
						 */
						if (status == 'success') {
							_LOADED[src] = true;
                            if (isFunction(callback)) {
                                callback();
                            }
						}
					}
				})
			}
		}
	}()
});
$.extend(FR,{Events:{NOSELECT:"NOSELECT",EDITDATA:"EDITDATA",REMOVEDATA:"REMOVEDATA",REMOVESELF:"REMOVESELF",RESIZE:"_resize",BEFOREEDIT:"beforeedit",AFTEREDIT:"afteredit",VALUECHANGE:"valuechange",STOPEDIT:"stopedit",CHANGE:"change",EXPAND:"expand",COLLAPSE:"collapse",STATECHANGE:"statechange",CALLBACK:"callback",CLICK:"click",BEFORESTATECHANGE:"beforestatechange",DEALSELECTEDNODES:"dealselectednodes",AFTERBUILD:"afterbuild",AFTERREAD:"afterread",APPENDDATA:"appenddata",DEFAULTINIT:"defaultinit",TABCHANGE:"tabchange",TABCHANGESTART:"tabchangestart",SCROLLCHANGE:"scrollchange",AFTERINIT:"afterinit",STARTLOAD:"startload",AFTERLOAD:"afterload",INIT:"init",CELLVALUECHANGE:"cellvaluechange",BS:"beforesubmit",AS:"aftersubmit",SC:"submitcomplete",SF:"submitfailure",SS:"submitsuccess",BVW:"beforeverifywrite",AVW:"afterverifywrite",AV:"afterverify",BW:"beforewrite",AW:"afterwrite",WS:"writesuccess",WF:"writefailure",BA:"beforeappend",AA:"afterappend",BD:"beforedelete",AD:"afterdelete",UC:"unloadcheck",BTOPDF:"beforetopdf",ATOPDF:"aftertopdf",BTOEXCEL:"beforetoexcel",ATOEXCEL:"aftertoexcel",BTOWORD:"beforetoword",ATOWORD:"aftertoword",BTOIMAGE:"beforetoimage",ATOIMAGE:"aftertoimage",BTOHTML:"beforetohtml",ATOHTML:"aftertohtml",BIMEXCEL:"beforeimportexcel",AIMEXCEL:"afterimportexcel",BPDFPRINT:"beforepdfprint",APDFPRINT:"afterpdfprint",BFLASHPRINT:"beforeflashprint",AFLASHPRINT:"afterflashprint",BAPPLETPRINT:"beforeappletprint",AAPPLETPRINT:"afterappletprint",BSEVERPRINT:"beforeserverprint",ASERVERPRINT:"afterserverprint",BPRINT:"beforeprint",APRINT:"afterprint",BEMAIL:"beforeemail",AEMAIL:"afteremail",CARDCHANGE:"cardchange",ADAPTRECORD:"adaptiveInfoRecord",PARACOLLAPSE:"paraCollapse"}});
$(function(){if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(c){if(this===void 0||this===null){throw new TypeError()}var e,b,d=Object(this),a=d.length>>>0;if(a===0){return -1}e=a-1;if(arguments.length>1){e=Number(arguments[1]);if(e!=e){e=0}else{if(e!==0&&e!==(1/0)&&e!==-(1/0)){e=(e>0||-1)*Math.floor(Math.abs(e))}}}for(b=e>=0?Math.min(e,a-1):a-Math.abs(e);b>=0;b--){if(b in d&&d[b]===c){return b}}return -1}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(b){var a=this.length>>>0;
var c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}for(;c<a;c++){if(c in this&&this[c]===b){return c}}return -1}}});$.extend(Array.prototype,{weakIndexOf:function(c){for(var b=0,a=this.length;b<a;b++){if(FR.equals(c,this[b])){return b}}return -1},weakLastIndexOf:function(c){for(var a=this.length,b=a-1;b>=0;b--){if(FR.equals(c,this[b])){return b}}return -1},remove:function(b){var a=this.weakIndexOf(b);if(a!=-1){this.splice(a,1)}return this},removeWeakEqual:function(b){var a=this.weakIndexOf(b);
if(a!=-1){this.splice(a,1)}return this},clear:function(){while(this.length>0){this.pop()}}});(function(){$.fn.swapClass=function(b,a){return b==undefined?this.removeClass().addClass(a):this.removeClass(b).addClass(a)};$.fn.switchClass=function(b,a){if(this.hasClass(b)){return(a||a===0)?this.swapClass(b,a):false}else{return this.swapClass(a,b)}};$.fn.isChildOf=function(a){var c=this;var e=c[0];var d=a[0];var f=e.parentNode;while(f){if(f==d){return true}else{if(!f.tagName||f.tagName.toUpperCase()=="HTML"){return false
}}f=f.parentNode}return false};$.fn.isChildAndSelfOf=function(a){return(this.closest(a).length>0)};$.fn.mousewheel=function(a){return this.each(function(){var b=this;b.D=0;if(FR.Browser.isIE()||FR.Browser.r.safari||FR.Browser.r.chrome){b.onmousewheel=function(){b.D=event.wheelDelta;event.returnValue=false;a&&a.call(b)}}else{b.addEventListener("DOMMouseScroll",function(c){b.D=c.detail>0?-1:1;c.preventDefault();a&&a.call(b)},false)}})};$.extend($.Event.prototype,{stopEvent:function(){this.stopPropagation();
this.preventDefault()}})})();$.extend(String,{escape:function(a){return a.replace(/('|\\)/g,"\\$1")},leftPad:function(d,b,c){var a=String(d);if(!c){c=" "}while(a.length<b){a=c+a}return a.toString()},format:function(b){var a=Array.prototype.slice.call(arguments,1);return b.replace(/\{(\d+)\}/g,function(c,d){return a[d]})}});$.extend(String.prototype,{startWith:function(a){if(a==null||a==""||this.length===0||a.length>this.length){return false}return this.substr(0,a.length)==a},endWith:function(a){if(a==null||a==""||this.length===0||a.length>this.length){return false
}return this.substring(this.length-a.length)==a},getQuery:function(a){var b=new RegExp("(^|&)"+a+"=([^&]*)(&|$)");var c=this.substr(this.indexOf("?")+1).match(b);if(c){return unescape(c[2])}return null},appendQuery:function(a){if(!a){return this}var b=this;if(b.indexOf("?")===-1){b+="?"}if(b.endWith("?")!==false){}else{b+="&"}$.each(a,function(c,d){if(typeof(c)==="string"){b+=c+"="+d+"&"}});b=b.substr(0,b.length-1);return b},replaceAll:function(b,a){return this.replace(new RegExp(b,"gm"),a)},perfectStart:function(a){if(this.startWith(a)){return this
}else{return a+this}},allIndexOf:function(b){if(typeof b!="string"){return[]}var e=this;var a=[];var d=0;while(e.length>0){var c=e.indexOf(b);if(c===-1){break}a.push(d+c);e=e.substring(c+b.length,e.length);d+=c+b.length}return a}});$.extend(Function.prototype,{createCallback:function(){var a=arguments;var b=this;return function(){return b.apply(window,a)}},createDelegate:function(c){var d=this;var b=arguments[1];var a=arguments[2];return function(){var f=b||arguments;if(a===true){f=Array.prototype.slice.call(arguments,0);
f=f.concat(b)}else{if(typeof a=="number"){f=Array.prototype.slice.call(arguments,0);var e=[a,0].concat(b);Array.prototype.splice.apply(f,e)}}return d.apply(c||window,f)}},createInterceptor:function(b,a){if(typeof b!="function"){return this}var c=this;return function(){b.target=this;b.method=c;if(b.apply(a||this||window,arguments)===false){return}return c.apply(this||window,arguments)}},defer:function(c,e,b,a){var d=this.createDelegate(e,b,a);if(c||c===0){return setTimeout(d,c)}d();return 0},createSequence:function(b,a){if(typeof b!="function"){return this
}var c=this;return function(){var d=c.apply(this||window,arguments);b.apply(a||this||window,arguments);return d}},getNameArguments:function(){var d=this.toString();var c=/function[^\(]*\(([^\)]*)\)/.exec(d);var b=[];if(c!=null){b=c[1].split(",")}return $.map(b,function(a){return $.trim(a)})},arguments2Json:function(){var a=arguments;var b=this.getNameArguments();var c={};$.each(b,function(d,e){if(a.length>d){c[e]=a[d]}});return c}});if(window.FR==null){window.FR={}}if(window.FR.servletURL==null){window.FR.servletURL={}
}$.extend(FR,{Plugin:{validLevel:function(d,c){var a=d.version||1;var b=c.version||1;return a>=b}}});var browser=function(){var d=navigator.userAgent.toLowerCase(),b=window.opera,c={ie:/(msie\s|trident.*rv:)([\w.]+)/.test(d)||d.indexOf("edge")>-1,edge:d.indexOf("edge")>-1,opera:(!!b&&b.version),webkit:(d.indexOf(" applewebkit/")>-1),mac:(d.indexOf("macintosh")>-1),quirks:(document.compatMode=="BackCompat")};c.gecko=(navigator.product=="Gecko"&&!c.webkit&&!c.opera&&!c.ie);var a=0;c.isInnerHtmlSuitable=true;
if(c.ie&&!c.edge){var g=d.match(/(?:msie\s([\w.]+))/);var f=d.match(/(?:trident.*rv:([\w.]+))/);if(g&&f&&g[1]&&f[1]){a=Math.max(g[1]*1,f[1]*1)}else{if(g&&g[1]){a=g[1]*1}else{if(f&&f[1]){a=f[1]*1}else{a=0}}}c.ie11Compat=document.documentMode===11;c.ie9Compat=document.documentMode===9;c.ie10Compat=document.documentMode===10;c.ie8=!!document.documentMode;c.ie8Compat=document.documentMode===8;c.ie7Compat=((a===7&&!document.documentMode)||document.documentMode===7);c.isInnerHtmlSuitable=(a===9&&c.ie9Compat)||(a===10&&c.ie10Compat)||(c.ie&&a===11&&c.ie11Compat)||(a===8);
c.ie6Compat=a<7;c.ie8bellow=a<8;c.ie9above=a>8;c.ie9below=a<9;c.ie11above=a>10;c.ie11below=a<11}if(c.gecko){var e=d.match(/rv:([\d\.]+)/);if(e){e=e[1].split(".");a=e[0]*10000+(e[1]||0)*100+(e[2]||0)*1}}if(/chrome\/(\d+\.\d)/i.test(d)){c.chrome=+RegExp["\x241"]}if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(d)&&!/chrome/i.test(d)){c.safari=+(RegExp["\x241"]||RegExp["\x242"])}if(c.opera){a=parseFloat(b.version())}if(c.webkit){a=parseFloat(d.match(/ applewebkit\/(\d+)/)[1])}c.version=a;return c
}();$.extend(FR,{Browser:{r:browser,isIE6:function(){return browser.ie6Compat},isIE7:function(){return browser.ie7Compat},isIE8:function(){return this.getIEVersion()===8},isIE9:function(){return this.getIEVersion()===9},isIE10:function(){return this.getIEVersion()===10},isIE11:function(){return browser.ie&&browser.version===11},isIE11Before:function(){return browser.ie&&browser.version<11},isIE10Before:function(){return this.getIEVersion()<11},isIE8Before:function(){return this.getIEVersion()<9},isIE6Before:function(){return this.getIEVersion()<7
},isIE7Before:function(){return this.getIEVersion()<8},isIE9Later:function(){return browser.ie9above},getIEVersion:function(){return browser.ie?browser.version:undefined},isIE:function(){return browser.ie},isEdge:function(){return browser.edge},isSafari:function(){return browser.safari},isFirefox:function(){return !browser.ie&&$.browser.mozilla},isChrome:function(){return browser.chrome},isNotNormalBrowser:function(){return !$.browser},supportCSSAnimation:function(){var b=["animation","-webkit-animation","-moz-animation","-o-animation"];
for(var a=0;a<b.length;a++){if(b[a] in document.body.style){return true}}return false}}});(function(){$.extend(FR,{cjkEncodeDO:function(b){if($.isPlainObject(b)){var a={};$.each(b,function(d,c){if(!(typeof c=="string")){c=FR.jsonEncode(c)}d=FR.cjkEncode(d);a[d]=FR.cjkEncode(c)});return a}return b},cjkEncodeObjectForReq:function(b){var a=FR.cjkEncodeDO(b);return FR.encodePercentPlus(a)},cjkEncodeStrForReq:function(b){var a=FR.cjkEncode(b);return FR.encodePrecentPlus(a)},encodePercentPlus:function(b){if($.isPlainObject(b)){var a={};
$.each(b,function(d,c){if(!(typeof c=="string")){c=FR.jsonEncode(c)}d=FR.encodePrecentPlus(d);a[d]=FR.encodePrecentPlus(c)});return a}return b},isCrossOrigin:function(a){return a&&a.startsWith("http")&&!(a.substring(0,a.indexOf("/",a.indexOf("/")+2))==window.location.origin)},ajax:function(b){if(FR.performance.mark){FR.performance.mark("ajaxStart")}if(b){b.data=FR.cjkEncodeObjectForReq(b.data);b.headers=b.headers||{};b.headers.Authorization="Bearer "+FR.CookieInfor.getCookieByName("fine_auth_token");
if(!FR.isCrossOrigin(b.url)){FR.dealWithSessionIDParam(b)}if(FR.performance.mark){var a=b.complete;var c=b.headers.sessionID;if(_g()!==undefined&&_g()!==null){c=c||_g().currentSessionID||_g().sessionID}b.complete=function(){if(a){a.apply(this,arguments)}FR.performance.mark("ajaxEnd");FR.performance.measure("ajax","ajaxStart","ajaxEnd");var d=FR.performance.getEntriesByName("ajax");var e=d[d.length-1];if(e){FR.consumeArray.push({sessionID:c,startTime:FR.performance.timing.navigationStart+e.startTime,duration:e.duration})
}}}}$.ajax(b)},get:function(a,c,d,b){if($.isFunction(c)){b=b||d;d=c;c=undefined}if(c){c=FR.cjkEncodeObjectForReq(c)}$.get(a,c,d,b)},post:function(a,c,d,b){if($.isFunction(c)){b=b||d;d=c;c=undefined}if(c){c=FR.cjkEncodeObjectForReq(c)}$.post(a,c,d,b)},param:function(b){b=FR.cjkEncodeObjectForReq(b);return $.param(b)},url:function(a,b){if($.isPlainObject(b)){return a+"?"+FR.param(b)}return FR.cjkEncodeStrForReq(a)},buildServletUrl:function(b,a){if(a){b=$.extend({_:(""+new Date().getTime())},b)}return FR.url(FR.servletURL,b)
},resource:function(a){return FR.buildServletUrl({op:"resource",resource:a})},tc:function(c,b,a){try{return c.apply(b,a)}catch(d){FR.Msg.toast(d.toString());throw d}},pick:function(){var a,c=arguments.length;for(var b=0;b<c;b++){a=arguments[b];if(typeof a!=="undefined"&&a!==null){return a}}return null},dealWithSessionIDParam:function(c){if(c.data&&c.data.sessionID){if(c.headers){c.headers.sessionID=c.data.sessionID}else{c.headers={sessionID:c.data.sessionID}}delete c.data.sessionID}if(c.url&&c.url.indexOf("?")!==-1&&c.url.indexOf("sessionID=")!==-1&&(!c.type||c.type.toUpperCase()!=="GET")){var g=c.url.substr(c.url.indexOf("?")+1);
var a=g.split("&");var f=null;var b="";for(var d=0;d<a.length;d++){var e=a[d];if(e&&e.indexOf("sessionID=")===0){f=e.substr(10);continue}if(b){b+="&"+e}else{b=e}}c.url=c.url.substr(0,c.url.indexOf("?")+1)+b;if(f){if(c.headers){c.headers.sessionID=f}else{c.headers={sessionID:f}}}}},openUrlByForm:function(c){var e=$("<form>");$("body").append(e);if(c.indexOf("?")!==-1){var f=c.substr(c.indexOf("?")+1);var a=f.split("&");for(var d=0;d<a.length;d++){var g=a[d];var h=g.split("=");if(h.length===2){$("<input/>").attr("name",h[0]).val(h[1]).appendTo(e)
}}c=c.substring(0,c.indexOf("?"))}else{var b=$("<input>");e.append(b)}e.attr({"style":"display : none","target":"","method":"get","action":c});e.submit();e.remove()}})})();(function(){$.extend(FR,{formulaEvaluator:function(d,b,a){var c=b;return function(f){if(f||c==undefined||a){try{if(FR.SessionMgr.getSessionID()){c=FR.remoteEvaluate(d)}}catch(g){}}return c}},remoteEvaluateAsync:function(b,a){FR.ajax({url:FR.servletURL,type:"POST",async:true,data:{op:"fr_base",cmd:"evaluate_formula",sessionID:FR.SessionMgr.getSessionID(),expression:b},timeout:5000,complete:function(e,d){var f=FR.jsonDecode(e.responseText);
var c=f["result"];if($.isFunction(a)){a(c)}}})},remoteEvaluate:function(b){var a=null;FR.ajax({url:FR.servletURL,type:"POST",async:false,data:{op:"fr_base",cmd:"evaluate_formula",sessionID:FR.SessionMgr.getSessionID(),expression:b},timeout:5000,complete:function(d,c){a=FR.jsonDecode(d.responseText);if(a["error"]){FR.Msg.toast(FR.i18nText(a["error"]))}a=a["result"]}});return a}})})();(function(){var b=function(){};var c=(window.performance||window.webkitPerformance)||{mark:function(){},measure:function(){},getEntriesByName:function(){return[]
}};$.extend(FR,{performance:c,consumeArray:[]});var a=function(){if(FR.consumeArray.length>0){$.ajax({url:FR.fineServletURL+"/v10/consume/ajax",dataType:"json",type:"POST",data:{consumeArray:JSON.stringify(FR.consumeArray)}})}FR.consumeArray.clear()};setInterval(a,10000);$.extend(FR,{performance:c})})();(function($){var COL_IDS="ABCDEFGHIJKLMNOPQRSTUVWXYZ";$.extend(FR,{limitData:500,constant:{success:"success",failure:"failure"},emptyFn:function(){},parseINT:function(str){return parseInt(str,10)},isWidthOrHeight:function(o){if(typeof o=="number"){return o>=0
}else{if(typeof o=="string"){return/^\d{1,3}%$/.exec(o)||o=="auto"||/^\d+px$/.exec(o)}}},number2Percentage:function(number){return(~~(number*100))+"%"},isArray:function(a){return Object.prototype.toString.call(a)=="[object Array]"||a instanceof jQuery},applyStyles:function($el,styles){if($el instanceof jQuery&&styles){if(typeof styles=="string"){var re=/\s?([a-z\-]*)\:\s?([^;]*);?/gi;var matches;while((matches=re.exec(styles))!=null){$el.css(matches[1],matches[2])}}else{if(typeof styles=="object"){$el.css(styles)
}else{if(typeof styles=="function"){FR.applyStyles(dom,styles.call())}}}}},showMenuByEvent:function(o,evt,evtPosition){if(evtPosition===true){FR.showMenuByLocation(o,{left:evt.clientX,top:evt.clientY},{left:-5,top:-5})}else{if(evt.target){FR.showMenuByEl(o,$(evt.target))}else{FR.showMenuByLocation(o,{left:evt.clientX,top:evt.clientY+10})}}},isEmptyArray:function(array){if($.isArray(array)){if(array.length===0){return true}else{if(array.length===1){return array[0]===""}}}return false},applyFunc:function(obj,func,param,defaultValue){if((typeof func)=="function"){return func.apply(obj,param?param:[])
}return defaultValue},encodePrecentPlus:function(s){if(typeof(s)=="string"){s=s.replace(/%/gi,"%25");s=s.replace(/\+/gi,"%2B")}else{if(FR.isArray(s)){for(var i=0;i<s.length;i++){s[i]=FR.encodePrecentPlus(s[i])}}}return s},showMenuByEl:function(o,$el){var menu;if($el.fr_menu&&$el.fr_menu.menu&&(FR.equals($.extend({xxxMMenu:true},o),$el.fr_menu.opts)||$el.fr_menu.menu.close())){menu=$el.fr_menu.menu}else{o.$el=$el;menu=FR.createShortMenu(o);delete o.$el}var modify=1;if($el.offset().top<menu.$menuRoot.height()+modify||$el.offset().top+$el.height()+modify+menu.$menuRoot.height()<document.body.clientHeight){var offsetTop=$el.offset().top+$el.height()+modify
}else{var offsetTop=$el.offset().top-menu.$menuRoot.height()-modify}o.xxxMMenu=true;menu.show();menu.position($el.offset().left,offsetTop);$el.fr_menu={"menu":menu,"opts":o}},showMenuByLocation:function(o,location,modify){if(!modify){modify={left:0,top:0}}var menu=FR.createShortMenu(o);FR.showWithMenu(menu,location,modify)},showWithMenu:function(menu,location,modify){if(location.left<menu.$menuRoot.width()+modify.left||location.left+modify.left+menu.$menuRoot.width()<document.body.clientWidth){var left=location.left+modify.left
}else{var left=location.left-menu.$menuRoot.width()-modify.left}if(location.top<menu.$menuRoot.height()+modify.top||location.top+modify.top+menu.$menuRoot.height()<document.body.clientHeight){var top=location.top+modify.top}else{var top=location.top-menu.$menuRoot.height()-modify.top}menu.show();left=FR.Browser.isIE()?left-5:left;top=FR.Browser.isIE()?top-5:top;menu.position(left,top)},versionRemind:function(o){var jo=FR.jsonDecode(o);if(jo.exception=="failpass"){var msg=FR.i18nText("Fine-Engine_FS_FailPass_Improve_Your_Version");
if(jo.func){msg=jo.func+", "+msg}FR.Msg.toast(msg);return false}return true},createShortMenu:function(o){o=$.extend({minWidth:80,destroyOnClose:true},o);return new FR.frMenu(o)},doHyperlink:function(){function _doHyperlink(data){new Function(data)()}return function(evt,obj,evtPosition){if($.isArray(obj)){switch(obj.length){case 0:return;case 1:FR.doHyperlink(evt,obj[0]);break;default:var _noMenuHyperlink=function(data){return data&&(data.indexOf("changeParameter")>=0||data.indexOf("_g().name_widgets[")>=0)
};var noMenuHyperlink=[];var otherHyperlink=[];for(var i=0;i<obj.length;i++){var data=obj[i].data;if(_noMenuHyperlink(data)){noMenuHyperlink[noMenuHyperlink.length]=obj[i]}else{otherHyperlink[otherHyperlink.length]=obj[i]}}for(var i=0;i<noMenuHyperlink.length;i++){try{_doHyperlink(noMenuHyperlink[i].data)}catch(e){FR.Msg.toast(e.message)}}switch(otherHyperlink.length){case 0:return;case 1:FR.doHyperlink(evt,otherHyperlink[0]);break;default:FR.showMenuByEvent({items:$.map(otherHyperlink,function(cfg){return{src:cfg.name,handler:_doHyperlink.createCallback(cfg.data)}
})},evt,evtPosition||false)}}}else{_doHyperlink(obj.data)}}}(),doHyperlinkByGet:function(url,para,target,feature,title){if(arguments.length<1){return}var options=arguments[0];if(typeof options==="object"){url=options.url||"";para=options.para||{};target=options.target;feature=options.feature;title=options.title}para=$.extend({_:new Date().getTime()},para);var paraURIComponent=this.encodeGetURIPara2Str(para);var para4Post=this.encodePostURIPara(para);if(url.indexOf("?")==-1){url+="?"}this._doHyperlinkByGet(url,paraURIComponent,para4Post,target,feature,title)
},_doHyperlinkByGet:function(url,paraURIComponent,para4Post,target,feature,title){var targetUrl=url+paraURIComponent;if(this.shouldGet(target)){this.doHyperlinkActionByGet(targetUrl,target,feature,title)}else{if(this.shouldPost(targetUrl,target)){if(target==="_dialog"){var t=new Date().getTime();target=target+t;this.showHyperlinkDialog("",feature,target)}var submitForm=$("<form method='post' target='"+target+"' action='"+url+"'></form>").hide().appendTo($("body"));for(var i in para4Post){$('<input type="hidden" name="'+i+'" value=""/>').attr("value",para4Post[i]).appendTo(submitForm)
}submitForm.submit()}else{this.doHyperlinkActionByGet(targetUrl,target,feature,title)}}},showHyperlinkDialog:function(url,feature,target){var isIEUnder8=FR.Browser.isIE8Before();var iframeWidth=isIEUnder8?"99%":"100%";var iframeHeight=isIEUnder8?"99%":"100%";var iframeDialog="<iframe src='' id ="+target+" name = "+target+" width="+iframeWidth+" height= "+iframeHeight+" scrolling='no' frameborder='0'></iframe>";var options={};iframeDialog=$(iframeDialog).attr("src",url)[0];var width,height;if(_.isString(feature)){if(feature.split(",").length>2){width=feature.split(",")[0];
if(width.indexOf("=")!==-1){width=width.substring(width.indexOf("=")+1,width.length);options.width=parseInt(width)||600}height=feature.split(",")[1];if(height.indexOf("=")!==-1){height=height.substring(height.indexOf("=")+1,height.length);options.height=parseInt(height)||400}}options.title=" "}else{$.extend(true,options,feature)}options.contentHtml=iframeDialog;FR.showCustomDialog(options)},doHyperlinkByGet4Reportlet:function(url,para,target,feature,title){if(arguments.length<1){return}var options=arguments[0];
if(typeof options==="object"){url=options.url||"";para=options.para||{};target=options.target;feature=options.feature;title=options.title}para=this._filterHyperLinkPara(para);para={__parameters__:FR.jsonEncode(para),_:new Date().getTime()};var paraURIComponent=this.encodeGetURIPara2Str(para);var para4Post=this.encodePostURIPara(para);if(url.indexOf("?")==-1){url+="?"}this._doHyperlinkByGet(url,paraURIComponent,para4Post,target,feature,title)},doHyperlinkByPost:function(url,para,target,feature,title){if(arguments.length<1){return
}var options=arguments[0];if(typeof options==="object"){url=options.url||"";para=options.para||{};target=options.target;feature=options.feature;title=options.title}para=this._filterHyperLinkPara(para);if(this.$hyperlinkForm){this.$hyperlinkForm.html("")}else{this.$hyperlinkForm=($("<div>").appendTo($(document.body))).css({"display":"none","position":"absolute"})}if(target==null){target="formresult"}para=encodeURIComponent(FR.jsonEncode(para));if(target==="_dialog"){var t=new Date().getTime();target=target+t;
this.showHyperlinkDialog("",feature,target)}var submitForm=$("<form method='post' target='"+target+"' action='"+url+"'></form>").appendTo(this.$hyperlinkForm);var input=$('<input type="hidden" name="__parameters__" value=""/>');input.attr("value",para);submitForm.append(input);if(this.shouldGet(target)){this.doHyperlinkActionByGet(this.getTargetUrlByPost(url,para),target,feature,title);return}submitForm.submit()},doHyperlinkActionByGet:function(targetUrl,target,feature,title){if(target&&target==="_dialog"){this.showHyperlinkDialog(targetUrl,feature,target)
}else{window.open(targetUrl,target)}},getTargetUrlByPost:function(url,para){var pString="__parameters__="+encodeURIComponent(para);url+=url.indexOf("?")==-1?"?":"&";return url+pString},shouldPost:function(targetUrl,target){if(target===undefined){return false}return !this.shouldGet()&&targetUrl.length>=2048&&FR.Browser.isIE()},shouldGet:function(target){return false},_filterHyperLinkPara:function(nativePara){var filteredNativePara={};$.each(nativePara,function(pName,pValue){if(!$.isPlainObject(pValue)){filteredNativePara[pName]=pValue
}});return filteredNativePara},_processArrayValue:function(value){if(_.isArray(value)&&!FR.isEmptyArray(value)){if(_.isArray(value[0])){value=value.join(";")}else{value=value.toString()}}return value},encodePostURIPara:function(nativePara){var encodedPara={};$.each(nativePara,function(pName,pValue){pValue=FR._processArrayValue(pValue);encodedPara[encodeURIComponent(pName)]=encodeURIComponent(pValue)});return encodedPara},encodeGetURIPara:function(nativePara){var encodedPara={};$.each(nativePara,function(pName,pValue){pValue=FR._processArrayValue(pValue);
encodedPara[encodeURIComponent(encodeURIComponent(pName))]=encodeURIComponent(encodeURIComponent(pValue))});return encodedPara},encodeGetURIPara2Str:function(nativePara){var uriComponent="";$.each(nativePara,function(pName,pValue){pValue=FR._processArrayValue(pValue);uriComponent+="&"+encodeURIComponent(encodeURIComponent(pName))+"="+encodeURIComponent(encodeURIComponent(pValue))});return uriComponent},isEmpty:function(value){var result=value===""||value===null||value===undefined;return result},isEmptyObj:function(obj){return _.isEmpty(obj)
},toRE:function(str){return str.replace(/\\/g,"\\\\").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\*/g,"\\*").replace(/\|/g,"\\|").replace(/\?/g,"\\?").replace(/\$/g,"\\$").replace(/\^/g,"\\^")},_executeScriptFromHtml:function(html){var html_script=html.substring(0,500);var html_script_low=html_script.toLowerCase();var begin=html_script_low.indexOf("<"+"script>");if(begin<0){return}var end=html_script_low.indexOf("</"+"script>");
html_script=html_script.substring(begin+8,end);try{eval(html_script)}catch(e){}},extend:function(){return function(sb,sp,overrides){if(typeof sp=="object"){overrides=sp;sp=sb;sb=function(){sp.apply(this,arguments)}}if(sp==null){console&&console.log("empty")}var F=function(){},spp=sp.prototype;F.prototype=spp;sb.prototype=new F();sb.superclass=spp;$.extend(sb.prototype,overrides);return sb}}(),SessionMgr:function(){var sid,cp;$(window).unload(function(){$(window).unbind("unload",arguments.callee);
$.ajaxSetup({cache:false});if(sid&&cp&&FR.servletURL&&cp.rtype!="preview"&&cp.rtype!="bi"&&!cp.noClossSession){if(navigator.sendBeacon){navigator.sendBeacon(FR.servletURL+"?op=closesessionid&sessionID="+sid,new FormData())}else{var closeSession=function(sid){FR.ajax({async:false,url:FR.servletURL,data:{op:"closesessionid",sessionID:sid}})};closeSession(sid)}}});return{getSessionID:function(){return sid},getContentPane:function(){return cp},get:function(){return cp},register:function(id,s){sid=id;
cp=s}}}(),CookieInfor:{getCookies:function(){var cookieString=document.cookie;return unescape(cookieString).split(";")},addCookie:function(name,value,temp){var newCookie=name+"="+escape(value);var liveDays=temp?temp:30;var expires=new Date();expires.setDate(expires.getDate()+liveDays);newCookie+=";expires="+expires.toGMTString();document.cookie=newCookie},removeCookie:function(name){var expires=new Date();expires.setTime(expires.getTime()-1);document.cookie=name+"="+";expires="+expires.toGMTString()
},clearCookie:function(){var self=this;var $cookies=this.getCookies();$.each($cookies,function(i){var cookieName=$cookies[i].split("=")[0];self.removeCookie(cookieName)})},getCookieByName:function(name){var $cookies=this.getCookies();var re=new RegExp(name);var value=null;$.each($cookies,function(i){if($cookies[i].match(re)){value=$cookies[i].split(name+"=")[1];return false}});return value}},isCJKEncoded:function(text){var isCJKEncoded=false;if(FR.isEmpty(text)||typeof text!=="string"){return false
}else{var bracketPattern=/\[[^\]]*]/ig;var contentPattern=/^\[[0-9a-f]{2,4}]$/ig;var f=text.match(bracketPattern);if(f===null||FR.isEmpty(f.length)||f.length===0){return false}else{var content="";var index=0;var count=f.length;do{if(index>0&&count>=index){return isCJKEncoded}if(count<index){break}content=f[index];isCJKEncoded=true;index++}while(content.match(contentPattern))}}return false},cjkEncode:function(text){if(typeof text!=="string"){return text}var newText="";for(var i=0;i<text.length;i++){var code=text.charCodeAt(i);
if(code>=128||code===91||code===93){newText+="["+code.toString(16)+"]"}else{newText+=text.charAt(i)}}return newText},cjkDecode:function(text){if(text==null){return""}if(!FR.isCJKEncoded(text)){return text}if(!isNaN(text)||text.indexOf("[")==-1){return text}var newText="";for(var i=0;i<text.length;i++){var ch=text.charAt(i);if(ch=="["){var rightIdx=text.indexOf("]",i+1);if(rightIdx>i+1){var subText=text.substring(i+1,rightIdx);if(subText.length>0){ch=String.fromCharCode(eval("0x"+subText))}i=rightIdx
}}newText+=ch}return newText},htmlSpaceDecode:function(text){return(text==null)?"":String(text).replace(/&nbsp;/g," ")},htmlEncode:function(text){return(text==null)?"":String(text).replace(/&/g,"&amp;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},htmlDecode:function(text){return(text==null)?"":String(text).replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ")},jsonEncode:function(o){var useHasOwn={}.hasOwnProperty?true:false;
var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var encodeString=function(s){if(/["\\\x00-\x1f]/.test(s)){return'"'+s.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+s+'"'};var encodeArray=function(o){var a=["["],b,i,l=o.length,v;for(i=0;i<l;i+=1){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")
}a.push(v===null?"null":FR.jsonEncode(v));b=true}}a.push("]");return a.join("")};if(typeof o=="undefined"||o===null){return"null"}else{if($.isArray(o)){return encodeArray(o)}else{if(o instanceof Date){return FR.jsonEncode({__time__:o.getTime()})}else{if(typeof o=="string"){return encodeString(o)}else{if(typeof o=="number"){return isFinite(o)?String(o):"null"}else{if(typeof o=="boolean"){return String(o)}else{if($.isFunction(o)){return String(o)}else{var a=["{"],b,i,v;for(i in o){if(!useHasOwn||o.hasOwnProperty(i)){v=o[i];
switch(typeof v){case"undefined":case"unknown":break;default:if(b){a.push(",")}a.push(FR.jsonEncode(i),":",v===null?"null":FR.jsonEncode(v));b=true}}}a.push("}");return a.join("")}}}}}}}},jsonDecode:function(text,eCallback){try{var jo=$.parseJSON(text);if(jo==null){jo={}}}catch(e){try{jo=new Function("return "+text)()||{}}catch(e){if($.isFunction(eCallback)){try{eCallback.call(this,text)}catch(e){}}}if(jo==null){jo=[]}}if(!FR._hasDateInJson(text)){return jo}return(function(o){if(typeof o==="string"){return o
}if(o&&o.__time__!=null){return new Date(o.__time__)}for(var a in o){if(o[a]==o||typeof o[a]=="object"||$.isFunction(o[a])){break}o[a]=arguments.callee(o[a])}return o})(jo)},_hasDateInJson:function(json){if(!json||typeof json!=="string"){return false}return json.indexOf("__time__")!=-1},setBackground:function($dom,bg,height){var type=bg["type"];if((type===4||type===2)&&FR.Browser.isIE()){if(FR.ieForFixBackground()){var url=bg["url"];var bgImage=$("<img src='"+url+"' id='para-bg'>");bgImage.css({width:"100%",height:"100%"});
bgImage.appendTo($dom)}else{$.each(["background-image","background-repeat","filter","background","background-position"],function(idx,item){if(bg[item]!=null){$dom.css(item,bg[item])}})}}else{$.each(["background","background-size","background-image","background-position","background-repeat"],function(idx,item){if(bg[item]!=null){$dom.css(item,bg[item])}})}},ieForFixBackground:function(){return FR.Browser.isIE8Before()},contains:function(p,c){return FR.isAncestor(p,c)?true:((!p||!c)?false:p==c)},isAncestor:function(p,c){if(!p||!c){return false
}if(p.contains&&!(FR.Browser.r.safari||FR.Browser.r.chrome)){try{return p.contains(c)}catch(e){}}if(p.compareDocumentPosition){return !!(p.compareDocumentPosition(c)&16)}else{var parent=c.parentNode;while(parent){if(parent==p){return true}else{if(!parent.tagName||parent.tagName.toUpperCase()=="HTML"){return false}}parent=parent.parentNode}return false}},isNavKeyPress:function(event){if(!event){return false}var safariKeys={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};
var k=event.keyCode;k=(FR.Browser.r.safari||FR.Browser.r.chrome)?(safariKeys[k]||k):k;return(k>=33&&k<=40)||k===13||k==FR.keyCode.TAB||k==FR.keyCode.ESCAPE},isSpecialKey:function(e){if(!e){return false}var k=e.keyCode;return(e.type=="keypress"&&e.ctrlKey)||k===9||k===13||k===40||k===27||(k===16)||(k===17)||(k>=18&&k<=20)||(k>=33&&k<=35)||(k>=36&&k<=39)||k===44||(k===13||k===229)},equals:function(v1,v2){if(FR.isNull(v1)||FR.isNull(v2)){return v1==undefined&&v2==undefined||v1==null&&v2==null}if(v1===v2){return true
}else{if(v1 instanceof Date&&v2 instanceof Date){return v1.getTime()===v2.getTime()}else{if($.isArray(v1)){if(v1.length==v2.length){for(var i=0;i<v1.length;i++){if(!FR.equals(v1[i],v2[i])){return false}}}else{return false}}else{if(typeof v1=="object"){var lv1=0,lv2=0;for(var i in v1){lv1++}for(var i in v2){lv2++}if(lv1!=lv2){return false}for(var a in v1){if(!FR.equals(v1[a],v2[a])){return false}}}else{return v1===v2}}}}return true},isNull:function(v){return v==undefined||v==null},lengthenFileName:function(name,s){if(!name){return
}if(name.lastIndexOf(".")==-1){return name+s}var leftName=name.substring(0,name.lastIndexOf("."));var rightName=name.substring(name.lastIndexOf("."),name.length);return leftName+s+rightName},getCursorPosition:function(input){try{if(input.value==""){return 0}var cursurPosition=-1;if(input.selectionStart){cursurPosition=input.selectionStart}else{var rngSel=document.selection.createRange();var rngTxt=input.createTextRange();var flag=rngSel.getBookmark();rngTxt.collapse();rngTxt.moveToBookmark(flag);
rngTxt.moveStart("character",-input.value.length);cursurPosition=rngTxt.text.length}return cursurPosition}catch(e){return input.value.length}},setCursorPosition:function(input,pos){if(input.setSelectionRange){input.focus();input.setSelectionRange(pos,pos)}else{if(input.createTextRange){var lineChangeNum=input.value.length-input.value.replace(/\n/g,"").length;pos=pos-lineChangeNum+1;var range=input.createTextRange();range.collapse(true);range.moveEnd("character",pos);range.moveStart("character",pos);
range.select()}}},id2ColumnRowStr:function(id){return id.replace(/([A-Z]+\d+)-\d+-\d+/,"$1")},id2ColumnRow:function(id){return FR.cellStr2ColumnRow(FR.id2ColumnRowStr(id))},id2Location:function(id){var rt=FR.id2ColumnRow(id);var arr=id.split("-");rt.rptIdx=arr[1];return rt},cellStr2ColumnRow:function(name){name=$.trim(name.toUpperCase());if(!FR.isValidCellStr(name)){return null}var colStr=name.replace(/([A-Z]+)\d+/,"$1");var rowStr=name.replace(/[A-Z]+(\d+)/,"$1");var col=FR.letter2Digit(colStr)-1;
var row=parseInt(rowStr)-1;return{col:col,row:row}},columnRow2CellStr:function(cr){var col=parseInt(cr.col);var row=parseInt(cr.row);if(typeof col!="number"||typeof row!="number"){return""}return FR.digit2Letter(col+1)+(row+1)},isValidCellStr:function(str){if(str.match(/^[A-Z]+\d+$/)==null){return false}else{return true}},letter2Digit:function(abc){var len=abc.length;var col=0;for(var i=len-1;i>=0;i--){var c=abc.charAt(i);col+=(COL_IDS.indexOf(c)+1)*Math.pow(26,len-1-i)}return col},digit2Letter:function(k){var c,abcBuf="";
if(typeof k!="number"||k===0||isNaN(k)||!isFinite(k)){return abcBuf}for(;k!==0;){c=k%26;if(c===0){c=26}abcBuf=COL_IDS.charAt(c-1)+abcBuf;k=(k-c)/26}return abcBuf},byteLength:function(str){if(FR.isEmpty(str)){return 0}var byteLen=0,len=str.length;for(var i=0;i<len;i++){byteLen+=str.charCodeAt(i)>255?2:1}return byteLen},keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},location:function(callback){callback.call(this,"fail",FR.i18nText("Fine-Engine_Basic_Fail_Location"))
},html:function(ob,content){function transferStr(str){if(FR.isEmpty(str)){return str}return String(str).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ /g,"&nbsp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/\(/g,"&#40;").replace(/\)/g,"&#41;").replace(/&lt;br\/&gt;/g,"<br/>").replace(/&lt;br&gt;/g,"<br>").replace(/&amp;nbsp;/g,"&nbsp;")}ob.html(transferStr(content));return ob}})})(jQuery);(function(b){var a={};b.shortcut=function(d,c){if(a[d]!=null){throw ("shortcut:["+d+"] has been registed")
}a[d]=c;b.extend(c.prototype,{xtype:d})};FR.Logger={error:function(f){var g,c;if(f instanceof Error){c=f.stack;g=f.message}else{c="";g=f.toString()}var d={trace:c,message:g};FR.ajax({url:FR.servletURL+"?op=js_log&cmd=log_js_error",type:"POST",data:d})}};FR.createWidget=function(d,j){if(d instanceof b){return new FR.Widget({renderEl:d})}if(d["classType"]){return new (new Function("return "+d["classType"]+";")())(d)}if(!d.type){if(j!==true){var h="config type cannot be null.";FR.Logger.error(new Error(h));
return new FR.ErrorMarkWidget({renderEl:d.renderEl,message:h,width:d.width,height:d.height})}}var i=d.type.toLowerCase();var c=a[i];try{return new c(d)}catch(g){FR.Logger.error(g);if(j===true){throw g}else{var f=d.widgetName?d.widgetName:d.type;return new FR.ErrorMarkWidget({renderEl:d.renderEl,message:f+FR.i18nText("Fine-Engine_Base_Widget_Error_Mark_Text"),detail:FR.i18nText("Fine-Engine_Detail_Message")+":"+g,width:d.width,height:d.height})}}};b.fn.extend({asComponent:function(c){c=c||{};c.renderEl=b(this);
return FR.createWidget(c)}})})(jQuery);if(window._g==null){window._g=FR.SessionMgr.getContentPane}$.extend(FR,{string2ints:function(h){var b=[];var g=h.split(",");for(var e=0;e<g.length;e++){var d=g[e];var f=d.split("-");var a=parseInt(f[0]),c=a;if(f.length>1){c=parseInt(f[1])}for(var j=a;j<=c;j++){b.push(j)}}return b}});$.extend(FR,{activeBranches:function(branches,parameters,processid,taskName,serverURL,needClose){if(processid&&taskName){var it={"id":processid,"taskname":taskName}}else{var it=this.getProcessIDAndTaskName();
if(!it.processid){FR.Msg.toast(FR.i18nText("Fine-Engine_FS_Task_Has_Been_Closed"));return}}if(!it){return}if(!$.isArray(branches)){branches=[branches]}if(parameters!=null&&!$.isArray(parameters)){parameters=[parameters]}var data=$.extend(it,{branches:branches});if(parameters){$.each(parameters,function(idx,item){if(item.value.toString().startWith("eval")){var evalValue=item.value.toString().substring(5,item.value.toString().length-1);item.value=eval(evalValue)}});data.parameters=parameters}this.ajax({url:(serverURL?serverURL:FR.servletURL)+"?op=process_exe&cmd=continue",data:data,type:"post",complete:function(res,status){if(res.responseText=="close"){FR.Msg.toast(FR.i18nText("Fine-Engine_FS_Task_Has_Been_Closed"));
return}this.refreshUserTask(it)}.createDelegate(this)})},getProcessIDAndTaskName:function(){var a={};this.ajax({url:FR.servletURL+"?op=process_exe",async:false,data:{sessionID:FR.SessionMgr.getSessionID(),cmd:"values"},complete:function(c,b){a=FR.jsonDecode(c.responseText)}});return a},refreshUserTask:function(b){var a=window.parent;if(!a||!a.FS||!a.FS.Process){location.reload(true);return}a.FS.Process.refreshTask();var c="?op=process_exe&cmd=seejob&taskname="+b.taskname+"&processexecutorid="+b.id+"&processid="+b.processid;
a.FS.tabPane.addItem({"title":FR.i18nText("Fine-Engine_FS_Handle_Affairs")+b.id,src:c})}});$.extend(FR,{logoutApp:function(){}});(function(a){a(document).ready(function(){FR.windowHeight=a(window).height();FR.windowWidth=a(window).width();if(FR.windowHeight===0||FR.windowWidth===0){FR.windowHeight=document.body.clientHeight;FR.windowWidth=document.body.clientWidth}a(window).resize(function(){if(FR.Browser.isIE()){var c=a(window).height();var b=a(window).width();if(c===0||b===0){c=document.body.clientHeight;
b=document.body.clientWidth}if(c===0||b===0){setTimeout(function(){FR.windowHeight=a(window).height();FR.windowWidth=a(window).width();if(FR.windowHeight===0||FR.windowWidth===0){FR.windowHeight=document.body.clientHeight;FR.windowWidth=document.body.clientWidth}},0)}else{FR.windowHeight=c;FR.windowWidth=b}}else{FR.windowHeight=a(window).height();FR.windowWidth=a(window).width()}});FR.parameterContainerHeight=0;FR.toolbarHeight=0})})($);
(function(a){a.extend(FR,{contentFormat:function(c,b){if(FR.isEmpty(c)){return""}var e=c.toString();if(FR.isEmpty(b)){return e}if(b.match(/^T/)){return e}else{if(b.match(/^D/)){if(!(c instanceof Date)){if(typeof c==="number"){c=new Date(c)}else{c=this._dateTransform(e)}}if(!FR.isNull(c)&&!FR.isInvalidDate(c)){var d=b.match(/^DT/);e=FR.date2Str(c,b.substring(d?2:1))}}else{if(b.match(/E/)){e=FR._eFormat(e,b)}else{e=FR._numberFormat(e,b)}}}e=e.replace(/\¤/g,"￥");return e},_dateTransform:function(l){var h=(""+l).replace(/[-.]/g,"/");
var d=new Date(Date.parse(h));if(!FR.isNull(d)&&!FR.isInvalidDate(d)){return d}var f;var b=h.split(" ");var c=b[0];var g=c.indexOf("/");var k=c.lastIndexOf("/");if(g!==-1&&g===k){var j=+(c.substr(0,g));if(isNaN(j)){return d}f=(j>0&&j<=12)?"2001/"+c:c+"/01";if(b.length>1){for(var e=1;e<b.length;e++){f=f+" "+b[e]}}return new Date(f)}else{return d}},_dealNumberPrecision:function(g,d){if(/[eE]/.test(g)){var c=0,e=0,f;if(/[%‰]$/.test(d)){c=/[%]$/.test(d)?2:3}for(var b=d.length;e<b;e++){if((f=d.charAt(e))==="0"||f==="#"){c++
}}return Number(g).toFixed(c)}return g},_numberFormat:function(l,j){var l=l+"";if(!(/[0-9]/.test(l))||!j){return l}var m=j.indexOf(";");if(m>-1){if(l>=0){return FR._numberFormat(l+"",j.substring(0,m))}else{return FR._numberFormat((-l)+"",j.substr(m+1))}}else{if(+l<0&&j.charAt(0)!=="-"){return FR._numberFormat((-l)+"","-"+j)}}var h=j.split("."),e=h[0]||"",b=h[1]||"";l=this._dealNumberPrecision(l,b);var i=l.split("."),c=i[0]||"",f=i[1]||"";if(/[%‰]/.test(j)){var g=/[%]/.test(j)?"00":"000";f+=g;c+=f.substr(0,g.length);
c=c.charAt(0)==="-"?c.replace(/^-0+/gi,"-"):c.replace(/^0+/gi,"");f=f.substr(g.length).replace(/0+$/gi,"")}var k=FR._dealWithRight(f,b);if(k.leftPlus){c=parseInt(c)+1+"";c=isNaN(c)?"1":c}k=k.num;var d=FR._dealWithLeft(c,e);if(!(/[0-9]/.test(d))){d=d+"0"}if(!(/[0-9]/.test(k))){return d+k}else{return d+"."+k}},_eFormatOld:function(r,d){r=this.numberStringWithoutE(r);var n=d.indexOf("E");var l=d.substr(0,n),q=d.substr(n+1);if(/^[0.-]+$/.test(r)){r=FR._numberFormat(0,l)+"E"+FR._numberFormat(0,q)}else{var b=r<0;
if(b){r=r.substr(1)}var h=(l.split(".")[0]||"").length;var o=r.indexOf(".");if(o<0){o=r.length}var j=0;r=r.replace(".","");for(var m=r.length;j<m;j++){var s=r.charAt(j);if(s<="9"&&s>="1"){break}}var p=o-j-h;var f=r.substr(j,h);var c=j+h-r.length;if(c>0){for(var g=0;g<c;g++){f+="0"}}else{f+="."+r.substr(j+h)}f=f.replace(/^[0]+/,"");if(p<0&&q.indexOf("-")<0){q+=";-"+q}r=FR._numberFormat(f,l)+"E"+FR._numberFormat(p,q);if(b){r="-"+r}}return r},_eFormat:function(r,g){r=+r;var n="";var s="";var h="";var q="";
if(g.match(/\./g).length!==1){return r}var d=g.indexOf(".");var j=g.indexOf("E");var f=true;var m=true;for(var l=0;l<g.length;l++){var c=g.charAt(l);if(l<d){if(c==="0"||c==="#"){f=false;h+=c}else{f?n+=c:s+=c}}else{if(l>d&&l<j){c==="0"||c==="E"?q+=c:s+=c}else{if(l===j){q+="E"}else{if(l>j){if(c==="0"){m?q+=c:q=c+q}else{if(c==="#"){q+=c}else{m=false;s+=c}}}}}}}return n+o(r,h+"."+q)+s;function o(w,A){var i=w<0?(w*=-1,"-"):"",u="";var y=w>0&&w<1?"floor":"ceil";var t=Math[y](Math.log(w)/Math.log(10));if(!isFinite(t)){return A.replace(/#/ig,"").replace(/\.e/ig,"E")
}w=w/Math.pow(10,t);if(w>0&&w<1){w*=10;t-=1}var v=k(t,A);v>1&&(t-=v-1,w*=Math.pow(10,v-1));t<0&&(u="-",t*=-1);var x=b(A);var z=e(w);w*=Math.pow(10,x);w=Math.round(w);z&&(w/=10,t+=u==="-"?-1:1);w/=Math.pow(10,x);w=w.toFixed(x);t=p(A,t,u);return i+w+"E"+t}function p(x,u,w){u+="";if(!/e/ig.test(x)){return u}x=x.split(/e/ig)[1];while(u.length<x.length){u="0"+u}var y=true;for(var v=0,t=u.length;v<t;v++){if(!y){continue}y=u.charAt(v)==="0"}w=y?"":w;return w+u}function b(t){if(!/e/ig.test(t)){return 0}var i=t.split(/e/ig)[0].split(".");
return i.length>1?i[1].length:0}function k(x,y){if(!/e/ig.test(y)){return 0}var z=y.split(/e/ig)[0].split(".")[0],v,w,u=z.length;var t=0;for(v=0;v<u;v++){w=z.charAt(v);if(w===0||(w==="#"&&(u-v<=x+1))){t++}}return t}function e(i){var t=Math.round(i);i=(i+"").split(".")[0];t=(t+"").split(".")[0];return i.length!==t.length}},_dealWithRight:function(l,d){var q="",h=0,k=0;for(var o=d.length;k<o;k++){var b=d.charAt(k);var p=l.charAt(h);switch(b){case"0":if(FR.isEmpty(p)){p="0"}q+=p;h++;break;case"#":q+=p;
h++;break;default:q+=b;break}}var n=l.substr(h);var r={};if(!FR.isEmpty(n)&&n.charAt(0)>4){r.leftPlus=true;var f=q.match(/^[0-9]+/);if(f){var m=f[0];var e=m.length;var g=FR.parseINT(m)+1+"";if(g.length>e){g=g.substr(1)}else{g=String.leftPad(g,e,"0");r.leftPlus=false}q=q.replace(/^[0-9]+/,g)}}r.num=q;return r},_dealWithLeft:function(e,k){var h="";var l=e.length-1;var g=-1,s=-1;var m=k.length-1;for(;m>=0;m--){var b=k.charAt(m);var r=e.charAt(l);switch(b){case"0":if(FR.isEmpty(r)){r="0"}s=-1;h=r+h;l--;
break;case"#":s=m;h=r+h;l--;break;case",":if(!FR.isEmpty(r)){var d=k.match(/,[#0]+/);if(d){g=d[0].length-1}h=","+h}break;default:h=b+h;break}}if(s>-1){var t=e.substr(0,l+1);h=h.substr(0,s)+t+h.substr(s)}if(g>0){var q=h.match(/[0-9]+,/);if(q){q=q[0];var p="",f=q.length-1-g;for(;f>=0;f=f-g){p=q.substr(f,g)+","+p}var o=q.substr(0,f+g);if(!FR.isEmpty(o)){p=o+","+p}}h=h.replace(/[0-9]+,/,p)}return h},object2Number:function(b){if(b==null){return 0}if(typeof b=="number"){return b}else{var c=b+"";if(c.indexOf(".")===-1){return parseInt(c)
}else{return parseFloat(c)}}},object2Date:function(c){if(c==null){return new Date()}if(c instanceof Date){return c}else{if(typeof c=="number"){return new Date(c)}else{var d=c+"";d=d.replace(/-/g,"/");var b=new Date(d);if(!FR.isInvalidDate(b)){return b}return new Date()}}},object2Time:function(c){if(c==null){return new Date()}if(c instanceof Date){return c}else{var d=c+"";d=d.replace(/-/g,"/");var b=new Date(d);if(!FR.isInvalidDate(b)){return b}if(d.indexOf("/")===-1&&d.indexOf(":")!==-1){b=new Date("1970/01/01 "+d);
if(!FR.isInvalidDate(b)){return b}}b=FR.str2Date(d,"HH:mm:ss");if(!FR.isInvalidDate(b)){return b}return new Date()}},isInvalidDate:function(b){return b=="Invalid Date"||b=="NaN"},numberStringWithoutE:function(d){if(isNaN(Number(d))){return d}var g=Number(d).toString().split(/[eE]/);if(g.length===1){return g[0]}var e="",c=Number(d)<0?"-":"",b=g[0].replace(".",""),f=Number(g[1])+1;if(f<0){e=c+"0.";while(f++){e+="0"}return e+b.replace(/^-/,"")}f-=b.length;while(f-->0){e+="0"}return b+e}})})(jQuery);
FR.OB=function(a){this.options=$.extend(this._defaultConfig(),a);this._init();this._confirmEvents()};$.extend(FR.OB.prototype,{_defaultConfig:function(){return{}},_init:function(){var a=this;if(this.options.listeners!=null){$.each(this.options.listeners,function(c,b){(b.target?b.target:a)[b.once?"once":"on"](b.eventName,b.action.createDelegate(a))});delete this.options.listeners}},_confirmEvents:function(){this.fireEvent(FR.Events.AFTERINIT)},_getEvents:function(){if(!$.isArray(this.events)){this.events=[]
}return this.events},on:function(a,c){a=a.toLowerCase();var b=this._getEvents()[a];if(!$.isArray(b)){b=[];this._getEvents()[a]=b}b.push(c)},once:function(a,c){var b=function(){c.apply(this,arguments);this.un(a,b)};this.on(a,b)},un:function(a,c){a=a.toLowerCase();if(c==null){delete this._getEvents()[a]}else{var b=this._getEvents()[a];if($.isArray(b)){var d=[];$.each(b,function(e,f){if(f!=c){d.push(f)}});this._getEvents()[a]=d}}},purgeListeners:function(){this.events=[]},fireEvent:function(){var a=arguments[0].toLowerCase();
var d=this._getEvents()[a];if($.isArray(d)){var b=Array.prototype.slice.call(arguments,1);for(var c=0;c<d.length;c++){if(d[c].apply(this,b)===false){return false}}}return true}});FR.OB.capture=function(c,b,a){c.fireEvent=c.fireEvent.createInterceptor(b,a)};FR.OB.releaseCapture=function(a){a.fireEvent=FR.OB.prototype.fireEvent};
FR.widget={opts:{zIndex:8000,num:0}};FR.Widget=FR.extend(FR.OB,{_defaultConfig:function(){return $.extend(FR.Widget.superclass._defaultConfig.apply(this,arguments),{widgetName:"",disabled:false,invisible:false,usedAsEditor:false,resultWidgets:{}})},_init:function(){FR.Widget.superclass._init.apply(this,arguments);this._initRoot();this._initElementSize();this._initVisualEffects();this._initNameEffects()},_initRoot:function(){if(this.options.renderEl!=null){this.element=$(this.options.renderEl)}else{this.element=this._defaultRoot()
}if(this.options.baseCls){this.element.addClass(this.options.baseCls)}},_initElementSize:function(){var b=this.options;if(FR.isWidthOrHeight(b.width)){this.element.css({width:b.width-FR.fixBoxModelWidth(this.element)})}else{if(b.width=="auto"){this.element.width("auto")}else{if(this.isStringTypeNumber(b.width)){this.element.width(parseInt(b.width))}}}if(FR.isWidthOrHeight(b.height)){this.element.css({height:b.height-FR.fixBoxModelHeight(this.element)})}else{if(b.height=="auto"){this.element.height("auto")
}else{if(this.isStringTypeNumber(b.height)){this.element.height(parseInt(b.height))}}}var a=this;this.element.bind(FR.Events.RESIZE,function(c,d){a.doResize(d)})},isStringTypeNumber:function(a){return !isNaN(parseInt(a))},_initVisualEffects:function(){this[this.options.disabled?"disable":"enable"]();if(this.options.invisible){this.setVisible(false)}},_initNameEffects:function(){var a=this.options;if(a.widgetName){this.element.attr({widgetName:a.widgetName})}FR.widget.opts.num++;if(a.widgetName){this._addWidget(a.widgetName,this)
}else{this._addWidget("_widget_"+FR.widget.opts.num,this)}},_addWidget:function(a,b){this.options.resultWidgets[a]=b},getName:function(){return this.options.widgetName},getWidgetByName:function(a){return this.options.resultWidgets[a]},getText:function(){},setText:function(a){},getValue:function(){},setValue:function(b,a){},getType:function(){return this.options.type},isEnabled:function(){return !this.options.disabled},setEnable:function(a){if(a===true){this.options.disabled=false;this.element.addClass("ui-state-enabled");
this.element.removeClass("ui-state-disabled")}else{if(a===false){this.options.disabled=true;this.element.addClass("ui-state-disabled");this.element.removeClass("ui-state-enabled")}}},isVisible:function(){return !this.options.invisible},setVisible:function(a){this.resetVisible(a);if(a===true){this.options.invisible=false;this.element.show()}else{if(a===false){this.options.invisible=true;this.element.hide()}}},reload:function(){},resetVisible:function(d){var a=this,c=a.titleWidget?a.titleWidget:a;var b=c.options.layout;
if(!b){return}if(c.isVisible()===d){return}b.setInnerWidgetVisible(a.getName(),c,d)},setSource:function(a){this.setValue(a)},couldUsedAsEditor:function(){return this.options.usedAsEditor},reset:function(){},doResize:function(f){var b=this.options;var e=this.element;if(f){if(f.width){b.width=f.width}if(f.height){b.height=f.height}if(f.left!=null){b.left=f.left}if(f.top!=null){b.top=f.top}}else{if(b.fit===true){var d=e.parent();var c=d.width();var a=d.height();b.width=c;b.height=a}}this.element.width(b.width);
this.element.height(b.height)},destroy:function(){this.element.each(function(){$(this).remove();if(FR.Browser.isIE()){this.outerHTML=""}})},_defaultRoot:function(){return $("<div/>")},disable:function(){this.setEnable(false)},enable:function(){this.setEnable(true)},invisible:function(){this.setVisible(false)},visible:function(){this.setVisible(true)}});FR.ErrorMarkWidget=FR.extend(FR.Widget,{_defaultConfig:function(){return $.extend(FR.ErrorMarkWidget.superclass._defaultConfig.apply(),{width:120,height:24})
},_init:function(){FR.ErrorMarkWidget.superclass._init.apply(this,arguments);var b=this.options;var a=$("<div>"+b.message+"</div>");a.appendTo(this.element);var c=$("<div>"+b.detail+"</div>");c.appendTo(this.element);this.element.css({textAlign:"center",width:b.width,height:b.height})},doResize:function(a){FR.ErrorMarkWidget.superclass.doResize.call(this,a);this.element.css({width:a.width,height:a.height})}});$.extend(FR,{match:function(a){if(a!==undefined){var b=a.value;var d=a.text;var e=a.tarValue;
var c=a.matchFn;if($.isFunction(c)){return c(a)}else{return b==e||d==e}}return false}});
(function(a){a.extend(FR,{Msg:function(){return{verticalOffset:0.77,horizontalOffset:1,repositionOnResize:true,overlayOpacity:0.01,overlayColor:"#FFF",draggable:true,okButton:FR.i18nText("Fine-Engine_Basic_OK"),cancelButton:FR.i18nText("Fine-Engine_Basic_Cancel"),dialogClass:null,style:null,textSpace:FR.i18nText("Fine-Engine_Widget_Message_Letter_Space")+"px",msgStyle:function(){var b=this.style;var c="blue";a.each(["green","blue"],function(d,e){if(b&&e==b.toLowerCase()){c=b.toLowerCase()}});this.style=c
},alert:function(d,c,e,b){FR.Keys.enable(false);if(!d){d="Alert"}this._show(d,c,null,"alert",function(f){FR.Keys.enable(true);if(a.isFunction(e)){e(f)}},-1,b);if(typeof e=="number"&&e>0){setTimeout(function(){FR.Msg._hide()},e)}},confirm:function(c,b,e,d){FR.Keys.enable(false);if(!c){c="Confirm"}this._show(c,b,null,"confirm",function(f){FR.Keys.enable(true);if(e){e(f)}},d?d:-1)},prompt:function(d,b,c,f,e){FR.Keys.enable(false);if(!d){d="Prompt"}this._show(d,b,c,"prompt",function(g){FR.Keys.enable(true);
if(f){f(g)}},e?e:-1)},toast:function(e){var d=-300;if(FR.Browser.isIE7Before()){d=-370}var c=a("body").children("div.toast");if(c.length===0){var f=60;if(FR.Browser.isIE6()){f+=a("body")[0].scrollTop}c=a("<div/>").addClass("toast").css({right:d,top:f,"z-Index":FR.widget.opts.zIndex++}).appendTo("body")}c.text(e);var b=a("body").children("div.toastIcon");if(b.length===0){b=a("<div/>").addClass("toastIcon").css({right:0,top:c.css("top"),"z-index":c.css("z-index")+1}).appendTo("body");new FR.IconButton({width:b.css("width"),height:b.css("height"),imgsrc:"fr_show_toast",renderEl:a("<div/>").appendTo(b),handler:function(){c.animate({right:-4},"slow");
setTimeout(function(){c.animate({right:d},"slow")},5000)}})}b.hide();c.animate({right:-15},"slow");(function(){c.animate({right:d},"slow",function(){b.show();b.fadeOut(5000)})}).defer(5000)},_show:function(x,i,s,c,h,m,r){this.msgStyle();this._hide();this._overlay("show");a("BODY").append('<div id="popup_container">'+'<div id="popup_header" >'+'<h1 id="popup_title"></h1></div>'+'<div id="popup_content">'+'<div id="popup_message"></div>'+"</div>"+"</div>");if(this.dialogClass){a("#popup_container").addClass(this.dialogClass)
}var k=FR.Browser.isIE()?"absolute":"fixed";a("#popup_container").css({position:k,zIndex:99999,padding:0,margin:0,top:0,left:0});FR.html(a("#popup_title"),x);a("#popup_content").addClass(c);if(_.isArray(i)){a.each(i,function(e,z){var y=z.oneLevel.replace(/\n/g,"<br>");var A=z.twoLevel.replace(/\n/g,"<br>");FR.html(a('<span class="popup_level_one">'),y).appendTo(a("#popup_message"));FR.html(a('<span class="popup_level_two">'),A).appendTo(a("#popup_message"));a("</br>").appendTo(a("#popup_message"))
})}else{FR.html(a("#popup_message"),i.replace(/\n/g,"<br>"))}var g=a("#popup_container").outerWidth();var f=a("#popup_container").outerWidth();a("#popup_container").css({minWidth:m>0?Math.max(g,m):g,maxWidth:m>0?Math.max(f,m):f});a("<div id = 'popup_close' class = 'close_mouseout' style='position: absolute;top: 0;right: 7px;width: 25px;height: 30px'>").appendTo("#popup_header").bind("mouseover",function(){a("#popup_close").removeClass("close_mouseout");a("#popup_close").addClass("close_mouseover")
}).bind("mouseout",function(){a("#popup_close").removeClass("close_mouseover");a("#popup_close").removeClass("close_click");a("#popup_close").addClass("close_mouseout")}).bind("mousedown",function(){a("#popup_close").removeClass("close_mouseover");a("#popup_close").addClass("close_click")}).bind("click",function(){FR.Msg._hide();if(h){h(null)}});i=m==-1?i:i.replace(/([\u4E00-\u9FA5\uf900-\ufa2d])/g,"aa");var t=false;if(FR.i18nText("Fine-Engine_Basic_Cancel").length<3&&FR.i18nText("Fine-Engine_Basic_OK").length<3){t=true
}switch(c){case"alert":a("#popup_container").css({minWidth:"380px",maxWidth:"380px",width:"380px",minHeight:"170px"});a("#popup_message").css({maxWidth:"360px",width:"360px",wordWrap:"break-word",fontSize:"14px",fontWeight:"bold"});var p=r||a("#popup_message").height();a("#popup_message").css({overflowY:"auto",maxHeight:p});var w=p+102;w=w>170?w:170;a("#popup_container").css({height:w});a("#popup_header").css({width:"380px"});a("#popup_content").css({top:"50px",left:"10px",background:"none",padding:"0px",fontSize:"14px",textAlign:"left"});
var b=new FR.createWidget({type:"quickbutton",style:this.style,text:FR.i18nText("Fine-Engine_Basic_OK"),width:65,height:32,handler:function(){FR.Msg._hide();h(true)}});var v=b.element.appendTo("#popup_container").css({position:"absolute",right:"10px",bottom:"10px",letterSpacing:t?FR.Msg.textSpace:0,textIndent:FR.Browser.isIE7Before()||!t?0:FR.Msg.textSpace});v.focus();v.keydown(function(y){if(y.keyCode===13||y.keyCode===27){v.trigger("click")}});break;case"confirm":m=m>380?m:380;a("#popup_container").css({minWidth:m,maxWidth:m,width:m,minHeight:"170px"});
a("#popup_header").css({width:m});if(i){a("#popup_content").css({left:"10px",top:"50px",maxWidth:m-20,padding:"0px 0px 0px 33px"});a("#popup_message").css({wordWrap:"break-word",fontSize:"16px",fontWeight:"bold"});var o=a("#popup_message").width();a("#popup_message").css({maxWidth:m-53,width:m-53});var p=a("#popup_message").height();var n=0;if((o+33)<(m-20)){n=(m-o-53)/2}a("#popup_content").css("backgroundPosition",n+"px"+" 0px");a("#popup_message").css({height:p});var w=p+102;w=w>170?w:170;a("#popup_container").css({height:w})
}else{a("#popup_content").css({left:(m/2)-12,top:"50px",backgroundPosition:"bottom left"})}var j=document.getElementById("popup_container").offsetWidth;var q=(j-140)/2-1;var b=new FR.createWidget({type:"quickbutton",style:this.style,text:FR.i18nText("Fine-Engine_Basic_OK"),width:65,height:32,handler:function(){FR.Msg._hide();h(true)}});var v=b.element.appendTo("#popup_container").css({position:"absolute",left:q+"px",bottom:"10px",letterSpacing:t?FR.Msg.textSpace:0,textIndent:FR.Browser.isIE7Before()||!t?0:FR.Msg.textSpace});
var d=new FR.createWidget({type:"quickbutton",style:"gray",text:FR.i18nText("Fine-Engine_Basic_Cancel"),width:65,height:32,handler:function(){FR.Msg._hide();h(false)}});var l=d.element.appendTo("#popup_container").css({position:"absolute",right:q+"px",bottom:"10px",letterSpacing:t?FR.Msg.textSpace:0,textIndent:FR.Browser.isIE7Before()||!t?0:FR.Msg.textSpace});break;case"prompt":a("#popup_content").append('<input type="text" size="21" id="popup_prompt" >');m=m>380?m:380;a("#popup_container").css({minWidth:m,maxWidth:m,width:m,minHeight:"170px"});
a("#popup_header").css({width:m});a("#popup_content").css({left:"10px",top:"50px",width:m-20,height:"54px",padding:"0"});a("#popup_message").css({fontSize:"14px",width:m-20,textAlign:"left",wordWrap:"break-word"});if(i){var p=a("#popup_message").height();a("#popup_message").css({height:p});a("#popup_content").css({height:p+30});var w=p+132;w=w>170?w:170;a("#popup_container").css({height:w})}a("#popup_prompt").css({maxWidth:m-24,bottom:"0px"});var j=document.getElementById("popup_container").offsetWidth;
var q=(j-140)/2-1;var b=new FR.createWidget({type:"quickbutton",style:this.style,text:FR.i18nText("Fine-Engine_Basic_OK"),width:65,height:32,handler:function(){var e=a("#popup_prompt").val();FR.Msg._hide();if(h){h(e)}}});var v=b.element.appendTo("#popup_container").css({position:"absolute",left:q+"px",bottom:"10px",letterSpacing:t?FR.Msg.textSpace:0,textIndent:FR.Browser.isIE7Before()||!t?0:FR.Msg.textSpace});var d=new FR.createWidget({type:"quickbutton",style:"gray",text:FR.i18nText("Fine-Engine_Basic_Cancel"),width:65,height:32,handler:function(){FR.Msg._hide();
if(h){h(null)}}});var l=d.element.appendTo("#popup_container").css({position:"absolute",right:q+"px",bottom:"10px",letterSpacing:t?FR.Msg.textSpace:0,textIndent:FR.Browser.isIE7Before()||!t?0:FR.Msg.textSpace});a("#popup_prompt").width(a("#popup_message").width());if(s){a("#popup_prompt").val(s)}a("#popup_prompt").focus().select();break}this._reposition();this._maintainPosition(true);if(this.draggable){try{a("#popup_container").draggable({handle:a("#popup_title"),onStopDrag:function(){if(a("#popup_container").offset().top<0){a("#popup_container").css({top:"0px"})
}if(a("#popup_container").offset().left<0){a("#popup_container").css({left:"0px"})}}});a("#popup_title").css({cursor:"move"})}catch(u){}}},_hide:function(){a("#popup_container").remove();this._overlay("hide");this._maintainPosition(false)},_overlay:function(b){switch(b){case"show":this._overlay("hide");a("BODY").append('<div id="popup_overlay"></div>');a("#popup_overlay").css({position:"absolute",zIndex:99998,top:"0px",left:"0px",width:"100%",height:FR.windowHeight,background:this.overlayColor,opacity:this.overlayOpacity});
break;case"hide":a("#popup_overlay").remove();break}},_reposition:function(){var c=FR.windowHeight;c=(c-a("#popup_container").outerHeight())/2+this.verticalOffset;c=c*this.verticalOffset;var b=FR.windowWidth;b=(b-a("#popup_container").outerWidth())/2+this.horizontalOffset;b=b*this.horizontalOffset;if(c<0){c=0}if(b<0){b=0}if(FR.Browser.isIE()){c=c+a(window).scrollTop()}a("#popup_container").css({top:c+"px",left:b+"px"});a("#popup_overlay").height(FR.windowHeight)},_maintainPosition:function(c){function b(){FR.Msg._reposition()
}if(this.repositionOnResize){switch(c){case true:a(window).bind("resize",b);break;case false:a(window).unbind("resize",b);break}}}}}()})})(jQuery);
/*!
 * jLayout - JavaScript Layout Algorithms v0.2
 *
 * Licensed under the revised BSD License.
 * Copyright 2008, Bram Stein
 * All rights reserved.
 */
(function(){window.jLayout={layout:function(a,d){var b={},c=d||{};c.hgap=a.hgap||0;c.vgap=a.vgap||0;b.layout=function(e){return e};b.preferred=function(e){return{width:e.width(),height:e.height()}};b.minimum=function(e){return{width:0,height:0}};b.maximum=function(e){return{width:Number.MAX_VALUE,height:Number.MAX_VALUE}};return b},parameter:function(b){var g={},a=b.items||[],d=this.layout(b,g),f=b.scrollable,c=b.scrollContainer;
d.layout=function(j){var h=j.bounds(),n=j.insets(),p=h.width-(n.left+n.right),q=h.height-(n.top+n.bottom),m=0,l=0;for(var o=0;o<a.length;o++){var s=a[o];var k=(f||p==0)?s.width:Math.min(s.width,p-s.x);var r=(f||q==0)?s.height:Math.min(s.height,q-s.y);if(f){m=Math.max(m,k+s.x);l=Math.max(l,r+s.y)}s.el.bounds({"x":s.x,"y":s.y+(s.delta||0),"width":k,"height":r});s.el.doLayout()}if(c){c.bounds({"x":0,"y":0,width:m,height:l})}};function e(h){return function(){return{"width":0,"height":0}}}d.preferred=e("preferred");
d.minimum=e("minimum");d.maximum=e("maximum");return d},flow:function(h){var g={},b=this.layout(h,g),e=h.items||[],f=(h.alignment&&(h.alignment==="center"||h.alignment==="right"||h.alignment==="left")&&h.alignment)||"left",d=typeof h.hgap==="number"&&!isNaN(h.hgap)?h.hgap:5,i=typeof h.vgap==="number"&&!isNaN(h.vgap)?h.vgap:5;b.layout=function(j){var k=j.bounds(),l=j.insets(),n=0,o=e.length,r,q=[],p={width:0,height:0},m={x:l.left,y:l.top};k.width-=l.left+l.right;k.height-=l.top+l.bottom;for(;n<o;n+=1){if(e[n].el.isVisible()){r=e[n].el.preferredSize();
if((p.width+r.width)>k.width){c(q,m,p,k);q=[];m.y+=p.height;m.x=l.left;p.width=0;p.height=0}p.height=Math.max(p.height,r.height+i);p.width+=r.width+d;q.push(e[n])}}c(q,m,p,k);return j};function c(p,o,m,n){var k={x:o.x,y:o.y},l=0,j=p.length;switch(f){case"center":k.x+=(d+n.width-m.width)/2;break;case"right":k.x+=n.width-m.width+d;break}for(;l<j;l+=1){k.y=o.y;p[l].el.bounds(k);p[l].el.doLayout();k.x+=p[l].el.bounds().width+d}}function a(j){return function(n){var p=0,q=0,k=0,o,m=false,l=n.insets();for(;
p<e.length;p+=1){if(e[p].isVisible()){o=e[p][j+"Size"]();k=Math.max(k,o.height);q+=o.width}}return{"width":q+l.left+l.right+(e.length-1)*d,"height":k+l.top+l.bottom}}}b.preferred=a("preferred");b.minimum=a("minimum");b.maximum=a("maximum");return b},horizontal:function(h){var g={},c=this.layout(h,g),e=h.items||[],f=(h.alignment&&(h.alignment==="center"||h.alignment==="right"||h.alignment==="left")&&h.alignment)||"center",d=typeof h.hgap==="number"&&!isNaN(h.hgap)?h.hgap:2,i=typeof h.vgap==="number"&&!isNaN(h.vgap)?h.vgap:0;
c.layout=function(k){var j=k.bounds(),m=k.insets(),s=m.left+d,r=m.top+i,t=j.width-(m.left+m.right+d*2),o=0,q=j.height-(m.top+m.bottom),l=q-2*i,n,p=e.length;for(n=0;n<p;n++){var u=e[n];if(u.el.isVisible()){o+=(u.width+d)}}b(s,r,t-o+2*d,l);return k};function b(l,q,p,k){var o={"x":l,"y":q,"width":p,"height":k},m=0,j=e.length;switch(f){case"left":o.x+=0;break;case"center":o.x+=p/2;break;case"right":o.x+=p;break}for(;m<j;m++){var n=e[m];if(n.el.isVisible()){o.width=n.width;n.el.bounds(o);n.el.doLayout();
o.x+=(n.width+d)}}}function a(j){return function(m){var o=0,p=0,k=0,n,l=m.insets();for(;o<e.length;o+=1){if(e[o].el.isVisible()){n=e[o].el[j+"Size"]();k=Math.max(k,n.height);p+=e[o].width+d}}return{"width":p+l.left+l.right,"height":k+l.top+l.bottom}}}c.preferred=a("preferred");c.minimum=a("minimum");c.maximum=a("maximum");return c},vertical:function(b){var h={},d=this.layout(b,h),a=b.items||[],b=b,c=typeof b.hgap==="number"&&!isNaN(b.hgap)?b.hgap:0,g=typeof b.vgap==="number"&&!isNaN(b.vgap)?b.vgap:0;
d.layout=function(k){var j=k.bounds(),l=k.insets(),m,o=a.length,r=l.left+c,q=l.top+g,s=j.height-(l.top+l.bottom+g*2),p=0,n=j.width-(l.left+l.right),t=n-2*c;for(m=0;m<o;m++){var u=a[m];if(u.el.isVisible()){p+=u.height}}f(r,q,t,s-p);return k};function f(l,q,n,k){var p={"x":l,"y":q,"width":n,"height":k},m=0,j=a.length;for(;m<j;m++){var o=a[m];if(o.el.isVisible()){p.height=o.height;o.el.bounds(p);o.el.doLayout();p.y+=o.height+g}}}function e(i){return function(l){var n=0,o=0,j=0,m,k=l.insets();for(;n<a.length;
n+=1){if(a[n].el.isVisible()){m=a[n].el[i+"Size"]();o=Math.max(o,m.width);j+=a[n].height+g}}return{"width":o+k.left+k.right,"height":j+k.top+k.bottom}}}d.preferred=e("preferred");d.minimum=e("minimum");d.maximum=e("maximum");return d},gridLayout:function(l){var j={},f=this.layout(l,j),c=l.leftGap||0,g=l.rightGap||0,e=l.topGap||0,k=l.bottomGap||0,h=l.items||[],b=l.columns,m=l.rows,a=l.widths,i=l.heights;f.layout=function(D){var u=D.bounds();var I=D.insets(),r=u.width-(I.left+I.right)-c-g,M=u.height-(I.top+I.bottom)-e-k;
var n={},C=0,o=0;if(a){for(var H=0;H<a.length;H++){var A=a[H];if(A!="auto"){n[""+H]=A;C+=A;o++}}}var q={},F=0,K=0;if(i){for(var H=0;H<i.length;H++){var t=i[""+H];if(t!="auto"){q[H]=t;F+=t;K++}}}var G=(r-(b-1)*j.hgap-C)/(b-o),s=(M-(m-1)*j.vgap-F)/(m-K);var p=function(x,O,y,Q){if(!x){return y*(O+Q)}var w=0;for(var P=0;P<y;P++){var N=x[P];if(N=="auto"){w+=O}else{w+=N}if(P>0){w+=Q}}return w};for(var E=0;E<h.length;E++){var L=h[E];var B=n[L.column]||G,J=q[L.row]||s;var z=p(a,G,L.column,j.hgap);var v=p(i,s,L.row,j.vgap);
if(L.el){L.el.bounds({"x":z+c,"y":v+e,"width":B,"height":J});L.el.doLayout()}}return D};function d(n){return function(q){if(n=="minimum"||n=="maximum"){return q[n.substring(0,3)+"Size"]()}var s=q.bounds();var p=q.insets(),o=s.width-(p.left+p.right),r=s.height-(p.top+p.bottom),u=o-(b-1)*j.hgap,t=r-(m-1)*j.vgap;return{"width":u,"height":t}}}f.preferred=d("preferred");f.minimum=d("minimum");f.maximum=d("maximum");return f},tableLayout:function(m){var j={},f=this.layout(m,j),n=m.vgap,g=m.items,a=m.columnSize,l=m.rowSize,h=m.scrollContainer;
f.layout=function(p){var o=p.bounds(),r=p.insets(),v=o.width-(r.left+r.right),w=o.height-(r.top+r.bottom),t=0,q=0;for(var C=0;C<g.length;C++){var A=g[C];if(k(A)){t+=(i(C,w)+n)}else{for(var s=0;s<A.length;s++){var B=A[s];var z=c(C)-t;var u=i(C,w);q=Math.max(z+u,q);if(B==null){continue}var x={"x":e(s,v),"y":z};if(isNaN(B.el.width)){x.width=d(s,v)}if(isNaN(B.el.height)){x.height=u}B.element.bounds(x);B.element.doLayout()}}}if(h){h.bounds({x:0,y:0,width:v,height:q})}};function k(p){for(var o=0;o<p.length;
o++){if(p[o]!=null&&p[o].element.isVisible()){return false}}return true}function e(q,p){var o=0;for(var r=0;r<q;r++){var s=a[r];if(s>0&&s<1){s=s*p}o+=s}return o}function c(o){var q=0;for(var p=0;p<o;p++){q+=l[p]+n}return q}function d(p,o){var q=a[p];if(!isNaN(q)){if(q>0&&q<1){return q*o}return q}if(p!=a.length-1){return 0}return o-e(p,o)}function i(p,q){var o=l[p];if(!isNaN(o)){return o}if(p!=l.length-1){return 0}return q-c(p)}function b(o){return function(p){return{"width":0,"height":0}}}f.preferred=b("preferred");
f.minimum=b("minimum");f.maximum=b("maximum");return f},borderlayout:function(i){var g={},d=this.layout(i,g),f=i.east,h=i.west,b=i.north,e=i.south,a=i.center;d.layout=function(k){var j=k.bounds(),q=k.insets(),w=q.top,p=q.left,t=j.width-(q.left+q.right),u=j.height-(q.top+q.bottom);var l=0;var o=0;var x=t;var n=u;if(b&&b.el&&(b.el.isVisible()||b.el.css("display")==="block")){var m=b.height||b.el.height();b.el.bounds({"x":p,"y":w,"width":t,"height":m});l=w+m;n=u-m;b.el.doLayout()}if(e&&e.el&&(e.el.isVisible()||e.el.css("display")==="block")){var s=e.height||e.el.height();
e.el.bounds({"x":p,"y":u-s,"width":t,"height":s});n-=s;e.el.doLayout()}if(h&&h.el&&(h.el.isVisible()||h.el.css("display")==="block")){var r=h.width||h.el.width();h.el.bounds({"x":p,"y":l,"width":r,"height":n});o=p+r;x=t-r;h.el.doLayout()}if(f&&f.el&&(f.el.isVisible()||f.el.css("display")==="block")){var v=f.width||f.el.width();f.el.bounds({"x":t-v,"y":l,"width":v,"height":n});x=x-v;f.el.doLayout()}a.el.bounds({"x":o,"y":l,"width":x,"height":n});a.el.doLayout()};function c(j){return function(k){return{"width":0,"height":0}
}}d.preferred=c("preferred");d.minimum=c("minimum");d.maximum=c("maximum");return d},card:function(b){var e={},c=this.layout(b,e),a=b.items;c.layout=function(h){var m=h.bounds(),g=h.insets(),f=m.width-(g.left+g.right),k=m.height-(g.top+g.bottom);for(var j=0;j<a.length;j++){var l=a[j];if(l.el instanceof $){l.el.bounds({"x":g.left,"y":g.top,"width":f,"height":k});l.el.doLayout()}}};function d(f){return function(g){return{"width":0,"height":0}}}c.preferred=d("preferred");c.minimum=d("minimum");c.maximum=d("maximum");
return c},grid:function(h){var g={},d=this.layout(h,g),e=h.items||[],b=h.columns||e.length,i=h.rows||0;if(i>0){b=Math.floor((e.length+i-1)/i)}else{i=Math.floor((e.length+b-1)/b)}var a=h.widths||[],f=h.heights||[];$.each([{ar:a,len:b},{ar:f,len:i}],function(j,k){while(k.ar.length<k.len){k.ar[k.ar.length]=-1}});d.layout=function(n){var m=n.bounds();var u,t,q=n.insets(),z=q.left,w=q.top,r=m.width-(q.left+q.right)-(b-1)*g.hgap,v=m.height-(q.top+q.bottom)-(i-1)*g.vgap;var l=Array.prototype.concat.call([],a),s=Array.prototype.concat.call([],f);
$.each([{ar:l,len:r},{ar:s,len:v}],function(y,x){var j=0;$.each(x.ar,function(C,D){if(D>=0){x.len-=D}else{j++}});if(j>0){var B=x.len/j;$.each(x.ar,function(C,D){if(D<0){x.ar[C]=B}})}});var k=0,p=0;for(u=0;u<e.length;u++){var o=l[k],A=s[p];e[u].bounds({"x":z,"y":w,"width":o,"height":A});if(k<b-1){z+=o+g.hgap;k++}else{w+=A+g.vgap;z=q.left;k=0;p++}e[u].doLayout()}return n};function c(j){return function(l){var t,m=0,u=0,v,p=l.insets();var r=Array.prototype.concat.call([],a),n=Array.prototype.concat.call([],f);
var k=0,o=0;for(var t=0;t<e.length;t++){v=e[t][j+"Size"]();var m=r[k],u=n[o];if(a[k]<0){r[k]=Math.max(r[k],v.width)}if(f[o]<0){n[o]=Math.max(n[o],v.height)}if(k<b-1){k++}else{k=0;o++}e[t].doLayout()}var s=0;$.each(r,function(x,y){if(y>0){s+=y}});var q=0;$.each(n,function(w,x){if(x>0){q+=x}});return{"width":p.left+p.right+s+(b-1)*g.hgap,"height":p.top+p.bottom+q+(i-1)*g.vgap}}}d.preferred=c("preferred");d.minimum=c("minimum");d.maximum=c("maximum");return d},center:function(a){var e={},c=this.layout(a,e),b=a.item||[];
c.layout=function(g){var f=g.bounds(),i=g.insets(),m=i.left,l=i.top,j=f.width-(i.left+i.right),k=f.height-(i.top+i.bottom);var h=b.width||"auto",n=b.height||"auto";if(h==="auto"){h=j}if(n==="auto"){n=k}if(b.el){b.el.bounds({"x":m+(j-h)*0.5,"y":l+(k-n)*0.5,"width":h,"height":n});b.el.doLayout()}};function d(f){return function(){return{"width":0,"height":0}}}c.preferred=d("preferred");c.minimum=d("minimum");c.maximum=d("maximum");return c}}})();
/*!
 * JSizes - JQuery plugin v0.31
 *
 * Licensed under the revised BSD License.
 * Copyright 2008, Bram Stein
 * All rights reserved.
 */
(function(b){var a=function(c){return parseFloat(c)||0};b.each(["min","max"],function(d,c){b.fn[c+"Size"]=function(g){var f,e;if(g){if(g.width){this.css(c+"-width",g.width)}if(g.height){this.css(c+"-height",g.height)}return this}else{f=this.css(c+"-width");e=this.css(c+"-height");return{"width":(c==="max"&&(f==="none"||a(f)===-1)&&Number.MAX_VALUE)||a(f),"height":(c==="max"&&(e==="none"||a(e)===-1)&&Number.MAX_VALUE)||a(e)}
}}});b.fn.isVisible=function(){return this.css("visibility")!=="hidden"&&this.css("display")!=="none"};b.each(["border","margin","padding"],function(d,c){b.fn[c]=function(e){if(e){if(e.top){this.css(c+"-top"+(c==="border"?"-width":""),e.top)}if(e.bottom){this.css(c+"-bottom"+(c==="border"?"-width":""),e.bottom)}if(e.left){this.css(c+"-left"+(c==="border"?"-width":""),e.left)}if(e.right){this.css(c+"-right"+(c==="border"?"-width":""),e.right)}return this}else{return{top:a(this.css(c+"-top"+(c==="border"?"-width":""))),bottom:a(this.css(c+"-bottom"+(c==="border"?"-width":""))),left:a(this.css(c+"-left"+(c==="border"?"-width":""))),right:a(this.css(c+"-right"+(c==="border"?"-width":"")))}
}}})})(jQuery);
/*!
 * jLayout JQuery Plugin v0.11
 *
 * Licensed under the revised BSD License.
 * Copyright 2008, Bram Stein
 * All rights reserved.
 */
if(jQuery&&jLayout){(function(a){a.fn.doLayout=function(){this.css({position:"absolute"});if(this.data("jlayout")){this.data("jlayout").layout(this,arguments)}};a.fn.insets=function(){var d=this.padding(),c=this.border();return{"top":d.top,"bottom":d.bottom+c.bottom+c.top,"left":d.left,"right":d.right+c.right+c.left}};a.fn.bounds=function(c){var b={hasIgnoredBounds:true};
if(c){if(!isNaN(c.x)){b.left=c.x}if(!isNaN(c.y)){b.top=c.y}if(c.width!=null){b.width=(c.width-(this.outerWidth(true)-this.width()));b.width=(b.width>=0)?b.width:c.width}if(c.height!=null){b.height=c.height-(this.outerHeight(true)-this.height());b.height=(b.height>=0)?b.height:c.height}if(a(this).data("sizeFixed")){b.width=c.width}this.css(b);var d=this.data("tmp");if(!d||!FR.equals(d,b)){this.triggerHandler(FR.Events.RESIZE,[b]);this.data("tmp",b)}return this}else{b=this.position();return{"x":b.left,"y":b.top,"width":this.outerWidth(),"height":this.outerHeight()}
}};a.each(["min","max"],function(c,b){a.fn[b+"imumSize"]=function(d){if(this.data("jlayout")){return this.data("jlayout")[b+"imum"](this)}else{return this[b+"Size"](d)}}});a.fn.preferredSize=function(){var d,e,c=this.margin(),b={width:0,height:0};if(this.data("jlayout")){b=this.data("jlayout").preferred(this);d=this.minimumSize();e=this.maximumSize();b.width+=c.left+c.right;b.height+=c.top+c.bottom;if(b.width<d.width||b.height<d.height){b.width=Math.max(b.width,d.width);b.height=Math.max(b.height,d.height)
}else{if(b.width>e.width||b.height>e.height){b.width=Math.min(b.width,e.width);b.height=Math.min(b.height,e.height)}}}else{b.width=this.bounds().width+c.left+c.right;b.height=this.bounds().height+c.top+c.bottom}return b}})(jQuery)};
jQuery.extend({unselectContents:function(){if(window.getSelection){window.getSelection().removeAllRanges()}else{if(document.selection){document.selection.empty()}}}});jQuery.fn.extend({selectContents:function(){$(this).each(function(b){var d=this;var c,a,f,e;if((f=d.ownerDocument)&&(e=f.defaultView)&&typeof e.getSelection!="undefined"&&typeof f.createRange!="undefined"&&(c=window.getSelection())&&typeof c.removeAllRanges!="undefined"){a=f.createRange();a.selectNode(d);if(b==0){c.removeAllRanges()
}c.addRange(a)}else{if(document.body&&typeof document.body.createTextRange!="undefined"&&(a=document.body.createTextRange())){a.moveToElementText(d);a.select()}}})},setCaret:function(){if(!$.browser.msie){return}var a=function(){var b=$(this).get(0);b.caretPos=document.selection.createRange().duplicate()};$(this).click(a).select(a).keyup(a)},insertAtCaret:function(c){var b=$(this).get(0);if(document.all&&b.createTextRange&&b.caretPos){var d=b.caretPos;d.text=d.text.charAt(d.text.length-1)==""?c+"":c
}else{if(b.setSelectionRange){var g=b.selectionStart;var f=b.selectionEnd;var h=b.value.substring(0,g);var e=b.value.substring(f);b.value=h+c+e;b.focus();var a=c.length;b.setSelectionRange(g+a,g+a);b.blur()}else{b.value+=c}}}});
$.extend(Date.prototype,{getTimezone:function(){var b={"-12":"IDL","-11":"MIT","-10":"HST","-9:30":"MSIT","-9":"AKST","-8":"PST","-7":"MST","-6":"CST","-5":"EST","-4":"AST","-3:30":"NST","-3":"SAT","-2":"BRT","-1":"CVT","0":"WET","1":"CET","2":"EET","3":"MSK","3:30":"IRT","4":"META","4:30":"AFT","5":"METB","5:30":"IDT","5:45":"NPT","6":"BHT","6:30":"MRT","7":"IST","8":"CST","8:30":"KRT","9":"FET","9:30":"ACST","10":"AEST","10:30":"FAST","11":"VIT","11:30":"NFT","12":"PSTC"};var c=this.getTimezoneOffset()*-1;
var a="";a=this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"");if(a){return a}Object.keys(b).some(function(f){var d=f.split(":"),e=d.length>1?window.parseInt(d[1]):0;d=window.parseInt(d[0]);if(Math.abs(c-d*60-e)<0.000001){a=b[f];return true}});return a},getLastDateOfMonth:function(){return new Date(this.getFullYear(),this.getMonth(),this.getMonthDays())},getMonthDays:function(c){var b=[31,28,31,30,31,30,31,31,30,31,30,31];var a=this.getFullYear();
if(typeof c=="undefined"){c=this.getMonth()}if(((0===(a%4))&&((0!==(a%100))||(0===(a%400))))&&c===1){return 29}else{return b[c]}},getWeekNumber:function(){var c=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);var b=c.getDay();c.setDate(c.getDate()-(b+6)%7+3);var a=c.valueOf();c.setMonth(0);c.setDate(4);return Math.round((a-c.valueOf())/(7*86400000))+1}});(function(){var compileJFmt=function(jfmt,date){var str=jfmt.str,len=jfmt.len,ch=jfmt["char"];switch(ch){case"E":str=len<4?Date._SDN[date.getDay()]:Date._DN[date.getDay()];
break;case"y":if(len<=3){str=(date.getFullYear()+"").slice(2,4)}else{str=date.getFullYear()}break;case"M":if(len>2){str=len>=3?Date._MN[date.getMonth()]:Date._SMN[date.getMonth()]}else{if(len<2){str=date.getMonth()+1}else{str=String.leftPad(date.getMonth()+1+"",2,"0")}}break;case"d":if(len>1){str=String.leftPad(date.getDate()+"",2,"0")}else{str=date.getDate()}break;case"h":var hour=date.getHours()%12;if(hour===0){hour=12}if(len>1){str=String.leftPad(hour+"",2,"0")}else{str=hour}break;case"H":if(len>1){str=String.leftPad(date.getHours()+"",2,"0")
}else{str=date.getHours()}break;case"m":if(len>1){str=String.leftPad(date.getMinutes()+"",2,"0")}else{str=date.getMinutes()}break;case"s":if(len>1){str=String.leftPad(date.getSeconds()+"",2,"0")}else{str=date.getSeconds()}break;case"a":str=date.getHours()<12?Date._NN[0]:Date._NN[1];break;case"z":str=date.getTimezone();break;default:str=jfmt.str;break}return str};FR.parseFmt=function(fmt){if(!fmt){return""}fmt=String(fmt).replace(/y{4,}/g,"%Y").replace(/y{2}/g,"%y").replace(/M{4,}/g,"%b").replace(/M{3}/g,"%B").replace(/M{2}/g,"%X").replace(/M{1}/g,"%x").replace(/a{1}/g,"%p");
if(new RegExp("d{2,}","g").test(fmt)){fmt=fmt.replace(/d{2,}/g,"%d")}else{fmt=fmt.replace(/d{1}/g,"%e")}if(new RegExp("h{2,}","g").test(fmt)){fmt=fmt.replace(/h{2,}/g,"%I")}else{fmt=fmt.replace(/h{1}/g,"%I")}if(new RegExp("H{2,}","g").test(fmt)){fmt=fmt.replace(/H{2,}/g,"%H")}else{fmt=fmt.replace(/H{1}/g,"%H")}fmt=fmt.replace(/m{2,}/g,"%M").replace(/s{2,}/g,"%S");return fmt};FR.matchDateFormat=function(date,format){if(typeof date!="string"||typeof format!="string"||!date||!format){return false}var zh_yMd="["+String.fromCharCode(24180)+String.fromCharCode(26376)+String.fromCharCode(26085)+"]";
if(date.match(zh_yMd)){if(format.match(zh_yMd)){date=date.replaceAll(zh_yMd,"-");format=format.replaceAll(zh_yMd,"-");if(date.endWith("-")&&format.endWith("-")){date=date.substring(0,date.length-1);format=format.substring(0,format.length-1)}}else{return false}}else{if(format.match(zh_yMd)){return false}}var isAM=null;if(format.endWith(" a")){format=format.substring(0,format.length-2);if(date.endWith(" am")||date.endWith(" pm")){isAM=date.endWith(" am");date=date.substring(0,date.length-3)}else{return false
}}if(date.replace(/[0-9]/g,"")!=format.replace(/[YyMmDdHhSsa]/g,"")){return false}var formatStr=format;var dateStr=date;var formatArr=[];var dateArr=[];if(format.indexOf(" ")==-1){dateArr=shortMatch(dateStr,formatStr);if(!dateArr){return false}}else{var ff=format.split(" ");var dd=date.split(" ");for(var i=0;i<ff.length;i++){var temp=shortMatch(dd[i],ff[i]);if(!temp){return false}else{dateArr=dateArr.concat(temp)}}}function shortMatch(str,fmt){var da=[];var fa=[];if(fmt.match(/[-/:.]/)){fa=fmt.split(/[-/:.]/);
formatArr=formatArr.concat(fa);var da=str.split(/[-/:.]/);return da}while(fmt.length>0){var reg=new RegExp(fmt.substring(0,1)+"+");var f=fmt.match(reg).toString();fa.push(f);formatArr.push(f);fmt=fmt.substring(f.length)}var len=0;for(var i=0;i<fa.length;i++){var tmpLen=0;if(fa[i].length===1){if(i==fa.length-1){tmpLen=str.length-len}else{if(i==fa.length-2){switch(str.length-len){case 2:tmpLen=1;break;case 3:if(invalidStr(str.substring(len,len+2),fa[i])||fa[i+1].length===2){tmpLen=1}else{if(fa[i+1].length===1&&invalidStr(str.substring(len+1,len+3),fa[i+1])){tmpLen=2
}else{tmpLen=1}}break;case 4:tmpLen=2;break;default:return false}}}}else{tmpLen=fa[i].length}da[i]=str.substring(len,len+tmpLen);len+=tmpLen}return da}function invalidStr(str,fm){return str.match(/[Mh]/)&&parseInt(fm,10)>12||str.match(/[d]/)&&parseInt(fm,10)>31||str.match(/[H]/)&&parseInt(fm,10)>23||str.match(/[ms]/)&&parseInt(fm,10)>59}if(formatArr.length!=dateArr.length||dateArr[dateArr.length-1]===""){return false}else{for(var i=0;i<formatArr.length;i++){var ff=formatArr[i].replace(/ /g,"");var vv=dateArr[i].replace(/ /g,"");
if(ff.length===1&&((vv.length===2&&vv.startWith("0"))||vv.length>2)||ff.length===2&&vv.length!==2||ff.length===4&&vv.length!==4){return false}}var que=["y","M","d","h","H","m","s"];for(var i=0;i<formatArr.length;i++){if(formatArr[i].match(/[yMd]/)){for(var j=i+1;j<formatArr.length;j++){if(formatArr[j].match(/[yMd]/)&&que.indexOf(formatArr[i].substring(0,1))>que.indexOf(formatArr[j].substring(0,1))){var tmp=formatArr[i];formatArr[i]=formatArr[j];formatArr[j]=tmp;tmp=dateArr[i];dateArr[i]=dateArr[j];
dateArr[j]=tmp}}}}if(!format.match(/[hHms]/)){var dt="";for(var i=0;i<dateArr.length;i++){var yMd=formatArr[i]=="yy"?"20"+dateArr[i]:dateArr[i];dt=dt.length===0?yMd:dt+"/"+yMd}var res=new Date(dt);if(!FR.isInvalidDate(res)){if(!inMonthRange(res)){return false}return res}else{if(!FR.isInvalidDate(new Date(dt+"/01"))){return new Date(dt+"/01")}else{if(!FR.isInvalidDate(new Date(dt+"/01"+"/01"))){return new Date(dt+"/01"+"/01")}}}}else{if(checkHms(date)){return date}var dt="";var spt=false;for(var i=0;
i<formatArr.length;i++){if(formatArr[i].match(/[yMd]/)){var yMd=formatArr[i]=="yy"?"20"+dateArr[i]:dateArr[i];dt=dt.length===0?yMd:dt+"/"+yMd}else{var hms=dateArr[i];if(formatArr[i].indexOf("h")!=-1&&isAM===false&&parseInt(hms)<12){hms=parseInt(hms)+12}if(!spt){dt=dt+" "+hms;spt=true}else{dt=dt+":"+hms}}}var res=new Date(dt);if(!inMonthRange(res)){return false}return res}}function checkHms(timeStr){var parts;if(FR.isEmpty(timeStr)){return false}parts=timeStr.split(":");if(FR.isEmpty(parts)){return false
}for(i=0;i<parts.length;i++){if(isNaN(parts[i])){return false}}if(parts.length===2){h=parts[0];m=parts[1];if(format.match(/[s]/)){if(h<0||h>59){return false}if(m<0||m>59){return false}}else{if(h<0||h>23){return false}if(m<0||m>59){return false}}return true}else{if(parts.length===3){h=parts[0];m=parts[1];s=parts[3];if(h<0||h>23){return false}if(m<0||m>59){return false}if(s<0||s>59){return false}}}return true}function inMonthRange(res){var d,m;for(var i=0;i<formatArr.length;i++){if(formatArr[i].indexOf("d")!=-1){d=dateArr[i].replace(/^[0]/,"")
}else{if(formatArr[i].indexOf("M")!=-1){m=dateArr[i].replace(/^[0]/,"")}}}if(d==null||m==null){return true}return parseInt(d)==res.getDate()&&parseInt(m)==res.getMonth()+1}};FR.str2Date=function(str,format){if(typeof str!="string"||typeof format!="string"){return null}var fmt=FR.parseFmt(format);return Date.parseDateTime(str,fmt)};FR.date2Str=function(date,format){if(!date){return""}var len=format.length,result="";if(len>0){var flagch=format.charAt(0),start=0,str=flagch;for(var i=1;i<len;i++){var ch=format.charAt(i);
if(flagch!==ch){result+=compileJFmt({"char":flagch,"str":str,"len":i-start},date);flagch=ch;start=i;str=flagch}else{str+=ch}}result+=compileJFmt({"char":flagch,"str":str,"len":len-start},date)}return result};Date.patterns={ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"};Date.parseFunctions={count:0};
Date.parseRegexes=[];Date.formatFunctions={count:0};Date._MN=[FR.i18nText("Fine-Engine_Base_January"),FR.i18nText("Fine-Engine_Base_February"),FR.i18nText("Fine-Engine_Base_March"),FR.i18nText("Fine-Engine_Base_April"),FR.i18nText("Fine-Engine_Base_May"),FR.i18nText("Fine-Engine_Base_June"),FR.i18nText("Fine-Engine_Base_July"),FR.i18nText("Fine-Engine_Base_August"),FR.i18nText("Fine-Engine_Base_September"),FR.i18nText("Fine-Engine_Base_October"),FR.i18nText("Fine-Engine_Base_November"),FR.i18nText("Fine-Engine_Base_December")];
Date._SMN=[FR.i18nText("Fine-Engine_Base_Short_Jan"),FR.i18nText("Fine-Engine_Base_Short_Feb"),FR.i18nText("Fine-Engine_Base_Short_Mar"),FR.i18nText("Fine-Engine_Base_Short_Apr"),FR.i18nText("Fine-Engine_Base_Short_May"),FR.i18nText("Fine-Engine_Base_Short_Jun"),FR.i18nText("Fine-Engine_Base_Short_Jul"),FR.i18nText("Fine-Engine_Base_Short_Aug"),FR.i18nText("Fine-Engine_Base_Short_Sep"),FR.i18nText("Fine-Engine_Base_Short_Oct"),FR.i18nText("Fine-Engine_Base_Short_Nov"),FR.i18nText("Fine-Engine_Base_Short_Dec")];
Date._DN=[FR.i18nText("Fine-Engine_Base_Sche_Sunday"),FR.i18nText("Fine-Engine_Base_Sche_Monday"),FR.i18nText("Fine-Engine_Base_Sche_Tuesday"),FR.i18nText("Fine-Engine_Base_Sche_Wednesday"),FR.i18nText("Fine-Engine_Base_Sche_Thursday"),FR.i18nText("Fine-Engine_Base_Sche_Friday"),FR.i18nText("Fine-Engine_Base_Sche_Saturday")];Date._SDN=[FR.i18nText("Fine-Engine_Base_Sun"),FR.i18nText("Fine-Engine_Base_Mon"),FR.i18nText("Fine-Engine_Base_Tue"),FR.i18nText("Fine-Engine_Base_Wed"),FR.i18nText("Fine-Engine_Base_Thu"),FR.i18nText("Fine-Engine_Base_Fri"),FR.i18nText("Fine-Engine_Base_Sat")];
Date._NN=[FR.i18nText("Fine-Engine_Base_Ante_Meridian"),FR.i18nText("Fine-Engine_Base_Post_Meridian")];Date.y2kYear=50;Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};Date.getMonthNumber=function(name){return Date.monthNumbers[name.substring(0,1).toUpperCase()+name.substring(1,3).toLowerCase()]};Date.parseDate=function(input,format){if(Date.parseFunctions[format]==null){Date.createParser(format)}var func=Date.parseFunctions[format];return Date[func](input)
};Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++;var regexNum=Date.parseRegexes.length;var currentGroup=1;Date.parseFunctions[format]=funcName;var code="Date."+funcName+" = function(input){\n"+"var y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, ms = -1, o, z, u, v;\n"+"var d = new Date();\n"+"y = d.getFullYear();\n"+"m = d.getMonth();\n"+"d = d.getDate();\n"+"var results = input.match(Date.parseRegexes["+regexNum+"]);\n"+"if (results && results.length > 0) {";
var regex="";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true}else{if(special){special=false;regex+=String.escape(ch)}else{var obj=Date.formatCodeToRegex(ch,currentGroup);currentGroup+=obj.g;regex+=obj.s;if(obj.g&&obj.c){code+=obj.c}}}}code+="if (u)\n"+"{v = new Date(u * 1000);}"+"else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0 && ms >= 0)\n"+"{v = new Date(y, m, d, h, i, s, ms);}\n"+"else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n"+"{v = new Date(y, m, d, h, i, s);}\n"+"else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n"+"{v = new Date(y, m, d, h, i);}\n"+"else if (y >= 0 && m >= 0 && d > 0 && h >= 0)\n"+"{v = new Date(y, m, d, h);}\n"+"else if (y >= 0 && m >= 0 && d > 0)\n"+"{v = new Date(y, m, d);}\n"+"else if (y >= 0 && m >= 0)\n"+"{v = new Date(y, m);}\n"+"else if (y >= 0)\n"+"{v = new Date(y);}\n"+"}return (v && (z || o))?\n"+"    (z ? v.add(Date.SECOND, (v.getTimezoneOffset() * 60) + (z*1)) :\n"+"        v.add(Date.HOUR, (v.getGMTOffset() / 100) + (o / -100))) : v\n"+";}";
Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$","i");eval(code)};Date.parseDateTime=function(str,fmt){var today=new Date();var y=0;var m=0;var d=1;var a=str.split(/\W+/);if(fmt.toLowerCase()=="%y%x"||fmt.toLowerCase()=="%y%x%d"){var tempStr=a.join("");var yearlength=4;var otherlength=2;a[0]=tempStr.substring(0,yearlength);a[1]=tempStr.substring(yearlength,yearlength+otherlength);a[2]=tempStr.substring(yearlength+otherlength,yearlength+otherlength*2)}var b=fmt.match(/%./g);var i=0,j=0;var hr=0;
var min=0;var sec=0;for(i=0;i<a.length;++i){if(!a[i]){continue}switch(b[i]){case"%d":case"%e":d=parseInt(a[i],10);break;case"%X":m=parseInt(a[i],10)-1;break;case"%x":m=parseInt(a[i],10)-1;break;case"%Y":case"%y":y=parseInt(a[i],10);(y<100)&&(y+=(y>29)?1900:2000);break;case"%b":case"%B":for(j=0;j<12;++j){if(Date._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){m=j;break}}break;case"%H":case"%I":case"%k":case"%l":hr=parseInt(a[i],10);break;case"%P":case"%p":if(/pm/i.test(a[i])&&hr<12){hr+=12
}else{if(/am/i.test(a[i])&&hr>=12){hr-=12}}break;case"%M":min=parseInt(a[i],10);case"%S":sec=parseInt(a[i],10);break}}if(isNaN(y)){y=today.getFullYear()}if(isNaN(m)){m=today.getMonth()}if(isNaN(d)){d=today.getDate()}if(isNaN(hr)){hr=today.getHours()}if(isNaN(min)){min=today.getMinutes()}if(isNaN(sec)){sec=today.getSeconds()}if(y!==0){return new Date(y,m,d,hr,min,sec)}y=0;m=-1;d=0;for(i=0;i<a.length;++i){if(a[i].search(/[a-zA-Z]+/)!=-1){var t=-1;for(j=0;j<12;++j){if(Date._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){t=j;
break}}if(t!=-1){if(m!=-1){d=m+1}m=t}}else{if(parseInt(a[i],10)<=12&&m==-1){m=a[i]-1}else{if(parseInt(a[i],10)>31&&y===0){y=parseInt(a[i],10);(y<100)&&(y+=(y>29)?1900:2000)}else{if(d===0){d=a[i]}}}}}if(y===0){y=today.getFullYear()}if(m!==-1&&d!==0){return new Date(y,m,d,hr,min,sec)}return today};Date.formatCodeToRegex=function(character,currentGroup){switch(character){case"d":return{g:1,c:"d = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{2})"};case"D":for(var a=[],i=0;i<7;a.push(Date._SDN[i]),++i){}return{g:0,c:null,s:"(?:"+a.join("|")+")"};
case"j":return{g:1,c:"d = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"N":return{g:0,c:null,s:"[1-7]"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"[0-6]"};case"z":return{g:0,c:null,s:"(?:\\d{1,3}"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.getMonthNumber(results["+currentGroup+"]), 10);\n",s:"("+Date._MN.join("|")+")"};case"m":return{g:1,c:"m = parseInt(results["+currentGroup+"], 10) - 1;\n",s:"(\\d{2})"};
case"M":for(var a=[],i=0;i<12;a.push(Date._SMN[i]),++i){}return{g:1,c:"m = parseInt(Date.getMonthNumber(results["+currentGroup+"]), 10);\n",s:"("+a.join("|")+")"};case"n":return{g:1,c:"m = parseInt(results["+currentGroup+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"(?:\\d{2})"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"o":case"Y":return{g:1,c:"y = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+currentGroup+"], 10);\n"+"y = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};
case"a":return{g:1,c:"if (results["+currentGroup+"] == 'am') {\n"+"if (h == 12) { h = 0; }\n"+"} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+currentGroup+"] == 'AM') {\n"+"if (h == 12) { h = 0; }\n"+"} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":return{g:1,c:"h = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{1,2})"};case"h":case"H":return{g:1,c:"h = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{2})"};case"i":return{g:1,c:"i = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{2})"};
case"s":return{g:1,c:"s = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{2})"};case"u":return{g:1,c:"ms = parseInt(results["+currentGroup+"], 10);\n",s:"(\\d{3})"};case"O":return{g:1,c:["o = results[",currentGroup,"];\n","var sn = o.substring(0,1);\n","var hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60);\n","var mn = o.substring(3,5) % 60;\n","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))?\n","    (sn + String.leftPad(hr, 2, 0) + String.leftPad(mn, 2, 0)) : null;\n"].join(""),s:"([+\\-]\\d{4})"};
case"P":return{g:1,c:["o = results[",currentGroup,"];\n","var sn = o.substring(0,1);\n","var hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60);\n","var mn = o.substring(4,6) % 60;\n","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))?\n","    (sn + String.leftPad(hr, 2, 0) + String.leftPad(mn, 2, 0)) : null;\n"].join(""),s:"([+\\-]\\d{2}:\\d{2})"};case"T":return{g:0,c:null,s:"[A-Z]{1,4}"};case"Z":return{g:1,c:"z = results["+currentGroup+"] * 1;\n"+"z = (-43200 <= z && z <= 50400)? z : null;\n",s:"([+\\-]?\\d{1,5})"};
case"c":var df=Date.formatCodeToRegex,calc=[];var arr=[df("Y",1),df("m",2),df("d",3),df("h",4),df("i",5),df("s",6),df("P",7)];for(var i=0,l=arr.length;i<l;++i){calc.push(arr[i].c)}return{g:1,c:calc.join(""),s:arr[0].s+"-"+arr[1].s+"-"+arr[2].s+"T"+arr[3].s+":"+arr[4].s+":"+arr[5].s+arr[6].s};case"U":return{g:1,c:"u = parseInt(results["+currentGroup+"], 10);\n",s:"(-?\\d+)"};default:return{g:0,c:null,s:character.replace(/([.*+?^$}{()|[\]\/\\])/g,"\\$1")}}};if(FR.Browser.r.safari&&!Date.brokenSetMonth){Date.brokenSetMonth=Date.prototype.setMonth;
Date.prototype.setMonth=function(num){if(num<=-1){var n=Math.ceil(-num);var back_year=Math.ceil(n/12);var month=(n%12)?12-n%12:0;this.setFullYear(this.getFullYear()-back_year);return Date.brokenSetMonth.call(this,month)}else{return Date.brokenSetMonth.apply(this,arguments)}}}})();
(function(a){FR.Layout=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.Layout.superclass._defaultConfig.apply(),{scrollable:false,scrollx:false,scrolly:false,widgetBackground:null,border:null,onClick:null})},_init:function(){FR.Layout.superclass._init.apply(this,arguments);this._init4Margin();this._init4Style();this._init4Scroll();this._init4Click()},_init4Margin:function(){if(this.options.marginTop){this.element.css("marginTop",this.options.marginTop);this.marginHeight=(this.marginHeight||0)+parseInt(this.options.marginTop)
}if(this.options.marginLeft){this.element.css("marginLeft",this.options.marginLeft);this.marginWidth=(this.marginWidth||0)+parseInt(this.options.marginLeft)}if(this.options.marginBottom){this.element.css("marginBottom",this.options.marginBottom);this.marginHeight=(this.marginHeight||0)+parseInt(this.options.marginBottom)}if(this.options.marginRight){this.element.css("marginRight",this.options.marginRight);this.marginWidth=(this.marginWidth||0)+parseInt(this.options.marginRight)}},_init4Style:function(){this._initBackGround();
var b=this.options.border;if(b){this.element.css("border-style",b.type);this.element.css("border-color",b.color);this.element.css("border-width",b.width);if(b.corner){this.element.css("border-radius","15px 15px 15px 15px");if(FR.Browser.msie){this.element.addClass("ie-border-radius")}}if(!(FR.Browser.msie&&FR.Browser.version<"9.0")){this.element.css("box-shadow",b.borderStyle)}}},_initBackGround:function(){if(!this.options.widgetBackground){return}if(this.options.type&&this.options.type=="fit"||this.options.type=="absolute"){this._initFitBackground();
return}var b=this.options.widgetOpacity;if(b===undefined){return}this.$background=a("<div class='widgetBackground'></div>");this.$background.css("filter","alpha(opacity="+b*100+")");this.$background.css("opacity",b);this.$background.prependTo(this.element)},_initFitBackground:function(){var g=FR.Core.Plugin.Background.action;if(g&&g(this.element,this.options)){return}var d=this.element.parent();var e=this.element.margin();var b=this.element.width()+(e.left||0)+(e.right||0);var c=this.element.height()+(e.top||0)+(e.bottom||0);
if(this.$background&&d.has(this.$background).length>0){this._updateSimpleStyle(b,c);return}this.$background=a("<div class='widgetBackground'></div>");this.$background.css("position","absolute");var f=this.options.widgetOpacity;if(f!==undefined){this.$background.css("filter","alpha(opacity="+f*100+")");this.$background.css("opacity",f)}this._updateSimpleStyle(b,c);FR.setBackground(this.$background,this.options.widgetBackground,c);this.$background.prependTo(d)},_updateSimpleStyle:function(b,c){this.$background.css("width",(b||0));
this.$background.css("height",(c||0));this.$background.css("top",this.element.css("top"));this.$background.css("left",this.element.css("left"))},_init4Scroll:function(){if(!this.options.scrollable){this.element.css("overflow","hidden")}else{this.element.css("overflow","auto")}if(this.options.scrollx){this.element.css({"overflow-x":"auto","overflow-y":"hidden"})}if(this.options.scrolly){this.element.css({"overflow-x":"hidden","overflow-y":"auto"})}},_init4Click:function(){var b=this;this.element.click(function(d){b.fireEvent(FR.Events.CLICK,d)
});var c=this.options;if(a.isFunction(c.onClick)){this.element.bind("click",c.onClick.createDelegate(this))}},doLayout:function(){this.element.doLayout(arguments)},setMinSize:function(){if(this.element.length>0&&this.element[0].tagName=="BODY"){var b=this.element["minimumSize"]();this.element.css({"min-width":b.width,"min-height":b.height});a("html").css("overflow","auto")}},setInnerWidgetVisible:function(b,c,d){}});FR.ParameterLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.ParameterLayout.superclass._defaultConfig.apply(),{baseCls:"fr-absolutelayout",scrollable:false})
},_init:function(){FR.ParameterLayout.superclass._init.apply(this,arguments);var g=this.options;this.element.addClass(g.baseCls);if(!a.isArray(g.items)){g.items=[];return}var d=g.items,f,b=d.length;g.widgets=[];var j=this.element;if(g.scrollable){j=a('<div class="fr-core-layout-scrollable">').css({position:"absolute",top:0,left:0}).appendTo(this.element);g.scrollContainer=j}for(f=0;f<b;f++){var c=d[f];if(!c.style){c.style=g.style}if(c.type){c.el=c}if(c.el.type){var h=FR.createWidget(a.extend(c.el,{resultWidgets:g.resultWidgets}));
g.widgets.push(h);var e=h.element;e.css({left:c.x,top:c.y,position:"absolute"});d[f].el=e;j.append(e);h.doResize({width:c.width,height:c.height})}else{if(c.el instanceof a){var e=c.el;e.css({left:c.x,top:c.y,position:"absolute"});j.append(e)}}}this.element.data("jlayout",jLayout.parameter(g));if(FR.Browser.msie&&!a.support.boxModel){if(g.height===0){g.height=1}if(g.width===0){g.width=1}}},doResize:function(f){FR.ParameterLayout.superclass.doResize.call(this,f);var d=this.options;this.element.css({width:(f?(f.width||d.width):d.width),height:f?(f.height||d.height):d.height,left:f?(f.left||d.left):d.left,top:f?(f.top||d.top):d.top});
for(var c=0,b=this.options.widgets.length;c<b;c++){var e=this.options.widgets[c];if(a.isFunction(e.doResize)){e.doResize({})}}},doLayout:function(){FR.ParameterLayout.superclass.doLayout.apply(this,arguments);for(var c=0,b=this.options.widgets.length;c<b;c++){var d=this.options.widgets[c];if(a.isFunction(d.doLayout)){d.doLayout()}}}});a.shortcut("parameter",FR.ParameterLayout);FR.FlowLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.FlowLayout.superclass._defaultConfig.apply(),{hgap:5,vgap:5,baseCls:"fr-flowlayout"})
},_init:function(){FR.FlowLayout.superclass._init.apply(this,arguments);var g=this.options;this.element.addClass(g.baseCls);var d=g.items,f,b=d.length;g.widgets=[];for(f=0;f<b;f++){var c=d[f];if(c.el&&c.el.type){if(!c.el.style){c.el.style=g.style}var h=FR.createWidget(a.extend(c.el,{resultWidgets:g.resultWidgets}));g.widgets.push(h);var e=h.element;d[f].el=e;this.element.append(e)}else{if(c.el instanceof a){this.element.append(c.el)}}}this.element.data("jlayout",jLayout.flow(g))},doResize:function(c){FR.FlowLayout.superclass.doResize.call(this,c);
var b=this.options;this.element.css({width:b.width,height:b.height,left:b.left,top:b.top})},doLayout:function(){FR.FlowLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("flow",FR.FlowLayout);FR.GridLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.GridLayout.superclass._defaultConfig.apply(),{hgap:0,vgap:0,leftGap:0,rightGap:0,topGap:0,bottomGap:0,baseCls:"fr-gridlayout"})},_init:function(){FR.GridLayout.superclass._init.apply(this,arguments);var g=this.options;
this.element.addClass(g.baseCls);var d=g.items,b=d.length;g.widgets=[];for(var e=0;e<b;e++){var c=d[e];if(c.el.type){if(!c.el.style){c.el.style=g.style}var h=FR.createWidget(a.extend(c.el,{resultWidgets:g.resultWidgets}));g.widgets.push(h);var f=h.element}else{f=c.el}c.el=f;this.element.append(f)}this.element.data("jlayout",jLayout.gridLayout(g))},doResize:function(c){FR.GridLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width),height:(c?(c.height||b.height):b.height),left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top})
},doLayout:function(){FR.GridLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("grid",FR.GridLayout);FR.FrozenGridLayout=FR.extend(FR.Layout,{_init:function(){FR.FrozenGridLayout.superclass._init.apply(this,arguments);var c=this.element;var b=this.options;a.each(b.items||[],function(d,e){if(e.parent()[0]!=c[0]){e.appendTo(c)}});c.data("jlayout",jLayout.grid(b))},doLayout:function(){this.element.doLayout()},doResize:function(c){FR.FrozenGridLayout.superclass.doResize.apply(this,arguments);
var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width)-(this.marginWidth||0),height:(c?(c.height||b.height):b.height)-(this.marginHeight||0),left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top})}});a.shortcut("frozengrid",FR.FrozenGridLayout);FR.TableLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.TableLayout.superclass._defaultConfig.apply(),{baseCls:"fr-layout-table",vgap:5,items:[],columnSize:[],rowSize:[],scrollable:false})},_init:function(){FR.TableLayout.superclass._init.apply(this,arguments);
var f=this.options;var b=f.items;var k=this.element;if(f.scrollable){k=a('<div class="fr-core-layout-scrollable">').css({position:"absolute",top:0,left:0}).appendTo(this.element);f.scrollContainer=k}for(var d=0;d<b.length;d++){var h=b[d];for(var c=0;c<h.length;c++){var e=h[c];if(e==null){continue}if(e&&e.el&&e.el.type){if(!e.el.style){e.el.style=f.style}var g=FR.createWidget(a.extend(e.el,{resultWidgets:f.resultWidgets}));e.element=g.element}else{if(e&&e.el instanceof a){e.element=e.el}}k.append(e.element)
}}this.element.data("jlayout",jLayout.tableLayout(f))},setRowVisible:function(c,b){if(a.isArray(c)){for(var g=0;g<c.length;g++){this.setRowVisible(c[g],b)}}else{var e=this.options.items[c];for(var d=0;d<e.length;d++){var f=e[d];if(f&&f.element){if(b===true){f.element.show()}else{f.element.hide()}}}}},isRowVisible:function(b){var d=this.options.items[b];for(var c=0;c<d.length;c++){var e=d[c];if(e&&e.element){if(!e.element.isVisible()){return false}}}return true},refreshRowSize:function(b){this.options.rowSize=b;
this.element.data("jlayout",jLayout.tableLayout(this.options));this.doLayout()},doResize:function(c){FR.TableLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width),height:(c?(c.height||b.height):b.height),left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top});this.doLayout()},doLayout:function(){FR.TableLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("tablelayout",FR.TableLayout);FR.BorderLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.BorderLayout.superclass._defaultConfig.apply(),{baseCls:"fr-quick-border-layout"})
},_init:function(){FR.BorderLayout.superclass._init.apply(this,arguments);var f=this.options;var b=f.items;var d=["north","south","east","west","center"];this.regionField={};for(var c=0;c<b.length;c++){var e=b[c];var h=e["region"];if(d.indexOf(h)!=-1){if(e.el&&e.el.type){if(!e.el.style){e.el.style=f.style}var g=FR.createWidget(a.extend(e.el,{width:e.width,height:e.height,resultWidgets:f.resultWidgets}));e.el=g.element}this.element.append(e.el);this.regionField[h]=e}}this.element.data("jlayout",jLayout.borderlayout(this.regionField))
},setRegionWH:function(c,b){if(!c||isNaN(b)){return}switch(c){case"north":this.regionField["north"].height=b;break;case"south":this.regionField["south"].height=b;break;case"east":this.regionField["east"].width=b;break;case"west":this.regionField["west"].width=b;break;default:}this.element.data("jlayout",jLayout.borderlayout(this.regionField))},doResize:function(c){FR.BorderLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width),height:(c?(c.height||b.height):b.height),left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top});
this.doLayout()},doLayout:function(){FR.BorderLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("border",FR.BorderLayout);FR.CenterLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.CenterLayout.superclass._defaultConfig.apply(),{baseCls:"fr-quick-center-layout"})},_init:function(){FR.CenterLayout.superclass._init.apply(this,arguments);var c=this.options,b=c.item;if(b&&b.el){if(b.el.type){if(!b.el.style){b.el.style=c.style}var d=FR.createWidget(a.extend(b.el,{width:b.width,height:b.height,resultWidgets:c.resultWidgets}));
b.el=d.element}else{if(!(b.el instanceof a)){FR.Msg.toast("el must be a widget or a jQuery element!");b.el=a("<div>")}}this.element.append(b.el)}this.element.data("jlayout",jLayout.center(c))},doLayout:function(){FR.CenterLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("center",FR.CenterLayout);FR.CardLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.CardLayout.superclass._defaultConfig.apply(),{baseCls:"fr-quick-card-layout",defaultShowIndex:0,hideAction:null,showAction:null})
},_init:function(){FR.CardLayout.superclass._init.apply(this,arguments);var b=this.options;this.name2Index={};this.cardsHasCreated=[];this._initNameMap();this.showCardByIndex(b.defaultShowIndex)},_initNameMap:function(){var b=this.options.items;for(var d=0;d<b.length;d++){var c;if(b[d].el){c=b[d].el.widgetName}else{c=b[d].widgetName}if(!FR.isEmpty(c)){this.name2Index[c]=d}}},showPaneByIndex:function(b){this.showCardByIndex(b)},showCardByIndex:function(f){var b=this.options;var g=b.items;this.showIndex=f;
for(var e=0;e<this.cardsHasCreated.length;e++){var i=this.cardsHasCreated[e];var c=g[i];this._hideItem(c)}if(f>-1&&f<g.length){var j=this.cardsHasCreated.indexOf(f);if(j==-1){var k=g[f];if(!k.el){k.el=k}if(k&&k.el&&k.el.type){var d=FR.createWidget(a.extend(k.el,{resultWidgets:b.resultWidgets}));k.el=d.element}k.el.hide();this.element.append(k.el);this.cardsHasCreated.push(f);this.element.data("jlayout",jLayout.card(b));this._showItem(k)}else{c=g[f];this._showItem(c)}}this.doLayout()},_hideItem:function(c){var b=this.options;
if(a.isFunction(b.hideAction)){b.hideAction.apply(this,[c])}else{c.el.hide()}},_showItem:function(b){b.el.show()},getShowIndex:function(){return this.showIndex?this.showIndex:this.options.defaultShowIndex},showPaneByName:function(b){return this.showCardByName(b)},showCardByName:function(b){if(FR.isEmpty(b)){return}this.showCardByIndex(this.name2Index[b.toUpperCase()])},doResize:function(c){FR.CardLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width),height:(c?(c.height||b.height):b.height),left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top});
this.doLayout()},doLayout:function(){FR.CardLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("card",FR.CardLayout)})(jQuery);
(function(){var dialog;var loadingDialog;var fileUploadDialog;var loadingTimerMap={};String.prototype.hashCode=function(){var hash=0,i,chr;if(this.length===0){return hash}for(i=0;i<this.length;i++){chr=this.charCodeAt(i);hash=((hash<<5)-hash)+chr;hash|=0}return hash};$.extend(FR,{showConfirmDialog:function(config){FR.showUpdateDialog(config)},showUpdateDialog:function(config){var o=$.extend({title:" ",text4OK:FR.i18nText("Fine-Engine_Basic_OK"),text4Cancel:FR.i18nText("Fine-Engine_Basic_Cancel"),onOK:FR.emptyFn(),onCancel:FR.emptyFn(),destroyOnClose:true,width:400,height:300,modal:true,confirm:true,doSize:true,border:true,closable:true,contentUrl:null,contentHtml:null,contentWidget:null,contentText:null,tools:null,style:null},config);
var dlg=new FR.Dialog(o);dlg.setVisible(true)},showDialog:function(config){if(arguments.length>1){var content=arguments[3];if(typeof arguments[3]==="string"){content="<div>"+arguments[3]+"</div>"}var width=arguments[1]?Math.min(FR.windowWidth,arguments[1]):400;var height=arguments[2]?Math.min(FR.windowHeight,arguments[2]):300;var l=$(window).width();var h=$(window).height();if(FR.Browser.isIE8Before()){l=FR.windowWidth;h=FR.windowHeight}var opts={title:FR.isEmpty(arguments[0])?" ":arguments[0],width:width,height:height,contentHtml:content||"",left:(l-width)/2+$(document).scrollLeft(),top:(h-height)/2+$(document).scrollTop()};
config=$.extend(true,{modal:true,doSize:true,border:true,closable:true,destroyOnClose:!!FR.Browser.isIE()},arguments[4],opts)}if(!dialog||FR.Browser.isIE()){if(dialog){FR.destroyDialog()}dialog=new FR.Dialog(config)}else{dialog.setTitle(config.title||"");dialog.setContent({type:"contentHtml",content:config.contentHtml})}dialog.doResize({width:config.width,height:config.height,left:config.left,top:config.top});dialog.setVisible(true)},showCustomDialog:function(config){var contentHtml;if(_.isString(config.contentHtml)){contentHtml="<div>"+config.contentHtml+"</div>"
}else{contentHtml=config.contentHtml}contentHtml=contentHtml||"";var width=config.width?Math.min(FR.windowWidth,config.width):400;var height=config.height?Math.min(FR.windowHeight,config.height):300;var l=$(window).width();var h=$(window).height();if(FR.Browser.isIE8Before()){l=FR.windowWidth;h=FR.windowHeight}var isCenter=config.isCenter;var top=isCenter===false?config.top:(h-height)/2+$(document).scrollTop();var left=isCenter===false?config.left:(l-width)/2+$(document).scrollLeft();var title=FR.isEmpty(config.title)?" ":config.title;
var opts={title:title,width:width,height:height,contentHtml:contentHtml,left:left,top:top};config=$.extend(true,{modal:true,doSize:true,border:true,closable:true,destroyOnClose:!!FR.Browser.isIE()},opts);if(!dialog||FR.Browser.isIE()){if(dialog){FR.destroyDialog()}dialog=new FR.Dialog(config)}else{dialog.setTitle(config.title);dialog.setContent({type:"contentHtml",content:config.contentHtml})}dialog.doResize({width:config.width,height:config.height,left:config.left,top:config.top});dialog.setVisible(true)
},showIframeDialog:function(config){if(typeof config=="string"){config={url:config}}var $iframe;if(config.url){config.url=config.url+((/\?/.test(config.url)?"&":"?")+"_="+$.now());$iframe=$("<iframe width='100%' height='100%' scrolling='no' frameborder='0'>");$iframe.attr("src",config.url)}else{if(config.iframe){$iframe=$(config.iframe);if(config.widget){$iframe.asComponent(config.widget)}}else{$iframe=$("<iframe width='100%' height='100%' scrolling='no' frameborder='0'>")}}var otherConfig={};if(FR.Browser.isIE()){otherConfig.onHide=function(){$iframe.src="";
$iframe.remove()}}return FR.showDialog(config.title,config.width||350,config.height||480,$iframe,otherConfig)},showAsyncDialog:function(o){FR.showLoadingDialog(o);var callback=o.callback;FR.ajax($.extend({type:"POST",complete:function(res,status){FR.hideLoadingDialog();if(typeof(callback)=="function"){callback(res,status)}}},o))},closeDialog:function(){if(dialog!=null){dialog.setVisible(false)}},showLoadingDialog:function(o){o=o||{};o.width=o.width||200;o.height=o.height||80;o.title=o.title||FR.i18nText("Fine-Engine_Basic_Loading");
o.closable=o.closable||false;o.modal=true;o.animate=0;o.contentHtml=o.contentHtml||"<div class='fr-core-panel-loading'>"+(o.text?o.text:FR.i18nText("Fine-Engine_Basic_Loading"))+"</div>";o.processURL=o.processURL;o.interval=o.interval||1000;if(loadingDialog==null){loadingDialog=new FR.Dialog(o)}else{loadingDialog.setTitle(o.title);loadingDialog.doResize({width:o.width,height:o.height});loadingDialog.setContent({type:"contentHtml",content:o.contentHtml})}loadingDialog.setVisible(true);if(o.processURL){var process=function(){FR.ajax({type:"POST",url:o.processURL,cache:false,async:false,success:function(res,status){if(res){$(".fr-core-panel-loading").html(o.text+res)
}}})};loadingDialog.interval=setInterval(process,o.interval)}},hideLoadingDialog:function(){if(loadingDialog!=null){loadingDialog.setVisible(false);if(loadingDialog.interval){clearInterval(loadingDialog.interval)}}},destroyDialog:function(){if(dialog!=null){dialog.destroy();dialog=null}},showEmailDialog:function(o){o=o||{};o.width=o.width||400;o.height=o.height||496;o.title=FR.i18nText("Fine-Engine_Basic_Email");o.onFinish=o.onFinish||FR.emptyFn();var customConsignee=o.emailAttr.customConsignee;var consigneeByDepartment=o.emailAttr.consigneeByDepartment;
var consigneeByRole=o.emailAttr.consigneeByRole;var fontsize=12,fontfamily="PingFangSC-Regular",label_color="#4C4C4C",sessionID=o.sessionID||"",northHeight=10,autoCloseTime=8000,messageWidth=280;var format_items=[{text:FR.i18nText("Fine-Engine_Report_Export_PDF"),value:"PDF"},{text:FR.i18nText("Fine-Engine_Report_Export_Excel"),value:"Excel"},{text:FR.i18nText("Fine-Engine_Report_Export_Excel03"),value:"Excel03"},{text:FR.i18nText("Fine-Engine_Report_Export_Word"),value:"Word"},{text:FR.i18nText("Fine-Engine_Report_Export_SVG"),value:"SVG"}];
var rh=24;var tableLayout=FR.createWidget({type:"tablelayout",columnSize:[20,80,280],rowSize:[rh,rh,rh,rh,rh,rh,rh,rh,100,rh],vgap:10,items:[[{el:$("<div>")},{el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Basic_Email_From"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily}},{el:{type:"border",items:[{region:"center",el:{type:"text",widgetName:"FROM",disabled:true,watermark:"loading data..."}}]}}],[{el:$("<div>")},{el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Report_HJS_Mail_to"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily}},{el:{type:"border",items:[{region:"center",el:{type:"combocheckbox",widgetName:"TO",directEdit:true,customData:customConsignee,widgetUrl:FR.servletURL+"?op=fr_email&cmd=get_contacts_name&sessionID="+sessionID,supportTag:true}},{region:"west",el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Report_HJS_Mail_Receive"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily},width:70}]}}],[{el:$("<div>")},{el:$("<div>")},{el:{type:"border",items:[{region:"center",el:{type:"treecombobox",widgetName:"DEPARTMENT",mutiSelection:true,returnFullPath:true,selectLeafOnly:true,directEdit:false,customData:false,fontSize:fontsize,widgetUrl:FR.servletURL+"?op=fr_email&cmd=get_departments&sessionID="+sessionID}},{region:"west",el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Report_HJS_Mail_Department"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily},width:70}]}}],[{el:$("<div>")},{el:$("<div>")},{el:{type:"border",items:[{region:"center",el:{type:"combocheckbox",widgetName:"ROLE",directEdit:true,widgetUrl:FR.servletURL+"?op=fr_email&cmd=get_roles&sessionID="+sessionID,customData:false,supportTag:true}},{region:"west",el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Report_HJS_Mail_Role"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily},width:70}]}}],[{el:$("<div>")},{el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Report_HJS_CC_to"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily}},{el:{type:"border",items:[{region:"center",el:{type:"combocheckbox",widgetName:"CC",directEdit:true,customData:customConsignee,widgetUrl:FR.servletURL+"?op=fr_email&cmd=get_contacts_name&sessionID="+sessionID,supportTag:true}}]}}],[{el:$("<div>")},{el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Report_HJS_BCC_to"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily}},{el:{type:"border",items:[{region:"center",el:{type:"combocheckbox",widgetName:"BCC",directEdit:true,customData:customConsignee,widgetUrl:FR.servletURL+"?op=fr_email&cmd=get_contacts_name&sessionID="+sessionID,supportTag:true}}]}}],[{el:$("<div>")},{el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Basic_Email_Format"),fontsize:fontsize,textalign:"left",fontfamily:fontfamily}},{el:{type:"border",items:[{region:"center",el:{type:"combocheckbox",widgetName:"FORMAT",model:"local",directEdit:false,items:format_items}}]}}],[{el:$("<div>")},{el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Basic_Email_Subject"),fontsize:fontsize,verticalcenter:true,textalign:"left",fontfamily:fontfamily}},{el:{type:"border",items:[{region:"center",el:{type:"text",widgetName:"SUBJECT"}}]}}],[{el:$("<div>")},{el:{type:"border",items:[{region:"north",height:rh*2,el:{type:"label",color:label_color,value:FR.i18nText("Fine-Engine_Basic_Email_Message"),fontsize:fontsize,textalign:"left",fontfamily:fontfamily}},{region:"center",el:$("<div>")}]}},{el:{type:"textarea",widgetName:"MESSAGE",fontsize:fontsize,width:messageWidth}}],[{el:$("<div>")},{el:$("<div>")},{el:{type:"checkbox",widgetName:"ISSHOWTPL",text:FR.i18nText("Fine-Engine_Report_Email_Can_Preview_Report_Content"),textalign:"left"}}]]});
if(!consigneeByDepartment){tableLayout.setRowVisible(2,false);o.height-=rh}if(!consigneeByRole){tableLayout.setRowVisible(3,false);o.height-=rh}tableLayout.doLayout();FR.ajax({url:FR.servletURL,type:"POST",data:{op:"fr_dialog",cmd:"write_email_dialog",sessionID:sessionID},complete:function(res,status){var from=tableLayout.getWidgetByName("FROM");from.removeWaterMark();if(status=="success"){from.setValue(res.responseText)}}});o.onOK=function(){FR.showLoadingDialog({title:FR.i18nText("Fine-Engine_Basic_Email"),text:FR.i18nText("Fine-Engine_Basic_Email_Sending")+"..."});
var data={op:"fr_email",cmd:"deal_email",sessionID:sessionID,FROM:tableLayout.getWidgetByName("FROM").getValue(),TO:tableLayout.getWidgetByName("TO").getValue(),SUBJECT:tableLayout.getWidgetByName("SUBJECT").getValue(),CC:tableLayout.getWidgetByName("CC").getValue(),BCC:tableLayout.getWidgetByName("BCC").getValue(),MESSAGE:tableLayout.getWidgetByName("MESSAGE").getValue(),FORMAT:tableLayout.getWidgetByName("FORMAT").getValue(),ISSHOWTPL:tableLayout.getWidgetByName("ISSHOWTPL").getValue()};if(tableLayout.getWidgetByName("DEPARTMENT").isVisible()){$.extend(data,{DEPARTMENT:tableLayout.getWidgetByName("DEPARTMENT").getValue()})
}if(tableLayout.getWidgetByName("ROLE").isVisible()){$.extend(data,{ROLE:tableLayout.getWidgetByName("ROLE").getValue()})}FR.ajax({url:FR.servletURL,type:"POST",data:data,complete:function(res,status){o.onFinish.apply();if(status==="success"){var responseText=FR.jsonDecode(res.responseText);var text;if(responseText.status==="success"){text=FR.i18nText("Fine-Engine_Basic_Email_Send_Success")}else{text=FR.i18nText("Fine-Engine_Basic_Email_Send_Failed")+"\n"+FR.i18nText("Fine-Engine_Basic_Email_Send_Error")
}FR.hideLoadingDialog();FR.Msg.alert(FR.i18nText("Fine-Engine_Basic_Email"),text,autoCloseTime)}}})};o.contentWidget={type:"border",items:[{region:"north",el:$("<div>"),height:northHeight},{region:"center",el:tableLayout.element}]};FR.showUpdateDialog(o)},showUploadDialog:function(o){o.title=FR.i18nText("Fine-Engine_Basic_File_Upload");if(fileUploadDialog==null){fileUploadDialog=new FR.Dialog(o)}fileUploadDialog.options=$.extend({url:"",el:this,allowTypes:"",err:"",callback:FR.emptyFn,autoUpload:false,beforeAction:FR.emptyFn,afterAction:FR.emptyFn},o);
fileUploadDialog.doResize({width:fileUploadDialog.options.autoUpload?360:440,height:300});var fileupload=$('<input type="file" name="file" size="35" style="width:320px"/>').change(function(){FR.autoSubmit(fileUploadDialog.options,fileUploadDialog.$form)});var okbtn=$('<input type="button" value="'+FR.i18nText("Fine-Engine_Basic_OK")+'" style="width:80px;margin-top:10px;"/>').click(function(){FR.autoSubmit(fileUploadDialog.options,fileUploadDialog.$form)});if(fileUploadDialog.options.autoUpload){fileUploadDialog.$form=$('<form enctype="multipart/form-data" style="padding:10px"></form>').append(fileupload)
}else{fileUploadDialog.$form=$('<form enctype="multipart/form-data" style="padding:10px"><input name="file" type="file" size="35" style="width:320px"/></form>').append(okbtn)}fileUploadDialog.setContent({type:"contentHtml",content:fileUploadDialog.$form});fileUploadDialog.setVisible(true)},clearAllDialog:function(){$(".fr-core-window").remove();$(".fr-core-window-mask").remove()},preloadImgs:function(imgs){for(var i=0;i<imgs.length;i++){jQuery("<img>").attr("src",imgs[i])}},autoSubmit:function(options,$form){var $file=$("input:file",$form);
if(!$file.val()){FR.Msg.toast(FR.i18nText("Fine-Engine_Function_The_Selected_File_Cannot_Be_Null")+"!");return}else{if(options.allowTypes){var fileType=$file.val().substring($file.val().lastIndexOf(".")+1);if(options.allowTypes&&options.allowTypes.indexOf(fileType)==-1){FR.Msg.toast(options.err?options.err:(fileType+FR.i18nText("Fine-Engine_Basic_File_Not_Allow_To_Upload")+","+FR.i18nText("Fine-Engine_Basic_File_Allow_To_Upload_Contains")+options.allowTypes));return false}}else{if(options.filter){if($file.val().toLowerCase().indexOf("."+options.filter)==-1){FR.Msg.toast(FR.i18nText("Fine-Engine_Basic_File_Should_Select_Excel_File"));
return}}}}FR.showLoadingDialog({width:310,height:80});if($.isFunction(options.beforeAction)){options.beforeAction()}FR.domFormSubmit($form,{url:options.url,timeout:3000000},function(res,status){FR.hideLoadingDialog();if(fileUploadDialog){fileUploadDialog.setVisible(false)}if($.isFunction(options.callback)){options.callback(res,status,options.el)}if($.isFunction(options.afterAction)){options.afterAction()}})},__fileSizeFormat__:function(size){if(!size){return""}var index=0;var units=["B","KB","MB","GB","TB"];
var returnValue=size+units[index];while(size>1024&&index<units.length-1){size=size/1024;index++}returnValue=size.toFixed(2)+units[index];return returnValue},encodeAjaxPostData:function(data){if(!data){return""}if(typeof data==="string"){data=FR.jsonDecode(data)}var encodedData={};$.each(data,function(pName,pValue){if(typeof pValue==="string"){encodedData[encodeURIComponent(pName)]=encodeURIComponent(pValue)}else{encodedData[encodeURIComponent(pName)]=pValue}});return encodedData}});$.extend(FR,{sentMail:function(conf){FR.showLoadingDialog({title:FR.i18nText("Fine-Engine_Basic_Email"),text:FR.i18nText("Fine-Engine_Basic_Email_Sending")+"..."});
FR.ajax({url:FR.servletURL,type:"POST",data:{op:"fr_email",cmd:"sent_email",sessionID:FR.SessionMgr.getSessionID(),mailXML:conf.xmlconf,paraMap:conf.paraMap||{}},complete:function(res,status){if(status=="success"){var responseText=FR.jsonDecode(res.responseText);var text;if(responseText.status=="success"){text=FR.i18nText("Fine-Engine_Basic_Email_Send_Success")}else{text=FR.i18nText("Fine-Engine_Basic_Email_Send_Failed")+"\n"+FR.i18nText("Fine-Engine_Basic_Email_Send_Error")}FR.hideLoadingDialog();
FR.Msg.alert(FR.i18nText("Fine-Engine_Basic_Email"),text,8000)}}})},correctPNG:function(img){if(img instanceof $){img=img[0]}var imgID=(img.id)?"id='"+img.id+"' ":"";var imgClass=(img.className)?"class='"+img.className+"' ":"";var imgTitle=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' ";var imgStyle="display:inline-block;"+img.style.cssText;if(img.align=="left"){imgStyle="float:left;"+imgStyle}if(img.align=="right"){imgStyle="float:right;"+imgStyle}if(img.parentElement.href){imgStyle="cursor:hand;"+imgStyle
}var strNewHTML="<span "+imgID+imgClass+imgTitle+'style="'+"width:"+img.width+"px; height:"+img.height+"px;"+imgStyle+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+img.src+"', sizingMethod='scale');\"></span>";img.outerHTML=strNewHTML},open:function(address){var temp="";var url1=/[a-zA-z]+:\/\/[^\s]*/;var url2=/\/[^\s]*/;if(address.match(url1)||address.match(url2)){temp=address}else{temp="http://"+address}window.open(temp)},fixBoxModelWidth:function($element){if($.support.boxModel){return $element.outerWidth()-$element.width()
}else{return 0}},fixBoxModelHeight:function($element){if($.support.boxModel){return $element.outerHeight()-$element.height()}else{return 0}},encrypt:function(str,pwd){if(str==""){return""}str=escape(str);if(!pwd||pwd==""){var pwd="655"}pwd=escape(pwd);if(pwd==null||pwd.length<=0){alert("Please enter a password with which to encrypt the message.");return null}var prand="";for(var I=0;I<pwd.length;I++){prand+=pwd.charCodeAt(I).toString()}var sPos=Math.floor(prand.length/5);var mult=parseInt(prand.charAt(sPos)+prand.charAt(sPos*2)+prand.charAt(sPos*3)+prand.charAt(sPos*4)+prand.charAt(sPos*5));
var incr=Math.ceil(pwd.length/2);var modu=Math.pow(2,31)-1;if(mult<2){alert("Algorithm cannot find a suitable hash. Please choose a different password. \nPossible considerations are to choose a more complex or longer password.");return null}var salt=Math.round(Math.random()*1000000000)%100000000;prand+=salt;while(prand.length>10){prand=(parseInt(prand.substring(0,10))+parseInt(prand.substring(10,prand.length),10)).toString()}prand=(mult*prand+incr)%modu;var enc_chr="";var enc_str="";for(var I=0;I<str.length;
I++){enc_chr=parseInt(str.charCodeAt(I)^Math.floor((prand/modu)*255));if(enc_chr<16){enc_str+="0"+enc_chr.toString(16)}else{enc_str+=enc_chr.toString(16)}prand=(mult*prand+incr)%modu}salt=salt.toString(16);while(salt.length<8){salt="0"+salt}enc_str+=salt;return enc_str},decrypt:function(str,pwd){if(str==""){return""}if(!pwd||pwd==""){var pwd="655"}pwd=escape(pwd);if(str==null||str.length<8){return}if(pwd==null||pwd.length<=0){return}var prand="";for(var I=0;I<pwd.length;I++){prand+=pwd.charCodeAt(I).toString()
}var sPos=Math.floor(prand.length/5);var tempmult=prand.charAt(sPos)+prand.charAt(sPos*2)+prand.charAt(sPos*3)+prand.charAt(sPos*4);if(sPos*5<prand.length){tempmult+=prand.charAt(sPos*5)}var mult=parseInt(tempmult);var incr=Math.round(pwd.length/2);var modu=Math.pow(2,31)-1;var salt=parseInt(str.substring(str.length-8,str.length),16);str=str.substring(0,str.length-8);prand+=salt;while(prand.length>10){prand=(parseInt(prand.substring(0,10),10)+parseInt(prand.substring(10,prand.length),10)).toString()
}prand=(mult*prand+incr)%modu;var enc_chr="";var enc_str="";for(var I=0;I<str.length;I+=2){enc_chr=parseInt(parseInt(str.substring(I,I+2),16)^Math.floor((prand/modu)*255));enc_str+=String.fromCharCode(enc_chr);prand=(mult*prand+incr)%modu}return unescape(enc_str)},clone:function(obj){if($.isPlainObject(obj)){return $.extend(true,{},obj)}return obj}});$.extend(FR,{Keys:function(){var fn_array=[];var enabled=true;$(document).keydown(function(e){var keydownFn;try{keydownFn=FR.Core.Plugin.Event.keydownFn
}catch(err){}if(!$.isFunction(keydownFn)){keydownFn=function(e){if(enabled){if(fn_array.length>0){var fn=fn_array[0];if($.isFunction(fn)){fn.call(window,e)}else{if($.isFunction(fn.fn)){fn.fn.call(fn.scope||window,e)}}}}}}keydownFn(e,{enabled:enabled,fn_array:fn_array})});return{reg:function(fn){fn_array.removeWeakEqual(fn);fn_array.unshift(fn)},unreg:function(fn){fn_array.removeWeakEqual(fn)},enable:function(state){if(typeof state=="boolean"){enabled=state}else{return enabled}}}}()});$.extend(FR,{HtmlLoader:function(){return{load:function(o){var cfg=$.extend({type:"GET",timeout:30000},o||{});
cfg.callback=cfg.callback||FR.emptyFn;var self=o.el;var animation=cfg.animation||this.loadingEffect;FR.ajax({url:cfg.url,type:cfg.type,async:cfg.params.async===false?false:true,dataType:"html",data:$.extend({_:new Date().getTime(),__boxModel__:$.support.boxModel},cfg.params),timeout:cfg.timeout,beforeSend:function(){animation.call(self,$.extend(o,{show:true}))},complete:function(res,status){var result=FR.jsonDecode(res.responseText);var html;if(result.html===undefined){html=res.responseText;FR.loadWatermarkFromServer();
FR.loadCopyrightFromServer()}else{html=result.html;FR.loadWatermark(result.watermark);FR.loadCopyright(result.copyright);if(_g()&&_g().$contentPane.data("TabPane")&&_g().$contentPane.data("TabPane")["tabBtns"]){$.each(result.sheets,function(index,sheet){_g().$contentPane.data("TabPane")["tabBtns"][index].reload(sheet.title)})}}if(html==""||html.indexOf(FR.i18nText("Fine-Engine_Report_Server_All_Error")+FR.i18nText("Fine-Engine_Page"))!=-1){window.needLoadMore=false}var scripts=[];if(cfg.scripts===true){var hd=document.getElementsByTagName("head")[0];
var re=/(?:<script([^>]*)?>)((?:\n|\r|.)*?)(?:<\/script>)/ig;var srcRe=/\ssrc=([\'\"])(.*?)\1/i;var typeRe=/\stype=([\'\"])(.*?)\1/i;var match;while(match=re.exec(html)){var attrs=match[1];var srcMatch=attrs?attrs.match(srcRe):false;if(srcMatch&&srcMatch[2]){var s=document.createElement("script");s.src=srcMatch[2];var typeMatch=attrs.match(typeRe);if(typeMatch&&typeMatch[2]){s.type=typeMatch[2]}hd.appendChild(s)}else{if(match[2]&&match[2].length>0){scripts.push(match[2])}}}html=html.replace(/(?:<script([^>]*)?>)((?:\n|\r|.)*?)(?:<\/script>)/ig,"")
}animation.call(self,$.extend(o,{show:false}));if(o.notReplaceBody){var iframeStart=html.indexOf("iframe");var start=html.indexOf("<body");if(start>-1&&iframeStart==-1){html=html.substr(start);start=html.indexOf(">");var end=html.indexOf("</body>");if(start>-1){html=html.substr(start+1,end-start-1)}}}if($.isFunction(cfg.loadHtml)){cfg.loadHtml.apply(self,[html])}else{self.html(html)}$.each(scripts,function(i,n){if(window.execScript){window.execScript(n)}else{window.eval(n)}});self.each(function(){cfg.callback.apply(this,[res.responseText,status,res])
});if(FR.Browser.isIE6()){setTimeout(function(){if(!$("div.pageContentDIV")[0]){return}var tr=$(".pageContentDIV tr").last();if(tr[0]&&!tr.height()&&!tr.is(":visible")){tr.show()}var tds=$(".pageContentDIV td");for(var i=0,len=tds.length;i<len;i++){var td=$(tds[i]);if(td.attr("rowspan")===1){td.attr("rowspan",1);break}}},25)}}});return this},loadingMoreData:function(config){this.loading(config)},loading:function(conf){var config=$.extend({show:false,forceDisplay:false,cssConfig:null,loadingMoreData:false},conf||{});
var el=config.el;var $indicator=el.data("indicator");if(!$indicator){$indicator=$("<div class='loading-indicator'>"+FR.i18nText("Fine-Engine_Basic_Loading")+"</div>");var o=config.loadingMoreData?{position:"relative",width:"56px"}:{position:"absolute",left:0,top:0};if(config.cssConfig){$.extend(o,config.cssConfig)}$indicator.css(o);el.data("indicator",$indicator)}if(!config.show){$indicator.detach()}else{if(config.show&&!$indicator.is(":visible")){$indicator.css("top",el.scrollTop());el.append($indicator)
}}},useCustomLoadingAnimation:function(){return false},_loadingEffectImmediately:function(cfg){var el=cfg.el;var config=$.extend({show:false,overflow:false,fixed:true,loadingType:"whole"},cfg||{});var $indicator=el.data("indicator");cfg.overflowx=cfg.overflowx||cfg.overflow||el.css("overflow-x")||el.css("overflow")||"auto";cfg.overflowy=cfg.overflowy||cfg.overflow||el.css("overflow-y")||el.css("overflow")||"auto";if(!$indicator||$indicator.html()===""){$indicator=createIndicator();el.data("indicator",$indicator)
}if(!config.show){$indicator.detach();el.css("overflow-x",cfg.overflowx);el.css("overflow-y",cfg.overflowy)}else{if(config.show&&!$indicator.is(":visible")){el.append($indicator);cfg.overflowx=el.css("overflow-x");cfg.overflowy=el.css("overflow-y");el.css("overflow","hidden")}}function createIndicator(){var $indicator=$("<div class='load-indicator'></div>");var $wholeIndicator=$("<div class='loading-whole-indicator-pic'></div>");var $localIndicator=$("<div class='loading-local-indicator-pic'></div>");
if(FR.Browser.supportCSSAnimation()&&!FR.HtmlLoader.useCustomLoadingAnimation()){$wholeIndicator=$("<div class='loading-whole-indicator'></div>");$("<div class='rect1'></div>").appendTo($wholeIndicator);$("<div class='rect2'></div>").appendTo($wholeIndicator);$("<div class='rect3'></div>").appendTo($wholeIndicator);$localIndicator=$("<div class='loading-local-indicator'></div>");$("<div class='rect1'></div>").appendTo($localIndicator);$("<div class='rect2'></div>").appendTo($localIndicator);$("<div class='rect3'></div>").appendTo($localIndicator)
}var isWholeLoading=config.loadingType==="whole";var o=cfg.fixed?{position:"fixed",margin:"auto",left:"0px",right:"0px",top:"0px",bottom:"0px"}:{position:"absolute",left:"50%",top:"50%","margin-left":isWholeLoading?"-32px":"-15px","margin-top":isWholeLoading?"-32px":"-15px"};if(isWholeLoading){$wholeIndicator.appendTo($indicator);$.extend(o,{width:"64px",height:"64px"})}else{$localIndicator.appendTo($indicator);$.extend(o,{width:"30px",height:"30px"})}$indicator.css(o);return $indicator}},loadingEffect:function(cfg){var loadingTimer=cfg.el.attr("loadingTimer");
if(loadingTimer){clearTimeout(loadingTimer);cfg.el.attr("loadingTimer",null)}var delay=parseInt(cfg.delay);if(delay>0){var timer=setTimeout(function(){FR.HtmlLoader._loadingEffectImmediately(cfg)},delay);cfg.el.attr("loadingTimer",timer)}else{FR.HtmlLoader._loadingEffectImmediately(cfg)}}}}()});$.extend(FR,{DomTool:function(){return{cloneTable:function($targetTable,$oSrcTable,iRowStart,iRowEnd,iColumnEnd){var iWidth=0,iHeight=0;this.mergeAttributes($oSrcTable,$targetTable);var Log="";var rowspanValue=0;
var rowNumber=0;var rowIndex;for(var i=iRowStart;i<iRowEnd;i++){var oldTr=$oSrcTable.find("tr").eq(i);var trp=oldTr.parent();var $newHead;if(trp.get(0).tagName=="THEAD"){if($targetTable.find("thead").length>0){$newHead=$targetTable.find("thead")}else{$newHead=$("<thead/>");this.mergeAttributes($newHead,trp);$targetTable.append($newHead)}}var isSingleRowspan=false;var rowspanCount=0;var colCount=0;var colNumber=0;for(var j=0;j<(iColumnEnd==-1?oldTr.find("td").length:iColumnEnd);j++){var oidTd=oldTr.find("td").eq(j);
colNumber++;var colspan=oidTd.attr("colspan");if(typeof(colspan)=="undefined"||colspan==1){colCount+=1}else{colCount+=colspan}var rowspan=oidTd.attr("rowspan");if(typeof(rowspan)!="undefined"&&rowspan!=1){rowspanCount++;rowIndex=i;rowspanValue=rowspan;rowNumber=rowspanCount}if(colCount>=iColumnEnd&&iColumnEnd!=-1){break}}Log+=i+"=="+rowIndex+"="+rowspanCount+"="+rowNumber+"="+rowspanValue+"<br>";if(i>rowIndex&&i<=(rowIndex+rowspanValue-1)&&iColumnEnd!=-1){if(rowNumber!==0&&iColumnEnd==rowNumber){isSingleRowspan=true
}else{colNumber-=1;if(rowspanCount===0){colNumber-=(rowNumber-1)}}}if(colNumber!==0){var newTr=$("<tr></tr>");this.mergeAttributes(oldTr,newTr);var jWidth=0;iHeight+=oldTr.outerHeight(true);for(var j=0;j<colNumber;j++){if(isSingleRowspan){continue}var oidTd=oldTr.find("td").eq(j);var newTd=oidTd.clone(true);newTd.height(oidTd.outerHeight(true)-1);newTd.width(oidTd.outerWidth(true));jWidth+=oidTd.outerWidth(true);iWidth=Math.max(iWidth,jWidth);newTr.append(newTd)}if(trp.get(0).tagName=="THEAD"){$newHead.append(newTr)
}else{$targetTable.append(newTr)}}}$targetTable.width(iWidth);$targetTable.height(iHeight)},frozenTable:function($table,iRowHead,iRowFoot,iColLeft,otherConfig){otherConfig=otherConfig||{};var oTable=$table;var oTableId=oTable.attr("id")||_.uniqueId;var oDiv=otherConfig.tableParent||oTable.parent();if(oDiv.get(0).tagName!="DIV"){return}oTable.find("td").attr("noWrap","nowrap");$table.css("border-collapse","collapse");if(oTable.width()>oDiv.width()&&oTable.height()>oDiv.height()){if(iRowHead>0&&iColLeft>0){var oCloneTable=$("<table id='oTableLH_"+oTableId+"' class='fr-clone'></table>");
oDiv.parent().append(oCloneTable);this.cloneTable(oCloneTable,oTable,0,iRowHead,iColLeft);oCloneTable.css("position","absolute");oCloneTable.css("left","0px");oCloneTable.css("border-bottom-style","none");oCloneTable.css("border-top-style","none");oCloneTable.css("top","0px");oCloneTable.css("z-index","4004");oCloneTable.css("table-layout","fixed")}if(iRowFoot>0&&iColLeft>0){var oCloneTable=$("<table id='oTableLF_"+oTableId+"' class='fr-clone'></table>");oDiv.parent().append(oCloneTable);this.cloneTable(oCloneTable,oTable,oTable.find("tr").length-iRowFoot,oTable.find("tr").length,iColLeft);
oCloneTable.css("position","absolute");oCloneTable.css("left","0px");oCloneTable.css("top",(oDiv.outerHeight(true)-oCloneTable.outerHeight(true)-17));oCloneTable.css("z-index","4003")}}if(iRowHead>0&&oTable.height()>oDiv.height()){var oCloneDiv=$("<div id='oDivH_"+oTableId+"' class='fr-clone'><table></table></div>");oDiv.parent().append(oCloneDiv);var oCloneTable=oCloneDiv.find("table");this.cloneTable(oCloneTable,oTable,0,iRowHead,-1);if(otherConfig&&otherConfig.tableCls){$.each(otherConfig.tableCls,function(idx,item){oCloneTable.addClass(item)
})}oCloneDiv.css("overflow","hidden");oCloneDiv.css("width",oDiv.outerWidth(true)-17);oCloneDiv.css("position","absolute");oCloneDiv.css("left","0px");oCloneDiv.css("top","0px");oCloneDiv.css("z-index","4002");oCloneDiv.css("table-layout","fixed")}if(iRowFoot>0&&oTable.height()>oDiv.height()){var oCloneDiv=$("<div id='oDivF_"+oTableId+"' class='fr-clone'><table></table></div>");oDiv.parent().append(oCloneDiv);var oCloneTable=oCloneDiv.find("table");this.cloneTable(oCloneTable,oTable,oTable.find("tr").length-iRowFoot,oTable.find("tr").length,-1);
if(otherConfig&&otherConfig.tableCls){$.each(otherConfig.tableCls,function(idx,item){oCloneTable.addClass(item)})}oCloneDiv.css("overflow","hidden");oCloneDiv.css("width",oDiv.outerWidth(true)-17);oCloneDiv.css("position","absolute");oCloneDiv.css("left","0px");oCloneDiv.css("top",oDiv.outerHeight(true)-oCloneTable.outerHeight(true)-17);oCloneDiv.css("z-index","4001")}if(iColLeft>0&&oTable.width()>oDiv.width()){var oCloneDiv=$("<div id='oDivL_"+oTableId+"' class='fr-clone'><table></table></div>");
oDiv.parent().append(oCloneDiv);var oCloneTable=oCloneDiv.find("table");this.cloneTable(oCloneTable,oTable,0,oTable.find("tr").length,iColLeft);if(otherConfig&&otherConfig.tableCls){$.each(otherConfig.tableCls,function(idx,item){oCloneTable.addClass(item)})}oCloneDiv.css("overflow","hidden");oCloneDiv.css("height",oDiv.outerHeight(true)-17);oCloneDiv.css("position","absolute");oCloneDiv.css("top","0px");oCloneDiv.css("z-index","4000");oCloneDiv.css("table-layout","fixed")}oDiv.scroll(function(){if(typeof($("#oDivH_"+oTableId).get(0))!="undefined"){$("#oDivH_"+oTableId).scrollLeft($(this).scrollLeft())
}if(typeof($("#oDivF_"+oTableId).get(0))!="undefined"){$("#oDivF_"+oTableId).scrollLeft($(this).scrollLeft())}if(typeof($("#oDivL_"+oTableId).get(0))!="undefined"){$("#oDivL_"+oTableId).scrollTop($(this).scrollTop())}})},mergeAttributes:function($src,$target){if(FR.Browser.isIE()){$target.get(0).mergeAttributes($src.get(0))}else{var attrs=$src.get(0).attributes;i=attrs.length-1;for(;i>=0;i--){var name=attrs[i].name;if(name.toLowerCase()==="id"||attrs[i].value===""||attrs[i].value==null||attrs[i].value=="null"){continue
}try{$target.attr(name,attrs[i].value)}catch(e){}}}}}}()})})();
(function($){$.extend($,{clearwatermarks:function(){$("[wmwrap='true']").find("input,textarea").watermark({remove:true})},addwatermarks:function(){$("[watermark]").each(function(num,el){$(el).watermark($(el).attr("watermark"))})},watermark:function(o){var defaultOffsetLeft=3;o.el=$(o.el);if(o.remove){if($.browser.msie){if(o.el.parent().attr("wmwrap")=="true"){o.el.parent().replaceWith(o.el)}}else{o.el.removeAttr("placeholder")}}else{if(o.clear){if($.browser.msie){if($("label.fr-watermark-label",o.el.parent())){$("label.fr-watermark-label",o.el.parent()).hide()
}}else{o.el.attr("placeholder","")}}else{if($.browser.msie){if(o.el.parent().attr("wmwrap")!="true"){o.el=o.el.wrap("<span wmwrap='true'/>");var l=$("<label/>").addClass("fr-watermark-label");if(o.html){l.html(o.html)}if(o.cls){l.addClass(o.cls)}if(o.css){l.css(o.css)}l.css({position:"absolute",left:defaultOffsetLeft+"px",top:"",display:"inline",cursor:"text",width:o.el.width(),height:o.el.height(),overflow:"hidden","font-size":"9pt","white-space":"nowrap"});if(o.isEditable){l.css("left",o.offsetLeft||defaultOffsetLeft)
}l.css("line-height",(o.el.height()+($.support.boxModel?4:0))+"px");if(!o.cls&&!o.css){l.css("color",l.getwatermarkcolor())}var focus=function(){l.hide()};var blur=function(){if(!o.el.val()){l.show()}else{l.hide()}};var click=function(){o.el.focus()};if(o.inherit){if(typeof o.inherit=="string"){l.css(o.inherit,o.el.css(o.inherit))}else{for(var x=0;x<o.inherit.length;x++){l.css(o.inherit[x],o.el.css(o.inherit[x]))}}}if(!o.el.attr("disabled")){o.el.focus(focus).blur(blur);o.el[0].onpropertychange=function(){if(!o.el.val()){l.show()
}else{l.hide()}};l.click(click)}o.el.before(l);if(o.el.val()){l.hide()}}}else{var clicked=false;o.el.attr("placeholder",o.html);o.el.focus(function(){o.el.removeAttr("placeholder");if(FR.Browser.r.gecko){if(!clicked){clicked=true;$(this).click()}else{clicked=false}}}).blur(function(){o.el.attr("placeholder",o.html)})}}}return o.el}});$.fn.watermark=function(o,isEditable){var offestLeft=this.offset().left;return this.each(function(){if(typeof(o)=="string"){try{o=eval("("+o+")")}catch(ex){o={html:o}
}if(typeof(o)=="number"){o={html:o}}}o.el=this;o.offsetLeft=offestLeft;o.isEditable=isEditable;return $.watermark(o)})};$.fn.watermarkValueChange=function(){};$.fn.getwatermarkcolor=function(){return"rgb(204, 204, 204)"}})(jQuery);$().ready(function(){$.addwatermarks()});
(function($){var otherButton=[];var d=$("<div style='position:absolute;top:-1000px;width:100px;height:100px;padding:5px'></div>").appendTo("body");$._boxModel=parseInt(d.width())===100;d.remove();$.fn._outerWidth=function(el){if(el==undefined){if(this[0]==window){return this.width()||document.body.clientWidth}return this.outerWidth()||0}return this.each(function(){if($._boxModel){$(this).width(el-($(this).outerWidth()-$(this).width()))}else{$(this).width(el)}})};$.fn._outerHeight=function(el){if(el==undefined){if(this[0]==window){return this.height()||document.body.clientHeight
}return this.outerHeight()||0}return this.each(function(){if($._boxModel){$(this).height(el-($(this).outerHeight()-$(this).height()))}else{$(this).height(el)}})};FR.Panel=FR.extend(FR.Widget,{_defaultConfig:function(){return $.extend(FR.Panel.superclass._defaultConfig.apply(this,arguments),{baseCls:"fr-core-panel",titleHeight:25,headerBackground:null,borderRadius:false,fit:false,doSize:true,border:false,borderWidth:1,closable:false,maximizable:false,minimizable:false,collapsible:false,autoScroll:true,closed:false,animate:true,width:300,height:200,tools:null,style:null,onBeforeClose:null,onClose:null})
},_init:function(){var o=this.options;this.headerHeight=(!FR.isEmpty(o.title))?o.titleHeight:(o.miniExpand?8:0);if(typeof o.height=="number"){o.height+=(!FR.isEmpty(o.title))?o.titleHeight:0}FR.Panel.superclass._init.apply(this,arguments);var self=this;var defaultStyle="blue";$.each(["gray","green","blue"],function(i,item){if(o.style&&item==o.style.toLowerCase()){defaultStyle=o.style.toLowerCase()}});o.style=defaultStyle;this.element.addClass(o.baseCls);this._addContent();if((typeof o.height=="number"&&o.height>this.headerHeight)||typeof o.height!="number"){this._addHeader()
}this._addBorder();if(o.doSize===true){this.doResize({width:o.width,height:o.height})}if(o.closed===true){this.element.hide()}if(o.css){this.element.css(o.css)}this.on("_resize",function(){if(self.options._resize){self.options._resize()}})},_addContent:function(){var opts=this.options;var top=FR.isEmpty(opts.title)?0:opts.titleHeight;this.panelBody=$('<div class="fr-core-panel-body"></div>').css({position:"absolute",top:top,left:0}).appendTo(this.element);this.$contentPane=this._createContentPane();
this._loadContent(false)},_createContentPane:function(){if(this.options.autoScroll===false){this.panelBody.css({overflow:"hidden"})}return this.panelBody},_addBorder:function(){var o=this.options;if(o.border===true){if(this.$header){this.$header.removeClass("fr-core-panel-header-noborder")}this.borderFix4width=o.borderWidth*2;this.borderFix4height=o.borderWidth*2;this.panelBody.addClass("fr-core-panel-body-border").removeClass("fr-core-panel-body-noborder").css({borderWidth:o.borderWidth});if(!FR.isEmpty(o.title)){this.borderFix4height=o.borderWidth;
this.panelBody.css({borderTop:"none"})}}else{if(this.$header){this.$header.addClass("fr-core-panel-header-noborder")}this.panelBody.removeClass("fr-core-panel-body-border").addClass("fr-core-panel-body-noborder")}},_loadContent:function(forced){var opts=this.options;var ct=this.$contentPane;if(opts.contentUrl&&(!opts.isLoaded||forced===true)){opts.isLoaded=false;ct.html($('<div class="fr-core-panel-loading"></div>').html("loading..."));FR.ajax({url:opts.contentUrl,type:"POST",complete:function(res,status){var ht=res.responseText;
if($.isFunction(opts.callback)){opts.callback(ct,ht)}else{ct.html(ht)}opts.isLoaded=true}})}else{if(opts.contentWidget){if(opts.contentWidget.type){opts.contentWidget.style=opts.style;opts.contentWidget=FR.createWidget($.extend(opts.contentWidget,{resultWidgets:opts.resultWidgets}))}ct.append(opts.contentWidget.element)}else{if(opts.contentHtml){ct.html(opts.contentHtml);if(typeof opts.contentHtml==="object"){var newEl=$(opts.contentHtml)[0];if(newEl.tagName=="IFRAME"){var topHeight=FR.isEmpty(opts.title)?0:opts.titleHeight;
var loadTop=topHeight-opts.height;var $loading=$('<div class="fr-core-panel-loading" style="position: relative"></div>').css({width:opts.width,height:30,top:loadTop}).html(FR.i18nText("Fine-Engine_Basic_Loading")+"...");if(!opts.noLoading){ct.append($loading)}if(newEl.attachEvent){newEl.attachEvent("onload",function(){$loading.remove()})}else{newEl.onload=function(){$loading.remove()}}}}}else{if(opts.contentText){ct.text(opts.contentText)}}}}},_addHeader:function(){var self=this;var opts=this.options;
if(!FR.isEmpty(opts.title)){this.$header=$('<div class="fr-core-panel-header"></div>').addClass("fr-core-panel-style-"+opts.style).css({position:"absolute",top:0,left:0}).appendTo(this.element);if(!opts.borderRadius){this.$header.css({borderRadius:0})}if(opts.headerBackground){this.$header.css({background:opts.headerBackground})}var fix=$.support.boxModel?2:0;this.$innerHeader=$('<div class="fr-core-panel-header-inner"></div>').css({position:"absolute",top:0,left:0}).appendTo(this.$header);this.$titleText=$("<div></div>").text(opts.title).addClass("fr-core-panel-title").appendTo(this.$innerHeader);
this.rightDistance=7;if(opts.closable){$('<div class="fr-core-panel-tool-close"></div>').css({position:"absolute",top:0,right:this.rightDistance,width:25,height:opts.titleHeight-fix}).mouseout(function(){$(this).removeClass("fr-core-panel-tool-close-hover").removeClass("fr-core-panel-tool-close-down").removeClass("fr-core-panel-tool-over").addClass("fr-core-panel-tool-close")}).mousedown(function(e){$(this).removeClass("fr-core-panel-tool-close-hover").addClass("fr-core-panel-tool-close-down")}).mouseover(function(){$(this).removeClass("fr-core-panel-tool-close").addClass("fr-core-panel-tool-over").addClass("fr-core-panel-tool-close-hover")
}).bind("click",function(){self.doClose()}).appendTo(this.$innerHeader);this.rightDistance+=24}if(opts.tools){for(var i=opts.tools.length-1;i>=0;i--){var item=opts.tools[i];var itemWidth=item.width||24,itemHeight=item.height||opts.titleHeight-fix;var t=$("<div></div>").css({position:"absolute",top:0,width:itemWidth,height:itemHeight,lineHeight:itemHeight+"px"}).addClass(item.iconCls).hover(function(){$(this).addClass("fr-core-panel-tool-over");$(this).addClass(item.iconCls+"-over")},function(){$(this).removeClass("fr-core-panel-tool-over");
$(this).removeClass(item.iconCls+"-over")}).mousedown(function(){$(this).addClass(item.iconCls+"-click")}).mouseleave(function(){$(this).removeClass(item.iconCls+"-over");$(this).removeClass(item.iconCls+"-click")}).mouseup(function(){$(this).removeClass(item.iconCls+"-click")}).appendTo(this.$innerHeader);item.el=t;item.width=itemWidth;if(item.invisible){t.hide()}if(item.handler){if($.isFunction(item.handler)){t.bind("click",item.handler.createDelegate(t))}else{if(typeof(item.handler)==="object"){if($.isFunction(item.handler.mousedown)){t.mousedown(item.handler.mousedown.createDelegate(t))
}if($.isFunction(item.handler.mouseleave)){t.mouseleave(item.handler.mouseleave.createDelegate(t))}if($.isFunction(item.handler.mouseup)){t.mouseup(item.handler.mouseup.createDelegate(t))}}else{t.bind("click",eval(item.handler))}}}if($.isArray(item.hover)&&item.hover.length>1){t.hover(item.hover[0].createDelegate(t),item.hover[1].createDelegate(t))}if(item.text){t.text(item.text)}if(item.styleText){FR.applyStyles(t,item.styleText)}}this._modifyToolsPosition()}this.panelBody.removeClass("fr-core-panel-body-noheader")
}else{if(opts.miniExpand){var header=$("<div class='parameter-container-collapse'></div>").appendTo(self.element);header.css({position:"absolute",top:opts.height-8,left:0,"width":"100%","height":"8px","background":"none repeat scroll 0 0 #EEEEEE"});var collapseImagWrapper=$("<div/>").css({width:"112px",height:"8px","margin-left":"auto","margin-right":"auto","position":"relative"}).appendTo(header);var collapseImag=$("<div class='parameter-container-collapseimg-up'/>").appendTo(collapseImagWrapper).click(eval(opts.miniExpand.handler))
}else{this.panelBody.addClass("fr-core-panel-body-noheader")}}},setTitle:function(title){if(this.$innerHeader){this.$innerHeader.find(">div.fr-core-panel-title").html(title)}},setToolVisible:function(index,visible){var opts=this.options;var ct=opts.tools[index];if(ct&&ct.el&&ct.el.isVisible()!=visible){visible?ct.el.show():ct.el.hide();this._modifyToolsPosition()}},_modifyToolsPosition:function(){var rd=this.rightDistance,opts=this.options;for(var i=opts.tools.length-1;i>=0;i--){var item=opts.tools[i];
if(item.el&&item.el.isVisible()){item.el.css({right:rd});rd+=item.width}}},doOpen:function(){this.element.show();this.options.closed=false;if($.isFunction(this.options.onOpen)){this.options.onOpen.call(this)}},doClose:function(){var self=this;if($.isFunction(self.options.onHide)){self.options.onHide.call(self)}this.element.hide(self.options.animate?"fast":0,function(){if($.isFunction(self.options.onBeforeClose)){self.options.onBeforeClose.call(self)}self.options.closed=true;if($.isFunction(self.options.onClose)){self.options.onClose.call(self)
}})},doMove:function(give){var opts=this.options;if(give){if(give.left!=null){opts.left=give.left}if(give.top!=null){opts.top=give.top}}this.element.css({left:opts.left,top:opts.top});if($.isFunction(opts.onMove)){opts.onMove.apply(this,[opts.left,opts.top])}},enable:function(){if(this.mask){this.mask.hide()}},disable:function(){if(!this.mask){this.mask=$("<div/>").addClass("fr-core-window-mask").appendTo(this.element);this.mask.css({zIndex:FR.widget.opts.zIndex++,width:this.element.width()?this.element.width():this.options.width,height:this.element.height()?this.element.height():this.options.height,background:"gray"})
}this.mask.show()},doResize:function(give){var opts=this.options;var self=this;if(give){if(give.width){opts.width=give.width}if(give.height){opts.height=give.height}if(give.left!=null){opts.left=give.left}if(give.top!=null){opts.top=give.top}}if(opts.fit===true){var p=this.element.parent();opts.width=p.width();opts.height=p.height()}this.element.css({left:opts.left,top:opts.top});if(opts.cls){this.element.addClass(opts.cls)}if(this.$header&&opts.headerCls){this.$header.addClass(opts.headerCls)}if(opts.bodyCls){this.panelBody.addClass(opts.bodyCls)
}if(!isNaN(opts.width)){if($.support.boxModel===true){var panelWidth=opts.width-(this.element.outerWidth()-this.element.width());this.element.width(panelWidth);if(!FR.isEmpty(opts.title)&&this.$header){this.$header.width(panelWidth-(this.$header.outerWidth()-this.$header.width()));this.$innerHeader.width(panelWidth-(this.$header.outerWidth()-this.$header.width()))}this.panelBody.width(panelWidth-(this.panelBody.outerWidth()-this.panelBody.width()))}else{this.element.width(opts.width);if(!FR.isEmpty(opts.title)&&this.$header){this.$header.width(opts.width);
this.$innerHeader.width(opts.width)}this.panelBody.width(opts.width-this.borderFix4width)}}else{this.element.width("auto");this.panelBody.width("auto")}if(!isNaN(opts.height)){if($.support.boxModel===true){var panelHeight=opts.height-(this.element.outerHeight()-this.element.height());this.element.height(panelHeight);if(!FR.isEmpty(opts.title)&&this.$header){this.$header.height(this.headerHeight-(this.$header.outerHeight()-this.$header.height()));this.$innerHeader.height(this.headerHeight-(this.$header.outerHeight()-this.$header.height()));
this.$titleText.css({lineHeight:this.headerHeight-(this.$header.outerHeight()-this.$header.height())+"px"})}this.panelBody.height(panelHeight-this.headerHeight-(this.panelBody.outerHeight()-this.panelBody.height()))}else{this.element.height(opts.height);if(!FR.isEmpty(opts.title)&&this.$header){this.$header.height(this.headerHeight);this.$innerHeader.height(this.headerHeight);this.$titleText.css({lineHeight:this.headerHeight+"px"})}this.panelBody.height(opts.height-this.headerHeight-this.borderFix4height)
}}else{this.element.height("auto");this.$contentPane.height("auto")}if($.isFunction(opts.onResize)){opts.onResize.apply(this,[opts.width,opts.height])}this._resizeContentWidget();this.fireEvent(FR.Events.RESIZE);this.element.doLayout()},_resizeContentWidget:function(){var opts=this.options;var pbodystylestring=this.$contentPane.attr("style");var pbodyheight=parseInt(pbodystylestring.replace(/.*height\:\s*(\d+).*/gi,"$1"));var pbodywidth=parseInt(pbodystylestring.replace(/.* width\:\s*(\d+).*/gi,"$1"));
if(opts.contentWidget){opts.contentWidget.doResize({width:this.$contentPane.width(),height:pbodyheight})}else{if(opts.contentHtml&&FR.Browser.isIE6()){$(opts.contentHtml).css({width:pbodywidth,height:pbodyheight})}}}});$.shortcut("panel",FR.Panel);FR.ConfirmPane=FR.extend(FR.Panel,{_defaultConfig:function(){return $.extend(FR.ConfirmPane.superclass._defaultConfig.apply(this,arguments),{text4OK:FR.i18nText("Fine-Engine_Basic_OK"),text4Cancel:FR.i18nText("Fine-Engine_Basic_Cancel"),width4OK:80,width4Cancel:80,height4OK:28,height4Cancel:28,controlPaneHeight:40,btnsGap:20,firstBtnMargin:20,needSeparate:false,btnsAlignment:"right",closeAfterAction:true,onOK:null,onCancel:null})
},_init:function(){FR.ConfirmPane.superclass._init.apply(this,arguments)},_createContentPane:function(){var opts=this.options;var $contentPane=$('<div class="fr-core-panel-content">').css({position:"absolute",top:0,left:0}).appendTo(this.panelBody);var self=this;this.okdiv=$('<div style="position:absolute"/>').appendTo(this.panelBody);this.canceldiv=$('<div style="position:absolute"/>').appendTo(this.panelBody);if(!FR.isEmpty(opts.text4OK)){self.okButton=new FR.createWidget({type:"quickbutton",text:opts.text4OK,width:opts.width4OK,height:opts.height4OK,style:opts.style,handler:function(){if($.isFunction(self.options.onOK)){var result=self.options.onOK.apply(self);
if(result===false){return}}if(self.options.closeAfterAction){self.doClose()}}});this.okButton.element.appendTo(this.okdiv);this.okdiv.css({width:opts.width4OK,height:opts.height4OK})}if(!FR.isEmpty(opts.text4Cancel)){self.cancelButton=new FR.createWidget({type:"quickbutton",text:opts.text4Cancel,width:opts.width4Cancel,height:opts.height4Cancel,handler:function(){if($.isFunction(self.options.onCancel)){self.options.onCancel.apply(self)}if(self.options.closeAfterAction){self.doClose()}}});this.cancelButton.element.appendTo(this.canceldiv);
this.canceldiv.css({width:opts.width4Cancel,height:opts.height4Cancel})}if(opts.needSeparate){$contentPane.addClass("fr-core-panel-content-separate");this.okdiv&&this.okdiv.css("margin-top",opts.needSeparate+"px");this.canceldiv&&this.canceldiv.css("margin-top",opts.needSeparate+"px")}return $contentPane},doResize:function(give){FR.ConfirmPane.superclass.doResize.apply(this,arguments);var opts=this.options;var alignment=opts.btnsAlignment;var oktop=0,canceltop=0,okalign=0,cancelalign=0;var height=opts.height;
if(opts.needSeparate){height=height-opts.needSeparate}if(!isNaN(height)){if($.support.boxModel===true){this.$contentPane.css({height:height-this.headerHeight-opts.controlPaneHeight-(this.$contentPane.outerHeight()-this.$contentPane.height()),width:opts.width-(this.panelBody.outerWidth()-this.panelBody.width())})}else{this.$contentPane.css({height:height-this.headerHeight-opts.controlPaneHeight,width:opts.width})}}oktop=height-this.headerHeight-opts.controlPaneHeight;canceltop=height-this.headerHeight-opts.controlPaneHeight;
if(alignment=="right"){okalign=opts.width4Cancel+opts.firstBtnMargin+opts.btnsGap;cancelalign=opts.firstBtnMargin}else{if(alignment=="left"){okalign=opts.firstBtnMargin;cancelalign=opts.width4OK+opts.firstBtnMargin+opts.btnsGap}else{var allWidth=opts.width4OK+opts.width4Cancel+opts.btnsGap;var Left=(opts.width-allWidth)/2;okalign=Left;cancelalign=Left+opts.width4OK+opts.btnsGap;alignment="left"}}if(this.okButton){this.okdiv.css("top",oktop);this.okdiv.css(alignment,okalign)}if(this.cancelButton){this.canceldiv.css("top",canceltop);
this.canceldiv.css(alignment,cancelalign)}this._resizeContentWidget()},loading:function(isFetching){this.okButton.setEnable(!isFetching)}});$.shortcut("confirm",FR.ConfirmPane);FR.ButtonPane=FR.extend(FR.Panel,{_defaultConfig:function(){return $.extend(FR.ButtonPane.superclass._defaultConfig.apply(this,arguments),{text4Cancel:FR.i18nText("Fine-Engine_Basic_Cancel"),width4Cancel:80,button4Other:[],controlPaneHeight:40,btnsAlignment:"right",closeAfterAction:true})},_init:function(){FR.ButtonPane.superclass._init.apply(this,arguments)
},_createContentPane:function(){var opts=this.options;var $contentPane=$('<div class="fr-core-panel-content">').css({position:"absolute",top:0,left:0}).appendTo(this.panelBody);var other=opts.button4Other;this.otherButton=[];this.otherButtonWrap=[];for(var i=0;i<other.length;i++){this.otherButtonWrap[i]=$('<div style="position:absolute"/>').appendTo(this.panelBody);this.otherButton[i]=new FR.createWidget({type:"quickbutton",text:other[i].bT,width:other[i].bW?other[i].bW:80,baseCls:other[i].baseCls?other[i].baseCls:"",invisible:other[i].invisible,style:opts.style,handler:function(){var onAct=this.element.data("func");
if($.isFunction(onAct)){onAct.apply(self)}var aftAct=this.element.data("aftfunc");if(aftAct){self.doClose()}}});this.otherButton[i].element.appendTo(this.otherButtonWrap[i]);this.otherButtonWrap[i].css({width:other[i].bW,height:opts.height4Cancel});this.otherButton[i].element.data("func",other[i].bF?other[i].bF:FR.emptyFn());this.otherButton[i].element.data("aftfunc",other[i].bC?other[i].bC:false)}var self=this;this.canceldiv=$('<div style="position:absolute"/>').appendTo(this.panelBody);this.cancelButton=new FR.createWidget({type:"quickbutton",text:opts.text4Cancel,width:opts.width4Cancel,height:opts.height4Cancel,handler:function(){if($.isFunction(self.options.onCancel)){self.options.onCancel.apply(self)
}if(self.options.closeAfterAction){self.doClose()}}});this.cancelButton.element.appendTo(this.canceldiv);this.canceldiv.css({width:opts.width4Cancel,height:opts.height4Cancel});if(opts.needSeparate){$contentPane.addClass("fr-core-panel-content-separate");this.canceldiv&&this.canceldiv.css("margin-top",opts.needSeparate+"px");for(var i=0;i<this.otherButtonWrap.length;i++){this.otherButtonWrap[i]&&this.otherButtonWrap[i].css("margin-top",opts.needSeparate+"px")}}return $contentPane},doResize:function(give){FR.ButtonPane.superclass.doResize.apply(this,arguments);
var opts=this.options;var other=opts.button4Other;var alignment=opts.btnsAlignment;var canceltop=0,cancelalign=0;var height=opts.height;if(opts.needSeparate){height=height-opts.needSeparate}if(!isNaN(height)){if($.support.boxModel===true){this.$contentPane.css({height:height-this.headerHeight-opts.controlPaneHeight-(this.$contentPane.outerHeight()-this.$contentPane.height()),width:opts.width-(this.panelBody.outerWidth()-this.panelBody.width())})}else{this.$contentPane.css({height:height-this.headerHeight-opts.controlPaneHeight,width:opts.width})
}}canceltop=height-this.headerHeight-opts.controlPaneHeight;var alignment=opts.btnsAlignment;if(alignment=="right"){var right=opts.width4Cancel+40;this.canceldiv.css(alignment,20);this.canceldiv.css("top",canceltop);for(var i=0;i<other.length;i++){this.otherButtonWrap[i].css(alignment,right);this.otherButtonWrap[i].css("top",canceltop);right=right+other[i].bW+20}}else{if(alignment=="left"){var left=opts.width4Cancel+40;this.canceldiv.css(alignment,20);this.canceldiv.css("top",canceltop);for(var i=0;
i<other.length;i++){this.otherButtonWrap[i].css(alignment,left);this.otherButtonWrap[i].css("top",canceltop);left=left+other[i].bW+20}}else{var allWidth=0;for(var i=0;i<other.length;i++){allWidth=allWidth+other[i].bW+20}allWidth=allWidth+opts.width4Cancel;var otherLeft=(opts.width-allWidth)/2;for(var i=0;i<other.length;i++){this.otherButtonWrap[i].css("left",otherLeft);this.otherButtonWrap[i].css("top",canceltop);otherLeft=otherLeft+other[i].bW+20}this.cancelButton.element.css("left",otherLeft)}}this._resizeContentWidget()
}});$.shortcut("otherbutton",FR.ButtonPane);FR.Window=FR.extend(FR.Widget,{_defaultConfig:function(){return $.extend(FR.Window.superclass._defaultConfig.apply(),{baseCls:"fr-core-window",title:"Window",titleHeight:30,modal:true,confirm:false,otherButton:false,closable:true,collapsible:false,closed:true,destroyOnClose:false,addIframeCoverForIE:false,width:300,height:200,resizeable:true,draggable:true,adaptivity:{enabled:false,minWidth:300,minHeight:200,topGap:0,leftGap:0,bottomGap:0,rightGap:0}})},_init:function(){FR.Window.superclass._init.apply(this,arguments);
var o=this.options;var win=this.win;if(!$.support.boxModel){win.doResize({width:o.width,height:o.height})}var self=this;if(this.mask){this.mask.remove()}if(o.modal===true){this.mask=$('<div class="fr-core-window-mask"></div>').appendTo("body");this.mask.css({zIndex:FR.widget.opts.zIndex++,width:this._getPageArea().width,height:this._getPageArea().height,display:"none"});this._doAdaptiveResize();this.options.resizeFn=function(){self.mask.css({width:self._getPageArea().width,height:self._getPageArea().height});
self._doAdaptiveResize()};$(window).bind("resize",this.options.resizeFn)}this.element.css({zIndex:FR.widget.opts.zIndex++});if(win.options.left==null){var width=win.options.width;if(isNaN(width)){width=this.element.outerWidth()}var l=$(window).width();if(FR.Browser.isIE8Before()){l=FR.windowWidth}win.options.left=(l-width)/2+$(document).scrollLeft()}if(win.options.top==null){var height=win.options.height;if(isNaN(height)){height=this.element.outerHeight()}var h=$(window).height();if(FR.Browser.isIE8Before()){h=FR.windowHeight
}win.options.top=(h-height)/2+$(document).scrollTop()}win.doMove();this.setVisible(!o.closed);if(this.options.draggable){this.element.draggable({handle:">div.fr-core-panel-header",onStartDrag:function(e){if(self.mask){self.mask.css("z-index",FR.widget.opts.zIndex.zIndex++)}if(self.shadow){self.shadow.css("z-index",FR.widget.opts.zIndex.zIndex++)}self.element.css("z-index",FR.widget.opts.zIndex.zIndex++);var $contentDiv=$(self.element.children()[0]);$contentDiv.css("z-index",0);var top=$contentDiv.css("top");
var height=$contentDiv.css("height");var width=$contentDiv.css("width");var transparentMask=$("#transparent-background");if(transparentMask.length>0){transparentMask.remove()}var $transparentDiv=$('<div id="transparent-background" style="position:absolute;filter:alpha(opacity=50);opacity:0.5;"></div>');$transparentDiv.css("left","0px").css("top",top).css("width",width).css("height",height);$transparentDiv.css("z-index",1);self.element.append($transparentDiv);if(!self.proxy){self.proxy=$('<div class="fr-core-window-proxy"></div>').insertAfter(self.element)
}self.proxy.css({display:"none",zIndex:FR.widget.opts.zIndex.zIndex++,left:e.data.left,top:e.data.top});self.proxy._outerWidth(self.element._outerWidth());self.proxy._outerHeight(self.element._outerHeight());setTimeout(function(){if(self.proxy){self.proxy.show()}},500)},onDrag:function(e){var pluginLimit=FR.Window.PluginDialogLimit;if(pluginLimit){e.data.top=pluginLimit.onDrag.pluginTopFn(e.data.top,self.element._outerHeight(),self._getPageArea().height);e.data.left=pluginLimit.onDrag.pluginLeftFn(e.data.left,self.element._outerWidth(),self._getPageArea().width)
}self.proxy.css({display:"block",left:e.data.left,top:e.data.top});return false},onStopDrag:function(e){$("#transparent-background").remove();self.proxy.remove();self.proxy=null}})}if(FR.Browser.isIE()&&this.options.addIframeCoverForIE){this._dealWithIFramePDFZIndexIssueForIE()}if(this.options.resizeable){this.element.resizable({onStartResize:function(e){if(!self.pmask){self.pmask=$('<div class="fr-core-window-proxy-mask"></div>').insertAfter(self.element)}self.pmask.css({zIndex:FR.widget.opts.zIndex++,left:e.data.left,top:e.data.top,width:self.element._outerWidth(),height:self.element._outerHeight()});
if(!self.proxy){self.proxy=$('<div class="fr-core-window-proxy"></div>').insertAfter(self.element)}self.proxy.css({zIndex:FR.widget.opts.zIndex++,left:e.data.left,top:e.data.top});self.proxy._outerWidth(e.data.width);self.proxy._outerHeight(e.data.height)},onResize:function(e){if(!self.proxy){return}self.proxy.css({left:e.data.left,top:e.data.top});self.proxy._outerWidth(e.data.width);self.proxy._outerHeight(e.data.height);return false},onStopResize:function(e){var pluginLimit=FR.Window.PluginDialogLimit;
if(pluginLimit){e.data.height=pluginLimit.onResize.pluginHeightFn(e.data.top,self.element._outerHeight(),self._getPageArea().height);e.data.width=pluginLimit.onResize.pluginWidthFn(e.data.left,self.element._outerWidth(),self._getPageArea().width);e.data.top=pluginLimit.onResize.pluginTopFn(e.data.top,self.element._outerHeight(),self._getPageArea().height);e.data.left=pluginLimit.onResize.pluginLeftFn(e.data.left,self.element._outerWidth(),self._getPageArea().width)}$.extend(self.options,{left:e.data.left,top:e.data.top,width:e.data.width,height:e.data.height});
self.doResize({top:self.options.top,left:self.options.left,width:self.options.width,height:self.options.height});self.pmask.remove();self.pmask=null;if(self.proxy){self.proxy.remove();self.proxy=null}}})}},_dealWithIFramePDFZIndexIssueForIE:function(){$('<iframe src="about:blank">').css({"border":"none","position":"absolute","top":"0","left":"0","height":"100%","width":"100%","z-index":"-1"}).appendTo(this.element)},_defaultRoot:function(){var o=this.options,override=o.override;if(FR.Browser.isIE()&&!FR.Browser.r.quirks){o.baseCls+=" fr-core-window-no-hack"
}var self=this;var panelType;if(o.confirm){panelType="confirm"}else{if(o.otherButton){panelType="otherbutton"}else{panelType="panel"}}var winOpts=$.extend({},o,{type:panelType,height:o.height-o.titleHeight,fit:false,renderEl:$("<div/>").appendTo("body"),doSize:true,border:true,borderRadius:"auto",cls:o.baseCls,headerCls:"fr-core-window-header",bodyCls:"fr-core-window-body",onClose:function(){if(self.mask){if(!o.destroyOnClose){self.element.find("iframe").each(function(){try{if(this.contentWindow&&this.contentWindow.document){$("video",this.contentWindow.document).trigger("pause")
}}catch(e){}})}self.mask.hide()}if(o.destroyOnClose){self.destroy()}FR.Keys.enable(true)},onOpen:function(){if(self.mask){self.mask.show()}FR.Keys.enable(false)},onResize:function(width,heigh){if($.isFunction(o.onDialogResize)){o.onDialogResize()}},onMove:function(left,top){}},override);this.win=FR.createWidget(winOpts);return this.win.element},_getPageArea:function(){if(document.compatMode=="BackCompat"){return{width:Math.max(document.body.scrollWidth,document.body.clientWidth),height:Math.max(document.body.scrollHeight,document.body.clientHeight)}
}else{return{width:Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth),height:Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight)}}},_doAdaptiveResize:function(){var o=this.options;if(o.adaptivity.enabled){var gave={top:o.adaptivity.topGap,left:o.adaptivity.leftGap,width:Math.max(this._getPageArea().width-o.adaptivity.leftGap-o.adaptivity.rightGap,o.adaptivity.minWidth),height:Math.max(this._getPageArea().height-o.adaptivity.topGap-o.adaptivity.bottomGap,o.adaptivity.minHeight)};
this.doResize(gave)}},doClose:function(){this.win.doClose()},doResize:function(give){this.win.doResize(give)},setTitle:function(title){this.win.setTitle(title)},setContent:function(c){this.win.options[c.type]=c.content;this.win._loadContent(true);if(FR.Browser.isIE8Before()){var self=this;setTimeout(function(){self.doResize({"width":undefined,"height":undefined})},150)}},setVisible:function(flag){if(flag===true&&this.win.options.closed===true){this.win.doOpen()}else{if(flag===false&&this.win.options.closed===false){this.win.doClose()
}}},destroy:function(){if(this.options.resizeFn){$(window).unbind("resize",this.options.resizeFn)}if(FR.Browser.isIE()){this.element.find("iframe").each(function(){try{if(this.contentWindow&&this.contentWindow.document){this.contentWindow.document.body=null}}catch(e){}})}this.element.remove();this.mask.remove()},loading:function(isFetching){this.win.loading(isFetching)}});$.shortcut("window",FR.Window);FR.Dialog=FR.extend(FR.Window,{});$.shortcut("dialog",FR.Dialog)})(jQuery);
(function(a){FR.QuickList=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.QuickList.superclass._defaultConfig.apply(this,arguments),{baseCls:"fr-core-list",width:200,height:400,itemHeight:24,items:[],listItems:[],itemCanBeSelect:false,tools:null,index:0,alwaysShowTools:true,onItemToolClick:null,onItemSelect:null,async:null,dataFilter:null,valueField:"value",showField:"text",onBeforeItemCreate:null,scrollLoading:false,max:200,showToolCondition:function(b){return true}})},_init:function(){FR.QuickList.superclass._init.apply(this,arguments);
var c=this.options;var b=this;this.element.css({width:c.width,height:c.height}).scroll(function(){b._onScroll(this)});if(c.async){this._addItemsByAjax()}else{this._addItemsByDefault()}},_addItemsByAjax:function(){var d=this.options,b=this;var c=d.async;var e=a('<div class="fr-core-panel-loading"></div>').css({width:100,height:30}).html(FR.i18nText("Fine-Engine_Platform_Loading")+"...");this.element.append(e);FR.ajax({url:c.url,data:c.data,type:c.type?c.type:"POST",complete:function(h,f){if(f=="success"){e.remove();
var g=FR.jsonDecode(h.responseText);if(a.isArray(g)){d.items=g;if(!d.index){d.index=0}if(d.index<d.items.length&&d.items.length>d.max){d.need2Scroll=true}b._addItemsByDefault()}FR.applyFunc(b,d.onAsyncSuccess,[g],false)}}})},_onScroll:function(b){var c=this.options;if(!c.scrollLoading){return}if(c.need2Scroll&&a(b).scrollTop()+a(b).height()>=b.scrollHeight){if(c.isLoadingData){return}c.isLoadingData=true;this._addItemsByDefault();c.isLoadingData=false}},_addItemsByDefault:function(){var d=this.options;
if(!d.scrollLoading){d.max=d.items.length}if(d.items&&d.items.length>0){for(var b=d.index;b<d.index+d.max;b++){if(b>=d.items.length){d.need2Scroll=false;d.index=d.items.length;return false}var c=FR.applyFunc(this,d.dataFilter,[d.items[b]],d.items[b]);this.addItem(c)}d.index=d.index+d.max}},addItem:function(c,f){var b=this;var e=this.options;a.extend(c,{height:e.itemHeight,tools:e.tools,alwaysShowTools:e.alwaysShowTools,onItemToolClick:e.onItemToolClick,beforeSelect:e.beforeSelect,itemCanBeSelect:e.itemCanBeSelect,onCustomItemSelect:e.onCustomItemSelect,showToolCondition:e.showToolCondition,tooltype:e.tooltype,toolUnEditAble:e.toolUnEditAble,paddingRight:e.paddingRight,toolMargin:e.toolMargin,valueField:e.valueField,showField:e.showField,paddingLeft:e.paddingLeft,onBeforeItemCreate:e.onBeforeItemCreate,toolPadding:e.toolPadding,toolAlign:e.toolAlign,onItemSelect:function(){for(var g=0;
g<e.listItems.length;g++){var h=e.listItems[g];if(h!=this){h.doUnselect()}else{b.selectedIndex=g;if(a.isFunction(e.onItemSelect)){e.onItemSelect.apply(h)}}}},onToolClick:function(){for(var g=0;g<e.listItems.length;g++){var h=e.listItems[g];if(h===this){return g}}}});var d=new FR.ListItem(c);if(f){e.listItems.unshift(d);this.element.prepend(d.element)}else{e.listItems.push(d);this.element.append(d.element)}},refresh:function(b){var c=this.options;this.clear();if(b&&b.async){c.async=b.async;this._addItemsByAjax()
}else{if(c.async){this._addItemsByAjax()}}},clear:function(){this.element.empty();this.options.items=[];this.options.listItems=[];this.options.index=0;this.options.need2Scroll=false},remove:function(b){var c=this.options.listItems[b];this.options.listItems.removeWeakEqual(c);a(this.element.children()[b]).remove()},showToolByIndex:function(b){this.element.find("div[toolid="+b+"]").show();this.options.tools[b].invisible=false},hideToolByIndex:function(b){this.element.find("div[toolid="+b+"]").hide();
this.options.tools[b].invisible=true},getValueAtIndex:function(b){return this.options.listItems[b].getValue()},getTextAtIndex:function(b){return this.options.listItems[b].getText()},setTextAtIndex:function(b,c){return this.options.listItems[b].setText(c)},getValue:function(){if(this.options.tooltype==="check"){var b=[];for(var c=0;c<this.options.listItems.length;c++){b.push(this.options.listItems[c].getValue())}return b}if(!this.options.listItems[this.selectedIndex]){return null}return this.options.listItems[this.selectedIndex].getValue()
},getText:function(){if(this.options.tooltype==="check"){var b=[];for(var c=0;c<this.options.listItems.length;c++){b.push(this.options.listItems[c].getText())}return b}if(!this.options.listItems[this.selectedIndex]){return null}return this.options.listItems[this.selectedIndex].getText()},getAllItemText:function(){var b=[];for(var c=0;c<this.options.listItems.length;c++){b.push(this.options.listItems[c].getText())}return b},getItemLength:function(){return this.options.listItems.length},selectItemByIndex:function(b,c){this.options.listItems[b].doSelect(0,c);
this.selectedIndex=b;this.scrollToIndex(b)},getSelectedIndex:function(){return this.selectedIndex},removeSelect:function(){if(this.selectedIndex>=0){this.options.listItems[this.selectedIndex].doUnselect(0)}},clearState:function(){if(this.options.tooltype==="check"){var b=this.options.listItems;for(var c=0;c<b.length;c++){for(var d=0;d<this.options.tools.length;d++){b[c].doUnselect(d)}}}},setValue:function(c){for(var b=0;b<this.options.listItems.length;b++){var d=this.options.listItems[b];if(d.getValue()===c){d.doSelect();
this.selectedIndex=b;this.scrollToIndex(b)}else{d.doUnselect()}}},scrollToIndex:function(b){var d=this.element.height();var c=this.options.itemHeight*(b+1)-d;if(c>0){this.element.scrollTop(c)}else{this.element.scrollTop(0)}},setSelectedText:function(b){this.options.listItems[this.selectedIndex].setText(b)},getItemById:function(d){var c=this.options.listItems;for(var b=0;b<c.length;b++){if(c[b].options.id===d){return c[b]}}},selectByData:function(e){var c=this.options.listItems;for(var d=0;d<e.length;
d++){for(var b=0;b<c.length;b++){if(c[b].options.id===e[d].id){for(var f=0;f<this.options.tools.length;f++){if(e[d][this.options.tools[f].name]&&e[d][this.options.tools[f].name]!==0){c[b].doSelect(f)}}}}}},selectByText:function(e){var c=this.options.listItems;for(var d=0;d<e.length;d++){for(var b=0;b<c.length;b++){if(c[b].options.text===e[d].text){for(var f=0;f<this.options.tools.length;f++){if(e[d][this.options.tools[f].name]&&e[d][this.options.tools[f].name]!==0){c[b].doSelect(f)}}}}}},hasNodeSelect:function(d){var c=this.options.listItems;
for(var b=0;b<c.length;b++){var e=c[b];if(e.options[e.toolName[d]]===1){return true}}return false},selectAll:function(d){var c=this.options.listItems;for(var b=0;b<c.length;b++){c[b].onToolDivClick(c[b].toolDivs[d],new a.Event(),true)}},deSelectAll:function(d){var c=this.options.listItems;for(var b=0;b<c.length;b++){c[b].onToolDivClick(c[b].toolDivs[d],new a.Event(),false)}}});a.shortcut("quicklist",FR.QuickList);FR.ListItem=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.ListItem.superclass._defaultConfig.apply(this,arguments),{baseCls:"fr-core-list-item",paddingLeft:12,paddingRight:1,showField:"text",valueField:"value",onItemSelect:null,onBeforeItemCreate:null,toolAlign:"right"})
},_init:function(){FR.ListItem.superclass._init.apply(this,arguments);var b=this.options,l=this;FR.applyFunc(this,b.onBeforeItemCreate,[this.element,b],false);var c=b[b.showField];this.$text=a("<span/>").text(c).css({height:b.height,lineHeight:b.height+"px","padding-left":b.paddingLeft}).attr("title",c).appendTo(this.element);this.toolDivs=[];this.toolName=[];if(b.tools&&b.tools.length>0){if(b.toolAlign==="right"){b.toolPadding=b.toolPadding||b.paddingRight}var k=b.paddingRight;for(var d=0,g=b.tools.length;
d<g;d++){var f=b.tools[d];this.toolName.push(f.name);var h=a("<div>").data("tool",f).data("index",d).css({position:"absolute",top:0,width:f.width||b.height,height:b.height,lineHeight:b.height+"px"}).appendTo(this.element);if(b.toolAlign==="right"){h.css("right",k)}else{if(b.toolAlign==="left"){h.css("padding-left",b.toolPadding)}}if(b.toolMargin){h.css("margin-right",b.toolMargin);k+=b.toolMargin}if(!b.alwaysShowTools){h.hide();var j=function(){if(a.isFunction(b.showToolCondition)&&b.showToolCondition(l)){a(this).show()
}}.createDelegate(h);var e=function(){a(this).hide()}.createDelegate(h);this.element.hover(j,e)}if(b.tooltype==="check"){h.addClass("fs_tool_checkoff");if(b.toolUnEditAble){h.addClass("fs_tool_disabled")}if(b[f.name]===1){h.addClass("fs_tool_checkon")}h.click(function(i){l.onToolDivClick(this,i)})}if(f.iconCls){h.addClass(f.iconCls);h.mousedown(function(){a(this).addClass(a(this).data("tool").iconCls4Click)}).mouseleave(function(){a(this).removeClass(a(this).data("tool").iconCls4Click)}).mouseup(function(m){a(this).removeClass(a(this).data("tool").iconCls4Click);
if(a.isFunction(b.onToolClick)){var i=b.onToolClick.call(l)}if(a.isFunction(b.onItemToolClick)){b.onItemToolClick.call(this,a(this).data("index"),i,m)}m.stopEvent()});if(f.iconCls4Hover){h.hover(function(){a(this).addClass(a(this).data("tool").iconCls4Hover)},function(){a(this).removeClass(a(this).data("tool").iconCls4Hover)})}}h.attr("toolid",d);if(this.options.tools[d].invisible){h.hide()}k+=(f.width||b.height);this.toolDivs.push(h)}}this.element.hover(function(){a(this).addClass("fr-core-list-item-hover")
},function(){a(this).removeClass("fr-core-list-item-hover")});if(b.itemCanBeSelect){this.element.bind("mouseup",function(){l.doSelect();if(a.isFunction(b.onItemSelect)){b.onItemSelect.apply(l)}if(a.isFunction(b.onCustomItemSelect)){b.onCustomItemSelect.apply(l)}})}},onToolDivClick:function(g,j,c){var h=this.options;if(h.toolUnEditAble){return}var i=a(g).data("index");var f=!a(g).hasClass("fs_tool_checkon");if(c===true||c===false){f=c}if(a.isFunction(h.onToolClick)){var d=h.onToolClick.call(this)}if(a.isFunction(h.beforeSelect)){var b=h.beforeSelect.call(g,i,d,f,j);
if(b==="wait"){return}}if(!f){this.doUnselect(i)}else{this.doSelect(i)}if(a.isFunction(h.onItemToolClick)){h.onItemToolClick.call(g,i,d,f,j)}},getText:function(){return this.options[this.options.showField]},getValue:function(){var e=this.options;if(e.tooltype==="check"){var b={id:e.id,value:e[e.valueField]};for(var c=0;c<this.options.tools.length;c++){var d=this.options.tools[c].name;b[d]=this.options[d]}return b}return e[e.valueField]},doSelect:function(b,d){this.element.addClass("fr-core-list-item-selected");
if(this.options.tooltype==="check"){this.options[this.toolName[b]]=1;this.toolDivs[b].addClass("fs_tool_checkon")}if(d===true){var c=this.options;if(a.isFunction(c.onItemSelect)){c.onItemSelect.apply(this)}if(a.isFunction(c.onCustomItemSelect)){c.onCustomItemSelect.apply(this)}}},doUnselect:function(c){var b=this;if(this.options.tooltype==="check"){this.options[this.toolName[c]]=0;this.toolDivs[c].removeClass("fs_tool_checkon")}var d=0;a.each(this.toolName,function(e,f){d|=b.options[f]});if(!d){this.element.removeClass("fr-core-list-item-selected")
}},setText:function(c){var b=this.options;b[b.showField]=c;this.$text.text(c).attr("title",c)}})})(jQuery);
(function(a){FR.QuickButton=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.QuickButton.superclass._defaultConfig.apply(this,arguments),{baseCls:"fr-core-btn",alignment:"center",text:null,icon:null,iconPath:null,width:80,height:28,iconWidth:24,iconHeight:16,style:null})},_init:function(){FR.QuickButton.superclass._init.apply(this,arguments);var d=this.options;var c=this;var e="gray";a.each(["gray","green","blue","white"],function(f,g){if(d.style&&g==d.style.toLowerCase()){e=d.style.toLowerCase()
}});var b="fr-core-btn-hover"+"-"+e;this.element.addClass("fr-core-btn-style-"+e);this.$inner=a("<div class='fr-core-btn-inner'></div>").appendTo(this.element);this.$text=a("<span class='fr-core-btn-text' onselectstart='return false'></span>").appendTo(this.$inner);this._initTextFont();this.$text.css({textAlign:d.alignment});if(d.text){this.$text.text(d.text)}d.iconWidth=(d.icon||d.iconPath)?d.iconWidth:0;if(d.iconWidth>0){this.$icon=a("<span class='fr-core-btn-icon'></span>").css({position:"absolute",width:d.iconWidth,height:d.iconHeight,top:0,left:0}).appendTo(this.$inner);
if(d.icon){if(d.icon.indexOf("css:")!=-1){d.icon=d.icon.substring(4)}this.$icon.addClass(d.icon)}else{if(d.iconPath){this.$icon.css({background:"url('"+d.iconPath+"') no-repeat center"})}}}this.$text.css({left:d.iconWidth});this.doResize({width:d.width,height:d.height});if(a.isFunction(d.handler)){this.on(FR.Events.CLICK,d.handler.createDelegate(d.scope||this))}this.element.hover(function(){a(this).addClass(b)},function(){a(this).removeClass(b)});this.$inner.click(function(f){c.fireEvent(FR.Events.CLICK,f)
})},_initTextFont:function(){var b=this.options;if(b.color){this.$text.css("color",b.color)}if(b.decoration){this.$text.css("text-decoration",b.decoration)}if(b.fontsize){this.$text.css("fontSize",b.fontsize)}if(b.fontweight){this.$text.css("fontWeight",b.fontweight)}if(b.fontstyle){this.$text.css("fontStyle",b.fontstyle)}if(b.fontfamily){this.$text.css("fontFamily",b.fontfamily)}},setValue:function(b){if(!FR.isEmpty(b)){this.$text.text(b)}},getValue:function(){return this.$text.text()},setText:function(b){this.setValue(b)
},getText:function(){return this.getValue()},doResize:function(g){var d=this.options;if(g){if(g.width){d.width=g.width}if(g.height){d.height=g.height}if(g.left!=null){d.left=g.left}if(g.top!=null){d.top=g.top}}if(d.left||d.top){this.element.css({position:"absolute",left:d.left,top:d.top})}if(!isNaN(d.width)){var c=d.width;var f=0;if(a.support.boxModel===true){f=(this.element.outerWidth()-this.element.width())}if(!g.hasIgnoredBounds){c=c-f}this.element.css({width:c});this.$inner.css({width:c});this.$text.css({width:c-d.iconWidth})
}if(!isNaN(d.height)){var b=d.height;var e=0;if(a.support.boxModel===true){e=this.element.outerHeight()-this.element.height();this.$icon&&this.$icon.css({height:d.iconHeight,top:(this.element.outerHeight()-this.$icon.outerHeight())/2-e})}else{this.$icon&&this.$icon.css({height:d.iconHeight,top:(d.height-d.iconHeight)/2})}if(!g.hasIgnoredBounds){b=b-e}this.element.css({height:b});this.$text.css("line-height",b+"px");this.$text.css("height",b);this.$inner.css("height",b);this.$text.css("display","block")
}},setEnable:function(b){var c=this.options;if(a.isFunction(c.handler)){if(!this.isEnabled()&&b===true){this.un(FR.Events.CLICK);this.on(FR.Events.CLICK,c.handler.createDelegate(c.scope||this))}else{if(b===false){this.un(FR.Events.CLICK)}}}FR.QuickButton.superclass.setEnable.apply(this,arguments)}});a.shortcut("quickbutton",FR.QuickButton)})(jQuery);
(function(a){FR.Grid=FR.extend(FR.Widget,{NAV:{FIRSTPAGE:"first",PREVPAGE:"prev",NEXTPAGE:"next",LASTPAGE:"last",JUMPPAGE:"jump"},_defaultConfig:function(){return a.extend(FR.Grid.superclass._defaultConfig.call(),{baseCls:"fr-grid",baseTableCls:null,baseContainerCls:null,tableId:null,marginLeft:10,marginRight:10,items:[],columnsConfig:[],pageCount:15,footAlign:"bottom",isFootShow:true,isHeadShow:true,multiSelect:false,intervalColor:false,isInitWithData:true,async:null,hasHoverCls:true,onPageTurn:null,onAsyncSuccess:null,onAsyncError:null,onBeforeRowCreate:null,onAfterRowCreate:null,onBeforeHeadCreate:null,onAfterHeadCreate:null,localeArray:[],frozen:null,background:null})
},_init:function(){FR.Grid.superclass._init.apply(this,arguments);var b=this.options;this.$container=a('<div class="fr-grid-table"/>');if(b.baseContainerCls){this.$container.addClass(b.baseContainerCls)}this.element.append(this.$container);this.activedPage=1;if(b.isInitWithData){this.refresh()}else{this._initWidth();this._initTable();this._onCreateHead();this._onCreateFoot();this.$table.appendTo(this.$container)}},_initTable:function(){this.$table=a('<table cellPadding="0" cellSpacing="0" class="fr-grid-table-inner"/>');
if(this.options.tableId){this.$table.attr("id",this.options.tableId)}if(this.options.baseTableCls){this.$table.addClass(this.options.baseTableCls)}},refresh:function(b){},reBuild:function(){var b=this;this._clear();this._initTable();this._initWidth();this._onCreateHead();this._onCreateTable();this._onCreateFoot();this._bindEvts();this.$container.append(this.$table);setTimeout(function(){b._dealWithFrozen()},500)},_clear:function(){if(this.options.multiSelect){this.allBoxes=[]}if(this.$table){this.$table.remove();
this.$table=null}if(this.options.frozen){var b=a(".fr-clone",this.element);if(b.length>0){a.each(b,function(c,d){d.remove()})}}},_dealWithFrozen:function(){var b=this.options.frozen;if(b){this.$container.addClass("table-frozen");b=a.extend({"head":0,"foot":0,"left":0},b);FR.DomTool.frozenTable(this.$table,b.head,b.foot,b.left,{"wrapCls":["fr-grid-table-inner"]})}},_initWidth:function(){var d=0,e=this.options;for(var c=0,b=e.columnsConfig.length;c<b;c++){d+=e.columnsConfig[c].width}if(e.multiSelect){d+=25
}d+=e.marginLeft;d+=e.marginRight;e.width=d;this.element.width(d)},_onCreateHead:function(){var b=this.options,i=this;var d=b.isHeadShow;this.$head=a("<thead/>");var e=a("<tr/>").appendTo(this.$head);if(b.background&&b.background.thb){e.css("background",b.background.thb)}FR.applyFunc(this,b.onBeforeHeadCreate,[e],false);a("<td/>").append(a("<div/>").width(b.marginLeft)).appendTo(e);if(b.multiSelect){this.$AllCheck=new FR.CheckBox({width:25,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(!i.allBoxes){return
}var l=this.isSelected();for(var m=0,k=i.allBoxes.length;m<k;m++){var n=i.allBoxes[m];n.setValue(l)}}}]});a("<td/>").append(this.$AllCheck.element).appendTo(e)}for(var c=0,f=b.columnsConfig.length;c<f;c++){var h=b.columnsConfig[c];var g=a("<td/>").width(this._calculateWidth(h));var j=FR.applyFunc(this,h.onHeadCellCreate,[c,h],false);if(j===false){g.css("text-align",h.textAlign?h.textAlign:"left").text(h.value?h.value:h.key)}else{g.append(j)}g.appendTo(e)}a("<td/>").append(a("<div/>").width(b.marginRight)).appendTo(e);
FR.applyFunc(this,b.onAfterHeadCreate,[e],false);if(d){this.$table.append(this.$head)}},_calculateWidth:function(b){if(b){if(b.width>0&&b.width<1){return b.width*this.element.width()}else{return b.width}}return 0},_onCreateTable:function(){this.$tbody=a("<tbody/>");var f=this.options;var d=f.items;if(f.page&&f.autoPage){this.totalpages=Math.ceil(f.items.length/f.pageCount);d=f.items.slice(f.pageCount*(this.activedPage-1),f.pageCount*this.activedPage)}for(var e=0,c=d.length;e<c;e++){var b=this.onCreateRow(e,d[e]);
this.$tbody.append(b)}this.$table.append(this.$tbody)},_onCreateFoot:function(){var m=this,d=this.options,c=this.NAV;if(!d.page){return}if(this.$foot){this.$foot.remove();this.$foot=null}this.$foot=a('<div class="fr-grid-foot"/>').css({"margin-left":d.width-240-d.marginRight});var k=new FR.IconButton({imgsrc:"fr-grid-foot-first",width:24,height:24,handler:function(){h();m.activedPage=1;if(!FR.applyFunc(m,d.onPageTurn,[m.activedPage,d.pageCount,c["FIRSTPAGE"]],false)){m.reBuild()}}});var e=new FR.IconButton({imgsrc:"fr-grid-foot-prev",width:24,height:24,handler:function(){h();
m.activedPage--;if(!FR.applyFunc(m,d.onPageTurn,[m.activedPage,d.pageCount,c["PREVPAGE"]],false)){m.reBuild()}}});var g=new FR.IconButton({imgsrc:"fr-grid-foot-next",width:24,height:24,handler:function(){h();m.activedPage++;if(!FR.applyFunc(m,d.onPageTurn,[m.activedPage,d.pageCount,c["NEXTPAGE"]],false)){m.reBuild()}}});var j=new FR.IconButton({imgsrc:"fr-grid-foot-last",width:24,height:24,handler:function(){h();m.activedPage=m.totalpages;if(!FR.applyFunc(m,d.onPageTurn,[m.activedPage,d.pageCount,c["LASTPAGE"]],false)){m.reBuild()
}}});var f=a('<input class="fr-grid-foot-loader" type="text"/>').val(this.activedPage).keydown(function(n){if(n.keyCode===13){h();m.activedPage=a(this).val();if(!FR.applyFunc(m,d.onPageTurn,[m.activedPage,d.pageCount,c["JUMPPAGE"]],false)){m.reBuild()}n.stopEvent()}});var i=this.totalpages?this.totalpages:1;if(this.activedPage>=i){j.setEnable(false);g.setEnable(false)}if(this.activedPage<=1){e.setEnable(false);k.setEnable(false)}var b=a('<div class="fr-grid-foot-page"/>').text(" /"+i+" "+FR.i18nText("Fine-Engine_Basic_Page_Number"));
var l=a("<table/>").attr({id:"fr-grid-foot-table",cellPadding:0,cellSpacing:0});a("<tr/>").append(a("<td/>").append(k.element)).append(a("<td>").append(e.element)).append(a("<td/>").addClass("fr-grid-foot-pageshow").append(f).append(b)).append(a("<td/>").append(g.element)).append(a("<td/>").append(j.element)).appendTo(l);this.$foot.append(l);if(d.footAlign=="top"){this.$foot.prependTo(this.element)}else{this.$foot.appendTo(this.element)}var h=function(){k.setEnable(false);e.setEnable(false);j.setEnable(false);
g.setEnable(false)}},_bindEvts:function(){var b=this,d=this.options;var c=function(g){var h=g.target;var f=g.type;var e=b._getTargetDom(h,"TR");if(!e){return}if(f==="mousedown"){FR.applyFunc(b,d.onRowMouseDown,[e],false)}else{if(f==="mouseover"){d.hasHoverCls&&e.addClass("hover");FR.applyFunc(b,d.onRowMouseOver,[e],false)}else{if(f==="mouseout"){e.removeClass("hover");FR.applyFunc(b,d.onRowMouseOut,[e],false)}else{if(f==="mouseup"){FR.applyFunc(b,d.onRowClick,[e],false)}}}}};this.element.bind("mousedown",c).bind("mouseover",c).bind("mouseup",c).bind("mouseout",c)
},_getTargetDom:function(b,c){while(b&&b.tagName){if(b.tagName.toUpperCase()!==c.toUpperCase()){b=b.parentNode}else{return a(b)}}return null},onCreateRow:function(c,j){var e=this.options,k=this;var h=a("<tr/>");FR.applyFunc(this,e.onBeforeRowCreate,[h,c,j],false);a("<td/>").width(e.marginLeft).appendTo(h);if(e.multiSelect){var b=new FR.CheckBox({width:25,gridRowData:j,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(!k.$AllCheck){return}if(this.isSelected()){var m=true;for(var n=0,l=k.allBoxes.length;
n<l;n++){var o=k.allBoxes[n];if(!o.isSelected()){m=false;break}}k.$AllCheck.setValue(m)}else{k.$AllCheck.setValue(false)}}}]});this.allBoxes.push(b);a("<td/>").append(b.element).appendTo(h)}for(var f=0,g=e.columnsConfig.length;f<g;f++){var d=e.columnsConfig[f];var i=this.onCellCreate(c,f,j,d);i.appendTo(h)}if(e.intervalColor&&c%2===0){h.addClass("even")}a("<td/>").width(e.marginRight).appendTo(h);FR.applyFunc(this,e.onAfterRowCreate,[h,c,j,b],false);return h},onCellCreate:function(e,i,d,b){var h=a("<td/>"),c=this;
var f=FR.applyFunc(this,b.onCellCreate,[e,i,d,b],false);if(f===false){if(!FR.isEmpty(b.value)){var g=a.inArray(b.key,c.options.localeArray)==-1?d[b.key]:FR.i18nText(d[b.key]);f=a('<div class="cell"/>').width(c._calculateWidth(b)).text(g).attr("title",g).appendTo(h)}}else{h.append(f)}h.click(function(){FR.applyFunc(c,b.onCellClick,[e,i,d,b,f],false)});FR.applyStyles(f,b.css);return h},getValue:function(){return this.options.items},addRowData:function(d){var c=this,e=this.options;if(e.async){}else{var b=this.onCreateRow(this.options.items.length,d);
this.options.items.push(d);b.appendTo(this.$tbody)}},getSelectedData:function(){var c=[];if(this.allBoxes){for(var d=0,b=this.allBoxes.length;d<b;d++){var e=this.allBoxes[d];if(e.isSelected()){c.push(e.options.gridRowData)}}}return c}})}(jQuery));
(function(a){FR.QuickGrid=FR.extend(FR.Grid,{_defaultConfig:function(){return a.extend(FR.QuickGrid.superclass._defaultConfig.call(),{page:false,autoPage:true})},refresh:function(c){var b=this,d=this.options;if(a.isArray(c)){this.options.items=c;this.reBuild()}else{if(d.async){FR.ajax({url:d.async.url,type:d.async.type?d.async.type:"POST",data:d.async.data,success:function(f,e){FR.applyFunc(b,d.onAsyncSuccess,[f,e,c]);b.reBuild()},error:function(f,e){FR.applyFunc(b,d.onAsyncError,[f,e,c])}})}else{this.reBuild()
}}}});a.shortcut("quickgrid",FR.QuickGrid)}(jQuery));
(function(a){FR.AsygnGrid=FR.extend(FR.Grid,{_defaultConfig:function(){return a.extend(FR.AsygnGrid.superclass._defaultConfig.call(),{page:true,autoPage:false})},refresh:function(){var b=this,c=this.options;if(c.async){b.activedPage=1;b.reBuild()}},reBuild:function(){var b=this,d=this.options;var c=a.extend({pn:b.activedPage,pageCount:d.pageCount},d.async.data);FR.ajax({url:d.async.url,type:d.async.type?d.async.type:"POST",data:c,success:function(g,f){FR.applyFunc(b,d.onAsyncSuccess,[g,f]);var e=FR.jsonDecode(g);
d.items=e.items;b.totalpages=e.totalpages;b._reBuildGrid()},error:function(f,e){FR.applyFunc(b,d.onAsyncError,[f,e])}})},_reBuildGrid:function(){FR.AsygnGrid.superclass.reBuild.apply(this)}});a.shortcut("asygngrid",FR.AsygnGrid)}(jQuery));
FR.Core=FR.Core||{};FR.Core.Plugin=FR.Core.Plugin||{};FR.Core.Plugin.Tree=FR.Core.Plugin.Tree||{};FR.Core.Plugin.Background=FR.Core.Plugin.Background||{};FR.Core.Plugin.LabelBackground=FR.Core.Plugin.LabelBackground||{};FR.Core.Plugin.ProcessNeedOffCpt=FR.Core.Plugin.ProcessNeedOffCpt||{};FR.Core.Plugin.Event=FR.Core.Plugin.Event||{};FR.Core.Plugin.ExtraWidgetConfig=FR.Core.Plugin.ExtraWidgetConfig||{};
(function(a){FR.progressBar=function(g,e){var d=this;function b(i){var h;FR.ajax({type:"POST",url:FR.servletURL,cache:false,data:{op:"export",cmd:"export_polling",sessionID:i,type:e,data:new Date().getTime()},async:false,success:function(k,j){var l=FR.jsonDecode(k);if(l.isExporting){d.createProgressBar()}else{d.removeProgressBar();h=true}}});return h}var f=function(){if(!b(g)){return}clearInterval(c)};var c=setInterval(f,5000)}}(jQuery));
/**
 * Created by richie on 15/11/11.
 */
;(function($){
    FR.layoutFrozen = function ($container, pageTop, $content_container, isFit) {
        var $center = $('.frozen-center', $container);
        var $corner = $('.frozen-corner', $container);
        var $north = $('.frozen-north', $container);
        var $west = $('.frozen-west', $container);

        if ($center.length > 0 || $corner.length > 0 || $north.length > 0 || $west.length > 0) {

            if ($content_container != undefined) {
                $content_container.css({
                    overflow: 'hidden',
                    overflowX: 'hidden',
                    overflowY: 'hidden'
                });
            }
            var northHeight = 0;
            $('tr', $north).each(function () {
                northHeight += $(this).height();
            });
            var cornerHeight = 0;
            $('tr', $corner).each(function () {
                cornerHeight += $(this).height();
            });
            var calculateDivHeight = function () {
                //引用传递, 不要改变pageTop
                var top = pageTop;

                var pageHeight = FR.windowHeight - Math.max(northHeight, cornerHeight);

                var tabPane = contentPane.$contentPane.data('TabPane');
                if (tabPane) {
                    top += tabPane.options.tabHeight;
                }

                if (FR.hasBottomToolbar) {
                    top += FR.toolbarHeight;
                }

                if (FR.parameterContainerHeight > 0) {
                    var parameterPane = $('.parameter-container');
                    var visibility = parameterPane.isVisible();
                    var parameterHeight = FR.parameterContainerHeight;
                    if (equals(top, parameterHeight)) {
                        //啥也不用干，top 有时候会有细微的误差
                    } else if (visibility && top < parameterHeight) {
                        top += parameterHeight;
                    } else if (!visibility && top > parameterHeight) {
                        top -= parameterHeight;
                    }
                }

                pageHeight -= top;

                return pageHeight;
            };

            var equals = function (num, otherNum) {
                return Math.abs(num - otherNum) <= 1e-1;
            };

            var setFrozenDiv = function () {
                var pageWidth;
                var pageHeight = calculateDivHeight();

                var $contentDIV = $(".pageContentDIV", this.$contentPane);
                var isPageCenter = $contentDIV.hasClass("contentDIV");
                var isFrozen = false;
                if ($('.frozen-table', $container).length > 0) {
                    isFrozen = true;
                }
                if (isPageCenter) {//分页居中的处理方式
                    var left = parseInt($(".report-background").css('left'));
                    if (FR.Browser.isIE8Before()){
                        left = parseInt($("div.frozen-page", $contentDIV).closest('#fr-page-content').css('left'));
                    }
                    // ie读出来的left可能是auto left就是NaN
                    left = isNaN(left) ? 0 : left;
                    var contentdivWidth = $contentDIV.width();
                    var frozenWidth = Math.min($('.content-container').width(), contentdivWidth) - left;
                    $(".frozen-page").css('width', frozenWidth);
                    pageWidth = frozenWidth;
                    if (pageWidth == contentdivWidth) {
                        //当页面设置超出一个屏幕时, 就不需要减了, 因为取得是frozenpage的
                        pageWidth -= left;//左右边距
                    }
                    var top = parseInt($(".report-background").css('top'));
                    if (FR.Browser.isIE8Before()){
                        top = parseInt($("div.frozen-page", $contentDIV).closest('#fr-page-content').css('top'));
                    }
                    top = isNaN(top) ? 0 : top;
                    pageHeight -= (top + 24);//上下边距
                    // north center 的宽度应该是frozen-page的宽度减去corner的宽度
                    pageWidth -= $corner[0].offsetWidth === 0 ? parseValue($corner.css("width")) : $corner[0].offsetWidth;
                } else {
                    var westWidth = 0;
                    var xtable = $('table.x-table', $west);
                    if (xtable.length > 0) {
                        westWidth = parseInt(xtable[0].style.width || 0);
                        if (westWidth > 0) {
                            westWidth += 1;
                        }
                    }
                    if (!westWidth || westWidth === 0) {
                        westWidth = $west[0].offsetWidth === 0 ? parseValue($west.css("width")) : $west[0].offsetWidth;
                    }
                    if (isFrozen) {//非分页居中的冻结:分页居左，填报居左，填报居中，数据分析居左
                        pageWidth = FR.windowWidth
                            - parseInt($container[0].style['margin-left'] || 0)
                            - parseInt($container[0].style['left'] || 0)
                            - westWidth;
                        pageHeight -= parseInt($container[0].style['top'] || 0);
                    } else {
                        pageWidth = FR.windowWidth - westWidth;
                    }

                    pageHeight -= $(".HF-footer").height();
                    pageHeight -= $(".HF-header").height();
                }

                //IE下为负值可能会报参数错误
                if (pageWidth < 0) {
                    pageWidth = 0;
                }
                if (pageHeight < 0) {
                    pageHeight = 0;
                }

                if ($center.length > 0) {
                    //防止无非冻结内容时，没有滚动条用来滑动浏览冻结列区域 （ps:冻结行滑动的情况，后台对$center table 加上width属性就相当于处理了）
                    // 如果用jq 选择器， $('td:first', $center)如，如果td 数量超过125000 个左右，就会抛出 Uncaught RangeError : Maximum call stack size exceeded 异常
                    if (hasCell($('table', $west)) && !hasCell($('table', $center))) {
                        $('table', $center).first().css("height", $west.height());
                    }
                    $center[0].style.width = pageWidth + 'px';
                    $center[0].style.height = pageHeight + 'px';
                }
                if ($north.length > 0) {
                    $north[0].style.width = pageWidth + 'px';
                }
                if ($west.length > 0) {
                    $west[0].style.height = pageHeight + 'px';
                }

                // 火狐浏览器 north高度比较小的时候 不设置高度的话外框会比内部高
//                if ($.browser.mozilla) {
//                    $north.height($north.children().height());
//                }

            };

            var hasCell = function (table) {
                if (table && table.length > 0 && table[0].rows.length > 0) {
                    return table[0].rows[0].cells.length > 0 ? true : false;
                }
                return false;
            };

            var parseValue = function (value) {
                if (value.indexOf("%") !== -1) {
                    return 0;
                }
                return parseFloat(value);
            };

            var checkViewMultiSheet = function () {
                if ($west.width() === 0 && northHeight === 0) {
                    //view下切换多sheet时, 会造成container变化, 导致$west,$north需要重新获取成当前lgp的
                    $container = $('.sheet-container');
                    var len = $('.frozen-center', $container).length;
                    for (var i = 0; i < len; i++) {
                        var tempWest = $($('.frozen-west', $container)[i]);
                        var tempNorth = $($('.frozen-north', $container)[i]);
                        if (tempWest.width() !== 0 && tempNorth.height() !== 0) {
                            $west = tempWest;
                            $north = tempNorth;
                            $center = $($('.frozen-center', $container)[i]);
                            $corner = $($('.frozen-corner', $container)[i]);
                            break;
                        }
                    }
                }
            };

            setFrozenDiv();
            // alex:$center_block滚动的时,north & west也要跟着滚
            var lastLeft = 0;
            var lastTop = 0;
            //$center和$west的scroll会相互影响使滚动变卡,所以$center滚动时暂时禁用$west的scroll事件
            var westScroll = function () {
                $center.scrollTop($west.scrollTop());
            }.createDelegate(this);

            //当ie下div的overflow-y为scroll时，无论overflow-x如何设置，下层的table或iframe过宽时，都能通过鼠标进行左右滚动，
            //只好在ie下添加上center随north滚动的事件了。
            var northScroll = FR.Browser.isIE() ? function () {
                $center.scrollLeft($north.scrollLeft());
            }.createDelegate(this) : null;
            var northScrollTimerId = null;
            var westScrollTimerId = null;
            var pointerEventsTimeId = null;
            $center.scroll(function () {
                if (FR.Browser.isFirefox()) {
                    $center.css("pointer-events", "none");
                }
                var left = $center.scrollLeft();
                var top = $center.scrollTop();
                if (left != lastLeft) {
                    if (northScroll) {
                        $north.off('scroll', northScroll);
                    }
                    $north.scrollLeft(left);
                    if (northScroll) {
                        if (northScrollTimerId) {
                            clearTimeout(northScrollTimerId);
                        }
                        northScrollTimerId = setTimeout(function () {
                            $north.on('scroll', northScroll);
                            northScrollTimerId = null;
                        }, 100);
                    }
                    lastLeft = left;
                }
                if (top != lastTop) {
                    $west.off('scroll', westScroll);
                    $west.scrollTop(top);
                    if (westScrollTimerId) {
                        clearTimeout(westScrollTimerId);
                    }
                    westScrollTimerId = setTimeout(function () {
                        $west.on('scroll', westScroll);
                        westScrollTimerId = null;
                    }, 100);
                    lastTop = top;
                }
                if (FR.Browser.isFirefox()) {
                    if (pointerEventsTimeId) {
                        clearTimeout(pointerEventsTimeId);
                    }
                    pointerEventsTimeId = setTimeout(function () {
                        $center.css("pointer-events", "auto");
                        pointerEventsTimeId = null;
                    }, 100);
                }
            }.createDelegate(this));

            //zack:页面搜索的时候会使得左边滚起来的，这样的话中间也要跟着滚bug:70678
            $west.on('scroll', westScroll);

            if (northScroll) {
                $north.on('scroll', northScroll);
            }

            window.onresize = function () {
                if (self.resizeid != null) {
                    clearTimeout(self.resizeid);
                    self.resizeid = null;
                }
                self.resizeid = setTimeout(function () {
                    checkViewMultiSheet();
                    if (isFit === "true") {
                        return;
                    }
                    setFrozenDiv();
                }, 200);
            };
        }
    };
})(jQuery);
(function(a){a.fn.extend({__scroll2View__:function(b,e,d){var f=a(b)[0];return a.each(this,function(q,i){var h=a(i).offset();var j=a(f).offset();var m=h.left-j.left+f.scrollLeft,u=h.top-j.top+f.scrollTop,p=u+i.offsetHeight,g=m+i.offsetWidth;var c=f.clientHeight;var n=parseInt(f.scrollTop,10);var s=parseInt(f.scrollLeft,10);var k=n+c;var o=s+f.clientWidth;if(d!==false){if(i.offsetHeight>c||u<n){f.scrollTop=u}else{if(p>k){f.scrollTop=p-c}}}if(e!==false){if(i.offsetWidth>f.clientWidth||m<s){f.scrollLeft=m
}else{if(g>o){f.scrollLeft=g-f.clientWidth}}}})}})})(jQuery);
;
(function ($) {


    /**
     * 各种预览方式在浏览器中展示对象的基类
     * @abstract
     * @class FR.BasePane
     * @extends FR.Widget
     */
    FR.BasePane = FR.extend(FR.Widget, {
        type: "basepane",
        zoom: 1.0,

        _defaultConfig: function () {
            return $.extend(FR.BasePane.superclass._defaultConfig.apply(this, arguments), {
                loadTimeout: 3600000
            });
        },

        _init: function () {
            FR.BasePane.superclass._init.apply(this, arguments);
        },

        /**
         * 根据报表所在窗体的宽度和高度自适应的放大和缩小表内容
         */
        autoScale: function () {
            if (self !== top && this.$contentPane && this.options.autoScale) { // denny:
                // 说明是iframe集成
                var $contentDiv = $('.pageContentDIV', this.$contentPane);

                if ($contentDiv) {
                    // var bHeight = window.document.body.scrollHeight;
                    // var dHeight = window.document.documentElement.scrollHeight;
                    var height = $contentDiv.height();

                    // var bWidth = window.document.body.scrollWidth;
                    // var dWidth = window.document.documentElement.scrollWidth;
                    // var width = $contentDiv.width();

                    var iframe_height = FR.windowHeight;
                    // var iframe_width = FR.windowWidth;

                    this.scale(iframe_height / height);
                }
            }
        },

        /**
         * 缩放报表页面
         *
         *     @example
         *     contentPane.scale('+');//放大
         *     contentPane.scale(1.5);//縮放到150%
         *
         * @param {'+'/'-'/Number} 按照指定的参数进行缩放
         */
        scale: (function () {
            // ["25%", "50%", "75%", "100%", "120%", "150%", "200%"]
            var zooms = [0.25, 0.5, 0.75, 1.0, 1.2, 1.5, 2.0];

            return function (zoom) {
                if (zoom === '+') {
                    for (var j = 0, len = zooms.length; j < len; j++) {
                        if (zooms[j] > this.zoom) {
                            return this.scale(zooms[j]);
                        }
                    }
                    if (j === zooms.length) {
                        return this.scale(zooms[zooms.length - 1]);
                    }
                } else if (zoom === '-') {
                    for (var i = (zooms.length - 1); i >= 0; i--) {
                        if (zooms[i] < this.zoom) {
                            return this.scale(zooms[i]);
                        }
                    }
                    if (i < 0) {
                        return this.scale(zooms[0]);
                    }
                } else if (typeof zoom === 'number') {
                    if (this.$contentPane) {
                        var $contentDiv = $('.pageContentDIV', this.$contentPane);
                        if (FR.Browser.r.gecko) {
                            $contentDiv.css('-moz-transform', 'scale(' + zoom + ',' + zoom + ')');
                            $contentDiv.css('-moz-transform-origin', 'top left');
                        } else if (FR.Browser.r.webkit) {
                            $contentDiv.css('-webkit-transform', 'scale(' + zoom + ',' + zoom + ')');
                            $contentDiv.css('-webkit-transform-origin', 'top left');
                        } else if (FR.Browser.r.opera) {
                            $contentDiv.css('-o-transform', 'scale(' + zoom + ',' + zoom + ')');
                            $contentDiv.css('-o-transform-origin', 'top left');
                        } else {
                            $contentDiv.css('zoom', zoom);
                        }
                        this.zoom = zoom;

                        this.fireEvent("zoomchanged");
                    }
                } else {
                    return this.zoom;
                }
            };
        })(),


        /**
         * 整体缩放contentDiv
         * @param $contentDiv
         * @param zoom
         */
        zoomContent: function ($contentDiv, zoom) {
            if ($contentDiv) {
                if (FR.Browser.r.gecko) {
                    $contentDiv.css('-moz-transform', 'scale(' + zoom.x + ',' + zoom.y + ')');
                    $contentDiv.css('-moz-transform-origin', 'top left');
                } else if (FR.Browser.r.webkit) {
                    $contentDiv.css('-webkit-transform', 'scale(' + zoom.x + ',' + zoom.y + ')');
                    $contentDiv.css('-webkit-transform-origin', 'top left');
                } else if (FR.Browser.r.opera) {
                    $contentDiv.css('-o-transform', 'scale(' + zoom.x + ',' + zoom.y + ')');
                    $contentDiv.css('-o-transform-origin', 'top left');
                } else if (FR.Browser.isIE9Later()) {
                    $contentDiv.css('-ms-transform', 'scale(' + zoom.x + ',' + zoom.y + ')');
                    $contentDiv.css('-ms-transform-origin', 'top left');
                }
            }
        },


        extendPara: function (para) {
            var documentHeight = FR.windowHeight;
            var pageContentPane = this.$contentPane;
            if (documentHeight === 0) {
                return;
            }
            var toolBarHeight = FR.hasTopToolbar ? FR.toolbarHeight : 0;
            var extraHeight = 0;
            extraHeight += toolBarHeight;
            var tabPane = pageContentPane.data('TabPane');
            //直接取height，sougou高速模式还是有滚动条，额外加1px

            if (tabPane !== undefined) {
                extraHeight += tabPane.options.tabHeight;
            }
            extraHeight += FR.parameterContainerHeight;
            documentHeight -= extraHeight;
            $.extend(para, {
                __webpage__: true,
                _paperWidth: FR.windowWidth,
                _paperHeight: documentHeight,
                __fit__: this.__fit__
            });

            if (!pageContentPane.data("preWidth")) {
                pageContentPane.data("preWidth", pageContentPane.width());

            }
            if (!pageContentPane.data("preHeight")) {
                pageContentPane.data("preHeight", pageContentPane.height());
            }
        },

        /**
         * 根据配置文件加载ReportPane。
         * 如果有参数，就加载ParameterPane + ContentPane,如果没有参数则加载ContentPane
         * @param options 配置
         * @protected
         */
        loadReportPane: function (options) {
            FR.$defaultImport('/com/fr/web/core/js/paramtemplate.js', 'js');
            this.fireEvent(FR.Events.INIT);
            options = options || {};
            options.param = $.extend({
                showType: 1
            }, options.param); // 默认不显示参数面板,showType为1:embed

            var items = [];
            var paramsTemplate = getParamsTemplate(this.currentSessionID);
            if (options.param.html) {
                this.parameterEl = this._createFormParameterPane(options, items, paramsTemplate);
            }

            this.$contentPane = this._createContentPane(options.sheets, options.browserbg, options.$paraContainer);
            items.push({
                region: 'center',
                el: this.$contentPane
            });

            // alex:设置布局为BorderLayout
            this._doReportPaneLayout(items, options, paramsTemplate);

            // james:初始化ContentPane的一些事件，目前主要是Tab的一些切换操作内容
            this.initContentPane();

            // 最后loadContentPane
            if (this.parameterEl === undefined || this.parameterEl === null) {
                this.loadContentPane();
            } else if (options.param.delay === false) {
                this.parameterCommit();
            }

            this.delay = options.param.delay;
        },

        _doReportPaneLayout: function (items, options, paramsTemplate) {
            var self = this;
            var borderLayout = new FR.BorderLayout({
                items: items,
                renderEl: this.options.renderEl
            });
            var showParamsTemplate = options.param.useParamsTemplate && paramsTemplate !== null;
            $(window).bind("resize", function () {
                if (self.resizeid !== undefined && self.resizeid !== null) {
                    clearTimeout(self.resizeid);
                    self.resizeid = null;
                }
                self.resizeid = setTimeout(function () {
                    if (options.$paraContainer) {
                        options.$paraContainer.width = document.body.offsetWidth;
                    }
                    var paramWidget = borderLayout.getWidgetByName(options.alignLayoutName);

                    if (paramWidget) {
                        paramWidget.element.css('width', options.param.width);
                        self.addParaPaneScrollBar(options.$paraContainer, paramWidget.element, options.param.height + (showParamsTemplate ? 30 : 0), self.scrollHeight);
                    }
                    borderLayout.doLayout();
                    $('[widgetname^=sortable]').removeAttr('style');
                    self.doResize();
                }, 200);
            });
            var paramWidget = borderLayout.getWidgetByName(options.alignLayoutName);
            if (paramWidget) {
                this.addParaPaneScrollBar(options.$paraContainer, paramWidget.element, options.param.height + (showParamsTemplate ? 30 : 0), this.scrollHeight);
            }
            options.onCollapse = function (isCollapsed, layoutName, paraHeight) {
                borderLayout.getWidgetByName(layoutName).setVisible(!isCollapsed);
                if (borderLayout.getWidgetByName('paramsTemplatePane') !== undefined) {
                    borderLayout.getWidgetByName('paramsTemplatePane').setVisible(!isCollapsed);
                    borderLayout.getWidgetByName('saveBtn').setVisible(!isCollapsed);
                    borderLayout.getWidgetByName('newParamsBtn').setVisible(!isCollapsed);
                }
                borderLayout.setRegionWH('north', paraHeight);
                borderLayout.doLayout();
                $('[widgetname^=sortable]').removeAttr('style');
            };
            options.onCalculate = function (maxHeight, collapseHeight, $container) {
                options.param.height = maxHeight;
                $container.height(maxHeight + collapseHeight);
                borderLayout.doLayout();
                $('[widgetname^=sortable]').removeAttr('style');
            };
            borderLayout.doLayout();
            if (options.param.html) {
                initParameterTemplate(options.param, options.param.html.items, this.currentSessionID, borderLayout, paramsTemplate);
            }
        },

        _createContentPane: function (sheetsO, browserbg, $paraContainer) {
            sheetsO = sheetsO || [];
            var $contentPane = $("div.content-container");
            if ($contentPane.length !== 1) {
                $contentPane = $("<div id='content-container'>")
                        .appendTo(this.element).addClass("content-container");
            }
            $contentPane.css({overflow: 'hidden'});
            if (sheetsO && sheetsO.length > 1) {
                this._initSheetTabPane($contentPane, sheetsO, browserbg);
            } else {// 普通的单Sheet，就不需要用tabs啦
                // alex: overflow:auto 以显示滚动条查看所有报表内容
                // p: '0px solid #97A5B0'我改成了0px,这样既去掉了上边框,也能够显示滚动条了.
                $contentPane.css("overflow", "auto").css('border-top', '0px');
            }
            // 画网页背景
            // 为使背景固定，对不同浏览器使用不同策略
            if (browserbg.background !== null && browserbg.background !== undefined) {
                if (FR.Browser.isIE8Before()) {
                    $contentPane.css('background', browserbg.background + " fixed");
                    if (browserbg.filter !== undefined) {
                        $contentPane.css('filter', browserbg.filter);
                    }
                    if (FR.Browser.isIE6() && $paraContainer) {
                        $contentPane.css('background-position', '0px ' + $paraContainer.height() + 'px 0px 0px');
                    }
                } else {
                    $contentPane.css('background', browserbg.background);
                    var bgSize = browserbg["background-size"];
                    if (bgSize !== undefined) {
                        $contentPane.css('background-size', bgSize);
                    }
                }
            }
            return $contentPane;
        },

        addParaPaneScrollBar: function (container, mover, top, height) {
            if (container) {
                container.hScrollPane({
                    mover: mover, //指定container对象下的哪个元素需要滚动位置 | 必传项;
                    showArrow: false, //指定是否显示左右箭头，默认不显示 | 可选项;
                    top: top, //滚动条所在的top位置
                    height: height,//滚动条的高度
                    //moverW:function(){return $(".press").width();}(), //传入水平滚动对象的长度值,不传入的话默认直接获取mover的宽度值 | 可选项;
                    //handleMinWidth:100,//指定handle的最小宽度,要固定handle的宽度请在css中设定handle的width属性（如 width:28px!important;），不传入则不设定最小宽度 | 可选项;
                    dragable: false, //指定是否要支持拖动效果，默认可以拖动 | 可选项;
                    easing: false, //滚动是否需要滑动效果,默认有滑动效果 | 可选项;
                    // handleCssAlter:"draghandlealter", //指定拖动鼠标时滚动条的样式，不传入该参数则没有变化效果 | 可选项;
                    mousewheel: {bind: false, moveLength: 500} //mousewheel: bind->'true',绑定mousewheel事件; ->'false',不绑定mousewheel事件；moveLength是指定鼠标滚动一次移动的距离,默认值：{bind:true,moveLength:300} | 可选项;
                });
            }
        },
        /**
         * 展示页面设置的对话框
         * @param o 对话框的配置
         */
        showPageSetupDialog: function (o) {
            o = o || {};
            o.width = o.width || 400;
            o.height = o.height || 295;
            o.title = FR.i18nText("Fine-Engine_Report_PageSetup_Page_Setup");
            var fontsize = 12, label_color = '#4C4C4C', fontfamily = "simsun", sessionID = o.sessionID || '',
                    reportIndex = o.reportIndex,
                    widgetPadding = 10, northHeight = 25, mediumRightPadding = 162, rh = 21, radioRightPadding = 234;
            var paperSize_items = [
                {text: "Letter", value: "Letter"},
                {text: "A2", value: "A2"},
                {text: "Legal", value: "Legal"},
                {text: "A0", value: "A0"},
                {text: "A1", value: "A1"},
                {text: "Note", value: "Note"},
                {text: "A3", value: "A3"},
                {text: "A4", value: "A4"},
                {text: "A5", value: "A5"},
                {text: "A6", value: "A6"},
                {text: "A7", value: "A7"},
                {text: "A8", value: "A8"},
                {text: "B0", value: "B0"},
                {text: "B1", value: "B1"},
                {text: "B2", value: "B2"},
                {text: "B3", value: "B3"},
                {text: "B4", value: "B4"},
                {text: "B5", value: "B5"},
                {text: "Tabloid", value: "Tabloid"},
                {text: "Ledger", value: "Ledger"},
                {text: "Halfletter", value: "Halfletter"}
            ];
            var tableLayout = FR.createWidget({
                type: 'tablelayout',
                columnSize: [72, 16, 312],
                rowSize: [rh, 52, 52],
                vgap: 20,
                items: [
                    [
                        {
                            el: {
                                type: 'label',
                                value: FR.i18nText("Fine-Engine_PageSetup_Orientation"),
                                fontsize: fontsize,
                                verticalcenter: true,
                                textalign: 'right',
                                fontfamily: fontfamily
                            }
                        },
                        {el: $('<div>')},
                        {
                            el: {
                                type: 'border', items: [
                                    {
                                        region: 'center', el: {
                                            type: 'radio',
                                            widgetName: 'portrait',
                                            text: FR.i18nText("Fine-Engine_PageSetup_Portrait"),
                                            fontSize: fontsize,
                                            listeners: [
                                                {
                                                    eventName: 'statechange',
                                                    action: function () {
                                                        if (this.getValue()) {
                                                            var radio_landscape = tableLayout.getWidgetByName("landscape");
                                                            if (radio_landscape) {
                                                                radio_landscape.setValue(false);
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    },
                                    {
                                        region: 'east', width: radioRightPadding, el: {
                                            type: 'radio',
                                            widgetName: 'landscape',
                                            text: FR.i18nText("Fine-Engine_PageSetup_Landscape"),
                                            fontSize: fontsize,
                                            listeners: [
                                                {
                                                    eventName: 'statechange',
                                                    action: function () {
                                                        if (this.getValue()) {
                                                            var radio_portrait = tableLayout.getWidgetByName("portrait");
                                                            if (radio_portrait) {
                                                                radio_portrait.setValue(false);
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    ],
                    [
                        {
                            el: {
                                type: 'label',
                                value: FR.i18nText("Fine-Engine_PageSetup_Paper_Size"),
                                fontsize: fontsize,
                                textalign: 'right',
                                fontfamily: fontfamily
                            }
                        },
                        {el: $('<div>')},
                        {
                            el: {
                                type: 'border', items: [
                                    {
                                        region: 'north', height: rh, el: {
                                            type: 'border', items: [
                                                {
                                                    region: 'center', el: {
                                                        type: 'radio',
                                                        widgetName: 'predefined',
                                                        text: FR.i18nText("Fine-Engine_PageSetup_Predefined"),
                                                        fontSize: fontsize,
                                                        listeners: [
                                                            {
                                                                eventName: 'afteredit', action: function () {
                                                                    var value = this.getValue();
                                                                    var tableWidget = tableLayout.getWidgetByName('papaersize_setup');
                                                                    if (value === false) {
                                                                        tableWidget.setRowVisible(0, false);
                                                                    } else {
                                                                        tableWidget.setRowVisible(0, true);
                                                                    }
                                                                    tableWidget.doLayout();
                                                                }
                                                            },
                                                            {
                                                                eventName: 'statechange', action: function () {
                                                                    var tableWidget = tableLayout.getWidgetByName('papaersize_setup');
                                                                    if (this.getValue()) {
                                                                        tableWidget.setRowVisible(1, false);
                                                                        var radio_customed = tableLayout.getWidgetByName("customed");
                                                                        if (radio_customed) {
                                                                            radio_customed.setValue(false);
                                                                        }
                                                                    } else {
                                                                        tableWidget.setRowVisible(1, true);
                                                                    }
                                                                    tableWidget.doLayout();
                                                                }
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    region: 'east', width: radioRightPadding, el: {
                                                        type: 'radio',
                                                        widgetName: 'customed',
                                                        text: FR.i18nText("Fine-Engine_Custom"),
                                                        fontSize: fontsize,
                                                        listeners: [
                                                            {
                                                                eventName: 'afteredit', action: function () {
                                                                    var value = this.getValue();
                                                                    var tableWidget = tableLayout.getWidgetByName('papaersize_setup');
                                                                    if (value === false) {
                                                                        tableWidget.setRowVisible(1, false);
                                                                    } else {
                                                                        tableWidget.setRowVisible(1, true);
                                                                    }
                                                                    tableWidget.doLayout();
                                                                }
                                                            },
                                                            {
                                                                eventName: 'statechange', action: function () {
                                                                    var tableWidget = tableLayout.getWidgetByName('papaersize_setup');
                                                                    if (this.getValue()) {
                                                                        tableWidget.setRowVisible(0, false);
                                                                        var radio_predefined = tableLayout.getWidgetByName("predefined");
                                                                        if (radio_predefined) {
                                                                            radio_predefined.setValue(false);
                                                                        }
                                                                    } else {
                                                                        tableWidget.setRowVisible(0, true);
                                                                    }
                                                                    tableWidget.doLayout();
                                                                }
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    },
                                    {region: 'center', height: widgetPadding, el: $('<div>')},
                                    {
                                        region: 'south', height: rh, el: {
                                            type: 'tablelayout',
                                            widgetName: 'papaersize_setup',
                                            columnSize: [302],
                                            rowSize: [rh, rh],
                                            vgap: 0,
                                            items: [
                                                [
                                                    {
                                                        el: {
                                                            type: 'border', items: [
                                                                {
                                                                    region: 'center', el: {
                                                                        type: 'combo',
                                                                        widgetName: 'paperSize',
                                                                        allowBlank: false,
                                                                        directEdit: true,
                                                                        items: paperSize_items,
                                                                        fontSize: fontsize,
                                                                        listeners: [
                                                                            {
                                                                                eventName: 'afteredit',
                                                                                action: function () {
                                                                                    FR.ajax({
                                                                                        url: FR.servletURL,
                                                                                        type: 'POST',
                                                                                        data: {
                                                                                            op: 'fr_utils',
                                                                                            cmd: 'utils_papersize',
                                                                                            paperSize: this.getValue()
                                                                                        },
                                                                                        complete: function (res) {
                                                                                            var paper = FR.jsonDecode(res.responseText);
                                                                                            tableLayout.getWidgetByName("user_width").setValue(paper.width);
                                                                                            tableLayout.getWidgetByName("user_height").setValue(paper.height);
                                                                                            tableLayout.getWidgetByName("predefined").setValue(true);
                                                                                            tableLayout.getWidgetByName("customed").reset();
                                                                                        }
                                                                                    });
                                                                                }
                                                                            }
                                                                        ]
                                                                    }
                                                                },
                                                                {
                                                                    region: 'east',
                                                                    width: mediumRightPadding,
                                                                    el: $('<div>')
                                                                }
                                                            ]
                                                        }
                                                    }
                                                ],
                                                [
                                                    {
                                                        el: {
                                                            type: 'tablelayout',
                                                            columnSize: [12, 12, 60, 5, 21, 14, 12, 12, 60, 5, 21, 68],
                                                            rowSize: [rh],
                                                            vgap: 0,
                                                            items: [
                                                                [
                                                                    {
                                                                        el: {
                                                                            type: 'label',
                                                                            value: FR.i18nText("Fine-Engine_Report_Width"),
                                                                            fontsize: fontsize
                                                                        }
                                                                    },
                                                                    {el: $('<div>')},
                                                                    {
                                                                        el: {
                                                                            type: 'number',
                                                                            widgetName: 'user_width',
                                                                            fontSize: fontsize
                                                                        }
                                                                    },
                                                                    {el: $('<div>')},
                                                                    {
                                                                        el: {
                                                                            type: 'label',
                                                                            value: "mm",
                                                                            fontsize: fontsize,
                                                                            color: label_color,
                                                                            fontfamily: 'tahoma'
                                                                        }
                                                                    },
                                                                    {el: $('<div>')},
                                                                    {
                                                                        el: {
                                                                            type: 'label',
                                                                            value: FR.i18nText("Fine-Engine_Height"),
                                                                            fontsize: fontsize
                                                                        }
                                                                    },
                                                                    {el: $('<div>')},
                                                                    {
                                                                        el: {
                                                                            type: 'number',
                                                                            widgetName: 'user_height',
                                                                            fontSize: fontsize
                                                                        }
                                                                    },
                                                                    {el: $('<div>')},
                                                                    {
                                                                        el: {
                                                                            type: 'label',
                                                                            value: "mm",
                                                                            fontsize: fontsize,
                                                                            color: label_color,
                                                                            fontfamily: 'tahoma'
                                                                        }
                                                                    },
                                                                    {el: $('<div>')}
                                                                ]
                                                            ]
                                                        }
                                                    }
                                                ]
                                            ]
                                        }
                                    }
                                ]
                            }
                        }
                    ],
                    [
                        {
                            el: {
                                type: 'label',
                                value: FR.i18nText("Fine-Engine_PageSetup_Margin"),
                                fontsize: fontsize,
                                textalign: 'right',
                                fontfamily: fontfamily
                            }
                        },
                        {el: $('<div>')},
                        {
                            el: {
                                type: 'tablelayout',
                                columnSize: [30, 12, 60, 5, 21, 14, 36, 12, 60, 5, 21, 68],
                                rowSize: [rh, rh],
                                vgap: 10,
                                items: [
                                    [
                                        {
                                            el: {
                                                type: 'label',
                                                value: FR.i18nText("Fine-Engine_Report_Top"),
                                                fontsize: fontsize
                                            }
                                        },
                                        {el: $('<div>')},
                                        {el: {type: 'number', widgetName: 'margin_top', fontSize: fontsize}},
                                        {el: $('<div>')},
                                        {
                                            el: {
                                                type: 'label',
                                                value: "mm",
                                                fontsize: fontsize,
                                                color: label_color,
                                                fontfamily: 'tahoma'
                                            }
                                        },
                                        {el: $('<div>')},
                                        {
                                            el: {
                                                type: 'label',
                                                value: FR.i18nText("Fine-Engine_Bottom"),
                                                fontsize: fontsize
                                            }
                                        },
                                        {el: $('<div>')},
                                        {el: {type: 'number', widgetName: 'margin_bottom', fontSize: fontsize}},
                                        {el: $('<div>')},
                                        {
                                            el: {
                                                type: 'label',
                                                value: "mm",
                                                fontsize: fontsize,
                                                color: label_color,
                                                fontfamily: 'tahoma'
                                            }
                                        },
                                        {el: $('<div>')}
                                    ],
                                    [
                                        {
                                            el: {
                                                type: 'label',
                                                value: FR.i18nText("Fine-Engine_Report_Left"),
                                                fontsize: fontsize
                                            }
                                        },
                                        {el: $('<div>')},
                                        {el: {type: 'number', widgetName: 'margin_left', fontSize: fontsize}},
                                        {el: $('<div>')},
                                        {
                                            el: {
                                                type: 'label',
                                                value: "mm",
                                                fontsize: fontsize,
                                                color: label_color,
                                                fontfamily: 'tahoma'
                                            }
                                        },
                                        {el: $('<div>')},
                                        {
                                            el: {
                                                type: 'label',
                                                value: FR.i18nText("Fine-Engine_Report_Right"),
                                                fontsize: fontsize
                                            }
                                        },
                                        {el: $('<div>')},
                                        {el: {type: 'number', widgetName: 'margin_right', fontSize: fontsize}},
                                        {el: $('<div>')},
                                        {
                                            el: {
                                                type: 'label',
                                                value: "mm",
                                                fontsize: fontsize,
                                                color: label_color,
                                                fontfamily: 'tahoma'
                                            }
                                        },
                                        {el: $('<div>')}
                                    ]
                                ]
                            }
                        }
                    ]
                ]
            });
            var widget_predefined = tableLayout.getWidgetByName('predefined');
            var widget_customed = tableLayout.getWidgetByName('customed');
            var widget_portrait = tableLayout.getWidgetByName('portrait');
            var widget_landscape = tableLayout.getWidgetByName('landscape');
            var widget_paperSize = tableLayout.getWidgetByName('paperSize');
            var widget_user_width = tableLayout.getWidgetByName('user_width');
            var widget_user_height = tableLayout.getWidgetByName('user_height');
            var widget_margin_top = tableLayout.getWidgetByName('margin_top');
            var widget_margin_bottom = tableLayout.getWidgetByName('margin_bottom');
            var widget_margin_left = tableLayout.getWidgetByName('margin_left');
            var widget_margin_right = tableLayout.getWidgetByName('margin_right');
            // 异步获取页面设置的信息,给控件赋默认值
            FR.ajax({
                url: FR.servletURL,
                type: 'POST',
                data: {
                    op: 'fr_dialog',
                    cmd: 'read_page_setup_tpl',
                    sessionID: sessionID,
                    reportIndex: reportIndex
                },
                complete: function (res) {
                    var result = FR.jsonDecode(res.responseText);
                    if (result !== null && result !== undefined) {
                        widget_predefined.setValue(result.predefined);
                        if (widget_predefined.getValue()) {
                            tableLayout.getWidgetByName('papaersize_setup').setRowVisible(0, true);
                            tableLayout.getWidgetByName('papaersize_setup').setRowVisible(1, false);
                        } else {
                            tableLayout.getWidgetByName('papaersize_setup').setRowVisible(0, false);
                            tableLayout.getWidgetByName('papaersize_setup').setRowVisible(1, true);
                        }
                        tableLayout.getWidgetByName('papaersize_setup').doLayout();
                        widget_customed.setValue(result.customed);
                        widget_portrait.setValue(result.portrait);
                        widget_landscape.setValue(result.landscape);
                        widget_paperSize.setValue(result.paperSize);
                        widget_user_width.setValue(result.user_width);
                        widget_user_height.setValue(result.user_height);
                        widget_margin_top.setValue(result.margin_top);
                        widget_margin_bottom.setValue(result.margin_bottom);
                        widget_margin_left.setValue(result.margin_left);
                        widget_margin_right.setValue(result.margin_right);
                    }
                }
            });
            o.onOK = function () {
                FR.ajax({
                    url: FR.servletURL,
                    type: 'POST',
                    data: {
                        op: 'fr_dialog',
                        cmd: 'change_page_setup',
                        sessionID: sessionID,
                        reportIndex: reportIndex,
                        predefined: widget_predefined.getValue(),
                        customed: widget_customed.getValue(),
                        portrait: widget_portrait.getValue(),
                        landscape: widget_landscape.getValue(),
                        paperSize: widget_paperSize.getValue(),
                        user_width: widget_user_width.getValue(),
                        user_height: widget_user_height.getValue(),
                        margin_top: widget_margin_top.getValue(),
                        margin_bottom: widget_margin_bottom.getValue(),
                        margin_left: widget_margin_left.getValue(),
                        margin_right: widget_margin_right.getValue()
                    },
                    complete: function () {
                        FR.closeDialog();
                    }
                });
            };
            o.contentWidget = {
                type: 'border',
                items: [
                    {region: 'north', el: $('<div>'), height: northHeight},
                    {region: 'center', el: tableLayout.element}
                ]
            };
            FR.showUpdateDialog(o);
        },

        _sheetPositionPane: function () {
            return "bottom";
        },

        _initSheetTabPane: function ($contentPane, sheetsO, bg) {
            var sheetPosition = this._sheetPositionPane();
            var writeTab = new FR.TabPane({
                tabBackground: bg,
                items: sheetsO,
                tabPosition: sheetPosition,
                renderEl: $contentPane
            });
            $contentPane.data("TabPane", writeTab);
            // 先构建出来隐藏掉，当需要展示报表时再显示
            writeTab.setVisible(false);
        },

        _createFormParameterPane: function (options, layout, paramsTemplate) {
            var collapsePaneHeight = 8;
            options.alignLayoutName = '__layout4align__';
            var self = this, paramO = options.param;
            var config = paramO.html;
            self.scrollHeight = 6;
            //这边maxWidth 7.1的时候被改成了paramO.width, 导致web端的居右居中效果很奇怪
            var maxWidth = 0, maxHeight = 0;
            for (var i = 0; i < config.items.length; i++) {
                var item = config.items[i];
                maxWidth = Math.max(maxWidth, item.x + item.width);
                maxHeight = Math.max(maxHeight, item.y + item.height);
            }
            var deltaHeight = paramO.height - maxHeight;
            var formLayout;
            var barHeight = paramO.width > document.body.offsetWidth ? self.scrollHeight : 0;
            var $paraContainer = $("<div class='parameter-container' style='overflow: auto;'>").css({
                'height': paramO.height + barHeight + collapsePaneHeight,
                'width': document.body.offsetWidth
            });
            var paramsTemplateHeight = (paramO.useParamsTemplate && paramsTemplate !== null ? 30 : 0);
            FR.parameterContainerHeight = paramO.height + barHeight + collapsePaneHeight + paramsTemplateHeight;
            options.$paraContainer = $paraContainer;
            config.onCalculate = function (currentMaxHeight) {
                if ($.isFunction(options.onCalculate)) {
                    options.onCalculate.call(this, currentMaxHeight + deltaHeight, collapsePaneHeight, $paraContainer);
                }
            };
            var $expandEl = $("<div class='parameter-container-collapseimg-up' style='cursor: pointer'></div>").click(function () {
                var resizeTime = new Date();
                self.lastResizeTime = resizeTime;
                setTimeout(function () {
                    if (resizeTime === self.lastResizeTime) {
                        delete self.lastResizeTime;
                        $paraContainer.animate({
                            height: (self.hasCollapsed ? "+=" : "-=") + (paramO.height + paramsTemplateHeight)
                        }, "fast", function () {
                            if (self.hasCollapsed) {
                                FR.parameterContainerHeight += (paramO.height + paramsTemplateHeight);
                            } else {
                                FR.parameterContainerHeight -= (paramO.height + paramsTemplateHeight);
                            }
                            self.hasCollapsed = !self.hasCollapsed;
                            $expandEl.switchClass('parameter-container-collapseimg-down', 'parameter-container-collapseimg-up');
                            if ($.isFunction(options.onCollapse)) {
                                var height = $paraContainer.height();
                                options.onCollapse.call(this, self.hasCollapsed, options.alignLayoutName, height);
                                self.doAfterCollapse();
                                self.afterLoad();
                            }
                        });
                    }
                }, 222);
            });

            var alignment = 'left';
            switch (paramO.alignLocation) {
                case 0 :
                    alignment = 'left';
                    break;
                case 1 :
                    alignment = 'center';
                    break;
                case 2 :
                    alignment = 'right';
                    break;
                default :
                    alignment = 'left';
            }
            var $center = $('<div class="pmeter-container"></div>').css({
                "height": paramO.height,
                "width": paramO.width
            });
            var paramstemplateHeight = 30;
            var paramstemplateContainer = {
                region: 'north',
                height: paramstemplateHeight,
                el: {
                    type: 'border',
                    widgetName: 'paramsTemplate',
                    items: [
                        {
                            region: 'east',
                            width: 138,
                            el: {
                                type: 'horizontal',
                                alignment: 'right',
                                items: [{
                                    el: {
                                        type: 'button',
                                        widgetName: 'saveBtn',
                                        text: FR.i18nText("Fine-Engine_Report_Designer_Save_As_Params_Template")
                                    }, width: 128
                                }, {
                                    el: $('<div>'), width: 10
                                }]
                            }
                        }, {
                            region: 'center',
                            el: {
                                type: 'horizontal',
                                widgetName: 'paramsTemplatePane',
                                alignment: 'left',
                                items: []
                            }
                        }, {
                            region: 'west',
                            width: 30,
                            el: {
                                type: 'horizontal',
                                alignment: 'left',
                                items: [
                                    {
                                        el: {
                                            type: 'iconbutton',
                                            widgetName: 'newParamsBtn',
                                            width: 30,
                                            baseClass: 'fs-new-params-template-blue'

                                        },
                                        width: 30
                                    }
                                ]
                            }
                        }
                    ]
                }
            };

            if (!options.param.useParamsTemplate || paramsTemplate === null) {
                paramstemplateHeight = 0;
                paramstemplateContainer = {};
            }
            //定义一下用来滚动的对象
            var paraConfig = {
                renderEl: $paraContainer,
                type: 'border',
                items: [
                    paramstemplateContainer,
                    {
                        region: 'south', height: collapsePaneHeight, el: {
                            type: 'horizontal',
                            items: [
                                {el: $expandEl, width: 120}
                            ]
                        }
                    },
                    {
                        region: 'center', el: {
                            type: 'para_horizontal',
                            width: paramO.width,
                            minWidth: paramO.width,
                            widgetName: options.alignLayoutName,
                            alignment: alignment,
                            items: [
                                {el: $center, width: maxWidth}
                            ]
                        }
                    }
                ]
            };
            this._setBackground(paramO, $paraContainer);
            if (paramO.showType === 1) {
                layout.push({
                    region: 'north',
                    el: paraConfig,
                    height: paramO.height + collapsePaneHeight + barHeight + paramstemplateHeight
                });
            }
            if (paramO.showType === 0) {
                $paraContainer.css({
                    position: "absolute",
                    width: paramO.width,
                    height: paramO.height
                }).appendTo("body");
                config.listeners = [
                    {
                        once: true,
                        eventName: 'submitcomplete',
                        action: function () {
                            FR.closeDialog();
                        }
                    }
                ];
                config.renderEl = $paraContainer;
                formLayout = new FR.contentForm(config);
            } else {
                config.renderEl = $center;
                config.container = $paraContainer;
                formLayout = new FR.contentForm(config);
            }
            if (paramO.showType === 0) {
                formLayout.doLayout();
                FR.showDialog({
                    title: paramO.paramWindowTitle,
                    width: paramO.width + 20,
                    height: paramO.height + 45,
                    contentHtml: $paraContainer
                });
            }
            return formLayout;
        },

        _setBackground: function (paramO, $dom) {
            var bg = paramO.parambg;
            if (bg !== null && bg !== undefined) {
                FR.setBackground($dom, bg);
            }
        },

        doAfterCollapse: function () {
        },

        afterLoad: function () {
            this.doResize();
        },

        doResize: function () {
            var fitConfig = FR.jsonDecode(this.__fitConfig__);
            var isFit = fitConfig.__fit__;
            var fitState = fitConfig.__fitState__;
            var $frozenDIV = $(".frozen-table");
            if (isFit && !FR.Browser.isIE8Before() && $frozenDIV.length === 0) {
                var container = this.$contentPane;
                if (container !== undefined) {
                    var preBounds = container.data("preBounds");
                    if (preBounds !== undefined && preBounds.height === container.height() && preBounds.width === container.width()) {
                        return;
                    }
                    container.data("preBounds", container.bounds());
                    this.scaleContent(container, fitState);
                }

            }
        },

        scaleContent: function (container, fitState) {
            var $contentDIV = $(".pageContentDIV").length > 0 ? ".pageContentDIV" : ".sheet-container";
            var widthScale = parseFloat(container.width() / container.data("preWidth"));
            var heightScale = parseFloat(container.height() / container.data("preHeight"));
            if (fitState === 1) {
                heightScale = widthScale;
            }
            this.processScrollWidth(container, widthScale, heightScale);
        },


        processScrollWidth: function (container, widthScale, heightScale) {
            var $contentDIV = $(".pageContentDIV").length > 0 ? ".pageContentDIV" : ".sheet-container";
            for (var i = 0; i < container.length; i++) {
                var container = $(container[i]);
                var contentDIV = $($contentDIV, container[i]);
                contentDIV.removeClass("main-content-left");
                var tableDiv = $(".x-table", container[i]);
                if (contentDIV.height() > 0) {
                    if (tableDiv.height() * heightScale > container.height() && tableDiv.width() * widthScale <= container.width() && $(".frozen-table").length === 0) {
                        widthScale = parseFloat((container.width() - 18) / container.data("preWidth"));
                        container.css({
                            overflowX: 'hidden',
                            overflowY: 'auto'
                        });
                    } else if (tableDiv.width() * widthScale <= (container.width()) && tableDiv.height() * heightScale <= container.height() && $(".frozen-table").length === 0) {
                        container.css({
                            overflow: 'hidden',
                            overflowX: 'hidden',
                            overflowY: 'hidden'
                        });
                    } else if ($(".frozen-table").length === 0) {
                        container.css({
                            overflow: 'auto',
                            overflowX: 'auto',
                            overflowY: 'auto'
                        });
                    }

                }
                var zoom = {x: widthScale, y: heightScale};
                this.zoomContent(contentDIV, zoom);
            }
        },

        /**
         * 提交参数并加载报表主体内容
         *
         *     @example
         *     contentPane.parameterCommit();
         *
         * @param {Object} reloadOthers 配置
         */
        parameterCommit: function (reloadOthers) {
            if ($.isFunction(this.parameterEl.formSubmit)) {
                this.parameterEl.formSubmit({
                    url: FR.servletURL + "?op=fr_dialog&cmd=parameters_d&sessionID=" + _g().currentSessionID,
                    callback: function () {
                        _g().loadContentPane(reloadOthers);
                    }
                });
            }
        },

        /**
         * 改变在鼠标经过或者点击报表行时行的颜色
         *
         *     @example
         *     contentPane.makeHighlight('red', 'click');
         *
         * @param {String} color 需要变换成的颜色
         * @param {'click'/'mouseover'} [op='click'] 鼠标动作
         * @param deep 是否是加在td上面
         */
        makeHighlight: function (color, op, deep) {
            var self = this;
            if (!op) {
                op = 'click';
            }
            var container = $('div.content-container');
            var tr = $("tr", container);
            var changeTds = function (currentTR, lastTDColors) {
                var tds = currentTR.children();
                for (var i = 0; i < tds.length; i++) {
                    var td = tds.eq(i);
                    lastTDColors.push(td[0].style.backgroundColor);
                    td[0].style.backgroundColor = color;
                }
            };
            var highLightFun = function (e) {
                if (!$(e.target).is("td")) {
                    return;
                }
                var currentTR = $(e.target).parent();
                if ($(e.target).attr("hv")) {
                    // marro:如果是格子套格子的,PageCellWriter.getValueWrapper
                    currentTR = currentTR.closest("td").parent();
                }
                if (lastSelectedTR != null) {
                    if (deep === true) {
                        var tds = lastSelectedTR.children();
                        for (var i = 0; i < tds.length; i++) {
                            var td = tds.eq(i);
                            td[0].style.backgroundColor = lastTDColors[i] === "" ? "White" : lastTDColors[i];
                        }
                        lastTDColors.length = 0;
                        if (currentTR[0] !== lastSelectedTR[0]) {
                            changeTds(currentTR, lastTDColors);
                            lastSelectedTR = currentTR;
                            return;
                        }
                    } else {
                        lastSelectedTR[0].style.backgroundColor = 'White';
                        if (currentTR[0] !== lastSelectedTR[0]) {
                            currentTR[0].style.backgroundColor = (currentTR[0].style.backgroundColor === color ? 'White' : color);
                            lastSelectedTR = currentTR;
                            return;
                        }
                    }
                    lastSelectedTR = null;
                    return;
                }
                lastSelectedTR = currentTR;

                if (deep === true) {
                    changeTds(currentTR, lastTDColors);
                } else {
                    currentTR[0].style.backgroundColor = (currentTR[0].style.backgroundColor === color ? 'White' : color);
                }
            };

            var lastSelectedTR = null;
            var lastTDColors = [];
            var action = op.indexOf('over') !== -1 ? "mouseover" : "click";
            if (window.highfun !== null && window.highfun !== undefined) {
                container.unbind(action, window.highfun);
            }
            window.highfun = function (e) {
                highLightFun(e);
            };
            container.bind(action, window.highfun);
        },

        initContentPane: function () {
            var events = FR.Report.Plugin.Panel.Events;
            if ($.isArray(events)) {
                for (var i = 0, len = events.length; i < len; i++) {
                    var evt = events[i];
                    this.on(evt.name, evt.action.createDelegate(this));
                }
            }
        },

        /**
         * 导出csv
         */
        exportReportToCSV: function () {
            window.location = FR.servletURL + "?op=export&sessionID=" + this.currentSessionID + "&format=csv";
        },

        directExportToExcel: function (dsName, fileName, params, colNames) {
            if (this.fireEvent(FR.Events.BTOEXCEL) === false) {
                return;
            }

            var url = FR.servletURL + "?op=export&cmd=direct_excel&sessionID=" + this.currentSessionID + "&dsName=" + dsName;
            if (fileName !== undefined) {
                url += "&fileName=" + fileName
            }
            if (params !== undefined) {
                url += "&params=" + params;
            }
            if (colNames !== undefined) {
                url += "&colNames=" + colNames;
            }

            this.downloadExportFile(url, 'excel');

            this.fireEvent(FR.Events.ATOEXCEL);
        },

        /**
         * 零客户端打印
         */
        noClientPrint: function (popupMarginSetup, ieQuietPrint) {
            FR.doNoClientPrint(this.currentSessionID, popupMarginSetup, ieQuietPrint);
        },

        /**
         * (新)本地打印
         */
        newNativePrint: function (popupDialog, serverURL) {
            var self = this;
            var config = {
                isPopUp: popupDialog,  // 是否弹窗
                currentPageIndex: self.currentPageIndex == null ? self.currentPageIndex : self.currentPageIndex.toString(),
                currentSheetIndex: self.selectedIndex + 1,  // 从 1 开始计数
                serverURL: serverURL
            };
            if (self.selectedIndex == null) {  // 是分页预览
                // 分页预览不支持选择 sheet
                config.needSelectSheet = false;
            }
            FR.doNewNativePrint(this.currentSessionID, config);
        },

        pdfPrint: function (isPopup) {
            if (this.fireEvent(FR.Events.BPDFPRINT) === false) {
                return;
            }
            if (FR.Browser.isIE()) {
                FR.doPDFPrint(this.currentSessionID, isPopup);
            } else {
                // james：pdfPrint需要用format=pdfPrint，服务器才能识别为是打印状态啊
                var url = FR.servletURL + "?sessionID=" + this.currentSessionID;
                FR.doURLPDFPrint(url);
                this.fireEvent(FR.Events.APDFPRINT);
            }
        },
//wei:移动端支持自动刷新，pc不做事
        setAppearRefresh: function () {

        },
        /**
         * 根据sheet的序号加载sheet
         * @param index sheet序号
         */
        loadSheetByIndex: function (index) {
            var $contentPane = $("div.content-container");
            if (!FR.isEmpty(index) && $contentPane && $contentPane.data && $contentPane.data('TabPane')) {
                $contentPane.data('TabPane').selectTabAt(index);
            }
        },
        /**
         * 根据sheet的名称加载sheet
         * @param sheetName sheet名称
         */
        loadSheetByName: function (sheetName) {
            var $contentPane = $("div.content-container");
            if (!FR.isEmpty(sheetName) && $contentPane && $contentPane.data && $contentPane.data('TabPane')) {
                $contentPane.data('TabPane').selectTabByName(sheetName);
            }
        },
        /**
         * 文件下载
         * @param url 下载地址
         * @param type
         */
        downloadExportFile: function (url, type) {
            //新导出方式插件
            if (FR.Report.Plugin.XHR2FileSaveProcessor.item && FR.Plugin.validLevel(FR.Report.Plugin.XHR2FileSaveProcessor, FR.Report.Plugin.XHR2FileSaveProcessor.item)) {
                FR.Report.Plugin.XHR2FileSaveProcessor.item.action.call(this, url, type);
                return;
            }
            FR.openUrlByForm(url);
            FR.progressBar.call(this, this.currentSessionID, type);
        },

        checkExportRegister: function () {
            function checkRegister() {
                var result = "";
                FR.ajax({
                    url: FR.servletURL,
                    data: {
                        op: 'export',
                        cmd: 'check_register',
                        sessionID: this.currentSessionID
                    },
                    async: false,
                    complete: function (res, status) {
                        try {
                            var returnData = FR.jsonDecode(res.responseText);
                            result = returnData.exception === 'FAILPASS';
                            if (result) {
                                FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));
                            }
                        } catch (Error) {
                            FR.Msg.toast("AnalysisData Error!");
                        }

                    }
                });
                return !result;
            }

            this.on(FR.Events.BTOEXCEL, checkRegister);
            this.on(FR.Events.BTOIMAGE, checkRegister);
            this.on(FR.Events.BTOPDF, checkRegister);
            this.on(FR.Events.BTOWORD, checkRegister);
            this.on(FR.Events.BTOHTML, checkRegister);
        },

        createProgressBar: function () {
            if ($('#progressBar').length <= 0) {
                var progressBar = $('<div id = ' + '\"' + 'progressBar' + '\"' + '>' + '</div>').appendTo("body");
                var tips = $('<div>' + FR.i18nText("Fine-Engine_Exporting") + '...' + '</div>').appendTo($('#progressBar'));
                var $maskDiv = $('<div id="transparent_mask" style="position:absolute;filter:alpha(opacity=50);opacity:0.5;"></div>');
                $maskDiv.css('left', "0px").css('top', "0px").css('width', "100%").css('height', "100%").css('z-index', 2001).appendTo("body");
                progressBar.addClass("progressBar");
                tips.addClass("progressBarTips");
            }
        },
        removeProgressBar: function () {
            $('#progressBar').remove();
            $('#transparent_mask').remove();
        },

        /**
         * 邮件发送
         * @param jo
         */
        emailReport: function (jo) {
            if (this.fireEvent(FR.Events.BEMAIL) === false) {
                return;
            }
            var self = this;
            FR.showEmailDialog({
                sessionID: this.currentSessionID,
                emailAttr: FR.jsonDecode(jo),
                onFinish: function () {
                    self.fireEvent(FR.Events.AEMAIL);
                }
            });
        }
    });
})(jQuery);
(function(){$.extend(FR,{InsertMsg:function(e,f){var c=e.messagetype;var g=c;switch(c){case"alert_toast":g="system_toast";break;case"remind_toast":g="system_toast";break;case"system_message":g="fs_main";break;default:break}var d=f.options?f.options.form:null;var b=d?d.collectionValue():{};var a={op:g,cmd:"save_message",message:e};if(FR.SessionMgr.getSessionID()){$.extend(a,{sessionID:FR.SessionMgr.getSessionID(),__parameters__:b})}FR.ajax({url:FR.servletURL,async:true,type:"POST",data:a,complete:function(h){var i=FR.jsonDecode(h.responseText);
if(!i.isLogin){FR.Msg.toast(FR.Msg.toast(FR.i18nText("Fine-Engine_FS_Msg_Not_Login")));return}if(i.sendState){FR.Msg.toast(FR.i18nText("Fine-Engine_FS_Msg_Send_Success"))}else{FR.Msg.toast(FR.i18nText("Fine-Engine_FS_Msg_Send_Failed"))}}})}})}());
(function($){var $PrintDiv,$PDFReader,$flashIframe,$appletDiv,showFlashPrintSetting,fitPaper,showAppletPrintSetting=null;var appletJarName="/fr-applet-8.0.jar";var isLoadingNativePrint=false;var nativePrintSocket;var nativePrintLoadingDialog;var nativePrintPreviewTimer;var floatRegexText="^(\\-|\\+?)\\d+(\\.\\d+)?$";var fitScalePercent=100;var errorCode_timeout="21300001";var errorCode_permission_denied="21300004";var errorCode_login_info_not_available="21300014";var report_view_path="/view/report";
var socketIOEvent_aliveChecking="aliveCheckingV5";var socketIOEvent_getConfigData="getConfigData";String.prototype.startsWith=function(str){var reg=new RegExp("^"+str);return reg.test(this)};function _appendSessionIDToURL(url,sessionID){if(url.indexOf("&sessionID=")>0||url.indexOf("?sessionID=")>0){return url}return url+(url.indexOf("?")>0?"&":"?")+"sessionID="+sessionID}function _subPrintUrl(printUrl){return printUrl.substring(0,printUrl.indexOf("/",printUrl.indexOf("/")+2))}function _isCrossOrigin(printUrl){return printUrl&&printUrl.startsWith("http")&&!(_subPrintUrl(printUrl)==window.location.origin)
}function _urlNeedCompatible(printUrl){return printUrl.endWith("ReportServer")}function _parseServletURLbyPrintUrl(printUrl){if(!_isCrossOrigin(printUrl)){return FR.servletURL}if(printUrl.indexOf("?")>0){return printUrl.substr(0,printUrl.indexOf("?"))}return printUrl}function _shouldOpenInNewTab(printUrl){if(FR.Browser.isNotNormalBrowser()){return false}return FR.Browser.isFirefox()||FR.Browser.isEdge()||((FR.Browser.isSafari()||FR.Browser.isChrome())&&_isCrossOrigin(printUrl))}function _needCallPrintManually(){if(FR.Browser.isNotNormalBrowser()){return false
}return FR.Browser.isChrome()||FR.Browser.isSafari()}function _roughFloatEquals(f1,f2){f1=Math.round(parseFloat(f1)*10)/10;f2=Math.round(parseFloat(f2)*10)/10;return f1===f2}function fireBeforePrintEvent(){if(_g()){return _g().fireEvent(FR.Events.BPRINT)}return true}function fireAfterPrintEvent(){if(_g()){return _g().fireEvent(FR.Events.APRINT)}return true}function validatePrintConfig(configp){var result=true;if(configp.reportTotalPage!=null){result=result&&validatePageIndex(configp.index,configp.reportTotalPage)
}return result}function validatePageIndex(pageIndex,reportTotalPage){if(typeof pageIndex!=="string"){return false}if(pageIndex===""||pageIndex==="odd"||pageIndex==="even"){return true}if(/^\d+$/.test(pageIndex)){var index=parseInt(pageIndex);return index>0&&index<=reportTotalPage}if(/^\d+-\d+$/.test(pageIndex)){var arr=pageIndex.split("-");var startIndex=arr[0];var endIndex=arr[1];return startIndex>0&&endIndex<=reportTotalPage}return false}function floatRegex(value){var reg=new RegExp(floatRegexText);
return reg.test(value)}function isShowFlashPrintSetting(){if(typeof showFlashPrintSetting!="boolean"){$(function(){FR.ajax({url:FR.servletURL,data:{op:"flash_print",cmd:"get_fp_setting"},async:false,complete:function(res,status){if(status=="success"){showFlashPrintSetting=res.responseText=="true"}}})})}return showFlashPrintSetting}function isPrintAsPPAPI(){var isPPAPI=false;var type="application/x-shockwave-flash";var mimeTypes=navigator.mimeTypes;var endsWith=function(str,suffix){return str.indexOf(suffix,str.length-suffix.length)!==-1
};if(mimeTypes&&mimeTypes[type]&&mimeTypes[type].enabledPlugin&&(mimeTypes[type].enabledPlugin.filename==="pepflashplayer.dll"||mimeTypes[type].enabledPlugin.filename==="libpepflashplayer.so"||mimeTypes[type].enabledPlugin.filename=="PepperFlashPlayer.plugin"||endsWith(mimeTypes[type].enabledPlugin.filename,"Chrome.plugin"))){isPPAPI=true}return isPPAPI}function isFitPaper(){if(!fitPaper){$(function(){FR.ajax({url:FR.servletURL,data:{op:"flash_print",cmd:"fit_fs_paper"},async:false,complete:function(res,status){if(status=="success"){fitPaper=res.responseText=="true"
}}})})}return fitPaper}function supportPDFPrint(){return FR.Browser.isIE()}function supportCodebase(){return FR.Browser.isIE()}function checkPDFPrintRegister(){var result="";FR.ajax({url:FR.servletURL,data:{op:"fr_pdfprint",cmd:"check_register"},async:false,complete:function(res,status){try{var returnData=FR.jsonDecode(res.responseText);result=returnData.exception!=="FAILPASS"}catch(Error){FR.Msg.toast("AnalysisData Error!")}}});return result}function checkPDFPrintRegisterCrossOrigin(printUrl){FR.ajax({url:printUrl,data:{op:"fr_pdfprint",cmd:"check_register"},dataType:"jsonp",jsonp:"callback",success:function(res){if(res.status=="success"){return result=true
}else{FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));return}}})}function isShowAppletPrintSetting(){if(typeof showAppletPrintSetting!="boolean"){$(function(){FR.ajax({url:FR.servletURL,data:{op:"fr_applet",cmd:"applet_print_setting"},async:false,complete:function(res,status){var result=FR.jsonDecode(res.responseText);if(result.exception==="FAILPASS"){showAppletPrintSetting={exception:"FAILPASS"};return}if(status==="success"){showAppletPrintSetting=res.responseText=="true"}}})})
}else{FR.ajax({url:FR.servletURL,data:{op:"fr_applet",cmd:"check_register"},async:false,complete:function(res,status){var result=FR.jsonDecode(res.responseText);if(result.exception==="FAILPASS"){showAppletPrintSetting={exception:"FAILPASS"}}}})}return showAppletPrintSetting}function isAppletPrintOver(sessionID){var appletPrintOver;FR.ajax({url:FR.servletURL,data:{op:"fr_applet",cmd:"is_printover",sessionID:sessionID,data:new Date().getTime()},async:false,complete:function(res,status){if(status=="success"){appletPrintOver=res.responseText=="true"
}}});return appletPrintOver}function isSingleSheetFunc(sessionID){var isSingleSheet;FR.ajax({url:FR.servletURL,data:{op:"fr_applet",cmd:"is_singleSheet",sessionID:sessionID},async:false,complete:function(res,status){if(status=="success"){isSingleSheet=res.responseText=="true"}}});return isSingleSheet}function checkPDFPrint(sessionID,popupSetup){FR.ajax({url:FR.servletURL,type:"POST",data:{op:"fr_pdfprint",cmd:"pt_check",sessionID:sessionID},complete:function(res,status){var resText=res.responseText;
if("ok"==resText){(function(){FR.closeDialog();if(popupSetup===true){$PDFReader[0].print()}else{$PDFReader[0].printAllFit(true)}if(_g()){_g().fireEvent("afterpdfprint")}FR.closeSession(sessionID)}).defer(2000)}else{if("gening"==resText){checkPDFPrint.defer(300,this,[sessionID,popupSetup])}else{FR.Msg.toast(resText)}}}})}function checkRequestSession(errorCode){if(errorCode===errorCode_timeout||errorCode===errorCode_login_info_not_available){FR.Msg.toast(FR.i18nText("Fine-Engine_Print_Auth_Check_Login"))
}else{if(errorCode===errorCode_permission_denied){FR.Msg.toast(FR.i18nText("Fine-Engine_Print_Auth_Check_No_Authority"))}else{FR.Msg.toast("unknown errorCode "+errorCode)}}}function __getSessionID__(opts){var config={};if(arguments.length===1){config=arguments[0]}else{if(arguments.length===2){config.url=arguments[0];$.extend(config,arguments[1])}}var sessionID=null;var udata;config.url=config.url.replace(report_view_path,"/v10/session"+(_isCrossOrigin(config.url)?"/cross/origin":""));if(config.data){if(config.data.reportlets&&!config.data.viewlets){config.data.viewlets=config.data.reportlets
}else{if(config.data.reportlet&&!config.data.viewlet){config.data.viewlet=config.data.reportlet}}}if(config&&config.form){var $form=$(config.form);udata=$.param($form.serializeArray().concat([{}]))}else{if(config&&config["formid"]){$form=$("#"+config["formid"]);udata=$.param($form.serializeArray().concat([{}]))}else{if(config&&config.data){udata=$.extend({},config.data)}}}if(_isCrossOrigin(config.url)){if(config.callback==null){FR.Msg.toast("config.callback is not defined");return}var cookie=FR.CookieInfor.getCookieByName("fine_auth_token");
if(cookie!=null){udata.fine_auth_token=cookie}FR.ajax({url:config.url,data:udata,dataType:"jsonp",jsonp:"callback",success:function(res){if(res.sessionID){config.callback(res.sessionID)}else{checkRequestSession(res.errorCode)}}})}else{FR.ajax({url:config.url,type:"POST",data:udata,async:false,complete:function(res,status){if(status=="success"){var result=FR.jsonDecode(res.responseText);if(result.errorCode){checkRequestSession(result.errorCode)}else{sessionID=res.responseText}}}});if(config.callback==null){return sessionID
}config.callback(sessionID)}}$.extend(FR,{doServerPrint:function(sessionID,currentPageIndex,quietConfig){if(quietConfig==null){FR.showIframeDialog({title:FR.i18nText("Fine-Engine_ReportServerP_Print[Server]"),width:540,height:300,url:FR.servletURL+"?op=fr_dialog&cmd=read_print_server_dialog&sessionID="+sessionID+"&pn="+currentPageIndex});return}var o=$.extend({pageType:0,pageIndex:"1-1",printerName:""},quietConfig);o.pageType=parseInt(o.pageType);if(isNaN(o.pageType)||o.pageType<0||o.pageType>2){o.pageType=0
}FR.ajax({url:FR.servletURL+"?op=fr_dialog&cmd=submit_print_server_dialog&sessionID="+sessionID,type:"POST",data:{range:["all","current","specify"][o.pageType],pageIndex:currentPageIndex,specify:o.pageIndex,serverPrinter:o.printerName},complete:function(res,status){}})},doSelectSheet:function(config,callback){var sheetIndex="";var sheetType=0;if(config.isPopUp!==false){var selectSheetDialog=new FR.Dialog({title:FR.i18nText("Fine-Engine_Platform_Setting"),text4OK:FR.i18nText("Fine-Engine_Basic_OK"),text4Cancel:FR.i18nText("Fine-Engine_Cancel"),onOK:function(){if(sheetType===1){sheetIndex=config.currentSheetIndex
}else{if(sheetType===2&&checkDialogValid()){sheetIndex=selectSheetDialog.getWidgetByName("specifiedSheets").getValue()}else{sheetIndex=""}}FR.ajax({url:_appendSessionIDToURL(config.printUrl,config.sessionID),type:"GET",data:{op:"fr_print",cmd:"print_sheets_setting",sheetIndex:sheetIndex},dataType:"jsonp",jsonp:"callback",success:function(res){if(res.status==="error"){FR.Msg.toast("Invalid sheet index!")}else{callback(res)}}})},destroyOnClose:true,width:380,height:165,confirm:true,border:true,closable:true,contentWidget:{type:"tablelayout",columnSize:[70,10,300],rowSize:[15,80],vgap:0,items:[[{el:$("<div>")}],[{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:"sheet:"}},{el:$("<div>")},{el:{type:"tablelayout",columnSize:[80,30,170],rowSize:[20,20,20],vgap:5,items:[[{el:{type:"radio",widgetName:"allSheetsRadio",text:FR.i18nText("Fine-Engine_All_Sheets"),selected:true,fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){selectSheetDialog.getWidgetByName("currentSheetRadio").setSelected(false);
selectSheetDialog.getWidgetByName("specifiedSheetsRadio").setSelected(false);resetSpecifiedSheetsField();sheetType=0}}}]}}],[{el:{type:"radio",widgetName:"currentSheetRadio",text:FR.i18nText("Fine-Engine_Current_Sheet"),fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){selectSheetDialog.getWidgetByName("allSheetsRadio").setSelected(false);selectSheetDialog.getWidgetByName("specifiedSheetsRadio").setSelected(false);
resetSpecifiedSheetsField();sheetType=1}}}]}}],[{el:{type:"radio",widgetName:"specifiedSheetsRadio",text:FR.i18nText("Fine-Engine_Specified_Sheets")+": ",fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){selectSheetDialog.getWidgetByName("allSheetsRadio").setSelected(false);selectSheetDialog.getWidgetByName("currentSheetRadio").setSelected(false);selectSheetDialog.getWidgetByName("specifiedSheets").setEnable(true);
sheetType=2}}}]}},{el:$("<div>")},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"specifiedSheets",regex:"^(\\d+-)?\\d+$",value:"",watermark:"("+FR.i18nText("Fine-Engine_Example")+": '2','7-10')",listeners:[{eventName:"afteredit",action:function(){checkDialogValid()}}]}}]]}}]]}});selectSheetDialog.setVisible(true);resetSpecifiedSheetsField();selectSheetDialog.getWidgetByName("allSheetsRadio").setSelected(true);if(config.needSelectSheet){selectSheetDialog.getWidgetByName("specifiedSheetsRadio").setSelected(true);
selectSheetDialog.getWidgetByName("specifiedSheets").setText(config.sheetIndex)}}else{sheetIndex=config.sheetIndex;FR.ajax({url:_appendSessionIDToURL(config.printUrl,config.sessionID),type:"GET",data:{op:"fr_print",cmd:"print_sheets_setting",sheetIndex:sheetIndex},dataType:"jsonp",jsonp:"callback",success:function(res){if(res.status==="error"){FR.Msg.toast("Invalid sheet index!")}else{callback(res)}}})}function resetSpecifiedSheetsField(){var textField=selectSheetDialog.getWidgetByName("specifiedSheets");
textField.setText("");textField.checkValid();textField.setEnable(false)}function checkDialogValid(){return selectSheetDialog.getWidgetByName("specifiedSheets").checkValid()}},doNewNativePrint:function(sessionID,config){if(FR.isEmpty(config.printUrl)){if(FR.isEmpty(config.serverURL)){return}config.printUrl=config.serverURL+FR.servletURL}if(FR.isEmpty(config.currentSheetIndex)){config.currentSheetIndex=1}FR.getDefaultNewNativePrintConfig(sessionID,config.printUrl,function(serverConfig){if(isNaN(serverConfig.printPort)){serverConfig.printPort=9092
}if(serverConfig.needSelectSheet||config.needSelectSheet){FR.doSelectSheet({isPopUp:config.isPopUp,needSelectSheet:config.needSelectSheet,currentSheetIndex:config.currentSheetIndex,sheetIndex:config.sheetIndex,printUrl:config.printUrl,sessionID:sessionID},function(){FR.doNewNativePrintImpl(sessionID,config,serverConfig)})}else{FR.doNewNativePrintImpl(sessionID,config,serverConfig)}})},doNewNativePrintImpl:function(sessionID,config,serverConfig){var NATIVE_PRINT_SOCKET_URL="http://localhost:"+serverConfig.printPort;
var NATIVE_PRINT_SOCKET_URL_HTTPS="https://localhost:"+serverConfig.printPort;var printUrl=config.printUrl;var isHttpsMode=window.location.protocol.startsWith("https");nativePrintLoadingDialog=new FR.Dialog({destroyOnClose:true,animate:false,title:"",titleHeight:0,border:false,resizeable:false,draggable:false,adaptivity:{enabled:true,minWidth:1000,minHeight:560,topGap:0,leftGap:40,bottomGap:40,rightGap:40},contentHtml:""});function doPrint(io){isLoadingNativePrint=true;if(nativePrintSocket==null){if(isHttpsMode){nativePrintSocket=io.connect(NATIVE_PRINT_SOCKET_URL_HTTPS,{secure:true})
}else{nativePrintSocket=io.connect(NATIVE_PRINT_SOCKET_URL)}}else{nativePrintSocket.removeAllListeners();if(!nativePrintSocket.connected){nativePrintSocket.connect()}}nativePrintSocket.on(socketIOEvent_aliveChecking,function(){if(isLoadingNativePrint){isLoadingNativePrint=false;nativePrintSocket.emit(socketIOEvent_getConfigData,FR.jsonEncode(FR.getPureConfig(config)))}});nativePrintSocket.on(socketIOEvent_getConfigData,function(e){var data=FR.jsonDecode(FR.cjkDecode(e.message));if(!config.isPopUp){FR.defaultNewNativePrint(sessionID,printUrl,config,serverConfig)
}else{if(data.config.quietPrint){FR.setPrintPaper(sessionID,data.config,config.printUrl,function(){FR.newNativePrintWithArgs({url:printUrl+"?sessionID="+sessionID+"&op=fr_applet&cmd=print",sessionID:sessionID,fine_auth_token:FR.CookieInfor.getCookieByName("fine_auth_token")})})}else{nativePrintLoadingDialog.destroy();config.printers=data.printers;config.paperSizeNames=data.paperSizeNames;for(var i in config.paperSizeNames){var paperSize=config.paperSizeNames[i];paperSize.text=paperSize.text+" ["+paperSize.width+"x"+paperSize.height+" "+FR.i18nText("Fine-Engine_Report_Unit_MM")+"]"
}config.paperSizeNames.push({text:FR.i18nText("Fine-Engine_Custom"),value:"custom"});config=$.extend(serverConfig,config);if(FR.isEmpty(config.printerName)&&config.printers.length>0){config.printerName=config.printers[0].text}FR.startNewNativePrintPreview(sessionID,config,printUrl)}}setTimeout(function(){nativePrintLoadingDialog.destroy()},5000)});nativePrintSocket.on("beforePrint",function(){nativePrintLoadingDialog.destroy()});nativePrintSocket.on("afterPrint",function(){fireAfterPrintEvent();FR.closeSession(sessionID,printUrl)
});nativePrintSocket.emit(socketIOEvent_aliveChecking);setTimeout(function(){if(isLoadingNativePrint){nativePrintLoadingDialog.setVisible(true);var fullServletUrl=_isCrossOrigin(printUrl)?_subPrintUrl(printUrl)+FR.servletURL:window.location.origin+FR.servletURL;var contentHtml="<iframe width='100%' height='100%'  src='"+fullServletUrl+"?op=resource&resource=/com/fr/web/core/dialog/nativePrintLoading.html'>";nativePrintLoadingDialog.setContent({type:"contentHtml",content:contentHtml});setTimeout(function(){FR.checkNativePrintLoading(sessionID,fullServletUrl)
},isHttpsMode?15000:10000);FR.reconnectNativePrintSocket()}},1000)}if(typeof define==="function"&&define.amd){require([FR.servletURL+"?op=resource&resource=/com/fr/web/core/js/socket.io.js"],function(io){doPrint(io)})}else{FR.$defaultImport("/com/fr/web/core/js/socket.io.js","js");doPrint(io)}},getPureConfig:function(config){var conf={};for(var key in config){if($.isFunction(config[key])){continue}conf[key]=config[key]}return conf},reconnectNativePrintSocket:function(){setTimeout(function(){if(isLoadingNativePrint){nativePrintSocket.disconnect();
setTimeout(function(){nativePrintSocket.connect();nativePrintSocket.emit(socketIOEvent_aliveChecking);FR.reconnectNativePrintSocket()},2000)}},1000)},startNewNativePrintPreview:function(sessionID,config,printUrl){var o=$.extend({currentPageIndex:"1",reportTotalPage:1,printers:[],printerName:"",copy:1,pageType:0,pageIndex:1,orientation:0,paperSize:"A4",fitPaperSize:true,scalePercent:100,marginTop:6.85,marginLeft:19.05,marginBottom:6.85,marginRight:19.05,customPaperSize:true},config);var previewDialog;
function checkDialogValid(){var isValid=true;var widgets=[previewDialog.getWidgetByName("specifiedPages"),previewDialog.getWidgetByName("printMarginTop"),previewDialog.getWidgetByName("printMarginLeft"),previewDialog.getWidgetByName("printMarginBottom"),previewDialog.getWidgetByName("printMarginRight"),previewDialog.getWidgetByName("printCopy")];for(var i=0;i<widgets.length;i++){if(!widgets[i].checkValid()){isValid=false}}if(!o.fitPaperSize){var scale=parseInt(previewDialog.getWidgetByName("scalePercent").getValue());
if(!(scale>=10&&scale<=200)){isValid=false}}previewDialog.getWidgetByName("startPrintButton").setEnable(isValid);return isValid}function updateScalePercent(){var scalePercentField=previewDialog.getWidgetByName("scalePercent");scalePercentField.setEnable(!o.fitPaperSize);if(o.fitPaperSize&&fitScalePercent){scalePercentField.setValue(fitScalePercent)}}function updateCustomPaperSizeArea(){var widthField=previewDialog.getWidgetByName("paperSizeWidth");var heightField=previewDialog.getWidgetByName("paperSizeHeight");
var paperSize=o.paperSizeNames[previewDialog.getWidgetByName("paperSettingCombo").getSelectedIndex()];o.customPaperSize=(paperSize.value==="custom");widthField.setEnable(o.customPaperSize);heightField.setEnable(o.customPaperSize);if(!o.customPaperSize){widthField.setText(paperSize.width);heightField.setText(paperSize.height)}}var labelMaxWidth=Math.max(FR.i18nTextWidth("Fine-Engine_FS_Generic_Simple_Printer"),FR.i18nTextWidth("Fine-Engine_Print_Copy"),FR.i18nTextWidth("Fine-Engine_Page_Number"),FR.i18nTextWidth("Fine-Engine_Report_Layout"),FR.i18nTextWidth("Fine-Engine_Report_Paper"),FR.i18nTextWidth("Fine-Engine_Enlarge_Or_Reduce"),FR.i18nTextWidth("Fine-Engine_Print_Margin"),FR.i18nTextWidth("Fine-Engine_FS_Generic_Simple_Printer"));
var labelWidth=Math.max(labelMaxWidth+30,67);var settingPaneConfig={type:"border",items:[{region:"north",height:140,background:"#F0F0F1",el:{type:"tablelayout",baseCls:"grey-pane",columnSize:[15,156,62,10,62,15],rowSize:[24,22,11,17,31,20,15],vgap:0,items:[[{el:$("<div>")}],[{el:$("<div>")},{el:{type:"label",fontsize:16,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Print")}}],[{el:$("<div>")}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",widgetName:"reportTotalPageLabel",value:FR.i18nText("Fine-Engine_Report_Total_Page_Number_X",o.reportTotalPage)}}],[{el:$("<div>")}],[{el:$("<div>")},{el:$("<div>")},{el:{type:"quickbutton",text:FR.i18nText("Fine-Engine_Print"),widgetName:"startPrintButton",listeners:[{eventName:"click",action:function(){if(!checkDialogValid()){return
}FR.confirmNativePrint(o,previewDialog,sessionID,printUrl);previewDialog.doClose()}}]}},{el:$("<div>")},{el:{type:"quickbutton",style:"white",text:FR.i18nText("Fine-Engine_Web_Close"),listeners:[{eventName:"click",action:function(){previewDialog.doClose()}}]}},{el:$("<div>")}]]}},{region:"south",height:50,el:{type:"tablelayout",baseCls:"grey-pane",columnSize:[15,305],rowSize:[5,20,5],vgap:10,items:[[{el:$("<div>")}],[{el:$("<div>")},{el:{type:"checkbox",widgetName:"quietPrintCheck",text:FR.i18nText("Fine-Engine_Report_Quiet_Print_Check_Tip"),manualSelect:true,listeners:[{eventName:"afteredit",action:function(){var isQuietPrint=this.getValue();
if(!isQuietPrint){FR.showQuietPrintConfirm(previewDialog)}else{previewDialog.getWidgetByName("quietPrintCheck").setSelected(false)}}}],selected:false}}],[{el:$("<div>")}]]}},{region:"center",el:{type:"tablelayout",columnSize:[15,labelWidth,273,15],rowSize:[2,20,20,100,20,50,50,60],vgap:15,items:[[{el:$("<div>")}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_FS_Generic_Simple_Printer")+":"}},{el:{type:"combo",widgetName:"printerCombo",items:o.printers,value:o.printers.length>0?o.printers[0]:""}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Print_Copy")+":"}},{el:{type:"text",width:"60px",fontSize:12,fontFamily:"SimSun",widgetName:"printCopy",regex:"^[1-9]\\d*$",value:o.copy,listeners:[{eventName:"afteredit",action:function(){checkDialogValid()
}}]}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Page_Number")+":"}},{el:{type:"tablelayout",columnSize:[130,3,140],rowSize:[20,20,20,20],vgap:5,items:[[{el:{type:"radio",widgetName:"allPagesRadio",text:FR.i18nText("Fine-Engine_All_Pages"),selected:true,fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){previewDialog.getWidgetByName("currentPageRadio").setSelected(false);
previewDialog.getWidgetByName("specifiedPagesRadio").setSelected(false);previewDialog.getWidgetByName("doublePrintRadio").setSelected(false);previewDialog.getWidgetByName("doublePrintCombo").setEnable(false);FR.resetSpecifiedPagesField(previewDialog)}}}]}}],[{el:{type:"radio",widgetName:"currentPageRadio",text:FR.i18nText("Fine-Engine_Current_Page"),fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){previewDialog.getWidgetByName("allPagesRadio").setSelected(false);
previewDialog.getWidgetByName("specifiedPagesRadio").setSelected(false);previewDialog.getWidgetByName("doublePrintRadio").setSelected(false);previewDialog.getWidgetByName("doublePrintCombo").setEnable(false);FR.resetSpecifiedPagesField(previewDialog)}}}]}}],[{el:{type:"radio",widgetName:"specifiedPagesRadio",text:FR.i18nText("Fine-Engine_Report_Specified_Pages"),fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){previewDialog.getWidgetByName("allPagesRadio").setSelected(false);
previewDialog.getWidgetByName("currentPageRadio").setSelected(false);previewDialog.getWidgetByName("doublePrintRadio").setSelected(false);previewDialog.getWidgetByName("doublePrintCombo").setEnable(false);previewDialog.getWidgetByName("specifiedPages").setEnable(true)}}}]}},{el:$("<div>")},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"specifiedPages",value:"",watermark:"("+FR.i18nText("Fine-Engine_Example")+": '2','7-10')",customIsValidate:function(value){return validatePageIndex(value,o.reportTotalPage)
},listeners:[{eventName:"afteredit",action:function(){checkDialogValid()}}]}}],[{el:{type:"radio",widgetName:"doublePrintRadio",text:FR.i18nText("Fine-Engine_Double_Side_Print"),fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){previewDialog.getWidgetByName("allPagesRadio").setSelected(false);previewDialog.getWidgetByName("currentPageRadio").setSelected(false);previewDialog.getWidgetByName("specifiedPagesRadio").setSelected(false);
previewDialog.getWidgetByName("specifiedPages").setEnable(false);previewDialog.getWidgetByName("doublePrintCombo").setEnable(true)}}}]}},{el:$("<div>")},{el:{type:"combo",widgetName:"doublePrintCombo",allowBlank:false,items:[{text:FR.i18nText("Fine-Engine_Odd_Pages"),value:"odd"},{text:FR.i18nText("Fine-Engine_Even_Pages"),value:"even"}]}}]]}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Report_Layout")+":"}},{el:{type:"tablelayout",columnSize:[60,60],rowSize:[20],items:[[{el:{type:"radio",widgetName:"portraitLayoutRadio",text:FR.i18nText("Fine-Engine_PageSetup_Portrait"),fontSize:12,fontFamily:"SimSun",selected:true,only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){previewDialog.getWidgetByName("landscapeLayoutRadio").setSelected(false)
}FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)}}]}},{el:{type:"radio",widgetName:"landscapeLayoutRadio",text:FR.i18nText("Fine-Engine_PageSetup_Landscape"),fontSize:12,fontFamily:"SimSun",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){previewDialog.getWidgetByName("portraitLayoutRadio").setSelected(false)}FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)}}]}}]]}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Report_Paper")+":"}},{el:{type:"tablelayout",columnSize:["fill"],rowSize:[20,20],vgap:10,items:[[{el:{type:"combo",widgetName:"paperSettingCombo",items:o.paperSizeNames,allowBlank:false,value:"A4",listeners:[{eventName:"afteredit",action:function(){updateCustomPaperSizeArea();
FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl,updateScalePercent)}}]}}],[{el:{type:"tablelayout",columnSize:[40,60,26,16,45,60,26],rowSize:[20],items:[[{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Report_Width")}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"paperSizeWidth",value:o.marginTop,regex:floatRegexText,disabled:true,listeners:[{eventName:"afteredit",action:function(){if(checkDialogValid()){FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl,updateScalePercent)
}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}},{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Height")}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"paperSizeHeight",disabled:true,value:o.marginLeft,regex:floatRegexText,listeners:[{eventName:"afteredit",action:function(){if(checkDialogValid()){FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl,updateScalePercent)
}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}}]]}}]]}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Enlarge_Or_Reduce")+":"}},{el:{type:"tablelayout",columnSize:["fill"],rowSize:[20,20],vgap:5,items:[[{el:{type:"checkbox",widgetName:"fitPaperSizeCheck",text:FR.i18nText("Fine-Engine_Fit_Paper_Size"),marginleft:0,listeners:[{eventName:"afteredit",action:function(){o.fitPaperSize=this.getValue();
if(!o.fitPaperSize){updateScalePercent();return}FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl,updateScalePercent)}}],selected:o.fitPaperSize}}],[{el:{type:"tablelayout",columnSize:[60,5,20],rowSize:[20],vgap:5,items:[[{el:{type:"text",width:"60px",fontSize:12,fontFamily:"SimSun",widgetName:"scalePercent",regex:"^\\d+$",value:o.scalePercent,disabled:o.fitPaperSize,listeners:[{eventName:"afteredit",action:function(){checkDialogValid();FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)
}}]}},{el:$("<div>")},{el:{type:"label",fontsize:14,fontFamily:"SimSun",textalign:"left",value:"%"}}]]}}]]}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Print_Margin")+":"}},{el:{type:"tablelayout",columnSize:[45,60,26,16,40,60,26],rowSize:[20,20],vgap:10,items:[[{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Report_Top")}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"printMarginTop",value:o.marginTop,regex:floatRegexText,customIsValidate:function(value){return floatRegex(value)
},listeners:[{eventName:"afteredit",action:function(){if(checkDialogValid()){FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}},{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Report_Left")}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"printMarginLeft",value:o.marginLeft,regex:floatRegexText,customIsValidate:function(value){return floatRegex(value)
},listeners:[{eventName:"afteredit",action:function(){if(checkDialogValid()){FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}}],[{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Bottom")}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"printMarginBottom",value:o.marginBottom,regex:floatRegexText,customIsValidate:function(value){return floatRegex(value)
},listeners:[{eventName:"afteredit",action:function(){if(checkDialogValid()){FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}},{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"left",value:FR.i18nText("Fine-Engine_Report_Right")}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"printMarginRight",value:o.marginRight,regex:floatRegexText,customIsValidate:function(value){return floatRegex(value)
},listeners:[{eventName:"afteredit",action:function(){if(checkDialogValid()){FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl)}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}}]]}}]]}}]};var previewSrc="";if(FR.Browser.isIE11Before()){previewSrc=printUrl+"?op=resource&resource=/com/fr/web/core/dialog/browserUnsupportPrintPreviewPrompt.html"}previewDialog=new FR.Dialog({destroyOnClose:true,animate:false,title:"",titleHeight:0,border:false,resizeable:false,draggable:false,adaptivity:{enabled:true,minWidth:1000,minHeight:620,topGap:0,leftGap:40,bottomGap:40,rightGap:40},contentWidget:{type:"border",widgetBackground:{background:"#ffffff"},items:[{region:"west",width:15+labelWidth+273+15,el:settingPaneConfig},{region:"center",el:$('<iframe id="nativePrintPreviewFrame" frameborder="no" src="'+previewSrc+'"></iframe>')}]}});
previewDialog.setVisible(true);previewDialog.getWidgetByName("printerCombo").setText(o.printerName);if(o.pageType===0){previewDialog.getWidgetByName("allPagesRadio").setSelected(true)}else{if(o.pageType===1){previewDialog.getWidgetByName("currentPageRadio").setSelected(true)}else{if(o.pageType===2){previewDialog.getWidgetByName("specifiedPagesRadio").setSelected(true);previewDialog.getWidgetByName("specifiedPages").setText(o.pageIndex)}else{if(o.reportTotalPage>1){previewDialog.getWidgetByName("doublePrintRadio").setSelected(true);
previewDialog.getWidgetByName("doublePrintCombo").setValue(o.pageType===4?"even":"odd")}else{previewDialog.getWidgetByName("allPagesRadio").setSelected(true)}}}}if(o.reportTotalPage<=1){previewDialog.getWidgetByName("doublePrintRadio").setEnable(false);previewDialog.getWidgetByName("doublePrintCombo").setEnable(false)}if(o.orientation===0){previewDialog.getWidgetByName("portraitLayoutRadio").setSelected(true)}else{previewDialog.getWidgetByName("landscapeLayoutRadio").setSelected(true)}for(var i in o.paperSizeNames){var paperSize=o.paperSizeNames[i];
if(_roughFloatEquals(paperSize.width,o.paperSize.width)&&_roughFloatEquals(paperSize.height,o.paperSize.height)){o.customPaperSize=false;previewDialog.getWidgetByName("paperSettingCombo").setValue(paperSize.value);break}}if(o.customPaperSize){previewDialog.getWidgetByName("paperSettingCombo").setValue("custom");var widthField=previewDialog.getWidgetByName("paperSizeWidth");var heightField=previewDialog.getWidgetByName("paperSizeHeight");widthField.setText(o.paperSize.width);heightField.setText(o.paperSize.height)
}updateCustomPaperSizeArea();FR.refreshNativePreviewFrame(o,sessionID,previewDialog,printUrl,updateScalePercent)},resetSpecifiedPagesField:function(previewDialog){var textField=previewDialog.getWidgetByName("specifiedPages");textField.setText("");textField.checkValid();textField.setEnable(false)},updateReportTotalPage:function(config,previewDialog,num){if(config==null||previewDialog==null||num==null||config.reportTotalPage===num){return}config.reportTotalPage=num;previewDialog.getWidgetByName("reportTotalPageLabel").setValue(FR.i18nText("Fine-Engine_Report_Total_Page_Number_X",num));
var isDoublePrintValid=num>1;previewDialog.getWidgetByName("doublePrintRadio").setEnable(isDoublePrintValid);previewDialog.getWidgetByName("doublePrintCombo").setEnable(isDoublePrintValid)},refreshNativePreviewFrame:function(config,sessionID,previewDialog,printUrl,callback){clearTimeout(nativePrintPreviewTimer);nativePrintPreviewTimer=setTimeout(function(){FR.refreshNativePreviewFrameImmediately(config,sessionID,previewDialog,printUrl,callback)},500)},refreshNativePreviewFrameImmediately:function(config,sessionID,previewDialog,printUrl,callback){var paperConfig={marginTop:previewDialog.getWidgetByName("printMarginTop").getText(),marginLeft:previewDialog.getWidgetByName("printMarginLeft").getText(),marginBottom:previewDialog.getWidgetByName("printMarginBottom").getText(),marginRight:previewDialog.getWidgetByName("printMarginRight").getText(),orientation:previewDialog.getWidgetByName("portraitLayoutRadio").isSelected()?0:1,paperSize:previewDialog.getWidgetByName("paperSizeWidth").getText()+","+previewDialog.getWidgetByName("paperSizeHeight").getText(),fitPaperSize:previewDialog.getWidgetByName("fitPaperSizeCheck").isSelected(),scalePercent:previewDialog.getWidgetByName("scalePercent").getText()};
FR.setPrintPaper(sessionID,paperConfig,printUrl,function(data){var previewSrc=printUrl+"?op=fr_print&cmd=no_client&preview=true&sessionID="+sessionID+"&_="+new Date().getTime();var iframe=document.getElementById("nativePrintPreviewFrame");iframe.src=iframe.src.replace(new RegExp(".*"),previewSrc);FR.updateReportTotalPage(config,previewDialog,data.reportTotalPage);if(callback){callback()}})},checkNativePrintLoading:function(sessionID,fullServletUrl){if(isLoadingNativePrint){FR.closeSession(sessionID,fullServletUrl);
nativePrintSocket.close();isLoadingNativePrint=false;var contentHtml="<iframe width='100%' height='100%' src='"+fullServletUrl+"?op=fr_print&cmd=native_print_loading_failed'>";nativePrintLoadingDialog.setContent({type:"contentHtml",content:contentHtml})}},confirmNativePrint:function(o,previewDialog,sessionID,printUrl){var index;if(previewDialog.getWidgetByName("allPagesRadio").isSelected()){index=""}else{if(previewDialog.getWidgetByName("currentPageRadio").isSelected()){index=o.currentPageIndex}else{if(previewDialog.getWidgetByName("specifiedPagesRadio").isSelected()){index=previewDialog.getWidgetByName("specifiedPages").getText()
}else{index=previewDialog.getWidgetByName("doublePrintCombo").getValue()}}}var configp={printerName:previewDialog.getWidgetByName("printerCombo").getText(),copy:previewDialog.getWidgetByName("printCopy").getText(),index:index,orientation:previewDialog.getWidgetByName("portraitLayoutRadio").isSelected()?0:1,paperSize:previewDialog.getWidgetByName("paperSizeWidth").getText()+","+previewDialog.getWidgetByName("paperSizeHeight").getText(),fitPaperSize:previewDialog.getWidgetByName("fitPaperSizeCheck").isSelected(),scalePercent:previewDialog.getWidgetByName("scalePercent").getText(),marginTop:previewDialog.getWidgetByName("printMarginTop").getText(),marginLeft:previewDialog.getWidgetByName("printMarginLeft").getText(),marginBottom:previewDialog.getWidgetByName("printMarginBottom").getText(),marginRight:previewDialog.getWidgetByName("printMarginRight").getText(),quietPrint:previewDialog.getWidgetByName("quietPrintCheck").isSelected(),url:printUrl+"?sessionID="+sessionID+"&op=fr_applet&cmd=print",sessionID:sessionID,reportTotalPage:o.reportTotalPage,fine_auth_token:FR.CookieInfor.getCookieByName("fine_auth_token")};
FR.newNativePrintWithArgs(configp)},defaultNewNativePrint:function(sessionID,printUrl,config,serverConfig){var configp=$.extend(serverConfig,{sessionID:sessionID,url:printUrl+"?sessionID="+sessionID+"&op=fr_applet&cmd=print",fine_auth_token:FR.CookieInfor.getCookieByName("fine_auth_token")});configp=$.extend(configp,config);if(configp.pageType===0){configp.index=""}else{if(configp.pageType===1){configp.index=configp.currentPageIndex?configp.currentPageIndex:""}else{if(configp.pageType===2){configp.index=configp.pageIndex
}else{if(configp.reportTotalPage>1){configp.index=configp.pageType===3?"odd":"even"}else{configp.index=""}}}}if(configp.paperSize.width&&configp.paperSize.height){configp.paperSize=configp.paperSize.width+","+configp.paperSize.height}FR.setPrintPaper(sessionID,configp,config.printUrl,function(){FR.newNativePrintWithArgs(configp)})},getDefaultNewNativePrintConfig:function(sessionID,printUrl,callback){FR.ajax({url:_appendSessionIDToURL(printUrl,sessionID),type:"GET",data:{op:"fr_print",cmd:"get_native_print_attr"},dataType:"jsonp",jsonp:"callback",success:function(res){callback(res)
}})},newNativePrintWithArgs:function(configp){var valid=validatePrintConfig(configp);if(!valid){FR.Msg.toast("Invalid page index!");return}if(fireBeforePrintEvent()===false){return}nativePrintSocket.emit("startPrint",FR.jsonEncode(FR.getPureConfig(configp)))},showQuietPrintConfirm:function(previewDialog){var quietPrintConfirmDialog=new FR.Dialog({title:FR.i18nText("Fine-Engine_Save_Client_Habit"),text4OK:FR.i18nText("Fine-Engine_FS_Generic_Simple_Save"),text4Cancel:FR.i18nText("Fine-Engine_FS_Generic_Simple_Cancel"),onCancel:function(){previewDialog.getWidgetByName("quietPrintCheck").setSelected(false)
},onOK:function(){previewDialog.getWidgetByName("quietPrintCheck").setSelected(true)},destroyOnClose:true,addIframeCoverForIE:true,animate:false,width:450,height:180,confirm:true,border:true,closable:true,textAlign:"center",align:"center",contentWidget:{type:"tablelayout",columnSize:[30,410,10],rowSize:[30,100,40],vgap:0,items:[[{el:$("<div>")}],[{el:$("<div>")},{el:$("<div>"+FR.i18nText("Fine-Engine_Report_Quiet_Print_Confirm_Tip")+"</div>")}],[{el:$("<div>")}]]}});quietPrintConfirmDialog.setVisible(true)
},doNoClientPrint:function(sessionID,popupMarginSetup,ieQuietPrint,printUrl){if(printUrl==null){printUrl=FR.servletURL}if(ieQuietPrint==null){ieQuietPrint=false}if(popupMarginSetup){var margin={top:6.85,left:19.05,bottom:6.85,right:19.05};function checkDialogValid(dialog){var topW=dialog.getWidgetByName("PrintMarginTop");var leftW=dialog.getWidgetByName("PrintMarginLeft");var bottomW=dialog.getWidgetByName("PrintMarginBottom");var rightW=dialog.getWidgetByName("PrintMarginRight");var isValid=true;
var widgets=[topW,leftW,bottomW,rightW];for(var i=0;i<widgets.length;i++){if(!widgets[i].checkValid()){isValid=false;break}}dialog.win.okButton.setEnable(isValid);return isValid}var Margin_W=Math.max(FR.i18nTextWidth(FR.i18nText("Fine-Engine_Print_Margin")+": ")+20,100);var top_bottom_W=Math.max(FR.i18nTextWidth(FR.i18nText("Fine-Engine_Report_Top")+":")+20,FR.i18nTextWidth(FR.i18nText("Fine-Engine_Bottom")+":")+20,40);var left_right_W=Math.max(FR.i18nTextWidth(FR.i18nText("Fine-Engine_Report_Right")+": ")+10,FR.i18nTextWidth(FR.i18nText("Fine-Engine_Report_Left")+": ")+10,60);
var mm_W=Math.max(FR.i18nTextWidth(FR.i18nText("Fine-Engine_Report_Unit_MM"))+5,30);var dialog=new FR.Dialog({title:FR.i18nText("Fine-Engine_Platform_Setting"),confirm:true,resizeable:false,width:450,height:180,contentWidget:{type:"tablelayout",columnSize:[Margin_W,top_bottom_W,60,mm_W,left_right_W,60,mm_W],rowSize:[15,20,20],vgap:15,items:[[{el:$("<div>")}],[{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Print_Margin")+": "}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Top")+": "}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"PrintMarginTop",regex:floatRegexText,value:margin.top,customIsValidate:function(value){return floatRegex(value)
},listeners:[{eventName:"afteredit",action:function(){checkDialogValid(dialog)}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Left")+": "}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"PrintMarginLeft",regex:floatRegexText,value:margin.left,customIsValidate:function(value){return floatRegex(value)},listeners:[{eventName:"afteredit",action:function(){checkDialogValid(dialog)
}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}}],[{el:$("<div>")},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Bottom")+": "}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"PrintMarginBottom",regex:floatRegexText,value:margin.bottom,customIsValidate:function(value){return floatRegex(value)},listeners:[{eventName:"afteredit",action:function(){checkDialogValid(dialog)
}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Right")+": "}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"PrintMarginRight",regex:floatRegexText,value:margin.right,customIsValidate:function(value){return floatRegex(value)},listeners:[{eventName:"afteredit",action:function(){checkDialogValid(dialog)}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:FR.i18nText("Fine-Engine_Report_Unit_MM")}}]]},onOK:function(){if(!checkDialogValid(dialog)){return false
}var marginConfig={marginTop:dialog.getWidgetByName("PrintMarginTop").getValue(),marginLeft:dialog.getWidgetByName("PrintMarginLeft").getValue(),marginBottom:dialog.getWidgetByName("PrintMarginBottom").getValue(),marginRight:dialog.getWidgetByName("PrintMarginRight").getValue()};FR.doURLNoClientPrint(sessionID,marginConfig,printUrl,ieQuietPrint)}});dialog.setVisible(true)}else{FR.doURLNoClientPrint(sessionID,{},printUrl,ieQuietPrint)}},doURLNoClientPrint:function(sessionID,paperConfig,printUrl,ieQuietPrint){FR.setPrintPaper(sessionID,paperConfig,printUrl,function(){if(_isCrossOrigin(printUrl)){checkPDFPrintRegisterCrossOrigin(printUrl)
}else{if(!checkPDFPrintRegister()){FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));return}}if(fireBeforePrintEvent()===false){return}if(FR.Browser.isIE()&&!FR.Browser.isEdge()){if(FR.Report.Plugin.Print.pdfURLPrint){FR.Report.Plugin.Print.pdfURLPrint(sessionID);fireAfterPrintEvent();return}FR.doPDFPrintForIE(sessionID,printUrl,!ieQuietPrint)}else{FR.doPDFPrintForOthers(sessionID,printUrl)}fireAfterPrintEvent()})},closeSession:function(sessionID,printUrl){if(window.contentPane&&sessionID===contentPane.currentSessionID){return
}if(!_isCrossOrigin(printUrl)){FR.ajax({async:false,url:_parseServletURLbyPrintUrl(printUrl),data:{op:"closesessionid",sessionID:sessionID}})}else{FR.ajax({url:_parseServletURLbyPrintUrl(printUrl),data:{op:"closesessionid",sessionID:sessionID},dataType:"jsonp",jsonp:"callback"})}},doPDFPrintForOthers:function(sessionID,printUrl){var finalUrl=printUrl+"?op=fr_print&cmd=no_client&sessionID="+sessionID;if(_shouldOpenInNewTab(printUrl)){window.open(finalUrl,"_blank")}else{var $printFrame=$("iframe#printPdf");
if($printFrame.length>0){$printFrame.attr("src",finalUrl)}else{$printFrame=$('<iframe id="printPdf" src = "'+finalUrl+'" height="0px"></iframe>');$printFrame.appendTo($("body"))}$printFrame.load(function(){FR.closeSession(sessionID,printUrl);if(_needCallPrintManually()){$("#printPdf")[0].contentWindow.print()}})}},doPDFPrintForIE:function(sessionID,printUrl,isPopUp){if($PrintDiv==null){$PrintDiv=$("<div>").appendTo("body")}FR.showDialog(FR.i18nText("Fine-Engine_Printing"),250,100,FR.i18nText("Fine-Engine_Loading_Component")+"...");
FR.ajax({url:printUrl,data:{sessionID:sessionID,op:"fr_pdfprint",cmd:"pt_print",frandom:Math.random()},type:"POST",complete:function(res,status){if(status=="success"){var resText=res.responseText;if(resText=="timeout"){FR.closeDialog();return}$PrintDiv[0].innerHTML=res.responseText;$PDFReader=$PrintDiv.find("Object");try{$PDFReader[0].gotoFirstPage();FR.showDialog(FR.i18nText("Fine-Engine_Printing"),250,100,FR.i18nText("Fine-Engine_Loading_PDF")+"...");checkPDFPrint.defer(300,this,[sessionID,isPopUp])
}catch(e){var content='<div style="text-align:center;">'+FR.i18nText("Fine-Engine_Please_Install")+' <a href="http://www.adobe.com/products/reader/" target="_blank">Adobe Reader</a>.'+"</div>";FR.showDialog(FR.i18nText("Fine-Engine_Alert"),200,80,content)}}}})},setPrintPaper:function(sessionID,paperConfig,printUrl,callback){var data={op:"fr_print",cmd:"print_paper_setting"};$.extend(data,paperConfig);FR.ajax({url:_appendSessionIDToURL(printUrl,sessionID),type:"GET",data:data,dataType:"jsonp",jsonp:"callback",success:function(res){if(res.status=="success"){fitScalePercent=res.fitScalePercent;
callback(res)}}})},doURLPrint:function(config){config.data.viewlets=config.data.reportlets;if(_urlNeedCompatible(config.printUrl)){config.printUrl=_subPrintUrl(config.printUrl)+FR.servletURL}config.callback=function(sessionID){if(sessionID==null){return}if(config.printType===0){FR.doNoClientPrint(sessionID,config.isPopUp,config.ieQuietPrint,config.printUrl)}else{if(!config.printUrl.startsWith("http")){FR.Msg.toast("invalid url");return}var o={isPopUp:config.isPopUp,printUrl:config.printUrl,printerName:config.printerName,pageType:config.pageType,pageIndex:config.pageIndex,copy:config.copy,needSelectSheet:config.needSelectSheet,sheetIndex:config.sheetIndex};
FR.doNewNativePrint(sessionID,o)}};__getSessionID__(config.printUrl,config)},doPDFPrint:function(sessionID,popupSetup){var isShowDialog=false;FR.ajax({url:FR.servletURL,data:{op:"fr_pdfprint",cmd:"pdf_print_setting"},type:"POST",async:false,complete:function(res,status){isShowDialog=res.responseText==="true"}});var config={"url":FR.servletURL+"?sessionID="+sessionID,"isPopUp":isShowDialog};FR.doURLPDFPrint(config)},doSimplePDFPrint:function(sessionID){if(!checkPDFPrintRegister()){FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));
return}var needKeepSession=window.contentPane&&sessionID===contentPane.currentSessionID;window.open(FR.servletURL+"?op=fr_pdfprint&cmd=native&sessionID="+sessionID+"&needKeepSession="+needKeepSession,"_blank")},doURLPDFPrint:function(config){var url=arguments[0];var isPopUp;if(typeof url=="string"){url=_parseServletURLbyPrintUrl(url)+url.substr(url.indexOf("?"));isPopUp=arguments[1];config=arguments[2]}else{url=_parseServletURLbyPrintUrl(config.url)+(config.url).substr((config.url).indexOf("?"));
isPopUp=config.isPopUp}if(_isCrossOrigin(url)){FR.Msg.toast(FR.i18nText("Fine-Engine_Cross_Domain_Unsupported_Tip"));return}if(!checkPDFPrintRegister()){FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));return}var sessionID=__getSessionID__(url,config);if(sessionID==null){return}var needKeepSession=window.contentPane&&sessionID===contentPane.currentSessionID;if(!supportPDFPrint()){window.open(FR.servletURL+"?op=fr_pdfprint&cmd=native&sessionID="+sessionID+"&needKeepSession="+needKeepSession,"_blank");
return}if(FR.Report.Plugin.Print.pdfURLPrint){FR.Report.Plugin.Print.pdfURLPrint(sessionID);return}FR.doPDFPrintForIE(sessionID,FR.servletURL,isPopUp)},doURLAppletPrint:function(config){var url=arguments[0];var isShowDialog;var pageIndex;var loadJVM;var printerName;var choosePrinter;var copies;if(typeof url=="string"){isShowDialog=arguments[1];if(isShowDialog==undefined||!(typeof isShowDialog=="boolean")){isShowDialog=isShowAppletPrintSetting()}config=arguments[2]}else{url=config.url;isShowDialog=config.isPopUp;
pageIndex=config.pageIndex;loadJVM=config.loadJVM;choosePrinter=config.choosePrinter;printerName=config.printerName;copies=config.copies?config.copies:1;if(isShowDialog==undefined||!(typeof isShowDialog=="boolean")){isShowDialog=isShowAppletPrintSetting()}}if(isShowDialog.exception==="FAILPASS"){FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));return}var index=0;var isIE9=FR.Browser.isIE9();if(isShowDialog){var dialog=new FR.Dialog({title:FR.i18nText("Fine-Engine_Platform_Setting"),confirm:true,resizeable:false,width:450,height:190,contentWidget:{type:"tablelayout",columnSize:[20,100,155,150],rowSize:[10,20,20,20],vgap:10,items:[[{el:$("<div>")}],[{el:$("<div>")},{el:{type:"radio",widgetName:"All_Pages",text:FR.i18nText("Fine-Engine_Report_HJS_All_Pages"),selected:true,fontSize:12,fontFamily:"SimSun",listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){dialog.getWidgetByName("Specified_Pages").setSelected(false)
}}}]}},{el:$("<div>")},{el:$("<div>")}],[{el:$("<div>")},{el:{type:"radio",widgetName:"Specified_Pages",text:FR.i18nText("Fine-Engine_Report_HJS_Specified_Pages")+":",fontSize:12,fontFamily:"SimSun",listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){dialog.getWidgetByName("All_Pages").setSelected(false)}}}]}},{el:{type:"text",width:"155px",fontSize:12,fontFamily:"SimSun",widgetName:"CurrentPageNum",value:"1-1"}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:"("+FR.i18nText("Fine-Engine_Example")+": '2','7-10')"}}],[{el:$("<div>")},{el:{type:"label",value:FR.i18nText("Fine-Engine_Print_Copy")+": ",fontSize:12,fontFamily:"SimSun",textalign:"left"}},{el:{type:"text",width:"155px",fontSize:12,fontFamily:"SimSun",widgetName:"Copies_txt",value:"1"}}]]},onOK:function(){FR.closeDialog();
if(dialog.getWidgetByName("Specified_Pages").isSelected()){index=dialog.getWidgetByName("CurrentPageNum").getValue()}copies=dialog.getWidgetByName("Copies_txt").getValue();if($appletDiv==null){$appletDiv=$("<div>").appendTo("body")}var sessionID=__getSessionID__(url,config);if(url.indexOf("reportlet")!=-1||url.indexOf("resultlets")!=-1||(config&&config.data&&config.data.reportlets)){if(url.indexOf("?")!=-1){url+="&_="+new Date().getTime()}else{url+="?_="+new Date().getTime()}var sessionID=__getSessionID__(url,config);
url=FR.servletURL+"?sessionID="+sessionID}var isSingleSheet=isSingleSheetFunc(sessionID);var attributes=null;var parameters=null;if(supportCodebase()){attributes={codebase:FR.server+"/jre.exe"};parameters={code:"com.fr.print.PrintApplet",archive:FR.server+appletJarName,url:FR.serverURL+url+"&op=fr_applet&cmd=print",isIE9:isIE9,isShowDialog:isShowDialog||choosePrinter,printerName:printerName,index:index,copies:copies,isSingleSheet:isSingleSheet}}else{attributes={code:"com.fr.print.PrintApplet.class",archive:FR.server+appletJarName,width:0,height:0};
parameters={url:FR.serverURL+url+"&op=fr_applet&cmd=print",isIE9:isIE9,isShowDialog:isShowDialog||choosePrinter,printerName:printerName,index:index,copies:copies,isSingleSheet:isSingleSheet}}deployJava.runApplet(attributes,parameters,"1.4");FR.closeDialog();var isOverFunc=function(){if(!isAppletPrintOver(sessionID)){return}clearInterval(sh);if(_g()){_g().fireEvent("afterappletprint")}$("applet").remove()};var sh=setInterval(isOverFunc,3000)},onCancel:function(){index=0;FR.closeDialog()}});dialog.setVisible(true)
}else{if(pageIndex!=undefined&&(typeof pageIndex=="number")){index=pageIndex}var sessionID=__getSessionID__(url,config);if(url.indexOf("reportlet")!=-1||url.indexOf("resultlets")!=-1||(config&&config.data&&config.data.reportlets)){if(url.indexOf("?")!=-1){url+="&_="+new Date().getTime()}else{url+="?_="+new Date().getTime()}var sessionID=__getSessionID__(url,config);url=FR.servletURL+"?sessionID="+sessionID}var isSingleSheet=isSingleSheetFunc(sessionID);if(supportCodebase()){attributes={codebase:FR.server+"/jre.exe"};
parameters={code:"com.fr.print.PrintApplet",archive:FR.server+appletJarName,url:FR.serverURL+url+"&op=fr_applet&cmd=print",isIE9:isIE9,isShowDialog:isShowDialog,printerName:printerName,index:index,isSingleSheet:isSingleSheet}}else{var attributes={code:"com.fr.print.PrintApplet.class",archive:FR.server+appletJarName,width:0,height:0};var parameters={url:FR.serverURL+url+"&op=fr_applet&cmd=print",isIE9:isIE9,index:index,isShowDialog:isShowDialog,printerName:printerName,isSingleSheet:isSingleSheet,copies:copies}
}deployJava.runApplet(attributes,parameters,"1.4");FR.closeDialog();var isOverFunc=function(){if(!isAppletPrintOver(sessionID)){return}clearInterval(sh);if(_g()){_g().fireEvent("afterappletprint")}$("applet").remove()};var sh=setInterval(isOverFunc,3000)}},doAppletPrint:function(sessionID,choosePrinter,printerName){var url=FR.servletURL+"?sessionID="+sessionID;if(_g().fireEvent("beforeappletprint")===false){return}var config={"url":url,"choosePrinter":choosePrinter,"printerName":printerName};FR.doURLAppletPrint(config)
},doFlashPrint:function(sessionID,currentPageIndex){if(_g().fireEvent("beforeflashprint")===false){return}var fitPaper=isFitPaper();FR.doPrintURL(FR.servletURL+"?sessionID="+sessionID,currentPageIndex,fitPaper)},doPrintURL:function(url,currentPageIndex,fitPaper,config){var config=arguments[3];if(config==undefined){config={"url":url,"pageIndex":currentPageIndex,"isAutoZoom":fitPaper}}FR.doURLFlashPrint(config)},isInstalledFlash:function(){if(this.$i_flash===true){return true}var i_flash=false;var n=navigator;
if(n.plugins&&n.plugins.length){for(var ii=0;ii<n.plugins.length;ii++){if(n.plugins[ii]&&n.plugins[ii].name.indexOf("Shockwave Flash")!=-1){i_flash=true;break}}}else{if(window.ActiveXObject){for(var ii=11;ii>=2;ii--){try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if(fl){i_flash=true;break}}catch(e){}}}}this.$i_flash=i_flash;return i_flash},flashInstall:function(){var content;FR.ajax({type:"POST",url:FR.servletURL+"?op=flash_print&cmd=get_fp_installpath",complete:function(res,status){if(status=="success"){var path=res.responseText;
if(typeof path=="string"&&path.length>0&&path.length<150){content='<div style="text-align:center;">'+FR.i18nText("Fine-Engine_Please_Install")+' <a href="'+path+'">FlashPlayer</a>.'+FR.i18nText("Fine-Engine_Report_Restart_Browser_After_Installation")+"</div>"}}if(!content){content='<div style="text-align:center;">'+FR.i18nText("Fine-Engine_Please_Install")+' <a href="http://get.adobe.com/flashplayer/" target="_blank">FlashPlayer</a>.'+FR.i18nText("Fine-Engine_Report_Restart_Browser_After_Installation")+"</div>"
}FR.showDialog(FR.i18nText("Fine-Engine_Alert"),305,75,content)}})},doURLFlashPrint:function(config){var url=arguments[0];var currentPageIndex;var isShowDialog;var isAutoZoom;if(typeof url=="string"){isShowDialog=arguments[1];isAutoZoom=isFitPaper();if(isShowDialog==undefined||!(typeof isShowDialog=="boolean")){isShowDialog=isShowFlashPrintSetting()}config=arguments[2]}else{url=config.url;currentPageIndex=config.pageIndex;isShowDialog=config.isPopUp;isAutoZoom=config.isAutoZoom;if(isShowDialog==undefined||!(typeof isShowDialog=="boolean")){isShowDialog=isShowFlashPrintSetting()
}if(isAutoZoom==undefined||!(typeof isAutoZoom=="boolean")){isAutoZoom=isFitPaper()}}if(_isCrossOrigin(url)){FR.Msg.toast(FR.i18nText("Fine-Engine_Cross_Domain_Unsupported_Tip"));return}if(FR.isInstalledFlash()===true){if($flashIframe==null){FR.__flash__=function(){FR.doPrintURL.call(this,url,currentPageIndex,isAutoZoom,config);delete FR.__flash__};$flashIframe=$("<iframe>").css({position:"absolute",left:-1000,top:-1000}).attr("src",FR.servletURL+"?op=resource&resource=/com/fr/web/core/printer.html").appendTo("body")
}else{var checkVersion=FR.Browser.isIE()&&(FR.Browser.isIE8Before()||!$.support.boxModel);var fm=checkVersion?$flashIframe[0].contentWindow["flashMovie"]:$flashIframe[0].contentDocument["flashMovie"];if(fm!=null&&fm.doLoadFlash!=null){var servletURL=url.split("?")[0];currentPageIndex=currentPageIndex||1;var sessionID=__getSessionID__(url,config);if(sessionID==null){return}if(sessionID===""){FR.Msg.toast(FR.i18nText("Fine-Engine_Session_Timeout"));return}var isPPAPIPrint=isPrintAsPPAPI();FR.ajax({type:"POST",url:servletURL,data:{sessionID:sessionID,op:"flash_print",cmd:"get_fp_pageinfo"},complete:function(res,status){if(!FR.versionRemind(res.responseText)){return
}var message_array=res.responseText.split("?");var info_array=message_array[0].split(";");if(info_array[0].indexOf("FAILPASS")!=-1){FR.Msg.toast(FR.i18nText("Fine-Engine_Export_Print_Not_Support"));return}var init_page_setting="1-"+info_array[0];var offset=message_array.length>1?message_array[1].split(";"):["0.0","0.0"];var print_fn=function(page_setting,isAutoZoom,paperinfo,isPrintAsImage,isPPAPIPrint){FR.showDialog(FR.i18nText("Fine-Engine_Print"),250,100,FR.i18nText("Fine-Engine_Report_Start_Print")+"...");
fm.doLoadFlash(servletURL,sessionID+"&id="+(new Date().getTime())+"&cmd=fs_print",FR.string2ints(page_setting).join(","),isAutoZoom,paperinfo,isPrintAsImage,isPPAPIPrint);$flashIframe=null;if(_g()){_g().fireEvent("afterflashprint")}};if(isShowDialog){var dialog=new FR.Dialog({title:FR.i18nText("Fine-Engine_Platform_Setting"),confirm:true,resizeable:false,width:450,height:280,contentWidget:{type:"border",width:420,height:240,items:[{region:"north",el:{type:"tablelayout",columnSize:[20,100,155,150],rowSize:[10,20,20,20],height:120,vgap:10,items:[[{el:$("<div>")}],[{el:$("<div>")},{el:{type:"radio",fontSize:12,fontFamily:"SimSun",widgetName:"All_Pages",text:FR.i18nText("Fine-Engine_Report_HJS_All_Pages"),selected:true,only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){dialog.getWidgetByName("Current_Page").setSelected(false);
dialog.getWidgetByName("Specified_Pages").setSelected(false)}}}]}},{el:$("<div>")},{el:$("<div>")}],[{el:$("<div>")},{el:{type:"radio",fontSize:12,fontFamily:"SimSun",widgetName:"Current_Page",text:FR.i18nText("Fine-Engine_Report_HJS_Current_Page")+":",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){dialog.getWidgetByName("All_Pages").setSelected(false);dialog.getWidgetByName("Specified_Pages").setSelected(false)}}}]}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",value:FR.i18nText("Fine-Engine_Page_Number")+" "+FR.i18nText("Fine-Engine_Is")+" "+currentPageIndex}},{el:$("<div>")}],[{el:$("<div>")},{el:{type:"radio",fontSize:12,fontFamily:"SimSun",widgetName:"Specified_Pages",text:FR.i18nText("Fine-Engine_Report_HJS_Specified_Pages")+":",only_be_selected:true,listeners:[{eventName:FR.Events.STATECHANGE,action:function(){if(this.isSelected()){dialog.getWidgetByName("All_Pages").setSelected(false);
dialog.getWidgetByName("Current_Page").setSelected(false)}}}]}},{el:{type:"text",fontSize:12,fontFamily:"SimSun",widgetName:"SpecifiedPagesNum",value:"1-2"}},{el:{type:"label",fontsize:12,fontFamily:"SimSun",textalign:"right",value:"("+FR.i18nText("Fine-Engine_Example")+" : '2','7-10')"}}]]}},{region:"center",el:{type:"tablelayout",columnSize:[16,300],rowSize:[20,20],vgap:0,items:[[{el:$("<div>")},{el:{type:"checkbox",fontSize:12,fontFamily:"SimSun",widgetName:"AsImage",text:FR.i18nText("Fine-Engine_Print_As_Image"),selected:false,disabled:false}}],[{el:$("<div>")},{el:{type:"checkbox",widgetName:"FitPaperSize",fontSize:12,fontFamily:"SimSun",text:FR.i18nText("Fine-Engine_Report_Print_To_Fit_Paper_Size"),selected:isFitPaper(),disabled:false}}]]}},{region:"south",el:{type:"tablelayout",columnSize:[20,300],rowSize:[25],height:35,items:[[{el:$("<div>")},{el:{type:"label",fontsize:16,fontFamily:"SimSun",color:"red",value:FR.i18nText("Fine-Engine_Print_Set_Printer_Offset")+": X="+offset[0]+"mm Y="+offset[1]+"mm"}}]]}}]},onOK:function(){FR.closeDialog();
if(dialog.getWidgetByName("Current_Page").isSelected()){init_page_setting=currentPageIndex+""}else{if(dialog.getWidgetByName("Specified_Pages").isSelected()){init_page_setting=dialog.getWidgetByName("SpecifiedPagesNum").getValue()}}var printAsImage=dialog.getWidgetByName("AsImage").isSelected();var isFit=dialog.getWidgetByName("FitPaperSize").isSelected();print_fn(init_page_setting,isFit,info_array[1]?info_array[1]:"",printAsImage,isPPAPIPrint)},onCancel:function(){FR.closeDialog()}});dialog.setVisible(true)
}else{print_fn(init_page_setting,isAutoZoom,info_array[1]?info_array[1]:"",false,isPPAPIPrint)}}})}else{FR.flashInstall()}}}else{FR.flashInstall()}}})})(jQuery);
(function(f){var e="，";var n={};function l(r){var q=parseInt(r);if(isNaN(q)){q=0}return q}function d(){var q=document.createElement("canvas");return !!(q.getContext&&q.getContext("2d"))}function k(s,t){if(s){t=parseFloat(t)||0;if(typeof(t)==="number"){var r="rotate("+t+"deg)";var q="0% 0%";s.css({"transform":r,"-transform-origin":q,"-webkit-transform":r,"-webkit-transform-origin":q,"-ms-transform":r,"-ms-transform-origin":q,"-moz-transform":r,"-moz-transform-origin":q,"-o-transform":r,"-o-transform-origin":q})
}}}function g(E,u,v){if(E&&FR.Browser.isIE8Before()){u=parseFloat(u)||0;v=parseFloat(v)||0;if(typeof(u)==="number"&&typeof(v)==="number"){var B=u*(Math.PI/180);var A=Math.cos(B),z=-1*Math.sin(B),t=Math.sin(B),r=A;v=v!=0&&v<=0.6?0.6:v;var s="progid:DXImageTransform.Microsoft.Chroma(color='white') progid:DXImageTransform.Microsoft.Matrix(M11="+A+",M12="+z+",M21="+t+",M22="+r+",SizingMethod='auto expand') alpha(opacity="+v*100+")";E.css({"background":"white","filter":s});var D=l(E.css("left"));var C=l(E.css("top"));
var q=D*Math.sin(B);var w=D*(1-Math.cos(B));C=C+q;D=D+w;E.css({"top":C+"px","left":D+"px"})}}}function j(u,r,q){var t=u.hasClass("watermark-abs-outdiv");if(t){if(window.watermarkCanvas!=null){window.watermarkCanvas[0].width=window.watermarkCanvas[0].height=0}}var s=f("<canvas/>",{"class":"watermark-canvas"}).prop({width:r,height:q});if(t){window.watermarkCanvas=s}u.append(s);return s[0].getContext("2d")}function a(z,v,s,A){var w=z+s.blockWidth/2;for(var t=0;t<s.textLines.length;t++){var q=s.textLines[t];
var u=A.measureText(q).width;var r=w-u/2;A.fillText(q,r,v);v+=s.lineHeight}}function c(t,s,q){var w=t.length;var v=w*s;var u=0;for(var r=0;r<w;r++){u=Math.max(q.measureText(t[r]).width,u)}return[u,v]}function i(u,s,r,B){var C=j(u,r,B);q(C,s);var A=-(s.blockWidth+s.xSpace)/2+s.startX;var v=0;for(var w=s.startY;w<s.endY;w+=(s.ySpace+s.blockHeight)){v++;var t=v%2===0?A:s.startX;for(var z=t;z<s.endX;z+=(s.xSpace+s.blockWidth)){a(z,w,s,C)}}function q(x,E){x.rotate(-E.angle*Math.PI/180);x.fillStyle=E.color;
x.font=E.fontSize+" "+E.fontFamily;E.textLines=E.text.replace(/&nbsp;/g," ").split("<br>");var y=x.measureText(e).width;E.fontWidth=y;E.lineHeight=y*1.4;E.xSpace=E.horizontalGap;E.ySpace=E.verticalGap;var D=c(E.textLines,E.lineHeight,x);E.blockWidth=D[0];E.blockHeight=D[1]}}function m(s,q,z){var r=f("<div/>").addClass("watermark-outdiv");s.append(r);r.css({"font-size":q.fontSize,"font-family":q.fontFamily,"color":q.color});k(r,-q.angle);h(r,q);var B=q.startX-parseInt((q.width+q.xSpace)/2);var u=0;
for(var w=q.startY;w<q.endY;w+=(q.ySpace+q.height)){u++;var t=u%2===0?B:q.startX;for(var A=t;A<q.endX;A+=q.width+q.xSpace){var v=f("<div/>").addClass("watermark-div").append(q.text);v.css({"background":"white","left":A+"px","top":w+"px"});if(!z){g(v,-q.angle,q.alpha)}r.append(v)}}}function p(u,q,A){var s=f.extend({text:"",color:"grey",fontSize:"20px",alpha:0.15,angle:20,adjustRatio:0.1,horizontalGap:200,verticalGap:100},u);var B=u.$contentDiv;if(B.length===0){return}var t=Math.sin(s.angle/180*Math.PI);
var D=Math.cos(s.angle/180*Math.PI);var z=l(B.css("top"));var r=l(B.css("left"));var v=B.parent();var E=v.width();var y=v.height();s.startX=-y*t*D;s.startY=-y*t*t;s.endX=s.startX+E*D+y*t;s.endY=s.startY+E*t+y*D;s.endY+=y*s.adjustRatio;if(b()){s.fontFamily='"Microsoft YaHei", SimHei, Airal, Verdana, SimSun'}else{s.fontFamily='"PingFang SC", "Hiragino Sans GB", Airal, Verdana'}var C=A===true?"widget-watermark-abs-outdiv":"watermark-abs-outdiv";f("."+C,v).remove();var x=f("<div/>").addClass(C);x.css({"top":z,"left":r,"width":B.css("width"),"height":B.css("height"),"margin":B.css("margin"),"padding":B.css("padding"),"opacity":s.alpha});
v.append(x);if(q&&!FR.Browser.isIE11Before()){i(x,s,E,y)}else{m(x,s,q)}}function h(r,u){var q=o(r,e).width;u.xSpace=u.horizontalGap;u.ySpace=u.verticalGap;var s=o(r,u.text);u.width=s.width;var t=parseInt(0.4*q);u.height=s.height-t}function o(r,t){var q={};var s=f("<div/>").addClass("watermark-div").append(t);r.append(s);q.width=s.width();q.height=s.height();s.remove();return q}function b(){return/windows|win32/i.test(navigator.userAgent)}f.extend(FR,{loadWatermark:function(q){if(FR.isEmpty(q)||FR.isEmptyObj(q)){return
}n={text:q.text,color:q.color,fontSize:q.fontSize+"px",horizontalGap:q.horizontalGap,verticalGap:q.verticalGap}},loadWatermarkFromServer:function(){FR.ajax({url:FR.servletURL,type:"GET",async:false,data:{op:"fr_watermark",cmd:"get_watermark_attr",sessionID:FR.SessionMgr.getSessionID(),_:new Date().getTime()},timeout:5000,complete:function(r,q){if(q==="success"){FR.loadWatermark(FR.jsonDecode(r.responseText))}}})},showWatermark:function(q,r){FR.showCopyright(q);if(FR.isEmpty(n.text)||FR.isEmpty(q)){return
}f("div.watermark-abs-outdiv").remove();var s=true;if(r==="div"||!d()){s=false}p(f.extend(n,{$contentDiv:q}),s)},showWidgetWatermark:function(q,t,r){if(FR.isEmpty(t)||FR.isEmpty(t.text)||FR.isEmpty(q)){return}var s=(r==="div"||!d())?false:true;p(f.extend(t,{$contentDiv:q}),s,true)}})})(jQuery);
var deployJava={debug:null,firefoxJavaVersion:null,myInterval:null,preInstallJREList:null,returnPage:null,brand:null,locale:null,installType:null,EAInstallEnabled:false,EarlyAccessURL:null,getJavaURL:"http://java.sun.com/webapps/getjava/BrowserRedirect?host=java.com",appleRedirectPage:"http://www.apple.com/support/downloads/",oldMimeType:"application/npruntime-scriptable-plugin;DeploymentToolkit",mimeType:"application/java-deployment-toolkit",launchButtonPNG:"http://java.sun.com/products/jfc/tsc/articles/swing2d/webstart.png",browserName:null,browserName2:null,getJREs:function(){var e=[];
if(deployJava.isPluginInstalled()){var d=deployJava.getPlugin();var a=d.jvms;for(var c=0;c<a.getLength();c++){e[c]=a.get(c).version}}else{var b=deployJava.getBrowser();if(b=="MSIE"){if(deployJava.testUsingActiveX("1.7.0")){e[0]="1.7.0"}else{if(deployJava.testUsingActiveX("1.6.0")){e[0]="1.6.0"}else{if(deployJava.testUsingActiveX("1.5.0")){e[0]="1.5.0"}else{if(deployJava.testUsingActiveX("1.4.2")){e[0]="1.4.2"}else{if(deployJava.testForMSVM()){e[0]="1.1"}}}}}}else{if(b=="Netscape Family"){deployJava.getJPIVersionUsingMimeType();
if(deployJava.firefoxJavaVersion!=null){e[0]=deployJava.firefoxJavaVersion}else{if(deployJava.testUsingMimeTypes("1.7")){e[0]="1.7.0"}else{if(deployJava.testUsingMimeTypes("1.6")){e[0]="1.6.0"}else{if(deployJava.testUsingMimeTypes("1.5")){e[0]="1.5.0"}else{if(deployJava.testUsingMimeTypes("1.4.2")){e[0]="1.4.2"}else{if(deployJava.browserName2=="Safari"){if(deployJava.testUsingPluginsArray("1.7.0")){e[0]="1.7.0"}else{if(deployJava.testUsingPluginsArray("1.6")){e[0]="1.6.0"}else{if(deployJava.testUsingPluginsArray("1.5")){e[0]="1.5.0"
}else{if(deployJava.testUsingPluginsArray("1.4.2")){e[0]="1.4.2"}}}}}}}}}}}}}if(deployJava.debug){for(var c=0;c<e.length;++c){alert("We claim to have detected Java SE "+e[c])}}return e},installJRE:function(b){var a=false;if(deployJava.isPluginInstalled()){if(deployJava.getPlugin().installJRE(b)){deployJava.refresh();if(deployJava.returnPage!=null){document.location=deployJava.returnPage}return true}else{return false}}else{return deployJava.installLatestJRE()}},installLatestJRE:function(){if(deployJava.isPluginInstalled()){if(deployJava.getPlugin().installLatestJRE()){deployJava.refresh();
if(deployJava.returnPage!=null){document.location=deployJava.returnPage}return true}else{return false}}else{var b=deployJava.getBrowser();var a=navigator.platform.toLowerCase();if((deployJava.EAInstallEnabled=="true")&&(a.indexOf("win")!=-1)&&(deployJava.EarlyAccessURL!=null)){deployJava.preInstallJREList=deployJava.getJREs();if(deployJava.returnPage!=null){deployJava.myInterval=setInterval("deployJava.poll()",3000)}location.href=deployJava.EarlyAccessURL;return false}else{if(b=="MSIE"){return deployJava.IEInstall()
}else{if((b=="Netscape Family")&&(a.indexOf("win32")!=-1)){return deployJava.FFInstall()}else{location.href=deployJava.getJavaURL+((deployJava.returnPage!=null)?("&returnPage="+deployJava.returnPage):"")+((deployJava.locale!=null)?("&locale="+deployJava.locale):"")+((deployJava.brand!=null)?("&brand="+deployJava.brand):"")}}return false}}},runApplet:function(b,f,d){if(d=="undefined"||d==null){d="1.1"}var e="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var a=d.match(e);if(deployJava.returnPage==null){deployJava.returnPage=document.location
}if(a!=null){var c=deployJava.getBrowser();if((c!="?")&&("Safari"!=deployJava.browserName2)){if(deployJava.versionCheck(d+"+")){deployJava.writeAppletTag(b,f)}else{if(b&&b.codebase){deployJava.writeAppletTag(b,f)}else{if(deployJava.installJRE(d+"+")){deployJava.refresh();location.href=document.location;deployJava.writeAppletTag(b,f)}}}}else{deployJava.writeAppletTag(b,f)}}else{if(deployJava.debug){alert("Invalid minimumVersion argument to runApplet():"+d)}}},writeAppletTag:function(a,f){deployJava.writePluginTag();
if($("applet").length>0){$("body").append($("applet"));return}if($("#AppletPrinter").length>0){$("#AppletPrinter").remove()}if(FR.Browser.isIE()){var h=[];var d="<"+"OBJECT ID='AppletPrinter' name='AppletPrinter' WIDTH='0' HEIGHT='0'"+" CLASSID='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93'";var c=false;for(var e in a){d+=(" "+e+'="'+a[e]+'"')}d+=">";h[h.length]=d;if(f!="undefined"&&f!=null){for(var g in f){d='<param name="'+g+'" value="'+f[g]+'">';h[h.length]=d}}h[h.length]=("<"+"/"+"OBJECT"+">");
$("body").append(h.join(""))}else{var h=[];var d="<"+"applet ";var c=false;for(var e in a){d+=(" "+e+'="'+a[e]+'"');if(e=="code"){c=true}}if(!c){d+=(' code="dummy"')}d+=">";h[h.length]=d;if(f!="undefined"&&f!=null){var b=false;for(var g in f){if(g=="codebase_lookup"){b=true}d='<param name="'+g+'" value="'+f[g]+'">';h[h.length]=d}if(!b){h[h.length]=('<param name="codebase_lookup" value="false">')}}h[h.length]=("<"+"/"+"applet"+">");$("body").append(h.join(""))}},versionCheck:function(h){var c=0;var f="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?(\\*|\\+)?$";
var a=h.match(f);if(a!=null){var e=true;var b=[];for(var d=1;d<a.length;++d){if((typeof a[d]=="string")&&(a[d]!="")){b[c]=a[d];c++}}if(b[b.length-1]=="+"){e=false;b.length--}else{if(b[b.length-1]=="*"){b.length--}}var g=deployJava.getJREs();for(var d=0;d<g.length;++d){if(deployJava.compareVersionToPattern(g[d],b,e)){return true}}return false}else{alert("Invalid versionPattern passed to versionCheck: "+h);return false}},isWebStartInstalled:function(d){var c=deployJava.getBrowser();if((c=="?")||("Safari"==deployJava.browserName2)){return true
}if(d=="undefined"||d==null){d="1.4.2"}var b=false;var e="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var a=d.match(e);if(a!=null){b=deployJava.versionCheck(d+"+")}else{if(deployJava.debug){alert("Invalid minimumVersion argument to isWebStartInstalled(): "+d)}b=deployJava.versionCheck("1.4.2+")}return b},getJPIVersionUsingMimeType:function(){for(var b=0;b<navigator.mimeTypes.length;++b){var c=navigator.mimeTypes[b].type;var a=c.match(/^application\/x-java-applet;jpi-version=(.*)$/);if(a!=null){deployJava.firefoxJavaVersion=a[1];
if("Opera"!=deployJava.browserName2){break}}}},launchWebStartApplication:function(a){return false},createWebStartLaunchButtonEx:function(c,b){if(deployJava.returnPage==null){deployJava.returnPage=c}var a="javascript:deployJava.launchWebStartApplication('"+c+"');";document.write("<"+'a href="'+a+"\" onMouseOver=\"window.status=''; "+'return true;"><'+"img "+'src="'+deployJava.launchButtonPNG+'" '+'border="0" /><'+"/"+"a"+">")},createWebStartLaunchButton:function(c,b){if(deployJava.returnPage==null){deployJava.returnPage=c
}var a="javascript:"+"if (!deployJava.isWebStartInstalled(&quot;"+b+"&quot;)) {"+"if (deployJava.installLatestJRE()) {"+"if (deployJava.launch(&quot;"+c+"&quot;)) {}"+"}"+"} else {"+"if (deployJava.launch(&quot;"+c+"&quot;)) {}"+"}";document.write("<"+'a href="'+a+"\" onMouseOver=\"window.status=''; "+'return true;"><'+"img "+'src="'+deployJava.launchButtonPNG+'" '+'border="0" /><'+"/"+"a"+">")},launch:function(a){document.location=a;return true},isPluginInstalled:function(){var a=deployJava.getPlugin();
if(a&&a.jvms){return true}else{return false}},isAutoUpdateEnabled:function(){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().isAutoUpdateEnabled()}return false},setAutoUpdateEnabled:function(){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setAutoUpdateEnabled()}return false},setInstallerType:function(a){deployJava.installType=a;if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setInstallerType(a)}return false},setAdditionalPackages:function(a){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setAdditionalPackages(a)
}return false},setEarlyAccess:function(a){deployJava.EAInstallEnabled=a},isPlugin2:function(){if(deployJava.isPluginInstalled()){if(deployJava.versionCheck("1.6.0_10+")){try{return deployJava.getPlugin().isPlugin2()}catch(a){}}}return false},allowPlugin:function(){deployJava.getBrowser();var a=("Safari"!=deployJava.browserName2&&"Opera"!=deployJava.browserName2);return a},getPlugin:function(){deployJava.refresh();var a=null;if(deployJava.allowPlugin()){a=document.getElementById("deployJavaPlugin")
}return a},compareVersionToPattern:function(f,b,c){var g="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var h=f.match(g);if(h!=null){var e=0;var j=[];for(var d=1;d<h.length;++d){if((typeof h[d]=="string")&&(h[d]!="")){j[e]=h[d];e++}}var a=Math.min(j.length,b.length);if(c){for(var d=0;d<a;++d){if(j[d]!=b[d]){return false}}return true}else{for(var d=0;d<a;++d){if(j[d]<b[d]){return false}else{if(j[d]>b[d]){return true}}}return true}}else{return false}},getBrowser:function(){if(deployJava.browserName==null){var a=navigator.userAgent.toLowerCase();
if(deployJava.debug){alert("userAgent -> "+a)}if(a.indexOf("msie")!=-1){deployJava.browserName="MSIE";deployJava.browserName2="MSIE"}else{if(a.indexOf("firefox")!=-1){deployJava.browserName="Netscape Family";deployJava.browserName2="Firefox"}else{if(a.indexOf("chrome")!=-1){deployJava.browserName="Netscape Family";deployJava.browserName2="Chrome"}else{if(a.indexOf("safari")!=-1){deployJava.browserName="Netscape Family";deployJava.browserName2="Safari"}else{if(a.indexOf("mozilla")!=-1){deployJava.browserName="Netscape Family";
deployJava.browserName2="Other"}else{if(a.indexOf("opera")!=-1){deployJava.browserName="Netscape Family";deployJava.browserName2="Opera"}else{deployJava.browserName="?";deployJava.browserName2="unknown"}}}}}}if(deployJava.debug){alert("Detected browser name:"+deployJava.browserName+", "+deployJava.browserName2)}}return deployJava.browserName},testUsingActiveX:function(a){var c="JavaWebStart.isInstalled."+a+".0";if(!ActiveXObject){if(deployJava.debug){alert("Browser claims to be IE, but no ActiveXObject object?")
}return false}try{return(new ActiveXObject(c)!=null)}catch(b){return false}},testForMSVM:function(){var b="{08B0E5C0-4FCB-11CF-AAA5-00401C608500}";if(typeof oClientCaps!="undefined"){var a=oClientCaps.getComponentVersion(b,"ComponentID");if((a=="")||(a=="5,0,5000,0")){return false}else{return true}}else{return false}},testUsingMimeTypes:function(b){if(!navigator.mimeTypes){if(deployJava.debug){alert("Browser claims to be Netscape family, but no mimeTypes[] array?")}return false}for(var c=0;c<navigator.mimeTypes.length;
++c){s=navigator.mimeTypes[c].type;var a=s.match(/^application\/x-java-applet\x3Bversion=(1\.8|1\.7|1\.6|1\.5|1\.4\.2)$/);if(a!=null){if(deployJava.compareVersions(a[1],b)){return true}}}return false},testUsingPluginsArray:function(b){if((!navigator.plugins)||(!navigator.plugins.length)){return false}var a=navigator.platform.toLowerCase();for(var c=0;c<navigator.plugins.length;++c){s=navigator.plugins[c].description;if(s.search(/^Java Switchable Plug-in (Cocoa)/)!=-1){if(deployJava.compareVersions("1.5.0",b)){return true
}}else{if(s.search(/^Java/)!=-1){if(a.indexOf("win")!=-1){if(deployJava.compareVersions("1.5.0",b)||deployJava.compareVersions("1.6.0",b)){return true}}}}}if(deployJava.compareVersions("1.5.0",b)){return true}return false},IEInstall:function(){location.href=deployJava.getJavaURL+((deployJava.returnPage!=null)?("&returnPage="+deployJava.returnPage):"")+((deployJava.locale!=null)?("&locale="+deployJava.locale):"")+((deployJava.brand!=null)?("&brand="+deployJava.brand):"")+((deployJava.installType!=null)?("&type="+deployJava.installType):"");
return false},done:function(b,a){},FFInstall:function(){location.href=deployJava.getJavaURL+((deployJava.returnPage!=null)?("&returnPage="+deployJava.returnPage):"")+((deployJava.locale!=null)?("&locale="+deployJava.locale):"")+((deployJava.brand!=null)?("&brand="+deployJava.brand):"")+((deployJava.installType!=null)?("&type="+deployJava.installType):"");return false},compareVersions:function(f,g){var d=f.split(".");var c=g.split(".");for(var e=0;e<d.length;++e){d[e]=Number(d[e])}for(var e=0;e<c.length;
++e){c[e]=Number(c[e])}if(d.length===2){d[2]=0}if(d[0]>c[0]){return true}if(d[0]<c[0]){return false}if(d[1]>c[1]){return true}if(d[1]<c[1]){return false}if(d[2]>c[2]){return true}if(d[2]<c[2]){return false}return true},enableAlerts:function(){deployJava.browserName=null;deployJava.debug=true},poll:function(){deployJava.refresh();var a=deployJava.getJREs();if((deployJava.preInstallJREList.length===0)&&(a.length!==0)){clearInterval(deployJava.myInterval);if(deployJava.returnPage!=null){location.href=deployJava.returnPage
}}if((deployJava.preInstallJREList.length!==0)&&(a.length!==0)&&(deployJava.preInstallJREList[0]!=a[0])){clearInterval(deployJava.myInterval);if(deployJava.returnPage!=null){location.href=deployJava.returnPage}}},writePluginTag:function(){if(deployJava.isWritePluginTag){return}deployJava.isWritePluginTag=true;var a=deployJava.getBrowser();if(a=="MSIE"){$("body").append("<"+'object classid="clsid:CAFEEFAC-DEC7-0000-0001-ABCDEFFEDCBA" '+'id="deployJavaPlugin" width="0" height="0">'+"<"+"/"+"object"+">")
}else{if(a=="Netscape Family"&&deployJava.allowPlugin()){deployJava.writeEmbedTag()}}},refresh:function(){navigator.plugins.refresh(false);var a=deployJava.getBrowser();if(a=="Netscape Family"&&deployJava.allowPlugin()){var b=document.getElementById("deployJavaPlugin");if(b==null){deployJava.writeEmbedTag()}}},writeEmbedTag:function(){var a=false;var c;if(navigator.mimeTypes!=null){for(var b=0;b<navigator.mimeTypes.length;b++){if(navigator.mimeTypes[b].type==deployJava.mimeType){if(navigator.mimeTypes[b].enabledPlugin){c=("<"+'embed id="deployJavaPlugin" type="'+deployJava.mimeType+'" hidden="true"/>');
a=true}}}if(!a){for(var b=0;b<navigator.mimeTypes.length;b++){if(navigator.mimeTypes[b].type==deployJava.oldMimeType){if(navigator.mimeTypes[b].enabledPlugin){c=("<"+'embed id="deployJavaPlugin" type="'+deployJava.oldMimeType+'" hidden="true" />')}}}}if(c){$("body").append(c)}}},do_initialize:function(){if(deployJava.locale==null){var b=null;if(b==null){try{b=navigator.userLanguage}catch(a){}}if(b==null){try{b=navigator.systemLanguage}catch(a){}}if(b==null){try{b=navigator.language}catch(a){}}if(b!=null){b.replace("-","_");
deployJava.locale=b}}}};deployJava.do_initialize();
(function(f){var e={};function a(h){var l=f.extend({templateCopyright:"",url:"",registrationDocumenUrl:"https://help.finereport.com/doc-view-281.html"},h);var j=h.$contentDiv.parent();var g=f("<div/>").addClass("copyrightInfo-div");c(g);var k=f("<a/>").addClass("official-a");k.attr("title",l.url);k.append(l.templateCopyright);b(k,l.url);var i=f("<a/>").addClass("registration-document-a");i.css("margin-right","10px");i.append(FR.i18nText("Fine-Engine_Try_Mode"));b(i,l.registrationDocumenUrl);g.append(k);
g.append(i);j.append(g)}function c(g){g.css({"height":"25px","font":"normal 12px PingFangSC-Regular","text-align":"center","position":"fixed","right":"20px","bottom":"21px","background":"#EEF0F3"});if(FR.Browser.isIE8Before()){g.css({"filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"})}else{g.css({"opacity":"0.7"})}}function b(g,h){g.css({"text-decoration":"none","position":"relative","top":"4px","line-height":"17px","margin-left":"10px"});g.attr("target","_blank");g.attr("href",h)}function d(h){if(FR.isEmpty(h)||FR.isEmpty(h.text)){return
}if(h.fontSize&&-1==h.fontSize.indexOf("p")){h.fontSize=h.fontSize+"px"}var j=f.extend({text:"",color:"#ffffff",backgroundColor:"#007ED3",fontSize:"13px",alpha:0.7},h);var i=h.$contentDiv.parent();if(h.$contentDiv.children().length!=0){i=h.$contentDiv}i.children(".widget-copyrightInfo-div").remove();var g=f("<div/>").addClass("widget-copyrightInfo-div");g.css({"font-size":j.fontSize,background:j.backgroundColor,color:j.color,position:"absolute",right:"10px",bottom:"10px",padding:"10px","text-align":"center","border-radius":"5px","-webkit-border-radius":"5px","-moz-border-radius":"5px","pointer-events":"none"});
if(FR.Browser.isIE8Before()){g.css({"filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity="+j.alpha*10+")"})}else{g.css({"opacity":j.alpha})}g.html(j.text);i.append(g)}f.extend(FR,{loadCopyright:function(g){if(FR.isEmpty(g)||FR.isEmptyObj(g)){return}e={templateCopyright:g.templateCopyright,url:g.url}},loadCopyrightFromServer:function(){FR.ajax({url:FR.servletURL,type:"GET",async:false,data:{op:"fr_copyright",cmd:"get_copyright_info",sessionID:FR.SessionMgr.getSessionID(),_:new Date().getTime()},timeout:5000,complete:function(h,g){if(g==="success"){FR.loadCopyright(FR.jsonDecode(h.responseText))
}}})},showCopyright:function(g){if(FR.isEmpty(e.templateCopyright)||FR.isEmpty(g)){return}f("div.copyright-div").remove();a(f.extend(e,{$contentDiv:g}))},showWidgetCopyright:function(g,h){if(FR.isEmpty(h)||FR.isEmpty(g)){return}d(f.extend(h,{$contentDiv:g}))}})})(jQuery);
FR.Report=FR.Report||{};FR.Report.Plugin=FR.Report.Plugin||{};FR.Report.Plugin.OpenOnNewTabpane={};FR.Report.Plugin.Panel=FR.Report.Plugin.Panel||{};FR.Report.Plugin.Panel.Events=[];FR.Report.Plugin.Print=FR.Report.Plugin.Print||{};FR.Report.Plugin.Write=FR.Report.Plugin.Write||{};FR.Report.Plugin.ScrollProcessor={version:1};FR.Report.Plugin.XHR2FileSaveProcessor={version:1};FR.Report.Plugin.Email=FR.Report.Plugin.Email||{};FR.Report.Plugin.AnimateProcessor={version:1,item:{action:function(a){}}};
FR=FR||{};FR.DecCst={LAST_OPERATING_TIME:"fine_last_operating_time"};FR.Cache={EVENT_RESPONSE_TIME:200,_prefix:"bi",setUsername:function(a){localStorage.setItem(FR.Cache._prefix+".username",(a+""||"").toUpperCase())},getUsername:function(){return localStorage.getItem(FR.Cache._prefix+".username")||""},_getKeyPrefix:function(){return FR.Cache.getUsername()+"."+FR.Cache._prefix+"."},_generateKey:function(a){return FR.Cache._getKeyPrefix()+(a||"")},getItem:function(a){return localStorage.getItem(FR.Cache._generateKey(a))
},setItem:function(a,b){localStorage.setItem(FR.Cache._generateKey(a),b)},removeItem:function(a){localStorage.removeItem(FR.Cache._generateKey(a))},clear:function(){for(var b=localStorage.length;b>=0;b--){var a=localStorage.key(b);if(a){if(a.indexOf(FR.Cache._getKeyPrefix())===0){localStorage.removeItem(a)}}}},keys:function(){var a=[];for(var c=localStorage.length;c>=0;c--){var b=localStorage.key(c);if(b){var d=FR.Cache._getKeyPrefix();if(b.indexOf(d)===0){a[a.length]=b.substring(d.length)}}}return a
}};$(function(){$(document).ajaxSend(_.debounce(function(a){var b=a.timeStamp||new Date().getTime();FR.Cache.setItem(FR.DecCst.LAST_OPERATING_TIME,b)},FR.Cache.EVENT_RESPONSE_TIME))});

(function(a){a.extend(jQuery.easing,{easeOutQuint:function(f,g,e,i,h){return i*((g=g/h-1)*g*g*g*g+1)+e}});a.fn.hScrollPane=function(b){b=a.extend(true,{},a.fn.hScrollPane.defaults,b);this.each(function(){var e=a(this),f=e.find(b.mover),d=document.body.clientWidth,j=b.moverW||f.width(),i=(e.find(".hScrollPane_dragbar").length===0&&j>d)?e.append('<div class="hScrollPane_dragbar"><div class="hScrollPane_draghandle"></div></div>').find(".hScrollPane_dragbar"):e.find(".hScrollPane_dragbar"),h=i.find(".hScrollPane_draghandle");
if(b.showArrow){e.append('<a href="###" class="hScrollPane_leftarrow"></a><a href="###" class="hScrollPane_rightarrow"></a>');leftArrow=e.find(".hScrollPane_leftarrow");rightArrow=e.find(".hScrollPane_rightarrow");i.css({width:e.width()-leftArrow.outerWidth()*2,left:leftArrow.outerWidth()});leftArrow.unbind();rightArrow.unbind()}else{i.css("width",e.width())}f.stop().css("left","0px");h.css({top:b.top-parseInt(b.height)+2,height:parseInt(b.height)-2});e.unbind();h.unbind();i.unbind();h.stop().css({width:(d/j)*d>b.handleMinWidth?(d/j)*d:b.handleMinWidth,left:0});
if(j>d){i.show()}else{i.hide();return false}var g=parseInt(i.width())-parseInt(h.outerWidth());i.bind("click",function(k){var c=k.pageX>h.offset().left+h.outerWidth()?-1:1;a.fn.hScrollPane.move(b,f,h,d,j,g,c)});h.bind("mousedown",function(k){var c=k.pageX;var l=parseInt(h.css("left"));if(b.handleCssAlter){a(this).addClass(b.handleCssAlter)}a(document).bind("mousemove",function(n){var m=n.pageX-c+l<0?0:(n.pageX-c+l>=g?g:n.pageX-c+l);h.stop().css({left:m});if(b.easing){f.stop().animate({left:-m/g*(j-d)},{duration:1500,easing:"easeOutQuint",queue:false})
}else{f.css({left:-m/g*(j-d)})}return false});a(document).bind("mouseup",function(){if(b.handleCssAlter){h.removeClass(b.handleCssAlter)}a(this).unbind("mousemove")});return false}).click(function(){return false});if(b.dragable){f.bind("mousedown",function(k){var c=k.pageX;a(this).bind("mousemove",function(l){a.fn.hScrollPane.move(b,f,h,d,j,g,c,l.pageX);return false});a(document).bind("mouseup",function(){f.unbind("mousemove")})})}if(b.mousewheel.bind){e.bind("mousewheel",function(c,k){a.fn.hScrollPane.move(b,f,h,d,j,g,k);
return false})}if(b.showArrow){leftArrow.click(function(){a.fn.hScrollPane.move(b,f,h,d,j,g,1);return false}).focus(function(){this.blur()});rightArrow.click(function(){a.fn.hScrollPane.move(b,f,h,d,j,g,-1);return false}).focus(function(){this.blur()})}this.ondragstart=function(){return false};this.onselectstart=function(){return false}})};a.fn.hScrollPane.defaults={showArrow:false,handleMinWidth:0,dragable:true,easing:true,mousewheel:{bind:true,moveLength:300}};a.fn.hScrollPane.move=function(f,b,h,l,i,e,k,g){if(arguments.length===7){var d=parseInt(b.css("left"))+k*f.mousewheel.moveLength
}else{var d=parseInt(b.css("left"))+((g-k)/l)*(i-l)}d=d.toFixed(0);d=d>0?0:d<l-i?l-i:d;var j=(d/(l-i))*e;if(f.easing){b.stop().animate({left:d},{duration:1500,easing:"easeOutQuint",queue:false});h.stop().animate({left:j},{duration:1500,easing:"easeOutQuint",queue:false})}else{b.stop().animate({left:d},{duration:5,queue:false});h.css({left:j})}}})(jQuery);
FR.Form=FR.extend(FR.OB,{_init:function(){FR.Form.superclass._init.apply(this,arguments);this.name_widgets={};var b=this;var a=this.options.selector;if(typeof a=="string"){var c;$(a,this.options.renderEl).each(function(d,e){if(e.hasInit!==true){c=b.addWidget($(e));if(c.options.widgetName!=null){b.initLinkWidgetEvent(c)}}})}},addWidget:function(j){j[0].hasInit=true;var i=j.attr("widget");if(!i&&j.attr("widget-control")){var g=j.attr("idx");var a=j.attr("id");i=this.editConfig[g][a]}var h=FR.jsonDecode(i);
var f=j.attr("widgetWidth");f=f>0?f:j.attr("width");var e=j.attr("widgetHeight");e=e>0?e:j.attr("height");h.width=f;h.height=e;$.extend(h,{form:this});var b=$("<div/>").appendTo(j);h.renderEl=b;if(h["jspath"]){var d=h["jspath"].split(";");$.each(d,function(k,l){FR.$import(l,"js")})}if(h["csspath"]){var d=h["csspath"].split(";");$.each(d,function(k,l){FR.$import(l,"css")})}var c=FR.createWidget(h);return c},initLinkWidgetEvent:function(c){if(!c||!c.options){return}var a=c.options.dependence;var b=this;
if(FR.isArray(a)){$.each(a,function(d,f){var e=b.getWidgetByName(f);if(e!=null&&e!=c){if(!e.$linkWidget){e.$linkWidget={data:{},value:{}};e.on(FR.Events.AFTEREDIT,function(){b.fireWidgetValueChanged(e)})}e.$linkWidget["data"][c.options.widgetName]=c}})}},fireWidgetValueChanged:function(b){for(var a in b.$linkWidget["data"]){b.$linkWidget["data"][a].reset()}},getWidgetByName:function(a){if(!a){return null}if(a.startWith("$")){a=a.substring(1)}return this.name_widgets[a.toUpperCase()]},resolveVariable:function(a){var b;
if($.isFunction(this.options.resolveVariable)){b=this.options.resolveVariable(a)}var c;if(b==null){c=this.getWidgetByName(a);if(c==null){b=this._getValueByName(a)}else{b=c.getValue()}}return b},_getValueByName:function(c){var b=this.options.items;if(!c||!b){return null}var a=b.length;var e;if(c.startWith("$")){c=c.substring(1)}for(var d=0;d<a;d++){if(b[d].widgetName==c.toUpperCase()){var f=b[d];e=this._dealWithValueFormat(f);if(e){return e}}}},_dealWithValueFormat:function(c){if(!c){return null}var b;
b=c.value;if(b&&b.date_milliseconds){var a=b.date_milliseconds;if(c.format){return FR.contentFormat(b.date_milliseconds,"D"+c.format)}}return b},verify:function(){var a=true;for(var b in this.name_widgets){var c=this.name_widgets[b];if($.isFunction(c.isValidate)&&!c.isValidate()){FR.Msg.toast(c.errorMsg);a=false}}return a},collectionValue:function(c){var e={};for(var a in this.name_widgets){var b=this.name_widgets[a];if(!(b.options.needSubmit===true)){continue}if(b.options.widgetName){var d=b.getValue();
if(d==undefined){d=null}e[b.options.widgetName.toUpperCase()]=d}}if(c){$.each(c,function(f,g){e[f]=g})}return FR.jsonEncode(e)},dbCommit:function(b,a){if(_g().saveReport){_g().saveReport((function(){this.formSubmit({url:FR.servletURL+"?op=dbcommit",data:{location:a?a.options.location:null,sheetNum:_g().selectedIndex,xmlconf:b.xmlconf,jsConfId:b.jsConfId,callbackConfId:b.callbackConfId,callback:b.callback,feedbackMap:b.feedbackMap,sessionID:_g().currentSessionID||_g().sessionID}})}).createDelegate(this))
}else{this.formSubmit({url:FR.servletURL+"?op=dbcommit",data:{xmlconf:b.xmlconf,jsConfId:b.jsConfId,callbackConfId:b.callbackConfId,callback:b.callback,feedbackMap:b.feedbackMap,sessionID:_g().currentSessionID||_g().sessionID}})}},formSubmit:function(){if(FR.submitBtnEnable===false){if(this.QueryBtn){this.QueryBtn.enable()}return}if(!this.verify()){if(this.QueryBtn){this.QueryBtn.enable()}return}if(_g()&&_g().options&&_g().options.type=="write"){_g().stopEditing();if(_g().isDirtyPage()&&_g().options.unloadCheck!==false){if(!confirm(FR.i18nText("Fine-Engine_Report_Unload_Check_Msg")+"!\n"+FR.i18nText("Fine-Engine_Report_SQLWizard_Would_You_Like_To_Continue")+"？")){if(this.QueryBtn){this.QueryBtn.enable()
}return}}}var b=arguments[0];if(b.url==null){return}var c=this.config=$.extend({asyn:true},b);FR.dealWithSessionIDParam(c);this.$sform=$($(".form-submit",this.element)[0]);var a=this;if(c.asyn){FR.ajax({url:c.url,type:"POST",headers:c.headers,data:{__parameters__:this.collectionValue(c.data)},complete:function(f,d){var e=FR.jsonDecode(f.responseText);if(c.callback){c.callback.call(a,f,d)}if(e.callback){f.responseText=e.oldres;e.callback.call(a,f,d)}a._fireSubmitEvents(d)}})}else{this.$sform.attr("method","post");
this.$sform.attr("action",b.url);if(b.target){this.$sform.attr("target",b.target)}if(!this.$sform_hidden){this.$sform_hidden=$("<input name = '__parameters__' type='hidden'/>").appendTo(this.$sform);this.$sform_hidden.attr("value",FR.cjkEncode(this.collectionValue(c.data)))}this.$sform.submit()}},getSelectValue:function(d){var g={};for(var a in this.name_widgets){var c=this.name_widgets[a];if(!(c.options.needSubmit===true)){continue}if(c.options.widgetName){var b=c.getEditValue();var f=FR.isEmpty(b)?c.getValue():b;
if(f==undefined){f=null}if(c.options.type==="datetime"){var e=c.options.format;if(e===undefined||e===null){e="yyyy-MM-dd"}if(f instanceof Date){f=FR.date2Str(f,e)}}g[c.options.widgetName.toUpperCase()]=f}}if(d){$.each(d,function(h,j){g[h]=j})}return FR.jsonEncode(g)},directExportToExcel:function(d,e,c,b){if(this.fireEvent(FR.Events.BTOEXCEL)===false){return}var a=FR.servletURL+"?op=export&cmd=direct_excel&sessionID="+FR.SessionMgr.getSessionID()+"&dsName="+d;if(e!==undefined){a+="&fileName="+e}if(c!==undefined){a+="&params="+c
}if(b!==undefined){a+="&colNames="+b}this.downloadExportFile(a,"excel");this.fireEvent(FR.Events.ATOEXCEL)},downloadExportFile:function(a,b){if(FR.Report.Plugin.XHR2FileSaveProcessor.item&&FR.Plugin.validLevel(FR.Report.Plugin.XHR2FileSaveProcessor,FR.Report.Plugin.XHR2FileSaveProcessor.item)){FR.Report.Plugin.XHR2FileSaveProcessor.item.action.call(this,a,b);return}FR.openUrlByForm(a);this.showProgressBar(FR.SessionMgr.getSessionID(),b)},showProgressBar:function(b,a){FR.progressBar.call({createProgressBar:function(){if($("#progressBar").length<=0){var e=$("<div id = "+'"'+"progressBar"+'"'+">"+"</div>").appendTo("body");
var c=$("<div>"+FR.i18nText("Fine-Engine_Exporting")+"..."+"</div>").appendTo($("#progressBar"));var d=$('<div id="transparent_mask" style="position:absolute;filter:alpha(opacity=50);opacity:0.5;"></div>');d.css("left","0px").css("top","0px").css("width","100%").css("height","100%").css("z-index",2001).appendTo("body");e.addClass("progressBar");c.addClass("progressBarTips")}},removeProgressBar:function(){$("#progressBar").remove();$("#transparent_mask").remove()}},b,a)},sentMail:function(a){FR.ajax({url:FR.servletURL,type:"POST",async:false,data:{op:"fr_email",cmd:"sent_email",sessionID:FR.SessionMgr.getSessionID(),mailXML:a.xmlconf,paraMap:a.paraMap||{},__parameters__:this.collectionValue()}})
},customSubmit:function(a){FR.ajax({url:FR.servletURL,type:"POST",async:false,data:{op:"customevent",reportIndex:_g().curLGP.idx,sessionID:FR.SessionMgr.getSessionID(),xmlconf:a.xmlconf,reportXML:_g().generateReportXML(true),paraMap:a.paraMap||{}}})},_fireSubmitEvents:function(a){if(a=="success"){this.fireEvent(FR.Events.SS)}else{this.fireEvent(FR.Events.SF)}this.fireEvent(FR.Events.SC)},getValueByName:function(a){var b=this.getWidgetByName(a);if(b&&b.getValue){return b.getValue()}},visible:function(e,b){if($.isArray(e)){for(var c=0,a=e.length;
c<a;c++){var d=this.getWidgetByName(e[c]);if(d){d.visible(b)}}}},invisible:function(e,b){if($.isArray(e)){for(var c=0,a=e.length;c<a;c++){var d=this.getWidgetByName(e[c]);if(d){d.invisible(b)}}}}});$.shortcut("fr_form",FR.Form);FR.contentForm=FR.extend(FR.Form,{_init:function(){this.name_widgets={};this.datakey_widgets=[];this.options.form=this;this.sessionID=this.options.widgetUrl?this.options.widgetUrl.getQuery("sessionID"):this.options.sessionID;this.content=this.createConfig2Form();this.content.fireEvent(FR.Events.AFTERINIT)
},createConfig2Form:function(){var k=this.options;var e=this.afterInitEventList==undefined;if(e){this.afterInitEventList={}}var a=this._createConfig4Form(k);var d=FR.createWidget(a);this.rootWidget=d;for(var b in d.options.resultWidgets){this.add(d.options.resultWidgets[b])}this.name_widgets=d.options.resultWidgets;var h=this;$.each(this.name_widgets,function(l,m){if(m.options.widgetName!=null){h.initLinkWidgetEvent(m)}});if(e){var j=this.afterInitEventList;delete this.afterInitEventList;d.on(FR.Events.AFTERINIT,function(){for(var l in j){var o=j[l];
var p=h.getWidgetByName(l);if(p&&FR.isArray(o)){for(var n=0;n<o.length;n++){var m=o[n].action.createDelegate(o[n].target?o[n].target:p);if(m.apply(p)===false){break}}delete j[l]}}});var g=FR.Form.Plugin.Panel.Events;if($.isArray(g)){for(var b=0,c=g.length;b<c;b++){var f=g[b];d.once(f.name,f.action.call(this))}}}return d},getRootWidget:function(){return this.rootWidget},_createConfig4Form:function(c){c.form=this;if(c.items){for(var d=0;d<c.items.length;d++){var b;if(c.items[d].el){b=c.items[d].el}else{if(c.items[d]){b=c.items[d]
}}if(b){this._createConfig4Form(b)}}}if(c.listeners!=null){for(var d=0;d<c.listeners.length;d++){var a=c.listeners[d];if(a.eventName=="afterinit"){if(c.form.afterInitEventList[c.widgetName]==null){c.form.afterInitEventList[c.widgetName]=[]}c.listeners.removeWeakEqual(a);d--;c.form.afterInitEventList[c.widgetName].push(a)}}}return c},add:function(c){if(c.options.Databinding){var a=c.options.Databinding;a.widget=c;this.datakey_widgets.push(a)}var b=this;c.load=function(){b.loadContentData(this)}},getWidgetByCell:function(){throw (' "getWidgetByCell" is not a function in form')
},_confirmEvents:function(){this.fireEvent(FR.Events.AFTERINIT);this.doLayout()},initLinkWidgetEvent:function(c){if(!c||!c.options){return}FR.contentForm.superclass.initLinkWidgetEvent.apply(this,arguments);var a=c.options.widgetExeDependence;var b=this;if(FR.isArray(a)){$.each(a,function(d,f){var e=b.getWidgetByName(f);if(e!=null&&e!=c){if(!e.$linkWidget){e.$linkWidget={data:{},value:{}};e.on(FR.Events.AFTEREDIT,_.debounce(function(){b.fireWidgetValueChanged(e)},600));e.on(FR.Events.AFTEREDIT,function(){FR.submitBtnEnable=false
})}e.$linkWidget["value"][c.options.widgetName]=c}})}},fireWidgetValueChanged:function(e){if(!e.$linkWidget){return}for(var d in e.$linkWidget["data"]){e.$linkWidget["data"][d].reset()}var b=FR.jsonDecode(this.collectionValue());var h={};var g={widgetNameList:[],chartWidgets:[],elementCaseWidgets:[]};var a=[];var f=[];var c=[];this.pushLinkWidgetIntoList(e,h,g,b);this.executeWidgets(g.widgetNameList,h,b);this.executeCharts(_.uniq(g.chartWidgets));this.executeElements(_.uniq(g.elementCaseWidgets))
},pushLinkWidgetIntoList:function(c,i,g,j){var d=c.$linkWidget;if(!d){return}var e=g.widgetNameList;var b=g.chartWidgets;var a=g.elementCaseWidgets;for(var f in d["value"]){var h=d["value"][f];if(h.xtype=="chartwidget"){b.push(h)}else{if(h.xtype=="elementcase"){a.push(h)}else{i[f]=h;e.push(f);j[f]="";this.pushLinkWidgetIntoList(h,i,g,j)}}}for(var f in d["data"]){var h=d["data"][f];e.push(f);j[f]="";this.pushLinkWidgetIntoList(h,i,g,j)}},executeWidgets:function(b,e,a){if(b.length===0){FR.submitBtnEnable=true;
return}var c=this;var d=FR.buildServletUrl({_:new Date().getTime(),op:"fr_form",cmd:"form_getsource",sessionID:this.options.form.sessionID,__widgetname__:b});FR.ajax({url:d,type:"POST",async:false,data:{__parameters__:FR.jsonEncode(a)},complete:function(h,g){if(g=="success"){var i=FR.jsonDecode(h.responseText);for(var f in i){if(e[f]){e[f].setSource(i[f])}else{if(e[f.toUpperCase()]){e[f.toUpperCase()].setSource(i[f])}}}FR.submitBtnEnable=true}}})},executeCharts:function(a){if(a.length>0){$.each(a,function(b,c){c.executeChart()
})}},executeElements:function(a){if(a.length>0){var b=[];$.each(a,function(d,c){b.push(c.options.widgetName)});this.executeMultiElements(b,this.collectionValue())}},executeMultiElements:function(c,a){var b=this;FR.ajax({url:FR.servletURL,type:"POST",data:{op:"fr_form",cmd:"pre_execute_elements",sessionID:this.sessionID,widgets:c,__parameters__:a,_:new Date().getTime(),__boxModel__:$.support.boxModel,_PAPERWIDTH:FR.windowWidth,_PAPERHEIGHT:FR.windowHeight,_SHOWPARA:$(".parameter-container-collapseimg-down").length===0,_SHOWPARATEMPLATE:$("[widgetName=paramsTemplate]").length!==0},async:true,complete:function(e,d){if(d==="success"){$.each(c,function(f,g){b.getWidgetByName(g).gotoPage(1,b.collectionValue(),"",true)
})}}})},loadContentData:function(e){var f={};var d={add:function(g){f[g.options.widgetName]=g},remove:function(g){delete f[g.options.widgetName]}};for(var c in e.options.resultWidgets){d.add(e.options.resultWidgets[c])}var a=this;var b=FR.buildServletUrl({op:"fr_form",cmd:"form_getsource",sessionID:this.options.form.sessionID,__isContent__:true,__widgetname__:e.options.widgetName});FR.ajax({url:b,type:"POST",async:false,data:{__parameters__:a.collectionValue()},complete:function(i,h){if(h=="success"){var j=FR.jsonDecode(i.responseText);
for(var g in j){if(f[g]){f[g].setSource(j[g])}}}else{}}})},parameterCommit:function(a){if(this.parameterEl){this.parameterEl.formSubmit({url:FR.servletURL+"?op=fr_dialog&cmd=parameters_d&sessionID="+this.sessionID,callback:function(){_g().loadContentPane(a)}})}else{_g().loadContentPane()}},loadContentPane:function(c){var a=this;var b;var d=this.sessionID;FR.ajax({url:FR.servletURL,data:{_:new Date().getTime(),op:"fr_form",cmd:"load_content",sessionID:d,widgetVersion:a.getWidgetVersion()},beforeSend:function(){FR.HtmlLoader.loadingEffect({el:$(".content-container"),show:true})
},async:true,complete:function(f,e){if(e==="success"){var g=FR.jsonDecode(f.responseText);if(!g||g.length===0){$(".content-container").html(f.responseText);return}if(g.watermark){FR.loadWatermark(g.watermark)}if(g.copyright){FR.loadCopyright(g.copyright)}var h=function(j){if(!j||j.length===0){return}a.isFitInBrowser=!j.__FIT__;var n=window.globalForm.parameterEl;var o=$(".content-container");var r=$(".para-container");if(o){o.remove()}var m=$("body");var p=[];o=$("<div class='content-container'>");
j.renderEl=o;var k=new FR.contentForm(j);p.push({region:"center",el:o});k.parameterEl=n;p.push({region:"north",el:r});var l=new FR.BorderLayout({items:p,renderEl:m});FR.SessionMgr.register(d,k);_g().name_widgets=k.name_widgets;l.doLayout();o.css("overflow","auto");var i=FR.windowWidth;var q=FR.windowHeight;var s=_.debounce(function(){a.recordAdaptiveInfo(j,k,d,true)},2000);$(window).resize(function(){if(FR.Browser.isIE()){setTimeout(function(){if(!k.scaleProcess(l,i,q)){l.doLayout()}i=FR.windowWidth;
q=FR.windowHeight},0)}else{if(!k.scaleProcess(l,i,q)){l.doLayout()}i=FR.windowWidth;q=FR.windowHeight}a.showWidgetsCopyright(k);FR.showWatermark(o);s()});a.showWidgetsCopyright(k);FR.showWatermark(o);FR.HtmlLoader.loadingEffect({el:o});a.recordAdaptiveInfo(j,k,d)};a.getFitConfigFromServer(g,h,true)}}});this.fireEvent(FR.Events.AFTERLOAD);if(FR.Form.bindFitResize){FR.Form.bindFitResize(this,c)}},getWidgetVersion:function(){return"1"},showWidgetsCopyright:function(a){$.each(a.name_widgets,function(b,c){if(c.options.WidgetCopyrightMark){FR.showWidgetCopyright(c.element,c.options.WidgetCopyrightMark)
}})},recordAdaptiveInfo:function(a,b,m,d){try{var p=this;var k=_.clone(a.elementCases);var c=function(q){var i=[];for(var r in q.name_widgets){var e=q.name_widgets[r];if(e.options.widgetName==="FORM"){continue}var s="{";s+=e.options.widgetName+",";s+=e.options.width+",";s+=e.options.height+",";s+="("+(e.options.x!==undefined?e.options.x:e.options.left)+","+(e.options.y!==undefined?e.options.y:e.options.top)+")";s+=",";s+=e.options.compInterval+",";s+="("+e.options.marginTop+","+e.options.marginBottom+","+e.options.marginLeft+","+e.options.marginRight+")";
s+="}";i.push(s)}return"["+i.toString()+"]"};var j=function(){var i=$(".fr-quick-adaptive-layout")[0].clientWidth>=$(".fr-quick-adaptive-layout")[0].scrollWidth;var e=$(".fr-quick-adaptive-layout")[0].clientHeight>=$(".fr-quick-adaptive-layout")[0].scrollHeight;return"{"+(i?1:0)+","+(e?1:0)+"}"};var l=function(e){if(k.indexOf(e.reportName)!==-1){n.elementCases.push(e);k.remove(e.reportName)}if(k.length===0){p.sendRecorderInfo(p.sessionID,n);b.un(FR.Events.ADAPTRECORD)}};var n={frmInfo:{sessionID:m,browserSize:"{"+FR.windowWidth+","+FR.windowHeight+"}",browserScrollBar:j(),fontZoom:a.fontScale,componentInformation:c(b)},elementCases:[]};
if(d){for(var f=0;f<k.length;f++){var o=k[f];var g=_g().options.form.getWidgetByName(o);n.elementCases.push(g.recorderFitInfo())}p.sendRecorderInfo(p.sessionID,n)}else{b.on(FR.Events.ADAPTRECORD,l);if(k.length===0){p.sendRecorderInfo(p.sessionID,n)}}}catch(h){b.un(FR.Events.ADAPTRECORD)}},sendRecorderInfo:function(c,b){var a={sessionID:c,recordInfo:b};FR.ajax({url:FR.fineServletURL+"/adaptive/info/collect",data:a,type:"POST",async:false})},getFitConfigFromServer:function(d,e,b){var a=this;if(d.__FIT__){var c=d.widgetUrl.getQuery("sessionID");
FR.ajax({url:FR.servletURL,data:{op:"fr_form",cmd:"fit_config",sessionID:c,widgetVersion:this.getWidgetVersion(),_:new Date().getTime(),_PAPERWIDTH:FR.windowWidth||window.initialWindowWidth,_PAPERHEIGHT:FR.windowHeight||window.initialWindowHeight,_SHOWPARA:$(".parameter-container-collapseimg-down").length===0,_SHOWPARATEMPLATE:$("[widgetName=paramsTemplate]").length!==0},async:b===true?true:false,complete:function(g,f){if(f==="success"){d=FR.jsonDecode(g.responseText);if(!d||d.length===0){$(".content-container").html(g.responseText)
}if(e&&$.isFunction(e)){e.apply(a,[d])}}}})}else{if(e&&$.isFunction(e)){e.apply(a,[d])}}if(b!==true){return d}},load:function(){this.loadContentData(this.content)},remove:function(b){var a=this;if(b.options.Databinding){$.each(a.datakey_widgets,function(c,d){if(d&&d.Name==b.options.Databinding.Name&&d.Key==b.options.Databinding.Key){a.datakey_widgets.splice(c,1)}})}delete this.name_widgets[b.options.widgetName]},_fireSubmitEvents:function(a){if(a=="success"){this.content.fireEvent(FR.Events.SS)}else{this.content.fireEvent(FR.Events.SF)
}this.content.fireEvent(FR.Events.SC)},preferredLayout:function(){var a=0,d=2147483647,b=0,c=0;$.each(this.rootWidget.options.items,function(e,f){if(!f.el.isVisible()){d=Math.min(d,f.y);b=Math.max(b,f.y+f.height)}});$.each(this.rootWidget.options.items,function(e,f){if(f.el.isVisible()&&(f.y+f.height)<d){c=Math.max(f.y+f.height,c)}});$.each(this.rootWidget.options.items,function(e,f){if(f.el.isVisible()){if(f.y>d){f.delta=c-b}else{f.delta=0}}});$.each(this.rootWidget.options.items,function(e,f){if(f.el.isVisible()){a=Math.max(a,f.y+f.height+f.delta)
}});if($.isFunction(this.options.onCalculate)){this.options.onCalculate.call(this,a)}},doLayout:function(){if(this.content){this.content.setMinSize();this.content.doLayout()}},scaleProcess:function(f,b,a){var d=f.element.bounds();var c=Math.abs(a-d.height)<5;var e=Math.abs(b-d.width)<5;return c&&e}});$.shortcut("fr_contentform",FR.contentForm);$.extend(FR,{getDependence:function(a){if(a.getDependenceObj){return a.getDependenceObj()}},domFormSubmit:function(c,d,k,l){if(!FR.notCloseDialogOnSubmit){FR.closeDialog()
}var m;if(d.context){m=$(c,d.context)}else{m=$(c)}if(m.length===0){return}l=$.extend({scope:this},l);var b=m.serializeArray();var e={};for(var f=0;f<b.length;f++){var h=b[f];e[h.name]=h.value}$.extend(e,d);var g={type:"POST",data:e,url:d.url||m[0].action,complete:function(n,i){$.isFunction(k)&&k.call(l.scope,n,i,l)}};var a=$("input:file",m);if(a.length>0){if(FR.Browser.webkit&&g.closeKeepAlive){$.get(g.closeKeepAlive,j)}else{j()}}else{FR.ajax(g)}function j(){var r=m[0];if($(":input[name=submit]",r).length){alert('Error: Form elements must not be named "submit".');
return}g.success=g.success||FR.emptyFn;var p=$.extend({},$.ajaxSettings,g);var D=jQuery.extend(true,{},$.extend(true,{},$.ajaxSettings),p);var q="jqFormIO"+(new Date().getTime());var y=$('<iframe id="'+q+'" name="'+q+'" />');var A=y[0];if(FR.Browser.isIE()||FR.Browser.opera){A.src='javascript:false;document.write("");'}y.css({position:"absolute",top:"-1000px",left:"-1000px"});var C={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;
y.attr("src","about:blank")}};var z=p.global;if(z&&!$.active++){$.event.trigger("ajaxStart")}if(z){$.event.trigger("ajaxSend",[C,p])}if(D.beforeSend&&D.beforeSend(C,D)===false){D.global&&jQuery.active--;return}if(C.aborted){return}var o=0;var v=0;var i=r.clk;if(i){var t=i.name;if(t&&!i.disabled){g.extraData=g.extraData||{};g.extraData[t]=i.value;if(i.type=="image"){g.extraData[name+".x"]=r.clk_x;g.extraData[name+".y"]=r.clk_y}}}setTimeout(function(){var F=m.attr("target"),s=m.attr("action");m.attr({target:q,method:"POST",action:p.url});
if(!g.skipEncodingOverride){m.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(p.timeout){setTimeout(function(){v=true;w()},p.timeout)}var E=[];try{if(g.extraData){for(var G in g.extraData){E.push($('<input type="hidden" name="'+G+'" value="'+g.extraData[G]+'" />').appendTo(r)[0])}}y.appendTo("body");A.attachEvent?A.attachEvent("onload",w):A.addEventListener("load",w,false);r.submit()}finally{m.attr("action",s);F?m.attr("target",F):m.removeAttr("target");$(E).remove()}},10);
function w(){if(o++){return}A.detachEvent?A.detachEvent("onload",w):A.removeEventListener("load",w,false);var s=0;var E=true;try{if(v){throw"timeout"}var F,H;H=A.contentWindow?A.contentWindow.document:A.contentDocument?A.contentDocument:A.document;if(H.body==null&&!s&&FR.Browser.opera){s=1;o--;setTimeout(w,100);return}C.responseText=H.body?H.body.innerHTML:null;C.responseXML=H.XMLDocument?H.XMLDocument:H;C.getResponseHeader=function(J){var I={"content-type":p.dataType};return I[J]};if(p.dataType=="json"||p.dataType=="script"){var n=H.getElementsByTagName("textarea")[0];
C.responseText=n?n.value:C.responseText}else{if(p.dataType=="xml"&&!C.responseXML&&C.responseText!=null){C.responseXML=x(C.responseText)}}F=B(C,p.dataType)}catch(G){E=false;u(p,C,"error",G)}if(E){p.success(F,"success");if(z){$.event.trigger("ajaxSuccess",[C,p])}}if(z){$.event.trigger("ajaxComplete",[C,p])}if(z&&!--$.active){$.event.trigger("ajaxStop")}if(p.complete){p.complete(C,E?"success":"error")}setTimeout(function(){y.remove();C.responseXML=null},100)}function u(E,G,n,F){if(E.error){E.error.call(E.context||window,G,n,F)
}if(E.global){(E.context?jQuery(E.context):jQuery.event).trigger("ajaxError",[G,E,F])}}function B(I,G,F){var E=I.getResponseHeader("content-type")||"",n=G==="xml"||!G&&E.indexOf("xml")>=0,H=n?I.responseXML:I.responseText;if(n&&H.documentElement.nodeName==="parsererror"){throw"parsererror"}if(F&&F.dataFilter){H=F.dataFilter(H,G)}if(typeof H==="string"){if(G==="json"||!G&&E.indexOf("json")>=0){if(/^[\],:{}\s]*$/.test(H.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){if(window.JSON&&window.JSON.parse){H=window.JSON.parse(H)
}else{H=(new Function("return "+H))()}}else{throw"Invalid JSON: "+H}}else{if(G==="script"||!G&&E.indexOf("javascript")>=0){jQuery.globalEval(H)}}}return H}function x(n,E){if(window.ActiveXObject){E=new ActiveXObject("Microsoft.XMLDOM");E.async="false";E.loadXML(n)}else{E=(new DOMParser()).parseFromString(n,"text/xml")}return(E&&E.documentElement&&E.documentElement.tagName!="parsererror")?E:null}}},formSubmitCallback:function(c,a,b){FR.Msg.toast(a=="success"&&c.responseText=="true"?FR.i18nText("Fine-Engine_Report_HJS_Send_Successfully")+"!":FR.i18nText("Fine-Engine_Report_HJS_Send_Failed")+"!")
},pagesetupSubmitCallback:function(c,a,b){FR.closeDialog();var e=b.sessionID;var d=_g();if(d!=null){d.loadContentPane()}},recalculateElementTitle:function(b,c,a){FR.ajax({url:FR.servletURL,type:"POST",data:{op:"fr_form",cmd:"recalculate_element_title",sessionID:_g().currentSessionID||_g().sessionID,widgetName:c,__parameters__:b,noCache:a||"",_:new Date().getTime(),__boxModel__:$.support.boxModel},beforeSend:function(){},async:true,complete:function(e,d){if(d=="success"){var f=FR.jsonDecode(e.responseText);
if(_g().name_widgets[c]){_g().name_widgets[c].setSource(f[c])}}}})}});
FR.Form=FR.Form||{};FR.Form.Plugin=FR.Form.Plugin||{};FR.Form.Plugin.Panel=FR.Form.Plugin.Panel||{};FR.Form.Plugin.Panel.Events=[];
(function(a){if(window.jLayout){a.extend(window.jLayout,{scale:function(c){var h={},b=c.items||[],e=this.layout(c,h),g=c.scrollable,d=c.scrollContainer;e.layout=function(k){var j=k.bounds(),o=k.insets(),q=j.width-(o.left+o.right),r=j.height-(o.top+o.bottom),n=0,m=0;for(var p=0;p<b.length;p++){var s=b[p];var l=(g||q===0)?s.width:q;s.el.bounds({"x":0,"y":0,"width":l,"height":21});s.el.doLayout()}};function f(i){return function(){return{"width":0,"height":0}}}e.preferred=f("preferred");e.minimum=f("minimum");
e.maximum=f("maximum");return e},title:function(c){var h={},b=c.items||[],e=this.layout(c,h),g=c.scrollable,d=c.scrollContainer;e.layout=function(l){var k=l.bounds(),p=l.insets(),r=k.width-(p.left+p.right),s=k.height-(p.top+p.bottom),o=0,m=0;var u=b.length>1?s-38:s;var n=b.length>1?38:0;for(var q=0;q<b.length;q++){var x=b[q];var t=x.type!="elementcase"&&x.type!="chartwidget";var w=t?38:u;var v=t?0:n;x.el.bounds({"x":0,"y":v,"width":r,"height":w});x.el.doLayout();var j=FR.Browser.isIE8Before()&&!a.support.boxModel;
if(x.type=="elementcase"&&j){x.el.css("width","100%");x.el.css("height",u)}}};function f(i){return function(){return{"width":0,"height":0}}}e.preferred=f("preferred");e.minimum=f("minimum");e.maximum=f("maximum");return e},absolute:function(c){var f={},b=c.items||[],d=this.layout(c,f),g=c.absoluteCompState;d.layout=function(r){var t=5;var h=r.data("preBounds");var l=r.bounds(),A=r.insets(),k=l.width-(A.left+A.right),F=l.height-(A.top+A.bottom);var m=u(h),D=B(h);var o=1,j=1;var s=0,C=0;if(h&&l&&h.width>0&&Math.abs(l.width-D)>t){o=parseFloat(l.width/D);
s=Math.abs(l.width-D)}if(h&&l&&h.height>0&&Math.abs(l.height-m)>t){j=parseFloat(l.height/m);C=Math.abs(l.height-m)}for(var z=0;z<b.length;z++){var E=b[z];var w=E.width}for(var z=0;z<b.length;z++){var E=b[z];var w=E.width;var v=E.height;var q=E.x;var n=E.y;if(g===0){q=p(o,q);n=p(j,n);w=p(o,w+E.x)-q;v=p(j,v+E.y)-n;E.x=q;E.y=n;E.width=w;E.height=v}E.el.bounds({"x":q,"y":n,"width":w,"height":v});E.el.doLayout()}function B(i){return i?i.width:0}function u(i){return i?i.height:0}function p(i,x){if(i!==0&&x){return Math.round(x*i)
}else{return x}}if(!h||s>t||C>t){r.data("preBounds",l)}};function e(h){return function(){return{"width":0,"height":0}}}d.preferred=e("preferred");d.minimum=e("minimum");d.maximum=e("maximum");return d},adaptive:function(l){var j={},h=l.items||[],g=this.layout(l,j),m=false,k=false,c=l.hasResized,e=l.compState,i=l.compInterval;if(c){g.layout=function(z){var n=z.data("preBounds");var p=z.bounds(),G=z.insets();var w={"width":p.width-G.left-G.right,"height":p.height-G.top-G.bottom};var r=E(n),I=q(n);var t=1,o=1;
var A=0,H=0;if(n&&n.width>0){A=Math.abs(w.width-I);if(A>5){t=parseFloat(w.width/I)}}if(n&&n.height>0){var L=1;H=Math.abs(w.height-r);if(H>5){L=parseFloat(w.height/r)}o=e===0?L:t}if(e===1&&K()>0){var B=w.width*M()/K();if(B>w.height){a(z).css({"overflow-y":"auto"})}else{a(z).css({"overflow-y":"hidden"})}}for(var F=0;F<h.length;F++){var J=h[F];var D=J.width}for(var F=0;F<h.length;F++){var J=h[F];var D=J.width;var C=J.height;var v=J.x;var s=J.y;v=u(t,v);s=u(o,s);D=u(t,D+J.x)-v;C=u(o,C+J.y)-s;J.x=v;J.y=s;
J.width=D;J.height=C;J.el.bounds({"x":v,"y":s,"width":D,"height":C});J.el.doLayout()}function q(x){if(i>0){return x?x.width:0}return b()}function E(x){if(i>0){return x?x.height:0}return d()}function K(){var Q,x;var O=0;for(var N=0;N<h.length;N++){var P=h[N];Q=h[N].el.isVisible()?P.y:parseInt(h[N].el.css("top"));x=h[N].el.css("display")==="none"?0:P.width;if(Q===0){O+=x}}return O}function M(){var y,P;var Q=0;for(var N=0;N<h.length;N++){var O=h[N];y=h[N].el.isVisible()?O.x:parseInt(h[N].el.css("left"));
P=h[N].el.css("display")==="none"?0:O.height;if(y===0){Q+=P}}return Q}function u(x,y){if(x!==0&&y){return Math.round(y*x)}else{return y}}if((!n&&w.width>0)||A>5||H>5){z.data("preBounds",p)}}}else{g.layout=function(U){var T=U.bounds(),N=U.insets(),t=T.width-(N.left+N.right),M=T.height-(N.top+N.bottom);var F=d(),am=b(),o;var B=0,Q=0,S=0,K=0;if(t!==0){B=ag();Q=e===0?p():ae();K=B-am;S=Q-F;if(Q>p()){a(U).css({"overflow-y":"scroll"});m=true}else{a(U).css({"overflow-y":"hidden"});m=false}}if(t===0&&M===0){for(var ah=0;
ah<h.length;ah++){var L=h[ah];L.el.bounds({"x":L.x,"y":L.y,"width":L.width,"height":L.height});L.el.doLayout()}}var s=K!==0||S!==0;if(k&&s){V()}if(K!==0){if(!c){o=parseFloat(K/am);O(o)}aj(i)}if(S!==0){if(!c){o=parseFloat(S/F);q(o)}E(i)}var J=t!==0&&(K!==0||S!==0);if(J&&i>0){var r=D();var I=n();var ab=I.length*21+(I.length-1)*i;var ak=r.length*21+(r.length-1)*i;if(ab>t||e===0&&ak>M){return}for(var ah=0;ah<h.length;ah++){var L=h[ah];var ac=c?0:C(I,L.x);var aa=c?0:C(r,L.y);var ad=c?0:C(I,L.x+L.width)-ac-1;
var al=c?0:C(r,L.y+L.height)-aa-1;L.el.bounds({"x":L.x+ac*i,"y":L.y+aa*i,"width":L.width+ad*i,"height":L.height+al*i});L.el.doLayout()}k=true}if(J){for(var ah=0;ah<h.length;ah++){var L=h[ah];if(L.type!="elementcase"){continue}var A=L.el.bounds();var X=A.x,W=A.y,Y=A.width,ai=A.height;if(L.marginTop){W=A.y+parseInt(L.marginTop)}if(L.marginLeft){X=A.x+parseInt(L.marginLeft)}if(L.marginBottom){ai=A.height-parseInt(L.marginBottom)-parseInt(L.marginTop)}if(L.marginRight){Y=A.width-parseInt(L.marginRight)-parseInt(L.marginLeft)
}L.el.bounds({"x":X,"y":W,"width":Y,"height":ai});L.el.doLayout()}k=true}function C(an,y){var w=an.indexOf(y);if(w!=-1){return w}for(var x=0;x<an.length;x++){if(Math.abs(an[x]-y)<=1){return x}}return w}function ag(){var w=n().length-2;var x=m?16:0;return t-x-w*i}function p(){var w=D().length-2;return M-w*i}function ae(){return Math.round(B/am*F)}function aj(w){var y=h.length;for(var an=0;an<y;an++){var ap=h[an];var ao=ap.el.bounds();if(!ao.x){ao.x=parseInt(ap.el.css("left"))}var x=Math.round(ao.x);
ap.x=ap.el.isVisible()?x:parseInt(ap.el.css("left"));ap.width=ao.width}}function E(w){var y=h.length;for(var an=0;an<y;an++){var ap=h[an];var ao=ap.el.bounds();if(!ao.y){ao.y=parseInt(ap.el.css("top"))}var x=Math.round(ao.y);ap.y=ap.el.isVisible()?x:parseInt(ap.el.css("top"));ap.height=ao.height}}function V(){var w=h.length;for(var x=0;x<w;x++){var y=h[x];y.el.bounds({"x":y.x,"y":y.y,"width":y.width,"height":y.height});y.el.doLayout()}}function O(aq){var ao=n();var an=ao?ao.length:0;var w,y,ar;for(var ap=0;
ap<an-1;ap++){w=ao[ap];ar=ao[ap+1];y=Math.round((ar-w)*aq);if(ar-w<21-y){v(w)}else{Z(w,y)}}}function v(ap){var ar=H(ap);if(!ar){return}var w=0;for(var an=0,au=ar.length;an<au;an++){var at=ar[an];if(ap===0){return}if(at.x<ap){continue}var aq=R(at.x-5,at.y);if(aq){var ao=aq.el.bounds();var y=aq.el.isVisible()?ao.x:parseInt(aq.el.css("left"));y=y?y:parseInt(aq.el.css("left"));w=ao.width+y;width=at.x+at.width==am?B-w:at.width}at.el.bounds({"x":w,"width":width});at.el.doLayout()}}function Z(w,an){var y=H(w);
if(!y){return}for(var ap=0,ao=y.length;ap<ao;ap++){var aq=y[ap];if(aq.width===0){continue}if(aq.x<w){if(aq.x+aq.width==am){continue}var ar=aq.el.bounds().width;aq.el.bounds({"width":an+ar});aq.el.doLayout();continue}P({item:aq,dw:an,x:w});aq.el.doLayout()}}function P(ao){var au=ao.item,w=ao.dw,ar=ao.x;var y=0;var an=au.el.bounds().width+w;var at=R(au.x-5,au.y);if(at){var aq=at.el.bounds();var ap=at.el.isVisible()?aq.x:parseInt(at.el.css("left"));ap=ap?ap:parseInt(at.el.css("left"));y=aq.width+ap}an=au.x+au.width==am?B-y:an;
an=an<21?21:an;au.el.bounds({"x":y,"width":an})}function q(ao){var w=D();var x=w?w.length-1:0;var ar,ap,aq;for(var an=0;an<x;an++){ar=w[an];aq=w[an+1];ap=Math.round((aq-ar)*ao);if(aq-ar<21-ap){u(ar)}else{af(ar,ap)}}}function u(ap){var aq=G(ap);if(!aq){return}var w=0;for(var an=0,av=aq.length;an<av;an++){var au=aq[an];if(ap===0){return}if(au.y<ap){continue}var ao=R(au.x,au.y-5);if(ao){var ar=ao.el.bounds();var x=ao.el.isVisible()?ar.y:parseInt(ao.el.css("top"));x=x?x:parseInt(ao.el.css("top"));w=ar.height+x;
var at=au.height}au.el.bounds({"y":w,"height":at});au.el.doLayout()}}function af(ar,ap){var w=G(ar);if(!w){return}for(var an=0,x=w.length;an<x;an++){var ao=w[an];if(ao.height===0){continue}if(ao.y<ar){if(ao.y+ao.height==F){continue}var aq=ao.el.bounds().height;ao.el.bounds({"height":aq+ap});ao.el.doLayout();continue}z({item:ao,dh:ap,y:ar});ao.el.doLayout()}}function z(an){var av=an.item,aq=an.dh,ar=an.y;var w=0;var ao=av.el.bounds().height;var ap=R(av.x,av.y-5);if(ap){var at=ap.el.bounds();var x=ap.el.isVisible()?at.y:parseInt(ap.el.css("top"));
x=x?x:parseInt(ap.el.css("top"));w=at.height+x}var au=av.y+av.height==F?Q-w:ao+aq;au=au<21?21:au;av.el.bounds({"y":w,"height":au})}function R(an,au){for(var aq=0,ap=h.length;aq<ap;aq++){var ar=h[aq];var w=ar.x;var at=ar.y;var ao=w<=an&&an<w+ar.width&&at<=au&&au<at+ar.height;if(ao){return ar}}return null}function H(w){var y=[];for(var ao=0,an=h.length;ao<an;ao++){var ap=h[ao];var ar=ap.x;var aq=ar<w&&w<ar+ap.width;if(aq||ar==w){y.push(ap)}}return y}function G(ar){var w=[];for(var an=0,x=h.length;an<x;
an++){var ao=h[an];var aq=ao.y;var ap=aq<ar&&ar<aq+ao.height;if(ap||aq==ar){w.push(ao)}}return w}function n(){var w,ao=[];ao.push(0);ao.push(b());for(var y=0;y<h.length;y++){var an=h[y];w=an.x;if(ao.indexOf(w)==-1){ao.push(w)}}return ao.sort(function(ap,x){return ap>x?1:-1})}function D(){var ao,an=[];an.push(0);an.push(d());for(var w=0;w<h.length;w++){var x=h[w];ao=x.y;if(an.indexOf(ao)==-1){an.push(ao)}}return an.sort(function(ap,y){return ap>y?1:-1})}return U}}function f(n){return function(){return{"width":0,"height":0}
}}function b(){var r,n;var p=0;for(var o=0;o<h.length;o++){var q=h[o];r=h[o].el.isVisible()?q.y:parseInt(h[o].el.css("top"));n=h[o].el.css("display")==="none"?0:q.width;if(r===0){p+=n}}return p}function d(){var n,q;var r=0;for(var o=0;o<h.length;o++){var p=h[o];n=h[o].el.isVisible()?p.x:parseInt(h[o].el.css("left"));q=h[o].el.css("display")==="none"?0:p.height;if(n===0){r+=q}}return r}g.preferred=f("preferred");g.minimum=f("minimum");g.maximum=f("maximum");return g}})}})(jQuery);
(function(a){FR.TitleLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.TitleLayout.superclass._defaultConfig.apply(),{baseCls:"fr-titlelayout",scrollable:false})},_init:function(){FR.TitleLayout.superclass._init.apply(this,arguments);var f=this.options;this.element.addClass(f.baseCls);if(!a.isArray(f.items)){f.items=[];return}var c=f.items,d,b=c.length;f.widgets=[];var h=this.element;for(d=0;d<b;d++){var e=c[d];if(!e.style){e.style=f.style}if(e.type){e.el=e}if(e.el.type){var g=FR.createWidget(a.extend(e.el,{resultWidgets:f.resultWidgets}));
g.titleWidget=this;f.widgets.push(g);e.el=g.element;h.append(e.el)}}this.element.data("jlayout",jLayout.title(f))},doResize:function(c){FR.TitleLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:(c?(c.width!==undefined?c.width:b.width):b.width),height:c?(c.height!==undefined?c.height:b.height):b.height,left:c?(c.left!==undefined?c.left:b.left):b.left,top:c?(c.top!==undefined?c.top:b.top):b.top});this.doLayout()},doLayout:function(){FR.TitleLayout.superclass.doLayout.apply(this,arguments)
}});a.shortcut("title",FR.TitleLayout);FR.HorizontalLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.HorizontalLayout.superclass._defaultConfig.apply(),{alignment:"center",hgap:0,vgap:0,baseCls:"fr-horizontalboxlayout"})},_init:function(){FR.HorizontalLayout.superclass._init.apply(this,arguments);var g=this.options;this.element.addClass(g.baseCls);this.element.css("min-width",g.minWidth);var d=g.items,f,b=d.length;g.widgets=[];for(f=0;f<b;f++){var c=d[f];if(!c.el.style){c.el.style=g.style
}if(c.el&&c.el.type){var h=FR.createWidget(a.extend(c.el,{resultWidgets:g.resultWidgets}));g.widgets.push(h);var e=h.element;d[f].el=e;this.element.append(e)}else{if(c.el instanceof a){this.element.append(c.el)}}}this.element.data("jlayout",jLayout.horizontal(g))},doResize:function(c){FR.HorizontalLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width),height:(c?(c.height||b.height):b.height),left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top})
},doLayout:function(){FR.HorizontalLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("horizontal",FR.HorizontalLayout);FR.ParaHorizontalLayout=FR.extend(FR.HorizontalLayout,{_init:function(){FR.ParaHorizontalLayout.superclass._init.apply(this,arguments);if(FR.Browser.isIE8Before()&&!a.support.boxModel){this.element.css("overflow","visible")}}});a.shortcut("para_horizontal",FR.ParaHorizontalLayout);FR.VerticalBoxLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.VerticalBoxLayout.superclass._defaultConfig.apply(),{hgap:5,vgap:5,baseCls:"fr-verticalboxlayout"})
},_init:function(){FR.VerticalBoxLayout.superclass._init.apply(this,arguments);var g=this.options;this.element.addClass(g.baseCls);var d=g.items,f,b=d.length;g.widgets=[];var j=this.element;if(g.scrollable){j=a('<div class="fr-core-layout-scrollable">').css({position:"absolute",top:0,left:0}).appendTo(this.element);g.scrollContainer=j}for(f=0;f<b;f++){var c=d[f];if(!c.el.style){c.el.style=g.style}if(c.el&&c.el.type){var h=FR.createWidget(a.extend(c.el,{resultWidgets:g.resultWidgets}));g.widgets.push(h);
var e=h.element;d[f].el=e;j.append(e)}else{if(c.el instanceof a){j.append(c.el)}}}this.element.data("jlayout",jLayout.vertical(g))},doResize:function(c){FR.VerticalBoxLayout.superclass.doResize.call(this,c);var b=this.options;this.element.css({width:b.width,height:b.height,left:b.left,top:b.top})},doLayout:function(){FR.VerticalBoxLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("vertical",FR.VerticalBoxLayout);FR.CardBorder=FR.extend(FR.BorderLayout,{_init:function(){FR.CardBorder.superclass._init.apply(this,arguments)
},_initBackGround:function(){if(!this.options.widgetBackground){return}var b=this;setTimeout(function(){FR.CardBorder.superclass._initFitBackground.apply(b,arguments)},10)},doResize:function(c){var b=this.options.width==c.width&&this.options.height==c.height&&(c.left===undefined?true:this.options.x==c.left)&&(c.top===undefined?true:this.options.y==c.top);if(!c||b){return}if(this.element.height()>0){this._initBackGround()}FR.CardBorder.superclass.doResize.call(this,c)}});a.shortcut("cardborder",FR.CardBorder);
FR.CardTagLayoutH=FR.extend(FR.HorizontalLayout,{_init:function(){FR.CardTagLayoutH.superclass._init.apply(this,arguments)},checkCardShowIndex:function(e){var c=0,g=this.options;var d=g.items,b=d.length;if(e<0){e=0}if(e>d.length-1){e=e%d.length}for(var f=e;f<b;f++){if(d[f].el.isVisible()){c=f;break}if(f===b-1){f=-1}if(f===e-1){c=-1;break}}return c},_initBackGround:function(){if(!this.options.widgetBackground){return}FR.CardTagLayoutH.superclass._initFitBackground.apply(this,arguments)},setTabVisible:function(d,e){var c=this.options;
if(!c.cardLayoutName){return}var b=c.form.getWidgetByName(c.cardLayoutName);if(!b){return}b.setTabVisible(d,e)},doResize:function(b){if(!b||(this.options.width==b.width&&this.options.height==b.height)){return}if(this.element.height()>0){this._initBackGround()}FR.CardTagLayoutH.superclass.doResize.call(this,b)},getShowIndex:function(){var c=this.options;if(!c.cardLayoutName){return}var b=c.form.getWidgetByName(c.cardLayoutName);if(!b){return}return b.getShowIndex()},showCardByIndex:function(b){var d=this.options;
if(!d.cardLayoutName){return}var c=d.form.getWidgetByName(d.cardLayoutName);if(!c){return}c.showCardByIndex(b)},showSelectTab:function(d){if(d===-1){this.setVisible(false)}var g=this.options;var c=g.items,e,b=c.length;var h=this.getMoveDelta(b,c);if(h===0){return}for(e=0;e<b;e++){var f=parseInt(c[e].el.css("left"));c[e].el.css("left",f+h+"px")}},getMoveDelta:function(c,d){for(var e=0;e<c;e++){var b=d[e].el.width();if(b<=0){continue}if(d[e].el.css("opacity")==="1"){var f=parseInt(d[e].el.css("left"));
if(b+f>this.element.width()){return this.element.width()-b-f-this.options.hgap}if(f<0){return -f+this.options.hgap}return 0}}}});a.shortcut("cardtaglayouth",FR.CardTagLayoutH);FR.CardTagLayoutV=FR.extend(FR.VerticalBoxLayout,{_init:function(){FR.CardTagLayoutV.superclass._init.apply(this,arguments)},checkCardShowIndex:function(e){var c=0,g=this.options;var d=g.items,b=d.length;if(e<0){e=0}if(e>d.length-1){e=e%d.length}for(var f=e;f<b;f++){if(d[f].el.isVisible()){c=f;break}if(f===b-1){f=-1}if(f===e-1){c=-1;
break}}return c},_initBackGround:function(){if(!this.options.widgetBackground){return}FR.CardTagLayoutV.superclass._initFitBackground.apply(this,arguments)},doResize:function(b){if(!b||(this.options.width==b.width&&this.options.height==b.height)){return}if(this.element.height()>0){this._initBackGround()}FR.CardTagLayoutV.superclass.doResize.call(this,b)},setTabVisible:function(d,e){var c=this.options;if(!c.cardLayoutName){return}var b=c.form.getWidgetByName(c.cardLayoutName);if(!b){return}b.setTabVisible(d,e)
},getShowIndex:function(){var c=this.options;if(!c.cardLayoutName){return}var b=c.form.getWidgetByName(c.cardLayoutName);if(!b){return}return b.getShowIndex()},showCardByIndex:function(b){var d=this.options;if(!d.cardLayoutName){return}var c=d.form.getWidgetByName(d.cardLayoutName);if(!c){return}c.showCardByIndex(b)},showSelectTab:function(d){var f=this.options;var c=f.items,e,b=c.length;var h=this.getMoveDelta(b,c);if(h===0){return}for(e=0;e<b;e++){var g=parseInt(c[e].el.css("top"));c[e].el.css("top",g+h+"px")
}},getMoveDelta:function(b,c){for(var e=0;e<b;e++){var d=c[e].el.height();if(d<=0){continue}if(c[e].el.css("opacity")==="1"){var f=parseInt(c[e].el.css("top"));if(d+f>this.element.height()){return this.element.height()-d-f-this.options.vgap}if(f<0){return -f+this.options.hgap}return 0}}}});a.shortcut("cardtaglayoutv",FR.CardTagLayoutV);FR.FormCardLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.FormCardLayout.superclass._defaultConfig.apply(),{baseCls:"fr-quick-form-card-layout",defaultShowIndex:0})
},_init:function(){FR.FormCardLayout.superclass._init.apply(this,arguments);var k=this;this.tabID=k.options.widgetName;this.element.attr("id",this.tabID);var e=k.options.items.length;var f=a('<button class="fr-slider-left">').css({}).appendTo(this.element).click(function(){if(e===1){return}var m=k.getShowIndex();var l=(m+e-1)%e;k.showCardByIndex(l)}).mouseover(function(){k.sliderShow()}).mouseout(function(){k.sliderBlank()});var c=a('<button class="fr-slider-right">').css({}).appendTo(this.element).click(function(){if(e===1){return
}var m=k.getShowIndex();var l=(m+e+1)%e;k.showCardByIndex(l)}).mouseover(function(){k.sliderShow()}).mouseout(function(){k.sliderBlank()});if(!k.options.isCarousel){f.hide();c.hide()}else{var j=51;for(var d=0;d<e;d++){var h=a("<span/>").css({left:j-e+2*d+"%"}).addClass("slider-dot");var g=a("<div/>").append(h).appendTo(this.element).click({index:d,sb:k},function(l){if(e===1){return}l.data.sb.showCardByIndex(l.data.index)})}}var b=this.options;this.name2Index={};this.cardsHasCreated=[];this._initNameMap();
if(b.showAllCardOnInit){for(var d=b.items.length-1;d>=0;d--){this.showCardByIndex(d)}}else{this.showCardByIndex(this.getShowIndex())}this.clock=null;if(k.options.isCarousel){this.animate()}},_initBackGround:function(){if(!this.options.widgetBackground){return}FR.FormCardLayout.superclass._initFitBackground.apply(this,arguments)},sliderShow:function(){a("#"+this.tabID+" > .fr-slider-left").css("opacity","1.0");a("#"+this.tabID+" > .fr-slider-right").css("opacity","1.0");a("#"+this.tabID+" .slider-dot").css("float","left").css("display","inline")
},sliderBlank:function(){a(".fr-slider-left").css("opacity","0.0");a(".fr-slider-right").css("opacity","0.0");a(".slider-dot").css("display","none")},_initNameMap:function(){var b=this.options.items;for(var d=0;d<b.length;d++){var c;if(b[d].el){c=b[d].el.widgetName}else{c=b[d].widgetName}if(!FR.isEmpty(c)){this.name2Index[c]=d}}},showPaneByIndex:function(b){this.showCardByIndex(b)},showPrevCard:function(){if(!FR.isEmpty(this.showIndex)){this.showCardByIndex(this.showIndex-1)}},showNextCard:function(){if(!FR.isEmpty(this.showIndex)){this.showCardByIndex(this.showIndex+1)
}},showCardTab:function(c){var d=this.options;if(!d.tagLayoutName){return}var b=d.form.getWidgetByName(d.tagLayoutName);if(!b){return}b.showSelectTab(c)},showUnCachedTab:function(d,c,f){var b=this;var e=c[d];if(!e.el){e.el=e}if(e&&e.el&&e.el.type){var g=FR.createWidget(a.extend(e.el,{resultWidgets:f.resultWidgets}));e.el=g.element;e.el.bind("visible",function(l,m){l.stopPropagation();var h=b.getRelateTabButton(f,d);var k=f.form.getWidgetByName(f.tagLayoutName);if(h){h.setVisible(m);if(k){k.doLayout()
}}else{if(k&&k.options.templateStyle!=="default"){k.setItemVisible(d,m)}}if(m){b.showCardByIndex(d);return}if(b.showIndex===d){var j=b.checkCardShowIndex(b.options,d+1);b.showCardByIndex(j)}else{b.showCardByIndex(b.showIndex)}});if(f.form&&f.form.initLinkWidgetEvent){a.each(f.resultWidgets,function(h,j){if(j.options.widgetName!=null){f.form.initLinkWidgetEvent(j)}});if(!FR.isNull(f.form.content)){f.form.content.fireEvent(FR.Events.AFTERINIT)}}}if(e.el.children().length!=0){e.el.doLayout()}this.element.append(e.el);
this.cardsHasCreated.push(d);this.element.data("jlayout",jLayout.card(f))},setTabVisible:function(f,g){var b=-1;for(var c=0;c<this.options.items.length;c++){if(this.options.items[c].widgetName===f.toUpperCase()){b=c;break}}var e=this.cardsHasCreated.indexOf(b);if(e===-1){this.showUnCachedTab(b,this.options.items,this.options)}var d=this.options.form.getWidgetByName(f);d.setVisible(g);d.element.trigger("visible",g)},checkCardShowIndex:function(d,c){if(!d.tagLayoutName){return}var b=this._getWidgetFromResultWidget(d,d.tagLayoutName);
if(b){return b.checkCardShowIndex(c)}return c},showCardByIndex:function(g){g=parseInt(g);if(isNaN(g)){return}var b=this.options;g=this.checkCardShowIndex(this.options,g);if(this.showIndex===g||g<0){return}if(!FR.isEmpty(this.showIndex)){this.fireEvent(FR.Events.CARDCHANGE);if(!b.tagLayoutName){return}var d=this._getWidgetFromResultWidget(b,b.tagLayoutName);if(d){d.fireEvent(FR.Events.CARDCHANGE)}}var h=b.items;if(g<h.length){this.changeAllBackground(b,g);var c=this.showIndex;this.showIndex=g;var m=this.cardsHasCreated.indexOf(g);
if(m===-1){if(c!==undefined){h[c].el.css("visibility","hidden")}this.showUnCachedTab(g,h,b);if(!h[g].el.isVisible()){this.showItemGradual(g,c)}}else{if(FR.Browser.isIE8Before()){h[g].el.css("visibility","inherit");h[c].el.css("visibility","hidden")}else{this.showItemGradual(g,c)}}}this.doLayout();this.showCardTab(g);var l=a("#"+this.tabID+" .slider-dot");if(l.length===0){return}if(this.options.isCarousel){var f=this.options.items.length;for(var e=0;e<f;e++){var k=l.eq(e);if(e===g){k.css("background",'url("'+FR.servletURL+"?op=resource&resource=/com/fr/web/core/js/demo/image/dot-click.png"+'")')
}else{k.css("background",'url("'+FR.servletURL+"?op=resource&resource=/com/fr/web/core/js/demo/image/dot-unclick.png"+'")')}}}},getRelateTabButton:function(c,b){if(!c.allTagName){return}var d=c.allTagName;return this._getWidgetFromResultWidget(c,d[b])},showItemGradual:function(f,d){var e=this.options.items;if(e){if(FR.Browser.isIE8Before()){e[f].el.css("visibility","inherit");e[d].el.css("visibility","hidden");return}var h=10;var b=0.1;var c=60;e[f].el.css("visibility","inherit");e[f].el.css("opacity","0.0");
var j=0;var g=setInterval(function(){j+=1;if(j==h){clearInterval(g);e[f].el.css("opacity",1);e[f].el.css("visibility","inherit");if(d!==undefined){e[d].el.css("opacity",0);e[d].el.css("visibility","hidden")}return}var l=e[f].el.css("opacity");var m=parseFloat(l)+b;e[f].el.css("opacity",m);if(d!==undefined){var k=e[d].el.css("opacity");var n=parseFloat(k)-b;e[d].el.css("opacity",n)}},c)}},changeAllBackground:function(e,c){if(!e.allTagName){return}var f=e.allTagName;for(var d=0;d<f.length;d++){var b=this._getWidgetFromResultWidget(e,f[d]);
if(!b){continue}b.element.css("background","");if(c===d){if(b.options.click){b.setBackground(b.options.click)}b.element.css("opacity","1");b.selected=true;continue}if(b.options.initial){b.setBackground(b.options.initial)}b.selected=false;b.element.css("opacity","0.6")}},_getWidgetFromResultWidget:function(c,b){if(!b||!c.resultWidgets){return null}if(b!==null){return c.resultWidgets[b.toUpperCase()]}},getShowIndex:function(){return this.showIndex?this.showIndex:this.options.defaultShowIndex},showPaneByName:function(b){return this.showCardByName(b)
},showCardByName:function(b){if(FR.isEmpty(b)){return}this.showCardByIndex(this.name2Index[b.toUpperCase()])},doResize:function(c){if(!c||(this.options.width==c.width&&this.options.height==c.height)){return}if(this.element.height()>0){this._initBackGround()}var b=this.options;FR.FormCardLayout.superclass.doResize.call(this,c);this.element.css({width:b.width,height:b.height,left:b.left,top:b.top});this.doLayout()},doLayout:function(){FR.FormCardLayout.superclass.doLayout.apply(this,arguments)},animate:function(){var b=this;
if(!b.options.isCarousel){return}var c=b.options.carouselInterval*1000;b.element.unbind();b.element.mouseenter(function(){b.sliderShow();clearInterval(b.clock)}).mouseleave(function(){b.sliderBlank();clearInterval(b.clock);b.animate()});b.clock=setInterval(function(){b.gotoNextTab()},c)},gotoNextTab:function(){var b=this.options.items.length;var d=this.getShowIndex();var c=(d+1)%b;this.showCardByIndex(c)}});a.shortcut("cardlayout",FR.FormCardLayout);FR.AdaptiveLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.AdaptiveLayout.superclass._defaultConfig.apply(),{baseCls:"fr-quick-adaptive-layout"})
},_init:function(){FR.AdaptiveLayout.superclass._init.apply(this,arguments);var f=this.options;if(!a.isArray(f.items)){f.items=[];return}var c=f.items;f.widgets=[];for(var e=0;e<c.length;e++){var b=c[e];if(!b.style){b.style=f.style}if(b&&b.type){var g=FR.createWidget(a.extend(b,{width:b.width,height:b.height,resultWidgets:f.resultWidgets}));f.widgets.push(g);var d=g.element;b.el=d;this.element.append(d);g.options.adaptiveLayoutItems=c;g.options.layout=this}}this.element.data("jlayout",jLayout.adaptive(f))
},doResize:function(d){if(this.element.height()>0){FR.AdaptiveLayout.superclass._initBackGround.apply(this,arguments)}var c=this.options;if(c.width==d.width&&c.height==d.height){return}var b=this;FR.AdaptiveLayout.superclass.doResize.call(b,d);b.element.css({width:d?(d.width||c.width):c.width,height:d?(d.height||c.height):c.height,left:d?(d.left||c.left):c.left,top:d?(d.top||c.top):c.top});b.doLayout()},doLayout:function(){FR.AdaptiveLayout.superclass.doLayout.apply(this,arguments)},setInnerWidgetVisible:function(c,d,f){var b=this;
var e={op:"fr_form",cmd:"visible_config",widgetName:c,visibility:f,sessionID:FR.SessionMgr.getSessionID(),_SHOWPARA:a(".parameter-container-collapseimg-down").length===0,_SHOWPARATEMPLATE:a("[widgetName=paramsTemplate]").length!==0};var g={totalWidth:FR.windowWidth,totalHeight:FR.windowHeight};a.extend(e,g);FR.ajax({url:FR.servletURL,type:"POST",async:false,data:e,complete:function(k,h){if(!k.responseText){return}var j=FR.jsonDecode(k.responseText);if(j.status!=="success"){return}b.dealWidgetVisible(k,d,f)
}})},dealWidgetVisible:function(B,o,g){var t=this;function l(E){var D=t.options.items;for(var F=0;F<D.length;F++){if(D[F].widgetName&&D[F].widgetName.toLowerCase()===E.toLowerCase()){return D[F]}}return null}function j(D,E){if(D.options&&D.options.type!=="chartwidget"){D.reload()}if(D.titleWidget){D=D.titleWidget}D.doResize(E)}var f=this.options.form;var b=FR.jsonDecode(B.responseText);if(g){o.options.invisible=false;o.element.show();if(b.widgetSizeInfo){var c=b.widgetSizeInfo;for(var w=c.length-1;
w>=0;w--){var C=c[w].widgetName;var m=f.getWidgetByName(C);var y=l(C);var k=c[w].x;var h=c[w].y;var v=c[w].width;var u=c[w].height;if(y.x!==k||y.y!==h||y.width!==v||y.height!==u){j(m,{"left":k,"top":h,"width":v,"height":u});y.x=k;y.y=h;y.width=v;y.height=u}}return}}var q=l(o.getName());if(q&&q.width===0||q.height===0){return}function e(H){for(var E=0;E<H.length;E++){if(!H[E].trisection){var D=H[E].widgetName,G=H[E].extendDirection,F=l(D);if(G==="down"){return F.y-q.y-q.height}if(G==="up"){return q.y-F.y-F.height
}}}}if(b.extendInfo.length>0){for(var w=0;w<b.extendInfo.length;w++){var d=b.extendInfo[w].widgetName,z=b.extendInfo[w].extendDirection,A=l(d);if(z==="right"){A.width=A.width+A.x-q.x;A.x=q.x;var p=f.getWidgetByName(d);j(p,{"left":A.x,"width":A.width})}if(z==="left"){A.width=q.width+q.x-A.x;var r=f.getWidgetByName(d);j(r,{"width":A.width})}if(z==="down"){if(b.extendInfo[w].trisection){var x=e(b.extendInfo)}A.height=b.extendInfo[w].trisection?A.height-q.height-x:A.y+A.height-q.y;A.y=b.extendInfo[w].trisection?A.y+q.height+x:q.y;
var s=f.getWidgetByName(d);j(s,{"top":A.y,"height":A.height})}if(z==="up"){if(b.extendInfo[w].trisection){var x=e(b.extendInfo)}A.height=b.extendInfo[w].trisection?A.height-q.height-x:q.y+q.height-A.y;var n=f.getWidgetByName(d);j(n,{"height":A.height})}}}q.width=0;q.height=0;o.doResize({"width":0,"height":0});o.options.invisible=true;o.element.hide()}});a.shortcut("fit",FR.AdaptiveLayout);FR.ScaleLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.ScaleLayout.superclass._defaultConfig.apply(),{baseCls:"fr-scalelayout",scrollable:false})
},_init:function(){FR.ScaleLayout.superclass._init.apply(this,arguments);var f=this.options;this.element.addClass(f.baseCls);if(!a.isArray(f.items)){f.items=[];return}var c=f.items,d,b=c.length;f.widgets=[];var h=this.element;for(d=0;d<b;d++){var e=c[d];if(!e.style){e.style=f.style}if(e.type){e.el=e}if(e.el.type){var g=FR.createWidget(a.extend(e.el,{resultWidgets:f.resultWidgets}));f.widgets.push(g);e.el=g.element;h.append(e.el)}}this.element.data("jlayout",jLayout.scale(f))},doResize:function(c){FR.ScaleLayout.superclass.doResize.call(this,c);
var b=this.options;this.element.css({width:(c?(c.width||b.width):b.width),height:c?(c.height||b.height):b.height,left:c?(c.left||b.left):b.left,top:c?(c.top||b.top):b.top});this.doLayout()},doLayout:function(){FR.ScaleLayout.superclass.doLayout.apply(this,arguments)}});a.shortcut("scale",FR.ScaleLayout);FR.AbsoluteLayout=FR.extend(FR.Layout,{_defaultConfig:function(){return a.extend(FR.AbsoluteLayout.superclass._defaultConfig.apply(),{baseCls:"fr-absolutelayout",scrollable:false})},_init:function(){FR.AbsoluteLayout.superclass._init.apply(this,arguments);
var g=this.options;if(g.absoluteCompState===1){this.element.css({overflow:"auto"})}this.element.addClass(g.baseCls);if(!a.isArray(g.items)){g.items=[];return}var d=g.items,f,b=d.length;g.widgets=[];var j=this.element;for(f=0;f<b;f++){var c=d[f];if(g.absoluteCompState===0&&!g.hasResize){if(g.absoluteResolutionScaleW&&g.absoluteResolutionScaleH){c.x=parseInt(c.x/g.absoluteResolutionScaleW);c.y=parseInt(c.y/g.absoluteResolutionScaleH);c.width=parseInt(c.width/g.absoluteResolutionScaleW);if(c.type==="title"){c.height=parseInt(((c.height-36)/g.absoluteResolutionScaleH)+36)
}else{c.height=parseInt(c.height/g.absoluteResolutionScaleH)}}}if(!c.style){c.style=g.style}if(c.type){c.el=c}if(c.el.type){var h=FR.createWidget(a.extend(c.el,{resultWidgets:g.resultWidgets}));g.widgets.push(h);var e=h.element;e.css({left:c.x,top:c.y,position:"absolute"});d[f].el=e;j.append(e);h.doResize({width:c.width,height:c.height});h.options.layout=this}else{if(c.el instanceof a){var e=c.el;e.css({left:c.x,top:c.y,position:"absolute"});j.append(e)}}}this.element.data("jlayout",jLayout.absolute(g));
if(FR.Browser.msie&&!a.support.boxModel){if(g.height===0){g.height=1}if(g.width===0){g.width=1}}},setInnerWidgetVisible:function(c,d,f){var b=this;var e={op:"fr_form",cmd:"visible_config",widgetName:c,visibility:f,sessionID:FR.SessionMgr.getSessionID(),_SHOWPARA:a(".parameter-container-collapseimg-down").length===0,_SHOWPARATEMPLATE:a("[widgetName=paramsTemplate]").length!==0};var g={totalWidth:FR.windowWidth,totalHeight:FR.windowHeight};a.extend(e,g);FR.ajax({url:FR.servletURL,type:"POST",async:false,data:e,complete:function(k,h){if(!k.responseText){return
}var j=FR.jsonDecode(k.responseText);if(j.status!=="success"){return}b.dealWidgetVisible(d,f)}})},dealWidgetVisible:function(b,c){if(c){b.options.invisible=false;b.element.show()}else{b.options.invisible=true;b.element.hide()}},doResize:function(f){if(this.element.height()>0){FR.AbsoluteLayout.superclass._initBackGround.apply(this,arguments)}FR.AbsoluteLayout.superclass.doResize.call(this,f);var d=this.options;this.element.css({width:(f?(f.width||d.width):d.width),height:f?(f.height||d.height):d.height,left:f?(f.left||d.left):d.left,top:f?(f.top||d.top):d.top});
for(var c=0,b=this.options.widgets.length;c<b;c++){var e=this.options.widgets[c];if(a.isFunction(e.doResize)){e.doResize({})}}},doLayout:function(){FR.AbsoluteLayout.superclass.doLayout.apply(this,arguments);for(var c=0,b=this.options.widgets.length;c<b;c++){var d=this.options.widgets[c];if(a.isFunction(d.doLayout)){d.doLayout()}}}});a.shortcut("absolute",FR.AbsoluteLayout);FR.LazyAbsoluteLayout=FR.extend(FR.AbsoluteLayout,{lazyAddItem:function(c){if(c===undefined||c===null){return}var f=this.options;
var h=this.element;var b=c.length;for(i=0;i<b;i++){var e=c[i];if(f.absoluteCompState===0&&!f.hasResize){if(f.absoluteResolutionScaleW&&f.absoluteResolutionScaleH){e.x=parseInt(e.x/f.absoluteResolutionScaleW);e.y=parseInt(e.y/f.absoluteResolutionScaleH);e.width=parseInt(e.width/f.absoluteResolutionScaleW);if(e.type==="title"){e.height=parseInt(((e.height-36)/f.absoluteResolutionScaleH)+36)}else{e.height=parseInt(e.height/f.absoluteResolutionScaleH)}}}if(!e.style){e.style=f.style}if(e.type){e.el=e}var d={};
if(e.el.type){var g=FR.createWidget(a.extend(e.el,{resultWidgets:f.resultWidgets}));f.widgets.push(g);d=g.element;d.css({left:e.x,top:e.y,position:"absolute"});c[i].el=d;h.append(d);g.doResize({width:e.width,height:e.height});g.options.layout=this}else{if(e.el instanceof a){d=e.el;d.css({left:e.x,top:e.y,position:"absolute"});h.append(d)}}}this.element.data("jlayout",jLayout.absolute(f))}});a.shortcut("lazyabsolute",FR.LazyAbsoluteLayout);FR.CardTagLayoutS=FR.extend(FR.Layout,{_init:function(){FR.CardTagLayoutS.superclass._init.apply(this,arguments);
this.canvas=document.createElement("canvas");this.context=this.canvas.getContext("2d");this.element.append(a(this.canvas));this.mouseInTab=-1;this.delta=0;this.selectTabIdx=this.checkCardShowIndex(0);this._drawTabs(this.context,"initial");this._addMouseEventListener();this.canvas.style.position="absolute"},checkCardShowIndex:function(e){var c=0,g=this.options;var d=g.items,b=d.length;if(e<0){e=0}if(e>d.length-1){e=e%d.length}for(var f=e;f<b;f++){if(!d[f].el.invisible){c=f;break}if(f===b-1){f=-1}if(f===e-1){c=-1;
break}}return c},_addMouseEventListener:function(){var b=this;var c={onMouseOut:function(d){b._triggerMouseEvent(d,b,"initial");b.mouseInTab=-1},onMouseDown:function(d){b._triggerMouseEvent(d,b,"click")},onMouseUp:function(d){b._triggerMouseEvent(d,b,"initial")},onMouseMove:function(d){b._triggerMouseEvent(d,b,"over")}};a(this.canvas).mouseout(c.onMouseOut).mousedown(c.onMouseDown).mouseup(c.onMouseUp).mousemove(c.onMouseMove)},_triggerMouseEvent:function(j,p,l){var c=j.offsetX-p.canvas.offsetLeft;
var b=j.offsetY-p.canvas.offsetTop;var k=p.options.items;var d=this.context;var o=this.canvas.width/this.options.width;var n=this.canvas.height/this.options.height;var g=-1;for(var h=0;h<k.length;h++){var f=k[h];if(f.el&&f.el.invisible){continue}if(f.el.type==="cardswitch"){var m={"x":c*o,"y":b*n,isPointInPath:false};d.save();p._translateOrigin(f);p._createTabPath(f,h,m);if(m.isPointInPath){g=h}d.restore()}}if(l==="click"&&k[g].el.listeners&&p.selectTabIdx!==g){a.each(k[g].el.listeners,function(e,q){q.action.apply(p);
p.selectTabIdx=g})}if(g!==-1){this.canvas.style.cursor="pointer"}else{this.canvas.style.cursor="initial"}if(l==="over"&&p.mouseInTab===g){d.restore();return}p.mouseInTab=g;p._drawTabs(p.context,l)},setTabVisible:function(d,e){var c=this.options;if(!c.cardLayoutName){return}var b=c.form.getWidgetByName(c.cardLayoutName);if(!b){return}b.setTabVisible(d,e)},setItemVisible:function(b,c){this.options.items[b].el.invisible=!c;this._reDrawTabs()},_translateOrigin:function(b){},_drawTabs:function(g,k){var h=[];
var d=this;this._calculateOriginPoint();var c=this.options.items,b=c.length;for(var e=0;e<b;e++){var f=c[e].el;if(d.selectTabIdx===e){if(f.click&&f.click.background){h.push({background:f.click.background})}else{h.push({background:d.options.selectBackground.background})}continue}if(d.mouseInTab===e&&f[k]&&f[k].background){h.push({background:f[k].background})}else{if(f.initial&&f.initial.background){h.push({background:f.initial.background})}else{h.push({background:"rgba(255, 255, 255, 0)"})}}}this._loadAllImages(h)
},_calculateOriginPoint:function(){},_loadAllImages:function(g){var d=this;var c=0;for(var b=0;b<g.length;b++){if(g[b].background.indexOf("url")!==-1){var h=new Image();var f=g[b].background.indexOf("(");var e=g[b].background.indexOf(")");h.src=g[b].background.substring(f+1,e);(function(j,k){k.onload=function(){var n=d.createTempCanvas(d.options.items[j],k);var m=n.getContext("2d");m.drawImage(k,0,0,n.width,n.height);var l=d.context.createPattern(n,"no-repeat");g[j].background=l;c+=1;d._prepareDraw(c,g)
}})(b,h)}else{c+=1;d._prepareDraw(c,g)}}},_prepareDraw:function(b,c){var d=window.devicePixelRatio||1;if(b===c.length){this.canvas.width=this.options.width*d;this.canvas.height=this.options.height*d;this.canvas.style.width=this.options.width+"px";this.canvas.style.height=this.options.height+"px";this.context.scale(d,d);this._drawPath(c)}},createTempCanvas:function(b){},_drawPath:function(h){var f=this;f.context.clearRect(0,0,f.canvas.width,f.canvas.height);var e=f.options.items,g,c=e.length;var b=function(j){var k=e[j];
if(k.el.invisible){return}f.context.save();f._translateOrigin(k);f.context.fillStyle=h[j].background;f._createTabPath(e[j],j);f.context.restore()};for(g=0;g<c;g++){var d=e[g];if(d&&d.el&&d.el.type==="cardswitch"){if(g===f.selectTabIdx){continue}b(g)}}b(f.selectTabIdx)},_drawTitle:function(c,b,d){},_createTabPath:function(d,c,b){var e="_create"+this.options.templateStyle+"TabPath";if(typeof this[e]==="function"){this[e].call(this,d,c,b)}},_initBackGround:function(){if(!this.options.widgetBackground){return
}FR.CardTagLayoutS.superclass._initFitBackground.apply(this,arguments)},showSelectTab:function(b){if(b>-1&&b<this.options.items.length){this.selectTabIdx=b}this._drawTabs(this.context,"initial")},showCardByIndex:function(b){var d=this.options;if(!d.cardLayoutName){return}var c=d.form.getWidgetByName(d.cardLayoutName);if(!c){return}c.showCardByIndex(b)},getShowIndex:function(){var c=this.options;if(!c.cardLayoutName){return}var b=c.form.getWidgetByName(c.cardLayoutName);if(!b){return}return b.getShowIndex()
},doResize:function(b){if(!b||(this.options.width==b.width&&this.options.height==b.height)){return}if(this.element.height()>0){this._initBackGround()}FR.CardTagLayoutS.superclass.doResize.call(this,b);this._reDrawTabs()},_reDrawTabs:function(){this.delta=0;this._drawTabs(this.context,"initial")}});a.shortcut("cardtaglayouts",FR.CardTagLayoutS);FR.CardTagLayoutSH=FR.extend(FR.CardTagLayoutS,{_init:function(){FR.CardTagLayoutSH.superclass._init.apply(this,arguments);this.canvas.style.left="3px"},_translateOrigin:function(b){this.context.translate(b.el.x,0)
},_calculateOriginPoint:function(){var e=this.options.items;var d=this.delta;for(var f=0;f<e.length;f++){if(e[f].el.invisible){continue}d+=e[f].width;if(this.selectTabIdx===f){if(d>this.element.width()){this.delta+=this.element.width()-d}else{if(d<e[f].width){this.delta+=(e[f].width-d)}}break}}var b=this.delta;for(var g=0;g<e.length;g++){if(e[g].el.invisible){continue}var c=e[g];if(c.el.type==="cardswitch"){c.el.x=b;b+=c.width}}},createTempCanvas:function(d){var e=document.createElement("canvas");
var c=d.width;var b=this.options.height;switch(this.options.templateStyle){case"Banner":case"BookMark":c+=20;break;case"Card":c+=8;break;case"Menu":c+=b>40?20:b/2;break}e.width=c;e.height=this.options.height;return e},_drawTitle:function(c,n,b){c.save();c.beginPath();c.fillStyle=this.options.fontcolor;if(this.options.fontShadow){c.shadowColor="#000000";c.shadowOffsetX=3;c.shadowOffsetY=3;c.shadowBlur=1}c.font=this.options.font;var k=n.text;var m=a("<span></span>");m.css("font",this.options.font).css("visibility","hidden");
m.text(k);a("body").append(m);var j=m.height();var g=m.width();m.remove();if(this.options.textDirection===0){c.textBaseline="middle";c.textAlign="center";var l=b/2,h=this.options.height/2;c.fillText(k,l,h);if(this.options.decoration==="underline"){c.moveTo(l-g/2,h+j/2);c.lineTo(l+g/2,h+j/2);c.stroke()}if(this.options.decoration==="line-through"){c.moveTo(l-g/2,h);c.lineTo(l+g/2,h);c.stroke()}}else{var e=(this.options.height-j*k.length)/2;c.textBaseline="top";c.textAlign="center";for(var d=0;d<k.length;
d++){var l=b/2,h=e+j*d;c.fillText(k.charAt(d),l,h);var f=c.measureText(k.charAt(d)).width;if(this.options.decoration==="underline"){c.moveTo(l-f/2,h+j);c.lineTo(l+f/2,h+j);c.stroke()}if(this.options.decoration==="line-through"){c.moveTo(l-f/2,h+j/2);c.lineTo(l+f/2,h+j/2);c.stroke()}}}c.restore()},_createBannerTabPath:function(e,g,h){var b=e.width,j=this.options.height,c=this.context,k=e.el,f=20,d=1;c.save();c.translate(-f,d);c.beginPath();c.moveTo(0,j/2);c.lineTo(f,0);c.lineTo(b+f,0);c.lineTo(b,j/2);
c.lineTo(b+f,j);c.lineTo(f,j);c.lineTo(0,j/2);c.closePath();if(!h){c.fill();c.lineWidth=0.1;c.stroke();c.save();c.shadowColor="#000000";c.shadowOffsetX=-4;c.shadowBlur=4;c.beginPath();c.moveTo(f+b,0);c.lineTo(b,j/2);c.lineTo(b+f,j);c.stroke();c.restore();this._drawTitle(c,k,b)}else{if(c.isPointInPath(h.x,h.y)){h.isPointInPath=true}}c.restore()},_createCardTabPath:function(d,f,g){var b=d.width,j=this.options.height,c=this.context,k=d.el,e=8,h=4;c.beginPath();c.moveTo(0,j);c.lineTo(e,j);c.lineTo(e,h);
c.closePath();if(!g){c.fill();c.save();c.fillStyle="#000000";c.globalAlpha=0.2;c.beginPath();c.moveTo(0,j);c.lineTo(e,j);c.lineTo(e,h);c.closePath();c.fill();c.restore()}else{if(c.isPointInPath(g.x,g.y)){g.isPointInPath=true}}c.beginPath();c.moveTo(e,0);c.arcTo(b,0,b,j,h);c.lineTo(b,j);c.lineTo(e,j);c.arcTo(e,0,b,0,h);c.closePath();if(!g){c.fill();this._drawTitle(c,k,b)}else{if(c.isPointInPath(g.x,g.y)){g.isPointInPath=true}}},_createBookMarkTabPath:function(e,h,j){var b=e.width,l=this.options.height,c=this.context,m=e.el,g=20,d=1,k=5,f=3;
c.beginPath();c.moveTo(g,d);c.lineTo(b,d);c.lineTo(b,l-d);c.lineTo(g,l-d);c.arcTo(-f,l/2,g,d,k);c.lineTo(g,d);c.closePath();if(!j){c.strokeStyle="#000000";c.lineWidth=0.1;c.stroke();c.fill();this._drawTitle(c,m,b)}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}if(this.selectTabIdx!==h){return}c.save();c.beginPath();c.fillStyle="white";c.arc(g-k,l/2,k,0,2*Math.PI);c.closePath();if(!j){c.stroke();c.fill()}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}c.restore()},_createTrapezoidTabPath:function(d,f,g){var b=d.width,j=this.options.height,c=this.context,k=d.el,e=24,h=5;
c.beginPath();c.moveTo(0,j);c.lineTo(b,j);c.arcTo(b-e,0,b-e-1,0,h);c.arcTo(0,0,0,j,h);c.closePath();if(!g){c.fill();this._drawTitle(c,k,b-e)}else{if(c.isPointInPath(g.x,g.y)){g.isPointInPath=true}}},_createMenuTabPath:function(e,g,h){var b=e.width,k=this.options.height,c=this.context,l=e.el,f=16,j=k>40?20:k/2,d=1;c.beginPath();c.moveTo(0,k);c.arcTo(j,k,j,j,j);c.lineTo(j,j);c.arcTo(j,d,j*2,d,j);c.lineTo(b+f-j*2,d);c.arcTo(b+f-j,d,b+f-j,j,j);c.lineTo(b+f-j,j);c.arcTo(b+f-j,k,b+f,k,j);c.closePath();
if(!h){c.lineWidth=0.1;c.stroke();c.fill();this._drawTitle(c,l,b+f)}else{if(c.isPointInPath(h.x,h.y)){h.isPointInPath=true}}},_createPentagonTabPath:function(e,h,j){var b=e.width,k=this.options.height,c=this.context,l=e.el,g=6,d=1,f=16;c.beginPath();c.moveTo(0,d);c.lineTo(b-f-g,d);c.lineTo(b-g,f);c.lineTo(b-g,k-d);c.lineTo(0,k-d);c.closePath();if(!j){c.lineWidth=0.1;c.stroke();c.fill();this._drawTitle(c,l,b-g)}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}c.beginPath();c.moveTo(b-g,f);c.lineTo(b,f+g-d);
c.lineTo(b,k-d);c.lineTo(b-g,k-d);c.closePath();if(!j){c.save();c.lineWidth=0.1;c.stroke();c.fill();c.restore();c.save();c.beginPath();c.moveTo(b-g,f);c.lineTo(b,f+g-d);c.lineTo(b,k-d);c.lineTo(b-g,k-d);c.closePath();c.fillStyle="#000000";c.globalAlpha=0.2;c.fill();c.restore()}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}}});a.shortcut("cardtaglayoutsh",FR.CardTagLayoutSH);FR.CardTagLayoutSV=FR.extend(FR.CardTagLayoutS,{_init:function(){FR.CardTagLayoutSV.superclass._init.apply(this,arguments);
this.canvas.style.top="3px"},_translateOrigin:function(b){this.context.translate(0,b.el.y)},_calculateOriginPoint:function(){var g=this.delta;var c=this.options.items;for(var d=0;d<c.length;d++){if(c[d].el.invisible){continue}g+=c[d].height;if(this.selectTabIdx===d){if(g>this.element.height()){this.delta+=this.element.height()-g}else{if(g<c[d].height){this.delta+=(c[d].height-g)}}}}var f=this.delta;for(var e=0;e<c.length;e++){if(c[e].el.invisible){continue}var b=c[e];if(b.el.type==="cardswitch"){b.el.y=f;
f+=b.height}}},createTempCanvas:function(d){var e=document.createElement("canvas");var c=this.options.width;var b=d.height;switch(this.options.templateStyle){case"Banner":case"BookMark":b+=20;break;case"Card":b+=8;break;case"Menu":b+=c>40?20:c/2;break}e.width=this.options.width;e.height=b;return e},_drawTitle:function(b,n,m){b.save();b.beginPath();b.fillStyle=this.options.fontcolor;if(this.options.fontShadow){b.shadowColor="#000000";b.shadowOffsetX=3;b.shadowOffsetY=3;b.shadowBlur=1}b.font=this.options.font;
b.textAlign="center";var j=n.text;var l=a("<span></span>");l.css("font",this.options.font).css("visibility","hidden");l.text(j);a("body").append(l);var h=l.height();var f=l.width();l.remove();if(this.options.textDirection===0){b.textBaseline="middle";b.textAlign="center";var k=this.options.width/2,g=m/2;b.fillText(j,k,g);if(this.options.decoration==="underline"){b.moveTo(k-f/2,g+h/2);b.lineTo(k+f/2,g+h/2);b.stroke()}if(this.options.decoration==="line-through"){b.moveTo(k-f/2,g);b.lineTo(k+f/2,g);
b.stroke()}}else{var d=(m-h*j.length)/2;b.textBaseline="top";for(var c=0;c<j.length;c++){var k=this.options.width/2,g=d+h*c;b.fillText(j.charAt(c),k,g);var e=b.measureText(j.charAt(c)).width;if(this.options.decoration==="underline"){b.moveTo(k-e/2,g+h);b.lineTo(k+e/2,g+h);b.stroke()}if(this.options.decoration==="line-through"){b.moveTo(k-e/2,g+h/2);b.lineTo(k+e/2,g+h/2);b.stroke()}}}b.restore()},_createBannerTabPath:function(d,g,h){var b=this.options.width,j=d.height,c=this.context,k=d.el,f=20,e=1;
c.save();c.translate(e,-f);c.beginPath();c.moveTo(b/2,0);c.lineTo(0,f);c.lineTo(0,j+f);c.lineTo(b/2,j);c.lineTo(b,j+f);c.lineTo(b,f);c.lineTo(b/2,0);c.closePath();if(!h){c.fill();c.lineWidth=0.1;c.stroke();c.save();c.shadowColor="#000000";c.shadowOffsetX=-4;c.shadowOffsetY=0;c.shadowBlur=4;c.beginPath();c.moveTo(0,j+f);c.lineTo(b/2,j);c.lineTo(b,j+f);c.stroke();c.restore();this._drawTitle(c,k,j)}else{if(c.isPointInPath(h.x,h.y)){h.isPointInPath=true}}c.restore()},_createCardTabPath:function(d,f,g){var b=this.options.width,j=d.height,c=this.context,k=d.el,e=8,h=4;
c.beginPath();c.moveTo(b,0);c.arcTo(0,0,0,j-e,h);c.arcTo(0,j-e,b,j-e,h);c.lineTo(b,j-e);c.closePath();if(!g){c.fill();this._drawTitle(c,k,j)}else{if(c.isPointInPath(g.x,g.y)){g.isPointInPath=true}}c.beginPath();c.moveTo(b,j-e);c.lineTo(b,j);c.lineTo(h,j-e);c.closePath();if(!g){c.fill();c.save();c.fillStyle="#000000";c.globalAlpha=0.2;c.beginPath();c.moveTo(b,j-e);c.lineTo(b,j);c.lineTo(h,j-e);c.fill();c.restore()}else{if(c.isPointInPath(g.x,g.y)){g.isPointInPath=true}}},_createBookMarkTabPath:function(e,h,j){var b=this.options.width,l=e.height,c=this.context,m=e.el,g=25,k=5,f=1,d=3;
c.beginPath();c.moveTo(b-f,g);c.lineTo(b-f,l);c.lineTo(f,l);c.lineTo(f,g);c.arcTo(b/2,-d,b,g,k);c.closePath();if(!j){c.strokeStyle="#000000";c.lineWidth=0.1;c.stroke();c.fill();this._drawTitle(c,m,l)}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}if(this.selectTabIdx!==h){return}c.save();c.beginPath();c.fillStyle="white";c.arc(b/2,g-k,k,0,2*Math.PI);c.closePath();if(!j){c.stroke();c.fill()}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}c.restore()},_createTrapezoidTabPath:function(d,f,g){var b=this.options.width,j=d.height,c=this.context,k=d.el,e=24,h=5;
c.beginPath();c.moveTo(b,0);c.lineTo(b,j);c.arcTo(0,j-e,0,0,h);c.arcTo(0,0,b,0,h);c.closePath();if(!g){c.fill();this._drawTitle(c,k,j-e)}else{if(c.isPointInPath(g.x,g.y)){g.isPointInPath=true}}},_createMenuTabPath:function(d,g,h){var b=this.options.width,k=d.height,c=this.context,l=d.el,f=16,j=b>40?20:b/2,e=1;c.beginPath();c.moveTo(b,0);c.arcTo(b,j,b/2,j,j);c.lineTo(b/2,j);c.arcTo(e,j,e,k+f-j*2,j);c.lineTo(e,k+f-j*2);c.arcTo(e,k+f-j,b/2,k+f-j,j);c.lineTo(b/2,k+f-j);c.arcTo(b,k+f-j,b,k+b,j);c.closePath();
if(!h){c.lineWidth=0.1;c.stroke();c.fill();this._drawTitle(c,l,k+f)}else{if(c.isPointInPath(h.x,h.y)){h.isPointInPath=true}}},_createPentagonTabPath:function(e,h,j){var b=this.options.width,k=e.height,c=this.context,l=e.el,d=6,g=16,f=1;c.beginPath();c.moveTo(f,0);c.lineTo(f,k-g-d);c.lineTo(g,k-d);c.lineTo(b-f,k-d);c.lineTo(b-f,0);c.closePath();if(!j){c.lineWidth=0.1;c.stroke();c.fill();this._drawTitle(c,l,k-d)}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}c.beginPath();c.moveTo(g,k-d);c.lineTo(g+d,k);
c.lineTo(b-f,k);c.lineTo(b-f,k-d);c.closePath();if(!j){c.save();c.lineWidth=0.1;c.stroke();c.fill();c.restore();c.save();c.beginPath();c.moveTo(g,k-d);c.lineTo(g+d,k);c.lineTo(b-f,k);c.lineTo(b-f,k-d);c.closePath();c.fillStyle="#000000";c.globalAlpha=0.2;c.fill();c.restore()}else{if(c.isPointInPath(j.x,j.y)){j.isPointInPath=true}}}});a.shortcut("cardtaglayoutsv",FR.CardTagLayoutSV);FR.CardTitleLayout=FR.extend(FR.BorderLayout,{_init:function(){FR.CardTitleLayout.superclass._init.apply(this,arguments)
},doResize:function(b){FR.CardTitleLayout.superclass.doResize.call(this,b);this.adjustWidth(this.options)},adjustWidth:function(e){var d=e.form;if(!d||!e.tagLayoutName){return}var c=this._getWidgetFromResultWidget(e,e.tagLayoutName);if(!c){return}var g=e.titleWidth;var f=this._getWidgetFromResultWidget(e,e.preBtnName);var b=this._getWidgetFromResultWidget(e,e.nextBtnName);if(f&&b&&c.options.displayposition===0||c.options.displayposition===2){f.setVisible(c.options.width<g);b.setVisible(c.options.width<g)
}else{f.setVisible(c.options.height<g);b.setVisible(c.options.height<g)}},_getWidgetFromResultWidget:function(c,b){var d=form.getWidgetByName(b);if(d){return d}if(!b||!c.resultWidgets){return null}if(b!==null){return c.resultWidgets[b.toUpperCase()]}}});a.shortcut("cardtitlelayout",FR.CardTitleLayout)})(jQuery);
(function(a){FR.frMenu=function(b){this.$menuRoot=a("<div class='fr-ui-core-menu menu'>");this.closeNow=true;this.init();this.applyOptions(b);return this};FR.frMenu.prototype={init:function(){var b=this;this.$menuRoot.hover(function(){b.closeNow=false},function(c){if(c&&b.submenu&&b.submenu.$menuRoot&&(c.clientX<b.submenu.$menuRoot.offset().left)){b.close(true)}else{b.close()}});this.$menuRoot.appendTo("body")},hasSubmenu:function(){var b=false;if(this.items){a.each(this.items,function(c,d){if(d.submenu){b=true;
return false}})}return b},applyOptions:function(c){var b=this;this.removechildren();this.$menuRoot.css("z-index",3333);this.items=c.items;this.$el=c.$el;this.options=c;this.destroyOnClose=c.destroyOnClose!=null?c.destroyOnClose:true;this.closeOnHover=true;if(this.hasSubmenu()){this.submenu=new FR.frMenu({destroyOnClose:false,item:[]})}if(this.$el){this.$el.mouseout(function(){if(b.resizeid!=null){clearTimeout(b.resizeid);b.resizeid=null}b.resizeid=setTimeout(function(){if(b.closeNow){b.close()}},200)
})}this.cItems=[];this.minWidth=c.minWidth||80;this.xxxfixclientH=c.xxxfixclientH;this.xxxMMenu=c.xxxMMenu;if(a.isArray(this.items)){this.addItems(this.items)}if(this.xxxMMenu){if(contentPane&&contentPane.$contentPane&&!FR.xxxmenu_array){FR.xxxmenu_array=[];contentPane.$contentPane.click(function(){var e=[];for(var d=0;d<FR.xxxmenu_array.length;d++){e.unshift(FR.xxxmenu_array[d])}for(var d=0;d<e.length;d++){e[d].close(true)}})}}},addItems:function(c){for(var d=0,b=c.length;d<b;d++){this.addItem(c[d])
}if(this.minWidth&&this.minWidth>=this.$menuRoot.width()){this.$menuRoot.width(this.minWidth);this.$menuRoot.children("div").width(this.minWidth-8)}},addItem:function(c){var j=this;var g=a("<div style='width:167px'>").appendTo(this.$menuRoot);if(c.type==="sep"){g.addClass("menu-sep").html("'&nbsp;'")}else{j.bindMenuItemEvent(g,c);if(c.color){var d=a("<div id=mc style='background-color:"+c.color+";height:12px; width:12px; position:absolute; left:8px; top:4px'></div>").appendTo(g)}var i=a('<div class="menu-text"></div>').html(c.src).appendTo(g);
var b=i.position().left*2+i.width();if(this.minWidth<b){this.minWidth=b}var e=c.iconSrc?c.iconSrc.replace("css:",""):"";if(e){a('<div class="menu-icon"></div>').addClass(e).appendTo(g)}if(c.submenu){var f=c.arrowSrc?c.arrowSrc.replace("css:",""):"";if(f){a('<div class="menu-customarrow"></div>').addClass(f).appendTo(g)}else{a('<div class="menu-rightarrow"></div>').appendTo(g)}}if(a.support.boxModel===true){var h=g.height()||22;g.height(h-(g.outerHeight()-g.height()))}this.cItems[this.cItems.length]=g
}},children:function(){return this.cItems},bindMenuItemEvent:function(c,d){c.addClass("menu-item");var b=this;if(d.submenu){c.hover(function(){b.closeSub();c.siblings().each(function(){a(this).removeClass("menu-active")});if(c.attr("disabled")){return}c.addClass("menu-active");if(a.isArray(d.submenu)){var e={destroyOnClose:false,minWidth:b.minWidth,items:d.submenu,parMenu:b};b.submenu.$menuRoot.show();b.submenu.applyOptions(e);b.submenu.$menuRoot.hide();var f=c.offset().left+c.outerWidth()+2;if(f+b.submenu.$menuRoot.outerWidth()>FR.windowWidth){f=c.offset().left-b.submenu.$menuRoot.outerWidth()
}b.submenu.position(f,c.offset().top);b.submenu.show()}},function(f){})}else{c.click(function(f){if(c.attr("disabled")){return}if(d.chartEvent){d.chartEvent.chartGlyph.layerToDataPointNext(d.dataPoint);d.chartEvent.refreshing()}else{d.handler.call(b,f,this)}b.close(true)});c.hover(function(){b.closeSub();if(c.attr("disabled")){return}c.siblings().each(function(){a(this).removeClass("menu-active")});c.addClass("menu-active")},function(f){c.removeClass("menu-active")})}},position:function(b,c){this.$menuRoot.css({left:b,top:c})
},show:function(){this.$menuRoot.show();if(parentMenu=this.options.parMenu){parentMenu.closeOnHover=false}},close:function(b){if(b){if(this.destroyOnClose){this.remove()}else{this.closeSub()}if(parentMenu=this.options.parMenu){parentMenu.close(true)}else{this.$menuRoot.hide()}}else{if(this.closeOnHover){if(this.destroyOnClose){this.remove()}else{this.closeSub();this.$menuRoot.hide()}if(parentMenu=this.options.parMenu){parentMenu.closeOnHover=true}}}},remove:function(){this.$menuRoot.remove();if(this.$el){delete this.$el.fr_menu
}if(this.submenu){this.submenu.remove()}},removechildren:function(){if(this.cItems){for(var c=0,b=this.cItems.length;c<b;c++){this.cItems[c].remove()}}if(this.submenu){this.submenu.remove()}},closeSub:function(){if(this.submenu&&!this.submenu.$menuRoot.is(":hidden")){this.submenu.close()}}}})(jQuery);
FR.Object=function(a){this.options=$.extend(this._defaultConfig(),a);this._init()};$.extend(FR.Object.prototype,{_defaultConfig:function(){return{}},_init:function(){}});FR.Record=FR.extend(FR.Object,{_defaultConfig:function(){return $.extend(FR.ObjectSource.superclass._defaultConfig.apply(this,arguments),{data:[],createFields:[],choosedFields:[],showField:"",titleField:"",showEmptyValue:"",valueField:"",showTemplate:"",valueTemplate:""})},_init:function(){FR.Record.superclass._init.apply(this,arguments);
$.extend(this,this.options);this.nameProperty();this.initMethods()},nameProperty:function(){if(this.createFields){for(var b=0,a=this.createFields.length;b<a;b++){if(this.createFields[b]!=b){this.data[this.createFields[b]]=this.data[b];delete this.data[b]}}}},initMethods:function(){if(this.choosedFields){var d=this;var c=function(i){return function(){return d.data[i]}};var g=function(i){return function(j){d.data[i]=j}};for(var f=0,a=this.choosedFields.length;f<a;f++){var e=this.choosedFields[f];var h=e.startWith("is")||e.startWith("get")?e:"get"+e;
var b;if(e.startWith("is")){b="set"+e.substr(2)}else{if(e.startWith("get")){b="set"+e.substr(3)}else{if(e.startWith("set")){b=e}else{b="set"+e}}}this[h]=c(e);this[b]=g(e)}}},getShowValue:function(){var a=this.getShowTemplate()||this.getShowField();if(a==null){a=this.getNoAppointShowValue()}a=this.formatShowValue(a);return(this.showEmptyValue&&a==null)?this.showEmptyValue:a},getTitleValue:function(){if(this.titleField){return this.data[this.titleField]}},setTitleValue:function(a){if(this.titleField){this.data[this.titleField]=a;
return true}},setShowValue:function(a){this.setShowTemplate(a)||this.setShowField(a)},setShowTemplate:function(a){if(this.showTemplate){this.data[this.showTemplate]=a;return true}},setShowField:function(a){if(this.showField){this.data[this.showField]=a;return true}},getValue:function(){var a=this.getValueTemplate()||this.getValueField();if(a!=null){return a}return this.getNoAppointValue()},setValue:function(a){this.setValueTemplate(a)||this.setValueField(a)},setValueTemplate:function(a){if(this.valueTemplate){this.data[this.valueTemplate]=a;
return true}},setValueField:function(a){if(this.valueField){this.data[this.valueField]=a;return true}},getNoAppointShowValue:function(){if(this.showField!=null||this.showTemplate!=null){return}return this.getFirstProperty()},getNoAppointValue:function(){if(this.valueField!=null||this.valueTemplate!=null){return}return this.getFirstProperty()},getFirstProperty:function(){for(var a in this.data){if(!$.isFunction(this.data[a])){return this.data[a]}}},getShowField:function(){if(this.showField){return this.data[this.showField]
}},getValueField:function(){if(this.valueField){return this.data[this.valueField]}},getShowTemplate:function(){if(this.showTemplate){return this.dealTemplate(this.showTemplate)}},getValueTemplate:function(){if(this.valueTemplate){return this.dealTemplate(this.valueTemplate)}},dealTemplate:function(b){var a;while((a=/{[^{}]+}/g.exec(b))!=null){b=b.substr(0,a.index)+a[0].substr(1,a[0].length-1)+b.substr(a.index+a[0].index)}return b},formatShowValue:function(a){if(typeof a=="string"&&a.indexOf("__time__")>-1){return FR.date2Str(FR.jsonDecode(a),"yyyy-MM-dd HH:mm:ss")
}return a},getContent:function(){return this.data},setContent:function(a){this.data=a},getProperty:function(a){return this.data[a]},setProperty:function(a,b){this.data[a]=b}});FR.Node=FR.extend(FR.Record,{_init:function(){FR.Node.superclass._init.apply(this,arguments);if(!this.nodeSource){if(this.children&&this.data&&this.data[this.children]){this.nodeSource=new FR.ObjectSource({data:this.data[this.children]})}else{if(this.options.url){this.nodeSource=new FR.URLSource({url:this.options.url})}}}if(!this.nodeReader){this.nodeReader=new FR.NodeReader(this.copyProperties())
}this.childrenNodes=[]},getParent:function(){return this.parent},setParent:function(a){this.parent=a},getPathAsValueString:function(){return this.getValuePath(true)},getPathAsTextString:function(){return this.getTextPath(true)},getValuePath:function(b){var a=[this.data.value];var c=this.getParent();while(c){a.unshift(c.data.value);c=c.getParent()}return b?a.join(","):a},getTextPath:function(b){var a=[this.data.text];var c=this.getParent();while(c){a.unshift(c.data.text);c=c.getParent()}return b?a.join(","):a
},getLeafNode:function(d){var c=d||[];if(!this.hasChild()){c.push(this);return c}else{var b=this.getChildren();for(var a=0;a<b.length;a++){b[a].getLeafNode(c)}}return c},getAncestorsLength:function(){var a=0;var b=this.getParent();while(b){a++;b=b.getParent()}return a},hasChild:function(){return this.hasChildren!=null?this.data[this.hasChildren]||(this.data["ChildNodes"]&&(this.data["ChildNodes"]).length!==0):((this.children!=null&&this.data[this.children])||this.getChildrenLength()>0)},getChildren:function(){return this.loadChildren()
},getChildrenLength:function(){return this.loadChildren().length},getChild:function(a){return this.loadChildren()[a]},getID:function(){return this.data[this.id]},setID:function(a){this.data[this.id]=a},getParentID:function(){var a=this.data[this.parentID];return a!=null?a:(this.getParent()?this.getParent().getID():null)},getValue:function(){return this.data["value"]},getText:function(){return this.data["text"]},setParentID:function(){},setUnselectable:function(a){this.data[this.unselectable]=a},isUnselectable:function(){return this.data[this.unselectable]
},isSelected:function(){return this.selectedField!=null?this.data[this.selectedField]:this.selected},setSelected:function(a){this.selectedField!=null?this.data[this.selectedField]=a:this.selected=a},loadChildren:function(){if(!this.hasChild()){return[]}if(this.isLoaded){return this.childrenNodes}if(!this.nodeSource){return[]}this.resetStatus();this.childrenNodes=this.nodeReader.readObject(this.nodeSource.loadObject());this.isLoaded=true;return this.childrenNodes},isLoadComplete:function(){return this.nodeSource?this.nodeSource.isLoaded():true
},copyProperties:function(){var a={};this.createFields&&(a.createFields=this.createFields);this.choosedFields&&(a.choosedFields=this.choosedFields);this.showField&&(a.showField=this.showField);this.titleField&&(a.titleField=this.titleField);this.showEmptyValue&&(a.showEmptyValue=this.showEmptyValue);this.valueField&&(a.valueField=this.valueField);this.showTemplate&&(a.showTemplate=this.showTemplate);this.valueTemplate&&(a.valueTemplkate=this.valueTemplate);this.parameterFields&&(a.parameterFields=this.parameterFields);
this.hasChildren&&(a.hasChildren=this.hasChildren);this.type&&(a.type=this.type);this.id!=null&&(a.id=this.id);this.parentID!=null&&(a.parentID=this.parentID);this.options.url&&(a.url=this.getChildURL()||this.options.url);this.childurlField&&(a.childurlField=this.childurlField);this.children&&(a.children=this.children);this.selectedField&&(a.selectedField=this.selectedField);a.parent=this;return a},getChildURL:function(){return this.childurl?this.childurl:this.data[this.childurlField]},setChildURL:function(a){this.childurlField!=null?this.data[this.childurlField]=a:this.childurl=a
},addNode:function(a){this.isLoaded=true;this.childrenNodes.push(a);a.setParent(this)},removeNode:function(a){this.childrenNodes.removeWeakEqual(a)},sortChildren:function(){},clearData:function(){this.isLoaded=false;delete this.childrenNodes;this.childrenNodes=[]},createParaObj:function(){var b={};if(this.parameterFields){for(var c=0,a=this.parameterFields.length;c<a;c++){b[this.parameterFields[c]]=this.data[this.parameterFields[c]]}}if(this.additionalParameters){for(var c in this.additionalParameters){b[c]=this.additionalParameters[c]
}}b["parent_values"]=this.getValuePath();b["parentID"]=this.getParentID();return{parameter:b}},additionalParameter:function(a){this.additionalParameters=a.parameter},getAdditionalNodes:function(){var a=this.nodeReader.readObject(this.nodeSource.loadObject());this.childrenNodes=this.childrenNodes.concat(a);return a},resetStatus4AddNodes:function(b){var a=this.createParaObj();$.extend(a.parameter,b.parameter);this.nodeSource.resetStatus(a)},resetStatus:function(){if(!this.nodeSource){return}if(this.nodeSource.resetStatus(this.createParaObj())){this.clearData()
}},isAllChildrenChosen:function(){if(!this.hasChild()||!this.isLoadComplete()){return false}for(var a=0;a<this.childrenNodes.length;a++){if(this.childrenNodes[a].getcheckstate()!==1){return false}}return true},getAllChildren:function(){var c=[];var b=this.getChildren();if(b.length==0){return[this]}for(var a=0;a<b.length;a++){c=c.concat(b[a].getAllChildren())}return c}});FR.RootNodeLoader=FR.extend(FR.OB,{_init:function(){FR.RootNodeLoader.superclass._init.apply(this,arguments);this.options.rootSource=new FR.URLSource({url:this.options.url,data:this});
if(!this.options.rootReader){this.options.rootReader=new FR.DefaultNodeReader({url:this.options.url})}this.rootNodes=[]},updateData:function(b){var a=this.options.rootReader.readObject(b);if(this.rootNodes.length<1){this.rootNodes=a;this.fireEvent(FR.Events.AFTERREAD,a)}else{Array.prototype.push.apply(this.rootNodes,a);this.fireEvent(FR.Events.APPENDDATA,a)}},getRootNodes:function(){if(this.isLoaded){return this.rootNodes}this.rootNodes=this.loadNodes();this.isLoaded=true;return this.rootNodes},getRootNodesAsync:function(c){var a=this;
if(this.isLoaded){c.call(this,this.rootNodes)}if(a.options.rootSource&&this.options.rootReader){var b=function(d){a.isLoaded=true;if(c&&$.isFunction(c)){a.rootNodes=a.options.rootReader.readObject(d);c.call(this,a.rootNodes)}};a.options.rootSource.loadObject(b)}},loadNodes:function(){return this.options.rootReader.readObject(this.options.rootSource.loadObject())},appendRoot:function(a){this.rootNodes.push(a)},resetStatus4AddRootNodes:function(a){this.options.rootSource.resetStatus(a)},resetStatus:function(a){if(this.options.rootSource.resetStatus(a)){this.clearRoots()
}},clearRoots:function(){this.isLoaded=false;this.rootNodes=[]}});FR.DataSource=FR.extend(FR.OB,{_init:function(){FR.DataSource.superclass._init.apply(this,arguments)},loadObject:function(){return{}},resetStatus:function(){return false},isLocalSource:function(){return true},isLoaded:function(){return true}});FR.ObjectSource=FR.extend(FR.DataSource,{_defaultConfig:function(){return $.extend(FR.ObjectSource.superclass._defaultConfig.apply(),{data:[]})},_init:function(){FR.ObjectSource.superclass._init.apply(this,arguments)
},loadObject:function(a){if(this.options.data&&a&&$.isFunction(a)){a.call(this,this.options.data)}return this.options.data},isLocalSource:function(){return true}});FR.URLSource=FR.extend(FR.DataSource,{_defaultConfig:function(){return $.extend(FR.URLSource.superclass._defaultConfig.apply(this,arguments),{parameter:{},isLoaded:false})},_init:function(){FR.URLSource.superclass._init.apply(this,arguments);this.checkUrl()},checkUrl:function(){if(!this.options.url){FR.Msg.toast("URL is needed to create URLSource!");
return}return true},setData:function(a,b){this.options.parameter=a.parameter;this.data=b;this.options.isLoaded=true},loadObject:function(c){if(!this.checkUrl()){return}var b=this._getEncodeURL();if(this.need2load()){this.loading=true;var a=this;FR.ajax({type:"POST",url:b.length===0?encodeURI(a.options.url):b,data:this.generateParaData(true),async:c!==undefined,complete:function(d){if(!FR.versionRemind(d.responseText)){a.loading=false;return}a.fireEvent(FR.Events.AFTERLOAD);a.options.isLoaded=true;
a.data=FR.jsonDecode(d.responseText);if(c&&$.isFunction(c)){c.call(a,a.data);a.loading=false;return}a.loading=false},error:function(){FR.Msg.toast(FR.i18nText("Fine-Engine_Report_Data_Get_Data_Error"))}})}if(this.data&&c&&$.isFunction(c)){c.call(this,this.data)}return this.data},_findShowValue:function(d,e){var b=this._getEncodeURL();var c=this.generateParaData(false);c.cmd="viewvalue";if(e!==false){c.__value__=d}else{c.__text__=d}var f;var a=this;FR.ajax({type:"POST",url:(b.length===0?a.options.url:b),data:c,async:false,complete:function(h){if(!FR.versionRemind(h.responseText)){return
}var g=FR.jsonDecode(h.responseText);if(g.value!==undefined){f=g.value}},error:function(){FR.Msg.toast(FR.i18nText("Fine-Engine_Report_Data_Get_Data_Error"))}});return f},_findAllValue:function(){if(!this.checkUrl()){return}var b=this._getEncodeURL();var a=this;FR.ajax({type:"POST",url:(b.length===0?a.options.url:b),data:this.generateParaDataWithNoLimit(true),async:false,complete:function(c){if(!FR.versionRemind(c.responseText)){return}a.options.isLoaded=true;a.data=FR.jsonDecode(c.responseText)},error:function(){FR.Msg.toast(FR.i18nText("Fine-Engine_Report_Data_Get_Data_Error"))
}});return this.data},generateParaDataWithNoLimit:function(b){if(this.options.parameter){var c={};for(var a in this.options.parameter){if(!$.isFunction(this.options.parameter[a])){if(a=="startIndex"||a=="limitIndex"){continue}else{c[a]=(typeof this.options.parameter[a]=="string")?this.options.parameter[a]:FR.jsonEncode(this.options.parameter[a])}}}if(this.reload){c.reload=true}if(b===true){c.reload=true}c.dataFilter="";return c}},_getEncodeURL:function(){var b="";if(this.options.url.indexOf("widgetname")>=0){var a=this.options.url.split("&");
$.each(a,function(c,d){if(d.indexOf("widgetname")>=0){a[c]="widgetname="+encodeURIComponent(encodeURIComponent(d.substring(11,d.length)))}});$.each(a,function(c,d){if(c!=a.length-1){b+=d+"&"}else{b+=d}})}return b},resetStatus:function(a){return this.resetUrl(arguments.length===1?a.url:arguments[0])||this.resetParameter(arguments.length===1?a.parameter:arguments[1])},resetUrl:function(a){if(a!=null&&a!=this.options.url){this.options.url=a;this.clearData();return true}},resetParameter:function(a){if(a!=null&&!FR.equals(this.options.parameter,a)){if(!FR.equals(this.options.parameter["dependence"],a["dependence"])){this.reload=true
}else{this.reload=false}this.options.parameter=a;this.clearData();return true}},need2load:function(){return this.data==null&&this.loading!=true},clearData:function(){if(this.data!=null){this.options.isLoaded=false;delete this.data;this.data=null}},destroy:function(){this.options.url=null;this.options.parameter=null;this.clearData()},generateParaData:function(b){if(this.options.parameter){b=!FR.isEmptyObj(this.options.parameter.dependence)||b;var c={};for(var a in this.options.parameter){if(!$.isFunction(this.options.parameter[a])){c[a]=(typeof this.options.parameter[a]=="string")?this.options.parameter[a]:FR.jsonEncode(this.options.parameter[a])
}}return this.setReloadPara(c,b)}},setReloadPara:function(b,a){if(this.reload){b.reload=true}if(a===true){b.reload=true}return b},isLocalSource:function(){return false},isLoaded:function(){return this.options.isLoaded}});FR.SynchronObjectSource=FR.extend(FR.DataSource,{_defaultConfig:function(){return $.extend(FR.ObjectSource.superclass._defaultConfig.apply(),{object:[]})},_init:function(){FR.ObjectSource.superclass._init.apply(this,arguments)},loadObject:function(){this.options.data.updateData(this.options.object)
},isLocalSource:function(){return true},resetStatus:function(){return false}});FR.SynchronTreeSource=FR.extend(FR.OB,{_init:function(){FR.SynchronTreeSource.superclass._init.apply(this,arguments)},loadObject:function(){this.options.data.updateData(this.options.treedata)},resetStatus:function(){return false}});FR.SynchronURLSource=FR.extend(FR.URLSource,{_init:function(){FR.SynchronURLSource.superclass._init.apply(this,arguments)},loadObject:function(){if(!this.checkUrl()){return}var a=this;FR.ajax({type:"POST",url:this.options.url,data:this.generateParaData(),complete:function(b){if(!FR.versionRemind(b.responseText)){return
}a.fireEvent(FR.Events.AFTERLOAD);a.options.isLoaded=true;if(a.options.data){a.options.data.updateData(FR.jsonDecode(b.responseText))}},error:function(){FR.Msg.toast(FR.i18nText("Fine-Engine_Report_Data_Get_Data_Error"))}})},resetParameter:function(b){if(b!=null&&!FR.equals(this.options.parameter,b)){var a=false;if(!FR.equals(this.options.parameter.dependence,b.dependence)){a=true;this.reload=true}else{this.reload=false}if(!FR.equals(this.options.parameter.filter,b.filter)){a=true}this.options.parameter=b;
return a}}});FR.DataReader=FR.extend(FR.Object,{readObject:function(e){if($.isArray(e)){var b=[];var c={};if(this.options){c.createFields=this.options.createFields;c.choosedFields=this.options.choosedFields;c.showField=this.options.showField;c.titleField=this.options.titleField;c.showEmptyValue=this.options.showEmptyValue;c.valueField=this.options.valueField;c.showTemplate=this.options.showTemplate;c.valueTemplate=this.options.valueTemplate}for(var d=0,a=e.length;d<a;d++){c.data=e[d];b.push(new FR.Record(c))
}return b}}});FR.ArrayReader=FR.extend(FR.DataReader,{_init:function(){FR.ArrayReader.superclass._init.apply(this,arguments)}});FR.JSONReader=FR.extend(FR.DataReader,{_init:function(){FR.JSONReader.superclass._init.apply(this,arguments)}});FR.DefaultReader=FR.extend(FR.ArrayReader,{_defaultConfig:function(){return $.extend(FR.DefaultReader.superclass._defaultConfig.apply(this,arguments),{showField:"text",titleField:"titleText",valueField:"value"})},_init:function(){FR.DefaultReader.superclass._init.apply(this,arguments)
}});FR.NodeReader=FR.extend(FR.DataReader,{_init:function(){FR.NodeReader.superclass._init.apply(this,arguments)},readObject:function(e){if(!$.isArray(e)){e=[e]}var b=[];var c=this.nodeProperties();for(var d=0,a=e.length;d<a;d++){c.data=e[d];b.push(new FR.Node(c))}return b},nodeProperties:function(){var a={};if(!this.options){return}a.createFields=this.options.createFields;a.choosedFields=this.options.choosedFields;a.showField=this.options.showField;a.titleField=this.options.titleField;a.showEmptyValue=this.options.showEmptyValue;
a.valueField=this.options.valueField;a.showTemplate=this.options.showTemplate;a.valueTemplate=this.options.valueTemplate;a.parameterFields=this.options.parameterFields;a.hasChildren=this.options.hasChildren;a.type=this.options.type;a.id=this.options.id;a.parentID=this.options.parentID;a.url=this.options.url;a.parent=this.options.parent;a.selectedField=this.options.selectedField;a.children=this.options.children;return a}});FR.DefaultNodeReader=FR.extend(FR.NodeReader,{_init:function(){FR.DefaultNodeReader.superclass._init.apply(this,arguments)
},nodeProperties:function(){return{url:this.options.url,id:"id",parentID:"parentID",showField:"text",titleField:"titleText",valueField:"value",hasChildren:"hasChildren",children:"ChildNodes",parameterFields:["id","value"],choosedFields:["isexpand","nodeicon","classes","showcheck","checkstate"],parent:this.options.parent}}});FR.DefaultSynchronNodeReader=FR.extend(FR.NodeReader,{_init:function(){FR.DefaultSynchronNodeReader.superclass._init.apply(this,arguments)},nodeProperties:function(){return{id:"id",parentID:"parentID",showField:"text",titleField:"titleText",valueField:"value",hasChildren:"hasChildren",children:"ChildNodes",parameterFields:["id","value"],choosedFields:["isexpand","nodeicon","classes","showcheck","checkstate"],parent:this.options.parent}
}});FR.Data=FR.extend(FR.Object,{_defaultConfig:function(){return $.extend(FR.DataReader.superclass._defaultConfig.apply(this,arguments),{records:[]})},_init:function(){FR.Data.superclass._init.apply(this,arguments);if(!this.options.dataSource){this.options.dataSource=new FR.ObjectSource()}if(!this.options.dataReader){this.options.dataReader=new FR.DataReader()}this.records=this.options.records},executeData:function(){if(this.options.dataSource&&this.options.dataReader){return this.options.dataReader.readObject(this.options.dataSource.loadObject())
}},getData:function(){return this.getRecords()},setData:function(a,b){if(this.options.dataSource){this.options.dataSource.setData(a,b)}this.records=this.executeData()},appendData:function(){var a=this.executeData();Array.prototype.push.apply(this.records,a);return a},getRecords:function(){if(this.records&&this.records.length>0){return this.records}this.records=this.executeData();return this.records},loadRecordsAsync:function(c){var a=this;if(this.records&&this.records.length>0){if($.isFunction(c)){c.call(this,this.records);
return}}if(this.options.dataSource&&this.options.dataReader){var b=function(d){if(c&&$.isFunction(c)){a.records=a.options.dataReader.readObject(d);c.call(a,a.records)}};a.options.dataSource.loadObject(b)}},getLoadedRecords:function(){return this.records},getLength:function(){var a=this.getRecords();if(!a){return 0}return a.length},getRecord:function(a){return this.getRecords()[a]},addRecord:function(a){this.getRecords().push(a)},removeRecord:function(a){if(typeof a=="number"){this.getRecords().splice(a,1)
}else{if(typeof a=="object"){this.getRecords().removeWeakEqual(a)}}},clearData:function(){if(this.records&&this.records.length>0){delete this.records;this.records=[]}},resetStatus:function(a){if(this.options.dataSource.resetStatus(a)){this.clearData()}},resetStatusKeepData:function(a){this.options.dataSource.resetStatus(a)},isLocalSource:function(){return this.options.dataSource.isLocalSource()},isLoaded:function(){return this.options.dataSource.isLoaded()}});FR.LocalTreeData=FR.extend(FR.OB,{_init:function(){},updateData:function(){},getData:function(){}});
FR.TreeData=FR.extend(FR.OB,{_init:function(){FR.TreeData.superclass._init.apply(this,arguments);if(!this.options.treeLoader&&!this.options.url){FR.Msg.toast("DataUrl or TreeLoader is needed to create TreeData.");return}if(!this.options.treeLoader&&this.options.url){this.options.treeLoader=FR.DataFactory.createDefaultRootNodes(this.options.url)}},getData:function(){return this.options.treeLoader.getRootNodes()},loadRecordsAsync:function(a){return this.options.treeLoader.getRootNodesAsync(a)},loadNodes:function(){this.options.treeLoader.loadNodes()
},getChildrenLength:function(){return this.options.treeLoader.getRootNodes().length},appendRoot:function(a){this.options.treeLoader.add(a)},resetStatus4AddRootNodes:function(a){this.options.treeLoader.resetStatus4AddRootNodes(a)},resetStatus:function(a){this.options.treeLoader.resetStatus(a)},setData:function(a,b){this.options.treeLoader.clearRoots();this.options.treeLoader.options.rootSource.setData(a,b)},afterRead:function(a){if(!a){return false}return this.options.treeLoader.on(FR.Events.AFTERREAD,a)
},appendDataEvent:function(a){if(!a){return false}return this.options.treeLoader.on(FR.Events.APPENDDATA,a)},isLocalSource:function(){return false}});FR.SynchronData=FR.extend(FR.OB,{_init:function(){FR.SynchronData.superclass._init.apply(this,arguments);if(!this.options.url&&!this.options.dataSource){FR.Msg.toast("SourceURL is needed to create SynchronData");return}if(!this.options.dataSource){this.options.dataSource=new FR.SynchronURLSource({url:this.options.url})}if(!this.options.dataReader){this.options.dataReader=new FR.DefaultReader()
}this.options.dataSource.options.data=this;this.records=[]},updateData:function(b){var a=this.options.dataReader.readObject(b);var c=this.records.length;this.appendData(a);return c?this.fireEvent(FR.Events.APPENDDATA,a):this.fireEvent(FR.Events.AFTERREAD,a)},addRecord:function(a){this.records.push(a)},removeRecord:function(a){this.records.removeWeakEqual(a)},getData:function(){return this},loadData:function(){this.options.dataSource.loadObject()},appendData:function(a){if(a!=null){Array.prototype.push.apply(this.records,a)
}},getRecords:function(){return this.records},getLoadedRecords:function(){return this.records},getLength:function(){return this.getRecords().length},getRecord:function(a){return this.records[a]},afterRead:function(a){if(!a){return false}return this.on(FR.Events.AFTERREAD,a)},clearData:function(){if(this.records&&this.records.length>0){delete this.records;this.records=[]}},appendDataEvent:function(a){if(!a){return false}return this.on(FR.Events.APPENDDATA,a)},resetStatus:function(a){this.options.dataSource.resetStatus(a);
delete this.records;this.records=[];return true}});FR.SynchronTreeData=FR.extend(FR.OB,{_init:function(){FR.SynchronTreeData.superclass._init.apply(this,arguments);if(!this.options.url&&!this.options.dataSource){FR.Msg.toast("SourceURL is needed to create SynchronTreeData");return}if(!this.options.dataSource){this.options.dataSource=new FR.SynchronURLSource({url:this.options.url})}if(!this.options.dataReader){this.options.dataReader=new FR.DefaultSynchronNodeReader()}this.options.dataSource.options.data=this;
this.nodes=[]},updateData:function(b){var a=this.options.dataReader.readObject(b);var c=this.nodes.length;this.appendData(a);return c?this.fireEvent(FR.Events.APPENDDATA,a):this.fireEvent(FR.Events.AFTERREAD,a)},getData:function(a){if(a&&$.isFunction(a)){a.call(this,this.nodes)}},loadNodes:function(){this.loadData()},loadData:function(){this.options.dataSource.loadObject()},appendData:function(b){for(var c=0,a=b.length;c<a;c++){var d;if(b[c].getParentID()!=null){d=this.getParentNodeByParentID(b[c].getParentID())
}else{d=this.getParentNode(b[c].getID())}if(d){d.addNode(b[c])}else{this.nodes.push(b[c])}}},removeData:function(b){var a=b.getParent();if(a){a.removeNode(b)}else{this.nodes.removeWeakEqual(b)}},getParentNodeByParentID:function(d){for(var c=0,a=this.nodes.length;c<a;c++){var b=this.getNodeByID(this.nodes[c],d);if(b){return b}}},getNodeByID:function(e,f){if(e.getID()==f){return e}var c=e.getChildren();for(var b=0,a=c.length;b<a;b++){var d=this.getNodeByID(c[b],f);if(d){return d}}},getParentNode:function(e){e=e.toString();
var b=e.split("-");if(b.length<2){return}var d=this.nodes[b[0]-1];for(var c=1,a=b.length-1;c<a;c++){d=d.getChild(b[c]-1)}return d},getAllNodesLength:function(){var c=this.nodes.length;for(var b=0,a=this.nodes.length;b<a;b++){c+=this.executeLength(this.nodes[b])}return c},isEmptyData:function(){return this.nodes.length<1},executeLength:function(c){var d=c.getChildrenLength();for(var b=0,a=c.getChildrenLength();b<a;b++){d+=this.executeLength(c.getChild(b))}return d},afterRead:function(a){if(!a){return false
}return this.on(FR.Events.AFTERREAD,a)},appendDataEvent:function(a){if(!a){return false}return this.on(FR.Events.APPENDDATA,a)},getLastRootNode:function(){return this.nodes[this.nodes.length-1]},resetStatus:function(a){if(this.options.dataSource.resetStatus(a)){delete this.nodes;this.nodes=[];return true}},isLocalSource:function(){return false}});FR.AjaxSearchData=FR.extend(FR.URLSource,{_init:function(){FR.AjaxSearchData.superclass._init.apply(this,arguments)},loadObject:function(d){if(!this.checkUrl()){return
}var b=this;var c="";if(this.options.url.indexOf("widgetname")>=0){var a=this.options.url.split("&");$.each(a,function(e,f){if(f.indexOf("widgetname")>=0){a[e]="widgetname="+encodeURIComponent(encodeURIComponent(f.substring(11,f.length)))}});$.each(a,function(e,f){if(e!=a.length-1){c+=f+"&"}else{c+=f}})}else{c=this.options.url}FR.ajax({type:"POST",url:c,data:this.generateParaData(false),async:true,complete:function(e){if(!FR.versionRemind(e.responseText)){return}b.fireEvent(FR.Events.AFTERLOAD);b.options.isLoaded=true;
if($.isFunction(d)){d.call(b,FR.jsonDecode(e.responseText))}},error:function(){FR.Msg.toast(FR.i18nText("Fine-Engine_Report_Data_Get_Data_Error"))}})}});FR.ItemTreeData=FR.extend(FR.OB,{_init:function(){FR.ItemTreeData.superclass._init.apply(this,arguments);if(!this.options.items){FR.Msg.toast("Tree Node Items is needed to create ItemTreeData.");return}var a=this.options.items;if(typeof a=="string"){a=FR.jsonDecode(a)}if($.isArray(a)&&a.length>0&&!(a[0] instanceof FR.Node)){a=new FR.DefaultNodeReader().readObject(a)
}this.nodes=a},getData:function(a){if(a&&$.isFunction(a)){a.call(this,this.nodes)}else{return this.nodes}},isLocalSource:function(){return false},resetStatus:function(){},appendDataEvent:function(){},loadNodes:function(){}});FR.DataFactory={};$.extend(FR.DataFactory,{createArrayData:function(a,b){return new FR.Data({dataSource:new FR.ObjectSource({data:a}),dataReader:new FR.DefaultReader(b)})},createSynchronArrayData:function(a){return new FR.SynchronData({dataSource:new FR.SynchronObjectSource({object:a}),dataReader:new FR.DefaultReader()})
},createJSONData:function(b,a){return new FR.Data({dataSource:new FR.URLSource({url:b}),dataReader:new FR.DefaultReader(a)})},createSynchronJSONData:function(a,b){return new FR.SynchronData({dataSource:new FR.SynchronURLSource({url:a,async:!!b}),dataReader:new FR.DefaultReader()})},createEmptyData:function(){return new FR.Data()},createItemRecord:function(a){return new FR.Record({data:a,showField:"text",valueField:"value",titleField:"titleText"})},createDefaultRootNodes:function(a){return new FR.RootNodeLoader({url:a})
}});
FR.DatePicker=FR.extend(FR.Widget,{CONSTS:{VIEWMODE:{YM:0,YMD:1,HMS:2,YMDHMS:3},MINYEAR:1900,MAXYEAR:2999,NAV:{"prevm":2,"nextm":3,"title":4,"clear":5,"today":6,"dok":7,"prevy":8,"nexty":9,"cancel":10,"mok":11,"plus":12,"minus":13,"firstday":14,"current":15,"day":100,"month":200,"year":300},FIRSTDAY:0},_TT:{CALENDAR:FR.i18nText("Fine-Engine_Basic_Calendar"),WK:FR.i18nText("Fine-Engine_Basic_Week"),CLEAR:FR.i18nText("Fine-Engine_Basic_Clear"),TODAY:FR.i18nText("Fine-Engine_Basic_Today"),OK:FR.i18nText("Fine-Engine_Basic_OK"),CANCEL:FR.i18nText("Fine-Engine_Basic_Cancel"),CURRENT:FR.i18nText("Fine-Engine_Basic_Current")},_defaultConfig:function(){return $.extend(FR.DatePicker.superclass._defaultConfig.apply(this,arguments),{widgetName:"datepicker",inputField:null,format:null,viewMode:1,endDate:null,startDate:null,date:null,dateFormat:null,onDateUpdate:null,onClear:function(){this._hideView()
},onOK:function(){this._hideView()},onClose:function(){this._hideView()},onToday:function(){this._hideView()}})},_hideView:function(){if(FR.Browser.isIE8()){this.element.css("visibility","hidden")}else{this.element.hide()}},_init:function(){FR.DatePicker.superclass._init.apply(this,arguments);this.element.addClass("fr-datepicker");this.cache={showYear:null,showMonth:null};this._initTables();this._bindEvts()},_initTables:function(){var a=this.options;this.$datetable=this._createDatePicker();this._loadDateData(this.$datetable,new Date(this.options.date));
this.$monthtable=this._createMonthPicker();this.$timetable=this._createTimePicker();switch(a.viewMode){case this.CONSTS.VIEWMODE.YM:this._loadMonthData(this.$monthtable,new Date(this.options.date));this._cacheCurrentDate();this.$monthtable.appendTo(this.element).show();break;case this.CONSTS.VIEWMODE.HMS:this._loadTimeData(this.$timetable,this.options.date);this._addTimeOptPane(this.$timetable);this.$timetable.appendTo(this.element).show();break;case this.CONSTS.VIEWMODE.YMD:this.$datetable.appendTo(this.element).show();
this.$monthtable.hide().appendTo(this.element);break;default:this.$datetable.appendTo(this.element).show();this.$monthtable.hide().appendTo(this.element);var b=$("<tr/>").prependTo(this.$datetable.find("tfoot"));this._loadTimeData(this.$timetable,this.options.date);this.$timetable.show().appendTo($('<td colspan="8" class="time"/>').appendTo(b));break}},_createTimePicker:function(){var g=$('<table cellspacing = "0" cellpadding = "0" class="tt"/>');var b=$("<tbody>").appendTo(g);var h=this,a=this.options,d=this.CONSTS.NAV;
g.$h=$("<input/>").data("time","h").keyup(function(){var k=this.value;var j=parseInt(k,10);if(j<24&&j>=0){a.date.setHours(j);FR.applyFunc(h,a.onDateUpdate,arguments)}}).focus(function(){g.focus=$(this)}).mousedown(function(j){j.stopPropagation()});g.$m=$("<input/>").data("time","m").keyup(function(){var k=this.value;var j=parseInt(k,10);if(j<60&&j>=0){a.date.setMinutes(j);FR.applyFunc(h,a.onDateUpdate,arguments)}}).focus(function(){g.focus=$(this)}).mousedown(function(j){j.stopPropagation()});g.$s=$("<input/>").data("time","s").keyup(function(){var k=this.value;
var j=parseInt(k,10);if(j<60&&j>=0){a.date.setSeconds(j);FR.applyFunc(h,a.onDateUpdate,arguments)}}).focus(function(){g.focus=$(this)}).mousedown(function(j){j.stopPropagation()});g.focus=g.$s;var c=$("<td/>").html("&and;").data("nav",d["plus"]);var i=$("<td/>").html("&or;").data("nav",d["minus"]);var f=$("<tr/>").append($('<td rowspan="2"/>').text(FR.i18nText("Fine-Engine_Basic_Time"))).append($('<td rowspan="2"/>').append(g.$h)).append($('<td class="common" rowspan="2"/>').text(":")).append($('<td rowspan="2"/>').append(g.$m)).append($('<td class="common" rowspan="2"/>').text(":")).append($('<td rowspan="2"/>').append(g.$s)).append(c).appendTo(b);
var e=$("<tr/>").append(i).appendTo(b);b.find("input").mousewheel(function(j){if(this.D<0){h._doTimeInc(g,$(this))}else{h._doTimeDec(g,$(this))}return false});return g},_addTimeOptPane:function(d){var c=this.CONSTS.NAV;var a=$("<tfoot/>");var b=$('<tr class="optbtns"/>').appendTo(a);this._createCell(b,this._TT["CLEAR"],2,c["clear"],"clear");this._createCell(b,this._TT["CURRENT"],3,c["current"],"current");this._createCell(b,this._TT["OK"],2,c["dok"],"ok");a.appendTo(d)},_createDatePicker:function(){var j=$('<table cellspacing = "0" cellpadding = "0" class="dt"/>');
var a=this.CONSTS.NAV;var f=$("<thead/>").appendTo(j);k=$('<tr class = "mainhead"/>');j.$prevm=this._createCell(k,"&lsaquo;",1,a["prevm"],"prevm");j.$title=$('<td class="title" colspan="6"/>').data("nav",a["title"]).appendTo(k);j.$nextm=this._createCell(k,"&rsaquo;",1,a["nextm"],"nextm");k.appendTo(f);k=$("<tr/>");$('<td class="name wn">'+this._TT["WK"]+"</td>").appendTo(k);for(var c=7;c>0;--c){$("<td/>").appendTo(k)}for(var c=0;c<7;++c){var b=k.children().eq(c+1);var e=(c+this.CONSTS.FIRSTDAY)%7;
b.addClass("day name").text(Date._SDN[e]);if([0,6].indexOf(e)!=-1){b.addClass("weekend")}if([0,1].indexOf(e)!=-1){b.addClass("fd").data("nav",this.CONSTS.NAV["firstday"]).data("fd",e)}}k.appendTo(f);var d=$('<tbody onselectstart="return false"/>').appendTo(j);for(c=6;c>0;c--){var k=$("<tr/>").appendTo(d);for(var h=0;h<=7;h++){$("<td/>").appendTo(k)}}var g=$("<tfoot/>").appendTo(j);var k=$('<tr class = "optbtns"/>');this._createCell(k,this._TT["CLEAR"],2,a["clear"],"clear");this._createCell(k,this._TT["TODAY"],4,a["today"],"today");
this._createCell(k,this._TT["OK"],2,a["dok"],"ok");k.appendTo(g);return j},_createMonthPicker:function(){var c=$('<table cellspacing = "0" cellpadding = "0" class="mt"/>');var f=this.CONSTS.NAV;var b=$('<tbody class="datemenubody"/>').appendTo(c);var e=$('<tr class="datemenutr"/>').appendTo(b);for(var g=0;g<2;g++){$('<td class="month"/>').appendTo(e)}this._createCell(e,"&laquo;",1,f["prevy"]," prevy");this._createCell(e,"&raquo;",1,f["nexty"]," nexty");for(var a=0;a<5;a++){e=$("<tr/>").appendTo(b);
$('<td class="month"/><td class="month"/>'+'<td class="year"/><td class="year"/>').appendTo(e)}var d=$("<tfoot/>").appendTo(c);e=$('<tr class="optbtns"/>').appendTo(d);this._createCell(e,this._TT["OK"],2,f["mok"],"ok");this._createCell(e,this._TT["CANCEL"],2,f["cancel"],"cancel");return c},_toPrevMonth:function(){var d=this.options.startDate,a=this.options.date;var c=this.cache.showMonth,b=this.cache.showYear;if(!d){if(c>0){this._setMonth(c-1)}else{a.setFullYear(b-1);this._setMonth(11)}return}if(b>d.getFullYear()){if(c>0){this._setMonth(c-1)
}else{a.setFullYear(b-1);this._setMonth(11)}}else{if(b==d.getFullYear()){if(c>d.getMonth()&&c>0){this._setMonth(c-1);if(a<d){a=new Date(d)}}}}},_toNextMonth:function(){var b=this.options.endDate,a=this.options.date;var d=this.cache.showMonth,c=this.cache.showYear;if(!b){if(d<11){this._setMonth(d+1)}else{a.setFullYear(c+1);this._setMonth(0)}return}if(c<b.getFullYear()){if(d<11){this._setMonth(d+1)}else{a.setFullYear(c+1);this._setMonth(0)}}else{if(c==b.getFullYear()){if(d<b.getMonth()){this._setMonth(d+1);
if(a>b){a=new Date(b)}}}}},_toPrevDecade:function(){var e=this.options.startDate,a=this.options.date;var b=a.getFullYear()-10,d=a.getMonth();var c,f;if(e&&b==(f=e.getFullYear())){c=e.getMonth()}if(!f||f<this.CONSTS.MINYEAR){f=this.CONSTS.MINYEAR}if(b<f){a.setFullYear(f);if(d<c){a.setMonth(c)}}else{a.setFullYear(b)}},_toNextDecade:function(){var c=this.options.endDate,b=this.options.date;var d=b.getFullYear()+10,e=b.getMonth();var f,a;if(c&&d==(a=c.getFullYear())){f=c.getMonth()}if(!a||a>this.CONSTS.MAXYEAR){a=this.CONSTS.MAXYEAR
}if(d>a){b.setFullYear(a);if(e<f){b.setMonth(f)}}else{b.setFullYear(d)}},_setMonth:function(b){var f=this.options.date;var d=f.getDate(),e=this.options.endDate,c=this.options.startDate;var a=f.getMonthDays(b);if(d>a){f.setDate(a)}f.setMonth(b);if(e&&f>e){f.setDate(e.getDate()>a?a:e.getDate())}if(c&&f<c){f.setDate(c.getDate()>a?a:c.getDate())}},_loadDateData:function(s,u){if(!u){return}var g=u.getFullYear(),v=u.getMonth(),p=u.getDate();var t=new Date(),k=t.getFullYear(),w=t.getMonth(),a=t.getDate();
this.cache.showYear=g;this.cache.showMonth=v;var x=this.options.startDate,r=this.options.endDate;s.$title.text(Date._MN[v]+", "+g);var b=new Date(u);b.setDate(b.getMonthDays()+1);if((r&&b>r)||b.getFullYear()>this.CONSTS.MAXYEAR){s.$nextm.addClass("disabled").removeClass("hover").data("disabled",true)}else{s.$nextm.removeClass("disabled").data("disabled",false)}var o=new Date(u);o.setDate(0);if((x&&o<x)||o.getFullYear()<this.CONSTS.MINYEAR){s.$prevm.addClass("disabled").removeClass("hover").data("disabled",true)
}else{s.$prevm.removeClass("disabled").data("disabled",false)}u.setDate(1);var l=(u.getDay()-this.CONSTS.FIRSTDAY)%7;u.setDate(0-l);u.setDate(u.getDate()+1);var m=s.find("tbody").children().eq(0);for(var q=0;q<6;q++){if(!m.length){break}var d=m.children().eq(0);d.addClass("week wn").text(u.getWeekNumber());var e;for(var n=0;n<7;++n,u.setDate(e+1)){d=d.next();d.removeClass().data("nav",this.CONSTS.NAV["day"]);if(!d.length){break}e=u.getDate();d.text(e);var h=(u.getMonth()==v);if(!h){d.addClass("oday").data("disabled",true);
continue}var c=false;if((x!=null&&x>u)||(r!=null&&r<u)){d.addClass("day disabled");c=true}else{d.addClass("day")}d.data("disabled",c);if(!c){if(h&&e==p){this.cache.selectedDate&&this.cache.selectedDate.removeClass("selected");d.addClass("selected");this.cache.selectedDate=d;this.cache.showDay=e}if(u.getFullYear()==k&&u.getMonth()==w&&e==a){d.addClass("today")}var f=u.getDay();if([0,6].indexOf(f)!=-1){d.addClass("weekend")}}}m=m.next()}},_loadMonthData:function(t,u){if(!u){return}var j=u.getFullYear(),w=u.getMonth();
var k=$(t).data("midYear");if(!k){k=j}else{if(j>k+5){k+=10}else{if(j<k-4){k-=10}}}$(t).data("midYear",k);var p=[k-4,k-3,k-2,k-1,k,k+1,k+2,k+3,k+4,k+5];var d=$("td.year",t);var l=$("td.month",t);var m=this.options;var e=m.endDate;var a=m.startDate;var b,v,c,h;if(e){b=e.getFullYear();h=e}else{h=new Date(this.CONSTS.MAXYEAR+1,0,1)}if(!b||b>this.CONSTS.MAXYEAR){b=this.CONSTS.MAXYEAR}if(a){v=a.getFullYear();c=a}else{c=new Date(this.CONSTS.MINYEAR+1,11,0)}if(!v||v<this.CONSTS.MINYEAR){v=this.CONSTS.MINYEAR
}for(var q=0;q<12;q++){var x=l.eq(q).text(Date._MN[q]).data("nav",this.CONSTS.NAV["month"]).data("month",q);if(q===w){this.cache.selectedMonth&&this.cache.selectedMonth.removeClass("selected");x.addClass("selected");this.cache.selectedMonth=x}var f=new Date(j,q,1),n=new Date(j,q+1,0);if(f>h||n<c){x.addClass("disabled").data("disabled",true)}else{x.removeClass("disabled").data("disabled",false)}if(q<10){var g=d.eq(q).text(p[q]).data("nav",this.CONSTS.NAV["year"]);if(p[q]==j){this.cache.selectedYear&&this.cache.selectedYear.removeClass("selected");
g.addClass("selected");this.cache.selectedYear=g}if((!FR.isEmpty(v)&&p[q]<v)||(!FR.isEmpty(b)&&p[q]>b)){g.addClass("disabled").data("disabled",true)}else{g.removeClass("disabled").data("disabled",false)}}}var r=$("td.prevy",t).removeClass("disabled").data("disabled",false);if(p[0]<=v){r.addClass("disabled").data("disabled",true).removeClass("hover")}var s=$("td.nexty",t).removeClass("disabled").data("disabled",false);if(p[9]>=b){s.addClass("disabled").data("disabled",true).removeClass("hover")}},_loadTimeData:function(d,c){if(!c){return
}var a=c.getHours(),e=c.getMinutes(),b=c.getSeconds();d.$h.val(String.leftPad(a,2,"0"));d.$m.val(String.leftPad(e,2,"0"));d.$s.val(String.leftPad(b,2,"0"))},_doTimeInc:function(e,a){var b=a.data("time"),d=this.options;if(b==="h"){var c=(d.date.getHours()+1)%24;d.date.setHours(c);e.$h.val(String.leftPad(c,2,"0"))}else{if(b==="m"){var c=(d.date.getMinutes()+1)%60;d.date.setMinutes(c);e.$m.val(String.leftPad(c,2,"0"))}else{var c=(d.date.getSeconds()+1)%60;d.date.setSeconds(c);e.$s.val(String.leftPad(c,2,"0"))
}}a.select();FR.applyFunc(this,d.onDateUpdate,arguments)},_doTimeDec:function(e,a){var b=a.data("time"),d=this.options;if(b==="h"){var c=(d.date.getHours()+23)%24;d.date.setHours(c);e.$h.val(String.leftPad(c,2,"0"))}else{if(b==="m"){var c=(d.date.getMinutes()+59)%60;d.date.setMinutes(c);e.$m.val(String.leftPad(c,2,"0"))}else{var c=(d.date.getSeconds()+59)%60;d.date.setSeconds(c);e.$s.val(String.leftPad(c,2,"0"))}}a.select();FR.applyFunc(this,d.onDateUpdate,arguments)},_bindEvts:function(){this.element.unbind();
var a=this,g=this.options,d=this.CONSTS.NAV;var c=this.$monthtable,e=this.$datetable,f=this.$timetable;var b=function(l){var m=l.target;var k=l.type;var j=$(m).data("nav");if($(m).data("disabled")||m.tagName!=="TD"||!j){return}if(!a.options.date){a.options.date=new Date()}if(k==="mouseover"){$(m).addClass("hover")}else{if(k==="mouseup"){switch(j){case d["prevm"]:a._toPrevMonth();a._loadDateData(e,new Date(a.options.date));FR.applyFunc(a,g.onDateUpdate,arguments);break;case d["nextm"]:a._toNextMonth();
a._loadDateData(e,new Date(a.options.date));FR.applyFunc(a,g.onDateUpdate,arguments);break;case d["title"]:a._loadMonthData(c,new Date(a.cache.showYear,a.cache.showMonth));a._cacheCurrentDate();c.css({position:"absolute",top:0,"z-index":FR.widget.opts.zIndex++}).show("fast");break;case d["clear"]:a.options.date=null;a.cache.selectedDate&&a.cache.selectedDate.removeClass("selected");FR.applyFunc(a,g.onDateUpdate,arguments);FR.applyFunc(a,g.onClear,arguments);break;case d["current"]:a.options.date=new Date();
FR.applyFunc(a,g.onDateUpdate,arguments);case d["today"]:var h=new Date();if((a.options.startDate&&h<a.options.startDate)||(a.options.endDate&&h>a.options.endDate)){return}else{a.options.date=h}FR.applyFunc(a,g.onDateUpdate,arguments);FR.applyFunc(a,g.onToday,arguments);break;case d["dok"]:FR.applyFunc(a,g.onDateUpdate,arguments);FR.applyFunc(a,g.onOK,arguments);break;case d["prevy"]:a._toPrevDecade();a._loadMonthData(c,new Date(a.options.date));FR.applyFunc(a,g.onDateUpdate,arguments);break;case d["nexty"]:a._toNextDecade();
a._loadMonthData(c,new Date(a.options.date));FR.applyFunc(a,g.onDateUpdate,arguments);break;case d["mok"]:a._loadDateData(e,new Date(a.options.date));FR.applyFunc(a,g.onDateUpdate,arguments);if(g.viewMode===a.CONSTS.VIEWMODE.YM){FR.applyFunc(a,g.onOK,arguments)}else{c.hide("fast")}break;case d["cancel"]:if(a.cache.originalDate){a.options.date=a.cache.originalDate}a._loadDateData(e,new Date(a.options.date));FR.applyFunc(a,g.onDateUpdate,arguments);if(g.viewMode===a.CONSTS.VIEWMODE.YM){FR.applyFunc(a,g.onClose,arguments)
}else{c.hide("fast")}break;case d["year"]:a.cache.selectedYear&&a.cache.selectedYear.removeClass("selected");a.cache.selectedYear=$(m);var i=a.options.date;i.setFullYear($(m).text());a._loadMonthData(c,new Date(i));FR.applyFunc(a,g.onDateUpdate,arguments);break;case d["month"]:a.cache.selectedMonth&&a.cache.selectedMonth.removeClass("selected");a.cache.selectedMonth=$(m).addClass("selected");a.options.date.setDate(1);a.options.date.setMonth($(m).data("month"));FR.applyFunc(a,g.onDateUpdate,arguments);
break;case d["day"]:a.cache.selectedDate&&a.cache.selectedDate.removeClass("selected");a.cache.selectedDate=$(m).addClass("selected");var i=a.options.date;i.setFullYear(a.cache.showYear);i.setMonth(a.cache.showMonth);i.setDate($(m).text());FR.applyFunc(a,g.onDateUpdate,arguments);if(!f.parent().length){FR.applyFunc(a,g.onClose,arguments)}break;case d["plus"]:a._doTimeInc(f,f.focus);break;case d["minus"]:a._doTimeDec(f,f.focus);break;case d["firstday"]:a.CONSTS.FIRSTDAY=$(m).data("fd");a.element.empty();
a._init();default:break}}else{if(k==="mouseout"){$(m).removeClass("hover")}}}};this.element.bind("mousedown",b).bind("mouseover",b).bind("mouseup",b).bind("mouseout",b)},_createCell:function(c,e,f,d,a){var b=$("<td class/>").attr("colSpan",f).html(e).appendTo(c);if(d){b.data("nav",d)}a=a?"btn "+a:"btn";b.addClass(a);return b},getValue:function(){return this.options.date},setValue:function(a){this.options.date=a},getText:function(){return this.getValue()},setText:function(a){this.setValue(a)},_cacheCurrentDate:function(){var a=this;
a.cache.originalDate=new Date(a.options.date)}});$.shortcut("datepicker",FR.DatePicker);
(function(){FR.BaseEditor=FR.extend(FR.Widget,{_defaultConfig:function(){return $.extend(FR.BaseEditor.superclass._defaultConfig.apply(),{customIsValidate:undefined})},isSupportDatabinding:function(){return true},loadData:function(){if(this.options.widgetName){var a=this.options.form.formData[this.options.widgetName];if(a){this.setValue(a,false)}}},store:function(){if(this.options.Databinding){var a=this.options.Databinding.Name;var b=this.options.Databinding.Key;if(a&&b){var d=this.getValue();var c=this.options.form.formData.setValue(a,b,d)
}}},getValue:function(){},getEditValue:function(){},setValue:function(a){if(!this.isValidate(a)){return false}if((a||a===0)&&this.options.watermark){this.clearWaterMark()}if(arguments[1]!=undefined){this._dealValueWithEvents(a,arguments[1])}else{this._dealValueWithEvents(a,false)}},_dealValueWithEvents:function(b,a){},dealWithDisplayValue:function(a){},getText:function(){return this.getValue()},setText:function(a){this.setValue(a)},clearWaterMark:function(){},getErrorMsg:function(){return this.errorMsg
},checkValid:function(a){if(this.isValidate(a)){this.validateCss();return true}else{this.invalidateCss();return false}},isValidate:function(a){var b=a!==null&&a!==undefined?a:this.getValue();var c=this.options;if(c.customIsValidate){return c.customIsValidate(b)}return this.defaultIsValidate(b)},defaultIsValidate:function(e){var d=this.options.regex;if(e==null||e===""||FR.isEmptyArray(e)){return this.validateEmptyValue(e)}if(d){for(var b=0,a=FR.BaseEditor.PluginRegex.length;b<a;b++){var f=FR.BaseEditor.PluginRegex[b];
if(f.text===d){if(f.regex(e)){return true}else{this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Base_Error_Input_Value");return false}}}if(typeof d=="string"){try{d=new RegExp(d)}catch(c){this.errorMsg="invalid Regular expressions";return false}}if(!d.test(e)){if(!(d.source.indexOf(".{")>-1&&d.test((e+"").replace(/\n/g,"aa")))){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Base_Error_Input_Value");return false}}}return true},validateEmptyValue:function(b){var a=this.options.allowBlank!==false;
if(a){return true}else{this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Base_NOT_NULL_Des");return false}},initData:function(){if(this.options.data){return}if(this.options.widgetUrl){this.options.data=FR.DataFactory.createJSONData(this.options.widgetUrl,this.options)}else{if(this.options.items){this.options.data=FR.DataFactory.createArrayData(this.options.items,this.options)}}},getDependenceObj:function(){var b=this.options;var e={};if(b.dependenceMap){var j=this;$.each(b.dependenceMap,function(l,n){if(j.options.form){var p=j.options.form.resolveVariable(n);
if(p!="FR.primitive"&&p!=null){e[l.toUpperCase()]=p}}else{if(j.options.write){n=n.startWith("$")?n.substring(1):n;var m;if(contentPane.curLGP.write){var o=contentPane.curLGP.write.getWidgetByCell(n)||contentPane.curLGP.write.getWidgetByName(n);if(o){m=o.getValue()}}if(m==undefined){var k=FR.cellStr2ColumnRow(n);if(k){var q=contentPane.curLGP.getTDCell(k);if(q){m=FR.getCellValue(q)}}}j._pushDep(e,l,m)}}})}else{if(FR.isArray(b.dependence)){for(var i=0;i<b.dependence.length;i++){var h=b.dependence[i];
if(this.options.form){var d=this.options.form.resolveVariable(h);if(d!="FR.primitive"&&d!=null){e[h.toUpperCase()]=d}}else{if(this.options.write){h=h.startWith("$")?h.substring(1):h;var g;if(contentPane.curLGP.write){var f=contentPane.curLGP.write.getWidgetByCell(h)||contentPane.curLGP.write.getWidgetByName(h);if(f){g=f.getValue()}}if(!g){var c=FR.cellStr2ColumnRow(h);if(c){var a=contentPane.curLGP.getTDCell(c);if(a){g=FR.getCellValue(a)}}}this._pushDep(e,h,g)}}}}}return e},_pushDep:function(a,b,c){if(c!="FR.primitive"&&c!==undefined&&c!==null){a[b.toUpperCase()]=c
}},createDependencePara4Data:function(){var a=this.getDependenceObj();var b=FR.isEmptyObj(a)?{}:{dependence:a};return{parameter:b}},reset:function(){this.setValue("")}});FR.BaseEditor.PluginRegex=[];FR.EditCompBaseEditor=FR.extend(FR.BaseEditor,{_defaultConfig:function(){return $.extend(FR.EditCompBaseEditor.superclass._defaultConfig.apply(),{})},setWaterMark:function(c){if(c==undefined){c=this.options.watermark}var a=this.editComp;var b=this.options.isEditable;this.callWaterMarkMethod(function(){a.watermark({html:c},b)
})},removeWaterMark:function(){var a=this.editComp;this.callWaterMarkMethod(function(){a.watermark({remove:true})})},clearWaterMark:function(){var a=this.editComp;this.callWaterMarkMethod(function(){a.watermark({clear:true})})},callWaterMarkMethod:function(a){try{if(null!=a&&typeof a==="function"){a()}}catch(b){FR.$defaultImport("/com/fr/web/core/js/jquery.watermark.js","js");if(null!=a&&typeof a==="function"){a()}}},validateCss:function(){this.editComp.removeClass("fr-invalid");this.editComp.removeAttr("title")
},invalidateCss:function(){this.editComp.addClass("fr-invalid");this.editComp.attr("title",this.getErrorMsg())}});FR.EditComp=FR.extend(FR.EditCompBaseEditor,{_defaultConfig:function(){return $.extend(FR.EditComp.superclass._defaultConfig.apply(),{cls:"fr-texteditor",width:120,height:22,autoVerify:false})},_init:function(){FR.EditComp.superclass._init.apply(this,arguments);var b=this;var c=this.options;this.editComp=this._createEditComp();this.replaceNewline();this.editComp.appendTo(this.element);
if(c.fontSize){this.editComp.css("font-size",c.fontSize)}this.validateCss();this.editComp.attr("name",c.widgetName).addClass(c.cls);if(FR.Browser.isIE8()){this.editComp.css("margin-top",0)}if(c.text){this.editComp.attr("value",c.text)}if(c.id){this.editComp.attr("id",c.id)}if(c.disabled===true){this.editComp.attr("disabled","disabled")}c.width=(c.width>-1)?c.width:120;c.height=(c.height>-1)?c.height:22;this.doResize(c);FR.applyStyles(this.editComp,c.style);var a=_.debounce(function(d){b.fireEvent(FR.Events.AFTEREDIT,d)
},400);this.editComp.focus(function(d){b.editComp.addClass(c.cls+"-focus");if(!b.options.write){b.fireEvent(FR.Events.BEFOREEDIT)}}).blur(function(d){b.editComp.removeClass(c.cls+"-focus");if(!b.options.write){b.checkValid();b.fireEvent(FR.Events.STOPEDIT)}}).keyup(function(d){if(c.autoVerify){b.checkValid()}if(b.isValidateInput(d)){a(d)}});this.errorMsg=this.options.errorMsg||"";if(c.value!=null){this.setValue(c.value,false)}if(c.isEditable){this.dealWithDisplayValue(c.showValue)}},_createEditComp:function(){return $("<input type='text'/>")
},doResize:function(a){FR.EditComp.superclass.doResize.call(this,a);this.element.css({width:a.width,height:a.height});this.editComp.css("width",$.support.boxModel?a.width-8:a.width);this.editComp.css("height",$.support.boxModel?a.height-4:a.height);if(this.options.watermark){this.removeWaterMark();this.setWaterMark()}},dealWithDisplayValue:function(a){if(a===undefined||a===null){return}this.setValue(a,false)},setEnable:function(a){FR.EditComp.superclass.setEnable.apply(this,arguments);if(this.editComp){if(a===true){this.editComp.removeAttr("disabled")
}else{if(a===false){this.editComp.attr("disabled","disabled")}}}},replaceNewline:function(){if(FR.Browser.isIE()){this.editComp.on("paste",function(){var a=window.clipboardData.getData("Text");a=a.replace(/\s|\n/g," ");this.value=this.value?this.value.append(a):a;return false})}},selectText:function(f,a){if(!this.editComp.is(":visible")){return}var c=this.editComp.val();if(c&&c.length>0){f=f===undefined?0:f;a=a===undefined?c.length:a;var e=this.editComp[0];if(e.setSelectionRange){e.setSelectionRange(f,a)
}else{if(e.createTextRange){var b=e.createTextRange();b.moveStart("character",f);b.moveEnd("character",a-c.length);b.select()}}}}})})(jQuery);
(function(a){FR.Button=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.Button.superclass._defaultConfig.apply(),{baseCls:"fr-btn",hotkeys:"",icon:"",autoSize:false,scale:"small",iconAlign:"left",text:"",width:"auto",height:"auto",borderWidth:6})},_init:function(){FR.Button.superclass._init.apply(this,arguments);var c=this.options;this.initTable(c);this.addEvents(c);var b=this;if(c.hotkeys){FR.Keys.reg(function(g){if((a(document).codeToString(g)==c.hotkeys)&&b.isEnabled()){var f=FR.CookieInfor.getCookieByName("buttonHotKeyTimer");
var d=(new Date()).getTime();if(FR.isEmpty(f)||(d-f>1000)){if(b.isEnabled()){b.fireEvent(FR.Events.CLICK,g);document.cookie="buttonHotKeyTimer="+d;g.preventDefault();g.stopPropagation()}}}})}if(a.isFunction(c.handler)){this.on(FR.Events.CLICK,c.handler.createDelegate(c.scope||this))}},initTable:function(e){if(FR.isEmpty(e.text)&&!FR.isEmpty(e.value)){e.text=e.value}var h=e.baseCls+"-"+e.widgetName;var g=(e.icon)?(e.text?" fr-btn-text-icon":" fr-btn-icon"):" fr-btn-noicon";g="fr-btn-up "+g;var b="height:"+(Number(e.height)+1)+"px;width:"+e.width+"px;";
var f="fr-btn-"+e.scale+" fr-btn-icon-"+e.scale+"-"+e.iconAlign;var d="";if(FR.Browser.isIE8Before()){var c;if(e.scale=="small"){c=FR.Browser.isIE8()?19:14}else{c=e.scale=="middle"?24:32}d+=' style="margin-top:'+(e.height-c)/2+'px;"'}else{b+="display:table-cell;"}this.$btndiv=a('<div id="'+h+'" class="'+g+'" style="'+b+'">'+'<div class="'+f+'">'+'<em unselectable="on">'+'<button unselectable="none" type="button" data-role="none" class="fr-btn-text"'+d+">"+e.text+"</button>"+"</em>"+"</div>"+"</div>");
this.$btnWrap=this.$btndiv.children();this.$em=this.$btnWrap.children();this.$btn=this.$em.children();this.$btndiv.appendTo(this.element);FR.Button.setIcon(this.$btn,e.icon)},addEvents:function(c){if(!this.$btndiv){return}var b=this;var d={onMouseOver:function(){if(b.isEnabled()){b.$btndiv.addClass(c.baseCls+"-over")}},onMouseOut:function(){if(b.isEnabled()){b.$btndiv.removeClass(c.baseCls+"-over")}},onMouseDown:function(){if(b.isEnabled()){b.$btndiv.removeClass(c.baseCls+"-over");a(document).bind("mouseup",d.onMouseUp)
}},onMouseUp:function(){if(b.isEnabled()){b.$btndiv.removeClass(c.baseCls+"-over");a(document).unbind("mouseup",d.onMouseUp)}}};this.$btndiv.mouseover(d.onMouseOver.createInterceptor(this.isEnabled(),this)).mouseout(d.onMouseOut).mousedown(d.onMouseDown.createInterceptor(this.isEnabled(),this)).mouseup(d.onMouseUp);this.$btndiv.keydown(function(f){if(f.keyCode===13){f.stopPropagation()}});this.$btndiv.click(function(f){if(b.isEnabled()){b.fireEvent(FR.Events.CLICK,f)}})},setEnable:function(b){FR.Button.superclass.setEnable.apply(this,arguments);
var c=this.options.baseCls;if(this.$btndiv&&b===false){this.$btndiv.removeClass(c+"-over")}},getText:function(){return this.$btn.text()},setText:function(b){if(FR.isEmpty(b)){return}this.$btn.text(b)},getValue:function(){return this.$btn.text()},setValue:function(b){if(FR.isEmpty(b)){return}this.$btn.text(b)},setIcon:function(c){if(FR.isEmpty(c)){return}this.$btn.removeClass();this.$btn.addClass("fr-btn-text");var b=this.$btn;if(FR.Browser.isIE6()){a("<span>"+this.$btn.text()+"</span>").appendTo(this.$btn.parent())
}if(c.substring(0,4)=="css:"){b.addClass(c.substring(4))}else{if(c.substring(0,6)=="style:"){b.css({background:c.substring(6)})}else{b.css({"background-image":"url("+c+")"})}}},setMaxWidth:function(b){if(!isNaN(b)){var c=this.options;if(FR.Browser.isIE()){if(FR.fixBoxModelWidth(this.$btn)+this.$btn.width()>(b-c.borderWidth)){this.$btn.width(b-c.borderWidth)}}else{this.$btn.css("max-width",(b-c.borderWidth)+"px")}}},doResize:function(d){FR.Button.superclass.doResize.call(this,d);var c=d?d.width:this.options.width;
var b=d?d.height:this.options.height;this.$btndiv.css({width:c,height:b});this.setMaxWidth(c);this.element.css(d)}});a.shortcut("button",FR.Button);FR.Button.setIcon=function(d,c){if(FR.isEmpty(c)){return}d.removeClass();d.addClass("fr-btn-text");var b=d;if(FR.Browser.isIE6()){a("<span>"+d.text()+"</span>").appendTo(d.parent())}if(c.substring(0,4)==="css:"){b.addClass(c.substring(4))}else{if(c.substring(0,6)==="style:"){b.css({background:c.substring(6)})}else{b.css({"background-image":"url("+c+")"})
}}};FR.Button.setMaxWidth=function(d,b){if(d.isSetWidth){return}if(!isNaN(b.width)){if(FR.Browser.isIE()){var c=FR.fixBoxModelWidth(d)+d.width();if(c>(b.width-b.borderWidth)){d.width(b.width-b.borderWidth);FR.Button.setPrototypeBtnWidth(b,b.width-b.borderWidth)}}else{d.css("max-width",(b.width-b.borderWidth)+"px");FR.Button.setPrototypeBtnMaxWidth(b,b.width-b.borderWidth)}}};FR.Button.setPrototypeBtnWidth=function(c,d){var b=FR.Button.CacheTable._getPrototypeTable(c);if(b){var e=b.$btn;e.width(d);
e.isSetWidth=true}};FR.Button.setPrototypeBtnMaxWidth=function(c,d){var b=FR.Button.CacheTable._getPrototypeTable(c);if(b){var e=b.$btn;e.css("max-width",(c.width-c.borderWidth)+"px");e.isSetWidth=true}};FR.IconButton=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.IconButton.superclass._defaultConfig.apply(),{tablable:true,render:false,width:18,height:18,baseClass:"fr-icon-btn"})},_init:function(){FR.IconButton.superclass._init.apply(this,arguments);var d=this.options;if(d.render===true){this.$btn=a("<div/>").appendTo(this.element)
}else{this.$btn=this.element}this.$btn.addClass(d.baseClass);if(d.title){this.$btn.attr("title",d.title)}if(d.text){FR.html(this.$btn,d.text)}var c=d.baseClass;if(d.imgsrc){c=d.imgsrc;this.$btn.addClass(d.imgsrc)}var b=this;var e={onMouseOver:function(f){if(b.isEnabled()){b.$btn.addClass(c+"-hover")}},onMouseDown:function(f){if(b.isEnabled()){b.$btn.addClass(c+"-click");a(document).bind("mouseup",e.onMouseUp)}},onMouseOut:function(f){b.$btn.removeClass(c+"-hover")},onMouseUp:function(f){b.$btn.removeClass(c+"-click");
a(document).unbind("mouseup",e.onMouseUp)}};this.$btn.mouseover(e.onMouseOver).mouseout(e.onMouseOut).mousedown(e.onMouseDown).mouseup(e.onMouseUp);this.$btn.click(function(f){if(b.isEnabled()){b.fireEvent(FR.Events.CLICK,f)}});if(a.isFunction(d.handler)){this.on(FR.Events.CLICK,d.handler.createDelegate(d.scope||this))}},setValue:function(b){FR.html(this.$btn,b)},destroy:function(){this.element.empty()},doResize:function(b){FR.Button.superclass.doResize.call(this,b);this.$btn.css({width:b.width,height:b.height})
}});a.shortcut("iconbutton",FR.IconButton);FR.FreeButton=FR.extend(FR.BaseEditor,{_defaultConfig:function(){return a.extend(FR.FreeButton.superclass._defaultConfig.apply(),{width:200,height:100,initial:{background:""}})},_init:function(){FR.FreeButton.superclass._init.apply(this,arguments);this.switchOn=false;var e=this.options;if(e.render===true){this.$img=a("<div style='text-align: center;'/>").appendTo(this.element)}else{this.$img=this.element.css("text-align","center")}this.element.addClass("fr-form-imgboard");
if(e.icon){if(e.icon.background){var c=a("<img style='vertical-align: middle;margin-right: 3px;'/>");var g=e.icon.background.split("(");var d=g[1];g=d.split(")");d=g[0];c.attr("src",d).appendTo(this.$img)}else{if(e.icon.indexOf("css:")===0){this.icon=a("<i style='vertical-align: middle; margin-right: 3px; text-align: center; display: inline-block; height: 16px; width: 16px;'/>").addClass(e.icon.substr(4)).appendTo(this.$img)}}}if(FR.isEmpty(e.text)&&!FR.isEmpty(e.value)){e.text=e.value}this.text=a("<span style='text-align: center;'>"+((e.text!=null&&!FR.isEmpty(a.trim(e.text)))?e.text:"&nbsp;")+"</span>").appendTo(this.$img);
if(e.fontsize){this.text.css("font-size",e.fontsize)}if(e.color){this.text.css("color",e.color)}if(e.decoration){this.text.css("text-decoration",e.decoration)}if(e.fontfamily){this.text.css("font-family",e.fontfamily)}if(e.fontweight){this.text.css("font-weight",e.fontweight)}if(e.fontstyle){this.text.css("font-style",e.fontstyle)}if(e.fontShadow){this.text.addClass("shadow")}if(e.text&&!FR.isEmpty(a.trim(e.text))){this.setValue(e.text)}if(e.width&&e.height){this.doResize(e)}if(e.hotkeys){FR.Keys.reg(function(j){if((a(document).codeToString(j)===e.hotkeys)&&b.isEnabled()){var i=FR.CookieInfor.getCookieByName("buttonHotKeyTimer");
var h=(new Date()).getTime();if(FR.isEmpty(i)||(h-i>1000)){if(b.isEnabled()){b.fireEvent(FR.Events.CLICK,j);document.cookie="buttonHotKeyTimer="+h;j.preventDefault();j.stopPropagation()}}}})}if(FR.Browser.isIE8Before()){if(e.click&&e.click.background){this.setBackground(e.click)}if(e.over&&e.over.background){this.setBackground(e.over)}}this.setBackground(e.initial);var b=this;var f={onMouseOver:function(h){if(!b.options.disabled){b.fireOver()}},onMouseOut:function(h){if(!b.options.disabled){b.fireOut()
}},onMouseDown:function(h){if(!b.options.disabled){b.fireDown()}a(document).bind("mouseup",f.onMouseUp)},onMouseUp:function(h){if(!b.options.disabled){b.fireUp()}a(document).unbind("mouseup",f.onMouseUp)}};this.$img.mouseover(f.onMouseOver.createInterceptor(this.isEnabled(),this)).mouseout(f.onMouseOut).mousedown(f.onMouseDown.createInterceptor(this.isEnabled(),this)).mouseup(f.onMouseUp);if(this._getEvents().click){this.$img.addClass("fr-widget-click")}else{this.$img.css("cursor","default")}this.$img.click(function(h){if(b.isEnabled()){b.fireEvent(FR.Events.CLICK,h)
}});this.on(FR.Events.CLICK,function(){if(!b.options.disabled){b.fireClick()}});if(a.isFunction(e.handler)){this.on(FR.Events.CLICK,e.handler.createDelegate(e.scope||this))}},setValue:function(b){this.text.text(b)},getValue:function(){return this.text.text()},setEnable:function(b){if(b===true){this.options.disabled=false;this._setSwitchBackground();this.element.addClass("ui-state-enabled");this.element.removeClass("ui-state-disabled")}else{if(b===false){this.options.disabled=true;this.element.css("background","none");
this.element.addClass("ui-state-disabled");this.element.removeClass("ui-state-enabled")}}},_setSwitchBackground:function(){if(this.options.isToggle&&this.switchOn){if(this.options.click){this.element.css("background",this.options.click.background)}}else{this.element.css("background",this.options.initial.background)}},fireOver:function(){if(this.options.over){this.setBackground(this.options.over)}},fireOut:function(){if(this.options.isToggle&&this.switchOn){if(this.options.click){this.setBackground(this.options.click)
}}else{this.setBackground(this.options.initial)}},fireDown:function(){if(this.options.isToggle&&!this.switchOn){var d=this.getWidgetsInSameGroup();if(d){for(var b=0;b<d.length;b++){var c=d[b];if(c!=this){c.switchDown()}}}this.switchOn=true}if(this.options.click){this.setBackground(this.options.click)}},fireUp:function(){if(this.options.over&&this.switchOn){this.setBackground(this.options.over)}else{this.setBackground(this.options.initial)}},switchDown:function(){if(this.options.isToggle){this.setBackground(this.options.initial);
this.switchOn=false}},fireClick:function(){this.fireDown();var b=this;setTimeout(function(){b.fireUp()},30)},getWidgetsInSameGroup:function(){if(this.options.group){return this.options.form.getWidgetsByGroup(this.options.group)}},setBackground:function(c){var b=c.background;if(b==""){this.$img.css("background","white")}else{if(a.isEmptyObject(b)){this.$img.css("background","")}else{this.$img.css("background",b)}}},doResize:function(b){this.$img.css({width:b.width,height:b.height});this.text.css("line-height",b.height+"px")
}});a.shortcut("freebutton",FR.FreeButton);FR.ToggleButton=FR.extend(FR.BaseEditor,{selected_class:"fr-checkbox-checkon",unselected_class:"fr-checkbox-checkoff",_defaultConfig:function(){return a.extend(FR.ToggleButton.superclass._defaultConfig.apply(),{selected:false,scope:this,render:true,only_be_selected:false,manualSelect:false})},_init:function(){FR.ToggleButton.superclass._init.apply(this,arguments);var c=this.options;if(c.render===true){this.element.css("height","auto").css("width","auto");
if(this.escapeChar){this.$btn=FR.html(a("<span>"),(c.text!=null&&!FR.isEmpty(a.trim(c.text)))?c.text:" ").appendTo(this.element).addClass("x-text").addClass("fr-widget-click").click(function(d){this.onNodeClick()}.createDelegate(this))}else{this.$btn=a("<span>"+((c.text!=null&&!FR.isEmpty(a.trim(c.text)))?c.text:"&nbsp;")+"</span>").appendTo(this.element).addClass("x-text").addClass("fr-widget-click").click(function(d){this.onNodeClick()}.createDelegate(this))}}else{this.$btn=this.element;if(c.text!=null){if(this.escapeChar){FR.html(a("<span>"),c.text).insertAfter(this.$btn)
}else{a("<span>"+c.text+"</span>").insertAfter(this.$btn)}}}if(FR.Browser.r.chrome){this.$btn.css("padding-top",1)}if(this.options.fontSize){var b=12;if(this.options.fontSize<b){this.options.fontSize=b}this.$btn.css("font-size",this.options.fontSize)}if(a.isFunction(c.handler)){this.$btn.click(c.handler.createDelegate(c.scope||this).createInterceptor(this.isEnabled,this))}this.changeBoxState(c.selected);this.$formbtn=this.initFormBtn();if(c.value){if(!this.isValidate(c.value)){FR.Msg.toast(this.errorMsg);
return}if(typeof c.value=="boolean"){this.setSelectedWithoutEvent(c.value)}else{if(c.value=="true"){this.setSelectedWithoutEvent(true)}else{if(c.value=="false"){this.setSelectedWithoutEvent(false)}}}}},onNodeClick:function(){var b=this.options;if(this.isEnabled()){if(!b.manualSelect){if(b.only_be_selected&&this.selected()){return false}else{if(!this.selected(!this.selected())){return false}}}this.fireEvent(FR.Events.AFTEREDIT);this.fireEvent(FR.Events.CLICK)}},changeBoxState:function(b){b=typeof b=="boolean"?b:(b!="false");
this.$btn[b?"addClass":"removeClass"](this.selected_class);this.$btn[b?"removeClass":"addClass"](this.unselected_class)},initFormBtn:function(){return null},getValue:function(){return this.selected()},_dealValueWithEvents:function(b){if(typeof b=="boolean"){this.selected(b,"noFireEvent")}else{if(b=="true"){this.selected(true,"noFireEvent")}else{this.selected(false,"noFireEvent")}}if(arguments[1]===true){this.fireEvent(FR.Events.AFTEREDIT)}},getText:function(){return this.options.text},reset:function(){this.selected(false)
},selected:function(){if(arguments.length===0){return this.isSelected()}else{if(arguments[1]=="noFireEvent"){return this.setSelectedWithoutEvent(arguments[0])}else{return this.setSelected(arguments[0])}}},isSelected:function(){return this.$btn.is("."+this.selected_class)},setSelected:function(b){if(!this.setSelectedWithoutEvent(b)){return false}this.fireEvent(FR.Events.STATECHANGE,this.selected());return true},setSelectedWithoutEvent:function(b){if(this.$formbtn){this.$formbtn.attr("checked",b!==false)
}this.changeBoxState(b);return true},destroy:function(){FR.ToggleButton.superclass.destroy.apply(this)},doResize:function(b){FR.ToggleButton.superclass.doResize.call(this,b)},setEscapeChar:function(b){this.escapeChar=b}});FR.CheckBox=FR.extend(FR.ToggleButton,{selected_class:"fr-checkbox-checkon",unselected_class:"fr-checkbox-checkoff",checkIconHeight:17,_defaultConfig:function(){return a.extend(FR.CheckBox.superclass._defaultConfig.apply(),{marginleft:5})},_init:function(){this.setEscapeChar(true);
FR.CheckBox.superclass._init.apply(this,arguments);var c=this.options;var b;if(this.element&&FR.Browser.isIE()){this.element.css({"width":c.width,"height":this.checkIconHeight});b=this.checkIconHeight}if(b){this.$btn.css({"margin-left":c.marginleft,"height":"inherit","line-height":b+"px"})}else{this.$btn.css("margin-left",c.marginleft)}},initFormBtn:function(){if(this.options.sessionID&&_g(this.options.sessionID).rtype=="form"){var b=a(this.$btn.parent());b.css("background-color","white");this.$box=a("<input type='checkbox'/>").css("display","none").attr("name",this.options.widgetName).appendTo(b);
this.$box.attr("value",this.options.fieldValue||this.options.value||"")}return this.$box},doResize:function(b){FR.CheckBox.superclass.doResize.call(this,b);if(this.element){this.$btn.css("line-height",this.element.height()+"px")}}});a.shortcut("checkbox",FR.CheckBox);FR.StrictCheckBox=FR.extend(FR.CheckBox,{_init:function(){FR.StrictCheckBox.superclass._init.apply(this,arguments);this.setSelectedWithoutEvent(false);var b=this.options;if(b.value){if(!this.isValidate(b.value)){FR.Msg.toast(this.errorMsg);
return}if(typeof b.value==="boolean"){this.setSelectedWithoutEvent(b.value)}}}});a.shortcut("strict-checkbox",FR.StrictCheckBox);FR.RadioButton=FR.extend(FR.ToggleButton,{selected_class:"fr-radio-radioon",unselected_class:"fr-radio-radiooff",_init:function(){this.setEscapeChar(false);FR.RadioButton.superclass._init.apply(this,arguments)},initFormBtn:function(){if(this.options.sessionID&&_g(this.options.sessionID).rtype=="form"){var b=a(this.$btn.parent());b.css("background-color","white");this.$radio=a("<input type='radio'/>").css("display","none").attr("name",this.options.name||this.options.widgetName).appendTo(b);
this.$radio.attr("value",this.options.fieldValue||this.options.value||"")}return this.$radio}});a.extend(FR.RadioButton,{RadioButtonGroup:{}});a.shortcut("radio",FR.RadioButton);FR.FormSubmitButton=FR.extend(FR.Button,{_init:function(){FR.FormSubmitButton.superclass._init.apply(this,arguments)}});a.shortcut("formsubmit",FR.FormSubmitButton);FR.CardSwitchButton=FR.extend(FR.FreeButton,{_init:function(){FR.CardSwitchButton.superclass._init.apply(this,arguments);this.selected=false;var d="5px 5px 0 0";
switch(this.options.displayPosition){case"North":d="5px 5px 0 0";break;case"West":d="5px 0 0 5px";break;case"South":d="0 0 5px 5px";break;case"East":d="0 5px 5px 0";break;default:break}this.$img.css("border-radius",d);this.element.css("border-radius",d);this.element.css("opacity",this.options.opacity);if(this.options.textDirection===1){var c=this.calculateMargin();this.$img.children().css({"margin-left":c,"width":"0px","display":"block","word-wrap":"break-word"})}else{this.$img.children().css({"white-space":"nowrap"})
}var b=this;var e={onMouseOver:function(f){if(b.selected){return}b.element.css("opacity",1)},onMouseOut:function(f){if(b.selected){if(b.options.click){return}else{b.setBackground({"background":""});return}}b.element.css("opacity",0.6)},onMouseDown:function(f){if(f.button!==0){return}b.selected=true;if(b.options.click&&b.options.click.background){b.setBackground(b.options.click)}else{b.setBackground({"background":"white"})}}};this.$img.mouseover(e.onMouseOver).mouseout(e.onMouseOut).mousedown(e.onMouseDown)
},calculateMargin:function(){var h=this.$img.text();var j=0,d=h.length,e=-1,c=false;for(var f=0;f<d;f++){e=h.charCodeAt(f);if(e>=0&&e<=128){j+=1}else{j+=2;c=true}}var g=this.getTextSize(h).width;var b=g/j;return(this.$img.width()-(c?b*2:b))/2},getTextSize:function(f){var e=this.text.css("fontSize");var d=a("<span></span>").css({"visibility":"hidden","fontSize":e});d.text(f);a("body").append(d);var b=d.width();var c=d.height();d.remove();return{width:b,height:c}},fireUp:function(){},fireOut:function(){if(this.selected){if(this.options.click){this.setBackground(this.options.click)
}}else{this.setBackground(this.options.initial)}},fireDown:function(){},setBackground:function(c){var b=c.background;if(b==""){this.$img.css("background","white")}else{if(a.isEmptyObject(b)){this.$img.css("background","")}else{FR.setBackground(this.$img,c)}}},_setSwitchBackground:function(){if(this.options.isToggle&&this.switchOn){if(this.options.click){FR.setBackground(this.element,this.options.click)}}else{FR.setBackground(this.element,this.options.initial)}},doResize:function(e){FR.CardSwitchButton.superclass.doResize.call(this,e);
if(this.options.textDirection===1){var c=this.calculateMargin();var d=this.$img.text();var b=this.getTextSize(d).height;this.text.css("line-height",b-2+"px");if(FR.Browser.isIE7Before()){this.text.css({"margin-left":0})}else{this.text.css({"margin-left":c})}}else{this.$img.children().css({"white-space":"nowrap"})}}});a.shortcut("cardswitch",FR.CardSwitchButton)})(jQuery);
FR.Search=FR.extend(FR.EditCompBaseEditor,{_defaultConfig:function(){return $.extend(FR.Search.superclass._defaultConfig.apply(),{baseCls:"fr-search",width:164,height:28,width4searchBtn:44,defaultValue:null,watermark:null,onSearch:null,advanced:false,onTrigger:null,autoSearch:false,onKeyup:null,onFocus:null,onBlur:null,onEnter:null})},_init:function(){FR.Search.superclass._init.apply(this,arguments);var a=this.options;this._initEditComp();if(!a.autoSearch){this._createTriggerBtn();this.searchButton=this._createSearchBtn(this.element)
}this.doResize(a)},_initEditComp:function(){var b=this.options,a=this;this.editComp=$("<input/>").appendTo(this.element);if(b.watermark){this.setWaterMark(b.watermark)}if(b.defaultValue){this.editComp.val(b.defaultValue).data("defaultValue",b.defaultValue)}if(b.autoSearch){this.editComp.addClass("fr-search-auto-text");var c=(b.height-18)/2;this.editComp.css("background-position-y",c)}else{this.editComp.addClass("fr-search-editor-text")}this.editComp.keyup(function(d){if(d.keyCode==FR.keyCode.ENTER){this.blur();
if(b.onSearch){b.onSearch.apply(a,arguments)}}});this.editComp.focus(function(d){$(this).addClass("fr-search-editor-focus");FR.applyFunc(a,b.onFocus,[d],false)}).blur(function(d){$(this).removeClass("fr-search-editor-focus");FR.applyFunc(a,b.onBlur,[d],false)}).keyup(function(d){if(d.keyCode==FR.keyCode.ENTER){this.blur();if(b.onSearch){FR.applyFunc(a,b.onSearch,[d],false)}}else{FR.applyFunc(a,b.onKeyup,[d],false)}})},_createTriggerBtn:function(){var a=this,b=this.options;if(!b.advanced){return}else{this.editComp.css({"border-right":"none"});
$('<div class="fr-search-trigger"/>').hover(function(){$(this).addClass("fr-search-trigger-hover")},function(){$(this).removeClass("fr-search-trigger-hover")}).click(function(){FR.applyFunc(a,b.onTrigger,arguments,false)}).appendTo(this.element)}},_createSearchBtn:function(d){var c=this.options,a=this;var b={renderEl:$("<div/>").appendTo(d),baseClass:"fr-search-button",width:44,height:28};if($.isFunction(c.onSearch)){b.handler=c.onSearch.createDelegate(a)}var e=new FR.IconButton(b);return e.element
},getText:function(){return this.editComp.val()},setText:function(a){this.editComp.val(a)},getValue:function(){return this.getText()},setValue:function(a){this.setText(a)},doResize:function(f){var d=this.options;var c=f.width,b=f.height;var e=8,a=4;if(d.autoSearch){e=27}else{c-=d.width4searchBtn}if(d.advanced){c-=24}if($.support.boxModel){c-=e;b-=a}this.editComp.css({height:b,width:c});if($.browser.msie){this.editComp.css("line-height",b+"px")}this.searchButton&&this.searchButton.width(d.width4searchBtn).height(d.height)
}});$.shortcut("search",FR.Search);
FR.DataTable=FR.extend(FR.BaseEditor,{_init:function(){FR.DataTable.superclass._init.apply(this,arguments);var a=this.options;this.element.css("overflow","auto");this.table=$("<table/>").attr({cellspacing:"0",cellpadding:"0"});this.element.append(this.table);this.popuNewData(this.options.value)},initTableHead:function(f){if(!FR.isArray(f.head)){return}this.head=f.head;var e=$("<thead/>").addClass("fr-form-table-thead");var d=$("<tr>").addClass("fr-form-table-tr");e.append(d);for(var b=0,a=f.head.length;
b<a;b++){var c=$("<th/>").text(f.head[b]);if(f.columnWidth&&f.columnWidth[b]){c.css("width",f.columnWidth[b])}if(b==a-1){c.addClass("fr-form-table-last-th")}d.append(c)}this.table.append(e)},setTableHead:function(a){this.table.children("thead").empty();this.initTableHead(a)},popuNewData:function(c){this.setTableHead(c);this.table.children("tbody").empty();if(c.tablecontent){var d=c.tablecontent;for(var b=0,a=d.length;b<a;b++){this.addData(d[b],c.rowHeight)}}},updateDatas:function(){var c=[];var b=this.table.children("tbody").children("tr");
for(var e=0,a=b.length;e<a;e++){var g={};var f=$(b[e]).children();for(var d=0,h=f.length;d<h;d++){g[this.head[d]]=$(f[d]).text()}c.push(g)}return c},getValue:function(){return this.updateDatas()},setValue:function(a){this.popuNewData(a)},addData:function(g,c){if(!FR.isArray(g)){var b=[];b.push(g);g=b}var d=this;var f=$("<tr/>").addClass("fr-form-table-tr").click(function(){if(d.activedTR){d.activedTR.removeClass("fr-form-table-selectedtr")}$(this).addClass("fr-form-table-selectedtr");d.activedTR=$(this);
d.fireEvent(FR.Events.CLICK)});for(var e=0,a=g.length;e<a;e++){var h=$("<td/>").addClass("fr-form-table-td").append($("<pre>").css("white-space","pre-wrap").append(g[e]||""));h.css("height",c+1);f.append(h)}this.table.append(f);this.embellishTable()},embellishTable:function(){var a=this.table.children("tbody").children("tr");var b=this;$.each(a,function(d){$($(".fr-form-table-td",$(a[d]))[0]).addClass("fr-form-table-first-td");if(d===0&&b.table.children("thead").length===0){var c=$(".fr-form-table-td",a[d]);
$.each(c,function(e){$(c[e]).addClass("fr-form-table-top-td")})}if(d%2===0){$(a[d]).css({backgroundColor:"#EEEEEE"})}else{$(a[d]).addClass("fr-form-table-odd-tr")}})},getTable:function(){return this.table},getSelectedData:function(){if(!this.activedTR){return}else{var b={};var a=$("td",this.activedTR);if(this.head.length!=a.length){return}else{$.each(this.head,function(c,d){b[d]=$(a[c]).text()});return b}}},getSelectedIndex:function(){if(!this.activedTR){return -1}else{return this.activedTR[0].rowIndex-1
}}});$.shortcut("datatable",FR.DataTable);
(function(a){FR.SynchronBaseEditor=FR.extend(FR.BaseEditor,{_init:function(){FR.SynchronBaseEditor.superclass._init.apply(this,arguments)}});a.extend(FR,{createTreeConfig4Widget:function(b){FR.$defaultImport("/com/fr/web/core/js/jquerytree/tree.js","js");FR.$defaultImport("/com/fr/web/core/js/jquerytree/common.js","js");if(b.options.widgetCss&&b.options.widgetCss.length!==0){a.each(b.options.widgetCss,function(d,e){FR.$import(e,"css",true)})}var c={data:b.options.data,showcheck:b.options.mutiSelection,onnodeclick:function(e,f){var d=b.options.disableID;
if(d){if(d==e.getID()){return}}b._onEnterPressed(this,f)},beforeSelectItemChange:function(){return b.fireEvent(FR.Events.BEFORESTATECHANGE)},flatStyle:false,widget:b,selectLeafOnly:b.options.selectLeafOnly,afterBuild:function(){return b.fireEvent(FR.Events.AFTERBUILD)},loadByLayer:b.options.loadByLayer};return c},parseString2Array4Tree:function(g,f){if(typeof g!="string"||FR.isEmpty(f)){return a.makeArray(g)}var b=[];var e=f.options.nodeDelimiter||/[;；]/;var c=f.options.pathDelimiter||/[,，]/;if(g.indexOf(";")!=-1||g.indexOf("；")!=-1){b=g.split(e)
}if(b.length>0){for(var d=0;d<b.length;d++){b[d]=b[d].split(c)}}else{if(g.indexOf(",")!=-1||g.indexOf("，")!=-1){b=g.split(c)}}if(FR.isEmptyArray(b)){return g.split(";")}return b},parseTo2DArray:function(b){if(!FR.isEmptyArray(b)&&!a.isArray(b[0])){var c=[];c[0]=b;return c}else{return b}},getTreeTrace:function(m,b,k,d){var h=[];var o=[];var l=false;var e=k===true?b.slice(0).reverse():b;for(var g=0;g<e.length;g++){if(e[g].hasChild()&&d){continue}if(e[g].getValue()==m||e[g].getShowValue()==m){l=true;
var c=e[g];h[0]=c.getValue();while(c.getParent()){c=c.getParent();h.push(c.getValue());c.setexpand(true)}if(k===true){o.push(h.reverse())}else{return h.reverse()}}}for(var g=0;g<e.length;g++){if(e[g].ChildNodes||(e[g].data&&e[g].data.ChildNodes)){var n=FR.getTreeTrace(m,e[g].getChildren(),k,d);if(!FR.isEmptyArray(n)){l=true;if(k){for(var f=0;f<n.length;f++){o.push(n[f])}}else{return n}}}}if(l){return o}return[]},getValidTreeTrace:function(b,c,d){if(!FR.isArray(b)||FR.isEmptyArray(b)){return}if(b.length===1){return FR.getTreeTrace(b[0],c,false,d)
}else{return e(b,0,c)?b:null}function e(f,g,h){if(g>=f.length){return true}for(var j=0;j<h.length;j++){if(h[j].getValue()==f[g]){return e(f,g+1,h[j].getChildren())}else{if(h[j].getShowValue()==f[g]){f[g]=h[j].getValue();return e(f,g+1,h[j].getChildren())}}}return false}},setAllNodeState:function(b,d){for(var c=0;c<b.length;c++){b[c].setcheckstate(d);if(b[c].isLoadComplete()&&b[c].getChildrenLength()>0){FR.setAllNodeState(b[c].getChildren(),d)}}},setNodeStateByInitValue:function(b,m,d,f){if(!FR.isArray(d)){return
}for(var h=0;h<b.length;h++){var e=b[h];var l=d[m];if(e.getShowValue()==l||e.getValue()==l){if(m==d.length-1){if(!f||!e.hasChild()){e.setcheckstate(1);d[m]=e.getValue()}return true}var c=e.getChildren();if(FR.setNodeStateByInitValue(c,m+1,d,f)&&f){var k=true;for(var g=0;g<c.length;g++){if(c[g].getcheckstate()!==1){k=false;break}}e.setcheckstate(k?1:2);if(FR.Core.Plugin.ExtraWidgetConfig.autoExpandTreeNodes){e.setexpand(true)}d[m]=e.getValue();return true}}}},findSelectedNode:function(d,b,g,c){if(!FR.isArray(g)){return
}for(var e=d.length-1;e>-1;e--){var f=d[e];if(f.getShowValue()==g[b]||f.getValue()==g[b]){if(FR.Core.Plugin.ExtraWidgetConfig.autoExpandTreeNodes){f.setexpand(true)}if(b==g.length-1){c.currentnode=f;break}FR.findSelectedNode(f.getChildren(),b+1,g,c)}}},findTrueValue:function(d,c,f,b,g){if(!FR.isArray(f)){return}for(var e=0;e<d.length;e++){if(d[e].getValue()==f[c]){if(c==f.length-1){b.push(d[e].getTextPath(false));g.push(f);return}d=d[e].getChildren();FR.findTrueValue(d,c+1,f,b,g);return}}},getTreeValueResult:function(b,g,f){if(f){return FR.isEmptyArray(b)?[]:b
}else{if(b==null){return null}if(g){var d=[];for(var c=0;c<b.length;c++){if(a.isArray(b[c])){var e=b[c];d[c]=e[e.length-1]}else{d[c]=b[c]}}return d}else{return b[b.length-1]||""}}}});FR.TreeEditor=FR.extend(FR.SynchronBaseEditor,{_defaultConfig:function(){return a.extend(FR.TreeEditor.superclass._defaultConfig.apply(),{width:120,height:200,limitData:300,delimiter:";"})},_init:function(){FR.TreeEditor.superclass._init.apply(this,arguments);this.initData();if(this.options.widgetName!=null){this.element.attr("id",this.options.widgetName)
}if(this.options.width>-1){this.element.css("width",this.options.width)}if(this.options.height>-1){this.element.css("height",this.options.height)}this.element.css("overflow","auto");this.options.data.resetStatus(this.allPara());if(!FR.isEmpty(this.options.value)){this._dealValueWithEvents(this.options.value)}this._setCheckStateByDefaultValue()},initData:function(){if(this.options.data){return}if(this.options.rootLoader){this.options.data=new FR.TreeData({treeLoader:this.options.rootLoader})}else{if(this.options.widgetUrl){this.options.data=new FR.TreeData({url:this.options.widgetUrl})
}else{if(this.options.items){this.options.data=new FR.ItemTreeData({items:this.options.items})}}}if(this.options.controlAttr){var c=this.options.controlAttr["data"]||this.options.controlAttr["value"];if(FR.isEmpty(c)||c==""){return}this._confirmEvents=function(){this.fireEvent(FR.Events.AFTERINIT)};var b=this.createDependencePara4Data();b.parameter.startIndex=0;b.parameter.limitIndex=this.options.limitData;this.options.data.setData(b,c);delete this.options.controlAttr}},allPara:function(d,c){var b=this.createDependencePara4Data();
b.parameter.startIndex=d?d:0;b.parameter.limitIndex=c?c:this.options.limitData;return b},isComboBoxTree:function(){return false},_onEnterPressed:function(b){this.fireEvent(FR.Events.CLICK,b);this.fireEvent(FR.Events.AFTEREDIT)},setValue:function(l,d){if(d===undefined||d===false){d=function(i){return i.getValuePath(false)}}var n=this;var e;if(typeof l==="string"){e=l.split(this.options.delimiter)}else{e=a.makeArray(l)}if(!FR.isEmptyArray(e)){var c=this.options.data.getData();var f=[];for(var g=0;g<c.length;
g++){f=f.concat(c[g].getLeafNode())}var h=[];for(var k=0;k<f.length;k++){var m=f[k];var j;if(a.isArray(e[0])&&n.options.mutiSelection){j=e.weakIndexOf(d(m))!==-1}else{j=FR.equals(d(m),e)}if(j){m.setcheckstate(1);h.push(m);if(!n.options.mutiSelection){break}}else{m.setcheckstate(0)}}a.each(h,function(o,p){var i=p.getParent();while(i){i.setcheckstate(i.isAllChildrenChosen()?1:2);i.setexpand(true);i=i.getParent()}});var b=FR.createTreeConfig4Widget(this);this._createTreeView(b)}},getValue:function(){var b;
if(!this.options.mutiSelection){b=this.element.getTCPValue()||this.value}else{b=this.element.getTCPValues()||this.value}return FR.getTreeValueResult(b,this.options.mutiSelection,this.options.returnFullPath)},getText:function(){var b;if(!this.options.mutiSelection){b=this.element.getTCPValue()===null?null:this.element.getTCPText()}else{b=this.element.getTCPValues()===null?null:this.element.getTCPTexts()}return FR.getTreeValueResult(b,this.options.mutiSelection,this.options.returnFullPath)},setText:function(b){this.setValue(b,function(c){return c.getTextPath(false)
})},_dealValueWithEvents:function(h){var e=this.options.mutiSelection?[]:"";if(typeof h==="string"){var f=h.split(this.options.delimiter)}else{var f=a.makeArray(h)}var d=this;var c=[];var g=[];if(!this.options.mutiSelection){FR.findTrueValue(this.options.data.getData(),0,f,c,g)}else{f=FR.parseTo2DArray(f);for(var b=0;b<f.length;b++){FR.findTrueValue(this.options.data.getData(),0,a.isArray(f[b])?f[b]:f[b].split(","),c,g)}}if(c.length!==0){this.value=this.options.mutiSelection?g:g[0]}else{this.value=f
}leafNodes=nodes=null;if(e!=h){this.options.need2BuildList=true}},_setCheckStateByDefaultValue:function(){var e=this;var g=this.options.value?this.options.value:[];var d=FR.createTreeConfig4Widget(this);var f=function(j){if(!a.isArray(j)){return}if(!FR.isEmptyArray(j)){for(var h=0;h<j.length;h++){if(a.isArray(j[h])){j[h]=j[h].toString()}}}};if(!FR.isEmptyArray(g)){var c=this.options.data.getData();if(!FR.isArray(g)){g=FR.getTreeTrace(g,c,e.options.mutiSelection,e.options.selectLeafOnly)}if(e.options.mutiSelection){g=FR.parseTo2DArray(g);
f(g);FR.setAllNodeState(c,0);for(var b=0;b<g.length;b++){FR.setNodeStateByInitValue(c,0,g[b].split(","),e.options.selectLeafOnly)}}else{FR.findSelectedNode(c,0,g,d)}}this._createTreeView(d)},reset:function(){this.setValue("");var c=this.options.data.getData();FR.setAllNodeState(c,0);var b=FR.createTreeConfig4Widget(this);this._createTreeView(b)},doResize:function(b){FR.TreeEditor.superclass.doResize.call(this,b)},_createTreeView:function(b){this.element.treeview(b)}});a.shortcut("tree",FR.TreeEditor);
FR.ListEditor=FR.extend(FR.SynchronBaseEditor,{_defaultConfig:function(){return a.extend(FR.ListEditor.superclass._defaultConfig.apply(),{width:120,height:200,icon:false,multi:false,removeSelf:false,textAlign:"left"})},_init:function(){FR.ListEditor.superclass._init.apply(this,arguments);this.initData();this._initList();var b=this;this.options.data.once(FR.Events.AFTERREAD,function(){b.fireEvent(FR.Events.DEFAULTINIT)})},initData:function(){if(this.options.data){return}if(this.options.controlAttr){this.setSource(this.options.controlAttr);
this._confirmEvents=function(){this.fireEvent(FR.Events.AFTERINIT)};return}if(this.options.widgetUrl){this.options.data=FR.DataFactory.createSynchronJSONData(this.options.widgetUrl,false)}else{if(this.options.items){this.options.data=FR.DataFactory.createSynchronArrayData(this.options.items)}}},refreshList:function(){if(this.options.controlAttr&&this.options.widgetUrl){this.options.controlAttr=null;this.options.data=FR.DataFactory.createSynchronJSONData(this.options.widgetUrl,false)}this.jlist({needHead:this.options.needHead})
},setSource:function(c){var b=this;if(c["value"]!==undefined&&c["value"]!==""){this.once(FR.Events.DEFAULTINIT,function(){b.setValue(c["value"],false)})}this.options.data=FR.DataFactory.createSynchronArrayData(c["data"])},_initList:function(){FR.$defaultImport("/com/fr/fs/web/platform/js/jquery.jlist.js","js");var b=this.options;if(b.width>-1){this.element.css("width",b.width)}if(b.height>-1){this.element.css("height",b.height)}if(b.textAlign){this.element.css("text-align",b.textAlign)}this.jlist({needHead:b.needHead})
},getValue:function(){var b=this.getSelectedItem();return b!=null?b.getValue():null},_dealValueWithEvents:function(h,d){var g=this.getSelectedText(),f=this.options.data;for(var c=0,b=f.getLength();c<b;c++){var e=this.options.data.getRecord(c);if(d&&(d.getShowValue()==e.getShowValue())){e.setValue(h);break}}},getSelectedText:function(){var b=this.getSelectedItem();return b!=null?b.getShowValue():null},addItem:function(b){this.doAddItem(b)},getAll:function(){var d=[],e=this.options.data;for(var c=0,b=e.getLength();
c<b;c++){var f=e.getRecord(c);d.push({text:f.getShowValue(),value:f.getValue()!=null?f.getValue():f.getShowValue()})}return d},setAll:function(c){var b=this;a.each(c,function(e,f){var d=FR.DataFactory.createItemRecord({text:e,value:f});b.doAddItem(d,true);b.options.data.addRecord(d)})},clear:function(){this.doClear()},clearSelected:function(){a(".fr-list-node",this.element).removeClass("fr-list-node-selected");this.fireEvent(FR.Events.NOSELECT)},doFilter:function(c){var b=a(".fr-list-node",this.element);
if(c||c===0){c=c.toUpperCase();a.each(b,function(d,e){var f=a("a > span",a(this)).html();if(f.toUpperCase().indexOf(c)>-1){a(this).show()}else{a(this).hide()}})}else{b.show()}},popData:function(b){this.doClear();this.options.data=new FR.SynchronData({dataSource:new FR.SynchronObjectSource({object:b})});this.jlist();if(this.getSelectedIndex()<0){this.fireEvent(FR.Events.NOSELECT)}},setSelectedIndex:function(c){var d=a("ul.fr-list-content",this.element);var b=a("li",d);if(!b){this.fireEvent(FR.Events.NOSELECT)
}this.doSelected(null,a(b[c]))}});a.shortcut("list",FR.ListEditor);FR.ToggleButtonGroup=FR.extend(FR.SynchronBaseEditor,{_defaultConfig:function(){return a.extend(FR.ToggleButtonGroup.superclass._defaultConfig.apply(),{columnsInRow:0})},_init:function(){FR.ToggleButtonGroup.superclass._init.apply(this,arguments);var e=this.options;var f;var d;if(e.border){d=e.border.b||e.border.t;f=e.border.l||e.border.r;if(e.border.b1){e.height=e.height-1;e.width=e.width-1}else{if(d){e.height=e.height-vgap.w}else{if(f){e.width=e.width-hgap.w
}}}}var c=e.width>0?e.width:0;var b=e.height>0?e.height:0;this.$container=this.element.addClass("fr-form-btn-group");this.$container.css({"width":c,"height":b}).addClass(this.lbox_class);this.buttonArray=[];if(FR.Browser.isIE8Before()&&!a.support.boxModel&&b===0){this.$container.css({height:1,"overflow":"hidden"})}if(e.value!=null){this.once(FR.Events.DEFAULTINIT,function(){this.setValue(e.value,false)})}this.initData()},initData:function(){if(this.options.data){return}if(this.options.controlAttr){this.setSource(this.options.controlAttr);
this._confirmEvents=function(){this.fireEvent(FR.Events.AFTERINIT)};return}if(this.options.widgetUrl){this.options.data=FR.DataFactory.createSynchronJSONData(this.options.widgetUrl,false);this.options.data.resetStatus(this.createDependencePara4Data())}else{if(this.options.items){this.options.data=FR.DataFactory.createSynchronArrayData(this.options.items)}}var b=this;this.options.data.afterRead(function(c){if(b.isBoxBuild!==true){b._buildBox(c)}});this.options.data.loadData()},setSource:function(c){var b=this;
if(c["value"]!==undefined&&c["value"]!=""){this.once(FR.Events.DEFAULTINIT,function(){b.setValue(c["value"],false)})}this.options.data=FR.DataFactory.createSynchronArrayData(c["data"]);this.options.data.afterRead(function(d){b._buildBox(d)});this.options.data.loadData()},reset:function(){this.setValue(null);this.isBoxBuild=undefined;if(this.options.data.resetStatus(this.createDependencePara4Data())){this.options.data.loadData()}},rebuild:function(b){this.setValue(null);this.options.data=null;this.options.widgetUrl=null;
this.element.empty();this.options.items=b;this.isBoxBuild=undefined;if(b.widgetUrl){this.options.widgetUrl=b.widgetUrl}if(!this.options.renderEl){this.options.renderEl=this.element}this._init()},clearContent:function(){this.$container.empty()},_buildBox:function(){this.clearContent();var b=this.options.data.getRecords();this._initGridConfig(b);this._setItems(b);this.isBoxBuild=true;this.fireEvent(FR.Events.DEFAULTINIT)},_initGridConfig:function(c){var b=c.length+(this.options.chooseAll===true?1:0),d=this.options.columnsInRow,e=d===0?1:1+Math.floor((b-0.1)/d);
this.gridConfig={columns:d===0||e===0?b:d,rows:e,items:[],renderEl:this.$container};return this.gridConfig},setEnable:function(b){if(this.buttonArray){for(var c=0;c<this.buttonArray.length;c++){this.buttonArray[c].setEnable(b)}}FR.ToggleButtonGroup.superclass.setEnable.apply(this,arguments)},getErrorMessage:function(){return this.options.errorMsg||FR.i18nText("Fine-Engine_Base_NOT_NULL_Des")},doResize:function(b){FR.ToggleButtonGroup.superclass.doResize.call(this,b);this.$container.css({width:b.width,height:b.height});
if(this.grid){this.grid.doLayout();this._checkTable()}},_checkTable:function(){if(this.$container.parent()[0]&&this.$container.parent()[0].tagName=="TD"){this.$container.css("position","relative")}}});a.shortcut("togglebuttongroup",FR.ToggleButtonGroup);FR.TableTree=FR.extend(FR.BaseEditor,{_defaultConfig:function(){return a.extend(FR.TableTree.superclass._defaultConfig.apply(),{width:120,height:200})},_init:function(){FR.TableTree.superclass._init.apply(this,arguments);FR.$defaultImport("/com/fr/web/platform/js/jquery.tabletree.js","js");
FR.$defaultImport("/com/fr/web/platform/css/jquery.tabletree.css","css");var d=this.options;this.$TableTreeDiv=this.element;if(d.width>-1){this.$TableTreeDiv.css("width",d.width)}if(d.height>-1){this.$TableTreeDiv.css("height",d.height)}var c;if(!this.options.data){this.options.data=new FR.Data({dataSource:new FR.URLSource({url:this.options.widgetUrl}),dataReader:new FR.DataReader({choosedFields:["name","state"]})})}if(this.options.rootLoader){this.options.treedata=new FR.TreeData({treeLoader:this.options.rootLoader})
}else{if(this.options.url){this.options.treedata=new FR.TreeData({url:this.options.url})}else{return}}var b={data:this.options.treedata.getData(),cvns:this.options.data.getData(),treedatatype:this.options.treedatatype,width:this.options.width,height:this.options.height,needleaficon:this.options.needleaficon,oncheckboxclick:this.options.oncheckboxclick};this.$TableTreeDiv.tabletree(b)},getValue:function(){return this.$TableTreeDiv.getTableTreeValue()},_setValue:function(b){this.$TableTreeDiv.setTableTreeValue(b)
}});a.shortcut("tabletree",FR.TableTree)})(jQuery);
(function(a){FR.Composite=FR.extend(FR.Widget,{type:"composite",_defaultConfig:function(){return a.extend(FR.Composite.superclass._defaultConfig.apply(),{innerWidget:{}})},_init:function(){FR.Composite.superclass._init.apply(this,arguments);var c=this.options.innerWidget;c.renderEl=a("<div>").appendTo(a("body"));var b=FR.createWidget(c);this.innerWidget=b;if(b.element.data("jlayout")){b.doResize(b.element.data("jlayout").preferred(this.element))}b.doLayout();b.element.css({position:""});c.renderEl.appendTo(this.element.css({position:"relative"}))
},getWidgetByName:function(c){var b=this.innerWidget.options.resultWidgets;return b[c]}});a.shortcut("composite",FR.Composite);FR.PageNavi=FR.extend(FR.Composite,{_init:function(){FR.PageNavi.superclass._init.apply(this,arguments)}});a.shortcut("page-navi",FR.PageNavi);FR.Toolbar=FR.extend(FR.Widget,{type:"toolbar",_defaultConfig:function(){return a.extend(FR.Toolbar.superclass._defaultConfig.apply(),{baseCls:"x-toolbar",items:[]})},_init:function(){FR.Toolbar.superclass._init.apply(this,arguments);
var j=this.options;var b=28;FR.toolbarHeight=b;this.element.addClass(j.baseCls);this.element.css("height",b);if(j.toolbarbg){var f=j.toolbarbg;var h=this.element;FR.setBackground(h,f,h.height())}this.$tr=a("<tr>");this.$tr.appendTo(a("<tbody>").appendTo(a("<table cellspacing=0>").css({"height":b,"vertical-align":"center"}).appendTo(this.element)));if(j.toolbarbg&&(j.toolbarbg["type"]===4||j.toolbarbg["type"]===2)&&FR.Browser.isIE()&&FR.ieForFixBackground()){this.$tr.css({position:"absolute",top:"0px"})
}var e=[];if(j.items!=null){if(!FR.isArray(j.items)){j.items=[j.items]}for(var d=0;d<j.items.length;d++){if(d>0){this.addSep()}var g=j.items[d];var c=FR.createWidget(g);e.push(c);if(g.widgetName){this[g.widgetName.toLowerCase()]=c}this.addJQuery(c.element)}j.items=e}this.element.find("input").attr("disabled","true")},getWidgetByName:function(d){var c=this.options.items;for(var e=0,b=c.length;e<b;e++){var g=c[e];var f=g.options.widgetName;if(f&&d&&f.toUpperCase()===d.toUpperCase()){return g}}},getWidgetsByName:function(d){var f=[];
var c=this.options.items;for(var e=0,b=c.length;e<b;e++){var h=c[e];var g=h.options.widgetName;if(g&&d&&g.toUpperCase()===d.toUpperCase()){f.push(h)}}return f},getWidgetsExcludeNames:function(c){var g=[];var f=[];if(c){for(var e=0,b=c.length;e<b;e++){f[e]=c[e].toUpperCase()}}var d=this.options.items;for(var e=0,b=d.length;e<b;e++){var j=d[e];var h=j.options.widgetName;if(h&&f.indexOf(h.toUpperCase())===-1){g.push(j)}}return g},addJQuery:function(c){if(FR.Browser.isIE()&&!a.support.boxModel){this.element.css("overflow","hidden")
}if(c!=null){var b=a("<td>").append(c);this.$tr.append(b)}},addSep:function(){this.addJQuery("<span class='sep'> </span>")}});a.shortcut("toolbar",FR.Toolbar);FR.MenuButton=FR.extend(FR.Button,{_init:function(){FR.MenuButton.superclass._init.apply(this,arguments);if(this.$em){this.$em.addClass("fr-btn-arrow")}var b=this.options.menu;if(FR.isArray(b)){this.on("click",function(){FR.showMenuByEl({destroyOnClose:true,items:b,minWidth:175,xxxfixclientH:this.options.istoolbarmenu?true:false},this.element)
}.createDelegate(this));if(this.$table){this.$table.mouseleave(function(d){if(this.fr_menu){var c={x:this.fr_menu.menu.$menuRoot.offset().left,y:this.fr_menu.menu.$menuRoot.offset().top-1,width:this.fr_menu.menu.$menuRoot.bounds().width,height:this.fr_menu.menu.$menuRoot.bounds().height};if(d.clientY<c.y||d.clientY>c.y+c.height||d.clientX<c.x||d.clientX>c.x+c.width){this.fr_menu.menu.close()}}}.createDelegate(this.element))}}}});a.shortcut("menubutton",FR.MenuButton);FR.ExportMenu=FR.extend(FR.MenuButton,{_init:function(){FR.ExportMenu.superclass._init.apply(this,arguments)
}});a.shortcut("export-menu",FR.ExportMenu);FR.ExcelMenu=FR.extend(FR.MenuButton,{_init:function(){FR.ExcelMenu.superclass._init.apply(this,arguments)}});a.shortcut("excel-menu",FR.ExcelMenu);FR.FirstPageButton=FR.extend(FR.Button,{_init:function(){FR.FirstPageButton.superclass._init.apply(this,arguments)}});a.shortcut("first",FR.FirstPageButton);FR.PreviousPageButton=FR.extend(FR.Button,{_init:function(){FR.PreviousPageButton.superclass._init.apply(this,arguments)}});a.shortcut("previous",FR.PreviousPageButton);
FR.NextPageButton=FR.extend(FR.Button,{_init:function(){FR.NextPageButton.superclass._init.apply(this,arguments)}});a.shortcut("next",FR.NextPageButton);FR.LastPageButton=FR.extend(FR.Button,{_init:function(){FR.LastPageButton.superclass._init.apply(this,arguments)}});a.shortcut("last",FR.LastPageButton);FR.EmailButton=FR.extend(FR.Button,{_init:function(){FR.EmailButton.superclass._init.apply(this,arguments)}});a.shortcut("mail",FR.EmailButton);FR.ExportPDFButton=FR.extend(FR.Button,{_init:function(){FR.ExportPDFButton.superclass._init.apply(this,arguments)
}});a.shortcut("export-pdf",FR.ExportPDFButton);FR.ExportExcelPageButton=FR.extend(FR.Button,{_init:function(){FR.ExportExcelPageButton.superclass._init.apply(this,arguments)}});a.shortcut("export-excel-page",FR.ExportExcelPageButton);FR.ExportExcelOriginButton=FR.extend(FR.Button,{_init:function(){FR.ExportExcelOriginButton.superclass._init.apply(this,arguments)}});a.shortcut("export-excel-ori",FR.ExportExcelOriginButton);FR.ExportExcelSheetButton=FR.extend(FR.Button,{_init:function(){FR.ExportExcelSheetButton.superclass._init.apply(this,arguments)
}});a.shortcut("export-excel-sheet",FR.ExportExcelSheetButton);FR.ExportWordButton=FR.extend(FR.Button,{_init:function(){FR.ExportWordButton.superclass._init.apply(this,arguments)}});a.shortcut("export-word",FR.ExportWordButton);FR.ExportImageButton=FR.extend(FR.Button,{_init:function(){FR.ExportImageButton.superclass._init.apply(this,arguments)}});a.shortcut("export-image",FR.ExportImageButton);FR.PrintButton=FR.extend(FR.Button,{_init:function(){FR.PrintButton.superclass._init.apply(this,arguments)
}});a.shortcut("print",FR.PrintButton);FR.PrintPDFButton=FR.extend(FR.Button,{_init:function(){FR.PrintPDFButton.superclass._init.apply(this,arguments)}});a.shortcut("pdf-print",FR.PrintPDFButton);FR.CompatiblePrintButton=FR.extend(FR.MenuButton,{_init:function(){FR.CompatiblePrintButton.superclass._init.apply(this,arguments)}});a.shortcut("compatible-print",FR.CompatiblePrintButton);FR.FlashPrintButton=FR.extend(FR.Button,{_init:function(){FR.FlashPrintButton.superclass._init.apply(this,arguments)
}});a.shortcut("flash-print",FR.FlashPrintButton);FR.AppletPrintButton=FR.extend(FR.Button,{_init:function(){FR.AppletPrintButton.superclass._init.apply(this,arguments)}});a.shortcut("applet-print",FR.AppletPrintButton);FR.PrintOffsetButton=FR.extend(FR.Button,{_init:function(){FR.PrintOffsetButton.superclass._init.apply(this,arguments)}});a.shortcut("offset-print",FR.PrintOffsetButton)})(jQuery);
(function(a){FR.TextEditor=FR.extend(FR.EditComp,{_defaultConfig:function(){return a.extend(FR.TextEditor.superclass._defaultConfig.apply(),{autoVerify:true})},isValidateInput:function(b){return !FR.isSpecialKey(b)||b.keyCode===229},_dealValueWithEvents:function(c){var b=this.getValue();this.editComp.val(c);if(arguments[1]!==false){this.fireEvent(FR.Events.CHANGE,c,b);this.fireEvent(FR.Events.AFTEREDIT)}},recoveryValue:function(){this.editComp.val(this.options.oldValue)},select:function(){if(this.editComp.select){this.editComp.select()
}},getValue:function(){return this.editComp.val()},doResize:function(b){FR.TextEditor.superclass.doResize.call(this,b)}});a.shortcut("text",FR.TextEditor);FR.Password=FR.extend(FR.TextEditor,{_defaultConfig:function(){return a.extend(FR.TextEditor.superclass._defaultConfig.apply(),{passwordText:true,encryption:"none"})},_init:function(){FR.Password.superclass._init.apply(this,arguments);var b=this;var c=this.options;if(c.encryption==="all"||c.encryption==="output"){this.editComp.keyup(function(d){b.ciphertext=FR.encrypt(a(d.target).val())
})}},getValue:function(){var b;var c=this.options;if((c.encryption==="all"||c.encryption==="output")&&!(_.isUndefined(this.ciphertext)||this.ciphertext==="")){b=this.ciphertext}else{b=FR.Password.superclass.getValue.apply(this,arguments)}b.encryption=true;return b},_dealValueWithEvents:function(d){var e=this.options;var b="";var c=FR.Password.superclass.getValue.apply(this,arguments);if(e.encryption==="all"||e.encryption==="input"){b=FR.encrypt(d);this.ciphertext="";this.editComp.val(b)}else{this.editComp.val(d)
}if(arguments[1]!==false){this.fireEvent(FR.Events.CHANGE,e.encryption?b:d,c);this.fireEvent(FR.Events.AFTEREDIT)}},_createEditComp:function(){return a('<input type="password"/>')}});a.shortcut("password",FR.Password);FR.TextArea=FR.extend(FR.TextEditor,{_defaultConfig:function(){return a.extend(FR.TextEditor.superclass._defaultConfig.apply(),{multiline:true})},_init:function(){FR.TextArea.superclass._init.apply(this,arguments);var c=this.options,b=this;if(c.multiline===true){this.editComp.keydown(function(h){if(b.options.write&&FR.keyCode.UP==h.keyCode||FR.keyCode.DOWN==h.keyCode){h.stopPropagation();
return}if(h.keyCode===13){if(b.options.form){b.fireEvent(FR.Events.AFTEREDIT);h.stopPropagation()}}var g=this;if(h.ctrlKey&&h.keyCode===13){h.ctrlKey=false;var i=g.value;var f=a("."+c.cls,b.element).eq(0)[0];if(typeof f.selectionStart=="number"&&typeof f.selectionEnd=="number"){var j=f.selectionStart;if(!FR.Browser.isEdge()&&!FR.Browser.isSafari()){g.value=i.slice(0,j)+"\n"+i.slice(f.selectionEnd);f.selectionStart=f.selectionEnd=j+1}}else{if(document.selection&&document.selection.createRange){this.focus();
var d=document.selection.createRange();d.text="\r\n";d.collapse(false);d.select()}}b.fireEvent(FR.Events.AFTEREDIT)}});if(!jQuery.support.boxModel){this.editComp.css({"white-space":"normal"})}}},replaceNewline:function(){if(FR.Browser.isIE()){this.editComp.on("paste",function(){var b=window.clipboardData.getData("Text");this.value=this.value?this.value.append(b):b;return false})}},_createEditComp:function(){return a("<textarea style='overflow-y:auto;resize:none;line-height: normal'></textarea>")},isValidateInput:function(b){return FR.TextArea.superclass.isValidateInput.call(this,b)||(b.keyCode===13&&this.options.form)
},doResize:function(b){FR.TextEditor.superclass.doResize.call(this,b)}});a.shortcut("textarea",FR.TextArea)})(jQuery);
(function(a){FR.IframeEditor=FR.extend(FR.BaseEditor,{_defaultConfig:function(){return a.extend(FR.IframeEditor.superclass._defaultConfig.apply(),{baseName:"fr_iframe",baseClass:"fr_iframeeditor",widgetName:"",src:"",width:"100%",height:"100%",showOverFlowX:true,showOverFlowY:true})},_init:function(){FR.IframeEditor.superclass._init.apply(this,arguments);this.initData();var b=this.options;this.editComp=this.element.css({width:"100%",height:"100%"});b.iframeName=b.widgetName||this.createNoRepeatName();
this.$iframe=a("<iframe  name="+b.iframeName+" id="+b.iframeName+">").css({width:b.width,height:b.height}).addClass(b.baseClass).attr({frameborder:0,scrolling:!b.showOverFlowX&&!b.showOverFlowY?"no":"yes"}).appendTo(this.editComp);this.$iframe[0].onload=function(){if(!b.showOverFlowX||!b.showOverFlowY){try{if(this.contentWindow){var f=this.contentWindow.document;var g=a(".content-container",a(f));if(g.length>0){c(g)}else{c(a(f.documentElement));c(a(f.body))}function c(e){if(!b.showOverFlowX){e.css("overflow-x","hidden")
}if(!b.showOverFlowY){e.css("overflow-y","hidden")}}}}catch(d){console&&console.log("error")}}};if(a.browser.msie&&(this.$iframe.parent()).is("div")&&(this.$iframe.parent().parent()).is("td")&&(this.$iframe.parent().parent().attr("widget"))!=null&&(this.$iframe.parent().parent().parent()).is("tr")){this.$iframe.parent().height("")}else{this.$iframe.css("overflow-x",b.showOverFlowX?"auto":"hidden");this.$iframe.css("overflow-y",b.showOverFlowY?"auto":"hidden")}if(b.controlAttr){this.setValue(b.controlAttr)
}else{if(b.src){this._loadIframeByGet()}}if(b.disabled){this._addDisableMask()}},createNoRepeatName:function(){var b=a("iframe"+this.options.baseClass).length;while(a("iframe[name="+this.options.baseName+b+"]").length!==0){b++}return this.options.baseName+b},_loadIframeByGet:function(){var b=this.options.src,h=this;if(this.options.data){var j=[];for(var e=0,f=this.options.data.getLength();e<f;e++){var d=this.options.data.getRecord(e).getContent();if(typeof d=="object"&&d.widgetName&&this.options.form){var g=this.options.form.getWidgetByName(d.widgetName);
if(g){var k={};k[d.widgetName]=g.getValue();b=b.appendQuery(k)}else{j.push(d.widgetName)}}else{b=b.appendQuery(d)}}if(j.length>1){var c=this.options.form;c.on(FR.Events.AFTERINIT,function(){for(var m=0;m<j.length;m++){var l=j[m];var i={};i[l]=c.getWidgetByName(l).getValue();b=b.appendQuery(i)}h._changeIframe(b)})}}this._changeIframe(b)},_addDisableMask:function(){this.mask=a("<span/>").css({backgroundColor:"#66B9FF",height:this.options.height,width:this.options.width,left:this.element.offset().left}).appendTo(this.element)
},getValue:function(){return this.$iframe.attr("src")},_dealValueWithEvents:function(b){this.options.src=b;this._changeIframe(b)},_changeIframe:function(b){this.$iframe.attr("src",b)},setEnable:function(b){FR.IframeEditor.superclass.setEnable.apply(this,arguments);if(b){if(this.mask){this.mask.remove()}}else{if(this.mask){this.mask.show()}else{this._addDisableMask()}}},doResize:function(b){FR.IframeEditor.superclass.doResize.apply(this,arguments);if(this.submitForm){this.submitForm.submit()}},reset:function(){this.options.data.clearData();
this._loadIframeByGet()}});a.shortcut("iframe",FR.IframeEditor)})(jQuery);
(function(a){FR.Label=FR.extend(FR.BaseEditor,{_defaultConfig:function(){return a.extend(FR.Label.superclass._defaultConfig.apply(),{cls:"fr-label",wrap:true,width:120,height:24})},_init:function(){FR.Label.superclass._init.apply(this,arguments);this.element.css("overflow","hidden");var d=this.options;this.labelComp=a("<pre/>").addClass(d.cls);this.textContainer=a('<table cellpadding="0" cellspacing="0"/>');this.textContainer.css({"table-layout":"fixed",width:this.options.width,height:this.options.height,"-webkit-text-size-adjust":"none"}).append(a("<tr/>").append(a("<td/>").append(this.labelComp))).appendTo(this.element);
var b=this;this.labelComp.click(function(){if(b.isEnabled()){b.fireEvent(FR.Events.CLICK)}});if(this._getEvents().click){this.labelComp.addClass("fr-widget-click")}if(d.fontsize){this.labelComp.css("font-size",d.fontsize)}if(d.color){this.labelComp.css("color",d.color)}if(d.decoration){this.labelComp.css("text-decoration",d.decoration)}if(d.lineheight){this.labelComp.css("line-height",d.lineheight+"px")}if(d.textalign){this.labelComp.css("text-align",d.textalign)}if(d.fontfamily){this.labelComp.css("font-family",d.fontfamily)
}if(d.fontweight){this.labelComp.css("font-weight",d.fontweight)}if(d.fontstyle){this.labelComp.css("font-style",d.fontstyle)}if(d.border===true){this.labelComp.css({border:"1px solid #AAAAAA"})}if(d.widgetBackground){if(FR.Browser.isIE8Before()){this.textContainer.css("position","absolute")}var c=FR.Core.Plugin.LabelBackground.action;if(c){c(this.element,d.widgetBackground,this.element.height())}else{FR.setBackground(this.element,d.widgetBackground,this.element.height())}}if(d.borderStyle){this.element.css("border-style",d.borderStyle.type);
this.element.css("border-color",d.borderStyle.color);this.element.css("border-width",d.borderStyle.width);this.element.css("border-bottom-width",0)}if(d.width>-1){this.element.css({width:d.width})}if(d.height>-1){this.element.css({height:d.height})}if(d.title){this.labelComp.attr("title",d.title)}if(d.id){this.labelComp.attr("id",d.id)}if(d.wrap){this.labelComp.css("word-wrap","break-word").css("white-space","pre-wrap")}else{if(!FR.Browser.isIE()){this.labelComp.css("white-space","pre")}else{this.labelComp.css("white-space","pre-wrap").css("word-break","keep-all")
}}if(d.value!=null){this.setValue(d.value)}},setValue:function(c){var b=this.getValue();this.options.value=c;if(FR.Browser.isIE()){this.labelComp[0].innerText=FR.isEmpty(c)?"":c+""}else{this.labelComp.text(c)}if(arguments[1]!==false){this.fireEvent(FR.Events.CHANGE,c,b)}},getValue:function(){return this.options.value},doResize:function(b){FR.Label.superclass.doResize.call(this,b);this.textContainer.css({width:b.width,height:b.height});this.labelComp.css({width:b.width});if(!this.options.verticalcenter){this.labelComp.css("height",b.height+"px")
}}});a.shortcut("label",FR.Label)})(jQuery);
(function(a){FR.NumberEditor=FR.extend(FR.EditComp,{_defaultConfig:function(){return a.extend(FR.NumberEditor.superclass._defaultConfig.apply(),{allowDecimals:true,allowNegative:true,decimalPrecision:-1,autoVerify:true,decimalSeparator:".",numberSeparator:","})},_init:function(){FR.NumberEditor.superclass._init.apply(this,arguments);var d=this.options;var c="0123456789";this.allowed=c+"";if(d.allowDecimals){this.allowed+="."}if(d.allowNegative){this.allowed+="-"}this.editComp.css("ime-mode","disabled");
var b=this;this.editComp.blur(function(){if("."==b.editComp.val().charAt(0)){b.editComp.val("0"+b.editComp.val())}}).keydown(function(f){if(f.keyCode==FR.keyCode.ENTER&&!b.options.write){f.stopPropagation()}}).keypress(function(g){var f=g.keyCode;if(!FR.Browser.isIE()&&(FR.isNavKeyPress(g)||FR.isSpecialKey(g)||f==FR.keyCode.BACKSPACE)){return}var i=g.charCode||g.keyCode;var h=String.fromCharCode(i);if(FR.Browser.isIE()&&(i===27||i===13)){return}if(b.allowed.indexOf(h)===-1){g.preventDefault()}if(this.value.indexOf(".")>-1&&h=="."){g.preventDefault()
}})},isValidateInput:function(b){var f=b.charCode||b.keyCode;if(f==FR.keyCode.BACKSPACE||f==FR.keyCode.ENTER){return true}if(f>=96&&f<=105){f=f-48}var d=String.fromCharCode(f);if(f===190||f===110){d="."}return(this.allowed.indexOf(d)>-1)&&(d!="."||(this.editComp.val().substr(0,this.editComp.val().length-1)).indexOf(".")===-1)},_dealValueWithEvents:function(d){var c=this.options.oldValue;var b;if(d===undefined&&typeof c==="string"&&c!==""){b=c}else{if(d===undefined||d===null){b=""}else{b=String(d)
}}this.editComp.val(b.replace(".",this.options.decimalSeparator));if(arguments[1]!==false){this.fireEvent(FR.Events.CHANGE,d,c)}},_fixPrecision:function(c){var b=isNaN(c);if(!this.options.allowDecimals||this.options.decimalPrecision==-1||b||!c){return b?"":c}return parseFloat(parseFloat(c).toFixed(this.options.decimalPrecision))},_parseValue:function(b){b=parseFloat(String(b).replace(new RegExp(this.options.numberSeparator,"g"),"").replace(this.options.decimalSeparator,"."));return isNaN(b)?"":b},getValue:function(){var b=this.editComp.val();
if(b.length>17){return b}return this._fixPrecision(this._parseValue(b))},verifyDedimals:function(){if(typeof this.editComp.reg==="undefined"){this.editComp.reg=(this.options.allowNegative?"-?":"")+"\\d+"+(this.options.allowDecimals?("(\\.\\d{0,"+this.options.maxDecLength+"})?"):"")}var c=new RegExp(this.editComp.reg);var b=c.exec(this.editComp.val());if(b!==undefined&&b!==null){return b[0]}return""},recoveryValue:function(){this.editComp.val(isNaN(this.options.oldValue)?"":String(this.options.oldValue).replace(".",this.options.decimalSeparator))
},isValidate:function(b){var d=b!==undefined&&b!==null?b:this.editComp.val();b=d;if(b&&this.options.isEditable&&(""+b).indexOf(",")!==-1){d=d.replace(/,/g,"")}if(d===""||d===undefined||d===null){if(this.options.allowBlank!==false){return true}else{this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Base_NOT_NULL_Des");return false}}d=(""+d).replace(this.options.decimalSeparator,".");if(isNaN(d)){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Report_Err_The_value_Must_Be_Number");
return false}var e=d;var c=new FR.BigDecimal({numStr:e});if(e.indexOf(this.options.decimalSeparator)>0){if(!this.options.allowDecimals){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Report_Err_The_Value_Must_Be_Integer");return false}else{if(e.length-e.indexOf(this.options.decimalSeparator)>this.options.maxDecLength+1){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Base_DecimalNumber_Out");return false}}}if(!this.options.allowNegative&&!c.isPositive()){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Report_Invalid_Cell");
return false}if(this.options.minValue!=null&&c.lessThan(new FR.BigDecimal({numStr:String(this.options.minValue)}))){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Report_Err_The_Number_Is_Less_Than_The_Minimum_Value")+this.options.minValue;return false}if(this.options.maxValue!=null&&c.greaterThan(new FR.BigDecimal({numStr:String(this.options.maxValue)}))){this.errorMsg=this.options.regErrorMsg||FR.i18nText("Fine-Engine_Report_Err_The_Number_Is_Larger_Than_The_Maximum_Value")+this.options.maxValue;
return false}return true},doResize:function(b){FR.NumberEditor.superclass.doResize.call(this,b)}});a.shortcut("number",FR.NumberEditor);FR.BigDecimal=function(b){this.options=a.extend({numStr:"",decimalSeparator:"."},b);var g=this.options;var f=g.numStr;this.positive=true;this.intArray=[];this.decArray=[];if(f.indexOf("e")!==-1||f.indexOf("E")!==-1){}var d=0;var e=true;if(f.charAt(0).match(/[-+]/)){this.positive=f.charAt(0)=="+";d++}for(;d<f.length;d++){var h=f.charAt(d);if(h==g.decimalSeparator){e=false;
continue}if(e){this.intArray.push(h)}else{this.decArray.push(h)}}};a.extend(FR.BigDecimal.prototype,{isPositive:function(){return this.positive},equalsTo:function(b){return this.compareTo(b)===0},greaterThan:function(b){return this.compareTo(b)===1},lessThan:function(b){return this.compareTo(b)===-1},compareTo:function(c){if(c==null){return null}if(this.isPositive()&&!c.isPositive()){return 1}if(!this.isPositive()&&c.isPositive()){return -1}var l=0;var g=this.intArray;if(g.length>c.intArray.length){l=1
}else{if(g.length<c.intArray.length){l=-1}else{for(var f=0;f<g.length;f++){if(g[f]>c.intArray[f]){l=1;break}else{if(g[f]<c.intArray[f]){l=-1;break}}}if(l===0){var h=this.decArray;var n=Math.min(h.length,c.decArray.length);for(var e=0;e<n;e++){if(h[e]>c.decArray[e]){l=1;break}else{if(h[e]<c.decArray[e]){l=-1;break}}}if(l===0){if(h[n]!=null){for(var d=n;d<h.length;d++){if(h[d]!=="0"){l=1;break}}}else{if(c.decArray[n]!=null){for(var b=n;b<c.decArray.length;b++){if(c.decArray[b]!=="0"){l=-1;break}}}}}}}}return this.isPositive()?l:-l
}})})(jQuery);
(function(a){FR.TriggerEditor=FR.extend(FR.EditCompBaseEditor,{_defaultConfig:function(){return a.extend(FR.TriggerEditor.superclass._defaultConfig.apply(),{baseCls:"fr-trigger-editor",btn_up:"fr-trigger-btn-up",btn_down:"fr-trigger-btn-down",btn_over:"fr-trigger-btn-over",text_focus:"fr-trigger-text-focus",width:100,height:22})},_init:function(){FR.TriggerEditor.superclass._init.apply(this,arguments);this.initData();this.addContent2Element();this.validateCss()},addContent2Element:function(){var b=this.options;
this.element.addClass(b.baseCls);this.triggerTextComp=this.createTextComp();this._createTextComp();b.width=(b.width>-1)?b.width:this.triggerTextComp.width();b.height=(b.height>-1)?b.height:this.triggerTextComp.height();this._createTriggerBtn();this.arrow=a("<div/>").addClass("fr-trigger-center");this._createStyle4TriggerBtn();var c=a.support.boxModel?this.btn.outerWidth():this.btn.width();this.btnWidth=c>18?c:18+this.fixbtnWidthValue();this.doResize(b);if(!FR.isEmpty(b.value)){this._dealValueWithEvents(b.value,false)
}if(b.isEditable){this.dealWithDisplayValue(b.showValue)}this._initViewContainer()},createTextComp:function(){return a("<div class='fr-trigger-text fr-border-box'></div>").appendTo(this.element)},getArrowIconHeight:function(){return 7},_createTextComp:function(){var c=this.options,b=this;this.editComp=a("<input type='text'/>").addClass("fr-trigger-texteditor").appendTo(this.triggerTextComp);this.editComp.blur(function(){b.editComp.removeClass("fr-trigger-texteditor-focus");b.triggerTextComp.removeClass(b.options.text_focus);
b._editCompBlur();if(b._canCancelSearch()&&!FR.isEmpty(b.searchText)&&b.searchCancel!==false){b.searchCancel=true;b.editComp.val("");b.setValue(b.originalValue,false)}else{if(jQuery.isFunction(b.isExpanded)&&b.isExpanded()){return}if(b.editComp&&b.editComp[0]==document.activeElement){return}b._editCompBlurValidValue();if(!b.options.write){b.fireEvent(FR.Events.STOPEDIT)}}}).focus(function(){b.editComp.addClass("fr-trigger-texteditor-focus");b.triggerTextComp.addClass(b.options.text_focus);if(b.originalValue==null){b.originalValue=b.getValue()
}if(!b.options.write){b.fireEvent(FR.Events.BEFOREEDIT)}b._editCompFocus()});if(c.fontSize){this.editComp.css("font-size",c.fontSize)}if(c.directEdit!==true){this.editComp.attr("readonly",true)}if(c.disabled===true){this.editComp.attr("disabled","disabled")}this.editComp.__bind__("keydown",this,this._onKeyDown)},_createTriggerBtn:function(){var b=this;var c=this.onTriggerClick.createDelegate(this);this.btn=a("<div/>").addClass(b.options.btn_up).appendTo(this.element);var d={onMouSeenter:function(f){if(!b.options.disabled){b.btn.switchClass(b.options.btn_over)
}},onMouseLeave:function(f){if(!b.options.disabled){b.btn.switchClass(b.options.btn_up)}},onMouseDown:function(f){if(!b.options.disabled){b.btn.switchClass(b.options.btn_down)}},onMouseUp:function(f){if(!b.options.disabled){b.btn.switchClass(b.options.btn_over);c()}}};this.btn.mouseenter(d.onMouSeenter).mouseleave(d.onMouseLeave).mouseup(d.onMouseUp).mousedown(d.onMouseDown)},isExpanded:function(){return this.$view&&this.$view.is(":visible")},collapseIf:function(c){var b=c.data;if(c.pageX==null||((c.pageX<b.$view.offset().left||c.pageX>b.$view.offset().left+b.$view.width()||c.pageY<b.$view.offset().top||c.pageY>b.$view.offset().top+b.$view.height())&&(c.pageX<b.btn.offset().left||c.pageX>b.btn.offset().left+b.btn[0].offsetWidth||c.pageY<b.btn.offset().top||c.pageY>b.btn.offset().top+b.btn[0].offsetHeight))){b.collapse(false)
}},collapse:function(b){if(!this.isExpanded()){return}this.$view.hide();a(document).unbind("mousedown",this.collapseIf).unbind("mousewheel",this.collapseIf);if(this.options.write&&this.options.write.lgp){this.options.write.lgp.$container.unbind("scroll",this.collapseIf)}if(b!==false){this.editComp.focus();this.focusIndex=undefined}this.fireEvent(FR.Events.COLLAPSE)},_canCancelSearch:function(){return false},_editCompBlurValidValue:function(){this.checkValid()},_editCompFocus:function(){},_editCompBlur:function(){},_initViewContainer:function(){if(!FR.$view_container){FR.$view_container=a("<div class='view-container'/>").appendTo("body")
}},_createStyle4TriggerBtn:function(){this.arrow.appendTo(this.btn)},setEnable:function(b){FR.TriggerEditor.superclass.setEnable.apply(this,arguments);if(this.editComp){if(b===true){this.editComp.removeAttr("disabled")}else{if(b===false){this.editComp.attr("disabled","disabled")}}}},modifyPosition:function(){if(this.detached===true){this.options.offset=this.detachedOffset;this.tW=this.detachedTW;this.tH=this.detachedTH}else{this.options.offset={"top":this.element.offset().top,"left":this.element.offset().left};
this.tH=this.$view.height();this.tW=this.$view.width()}var f=this.options.offset!=null&&this.triggerTextComp.offset().top===0&&this.triggerTextComp.offset().left===0;var g=Math.max(parseInt(f?this.options.offset.top:this.triggerTextComp.offset().top),0);var c=Math.max(parseInt(f?this.options.offset.left:this.triggerTextComp.offset().left),0);var b=parseInt(this.options.height);var e=parseInt(this.options.width);var d=document.body.clientHeight-g-b;if(g-FR.toolbarHeight<d||g<this.tH){this.$view.css("top",g+b+(FR.Browser.r.gecko?1:0));
if(d<this.tH){this.modifyTop(g)}}else{this.modifyTop(g)}if(c+this.tW>document.body.clientWidth&&(c+e>this.tW)){this.$view.css("left",c+e-this.tW)}else{this.$view.css("left",c)}},detach:function(b){this.detachedOffset={"top":this.element.offset().top,"left":this.element.offset().left};this.detachedTW=this.$view.width();this.detachedTH=this.$view.height();FR.TriggerEditor.superclass.detach.apply(this,arguments)},modifyTop:function(b){this.$view.css("top",(b-this.tH>0)?b-this.tH:0)},onTriggerClick:function(){},setIcon:function(b){this.btn.attr("class",b)
},fixValue:function(){return 2},fixbtnHeightValue:function(){return FR.Browser.isIE8Before()&&!a.support.boxModel?0:2},fixbtnWidthValue:function(){return FR.Browser.isIE8Before()&&!a.support.boxModel?0:1},doResize:function(g){FR.TriggerEditor.superclass.doResize.apply(this,arguments);var c=g.width-this.btnWidth,e=g.height,f=g.width-this.btnWidth,b=g.height;if(a.support.boxModel){if(FR.Browser.r.ie7Compat){e-=this.fixValue();c-=3}f-=7;b-=4}else{if(FR.Browser.r.ie11Compat){}else{if(FR.Browser.r.ie10Compat||FR.Browser.r.ie9Compat){c-=3
}else{if(FR.Browser.isIE10()){c-=this.fixValue();e-=this.fixValue()}else{if(FR.Browser.isIE8()){f-=2}else{c-=this.fixValue()}}}}}this.triggerTextComp.css({width:c,height:e});this.editComp.css({width:f,height:b});if(FR.Browser.isIE()){var d=b;if(FR.Browser.isIE8()){d-=4}this.editComp.css("line-height",d+"px")}this.btn.css({height:g.height});this.doResize4Triggerbtn(g);if(this.options.watermark){this.removeWaterMark();this.setWaterMark()}},doResize4Triggerbtn:function(d){var b=this.getArrowIconHeight();
var c=(this.btn.height()+this.fixbtnHeightValue()-b)/2;this.arrow.css("margin-top",c)},startEditing:function(){if(this.triggerTextComp){this.triggerTextComp.show()}if(this.editComp){this.editComp.focus()}this.editComp.select();FR.TriggerEditor.superclass.startEditing.apply(this,arguments)},stopEditing:function(){this.editComp.blur();if(this.triggerTextComp){this.triggerTextComp.hide()}FR.TriggerEditor.superclass.stopEditing.apply(this,arguments)}});FR.BaseDateTimeEditor=FR.extend(FR.TriggerEditor,{_defaultConfig:function(){return a.extend(FR.BaseDateTimeEditor.superclass._defaultConfig.apply(),{})
},_init:function(){FR.BaseDateTimeEditor.superclass._init.apply(this,arguments);if(this.options.value){this._dealValueWithEvents(this.options.value,false)}},getDefaultSupportFormat:function(){return["yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d","yyyy-MM-dd HH:mm:ss","yyyy-M-d HH:mm:ss","yyyy/MM/dd HH:mm:ss","yyyy/M/d HH:mm:ss"]},_dealValueWithEvents:function(f){if(FR.isEmpty(f)){this.reset();return}if(FR.isArray(f)){f=f.toString()}var h=f||"";var g=this.options.format;
if(h.date_milliseconds){h=new Date(h.date_milliseconds)}else{if(typeof f=="string"&&g){if(!this.options.customFormat){h=FR.matchDateFormat(f,g);if(h===false){var c=this.getDefaultSupportFormat();for(var e=0;e<c.length;e++){var b=FR.matchDateFormat(f,c[e]);if(b){h=b;break}}}}else{h=FR.str2Date(f,g)}}}if(h=="Invalid Date"||h=="NaN"||h===false){h=""}else{if(h instanceof Date){h=FR.date2Str(h,g);this.options.value=h}}this.setText(h);this.options.currentDateTime=h;var d=this.options.value;this.options.value=f;
if(arguments[1]!==false){this.fireEvent(FR.Events.CHANGE,f,d)}},setStartOrEndDate:function(c,b){if(!b){return}if(typeof b=="string"){b=b.replace(/-/g,"/")}if(!FR.isInvalidDate(new Date(b))){if(c=="startDate"){this.options.startDate=b;this.std=new Date(b)}else{if(c=="endDate"){this.options.endDate=b;this.edd=new Date(b)}}}},setStartDate:function(b){this.setStartOrEndDate("startDate",b)},setEndDate:function(b){this.setStartOrEndDate("endDate",b)},setText:function(b){this.editComp.val(b)},recoveryValue:function(){this.editComp.val(this.options.oldValue)
},isValidate:function(d){var c=this.options.allowBlank!==false;var i=this.options.format;var g=d!=null&&d!=undefined?d:this.getValue();if(d==null&&g==null&&this.editComp.val()){this.errorMsg=FR.i18nText("Fine-Engine_Value_Not_Match");return false}var f=this.options.regex;if(f){if(typeof f=="string"){f=new RegExp(f)}if(!f.test(g)){this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Error_Input_Value");return false}}if((!g)||(a.isArray(g)&&g.length===0)){if(c){return true}else{this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Not_NULL");
return false}}var e=this.options.returnDate?new Date(g):FR.matchDateFormat(g,i);if(i&&typeof g=="string"&&!this.options.customFormat){if(!e){this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Error_Input_Value");return false}}this.buildIfNeeded();var b=this.std;var h=this.edd;if(b&&new Date(e)<new Date(b)){this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Err_The_Number_Is_Less_Than_The_Minimum_Value")+FR.date2Str(b,i);return false}if(h&&new Date(e)>new Date(h)){this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Err_The_Number_Is_Larger_Than_The_Maximum_Value")+FR.date2Str(h,i);
return false}if(e>new Date("2999/12/31")||e<new Date("1900/01/01")){this.errorMsg=FR.i18nText("Fine-Engine_Report_Err_The_Time_Out_Of_Range");return false}return true},buildIfNeeded:function(){},reset:function(){this.setText("")}});FR.BaseComboBoxEditor=FR.extend(FR.TriggerEditor,{_defaultConfig:function(){return a.extend(FR.BaseComboBoxEditor.superclass._defaultConfig.apply(),{name4Empty:FR.i18nText("Fine-Engine_Choose_None"),searchTime:500,directEdit:true,customData:true})},_init:function(){FR.BaseComboBoxEditor.superclass._init.apply(this,arguments)
},initData:function(){FR.BaseComboBoxEditor.superclass.initData.apply(this,arguments);if(this.options.controlAttr){this.setSource(this.options.controlAttr);delete this.options.controlAttr}},setSource:function(c){if(c["data"]){var b=this.createDependencePara4Data();b.parameter.startIndex=0;b.parameter.limitIndex=this.options.limitData;this.options.data.setData(b,c["data"])}if(c["value"]!==undefined){if(this.editComp){this.setValue(c["value"],false)}}this.shouldReBuildList()},allPara:function(d,c){var b=this.createDependencePara4Data();
b.parameter.startIndex=d?d:0;b.parameter.limitIndex=c?c:this.options.limitData;if(this.searchText||this.searchText===0||this.searchText=="0"){b.parameter.dataFilter=this.searchText;b.parameter.limitIndex=0}return b},_getViewList:function(){},getText:function(){return this.editComp.val()},getItemsLength:function(){return this.options.data.getLength()},_onEnterPressed:function(){this._selectWithoutTriggerEvent();this.fireEvent(FR.Events.AFTEREDIT,this.selectedIndex<this.getItemsLength()?this._getSelectedItem().text():"")
},_selectWithoutTriggerEvent:function(){if((this.getItemsLength()>0)&&(this.selectedIndex<this.getItemsLength())){this.value=this.options.data.getRecord(this.selectedIndex).getValue();this.setText(this._getSelectedItem().text());this.inList=true}else{this.clearText();this.searchText="";this.options.need2BuildList=true}this.checkValid();this.collapse()},_findInList:function(h){var d=this;this.options.data.resetStatus(this.allPara(0,0));var c=this.options.data.getRecords();for(var f=0,b=c.length;f<b;
f++){var e={value:c[f].getValue(),text:c[f].getShowValue(),tarValue:h,matchFn:d.options.flexibleAttr?d.options.flexibleAttr.matchFn:undefined};if((h!==""&&FR.match(e))){this.inList=true;if(this.$view){this._setSelectedIndex(f)}return{text:c[f].getShowValue(),val:c[f].getValue()}}}if(this.options.data.options.dataSource){var j=this.options.data.options.dataSource;if(j._findShowValue){var g=j._findShowValue(h);if(g){this.inList=true;return g}return false}}this.inList=false;return false},setText:function(b){this.editComp.val(b)
},clearText:function(){this.editComp.val("")},_getSelectedItem:function(){return this.selectedItem},_getSelectedIndex:function(){return this.selectedIndex!=null?this.selectedIndex:-1},getSelectedIndex:function(){return this._getSelectedIndex()},_setSelectedIndex:function(b){if(this.selectedItem){this.selectedItem.removeClass("fr-combo-selected")}this.selectedItem=this.$view.children(".fr-combo-list-item:eq("+b+")");this.selectedIndex=b;if(b>=0){this.selectedItem.addClass("fr-combo-selected").__scroll2View__(this.$view,false)
}},setSelectedIndex:function(b){this._setSelectedIndex(b);this._onEnterPressed()},recoveryValue:function(){var b=this.options.oldValue;if(FR.isArray(b)){if(b.length===1){this.editComp.val(b[0])}else{if(b.length===0){this.editComp.val("")}}}else{this.editComp.val(b)}this.searchText="";this.shouldReBuildList()},shouldReBuildList:function(){this.options.need2BuildList=true},considerAllowBlankLength:function(){return this.getItemsLength()+(this.options.allowBlank===false?0:1)},isValidate:function(b){var c=b!=null?b:this.getValue();
if(!FR.BaseComboBoxEditor.superclass.isValidate.apply(this,[c])){return false}if(!this.options.customData){if((b!=null&&!this.isValueInList(c))||(b==null&&c===undefined)){this.errorMsg=FR.i18nText("Fine-Engine_Not_In_List");this.invalidateCss();return false}}return true},isValueInList:function(b){return false},validateEmptyValue:function(c){var b=this.options.allowBlank!==false;if(c===undefined){this.errorMsg=FR.i18nText("Fine-Engine_Not_In_List");return false}if(b){return true}else{this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Base_NOT_NULL_Des");
return false}},getValue:function(){if(this.manualEdited!==true&&this.value){return _.clone(this.value)}var j=this.getText();var h=null;var c=this.options.data.getLoadedRecords();var d=this._getSelectedIndex();if(d>-1&&d<c.length){h=this._getValue(c[d],j,d);if(h!=null){return h}}var g=this.options.data.options.dataSource;if(c.length===0){if(g._findShowValue){var f=g._findShowValue(j,false);if(f!=null){h=f.val;return h}}}else{for(var e=0,b=c.length;e<b;e++){h=this._getValue(c[e],j,e);if(h!=null){return h
}}}if(h==null&&g._findShowValue){h=g._findShowValue(j,false)}if(h!=null){return h.val}if(this.options.customData){return j}},_getValue:function(c,f,d){var b=c.getShowValue();var e;if(typeof b=="string"){b=a.trim(b)}if(b===f||b+""===f||c.getShowValue()===f){e=c.getValue();if(this.$view){this._setSelectedIndex(d)}}return e},setValue:function(b){if(!this.isValidate(b)){return false}if((b||b===0)&&this.options.watermark){this.clearWaterMark()}if(arguments[1]!=undefined){this._dealValueWithEvents(b,arguments[1])
}else{this._dealValueWithEvents(b)}},_dealValueWithEvents:function(c){var b=this.options.oldValue;if(c===""){this.editComp.val("");return}var e=c;var d=this._findInList(c);if(d!==false){this.value=d.val;e=d.text}else{if(this.options.customData){this.value=c}}if(e&&e.date_milliseconds){e=FR.date2Str(new Date(e.date_milliseconds),"yyyy-MM-dd");this.value=e}this.setText(e);if(arguments[1]!==false){this.fireEvent(FR.Events.CHANGE,c,b);this.fireEvent(FR.Events.AFTEREDIT)}},reset:function(){FR.BaseComboBoxEditor.superclass.reset.apply(this,arguments);
this.shouldReBuildList();delete this.searchText;delete this.emptyContent;if(this.options.linkAutoChoose){this.onTriggerClick();this._setSelectedIndex(0);this._selectWithoutTriggerEvent()}}})})(jQuery);
(function(a){FR.MultiFileEditor=FR.extend(FR.BaseEditor,{_defaultConfig:function(){return a.extend(FR.MultiFileEditor.superclass._defaultConfig.apply(),{width:120,height:20,render:true,showViewImage:true})},_init:function(){FR.$defaultImport("/com/fr/web/core/js/noswfupload.js","js");FR.$defaultImport("/com/fr/web/core/css/widget/noswfupload-icons.css","css");FR.MultiFileEditor.superclass._init.apply(this,arguments);var h=this.options;var d=this;this.$uploadForm=a('<form enctype="multipart/form-data"></form>').css("position","relative").appendTo(this.element);
this.divWrap=a("<div></div>").css({"width":this.options.width+"px","height":this.options.height+"px","position":"relative","overflow":"hidden"}).appendTo(this.$uploadForm);this.$fileupload=a('<input type="file" name="file"/>').addClass("fr-fileupload").appendTo(this.divWrap);if(h.maxlength!==1){this.$fileupload[0].setAttribute("multiple","multiple")}if(h.disabled){this.$fileupload[0].setAttribute("disabled","disabled")}if(h.render===true){var e=Math.min(this.options.height,this.options.width);var c=e>32?32:e-2;
var b=e>32?20:e*0.7;this.$previewImage=a("<img>").attr("src",FR.servletURL+"?op=resource&resource=/com/fr/web/images/file/upload.png").appendTo(this.divWrap).addClass("fr-fileupload-image").css({left:this.options.width>32?(this.options.width-32)/2:0,top:this.options.height>32?(this.options.height-32)/2:0,width:c,height:c});if(h.tooltipText){var g=a("<span/>").addClass("fr-fileupload-tooltipspan");this.tooltipDiv=a("<div/>").css({left:c+7+"px",height:c+"px"}).append(g.text(h.tooltipText)).addClass("fr-fileupload-tooltip").appendTo(this.$uploadForm)
}this.$preview=this.$previewImage;if(d.options.maxlength!==1){this.$previewCount=a('<div class="fr-fileupload-preview-count"/>').text(0).appendTo(this.divWrap).css({left:this.options.width>32?(this.options.width-32)/2+22:this.$previewImage.width()-10,top:this.options.height>32?(this.options.height-32)/2+8:0,width:b,height:b,"border-radius":b,"font-size":b*0.6})}}else{this.$preview=this.element}if(this.options.write){a(".fr-fileupload",d.element).css({"right":0,"font-size":d.element.height()<100?"100px":d.element.height()+"px","width":this.options.width,"height":this.options.height})
}this.wrap=noswfupload.wrap((this.$fileupload)[0],h.maxSize,h.maxlength,this.options.width,this.options.height);var f=this.wrap;f.onerror=function(){noswfupload.text(this.dom.info,"WARNING: Unable to upload "+this.file.fileName)};f.onloadstart=function(i,j){this.show(0,0);noswfupload.text(this.dom.info,"Preparing for upload ... ")};f.onprogress=function(i,j){this.show((this.sent+i.loaded)*100/this.total,i.loaded*100/i.total);noswfupload.text(this.dom.info,FR.i18nText("Fine-Engine_Basic_File_Uping_File")+":  "+this.file.fileName);
if(this.file.fileSize!==-1){if(i.simulation){noswfupload.text(this.dom.info,FR.i18nText("Fine-Engine_Basic_File_Uping_File")+":  "+this.file.fileName,FR.i18nText("Fine-Engine_Basic_File_All_File_Uploaded")+noswfupload.size(this.sent+i.loaded))}else{noswfupload.text(this.dom.info,FR.i18nText("Fine-Engine_Basic_File_Uping_File")+":  "+this.file.fileName,FR.i18nText("Fine-Engine_Basic_File_Uploaded_File")+"： "+noswfupload.size(i.loaded),FR.i18nText("Fine-Engine_Basic_File_All_File_Uploaded")+noswfupload.size(this.sent+i.loaded))
}}else{noswfupload.text(this.dom.info,"Uploading: "+this.file.fileName,"Sent: "+(this.sent/100)+" out of "+(this.total/100))}};f.onerror=function(){noswfupload.text(this.dom.info,"WARNING: Unable to upload "+this.file.fileName)};f.onload=function(k,m){var l=this;noswfupload.text(this.dom.info,"Upload complete");setTimeout(function(){l.clean();l.hide();noswfupload.text(l.dom.info,"");d.fireEvent(FR.Events.AFTEREDIT)},1000);var j="";_.each(d.wrap.attach_array,function(n){if(n.errorCode===21300002){j+=n.filename+" : "+FR.i18nText("Fine-Engine_Report_File_File_Too_Big")+f.maxSize+"KB; "
}else{if(n.errorCode===21300003){var o=f.fileType?(FR.i18nText("Fine-Dec_Invalid_File_Type_To_Upload")+f.fileType):FR.i18nText("Fine-Engine_Generic_Invalid_File_Type_Security");j+=n.filename+o+"; "}}});if(j){FR.Msg.toast(j)}var i=_.filter(d.wrap.attach_array,function(n){return n.errorCode===undefined});if(_.isEmpty(i)){d.wrap.attach_array=[];return}d.showViewList();d.fireEvent(FR.Events.CALLBACK,d.wrap.attach_array[0])};f.url=this.options.url?this.options.url:FR.servletURL+"?op=fr_attach&cmd=ah_upload";
f.url+=this.options.sessionID?"&sessionID="+this.options.sessionID:"";f.url+=((window.FS&&window.FS.serverID)?"&serverID="+window.FS.serverID:"");f.fileType=h.accept;f.attach_array=[];f.attach_names=[];f.attachNum=0;this._dealValueWithEvents(h.value)},_dealValueWithEvents:function(b){if(FR.equals(b,this.wrap.attach_array)||(this.wrap.attach_array.length===1&&FR.equals(this.wrap.attach_array[0],b))){return}if((a.isArray(b)&&b.length>0&&b[0].attach_id)||(b&&b.attach_id)){var e=a.isArray(b)?b:[b];this.wrap.attach_array=[];
for(var c=0;c<e.length;c++){this.wrap.attach_array.push(e[c]);var d={};this.wrap.files.push(d)}this.showViewList();this.wrap.files.length=0}if(b==""){this.reset()}},createListItem:function(d,e){if(d.errorCode){return null}var c=this;var b=a("<li></li>");var f;b.append(f=(a("<a class='fr-fileupload-progressCancel' href='#'> </a>")).click(function(g){c.removeAttach(d,b);g.stopEvent()}).hide()).append(a("<span class='fr-fileupload-fileNameItem'>"+c.wrap.attach_names[e]+" "+FR.__fileSizeFormat__(d.fileSize)+"</span>").bind("click",function(){var g=d.attach_id;
window.open(FR.servletURL+"?op=fr_attach&cmd=ah_download&id="+g)}).mouseover(function(){a(this).css({color:"blue"})}).mouseout(function(){a(this).css({color:""})})).addClass("fr-fileupload-listitem").mouseover(function(){f.show();a(this).css({"background-color":"#9FC5F8"})}).mouseout(function(){f.hide();a(this).css({"background-color":""})});c.wrap.attachNum++;if(c.wrap.maxlength!==1){c.$previewCount.text(c.wrap.attachNum)}return b},showViewList:function(){var s=this;var h;var t;if(!s.options.hideFileList){var r=a("ul",s.element);
if(r.length===0){var l=a("<div class='fr-fileupload-popview'/>").appendTo(s.element).css({marginTop:18-s.options.height/2,marginLeft:s.options.width/2+18});h=a("<div class='fr-fileupload-popview-list'/>").appendTo(l);t=a("<ul/>").addClass("fr-fileupload-list").appendTo(h)}else{h=r.parent();t=r}}var d=s.wrap;this.imageURL=null;if(s.options.maxlength===1){var g=this.options;var q=d.attach_array[0];this.removeBackground();if(q.attach_type=="image"){s.$tempPreview=a("<td></td>").appendTo(this.divWrap).css({left:s.element.outerWidth(true)-s.element.width(),width:g.width,height:g.height,top:0,position:"absolute"});
FR.lastTarget=s.$tempPreview;var f=a(s.$tempPreview);f.css("background","");var c=FR.servletURL+"?op=fr_attach&cmd=ah_image&id="+q.attach_id;f.css("background","url("+c+") 0 0 no-repeat transparent");this.imageURL=c;f.css("cursor","default").unbind("click",b)}d.attach_names[0]=q.filename;if(t){t.children().remove();t.append(this.createListItem(q,0))}}if(s.options.maxlength!==1){for(var p=d.attach_array.length-1,k=0;k<d.files.length;p--,k++){d.attach_names[p]=d.attach_array[p].filename;var e=0;for(var n=0;
n<d.attach_array.length-d.files.length;n++){if(d.attach_names[p]===d.attach_array[n].filename){e++}}if(e>0){d.attach_names[p]=FR.lengthenFileName(d.attach_array[p].filename,"("+e+")")}t&&t.append(this.createListItem(d.attach_array[p],p))}}s.wrap.attach_array=_.filter(s.wrap.attach_array,function(i){return i.errorCode===undefined});if(FR.Browser.isIE()&&h){if(h.height()>160){h.height(160);if(t.width()+18>h.width()){h.width(t.width()+18)}}}function b(i){window.open(FR.servletURL+"?op=fr_attach&cmd=ah_download&id="+i.data);
i.stopPropagation()}},removeAttach:function(e,c){var b=e.attach_id;var d=this;var f=this.wrap;FR.ajax({url:FR.servletURL+"?op=fr_attach&cmd=ah_release",data:{id:b},complete:function(h,g){if(g=="success"){if(c){c.remove()}d.imageURL=null;for(var i=0;i<f.attach_array.length;i++){if(f.attach_array[i].attach_id==b){if(d.wrap.maxlength!==1){f.attachNum--;d.$previewCount.text(d.wrap.attachNum);if(f.attachNum===0){a(".fr-fileupload-popview",d.element).remove()}}f.attach_array.removeWeakEqual(f.attach_array[i]);
break}}if(d.wrap.maxlength===1){a(".fr-fileupload-popview",d.element).remove();d.removeBackground()}d.fireEvent(FR.Events.CALLBACK)}}})},resetBackground:function(c){var b=c||this.imageURL;this.removeBackground();if(this.options.tdCell){this.options.tdCell.css("background","url("+b+"&height="+this.options.tdCell.height()+") 0 0 no-repeat transparent")}},removeBackground:function(){if(this.options.tdCell){this.options.tdCell.css("background-image","")}var b=this.divWrap.children().eq(2);b.css("background-image","");
b.remove()},startEditing:function(){if(this.options.tdCell){a(".attach-download-div,.fr-fileupload-download-all",a(this.options.tdCell)).hide()}this.$preview.show();if(this.options.disabled){this.$preview.unbind("click")}if(FR.Browser.isIE()&&!a.support.boxModel&&this.options.write){a(".x-editor").addClass("none-border")}FR.MultiFileEditor.superclass.startEditing.apply(this,arguments)},stopEditing:function(){if(this.options.tdCell){var c=a(".attach-download-div,.fr-fileupload-download-all",a(this.options.tdCell));
c.show()}if(FR.Browser.isIE()&&!a.support.boxModel&&this.options.write){a(".x-editor").removeClass("none-border")}if(this.imageURL!=null){var b=this;setTimeout(function(){b.resetBackground()},200)}},getValue:function(){if(!this.wrap.attach_array){return""}if(this.options.maxlength===1&&this.wrap.attach_array[0]&&this.wrap.attach_array[0].attach_type=="image"){return this.wrap.attach_array[0]}return this.wrap.attach_array.length===0?"":this.wrap.attach_array},setEnable:function(b){FR.MultiFileEditor.superclass.setEnable.apply(this,arguments);
if(this.$fileupload&&this.$fileupload[0]){if(b){this.$fileupload[0].removeAttribute("disabled")}else{this.$fileupload[0].setAttribute("disabled","disabled")}}},isShowViewImage:function(){return this.options.showViewImage&&this.options.maxlength===1},reset:function(){this.wrap.attach_array=[];this.wrap.attach_names=[];this.wrap.attachNum=0;if(this.options.tdCell){a(".attach-download-div",a(this.options.tdCell)).remove()}a(".fr-fileupload-popview",this.element).remove();this.removeBackground()}});a.shortcut("multifile",FR.MultiFileEditor)
})(jQuery);
(function(a){FR.TabPane=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.TabPane.superclass._defaultConfig.apply(),{baseCls:"fr-tabpane",width:"100%",height:"100%",active:0,tabPosition:"top",tabHeight:22,noControl:false,items:[],defaultActiveIndex:0})},_init:function(){FR.TabPane.superclass._init.apply(this,arguments);var d=this.options;this.element.css({width:d.width,height:d.height});var b=this._createConfig4TabPaneConfig();var e=new FR.BorderLayout(b);e.doLayout();this.wrapWidth=0;
this._initTabs();if(this.tabBtns[d.defaultActiveIndex]){this.tabBtns[d.defaultActiveIndex].setSelected()}this.isMoving=false;this.activeTabIndex=d.defaultActiveIndex;var c=this;this.tabsContent.parent().addClass(d.baseCls+"-tabscontent-bg");a(window).resize(function(){c.fireEvent(FR.Events.SCROLLCHANGE,c,c.activeTabIndex)})},_createConfig4TabPaneConfig:function(){var e=this.options;var d=e.tabPosition;var f=e.baseCls+"-content";this.tabPaneContent=a("<div></div>").addClass(f).addClass(f+"-"+d);var b=this._createConfig4TabControl();
var c={renderEl:this.element,items:[{region:"center",el:this.tabPaneContent},{height:e.tabHeight,region:d=="top"?"north":"south",el:b}]};return c},_createConfig4TabControl:function(){var d=this,e=this.options;this.tabsContent=a("<div/>").addClass(e.baseCls+"-tabscontent").addClass(e.baseCls+"-tabscontent-"+e.tabPosition);var c=[{region:"center",el:a("<div/>").append(this.tabsContent)}];if(!this.options.noControl){c.unshift({region:"west",el:{type:"horizontal",widgetName:"controlbuttons",baseCls:"fr-tabpane-controlbuttons",alignment:"center",hgap:3,vgap:2,items:[{el:this._createTabControlBtn("arrow1",function(){if(d.isMoving){return
}d._moveViewToPos("start")}),width:13},{el:this._createTabControlBtn("arrow2",function(){if(d.isMoving){return}var g=d.stepDis;var f=d.tabsContent.offset().left-d.tabsWrap.offset().left;g=Math.min(g,f);d._moveViewToPos(g)}),width:13},{el:this._createTabControlBtn("arrow3",function(){if(d.isMoving){return}var g=d.stepDis;var f=d.tabsWrap.offset().left+d.wrapWidth-d.tabsContent.offset().left-d.tabsContent.width();g=Math.min(g,f);g=g<0?0:g;d._moveViewToPos(-g)}),width:13},{el:this._createTabControlBtn("arrow4",function(){if(d.isMoving){return
}d._moveViewToPos("end")}),width:13}]},width:72})}var b={type:"border",items:c};return b},_createTabControlBtn:function(c,d){var b=new FR.IconButton({type:"iconbutton",baseClass:"fr-edit-sheetcontrol-icon-box",handler:d});a("<div>").addClass("fr-edit-sheetcontrol-icon-"+c).appendTo(b.element);return b.element},_initTabs:function(){var c=this.options;this.tabBtns=[];this.tabsWrap=a("<ul/>").addClass(c.baseCls+"-tabswrap").appendTo(this.tabsContent);if(!c.items){return}if(!c.tabs){c.tabs=[]}for(var b=0;
b<c.items.length;b++){this._addTabContent(c.items[b]);this._addTabTag(b,c.items[b])}},_addTabContent:function(e){var b=this.options.tabs;if(e.tabContent){var f=FR.createWidget(e.tabContent);f.element.appendTo(this.tabPaneContent);e.content=f.element}else{var d=a("<div/>").addClass("html-content").appendTo(this.tabPaneContent);var g=this.options.tabBackground;if(g.background!==null&&g.background!==undefined){if(FR.Browser.isIE8Before()){d.css("background",g.background+" fixed");if(g.filter!==undefined){d.css("filter",g.filter)
}}else{d.css("background",g.background);var c=g["background-size"];if(c!==undefined){d.css("background-size",c)}}}e.content=d}e.content.hide();b.push(e)},_addTabTag:function(f,g){var d=this,c=this.options.items;var e={tabPane:this,name:g.title,index:f,isFirst:f===0,isLast:f===c.length-1,renderEl:a("<li/>").appendTo(this.tabsWrap),tabBtns:this.tabBtns,handler:function(){if(d.activeTabIndex>=0){d.options.tabs[d.activeTabIndex].content.hide()}d.activeTabIndex=f;if(d.options.tabs[f].content){d.options.tabs[f].content.show()
}d.showSheetContent(d.activeTabIndex);d._moveViewToShow(d.activeTabIndex)}};var b=new FR.SheetButton(e);this.tabBtns.push(b);this.wrapWidth+=b.getWidth();this.stepDis=this.wrapWidth/this.tabBtns.length},_moveViewToShow:function(d){var c=this.tabBtns[d].element;var j=this.tabsWrap;var b=this.tabsContent;var g=b.offset().left;var m=g+b.width();var l=j.offset().left;var f=l+this.wrapWidth;var k=c.offset().left;var i=k+c.width();var e=c.width();var h=0;if(k<g){h=g-l;h=Math.min(h,e)}else{if(i>m){h=m-f;
h=Math.max(h,-e)}else{return}}this._moveViewToPos(h)},_moveViewToPos:function(d){var b=this;this.isMoving=true;if(d=="start"){this.tabsWrap.animate({"left":"0"},"fast",function(){b.isMoving=false})}else{if(d=="end"){var c=this.tabsContent.width()-this.wrapWidth;if(c>0){c=0}this.tabsWrap.animate({"left":c},"fast",function(){b.isMoving=false})}else{this.tabsWrap.animate({"left":"+="+d},"fast",function(){b.isMoving=false})}}},showSheetContent:function(b){this.fireEvent(FR.Events.TABCHANGESTART,this,b);
this.fireEvent(FR.Events.TABCHANGE,this,b);this.fireEvent(FR.Events.SCROLLCHANGE,this,b)},doResize:function(b){this.element.css({width:b.width,height:b.height})},selectTabAt:function(b){if(b>=0){this.tabBtns[b].setSelected();return true}return false},selectTabByName:function(c){var b=this;if(c){a.each(this.options.tabs,function(d,e){if(e.title===c){b.tabBtns[d].setSelected()}});return true}return false},getTabByIndex:function(b){if(b>=0){return this.options.tabs[b]}return{}},getTabByName:function(b){if(!FR.isEmpty(b)){for(var c=0;
c<this.tabBtns.length;c++){if(this.tabBtns[c].options.name===b){return this.options.tabs[c]}}}return{}},switchTabByName:function(b){if(FR.isEmpty(b)){return false}for(var c=0;c<this.tabBtns.length;c++){if(this.tabBtns[c].options.name===b){return this.selectTabAt(c)}}return false},getSelectedIndex:function(){return this.activeTabIndex}});a.shortcut("tabpane",FR.TabPane);FR.SheetButton=FR.extend(FR.Widget,{_defaultConfig:function(){return a.extend(FR.SheetButton.superclass._defaultConfig.apply(),{tabPane:null,tabBtns:[],isFirst:false,isLast:false,index:0,minWidth:60,handler:null,disabled:false,name:"",containerCls4btn:"fr-sheetbutton-container",intersectCls4btn:"fr-sheetbutton-intersect",firstPartCls4btn:"fr-sheetbutton-firstpart",middlePartCls4btn:"fr-sheetbutton-middlepart",thirdPartCls4btn:"fr-sheetbutton-thirdpart",endPartCls4btn:"fr-sheetbutton-endpart",button_class_prefix:"fr-sheet-icon-",button_closebtn_class:"fr-sheetbutton-closebutton"})
},_init:function(){FR.SheetButton.superclass._init.apply(this,arguments);var d=this.options,b=this;var c=d.tabPane.options.tabPosition;if(c=="top"){d.firstPartCls4btn+="-"+c;d.middlePartCls4btn+="-"+c;d.thirdPartCls4btn+="-"+c;d.endPartCls4btn+="-"+c}this.element.addClass(d.containerCls4btn).attr("title",d.name);this._createTabBtnByName(d.name);if(a.isFunction(d.handler)){this.on(FR.Events.CLICK,d.handler.createDelegate(d.scope||this))}this.element.click(function(){if(b.isEnabled()){b.setSelected()
}});this.width=this.element.width();this.fireEvent(FR.Events.AFTERINIT)},_createTabBtnByName:function(c){var d=this.options;var b=this.element;if(this.options.isFirst){b.head=a("<span/>").addClass(d.firstPartCls4btn).appendTo(b)}b.middle=a("<span/>").addClass(d.middlePartCls4btn).text(c).appendTo(b);if(b.middle.width()<d.minWidth){b.middle.width(d.minWidth)}if(!d.isLast){b.end=a("<span/>").addClass(d.thirdPartCls4btn).appendTo(b)}else{b.end=a("<span/>").addClass(d.endPartCls4btn).appendTo(b)}},reload:function(c){var b=this.element;
if(b){b.attr("title",c);if(b.middle){b.middle.text(c);b.middle.width("auto");if(b.middle.width()<this.options.minWidth){b.middle.width(this.options.minWidth)}}}},getWidth:function(){return this.width},setSelected:function(){var c=this.options;if(this.isActive()){return}this.setActiveState(true);var b=c.tabPane.activeTabIndex;if(b>=0&&b!==c.index){c.tabBtns[b].setActiveState(false)}this.fireEvent(FR.Events.CLICK)},setActiveState:function(b){var c=this.options;this.isActiveState=b;if(b){this.element.addClass(c.containerCls4btn+"-active");
if(!c.isFirst){c.tabBtns[c.index-1].element.addClass(c.intersectCls4btn)}}else{this.element.removeClass(c.containerCls4btn+"-active");if(!c.isFirst){c.tabBtns[c.index-1].element.removeClass(c.intersectCls4btn)}}},setValidState:function(f){var b=this.element,d=this.options;var c=d.index;if(!f){if(d.isFirst){b.head.switchClass(d.firstPartCls4btn+"-invalidate")}else{var e=d.tabPane.tabBtns[c-1];if(e.isValid()){e.element.end.switchClass(d.thirdPartCls4btn+"-invalidate-style3")}else{e.element.end.switchClass(d.thirdPartCls4btn+"-invalidate-style2")
}}b.middle.switchClass(d.middlePartCls4btn+"-invalidate");if(d.isLast){b.end.switchClass(d.endPartCls4btn+"-invalidate")}else{if(d.tabPane.tabBtns[c+1].isValid()){b.end.switchClass(d.thirdPartCls4btn+"-invalidate")}else{if(d.tabPane.tabBtns[c-1].isValid()){b.end.switchClass(d.thirdPartCls4btn+"-invalidate-style2")}}}}else{if(d.isFirst){b.head.switchClass(d.firstPartCls4btn)}else{var e=d.tabPane.tabBtns[c-1];if(e.isValid()){e.element.end.switchClass(d.thirdPartCls4btn)}else{e.element.end.switchClass(d.thirdPartCls4btn+"-invalidate")
}}b.middle.switchClass(d.middlePartCls4btn);if(d.isLast){b.end.switchClass(d.endPartCls4btn)}else{if(d.tabPane.tabBtns[c+1].isValid()){b.end.switchClass(d.thirdPartCls4btn)}else{b.end.switchClass(d.thirdPartCls4btn+"-invalidate-style3")}}}this.isValidState=f},isValid:function(){return this.isValidState!==false},isActive:function(){return this.isActiveState===true},destroy:function(){this.element.empty()}});a.shortcut("sheetbutton",FR.SheetButton)})(jQuery);
(function(a){FR.Elementcase=FR.extend(FR.BaseEditor,{_init:function(){this.widthScale=1;this.heightScale=1;this.oldWindowWidth=FR.windowWidth;this.oldWindowHeight=FR.windowHeight;this.needFrontFit=true;FR.Elementcase.superclass._init.apply(this,arguments);this.$toolbar=a("<div class='x-toolbar' style='height:28px'></div>");this.$inner=a("<div class='reportContent'></div>");this.$inner.css("overflow","auto");this.totalPage=-1;this.currentPage=1;this.toolBars=[];var b=this;this.initPane();this.gotoPage(1);
this._init4Style()},_init4Style:function(){this._init4Margin()},_init4Margin:function(){var b=a(".reportContent",this.element);if(!b){return}var c=this.options.border;if(c){b.css("border-style",c.type);b.css("border-color",c.color);b.css("border-width",c.width);b.css("border-radius",c.borderRadius);this.borderWidth=(this.borderWidth||0)+parseInt(c.width*2)}if(this.options.marginTop){b.css("marginTop",this.options.marginTop);this.marginHeight=(this.marginHeight||0)+parseInt(this.options.marginTop)
}if(this.options.marginLeft){b.css("marginLeft",this.options.marginLeft);this.marginWidth=(this.marginWidth||0)+parseInt(this.options.marginLeft)}if(this.options.marginBottom){b.css("marginBottom",this.options.marginBottom);this.marginHeight=(this.marginHeight||0)+parseInt(this.options.marginBottom)}if(this.options.marginRight){b.css("marginRight",this.options.marginRight);this.marginWidth=(this.marginWidth||0)+parseInt(this.options.marginRight)}if(!this.options.widgetBackground){return}var d=this.options.widgetOpacity;
if(d===undefined){FR.setBackground(this.element,this.options.widgetBackground,b.height());return}this.$background=a("<div class='widgetBackground'></div>");this.$background.css("filter","alpha(opacity="+d*100+")");this.$background.css("opacity",d);FR.setBackground(this.$background,this.options.widgetBackground,b.height())},gotoPage:function(g,c,b,e,h,f){this.fireEvent(FR.Events.STARTLOAD);var d=this;FR.ajax({url:FR.servletURL,type:"POST",data:{op:"fr_form",cmd:"load_report_content",sessionID:this.options.form.sessionID,widgetName:this.options.widgetName,__parameters__:c,noCache:b||"",pageIndex:g,_:new Date().getTime(),__boxModel__:a.support.boxModel,reload:h,_PAPERWIDTH:d.widthScale===1?FR.windowWidth:d.oldWindowWidth,_PAPERHEIGHT:d.heightScale===1?FR.windowHeight:d.oldWindowHeight,_SHOWPARA:a(".parameter-container-collapseimg-down").length===0,_SHOWPARATEMPLATE:a("[widgetName=paramsTemplate]").length!==0},beforeSend:function(){FR.HtmlLoader.loadingEffect({el:d.$inner,show:f?false:true,fixed:false,loadingType:"local"})
},async:true,complete:function(l,j){if(j=="success"){var k=FR.jsonDecode(l.responseText);if(k.length===0){d.$inner.html(l.responseText);return}d.totalPage=k["totalPage"]?k["totalPage"]:1;d.currentPage=k["currentPage"]?k["currentPage"]:1;if(d.toolBars.length>0){d.changeToolBarState()}if(d.$inner&&d.$inner.children()){d.$inner.children().remove()}d.$inner[0].innerHTML=k["htmlTag"];if(FR.Report.Plugin.ScrollProcessor.item&&FR.Plugin.validLevel(FR.Report.Plugin.ScrollProcessor,FR.Report.Plugin.ScrollProcessor.item)){if(a(".frozen-page").length>0){FR.Report.Plugin.ScrollProcessor.item.action.call(this,a(".frozen-north",d.$inner),"y");
FR.Report.Plugin.ScrollProcessor.item.action.call(this,a(".frozen-center",d.$inner),"both");FR.Report.Plugin.ScrollProcessor.item.action.call(this,a(".frozen-west",d.$inner),"x")}}d.$inner.asComponent({type:"fr_form",selector:"td[widget],div[widget][heavytd='light']"});d.changeColWidth();d.changeHeight();a(".x-table",d.$inner).css("overflow","visible");var o=a(".frozen-page",d.$inner).length>0?"hidden":"auto";if(FR.Report.Plugin.ScrollProcessor.item&&FR.Plugin.validLevel(FR.Report.Plugin.ScrollProcessor,FR.Report.Plugin.ScrollProcessor.item)&&o==="auto"){o="hidden";
var n=a(".pageContentDIV",d.$inner);FR.Report.Plugin.ScrollProcessor.item.action.call(this,n,"both");n.css("position","absolute")}var m=FR.Report.Plugin.AnimateProcessor;var i=c&&c.animateType==="increment";if(!i&&m.item&&FR.Plugin.validLevel(m,m.item)){m.item.action.call(d,d.$inner)}FR.HtmlLoader.loadingEffect({el:d.$inner,show:false,overflow:o});if(d.$background){d.$background.prependTo(d.element)}if(d.widthScale===1){d.$inner.data("preHeight",d.$inner.height())}if(d.heightScale===1){d.$inner.data("preWidth",d.$inner.width())
}d.doAfterLoading();d.recorderFitInfo()}}})},recorderFitInfo:function(){var c=this.options.form;if(c&&!c.options.allowRecordFitInfo){return}try{var g=function(e){var i=e[0].clientWidth<e[0].scrollWidth;var h=e[0].clientHeight<e[0].scrollHeight;return"{"+(i?1:0)+","+(h?1:0)+"}"};var b=function(h){var e=h.css("transform").replace(/[^0-9\-,.]/g,"").split(",");return"{"+e[0]+","+e[3]+"}"};var f={reportName:this.options.widgetName,reportScrollBar:g(this.$inner),transform:b(a(".page-block",this.$inner)),reportWidth:a(".page-block",this.$inner).width(),reportHeight:a(".page-block",this.$inner).height()};
this.options.form.fireEvent(FR.Events.ADAPTRECORD,f);return f}catch(d){}},formHyperlink:function(){if(arguments.length===0){return}var b=arguments[0].para;b.animateType=arguments[0].animateType;this.gotoPage(1,b,"lazy")},doAfterLoading:function(){var b=a(".x-table",this.$inner);var d=a(".frozen-page",this.$inner);if(d.length===0){var c=0;if(this.isVisible()){c=b.height()}else{a("tr",this.$inner).each(function(){c+=a(this).height()})}if(this.$inner.width()>=b.width()&&this.$inner.height()>=c&&d.length===0){this.$inner.css({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})
}else{if(this.$inner.width()>=b.width()&&this.$inner.height()<c&&d.length===0){this.$inner.css({overflowX:"hidden",overflowY:"auto"})}else{if(d.length===0){this.$inner.css({overflow:"auto",overflowX:"auto",overflowY:"auto"})}}}}var f=a(".page-block",this.$inner);var e={x:this.widthScale,y:this.heightScale};this.zoomContent(f,e)},getFitState:function(){var b=this.options.form;return b.options.__FITSTATE__},gotoFirstPage:function(c,b,d){if(this.currentPage>1){this.gotoPage(1,c,b,d);this.currentPage=1
}},gotoPreviousPage:function(c,b,d){if(this.currentPage-1>0){this.gotoPage(this.currentPage-1,c,b,d);this.currentPage--}},gotoNextPage:function(c,b,d){if(this.currentPage+1<=this.totalPage){this.gotoPage(this.currentPage+1,c,b,d);this.currentPage++}},gotoLastPage:function(c,b,d){if(this.currentPage<this.totalPage){this.gotoPage(this.totalPage,c,b,d);this.currentPage=this.totalPage}},isFit:function(){var b=this.options.form;return b.options&&b.options.__FIT__},changeHeight:function(){var d=a(".frozen-page",this.$inner);
if(d.length>0){var h=a(".page-block",this.$inner);var g=a(".frozen-west",d);var f=a(".frozen-north",d);var c=a(".frozen-center",d);var i=FR.toolbarHeight*this.toolBars.length;var e=this.options.height-i-(this.marginHeight||0)-(this.borderWidth||0);var b=0;a("tr",f).each(function(){b+=a(this).height()});c.height(e-b);g.height(e-b);h.height(e+"px");c.scroll(function(){f.scrollLeft(c.scrollLeft());g.scrollTop(c.scrollTop())}.createDelegate(this))}if(this.$background){this.$background.css("height",this.options.height);
this.$background.css("margin-bottom",-this.options.height)}},changeColWidth:function(){var c=a(".frozen-page",this.$inner);var g=a(".page-block",this.$inner);if(c.length>0){this.doForzen(c,g)}else{var f=this.options.widgetName;var h=a("."+f+"col");var e=a("."+f+"table");var d=e.height()>this.options.height?this.options.width-20:this.options.width-2;var b={array:h,table:e,width:d-(this.marginWidth||0)-(this.borderWidth||0)};if(!this.isFit()){this.changeTableW(b)}g.width(e.width())}if(this.$background){this.$background.css("width",this.options.width)
}},doForzen:function(g,b){this.$inner.css("overflow","hidden");var k=g.width();var e=a(".frozen-corner",g);var i=a(".frozen-west",g);var c=a(".frozen-north",g);var h=a(".frozen-center",g);var j={cornerTable:a(".x-table",e),westTable:a(".x-table",i),northTable:a(".x-table",c),centerTable:a(".x-table",h)};if(!this.isFit()){this.changeFrozenTable(j,k)}var d=j.westTable.width();var f=this.options.width-d-(this.marginWidth||0)-(this.borderWidth||0);d=parseInt(d)+"px";f=parseInt(f)+"px";e.width(d);i.width(d);
h.width(f);c.width(f)},changeFrozenTable:function(n,q){var g=n.cornerTable;var d=n.westTable;var k=n.northTable;var p=n.centerTable;var s=(d.width()/q)*this.options.width;var i=20;var b=this.options.width-s-i-(this.marginWidth||0)-(this.borderWidth||0);var e=a("col",g);var o=a("col",d);var c=a("col",k);var r=a("col",p);var f=this.getCornerStartColumn(r,c);var m={array:e,table:g,width:s,start:0};var j={array:o,table:d,width:s,start:0};var h={array:c,table:k,width:b,start:f};var l={array:r,table:p,width:b,start:f};
this.changeTableW(m);this.changeTableW(j);this.changeTableW(h);this.changeTableW(l)},getCornerStartColumn:function(c,b){if(c.length>0){return parseInt(a(c[0]).attr("col"))}return Math.max(c.length,b.length)},changeTableW:function(e){var m=e.array;var o=e.table;var l=e.width;if(m.length===0||o.length===0){return}var g=this.getMinWidths(m);var f=0;for(var k=0;k<g.length;k++){f+=g[k]}if(f>l){l=f}var n=this.getCurrentWidths(m);var c=0;for(var k=0;k<n.length;k++){c+=n[k]}var j=this.calculatorNewWidths(g,n,l,c);
for(var k=0;k<m.length;k++){var b=a(m[k]);var h=j[k];if(h<0){continue}b[0].style.width=h+"px";var d=parseInt(b.attr("col"));this.calCellFrozenTableWidth(d,e.start,o,h-5)}o[0].style.width=l+"px"},calculatorNewWidths:function(f,m,h,c){var k=[];var j=h;while(true){var e=h/c;var d=false;for(var g=0;g<f.length;g++){if(k[g]===undefined){var b=parseInt(e*m[g]);if(b<=f[g]){k[g]=f[g];h-=k[g];c-=k[g];d=true}}}if(!d){for(var g=0;g<f.length;g++){if(k[g]===undefined){var b=parseInt(e*m[g]);k[g]=b}}break}}var l=0;
for(var g=0;g<f.length;g++){l+=k[g]}k[k.length-1]=k[k.length-1]+j-l;return k},getCurrentWidths:function(d){var c=[];for(var b=0;b<d.length;b++){c[b]=parseInt(a(d[b]).attr("c-w"))}return c},getMinWidths:function(d){var c=[];for(var b=0;b<d.length;b++){c[b]=parseInt(a(d[b]).css("min-width"))}return c},calCellFrozenTableWidth:function(d,c,m,g){if(parseInt(c)>=0){var e="table.col"+d;var b="td.col"+d;var l=a(e,m);var j=a(b,m);var k=g+"px";for(var f=0,h=l.length;f<h;f++){l[f].style.width=k}for(var f=0,h=j.length;
f<h;f++){j[f].style.width=k}}},changeToolBarState:function(){var b=this;a.each(this.toolBars,function(c,g){b.pageButtonAfterLoadEvent(g.getWidgetByName("First"),Boolean(b.currentPage>1));b.pageButtonAfterLoadEvent(g.getWidgetByName("Previous"),Boolean(b.currentPage>1));b.pageButtonAfterLoadEvent(g.getWidgetByName("Next"),Boolean(b.currentPage<b.totalPage));b.pageButtonAfterLoadEvent(g.getWidgetByName("Last"),Boolean(b.currentPage<b.totalPage));b.pagenaviAfterLoadEvent(g.getWidgetByName("PageNavi"));
var d=["First","Previous","Next","Last","PageNavi"];var f=g.getWidgetsExcludeNames(d);for(var e=0;e<f.length;e++){b.otherButtonAfterLoadEvent(f[e])}})},pageButtonAfterLoadEvent:function(c,b){if(c){c.setEnable(b)}},pagenaviAfterLoadEvent:function(e){if(e){var c=this;var b=e.getWidgetByName("PageNumberEditor");b.editComp.attr("disabled",false);b.editComp.parent().parent().css("position","relative");b.setValue(c.currentPage);var d=e.getWidgetByName("PageNumberLabel");if(c.totalPage>0){d.setValue("/"+c.totalPage)
}else{d.setValue("/")}}},otherButtonAfterLoadEvent:function(b){if(b){b.setEnable(true)}},initPane:function(){var c=this;var b=[];var d=c.options.toolBars;if(d.length>0){a.each(d,function(g,h){var f=a.extend(h.toolbarConf,{disabled:false});a.each(f.items,function(k,n){n.ECWidgetName=c.options.widgetName;if(n.widgetName==="PageNavi"){n.innerWidget.items[0].el.ECWidgetName=c.options.widgetName;n.innerWidget.items[1].el.ECWidgetName=c.options.widgetName}if(n.widgetName==="Export"){for(var m=0;m<n.menu.length;
m++){var o=n.menu[m];o.ECWidgetName=c.options.widgetName;for(var l=0;l<o.submenu.length;l++){o.submenu[l].ECWidgetName=c.options.widgetName}}}});var i=FR.createWidget(a.extend({type:"toolbar"},f));if(h.position==="north"){i.element.addClass("fs-tab-content-top-toolbar")}b.push({region:h.position,el:i.element});c.toolBars.push(i)})}b.push({region:"center",el:c.$inner});var e=new FR.BorderLayout({items:b,renderEl:c.element});e.doLayout();a(window).resize(function(){e.doLayout()});this.on(FR.Events.STARTLOAD,function(){FR.Chart.WebUtils.clearChartsWithECName(this.options.widgetName)
})},doResize:function(g){if(!FR.Browser.isIE8Before()&&this.options.border){this.element.parent().css("box-shadow",this.options.border.borderStyle)}var e=a(".page-block",this.$inner);var b=a(".frozen-page",this.$inner);var d=false;var f=false;if(g&&g.width>0&&g.width!==this.options.width){this.options.width=g.width;d=true}if(g&&g.height>0&&g.height!==this.options.height){this.options.height=g.height;f=true}if(!this.needFrontFit){this.needFrontFit=true;return}if(e.length===0||FR.Browser.isIE8Before()){if(d){this.changeColWidth()
}if(f){this.changeHeight()}}else{if(e.length>0&&this.$inner.data("preWidth")){if(g&&g.width>0&&g.height>0&&this.$background){this.$background.css("width",g.width);this.$background.css("height",g.height);this.$background.css("margin-bottom",-this.options.height)}var c=this;setTimeout(function(){var h=a(".x-table",c.$inner);var i=18;c.widthScale=parseFloat(c.$inner.width()/c.$inner.data("preWidth"));c.heightScale=parseFloat(c.$inner.height()/c.$inner.data("preHeight"));if(c.getFitState()===1){c.heightScale=c.widthScale
}if(c.isFit()&&c.$inner.width()-h.width()<i){if(c.$inner.width()>=h.width()*c.widthScale&&c.$inner.height()<h.height()*c.heightScale&&b.length===0){c.widthScale=parseFloat((c.$inner.width()-i)/c.$inner.data("preWidth"));c.$inner.css({overflowX:"hidden",overflowY:"auto"})}else{if(c.$inner.width()>=h.width()*c.widthScale&&c.$inner.height()>=h.height()*c.heightScale&&b.length===0){c.$inner.css({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})}else{if(b.length===0){c.$inner.css({overflow:"auto",overflowX:"auto",overflowY:"auto"})
}}}}var j={x:c.widthScale,y:c.heightScale};c.zoomContent(e,j)},100)}}},zoomContent:function(b,d){var c=a(".frozen-page",this.$inner);if(c.length>0){d.y=1}if(this.$inner){if(FR.Browser.r.gecko){b.css("-moz-transform","scale("+d.x+","+d.y+")");b.css("-moz-transform-origin","top left")}else{if(FR.Browser.r.webkit){b.css("-webkit-transform","scale("+d.x+","+d.y+")");b.css("-webkit-transform-origin","top left")}else{if(FR.Browser.r.opera){b.css("-o-transform","scale("+d.x+","+d.y+")");b.css("-o-transform-origin","top left")
}else{if(FR.Browser.isIE9Later()){b.css("-ms-transform","scale("+d.x+","+d.y+")");b.css("-ms-transform-origin","top left")}}}}}},reload:function(){this.needFrontFit=false;if(this.isFit()){this.gotoPage(this.currentPage,{},false,false,true)}},exportReportToExcel:function(d){if(this.fireEvent(FR.Events.BTOEXCEL)===false){return}var c="&_PAPERWIDTH="+FR.windowWidth+"&_PAPERHEIGHT="+FR.windowHeight+"&_SHOWPARA="+(a(".parameter-container-collapseimg-down").length===0)+"&_SHOWPARATEMPLATE="+(a("[widgetName=paramsTemplate]").length!==0);
var b=FR.servletURL+"?op=ec_export&sessionID="+this.options.form.sessionID+"&widgetName="+encodeURIComponent(this.options.widgetName)+"&format=excel&extype="+d+c;this.downloadExportFile(b,"excel");this.fireEvent(FR.Events.ATOEXCEL)},downloadExportFile:function(b,c){if(FR.Report.Plugin.XHR2FileSaveProcessor.item&&FR.Plugin.validLevel(FR.Report.Plugin.XHR2FileSaveProcessor,FR.Report.Plugin.XHR2FileSaveProcessor.item)){FR.Report.Plugin.XHR2FileSaveProcessor.item.action.call(this,b,c);return}FR.openUrlByForm(b);
FR.progressBar.call(this,this.currentSessionID,c)}});a.shortcut("elementcase",FR.Elementcase)})(jQuery);
(function(a){FR.ComboBoxEditor=FR.extend(FR.BaseComboBoxEditor,{_defaultConfig:function(){return a.extend(FR.ComboBoxEditor.superclass._defaultConfig.apply(),{name4Empty:FR.i18nText("Fine-Engine_Basic_Choose_None"),maxCount:10,sonHeight:18,value:"",limitData:500,autoFixWidth:true})},_init:function(){FR.ComboBoxEditor.superclass._init.apply(this,arguments);this._dealSearch();var c=this.options;this.scrollBarWidth=20;if(!this.$view){this.$view=a("<div/>").height(20).appendTo(FR.$view_container)}this.$view.hide();
this.shouldReBuildList();if(this.options.data&&this.options.data.isLocalSource()){if(this.options.dependence){this.options.data.resetStatus(this.allPara.apply(this,arguments))}var b=this.options.data.getRecords();this._setItems(b);this.checkViewScroll(b);this.options.need2BuildList=false;this.options.need2FixWidth=true}FR.applyStyles(this.editComp,c.style)},_dealSearch:function(){var b=this,c=this.options;if(this.options.widgetUrl){this.options.searchData=new FR.AjaxSearchData({url:this.options.widgetUrl});
this.editComp.keyup(function(d){if(!b.options.directEdit){return}if(b.options.offset==undefined){b.options.offset={"left":b.editComp.offset().left,"top":b.editComp.offset().top}}if(!FR.isNavKeyPress(d)){setTimeout(function(){if(b.searchText==b.editComp.val()&&d.keyCode!=FR.keyCode.BACKSPACE){if(!b.isExpanded()){b.expand()}return}b.edited=true;if(b.searchCancel!==true){b.searchText=b.editComp.val();b._doBeforeSearch();b.inList=false;b._ajaxSearch();b.fireEvent(FR.Events.AFTEREDIT);b.searchCancel=false
}else{b.searchCancel=undefined}},c.searchTime)}})}},_ajaxSearch:_.debounce(function(){this.embellishView();this.$view.empty();this.$view.height(30);FR.HtmlLoader.loadingMoreData({el:this.$view,show:true});this.modifyPosition();this.$view.show();var b=this.allPara.apply(this,arguments);this.options.searchData.resetStatus(b);var c=this;var d=c.lastAjaxSearchTimes?(c.lastAjaxSearchTimes+1):1;c.lastAjaxSearchTimes=d;this.options.searchData.loadObject(function(e){if(d<c.lastAjaxSearchTimes){return}c.options.data.setData(b,e);
c.checkViewScroll(c.options.data.getData());c._setItems(c.options.data.getData());FR.HtmlLoader.loadingMoreData({el:c.$view});c.$view.hide();c.options.need2BuildList=false;c._createVieList();c.__makeSureInputValueInResList();if(c.options.data.getData().length>0){c.setFocusWithIndex(0)}})},600),_canCancelSearch:function(){return true},__makeSureInputValueInResList:function(){var c=this;var b=c._getViewList();if(b.length!==0){if(c.searchText==""){c.inList=undefined}else{for(var d=0;d<b.length;d++){if(b.eq(d).text()==c.searchText){c.inList=true;
break}c.inList=false}}}else{c.inList=false}if(c.inList===false&&!c.options.customData){this.errorMsg=FR.i18nText("Fine-Engine_Report_Basic_Not_In_List");FR.Msg.toast(this.errorMsg);this.invalidateCss()}else{this.validateCss()}},isValueInList:function(b){if(FR.isEmpty(b.toString())){return true}return this._checkValueInResList(b)},_checkValueInResList:function(f){var b=f||this.editComp.val();var g=this.options.data.options.dataSource;if(g._findShowValue){var e=g._findShowValue(b,false);this.inList=e!=null
}else{var c=this._getViewList();this.inList=false;if(c.length!==0){for(var d=0;d<c.length;d++){if(c.eq(d).text()==b){this.inList=true;break}}}}if(this.inList===false){this.errorMsg=FR.i18nText("Fine-Engine_Report_Basic_Not_In_List");return false}else{return true}},_doBeforeSearch:function(){},rebuild:function(b){this.options.data=null;this.options.widgetUrl=null;this.element.empty();this.$view.empty();this.options.items=b;this.options.need2BuildList=true;if(b.widgetUrl){this.options.widgetUrl=b.widgetUrl
}this._init()},_getViewList:function(){return this.$view.children(".fr-combo-list-item")},setFocusWithIndex:function(b){a(".fr-combo-list-item",this.$view).removeClass("fr-combo-selected");this.focusIndex=b;a(".fr-combo-list-item",this.$view).eq(b).addClass("fr-combo-selected")},getData:function(){var h=this.getText();var g=h,d=this.options.data.getLoadedRecords(),e=this._getSelectedIndex();if(e>-1&&e<d.length){var c=d[e].getShowValue();if(typeof c=="string"){c=a.trim(c)}if(c==h){return d[e].getContent()
}}else{for(var f=0,b=d.length;f<b;f++){if(d[f].getShowValue()==h){g=d[f].getContent();if(this.$view){this._setSelectedIndex(f)}break}}return g}},_onKeyDown:function(c){var b=c.data;switch(c.keyCode){case FR.keyCode.DOWN:if(!b.isExpanded()){b.onTriggerClick()}else{b.focusDown(c)}c.stopEvent();break;case FR.keyCode.UP:b.focusUp(c);break;case FR.keyCode.ENTER:b.collapse();break;case FR.keyCode.TAB:if(b.isExpanded()){if(b.focusIndex!=undefined){b._setSelectedIndex(b.focusIndex)}else{b.collapse();b.editComp.blur();
c.stopEvent();break}b._onEnterPressed();if(b.editComp.val()==""&&b.options.allowBlank!==false){b.inList=true}c.stopEvent()}break;default:if(b.options.directEdit&&!c.isDefaultPrevented()){b.manualEdited=true}}},focusDown:function(c){var b=c.data;if(b.focusIndex==undefined){b.focusIndex=b._getSelectedIndex()||0}if(b.focusIndex<(b.considerAllowBlankLength()-1)){b._setItemFocus(b.focusIndex+1,b.focusIndex);b.focusIndex=b.focusIndex+1}else{b._setItemFocus(0,b.focusIndex);b.focusIndex=0}},focusUp:function(c){var b=c.data;
if(b.isExpanded()){if(b.focusIndex==undefined){b.focusIndex=b._getSelectedIndex()}if(b.focusIndex-1>=0){b._setItemFocus(b.focusIndex-1,b.focusIndex);b.focusIndex=b.focusIndex-1}else{b._setItemFocus(b.considerAllowBlankLength()-1,b.focusIndex);b.focusIndex=b.considerAllowBlankLength()-1}c.stopEvent()}},onTriggerClick:function(){if(!this.isEnabled()){return}if(this.isExpanded()){this.collapse()}else{this._createVieList()}},_createVieList:function(f){var d=this;var g=this.options.data;var b=g?(a.isFunction(g.isLoaded)?g.isLoaded():false):false;
var e=false;if(b===true){g=a.isFunction(g.getData)?g.getData():false;e=g&&g.length===0}var c=!b||(b&&e);var i=FR.isEmpty(this.value)||FR.isEmptyArray(this.value);if(c&&i&&!this.options.data.isLocalSource()){this.options.need2BuildList=true}this.embellishView();if(this.options.need2BuildList){this.$view.empty();if(f!==false){this.tH=30;this.tW=Math.max(this.options.width,100);this.$view.height(this.tH);this.$view.width(this.tW);this.modifyPosition();this.$view.show()}FR.HtmlLoader.loadingMoreData({el:this.$view,show:true});
var h=function(j){d.checkViewScroll(j);d._setItems(j);d.$view.hide();d.options.need2BuildList=false;d.options.need2FixWidth=true;d._doExpand(f)};if(d.options.data){d.options.data.resetStatus(this.allPara.apply(this,arguments));d.options.data.loadRecordsAsync(h)}else{this.$view.hide();FR.HtmlLoader.loadingMoreData({el:this.$view});this.options.need2BuildList=false;this.options.need2FixWidth=true}}this._doExpand(f)},_doExpand:function(b){if(this.options.need2FixWidth!==false){this.fixViewWidth();this.options.need2FixWidth=false
}if(b!==false){this.expand();this.modifyPosition()}},scrollLoadMoreData:function(){if(this.isLoadingData){return}this.isLoadingData=true;FR.HtmlLoader.loadingMoreData({el:this.$view,show:true});this.options.data.resetStatusKeepData(this.allPara(this.options.data.getLength()));var b=this.data2Add();this.checkViewScroll(b);this.addData2View(b);this.isLoadingData=false},data2Add:function(){return this.options.data.appendData()},addData2View:function(c){var e=this.editComp.val();var b=-1;if(this.$view){if(!this.emptyContent){var j=this._checkAndAddEmptyContent()
}else{this.initContent(this.emptyContent,this.options.name4Empty,-1)}var l=document.createDocumentFragment();var g=this.options.data.getLength();for(var d=g-c.length;d<g;d++){var k=d+c.length-g;var h=a("<div/>");l.appendChild(h[0]);var f=c[k].getShowValue();this.initContent(h,f,d);if(this.value){if(b<0&&c[k].getValue()==this.value){b=k}}else{if(b<0&&f==e){b=k}}}this.$view[0].appendChild(l);this.$view.append(j||this.emptyContent);FR.HtmlLoader.loadingMoreData({el:this.$view});this._setSelectedIndex(b);
this.fixWidth()}},fixWidth:function(c){a(this.$view[0]).css("width","auto");if(this.$view.width()<this.element.width()){var b=this.element.width();if(this.addedScrollWidth){b+=this.scrollBarWidth}this.$view.width(b-2)}if(c&&this.$view.width()<c){this.$view.width(c)}},initContent:function(b,e,d){if(e==null){e=""}var c=this;b.height(this.options.sonHeight).attr("title",e).text(e).addClass(d>-1?"fr-combo-list-item":"fr-combo-list-item fr-combo-list-item-noselect").hover(function(f){c.setFocusWithIndex(d);
setTimeout(function(h){if(!h){return}var g=a(h.target);if(c.$view[0].style.display!="none"&&g.isChildAndSelfOf(a(this).parent().children())){a(this).removeClass("fr-combo-selected")}},10)}).click(function(f){c.inList=true;c.fireEvent(FR.Events.CLICK);c._setSelectedIndex(d>-1?d:c.getItemsLength());c._onEnterPressed()})},_checkAndAddEmptyContent:function(){if(this.options.allowBlank===false){return}this.emptyContent=a("<div/>");this.initContent(this.emptyContent,this.options.name4Empty,-1);return this.emptyContent
},checkViewScroll:function(b){this.$view.need2Scroll=this.options.limitData<=b.length},embellishView:function(){if(this.viewEmbellished){return}a(".fr-combo-list").hide();var b=this;if(!this.$view){this.$view=a("<div/>").appendTo(FR.$view_container).height(20)}this.$view.addClass("fr-combo-list").css({position:"absolute",width:"auto","z-index":"999"}).scroll(function(){var c=a(this).scrollTop()+a(this).height();if(b.$view.need2Scroll&&c+10>=this.scrollHeight){b.scrollLoadMoreData()}});this.viewEmbellished=true
},_setItems:function(b){var c=this.options.sonHeight,e=this.considerAllowBlankLength();var d=this.options.maxCount||10;this.tH=e>d?(c+2)*d:(c+2)*e;this.$view.height(this.tH);this.addData2View(b);this.tW=this.$view.width()},expand:function(){if(this.isExpanded()){return}this._showView();a(document).bind("mousedown",this,this.collapseIf).bind("mousewheel",this,this.collapseIf);if(this.options.write&&this.options.write.lgp){this.options.write.lgp.$container.bind("scroll",this,this.collapseIf)}if(document.activeElement!=this.editComp[0]){this.editComp.focus()
}this.fireEvent(FR.Events.EXPAND)},_showView:function(){this.$view.show()},_setItemFocus:function(b,c){var d=this.$view.children(".fr-combo-list-item");a(d[c]).removeClass("fr-combo-selected");a(d[b]).addClass("fr-combo-selected").__scroll2View__(this.$view,false)},setEnable:function(b){FR.ComboBoxEditor.superclass.setEnable.apply(this,arguments);if(b===false){this.collapse()}},setVisible:function(b){FR.ComboBoxEditor.superclass.setVisible.apply(this,arguments);if(b===false){this.collapse()}},isFiltering:function(){return !FR.isEmpty(this.searchText)
},fixViewWidth:function(){if(FR.Browser.isIE()&&FR.Browser.isIE7Before()){var e=0;var f=a(".fr-combo-list-item",this.$view);for(var c=0;c<f.length;c++){var b=FR.byteLength(f.eq(c).text())*6+30;e=Math.max(e,b)}this.$view.width(this.options.mutiSelection?e+30:e+10)}if(!FR.Browser.isIE()&&this.$view.children().length>this.options.maxCount&&!this.addedScrollWidth){this.$view.width(this.$view.width()+this.scrollBarWidth);this.addedScrollWidth=true}if(this.$view.width()<this.element.width()){var d=this.element.width();
this.$view.width(this.element.width()-2)}if(FR.Browser.isIE()&&FR.Browser.isIE7Before()&&this.$view.width()<120){this.$view.width(120)}if(FR.Browser.isIE()){this.$view.css("overflow-x","visible")}},dealWithDisplayValue:function(b){this.setText(b)},getValue:function(){return this.getText()===""?"":FR.ComboBoxEditor.superclass.getValue.apply(this,arguments)}});a.shortcut("combo",FR.ComboBoxEditor)})(jQuery);
(function(a){FR.CheckBoxEditor=FR.extend(FR.ComboBoxEditor,{_defaultConfig:function(){return a.extend(FR.CheckBoxEditor.superclass._defaultConfig.apply(),{delimiter:",",startSymbol:"",endSymbol:"",flexibleAttr:{singleLoad:true},itemCheckOnClass:".fr-checkbox-checkon",itemCheckOffClass:".fr-checkbox-checkoff"})},_init:function(){FR.CheckBoxEditor.superclass._init.apply(this,arguments);this.$view.addClass("fr-checkbox-list");this._initCheckBoxContainer();this.options.delimiter=this.options.delimiter.replace(/\\r/g,"\n")
},_initCheckBoxContainer:function(){if(!this.ck_el_array){this.ck_el_array=[]}},_setItems:function(d){var c=d||[];var e=this.options.sonHeight;var g=this.options.maxCount||10;var f=c.length>g?(e+2)*g:(e+2)*c.length;this.$view.height(f+e+2);this.tH=f+e;this.modifyPosition();var b=this;this.initControlPane();this.innerCheckBox=b._createInnerCheckBox();this.innerCheckBox.on(FR.Events.CLICK,function(){b.editComp.val("");if(b.options.directEdit){b.manualEdited=false}if(this.selected()){b.doSelectAll()
}else{b.deSelectAll()}b.editComp.focus()});this.$view.append(this.$controlPane);this.ck_el_array=[];this.addData2View(c)},initControlPane:function(){this.$controlPane=a("<div style='padding-right:20px'>").addClass("fr-checkbox-control")},_createInnerCheckBox:function(){var b=this;var c=20;return new FR.CheckBox({renderEl:a("<div/>").appendTo(b.$controlPane),text:FR.i18nText("Fine-Engine_Choose_All")+"/"+FR.i18nText("Fine-Engine_Deselect_All"),width:b.$view.width()-c})},addData2View:function(f){var m=this;
var d=this.ck_el_array.length;for(var h=d,k=d+f.length;h<k;h++){var g=f[h-d];var c=a("<div/>").height(this.options.sonHeight).attr("title",g.getShowValue()).addClass("fr-combo-list-item").appendTo(this.$view);var j=this._createItemCheckBox(c,g);if(this.inAllSelectModel===true||(a.inArray(g.getValue(),m.value)!==-1)){j.setSelectedWithoutEvent(true)}this.ck_el_array[h]=j}var e=a(this.options.itemCheckOnClass,this.$view);if(e.length==this.ck_el_array.length){this.innerCheckBox.selected(true)}FR.HtmlLoader.loadingMoreData({el:this.$view});
if(FR.Browser.isIE()){var l=FR.i18nText("Fine-Engine_Choose_All")+"/"+FR.i18nText("Fine-Engine_Deselect_All");var b=FR.byteLength(l)*6+28;this.fixWidth(b)}else{this.fixWidth()}},_createItemCheckBox:function(b,e){var c=this;var d=FR.createWidget({type:c.getCheckItemType(),renderEl:a("<div/>").appendTo(b),text:e.getShowValue(),value:e.getValue(),listeners:[{eventName:FR.Events.STATECHANGE,action:function(){c.editComp.val("");if(c.options.directEdit){c.manualEdited=false}c.fireEvent(FR.Events.CLICK);
if(!this.isSelected()){c.innerCheckBox.setSelected(false);if(c.inAllSelectModel){c.inAllSelectModel=false}}else{var f=a(c.options.itemCheckOnClass,c.$view);if(f.length==c.ck_el_array.length){c.innerCheckBox.setSelected(true)}}c._refreshComponentValue(this);c.editComp.focus()}}]});return d},getCheckItemType:function(){return"strict-checkbox"},_doBeforeSearch:function(){this.searchText=this.editComp.val()},_onEnterPressed:function(){var b=this._getSelectedIndex();var c=this.ck_el_array[b];if(c){c.setSelected(!c.isSelected())
}this.collapse()},_refreshComponentValue:function(b){if(!this.text){this.text=[]}if(!this.value){this.value=[]}if(b.isSelected()){this.text.push(b.getText());this.value.push(b.options.value)}else{this.text.remove(b.getText());this.value.remove(b.options.value)}this._setCompText(this.text);this.fireEvent(FR.Events.AFTEREDIT)},data2Add:function(){if(this.inAllSelectModel===true){var f=[];var c=this.options.data.getRecords();var e=this.ck_el_array.length;for(var d=0,b=c.length;d<this.options.limitData;
d++){if(d+e>=b){break}f[d]=c[d+e]}return f}else{return this.options.data.appendData()}},doSelectAll:function(){var c=[];var e=[];var d=this;if(this.isFiltering()){a.each(this.ck_el_array,function(f,g){g.setSelectedWithoutEvent(true);c.push(g.getText());e.push(g.options.value)})}else{if(!this.allRecords){this.inAllSelectModel=true;var b=this.createDependencePara4Data();b.parameter.startIndex=0;b.parameter.limitIndex=0;this.options.data.resetStatus(b);this.allRecords=this.options.data.executeData();
this.options.data.records=this.allRecords}a.each(d.allRecords,function(f,g){c.push(g.getShowValue());e.push(g.getValue())});a.each(this.ck_el_array,function(f,g){g.setSelectedWithoutEvent(true)})}this._setCompText(c);this.value=e;d.fireEvent(FR.Events.AFTEREDIT)},deSelectAll:function(){var b=this;a.each(this.ck_el_array,function(c,d){d.setSelectedWithoutEvent(false)});this.inAllSelectModel=false;this._setCompText([]);this.value=[];b.fireEvent(FR.Events.AFTEREDIT)},_dealValueWithEvents:function(g){var c=this;
var d=this.getValue();if(g===""){this._setCompText([]);this.value=[];c.options.need2BuildList=true;return}var f;var e=[];if(typeof g==="string"){if(!this.options.returnArray){if(g.startWith(this.options.startSymbol)){g=g.substring(this.options.startSymbol.length)}if(g.endWith(this.options.endSymbol)){g=g.substring(0,g.length-this.options.endSymbol.length)}}f=g.split(this.options.delimiter)}else{f=a.makeArray(g)}var b=this.options.data.getRecords();if(b.length>0){a.each(f,function(j,k){for(var m=0,h=b.length;
m<h;m++){var l={value:b[m].getValue(),text:b[m].getShowValue(),tarValue:k,matchFn:c.options.flexibleAttr?c.options.flexibleAttr.matchFn:undefined};if(FR.match(l)){f[j]=b[m].getShowValue();e[j]=b[m].getValue();break}}if(e[j]===undefined){if(c.options.customData){e[j]=f[j]}else{e[j]=undefined}}})}if(!FR.equals(this.text,f)){this.options.need2BuildList=true}this._setCompText(f);this.value=e;if(arguments[1]!==false){this.fireEvent(FR.Events.AFTEREDIT,g,d)}},getValue:function(){var d=this;if(!this.options.data){return
}var f=this._getCompText();if(FR.isEmpty(f)||FR.isEmptyArray(f)){if(this.options.returnArray===true){return[]}else{return this.options.startSymbol+this.options.endSymbol}}if(this.manualEdited!==true&&this.value){this.value=FR.isArray(this.value)?_.uniq(this.value):this.value;var b=_.filter(this.value,function(i){return i!==undefined});if(b.length==f.length){if(this.options.returnArray){return this.value.slice(0)}return this.options.startSymbol+this.value.join(this.options.delimiter)+this.options.endSymbol
}}var c=this.options.data.getLoadedRecords();var e={};var h={};for(var g=c.length-1;g>-1;g--){e[c[g].getShowValue()]=c[g].getValue()}var j=this.options.data.options.dataSource;f=FR.isArray(f)?_.uniq(f):f;if(!FR.isEmptyArray(f)){a.each(f,function(l,p){var o=null;if(!d.isEmptyMap(h)){o=h[p]}else{o=e[p]}if(o==null&&d.isEmptyMap(h)&&j._findAllValue){var m=j._findAllValue();if(!FR.isEmpty(m)){for(var n=m.length-1;n>-1;n--){h[m[n].text]=m[n].value}o=h[p]}}if(d.options.flexibleAttr.singleLoad&&o==null&&j._findShowValue){o=j._findShowValue(f[l],false);
var k=o===undefined?undefined:o.val;h[f[l]]=k;o=k}if(FR.isEmpty(o)){if(d.options.customData){f[l]=p}else{if(o===undefined){f=undefined;return false}}}else{f[l]=o}})}if(f){f=_.uniq(f);if(!FR.isEmptyArray(f)){this.value=f}if(this.options.returnArray){return f}return this.options.startSymbol+f.join(this.options.delimiter)+this.options.endSymbol}},isEmptyMap:function(c){for(var b in c){if(b){return false}}return true},isValueInList:function(d){if(FR.isEmpty(d.toString())){return true}if(FR.isArray(d)){for(var c=0;
c<d.length;c++){if(!this._checkValueInResList(d[c])){return false}}return true}else{if(typeof d==="string"){d=d.substring(this.options.startSymbol.length,d.length-this.options.endSymbol.length);if(d.indexOf(this.options.delimiter)!==-1){var b=d.split(this.options.delimiter);for(var c=0;c<b.length;c++){if(!this._checkValueInResList(b[c])){return false}}return true}}}return this._checkValueInResList(d)},getText:function(){var b=this._getCompText();return this.options.returnArray?b:this.options.startSymbol+b.join(this.options.delimiter)+this.options.endSymbol
},_setCompText:function(b){this.text=b;this.editComp.val(b.join(this.options.delimiter))},_getCompText:function(){return this.editComp.val().split(this.options.delimiter)},rebuild:function(b){this.reset();FR.CheckBoxEditor.superclass.rebuild.apply(this,arguments)},reset:function(){this.ck_el_array=[];this.text=null;this.value=null;this.setValue("");this.shouldReBuildList();this.allRecords=null}});a.shortcut("combocheckbox",FR.CheckBoxEditor)})(jQuery);
FR.TagCheckBoxEditor=FR.extend(FR.CheckBoxEditor,{_defaultConfig:function(){return $.extend(FR.TagCheckBoxEditor.superclass._defaultConfig.apply(),{tagBaseClass:"fr-tageditor",minWidth4Edit:24,tagMargin:4,animateSpeed:100})},_init:function(){FR.TagCheckBoxEditor.superclass._init.apply(this,arguments);this._initTagContainer();this.startTagIdx=-1;this.widthFix=0;if(FR.Browser.isIE6Before()){this.widthFix=4}var a=this;if(!FR.isEmpty(this.text)){setTimeout(function(){a._setCompText(a.text)},0)}},_editCompBlur:function(){if(this.options.watermark&&this.text&&this.text.length>0){this.removeWaterMark.defer(0,this)
}},_editCompBlurValidValue:function(){if(this.options.allowBlank===false&&(!this.text||this.text.length===0)){this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Base_NOT_NULL_Des");this.invalidateCss()}else{this.validateCss()}this.searchText="";var a=this.editComp.val();if(a!=""){a=this._getEditTagFullValue(a);this._appendTagFromInput(a);this.editComp.val("");this._editCompBlur()}},_doBeforeSearch:function(){},_initTagContainer:function(){var c=this.options;c.minWidth4Edit=Math.max(2*c.fontSize,c.minWidth4Edit);
var a=this.editComp.height(),b=c.tagBaseClass;this.tagContainer=$("<div/>").addClass(b+"-container").height(a).prependTo(this.triggerTextComp);this.tagWrap=$("<span/>").addClass(b+"-wrapper").appendTo(this.tagContainer)},_bindEvent2Tag:function(a){var b=this,c=this.options;a.click(function(){b._setTagSelect($(this))});a.dblclick(function(){if(c.directEdit!==false&&c.customData!==false){b._editTag($(this))}})},_editTag:function(d){var c=this.tagWrap.children().index(d)+this.startTagIdx+1;d.hide();
var a=$("<input type='text'/>").addClass("fr-tageditor-tag-edit").val(d.text()).css({width:d.outerWidth(),"font-size":this.options.fontSize}).insertAfter(d);this.isTagEditing=true;var b=this;a.blur(function(){b.collapse();b.isTagEditing=false;var f=$(this).val();$(this).remove();if(f===""){b._removeTag(d)}else{var e=d.text();d.text(f);f=b._getEditTagFullValue(f);if(e!==f){b._spliceTagData(c,f)}d.show();b._loadMoreTags(b.text);b._modifyTagPosition();b._moveViewToShow(d)}b.fireEvent(FR.Events.STOPEDIT)
});a.keyup(function(g){var f=g.keyCode;if(!FR.isNavKeyPress(g)){b._spliceTagData(c,a.val());b.fireEvent(FR.Events.AFTEREDIT)}else{if(f===FR.keyCode.ENTER){$(this).blur()}}});a.focus()},_setCompText:function(b,a){this.text=b;if(this.tagWrap){if(a!==false){this.editComp.val("")}this.tagWrap.empty();this.startTagIdx=b.length-1;this._loadMoreTags(b);this._modifyTagPosition();this._moveViewToShow();if(this.text!=null&&this.text.length>0){this.removeWaterMark()}}else{FR.TagCheckBoxEditor.superclass._setCompText.apply(this,arguments)
}},_loadMoreTags:function(b){if(this.startTagIdx>=0){var a=this.element.width()-this.options.minWidth4Edit-this.btnWidth;while(this.tagWrap.width()<a&&this.startTagIdx>=0){this._createTagFromText(b[this.startTagIdx]).prependTo(this.tagWrap);this.startTagIdx--}}},_appendTagFromInput:function(b){if(this.checkValid(b)){if($.inArray(b,this.text)===-1){this._pushTagData(b);this._createTagFromText(b).appendTo(this.tagWrap);this._modifyTagPosition();this._moveViewToShow();var a=$.grep(this.ck_el_array,function(c){return c.getText()==b
});this.value=this.value||[];if(a&&a[0]){a[0].changeBoxState(true);this.value.push(a[0].options.value)}else{this.value.push(b)}if(!FR.isEmptyArray(this.ck_el_array)){this.manualEdited=false}this.fireEvent(FR.Events.AFTEREDIT)}}else{FR.Msg.toast(this.errorMsg)}},_getEditTagFullValue:function(a){return a},_pushTagData:function(a){if(!this.text){this.text=[]}this.text.push(a)},_spliceTagData:function(a,b){if(b==undefined){this.text.splice(a,1);if(this.value){this.value.splice(a,1)}}else{this.text.splice(a,1,b);
if(this.value){this.value.splice(a,1,b)}}},_removeTag:function(d,c){if(c){this.text.pop();if(this.value){this.value.pop()}}else{var b=this.tagWrap.children().index(d)+this.startTagIdx+1;this._spliceTagData(b)}var a=d.next();d.remove();this.fireEvent(FR.Events.AFTEREDIT);this.inAllSelectModel=false;this.options.need2BuildList=true;this._loadMoreTags(this.text);this._modifyTagPosition();this._setTagSelect(a)},_getCompText:function(){this.text=this.text||[];return this.text.slice(0)},_createTagFromText:function(f){var e=this.options;
var b=f;if($.isArray(f)){b=f[f.length-1]}if(FR.isEmpty(b)){return $("")}var a=this.editComp.height();var d=this.options.tagBaseClass;var c=$("<span/>").addClass(d+"-tag").text(b).css({"line-height":a+"px","margin":"0 "+e.tagMargin/2+"px","font-size":this.options.fontSize});this._bindEvent2Tag(c);return c},_modifyTagPosition:function(){var d=this.options;var b=d.minWidth4Edit;var c=d.tagBaseClass;if(d.isEditable){this.tagContainer.prependTo(this.triggerTextComp)}var f=$("."+c+"-container",this.triggerTextComp);
var a=$.support.boxModel?this.triggerTextComp.width()-1:this.triggerTextComp.width()-2;var e=this.tagWrap.width();if(a-e<b){this.editComp.outerWidth(b-this.widthFix);f.width(a-b)}else{this.editComp.outerWidth(a-e-this.widthFix);f.width(e)}},_setTagSelect:function(e){var c=this.options.tagBaseClass;var b=c+"-tag-select";$("#"+b,this.tagWrap).removeAttr("id");if(e){var a=this;var d=function(f){if(a.isTagEditing){return}if(f.keyCode==FR.keyCode.DELETE||f.keyCode==FR.keyCode.BACKSPACE){FR.Keys.unreg(d);
a._removeTag(e)}else{if(f.keyCode==FR.keyCode.LEFT){if(e.prev().length>0){a._setTagSelect(e.prev())}}else{if(f.keyCode==FR.keyCode.RIGHT){a._setTagSelect(e.next());if(e.next().length===0){a.editComp.focus()}}}}};FR.Keys.reg(d);$("body").bind("mousedown.tagselect",function(f){if(!$(f.target).isChildAndSelfOf(a.tagWrap)){FR.Keys.unreg(d);$("#"+b,a.tagWrap).removeAttr("id")}});e.attr("id",c+"-tag-select");this._moveViewToShow(e)}else{this._moveViewToShow()}},_editCompFocus:function(){var a=this.editComp.val();
if(a!=""){this._setCompText(this.text,false);if(!this.isFiltering()){this.editComp.val("")}}else{this._setTagSelect()}},_moveViewToShow:function(h){var b=this.options,k=this;var a=this.tagContainer.width(),d=this.tagWrap.width();if(h&&h.length>0){if(this.editComp.outerWidth()>this.options.minWidth4Edit){return}var c=this.tagWrap.offset().left;var j=this.tagContainer.offset().left;var e=c-j;var i=h.width();var f=j+a/2-i/2;while(this.startTagIdx>=0&&h.offset().left<f){this._createTagFromText(this.text[this.startTagIdx]).prependTo(this.tagWrap);
this.startTagIdx--}var g=h.offset().left-f;d=this.tagWrap.width();if(g<0){g="-="+Math.max(g,e)}else{g="-="+Math.min(g,d-a+e)}}else{g=a===0?0:Math.min(a-d,0)}this.tagWrap.animate({left:g},b.animateSpeed)},_onKeyDown:function(f){var b=f.keyCode,a=f.data;if(b==FR.keyCode.ENTER){if(this.value==""){a.collapse()}else{a._appendTagFromInput(this.value);a.editComp.val("");a._editCompBlur()}f.stopEvent()}else{if(b==FR.keyCode.LEFT){if(this.value==""&&a.tagWrap.children().length>0){var c=a.options.tagBaseClass;
a._setTagSelect($("."+c+"-tag:last",a.tagWrap));a.editComp.blur();f.stopEvent()}}else{if(b==FR.keyCode.BACKSPACE){if(this.value==""&&a.tagWrap.children().length>0){var c=a.options.tagBaseClass;var d=$("."+c+"-tag:last",a.tagWrap);a._removeTag(d,true);f.stopEvent()}}}}FR.CheckBoxEditor.superclass._onKeyDown.apply(this,arguments)},__makeSureInputValueInResList:function(){if(this.searchText==undefined){return}var d=this.searchText;var a=d.split(/[,;，；]/);var b=d.endWith(",")||d.endWith(";")||d.endWith("，")||d.endWith("；");
if(!b){return}for(var c=0;c<a.length;c++){if(a[c]!=""){this._checkAndAddTag(a[c]);this.fireEvent(FR.Events.AFTEREDIT);break}}},_checkAndAddTag:function(b){if(FR.isEmpty(b)||b==""){return}this.searchText=b;FR.CheckBoxEditor.superclass.__makeSureInputValueInResList.apply(this,arguments);if(this.inList||this.options.customData){if(this.text==undefined){this.text=[]}if($.inArray(b,this.text)===-1){this._pushTagData(b);this._addResultTag(b);this.searchText=null;this.editComp.val("");var a=$.grep(this.ck_el_array,function(c){return c.getText()==b
});this.value=this.value||[];if(a&&a[0]){a[0].changeBoxState(true);this.value.push(a[0].options.value)}else{this.value.push(b)}this.collapse();this.options.need2BuildList=true;this.editComp.focus()}}else{FR.Msg.toast("No custom value allowed");this.editComp.val(b)}},_addResultTag:function(a){this.tagWrap.append(this._createTagFromText(a));this._modifyTagPosition()},validateCss:function(){this.editComp.removeClass("fr-trigger-invalid");this.editComp.removeClass("fr-trigger-text-invalid");this.editComp.removeAttr("title")
},invalidateCss:function(){this.editComp.addClass("fr-trigger-text-invalid");this.editComp.attr("title",this.getErrorMsg())},startEditing:function(){FR.TagCheckBoxEditor.superclass.startEditing.apply(this,arguments);this._modifyTagPosition()},reset:function(){FR.TagCheckBoxEditor.superclass.reset.apply(this,arguments);this.inAllSelectModel=false;this.tagContainer&&this.tagContainer.remove();delete this.tagContainer;this._initTagContainer();if(this.options.watermark){this.removeWaterMark();this.setWaterMark()
}},setText:function(b){if(this.options.isEditable){this.tagContainer&&this.tagContainer.remove()}if(b&&typeof b==="string"){this.text=b.split(this.options.delimiter)}else{this.text=b}var a=$.support.boxModel?this.triggerTextComp.width()-1:this.triggerTextComp.width()-2;this.editComp.outerWidth(a-this.widthFix);this.editComp.val(b)},getEditValue:function(){var a=this.getValue();if(FR.isEmpty(a)||FR.isEmptyArray(a)){return[]}if(this.options.returnArray===false){a=a.split(this.options.delimiter);var b=a.length;
a[0]=a[0].substring(this.options.startSymbol.length);a[b-1]=a[b-1].substring(0,a[b-1].length-this.options.endSymbol.length)}if(FR.isEmpty(a)||FR.isEmptyArray(a)){return[]}return a},recoveryValue:function(){var a=this.options.oldValue;if(FR.isArray(a)){if(a.length>0){if(FR.isArray(a[0])){var b=a[0][0]||"";this.editComp.val(b)}else{this.editComp.val(a[0])}}else{if(a.length===0){this.editComp.val("")}}}else{this.editComp.val(a)}this.searchText="";this.shouldReBuildList()},doResize:function(b){FR.TagCheckBoxEditor.superclass.doResize.apply(this,arguments);
var a=this.editComp.height();if(this.tagContainer){this.tagContainer.height(a)}}});$.shortcut("tagcombocheckbox",FR.TagCheckBoxEditor);
(function(a){FR.TreeComboBoxEditor=FR.extend(FR.TagCheckBoxEditor,{_defaultConfig:function(){return a.extend(FR.TreeComboBoxEditor.superclass._defaultConfig.apply(),{width:120,height:300,returnArray:true,delimiter:";",nodeDelimiter:/[;；]/,pathDelimiter:/[,，]/,startSymbol:"",endSymbol:"",cascadecheck:true,mutiSelection:false,limitData:300,autoFixWidth:true})},_init:function(){FR.TreeComboBoxEditor.superclass._init.apply(this,arguments);this.$view.attr("id",this.options.location)},initData:function(){if(this.options.data){return
}if(this.options.rootLoader){this.options.data=new FR.TreeData({treeLoader:this.options.rootLoader})}else{if(this.options.widgetUrl){this.options.data=new FR.TreeData({url:this.options.widgetUrl})}else{if(this.options.items){this.options.data=new FR.ItemTreeData({items:this.options.items})}}}if(this.options.controlAttr){this.setSource(this.options.controlAttr);delete this.options.controlAttr}},_setItems:function(f){this.tH=150;this.$view.height(this.tH);var b=FR.createTreeConfig4Widget(this);var c=this.options.data.getData();
var l=this.options.selectLeafOnly;var k=this.options.mutiSelection;var j=[];this.value=this.value||[];this.text=this.text||[];if(this.options.autoMatch!==false){if(!k&&FR.isEmptyArray(this.value)){var h=this.searchText||this.editComp.val();if(typeof h==="string"){h=FR.isEmpty(h)?"":h.replace(/[,;，；]$/,"")}if((h.indexOf(";")!==-1||h.indexOf("；")!==-1)&&k){var g=FR.parseString2Array4Tree(h,this);for(var e=0;e<g.length;e++){var n=FR.getValidTreeTrace(g[e],c,l);if(FR.isArray(n)&&!FR.isEmptyArray()){j.push(n)
}}}else{if(h.indexOf(",")!==-1||h.indexOf("，")!==-1){j=FR.getValidTreeTrace(h.split(/[,，]/),c,l)}else{if(h!==""){j=FR.getTreeTrace(h,c,k,l)}}}if(FR.isEmptyArray(j)){this.value=FR.isEmpty(h)?[]:a.makeArray(h)}else{this.value=j}}j=this.value}else{if(k){j=this.value}else{j=this.editComp.val().split(this.options.delimiter)}}FR.setAllNodeState(c,0);if(FR.isArray(j)&&!FR.isEmptyArray(j)){if(k){j=FR.parseTo2DArray(j);for(var d=0;d<j.length;d++){FR.setNodeStateByInitValue(c,0,j[d],l)}}else{FR.findSelectedNode(c,0,j,b)
}}this._createTreeView(b);this.options.isInited=true;this.options.need2BuildList=false},_createTreeView:function(b){this.$view.treeview(b)},_editCompBlur:function(){if(this.options.mutiSelection){FR.TreeComboBoxEditor.superclass._editCompBlur.apply(this,arguments)}},_editCompBlurValidValue:function(){if(this.options.allowBlank===false&&(!this.text||this.text.length===0||this.value.join("").length===0)){this.errorMsg=this.options.errorMsg||FR.i18nText("Fine-Engine_Base_NOT_NULL_Des");this.invalidateCss();
this.editComp.addClass("fr-invalid")}else{this.validateCss();this.editComp.removeClass("fr-invalid")}if(this.options.mutiSelection){var b=this.editComp.val();if(b!==""){b=this._getEditTagFullValue(b);this.options.need2BuildList=true;this.searchText="";this._appendTagFromInput(b);this.editComp.val("");this._editCompBlur()}}else{if(!this.checkValid()&&!this.options.location){FR.Msg.toast(this.errorMsg)}}},_getEditTagFullValue:function(b){return b.split(/[,，]/)},_spliceTagData:function(b,c){if(c==undefined){this.text.splice(b,1);
this.value.splice(b,1)}else{this.text.splice(b,1,c);this.value.splice(b,1,c)}},_removeTag:function(d,c){if(c){this.value.pop();this.text.pop()}else{var b=this.tagWrap.children().index(d)+this.startTagIdx+1;this._spliceTagData(b)}d.remove();this.fireEvent(FR.Events.AFTEREDIT);this.inAllSelectModel=false;this.options.need2BuildList=true;this._loadMoreTags(this.text);this._modifyTagPosition();this._moveViewToShow()},_onKeyDown:function(d){if(d.data.options.mutiSelection){FR.TreeComboBoxEditor.superclass._onKeyDown.apply(this,arguments)
}else{if(d.data.options.directEdit&&!d.isDefaultPrevented()){var b=d.data;switch(d.keyCode){case FR.keyCode.DOWN:if(!b.isExpanded()){b.onTriggerClick()}d.stopEvent();break;case FR.keyCode.ENTER:b.collapse();break;case FR.keyCode.TAB:if(b.isExpanded()){b.collapse();d.stopEvent()}break}var c=d.keyCode;if(c===FR.keyCode.ENTER||c===FR.keyCode.TAB||c===FR.keyCode.LEFT||c===FR.keyCode.UP||c===FR.keyCode.RIGHT||c===FR.keyCode.DOWN){}else{b.value=[]}}}},focusDown:function(b){},focusUp:function(b){b.stopEvent()
},setOptions:function(b){this.$view.setOptions(b)},setTraversal:function(b){this.setOptions({traversal:b})},_editCompFocus:function(){if(this.options.mutiSelection){FR.TreeComboBoxEditor.superclass._editCompFocus.apply(this,arguments)}},checkViewScroll:function(){},initFilterData:function(){if(!this.options.filterData){this.options.data=new FR.TreeData({url:this.options.widgetUrl})}else{this.options.data=this.options.filterData}},_timer:null,_ajaxSearch:function(){if(this._timer){clearTimeout(this._timer)
}var b=this;this._timer=setTimeout(function(){b._timer=null;if(b.searchText||b.searchText===0){b.initFilterData()}else{b.initData()}FR.TreeComboBoxEditor.superclass._ajaxSearch.apply(b,arguments)},600)},_onEnterPressed:function(f,b){if(!this.options.mutiSelection){this.text=this.$view.getTCPText();this.value=this.$view.getTCPValue();var h=this.text.length;this.editComp.val(h===0?"":this.text[h-1]);this.collapse()}else{if(!this.options.selectLeafOnly){if(f!==undefined){var c=f.getValuePath();var d=FR.parseString2Array4Tree(f.getTextPath(),this);
if(f.getcheckstate()===1){this.value.push(c);this.text.push(d)}else{if(f.getcheckstate()===0){for(var g=0;g<this.value.length;g++){if(FR.equals(c,this.value[g])){this.value.remove(this.value[g]);break}}this.text.removeWeakEqual(d)}}}this._dealWithEditComp()}else{if(f!==undefined){var l=this;var e=f.getAllChildren();var k=[];var j=[];if(l.isFiltering()){e=_.filter(e,function(i){return i.isexpand()})}if(f.getcheckstate()===1){for(var g=0;g<e.length;g++){if(this.value.weakIndexOf(e[g].getValuePath())!==-1){continue
}j.push(e[g].getValuePath());k.push(e[g].getTextPath())}this.text=this.text.concat(k);this.value=this.value.concat(j)}else{if(f.getcheckstate()===0){for(var g=0;g<e.length;g++){j.push(e[g].getValuePath());k.push(e[g].getTextPath())}this.text=this._difference(this.text,k);this.value=this._difference(this.value,j)}}}this._dealWithEditComp(this.text)}}this.fireEvent(FR.Events.CLICK);if(b!==false){this.fireEvent(FR.Events.AFTEREDIT)}},_difference:function(c,b){c=this._distinct(c);a.each(b,function(d,f){var e=c.weakIndexOf(f);
if(e!==-1){c.splice(e,1)}});return c},_distinct:function(f){var c=[];var e={};for(var d=0,b=f.length;d<b;d++){if(!e[f[d]]){c.push(f[d]);e[f[d]]=1}}return c},_dealWithEditComp:function(b){var c=b||this.text;this.editComp.val("");this.editComp.focus();this._setCompText(c)},_dealValueWithEvents:function(h){if(h===""){return}var d=this.getValue();var f;var e=typeof h==="string";if(e){f=FR.parseString2Array4Tree(h,this);if(FR.isEmptyArray(f)){f=h.split(this.options.delimiter)}}else{f=a.makeArray(h)}var c=[];
var g=[];if(!this.options.mutiSelection){FR.findTrueValue(this.options.data.getData(),0,f,c,g)}else{f=FR.parseTo2DArray(f);for(var b=0;b<f.length;b++){var i=c.length;FR.findTrueValue(this.options.data.getData(),0,a.isArray(f[b])?f[b]:f[b].split(","),c,g);if(c.length===i){if(this.options.customData){c.push(f[b]);g.push(f[b])}}}}if(c.length!==0){c=this.options.mutiSelection?c:c[0];this.text=(this.options.returnFullPath||this.options.mutiSelection)?c:[c[c.length-1]];this.value=this.options.mutiSelection?g:g[0]
}else{this.text=f;this.value=a.extend(true,[],f)}this._setCompText(this.text);if(!FR.equals(d,h)){this.options.need2BuildList=true}if(arguments[1]!==false){this.fireEvent(FR.Events.AFTEREDIT)}},dealWithDisplayValue:function(b){if(b==undefined||(this.options.mutiSelection&&b==="")){return}var c;if(typeof b==="string"){c=FR.parseString2Array4Tree(b,this);if(FR.isEmptyArray(c)){c=b.split(this.options.delimiter)}}else{c=a.makeArray(b)}if(this.options.mutiSelection){c=FR.parseTo2DArray(c)}this._setCompText(c.slice(0))
},_setCompText:function(c){if(this.options.mutiSelection){FR.TreeComboBoxEditor.superclass._setCompText.apply(this,arguments)}else{this.text=c;var b=c;if(a.isArray(c)){b=c[c.length-1]}this.editComp.val(b)}},__makeSureInputValueInResList:function(){if(!this.options.mutiSelection){return}FR.TreeComboBoxEditor.superclass.__makeSureInputValueInResList.apply(this,arguments)},getValue:function(){var b=this._getEditVal();if(this.options.customData||this.isValueInList(b)){return FR.getTreeValueResult(b,this.options.mutiSelection,this.options.returnFullPath)
}},getEditValue:function(){return this.getFullPathValue()},getFullPathValue:function(){return FR.getTreeValueResult(this._getEditVal(),this.options.mutiSelection,true)},_getEditVal:function(){var b=[];if(this.editComp&&this.editComp.val()===""&&!this.options.mutiSelection){b=[]}if(this._checkValueEffective()){b=_.clone(this.value)}else{if(this.$view&&this.options.isInited&&a.isFunction(this.$view.getTCPValue)){if(!this.options.mutiSelection){this.value=this.$view.getTCPValue()||this.editComp.val().split(this.options.delimiter)
}else{this.value=this.$view.getTCPValues()||this.editComp.val().split(this.options.delimiter)}b=_.clone(this.value)}}return b},_checkValueEffective:function(){if(this.editComp&&this.editComp.val()!==""){if(FR.isEmptyObj(this.value)){return false}}return this.value!==undefined},recoveryValue:function(){FR.TreeComboBoxEditor.superclass.recoveryValue.apply(this,arguments);this.value=this.options.oldValue},getText:function(){var b;if(this.text){b=this.text}else{b=FR.parseString2Array4Tree(this.editComp.val(),this)
}return FR.getTreeValueResult(b,this.options.mutiSelection,this.options.returnFullPath)},fixViewWidth:function(){FR.TreeComboBoxEditor.superclass.fixViewWidth.apply(this,arguments);this.options.oriWidth=this.$view.width()},isComboBoxTree:function(){return true},reset:function(){this._dealValueWithEvents([]);this.shouldReBuildList();this.options.isInited=false},getValueNodes:function(){return this.$view.getTSNs()},getNode:function(b){return this.$view.getNode(b)},getSelectedNodes:function(){this.selectedNodes=this.getValueNodes();
this.fireEvent(FR.Events.DEALSELECTEDNODES);return this.selectedNodes},getNodeByID:function(g,c){if(!c){c=this.options.data.getData()}for(var f=0,b=c.length;f<b;f++){if(c[f].getID()===g){return c[f]}if(c[f].ChildNodes||(c[f].data&&c[f].data.ChildNodes)){var e=c[f].getChildren();if(!e||(e.length===0)){continue}var d=this.getNodeByID(g,e);if(d){return d}}}},isValueInList:function(b){if(_.isArray(b)&&FR.isEmpty(b.toString())){return true}if(this.options.data.options.treeLoader&&this.options.data.options.treeLoader.options&&this.options.data.options.treeLoader.options.rootSource&&this.options.data.options.treeLoader.options.rootSource._findShowValue){return this.options.data.options.treeLoader.options.rootSource._findShowValue(b,false)!=null
}return true},isValidate:function(b){var c=b!=null?b:this.getFullPathValue();if(!FR.BaseComboBoxEditor.superclass.isValidate.apply(this,[c])){return false}if(!this.options.customData&&!FR.isEmpty(c)&&!this.isValueInList(c)){this.errorMsg=FR.i18nText("Fine-Engine_Not_In_List");this.invalidateCss();return false}return true}});a.shortcut("treecombobox",FR.TreeComboBoxEditor)})(jQuery);
FR.DateTimeEditor=FR.extend(FR.BaseDateTimeEditor,{_defaultConfig:function(){return $.extend(FR.DateTimeEditor.superclass._defaultConfig.apply(),{format:"yyyy-MM-dd",directEdit:true})},_init:function(){FR.DateTimeEditor.superclass._init.apply(this,arguments);this.switchArrow();if(this.options.widgetCss&&this.options.widgetCss.length!==0){$.each(this.options.widgetCss,function(c,d){FR.$import(d,"css",true)})}var b=this.options;this.viewMode=this._initViewMode();this.std=this._createStartDate(b.startDate,b.format,this.viewMode);
this.edd=this._createEndDate(b.endDate,b.format,this.viewMode);var a=this;if(!this.$view){this.$view=$("<div/>").appendTo(FR.$view_container).hide()}this.editComp.keydown(function(c){a.editComp[0].realValue=null});$(this.editComp).keyup(function(){if($(this).val()==a.oriText){return}a.isValidateInput();a.oriText=$(this).val();a.fireEvent(FR.Events.AFTEREDIT)})},getArrowIconHeight:function(){return 17},switchArrow:function(){this.arrow.switchClass("fr-trigger-center","fr-date-trigger-center")},_applyInvalidCss:function(a){this.errorMsg=a;
this.invalidateCss()},onTriggerClick:function(a){if(!this.isEnabled()){return}if(document.activeElement!=this.editComp[0]){this.editComp.focus()}if(this.isExpanded()){if(FR.Browser.isIE8()&&this.$view.css("visibility")=="hidden"){this.$view.css("visibility","visible")}else{this.$view.show()}}else{this.$view.empty();this._createCalendar()}},_showView:function(){if(FR.Browser.isIE8()&&this.$view.css("visibility")=="hidden"){this.$view.css("visibility","visible")}else{this.$view.show()}},_createStartDate:function(d,b,e){if(FR.isEmpty(d)){return null
}var a=FR.str2Date(d,b);switch(e){case 0:return new Date(a.getFullYear(),a.getMonth(),1,0,0,0);case 1:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0);case 2:var c=new Date();c.setHours(0);c.setMinutes(0);c.setSeconds(0);return c;case 3:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0);default:return a}},_createEndDate:function(c,a,e){if(FR.isEmpty(c)){return null}var d=FR.str2Date(c,a);switch(e){case 0:return new Date(d.getFullYear(),d.getMonth(),d.getMonthDays(),23,59,59);
case 1:return new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59);case 2:var b=new Date();b.setHours(23);b.setMinutes(59);b.setSeconds(59);return b;case 3:return new Date(d.getFullYear(),d.getMonth(),d.getDate(),23,59,59);default:return d}},_initViewMode:function(){var b=this.options;var a=1;if(b.format.match(/[YyDd]/)&&b.format.match(/[Hh]/)){a=3}else{if(b.format.match(/[M]/)&&!b.format.match(/[Dd]/)&&!b.format.match(/[Hh]/)){a=0}else{if(!b.format.match(/[YyMDd]/)){a=2}}}return a},_createCalendar:function(){var b=this.options;
var a=this;this.buildIfNeeded();this.datepicker=new FR.DatePicker({renderEl:this.$view,viewMode:this.viewMode,date:FR.str2Date(this.editComp.val(),b.format),dateFormat:b.format,startDate:this.std,endDate:this.edd,onDateUpdate:function(){if($(":focus").length===0){a.editComp.focus()}a.editComp.val(FR.date2Str(this.getValue(),b.format));a.isValidateInput();a.fireEvent(FR.Events.AFTEREDIT)}});if(FR.Browser.isIE8()&&this.$view.css("visibility")=="hidden"){this.$view.css("visibility","visible")}else{this.$view.show()
}$(document).bind("mousedown",this,this.collapseIf);this.modifyPosition()},buildIfNeeded:function(){var d=this.options;if(this.options.need2BuildConfig===true&&this.options.data){this.options.data.resetStatus(this.createDependencePara4Data());var b=this.options.data.getData();if(b[0].data){if(b[0].data.startDate){var c=new Date(b[0].data.startDate);if(!FR.isInvalidDate(c)){d.startDate=FR.date2Str(c,"yyyy-MM-dd");this.std=this._createStartDate(d.startDate,d.format,this.viewMode)}}if(b[0].data.endDate){var a=new Date(b[0].data.endDate);
if(!FR.isInvalidDate(a)){d.endDate=FR.date2Str(a,"yyyy-MM-dd");this.edd=this._createEndDate(d.endDate,d.format,this.viewMode)}}}this.options.rebuildConfig=false}},getValue:function(){var d=this.options.format;if(!this.options.returnDate){var c=this.editComp.val();return FR.str2Date(c,d)==null?"":c}var b=new Date();if(this.editComp[0].realValue){b.setTime(this.editComp[0].realValue.getTime())}else{b=this.editComp.val()}if(!b){return""}var a=(b instanceof Date)?b:FR.str2Date(b,d);return(a==null)?"":a
},isValidateInput:function(j){var h=this.options.format;var e=this.std;var f=this.edd;var i=this;var a=true;var b=this.options.customFormat;var c=j?j:this.editComp.val();if(this.options.allowBlank!==false&&FR.isEmpty(c)){return}var d=FR.matchDateFormat(c,h);if(!b&&!d){a=false;var g=function(){var n=i.editComp.val();if(c==n){var l=i.getDefaultSupportFormat();for(var m=0;m<l.length;m++){var k=FR.matchDateFormat(c,l[m]);if(k){d=k;a=true;i.editComp.val(FR.date2Str(d,h));this.isValidateInput();break}}}};
g.defer(1000,this)}if(!b&&!a){if(!FR.matchDateFormat(c,h)){this._applyInvalidCss(FR.i18nText("Fine-Engine_Please_Input_With_Right_Format")+":"+h)}}else{if(e&&!FR.isInvalidDate(new Date(e))&&d<new Date(e)){this._applyInvalidCss(FR.i18nText("Fine-Engine_Report_Err_The_Number_Is_Less_Than_The_Minimum_Value")+FR.date2Str(e,"yyyy-MM-dd"))}else{if(f&&!FR.isInvalidDate(new Date(f))&&d>new Date(f)){this._applyInvalidCss(FR.i18nText("Fine-Engine_Report_Err_The_Number_Is_Larger_Than_The_Maximum_Value")+FR.date2Str(f,"yyyy-MM-dd"))
}else{if(d>new Date(2999,11,31)||d<new Date(1900,0,1)){this._applyInvalidCss(FR.i18nText("Fine-Engine_Report_Err_The_Time_Out_Of_Range"))}else{this.validateCss()}}}}},reset:function(){FR.DateTimeEditor.superclass.reset.apply(this,arguments);this.editComp[0].realValue=null;this.options.currentDateTime=null;this.options.need2BuildConfig=true;if(this.options.data){delete this.options.data.records}}});$.shortcut("datetime",FR.DateTimeEditor);
(function(a){FR.CheckBoxGroup=FR.extend(FR.ToggleButtonGroup,{lbox_class:"fr-group-box",sbox_class:"fr-group-span",_defaultConfig:function(){return a.extend(FR.CheckBoxGroup.superclass._defaultConfig.apply(),{delimiter:",",startSymbol:"",endSymbol:"",adaptive:false})},_init:function(){FR.CheckBoxGroup.superclass._init.apply(this,arguments)},changeAllState:function(d){if(this.buttonArray){for(var c=0,b=this.buttonArray.length-1;c<b;c++){this.buttonArray[c].setSelectedWithoutEvent(d)}this.buttonArray[this.buttonArray.length-1].setSelected(d)
}},_setItems:function(d){var c=d||[];var b=this;if(b.buttonArray){b.buttonArray.clear()}a.each(c,function(f,g){if(b.options.adaptive){var e=a("<span></span>").addClass(b.sbox_class).appendTo(b.$container)}else{var e=a("<span/>").addClass(b.sbox_class);var h={column:f%b.gridConfig.columns,row:Math.floor(f/b.gridConfig.columns),el:e};b.gridConfig.items.push(h)}b.buttonArray[f]=b.initItemBox(f,g,e);b.buttonArray[f].on(FR.Events.BEFORESTATECHANGE,function(){b.fireEvent(FR.Events.BEFORESTATECHANGE)});
b.buttonArray[f].on(FR.Events.STATECHANGE,function(){b.fireEvent(FR.Events.STATECHANGE,f,this.selected());b._checkInnerBoxState();b.fireEvent(FR.Events.AFTEREDIT)})});this._checkChooseAll()},initItemBox:function(c,d,b){return new FR.CheckBox({renderEl:a("<div/>").appendTo(b),disabled:this.options.disabled,text:d.getShowValue(),fieldValue:d.getValue(),sessionID:this.options.sessionID,widgetName:this.options.widgetName,fontSize:this.options.fontSize})},initInnerBox:function(b){return new FR.CheckBox({renderEl:b,disabled:this.options.disabled,text:FR.i18nText("Fine-Engine_Choose_All"),fontSize:this.options.fontSize})
},getSelectedItems:function(){return a(".fr-checkbox-checkon",this.$container)},doResize:function(b){FR.ToggleButtonGroup.superclass.doResize.call(this,b);this._checkTable()},_checkChooseAll:function(){if(!this.options.adaptive){this.grid=new FR.GridLayout(this.gridConfig);this.grid.element.doLayout();this._checkTable()}if(this.options.chooseAll){var d;var b=this;if(this.options.adaptive){var c=this.options.form?this.element:this.element.parent();this.options.form||this.element.height(parseInt(c.height())-19);
d=a("<span/>").addClass(this.sbox_class).appendTo(c)}else{d=a("<span/>").addClass(this.sbox_class);var e=this.buttonArray.length;var f={column:e%this.gridConfig.columns,row:Math.floor(e/this.gridConfig.columns),el:d};this.gridConfig.items.push(f)}this.innerCheckBox=b.initInnerBox(d);this.innerCheckBox.on(FR.Events.STATECHANGE,function(){b.changeAllState(b.innerCheckBox.isSelected())})}if(!this.options.adaptive){this.grid=new FR.GridLayout(this.gridConfig);this.grid.element.doLayout();this._checkTable()
}},_checkInnerBoxState:function(){if(this.options.chooseAll){var d=this.getSelectedItems();var b=d.length;if(this.options.form||this.options.adaptive===false){var c=this.innerCheckBox.isSelected()?1:0;b=d.length-c}if(b===this.buttonArray.length){this.innerCheckBox.setSelectedWithoutEvent(true)}else{this.innerCheckBox.setSelectedWithoutEvent(false)}}},getValue:function(){return this.getTV(false)},getText:function(){return this.getTV(true)},getTV:function(c){var b=this;var e=[];var f=this.options.noSelected;
a.each(b.buttonArray,function(g,i){if(f){if(i.selected()){var h=b.options.data.getRecord(g);e[g]=c?h.getShowValue():h.getValue()}else{e[g]=f}}else{if(i.selected()){var j=b.options.data.getRecord(g);e[e.length]=c?j.getShowValue():j.getValue()}}});if(this.options.returnArray){return e}var d=this.options.startSymbol+e.join(this.options.delimiter)+this.options.endSymbol;return d},_dealValueWithEvents:function(f){var b=this;var e=arguments[1];var c=function(){if(b.isBoxBuild!==true){return}clearInterval(d);
var g=b.getValue();if(typeof f==="string"){var j=f.split(b.options.delimiter)}else{var j=a.makeArray(f)}if(!b.options.returnArray){f=f+"";j=f.substring(b.options.startSymbol.length,f.length-b.options.endSymbol.length).split(b.options.delimiter)}for(var h=0;h<b.buttonArray.length;h++){b.buttonArray[h].setSelectedWithoutEvent(false)}a.each(j,function(l,m){for(var o=0,k=b.buttonArray.length;o<k;o++){var n={value:b.buttonArray[o].options.fieldValue,text:b.buttonArray[o].options.text,tarValue:m,matchFn:b.options.flexibleAttr?b.options.flexibleAttr.matchFn:undefined};
if(FR.match(n)){b.buttonArray[o].setSelectedWithoutEvent(true);break}}});b._checkInnerBoxState();if(e!==false){b.fireEvent(FR.Events.CHANGE,f,g)}};if(this.isBoxBuild===true){c();return}var d=setInterval(c,100)},setEnable:function(b){FR.CheckBoxGroup.superclass.setEnable.apply(this,arguments);if(this.innerCheckBox){this.innerCheckBox.setEnable(b)}}});a.shortcut("checkboxgroup",FR.CheckBoxGroup)})(jQuery);
(function(a){FR.RadioGroup=FR.extend(FR.ToggleButtonGroup,{lbox_class:"fr-group-box",sbox_class:"fr-group-span",_init:function(){FR.RadioGroup.superclass._init.apply(this,arguments)},initData:function(){if(this.options.data){return}if(this.options.controlAttr){this.setSource(this.options.controlAttr);this._confirmEvents=function(){this.fireEvent(FR.Events.AFTERINIT)};return}if(this.options.widgetUrl){this.options.data=FR.DataFactory.createSynchronJSONData(this.options.widgetUrl,false);this.options.data.resetStatus(this.createDependencePara4Data())
}else{if(this.options.items){this.options.data=FR.DataFactory.createSynchronArrayData(this.options.items)}}var b=this;this.options.data.afterRead(function(c){if(b.isBoxBuild!==true){b._buildBox(c)}});this.options.data.loadData()},_setItems:function(e){var f=this.options.textalign?this.options.textalign:"left";var d=e||[],b=d.length;var g;if(this.options.widgetName){g=this.options.widgetName}else{g="noNameChild"}var c=this;a.each(d,function(i,j){if(c.options.adaptive){var h=a("<span></span>").addClass(c.sbox_class).css("text-align",f).appendTo(c.$container)
}else{var h=a("<span/>").addClass(c.sbox_class).css("text-align",f);var k={column:i%c.gridConfig.columns,row:Math.floor(i/c.gridConfig.columns),el:h};c.gridConfig.items.push(k)}c.buttonArray[i]=c.initItemRadio(i,j,h,g);c.buttonArray[i].on(FR.Events.BEFORESTATECHANGE,function(){c.fireEvent(FR.Events.BEFORESTATECHANGE)});c.buttonArray[i].on(FR.Events.STATECHANGE,function(){c.assureOneButtonChecked(this);if(this.selected()===true||c.getValue()==""){c.fireEvent(FR.Events.STATECHANGE,i);c.fireEvent(FR.Events.AFTEREDIT)
}else{c.oriValue=c.getValue()}})});if(!c.options.adaptive){this.grid=new FR.GridLayout(this.gridConfig);this.grid.element.doLayout();this._checkTable()}},initItemRadio:function(c,e,b,d){return new FR.RadioButton({renderEl:a("<div/>").appendTo(b),disabled:this.options.disabled,text:e.getShowValue(),fieldValue:e.getValue(),sessionID:this.options.sessionID,name:d,fontSize:this.options.fontSize})},assureOneButtonChecked:function(c){var e=false;if(c.isSelected()){for(var d=0,b=this.buttonArray.length;
d<b;d++){if(this.buttonArray[d]==c){e=true;continue}this.buttonArray[d].setSelectedWithoutEvent(false)}}if(!e&&this.options.assureSelect===true){c.setSelectedWithoutEvent(true)}},getValue:function(){return this.getTV(false)},getText:function(){return this.getTV(true)},getTV:function(c){var b=this;var d="";a.each(b.buttonArray,function(e,g){if(g.selected()){var f=b.options.data.getRecord(e);if(f){d=c?f.getShowValue():f.getValue()}}});return d},_dealValueWithEvents:function(f){var b=this;var e=arguments[1];
var c=function(){if(b.isBoxBuild!==true){return}clearInterval(d);var h=b.options.value;if(typeof f=="boolean"){f=f?"true":"false"}if(!f&&f!==0){return}for(var j=0;j<b.buttonArray.length;j++){b.buttonArray[j].setSelectedWithoutEvent(false)}for(var j=0,g=b.buttonArray.length;j<g;j++){if(b.buttonArray[j].options.fieldValue==f||b.buttonArray[j].options.text==f){if(e!==false){b.buttonArray[j].setSelected(true)}else{b.buttonArray[j].setSelectedWithoutEvent(true)}break}}};if(this.isBoxBuild===true){c();
return}var d=setInterval(c,100)},isValidate:function(b){var c=FR.RadioGroup.superclass.isValidate.apply(this,arguments);if(c===false){if(this.oriValue){this._dealValueWithEvents(this.oriValue)}}return c}});a.shortcut("radiogroup",FR.RadioGroup)})(jQuery);
(function(g){var d=FR.BaseEditor.PluginRegex;d.push({text:"idcardRegex",regex:function(i){return f(i)}});var c=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1];var a=[1,0,10,9,8,7,6,5,4,3,2];function f(i){i=i+"";if(i.length===15){return e(i)}else{if(i.length===18){var j=i.split("");if(b(i)&&h(j)){return true}else{return false}}else{return false}}}function h(j){var l=0;if(j[17].toLowerCase()=="x"){j[17]=10}for(var k=0;k<17;k++){l+=c[k]*j[k]}valCodePosition=l%11;if(j[17]==a[valCodePosition]){return true}else{return false
}}function b(j){var l=j.substring(6,10);var m=j.substring(10,12);var i=j.substring(12,14);var k=new Date(l,parseFloat(m)-1,parseFloat(i));if(k.getFullYear()!=parseFloat(l)||k.getMonth()!=parseFloat(m)-1||k.getDate()!=parseFloat(i)){return false}else{return true}}function e(l){var k=l.substring(6,8);var m=l.substring(8,10);var i=l.substring(10,12);var j=new Date(k,parseFloat(m)-1,parseFloat(i));if(j.getYear()!=parseFloat(k)||j.getMonth()!=parseFloat(m)-1||j.getDate()!=parseFloat(i)){return false}else{return true
}}})(jQuery);
/**
 * Created by yaoh.wu on 2017/7/16.
 * FR.ReportletList 前端控件
 */


(function ($) {

    /**
     *
     * @class FR.ReportletList
     * @extends FR.Widget
     *
     * @cfg {JSON} options 属性配置
     * @cfg {JSON} options.schedule 结果报表数据
     * @cfg {String} options.baseCls dom默认样式class
     * @cfg {Boolean} options.isExpand 列表默认是否打开
     * @cfg {Number} options.minHeight 每个条目的最小高度
     * @cfg {Number} options.maxHeight 每个条目的最大高度
     * @cfg {Number} options.totalMaxHeight 总的最大高度
     * @cfg {Number} options.top 下拉列表 top和 container top之间距离
     * @type {FR.ReportletList}
     */
    FR.ReportletList = FR.extend(FR.Widget, /**@class FR.ReportletList*/{

        /**
         *
         * @returns {void|*}
         * @private
         * @cfg baseCls 默认样式
         * @cfg isExpand 列表默认关闭
         */
        _defaultConfig: function () {
            return $.extend(FR.ReportletList.superclass._defaultConfig.apply(), {
                baseCls: "fr-reportlet-menu-list-default",
                isExpand: false,
                minHeight: 36,
                maxHeight: 60,
                totalMaxHeight: 286,
                top: 28
            });
        },

        /**
         *
         * @private
         */
        _init: function () {
            var schedule = this.options.schedule, self = this;
            //只有存在数据才显示menu
            if (schedule && schedule.others.length > 0) {
                this.options.renderEl = this._createContainer();
                FR.ReportletList.superclass._init.apply(this, arguments);
                this._createContent();
                this.reloadBind2Window = function () {
                    self.reload();
                };
                $(window).on('resize', self.reloadBind2Window);
            }

        },

        /**
         * 重新生成dom节点，实现高度动态调整
         */
        reload: function () {
            //先移除所有dom元素，然后再添加
            FR.ReportletList.superclass.destroy.apply(this, arguments);
            var schedule = this.options.schedule;
            if (schedule && schedule.others.length > 0) {
                this.options.renderEl = this._createContainer();
                FR.ReportletList.superclass._init.apply(this, arguments);
                if (this.isExpand !== undefined) {
                    this.options.isExpand = this.isExpand;
                }
                this._createContent();
            }
        },

        /**
         * 销毁所有dom，并且解除window resize事件的绑定，防止浏览器resize之后重新生成。
         */
        destroy: function () {
            var self = this;
            FR.ReportletList.superclass.destroy.apply(self, arguments);
            $(window).off('resize', self.reloadBind2Window);
        },


        /**
         * 创建 reportlet list 容器
         * 不支持自定义renderEL,控件自己初始化renderEL
         * @private
         */
        _createContainer: function () {
            $('<div id="reportlet-menu-list"></div>')
                .css('top', this.options.top + 'px')
                .css('cursor', 'pointer')
                .prependTo($('body'));
            return $('div#reportlet-menu-list');
        },

        /**
         * 生成reportlet list容器内的dom元素
         * @private
         */
        _createContent: function () {
            var self = this, schedule = this.options.schedule;
            //数据是根据时间排序的，因此第一个就是当前的，剩下的是全部
            var scheduleCurrent = schedule.current;
            var scheduleOthers = schedule.others;

            //当前结果报表
            var $current = $('<div id="current-reportlet"></div>');
            var $ulContent = $('<ul class="reportlet-content"></ul>');
            this._createMenuButton().appendTo($ulContent);
            $ulContent.appendTo($current);
            var $currentContent = $current.find('ul');
            var $currentContainer = $('<li class="reportlet-current-content"></li>');

            //点击当前的就把目录收起来，不然按钮太小了操作不方便
            $currentContainer.on({
                click: function (event) {
                    self.isExpand = !self.isExpand;
                    var $button = self.element.find('div#menu-button');
                    $currentContainer.toggleClass("reportlet-content-list");
                    $currentContainer.find("span.result-path").toggleClass("reportlet-content-ellipsis");
                    if (self.isExpand) {
                        $button.removeClass();
                        $button.addClass('menu-close-button');
                        $currentContainer.css('border-bottom', '#D4D4D4 solid 1px');
                    } else {
                        $button.removeClass();
                        $button.addClass('menu-expand-button');
                        $currentContainer.css('border-bottom', 'none');
                    }
                    self._fadeInOrOut(function () {});
                    $('#current-reportlet .result-list-item').toggle();
                    $('#current-reportlet .result-current-item').toggle();
                    event.stopPropagation();
                }
            });
            if (this.options.isExpand === false) {
                $currentContainer.css('border-bottom', 'none');
            }
            //生成具体信息
            this.otherLetHeight = 0;
            this.currentLetHeight = 0;

            // 传教当前显示的节点
            this._createCurrentContent($currentContainer, scheduleCurrent).appendTo($currentContent);
            // 创建当前报表收起的节点
            this._createDetailsContent($currentContainer, scheduleCurrent, true).appendTo($currentContent);
            this.options.isExpand ? $currentContent.find('.result-current-item').hide() : $currentContent.find('.result-list-item').hide();
            //当前的结果追加到页面上显示
            $current.appendTo(this.element);

            if (scheduleOthers.length > 0) {
                // 其他结果报表
                var $otherLet = $('<div id="reportlet-list"></div>');
                $('<ul class="reportlet-content"></ul>').appendTo($otherLet);
                var $allContent = $otherLet.find('ul');
                for (var i = 0; i < scheduleOthers.length; i++) {
                    var $allContainer = $('<li class="reportlet-content"></li>');

                    (function (i) {
                        var path = scheduleOthers[i].path;
                        var username = scheduleOthers[i].username;
                        var showType = '' + scheduleOthers[i].showType;
                        $allContainer.on({
                            click: function (event) {
                                window.location.href =
                                    '?taskName=' + encodeURIComponent(self.options.taskName) +
                                    '&username=' + encodeURIComponent(username) +
                                    '&path=' + encodeURIComponent(path) +
                                    '&showType=' + showType +
                                    '&taskType=1';
                            },
                            mousedown: function (event) {
                                $(this).css('background', '#D8E8FC');
                            }
                        });

                    })(i);

                    this._createDetailsContent($allContainer, scheduleOthers[i], false).appendTo($allContent);
                }
                $allContent.find('li:last').css('border-bottom', 'none');
                this._makeOtherLetScrollable($otherLet);
                if (!this.options.isExpand) {
                    $otherLet.css('display', 'none');
                }
                $otherLet.appendTo(this.element);
            }
        },

        /**
         * 如果高度超出最大高度，那么出现滚动条
         * @param $otherLet
         * @private
         */
        _makeOtherLetScrollable: function ($otherLet) {
            if (this.otherLetHeight + this.currentLetHeight > this.options.totalMaxHeight) {
                $otherLet.css('overflow-y', 'scroll').css({
                    'height': this.options.totalMaxHeight - this.currentLetHeight,
                    'overflow-y': 'scroll'
                });
            } else {
                $otherLet.css('overflow-y', 'scroll').css({
                    'height': '',
                    'overflow-y': ''
                });
            }
        },

        /**
         * 创建menu按钮 并绑定事件
         * @private
         */
        _createMenuButton: function () {
            //判断当前列表是否展开
            this.isExpand = this.options.isExpand;
            var self = this;
            var $button = this.isExpand
                ? $('<div id="menu-button" class="menu-close-button"></div>')
                : $('<div id="menu-button" class="menu-expand-button"></div>');
            $button.on({
                click: function (event) {
                    var $firstLet = $('li.reportlet-current-content');
                    self.isExpand = !self.isExpand;
                    $firstLet.toggleClass("reportlet-content-list");
                    $firstLet.find("span.result-path").toggleClass("reportlet-content-ellipsis");
                    if (self.isExpand) {
                        $button.removeClass();
                        $button.addClass('menu-close-button');
                        $firstLet.css('border-bottom', '#D4D4D4 solid 1px');
                    } else {
                        $button.removeClass();
                        $button.addClass('menu-expand-button');
                        $firstLet.css('border-bottom', 'none');
                    }
                    self._fadeInOrOut(function () {

                    });
                    $('#current-reportlet .result-list-item').toggle();
                    $('#current-reportlet .result-current-item').toggle();
                    event.stopPropagation();
                }
            });
            return $button;
        },
        /**
         * 创建每一个li节点下的详细内容
         * @private
         * @param $container 容器
         * @param data 数据
         * @param hasExpandButton 是否有收起按钮
         */
        _createDetailsContent: function ($container, data, hasExpandButton) {
            var self = this;
            //生成路径
            var $path = $('<div class="result-path"></div>');
            var path = hasExpandButton ? FR.cjkDecode(data.path) : data.path;
            var array = path.split('/');
            var list = "";

            if (data.param && data.param.length > 0) {
                var params = data.param;
                for (var i = 0; i < params.length; i++) {
                    list += "<div style='float: left; margin-left: 30px; line-height: 30px; white-space: normal;'>" + params[i].key + "：" + params[i].value + "</div>";
                }
            } else if (array[5]) {
                var para = array[5].split(";");
                for (var index = 0; index < para.length; index++) {
                    var paramArr = para[index].split('_');
                    list += "<div style='float: left; margin-left: 30px; line-height: 30px; white-space: normal;'>" + paramArr[0] + "：" + paramArr[1] + "</div>";
                }
            }

            var maxHeight = hasExpandButton ? " max-height: 286px;" : "";
            $path.html("<div style='overflow: auto; font-size: 14px;'>" +
                "    <div style=\"float: left; margin-right: 20px; color: #3296F5;line-height: 30px; \">" + FR.i18nText("Fine-Engine_Basic_Time") +
                "        : " + array[2] + ' ' + array[3].charAt(0) + array[3].charAt(1) + ':' + array[3].charAt(2) + array[3].charAt(3) +
                "    </div>" +
                "    <div style=\"margin-left: 150px; overflow: auto; color: #666;" + maxHeight + "\">" + list +
                "    </div>" +
                "</div>");

            //param
            var $divParam = $('<div class="result-list-item" style="margin-top: 3px;"></div>');
            $path.appendTo($divParam);
            if (hasExpandButton) {
                $path.addClass("reportlet-content-ellipsis");
            } else {
                this._changeStyleWidth($divParam);
            }
            $divParam.appendTo($container);
            return $container;
        },
        /**
         * 创建当前li节点下的详细内容
         * @private
         * @param $container 容器
         * @param data 数据
         */
        _createCurrentContent: function ($container, data) {
            //title
            var $path = $('<span class="result-path" style="margin-left: 0;"></span>');
            var path = FR.cjkDecode(data.path);

            var array = path.split('/');
            var list = "";

            if (data.param && data.param.length > 0) {
                var params = data.param;
                for (var i = 0; i < params.length; i++) {
                    list += "<span style='margin-left: 30px;'>" + params[i].key + "：" + params[i].value + "</span>";
                }
            } else if (array[5]) {
                var para = array[5].split(";");
                for (var index = 0; index < para.length; index++) {
                    var paramArr = para[index].split('_');
                    list += "<span style='margin-left: 30px;'>" + paramArr[0] + "：" + paramArr[1] + "</span>";
                }
            }

            $path.html(
                "<span style='color: #3296F5; margin-right: 20px;'>" +
                FR.i18nText("Fine-Engine_Basic_Time") + " : " + array[2] + ' ' + array[3].charAt(0) + array[3].charAt(1) + ':' + array[3].charAt(2) + array[3].charAt(3) +
                "</span>" +
                list);


            //param
            var $divParam = $('<div class="result-current-item"></div>');
            $path.appendTo($divParam);
            $path.addClass("reportlet-content-ellipsis");
            $divParam.appendTo($container);
            return $container;
        },
        /**
         *
         * 显示或隐藏报表
         * @param callback 展示或隐藏列表之后的回掉函数
         * @private
         */
        _fadeInOrOut: function (callback) {
            //获取其他结果报表所在的div
            var $other = this.element.find("div#reportlet-list");
            if ($other && $other.length > 0) {
                $other.toggle('fast', callback);
            }
        },
        /**
         *
         * @param $divParam div.param
         * @param
         * @private
         */
        _changeStyleWidth: function ($divParam) {
            var amendHeightClass = 'param-amend-height-hidden';
            $divParam.appendTo('body');
            if ($divParam[0].clientHeight > this.options.minHeight) {
                //不断叠加，加一是因为border
                this.otherLetHeight += this.options.maxHeight + 1;
                $divParam.addClass(amendHeightClass);
            } else {
                //不断叠加，加一是因为border
                this.otherLetHeight += this.options.minHeight + 1;
                $divParam.removeClass(amendHeightClass);
            }
        }
    });
    $.shortcut("reportletlist", FR.ReportletList);
}(jQuery));
(function(a){FR.TreeNodeToggleButton=FR.extend(FR.ToggleButton,{selected_class:"x-treenode-expand",unselected_class:"x-treenode-unexpand",son_array:undefined,expand_state:false,_init:function(){FR.TreeNodeToggleButton.superclass._init.apply(this,arguments);if(FR.Browser.isIE()){this.$btn.css("background-position","-1px -2px")}},_node_init:function(){var e=this.options=a.extend({expand:false},this.options);if(e.sonarray&&e.sonarray.length>1){if(e.sonarray[0]==-1){this.expand_mode=0}else{this.expand_mode=1
}var c=_g();var d=c.curLGP;if(!c.TREEMGR){c.TREEMGR=[];c.on(FR.Events.STARTLOAD,function(g){if(c.TREEMGR&&g){c.TREEMGR[g.idx]=null}})}if(!c.TREEMGR[e.reportIndex]){c.TREEMGR[e.reportIndex]={};c.TREEMGR[e.reportIndex].nodes=[];c.TREEMGR[e.reportIndex].location_nodes={}}if(!this.options.parNode){for(var b=0;b<c.TREEMGR[e.reportIndex].nodes.length;b++){var f=c.TREEMGR[e.reportIndex].nodes[b];if(this.initNodeLayer(f)){break}}if(!this.parentNode){c.TREEMGR[e.reportIndex].nodes[c.TREEMGR[e.reportIndex].nodes.length]=this
}}else{if(this.options.parNode!="null"){this.parent=c.TREEMGR[e.reportIndex].location_nodes[this.options.parNode];if(this.parent){if(this.parent.sonNodes){this.parent.sonNodes[this.parent.sonNodes.length]=this}else{this.parent.sonNodes=[];this.parent.sonNodes[0]=this}}}c.TREEMGR[e.reportIndex].location_nodes[this.options.location]=this}this.mgr=c.TREEMGR[this.options.reportIndex];if(!this.mgr.row_expand_state){this.mgr.row_expand_state=[];this.mgr.col_expand_state=[];for(var b=1;b<this.options.sonarray.length;
b++){if(this.expand_mode===0){this.mgr.row_expand_state[this.options.sonarray[b]]=0}else{if(this.expand_mode===1){this.mgr.col_expand_state[this.options.sonarray[b]]=0}}}}this.cells=[]}else{this.expand_mode=-1}},initNodeLayer:function(e){if(e.expand_mode==this.expand_mode){var b=this.options.sonarray[1];for(var c=1;c<e.options.sonarray.length;c++){if(b==e.options.sonarray[c]){if(e.sonNodes){for(var d=0;d<e.sonNodes.length;d++){if(this.initNodeLayer(e.sonNodes[d])){return true}}e.sonNodes[e.sonNodes.length]=this;
this.parentNode=e}else{e.sonNodes=[];e.sonNodes[0]=this;this.parentNode=e}return true}else{if(b<e.options.sonarray[c]){return false}}}}return false},onNodeClick:function(){this.treeNodeClick()},treeNodeClick:function(){if(!this.options.sonarray){}else{this.TreeNodeAction(!this.expand_state)}this.fireEvent(FR.Events.CLICK);_g().fireEvent("refresh")},hideTr:function(b){if(FR.Browser.isIE9()){var d=null;var e=a(b);for(;!e.is("BODY");e=e.parent()){if(e.is("TABLE")){d=e;break}}if(d==null){return}var c=d.css("border-collapse");
d.css("border-collapse","separate");a(b).css("display",this.expand_state?"none":"");d.css("border-collapse",c)}else{a(b).css("display",this.expand_state?"none":"")}},dealwithSelfSonArray:function(){var b=this;if(!this.options.isSonLoaded&&this.expand_mode===0){var g=b.options.$tr;var e=parseInt(this.options.$td.attr("rowspan"));if(e>1){g=b.mgr.tr_array[parseInt(g.attr("tridx"))+e-1]}FR.ajax({url:FR.servletURL+"?op=fr_view&cmd=read_t_content&sessionID="+_g().currentSessionID,type:"POST",data:{"son":this.options.sonarray},timeout:600000,async:false,complete:function(m,k){if(k=="success"){b.options.isSonLoaded=true;
var n=FR.jsonDecode(m.responseText);for(var l=n.length-1;l>-1;l--){var j=a(n[l]);g.after(j);b.mgr.tr_array[b.options.sonarray[l+1]]=j}a.each(b.mgr.tr_array,function(i,o){if(o){a.each(o.children("td[tdcol]"),function(q,r){r=a(r);var p=parseInt(r.attr("tdcol"));if(!b.mgr.td_table){b.mgr.td_table=[]}if(!b.mgr.td_table[p]){b.mgr.td_table[p]=[]}if(!b.mgr.td_table[p][i]){b.mgr.td_table[p][i]=r;if(b.mgr.col_expand_state[p]===1){r.css("display","")}}})}})}}})}if(this.options.needInit===false){this.result_son_array=this.options.sonarray
}else{if(this.sonNodes){for(var d=0;d<this.sonNodes.length;d++){var h=1;for(var c=1;c<this.sonNodes[d].options.sonarray.length&&h<this.options.sonarray.length;c++){if(this.options.sonarray[h]==-1||this.sonNodes[d].options.sonarray[c]>this.options.sonarray[h]){c--;h++;continue}else{if(this.sonNodes[d].options.sonarray[c]==this.options.sonarray[h]){this.options.sonarray[h]=-1;h++;continue}}}}this.result_son_array=[];this.result_son_array[0]=this.options.sonarray[0];for(var d=1;d<this.options.sonarray.length;
d++){if(this.options.sonarray[d]>=0){this.result_son_array[this.result_son_array.length]=this.options.sonarray[d]}}}else{this.result_son_array=this.options.sonarray}}if(this.expand_mode===0){var f;for(var d=this.result_son_array.length-1;d>0;d--){f=this.mgr.tr_array[this.result_son_array[d]];if(!f.hasClass("tntr")){this.result_son_array.splice(d,1)}}}},TreeNodeAction:function(b){if(b==this.expand_state){return}var o=this;if(!this.mgr){this.mgr=_g().TREEMGR[this.options.reportIndex]}if(!this.mgr.tr_array){var g=_g().curLGP;
this.mgr.tr_array=[];var c;var d=a(".frozen-center",g.$container);var m=a(".frozen-west",g.$container);var h=a(".frozen-north",g.$container);var n=d;if(m.length>0&&m[0].contains(this.$btn[0])){n=m}else{if(h.length>0&&h[0].contains(this.$btn[0])){n=h}}var k=a("table:eq(0)",n.length>0?n:g.$container);a.each((k.children("tbody")).children("tr[tridx]"),function(i,v){c=a(v);o.mgr.tr_array[parseInt(c.attr("tridx"))]=c})}if(!this.result_son_array){this.dealwithSelfSonArray()}this.selected(b);if(this.expand_mode===0){var p=this.options.$td;
if(p.attr("relatedPar")){var u=p.attr("id");var s=u.indexOf("-");if(s>0){var l=this.expand_state?-(this.result_son_array.length-1):(this.result_son_array.length-1);var q=p.attr("relatedPar").split(",");a.each(q,function(i,w){var v=w+u.substr(s);var x=a("#"+v);if(x.length>0){x.attr("rowspan",parseInt(x.attr("rowspan"))+l)}})}}var c;for(var r=1;r<this.result_son_array.length;r++){c=this.mgr.tr_array[this.result_son_array[r]];if(c){this.hideTr(c);if(FR.Browser.isIE()){if(!this.cells[this.result_son_array[r]]){this.cells[this.result_son_array[r]]=[];
var j;a.each(c.children("td[tdcol]"),function(i,v){j=a(v);o.cells[o.result_son_array[r]][parseInt(j.attr("tdcol"))]=j})}a.each(this.cells[this.result_son_array[r]],function(i,v){if(!v||(!o.expand_state&&(o.mgr.col_expand_state[i]===0||(o.mgr.col_expand_state[i]==null&&v.attr("realhd")!=null)))){return}v.css("display",o.expand_state?"none":"")})}this.mgr.row_expand_state[this.result_son_array[r]]=this.expand_state?0:1}}}else{if(this.expand_mode===1){var e=this.result_son_array[0];var j;var f;if(!this.mgr.td_table){this.mgr.td_table=[];
a.each(o.mgr.tr_array,function(i,v){if(v){a.each(v.children("td[tdcol]"),function(w,x){x=a(x);f=parseInt(x.attr("tdcol"));if(!o.mgr.td_table[f]){o.mgr.td_table[f]=[]}o.mgr.td_table[f][i]=x})}})}var t;for(var r=1;r<o.result_son_array.length;r++){t=o.mgr.td_table[o.result_son_array[r]];if(t){a.each(t,function(i,v){if(v){if(!o.expand_state&&o.mgr.row_expand_state[i]===0){if(FR.Browser.isIE()){return}}v.css("display",o.expand_state?"none":"")}})}}for(var r=1;r<this.result_son_array.length;r++){this.mgr.col_expand_state[this.result_son_array[r]]=this.expand_state?0:1
}}}if(this.sonNodes){if(this.expand_state){this.last_son_state=[];for(var r=0;r<this.sonNodes.length;r++){this.last_son_state[r]=this.sonNodes[r].selected();this.sonNodes[r].TreeNodeAction(false)}}else{if(this.last_son_state){for(var r=0;r<this.sonNodes.length;r++){this.sonNodes[r].TreeNodeAction(this.last_son_state[r])}}}}this.expand_state=!this.expand_state}});a.shortcut("treenode",FR.TreeNodeToggleButton)})(jQuery);
(function () {
    FR.LargeDatasetExcelExport = FR.extend(FR.Form, {
        largeDatasetExcelExport: function (xmlConf, jsonConf, target) {
            var entityField = jsonConf.nxEntityField;
            // 适配新引擎使用 json 字段传值
            var dsName = entityField.dsName;
            var fileName = entityField.fileName;
            var colNames = entityField.colNames;
            var params = entityField.params;
            // 将面板中的数据原样传到处理器代码中获取
            var large_dataset_excel_export_conf = xmlConf.large_dataset_excel_export_conf;
            var wigets = xmlConf.widgetParams;
            var params = {};
            for (var key in wigets) {
                params[key] = getWidgetValueByName(wigets[key])[wigets[key]];
            }
            var paramStr = JSON.stringify(params);
            paramStr = encodeURIComponent(paramStr);
            var functions = xmlConf.functionParams;
            var functionParams = {};
            for (var key in functions) {
                var wigetArr = functions[key];
                var object = {};
                for (var i = 0; i < wigetArr.length; i++) {
                    object[wigetArr[i]] = getWidgetValueByName(wigetArr[i])[wigetArr[i]];
                }
                functionParams[key] = object;
            }
            var functionParamsStr = JSON.stringify(functionParams);
            functionParamsStr = encodeURIComponent(functionParamsStr);

            //定义数组存放控件名称
            function getWidgetValueByName(name) {
                var widget = _g().parameterEl.getWidgetByName(name);
                var obj = {};
                //根据控件名获取控件值
                if (widget == undefined) {
                    obj[name] = "";
                    return obj;
                }
                obj[name] = widget.getValue();
                return obj;
                //返回控件值组成的数组
            }

            function excelExport() {
                var checkHandlerUrl;
                var excelExportSID;
                var reportPrefix;
                if (typeof BI === "undefined") {
                    reportPrefix = FR.fineServletURL;
                    // 老引擎下使用FR.fineServletURL获取请求前缀
                    checkHandlerUrl = reportPrefix + "/url/report/largedataset/export/check";
                    excelExportSID = FR.SessionMgr.getSessionID();
                } else {
                    reportPrefix = Report.RequestPrefix;
                    //cpt用新引擎方式预览
                    if (reportPrefix.endWith("v9")) {
                        reportPrefix = reportPrefix.replace("v9", "url/report/v9")
                    }
                    // 新引擎下使用 Report
                    checkHandlerUrl = reportPrefix + "/largedataset/check";
                    excelExportSID = Report.SessionMgr.get();
                }
                FR.ajax({
                    // 2. ajax请求用来处理所有异常情况，暂时只有非关系型数据库不支持报错 case。
                    url: checkHandlerUrl,
                    type: 'POST',
                    data: {
                        dsName: dsName,
                        sessionID: excelExportSID
                    },
                    // 根后端接收校验处理器的返回值，如果异常了就不再调用真正的导出接口，正常则再回调保持原有的 form 请求导出处理器（因为 ajax 请求在火狐下有问题）
                    complete: function (res) {
                        var check_resp = FR.jsonDecode(res.responseText);
                        var excelExportURL = "";
                        // 修改判断机制，校验数据不为 true 时直接提示返回，不再发起导出请求
                        if (check_resp.isSupportedDB !== true) { // 仅当后端捕获并设置异常值时才弹窗提示错误
                            FR.Msg.toast(FR.i18nText("Fine-Plugin-LargeDatasetExcelExport_DB_Not_Supported"));
                            return;
                        }
                        // 判断 url 不可取，多处场景下 url 中根本没有 cpt(x) 信息，改用判断新引擎才有的变量 BI
                        if (typeof BI === "undefined") {
                            // 老引擎url处理器
                            excelExportURL = reportPrefix + "/url/report/largedataset/export/excel" + "?sessionID=" + FR.SessionMgr.getSessionID() +
                                "&large_dataset_excel_export_conf=" + large_dataset_excel_export_conf +
                                "&__parameters__=" + paramStr + "&functionParams=" + functionParamsStr; // 将点击导出按钮时的会话中的参数都传到后端，方便数据集参数值的计算
                            formDownloadExcel(excelExportURL);
                        } else {
                            // 兼容 IE11 写法
                            // 协作后端的判空处理
                            excelExportURL += "&dsName=" + dsName; // 不会为空,因此不判空
                            if (fileName !== undefined) {
                                excelExportURL += "&fileName=" + fileName;
                            } else {
                                excelExportURL += "&fileName=" + "";
                            }
                            if (params !== undefined) {
                                excelExportURL += "&params=" + large_dataset_excel_export_conf;
                            }
                            if (colNames !== undefined) {
                                excelExportURL += "&colNames=" + colNames;
                            } else {
                                excelExportURL += "&colNames=" + "";
                            }
                            excelExportURL += "&__parameters__=" + paramStr;
                            excelExportURL += "&functionParams=" + functionParamsStr;
                            // 新引擎下前端获取请求地址前缀的方法
                            // 兼容模式 v9  适配新引擎插件下 restful 规范，一杠一单词
                            excelExportURL = reportPrefix + "/largedataset/export/excel" + "?sessionID=" + Report.SessionMgr.get() + excelExportURL;
                            formDownloadExcel(excelExportURL);
                        }
                    }
                });
            }

            excelExport();
        }
    });
})();

function formDownloadExcel(url) {
    var form = $("<form>");
    $("body").append(form);
    if (url.indexOf('?') !== -1) { // 有问号
        var urlParamsStr = url.substr(url.indexOf('?') + 1); // url 问号之后所有参数字符串
        var urlParamsSplitted = urlParamsStr.split('&'); // 有几个参数
        for (var i = 0; i < urlParamsSplitted.length; i++) {
            var urlParamsItem = urlParamsSplitted[i]; // 由等号连接的参数项
            var urlParamsItemSplitted;
            urlParamsItemSplitted = urlParamsItem.split(/^(.+?)=/);
            if (urlParamsItemSplitted.length === 3) { // 有多余等号的不会添加到请求中,需要正则处理,由于正则,第一个都是空串需要跳过
                // 兼容 IE11 写法
                var key = urlParamsItemSplitted[1], value = urlParamsItemSplitted[2];
                $('<input/>').attr('name', key).val(value).appendTo(form);
            }
        }
        url = url.substring(0, url.indexOf('?'));
    } else {
        var input = $("<input>");
        form.append(input);
    }
    form.attr({"style": "display : none", "target": "", "method": "post", "action": url});
    form.submit();
    form.remove();
}
(function(a){FR.PagePane=FR.extend(FR.BasePane,{rtype:"page",doAfterCollapse:function(){var b=a(".frozen-page",contentPane.$contentPane);if(b&&b.length>0){FR.layoutFrozen(b,contentPane.$contentPane.offset().top)}}});FR.PagePane.exetendPara={};a.shortcut("page",FR.PagePane);FR.PreviewPane=FR.extend(FR.BasePane,{rtype:"preview"});a.shortcut("preview",FR.PreviewPane);FR.SimpleSheetPane=FR.extend(FR.BasePane,{rtype:"simplesheet",loadReportPane:function(b){}});a.shortcut("simplesheet",FR.SimpleSheetPane)
})(jQuery);
(function(a){FR.ViewPane=FR.extend(FR.BasePane,{rtype:"view",doAfterCollapse:function(){var b=a(".frozen-center",this.$container);if(b&&b.length>0){FR.layoutFrozen(contentPane.curLGP.$sheet_container,contentPane.curLGP.$sheet_container.offset().top)}}});a.shortcut("view",FR.ViewPane)})(jQuery);
(function(a){FR.AnalysisPane=FR.extend(FR.BasePane,{rtype:"analysis"});a.shortcut("analysis",FR.AnalysisPane)})(jQuery);
(function(a){FR.EditPane=FR.extend(FR.BasePane,{rtype:"edit"});a.shortcut("edit",FR.EditPane)})(jQuery);
(function(a){FR.WritePane=FR.extend(FR.BasePane,{rtype:"write",doAfterCollapse:function(){if(contentPane.curLGP&&contentPane.curLGP.$sheet_container&&contentPane.curLGP.isFrozen()){FR.layoutFrozen(contentPane.curLGP.$sheet_container,contentPane.curLGP.$sheet_container.offset().top)}}});a.shortcut("write",FR.WritePane)})(jQuery);