qcell-react 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/50.index.js +2 -0
- package/dist/543.index.js +2 -0
- package/dist/543.index.js.LICENSE.txt +8 -0
- package/dist/604.index.js +2 -0
- package/dist/604.index.js.LICENSE.txt +9 -0
- package/dist/index.js +2 -0
- package/dist/{vendors.b30d787b50e98a74d89b.js.LICENSE.txt → index.js.LICENSE.txt} +5 -19
- package/package.json +3 -3
- package/dist/default-.10cd5844c750d502d3f9.js +0 -2
- package/dist/default-main.ce13a4608ca8fad9297b.js +0 -1
- package/dist/default-main~qcell.72212abaef2b0a173c53.js +0 -2
- package/dist/default-main~qcell.72212abaef2b0a173c53.js.LICENSE.txt +0 -4
- package/dist/main.c5861704066fd7030aa2.js +0 -1
- package/dist/qcell-react.js +0 -1
- package/dist/qcell.a36a5a0578e9482fcff3.js +0 -1
- package/dist/vendors.b30d787b50e98a74d89b.js +0 -2
- /package/dist/{default-.10cd5844c750d502d3f9.js.LICENSE.txt → 50.index.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see default-main~qcell.72212abaef2b0a173c53.js.LICENSE.txt */
|
|
2
|
-
(this.webpackChunkqcell_react=this.webpackChunkqcell_react||[]).push([[215],{2395:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>g});var r=i(1283),s=(i(1325),i(1163),i(706),i(6362),i(5093)),a=i.n(s),o=(i(745),i(6594));function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}t=i.hmd(t);var l=function(){return Promise.resolve().then(i.t.bind(i,4692,23))},c={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return c.Android()||c.BlackBerry()||c.iOS()||c.Opera()||c.Windows()}};c.any()&&i.e(307).then(i.t.bind(i,1050,23)),function(t){var e=new r._QHashtable,i=[[".",","],[",","."],[","," "],[".","'"]],s=[["ae","au","ca","cn","eg","gb","hk","il","in","jp","sk","th","tw","us"],["at","br","de","dk","es","gr","it","nl","pt","tr","vn"],["bg","cz","fi","fr","no","pl","ru","se"],["ch"]];function a(t,e,i){this.dec=t,this.group=e,this.neg=i}function o(t,r){0==e.size()&&function(){for(var t=0;t<s.length;t++)for(var i=s[t],r=0;r<i.length;r++)e.put(i[r],t)}();var o=".",n=",";0==r&&(-1!=t.indexOf("_")?t=t.split("_")[1].toLowerCase():-1!=t.indexOf("-")&&(t=t.split("-")[1].toLowerCase()));var l=e.get(t);if(l){var c=i[l];c&&(o=c[0],n=c[1])}return new a(o,n,"-")}t.fn.formatNumber=function(e,i,r){return this.each((function(){var s;null==i&&(i=!0),null==r&&(r=!0),s=t(this).is(":input")?new String(t(this).val()):new String(t(this).text());var a=t.formatNumber(s,e);if(i&&(t(this).is(":input")?t(this).val(a):t(this).text(a)),r)return a}))},t.formatNumber=function(e,i){for(var r=o((i=t.extend({},t.fn.formatNumber.defaults,i)).locale.toLowerCase(),i.isFullLocale),s=(r.dec,r.group,r.neg,"0#-,."),a="",n=!1,l=0;l<i.format.length;l++){if(-1!=s.indexOf(i.format.charAt(l))){if(0==l&&"-"==i.format.charAt(l)){n=!0;continue}break}a+=i.format.charAt(l)}var c="";for(l=i.format.length-1;l>=0&&-1==s.indexOf(i.format.charAt(l));l--)c=i.format.charAt(l)+c;i.format=i.format.substring(a.length),i.format=i.format.substring(0,i.format.length-c.length);var h=new Number(e);return t._formatNumber(h,i,c,a,n)},t._formatNumber=function(e,i,r,s,a){var n=o((i=t.extend({},t.fn.formatNumber.defaults,i)).locale.toLowerCase(),i.isFullLocale),l=n.dec,c=n.group,h=n.neg;null!=i.overrideGroupSep&&(c=i.overrideGroupSep),null!=i.overrideDecSep&&(l=i.overrideDecSep),null!=i.overrideNegSign&&(h=i.overrideNegSign);var u=!1;if(isNaN(e)){if(1!=i.nanForceZero)return"";e=0,u=!0}(1==i.isPercentage||i.autoDetectPercentage&&"%"==r.charAt(r.length-1))&&(e*=100);var d="";if(i.format.indexOf(".")>-1){var p=l,f=i.format.substring(i.format.lastIndexOf(".")+1);if(1==i.round)e=new Number(e.toFixed(f.length));else{var g=e.toString();g.lastIndexOf(".")>0&&(g=g.substring(0,g.lastIndexOf(".")+f.length+1)),e=new Number(g)}var _=new Number(e.toString().substring(e.toString().indexOf(".")));decimalString=new String(_.toFixed(f.length)),decimalString=decimalString.substring(decimalString.lastIndexOf(".")+1);for(var C=0;C<f.length;C++)if("#"!=f.charAt(C)||"0"==decimalString.charAt(C)){if("#"==f.charAt(C)&&"0"==decimalString.charAt(C)){if(decimalString.substring(C).match("[1-9]")){p+=decimalString.charAt(C);continue}break}"0"==f.charAt(C)&&(p+=decimalString.charAt(C))}else p+=decimalString.charAt(C);d+=p}else e=Math.round(e);var L=Math.floor(e);e<0&&(L=Math.ceil(e));var m="";m=-1==i.format.indexOf(".")?i.format:i.format.substring(0,i.format.indexOf("."));var E="";if(0!=L||"#"!=m.substr(m.length-1)||u){var v=new String(Math.abs(L)),b=9999;-1!=m.lastIndexOf(",")&&(b=m.length-m.lastIndexOf(",")-1);var y=0;for(C=v.length-1;C>-1;C--)E=v.charAt(C)+E,++y==b&&0!=C&&(E=c+E,y=0);if(m.length>E.length){var w=m.indexOf("0");if(-1!=w)for(var x=m.length-w,Q=m.length-E.length-1;E.length<x;){var k=m.charAt(Q);","==k&&(k=c),E=k+E,Q--}}}return E||-1===m.indexOf("0",m.length-1)||(E="0"),d=E+d,e<0&&a&&s.length>0?s=h+s:e<0&&(d=h+d),i.decimalSeparatorAlwaysShown||d.lastIndexOf(l)==d.length-1&&(d=d.substring(0,d.length-1)),d=s+d+r},t.fn.parseNumber=function(e,i,r){var s;null==i&&(i=!0),null==r&&(r=!0),s=t(this).is(":input")?new String(t(this).val()):new String(t(this).text());var a=t.parseNumber(s,e);if(a&&(i&&(t(this).is(":input")?t(this).val(a.toString()):t(this).text(a.toString())),r))return a},t.parseNumber=function(e,i){var r=o((i=t.extend({},t.fn.parseNumber.defaults,i)).locale.toLowerCase(),i.isFullLocale),s=r.dec,a=r.group,n=r.neg;null!=i.overrideGroupSep&&(a=i.overrideGroupSep),null!=i.overrideDecSep&&(s=i.overrideDecSep),null!=i.overrideNegSign&&(n=i.overrideNegSign);for(var l=".-",c=i.strict;e.indexOf(a)>-1;)e=e.replace(a,"");e=e.replace(s,".").replace(n,"-");var h="",u=!1;(1==i.isPercentage||i.autoDetectPercentage&&"%"==e.charAt(e.length-1))&&(u=!0);for(var d=0;d<e.length;d++)if("1234567890".indexOf(e.charAt(d))>-1)h+=e.charAt(d);else if(l.indexOf(e.charAt(d))>-1)h+=e.charAt(d),l=l.replace(e.charAt(d),"");else{if(i.allowPostfix)break;if(c){h="NaN";break}}var p=new Number(h);if(u){p/=100;var f=h.indexOf(".");if(-1!=f){var g=h.length-f-1;p=p.toFixed(g+2)}else p=p.toFixed(2)}return p},t.fn.parseNumber.defaults={locale:"us",decimalSeparatorAlwaysShown:!1,isPercentage:!1,autoDetectPercentage:!0,isFullLocale:!1,strict:!1,overrideGroupSep:null,overrideDecSep:null,overrideNegSign:null,allowPostfix:!1},t.fn.formatNumber.defaults={format:"#,###.00",locale:"us",decimalSeparatorAlwaysShown:!1,nanForceZero:!0,round:!0,isFullLocale:!1,overrideGroupSep:null,overrideDecSep:null,overrideNegSign:null,isPercentage:!1,autoDetectPercentage:!0},Number.prototype.toFixed=function(e){return t._roundNumber(this,e)},t._roundNumber=function(t,e){var i=Math.pow(10,e||0),r=String(Math.round(t*i)/i);if(e>0){var s=r.indexOf(".");for(-1==s?(r+=".",s=0):s=r.length-(s+1);s<e;)r+="0",s++}return r}}(l);var h,u=i(1660);void 0===l.fn.inputmask&&(l.fn.inputmask=function(t,e){var i,r=this[0];if(void 0===e&&(e={}),"string"==typeof t)switch(t){case"unmaskedvalue":return r&&r.inputmask?r.inputmask.unmaskedvalue():l().val();case"remove":return this.each((function(){this.inputmask&&this.inputmask.remove()}));case"getemptymask":return r&&r.inputmask?r.inputmask.getemptymask():"";case"hasMaskedValue":return!!(r&&r.inputmask&&r.inputmask.hasMaskedValue());case"isComplete":return!!(r&&r.inputmask&&r.inputmask.isComplete());case"getmetadata":return r&&r.inputmask?r.inputmask.getmetadata():void 0;case"setvalue":l().val(e),r&&void 0===r.inputmask&&l().triggerHandler("setvalue");break;case"option":if("string"!=typeof e)return this.each((function(){void 0!==this.inputmask&&this.inputmask.option(e)}));if(r&&void 0!==r.inputmask)return r.inputmask.option(e);break;default:return e.alias=t,i=new u(e),this.each((function(){i.mask(this)}))}else{if("object"===n(t))return i=new u(t),void 0===t.mask&&void 0===t.alias?this.each((function(){void 0!==this.inputmask?this.inputmask.option(t):i.mask(this)})):this.each((function(){i.mask(this)}));if(void 0===t)return this.each((function(){(i=new u(e)).mask(this)}))}}),(h=l.datepicker).regional.en={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},h.setDefaults(h.regional.en),h.regional.en,function(t){t.regional.ko={closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"주",dateFormat:"yy. m. d.",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"년"},t.setDefaults(t.regional.ko),t.regional.ko}(l.datepicker);var d=i(7063),p=i(1396),f={config:{locale:"kr"},def:{key:{ENTER:13,ESC:27,BACKSPACE:8,SPACE:32,TAB:9,SHIFT:16,CTRL:17,ALT:18,PAGEUP:33,PAGEDOWN:34,LEFT:37,UP:38,RIGHT:39,DOWN:40,F2:113,C:67,V:86,DELETE:46},which:{LEFT_BUTTON:1,MIDDLE_BUTTON:2,RIGHT_BUTTON:3}},util:{},st:{},$:l.noConflict(),_:function(){return i.e(96).then(i.t.bind(i,2543,23))}.noConflict(),s:function(){return i.e(96).then(i.t.bind(i,9604,23))},moment:a(),log:function(t,e,i,r){var s=new Date;console.log("["+s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()+"]["+e+"]["+("err"===t?"ERROR][":"LOG][")+i+"()] "+r)},hasInstance:function(t,e){return!!t.storage.containsKey(e)},getInstance:function(t,e){return t.storage.containsKey(e)?t.storage.get(e):null},getInstanceIDs:function(t){return t.storage.keys()},deleteInstance:function(t,e){return!!t.storage.containsKey(e)&&(t.storage.get(e).destroy(),t.storage.remove(e),!0)},deleteAllInstances:function(t){var e=!0;return t.storage.each((function(i){!1===t.deleteInstance(i)&&(e=!1)})),e},License:{key:"RightTechLicense",value:"U2FsdGVkX19T7Nd3e2J04HRtOdB87u87FU5w0bYRWmQ="},checkLicense:function(t,e){var i=p.AES.decrypt(t,p.AES.decrypt(f.License.value,f.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8);return""!==i&&i===e},decryptLicense:function(t){return p.AES.decrypt(t,p.AES.decrypt(f.License.value,f.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8)}};f.st.asc=function(t,e){return t-e},f.st.desc=function(t,e){return e-t},f.st.eventProcess=function(t){var e=t.data.target;e&&e.tag()&&e.tag().indexOf("QBOX")>-1&&e._defaultAction.apply(e,arguments)},Array.prototype.indexOf=function(t,e){return f._.indexOf(this,t,e)},Array.prototype.lastIndexOf=function(t,e){return f._.lastIndexOf(this,t,e)},Array.prototype.swap=function(t,e){var i=this[t];this[t]=this[e],this[e]=i,i=null},Array.prototype.RT_move=function(t,e){if(t>this.length||e>this.length||t<0||e<0)return!1;var i=this.splice(t,1)[0];return this.splice(e,0,i),!0},Array.prototype.RT_insert=function(t,e){this.splice(t,0,e)},Array.prototype.RT_insertArray=function(t,e){for(var i=f._.clone(e).reverse(),r=0,s=i.length;r<s;r++)this.RT_insert(t,i[r])},Array.prototype.RT_clear=function(){for(;this.length;)this.pop()},Array.prototype.RT_clone=function(){return f._.clone(this)},Array.prototype.RT_union=function(t){for(var e=[],i=0;i<t.length;i++)-1===f._.indexOf(this,t[i],!0)&&e.push(t[i]);return this.concat(e).sort(f.st.asc)},Array.prototype.RT_intersection=function(t){for(var e=[];this.length>0&&t.length>0;)this[0]<t[0]?this.shift():(this[0]>t[0]||e.push(this.shift()),t.shift());return e},Array.prototype.RT_difference=function(t){for(var e=0,i=t.length;e<i;e++){var r=f._.indexOf(this,t[e],!0);r>-1&&this.splice(r,1)}return this},f.util._extendSortMultiple=function(){if(arguments[1]instanceof Array){for(var t=arguments[1],e=[],i=[],r=[],s=0;s<t.length;s++)e.push(t[s][0]),i.push(void 0===t[s][1]||"asc"!==t[s][1]&&"desc"!==t[s][1]?"asc":t[s][1]),r.push(void 0===t[s][2]||"string"!==t[s][2]&&"number"!==t[s][2]?"string":t[s][2]);return function(t,s,a){for(var o=0,n=0,l=e.length;0===n&&o<l;)n=f.util._extendSort(e[o],i[o],r[o])(t,s,a),o++;return n}}if("string"==typeof arguments[1]||"number"==typeof arguments[1]){var a=arguments[1],o=void 0===arguments[2]||"asc"!==arguments[2]&&"desc"!==arguments[2]?"asc":arguments[2],n=void 0===arguments[3]||"string"!==arguments[3]&&"number"!==arguments[3]?"string":arguments[3];return function(t,e,i){return f.util._extendSort(a,o,n)(t,e,i)}}},f.util._extendSort=function(t,e,i){return"asc"===e?e=1:"desc"===e&&(e=-1),"number"===i?function(i,r){var s,a;return null===(s=i[t])&&(s=""),null===(a=r[t])&&(a=""),void 0!==s&&f._.isString(s)&&(s=f.util.replaceAll(s,",","")),void 0!==a&&f._.isString(a)&&(a=f.util.replaceAll(a,",","")),s=Number(i[t]),a=Number(r[t]),isNaN(s)&&(s=""),isNaN(a)&&(a=""),void 0===s&&void 0!==a?(""-a)*e:void 0!==s&&void 0===a?(s-"")*e:(s-a)*e}:function(i,r){var s=i[t],a=r[t];return null===s&&(s=""),null===a&&(a=""),void 0===s&&void 0!==a?(""<a?-1:"">a?1:0)*e:void 0!==s&&void 0===a?(s<""?-1:s>""?1:0)*e:(s<a?-1:s>a?1:0)*e}},Array.prototype.RT_sortBy=function(){return this.sort(f.util._extendSortMultiple.apply(null,arguments))},f.util.RT_sortBy=function(t){return t.sort(f.util._extendSortMultiple.apply(null,arguments))},f.util.rAF=null,f.util.cAF=null,function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i<e.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[e[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[i]+"CancelAnimationFrame"]||window[e[i]+"CancelRequestAnimationFrame"];f.util.rAF=window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(e){var i=(new Date).getTime(),r=Math.max(0,2-(i-t)),s=window.setTimeout((function(){e(i+r)}),r);return t=i+r,s},f.util.cAF=window.cancelAnimationFrame?function(t){window.cancelAnimationFrame(t)}:function(t){window.clearTimeout(t)}}(),f.util.inherit=function(t,e){t.prototype=new e},f.util.addMethod=function(t,e,i){var r=t[e];t[e]=function(){return i.length===arguments.length?i.apply(this,arguments):"function"==typeof r?r.apply(this,arguments):void 0}},f.util.checkType=function(t,e){var i=!1;switch(e){case"array":i=!!f._.isArray(t);break;case"boolean":i="boolean"==typeof t;break;case"element":i=!!f._.isElement(t);break;case"function":i=!!f._.isFunction(t);break;case"jquery":i=!(!t||!t.jquery);break;case"number":i="number"==typeof t;break;case"object":i="object"==n(t);break;case"string":i="string"==typeof t;break;default:i=!1}return i},f.util.addClass=function(t,e){if(!(arguments.length<2)&&e&&("string"==typeof e||f._.isArray(e))&&(f._.isElement(t)&&(t=[t]),f._.isArray(t)))for(var i="string"==typeof e?e.split(/\s+/):e,r=0,s=t.length;r<s;r++){var a=t[r];if(f._.isElement(a))if(a.className||1!==i.length){for(var o=" "+a.className+" ",n=0,l=i.length;n<l;n++)~o.indexOf(" "+i[n]+" ")||(o+=i[n]+" ");a.className=f.$.trim(o)}else a.className=e;a=null}},f.util.removeClass=function(t,e){if(!(arguments.length<1)&&(e&&("string"==typeof e||f._.isArray(e))||void 0===e)&&(f._.isElement(t)&&(t=[t]),f._.isArray(t)))for(var i,r,s="string"==typeof e?(e||"").split(/\s+/):e,a=/[\n\t\r]/g,o=0,n=t.length;o<n;o++){if(i=t[o],f._.isElement(i))if(e){r=(" "+i.className+" ").replace(a," ");for(var l=0,c=s.length;l<c;l++)r=r.replace(" "+s[l]+" "," ");i.className=f.$.trim(r)}else i.className="";i=null}},f.util.hasClass=function(t,e){if(f._.isElement(t)&&e&&("string"==typeof e||f._.isArray(e))){var i=" "+("string"==typeof e?e:e.join().replace(/,/gi," "))+" ";if(1===t.nodeType&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\t\r\n\f]/g," ").indexOf(i)>-1)return!0}return!1},f.util.bind=function(t,e,i){return!!f._.isArray(f._.isElement(t)?[t]:t)&&(f._.each(t,(function(t){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent(e,i)})),!0)},f.util.addMethod(f.util,"textContent",(function(t){return null==t?"":void 0===t.textContent||null===t.textContent?t.innerText:t.textContent})),f.util.addMethod(f.util,"textContent",(function(t,e){null!=t&&(void 0===t.textContent||null===t.textContent?t.innerText=e:t.textContent=e)})),f.util.empty=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},f.util.findCSSRule=function(t){return f.$.stylesheet(t).rules()},f.util.createCSSRule=function(t,e){f.$.stylesheet(t).css(null).css(e)},f.util.removeCSSRule=function(t){f.$.stylesheet(t).css(null)},f.util._CheckMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return f.util._CheckMobile.Android()||f.util._CheckMobile.BlackBerry()||f.util._CheckMobile.iOS()||f.util._CheckMobile.Opera()||f.util._CheckMobile.Windows()}},f.util.isMobile=function(){return f.util._CheckMobile.any()},f.util._dragElement=function(t){var e=document.getElementById(t),i=0,r=0,s=0,a=0;function o(t){(t=t||window.event).preventDefault(),i=s-t.clientX,r=a-t.clientY,s=t.clientX,a=t.clientY,e.style.top=e.offsetTop-r+"px",e.style.left=e.offsetLeft-i+"px"}function n(){document.onmouseup=null,document.onmousemove=null}e.onmousedown=function(t){t.target.classList.contains(f.QCELL.def.css.EXCLUDE_DRAGABLE)||((t=t||window.event).preventDefault(),s=t.clientX,a=t.clientY,document.onmouseup=n,document.onmousemove=o)}},f.util.replaceAll=function(t,e,i){return t.split(e).join(i)},f.util.strbyte={getByteLength:function(t){if(null===t||0===t.length)return 0;for(var e=0,i=0;i<t.length;i++)e+=this.charByteSize(t.charAt(i));return e},cutByteLength:function(t,e){if(null===t||0===t.length)return 0;for(var i=0,r=t.length,s=0;s<t.length;s++){if((i+=this.charByteSize(t.charAt(s)))===e){r=s+1;break}if(i>e){r=s;break}}return t.substring(0,r)},charByteSize:function(t){if(null===t||0===t.length)return 0;var e=t.charCodeAt(0);return e<=127?1:e<=2047?2:e<=65535?3:4}},f.Base=function(t){if(!1===f.util.checkType(t,"object"))return null;this._initGridProperties=function(t){var e,i=f._.clone(t);if(void 0===t.columns)return i;for(i.columns=[],e=0;e<t.columns.length;e++)i.columns.push(f._.clone(t.columns[e]));return i};var e="",i=["array","boolean","element","function","jquery","number","object","string"],s=t,a=this._initGridProperties(t),o=new r._QHashtable,n=new r._QHashtable,l=new r._QHashtable;f._.each(i,(function(t){n.put(t,new r._QHashSet)})),n.put("all",new r._QHashSet),this.log=function(){console.log.apply(console,arguments)},this.getProperties=function(){return s},this.setPropertiesColumn=function(t){s.columns=t},this.getInitProperties=function(){s.columns=[];for(var t=0;t<a.columns.length;t++)s.columns.push(f._.clone(a.columns[t]));return a},this.destroy=function(){var t=this;this._clearAttrs(),this.clear(),n.clear(),l.clear(),f._.each(f._.keys(t),(function(e){delete t[e]})),i=s=o=n=t=null},this.clear=function(){n.each((function(t,e){e.clear()})),o.clear()},this.removeAttr=function(t){if(l.containsKey(t)){var e=l.get(t);if(n.containsKey(e)){var i=n.get(e);return i&&i.contains(t)&&i.remove(t),l.remove(t),n.get("all").remove(t),o.remove(t),!0}}return!1},f.util.addMethod(this,"attr",(function(t){return o.get(t)})),f.util.addMethod(this,"attr",(function(t,e,r){try{if(null==e||f.util.checkType(e,r))if(o.containsKey(t)){if(f._.indexOf(i,r)>-1&&n.get(r).contains(t))return o.put(t,e),!0}else if(f._.indexOf(i,r)>-1)return n.get(r).add(t),o.put(t,e),n.get("all").add(t),l.put(t,r),!0;return!1}catch(t){console.log(t.message)}})),f.util.addMethod(this,"attrList",(function(){return n.get("all").values().sort()})),f.util.addMethod(this,"attrList",(function(t){return f._.indexOf(i,t,!0)>-1?n.get(t).values().sort():[]})),f.util.addMethod(this,"tag",(function(){return e})),f.util.addMethod(this,"tag",(function(t){return!!f._.isString(t)&&(e=t,!0)})),this._initTag(),this._initMOL(),this._init(t)},f.Base.prototype._initMOL=function(){f.util.addMethod(this,"_parent",(function(){return this.attr("parent")})),f.util.addMethod(this,"_parent",(function(t){}))},f.Base.prototype._initTag=function(t){this.tag("QBOX.Base")},f.Base.prototype._init=function(t){this._initAttrs(t),this._setParent()},f.Base.prototype._initAttrs=function(t){this.attr("id",t.id,"string"),this.attr("parentid",t.parentid,"string"),this.attr("parent",null,"object"),this.attr("prev_param",t,"object")},f.Base.prototype._setParent=function(){},f.Base.prototype._clearAttrs=function(){},f.Element=function(t){if(!1===f.util.checkType(t,"object"))return null;f.Base.call(this,t)},f.util.inherit(f.Element,f.Base),f.Element.prototype._initTag=function(t){this.tag("QBOX.Element")},f.Element.prototype._init=function(t){f.Base.prototype._init.call(this,t)},f.Element.prototype._initAttrs=function(t){f.Base.prototype._initAttrs.call(this,t),this.attr("element",null,"element")},f.Element.prototype._setElement=function(t){return!!f._.isElement(t)&&(this.attr("element",t,"element"),!0)},f.QCELL={name:"QCELL",log:function(t,e,i){f.log(t,this.name,e,i)},storage:new r._QHashtable,module:{},colconfig:{},config:{locale:f.config.locale},def:{msg:{},areaname:{},cssprefix:"",css:{},rowgroup:{},type:{}},st:{replaceText2HeaderText:function(t){return f._.escape(t).replace(/(\n|\r\n)/g,"<br>")}},_create:function(t){var e,i=null,r=-1;if(void 0===window[f.License.key])r=0;else if("demo"===window[f.License.key])r=2;else if(f._.isArray(window[f.License.key])){window[f.License.key].forEach((function(t){""!==(e=p.AES.decrypt(t,p.AES.decrypt(f.License.value,f.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8))&&e===window.location.hostname&&(r=1)}))}else if(f._.isString(window[f.License.key])){var s=window[f.License.key];""!==(e=p.AES.decrypt(s,p.AES.decrypt(f.License.value,f.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8))&&e===window.location.hostname&&(r=1)}else r=0;switch(f._s=r,this.module){case"basic":i=f.QCELL.BasicQCELL.create(t);break;case"normal":i=f.QCELL.NormalQCELL.create(t)}if(null!==i){if(i._createCols()&&i._create())return this.storage.put(t.id,i),i=null,!0;i.destroy()}return i=null,!1},_hasInstance:function(t){try{return f.hasInstance(this,t)}catch(t){this.log("err","hasInstance",t.message)}},_getInstance:function(t){try{return f.getInstance(this,t)}catch(t){this.log("err","getInstance",t.message)}},_getInstanceIDs:function(){try{return f.getInstanceIDs(this)}catch(t){this.log("err","getInstanceIDs",t.message)}},_deleteInstance:function(t){try{return f.deleteInstance(this,t)}catch(t){this.log("err","deleteInstance",t.message)}},_deleteAllInstances:function(){try{return f.deleteAllInstances(this)}catch(t){this.log("err","deleteAllInstances",t.message)}}},f.QCELL.create=function(t){return this._create(t)},f.QCELL.hasInstance=function(t){return this._hasInstance(t)},f.QCELL.getInstance=function(t){return this._getInstance(t)},f.QCELL.getInstanceIDs=function(){return this._getInstanceIDs()},f.QCELL.deleteInstance=function(t){return this._deleteInstance(t)},f.QCELL.deleteAllInstances=function(){return this._deleteAllInstances()},f.QCELL.def.areaname=f._.extend(f.QCELL.def.areaname,{ROOT:"root",PANEL:"panel",CONTAINER:"container",PAGINATIONPANEL:"paginationpanel",SHEETPANEL:"sheetpanel",INPUTFORM:"inputform",VIEWPORT:"viewport",FOOTERROWHEADER:"frowheader",FOOTER:"footer",EDGEHEADER:"edgeheader",ROWHEADER:"rowheader",COLHEADER:"colheader",HSCROLLBAR:"hscrollbar",VSCROLLBAR:"vscrollbar",PAGINATION:"pagination",GROUPUI:"group-ui",COLSTYLEEDITOR:"colStyleEditor",STATIC:"static",GRANDTOTAL:"grandtotal",DATEPICKER:"datepicker"}),f.QCELL.def.cssprefix="rt-qc-",f.QCELL.def.css=f._.extend(f.QCELL.def.css,{ROOT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROOT,PANEL:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PANEL,CONTAINER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.CONTAINER,PAGINATIONPANEL:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATIONPANEL,SHEETPANEL:f.QCELL.def.cssprefix+f.QCELL.def.areaname.SHEETPANEL,INPUTFORM:f.QCELL.def.cssprefix+f.QCELL.def.areaname.INPUTFORM,INPUTFORM_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.INPUTFORM+"-inner",INPUTFORM_HEADER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.INPUTFORM+"-header",INPUTFORM_ITEM:f.QCELL.def.cssprefix+f.QCELL.def.areaname.INPUTFORM+"-item",PAGINATION_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-inner",VIEWPORT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.VIEWPORT,VIEWPORT_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.VIEWPORT+"-inner",FOOTERROWHEADER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.FOOTERROWHEADER,FOOTERROWHEADER_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.FOOTERROWHEADER+"-inner",FOOTER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.FOOTER,FOOTER_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.FOOTER+"-inner",EDGEHEADER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.EDGEHEADER,EDGEHEADER_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.EDGEHEADER+"-inner",EDGEHEADER_CELL_CHECKBOX:f.QCELL.def.cssprefix+f.QCELL.def.areaname.EDGEHEADER+"-cell-checkbox",EDGEHEADER_CELL_RADIO:f.QCELL.def.cssprefix+f.QCELL.def.areaname.EDGEHEADER+"-cell-radio",ROWHEADER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER,ROWHEADER_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-inner",ROWHEADER_CELL_CHECKBOX:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-cell-checkbox",ROWHEADER_CELL_RADIO:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-cell-radio",ROWHEADER_STATE_INIT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-state-init",ROWHEADER_STATE_INSERT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-state-insert",ROWHEADER_STATE_UPDATE:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-state-update",ROWHEADER_STATE_DELETE:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-state-delete",ROWHEADER_CUSTOM:f.QCELL.def.cssprefix+f.QCELL.def.areaname.ROWHEADER+"-custom",COLHEADER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLHEADER,COLHEADER_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLHEADER+"-inner",COLHEADER_CELL_CHECKBOX:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLHEADER+"-cell-checkbox",COLHEADER_CHECKBOX:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLHEADER+"-checkbox",COLHEADER_RADIO:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLHEADER+"-radio",COLHEADER_AREA:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLHEADER+"-area",HSCROLLBAR:f.QCELL.def.cssprefix+f.QCELL.def.areaname.HSCROLLBAR,HSCROLL_THUMB:f.QCELL.def.cssprefix+"hsthumb",VSCROLLBAR:f.QCELL.def.cssprefix+f.QCELL.def.areaname.VSCROLLBAR,VSCROLL_THUMB:f.QCELL.def.cssprefix+"vsthumb",CELL:f.QCELL.def.cssprefix+"cell",CELL_FOCUS:f.QCELL.def.cssprefix+"cell-focus",CELL_SELECT:f.QCELL.def.cssprefix+"cell-select",CELL_HIGHLIGHTREPEAT:f.QCELL.def.cssprefix+"cell-highlightrepeat",CELL_VIEWPORT:f.QCELL.def.cssprefix+"cell-viewport",CELL_FOOTERROWHEADER:f.QCELL.def.cssprefix+"cell-frowheader",CELL_FOOTER:f.QCELL.def.cssprefix+"cell-footer",CELL_EDGEHEADER:f.QCELL.def.cssprefix+"cell-edgeheader",CELL_ROWHEADER:f.QCELL.def.cssprefix+"cell-rowheader",CELL_COLHEADER:f.QCELL.def.cssprefix+"cell-colheader",CELL_HEADERROWS:f.QCELL.def.cssprefix+"cell-headerrows",CELL_FROZENROWS:f.QCELL.def.cssprefix+"cell-frozenrows",CELL_NORMALROWS:f.QCELL.def.cssprefix+"cell-normalrows",CELL_FROZENBOTTOMROWS:f.QCELL.def.cssprefix+"cell-frozenbottomrows",CELL_FROZENBOTTOMROWS_PANEL:f.QCELL.def.cssprefix+"cell-frozenbottomrows-panel",CELL_FOOTERROWS:f.QCELL.def.cssprefix+"cell-footerrows",CELL_HEADERCOLS:f.QCELL.def.cssprefix+"cell-headercols",CELL_FROZENCOLS:f.QCELL.def.cssprefix+"cell-frozencols",CELL_NORMALCOLS:f.QCELL.def.cssprefix+"cell-normalcols",COLHEADER_DRAG_AND_DROP_AREA:f.QCELL.def.cssprefix+"colheaderdndarea",COLMOVE_SHADOW:f.QCELL.def.cssprefix+"colmoveshadow",COLMOVELINE:f.QCELL.def.cssprefix+"colmoveline",GROUPTREEUI:f.QCELL.def.cssprefix+"gtui",GROUPTREEUI_ARROW:f.QCELL.def.cssprefix+"gtui-arrow",GROUPTREEUI_ARROW_EXPAND:f.QCELL.def.cssprefix+"gtui-arrow-expand",GROUPTREEUI_ARROW_COLLAPSE:f.QCELL.def.cssprefix+"gtui-arrow-collapse",GROUPTREEUI_FOLDER:f.QCELL.def.cssprefix+"gtui-folder",GROUPTREEUI_FOLDER_EXPAND:f.QCELL.def.cssprefix+"gtui-folder-expand",GROUPTREEUI_FOLDER_COLLAPSE:f.QCELL.def.cssprefix+"gtui-folder-collapse",GROUPTREEUI_DOT:f.QCELL.def.cssprefix+"gtui-dot",GROUPTREEUI_HEADER:f.QCELL.def.cssprefix+"gtui-header",GROUPTREEUI_FOOTER:f.QCELL.def.cssprefix+"gtui-footer",SORT_AREA:f.QCELL.def.cssprefix+"sortarea",SORT_ASC:f.QCELL.def.cssprefix+"sort-asc",SORT_DESC:f.QCELL.def.cssprefix+"sort-desc",MULTI_SORT_ORDER:f.QCELL.def.cssprefix+"multisort-order",SORTABLE:f.QCELL.def.cssprefix+"sortable",COLRESIZE_AREA:f.QCELL.def.cssprefix+"colresizearea",COLRESIZE_AREA_HOVER:f.QCELL.def.cssprefix+"colresizearea-hover",COLRESIZELINE:f.QCELL.def.cssprefix+"colresizeline",COLRESIZETOOLTIP:f.QCELL.def.cssprefix+"colresizetooltip",EMPTYMESSAGE:f.QCELL.def.cssprefix+"emptymessasge",PAGINATION_UI_CENTER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-ui-center",PAGINATION_UI_RIGHT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-ui-right",PAGINATION_NAV:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav",PAGINATION_NAV_BTN:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-btn",PAGINATION_NAV_INPUT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-input",PAGINATION_NAV_SELECT:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-select",PAGINATION_NAV_INFO:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-info",PAGINATION_NAV_PAGER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-pager",PAGINATION_NAV_PAGER_NOW:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-pager-now",PAGINATION_NAV_PAGER_SKIP:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-pager-skip",PAGINATION_NAV_EXTEND_MOVE:f.QCELL.def.cssprefix+f.QCELL.def.areaname.PAGINATION+"-nav-extend-move",CELL_ROWHEADER_CHECKBOX:f.QCELL.def.cssprefix+"cell-rowheader-checkbox",CELL_ROWHEADER_RADIO:f.QCELL.def.cssprefix+"cell-rowheader-radio",FILTER_AREA:f.QCELL.def.cssprefix+"filterarea",FILTER_AREA_ADJUST:f.QCELL.def.cssprefix+"filterarea-adjust",FILTER_AREA_HOVER:f.QCELL.def.cssprefix+"filterarea-hover",FILTER_TITLE_AREA:f.QCELL.def.cssprefix+"filter-title-area",FILTER_TITLE_SPAN:f.QCELL.def.cssprefix+"filter-title-span",FILTER_UI_AREA:f.QCELL.def.cssprefix+"filter-ui-area",FILTER_UI_BTN:f.QCELL.def.cssprefix+"filter-ui-btn",FILTER_UI_CLOSE:f.QCELL.def.cssprefix+"filter-ui-close",FILTER_UI_ADDOPERATOR:f.QCELL.def.cssprefix+"filter-ui-addoperator",FILTER_UI_ADDOPERATOR_CLOSE:f.QCELL.def.cssprefix+"filter-ui-addoperator_close",EXCLUDE_DRAGABLE:f.QCELL.def.cssprefix+"exclude-dragable",CONTEXTMENU:f.QCELL.def.cssprefix+"contextmenu",CONTEXTMENU_AREA:f.QCELL.def.cssprefix+"contextmenu-area",CONTEXTMENU_ROOT:f.QCELL.def.cssprefix+"contextmenu-root",CONTEXTMENU_MENU:f.QCELL.def.cssprefix+"contextmenu-menu",CONTEXTMENU_SUB_MENU:f.QCELL.def.cssprefix+"contextmenu-sub-menu",CONTEXTMENU_ITEM:f.QCELL.def.cssprefix+"contextmenu-item",CONTEXTMENU_ITEM_IMG:f.QCELL.def.cssprefix+"contextmenu-item-img",CONTEXTMENU_ITEM_LABEL:f.QCELL.def.cssprefix+"contextmenu-item-label",CONTEXTMENU_ITEM_SUB:f.QCELL.def.cssprefix+"contextmenu-item-sub",CONTEXTMENU_DIVINE:f.QCELL.def.cssprefix+"contextmenu-divine",CONTEXTMENU_HOVER:f.QCELL.def.cssprefix+"contextmenu-hover",CONTEXTMENU_DISABLE:f.QCELL.def.cssprefix+"contextmenu-disable",COLSEARCH_AREA:f.QCELL.def.cssprefix+"colsearch-area",COLSEARCH_AREA_HOVER:f.QCELL.def.cssprefix+"colsearch-area-hover",COLSEARCH_UI_AREA:f.QCELL.def.cssprefix+"colsearch-ui-area",COLSEARCH_UI_BTN:f.QCELL.def.cssprefix+"colsearch-ui-btn",COLSEARCH_UI_CLOSE:f.QCELL.def.cssprefix+"colsearch-ui-close",PROGRESS_UI:f.QCELL.def.cssprefix+"progress-ui",TOOLTIP:f.QCELL.def.cssprefix+"tooltip",GROUPUI:f.QCELL.def.cssprefix+f.QCELL.def.areaname.GROUPUI,GROUPUI_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.GROUPUI+"-inner",UI_ICON:f.QCELL.def.cssprefix+"ui-icon",UI_ICON_CLOSE:f.QCELL.def.cssprefix+"ui-icon-close",EDITOR_AREA:f.QCELL.def.cssprefix+"coleditor-area",EDITOR_AREA_HOVER:f.QCELL.def.cssprefix+"coleditor-area-hover",EDITOR_UI_STYLE:f.QCELL.def.cssprefix+"coleditor-ui-style",COLSTYLEEDITOR:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLSTYLEEDITOR,COLSTYLEEDITOR_WRAP:f.QCELL.def.cssprefix+f.QCELL.def.areaname.COLSTYLEEDITOR+"-wrap",STATIC_ROW:f.QCELL.def.cssprefix+f.QCELL.def.areaname.STATIC+"-row",GRANDTOTAL:f.QCELL.def.cssprefix+f.QCELL.def.areaname.GRANDTOTAL+"-row",TYPE_DATEPICKER:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-type",SHEETPANEL_INNER:f.QCELL.def.cssprefix+f.QCELL.def.areaname.SHEETPANEL+"-inner",SHEETPANEL_INNER_SPAN:f.QCELL.def.cssprefix+f.QCELL.def.areaname.SHEETPANEL+"-inner-span",REMOVE_AREA:f.QCELL.def.cssprefix+"removearea"}),f.QCELL.def.rowgroup=f._.extend(f.QCELL.def.rowgroup,{FROZEN:1,NORMAL:2,FROZENBOTTOM:3}),f.QCELL.module="basic",f.QCELL.BasicQCELL=function(t){if(!1===f.util.checkType(t,"object"))return null;f.Element.call(this,t)},f.util.inherit(f.QCELL.BasicQCELL,f.Element),f.QCELL.BasicQCELL.prototype._initMOL=function(){f.Element.prototype._initMOL.call(this),f.util.addMethod(this,"_rows",(function(){return this.attr("rows")})),f.util.addMethod(this,"_rows",(function(t){return!!f._.isNumber(t)&&(this.attr("rows",t,"number"),!0)})),f.util.addMethod(this,"_cols",(function(){return this.attr("cols")})),f.util.addMethod(this,"_cols",(function(t){return!!f._.isNumber(t)&&(this.attr("cols",t,"number"),!0)})),f.util.addMethod(this,"_idx",(function(t,e){return this._idx(t,e,"current")})),f.util.addMethod(this,"_idx",(function(t,e,i){try{return this._getIdxInfo(e,t)[i]}catch(t){return-1}})),f.util.addMethod(this,"_idx",(function(t,e,i,r){try{return this._getIdxInfo(e,t)[i]=r,!0}catch(t){return!1}})),f.util.addMethod(this,"_focusCell",(function(t){var e=parseInt(t.getAttribute("data-row")),i=parseInt(t.getAttribute("data-col"));return this._focusCell(e,i,t)})),f.util.addMethod(this,"_focusCell",(function(t,e){return this._focusCell(t,e,this._getCellDOM(t,e))})),f.util.addMethod(this,"_focusCell",(function(t,e,i){if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var r=this._findNextCell(t,e,"up");t=r.row,e=r.col,i=this._getCellDOM(t,e)}if(this._updateIdx("focus",t,e)){this._clearFocusCSS(),f._.isElement(i)&&this._addFocusStyleClass(i);var s=this._getCellDOM(t,e);if(f._.isElement(s)&&f.util.hasClass(s,f.QCELL.def.css.CELL)){var a=f.QCELL.def.css;if("0"===s.getAttribute("tabindex")&&s.focus(),this._updateIdx("cursor",t,e),f.util.hasClass(s,a.CELL)){var o=parseInt(s.getAttribute("data-row")),n=parseInt(s.getAttribute("data-col"));if(f.util.hasClass(s,a.CELL_VIEWPORT))switch(this.attr("selectmode")){case"rows":void 0!==window.event&&!0===window.event.ctrlKey||this._clearSelection(),this._selectRow(o);break;case"row":this._clearSelection(),this._selectRow(o);break;case"cols":void 0!==window.event&&!0===window.event.ctrlKey||this._clearSelection(),this._selectCol(n);break;case"col":this._clearSelection(),this._selectCol(n);break;default:this._clearSelection(),this._selectCell(o,n)}}}return!0}return!1})),f.util.addMethod(this,"_headerCellValue",(function(t,e){return this.attr("headertext")[e][t]})),f.util.addMethod(this,"_headerCellValue",(function(t,e,i){try{var r=this._getCellDOM(t,e);return i=void 0===i?"":i,this.attr("headertext")[e][t]=i,f._.isElement(r)&&(r.innerHTML=this._getHeaderCellSpan(i,t,e)),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._headerCellValue",t.message),!1}})),f.util.addMethod(this,"_hiddenHeaderCellValue",(function(t,e){if(this.attr("hiddenheadertext").length>0)for(var i=0;i<this.attr("hiddenheadertext").length;i++)if(this.attr("hiddenheadertext")[i].key===e)return this.attr("hiddenheadertext")[i].title[t];return null})),f.util.addMethod(this,"_hiddenHeaderCellValue",(function(t,e,i){try{if(i=void 0===i?"":i,this.attr("hiddenheadertext").length>0)for(var r=0;r<this.attr("hiddenheadertext").length;r++)if(this.attr("hiddenheadertext")[r].key===e)return this.attr("hiddenheadertext")[r].title[t]=i,!0;return!1}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._hiddenHeaderCellValue",t.message),!1}})),f.util.addMethod(this,"_dataCellValue",(function(t,e){return this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]})),f.util.addMethod(this,"_dataCellValue",(function(t,e,i){try{var r=this._getCellDOM(t,e);return this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=i,f._.isElement(r)&&f.util.textContent(r,void 0===i?"":i),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._dataCellValue",t.message),!1}})),f.util.addMethod(this,"_cellValue",(function(t,e){var i=this.attr("headerrows"),r=this.attr("rows"),s=this.attr("headercols"),a=this.attr("cols");return t>=0&&t<i&&e>=s&&e<a?this._headerCellValue(t,e):t>=i&&t<r&&e>=s&&e<a?this._dataCellValue(t,e):void 0})),f.util.addMethod(this,"_cellValue",(function(t,e,i){var r=this.attr("headerrows"),s=this.attr("rows"),a=this.attr("headercols"),o=this.attr("cols");return t>=0&&t<r&&e>=a&&e<o?this._headerCellValue(t,e,i):t>=r&&t<s&&e>=a&&e<o&&this._dataCellValue(t,e,i)}))},f.QCELL.BasicQCELL.prototype._initTag=function(){this.tag("QBOX.QCELL.BasicQCELL")},f.QCELL.BasicQCELL.prototype._init=function(t){f.Element.prototype._init.call(this,t)},f.QCELL.BasicQCELL.prototype._initAttrs=function(t){f.Element.prototype._initAttrs.call(this,t),this.removeAttr("parent"),this.attr("locale",f.QCELL.config.locale,"string"),this.attr("msg",f.QCELL.def.msg[this.attr("locale")],"object"),this.attr("width",t.width,"string"),this.attr("height",t.height,"string"),this.attr("lineheight",3,"number"),this._initAttr("rowheight",t.rowheight,"object"),this.attr("dynamicrowheight",new r._QHashtable,"object"),this.attr("headercolwidth",50,"number"),this.attr("colwidths",[],"array"),this.attr("colwidthsperpixel",[],"array"),this.attr("scrollbarwidth",17,"number"),this.attr("layoutsize",{root:{},panel:{},sheetpanel:{},container:{},edgeheader:{},rowheader:{},colheader:{},viewport:{},footerrowheader:{},footer:{},hscrollbar:{},vscrollbar:{}},"object"),this.attr("percentwidth",t.width.indexOf("%")>-1,"boolean"),this.attr("percentheight",t.height.indexOf("%")>-1,"boolean"),this.attr("percentcolwidth",!1,"boolean"),this.attr("qcellcols",[],"array");for(var e=0;e<t.columns.length;e++)void 0!==t.columns[e].style&&void 0===t.columns[e].style_backup&&(t.columns[e].style_backup=f._.clone(t.columns[e].style));this._initAttr("colsprops",t.columns,"array"),this._initAttr("hiddencolsprops",t.hiddencolumns,"array"),this.attr("colkeys",[],"array"),this.attr("colids",[],"array"),this.attr("colkeysinfo",new r._QHashtable,"object"),this.attr("colidsinfo",{},"object"),this.attr("rows",0,"number"),this.attr("cols",0,"number"),this.attr("idxinfo",{cursor:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},drag:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},click:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},focus:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},dblclick:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},selected:{row:new r._QHashtable,col:new r._QHashtable},style:{row:new r._QHashtable,col:new r._QHashtable},hover:{row:new r._QHashtable,col:new r._QHashtable}},"object"),this.attr("syncinfo",{row:new r._QHashtable,col:new r._QHashtable},"object"),this._initAttr("selectmode",t.selectmode,"string"),this.attr("eventparam",{target:this},"object"),this.attr("mousedown",!1,"boolean"),this.attr("usereventinfo",f._.clone(t.events),"object"),this.attr("dragging",!1,"boolean"),this.attr("hdhandle",null,"number"),this.attr("vdhandle",null,"number"),this.attr("hdcount",0,"number"),this.attr("vdcount",0,"number"),this.attr("colmove",!1,"boolean"),this.attr("colmoveexecution",!1,"boolean"),this.attr("colheaderdndarea",null,"jquery"),this.attr("colmoveshadow",null,"jquery"),this.attr("colmoveline",null,"jquery"),this.attr("colresize",!1,"boolean"),this.attr("colresizearea",null,"jquery"),this.attr("colresizeline",null,"jquery"),this.attr("colresizetooltip",null,"jquery"),this.attr("sortinfo",[],"array"),this.attr("defaultsortarea",null,"jquery"),this.attr("dataindexpool",new r._QHashtable,"object"),this.attr("filterarea",null,"jquery"),this.attr("filteruiarea",null,"jquery"),this.attr("filteruivisible",!1,"boolean"),this.attr("headerrows",0,"number"),this.attr("headercols",0,"number"),this.attr("headertext",[],"array"),this.attr("hiddenheadertext",{},"object"),this._initAttr("rowheaders",t.rowheaders,"array"),this._initAttr("rowheaderstitle",t.rowheaderstitle,"array"),this._initAttr("rowheaderssort",t.rowheaderssort,"array"),this._initAttr("rowheaderstitlekey",t.rowheaderstitlekey,"array"),this._initAttr("rowheaderoptions",t.rowheaderoptions,"array"),this._initAttr("frozencols",t.frozencols,"number"),this._initAttr("frozenrows",t.frozenrows,"number"),this._initAttr("frozenbottomrows",t.frozenbottomrows,"number"),this._initAttr("frozenbottomstyle",t.frozenbottomstyle,"string"),this._initAttr("makefrozenbottomdata",t.makefrozenbottomdata,"boolean"),this._initAttr("highlightrepeat",t.highlightrepeat,"number"),this._initAttr("merge",f._.clone(t.merge),"object"),this.attr("merge_header_info",[],"array"),this.attr("merge_data_info",[],"array"),this.attr("footerrows",0,"number"),this.attr("parent",null,"element"),this.attr("elementpool",new r._QHashtable,"object"),this.attr("cellmatrix",new r._QHashtable,"object"),this.attr("focuscell",null,"element"),this.attr("currentdata",[],"array"),void 0===t.data&&(t.data={type:"object",input:[]}),this._initAttr("data",t.data,"object"),this._initAttr("original",t.original,"boolean"),this._initAttr("origindata",[],"array"),this._initAttr("originstate",{i:[],d:[]},"object"),this.attr("rowheaderdata",[],"array"),this.attr("accumulatedwheel",0,"number"),this.attr("hsinfo",{},"object"),this.attr("vsinfo",{},"object"),this.attr("adjustrow",!1,"boolean"),this.attr("adjustcol",!1,"boolean"),this._initHSInfo(),this._initVSInfo(),this.attr("timeoutid",null,"number"),this._initAttr("copy",t.copy,"boolean"),this._initAttr("paste",t.paste,"boolean"),this.attr("onloadurl",t.onloadurl,"string"),this.attr("onloadurlparam",t.onloadurlparam,"object"),this.attr("onloadurlsucesscallback",t.onloadurlsucesscallback,"function"),this.attr("onloadurlfailcallback",t.onloadurlfailcallback,"function"),this.attr("paginationinfo",t.pagination,"object"),this.attr("pagesyncorgindata",void 0!==t.pagination&&void 0!==t.pagination.syncorgindata&&t.pagination.syncorgindata,"boolean"),this.attr("groupinfo",{showpanel:t.group.showpanel,type:t.group.type,expand:f._.clone(t.group.expand),header:f._.clone(t.group.header),footer:f._.clone(t.group.footer)},"object"),this.attr("groupstate",{grouped:!1,type:"normal",data:[],columnsinfo:new r._QHashtable,nodes:new r._QHashtable,treeuirows:[],treeuirownodes:[],headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[]},"object"),this.attr("treestate",{grouped:!1,type:"tree",data:[],columnsinfo:new r._QHashtable,nodes:new r._QHashtable,treeuirows:[],treeuirownodes:[],headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[],state:{}},"object"),this.attr("hierachystate",{grouped:!1,type:"tree",data:[],columninfo:{},nodes:new r._QHashtable,headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[],state:{}},"object"),this.attr("useGroupUI",t.useGroupUI,"boolean"),this.attr("groupuiinfo",[],"array"),this.attr("emptymessage",t.emptymessage,"string"),this.attr("useemptymessage",t.useemptymessage,"boolean"),this.attr("contextmenu",t.contextmenu,"object"),this.attr("contextmenuheader",t.contextmenu.header,"object"),this.attr("contextmenudata",t.contextmenu.data,"object"),this.attr("contextmenudisable",[],"array"),this.attr("contextmenuheaderdisable",[],"array"),this.attr("contextmenudatadisable",[],"array"),this.attr("contextmneuui",null,"jquery"),this.attr("contextmenuid","","string"),this.attr("colsearcharea",null,"jquery"),this.attr("colsearchuiarea",null,"jquery"),this.attr("colsearchuivisible",!1,"boolean"),this.attr("colsearchinfo",{},"object"),this.attr("tooltipvisible",!1,"boolean"),this.attr("isscrollleft",!1,"boolean"),this.attr("colstyleeditorarea",null,"jquery"),this.attr("colstyleeditorui",null,"jquery"),this.attr("colstyleeditor",{},"object"),this.attr("groupdata",t.groupdata,"object"),this._initAttr("bottompanel",t.bottompanel,"boolean"),this._initAttr("bottompanelheight",t.bottompanelheight,"number"),this._initAttr("bottompanelstyle",t.bottompanelstyle,"string"),this.attr("bottompanelcallback",t.bottompanelcallback,"function"),this.attr("rowheadercheckboxclick",[],"array"),this._initAttr("excelexportwithformat",t.excelexportwithformat,"boolean"),this.attr("beforepastecallback",t.beforepastecallback,"function"),this.attr("additionaldataindex",t.additionaldataindex,"array"),void 0!==t.rowheaderwidth&&f._.isNumber(t.rowheaderwidth)&&this.attr("headercolwidth",t.rowheaderwidth,"number"),this._initAttr("usetooltipinellipsis",t.usetooltipinellipsis,"boolean"),this._initAttr("policy",t.policy,"string"),"sequence"===this.attr("policy")?this.attr("usedynamic",!0,"boolean"):(this.attr("useall","dynamic"!==this.attr("policy"),"boolean"),!0===f.QCELL.isForceDynamic&&(this.attr("useall",!1,"boolean"),f.QCELL.isForceDynamic=!1)),this.attr("isfirstsort",!1,"boolean"),this._initAttr("useexcelstylepanel",t.useexcelstylepanel,"boolean"),this.attr("filteruiwidth",void 0===t.filteruiwidth?0:t.filteruiwidth,"number"),this.attr("presentseqatfooter",t.presentseqatfooter,"boolean"),this._initAttr("disabletooltip",t.disabletooltip,"boolean"),this.attr("copypastemode",t.copypastemode,"string"),this.attr("losefocusonleave",t.losefocusonleave,"boolean")},f.QCELL.BasicQCELL.prototype._initAttr=function(t,e,i){this.attr(t,void 0===e?f.QCELL.config[t]:e,i)},f.QCELL.BasicQCELL.prototype._setParent=function(){var t=document.getElementById(this.attr("parentid"));this.attr("parent",f._.isElement(t)?t:null,"element")},f.QCELL.BasicQCELL.prototype._clearAttrs=function(){var t=this.attr("id");f._.each(this.attr("qcellcols"),(function(t){t.destroy()})),f._.isElement(this.attr("parent"))&&f.$(this.attr("parent")).empty(),f.$(window).off(this._getUserEventName("resize")),f.$(document).off("mouseup."+t).off("mousemove."+t)},f.QCELL.BasicQCELL.prototype._rebuild=function(t){try{var e=this.getCustomPanel(),i=this.getUserEventInfo(),r=[],s=[];if(!0===this.attr("isResizing")){for(var a=this.attr("headercols");a<this.attr("cols");a++){var o=f._.clone(this._getQCellCol(a).getProperties());o.width=this._getColWidth(a)+"",r.push(o)}s=f._.clone(this.attr("sortinfo"))}this._clearAttrs(),this._removeContextMenu(),void 0!==t&&!0===t&&(this.attr("bRebuildWithPrevData",!0,"boolean"),this.attr("bLoadurlstop",!0,"boolean"),this.attr("arrBackupData",f._.clone(this.attr("currentdata")),"array"),this.attr("objBackupIdx",f._.clone(this.attr("idxinfo")),"object"),this.attr("arrBackupDeletedrowsdata",f._.clone(this.attr("deletedrowsdata")),"array"));var n=!0===this.attr("useInitProp")||!0===this.attr("useRemoveUI")&&!0===this.attr("useRebuildAPI")?this.getInitProperties():this.getProperties();return!0===this.attr("isResizing")&&(n.columns=r),this._init(n),this.attr("usereventinfo",i,"object"),this._createCols(),this._create(),this.attr("bRebuildWithPrevData",!1,"boolean"),!0===t&&null!==this.attr("prevcontextmenu")&&this._setContextMenu(this.attr("prevcontextmenu")),s.length&&(this.attr("sortinfo",s,"array"),this._updateSingleSortIcon(s)),this.resetCustomPanel(e),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._refresh",t.message),!1}},f.QCELL.BasicQCELL.prototype._refresh=function(){try{return this._refreshRs(),this._refreshCs(),this._refreshDRs(),this._refreshDCs(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._refresh",t.message),!1}},f.QCELL.BasicQCELL.QCellCol=function(t){if(!1===f.util.checkType(t,"object"))return null;f.Base.call(this,t)},f.util.inherit(f.QCELL.BasicQCELL.QCellCol,f.Base),f.util.addMethod(f.QCELL.BasicQCELL.QCellCol,"create",(function(t){return new f.QCELL.BasicQCELL.QCellCol(this._adjustProps(t))})),f.util.addMethod(f.QCELL.BasicQCELL.QCellCol,"create",(function(t,e){return this._create(t,e)})),f.QCELL.BasicQCELL.QCellCol.prototype._initMOL=function(){f.Base.prototype._initMOL.call(this),f.util.addMethod(this,"_styleInfo",(function(t,e){return this.attr("styleinfo")[t][e]})),f.util.addMethod(this,"_styleInfo",(function(t,e,i){this.attr("styleinfo")[t][e]=i}))},f.QCELL.BasicQCELL.QCellCol.prototype._initTag=function(){this.tag("QBOX.QCELL.BasicQCELL.QCellCol")},f.QCELL.BasicQCELL.QCellCol.prototype._init=function(t){f.Base.prototype._init.call(this,t),this._initStyleInfo(),this._initStyle()},f.QCELL.BasicQCELL.QCellCol.prototype._initAttrs=function(t){f.Base.prototype._initAttrs.call(this,t),this.removeAttr("parentid"),this.attr("parent",t.parent,"object"),this.attr("styleinfo",{header:{classname:"",rule:"",css:{}},data:{classname:"",rule:"",css:{}}},"object"),this._initAttr("width",t.width,"string"),this._initAttr("title",t.title,"array"),this._initAttr("key",t.key,f._.isFunction(this.attr("parent").attr)&&"array"===this.attr("parent").attr("data").type?"number":"string"),this._initAttr("styleclassname",t.styleclassname,"object"),this._initAttr("options",t.options,"object"),this._initAttr("format",t.options.format,"object"),this._initAttr("formatstatic",{},"object"),this._initAttr("datatype",t.datatype,"string"),this.attr("sortinfoofcol",{sorttype:"none",order:0},"object"),this.attr("colsortarea",null,"jquery"),this._initAttr("tooltipcallback",t.options.tooltipcallback,"function");var e=!f._.isUndefined(t.options.wordwrap)&&t.options.wordwrap,i=!f._.isUndefined(t.options.required)&&t.options.required;if(this.attr("type","static","string"),void 0!==t.style.header&&"center"===t.style.header["text-align"]&&delete t.style.header["text-align"],void 0!==f.QCELL.config.excludeStyle){var r;if(void 0!==f.QCELL.config.excludeStyle.header&&void 0!==t.style.header)for(r in f.QCELL.config.excludeStyle.header)t.style.header[r]===f.QCELL.config.excludeStyle.header[r]&&delete t.style.header[r];if(void 0!==f.QCELL.config.excludeStyle.data&&void 0!==t.style.data)for(r in f.QCELL.config.excludeStyle.data)t.style.data[r]===f.QCELL.config.excludeStyle.data[r]&&delete t.style.data[r]}if(this.attr("usedatatextalign",!1,"boolean"),void 0!==t.style){if(void 0!==t.style_backup){var s="";if(void 0!==t.style_backup.header)for(s in t.style.header={},t.style_backup.header)t.style.header[s]=t.style_backup.header[s];if(void 0!==t.style_backup.data)for(s in t.style.data={},t.style_backup.data)t.style.data[s]=t.style_backup.data[s]}void 0!==t.style.header&&void 0!==t.style.header["text-align"]&&(this.attr("header_text_algin",t.style.header["text-align"],"string"),delete t.style.header["text-align"]),void 0!==t.style.data&&void 0!==t.style.data["text-align"]&&(this.attr("data_text_algin",t.style.data["text-align"],"string"),this.attr("usedatatextalign",!0,"boolean"),delete t.style.data["text-align"])}null===this.attr("header_text_algin")&&this._initAttr("header_text_algin",void 0,"string"),null===this.attr("data_text_algin")&&this._initAttr("data_text_algin",void 0,"string"),this._initAttr("style",t.style,"object"),this._initAttr("editor",t.editor,"boolean"),this.attr("colstyleeditorvisivle",!1,"boolean"),this.attr("colstyleeditorbdata","QCELL_COL_DATA","string"),this.attr("colstyleeditordata","","string");var a=!!f._.isUndefined(t.options.mergecol)||t.options.mergecol;this._initAttr("mergecol",a,"boolean"),this.attr("mergeref",t.options.mergeref,"string"),this.attr("exportdatatype",void 0===t.options?"":t.options.exportdatatype,"string"),this.attr("colremovearea",null,"jquery"),this._initAttr("removecallback",t.options.removecallback,"function"),this._initAttr("topmove",t.topmove,"boolean"),this._initAttr("move",t.move,"boolean"),this._initAttr("resize",t.resize,"boolean"),this._initAttr("sort",t.sort,"boolean"),this._initAttr("filter",t.filter,"boolean"),this._initAttr("search",t.search,"boolean"),this._initAttr("tooltip",t.tooltip,"boolean"),this._initAttr("required",i,"boolean"),this._initAttr("remove",t.remove,"boolean"),this._initAttr("wordwrap",e,"boolean")},f.QCELL.BasicQCELL.QCellCol.prototype._initAttr=function(t,e,i){this.attr(t,void 0===e?f.QCELL.colconfig[t]:e,i)},f.QCELL.colconfig=f._.extend(f._.clone(f.QCELL.colconfig),{title:[""],type:"static",width:"100px",key:"",styleclassname:{header:"",data:""},style:{},move:!1,resize:!1,sort:!1,search:!1,tooltip:!1,editor:!1,format:{type:"",rule:"",origin:"",callback:null},datatype:"string",options:{},header_text_align:"center",data_text_align:"left",remove:!1}),f.QCELL.BasicQCELL.QCellCol._create=function(t,e){return this._checkRequiredProps(t,e)&&this._checkValidationOfProps(t,e)?new f.QCELL.BasicQCELL.QCellCol(this._adjustProps(e)):null},f.QCELL.BasicQCELL.QCellCol._checkRequiredProps=function(t,e){var i=!0;if(f._.isObject(e)&&!1===f._.isArray(e)){for(var r=["id","parent"],s=0,a=r.length;s<a;s++){var o=r[s];if(void 0===e[o]){f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+o+'" property.'),i=!1;break}}r.RT_clear(),r=null}else f.QCELL.log("err","QCELL.create",'Please check "columns['+t+']"\'s type is "object".'),i=!1;return i},f.QCELL.BasicQCELL.QCellCol._checkValidationOfProps=function(t,e){var i=!0;return f.$.each(e,(function(e,r){return i=f.QCELL.BasicQCELL.QCellCol._checkValidationOfProp(t,e,r)})),i},f.QCELL.BasicQCELL.QCellCol._checkValidationOfProp=function(t,e,i){var r=!0,s=!0,a="";switch(e){case"width":a="string",!1===f._.isString(i)?"width"===e&&!1!==f._.isNumber(i)||(r=!1):"width"===e&&i.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0&&(f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "number" or "px" or "%" as value.'),r=!1);break;case"datatype":if(a="string",!1===f._.isString(i))r=!1;else switch(i){case"string":case"number":break;default:f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "string" or "number" as value.'),r=!1,s=!1}break;case"move":case"resize":case"editor":case"search":case"tooltip":a="boolean",!1===f._.isBoolean(i)&&(r=!1);break;case"styleclassname":a="object",f._.isArray(i)||!1===f._.isObject(i)?r=!1:!1===f._.every(f._.keys(i),(function(t){return"header"===t||"data"===t}))?(f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "header" or "data" as key.'),r=!1,s=!1):f.$.each(i,(function(i,a){!1===f._.isString(a)&&(f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+"."+i+'" property. This property\'s type is "string".'),r=!1,s=!1)}));break;case"style":a="object",f._.isArray(i)||!1===f._.isObject(i)?r=!1:!1===f._.every(f._.keys(i),(function(t){return"header"===t||"data"===t}))?(f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "header" or "data" as key.'),r=!1,s=!1):f.$.each(i,(function(i,a){!1===f._.isObject(a)&&(f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+"."+i+'" property. This property\'s type is "object".'),r=!1,s=!1)}));break;case"options":if(void 0!==i&&!1===f._.isObject(i)||!0===f._.isArray(i))a="object",r=!1;else if(void 0!==i.format&&null!==i.format)if(void 0!==i.format.type&&!1===f._.isString(i.format.type))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.type"\'s type is "'+a+'".'),r=!1,s=!1;else switch(i.format.type){case"date":void 0===i.format.origin&&!1===f._.isString(i.format.origin)?(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.origin"\'s type is "'+a+'".'),r=!1,s=!1):void 0===i.format.rule&&!1===f._.isString(i.format.rule)&&(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.rule"\'s type is "'+a+'".'),r=!1,s=!1);break;case"number":case"string":void 0===i.format.rule&&!1===f._.isString(i.format.rule)&&(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.rule"\'s type is "'+a+'".'),r=!1,s=!1);break;case"custom":void 0===i.format.callback&&!1===f._.isFunction(i.format.origin)&&(a="callback",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.origin"\'s type is "'+a+'".'),r=!1,s=!1)}}return!1===r&&s&&f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'"\'s type is "'+a+'".'),r},f.QCELL.BasicQCELL.QCellCol._adjustProps=function(t){return f._.assign(f._.clone(f.QCELL.colconfig),f._.mapValues(t,(function(t,e){return f.QCELL.BasicQCELL.QCellCol._adjustProp(e,t)})))},f.QCELL.BasicQCELL.QCellCol._adjustProp=function(t,e){var i=null;if(void 0===e)i=this._getDefaultValueOfProp(t);else switch(t){case"width":i=f._.isNumber(e)?e+"":e;break;case"move":case"resize":case"sort":case"search":case"tooltip":case"editor":i=!0===f._.isBoolean(e)&&e;break;case"styleclassname":i={header:void 0===e.header?this._getDefaultValueOfProp("styleclassname").header:e.header,data:void 0===e.data?this._getDefaultValueOfProp("styleclassname").data:e.data};break;case"styler":i=!0===f._.isFunction(e)?e:null;break;default:i=e}return i},f.QCELL.BasicQCELL.QCellCol._getDefaultValueOfProp=function(t){var e=f.QCELL.colconfig[t];return f._.isArray(e)||f._.isObject(e)&&!1===f._.isArray(e)?f._.clone(e):e},f.QCELL.BasicQCELL.QCellCol.prototype._setSortInfoOfCol=function(t,e){var i=!1;return"asc"!==t&&"desc"!==t&&"none"!==t||e>-1&&(this.attr("sortinfoofcol",{sorttype:t,order:e},"object"),i=!0),i},f.QCELL.BasicQCELL.QCellCol.prototype._initStyleInfo=function(){var t,e,i=f.QCELL.def,r=",",s=".",a=i.cssprefix+this.attr("parent").attr("id")+"-"+this.attr("id")+"-";t=a+"header-style",this._styleInfo("header","classname",t),this._styleInfo("header","rule",s+t+r+s+i.css.CELL_COLHEADER+s+t),e=a+"data-style",this._styleInfo("data","classname",e),this._styleInfo("data","rule",s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_FROZENROWS+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_NORMALROWS+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_FROZENBOTTOMROWS+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_FROZENBOTTOMROWS_PANEL+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_FROZENROWS+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_NORMALROWS+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_FROZENBOTTOMROWS+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_FROZENBOTTOMROWS_PANEL+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_FROZENROWS+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_NORMALROWS+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_FROZENBOTTOMROWS+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+r+s+i.css.CELL_FROZENCOLS+s+i.css.CELL_FROZENBOTTOMROWS_PANEL+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_FROZENROWS+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_NORMALROWS+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+r+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_FROZENBOTTOMROWS+s+i.css.CELL_HIGHLIGHTREPEAT+s+e+s+i.css.CELL_NORMALCOLS+s+i.css.CELL_FROZENBOTTOMROWS_PANEL+s+i.css.CELL_HIGHLIGHTREPEAT+s+e)},f.QCELL.BasicQCELL.QCellCol.prototype._initStyle=function(){return this._removeStyle("all")&&this._setStyle(this.attr("style").header,"header")&&this._setStyle(this.attr("style").data,"data")},f.QCELL.BasicQCELL.QCellCol.prototype._getStyle=function(t){return"header"===t||"data"===t?f._.clone(this._styleInfo(t,"css")):{}},f.QCELL.BasicQCELL.QCellCol.prototype._setStyle=function(t,e){var i=!1;return"header"!==e&&"all"!==e||(f._.size(t)>0&&(this.attr("usercolstyle_header",t,"object"),this._styleInfo("header","css",f._.extend(f._.clone(this._styleInfo("header","css")),t)),f.util.createCSSRule(this._styleInfo("header","rule"),this._styleInfo("header","css"))),i=!0),"data"!==e&&"all"!==e||(f._.size(t)>0&&(this.attr("usercolstyle_data",t,"object"),this._styleInfo("data","css",f._.extend(f._.clone(this._styleInfo("data","css")),t)),f.util.createCSSRule(this._styleInfo("data","rule"),this._styleInfo("data","css"))),i=!0),i},f.QCELL.BasicQCELL.QCellCol.prototype._removeStyle=function(t){var e=!1;return"header"!==t&&"all"!==t||(f._.size(this._styleInfo("header","css"))>0&&(f.util.removeCSSRule(this._styleInfo("header","rule")),this._styleInfo("header","css",{})),e=!0),"data"!==t&&"all"!==t||(f._.size(this._styleInfo("data","css"))>0&&(f.util.removeCSSRule(this._styleInfo("data","rule")),this._styleInfo("data","css",{})),e=!0),e},f.QCELL.BasicQCELL.QCellCol.prototype._initUserColStyle=function(){null!==this.attr("usercolstyle_header")&&(this._removeStyle("header"),this._setStyle(this.attr("usercolstyle_header"),"header")),null!==this.attr("usercolstyle_data")&&(this._removeStyle("data"),this._setStyle(this.attr("usercolstyle_data"),"data"))},f.QCELL.BasicQCELL.QCellCol.prototype.getStyleClassName=function(t){return this.attr("styleclassname")[t]},f.QCELL.BasicQCELL.QCellCol.prototype.setStyleClassName=function(t,e){return this.attr("styleclassname")[t]=e,!0},f.QCELL.BasicQCELL.QCellCol.prototype.setSortInfoOfCol=function(t,e){return this._setSortInfoOfCol(t,e)},f.QCELL.BasicQCELL.QCellCol.prototype.getStyleInfo=function(t,e){return this._styleInfo(t,e)},f.QCELL.BasicQCELL.QCellCol.prototype.initStyle=function(){return this._initStyle()},f.QCELL.BasicQCELL.QCellCol.prototype.getStyle=function(t){return this._getStyle(t)},f.QCELL.BasicQCELL.QCellCol.prototype.setStyle=function(t,e){return this._setStyle(t,e)},f.QCELL.BasicQCELL.QCellCol.prototype.removeStyle=function(t){return this._removeStyle(t)},f.QCELL.BasicQCELL.prototype.onKeyWidth=function(t,e,i){var r=this,s=this.getColWidth(i),a=t===f.def.key.LEFT?-20:20;setTimeout((function(){r.setColWidth(i,s+a),setTimeout((function(){f.$(r._getCellDOM(e,i)).focus()}))}))},f.QCELL.BasicQCELL.prototype.onKeyDown=function(t){try{var e,i,r,s=t.target,a=t.keyCode,o=f.QCELL.def.css,n=this._idx("row","focus"),l=this._idx("col","focus"),c=this;if((this.attr("useall")||this.attr("usetreeall"))&&!f.$(t.target).hasClass("rt-qc-ui-selectmenu-button"))if(a!==f.def.key.LEFT&&a!==f.def.key.RIGHT||t.ctrlKey){if(a===f.def.key.UP||a===f.def.key.DOWN){if(r=this.attr("vsinfo"),f.$(t.target).hasClass("rt-qc-radio-cell-style"))return;if(!0===r.bVScroll)return a===f.def.key.UP?(e=r.nTop+3*r.nLengthPerRow)>0&&(e=0):(e=r.nTop-3*r.nLengthPerRow)>r.nLength&&(e=r.nLength),setTimeout((function(){c.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",e)}),10),t.preventDefault(),void t.stopPropagation();t.preventDefault(),t.stopPropagation()}else if(a===f.def.key.TAB)return}else{if(i=this.attr("hsinfo"),f.$(t.target).hasClass("rt-qc-radio-cell-style"))return;if(!0===i.bHScroll)return a===f.def.key.LEFT?(e=i.nLeft+i.nLengthPerCol)>0&&(e=0):(e=i.nLeft-i.nLengthPerCol)>i.nLength&&(e=i.nLength),setTimeout((function(){c.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",e)}),100),t.preventDefault(),void t.stopPropagation();t.preventDefault(),t.stopPropagation()}if(-1===n&&-1===l&&this.getRows()-this.getRows("header")<=0&&(a===f.def.key.LEFT||a===f.def.key.RIGHT)&&!0===(i=this.attr("hsinfo")).bHScroll)return a===f.def.key.LEFT?(e=i.nLeft+i.nLengthPerCol)>0&&(e=0):(e=i.nLeft-i.nLengthPerCol)>i.nLength&&(e=i.nLength),void c.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",e);if(f.util.hasClass(s,o.TYPE_INPUT_EDIT_STYLE)&&(s=s.parentElement),(this.attr("useall")||this.attr("usetreeall"))&&f.util.hasClass(s,"rt-qc-container")&&-1!==n&&-1!==l&&(s=this._getCellDOM(n,l)),f.util.hasClass(s,o.CELL)){if(n>=this.attr("headerrows")&&l>=this.attr("headercols")){if(this._getQCellCol(l).attr("resize")&&!0===t.ctrlKey&&(a===f.def.key.LEFT||a===f.def.key.RIGHT))return void this.onKeyWidth(a,n,l);switch(a){case f.def.key.LEFT:this._leftKey(t.shiftKey,t.ctrlKey),t.ctrlKey&&this.onKeyWidth(a,n,l);break;case f.def.key.RIGHT:this._rightKey(t.shiftKey,t.ctrlKey),t.ctrlKey&&this.onKeyWidth(a,n,l);break;case f.def.key.UP:this._upKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case f.def.key.DOWN:this._downKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case f.def.key.PAGEUP:this._pageUpKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case f.def.key.PAGEDOWN:this._pageDownKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case f.def.key.TAB:!0===this._tabKey(t.shiftKey,t.ctrlKey)&&(t.stopPropagation(),t.preventDefault());break;case f.def.key.C:this.attr("copy")&&t.ctrlKey&&(this.onCopy(),t.stopPropagation());break;case f.def.key.V:this.attr("paste")&&t.ctrlKey&&(this.onPaste(),t.stopPropagation())}}}else f.util.hasClass(s,o.PAGINATION_NAV)&&f.util.hasClass(s,o.PAGINATION_NAV_INPUT)&&a===f.def.key.ENTER&&this._movePage(Number(f.$(s).val()))}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onKeyDown",t.message)}},f.QCELL.BasicQCELL.prototype.onCopy=function(){var t=this.attr("selectmode"),e=this._getSelectedRows(),i=this._getSelectedCols();if("focus"===this.attr("copypastemode")&&(t="cell",(e=[]).push(this.getIdx("row","focus")),(i=[]).push(this.getIdx("col","focus"))),e.length>0||i.length>0){var r,s,a,o,n="";switch(t){case"cell":case"cells":var l=!1;if(this._idx("row","focus","current")!==e[e.length-1]&&this._idx("col","focus","current")!==i[i.length-1]&&(l=!0),l)alert("다중 선택 범위에서는 클립보드 복사를 사용할 수 없습니다.");else{for(e.sort(f.st.asc),i.sort(f.st.asc),r=0;r<e.length;r++)for(a=e[r],r>0&&(n+="\n"),s=0;s<i.length;s++)o=i[s],s>0&&(n+="\t"),n+=void 0===this._cellValue(a,o)?"":this._cellValue(a,o);this._copy(n)}break;case"row":case"rows":var c=this.attr("headercols"),h=this.attr("cols");for(e.sort(f.st.asc),r=0;r<e.length;r++)for(a=e[r],r>0&&(n+="\n"),s=c;s<h;s++)s>c&&(n+="\t"),n+=void 0===this._cellValue(a,s)?"":this._cellValue(a,s);this._copy(n)}}},f.QCELL.BasicQCELL.prototype.onPaste=function(){if(this.attr("currentdata").length>0)if(window.clipboardData)this._paste(window.clipboardData.getData("text"));else{var t=null,e=null,i="",r=this,s=this.attr("elementpool").get("root");(t=document.createElement("div")).setAttribute("id","clipboardDataDiv"),(e=document.createElement("textarea")).style.height=e.style.width="0px",t.appendChild(e),s.appendChild(t),e.focus(),window.setTimeout((function(){if(i=e.value,s.removeChild(document.getElementById("clipboardDataDiv")),f._.isFunction(r.attr("beforepastecallback"))){var t=r._idx("row","focus","current"),a=r._idx("col","focus","current");i=r.attr("beforepastecallback")(t,a,i)}r._paste(i),r._trigger("paste",i)}),100)}},f.QCELL.BasicQCELL.prototype._copy=function(t){var e=null,i=null,r=this.attr("elementpool").get("root");window.clipboardData?window.clipboardData.setData("text",t):((e=document.createElement("div")).style.position="absolute",e.style.left=this.attr("elementpool").get("root").offsetLeft+"px",e.style.top=this.attr("elementpool").get("root").offsetTop+"px",f.util.addClass(e,"rt-qc-clipboard"),e.setAttribute("id","clipboardDataDiv"),i=document.createElement("textarea"),f.util.addClass(i,"rt-qc-clipboard-textarea"),i.style.height=i.style.width="0px",i.value=t,e.appendChild(i),r.appendChild(e),i.focus(),i.select(),window.setTimeout((function(){r.removeChild(document.getElementById("clipboardDataDiv"))}),100))},f.QCELL.BasicQCELL.prototype._paste=function(t){var e,i,r,s,a,o,n=this._idx("row","focus","current"),l=this._idx("col","focus","current"),c="focus"===this.attr("copypastemode");if(e=t.split("\n"),f._.isArray(e)){if(""===e[e.length-1]&&e.pop(),n<this.attr("headerrows")||n>=this.attr("rows"))return;if(l<this.attr("headercols")||l>=this.attr("cols"))return;for(o=/[\r\n|\n\r]$/,i=0;i<e.length;i++){for(s=e[i].split("\t"),r=0;r<s.length&&(a=s[r],r===s.length-1&&o.test(a)&&(a=a.replace(a,"")),!(l+r>=this.getCols()));r++){var h=this._getColElement(l+r);if(null!=h&&(!f._.isNull(h.attr("maxbyte"))&&!f._.isUndefined(h.attr("maxbyte"))&&f.util.strbyte.getByteLength(a)>h.attr("maxbyte")?a=f.util.strbyte.cutByteLength(a,h.attr("maxbyte")):!f._.isNull(h.attr("maxlength"))&&!f._.isUndefined(h.attr("maxlength"))&&a.length>h.attr("maxlength")&&(a=a.slice(0,h.attr("maxlength"))),"number"===this._getColDataType(l+r))){var u=a;u=u.replaceAll(",",""),isNaN(Number(u))&&(a=0)}var d=this._getQCellCol(l+r).attr("celldisabled")[n+i];if(!0!==(d=void 0!==d&&d)){var p=this._cellValue(n+i,l+r);this._cellValue(n+i,l+r,a),p!==this._cellValue(n+i,l+r)&&this._processValueChanged(n+i,l+r)}if("cells"===this.attr("selectmode")&&this._selectCell(n+i,l+r),c)return}"rows"===this.attr("selectmode")&&this._selectRow(n+i)}o=null}},f.QCELL.BasicQCELL.prototype.onMouseWheel=function(t){try{var e,i=this.attr("vsinfo"),r=this.getID();if(i.bVScroll&&(t.stopPropagation(),t.preventDefault(),t.deltaY<0&&i.nPos<i.nLastPos||t.deltaY>0&&i.nPos>0)){var s=this.attr("accumulatedwheel")+t.deltaY;i.nPos-s>i.nLastPos?s=i.nPos-i.nLastPos:i.nPos-s<0&&(s=i.nPos),this.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",i.nTop+s*i.nLengthPerRow,"",{ignorecallback:!0}),this.attr("accumulatedwheel",s,"number"),f.util.rAF((function(){var t=(e=f.QCELL.getInstance(r)).attr("accumulatedwheel");0!==t&&(i.nBeforeTop=i.nTop,i.nTop+=t*i.nLengthPerRow,i.nPos=-i.nTop/i.nLengthPerRow,e._syncVSInfo(),e._updateNRs(),e.attr("accumulatedwheel",0,"number"),(e.attr("useall")||e.attr("usetreeall"))&&(i.nTopRow>i.nStartRow?f.$("#"+e.getID()+"_vsbp").prop("disabled",!1):f.$("#"+e.getID()+"_vsbp").prop("disabled",!0),i.nBottomRow===i.nEndRow?f.$("#"+e.getID()+"_vsbn").prop("disabled",!0):f.$("#"+e.getID()+"_vsbn").prop("disabled",!1)),e._trigger("scrollmove")),e=null}))}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onMouseWheel",t.message)}},f.QCELL.BasicQCELL.prototype.onMouseDown=function(t){try{var e=t.target,i=f.QCELL.def.css,r=this.attr("colresizeline");if(this._removeContextMenu(),f.util.hasClass(e,i.CELL)||f.util.hasClass(e,i.TYPE_DATEPICKER)){f.util.hasClass(e,i.TYPE_DATEPICKER)&&(f.util.hasClass(e.parentNode,i.CELL)?e=e.parentNode:f.util.hasClass(e.parentNode.parentNode,i.CELL)&&(e=e.parentNode.parentNode));var s=parseInt(e.getAttribute("data-row")),a=parseInt(e.getAttribute("data-col"));if(this._isBottomPanel(e))return;if(f.util.hasClass(e,i.CELL_VIEWPORT)&&t.which===f.def.which.LEFT_BUTTON)switch(this.attr("selectmode")){case"rows":if(t.ctrlKey===t.shiftKey)this._focusCell(e),this._clearSelection(),this._selectRow(s);else if(t.ctrlKey)this._focusCell(e),this._selectRow(s);else{var o,n=this._idx("row","focus");o=n<s?f._.range(n,s+1):f._.range(s,n+1).reverse(),this._clearSelection(),this._selectRows(o)}break;case"row":this._focusCell(e),this._getSelectedRows()[0]!==s&&(this._clearSelection(),this._selectRow(s));break;case"cols":if(t.ctrlKey===t.shiftKey)this._focusCell(e),this._clearSelection(),this._selectCol(a);else if(t.ctrlKey)this._focusCell(e),this._selectCol(a);else{var l,c=this._idx("col","focus");l=c<a?f._.range(c,a+1):f._.range(a,c+1).reverse(),this._clearSelection(),this._selectCols(l)}break;case"col":this._focusCell(e),this._getSelectedCols()[0]!==a&&(this._clearSelection(),this._selectCol(a));break;case"cell":this._focusCell(e),this._clearSelection(),this._selectCell(s,a);break;case"group":this._focusCell(e),this._clearSelection(),this._selectGroup(s,a);break;default:t.ctrlKey===t.shiftKey?(this._focusCell(e),this._clearSelection(),this._selectCell(s,a)):t.ctrlKey?(this._focusCell(e),this._selectCell(s,a)):(this._clearSelection(),this._selectCellRange(this._idx("row","focus"),this._idx("col","focus"),s,a))}}if(t.which===f.def.which.RIGHT_BUTTON&&(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),this._isContextMenu()||this._createContextMenu(t)),this.attr("colresize")&&null!==r){var h=this.attr("colresizetooltip"),u=parseInt(e.parentNode.getAttribute("data-col")),d=this.attr("layoutsize").viewport.offsetLeft,p=e.parentNode.offsetLeft+d,g=this._getColWidth(u);"none"===r.css("display")&&r.css("display","block"),r.css("left",p+g-1+"px"),r.attr({"data-targetcol":u,originleft:parseInt(r.css("left")),"client-x":t.clientX}),"none"===h.css("display")&&h.css("display","block"),h.css("left",p+g-1+"px"),h.text("width : "+g+"px"),f.$(e).addClass(i.COLRESIZE_AREA_HOVER)}!1===f.util.hasClass(e,i.FILTER_AREA)&&!1===f.util.hasClass(e,i.FILTER_AREA_ADJUST)&&!1===f.util.hasClass(e,i.FILTER_UI_AREA)&&!1===f.util.hasClass(e,i.FILTER_UI_BTN)&&!1===f.util.hasClass(f.$(e).parents("."+i.FILTER_UI_AREA)[0],i.FILTER_UI_AREA)&&this.attr("filteruivisible")&&this._removeFilterUIArea(),t.which===f.def.which.LEFT_BUTTON&&this.attr("mousedown",!0,"boolean")}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onMouseDown",t.message)}},f.QCELL.BasicQCELL.prototype.onMouseUp=function(t){var e=f.QCELL.def,i=this.attr("id"),r="#"+e.areaname.SHEETPANEL+"-span-"+i,s=this.getSelectedRows(),a=this.getSelectedCols(),o=-1,n=-1,l=this.attr("headerrows"),c=this.attr("headercols"),h=this.attr("rows"),u=this.attr("cols"),d=0,p=0,g=0,_=0,C=0,L="",m=this;if(!1!==this.attr("bottompanel")&&!1!==this.attr("useexcelstylepanel")){if("excel"===this.attr("bottompanelstyle"))switch(this.attr("selectmode")){case"row":case"rows":for(_=0;_<s.length;_++)for(C=c;C<u;C++)isNaN(parseInt(m._cellValue(s[_],C)))||(p+=parseInt(m._cellValue(s[_],C)),g++),d++;L="평균 : "+parseFloat(p/g)+", 개수 : "+d+", 합계 : "+p,0===p&&(L="개수 : "+d);break;case"col":case"cols":for(C=0;C<a.length;C++)for(_=l;_<h;_++)isNaN(parseInt(m._cellValue(_,a[C])))||(p+=parseInt(m._cellValue(_,a[C])),g++),d++;L="평균 : "+parseFloat(p/g)+", 개수 : "+d+", 합계 : "+p,0===p&&(L="개수 : "+d);break;case"group":if(0===s.length&&0===a.length)o=m.getIdx("row"),n=m.getIdx("col"),L=this._cellValue(o,n);else{for(_=0;_<s.length;_++)for(o=s[_],C=0;C<a.length;C++)n=a[C],isNaN(parseInt(m._cellValue(o,n)))||(p+=parseInt(m._cellValue(o,n)),g++),d++;L="평균 : "+parseFloat(p/g)+", 개수 : "+d+", 합계 : "+p,0===p&&(L="개수 : "+d)}break;default:if(1===s.length&&1===a.length)o=s[0],n=a[0],L=this.getCellLabel(o,n);else{for(_=0;_<s.length;_++)for(o=s[_],C=0;C<a.length;C++)n=a[C],isNaN(parseInt(m._cellValue(o,n)))||(p+=parseInt(m._cellValue(o,n)),g++),d++;L="평균 : "+parseFloat(p/g)+", 개수 : "+d+", 합계 : "+p,0===p&&(L="개수 : "+d)}}else if("index"===this.attr("bottompanelstyle"))L="[ "+((o=m.getIdx("row"))-this.getRows("header")+1)+" / "+(h-this.getRows("header"))+" ]";else if("custom"===this.attr("bottompanelstyle"))o=m.getIdx("row"),n=m.getIdx("col"),L=this._cellValue(o,n);else if("board"===this.attr("bottompanelstyle"))return;null!==this.attr("bottompanelcallback")&&f._.isFunction(this.attr("bottompanelcallback"))&&(o=m.getIdx("row"),n=m.getIdx("col"),L=this.attr("bottompanelcallback").call(this,o,n,L)),f.$(r).html(L)}},f.QCELL.BasicQCELL.prototype.onClick=function(t){try{this._adjustScrollPos();var e,i,r=t.target,s=f.QCELL.def.css;if(f.util.hasClass(r,"rt-qc-colheader-area")&&f.QCELL.config.useheadersort&&this._getQCellCol(this._getColFromTarget(r)).attr("sort")&&(!1===this._getQCellCol(this._getColFromTarget(r)).attr("options").wholeselect||void 0===this._getQCellCol(this._getColFromTarget(r)).attr("options").wholeselect))this._sortProcess(t);else if(f.util.hasClass(r,s.CELL)&&!1===f.util.hasClass(r,s.SORTABLE)||f.util.hasClass(r.parentElement,s.CELL)&&"SPAN"===r.tagName){if(r.hasChildNodes()&&("checkbox"===r.childNodes[0].type&&r.childNodes[0].className===s.CELL_ROWHEADER_CHECKBOX||"radio"===r.childNodes[0].type&&r.childNodes[0].className===s.CELL_ROWHEADER_RADIO)&&(e=r.getAttribute("data-row"),i=r.getAttribute("data-col"),this.attr("rowheadercheckboxclick")[e][i]&&(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),r.childNodes[0].checked?this._rowheaderCheckboxClick(this._idx("row","cursor"),this._idx("col","cursor"),!1):this._rowheaderCheckboxClick(this._idx("row","cursor"),this._idx("col","cursor"),!0))),e=this._idx("row","cursor"),i=this._idx("col","cursor"),this._isBottomPanel(r))return;if(this._updateIdx("click",e,i),f.util.hasClass(r,s.CELL_VIEWPORT)||f.util.hasClass(r.parentElement,s.CELL_VIEWPORT)){var a,o=this.getID();if(!0!==this.attr("useall")&&!0!==this.attr("usetreeall"))if(!1===t.shiftKey&&!1===t.ctrlKey)setTimeout((function(){null!==(a=f.QCELL.getInstance(o))&&(a._idx("row","focus")===e&&a._idx("col","focus")===i||a._focusCell(e,i),a.attr("temprow",a._idx("row","focus"),"number"),a.attr("tempcol",a._idx("col","focus"),"number"),a._scrollToFocusCell(a._idx("row","focus"),a._idx("col","focus")),a.attr("isClick",!1,"boolean"),a=null)}),0),this.attr("isClick",!0,"boolean")}}else if(f.util.hasClass(r,s.SORT_AREA)||f.util.hasClass(r,s.MULTI_SORT_ORDER))this._sortProcess(t);else if(f.util.hasClass(r,s.CELL_ROWHEADER_CHECKBOX))e=null!==r.parentNode?r.parentNode.getAttribute("data-row"):this._idx("row","cursor"),i=null!==r.parentNode?r.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this.attr("rowheadercheckboxclick")[e][i]&&(this._updateIdx("click",e,i),r.checked?this._rowheaderCheckboxClick(Number(r.parentNode.getAttribute("data-row")),Number(r.parentNode.getAttribute("data-col")),!0):this._rowheaderCheckboxClick(Number(r.parentNode.getAttribute("data-row")),Number(r.parentNode.getAttribute("data-col")),!1));else if(f.util.hasClass(r,s.CELL_ROWHEADER_RADIO))e=null!==r.parentNode?r.parentNode.getAttribute("data-row"):this._idx("row","cursor"),i=null!==r.parentNode?r.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this.attr("rowheadercheckboxclick")[e][i]&&(this._updateIdx("click",e,i),r.checked?this._rowheaderCheckboxClick(Number(r.parentNode.getAttribute("data-row")),Number(r.parentNode.getAttribute("data-col")),!0):this._rowheaderCheckboxClick(Number(r.parentNode.getAttribute("data-row")),Number(r.parentNode.getAttribute("data-col")),!1));else if(f.util.hasClass(r,s.EDITOR_AREA))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(f.util.hasClass(r,s.TYPE_DATEPICKER))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(f.util.hasClass(r,s.COLHEADER_CHECKBOX))e=null!==r.parentNode?r.parentNode.getAttribute("data-row"):this._idx("row","cursor"),i=null!==r.parentNode?r.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this._updateIdx("click",Number(e),Number(i));else if(f.util.hasClass(r.parentElement,s.TYPE_IMAGE_STYLE))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(f.util.hasClass(r,s.REMOVE_AREA)){var n=this;i=this._idx("col","cursor"),setTimeout((function(){n.removeColumn(i)}))}else this._updateIdx("click",-1,-1);t.target.getElementsByClassName(s.TYPE_INPUT_EDIT_STYLE).length}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onClick",t.message)}},f.QCELL.BasicQCELL.prototype.onDblClick=function(t){var e=t.target,i=f.QCELL.def.css;!1!==this.attr("isscrollleft")&&f.util.hasClass(e,i.CELL)&&this._updateIdx("dblclick",this._idx("row","cursor"),this._idx("col","cursor"))},f.QCELL.BasicQCELL.prototype.onMouseEnter=function(t){},f.QCELL.BasicQCELL.prototype.onMouseLeave=function(t){},f.QCELL.BasicQCELL.prototype.onFnTooltip=function(t,e,i,r){var s=f.$(t);if(!1===this.attr("tooltipvisible")){var a;if(e)a=this.getCellData(i,r),a=this._getQCellCol(r).attr("tooltipcallback")(i,r,a);else if(void 0===(a=this.getCellData(i,r))||""===a)return;var o=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=o.grouped?o.columnsinfo.keys(!0)[0]:"";if(!0===o.grouped&&this._getColID(r)===n){var l=this._getCellDOM(i,r);null!=l&&(a=void 0===l.textContent?"":l.textContent)}!0===this.attr("usetooltipinellipsis")?t.offsetWidth<t.scrollWidth&&this._createTooltip(s,window.event,a):this._createTooltip(s,window.event,a);var c=this.getID();s.on("mouseleave mousewheel DOMMouseScroll",(function(){var t=f.QCELL.getInstance(c);t._removeTooltip(),t=null})),s=null}else this._moveTooltip(f.$(t),window.event)},f.QCELL.BasicQCELL.prototype.onMouseMove=function(t){try{var e,i=f.QCELL.def.css,r=t.target,s=this.attr("colmoveline"),a=this.attr("colresizeline"),o=-1,n=-1;if(f.util.hasClass(r,i.CELL)?(o=parseInt(r.getAttribute("data-row")),n=parseInt(r.getAttribute("data-col")),this._idx("row","cursor")===o&&this._idx("col","cursor")===n||(this._updateIdx("cursor",o,n),0!==t.buttons&&t.which===f.def.which.LEFT_BUTTON&&this.attr("mousedown")&&null===this.attr("hdhandle")&&null===this.attr("vdhandle")&&this.onDrag(t)),this._updateIdx("hover",o,n),o>=this.attr("headerrows")&&n>=this.attr("headercols")&&(this._getQCellCol(n).attr("tooltip")&&void 0!==this._getQCellCol(n).attr("tooltipcallback")?this.onFnTooltip(r,!0,o,n):this._getQCellCol(n).attr("tooltip")&&"checkbox"!==this._getQCellCol(n).attr("type")&&"html"!==this._getQCellCol(n).attr("type")&&"image"!==this._getQCellCol(n).attr("type")&&"chart"!==this._getQCellCol(n).attr("type")&&this.onFnTooltip(r,!1,o,n))):this._idx("row","hover")===o&&this._idx("col","hover")===n||-1!==o&&-1!==n&&this._updateIdx("hover",o,n),this.attr("colmove")&&!0!==this.attr("colresize")&&null===this.attr("hdhandle")&&n>=this.attr("headercols")&&null!==s){var l=parseInt(this.attr("colmoveshadow").attr("data-col")),c=this._getColWidth(n),h=this.attr("layoutsize").viewport.offsetLeft,u=this.attr("layoutsize").container.clientX,d=r.offsetLeft+h;if(!0===this.attr("istopmove")&&0!==o&&!0!==this._getQCellCol(n).attr("topmove"))return void s.css("display","none");if(!0===this.attr("istopmove")){var p=Number(r.getAttribute("data-endcol"));for(isNaN(p)&&(p=1),c=0,e=0;e<p;e++)c+=this._getColWidth(n+e)}"none"===s.css("display")&&s.css("display","block"),t.clientX>d+c/2+u?(s.css("left",d+c-1+"px"),n>l&&(this.attr("colmoveexecution",!0,"boolean"),s.attr({"data-beforecol":l,"data-aftercol":n}))):(s.css("left",d-1+"px"),n<l&&(this.attr("colmoveexecution",!0,"boolean"),s.attr({"data-beforecol":l,"data-aftercol":n})))}if(this.attr("colresize")&&(this.attr("colmove",!1,"boolean"),null!==a)){var g=this.attr("colresizetooltip"),_=parseInt(a.attr("client-x")),C=parseInt(a.css("left")),L=parseInt(a.attr("data-targetcol")),m=parseInt(a.attr("originleft")),E=this._getColWidth(L);_-=t.clientX,"none"===a.css("display")&&a.css("display","block"),"none"===g.css("display")&&g.css("display","block");var v=C-_;a.css("left",v+"px"),a.attr({"client-x":t.clientX}),g.text("width : "+(E+(v-m))+"px")}this.attr("dragging")&&(this.attr("colmove")?this.attr("hdhandle")&&(this.attr("colmoveexecution",!1,"boolean"),null!==s&&"none"!==s.css("display")&&s.css("display","none")):!1===this.attr("colresize")&&this._MoveVScrollbarToDragging(t),!1===this.attr("colresize")&&this._MoveHScrollbarToDragging(t))}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onMouseMove",t.message)}},f.QCELL.BasicQCELL.prototype.onDrag=function(t){try{var e,i,r=this._idx("row","cursor"),s=this._idx("col","cursor"),a=r>=this.attr("headerrows")?r:this._idx("row","drag"),o=s>=this.attr("headercols")?s:this._idx("col","drag");if(this._updateIdx("drag",a,o),null===this.attr("startdragpos")&&this.attr("startdragpos",{nRow:this._idx("row","cursor","previous"),nCol:this._idx("col","cursor","previous")},"object"),!1===this.attr("colmove")&&!1===this.attr("colresize")&&this._selectDragArea(t),!1===this.attr("colmove")&&!0!==this.attr("colresize")&&1===t.which&&0===t.button&&!0===f.QCELL.config.useheadercolmove){var n,l,c=f.QCELL.def.css,h=this.attr("layoutsize"),u=[],d=this.attr("headerrows"),p=this.attr("frozenbottomrows"),g=this.attr("rows"),_=0,C=0,L=document.createElement("div");if(e=this.attr("startdragpos").nRow,i=this.attr("startdragpos").nCol,e<this.getRows("header")&&i>=this.getCols("header")&&(this._getQCellCol(i).attr("move")||this._getQCellCol(i).attr("topmove"))){if(this.attr("colmove",!0,"boolean"),this.attr("colmoveexecution",!1,"boolean"),this._getQCellCol(i).attr("topmove")){var m=this._getCellDOM(0,i),E=Number(m.getAttribute("data-endcol"));isNaN(E)&&(E=1);for(var v=null,b=0,y=0;y<E;y++){for(var w=this._getColCellDOMs(Number(i)),x=0;x<w.length;x++)v=w[x].cloneNode(!0),e=parseInt(v.getAttribute("data-row")),v.style.left=b+"px",v.style.display="block",isNaN(e)?v.style.top=parseInt(v.style.top)+C+"px":e<d?(v.style.top=_+"px",_+=parseInt(v.style.height)):(v.style.top=parseInt(v.style.top)+_+"px",e>=g-p&&(C=parseInt(v.style.top)+parseInt(v.style.height))),u.push(v);b+=this._getColWidth(i+y)}}else f._.each(this._getColCellDOMs(Number(i)),(function(t,i){v=t.cloneNode(!0),e=parseInt(v.getAttribute("data-row")),v.style.left="0px",v.style.display="block",isNaN(e)?v.style.top=parseInt(v.style.top)+C+"px":e<d?(v.style.top=_+"px",_+=parseInt(v.style.height)):(v.style.top=parseInt(v.style.top)+_+"px",e>=g-p&&(C=parseInt(v.style.top)+parseInt(v.style.height))),u.push(v)}));f._.last(u).style.borderBottomWidth="1px",l=f.$(L.cloneNode()).addClass(c.COLMOVE_SHADOW).attr("data-col",Number(i)).css({display:"none"}).append(u).appendTo(document.body),this.attr("colmoveshadow",l,"QBOX.$"),n=f.$(L.cloneNode()).addClass(c.COLMOVELINE).css({display:"none",height:h.colheader.offsetHeight+h.viewport.offsetHeight+h.footer.offsetHeight}).appendTo(this.attr("elementpool").get("container")),this.attr("colmoveline",n,"QBOX.$")}}this.attr("dragging",!0,"boolean")}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onDrag",t.message)}},f.QCELL.BasicQCELL.prototype.onDrop=function(t){!1===this.attr("colmove")&&!1===this.attr("colresize")&&this._selectDragArea(t),this.attr("dragging",!1,"boolean"),this._updateIdx("drag",-1,-1),this.attr("startdragpos",null,"object"),null!==this.attr("hdhandle")&&(clearInterval(this.attr("hdhandle")),this.attr("hdhandle",null,"number"),this.attr("hdcount",0,"number")),null!==this.attr("vdhandle")&&(clearInterval(this.attr("vdhandle")),this.attr("vdhandle",null,"number"),this.attr("vdcount",0,"number"))},f.QCELL.BasicQCELL.prototype._clickCell=function(t,e){var i=this._getCellDOM(t,e);if(f._.isElement(i)&&f.util.hasClass(i,f.QCELL.def.css.CELL)){var r={target:i,ctrlKey:!1,altKey:!1,shiftKey:!1,which:f.def.which.LEFT_BUTTON},s=this._getEventTarget("default");return i.focus(),this._updateIdx("cursor",t,e),this.onMouseDown(f._.extend(f.$.Event("mousedown"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("mousedown")),r)),this.onMouseUp(f._.extend(f.$.Event("mouseup"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("mouseup")),r)),this.onClick(f._.extend(f.$.Event("click"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("click")),r)),!0}return!1},f.QCELL.BasicQCELL.prototype._dblClickCell=function(t,e){var i=this._getCellDOM(t,e);if(f._.isElement(i)&&f.util.hasClass(i,f.QCELL.def.css.CELL)){var r={target:i,ctrlKey:!1,altKey:!1,shiftKey:!1,which:f.def.which.LEFT_BUTTON},s=this._getEventTarget("default");i.focus(),this._updateIdx("cursor",t,e);for(var a=0;a<2;a++)this.onMouseDown(f._.extend(f.$.Event("mousedown"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("mousedown")),r)),this.onMouseUp(f._.extend(f.$.Event("mouseup"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("mouseup")),r)),this.onClick(f._.extend(f.$.Event("click"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("click")),r));return this.onDblClick(f._.extend(f.$.Event("dblclick"),r)),null!==s&&s.trigger(f._.extend(f.$.Event(this._getUserEventName("dblclick")),r)),!0}return!1},f.QCELL.BasicQCELL.prototype._setInputformData=function(t){var e,i,r=this._getRowData(t),s=this.attr("id"),a=this.attr("headercols"),o=this.attr("cols");if(null!==r&&null!==this.attr("jqDialog")){for(this.attr("isInputForm",!0,"boolean"),this.attr("jqDialog").dialog("open"),e=a;e<o;e++){var n,l=this._getKeyOfCol(e);if(i=s+"_"+l+"_"+this.getColID(e),n=document.getElementById(i),"image"===this._getColType(e))n.setAttribute("src",r[l]);else if("checkbox"===this._getColType(e))n.checked=r[l];else if("datepicker"===this._getColType(e)){var c=f.moment(r[l],"YYYYMMDD").format("YYYY-MM-DD");"Invalid date"!==c&&(n.value=c)}else f.$(n).val(r[l])}this.attr("inputformdatarow",t,"number"),this.attr("inputformdata",r,"object")}},f.QCELL.BasicQCELL.prototype.onTab=function(t,e){if(f.$(e).hasClass("rt-qc-cell")||f.$(e).hasClass("rt-qc-cell-rowheader-checkbox")||f.$(e).hasClass("rt-qc-cell-rowheader-radio")||f.$(e).hasClass("rt-qc-colheader-checkbox")||f.$(e).hasClass("rt-qc-datepicker-type")){var i=f.$(e).hasClass("rt-qc-datepicker-type")?e.parentElement:e,r=parseInt(i.getAttribute("data-row")),s=parseInt(i.getAttribute("data-col"));isNaN(r)||isNaN(s)||this.clickCell(r,s)}},f.QCELL.BasicQCELL.prototype.onLongTab=function(t,e){if(f.$(e).hasClass("rt-qc-cell")||f.$(e).hasClass("rt-qc-cell-rowheader-checkbox")||f.$(e).hasClass("rt-qc-colheader-checkbox")||f.$(e).hasClass("rt-qc-cell-rowheader-radio")||f.$(e).hasClass("rt-qc-datepicker-type")){var i=f.$(e).hasClass("rt-qc-datepicker-type")?e.parentElement:e,r=parseInt(i.getAttribute("data-row")),s=parseInt(i.getAttribute("data-col"));isNaN(r)||isNaN(s)||this._setInputformData(r)}},f.QCELL.BasicQCELL.prototype.onSwipe=function(t,e,i,r,s,a){try{if("touchend"===t.type||"touchmove"===t.type){var o=this,n=0,l=0;switch(e){case"up":case"down":var c=this.attr("vsinfo");c.bVScroll&&(t.stopPropagation(),t.preventDefault(),setTimeout((function(){("up"===e&&c.nPos<c.nLastPos||"down"===e&&c.nPos>0)&&(n="down"===e?1:-1,l=Math.floor(i/3/c.nLengthPerRow)*n,c.nPos-l>c.nLastPos?l=c.nPos-c.nLastPos:c.nPos-l<0&&(l=c.nPos),o.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",c.nTop+l*c.nLengthPerRow,"",{ignorecallback:!0}),o.attr("accumTouch",l,"number"),f.util.rAF((function(){var t=o.attr("accumTouch");0!==t&&(c.nBeforeTop=c.nTop,c.nTop+=t*c.nLengthPerRow,c.nPos=-c.nTop/c.nLengthPerRow,o._syncVSInfo(),o._updateNRs(),o.attr("accumTouch",0,"number"))})))}),0));break;case"left":case"right":var h=this.attr("hsinfo");h.bHScroll&&(t.stopPropagation(),t.preventDefault(),setTimeout((function(){if("right"===e&&0!==h.nLeft||"left"===e&&Math.abs(h.nLeft)<Math.abs(h.nLength)){n="right"===e?1:-1,l=(0===Math.floor(i/h.nLengthPerCol)?1:Math.floor(i/h.nLengthPerCol))*n*h.nLengthPerCol;var t=h.nLeft;"left"===e&&Math.abs(t+l)>Math.abs(h.nLength)?t=-h.nLength:"right"===e&&t+l>0?t=0:t+=l,o.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",t)}}),0))}}else t.stopPropagation(),t.preventDefault()}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onSwipe",t.message)}},f.QCELL.BasicQCELL.prototype.onResize=function(t){try{var e=this.attr("layoutsize").root.offsetHeight,i=this.attr("layoutsize").root.offsetWidth;if(this.attr("percentwidth")||this.attr("percentheight")){clearTimeout(this.attr("timeoutid"));var r=this,s=this.getID();this.attr("timeoutid",setTimeout((function(){if(null!=(r=f.QCELL.getInstance(s))&&!0!==r.attr("isInputForm")&&!1!==r.attr("bResizeAction")){var t=r.getCustomPanel(),a=f.$(r.attr("parent")).height(),o=f.$(r.attr("parent")).width();if(e!==a||i!==o){r.attr("isResizing",!0,"boolean"),r.attr("filterarea",null,"jquery");var n,l,c=r.attr("hsinfo"),h=r.attr("vsinfo"),u=r._idx("row","focus","current"),d=r._idx("col","focus","current");if(n=c.nLeftCol,l=h.nTopRow,r._initHSInfo(),r._initVSInfo(),r._createElement()&&(r._refresh(),n!==c.nLeftCol&&r._scrollLeft(n),l!==h.nTopRow&&r._scrollTop(l),r._updateIdx("focus",-1,-1),r._focusCell(u,d),r.resetCustomPanel(t),!0===r.attr("makefrozenbottomdata"))){var p=r.attr("currentdata");!f._.isEmpty(p)&&f._.isArray(p)&&0!==p.length&&(!0!==p[p.length-1].rt_qc_fbrd?(p.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(r=f.QCELL.getInstance(s))&&r._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(r=f.QCELL.getInstance(s))&&r._trigger("frozendataupdated")}),0))}r.attr("isResizing",!1,"boolean")}}}),0),"number")}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL.onResize",t.message)}},f.QCELL.BasicQCELL.prototype._initCellMatrix=function(){try{var t=this.attr("cellmatrix");return t.containsKey("row")?t.get("row").RT_clear():t.put("row",[]),t.containsKey("col")?t.get("col").RT_clear():t.put("col",[]),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._initCellMatrix",t.message),!1}},f.QCELL.BasicQCELL.prototype._syncCellMatrix=function(t){var e=this.attr("cellmatrix");"col"===t?e.put("row",f._.unzip(e.get("col"))):e.put("col",f._.unzip(e.get("row")))},f.QCELL.BasicQCELL.prototype._getCellDOM=function(t,e){var i=this._getRowCellDOMs(t);if(void 0!==i&&i.length>0&&e>=0&&e<this.attr("cols")){var r=this.attr("headercols"),s=this.attr("frozencols");if(e<r+s)return i[e];var a=this.attr("hsinfo");if(e>=a.nLeftCol&&e<=a.nRightCol)return i[r+s+e-a.nLeftCol]}return null},f.QCELL.BasicQCELL.prototype._getRowCellDOMs=function(t){var e=this.attr("vsinfo"),i=this.attr("headerrows"),r=this.attr("frozenrows"),s=this.attr("frozenbottomrows"),a=this.attr("rows"),o=this._isPanel();if(i!==a&&!0===o&&!1===e.bVScroll&&t>e.nEndRow)return this._getCellGroupDOMs("row","frozenbottom")[t-e.nEndRow-1];if(t>=0&&t<a){if(t<i)return this._getCellGroupDOMs("row","header")[t];if(t<i+r)return this._getCellGroupDOMs("row","frozen")[t-i];if(!(t<a-s))return this._getCellGroupDOMs("row","frozenbottom")[t-e.nEndRow-1];if(t>=e.nTopRow&&t<=e.nBottomRow){for(var n=this._getCellGroupDOMs("row","normal"),l=0;l<n.length;l++){var c=n[l][0];if(Number(c.getAttribute("data-row"))===t)return n[l]}return this._getCellGroupDOMs("row","normal")[t-e.nTopRow]}}return[]},f.QCELL.BasicQCELL.prototype._getColCellDOMs=function(t){var e=this.attr("hsinfo"),i=this.attr("headercols"),r=this.attr("frozencols"),s=this.attr("cols");if(t>=0&&t<s){if(t<i)return this._getCellGroupDOMs("col","header")[t];if(t<i+r)return this._getCellGroupDOMs("col","frozen")[t-i];if(t>=e.nLeftCol&&t<=e.nRightCol)return this._getCellGroupDOMs("col","normal")[t-e.nLeftCol]}return[]},f.QCELL.BasicQCELL.prototype._getCellGroupDOMs=function(t,e){var i,r,s=this.attr("cellmatrix"),a=[];if("row"===t){var o=s.get("row"),n=this.attr("headerrows"),l=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),h=this.attr("footerrows");switch(e){case"header":i=0,r=n;break;case"frozen":i=n,r=l;break;case"normal":i=n+l,r=o.length-n-l-c-h;break;case"frozenbottom":i=o.length-c-h,r=c;break;case"footer":i=o.length-h,r=h}a=o.splice(i,r),o.RT_insertArray(i,a)}else if("col"===t){var u=s.get("col"),d=this.attr("headercols"),p=this.attr("frozencols");switch(e){case"header":i=0,r=d;break;case"frozen":i=d,r=p;break;case"normal":i=d+p,r=u.length-d-p}a=u.splice(i,r),u.RT_insertArray(i,a)}return a},f.QCELL.BasicQCELL.prototype._setCellGroupDOMs=function(t,e,i){var r,s,a=this.attr("cellmatrix");if("row"===t){var o=a.get("row"),n=this.attr("headerrows"),l=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),h=this.attr("footerrows");switch(e){case"header":r=0,s=n;break;case"frozen":r=n,s=l;break;case"normal":r=n+l,s=o.length-n-l-c-h;break;case"frozenbottom":r=o.length-c-h,s=c;break;case"footer":r=o.length-h,s=h}o.splice(r,s),o.RT_insertArray(r,i)}else if("col"===t){var u=a.get("col"),d=this.attr("headercols"),p=this.attr("frozencols");switch(e){case"header":r=0,s=d;break;case"frozen":r=d,s=p;break;case"normal":r=d+p,s=u.length-d-p}u.splice(r,s),u.RT_insertArray(r,i)}return i=null,!0},f.QCELL.BasicQCELL.prototype._isPanel=function(){return"panel"===this.attr("frozenbottomstyle")},f.QCELL.BasicQCELL.prototype._setCellGroupCSS=function(t,e){var i=f.QCELL.def.css,r=this._getCellGroupDOMs(t,e),s=[],a=[],o=this._isPanel();if("row"===t)switch(e){case"header":a=[i.CELL_FROZENROWS,i.CELL_NORMALROWS,i.CELL_FROZENBOTTOMROWS,i.CELL_FROZENBOTTOMROWS_PANEL,i.CELL_FOOTERROWS],s.push(i.CELL_HEADERROWS);break;case"frozen":a=[i.CELL_HEADERROWS,i.CELL_NORMALROWS,i.CELL_FROZENBOTTOMROWS,i.CELL_FROZENBOTTOMROWS_PANEL,i.CELL_FOOTERROWS],s.push(i.CELL_FROZENROWS);break;case"normal":a=[i.CELL_HEADERROWS,i.CELL_FROZENROWS,i.CELL_FROZENBOTTOMROWS,i.CELL_FROZENBOTTOMROWS_PANEL,i.CELL_FOOTERROWS],s.push(i.CELL_NORMALROWS);break;case"frozenbottom":a=[i.CELL_HEADERROWS,i.CELL_FROZENROWS,i.CELL_NORMALROWS,i.CELL_FOOTERROWS],s.push(i.CELL_FROZENBOTTOMROWS),!0===o?s.push(i.CELL_FROZENBOTTOMROWS_PANEL):s.push(i.CELL_FROZENBOTTOMROWS);break;case"footer":a=[i.CELL_HEADERROWS,i.CELL_FROZENROWS,i.CELL_NORMALROWS,i.CELL_FROZENBOTTOMROWS,i.CELL_FROZENBOTTOMROWS_PANEL],s.push(i.CELL_FOOTERROWS)}else if("col"===t)switch(e){case"header":a=[i.CELL_FROZENCOLS,i.CELL_NORMALCOLS],s.push(i.CELL_HEADERCOLS);break;case"frozen":a=[i.CELL_HEADERCOLS,i.CELL_NORMALCOLS],s.push(i.CELL_FROZENCOLS);break;case"normal":a=[i.CELL_HEADERCOLS,i.CELL_FROZENCOLS],s.push(i.CELL_NORMALCOLS)}if(r.length>0){var n=f._.flatten(r);return a.length>0&&f.util.removeClass(n,a),s.length>0&&f.util.addClass(n,s),!0}return!1},f.QCELL.BasicQCELL.prototype._addDynamicRows=function(t){var e=this.attr("vsinfo"),i=this.attr("cellmatrix").get("row"),r=this.attr("headerrows"),s=this.attr("footerrows");if(t>0){for(var a,o,n=f.QCELL.def.css,l=this.attr("hsinfo"),c=document.createElement("div"),h=this.attr("elementpool").get("rowheaderinner"),u=this.attr("elementpool").get("viewportinner"),d=this.attr("headercols"),p=this.attr("frozencols"),g=l.nDynamicCols,_=i.length-s===r?0:this._getSumOfRowHeight(r,i.length-s-1),C=0;C<t;C++){var L,m,E=-1===e.nEndRow||-1===e.nBottomRow?r+C:e.nBottomRow+C+1,v=this._getRowHeight(E),b=_,y=0;for(i.RT_insert(i.length-s,[]),o=0;o<d;o++)L=this._getColWidth(o),(a=this._createCell(c,!1)).style.width=L+"px",a.style.height=v+"px",this._getColWordwrap(o)?a.style.whiteSpace="pre-wrap":(a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center"),a.style.left=y+"px",a.style.top=b+"px",a.className+=" "+n.CELL_ROWHEADER+" "+n.CELL_HEADERCOLS,a.setAttribute("data-col",o),h.appendChild(a),i[i.length-s-1].push(a),y+=parseFloat(L);for(o=0;o<g;o++){var w=o<p?d+o:l.nLeftCol-p+o;L=this._getColWidth(w),m=this._getColTabindex(w),(a=this._createCell(c,m)).style.width=L+"px",a.style.height=v+"px",this._getColWordwrap(w)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=v-2+"px",a.style.left=i[i.length-s-2][i[i.length-s-1].length].style.left,a.style.top=b+"px",a.setAttribute("data-col",w),a.className+=" "+n.CELL_VIEWPORT+" "+(o<p?n.CELL_FROZENCOLS:n.CELL_NORMALCOLS)+" "+this._getColStyleClassName(w,"data");var x=this._getColStyle(w,"data");switch(f._.isEmpty(x)||f._.isUndefined(x)||f._.isNull(x)||f.$(a).css(x),a.className+=" "+n.CELL_NORMALROWS,this._getColType(w)){case"input":a.className+=" "+n.TYPE_INPUT_CELL;break;case"inputbutton":a.className+=" "+n.TYPE_INPUTBUTTON_CELL;break;case"textarea":a.className+=" "+n.TYPE_TEXTAREA_CELL;break;case"selectmenu":a.className+=" "+n.TYPE_SELECTMENU_CELL;break;case"datepicker":a.className+=" "+n.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":a.className+=" "+n.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":a.className+=" "+n.TYPE_CHECKBOX_CELL;break;case"image":a.className+=" "+n.TYPE_IMAGE_CELL;break;case"html":a.className+=" "+n.TYPE_HTML_CELL;break;case"chart":a.className+=" "+n.TYPE_CHART_CELL;break;case"multicheckbox":a.className+=" "+n.TYPE_MULTICHECKBOX_CELL;break;case"number":a.className+=" "+n.TYPE_NUMBER_CELL;break;case"slider":a.className+=" "+n.TYPE_SLIDER_CELL;break;case"button":a.className+=" "+n.TYPE_BUTTON_CELL;break;case"editor":a.className+=" "+n.TYPE_EDITOR_CELL;break;default:a.className+=" "+n.TYPE_STATIC_CELL}u.appendChild(a),i[i.length-s-1].push(a)}_+=v}return this._syncCellMatrix("row"),!0}return!1},f.QCELL.BasicQCELL.prototype._removeDynamicRows=function(t){var e=this.attr("cellmatrix").get("row");if(t>0){var i=e.splice(e.length-this.attr("footerrows")-t,t);return f.$(f._.flatten(i)).remove(),this._syncCellMatrix("row"),!0}return!1},f.QCELL.BasicQCELL.prototype._addDynamicCols=function(t){var e=this.attr("hsinfo"),i=this.attr("cellmatrix").get("col"),r=this.attr("headercols"),s=this._isPanel();if(t>0){for(var a,o,n=f.QCELL.def.css,l=this.attr("vsinfo"),c=document.createElement("div"),h=this.attr("elementpool").get("colheaderinner"),u=this.attr("elementpool").get("viewportinner"),d=this.attr("highlightrepeat"),p=this.attr("rows"),g=this.attr("headerrows"),_=this.attr("frozenrows"),C=this.attr("frozenbottomrows"),L=l.nDynamicRows,m=i.length===r?0:this._getSumOfColWidth(r,i.length-1),E=0;E<t;E++){var v,b,y=-1===e.nEndCol?r+E:e.nRightCol+E+1,w=this._getColWidth(y),x=m,Q=0;if(e.nEndCol===e.nRightCol&&(y=e.nRightCol),y>e.nEndCol)break;for(i.push([]),o=0;o<g;o++)v=this._getRowHeight(o),b=this._getColTabindex(y),(a=this._createCell(c,b)).style.width=w+"px",a.style.height=v+"px",this._getColWordwrap(y)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=v-2+"px",a.style.left=x+"px",a.style.top=Q+"px",a.className+=" "+n.CELL_COLHEADER+" "+n.CELL_HEADERROWS,a.setAttribute("data-row",o),h.appendChild(a),i[i.length-1].push(a),Q+=parseFloat(v);for(o=0;o<L;o++){var k=o<_?g+o:o>=L-C?p-L+o:l.nTopRow-_+o;v=this._getRowHeight(k),b=this._getColTabindex(y),(a=this._createCell(c,b)).style.width=w+"px",a.style.height=v+"px",this._getColWordwrap(y)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=v-2+"px",a.style.left=x+"px",a.style.top=i[i.length-2][i[i.length-1].length].style.top,a.setAttribute("data-row",k),a.className+=" "+n.CELL_VIEWPORT,a.className+=o<_?" "+n.CELL_FROZENROWS:o>=L-C?!0===s?" "+n.CELL_FROZENBOTTOMROWS_PANEL:" "+n.CELL_FROZENBOTTOMROWS:" "+n.CELL_NORMALROWS,d>0&&(k-g+1)%d==0&&(a.className+=" "+n.CELL_HIGHLIGHTREPEAT),u.appendChild(a),i[i.length-1].push(a)}m+=w}return this._syncCellMatrix("col"),!0}return!1},f.QCELL.BasicQCELL.prototype._removeDynamicCols=function(t){var e=this.attr("cellmatrix").get("col");if(t>0){var i=e.splice(e.length-t,t);return f.$(f._.flatten(i)).remove(),this._syncCellMatrix("col"),!0}return!1},f.QCELL.BasicQCELL.prototype._makeRowUI=function(t,e){try{var i=this.attr("vsinfo"),r=this.attr("headerrows"),s=this._isPanel(),a=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(a=!0===this.attr("hierachystate").grouped?this.attr("hierachystate"):a,!1===i.bVScroll){if(a&&!0!==a.grouped&&s){var o=this;return!0!==this.attr("isSorting")&&setTimeout((function(){o.rebuild(!0)})),!0}var n=this.attr("hsinfo"),l=n.bHScroll;if(this._initLayoutSize(),this._calculateDynamicRows(),i.bVScroll){var c=this.attr("cellmatrix").get("row"),h=this.attr("footerrows");if(c.length-r-h+t>i.nDynamicRows?this._addDynamicRows(i.nDynamicRows-(c.length-r-h)):this._addDynamicRows(t),this._adjustFrozenRowsCount(),(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop()),this._setCellGroupCSS("row","normal"),this._resizeHScrollbar(),this._updateHSInfo(),l&&n.bHScroll&&n.nPos===n.nLastPos){var u=this.attr("scrollbarwidth");f._.each(f._.flatten(this._getCellGroupDOMs("col","normal")),(function(t){t.style.left=parseFloat(t.style.left)-u+"px"}))}}else this._addDynamicRows(t),(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop())}return this._resizeVScrollbar(e),this._updateVSInfo(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._makeRowUI",t.message),!1}},f.QCELL.BasicQCELL.prototype._removeRowUI=function(t,e){try{var i=this.attr("vsinfo"),r=this.attr("currentdata"),s=this._isPanel(),a=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");a=!0===this.attr("hierachystate").grouped?this.attr("hierachystate"):a;var o=this;if(i.bVScroll){if(a&&!0!==a.grouped&&s)return!0!==this.attr("isSorting")&&setTimeout((function(){o.rebuild(!0)})),!0;var n=i.nDynamicRows,l=this.attr("hsinfo");if(this._initLayoutSize(),this._calculateDynamicRows(),!1===i.bVScroll){if(r.length<n&&this._removeDynamicRows(n-r.length),this._adjustFrozenRowsCount(),this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),s&&(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop()),l.bHScroll&&l.nPos===l.nLastPos){var c=this.attr("scrollbarwidth");f._.each(f._.flatten(this._getCellGroupDOMs("col","normal")),(function(t){t.style.left=parseFloat(t.style.left)+c+"px"}))}this._resizeHScrollbar(),this._updateHSInfo()}}else{if(this._removeDynamicRows(t),a&&!0!==a.grouped&&s)return!0!==this.attr("isSorting")&&setTimeout((function(){o.rebuild(!0)})),!0;s&&(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop())}return this._resizeVScrollbar(e),this._updateVSInfo(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._removeRowUI",t.message),!1}},f.QCELL.BasicQCELL.prototype._adjustFrozenBottomRowsTop=function(){var t=this.attr("frozenbottomrows");if(t>0){var e=this,i=this._getCellGroupDOMs("row","frozenbottom"),r=this.attr("rows"),s=this.attr("layoutsize").viewport.clientHeight;return f._.each(i,(function(i,a){var o=r-t+a;f._.each(i,(function(t){t.style.top=s-e._getSumOfRowHeight(o,r-1)+"px"}))})),!0}return!1},f.QCELL.BasicQCELL.prototype._adjustNormalRowsTop=function(){if(this.attr("currentdata").length>0){var t=this,e=this._getCellGroupDOMs("row","normal"),i=0,r=this.attr("headerrows"),s=this.attr("frozenrows");return f._.each(e,(function(e,a){var o=r+s+a,n=t._getRowHeight(o),l=i;f._.each(e,(function(t){t.style.top=l+"px"})),i+=n})),!0}return!1},f.QCELL.BasicQCELL.prototype._getQCellCol=function(t){return this.attr("qcellcols")[t]},f.QCELL.BasicQCELL.prototype._getColDataMergeCol=function(t){return void 0===this._getQCellCol(t)||null===this._getQCellCol(t)||this._getQCellCol(t).attr("mergecol")},f.QCELL.BasicQCELL.prototype._getColDataMergeRef=function(t){if(void 0!==this._getQCellCol(t)&&null!==this._getQCellCol(t))return this._getQCellCol(t).attr("mergeref")},f.QCELL.BasicQCELL.prototype._getColDataType=function(t){return this._getQCellCol(t).attr("datatype")},f.QCELL.BasicQCELL.prototype._setColDataTypeNumber=function(t){return this._getQCellCol(t).attr("datatype","number","string")},f.QCELL.BasicQCELL.prototype._setColsDataType=function(t){if(!1===f._.isUndefined(t)&&t.length>0){for(var e=t[0],i=[],r=this.attr("cols"),s=this.attr("headercols"),a=this.attr("colkeys"),o=s;o<r;o++)i.push(e[a[o]]);for(var n=0;n<i.length;n++)"number"==typeof i[n]&&this._setColDataTypeNumber(n+s)}},f.QCELL.BasicQCELL.prototype._getColFormat=function(t){return this._getQCellCol(t).attr("format")},f.QCELL.BasicQCELL.prototype._getColOptions=function(t){return this._getQCellCol(t).attr("options")},f.QCELL.BasicQCELL.prototype._getColWordwrap=function(t){return this._getQCellCol(t).attr("wordwrap")},f.QCELL.BasicQCELL.prototype._showDisableText=function(t,e,i){if(!0===this._getQCellCol(i).attr("celldisabled")[e]){var r=this.getRowData(e),s=this._getKeyOfCol(i);if(void 0!==r["_rt_qc_d_"+s])return f.util.textContent(t,r["_rt_qc_d_"+s]),!0}return!1},f.QCELL.BasicQCELL.prototype._showDataFormat=function(t,e,i,r){var s="";try{if(!0===this._getQCellCol(e).attr("celldisabled")[t]){var a=this.getRowData(t),o=this._getKeyOfCol(e);if(void 0!==a["_rt_qc_d_"+o])return a["_rt_qc_d_"+o]}var n=this._getColFormat(e);if(""===f.$.trim(i)||f._.isUndefined(i)){if(!f._.isUndefined(n)&&!f._.isNull(n)){if("custom"===n.type&&!0===n.allowemptydata)return n.callback(String(i));if(void 0!==n.invalidchar)return n.invalidchar}s=i}else if(f._.isUndefined(n)||f._.isNull(n))s=i;else{var l=!1;switch(void 0===r&&void 0!==n.beforeformat&&f._.isFunction(n.beforeformat)&&(i=n.beforeformat(i,this.getRowData(t,e)),l=!0),n.type){case"string":if(f._.isString(i))for(var c=n.rule.split("@"),h=0;h<c.length;h++)""!==c[h]&&(i=f.util.replaceAll(i,c[h],""));s=n.rule.replace("@",i);break;case"number":var u={format:n.rule,locale:void 0===n.locale?this.attr("locale"):n.locale};if(s=f.$.formatNumber(f.util.replaceAll(i+"",",",""),u),void 0!==n.invalidchar&&"0"===s&&isNaN(Number(i))){s=n.invalidchar;break}if("#,###.##"===u.format){if("0"!==s&&-1!==(i+"").indexOf(".")&&-1===s.indexOf(".")){var d=u.format.split(".");""===s&&(s="0"),s+=".";for(var p=0;p<d[1].length;p++)s+="0"}else(""===s&&"0"===i||""===s&&0===i)&&(s="0");"0"===s&&isNaN(Number(i))&&!0===n.useinvaliddata&&(s=i)}else"0"===s&&isNaN(Number(i))&&!0===n.useinvaliddata?s=i:(f._.isNumber(i+"")?s=0:0!==i&&"0"!==i&&""!==i||(s=f.util.replaceAll(s,".",""),s=f.util.replaceAll(s,"0",""),s+="0"),-1!==n.rule.indexOf(".")&&0===s.indexOf(".")&&0!==n.rule.indexOf(".")&&(s="0"+s));break;case"date":f.moment.locale(void 0===n.locale?"kr"===this.attr("locale")?"ko":this.attr("locale"):n.locale),"Invalid date"===(s=f.moment(i,n.origin).format(n.rule))&&(s="");break;case"custom":s=n.callback(String(i));break;default:s=i}if(void 0===r&&void 0!==n.afterformat&&f._.isFunction(n.afterformat)&&(s=n.afterformat(s,this.getRowData(t,e))),!0===l){var g=this._getKeyOfCol(e);if(null!=g){var _=this.attr("currentdata")[t-this.attr("headerrows")];if(void 0!==_)_["_rt_qc_bf_"+g]=s}}0}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._showDataFormat",t.message),s=""}return s},f.QCELL.BasicQCELL.prototype._getColFormatStatic=function(t){return this._getQCellCol(t).attr("formatstatic")},f.QCELL.BasicQCELL.prototype._showDataFormatStatic=function(t,e){var i="";try{if(""===f.$.trim(e)||f._.isUndefined(e))i=e;else{var r=this._getColFormatStatic(t);if(f._.isUndefined(r)||f._.isNull(r))i=e;else{switch(r.type){case"string":i=r.rule.replace("@",e);break;case"number":var s={format:r.rule,locale:void 0===r.locale?this.attr("locale"):r.locale};i=f.$.formatNumber(e+"",s),0===parseInt(e+"")&&(i=0);break;case"date":f.moment.locale(void 0===r.locale?"kr"===this.attr("locale")?"ko":this.attr("locale"):r.locale),i=f.moment(e,r.origin).format(r.rule);break;case"custom":i=r.callback(String(e));break;default:i=e}0}}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._showDataFormatStatic",t.message),i=""}return i},f.QCELL.BasicQCELL.prototype._getColWidth=function(t){return this.attr("colwidthsperpixel")[t]},f.QCELL.BasicQCELL.prototype._setColWidth=function(t,e){try{var i=this.attr("colwidths"),r=this.attr("colwidthsperpixel"),s=this.attr("hsinfo"),a=s.bHScroll,o=s.nDynamicCols,n=this.attr("headercols");if(e===r[t])return!1;if(e<15)e=15;else{var l=this.attr("frozencols"),c=this.attr("layoutsize").viewport.offsetWidth,h=0;e>c-(h=t<n+l?this._getSumOfColWidth(n,t-1):this._getSumOfColWidth(n,n+l-1))&&(e=c-h)}r[t]=e;for(var u=n,d=this.attr("cols");u<d;u++)i[u]=r[u]+"px";if(this.attr("percentcolwidth",!1,"boolean"),this._initLayoutSize(),this._calculateDynamicCols(),o>s.nDynamicCols?this._removeDynamicCols(o-s.nDynamicCols):o<s.nDynamicCols&&this._addDynamicCols(s.nDynamicCols-o),this.attr("frozencols")>0&&this._setCellGroupCSS("col","frozen"),this._setCellGroupCSS("col","normal"),this._resizeHScrollbar(),this._updateHSInfo(),this._clearDynamicCSS("col","data"),a!==s.bHScroll){this._createElement();var p=this.getID();setTimeout((function(){var t=f.QCELL.getInstance(p);null!==t&&null!==t.attr("_backGT")&&t.setGrandTotal(t.attr("_backGT"))}))}return this.resize(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._setColWidth",t.message),!1}},f.QCELL.BasicQCELL.prototype._getKeyOfCol=function(t){return this.attr("colkeys")[t]},f.QCELL.BasicQCELL.prototype._setKeyOfCol=function(t,e){if(t<this.getCols("header")||this.attr("colkeys").length<=t)return!1;this.attr("colkeys")[t]=e;var i=this._getQCellCol(t);i&&i.attr("key",e,"string"),this.getProperties().columns[t-this.getCols("header")].key=e;for(var r=this.attr("vsinfo"),s=r.nTopRow;s<=r.nBottomRow;s++){var a=this._getCellDOM(s,t);if(null!=a){var o=this.getCellData(s,t),n=this._showDataFormat(s,t,void 0===o?"":o);f.util.textContent(a,n)}}return!0},f.QCELL.BasicQCELL.prototype._getKeyOfColID=function(t){var e=this.attr("colidsinfo");return f._.has(e,t)?this._getKeyOfCol(e[t]):-1},f.QCELL.BasicQCELL.prototype._getColsOfKey=function(t){var e=this.attr("colkeysinfo");return e.containsKey(t)?e.get(t).values():[]},f.QCELL.BasicQCELL.prototype._getColID=function(t){return this.attr("colids")[t]},f.QCELL.BasicQCELL.prototype._getColFilltered=function(t){return this._getQCellCol(t).attr("fillter_prev")},f.QCELL.BasicQCELL.prototype._setColFilltered=function(t,e){this._getQCellCol(t).attr("fillter_prev",e,"object")},f.QCELL.BasicQCELL.prototype._getColOfID=function(t){return this.attr("colidsinfo")[t]},f.QCELL.BasicQCELL.prototype._moveColsSub=function(t,e,i,s){var a,o,n,l=this,c=this.attr("qcellcols"),h=this.attr("colkeysinfo"),u=this.attr("hsinfo"),d=u.nDynamicCols,p=this.attr("cols"),g=this.attr("headercols"),_=t<i?t:i,C=t<i?i:t;for(n=_;n<=C;n++)this._removeColStyleClassName(n);var L,m,E,v=[],b=this._getQCellCol(t).attr("style"),y=this.attr("rows");if(!f._.isEmpty(b)){if(f._.isObject(b.header))for(E=Object.keys(b.header),L=0;L<E.length;L++)for(n=0;n<this.attr("headerrows");n++)null!==(m=this._getCellDOM(n,t))&&f.$(m).css(E[L],"");if(f._.isObject(b.data))for(E=Object.keys(b.data),L=0;L<E.length;L++)for(n=this.attr("headerrows");n<y;n++)null!==(m=this._getCellDOM(n,t))&&f.$(m).css(E[L],"")}if(!0===this.attr("useRemoveUI")){var w=this.getProperties().columns[t-g];for(t>i?(this.getProperties().columns.splice(t-g,1),this.getProperties().columns.RT_insert(i-g,w)):(this.getProperties().columns.RT_insert(i+1-g,w),this.getProperties().columns.splice(t-g,1)),n=0;n<this.getProperties().columns.length;n++)v.push(f._.clone(this.getProperties().columns[n]))}f._.each([c,this.attr("colsprops"),this.attr("colwidths"),this.attr("colwidthsperpixel"),this.attr("colkeys"),this.attr("colids"),this.attr("headertext")],(function(r){r.RT_insertArray(i-(t<i?e-1:0),r.splice(t,e))})),!0===this.attr("useRemoveUI")&&(this.attr("colsprops",v,"array"),this.setPropertiesColumn(v)),h.clear(),f._.each(this.attr("colkeys"),(function(t,e){!1===h.containsKey(t)&&h.put(t,new r._QHashSet),h.get(t).add(e)}));for(var x=f._.map(c,(function(t){return t.attr("id")})),Q=f._.range(0,p),k=[],T=0;T<x.length;T++)k.push([x[T],Q[T]]);this.attr("colidsinfo",f._.fromPairs(k),"object"),this._calculateDynamicCols(),d>u.nDynamicCols?this._removeDynamicCols(d-u.nDynamicCols):d<u.nDynamicCols&&this._addDynamicCols(u.nDynamicCols-d),this.attr("frozencols")>0&&this._setCellGroupCSS("col","frozen"),this._setCellGroupCSS("col","normal"),this._resizeHScrollbar(),this._updateHSInfo(),this._clearDynamicCSS("col","data");var R=this._getSyncInfo("col"),A=this._popColSyncInfos(t,e);if(t<i){var S=f._.range(t+e,i+1);this._pullColSyncInfo(f._.filter(S,(function(t){return R.containsKey(t)})),e),a=f._.range(i-(e-1),i+1),this._putColSyncInfos(a,A)}else{var O=f._.range(i,t).sort(f.st.desc);this._pushColSyncInfo(f._.filter(O,(function(t){return R.containsKey(t)})),e),a=f._.range(i,i+e),this._putColSyncInfos(a,A)}for(this._refreshDCs(),s||(f._.each(a,(function(t){o=f._.union(o,f._.flatten(l._getColCellDOMs(t)))})),f.$(o).effect("bounce",{distance:"5",times:1})),this._resetAriaLabel(),n=_;n<=C;n++)this._setRoleTitle(n);return setTimeout((function(){l._trigger("aftermovecol",{beforecol:t,cound:e,aftercol:i})})),!0},f.QCELL.BasicQCELL.prototype._moveCols=function(t,e,i,r){var s=this,a=f._.range(t,t+e),o=this.attr("cols"),n=this.attr("headercols");if(t!==i&&(i<t||i>=t+e)&&f._.every(a,(function(t){return t>=n&&t<o&&(!!r||s._getQCellCol(t).attr("move"))})))return this._moveColsSub(t,e,i,r);if(t!==i&&(i<t||i>=t+e)&&f._.every(a,(function(t){return t>=n&&t<o&&(!!r||s._getQCellCol(t).attr("topmove"))}))){var l=this._getCellDOM(0,t),c=0;if(c=Number(null===l?s.attr("colmoveshadow").attr("data-endcol"):l.getAttribute("data-endcol")),!0!==this._getQCellCol(t).attr("topmove")||!0!==this._getQCellCol(i).attr("topmove"))return!1;if(!isNaN(c)){if(t<i&&i<t+c)return!1;e=c}if(t<i){var h=this._getCellDOM(0,i),u=Number(h.getAttribute("data-endcol"));isNaN(u)||(i+=u,i--)}return this._moveColsSub(t,e,i,r)}return!1},f.QCELL.BasicQCELL.prototype._setFormatStatic=function(t,e){var i,r=!0;try{if(void 0!==e.type&&!1===f._.isString(e.type))i="string",f.QCELL.log("err","QCELL.create",'Please check "formatstatic.type"\'s type is "'+i+'".'),r=!1;else switch(e.type){case"date":void 0===e.origin&&!1===f._.isString(e.origin)?(i="string",f.QCELL.log("err","QCELL.create",'Please check "formatstatic.origin"\'s type is "'+i+'".'),r=!1):void 0===e.rule&&!1===f._.isString(e.rule)&&(i="string",f.QCELL.log("err","QCELL.create",'Please check "formatstatic.rule"\'s type is "'+i+'".'),r=!1);break;case"number":case"string":void 0===e.rule&&!1===f._.isString(e.rule)&&(i="string",f.QCELL.log("err","QCELL.create",'Please check "formatstatic.rule"\'s type is "'+i+'".'),r=!1);break;case"custom":void 0===e.callback&&!1===f._.isFunction(e.origin)&&(i="callback",f.QCELL.log("err","QCELL.create",'Please check "formatstatic.origin"\'s type is "'+i+'".'),r=!1)}r&&(this._getQCellCol(t).attr("formatstatic",e,"object"),this._refreshDCs()),r=!0}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._setCellLabel",t.message),r=!1}return r},f.QCELL.BasicQCELL.prototype._getColExportDataType=function(t){try{return this._getQCellCol(t).attr("exportdatatype")}catch(t){return""}},f.QCELL.BasicQCELL.prototype._getHeaderTextAlign=function(t){return this._getQCellCol(t).attr("header_text_algin")},f.QCELL.BasicQCELL.prototype._getDataTextAlign=function(t){return void 0===this._getQCellCol(t).attr("data_text_algin")||null===this._getQCellCol(t).attr("data_text_algin")?"left":this._getQCellCol(t).attr("data_text_algin")},f.QCELL.BasicQCELL.prototype._useDataTextAlign=function(t){return this._getQCellCol(t).attr("usedatatextalign")},f.QCELL.BasicQCELL.prototype._getColPrevProperty=function(t){return void 0===this._getQCellCol(t)||null===this._getQCellCol(t)||this._getQCellCol(t).attr("prev_param")},f.QCELL.BasicQCELL.prototype._getColTabindex=function(t){return this._getQCellCol(t).attr("tabindex")},f.QCELL.BasicQCELL.prototype._removeContextMenu=function(){if(!1===f._.isNull(this.attr("contextmneuui"))){if(void 0===this.attr("contextmneuui"))return;this.attr("contextmneuui").off("mousemove"),this.attr("contextmneuui").off("mouseleave"),this.attr("contextmneuui").remove(),this.attr("contextmneuui",null,"jquery"),this.attr("contextmenuid","","string"),f.$("rt-qc-contextmenu-root").remove()}var t=document.getElementsByClassName("rt-qc-contextmenu-root");if(null!=t)for(var e=0;e<t.length;e++)t[e].remove()},f.QCELL.BasicQCELL.prototype._initContextMenu=function(){var t=this.attr("id")+"._setContextMenu";try{return this._removeContextMenu(),this.attr("contextmenu",{},"object"),this.attr("contextmenuheader",{},"object"),this.attr("contextmenudata",{},"object"),this.attr("contextmenudisable",[],"array"),this.attr("contextmenuheaderdisable",[],"array"),this.attr("contextmenudatadisable",[],"array"),!0}catch(e){return f.QCELL.log("err",t,e.message),!1}},f.QCELL.BasicQCELL.prototype._setContextMenu=function(t){var e=this.attr("id")+"._setContextMenu";try{return this.attr("contextmenu",t,"object"),this.attr("contextmenuheader",t.header,"object"),this.attr("contextmenudata",t.data,"object"),this.attr("prevcontextmenu",f._.clone(t),"object"),this._createContextMenu(),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._createContextMenu=function(t){var e=this,i=this.attr("layoutsize").container.clientX,r=this.attr("layoutsize").container.clientY,s=this.attr("layoutsize").colheader.offsetHeight,a=this.attr("layoutsize").colheader.offsetLeft,o=this.attr("layoutsize").root,n=o.offsetWidth+i,l=o.offsetHeight+r,c=f.QCELL.def.css,h=this.attr("contextmenuheader"),u=this.attr("contextmenudata"),d=this.getID();f.$(document).bind("contextmenu",(function(t){if(e=f.QCELL.getInstance(d),f.$(t.target).hasClass("rt-qc-colheader-area")){if(f._.isNull(h)||f._.isUndefined(h))return!0;if(t.target.className.indexOf(c.CONTEXTMENU)>-1)t.preventDefault();else{if(f.$(t.target).hasClass("rt-qc-cell")){if(t.target.id.split("_")[0]!==d)return}else if(f.$(t.target).hasClass("rt-qc-colheader-area")&&t.target.parentElement.id.split("_")[0]!==d)return;if(t.preventDefault(),t.stopPropagation(),e._removeContextMenu(),e._initLayoutSize(),f._.isNull(e.attr("contextmneuui"))||void 0===e.attr("contextmneuui")){var o=document.createElement("ul").cloneNode();o.id=h.id,o.className+=c.CONTEXTMENU_AREA+" "+c.CONTEXTMENU_ROOT,e.attr("contextmneuui",f.$(e._createContextMenuContents(o,h.contents,1,h.id+"-")),"jquery")}e._calculateContextMenuPosition(t,e.attr("contextmneuui")),e.attr("contextmneuui").appendTo(e.attr("parent")),e.attr("contextmneuui").on("mousemove",(function(t){var i=t.target.parentNode;f.util.hasClass(i,c.CONTEXTMENU_MENU)||f.util.hasClass(i,c.CONTEXTMENU_SUB_MENU)?e.attr("contextmenuid",f.$(i).attr("id"),"string"):(i=i.parentNode,(f.util.hasClass(i,c.CONTEXTMENU_MENU)||f.util.hasClass(i,c.CONTEXTMENU_SUB_MENU))&&e.attr("contextmenuid",f.$(i).attr("id"),"string"))})),e.attr("contextmneuui").on("mouseleave",(function(t){e.attr("contextmenuid","","string")}))}}else{if(!(t.pageY>s+r&&t.pageY<l&&t.pageX>a+i&&t.pageX<n))return!0;if(f._.isNull(u)||f._.isUndefined(u))return!0;if(t.target.className.indexOf(c.CONTEXTMENU)>-1)t.preventDefault();else{if(f.$(t.target).hasClass("rt-qc-cell")&&t.target.id.split("_")[0]!==d)return;if(e._removeContextMenu(),t.preventDefault(),(f._.isNull(e.attr("contextmneuui"))||void 0===e.attr("contextmneuui"))&&e.attr("contextmneuui",e._createContextMenuLayout(document.createElement("ul"),t),"jquery"),void 0===e.attr("contextmneuui")||null===e.attr("contextmneuui"))return;e._calculateContextMenuPosition(t,e.attr("contextmneuui")),e.attr("contextmneuui").appendTo(e.attr("parent")),e.attr("contextmneuui").on("mousemove",(function(t){var i=t.target.parentNode;f.util.hasClass(i,c.CONTEXTMENU_MENU)||f.util.hasClass(i,c.CONTEXTMENU_SUB_MENU)?e.attr("contextmenuid",f.$(i).attr("id"),"string"):(i=i.parentNode,(f.util.hasClass(i,c.CONTEXTMENU_MENU)||f.util.hasClass(i,c.CONTEXTMENU_SUB_MENU))&&e.attr("contextmenuid",f.$(i).attr("id"),"string"))})),e.attr("contextmneuui").on("mouseleave",(function(t){e.attr("contextmenuid","","string")}))}}}))},f.QCELL.BasicQCELL.prototype._calculateContextMenuPosition=function(t,e){if(void 0!==e){var i,r,s=f.QCELL.def.css,a=this.attr("layoutsize").container.clientX,o=this.attr("layoutsize").container.clientY,n=this.attr("layoutsize").root.offsetHeight+o,l=this.attr("layoutsize").root.offsetWidth+a,c=f.$("."+s.CONTEXTMENU_ROOT).height()+this.attr("layoutsize").hscrollbar.offsetHeight,h=f.$("."+s.CONTEXTMENU_ROOT).width()+this.attr("layoutsize").vscrollbar.offsetWidth,u=parseInt(t.pageY),d=parseInt(t.pageX),p=0;(this.attr("useall")||this.attr("usetreeall"))&&(p=a),r=l<d+h?l-h+"px":d-p+"px",i=n<u+c?n-c+"px":u-o+this.attr("layoutsize").root.offsetTop+"px",e.css({left:r,top:i})}},f.QCELL.BasicQCELL.prototype._createContextMenuLayout=function(t,e){var i=f.QCELL.def.css,r=t.cloneNode(),s=this.attr("contextmenu"),a=this.attr("contextmenudata"),o=e.target,n=parseInt(o.getAttribute("data-col"));if(r.id=void 0===s.id?this.getID()+"_contextmenu":this.getID()+"_"+s.id,r.className+=i.CONTEXTMENU_AREA+" "+i.CONTEXTMENU_ROOT,(f._.isNull(a.except)||f._.isUndefined(a.except))&&!f._.isNull(a.base)&&!f._.isUndefined(a.base))return f.$(this._createContextMenuContents(r,a.base.contents,1,a.base.id+"-"));if(!f._.isNull(a.except)&&!f._.isUndefined(a.except)){for(var l=null,c=!1,h=0;h<a.except.length;h++){var u=a.except[h];if(n===u.col){c=!0,l=u;break}}return c?f.$(this._createContextMenuContents(r,l.contents,1,l.id+"-")):f.$(this._createContextMenuContents(r,a.base.contents,1,a.base.id+"-"))}},f.QCELL.BasicQCELL.prototype._createContextMenuContents=function(t,e,i,r){var s=f.QCELL.def.css,a=t.cloneNode(),o=this.attr("contextmenudisable"),n=1;a.style.zIndex=i;for(var l=0;l<e.length;l++){var c=e[l],h=document.createElement("li"),u=document.createElement("span"),d=u.cloneNode(),p=u.cloneNode(),g=r+n;if(!0===c.disabled&&!1===f._.contains(o,g)&&o.push(g),!1===f._.isUndefined(c.divine))f._.isBoolean(c.divine)&&!0===c.divine&&(h.className+=s.CONTEXTMENU_DIVINE);else{if(n++,h.id=g,h.className+=s.CONTEXTMENU_ITEM,u.className+=s.CONTEXTMENU_ITEM_IMG,d.className+=s.CONTEXTMENU_ITEM_LABEL,p.className+=s.CONTEXTMENU_ITEM_SUB,!1===f._.isUndefined(c.icon)?u.appendChild(this._createFontAwesomeElementImg(c.icon)):u.appendChild(document.createTextNode(" ")),!1===f._.isUndefined(c.label)?d.appendChild(document.createTextNode(c.label)):d.appendChild(document.createTextNode(" ")),p.appendChild(document.createTextNode(" ")),h.appendChild(u),h.appendChild(d),h.appendChild(p),!1===f._.isUndefined(c.callback)&&(f._.isFunction(c.callback)?this._addContextMenuClickEvent(h,c.callback,c):f._.isString(c.callback)&&this._addContextMenuStringClickEvent(h,c.callback,c)),this._addContextMenuClickEventInit(h),!0===f._.isUndefined(c.items))h.className+=" "+s.CONTEXTMENU_MENU;else{var _=document.createElement("ul");_.className+=s.CONTEXTMENU_AREA,_=this._createContextMenuContents(_,c.items,i+1,g+"-"),h.className+=" "+s.CONTEXTMENU_SUB_MENU,h.appendChild(_)}for(var C=0;C<o.length;C++)g===o[C]&&(h.className+=" "+s.CONTEXTMENU_DISABLE,!1===f._.isUndefined(c.callback)&&f._.isFunction(c.callback)&&f.$(h).off("click",c.callback),f.$(h).off("click"));this._addContextMenuMouseMoveEvent(h,s)}a.appendChild(h)}return a},f.QCELL.BasicQCELL.prototype._createFontAwesomeElementImg=function(t){var e,i="</i>";if(t.indexOf("<i")>-1&&t.indexOf(i)>-1){var r=t.substr(t.indexOf("<i"),t.lastIndexOf(i))+i,s=r.slice(r.indexOf('"')+1,r.lastIndexOf('"'));(e=document.createElement("i")).className+=s}else(e=document.createElement("img")).src=t;return e},f.QCELL.BasicQCELL.prototype._addContextMenuClickEvent=function(t,e,i){f.$(t).on("click",this.attr("eventparam"),(function(t){e(i)}))},f.QCELL.BasicQCELL.prototype._addContextMenuStringClickEvent=function(t,e,i){f.$(t).on("click",this.attr("eventparam"),(function(t){window[e](i)}))},f.QCELL.BasicQCELL.prototype._addContextMenuClickEventInit=function(t){var e=this;f.$(t).on("click",this.attr("eventparam"),(function(t){e._removeContextMenu()}))},f.QCELL.BasicQCELL.prototype._addContextMenuMouseMoveEvent=function(t,e){var i,r;f.$(t).mouseenter((function(t){var s=f.$(this.parentNode).width(),a=f.$(this).parent().children(),o=0;for(i=f.$(this).children(),r=0;r<a.length;r++)if(a[r]===f.$(this).get(0)){r<a.length-1&&(o=-1);break}for(r=0;r<i.length;r++){var n=f.$(i[r]);n.hasClass(e.CONTEXTMENU_AREA)&&("auto"===n.css("left")&&n.css({left:s+"px",top:o+"px"}),n.css({display:"inline-block"}))}})),f.$(t).mouseleave((function(t){for(i=f.$(this).children(),r=0;r<i.length;r++){var s=f.$(i[r]);s.hasClass(e.CONTEXTMENU_AREA)&&s.css({display:"none"})}}))},f.QCELL.BasicQCELL.prototype._setDisableContextmenu=function(t){var e,i=this.attr("contextmenudisable"),r=[];for(t=t.sort().reverse(),e=0;e<i.length;e++)for(var s=t.length;s>-1;s--)i[e]===t[s]&&r.push(t[s]);if(r.length>0)for(e=0;e<r.length;e++)t.splice(r[e],1);for(e=0;e<t.length;e++)i.push(t[e]);return i.sort(),this._removeContextMenu(),!0},f.QCELL.BasicQCELL.prototype._setAbleContextmenu=function(t){var e,i=this.attr("contextmenudisable"),r=[];for(t=t.sort().reverse(),e=0;e<i.length;e++)for(var s=t.length;s>-1;s--)i[e]===t[s]&&r.push(t[s]);for(e=0;e<t.length;e++)i.splice(r[e],1);return this._removeContextMenu(),!0},f.QCELL.BasicQCELL.prototype._getContextmenuId=function(){return this.attr("contextmenuid")},f.QCELL.BasicQCELL.prototype._isContextMenu=function(){try{return f._.isEmpty(this.attr("contextmenu").data)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._isContextMenu",t.message),!1}},f.QCELL.BasicQCELL.prototype._createCols=function(){var t,e,i=!0,r=this.attr("colsprops"),s=r.length,a=this.attr("qcellcols"),o=this.attr("rowheaders").length;for(t=0;t<o;t++){if(null===(e=this._createHeaderCol({key:"array"===this.attr("data").type?-1:""}))){i=!1;break}a.push(e)}if(i){for(t=0;t<s;t++){if(null===(e=this._createCol(t,r[t]))){i=!1;break}a.push(e)}i&&this._setHSRange()}return i},f.QCELL.BasicQCELL.prototype._createHeaderCol=function(t){try{return f.QCELL.BasicQCELL.QCellCol.create(f._.extend(f._.clone(t),{parent:this,id:"col_"+this.attr("qcellcols").length,width:this.attr("headercolwidth")+"px",move:!1}))}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createHeaderCol",t.message),null}},f.QCELL.BasicQCELL.prototype._createCol=function(t,e){try{return f.QCELL.BasicQCELL.QCellCol.create(t,f._.extend(f._.clone(e),{parent:this,id:"col_"+this.attr("qcellcols").length}))}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createCol",t.message),null}},f.QCELL.BasicQCELL.prototype._create=function(){if(this._initProps()&&this._initData()&&this._initRowheaderData()&&this._createElement()){void 0!==this.attr("groupdata")&&this.setGroup(this.attr("groupdata"));var t=this;return!0!==this.attr("bRebuildWithPrevData")&&setTimeout((function(){t._trigger("aftercreated")}),0),setTimeout((function(){t._trigger("viewport_changed")}),0),!0}return!1},f.QCELL.BasicQCELL.prototype._createElement=function(){try{return this._createHeaderMergeInfo()&&this._removeElement()&&this._createLayout()&&this._initLayoutSize()&&this._adjustFrozenCount()&&this._calculateDynamicCols()&&this._calculateDynamicRows()&&this._createFlesh()&&this._resizeHScrollbar()&&this._resizeVScrollbar()&&this._updateHSInfo()&&this._updateVSInfo()&&this._createDataMergeInfo()&&this._updateMerge()}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createElement",t.message),!1}},f.QCELL.BasicQCELL.prototype._removeElement=function(){try{return!!this._removeScrollbarUI()&&(f.$(this.attr("parent")).empty(),this.attr("elementpool").clear(),this.attr("cellmatrix").clear(),this.attr("focuscell",null,"element"),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._removeElement",t.message),!1}},f.QCELL.BasicQCELL.prototype._removeScrollbarUI=function(){try{var t=this.attr("hsinfo"),e=this.attr("vsinfo"),i=this.attr("elementpool");return t.bHScroll&&i.containsKey("$jqhscrollbar")&&i.get("$jqhscrollbar").rt_qc_mCSbar("destroy"),e.bVScroll&&i.containsKey("$jqvscrollbar")&&i.get("$jqvscrollbar").rt_qc_mCSbar("destroy"),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._removeScrollbarUI",t.message),!1}},f.QCELL.BasicQCELL.prototype._setRoleTitle=function(t){if(this.attr("useall")||this.attr("usetreeall")){var e=void 0!==t?t:this.attr("elementpool").get("viewportinner");if(f._.isElement(e)){e.setAttribute("role","grid");var i,r="",s="",a=this.attr("rowheaderstitle");if(null!=a)for(i=0;i<a.length;i++)""!==r&&(r+=","),r+=s=a[i];for(i=this.getCols("header");i<this.getCols();i++)""!==(s=this._getTitleHeader(i))&&(""!==r&&(r+=","),r+=s);r="그리드 테이블 "+r,e.setAttribute("aria-label",r)}}},f.QCELL.BasicQCELL.prototype._createLayout=function(){var t=this.attr("parent");if(f._.isElement(t)){if(t.appendChild(this._createRoot(document.createElement("div"))),this._initEvent())return!0;f.$(t).empty()}return!1},f.QCELL.BasicQCELL.prototype._createRoot=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.ROOT,s.setAttribute("id",r.areaname.ROOT+"-"+i),s.appendChild(this._createPanel(t)),s.appendChild(this._createContainer(t)),s.appendChild(this._createPaginationPanel(t)),s.appendChild(this._createSheetPanel(t)),e.put("root",s),e.put("$root",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createPanel=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.PANEL,s.setAttribute("id",r.areaname.PANEL+"-"+i),s.appendChild(this._createGroupUIArea(t)),e.put("panel",s),e.put("$panel",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createGroupUIArea=function(t){var e=this.attr("id"),i=f.QCELL.def,r=t.cloneNode();return r.className+=i.css.GROUPUI,r.setAttribute("id",i.areaname.GROUPUI+"-"+e),f.$(r).droppable({hoverClass:"hover"}),r.appendChild(this._createGroupUIInner()),r},f.QCELL.BasicQCELL.prototype._createGroupUIInner=function(){var t=document.createElement("ol"),e=this.attr("id"),i=f.QCELL.def,r=i.css.GROUPUI_INNER+"-"+e,s=this;return t.className+=i.css.GROUPUI_INNER,t.setAttribute("id",r),t.appendChild(this._createGroupUIPlaceholder()),f.$(t).sortable({axis:"x",containment:"parent",stop:function(t,e){if(!e.item.hasClass(".placeholder")){var i=Number(e.item.attr("data-col")),r=s.attr("colkeys")[i];if(s.attr("groupuiinfo",[],"array"),f.$(this).find("li.placeholder").remove(),f.$(e.item).hasClass(f.QCELL.def.css.CELL)&&f.$(e.item).remove(),0===f.$(this).find("li[data-column="+r+"]").length){var a=f.$("<span></span>").addClass(f.QCELL.def.css.UI_ICON+" "+f.QCELL.def.css.UI_ICON_CLOSE).on("click",(function(e){var i=e.target.parentNode,r=t.target;f.$(i).remove(),0===f.$(r).find("li").length?(r.appendChild(s._createGroupUIPlaceholder()),s._clearGroup()):(s.attr("groupuiinfo",[],"array"),s._setGroupUIInfo(f.$(r).find("li").not(".placeholder")))})),o=f.$("<li></li>").attr("data-column",r).attr("data-col",i).append(a).append(e.item[0].innerText);f.$(t.target).append(o)}s._setGroupUIInfo(f.$(this).find("li").not(".placeholder"))}}}),t},f.QCELL.BasicQCELL.prototype._createGroupUIPlaceholder=function(){var t=document.createElement("li");return t.className="placeholder",t.innerHTML="이곳에 그룹화할 컬럼을 드롭해 주십시오",t},f.QCELL.BasicQCELL.prototype._createContainer=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.CONTAINER,s.setAttribute("id",r.areaname.CONTAINER+"-"+i),s.setAttribute("tabindex","0"),s.appendChild(this._createViewPort(t)),s.appendChild(this._createFooterRowHeader(t)),s.appendChild(this._createFooter(t)),s.appendChild(this._createEdgeHeader(t)),s.appendChild(this._createRowHeader(t)),s.appendChild(this._createColHeader(t)),s.appendChild(this._createHScrollbar(t)),s.appendChild(this._createVScrollbar(t)),e.put("container",s),e.put("$container",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createSheetPanel=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=" "+r.css.SHEETPANEL,s.setAttribute("id",r.areaname.SHEETPANEL+"-"+i),s.appendChild(this._createSheetPanelInner(t)),e.put("sheetpanel",s),e.put("$sheetpanel",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createSheetPanelInner=function(t){var e=f.QCELL.def,i=this.attr("id"),r=t.cloneNode(),s=document.createElement("span");return s.className+=" "+e.css.SHEETPANEL_INNER_SPAN,s.setAttribute("id",e.areaname.SHEETPANEL+"-span-"+i),r.appendChild(s),r.className+=" "+e.css.SHEETPANEL_INNER,r},f.QCELL.BasicQCELL.prototype._createPaginationPanel=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode(),a=this.attr("paginationinfo");if(s.className+=r.css.PAGINATIONPANEL,s.setAttribute("id",r.areaname.PAGINATIONPANEL+"-"+i),e.put("paginationpanel",s),e.put("$paginationpanel",f.$(s)),!1===f._.isUndefined(a.pageunit)){var o=this._calculatePaginationInfoCreate();s.appendChild(this._createPaginationInner(t)),o&&(this._updateCurrentData(f._.clone(a.result)),this._initRowheaderData())}return s},f.QCELL.BasicQCELL.prototype._createPaginationInner=function(t){var e=f.QCELL.def,i=t.cloneNode();return i.className+=e.css.PAGINATION_INNER,i.style.width=i.style.height="100%",i.appendChild(this._createPaginationCenterUI(t.cloneNode())),i.appendChild(this._createPaginationRightUI(t.cloneNode())),i},f.QCELL.BasicQCELL.prototype._createPaginationCenterUI=function(t){var e,i,r,s,a,o,n,l,c,h=f.QCELL.def,u=this.attr("eventparam"),d=this.attr("paginationinfo"),p=t.cloneNode(),g=document.createElement("input"),_=g.cloneNode(),C=document.createElement("span"),L=document.createElement("select"),m=Math.floor((d.pageindex-1)/d.pagecount),E=Math.floor(d.lastindex/d.pagecount),v=m*d.pagecount,b=m*d.pagecount+d.pagecount>d.lastindex?d.lastindex:m*d.pagecount+d.pagecount,y="container-"+this.getID();i=(e=this.attr("usedynamic")?document.createElement("button"):document.createElement("span")).cloneNode(),r=e.cloneNode(),s=e.cloneNode(),a=e.cloneNode();var w="",x=" ";if(this.attr("usedynamic")&&(i.setAttribute("tabindex","0"),r.setAttribute("tabindex","0"),s.setAttribute("tabindex","0"),a.setAttribute("tabindex","0"),w=" rt-qc-pagination-nav-btn-button",x=" rt-qc-pagination-nav-pager-button "),o=function(t){var e=t.data.target,i=parseInt(t.target.getAttribute("movepage")),r=t.target.getAttribute("movestate");e&&(e._movePage(i),e._trigger("movepage",r),null!=(c=document.getElementById(y))&&c.focus())},n=function(t){var e=t.data.target;e&&(e._movePage(e.attr("paginationinfo").pageindex,Number(f.$(t.target).val())),null!=(c=document.getElementById(y))&&c.focus())},p.className+=h.css.PAGINATION_UI_CENTER,i.appendChild(document.createTextNode("<<")),i.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,i.style.color="#ffffff",i.setAttribute("id","rt-qc-pagination-nav-first"),d.firstpage?(i.style.cursor="pointer",i.setAttribute("movepage",1),i.setAttribute("movestate","move-first"),f.$(i).on("click",u,o)):i.style.opacity="0.3",r.appendChild(document.createTextNode("<")),r.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,r.style.color="#ffffff",r.setAttribute("id","rt-qc-pagination-nav-prev"),d.prevpage?(r.style.cursor="pointer","simple"===d.mode?r.setAttribute("movepage",d.pageindex-1):m>0&&r.setAttribute("movepage",v),r.setAttribute("movestate","move-prev"),f.$(r).on("click",u,o)):r.style.opacity="0.3",s.appendChild(document.createTextNode(">")),s.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,s.style.color="#ffffff",s.setAttribute("id","rt-qc-pagination-nav-next"),d.nextpage?(s.style.cursor="pointer","simple"===d.mode?s.setAttribute("movepage",d.pageindex+1):m<E&&s.setAttribute("movepage",b+1),s.setAttribute("movestate","move-next"),f.$(s).on("click",u,o)):s.style.opacity="0.3",a.appendChild(document.createTextNode(">>")),a.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,a.style.color="#ffffff",a.setAttribute("id","rt-qc-pagination-nav-last"),d.lastpage?(a.style.cursor="pointer",a.setAttribute("movepage",d.lastindex),a.setAttribute("movestate","move-last"),f.$(a).on("click",u,o)):a.style.opacity="0.3",p.appendChild(i),p.appendChild(r),"simple"===d.mode)g.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_INPUT,g.setAttribute("value",d.pageindex),g.setAttribute("size",String(d.lastindex).length),g.setAttribute("maxlength",String(d.lastindex).length),g.style.textAlign="right",f.$(g).on("keydown",u,f.st.eventProcess),C.className+=h.css.PAGINATION_NAV,C.style.color="#ffffff",C.appendChild(document.createTextNode(" / "+d.lastindex)),p.appendChild(g),p.appendChild(C);else if(d.pageindex>0)for(var Q=v;Q<b;Q++)(l=e.cloneNode()).appendChild(document.createTextNode(Q+1)),l.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_PAGER+" "+x,d.pageindex===Q+1?l.className+=h.css.PAGINATION_NAV_PAGER_NOW:(l.style.cursor="pointer",l.setAttribute("movepage",Q+1),l.setAttribute("movestate","move-"+(Q+1)),l.setAttribute("tabindex","0"),f.$(l).on("click",u,o)),p.appendChild(l);else(l=e.cloneNode()).appendChild(document.createTextNode(1)),l.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_NOW_BTN,p.appendChild(l);return p.appendChild(s),p.appendChild(a),!1===f._.isUndefined(this.attr("paginationinfo").unitlist)&&f._.isArray(this.attr("paginationinfo").unitlist)&&(L.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_SELECT,L.title="QCELL Datas in Page",L.setAttribute("tabindex","0"),f._.each(this.attr("paginationinfo").unitlist,(function(t){var e=document.createElement("option");e.setAttribute("value",t),e.appendChild(document.createTextNode(t)),t===d.pageunit&&e.setAttribute("selected",!0),L.appendChild(e)})),f.$(L).on("change",u,n),p.appendChild(L)),!0===d.extendmove&&"extend"===d.mode&&(_.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_INPUT+" "+h.css.PAGINATION_NAV_EXTEND_MOVE,_.setAttribute("value",0===d.pageindex?1:d.pageindex),_.setAttribute("size",String(d.lastindex).length),_.setAttribute("maxlength",String(d.lastindex).length),_.style.textAlign="right",f.$(_).on("keydown",u,f.st.eventProcess),p.appendChild(_)),p},f.QCELL.BasicQCELL.prototype._createPaginationRightUI=function(t){var e=f.QCELL.def,i=this.attr("paginationinfo"),r=t.cloneNode(),s=document.createElement("span"),a=(i.pageindex>0?i.pageunit*(i.pageindex-1)+1:i.pageindex)+" - "+(i.pageindex*i.pageunit>i.datacount?i.datacount:i.pageindex*i.pageunit)+" of "+i.datacount;return r.className+=e.css.PAGINATION_UI_RIGHT,s.className+=e.css.PAGINATION_NAV+" "+e.css.PAGINATION_NAV_INFO,s.appendChild(document.createTextNode(a)),r.appendChild(s),r},f.QCELL.BasicQCELL.prototype._createViewPort=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.VIEWPORT,s.setAttribute("id",r.areaname.VIEWPORT+"-"+i),e.put("viewport",s),e.put("$viewport",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createFooterRowHeader=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.FOOTERROWHEADER,s.setAttribute("id",r.areaname.FOOTERROWHEADER+"-"+i),e.put("footerrowheader",s),e.put("$footerrowheader",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createFooter=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.FOOTER,s.setAttribute("id",r.areaname.FOOTER+"-"+i),e.put("footer",s),e.put("$footer",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createEdgeHeader=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.EDGEHEADER,s.setAttribute("id",r.areaname.EDGEHEADER+"-"+i),(this.attr("useall")||this.attr("usetreeall"))&&s.setAttribute("aria-hidden","true"),e.put("edgeheader",s),e.put("$edgeheader",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createRowHeader=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.ROWHEADER,s.setAttribute("id",r.areaname.ROWHEADER+"-"+i),(this.attr("useall")||this.attr("usetreeall"))&&s.setAttribute("aria-hidden","true"),e.put("rowheader",s),e.put("$rowheader",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createColHeader=function(t){var e=this.attr("elementpool"),i=this.attr("id"),r=f.QCELL.def,s=t.cloneNode();return s.className+=r.css.COLHEADER+" "+r.css.COLHEADER_AREA,s.setAttribute("id",r.areaname.COLHEADER+"-"+i),e.put("colheader",s),e.put("$colheader",f.$(s)),s},f.QCELL.BasicQCELL.prototype._createHScrollbar=function(t){var e,i=this.attr("elementpool"),r=this.attr("id"),s=f.QCELL.def;return(e=t.cloneNode()).className+=s.css.HSCROLLBAR,e.setAttribute("id",s.areaname.HSCROLLBAR+"-"+r),i.put("hscrollbar",e),i.put("$hscrollbar",f.$(e)),e.appendChild(this._createJqHScrollbar(t)),e},f.QCELL.BasicQCELL.prototype._createVScrollbar=function(t){var e,i=this.attr("elementpool"),r=this.attr("id"),s=f.QCELL.def;return(e=t.cloneNode()).className+=s.css.VSCROLLBAR,e.setAttribute("id",s.areaname.VSCROLLBAR+"-"+r),i.put("vscrollbar",e),i.put("$vscrollbar",f.$(e)),e.appendChild(this._createJqVScrollbar(t)),e},f.QCELL.BasicQCELL.prototype._createJqHScrollbar=function(t){var e=this.attr("elementpool"),i=t.cloneNode();return e.put("jqhscrollbar",i),e.put("$jqhscrollbar",f.$(i)),i},f.QCELL.BasicQCELL.prototype._createJqVScrollbar=function(t){var e,i=this.attr("elementpool");return e=t.cloneNode(),i.put("jqvscrollbar",e),i.put("$jqvscrollbar",f.$(e)),e},f.QCELL.BasicQCELL.prototype._createHScrollThumb=function(t){try{var e=this.attr("elementpool"),i=f.QCELL.def,r=e.get("jqhscrollbar"),s=t.cloneNode();return s.className+=i.css.HSCROLL_THUMB,s.style.height="1px",e.put("hscrollthumb",s),e.put("$hscrollthumb",f.$(s)),r.appendChild(s),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createHScrollThumb",t.message),!1}},f.QCELL.BasicQCELL.prototype._createVScrollThumb=function(t){try{var e=this.attr("elementpool"),i=f.QCELL.def,r=e.get("jqvscrollbar"),s=t.cloneNode();return s.className+=i.css.VSCROLL_THUMB,s.style.width="1px",e.put("vscrollthumb",s),e.put("$vscrollthumb",f.$(s)),r.appendChild(s),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createVScrollThumb",t.message),!1}},f.QCELL.BasicQCELL.prototype._createFlesh=function(){try{var t=!1;if(this._initCellMatrix()){var e=this.attr("headercols"),i=this.attr("footerrows"),r=[],s=document.createDocumentFragment(),a=this.attr("elementpool"),o=document.createElement("div"),n=a.get("root"),l=a.get("container"),c=a.get("paginationpanel");s.appendChild(l),e>0&&(r.push("edgeheader"),r.push("rowheader")),r.push("colheader"),r.push("viewport"),i>0&&(e>0&&r.push("footerrowheader"),r.push("footer")),r.push("hscrollthumb"),r.push("vscrollthumb");for(var h=0,u=r.length;h<u;h++){var d=r[h];if("edgeheader"===d?t=this._createEdgeHeaderInner(o):"rowheader"===d?t=this._createRowHeaderInner(o):"colheader"===d?t=this._createColHeaderInner(o):"viewport"===d?t=this._createViewPortInner(o):"footerrowheader"===d?t=this._createFooterRowHeaderInner(o):"footer"===d?t=this._createFooterInner(o):"hscrollthumb"===d?t=this._createHScrollThumb(o):"vscrollthumb"===d&&(t=this._createVScrollThumb(o)),!1===t)break}t&&(this._syncCellMatrix("row"),n.insertBefore(s,c))}return t}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createFlesh",t.message),!1}},f.QCELL.BasicQCELL.prototype._createEdgeHeaderInner=function(t){try{var e=this.attr("layoutsize"),i=this.attr("elementpool"),r=f.QCELL.def.css,s=i.get("edgeheader"),a=t.cloneNode();return a.className+=r.EDGEHEADER_INNER,a.style.width=e.edgeheader.clientWidth+"px",a.style.height=e.edgeheader.clientHeight+"px",i.put("edgeheaderinner",a),i.put("$edgeheaderinner",f.$(a)),!!this._createEdgeHeaderCells(t)&&(s.appendChild(a),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createEdgeHeaderInner",t.message),!1}},f.QCELL.BasicQCELL.prototype._createRowHeaderInner=function(t){try{var e=this.attr("layoutsize"),i=this.attr("elementpool"),r=f.QCELL.def.css,s=i.get("rowheader"),a=t.cloneNode();return a.className+=r.ROWHEADER_INNER,a.style.width=e.rowheader.clientWidth+"px",a.style.height=e.rowheader.clientHeight+"px",i.put("rowheaderinner",a),i.put("$rowheaderinner",f.$(a)),!!this._createRowHeaderCells(t)&&(s.appendChild(a),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createRowHeaderInner",t.message),!1}},f.QCELL.BasicQCELL.prototype._createColHeaderInner=function(t){try{var e=this.attr("layoutsize"),i=this.attr("elementpool"),r=f.QCELL.def.css,s=i.get("colheader"),a=t.cloneNode();return a.className+=r.COLHEADER_INNER+" "+r.COLHEADER_AREA,a.style.width=e.colheader.clientWidth+"px",a.style.height=e.colheader.clientHeight+"px",a.setAttribute("id","colheader_inner_"+this.getID()),i.put("colheaderinner",a),i.put("$colheaderinner",f.$(a)),!!this._createColHeaderCells(t)&&(s.appendChild(a),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createColHeaderInner",t.message),!1}},f.QCELL.BasicQCELL.prototype._createViewPortInner=function(t){try{var e=this.attr("layoutsize"),i=this.attr("elementpool"),r=f.QCELL.def.css,s=i.get("viewport"),a=t.cloneNode();return a.className+=r.VIEWPORT_INNER,a.style.width=e.viewport.clientWidth+"px",a.style.height=e.viewport.clientHeight+"px",a.setAttribute("id","viewport_inner_"+this.getID()),0!==f._s&&-1!==f._s&&void 0!==f._s||(a.style.backgroundImage="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXYAAAGkCAYAAAFSrz7XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxAAABcQARhhEdsAAHYGSURBVHhe7Z0HfBzF+fdvyzVVF3XJkqUrKpZs2RhTDTgkIYH0ENKAkJ6QQAoJqW/AIY0ECAnpBQglBVKoIflTDAnF4CLZVr0iybK6XGSVq1veZ04jReX67fXn++HwPM+e7vZmn/3NM7Ozs6p4YLdPyOTV23vsk9QVFxj6b8zs2bOHr67e5KXmKgyGEsW+awFFPpDUMi0GRZaZM43G4v3UjJmYdj7cnV6JUkchqg+xWkdvZlnuJmpGTaw/IuI/DlXbdXXFLMMwi++xWsdeZVl2BzVXIUnyUZOpdCM1IyLsnQ+20zqdN7eystJBzYAE+wxBcFXV11cPUzMsQu481Nw/oebeTM1VRHroe3qGP6pWq39HzVVE8nks/TcgsOOFtLiKaGK2oaHy9xAsZdSMiZA7H4hYTjaDoWxclmWBmlET1c6H2nGbbfQym21ijJp+MRpL1bQYNVHXfCDISckw3BMMoyol5T17+nV00yrgPd+ixaiIeOclSXiSFpdBdtSfmlRX5zoDqUxdXckttBgVEe+8yVTxFlqMiJ6eY7+kRcVQPGwSCe68P4gixSKn4RD3mic/wOORNlNTUSLe+UDKMT7uyqHFVTQ2lh1paNjwaWoqhmI1f+651U5Sy9ByzlFXSAJVRLhEtfMWy+hrtLgKaDnz4h3rC0S18xzHnUmLSSXqsIn1kCtByJ2HEDiPFleh9A8QBM+HaTEswo5Ni+V4AcdJp6m5ilBxDufJIITbBkmSfmkylV1LfEt/fDTnScR/AD2rHuig1FMzasjOkp2P5eSO+g9jDZmVHfVoiHrnF4j0R4ii8KzZXPF6asZEzDtPsFpHN7Es10HNgMQSIv5Q9MPs9nEvfCRPzUWU3mkEiYFlsbhyjH16+vRPt241fY6ay1ipMk5nsba5mfGQcjAFGhoavKugoPjXBQV63wnu73xY+HtBENvq68u3+Zx+WEwPyB+svDhQUFB4/codgZbyO/52Tq+fdAfb6Xjg2/mlXwq/1peXT01N3Uddy7ZDE/8NWvTVGnmJouSiLlVX19HFcciF7UtfF164/Xq6OWaWJWbkw+Ew+XpEZ5xh/hCxfRuA7u5jdy39EUu3mc1lepfLeQXxNTXVfIy64w7b1ma7nZb9Ioqi7zKMRqP9rM8BLN3xBTZtqnmYFhchP3bli25SBFaSxKto2S8ez4ldtJhysBDDzbTsF72+ZIYWF+noGPwALQaFHKGVL7pJEdjWVuMELatstnGf1C0wOjqaS4u+HXE4HH8gZb1e96DPuYSFsOjsPGqlrrjjq4kjR/qvzcnJ/bnPE4CFWgsVt+R9od4zPe1sXtD5aFjYF5/atLTU/mJ2dvYdpLwSp9O5c+nhJmXoDfnduaXvSwR+v2xlzSV6pxSB/IiOjqNBwwlJZ8gRXnjt379/8VrVyvAlts028V9qhh63SQQLIjA4WKzevn27d+GHkG1dXcPbFuz+ftvHfX9ASYmd98f/REIKeGk/ZXd+AchY82gRQZRA8ZYTpOxhhlFdTsrxbpkV+/AFafNHvH5EzB/a03PsFrVa+01qBkXpHxH1h8myzPb1TYrUDBv4O7fRWBpwMkUkRLXzwUIkXNxuR0VT08ZRakZFRDsfaqehVr8Htbo4NNLdPVmh0chB543FEkph/SEoyKWgIH6nqhDC2QGbbeQTDMP/mpqriOZHhEwPSG0H2vH77vs5F+6XGo0Vvwn2XvI95DyiZliE/OJAoRLL4Q70mXV1xRzDMBI1QxJVYiaKgq8RipZYfvhSotp5s7nib7Tol1AnNgHy93fSYtREHDbBruLZbOMibFtWIaHinBZ9xD1s/O14b+/IBWRHVu44gfit1tHFrpuSRBU2K+F5/gVa9AvLcufT4jLU6sBzdMJBkZ2PlurqaictRkVSdz5W4rbz5ESVJHnxikk8iGvNm0yl+mBqY7GMRjRFZSWK7HyoRifQdo7j7qbFqIh450H27qTFZZAdDPUjlCbinQfZ83tddgHyA5zOCS01AxJOKxyKqMIm1Bc3Nzcvu8ISL6KOeUgF3LSYNELuPCRQPbS4DEgFNEoc+qVEktcQwj7Bgu0opMifhkzzV9T0y8LfL5zUSz8v2hM94j9SsrbhqN5tMpV9lJoRE9Uv7u8fL5MkJqaevxKyGtMHQMd8Dvq3EWWGSrYFinxQOKGkxFTElShWCwR/P0KW5ZNGY+l6aiJIslkW8729w7M8r14204MWl3HkyMCDOTk5i9NWIK4liGuOlPftO2JYt67U5tvgB/KZKxuslYTavoAvPdizR+bJHyzdcQLxkeEMavogvqU7TiCjBgtfmEh8O19dPbk4q+/EiTED/OLFnIfs2IED1utIeekOer3ed5CaIRJIXavUhmxf+aKbFGFZjZEP37Fjcx8UffPavV6Pb07MmjWFPyX/LkC2NTRUPkrKRLuJ7XK5XlR650KxWGv+vrihoaqFFlUvv3zo+7Tol02bqnfS4iKkYpa+2tv/N3NKCRZ3PhRFRcXvpcWUYXHnQTFWTR1fislUbqDFsCFHc+mrtbU87BvAwoFMTfSpSV/f/07aBZaeD0vzkqV+QkfH4H8WQoO6EoIvzkN96dLzIdh7BUEYnZ4+sTOYzk9Ojn+juLj0u9RcxfT09H0FBQVXU3MVS/fFFzZLHStZuS3Qex0Ox/n19RUV1AwIywbPLE+ePB52P2HVjhw+3Hd9bm7eT6ipmptzbt+8ueYANdODm26Sk9JqIolkQamWHunnn993KSSA/dT0sTISwm6k4smCCJB/V/6IlfZSUmLnVxJA0Vb5UnLn/QG1H9FoGoIEwG9Tnwr09Y2eJcvcXmoGJdIr56lASlU8uWUFKjCmBYegW/IXo7H0fdRMWZJa8QMDE+XQERqhZlw4cOB5/oorroh4DmK8SXjF22xjgwzDbqBmQhEE79fr6yuDDoEkirhXvNU6tIFlNYPUTCmS2TbEpeItlrEOjmM3UTNCxLcaDOVPUCMibLaJuxhGtXjXaySIovfzZnPlYrc93ihS8eS+TYeDm6VmRAiC8ER9fcVbqakoZHIBRLSGmhERaHBHKWL+cOjavAT/nDtvhU+8f9hSor3aHU8pSnjflVxBSWSlE2prS8fId0qS8CHqSjoJq3hZlnxXfYCkjRyaTBX3JfqgByIhFS/LKofRWBbVd/X3y7qFsbKlL6t1/Gb6lohJhcpPiMZH+kNDrXu9EuitytBbjfjAkgNIi35Ja40nmk6LIVmI5kgqnUD0a+FvI1m8FuQvaasJxL3ik6npoQD5iyrnV4K4Vzzin7SreNJeyLL4CDXTlrSMeKOx/J3kAJAXtCFBZ6ekKnGveItlJOwbNsmkQFoMG2hDxIWDQF719VW+5V7DYeVcv0QS94rnOH7VUmyBIDMxFypQFMWo1p0LtzG3208WwnuTdsYn5ItD5cv+MJvLf780kqlbEeDM4lQqYYqaSSFhRzyayl+Kkgegr28y5oexxEpCT7X5Tk7y7wNLBZKgcfP3sKXCjXjJRFHtjFZOQHMfgIY16NKkkQIHdhY+0+96YcH2ExKrTujRBl1pVAkUrfilhFr6JRQsyzTW1hb7vfNzJZCyfgGypzuoGQB+jcGwzveEgpUVL4psodlcNE3NhBC3il9JtGdDPJAkyWkylcW0qEWsJKzil2Kzjd0HKbSi0hIaT73BUGWhRtJJSsUvBfQ9qkXPQkF6waRDRs2UI+kVvxKbbfQ3DMMtW7I0XCTJ83aTqeoxaqY0KVfxK7FYRg9wHOf36QSSJP/GZCqN66OVEQRRgqRJzeHDR9fSoqqlpXoq2KgiNJTMwMBUwCcAB2PjxjWz8Nm+sZn+/lNrfE5Kbe3asAfKVv4tfO4MGZKmZsT4rfhIcm6Px31LY+OGoM+g7ekZLlKr1ZPUDIkgCCfr6ysWF6EIdcN+MMjTbshzV9rajm5a+SSESAbdVtZJqCfjhGLpF5Mr9VFPZYBOiQidkmVXg7q7R7ZrNPw+akYMRDoZo2f8Vfz4+Ni/aTEoIyNHf3z55W/9d0pW/KFDfbfl5eXd4PMsIdiOQbbRBdlGIzUXWfib3t7hMZ5Xl/qclFC59f79PUVr165bPDMcDseLLS0bd/qr+EiHiFOt4n2jkysr3ev1LntuiD/M5vImf+8hO7h/v71wZaV7PExBqA7N9u0Nx8lnLrxIpdNNGQfb1mY9SsuLNDRUvkiLIRkdPVFAi4tAZLXT4iKNjcWrnh0UC+QAh3opvXiFkrA5OblDtBwVeXmaz9DiInNzjqBLrSFU40l0+KwlhJIaQm/vUCvPa9qo6cPlch7etKlmS7Sf2d09dESj0TRDttQN2VIT8WWsxvvbgYXTtbPz2FnUtUhv78g42bay0iENnCKVTsrBPpPcVtnRMWikblVn5+A9C9tIpROfRqNtJHZX10DUPy6VWVY5EG2vwA8/m5oRESh6LBaLluPWRLxyLxzE45DLF5NyLHk84cSJia+r1fmPrYz4cBkY6Lt148a6r1AzYvzVzbJrro2NVeeQN5GXx+M5SN0hgTRx1XI9C5jNZvfCZ5JZX1ChAa/0TE+fvm7hvQuVngroAVpUDL9RGoiODnu1Xp+/KgsiFUWLCJLaYKRSenvHfUnBSurrSw/R4iKvvHLQVFxc9V2v12MHef4adS9j4fPUavVUXd26VSqRhHk1qQmpYPJiWbmN55n2kZGSzoVK7++f2EpepNzTM/yjwUHr0PDw0d8NDNgX54UufQ/h2DH7meRzJEl4gLqWgRUfBpKkOkheNtvYNPTqv1xaWrerqqrm3/D623//u/8zL7xw4LMnTpxoIu8hKTD8SUglwYqPAKOxbNXwSEVF9c+qqjbcdcYZDX+kLtXgoKTIk8cQBEFiJOXTSZtttJlhuCPU9CFJUq8s8zsSPd9RKVK20u128jj90GuTSZL4R5Op/IPUTAtSrtIhsh+ByH47NcMG8u6ttbWlqy68pCIpU+kWy7iB45ioRx0XiOeaA0qR9Eonc2T6+iYVrST4TMWe2hsPklrp5OIHRGVMa0oGQ5alv0EHJ6aHoMaDpFS6xTJ6C8dxYT0sWwkEga2qry8K+iTlRJLQSu/tPV7J81JMF9BjgSzTEmw6YKJIWKXTwaGkAzn+gMlUVkvNpBD3SrfZxo4xDFtFzZRBkoRvmkwVAR+KEU/iVuk9PcNfVavVUS8TCxnIlFbLtWzYUBRQjqzW0ffCAb0/lsaY41QVGzeWxPSAv0hRvNKHh4dzXC51VA+2gWxjDLKNcmpGxPj4eN7MjGoaDkBUvymR14IV/aJodRuiehTy6pCPmgkXSEWlaCofDvoxOOjV1IwbilzUIOsCR1vh9933c07JCifA57FENqgZNiBVG8jvIDcfU1dciDnSo61syCKmIItYvLsjXsSSNcVLcpJy+Q4yhycTUeEEUnEgXymRri6Q8EqHCn8CUrW3UDMhELlJpYpPaKWDpJyCCo/LcuOhIBVPi0knoTsCkrKOFpMCGfalxaSSsEpXq11JXeGCAFmkJIrCc9RMGgmpdEmSndXV1U5qRgXJvUkmcvToZEzppdlccTEtJo2EVLrJVBp1lENX/xVS2QudHUGQh8kB8G2MEq/X+05aTApxr3RIGqKqIKt1/E2kslmWW3VDAzkAZJvNNhbVs54aGiqTupRt3CtdFN0RdatffnlQP1/ZzFPUFRDoQZaT9/b0HHsddYUNBMNJWkw4ce+RRtKri/XyndM5oW1ubvZQMyhQ6SGvzWZUj9QfUOFzsVQ4Qa8vCXu5Q/iupHWW4lrpkJ49SYvIEuJa6Wo1F9ViyYlCllUxpbHREtdKJ89DosWUBJLQ39FiQkkZTU8SSVnyNq0qHTKOgPe1phNpVelOp9eQyGuZ8SKulU4eLkiLijJf8ZLf2xMjARrSVSt/JIK4VrokMR+hRcUxGMoOk8qXJOnv1BUx0JAqfpt6OMRZXuSbaCFumExl7yaVH+0YTzKIc6WH/+BYQRA+R4tRYTSWcgcOpMfjgFKmIW1oqPwdjdh+6oqYK64If91Fm20iaQ8pj3ulw4+LaMoaRGxdIjIU0POv0mLCiXulw4+LKoMhFS+KRXG5mwLOpqReK02IvFitoz+mxYgwm1nfQj6SJNxDXYqQ7Ef+xHwahxpPXyARkhEO/f39ayQp9xQ1gxKvfU5YQ2q3j0e85lc88Hrz/T6FJpEkMHthtFDx76ZGVpPASicwf33ooYdS9lkYiSLBla5SnXHGRUK2V3zCK51AKp48IpOaWUfMlR79/EBhClLJ+6mRcsQz24q50hmGkcgOer1CxA+lYlnuSpJyAoqecXb76A6rdXxxGdpIyMkR8+Kd3ir+4VbrWDfLsg3UjIhYF1Ow2SZM0ANe9nSwlRVosRyv4jjpGDUXEUXPR8zmKkU7YYGI2xENt9PkH/kRg6E0rPmGg4NT6zwe9zgcrIAjjJIkO0ymUt867CsrHc4yh9E4vy1RxPU0gh9YAD/Q9yTGVAAq/1eyzH13odLjLSOBSMiXdncPf06jUd9JzRRgZo3BYEhaMCT0SNts406QgaStwwJS8juQkqieu6ckCT+9SKYSjyc/BmOppqcCSdE0QlfXQLlWmxPV/PJISJXlRpaStEpfAFLMuyHF/DA1FUOtlk3V1dE/iSCeJL3SF4DOjINlmZinREiS9JrJVLbquR+pRMpUOiE2vZcFyO3jth6YkiRlwCsQC0MKguD9AHWFhU7nzU2XCiekVKSvxGYba4FdPAQHY9V+wlnh1Wi42urq1FkQDUEQBEGQBJCU7AUyD+bIkcHFB29v3lwTdPLPyod0R8LCw8BXfkZOjkcoLS2dpWZQSP9hYGBq2UNJInnI+EoCVvqBA73fXrNm7f+j5jJEUfRCblwYycoWHR0dGq22yAVd/oDfOTV16ttnnFG/ak57LBdEFsbMV36Gw+GYamnZGNaSVs89t/eympq6J6jpI5ax+FWdoyNH+q4mOxiowgkcx6m9Xp0j3MqwWscc5G7mYBVOgO/8FvlMssYidWUkyyodKseZk5P3B2qGBakk8rh7aq6CbIfKjmhMZXaWmenoGIh4kYV0YTHyYr3A4O+icrhnQiAmJ6cKzz7bPL3ycyRJmpucnAjrGdrnnrv5TeTflZ+RTHnx/WF7u/0t+fn5j/s8K5idnf3Zli1115Hyyy93GIuLizohcv3e1rJ0R3p7Rzp4nt9EzUWgPThlNpcvW8uro6PvbXp93qPUXAb5zJUVBg3bUaOxdCM1wyKVKt0nL/4qfG5u9s/kgxcqnHDuuc02k6lMSy4MUNcyurqOvUaLKn8V7vV6i1dWOKG5ue4x8l0Qwcsq5tQpb8o+ST0W2H37ut5Py4vMzEz/ePPmulX+BUBGZH9HWqvVnkn+PXJkYNVthqdPT21qaKg8Tk2/wAH1HUxS2eTzt2+vdPg2ZBjsunVFiw++W6C11fhFWgyKw+FatcoFyWlzcnJWzVnZts3cRYtByeTKXmCVTDgcc7fQYkhaWqp/T4uLdHQcXfVcTkEQfkCLigBnWg3R6FAv+vaUY1Wlt7TUfosWo0Kv161aYbS+vsLvk2uzFb8NYixAD3+V1pOZXrSIAKsq/bXXumO6RWV6emo/LS4yN3fqT7SIAKsqff369X+lxZC0t7evSuny8vI/TYuLFBQUXkqLIbHbx0ppMSAkTycNbqgXfXvKwbrdrsO0vEhn5zETLQYlP79i1Sgd6Hf37OzMqqlr3d3HnqfFELBjpBHs7u7Op46Mg21qql61bopOp7VANAVd3MBmG191Ayz8jW95pi1bDKvWxtJotBcGq3iSai7NODSa9b7u//79w0lfGFlpfPICHcFV93j29U16rdbxVZF88OBAE6kMSNtW3fYCXfPFsZvZ2blzaHERUvHkb3t6Rn5CXWSSkZEsghlovksm5uyLurc0yqJhbm72CujFLj5fn2C1js6wLBf1MO3CPMRY943oeyyfcfRo31tWjr2EC2Rzrzcai5+lpo/FhjSWhsfhcFy+ssIJJlN5PhkRpGZEDA4Wq0mFUzOjWJa9RFrxoihNkL9padn4N+pahclUlud0usJeVooMepHP3LWLSeqiCfFkVcpIfvDsrHsDNYPCcWxJOKdtc3P1PeRzp6ZOfYq6ViEI4vTgYKd6YdArkwkZ2f39sk4QxuZAmwNWRqRnSLYTMqpqaxkXaDNHKlYQhHHqXmRm5vT7aBGJJ21t1l8QWYk1q0CiYM+e/pR9eDaCLAMbQEpv77jfZWTr60sP0eIiNtvEQ+Rfo7HkCp9jBVbriQ2SJPiuBfv7e6x0SqD2yV9mtvDeQFlbW5utq6CgoJGU/b0n43PicCGVs7SCFmyylkB//8RWMvB27NjxKhn69UNDRy8hL/pWMlinIe+hpmrrVmMTLfoFKz0Es7MnHpUk1cG1a9VzHo9vTQGmqqrm3+RFtpOo7+ubdJP3kHJv78g08QcDKz0C/M1iGxo6dt3IyNCXBMHrG5HleT7kdQCs9LBhDqyscEJV1Ya7KiqqbuN5ddijqVjpYXLs2MB9tOiXSJaoxUpXCI47nhKLfSIIgiAIgigPDnhFCVnlVJKYh1iWraGuiJFl6W6DofTj/jpdiPJgsIcJuXOT5/kRCMy4recjCN7P1ddX/pSaiMJgsAfBYhn7HMexSVk/VZIki0ajO7umZk1Yj05BQoPBvoT51SPWt7EsF/QSUDIQBPH6+vryu6iJREHWB3tf38QFsqx6gZppgSiKtpycnLOrqgpPUBcSBlkX7BaLpFWpJg5AerJqKYN0xesVbmhoqLiDmkgAsiLYbbbR1zEM+xT83LCfDZyuyLJkd7mONzU3N3uoC6FkZLDLsqy22cafYFn2jdSVtUBdnG80lr5EzawmY4Ldbh97A/ycJ7JBvaMFcv0DKtXMeWaz2XfzdbaRtsFO7ni32cb+j2W5i6krqUAn17dYqSQJD7Asv+omdIaRPyrLjBr+5cBKgSURZDfDiJfU1VWkVec8FtIq2Pv7RzdKEtubaPWGE0uWJPEFhuE+bjLF53kzZE3WuTnmC/BVX4Lfl/Ali0RR+jf8tssYOAOoK+NI6WAnz03euvX874FS3khdCQEO/B6OU73fYChbdWNtIiGtV1/fxLug1XgQgjCBJ7js9nikhsbG8gHqyAhSLth7e8fqeJ7pTqR6Q1C5vF6pMdUPLgl+SN32QOp2AXUlBGjVnjUay96Y7nN4UiLYrdaRH4B6f4WaCQECR2ZZsRZy1qPUlVaQ3bdax/7Dcdx51JUQ4Hs9UG/mdKy3pN8oY7dPvJTIQBdF8Z/33fdzzmgsZdM10AlEZc3m8vPJXbGi6DSSk5duiisknZJlfoCcbNSVNiRd2Umwwz/nzlvxQxSFJ83mirdQMyPp6Ogv0+lyyMzMuB9XfzfgpjpZcAukfIyoX6YHOqG5uXaMtFiQZZdRF7KEjA120qyr1a71BkNpNXVlDWQUiZzgZLiUuhAgI4MdUpZnicJVV1efpK6sxGQqv0gUZSM1s56MC3ZJkr4BKcvrqZkUoFFhenuH/9zTM3w+dSUNs7nUft99xRxp6agra8moDqogeN5QX1/1DDUTSl/fSI0kcW3QafP7WDc4CZ8zmcqSOrXBZhv3wv4FfZBBuKRjBzVjgl2S5OtNptKE3clD1NtmG7uDZbnPU1cEyG6WVZ1dW1vaTh0JQ6mAx2CPAiWCnYydm83ll1EzbvT0jNZyHHOQZdmon5rtD1D9F0D1L6JmXCEnaV/fZMxBisEeBbEGO2SiDqOxJG4PP7VaR+5kGO56OLAJqSsIRo8se40mUxVZvTMuWK1Db2NZjd8n94YLBnsUxK7s3hqDoXKQGopgtY4PsCwT9XowSiLL0majsewINRUD0hnFn02e6qT7aMxxpQOdABpeTItJRxC819KiokCL2EKLWUO6B/uP6b9IhMRrXn4qk9bBzrLy3bSIRAGou5MWs4K0Dvba2tIxWkSiANK1n9NiVpBxV1ARJBAY7HHE4fBUy7J4I16qTw3SOtghhlJ+/43G8h+RSWnzN1mwhbDPKXPrnySJl9JiVpDWwd7TM2yixbTAbC6ahsCvJYE/PwVX+HIyVZ9lOQMtZgVpHexqteZ5WkxLTKaK2xZU3+M5USDLUsI63BbLsSr4RztvZQdpHewMoyoj661QM61pbGycMRrLyhdUHwI/rpPaGIZ/mhazhrQOdsLMDGOlRcUAtc0ll8Mhp32AuhIOBP71JOgbGjZ8mroUw24/WQgpTAM1s4a0D3ai7nb7+OXUVAwy78NkKr9qQWkFQTJAdr1qWbv0xJvUxZ+SRdoH+zzMw/FOZ+rry/qMxpJ8EvhkKQ5IM4I++DdVsVpH74f6yqpcfYEMCXaVanaWmSHL5VEzruzevVuCNONDC6oviuJHkzmqEi5W69i9kL5cSc2sI2OCnXDGGRcJiQr4pZjN5XcvjKpArs9LktRNN6UM84HOfoiaWUnG3Ja3gnoIPAstZz0Wy/EqjpMUvRkE57OnDr2gZHtpGUF8ZGqwq6DJPgtaDdlqHdpAXUiWk7HBvgDLagZttnF3MnJ5JLXI+GAnQG6pIZ1XDPrsJunBLgjCr2kx7iwEPUlv+vrGt1A3EiGyLDvSrXNKSPpozFKGh6eLnE7nIFSknrriDhw4jyRxBrO5aIi6Mg4lRmMkSbrXaCz9CBybtJ2bn1LBvpSbbrqJvfLKT93PstwHqCshQEvzqfr6ioS1NuEwODi1zu12tUGne3FFYlmW2mZn5Z2treVz1BWQaIJdkmQnx3m31tVV9VJX2pOywb4Sm22sRZaZ11g2+rVOokGWxUfVav0Xa2rW9FFXXIGWhrNax6/nOOaHcHjCXqZOkrzvNJkqH6HmMsINdgjwI0ZjyZZ0Vu9gpE2wLwUCgoW8+z44KB+kriQh/wl25XZR9DqgNQjrqung4OA6p5Mv5Xn+y5AavA7UWvHFmCRJbDcay7YtBG2wYBdF4XKzueJv1Mxo0jLYV0JUH37KPji4WTnBKRQQ0J/hON63kgCcCKDeZRmr3sHIiGBfClF9m238ZXJRibqyHkkSrjaZKu6nZtaSccG+kt7ekQ9BynAvNbMCUO/DeXmqc8vLQ3des4mMD/alUNXvANVvpK6MAfoNV5rNlQ9SE/FDVgX7SiyW0Y9yHPsbqIa0u5Isy9LM7KxcHs7QIzJPVgf7UiyW4wUqlfASBH8zdaUU0CpBh1L+OXQur6MuJEIw2APQ2zt6Dc9z91AzKUiSPMXzmtra2rVT1IXEAAZ7GExOTuafPi0NMQwD6h8/iHpDenKnyVT+RepCFASDPQoslpErWZa7B4I/5gdxQXSfUKvlHTU1ZQm5QpvNYLArBLlJRJb5CyD12U5sCOKP+TaoZCfDsL5REjg3fqLROCYqKysdvk0IgiAIgiAIgiAIgmQfMY3GvPhid35BgebtgiC+Mycn9yxBEAr0en0+2ebxuB0sy07Btn5Jkv8qy6o/bN5cc8r3hwlClmWmo+PYdlkWb9FqdRfxPBd0CjDsq8vtdj9/6tTMJy68sCWiO3v27TtiWLcu8Y9bPHZs4GcXXbRj8apqZ+fRTTqdvoOafnE4HKdbWjYq+kh6wtNPv/qWurrax6npF6jjtvr68m3UTChhBzsEDnf4cN8DeXn576OumHA6nf8pKGDeVF1drdjjCeeDe/CnOTn6z1JXzMBnynNzs9/cssXwPeryS7KCfWho8K4LL9x+PTVVbW1HNxUUhAz2KQj2tdRUjOee23tZTU3dE9T0SzKDPegEKBLg3d1DHfN3408KSgU6AVqAC7xenWN+IaOxIfiuqCdjHTkycB7dR0nJQCcwAPzu75LPt9nGpY6Oo+fTTUia4TfA9uzZw0MAekiAazSaTdQdNyDdqYTvEiGYxJ6e4SLqDklPz8i1JAhzcnJepK64QgIfTtL/ku/s6hq8kLqRNGFVGgNKfggCfDM1k4IkScdNprJiaq6io6NDo9MVOyH2ImoNoPWAlzQ+PX36X6DWJ4hvZma6ZM2adW+Gz1rve1MEiKLkNJlKc+Fv5XDSGPj+o0Zj6UZqxgVMYwKzLNiJYtFiSKDT6ZqddZyzdWttO3UFpa3NugsC7GlQ8bBW5CKBefDgC/wVV1whUpeP3t7xLTzPhPWd8BmywzH33s2b6x6mrrBoa7NcWVCwJqzb2GZmZh5pbTW8E4M9jXL2cAPd6Zy7gaxDDoqmDzfQCVu3mvaAWvPkb6GyQ67LAmq5ar31gwctxeEEOgSVpNVqi8ia6ZEGOmHrVvMDZD+PHz++KqWCjvUrMzMjeWQ7eZFAp5uQFMcX7JC6hJwvDfHjJge3ubn2DuqKGlCVTw0OFqtJUFJXQLZuvWCGFlUFBYUhH53ocrn2QpBzVVWFvjQlFs46q+kE+c1qtStnIbibm2vObW1txbuD0hAGAv1cyNHJAwECAjm0AKqspqaCyIzdPhky4MfGRi/keV5VVFT8AnX5RRTF42ZzecBcP56Ek8ZAPZ6YnZ39IzWjhmUZFbRYnyN9BepaBNOYwDCdnYMHdDpd0C8XRaHEbK6YpKaiWCzjl3McEzTVgBbgJATKBMcFf5wh5M/1kFYk5YkbiR5nn5kR8/zdf4rBHhgWmv2QHaZ4BTohP196ihYDAsGug/+HXPYuWYGOpAcspAfHaTkge/bIMd+RE4i+vvFcWgwINNvC+PjYHmoGZO/eQ2fTIoKsgj15cupmWg5IWdnIAC0qzvr1RSFHV0RR+o0gSDdSMyDr15cm5OJS9Mhe6FeMKPHasqXMRT8UCRPfOHs4w45ut2dPU1PV66ipCFbr6CGW5YJewIIURiZDiKTc2zs8wvPqct+GAJDONLxfC503RRbLh68ni6gKsiwdh+I5ZnOpnW5aBo6zp8k4+9DQ0QqfFQStVrPLah2Dgx57SjM6OppLpgaECnTCyZMzi++pr6+spMWAsCzLk6kHBw9av05dUQOd9yfIZ8GJw8C+FkNH2kaEgbw6Oo4e7O7u9s3wRNIDX7BfeOGZo6dOnXiTzxMEcvUTDr6XHGwy+Yq6w6az074TThjJ4eBmSfxQd0Dm5mbfu2OHcalKyadODWpAvUO2RIWFhQuTtzzt7Zat1B2Srq5j77LZxny/UafTXUbdq9Dr9Vs1mvXTFsuYEwQgpqnSSGJYdpDIJCy1Wh3xyAsJPlEUxjhO/ejJk5OPzs7OOWpqat8HwXpRTk5OA5wkEQfD3JxzXbD57xbL6AGO45LSHC4wNzf3h82ba68h5XRKYwTB6xkdHVa0M9/R8Zq1qWn7haHSGOh/dY6MDF5FTUUoKsrpbG5u9lAzIH6D0GIZeY7j+F3UTChw4txjMpV9hJpBsVgsWpYtnIZWQkNdCQEOmMtkKs2B711sYRI9zr6SEycmvr5jR/P3wwn2eDAw0Hcrw6j+GyrY4wE0rK83GoufpWZA/KYSZnPF68ilcTioIcfAlcDr9YxPT8+tJd8ZbqATzGazm3RGyd95vd4j1B03JEk8ZDAUs2ZzmX5poCPpQdC8GQ7qpSSQDhx4nne5nAeoW1FAyR0QN2/furU2pvUMGxoqN5N9rasr5iF9ivmS/AJO59wDJMDnT8TyVmgMMcjTlKg6Vh0dsoZhhj/C88xXeV6tyDOBRFE8ZTaXr6OmokCuzHV3H2ucnj59zfr1xW9zu93k/kvfXB9oej1qteY0dNAfzc3NfXBycqBj165dAtkWCQcOdFfk5RUkbZz/1KnTN599dtN9pLPc1zf2YepOGNAP+DfDuGY4Lv9y6koYPK//R03NmpD3Nys+imCzTVwqit4/w0kQ9rAcHCAPSUeoiSBxQfFgX0l/f7/O5VLv0Wg0fnv/siyJRmNZ3KYjIEjSIA/zfe21rvdZrWNem20cRB3HqBEEQRAEiQZMIZBlkGkStBgWZPrG9u3bvdQMyPPP77t0w4aaJ6lJJqMNtLRsrKVmWLS12boKCgqWPelQllUvGo0lO6kZlJDzU5DsQpbZdy9/kQeXLUV+z9LtZ5xxRsTDtNGSn1949czMTMib9QOByo4EhUzcWzq3idwov2sXsyzADx7sPVBYuHZxntKJEyd+tm7duk8zDONbGaKurph74YX9bwqk7F1dxy7TaDSP+ZscKAjClEZTXl5by/jm7z/zzMsfq601/ta3EUBlR5LK+vXrP7sQ6G63++TNNwe+P6i3d3hGq9U+sRDoLpfzFZfL82nfRoDn+TWSNEnWA41ZmDHYkbhA1JxMsWhq2rB+9+7dAW+kqa+vzHe7PW+FbMn3Hp1Of45Op/mlb6PCYLAjinP06MAtoNRh3SlGFovVajWPLyg7uYeBnCS+jQqDwY4oDqT4IW/iX8KywM7Jyf2zvxEh8MV8myUGO5JUjMZSRpbFFsjth4kNCs94PO5RWWa2Q2azGdKbvQ7HbD95+f4AQRAEQRAEQRAEQRAESRNwbkyMDA4OrnM4+Gs4jr2eZdmg9+PKsuqvKpW422gsT/hSFwgGe1TIsszZ7eP3MAwb9WI/oihaWJa53Ggsi/sSIMg8GOwRQJbu3rBh7GGG4d5BXTEDJ45bFD1n1ddvOERdSJzAYA8Ti2XoWxyn2U1NxYGgd8Hnl9fWro1p/RwkMBjsIbBax85hGOYFeMXhmVKrkSTpVaOx9Dz4vmWPxERiB4M9APv3y+rCwgmSV8d1IdJAeL2ez9bXV/4Cgh5XIFMIDPYVQDrB2O0Tj0CQvY26kgZJbXieOW/jxpKD1IXEAAb7Enp7h3fyvPo/1EwZRFG06XT6s6qr15ykLiQKMNiB/v7xMlFUDSYqL48WWZYePnjwP+9f+Yh7JDyyOtjJ+u4qVcEBjmM3UVdaIIrS583msp9QEwmTrLx5gyzB19s7+m2OW+NKt0AnwD7fabONu+z24zuoCwmDrFN2q3X0IpblQj5TNV2QJNGek5N7dmVlQSS3wmUlWRPsvb2DlTyv7YOfnNBH0iQKWRYfMRjK3oVDlYHJ+GAnS2aLov4fDMOGfBpgJiCKwqfN5opfURNZQkYHu8Uy8i2O4+N2iT9VIfNtXC7Hxubm2jHqQoCMDHabbexi+OcpUPOUHkqMN6IoHjCZys6F1CbkYxOzgYwKdovlWBXLal6Gg7uBuhAAgv6rDz5Y9qPdu5V5xH26khHBDs222m6feBKC/A3UhfjnAoOh5L+0nHWkfbD39g5/m+fV/4+aSAhIPu/1uuoaG2tGqCtrSNtg7+kZblCr+UPwE1JgKFF2yzLjlGXJBf2Ee6lzEUHwroMT8op5Sy6EFijp9S5J0lOyXPJOs5l1U1fGk3bBvn//cM6aNXwvxEsVdSUY2Q2BslcQxDt0OvVrtbWlEY94gLqyQ0MnKtxukSzNfC38FvJc1qQgScI3TaaK71Izo0mbYH/ooYe41tbzvs9x6i9TVwKRT8P/fqDTCT+trKx0zPuUpbd3pJFl2Xsg8HckWvmhRfLACfgmk6k8Y64s+yMtgt1mG3kzw/D/pGZCgINPrkTeqdcL34xXgAfCah19D6RDv4SYX09dCUGS5EGed9TX1tb6nnKRaaR0sPf0jNaq1WxPIvNyCHGXJInvefDBX/0z2CL6iYBMPRYE6R8sy/l9YHK8gN//tNFY9iY42TJqqDIlg729fTQ3J4d5NZEzEomSi6Lwwfr6yj9RV8owPj6eNzOj6ofgK6KuhAD1cbPZXJExV6BTaorvQw/JnMUy8sP8fG42kYEOnbQn7r//F3wqBjqhtLR01mgsLZZltxnOyYRdDeU4/mabbdzd3z+alPtwlSZllN1mm7gMumVPUDMhQOC4WFZsqKurOEpdaYHFMvoCx3EXUDMhQF0NaTRuc3V1NXmYV1qSdGUnqmG1jo0kOtBFUXwK1Dw33QKdYDaXXwidSRNJvagr7kAKVeX16hwWy/B34GvT8qafpCp7R0eHRq8vSfhFDa/Xc0VDQ9XD1ExbSNBBizjDskwOdSUI+XmDoXQXNdKGpJ6hGk1TQk+2eSX01mRCoBPIaInRWJIvSeKL1IUEIWvuQSWB7vF4iw2GykHqyghIwJtM5TshLcOAD0FWBPtCoDc1VZ2growD8vidoPBZO6MxHDI+2LMh0BcAhb8AFB4DPgBZEOzemmwI9AVA4S8Ahd9PTWQJGR3sgiC822SqOkbNrMFoLDsLGrQ5aiKUjA12CPTH6+sr/k7NrGJ+TotUR1I46kKAjAx2OMQOaM7fTs2sxGgsnxBF6SPURICMDHaXy7UB1C3rVa2+vvxeEPdT1Mx6Mi7YoXP29+bmalzamTI7K23AdGaeDAt2WYLO2eXUSBp2+/j5vb0jD5LpENSVNFpby6GjKt1Ozawm04L9kmSmL/39ss5mGxuGLuJ/eZ7/AJn3Y7WOJn0+OOTvXwZxF6iZtWRMsJNOqcFQ9gw1EwoEEgNBfYckTToZhq2gbh8sy32LLC/d3z/eSl1JAWL9PbSYtWRMsIuiJymjL1br+CV2+4QAQf0F6loFtDZaSWLaiOqThVapO6GYTJWPZLu6Z0Sww0GU6uurEqrqZB4+KPZJlmX+BcEcVj0S1ZekXKfFMpKUu/izXd0zJNilb9Ji3Hn55UG91Tq2V5I4ck/oWuqOCI7jL4ITRYJWIaH5PFX3rB2ZyYhg53nXj2kxbpC8HBT5J6WlOgfLsmdRd9TAicJAq/Atu33cZbEMbaXuBCD/khayjrQPdgjCwXivc0LWrSF5OSjy9dSlIIyW4zQHQen7EzFUyXHMLbSYdWSAsksfpgXF6egYz4MgnCQLNIWbl0cLfP5GMlQJSh9X5SXL9YFAZGVHNe2DneNcL9OiYpCUBfLy1/R6ZgaCMKFrtUDYfwoCXiAPOqOOOCD/mhayinQP9uNKpzDkQWOQsoiQl59JXUmA4cgT/SDo4zI9Gc7lO2kxq0jzYJcVf1CWKLK5pPNIzSQTn5WKjcYSOy1mFWke7MJvaQGJADiXyQBkRi5eGoy0DnaW9UzQIhIhsizuo8WsIa2DPVOXVk4ELMu8SotZQzoH+yT9F4kCSVL/lBazhjTP2REkfNI22GVZyjplUhKjcd0QLWYNaRvsDMPirWYxQEZkaDFrwDQGyRow2JGsAYM9Tsjksg2SUmCwxwnoQM+J4pQOYn6AupAkg8EeR8xms9toLK2VJLFZkmS8AJZk0jbYvV6hlBZTHpOpvNNkKtULgnhjqqQ3FsvxAlrMGtI22NVq/n20mDbU15f/6NixLg2o/D+oK2kwDFNIi1lD2gY7CCRPi2nFrl27BFD5d0E+XyhJUtLyeYbxrqHFrCFtgx2UKao7+1MFyOenTaayWq/XvSUZ+TzDqK6mxawhrTuodvtY2uTtgWho2HCY5POSJHyJuhKCLDOfpsWsIa2DXRSlnbSY9phMFbfX1RXzsiw+Ql1xBVrGpKxMlkzSOtgZhk2oGsYbCEDRaCx/p9Mp58cztbHbT5LOKTdvZQ9pHewsyyi+uFBjY6VdlqVuaiaF5ubSWZLa6HTeXOpSFFl2v4sWs4q0DnbQQo3Sefu8upY1iaLTKCd5fZXKykoHLSqKJKm+QotZRZoHOwlO7kO0qChmc43daCxVS5L349SVMXAcV0+LWUXaBzukHHFdzs1kqvwddBw5URT/QF1pTW/vsS20mHWkfbDHI5VZCaQ2ktlcfg3Lzukhtemn7rSEYfiHaTHryIBg9+Wgj9FiXCGrGUBqUycITkOy8/logH2GDIYzUTPryIhgZ1l2x0MPPZSwobT6+pq++XxeTPrzkiLBZhv/PS1mJRkR7IRt2y78ES0mDJOp/ObBwU4I+uQOVYYDUXUQhbh05tOFjAl2yKu/kEh1X2B+YldZE8MIGyGg5qg75ch2VSdkTLATtm7deRstJpy6uoqjkNrkiaLnoxD0KXVLHqr6PBkV7CzLfX58fDyPmknBbK6622Ao4YaGelJmViaoehctZjUZFeyEmRlV0u/5hJRKJukNNZMOw7BxWfo63ci4YIdAW2+xjCT9ke5I6pFxwU7gOP7hZKczSOqRkcFOmJ1VHadFBPGRscEOCY3Wah1towaCZHKww49judaenuHPUxPJcjI62AlqtfrHFsvw56iJZDEZH+wEjlPfiQGPZEWwEzDgkawJdgIJ+J6ewRupiWQZSQ12k4nxyLLspGZCUKt1t5JRmmRMGssUvF7vL2kxrUiJJzlDevFBUN0HqJkQ4CSDE81rNJmq4vLI9FTCZpuYYxhVDjWjRpLkjrw86ezy8vKUnd0ZjBR5bPk8oLgPsiz3AWomBFkWHzAay6+iZkYSa7CDMDhYlt1WV1fcS11pSUoFOwEqlrXZxjuhchuoK+4QlRdF1Y76+tJD1JVywD5ydvtYDxyy/zMYSj9LJpvRTSGJJdgFQbimvr4iI242T7lgX8BmG2uRZeY1lk3cMm2SJFlYVrPDYFh3mrpSAotl5Ascx99BTR/QIr0fWqQ/UzMo0QQ71MW9RmPpRyI5qVKdlA32BWy2kU8wDP9raiYEURStWi3zppqasj7qSjhEyaEv83me1wS8IQVyaMfsrKNy69baKerySyTBTlKW3FypJF3z8mCkfLATSGpjt0/cByrzQepKCPPpjXi92Vz+W/huibrjCgSmCb75x/B9l1FXSCRJbDcay7YFUuFwg10UhcvN5oq/UTPjSItgX4A8GoVhhFcTmc//D9kNqcP1DOP8i8FgUDTN6e+fbBBF6bZIAtwfsiz9EoL+WmouEirY4e/uhr/7KDUzlrQK9gWSkc+vBHLaXqi+F0BV72QYzbDZXDRNNwWlt3ekEU7WNbDv18Hfv5+6FUWSvO80mSoXl74OFOyw70cgyLcEahEyjbQM9gUgcD7J8/yvqIksgeTzLDtbQVqhlcFO8nJJ4srDPUEzhbQOdgLJ50Hp70/0+Hy6AC1QO8Ow5oVgz/S8PBhpH+wLkHyeZcVxaJKz7okS4QB5+e8hZfkYNbOSjAn2BUg+D0p2mJpZD8nL8/JU52TiUGKkZFywL2C1jj4AqU1ChypTCZKXQyu31WAosVBX1pOxwU6g+XwXBH1WLb7v9QpXNzRU3E9NhJLRwb5AKgxVJgJJkn9jNJZ8KluGEiMlK4J9Aat15GqG4e6FYMio3y2KwuH8fOZczMuDk1XBvoDVOnZvJiz0CWkaKDhTD2pupS4kCFkZ7IT5qQfeVyCfb6KutEIQPNfU11dlxNTbRJG1wb6AzTbarFKxr0Fmo6eulEaSxKeNxrJLMC+PnKwP9gUg6D8M+fzd1ExB5NMsq9lYW7s26HReJDAY7EsgQ5V2+8SvQTVT5koj7JMoy8K7TabKR6kLiRIMdj+QfF6l8r7IcVwLdSUc0vmE7udPTaZSXL5PITDYgzAwcLzJ6xX3s2xi83kQ870GQ9m5mJcrCwZ7GPT0DH2G59V3QfDFtb4kSTrldLoNmzfXnKIuREEw2MMEcgoy9QBUnttKXYpBEhZJEq40myv/SF1IHMBgj5DJycn8U6fE5zmO3UZdUePLylXy7QZD6Y2YssQfDPYoIUE/PS1+Q5aZ6yFQI8rpIcaPw/8/AUH+CAZ54sBgVwAIXnZgYKpalgXfKsGCIFzAcZzZt1ElP8gwrFOSPP/huJy22tq1SX+aH4IgCIIgCIIgCIIgCIIgCIIgCIIgCJLtZNV0gb17LQU5OdpVj4TU6XLFWFe0JTd8qNVcwh+1ufI2vf7+fp1KtSbo+jjxurUPvnsNfDe1/JPM2wpjCvZXXjlcqtGor83PX3u1IHhz1Wp1Ecuyvs90uVwnwJ49derkH7Va7rdbttQfZRL09IoF9u+3F3KcfJ1er/8U7EsldQfE6xWGnM7Z23NzVb80m81u6g4Li2V0iuO4QmomDIOhZNkxtFrHnaEWg7LZRvIuuaRV8TVmrNYxaeH4B6KurphLdBwsEHGwHz7c38Dz3F+0Wt1m6gobOCEGJEn8VGNj9b+pKy4cOTJ4pkbDPc7z6lLqihiv13N0evrUzh07WsJ6TioGe+oHe9jNbmfn0U29vSMzubm53dEEOgGCb6NGo/sXBIa7s7P/UupWjPZ2WwkJupwc3WuxBDpBrdbUrF9fOtjdfQxe3fnUjaQxIYN9zx6Z7+kZtul0+g6e5/OoOyZAATWQJz/Z2zs8Dp9dRN1RI8sy09Ex8Iv8/IJxpdVVo9Fu0GjWT3d0HP0qdSFpStBgt1hGmqqrJ72Q7xqoS1FAfUvgsyeh1biCuiKGBDq0OIN6fc6nqSsuQN7/fWimu8j3UReSZgQM9o6O/hs4ju+kZlyBVuMvFsvYX6gZNoODkr6vb8IFJ0wVdcUVyEcb4cQaw4BPT/wGO6QEX9HrcwM+bDYecBx7RU/PyN+pGRIScF7v5BT0sTXUlRDgxCqBgB/BgE8/Vh2w7u6hT2k0ml9SM+HMzEx/rrXV+FNq+oUEGnRE+6APsZG6Eo7T6fhHc/PGd1EzrNGYycnxZyVJFqipADJ77rlb3kgNHzgaE5hlO3bgwNGKNWv0w9RMGg7HbGtLS90haq6is3PwxzqdLuKVsgRBdExPT72Sk5PTBR1Pp8vlzoGAOR8+qwkOUsQtxMzM3JtbW2v/RcrhBPvcnHNdvNeEwWAPzLI0pqBAG/HNwB6Pu+fUqePnsKx6LRnzXXiJolBy+vTMG8mFGvrWsNHpcg6AevtNsfbv7ymKJNDhc1SzszN/zsuT8+vry3PPPLPx9Zs21VxvMpV9paWl5rqWlo1boax1u1UVLpfrefpnYZGbq/+nxSJpqYmkOIsBdfhw33fgrFRTMyQOx8xDcJbyjY0bGrdvb9q78jKw2VwxuW2b4emGhooNojilczgcL9BNIYH94I4cGfC7YFB+fkHYT8Jzu13dLpcqf8sWw/tLS0tnqdsvTU0lo5s2Ve+amRHzRFE8Qd1BgfPI/eqrD2KwpwmLwZ6bm/cNWgyKJElel0vY2NJieC80RyJ1B4VcegcFvcjhcO2Avw9rnZTc3Nz32u32ZWnBvn1d5ZCnl1MzKILg/WtTU3VTc3PwIF9Ja2v5nNlcXuR0Ov9JXauQZck9N+d4i9lcpr/qqquy6inR6Ywv2Nvb+77rs0IAgeoeGurO2bSp4ih1RURLS/W+06fFPPicsHI2p5Nb9sS3vLyC/9JiUCA3f7i+vvI91IyK5uaay6BleJWaPmC3PTMzM28zGst0mzdvfJK6kTTBF+z5+Xlf91lBgNxXhkDP27VrV0yjCdu3VzrGxibCumqq0+nfQouqjo4ODRDy4pYgCBOQm0d9kWopkKKdAwHuXVByktu3thoep5uRNIM9dMgS1gWZ6enZN8Ya6Avs3Ln5lNvt/iE1AwJpErN/v+XseSv/mvl/gyNJaiMtxgx8vazVegpRyTMDVqfL+x0tBwTUzQmdzWeoqQiNjVVfDSed4TjmB+RftVr9BZ8jCC6Xc19jY/EMNRWhurraSYtImsNYrWMiC1DbLw7H3K6WltqIhuXCoaPj6Bf0ev0d1PSLJIluk6lcZ7GMeDiODzpadOLEKcOOHfV91Ewo4Y2zz/5CFKWwOvXBcDhmHznvvNbnqLkMHGcPDGO3TwQdHSG5utFYGvRkiJb9+4dz1q5Vh6x0Mm6fzP0Mh3CCXSnIBWSjsdjvI+ox2AMTMji8Xq+iacFSSGcVMpmQQ5G9vUOttBgQiHUcAkSCEjLYIRiP0GJcgM+302JAZmbmQt48cfz4ZDstIohfQga7TqeNq2LyPBfyXk+32xVy3go0jV5aRBC/hAx2QZB4WowLkMWE3AeNRhOyU1dQUFhLiwjil5CB5nQ66mgxLni9npAXmHQ63TgtBoTn+QpaRBC/hAz2vLy8uCkmdCoZrVZXTM2A/PWvG3tpMSAcx+nh80L+HiR7CRkckAuz/f3jZdRUlLY2a0hVhwBW7d7NSG63O6S6Hz48cDUtpiTQGR8RRTHml9M543eMHQkO0919bEKj0QZVV4/H+2xjY+XrqakYFstoGyhy0GFFCPYZo7G04NVXO+8oKioOehVVliWP0Vim6JRb0lrcfLPKd8JRl1/w5o00GGcHxfwZLQdEo1FfDAdd0Y7q4cNH14YKdILX6/VNZ5Ak8VafIwjQCGkOH+77JDUVoatr8M6rrpoQLJbh2266CdOkdIa1WAxhTe/t7h6y0KIiaLXqMFcumLmJ/P+cczaPQxoQUhFycnJ/1dHRr0jadfiwvVSn018HSsRwnPoGCHrvwYOWD9DNSJrBXnEFI3q9npBXSbVabS3kxN+hZkyAWv46nJswID893djYuLhvMzPT36fFgEBckqnBQ3b7yZgu3ZPFm3Jy8kap6YP0XwoL1zxos4152ttt76NuJE3wNcszM453+6wQ5ObmfOPw4f5bqBkV0Ef4uVar+wQ1g+J2uz5Ciz4kaXo3LQYFYpKTZe+pcKcvrwTUuwlOxgmi6NS1DPh8dX5+wZ8gRxWgFfkRdSMpji/YzzzT/DRkCGHNVc/Nzf1mT8+QNdIcHt7PdHUdew06w9dSV1Dg/Z6Wltpl68hs377d63K5QubuBBKoeXlrjkErsod0Mqk7KOPj43mwj6+CencGCvSlQGeMEwTxKWoiKc5iEEAqE/Zoi1qtMfb1TXp7e4f/HCroyXrhnZ2DP7DbJ0RIhc6k7pAcPz6xgxaXsWlT9VchvXFQMyTQilwE+ypC0FtefbXrHLKOOt3kgwQ4WX6PbJ+dZWZgH/1+rz8EwTvW2mrEYcA0YZl6wQE/CMGxlZphI0myY2bm9P8VFKwZOnrU+qcNGwxvcLkcDdBZfCsIZC59W9hA+tLe1FQdcD/ISE5urv4kNZMCnOTy1JSQR2ZuEjudhh7JfbRTUyciXuIkGBddtKMtnKHHoaGjZ5C6o2bMyLJa3rVra1iTAJftGOwDSzpf0DqvejpFogDVdppMZblwkgStkEOH+s/Oy8t9hZoJZ3Z27pwtW2r3UjOh89n9sbBOezjBHg/q6oohdsbJjUAh0z+lWfjtoViWy0KASaIoxeVqaTjAySZxnKM8VKATSKBBC3AzNROK1+u+eGmgI77YUUyt48WqjltDQ+Vxt9uR8ElVoOgnXa5JvcFgOE1dIYFUZzfkzWGtd6MU0EG+sKFhA+bpaYjfUYqmpo2jLCuXS6Dz1BVX5uZmbzKby9c3Nzd7qCts6usrv0fWhlQyD/SHBB0Tj0fYDh3k/1AXkmYEHJKrrS0dMxrLNG63u5u6FGdqauqnkOtpNm+u+zZ1RQVZBFWSTuvJupPUpSher7d3aKhU09hYcYC6kDQkYLATSA7f1LShaXp6+l3hXKqPlDVr1lzf2zv8J/IoG+qKGrLEHll30uVyNkNwKnJ3lSCIpz0e12ZI7Rp27WIUXGoaSQZBg32BrVuN/zAaS9UzMzM3QMwrmtqo1Zp3k0fZHDpkj/jJG/7YtKmmE4KzcGRkbJ3XK7RRd0RA/6F9fHxifX19+ZrGxuq43oOLJI6ohomOHBnawPOqB3ieO0+pYUqPx9PQ2FgV8iaNaGhvb89Vq9depdVqPwEnQLEoCrmQ4mtYlnHD/s/xvPokdHR/4XafeLC1Nbqprz09QwegJVxLzYRCRkLM5grf0oAWy7GzOY5v8m1IIAZD+d022+iHGSa6mIoW0quE/t7d1AxKzDtGpr1+8INDFZLEPAoqvY26IwICzwEtR8QXnxAkEhQ9C/fs6ddVVGieAqW8iLrCwu2ee1dTU+0/qIkgcSEuTQ5R+8svP3pbTk5OyPUZQdW9oOoJfQgYkp3EPb9qa7O+Jy8v/0E2wFM9pqamPnLGGeZ7qIkgcSNhnYm2tv6NOTnafTzPL95kTS4EGQwl5J7ElL/UjKQ/YQ09KsHWrbUD9fUVxadODea63Z59xDc3N3cPBjqS8ezfv18Nwp6wlgVBEARBEARB0hTMmZFFBgYmyt1uuYSaIdHp5JmamrKwHutjt0+S+5UXB0QMhmLyHN2IBid6e8e30OIi9fWlAR/7vxIMdmQRq3X8TyzLhL0ejtPpONbcvLGamkGx2cYlCO7FeItmGTx/jxoK95Y8QsKGHhEk2WCwI4tAVvE9yDTevfCam5tb+azanqXb9fqcD1J/QiDfSYtRgWkMEpCnn9779rq6ukeoSWiHtGHVEif9/RPLfLW1Jb77CF5++fCFJSWlbzAaS7/5/PP73rB0+u+FF575f7S4iMUysVVNJ5V4PNLp+vrV/YGVqUwkaQwGOxKQcIN9ZQAKgvcFnldfOG/J+w2G0jMD5ezQadV0dw/v02o1m+mmRWAb/J/5vtFY8vV5T2zBjmkMojj/C/TQWCwjJ/wFOoGcG/Df1/r7JxuoKyYw2JG44na7+2lxFX19J2vgxMijpg+Xy3kF/DMxb80jSbJvjf5YwWBH4oLX67mCpBhNTdUkeP2i1a6dHBo6dt3Ca2xs5LtqteYa2LRyrF+RdBuDHVEcURT/0dBQ9TA1A1JZyTjKy/N/W1ZWdnVV1Ya7ysoqvsFx3KV0s+JgsCOKYzKVvYcWQ8JxhQ5IZZat7izLoR/xHw0Y7IjiQMcyrOVW2tqskOIwizEILYJERmkgLP9NXYqCwY4kjfz8Ncse5cmy3GtkONLjcddQlw9JknJoMSYw2JGkMTNz+nFa9MEwqrPJeLxWq22kLh8sy7babBMvUTNqMNiRpLF1q/HX8vyVo0VA2eN2oRODHUkqRmMp6/F4/0xNHx6P5xEybHn69Omvw6mw1+GY7YfUJi6rxSEIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiBIJoBLaSBJYXBwap3H425UqeRPSpJ8Acdxy+awK40kSb0Mo3qJYaRfFRZqeouKihR5MDSCpCIo7Ejc2bNnD19R0XAGy7JfAXF9C8Mwfp8ll2hkWXbLsvQ3lmVurasr7SA3SdFNCJLWoLAjigOCyfX3j22XZfYrspw6Qh4K2G8XCP3fOY79YW1tyREUeiRdQWFHFAFEkbfZhs+Ef34LwriJutMaMnwDQv8TtVr/p9ratVPUjSApDwo7EhUg5Mzo6EzR9PT0tTyv/ka6ZOXRMp/Ny4/wPPOFjRtLxuH3xmXFMgRRAhR2JGxA2NR2+8gOlYq/Ecw3Z7qYBwOyeYssC7cOD1vv27Vrl0DdCJISoLAjQYGsvGRmZvojDMN9imXZuM5cSVdINi8I4jdA7P/Q2Fh5ErN5JNmgsCPLAJHiLZaRc1iWuxEE6pJszsqjRRTFfSzLX2swFLVD/WE2jyQcFHZE1d8/XiYI0ochHEhWHtZj2ZHwgIbSLYreb8oyc299fcUJzOaRRIDCnoXs379fvW5d9TmSJJOx8jdiVp44SDbPcarPnjo13LZ9+3YvdSOIoqCwZwkDAxPlXq/wEZWK/QRm5akBzeb/H8Ow95pM5ccxm0eUAoU9QyFZ+fr1NecJgngjyzIXw6HW0E1IiiJJ0j5ZVl1vMpUeAJHHbB6JGhT2DKK/v18nCNrPqlTcdSDmmJWnMbIs2eH1SxD4+w2GsknM5pFIQGFPY6Arz/b1TRrJ3ZFw4r8Os/LMhAzZQDb/b4ZhbzUaS16FYx3WE/KR7AWFPc3o75d1ojh+HhRBzDPj1n0kMkDk+yGB/yUU/2A0lk/MexHkf6CwpzgkK7fZhivhn09zHHcDZuXIUkg2D///P1kWPvPAA78d3r17Ny5chqCwpyKDg4N6l4s7X6XifpwpC2ohiQGEvl8QhN+o1dw9BkPZOHUjWQYKewowP1Y+UiWKzKcwK0eUgmTz8HqGZdlb6+qKX8ax+ewBhT1JDA5KekGY3CkI4h0cx2NWjsQdEPkBWZZul+XS35rNrJu6kQwEhT1BkKy8v390gyAwH4MM6hrInqropiyEZJIqJ9SJC0LwIaiLOeKVJPEVvV7d5nsLAI2eEMkSuaSOe3qOl+XlMSx1qZxOTwHU93tUKlYL29eyLPNu+JfcaZsLn5vFd9ySmTbycywrfqqurmII6gLH5jMIFPY40tHRodFq170OROXLDKPayTBsVggJCKcMv3daFOU2nmdeEgTpVZVK3Zab6z5ZWVnpoG9LCcbHx/NOn+bWMIz3XI5jN8M+vx7EvxEannwQu6w5P6BRhWPFf1Glmt1bW1sLDS6SzqCwK4zdPlwNieMnQMxJVl5J3RkLaDhkfuIrHMf9W5JUf83JEUZSTbyjhYi+w8FWiaL4HhD6y0Dwt8IpkwXXP2S3IAg/gCT+dyZT1Qhm8+kHCnuMkKxcpyu5GE4GkpWfl8knPogbZHLSScjH7+Z56ff33vurwWybXgcNGdvXN2yUZfUn4Vh/kGHktZl9zGWPLEsvQGz/gONcL2M2nx6gsEdBX99IjSCoPskw7IdYlq2g7oyDCLkkCa9Apnq7Xi/tyZRMXGnmh3PEN0FmewPExDb4N4OFXjomSdLvIYm/22isHMZsPjVBYQ8DmpW/HoKaLKh1TqZmaGRsHP4/Bv/8Dhquu//85+zLyGOFZPR2+6RBksRPQqP/IXCtB/HL2PMMfmc7nBNfVqs9L1VXVzupG0kyKOwB6Os7WSOKrk8xDHc1nJcZnJUTMVeNiqLwpbw81aOYlStLR8d4nk6neqMoil/nOI5k8xl7zkHiMwThdDfLSr/HmTbJBYWdAgHJWSyjZsiyfgUZyNmZmpUT5sVcBjGXb5iZkR7bvh3FPBEQkddqhfczDP9dMIsyW+TJ2Lz8oiwzt5pMJc/CT8WboxJI1gt7d/dQPc9zf2dZrom6MhZJkqZA0u/MydH/rKqq8AR1I0mgq2ugXKvVfU6SGLLEcg51ZyyQzQ97veIPGxoq7gKRxyWI40xWC7vFImk57vhzUDx33pN50Ox8BET98w8++Ou/45h5agGHh7Vax65hGPb7kL8XZ3IWD7/2+bq6kovhJ2IMxhkU9gwVdiLoIOZP5eSIV1dVVWF2ngaQh4p7vdLDLMuel5kCj8KeKBZvvUYyAyLooig86fF4i83m8stQ1NOH2trSMThmO10uRwUcwxfJsaSbECQiUNgzhOWCXvGWpiYU9HSlubkWBL5iJ8PI5aIo/hcFHokUFPY0BwU9cyHrqUMGfwEReElCgUfCB4U9jZEk6RRkdJebTOVvRUHPXIjAwzG+AHT9nfDyrYSJIMFAYU9DSOYGov4No7F0fX19xd8ZnD6WFZhMZY8aDCUF0Ee7ncQAdSPIKlDY0ww4n49JElcNJ/n3UNCzDzKjxGgs/5IkqUwQC6eoG0GWgcKeJkCOTsbS/6HRuOvN5qIh6kayFLO51J6bK22AmNiD2TuyEhT2NECSZKckiZeYzRXvwoWWkAXKy8vnTKby14ui+GHQdoG6EQSFPdUhQy+yzJnN5sqnqQtBFiFDM/X1FX9Qq+V6HJpBFkBhT2EgS39arXZtyeahFxArprNzpMZiGb3dZhs7abdPyORls427wPdMb+94K31rVlNTU9YH8VIvSeQxhEi2g0sKpOiSAtC9fkqtLntXbS2TdU+sIWJusYycz7Lc91mWORPCNOhKm/B+MsY8AML2YY/n5CvNzc2e+S3ZR3v7aG5urvwMy/JnU1cKgUsKJAoU9hQU9mwUdbKkrUYj7eY49kqQ6ZgWw5IkeQL+/2tJ8v66vr56mLqzhuFhOWdubuwZjuPOoa4UAYU9UaCwp5iwZ4uoL2TlDMPeCgJ0Brjisv49fI8IQv9faDC+5XROvJot2TwR99nZ0Wd5PpUydxT2RIHCnkLCLsvSMY2GP6e6uigjs8z5B01I3wYxvxLMJD1oQp4QRem3KpXwK7N5Q0ZfuxgeHobMnXmO4/izqCvJoLAnChT21BH24y6XsH3Tpoqj1E57SFbe1zd5PiTNP1Sp2DPghFbTTSkByebh/y+KIvstr3dibyZm8z09o7UcxxxkWXYNdSURFPZEgcKeAsIOAiOxrOrzdXWld1FX2kKz8ltoVp5WD3KG4zApSSSbV/8yk2YiWa3Db2cY/q9wKHjqShIo7IkChT0lhF38rsFQ9v8g4NPuDkKSlVssg7Usq/kOiPnl8BtSKiuPFvhd5Jmde6HN/Va6z7Qhx8huH/8ZHJ9rqStJoLAnCpzHnnwmOI6Fky59RP3llwf1NtvIpVbr2Gt2+4TA83o7y3LvzxRRJ8Bv0bAsewHH8c/rdMUum21i1GodvYUkA/QtaQOJLY5jboFG6iR1IRkOCnsSgUxKgnPuO+TJOdSVkpCMr7d3rM5mG/upzTZ+qrRU54Be/ZMgfGeCaGR8DMFvBFRl0Hh9E3p4IPLjbhD5/1osQ1vpW1IeGmN3wrHEdWWyABT25DLo8Qh/ouWUpbt72AQZ3xHQ8OtA4VLgIlxygTqAbJ47n+M0B3t6htLmuggcw9/CP5i1ZwEo7EmCZOssq7qjoaHyOHUhaYmc5AuS4TOftcs/waw980FhTx4noHv/MC0jSEKQZfW90OfIumUqsg0U9iQB3fk7U31sHck8TKb1xxhG+jk1kQwFhT0JQE/YIUniK9REkIQiCPLzEIO4fnsGg8KeBCBbn+N5tpuaCJJQWFZzGKLQS00kA0FhTwJer/c1r7cYH4qAJAWeF0DUJQc1kQwEhT0JqNXqV8xm1k1NBEko5NoOw7D3UBPJQFDYEQRBMgwUdgRBkAwDhR1BECTDQGFH0g5ZlmYFQXyLJEmPgyVSN4IgFBR2JO0gd8R7POJhk6nsbQZDKa9S8WtkWbwRhB5v+EIQAIUdSXsMhnWnjcbyH4HQlw8Odqq9XmEHZPU2XBMFyVZQ2JMAiM5n7faxUmoiCrJr1y6hoaFin9FYZjIaS1lRZAuhvu+SJBnXR6FYrSc2QJP3GWoiGQgKexJgGJZj2fR5ZFw6YzYXTYPIX28ylepJNi/LzJkqFWbzSGaDwp4U5GJRVH2IGkiCINm80Vi832CYz+Y9HqYgG7N5hhGvhbRCT00kA0FhTwqMSpLECkgasf6TSGNj8cxCNl9XV8zLspDx2fxDD8kcNGbl1EQyFBSWJEGeETowMFFCTSTJMJDGGo0Vi9m8KAqboPH9e6Zl81u3nqxgGPYKaiIZCgp7kgAhKZYk5iPURFIMs7miy2QqfzfJ5p3OCa0kCTdAIt+f7tk8w3ivx2GYzAeFPbl8rr9/vIyWUxaO4wUQg6xdv7u5udljMlXcAZl83cGDJWpZFlsgm/8bmTfP8+r/0relPGQ2DJzyOBsmC0BhTy4lgiB9FZLAlD4O9fVlfQZDaaFa7coRReFmyFln6aas44oryJBNeQdk85eTefNGY9kf6aaUh2XF6zBbzw5Q2JMMw7BX9/cPm6iZ0lRXVzvN5ordRmNJ/uBgsdrr9X5clqVulUqW6FuQFKW399gWOE7XUxPJcFDYkwzDMGtFkb1vfHw8j7rSgl27GKGhofJ3kLE2QTbPeTxirSiKf8jmbD5VsdtPFrIs/xeINi11IRkOCnsKACfdjtlZ1XdSfUgmGI2N5QNmc/k1JJuvqysGofc0SJJ8GDJ6vBEoyciy8FWW5eqpiWQBKOypw6dttrF303JaA70QqbGxqtdkKt0CGT3LMPxGSZLuBaGfo29BEoTdPvoRkPYbqYlkCSjsKQOjYVn2Aat19D3UkTHU1a07ajKVfRiEPo/c1i+K3o+B0Hen+9TBVIeMq8sy9zNoaPE8zzLwgKcUjAbOwV/a7RNm6sg4yG39ZnPl70Hom+6//xe81yvWiaJ4H2h81k6njAdE1DlO+wrOgslOUNhTDMiu1oPIvdzdPZTxY6K7d++WGhrK+83m8g8ZjaWQyU/pQOQ/Cr9/gL4FiQIUdQSFPQUh4q5Wq1/KBnFfitlsdoPI3w0iX1tXV8ySbF6SpD+oVJjNhwuKOkJAYU9RiLhrNOpDFsvI5dSVVcDvl0k2bzKVXWMwlKqdzmItCPxuSRLHYevBnBz3NH0rQrFYRj/K85r9KOpIVq8JbrFIWo47/hwUz533pCKyRxSFG9vbX/rZFVdcgc/3RPxisRyvYlmpF0Q9h7pSEPn5urqSi6HRxhva4gxm7CkPo+E49Z1btpx/+0MPPcRRJ4IgSEBQ2NMEnuc/19q686DVOrSBuhAEQfyCwp5GcBy3mWXVNotl+HOYvSMIEggU9rRjfmhm69adB+aXYUUQBFkOCnuawrLcFpYVB63Wsb3ptoAYgiDxBYU9zWFZ9qyZGdUJHJ5BEGQBFPYMgGHmh2e2bbvQgQKPIAgKewaBAo8gCAGFPQNZKvA9PcOfR4FHkOwChT2DIQKvVqt/DALvtVpH23AOPIJkB1kt7GYz677vvp/vlGVpsySJf5Rl2Uk3ZRQg8AzLcq0sqxm028ddZJgGfis26khCkCS5QxSFy+vqSl4HoYjLCSSArF4rxh8Wy/EClvW8D3TvCyzLNlB3RiJJkkWWhVtNpsp78YRLb1JprRhIGhyQLD28Zg1/XXFx8Qx1IwkEhT0IJKuFDHcT/PtV6Ny8i2UZHd2UcaDIK8/g4NQ6QXDk19aWD0KdxvVpUckWdoifDhDzm02m8r/H+7cioUFhjwCSzcuy+0Mcx98KwZvBS6PKbllWPSxJnq+ZzRuGqBMJA6t13Aj1dyskAW+D04unbpIkzMH//8Bxzm/U1tZOUbdiJFrY57Ny+SFZnv6c2WzGJZRTDBT2KFnI5iFT+RUIfQov+xs7kiRaJEm+g+d1fzYY1p2mbgQgWbnb7bgGenSfY1m2mrpDIorCcwzDfdJoLLErkeEmQtgxK08fUNgVwmYbLYGT+w7IdN+dyUM288xn9KLouc1srjoCJ3lWDN1AY8719Y2dAafNV2SZeRv87sWMPBag4TwEgvnD3NyKRyorGQd1R0Q8hJ1m5X+BBusHdXXFVhTz9AGFPQ6QbL63d/SDHMd+PdMvwP4Pn9g/Bf8+pVbrnqmuLhxIV8EnAm63T9bJsqdYpeK+xDDsW5US8VBAVuwEcb4XGo47IsnmlRJ26Jkdgf7EbXl5zN/Ky8vnqBtJM1DYE0B2ZfOrAbHqhUbugNcrvKDRqP+Tn8+MFBUVJXVclgyhiKK3xOv1vpnn+e2iKJ0HjXAN3ZwyQDbfDvX3w7y8ikeDZfPRCjvJyuH/f4bG61bMyjMHFPYEQ7J5i2XoSo5Tfw1OpizJ5sMDBKyHZbk2avoAYXsOhPclagZFFIU3Mgx3FjV9wN+fA4K9kZppDWTTRNjvg9ftK7P5SIQd6uQIfNZtTifzt9ZWzMozERT2JGO3j5VCt/t2KL4bTtSsy+aR6IGGsB2E/Id6vfjo3Jx2XSBhBxF3QkrxJ2jgMCvPElDYUwiSzdtso1eqVL6x+XrqRpCQQOyQu6a1INq+O4pB9Dvg/z+am8OsPBtBYU9RiMjTm6O+AucqZvNISATB+zzPqz+JWTmCwp4mWHw3R3neD5k8WeoAs3nEd+FTkryfzc/nHsIZLMhSUNjTEJLN9/YONXMcfyNk85dDdqalm5AMRxTFIxABu/EmISQYKOwZwPHjxwtOnPBeQy6OZeN0ykyGzIRhGNWDMzOOG7duVX4pAiQzQWHPMBbG5qH4ZTi878Gx+fQCjh9k4fIhUZRuMZvL/4FZORINKOwZDhmbZxj3e1Uq9ossy+G8+RRElqVZEPAHWNbxtXgsEIZkHyjsWcRCNg///oZh2LNATPD4JwVZAsj6MLc5HOyjOB0RURo8sbOY+Zk2ZBli9fdB4nOpG4kDIOIzsqy6n2G8dxoMVTYcYkHiCQo74oNk81br6AdUKvYrLMs0gfDgo/NiBLLy/ZIk3O50co9jVo4kEhR2xC9dXQPlGo3uFhD690I2n0fdSBCgcZyB/5OVGX+q1DrrCBINKOxISOaz+ZH3QxJ/I8uymyBsOLopq4F6IeyD0u1zc6onMStHUgUUdiRi5rN57W4In/eB2OdTd1YwP1Yu363RsHdVV5f0YVaOpCIo7EhMgMiRbJ4I/Jfh1QJCl1HZvC8nl8V9sqz6UW5u+T+jfcIRgiQSFHZEMeZFfrQBxP16EPmr4F/FHtOWSOB3CKIoPgtt1GdMJszKkfQDhR2JG5OTk/knTnjfwXEMWbisBcItIY+XixSSk8M/J+F1r1ot/6K6urQfxRxJZ1DYkYRBhP7UKe/bIexA6LlGkFQdCGgSYlD2gpSfhn/vFUXVL81mFHIks0BhR5IKEfvjx8WNajX7AVmWSkFg3wFhqQHRJQ+NiCrDhwTcC5/hIWXyzFCOY/fLsvCCKGpfM5vXj6CII5kOCjuSNpBGYHZWWE9NHx6P12s2b0CxRhAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEWUXKLCmwZ88eXqstLnC7XawoermZmdOa+vqm82EXS1mWrP/BkjX4xNHR4aedzrnTZWXlgk4nSC5g+/btWb9GdkdHh2Zy0lVQUFBo0mjU58/NzW1Yt27t6xiG00PthXGcyS35kmtq6vTTen3OMUHwvup2u7vXruVnzWazm74p7hw40F2Rn7/mMZZl1lBXRjM+Pn7Heedt+QU1V7F3796C/Pzyv2i1WhN1RYXb7RmdmLC/YdeuXS7qSmleeungmSUlFQ8yjCqmZ+/Ozs7e39pq/DYUs2rJiYQK+969lgJZdm3kef69eXn5l4KrgufVRSww/47oIaoPYnQKPuoUiNoTDMM+zfPOlzdt2jTFMIxE35b2EAGfmuKKcnL49+fk5FwDAljDcXxcn2JElrWFxvaE2+09KEnik9D4PrRjx6bxeKzPsm/fEUNhYdEBjuMKqSujGRoavOvCC7dfT81VtLUd3ZSXp9sPx1lHXVHhcDimRkamqi65pDUtHt/33HN7L9uwYePjcD7HpFGCILaZzWXbM0kDwiFuwg5awB06ZG+E4tcgA7wUxDxpGZgkSQ7IWF6Bf3/s8aj3bN9emTYZPhFyWdZvgcz7SxqN5s3xFvFwmRd78QQ0po84HHPf2r69cUwJoUdhXw4KOwp7NMScKS+lvX2gtqOj/3cWy8h0X9+kkJ9fcAReH0imqBMgOHL0et3Fubk5T6xdq56zWMac3d3HHm9r698I+qRoHSgBEfO2Nuuunp7hXp2u2JWTk/8aNI5XpIqoE+BEYeC4Ful0+o+tW1c0YrdPCF1dQ88ePtx/DtRpQnuCCIIsJ2ZR6+7u39jRMfAHq3XMk5+f06fX5340lQTIHxzH6jQa7VsKCnL7QZC8XV3Hnu7sHKlJpsgTMezosO/o7R05otUWuQoKCp9Tq9VmIqD0LSkN7Car1Wpel5ub+zKpU4iJv9jtY6Uo8giSeKISMnKhs6dn6NMg5ic1mtx+yCavhqxYTTenFfOCpH29TscPwO85DVnydyDzXLbmdzzZv384p7d3+DqLZXRSr89/FbLg5li7n8kG6pQjPQwIrzGrdfQY9I4uQoFHkMQRkbDv2SPzR44M3LhhQ+OcWq35BQjQWropI+A4Lg+y5G9oNOoJEPi/wauIblIcIug9PSPfXbuWP8Xz6p+CoCesMUkk0HurhN7RHuiJjLW3D7wOBR5B4k9Ywk4y9I6O/i9WVY3P5eTk3ApJroZuykhIFg8C/y4Q2/He3tGHLJbjBXRTzBBhg8bxvLw81YBazX8dvi2j63IBqM+S/PycZy2WMWtbW28ldSMIEgdCZk8HD9pMOTn6vXBirqOurEMURYfL5fhES0vdn0D0o766ToZ4eJ57FnoGW6grK4HGTXK73b9Xq6uuM5vZZXPkFZwVY1ep+DMMhnWnqZ2W4KwYnBUTDQEzdpKlt7f331lYWGBJlKiDgLrgdcrj8diOH5/869TUyT/Mzs78Gl6/mpmZ/u3JkyfuB//jcLCOwfumJEn0zv9lfAGRgY5K3gNdXYPP2u0nIxYckqV3dh7dCZ8zGG9RlySZ3LPVDq8fjI1NbhMEV1VdXTFnMJQwgV46nTfX5Zrd6HA43wav30L9DkmS5HsYdDwgPSKdTvdxlWqsi9yQRN2KAnXOz83NJO1iOIIkE7+tYVfXRDnDeJ7TaDQN1KU4IMrTTqfrKUGQbud53rZ5c80puilCZObVVztL1WpNCzRAX9FqdeeBeMaU3QSDNDxzc9Ov27q1vp26gkJE/fDh/i/l5ub+gAgadSsGSX6hIXwWhPzLW7eaepTMTNrbR3M1GvdFsqz6qkajPZtlOZ5uUgyv1ztls/W0vuUtFx8ltlIZO9T7UYfDtTX6uEoNMGPHjD0aVgnNoUOWKhD1zniIusfj7oIu+Icgg+RNpvLCzZtr37dtm2FfbCcfI591VvPYtm3mp1taal9vNpfrT53y5s7NzX1NELxj9E2KAYKzNje34OUjRwbeTV0BAXFRd3UduzcvL++HSoo6fC4Zyvj38eMT5UZjma6pqfoy+P1dSgdva2v5XFPTxic3bdq4E75H43I53wANyAH4/phuRIJG3e10Op53ueYunZ1VVS6IOoIgyrBMbMhFLa1W3w6irthsFzI0MDs7+9XBwU51Y+OGTU1NG+4DARLp5rhA7iyFRuMHZnNFhdvtqACR/z1okWLfCeKu1+t1f+zoGHw/da0Cvo85cMDyZa1WexV1xQwRdEEQHoJXKdTjm0iDRjfFHThm8qZNNc9s2lS9/cSJE8VOp/Of4Qo8GdaB9788NXX67TMzI3nQqOuamzfu2rSp9ql0ugsYQdKFRWEfGJgo1+ly96vVWkWm3UFWJhBBNxpL8rZsqbt1165dAt2UMIgYQcY5CiL/sakpoQC6o/eEK0ahIDODtFr1r6AxbKWuZRw50v/xwsLCW2AfYp7eR/YZMtxniKDX11e8t6Gh8jjdlBTOOqvpRHNzzWVwjHdBV3eSuhchQg6Z/SszMzNvJb0nk6lMC+8/74wzTI+1tqbHUACCpDOLwu5weB6ATL2MmjHhdrs73W7XBiLo8c7Ow4VkhiAuH3W7584BgVRkpgTLcgXQw3mwra1/2ZIJHR39ZRqNdjcLUFfUQJLuBYH8KGTLlyRb0FcCPaIXZmakjS6X+x9wzP8L/16qVrtyiJBDZn9ua6vhCczIESTx+IRn377uD5DbwX2eGPF4PE82NlZtaW6uTdgwQbjMDyfUvcrzuhpB8B6h7pgAAW/S69W3UNM3BAPZ9VfUanXMjSTJfKGX8cGtW433wL6n5MUfItybNm14V1PThgvg36eqq6uddBOCIEmCLHLO6/U5/4/aMQFi+RhklW9PlSw9EGRuM8+7dioh7mSkheP4Kzs7bb71sp9//sD63NyCgGPv4QKiLjidcx/ZvLnuYepCIoIRc3Pzs2omBIIswLz88uF3lpaW/Z3aUQNZ6uFNm2q2pbqoL6Wra7AZRPm/fMyrT8ogxKofm0ylX2xrs32loKDgB3RD1Jw+ferxrVvN70jVTD1eZPKyvZIkd2i1xTuqq9mwezU43RGnO0YDW1RU/EVajhrI+iUQ9i+nk6gTmpo2dELAxyzC0D6qpqenziQ3dTkcs2QN+pgQRdHpcjm+k23BmOmQC+4nT47HfN0FQULBulzOmGfBzM7OdJ95ZtP/UTONYGRRFH4PdbBqZkekrFmzZnNFRcMZxcUlF1BX1Hg8nqGCgoouaiIIgkQEKwhCzMKel5c3RItph04nuDQabcyzTSRJxUHWrodizNMboaE82txcOktNBEGQiCAXT2NeRz2dhwzWr18vs2zs+09mw4iiqEg3W4ljgiBI9sKCKMc8Pc3pdKbtuux2+xTr9QpaakYNy6qknBytE/Q95nnbRUXFre3tdjM1EQRBIoI8PWiClqNGp9Of0dMzciY104rS0vXkQdsGakaNLKvc+flFoydPHn+UuqIGGtvCnByy+iGCIEjksIIgPkvLUQNCpGZZ5uvUTBuGh4dzZFm6EfY/5nFxj8f9r9ratQMMwz0mikJMS97O7w77kX37LDE3OAiCZB8sCNG/aTkmWJZ92/79ve+kZspDxsRPnfJ+GBqkrdQVNaIouaampn8xb/FdYNvny9HDcdw6yNofimb9d8TXgxoUBMngdnuKUuV18OB4C1kxk+4igsQNX6ba0zP8ilqtPtvniQEQS48geC9taKiKuRcQT4iod3QMXKTV6v4FAhrzo+lcLue+oiLd60pL52eyHDpk/1hubu6vGSb2tWLcbvc+t1t449attVPUlXL09h6tYxjNPyVJ/BeI6c8efnhD3+7d0V2QxvXYl4M3KOENStHgEx7ykAYJzkqfJwag8jQ8r36qvd3+VupKOYio9/YOf0qv1z+jhKhLkuxwu52fWRB1gtd76g9wIsV8Ny9Bq9WemZentx46ZGuhrpTiyJGBtzCM9jDUZb1arfmcXq+zXnXVhGCxjI5BwnDb/v09cXsgOIIg/vEJe2ur4cW5udnFhaxiAcRdnZ+f/1h39/Az+/fvT6lpex0d43mdnUf/AQL0CyWyaWgkZK/X/dtt2xr2UZeP7du3e51O16e8Xq+VumICspai3Nz8Qz09I0/Y7faUGJo5eNBSDHX5LDSQj3Ecm0vdPiAGGBD6UugF3rB27bpJq3XMC+9ta2+3vre7uzufvg1BkDixKG6trcbdkLkrdveoRqO+eM2aDXNHjvTfDPqn+CPVIoE84q2nZ+gunU41pdfnvJ26Y8bpdD76l7/83u+SDGTNcsjnLyeP0qOumCBiqVbzl8ly3gnocfwTGilFlliOFItlhAj6UwUFheM6nf51ZL/opoBAw8TDe1vz8wv/rNGsnyZC39ExcPjAAcuVTz+9H68hIIjCLMtaOzs3XOpyOV+gZswQLcrJyb3Jbp9wdnYOPtbZecy3AmKimM/QB+/Jy2NPQ5b+Wdgfjm6KGbfb9SrPO6/evXt3wLG7hoYNhyVJuAjE/SR1xQz5DTyvfjM0UqNdXcf6Dx3q+1C8s/ju7sn8w4f7P2yxjB5nWW4CRPpN4Qh6IIjQQwPbsmbNmvvr6qqnentHujs6BhPywHQEyQaWCfsVVzBiU1P1xS6X+2nqUgTQAMjYdG/V6bQWi2XM2dU19NcjRwbPVDqTJ+PnnZ19NUeODNwGYnFar2dm4HuvUVLQ4VtIpv4Uw8y9obGxcYY6A0LE3eM5YfJ6vR3UpQhEV7Va7ca8vLx7Var8KajXWRDfx7u6ht8fq9ATIe/sHHoPNBwv2Wzjbo1Gns7Nzb2b47j1Mei5X5zOuccZZra1ublascYPQbIdv2cpCCR7+HDfzXl5+Yqs0x4M+C6H0+nYx3Hqx1wux78gw58I50lB/f39utlZVS2I2+Uej/diEPDt4M4B4VFWeZYgSZLsdrt/uWlTNcn+I3rEHrneoNUWfR/284uxXukPF1mW3LCf5HmjY9CwHNFotDNqtdoNXy/Cb+HJHbfQ8yiYf1iIrhx+np5k0/TP4wrsm+h0ur7W3Fxz29K6xFkxy8FZMTgrJhqCVlpX1+CFarX2n1C3OdSVcCRJFGVZRQ4KQ0QnjrodFEEQpkAI3w+Z5b+oKyp6eo5tho7F4xqNppq6sg6oS4vb7bxg82bDOHUtopywSzMzM7PPkwaEulIeOM9kaIxuP/fclpeoSzFhJ0BdeCTJdy6lLJBo/B0a+yv37Hn1UiWEHRp4ko/FdMNgIuB59pK6upL/UDNmQlYayd67u4/dotXq0u7OUiUggQH//cRoLLsh0iw9ECR7Lyys/BLLcjeBGfM6NemCKAon3G7P2+HEfTlQXWbygzbC4cSJia/v2NH8fWoqKuzpwMBA360XX3z2V5XK2NMFSPZebzQWK3b/T8gpf6QL09RU/Q2Wlcs9Hvcr1J3xQE8Bshv5Nwwzu85kKv+iUqJOINMh4TO/L4pThR6Pdzc0HimfUcQCpEwOqMtvezzlFS0tG19Ssi4RBFlN2HO5a2tLxxobN5zrdjsq3G73y9SdUYDAytAVfNHr9Z4PGbrOZCr9pMFgOE03K47ZbHY3NlbebDCU5Lhcs2fD947QTRkB/J4hiJVzoB7z4HVTczOT0Q0YgqQKYQv7Ak1NG0ebmjacx7Jz+tnZuS9ANuaim9ISUZTmQMwfnpubKQOB5aB3srOhoTKhWSV8l7hpU92r8L2VJIt3OOZ+BvUq0M1phSCITtj/n6tUM2saGiqqIVb2wi/EDB1BEkjEwr5AbW2ta8uW2jtNpjI9yeJnZmZ/B2KUNhmZx+OZcru994KwXzQ+vuED5EJeKgwRQBY/3dJSex3Uq/rUqcE1Dsfs7YIgxK3XoASQmU+cOnX8ayoVv6a+vjwX9v+z8z0dFHQESQZRC/tSSBbf2lr3cRAj7fi4LWd6+vR1IEZjdHNKotFo1mi16ms0Gn5fdfWk12Ybd3R0HP1nW5t1V0/PcEqsb7J9+/bTLS11X6qvr1hTV1fMz8xMt4DQ3yMI3hFyqZ++LaGQ7yXf73A47oV9aR0c7FRDT6N0+/amHxgM60gDhGKOIEkm7lecyXzz6Wn5EhDSG1iWa+B5rphuSknIOLsoCj+ur6+8gbpSFlK3U1OCQRTlN2g06ou0Wk0rHNIynudjnmkjCKIbZHzM7fYckSTxaY5jX8jLY3qhpwb++Il3ts+KmZwc/8bZZ7d8j5qqw4eP1kEC0gbHtIC6Mhro/T0Dicwlzz239001NXWPQy9akeQz1VF6VkxSphJ1dMgaSOjVubnsztnZWSMI6ba1a9eeDQJSCOJfQd+WcEDTVS6X+1ebNm24NhNmblgsklanG2JPnjzJDgzMskVF61XQm2LU6hnG682XCwoE2etdI3s8gtzYuE5yuaoks5klw2lJ++1wDJhXXnlFp9HUZMU0t+WMqs444wwXxF5W3UyDKE9KnjwkE3U4uDexLPtVyFS2wb8JWSXS6/U8n59feVllZezPLUUQBEkWaZEVdXR0aBhmXbnX6/y6Xq+/HMRe8QWjXC7XXq9X/Xp8wg2CIOlOWnZ3b7pJZj/4waGKuTnne7Ra3YfUak0zZPVRL/QFot4ty9M7mpubFx+WgSAIkq5kzDgmGU92u4+9URA879brc9+hVvNhXXwTBHFybm7uvG3bjIo8FANBECTZZOwFqptuuol9z3uurpIk9lqNRv1ejuNrVq47IQjCqbm52fO3bTN3UReCIEjak7HC7g+LxaJ1udSXqtXqL4Kob5iaOvn2nTu3HaKbEQRBEARBEARBEARBEARBEARBEATJYrLq4imCIOFjs03cr1LJ76Om4rhcjmMvvXSi/pOf3O6lrph5/vl9l1ZVVT/BANS1DIfDMdDcXGOI97IN7e22Q3l5+U3UDMaLRmPpLlpWjKxYYAdBkMiRZZk8YzhuL8gr+TPOoF+WYciySu3vN698kTqgf6IoKOwIgiAZBg7FIAgSFU8/vfftGzdu/EeQB063Dw4Wn7lrF5Owp4Hddddd6zdt2n4DSJvffZqbm7O+9a0X3wPFhKxg+swzL3+sttb4W2quAjL7F43Gkp3UVAwUdgRBokJJYT940PpqQUFBwIGZ4eGhz69fr/0NwxS+nuPYa0G2L+Q4Pofxrdcu76+rKzkLytLzz7/25qqq6scDCbvTOTfQ3FxrIu+lrkVkWda0t9suLSgovGp2drY1Nze3hm5ahihKHq/X+7JarT6s0zE/q6kp66ObVpEsYcehGARBUgCJjDlzgV6lpWXf0+tL3Dqd9kkQ1Mt4Xp0Hfj/6RQSdYck2fy+QvFV/Y7NNfNNunxD6+ibdIOr/ANe78vLy6uD9fveF5zm9Xq+7GP79giCwdpttXILP+NH8p6UGKOwIgqQ8IOb5tKgoFsvoU9AU3ALFqFeHBbEHVF86eLA3ZZ66hsKOIEhaIUmi2+v1kimN73A6XesXhmHo5rCx24/vYFn2EmquQhRF+Exmh8FQwgiC3CpJ0jDd5JfCwrXvgn9SYngbhR1BkLQAhNXjdM590Ggs0zc0VL61rq740ebm6pPRiDrBYCh6zWgsZYlwk5coTuncbsdbZVl+zOl02EH0VbIsvWq3T8g8z7SDXUn/NOVBYUcQJOUhog7J8K7m5to/gpArNqOFrPja1zf+XZttXOS4NS6tNoc8QPtten0OuYmJjMun5QQTFHYEQVIeSZJfMBpL9lJTEfr7RzfKct6ALDNfJyJO3csgwzGCIBx2Op03qFTyHupOeVDYEQRJecbHR8mYuqLLAIgi+zOe58uouQoQ9QMmUxlfX1+xpbm55g5oANx0U8qDwo4gSMojSSItKUko+ZPrOzuPfaCzc/jtPT3DrzKM6k10QyDOtVhGXrHZxr9L7aSBwo4gSFbCMDJ5ktppaq6C4/g8vV73gE6nfkStVu+g7qDA35wFn3wRNZMGCjuCIFmJwVBi0evLyl0uz7Ug8NPUHRQy1XJ2dua2cN+fLNLyii+CIMmnv79fJ8s5F4ii/wSRZdkTdXVF+5kwZrH09h5vZFnR7y38BFnmXjabi0KK6eDgoF4QtGSf/Gobw7CTRmPxAWquhBkelvVu98mdoigs+/s1a9iXioqKZlf+FlmWA3zP/PuGh4dzHA7+Ap/TDzyvGqutLW2nJoIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCJI1qFT/H6IeRd28R6cMAAAAAElFTkSuQmCC')",a.style.backgroundPosition="right bottom",a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="6%"),i.put("viewportinner",a),i.put("$viewportinner",f.$(a)),!!this._createViewPortCells(t)&&(s.appendChild(a),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createViewPortInner",t.message),!1}},f.QCELL.BasicQCELL.prototype._createFooterRowHeaderInner=function(t){try{var e=this.attr("layoutsize"),i=this.attr("elementpool"),r=f.QCELL.def.css,s=i.get("footerrowheader"),a=t.cloneNode();return a.className+=r.FOOTERROWHEADER_INNER,a.style.width=e.footerrowheader.clientWidth+"px",a.style.height=e.footerrowheader.clientHeight+"px",i.put("footerrowheaderinner",a),i.put("$footerrowheaderinner",f.$(a)),!!this._createFooterRowHeaderCells(t)&&(s.appendChild(a),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createFooterRowHeaderInner",t.message),!1}},f.QCELL.BasicQCELL.prototype._createFooterInner=function(t){try{var e=this.attr("layoutsize"),i=this.attr("elementpool"),r=f.QCELL.def.css,s=i.get("footer"),a=t.cloneNode();return a.className+=r.FOOTER_INNER,a.style.width=e.footer.clientWidth+"px",a.style.height=e.footer.clientHeight+"px",i.put("footerinner",a),i.put("$footerinner",f.$(a)),console.log(a),console.log(s),!!this._createFooterCells(t)&&(s.appendChild(a),!0)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createFooterInner",t.message),!1}},f.QCELL.BasicQCELL.prototype._createCell=function(t,e){var i,r=f.QCELL.def.css;return(i=t.cloneNode()).className+=r.CELL,!0!==this.attr("useall")&&!1!==e&&!0!==this.attr("usetreeall")&&i.setAttribute("tabindex","0"),i},f.QCELL.BasicQCELL.prototype._getHeaderCellSpan=function(t,e,i){var r=f.QCELL.def.css,s=f.$("<span></span>"),a=this._getColHtml(i);return s.addClass(r.COLHEADER_AREA),null!==a&&f._.isFunction(a.header)?(t=a.header(this,e,i,!0===f._.isUndefined(t)?"":t),s.html(t)):s.html(f.QCELL.st.replaceText2HeaderText(t)),s[0].outerHTML},f.QCELL.BasicQCELL.prototype._createEdgeHeaderCells=function(t){try{for(var e,i,r=f.QCELL.def.css,s=this.attr("elementpool"),a=this.attr("cellmatrix").get("row"),o=s.get("edgeheaderinner"),n=this.attr("headerrows"),l=this.attr("headercols"),c=this.attr("rowheight").header,h=this.attr("headercolwidth"),u=this.attr("rowheaders"),d=this.attr("rowheaderstitle"),p=this.attr("rowheaderssort"),g="msie"===f.$.browser.name?0:2,_=this.attr("id"),C=function(t){var e=Number(t.target.getAttribute("data-col"));b._trigger("rowheader_checkbox_all_changed",{status:t.target.checked,col:e})},L=0;L<n;L++){var m=null;a.push([]);for(var E=0;E<l;E++){if(0===L){if((m=this._createCell(t,!1)).style.width=h+"px",m.style.height=c*n+"px",m.style.lineHeight=c*n-g+"px",m.className+=" "+r.CELL_EDGEHEADER+" "+r.CELL_HEADERROWS+" "+r.CELL_HEADERCOLS,m.setAttribute("data-row",0),m.setAttribute("data-col",E),m.setAttribute("id",_+"_cell_0_"+E),m.style.left=h*E+"px","checkbox"===u[E]){var v=document.createElement("input");v.setAttribute("type",u[E]),v.setAttribute("name",this.attr("id")+"_rowheader_col_"+E+"_checkbox_all"),v.setAttribute("data-row",L),v.setAttribute("data-col",E),"checkbox"===u[E]?v.className+=r.CELL_ROWHEADER_CHECKBOX:v.className+=r.CELL_ROWHEADER_RADIO;var b=this;v.onchange=C,m.appendChild(v),"checkbox"===u[E]?m.className+=" "+r.EDGEHEADER_CELL_CHECKBOX:m.className+=" "+r.EDGEHEADER_CELL_RADIO}else if("custom"===u[E])this._setRowheaderCustom(m,0,E);else{if(void 0!==d){var y=d[E];e=document.createElement("span"),i=document.createTextNode(y),e.appendChild(i),m.appendChild(e)}if(void 0!==p){var w=p[E];void 0!==w&&!0===w&&(null===this.attr("defaultsortarea")&&this.attr("defaultsortarea",this._createDefaultSortArea(t),"jquery"),null===this._getQCellCol(E).attr("colsortarea")&&this._getQCellCol(E).attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),m.appendChild(this._getQCellCol(E).attr("colsortarea").get(0)))}}o.appendChild(m)}a[L].push(m)}}return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createEdgeHeaderCells",t.message),!1}},f.QCELL.BasicQCELL.prototype._isBottomPanel=function(t){return!!f.util.hasClass(t,"rt-qc-cell-frozenbottomrows-panel")},f.QCELL.BasicQCELL.prototype._getRowGroupOfDynamicRows=function(t){var e=f.QCELL.def.rowgroup,i=this.attr("frozenrows"),r=this.attr("frozenbottomrows"),s=this.attr("vsinfo").nDynamicRows;return!0===("panel"===this.attr("frozenbottomstyle"))&&s-1===t?e.FROZENBOTTOM:s<i?e.FROZEN:s<i+r?t<i?e.FROZEN:e.FROZENBOTTOM:t<i?e.FROZEN:t>=s-r?e.FROZENBOTTOM:e.NORMAL},f.QCELL.BasicQCELL.prototype._createRowHeaderCells=function(t){try{var e,i=this,r=f.QCELL.def.rowgroup,s=f.QCELL.def.css,a=this.attr("elementpool").get("rowheaderinner"),o=this.attr("cellmatrix").get("row"),n=this.attr("rowheaders"),l=this.attr("headerrows"),c=this.attr("headercols"),h=this.attr("rowheight").data,u=this.attr("layoutsize").rowheader.clientHeight,d=this.attr("headercolwidth"),p=this.attr("vsinfo").nDynamicRows,g=this.attr("currentdata").length,_="panel"===this.attr("frozenbottomstyle"),C=this.attr("id"),L=function(t){var e=Number(t.target.getAttribute("data-row")),r=Number(t.target.getAttribute("data-col"));f._.isNumber(e)&&f._.isNumber(r)&&(i._deselectRow(i._getSelectedRow()),i._clearFocus(),i._selectRow(e,!0))};for(p>g&&(p=g),e=0;e<p;e++){var m=this._getRowGroupOfDynamicRows(e),E=e+l,v=this.attr("paginationinfo");o.push([]),m===r.FROZENBOTTOM&&(E=g+l-(p-e));for(var b=0;b<c;b++){var y,w=this._createCell(t,!1),x=b;w.style.width=d+"px",w.style.height=h+"px",this._getColWordwrap(b)?w.style.whiteSpace="pre-wrap":(w.style.display="flex",w.style.justifyContent="center",w.style.alignItems="center"),w.style.left=d*b+"px",w.className+=" "+s.CELL_ROWHEADER+" "+s.CELL_HEADERCOLS,w.setAttribute("data-row",E),w.setAttribute("data-col",x),w.setAttribute("id",C+"_cell_"+E+"_"+x),w.onclick=L,a.appendChild(w),(this.attr("useall")||this.attr("usetreeall"))&&w.setAttribute("aria-hidden","true"),m===r.FROZENBOTTOM?(w.style.top=u-h*(p-e)+"px",!0===_?(w.className+=" "+s.CELL_FROZENBOTTOMROWS_PANEL,"sequence"!==n[b]&&"reverse"!==n[b]||f.util.textContent(w,void 0!==this._getRowData(E).rt_qc_seq?this._getRowData(E).rt_qc_seq:"")):(w.className+=" "+s.CELL_FROZENBOTTOMROWS,f._.isObject(v)&&f._.isEmpty(v)?"sequence"===n[b]||"reverse"===n[b]?f.util.textContent(w,"reverse"===n[b]?g+l-E:E-l+1):"checkbox"===n[b]||"radio"===n[b]?(y=this._createRowheaderCheckbox(w,E,x,n[b]),w.appendChild(y),"checkbox"===n[b]?w.className+=" "+s.ROWHEADER_CELL_CHECKBOX:w.className+=" "+s.ROWHEADER_CELL_RADIO):"state"===n[b]?w.className+=" "+s.ROWHEADER_STATE_INIT:"custom"===n[b]&&(w.className+=" "+s.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)):"sequence"===n[b]||"reverse"===n[b]?f.util.textContent(w,"reverse"===n[b]?v.datacount-(v.pageindex-1)*v.pageunit-E+l:E-l+1):"checkbox"===n[b]||"radio"===n[b]?(y=this._createRowheaderCheckbox(w,E,x,n[b]),w.appendChild(y),"checkbox"===n[b]?w.className+=" "+s.ROWHEADER_CELL_CHECKBOX:w.className+=" "+s.ROWHEADER_CELL_RADIO):"state"===n[b]?w.className+=" "+s.ROWHEADER_STATE_INIT:"custom"===n[b]&&(w.className+=" "+s.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)))):(w.style.top=h*e+"px",f._.isObject(v)&&f._.isEmpty(v)?"sequence"===n[b]||"reverse"===n[b]?f.util.textContent(w,"reverse"===n[b]?g-e:E-l+1):"checkbox"===n[b]||"radio"===n[b]?(y=this._createRowheaderCheckbox(w,E,x,n[b]),w.appendChild(y),"checkbox"===n[b]?w.className+=" "+s.ROWHEADER_CELL_CHECKBOX:w.className+=" "+s.ROWHEADER_CELL_RADIO):"state"===n[b]?w.className+=" "+s.ROWHEADER_STATE_INIT:"custom"===n[b]&&(w.className+=" "+s.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)):"sequence"===n[b]||"reverse"===n[b]?f.util.textContent(w,"reverse"===n[b]?v.datacount-((v.pageindex-1)*v.pageunit+e):(v.pageindex-1)*v.pageunit+(e+1)):"checkbox"===n[b]||"reverse"===n[b]?(y=this._createRowheaderCheckbox(w,E,x,n[b]),w.appendChild(y),"checkbox"===n[b]?w.className+=" "+s.ROWHEADER_CELL_CHECKBOX:w.className+=" "+s.ROWHEADER_CELL_RADIO):"state"===n[b]?w.className+=" "+s.ROWHEADER_STATE_INIT:"custom"===n[b]&&(w.className+=" "+s.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,E,x)),w.className+=" "+(m===r.FROZEN?s.CELL_FROZENROWS:s.CELL_NORMALROWS)),o[l+e].push(w)}}return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createRowHeaderCells",t.message),!1}},f.QCELL.BasicQCELL.prototype._createRowheaderCheckbox=function(t,e,i,r){r=void 0===r?"checkbox":r;var s=this.attr("rowheadercheckboxclick"),a=document.createElement("input"),o=this._getQCellCol(i).attr("cellinvisible")[e];if(a.setAttribute("type",r),a.setAttribute("name",this.attr("id")+"_rowheader_col_"+i+"_checkbox"),a.setAttribute("data-row",e),a.setAttribute("data-col",i),void 0!==this.attr("rowheaderstitlekey")&&null!==this.attr("rowheaderstitlekey")){var n=this.attr("rowheaderstitlekey");if(n.length>i){var l=this.getRowData(e);if(void 0!==n[i]&&!0===f._.isFunction(n[i])){var c=n[i](e,i,l);void 0!==c&&""!==c&&a.setAttribute("title",c)}void 0!==n[i]&&""!==n[i]&&void 0!==l[n[i]]&&""!==l[n[i]]&&a.setAttribute("title",l[n[i]])}}a.className+="checkbox"===r?f.QCELL.def.css.CELL_ROWHEADER_CHECKBOX:f.QCELL.def.css.CELL_ROWHEADER_RADIO,!0===this._getRowheaderData(e,i)?a.checked=!0:a.checked=!1,f._.isUndefined(s[e])||s[e][i]?a.removeAttribute("disabled"):a.setAttribute("disabled","disabled");var h=this;return a.onchange=function(t){h._trigger("rowheader_checkbox_changed",{status:t.target.checked,row:e,col:i})},f._.isUndefined(o)||(o?f.$(a).css({visibility:"hidden"}):f.$(a).css({visibility:"visible"})),!0===this._getQCellCol(i).attr("celldisabled")[e]&&a.setAttribute("disabled","disabled"),a},f.QCELL.BasicQCELL.prototype._removeEmptymessage=function(){var t=f.QCELL.def.css,e=document.getElementsByClassName(t.EMPTYMESSAGE+"_"+this.getID());if(e.length>0)for(var i=0;i<e.length;i++){e[i].parentNode.removeChild(e[i])}return!0},f.QCELL.BasicQCELL.prototype._createEmptymessage=function(t){var e=f.QCELL.def.css,i=0,r=0,s=this.attr("hsinfo").nDynamicCols,a=this.attr("layoutsize").viewport.clientHeight,o=this.attr("layoutsize").viewport.clientWidth,n=this.attr("rowheaders").length,l=this.attr("emptymessage");for(r=n;r<=s;r++)i+=f._.isUndefined(this._getColWidth(r))?0:this._getColWidth(r);return t.style.width=i>o?"100%":i+"px",t.style.height=a+"px",t.style.lineHeight=a-2+"px",t.className+=" "+e.CELL_VIEWPORT+" "+e.EMPTYMESSAGE+" "+e.EMPTYMESSAGE+"_"+this.getID(),f.util.textContent(t,l),t},f.QCELL.BasicQCELL.prototype._createFooterRowHeaderCells=function(t){try{for(var e=this.attr("elementpool"),i=f.QCELL.def.css,r=e.get("footerrowheaderinner"),s=this.attr("cellmatrix").get("row"),a=this.attr("footerrows"),o=this.attr("rowheight").footer,n=this.attr("headerrows"),l=this.attr("headercols"),c=this.attr("vsinfo").nDynamicRows,h=this.attr("headercolwidth"),u="msie"===f.$.browser.name?0:2,d=0;d<a;d++){s.push([]);for(var p=0;p<l;p++){var g=this._createCell(t);g.style.width=h+"px",g.style.height=o+"px",g.style.lineHeight=o-u+"px",g.className+=" "+i.CELL_FOOTERROWHEADER+" "+i.CELL_FOOTERROWS+" "+i.CELL_HEADERCOLS,g.setAttribute("data-col",p),g.style.left=h*p+"px",g.style.top=o*d+"px",r.appendChild(g),s[n+c+d].push(g)}}return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createFooterRowHeaderCells",t.message),!1}},f.QCELL.BasicQCELL.prototype._createFooterCells=function(t){try{for(var e,i=this.attr("hsinfo"),r=f.QCELL.def.css,s=this.attr("elementpool"),a=this.attr("cellmatrix").get("row"),o=this.attr("footerrows"),n=this.attr("rowheight").footer,l=this.attr("headerrows"),c=this.attr("headercols"),h=this.attr("frozencols"),u=this.attr("vsinfo").nDynamicRows,d=s.get("footerinner"),p="msie"===f.$.browser.name?0:2,g=0;g<o;g++){var _=0;void 0===a[l+u+g]&&a.push([]);for(var C=0;C<i.nDynamicCols;C++){e=this._getColTabindex(C);var L=this._createCell(t,e),m=C+c,E=this._getColWidth(m);L.style.width=E+"px",L.style.height=n+"px",this._getColWordwrap(m)?L.style.whiteSpace="pre-wrap":L.style.lineHeight=n-p+"px",L.style.left=_+"px",L.style.top=n*g+"px",L.className+=" "+(C<h?r.CELL_FROZENCOLS:r.CELL_NORMALCOLS)+" "+r.CELL_FOOTER+" "+r.CELL_FOOTERROWS,L.setAttribute("data-col",m),L.setAttribute("data-footer",!0),d.appendChild(L),a[l+u+g].push(L),_+=parseFloat(E)}}return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._createFooterCells",t.message),!1}},f.QCELL.BasicQCELL.prototype._getColHeaderDragDropArea=function(){if(null===this.attr("colheaderdndarea")){var t=document.createElement("div");this.attr("colheaderdndarea",this._createColHeaderDragDropArea(t),"jquery")}return this.attr("colheaderdndarea").clone(!0).get(0)},f.QCELL.BasicQCELL.prototype._createColHeaderDragDropArea=function(t){var e=f.QCELL.def.css;return f.$(t.cloneNode()).addClass(e.COLHEADER_DRAG_AND_DROP_AREA).on("mousedown",this.attr("eventparam"),(function(i){var r,s,a=i.target,o=i.data.target,n=o.attr("layoutsize"),l=[],c=o.attr("headerrows"),h=o.attr("frozenbottomrows"),u=o.attr("rows"),d=a.parentNode.getAttribute("data-col"),p=0,g=0;o.attr("colmove",!0,"boolean"),o.attr("colmoveexecution",!1,"boolean");var _,C=0;if(o._getQCellCol(d).attr("topmove")){var L=o._getCellDOM(0,Number(d));C=Number(L.getAttribute("data-endcol")),isNaN(C)&&(C=1);for(var m=null,E=0,v=0;v<C;v++){var b=o._getColCellDOMs(Number(d)+v);p=0,g=0;for(var y=0;y<b.length;y++)m=b[y].cloneNode(!0),_=parseInt(m.getAttribute("data-row")),m.style.left=E+"px",m.style.display="block",isNaN(_)?m.style.top=parseInt(m.style.top)+g+"px":_<c?(m.style.top=p+"px",p+=parseInt(m.style.height)):(m.style.top=parseInt(m.style.top)+p+"px",_>=u-h&&(g=parseInt(m.style.top)+parseInt(m.style.height))),l.push(m);E+=o._getColWidth(Number(d)+v)}}else f._.each(o._getColCellDOMs(d),(function(t,e){var i=t.cloneNode(!0);_=parseInt(i.getAttribute("data-row")),i.style.left="0px",i.style.display="block",isNaN(_)?i.style.top=parseInt(i.style.top)+g+"px":_<c?(i.style.top=p+"px",p+=parseInt(i.style.height)):(i.style.top=parseInt(i.style.top)+p+"px",_>=u-h&&(g=parseInt(i.style.top)+parseInt(i.style.height))),l.push(i)}));f._.last(l).style.borderBottomWidth="1px",r=f.$(t.cloneNode()).addClass(e.COLMOVE_SHADOW).attr("data-col",d).css({display:"none"}).append(l).appendTo(document.body),o._getQCellCol(d).attr("topmove")&&r.attr("data-endcol",C),o.attr("colmoveshadow",r,"jquery"),s=f.$(t.cloneNode()).addClass(e.COLMOVELINE).css({display:"none",height:n.colheader.offsetHeight+n.viewport.offsetHeight+n.footer.offsetHeight}).appendTo(o.attr("elementpool").get("container")),o.attr("colmoveline",s,"jquery")}))},f.QCELL.BasicQCELL.prototype._getColResizeArea=function(){if(null===this.attr("colresizearea")){var t=document.createElement("div");this.attr("colresizearea",this._createColResizeArea(t),"jquery")}return this.attr("colresizearea").clone(!0).get(0)},f.QCELL.BasicQCELL.prototype._createColResizeArea=function(t){var e=f.QCELL.def.css,i=0;return f.$(t.cloneNode()).addClass(e.COLRESIZE_AREA).on("mousedown",this.attr("eventparam"),(function(r){r.preventDefault(),i++;var s,a,o=r.target,n=r.data.target,l=n.attr("layoutsize");if(setTimeout((function(){i=0}),400),2===i){var c=f.$(o).parent().attr("data-col"),h=n.attr("headertext")[c],u=n._getColData(c),d=0,p=0,g=0;for(g=0;g<h.length;g++){try{h[g]=void 0===h[g]?"":h[g],h[g]=""+h[g],p=13*h[g].length}catch(t){p=0}p>d&&(d=p)}for(g=0;g<u.length;g++){try{u[g]=void 0===u[g]?"":u[g],u[g]=""+u[g],p=13*u[g].length}catch(t){p=0}p>d&&(d=p)}return c=parseInt(c),d=parseInt(d),void setTimeout((function(){n.setColWidth(c,d)}),0)}n.attr("colresize",!0,"boolean"),s=f.$(t.cloneNode()).addClass(e.COLRESIZELINE).css({display:"none",height:l.colheader.offsetHeight+l.viewport.offsetHeight+l.footer.offsetHeight}).appendTo(n.attr("elementpool").get("container")),n.attr("colresizeline",s,"jquery"),a=f.$(t.cloneNode()).addClass(e.COLRESIZETOOLTIP).css({display:"none"}).appendTo(n.attr("elementpool").get("container")),n.attr("colresizetooltip",a,"jquery")}))},f.QCELL.BasicQCELL.prototype._createInputForm=function(){var t,e,i,r,s=this.attr("elementpool").get("root"),a=this.attr("id"),o=f.QCELL.def,n=this;null!==document.getElementById(o.areaname.INPUTFORM+"-root"+a)&&s.removeChild(document.getElementById(o.areaname.INPUTFORM+"-root"+a)),null!==this.attr("jqDialog")&&this.attr("jqDialog").dialog("destroy"),(r=document.createElement("div")).setAttribute("id",o.areaname.INPUTFORM+"-root"+a),(t=document.createElement("div")).setAttribute("id",o.areaname.INPUTFORM+"-"+a),t.className+=o.css.INPUTFORM_INNER;var l,c=document.createElement("form"),h=document.createElement("fieldset"),u=this.attr("headercols"),d=this.attr("cols"),p=this.attr("headerrows");for(l=u;l<d;l++){var g,_=document.createElement("label"),C=document.createTextNode(this._cellValue(p-1,l)),L=this._getKeyOfCol(l);switch(i=a+"_"+L+"_"+this.getColID(l),this._getColType(l)){case"input":g=document.createElement("input");break;case"checkbox":(g=document.createElement("input")).setAttribute("type","checkbox");break;case"textarea":g=document.createElement("textarea");break;case"datepicker":(g=document.createElement("input")).setAttribute("type","date");break;case"image":g=document.createElement("img");break;case"selectmenu":g=document.createElement("select");for(var m,E,v,b=this._getColElement(l)._getDataArray(),y=0;y<b.length;y++)m=document.createElement("option"),E=b[y].label,v=b[y].value,m.setAttribute("value",v),m.innerHTML=E,f.$(g).append(m),m=null;break;default:g=document.createElement("output")}g.setAttribute("name",i),g.setAttribute("id",i),g.className+=o.css.INPUTFORM_ITEM,_.appendChild(C),_.setAttribute("for",i),_.className+=o.css.INPUTFORM_HEADER,h.appendChild(_),h.appendChild(g),h.appendChild(document.createElement("br"))}t.setAttribute("title","Input Form"),c.appendChild(h),t.appendChild(c);var w=document.createElement("input");w.setAttribute("type","submit"),w.setAttribute("tabindex","-1"),r.appendChild(t),s.appendChild(r);var x=f.$(t).dialog({autoOpen:!1,height:"auto",width:"80%",modal:!0,buttons:{적용:function(){var t=n.attr("inputformdata");if(null!==t&&-1!==n.attr("inputformdatarow")&&null!==n.attr("inputformdatarow")){for(l=u;l<d;l++){var e=n._getKeyOfCol(l);i=a+"_"+e+"_"+n.getColID(l);var r=document.getElementById(i),s=f.$(r).val();if("checkbox"===n._getColType(l))r.checked!==t[e]&&n.setCellDataEx(n.attr("inputformdatarow"),e,r.checked);else{if("datepicker"===n._getColType(l))s=f.util.replaceAll(s,"-","");else if("image"===n._getColType(l))continue;f._.isNumber(t[e])?t[e]!==parseInt(s)&&n.setCellDataEx(n.attr("inputformdatarow"),e,parseInt(s)):t[e]!==s&&n.setCellDataEx(n.attr("inputformdatarow"),e,s)}}n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean"),n.attr("jqDialog").dialog("close")}},취소:function(){n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean"),n.attr("jqDialog").dialog("close")}},beforeClose:function(){n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean")},close:function(){e[0].reset(),setTimeout((function(){n.onResize()}),0)}});e=x.find("form").on("submit",(function(t){t.preventDefault()})),this.attr("jqDialog",x,"jquery")},f.QCELL.BasicQCELL.prototype._initData=function(){var t=!0;try{var e=this.attr("onloadurl"),i=this;if(!1===f._.isUndefined(e)&&!1===f._.isNull(e)&&f._.isString(e))if(!0!==this.attr("bLoadurlstop"))setTimeout((function(){f.$.ajaxSetup({async:!1});var t=function(t){var e=null;if(f._.isArray(t))e=t;else if(f._.isObject(t)){var r=[];r.push(t),e=r}else try{e=JSON.parse(t)}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._initData",t.message),e=[]}null!==i.attr("onloadurlsucesscallback")&&f._.isFunction(i.attr("onloadurlsucesscallback"))&&(e=i.attr("onloadurlsucesscallback")(e)),i._setColsDataType(e),i._setCurrentData(e,!0),i.attr("original")&&i.attr("origindata",f.$.extend(!0,[],JSON.parse(t)),"array")},r=function(){null!==i.attr("onloadurlfailcallback")&&f._.isFunction(i.attr("onloadurlfailcallback"))&&i.attr("onloadurlfailcallback")()};null!==i.attr("onloadurlparam")?f.$.post(e,i.attr("onloadurlparam"),t).fail(r):f.$.post(e,t).fail(r)}),0);else{var r=this.attr("arrBackupData");f._.isArray(r)&&(this._setColsDataType(r),this._updateCurrentData(r),this.attr("arrBackupData",null,"array"),this.attr("idxinfo",this.attr("objBackupIdx"),"object"),this.attr("deletedrowsdata",this.attr("arrBackupDeletedrowsdata"),"array"),this.attr("objBackupIdx",null,"object"),this.attr("arrBackupDeletedrowsdata",null,"array"),r=[])}else{var s=!0===this.attr("bLoadurlstop")?this.attr("arrBackupData"):this.attr("data").input;this._setColsDataType(s),this._updateCurrentData(s),!0===this.attr("bLoadurlstop")&&(this.attr("arrBackupData",null,"array"),this.attr("idxinfo",this.attr("objBackupIdx"),"object"),this.attr("deletedrowsdata",this.attr("arrBackupDeletedrowsdata"),"array"),this.attr("objBackupIdx",null,"object"),this.attr("arrBackupDeletedrowsdata",null,"array"),this.attr("bLoadurlstop",!1,"boolean")),this.attr("original")&&this.attr("origindata",f.$.extend(!0,[],this.attr("data").input),"array")}t=!0,this.attr("bLoadurlstop",!1,"boolean")}catch(e){f.QCELL.log("err","QCELL.BasicQCELL._initData",e.message),t=!1}finally{f.$.ajaxSetup({async:!0})}return t},f.QCELL.BasicQCELL.prototype._updateCurrentData=function(t){this.removeAttr("currentdata");var e,i=this.getID();if(!f._.isEmpty(t)&&f._.isArray(t)&&0!==t.length)setTimeout((function(){try{null!=(e=f.QCELL.getInstance(i))&&e._removeEmptymessage()}catch(t){return!1}})),!0===this.attr("makefrozenbottomdata")&&(!0!==t[t.length-1].rt_qc_fbrd?(t.push({rt_qc_fbrd:!0}),setTimeout((function(){try{null!=(e=f.QCELL.getInstance(i))&&e._trigger("frozendatacreated")}catch(t){return!1}}),0)):setTimeout((function(){try{null!=(e=f.QCELL.getInstance(i))&&e._trigger("frozendataupdated")}catch(t){return!1}}),0));else if(f._.isEmpty(t)||f._.isArray(t)||0===t.length){var r=this.attr("emptymessage");f.$.trim(r).length>0&&!1!==this.attr("useemptymessage")&&setTimeout((function(){try{if(null!=(e=f.QCELL.getInstance(i))){e._removeEmptymessage();var t,r=document.createElement("div"),s=e.attr("elementpool").get("viewportinner");t=e._createEmptymessage(r),s.appendChild(t)}}catch(t){return!1}}))}this.attr("currentdata",void 0!==t&&f._.isArray(t)?t:[],"array"),this.attr("rows",this.attr("headerrows")+this.attr("currentdata").length,"number"),this._setVSRange(),setTimeout((function(){if(null!=(e=f.QCELL.getInstance(i))){var t=e.getCustomPanel();e.resetCustomPanel(t)}}))},f.QCELL.BasicQCELL.prototype._setCurrentData=function(t,e,i){if(f._.isArray(t)){var r,s,a=this,o=this.attr("hsinfo"),n=this.attr("vsinfo"),l=n.bVScroll;if(r=this.attr("currentdata").length,this._updateCurrentData(t),this._initRowheaderData(),s=this.attr("currentdata").length,this._clearFocus(),this._clearSelection(),this._clearCellStyles(),r<s?this._makeRowUI(s-r,i):r>s&&this._removeRowUI(r-s,i),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._refreshDRs(),l!==n.bVScroll)!0===(!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate")).grouped?this._refreshDCs():this.resize();return e&&(o.bHScroll&&0!==o.nPos&&setTimeout((function(){a._scrollLeft(o.nStartCol)}),200),n.bVScroll&&0!==n.nPos&&setTimeout((function(){a._scrollTop(n.nStartRow)}),200)),!0}return!1},f.QCELL.BasicQCELL.prototype._setData=function(t){this.getID();return!!f._.isArray(t)&&(this.attr("data").input=t,this.attr("isResizing",!1,"boolean"),this._rebuild(),!1===f._.isEmpty(this.attr("paginationinfo"))&&(this.attr("bRebuildWithPrevData",!0,"boolean"),this._movePage(1),this.attr("bRebuildWithPrevData",!1,"boolean")),!0!==this.attr("event_datachanged")&&(this.attr("event_datachanged",!0,"boolean"),this._trigger("datachanged"),this.attr("event_datachanged",!1,"boolean")),!0)},f.QCELL.BasicQCELL.prototype._getRowData=function(t){var e=this.attr("currentdata")[t-this.attr("headerrows")];return void 0!==e&&(e=f._.clone(e)),e},f.QCELL.BasicQCELL.prototype._getRowDataWithFormat=function(t){var e=this.attr("currentdata")[t-this.attr("headerrows")];if(void 0!==e)for(var i in e=f._.clone(e)){var r=this.getColsOfKey(i);r.length>0&&(e[i]=this._getCellLabel(t,r[0]))}return e},f.QCELL.BasicQCELL.prototype._setRowData=function(t,e){var i,r=this,s=!1;this.attr("currentdata")[t-this.attr("headerrows")]=e=f._.clone(e);for(var a=this.attr("headercols"),o=this.attr("cols");a<o&&(i=void 0===e[this._getKeyOfCol(a)]?"":e[this._getKeyOfCol(a)],!1!==(s=this._cellValue(t,a,i)));a++);return setTimeout((function(){r._trigger("rowdatachanged")}),0),s},f.QCELL.BasicQCELL.prototype._setRowDataEx=function(t,e){var i,r=this,s=!1;this.attr("currentdata")[t-this.attr("headerrows")]=e=f._.clone(e);for(var a=this.attr("headercols"),o=this.attr("cols");a<o;a++){i=void 0===e[this._getKeyOfCol(a)]?"":e[this._getKeyOfCol(a)];var n=void 0!==a?r._getColFormat(a):void 0;if(s=this._cellValue(t,a,i),void 0===n||!0!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_header&&!0!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_footer||(i=this._showDataFormat(t,a,i),e[this._getKeyOfCol(a)]=i),!1===s)break}return setTimeout((function(){r._trigger("rowdatachanged")}),0),s},f.QCELL.BasicQCELL.prototype._getColData=function(t,e){var i=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),r=i.grouped?i.columnsinfo.keys(!0)[0]:"",s=f._.pluck(this.attr("currentdata"),this._getKeyOfCol(t));if(!0===e&&i.grouped&&r===this._getColID(t))for(var a,o=this.attr("currentdata"),n=0;n<o.length;n++){var l=o[n],c=s[n];if(void 0===l)return;if(void 0===(a=l[i.level]))return[];var h=i.columnsinfo,u=h.keys(!0),d="",p=!1,g="";"parentchild"===i.mode?(p=h.get(u[0]).showLabel,g=h.get(u[0]).label,d=-1===this._getKeyOfColID(u[0])?u[0]:this._getKeyOfColID(u[0])):(p=h.get(u[a-1]).showLabel,g=h.get(u[a-1]).label,d=-1===this._getKeyOfColID(u[a-1])?u[a-1]:this._getKeyOfColID(u[a-1]),void 0===p&&(p=!0),void 0===g&&(g=d)),!0===p&&(c=l[g]),void 0===c&&(c=""),s[n]=c}return s},f.QCELL.BasicQCELL.prototype._setColData=function(t,e){for(var i=!0,r=this.attr("headerrows"),s=this.attr("currentdata").length,a=0,o=e.length;a<o&&!(!1===i||a>=s);a++)i=this._cellValue(a+r,t,e[a]);return i},f.QCELL.BasicQCELL.prototype._getCellLabel=function(t,e,i){return this._showDataFormat(t,e,this._cellValue(t,e),i)},f.QCELL.BasicQCELL.prototype._setCellLabel=function(t,e,i){var r=!1,s=this._getCellDOM(t,e);try{this._cellValue(t,e,i),null!==s&&f.util.textContent(s,i),r=!0}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._setCellLabel",t.message),r=!1}return r},f.QCELL.BasicQCELL.prototype._showProgressUI=function(t,e){var i=f.QCELL.def.css,r=this.attr("parent"),s=f.$(r).attr("id"),a=f.$(r).parent(),o=f.$(document.createElement("div")).attr("id",i.PROGRESS_UI).addClass(i.PROGRESS_UI).css({width:f.$(r).css("width"),height:f.$(r).css("height")});t?f.$(a).find("#"+s).before(o):f.$(a).find("."+i.PROGRESS_UI).fadeOut(void 0===e?500:e,(function(){f.$(this).remove()}))},f.QCELL.BasicQCELL.prototype._resetData=function(){var t=!1;try{this.attr("original")&&this._setData(f.$.extend(!0,[],this.attr("origindata"))),t=!0}catch(e){f.QCELL.log("err","QCELL.BasicQCELL._resetData",e.message),t=!1}return t},f.QCELL.BasicQCELL.prototype._getFocusRowData=function(){var t=this._getIdxInfo("focus","row"),e=t.current>-1?t.current:-1;return-1===e?{}:this._getRowData(e)},f.QCELL.BasicQCELL.prototype._checkData=function(t){var e,i=this.attr("currentdata");if(t.length!==i.length)return!1;if(0===t.length)return!1;for(e=0;e<t.length;e++)if(!f._.isEqual(t[e],i[e]))return!1;return!0},f.QCELL.BasicQCELL.prototype._findRowSub=function(t,e,i){var r,s=this.getRows();for(r=e;r<s;r++)if(this.getRowData(r)[i]===t)return r;return-1},f.QCELL.BasicQCELL.prototype._getColStyleEditorArea=function(){if(null===this.attr("colstyleeditorarea")){var t=document.createElement("div");this.attr("colstyleeditorarea",this._createColStyleEditorArea(t),"jquery")}return this.attr("colstyleeditorarea").clone(!0).get(0)},f.QCELL.BasicQCELL.prototype._createColStyleEditorArea=function(t){var e=f.QCELL.def.css;return f.$(t.cloneNode()).addClass(e.EDITOR_AREA).on("mousedown",this.attr("eventparam"),(function(t){var i=t.target,r=t.data.target,s=parseInt(i.parentNode.getAttribute("data-col")),a=document.createElement("div"),o=document.createElement("textarea"),n=a.cloneNode(),l=r.attr("id")+"_"+s+"_colStyleEditorArea",c=r.attr("id")+"_"+s+"_colStyleEditorWrap";if(r._getQCellCol(s).attr("colstyleeditorvisivle"))r._removeColStyleEditor(s);else{r._allRemoveColStyleEditor(),f.$(this).addClass(e.EDITOR_AREA_HOVER),r._getQCellCol(s).attr("colstyleeditorvisivle",!0,"boolean"),o.style.width="606px",o.style.height="306px",o.setAttribute("id",l),o.value=r._getQCellCol(s).attr("colstyleeditorbdata"),n.appendChild(o),n.setAttribute("id",c),f.util.addClass(n,e.COLSTYLEEDITOR_WRAP),f.$(n).appendTo(r.attr("elementpool").get("container"));var h=document.getElementById(l);window.sceditor.create(h,{locale:"ko",plugins:"undo",format:"xhtml",icons:"monocons",style:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/themes/content/default.min.css",emoticonsRoot:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/",toolbar:"bold,italic,underline,strike,subscript,superscript,left,center,right,justify,font,size,color,removeformat,cut,copy,paste,pastetext,source",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana, NanumGothic, Dotum"}),f.$(n).css(r._calculateColStyleEditorPosition(t,606,306));var u=window.sceditor.instance(h);r.attr("colstyleeditorui",f.$(n),"jquery"),r.attr("colstyleeditor",u,"object"),window.sceditor.instance(h).keyPress((function(t){r._colStyleEditorOnKeyDown(t,r,s)}),!1,!0).keyUp((function(t){r._colStyleEditorOnKeyUp(t,r,s)})),window.sceditor.instance(h).keyPress((function(t){r._colStyleTextAreaOnKeyDown(t,r,s)}),!0,!1).keyUp((function(t){r._colStyleTextAreaOnKeyUp(t,r,s)}),!0,!1)}}))},f.QCELL.BasicQCELL.prototype._colStyleTextAreaOnKeyDown=function(t,e,i){var r=t.keyCode,s=e.attr("colstyleeditor"),a=e._getQCellCol(i);r!==f.def.key.ENTER&&r!==f.def.key.TAB||(a.attr("colstyleeditordata",s.getSourceEditorValue(),"string"),e._hideColStyleEditor(i,"save",s),t.stopPropagation(),t.preventDefault())},f.QCELL.BasicQCELL.prototype._colStyleTextAreaOnKeyUp=function(t,e,i){var r=t.keyCode,s=e.attr("colstyleeditor"),a=e._getQCellCol(i);!1===t.altKey?r===f.def.key.ENTER||r===f.def.key.TAB?(a.attr("colstyleeditordata",s.getSourceEditorValue(),"string"),e._hideColStyleEditor(i,"save",s),t.stopPropagation(),t.preventDefault()):r===f.def.key.ESC&&e._hideColStyleEditor(i,"cancel",s):r!==f.def.key.ENTER&&10!==r||s.sourceEditorInsertText("\r")},f.QCELL.BasicQCELL.prototype._colStyleEditorOnKeyDown=function(t,e,i){var r=t.keyCode,s=e.attr("colstyleeditor"),a=e._getQCellCol(i);if(r===f.def.key.ENTER||r===f.def.key.TAB){var o=s.getWysiwygEditorValue();s.setSourceEditorValue(o),a.attr("colstyleeditordata",s.getSourceEditorValue(o),"string"),e._hideColStyleEditor(i,"save",s),t.stopPropagation(),t.preventDefault()}},f.QCELL.BasicQCELL.prototype._colStyleEditorOnKeyUp=function(t,e,i){var r=t.keyCode,s=e.attr("colstyleeditor"),a=e._getQCellCol(i);if(!1===t.altKey)if(r===f.def.key.ENTER||r===f.def.key.TAB){var o=s.getWysiwygEditorValue();s.setSourceEditorValue(o),a.attr("colstyleeditordata",s.getSourceEditorValue(o),"string"),e._hideColStyleEditor(i,"save",s),t.stopPropagation(),t.preventDefault()}else r===f.def.key.ESC&&e._hideColStyleEditor(i,"cancel",s);else if(r===f.def.key.ENTER||10===r){t.stopPropagation(),t.preventDefault();var n=s.getRangeHelper();if("msie"===f.$.browser.name){var l=document.createElement("br");n.insertNode(l);for(var c=l.parentNode.childNodes,h=0,u=0;u<c.length;u++)c[u].isEqualNode(l)&&h++;1===h&&n.insertNode(l.cloneNode())}else n.insertHTML("<br><br>")}},f.QCELL.BasicQCELL.prototype._calculateColStyleEditorPosition=function(t,e,i){var r=t.target,s=t.data.target,a=s.attr("layoutsize").viewport.offsetLeft,o=r.parentNode.offsetLeft+a,n=s.attr("layoutsize").viewport.offsetTop,l=parseInt(r.parentNode.getAttribute("data-col")),c=this._getColWidth(l);return{left:o+e>s.attr("layoutsize").root.offsetWidth?o+c-e+"px":o+"px",top:n+"px"}},f.QCELL.BasicQCELL.prototype._allRemoveColStyleEditor=function(){for(var t=this.attr("cols"),e=this.attr("headercols");e<t;e++)this._getQCellCol(e).attr("colstyleeditorvisivle")&&this._removeColStyleEditor(e)},f.QCELL.BasicQCELL.prototype._removeColStyleEditor=function(t){var e=f.QCELL.def.css;f.$("."+e.EDITOR_AREA).removeClass(e.EDITOR_AREA_HOVER),this.attr("colstyleeditorui").remove(),this.attr("colstyleeditorui",null,"jquery"),this._getQCellCol(t).attr("colstyleeditorvisivle",!1,"boolean")},f.QCELL.BasicQCELL.prototype._hideColStyleEditor=function(t,e,i){if("save"===e){var r=this._getQCellCol(t),s="QCELL_COL_DATA";r.attr("colstyleeditordata").indexOf(s)>-1&&-1===r.attr("colstyleeditordata").replace(s,"").indexOf(s)&&(r.attr("colstyleeditorbdata",r.attr("colstyleeditordata"),"string"),"normal"===f.QCELL.module&&this.attr("qcellcols")[t].attr("colelement").attr("editcellcol",!1,"boolean"),this._refresh())}i.destroy(),this._removeColStyleEditor(t)},f.$(window).on("resize."+f.QCELL.name,f._.debounce((function(t){f._.each(f.QCELL.getInstanceIDs(),(function(e){f.QCELL.getInstance(e)._defaultAction(t)}))}),300)),f.QCELL.BasicQCELL.prototype.onFocusIn=function(t){if(f.$(t.target).hasClass("rt-qc-container")){var e,i,r,s=this.getIdx("row","focus");if(this.getRows()-this.attr("headerrows")<=0)return;if(-1===s)return;if(i=s,r=this.getIdx("col","focus"),null===(e=this._getCellDOM(i,r))){var a=this.getID();return this._scrollToFocusCell(i,r),void setTimeout((function(){var t=f.QCELL.getInstance(a);if(null!=t)if(null!==(e=t._getCellDOM(i,r)))t._focusCell(i,r),f.$(e).focus();else{var s="container-"+a,o=document.getElementById(s);null!=o&&o.focus()}}),300)}null!==e&&(this._focusCell(i,r),f.$(e).focus())}},f.QCELL.BasicQCELL.prototype._getEventTarget=function(t){try{var e,i=this.attr("elementpool");switch(t){case"mousewheel":case"DOMMouseScroll":e=i.get("$edgeheader").add(i.get("$colheader")).add(i.get("$rowheader")).add(i.get("$viewport"));break;case"resize":e=f.$(window);break;default:e=i.get("$container")}return e}catch(t){return null}},f.QCELL.BasicQCELL.prototype._initEvent=function(){var t,e,i=this.attr("elementpool"),r=this;if(f._.isFunction(i.containsKey)&&i.containsKey("$sheetpanel")&&i.containsKey("$edgeheader")&&i.containsKey("$colheader")&&i.containsKey("$rowheader")&&i.containsKey("$viewport")){var s=this.attr("id"),a=this.attr("eventparam"),o=this._getEventTarget("mousewheel");return null!==o&&o.on("mousewheel DOMMouseScroll",a,f.st.eventProcess),null!==(o=this._getEventTarget("default"))&&o.on("mousedown mouseup click dblclick mouseenter mouseleave mousemove mouseover keydown change focusin",a,f.st.eventProcess),"msedge"!==f.$.browser.name&&"msie"!==f.$.browser.name&&i.get("$root").on("selectstart",(function(t){return!1})),f.util.isMobile()&&(this._createInputForm(),i.get("$root").swipe({swipeDown:function(t,e,i,s,a,o,n){r.onSwipe(t,e,i,s,a,o)},swipeUp:function(t,e,i,s,a,o,n){r.onSwipe(t,e,i,s,a,o)},swipeRight:function(t,e,i,s,a,o,n){r.onSwipe(t,e,i,s,a,o)},swipeLeft:function(t,e,i,s,a,o,n){r.onSwipe(t,e,i,s,a,o)},longTab:function(t,e){r.onLongTab(t,e)},tab:function(t,e){r.onTab(t,e)},threshold:25})),f.$(i.get("$sheetpanel")).on("selectstart",(function(t){return i.get("$root").off("selectstart"),!0})).off("selectstart",(function(t){return i.get("$root").on("selectstart",(function(t){return!1})),!1})),f.$(document).on("mouseup."+s,a,(function(i){var r=i.data.target,s=r.attr("vsinfo").nTopRow;if(r){if(r.attr("dragging")){var a,o,n=f.QCELL.def.css,l=i.target;if(f.util.hasClass(l,n.CELL_VIEWPORT))a=parseInt(l.getAttribute("data-row")),o=parseInt(l.getAttribute("data-col")),r._updateIdx("drag",a,o);r.onDrop(i)}if(r.attr("colmove")){var c=r.attr("colmoveshadow"),h=r.attr("colmoveline");if(r.attr("colmoveexecution")){var u=parseInt(h.attr("data-beforecol")),d=parseInt(h.attr("data-aftercol"));r._moveCols(u,1,d,!1)}null!==c&&(c.remove(),r.attr("colmoveshadow",null,"jquery")),null!==h&&(h.remove(),r.attr("colmoveline",null,"jquery")),t=r.getID(),!0===r.attr("makefrozenbottomdata")&&(e=r.attr("currentdata"),!f._.isEmpty(e)&&f._.isArray(e)&&0!==e.length&&(!0!==e[e.length-1].rt_qc_fbrd?(e.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(r=f.QCELL.getInstance(t))&&r._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(r=f.QCELL.getInstance(t))&&r._trigger("frozendataupdated")}),0)))}if(r.attr("colresize")){var p=r.attr("colresizeline"),g=r.attr("colresizetooltip"),_=parseInt(p.attr("data-targetcol")),C=parseInt(p.attr("originleft")),L=r._getColWidth(_);r._setColWidth(_,L+(parseInt(p.css("left"))-C)),null!==p&&(p.remove(),r.attr("colresizeline",null,"jquery")),null!==g&&(g.remove(),r.attr("colresizetooltip",null,"jquery")),r._scrollTop(s),t=r.getID(),!0===r.attr("makefrozenbottomdata")&&(e=r.attr("currentdata"),!f._.isEmpty(e)&&f._.isArray(e)&&0!==e.length&&(!0!==e[e.length-1].rt_qc_fbrd?(e.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(r=f.QCELL.getInstance(t))&&r._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(r=f.QCELL.getInstance(t))&&r._trigger("frozendataupdated")}),0)))}r.attr("colmove",!1,"boolean"),r.attr("colresize",!1,"boolean"),r.attr("mousedown",!1,"boolean"),r.attr("istopmove",!1,"boolean")}})).on("mousemove."+s,a,(function(t){var e=t.data.target;if(e&&e.attr("colmove")){var i=e.attr("layoutsize"),r=e.attr("colmoveshadow"),s=parseInt(r.attr("data-col"));if(null!==r){var a=e._getColWidth(s);if(e._getQCellCol(s).attr("topmove")){e.attr("istopmove",!0,"boolean");var o=r.attr("data-endcol");a=0;for(var n=0;n<o;n++)a+=e._getColWidth(s+n)}"none"===r.css("display")&&r.css({display:"block",width:a+"px",height:i.container.offsetHeight+"px"}),r.css({left:t.clientX+5+"px",top:t.pageY+"px"})}}})),this._bindUserEvents(),!0}return!1},f.QCELL.BasicQCELL.prototype._defaultAction=function(t){switch(t.type){case"mousewheel":case"DOMMouseScroll":this.onMouseWheel(t);break;case"mousedown":this.onMouseDown(t);break;case"mouseup":this.onMouseUp(t);break;case"click":this.onClick(t);break;case"dblclick":this.onDblClick(t);break;case"mouseenter":this.onMouseEnter(t);break;case"mouseleave":this.onMouseLeave(t);break;case"mousemove":this.onMouseMove(t);break;case"keydown":this.onKeyDown(t);break;case"resize":this.onResize(t);break;case"focusin":this.onFocusIn(t)}},f.QCELL.BasicQCELL.prototype._bindUserEvents=function(){var t=this;return f.$.each(this.attr("usereventinfo"),(function(e,i){t._bind(e,i,!1)})),!0},f.QCELL.BasicQCELL.prototype._getUserEventName=function(t){var e=f.s(t).trim().toLowerCase().value();if("resize"===e)e+="."+this.attr("id")+".user";else e+=".user";return e},f.QCELL.BasicQCELL.prototype.getParameter=function(t){return this.attr("eventparam_"+t)},f.QCELL.BasicQCELL.prototype._bind=function(t,e,i,r){if(""!==t&&f._.isFunction(e)){var s,a=this.attr("usereventinfo"),o=this.attr("eventparam"),n=f.s(t).trim().value().replace(/\s\s+/g," ").split(" ");if(n.length>0){for(var l=0,c=n.length;l<c;l++){var h=this._getEventTarget(n[l]),u=this._getUserEventName(n[l]);if(!f._.isUndefined(r)&&f._.isObject(r)){for(s in r)o[s]=r[s];this.attr("eventparam_"+t,r,"object")}f.QCELL.config.usebuttonclickcallback&&"buttonclick.user"===u?this.attr("buttonclickcallback",e,"function"):null!==h&&h.off(u).on(u,o,e),i&&(a[n[l]]=e)}return!0}}return!1},f.QCELL.BasicQCELL.prototype._unbind=function(t,e){if(""!==t){var i=this.attr("usereventinfo"),r=f.s(t).trim().value().replace(/ +/g," ").split(" ");if(r.length>0){for(var s=0,a=r.length;s<a;s++){var o=this._getEventTarget(r[s]),n=this._getUserEventName(r[s]);null!==o&&o.off(n),e&&delete i[r[s]]}return!0}}return!1},f.QCELL.BasicQCELL.prototype._trigger=function(t,e){var i=!1;try{var r=this._getEventTarget("default");if(null===r)return i;if("redrawed"===t){var s=this;setTimeout((function(){r.trigger(s._getUserEventName(t))}))}else void 0===e?r.trigger(this._getUserEventName(t)):r.trigger(this._getUserEventName(t),e),i=!0}catch(e){f.QCELL.log("err","QCELL.BasicQCELL.prototype._trigger","event=["+t+"] message=["+e.message+"]")}return i},f.QCELL.BasicQCELL.prototype._filedowntrigger=function(t,e){return this._getEventTarget("default").trigger({type:t,filedownresult:e}),!0},f.QCELL.BasicQCELL.prototype._orderbyExportInfo=function(t,e){var i,r=[],s=this.attr("rowheaders").length;if(s>0)for(i=0;i<s;i++)r.push(t[i]);for(i=0;i<e.length;i++){var a=Number(e[i]);r.push(f._.clone(t[a]))}return r},f.QCELL.BasicQCELL.prototype._exportCellInfoURLHuge=function(t){var e,i,r,s,a,o,n,l,c,h={},u=[],d=[],p=[],g=this.attr("cols"),_=this.attr("colwidthsperpixel"),C=this.attr("headertext"),L=this.attr("qcellcols"),m=this.attr("colkeys"),E=this.attr("layoutsize").colheader.clientWidth,v=[],b=[],y=this.attr("rowheaders").length,w=null;try{if(t.huge=!0,t.label=!0,t.border=!0,t.headershow=!0,t.colwidth=!0,t.progressui=!0,h.header={},h.header.title=[],h.header.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).header,h.data={},h.data.colskey=[],h.data.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).data,h.data.data=[{}],h.style=[],h.widths=[],!1===f._.isUndefined(t)&&!1===f._.isUndefined(t.orderColumns)&&f._.uniq(t.orderColumns).length===g-y&&(C=this._orderbyExportInfo(C,t.orderColumns),m=this._orderbyExportInfo(m,t.orderColumns),_=this._orderbyExportInfo(_,t.orderColumns)),!1===f._.isUndefined(t)&&!1===f._.isUndefined(t.delColumns)){var x=f._.clone(t.delColumns);for(x.sort().reverse(),g-=x.length,e=0;e<x.length;e++){var Q=Number(x[e]);C.splice(Q,1),m.splice(Q,1),_.splice(Q,1)}}if(!1===f._.isUndefined(t)&&!1===f._.isUndefined(t.addColumns)){for(g+=t.addColumns.length,a=0,o=t.addColumns.length;a<o;a++)f._.isUndefined(t.addColumns[a].position)?b.push(f.$.extend(!0,[],t.addColumns[a])):v.push(f.$.extend(!0,[],t.addColumns[a]));if(f._.isEmpty(v)||(v=f._.sortBy(v,"position")),v.length>0)for(a=0,o=v.length;a<o;a++)C.splice(Number(v[a].position),0,v[a].title),m.splice(Number(v[a].position),0,v[a].key),c=f._.isUndefined(v[a].width)?100:(c=v[a].width).indexOf("%")>-1?Math.ceil(E*(Number(c.replace("%",""))/100)):Number(c),_.splice(Number(v[a].position),0,c);if(b.length>0)for(n=0,l=b.length;n<l;n++)C.push(b[n].title),m.push(b[n].key),c=f._.isUndefined(b[n].width)?100:(c=b[n].width).indexOf("%")>-1?Math.ceil(E*(Number(c.replace("%",""))/100)):Number(c),_.push(c)}if(y>0){for(e=y;e<C.length;e++)for(u.push([]),i=0;i<C[e].length;i++)u[e-y].push(C[e][i]);for(e=0,r=u[0].length;e<r;e++){for(i=0,s=u.length;i<s;i++)d.push(u[i][e]);p.push(f.$.extend(!0,[],d)),d.RT_clear()}for(h.header.title=f.$.extend(!0,[],p),u.RT_clear(),u=null,p.RT_clear(),p=null,d.RT_clear(),d=null,e=y;e<g;e++)h.data.colskey.push(m[e]),h.widths.push(_[e]),L.length>e?(void 0!==(w=f._.isNull(L[e].attr("styleinfo"))?{}:L[e].attr("styleinfo")).data&&void 0!==w.data.css&&this._useDataTextAlign(e)&&(w.data.css["text-align"]=this._getDataTextAlign(e)),h.style.push(w)):h.style.push({})}else{for(e=0,r=C[0].length;e<r;e++){for(i=0,s=C.length;i<s;i++)d.push(C[i][e]);p.push(f._.clone(d)),d.RT_clear()}for(h.header.title=f._.clone(p),p.RT_clear(),p=null,d.RT_clear(),d=null,h.data.colskey=m,h.widths=_,e=0;e<g;e++)L.length>e?(void 0!==(w=f._.isNull(L[e].attr("styleinfo"))?{}:L[e].attr("styleinfo")).data&&void 0!==w.data.css&&this._useDataTextAlign(e)&&(w.data.css["text-align"]=this._getDataTextAlign(e)),h.style.push(w)):h.style.push({})}return h}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._exportCellInfoURLHuge",t.message),{}}},f.QCELL.BasicQCELL.prototype._excelDownloadURLHuge=function(t){var e=f._.clone(this);return e._showProgressUI(!0),!!(f.$.browser.msie&&f.$.browser.version<10)&&(!(!e._excelDownload_checkRequiredProps(t,"url")||!e._excelDownload_checkValidationOfProps(t))&&e._excelDownloadURLHuge(t))},f.QCELL.BasicQCELL.prototype._excelDownloadURLHuge=function(t){var e=this.attr("id")+"._excelDownloadURLHuge";try{var i=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",r=t.filename+i,s=f.$("<input>").attr("type","hidden").attr("name","filename").val(r),a=f.$("<input>").attr("type","hidden").attr("name","info"),o=f.$("<input>").attr("type","hidden").attr("name","properties"),n=f.$("<input>").attr("type","hidden").attr("name","param"),l=this;return a.val(JSON.stringify(this._exportCellInfoURLHuge(t))),o.val(JSON.stringify(t)),n.val(JSON.stringify(t.param)),f.$.fileDownload(t.url,{httpMethod:"POST",data:{filename:s.val(),info:a.val(),properties:o.val(),param:n.val()}}).done((function(){l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","success")}),0)})).fail((function(){l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","fail")}),0)})),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._exportCellInfo=function(t){var e,i,r,s,a,o,n,l,c,h,u={},d=[],p=[],g=[],_=this.attr("cols"),C=f.$.extend(!0,[],this.attr("colwidthsperpixel")),L=f.$.extend(!0,[],this.attr("headertext")),m=f.$.extend(!0,[],this.attr("qcellcols")),E=f.$.extend(!0,[],this.attr("colkeys")),v=f.$.extend(!0,[],this.attr("currentdata")),b=void 0!==t&&t.huge,y=void 0!==t&&t.label,w=void 0!==t&&t.totaldata,x=this.attr("layoutsize").colheader.clientWidth,Q=[],k=[],T=this.attr("staticrowsinfo"),R=this.attr("rowheaders").length,A=0;(!0===this.attr("makefrozenbottomdata")||this._isPanel())&&(A=1);var S=null;try{u.header={},u.header.title=[],u.header.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).header,u.data={},u.data.colskey=[],u.data.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).data;var O=t.useorgindata;if(T.length>0&&(h=!0),!0===y&&("normal"===f.QCELL.module||"basic"===f.QCELL.module)){var D=function(t){return t.nRow===i};for(e=this.attr("headercols");e<_;e++)if("selectmenu"===m[e].attr("type")||"static"===m[e].attr("type")||"input"===m[e].attr("type")||"inputbutton"===m[e].attr("type")||"textarea"===m[e].attr("type")||"datepicker"===m[e].attr("type")||"number"===m[e].attr("type"))for(i=this.attr("headerrows");i<this.attr("rows")-A;i++){if(!0===h)if(void 0!==f._.find(T,D)){v[i-this.attr("headerrows")][E[e]]=this._cellValue(i,e);continue}var I=!0===O?this._getCellLabel(i,e,!1):this._getCellLabel(i,e);0!==I||f._.isUndefined(this._cellValue(i,e))||(I=this._cellValue(i,e)),!0!==v[i-this.attr("headerrows")].rt_qc_footer&&(v[i-this.attr("headerrows")][E[e]]=I)}}if(!0===t.usehtmltype)for(e=this.attr("headercols");e<_;e++)if("html"===m[e].attr("type")){var N=this._getColHtml(e);if(f._.isFunction(N.data))for(i=this.attr("headerrows");i<this.attr("rows")&&!0!==v[i-this.attr("headerrows")].rt_qc_fbrd;i++)try{var P=N.data(this,i,e,this._cellValue(i,e),v[i-this.attr("headerrows")],!0);v[i-this.attr("headerrows")][E[e]]=P}catch(t){v[i-this.attr("headerrows")][E[e]]=""}}if(!1===f._.isUndefined(b)&&!0===b?u.data.data=[{}]:u.data.data=v,!1===f._.isUndefined(w)&&!0===w&&(u.data.data=f._.clone(this.attr("data").input)),u.style=[],u.widths=[],!1===f._.isUndefined(t)&&!1===f._.isUndefined(t.orderColumns)&&f._.uniq(t.orderColumns).length===_-R&&(L=this._orderbyExportInfo(L,t.orderColumns),E=this._orderbyExportInfo(E,t.orderColumns),C=this._orderbyExportInfo(C,t.orderColumns)),!1===f._.isUndefined(t)&&!1===f._.isUndefined(t.delColumns)){var M=f._.clone(t.delColumns);for(M.sort().reverse(),_-=M.length,e=0;e<M.length;e++){var q=Number(M[e]);L.splice(q,1),E.splice(q,1),C.splice(q,1)}}if(!0===t.usesequence){!0===f._.isUndefined(t.addColumns)&&(t.addColumns=[]);for(var B=void 0===t.sequencetitle?"":t.sequencetitle,H=[],U=0;U<this.getRows("header");U++)H.push(B);t.addColumns.push({key:"rt_qc_seq",width:"50",title:H,position:R+""}),u.style.push({})}var F={},z={};if(u.objPos=F,u.objStyle=z,!1===f._.isUndefined(t)&&!1===f._.isUndefined(t.addColumns)){for(_+=t.addColumns.length,a=0,o=t.addColumns.length;a<o;a++)f._.isUndefined(t.addColumns[a].position)?k.push(f.$.extend(!0,[],t.addColumns[a])):(Q.push(f.$.extend(!0,[],t.addColumns[a])),z["c_"+t.addColumns[a].position]=t.addColumns[a].styleclassname);if(!f._.isEmpty(Q)){for(a=0;a<Q.length;a++){if(Q[a].position=Number(Q[a].position),isNaN(Q[a].position))return{};F["c_"+Q[a].position]=!0}Q=f._.sortBy(Q,"position")}if(Q.length>0)for(a=0,o=Q.length;a<o;a++)L.splice(Number(Q[a].position),0,Q[a].title),E.splice(Number(Q[a].position),0,Q[a].key),c=f._.isUndefined(Q[a].width)?100:(c=Q[a].width).indexOf("%")>-1?Math.ceil(x*(Number(c.replace("%",""))/100)):Number(c),C.splice(Number(Q[a].position),0,c);if(k.length>0)for(n=0,l=k.length;n<l;n++)L.push(k[n].title),E.push(k[n].key),c=f._.isUndefined(k[n].width)?100:(c=k[n].width).indexOf("%")>-1?Math.ceil(x*(Number(c.replace("%",""))/100)):Number(c),C.push(c)}var W,j=R;if(R>0){for(e=R;e<L.length;e++)for(d.push([]),i=0;i<L[e].length;i++)d[e-R].push(L[e][i]);for(e=0,r=d[0].length;e<r;e++){for(i=0,s=d.length;i<s;i++)p.push(d[i][e]);g.push(f.$.extend(!0,[],p)),p.RT_clear()}for(u.header.title=f.$.extend(!0,[],g),d.RT_clear(),d=null,g.RT_clear(),g=null,p.RT_clear(),p=null,e=R;e<_;e++)u.data.colskey.push(E[e]),u.widths.push(C[e]),!0!==F["c_"+e]?(void 0!==(S=f._.isNull(m[j].attr("styleinfo"))?{}:m[j].attr("styleinfo")).data&&void 0!==S.data.css&&this._useDataTextAlign(j)&&(S.data.css["text-align"]=this._getDataTextAlign(j)),void 0!==t.textalignclass&&(W=m[j].getStyleClassName("data"),void 0===S.data&&(S.data={css:{}}),void 0===S.data.css&&(S.data.css={}),null!=W&&(void 0!==t.textalignclass.left&&t.textalignclass.left===W&&(S.data.css["text-align"]="left"),void 0!==t.textalignclass.center&&t.textalignclass.center===W&&(S.data.css["text-align"]="center"),void 0!==t.textalignclass.right&&t.textalignclass.right===W&&(S.data.css["text-align"]="right"))),u.style.push(S),j++):void 0!==z["c_"+e]&&null!=(W=z["c_"+e].data)?(void 0===(S={}).data&&(S.data={css:{}}),void 0===S.data.css&&(S.data.css={}),void 0!==t.textalignclass.left&&t.textalignclass.left===W?(S.data.css["text-align"]="left",u.style.push(S)):void 0!==t.textalignclass.center&&t.textalignclass.center===W?(S.data.css["text-align"]="center",u.style.push(S)):void 0!==t.textalignclass.right&&t.textalignclass.right===W?(S.data.css["text-align"]="right",u.style.push(S)):u.style.push({data:{css:{"text-align":"center"}}})):u.style.push({data:{css:{"text-align":"center"}}})}else{for(e=0,r=L[0].length;e<r;e++){for(i=0,s=L.length;i<s;i++)p.push(L[i][e]);g.push(f._.clone(p)),p.RT_clear()}for(u.header.title=f._.clone(g),g.RT_clear(),g=null,p.RT_clear(),p=null,u.data.colskey=E,u.widths=C,e=0;e<_;e++)!0!==F["c_"+e]?(void 0!==(S=f._.isNull(m[j].attr("styleinfo"))?{}:m[j].attr("styleinfo")).data&&void 0!==S.data.css&&this._useDataTextAlign(j)&&(S.data.css["text-align"]=this._getDataTextAlign(j)),void 0!==t.textalignclass&&(W=m[j].getStyleClassName("data"),void 0===S.data&&(S.data={css:{}}),void 0===S.data.css&&(S.data.css={}),null!=W&&(void 0!==t.textalignclass.left&&t.textalignclass.left===W&&(S.data.css["text-align"]="left"),void 0!==t.textalignclass.center&&t.textalignclass.center===W&&(S.data.css["text-align"]="center"),void 0!==t.textalignclass.right&&t.textalignclass.right===W&&(S.data.css["text-align"]="right"))),u.style.push(S),j++):void 0!==z["c_"+e]&&null!=(W=z["c_"+e].data)?(void 0===(S={}).data&&(S.data={css:{}}),void 0===S.data.css&&(S.data.css={}),void 0!==t.textalignclass.left&&t.textalignclass.left===W?(S.data.css["text-align"]="left",u.style.push(S)):void 0!==t.textalignclass.center&&t.textalignclass.center===W?(S.data.css["text-align"]="center",u.style.push(S)):void 0!==t.textalignclass.right&&t.textalignclass.right===W?(S.data.css["text-align"]="right",u.style.push(S)):u.style.push({data:{css:{"text-align":"center"}}})):u.style.push({data:{css:{"text-align":"center"}}})}var G,V=[];if(void 0!==t.exceltitle&&f._.isString(t.exceltitle)&&void 0!==u.header&&void 0!==u.header.title&&f._.isArray(u.header.title)){for(G=0;G<u.data.colskey.length;G++)V.push(t.exceltitle);u.header.title.RT_insert(0,V)}if(void 0!==t.excelfooter&&f._.isString(t.excelfooter)){V=[];var K={};for(G=0;G<u.data.colskey.length;G++)K[u.data.colskey[G]]=t.excelfooter;u.data.data.push(K)}return u}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._exportCellInfo",t.message);var Y=this;return setTimeout((function(){Y._trigger("exceldownloadfail")})),{}}},f.QCELL.BasicQCELL.prototype._excelDownload=function(t){var e=!0,i=f._.clone(this);if(void 0!==t.progressui&&!0===t.progressui&&i._showProgressUI(t.progressui),!1===(e=f.$.browser.msie&&f.$.browser.version<10?!(!i._excelDownload_checkRequiredProps(t,"url")||!i._excelDownload_checkValidationOfProps(t))&&i._excelDownloadURL(t):f._.isUndefined(t.url)?!(!i._excelDownload_checkRequiredProps(t,"loc")||!i._excelDownload_checkValidationOfProps(t))&&i._excelDownloadLOC(t):!(!i._excelDownload_checkRequiredProps(t,"url")||!i._excelDownload_checkValidationOfProps(t))&&i._excelDownloadURL(t))){var r=this;setTimeout((function(){r._trigger("exceldownloadfail")}))}return e},f.QCELL.BasicQCELL.prototype._excelDownload_checkRequiredProps=function(t,e){var i=!0;if(f._.isObject(t)&&!1===f._.isArray(t)){for(var r,s=0,a=(r="loc"===e?["filename"]:["filename","url"]).length;s<a;s++){var o=r[s];if(void 0===t[o]){f.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkRequiredProps",'Please check "'+o+'" property.'),i=!1;break}}r.RT_clear(),r=null}else f.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),i=!1;return i},f.QCELL.BasicQCELL.prototype._excelDownload_checkValidationOfProps=function(t){var e=!0,i=this;return f.$.each(t,(function(t,r){return e=i._excelDownload_checkValidationOfProp(t,r)})),e},f.QCELL.BasicQCELL.prototype._excelDownload_checkValidationOfProp=function(t,e){var i=!0,r=!0,s="";switch(t){case"filename":case"fileExt":case"url":s="string",!1===f._.isString(e)&&(i=!1);break;case"border":case"headershow":case"colwidth":case"progressui":case"huge":case"label":s="boolean",!1===f._.isBoolean(e)&&(i=!1);break;case"addColumns":s="object",!1===f._.isObject(e)?i=!1:f.$.each(e,(function(e,a){f.$.each(a,(function(e,a){switch(e){case"width":case"key":case"num":if(s="string",!1===f._.isString(a))return f.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+"."+e+'" property. This property\'s type is "'+s+'".'),i=!1,r=!1,!1;break;case"title":if(s="object",!1===f._.isObject(a))return f.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+"."+e+'" property. This property\'s type is "'+s+'".'),i=!1,r=!1,!1}}))}));break;case"delColumns":case"orderColumns":s="array",!0!==f._.isUndefined(e)&&!1!==f._.isArray(e)||(i=!1)}return!1===i&&r&&f.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+'" property\'s type is "'+s+'".'),i},f.QCELL.BasicQCELL.prototype._excelDownloadURL=function(t){var e=this.attr("id")+"._excelDownloadURL";try{var i=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",r=t.filename+i,s=f.$("<input>").attr("type","hidden").attr("name","filename").val(r),a=f.$("<input>").attr("type","hidden").attr("name","info"),o=f.$("<input>").attr("type","hidden").attr("name","properties"),n=f.$("<input>").attr("type","hidden").attr("name","param"),l=this;return a.val(JSON.stringify(this._exportCellInfo(t))),o.val(JSON.stringify(t)),n.val(JSON.stringify(t.param)),f.$.fileDownload(t.url,{httpMethod:"POST",data:{filename:s.val(),info:a.val(),properties:o.val(),param:n.val()}}).done((function(){void 0!==t.progressui&&!0===t.progressui&&l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","success")}),0)})).fail((function(){void 0!==t.progressui&&!0===t.progressui&&l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","fail")}),0)})),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._excelDownloadLOC=function(t){var e=this.attr("id")+"._excelDownloadLOC";try{var i,r,s,a,o=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",n=t.filename+o,l=[],c=[],h=[],u=this._exportCellInfo(t),d=!1!==f._.isUndefined(t.delColumns)&&!1!==f._.isUndefined(t.addColumns);if(t.usesequence&&(d=!0),void 0!==t.totaldata&&f._.isBoolean(t.totaldata)&&t.totaldata&&(u.data.data=f._.clone(this.attr("data").input)),!0===this.attr("excelexportwithformat"))for(r=0;r<this.attr("cols");r++)if(null!=(s=this._getKeyOfCol(r))&&""!==s&&(a=this._getColFormat(r),!f._.isUndefined(a)&&!f._.isNull(a)))for(i=0;i<u.data.data.length;i++)u.data.data[i][s]=this._showDataFormat(i,r,u.data.data[i][s]);return void 0!==t.headershow&&f._.isBoolean(t.headershow)&&t.headershow?(c=this._excelMerge(u.header,"header",!1,t),h=this._excelMerge(u.data,"data",d,t),l=this._unionMergeInfo(u.header.title.length,c,h),this._exportToExcel(u,n,l,t)):(l=this._excelMerge(u.data,"data",d,t),this._exportToExcel(u,n,l,t)),void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._exportToExcel=function(t,e,i,r){var s=this._SetWorkbook(t,i,r),a=d.write(s,{bookType:"xlsx",bookSST:!0,type:"binary",compression:!0}),n=e;try{(0,o.saveAs)(new Blob([this._s2ab(a)],{type:"application/octet-stream"}),n)}catch(t){"undefined"!=typeof console&&console.log(t,a)}return a},f.QCELL.BasicQCELL.prototype._s2ab=function(t){var e,i=0;if("undefined"!=typeof ArrayBuffer){e=new ArrayBuffer(t.length);var r=new Uint8Array(e);for(i=0;i<t.length;++i)r[i]=255&t.charCodeAt(i);return e}for(e=new Array(t.length),i=0;i<t.length;++i)e[i]=255&t.charCodeAt(i);return e},f.QCELL.BasicQCELL.prototype._SetWorkbook=function(t,e,i){var r={SheetNames:[],Sheets:{}},s="Sheet";r.SheetNames.push(s);var a,o={},n=t.data.data.length,l=t.data.colskey.length,c=0;void 0!==i.headershow&&f._.isBoolean(i.headershow)&&i.headershow&&(c=t.header.title.length);var h={s:{c:0,r:0},e:{c:l-1,r:(a=c+n)-1}};o["!ref"]=d.utils.encode_range(h),o["!merges"]=e;var u=[],p=this.attr("presentseqatfooter");if(void 0!==i.headershow&&f._.isBoolean(i.headershow)&&i.headershow)for(var g=0,_=t.widths.length;g<_;g++){var C=parseInt(t.widths[g]);void 0!==i.defaultColumnSize&&0===C&&(i.defaultColumnSize=f.util.replaceAll(i.defaultColumnSize,"px",""),i.defaultColumnSize=f.util.replaceAll(i.defaultColumnSize,"%",""),C=parseInt(i.defaultColumnSize)),isNaN(C)&&(C=0),u.push({wpx:.75*C})}o["!cols"]=u;var L=0,m=0,E="",v={},b=void 0!==i.exceltitle,y=void 0!==i.excelfooter,w={fill:{patternType:"none",fgColor:{rgb:"000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}},x={fill:{patternType:"none",fgColor:{rgb:"000000"},bgColor:{rgb:"#FFFFFF"}},font:{name:"맑은 고딕",sz:12,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"center"}};for(L=0;L<c;L++){var Q=t.header.title[L];for(m=0;m<l;m++)w={fill:{patternType:"none",fgColor:{rgb:"FF000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}},w=this._cellStyleSetting(w,"header",i),E=d.utils.encode_cell({c:m,r:L}),(v={}).v=Q[m],v.t="s",v.s=!0===b&&0===L?x:w,v.z="@",o[E]=v,v={}}for(;L<a;L++){var k=L-c,T=t.data.data[k],R=t.data.colskey;for(m=0;m<l;m++){var A={fill:{patternType:"none",fgColor:{rgb:"FF000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!1,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}};if(!0!==i.forcebasicstyle&&(A=this._cellStyleSetting(A,"data",i)),y&&L+1===a&&(A.alignment.horizontal="center"),E=d.utils.encode_cell({c:m,r:L}),v={},"rt_qc_seq"===R[m])!1===p&&!0===T.rt_qc_footer?(v.v="",v.s=w,v.t="s",v.z="@"):void 0!==i.excelfooter&&T.rt_qc_seq===i.excelfooter?(v.v=i.excelfooter,v.s=w,v.t="s",v.z="@"):(!0===T.rt_qc_fbrd?v.v=void 0===T.rt_qc_seq?" ":T.rt_qc_seq:v.v=k+1,v.s=w,v.t="n",v.z="0_ ");else{if(v.v=f._.isUndefined(T[R[m]])||f._.isNull(T[R[m]])?"":""+T[R[m]],"string"===i.datatype)v.t="s",v.z="@";else if("string"===this._getColExportDataType(this._getColsOfKey(R[m])[0]))v.t="s",v.z="@";else{var S=0===this._getColsOfKey(R[m]).length?-1:this._getColsOfKey(R[m])[0],O=-1===S?null:this._getColFormat(S);if(null!=O)if("number"===O.type){var D=f.util.replaceAll(v.v,",","");isNaN(Number(D))?(v.t="s",v.z="@"):(v.v=Number(D),v.t="n",v.z=O.rule)}else v.t="s",v.z="@";else f._.isString(v.v)&&""===v.v.trim()?(v.t="s",v.z="@"):f._.isNumber(v.v)||!isNaN(Number(v.v))?(v.t="n",v.v=Number(v.v),v.z="0_ "):(v.t="s",v.z="@")}v.s=A}o[E]=v,v={}}}return r.Sheets[s]=o,r},f.QCELL.BasicQCELL.prototype._cellStyleSetting=function(t,e,i){return"header"===e&&(t.fill.bgColor.rgb="FFf8f8f8",t.fill.fgColor.rgb="FFf8f8f8",t.fill.patternType="solid",t.font.color.rgb="FF707070",t.font.bold=!0,t.alignment.horizontal="center"),void 0!==i.border&&f._.isBoolean(i.border)&&i.border&&(t.border={top:{style:"thin",color:{auto:1}},right:{style:"thin",color:{auto:1}},bottom:{style:"thin",color:{auto:1}},left:{style:"thin",color:{auto:1}}}),t},f.QCELL.BasicQCELL.prototype._unionMergeInfo=function(t,e,i){if(i.length>0)for(var r=0,s=i.length;r<s;r++)i[r].s.r=i[r].s.r+t,i[r].e.r=i[r].e.r+t;return f._.union(e,i)},f.QCELL.BasicQCELL.prototype._excelMerge=function(t,e,i,r){var s=t.mergeType,a=[];if("header"===e)a=t.title;else for(var o=t.colskey,n=t.data,l=this.attr("presentseqatfooter"),c=0,h=n.length;c<h;c++){for(var u=[],d=0,p=o.length;d<p;d++)"rt_qc_seq"===o[d]?void 0!==r.excelfooter&&c===h-1?u.push(r.excelfooter):!1===l&&!0===n[c].rt_qc_footer?u.push(""):u.push(c+1):u.push(n[c][o[d]]);a.push(u)}return this._mergeInfoSetting(s,a,e,i,r)},f.QCELL.BasicQCELL.prototype._mergeInfoSetting=function(t,e,i,r,s){var a,o,n,l,c,h,u,d,p,g,_=0,C=0,L=0,m=0,E={},v=0,b=0,y=0,w=0,x=e.length,Q=!0===f._.isEmpty(e)?this.attr("cols")-this.attr("rowheaders").length:e[0].length,k=[],T=this.attr("rowheaders").length,R=0,A=0,S=!0===s.usesequence?1:0;if("header"===i&&void 0!==s.exceltitle?(R=1,E.s={r:0,c:0},E.e={r:0,c:Q-1},E.s.c!==E.e.c&&k.push(E),E={}):"data"===i&&void 0!==s.excelfooter&&(A=1,E.s={r:x-1,c:0},E.e={r:x-1,c:Q-1},E.s.c!==E.e.c&&k.push(E),E={}),"row"===t)for(b=0;b<x-A;b++)for(v=0;v<Q;v++)!1===this._getColDataMergeCol(v+T)&&r||(0===v&&(C=0,m=0),(y=(u=v+T)+1)>=Q&&(y=u),e[b][u]===e[b][y]?m=y:(E.s={r:b,c:C},E.e={r:b,c:m},E.s.c!==E.e.c&&k.push(E),C=y,m=y,E={}),v+1===Q&&(E.s={r:b,c:C},E.e={r:b,c:m},E.s.c!==E.e.c&&k.push(E),E={}));else if("col"===t){for(v=S;v<Q;v++)if(!1!==this._getColDataMergeCol(v-S+T)||!r)for(b=0;b<x-A;b++)0===b&&(_=0,L=0),u=v,(w=b+1)>=x&&(w=b),e[b][u]===e[w][u]?L=w:(E.s={r:_,c:u},E.e={r:L,c:u},E.s.r!==E.e.r&&k.push(E),_=w,L=w,E={}),b+1===x&&(E.s={r:_,c:u},E.e={r:L,c:u},E.s.r!==E.e.r&&k.push(E),E={})}else if("rowandcol"===t&&"header"===i)for(b=R;b<x;b++)for(_=b,L=b,v=0;v<Q;v++)0===v&&(C=0,m=0),(y=v+1)>=Q&&(y=v),e[b][v]===e[b][y]?m=y:(_===(L=this._excelFindEndRow(_,C,m,e))&&C===m||this._checkMerge(_,C,k)||(E.s={r:_,c:C},E.e={r:L,c:m},k.push(E),E={}),C=y,m=y,L=_),v+1===Q&&(_===(L=this._excelFindEndRow(_,C,m,e))&&C===m||this._checkMerge(_,C,k)||(E.s={r:_,c:C},E.e={r:L,c:m},k.push(E),E={}));else if("colandrow"===t&&"header"===i)for(v=R;v<Q;v++)for(C=v,m=v,b=0;b<x;b++)0===b&&(_=0,L=0),(w=b+1)>=x&&(w=b),e[b][v]===e[w][v]?L=w:(m=this._excelFindEndCol(C,_,L,e,Q),_===L&&C===m||this._checkMerge(_,C,k)||(E.s={r:_,c:C},E.e={r:L,c:m},k.push(E),E={}),_=w,L=w,m=C),b+1===x&&(m=this._excelFindEndCol(C,_,L,e,Q),_===L&&C===m||this._checkMerge(_,C,k)||(E.s={r:_,c:C},E.e={r:L,c:m},k.push(E),E={}));else if("group"===t){for(l=[],d=0;d<T;d++)l[d]=[];for(v=S;v<Q;v++)if(!1!==this._getColDataMergeCol(v+T)||!r)if(l[v]=[],v===S)for(b=0;b<x-A;b++)0===b&&(_=0,L=0),(w=b+1)>=x&&(w=b),e[b][v]===e[w][v]?L=w:(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r&&l[v].push(E),_=w,L=w,E={}),b+1===x&&(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r&&l[v].push(E),E={});else if(void 0===l[v-1]&&(l[v-1]=[]),l[v-1].length>0)for(a=0,p=l[v-1].length;a<p;a++)for(h=(c=l[v-1][a]).s.r,g=c.e.r;h<g;h++)h===c.s.r&&(_=c.s.r,L=c.s.r),w=h+1,e[h][v]===e[w][v]?L=w:(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r&&l[v].push(E),_=w,L=w,E={}),h+1===g&&(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r&&l[v].push(E),E={});if(l.length>0)for(o=0;o<l.length;o++)if(l[o].length>0)for(n=0;n<l[o].length;n++)k.push(l[o][n])}else if("groupandrow"===t){for(l=[],d=0;d<T;d++)l[d]=[];var O,D=[];for(v=S;v<Q;v++)if(!1!==this._getColDataMergeCol(v+T)||!r)if(l[v]=[],v===S)for(b=0;b<x-A;b++){if(0===b&&(_=0,L=0),(w=b+1)>=x&&(w=b),e[b][v]===e[w][v])L=w;else{if(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r)l[v].push(E);else{for(O=v+1;O<Q&&e[b][v]===e[b][O];O++);v+1!==O&&(E.s={r:_,c:v},E.e={r:L,c:O-1},D.push(E))}_=w,L=w,E={}}if(b+1===x){if(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r)l[v].push(E);else{for(O=v+1;O<Q&&e[b][v]===e[b][O];O++);v+1!==O&&(E.s={r:_,c:v},E.e={r:L,c:O-1},D.push(E))}E={}}}else if(void 0===l[v-1]&&(l[v-1]=[]),l[v-1].length>0)for(a=0,p=l[v-1].length;a<p;a++)for(h=(c=l[v-1][a]).s.r,g=c.e.r;h<g;h++){if(h===c.s.r&&(_=c.s.r,L=c.s.r),w=h+1,e[h][v]===e[w][v])L=w;else{if(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r)l[v].push(E);else{for(O=v+1;O<Q&&e[h][v]===e[h][O];O++);v+1!==O&&(E.s={r:_,c:v},E.e={r:L,c:O-1},D.push(E))}_=w,L=w,E={}}if(h+1===g){if(E.s={r:_,c:v},E.e={r:L,c:v},E.s.r!==E.e.r)l[v].push(E);else{for(O=v+1;O<Q&&e[h][v]===e[h][O];O++);v+1!==O&&(E.s={r:_,c:v},E.e={r:L,c:O-1},D.push(E))}E={}}}if(l.length>0)for(o=0;o<l.length;o++)if(l[o].length>0)for(n=0;n<l[o].length;n++)k.push(l[o][n]);if(D.length>0)for(n=0;n<D.length;n++)k.push(D[n])}return k},f.QCELL.BasicQCELL.prototype._excelFindEndCol=function(t,e,i,r,s){var a,o=t,n=r[e][t],l=!0,c=0,h=0;for(h=t,a=s;h<a;h++){if(r[e][h]!==n){c=h;break}c=h}for(h=t,a=c;h<=a;h++){for(var u=e,d=i;u<=d;u++){if(r[u][h]!==n){o=--h,l=!1;break}o=h}if(!l)break}return o},f.QCELL.BasicQCELL.prototype._excelFindEndRow=function(t,e,i,r){for(var s=t,a=r[t][e],o=!0,n=t,l=r.length;n<l;n++){for(var c=e,h=i;c<=h;c++){if(r[n][c]!==a){s=--n,o=!1;break}s=n}if(!o)break}return s},f.QCELL.BasicQCELL.prototype._checkMerge=function(t,e,i){var r=!1;if(i.length>0)for(var s=0,a=i.length;s<a;s++)t>=i[s].s.r&&t<=i[s].e.r&&e>=i[s].s.c&&e<=i[s].e.c&&(r=!0);return r},f.QCELL.BasicQCELL.prototype._getMergeInfo=function(t,e,i){var r={};if(i.length>0)for(var s=0,a=i.length;s<a;s++)if(t>=i[s].s.r&&t<=i[s].e.r&&e>=i[s].s.c&&e<=i[s].e.c){r=i[s];break}return r},f.QCELL.BasicQCELL.prototype._convertHtmlColorCode=function(t){var e="";switch(t.toLowerCase()){case"indianred":e="#cd5c5c";break;case"lightcoral":e="#f08080";break;case"salmon":e="#fa8072";break;case"darksalmon":e="#e9967a";break;case"lightsalmon":e="#ffa07a";break;case"crimson":e="#dc143c";break;case"red":e="#ff0000";break;case"firebrick":e="#b22222";break;case"darkred":e="#8b0000";break;case"pink":e="#ffc0cb";break;case"lightpink":e="#ffb6c1";break;case"hotpink":e="#ff69b4";break;case"deeppink":e="#ff1493";break;case"mediumvioletred":e="#c71585";break;case"palevioletred":case"tomato":e="#db7093";break;case"coral":e="#ff7f50";break;case"orangered":e="#ff4500";break;case"darkorange":e="#ff8c00";break;case"orange":e="#ffa500";break;case"gold":e="#ffd700";break;case"yellow":e="#ffff00";break;case"lightyellow":e="#ffffe0";break;case"lemonchiffon":e="#fffacd";break;case"lightgoldenrodyellow":e="#fafad2";break;case"papayawhip":e="#ffefd5";break;case"moccasin":e="#ffe4b5";break;case"peachpuff":e="#ffdab9";break;case"palegoldenrod":e="#eee8aa";break;case"khaki":e="#f0e68c";break;case"darkkhaki":e="#bdb76b";break;case"lavender":e="#e6e6fa";break;case"thistle":e="#d8bfd8";break;case"plum":e="#dda0dd";break;case"violet":e="#ee82ee";break;case"orchid":e="#da70d6";break;case"fuchsia":case"magenta":e="#ff00ff";break;case"mediumorchid":e="#ba55d3";break;case"mediumpurple":e="#9370db";break;case"rebeccapurple":e="#663399";break;case"blueviolet":e="#8a2be2";break;case"darkviolet":e="#9400d3";break;case"darkorchid":e="#9932cc";break;case"darkmagenta":e="#8b008b";break;case"purple":e="#800080";break;case"indigo":e="#4b0082";break;case"slateblue":e="#6a5acd";break;case"darkslateblue":e="#483d8b";break;case"greenyellow":e="#adff2f";break;case"chartreuse":e="#7fff00";break;case"lawngreen":e="#7cfc00";break;case"lime":e="#00ff00";break;case"limegreen":e="#32cd32";break;case"palegreen":e="#98fb98";break;case"lightgreen":e="#90ee90";break;case"mediumspringgreen":e="#00fa9a";break;case"springgreen":e="#00ff7f";break;case"mediumseagreen":e="#3cb371";break;case"seagreen":e="#2e8b57";break;case"forestgreen":e="#228b22";break;case"green":e="#008000";break;case"darkgreen":e="#006400";break;case"yellowgreen":e="#9acd32";break;case"olivedrab":e="#6b8e23";break;case"olive":e="#808000";break;case"darkolivegreen":e="#556b2f";break;case"mediumaquamarine":e="#66cdaa";break;case"darkseagreen":e="#8fbc8b";break;case"lightseagreen":e="#20b2aa";break;case"darkcyan":e="#008b8b";break;case"teal":e="#008080";break;case"aqua":case"cyan":e="#00ffff";break;case"lightcyan":e="#e0ffff";break;case"paleturquoise":e="#afeeee";break;case"aquamarine":e="#7fffd4";break;case"turquoise":e="#40e0d0";break;case"mediumturquoise":e="#48d1cc";break;case"darkturquoise":e="#00ced1";break;case"cadetblue":e="#5f9ea0";break;case"steelblue":e="#4682b4";break;case"lightsteelblue":e="#b0c4de";break;case"powderblue":e="#b0e0e6";break;case"lightblue":e="#add8e6";break;case"skyblue":e="#87ceeb";break;case"lightskyblue":e="#87cefa";break;case"deepskyblue":e="#00bfff";break;case"dodgerblue":e="#1e90ff";break;case"cornflowerblue":e="#6495ed";break;case"mediumslateblue":e="#7b68ee";break;case"royalblue":e="#4169e1";break;case"blue":e="#0000ff";break;case"mediumblue":e="#0000cd";break;case"darkblue":e="#00008b";break;case"navy":e="#000080";break;case"midnightblue":e="#191970";break;case"cornsilk":e="#fff8dc";break;case"blanchedalmond":e="#ffebcd";break;case"bisque":e="#ffe4c4";break;case"navajowhite":e="#ffdead";break;case"wheat":e="#f5deb3";break;case"burlywood":e="#deb887";break;case"tan":e="#d2b48c";break;case"rosybrown":e="#bc8f8f";break;case"sandybrown":e="#f4a460";break;case"goldenrod":e="#daa520";break;case"darkgoldenrod":e="#b8860b";break;case"peru":e="#cd853f";break;case"chocolate":e="#d2691e";break;case"saddlebrown":e="#8b4513";break;case"sienna":e="#a0522d";break;case"brown":e="#a52a2a";break;case"maroon":e="#800000";break;case"white":e="#ffffff";break;case"snow":e="#fffafa";break;case"honeydew":e="#f0fff0";break;case"mintcream":e="#f5fffa";break;case"azure":e="#f0ffff";break;case"aliceblue":e="#f0f8ff";break;case"ghostwhite":e="#f8f8ff";break;case"whitesmoke":e="#f5f5f5";break;case"seashell":e="#fff5ee";break;case"beige":e="#f5f5dc";break;case"oldlace":e="#fdf5e6";break;case"floralwhite":e="#fffaf0";break;case"ivory":e="#fffff0";break;case"antiquewhite":e="#faebd7";break;case"linen":e="#faf0e6";break;case"lavenderblush":e="#fff0f5";break;case"mistyrose":e="#ffe4e1";break;case"gainsboro":e="#dcdcdc";break;case"lightgray":e="#d3d3d3";break;case"silver":e="#c0c0c0";break;case"darkgray":e="#a9a9a9";break;case"gray":e="#808080";break;case"dimgray":e="#696969";break;case"lightslategray":e="#778899";break;case"slategray":e="#708090";break;case"darkslategray":e="#2f4f4f";break;default:e="#000000"}return e},f.QCELL.BasicQCELL.prototype._htmlDownload=function(t){var e=f._.clone(this);return void 0!==t.progressui&&!0===t.progressui&&e._showProgressUI(t.progressui),!(f.$.browser.msie&&f.$.browser.version<10)&&(!(!e._htmlDownload_checkRequiredProps(t)||!e._excelDownload_checkValidationOfProps(t))&&e._htmlDownloadLOC(t))},f.QCELL.BasicQCELL.prototype._htmlDownload_checkRequiredProps=function(t){var e=!0;if(f._.isObject(t)&&!1===f._.isArray(t)){for(var i,r=0,s=(i=["filename"]).length;r<s;r++){var a=i[r];if(void 0===t[a]){f.QCELL.log("err","QCELL.BasicQCELL._htmlDownload_checkRequiredProps",'Please check "'+a+'" property.'),e=!1;break}}i.RT_clear(),i=null}else f.QCELL.log("err","QCELL.BasicQCELL._htmlDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},f.QCELL.BasicQCELL.prototype._htmlDownloadLOC=function(t){var e=this.attr("id")+"._htmlDownloadLOC";try{var i=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".html",r=t.filename+i,s=[],a=[],o=[],n=this._exportCellInfo(t),l=!1!==f._.isUndefined(t.delColumns)&&!1!==f._.isUndefined(t.addColumns);if(void 0!==t.totaldata&&f._.isBoolean(t.totaldata)&&t.totaldata&&(n.data.data=f._.clone(this.attr("data").input)),void 0!==t.headershow&&f._.isBoolean(t.headershow)&&t.headershow){if(a=this._excelMerge(n.header,"header",!1),o=this._excelMerge(n.data,"data",l),s=this._unionMergeInfo(n.header.title.length,a,o),!0===t.export)return this._exportToHtml(n,r,s,t);this._exportToHtml(n,r,s,t)}else{if(s=this._excelMerge(n.data,"data",l,l),!0===t.export)return this._exportToHtml(n,r,s,t);this._exportToHtml(n,r,s,t)}return void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._exportToHtml=function(t,e,i,r){var s=this.attr("id")+"._exportToHtml";try{r.headershow=!0;var a,n,l=this._SetWorkbook(t,i,r),c=d.write(l,{charset:"utf-8",bookType:"html",type:"string",filename:e,cellDates:!0,cellStyles:!0}),h=this,u=f.$.parseHTML(c,!0),p=f.$(u),g="",_="";p.each((function(){if(f.$(this).is("title"))f.$(this).text(e.replace(".html","")),g=f.$(this);else if(f.$(this).is("table")){var i=t.header.title.length,r=f.$(this).find("tr"),s=h.attr("rowheight"),o=t.style,l=function(e,i){var r=parseInt(i.getAttribute("data-row")),a=f.$(i);f._.isEmpty(o[e])||f._.isUndefined(o[e].data)||a.css(o[e].data.css),a.css(h.getCellStyle(r,e)),a.css("width",t.widths[e]),a.css("height",s.data)},c=function(e,i){var r=parseInt(i.getAttribute("data-row")),a=f.$(i);a.removeAttr("style"),a.addClass("rt-qc-header rt-qc-th"),f._.isEmpty(o[e])||f._.isUndefined(o[e].header)||a.css(o[e].header.css),a.css(h.getCellStyle(r,e)),a.css("height",s.header),a.css("width",t.widths[e])};for(a=0;a<r.length;a++)n=f.$(r[a]),f.$(n).children("td").each(l);for(a=0;a<i;a++)(n=f.$(r[a])).removeClass("rt-qc-cell"),f.$(n).children("td").each(c);_=f.$(this)}}));var C=g.html(),L=c.indexOf("<title>"),m=c.indexOf("</title>"),E=c.substring(0,L+7),v=c.substring(m);c=E.concat(C,v);var b=_.html(),y=c.indexOf("<table"),w=c.indexOf("</table>"),x=c.substring(0,y+53),Q=c.substring(w);c=x.concat(b,Q);0;var k=c.indexOf("</head>"),T=c.substring(0,k),R=c.substring(k);return c=T.concat("<style>body{font-family: NanumGothic, Dotum, sans-serif !important; background-color: #fff;} .rt-qc-table, .rt-qc-cell {border-width: 1px; border-style: solid; border-color: #d3d5df; border-collapse: collapse; background-color: #fff;} .rt-qc-table {border-spacing: 0px; } .rt-qc-cell {padding: 0px; border-spacing: 0px; font-family: NanumGothic, Dotum, sans-serif !important; } .rt-qc-header {text-align: center; font-weight: bold; background-color: #7b7d87; border-color: #93959f; color: #fff;} .rt-qc-cell {font-size: 13px; } </style>",R),!0===r.export?c:((0,o.saveAs)(new Blob([c],{type:"text/html"}),e),!0)}catch(t){return f.QCELL.log("err",s,t.message),!1}},f.QCELL.BasicQCELL.prototype._pdfDownload=function(t){var e=f._.clone(this);setTimeout((function(){e._showProgressUI(!0)}),0),setTimeout((function(){return!(f.$.browser.msie&&f.$.browser.version<10)&&(!(!e._pdfDownload_checkRequiredProps(t)||!e._excelDownload_checkValidationOfProps(t))&&e._pdfDownloadLOC(t))}),300)},f.QCELL.BasicQCELL.prototype._pdfDownload_checkRequiredProps=function(t){var e=!0;if(f._.isObject(t)&&!1===f._.isArray(t)){for(var i,r=0,s=(i=["filename"]).length;r<s;r++){var a=i[r];if(void 0===t[a]){f.QCELL.log("err","QCELL.BasicQCELL._pdfDownload_checkRequiredProps",'Please check "'+a+'" property.'),e=!1;break}}i.RT_clear(),i=null}else f.QCELL.log("err","QCELL.BasicQCELL._pdfDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},f.QCELL.BasicQCELL.prototype._pdfDownloadLOC=function(t){var e=this.attr("id")+"._pdfDownloadLOC";try{var i=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".pdf",r=t.filename+i,s=[],a=[],o=[],n=this._exportCellInfo(t),l=!1!==f._.isUndefined(t.delColumns)&&!1!==f._.isUndefined(t.addColumns);return void 0!==t.totaldata&&f._.isBoolean(t.totaldata)&&t.totaldata&&(n.data.data=f._.clone(this.attr("data").input)),void 0!==t.headershow&&f._.isBoolean(t.headershow)&&t.headershow?(a=this._excelMerge(n.header,"header",!1),o=this._excelMerge(n.data,"data",l),s=this._unionMergeInfo(n.header.title.length,a,o),this._exportToPDF(n,r,s,t)):(s=this._excelMerge(n.data,"data",l),this._exportToPDF(n,r,s,t)),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._exportToPDF=function(t,e,i,r){var s,a=this.attr("id")+"._exportToPDF";try{r.headershow=!0;var o,n,l=this._SetWorkbook(t,i,r),c=d.write(l,{charset:"utf-8",bookType:"html",type:"string",filename:e,cellDates:!0,cellStyles:!0}),h=this,u=f.$.parseHTML(c,!0),p=f.$(u),g="",_="";p.each((function(){if(f.$(this).is("title"))f.$(this).text(e.replace(".html","")),g=f.$(this);else if(f.$(this).is("table")){var i=t.header.title.length,r=f.$(this).find("tr"),s=h.attr("rowheight"),a=t.style,l=function(e,i){var r=parseInt(i.getAttribute("data-row"));f._.isEmpty(a[e])||f._.isUndefined(a[e].data)||f.$(i).css(a[e].data.css),f.$(i).css(h.getCellStyle(r,e)),f.$(i).css("width",t.widths[e]),f.$(i).css("height",s.data)},c=function(e,i){var r=parseInt(i.getAttribute("data-row"));f.$(i).removeAttr("style"),f.$(i).addClass("rt-qc-th"),f._.isEmpty(a[e])||f._.isUndefined(a[e].header)||f.$(i).css(a[e].header.css),f.$(i).css(h.getCellStyle(r,e)),f.$(i).css("height",s.header),f.$(i).css("width",t.widths[e])};for(o=0;o<r.length;o++)n=f.$(r[o]),f.$(n).children("td").each(l);for(o=0;o<i;o++)(n=f.$(r[o])).addClass("rt-qc-header"),f.$(n).children("td").each(c);_=f.$(this)}}));var C=g.html(),L=c.indexOf("<title>"),m=c.indexOf("</title>"),E=c.substring(0,L+7),v=c.substring(m);c=E.concat(C,v);var b=_.html(),y=c.indexOf("<table"),w=c.indexOf("</table>"),x=c.substring(0,y+53),Q=c.substring(w);c=x.concat(b,Q);0;var k=c.indexOf("</head>"),T=c.substring(0,k),R=c.substring(k);c=T.concat("<style>html, body{ background: #fff; background-color: #fff; margin: 0; padding: 0;}body{font-family: NanumGothic, Dotum, sans-serif !important;} .rt-qc-table {margin: auto; } .rt-qc-table, .rt-qc-cell {border-width: 1px; border-style: solid; border-color: #d3d5df; border-collapse: collapse;} .rt-qc-table {border-spacing: 0px; } .rt-qc-cell {padding: 0px; border-spacing: 0px; font-family: NanumGothic, Dotum, sans-serif !important; } .rt-qc-header {text-align: center; font-weight: bold; background-color: #7b7d87; border-color: #93959f; color: #ffffff;} .rt-qc-cell {font-size: 13px;} .rt-qc-td {background-color: #fff; color: #000; } .rt-qc-th {background-color: #7b7d87 !important; color: #fff !important;} </style>",R);var A=f.$(c).filter("#rt-qc-tbl"),S=f.$('<div id="editor"></div>');S.css({display:"none"}),S.append(A),f.$(document.body).append(S);var O="rt-qc-ifrm",D=document.createElement("iframe");D.setAttribute("frameborder","0"),D.style.width="100%",D.style.height="100%",D.style.visibility="hidden",D.id=O,document.body.appendChild(D);var I=document.getElementById(O);(I=I.contentWindow||I.contentDocument.document||I.contentDocument).document.open(),I.document.write(c),I.document.close(),f.$("#"+O).load((function(){window.html2canvas(f.$("#"+O).contents().find("body"),{scale:3,allowTaint:!1,logging:!1,background:"#fff",onrendered:function(t){t.style.background="#FFFFFF";var i=t.toDataURL("image/jpeg",1),r=210,s=296.94,a=t.height*r/t.width,o=a,n=new window.jsPDF({orientation:"p",unit:"mm",format:"a4",compress:!0}),l=0;for(n.addImage(i,"JPEG",0,l,r,a,"","FAST"),o-=s;o>=20;)l=o-a,n.addPage(),n.addImage(i,"JPEG",0,l,r,a,"","FAST"),o-=s;n.save(e),setTimeout((function(){f.$(S).remove(),f.$("#"+O).remove()}),1e3)}})})),s=!0}catch(t){f.QCELL.log("err",a,t.message),s=!1}finally{this._showProgressUI(!1)}return s},f.QCELL.BasicQCELL.prototype._txtDownload=function(t){var e=f._.clone(this);void 0!==t.progressui&&!0===t.progressui&&setTimeout((function(){e._showProgressUI(!0)}),0),setTimeout((function(){return!(f.$.browser.msie&&f.$.browser.version<10)&&(!!e._txtDownload_checkRequiredProps(t)&&e._txtDownloadLOC(t))}),300)},f.QCELL.BasicQCELL.prototype._txtDownload_checkRequiredProps=function(t){var e=!0;if(f._.isObject(t)&&!1===f._.isArray(t)){for(var i,r=0,s=(i=["filename"]).length;r<s;r++){var a=i[r];if(void 0===t[a]){f.QCELL.log("err","QCELL.BasicQCELL._txtDownload_checkRequiredProps",'Please check "'+a+'" property.'),e=!1;break}}i.RT_clear(),i=null}else f.QCELL.log("err","QCELL.BasicQCELL._txtDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},f.QCELL.BasicQCELL.prototype._txtDownloadLOC=function(t){var e=this.attr("id")+"._txtDownloadLOC";try{var i,r,s,a,n,l=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".txt",c=t.filename+l,h=void 0===t.colsep?",":t.colsep,u=void 0===t.rowsep?"\n":t.rowsep,d=void 0!==t.headershow&&t.headershow,p=void 0!==t.label&&t.label,g=t.addColumns,_="",C="";if(d)for(i=0;i<this.getRows("header");i++){if(C="",!0===t.usesequence)C+=void 0===t.sequencetitle?" ":t.sequencetitle;for(r=this.getCols("header");r<this.getCols();r++){if(void 0!==g&&f._.isArray(g)){for(a="",n=0;n<g.length;n++)if(s=g[n],r===Number(s.position)){""!==C&&(C+=h),a+=s.title[i];break}C+=a}""!==C&&(C+=h),C+=this._cellValue(i,r)}if(void 0!==g&&f._.isArray(g)){for(a="",n=0;n<g.length;n++)s=g[n],this.getCols()===Number(s.position)&&(""!==C&&(C+=h),a+=s.title[i]);C+=a}""!==(_+=C)&&(_+=u)}for(i=this.getRows("header");i<this.getRows();i++){C="";var L=this.getRowData(i);for(!0===t.usesequence&&(!0===L.rt_qc_fbrd?C+=void 0===L.rt_qc_seq?" ":L.rt_qc_seq:C+=i),r=this.getCols("header");r<this.getCols();r++){if(void 0!==g&&f._.isArray(g)){for(a="",n=0;n<g.length;n++)if(s=g[n],r===Number(s.position)){""!==C&&(C+=h),a+=void 0===this.getCellDataEx(i,s.key)?"":this.getCellDataEx(i,s.key);break}C+=a}if(""!==C&&(C+=h),!0===L.rt_qc_fbrd)C+=void 0===this.getCellData(i,r)?"":this.getCellData(i,r);else if(!0===t.usehtmltype&&"html"===this._getColType(r)){var m,E=this._getColHtml(r);if(m=this._cellValue(i,r),m=this._showDataFormat(i,r,m),f._.isFunction(E.data)){var v=E.data(this,i,r,!0===f._.isUndefined(m)?"":m,this.getRowData(i,r),!0);f._.isString(v)?C+=v:C+=" "}else C+=m}else C+=!0===p?void 0===this._getCellLabel(i,r)?"":this._getCellLabel(i,r):void 0===this.getCellData(i,r)?"":this.getCellData(i,r)}if(void 0!==g&&f._.isArray(g)){for(a="",n=0;n<g.length;n++)s=g[n],this.getCols()===Number(s.position)&&(""!==C&&(C+=h),a+=void 0===this.getCellDataEx(i,s.key)?"":this.getCellDataEx(i,s.key));C+=a}""!==(_+=C)&&(_+=u)}return void 0!==t.footer&&f._.isString(t.footer)&&(_+=t.footer+u),(0,o.saveAs)(new Blob([_],{type:"text/txt"}),c),void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._createDataIndexPool=function(){var t=this,e=f._.filter(f._.range(0,this.attr("cols")),(function(e){return t._getQCellCol(e).attr("filter")}));e.length>0&&this._createDataIndex(e),null!==this.attr("additionaldataindex")&&this._createDataIndexEx(this.attr("additionaldataindex"))},f.QCELL.BasicQCELL.prototype._createDataIndex=function(t){var e=this.attr("data").input,i=this.attr("colids"),s=this.attr("colkeys"),a=this.attr("dataindexpool"),o=this;f._.each(t,(function(t){var n,l=i[t],c=s[t];"string"===o._getQCellCol(Number(t)).attr("datatype")&&(a.containsKey(l)?(n=a.get(l)).clear():(n=new r._QHashtable,a.put(l,n)),f._.each(e,(function(t,e){var i=t[c];null==i&&(i=""),!1===n.containsKey(i)&&n.put(i,new r._QHashSet),n.get(i).add(e)})))}))},f.QCELL.BasicQCELL.prototype._createDataIndexEx=function(t){var e=this.attr("data").input,i=this.attr("dataindexpool"),s=0;f._.each(t,(function(a){var o,n=t[s],l=t[s];s++,i.containsKey(n)?(o=i.get(n)).clear():(o=new r._QHashtable,i.put(n,o)),f._.each(e,(function(t,e){var i=t[l];null==i&&(i=""),!1===o.containsKey(i)&&o.put(i,new r._QHashSet),o.get(i).add(e)}))}))},f.QCELL.BasicQCELL.prototype._getColFillteredEx=function(t){if(f._.isNumber(t))return this._getColFilltered(t);var e=this.attr("_filterprev");if(null===e&&(e=new r._QHashtable,this.attr("_filterprev",e,"object")),null===e.get(t)){var i=this.attr("additionaldataindex");if(null==i)return;for(var s=0;s<i.length;s++)if(i[s]===t){e.put(t,{});break}}return e.get(t)},f.QCELL.BasicQCELL.prototype._setColFillteredEx=function(t,e){if(f._.isNumber(t))this._setColFilltered(t,e);else{var i=this.attr("_filterprev");null===i&&(i=new r._QHashtable,this.attr("_filterprev",i,"object")),i.put(t,e)}},f.QCELL.BasicQCELL.prototype._resetFilter=function(t){if(void 0===t){var e,i=this.attr("headercols"),r=this.attr("cols"),s=this.attr("_filterprev"),a=null!==s?s.keys():[];for(e=i;e<r;e++)this._getColFillteredEx(e)&&this._setColFillteredEx(e,null);for(e=0;e<a.length;e++)this._setColFillteredEx(a[e],null);return this._doFiltering(),!0}return!!this._getColFillteredEx(t)&&(this._setColFillteredEx(t,null),this._doFiltering(),!0)},f.QCELL.BasicQCELL.prototype._isUserFilter=function(t,e){var i=!1;if(f._.isString(t)){if(f._.isArray(e)){if(0===e.length)return 0;for(var r=0;r<e.length;r++)if(!f._.isString(e[r]))return 0;return 1}if(f._.isObject(e)){if(void 0!==e.key1&&void 0!==e.op1)return-1;if(void 0===e.value1&&void 0===e.comparison1){for(var s in e)i=!0;return!0===i?1:0}return void 0===e.value1||void 0===e.comparison1?0:-1}}return 0},f.QCELL.BasicQCELL.prototype._filter=function(t,e){var i,r={};if(this._isColFillteredEx(t)){if(f._.isNumber(t)&&"string"===this._getQCellCol(t).attr("datatype")||1===this._isUserFilter(t,e)){for(i=0;i<e.length;i++){if(!f._.isString(e[i]))return!1;r[e[i]]=!0}return this._setColFillteredEx(t,r),this._doFiltering(),!0}if(f._.isObject(e)){if(void 0===e.value1)return!1;if(void 0===e.comparison1)return!1;switch(e.comparison1){case">":case"<":case">=":case"<=":case"==":case"!=":break;default:return!1}if(void 0!==e.logical){if("and"!==e.logical&&"or"!==e.logical)return!1;if(void 0===e.value2)return!1;if(void 0===e.comparison2)return!1;switch(e.comparison2){case">":case"<":case">=":case"<=":case"==":case"!=":break;default:return!1}r.key1=e.value1,r.op1=e.comparison1,r.logical=e.logical,r.key2=e.value2,r.op2=e.comparison2}else r.key1=e.value1,r.op1=e.comparison1;return this._setColFillteredEx(t,r),this._doFiltering(),!0}}return!1},f.QCELL.BasicQCELL.prototype._doFiltering=function(){var t,e,i,r,s=this.attr("cols"),a=this.attr("headercols"),o={},n=0,l=[],c=[];for(this.attr("_filtering",!1,"boolean"),i=a;i<s;i++)"string"===this._getQCellCol(i).attr("datatype")?null!==(e=this._getColFilltered(i))?(this._setColStringFilter(i,e,o),c.push({col:i,state:!0}),n++):c.push({col:i,state:!1}):null!==(e=this._getColFilltered(i))?(this._setColNumberFilter(i,e,o),n++,c.push({col:i,state:!0})):c.push({col:i,state:!1});var h=this.attr("_filterprev"),u=null!==h?h.keys():[];for(i=0;i<u.length;i++){var d=this._getColFillteredEx(u[i]);1===this._isUserFilter(u[i],d)?(this._setColStringFilter(u[i],d,o),n++):-1===this._isUserFilter(u[i],d)&&(this._setColNumberFilter(u[i],d,o),n++)}if(n){var p=this.attr("data").input;for(t in o)if(o[t]===n){var g=p[Number(t)];if(void 0===g)continue;g=f._.clone(g),l.push(g)}this._setCurrentData(l,!0),this.attr("_filtering",!0,"boolean"),!1===f._.isEmpty(this.attr("paginationinfo"))&&void 0!==(r=this.attr("paginationinfo"))&&f._.isObject(r)&&(r.currentData=l,this._movePage(1))}else!1===f._.isEmpty(this.attr("paginationinfo"))&&void 0!==(r=this.attr("paginationinfo"))&&f._.isObject(r)&&(r.currentData=[]),this._setData(this.attr("data").input);for(i=0;i<c.length;i++)this._changeFilterIcon(c[i].col,c[i].state);!0===this.attr("hierachystate").grouped&&this._setHierachy(this.attr("_heirachyinfo"))},f.QCELL.BasicQCELL.prototype._changeFilterIcon=function(t,e){if(this._getQCellCol(t).attr("filter")){var i=f.QCELL.def.css,r=this._getCellDOM(this.attr("headerrows")-1,t);if(null==r)return;var s=this._getQCellCol(t).attr("colfilterarea");if(null===s&&(this._getQCellCol(t).attr("colfilterarea",this.attr("filterarea").clone(!0),"jquery"),s=this._getQCellCol(t).attr("colfilterarea")),s.hasClass(i.FILTER_AREA_ADJUST)&&e)return;if(s.hasClass(i.FILTER_AREA)&&!1===e)return;e?(s.removeClass(i.FILTER_AREA).removeClass(i.FILTER_AREA_ADJUST),s.addClass(i.FILTER_AREA_ADJUST)):(s.removeClass(i.FILTER_AREA).removeClass(i.FILTER_AREA_ADJUST),s.addClass(i.FILTER_AREA))}},f.QCELL.BasicQCELL.prototype._setColStringFilter=function(t,e,i){var r,s=this,a={};for(r in f._.each(e,(function(e,i){if(!1!==e){var r=!0===f._.isString(t)?t:s._getColID(t),o=s.attr("dataindexpool").get(r).get(i);null!==o&&o.values(!0).forEach((function(t){a[t.toString()]=1}))}})),a)i[r]=void 0===i[r]?1:i[r]+1},f.QCELL.BasicQCELL.prototype._setColNumberFilter=function(t,e,i){var r,s={},a={};if(this._processNumberFilter(t,e.key1,e.op1,a),void 0===e.logical)s=a;else if(this._processNumberFilter(t,e.key2,e.op2,a),"and"===e.logical)for(r in a)a[r]>1&&(s[r]=1);else for(r in a)s[r]=1;for(r in s)i[r]=void 0===i[r]?1:i[r]+1},f.QCELL.BasicQCELL.prototype._processNumberFilter=function(t,e,i,r){var s,a,o=!0===f._.isString(t)?t:this._getKeyOfCol(t),n=this.attr("data").input;for(s=0;s<n.length;s++)if(void 0!==(a=n[s])[o]&&null!==a[o]&&!isNaN(a[o]))switch(i){case">":a[o]>e&&this._makeNumberFilterSub(s,r);break;case"<":a[o]<e&&this._makeNumberFilterSub(s,r);break;case">=":a[o]>=e&&this._makeNumberFilterSub(s,r);break;case"<=":a[o]<=e&&this._makeNumberFilterSub(s,r);break;case"==":a[o]===e&&this._makeNumberFilterSub(s,r);break;case"!=":a[o]!==e&&this._makeNumberFilterSub(s,r)}},f.QCELL.BasicQCELL.prototype._makeNumberFilterSub=function(t,e){var i=t.toString();e[i]=void 0===e[i]?1:e[i]+1},f.QCELL.BasicQCELL._createFilterAreaSub=function(t){var e=t.target,i=t.data.target,r=f.QCELL.def.css,s=parseInt(e.parentNode.getAttribute("data-col")),a=f.$(i.attr("heFilterDiv").cloneNode()).addClass(r.FILTER_UI_AREA);i.attr("filteruivisible")&&i._removeFilterUIArea(),"string"===i._getQCellCol(s).attr("datatype")?i._createStringFilterUI(s,a):i._createNumberFilterUI(s,a),i._showFilterUIArea(e,s)},f.QCELL.BasicQCELL.prototype._getFilterArea=function(t){if(null===this.attr("filterarea")){var e=document.createElement("div");this.attr("filterarea",this._createFilterArea(e),"jquery")}return null===this._getQCellCol(t).attr("colfilterarea")&&this._getQCellCol(t).attr("colfilterarea",this.attr("filterarea").clone(!0),"jquery"),this._getQCellCol(t).attr("colfilterarea").get(0)},f.QCELL.BasicQCELL.prototype._createFilterArea=function(t){var e=f.QCELL.def.css;return this.attr("heFilterDiv",t,"element"),f.$(t.cloneNode()).addClass(e.FILTER_AREA).on("mousedown",this.attr("eventparam"),f.QCELL.BasicQCELL._createFilterAreaSub)},f.QCELL.BasicQCELL.prototype._createStringFilterUI=function(t,e){var i,r,s=f.QCELL.def.css,a=f.$(document.createElement("div")),o=f.$(document.createElement("button")).addClass(s.FILTER_UI_BTN),n=f.$(document.createElement("span")),l=this.attr("headertext")[t][this.attr("headertext")[t].length-1],c=0===this.attr("filteruiwidth")?"229px":this.attr("filteruiwidth")+"px";e.css({display:"none",height:"290px",width:c}),(i=a.clone()).addClass(s.FILTER_TITLE_AREA),n.clone().text(l).addClass(s.FILTER_TITLE_SPAN).appendTo(i),a.clone().addClass(s.FILTER_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("filteruivisible")&&e._removeFilterUIArea()})).appendTo(i),i.appendTo(e),a.clone().attr({id:"filter-dataindex-"+this.attr("id")}).css({width:"100%",height:"210px"}).appendTo(e),r=a.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"});var h="selectmenu"===this._getColType(t);n.clone().text(f.QCELL.def.resource.adjust).appendTo(o.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var i,r=e.data.target,s=f.QCELL.getInstance("filter-dataindex"),a=[],o={};for(i=1;i<s.attr("rows");i++)if(s._cellValue(i,0))if(h){var n=r._getDataByLabel(t,s._cellValue(i,1));a.push(n),o[n]=!0}else a.push(s._cellValue(i,1)),o[s._cellValue(i,1)]=!0;else o[s._cellValue(i,1)]=!1;r._setColFilltered(t,o),r._removeFilterUIArea(),r._doFiltering()})).appendTo(r)),n.clone().text(f.QCELL.def.resource.reset).appendTo(o.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){var i=e.data.target;i._setColFilltered(t,null),i._removeFilterUIArea(),i._doFiltering()})).appendTo(r)),r.appendTo(e),this.attr("filteruiarea",e,"jquery")},f.QCELL.BasicQCELL.prototype._createNumberFilterUI=function(t,e){var i,r,s,a,o,n=f.QCELL.def.css,l=f.$(document.createElement("div")),c=f.$(document.createElement("button")).addClass(n.FILTER_UI_BTN),h=f.$(document.createElement("span")),u=f.$(document.createElement("select")),d=f.$(document.createElement("option")),p=f.$(document.createElement("input")),g=this.attr("headertext")[t][this.attr("headertext")[t].length-1],_=this._getColFilltered(t);p.addClass(n.EXCLUDE_DRAGABLE),u.addClass(n.EXCLUDE_DRAGABLE),e.css({display:"none",width:"290px",height:"100px"}),(i=l.clone()).addClass(n.FILTER_TITLE_AREA),h.clone().text(g).addClass(n.FILTER_TITLE_SPAN).appendTo(i),l.clone().addClass(n.FILTER_UI_CLOSE+" "+n.EXCLUDE_DRAGABLE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("filteruivisible")&&e._removeFilterUIArea()})).appendTo(i),i.appendTo(e),r=l.clone().attr({id:"filter-input-area-"+this.attr("id")}),s=l.clone().attr({id:"filter-input-form1-"+this.attr("id")});var C=p.clone();C.attr({id:"filter-input1-"+this.attr("id")}).css({width:"120px",margin:"0px 5px 0px 0px"}).appendTo(s),d.clone().val(">").text("크다(>)").appendTo(u),d.clone().val("<").text("작다(<)").appendTo(u),d.clone().val(">=").text("크거나 같다(>=)").appendTo(u),d.clone().val("<=").text("작거나 같다(<=)").appendTo(u),d.clone().val("==").text("같다(==)").appendTo(u),d.clone().val("!=").text("같지 않다(!=)").appendTo(u);var L=u.clone();L.attr({id:"filter-select1-"+this.attr("id")}).css({height:"20px",margin:"0px 10px 0px 0px"}).appendTo(s),s.appendTo(r);var m=l.clone().attr({id:"filter-input-form2-"+this.attr("id")}),E=p.clone();E.attr({id:"filter-input2-"+this.attr("id")}).css({width:"120px",margin:"0px 5px 0px 0px"}).appendTo(m);var v=u.clone();v.attr({id:"filter-select2-"+this.attr("id")}).css({height:"20px",margin:"0px 10px 0px 0px"}).appendTo(m),e.css({height:"150px"}),a=l.clone().attr({id:"filter-radio-form-"+this.attr("id")}).css({margin:"5px 0px 5px 0px"});var b=p.clone();b.attr({type:"radio",name:"filter-operator-"+this.attr("id"),checked:"checked"}).val("and").appendTo(a),h.clone().text("and").css({"font-size":"12px"}).appendTo(a);var y=p.clone();y.attr({type:"radio",name:"filter-operator-"+this.attr("id")}).val("or").appendTo(a),h.clone().text("or").css({"font-size":"12px"}).appendTo(a),a.appendTo(r),m.appendTo(r),s.find("div").remove(),m.find("div").remove();var w=l.clone();w.addClass(n.FILTER_UI_ADDOPERATOR).on("click",this.attr("eventparam"),(function(t){var i=t.data.target;!0===i.attr("isNumberFilterExtened")?(a.hide(),m.hide(),e.css({height:"100px"}),i.attr("isNumberFilterExtened",!1,"boolean"),w.removeClass(n.FILTER_UI_ADDOPERATOR),w.removeClass(n.FILTER_UI_ADDOPERATOR_CLOSE),w.addClass(n.FILTER_UI_ADDOPERATOR)):(a.show(),m.show(),e.css({height:"150px"}),i.attr("isNumberFilterExtened",!0,"boolean"),w.removeClass(n.FILTER_UI_ADDOPERATOR),w.removeClass(n.FILTER_UI_ADDOPERATOR_CLOSE),w.addClass(n.FILTER_UI_ADDOPERATOR_CLOSE))})).appendTo(s),null===_?(a.hide(),m.hide(),e.css({height:"100px"})):null!==_&&(C.val(_.key1),L.val(_.op1),void 0!==_.logical?(E.val(_.key2),v.val(_.op2),"and"===_.logical?b.prop("checked",!0):y.prop("checked",!0),w.removeClass(n.FILTER_UI_ADDOPERATOR).addClass(n.FILTER_UI_ADDOPERATOR_CLOSE),this.attr("isNumberFilterExtened",!0,"boolean")):(a.hide(),m.hide(),e.css({height:"100px"}),this.attr("isNumberFilterExtened",!1,"boolean"))),r.appendTo(e),o=l.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"}),h.clone().text(f.QCELL.def.resource.adjust).appendTo(c.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var i,r,s,a=e.data.target,o=f.$("#filter-input1-"+a.attr("id")),n=f.$("#filter-select1-"+a.attr("id"));if(isNaN(Number(o.val()))||""===o.val())o.focus();else{var l={key1:Number(o.val()),op1:n.val()};if(!0===a.attr("isNumberFilterExtened")){if(r=f.$("#filter-input2-"+a.attr("id")),s=f.$("#filter-select2-"+a.attr("id")),i=f.$(':radio[name="filter-operator-'+a.attr("id")+'"]:checked'),isNaN(Number(r.val())))return void r.focus();l.key2=Number(r.val()),l.op2=s.val(),l.logical=i.val()}a._setColFilltered(t,l),a._removeFilterUIArea(),a._doFiltering()}})).appendTo(o)),h.clone().text(f.QCELL.def.resource.reset).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){var i=e.data.target;i._setColFilltered(t,null),i._removeFilterUIArea(),i._doFiltering()})).appendTo(o)),o.appendTo(e),this.attr("filterinput",C,"jquery"),this.attr("filteruiarea",e,"jquery")},f.QCELL.BasicQCELL.prototype._showFilterUIArea=function(t,e){var i=this.attr("filteruiarea"),r=this.attr("layoutsize").viewport.offsetLeft,s=t.parentNode.offsetLeft+r,a=this._getColWidth(e),o=t.parentNode.offsetTop+8;i.appendTo(this.attr("elementpool").get("container")),i.prop("id",this.attr("id")+"_filterPopup"),f.util._dragElement(this.attr("id")+"_filterPopup"),"none"===i.css("display")&&i.css("display","block"),i.css({left:s+a-1+"px",top:o+"px"});var n="selectmenu"===this._getColType(e),l=this;if("string"===this._getQCellCol(e).attr("datatype")){var c,h=[],u=this._getColFilltered(e);this._createDataIndexPool(),this.attr("dataindexpool").get(this._getColID(e)).each((function(t){var i=null===u||u[t];c={check:i,indexpool:t},n&&(c.data=t,c.indexpool=l._getLabelByData(e,t)),h.push(c)}));var d=f.QCELL.NormalQCELL.create({id:"filter-dataindex",parentid:"filter-dataindex-"+this.attr("id"),rowheight:{header:30,data:30},selectmode:"row",columns:[{title:[""],key:"check",width:"15%",type:"checkbox",options:{wholeselect:!0,disabled:!1}},{title:["색인목록"],key:"indexpool",width:"85%",tooltip:!0}],data:{input:h}});d._createCols(),d._create(),f.QCELL.storage.put("filter-dataindex",d),d.bind("mousedown mousewheel DOMMouseScroll mouseenter mouseleave mousemove click dblclick keydown resize onDrag onDrop",(function(t){t.stopPropagation()}))}else setTimeout((function(){l.attr("filterinput").focus()}),0);this.attr("filteruivisible",!0,"boolean")},f.QCELL.BasicQCELL.prototype._removeFilterUIArea=function(){this.attr("filteruiarea").remove(),this.attr("filteruiarea",null,"jquery"),this.attr("filteruivisible",!1,"boolean"),f.QCELL._deleteInstance("filter-dataindex")},f.QCELL.BasicQCELL.prototype._isColFillteredEx=function(t){if(f._.isNumber(t))return this._getQCellCol(t).attr("filter");var e=this.attr("_filterprev");if(null===e&&(e=new r._QHashtable,this.attr("_filterprev",e,"object")),null===e.get(t)){var i=this.attr("additionaldataindex");if(null==i)return;for(var s=0;s<i.length;s++)if(i[s]===t){e.put(t,{});break}}return e.get(t)},f.QCELL.BasicQCELL.prototype._clearFocus=function(){this._idx("row","focus","previous",-1),this._idx("col","focus","previous",-1),this._idx("row","focus","current",-1),this._idx("col","focus","current",-1),this._clearFocusCSS()},f.QCELL.BasicQCELL.prototype._clearFocusCSS=function(){var t=this.attr("focuscell");if(null===t){var e=this.getIdx("row","focus","previous"),i=this.getIdx("col","focus","previous");-1!==e&&-1!==i&&(t=this._getCellDOM(e,i))}f._.isElement(t)&&this._removeFocusStyleClass(t)},f.QCELL.BasicQCELL.prototype._addFocusStyleClass=function(t){f.util.addClass(t,f.QCELL.def.css.CELL_FOCUS),this.attr("focuscell",t,"element")},f.QCELL.BasicQCELL.prototype._removeFocusStyleClass=function(t){f.util.removeClass(t,f.QCELL.def.css.CELL_FOCUS),this.attr("focuscell",null,"element")},f.QCELL.BasicQCELL.prototype._isFocusRow=function(t){return t===this._idx("row","focus","current")},f.QCELL.BasicQCELL.prototype._isFocusCol=function(t){return t===this._idx("col","focus","current")},f.QCELL.BasicQCELL.prototype._clearGroup=function(){var t=this.attr("groupstate");return!!t.grouped&&(t.grouped=!1,t.showpanel=!1,t.type="normal",t.data=[],t.columnsinfo.clear(),t.nodes.clear(),t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},t.expand=null,t.collapse=null,this._setCurrentData(this.attr("data").input,!1))},f.QCELL.BasicQCELL.prototype._checkValidationOfGroupProps=function(t){return f._.has(t,"columns")&&f._.isArray(t.columns)},f.QCELL.BasicQCELL.prototype._setGroup=function(t){if(this._checkValidationOfGroupProps(t)){var e=this,i=this.attr("groupstate"),r=i.columnsinfo,s=this.attr("headercols");return this.attr("_groupProps",f._.clone(t),"object"),i.grouped=!0,i.showpanel=!(!f._.has(t,"showpanel")||!f._.isBoolean(t.showpanel))&&t.showpanel,i.hidekeydata=!(!f._.has(t,"hidekeydata")||!f._.isBoolean(t.hidekeydata))&&t.hidekeydata,i.type=f._.has(t,"type")&&f._.isString(t.type)&&("normal"===t.type||"tree"===t.type||"step"===t.type||"group"===t.type)?t.type:"normal",i.expand=f._.has(t,"expand")&&f._.isFunction(t.expand)?t.expand:null,i.collapse=f._.has(t,"collapse")&&f._.isFunction(t.collapse)?t.collapse:null,i.presentkey=!(!f._.has(t,"presentkey")||!f._.isBoolean(t.presentkey)),i.leafnodekey=f._.has(t,"leafnodekey")&&f._.isString(t.leafnodekey)?t.leafnodekey:void 0,i.exclude=void 0===t.exclude?[]:t.exclude,f._.has(t,"sort")&&f._.isString(t.sort)?"none"===t.sort?i.sort="none":"asc"===t.sort?i.sort="asc":"desc"===t.sort?i.sort="desc":i.sort="asc":i.sort="asc",f._.each(t.columns,(function(t,a){var o=e._getColsOfKey(t.key),n=o[0],l=o.length>0?e._getColID(n):t.key;o.length>0&&(e._getQCellCol(n).attr("disabled",!0,"boolean"),e._moveCols(n,1,s+a,!0));!1===r.containsKey(l)&&(r.put(l,{header:f._.has(t,"header")&&f._.isObject(t.header)?f._.clone(t.header):{},footer:f._.has(t,"footer")&&f._.isObject(t.footer)?f._.clone(t.footer):{},headerFooterCallback:f._.has(t,"headerFooterCallback")&&f._.isFunction(t.headerFooterCallback)?t.headerFooterCallback:void 0}),"tree"!==i.type&&"step"!==i.type||(r.get(l).expand=!f._.has(t,"expand")||!f._.isBoolean(t.expand)||t.expand))})),e._initColStyles(),f._.each(t.outer,(function(t,e){i.outer={},i.outer.header=f._.clone(t.header),i.outer.footer=f._.clone(t.footer),i.outer.headers=f._.clone(t.headers),i.outer.footers=f._.clone(t.footers),i.outer.outerCallback=f._.has(t,"outerCallback")&&f._.isFunction(t.outerCallback)?t.outerCallback:void 0})),this._initGroup()}return!1},f.QCELL.BasicQCELL.prototype._initGroupData=function(){var t,e,i=[],r=[],s=[],a=[],o=this.attr("groupstate").data,n=this.attr("headerrows"),l=this.attr("groupstate").columnsinfo.keys(!0),c={},h={};for(e=0;e<l.length;e++)c[l[e]]=[],h[l[e]]=[];for(t=0;t<o.length;t++)for(!0===o[t].qc_header&&(i.push(t+n),r.push(o[t].qc_header_nodes)),!0===o[t].qc_footer&&(s.push(t+n),a.push(o[t].qc_footer_nodes)),e=0;e<l.length;e++)!0===o[t]["qc_row_ui_"+l[e]]&&(c[l[e]].push(t+n),h[l[e]].push(o[t]["qc_row_ui_"+l[e]+"_nodes"]));this.attr("groupstate").headerrows=i,this.attr("groupstate").headerrownodes=r,this.attr("groupstate").footerrows=s,this.attr("groupstate").footerrownodes=a,this.attr("groupstate").groupuirows=c,this.attr("groupstate").groupuinodes=h},f.QCELL.BasicQCELL.prototype._initGroup=function(){return this._makeGroupNodes(),!!this._makeGroupData()&&("group"===this.attr("groupstate").type&&(this._initGroupData(),this.merge("data","group")),this._setCurrentData(this.attr("groupstate").data.RT_clone(),!1))},f.QCELL.BasicQCELL.prototype._makeGroupNodes=function(){var t=this.attr("groupstate"),e=t.nodes,i=t.columnsinfo.size();e.clear();for(var r=0,s=this.attr("data").input.length;r<s;r++)for(var a=0;a<i;a++)this._makeGroupNode(null,e,r,0,a);return!0},f.QCELL.BasicQCELL.prototype._makeGroupNode=function(t,e,i,s,a){var o,n=this.attr("groupstate"),l=this.attr("data").input,c=n.columnsinfo,h=c.keys(!0)[s],u=c.size(),d=l[i],p=-1===this._getKeyOfColID(h)?h:this._getKeyOfColID(h),g=d[p],_=n.type;if(o=c.get(h),s===a){var C=!1,L=null;if(C="step"===_?u!==a+1:a!==u-1,e.containsKey(g)){if(L=e.get(g),!C)for(L.data.add(i);null!==L;)L.count+=1,L=L.parent}else if(L={colid:h,isparent:C,colkey:p,level:a,key:g,count:0,header:f._.size(o.header)>0,footer:f._.size(o.footer)>0,headerFooterCallback:o.headerFooterCallback,parent:t,_rowData:d},"tree"!==n.type&&"step"!==n.type&&"group"!==n.type||(L.expand=!f._.has(o,"expand")||"boolean"!=typeof o.expand||o.expand),e.put(g,L),C)L.childnodes=new r._QHashtable;else for(L.data=new r._QHashSet,L.data.add(i);null!==L;)L.count+=1,L=L.parent}else this._makeGroupNode(e.get(g),e.get(g).childnodes,i,s+1,a)},f.QCELL.BasicQCELL.prototype._makeGroupData=function(){var t=this.attr("groupstate");return!!t.grouped&&(t.data=[],t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},f._.isUndefined(t.outer)||f._.isUndefined(t.outer.header)&&f._.isUndefined(t.outer.headers)||this._makeGroupDatumOuterHeader(t.nodes),this._makeGroupDatum(t.nodes),0!==t.nodes.size()||f._.isUndefined(t.outer)||f._.isUndefined(t.outer.header)&&f._.isUndefined(t.outer.footer)&&f._.isUndefined(t.outer.headers)&&f._.isUndefined(t.outer.footers)||this._makeGroupZeroData(),f._.isUndefined(t.outer)||f._.isUndefined(t.outer.footer)&&f._.isUndefined(t.outer.footers)||this._makeGroupDatumOuterFooter(t.nodes),!0)},f.QCELL.BasicQCELL.prototype._makeGroupZeroData=function(){for(var t=this.attr("groupstate"),e=this.attr("data").input,i=0;i<e.length;i++)t.data.push(e[i]);return!0},f.QCELL.BasicQCELL.prototype._makeGroupDatumOuterHeader=function(t,e){var i=this.attr("groupstate");if(f._.isUndefined(i.outer.header)||this._makeGroupDatumOuterHeaderSub(t,e,i.outer.header),!f._.isUndefined(i.outer.headers))for(var r=0;r<i.outer.headers.length;r++)this._makeGroupDatumOuterHeaderSub(t,e,i.outer.headers[r])},f.QCELL.BasicQCELL.prototype._makeGroupDatumOuterHeaderSub=function(t,e,i){var r,s=this,a=this.attr("groupstate"),o=this.attr("data").type,n=this.attr("headerrows"),l=function(t,e){s._setGroupTotalHeaderFooterText(r,t,e,!0)},c=function(t,e){var i=!0;for(var r in t)if(t[r]!==e[r]){i=!1;break}return i},h=!0,u=-1,d="array"===o?[]:{},p={level:"-outer"};if("tree"===a.type||"step"===a.type){for(r=f._.clone(d),f._.each(i,l),h=!0,u=0;u<a.data.length;u++)if(c(a.data[u],r)){h=!1;break}h&&(a.data.push(r),a.headerrows.push(n+a.data.length-1),a.headerrownodes.push(p))}else if("group"===a.type){if(r=f._.clone(d),f._.each(i,l),void 0!==e)for(var g in e)f._.has(r,g)||(r[g]=e[g]);for(r.qc_header=!0,h=!0,u=0;u<a.data.length;u++)if(c(a.data[u],r)){h=!1;break}h&&(a.data.push(r),a.headerrows.push(n+a.data.length-1),a.headerrownodes.push(p))}else{for(r=f._.clone(d),f._.each(i,l),h=!0,u=0;u<a.data.length;u++)if(c(a.data[u],r)){h=!1;break}h&&(a.data.push(r),a.headerrows.push(n+a.data.length-1),a.headerrownodes.push(p))}},f.QCELL.BasicQCELL.prototype._makeGroupDatumOuterFooter=function(t,e){var i=this.attr("groupstate");if(f._.isUndefined(i.outer.footer)||this._makeGroupDatumOuterFooterSub(t,e,i.outer.footer),!f._.isUndefined(i.outer.footers))for(var r=0;r<i.outer.footers.length;r++)this._makeGroupDatumOuterFooterSub(t,e,i.outer.footers[r])},f.QCELL.BasicQCELL.prototype._makeGroupDatumOuterFooterSub=function(t,e,i){var r,s=this,a=this.attr("groupstate"),o=this.attr("data").type,n=this.attr("headerrows"),l=function(t,e){s._setGroupTotalHeaderFooterText(r,t,e,!1)},c="array"===o?[]:{},h={level:"-outer"};if("tree"===a.type||"step"===a.type)r=f._.clone(c),f._.each(i,l),a.data.push(r),a.footerrows.push(n+a.data.length-1),a.footerrownodes.push(h);else if("group"===a.type){if(r=f._.clone(c),f._.each(i,l),void 0!==e)for(var u in e)f._.has(r,u)||(r[u]=e[u]);r.qc_footer=!0,a.data.push(r),a.footerrows.push(n+a.data.length-1),a.footerrownodes.push(h)}else r=f._.clone(c),f._.each(i,l),a.data.push(r),a.footerrows.push(n+a.data.length-1),a.footerrownodes.push(h)},f.QCELL.BasicQCELL.prototype._makeGroupDatum=function(t,e){var i,r=this,s=this.attr("groupstate"),a=s.columnsinfo,o="asc"===s.sort?t.keys().sort():"desc"===s.sort?t.keys().sort().reverse():t.keys(!0),n=this.attr("data").input,l=this.attr("data").type,c=this.attr("headerrows"),h=function(t,e){r._setGroupHeaderFooterText(m,g,t,e,!0)},u=function(t,e){r._setGroupHeaderFooterText(m,g,t,e,!1)},d=function(t){s.data.push(n[t])},p=-1;for(p=0;p<o.length;p++){var g,_="array"===l?[]:{},C=o[p];if(f._.isUndefined(C))break;var L,m=t.get(C),E=m.colid,v=m.isparent,b=1,y=a.get(E);if("tree"===s.type||"step"===s.type){var w=m.parent;for(g=f._.clone(_),s.data.push(g);null!==w;)g[w.colkey]=w.key,w=w.parent,b++;g[m.colkey]=m.key,g._qc_origindata=f._.clone(m._rowData),g._qc_level=b,s.treeuirows.push(c+s.data.length-1),s.treeuirownodes.push(m),m.expand&&(m.header&&(g=f._.clone(_),f._.each(y.header,h),s.data.push(g),s.headerrows.push(c+s.data.length-1),s.headerrownodes.push(m)),v?this._makeGroupDatum(m.childnodes):f._.each(m.data.values(!0),d),m.footer&&(g=f._.clone(_),f._.each(y.footer,u),s.data.push(g),s.footerrows.push(c+s.data.length-1),s.footerrownodes.push(m)))}else if("group"===s.type){if(void 0===e&&(e={}),e[m.colkey]=C,m.header){if(g=f._.clone(_),f._.each(y.header,h),void 0!==e)for(L in e)f._.has(g,L)||(g[L]=e[L]);g.qc_header=!0,g.qc_header_nodes=m,s.data.push(g),s.headerrows.push(c+s.data.length-1),s.headerrownodes.push(m)}if(f._.indexOf(s.groupuirows,c+s.data.length-1,!0)<0&&(void 0===s.groupuirows[m.colkey]&&(s.groupuirows[m.colkey]=[]),void 0===s.groupuinodes[m.colkey]&&(s.groupuinodes[m.colkey]=[]),s.groupuirows[m.colkey].push(c+s.data.length-1),s.groupuinodes[m.colkey].push(m)),v)i=s.data.length,this._makeGroupDatum(m.childnodes,e),s.data[i]["qc_row_ui_"+m.colid]=!0,s.data[i]["qc_row_ui_"+m.colid+"_nodes"]=m;else{if(i=s.data.length,m.expand)f._.each(m.data.values(!0),d);else{var x=[];x.push(m.data.values(!0)[0]),f._.each(x,d)}s.data[i]["qc_row_ui_"+m.colid]=!0,s.data[i]["qc_row_ui_"+m.colid+"_nodes"]=m}if(m.footer){if(g=f._.clone(_),f._.each(y.footer,u),void 0!==e)for(L in e)f._.has(g,L)||(g[L]=e[L]);g.qc_footer=!0,g.qc_footer_nodes=m,s.data.push(g),s.footerrows.push(c+s.data.length-1),s.footerrownodes.push(m)}}else m.header&&(g=f._.clone(_),f._.each(y.header,h),s.data.push(g),s.headerrows.push(c+s.data.length-1),s.headerrownodes.push(m)),v?this._makeGroupDatum(m.childnodes):f._.each(m.data.values(!0),d),m.footer&&(g=f._.clone(_),f._.each(y.footer,u),s.data.push(g),s.footerrows.push(c+s.data.length-1),s.footerrownodes.push(m))}},f.QCELL.BasicQCELL.prototype._getGroupSum=function(t,e){var i=this,r=this.attr("data").input,s=0;return t.isparent?t.childnodes.each((function(t,r){s+=i._getGroupSum(r,e)})):f._.each(t.data.values(),(function(t){s+=r[t][e]})),s},f.QCELL.BasicQCELL.prototype._getGroupCountif=function(t,e,i){var r=this,s=this.attr("data").input,a=0;return t.isparent?t.childnodes.each((function(t,s){a+=r._getGroupCountif(s,e,i)})):f._.each(t.data.values(),(function(t){s[t][e]===i&&(a+=1)})),a},f.QCELL.BasicQCELL.prototype._setGroupTotalHeaderFooterText=function(t,e,i,r,s){var a,o=this,n=[/^childcount\(.*\)$/,/^count\(.*\)$/,/^countif\(.*\)$/,/^groupvalue\(.*\)$/,/^sum\(.*\)$/,/^average\(.*\)$/,/.*\(|\)/gi,/[\"\']/gi,/^[0-9]*$/],l=this.attr("data").type,c=this.attr("data").input,h="",u=null;!1!==s&&(u=this.attr("groupstate").outer.outerCallback),f._.each(e,(function(e){var r,d;if(n[0].test(e))d=0,f._.isFunction(u)&&(d=u(i,d,t)),h+=d;else if(n[1].test(e))d=c.length,f._.isFunction(u)&&(d=u(i,d,t)),h+=d;else if(n[2].test(e)){var p=e.replace(n[6],""),g=f._.map(p.split(","),(function(t){return f.$.trim(t).replace(n[7],"")}));2===g.length&&(r="array"===l&&n[8].test(g[0])?parseInt(g[0]):g[0],d=o._getGroupCountif(a,r,g[1]),f._.isFunction(u)&&(d=u(i,d,t)),h+=d)}else if(n[3].test(e)){if(!1===s)return;var _=Number(e.replace(n[6],""));if(!1===isNaN(_)&&_<=a.level){for(var C=a;_<C.level;)C=C.parent;h+=C.key}}else if(n[4].test(e)||n[5].test(e)){var L=e.replace(n[6],"").replace(n[7],"");r=""===L?i:"array"===l&&n[8].test(L)?parseInt(L):L;for(var m=0,E=0;E<c.length;E++)m+=Number(void 0!==c[E][r]?c[E][r]:0);var v=m,b=o._getColsOfKey(r)[0],y=void 0!==b?o._getColFormat(b):void 0,w=c.length;d=n[5].test(e)?v/w:v,f._.isFunction(u)&&(d=u(i,d,t)),h+=void 0===y?d:o._showDataFormat(0,b,d)}else h+=e})),t[i]=h,!0===r?t.rt_qc_header=!0:!1===r?t.rt_qc_footer=!0:console.log("error")},f.QCELL.BasicQCELL.prototype._setGroupHeaderFooterText=function(t,e,i,r,s){var a=this,o=[/^childcount\(.*\)$/,/^count\(.*\)$/,/^countif\(.*\)$/,/^groupvalue\(.*\)$/,/^sum\(.*\)$/,/^average\(.*\)$/,/.*\(|\)/gi,/[\"\']/gi,/^[0-9]*$/],n=this.attr("data").type,l="";f._.each(i,(function(i){var s,c;if(o[0].test(i))c=t.isparent?t.childnodes.size():t.data.size(),void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(r,c,e)),l+=c;else if(o[1].test(i))c=t.count,void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(r,c,e)),l+=c;else if(o[2].test(i)){var h=i.replace(o[6],""),u=f._.map(h.split(","),(function(t){return f.$.trim(t).replace(o[7],"")}));2===u.length&&(s="array"===n&&o[8].test(u[0])?parseInt(u[0]):u[0],c=a._getGroupCountif(t,s,u[1]),void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(r,c,e)),l+=c)}else if(o[3].test(i)){var d=Number(i.replace(o[6],""));if(!1===isNaN(d)&&d<=t.level){for(var p=t;d<p.level;)p=p.parent;c=p.key,void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(r,c,e)),l+=c}}else if(o[4].test(i)||o[5].test(i)){var g=i.replace(o[6],"").replace(o[7],"");if(s=""===g?r:"array"===n&&o[8].test(g)?parseInt(g):g,a._getColsOfKey(s).length>0&&"number"===a._getColDataType(a._getColsOfKey(s)[0])){var _=a._getGroupSum(t,s),C=a._getColsOfKey(s)[0],L=a._getColFormat(C);c=o[5].test(i)?_/t.count:_,void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(r,c,e)),void 0!==L&&(c=a._showDataFormat(0,C,c)),l+=c}}else void 0!==t.headerFooterCallback&&(i=t.headerFooterCallback(r,i,e)),l+=i})),e[r]=l,!0===s?e.rt_qc_header=!0:!1===s?e.rt_qc_footer=!0:console.log("error")},f.QCELL.BasicQCELL.prototype._seekNextExpandedGroupTreeUIRow=function(t){var e=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),i=e.treeuirows,r=e.treeuirownodes,s=-1;return t>0?f.$.each(i,(function(e,i){var a=r[e];return a.level!==t-1&&(a.level===t?(s=i,!1):void 0)})):f.$.each(i,(function(e,i){if(r[e].level===t)return s=i,!1})),-1===s&&t>0?this._seekNextExpandedGroupTreeUIRow(t-1):s},f.QCELL.BasicQCELL.prototype._setExpandOfGroupTreeUIRow=function(t,e){var i,r,s,a,o,n,l,c,h,u,d,p,g=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),_=this.attr("data").input,C=g.treeuirows,L=g.treeuirownodes,m=g.headerrows,E=g.headerrownodes,v=g.footerrows,b=g.footerrownodes,y=this.attr("headerrows"),w="tree"===g.type||"step"===g.type?f._.indexOf(C,t,!0):-1;if(w>-1){var x=this,Q=L[w];if(e){if(!1!==Q.expand)return!1;var k,T,R,A=this.attr("data").type,S=Q.colid,O=g.columnsinfo.get(S),D="array"===A?[]:{};if(c=f._.findIndex(m,(function(e){return e>t})),h=f._.findIndex(v,(function(e){return e>t})),i=g.data.splice(t-y+1,g.data.length-(t-y+1)),r=C.splice(w+1,C.length-(w+1)),s=L.splice(w+1,L.length-(w+1)),a=c>-1?m.splice(c,m.length-c):[],o=c>-1?E.splice(c,E.length-c):[],n=h>-1?v.splice(h,v.length-h):[],l=h>-1?b.splice(h,b.length-h):[],k=g.data.length,Q.expand=!0,Q.header&&(R=f._.clone(D),f._.each(O.header,(function(t,e){x._setGroupHeaderFooterText(Q,R,t,e,!0)})),g.data.push(R),g.headerrows.push(y+g.data.length-1),g.headerrownodes.push(Q)),Q.isparent)!0===this.attr("treestate").grouped?this._makeTreeDatum(Q.childnodes):this._makeGroupDatum(Q.childnodes);else{var I=g.data.length;f._.each(Q.data.values().sort(f.st.asc),(function(t){g.data.push(_[t])})),g.data[I]["qc_row_ui"+Q.colkey]=!0}for(Q.footer&&(R=f._.clone(D),f._.each(O.footer,(function(t,e){x._setGroupHeaderFooterText(Q,R,t,e,!1)})),g.data.push(R),g.footerrows.push(y+g.data.length-1),g.footerrownodes.push(Q)),T=g.data.length-k,d=0,u=r.length;d<u;d++)r[d]=r[d]+T;for(d=0,u=a.length;d<u;d++)a[d]=a[d]+T;for(d=0,u=n.length;d<u;d++)n[d]=n[d]+T;g.treeuirows=C.concat(r),g.treeuirownodes=L.concat(s),g.headerrows=m.concat(a),g.headerrownodes=E.concat(o),g.footerrows=v.concat(n),g.footerrownodes=b.concat(l),g.data=g.data.concat(i)}else{if(!Q.expand)return!1;var N=0,P=0,M=0;if(c=f._.findLastIndex(m,(function(e){return e<t})),h=f._.findLastIndex(v,(function(e){return e<t})),i=g.data.splice(0,t-y+1),r=C.splice(0,w+1),s=L.splice(0,w+1),a=c>-1?m.splice(0,c+1):[],o=c>-1?E.splice(0,c+1):[],n=h>-1?v.splice(0,h+1):[],l=h>-1?b.splice(0,h+1):[],Q.isparent){var q=0,B=0;(B=!0===this.attr("treestate").grouped?this._seekNextExpandedTreeUIRow(Q,t):this._seekNextExpandedGroupTreeUIRow(Q.level))>-1?(N=B-t-1,f.$.each(C,(function(t,e){if(!(e<B))return!1;q+=1}))):(N=this.attr("rows")-t-1,q=C.length),C.splice(0,q),L.splice(0,q)}else N=Q.data.size()+(Q.header?1:0)+(Q.footer?1:0);for(C.length>0&&(f.$.each(m,(function(t,e){if(!(e<C[0]))return!1;P+=1})),m.splice(0,P),E.splice(0,P),f.$.each(v,(function(t,e){if(!(e<B))return!1;M+=1})),v.splice(0,M),b.splice(0,M)),d=0,u=C.length;d<u;d++)C[d]-=N;for(d=0,u=m.length;d<u;d++)m[d]-=N;for(d=0,u=v.length;d<u;d++)v[d]-=N;var H=r.concat(C),U=s.concat(L);if(t===H[H.length-1]&&0===U[U.length-1].level&&t===H[U.length-1]&&(f._.isUndefined(g.outer)||f._.isUndefined(g.outer.footer)||(N=g.data.length-1)),g.data.splice(0,N),g.treeuirows=r.concat(C),g.treeuirownodes=s.concat(L),g.headerrows=a.concat(m),g.headerrownodes=o.concat(E),g.footerrows=n.concat(v),g.footerrownodes=l.concat(b),g.data=i.concat(g.data),t===g.treeuirows[g.treeuirows.length-1]&&0===g.treeuirownodes[g.treeuirownodes.length-1].level&&t===g.treeuirows[g.treeuirownodes.length-1]&&!f._.isUndefined(g.outer)&&!f._.isUndefined(g.outer.footer))for(d=0;d<g.footerrows.length;d++)for(p=0;p<g.treeuirows.length;p++)g.footerrows[d]===g.treeuirows[p]&&(g.footerrows[d]=g.footerrows[d]+1);Q.expand=!1}g.footerrows=[],g.headerrows=[];for(var F=0;F<g.data.length;F++)void 0!==g.data[F].rt_qc_footer&&!0===g.data[F].rt_qc_footer&&g.footerrows.push(F+y),void 0!==g.data[F].rt_qc_header&&!0===g.data[F].rt_qc_header&&g.headerrows.push(F+y);var z=this._setCurrentData(g.data.RT_clone(),!1,!0);return Q.expand&&f._.isFunction(g.expand)?g.expand(Q.colid,Q.colkey,Q.key,t,this._getColOfID(Q.colid)):!Q.expand&&f._.isFunction(g.collapse)&&g.collapse(Q.colid,Q.colkey,Q.key,t,this._getColOfID(Q.colid)),this._trigger("treeuiclicked",{nRow:t,bExpand:e}),z}return!1},f.QCELL.BasicQCELL.prototype._setExpandOfGroupNodes=function(t,e,i,r){var s=this;f._.each(t.keys(),(function(a){var o=t.get(a);r?(o.isparent&&s._setExpandOfGroupNodes(o.childnodes,e,i,r),e<=o.level&&(o.expand=i)):e===o.level?o.expand=i:o.isparent&&e>o.level&&s._setExpandOfGroupNodes(o.childnodes,e,i,r)}))},f.QCELL.BasicQCELL.prototype._setExpandOfGroupLevel=function(t,e,i){var r=this.attr("groupstate");if(r.grouped)return this._setExpandOfGroupNodes(r.nodes,t,e,i),!!this._makeGroupData()&&this._setCurrentData(r.data,!1)},f.QCELL.BasicQCELL.prototype._setGroupTreeUICell=function(t,e,i){var r=this,s=f.QCELL.def.css,a=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),o=document.createElement("span"),n=document.createElement("span"),l=parseInt(t.getAttribute("data-row")),c=parseInt(t.getAttribute("data-col")),h=a.type,u=!0===a.presentkey?e.key:i,d=!1,p=r._getQCellCol(c).attr("colstyleeditordata");if(f.util.bind([o,n],"click",(function(t){r.attr("_isExpand")?console.log("_isExpand"):(r.attr("_isExpand",!0,"boolean"),r._setExpandOfGroupTreeUIRow(l,!e.expand),r.attr("_isExpand",!1,"boolean"),r.attr("usetreeall"))})),!0===this.attr("treestate").grouped&&(void 0===(u=!0===e.showLabel?e._rowData[e.label]:e.key)&&(u=""),"parentchild"===this.attr("treestate").mode&&(u=i),e.level>1&&this.attr("treestate").exclude.length>0))for(var g=0;g<this.attr("treestate").exclude.length;g++)if(this.attr("treestate").exclude[g]===this._getKeyOfCol(c)){u="";break}null!==e?(o.style.marginLeft="step"===h?(e.level>0?0*e.level:0)+"px":(e.level>0?20*e.level:0)+"px",f.util.addClass(o,[s.GROUPTREEUI,s.GROUPTREEUI_ARROW,e.expand?s.GROUPTREEUI_ARROW_EXPAND:s.GROUPTREEUI_ARROW_COLLAPSE]),f.util.addClass(n,[s.GROUPTREEUI,s.GROUPTREEUI_FOLDER,e.expand?s.GROUPTREEUI_FOLDER_EXPAND:s.GROUPTREEUI_FOLDER_COLLAPSE])):o.style.marginLeft="0px",f.$(t).empty(),p.replace("QCELL_COL_DATA","").length>0?t.innerHTML=p.replace("QCELL_COL_DATA",u):f.util.textContent(t,u);for(var _=0;_<a.treeuirows.length;_++)if(a.treeuirows[_]===l){d=!0;break}return d&&(t.insertBefore(n,t.firstChild),t.insertBefore(o,t.firstChild)),!isNaN(l)&&l>0&&!isNaN(l)&&c>0&&this._setAriaLabel(t,l,c,u),!0},f.QCELL.BasicQCELL.prototype._setGroupTreeDataCell=function(t,e,i){var r,s=f.QCELL.def.css,a=document.createElement("span"),o=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=o.hidekeydata,l=o.type,c=o.leafnodekey,h=parseInt(t.getAttribute("data-col")),u=this._getQCellCol(h).attr("colstyleeditordata"),d=1,p=void 0===o.leafindent?0:o.leafindent,g=!1;if(this.attr("groupstate").grouped)d=o.columnsinfo.size();else if(this.attr("treestate").grouped){if(void 0===i)return;if(void 0===(d=i[o.level]))return void f.$(t).empty();var _=(r=o.columnsinfo).keys(!0),C="",L=!1,m="";if(_.length>1&&("parentchild"===o.mode?(L=r.get(_[0]).showLabel,m=r.get(_[0]).label,C=-1===this._getKeyOfColID(_[0])?_[0]:this._getKeyOfColID(_[0])):(L=r.get(_[d-1]).showLabel,m=r.get(_[d-1]).label,C=-1===this._getKeyOfColID(_[d-1])?_[d-1]:this._getKeyOfColID(_[d-1]),void 0===L&&(L=!0),void 0===m&&(m=C))),!0===L&&(e=i[m]),void 0===e&&(e=""),d>1&&this.attr("treestate").exclude.length>0)for(var E=0;E<this.attr("treestate").exclude.length;E++)if(this.attr("treestate").exclude[E]===this._getKeyOfCol(h)){e="",g=!0;break}}if(null!=c&&f._.isString(c)&&(e=i[c]),a.style.marginLeft="step"===l?20-p+"px":20*d-p+"px",f.util.addClass(a,[s.GROUPTREEUI,s.GROUPTREEUI_DOT]),f.$(t).empty(),("tree"===l||"step"===l)&&n)return!0;u.replace("QCELL_COL_DATA","").length>0?t.innerHTML=u.replace("QCELL_COL_DATA",e):f.util.textContent(t,e),!1===g&&t.insertBefore(a,t.firstChild);var v=parseInt(t.getAttribute("data-row"));return!isNaN(v)&&v>0&&!isNaN(v)&&h>0&&this._setAriaLabel(t,v,h,e),!0},f.QCELL.BasicQCELL.prototype._setGroupThroughGroupInfo=function(t){var e=this.attr("groupinfo"),i={type:e.type,columns:[]};return f._.each(t,(function(t){i.columns.push({key:t,expand:void 0===e.expand[t]||e.expand[t],header:void 0===e.header[t]?{}:e.header[t],footer:void 0===e.footer[t]?{}:e.footer[t]})})),this._setGroup(i)},f.QCELL.BasicQCELL.prototype._setGroupMakeHelper=function(t){var e=f.$(t.currentTarget).find("span").clone(!0),i=f.$(t.currentTarget).clone(!0).removeClass("ui-draggable-dragging").css({position:"relative",top:0,left:0,"z-index":9}).empty();return i.append(e),f.$("."+f.QCELL.def.css.ROOT).children(":last").is(".rt-qc-ui-draggable")||(f.$("."+f.QCELL.def.css.ROOT).append(i),f.$(i).draggable({connectToSortable:"."+f.QCELL.def.css.GROUPUI_INNER})),f.$("."+f.QCELL.def.css.ROOT).children(":last")},f.QCELL.BasicQCELL.prototype._setGroupUIInfo=function(t){var e=this.attr("groupuiinfo");f._.each(t,(function(t){e.push(t.getAttribute("data-column"))})),this._setGroupUIForGroup()},f.QCELL.BasicQCELL.prototype._setGroupUIForGroup=function(){for(var t=this.attr("groupuiinfo"),e=[],i=0;i<t.length;i++){var r={};r.key=t[i],e.push(r)}this._clearGroup(),t.length>0&&(this._clearGroup(),this._setGroup({type:"tree",columns:e}))},f.QCELL.BasicQCELL.prototype._getGroupNode=function(t,e){var i,r,s,a,o=this.attr("groupstate"),n=o.columnsinfo.keys(!0);for(i=o.nodes,a=0;a<n.length;a++)if(void 0!==(s=this._getKeyOfColID(n[a]))){if(r=t[s],f._.isUndefined(r))return null;if(null===i.get(r))return null;if(i.get(r).colkey===e)return i.get(r);i=i.get(r).childnodes}return null},f.QCELL.BasicQCELL.prototype._setExpandOfGroupUIRow=function(t,e,i){var r,s,a,o,n,l=this.attr("groupstate"),c=this.attr("data").input,h=l.groupuirows[i.colid],u=this.attr("headerrows"),d=-1;if("group"===l.type){s=0;do{d=f._.indexOf(h,t-s,!0)}while(-1===d&&t-u-s++>=0)}if(d>-1){if(t=h[d],e){if(!1!==i.expand)return!1;a=l.data.splice(t-u,1),r=l.data.splice(t-u,l.data.length-(t-u)),i.expand=!0;var p={};if(p[i.colkey]=i.key,i.isparent){var g=l.data.length;for(n in this._makeGroupDatum(i.childnodes,p),o=a[0])f._.has(l.data[g],n)||(l.data[g][n]=o[n])}else{var _=l.data.length;f._.each(i.data.values().sort(f.st.asc),(function(t){l.data.push(c[t])})),l.data[_]["qc_row_ui_"+i.colid]=!0,l.data[_]["qc_row_ui_"+i.colid+"_nodes"]=i}l.data=l.data.concat(r),this._initGroupData()}else{if(!i.expand)return!1;var C,L=0;r=l.data.splice(0,t-u+1),L=i.isparent?(C=this._seekNextExpandedGroupUIRow(t,i.level,i.colid))>-1?C-t-1:this.attr("rows")-t-1:i.data.size()-1,a=l.data.splice(0,L),l.data=r.concat(l.data),this._initGroupData(),i.expand=!1}var m=this._setCurrentData(l.data.RT_clone(),!1);return i.expand&&f._.isFunction(l.expand)?l.expand(i.colid,i.colkey,i.key,t,this._getColOfID(i.colid)):!i.expand&&f._.isFunction(l.collapse)&&l.collapse(i.colid,i.colkey,i.key,t,this._getColOfID(i.colid)),m}return!1},f.QCELL.BasicQCELL.prototype._setGroupUICell=function(t,e,i){var r=this,s=f.QCELL.def.css,a=document.createElement("span"),o=document.createElement("span"),n=parseInt(t.getAttribute("data-row"));return f.util.bind([a,o],"click",(function(t){r._setExpandOfGroupUIRow(n,!e.expand,e)})),a.style.marginLeft="0px",f.util.addClass(a,[s.GROUPTREEUI,s.GROUPTREEUI_ARROW,e.expand?s.GROUPTREEUI_ARROW_EXPAND:s.GROUPTREEUI_ARROW_COLLAPSE]),f.util.addClass(o,[s.GROUPTREEUI,s.GROUPTREEUI_FOLDER,e.expand?s.GROUPTREEUI_FOLDER_EXPAND:s.GROUPTREEUI_FOLDER_COLLAPSE]),f.$(t).empty(),f.util.textContent(t,i),t.insertBefore(o,t.firstChild),t.insertBefore(a,t.firstChild),!0},f.QCELL.BasicQCELL.prototype._seekNextExpandedGroupUIRow=function(t,e,i){var r=this.attr("groupstate"),s=r.groupuirows[i],a=r.groupuinodes[i],o=-1;return e>0?f.$.each(s,(function(t,i){var r=a[t];return r.level!==e-1&&(r.level===e?(o=i,!1):void 0)})):f.$.each(s,(function(i,r){if(a[i].level===e&&t<r)return o=r,!1})),-1===o&&e>0?this._seekNextExpandedGroupUIRow(e-1):o},f.QCELL.BasicQCELL.prototype._setGrandTotal=function(t){(!0===this.attr("_isGTF")||this.attr("_isGTH"))&&this._clearGrandTotal();var e,i,r=this,s=function(t,e){r._setGroupTotalHeaderFooterText(i,t,e,!1,!1)},a=[],o=[];if(f._.isArray(t.footer))for(e=0;e<t.footer.length;e++)i={_rtqc_state:"gt"},f._.each(t.footer[e],s),o.push(f._.clone(i));if(f._.isArray(t.header))for(e=0;e<t.header.length;e++)i={_rtqc_state:"gt"},f._.each(t.header[e],s),a.push(f._.clone(i));for(e=0;e<o.length;e++)this.insertRow(this.getRows(),o[e]),this.attr("_isGTF",!0,"boolean");for(e=a.length-1;e>=0;e--)this.insertRow(this.getRows("header"),a[e]),this.attr("_isGTH",!0,"boolean");return this.attr("_backGT",f._.clone(t),"object"),!0},f.QCELL.BasicQCELL.prototype._clearGrandTotal=function(){var t=this.getRows("header");this.attr("_isGTF",!1,"boolean"),this.attr("_isGTH",!1,"boolean");for(var e=this.getRows()-1;e>=t;e--){"gt"===this.getRowData(e)._rtqc_state&&this._deleteRows(e,1)}},f.QCELL.BasicQCELL.prototype._setTree=function(t){if(!0===this.attr("useall"))return f.QCELL.isForceDynamic=!0,this.attr("usetreeall",!0,"boolean"),this._rebuild(),void this._setTree(t);if(this._onScrollHideEditCellsDOM(),this._checkValidationOfGroupProps(t)){var e=this,i=this.attr("treestate"),r=i.columnsinfo,s=this.attr("headercols");return this.attr("_treeProps",f._.clone(t),"object"),i.grouped=!0,i.level=f._.has(t,"level")&&f._.isString(t.level)?t.level:"level",i.treeUIColumn=f._.has(t,"treeUIColumn")&&f._.isString(t.treeUIColumn)?t.treeUIColumn:"level",i.expand=f._.has(t,"expand")&&f._.isFunction(t.expand)?t.expand:null,i.collapse=f._.has(t,"collapse")&&f._.isFunction(t.collapse)?t.collapse:null,i.leafindent=f._.has(t,"leafindent")?t.leafindent:0,i.linkedcheckbox="rowheader"===t.linkedcheckbox?"_rt_qc_rowheader":t.linkedcheckbox,i.exclude=void 0===t.exclude?[]:t.exclude,i.mode=t.mode,f._.has(t,"sort")&&f._.isString(t.sort)?"none"===t.sort?i.sort="none":"asc"===t.sort?i.sort="asc":"desc"===t.sort?i.sort="desc":i.sort="asc":i.sort="asc",f._.each(t.columns,(function(i,a){var o=e._getColsOfKey(i.key),n=o[0],l=o.length>0?e._getColID(n):i.key;o.length>0&&(e._getQCellCol(n).attr("disabled",!0,"boolean"),!1!==t.movefirst&&e._moveCols(n,1,s+a,!0));!1===r.containsKey(l)&&(r.put(l,{header:f._.has(i,"header")&&f._.isObject(i.header)?f._.clone(i.header):{},footer:f._.has(i,"footer")&&f._.isObject(i.footer)?f._.clone(i.footer):{},headerFooterCallback:f._.has(i,"headerFooterCallback")&&f._.isFunction(i.headerFooterCallback)?i.headerFooterCallback:void 0}),r.get(l).expand=!f._.has(i,"expand")||!f._.isBoolean(i.expand)||i.expand,r.get(l).showLabel=i.showLabel,r.get(l).label=i.label,r.get(l).parentcode=i.parentkey)})),e._initColStyles(),f._.each(t.outer,(function(t,e){i.outer={},i.outer.header=f._.clone(t.header),i.outer.footer=f._.clone(t.footer),i.outer.headers=f._.clone(t.headers),i.outer.footers=f._.clone(t.footers),i.outer.outerCallback=f._.has(t,"outerCallback")&&f._.isFunction(t.outerCallback)?t.outerCallback:void 0})),"parentchild"===i.mode?this._initTreeEx():this._initTree()}return!1},f.QCELL.BasicQCELL.prototype._initTree=function(){if(this._makeTreeNodes(),this._makeTreeData()){this.attr("useall",!1,"boolean");var t=this.attr("treestate").data.RT_clone();return this.attr("usetreeall")&&this.attr("makefrozenbottomdata")&&t.push({rt_qc_fbrd:!0}),this._setCurrentData(t,!1)}return!1},f.QCELL.BasicQCELL.prototype._treecheckbox=function(t,e,i){var r=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(!0===r.grouped&&void 0!==r.linkedcheckbox&&r.linkedcheckbox===this._getKeyOfCol(e)){var s=this.getRowData(t);if(void 0!==s._rt_qc_treeinfo){var a=this._getColElement(e).attr("checkedvalue"),o=this._getColElement(e).attr("uncheckedvalue");if(void 0!==s._rt_qc_treeinfo.parent&&this._treecheckboxparentsub(r.linkedcheckbox,s._rt_qc_treeinfo.parent,i,a,o),void 0!==s._rt_qc_treeinfo.children)for(var n=0;n<s._rt_qc_treeinfo.children.length;n++)this._treecheckboxchildsub(r.linkedcheckbox,s._rt_qc_treeinfo.children[n],i,a,o);this.refresh()}}},f.QCELL.BasicQCELL.prototype._treecheckboxparentsubEx=function(t,e,i){var r=!0,s=this.attr("data").input;if(void 0===t._rt_qc_treeinfo.children)return!0;for(var a=0;a<t._rt_qc_treeinfo.children.length;a++){var o=s[t._rt_qc_treeinfo.children[a]];if(void 0===o)return!1;if(o[e]!==i)return!1;if(void 0!==o._rt_qc_treeinfo&&void 0!==o._rt_qc_treeinfo.children&&(r=this._treecheckboxparentsubEx(o,e,i)),!1===r)break}return r},f.QCELL.BasicQCELL.prototype._treecheckboxparentsub=function(t,e,i,r,s){var a=this.attr("data").input[e];i=this._treecheckboxparentsubEx(a,t,r),a[t]=!0===i?r:s,void 0!==a._rt_qc_treeinfo&&void 0!==a._rt_qc_treeinfo.parent&&this._treecheckboxparentsub(t,a._rt_qc_treeinfo.parent,i,r,s)},f.QCELL.BasicQCELL.prototype._treecheckboxchildsub=function(t,e,i,r,s){var a=this.attr("data").input[e];if(a[t]=!0===i?r:s,void 0!==a._rt_qc_treeinfo&&void 0!==a._rt_qc_treeinfo.children)for(var o=0;o<a._rt_qc_treeinfo.children.length;o++)this._treecheckboxchildsub(t,a._rt_qc_treeinfo.children[o],i,r,s)},f.QCELL.BasicQCELL.prototype._makeTreeNodes=function(){var t=this.attr("treestate"),e=t.nodes,i=t.level;e.clear(),t.state={};for(var s,a,o=t.columnsinfo,n=this.attr("data").input.RT_clone(),l=t.columnsinfo,c=l.keys(!0),h=null,u=0,d=n.length;u<d;u++){var p=n[u];if(a=e,void 0!==p[i]){s=Number(p[i]);for(var g=0;g<s;g++){var _=-1===this._getKeyOfColID(c[g])?c[g]:this._getKeyOfColID(c[g]);if(void 0!==_){var C=p[_];if(a.containsKey(C))h=a.get(C);else{var L="_rt_qc_index",m="_rt_qc_treeinfo";null!==h&&(p[m]={},1!==s&&(p[m].parent=h._rowData[L]),void 0===h._rowData[m]&&(h._rowData[m]={}),s>=h._rowData[_]&&(void 0===h._rowData[m].children&&(h._rowData[m].children=[]),h._rowData[m].children.push(u)));var E=l.get(c[g]).expand;h={colid:c[g],isparent:!1,colkey:_,level:s,key:C,count:0,header:f._.size(o.header)>0,footer:f._.size(o.footer)>0,headerFooterCallback:o.headerFooterCallback,parent:h,expand:E,_rowData:p,showLabel:l.get(c[g]).showLabel,label:l.get(c[g]).label},p[L]=u,a.put(C,h)}null!==h.childnodes&&void 0!==h.childnodes||(h.childnodes=new r._QHashtable),a=h.childnodes}}}}return!0},f.QCELL.BasicQCELL.prototype._makeTreeData=function(){var t=this.attr("treestate");return t.data=[],t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},f._.isUndefined(t.outer)||f._.isUndefined(t.outer.header)&&f._.isUndefined(t.outer.headers),this._makeTreeDatum(t.nodes),0!==t.nodes.size()||f._.isUndefined(t.outer)||f._.isUndefined(t.outer.header)&&f._.isUndefined(t.outer.footer)&&f._.isUndefined(t.outer.headers)&&f._.isUndefined(t.outer.footers),f._.isUndefined(t.outer)||f._.isUndefined(t.outer.footer)&&f._.isUndefined(t.outer.footers),!0},f.QCELL.BasicQCELL.prototype._makeTreeDatum=function(t){var e=this.attr("treestate"),i="asc"===e.sort?t.keys().sort():"desc"===e.sort?t.keys().sort().reverse():t.keys(!0),r=this.attr("headerrows"),s=-1;for(s=0;s<i.length;s++){var a=i[s];if(f._.isUndefined(a))break;var o=t.get(a);o.isparent=o.childnodes.size()>0,!0===o.isparent&&(e.treeuirows.push(r+e.data.length),e.treeuirownodes.push(o)),e.data.push(o._rowData),!0===o.isparent&&!0===o.expand&&this._makeTreeDatum(o.childnodes)}},f.QCELL.BasicQCELL.prototype._seekNextExpandedTreeUIRow=function(t,e){for(var i=t.childnodes.keys(!0),r=e+1,s=0;s<i.length;s++){var a=t.childnodes.get(i[s]);a.isparent&&!0===a.expand?r=this._seekNextExpandedTreeUIRow(a,r):r+=1}return r},f.QCELL.BasicQCELL.prototype._findParentNode=function(t,e){if(e.containsKey(t))return e.get(t);for(var i=e.keys(!0),r=0;r<i.length;r++){var s=e.get(i[r]),a=this._findParentNode(t,s.childnodes);if(null!==a)return a}return null},f.QCELL.BasicQCELL.prototype._insertTreeNode=function(t,e,i){var s,a=this.attr("treestate"),o=a.columnsinfo,n=0,l=a.nodes,c=null,h=0,u=o.keys(!0),d=void 0===i?"last":"first",p="",g=null,_=!0;if("parentchild"===a.mode){if(g=null,""!==t[0]){if(null===(g=this._findParentNode(t[0],l)))return!1;n=g.level+1,c=l=g}else n=1;if(h=0,void 0===(p=e[-1===this._getKeyOfColID(u[0])?u[0]:this._getKeyOfColID(u[0])]))return!1}else{for(var C=0;C<t.length-1;C++){if(""===t[C].trim())return!1;if(!l.containsKey(t[C])){_=!1;break}_=!0,c=l.get(t[C]),l=c.childnodes,h++}n=h+1,p=t[h]}if(!0===_){if(0!==h){if(""===t[h].trim())return!1;if(l.containsKey(t[h]))return!1}var L=o.get(u[h]);if(null===L)return!1;var m=L.expand,E="_rt_qc_index",v={colid:u[h],isparent:!1,colkey:u[h],level:n,key:p,count:0,header:f._.size(L.header)>0,footer:f._.size(L.footer)>0,headerFooterCallback:L.headerFooterCallback,parent:g,expand:m,_rowData:e};v.childnodes=new r._QHashtable;var b=this.attr("data").input;if(null===c){if(null!==(c=l.get(t[0])))return!1;if("last"===d)e[E]=this.attr("data").input.length,this.attr("data").input.push(e),l.put(p,v);else{for(s=0;s<b.length;s++)b[s][E]>0&&b[s][E]++;e[E]=0,b.RT_insertArray(0,[e]),l.putAt(p,v,0)}}else{if("last"===d)e[E]=this.attr("data").input.length,this.attr("data").input.push(e),c.childnodes.put(p,v);else{var y=c._rowData[E];if(!isNaN(y)){for(s=0;s<b.length;s++)b[s][E]>y&&b[s][E]++;e[E]=y+1,b.RT_insertArray(y+1,[e]),c.childnodes.putAt(p,v,0)}}c.isparent=!0}}if(this._makeTreeData()){var w=this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0);return this._setTreeState(this.attr("data").input.length,"i",e),w}return!1},f.QCELL.BasicQCELL.prototype._removeTreeNode=function(t){var e=this.attr("treestate"),i=e.nodes,r=null,s=0,a=null,o=!0;if("parentchild"===e.mode){if("parentchild"===e.mode){if(a=null,""!==t[0]&&null===(a=this._findParentNode(t[0],i)))return!1;r=a}}else for(var n=0;n<t.length-1;n++){if(!i.containsKey(t[n])){o=!1;break}o=!0,r=i.get(t[n]),i=r.childnodes,s++}if(!0===o){if(0!==s&&!1===i.containsKey(t[s]))return!1;if(null===r&&null===(r=i.get(t[0])))return!1;var l=null!=a?a:i.get(t[s]);return this._removeTreeDataNode(l),"parentchild"===e.mode?(this._findParentNodeEx(t[s],i),a.isparent=r.childnodes.size()>0):0===s&&1===t.length?i.remove(t[s]):(r.childnodes.remove(t[s]),r.isparent=r.childnodes.size()>0),!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)}return!1},f.QCELL.BasicQCELL.prototype._updateTreeNode=function(t,e){var i,r=this.attr("treestate"),s=r.nodes,a=null,o=0,n=!0;if("parentchild"===r.mode){if("parentchild"===r.mode){if(i=null,""!==t[0]&&null===(i=this._findParentNode(t[0],s)))return!1;a=i}}else for(var l=0;l<t.length-1;l++){if(!s.containsKey(t[l])){n=!1;break}n=!0,a=s.get(t[l]),s=a.childnodes,o++}if(!0===n){if(0!==o&&!1===s.containsKey(t[o]))return!1;if(null===a&&null===(a=s.get(t[0])))return!1;var c,h=null!=i?i:s.get(t[o]),u=h._rowData._rt_qc_index;if(isNaN(u))return!1;for(c in u+=this.attr("headerrows"),e)h._rowData[c]=e[c];return this._setTreeState(u,"u",h._rowData),this.refresh(),!0}return!1},f.QCELL.BasicQCELL.prototype._removeTreeDataNodeSub=function(t){var e="_rt_qc_index",i=this.attr("data").input,r=t._rowData[e];this._setTreeState(r,"d",t._rowData),i.splice(r,1);for(var s=i.length-1;s>=0;s--)i[s][e]>r&&(i[s][e]=i[s][e]-1)},f.QCELL.BasicQCELL.prototype._removeTreeDataNode=function(t){for(var e=t.childnodes,i=e.keys(),r=0;r<i.length;r++){var s=e.get(i[r]);s.childnodes.size()?this._removeTreeDataNode(s):this._removeTreeDataNodeSub(s)}this._removeTreeDataNodeSub(t)},f.QCELL.BasicQCELL.prototype._setTreeState=function(t,e,i){var s=void 0!==i?i:this.attr("currentdata")[t-this.attr("headerrows")],a=this.attr("treestate"),o=this._getTreeStateKey(s);if(""===o)return!1;if(void 0===a.state.update&&(a.state.update=new r._QHashtable),void 0===a.state.insert&&(a.state.insert=new r._QHashtable),void 0===a.state.delete&&(a.state.delete=new r._QHashtable),"u"===e){if(a.state.insert.containsKey(o))return void a.state.insert.put(o,s);if(a.state.delete.containsKey(o))return void a.state.delete.put(o,s);a.state.update.put(o,s)}else if("i"===e)a.state.update.containsKey(o)&&a.state.update.remove(o),a.state.delete.containsKey(o)&&a.state.delete.remove(o),a.state.insert.put(o,s);else if("d"===e){if(a.state.update.containsKey(o)&&a.state.update.remove(o),a.state.insert.containsKey(o))return void a.state.insert.remove(o);a.state.delete.put(o,s)}},f.QCELL.BasicQCELL.prototype._getTreeStateKey=function(t){var e,i,r=this.attr("treestate"),s="",a=r.level,o=this.attr("treestate").columnsinfo.keys(!0),n=this.attr("treestate").columnsinfo;if(void 0===a)return s;var l=t[a];if(isNaN(l))return"";if("parentchild"===r.mode){if(null===n.get(o[0]))return"";e=o[0],i=-1===this._getKeyOfColID(e)?e:this._getKeyOfColID(e);for(var c=this._findParentNode(t[i],r.nodes);void 0!==c.level&&c.level>0&&(s=s+"_qc_"+c.key,null!==(c=c.parent))&&1!==c.level;);}else for(var h=0;h<l;h++){if(null===n.get(o[h]))return"";if(e=o[h],void 0===t[i=-1===this._getKeyOfColID(e)?e:this._getKeyOfColID(e)]||""===t[i])return"";s=s+"_qc_"+t[i]}return s},f.QCELL.BasicQCELL.prototype._getTreeState=function(t){var e={};return"u"===t?e.update=this._getTreeStateSub("u"):"i"===t?e.insert=this._getTreeStateSub("i"):("d"===t||(e.update=this._getTreeStateSub("u"),e.insert=this._getTreeStateSub("i")),e.delete=this._getTreeStateSub("d")),e},f.QCELL.BasicQCELL.prototype._getTreeStateSub=function(t){var e,i=[],r=this.attr("treestate");if("u"===t?e=r.state.update:"i"===t?e=r.state.insert:"d"===t&&(e=r.state.delete),void 0===e)return i;for(var s=e.keys(!0),a=0;a<s.length;a++)i.push(e.get(s[a]));return i},f.QCELL.BasicQCELL.prototype._clearTreeState=function(){this.attr("treestate").state={}},f.QCELL.BasicQCELL.prototype._setHierachy=function(t){if(this._checkValidationOfHierachyProps(t)){var e=this.attr("hierachystate");return e.columninfo=t.column,this.attr("_hierachyProps",f._.clone(t),"object"),e.grouped=!0,e.expand=f._.has(t,"expand")&&f._.isFunction(t.expand)?t.expand:null,e.collapse=f._.has(t,"collapse")&&f._.isFunction(t.collapse)?t.collapse:null,f._.has(t,"sort")&&f._.isString(t.sort)?"none"===t.sort?e.sort="none":"asc"===t.sort?e.sort="asc":"desc"===t.sort?e.sort="desc":e.sort="asc":e.sort="asc",this._initColStyles(),f._.each(t.outer,(function(t,i){e.outer={},e.outer.header=f._.clone(t.header),e.outer.footer=f._.clone(t.footer),e.outer.headers=f._.clone(t.headers),e.outer.footers=f._.clone(t.footers),e.outer.outerCallback=f._.has(t,"outerCallback")&&f._.isFunction(t.outerCallback)?t.outerCallback:void 0})),this.attr("_heirachyinfo",t,"object"),this._initHeirachy()}return!1},f.QCELL.BasicQCELL.prototype._checkValidationOfHierachyProps=function(t){return f._.has(t,"column")&&f._.isObject(t.column)},f.QCELL.BasicQCELL.prototype._initHeirachy=function(){return this._makeHeirachyNodes(),!!this._makeHierachyData()&&this._setCurrentData(this.attr("hierachystate").data.RT_clone(),!1)},f.QCELL.BasicQCELL.prototype._getHierachyData=function(t){for(var e=[],i=0,r=this.attr("hierachystate").columninfo,s=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,a=r.key,o=0;o<s.length;o++)s[o][a]===t&&(e.push(f._.clone(s[o])),e[i][a]="",e[i].check=!1,i++);return e},f.QCELL.BasicQCELL.prototype._addHierachyData=function(t,e,i,r){var s=this._getHierachyData(""+r);if(s.length>0){t.currentTarget.textContent="-",this.setCellDataEx(e,"rt_qc_state","M"),this.insertRows(e+1,s);var a=this;setTimeout((function(){a._trigger("hierachyuiclick",{nRow:e,bExpand:!0})}))}},f.QCELL.BasicQCELL.prototype._removeHierachyData=function(t,e,i,r){var s=this._getHierachyData(""+r);if(s.length>0){t.currentTarget.textContent="+",this.setCellDataEx(e,"rt_qc_state","P"),this.deleteRows(e+1,s.length);var a=this;setTimeout((function(){a._trigger("hierachyuiclick",{nRow:e,bExpand:!1})}))}},f.QCELL.BasicQCELL.prototype._makeHeirachyNodes=function(){var t=this.attr("hierachystate"),e=t.nodes,i=this.getColOfKey(t.columninfo.key),r=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input;if(e.clear(),-1===i)return!1;var s=this._getColHtml(i),a=this.getID(),o=function(t,e,i,r,s){return void 0!==s.rt_qc_type&&"M"===s.rt_qc_type?"P"===s.rt_qc_state?'<button class="rt-qc-heirachy-button" onclick="QCELL.getInstance(\''+a+"')._addHierachyData(event,"+e+","+i+","+r+')">+</button>'+r:'<button class="rt-qc-heirachy-button" onclick="QCELL.getInstance(\''+a+"')._removeHierachyData(event,"+e+","+i+","+r+')">-</button>'+r:""};this._getColElement(i).attr("renderer",o,"function"),s.data=o;for(var n=0,l=r.length;n<l;n++)this._makeHierachyNode(null,e,n,0,0);return!0},f.QCELL.BasicQCELL.prototype._makeHierachyData=function(){for(var t=this.attr("hierachystate"),e=t.columninfo,i=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,r=t.nodes,s=r.keys(!0),a=[],o=0;o<s.length;o++){var n=r.get(s[o]),l=n.data.values().sort(f.st.asc);if(void 0!==e.header){var c={};for(var h in e.header){for(var u="",d=e.header[h],p=0;p<d.length;p++)"value()"===d[p]?u+=n._rowData[h]:"childcount()"===d[p]?u+=""+n.count:u+=d[p];c[h]=u}if(c.rt_qc_type="M",c.rt_qc_state=!0===e.expand?"M":"P",a.push(c),!0===e.expand)for(var g=0;g<l.length;g++)a.push(i[l[g]])}}return t.data=a,!0},f.QCELL.BasicQCELL.prototype._makeHierachyNode=function(t,e,i,s,a){var o=this.attr("hierachystate"),n=o.columninfo,l=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,c=o.columninfo,h=l[i],u=h[c.key];if(void 0!==u&&s===a){var d=null;if(e.containsKey(u))for(void 0!==(d=e.get(u)).data&&null!==d.data||(d.data=new r._QHashSet),d.data.add(i);null!==d;)d.count+=1,d=d.parent;else d={level:a,key:u,count:1,header:f._.size(n.header)>0,footer:f._.size(n.footer)>0,headerFooterCallback:n.headerFooterCallback,parent:t,_rowData:h},"tree"!==o.type&&"step"!==o.type&&"group"!==o.type||(d.expand=!f._.has(n,"expand")||"boolean"!=typeof n.expand||n.expand),e.put(u,d),d.childnodes=new r._QHashtable,d.data=new r._QHashSet,d.data.add(i)}},f.QCELL.BasicQCELL.prototype._initTreeEx=function(){if(!1===this._makeTreeNodesEx())return!1;if(this._makeTreeData()){var t=this.attr("treestate").data.RT_clone();return this._setCurrentData(t,!1)}return!1},f.QCELL.BasicQCELL.prototype._makeTreeNodesExSub=function(t,e,i,s,a,o,n,l,c,h,u,d){for(var p=t.keys(!0),f="_rt_qc_index",g="_rt_qc_treeinfo",_=null,C=e[i],L=0;L<p.length;L++){if(_=t.get(p[L]),p[L]===e[s]){null!==_&&(e[g]={},1!==a&&(e[g].parent=_._rowData[f]),void 0===_._rowData[g]&&(_._rowData[g]={}),a>=_._rowData[i]&&(void 0===_._rowData[g].children&&(_._rowData[g].children=[]),_._rowData[g].children.push(o)));var m={colid:p[0],isparent:!1,colkey:i,level:a,key:C,count:0,header:h,footer:u,headerFooterCallback:d,parent:_,expand:c,_rowData:e,showLabel:n,label:l};return e[f]=o,null!==m.childnodes&&void 0!==m.childnodes||(m.childnodes=new r._QHashtable),_.childnodes.put(C,m),!0}if(this._makeTreeNodesExSub(_.childnodes,e,i,s,a,o,n,l,c,h,u,d))return!0}return!1},f.QCELL.BasicQCELL.prototype._makeTreeNodesEx=function(){var t=this.attr("treestate"),e=t.nodes,i=t.level;e.clear(),t.state={};for(var s,a,o=t.columnsinfo,n=this.attr("data").input.RT_clone(),l=t.columnsinfo,c=l.keys(!0),h=l.get(c[0]).parentcode,u=-1===this._getKeyOfColID(c[0])?c[0]:this._getKeyOfColID(c[0]),d=null,p=l.get(c[0]).expand,g=0,_=n.length;g<_;g++){var C=n[g];if(a=e,void 0!==C[i]){if(s=Number(C[i]),isNaN(s))return!1;var L=C[u];if(1===s){if(a.containsKey(L))continue;var m="_rt_qc_index",E="_rt_qc_treeinfo";null!==d&&(C[E]={},1!==s&&(C[E].parent=d._rowData[m]),void 0===d._rowData[E]&&(d._rowData[E]={}),s>=d._rowData[u]&&(void 0===d._rowData[E].children&&(d._rowData[E].children=[]),d._rowData[E].children.push(g))),d={colid:c[0],isparent:!1,colkey:u,level:s,key:L,count:0,header:f._.size(o.header)>0,footer:f._.size(o.footer)>0,headerFooterCallback:o.headerFooterCallback,parent:d,expand:p,_rowData:C,showLabel:l.get(c[0]).showLabel,label:l.get(c[0]).label},C[m]=g,a.put(L,d)}else this._makeTreeNodesExSub(a,C,u,h,s,g,l.get(c[0]).showLabel,l.get(c[0]).label,p,f._.size(o.header)>0,f._.size(o.footer)>0,o.headerFooterCallback);null!==d.childnodes&&void 0!==d.childnodes||(d.childnodes=new r._QHashtable),a=d.childnodes}}return!0},f.QCELL.BasicQCELL.prototype._findParentNodeEx=function(t,e,i,r){if(e.containsKey(t))return!0===i?e.moveAt(t,r):(e.remove(t),e);for(var s=e.keys(!0),a=0;a<s.length;a++){var o=e.get(s[a]);if(null!==this._findParentNodeEx(t,o.childnodes,i,r))return o.childnodes}return null},f.QCELL.BasicQCELL.prototype._moveTreeNode=function(t,e){var i,r=this.attr("treestate"),s=r.nodes,a=null,o=0,n=!0;if("parentchild"===r.mode){if("parentchild"===r.mode){if(i=null,""!==t[0]&&null===(i=this._findParentNode(t[0],s)))return!1;a=i}}else for(var l=0;l<t.length-1;l++){if(!s.containsKey(t[l])){n=!1;break}n=!0,a=s.get(t[l]),s=a.childnodes,o++}if(!0===n){if(0!==o&&!1===s.containsKey(t[o]))return!1;if(null===a&&null===(a=s.get(t[0])))return!1;if("parentchild"===r.mode){if(null===this._findParentNodeEx(t[o],s,!0,e))return!1}else 0===o&&1===t.length?s.moveAt(t[o],e):a.childnodes.moveAt(t[o],e);return!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)}return!1},f.QCELL.BasicQCELL.prototype._adjustLevel=function(t,e){for(var i=this.attr("treestate").level,r=t.keys(),s=0;s<r.length;s++){var a=t.get(r[s]);a.level=e,a._rowData[i]=e,this._adjustLevel(a.childnodes,e+1)}},f.QCELL.BasicQCELL.prototype._moveTreeNodeEx=function(t,e,i){var r,s,a=this.attr("treestate"),o=a.nodes,n=a.level;if("parentchild"!==a.mode)return!1;if(r=null,""!==t[0]&&null===(r=this._findParentNode(t[0],o)))return!1;if(s=null,""!==e[0]&&null===(s=this._findParentNode(e[0],o)))return!1;if("parentchild"===a.mode){if(null===this._findParentNodeEx(t[0],o))return!1;var l={colid:r.colid,isparent:!1,colkey:r.colkey,level:s.level+1,key:r.key,count:r.count,header:r.header,footer:r.footer,headerFooterCallback:r.headerFooterCallback,parent:s,expand:r.expand,_rowData:r._rowData,showLabel:r.showLabel,label:r.label,childnodes:r.childnodes};r._rowData[n]=l.level,s.childnodes.putAt(t[0],l,i),this._adjustLevel(l.childnodes,l.level+1)}return!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)},f.QCELL.BasicQCELL.prototype._treeRefresh=function(t,e){var i=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),r=i.grouped?i.columnsinfo.keys(!0)[0]:"",s=i.treeUIColumn;if(i.grouped&&"parentchild"===i.mode){(void 0!==s?this._getColsOfKey(s)[0]:this._getColsOfKey(r)[0])===e&&this.refresh()}},f.QCELL.BasicQCELL.prototype._setHSRange=function(){try{var t=this.attr("hsinfo"),e=this.attr("headercols"),i=this.attr("cols");return i-e>0?(t.nStartCol=e+this.attr("frozencols"),t.nEndCol=i-1):t.nStartCol=t.nEndCol=-1,!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._setHSRange",t.message),!1}},f.QCELL.BasicQCELL.prototype._initHSInfo=function(){var t=this.attr("hsinfo");t.bHScroll=!1,t.nStartCol=t.nEndCol=t.nLeftCol=t.nRightCol=-1,t.nAdjustCols=t.nDynamicCols=t.nLength=t.nLastPos=t.nPos=t.nLeft=t.nBeforeLeft=t.nLengthPerCol=0,t.objUpdateInfo={bWholeUpdate:!1,objParams:{}}},f.QCELL.BasicQCELL.prototype._updateHSInfo=function(){try{var t=this.attr("hsinfo"),e=t.objUpdateInfo,i=this.attr("headercols"),r=this.attr("cols");if(e.objParams={},t.bHScroll){var s=0;if(e.bWholeUpdate=!0,t.nLeftCol=t.nStartCol+t.nPos,t.nDynamicCols>r-i)t.nRightCol=t.nEndCol;else{var a=this.attr("frozencols");if(t.nRightCol=t.nLeftCol+(t.nDynamicCols-a)-1,t.nRightCol>t.nEndCol)if(t.nLeftCol-=t.nRightCol-t.nEndCol,t.nRightCol=t.nEndCol,t.nLastPos===t.nPos){var o=this.attr("layoutsize").viewport.offsetWidth;s=this._getSumOfColWidth(i,i+a-1)+this._getSumOfColWidth(t.nLeftCol,t.nEndCol)-o}else s=this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+(t.nPos-(t.nLastPos-t.nAdjustCols))-1)}e.objParams.nAdjustedLeft=s}else e.bWholeUpdate=!1,r>0?(t.nLeftCol=i,t.nRightCol=r-1):t.nLeftCol=t.nRightCol=-1,e.objParams.nAdjustedLeft=0;return this._adjustFrozenCount(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._updateHSInfo",t.message),!1}},f.QCELL.BasicQCELL.prototype.onHScroll=function(t){var e=this.attr("hsinfo"),i=0;Math.abs(e.nLeft-t)>=e.nLengthPerCol&&(i=parseInt(-(t-e.nLeft)/e.nLengthPerCol),e.nBeforeLeft=e.nLeft,e.nLeft=e.nLeft-i*e.nLengthPerCol,e.nPos=-e.nLeft/e.nLengthPerCol,this._syncHSInfo(),this._updateNCs(),this._adjustScrollPos()),this.attr("adjustcol",!1,"boolean")},f.QCELL.BasicQCELL.prototype._syncHSInfo=function(){var t=this.attr("hsinfo"),e=t.objUpdateInfo,i=(t.nBeforeLeft-t.nLeft)/t.nLengthPerCol,r=this.attr("headercols"),s=this.attr("frozencols"),a=this.attr("layoutsize").viewport.offsetWidth,o=this._getSumOfColWidth(r,r+s-1),n=0;if(e.objParams={},Math.abs(i)>=t.nDynamicCols-s){var l=0,c=0;e.bWholeUpdate=!0,i>0?(e.strDirection="right",t.nPos>t.nLastPos-t.nAdjustCols?(l=t.nPos-(t.nLastPos-t.nAdjustCols),t.nLeftCol+=i-l,t.nRightCol+=i-l,c=t.nLastPos===t.nPos?o+this._getSumOfColWidth(t.nLeftCol,t.nEndCol)-a:this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+(t.nPos-(t.nLastPos-t.nAdjustCols))-1)):(t.nLeftCol+=i,t.nRightCol+=i)):(e.strDirection="left",t.nPos>=t.nLastPos-t.nAdjustCols?(l=t.nPos-(t.nLastPos-t.nAdjustCols),c=this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+l-1)):(n=t.nPos-i>=t.nLastPos-t.nAdjustCols?t.nPos-i-(t.nLastPos-t.nAdjustCols):0,t.nLeftCol+=i+n,t.nRightCol+=i+n)),e.objParams.nAdjustedLeft=c}else{var h=0;e.bWholeUpdate=!1,e.objParams.nMovedCount=i,i>0?(e.strDirection="right",t.nPos>t.nLastPos-t.nAdjustCols?(h=t.nEndCol-t.nRightCol,e.objParams.bWholePositionChanged=!0):(h=i,e.objParams.bWholePositionChanged=!1),t.nLeftCol+=h,t.nRightCol+=h):(e.strDirection="left",t.nPos>=t.nLastPos-t.nAdjustCols?e.objParams.bWholePositionChanged=!0:(e.objParams.bWholePositionChanged=!1,n=t.nPos-i>=t.nLastPos-t.nAdjustCols?t.nPos-i-(t.nLastPos-t.nAdjustCols):0,h=Math.abs(i)-n,t.nLeftCol-=h,t.nRightCol-=h)),e.objParams.nCutColsCount=h}},f.QCELL.BasicQCELL.prototype._resizeHScrollbar=function(){try{var t=this.attr("elementpool"),e=t.get("hscrollthumb"),i=t.get("$jqhscrollbar"),r=this.attr("layoutsize"),s=this.attr("hsinfo");if(s.bHScroll){var a,o,n=0,l=this.attr("headercols"),c=this.attr("frozencols"),h=this.attr("cols"),u=r.viewport.offsetWidth,d=r.hscrollbar.clientWidth,p=this._getSumOfColWidth(l,l+c-1);for(o=l;o<h;o++)if(this._getSumOfColWidth(l,o)>=u){n=o-l+1;break}for(s.nLengthPerCol=Math.round(d/n),s.nAdjustCols=0,s.nLastPos=s.nEndCol-(s.nStartCol+(s.nDynamicCols-c)-1),o=s.nStartCol+s.nLastPos;o<=s.nEndCol;o++){if(!(p+this._getSumOfColWidth(s.nStartCol+s.nLastPos+s.nAdjustCols,s.nEndCol)>u))break;s.nAdjustCols+=1}if(s.nLastPos+=s.nAdjustCols,s.nPos>s.nLastPos&&(s.nPos=s.nLastPos,s.nLeft=-s.nPos*s.nLengthPerCol),s.nLeft!==-s.nPos*s.nLengthPerCol&&(s.nLeft=-s.nPos*s.nLengthPerCol),s.nLength=s.nLastPos*s.nLengthPerCol,isNaN(s.nLength))return void 0!==i.rt_qc_mCSbar&&i.rt_qc_mCSbar("destroy"),s.nLengthPerCol=s.nLastPos=s.nPos=s.nLeft=s.nBeforeLeft=s.nAdjustCols=s.nLength=0,e.style.width="0px",!0;f.$(e).attr("style","width:"+(d+s.nLength)+"px !important");var g=this;a=function(t){try{var e=this.mcs.left;f.util.rAF((function(){g.onHScroll(e),g._trigger("scrollmove")}))}catch(t){f.QCELL.log("err","HScrollbar.onScroll ",t.message)}},void 0!==i.rt_qc_mCSbar&&f.$(i).rt_qc_mCSbar("destroy").rt_qc_mCSbar({axis:"x",theme:"qcell-default",setWidth:"100%",setHeight:"100%",scrollInertia:0,snapAmount:s.nLengthPerCol,mouseWheel:{enable:!0,preventDefault:!0,normalizeDelta:!0,scrollAmount:s.nLengthPerCol},scrollButtons:{enable:!0,scrollAmount:s.nLengthPerCol},keyboard:{enable:!1},advanced:{updateOnContentResize:!1},callbacks:{onScroll:a,whileScrolling:a},target:this}),s.nLeft<0&&i.rt_qc_mCSbar("scrollTo",s.nLeft,"",{ignorecallback:!0}),a=null}else void 0!==i.rt_qc_mCSbar&&i.rt_qc_mCSbar("destroy"),s.nLengthPerCol=s.nLastPos=s.nPos=s.nLeft=s.nBeforeLeft=s.nAdjustCols=s.nLength=0,e.style.width="0px";return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._resizeHScrollbar",t.message),!1}},f.QCELL.BasicQCELL.prototype._scrollLeft=function(t){var e,i=this.attr("hsinfo");i.bHScroll&&(t<i.nStartCol?t=i.nStartCol:t>i.nStartCol+i.nLastPos&&(t=i.nStartCol+i.nLastPos),e=-1*(t-i.nStartCol)*i.nLengthPerCol,this.attr("isscrollleft",!1,"boolean"),isNaN(e)||e===i.nLeft||(this.attr("isscrollleft",!0,"boolean"),f.$(this.attr("elementpool").get("$jqhscrollbar")).rt_qc_mCSbar("scrollTo",e)))},f.QCELL.BasicQCELL.prototype._adjustCol=function(){try{var t=-1!==this._getSelectedRow()?this._getSelectedRow():this._idx("row","focus"),e=-1!==this._getSelectedCol()?this._getSelectedCol():this._idx("col","focus"),i=this._getCellDOM(t,e),r=this.attr("hsinfo");if(r.bHScroll&&r.nAdjustCols>0)if(e>=this.attr("headercols")+this.attr("frozencols"))switch(this._getHScrollAdjustment(i)){case"left":this._scrollLeft(r.nStartCol+r.nPos-1),this.attr("adjustcol",!0,"boolean");break;case"right":this._scrollLeft(r.nStartCol+r.nPos+1),this.attr("adjustcol",!0,"boolean");break;default:this.attr("adjustcol",!1,"boolean")}else this.attr("adjustcol",!1,"boolean");return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._adjustCol",t.message),!1}},f.QCELL.BasicQCELL.prototype._getHScrollAdjustment=function(t){var e=this.attr("hsinfo");if(e.bHScroll){var i=0;if(e.nPos===e.nLastPos){var r=this.attr("headercols"),s=this.attr("frozencols");if(s>0&&(i+=this._getSumOfColWidth(r,r+s-1)),t.offsetLeft<i)return"left"}else if(i+=this.attr("layoutsize").viewport.offsetWidth,t.offsetLeft+t.offsetWidth>i)return"right"}return"none"},f.QCELL.BasicQCELL.prototype._MoveHScrollbarToDragging=function(t){if(this.attr("dragging")){var e=this.attr("hsinfo");if(e.bHScroll){var i=this,r=this.attr("layoutsize"),s=this.attr("headercols"),a=this.attr("frozencols"),o=this._getSumOfColWidth(0,s-1),n=this._getSumOfColWidth(s,s+a-1),l=r.container.clientX+o+n,c=r.container.clientX+o+r.viewport.offsetWidth,h=0;l+30>=t.clientX?(this.attr("colmove")||this._idx("col","focus")>=s+a)&&e.nPos>0&&(l>=t.clientX?(h=-5,e.nPos+h<0&&(h=-e.nPos)):h=-1):c-30<=t.clientX&&e.nPos<e.nLastPos&&(c<=t.clientX?(h=5,e.nPos+h>e.nLastPos&&(h=e.nLastPos-e.nPos)):h=1),h!==this.attr("hdcount")&&(null!==this.attr("hdhandle")&&(clearInterval(this.attr("hdhandle")),this.attr("hdhandle",null,"number")),this.attr("hdcount",h,"number")),0!==h?null===this.attr("hdhandle")&&this.attr("hdhandle",setInterval((function(){if(h<0?e.nPos>0:e.nPos<e.nLastPos){if(-1===i.attr("selectmode").indexOf("row")){var r=i._idx("row","cursor"),s=h<0?i._getLeftColOfScreen():i._getRightColOfScreen();i._updateIdx("drag",r,s),!1===i.attr("colmove")&&!1===i.attr("colresize")&&i._selectDragArea(t)}i._scrollLeft(e.nStartCol+e.nPos+h)}else clearInterval(i.attr("hdhandle")),i.attr("hdhandle",null,"number"),i.attr("hdcount",0,"number")}),100),"number"):null!==this.attr("hdhandle")&&(clearInterval(i.attr("hdhandle")),i.attr("hdhandle",null,"number"),i.attr("hdcount",0,"number"))}}},f.QCELL.BasicQCELL.prototype._getLeftColOfScreen=function(){var t=this.attr("hsinfo");if(!1===t.bHScroll||t.nPos<=t.nLastPos-t.nAdjustCols)return t.nLeftCol;for(var e,i=this._getCellGroupDOMs("col","normal"),r=this.attr("headercols"),s=this.attr("frozencols"),a=this._getSumOfColWidth(r,r+s-1),o=i.length,n=0;n<o;){var l=i[n][0];if(l.offsetLeft+l.offsetWidth>a){e=parseInt(l.getAttribute("data-col"));break}n+=1}return e},f.QCELL.BasicQCELL.prototype._getRightColOfScreen=function(){var t=this.attr("hsinfo");if(!1===t.bHScroll||t.nPos===t.nLastPos)return t.nRightCol;var e,i=this._getCellGroupDOMs("col","normal"),r=this.attr("layoutsize"),s=this.attr("headerrows")-1,a=r.viewport.offsetWidth,o=i.length,n=0;for(i.reverse();n<o;){var l=i[n][s];if(e=parseInt(l.getAttribute("data-col")),0!==l.offsetWidth&&l.offsetLeft<a)break;n+=1}return e},f.QCELL.BasicQCELL.prototype._excelUpload=function(t){var e=!0,i=f._.clone(this);void 0!==t.progressui&&!0===t.progressui&&i._showProgressUI(t.progressui,t),f.$.browser.msie&&f.$.browser.version<10||f._.isUndefined(t.event)?i._excelUpload_checkRequiredProps(t,"url")&&i._excelUpload_checkValidationOfProps(t)?i._excelUploadURL(t):e=!1:i._excelUpload_checkRequiredProps(t,"loc")&&i._excelUpload_checkValidationOfProps(t)?i._excelUploadLOC(t):e=!1,void 0!==t.progressui&&!0===t.progressui&&i._showProgressUI(!1);var r=this;return!1===e?setTimeout((function(){r._trigger("exceluploadfail")})):setTimeout((function(){r._trigger("exceluploadsucess")})),e},f.QCELL.BasicQCELL.prototype._excelUpload_checkRequiredProps=function(t,e){var i=!0;if(f._.isObject(t)&&!1===f._.isArray(t)){for(var r,s=0,a=(r="loc"===e?["event","headerrows"]:["cellname","fileid","headerrows","url"]).length;s<a;s++){var o=r[s];if(void 0===t[o]){f.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkRequiredProps",'Please check "'+o+'" property.'),i=!1;break}}r.RT_clear(),r=null}else f.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkRequiredProps",'Please check first parameter\'s type is "object".'),i=!1;return i},f.QCELL.BasicQCELL.prototype._excelUpload_checkValidationOfProps=function(t){var e=!0,i=f._.clone(this);return f.$.each(t,(function(t,r){return e=i._excelUpload_checkValidationOfProp(t,r)})),e},f.QCELL.BasicQCELL.prototype._excelUpload_checkValidationOfProp=function(t,e){var i=!0,r="";switch(t){case"cellname":case"fileid":case"url":r="string",!1===f._.isString(e)&&(i=!1);break;case"headerrows":r="number",!1===f._.isNumber(Number(e))&&(i=!1);break;case"event":r="object",(!1===f._.isObject(e)||f._.isArray(e))&&(i=!1)}return!1===i&&f.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkValidationOfProp",'Please check "'+t+'" property\'s type is "'+r+'".'),i},f.QCELL.BasicQCELL.prototype._excelUploadURL=function(t){var e=this.attr("id")+"._excelUploadURL";try{var i=t.cellname,r=t.fileid,s=t.headerrows,a=t.url,o="___iFame",n="file",l=f.$("<iframe></iframe>").attr("id",o).attr("name",o).css("display","none"),c=f.$("<form></form>").attr("action",a).attr("method","post").attr("target",o).attr("enctype","multipart/form-data"),h=f.$("#"+r),u=f.$(h).clone();h[0].name=n,h.before(u);var d=this.attr("rowheaders").length>0,p=f._.clone(this.attr("colkeys"));d&&p.shift();var g=f.$("<input>").attr("type","hidden").attr("name","keys").val(p),_=f.$("<input>").attr("type","hidden").attr("name","rows").val(s),C=f.$("<input>").attr("type","hidden").attr("name","objName").val(i),L=f.$("<input>").attr("type","hidden").attr("name","ifrmId").val(o),m=f.$("<input>").attr("type","hidden").attr("name","fileName").val(n);return f._.isElement(f.$("#"+o))&&f.$("#"+o).remove(),c.append(h).append(g).append(_).append(C).append(L).append(m),l.appendTo("body").append(c),c.submit().remove(),!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._excelUploadLOC=function(t){var e=this.attr("id")+"._excelUploadLOC";try{var i=t.event.target.files[0];if(i){if("xlsx"!==i.name.split(".").pop(-1).toLowerCase())return f.QCELL.log("err",e,this.attr("msg").err.FILE_EXT_NOT_XLSX),!1;var r="undefined"!=typeof FileReader&&(FileReader.prototype||{}).readAsBinaryString,s=new FileReader,a=t.headerrows,o=f._.clone(this);r?s.readAsBinaryString(i):s.readAsArrayBuffer(i),s.onload=function(e){var i=e.target.result;r||(i=new Uint8Array(i)),t.cellformula=void 0!==t.cellformula&&t.cellformula,f._.isBoolean(t.cellformula)||(t.cellformula=!1);var s={type:r?"binary":"array",cellFormula:t.cellformula,cellDates:!0,dateNF:"yyyyMMdd"};void 0!==t.password&&(s.password=t.password);var n=!1;if(void 0!==t.mode&&(n="append"===t.mode),o._process_wb(d.read(i,s),a,n,t.beforeUploadCallback,t.cellformula,t.usemultisheets),!0===t.state){var l,c=o.getRows();for(l=o.getRows("header");l<c;l++)o._setRowState(l,"i")}var h=o;setTimeout((function(){void 0!==h._trigger&&h._trigger("exceluploadlocend")}),0),o=null}}return!0}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype._process_wb_sub=function(t,e,i,r,s,a){var o,n=[],l=0,c=0,h=[],u=this.attr("rowheaders").length>0,d=f._.clone(this.attr("colkeys"));if(u){var p=0;for(p=0;p<this.attr("rowheaders").length;p++)d.shift()}for(o=this.getCols("header");o<this.getCols();o++){var g=this._getColFormat(o);null!==g&&"number"===g.type&&h.push({col:o,key:this._getKeyOfCol(o),rule:g.rule})}for(var _=[];l<e;l++)_.push(a.shift());if(void 0===r||!f._.isFunction(r)||!1!==r(_)){for(;c<a.length;c++){var C={};for(o=0;o<d.length;o++)try{C[d[o]]=f.$.trim(a[c][o])}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._process_wb",t.message),C[d[o]]=""}for(o=0;o<h.length;o++){var L,m=h[o];if(isNaN(Number(C[m.key])))m.rule=void 0===m.rule?"":m.rule,void 0!==C[m.key]?(L=f.$.parseNumber(C[m.key],m.rule),isNaN(Number(L))&&(L=0)):L=0,C[m.key]=L;else C[m.key]=Number(C[m.key])}n.push(C)}if(!0===i){var E=f._.clone(this.attr("currentdata"));E=E.concat(n),this._setData(E)}else this._setData(n)}},f.QCELL.BasicQCELL.prototype._createSheetPopup=function(t,e,i,r,s){var a,o,n=f.QCELL.def.css,l=f.$(document.createElement("div")),c=f.$(document.createElement("button")).addClass(n.EXCELIMPORT_UI_BTN),h=f.$(document.createElement("span")),u=f.$(l.clone());u.css({display:"none",height:"290px",width:"229px","background-color":"white",position:"absolute",border:"1px solid"}),(a=l.clone()).addClass(n.EXCELIMPORT_TITLE_AREA),h.clone().text("Excel Import").addClass(n.EXCELIMPORT_TITLE_SPAN).appendTo(a),l.clone().addClass(n.EXCELIMPORT_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("excelimportuivisible")&&e._removeSheetPopup()})).appendTo(a),a.appendTo(u),l.clone().attr({id:"excelupload-dataindex-"+this.attr("id")}).css({width:"95%",height:"210px",padding:"5px"}).appendTo(u),o=l.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"}),h.clone().text(f.QCELL.def.resource.cancel).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(t){t.data.target._removeSheetPopup()})).appendTo(o)),o.appendTo(u),this.attr("exceluploaduiarea",u,"jquery")},f.QCELL.BasicQCELL.prototype._showSheetPopup=function(t,e,i,r,s){var a=this.attr("exceluploaduiarea"),o=this;a.appendTo(this.attr("elementpool").get("container")),a.prop("id",this.attr("id")+"_exceluploadPopup"),f.util._dragElement(this.attr("id")+"_exceluploadPopup"),"none"===a.css("display")&&a.css("display","block"),a.css({right:"5px",top:"5px"});for(var n,l=[],c=0;c<t.SheetNames.length;c++)n={indexpool:t.SheetNames[c]},l.push(n);var h=f.QCELL.NormalQCELL.create({id:"excelupload-dataindex",parentid:"excelupload-dataindex-"+this.attr("id"),rowheight:{header:30,data:30},selectmode:"row",rowheaders:["sequence"],columns:[{title:["Sheet Name"],key:"indexpool",width:"100%",tooltip:!0}],data:{input:l}});h._createCols(),h._create(),f.QCELL.storage.put("excelupload-dataindex",h),h.bind("click dblclick keydown",(function(a){var n=h.getIdx("row","click"),l=h.getCellDataEx(n,"indexpool");if(-1!==n&&void 0!==l){var c=o._wbToJsonSheetName(t,s,l);o._process_wb_sub(t,e,i,r,s,c)}o._removeSheetPopup(),a.stopPropagation()})),h.bind("mousedown mousewheel DOMMouseScroll mouseenter mouseleave mousemove resize onDrag onDrop",(function(t){t.stopPropagation()})),this.attr("excelimportuivisible",!0,"boolean")},f.QCELL.BasicQCELL.prototype._removeSheetPopup=function(){this.attr("exceluploaduiarea").remove(),this.attr("exceluploaduiarea",null,"jquery"),this.attr("excelimportuivisible",!1,"boolean"),f.QCELL._deleteInstance("excelupload-dataindex")},f.QCELL.BasicQCELL.prototype._wbToJsonSheetName=function(t,e,i){var r=[];return r=!0!==e?d.utils.sheet_to_json(t.Sheets[i],{header:1}):d.utils.sheet_to_formulae(t.Sheets[i],{header:1}),!0===e&&(r=this._convertJSON(r)),r},f.QCELL.BasicQCELL.prototype._process_wb=function(t,e,i,r,s,a){var o;void 0===a&&(a=!1),a&&t.SheetNames.length>1?(this._createSheetPopup(t,e,i,r,s),this._showSheetPopup(t,e,i,r,s)):(o=this._wbToJson(t,s),this._process_wb_sub(t,e,i,r,s,o))},f.QCELL.BasicQCELL.prototype._checkExcelIndex=function(t){for(var e=0,i=65,r=65,s="";e<255;){if(t===s+String.fromCharCode(i))return e;i++,++e%25==0&&(i=65,s=String.fromCharCode(r),r++)}return-1},f.QCELL.BasicQCELL.prototype._convertJSON=function(t){var e,i,r,s=[],a=0;try{for(e=0;e<t.length;e++){var o=t[e],n=o.indexOf("=");if(-1!==n){var l=o.slice(0,n),c=o.slice(n+1,o.length);for(c=f.util.replaceAll(c,"'",""),i=0;r=l.charAt(i),/[a-zA-Z]/.test(r);)i++;var h=Number(l.slice(i,l.length));if(!isNaN(h)){var u=this._checkExcelIndex(l.slice(0,i));if(-1!==u){if(a!==h)for(;a!==h;)s.push([]),a++;s[a-1][u]=c}}}}for(e=0;e<s.length;e++)for(var d=0;d<s[e].length;d++)void 0===s[e][d]&&(s[e][d]="")}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._convertJSON",t.message),s=[]}return s},f.QCELL.BasicQCELL.prototype._wbToJson=function(t,e){var i=[];return i=!0!==e?d.utils.sheet_to_json(t.Sheets[t.SheetNames[0]],{header:1}):d.utils.sheet_to_formulae(t.Sheets[t.SheetNames[0]],{header:1}),!0===e&&(i=this._convertJSON(i)),i},f.QCELL.BasicQCELL.prototype._wbToCsv=function(t){var e=[];return t.SheetNames.forEach((function(i){var r=d.utils.sheet_to_csv(t.Sheets[i]);r.length&&e.push(r)})),e.join("\n")},f.QCELL.BasicQCELL.prototype._splitAttrString=function(t){var e=[],i=function(t){this.value=t};i.prototype.toString=function(){return this.value},i.prototype.charAt=String.prototype.charAt;var r=new i(t),s=function(t,e){for(var i="",r="";r!==t&&""!==e.value;)/'|"/.test(r)?i=f.$.trim(i)+s(r,e):/\{/.test(r)?i=f.$.trim(i)+s("}",e):/\[/.test(r)?i=f.$.trim(i)+s("]",e):i+=r,r=e.charAt(0),e.value=e.value.slice(1);return f.$.trim(i)};do{var a=s(",",r);e.push(a)}while(""!==r.value);return e},f.QCELL.BasicQCELL.prototype._beforeFocusCell=function(){},f.QCELL.BasicQCELL.prototype._clearFocusAllCSS=function(){for(var t=this.attr("hsinfo"),e=this.attr("headerrows");e<=this.getRows();e++)for(var i=this.attr("headercols");i<=t.nRightCol;i++){var r=this._getCellDOM(e,i);null!==r&&this._removeFocusStyleClass(r)}},f.QCELL.BasicQCELL.prototype._adjustScrollPos=function(){var t=document.getElementById("colheader-"+this.getID()),e=document.getElementById("viewport-"+this.getID()),i=e.scrollLeft,r=e.scrollTop,s=document.getElementById("rowheader-"+this.getID());i!==t.scrollLeft&&(t.scrollLeft=i),t.scrollLeft=0,e.scrollLeft=0,r!==s.scrollTop&&(s.scrollTop=r),s.scrollTop=0,e.scrollTop=0},f.QCELL.BasicQCELL.prototype._scrollToFocusCell=function(t,e){try{var i,r,s,a=this.attr("rows"),o=this.attr("cols"),n=this.attr("headercols"),l=this.attr("headerrows"),c=this.attr("frozencols"),h=this.attr("frozenrows"),u=this.attr("frozenbottomrows"),d=this._getTopRowOfScreen(),p=this._getBottomRowOfScreen(),g=this._getLeftColOfScreen(),_=this._getRightColOfScreen(),C=this.attr("layoutsize").viewport.offsetWidth,L=this._getSumOfColWidth(n,n+c-1),m=!0;if(this._adjustScrollPos(),this._beforeFocusCell(),t<d){if(h>0?t>=l+h&&this._scrollTop(t):this._scrollTop(t),e<g)c>0?e>=n+c&&this._scrollLeft(e):this._scrollLeft(e);else if(e>_){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}else if(e===g)this._scrollLeft(e);else if(e===_){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}else if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(r=e;r<=_;r++)if(this._cellValue(t,e)!==this._cellValue(t,r)){m=!1;break}if(m){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}}}else if(t>p){if(u>0?t<a-u&&this._scrollTop(t-(p-d)+1):this._scrollTop(t-(p-d)+1),e<g)c>0?e>=n+c&&this._scrollLeft(e):this._scrollLeft(e);else if(e>_){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}else if(e===g)this._scrollLeft(e);else if(e===_){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}else if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(r=e;r<=_;r++)if(this._cellValue(t,e)!==this._cellValue(t,r)){m=!1;break}if(m){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}}}else if(t===p?(!0!==this.attr("useall")&&!0!==this.attr("usetreeall")||this.getIdx("row","click")===this.getIdx("row","cursor")&&this.getIdx("row","click")===this.getIdx("row","focus")&&this.getIdx("col","click")===this.getIdx("col","cursor")&&this.getIdx("col","click")===this.getIdx("col","focus"))&&this._scrollTop(t-(p-d)+1):t===d&&(this.attr("useall")||this.attr("usetreeall"),this._scrollTop(t)),e<g)c>0?e>=n+c&&this._scrollLeft(e):this._scrollLeft(e);else if(e>_){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}else if(e===g)this._adjustCol();else if(e===_){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}else if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(r=e;r<=_;r++)if(this._cellValue(t,e)!==this._cellValue(t,r)){m=!1;break}if(m){if(i=L,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(r=e+1;r<o&&this._cellValue(t,e)===this._cellValue(t,r);r++)e=r;for(r=e;r>=n;r--)if((i+=this._getColWidth(r))>=C){s=r;break}this._scrollLeft(s+1)}}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._scrollToFocusCell",t.message)}},f.QCELL.BasicQCELL.prototype._leftKey=function(t,e){try{var i,r,s,a=this._idx("row","focus","current"),o=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("cols"),h=this.attr("headercols");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(l>h&&l<c){if(--l,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":s=this._findNextCell(a,o,"left");break;case"cols":s=this._findNextCell(a,l,"left");break;default:s=this._findNextCell(n,l,"left")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":o>=this._getSelectedCol()?(i=f._.range(l,o+1).reverse(),this._selectCols(i)):(r=f._.range(o,this._getSelectedCol()+1),i=f._.range(o,l+1),this._deselectCols(r),this._selectCols(i));break;default:o>=this._getSelectedCol()||this._deselectCellRange(a,o,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(a,o,n,l)}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(o>h&&o<c){switch(o=h,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"left")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(!0),this._selectCol(o);break;default:this._clearSelection(!0),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}else if(t&&e&&l>h&&l<c){if(l=h,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":s=this._findNextCell(a,o,"left");break;case"cols":s=this._findNextCell(a,l,"left");break;default:s=this._findNextCell(n,l,"left")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":o>=this._getSelectedCol()?(i=f._.range(l,this._getSelectedCol()).reverse(),this._selectCols(i)):(r=f._.range(o,this._getSelectedCol()+1),i=f._.range(l,o+1).reverse(),this._deselectCols(r),this._selectCols(i));break;default:o>=this._getSelectedCol()?this._selectCellRange(a,this._getSelectedCol()-1,n,l):(this._deselectCellRange(a,o,n,this._getSelectedCol()),this._selectCellRange(a,o,n,l))}this._scrollToFocusCell(n,l)}}else if(o>h&&o<c){switch(--o,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"left")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;case"group":this._clearSelection(),this._selectGroup(a,o);break;default:this._clearSelection(),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._leftKey",t.message)}},f.QCELL.BasicQCELL.prototype._rightKey=function(t,e){try{var i,r,s,a=this._idx("row","focus","current"),o=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("cols"),h=this.attr("headercols");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(l>=h&&l<c-1){if(++l,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":s=this._findNextCell(a,o,"right");break;case"cols":s=this._findNextCell(a,l,"right");break;default:s=this._findNextCell(n,l,"right")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":o>this._getSelectedCol()?(r=f._.range(this._getSelectedCol(),o+1),i=f._.range(l,o+1).reverse(),this._deselectCols(r),this._selectCols(i)):this._selectCol(l);break;default:o>this._getSelectedCol()?(this._deselectCellRange(a,o,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(a,o,n,l)):a===this._getSelectedRow()?this._selectCell(n,l):this._selectCellRange(a,l,n,l)}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(o>=h&&o<c-1){switch(o=c-1,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"right")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;default:this._clearSelection(!0),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}else if(t&&e&&l>=h&&l<c-1){if(l=c-1,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":s=this._findNextCell(a,o,"right");break;case"cols":s=this._findNextCell(a,l,"right");break;default:s=this._findNextCell(n,l,"right")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":o>=this._getSelectedCol()?(r=f._.range(this._getSelectedCol(),o+1),i=f._.range(o,l+1),this._deselectCols(r),this._selectCols(i)):(i=f._.range(o,l+1),this._selectCols(i));break;default:o>this._getSelectedCol()?(this._deselectCellRange(a,o,n,this._getSelectedCol()),this._selectCellRange(a,o,n,l)):this._selectCellRange(a,this._getSelectedCol()+1,n,l)}this._scrollToFocusCell(n,l)}}else if(o>=h&&o<c-1){switch(++o,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"right")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(!0),this._selectCol(o);break;case"group":this._clearSelection(!0),this._selectGroup(a,o);break;default:this._clearSelection(!0),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._rightKey",t.message)}},f.QCELL.BasicQCELL.prototype._tabKey=function(t,e){try{var i,r,s,a,o=this._idx("row","focus","current"),n=this._idx("col","focus","current"),l=this.attr("cols"),c=this.attr("headercols"),h=this.attr("rows"),u=this.attr("headerrows"),d=!1;if(this._onScrollHideEditCellsDOM(),t){if(n>c&&n<l)--n,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(o=(i=this._findNextCell(o,n,"left")).row,n=i.col);else if(n=l-1,--o<u)return!1;if(r=this._getColType(n),d=!1,"static"===r||"html"===r||"image"===r){for(s=o;s>=u;s--){for(a=n;a>=c;a--)if(--n,"static"!==(r=this._getColType(n))&&"html"!==r&&"image"!==r){d=!0;break}if(!0===d)break}if(!1===d)return!1}}else{if(n>=c&&n<l-1)++n,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(o=(i=this._findNextCell(o,n,"right")).row,n=i.col);else if(n=c,h===++o)return!1;if(r=this._getColType(n),d=!1,"static"===r||"html"===r||"image"===r){for(s=o;s<h;s++){for(a=n;a<l-1;a++)if(++n,"static"!==(r=this._getColType(n))&&"html"!==r&&"image"!==r){d=!0;break}if(!0===d)break}if(!1===d)return!1}}switch(this._focusCell(o,n),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(o);break;case"col":case"cols":this._clearSelection(),this._selectCol(n);break;case"group":this._clearSelection(),this._selectGroup(o,n);break;default:this._clearSelection(),this._selectCell(o,n)}this._scrollToFocusCell(o,n)}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._rightKey",t.message)}return!0},f.QCELL.BasicQCELL.prototype._upKey=function(t,e){try{var i,r,s,a=this._idx("row","focus","current"),o=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("rows"),h=this.attr("headerrows");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(n>h&&n<c){if(--n,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":s=this._findNextCell(a,o,"up");break;case"rows":s=this._findNextCell(n,o,"up");break;default:s=this._findNextCell(n,l,"up")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a>=this._getSelectedRow()?(i=f._.range(n,a+1).reverse(),this._selectRows(i)):(r=f._.range(a,this._getSelectedRow()+1),i=f._.range(a,n+1),this._deselectRows(r),this._selectRows(i));break;default:a>=this._getSelectedRow()||this._deselectCellRange(a,o,this._getSelectedRow(),l),this._selectCellRange(a,o,n,l)}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(a>h&&a<c){switch(a=h,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"up")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;default:this._clearSelection(),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}else if(t&&e&&n>h&&n<c){if(n=h,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":s=this._findNextCell(a,o,"up");break;case"rows":s=this._findNextCell(n,o,"up");break;default:s=this._findNextCell(n,l,"up")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a>=this._getSelectedRow()?(i=f._.range(n,this._getSelectedRow()).reverse(),this._selectRows(i)):(r=f._.range(a,this._getSelectedRow()+1),i=f._.range(n,a+1).reverse(),this._deselectRows(r),this._selectRows(i));break;default:a>=this._getSelectedRow()?this._selectCellRange(this._getSelectedRow()-1,o,n,l):(this._deselectCellRange(a,o,this._getSelectedRow(),l),this._selectCellRange(a,o,n,l))}this._scrollToFocusCell(n,l)}}else if(a>h&&a<c){switch(--a,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"up")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;case"group":this._clearSelection(),this._selectGroup(a,o);break;default:this._clearSelection(),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._upKey",t.message)}},f.QCELL.BasicQCELL.prototype._downKey=function(t,e){try{var i,r,s,a=this._idx("row","focus","current"),o=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("rows"),h=this.attr("headerrows");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(n>=h&&n<c-1){if(++n,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":s=this._findNextCell(a,o,"down");break;case"rows":s=this._findNextCell(n,o,"down");break;default:s=this._findNextCell(n,l,"down")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a>this._getSelectedRow()?(r=f._.range(this._getSelectedRow(),a+1),i=f._.range(n,a+1).reverse(),this._deselectRows(r),this._selectRows(i)):this._selectRow(n);break;default:a<=this._getSelectedRow()?this._selectCellRange(n,o,n,l):(this._deselectCellRange(a,o,this._getSelectedRow(),l),this._selectCellRange(a,o,n,l))}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(a>=h&&a<c-1){switch(a=c-1,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"down")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;default:this._clearSelection(),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}}else if(t&&e&&n>=h&&n<c-1){if(n=c-1,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":s=this._findNextCell(a,o,"down");break;case"rows":s=this._findNextCell(n,o,"down");break;default:s=this._findNextCell(n,l,"down")}n=s.row,l=s.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a<=this._getSelectedRow()?(i=f._.range(this._getSelectedRow(),n+1),this._selectRows(i)):(r=f._.range(this._getSelectedRow(),a+1),i=f._.range(a,n+1),this._deselectRows(r),this._selectRows(i));break;default:a<=this._getSelectedRow()?this._selectCellRange(this._getSelectedRow()+1,o,n,l):(this._deselectCellRange(a,o,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(a,o,n,l))}this._scrollToFocusCell(n,l)}}else if(a>=h&&a<c-1){switch(++a,!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(s=this._findNextCell(a,o,"down")).row,o=s.col),this._focusCell(a,o),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(o);break;case"group":this._clearSelection(),this._selectGroup(a,o);break;default:this._clearSelection(),this._selectCell(a,o)}this._scrollToFocusCell(a,o)}else{var u=this;setTimeout((function(){u._resizeHScrollbar()}))}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._downKey",t.message)}},f.QCELL.BasicQCELL.prototype._pageUpKey=function(t,e){try{var i=this._idx("row","focus","current"),r=this._idx("col","focus","current"),s=this._getSelectedRow(),a=this._getSelectedCol(),o=this._getTopRowOfScreen(),n=this._getBottomRowOfScreen();if(t||e){if(t&&!e&&s>this.attr("headerrows")&&s<this.attr("rows")){switch(this.attr("frozenrows")>0&&s<=this.attr("frozenrows")+this.attr("headerrows")-1?o=s=this.attr("headerrows"):s>=o&&s<=n?(s-=n-o,o-=n-o):(s=o,o-=n-o),s<=this.attr("headerrows")&&(o=s=this.attr("headerrows")),this.attr("selectmode")){case"rows":var l,c;i<this._getSelectedRow()?(l=f._.range(i,this._getSelectedRow()+1),c=i<s?f._.range(i,s+1):f._.range(s,i+1).reverse()):(l=f._.range(this._getSelectedRow(),i+1),c=f._.range(s,i+1).reverse()),this._deselectRows(l),this._selectRows(c);break;case"row":case"col":case"cols":case"cell":return!1;default:this._deselectCellRange(i,r,this._getSelectedRow(),a),this._selectCellRange(i,r,s,a)}this._scrollTop(o)}}else if(i>this.attr("headerrows")&&i<this.attr("rows")){if(this.attr("frozenrows")>0&&i<=this.attr("frozenrows")+this.attr("headerrows")-1)return!1;if(i>=o&&i<=n?(i-=n-o,o-=n-o):(i=o-(n-o),o-=n-o),i<=this.attr("headerrows"))return!1;switch(this._focusCell(i,r),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(i);break;case"col":case"cols":this._clearSelection(),this._selectCol(r);break;case"group":this._clearSelection();var h=this;setTimeout((function(){h._selectGroup(i,r)}),100);break;default:this._clearSelection(),this._selectCell(i,r)}this._scrollTop(o)}}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._pageUpKey",t.message),!1}},f.QCELL.BasicQCELL.prototype._pageDownKey=function(t,e){try{var i=this._idx("row","focus","current"),r=this._idx("col","focus","current"),s=this._getSelectedRow(),a=this._getSelectedCol(),o=this.attr("vsinfo"),n=this._getTopRowOfScreen(),l=this._getBottomRowOfScreen();if(t||e){if(t&&!e&&s>=this.attr("headerrows")&&s<this.attr("rows")-1){switch(s>=this.attr("rows")-this.attr("frozenbottomrows")?n=s=this.attr("rows")-1:s<=this.attr("frozenrows")+this.attr("headerrows")-1?n=s=o.nStartRow+(l-n):s<n||s>l?n=s+=l-n:(s+=l-n,n+=l-n),s>this.attr("rows")&&(n=s=this.attr("rows")-1),this.attr("selectmode")){case"rows":var c,h;i>this._getSelectedRow()?(c=f._.range(this._getSelectedRow(),i+1),h=i>s?f._.range(s,i+1).reverse():f._.range(i,s+1)):(c=f._.range(i,this._getSelectedRow()+1),h=f._.range(i,s+1)),this._deselectRows(c),this._selectRows(h);break;case"row":case"col":case"cols":case"cell":return!1;default:this._deselectCellRange(i,r,this._getSelectedRow(),a),this._selectCellRange(i,r,s,a)}this._scrollTop(n)}}else if(i>=this.attr("headerrows")&&i<this.attr("rows")-1){if(i>=this.attr("rows")-this.attr("frozenbottomrows"))return!1;if(i>=n&&i<=l?i+=l-n:i=l,i>=this.attr("rows"))return!1;switch(this._focusCell(i,r),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(i);break;case"col":case"cols":this._clearSelection(),this._selectCol(r);break;case"group":this._clearSelection();var u=this;setTimeout((function(){u._selectGroup(i,r)}),100);break;default:this._clearSelection(),this._selectCell(i,r)}n+=l-n,this._scrollTop(n)}}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._pageDownKey",t.message),!1}},f.QCELL.BasicQCELL.prototype._createMergeInfo=function(){return this._createHeaderMergeInfo()&&this._createDataMergeInfo()},f.QCELL.BasicQCELL.prototype._createHeaderMergeInfo=function(){var t=this.attr("merge"),e=this.attr("headerrows"),i=this.attr("headercols"),r=this.attr("headertext"),s=this.attr("frozencols");if("none"!==t.header){var a=this.attr("merge_header_info");f._.isUndefined(a)||f._.isNull(a)||a.RT_clear(),a=[];var o,n,l,c,h=[];if(s){for(o=0;o<e;o++){for(l=[],n=0,n=0;n<i;n++)l.push("");for(n=i;n<s+i;n++)c=void 0===r[n][o]?"":r[n][o],l.push(c);h.push(l)}for(this._merge(t.header,i,a,h,0,i),h=[],o=0;o<e;o++){for(l=[],n=0,n=0;n<i;n++)l.push("");for(n=s+i;n<r.length;n++)c=void 0===r[n][o]?"":r[n][o],l.push(c);h.push(l)}this._merge(t.header,i,a,h,0,s+i)}else{for(o=0;o<e;o++){for(l=[],n=0,n=0;n<i;n++)l.push("");for(n=i;n<r.length;n++)c=void 0===r[n][o]?"":r[n][o],l.push(c);h.push(l)}this._merge(t.header,i,a,h,0,i)}this.attr("merge_header_info",a,"array")}return!0},f.QCELL.BasicQCELL.prototype._isMergeCell=function(t,e){var i=t<this.attr("headerrows")?this.attr("merge_header_info"):this.attr("merge_data_info");return!!f._.isArray(i)&&this._findMergeInfo(t,e,i)},f.QCELL.BasicQCELL.prototype._isMasterCell=function(t,e){var i=this._getMergeInfo(t,e);return null!==i&&(i.nStartRow===t&&i.nStartCol===e)},f.QCELL.BasicQCELL.prototype._isLastHeaderRowMasterCell=function(t,e){var i=this._getMergeInfo(t,e);return null!==i&&i.nStartRow===t&&i.nStartCol===e&&i.nEndRow===this.attr("headerrows")-1},f.QCELL.BasicQCELL.prototype._merge=function(t,e,i,r,s,a){"row"===t?this._mergeRow(0,e,i,r,s,a):"col"===t?this._mergeCol(0,e,i,r,s,a):"rowandcol"===t?this._mergeRowAndCol(0,e,i,r,s,a):"colandrow"===t?this._mergeColAndRow(0,e,i,r,s,a):"group"===t?this._mergeGroup(0,e,i,r,s,a):"groupandrow"===t&&this._mergeGroupAndRow(0,e,i,r,s,a)},f.QCELL.BasicQCELL.prototype._makeMergeText=function(t,e,i,r,s){var a=this.attr("headerrows"),o=this.attr("headercols"),n=this.attr("currentdata");if(n.length>0)for(var l=t;l<i;l++){var c=[],h=0;if(void 0===n[l-a])break;for(h=0;h<o;h++)c.push("");for(h=e;h<=r;h++){var u=this._getKeyOfCol(h),d=void 0===n[l-a][u]?"":n[l-a][u];c.push(d)}s.push(c)}},f.QCELL.BasicQCELL.prototype._createDataMergeInfo=function(){var t=this.attr("currentdata"),e=this.attr("vsinfo"),i=this.attr("hsinfo"),r=this.attr("headerrows"),s=this.attr("headercols"),a=this.attr("frozencols"),o=this.attr("frozenrows"),n=this.attr("frozenbottomrows"),l=this.attr("merge");if("group"===l.data||"groupandrow"===l.data)this._createDataGroupMergeInfo();else if("none"!==l.data){var c=this.attr("merge_data_info");f._.isUndefined(c)||f._.isNull(c)||c.RT_clear(),c=[];var h=[],u=e.nTopRow,d=i.nLeftCol;if(a?(this._createFCDataMergeInfo(c,r,r+o-1),this._createFCDataMergeInfo(c,e.nTopRow,e.nBottomRow)):d=s,o&&(o&&e.bVScroll?this._createFRDataMergeInfo(c):u=r),u<0)return!0;this._makeMergeText(u,d,e.nBottomRow+1,i.nRightCol,h),this._merge(l.data,s,c,h,u,d),n&&(a&&e.bVScroll&&this._createFCDataMergeInfo(c,t.length-n+r,t.length+r-1),this._createFRBDataMergeInfo(c,d)),this.attr("merge_data_info",c,"array")}return!0},f.QCELL.BasicQCELL.prototype._createDataGroupMergeInfo=function(){var t=this.attr("currentdata"),e=this.attr("vsinfo"),i=this.attr("hsinfo"),r=this.attr("headerrows"),s=this.attr("headercols"),a=this.attr("frozenrows"),o=this.attr("frozenbottomrows"),n=this.attr("merge"),l=this.attr("merge_data_info");f._.isUndefined(l)||f._.isNull(l)||l.RT_clear(),l=[];var c=[],h=e.nTopRow;if(a&&(this._makeMergeText(r,s,r+a,i.nRightCol,c),this._merge(n.data,s,l,c,r,s),c.RT_clear()),this._makeMergeText(h,s,e.nBottomRow+1,i.nRightCol,c),this._merge(n.data,s,l,c,h,s),c.RT_clear(),o){var u=t.length-o+r,d=t.length+r;this._makeMergeText(u,s,d,i.nRightCol,c),this._merge(n.data,s,l,c,u,s)}this.attr("merge_data_info",l,"array")},f.QCELL.BasicQCELL.prototype._createFRDataMergeInfo=function(t){var e=this.attr("hsinfo"),i=this.attr("headerrows"),r=this.attr("headercols"),s=this.attr("frozenrows"),a=this.attr("merge");if("none"!==a.data){var o=[],n=e.nLeftCol;this._makeMergeText(i,e.nLeftCol,s+i,e.nRightCol,o),this._merge(a.data,r,t,o,i,n)}},f.QCELL.BasicQCELL.prototype._createFRBDataMergeInfo=function(t,e){var i=this.attr("currentdata"),r=this.attr("hsinfo"),s=this.attr("headerrows"),a=this.attr("headercols"),o=this.attr("frozenbottomrows"),n=this.attr("merge");if("none"!==n.data){var l=[];this._makeMergeText(i.length-o+s,e,i.length+s,r.nRightCol,l),this._merge(n.data,a,t,l,i.length-o+s,e)}},f.QCELL.BasicQCELL.prototype._createFCDataMergeInfo=function(t,e,i){var r=this.attr("headercols"),s=this.attr("frozencols"),a=this.attr("merge");if("none"!==a.data){var o=[];this._makeMergeText(e,r,i+1,s+r-1,o),this._merge(a.data,r,t,o,e,r)}},f.QCELL.BasicQCELL.prototype._makeMergeInfo=function(t,e,i,r,s){var a={};return a.nStartRow=t,a.nStartCol=e,a.nEndRow=i,a.nEndCol=r,a.strMergeData=s,a},f.QCELL.BasicQCELL.prototype._findMergeInfo=function(t,e,i){for(var r=0;r<i.length;r++){var s=i[r];if(s.nStartRow<=t&&s.nEndRow>=t&&s.nStartCol<=e&&s.nEndCol>=e)return!0}return!1},f.QCELL.BasicQCELL.prototype._getMergeInfo=function(t,e){var i=t<this.attr("headerrows")?this.attr("merge_header_info"):this.attr("merge_data_info"),r=null;return f._.isArray(i)&&f.$.each(i,(function(i,s){if(s.nStartRow<=t&&s.nEndRow>=t&&s.nStartCol<=e&&s.nEndCol>=e)return r=s,!1})),r},f.QCELL.BasicQCELL.prototype._mergeCol=function(t,e,i,r,s,a){var o,n=r.length?r[0].length:0,l=null,c=a;for(o=e;o<n;o++){if(this._getColDataMergeCol(c)){for(var h=void 0===r[t][o]?"":r[t][o],u=0,d=t+1;d<r.length;d++)h!==r[d][o]?(u&&(l=this._makeMergeInfo(d-++u+t+s,c,d-1+s,c,h),u=0,i.push(l)),h=r[d][o]):u++;u&&(l=this._makeMergeInfo(d-++u+t+s,c,d-1+s,c,h),i.push(l))}c++}for(c=a,o=e;o<n;o++){if(void 0!==this._getColDataMergeRef(c)){var p=this._getColsOfKey(this._getColDataMergeRef(c))[0];if(void 0!==p){for(var g=[],_=0;_<i.length;_++)if(i[_].nStartCol===p){var C=f._.clone(i[_]);C.nStartCol=C.nEndCol=c,g.push(C)}for(var L=0;L<g.length;L++){for(var m=!0,E=0;E<i.length;E++)if(g[L].nStartCol===i[E].nStartCol&&g[L].nStartRow===i[E].nStartRow&&g[L].nEndRow===i[E].nEndRow){m=!1;break}m&&i.push(g[L])}}}c++}},f.QCELL.BasicQCELL.prototype._mergeColAndRow=function(t,e,i,r,s,a){for(var o=a-e,n=r.length?r[0].length:0,l=null,c=e;c<n;c++){for(var h=void 0===r[t][c]?"":r[t][c],u=0,d=t+1;d<r.length;d++)h!==r[d][c]?(u?(this._findMergeInfo(d-++u+t+s,c+o,i)||(l=this._makeMergeInfo(d-u+t+s,c+o,d-1+s,c+o,h),this._mergeColAndRowSub(l,r,s,o),i.push(l)),u=0):this._findMergeInfo(d-1+s,c+o,i)?u=0:(l=this._makeMergeInfo(d-1+s,c+o,d-1+s,c+o,h),this._mergeColAndRowSub(l,r,s,o),l.nStartRow===l.nEndRow&&l.nStartCol===l.nEndCol?l=null:i.push(l)),h=r[d][c]):u++;u?this._findMergeInfo(d-++u+t+s,c+o,i)?this._findMergeInfo(d+s-1,c+o,i)||(l=this._makeMergeInfo(d+s-1,c+o,d+s-1,c+o,h),this._mergeColAndRowSub(l,r,s,o),l.nStartRow===l.nEndRow&&l.nStartCol===l.nEndCol?l=null:i.push(l)):(l=this._makeMergeInfo(d-u+t+s,c+o,d-1+s,c+o,h),this._mergeColAndRowSub(l,r,s,o),i.push(l)):this._findMergeInfo(d-1+s,c+o,i)||(l=this._makeMergeInfo(d-1+s,c+o,d-1+s,c+o,h),this._mergeColAndRowSub(l,r,s,o),l.nStartRow===l.nEndRow&&l.nStartCol===l.nEndCol?l=null:i.push(l))}},f.QCELL.BasicQCELL.prototype._mergeColAndRowSub=function(t,e,i,r){for(var s=e.length?e[0].length:0,a=t.nEndCol+1-r;a<s;a++){for(var o=t.nStartRow-i;o<=t.nEndRow-i;o++){if(e[o][a]!==t.strMergeData)return}if(t.nStartRow-1-i>=0&&e[t.nStartRow-1-i][a]===t.strMergeData)return;if(t.nEndRow+1<e.length&&e[t.nEndRow+1-i][a]===t.strMergeData)return;t.nEndCol++}},f.QCELL.BasicQCELL.prototype._mergeRowAndCol=function(t,e,i,r,s,a){for(var o=a-e,n=t;n<r.length;n++){var l=r[n];if(!l.length)break;var c=void 0===l[e]?"":l[e],h=0,u=e+1,d=null;for(u=e+1;u<l.length;u++)c!==l[u]?(h?(this._findMergeInfo(n+s,u-++h+o,i)||(d=this._makeMergeInfo(n+s,u-h+o,n+s,u-1+o,c),this._mergeRowAndColSub(d,r,s,o),i.push(d)),h=0):this._findMergeInfo(n+s,u-1+o,i)||(d=this._makeMergeInfo(n+s,u-1+o,n+s,u-1+o,c),this._mergeRowAndColSub(d,r,s,o),d.nStartRow===d.nEndRow&&d.nStartCol===d.nEndCol?d=null:i.push(d)),c=r[n][u]):h++;h?this._findMergeInfo(n+s,u-++h+o,i)||(d=this._makeMergeInfo(n+s,u-h+o,n+s,u+o-1,c),this._mergeRowAndColSub(d,r,s,o),i.push(d)):this._findMergeInfo(n+s,u-1+o,i)||(d=this._makeMergeInfo(n+s,u-1+o,n+s,u-1+o,c),this._mergeRowAndColSub(d,r,s,o),d.nStartRow===d.nEndRow&&d.nStartCol===d.nEndCol?d=null:i.push(d))}},f.QCELL.BasicQCELL.prototype._mergeRowAndColSub=function(t,e,i,r){for(var s=t.nEndRow+1-i;s<e.length;s++){for(var a=t.nStartCol-r,o=a;o<=t.nEndCol-r;o++){var n=e[s][o];if(!f._.isUndefined(n)&&n!==t.strMergeData)return}if(e[s][a-1]===t.strMergeData||e[s][t.nEndCol+1-r]===t.strMergeData)return;t.nEndRow++}},f.QCELL.BasicQCELL.prototype._mergeRow=function(t,e,i,r,s,a){for(var o=a-e,n=t;n<r.length;n++){var l=r[n],c=null;if(!l.length)break;for(var h=void 0===l[e]?"":l[e],u=0,d=e+1;d<l.length;d++)h!==l[d]?(u&&(c=this._makeMergeInfo(n+s,d+o-++u,n+s,d-1+o,h),u=0,i.push(c)),h=r[n][d]):u++;u&&(c=this._makeMergeInfo(n+s,d-++u+o,n+s,d-1+o,h),h=l[d],u=0,i.push(c))}},f.QCELL.BasicQCELL.prototype._mergeGroup=function(t,e,i,r,s,a){this._mergeGroupSub(t,e,i,r,s,a,r.length,e)},f.QCELL.BasicQCELL.prototype._mergeGroupSub=function(t,e,i,r,s,a,o,n){if(e!==(r.length?r[0].length:0)&&0!==r.length&&this._getColDataMergeCol(e)){var l=t,c=void 0===r[t][e]?"":r[t][e],h=0,u=null;for(l=t+1;l<o;l++){var d=r[l];c!==d[e]?(h&&(u=this._makeMergeInfo(l+s-++h,e+a-n,l+s-1,e+a-n,c),h=0,i.push(u),this._mergeGroupSub(u.nStartRow-s,e+1,i,r,s,a,l,n)),c=d[e]):h++}h&&(u=this._makeMergeInfo(l+s-++h,e+a-n,l+s-1,e+a-n,c),h=0,i.push(u),this._mergeGroupSub(u.nStartRow-s,e+1,i,r,s,a,l,n))}},f.QCELL.BasicQCELL.prototype._updateMergeHeader=function(){var t=this.attr("merge_header_info");return this._updateMergeSub(t,!0),!0},f.QCELL.BasicQCELL.prototype._updateMergeData=function(){var t=this.attr("merge_data_info");return this._updateMergeSub(t,!1),!0},f.QCELL.BasicQCELL.prototype._updateMerge=function(){this._updateMergeHeader(),this._updateMergeData();var t=this;return setTimeout((function(){t._trigger("redrawed")}),0),!0},f.QCELL.BasicQCELL.prototype._updateMergeSub=function(t,e){if(!f._.isUndefined(t)&&!f._.isNull(t)){var i=this;f._.each(t,(function(t){for(var r=null,s=0,a=0,o=0,n=0,l=[],c=0,h=0,u=null,d=null,p=null,g=null,_="datepicker"===i._getColType(t.nStartCol),C=t.nStartRow;C<=t.nEndRow;C++){for(var L=t.nStartCol;L<=t.nEndCol;L++){var m=i._getCellDOM(C,L);if(void 0!==m&&!f._.isNull(m)&&f._.isNull(r)&&(r=m,o=m.offsetWidth,n=m.offsetHeight),m&&(c+=m.offsetWidth,h=m.offsetHeight,m!==r&&(l.push(m),m.style.display="none")),e&&m&&C!==t.nStartRow&&C===t.nEndRow&&L===t.nStartCol){var E,v=0;for(v=0;v<m.childNodes.length;v++)E=m.childNodes[v],f.$(E).hasClass("rt-qc-sortarea")?(d=E.cloneNode(!0),r.appendChild(d)):f.$(E).hasClass("rt-qc-filterarea")?(p=E.cloneNode(!0),r.appendChild(p)):f.$(E).hasClass("rt-qc-colheader-checkbox")?(g=E.cloneNode(!0),r.textContent="",r.appendChild(g)):f.$(E).hasClass("rt-qc-removearea")&&(u=E.cloneNode(!0),r.appendChild(u))}}c&&(s=c),h&&(a+=h),c=0}if(r){if(t.masterCell=r,t.orginWidth=o,t.orginHeight=n,t.arCells=l,t.cloneSort=d,d||p||g||u){var b=i._getQCellCol(t.nStartCol);d&&(d.style.top=a-(a/2+5)+"px",t.sortCol=t.nStartCol,b.attr("cloneSort_master",f.$(r),"jquery"),b.attr("cloneSort_sort",f.$(d),"jquery"),b.attr("cloneSort_master_height",a,"number")),p&&(b.attr("colfilterarea",f.$(p),"jquery"),f.$(p).on("mousedown",i.attr("eventparam"),f.QCELL.BasicQCELL._createFilterAreaSub)),g&&(b.attr("headerelement",r.childNodes[0],"element"),f.$(b.attr("headerelement")).on("click",{target:b.attr("colelement")},f.st.eventProcess)),u&&(u.style.top=a-(a/2+7)+"px")}r.style.width=s+"px",r.style.height=a+"px",r.setAttribute("data-endcol",t.nEndCol-t.nStartCol+1),!0===_&&!1===e&&(r.children[0].style.height=a+"px",r.children[0].children[0].style.height=a+"px"),i._getColWordwrap(t.nStartCol)?r.style.whiteSpace="pre-wrap":(e?(r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center"):r.style.lineHeight=a-2+"px",r.style.whiteSpace="nowrap")}}))}},f.QCELL.BasicQCELL.prototype._clearMergeHeader=function(){var t=this.attr("merge_header_info");this._clearMergeSub(t,!0)},f.QCELL.BasicQCELL.prototype._clearMergeData=function(){var t=this.attr("merge_data_info");this._clearMergeSub(t,!1)},f.QCELL.BasicQCELL.prototype._clearMerge=function(){this._clearMergeHeader(),this._clearMergeData()},f.QCELL.BasicQCELL.prototype._clearMergeSub=function(t,e){if(!f._.isUndefined(t)&&!f._.isNull(t)){var i=this;f._.each(t,(function(t){var r=t.arCells;if(r){for(var s=0;s<r.length;s++)r[s].style.display="";r.RT_clear()}if(!f._.isUndefined(t.masterCell)&&!f._.isNull(t.masterCell)){if(t.masterCell.style.width=t.orginWidth+"px",t.masterCell.style.height=t.orginHeight+"px",i._getColWordwrap(t.nStartCol)?t.masterCell.style.whiteSpace="pre-wrap":e?(t.masterCell.style.whiteSpace="nowrap",t.masterCell.style.display="flex",t.masterCell.style.justifyContent="center",t.masterCell.style.alignItems="center"):t.masterCell.style.lineHeight=t.orginHeight-2+"px",t.cloneSort){f.$(t.masterCell).find("."+f.$(t.cloneSort).attr("class")).remove();var a=i._getQCellCol(t.sortCol);a.attr("cloneSort_master",null,"jquery"),a.attr("cloneSort_sort",null,"jquery"),t.cloneSort=null}t.masterCell=null}}))}},f.QCELL.BasicQCELL.prototype._findNextCellRow=function(t,e,i){return"up"===i||"down"===i||"left"===i?this._findNextCellRowLeft(t,e):"right"===i?this._findNextCellRowRight(t,e):void 0},f.QCELL.BasicQCELL.prototype._findNextCellRowLeft=function(t,e){var i=this.attr("currentdata"),r=this.attr("headerrows"),s=this.attr("headercols"),a=t-r,o=i.length,n=!1,l=this.attr("frozencols");if(l&&e>=s+l&&(n=!0),!o)return{row:t,col:e};if(a<0)return{row:0+r,col:e};if(a>=o)return{row:o+r,col:e};for(var c=void 0===i[a][this._getKeyOfCol(e)]?"":i[a][this._getKeyOfCol(e)],h=e-1;;){if(h<0)return{row:t,col:0+s};if(c!==(void 0===i[a][this._getKeyOfCol(h)]?"":i[a][this._getKeyOfCol(h)]))return{row:t,col:h+1};if(l&&n&&h+s<=s+l)return{row:t,col:h+1};h--}},f.QCELL.BasicQCELL.prototype._findNextCellRowRight=function(t,e){var i=this.attr("currentdata"),r=this.attr("headerrows"),s=this.attr("headercols"),a=t-r,o=i.length,n=this.attr("cols"),l=!1,c=this.attr("frozencols");if(c&&e<s+c&&(l=!0),!o)return{row:t,col:e};if(a<0)return{row:0+r,col:e};if(a>=o)return{row:o+r,col:e};var h=void 0===i[a][this._getKeyOfCol(e)]?"":i[a][this._getKeyOfCol(e)];if((e-1>=0?void 0===i[a][this._getKeyOfCol(e-1)]?"":i[a][this._getKeyOfCol(e-1)]:h)===h&&e!==s+c){var u=0;for(u=e+1;u<n;u++){if((void 0===i[a][this._getKeyOfCol(u)]?"":i[a][this._getKeyOfCol(u)])!==h)return{row:t,col:u};if(c&&l&&u+s>=s+c)return{row:t,col:u}}for(u=e-1;u>=0;u--){if((void 0===i[a][this._getKeyOfCol(u)]?"":i[a][this._getKeyOfCol(u)])!==h)return{row:t,col:u+1};if(c&&l&&u+s>=s+c)return{row:t,col:s+c}}return{row:t,col:s}}return{row:t,col:e}},f.QCELL.BasicQCELL.prototype._findNextCellCol=function(t,e,i){return!1===this._getColDataMergeCol(e)?{row:t,col:e}:"up"===i||"right"===i||"left"===i?this._findNextCellColUp(t,e):"down"===i?this._findNextCellColDown(t,e):void 0},f.QCELL.BasicQCELL.prototype._findNextCellColUp=function(t,e){var i=this.attr("currentdata"),r=this.attr("headerrows"),s=t-r,a=i.length,o=!1,n=!1,l=this.attr("frozenrows"),c=this.attr("frozenbottomrows");if(l&&t>=r+l&&(o=!0),c&&t>=r+a-c&&(n=!0),!a)return{row:t,col:e};if(s<0)return{row:0+r,col:e};if(s>=a)return{row:a+r,col:e};for(var h=this._getKeyOfCol(e),u=void 0===i[s][h]?"":i[s][h],d=s-1;;){if(d<0)return{row:r,col:e};if(u!==(void 0===i[d][h]?"":i[d][h]))return{row:d+1+r,col:e};if(l&&o&&d+r<r+l)return{row:d+r+1,col:e};if(c&&n&&d+r<r+a-c)return{row:d+r+1,col:e};d--}},f.QCELL.BasicQCELL.prototype._findNextCellColDown=function(t,e){var i=this.attr("currentdata"),r=this.attr("headerrows"),s=t-r,a=i.length,o=!1,n=!1,l=this.attr("frozenrows"),c=this.attr("frozenbottomrows");if(l&&t<r+l&&(o=!0),c&&t<r+a-c&&(n=!0),!a)return{row:t,col:e};if(s<0)return{row:0+r,col:e};if(s>=a)return{row:a+r,col:e};var h=this._getKeyOfCol(e),u=void 0===i[s][h]?"":i[s][h];if((s-1>=0?void 0===i[s-1][h]?"":i[s-1][h]:u)===u&&t!==r+l){var d=0;for(d=s+1;d<a;d++){if((void 0===i[d][h]?"":i[d][h])!==u)return{row:d+r,col:e};if(l&&o&&d+r>=r+l)return{row:d+r,col:e};if(c&&n&&d+r>=r+a-c)return{row:d+r,col:e}}return d===a?this._findNextCellCol(t,e,"up"):{row:t-1,col:e}}},f.QCELL.BasicQCELL.prototype._findNextCellRowAndCol=function(t,e,i){return"up"===i||"down"===i||"left"===i?this._findNextCellRowAndColLeft(t,e,i):"right"===i?this._findNextCellRowAndColRight(t,e):void 0},f.QCELL.BasicQCELL.prototype._findNextCellRowAndColUpAndDown=function(t,e,i,r,s){var a=this.attr("currentdata"),o=this.attr("headerrows"),n=a.length,l=!1,c=!1,h=this.attr("frozenrows"),u=this.attr("frozenbottomrows"),d=t-o;h&&i>=o+h&&(l=!0),u&&i>=o+n-u&&(c=!0);var p=void 0===a[d][this._getKeyOfCol(e)]?"":a[d][this._getKeyOfCol(e)],f=0,g=0;if("down"===s){var _=this._getKeyOfCol(e);if((d-1>=0?void 0===a[d-1][_]?"":a[d-1][_]:p)===p&&i!==o+h){for(f=d+1;f<n;f++){if((void 0===a[f][_]?"":a[f][_])!==p)return{row:f+o,col:e};if(h&&!l&&f+o>=o+h)return{row:f+o,col:e};if(u&&!c&&f+o>=o+n-u)return{row:f+o,col:e}}return f===n?this._findNextCellRowAndCol(i,r,"up"):{row:i-1,col:e}}return{row:t,col:e}}for(f=d-1;f>=0;f--){var C=0;if(h&&l&&f+o<o+h)return{row:o+h,col:e};if(u&&c&&f+o<o+n-u)return{row:o+n-u,col:e};for(C=e;C<=r;C++)if(p!==(void 0===a[f][this._getKeyOfCol(C)]?"":a[f][this._getKeyOfCol(C)]))return{row:t-g,col:e};g++}return{row:o,col:e}},f.QCELL.BasicQCELL.prototype._findNextCellRowAndColLeft=function(t,e,i){var r=this.attr("currentdata"),s=this.attr("headerrows"),a=this.attr("headercols"),o=t-s,n=r.length,l=!1,c=this.attr("frozencols");if(c&&e>=a+c&&(l=!0),!n)return{row:t,col:e};if(o<0)return{row:0+s,col:e};if(o>=n)return{row:n+s,col:e};for(var h=void 0===r[o][this._getKeyOfCol(e)]?"":r[o][this._getKeyOfCol(e)],u=e-1;;){if(u<0)return this._findNextCellRowAndColUpAndDown(t,0+a,t,e,i);if(h!==(void 0===r[o][this._getKeyOfCol(u)]?"":r[o][this._getKeyOfCol(u)]))return this._findNextCellRowAndColUpAndDown(t,u+1,t,e,i);if(c&&l&&u+a<=a+c)return this._findNextCellRowAndColUpAndDown(t,u+1,t,e,i);u--}},f.QCELL.BasicQCELL.prototype._findNextCellRowAndColRight=function(t,e,i){var r=this.attr("currentdata"),s=this.attr("headerrows"),a=this.attr("headercols"),o=t-s,n=r.length,l=this.attr("cols"),c=!1,h=this.attr("frozencols");if(h&&e<a+h&&(c=!0),!n)return{row:t,col:e};if(o<0)return{row:0+s,col:e};if(o>=n)return{row:n+s,col:e};var u=void 0===r[o][this._getKeyOfCol(e)]?"":r[o][this._getKeyOfCol(e)];if((e-1>=0?void 0===r[o][this._getKeyOfCol(e-1)]?"":r[o][this._getKeyOfCol(e-1)]:u)===u&&e!==a+h){var d=0;for(d=e+1;d<l;d++){if((void 0===r[o][this._getKeyOfCol(d)]?"":r[o][this._getKeyOfCol(d)])!==u)return this._findNextCellRowAndColUpAndDown(t,d,t,d,i);if(h&&c&&d+a>=a+h)return this._findNextCellRowAndColUpAndDown(t,d,t,d,i)}for(d=e-1;d>=0;d--){if((void 0===r[o][this._getKeyOfCol(d)]?"":r[o][this._getKeyOfCol(d)])!==u)return this._findNextCellRowAndColUpAndDown(t,d+1,t,d+1,i);if(h&&c&&d+a>=a+h)return this._findNextCellRowAndColUpAndDown(t,a+h,t,a+h,i)}return this._findNextCellRowAndColUpAndDown(t,a,t,a,i)}return this._findNextCellRowAndColUpAndDown(t,e,t,e,i)},f.QCELL.BasicQCELL.prototype._findNextCellColAndRow=function(t,e,i){return"up"===i||"right"===i||"left"===i?this._findNextCellColAndRowUp(t,e,i):"down"===i?this._findNextCellColAndRowDown(t,e,i):void 0},f.QCELL.BasicQCELL.prototype._findNextCellColAndRowLeftAndRight=function(t,e,i,r,s){var a=this.attr("currentdata"),o=this.attr("headerrows"),n=this.attr("headercols"),l=t-o,c=i-o,h=a.length,u=this.attr("cols"),d=!1,p=this.attr("frozencols");if(p&&r>=n+p&&(d=!0),!h)return{row:i,col:r};if(l<0)return{row:0+o,col:r};if(l>=h)return{row:h+o,col:r};var f=void 0===a[l][this._getKeyOfCol(r)]?"":a[l][this._getKeyOfCol(r)],g=r-1,_="",C=0;if("right"===s){var L=void 0===a[l][this._getKeyOfCol(r)]?"":a[l][this._getKeyOfCol(r)];if((r-1>=0?void 0===a[l][this._getKeyOfCol(r-1)]?"":a[l][this._getKeyOfCol(r-1)]:L)===L&&r!==n+p){for(C=r+1;C<u;C++){if((void 0===a[l][this._getKeyOfCol(C)]?"":a[l][this._getKeyOfCol(C)])!==L)return this._findNextCellColAndRowUp(t,C,"up");if(p&&!d&&C+n>=n+p)return{row:t,col:C}}for(C=r-1;C>=0;C--){if((void 0===a[l][this._getKeyOfCol(C)]?"":a[l][this._getKeyOfCol(C)])!==L)return{row:t,col:C+1};if(p&&!d&&C+n>=n+p)return{row:t,col:n+p}}return{row:t,col:n}}return{row:t,col:r}}for(;;){if(g<0)return{row:t,col:0+n};for(_=this._getKeyOfCol(g),C=l;C<=c;C++)if(f!==(void 0===a[C][_]?"":a[C][_]))return{row:t,col:g+1};if(p&&d&&g+n<=n+p)return{row:t,col:g+1};g--}},f.QCELL.BasicQCELL.prototype._findNextCellColAndRowUp=function(t,e,i){var r=this.attr("currentdata"),s=this.attr("headerrows"),a=t-s,o=r.length,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows");if(c&&t>=s+c&&(n=!0),h&&t>=s+o-h&&(l=!0),!o)return{row:t,col:e};if(a<0)return{row:0+s,col:e};if(a>=o)return{row:o+s,col:e};for(var u=this._getKeyOfCol(e),d=void 0===r[a][u]?"":r[a][u],p=a-1;;){if(p<0)return this._findNextCellColAndRowLeftAndRight(s,e,t,e,i);if(d!==(void 0===r[p][u]?"":r[p][u]))return this._findNextCellColAndRowLeftAndRight(p+1+s,e,t,e,i);if(c&&n&&p+s<s+c)return this._findNextCellColAndRowLeftAndRight(p+1+s,e,t,e,i);if(h&&l&&p+s<s+o-h)return this._findNextCellColAndRowLeftAndRight(p+1+s,e,t,e,i);p--}},f.QCELL.BasicQCELL.prototype._findNextCellColAndRowDown=function(t,e,i){var r=this.attr("currentdata"),s=this.attr("headerrows"),a=t-s,o=r.length,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows");if(c&&t<s+c&&(n=!0),h&&t<s+o-h&&(l=!0),!o)return{row:t,col:e};if(a<0)return{row:0+s,col:e};if(a>=o)return{row:o+s,col:e};var u=this._getKeyOfCol(e),d=void 0===r[a][u]?"":r[a][u];if((a-1>=0?void 0===r[a-1][u]?"":r[a-1][u]:d)===d&&t!==s+c){var p=0;for(p=a+1;p<o;p++){if((void 0===r[p][u]?"":r[p][u])!==d)return this._findNextCellColAndRowLeftAndRight(p+s,e,p+s,e,i);if(c&&n&&p+s>=s+c)return this._findNextCellColAndRowLeftAndRight(p+s,e,p+s,e,i);if(h&&l&&p+s>=s+o-h)return this._findNextCellColAndRowLeftAndRight(p+s,e,p+s,e,i)}return p===o?this._findNextCellColAndRow(t,e,"up"):this._findNextCellColAndRowLeftAndRight(t-1,e,t-1,e,i)}return this._findNextCellColAndRowLeftAndRight(t,e,t,e,i)},f.QCELL.BasicQCELL.prototype._findNextCellGroup=function(t,e,i){return!1===this._getColDataMergeCol(e)?{row:t,col:e}:"up"===i||"left"===i||"right"===i?this._findNextCellGroupUp(t,e,i):this._findNextCellGroupDown(t,e)},f.QCELL.BasicQCELL.prototype._findNextCellGroupUp=function(t,e,i){var r=this.attr("currentdata"),s=this.attr("headerrows"),a=this.attr("headercols"),o=r.length+s,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows"),u=s;return c&&t>=s+c&&(n=!0),h&&t>=o-h&&(l=!0),o?(c&&n?u=s+c:c&&!n&&(u=s),h&&l&&(u=o-h),this._findNextCellGroupUpSub(t,e,u,a)):{row:t,col:e}},f.QCELL.BasicQCELL.prototype._findNextCellGroupUpSub=function(t,e,i,r){if(i===t)return{row:t,col:e};if(r>e)return{row:i,col:e};var s=this.attr("currentdata"),a=this.attr("headerrows"),o=t-a;if(r>this.attr("cols"))return{row:i,col:e};for(var n=this._getKeyOfCol(r),l=void 0===s[o][n]?"":s[o][n],c=t-1;c>=i;c--)if(l!==(void 0===s[c-a][n]?"":s[c-a][n]))return this._findNextCellGroupUpSub(t,e,c+1,++r);return this._findNextCellGroupUpSub(t,e,i,++r)},f.QCELL.BasicQCELL.prototype._findNextCellGroupDown=function(t,e,i){var r=this.attr("currentdata"),s=this.attr("headerrows"),a=this.attr("headercols"),o=r.length+s,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows"),u=o;return c&&t>=s+c&&(n=!0),h&&t>=o-h&&(l=!0),t===s||t===s+c||t===o-h?{row:t,col:e}:o?(h&&!l&&(u=o-h),c&&!n&&(u=s+c),this._findNextCellGroupDownSub(t,e,u,a)):{row:t,col:e}},f.QCELL.BasicQCELL.prototype._findNextCellGroupDownSub=function(t,e,i,r){if(i===t)return{row:t,col:e};if(r>e)return{row:i,col:e};var s=this.attr("currentdata"),a=this.attr("headerrows"),o=t-a,n=s.length+a;if(r>this.attr("cols"))return{row:o,col:e};var l=this._getKeyOfCol(r),c=void 0===s[o][l]?"":s[o][l];if((void 0===s[o-1][l]?"":s[o-1][l])===c){var h=0;for(h=t+1;h<i;h++)if(c!==(void 0===s[h-a][l]?"":s[h-a][l]))return this._findNextCellGroupDownSub(t,e,h,++r);return r===e&&h===n?this._findNextCellGroupUp(t,e,"up"):this._findNextCellGroupDownSub(t,e,i,++r)}return this._findNextCellGroupDownSub(t,e,t,++r)},f.QCELL.BasicQCELL.prototype._findNextCell=function(t,e,i){var r=this.attr("merge");if("none"===r.data)return{row:t,col:e};var s=r.data;return"row"===s?this._findNextCellRow(t,e,i):"col"===s?this._findNextCellCol(t,e,i):"rowandcol"===s?this._findNextCellRowAndCol(t,e,i):"colandrow"===s?this._findNextCellColAndRow(t,e,i):"group"===s?this._findNextCellGroup(t,e,i):"groupandrow"===s?this._findNextCellGroupAndRow(t,e,i):{row:t,col:e}},f.QCELL.BasicQCELL.prototype._mergeGroupAndRow=function(t,e,i,r,s,a){this._mergeGroupAndRowSub(t,e,i,r,s,a,r.length,e)},f.QCELL.BasicQCELL.prototype._mergeGroupAndRowSub=function(t,e,i,r,s,a,o,n){var l=r.length?r[0].length:0;if(e!==l&&0!==r.length&&this._getColDataMergeCol(e)){var c,h=t,u=this.attr("headercols")>0?0:1,d=void 0===r[t][e]?"":r[t][e],p=0,f=null;for(h=t+1;h<o;h++){var g=r[h];if(d!==g[e]){if(p)f=this._makeMergeInfo(h+s-++p,e+a-n,h+s-1,e+a-n,d),p=0,i.push(f),this._mergeGroupAndRowSub(f.nStartRow-s,e+1,i,r,s,a,h,n);else for(c=e+1;c<l;c++){if(d!==r[h-1][c]){if((f=this._makeMergeInfo(h+s-1,e+a-n,h+s-1,c-n-u,d)).nStartCol===f.nEndCol)break;i.push(f);break}if(c+1===l){if((f=this._makeMergeInfo(h+s-1,e+a-n,h+s-1,c-n-u,d)).nStartCol===f.nEndCol)break;i.push(f)}}d=g[e]}else p++}if(p)f=this._makeMergeInfo(h+s-++p,e+a-n,h+s-1,e+a-n,d),p=0,i.push(f),this._mergeGroupAndRowSub(f.nStartRow-s,e+1,i,r,s,a,h,n);else for(c=e+1;c<l;c++){if(d!==r[h-1][c]){if((f=this._makeMergeInfo(h+s-1,e+a-n,h+s-1,c-n-u,d)).nStartCol===f.nEndCol)break;i.push(f);break}if(c+1===l){if((f=this._makeMergeInfo(h+s-1,e+a-n,h+s-1,c-n-u,d)).nStartCol===f.nEndCol)break;i.push(f)}}}},f.QCELL.BasicQCELL.prototype._findNextCellGroupAndRow=function(t,e,i){if(!1===this._getColDataMergeCol(e))return{row:t,col:e};for(var r,s=this.attr("merge_data_info"),a=0;a<s.length;a++)if((r=s[a]).nStartRow<=t&&t<=r.nEndRow&&r.nStartCol<=e&&e<=r.nEndCol)return"down"===i?r.nEndRow+1===this.getRows()||t===r.nStartRow&&e===r.nStartCol||r.nStartRow===r.nEndRow?{row:r.nStartRow,col:r.nStartCol}:{row:r.nEndRow+1,col:r.nStartCol}:"right"===i?t===r.nStartRow&&e===r.nStartCol?{row:r.nStartRow,col:r.nStartCol}:{row:r.nStartRow,col:r.nEndCol+1}:{row:r.nStartRow,col:r.nStartCol};return{row:t,col:e}},f.QCELL.BasicQCELL.prototype._mergedCheckboxClick=function(t,e,i){var r=this.attr("merge");if("col"===r.data||"group"===r.data||"groupandrow"===r.data){var s=t,a=this.getRows()-1,o=!0===i?this._getColElement(e).attr("checkedvalue"):this._getColElement(e).attr("uncheckedvalue");if(void 0!==this._getColDataMergeRef(e)){for(var n=this._getColDataMergeRef(e),l=this.getCellDataEx(t,n),c=t;c>=this.attr("headerrows");c--){if(l!==this.getCellDataEx(c,n)){s=c+1;break}this.setCellData(c,e,o)}for(var h=t;h<this.getRows();h++){if(l!==this.getCellDataEx(h,n)){a=h-1;break}this.setCellData(h,e,o)}this._trigger("merged_checkbox_changed",{status:o,col:e,startrow:s,endrow:a})}}},f.QCELL.BasicQCELL.prototype._afterPaginationNext=function(){var t=this.attr("paginationinfo");if(t.lastindex=Math.ceil(t.datacount/t.pageunit),"simple"===t.mode)t.pageindex<t.lastindex&&(t.nextpage=!0,t.lastpage=!0),t.pageindex>t.firstindex&&(t.prevpage=!0,t.firstpage=!0);else{var e=Math.ceil(t.pageindex/t.pagecount);e<Math.ceil(t.lastindex/t.pagecount)&&t.pageindex!==t.lastindex&&(t.nextpage=!0),e>1&&(t.prevpage=!0),t.pageindex<t.lastindex&&(t.lastpage=!0),t.pageindex>1&&(t.firstpage=!0)}if(0===t.result.length?(t.pageindex=0,t.firstindex=0,t.datacount=0,t.lastindex=0,t.nextpage=!1,t.lastpage=!1):t.firstindex=1,"create"===this.attr("_afterpagination")){var i=this.attr("_afterpagination_hep"),r=this.attr("_afterpagination_div");i.appendChild(this._createPaginationInner(r)),this._updateCurrentData(t.result),this._initRowheaderData(),i=null,r=null}else"movepage"===this.attr("_afterpagination")&&(this._updatePagination(),this._trigger("aftermovepage"))},f.QCELL.BasicQCELL.prototype._afterPagination=function(){var t,e=this.getID(),i=this.attr("paginationinfo"),r=i.beforeSendCallback,s=i.sendFailCallback,a=i.sendDoneCallback,o=i.parsingErrorCallback,n=i.sendAlwaysCallback,l=void 0!==i.useProgress&&i.useProgress,c=void 0!==i.currentData&&f._.isArray(i.currentData)&&i.currentData.length>0?i.currentData:f._.clone(this.attr("data").input);if(i.result.RT_clear(),i.result=null,i.result=[],!1!==f._.isUndefined(i.url)||!0!==f._.isUndefined(i.loadonce)&&!1!==i.loadonce){var h=0;if(!0===i.totalsort&&!1===f._.isEmpty(this.attr("sortinfo"))){var u=f._.clone(this.attr("sortinfo")),d=[];for(f._.each(u,(function(t){d.push(f._.clone(t))})),h=0;h<d.length;h++)d[h][0]=this._getKeyOfCol(d[h][0]);1===d.length?f.util.RT_sortBy(c,d[0][0],d[0][1],d[0][2]):d.length>1&&f.util.RT_sortBy(c,d)}for(h=(i.pageindex-1)*i.pageunit;h<i.pageindex*i.pageunit&&!1===f._.isUndefined(c[h])&&(i.result.push(c[h]),h!==c.length-1);h++);this._afterPaginationNext()}else{var p=[];!0===i.totalsort&&!1===f._.isEmpty(this.attr("sortinfo"))&&(f._.each(this.attr("sortinfo"),(function(i,r){t=f.QCELL.getInstance(e);var s={};s.sortKey=t._getKeyOfCol(i[0]),s.sortType=i[1],p.push(s),t=null})),i.sort=p),i.initsort&&(i.sort=void 0,this._clearSortUI(),i.initsort=!1);var g={pageindex:i.pageindex,pageunit:i.pageunit,param:JSON.stringify(i.param),sort:JSON.stringify(i.sort)};void 0!==r&&f._.isFunction(r)&&(g=r(g)),!0===l&&this.showProgress(),setTimeout((function(){f.$.post(i.url,g,(function(r){try{t=f.QCELL.getInstance(e),r=r instanceof Object?r:JSON.parse(r),i.result=r instanceof Object&&r.data instanceof Object?f._.clone(r.data):f._.clone(JSON.parse(r.data)),i.datacount=r instanceof Object?f._.clone(r.datacount):0,t._afterPaginationNext(),t=null}catch(s){t=f.QCELL.getInstance(e),void 0!==o&&f._.isFunction(o)&&o(s,r),r={},i.result={},i.datacount=0,t._afterPaginationNext(),t=null}r=null})).done((function(){void 0!==a&&f._.isFunction(a)&&a()})).fail((function(){void 0!==s&&f._.isFunction(s)&&s()})).always((function(){void 0!==n&&f._.isFunction(n)&&n(),!0===l&&((t=f.QCELL.getInstance(e)).hideProgress(),t=null)}),100)}))}c=null},f.QCELL.BasicQCELL.prototype._calculatePaginationInfo=function(t,e){var i,r=this.getID(),s=this.attr("paginationinfo"),a=s.beforeSendCallback,o=s.sendFailCallback,n=s.sendDoneCallback,l=s.parsingErrorCallback,c=s.sendAlwaysCallback,h=void 0!==s.useProgress&&s.useProgress,u=void 0!==s.currentData&&f._.isArray(s.currentData)&&s.currentData.length>0?s.currentData:f._.clone(this.attr("data").input);if(!0!==this.attr("isResizing")){if(this.attr("isResizing",!1,"boolean"),s.firstpage=!1,s.prevpage=!1,s.nextpage=!1,s.lastpage=!1,s.firstindex=1,s.lastindex=f._.isUndefined(s.lastindex)?1:s.lastindex,s.pageindex=f._.isUndefined(s.pageindex)?1:s.pageindex,s.datacount=u.length,s.result=f._.isUndefined(s.result)?[]:s.result,s.load=!f._.isUndefined(s.load)&&s.load,s.totalsort=!f._.isUndefined(s.totalsort)&&s.totalsort,s.initsort=!f._.isUndefined(s.initsort)&&s.initsort,s.mode=f._.isUndefined(s.mode)?"simple":s.mode,s.pagecount=f._.isUndefined(s.pagecount)?5:s.pagecount,s.extendmove=!f._.isUndefined(s.extendmove)&&s.extendmove,0!==s.datacount&&0===s.pageindex&&(s.pageindex=1),!1===f._.isUndefined(t)&&(s.pageindex=t),t<=s.firstindex?s.pageindex=s.firstindex:t>=s.lastindex&&(s.pageindex=s.lastindex),!1===f._.isUndefined(e)&&(s.pageunit=e,s.pageindex=s.firstindex),(!0===s.allowsameindex||s.pageindex!==this.attr("_prevPageIndex")||s.pageunit!==this.attr("_prevPageUnit"))&&!0!==this.attr("bRebuildWithPrevData")&&!0!==this.attr("clearingdata")){if(!1===f._.isUndefined(s.url)&&!1===f._.isUndefined(s.loadonce)&&!0===s.loadonce&&!1===s.load){!0===s.totalsort&&!1===f._.isEmpty(this.attr("sortinfo"))&&(s.sort=f._.clone(this.attr("sortinfo"))),s.initsort&&(s.sort=void 0,this._clearSortUI(),s.initsort=!1),f.$.ajaxSettings.async=!1;var d={param:JSON.stringify(s.param),sort:JSON.stringify(s.sort)};void 0!==a&&f._.isFunction(a)&&(d=a(d)),!0===h&&this.showProgress(),setTimeout((function(){f.$.post(s.url,d,(function(t){try{i=f.QCELL.getInstance(r),t=t instanceof Object?t:JSON.parse(t),i.attr("data").input=t instanceof Object&&t.data instanceof Object?f._.clone(t.data):f._.clone(JSON.parse(t.data)),u=t instanceof Object&&t.data instanceof Object?f._.clone(t.data):f._.clone(JSON.parse(t.data)),s.datacount=t instanceof Object?f._.clone(u.length):0,s.load=!0,i.attr("_prevPageIndex",s.pageindex,"number"),i.attr("_prevPageUnit",s.pageunit,"number"),i=null}catch(e){i=f.QCELL.getInstance(r),void 0!==l&&f._.isFunction(l)&&l(e,t),i.attr("data").input=[],u=[],s.datacount=0,s.load=!0,i.attr("_prevPageIndex",s.pageindex,"number"),i.attr("_prevPageUnit",s.pageunit,"number"),i=null}})).done((function(){void 0!==n&&f._.isFunction(n)&&n()})).fail((function(){void 0!==o&&f._.isFunction(o)&&o()})).always((function(){void 0!==c&&f._.isFunction(c)&&c(),!0===h&&((i=f.QCELL.getInstance(r)).hideProgress(),i=null)}),100),f.$.ajaxSettings.async=!0,(i=f.QCELL.getInstance(r))._afterPagination(),i=null}))}else this._afterPagination();u=null}}else this.attr("isResizing",!1,"boolean")},f.QCELL.BasicQCELL.prototype._movePage=function(t,e){var i=this.attr("paginationinfo");this.removeAttr("_backGT"),this.attr("colsearchuivisible")&&this._removeColSearUIArea(),this._isContextMenu()||this._removeContextMenu(),(f._.isUndefined(i.totalsort)||!1===i.totalsort)&&this._clearSortUI(),this.attr("_afterpagination","movepage","string");for(var r=this.attr("currentdata"),s=0;s<r.length;s++)void 0!==r[s]._rt_qc_style&&null!==r[s]._rt_qc_style&&delete r[s]._rt_qc_style;r=null,this._calculatePaginationInfo(t,e)},f.QCELL.BasicQCELL.prototype._updatePagination=function(){this._setCurrentData(f._.clone(this.attr("paginationinfo").result),!0);var t=this.attr("elementpool"),e=t.get("paginationpanel");if(t.get("$paginationpanel").empty(),e.appendChild(this._createPaginationInner(document.createElement("div"))),"normal"===f.QCELL.module)for(var i=this.attr("headercols"),r=this.attr("cols");i<r;i++)if("checkbox"===this._getColType(i)){for(var s=this._getColElement(i).attr("checkedvalue"),a=this.attr("currentdata").length,o=this.attr("headerrows"),n=0,l=0;l<a;l++){var c=l+o;this._cellValue(c,i)===s&&n++}n===a?this._getColElement(i)._isHeaderCheckbox(i)&&!1===this._getColElement(i)._getHeaderCheckedState(i)&&this._getColElement(i)._setHeaderChecked(i,!0):this._getColElement(i)._isHeaderCheckbox(i)&&this._getColElement(i)._getHeaderCheckedState(i)&&this._getColElement(i)._setHeaderChecked(i,!1)}},f.QCELL.BasicQCELL.prototype._setPaginationParam=function(t){try{return this.attr("paginationinfo").param=f._.clone(t),this.attr("paginationinfo").load=!1,!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._setPaginationParam",t.message),!1}},f.QCELL.BasicQCELL.prototype._calculatePaginationInfoCreate=function(t,e){var i=this,r=this.attr("paginationinfo"),s=r.beforeSendCallback,a=r.sendFailCallback,o=r.sendDoneCallback,n=r.sendAlwaysCallback,l=r.parsingErrorCallback,c=void 0!==r.useProgress&&r.useProgress,h=void 0!==r.currentData&&f._.isArray(r.currentData)&&r.currentData.length>0?r.currentData:f._.clone(this.attr("data").input);if(!0===this.attr("isResizing"))return this.attr("isResizing",!1,"boolean"),!1;if(this.attr("isResizing",!1,"boolean"),r.firstpage=!1,r.prevpage=!1,r.nextpage=!1,r.lastpage=!1,r.firstindex=1,r.lastindex=f._.isUndefined(r.lastindex)?1:r.lastindex,r.pageindex=f._.isUndefined(r.pageindex)?1:r.pageindex,r.datacount=h.length,r.result=f._.isUndefined(r.result)?[]:r.result,r.load=!f._.isUndefined(r.load)&&r.load,r.totalsort=!f._.isUndefined(r.totalsort)&&r.totalsort,r.initsort=!f._.isUndefined(r.initsort)&&r.initsort,r.mode=f._.isUndefined(r.mode)?"simple":r.mode,r.pagecount=f._.isUndefined(r.pagecount)?5:r.pagecount,r.extendmove=!f._.isUndefined(r.extendmove)&&r.extendmove,0!==r.datacount&&0===r.pageindex&&(r.pageindex=1),!1===f._.isUndefined(t)&&(r.pageindex=t),t<=r.firstindex?r.pageindex=r.firstindex:t>=r.lastindex&&(r.pageindex=r.lastindex),!1===f._.isUndefined(e)&&(r.pageunit=e,r.pageindex=r.firstindex),!0!==r.allowsameindex&&r.pageindex===this.attr("_prevPageIndex")&&r.pageunit===this.attr("_prevPageUnit"))return!1;if(!0===this.attr("bRebuildWithPrevData"))return!1;if(!1===f._.isUndefined(r.url)&&!1===f._.isUndefined(r.loadonce)&&!0===r.loadonce&&!1===r.load){!0===r.totalsort&&!1===f._.isEmpty(this.attr("sortinfo"))&&(r.sort=f._.clone(this.attr("sortinfo"))),r.initsort&&(r.sort=void 0,i._clearSortUI(),r.initsort=!1),f.$.ajaxSettings.async=!1;var u={param:JSON.stringify(r.param),sort:JSON.stringify(r.sort)};void 0!==s&&f._.isFunction(s)&&(u=s(u)),!0===c&&this.showProgress(),f.$.post(r.url,u,(function(t){try{t=t instanceof Object?t:JSON.parse(t),i.attr("data").input=t instanceof Object&&t.data instanceof Object?f._.clone(t.data):f._.clone(JSON.parse(t.data)),h=t instanceof Object&&t.data instanceof Object?f._.clone(t.data):f._.clone(JSON.parse(t.data)),r.datacount=t instanceof Object?f._.clone(h.length):0,r.load=!0,i.attr("_prevPageIndex",r.pageindex,"number"),i.attr("_prevPageUnit",r.pageunit,"number")}catch(e){void 0!==l&&f._.isFunction(l)&&l(e,t),i.attr("data").input=[],h=[],r.datacount=0,r.load=!0,i.attr("_prevPageIndex",r.pageindex,"number"),i.attr("_prevPageUnit",r.pageunit,"number")}})).done((function(){void 0!==o&&f._.isFunction(o)&&o()})).fail((function(){void 0!==a&&f._.isFunction(a)&&a()})).always((function(){void 0!==n&&f._.isFunction(n)&&n(),!0===c&&i.hideProgress()})),f.$.ajaxSettings.async=!0}if(r.result.RT_clear(),!0!==this.attr("clearingdata"))if(!1!==f._.isUndefined(r.url)||!0!==f._.isUndefined(r.loadonce)&&!1!==r.loadonce){var d=0;if(!0===r.totalsort&&!1===f._.isEmpty(this.attr("sortinfo"))){var p=f._.clone(this.attr("sortinfo")),g=[];for(f._.each(p,(function(t){g.push(f._.clone(t))})),d=0;d<g.length;d++)g[d][0]=this._getKeyOfCol(g[d][0]);1===g.length?f.util.RT_sortBy(h,g[0][0],g[0][1],g[0][2]):g.length>1&&f.util.RT_sortBy(h,g)}for(d=(r.pageindex-1)*r.pageunit;d<r.pageindex*r.pageunit&&!1===f._.isUndefined(h[d])&&(r.result.push(h[d]),d!==h.length-1);d++);}else{var _=[];!0===r.totalsort&&!1===f._.isEmpty(this.attr("sortinfo"))&&(f._.each(this.attr("sortinfo"),(function(t,e){var r={};r.sortKey=i._getKeyOfCol(t[0]),r.sortType=t[1],_.push(r)})),r.sort=_),r.initsort&&(r.sort=void 0,i._clearSortUI(),r.initsort=!1),f.$.ajaxSettings.async=!1;var C={pageindex:r.pageindex,pageunit:r.pageunit,param:JSON.stringify(r.param),sort:JSON.stringify(r.sort)};void 0!==s&&f._.isFunction(s)&&(C=s(C)),!0===c&&this.showProgress(),f.$.post(r.url,C,(function(t){try{t=t instanceof Object?t:JSON.parse(t),r.result=t instanceof Object&&t.data instanceof Object?f._.clone(t.data):f._.clone(JSON.parse(t.data)),r.datacount=t instanceof Object?f._.clone(t.datacount):0}catch(e){void 0!==l&&f._.isFunction(l)&&l(e,t),r.result={},r.datacount=0}})).done((function(){void 0!==o&&f._.isFunction(o)&&o()})).fail((function(){void 0!==a&&f._.isFunction(a)&&a()})).always((function(){void 0!==n&&f._.isFunction(n)&&n(),!0===c&&i.hideProgress()})),f.$.ajaxSettings.async=!0}if(r.lastindex=Math.ceil(r.datacount/r.pageunit),"simple"===r.mode)r.pageindex<r.lastindex&&(r.nextpage=!0,r.lastpage=!0),r.pageindex>r.firstindex&&(r.prevpage=!0,r.firstpage=!0);else{var L=Math.ceil(r.pageindex/r.pagecount);L<Math.ceil(r.lastindex/r.pagecount)&&r.pageindex!==r.lastindex&&(r.nextpage=!0),L>1&&(r.prevpage=!0),r.pageindex<r.lastindex&&(r.lastpage=!0),r.pageindex>1&&(r.firstpage=!0)}return 0===r.result.length?(r.pageindex=0,r.firstindex=0,r.datacount=0,r.lastindex=0,r.nextpage=!1,r.lastpage=!1):r.firstindex=1,!0},f.QCELL.BasicQCELL.prototype._initProps=function(){try{var t,e=this.attr("qcellcols"),i=this.attr("colkeysinfo");this.attr("cols",t=e.length,"number"),this.attr("headercols",this.attr("rowheaders").length,"number"),this.attr("headerrows",f._.max(e,(function(t){return t.attr("title").length})).attr("title").length,"number"),this.attr("colwidths",f._.map(e,(function(t){return t.attr("width")})),"array"),this.attr("colkeys",f._.map(e,(function(t){return t.attr("key")})),"array"),this.attr("colids",f._.map(e,(function(t){return t.attr("id")})),"array"),f._.each(this.attr("colkeys"),(function(t,e){!1===i.containsKey(t)&&i.put(t,new r._QHashSet),i.get(t).add(e)}));for(var s=f._.map(e,(function(t){return t.attr("id")})),a=f._.range(0,t),o=[],n=0;n<s.length;n++)o.push([s[n],a[n]]);if(this.attr("colidsinfo",f._.fromPairs(o),"object"),this.attr("headertext",f._.map(e,(function(t){return t.attr("title")})),"array"),null!==this.attr("hiddencolsprops")){var l=[],c=this.attr("hiddencolsprops");if(null!=c)for(var h=0;h<c.length;h++)l.push({key:c[h].key,title:c[h].title});this.attr("hiddenheadertext",l,"object")}return void 0!==f._.find(this.attr("colwidths"),(function(t){return t.indexOf("%")>-1}))&&this.attr("percentcolwidth",!0,"boolean"),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._initProps",t.message),null}},f.QCELL.BasicQCELL.prototype._getSumOfRowHeight=function(t,e){for(var i=0,r=this.attr("rowheight").header,s=this.attr("rowheight").data,a=this.attr("headerrows"),o=t;o<=e;o++)i+=o<a?r:s;return i},f.QCELL.BasicQCELL.prototype._getSumOfColWidth=function(t,e){for(var i=0,r=this.attr("colwidthsperpixel"),s=t;s<=e;s++)i+=r[s];return i},f.QCELL.BasicQCELL.prototype._getSumOfRowHeight=function(t,e){var i=this.attr("dynamicrowheight"),r=this.attr("rowheight").data,s=this.attr("headerrows"),a=0;if(t>=s?a=(e-t+1)*r:(a=(s-t)*this.attr("rowheight").header,a+=(e-s+1)*r),i.size()>0){for(var o=i.keys().sort(f.st.asc),n=t;n<=e;n++)f._.indexOf(o,n,!0)>-1&&(a+=i.get(n)-r);o=null}return a},f.QCELL.BasicQCELL.prototype._adjustFrozenCount=function(){return this._adjustFrozenColsCount()&&this._adjustFrozenRowsCount()},f.QCELL.BasicQCELL.prototype._adjustFrozenColsCount=function(){try{if(!1===this.attr("hsinfo").bHScroll)this.attr("frozencols",0,"number");else{var t=this.getProperties();this.attr("frozencols",t.frozencols,"number")}return this._setHSRange(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._adjustFrozenColsCount",t.message),!1}},f.QCELL.BasicQCELL.prototype._adjustFrozenRowsCount=function(){try{if(!1===this.attr("vsinfo").bVScroll)this.attr("frozenrows",0,"number"),!0!==this._isPanel()&&this.attr("frozenbottomrows",0,"number");else{var t=this.getProperties();this.attr("frozenrows",t.frozenrows,"number"),this.attr("frozenbottomrows",t.frozenbottomrows,"number")}return this._setVSRange(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._adjustFrozenRowsCount",t.message),!1}},f.QCELL.BasicQCELL.prototype._updateIdx=function(t,e,i,r){var s=this._idx("row",t,"current"),a=this._idx("col",t,"current");if(!1===f.QCELL.config.sethtmlclicktoidx&&void 0!==r)return this._idx("row",t,"current",-1),this._idx("col",t,"current",-1),!0;if(e!==s||i!==a){if(this._idx("row",t,"previous",s),this._idx("col",t,"previous",a),this._idx("row",t,"current",e),this._idx("col",t,"current",i),"click"===t&&-1!==e&&-1!==i){if(void 0!==r&&!f.$(r.target).hasClass("rt-qc-cell"))return!0;this._trigger("dataclicked")}return"focus"===t&&this._trigger("focuschanged"),!0}return"click"===t&&-1!==e&&-1!==i&&(void 0!==r&&!f.$(r.target).hasClass("rt-qc-cell")||(this._trigger("dataclicked"),!0))},f.QCELL.BasicQCELL.prototype._getTotalColWidth=function(){var t=this.attr("colwidths"),e=this.attr("headercols"),i=this.attr("layoutsize").container.clientWidth,r=this.attr("headercolwidth")*e;if(this.attr("percentcolwidth")){var s=f._.reduce(t.slice(0,e),(function(t,e){return t+parseFloat(e)}),0),a=f._.reduce(t.slice(e,t.length),(function(t,e){return t+parseFloat(e)}),0);return s+(i-r-(this.attr("vsinfo").bVScroll?this.attr("scrollbarwidth"):0))*a/100}return f._.reduce(t,(function(t,e){return t+parseFloat(e)}),0)},f.QCELL.BasicQCELL.prototype._calculateRealColWidth=function(){var t=this.attr("layoutsize"),e=this.attr("headercols");if(this.attr("percentcolwidth")){var i=0,r=0;this.attr("colwidthsperpixel",f._.map(this.attr("colwidths"),(function(s,a){if(a<e)return parseFloat(s);var o=t.viewport.offsetWidth,n=parseFloat(s),l=Math.ceil(o*parseFloat(s)/100);return 100===(i+=n)&&(l=o-r),r+=l,l})),"array")}else this.attr("colwidthsperpixel",f._.map(this.attr("colwidths"),(function(t){return parseFloat(t)})),"array")},f.QCELL.BasicQCELL.prototype._calculateDynamicCols=function(){try{var t=this.attr("hsinfo"),e=this.attr("headercols"),i=this.attr("cols"),r=0;if(this.attr("useall")||this.attr("usetreeall"))r=i-e;else if(i-e>0){var s,a,o,n,l,c=this.attr("frozencols"),h=this.attr("layoutsize").viewport.offsetWidth,u=this._getSumOfColWidth(e,e+c-1);for(s=e+c,o=i;s<o;s++){for(n=u,l=c,a=s;a<o&&!(n>=h);a++)n+=this._getColWidth(a),l+=1;l>r&&(r=l)}for(s=i-1,o=e+c;s>=o;s--){for(n=u,l=c,a=s;a>=o&&!(n>=h);a--)n+=this._getColWidth(a),l+=1;l>r&&(r=l)}}return t.nDynamicCols=r,!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._calculateDynamicCols",t.message),!1}},f.QCELL.BasicQCELL.prototype._calculateDynamicRows=function(){try{var t=this.attr("vsinfo"),e=this.attr("headerrows"),i=this.attr("rows"),r=0;if(i-e>0){var s,a,o,n,l=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),h=this.attr("layoutsize").viewport.offsetHeight;for(o=this._getSumOfRowHeight(e,e+l-1)+(0===c?0:this._getSumOfRowHeight(i-c,i-1)),n=l+c,s=e+l,a=i-c;s<a&&!(o>=h);s++)o+=this._getRowHeight(s),n+=1;r=n,t.nDynamicRows=r}return t.nDynamicRows=r,!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._calculateDynamicRows",t.message),!1}},f.QCELL.BasicQCELL.prototype._initLayoutSize=function(){try{var t,e=this.attr("layoutsize"),i=this.attr("vsinfo"),r=this.attr("hsinfo"),s=this.attr("rowheight"),a=this.attr("paginationinfo"),o=this.attr("elementpool"),n=o.get("root"),l=o.get("panel"),c=o.get("container"),h=o.get("paginationpanel"),u=o.get("sheetpanel"),d=o.get("viewport"),p=o.get("footerrowheader"),g=o.get("footer"),_=o.get("edgeheader"),C=o.get("rowheader"),L=o.get("colheader"),m=o.get("hscrollbar"),E=o.get("vscrollbar"),v=this.attr("headerrows"),b=this.attr("footerrows"),y=this.attr("headercols"),w=s.header,x=s.data,Q=s.footer*b,k=this.attr("scrollbarwidth"),T=f.$(this.attr("parent")),R=T.width();n.style.width=this.attr("width"),n.style.height=this.attr("height"),e.root={offsetLeft:n.offsetLeft,offsetTop:n.offsetTop,offsetWidth:n.offsetWidth>T.width()?T.width():n.offsetWidth,offsetHeight:n.offsetHeight,clientWidth:n.clientWidth>T.width()?T.width():n.clientWidth,clientHeight:n.clientHeight},l.style.width=e.root.clientWidth+"px",l.style.height="0px",l.style.display="none",e.panel={offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},this.attr("useGroupUI")&&(l.style.width=e.root.clientWidth+"px",l.style.height="40px",l.style.display="block",e.panel={offsetTop:l.offsetTop,offsetWidth:l.offsetWidth,offsetHeight:l.offsetHeight,clientWidth:l.clientWidth,clientHeight:l.clientHeight}),u.style.width=l.style.width,u.style.height=this.attr("bottompanelheight")+"px",u.style.left=e.container.clientX+"px",u.style.top=e.root.offsetTop+(e.root.offsetHeight-parseFloat(u.style.height))+"px",u.style.display="none",e.sheetpanel={offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},this.attr("bottompanel")&&(u.style.display="block",e.sheetpanel={offsetTop:u.offsetTop,offsetWidth:u.offsetWidth,offsetHeight:u.offsetHeight,clientWidth:u.clientWidth,clientHeight:u.clientHeight}),h.style.width=l.style.width,h.style.height=!1===f._.isEmpty(a)?"30px":"0px",h.style.top=e.root.offsetTop+(e.root.offsetHeight-parseFloat(h.style.height))-e.sheetpanel.offsetHeight+"px",e.paginationpanel=!1===f._.isEmpty(a)?{offsetTop:h.offsetTop,offsetWidth:h.offsetWidth,offsetHeight:h.offsetHeight,clientWidth:h.clientWidth,clientHeight:h.clientHeight}:{offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},h.style.display=!1===f._.isEmpty(a)&&e.paginationpanel.clientHeight>0?"":"none","none"===l.style.display?c.style.top="":c.style.top=e.panel.offsetTop+e.panel.offsetHeight+"px",c.style.width=l.style.width,c.style.height=e.root.clientHeight-e.panel.offsetHeight-e.sheetpanel.offsetHeight-e.paginationpanel.offsetHeight+"px",t=o.get("$container").offset(),e.container={clientX:parseInt(t.left),clientY:parseInt(t.top),offsetTop:c.offsetTop,offsetWidth:c.offsetWidth,offsetHeight:c.offsetHeight,clientWidth:c.clientWidth,clientHeight:c.clientHeight},_.style.width=y*this.attr("headercolwidth")+"px",_.style.height=v*w+"px",e.edgeheader={offsetWidth:_.offsetWidth,offsetHeight:_.offsetHeight,clientWidth:_.clientWidth,clientHeight:_.clientHeight},i.bVScroll=this.attr("currentdata").length*x>e.container.offsetHeight-e.edgeheader.offsetHeight-Q,L.style.width=e.container.offsetWidth-e.edgeheader.offsetWidth-(i.bVScroll?k:0)+"px",void 0===e.colheader&&(e.colheader={}),e.colheader={offsetWidth:e.container.offsetWidth-e.edgeheader.offsetWidth-(i.bVScroll?k:0),offsetHeight:0,clientWidth:0,clientHeight:0},r.bHScroll=this._getTotalColWidth()>e.edgeheader.offsetWidth+e.colheader.offsetWidth,d.style.height=e.container.offsetHeight-e.edgeheader.offsetHeight-Q-(r.bHScroll?k:0)+"px",e.viewport={offsetWidth:0,offsetHeight:d.offsetHeight,clientWidth:0,clientHeight:0},!1===i.bVScroll&&r.bHScroll&&(i.bVScroll=this.attr("currentdata").length*x>e.viewport.offsetHeight,i.bVScroll&&(L.style.width=e.container.offsetWidth-e.edgeheader.offsetWidth-k+"px")),L.style.height=_.style.height,L.style.left=e.edgeheader.offsetWidth+_.offsetLeft+"px",e.colheader.offsetLeft=L.offsetLeft,e.colheader.offsetTop=L.offsetTop,e.colheader.offsetWidth=L.offsetWidth,e.colheader.offsetHeight=L.offsetHeight,e.colheader.clientWidth=L.clientWidth,e.colheader.clientHeight=L.clientHeight,d.style.width=L.style.width,d.style.left=L.style.left,d.style.top=e.edgeheader.offsetHeight+_.offsetTop+"px",e.viewport.offsetLeft=d.offsetLeft,e.viewport.offsetTop=d.offsetTop,e.viewport.offsetWidth=d.offsetWidth,e.viewport.clientWidth=d.clientWidth,e.viewport.clientHeight=d.clientHeight,C.style.width=_.style.width,C.style.height=d.style.height,C.style.top=d.style.top,e.rowheader={offsetWidth:C.offsetWidth,offsetHeight:C.offsetHeight,clientWidth:C.clientWidth,clientHeight:C.clientHeight},p.style.width=C.style.width,p.style.height=Q+"px",p.style.top=e.viewport.offsetHeight+d.offsetTop+"px",void 0===e.footerrowheader&&(e.footerrowheader={}),0===Q?(e.footerrowheader={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},p.style.display="none"):(e.footerrowheader={offsetWidth:p.offsetWidth,offsetHeight:p.offsetHeight,clientWidth:p.clientWidth,clientHeight:p.clientHeight},p.style.display=""),g.style.width=L.style.width,g.style.height=p.style.height,g.style.left=L.style.left,g.style.top=p.style.top,void 0===e.footer&&(e.footer={}),0===Q?(e.footer={offsetTop:e.viewport.offsetTop+e.viewport.offsetHeight,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},g.style.display="none"):(e.footer={offsetTop:g.offsetTop,offsetWidth:g.offsetWidth,offsetHeight:g.offsetHeight,clientWidth:g.clientWidth,clientHeight:g.clientHeight},g.style.display=""),this._calculateRealColWidth(),void 0===e.hscrollbar&&(e.hscrollbar={}),r.bHScroll?(m.style.display="",m.style.width=e.rowheader.offsetWidth+e.viewport.offsetWidth+1+"px",m.style.height=k+1+"px",m.style.top=e.footer.offsetTop+e.footer.offsetHeight+"px",e.hscrollbar={offsetWidth:m.offsetWidth,offsetHeight:m.offsetHeight,clientWidth:m.clientWidth,clientHeight:m.clientHeight}):(m.style.display="none",e.hscrollbar={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0}),void 0===e.vscrollbar&&(e.vscrollbar={}),i.bVScroll?(E.style.display="",E.style.width=k+"px",E.style.height=e.container.offsetHeight-e.hscrollbar.offsetHeight+2+"px",E.style.left=e.colheader.offsetLeft+e.colheader.offsetWidth+"px",e.vscrollbar={offsetWidth:E.offsetWidth,offsetHeight:E.offsetHeight,clientWidth:E.clientWidth,clientHeight:E.clientHeight}):(E.style.display="none",e.vscrollbar={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0}),this.attr("tooltipvisible",!1,"boolean");var A=this.getID();return setTimeout((function(){if(R>T.width()){var t=f.QCELL.getInstance(A);null!=t&&t._initLayoutSize()}}),0),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._initLayoutSize",t.message),!1}},f.QCELL.BasicQCELL.prototype._getRowHeight=function(t){var e=this.attr("dynamicrowheight"),i=this.attr("rowheight"),r=this.attr("headerrows"),s=i.header,a=i.data;return t<r?s:e.containsKey(t)?e.get(t):a},f.QCELL.BasicQCELL.prototype._initRowheaderData=function(){var t=this.attr("rowheaders"),e=this.attr("headerrows"),i=this.attr("currentdata").length,r=[],s=[],a=0,o=0;for(a=0;a<e;a++){var n=[];for(o=0;o<t.length;o++)"checkbox"===t[o]?n.push(!0):n.push(!1);s.push(n)}for(a=0;a<i;a++){var l=[],c=[];for(o=0;o<t.length;o++)"sequence"===t[o]?(l.push(a+1),c.push(!1)):"reverse"===t[o]?(l.push(i-a),c.push(!1)):"checkbox"===t[o]||"radio"===t[o]?(l.push(!1),c.push(!0)):"state"===t[o]?(l.push("n"),c.push(!1)):"custom"===t[o]&&(l.push(""),c.push(!1));r.push(l),s.push(c)}return this.attr("rowheaderdata",r,"array"),this.attr("rowheadercheckboxclick",s,"array"),!0},f.QCELL.BasicQCELL.prototype._updateRowheaderData=function(t,e){var i=this.attr("rowheaders"),r=this.attr("headerrows"),s=this.attr("currentdata").length,a=[],o=[],n=0,l=0;for(n=0;n<r;n++){var c=[];for(l=0;l<i.length;l++)"checkbox"===i[l]?c.push(!0):c.push(!1);o.push(c)}for(n=0;n<s;n++){var h=[],u=[];for(l=0;l<i.length;l++)if("sequence"===i[l])h.push(n+1),u.push(!1);else if("reverse"===i[l])h.push(s-n),u.push(!1);else if("checkbox"===i[l]){var d=!1,p=!0;!1===f._.isUndefined(t[n])&&(d=!f._.isUndefined(t[n][l])&&t[n][l]),!1===f._.isUndefined(e[n])&&(p=!!f._.isUndefined(e[n][l])||e[n][l]),h.push(d),u.push(p)}else"state"===i[l]?(h.push(this._getRowState(n+1)),u.push(!1)):(h.push(""),u.push(!1));a.push(h),o.push(u)}return this.attr("rowheaderdata",a,"array"),this.attr("rowheadercheckboxclick",o,"array"),!0},f.QCELL.BasicQCELL.prototype._getRowheaderData=function(t,e){return t-=this.attr("headerrows"),void 0!==this.attr("rowheaderdata")[t]&&this.attr("rowheaderdata")[t][e]},f.QCELL.BasicQCELL.prototype._setRowheaderData=function(t,e,i){var r=this.attr("rowheaders"),s=!0;if((t-=this.attr("headerrows"))>=this.attr("rowheaderdata").length)return!1;if("sequence"===r[e]||"reverse"===r[e])!1===f._.isNumber(i)&&(s=!1);else if("checkbox"===r[e])!1===f._.isBoolean(i)&&(s=!1);else{if("radio"===r[e]){for(var a=0;a<this.attr("rowheaderdata").length;a++)a===t?this.attr("rowheaderdata")[t][e]=i:this.attr("rowheaderdata")[a][e]=!1;return!1}s=!1}if(s)if(t<0)for(var o=0;o<this.attr("rowheaderdata").length;o++)this.attr("rowheaderdata")[o][e]=i;else this.attr("rowheaderdata")[t][e]=i;return s},f.QCELL.BasicQCELL.prototype._rowheaderCheckboxClick=function(t,e,i){var r,s=this._getCellDOM(t,e).childNodes[0],a=s.name,o=-1,n=-1,l=!1,c=!1;if(!0!==s.disabled)if(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),a.indexOf("_all")>-1){var h=a.replace("_all",""),u=document.getElementsByName(h);s.checked=i;for(var d=0;d<u.length;d++)o=(r=u[d].parentNode).getAttribute("data-row"),n=r.getAttribute("data-col"),l=this._getQCellCol(n).attr("cellinvisible")[o],c=this._getQCellCol(n).attr("celldisabled")[o],l||c||(u[d].checked=i);for(var p=this.attr("headerrows");p<this.attr("rows");p++)l=this._getQCellCol(e).attr("cellinvisible")[p],c=this._getQCellCol(e).attr("celldisabled")[p],l||c||this._setRowheaderData(p,e,i)}else{var f=this._getCellDOM(0,e).childNodes[0];if(this._setRowheaderData(t,e,i),s.checked=i,i){for(var g=0,_=this.attr("headerrows"),C=this.attr("rows");_<C;_++)!0===this._getRowheaderData(_,e)&&g++;g===this.attr("rowheaderdata").length&&(f.checked=!0)}else!0===f.checked&&(f.checked=!1)}},f.QCELL.BasicQCELL.prototype._setRowheaderState=function(t,e){var i=f.$(t),r=this._getRowState(e),s=f.QCELL.def.css;if("n"!==r||!i.hasClass(s.ROWHEADER_STATE_INIT))switch(i.removeClass(s.ROWHEADER_STATE_INSERT),i.removeClass(s.ROWHEADER_STATE_UPDATE),i.removeClass(s.ROWHEADER_STATE_DELETE),i.removeClass(s.ROWHEADER_STATE_INIT),r){case"n":i.addClass(s.ROWHEADER_STATE_INIT);break;case"i":i.addClass(s.ROWHEADER_STATE_INSERT);break;case"u":i.addClass(s.ROWHEADER_STATE_UPDATE);break;case"d":i.addClass(s.ROWHEADER_STATE_DELETE)}},f.QCELL.BasicQCELL.prototype._setRowheaderCustom=function(t,e,i){var r,s,a=this.attr("headerrows"),o=this.attr("rowheaderoptions");if(null!=o)for(var n=0;n<o.length;n++)void 0!==(r=o[n]).col&&r.col===i&&(e<a?void 0!==r.header&&f._.isFunction(r.header)&&(s=r.header(this,e,i),t.innerHTML=s):void 0!==r.data&&f._.isFunction(r.data)&&(s=r.data(this,e,i),t.innerHTML=s))},f.$((function(){var t,e="rt_qc_mCSbar",i="rt_qc_mCS",r=".rt_qc_mCSbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0},target:null},a=0,o={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,h=["rt_qc_mCSB_dragger_onDrag","rt_qc_mCSB_scrollTools_onDrag","rt_qc_mCS_img_loaded","rt_qc_mCS_disabled","rt_qc_","rt_qc_mCS_no_scrollbar","rt_qc_mCS-autoHide","rt_qc_mCS-dir-rtl","rt_qc_mCS_no_scrollbar_y","rt_qc_mCS_no_scrollbar_x","rt_qc_mCS_y_hidden","rt_qc_mCS_x_hidden","rt_qc_mCSB_draggerContainer","rt_qc_mCSB_buttonUp","rt_qc_mCSB_buttonDown","rt_qc_mCSB_buttonLeft","rt_qc_mCSB_buttonRight"],u={init:function(t){t=f.$.extend(!0,{},s,t);var e,l=d.call(this);if(t.live){e=t.liveSelector||this.selector||r;var c=f.$(e);if("off"===t.live)return void g(e);o[e]=setTimeout((function(){c.rt_qc_mCSbar(t),"once"===t.live&&c.length&&g(e)}),500)}else g(e);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":_(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!==n(t.mouseWheel)&&!0===t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=C(t.scrollButtons.scrollType),p(t),f.$(l).each((function(){var e=f.$(this);if(!e.data(i)){e.data(i,{idx:++a,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var r=e.data(i),s=r.opt,o=e.data("mcs-axis"),n=e.data("mcs-scrollbar-position"),l=e.data("mcs-theme");o&&(s.axis=o),n&&(s.scrollbarPosition=n),l&&(s.theme=l,p(s)),L.call(this),r&&s.callbacks.onCreate&&"function"==typeof s.callbacks.onCreate&&s.callbacks.onCreate.call(this),f.$("#rt_qc_mCSB_"+r.idx+"_container img:not(."+h[2]+")").addClass(h[2]),u.update.call(null,e)}}))},update:function(t,e){var r=t||d.call(this);return f.$(r).each((function(){var t=f.$(this);if(t.data(i)){var r=t.data(i),s=r.opt,a=f.$("#rt_qc_mCSB_"+r.idx+"_container"),o=f.$("#rt_qc_mCSB_"+r.idx),n=[f.$("#rt_qc_mCSB_"+r.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+r.idx+"_dragger_horizontal")];if(!a.length)return;r.tweenRunning&&Y(t),e&&r&&s.callbacks.onBeforeUpdate&&"function"==typeof s.callbacks.onBeforeUpdate&&s.callbacks.onBeforeUpdate.call(this),t.hasClass(h[3])&&t.removeClass(h[3]),t.hasClass(h[4])&&t.removeClass(h[4]),o.css("max-height","none"),o.height()!==t.height()&&o.css("max-height",t.height()),E.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||a.css("width",m(a)),r.overflowed=x.call(this),A.call(this),s.autoDraggerLength&&b.call(this),y.call(this),k.call(this);var l=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)];"x"!==s.axis&&(r.overflowed[0]?n[0].height()>n[0].parent().height()?Q.call(this):($(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),r.contentReset.y=null):(Q.call(this),"y"===s.axis?R.call(this):"yx"===s.axis&&r.overflowed[1]&&$(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(r.overflowed[1]?n[1].width()>n[1].parent().width()?Q.call(this):($(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),r.contentReset.x=null):(Q.call(this),"x"===s.axis?R.call(this):"yx"===s.axis&&r.overflowed[0]&&$(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),e&&r&&(2===e&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===e&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),K.call(this)}}))},scrollTo:function(t,e,r){if(null!=t){var s=d.call(this);return f.$(s).each((function(){var s=f.$(this);if(s.data(i)){var a=s.data(i),o=a.opt,n={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=f.$.extend(!0,{},n,e),c=G.call(this,t),h=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=V.call(this,c[0],"y"),c[1]=V.call(this,c[1],"x"),l.moveDragger&&(c[0]*=a.scrollRatio.y,c[1]*=a.scrollRatio.x),l.dur=at()?0:h,setTimeout((function(){null!==c[0]&&void 0!==c[0]&&"x"!==o.axis&&a.overflowed[0]&&(l.dir="y",l.overwrite="all",$(s,c[0].toString(),l,r)),null!==c[1]&&void 0!==c[1]&&"y"!==o.axis&&a.overflowed[1]&&(l.dir="x",l.overwrite="none",$(s,c[1].toString(),l,r))}),l.timeout)}}))}},stop:function(){var t=d.call(this);return f.$(t).each((function(){var t=f.$(this);t.data(i)&&Y(t)}))},disable:function(t){var e=d.call(this);return f.$(e).each((function(){var e=f.$(this);e.data(i)&&(e.data(i),K.call(this,"remove"),R.call(this),t&&Q.call(this),A.call(this,!0),e.addClass(h[3]))}))},destroy:function(){var t=d.call(this);return f.$(t).each((function(){var r=f.$(this);if(r.data(i)){var s=r.data(i),a=s.opt,o=f.$("#rt_qc_mCSB_"+s.idx),n=f.$("#rt_qc_mCSB_"+s.idx+"_container"),l=f.$(".rt_qc_mCSB_"+s.idx+"_scrollbar");a.live&&g(a.liveSelector||f.$(t).selector),K.call(this,"remove"),R.call(this),Q.call(this),r.removeData(i),tt(this,"mcs"),l.remove(),n.find("img."+h[2]).removeClass(h[2]),o.replaceWith(n.contents()),r.removeClass(e+" _"+i+"_"+s.idx+" "+h[6]+" "+h[7]+" "+h[5]+" "+h[3]).addClass(h[4])}}))}},d=function(){return"object"!==n(f.$(this))||f.$(this).length<1?r:this},p=function(t){t.autoDraggerLength=!(f.$.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(f.$.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(f.$.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=f.$.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=f.$.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},g=function(t){o[t]&&(clearTimeout(o[t]),tt(o,t))},_=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},C=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},L=function(){var t=f.$(this),r=t.data(i),s=r.opt,a=s.autoExpandScrollbar?" "+h[1]+"_expand":"",o=["<div id='rt_qc_mCSB_"+r.idx+"_scrollbar_vertical' class='rt_qc_mCSB_scrollTools rt_qc_mCSB_"+r.idx+"_scrollbar rt_qc_mCS-"+s.theme+" rt_qc_mCSB_scrollTools_vertical"+a+"'><div class='"+h[12]+"'><div id='rt_qc_mCSB_"+r.idx+"_dragger_vertical' class='rt_qc_mCSB_dragger' style='position:absolute;'><div class='rt_qc_mCSB_dragger_bar' /></div><div class='rt_qc_mCSB_draggerRail' /></div></div>","<div id='rt_qc_mCSB_"+r.idx+"_scrollbar_horizontal' class='rt_qc_mCSB_scrollTools rt_qc_mCSB_"+r.idx+"_scrollbar rt_qc_mCS-"+s.theme+" rt_qc_mCSB_scrollTools_horizontal"+a+"'><div class='"+h[12]+"'><div id='rt_qc_mCSB_"+r.idx+"_dragger_horizontal' class='rt_qc_mCSB_dragger' style='position:absolute;'><div class='rt_qc_mCSB_dragger_bar' /></div><div class='rt_qc_mCSB_draggerRail' /></div></div>"],n="yx"===s.axis?"rt_qc_mCSB_vertical_horizontal":"x"===s.axis?"rt_qc_mCSB_horizontal":"rt_qc_mCSB_vertical",l="yx"===s.axis?o[0]+o[1]:"x"===s.axis?o[1]:o[0],c="yx"===s.axis?"<div id='rt_qc_mCSB_"+r.idx+"_container_wrapper' class='rt_qc_mCSB_container_wrapper' />":"",u=s.autoHideScrollbar?" "+h[6]:"",d="x"!==s.axis&&"rtl"===r.langDir?" "+h[7]:"";s.setWidth&&t.css("width",s.setWidth),s.setHeight&&t.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===r.langDir?"989999px":s.setLeft,t.addClass(e+" _"+i+"_"+r.idx+u+d).wrapInner("<div id='rt_qc_mCSB_"+r.idx+"' class='rt_qc_mCSBox rt_qc_mCS-"+s.theme+" "+n+"'><div id='rt_qc_mCSB_"+r.idx+"_container' class='rt_qc_mCSB_container' style='position:relative; top:"+s.setTop+"; left:"+s.setLeft+";' dir='"+r.langDir+"' /></div>");var p=f.$("#rt_qc_mCSB_"+r.idx),g=f.$("#rt_qc_mCSB_"+r.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||g.css("width",m(g)),"outside"===s.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),p.addClass("rt_qc_mCSB_outside").after(l)):(p.addClass("rt_qc_mCSB_inside").append(l),g.wrap(c)),v.call(this);var _=[f.$("#rt_qc_mCSB_"+r.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+r.idx+"_dragger_horizontal")];_[0].css("min-height",_[0].height()),_[1].css("min-width",_[1].width())},m=function(t){var e=[t[0].scrollWidth,Math.max.apply(Math,t.children().map((function(){return f.$(this).outerWidth(!0)})).get())],i=t.parent().width();return e[0]>i?e[0]:e[1]>i?e[1]:"100%"},E=function(){var t=f.$(this).data(i),e=t.opt,r=f.$("#rt_qc_mCSB_"+t.idx+"_container");if(e.advanced.autoExpandHorizontalScroll&&"y"!==e.axis){r.css({width:"auto","min-width":0,"overflow-x":"scroll"});var s=Math.ceil(r[0].scrollWidth);3===e.advanced.autoExpandHorizontalScroll||2!==e.advanced.autoExpandHorizontalScroll&&s>r.parent().width()?r.css({width:s,"min-width":"100%","overflow-x":"inherit"}):r.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='rt_qc_mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(r[0].getBoundingClientRect().right+.4)-Math.floor(r[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},v=function(){var t=f.$(this).data(i),e=t.opt,r=f.$(".rt_qc_mCSB_"+t.idx+"_scrollbar:first"),s=rt(e.scrollButtons.tabindex)?"tabindex='"+e.scrollButtons.tabindex+"'":"",a=["<a title='QCell scroll up' href='#' class='"+h[13]+"' "+s+" />","<a title='QCell scroll down' href='#' class='"+h[14]+"' "+s+" />","<a title='QCell scroll left' href='#' class='"+h[15]+"' "+s+" />","<a title='QCell scroll right' href='#' class='"+h[16]+"' "+s+" />"],o=["x"===e.axis?a[2]:a[0],"x"===e.axis?a[3]:a[1],a[2],a[3]];e.scrollButtons.enable&&r.prepend(o[0]).append(o[1]).next(".rt_qc_mCSB_scrollTools").prepend(o[2]).append(o[3])},b=function(){var t=f.$(this).data(i),e=f.$("#rt_qc_mCSB_"+t.idx),r=f.$("#rt_qc_mCSB_"+t.idx+"_container"),s=[f.$("#rt_qc_mCSB_"+t.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+t.idx+"_dragger_horizontal")],a=[e.height()/r.outerHeight(!1),e.width()/r.outerWidth(!1)],o=[parseInt(s[0].css("min-height")),Math.round(a[0]*s[0].parent().height()),parseInt(s[1].css("min-width")),Math.round(a[1]*s[1].parent().width())],n=l&&o[1]<o[0]?o[0]:o[1],c=l&&o[3]<o[2]?o[2]:o[3];s[0].css({height:n,"max-height":s[0].parent().height()-10}).find(".rt_qc_mCSB_dragger_bar").css({"line-height":o[0]+"px"}),s[1].css({width:c,"max-width":s[1].parent().width()-10})},y=function(){var t=f.$(this).data(i),e=f.$("#rt_qc_mCSB_"+t.idx),r=f.$("#rt_qc_mCSB_"+t.idx+"_container"),s=[f.$("#rt_qc_mCSB_"+t.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+t.idx+"_dragger_horizontal")],a=[r.outerHeight(!1)-e.height(),r.outerWidth(!1)-e.width()],o=[a[0]/(s[0].parent().height()-s[0].height()),a[1]/(s[1].parent().width()-s[1].width())];t.scrollRatio={y:o[0],x:o[1]}},w=function(t,e,i){var r=i?h[0]+"_expanded":"",s=t.closest(".rt_qc_mCSB_scrollTools");"active"===e?(t.toggleClass(h[0]+" "+r),s.toggleClass(h[1]),t[0]._draggable=t[0]._draggable?0:1):t[0]._draggable||("hide"===e?(t.removeClass(h[0]),s.removeClass(h[1])):(t.addClass(h[0]),s.addClass(h[1])))},x=function(){var t=f.$(this).data(i),e=f.$("#rt_qc_mCSB_"+t.idx),r=f.$("#rt_qc_mCSB_"+t.idx+"_container"),s=null===t.overflowed?r.height():r.outerHeight(!1),a=null===t.overflowed?r.width():r.outerWidth(!1),o=r[0].scrollHeight,n=r[0].scrollWidth;return o>s&&(s=o),n>a&&(a=n),[s>e.height(),a>e.width()]},Q=function(){var t=f.$(this),e=t.data(i),r=e.opt,s=f.$("#rt_qc_mCSB_"+e.idx),a=f.$("#rt_qc_mCSB_"+e.idx+"_container"),o=[f.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")];if(Y(t),("x"!==r.axis&&!e.overflowed[0]||"y"===r.axis&&e.overflowed[0])&&(o[0].add(a).css("top",0),$(t,"_resetY")),"y"!==r.axis&&!e.overflowed[1]||"x"===r.axis&&e.overflowed[1]){var n=0,l=0;"rtl"===e.langDir&&(n=s.width()-a.outerWidth(!1),l=Math.abs(n/e.scrollRatio.x)),a.css("left",n),o[1].css("left",l),$(t,"_resetX")}},k=function(){var t=f.$(this),e=t.data(i),r=e.opt;e.bindEvents||(O.call(this),r.contentTouchScroll&&D.call(this),I.call(this),r.mouseWheel.enable&&T(t),H.call(this),F.call(this),r.advanced.autoScrollOnFocus&&U.call(this),r.scrollButtons.enable&&z.call(this),r.keyboard.enable&&W.call(this),e.bindEvents=!0)},T=function(t){var e=setTimeout((function(){f.$.event.special.mousewheel?(clearTimeout(e),N.call(t[0])):T(t)}),100)},R=function(){var t=f.$(this),e=t.data(i),r=e.opt,s=i+"_"+e.idx,a=".rt_qc_mCSB_"+e.idx+"_scrollbar",o=f.$("#rt_qc_mCSB_"+e.idx+",#rt_qc_mCSB_"+e.idx+"_container,#rt_qc_mCSB_"+e.idx+"_container_wrapper,"+a+" ."+h[12]+",#rt_qc_mCSB_"+e.idx+"_dragger_vertical,#rt_qc_mCSB_"+e.idx+"_dragger_horizontal,"+a+">a"),n=f.$("#rt_qc_mCSB_"+e.idx+"_container");r.advanced.releaseDraggableSelectors&&o.add(f.$(r.advanced.releaseDraggableSelectors)),r.advanced.extraDraggableSelectors&&o.add(f.$(r.advanced.extraDraggableSelectors)),e.bindEvents&&(f.$(document).add(f.$(!M()||window.top.document)).unbind("."+s),o.each((function(){f.$(this).unbind("."+s)})),clearTimeout(t[0]._focusTimeout),tt(t[0],"_focusTimeout"),clearTimeout(e.sequential.step),tt(e.sequential,"step"),clearTimeout(n[0].onCompleteTimeout),tt(n[0],"onCompleteTimeout"),e.bindEvents=!1)},A=function(t){var e=f.$(this),r=e.data(i),s=r.opt,a=f.$("#rt_qc_mCSB_"+r.idx+"_container_wrapper"),o=a.length?a:f.$("#rt_qc_mCSB_"+r.idx+"_container"),n=[f.$("#rt_qc_mCSB_"+r.idx+"_scrollbar_vertical"),f.$("#rt_qc_mCSB_"+r.idx+"_scrollbar_horizontal")],l=[n[0].find(".rt_qc_mCSB_dragger"),n[1].find(".rt_qc_mCSB_dragger")];"x"!==s.axis&&(r.overflowed[0]&&!t?(n[0].add(l[0]).add(n[0].children("a")).css("display","block"),o.removeClass(h[8]+" "+h[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&l[0].css("display","none"),o.removeClass(h[10])):(n[0].css("display","none"),o.addClass(h[10])),o.addClass(h[8]))),"y"!==s.axis&&(r.overflowed[1]&&!t?(n[1].add(l[1]).add(n[1].children("a")).css("display","block"),o.removeClass(h[9]+" "+h[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&l[1].css("display","none"),o.removeClass(h[11])):(n[1].css("display","none"),o.addClass(h[11])),o.addClass(h[9]))),r.overflowed[0]||r.overflowed[1]?e.removeClass(h[5]):e.addClass(h[5])},S=function(t){var e,i=t.type,r=t.target.ownerDocument!==document&&null!==window.frameElement?[f.$(window.frameElement).offset().top,f.$(window.frameElement).offset().left]:null,s=M()&&t.target.ownerDocument!==window.top.document&&null!==window.frameElement?[f.$(t.view.window.frameElement).offset().top,f.$(t.view.window.frameElement).offset().left]:[0,0];switch(i){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":e=r?[t.originalEvent.pageY-r[0]+s[0],t.originalEvent.pageX-r[1]+s[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];break;case"touchstart":case"touchmove":case"touchend":var a=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],o=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;e=t.target.ownerDocument!==document?[a.screenY,a.screenX,o>1]:[a.pageY,a.pageX,o>1];break;default:e=r?[t.pageY-r[0]+s[0],t.pageX-r[1]+s[1],!1]:[t.pageY,t.pageX,!1]}return e},O=function(){var t,e,r,s=f.$(this),a=s.data(i),o=a.opt,n=i+"_"+a.idx,h=["rt_qc_mCSB_"+a.idx+"_dragger_vertical","rt_qc_mCSB_"+a.idx+"_dragger_horizontal"],u=f.$("#rt_qc_mCSB_"+a.idx+"_container"),d=f.$("#"+h[0]+",#"+h[1]),p=o.advanced.releaseDraggableSelectors?d.add(f.$(o.advanced.releaseDraggableSelectors)):d,g=o.advanced.extraDraggableSelectors?f.$(!M()||window.top.document).add(f.$(o.advanced.extraDraggableSelectors)):f.$(!M()||window.top.document);function _(e,i,r,n){var l,c;u[0].idleTimer=o.scrollInertia<233?250:0,t.attr("id")===h[1]?(l="x",c=(t[0].offsetLeft-i+n)*a.scrollRatio[l]):(l="y",c=(t[0].offsetTop-e+r)*a.scrollRatio[l]),$(s,c.toString(),{dir:l,drag:!0})}d.bind("contextmenu."+n,(function(t){t.preventDefault()})).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,(function(i){if(i.stopImmediatePropagation(),i.preventDefault(),et(i)){c=!0,l&&(document.onselectstart=function(){return!1}),q.call(u,!1),Y(s);var a=(t=f.$(this)).offset(),n=S(i)[0]-a.top,h=S(i)[1]-a.left,d=t.height()+a.top,p=t.width()+a.left;n<d&&n>0&&h<p&&h>0&&(e=n,r=h),w(t,"active",o.autoExpandScrollbar)}})).bind("touchmove."+n,(function(i){i.stopImmediatePropagation(),i.preventDefault();var s=t.offset(),a=S(i)[0]-s.top,o=S(i)[1]-s.left;_(e,r,a,o)})),f.$(document).add(g).bind("mousemove."+n+" pointermove."+n+" MSPointerMove."+n,(function(i){if(t){var s=t.offset(),a=S(i)[0]-s.top,o=S(i)[1]-s.left;if(e===a&&r===o)return;_(e,r,a,o)}})).add(p).bind("mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n,(function(e){t&&(w(t,"active",o.autoExpandScrollbar),t=null),c=!1,l&&(document.onselectstart=null),q.call(u,!0)}))},D=function(){var e,r,s,a,o,n,l,h,u,d,p,g,_,C,L=f.$(this),m=L.data(i),E=m.opt,v=i+"_"+m.idx,b=f.$("#rt_qc_mCSB_"+m.idx),y=f.$("#rt_qc_mCSB_"+m.idx+"_container"),w=[f.$("#rt_qc_mCSB_"+m.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+m.idx+"_dragger_horizontal")],x=[],Q=[],k="yx"===E.axis?"none":"all",T=[],R=y.find("iframe"),A=["touchstart."+v+" pointerdown."+v+" MSPointerDown."+v,"touchmove."+v+" pointermove."+v+" MSPointerMove."+v,"touchend."+v+" pointerup."+v+" MSPointerUp."+v],O=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function D(i){if(!it(i)||c||S(i)[2])t=0;else{t=1,_=0,C=0,e=1,L.removeClass("rt_qc_mCS_touch_action");var a=y.offset();r=S(i)[0]-a.top,s=S(i)[1]-a.left,T=[S(i)[0],S(i)[1]]}}function I(t){if(it(t)&&!c&&!S(t)[2]&&(E.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!C||_)&&e)){l=Z();var i,a,o=b.offset(),n=S(t)[0]-o.top,h=S(t)[1]-o.left,u="mcsLinearOut";if(x.push(n),Q.push(h),T[2]=Math.abs(S(t)[0]-T[0]),T[3]=Math.abs(S(t)[1]-T[1]),m.overflowed[0]){var d=w[0].parent().height()-w[0].height();i=r-n>0&&n-r>-d*m.scrollRatio.y&&(2*T[3]<T[2]||"yx"===E.axis)}if(m.overflowed[1]){var f=w[1].parent().width()-w[1].width();a=s-h>0&&h-s>-f*m.scrollRatio.x&&(2*T[2]<T[3]||"yx"===E.axis)}i||a?(O||t.preventDefault(),_=1):(C=1,L.addClass("rt_qc_mCS_touch_action")),O&&t.preventDefault(),p="yx"===E.axis?[r-n,s-h]:"x"===E.axis?[null,s-h]:[r-n,null],y[0].idleTimer=250,m.overflowed[0]&&B(p[0],0,u,"y","all",!0),m.overflowed[1]&&B(p[1],0,u,"x",k,!0)}}function N(e){if(!it(e)||c||S(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),Y(L),n=Z();var i=b.offset();a=S(e)[0]-i.top,o=S(e)[1]-i.left,x=[],Q=[]}}function P(t){if(it(t)&&!c&&!S(t)[2]){e=0,t.stopImmediatePropagation(),_=0,C=0,h=Z();var i=b.offset(),r=S(t)[0]-i.top,s=S(t)[1]-i.left;if(!(h-l>30)){var f="mcsEaseOut",L=(d=1e3/(h-n))<2.5,v=L?[x[x.length-2],Q[Q.length-2]]:[0,0];u=L?[r-v[0],s-v[1]]:[r-a,s-o];var w=[Math.abs(u[0]),Math.abs(u[1])];d=L?[Math.abs(u[0]/4),Math.abs(u[1]/4)]:[d,d];var T=[Math.abs(y[0].offsetTop)-u[0]*q(w[0]/d[0],d[0]),Math.abs(y[0].offsetLeft)-u[1]*q(w[1]/d[1],d[1])];p="yx"===E.axis?[T[0],T[1]]:"x"===E.axis?[null,T[1]]:[T[0],null],g=[4*w[0]+E.scrollInertia,4*w[1]+E.scrollInertia];var R=parseInt(E.contentTouchScroll)||0;p[0]=w[0]>R?p[0]:0,p[1]=w[1]>R?p[1]:0,m.overflowed[0]&&B(p[0],g[0],f,"y",k,!1),m.overflowed[1]&&B(p[1],g[1],f,"x",k,!1)}}}function q(t,e){var i=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?i[0]:i[3]:t>60?e>3?i[3]:i[2]:t>30?e>8?i[1]:e>6?i[0]:e>4?e:i[2]:e>8?e:i[3]}function B(t,e,i,r,s,a){t&&$(L,t.toString(),{dur:e,scrollEasing:i,dir:r,overwrite:s,drag:a})}y.bind(A[0],(function(t){D(t)})).bind(A[1],(function(t){I(t)})),b.bind(A[0],(function(t){N(t)})).bind(A[2],(function(t){P(t)})),R.length&&R.each((function(){f.$(this).bind("load",(function(){M(this)&&f.$(this.contentDocument||this.contentWindow.document).bind(A[0],(function(t){D(t),N(t)})).bind(A[1],(function(t){I(t)})).bind(A[2],(function(t){P(t)}))}))}))},I=function(){var e,r=f.$(this),s=r.data(i),a=s.opt,o=s.sequential,n=i+"_"+s.idx,l=f.$("#rt_qc_mCSB_"+s.idx+"_container"),h=l.parent();function u(t,i,s){o.type=s&&e?"stepped":"stepless",o.scrollAmount=10,j(r,t,i,"mcsLinearOut",s?60:null)}l.bind("mousedown."+n,(function(i){t||e||(e=1,c=!0)})).add(document).bind("mousemove."+n,(function(i){if(!t&&e&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&document.selection.createRange().text)){var r=l.offset(),n=S(i)[0]-r.top+l[0].offsetTop,c=S(i)[1]-r.left+l[0].offsetLeft;n>0&&n<h.height()&&c>0&&c<h.width()?o.step&&u("off",null,"stepped"):("x"!==a.axis&&s.overflowed[0]&&(n<0?u("on",38):n>h.height()&&u("on",40)),"y"!==a.axis&&s.overflowed[1]&&(c<0?u("on",37):c>h.width()&&u("on",39)))}})).bind("mouseup."+n+" dragend."+n,(function(i){t||(e&&(e=0,u("off",null)),c=!1)}))},N=function(){if(f.$(this).data(i)){var t=f.$(this),e=t.data(i),r=e.opt,s=i+"_"+e.idx,a=f.$("#rt_qc_mCSB_"+e.idx),o=[f.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),f.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")],n=f.$("#rt_qc_mCSB_"+e.idx+"_container").find("iframe");n.length&&n.each((function(){f.$(this).bind("load",(function(){M(this)&&f.$(this.contentDocument||this.contentWindow.document).bind("mousewheel."+s,(function(t,e){c(t,e)}))}))})),a.bind("mousewheel."+s,(function(t,e){c(t,e)}))}function c(i,s){if(Y(t),!B(t,i.target)){var n,c,h,u,d,p,g,_="auto"!==r.mouseWheel.deltaFactor?parseInt(r.mouseWheel.deltaFactor):l&&i.deltaFactor<100?100:i.deltaFactor||100,C=r.scrollInertia;"x"===r.axis||"x"===r.mouseWheel.axis?(n="x",c=[Math.round(_*e.scrollRatio.x),parseInt(r.mouseWheel.scrollAmount)],h="auto"!==r.mouseWheel.scrollAmount?c[1]:c[0]>=a.width()?.9*a.width():c[0],u=Math.abs(f.$("#rt_qc_mCSB_"+e.idx+"_container")[0].offsetLeft),d=o[1][0].offsetLeft,p=o[1].parent().width()-o[1].width(),g="y"===r.mouseWheel.axis?i.deltaY||s:i.deltaX):(n="y",c=[Math.round(_*e.scrollRatio.y),parseInt(r.mouseWheel.scrollAmount)],h="auto"!==r.mouseWheel.scrollAmount?c[1]:c[0]>=a.height()?.9*a.height():c[0],u=Math.abs(f.$("#rt_qc_mCSB_"+e.idx+"_container")[0].offsetTop),d=o[0][0].offsetTop,p=o[0].parent().height()-o[0].height(),g=i.deltaY||s),"y"===n&&!e.overflowed[0]||"x"===n&&!e.overflowed[1]||((r.mouseWheel.invert||i.webkitDirectionInvertedFromDevice)&&(g=-g),r.mouseWheel.normalizeDelta&&(g=g<0?-1:1),(g>0&&0!==d||g<0&&d!==p||r.mouseWheel.preventDefault)&&(i.stopImmediatePropagation(),i.preventDefault()),i.deltaFactor<5&&!r.mouseWheel.normalizeDelta&&(h=i.deltaFactor,C=17),$(t,(u-g*h).toString(),{dir:n,dur:C}))}}},P={},M=function(t){var e=!1,i=!1,r=null;if(void 0===t?i="#empty":void 0!==f.$(t).attr("id")&&(i=f.$(t).attr("id")),!1!==i&&void 0!==P[i])return P[i];if(t){try{r=(t.contentDocument||t.contentWindow.document).body.innerHTML}catch(t){f.QCELL.log("err","QCELL.Scroll",t.message)}e=null!==r}else{try{r=window.top.document.body.innerHTML}catch(t){f.QCELL.log("err","QCELL.Scroll",t.message)}e=null!==r}return!1!==i&&(P[i]=e),e},q=function(t){var e=this.find("iframe");if(e.length){var i=t?"auto":"none";e.css("pointer-events",i)}},B=function(t,e){var r=e.nodeName.toLowerCase(),s=t.data(i).opt.mouseWheel.disableOver;return f.$.inArray(r,s)>-1&&!(f.$.inArray(r,["select","textarea"])>-1&&!f.$(e).is(":focus"))},H=function(){var t,e=f.$(this),r=e.data(i),s=i+"_"+r.idx,a=f.$("#rt_qc_mCSB_"+r.idx+"_container"),o=a.parent();f.$(".rt_qc_mCSB_"+r.idx+"_scrollbar ."+h[12]).bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,(function(e){c=!0,f.$(e.target).hasClass("rt_qc_mCSB_dragger")||(t=1)})).bind("touchend."+s+" pointerup."+s+" MSPointerUp."+s,(function(t){c=!1})).bind("click."+s,(function(i){if(t&&(t=0,f.$(i.target).hasClass(h[12])||f.$(i.target).hasClass("rt_qc_mCSB_draggerRail"))){Y(e);var s,n,l,c=f.$(this),u=c.find(".rt_qc_mCSB_dragger");if(c.parent(".rt_qc_mCSB_scrollTools_horizontal").length>0){if(!r.overflowed[1])return;s="x",n=i.pageX>u.offset().left?-1:1,l=Math.abs(a[0].offsetLeft)-n*(.9*o.width())}else{if(!r.overflowed[0])return;s="y",n=i.pageY>u.offset().top?-1:1,l=Math.abs(a[0].offsetTop)-n*(.9*o.height())}$(e,l.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}}))},U=function(){var t=f.$(this),e=t.data(i),r=e.opt,s=i+"_"+e.idx,a=f.$("#rt_qc_mCSB_"+e.idx+"_container"),o=a.parent();a.bind("focusin."+s,(function(e){var i=f.$(document.activeElement),s=a.find(".mCustomScrollBox").length;i.is(r.advanced.autoScrollOnFocus)&&(Y(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=s?17*s:0,t[0]._focusTimeout=setTimeout((function(){var e=[st(i)[0],st(i)[1]],s=[a[0].offsetTop,a[0].offsetLeft],n=[s[0]+e[0]>=0&&s[0]+e[0]<o.height()-i.outerHeight(!1),s[1]+e[1]>=0&&s[0]+e[1]<o.width()-i.outerWidth(!1)],l="yx"!==r.axis||n[0]||n[1]?"all":"none";"x"===r.axis||n[0]||$(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===r.axis||n[1]||$(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})}),t[0]._focusTimer))}))},F=function(){var t=f.$(this).data(i),e=i+"_"+t.idx,r=f.$("#rt_qc_mCSB_"+t.idx+"_container").parent();r.bind("scroll."+e,(function(t){0!==r.scrollTop()||r.scrollLeft()}))},z=function(){var t=f.$(this),e=t.data(i),r=e.opt,s=e.sequential,a=i+"_"+e.idx,o=".rt_qc_mCSB_"+e.idx+"_scrollbar";f.$(o+">a").bind("contextmenu."+a,(function(t){t.preventDefault()})).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a+" mouseup."+a+" touchend."+a+" pointerup."+a+" MSPointerUp."+a+" mouseout."+a+" pointerout."+a+" MSPointerOut."+a+" click."+a,(function(i){if(i.preventDefault(),et(i)){var a=f.$(this).attr("class");switch(s.type=r.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;c=!0,e.tweenRunning=!1,o("on",a);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;c=!1,s.dir&&o("off",a);break;case"click":if("stepped"!==s.type||e.tweenRunning)return;o("on",a)}}function o(e,i){s.scrollAmount=r.scrollButtons.scrollAmount,j(t,e,i)}}))},W=function(){var t=f.$(this),e=t.data(i),r=e.opt,s=e.sequential,a=i+"_"+e.idx,o=f.$("#rt_qc_mCSB_"+e.idx),n=f.$("#rt_qc_mCSB_"+e.idx+"_container"),l=n.parent(),c="input,textarea,select,datalist,keygen,[contenteditable='true']",h=n.find("iframe"),u=["blur."+a+" keydown."+a+" keyup."+a];function d(i){var a,o;switch(i.type){case"blur":e.tweenRunning&&s.dir&&p("off",null);break;case"keydown":case"keyup":var h=i.keyCode?i.keyCode:i.which,u="on";if("x"!==r.axis&&(38===h||40===h)||"y"!==r.axis&&(37===h||39===h)){if((38===h||40===h)&&!e.overflowed[0]||(37===h||39===h)&&!e.overflowed[1])return;"keyup"===i.type&&(u="off"),f.$(document.activeElement).is(c)||(i.preventDefault(),i.stopImmediatePropagation(),p(u,h))}else if(33===h||34===h){if((e.overflowed[0]||e.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type){Y(t);var d=34===h?-1:1;"x"===r.axis||"yx"===r.axis&&e.overflowed[1]&&!e.overflowed[0]?(a="x",o=Math.abs(n[0].offsetLeft)-d*(.9*l.width())):(a="y",o=Math.abs(n[0].offsetTop)-d*(.9*l.height())),$(t,o.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}}else 35!==h&&36!==h||f.$(document.activeElement).is(c)||((e.overflowed[0]||e.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type&&("x"===r.axis||"yx"===r.axis&&e.overflowed[1]&&!e.overflowed[0]?(a="x",o=35===h?Math.abs(l.width()-n.outerWidth(!1)):0):(a="y",o=35===h?Math.abs(l.height()-n.outerHeight(!1)):0),$(t,o.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})))}function p(i,a){s.type=r.keyboard.scrollType,s.scrollAmount=r.keyboard.scrollAmount,"stepped"===s.type&&e.tweenRunning||j(t,i,a)}}h.length&&h.each((function(){f.$(this).bind("load",(function(){M(this)&&f.$(this.contentDocument||this.contentWindow.document).bind(u[0],(function(t){d(t)}))}))})),o.attr("tabindex","0").bind(u[0],(function(t){d(t)}))},j=function(t,e,r,s,a){var o=t.data(i),n=o.opt,l=o.sequential,c=f.$("#rt_qc_mCSB_"+o.idx+"_container"),u="stepped"===l.type,d=n.scrollInertia<26?26:n.scrollInertia,p=n.scrollInertia<1?17:n.scrollInertia;switch(e){case"on":if(l.dir=[r===h[16]||r===h[15]||39===r||37===r?"x":"y",r===h[13]||r===h[15]||38===r||37===r?-1:1],Y(t),rt(r)&&"stepped"===l.type)return;g(u);break;case"off":clearTimeout(l.step),tt(l,"step"),Y(t),(u||o.tweenRunning&&l.dir)&&g(!0)}function g(e){n.snapAmount&&(l.scrollAmount=n.snapAmount instanceof Array?"x"===l.dir[0]?n.snapAmount[1]:n.snapAmount[0]:n.snapAmount);var i="stepped"!==l.type,r=a||(e?i?d/1.5:p:1e3/60),h=e?i?7.5:40:2.5,u=[Math.abs(c[0].offsetTop),Math.abs(c[0].offsetLeft)],f=[o.scrollRatio.y>10?10:o.scrollRatio.y,o.scrollRatio.x>10?10:o.scrollRatio.x],_="x"===l.dir[0]?u[1]+l.dir[1]*(f[1]*h):u[0]+l.dir[1]*(f[0]*h),C="x"===l.dir[0]?u[1]+l.dir[1]*parseInt(l.scrollAmount):u[0]+l.dir[1]*parseInt(l.scrollAmount),L="auto"!==l.scrollAmount?C:_,m=s||(e?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),E=!!e;e&&r<17&&(L="x"===l.dir[0]?u[1]:u[0]),$(t,L.toString(),{dir:l.dir[0],scrollEasing:m,dur:r,onComplete:E}),e?l.dir=!1:(clearTimeout(l.step),l.step=setTimeout((function(){g()}),r))}},G=function(t){var e=f.$(this).data(i).opt,r=[];return"function"==typeof t&&(t=t()),t instanceof Array?r=t.length>1?[t[0],t[1]]:"x"===e.axis?[null,t[0]]:[t[0],null]:(r[0]=t.y?t.y:t.x||"x"===e.axis?null:t,r[1]=t.x?t.x:t.y||"y"===e.axis?null:t),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},V=function(t,e){if(null!=t){var r,s=f.$(this),a=s.data(i),o=a.opt,l=f.$("#rt_qc_mCSB_"+a.idx+"_container"),c=l.parent(),h=n(t);e||(e="x"===o.axis?"x":"y");var d="x"===e?l.outerWidth(!1)-c.width():l.outerHeight(!1)-c.height(),p="x"===e?l[0].offsetLeft:l[0].offsetTop,g="x"===e?"left":"top";switch(h){case"function":return t();case"object":if(!(r=t.jquery?t:f.$(t)).length)return;return"x"===e?st(r)[1]:st(r)[0];case"string":case"number":if(rt(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(p-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var _=p+parseInt(t.split("+=")[1]);return _>=0?0:Math.abs(_)}return-1!==t.indexOf("px")&&rt(t.split("px")[0])?Math.abs(t.split("px")[0]):"top"===t||"left"===t?0:"bottom"===t?Math.abs(c.height()-l.outerHeight(!1)):"right"===t?Math.abs(c.width()-l.outerWidth(!1)):"first"===t||"last"===t?(r=l.find(":"+t),"x"===e?st(r)[1]:st(r)[0]):f.$(t).length?"x"===e?st(f.$(t))[1]:st(f.$(t))[0]:(l.css(g,t),void u.update.call(null,s[0]))}}},K=function(t){var e=f.$(this),r=e.data(i),s=r.opt,a=f.$("#rt_qc_mCSB_"+r.idx+"_container");if(t)return clearTimeout(a[0].autoUpdate),void tt(a[0],"autoUpdate");function o(t){clearTimeout(a[0].autoUpdate),u.update.call(null,e[0],t)}!function t(){if(clearTimeout(a[0].autoUpdate),0===e.parents("html").length)return void(e=null);a[0].autoUpdate=setTimeout((function(){return s.advanced.updateOnSelectorChange&&(r.poll.change.n=function(){!0===s.advanced.updateOnSelectorChange&&(s.advanced.updateOnSelectorChange="*");var t=0,e=a.find(s.advanced.updateOnSelectorChange);s.advanced.updateOnSelectorChange&&e.length>0&&e.each((function(){t+=this.offsetHeight+this.offsetWidth}));return t}(),r.poll.change.n!==r.poll.change.o)?(r.poll.change.o=r.poll.change.n,void o(3)):s.advanced.updateOnContentResize&&(r.poll.size.n=e[0].scrollHeight+e[0].scrollWidth+a[0].offsetHeight+e[0].offsetHeight+e[0].offsetWidth,r.poll.size.n!==r.poll.size.o)?(r.poll.size.o=r.poll.size.n,void o(1)):!s.advanced.updateOnImageLoad||"auto"===s.advanced.updateOnImageLoad&&"y"===s.axis||(r.poll.img.n=a.find("img").length,r.poll.img.n===r.poll.img.o)?void((s.advanced.updateOnSelectorChange||s.advanced.updateOnContentResize||s.advanced.updateOnImageLoad)&&t()):(r.poll.img.o=r.poll.img.n,void a.find("img").each((function(){!function(t){if(f.$(t).hasClass(h[2]))return void o();var e=new Image;function i(t,e){return function(){return e.apply(t,arguments)}}function r(){this.onload=null,f.$(t).addClass(h[2]),o(2)}e.onload=i(e,r),e.src=t.src}(this)})))}),s.advanced.autoUpdateTimeout)}()},Y=function(t){var e=t.data(i);f.$("#rt_qc_mCSB_"+e.idx+"_container,#rt_qc_mCSB_"+e.idx+"_container_wrapper,#rt_qc_mCSB_"+e.idx+"_dragger_vertical,#rt_qc_mCSB_"+e.idx+"_dragger_horizontal").each((function(){J.call(this)}))},$=function(t,e,r,s){var a=t.data(i);if(void 0!==a){var o=a.opt,n={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:o.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=f.$.extend(n,r),c=[l.dur,l.drag?0:l.dur],h=f.$("#rt_qc_mCSB_"+a.idx),u=f.$("#rt_qc_mCSB_"+a.idx+"_container"),d=u.parent(),p=o.callbacks.onTotalScrollOffset?G.call(t,o.callbacks.onTotalScrollOffset):[0,0],g=o.callbacks.onTotalScrollBackOffset?G.call(t,o.callbacks.onTotalScrollBackOffset):[0,0];if(a.trigger=l.trigger,0===d.scrollTop()&&0===d.scrollLeft()||(f.$(".rt_qc_mCSB_"+a.idx+"_scrollbar").css("visibility","visible"),d.scrollTop(0).scrollLeft(0)),"_resetY"!==e||a.contentReset.y||(Q("onOverflowYNone")&&o.callbacks.onOverflowYNone.call(t[0]),a.contentReset.y=1),"_resetX"!==e||a.contentReset.x||(Q("onOverflowXNone")&&o.callbacks.onOverflowXNone.call(t[0]),a.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){var _,C,L,m,E,v,b,y,x;if(!a.contentReset.y&&t[0].mcs||!a.overflowed[0]||(Q("onOverflowY")&&o.callbacks.onOverflowY.call(t[0]),a.contentReset.x=null),!a.contentReset.x&&t[0].mcs||!a.overflowed[1]||(Q("onOverflowX")&&o.callbacks.onOverflowX.call(t[0]),a.contentReset.x=null),o.snapAmount)e=function(t,e,i){return Math.round(t/e)*e-i}(e,o.snapAmount instanceof Array?"x"===l.dir?o.snapAmount[1]:o.snapAmount[0]:o.snapAmount,o.snapOffset);switch(l.dir){case"x":_=f.$("#rt_qc_mCSB_"+a.idx+"_dragger_horizontal"),C="left",L=u[0].offsetLeft,m=[h.width()-u.outerWidth(!1),_.parent().width()-_.width()],E=[e,0===e?0:e/a.scrollRatio.x],v=p[1],b=g[1],y=v>0?v/a.scrollRatio.x:0,x=b>0?b/a.scrollRatio.x:0;break;case"y":_=f.$("#rt_qc_mCSB_"+a.idx+"_dragger_vertical"),C="top",L=u[0].offsetTop,m=[h.height()-u.outerHeight(!1),_.parent().height()-_.height()],E=[e,0===e?0:e/a.scrollRatio.y],v=p[0],b=g[0],y=v>0?v/a.scrollRatio.y:0,x=b>0?b/a.scrollRatio.y:0}E[1]<0||0===E[0]&&0===E[1]?E=[0,0]:E[1]>=m[1]?E=[m[0],m[1]]:E[0]=-E[0],t[0].mcs||(k(o),Q("onInit")&&o.callbacks.onInit.call(t[0],s)),clearTimeout(u[0].onCompleteTimeout),X(_[0],C,Math.round(E[1]),c[1],l.scrollEasing),!a.tweenRunning&&(0===L&&E[0]>=0||L===m[0]&&E[0]<=m[0])||X(u[0],C,Math.round(E[0]),c[0],l.scrollEasing,l.overwrite,{onStart:function(){l.callbacks&&l.onStart&&!a.tweenRunning&&(Q("onScrollStart")&&(k(o),o.callbacks.onScrollStart.call(t[0],s)),a.tweenRunning=!0,w(_),a.cbOffsets=[o.callbacks.alwaysTriggerOffsets||L>=m[0]+v,o.callbacks.alwaysTriggerOffsets||L<=-b])},onUpdate:function(){l.callbacks&&l.onUpdate&&Q("whileScrolling")&&(k(o),o.callbacks.whileScrolling.call(t[0],s))},onComplete:function(){if(l.callbacks&&l.onComplete){"yx"===o.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout((function(){Q("onScroll")&&(k(o),o.callbacks.onScroll.call(t[0],s)),Q("onTotalScroll")&&E[1]>=m[1]-y&&a.cbOffsets[0]&&(k(o),o.callbacks.onTotalScroll.call(t[0],s)),Q("onTotalScrollBack")&&E[1]<=x&&a.cbOffsets[1]&&(k(o),o.callbacks.onTotalScrollBack.call(t[0],s)),a.tweenRunning=!1,u[0].idleTimer=0,w(_,"hide")}),e)}}})}}function Q(t){return a&&o.callbacks[t]&&"function"==typeof o.callbacks[t]}function k(e){var i=[u[0].offsetTop,u[0].offsetLeft],r=[_[0].offsetTop,_[0].offsetLeft],s=[u.outerHeight(!1),u.outerWidth(!1)],a=[h.height(),h.width()];t[0].mcs={content:u,top:i[0],left:i[1],draggerTop:r[0],draggerLeft:r[1],topPct:Math.round(100*Math.abs(i[0])/(Math.abs(s[0])-a[0])),leftPct:Math.round(100*Math.abs(i[1])/(Math.abs(s[1])-a[1])),direction:l.dir,target:null===e.target?null:e.target}}},X=function(t,e,i,r,s,a,o){t._mTween||(t._mTween={top:{},left:{}});var n,l,c=o||{},h=c.onStart||function(){},u=c.onUpdate||function(){},d=c.onComplete||function(){},p=Z(),f=0,g=t.offsetTop,_=t.style,C=t._mTween[e];"left"===e&&(g=t.offsetLeft);var L=i-g;function m(){C.stop||(f||h.call(),f=Z()-p,E(),f>=C.time&&(C.time=f>C.time?f+n-(f-C.time):f+n-1,C.time<f+1&&(C.time=f+1)),C.time<r?C.id=l(m):d.call())}function E(){r>0?(C.currVal=function(t,e,i,r,s){var a,o;switch(s){case"linear":case"mcsLinear":return i*t/r+e;case"mcsLinearOut":return t/=r,t--,i*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return(t/=r/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e;case"easeInOutStrong":return(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+e:(t--,i/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return(t/=r/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e;case"easeOutSmooth":return t/=r,-i*(--t*t*t*t-1)+e;case"easeOutStrong":return i*(1-Math.pow(2,-10*t/r))+e;default:return e+i*(.499999999999997*(o=(a=(t/=r)*t)*t)*a+-2.5*a*a+5.5*o+-6.5*a+4*t)}}(C.time,g,L,r,s),_[e]=Math.round(C.currVal)+"px"):_[e]=i+"px",u.call()}C.stop=0,"none"!==a&&function(){if(null===C.id)return;window.requestAnimationFrame?window.cancelAnimationFrame(C.id):clearTimeout(C.id);C.id=null}(),n=1e3/60,C.time=f+n,l=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return E(),setTimeout(t,.01)},C.id=l(m)},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},J=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],i=0;i<e.length;i++){var r=e[i];t._mTween[r].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(t._mTween[r].id):clearTimeout(t._mTween[r].id),t._mTween[r].id=null,t._mTween[r].stop=1)}},tt=function(t,e){try{delete t[e]}catch(i){t[e]=null}},et=function(t){return!(t.which&&1!==t.which)},it=function(t){var e=t.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},rt=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},st=function(t){var e=t.parents(".rt_qc_mCSB_container");return[t.offset().top-e.offset().top,t.offset().left-e.offset().left]},at=function(){var t=function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}();return!!t&&document[t]};f.$.fn[e]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==n(t)&&t?void f.$.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},f.$[e]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==n(t)&&t?void f.$.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},f.$[e].defaults=s,window[e]=!0,f.$(window).bind("load",(function(){f.$(r)[e](),f.$.extend(f.$.expr[":"],{mcsInView:f.$.expr[":"].mcsInView||function(t){var e,i,r=f.$(t),s=r.parents(".rt_qc_mCSB_container");if(s.length)return e=s.parent(),(i=[s[0].offsetTop,s[0].offsetLeft])[0]+st(r)[0]>=0&&i[0]+st(r)[0]<e.height()-r.outerHeight(!1)&&i[1]+st(r)[1]>=0&&i[1]+st(r)[1]<e.width()-r.outerWidth(!1)},mcsInSight:f.$.expr[":"].mcsInSight||function(t,e,i){var r,s,a,o,n=f.$(t),l=n.parents(".rt_qc_mCSB_container"),c="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(l.length)return r=[n.outerHeight(!1),n.outerWidth(!1)],a=[l[0].offsetTop+st(n)[0],l[0].offsetLeft+st(n)[1]],s=[l.parent()[0].offsetHeight,l.parent()[0].offsetWidth],a[0]-s[0]*(o=[r[0]<s[0]?c[0]:c[1],r[1]<s[1]?c[0]:c[1]])[0][0]<0&&a[0]+r[0]-s[0]*o[0][1]>=0&&a[1]-s[1]*o[1][0]<0&&a[1]+r[1]-s[1]*o[1][1]>=0},mcsOverflow:f.$.expr[":"].mcsOverflow||function(t){var e=f.$(t).data(i);if(e)return e.overflowed[0]||e.overflowed[1]}})}))})),f.QCELL.BasicQCELL.prototype._getColSearchArea=function(){if(null===this.attr("colsearcharea")){var t=document.createElement("div");this.attr("colsearcharea",this._createColSearchArea(t),"jquery")}return this.attr("colsearcharea").clone(!0).get(0)},f.QCELL.BasicQCELL.prototype._createColSearchArea=function(t){var e=f.QCELL.def.css;return f.$(t.cloneNode()).addClass(e.COLSEARCH_AREA).on("mousedown",this.attr("eventparam"),(function(i){var r=i.target,s=i.data.target,a=parseInt(r.parentNode.getAttribute("data-col")),o=f.$(t.cloneNode()).addClass(e.COLSEARCH_UI_AREA);s.attr("colsearchuivisible")&&s._removeColSearUIArea(),f.$(this).addClass(e.COLSEARCH_AREA_HOVER),"string"===s._getQCellCol(a).attr("datatype")?s._createStringColSearchUIArea(a,o):s._createNumberColSearchUIArea(a,o),s._showColSearchUIArea(r,a)}))},f.QCELL.BasicQCELL.prototype._createStringColSearchUIArea=function(t,e){var i,r,s,a,o=f.QCELL.def.css,n=f.$(document.createElement("div")),l=f.$(document.createElement("button")).addClass(o.COLSEARCH_UI_BTN),c=f.$(document.createElement("span")),h=f.$(document.createElement("input")),u=this.attr("headertext")[t][this.attr("headertext")[t].length-1],d=this.attr("id")+"_colsearch_text_"+t,p=this.attr("id")+"_colsearch_msg_"+t,g=this.attr("headerrows"),_=this.attr("colsearchinfo"),C=this.attr("paginationinfo"),L="";void 0===_[t]&&(_[t]={},_[t].key="",_[t].arrColIdxs=[],_[t].move={}),e.css({display:"none",height:"120px",width:"180px"}),i=n.clone().css({"margin-bottom":"10px"}),c.clone().text(u).css({"font-weight":"bold","font-size":"15px"}).appendTo(i),n.clone().addClass(o.COLSEARCH_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("colsearchuivisible")&&e._removeColSearUIArea()})).appendTo(i),i.appendTo(e),r=n.clone(),h.clone().css({width:"100%",margin:"0px 5px 5px 0px"}).attr({id:d}).on("keydown",this.attr("eventparam"),(function(e){if(e.keyCode===f.def.key.ENTER){var i=this;setTimeout((function(){i.focus()}),500);var r,s=e.data.target,a=f.$("#"+d).val(),o=s.getIdx("row","focus"),n=[];if(f.$.trim(a).length>0){var l=s._getColData(t,!0);if(_[t].key!==a){for(r=0;r<l.length;r++)null!==l[r]&&void 0!==l[r]&&l[r].indexOf(a)>-1&&n.push(g+r);_[t].key=a,_[t].arrColIdxs=n,L=s._moveNexColSearchRow(t,o,n)}else if(f._.isUndefined(C))L=s._moveNexColSearchRow(t,o,_[t].arrColIdxs);else{for(r=0;r<l.length;r++)null!==l[r]&&void 0!==l[r]&&l[r].indexOf(a)>-1&&n.push(g+r);_[t].key=a,_[t].arrColIdxs=n,L=s._moveNexColSearchRow(t,o,n)}}else _[t].arrColIdxs=[],L="검색할 값을 입력하여 주십시오.";f.$("#"+p).text(L)}})).val(_[t].key).appendTo(r),r.appendTo(e),s=n.clone().css({"text-align":"center","margin-top":"10px"}),c.clone().text(f.QCELL.def.resource.search).appendTo(l.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var i,r=e.data.target,s=f.$("#"+d).val(),a=r.getIdx("row","focus"),o=[];if(f.$.trim(s).length>0){var n=r._getColData(t,!0);if(_[t].key!==s){for(i=0;i<n.length;i++)null!==n[i]&&void 0!==n[i]&&n[i].indexOf(s)>-1&&o.push(g+i);_[t].key=s,_[t].arrColIdxs=o,L=r._moveNexColSearchRow(t,a,o)}else if(f._.isUndefined(C))L=r._moveNexColSearchRow(t,a,_[t].arrColIdxs);else{for(i=0;i<n.length;i++)null!==n[i]&&void 0!==n[i]&&n[i].indexOf(s)>-1&&o.push(g+i);_[t].key=s,_[t].arrColIdxs=o,L=r._moveNexColSearchRow(t,a,o)}}else _[t].arrColIdxs=[],L="검색할 값을 입력하여 주십시오.";f.$("#"+p).text(L)})).appendTo(s)),c.clone().text(f.QCELL.def.resource.reset).appendTo(l.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){f.$("#"+d).val(""),_[t].key="",_[t].arrColIdxs=[],f.$("#"+p).text("")})).appendTo(s)),s.appendTo(e),a=n.clone().css({"text-align":"center","font-size":"11px","margin-top":"5px"}),c.clone().css({color:"red"}).attr("id",p).appendTo(a),a.appendTo(e),f.$(e).draggable({drag:function(){_[t].move.top=parseInt(e.css("top")),_[t].move.left=parseInt(e.css("left"))}}),this.attr("colsearchuiarea",e,"jquery")},f.QCELL.BasicQCELL.prototype._createNumberColSearchUIArea=function(t,e){var i,r,s,a,o,n=f.QCELL.def.css,l=f.$(document.createElement("div")),c=f.$(document.createElement("button")).addClass(n.COLSEARCH_UI_BTN),h=f.$(document.createElement("span")),u=f.$(document.createElement("input")),d=f.$(document.createElement("select")),p=f.$(document.createElement("option")),g=this.attr("headertext")[t][this.attr("headertext")[t].length-1],_=this.attr("id")+"_colsearch_text_"+t,C=this.attr("id")+"_colsearch_select_"+t,L=this.attr("id")+"_colsearch_msg_"+t,m=this.attr("headerrows"),E=this.attr("colsearchinfo"),v=this.attr("paginationinfo"),b="";void 0===E[t]&&(E[t]={},E[t].key="",E[t].operator="gt",E[t].arrColIdxs=[],E[t].move={}),e.css({display:"none",height:"140px",width:"220px"}),i=l.clone().css({"margin-bottom":"10px"}),h.clone().text(g).css({"font-weight":"bold","font-size":"15px"}).appendTo(i),l.clone().addClass(n.COLSEARCH_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("colsearchuivisible")&&e._removeColSearUIArea()})).appendTo(i),i.appendTo(e),r=l.clone(),s=l.clone(),u.clone().css({width:"100%",margin:"0px 5px 5px 0px"}).attr({id:_}).val(E[t].key).on("keydown",this.attr("eventparam"),(function(e){if(e.keyCode===f.def.key.ENTER){var i=this;setTimeout((function(){i.focus()}),500);var r,s=e.data.target,a=f.$("#"+_).val(),o=s.getIdx("row","focus"),n=[];if(f._.isNumber(parseFloat(f.$.trim(a)))&&!1===f._.isNaN(parseFloat(f.$.trim(a)))){var l=parseFloat(a),c=f.$("#"+C).val(),h=s._getColData(t,!0);if(E[t].key!==l||E[t].operator!==c){for(r=0;r<h.length;r++)switch(c){case"gt":h[r]>l&&n.push(m+r);break;case"ge":h[r]>=l&&n.push(m+r);break;case"lt":h[r]<l&&n.push(m+r);break;case"le":h[r]<=l&&n.push(m+r);break;case"eq":h[r]===l&&n.push(m+r);break;case"ne":h[r]!==l&&n.push(m+r)}E[t].key=l,E[t].operator=c,E[t].arrColIdxs=n,b=s._moveNexColSearchRow(t,o,n)}else if(f._.isUndefined(v))b=s._moveNexColSearchRow(t,o,E[t].arrColIdxs);else{for(r=0;r<h.length;r++)switch(c){case"gt":h[r]>l&&n.push(m+r);break;case"ge":h[r]>=l&&n.push(m+r);break;case"lt":h[r]<l&&n.push(m+r);break;case"le":h[r]<=l&&n.push(m+r);break;case"eq":h[r]===l&&n.push(m+r);break;case"ne":h[r]!==l&&n.push(m+r)}E[t].key=l,E[t].operator=c,E[t].arrColIdxs=n,b=s._moveNexColSearchRow(t,o,n)}}else E[t].arrColIdxs=[],b="검색할 값이 없거나 숫자가 아닙니다.";f.$("#"+L).text(b)}})).appendTo(r),r.appendTo(e),p.clone().val("gt").text("크다(>)").attr("selected","gt"===E[t].operator).appendTo(d),p.clone().val("lt").text("작다(<)").attr("selected","lt"===E[t].operator).appendTo(d),p.clone().val("ge").text("크거나 같다(>=)").attr("selected","ge"===E[t].operator).appendTo(d),p.clone().val("le").text("작거나 같다(<=)").attr("selected","le"===E[t].operator).appendTo(d),p.clone().val("eq").text("같다(==)").attr("selected","eq"===E[t].operator).appendTo(d),p.clone().val("ne").text("같지 않다(!=)").attr("selected","ne"===E[t].operator).appendTo(d),d.css({height:"20px",width:"100%",margin:"0"}).attr({id:C}).appendTo(s),s.appendTo(e),a=l.clone().css({"text-align":"center","margin-top":"10px"}).attr({id:_}),h.clone().text(f.QCELL.def.resource.search).appendTo(c.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var i,r=e.data.target,s=f.$("#"+_).val(),a=r.getIdx("row","focus"),o=[];if(f._.isNumber(parseFloat(f.$.trim(s)))&&!1===f._.isNaN(parseFloat(f.$.trim(s)))){var n=parseFloat(s),l=f.$("#"+C).val(),c=r._getColData(t,!0);if(E[t].key!==n||E[t].operator!==l){for(i=0;i<c.length;i++)switch(l){case"gt":c[i]>n&&o.push(m+i);break;case"ge":c[i]>=n&&o.push(m+i);break;case"lt":c[i]<n&&o.push(m+i);break;case"le":c[i]<=n&&o.push(m+i);break;case"eq":c[i]===n&&o.push(m+i);break;case"ne":c[i]!==n&&o.push(m+i)}E[t].key=n,E[t].operator=l,E[t].arrColIdxs=o,b=r._moveNexColSearchRow(t,a,o)}else if(f._.isUndefined(v))b=r._moveNexColSearchRow(t,a,E[t].arrColIdxs);else{for(i=0;i<c.length;i++)switch(l){case"gt":c[i]>n&&o.push(m+i);break;case"ge":c[i]>=n&&o.push(m+i);break;case"lt":c[i]<n&&o.push(m+i);break;case"le":c[i]<=n&&o.push(m+i);break;case"eq":c[i]===n&&o.push(m+i);break;case"ne":c[i]!==n&&o.push(m+i)}E[t].key=n,E[t].operator=l,E[t].arrColIdxs=o,b=r._moveNexColSearchRow(t,a,o)}}else E[t].arrColIdxs=[],b="검색할 값이 없거나 숫자가 아닙니다.";f.$("#"+L).text(b)})).appendTo(a)),h.clone().text(f.QCELL.def.resource.reset).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){f.$("#"+_).val(""),f.$("#"+C+" option:eq(0)").prop("selected",!0),E[t].key="",E[t].operator="gt",E[t].arrColIdxs=[],f.$("#"+L).text("")})).appendTo(a)),a.appendTo(e),o=l.clone().css({"text-align":"center","font-size":"11px","margin-top":"5px"}),h.clone().css({color:"red"}).attr("id",L).appendTo(o),o.appendTo(e),f.$(e).draggable({drag:function(){E[t].move.top=parseInt(e.css("top")),E[t].move.left=parseInt(e.css("left"))}}),this.attr("colsearchuiarea",e,"jquery")},f.QCELL.BasicQCELL.prototype._moveNexColSearchRow=function(t,e,i){var r=this,s=0,a="";if(i.length>0){for(var o=0;o<i.length;o++){if(e<i[o]){s=i[o];break}o===i.length-1&&(s=i[0])}r._scrollTop(s),setTimeout((function(){r._clickCell(s,t)}),100)}else a="검색 데이터가 없습니다.";return a},f.QCELL.BasicQCELL.prototype._showColSearchUIArea=function(t,e){var i=f.QCELL.def.css,r=this.attr("colsearchuiarea"),s=this.attr("layoutsize").viewport.offsetLeft,a=t.parentNode.offsetLeft+s,o=t.parentNode.offsetTop+this.attr("layoutsize").colheader.offsetHeight-f.$("."+i.COLSEARCH_AREA).height()/2,n=this.attr("layoutsize").root.offsetWidth,l=parseInt(r.css("width")),c=parseInt(this._getColWidth(e)),h=this.attr("colsearchinfo"),u=f.$("."+i.COLSEARCH_AREA).width(),d=0,p=this.attr("id")+"_colsearch_text_"+e;r.appendTo(this.attr("elementpool").get("container")),"none"===r.css("display")&&r.css("display","inline-block"),d=a-u+2*l<n?a+c-u:a-l,!1===f._.isEmpty(h[e].move)&&(d=h[e].move.left,o=h[e].move.top),r.css({left:d+"px",top:o+"px"}),this.attr("colsearchuivisible",!0,"boolean"),setTimeout((function(){f.$("#"+p).focus()}),0)},f.QCELL.BasicQCELL.prototype._removeColSearUIArea=function(){var t=f.QCELL.def.css;f.$("."+t.COLSEARCH_AREA).removeClass(t.COLSEARCH_AREA_HOVER),this.attr("colsearchuiarea").remove(),this.attr("colsearchuiarea",null,"jquery"),this.attr("colsearchuivisible",!1,"boolean")},f.QCELL.BasicQCELL.prototype._getSelectedRow=function(){var t=this._getIdxInfo("selected","row");return t.size()>0?t.keys()[0]:-1},f.QCELL.BasicQCELL.prototype._getSelectedCol=function(){var t=this._getIdxInfo("selected","col");return t.size()>0?t.keys()[0]:-1},f.QCELL.BasicQCELL.prototype._getSelectedRows=function(){return this._getIdxInfo("selected","row").keys()},f.QCELL.BasicQCELL.prototype._getSelectedCols=function(){return this._getIdxInfo("selected","col").keys()},f.QCELL.BasicQCELL.prototype._clearSelection=function(){var t=this._getIdxInfo("selected","row"),e=this._getIdxInfo("selected","col");t.clear(),e.clear(),this._clearSelectionCSS()},f.QCELL.BasicQCELL.prototype._clearSelectionCSS=function(){f.util.removeClass(f._.flatten(this.attr("cellmatrix").get("row")),f.QCELL.def.css.CELL_SELECT),f.$(f.QCELL.def.css.CELL_SELECT).removeClass(f.QCELL.def.css.CELL_SELECT)},f.QCELL.BasicQCELL.prototype._selectRow=function(t,e){!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&!0!==e&&(t=this._findNextCell(t,this._idx("col","focus"),"up").row);if(t>=this.attr("headerrows"))switch(this.attr("selectmode")){case"row":case"rows":var i=this._getIdxInfo("selected","row");i.containsKey(t)?i.remove(t):f.util.addClass(this._getRowCellDOMs(t),f.QCELL.def.css.CELL_SELECT),i.put(t,!0)}},f.QCELL.BasicQCELL.prototype._deselectRow=function(t){if(t>=this.attr("headerrows"))switch(this.attr("selectmode")){case"row":case"rows":var e=this._getIdxInfo("selected","row");e.containsKey(t)&&(e.remove(t),f.util.removeClass(this._getRowCellDOMs(t),f.QCELL.def.css.CELL_SELECT))}},f.QCELL.BasicQCELL.prototype._selectRows=function(t){if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&("col"===this.attr("merge").data||"group"===this.attr("merge").data)){var e=this._findNextCell(t[t.length-1],this._idx("col","focus"),"up");this._idx("row","focus")>t[t.length-1]&&(t=f._.range(e.row,this._idx("row","focus")+1).reverse())}if("rows"===this.attr("selectmode")){var i=this,r=this.attr("headerrows"),s=this._getIdxInfo("selected","row"),a=[];f._.each(t,(function(t){t>=r&&(s.containsKey(t)?s.remove(t):(a=a.concat(i._getRowCellDOMs(t)),f.$(a).addClass(f.QCELL.def.css.CELL_SELECT)),s.put(t,!0))}))}},f.QCELL.BasicQCELL.prototype._deselectRows=function(t){if("rows"===this.attr("selectmode")){var e=f.QCELL.def.css,i=this,r=this.attr("headerrows"),s=i._getIdxInfo("selected","row"),a=[];f._.each(t,(function(t){t>=r&&s.containsKey(t)&&(s.remove(t),a=a.concat(i._getRowCellDOMs(t)))})),f.$(a).removeClass(e.CELL_SELECT)}},f.QCELL.BasicQCELL.prototype._selectCol=function(t){!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(t=this._findNextCell(this._idx("row","focus"),t,"up").col);switch(this.attr("selectmode")){case"col":case"cols":var e=this._getIdxInfo("selected","col");e.containsKey(t)?e.remove(t):f.$(this._getColCellDOMs(t)).addClass(f.QCELL.def.css.CELL_SELECT),e.put(t,!0)}},f.QCELL.BasicQCELL.prototype._deselectCol=function(t){switch(this.attr("selectmode")){case"col":case"cols":var e=this._getIdxInfo("selected","col");e.containsKey(t)&&(e.remove(t),f.$(this._getColCellDOMs(t)).removeClass(f.QCELL.def.css.CELL_SELECT))}},f.QCELL.BasicQCELL.prototype._selectCols=function(t){if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"row"===this.attr("merge").data){var e=this._findNextCell(this._idx("row","focus"),t[t.length-1],"up");this._idx("col","focus")>t[t.length-1]&&(t=f._.range(e.col,this._idx("col","focus")+1).reverse())}if(t.length>0&&"cols"===this.attr("selectmode")){var i=this,r=this.attr("headercols"),s=this._getIdxInfo("selected","col"),a=[];f._.each(t,(function(t){t>=r&&(s.containsKey(t)?s.remove(t):a=a.concat(i._getColCellDOMs(t)),s.put(t,!0))})),f.$(a).addClass(f.QCELL.def.css.CELL_SELECT)}},f.QCELL.BasicQCELL.prototype._deselectCols=function(t){if("cols"===this.attr("selectmode")){var e=this,i=this.attr("headercols"),r=this._getIdxInfo("selected","col"),s=[];f._.each(t,(function(t){t>=i&&r.containsKey(t)&&(r.remove(t),s=s.concat(e._getColCellDOMs(t)))})),f.$(s).removeClass(f.QCELL.def.css.CELL_SELECT)}},f.QCELL.BasicQCELL.prototype._selectCell=function(t,e){if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var i=this._findNextCell(t,e,"up");t=i.row,e=i.col}switch(this.attr("selectmode")){case"cell":case"cells":var s=this.attr("headerrows"),a=this.attr("headercols"),o=this.attr("frozencols"),n=this.attr("cols");if(t>=s&&e>=a&&e<n){var l,c,h=this.attr("hsinfo"),u=this._getIdxInfo("selected","row"),d=this._getIdxInfo("selected","col");if((l=u.containsKey(t)?u.remove(t):new r._QHashSet).add(e),u.put(t,l),(c=d.containsKey(e)?d.remove(e):new r._QHashSet).add(t),d.put(e,c),e<a+o||e>=h.nLeftCol&&e<=h.nRightCol){var p=this._getCellDOM(t,e);f._.isElement(p)&&f.util.addClass(p,f.QCELL.def.css.CELL_SELECT)}}}},f.QCELL.BasicQCELL.prototype._deselectCell=function(t,e){switch(this.attr("selectmode")){case"cell":case"cells":var i=this.attr("headerrows"),r=this.attr("headercols"),s=this.attr("frozencols"),a=this.attr("cols");if(t>=i&&e>=r&&e<a){var o,n,l=this.attr("hsinfo"),c=this._getIdxInfo("selected","row"),h=this._getIdxInfo("selected","col");if(c.containsKey(t)&&((o=c.get(t)).remove(e),o.isEmpty()&&c.remove(t)),h.containsKey(e)&&((n=h.get(e)).remove(t),n.isEmpty()&&h.remove(e)),e<r+s||e>=l.nLeftCol&&e<=l.nRightCol){var u=this._getCellDOM(t,e);f._.isElement(u)&&f.util.removeClass(u,f.QCELL.def.css.CELL_SELECT)}}}},f.QCELL.BasicQCELL.prototype._selectCellRange=function(t,e,i,s){if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var a=this._findNextCell(i,s,"up");i=a.row,s=a.col}if("cells"===this.attr("selectmode")){var o=f.QCELL.def.css,n=this.attr("headerrows"),l=this.attr("headercols"),c=this.attr("cols");if(t>=n&&i>=n&&s>=l&&e>=l&&e<c&&s<c){var h,u,d,p,g,_=this._getIdxInfo("selected","row"),C=this._getIdxInfo("selected","col"),L=t>i,m=e>s;for(d=t;L?d>=i:d<=i;L?d--:d++){for(h=_.containsKey(d)?_.remove(d):new r._QHashSet,p=e;m?p>=s:p<=s;m?p--:p++)h.add(p),g=this._getCellDOM(d,p),f._.isElement(g)&&f.util.addClass(g,o.CELL_SELECT);_.put(d,h)}for(p=e;m?p>=s:p<=s;m?p--:p++){for(u=C.containsKey(p)?C.remove(p):new r._QHashSet,d=t;L?d>=i:d<=i;L?d--:d++)u.add(d);C.put(p,u)}}}},f.QCELL.BasicQCELL.prototype._deselectCellRange=function(t,e,i,r){if("cells"===this.attr("selectmode")){var s=f.QCELL.def.css,a=this.attr("headerrows"),o=this.attr("headercols"),n=this.attr("cols");if(t>=a&&i>=a&&r>=o&&e>=o&&e<n&&r<n){var l,c,h,u,d,p=this._getIdxInfo("selected","row"),g=this._getIdxInfo("selected","col"),_=t>i,C=e>r;for(h=t;_?h>=i:h<=i;_?h--:h++)if(p.containsKey(h)){for(l=p.get(h),u=e;C?u>=r:u<=r;C?u--:u++)l.remove(u),d=this._getCellDOM(h,u),f._.isElement(d)&&f.util.removeClass(d,s.CELL_SELECT);l.isEmpty()&&p.remove(h)}for(u=e;C?u>=r:u<=r;C?u--:u++)if(g.containsKey(u)){for(c=g.get(u),h=t;_?h>=i:h<=i;_?h--:h++)c.remove(h);c.isEmpty()&&g.remove(u)}}}},f.QCELL.BasicQCELL.prototype._selectDragArea=function(t){try{var e=this._idx("row","focus"),i=this._idx("col","focus"),r=this._idx("row","drag"),s=this._idx("col","drag");switch(this.attr("selectmode")){case"rows":!1===t.ctrlKey&&this._clearSelection(),this._selectRows(r>e?f._.range(e,r+1):f._.range(r,e+1).reverse());break;case"cols":!1===t.ctrlKey&&this._clearSelection(),this._selectCols(s>i?f._.range(i,s+1):f._.range(s,i+1).reverse());break;case"cells":!1===t.ctrlKey&&this._clearSelection(),this._selectCellRange(e,i,r,s)}}catch(t){f.QCELL.log("err","QCELL.BasicQCELL._selectDragArea",t.message)}},f.QCELL.BasicQCELL.prototype._isSelectedRow=function(t){return this._getIdxInfo("selected","row").containsKey(t)},f.QCELL.BasicQCELL.prototype._isSelectedCol=function(t){return this._getIdxInfo("selected","col").containsKey(t)},f.QCELL.BasicQCELL.prototype._isSelectedCell=function(t,e){var i=this._getIdxInfo("selected","row");return!!i.containsKey(t)&&i.get(t).contains(e)},f.QCELL.BasicQCELL.prototype._selectGroup=function(t,e){if(!1===f._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"group"===this.attr("merge").data){var i,s={},a=0,o=0,n=0,l=0,c=f.QCELL.def.css,h=this.attr("headerrows"),u=this.attr("headercols"),d=this.attr("rows"),p=this.attr("cols");if(this._isMergeCell(t,e)?(a=(s=this._getMergeInfo(t,e,this.attr("merge_data_info"))).nStartRow,o=s.nStartCol,n=s.nEndRow,l=s.nEndCol):(a=t,o=e,n=t,l=e),a>=h&&n<d&&o>u&&l<p){for(var g,_,C,L,m=this._getIdxInfo("selected","row"),E=this._getIdxInfo("selected","col"),v=[],b=l;u<=b;b--)for(var y=n;a<=y;y--){if(C=y,L=b,this._isMergeCell(y,b)){var w=this._getMergeInfo(y,b,this.attr("merge_data_info"));C=w.nStartRow,L=w.nStartCol}i=this._getCellDOM(C,L),f._.isElement(i)&&(f.util.addClass(i,c.CELL_SELECT),v.push({sr:C,sc:L}))}v.reverse();for(var x=0;x<v.length;x++){var Q=v[x];g=m.containsKey(Q.sr)?m.remove(Q.sr):new r._QHashSet,_=E.containsKey(Q.sc)?E.remove(Q.sc):new r._QHashSet,g.add(Q.sc),_.add(Q.sr),m.put(Q.sr,g),E.put(Q.sc,_)}}}},f.QCELL.BasicQCELL.prototype._deselectGroup=function(t,e){},f.QCELL.BasicQCELL.prototype._getDefaultSortArea=function(t){if(null===this.attr("defaultsortarea")){var e=document.createElement("div");this.attr("defaultsortarea",this._createDefaultSortArea(e),"jquery")}return null===this._getQCellCol(t).attr("colsortarea")&&this._getQCellCol(t).attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),this._getQCellCol(t).attr("colsortarea").get(0)},f.QCELL.BasicQCELL.prototype._createDefaultSortArea=function(t){var e=f.QCELL.def.css,i=t.cloneNode(),r=this.attr("rowheight").header;return i.className+=e.SORT_AREA,i.style.top=r-(r/2+5)+"px",f.$(i)},f.QCELL.BasicQCELL.prototype._createMultiSortOrder=function(){var t=f.QCELL.def.css,e=document.createElement("span"),i=this.attr("rowheight").header;return e.className+=t.MULTI_SORT_ORDER,e.style.bottom=-(i-(i/2+7))+"px",f.$(e)},f.QCELL.BasicQCELL.prototype._sort=function(t){if(!0===this.attr("isSorting"))return!1;var e,i;if(this.attr("isSorting",!0,"boolean"),t.length>1){for(var r=!0,s=!0,a=0;a<t.length;a++)if(f._.isNumber(t[a][0])){if(s=!1,void 0===(i=this._getQCellCol(t[a][0])))return!1;if(!1===i.attr("sort")){r=!1;break}}if(r)return!1===s&&this._updateMultiSortIcon(t),this._multiSort(t),!0}else{if(e=t[0][0],f._.isString(e))return this._singleSort(e,t[0][1],t[0][2]),!0;if(!1===f._.isUndefined(e)){if((i=this._getQCellCol(e)).attr("sort"))return this._updateSingleSortIcon(t),this._singleSort(e,i.attr("sortinfoofcol").sorttype,i.attr("datatype")),!0}else this.attr("sortinfo",[],"array")}return!1},f.QCELL.BasicQCELL.prototype._makeSingleSortList=function(t){var e,i,r=this.attr("sortinfo"),s=this._getQCellCol(t);if(r.length>1){var a="asc";for(i=0;i<r.length;i++)if(r[i][0]===t)switch(r[i][1]){case"asc":a="desc";break;case"desc":a="";break;default:a="asc"}e=[[t,a,s.attr("datatype")]]}else if(1===r.length)if(r[0][0]===t)switch(r[0][1]){case"asc":e=[[r[0][0],"desc",r[0][2]]];break;case"desc":e=[[r[0][0],"",r[0][2]]];break;default:e=[[r[0][0],"asc",r[0][2]]]}else e=[[t,"asc",s.attr("datatype")]];else e=[[t,"asc",s.attr("datatype")]];return e},f.QCELL.BasicQCELL.prototype._updateSingleSortIcon=function(t){var e,i,r,s,a,o,n,l=f.QCELL.def.css,c=this.attr("sortinfo");for(r=0;r<c.length;r++)null===(e=this._getQCellCol(c[r][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),i=e.attr("colsortarea"),e.setSortInfoOfCol("none",0),i.removeClass(l.SORT_ASC).removeClass(l.SORT_DESC),i.empty(),e.attr("cloneSort_master")&&(s=e.attr("cloneSort_master"),a=e.attr("cloneSort_sort"),o=i.clone(),n=a.position(),o.css("top",n.top),a.remove(),s.append(o),e.attr("cloneSort_sort",o,"jquery"));var h=f._.isString(t[0][0])?this._getColsOfKey(t[0][0])[0]:t[0][0];null===(e=this._getQCellCol(h)).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),i=e.attr("colsortarea"),"asc"===t[0][1]?(i.addClass(l.SORT_ASC),e.setSortInfoOfCol("asc",e.attr("sortinfoofcol").order)):"desc"===t[0][1]&&(i.addClass(l.SORT_DESC),e.setSortInfoOfCol("desc",e.attr("sortinfoofcol").order)),e.setSortInfoOfCol(e.attr("sortinfoofcol").sorttype,1),e.attr("colsortarea",i,"jquery"),e.attr("cloneSort_master")&&(s=e.attr("cloneSort_master"),a=e.attr("cloneSort_sort"),o=i.clone(),n=a.position(),o.css("top",n.top),a.remove(),s.append(o),e.attr("cloneSort_sort",o,"jquery"))},f.QCELL.BasicQCELL.prototype._makeMultiSortList=function(t){var e,i,r=[],s=this._getQCellCol(t);if(f._.each(this.attr("sortinfo"),(function(t){r.push(f._.clone(t))})),r.length>1){var a=!0;for(i=0;i<r.length;i++)if(r[i][0]===t){switch(r[i][1]){case"asc":r[i][1]="desc";break;case"desc":r[i][1]="asc"}a=!1;break}a&&r.push([t,"asc",s.attr("datatype")]),e=r}else if(1===r.length)if(r[0][0]===t)switch(r[0][1]){case"asc":e=[[r[0][0],"desc",r[0][2]]];break;case"desc":e=[[r[0][0],"asc",r[0][2]]]}else r.push([t,"asc",s.attr("datatype")]),e=r;else e=[[t,"asc",s.attr("datatype")]];return e},f.QCELL.BasicQCELL.prototype._updateMultiSortIcon=function(t){var e,i,r,s,a=f.QCELL.def.css,o=this.attr("sortinfo");if(null!=o){for(s=0;s<o.length;s++)null===(e=this._getQCellCol(o[s][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),i=e.attr("colsortarea"),e.setSortInfoOfCol("none",0),i.removeClass(a.SORT_ASC).removeClass(a.SORT_DESC),i.empty();if(void 0!==t)for(s=0;s<t.length;s++)if(null===(e=this._getQCellCol(t[s][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),i=e.attr("colsortarea"),r=this._createMultiSortOrder(),"asc"===t[s][1]?(i.addClass(a.SORT_ASC),e.setSortInfoOfCol("asc",e.attr("sortinfoofcol").order)):(i.addClass(a.SORT_DESC),e.setSortInfoOfCol("desc",e.attr("sortinfoofcol").order)),e.setSortInfoOfCol(e.attr("sortinfoofcol").sorttype,s+1),r.text(e.attr("sortinfoofcol").order),i.get(0).appendChild(r.get(0)),e.attr("colsortarea",i,"jquery"),e.attr("cloneSort_master")){var n=e.attr("cloneSort_master"),l=e.attr("cloneSort_sort"),c=i.clone(),h=l.position();c.css("top",h.top);var u=c.get(0).childNodes,d=0;for(d=0;d<u.length;d++){var p=u[0],g=e.attr("cloneSort_master_height");p.style.bottom=-(g-(g/2+7))+"px"}l.remove(),n.append(c),e.attr("cloneSort_sort",c,"jquery")}}},f.QCELL.BasicQCELL.prototype._clearSortUI=function(){var t=this.attr("sortinfo");if(t.length>0){var e,i=this._getSyncInfo("col"),r=this;f._.each(t,(function(t){(e=r._getQCellCol(t[0])).attr("colsortarea",r.attr("defaultsortarea").clone(!0),"jquery"),e.setSortInfoOfCol("none",0),!0===i.containsKey(t[0])&&(i.get(t[0]).remove("sort"),i.get(t[0]).isEmpty()&&i.remove(t[0]))})),this.attr("sortinfo",[],"array"),this._refreshHRs()}},f.QCELL.BasicQCELL.prototype._sortProcess=function(t){if(!0===this.attr("isSorting"))return!1;this.attr("isSorting",!0,"boolean"),this._updateIdx("click",this._getRowFromTarget(t.target),this._getColFromTarget(t.target));var e=this._idx("col","click");if(-1!==e){var i,r=this._getQCellCol(e);if(t.shiftKey)i=this._makeMultiSortList(e),this._updateMultiSortIcon(i),this.attr("sortinfo",i,"array"),this._multiSort(i);else{if(i=this._makeSingleSortList(e),e<this.getCols("header")){var s=this.attr("rowheaders");void 0!==s[e]&&"desc"!==i[0][1]?s[e]="sequence":s[e]="reverse",i[0][2]="number",this.attr("rowheaders",s,"array"),r.attr("datatype","number","string")}this._updateSingleSortIcon(i),this.attr("sortinfo",[[e,r.attr("sortinfoofcol").sorttype,r.attr("datatype")]],"array"),e<this.getCols("header")?this._singleSort("_rt_qc_s_i",r.attr("sortinfoofcol").sorttype,r.attr("datatype")):this._singleSort(e,r.attr("sortinfoofcol").sorttype,r.attr("datatype"))}}},f.QCELL.BasicQCELL.prototype._getColStyleClassName=function(t,e){try{var i=this.attr("qcellcols")[t];return null==i?"":this.attr("qcellcols")[t].getStyleClassName(e)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._getColStyleClassName",t.message),""}},f.QCELL.BasicQCELL.prototype._removeColStyleClassName=function(t){var e,i,r=this.attr("headerrows"),s=this.attr("rows"),a=this._getColStyleClassName(t,"header"),o=this._getColStyleClassName(t,"data");if(""!==a)for(e=0;e<r;e++)null!==(i=this._getCellDOM(e,t))&&f.util.removeClass(i,a);if(""!==o)for(e=r;e<s;e++)null!==(i=this._getCellDOM(e,t))&&f.util.removeClass(i,o);return!0},f.QCELL.BasicQCELL.prototype._setHighlightRepeat=function(t){try{return this.attr("highlightrepeat",t,"number"),this._clearHighlightRepeatCSS(),this._refreshDRs(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._setHighlightRepeat",t.message),!1}},f.QCELL.BasicQCELL.prototype._clearHighlightRepeatCSS=function(){return f.util.removeClass(f._.flatten(this.attr("cellmatrix").get("row")),f.QCELL.def.css.CELL_HIGHLIGHTREPEAT),!0},f.QCELL.BasicQCELL.prototype._initColStyles=function(){var t=!0;return f.$.each(this.attr("qcellcols"),(function(e,i){if(!1===i.initStyle())return t=!1,!1})),t},f.QCELL.BasicQCELL.prototype._initColStyle=function(t){return this.attr("qcellcols")[t].initStyle()},f.QCELL.BasicQCELL.prototype._getColStyle=function(t,e){return this.attr("qcellcols")[t].getStyle(e)},f.QCELL.BasicQCELL.prototype._setColStyle=function(t,e,i,r){var s,a=this.attr("headerrows"),o=this.attr("rows"),n=!1;if(this.attr("qcellcols")[t].setStyle(e,i),a>0&&("header"===i||"all"===i)){for(s=0;s<a;s++)this._setCellStyle(s,t,e,r);n=!0}if("data"===i||"all"===i){for(s=a;s<o;s++)this._setCellStyle(s,t,e,r);n=!0}return n},f.QCELL.BasicQCELL.prototype._removeColStyle=function(t,e,i){var r,s=this.attr("headerrows"),a=this.attr("rows"),o=!1;if(this.attr("qcellcols")[t].removeStyle(e),s>0&&("header"===e||"all"===e)){for(r=0;r<s;r++)this._removeCellStyle(r,t,i);o=!0}if("data"===e||"all"===e){for(r=s;r<a;r++)this._removeCellStyle(r,t,i);o=!0}return o},f.QCELL.BasicQCELL.prototype._clearColStyles=function(){var t=!0;return f.$.each(f._.filter(this.attr("qcellcols"),(function(t){return f._.size(t.attr("style").header)>0||f._.size(t.attr("style").data)>0})),(function(e,i){if(!1===i.removeStyle("all"))return t=!1,!1})),t},f.QCELL.BasicQCELL.prototype._setRowStyle=function(t,e,i,r){var s,a=this.attr("headercols"),o=this.attr("cols"),n=!1;if(a>0&&("header"===i||"all"===i)){for(s=0;s<a;s++)this._setCellStyle(t,s,e,r);n=!0}if("data"===i||"all"===i){for(s=a;s<o;s++)this._setCellStyle(t,s,e,r);n=!0}return n},f.QCELL.BasicQCELL.prototype._removeRowStyle=function(t,e,i){var r,s=this.attr("headercols"),a=this.attr("cols"),o=!1;if(s>0&&("header"===e||"all"===e)){for(r=0;r<s;r++)this._removeCellStyle(t,r,i);o=!0}if("data"===e||"all"===e){for(r=s;r<a;r++)this._removeCellStyle(t,r,i);o=!0}return o},f.QCELL.BasicQCELL.prototype._hasCellStyle=function(t,e){try{var i=this._getIdxInfo("style","row");return!!i.containsKey(t)&&i.get(t).containsKey(e)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._hasCellStyle",t.message),!1}},f.QCELL.BasicQCELL.prototype._getCellStyle=function(t,e){var i=this._getIdxInfo("style","row");if(i.containsKey(t)){var r=i.get(t);if(r.containsKey(e))return f._.clone(r.get(e))}return{}},f.QCELL.BasicQCELL.prototype._setCellStyle=function(t,e,i,s){try{var a,o,n=this._getSyncInfo("row"),l=this._getSyncInfo("col"),c=this._getIdxInfo("style","row"),h=this._getIdxInfo("style","col"),u=this.attr("currentdata");if(t>=this.getRows("header")){void 0===u[t-this.getRows("header")]._rt_qc_style&&(u[t-this.getRows("header")]._rt_qc_style={});var d=this._getKeyOfCol(e);null!=d&&(u[t-this.getRows("header")]._rt_qc_style[d]={row:t,col:e,style:f._.clone(i)})}if(s){var p=this._getCellDOM(t,e);if(f._.isElement(p)){var g="";for(var _ in i)g+=_+": "+i[_]+";";f.$(p).attr("style",(function(t,e){return(e||"")+g}))}}return!1===n.containsKey(t)&&n.put(t,new r._QHashSet),n.get(t).add("style"),!1===c.containsKey(t)&&c.put(t,new r._QHashtable),(a=c.get(t)).containsKey(e)?a.put(e,f._.extend(a.get(e),i)):a.put(e,f._.clone(i)),!1===l.containsKey(e)&&l.put(e,new r._QHashSet),l.get(e).add("style"),!1===h.containsKey(e)&&h.put(e,new r._QHashtable),(o=h.get(e)).containsKey(t)?o.put(t,f._.extend(o.get(t),i)):o.put(t,f._.clone(i)),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._setCellStyle",t.message),!1}},f.QCELL.BasicQCELL.prototype._setCellStyles=function(t,e,i,r,s,a){for(var o=t>i,n=e>r,l=!0,c=t;(o?c>=i:c<=i)&&!1!==l;o?c--:c++)for(var h=e;n?h>=r:h<=r;n?h--:h++)if(!1===this._setCellStyle(c,h,s,a)){l=!1;break}return l},f.QCELL.BasicQCELL.prototype._removeCellStyle=function(t,e,i){try{var r=this._getIdxInfo("style","row"),s=this._getIdxInfo("style","col"),a=this._getSyncInfo("row"),o=this._getSyncInfo("col");if(i){var n=this._getCellDOM(t,e);f._.isElement(n)&&f.$(n).css(f._.mapValues(this._getCellStyle(t,e),(function(t,e){return""})))}var l=this._getKeyOfCol(e),c=this.attr("currentdata");if(t-this.getRows("header")>=0&&null!=l&&void 0!==c[t-this.getRows("header")]._rt_qc_style&&void 0!==c[t-this.getRows("header")]._rt_qc_style[l]&&delete c[t-this.getRows("header")]._rt_qc_style[l],r.containsKey(t)){var h=r.get(t);if(h.containsKey(e)&&(h.remove(e),0===h.size()&&r.remove(t)),0===h.size()&&a.containsKey(t)){var u=a.get(t);u.remove("style"),u.isEmpty()&&a.remove(t)}}if(s.containsKey(e)){var d=s.get(e);if(d.containsKey(t)&&(d.remove(t),0===d.size()&&s.remove(e)),0===d.size()&&o.containsKey(e)){var p=o.get(e);p.remove("style"),p.isEmpty()&&o.remove(e)}}return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._removeCellStyle",t.message),!1}},f.QCELL.BasicQCELL.prototype._removeCellStyles=function(t,e,i,r,s){for(var a=t>i,o=e>r,n=!0,l=t;(a?l>=i:l<=i)&&!1!==n;a?l--:l++)for(var c=e;o?c>=r:c<=r;o?c--:c++)if(!1===this._removeCellStyle(l,c,s)){n=!1;break}return n},f.QCELL.BasicQCELL.prototype._removeCellStylesOfRow=function(t,e){var i=this._getIdxInfo("style","row");if(i.containsKey(t)){var r=i.get(t),s=this;r.each((function(i,r){s._removeCellStyle(t,i,e)}))}},f.QCELL.BasicQCELL.prototype._clearCellStyles=function(){try{var t=this._getIdxInfo("style","row"),e=this._getIdxInfo("style","col"),i=this._getSyncInfo("row"),r=this._getSyncInfo("col");return this._clearCellStyleCSS("row","all"),f._.each(t.keys(),(function(t){if(i.containsKey(t)){var e=i.get(t);e.remove("style"),e.isEmpty()&&i.remove(t)}})),t.clear(),f._.each(e.keys(),(function(t){if(r.containsKey(t)){var e=r.get(t);e.remove("style"),e.isEmpty()&&r.remove(t)}})),e.clear(),!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._clearCellStyles",t.message),!1}},f.QCELL.BasicQCELL.prototype._clearCellStyleCSS=function(t,e){var i=this;if("row"===t){var r,s=this._getIdxInfo("style","row"),a=this.attr("vsinfo"),o=this.attr("headerrows"),n=this.attr("frozenrows"),l=this.attr("frozenbottomrows"),c=this.attr("rows");return r=f._.reject(s.keys().sort(f.st.asc),(function(t){return t<a.nTopRow&&t>=o+n||t>a.nBottomRow&&t<c-l})),"all"!==e&&(r=f._.filter(r,"header"===e?function(t){return t<o}:function(t){return t>=o})),f._.each(r,(function(t){s.get(t).each((function(e,r){var s=i._getCellDOM(t,e);f.$(s).css(f._.mapValues(r,(function(t,e){return""})))}))})),!0}if("col"===t){var h,u=this._getIdxInfo("style","col"),d=this.attr("hsinfo"),p=this.attr("headercols"),g=this.attr("frozencols");h=f._.reject(u.keys().sort(f.st.asc),(function(t){return t<d.nLeftCol&&t>=p+g||t>d.nRightCol})),"all"!==e&&(h=f._.filter(h,"header"===e?function(t){return t<p}:function(t){return t>=p})),f._.each(h,(function(t){u.get(t).each((function(e,r){var s=i._getCellDOM(e,t);f.$(s).css(f._.mapValues(r,(function(t,e){return""})))}))}))}return!1},f.QCELL.BasicQCELL.prototype._removeAllCellStyleCSS=function(){var t=this,e=this._getIdxInfo("style","row");f._.each(e.keys(),(function(i){e.get(i).each((function(e,r){var s=t._getCellDOM(i,e);f._.isElement(s)&&f.$(s).css(f._.mapValues(r,(function(t,e){return""})))}))}))},f.QCELL.BasicQCELL.prototype._setCellStyleCSS=function(t,e){var i="";for(var r in e)i+=r+": "+e[r]+";";f.$(t).attr("style",(function(t,e){return(e||"")+i}))},f.QCELL.BasicQCELL.prototype._removeCellStyleCSS=function(t,e){f._.each(f._.keys(e),(function(e){t.style[f.$.camelCase(e)]=""}))},f.QCELL.BasicQCELL.prototype._clearDynamicStyles=function(){return this._clearCellStyles()&&this._setHighlightRepeat(this.getProperties().highlightrepeat)},f.QCELL.BasicQCELL.prototype._clearDynamicCSS=function(t,e){"header"!==e&&(this._clearFocusCSS(),this._clearSelectionCSS()),this._clearCellStyleCSS(t,e)},f.QCELL.BasicQCELL.prototype._isCellStyleRow=function(t){return this._getIdxInfo("style","row").containsKey(t)},f.QCELL.BasicQCELL.prototype._isCellStyleCol=function(t){return this._getIdxInfo("style","col").containsKey(t)},f.QCELL.BasicQCELL.prototype._hasCellStyle=function(t,e){try{var i=this._getIdxInfo("style","row");return!!i.containsKey(t)&&i.get(t).containsKey(e)}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._hasCellStyle",t.message),!1}},f.QCELL.BasicQCELL.prototype._getIdxInfo=function(t,e){return this.attr("idxinfo")[t][e]},f.QCELL.BasicQCELL.prototype._getSyncInfo=function(t){return this.attr("syncinfo")[t]},f.QCELL.BasicQCELL.prototype._popColSyncInfos=function(t,e){for(var i=[],r=this._getSyncInfo("col"),s=this,a=function(t){switch(l.idxinfo={style:null,state:null},t){case"style":var e=s._getIdxInfo("style","col"),i=s._getIdxInfo("style","row"),r=e.remove(n);l.idxinfo.style=r,null!==i&&null!==r&&null!==r&&f._.each(r.keys(),(function(t){i.get(t).remove(n)}));break;case"state":var a=s._getIdxInfo("state","col");l.idxinfo.style=a.remove(n)}},o=t;o<t+e;o++){var n=o,l={idxinfo:null,syncinfo:null};if(r.containsKey(n)){var c=r.remove(n);f._.each(c.values(),a),l.syncinfo=c}i.push(l)}return i},f.QCELL.BasicQCELL.prototype._putColSyncInfos=function(t,e){var i=this,r=this._getSyncInfo("col");f._.each(t,(function(t,s){var a=e[s],o=a.syncinfo;null!==o&&(f._.each(o.values(),(function(e){switch(e){case"style":var r=i._getIdxInfo("style","col"),s=i._getIdxInfo("style","row"),o=a.idxinfo.style;null!==o&&(r.put(t,o),f._.each(o.keys(),(function(e){s.get(e).put(t,o.get(e))})));break;case"state":i._getIdxInfo("state","col").put(t,a.idxinfo.state);break;case"sort":var n=i._getQCellCol(t);i.attr("sortinfo")[n.attr("sortinfoofcol").order-1][0]=t}})),r.put(t,o))}))},f.QCELL.BasicQCELL.prototype._pushColSyncInfo=function(t,e){if(t.length>0){var i=this._getSyncInfo("col");if(i.size()>0){var r=this;f._.each(t,(function(t){var s=i.remove(t);f._.each(s.values(),(function(i){switch(i){case"style":var s=r._getIdxInfo("style","col"),a=r._getIdxInfo("style","row"),o=s.remove(t);s.put(t+e,o),null!==o&&f._.each(o.keys(),(function(i){var r=a.get(i);r.put(t+e,r.remove(t))}));break;case"state":var n=r._getIdxInfo("state","col");n.put(t+e,n.remove(t));break;case"sort":var l=r.attr("sortinfo");f._.each(l,(function(i){i[0]===t&&(i[0]=t+e)}))}})),i.put(t+e,s)}))}}},f.QCELL.BasicQCELL.prototype._pullColSyncInfo=function(t,e){if(t.length>0){var i=this._getSyncInfo("col");if(i.size()>0){var r=this;f._.each(t,(function(t){var s=i.remove(t);f._.each(s.values(),(function(i){switch(i){case"style":var s=r._getIdxInfo("style","col"),a=r._getIdxInfo("style","row"),o=s.remove(t);s.put(t-e,o),null!==o&&f._.each(o.keys(),(function(i){var r=a.get(i);r.put(t-e,r.remove(t))}));break;case"state":var n=r._getIdxInfo("state","col");n.put(t-e,n.remove(t));break;case"sort":var l=r.attr("sortinfo");f._.each(l,(function(i){i[0]===t&&(i[0]=t-e)}))}})),i.put(t-e,s)}))}}},f.QCELL.BasicQCELL.prototype._createTooltip=function(t,e,i){if(!0!==this.attr("disabletooltip")){var r=f.QCELL.def,s=r.cssprefix+this.attr("id")+"-tooltip",a='<div id="'+s+'" class="'+r.css.TOOLTIP+'"><div class="content"></div></div>',o=this.attr("elementpool").get("$root"),n=""===f.$.trim(t.html())?" ":t.html().replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'"),l=this._setTooltipPos(e);void 0!==i&&(n=i),this._removeTooltip(),!1===this.attr("tooltipvisible")&&(f.$.browser.msie?f.$(document.body).append(a):f.$(o).append(a),f.$("#"+s+" > .content").append(n),f.$("#"+s).hide().css(l).fadeIn(400),this.attr("tooltipvisible",!0,"boolean"))}},f.QCELL.BasicQCELL.prototype._moveTooltip=function(t,e){if(!0!==this.attr("disabletooltip")){var i=f.QCELL.def.cssprefix+this.attr("id")+"-tooltip",r=this._setTooltipPos(e);f.$("#"+i).hide().css(r).fadeIn(400)}},f.QCELL.BasicQCELL.prototype._setTooltipPos=function(t){if(!0!==this.attr("disabletooltip")){var e;return e=t.clientX,{top:t.clientY+21+"px",left:e+"px"}}},f.QCELL.BasicQCELL.prototype._removeTooltip=function(){if(!0!==this.attr("disabletooltip")){var t=f.QCELL.def.css;f.$("."+t.TOOLTIP).remove(),this.attr("tooltipvisible",!1,"boolean")}},f.QCELL.BasicQCELL.prototype._refreshRs=function(){this._refreshHRs(),this._refreshDRs()},f.QCELL.BasicQCELL.prototype._refreshCs=function(){this._refreshHCs(),this._refreshDCs()},f.QCELL.BasicQCELL.prototype._refreshDRs=function(){this._refreshFRs(),this._refreshNRs(),this._refreshFBRs()},f.QCELL.BasicQCELL.prototype._refreshDCs=function(){this._refreshFCs(),this._refreshNCs()},f.QCELL.BasicQCELL.prototype._setVSRange=function(){try{var t=this.attr("vsinfo"),e=this.attr("headerrows"),i=this.attr("rows");return i-e>0?(t.nStartRow=e+this.attr("frozenrows"),t.nEndRow=i-this.attr("frozenbottomrows")-1):t.nStartRow=t.nEndRow=-1,!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._setVSRange",t.message),!1}},f.QCELL.BasicQCELL.prototype._initVSInfo=function(){var t=this.attr("vsinfo");t.bVScroll=!1,t.nStartRow=t.nEndRow=t.nTopRow=t.nBottomRow=-1,t.nAdjustRows=t.nDynamicRows=t.nLength=t.nLastPos=t.nPos=t.nTop=t.nBeforeTop=t.nLengthPerRow=0,t.objUpdateInfo={bWholeUpdate:!1,objParams:{}}},f.QCELL.BasicQCELL.prototype._updateVSInfo=function(){try{var t=this.attr("vsinfo"),e=t.objUpdateInfo,i=this.attr("currentdata").length,r=this.attr("headerrows"),s=this.attr("rows");if(e.objParams={},t.bVScroll){var a=0;if(e.bWholeUpdate=!0,t.nTopRow=t.nStartRow+t.nPos,t.nDynamicRows>i)t.nBottomRow=t.nEndRow;else{var o=this.attr("frozenrows"),n=this.attr("frozenbottomrows");if(t.nBottomRow=t.nTopRow+(t.nDynamicRows-o-n)-1,t.nBottomRow>t.nEndRow)if(t.nTopRow-=t.nBottomRow-t.nEndRow,t.nBottomRow=t.nEndRow,t.nLastPos===t.nPos){var l=this.attr("layoutsize").viewport.offsetHeight,c=this._getSumOfRowHeight(r,r+o-1),h=this._getSumOfRowHeight(s-n,s-1);a=c+this._getSumOfRowHeight(t.nTopRow,t.nEndRow)-(l-h)}else a=this._getSumOfRowHeight(t.nTopRow,t.nTopRow+(t.nPos-(t.nLastPos-t.nAdjustRows))-1)}e.objParams.nAdjustedTop=a,(this.attr("useall")||this.attr("usetreeall"))&&(t.nTopRow>t.nStartRow?f.$("#"+this.getID()+"_vsbp").prop("disabled",!1):f.$("#"+this.getID()+"_vsbp").prop("disabled",!0),t.nBottomRow===t.nEndRow?f.$("#"+this.getID()+"_vsbn").prop("disabled",!0):f.$("#"+this.getID()+"_vsbn").prop("disabled",!1))}else e.bWholeUpdate=!1,i>0?(t.nTopRow=r,t.nBottomRow=s-1):t.nTopRow=t.nBottomRow=-1;return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._updateVSInfo",t.message),!1}},f.QCELL.BasicQCELL.prototype.onVScroll=function(t){var e=this.attr("vsinfo"),i=this,r=0;Math.abs(e.nTop-t)>=e.nLengthPerRow&&(r=parseInt(-(t-e.nTop)/e.nLengthPerRow),e.nBeforeTop=e.nTop,e.nTop=e.nTop-r*e.nLengthPerRow,e.nPos=-e.nTop/e.nLengthPerRow,this._adjustScrollPos(),this._syncVSInfo(),this._updateNRs(),(this.attr("useall")||this.attr("usetreeall"))&&(e.nTopRow>e.nStartRow?f.$("#"+this.getID()+"_vsbp").prop("disabled",!1):f.$("#"+this.getID()+"_vsbp").prop("disabled",!0),e.nBottomRow===e.nEndRow?f.$("#"+this.getID()+"_vsbn").prop("disabled",!0):f.$("#"+this.getID()+"_vsbn").prop("disabled",!1),!0!==this.attr("isFocussing")&&setTimeout((function(){var t=document.getElementById("container-"+i.getID());null!=t&&t.focus()}),100)))},f.QCELL.BasicQCELL.prototype._syncVSInfo=function(){var t,e=this.attr("vsinfo"),i=e.objUpdateInfo,r=(e.nBeforeTop-e.nTop)/e.nLengthPerRow,s=this.attr("headerrows"),a=this.attr("frozenrows"),o=this.attr("frozenbottomrows"),n=this.attr("rows"),l=this.attr("layoutsize").viewport.offsetHeight,c=this._getSumOfRowHeight(s,s+a-1),h=this._getSumOfRowHeight(n-o,n-1);if(i.objParams={},Math.abs(r)>=e.nDynamicRows-a-o){var u=0,d=0;i.bWholeUpdate=!0,r>0?e.nPos>e.nLastPos-e.nAdjustRows?(u=e.nPos-(e.nLastPos-e.nAdjustRows),e.nTopRow+=r-u,e.nBottomRow+=r-u,d=e.nLastPos===e.nPos?c+this._getSumOfRowHeight(e.nTopRow,e.nEndRow)-(l-h):this._getSumOfRowHeight(e.nTopRow,e.nTopRow+(e.nPos-(e.nLastPos-e.nAdjustRows))-1)):(e.nTopRow+=r,e.nBottomRow+=r):e.nPos>=e.nLastPos-e.nAdjustRows?(u=e.nPos-(e.nLastPos-e.nAdjustRows),d=this._getSumOfRowHeight(e.nTopRow,e.nTopRow+u-1)):(t=e.nPos-r>=e.nLastPos-e.nAdjustRows?e.nPos-r-(e.nLastPos-e.nAdjustRows):0,e.nTopRow+=r+t,e.nBottomRow+=r+t),i.objParams.nAdjustedTop=d}else{var p=0;i.bWholeUpdate=!1,i.objParams.nMovedCount=r,r>0?(e.nPos>e.nLastPos-e.nAdjustRows?(p=e.nEndRow-e.nBottomRow,i.objParams.bWholePositionChanged=!0):(p=r,i.objParams.bWholePositionChanged=!1),e.nTopRow+=p,e.nBottomRow+=p):e.nPos>=e.nLastPos-e.nAdjustRows?i.objParams.bWholePositionChanged=!0:(t=e.nPos-r>=e.nLastPos-e.nAdjustRows?e.nPos-r-(e.nLastPos-e.nAdjustRows):0,p=Math.abs(r)-t,e.nTopRow-=p,e.nBottomRow-=p,i.objParams.bWholePositionChanged=!1),i.objParams.nCutRowsCount=p}},f.QCELL.BasicQCELL.prototype._resizeVScrollbar=function(t){try{var e=this.attr("elementpool"),i=e.get("vscrollthumb"),r=e.get("$jqvscrollbar"),s=this.attr("layoutsize"),a=this.attr("vsinfo");if(a.bVScroll){var o,n,l,c,h=0,u=this.attr("headerrows"),d=this.attr("frozenrows"),p=this.attr("frozenbottomrows"),g=this.attr("rows"),_=s.viewport.offsetHeight,C=s.vscrollbar.clientHeight,L=this._getSumOfRowHeight(u,u+d-1),m=this._getSumOfRowHeight(g-p,g-1);for(n=u;n<g;n++)if(this._getSumOfRowHeight(u,n)>=_){h=n-u+1;break}for(a.nLengthPerRow=Math.round(C/h),a.nAdjustRows=0,a.nLastPos=a.nEndRow-(a.nStartRow+(a.nDynamicRows-d-p)-1),n=a.nStartRow+a.nLastPos;n<=a.nEndRow;n++){if(!(L+m+this._getSumOfRowHeight(a.nStartRow+a.nLastPos+a.nAdjustRows,a.nEndRow)>_))break;a.nAdjustRows+=1}a.nLastPos+=a.nAdjustRows,void 0===t&&(0!==a.nPos&&a.nPos+1<a.nLastPos&&(a.nPos=a.nLastPos-1,a.nTop=-a.nPos*a.nLengthPerRow),a.nPos>a.nLastPos&&(a.nPos=a.nLastPos,a.nTop=-a.nPos*a.nLengthPerRow),a.nTop!==-a.nPos*a.nLengthPerRow&&(a.nTop=-a.nPos*a.nLengthPerRow)),a.nLength=a.nLastPos*a.nLengthPerRow,C+a.nLength>1533917&&(a.nLengthPerRow=Math.floor((1533917-C)/a.nLastPos),a.nLengthPerRow<1&&(a.nLengthPerRow=1),a.nLength=a.nLastPos*a.nLengthPerRow),i.style.height=C+a.nLength+"px";var E=this;o=function(t){var e=this.mcs.top;if(void 0===t)try{f.util.rAF((function(){setTimeout((function(){E.onVScroll(e),E._trigger("scrollmove")}))}))}catch(t){f.QCELL.log("err","VScrollbar.onScroll ",t.message)}},l=function(t){E.onScrollTop()},c=function(t){E.onScrollBottom()},void 0!==r.rt_qc_mCSbar&&f.$(r).rt_qc_mCSbar("destroy").rt_qc_mCSbar({axis:"y",theme:"qcell-default",setWidth:"100%",setHeight:"100%",scrollInertia:0,snapAmount:a.nLengthPerRow,mouseWheel:{enable:!0,preventDefault:!0,normalizeDelta:!0,scrollAmount:a.nLengthPerRow},scrollButtons:{enable:!0,scrollAmount:a.nLengthPerRow},keyboard:{enable:!1},advanced:{updateOnContentResize:!1},callbacks:{onScroll:o,whileScrolling:o,onTotalScroll:c,onTotalScrollBack:l},documentTouchScroll:null!==f.util.isMobile(),target:this}),a.nTop<0&&r.rt_qc_mCSbar("scrollTo",a.nTop,"",{ignorecallback:!0}),o=null;var v=this.attr("elementpool").get("jqvscrollbar").getElementsByClassName("rt_qc_mCSB_scrollTools")[0];if(null!=v&&(this.attr("useall")||this.attr("usetreeall"))){var b,y,w,x,Q,k=document.createElement("button");k.setAttribute("id",this.getID()+"_vsbp"),k.setAttribute("type","button"),k.className+="rt_qc_mCSB_buttonPrev",k.onclick=function(){if(b=E._idx("row","focus","current"),y=E._idx("col","focus","current"),Q=E.attr("vsinfo"),w=E._getTopRowOfScreen(),x=E._getBottomRowOfScreen(),-1===b&&(b=Q.nTopRow),-1===y&&(y=E.getCols("header")),b--,E.attr("frozenrows")>0&&b<=E.attr("frozenrows")+E.attr("headerrows")-1)return!1;b>=w&&b<=x?(b-=x-w,w-=x-w):(b=w-(x-w),w-=x-w),b--,w--,b<=E.attr("headerrows")&&(w=Q.nStartRow),E._scrollTop(w),E._scrollLeft(E.getCols("header")),setTimeout((function(){var t=document.getElementById("container-"+E.getID());null!=t&&t.focus()}),100)};var T=document.createTextNode("이전 데이터 정보");k.appendChild(T),v.appendChild(k);var R=document.createElement("button");R.setAttribute("id",this.getID()+"_vsbn"),R.setAttribute("type","button"),R.className+="rt_qc_mCSB_buttonNext",R.onclick=function(){if(b=E._idx("row","focus","current"),y=E._idx("col","focus","current"),w=E._getTopRowOfScreen(),x=E._getBottomRowOfScreen(),Q=E.attr("vsinfo"),-1===b&&(b=Q.nBottomRow),-1===y&&(y=E.getCols("header")),b>=E.attr("headerrows")&&b<E.attr("rows")-1){if(b>=E.attr("rows")-E.attr("frozenbottomrows"))return!1;b>=w&&b<=x?b+=x-w:b=x,b>=E.attr("rows")&&(b=Q.nBottomRow+1),w+=x-w,++w>=Q.nEndRow&&(w=Q.nEndRow),E._scrollTop(w),E._scrollLeft(E.getCols("header")),setTimeout((function(){var t=document.getElementById("container-"+E.getID());null!=t&&t.focus()}),100)}};var A=document.createTextNode("다음 데이터 정보");R.appendChild(A),v.appendChild(R),f.$("#"+this.getID()+"_vsbp").prop("disabled",!0),f.$("#"+this.getID()+"_vsbn").prop("disabled",!1)}}else void 0!==r.rt_qc_mCSbar&&r.rt_qc_mCSbar("destroy"),a.nLengthPerRow=a.nLastPos=a.nPos=a.nTop=a.nBeforeTop=a.nAdjustRows=a.nLength=0,i.style.height="0px";return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._resizeVScrollbar",t.message),!1}},f.QCELL.BasicQCELL.prototype._scrollTop=function(t){var e,i=this.attr("vsinfo");i.bVScroll&&(t<i.nStartRow?t=i.nStartRow:t>i.nStartRow+i.nLastPos&&(t=i.nStartRow+i.nLastPos),(e=-1*(t-i.nStartRow)*i.nLengthPerRow)!==i.nTop&&(this.attr("adjustrow",!0,"boolean"),f.$(this.attr("elementpool").get("$jqvscrollbar")).rt_qc_mCSbar("scrollTo",e)))},f.QCELL.BasicQCELL.prototype._adjustRow=function(){try{var t=-1!==this._getSelectedRow()?this._getSelectedRow():this._idx("row","focus"),e=-1!==this._getSelectedCol()?this._getSelectedCol():this._idx("col","focus"),i=this._getCellDOM(t,e),r=this.attr("vsinfo");if(r.bVScroll&&r.nAdjustRows>0)if(t>=this.attr("headerrows")+this.attr("frozenrows")&&t<this.attr("rows")-this.attr("frozenbottomrows"))switch(this._getVScrollAdjustment(i)){case"top":this._scrollTop(r.nStartRow+r.nPos-1),this.attr("adjustrow",!0,"boolean");break;case"bottom":this._scrollTop(r.nStartRow+r.nPos+1),this.attr("adjustrow",!0,"boolean");break;default:this.attr("adjustrow",!1,"boolean")}else this.attr("adjustrow",!1,"boolean");return!0}catch(t){return f.QCELL.log("err","QCELL.BasicQCELL._adjustRow",t.message),!1}},f.QCELL.BasicQCELL.prototype._getVScrollAdjustment=function(t){var e=this.attr("vsinfo");if(e.bVScroll){var i=0;if(e.nPos===e.nLastPos){var r=this.attr("headerrows"),s=this.attr("frozenrows");if(s>0&&(i+=this._getSumOfRowHeight(r,r+s-1)),t.offsetTop<i)return"top"}else{var a=this.attr("frozenbottomrows"),o=this.attr("rows");if(i+=this.attr("layoutsize").viewport.offsetHeight,a>0&&(i-=this._getSumOfRowHeight(o-a,o-1)),t.offsetTop+t.offsetHeight>i)return"bottom"}}return"none"},f.QCELL.BasicQCELL.prototype._MoveVScrollbarToDragging=function(t){if(this.attr("dragging")){var e=this.attr("vsinfo");if(e.bVScroll){var i=this,r=this.attr("layoutsize"),s=this.attr("headerrows"),a=this.attr("frozenrows"),o=this.attr("frozenbottomrows"),n=this.attr("rows"),l=this._getSumOfRowHeight(0,s-1),c=this._getSumOfRowHeight(s,s+a-1),h=0===o?0:this._getSumOfRowHeight(n-o,n-1),u=r.container.clientY+l+c,d=r.container.clientY+l+r.viewport.offsetHeight-h,p=0;u+30>=t.clientY?this._idx("row","focus")>=s+a&&e.nPos>0&&(u>=t.clientY?(p=-5,e.nPos+p<0&&(p=-e.nPos)):p=-1):d-30<=t.clientY&&this._idx("row","focus")<n-o&&e.nPos<e.nLastPos&&(d<=t.clientY?(p=5,e.nPos+p>e.nLastPos&&(p=e.nLastPos-e.nPos)):p=1),p!==this.attr("vdcount")&&(null!==this.attr("vdhandle")&&(clearInterval(this.attr("vdhandle")),this.attr("vdhandle",null,"number")),this.attr("vdcount",p,"number")),0!==p?null===this.attr("vdhandle")&&this.attr("vdhandle",setInterval((function(){if(p<0?e.nPos>0:e.nPos<e.nLastPos){if(-1===i.attr("selectmode").indexOf("col")){var r=p<0?i._getTopRowOfScreen():i._getBottomRowOfScreen(),s=i._idx("col","cursor");i._updateIdx("drag",r,s),!1===i.attr("colmove")&&!1===i.attr("colresize")&&i._selectDragArea(t)}i._scrollTop(e.nStartRow+e.nPos+p)}else clearInterval(i.attr("vdhandle")),i.attr("vdhandle",null,"number"),i.attr("vdcount",0,"number")}),100),"number"):null!==this.attr("vdhandle")&&(clearInterval(i.attr("vdhandle")),i.attr("vdhandle",null,"number"),i.attr("vdcount",0,"number"))}}},f.QCELL.BasicQCELL.prototype._getTopRowOfScreen=function(){var t=this.attr("vsinfo");if(!1===t.bVScroll||t.nPos<=t.nLastPos-t.nAdjustRows)return t.nTopRow;for(var e,i=this._getCellGroupDOMs("row","normal"),r=this.attr("headerrows"),s=this.attr("frozenrows"),a=this._getSumOfRowHeight(r,r+s-1),o=i.length,n=0;n<o;){var l=i[n][0];if(l.offsetTop+l.offsetHeight>a){e=parseInt(l.getAttribute("data-row"));break}n+=1,l=null}return i=null,e},f.QCELL.BasicQCELL.prototype._getBottomRowOfScreen=function(){var t=this.attr("vsinfo");if(!1===t.bVScroll||t.nPos===t.nLastPos)return t.nBottomRow;var e=this._getCellGroupDOMs("row","normal"),i=this.attr("layoutsize"),r=this.attr("frozenbottomrows"),s=this.attr("rows"),a=0===r?0:this._getSumOfRowHeight(s-r,s-1),o=i.viewport.offsetHeight-a,n=e.length,l=0,c=-1;for(e.reverse();l<n;){var h=e[l][0];if(h.offsetTop<o){c=parseInt(h.getAttribute("data-row"));break}l+=1,h=null}return e=null,c},f.QCELL.BasicQCELL.prototype.onScrollTop=function(){this._trigger("scrolltop")},f.QCELL.BasicQCELL.prototype.onScrollBottom=function(){this._trigger("scrollbottom")},f.QCELL.BasicQCELL.prototype._getDefaultRemoveArea=function(t){if(null===this.attr("defaultremovearea")){var e=document.createElement("div");this.attr("defaultremovearea",this._createDefaultRemoveArea(e),"jquery")}return null===this._getQCellCol(t).attr("colremovearea")&&this._getQCellCol(t).attr("colremovearea",this.attr("defaultremovearea").clone(!0),"jquery"),this._getQCellCol(t).attr("colremovearea").get(0)},f.QCELL.BasicQCELL.prototype._createDefaultRemoveArea=function(t){var e=f.QCELL.def.css,i=t.cloneNode(),r=this.attr("rowheight").header;return i.className+=e.REMOVE_AREA,i.style.top=r-r/2-7+"px",f.$(i)},f.QCELL.BasicQCELL.prototype.rebuild=function(t){this.attr("useRebuildAPI",!0,"boolean");var e=this._rebuild(t);return this.attr("useRebuildAPI",!1,"boolean"),e},f.QCELL.BasicQCELL.prototype.resize=function(t){this.attr("isResizing",!0,"boolean");var e,i,r,s=this.getCustomPanel(),a=this.attr("hsinfo"),o=this.attr("vsinfo"),n=this._idx("row","focus","current"),l=this._idx("col","focus","current");if((e=a.nLeftCol,i=o.nTopRow,this._initHSInfo(),this._initVSInfo(),this._createElement())&&(this._refresh(),e!==a.nLeftCol&&this._scrollLeft(e),i!==o.nTopRow&&this._scrollTop(i),this._updateIdx("focus",-1,-1),this._focusCell(n,l),this.resetCustomPanel(s),!0===this.attr("makefrozenbottomdata"))){var c=this.attr("currentdata");if(!f._.isEmpty(c)&&f._.isArray(c)&&0!==c.length){var h=this.getID();!0!==c[c.length-1].rt_qc_fbrd?(c.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(r=f.QCELL.getInstance(h))&&r._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(r=f.QCELL.getInstance(h))&&r._trigger("frozendataupdated")}),0)}}return!0},f.QCELL.BasicQCELL.prototype.setBottomPanelData=function(t){var e=f.QCELL.def,i=this.attr("id"),r="#"+e.areaname.SHEETPANEL+"-span-"+i;return null!==document.getElementById(e.areaname.SHEETPANEL+"-span-"+i)&&(f.$(r).html(t),!0)},f.QCELL.BasicQCELL.prototype.refresh=function(){return this._refresh()},f.QCELL.BasicQCELL.prototype.initGrid=function(t){this.attr("useInitProp",!0,"boolean");var e=this._rebuild(t);return this.attr("useInitProp",!1,"boolean"),e},f.QCELL.BasicQCELL.prototype.getID=function(){return this.attr("id")},f.QCELL.BasicQCELL.prototype.getIdx=function(t,e,i){var r=this.attr("id")+".getIdx";if(arguments.length<1)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"focus":e,i=void 0===i?"current":i,"string"==typeof t&&"string"==typeof e)return"previous"===i?this._idx(t,e,i):this._idx(t,e);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return-1},f.QCELL.BasicQCELL.prototype.getRows=function(t){var e=this.attr("id")+".getRows",i=0;if(void 0===t&&(t="all"),"string"==typeof t)switch(t){case"header":i=this.attr("headerrows");break;case"data":i=this.attr("rows")-this.attr("headerrows");break;case"frozen":i=this.attr("frozenrows");break;case"frozenbottom":i=this.attr("frozenbottomrows");break;case"footer":i=this.attr("footerrows");break;case"all":i=this.attr("rows")}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return i},f.QCELL.BasicQCELL.prototype.getCols=function(t){var e=this.attr("id")+".getCols",i=0;if(void 0===t&&(t="nomal"),"string"==typeof t)switch(t){case"header":i=this.attr("headercols");break;case"data":i=this.attr("cols")-this.attr("headercols");break;case"frozen":i=this.attr("frozencols");break;case"frozenright":i=this.attr("frozenrightcols");break;case"hidden":i=null!==this.attr("hiddencolsprops")?this.attr("hiddencolsprops").length:0;break;case"nomal":i=this.attr("cols");break;case"all":i=this.attr("cols")+(null!==this.attr("hiddencolsprops")&&void 0!==this.attr("hiddencolsprops")?this.attr("hiddencolsprops").length:0)}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return i},f.QCELL.BasicQCELL.prototype.getRowHeight=function(t){var e=this.attr("id")+".getRowHeight",i=0;if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("string"==typeof t)switch(t){case"header":case"data":case"footer":i=this.attr("rowheight")[t]}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return i},f.QCELL.BasicQCELL.prototype.getColWidths=function(){return this.attr("colwidthsperpixel")},f.QCELL.BasicQCELL.prototype.getColsOfKey=function(t){var e=this.attr("id")+".getColsOfKey";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return null===this.attr("colkeysinfo").get(t)?[]:this.attr("colkeysinfo").get(t).values();f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return[]},f.QCELL.BasicQCELL.prototype.getColOfKey=function(t){var e=this.attr("id")+".getColOfKey";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return null===this.attr("colkeysinfo").get(t)?-1:this.attr("colkeysinfo").get(t).values()[0];f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return[]},f.QCELL.BasicQCELL.prototype.getKeyOfCol=function(t){var e=this.attr("id")+".getKeyOfCol";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getKeyOfCol(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},f.QCELL.BasicQCELL.prototype.setKeyOfCol=function(t,e){var i=this.attr("id")+".setKeyOfCol";if(arguments.length<2)f.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._setKeyOfCol(t,e);f.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getColID=function(t){var e=this.attr("id")+".getColID";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColID(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},f.QCELL.BasicQCELL.prototype.getColOfID=function(t){var e=this.attr("id")+".getColOfID";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._getColOfID(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},f.QCELL.BasicQCELL.prototype.getColWidth=function(t){var e=this.attr("id")+".getColWidth";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColWidth(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},f.QCELL.BasicQCELL.prototype.getColWidthEx=function(t){var e=this.attr("id")+".getColWidthEx";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColWidth(t);if("string"==typeof t){var i=this.getColOfKey(t);if(-1===i){var r=this.attr("hiddencolsprops");if(null!=r)for(var s=0;s<r.length;s++)if(r[s].key===t)return"string"==typeof r[s].width&&(r[s].width=f.util.replaceAll(r[s].width,"px",""),r[s].width=f.util.replaceAll(r[s].width,"%",""),r[s].width=Number(r[s].width),isNaN(r[s].width)&&(r[s].width=0)),r[s].width;return-1}return this.getColWidth(i)}f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},f.QCELL.BasicQCELL.prototype.setColWidth=function(t,e){var i=this.attr("id")+".setColWidth";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("cols")&&t>=this.attr("headercols")&&this._setColWidth(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setColWidthEx=function(t,e){var i=this.attr("id")+".setColWidthEx";if(!(arguments.length<2)){var r=this.getColOfKey(t);if(-1!==r)return this.setColWidth(r,e);var s=this.attr("hiddencolsprops");if(null!=s)for(var a=0;a<s.length;a++)if(s[a].key===t)return s[a].width=e,!0;return!1}return f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT),!1},f.QCELL.BasicQCELL.prototype.getColType=function(t){var e=this.attr("id")+".getColType";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColType(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},f.QCELL.BasicQCELL.prototype.setColFormatStatic=function(t,e){var i=this.attr("id")+".setColFormatStatic";return arguments.length<2?(f.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT),!1):"number"==typeof t?this._setFormatStatic(t,e):(f.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE),!1)},f.QCELL.BasicQCELL.prototype.getColAttribute=function(t,e){var i=this.attr("id")+".getColAttribute";if(arguments.length<2)f.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t){if(void 0!==this._getQCellCol(t))return this._getQCellCol(t).attr(e)}else f.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE);return""},f.QCELL.BasicQCELL.prototype.getFrozenRows=function(){return this.attr("frozenrows")},f.QCELL.BasicQCELL.prototype.setFrozenRows=function(t){var e=this.attr("id")+".setFrozenRows";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenrows=t,this._rebuild(),!0;f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getFrozenCols=function(){return this.attr("frozencols")},f.QCELL.BasicQCELL.prototype.setFrozenCols=function(t){var e=this.attr("id")+".setFrozenCols";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){this.getProperties().frozencols=t;var i,r,s=[];for(i=this.getCols("header");i<this.getCols();i++){var a=this._getQCellCol(i).attr("celldisabled");s.push(f._.clone(a))}this._rebuild();var o=this.getCols("header");for(i=0;i<s.length;i++)for(r=0;r<s[i].length;r++)!0===s[i][r]&&this.setCellDisable(r,i+o,!0);return s=null,!0}f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getFrozenRightCols=function(){return this.attr("frozenrightcols")},f.QCELL.BasicQCELL.prototype.setFrozenRightCols=function(t){var e=this.attr("id")+".setFrozenRightCols";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenrightcols=t,this._rebuild(),!0;f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getFrozenBottomRows=function(){return this.attr("frozenbottomrows")},f.QCELL.BasicQCELL.prototype.setFrozenBottomRows=function(t){var e=this.attr("id")+".setFrozenBottomRows";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenbottomrows=t,this._rebuild(),!0;f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.removeColumn=function(t){var e=this.attr("id")+".removeColumn";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){if(null!==this._getQCellCol(t)&&null!==this._getQCellCol(t).attr("removecallback")&&!0===f._.isFunction(this._getQCellCol(t).attr("removecallback"))&&!1===this._getQCellCol(t).attr("removecallback")(t))return!1;var i=this.getProperties();if(t-=this.attr("headercols"),i.columns.length<=t||t<0||i.columns.length<=0)return!1;i.columns.splice(t,1),this._rebuild(!0);var r=this;return setTimeout((function(){void 0!==r._trigger&&r._trigger("removeend")}),0),!0}f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.insertColumn=function(t,e){var i=this.attr("id")+".insertColumn";if(arguments.length<2)f.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&f._.isObject(e)){var r=this.getProperties();return t-=this.attr("headercols"),r.columns.length<t||t<0||r.columns.length<=0?!1:(r.columns.RT_insert(t,e),this._rebuild(!0),!0)}f.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.resetColumns=function(){var t=this.getProperties(),e=this.getInitProperties();return t.columns=f._.clone(e.columns),this._rebuild(!0),!0},f.QCELL.BasicQCELL.prototype.getColumnInfo=function(t){var e=this.attr("id")+".getColumnInfo";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){var i=this.getProperties();return t-=this.attr("headercols"),i.columns.length<=t||t<0||i.columns.length<=0?null:i.columns[t]}f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return null},f.QCELL.BasicQCELL.prototype.getCurrentColumnsInfo=function(){for(var t=[],e=this.attr("headercols"),i=this.attr("cols"),r=e;r<i;r++){var s={},a=this._getColPrevProperty(r);for(var o in a)"format"===o&&""===a.format.type&&""===a.format.rule||"html"===o&&null===a.html.data&&null===a.html.header||"header_text_align"!==o&&"id"!==o&&"invisibled"!==o&&"parent"!==o&&(s[o]="width"===o?this.getColWidth(r)+"px":a[o]);t.push(s)}return t},f.QCELL.BasicQCELL.prototype.setResizeAction=function(t){this.attr("bResizeAction",t,"boolean")},f.QCELL.BasicQCELL.prototype.getHighlightRepeat=function(){return this.attr("highlightrepeat")},f.QCELL.BasicQCELL.prototype.setHighlightRepeat=function(t){var e=this.attr("id")+".setHighlightRepeat";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>=0&&this._setHighlightRepeat(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setColStyle=function(t,e,i){var r=this.attr("id")+".setColStyle";if(arguments.length<2)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(i=void 0===i?"all":i,"number"==typeof t&&"object"===n(e)&&"string"==typeof i)return t<this.attr("cols")&&t>=0&&this._setColStyle(t,e,i,!0);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.removeColStyle=function(t,e){var i=this.attr("id")+".removeColStyle";if(arguments.length<1)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"all":e,"number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=0&&this._removeColStyle(t,e,!0);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setRowStyle=function(t,e,i){var r=this.attr("id")+".setRowStyle";if(arguments.length<2)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(i=void 0===i?"all":i,"number"==typeof t&&"object"===n(e)&&"string"==typeof i)return t<this.attr("rows")&&t>=0&&this._setRowStyle(t,e,i,!0);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.removeRowStyle=function(t,e){var i=this.attr("id")+".removeRowStyle";if(arguments.length<1)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"all":e,"number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=0&&this._removeRowStyle(t,e,!0);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getCellStyle=function(t,e){var i=this.attr("id")+".getCellStyle";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0?this._getCellStyle(t,e):{};f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return{}},f.QCELL.BasicQCELL.prototype.setCellStyle=function(t,e,i){var r=this.attr("id")+".setCellStyle";if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"object"===n(i))return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._setCellStyle(t,e,i,!0);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setCellStyles=function(t,e,i,r,s){var a=this.attr("id")+".setCellStyles";if(arguments.length<5)f.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"number"==typeof i&&"number"==typeof r&&"object"===n(s))return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&i<this.attr("rows")&&i>=0&&r<this.attr("cols")&&r>=0&&this._setCellStyles(t,e,i,r,s,!0);f.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.removeCellStyle=function(t,e){var i=this.attr("id")+".removeCellStyle";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._removeCellStyle(t,e,!0);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.removeCellStyles=function(t,e,i,r){var s=this.attr("id")+".setCellStyles";if(arguments.length<4)f.QCELL.log("err",s,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"number"==typeof i&&"number"==typeof r)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&i<this.attr("rows")&&i>=0&&r<this.attr("cols")&&r>=0&&this._removeCellStyles(t,e,i,r,!0);f.QCELL.log("err",s,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.clearCellStyles=function(){return this._clearCellStyles()},f.QCELL.BasicQCELL.prototype.clearDynamicStyles=function(){return this._clearDynamicStyles()},f.QCELL.BasicQCELL.prototype.getSelectedRow=function(){return this._getSelectedRow()},f.QCELL.BasicQCELL.prototype.getSelectedCol=function(){return this._getSelectedCol()},f.QCELL.BasicQCELL.prototype.getSelectedRows=function(){return this._getSelectedRows().sort(f.st.asc)},f.QCELL.BasicQCELL.prototype.getSelectedCols=function(){return this._getSelectedCols().sort(f.st.asc)},f.QCELL.BasicQCELL.prototype.moveCol=function(t,e){var i=this.attr("id")+".moveCol";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("cols")&&t>=this.attr("headercols")&&e<this.attr("cols")&&e>=this.attr("headercols")&&this._moveCols(t,1,e,!1);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.scrollTop=function(t){var e=this.attr("id")+".scrollTop";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")&&this._scrollTop(t);if("string"==typeof t)return"top"===t?(this._scrollTop(this.attr("headerrows")),!0):"bottom"===t?(this._scrollTop(this.attr("rows")-1),!0):(f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),!1);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.scrollLeft=function(t){var e=this.attr("id")+".scrollLeft";if(arguments.length<1)f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("cols")&&t>=this.attr("headercols")&&this._scrollLeft(t);if("string"==typeof t)return"left"===t?(this._scrollLeft(this.attr("headercols")),!0):"right"===t?(this._scrollLeft(this.attr("cols")-1),!0):(f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),!1);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.isScroll=function(t){var e=this.attr("id")+".isScroll",i=!1;return arguments.length<1?f.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT):"string"==typeof t?"vertical"===t?i=this.attr("vsinfo").bVScroll:"horizontal"===t&&(i=this.attr("hsinfo").bHScroll):f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getUpdateInfo=function(){return{toprow:this.attr("vsinfo").nTopRow,bottomrow:this.attr("vsinfo").nBottomRow}},f.QCELL.BasicQCELL.prototype.getData=function(){return this.attr("currentdata")},f.QCELL.BasicQCELL.prototype.getAllData=function(){return this.attr("data").input},f.QCELL.BasicQCELL.prototype.getAllDataWithFormat=function(){for(var t=[],e=this.getRows("header");e<this.getRows();e++)t.push(this.getRowDataWithFormat(e));return t},f.QCELL.BasicQCELL.prototype.setData=function(t,e){var i=this.attr("id")+".setData";if(arguments.length<1)f.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT);else{if(f._.isArray(t))return!(!0===e||!this._checkData(t))||this._setData(t);f.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.clearData=function(){var t=this.attr("id")+".clearData";return arguments.length>1?(f.QCELL.log("log",t,this.attr("msg").err.PARAM_COUNT),!1):(this.attr("clearingdata",!0,"boolean"),this._setData([]),this.attr("clearingdata",!1,"boolean"),!0)},f.QCELL.BasicQCELL.prototype.getRowData=function(t){var e=this.attr("id")+".getRowData";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowData(t):void 0;f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.getRowDataWithFormat=function(t){var e=this.attr("id")+".getRowDataWithFormat";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowDataWithFormat(t):void 0;f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.getSelectedRowData=function(){for(var t=this._getIdxInfo("selected","row").keys().sort(),e=[],i=0;i<t.length;i++)e.push(this.getRowData(t[i]));return e},f.QCELL.BasicQCELL.prototype.setRowData=function(t,e){var i=this.attr("id")+".setRowData";if(t=Number(t),arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{var r=this.attr("data").type;if("number"==typeof t&&"array"===r&&f._.isArray(e)||"object"===r&&"object"===n(e)&&!1===f._.isArray(e)){var s=t<this.attr("rows")&&t>=this.attr("headerrows")&&this._setRowData(t,e);return!1!==s&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),s}f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setRowDataEx=function(t,e){var i=this.attr("id")+".setRowData";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{var r=this.attr("data").type;if("number"==typeof t&&"array"===r&&f._.isArray(e)||"object"===r&&"object"===n(e)&&!1===f._.isArray(e)){var s=t<this.attr("rows")&&t>=this.attr("headerrows")&&this._setRowDataEx(t,e);return!1!==s&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),s}f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getColData=function(t){var e=this.attr("id")+".getColData";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("cols")&&t>=this.attr("headercols")?this._getColData(t):[];f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return[]},f.QCELL.BasicQCELL.prototype.setColData=function(t,e){var i=this.attr("id")+".setColData";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&f._.isArray(e))return t<this.attr("cols")&&t>=this.attr("headercols")&&this._setColData(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getCellData=function(t,e){var i=this.attr("id")+".getCellData";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=this.attr("headerrows")&&e<this.attr("cols")&&e>=this.attr("headercols")?this._cellValue(t,e):void 0;f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.getCellDataEx=function(t,e){var i=this.attr("id")+".getCellDataEx";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowData(t)[e]:void 0;f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.getInitCellDataEx=function(t,e){var i=this.attr("id")+".getInitCellDataEx";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){if(t<this.attr("rows")&&t>=this.attr("headerrows")){var r=this._getRowData(t);return void 0!==r.rt_qcell_initdata?r.rt_qcell_initdata[e]:this.getCellDataEx(t,e)}return}f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.setCellData=function(t,e,i){var r=this.attr("id")+".setCellData";if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){var s=t<this.attr("rows")&&t>=this.attr("headerrows")&&e<this.attr("cols")&&e>=this.attr("headercols")&&this._cellValue(t,e,i);return!1!==s&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),s}f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setCellDataEx=function(t,e,i){var r=this.attr("id")+".setCellDataEx",s=!0;if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t&&"string"==typeof e){if(t>this.attr("rows")||t<this.attr("headerrows"))return!1;var a=this.getColsOfKey(e);if(a.length>0){var o;for(o=0;o<a.length;o++)s=this.setCellData(t,a[o],i);return s}var n=this.getRowData(t);if(void 0!==n)return n[e]=i,this.setRowData(t,n),!0}else f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);return!1},f.QCELL.BasicQCELL.prototype.getCellLabel=function(t,e){var i=this.attr("id")+".getCellLabel";if(arguments.length<2)f.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t>=0&&t<this.attr("rows")&&e>=0&&e<this.attr("cols")?this._getCellLabel(t,e):void 0;f.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.setCellLabel=function(t,e,i){var r=this.attr("id")+".setCellLabel";return arguments.length<3?(f.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT),!1):"number"==typeof t&&"number"==typeof e&&("string"==typeof i||"number"==typeof i)?t>=0&&t<this.attr("rows")&&e>=0&&e<this.attr("cols")&&this._setCellLabel(t,e,i):(f.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE),!1)},f.QCELL.BasicQCELL.prototype.requestData=function(t){var e=this.attr("id")+".requestData",i=this,r="";try{"string"==typeof t.url?(!1===f._.isUndefined(t.param)&&(r=f._.isObject(t.param)?JSON.stringify(t.param):t.param),f.$.post(t.url,r,(function(e){return!1===f._.isUndefined(t.callback)&&f._.isFunction(t.callback)?t.callback(JSON.parse(e)):i._setData(JSON.parse(e))}))):f.QCELL.log("err",e,'Please check parameter. This url parameter\'s type is "string".')}catch(t){return f.QCELL.log("err",e,t.message),!1}},f.QCELL.BasicQCELL.prototype.showProgress=function(){var t=this.attr("id")+".showProgress";try{this._showProgressUI(!0)}catch(e){return f.QCELL.log("err",t,e.message),!1}return!0},f.QCELL.BasicQCELL.prototype.hideProgress=function(t){var e=this.attr("id")+".hideProgress";try{this._showProgressUI(!1,t)}catch(t){return f.QCELL.log("err",e,t.message),!1}return!0},f.QCELL.BasicQCELL.prototype.setHeaderCellValue=function(t,e,i){var r=this.attr("id")+".setHeaderCellValue";if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){var s=this.attr("headercols"),a=this.attr("cols"),o=t<this.attr("headerrows")&&e>=s&&e<a&&this._cellValue(t,e,i);return!0===o&&(this._setRoleTitle(),this._resetAriaLabel(e)),o}f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.setHeaderCellValueEx=function(t,e,i){var r=this.attr("id")+".setHeaderCellValueEx";if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){var s=this.attr("headercols"),a=this.attr("cols"),o=this.getColOfKey(e);return-1!==o?t<this.attr("headerrows")&&o>=s&&o<a&&this._cellValue(t,o,i):this._hiddenHeaderCellValue(t,e,i)}f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.getHeaderCellValueEx=function(t,e){var i=this.attr("id")+".getHeaderCellValueEx";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){var r=this.attr("headercols"),s=this.attr("cols"),a=this.getColOfKey(e);return-1!==a?t<this.attr("headerrows")&&a>=r&&a<s?this._cellValue(t,a):null:this._hiddenHeaderCellValue(t,e)}f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.resetData=function(){var t=this.attr("id")+".resetData";try{return this._resetData()}catch(e){return f.QCELL.log("err",t,e.message),!1}},f.QCELL.BasicQCELL.prototype.getFocusRowData=function(){var t=this.attr("id")+".getFocusRowData";try{return this._getFocusRowData()}catch(e){return f.QCELL.log("err",t,e.message),!1}},f.QCELL.BasicQCELL.prototype.findRow=function(t,e,i){var r=this._getKeyOfCol(i);return""===r||void 0===r?-1:this._findRowSub(t,e,r)},f.QCELL.BasicQCELL.prototype.findRowEx=function(t,e,i){return""===i||void 0===i?-1:this._findRowSub(t,e,i)},f.QCELL.BasicQCELL.prototype.swapData=function(t,e){var i=this.attr("currentdata"),r=this.getRows("header");if(t-r<0||e-r<0)return!1;if(t-r>=i.length||e-r>=i.length)return!1;var s=f._.clone(i[t-r]),a=f._.clone(i[e-r]);return i[t-r]=a,i[e-r]=s,this.refresh(),!0},f.QCELL.BasicQCELL.prototype.setFrozenDataEx=function(t,e){var i=this.attr("id")+".setFrozenDataEx",r=!0,s=this.getRows()-1;if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof s&&"string"==typeof t){if(s>this.attr("rows")||s<this.attr("headerrows"))return!1;var a=this.getRowData(s);if(!0!==this.attr("makefrozenbottomdata"))return!1;if(!0!==a.rt_qc_fbrd)return!1;if("rt_qc_seq"===t){for(var o=this.attr("rowheaders"),n=0;n<o.length;n++)if("sequence"===o[n]){var l=this._getCellDOM(s,n);null!==l&&(l.textContent=e)}}else{var c=this.getColsOfKey(t);if(c.length>0){var h;for(h=0;h<c.length;h++)r=this.setCellData(s,c[h],e);return r}}if(void 0!==a)return a[t]=e,this.setRowData(s,a),!0}else f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);return!1},f.QCELL.BasicQCELL.prototype.getFrozenDataEx=function(t){var e=this.attr("id")+".getFrozenDataEx",i=this.getRows()-1;if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{var r=this.getRowData(i);if(!0!==this.attr("makefrozenbottomdata"))return;if(!0!==r.rt_qc_fbrd)return;if("rt_qc_seq"===t)for(var s=this.attr("rowheaders"),a=0;a<s.length;a++)if("sequence"===s[a])return this._getRowData(i)[t];if("number"==typeof i&&"string"==typeof t)return i<this.attr("rows")&&i>=this.attr("headerrows")?this._getRowData(i)[t]:void 0;f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.getFrozenCellStyleEx=function(t){var e=this.attr("id")+".getCellStyle";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{var i=this.getRows()-1,r=this.getRowData(i);if(!0!==this.attr("makefrozenbottomdata"))return{};if(!0!==r.rt_qc_fbrd)return{};if("number"==typeof i&&"number"==typeof t)return i<this.attr("rows")&&i>=0&&t<this.attr("cols")&&t>=0?this._getCellStyle(i,t):{};f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return{}},f.QCELL.BasicQCELL.prototype.getUseEmptyMessage=function(){return!1!==this.attr("useemptymessage")},f.QCELL.BasicQCELL.prototype.setUseEmptyMessage=function(t){this.getProperties().useemptymessage=!0===t,this.attr("useemptymessage",t,"boolean")},f.QCELL.BasicQCELL.prototype.swapData=function(t,e){if(f._.isString(e))if("first"===e)e=this.getRows("header");else{if("last"!==e)return!1;e=!0===this.attr("makefrozenbottomdata")?this.getRows()-2:this.getRows()-1}if(t===e)return!1;var i,r,s=this.getRowData(t),a=this.getRowData(e);if(void 0===s||void 0===a)return!1;if(this.setRowData(t,a),this.setRowData(e,s),this.attr("useall")||this.attr("usetreeall"))for(i=this.getCols("header");i<this.getCols();i++){var o=this._getCellDOM(t,i);null!=o&&(r=void 0===(r=this.getCellData(t,i))?"":r,this._setAriaLabel(o,t,i,r,!1));var n=this._getCellDOM(e,i);null!=n&&(r=void 0===(r=this.getCellData(e,i))?"":r,this._setAriaLabel(n,e,i,r,!1))}return!0},f.QCELL.BasicQCELL.prototype.moveData=function(t,e){if(f._.isString(e))if("first"===e)e=this.getRows("header");else{if("last"!==e)return!1;e=!0===this.attr("makefrozenbottomdata")?this.getRows()-1:this.getRows()}if(t===e)return!1;if(t<this.attr("headerrows")||e<this.attr("headerrows"))return!1;var i=this.attr("currentdata"),r=-1,s=-1;-1!==this.getIdx("row","focus")&&-1!==this.getIdx("col","focus")&&(r=this.getIdx("row","focus"),s=this.getIdx("col","focus"),i[r-this.attr("headerrows")]._rt_qc_focus={row:r,col:s});var a=this.getRowData(t);if(void 0===a)return!1;var o=[];if(o.push(a),(t-=this.attr("headerrows"))>(e-=this.attr("headerrows"))?(i.splice(t,1),i.RT_insertArray(e,o)):(i.RT_insertArray(e+1,o),i.splice(t,1)),e>i.length)return!1;if(e<0)return!1;var n=this.attr("vsinfo"),l=e+this.attr("headerrows");n.bVScroll?n.nTopRow<=l&&l<=n.nBottomRow?this._updateNRs():this._scrollTop(l):this._updateNRs();for(var c=-1,h=-1,u=0;u<i.length;u++)if(void 0!==i[u]._rt_qc_focus){c=u+this.attr("headerrows"),h=i[u]._rt_qc_focus.col,delete i[u]._rt_qc_focus;break}if(-1!==c&&-1!==h){var d=this;setTimeout((function(){switch(d._focusCell(c,h),d.attr("selectmode")){case"row":case"rows":d._clearSelection(),d._selectRow(c);break;case"col":case"cols":d._clearSelection(),d._selectCol(h);break;default:d._clearSelection(),d._selectCell(c,h)}}),0)}return!0},f.QCELL.BasicQCELL.prototype.resetCustomPanel=function(t){var e=f.QCELL.def,i=this.attr("id"),r="#"+e.areaname.SHEETPANEL+"-span-"+i;return!1!==this.attr("bottompanel")&&(null!==this.attr("bottompanelcallback")&&f._.isFunction(this.attr("bottompanelcallback"))&&(t=this.attr("bottompanelcallback").call(this,-1,-1,t)),f.$(r).html(t),!0)},f.QCELL.BasicQCELL.prototype.getCustomPanel=function(){var t=f.QCELL.def,e=this.attr("id"),i="#"+t.areaname.SHEETPANEL+"-span-"+e,r=f.$(i).text();if(!1!==this.attr("bottompanel"))return null!==this.attr("bottompanelcallback")&&f._.isFunction(this.attr("bottompanelcallback"))&&(r=this.attr("bottompanelcallback").call(this,-1,-1,"")),r},f.QCELL.BasicQCELL.prototype.lookup=function(t,e){var i,r={},s=this.attr("data").input;if(e=void 0===e?"or":e,!f._.isArray(t))return!1;i=t.length;for(var a=0;a<t.length;a++){var o=t[a];if(void 0===o.key||void 0===o.condition)return!1;for(var n=o.key,l=o.condition,c=0;c<s.length;c++)if(void 0!==s[c][n]&&f._.isString(s[c][n]))try{void 0!==s[c][n]&&f._.isString(s[c][n])&&-1!==s[c][n].indexOf(l)&&(void 0===r["k_"+c]?r["k_"+c]=1:r["k_"+c]=r["k_"+c]+1)}catch(t){continue}}var h=[],u=[];for(var d in r){var p=r[d],g=-1;("or"===e||p===i)&&(g=Number(d.replace("k_",""))),-1!==g&&u.push(g)}u.sort();for(var _=0;_<u.length;_++)h.push(f._.clone(s[u[_]]));return this._setCurrentData(h),!0},f.QCELL.BasicQCELL.prototype.resetLookup=function(){var t=this.attr("id")+".resetSearch";try{this._setCurrentData(this.attr("data").input)}catch(e){return f.QCELL.log("err",t,e.message),!1}return!0},f.QCELL.BasicQCELL.prototype.sort=function(t){var e=this.attr("id")+".sort";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isArray(t))return!0!==this.attr("isSorting")&&this._sort(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.sortEx=function(t){var e=this.attr("id")+".sortEx";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(!0===this.attr("isSorting"))return!1;if(f._.isArray(t))return this._sort(t);f.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.bind=function(t,e,i){var r=this.attr("id")+".bind";if(arguments.length<2)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t&&f._.isFunction(e))return this._bind(t,e,!0,i);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.unbind=function(t){var e=this.attr("id")+".unbind";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._unbind(t,!0);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getUserEventInfo=function(){return f._.clone(this.attr("usereventinfo"))},f.QCELL.BasicQCELL.prototype.trigger=function(t){var e=this.attr("id")+".trigger";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._trigger(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.clickCell=function(t,e){var i=this.attr("id")+".clickCell";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._clickCell(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.dblClickCell=function(t,e){var i=this.attr("id")+".dblClickCell";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._dblClickCell(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.focusCell=function(t,e,i){var r=this,s=this.attr("id")+".focusCell";if(i=void 0===i?200:i,arguments.length<2)f.QCELL.log("err",s,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){if(!(t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0))return!1;var a=this._getCellDOM(t,e);return f._.isElement(a)&&f.util.hasClass(a,f.QCELL.def.css.CELL)||(this.scrollTop(t),this.scrollLeft(e)),setTimeout((function(){r.clickCell(t,e)}),i),!0}f.QCELL.log("err",s,this.attr("msg").err.PARAM_TYPE)}},f.QCELL.BasicQCELL.prototype.excelDownload=function(t){var e=this.attr("id")+".excelDownload",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?(this._excelDownload(t),i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.excelUpload=function(t){var e=this.attr("id")+".excelUpload",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?(this._excelUpload(t),i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.excelExportInfo=function(t){var e=this.attr("id")+".excelExportInfo",i={};return 0===arguments.length?i=this._exportCellInfo():arguments.length>1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?i=this._exportCellInfo(t):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.htmlDownload=function(t){var e=this.attr("id")+".htmlDownload",i=!1;return arguments.length<1?(f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),i=!1):"object"===n(t)?i=this._htmlDownload(t):(f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i=!1),i},f.QCELL.BasicQCELL.prototype.htmlExport=function(t){var e=this.attr("id")+".htmlExport",i=!1;return arguments.length<1?(f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),i=!1):"object"===n(t)?(t.export=!0,t.filename="temp",i=this._htmlDownload(t)):(f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i=!1),i},f.QCELL.BasicQCELL.prototype.pdfDownload=function(t){var e=this.attr("id")+".pdfDownload",i=!1;return arguments.length<1?(f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),i=!1):"object"===n(t)?i=this._pdfDownload(t):(f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i=!1),i},f.QCELL.BasicQCELL.prototype.txtDownload=function(t){var e=this.attr("id")+".txtDownload",i=!1;return arguments.length<1?(f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),i=!1):"object"===n(t)?i=this._txtDownload(t):(f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i=!1),i},f.QCELL.BasicQCELL.prototype.excelDownloadURLHuge=function(t){var e=this.attr("id")+".excelDownloadURLHuge",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?(this._excelDownloadURLHuge(t),i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.exportCellInfoURLHuge=function(t){var e=this.attr("id")+".excelExportInfoURLHuge",i={};return 0===arguments.length?i=this._exportCellInfo():arguments.length>1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?i=this._exportCellInfoURLHuge(t):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.merge=function(t,e){var i=null,r=this.attr("merge");switch(e){case"row":case"col":case"rowandcol":case"colandrow":case"group":case"none":break;default:return!1}if("header"===t)i=this.attr("merge_header_info"),this._clearMergeHeader(),i&&i.RT_clear(),r.header=e,this._createHeaderMergeInfo(),this._updateMergeHeader(),this._refresh();else{if("data"!==t)return!1;i=this.attr("merge_data_info"),this._clearMergeData(),i&&i.RT_clear(),r.data=e,this._createDataMergeInfo(),this._updateMergeData(),this._refresh()}return!0},f.QCELL.BasicQCELL.prototype.setPageIndex=function(t){var e=this.attr("id")+".setPageIndex",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):f._.isNumber(t)?(this._movePage(t),i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getPageIndex=function(){return f._.clone(this.attr("paginationinfo").pageindex)},f.QCELL.BasicQCELL.prototype.setPageUnit=function(t){var e=this.attr("id")+".setPageUnit",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):f._.isNumber(t)?(this._movePage(this.attr("paginationinfo").pageindex,t),i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getPageUnit=function(){return f._.clone(this.attr("paginationinfo").pageunit)},f.QCELL.BasicQCELL.prototype.setPaginationParam=function(t){var e=this.attr("id")+".setPaginationParam",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):f._.isObject(t)&&!1===f._.isArray(t)?(this._setPaginationParam(t),i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getPaginationParam=function(){return f._.clone(this.attr("paginationinfo").param)},f.QCELL.BasicQCELL.prototype.setPaginationDatacount=function(t){var e=this.attr("id")+".setPaginationDatacount",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===f._.isNumber(t)?(this.attr("paginationinfo").datacount=t,i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getPaginationDatacount=function(){return f._.clone(this.attr("paginationinfo").datacount)},f.QCELL.BasicQCELL.prototype.setPaginationUrl=function(t){var e=this.attr("id")+".setPaginationUrl",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===f._.isString(t)?(this.attr("paginationinfo").url=t,i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getPaginationUrl=function(){return f._.clone(this.attr("paginationinfo").url)},f.QCELL.BasicQCELL.prototype.setPaginationLoadonce=function(t){var e=this.attr("id")+".setPaginationLoadonce",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===f._.isBoolean(t)?(this.attr("paginationinfo").loadonce=t,i=!0):f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),i},f.QCELL.BasicQCELL.prototype.getPaginationLoadonce=function(){return f._.clone(this.attr("paginationinfo").loadonce)},f.QCELL.BasicQCELL.prototype.setPaginationInitSort=function(){return this.attr("paginationinfo").initsort=!0,!0},f.QCELL.BasicQCELL.prototype.getRowheaderChecked=function(t){var e=this.attr("id")+".getRowheaderChecked",i=[];if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(f._.isNumber(t)){var r=this.attr("rowheaders")[t];if("checkbox"===r||"radio"===r){for(var s,a=void 0!==this.attr("staticrowsinfo")?this.attr("staticrowsinfo"):[],o=a.length,n=!1,l=this.attr("headerrows"),c=this.attr("rows");l<c;l++)if(!0===this._getRowheaderData(l,t)){if(void 0!==this._getQCellCol(t).attr("cellinvisible")[l]&&!0===this._getQCellCol(t).attr("cellinvisible")[l])continue;if(o>0)for(n=!1,s=0;s<o;s++)if(a[s].nRow===l){n=!0;break}if(n)continue;i.push(l)}}else f.QCELL.log("err",e,'This Rowheader Type is not "Checkbox".')}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return i},f.QCELL.BasicQCELL.prototype.setRowheaderChecked=function(t,e,i){var r=this.attr("id")+".setRowheaderChecked",s=!1;if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else if(f._.isNumber(e)){var a=this.attr("rowheaders")[e];if("checkbox"===a||"radio"===a)if(f._.isNumber(t)&&f._.isBoolean(i)){var o=this._getCellDOM(t,e);if(this._setRowheaderData(t,e,i),null!==o){var n=o.childNodes[0];if(void 0!==n&&(n.checked=i),t<this.attr("headerrows"))for(var l=this.attr("headerrows");l<this.getRows();l++){var c=this._getCellDOM(l,e);if(null!==c){var h=c.childNodes[0];void 0!==h&&(h.checked=i)}}}else if("radio"===a)for(var u=this.getRows("header");u<this.getRows();u++){var d=this._getCellDOM(u,e);if(null!==d){var p=d.childNodes[0];void 0!==p&&(p.checked=this._getRowheaderData(u,e))}}s=!0}else f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);else f.QCELL.log("err",r,'This Rowheader Type is not "Checkbox".')}else f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);return s},f.QCELL.BasicQCELL.prototype.setRowheaderCheckedArr=function(t,e){var i=this.attr("id")+".setRowheaderChecked",r=!1;if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);else if(f._.isArray(t)&&f._.isNumber(e)){for(var s=0;s<t.length;s++){var a=this._getCellDOM(t[s],e);if(this._setRowheaderData(t[s],e,!0),null!=a)a.childNodes[0].checked=!0}r=!0}else f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);return r},f.QCELL.BasicQCELL.prototype.setGroup=function(t){var e=this.attr("id")+".setGroup";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isObject(t)&&!1===f._.isArray(t))return this._setGroup(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.clearGroup=function(){return this._clearGroup()},f.QCELL.BasicQCELL.prototype.setGrandTotal=function(t){var e=this.attr("id")+".setGrandTotal";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isObject(t)&&!1===f._.isArray(t))return this._setGrandTotal(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.clearGrandTotal=function(){return this._clearGrandTotal()},f.QCELL.BasicQCELL.prototype.setTree=function(t){var e=this.attr("id")+".setTree";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isObject(t)&&!1===f._.isArray(t))return this._setTree(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.insertTreeNode=function(t,e,i){var r=this.attr("id")+".insertTreeNode";if(arguments.length<1)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(f._.isObject(e)&&f._.isArray(t))return this._insertTreeNode(t,e,i);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.removeTreeNode=function(t){var e=this.attr("id")+".removeTreeNode";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isArray(t))return this._removeTreeNode(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.updateTreeNode=function(t,e){var i=this.attr("id")+".updateTreeNode";if(arguments.length<1)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(f._.isArray(t))return this._updateTreeNode(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.moveTreeNode=function(t,e){var i=this.attr("id")+".updateTreeNode";if(arguments.length<1)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(f._.isArray(t))return this._moveTreeNode(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.moveTreeNodeEx=function(t,e,i){var r=this.attr("id")+".moveTreeNodeEx";if(arguments.length<1)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(f._.isArray(t)&&f._.isArray(e))return this._moveTreeNodeEx(t,e,i);f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.getTreeState=function(t){var e=this.attr("id")+".getTreeState";return f._.isString(t)||void 0===t?this._getTreeState(t):(f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),"")},f.QCELL.BasicQCELL.prototype.clearTreeState=function(){return this._clearTreeState()},f.QCELL.BasicQCELL.prototype.setHierachy=function(t){var e=this.attr("id")+".setHierarchy";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isObject(t)&&!1===f._.isArray(t))return this._setHierachy(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.setDisableContextmenu=function(t){var e=this.attr("id")+".setDisableContextmenu",i=!0;if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(f._.isArray(t)){for(var r=0;r<t.length;r++)!1===f._.isString(t[r])&&(i=!1);if(i)return this._setDisableContextmenu(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return!1},f.QCELL.BasicQCELL.prototype.setAbleContextmenu=function(t){var e=this.attr("id")+".setAbleContextmenu",i=!0;if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(f._.isArray(t)){for(var r=0;r<t.length;r++)!1===f._.isString(t[r])&&(i=!1);if(i)return this._setAbleContextmenu(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return!1};f.QCELL.BasicQCELL.prototype.setContextmenu=function(t){var e=this.attr("id")+".setContextmenu",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!1===f._.isObject(t)||f._.isArray(t)?f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):(this._initContextMenu(),i=this._setContextMenu(t)),i},f.QCELL.BasicQCELL.prototype.getContextmenuId=function(){return this._getContextmenuId()},f.QCELL.BasicQCELL.prototype.filter=function(t,e){var i=this.attr("id")+".filter";if(arguments.length<1)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else if(f._.isArray(e)||f._.isObject(e)){if(f._.isNumber(t))return this._filter(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}else f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);return!1},f.QCELL.BasicQCELL.prototype.filterEx=function(t,e){var i=this.attr("id")+".filterEx";if(arguments.length<1)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else if(f._.isArray(e)||f._.isObject(e)){if(f._.isNumber(t)||f._.isString(t))return this._filter(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}else f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);return!1},f.QCELL.BasicQCELL.prototype.resetFilter=function(t){var e=this.attr("id")+".resetFilter";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isNumber(t))return this._resetFilter(t);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.BasicQCELL.prototype.resetFilterEx=function(t){var e=this.attr("id")+".resetFilterEx";return f._.isNumber(t)||f._.isString(t)||void 0===t?this._resetFilter(t):(f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),!1)},f.QCELL.config=f._.extend(f._.clone(f.QCELL.config),{width:"100%",height:"100%",moduletype:"basic",rowheaders:[],frozenrows:0,frozenbottomrows:0,frozenbottomstyle:"",makefrozenbottomdata:!1,frozencols:0,highlightrepeat:0,rowheight:{header:40,data:40,footer:40},data:{type:"object",input:[]},events:{},selectmode:"cells",merge:{header:"none",data:"none"},copy:!1,paste:!1,pagination:{},group:{type:"normal",expand:[],showpanel:!1,header:{},footer:{}},emptymessage:"",contextmenu:{header:{},data:{}},useGroupUI:!1,original:!1,bottompanel:!1,bottompanelheight:40,bottompanelstyle:"excel",useheadersort:!1,useheadercolmove:!1,excelexportwithformat:!1,usetooltipinellipsis:!1,policy:"dynamic",rowheaderssort:[],useexcelstylepanel:!0,disabletooltip:!1}),f.QCELL.isForceDynamic=!1,f.QCELL.def.msg=f._.extend(f._.clone(f.QCELL.def.msg),{kr:{err:{PARAM_COUNT:"매개변수의 개수를 확인하세요.",PARAM_TYPE:"매개변수의 데이터타입을 확인하세요.",FILE_EXT_NOT_XLSX:"엑셀 파일이 아니거나 파일의 확장자가 'xlsx'가 아닙니다. 확인하여 주십시오."}},en:{err:{PARAM_COUNT:"Please check parameter's count.",PARAM_TYPE:"Please check parameter's type.",FILE_EXT_NOT_XLSX:"Please check, This File is not Excel File or File`s extension is not 'xlsx'."}}}),f.QCELL.BasicQCELL.create=function(t){return f.QCELL.hasInstance(t.id)&&f.QCELL.deleteInstance(t.id),this._create(t)},f.QCELL.BasicQCELL._create=function(t){return this._checkRequiredProps(t)&&this._checkValidationOfProps(t)?new this(this._adjustProps(t)):null},f.QCELL.BasicQCELL._checkRequiredProps=function(t){var e=!0;if(f._.isObject(t)&&!1===f._.isArray(t)){for(var i=["id","parentid","columns"],r=0,s=i.length;r<s;r++){var a=i[r];if(void 0===t[a]){f.QCELL.log("err","QCELL.create",'Please check "'+a+'" property.'),e=!1;break}}void 0===t.data&&(t.data={input:[]}),i.RT_clear(),i=null}else f.QCELL.log("err","QCELL.create",'Please check first parameter\'s type is "object".'),e=!1;return e},f.QCELL.BasicQCELL._checkValidationOfProps=function(t){var e=!0;return f.$.each(t,(function(t,i){return e=f.QCELL.BasicQCELL._checkValidationOfProp(t,i)})),e},f.QCELL.BasicQCELL._checkValidationOfProp=function(t,e){var i=!0,r=!0,s="";switch(t){case"id":case"onloadurl":s="string",!1===f._.isString(e)&&(i=!1);break;case"parentid":if(s="string",!1===f._.isString(e))i=!1;else{var a=document.getElementById(e);f._.isElement(a)?f.$(a).is(":visible"):(f.QCELL.log("err","QCELL.create",'Please check that "'+t+'" property is "element".'),i=!1,r=!1)}break;case"width":case"height":s="string",!1===f._.isString(e)?!1===f._.isNumber(e)&&(i=!1):e.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0&&(f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "number" or "px" or "%" as value.'),i=!1,r=!1);break;case"rowheader":s="string",!1===f._.isString(e)?i=!1:"none"!==e&&"sequence"!==e&&"reverse"!==e&&"checkbox"!==e&&"state"!==e&&"custom"!==e&&"radio"!==e&&(f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "sequence" or "reverse" or "checkbox" or "state" or "custom" as value.'),i=!1,r=!1);break;case"selectmode":if(s="string",!1===f._.isString(e))i=!1;else switch(e){case"cells":case"cell":case"rows":case"row":case"cols":case"col":case"group":break;default:f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "free" or "row" or "rows" or "col" or "cols" or "group" as value.'),i=!1,r=!1}break;case"frozenrows":case"frozenbottomrows":case"frozencols":case"highlightrepeat":!1===f._.isNumber(e)&&(s="number",i=!1);break;case"copy":case"paste":case"useGroupUI":case"original":s="boolean",!1===f._.isBoolean(e)&&(i=!1);break;case"columns":s="array",!1===f._.isArray(e)&&(i=!1);break;case"rowheaders":s="array",!1===f._.isArray(e)?i=!1:!1===f._.every(e,(function(t){return"sequence"===t||"reverse"===t||"checkbox"===t||"radio"===t||"state"===t||"custom"===t}))&&(f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. It can use "sequence" or "reverse" or "checkbox" or "radio" or "state" or "custom" .'),i=!1,r=!1);break;case"data":s="object",!1===f._.isObject(e)||f._.isArray(e)?i=!1:!1===f._.every(f._.keys(e),(function(t){return"type"===t||"input"===t}))?(f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "type" or "input" as key.'),i=!1,r=!1):f.$.each(e,(function(e,s){if("type"===e){if(!1===f._.isString(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else{if("input"!==e)return;if(!1===f._.isArray(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),i=!1,r=!1,!1}}));break;case"rowheight":s="object",!1===f._.isObject(e)||f._.isArray(e)?i=!1:!1===f._.every(f._.keys(e),(function(t){return"header"===t||"data"===t||"footer"===t}))?(f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "header" or "data" or "footer" as key.'),i=!1,r=!1):f.$.each(e,(function(e,s){if(!1===f._.isNumber(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "number".'),i=!1,r=!1,!1}));break;case"events":if(s="object",!1===f._.isObject(e)||f._.isArray(e))i=!1;else if(!1===f._.every(e,(function(t,e){return"string"==typeof e&&f._.isFunction(t)})))return f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property\'s value is "Function".'),i=!1,r=!1,!1;break;case"group":s="object",!1===f._.isObject(e)||f._.isArray(e)?i=!1:f.$.each(e,(function(e,s){if("showpanel"===e){if(!1===f._.isBoolean(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1}else if("type"===e){if(!1===f._.isString(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else{if("expand"!==e&&"header"!==e&&"footer"!==e)return;if(!1===f._.isObject(s)||f._.isArray(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "object".'),i=!1,r=!1,!1}}));break;case"contextmenu":s="object",!1===f._.isObject(e)||f._.isArray(e)?i=!1:f.$.each(e,(function(e,s){if("id"===e){if(!1===f._.isString(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("contents"===e){if(!1===f._.isArray(s))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),i=!1,r=!1,!1;f._.each(s,(function(s){f.$.each(s,(function(s,a){if("header"===s){if(!1===f._.isObject(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+s+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1;f.$.each(a,(function(s,a){if("divine"===s&&!1===f._.isBoolean(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1;if("disabled"===s){if(!1===f._.isBoolean(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1}else if("icon"===s){if(!1===f._.isString(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("label"===s){if(!1===f._.isString(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("items"===s){if(!1===f._.isArray(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+'" property. This property\'s type is "array".'),i=!1,r=!1,!1}else if("callback"===s&&!1===f._.isFunction(a)&&(!1===f._.isString(a)||!1===f._.isFunction(window[a])))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+'" property. This property\'s type is "function".'),i=!1,r=!1,!1}))}else if("data"===s){if(!1===f._.isObject(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+s+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1;f.$.each(a,(function(s,a){"base"===s?f.$.each(a,(function(a,o){if("divine"===a&&!1===f._.isBoolean(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1;if("disabled"===a){if(!1===f._.isBoolean(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1}else if("icon"===a){if(!1===f._.isString(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("label"===a){if(!1===f._.isString(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("items"===a){if(!1===f._.isArray(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "array".'),i=!1,r=!1,!1}else if("callback"===a&&!1===f._.isFunction(o)&&(!1===f._.isString(o)||!1===f._.isFunction(window[o])))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "function".'),i=!1,r=!1,!1})):"except"===s&&f.$.each(a,(function(a,o){if("col"===a&&!1===f._.isNumber(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "number".'),i=!1,r=!1,!1;if("divine"===a&&!1===f._.isBoolean(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1;if("disabled"===a){if(!1===f._.isBoolean(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1}else if("icon"===a){if(!1===f._.isString(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("label"===a){if(!1===f._.isString(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "string".'),i=!1,r=!1,!1}else if("items"===a){if(!1===f._.isArray(o))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "array".'),i=!1,r=!1,!1}else if("callback"===a&&!1===f._.isFunction(o)&&(!1===f._.isString(o)||!1===f._.isFunction(window[o])))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+s+"."+a+'" property. This property\'s type is "function".'),i=!1,r=!1,!1}))}))}}))}))}}));break;case"pagination":s="object",f._.isArray(e)||!1===f._.isObject(e)?i=!1:f.$.each(e,(function(e,a){switch(e){case"unitlist":if(s="array",!1===f._.isArray(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),i=!1,r=!1,!1;break;case"param":if(s="object",!1===f._.isObject(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "object".'),i=!1,r=!1,!1;break;case"pageunit":case"pageIndex":case"pagecount":if(s="number",!1===f._.isNumber(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "number".'),i=!1,r=!1,!1;break;case"url":if(s="string",!1===f._.isString(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),i=!1,r=!1,!1;break;case"mode":if(s="string",!1===f._.isString(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),i=!1,r=!1,!1;if(!1==("simple"===a||"extend"===a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "simple" or "extend".'),i=!1,r=!1,!1;break;case"load":case"extendmove":case"loadonce":case"totalsort":case"initsort":if(s="boolean",!1===f._.isBoolean(a))return f.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "boolean".'),i=!1,r=!1,!1}}))}return!1===i&&r&&f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property\'s type is "'+s+'".'),i},f.QCELL.BasicQCELL._adjustProps=function(t){var e=f._.mapValues(t,(function(t,e){return f.QCELL.BasicQCELL._adjustProp(e,t)}));return void 0!==e.rowheader&&"none"!==e.rowheader&&(e.rowheaders=[e.rowheader],delete e.rowheader),f._.assign(f._.clone(f.QCELL.config),e)},f.QCELL.BasicQCELL._adjustProp=function(t,e){var i=this._getDefaultValueOfProp(t);if(void 0!==e)switch(t){case"width":case"height":i=f._.isNumber(e)||f._.isString(e)&&-1===e.indexOf("%")&&-1===e.indexOf("px")?e+"px":e;break;case"data":i={type:void 0===e.type||"object"!==e.type&&"array"!==e.type?i.type:e.type,input:void 0===e.input?i.input:e.input};break;case"rowheight":i={header:void 0===e.header?i.header:e.header,data:void 0===e.data?i.data:e.data,footer:void 0===e.footer?i.footer:e.footer};break;case"group":i={showpanel:void 0===e.showpanel?i.showpanel:e.showpanel,type:void 0===e.type||"normal"!==e.type&&"tree"!==e.type?i.type:e.type,expand:void 0===e.expand?i.expand:e.expand,header:void 0===e.header?i.header:e.header,footer:void 0===e.footer?i.footer:e.footer};break;default:i=e}return i},f.QCELL.BasicQCELL._getDefaultValueOfProp=function(t){var e=f.QCELL.config[t];return f._.isArray(e)||f._.isObject(e)&&!1===f._.isArray(e)?f._.clone(e):e},f.QCELL.def.cssprefix="rt-qc-",f.QCELL.def.cellstyle="cell-style",f.QCELL.def.textstyle="text-style",f.QCELL.def.wrapstyle="wrap-style",f.QCELL.def.singlestyle="-style",f.QCELL.def.type=f._.extend(f.QCELL.def.type,{STATIC:"static",INPUT:"input",INPUTBUTTON:"inputbutton",HTML:"html",CHART:"chart",CHECKBOX:"checkbox",SELECTMENU:"selectmenu",TEXTAREA:"textarea",DATEPICKER:"datepicker",IMAGE:"image",RADIO:"radio",MULTICHECKBOX:"multicheckbox",NUMBER:"number",SLIDER:"slider",BUTTON:"button",EDITOR:"editor",INPUT_DATEPICKER:"inputdatepicker",INVISIBLE:"invisible"}),f.QCELL.def.rowgroup=f._.extend(f.QCELL.def.rowgroup,{}),f.QCELL.def.css=f._.extend(f.QCELL.def.css,{TYPE_STATIC_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.STATIC+"-"+f.QCELL.def.cellstyle,TYPE_INPUT_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUT+"-"+f.QCELL.def.cellstyle,TYPE_INPUT_EDIT_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUT+"-edit-"+f.QCELL.def.cellstyle,TYPE_HTML_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.HTML+"-"+f.QCELL.def.cellstyle,TYPE_CHECKBOX_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.CHECKBOX+"-"+f.QCELL.def.cellstyle,TYPE_RADIO_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.RADIO+"-"+f.QCELL.def.cellstyle,TYPE_SELECTMENU_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.SELECTMENU+"-"+f.QCELL.def.cellstyle,TYPE_TEXTAREA_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.TEXTAREA+"-"+f.QCELL.def.cellstyle,TYPE_DATEPICKER_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-"+f.QCELL.def.cellstyle,TYPE_IMAGE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.IMAGE+"-"+f.QCELL.def.cellstyle,TYPE_MULTICHECKBOX_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.MULTICHECKBOX+"-"+f.QCELL.def.cellstyle,TYPE_NUMBER_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.NUMBER+"-"+f.QCELL.def.cellstyle,TYPE_SLIDER_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.SLIDER+"-"+f.QCELL.def.cellstyle,TYPE_BUTTON_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.BUTTON+"-"+f.QCELL.def.cellstyle,TYPE_INPUT_TEXT_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUT+"-"+f.QCELL.def.textstyle,TYPE_TEXTAREA_TEXT_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.TEXTAREA+"-"+f.QCELL.def.textstyle,TYPE_NUMBER_TEXT_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.NUMBER+"-"+f.QCELL.def.textstyle,TYPE_DATEPICKER_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-"+f.QCELL.def.wrapstyle,TYPE_SELECTMENU_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.SELECTMENU+"-"+f.QCELL.def.wrapstyle,TYPE_CHECKBOX_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.CHECKBOX+"-"+f.QCELL.def.wrapstyle,TYPE_MULTICHECKBOX_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.MULTICHECKBOX+"-"+f.QCELL.def.wrapstyle,TYPE_HTML_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.HTML+"-"+f.QCELL.def.wrapstyle,TYPE_SLIDER_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.SLIDER+"-"+f.QCELL.def.wrapstyle,TYPE_BUTTON_WRAP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.BUTTON+"-"+f.QCELL.def.wrapstyle,TYPE_EDITOR_WARP_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.EDITOR+"-"+f.QCELL.def.wrapstyle,TYPE_STATIC_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.STATIC+"-type-cell",TYPE_INPUT_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUT+"-type-cell",TYPE_INPUTBUTTON_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUTBUTTON+"-type-cell",TYPE_HTML_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.HTML+"-type-cell",TYPE_CHECKBOX_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.CHECKBOX+"-type-cell",TYPE_RADIO_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.RADIO+"-type-cell",TYPE_SELECTMENU_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.SELECTMENU+"-type-cell",TYPE_TEXTAREA_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.TEXTAREA+"-type-cell",TYPE_DATEPICKER_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-type-cell",TYPE_INPUTDATEPICKER_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUT_DATEPICKER+"-type-cell",TYPE_IMAGE_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.IMAGE+"-type-cell",TYPE_MULTICHECKBOX_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.MULTICHECKBOX+"-type-cell",TYPE_NUMBER_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.NUMBER+"-type-cell",TYPE_SLIDER_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.SLIDER+"-type-cell",TYPE_BUTTON_CELL:f.QCELL.def.cssprefix+f.QCELL.def.type.BUTTON+"-type-cell",TYPE_SLIDER_SINGLE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.SLIDER+f.QCELL.def.singlestyle,TYPE_SLIDER_RESULT_SINGLE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.SLIDER+"-result"+f.QCELL.def.singlestyle,TYPE_BUTTON_SINGLE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.BUTTON+f.QCELL.def.singlestyle,TYPE_BUTTON_LABEL_SINGLE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.BUTTON+"-label"+f.QCELL.def.singlestyle,TYPE_EDITOR_SINGLE_STYLE:f.QCELL.def.csspx+f.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+f.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_DATE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-date"+f.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_IMG_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-img"+f.QCELL.def.singlestyle,TYPE_INVISIBLE_SINGLE_STYLE:f.QCELL.def.cssprefix+f.QCELL.def.type.INVISIBLE+f.QCELL.def.singlestyle,TYPE_DATEPICKER:f.QCELL.def.cssprefix+f.QCELL.def.type.DATEPICKER+"-type",TYPE_INPUT_DATEPICKER:f.QCELL.def.cssprefix+f.QCELL.def.type.INPUT_DATEPICKER+"-type"}),f.QCELL.module="normal",f.QCELL.NormalQCELL=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.BasicQCELL.call(this,t)},f.util.inherit(f.QCELL.NormalQCELL,f.QCELL.BasicQCELL),f.QCELL.NormalQCELL.prototype._initMOL=function(){f.QCELL.BasicQCELL.prototype._initMOL.call(this),f.util.addMethod(this,"_dataCellValue",(function(t,e,i){try{var r=this._getCellDOM(t,e),s="rt_qcell_initdata",a=!1;if(!1!==this.attr("useinitdata")?void 0===this.attr("currentdata")[t-this.attr("headerrows")][s]&&(this.attr("currentdata")[t-this.attr("headerrows")][s]=f._.clone(this.attr("currentdata")[t-this.attr("headerrows")])):this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]!==i&&(a=!0),this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=i,f._.isElement(r))if(void 0===i)f.util.textContent(r,""),this._setAriaLabel(r,t,e,"");else if(this._isBottomPanel(r))"checkbox"!==this._getColType(e)||!0!==i&&!1!==i||(i=""),void 0===i?f.util.textContent(r,""):f.util.textContent(r,i),this._setAriaLabel(r,t,e,i);else{var o=r.getElementsByTagName("input")[0];switch(this._getColType(e)){case"selectmenu":var n={},l=!1;this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=i,f.$.each(this._getColElement(e).attr("input"),(function(t,e){f.$.each(e,(function(t,r){return"value"===t&&i===r?(n=e,!1):"label"===t&&i===r?(n=e,l=!0,!1):void 0}))})),!0===l&&void 0!==n&&void 0!==n.value&&(this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=n.value),void 0!==n&&void 0!==n.label?f.util.textContent(r,n.label):""===i&&f.util.textContent(r,""),this._setAriaLabelEx(r,t,e,!1);break;case"checkbox":var c=this._getColElement(e).attr("checkedvalue"),h=this._getColElement(e).attr("uncheckedvalue");if(""!==i&&null!=i||(i=h),void 0===o&&(this._getColElement(e)._show(r,t,e),o=r.getElementsByTagName("input")[0]),c===i?(o.checked=!0,o.value=i):h===i&&(o.checked=!1,o.value=i),!0!==this.attr("_hcskip")&&this._getColElement(e)._isHeaderCheckbox(e)){var u,d=0,p=this._getKeyOfCol(e),g=this.attr("currentdata"),_=!0===this.attr("makefrozenbottomdata")?this.attr("frozenbottomrows"):0,C=(this.attr("rows"),this.attr("headerrows"));for(u=0,C=this.attr("rows")-this.attr("headerrows");u<C;u++)g[u][p]===i&&d++;var L,m=this.attr("headerrows")-1;do{if(null===(L=this._getCellDOM(m,e)))return;if("none"!==f.$(L).css("display"))break}while(m-- >=0);if(m<0)return;var E=L.childNodes[0].childNodes[0];void 0!==E&&d===g.length-_?h===i?(E.checked=!1,this._getColElement(e).attr("_checkedstate",!1,"boolean")):(E.checked=!0,this._getColElement(e).attr("_checkedstate",!0,"boolean")):(E.checked=!1,E.checked=!1,this._getColElement(e).attr("_checkedstate",!1,"boolean"))}break;case"image":o=r.getElementsByTagName("img")[0],f._.isUndefined(o)||f._.isString(i)&&(o.src=i),this._setAriaLabelEx(r,t,e,!1);break;case"html":case"chart":case"button":this._getColElement(e)._show(r,t,e),this._setAriaLabelEx(r,t,e,!1);break;case"inputbutton":case"datepicker":this._getColElement(e)._showDataLabel(r,t,e,i),this._setAriaLabelEx(r,t,e,!1);break;default:i=this._showDataFormat(t,e,i),f.util.textContent(r,i),this._setAriaLabel(r,t,e,i)}}if(!0===this.attr("pagesyncorgindata")&&(void 0===this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state||"i"!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state)&&(this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state="u"),"i"!==this.getRowState(t)&&"d"!==this.getRowState(t)){var v=!1,b=this.attr("currentdata")[t-this.attr("headerrows")],y=b[s],w=this.getRowState(t);if(void 0!==y)for(var x in b)if(s!==x&&y[x]!==b[x]){v=!0;break}!1===this.attr("useinitdata")&&(v=a),!0===v?"u"!==w&&this._updateRowState(t,"u"):"n"!==w&&(this.removeRowState(t),delete this.attr("currentdata")[t-this.attr("headerrows")][s])}return!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._dataCellValue",t.message),!1}}))},f.QCELL.NormalQCELL.prototype._initTag=function(){this.tag("QBOX.QCELL.NormalQCELL")},f.QCELL.NormalQCELL.prototype._initAttrs=function(t){f.QCELL.BasicQCELL.prototype._initAttrs.call(this,t),this.attr("oneclickedit",t.oneclickedit,"boolean"),this.attr("editcolids",[],"array"),this.attr("idxinfo",f._.extend(this.attr("idxinfo"),{state:{row:new r._QHashtable,col:new r._QHashtable}}),"object"),this.attr("idxinfo",f._.extend(this.attr("idxinfo"),{valuechanged:{row:new r._QHashtable,col:new r._QHashtable}}),"object"),this.attr("idxinfo",f._.extend(this.attr("idxinfo"),{celldisabled:{row:new r._QHashtable,col:new r._QHashtable}}),"object"),this.attr("idxinfo",f._.extend(this.attr("idxinfo"),{cellinvisible:{row:new r._QHashtable,col:new r._QHashtable}}),"object"),this.attr("deletedrowsdata",[],"array"),this.attr("staticrowsinfo",[],"array");var e=void 0===t.statetype?"immediate":t.statetype;this.attr("statetype",e,"string"),this._initAttr("delkeymode",t.delkeymode,"string"),this._initAttr("setstatewithapi",t.setstatewithapi,"boolean"),this._initAttr("useenterkeytonextcol",t.useenterkeytonextcol,"boolean"),this._initAttr("keepeditmode",t.keepeditmode,"boolean"),this._initAttr("datepickerautosettoday",t.datepickerautosettoday,"boolean"),this._initAttr("useinitdata",t.useinitdata,"boolean")},f.QCELL.NormalQCELL.prototype._initAttr=function(t,e,i){this.attr(t,void 0===e?f.QCELL.config[t]:e,i)},f.QCELL.NormalQCELL.prototype._clearAttrs=function(){f.QCELL.BasicQCELL.prototype._clearAttrs.call(this),f.$(document).off("mousedown."+this.attr("id"))},f.QCELL.NormalQCELL.QCellCol=function(t){if(!1===f.util.checkType(t,"object"))return null;f.Base.call(this,t)},f.util.inherit(f.QCELL.NormalQCELL.QCellCol,f.QCELL.BasicQCELL.QCellCol),f.util.addMethod(f.QCELL.NormalQCELL.QCellCol,"create",(function(t){return new f.QCELL.NormalQCELL.QCellCol(this._adjustProps(t))})),f.util.addMethod(f.QCELL.NormalQCELL.QCellCol,"create",(function(t,e){return this._create(t,e)})),f.QCELL.NormalQCELL.QCellCol.prototype._initMOL=function(){f.QCELL.BasicQCELL.QCellCol.prototype._initMOL.call(this)},f.QCELL.NormalQCELL.QCellCol.prototype._initTag=function(){this.tag("QBOX.QCELL.NormalQCELL.QCellCol")},f.QCELL.NormalQCELL.QCellCol.prototype._init=function(t){f.QCELL.BasicQCELL.QCellCol.prototype._init.call(this,t),this._createColElement()},f.QCELL.NormalQCELL.QCellCol.prototype._initAttrs=function(t){f.QCELL.BasicQCELL.QCellCol.prototype._initAttrs.call(this,t),this.attr("colelement",null,"object"),this._initAttr("type",t.type,"string"),this._initAttr("disabled",t.disabled,"boolean"),this._initAttr("mask",t.options.mask,"object"),this._initAttr("html",t.options.html,"object"),this._initAttr("chart",t.options.chart,"object"),this._initAttr("invisibled",t.options.invisibled,"boolean"),this._initAttr("celldisabled",[],"array"),this._initAttr("cellinvisible",[],"array"),this._initAttr("tabindex",t.tabindex,"boolean");var e=void 0!==t.options.required&&t.options.required;this._initAttr("required",e,"boolean")},f.QCELL.NormalQCELL.QCellCol.prototype._initAttr=function(t,e,i){f.QCELL.BasicQCELL.QCellCol.prototype._initAttr.call(this,t,e,i)},f.QCELL.colconfig=f._.extend(f._.clone(f.QCELL.colconfig),{disabled:!1,invisibled:!1,options:{},html:{data:null,datacallback:null,header:null},tabindex:!0}),f.QCELL.NormalQCELL.QCellCol._create=function(t,e){return this._checkRequiredProps(t,e)&&this._checkValidationOfProps(t,e)?new f.QCELL.NormalQCELL.QCellCol(this._adjustProps(e)):null},f.QCELL.NormalQCELL.QCellCol._checkRequiredProps=function(t,e){return!!f.QCELL.BasicQCELL.QCellCol._checkRequiredProps(t,e)},f.QCELL.NormalQCELL.QCellCol._checkValidationOfProps=function(t,e){var i=!1;return f.QCELL.BasicQCELL.QCellCol._checkValidationOfProps(t,e)&&f.$.each(e,(function(e,r){return i=f.QCELL.NormalQCELL.QCellCol._checkValidationOfProp(t,e,r)})),i},f.QCELL.NormalQCELL.QCellCol._checkValidationOfProp=function(t,e,i){var r=!0,s=!0,a="";switch(e){case"type":if(a="string",!1===f._.isString(i))r=!1;else switch(i){case"input":case"textarea":case"datepicker":case"selectmenu":case"image":case"checkbox":case"number":case"static":case"html":case"chart":case"multicheckbox":case"slider":case"button":case"editor":case"inputbutton":case"inputdatepicker":break;default:f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "input" or "textarea" or "datepicker" or "selectmenu" or "image" or "checkbox" or "number" or "html" or "chart" or "multicheckbox" or "slider" or "button" or "editor" as value.'),r=!1,s=!1}break;case"options":if(void 0!==i&&!1===f._.isObject(i)||!0===f._.isArray(i))a="object",r=!1;else if(void 0!==i.maxlength&&!1===f._.isNumber(i.maxlength))a="number",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.maxlength"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.numrange&&!1===f._.isString(i.numrange))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.numrange"\'s type is "'+a+'".'),r=!1,s=!1;else if(!0===f._.isString(i.numrange)){!1===/^([+-]?\d*(\.?\d*))(\:)([+-]?\d*(\.?\d*))$/.test(i.numrange)&&(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+".numrange\"'s data setting."),r=!1,s=!1)}else if(void 0!==i.limit&&null!==i.limit)void 0!==i.limit&&!1===f._.isObject(i.limit)?(a="object",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit"\'s type is "'+a+'".'),r=!1,s=!1):!1===f._.isString(i.limit.type)?(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.type"\'s type is "'+a+'".'),r=!1,s=!1):"all"===i.limit.type&&"string"===i.limit.type&&"number"===i.limit.type&&"other"===i.limit.type?(f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.type"\'s val is "string or number or other".'),r=!1,s=!1):"other"===i.limit.type&&void 0!==i.limit.expreg&&!1===f._.isString(i.limit.expreg)&&(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.expreg"\'s type is "'+a+'".'),r=!1,s=!1);else if(void 0!==i.exclude&&null!==i.exclude)void 0!==i.exclude&&!1===f._.isArray(i.exclude)&&(a="array",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.exclude"\'s type is "'+a+'".'),r=!1,s=!1);else if(void 0!==i.html&&null!==i.html)void 0!==i.html&&!1===f._.isObject(i.html)||!0===f._.isArray(i.html)?(a="object",r=!1):(void 0!==i.html.data&&!1===f._.isFunction(i.html.data)||void 0!==i.html.header&&!1===f._.isFunction(i.html.header)||void 0!==i.html.datacallback&&!1===f._.isFunction(i.html.datacallback))&&(a="function",r=!1);else if(void 0!==i.textareawidth&&!1===f._.isString(i.textareawidth))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.textareawidth"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.dateformat&&!1===f._.isString(i.dateformat))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.dateformat"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.timeformat&&!1===f._.isString(i.timeformat))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timeformat"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.timetype&&!1===f._.isString(i.timetype))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timetype"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.timeseparator&&!1===f._.isString(i.timeseparator))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.separator"\'s type is "'+a+'".'),r=!1,s=!1;else if(!0===f._.isString(i.timetype))switch(i.timetype){case"none":case"with":case"only":break;default:f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timetype." This property can use "none" or "with" or "only" as value.'),r=!1,s=!1}else if(void 0!==i.locale&&!1===f._.isString(i.locale))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.locale"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.yearrange&&!1===f._.isString(i.yearrange))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.yearrange"\'s type is "'+a+'".'),r=!1,s=!1;else if(!0===f._.isString(i.yearrange)){!1===/^(((c\-)[0-9]{1,4})(\:)(c\+)[0-9]{1,4})|((\-)[0-9]{1,4}(\:)(\+)[0-9]{1,4})|([0-9]{1,4}(\:)[0-9]{1,4})$/.test(i.yearrange)&&(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+".yearrange\"'s data setting."),r=!1,s=!1)}else if(void 0!==i.changeyear&&!1===f._.isBoolean(i.changeyear))a="boolean",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.changeyear"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.changemonth&&!1===f._.isBoolean(i.changemonth))a="boolean",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.changemonth"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.input&&!1===f._.isArray(i.input))a="array",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.input"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.itemcount&&!1===f._.isNumber(i.itemcount))a="number",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.itemcount"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.selectedEnd&&!1===f._.isBoolean(i.selectedEnd))a="boolean",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.selectedEnd"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.selectclickopen&&!1===f._.isBoolean(i.selectclickopen))a="boolean",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.selectclickopen"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.wholeselect&&!1===f._.isBoolean(i.wholeselect))a="boolean",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.wholeselect"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.checkedvalue&&!1===(f._.isBoolean(i.checkedvalue)||f._.isString(i.checkedvalue)))a="boolean or string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.checkedvalue"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.uncheckedvalue&&!1===(f._.isBoolean(i.uncheckedvalue)||f._.isString(i.uncheckedvalue)))a="boolean or string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.uncheckedvalue"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.imagealt&&!1===f._.isString(i.imagealt))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagealt"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.imageheight&&!1===f._.isString(i.imageheight))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageheight"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.imagewidth&&!1===f._.isString(i.imagewidth))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagewidth"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.imagestyle&&!1===f._.isObject(i.imagestyle))a="object",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagestyle"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.imageclick)!0!==f._.isString(i.imageclick)&&!0!==f._.isFunction(i.imageclick)&&(a="string or function",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageclick"\'s type is "'+a+'".'),r=!1,s=!1);else if(void 0!==i.imageuri&&!1===f._.isString(i.imageuri))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageuri"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.imageerroruri&&!1===f._.isString(i.imageerroruri))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageerroruri"\'s type is "'+a+'".'),r=!1,s=!1;else if(void 0!==i.buttonwidth&&!1===f._.isString(i.buttonwidth))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonwidth"\'s type is "'+a+'".'),r=!1,s=!1;else if(f._.isString(i.buttonwidth)&&i.buttonwidth.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0)f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonwidth" property. This property can use "number" or "px" or "%" as value.'),r=!1,s=!1;else if(void 0!==i.buttonheight&&!1===f._.isString(i.buttonheight))a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonheight"\'s type is "'+a+'".'),r=!1,s=!1;else if(f._.isString(i.buttonheight)&&i.buttonheight.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0)f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonheight" property. This property can use "number" or "px" or "%" as value.'),r=!1,s=!1;else if(void 0!==i.buttonposition&&!1===f._.isString(i.buttonposition))i.buttonposition="left";else if(f._.isString(i.buttonposition))switch(i.buttonposition){case"left":case"right":case"center":break;default:f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonlabel" property. This property can use "left" or "right" or "center" as value.'),r=!1,s=!1}else void 0!==i.buttonlabel&&!1===f._.isString(i.buttonlabel)?(a="string",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonlabel"\'s type is "'+a+'".'),r=!1,s=!1):void 0!==i.buttonclick&&!1===f._.isFunction(i.buttonclick)&&(a="function",f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonclick"\'s type is "'+a+'".'),r=!1,s=!1)}return!1===r&&s&&f.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'"\'s type is "'+a+'".'),r},f.QCELL.NormalQCELL.QCellCol._adjustProps=function(t){var e=f._.mapValues(f.QCELL.BasicQCELL.QCellCol._adjustProps(t),(function(t,e){return f.QCELL.NormalQCELL.QCellCol._adjustProp(e,t)}));return f._.assign(f._.clone(f.QCELL.colconfig),e)},f.QCELL.NormalQCELL.QCellCol._adjustProp=function(t,e){var i=null;if(void 0===e)i=f.QCELL.BasicQCELL._getDefaultValueOfProp(t);else if("disabled"===t)i=!0===f._.isBoolean(e)&&e;else i=e;return i},f.QCELL.NormalQCELL.QCellCol.prototype._createColElement=function(){var t=this.attr("parent").attr("id"),e=this.attr("id"),i=t+"_"+e+"_",r={colid:e,parentid:t,parent:this.attr("parent"),options:this.attr("options"),html:this.attr("html"),chart:this.attr("chart"),disabled:this.attr("disabled"),invisible:this.attr("invisible")};switch(this.attr("type")){case"input":r.id=i+"input",this.attr("colelement",new f.QCELL.Input(r),"object");break;case"inputbutton":r.id=i+"inputbutton",this.attr("colelement",new f.QCELL.InputButton(r),"object");break;case"textarea":r.id=i+"textarea",this.attr("colelement",new f.QCELL.Textarea(r),"object");break;case"datepicker":r.id=i+"datepicker",this.attr("colelement",new f.QCELL.Datepicker(r),"object");break;case"selectmenu":r.id=i+"selectmenu",this.attr("colelement",new f.QCELL.Selectmenu(r),"object");break;case"image":r.id=i+"image",this.attr("colelement",new f.QCELL.Image(r),"object");break;case"checkbox":r.id=i+"checkbox",this.attr("colelement",new f.QCELL.Checkbox(r),"object");break;case"html":r.id=i+"html",this.attr("colelement",new f.QCELL.Html(r),"object");break;case"chart":r.id=i+"chart",this.attr("colelement",new f.QCELL.Chart(r),"object");break;case"multicheckbox":r.id=i+"multicheckbox",this.attr("colelement",new f.QCELL.Multicheckbox(r),"object");break;case"number":r.id=i+"number",this.attr("colelement",new f.QCELL.Number(r),"object");break;case"slider":r.id=i+"slider",this.attr("colelement",new f.QCELL.Slider(r),"object");break;case"button":r.id=i+"button",this.attr("colelement",new f.QCELL.Button(r),"object");break;case"editor":r.id=i+"editor",this.attr("colelement",new f.QCELL.Editor(r),"object");break;case"inputdatepicker":r.id=i+"inputdatepicker",this.attr("colelement",new f.QCELL.InputDatepicker(r),"object")}},f.QCELL.ColElement=function(t){if(!1===f.util.checkType(t,"object"))return null;f.Element.call(this,t)},f.util.inherit(f.QCELL.ColElement,f.Element),f.QCELL.ColElement.prototype._initTag=function(){this.tag("QBOX.QCELL.ColElement")},f.QCELL.ColElement.prototype._init=function(t){f.Element.prototype._init.call(this,t),this._createElement(),this._initEvent()},f.QCELL.ColElement.prototype._initAttrs=function(t){f.Element.prototype._initAttrs.call(this,t),this.attr("parent",t.parent,"object"),this.attr("colid",t.colid,"string"),void 0!==t.options&&(this.titlekey=t.options.titlekey)},f.QCELL.ColElement.prototype._createElement=function(){},f.QCELL.ColElement.prototype._initEvent=function(){},f.QCELL.ColElement.prototype._show=function(){},f.QCELL.ColElement.prototype._hide=function(){},f.QCELL.ColElement.prototype.show=function(){},f.QCELL.ColElement.prototype.hide=function(){},f.QCELL.ColElement.prototype._changeMergeCellValue=function(t,e,i,r){var s,a,o,n,l=this.attr("parent"),c=l._findNextCell(t,e,"up"),h=l.attr("cols"),u=l.attr("rows"),d=l.attr("frozenrows"),p=l.attr("headercols"),g=l.attr("frozencols"),_=l._cellValue(t,e),C=l._getColType(e);switch(l.attr("merge").data){case"row":if(e<g+p){for(n=c.col;n<g+p&&_===l._cellValue(t,n);n++)if(l._cellValue(t,n,i),f._.isObject(r))switch(s=l._showDataFormat(t,n,void 0===i?"":i),a=l._getCellDOM(t,n),C){case"number":case"input":case"slider":null!==a&&f.util.textContent(a,s);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,s)}else if("selectmenu"===C)null!==(a=l._getCellDOM(t,n))&&l._getColElement(e)._showDataLabel(a,t,e,i)}else for(n=c.col;n<h&&_===l._cellValue(t,n);n++)if(l._cellValue(t,n,i),f._.isObject(r))switch(s=l._showDataFormat(t,n,void 0===i?"":i),a=l._getCellDOM(t,n),C){case"number":case"input":case"slider":null!==a&&f.util.textContent(a,s);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,s)}else if("selectmenu"===C)null!==(a=l._getCellDOM(t,n))&&l._getColElement(e)._showDataLabel(a,t,e,i);break;case"col":if(t<d+l.attr("headerrows")){for(o=c.row;o<d+l.attr("headerrows")&&_===l._cellValue(o,e);o++)if(l._cellValue(o,e,i),f._.isObject(r))switch(s=l._showDataFormat(o,e,void 0===i?"":i),a=l._getCellDOM(o,e),C){case"number":case"input":case"slider":null!==a&&f.util.textContent(a,s);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,s)}else if("selectmenu"===C)null!==(a=l._getCellDOM(o,e))&&l._getColElement(e)._showDataLabel(a,t,e,i)}else if(t>=l.attr("rows")-l.attr("frozenbottomrows")){for(o=c.row;o<u&&_===l._cellValue(o,e);o++)if(l._cellValue(o,e,i),f._.isObject(r))switch(C){case"number":case"input":case"slider":null!==a&&f.util.textContent(a,s);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,s)}else if("selectmenu"===C)null!==(a=l._getCellDOM(o,e))&&l._getColElement(e)._showDataLabel(a,t,e,i)}else for(o=c.row;o<l.attr("rows")-l.attr("frozenbottomrows")&&_===l._cellValue(o,e);o++)if(l._cellValue(o,e,i),f._.isObject(r))switch(C){case"number":case"input":case"slider":null!==a&&f.util.textContent(a,s);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,s)}else if("selectmenu"===C)null!==(a=l._getCellDOM(o,e))&&l._getColElement(e)._showDataLabel(a,t,e,i);break;case"group":var L=[];if(t<d+l.attr("headerrows"))for(o=c.row;o<d+l.attr("headerrows")&&(c.row===l._findNextCell(o,e,"up").row&&_===l._cellValue(o,e));o++)L.push(o);else if(t>=l.attr("rows")-l.attr("frozenbottomrows"))for(o=c.row;o<u&&(c.row===l._findNextCell(o,e,"up").row&&_===l._cellValue(o,e));o++)L.push(o);else for(o=c.row;o<l.attr("rows")-l.attr("frozenbottomrows")&&(c.row===l._findNextCell(o,e,"up").row&&_===l._cellValue(o,e));o++)L.push(o);for(o=0;o<L.length;o++)if(l._cellValue(L[o],e,i),f._.isObject(r))switch(s=l._showDataFormat(L[o],e,void 0===i?"":i),a=l._getCellDOM(L[o],e),C){case"number":case"input":case"slider":null!==a&&f.util.textContent(a,s);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,s)}else if("selectmenu"===C)null!==(a=l._getCellDOM(L[o],e))&&l._getColElement(e)._showDataLabel(a,t,e,i)}},f.QCELL.Checkbox=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Checkbox,f.QCELL.ColElement),f.QCELL.Checkbox.prototype._initTag=function(){this.tag("QBOX.QCELL.Checkbox")},f.QCELL.Checkbox.prototype._createDiv=function(t){var e=f.QCELL.def.css,i=document.createElement("div"),r=document.createElement("input"),s=document.createElement("label"),a=this.attr("parent");return!0===this.attr("likeradio")?r.setAttribute("type","radio"):r.setAttribute("type","checkbox"),!0!==this.attr("showheaderlabel")&&s.setAttribute("aria-hidden","true"),r.setAttribute("name",this.attr("id")),r.className+=f.QCELL.def.css.COLHEADER_CHECKBOX,s.setAttribute("for",this.attr("id")),i.className+=t?" "+e.COLHEADER_CHECKBOX:e.TYPE_CHECKBOX_WRAP_STYLE+" "+e.COLHEADER_CHECKBOX,i.appendChild(r),i.appendChild(s),(a.attr("useall")||a.attr("usetreeall"))&&r.setAttribute("tabindex","0"),i},f.QCELL.Checkbox.prototype._createElement=function(){try{return this.attr("headerelement",this._createDiv(!0),"element"),this._setElement(this._createDiv()),!0}catch(t){return f.QCELL.log("err","QCELL.Checkbox.prototype._createElement",t.message),!1}},f.QCELL.Checkbox.prototype._initEvent=function(){var t="click",e=this.attr("parent");t=!0===e.attr("useall")||!0===e.attr("usetreeall")?t+" focusin keydown":t,f.$(this.attr("element")).on(t,{target:this},f.st.eventProcess),f.$(this.attr("headerelement")).on(t,{target:this},f.st.eventProcess)},f.QCELL.Checkbox.prototype._defaultAction=function(t){switch(t.type){case"click":this.onClick(t);break;case"focusin":this.onFocusIn(t);break;case"keydown":this.onKeyDown(t)}},f.QCELL.Checkbox.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("tabindex",-1,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this._extendAttrs(t.options)},f.QCELL.Checkbox.prototype._extendAttrs=function(t){try{var e=!0;return!f._.isUndefined(t.checkedvalue)||!f._.isUndefined(t.uncheckedvalue)||f._.isUndefined(f.QCELL.config.options)||f._.isUndefined(f.QCELL.config.options.checkedvalue)||f._.isUndefined(f.QCELL.config.options.uncheckedvalue)||(t.checkedvalue=f.QCELL.config.options.checkedvalue,t.uncheckedvalue=f.QCELL.config.options.uncheckedvalue),f._.isUndefined(t.checkedvalue)&&f._.isUndefined(t.uncheckedvalue)?(t.checkedvalue=!0,t.uncheckedvalue=!1):f._.isString(t.checkedvalue)&&f._.isString(t.uncheckedvalue)?e=!1:f._.isBoolean(t.checkedvalue)&&f._.isBoolean(t.uncheckedvalue)?e=!0:(f._.isUndefined(t.checkedvalue)||f._.isUndefined(t.uncheckedvalue)?f.QCELL.log("err","QCELL.Checkbox",'checkedvalue and uncheckedvalue props is not same type, so setting default Boolean type "true" and "false".'):f.QCELL.log("err","QCELL.Checkbox",'checkedvalue and uncheckedvalue props is only support "stirng" or "boolean" types.'),t.checkedvalue=!0,t.uncheckedvalue=!1),this.attr("checkedvalue",t.checkedvalue,!0===e?"boolean":"string"),this.attr("uncheckedvalue",t.uncheckedvalue,!0===e?"boolean":"string"),f._.isUndefined(t.wholeselect)?t.wholeselect=!1:!1===f._.isBoolean(t.wholeselect)&&(f.QCELL.log("err","QCELL.Checkbox",'wholeselect property type is "boolean".'),t.wholeselect=!0),f._.isUndefined(t.likeradio)?t.likeradio=!1:!1===f._.isBoolean(t.likeradio)&&(f.QCELL.log("err","QCELL.Checkbox",'selectone property type is "boolean".'),t.likeradio=!1),this.attr("usefixedcheckbox",t.wholeselect,"boolean"),this.attr("likeradio",t.likeradio,"boolean"),this.attr("showheaderlabel",t.showheaderlabel,"boolean"),!0}catch(t){return f.QCELL.log("err","QCELL.Checkbox.prototype._extendAttrs",t.message),!1}},f.QCELL.Checkbox.prototype._headershow=function(t,e,i){try{var r=this.attr("parent"),s=r._cellValue(e,i),a=f.$(this.attr("headerelement")).clone(!0).get(0),o=this.attr("usefixedcheckbox"),n=this.attr("likeradio"),l=r.attr("headerrows"),c=r._getColElement(i).attr("checkedvalue"),h=a.childNodes[0],u=a.childNodes[1],d=r._cellValue(l-1,i);if(d=void 0===d||""===d?i+"":d,t.innerHTML="",a.setAttribute("data-row",e),a.setAttribute("data-col",i),h.setAttribute("data-row",e),h.setAttribute("data-col",i),h.title=d+"열 전체 선택",a.className+=" "+f.QCELL.def.css.COLHEADER_AREA,h.className+=" "+f.QCELL.def.css.COLHEADER_AREA,h.onchange=function(t){r._trigger("checkbox_all_changed",{status:t.target.checked,col:i})},e===l-1&&o&&!n){h.name=h.name+"_all";for(var p=0,g=!0===r.attr("makefrozenbottomdata")?r.attr("frozenbottomrows"):0,_=r.attr("rows")-r.attr("headerrows")-g,C=0;C<_;C++)r.attr("currentdata")[C][r._getKeyOfCol(i)]===c&&p++;if(p===r.attr("currentdata").length-g&&r.attr("currentdata").length>0&&(h.checked=!0),!0===this.attr("showheaderlabel")){u.setAttribute("data-row",e),u.setAttribute("data-col",i),u.className+=" "+f.QCELL.def.css.COLHEADER_AREA,u.setAttribute("for",h.name);var L=s.split("\n");if(L.length>0){a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center";for(var m=document.createElement("div"),E=0;E<L.length;E++){if(0!==E){0;var v=document.createElement("br");m.appendChild(v)}var b=document.createElement("span"),y=document.createTextNode(L[E]);b.setAttribute("data-row",e),b.setAttribute("data-col",i),m.setAttribute("data-row",e),m.setAttribute("data-col",i),b.appendChild(y),m.appendChild(b)}u.appendChild(m)}else{var w=document.createTextNode(s);u.appendChild(w)}}t.appendChild(a),r._getQCellCol(i).attr("move")&&t.appendChild(r._getColHeaderDragDropArea()),r._getQCellCol(i).attr("search")&&t.appendChild(r.attr("colsearcharea").clone(!0).get(0)),r._getQCellCol(i).attr("sort")&&t.appendChild(r._getDefaultSortArea(i)),r._getQCellCol(i).attr("resize")&&t.appendChild(r._getColResizeArea()),r._getQCellCol(i).attr("filter")&&t.appendChild(r._getFilterArea(i))}else{r._getQCellCol(i).attr("topmove")&&t.appendChild(r._getColHeaderDragDropArea()),void 0===s&&(s="");var x=s.split("\n");if((r.attr("useall")||r.attr("usetreeall"))&&t.setAttribute("aria-hidden","true"),x.length>0){t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center";for(var Q=document.createElement("div"),k=0;k<x.length;k++){if(k){var T=document.createElement("br");Q.appendChild(T)}var R=document.createElement("span"),A=document.createTextNode(x[k]);R.setAttribute("data-row",e),R.setAttribute("data-col",i),Q.setAttribute("data-row",e),Q.setAttribute("data-col",i),R.appendChild(A),Q.appendChild(R)}t.appendChild(Q)}else f.util.textContent(t,s)}return!0}catch(t){return f.QCELL.log("err","QCELL.Checkbox._headershow",t.message),!1}},f.QCELL.Checkbox.prototype._show=function(t,e,i){try{var r,s=this.attr("parent"),a=f.QCELL.def.css,o=s._cellValue(e,i),n=f.$(this.attr("element")).clone(!0).get(0),l=this.attr("checkedvalue"),c=this.attr("likeradio"),h=s._getQCellCol(i).attr("celldisabled")[e],u=s._getQCellCol(i).attr("cellinvisible")[e],d=n.childNodes[0];if(s._showDisableText(t,e,i))return;if(s._isBottomPanel(t))return void f.util.textContent(t,"");if(t.innerHTML="",n.setAttribute("data-row",e),n.setAttribute("data-col",i),d.setAttribute("data-row",e),d.setAttribute("data-col",i),d.onchange=function(t){s._trigger("checkbox_changed",{status:t.target.checked,row:e,col:i})},c&&f.util.addClass(d,a.TYPE_RADIO_STYLE),o===l&&(d.checked=!0,s.attr("isFocussing",!0,"boolean"),c&&(s.attr("useall")||s.attr("usetreeall"))?setTimeout((function(){d.focus(),s.attr("isFocussing",!1,"boolean")}),0):s.attr("isFocussing",!1,"boolean")),null!==this.titlekey&&!0===f._.isFunction(this.titlekey)){if(void 0!==(r=s.getRowData(e))){var p=this.titlekey(e,i,r);void 0!==p&&""!==p&&(s.attr("useall")||s.attr("usetreeall")?d.setAttribute("title",p):d.setAttribute("aria-label",p))}}else null!==this.titlekey&&""!==this.titlekey&&void 0!==this.titlekey&&void 0!==(r=s.getRowData(e))&&(s.attr("useall")||s.attr("usetreeall")?d.setAttribute("title",void 0!==r[this.titlekey]?r[this.titlekey]:""):d.setAttribute("aria-label",void 0!==r[this.titlekey]?r[this.titlekey]:""));return h?f.$(d).attr("disabled",h):f.$(d).removeAttr("disabled"),f.util.addClass(d,a.TYPE_CHECKBOX_STYLE),f.$(t).empty(),t.appendChild(n),this.attr("row",e,"number"),this.attr("col",i,"number"),u&&s._setInitCellInvisible(e,i),!0}catch(t){return f.QCELL.log("err","QCELL.Checkbox._show",t.message),!1}},f.QCELL.Checkbox.prototype._isHeaderCheckbox=function(t){var e=!1;return this.attr("parent")._getColElement(t).attr("usefixedcheckbox")&&(e=!0),e},f.QCELL.Checkbox.prototype._getHeaderCheckedState=function(t){var e=this.attr("id")+"._getHeaderCheckedState",i=this.attr("parent");return this._isHeaderCheckbox(t)?null!==i._getColElement(t).attr("_checkedstate")&&i._getColElement(t).attr("_checkedstate"):void f.QCELL.log("err",e,i.attr("msg").err.NOT_HAVE_HEADER_CHECKBOX)},f.QCELL.Checkbox.prototype._setHeaderChecked=function(t,e){var i=this.attr("id")+"._setHeaderChecked",r=this.attr("parent"),s=r.attr("headerrows")-1;do{var a=r._getCellDOM(s,t);if(null===a)return;if("none"!==f.$(a).css("display"))break}while(s-- >=0);s<0||(this._isHeaderCheckbox(t)?this._HeaderCheckBoxChecked(s,t,e):f.QCELL.log("err",i,r.attr("msg").err.NOT_HAVE_HEADER_CHECKBOX))},f.QCELL.Checkbox.prototype._outerClick=function(t,e,i){var r,s,a=this.attr("parent"),o=a._getCellDOM(t,e),n=o.getElementsByTagName("input")[0],l=a._getColElement(e).attr("checkedvalue"),c=a._getColElement(e).attr("uncheckedvalue"),h=a._getColElement(e).attr("likeradio"),u=a._getQCellCol(e).attr("celldisabled")[t],d=a.getIdx("row","focus"),p=a.getIdx("col","focus");if(a._clearFocusAllCSS(),f._.isElement(n)&&(a._onScrollHideEditCellsDOM(),a._clearSelection(),a._updateIdx("focus",-1,-1),!1===f._.isBoolean(u)||!1===u))if(!0===i||f._.isUndefined(i)&&!1===n.checked)if(f.util.hasClass(o,f.QCELL.def.css.CELL_VIEWPORT)){if(!0===h){for(r=0,s=a.attr("rows")-a.attr("headerrows");r<s;r++)a.attr("currentdata")[r][a._getKeyOfCol(e)]=c;n.checked=!0,n.value=l,a._cellValue(t,e,l)}else n.checked=!0,n.value=l,a._cellValue(t,e,l);a._selectCell(t,e),a._focusCell(t,e),a._scrollToFocusCell(t,e),a._processValueChanged(t,e),a._treecheckbox(t,e,!0),a._mergedCheckboxClick(t,e,!0)}else this._HeaderCheckBoxChecked(t,e,!0),-1!==d&&-1!==p&&(a._selectCell(d,p),a._focusCell(d,p));else if(!1===i||f._.isUndefined(i)&&!0===n.checked)if(f.util.hasClass(o,f.QCELL.def.css.CELL_VIEWPORT)){if(!0===h){for(r=0,s=a.attr("rows")-a.attr("headerrows");r<s;r++)a.attr("currentdata")[r][a._getKeyOfCol(e)]=c;n.checked=!0,n.value=l,a._cellValue(t,e,l)}else n.checked=!1,n.value=c,a._cellValue(t,e,c);a._selectCell(t,e),a._focusCell(t,e),a._scrollToFocusCell(t,e),a._processValueChanged(t,e),a._treecheckbox(t,e,!1),a._mergedCheckboxClick(t,e,!1)}else this._HeaderCheckBoxChecked(t,e,!1),-1!==d&&-1!==p&&(a._selectCell(d,p),a._focusCell(d,p))},f.QCELL.Checkbox.prototype._HeaderCheckBoxChecked=function(t,e,i){var r,s,a,o,n,l=this.attr("parent"),c=l._getCellDOM(t,e),h=l._getColElement(e).attr("checkedvalue"),u=l._getColElement(e).attr("uncheckedvalue"),d=[],p=!0,g=-1,_=-1,C=!1,L=!1,m="panel"===l.attr("frozenbottomstyle");if(f._.isUndefined(i)||i||(p=!p),l._getColElement(e).attr("_checkedstate",p,"boolean"),null!=c){var E=c.childNodes[0].childNodes[0],v=E.name.replace("_all","");d=document.getElementsByName(v),E.checked=p}for(r=0,a=d.length;r<a;r++)g=(n=d[r].parentNode).getAttribute("data-row"),_=n.getAttribute("data-col"),C=l._getQCellCol(_).attr("cellinvisible")[g],L=l._getQCellCol(_).attr("celldisabled")[g],C||L||(d[r].checked=p);for(l.attr("_hcskip",!0,"boolean"),s=l.attr("headerrows"),o=l.attr("rows");s<o;s++)if(!0!==m||!0!==l.getCellDataEx(s,"rt_qc_fbrd")){l._cellValue(s,e)!==h&&l._cellValue(s,e)!==u&&(l.attr("currentdata")[s-l.attr("headerrows")][l._getKeyOfCol(e)]=u),C=l._getQCellCol(e).attr("cellinvisible")[s],L=l._getQCellCol(e).attr("celldisabled")[s];var b=l.getRowData(s);(void 0===b||"gt"!==b._rtqc_state&&!0!==b.rt_qc_header&&!0!==b.rt_qc_footer)&&(C||L||(p?l._cellValue(s,e,h):l._cellValue(s,e,u)))}l.attr("_hcskip",!1,"boolean")},f.QCELL.Checkbox.prototype.onKeyDown=function(t){var e=this.attr("parent"),i=e.attr("vsinfo"),r=t.keyCode;if((e.attr("useall")||e.attr("usetreeall"))&&i.bVScroll){var s=Number(t.currentTarget.parentNode.getAttribute("data-row")),a=Number(t.currentTarget.parentNode.getAttribute("data-col"));if(isNaN(s)||isNaN(a))return;if((r===f.def.key.UP||r===f.def.key.LEFT)&&s===i.nStartRow)return t.stopPropagation(),void t.preventDefault();if((r===f.def.key.UP||r===f.def.key.LEFT)&&s===i.nTopRow){var o=s-1;return e._scrollTop(o-1),setTimeout((function(){var t=e._getCellDOM(o+1,a);if(null!==t){var i=t.getElementsByTagName("input")[0];void 0!==i&&i.focus()}}),100),t.stopPropagation(),void t.preventDefault()}if((r===f.def.key.DOWN||r===f.def.key.RIGHT)&&s===i.nEndRow)return t.stopPropagation(),void t.preventDefault();if((r===f.def.key.DOWN||r===f.def.key.RIGHT)&&s===i.nBottomRow)return t.stopPropagation(),void t.preventDefault();e.attr("isFocussing")&&(t.stopPropagation(),t.preventDefault())}},f.QCELL.Checkbox.prototype.onClick=function(t){var e=this.attr("parent"),i=t.target,r=Number(i.parentNode.getAttribute("data-row")),s=Number(i.parentNode.getAttribute("data-col"));"LABEL"===t.target.tagName?i=t.target.parentElement.firstElementChild:"SPAN"===t.target.tagName&&((i=t.target.parentElement.parentElement.parentElement.firstElementChild).checked=!i.checked),f._.isElement(i)&&(isNaN(r)||isNaN(s)||e._updateIdx("click",r,s),f.util.hasClass(i,f.QCELL.def.css.TYPE_CHECKBOX_WRAP_STYLE)?(i=i.childNodes[0]).checked?this._outerClick(r,s,!1):this._outerClick(r,s,!0):i.checked?this._outerClick(r,s,!0):this._outerClick(r,s,!1))},f.QCELL.Checkbox.prototype.onFocusIn=function(t){var e=this.attr("parent"),i=t.target,r=Number(i.parentNode.getAttribute("data-row")),s=Number(i.parentNode.getAttribute("data-col"));if((e.attr("useall")||e.attr("usetreeall"))&&-1!==r&&-1!==s)if(r>=e.getRows("header")){if(this.attr("likeradio"))return;e._focusCell(r,s),e._scrollToFocusCell(r,s)}else r>=e.attr("headerrows")&&e._scrollLeft(s)},f.QCELL.Datepicker=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Datepicker,f.QCELL.ColElement),f.QCELL.Datepicker.prototype._initTag=function(){this.tag("QBOX.QCELL.Datepicker")},f.QCELL.Datepicker.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("showkey",!1,"boolean"),this.attr("visible",!1,"boolean"),this.attr("changeyear",void 0!==t.options.changeyear&&t.options.changeyear,"boolean"),this.attr("changemonth",void 0!==t.options.changemonth&&t.options.changemonth,"boolean"),this.attr("insertdata","","string"),this.attr("dateformat",void 0===t.options.dateformat?"YYMMDD":t.options.dateformat,"string"),this.attr("locale",void 0===t.options.locale?"ko":t.options.locale,"string"),this.attr("yearrange",void 0===t.options.yearrange?"c-10:c+10":t.options.yearrange,"string"),this.minDate=void 0===t.options.mindate?null:t.options.mindate,this.maxDate=void 0===t.options.maxdate?null:t.options.maxdate,this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("format",t.options.format,"object"),this.attr("timetype",void 0===t.options.timetype?"none":t.options.timetype,"string"),this.attr("timeformat",void 0===t.options.timeformat?"HHmmss":t.options.timeformat,"string"),void 0!==f.$.timepicker&&this.attr("timeseparator",void 0===t.options.timeseparator?f.$.timepicker._defaults.separator:t.options.timeseparator,"string"),this.attr("dateimage",void 0===t.options.dateimage?"":t.options.dateimage,"string"),this.attr("dateimageside",void 0===t.options.dateimageside?"right":t.options.dateimageside,"string"),this.attr("dateimageonly",void 0!==t.options.dateimageonly&&t.options.dateimageonly,"boolean"),this.attr("direction",t.options.direction,"string"),this.attr("validator",t.options.validator,"function"),this.attr("initdate",t.options.initdate,"string")},f.QCELL.Datepicker.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")),t.className+=f.QCELL.def.css.TYPE_DATEPICKER_WRAP_STYLE,this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Datepicker.prototype._createElement",t.message),!1}},f.QCELL.Datepicker.prototype._initEvent=function(){},f.QCELL.Datepicker.prototype._defaultAction=function(t){},f.QCELL.Datepicker.prototype._show=function(t){try{var e=this.attr("parent"),i=this.attr("element"),r=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col")),a=e._getQCellCol(s).attr("cellinvisible")[r],o=e._getQCellCol(s).attr("celldisabled")[r],n=e.attr("elementpool").get("$container"),l=this,c=this.attr("locale"),h=this.attr("timetype");this.attr("useinitdate",!1,"boolean");var u=void 0===e._cellValue(r,s)||null===e._cellValue(r,s)?"":f.util.replaceAll(e._cellValue(r,s),"/","");e._onScrollHideEditCellsDOM(),""!==u&&void 0!==u||""!==(u=null!==this.attr("initdate")&&""!==this.attr("initdate")?this.attr("initdate"):"")&&this.attr("useinitdate",!0,"boolean");var d={defaultDate:u,changeYear:this.attr("changeyear"),changeMonth:this.attr("changemonth"),dateFormat:this.attr("dateformat").toLowerCase(),yearRange:this.attr("yearrange"),minDate:this.minDate,maxDate:this.maxDate,firstDay:0,onSelect:function(e,i){l.attr("insertdata",e,"string"),l.attr("isselect",!0,"boolean"),l._hide(t,"api")},showButtonPanel:!0,showAnim:"fold"};if(o)return!0;if(f.$.datepicker.setDefaults(f.$.datepicker.regional[c]),"none"===h)f.$(i).datepicker(d),!0===e.attr("datepickerautosettoday")?f.$.datepicker._gotoToday=function(e){f.$(e).datepicker("setDate",new Date);var i=new Date,r=i.getFullYear(),s="0"+(i.getMonth()+1);s=s.substring(s.length-2,s.length);var a="0"+i.getDate();a=a.substring(a.length-2,a.length),setTimeout((function(){l.attr("insertdata",r+s+a,"string"),l.attr("isselect",!0,"boolean"),l._hide(t,"api")}))}:f.$.datepicker._gotoToday=function(t){f.$(t).datepicker("setDate",new Date)};else{u=void 0!==u?u:"";var p=this.attr("timeseparator"),g=this.attr("timeformat"),_=void 0!==u?u.split(p)[0]:"",C=u.replace(_+p,""),L=this.attr("format"),m={defaultDate:_,timeFormat:this.attr("timeformat"),showButtonPanel:!0,onSelect:function(i,a){if(l.attr("insertdata",i,"string"),f._.isObject(L)){var o=e._showDataFormat(r,s,void 0===i?"":i);f.util.textContent(t,o)}}};void 0!==f.$.timepicker&&(f.$.timepicker.setDefaults(f.$.timepicker.regional[c]),f.$.timepicker.setDefaults({separator:p})),f._.extend(d,f._.extend(m,f.$.datepicker.parseTime(g,C,{}))),"with"===h?f.$(i).datetimepicker(d).off("click").on("click",(function(e){f.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&l._hide(t)})):"only"===h&&f.$(i).timepicker(d).off("click").on("click",(function(e){f.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&l._hide(t)}))}return n.append(i),t.focus(),this._calculateTopNLeft(i,t),this.attr("row",r,"number"),this.attr("col",s,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",u,"string"),this.attr("isselect",!1,"boolean"),e._addEditColId(this.attr("colid")),a&&e._setInitCellInvisible(r,s),f.$(i).bind("click",(function(e){f.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&l._hide(t)})),!0}catch(t){return f.QCELL.log("err","QCELL.Datepicker.prototype._show",t.message),!1}},f.QCELL.Datepicker.prototype._hidesub=function(t,e){this.attr("isselect",!1,"boolean"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata","","string"),t._removeEditColId(this.attr("colid"))},f.QCELL.Datepicker.prototype._hide=function(t,e){try{if(null===t)return;var i=this.attr("parent"),r=this.attr("element"),s=this.attr("row"),a=this.attr("col"),o=this.attr("insertdata"),n=this.attr("format"),l=this.attr("validator");if(-1===s||-1===a)return;if(f.$(r).datepicker("destroy"),f.$(r).detach(),void 0===o)return;if(!0===this.attr("isselect")&&l)return this._hidesub(i),void l(s,a,o);if(!0!==this.attr("isselect")&&!0===this.attr("useinitdate")&&o===this.attr("initdate"))return void this._hidesub(i);if(this.attr("isselect",!1,"boolean"),o!==i._cellValue(s,a)?("none"===i.attr("merge").data||f._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(a)?(i._cellValue(s,a,o),this._showDataLabel(t,s,a,o),f._.isObject(n)&&this._showDataLabel(t,s,a,void 0===o?"":o)):this._changeMergeCellValue(s,a,o,n),i._processValueChanged(s,a)):void 0!==o&&(f._.isObject(n),this._showDataLabel(t,s,a,void 0===o?"":o)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();if("msie"!==f.$.browser.name?f.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():f.$(t).focus(),this._hidesub(i),i.attr("useall")){var c=!0!==i.attr("hideedit");i._setAriaLabelEx(t,s,a,c)}return!0}catch(t){return f.QCELL.log("err","QCELL.Datepicker.prototype._hide",t.message),!1}},f.QCELL.Datepicker.prototype._calculateTopNLeft=function(t,e){var i=this.attr("parent"),r=parseInt(f.$(e).css("height")),s=parseFloat(f.$(t).children().css("height")),a=parseInt(f.$(e).css("top"))+i.attr("layoutsize").colheader.offsetHeight+r,o=parseInt(f.$(e).position().top),n=0,l=!0,c=parseInt(f.$(e).css("width")),h=parseFloat(f.$(t).css("width")),u=parseInt(f.$(e).css("left"))+i.attr("layoutsize").rowheader.offsetWidth,d=void 0===window.scrollY?0:window.scrollY;"down"===this.attr("direction")?(f.$(t).css({top:a}),f.$(t).css({bottom:"auto"})):"up"===this.attr("direction")?(n=i.attr("layoutsize").root.offsetHeight-o-r,f.$(t).css({bottom:n}),f.$(t).css({top:"auto"})):(o&&i.attr("layoutsize").root.offsetHeight<a+s?window.pageYOffset+e.getBoundingClientRect().top+s+a>window.innerHeight+d?(n=i.attr("layoutsize").root.offsetHeight-o-r,f.$(t).css({bottom:n}),f.$(t).css({top:"auto"})):(l=!1,n=i.attr("layoutsize").root.offsetHeight-o-r,f.$(t).css({bottom:n}),f.$(t).css({top:"auto"})):i.attr("layoutsize").root.offsetHeight>a+s?(f.$(t).css({top:a}),f.$(t).css({bottom:"auto"})):window.pageYOffset+e.getBoundingClientRect().top+s+a>window.innerHeight+d?(n=i.attr("layoutsize").root.offsetHeight-o-r,f.$(t).css({bottom:n}),f.$(t).css({top:"auto"})):(f.$(t).css({top:a}),f.$(t).css({bottom:"auto"})),!1===l&&n<s&&a<s&&window.pageYOffset+e.getBoundingClientRect().top+s<window.innerHeight+d&&(f.$(t).css({top:a}),f.$(t).css({bottom:"auto"}))),i.attr("layoutsize").root.offsetWidth<u+h&&(u+h-i.attr("layoutsize").root.offsetWidth<c?u-=h-c:u-=1.5*(h-c)),f.$(t).css({left:u})},f.QCELL.Datepicker.prototype._showDataLabel=function(t,e,i,r){try{this.attr("row",e,"number"),this.attr("col",i,"number");var s,a=this.attr("parent"),o=this.attr("dateimage"),n=this.attr("dateimageside"),l=this.attr("dateimageonly"),c=a._showDataFormat(e,i,r),h=a._getQCellCol(i).attr("colstyleeditordata"),u=document.createElement("div"),d=document.createElement("img"),p="dblclick",g=0,_=a.getRowData(e);if(!0===_.rt_qc_footer||!0===_.rt_qc_header)return f.util.textContent(t,r),void a._setAriaLabel(t,e,i,r);if(f.$(u).css({height:f.$(t).height()+"px"}),a._isBottomPanel(t))return void(void 0===r?f.util.textContent(t,""):f.util.textContent(t,r));if(a._showDisableText(t,e,i))return;var C=u.cloneNode(),L=u.cloneNode();return u.setAttribute("data-row",e),u.setAttribute("data-col",i),f.util.addClass(u,f.QCELL.def.css.TYPE_DATEPICKER_SINGLE_STYLE),f.util.addClass(u,f.QCELL.def.css.TYPE_DATEPICKER),f.util.addClass(C,f.QCELL.def.css.TYPE_DATEPICKER_SINGLE_DATE_STYLE),f.util.addClass(C,f.QCELL.def.css.TYPE_DATEPICKER),f.util.addClass(L,f.QCELL.def.css.TYPE_DATEPICKER_SINGLE_IMG_STYLE),f.util.addClass(L,f.QCELL.def.css.TYPE_DATEPICKER),s=c,h.replace("QCELL_COL_DATA","").length>0&&(s=h.replace("QCELL_COL_DATA",c)),a.attr("oneclickedit")&&(p="click"),C.innerHTML=s,""!==o&&(g=25,d.src=o,L.appendChild(d),f.$(L).css("width",g+"px"),f.$(L.childNodes[0]).off(p).on(p,{target:this},this.onClick)),f.$(C).css("width","calc( 100% - "+g+"px )"),f.$(C).css("float","left"),f.$(L).css("float","right"),"left"===n&&(f.$(C).css("float","right"),f.$(L).css("float","left")),u.appendChild(C),u.appendChild(L),!1===l&&f.$(C).off(p).on(p,{target:this},this.onClick),f.$(t).empty(),a._setAriaLabel(t,e,i,c),t.appendChild(u),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL.Datepicker._showDataLabel",t.message),!1}},f.QCELL.Datepicker.prototype.onClick=function(t){var e=t.target,i=Number(e.parentNode.getAttribute("data-row")),r=Number(e.parentNode.getAttribute("data-col")),s=t.data.target,a=s.attr("parent"),o=a._getCellDOM(i,r);if(0===i&&0===r){var n=e.parentNode;i=Number(n.parentNode.getAttribute("data-row")),r=Number(n.parentNode.getAttribute("data-col")),o=a._getCellDOM(i,r)}s._show(o)},f.QCELL.Html=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Html,f.QCELL.ColElement),f.QCELL.Html.prototype._initTag=function(){this.tag("QBOX.QCELL.Html")},f.QCELL.Html.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),t.options.html=void 0===t.options.html?{}:t.options.html,this.attr("renderer",t.options.html.data,"function"),this.attr("afterrenderer",t.options.html.datacallback,"function"),this.attr("headerrenderer",t.options.html.header,"function"),this.attr("row",-1,"number"),this.attr("col",-1,"number")},f.QCELL.Html.prototype._headershow=function(t,e,i){try{var r=this.attr("parent"),s=r._cellValue(e,i),a=r._getColHtml(i);if(f.util.addClass(t,f.QCELL.def.css.TYPE_HTML_CELL),f._.isFunction(this.attr("headerrenderer"))&&f._.isFunction(a.header)){var o=a.header(r,e,i,!0===f._.isUndefined(s)?"":s);f._.isString(o)&&(t.innerHTML=o)}else t.innerHTML=r._getHeaderCellSpan(s,e,i);return!0}catch(t){return f.QCELL.log("err","QCELL.Html._headershow",t.message),!1}},f.QCELL.Html.prototype._show=function(t,e,i){try{var r=this.attr("parent"),s=r._cellValue(e,i),a=r._getColHtml(i),o=r.attr("currentdata"),n=r._getQCellCol(i).attr("cellinvisible")[e];if(f.util.addClass(t,f.QCELL.def.css.TYPE_HTML_CELL),s=r._showDataFormat(e,i,s),r._isBottomPanel(t))return void 0===s?f.util.textContent(t,""):f.util.textContent(t,s),!0;var l=void 0===o[e-r.attr("headerrows")]?{}:o[e-r.attr("headerrows")],c=s;if(f._.isFunction(this.attr("renderer"))&&f._.isFunction(a.data)){var h=a.data(r,e,i,!0===f._.isUndefined(s)?"":s,l);f._.isString(h)?(t.innerHTML=h,c=f.$(t).text()):f.$(t).empty(),f._.isFunction(this.attr("afterrenderer"))&&f._.isFunction(a.datacallback)&&setTimeout((function(){a.datacallback(r,e,i,!0===f._.isUndefined(s)?"":s,l)}),0)}else f.util.textContent(t,s);return this.attr("row",e,"number"),this.attr("col",i,"number"),n&&r._setInitCellInvisible(e,i),r._setAriaLabel(t,e,i,c),!0!==r.attr("useall")&&!0!==r.attr("usetreeall")||f.$(t).bind("focusin",(function(t){!0!==r.attr("isClick")&&r._adjustScrollPos()})),!0}catch(t){return f.QCELL.log("err","QCELL.Html._show",t.message),!1}},f.QCELL.Image=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Image,f.QCELL.ColElement),f.QCELL.Image.prototype._initTag=function(){this.tag("QBOX.QCELL.Image")},f.QCELL.Image.prototype._createElement=function(){try{var t=document.createElement("img");return t.setAttribute("name",this.attr("id")),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Image.prototype._createElement",t.message),!1}},f.QCELL.Image.prototype._initEvent=function(){f.$(this.attr("element")).on("click",{target:this},f.st.eventProcess)},f.QCELL.Image.prototype._defaultAction=function(t){if("click"===t.type)this.onClick(t)},f.QCELL.Image.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this._extendAttrs(t.options)},f.QCELL.Image.prototype._extendAttrs=function(t){try{var e=!0;return f._.isUndefined(t.imagealt)||f._.isString(t.imagealt)?f._.isUndefined(t.imageheight)||f._.isString(t.imageheight)?f._.isUndefined(t.imagewidth)||f._.isString(t.imagewidth)?f._.isUndefined(t.imagestyle)||f._.isObject(t.imagestyle)?f._.isUndefined(t.imageuri)||f._.isString(t.imageuri)?f._.isUndefined(t.imageerroruri)||f._.isString(t.imageerroruri)?f._.isUndefined(t.imageclick)||(f._.isFunction(t.imageclick)?e=!0:f._.isString(t.imageclick)?e=!1:f.QCELL.log("err","QCELL.Image",'imageclick property type is "function".')):f.QCELL.log("err","QCELL.Image",'imageerroruri property type is "string".'):f.QCELL.log("err","QCELL.Image",'imageuri property type is "string".'):f.QCELL.log("err","QCELL.Image",'imagestyle property type is "object".'):f.QCELL.log("err","QCELL.Image",'imagewidth property type is "string".'):f.QCELL.log("err","QCELL.Image",'imageheight property type is "string".'):f.QCELL.log("err","QCELL.Image",'imagealt property type is "string".'),this.attr("imagealt",t.imagealt,"string"),this.attr("imageheight",t.imageheight,"string"),this.attr("imagewidth",t.imagewidth,"string"),this.attr("imagestyle",t.imagestyle,"object"),this.attr("imageuri",t.imageuri,"string"),this.attr("imageerroruri",t.imageerroruri,"string"),this.attr("imageclick",t.imageclick,!0===e?"function":"string"),!0}catch(t){return f.QCELL.log("err","QCELL.Image.prototype._extendAttrs",t.message),!1}},f.QCELL.Image.prototype._show=function(t,e,i){try{var r=this.attr("parent"),s=f.QCELL.def.css,a=f.$(this.attr("element")).clone(!0).get(0),o=t.style,n=r._cellValue(e,i),l={"max-width":Number(o.width.replace("px",""))-4+"px","max-height":o.height},c=r._getQCellCol(i).attr("celldisabled")[e],h=r._getQCellCol(i).attr("cellinvisible")[e];return f.$(t).empty(),r._isBottomPanel(t)?(void 0===n?f.util.textContent(t,""):f.util.textContent(t,n),!0):(a.src=n,f.$(a).css({visibility:"visible"}),f.$(a).css(l),void 0===this.attr("imageerroruri")&&null===this.attr("imageerroruri")||(f.$.browser.msie&&f.$.browser.version<9?f.$(a).on("error",(function(t){f.$(t.target).css({visibility:"hidden"})})):a.onerror=function(t){f.$(t.target).css({visibility:"hidden"})}),f.$.each(r._getColOptions(i),(function(t,e){switch(t){case"imagealt":a.alt=e;break;case"imageheight":a.setAttribute("height",e);break;case"imagewidth":a.setAttribute("width",e);break;case"imagestyle":f.$.each(e,(function(t,e){l[t]=e.replace(/\;/gi,"")})),f.$(a).css(l);break;case"imageclick":!1!==f._.isBoolean(c)&&!1!==c||(a.onclick=function(t){var i=parseInt(t.target.parentElement.getAttribute("data-row")),r=parseInt(t.target.parentElement.getAttribute("data-col"));f._.isFunction(e)?e(t,i,r):void 0!==window[e]&&window[e](t,i,r)});break;case"imageuri":a.src=e;break;case"imageerroruri":f.$.browser.msie&&f.$.browser.version<9?f.$(a).on("error",(function(t){t.target.src=e})):a.onerror=function(t){t.target.src=e}}})),f.$(a).on("dragstart",(function(t){t.preventDefault()})),f.util.addClass(t,s.TYPE_IMAGE_STYLE),t.appendChild(a),h&&r._setInitCellInvisible(e,i),this.attr("row",e,"number"),this.attr("col",i,"number"),r._setAriaLabel(t,e,i,""),!0)}catch(t){return f.QCELL.log("err","QCELL.Image._show",t.message),!1}},f.QCELL.Image.prototype._outerClick=function(t,e){},f.QCELL.Image.prototype.onClick=function(t){var e=this.attr("parent"),i=t.target,r=Number(i.parentNode.getAttribute("data-row")),s=Number(i.parentNode.getAttribute("data-col"));f._.isElement(i)&&(e._clearSelection(),e._selectCell(r,s),e._focusCell(r,s))},f.QCELL.Input=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Input,f.QCELL.ColElement),f.QCELL.Input.prototype._initTag=function(){this.tag("QBOX.QCELL.Input")},f.QCELL.Input.prototype._setOptionsAttrs=function(t){this.attr("maxlength",t.maxlength,"number"),this.attr("maxbyte",t.maxbyte,"number"),this.attr("mask",t.mask,"object"),this.attr("format",t.format,"object"),this.attr("limit",t.limit,"object"),this.attr("numrange",t.numrange,"string"),this.attr("exclude",t.exclude,"array"),this.attr("validator",t.validator,"function"),this.attr("placeholder",t.placeholder,"string"),t.inputclass=void 0===t.inputclass?"":t.inputclass,f._.isString(t.inputclass)||(t.inputclass=""),this.attr("placeholder",t.placeholder,"string"),this.attr("inputclass",t.inputclass,"string"),this.titlekey=t.titlekey,this.attr("useenterkeytonext",t.useenterkeytonext,"boolean")},f.QCELL.Input.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("maxlength",t.options.maxlength,"number"),this.attr("maxbyte",t.options.maxbyte,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("mask",t.options.mask,"object"),this.attr("format",t.options.format,"object"),this.attr("limit",t.options.limit,"object"),this.attr("numrange",t.options.numrange,"string"),this.attr("exclude",t.options.exclude,"array"),this.attr("validator",t.options.validator,"function"),this.attr("bkeycode",void 0,"number"),this.attr("convert",t.options.convert,"object"),this.attr("isshow",!1,"boolean"),this.attr("placeholder",t.options.placeholder,"string"),t.options.inputclass=void 0===t.options.inputclass?"":t.options.inputclass,f._.isString(t.options.inputclass)||(t.options.inputclass=""),this.attr("inputclass",t.options.inputclass,"string"),void 0!==t.options.enterkey?(this.attr("useenterkeytonext",t.options.enterkey.tonext,"boolean"),this.attr("movescroll",t.options.enterkey.movescroll,"boolean"),this.attr("delaytime",t.options.enterkey.delaytime,"number")):(this.attr("useenterkeytonext",!1,"boolean"),this.attr("movescroll",!1,"boolean"),this.attr("delaytime",100,"number")),this.attr("delaytime")<100&&this.attr("delaytime",100,"number")},f.QCELL.Input.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),f.$(t).attr("autocomplete","off"),t.className+=f.QCELL.def.css.TYPE_INPUT_TEXT_STYLE+" "+this.attr("inputclass"),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Input.prototype._createElement",t.message),!1}},f.QCELL.Input.prototype._initEvent=function(){f.$(this.attr("element")).on("keydown keyup keypress blur paste",{target:this},f.st.eventProcess)},f.QCELL.Input.prototype._defaultAction=function(t){var e=t.keyCode,i=this.attr("bkeycode");switch(t.type){case"keydown":this.onKeyDown(t);break;case"keyup":this.onKeyUp(t);break;case"blur":if(void 0===e&&void 0===this.attr("bkeycode"))break;if(i===f.def.key.ENTER||i===f.def.key.TAB||i===f.def.key.ESC)break;this.onBlur(t);break;case"keypress":this.onKeyPress(t);break;case"paste":this.onPaste(t),t.stopPropagation()}},f.QCELL.Input.prototype._show=function(t,e){try{var i=this.attr("parent"),r=this.attr("element"),s=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col")),o=void 0===i._cellValue(s,a)?"":i._cellValue(s,a),n=f.$(t).empty(),l=i.attr("elementpool").get("$viewportinner"),c=i._getQCellCol(a).attr("cellinvisible")[s];if(i._isValidEditColId(this.attr("colid")))return;null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?o=f.util.replaceAll(o,"%",""):f._.isFunction(this.attr("convert").callback)&&(o=this.attr("convert").callback.call(this,s,a,o))),this.attr("isshow",!0,"boolean"),f.$(r).val(o),r.value=o;var h=i._cellValue(i.getRows("header")-1,a);return r.setAttribute("aria-label",s+"행 "+h+"열 "+o),void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(r.placeholder=this.attr("placeholder")),i._showMask(a,r),f.$(r).css({width:n.css("width"),height:n.css("height"),left:n.css("left"),top:n.css("top")}),l.append(r),r.focus(),r.select(),this.attr("row",s,"number"),this.attr("col",a,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[o],"array"),i._addEditColId(this.attr("colid")),c&&i._setInitCellInvisible(s,a),!0}catch(t){return f.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},f.QCELL.Input.prototype._hide=function(t,e){try{if(null===t)return;if(!1===this.attr("isshow")&&!0!==this.attr("parent").attr("oneclickedit"))return;var i,r=this.attr("parent"),s=this.attr("element"),a=this.attr("row"),o=this.attr("col"),n=s.value,l=this.attr("format"),c=this.attr("validator"),h=null===r._cellValue(a,o)||void 0===r._cellValue(a,o)?"":r._cellValue(a,o);if(!f._.isNull(this.attr("maxbyte"))&&!f._.isUndefined(this.attr("maxbyte"))&&f.util.strbyte.getByteLength(n)>this.attr("maxbyte")?n=f.util.strbyte.cutByteLength(n,this.attr("maxbyte")):!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&n.length>this.attr("maxlength")&&(n=n.slice(0,this.attr("maxlength"))),this.attr("isshow",!1,"boolean"),-1===a||-1===o)return;void 0!==l&&(n=r._showUnMask(o,n,l)),n=null===(n=void 0===n?"":n)?"":n,null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?n+="%":f._.isFunction(this.attr("convert").afterCallback)&&(n=this.attr("convert").afterCallback.call(this,a,o,n)));var u=s.parentElement;setTimeout((function(){try{var t=0;if(void 0===u)return;if(null===u.childNodes)return;for(t=0;t<u.childNodes.length;t++)if(s===u.childNodes[t]){if(u.removeChild(s),null===u.childNodes)return;break}}catch(t){return}}),0),void 0!==this.attr("exclude")&&f._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{f._.isString(t)&&(n=n.split(t).join(""))}catch(t){f.QCELL.log("err","QCELL.Input.prototype._hide",t.message)}}));var d=!0;c&&(d=c(a,o,n));var p=n,g=h;if(f._.isObject(l)&&"number"===l.type&&""!==h&&void 0!==h&&("string"==typeof h&&(h=f.util.replaceAll(h,",",""),n=f.util.replaceAll(n,",","")),void 0===l.invalidchar||!isNaN(Number(n))&&""!==n?(h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)):n=h=l.invalidchar),!0===d?n!==h?""===n&&void 0===h?(f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i)):f.util.textContent(t,n),r._treeRefresh(a,o)):f._.isObject(l)&&"number"===l.type&&isNaN(Number(p))?(f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===g?"":g+""),f.util.textContent(t,i)):f.util.textContent(t,g),r._treeRefresh(a,o)):("none"===r.attr("merge").data||f._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(o)?(r._cellValue(a,o,n),f._.isObject(l)&&(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i))):(this._changeMergeCellValue(a,o,n,l),r._cellValue(a,o,n)),r._processValueChanged(a,o)):(!f._.isObject(l)||"number"!==l.type||""!==p||""!==g&&void 0!==g?f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i)):f.util.textContent(t,n):f.util.textContent(t,p),r._treeRefresh(a,o)):(n=r._cellValue(a,o),f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i)):f.util.textContent(t,n),r._treeRefresh(a,o)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();if("msie"!==f.$.browser.name?f.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),r._removeEditColId(this.attr("colid")),r.attr("useall")||r.attr("usetreeall")){var _=!0!==r.attr("hideedit");r._setAriaLabelEx(t,a,o,_)}return d}catch(t){return f.QCELL.log("err","QCELL.Input.prototype._hide",t.message),!1}},f.QCELL.Input.prototype.onKeyDown=function(t){var e,i,r=this.attr("element"),s=this.attr("parent"),a=s._getCellDOM(this.attr("row"),this.attr("col")),o=s._getColElement(this.attr("col")).attr("mask"),n=t.keyCode,l=this.attr("row"),c=this.attr("col"),h=r.value,d=this;if(!(n!==f.def.key.UP&&n!==f.def.key.DOWN||!0!==d.attr("useenterkeytonext")||n!==f.def.key.UP&&n!==f.def.key.DOWN))return f._.isObject(o)&&(null!==(h=u.unmask(h,{alias:o.alias}))&&"null"!==h||(h="")),i=(e=0!==d.attr("delaytime")&&null!==d.attr("delaytime")?d.attr("delaytime"):200)>=200?100:0,e=200,setTimeout((function(){d.attr("insertdata",[h],"array"),d._hide(a,t.type)}),i),setTimeout((function(){var t=void 0===s._getCellDOM(l+1,c)||null===s._getCellDOM(l+1,c);!0===d.attr("movescroll")&&(t=!0);var e=l+1;n===f.def.key.UP&&(e=l-1),s.editCell(e,c,t)}),e),t.preventDefault(),void t.stopPropagation();this.attr("bkeycode",n,"number"),n===f.def.key.ENTER||n===f.def.key.TAB?(f._.isObject(o)&&(null!==(h=u.unmask(h,{alias:o.alias}))&&"null"!==h||(h="")),i=(e=0!==d.attr("delaytime")&&null!==d.attr("delaytime")?d.attr("delaytime"):200)>=200?100:0,setTimeout((function(){d.attr("insertdata",[h],"array"),d._hide(a,t.type)}),i),!0===s.attr("useenterkeytonextcol")&&n===f.def.key.ENTER?s._moveNextCell(l,c,e):!0===d.attr("useenterkeytonext")&&n===f.def.key.ENTER&&setTimeout((function(){var t=void 0===s._getCellDOM(l+1,c)||null===s._getCellDOM(l+1,c);!0===d.attr("movescroll")&&(t=!0),s.editCell(l+1,c,t)}),e),t.stopPropagation(),t.preventDefault()):n===f.def.key.ESC?this._hide(a,t.type):(n>=48&&n<=90||n>=96&&n<=111||229===n)&&(!f._.isNull(this.attr("maxbyte"))&&!f._.isUndefined(this.attr("maxbyte"))&&f.util.strbyte.getByteLength(h)>this.attr("maxbyte")?r.value=h.slice(0,-1):!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&h.length>this.attr("maxlength")&&(r.value=h.slice(0,this.attr("maxlength"))))},f.QCELL.Input.prototype.onKeyPress=function(t){var e=this.attr("element"),i=this.attr("parent")._getColElement(this.attr("col")).attr("limit");if(!1===f._.isUndefined(i)&&f._.isObject(i)&&"other"===i.type){var r="",s=0;if(void 0!==i.exclude){var a=i.exclude;for(r=e.value,s=0;s<r.length;s++)if(-1!==a.indexOf(r.charAt(s))){e.value=r.substring(0,s)+r.substring(s+1,r.length);break}}}},f.QCELL.Input.prototype.onKeyUp=function(t){if(-1!==this.attr("col")){var e=this.attr("element"),i=this.attr("parent"),r=i._getCellDOM(this.attr("row"),this.attr("col")),s=i._getColElement(this.attr("col")).attr("limit"),a=i._getColElement(this.attr("col")).attr("numrange"),o=t.keyCode;if(!1===f._.isUndefined(s)&&f._.isObject(s)){var n=e.value;if("string"===s.type)e.value=n.replace(/[0-9]/gi,"");else if("number"===s.type)e.value=n.replace(/[^0-9\.\,\-]/gi,"");else if("other"===s.type){var l="",c=0;if(void 0!==s.exclude){var h=s.exclude;for(l=e.value,c=0;c<l.length;c++)if(-1!==h.indexOf(l.charAt(c))){e.value=l.substring(0,c)+l.substring(c+1,l.length);break}}else if(void 0!==s.expreg){var u=s.expreg;for(l=e.value,c=0;c<l.length;c++)if(-1===u.indexOf(l.charAt(c))){e.value=l.substring(0,c)+l.substring(c+1,l.length);break}}}}if(o>=48&&o<=90||o>=96&&o<=111||229===o)if(!f._.isNull(this.attr("maxbyte"))&&!f._.isUndefined(this.attr("maxbyte"))&&f.util.strbyte.getByteLength(e.value)>this.attr("maxbyte"))e.value=e.value.slice(0,-1);else if(!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&e.value.length>this.attr("maxlength")){e.value=e.value.slice(0,this.attr("maxlength"));var d=this;setTimeout((function(){d.attr("ismp",!0,"boolean"),d.attr("insertdata",[n],"array"),d._hide(r,t.type),d.attr("ismp",!1,"boolean")}),0),t.stopPropagation(),t.preventDefault()}if(!1===f._.isUndefined(a)&&f._.isString(a)){var p=Number(a.split(":")[0]),g=Number(a.split(":")[1]);!1===/^[+-]?\d*(\.?\d*)$/.test(e.value)?e.value="":e.value<p?e.value=p:e.value>g&&(e.value=g)}}},f.QCELL.Input.prototype.onBlur=function(t){!0!==this.attr("ismp")&&this.attr("parent")._onScrollHideEditCellsDOM()},f.QCELL.Input.prototype.onPaste=function(t){var e=this.attr("element"),i=this.attr("parent"),r=this,s=t.originalEvent,a="";s.clipboardData&&s.clipboardData.getData?a=s.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData?a=t.clipboardData.getData("text/plain"):window.clipboardData&&window.clipboardData.getData&&(a=window.clipboardData.getData("Text"));var o=void 0===e.value||null===e.value?"":e.value;if(o+=a,!f._.isNull(this.attr("maxbyte"))&&!f._.isUndefined(this.attr("maxbyte"))&&f.util.strbyte.getByteLength(o)>this.attr("maxbyte")?setTimeout((function(){e.value=f.util.strbyte.cutByteLength(o,r.attr("maxbyte"))})):!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&o.length>this.attr("maxlength")&&setTimeout((function(){e.value=o.slice(0,r.attr("maxlength"))})),"number"===i._getColDataType(this.attr("col"))){var n=o;n=n.replaceAll(",",""),isNaN(Number(n))&&(e.value=0,t.stopPropagation(),t.preventDefault())}},f.QCELL.Selectmenu=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Selectmenu,f.QCELL.ColElement),f.QCELL.Selectmenu.prototype._initTag=function(){this.tag("QBOX.QCELL.Selectmenu")},f.QCELL.Selectmenu.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("input",t.options.input,"array"),this.attr("position",{},"object"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("itemheight",-1,"number"),this.attr("itemcount",t.options.itemcount,"number"),this.attr("selectedEnd",t.options.selectedEnd,"boolean"),this.attr("selectclickopen",t.options.selectclickopen,"boolean"),this.attr("inputCallback",t.options.inputCallback,"function"),this.attr("direction",t.options.direction,"string")},f.QCELL.Selectmenu.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")+"_wrap"),t.className+=f.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE,this._setElement(t),this._calculateItemHeight(),!0}catch(t){return f.QCELL.log("err","QCELL.Selectmenu.prototype._createElement",t.message),!1}},f.QCELL.Selectmenu.prototype._initEvent=function(){var t=this;f.$(this.attr("element")).on("keydown keyup",{target:this},(function(e){switch(e.keyCode){case f.def.key.ESC:t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault();break;case f.def.key.LEFT:case f.def.key.RIGHT:case f.def.key.TAB:t._defaultSelect(),t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault();break;case f.def.key.ENTER:if(!0===t.attr("showkey"))return void t.attr("showkey",!1,"boolean");!0===t.attr("isopen")?f.$(t.attr("element")).selectmenu("open"):(t._defaultSelect(),t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault());break;default:return!0}}))},f.QCELL.Selectmenu.prototype._getDataArray=function(){var t;if(f._.isFunction(this.attr("inputCallback"))){var e=this.attr("row"),i=this.attr("col");return-1===e||-1===i||void 0===(t=this.attr("inputCallback")(e,i,this.attr("parent")))?[]:t}return this.attr("input")},f.QCELL.Selectmenu.prototype._defaultSelect=function(t){var e=this._getDataArray();if(void 0!==e.length&&e.length&&void 0===this.attr("insertdata")[0]){var i=e[0].value;this.attr("insertdata",[i],"array")}},f.QCELL.Selectmenu.prototype._defaultAction=function(t){},f.QCELL.Selectmenu.prototype._show=function(t,e){try{var i,r=this.attr("parent"),s=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col")),o=r._cellValue(s,a),n=f.$(t).empty(),l=r._getQCellCol(a).attr("cellinvisible")[s],c=this;if(this.attr("insertdata",[o],"array"),this.attr("row",s,"number"),this.attr("col",a,"number"),this._calculateItemHeight(),this._initSelect(),i=this.attr("element"),n.append(i),i.focus(),this.attr("isopen",!1,"boolean"),f.QCELL.config.htmlselectmenu)i.getElementsByTagName("select")[0].value=this.attr("parent")._cellValue(s,a),f.$(i.getElementsByTagName("select")).css("width",parseInt(n.css("width"))-4),f.$(i.getElementsByTagName("select")).css("height",parseInt(n.css("height"))-4),f.$(i.getElementsByTagName("select")).bind("change",(function(t){o=t.target.value;for(var e=c._getDataArray(),s=0;s<e.length&&e[s].value!==o;s++)if(e[s].value+""===o){o=Number(o);break}c.attr("insertdata",[o],"array"),f.$(i).trigger("selected",[c.attr("row"),c.attr("col"),o]),c.attr("selectedEnd")&&c._hide(r._getCellDOM(c.attr("row"),c.attr("col")),"selected")}));else{f.$(i.getElementsByTagName("select")).selectmenu({width:parseInt(n.css("width"))-4,position:this._calculatePosition(t),close:function(t,e){c.attr("isopen",!1,"boolean")},open:function(t,e){c.attr("isopen",!0,"boolean")},select:function(t,e){if(t.keyCode!==f.def.key.LEFT&&t.keyCode!==f.def.key.RIGHT){o=e.item.value;for(var s=c._getDataArray(),a=0;a<s.length&&s[a].value!==o;a++)if(s[a].value+""===o){o=Number(o);break}c.attr("insertdata",[o],"array"),f.$(i).trigger("selected",[c.attr("row"),c.attr("col"),e]),c.attr("selectedEnd")&&c._hide(r._getCellDOM(c.attr("row"),c.attr("col")),"selected")}}}),c.attr("selectclickopen")&&setTimeout((function(){f.$(i.getElementsByTagName("select")).selectmenu("open")}));var h="#"+this.attr("id")+"-button";f.$(h).focus(),f.$(h).css("margin-bottom","3px"),f._.isUndefined(this.attr("itemcount"))||f.$(i.getElementsByTagName("select")).selectmenu("menuWidget").css("height",this.attr("itemheight"))}var u=t.getElementsByClassName("rt-qc-ui-selectmenu-text");if(u.length>0){var d=u[0],p=r._cellValue(r.getRows("header")-1,a),g=this._getDataLabel(s,a);d.setAttribute("aria-label",s+"행 "+p+"열 "+g)}return this.attr("visible",!0,"boolean"),r._addEditColId(this.attr("colid")),l&&r._setInitCellInvisible(s,a),!0}catch(t){return f.QCELL.log("err","QCELL.Selectmenu.prototype._show",t.message),!1}},f.QCELL.Selectmenu.prototype._hide=function(t,e){try{if(null===t)return;var i=this.attr("parent"),r=this.attr("element"),s=this.attr("row"),a=this.attr("col"),o=this.attr("insertdata")[0];if(f.QCELL.config.htmlselectmenu||f.$(r.getElementsByTagName("select")).selectmenu("destroy"),f.$(r).remove().html(""),t.hasChildNodes())for(var n=0;n<t.childNodes.length;n++){var l=t.childNodes[n];f.$(l).hasClass(f.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE)&&t.removeChild(l)}if(o!==i._cellValue(s,a)?("none"===i.attr("merge").data||f._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(a)?(i._cellValue(s,a,o),this._showDataLabel(t,s,a,o)):this._changeMergeCellValue(s,a,o,void 0),i._processValueChanged(s,a)):(f.util.textContent(t,o),this._showDataLabel(t,s,a,o)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();if("msie"!==f.$.browser.name?f.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),i._removeEditColId(this.attr("colid")),i.attr("useall")||i.attr("usetreeall")){var c=!0!==i.attr("hideedit");i._setAriaLabelEx(t,s,a,c),f.util.textContent(t,o),this._showDataLabel(t,s,a,o)}var h=t.textContent,u=this;return setTimeout((function(){var e=i._getCellDOM(s,a);null!=e&&e.textContent!==h&&u._showDataLabel(t,s,a,void 0===o?"":o)}),100),!0}catch(t){return f.QCELL.log("err","QCELL.Selectmenu.prototype._hide",t.message),!1}},f.QCELL.Selectmenu.prototype._initSelect=function(){try{var t,e,i=f.$(this.attr("element")).empty(),r=document.createElement("select"),s=null;r.setAttribute("id",this.attr("id")),r.className=f.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE;for(var a=this._getDataArray(),o=0;o<a.length;o++)s=document.createElement("option"),t=a[o].label,e=a[o].value,s.setAttribute("value",e),e===this.attr("insertdata")[0]&&s.setAttribute("selected","selected"),s.innerHTML=t,f.$(r).append(s),s=null;return i.append(r),this._setElement(i[0]),!0}catch(t){return f.QCELL.log("err","QCELL.Selectmenu.prototype._initSelect",t.message),!1}},f.QCELL.Selectmenu.prototype._calculateItemHeight=function(){var t=0,e=0,i=this._getDataArray();if(void 0!==i){if(!f._.isUndefined(this.attr("itemcount"))&&this.attr("itemcount")<i.length)for(e=0;e<this.attr("itemcount");e++)"mozilla"===f.$.browser.name||"msie"===f.$.browser.name&&8===f.$.browser.versionNumber?t+=21:"msie"===f.$.browser.name&&8!==f.$.browser.versionNumber?t+=20:t+=22;else for(e=0;e<i.length;e++)"mozilla"===f.$.browser.name||"msie"===f.$.browser.name&&8===f.$.browser.versionNumber?t+=21:"msie"===f.$.browser.name&&8!==f.$.browser.versionNumber?t+=20:t+=22;this.attr("itemheight",t,"number")}else this.attr("itemheight",t,"number")},f.QCELL.Selectmenu.prototype._calculatePosition=function(t){var e=this.attr("parent"),i=parseInt(f.$(t).css("height")),r=parseInt(f.$(t).css("top"))+e.attr("layoutsize").colheader.offsetHeight;return"down"===this.attr("direction")?{my:"left top",at:"left bottom"}:"up"===this.attr("direction")||e.attr("layoutsize").root.offsetHeight<r+i+this.attr("itemheight")?{my:"left bottom",at:"left top"}:{my:"left top",at:"left bottom"}},f.QCELL.Selectmenu.prototype._showDataLabel=function(t,e,i,r){try{this.attr("row",e,"number"),this.attr("col",i,"number");var s=this.attr("parent"),a=this._getDataArray(),o=s.getRowData(e);if(!0===o.rt_qc_footer||!0===o.rt_qc_header)return f.util.textContent(t,r),void s._setAriaLabel(t,e,i,r);if(s._isBottomPanel(t))return void(void 0===r?f.util.textContent(t,""):f.util.textContent(t,r));if(s._showDisableText(t,e,i))return;void 0===r&&(r="");var n="";if(!f._.isUndefined(a)&&!f._.isNull(a))for(var l=0;l<a.length;l++){if(r===a[l].value){f.util.textContent(t,a[l].label),n=a[l].label;break}l===a.length-1&&f.util.textContent(t,"")}return s._setAriaLabel(t,e,i,n),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL.Selectmenu._showDataLabel",t.message),!1}},f.QCELL.Selectmenu.prototype._getDataLabel=function(t,e){try{this.attr("row",t,"number"),this.attr("col",e,"number");var i=this.attr("parent").getCellData(t,e),r=this._getDataArray();if(!f._.isUndefined(r)&&!f._.isNull(r))for(var s=0;s<r.length;s++){if(i===r[s].value)return r[s].label;if(s===r.length-1)return""}return""}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL.Selectmenu._getDataLabel",t.message),""}},f.QCELL.Textarea=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Textarea,f.QCELL.ColElement),f.QCELL.Textarea.prototype._initTag=function(){this.tag("QBOX.QCELL.Textarea")},f.QCELL.Textarea.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata","","string"),this.attr("width",t.options.textareawidth,"string"),this.attr("height","150px","string"),this.attr("maxlength",t.options.maxlength,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("limit",t.options.limit,"object"),this.attr("exclude",t.options.exclude,"array"),this.attr("validator",t.options.validator,"function"),this.attr("bkeycode",void 0,"number"),t.options.inputclass=void 0===t.options.inputclass?"":t.options.inputclass,f._.isString(t.options.inputclass)||(t.options.inputclass=""),this.attr("inputclass",t.options.inputclass,"string"),this.attr("placeholder",t.options.placeholder,"string")},f.QCELL.Textarea.prototype._createElement=function(){try{var t=document.createElement("textarea");return t.setAttribute("id",this.attr("id")),f.$(t).attr("autocomplete","off"),t.className+=f.QCELL.def.css.TYPE_TEXTAREA_TEXT_STYLE+" "+this.attr("inputclass"),f.$(t).css({width:this.attr("width"),height:this.attr("height")}),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Textarea.prototype._createElement",t.message),!1}},f.QCELL.Textarea.prototype._initEvent=function(){f.$(this.attr("element")).on("keydown keyup keypress blur",{target:this},f.st.eventProcess)},f.QCELL.Textarea.prototype._defaultAction=function(t){var e=t.keyCode,i=this.attr("bkeycode");switch(t.type){case"keydown":this.onKeyDown(t);break;case"keyup":this.onKeyUp(t);break;case"blur":if(void 0===e&&void 0===i)break;if(i===f.def.key.ENTER||i===f.def.key.TAB||i===f.def.key.ESC)break;this.onBlur(t);break;case"keypress":this.onKeyPress(t)}},f.QCELL.Textarea.prototype._show=function(t,e){try{var i,r,s=this.attr("parent"),a=this.attr("element"),o=parseInt(t.getAttribute("data-row")),n=parseInt(t.getAttribute("data-col")),l=void 0===s._cellValue(o,n)?"":s._cellValue(o,n),c=f.$(t).empty(),h=s.attr("elementpool").get("$container"),u=s._getQCellCol(n).attr("cellinvisible")[o];if(s._isValidEditColId(this.attr("colid")))return;return a.value=l,void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(a.placeholder=this.attr("placeholder")),f._.isUndefined(this.attr("width"))&&(f.$(a).css("width",c.css("width")),this.attr("width",f.$(a).css("width"),"string")),h.append(a),a.focus(),a.select(),i=this._calculateTop(a,t),r=this._calculateLeft(a,t),f.$(a).css({left:r,top:i}),this.attr("row",o,"number"),this.attr("col",n,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",l,"string"),s._addEditColId(this.attr("colid")),u&&s._setInitCellInvisible(o,n),!0}catch(t){return f.QCELL.log("err","QCELL.Textarea.prototype._show",t.message),!1}},f.QCELL.Textarea.prototype._hide=function(t,e){try{if(null===t)return;var i=this.attr("parent"),r=this.attr("element"),s=this.attr("row"),a=this.attr("col"),o=r.value,n=this.attr("validator");"keydown"===e&&(o=this.attr("insertdata")),!f._.isNull(this.attr("maxbyte"))&&!f._.isUndefined(this.attr("maxbyte"))&&f.util.strbyte.getByteLength(o)>this.attr("maxbyte")?o=f.util.strbyte.cutByteLength(o,this.attr("maxbyte")):!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&o.length>this.attr("maxlength")&&(o=o.slice(0,this.attr("maxlength"))),void 0!==this.attr("exclude")&&f._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{f._.isString(t)&&(o=o.split(t).join(""))}catch(t){f.QCELL.log("err","QCELL.Textarea.prototype._hide",t.message)}}));var l=r.parentElement;setTimeout((function(){try{var t=0;if(void 0===l)return;if(null===l.childNodes)return;for(t=0;t<l.childNodes.length;t++)if(r===l.childNodes[t]){if(l.removeChild(r),null===l.childNodes)return;break}}catch(t){return}}),0);var c=!0;if(n&&(c=n(s,a,o)),!0===c?o!==i._cellValue(s,a)?("none"===i.attr("merge").data||f._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(a)?i._cellValue(s,a,o):this._changeMergeCellValue(s,a,o,void 0),i._processValueChanged(s,a)):!1===f._.isNull(t)&&f.util.textContent(t,o):(o=i._cellValue(s,a),!1===f._.isNull(t)&&f.util.textContent(t,o)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber){var h=i.attr("elementpool");h.get("$container").focus(),h=null}if("msie"!==f.$.browser.name?f.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata","","string"),this.attr("showkey",!1,"boolean"),i._removeEditColId(this.attr("colid")),i.attr("useall")||i.attr("usetreeall")){var u=!0!==i.attr("hideedit");i._setAriaLabelEx(t,s,a,u)}return!0}catch(t){return f.QCELL.log("err","QCELL.Textarea.prototype._hide",t.message),!1}},f.QCELL.Textarea.prototype._calculateTop=function(t,e){var i=this.attr("parent"),r=parseInt(f.$(e).css("height")),s=parseFloat(f.$(t).css("height")),a=parseInt(f.$(e).css("top"))+i.attr("layoutsize").colheader.offsetHeight;return i.attr("layoutsize").root.offsetHeight<a+s&&(a-=s-r),a},f.QCELL.Textarea.prototype._calculateLeft=function(t,e){var i=this.attr("parent"),r=parseInt(f.$(e).css("width")),s=parseFloat(f.$(t).css("width")),a=parseInt(f.$(e).css("left"))+i.attr("layoutsize").rowheader.offsetWidth;return i.attr("layoutsize").root.offsetWidth<a+s&&(a-=s-r),a},f.QCELL.Textarea.prototype.onKeyDown=function(t){var e=this.attr("element"),i=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),r=t.keyCode,s=e.value;if(this.attr("bkeycode",r,"number"),!1===t.altKey)if(r===f.def.key.ENTER||r===f.def.key.TAB){var a=this;setTimeout((function(){a.attr("insertdata",s,"string"),a._hide(i,t.type)}),100),t.stopPropagation(),t.preventDefault()}else r===f.def.key.ESC?this._hide(i,t.type):(r>=48&&r<=90||r>=96&&r<=111||229===r)&&!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&s.length>this.attr("maxlength")&&(e.value=s.slice(0,-1));else r===f.def.key.ENTER&&(e.value+="\r")},f.QCELL.Textarea.prototype.onKeyPress=function(t){var e=this.attr("element"),i=this.attr("parent")._getColElement(this.attr("col")).attr("limit");if(!1===f._.isUndefined(i)&&f._.isObject(i)&&"other"===i.type){var r="",s=0;if(void 0!==i.exclude){var a=i.exclude;for(r=e.value,s=0;s<r.length;s++)if(-1!==a.indexOf(r.charAt(s))){e.value=r.substring(0,s)+r.substring(s+1,r.length);break}}}},f.QCELL.Textarea.prototype.onKeyUp=function(t){var e=this.attr("element"),i=this.attr("parent"),r=i._getCellDOM(this.attr("row"),this.attr("col")),s=i._getColElement(this.attr("col")).attr("limit"),a=t.keyCode;if(!1===f._.isUndefined(s)&&f._.isObject(s))if("string"===s.type)e.value=e.value.replace(/[0-9]/gi,"");else if("number"===s.type)e.value=e.value.replace(/[^0-9\.\,\-]/gi,"");else if("other"===s.type){var o="",n=0;if(void 0!==s.exclude){var l=s.exclude;for(o=e.value,n=0;n<o.length;n++)if(-1!==l.indexOf(o.charAt(n))){e.value=o.substring(0,n)+o.substring(n+1,o.length);break}}else if(void 0!==s.expreg){var c=s.expreg;for(o=e.value,n=0;n<o.length;n++)if(-1===c.indexOf(o.charAt(n))){e.value=o.substring(0,n)+o.substring(n+1,o.length);break}}}if((a>=48&&a<=90||a>=96&&a<=111||229===a)&&!f._.isNull(this.attr("maxlength"))&&!f._.isUndefined(this.attr("maxlength"))&&e.value.length>this.attr("maxlength")){e.value=e.value.slice(0,this.attr("maxlength"));var h=this;setTimeout((function(){h._hide(r,t.type)}),0)}},f.QCELL.Textarea.prototype.onBlur=function(t){this.attr("parent")._onScrollHideEditCellsDOM()},f.QCELL.Chart=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Chart,f.QCELL.ColElement),f.QCELL.Chart.prototype._initTag=function(){this.tag("QBOX.QCELL.Chart")},f.QCELL.Chart.prototype._initAttrs=function(t){if(f.QCELL.ColElement.prototype._initAttrs.call(this,t),void 0!==t.options.chart){var e=void 0===t.options.chart.datatype?"data":t.options.chart.datatype;e="data"===e?"data":"key"===e?"key":"data";var i=void 0===t.options.chart.type?"line":t.options.chart.type;switch(i){case"line":case"bar":case"tristate":case"discrete":case"bullet":case"pie":case"box":break;default:i="line"}var r=void 0===t.options.chart.keys?[]:t.options.chart.keys;this.attr("dataType",e,"string"),this.attr("chartType",i,"string"),this.attr("keys",r,"array"),this.attr("customoption",t.options.chart.customoption,"function"),this.attr("chartClicked",t.options.chart.chartClicked,"function"),this.attr("option",t.options.chart.option,"object")}},f.QCELL.Chart.prototype._show=function(t,e,i){try{var r,s=this.attr("parent"),a=s._cellValue(e,i),o=s.attr("currentdata"),n=this,l=s._getColChart(i),c=this.attr("option"),h=this.attr("keys"),u=s._getQCellCol(i).attr("cellinvisible")[e],d=s.attr("headerrows");if(s._isBottomPanel(t))return void(void 0===a?f.util.textContent(t,""):f.util.textContent(t,a));if("data"===this.attr("dataType"))r=a;else{r=[];for(var p=0;p<h.length;p++)r.push(o[e-d][h[p]])}if(void 0===r||0===r.length)return;null!==t.firstChild&&t.removeChild(t.firstChild);var g=document.createElement("span");g.style.textAlign="center",t.appendChild(g);var _={height:(s._getRowHeight(e)-10).toString(),width:(s._getColWidth(i)-10).toString(),type:this.attr("chartType")};if("bar"===this.attr("chartType")||"tristate"===this.attr("chartType")?_.barWidth=s._getColWidth(i)/(r.length+1):"pie"===this.attr("chartType")?_.height=s._getRowHeight(e).toString():"discrete"===this.attr("chartType")&&(_.width=s._getColWidth(i).toString()),null!==c)for(var C in c)_[C]=c[C];return f._.isFunction(this.attr("customoption"))&&(_=l.customoption(s,e,i,r,_)),"bar"!==_.type&&"tristate"!==_.type||void 0!==_.barWidth||(_.barWidth=s._getColWidth(i)/(r.length+1)),"pie"===_.type&&delete _.width,setTimeout((function(){f.$(g).sparkline(r,_),f.$(g).bind("sparklineClick",(function(t){s._clickCell(e,i),f._.isFunction(n.attr("customoption"))&&l.chartClicked(s,e,i,r,_)})),null!==g.firstChild&&(g.firstChild.style.verticalAlign="middle","pie"===_.type&&(g.firstChild.style.display="block",g.firstChild.style.margin="auto"))}),0),u&&s._setInitCellInvisible(e,i),!0}catch(t){return f.QCELL.log("err","QCELL.Chart._show",t.message),!1}},f.QCELL.Multicheckbox=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Multicheckbox,f.QCELL.ColElement),f.QCELL.Multicheckbox.prototype._initTag=function(){this.tag("QBOX.QCELL.Multicheckbox")},f.QCELL.Multicheckbox.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("input",t.options.input,"array"),this.attr("position",{},"object"),this.attr("width",-1,"number"),this.attr("tabindex",-1,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("likeradio",void 0!==t.options.likeradio&&t.options.likeradio,"boolean")},f.QCELL.Multicheckbox.prototype._getDataArray=function(){return this.attr("input")},f.QCELL.Multicheckbox.prototype._defaultSelect=function(t){var e=this._getDataArray();if(void 0!==e.length&&e.length&&void 0===this.attr("insertdata")[0]){var i=e[0].value;this.attr("insertdata",[i],"array")}},f.QCELL.Multicheckbox.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")+"_wrap"),t.setAttribute("data-row",this.attr("row")),t.setAttribute("data-col",this.attr("col")),t.className+=f.QCELL.def.css.TYPE_MULTICHECKBOX_WRAP_STYLE,this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Multicheckbox.prototype._createElement",t.message),!1}},f.QCELL.Multicheckbox.prototype._initEvent=function(){f.$(this.attr("element")).on("click keyup focusout",{target:this},f.st.eventProcess)},f.QCELL.Multicheckbox.prototype._defaultAction=function(t){switch(t.type){case"click":this.onClick(t);break;case"keyup":this.onKeyUp(t);break;case"focusout":this.onFocusOut(t)}},f.QCELL.Multicheckbox.prototype._initMulticheckbox=function(t,e,i,r){try{var s=f.$(this.attr("element")).empty(),a=document.createElement("span"),o=this.attr("input"),n=f.$(t).empty(),l=0;this.attr("insertdata",r,"array"),s.addClass(f.QCELL.def.css.CELL),s.addClass(f.QCELL.def.css.CELL_VIEWPORT),s.addClass(f.QCELL.def.css.CELL_FOCUS),s.addClass(f.QCELL.def.css.CELL_SELECT);for(var c=0;c<o.length;c++){var h=document.createElement("input"),u=document.createElement("label"),d=!1;if(h.setAttribute("type","checkbox"),h.setAttribute("name",this.attr("id")),h.setAttribute("id",this.attr("id")+"-"+c),h.setAttribute("data-row",e),h.setAttribute("data-col",i),h.className+=f.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE,this.attr("likeradio")&&(h.className+=" "+f.QCELL.def.css.TYPE_RADIO_STYLE),u.setAttribute("for",this.attr("id")+"-"+c),u.innerText=o[c].label,l+=o[c].label.length,!f._.isUndefined(r))for(var p=0;p<r.length;p++)if(o[c].value===r[p]){f.$(h).prop("checked",!0),this.attr("likeradio")&&d&&f.$(h).prop("checked",!1),d=!0;break}f.$(a).append(h),f.$(a).append(u)}a.style.height=n.css("height"),a.style.lineHeight=n.css("height"),s[0].setAttribute("data-row",e),s[0].setAttribute("data-col",i),s.append(a),this.attr("width",25*l<100?100:25*l,"number")}catch(t){return f.QCELL.log("err","QCELL.Multicheckbox.prototype._initMulticheckbox",t.message),!1}},f.QCELL.Multicheckbox.prototype._show=function(t,e,i){try{var r=this.attr("parent"),s=this.attr("element"),a=r._cellValue(e,i),o=f.$(t).empty(),n=r.attr("elementpool").get("$viewportinner"),l=r._getQCellCol(i).attr("cellinvisible")[e];return this._initMulticheckbox(t,e,i,a),f.$(s).css({width:this.attr("width"),height:o.css("height")}),this._adjustPosition(s,o),n.append(s),f.$(s).find("."+f.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE)[0].focus(),this.attr("row",e,"number"),this.attr("col",i,"number"),this.attr("insertdata",a,"array"),this.attr("visible",!0,"boolean"),r._addEditColId(this.attr("colid")),l&&r._setInitCellInvisible(e,i),!0}catch(t){return f.QCELL.log("err","QCELL.Multicheckbox._show",t.message),!1}},f.QCELL.Multicheckbox.prototype._hide=function(t,e){try{var i=this.attr("parent"),r=this.attr("element"),s=this.attr("row"),a=this.attr("col"),o=this.attr("insertdata");if("esc"===e&&(o=this.attr("insertdata")),f.$(r).detach(),o!==i._cellValue(s,a)?("none"===i.attr("merge").data||f._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(a)?(i._cellValue(s,a,o),this._showDataLabel(t,s,a,o)):this._changeMergeCellValue(s,a,o,void 0),i._updateIdx("valuechanged",s,a),i._trigger("valuechanged")):(f.util.textContent(t,o),this._showDataLabel(t,s,a,o)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();"msie"!==f.$.browser.name?f.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),i._removeEditColId(this.attr("colid"))}catch(t){return f.QCELL.log("err","QCELL.Multicheckbox.prototype._hide",t.message),!1}},f.QCELL.Multicheckbox.prototype._adjustPosition=function(t,e){var i=this.attr("parent"),r=parseInt(f.$(t).css("width")),s=parseInt(f.$(t).css("height")),a=parseInt(e.css("left")),o=parseInt(e.css("top")),n=i.attr("layoutsize").root.offsetHeight;a+r>i.attr("layoutsize").root.offsetWidth?f.$(t).css("right",0):f.$(t).css("left",a),o+s>n?f.$(t).css("bottom",0):f.$(t).css("top",o)},f.QCELL.Multicheckbox.prototype._showDataLabel=function(t,e,i,r){try{this.attr("row",e,"number"),this.attr("col",i,"number");var s=this.attr("parent"),a=s.getRowData(e);if(!0===a.rt_qc_footer||!0===a.rt_qc_header)return f.util.textContent(t,r),void s._setAriaLabel(t,e,i,r);if(s._isBottomPanel(t))return void(void 0===r?f.util.textContent(t,""):f.util.textContent(t,r));if(s._showDisableText(t,e,i))return;var o=this._getDataArray(),n=[],l="";if(!f._.isUndefined(o)&&!f._.isNull(o)){if(!f._.isUndefined(r)){for(var c=0;c<r.length;c++)for(var h=0;h<o.length;h++){if(r[c]===o[h].value){n[c]=o[h].label;break}h===o.length-1&&(n[c]="")}for(var u=0;u<n.length;u++)0===u?l+=n[u]:""!==n[u-1]&&(l+=", "+n[u])}f.util.textContent(t,l)}return!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL.Multicheckbox._showDataLabel",t.message),!1}},f.QCELL.Multicheckbox.prototype._setMultiCheckboxCellData=function(t){var e,i=this.attr("parent"),r=Number(t.getAttribute("data-col")),s=i._getColElement(r),a=[];null===s&&(r=Number(t.getAttribute("data-col"))),s=i._getColElement(r),e=s.attr("input"),f.$(t).is("span")||f.$(t).is("div")||(t=t.parentNode),f.$(t).find('input[type="checkbox"]').each((function(t){this.checked&&a.push(e[t].value)})),this.attr("insertdata",a,"array")},f.QCELL.Multicheckbox.prototype._setMultiCheckboxClick=function(t,e){var i=this.attr("likeradio"),r=t.name,s=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col"));this.attr("row",s,"number"),this.attr("col",a,"number"),i&&(f.$('input[type="checkbox"][name="'+r+'"]').prop("checked",!1),f.$(t).prop("checked",!0))},f.QCELL.Multicheckbox.prototype.onFocusOut=function(t){var e=this.attr("element"),i=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),r=t.relatedTarget;if(f._.isElement(r)&&!i.parentNode.isSameNode(r)){var s=Number(r.getAttribute("data-row")),a=Number(r.getAttribute("data-col"));0===s&&0===a&&(this._setMultiCheckboxCellData(e),this._hide(i,t.type),i.focus())}else null===r&&this.attr("isopen")&&(this.attr("isopen",!1,"boolean"),this._hide(i,"esc"))},f.QCELL.Multicheckbox.prototype.onKeyUp=function(t){var e=this.attr("parent"),i=e._getCellDOM(this.attr("row"),this.attr("col")),r=t.keyCode,s=this.attr("isopen");if(null===i){var a=parseInt(t.target.getAttribute("data-row")),o=parseInt(t.target.getAttribute("data-col"));i=e._getCellDOM(a,o),this.attr("row",a,"number"),this.attr("col",o,"number")}switch(r){case f.def.key.ENTER:!1===s?this.attr("isopen",!0,"boolean"):(this.attr("isopen",!1,"boolean"),this._setMultiCheckboxCellData(t.target),this._hide(i,t.type));break;case f.def.key.ESC:this.attr("isopen",!1,"boolean"),this._hide(i,"esc");break;case f.def.key.TAB:!1===s&&this.attr("isopen",!0,"boolean")}},f.QCELL.Multicheckbox.prototype.onClick=function(t){var e=t.target,i=Number(e.parentNode.getAttribute("data-row")),r=Number(e.parentNode.getAttribute("data-col")),s=this.attr("parent"),a=this;if(f.util.hasClass(e,f.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE)||f.$(e).is("label"))this.attr("isopen",!0,"boolean"),this._setMultiCheckboxClick(e,e.checked);else{i=Number(e.getAttribute("data-row")),r=Number(e.getAttribute("data-col"));var o=s._getCellDOM(i,r);f.$(e.parentNode).off("keyup").on("keyup",(function(t){switch(t.keyCode){case f.def.key.ENTER:case f.def.key.ESC:a._hide(o,t.type)}}))}},f.QCELL.Number=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Number,f.QCELL.Input),f.QCELL.Number.prototype._initTag=function(){this.tag("QBOX.QCELL.Number")},f.QCELL.Number.prototype._initAttrs=function(t){f.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("min",t.options.min,"number"),this.attr("max",t.options.max,"number"),this.attr("step",t.options.step,"number")},f.QCELL.Number.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),t.setAttribute("type","number"),t.className+=f.QCELL.def.css.TYPE_NUMBER_TEXT_STYLE,void 0!==this.attr("max")&&null!==this.attr("max")&&t.setAttribute("max",this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&t.setAttribute("min",this.attr("min")),void 0!==this.attr("step")&&null!==this.attr("step")&&t.setAttribute("step",this.attr("step")),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Number.prototype._createElement",t.message),!1}},f.QCELL.Number.prototype._show=function(t,e){try{var i=this.attr("parent"),r=this.attr("element"),s=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col")),o=void 0===i._cellValue(s,a)?"":i._cellValue(s,a),n=f.$(t).empty(),l=i.attr("elementpool").get("$viewportinner"),c=i._getQCellCol(a).attr("cellinvisible")[s];return isNaN(o)&&(o=0),void 0!==this.attr("max")&&null!==this.attr("max")&&o>this.attr("max")&&(o=this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&o<this.attr("min")&&(o=this.attr("min")),f.$(r).val(o),r.value=o,i._showMask(a,r),f.$(r).css({width:n.css("width"),height:n.css("height"),left:n.css("left"),top:n.css("top")}),l.append(r),r.focus(),r.select(),this.attr("row",s,"number"),this.attr("col",a,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[o],"array"),i._addEditColId(this.attr("colid")),c&&i._setInitCellInvisible(s,a),!0}catch(t){return f.QCELL.log("err","QCELL.Number.prototype._show",t.message),!1}},f.QCELL.Number.prototype._hide=function(t,e){try{if(null===t)return;var i,r=this.attr("parent"),s=this.attr("element"),a=this.attr("row"),o=this.attr("col"),n=s.value,l=this.attr("format"),c=this.attr("validator"),h=r._cellValue(a,o);n=r._showUnMask(o,n,l),void 0!==this.attr("max")&&null!==this.attr("max")&&n>this.attr("max")&&(n=this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&n<this.attr("min")&&(n=this.attr("min")),f.$(s).detach(),void 0!==this.attr("exclude")&&f._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{f._.isString(t)&&(n=n.split(t).join(""))}catch(t){f.QCELL.log("err","QCELL.Number.prototype._hide",t.message)}}));var u=!0;c&&(u=c(a,o,n));var d=n,p=h;if(f._.isObject(l)&&"number"===l.type&&("string"==typeof h&&(h=h.replaceAll(",",""),n=n.replaceAll(",","")),h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)),!0===u?n!==Number(r._cellValue(a,o))?""===n&&void 0===r._cellValue(a,o)?f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i)):f.util.textContent(t,n):("none"===r.attr("merge").data||f._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(o)?(r._cellValue(a,o,n),f._.isObject(l)&&(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i))):this._changeMergeCellValue(a,o,n,l),r._processValueChanged(a,o)):!f._.isObject(l)||"number"!==l.type||""!==d||""!==p&&void 0!==p?f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i)):f.util.textContent(t,n):f.util.textContent(t,d):(n=r._cellValue(a,o),f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),f.util.textContent(t,i)):f.util.textContent(t,n)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();return"msie"!==f.$.browser.name?f.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),r._removeEditColId(this.attr("colid")),u}catch(t){return f.QCELL.log("err","QCELL.Number.prototype._hide",t.message),!1}},f.QCELL.Slider=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Slider,f.QCELL.ColElement),f.QCELL.Slider.prototype._initTag=function(){this.tag("QBOX.QCELL.Slider")},f.QCELL.Slider.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("min",t.options.min,"number"),this.attr("max",t.options.max,"number"),this.attr("step",t.options.step,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata",[],"array"),this.attr("validator",t.options.validator,"function")},f.QCELL.Slider.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("input"),i=document.createElement("label");return e.setAttribute("id",this.attr("id")),e.setAttribute("type","range"),f.util.addClass(e,f.QCELL.def.css.TYPE_SLIDER_SINGLE_STYLE),void 0!==this.attr("max")&&null!==this.attr("max")&&e.setAttribute("max",this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&e.setAttribute("min",this.attr("min")),void 0!==this.attr("step")&&null!==this.attr("step")&&e.setAttribute("step",this.attr("step")),i.setAttribute("id",this.attr("id")+"-result"),f.util.addClass(i,f.QCELL.def.css.TYPE_SLIDER_RESULT_SINGLE_STYLE),t.appendChild(e),t.appendChild(i),f.util.addClass(t,f.QCELL.def.css.TYPE_SLIDER_WRAP_STYLE),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Slider.prototype._createElement",t.message),!1}},f.QCELL.Slider.prototype._show=function(t,e){try{var i,r,s=this.attr("parent"),a=this.attr("element"),o=parseInt(t.getAttribute("data-row")),n=parseInt(t.getAttribute("data-col")),l=void 0===s._cellValue(o,n)?"":s._cellValue(o,n),c=f.$(t).empty(),h=s.attr("elementpool").get("$viewportinner"),u=a.childNodes[0],d=a.childNodes[1],p=s.attr("currentdata"),g=s.attr("colkeys")[n],_=s._getQCellCol(n).attr("cellinvisible")[o],C=[];return isNaN(l)&&(l=0),C=f._.pluck(p,g),f._.uniq(C),C=C.sort(),void 0!==this.attr("max")&&null!==this.attr("max")?(l>this.attr("max")&&(l=this.attr("max")),i=parseInt(this.attr("max"))):i=C[C.length],void 0!==this.attr("min")&&null!==this.attr("min")?(l<this.attr("min")&&(l=this.attr("min")),r=parseInt(this.attr("min"))):r=C[0],u.setAttribute("max",i),u.setAttribute("min",r),u.value=l,u.setAttribute("data-value",l),d.innerHTML=l,s._showMask(n,a),f.$(a).css({width:c.css("width"),height:c.css("height"),left:c.css("left"),top:c.css("top")}),f.$.browser.msie?u.addEventListener("change",(function(t){f.$(d).empty(),d.innerHTML=this.value})):u.addEventListener("input",(function(t){f.$(d).empty(),d.innerHTML=this.value})),h.append(a),a.focus(),this.attr("row",o,"number"),this.attr("col",n,"number"),this.attr("insertdata",[l],"array"),s._addEditColId(this.attr("colid")),_&&s._setInitCellInvisible(o,n),!0}catch(t){return f.QCELL.log("err","QCELL.Slider.prototype._show",t.message),!1}},f.QCELL.Slider.prototype._hide=function(t,e){try{if(null===t)return;var i=this.attr("parent"),r=this.attr("element"),s=this.attr("row"),a=this.attr("col"),o=r.childNodes[0].value,n=this.attr("validator");o=i._showUnMask(a,o),f.$(r).detach();var l=!0;if(n&&(l=n(s,a,o)),!0===l?o!==i._cellValue(s,a)?""===o&&void 0===i._cellValue(s,a)?f.util.textContent(t,o):("none"===i.attr("merge").data||f._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(a)?(i._cellValue(s,a,o),f.util.textContent(t,o)):this._changeMergeCellValue(s,a,o),i._processValueChanged(s,a)):f.util.textContent(t,o):(o=i._cellValue(s,a),f.util.textContent(t,o)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();return"msie"!==f.$.browser.name?f.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata",[],"array"),i._removeEditColId(this.attr("colid")),l}catch(t){return f.QCELL.log("err","QCELL.Slider.prototype._hide",t.message),!1}},f.QCELL.Button=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Button,f.QCELL.ColElement),f.QCELL.Button.prototype._initTag=function(){this.tag("QBOX.QCELL.Button")},f.QCELL.Button.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("input"),i=document.createElement("label");return e.setAttribute("type","button"),e.setAttribute("name",this.attr("id")),f.util.addClass(e,f.QCELL.def.css.TYPE_BUTTON_SINGLE_STYLE),f.util.addClass(e,this.attr("id")+"-style"),f._.isString(this.attr("buttonwidth"))&&(e.style.width=this.attr("buttonwidth").indexOf("%")>-1||this.attr("buttonwidth").indexOf("px")>-1?this.attr("buttonwidth"):this.attr("buttonwidth")+"px"),f._.isString(this.attr("buttonheight"))?e.style.height=this.attr("buttonheight").indexOf("%")>-1||this.attr("buttonheight").indexOf("px")>-1?this.attr("buttonheight"):this.attr("buttonheight")+"px":e.style.height="20px",f._.isString(this.attr("buttonlabel"))&&(e.value=this.attr("buttonlabel")),f._.isString(this.attr("buttonposition"))&&"right"===this.attr("buttonposition")?e.style.float="right":"center"===this.attr("buttonposition")?t.style.textAlign="center":e.style.float="left",i.setAttribute("for",this.attr("id")),f.util.addClass(i,f.QCELL.def.css.TYPE_BUTTON_LABEL_SINGLE_STYLE),f.util.addClass(t,f.QCELL.def.css.TYPE_BUTTON_WRAP_STYLE),t.appendChild(e),t.appendChild(i),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Button.prototype._createElement",t.message),!1}},f.QCELL.Button.prototype._initEvent=function(){f.$(this.attr("element")).on("click",{target:this},f.st.eventProcess)},f.QCELL.Button.prototype._defaultAction=function(t){if("click"===t.type)this.onClick(t)},f.QCELL.Button.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("buttonwidth",t.options.buttonwidth,"string"),this.attr("buttonheight",t.options.buttonheight,"string"),this.attr("buttonposition",t.options.buttonposition,"string"),this.attr("buttonlabel",t.options.buttonlabel,"string"),this.attr("buttonclick",t.options.buttonclick,"function"),this.attr("labeltype",t.options.labeltype,"string")},f.QCELL.Button.prototype._show=function(t,e,i){try{var r=this.attr("parent"),s=void 0===r._cellValue(e,i)?"":r._cellValue(e,i),a=f.$(this.attr("element")).clone(!0).get(0),o=r._getQCellCol(i).attr("celldisabled")[e],n=a.childNodes[0],l=a.childNodes[1],c=(parseInt(f.$(t).css("line-height"))-parseInt(f.$(n).css("height")))/2,h=r._getQCellCol(i).attr("cellinvisible")[e],u=this;if(r._isBottomPanel(t))return void 0===s?f.util.textContent(t,""):f.util.textContent(t,s),!0;f.$(t).empty(),"left"!==n.style.float&&"right"!==n.style.float||(n.style.position="relative",n.style.top=c+"px"),a.setAttribute("data-row",e),a.setAttribute("data-col",i),n.setAttribute("data-row",e),n.setAttribute("data-col",i);var d=r.getID()+"_"+i+"_"+e;return n.setAttribute("id",d),n.setAttribute("name",d),l.setAttribute("for",d),l.setAttribute("data-row",e),l.setAttribute("data-col",i),f._.isFunction(this.attr("buttonclick"))&&(f.$(n).on("click",(function(){var t=parseInt(this.getAttribute("data-row")),e=parseInt(this.getAttribute("data-col"));u.attr("row",t,"number"),u.attr("col",e,"number")})),n.addEventListener("click",u.attr("buttonclick").bind(this,r,e,i),!1)),"button"===this.attr("labeltype")?n.value=s:l.innerHTML=s,o?f.$(n).attr("disabled",o):f.$(n).removeAttr("disabled"),t.appendChild(a),this.attr("row",e,"number"),this.attr("col",i,"number"),h&&r._setInitCellInvisible(e,i),!0}catch(t){return f.QCELL.log("err","QCELL.Button._show",t.message),!1}},f.QCELL.Button.prototype._outerClick=function(t,e){var i=this.attr("parent");i._selectCell(t,e),i._focusCell(t,e)},f.QCELL.Button.prototype.onClick=function(t){var e=t.target,i=parseInt(e.getAttribute("data-row")),r=parseInt(e.getAttribute("data-col"));f._.isElement(e)&&this._outerClick(i,r)},f.QCELL.Editor=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.Editor,f.QCELL.ColElement),f.QCELL.Editor.prototype._initTag=function(){this.tag("QBOX.QCELL.Editor")},f.QCELL.Editor.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("textarea");return e.setAttribute("id",this.attr("id")+"_Editor"),e.style.width="600px",e.style.height="300px",e.className+=f.QCELL.def.css.TYPE_EDITOR_STYLE,t.appendChild(e),f.util.addClass(t,f.QCELL.def.css.TYPE_EDITOR_WARP_STYLE),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.Editor.prototype._createElement",t.message),!1}},f.QCELL.Editor.prototype._initAttrs=function(t){f.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("insertdata","","string"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("editor",{},"object"),this.attr("renderer",void 0===t.options.html?null:t.options.html.data,"function"),this.attr("editcellcol",!1,"boolean"),this.attr("editcellrow",[],"array"),this.attr("editorshow",!1,"boolean")},f.QCELL.Editor.prototype._show=function(t,e,i){try{var r=this.attr("parent"),s=this.attr("element"),a=f.$(t).clone(!0).empty(),o=r.attr("elementpool").get("$container"),n=f.$(r._getCellDOM(e,i)).clone(!0).get(0).innerHTML,l=r._getQCellCol(i).attr("cellinvisible")[e],c=s.childNodes[0],h=this;t.addClass+=f.QCELL.def.css.TYPE_HTML_CELL,c.style.width="606px",c.style.height="306px",c.value=n,o.append(s),s.focus();var u=document.getElementById(c.id);window.sceditor.create(u,{locale:"ko",plugins:"undo",format:"xhtml",icons:"monocons",emoticonsEnabled:!1,style:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/themes/content/default.min.css",emoticonsRoot:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/",toolbar:"bold,italic,underline,strike,subscript,superscript,left,center,right,justify,font,size,color,removeformat,cut,copy,paste,pastetext,source",fonts:"Malgun Gothic, NanumGothic, Dotum, Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana"}),f.$(s).css(this._calculateColStyleEditorPosition(a,606,306));var d=window.sceditor.instance(u);return this.attr("editor",d,"object"),d.keyPress((function(t){h.onEditorKeyDown(t)}),!1,!0).keyUp((function(t){h.onEditorKeyUp(t)}),!1,!0),d.keyPress((function(t){h.onKeyDown(t)}),!0,!1).keyUp((function(t){h.onKeyDown(t)}),!0,!1),this.attr("row",e,"number"),this.attr("col",i,"number"),r._addEditColId(this.attr("colid")),this.attr("editorshow",!0,"boolean"),l&&r._setInitCellInvisible(e,i),!0}catch(t){return f.QCELL.log("err","QCELL.Editor._show",t.message),!1}},f.QCELL.Editor.prototype._hide=function(t,e){try{if(null===t)return;var i=this.attr("parent"),r=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col")),a=this.attr("editor"),o=this.attr("insertdata"),n=f.$(i._getCellDOM(r,s)).clone(!0).get(0).innerHTML,l=this.attr("editcellcol"),c=this.attr("editcellrow");if(a.destroy(),f.$(this.attr("element")).remove(),"api"===e)o=n;else{var h=!1;l?(f.$.each(c,(function(t,e){if(e.row===r)return h=!0,!1})),h||c.push({row:r,data:o})):(this.attr("editcellcol",!0,"boolean"),c.push({row:r,data:o})),t.vale=""}if(o=i._showDataFormat(r,s,o),t.innerHTML=o,"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();return"msie"!==f.$.browser.name?f.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata","","string"),i._removeEditColId(this.attr("colid")),this.attr("editorshow",!1,"boolean"),"api"!==e&&i._refresh(),!0}catch(t){return f.QCELL.log("err","QCELL.Editor.prototype._hide",t.message),!1}},f.QCELL.Editor.prototype._calculateColStyleEditorPosition=function(t,e,i){var r=this.attr("parent"),s=parseInt(t.css("left")),a=parseInt(t.css("top")),o=parseInt(t.css("width")),n=r.attr("layoutsize").root.offsetWidth,l=parseInt(t.css("height")),c=r.attr("layoutsize").root.offsetHeight,h=r.attr("layoutsize").colheader.offsetHeight,u=r.attr("layoutsize").rowheader.offsetWidth;return{left:s+o+u+e>n?s+o+u-e+6+"px":s+u+"px",top:a+l+h+i>c?a+h-i+6+"px":a+l+h+"px"}},f.QCELL.Editor.prototype._showDataLabel=function(t,e,i,r){try{this.attr("row",e,"number"),this.attr("col",i,"number");var s=this.attr("parent"),a=s._cellValue(e,i),o=s.attr("currentdata"),n=s._getColHtml(i),l=s.attr("qcellcols")[i].attr("colstyleeditordata"),c=this.attr("editcellcol"),h=this.attr("editcellrow"),u=!1,d=!1,p=!1,g="",_=s.getRowData(e);if(!0===_.rt_qc_footer||!0===_.rt_qc_header)return f.util.textContent(t,r),void s._setAriaLabel(t,e,i,r);if(s._isBottomPanel(t))return void(void 0===r?f.util.textContent(t,""):f.util.textContent(t,r));if(t.addClass+=f.QCELL.def.css.TYPE_HTML_CELL,a=s._showDataFormat(e,i,a),f._.isFunction(this.attr("renderer"))&&f._.isFunction(n.data)){var C=n.data(s,e,i,!0===f._.isUndefined(a)?"":a,o[e-s.attr("headerrows")]);f._.isString(C)&&(u=!0,g=C)}if(""!==l){var L=l.replace("QCELL_COL_DATA",a);d=!0,g=L}return c&&f.$.each(h,(function(t,i){if(i.row===e)return p=!0,g=i.data,!1})),u||d||p?t.innerHTML=g:f.util.textContent(t,a),f.$(t.childNodes[0]).off("dblclick").on("dblclick",{target:this},this.onDblClick),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL.Editor._showDataLabel",t.message),!1}},f.QCELL.Editor.prototype.onKeyDown=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),i=t.keyCode,r=this.attr("editor");if(i===f.def.key.ENTER||i===f.def.key.TAB){var s=this;setTimeout((function(){s.attr("insertdata",r.getSourceEditorValue(),"string"),s._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}},f.QCELL.Editor.prototype.onKeyUp=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),i=t.keyCode,r=this.attr("editor");if(!1===t.altKey)if(i===f.def.key.ENTER||i===f.def.key.TAB){var s=this;setTimeout((function(){s.attr("insertdata",r.getSourceEditorValue(),"string"),s._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}else i===f.def.key.ESC&&this._hide(e,"api");else i!==f.def.key.ENTER&&10!==i||r.sourceEditorInsertText("\r")},f.QCELL.Editor.prototype.onEditorKeyDown=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),i=t.keyCode,r=this.attr("editor");if(i===f.def.key.ENTER||i===f.def.key.TAB){var s=this,a=r.getWysiwygEditorValue();r.setSourceEditorValue(a),setTimeout((function(){s.attr("insertdata",r.getSourceEditorValue(a),"string"),s._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}},f.QCELL.Editor.prototype.onEditorKeyUp=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),i=t.keyCode,r=this.attr("editor");if(!1===t.altKey)if(i===f.def.key.ENTER||i===f.def.key.TAB){var s=this,a=r.getWysiwygEditorValue();r.setSourceEditorValue(a),setTimeout((function(){s.attr("insertdata",r.getSourceEditorValue(a),"string"),s._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}else i===f.def.key.ESC&&this._hide(e,"api");else if(i===f.def.key.ENTER||10===i){t.stopPropagation(),t.preventDefault();var o=r.getRangeHelper();if("msie"===f.$.browser.name){var n=document.createElement("br");o.insertNode(n);for(var l=n.parentNode.childNodes,c=0,h=0;h<l.length;h++)l[h].isEqualNode(n)&&c++;1===c&&o.insertNode(n.cloneNode())}else o.insertHTML("<br><br>")}},f.QCELL.Editor.prototype.onDblClick=function(t){var e=t.target,i=Number(e.parentNode.getAttribute("data-row")),r=Number(e.parentNode.getAttribute("data-col")),s=t.data.target,a=s.attr("parent"),o=a._getCellDOM(i,r);if(0===i&&0===r){var n=e.parentNode;i=Number(n.parentNode.getAttribute("data-row")),r=Number(n.parentNode.getAttribute("data-col")),o=a._getCellDOM(i,r)}a._onScrollHideEditCellsDOM(),s._show(o,i,r)},f.QCELL.InputButton=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.InputButton,f.QCELL.Input),f.QCELL.InputButton.prototype._initTag=function(){this.tag("QBOX.QCELL.InputButton")},f.QCELL.InputButton.prototype._initAttrs=function(t){f.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("buttonwidth",t.options.buttonwidth,"string"),this.attr("buttonheight",t.options.buttonheight,"string"),this.attr("buttonposition",t.options.buttonposition,"string"),this.attr("buttonlabel",t.options.buttonlabel,"string"),this.attr("buttonclick",t.options.buttonclick,"function"),void 0===this.attr("buttonposition")&&this.attr("buttonposition","right","string"),void 0===this.attr("buttonwidth")&&this.attr("buttonwidth","20px","string"),void 0===this.attr("buttonheight")&&this.attr("buttonheight","20px","string"),this.attr("placeholder",t.options.placeholder,"string"),this.attr("editable",!1!==t.options.editable,"boolean")},f.QCELL.InputButton.prototype._showDataLabel=function(t,e,i,r){try{this.attr("row",e,"number"),this.attr("col",i,"number"),f.$(t).empty();var s=this.attr("parent"),a=s.getRowData(e);if(!0===a.rt_qc_footer||!0===a.rt_qc_header)return f.util.textContent(t,r),void s._setAriaLabel(t,e,i,r);var o=document.createElement("button"),n=document.createTextNode("data");if(s._isBottomPanel(t))return void(void 0===r?f.util.textContent(t,""):f.util.textContent(t,r));if(s._isBottomPanel(t))return void(void 0===r?f.util.textContent(t,""):f.util.textContent(t,r));f.util.addClass(o,f.QCELL.def.css.TYPE_BUTTON_SINGLE_STYLE),f.util.addClass(o,this.attr("id")+"-style"),f._.isString(this.attr("buttonwidth"))&&(o.style.width=this.attr("buttonwidth").indexOf("%")>-1||this.attr("buttonwidth").indexOf("px")>-1?this.attr("buttonwidth"):this.attr("buttonwidth")+"px"),f._.isString(this.attr("buttonheight"))?o.style.height=this.attr("buttonheight").indexOf("%")>-1||this.attr("buttonheight").indexOf("px")>-1?this.attr("buttonheight"):this.attr("buttonheight")+"px":o.style.height="20px";var l=parseInt(f.$(t).css("height"))/2-parseInt(f.$(o).css("height"))/2;return f._.isString(this.attr("buttonlabel"))&&(o.value=this.attr("buttonlabel")),o.style.position="absolute",o.style.right="1px",o.style.top=l+"px",o.style.cursor="pointer",f._.isString(this.attr("buttonposition"))&&"right"===this.attr("buttonposition")?o.style.float="right":"center"===this.attr("buttonposition")?o.style.textAlign="center":o.style.float="left",f.$(o).bind("click",(function(t){switch(t.stopPropagation(),s._onScrollHideEditCellsDOM(),s._updateIdx("click",e,i),s._focusCell(e,i),s.attr("selectmode")){case"row":case"rows":s._clearSelection(),s._selectRow(e);break;case"col":case"cols":s._clearSelection(),s._selectCol(i);break;default:s._clearSelection(),s._selectCell(e,i)}f.QCELL.config.usebuttonclickcallback?(t.preventDefault(),s._callButtonclickCallback()):s._trigger("buttonclick")})),f.util.textContent(n,r),t.appendChild(n),t.appendChild(o),s._setAriaLabel(t,e,i,r),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL.InputButton._showDataLabel",t.message),!1}},f.QCELL.InputButton.prototype._show=function(t,e){try{return!0===this.attr("editable")&&f.QCELL.Input.prototype._show.call(this,t,e),!0}catch(t){return f.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},f.QCELL.InputButton.prototype._hide=function(t,e){try{if(null===t)return;var i,r=this.attr("parent"),s=this.attr("element"),a=this.attr("row"),o=this.attr("col"),n=s.value,l=this.attr("format"),c=this.attr("validator"),h=r._cellValue(a,o);n=r._showUnMask(o,n,l),f.$(s).detach(),void 0!==this.attr("exclude")&&f._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{f._.isString(t)&&(n=n.split(t).join(""))}catch(t){f.QCELL.log("err","QCELL.InputButton.prototype._hide",t.message)}}));var u=!0;c&&(u=c(a,o,n));var d=n,p=h;if(f._.isObject(l)&&"number"===l.type&&("string"==typeof h&&(h=h.replaceAll(",",""),n=n.replaceAll(",","")),h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)),!0===u?n!==h?""===n&&void 0===h?f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),this._showDataLabel(t,a,o,i)):this._showDataLabel(t,a,o,n):("none"===r.attr("merge").data||f._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(o)?(r._cellValue(a,o,n),f._.isObject(l)&&(i=r._showDataFormat(a,o,void 0===n?"":n),this._showDataLabel(t,a,o,i))):this._changeMergeCellValue(a,o,n,l),r._processValueChanged(a,o)):!f._.isObject(l)||"number"!==l.type||""!==d||""!==p&&void 0!==p?f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),this._showDataLabel(t,a,o,i)):this._showDataLabel(t,a,o,n):this._showDataLabel(t,a,o,d):(n=h,f._.isObject(l)?(i=r._showDataFormat(a,o,void 0===n?"":n),this._showDataLabel(t,a,o,i)):this._showDataLabel(t,a,o,n)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();return"msie"!==f.$.browser.name?f.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),r._removeEditColId(this.attr("colid")),u}catch(t){return f.QCELL.log("err","QCELL.InputButton.prototype._hide",t.message),!1}},f.QCELL.InputDatepicker=function(t){if(!1===f.util.checkType(t,"object"))return null;f.QCELL.ColElement.call(this,t)},f.util.inherit(f.QCELL.InputDatepicker,f.QCELL.Input),f.QCELL.InputDatepicker.prototype._initTag=function(){this.tag("QBOX.QCELL.InputDatepicker")},f.QCELL.InputDatepicker.prototype._initEvent=function(){f.$(this.attr("element")).on("keydown keyup keypress",{target:this},f.st.eventProcess)},f.QCELL.InputDatepicker.prototype._initAttrs=function(t){f.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("showkey",!1,"boolean"),this.attr("visible",!1,"boolean"),this.attr("changeyear",void 0!==t.options.changeyear&&t.options.changeyear,"boolean"),this.attr("changemonth",void 0!==t.options.changemonth&&t.options.changemonth,"boolean"),this.attr("insertdata","","string"),this.attr("dateformat",void 0===t.options.dateformat?"YYMMDD":t.options.dateformat,"string"),this.attr("locale",void 0===t.options.locale?"ko":t.options.locale,"string"),this.attr("yearrange",void 0===t.options.yearrange?"c-10:c+10":t.options.yearrange,"string"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("format",t.options.format,"object"),this.attr("placeholder",t.options.placeholder,"string"),this.attr("timetype",void 0===t.options.timetype?"none":t.options.timetype,"string"),this.attr("timeformat",void 0===t.options.timeformat?"HHmmss":t.options.timeformat,"string"),void 0!==f.$.timepicker&&this.attr("timeseparator",void 0===t.options.timeseparator?f.$.timepicker._defaults.separator:t.options.timeseparator,"string"),this.attr("dateimage",void 0===t.options.dateimage?"":t.options.dateimage,"string"),this.attr("dateimageside",void 0===t.options.dateimageside?"right":t.options.dateimageside,"string"),this.attr("dateimageonly",void 0!==t.options.dateimageonly&&t.options.dateimageonly,"boolean"),this.attr("direction",t.options.direction,"string")},f.QCELL.InputDatepicker.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),t.className+=f.QCELL.def.css.TYPE_INPUT_TEXT_STYLE+" "+this.attr("inputclass"),this._setElement(t),!0}catch(t){return f.QCELL.log("err","QCELL.InputDatepicker.prototype._createElement",t.message),!1}},f.QCELL.InputDatepicker.prototype._show=function(t,e){try{var i,r=this.attr("parent"),s=this.attr("element"),a=parseInt(t.getAttribute("data-row")),o=parseInt(t.getAttribute("data-col")),n=void 0===r._cellValue(a,o)?"":r._cellValue(a,o),l=f.$(t).empty(),c=r.attr("elementpool").get("$viewportinner"),h=this.attr("format"),u=r._getQCellCol(o).attr("cellinvisible")[a],d=this,p={defaultDate:i="yymmdd"===this.attr("dateformat").toLowerCase()?n:void 0!==h?r._showDataFormat(a,o,void 0===n?"":n):n,changeYear:this.attr("changeyear"),changeMonth:this.attr("changemonth"),dateFormat:this.attr("dateformat").toLowerCase(),yearRange:this.attr("yearrange"),firstDay:0,onSelect:function(e,i){d.attr("insertdata",e,"string"),d._hide(t,"api")},showAnim:"fold"};return null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?n=f.util.replaceAll(n,"%",""):f._.isFunction(this.attr("convert").callback)&&(n=this.attr("convert").callback.call(this,a,o,n))),this.attr("isshow",!0,"boolean"),s.value=i,void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(s.placeholder=this.attr("placeholder")),r._showMask(o,s),f.$(s).css({width:l.css("width"),height:l.css("height"),left:l.css("left"),top:l.css("top")}),f.$(s).datepicker(p),c.append(s),s.focus(),s.select(),this.attr("row",a,"number"),this.attr("col",o,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[n],"array"),r._addEditColId(this.attr("colid")),u&&r._setInitCellInvisible(a,o),!0}catch(t){return f.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},f.QCELL.InputDatepicker.prototype._hide=function(t,e){try{if(null===t)return;if(!1===this.attr("isshow")&&!0!==this.attr("parent").attr("oneclickedit"))return;var i,r,s,a=this.attr("parent"),o=this.attr("element"),n=this.attr("row"),l=this.attr("col"),c=o.value,h=this.attr("format"),u=this.attr("validator");if(-1===n||-1===l)return;if(this.attr("isshow",!1,"boolean"),c=a._showUnMask(l,c,h),void 0!==h)for(s=h.rule.toLowerCase(),s=f.util.replaceAll(s,"y",""),s=f.util.replaceAll(s,"m",""),s=f.util.replaceAll(s,"d",""),r=0;r<s.length;r++)c=f.util.replaceAll(c,s.charAt(r),"");null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?c+="%":f._.isFunction(this.attr("convert").afterCallback)&&(c=this.attr("convert").afterCallback.call(this,n,l,c)));var d=o.parentElement;setTimeout((function(){var t=0;if(void 0!==d)for(t=0;t<d.childNodes.length;t++)if(o===d.childNodes[t]){f.$(o).datepicker("hide"),f.$(o).datepicker("destroy"),f.$(o).detach();break}}),0),void 0!==this.attr("exclude")&&f._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{f._.isString(t)&&(c=c.split(t).join(""))}catch(t){f.QCELL.log("err","QCELL.Input.prototype._hide",t.message)}}));var p=!0;if(u&&(p=u(n,l,c)),!0===p?c!==a._cellValue(n,l)?""===c&&void 0===a._cellValue(n,l)?f._.isObject(h)?(i=a._showDataFormat(n,l,void 0===c?"":c),f.util.textContent(t,i)):f.util.textContent(t,c):("none"===a.attr("merge").data||f._.isUndefined(a.attr("merge").data)?f._.isObject(h)?(i=a._showDataFormat(n,l,void 0===c?"":c),f.util.textContent(t,i),"Invalid date"!==i&&a._cellValue(n,l,c)):a._cellValue(n,l,c):this._changeMergeCellValue(n,l,c,h),a._processValueChanged(n,l)):f._.isObject(h)?(i=a._showDataFormat(n,l,void 0===c?"":c),f.util.textContent(t,i)):f.util.textContent(t,c):(c=a._cellValue(n,l),f._.isObject(h)?(i=a._showDataFormat(n,l,void 0===c?"":c),f.util.textContent(t,i)):f.util.textContent(t,c)),"msie"===f.$.browser.name&&8===f.$.browser.versionNumber)a.attr("elementpool").get("$container").focus();return"msie"!==f.$.browser.name?f.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():f.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),a._removeEditColId(this.attr("colid")),p}catch(t){return f.QCELL.log("err","QCELL.Input.prototype._hide",t.message),!1}},f.QCELL.NormalQCELL.prototype._beforeFocusCell=function(){this.attr("adjustrow",!1,"boolean"),this._hideEditCellsDOM()},f.QCELL.NormalQCELL.prototype.onKeyDown=function(t){try{f.QCELL.BasicQCELL.prototype.onKeyDown.call(this,t);var e=t.target,i=t.keyCode,r=f.QCELL.def.css;if(f.util.hasClass(e,r.TYPE_INPUT_EDIT_STYLE)&&(e=e.parentElement),f.util.hasClass(e,r.CELL)){var s=parseInt(e.getAttribute("data-row")),a=parseInt(e.getAttribute("data-col")),o=t.data.target._idx("row","focus"),n=t.data.target._idx("col","focus");if(s!==o&&(s=o),a!==n&&(a=n),-1===s||-1===a)return;if(!0===this.attr("useenterkeytonextcol")&&i===f.def.key.ENTER)return this._moveNextCell(s,a,0),t.stopPropagation(),void t.preventDefault();var l=this._getQCellCol(a).attr("celldisabled")[s];if(l=void 0!==l&&l,e!==this._getCellDOM(o,n)&&(e=this._getCellDOM(o,n)),s>=this.attr("headerrows")&&a>=this.attr("headercols")){var c=this._getCellDOM(s,a);if(this._isBottomPanel(c))return;switch(this._getColType(a)){case"input":case"textarea":case"selectmenu":case"number":case"inputbutton":case"inputdatepicker":if(!1===this._getColElement(a).attr("visible"))switch(i){case f.def.key.F2:case f.def.key.SPACE:case f.def.key.BACKSPACE:case f.def.key.ENTER:(f._.isUndefined(l)||!1===l)&&(this._getColElement(a).attr("showkey",!0,"boolean"),this._getColElement(a)._show(e,t.type)),t.stopPropagation(),t.preventDefault();break;case f.def.key.LEFT:case f.def.key.RIGHT:case f.def.key.UP:case f.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;case"datepicker":switch(i){case f.def.key.SPACE:case f.def.key.ENTER:(f._.isUndefined(l)||!1===l)&&this._getColElement(a)._show(e),t.stopPropagation(),t.preventDefault();break;case f.def.key.LEFT:case f.def.key.RIGHT:case f.def.key.UP:case f.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;case"checkbox":switch(i){case f.def.key.SPACE:case f.def.key.ENTER:(f._.isUndefined(l)||!1===l)&&this._getColElement(a)._outerClick(s,a),t.stopPropagation(),t.preventDefault();break;case f.def.key.LEFT:case f.def.key.RIGHT:case f.def.key.UP:case f.def.key.DOWN:t.stopPropagation(),t.preventDefault()}break;case"multicheckbox":if(!1===this._getColElement(a).attr("visible"))switch(i){case f.def.key.F2:case f.def.key.SPACE:case f.def.key.BACKSPACE:case f.def.key.ENTER:(f._.isUndefined(l)||!1===l)&&(this._getColElement(a).attr("showkey",!0,"boolean"),this._getColElement(a)._show(e,s,a)),t.stopPropagation(),t.preventDefault();break;case f.def.key.LEFT:case f.def.key.RIGHT:case f.def.key.UP:case f.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;default:switch(i){case f.def.key.LEFT:case f.def.key.RIGHT:case f.def.key.SPACE:case f.def.key.ENTER:case f.def.key.UP:case f.def.key.DOWN:t.stopPropagation(),t.preventDefault()}}}if(f.def.key.DELETE===i){var h,u,d=this.attr("parentid"),p=!1;if("select"===this.attr("delkeymode")){if(f.$("#"+d).find("."+r.CELL_SELECT).length>0){var g,_,C,L,m=this._getIdxInfo("selected","row").keys(!0),E=this._getIdxInfo("selected","col").keys(!0);0===m.length?(g=this.attr("headerrows"),_=this.attr("rows")):(g=m[0],_=m[m.length-1]),0===E.length?(C=this.attr("headercols"),L=this.attr("cols")-1):(C=E[0],L=E[E.length-1]);for(var v=C;v<=L;v++){h=this._getQCellCol(v).attr("celldisabled"),u=this._getQCellCol(v).attr("type");for(var b=g;b<=_;b++)if(!0!==(l=void 0!==(l=h[b])&&l))switch(u){case"input":case"textarea":case"number":case"inputbutton":case"datepicker":case"inputdatepicker":this._cellValue(b,v,""),p=!0}}}}else if("focus"===this.attr("delkeymode")&&(s=this.getIdx("row"),a=this.getIdx("col"),-1!==s&&-1!==a)){if(h=this._getQCellCol(a).attr("celldisabled"),u=this._getQCellCol(a).attr("type"),!0===(l=void 0!==(l=h[s])&&l))return;switch(u){case"input":case"textarea":case"number":case"inputbutton":case"datepicker":case"inputdatepicker":this._cellValue(s,a,""),p=!0}}p&&this._processValueChanged(s,a)}}else if(f.util.hasClass(e,"rt-qc-ui-selectmenu-button")&&!0===this.attr("useenterkeytonextcol")&&i===f.def.key.ENTER){var y=e.parentElement.parentElement,w=parseInt(y.getAttribute("data-row")),x=parseInt(y.getAttribute("data-col"));this._moveNextCell(w,x,0),t.stopPropagation(),t.preventDefault()}}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onKeyDown",t.message)}},f.QCELL.NormalQCELL.prototype.onMouseWheel=function(t){this._onScrollHideEditCellsDOM(),f.QCELL.BasicQCELL.prototype.onMouseWheel.call(this,t)},f.QCELL.NormalQCELL.prototype.onMouseDown=function(t){try{f.QCELL.BasicQCELL.prototype.onMouseDown.call(this,t)}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onMouseDown",t.message)}},f.QCELL.NormalQCELL.prototype.onDblClick=function(t){try{var e,i,r=t.target,s=r,a=f.QCELL.def.css,o=!1;do{if(f.util.hasClass(s,a.CELL)&&(e=parseInt(s.getAttribute("data-col")),i=parseInt(s.getAttribute("data-row")),f._.isNumber(e)&&f._.isNumber(i))){this._updateIdx("dblclick",i,e),o=!0;break}s=s.parentElement}while(null!==s);if(!1===o&&(-1!==this.attr("temprow")&&-1!==this.attr("tempcol")?this._updateIdx("dblclick",this.attr("temprow"),this.attr("tempcol")):this._updateIdx("dblclick",-1,-1)),this.attr("temprow",-1,"number"),this.attr("tempcol",-1,"number"),f.util.hasClass(r,a.CELL)&&f.util.hasClass(r,a.CELL_VIEWPORT)){e=parseInt(r.getAttribute("data-col")),i=parseInt(r.getAttribute("data-row"));var n=this._getRightColOfScreen(),l=this._getLeftColOfScreen(),c=this._getQCellCol(e).attr("celldisabled")[i],h=this._getQCellCol(e).attr("disabled"),u=this.attr("groupstate");if(this._isBottomPanel(r))return;if(f.util.isMobile())return this._setInputformData(i),t.stopPropagation(),void t.preventDefault();if(!1===this._getQCellCol(e).attr("celldisabled")[i]&&(h=!1),null!==u&&(-1===f._.indexOf(u.headerrows,i)&&-1===f._.indexOf(u.footerrows,i)||(h=!0)),!0===this.attr("_isGTF")||!0===this.attr("_isGTH")){var d=this.getRowData(i);!0!==d.rt_qc_footer&&!0!==d.rt_qc_header||(h=!0)}var p=this;if(!0!==h){if(e>=n||e<=l)return void setTimeout((function(){if(p._idx("col","focus")===e)switch(p._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(f._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(r,t.type);break;case"datepicker":(f._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(r);break;case"multicheckbox":case"editor":(f._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(r,i,e)}}),200);if((this.attr("useall")||this.attr("usetreeall"))&&(e<=n||e>=l))return void setTimeout((function(){if(p._idx("col","focus")===e)switch(p._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(f._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(r,t.type);break;case"datepicker":(f._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(r);break;case"multicheckbox":case"editor":(f._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(r,i,e)}}),200);if(!1===this.attr("oneclickedit")&&!1===this.attr("adjustrow")&&!1===this.attr("adjustcol"))switch(this._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"datepicker":case"inputbutton":case"inputdatepicker":(f._.isUndefined(c)||!1===c)&&this._getColElement(e)._show(r,t.type);break;case"multicheckbox":case"editor":(f._.isUndefined(c)||!1===c)&&this._getColElement(e)._show(r,i,e)}}}}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onDblClick",t.message)}},f.QCELL.NormalQCELL.prototype._getRowFromTarget=function(t){var e;do{if(void 0===t.getAttribute)return-1;if(e=parseInt(t.getAttribute("data-row")),!isNaN(e))return e;t=t.parentNode}while(null!==t);return-1},f.QCELL.NormalQCELL.prototype._getColFromTarget=function(t){var e;do{if(void 0===t.getAttribute)return-1;if(e=parseInt(t.getAttribute("data-col")),!isNaN(e))return e;t=t.parentNode}while(null!==t);return-1},f.QCELL.NormalQCELL.prototype.onClick=function(t){try{f.QCELL.BasicQCELL.prototype.onClick.call(this,t);var e,i,r=t.target,s=f.QCELL.def.css;if(!1===this.attr("isscrollleft")&&(f.util.hasClass(r,s.CELL)||f.util.hasClass(r,s.VIEWPORT_INNER)||f.util.hasClass(r,s.TYPE_DATEPICKER))&&(this._hideEditCellsDOM(),-1!==this._idx("row","hover")&&-1!==this._idx("col","hover")||this._onScrollHideEditCellsDOM()),f.util.hasClass(r,s.CELL)||f.util.hasClass(r,s.TYPE_DATEPICKER)||f.util.hasClass(r,s.TYPE_INPUT_EDIT_STYLE)){e=this._getRowFromTarget(r),i=this._getColFromTarget(r);var a,o,n=this._getQCellCol(i).attr("celldisabled")[e],l=this._getQCellCol(i).attr("disabled"),c=this.attr("groupstate");if(this._isBottomPanel(r))return;if(f.util.isMobile())return t.stopPropagation(),void t.preventDefault();if(!1===n&&(l=!1),null!==c&&(-1===f._.indexOf(c.headerrows,e)&&-1===f._.indexOf(c.footerrows,e)||(l=!0)),!0===this.attr("_isGTF")||!0===this.attr("_isGTH")){var h=this.getRowData(e);!0!==h.rt_qc_footer&&!0!==h.rt_qc_header||(l=!0)}if(!0!==l)if(this._updateIdx("dblclick",this._idx("row","cursor"),this._idx("col","cursor")),f.util.hasClass(r,s.TYPE_DATEPICKER)&&(f.util.hasClass(r.parentNode,s.CELL)?r=r.parentNode:f.util.hasClass(r.parentNode.parentNode,s.CELL)&&(r=r.parentNode.parentNode)),f.util.hasClass(r,s.TYPE_INPUT_EDIT_STYLE)&&f.util.hasClass(r.parentNode,s.CELL)&&(r=r.parentNode),n=void 0!==n&&n,f.util.hasClass(r,s.CELL_VIEWPORT)){if((this.attr("useall")||this.attr("usetreeall"))&&(o=this._getRowFromTarget(r),a=this._getColFromTarget(r),!isNaN(o)&&!isNaN(a))){var u=this._getCellDOM(o,a);if(null!=u)"none"!==this._getHScrollAdjustment(u)&&!0===this.attr("hsinfo").bHScroll&&this._scrollLeft(a)}var d=this.getID();setTimeout((function(){var s=f.QCELL.getInstance(d);if(null!==s){if(!1===s.attr("isscrollleft")&&s.attr("oneclickedit")&&!1===s.attr("adjustrow")&&!1===s.attr("adjustcol"))switch(s._hideEditCellsDOM(),s._getColType(i)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(f._.isUndefined(n)||!1===n)&&s._getColElement(i)._show(r,t.type);break;case"datepicker":(f._.isUndefined(n)||!1===n)&&s._getColElement(i)._show(r);break;case"multicheckbox":case"editor":(f._.isUndefined(n)||!1===n)&&s._getColElement(i)._show(r,e,i)}switch(s.attr("isscrollleft",!1,"boolean"),s._getColType(i)){case"checkbox":case"image":case"button":(f._.isUndefined(n)||!1===n)&&s._getColElement(i)._outerClick(e,i)}}}),200)}else if(f.util.hasClass(r,s.CELL_COLHEADER)&&t.which===f.def.which.LEFT_BUTTON&&"checkbox"===this._getColType(i))this._getColElement(i)._outerClick(e,i)}else if(f.util.hasClass(r,s.COLHEADER_AREA))e=r.parentNode.getAttribute("data-row"),i=r.parentNode.getAttribute("data-col"),this._updateIdx("click",Number(e),Number(i));else{for(var p=r.parentElement;p;){if(f.util.hasClass(p,s.COLHEADER_AREA))return e=r.parentNode.getAttribute("data-row"),i=r.parentNode.getAttribute("data-col"),void this._updateIdx("click",Number(e),Number(i));p=p.parentElement}for(p=r.parentElement;p;){if(f.util.hasClass(p,s.CELL)){if(e=p.getAttribute("data-row"),i=p.getAttribute("data-col"),isNaN(Number(i))||"html"!==this._getColType(Number(i)))break;return this._updateIdx("click",Number(e),Number(i),t),this._focusCell(Number(e),Number(i)),void r.focus()}p=p.parentElement}this._updateIdx("dblclick",-1,-1)}}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onClick",t.message)}},f.QCELL.NormalQCELL.prototype.onMouseEnter=function(t){try{f.$(document).off("mousedown."+this.attr("id"))}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onMouseEnter",t.message)}},f.QCELL.NormalQCELL.prototype.onMouseLeave=function(t){try{if("filter-dataindex"===this.attr("id"))return!1;var e=!1;if(f.$(document).bind("mousedown."+this.attr("id"),{target:this},(function(t){!1===(f.util.hasClass(t.target,"rt-qc-ui-widget")||f.util.hasClass(t.target,"rt-qc-ui-menu-item-wrapper")||f.util.hasClass(t.target.parentNode,"rt-qc-ui-datepicker-year")||f.util.hasClass(t.target.parentNode,"rt-qc-ui-datepicker-month")||f.util.hasClass(t.target.parentNode,"rt-qc-ui-selectmenu")||f.util.hasClass(t.target.parentNode,"rt-qc-input-text-style"))&&(t.data.target._hideEditCellsDOM(),f.$(this).unbind(t))})),f.util.hasClass(t.target,f.QCELL.def.css.CELL_COLHEADER))return!0!==this.attr("keepeditmode")&&this._onScrollHideEditCellsDOM(),void(!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()));if(!1===(f.util.hasClass(t.target,"rt-qc-ui-widget")||f.util.hasClass(t.target,f.QCELL.def.css.VIEWPORT)||f.util.hasClass(t.target,f.QCELL.def.css.CELL)||f.util.hasClass(t.target,"rt-qc-ui-selectmenu-text")||f.util.hasClass(t.target,"rt-qc-selectmenu-wrap-style")||f.util.hasClass(t.target,"rt-qc-input-text-style"))){if(!0===this.attr("isdatepicker")&&f.util.hasClass(t.target,"hasDatepicker"))return;!0!==this.attr("keepeditmode")&&this._onScrollHideEditCellsDOM(),!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()),e=!0}if(!1===((f.util.hasClass(t.target,f.QCELL.def.css.CELL)||f.util.hasClass(t.target,"rt-qc-input-text-style")||t.target.className.indexOf("selectmenu")>-1)&&null!==t.toElement&&(f.util.hasClass(t.toElement.parentNode,"rt-qc-ui-selectmenu-menu")||f.$(t.toElement).is("div")||f.$(t.toElement).is("li")))&&(!0!==this.attr("keepeditmode")&&!1===f.QCELL.config.htmlselectmenu&&this._onScrollHideEditCellsDOM(),!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()),e=!0),!1===e){var i=this._getIdxInfo("focus","row").current,r=this._getIdxInfo("focus","col").current;if(void 0!==i&&void 0!==r&&-1!==i&&-1!==r)"selectmenu"!==this._getColType(r)||f.util.hasClass(t.target,"rt-qc-ui-selectmenu-button")||f.util.hasClass(t.target,"rt-qc-cell")||f.util.hasClass(t.target,"rt-qc-ui-selectmenu-text")||this._onScrollHideEditCellsDOM()}f.util.hasClass(t.currentTarget,"rt-qc-container")&&!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus())}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onMouseLeave",t.message)}},f.QCELL.NormalQCELL.prototype.onMouseMove=function(t){try{f.QCELL.BasicQCELL.prototype.onMouseMove.call(this,t);var e=f.QCELL.def.css,i=t.target,r=-1,s=-1,a=i.parentNode;f.util.hasClass(a,e.CELL)&&(r=parseInt(a.getAttribute("data-row")),s=parseInt(a.getAttribute("data-col")),this._idx("row","cursor")===r&&this._idx("col","cursor")===s||(this._updateIdx("cursor",r,s),0!==t.buttons&&t.which===f.def.which.LEFT_BUTTON&&this.attr("mousedown")&&this.onDrag(t)))}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onMouseMove",t.message)}},f.QCELL.NormalQCELL.prototype.onDrag=function(t){try{f.QCELL.BasicQCELL.prototype.onDrag.call(this,t)}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onDrag",t.message)}},f.QCELL.NormalQCELL.prototype._callButtonclickCallback=function(){if(null!==this.attr("buttonclickcallback")&&f._.isFunction(this.attr("buttonclickcallback"))){this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));var t={type:"buttonclick",data:null===this.attr("eventparam_buttonclick")?{}:this.attr("eventparam_buttonclick")};t.data.target=this,this.attr("buttonclickcallback").call(this,t)}},f.QCELL.NormalQCELL.prototype.onResize=function(t){try{this._onScrollHideEditCellsDOM(),f.QCELL.BasicQCELL.prototype.onResize.call(this,t)}catch(t){f.QCELL.log("err","QCELL.NormalQCELL.onResize",t.message)}},f.QCELL.NormalQCELL.prototype._getColElement=function(t){return this.attr("qcellcols")[t].attr("colelement")},f.QCELL.NormalQCELL.prototype._getColTitlekey=function(t){var e=this.attr("qcellcols")[t].attr("colelement");return null!==e?e.titlekey:void 0},f.QCELL.NormalQCELL.prototype._getColType=function(t){return void 0===this.attr("qcellcols")[t]?"static":this.attr("qcellcols")[t].attr("type")},f.QCELL.NormalQCELL.prototype._getColHtml=function(t){return this.attr("qcellcols")[t].attr("html")},f.QCELL.NormalQCELL.prototype._getColChart=function(t){return this.attr("qcellcols")[t].attr("chart")},f.QCELL.NormalQCELL.prototype._getColDisabled=function(t){return this.attr("qcellcols")[t].attr("disabled")},f.QCELL.NormalQCELL.prototype._getColMask=function(t){return this.attr("qcellcols")[t].attr("mask")},f.QCELL.NormalQCELL.prototype._getColDatatype=function(t){return this.attr("qcellcols")[t].attr("datatype")},f.QCELL.NormalQCELL.prototype._getColFneditor=function(t){return this.attr("qcellcols")[t].attr("fneditor")},f.QCELL.NormalQCELL.prototype._hideEditCellsDOM=function(){var t=this.attr("editcolids");if(t.length>0){var e,i;this.attr("hideedit",!0,"boolean");for(var r=0;r<t.length;r++)i=this._getColElement(this.attr("colidsinfo")[t[r]]),e=this._getCellDOM(i.attr("row"),i.attr("col")),"multicheckbox"===this._getColType(this.attr("colidsinfo")[t[r]])?i._setMultiCheckboxCellData(i.attr("element")):"editor"===this._getColType(this.attr("colidsinfo")[t[r]])&&i._hide(e,"api"),("msie"!==f.$.browser.name&&"msedge"!==f.$.browser.name||i.attr("row")===this._idx("row","focus")&&i.attr("col")===this._idx("col","focus"))&&i.attr("row")===this._idx("row","focus")&&i.attr("col")===this._idx("col","focus")||i._hide(e,"api");e=i=null}this._removeTooltip(),this.attr("hideedit",!1,"boolean")},f.QCELL.NormalQCELL.prototype._onScrollHideEditCellsDOM=function(){try{var t=this.attr("editcolids");if(t.length>0){var e,i;this.attr("hideedit",!0,"boolean");for(var r=0;r<t.length;r++)i=this._getColElement(this.attr("colidsinfo")[t[r]]),e=this._getCellDOM(i.attr("row"),i.attr("col")),i._hide(e,"api");e=i=null}this._removeTooltip(),this.attr("hideedit",!1,"boolean")}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._onScrollHideEditCellsDOM",t.message),!1}},f.QCELL.NormalQCELL.prototype._isValidEditColId=function(t){var e,i=this.attr("editcolids");for(e=0;e<i.length;e++)if(i[e]===t)return!0;return!1},f.QCELL.NormalQCELL.prototype._addEditColId=function(t){var e=this.attr("editcolids");e.push(t),e=f._.uniq(e),this.attr("editcolids",e,"array")},f.QCELL.NormalQCELL.prototype._removeEditColId=function(t){var e=this.attr("editcolids");e=f._.without(e,t),this.attr("editcolids",e,"array")},f.QCELL.NormalQCELL.prototype._showMask=function(t,e){try{var i=this._getColMask(t);if(!f._.isUndefined(i)&&f._.isObject(i))if("currency"===i.alias){var r={alias:"currency"};r.prefix=void 0===i.prefix?"":i.prefix,r.digits=void 0===i.digits?0:i.digits,r.allowPlus=!1,f.$(e).inputmask(r)}else f.$(e).inputmask({mask:i.alias});return!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._showMask",t.message),!1}},f.QCELL.NormalQCELL.prototype._showUnMask=function(t,e,i){var r=e;try{var s=this._getColMask(t);if(!f._.isUndefined(s)&&f._.isObject(s)){if("currency"===s.alias){var a={alias:"currency"};return a.prefix=void 0===s.prefix?"":s.prefix,a.digits=void 0===s.digits?0:s.digits,r=u.unmask(r,a)}if(f._.isObject(i)&&"number"===i.type&&-1!==s.alias.indexOf(".")){var o=e.split(".");r="";for(var n=0;n<o.length;n++)""!==r&&(r+="."),r+=null===u.unmask(o[n],{alias:s.alias})?"0":u.unmask(o[n],{alias:s.alias})}else r=u.unmask(r,{alias:s.alias});null!==r&&"null"!==r||(r="")}}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._showUnMask",t.message),r=e}return r},f.QCELL.NormalQCELL.prototype._moveCols=function(t,e,i,r){this._onScrollHideEditCellsDOM(),f.QCELL.BasicQCELL.prototype._moveCols.call(this,t,e,i,r)},f.QCELL.NormalQCELL.prototype._setColWidth=function(t,e){this._onScrollHideEditCellsDOM(),f.QCELL.BasicQCELL.prototype._setColWidth.call(this,t,e)},f.QCELL.NormalQCELL.prototype._editcell=function(t,e){var i=this._getQCellCol(e).attr("celldisabled")[t];if(!0!==this._getQCellCol(e).attr("disabled")&&!i){var r=this._getCellDOM(t,e);if(null!==r){if(this._isBottomPanel(r))return;switch(this._hideEditCellsDOM(),this._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(f._.isUndefined(i)||!1===i)&&(this._getColElement(e).attr("showkey",!0,"boolean"),this._getColElement(e)._show(r,""));break;case"datepicker":(f._.isUndefined(i)||!1===i)&&this._getColElement(e)._show(r);break;case"multicheckbox":case"editor":(f._.isUndefined(i)||!1===i)&&this._getColElement(e)._show(r,t,e)}switch(this._getColType(e)){case"checkbox":case"image":case"button":(f._.isUndefined(i)||!1===i)&&this._getColElement(e)._outerClick(t,e)}}}},f.QCELL.NormalQCELL.prototype._moveNextCell=function(t,e,i){for(var r,s=this.getID();;){if(++e>=this.getCols()){if(e=this.getCols("header"),++t>=this.getRows())return;this.attr("movescroll",!0,"boolean")}var a=this._getQCellCol(e).attr("celldisabled")[t];if(a=void 0!==a&&a,f._.isUndefined(a)||!0!==a){var o=!1;switch(this._getColType(e)){case"input":case"textarea":case"selectmenu":case"button":case"datepicker":o=!0}if(!0===o)break}}setTimeout((function(){var i=void 0===(r=f.QCELL.getInstance(s))._getCellDOM(t,e)||null===r._getCellDOM(t,e);!0===r.attr("movescroll")&&(i=!0),r.editCell(t,e,i),r=null}),i)},f.QCELL.NormalQCELL.prototype._createCols=function(){return f.QCELL.BasicQCELL.prototype._createCols.call(this)},f.QCELL.NormalQCELL.prototype._createHeaderCol=function(t){try{return f.QCELL.NormalQCELL.QCellCol.create(f._.extend(f._.clone(t),{parent:this,id:"col_"+this.attr("qcellcols").length,width:this.attr("headercolwidth")+"px",move:!1}))}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._createHeaderCol",t.message),null}},f.QCELL.NormalQCELL.prototype._createCol=function(t,e){try{return f.QCELL.NormalQCELL.QCellCol.create(t,f._.extend(f._.clone(e),{parent:this,id:"col_"+this.attr("qcellcols").length}))}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._createCol",t.message),null}},f.QCELL.NormalQCELL.prototype._createColHeaderCells=function(t){try{for(var e=this.attr("hsinfo"),i=f.QCELL.def.css,r=this.attr("elementpool"),s=this.attr("headerrows"),a=this.attr("headercols"),o=this.attr("frozencols"),n=this.attr("rowheight").header,l=this.attr("cellmatrix").get("row"),c=this.attr("headertext"),h=r.get("colheaderinner"),u=this.attr("id"),d=0;d<s;d++){var p=0,g=d;void 0===l[d]&&l.push([]);for(var _=0;_<e.nDynamicCols;_++){var C=this._createCell(t,!1),L=_+a,m=this._getColWidth(L),E=this._getColType(L),v=this._getQCellCol(L).attr("style");if(C.setAttribute("data-row",g),C.setAttribute("data-col",L),C.setAttribute("id",u+"_cell_"+g+"_"+L),C.style.width=m+"px",C.style.height=n+"px",C.style.display="flex",C.style.justifyContent="center",C.style.alignItems="center",C.style.left=p+"px",C.style.top=n*d+"px",C.className+=" "+i.CELL_COLHEADER+" "+i.CELL_HEADERROWS+" "+(_<o?i.CELL_FROZENCOLS:i.CELL_NORMALCOLS)+" "+this._getColStyleClassName(L,"header")+" "+i.COLHEADER_AREA,!f._.isEmpty(v)){if(f._.isObject(v.header))for(var b=Object.keys(v.header),y=0;y<b.length;y++)f.$(C).css(b[y],v.header[b[y]]);this.attr("qcellcols")[L].attr("style",{header:v.header,data:v.data},"object")}var w=void 0===c[L][g]?"":c[L][g];"checkbox"===E||"html"===E?("checkbox"===E?C.className+=" "+i.COLHEADER_CELL_CHECKBOX+" "+i.COLHEADER_AREA:(this.attr("useall")||this.attr("usetreeall"))&&C.setAttribute("aria-hidden","true"),this._getColElement(L)._headershow(C,g,L)):(C.innerHTML=this._getHeaderCellSpan(w,g,L),(this.attr("useall")||this.attr("usetreeall"))&&C.setAttribute("aria-hidden","true"),(g===s-1||this._isLastHeaderRowMasterCell(g,L))&&this.attr("useGroupUI")&&f.$(C).draggable({helper:this._setGroupMakeHelper,revert:"invalid"})),0===g&&this._getQCellCol(L).attr("topmove")&&C.appendChild(this._getColHeaderDragDropArea()),(g===s-1||this._isLastHeaderRowMasterCell(g,L))&&(this._getQCellCol(L).attr("move")&&C.appendChild(this._getColHeaderDragDropArea()),this._getQCellCol(L).attr("search")&&C.appendChild(this._getColSearchArea()),this._getQCellCol(L).attr("sort")&&(f._.isUndefined(this._getQCellCol(L).attr("options").wholeselect)||!1===this._getQCellCol(L).attr("options").wholeselect)&&("checkbox"!==E||!1===this.attr("paginationinfo").totalsort||!1===f._.isUndefined(this.attr("paginationinfo"))&&f._.isUndefined(this.attr("paginationinfo").url))&&C.appendChild(this._getDefaultSortArea(L)),this._getQCellCol(L).attr("resize")&&C.appendChild(this._getColResizeArea()),this._getQCellCol(L).attr("filter")&&(this._getQCellCol(L).attr("colfilterarea",null,"jquery"),C.appendChild(this._getFilterArea(L))),this._getQCellCol(L).attr("editor")&&C.appendChild(this._getColStyleEditorArea()),this._getQCellCol(L).attr("remove")&&(C.appendChild(this._getDefaultRemoveArea(L)),this.attr("useRemoveUI",!0,"boolean"))),h.appendChild(C),l[d].push(C),p+=parseFloat(m)}}return this._createDataIndexPool(),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._createColHeaderCells",t.message),!1}},f.QCELL.NormalQCELL.prototype._getTitleHeader=function(t){for(var e=this._cellValue(0,t),i="",r=1;r<this.getRows("header");r++){""!==i&&(i+=","),i+=void 0===this._cellValue(r,t)?"":this._cellValue(r,t)}return""!==i&&(i="( "+i+" )"),e+i},f.QCELL.NormalQCELL.prototype._getTitlekey=function(t,e,i,r,s){var a=this;if(!(e<this.attr("headerrows"))){var o,n,l,c,h=this._getColTitlekey(i),u=f.QCELL.def.css,d=this.getRows("header"),p=!0!==s?" 수정":"";if(d--,null!=h&&!0===f._.isFunction(h)){var g=this.getRowData(e);if(void 0===g)return;void 0!==(o=h(e,i,g))&&""!==o||(n=this._getTitleHeader(i),o=e-d+"행 "+n+"열 "+r+p),f.$(t).hasClass(u.CELL)?(t.setAttribute("role","gridcell"),void 0===t.getElementsByClassName("hide")[0]?(l=document.createElement("span"),f.util.addClass(l,"hide"),c=document.createTextNode(o),l.appendChild(c),t.insertBefore(l,t.firstChild)):f.$(t.getElementsByClassName("hide")[0]).text(o)):f.$(t).text(o)}else if(n=this._getTitleHeader(i),o=""!==p?e-d+"행 "+n+"열 "+r+p:e-d+"행 "+n+"열 "+p,f.$(t).hasClass(u.CELL)){var _=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(!0===_.grouped)for(var C=_.columnsinfo.keys(!0),L=0;L<C.length;L++){if(this._getColOfID(C[L])===i)return l=document.createElement("span"),f.util.addClass(l,"hide"),c=document.createTextNode(o),l.appendChild(c),void t.insertBefore(l,t.firstChild)}if("html"===this._getColType(i)||"image"===this._getColType(i)||"checkbox"===this._getColType(i))void 0===t.getElementsByClassName("hide")[0]?(l=document.createElement("span"),f.util.addClass(l,"hide"),c=document.createTextNode(o),l.appendChild(c),t.insertBefore(l,t.firstChild)):f.$(t.getElementsByClassName("hide")[0]).text(o);else{var m=t.getElementsByTagName("button")[0],E=null;void 0!==m&&(E=m.cloneNode(!0)),f.$(t).html('<span class="hide">'+o+"</span>"+r),t.setAttribute("role","gridcell"),null!==E&&(E.onclick=function(t){a.focusCell(e,i),!0!==a.attr("oneclickedit")&&setTimeout((function(){a._editcell(e,i)}),100)},E.onfocus=function(t){a._focusCell(e,i),a._scrollToFocusCell(e,i)},t.appendChild(E))}}else f.$(t).text(o)}},f.QCELL.NormalQCELL.prototype._resetAriaLabel=function(t){for(var e=this.attr("vsinfo"),i=e.nTopRow;i<=e.nBottomRow;i++){var r=this._getCellDOM(i,t);if(null!=r){var s=this.getCellData(i,t);s=void 0===s?"":s,this._setAriaLabel(r,i,t,s,!1)}}},f.QCELL.NormalQCELL.prototype._setAriaLabel=function(t,e,i,r,s){var a=this,o=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=f.QCELL.def.css;if(r=void 0===r?"":r,o.grouped&&o.exclude.length>0){var l=0,c=this.getRowData(e);if(void 0!==o.level&&void 0!==c&&(l=c[o.level]),void 0!==l&&l>1)for(var h=0;h<o.exclude.length;h++)if(o.exclude[h]===this._getKeyOfCol(i)){r="",f.util.textContent(t,r);break}}if(this.attr("useall")||this.attr("usetreeall")){var u,d=this._getColType(i);if("input"===d||"selectmenu"===d||"datepicker"===d||"textarea"===d)if(0!==t.getElementsByClassName(n.TYPE_INPUT_EDIT_STYLE).length||this._isBottomPanel(t)){var p=t.getElementsByClassName(n.TYPE_INPUT_EDIT_STYLE)[0];!0===s&&f.$(p).focus(),this._getTitlekey(p,e,i,r),this._getTitlekey(t,e,i,r,!0)}else(u=document.createElement("button")).setAttribute("tabindex","0"),u.setAttribute("type","button"),u.className=n.TYPE_INPUT_EDIT_STYLE,t.appendChild(u),u.onclick=function(t){a.focusCell(e,i),!0!==a.attr("oneclickedit")&&setTimeout((function(){a._editcell(e,i)}),100)},u.onfocus=function(t){a._focusCell(e,i),a._scrollToFocusCell(e,i)},s&&f.$(u).focus(),this._getTitlekey(u,e,i,r),this._getTitlekey(t,e,i,r,!0);else this._getTitlekey(t,e,i,r,!0)}else{var g=this._getTitleHeader(i);t.setAttribute("aria-label",e+"행 "+g+"열 ")}},f.QCELL.NormalQCELL.prototype._setAriaLabelEx=function(t,e,i,r){if(!(i<this.getCols("header"))){var s=this.getCellLabel(e,i);this._setAriaLabel(t,e,i,s,r)}},f.QCELL.NormalQCELL.prototype._createViewPortCellsAll=function(t){try{var e,i,r,s,a,o,n,l,c=f.QCELL.def.rowgroup,h=f.QCELL.def.css,u=this.attr("elementpool").get("viewportinner"),d=this.attr("cellmatrix").get("row"),p=this.attr("currentdata"),g=this.attr("headerrows"),_=this.attr("headercols"),C=this.attr("frozencols"),L=this.attr("rowheight").data,m=this.attr("layoutsize").viewport.clientHeight,E=this.attr("vsinfo").nDynamicRows,v=this.attr("hsinfo").nDynamicCols,b=this.attr("highlightrepeat"),y=p.length,w=this.attr("emptymessage"),x=[],Q=[],k=this.attr("data").input,T="msie"===f.$.browser.name?0:2,R="panel"===this.attr("frozenbottomstyle"),A=this.attr("id");if(0===E&&0===k.length)f.$.trim(w).length>0&&!1!==this.attr("useemptymessage")&&(i=this._createEmptymessage(t),u.appendChild(i));else{var S=this.attr("cols"),O=this.attr("rows");for(this._setInitCellDisabled(O,S),this._setInitCellInvisible(O,S),e=0;e<E;e++){var D,I=e+g;for(s=0,t.cloneNode().setAttribute("role","rowgroup"),(l=t.cloneNode()).setAttribute("role","row"),l.setAttribute("aria-rowindex",I),D=this._getRowGroupOfDynamicRows(e),void 0===d[g+e]&&d.push([]),D===c.FROZENBOTTOM&&(I=y+g-(E-e)),a=0;a<v;a++){n=a+_;var N,P=this._getColType(n),M=this._getKeyOfCol(n),q=this._getQCellCol(n).attr("style");if(0===e&&(Q.push(this._useDataTextAlign(n)),x.push(this._getDataTextAlign(n))),o=this._getColTabindex(n),i=this._createCell(t,o),r=this._getColWidth(n),i.style.width=r+"px",i.style.height=L+"px",Q[a]&&(i.style.textAlign=x[a]),this._getColWordwrap(n)?i.style.whiteSpace="pre-wrap":i.style.lineHeight=L-T+"px",i.style.left=s+"px",i.className+=" "+h.CELL_VIEWPORT+" "+(a<C?h.CELL_FROZENCOLS:h.CELL_NORMALCOLS)+" "+this._getColStyleClassName(n,"data"),i.setAttribute("data-row",I),i.setAttribute("data-col",n),i.setAttribute("id",A+"_cell_"+I+"_"+n),!f._.isEmpty(q)){if(f._.isObject(q.data))for(var B=Object.keys(q.data),H=0;H<B.length;H++)f.$(i).css(B[H],q.data[B[H]]);this.attr("qcellcols")[n].attr("style",{header:q.header,data:q.data},"object")}d[g+e].push(i),D===c.FROZENBOTTOM?(N=p[I-g][M],i.style.top=m-L*(E-e)+"px",!0===R?(P="static",i.className+=" "+h.CELL_FROZENBOTTOMROWS_PANEL):i.className+=" "+h.CELL_FROZENBOTTOMROWS):(N=p[e][M],i.style.top=L*e+"px",i.className+=" "+(D===c.FROZEN?h.CELL_FROZENROWS:h.CELL_NORMALROWS)),b>0&&(I-g+1)%b==0&&(i.className+=" "+h.CELL_HIGHLIGHTREPEAT),N=void 0===N?"":N;var U=this._showDataFormat(I,n,N);switch(!0===R&&D===c.FROZENBOTTOM&&(U=N,"checkbox"!==this._getColType(n)||!0!==U&&!1!==U||(U="")),P){case"input":case"number":case"slider":default:f.util.textContent(i,U),this._setAriaLabel(i,I,n,U);break;case"checkbox":case"image":case"html":case"chart":case"button":this._getColElement(n)._show(i,I,n);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":this._getColElement(n)._showDataLabel(i,I,n,N)}switch(P){case"input":i.className+=" "+h.TYPE_INPUT_CELL;break;case"inputbutton":i.className+=" "+h.TYPE_INPUTBUTTON_CELL;break;case"textarea":i.className+=" "+h.TYPE_TEXTAREA_CELL;break;case"selectmenu":i.className+=" "+h.TYPE_SELECTMENU_CELL;break;case"datepicker":i.className+=" "+h.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":i.className+=" "+h.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":i.className+=" "+h.TYPE_CHECKBOX_CELL;break;case"image":i.className+=" "+h.TYPE_IMAGE_CELL;break;case"html":i.className+=" "+h.TYPE_HTML_CELL;break;case"chart":i.className+=" "+h.TYPE_CHART_CELL;break;case"multicheckbox":i.className+=" "+h.TYPE_MULTICHECKBOX_CELL;break;case"number":i.className+=" "+h.TYPE_NUMBER_CELL;break;case"slider":i.className+=" "+h.TYPE_SLIDER_CELL;break;case"button":i.className+=" "+h.TYPE_BUTTON_CELL;break;case"editor":i.className+=" "+h.TYPE_EDITOR_CELL;break;default:i.className+=" "+h.TYPE_STATIC_CELL}u.appendChild(i),s+=parseFloat(r)}}}return this._setRoleTitle(this.attr("parent")),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._createViewPortCellsAll",t.message),!1}},f.QCELL.NormalQCELL.prototype._createViewPortCells=function(t){try{if(this.attr("useall")||this.attr("usetreeall"))return this._createViewPortCellsAll(t);var e,i,r,s,a,o,n=f.QCELL.def.rowgroup,l=f.QCELL.def.css,c=this.attr("elementpool").get("viewportinner"),h=this.attr("cellmatrix").get("row"),u=this.attr("currentdata"),d=this.attr("headerrows"),p=this.attr("headercols"),g=this.attr("frozencols"),_=this.attr("rowheight").data,C=this.attr("layoutsize").viewport.clientHeight,L=this.attr("vsinfo").nDynamicRows,m=this.attr("hsinfo").nDynamicCols,E=this.attr("highlightrepeat"),v=u.length,b=this.attr("emptymessage"),y=[],w=[],x=this.attr("data").input,Q="msie"===f.$.browser.name?0:2,k="panel"===this.attr("frozenbottomstyle"),T=this.attr("id");if(0===L&&0===x.length)f.$.trim(b).length>0&&!1!==this.attr("useemptymessage")&&(i=this._createEmptymessage(t),c.appendChild(i));else{var R=this.attr("cols"),A=this.attr("rows");for(this._setInitCellDisabled(A,R),this._setInitCellInvisible(A,R),L>v&&(L=v),e=0;e<L;e++){var S,O=e+d;for(s=0,S=this._getRowGroupOfDynamicRows(e),void 0===h[d+e]&&h.push([]),S===n.FROZENBOTTOM&&(O=v+d-(L-e)),a=0;a<m;a++){var D,I=a+p,N=this._getColType(I),P=this._getKeyOfCol(I),M=this._getQCellCol(I).attr("style");if(0===e&&(w.push(this._useDataTextAlign(I)),y.push(this._getDataTextAlign(I))),o=this._getColTabindex(I),i=this._createCell(t,o),r=this._getColWidth(I),i.style.width=r+"px",i.style.height=_+"px",w[a]&&(i.style.textAlign=y[a]),this._getColWordwrap(I)?i.style.whiteSpace="pre-wrap":i.style.lineHeight=_-Q+"px",i.style.left=s+"px",i.className+=" "+l.CELL_VIEWPORT+" "+(a<g?l.CELL_FROZENCOLS:l.CELL_NORMALCOLS)+" "+this._getColStyleClassName(I,"data"),i.setAttribute("data-row",O),i.setAttribute("data-col",I),i.setAttribute("id",T+"_cell_"+O+"_"+I),!f._.isEmpty(M)){if(f._.isObject(M.data))for(var q=Object.keys(M.data),B=0;B<q.length;B++)f.$(i).css(q[B],M.data[q[B]]);this.attr("qcellcols")[I].attr("style",{header:M.header,data:M.data},"object")}h[d+e].push(i),S===n.FROZENBOTTOM?(D=u[O-d][P],i.style.top=C-_*(L-e)+"px",!0===k?(N="static",i.className+=" "+l.CELL_FROZENBOTTOMROWS_PANEL):i.className+=" "+l.CELL_FROZENBOTTOMROWS):(D=u[e][P],i.style.top=_*e+"px",i.className+=" "+(S===n.FROZEN?l.CELL_FROZENROWS:l.CELL_NORMALROWS)),E>0&&(O-d+1)%E==0&&(i.className+=" "+l.CELL_HIGHLIGHTREPEAT),D=null==D?"":D;var H=this._showDataFormat(O,I,D);switch(!0===k&&S===n.FROZENBOTTOM&&(H=D,"checkbox"!==this._getColType(I)||!0!==H&&!1!==H||(H="")),N){case"input":case"number":case"slider":case"inputdatepicker":default:f.util.textContent(i,H),this._setAriaLabel(i,O,I,H);break;case"checkbox":case"image":case"html":case"chart":case"button":this._getColElement(I)._show(i,O,I);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":this._getColElement(I)._showDataLabel(i,O,I,D)}switch(N){case"input":i.className+=" "+l.TYPE_INPUT_CELL;break;case"inputbutton":i.className+=" "+l.TYPE_INPUTBUTTON_CELL;break;case"textarea":i.className+=" "+l.TYPE_TEXTAREA_CELL;break;case"selectmenu":i.className+=" "+l.TYPE_SELECTMENU_CELL;break;case"datepicker":i.className+=" "+l.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":i.className+=" "+l.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":i.className+=" "+l.TYPE_CHECKBOX_CELL;break;case"image":i.className+=" "+l.TYPE_IMAGE_CELL;break;case"html":i.className+=" "+l.TYPE_HTML_CELL;break;case"chart":i.className+=" "+l.TYPE_CHART_CELL;break;case"multicheckbox":i.className+=" "+l.TYPE_MULTICHECKBOX_CELL;break;case"number":i.className+=" "+l.TYPE_NUMBER_CELL;break;case"slider":i.className+=" "+l.TYPE_SLIDER_CELL;break;case"button":i.className+=" "+l.TYPE_BUTTON_CELL;break;case"editor":i.className+=" "+l.TYPE_EDITOR_CELL;break;default:i.className+=" "+l.TYPE_STATIC_CELL}c.appendChild(i),s+=parseFloat(r)}}}return!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._createViewPortCells",t.message),!1}},f.QCELL.NormalQCELL.prototype._insertRows=function(t,e){try{var i=this,r=this.attr("vsinfo"),s=this.attr("currentdata"),a=this.attr("headerrows"),o=e.length,n=r.bVScroll,l=this.attr("rowheaderdata"),c=this.attr("rowheadercheckboxclick"),h=this.attr("originstate"),u=0;if(t>s.length&&!0===this.attr("makefrozenbottomdata")&&(t=s.length+a-1),this._onScrollHideEditCellsDOM(),this._setAddCellDisabled(t),this._setAddCellInvisible(t),s.RT_insertArray(t-a,e),!0===this.attr("pagesyncorgindata")){var d=this.attr("paginationinfo");u=(d.pageindex-1)*d.pageunit,this.attr("data").input.RT_insertArray(t+u-a,e);for(var p=0;p<o;p++){e[p].rt_qc_page_state="i"}}this._updateCurrentData(s),l.RT_insertArray(t-a,[{}]),c.RT_insertArray(t-a,[{}]),this._updateRowheaderData(l,c),this._clearDynamicCSS("row","data"),this._makeRowUI(o,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,o,"i"),f._.each(f._.range(t,t+o),(function(e,r){i._setRowState(e,"i"),i.attr("original")&&h.i.push({nRow:t-a})})),this._refreshDRs(),this.attr("percentcolwidth")&&n!==r.bVScroll&&this._refreshDCs();for(var g=this.attr("rowheaders"),_=0;_<this.attr("headercols");_++)if("checkbox"===g[_])for(var C=this.attr("headerrows");C<this.getRows();C++){var L=this._getCellDOM(C,_);null===L||f.$(L).hasClass("rt-qc-cell-normalrows")||(L.classList+=" rt-qc-cell-normalrows rt-qc-rowheader-cell-checkbox")}return!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._insertRows",t.message),!1}},f.QCELL.NormalQCELL.prototype._deleteRows=function(t,e){try{var i,r,s,a=this,o=this.attr("vsinfo"),n=this.attr("currentdata"),l=this.attr("headerrows"),c=o.bVScroll,h=this.attr("rowheaderdata"),u=this.attr("rowheadercheckboxclick"),d=a.attr("originstate");if(t-l<0)return!1;if(t-l+e>n.length)return!1;if(this._onScrollHideEditCellsDOM(),this._setDeleteCellDisabled(t),this._setDeleteCellInvisible(t),e=e>n.length?n.length:e,i=n.splice(t-l,e),!0===this.attr("pagesyncorgindata")){var p=this.attr("paginationinfo"),g=(p.pageindex-1)*p.pageunit;this.attr("data").input.splice(t+g-l,e)}for(var _=0,C=i.length;_<C;_++)if("i"!==this._getRowState(t+_)&&a.attr("deletedrowsdata").push(i[_]),a.attr("original"))if("i"!==this._getRowState(t+_))d.d.push({nRow:t-l});else for(s=0;s<d.i.length;s++)d.i[s].nRow===t+_&&d.i.splice(s,1);return this._updateCurrentData(n),h.splice(t-l,e),u.splice(t-l,e),this._updateRowheaderData(h,u),r=this.attr("rows"),(this._idx("row","focus","current")>=r||this._getSelectedRows().sort(f.st.desc)[0]>=r)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(e,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,e,"d"),this._refreshDRs(),this.attr("percentcolwidth")&&c!==o.bVScroll&&this._refreshDCs(),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._deleteRows",t.message),!1}},f.QCELL.NormalQCELL.prototype._insertStaticRows=function(t,e){try{var i=this.attr("vsinfo"),r=this.attr("currentdata"),s=this.attr("headerrows"),a=e.length,o=i.bVScroll,n=this.attr("rowheaderdata"),l=this.attr("rowheadercheckboxclick"),c=this.attr("staticrowsinfo");if(t>this.getRows()&&(t=this.getRows()),this._onScrollHideEditCellsDOM(),r.RT_insertArray(t-s,e),this._updateCurrentData(r),n.RT_insertArray(t-s,[{}]),l.RT_insertArray(t-s,[{}]),!0===this.attr("pagesyncorgindata")){var h=this.attr("paginationinfo"),u=(h.pageindex-1)*h.pageunit;this.attr("data").input.RT_insertArray(t+u-s,e)}return this._updateRowheaderData(n,l),this._makeRowUI(a,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),f._.each(f._.range(t,t+a),(function(t,e){c.push({nRow:t})})),this._refreshDRs(),this.attr("percentcolwidth")&&o!==i.bVScroll&&this._refreshDCs(),this.setRowDisable(t,!0),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._insertRows",t.message),!1}},f.QCELL.NormalQCELL.prototype._deleteStaticRows=function(t,e){try{var i,r,s,a=this,o=this.attr("vsinfo"),n=this.attr("currentdata"),l=this.attr("headerrows"),c=o.bVScroll,h=this.attr("rowheaderdata"),u=this.attr("rowheadercheckboxclick"),d=a.attr("originstate"),p=this.attr("staticrowsinfo"),g=this.attr("headercols"),_=this.attr("cols"),C=f.QCELL.def.css;for(this._onScrollHideEditCellsDOM(),s=g;s<_;s++){var L=this._getCellDOM(t,s),m=this._getColID(s);f._.isUndefined(L)||f.util.removeClass(L,C.STATIC_ROW+" "+C.STATIC_ROW+"-"+m)}if(this._setDeleteCellDisabled(t),this._setDeleteCellInvisible(t),e=e>n.length?n.length:e,i=n.splice(t-l,e),!0===this.attr("pagesyncorgindata")){var E=this.attr("paginationinfo"),v=(E.pageindex-1)*E.pageunit;this.attr("data").input.splice(t+v-l,e)}for(var b=0,y=i.length;b<y;b++){if("i"!==this._getRowState(t+b)&&a.attr("deletedrowsdata").push(i[b]),a.attr("original"))if("i"!==this._getRowState(t+b))d.d.push({nRow:t-l});else for(s=0;s<d.i.length;s++)d.i[s].nRow===t+b&&d.i.splice(s,1);for(s=0;s<p.length;s++)p[s].nRow===t+b&&p.splice(s,1)}return this._updateCurrentData(n),h.splice(t-l,e),u.splice(t-l,e),this._updateRowheaderData(h,u),r=this.attr("rows"),(this._idx("row","focus","current")>=r||this._getSelectedRows().sort(f.st.desc)[0]>=r)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(e,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,e,"d"),this._deleteDStates(),this._refreshDRs(),this.attr("percentcolwidth")&&c!==o.bVScroll&&this._refreshDCs(),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._deleteStaticRows",t.message),!1}},f.QCELL.NormalQCELL.prototype._insertRowsEx=function(t){try{var e,i=this,r=this.attr("vsinfo"),s=this.attr("currentdata"),a=this.attr("headerrows"),o=t.length,n=r.bVScroll,l=this.attr("rowheaderdata"),c=this.attr("rowheadercheckboxclick"),h=i.attr("originstate");return this._onScrollHideEditCellsDOM(),t.sort((function(t,e){return e[0]-t[0]})),e=f._.pluck(t,0),f._.each(t,(function(t){if(s.RT_insert(t[0]-a,t[1]),l.RT_insertArray(t[0]-a,[{}]),c.RT_insertArray(t[0]-a,[{}]),!0===i.attr("pagesyncorgindata")){var e=i.attr("paginationinfo"),r=(e.pageindex-1)*e.pageunit;i.attr("data").input.RT_insertArray(t[0]+r-a,[{rt_qc_page_state:"i"}])}})),this._updateCurrentData(s),this._updateRowheaderData(l,c),this._makeRowUI(o,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfoEx(e,"i"),f._.each(e,(function(t,e){i._setAddCellDisabled(t),i._setAddCellInvisible(t),i._setRowState(t+(o-e-1),"i"),i.attr("original")&&h.i.push({nRow:t-a})})),this._refreshDRs(),this.attr("percentcolwidth")&&n!==r.bVScroll&&this._refreshDCs(),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._insertRowsEx",t.message),!1}},f.QCELL.NormalQCELL.prototype._deleteRowsEx=function(t){try{var e,i=this,r=this.attr("vsinfo"),s=this.attr("currentdata"),a=this.attr("headerrows"),o=r.bVScroll,n=this.attr("rowheaderdata"),l=this.attr("rowheadercheckboxclick"),c=i.attr("originstate");this._onScrollHideEditCellsDOM(),t.sort(f.st.desc);var h=!1,u=!1;return f._.each(t,(function(t){t-a<0?u=!0:t-a>=s.length&&(h=!0)})),!0===u?!1:!0!==h&&(f._.each(t,(function(t){i._setDeleteCellDisabled(t),i._setDeleteCellInvisible(t);var e=s.splice(t-a,1);if(n.splice(t-a,1),l.splice(t-a,1),!0===i.attr("pagesyncorgindata")){var r=i.attr("paginationinfo"),o=(r.pageindex-1)*r.pageunit;i.attr("data").input.splice(t+o-a,1)}if(e.length>0&&"i"!==i._getRowState(t)&&i.attr("deletedrowsdata").push(e[0]),i.attr("original"))if("i"!==this._getRowState(t))c.d.push({nRow:t-a});else for(var h=0;h<c.i.length;h++)c.i[h].nRow===t-a&&c.i.splice(h,1)})),this._updateCurrentData(s),this._updateRowheaderData(n,l),e=this.attr("rows"),(this._idx("row","focus","current")>=e||this._getSelectedRows().sort(f.st.desc)[0]>=e)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(t.length,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfoEx(t,"d"),this._refreshDRs(),this.attr("percentcolwidth")&&o!==r.bVScroll&&this._refreshDCs(),!0)}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._deleteRowsEx",t.message),!1}},f.QCELL.NormalQCELL.prototype._checkRequired=function(t){try{var e,i,r,s=[],a=this.attr("headercols"),o=this.attr("headerrows"),n=this.attr("cols"),l=this.attr("rows");for(i=a;i<n;i++)if(this._getQCellCol(i).attr("required"))for(e=o;e<l;e++)"string"==typeof(r=this._cellValue(e,i))?""!==(r=r.trim())&&null!=r||s.push({row:e,col:i}):null==r&&s.push({row:e,col:i});return s}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._checkRequired",t.message),[]}},f.QCELL.NormalQCELL.prototype._processValueChanged=function(t,e){var i,r,s=this.attr("rowheaders");for(i=0;i<s.length;i++)"state"===s[i]&&void 0!==(r=this._getCellDOM(t,i))&&this._setRowheaderState(r,t);null!=(r=this._getCellDOM(t,e))&&this._setAriaLabelEx(r,t,e),this._setMergedData(t,e),this._updateIdx("valuechanged",t,e),this._trigger("valuechanged"),!0===this.attr("treestate").grouped&&(this._setTreeState(t,"u"),this._treeRefresh(t,e))},f.QCELL.NormalQCELL.prototype._setMergedData=function(t,e){var i=this.attr("merge"),r=this._getColType(e),s=this.getCellData(t,e),a="";if("none"!==i.data){var o=i.data;if("checkbox"===r){var n=this._getColElement(e).attr("checkedvalue"),l=this._getColElement(e).attr("uncheckedvalue");a=s===n?l:n,"col"===o?this._setMergedDataSub_Col(t,e,s,a):"group"===o&&this._setMergedDataSub_Group(t,e,s,a)}}},f.QCELL.NormalQCELL.prototype._setMergedDataSub_Col=function(t,e,i,r){var s;for(s=t-1;s>=this.getRows("header")&&r===this.getCellData(s,e);s--)this.setCellData(s,e,i);for(s=t+1;s<this.getRows()&&r===this.getCellData(s,e);s++)this.setCellData(s,e,i)},f.QCELL.NormalQCELL.prototype._setMergedDataSub_Group=function(t,e,i,r){var s,a,o=this.getRows("header"),n=this.getRows();for(a=this.getCols("header");a<=e;a++){var l=this.getCellData(t,a);if(a===e&&(l=r),t-1>=this.getCols("header"))if(l===this.getCellData(t-1,a)){for(s=t;s>=o;s--)if((s!==t||a!==e)&&l!==this.getCellData(s,a)){o=s;break}}else o=t;for(s=t;s<n;s++)if((s!==t||a!==e)&&l!==this.getCellData(s,a)){n=s;break}}for(s=o;s<n;s++)this.setCellData(s,e,i)},f.QCELL.NormalQCELL.prototype._divisionSubmit=function(t,e){try{var i=0,r=0,s=this,a=function(t){t=t instanceof Object?t:JSON.parse(t),i=t instanceof Object?t.totalcnt:f._.clone(JSON.parse(t.totalcnt));var e=t instanceof Object&&t.data instanceof Object?f._.clone(t.data):f._.clone(JSON.parse(t.data)),r=s.attr("currentdata").length;if(r+e.length>i)for(var a=i;a<r+e.length;a++)e.pop();s._insertRows(s.attr("currentdata").length+1,e)};do{r++,f.$.ajax({url:t,async:!1,method:"POST",data:{pageindex:r,pagecnt:e}}).done(a)}while(s.attr("currentdata").length<i)}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._divisionSubmit",t.message),!1}return!0},f.QCELL.NormalQCELL.prototype._getCellLabel=function(t,e,i){var r="";switch(this._getColType(e)){case"checkbox":case"image":case"textarea":r=this._cellValue(t,e);break;case"selectmenu":var s=this._getColElement(e),a=this._cellValue(t,e),o=s._getDataArray();if(null==o)break;for(var n=0;n<o.length;n++)o[n].value===a&&(r=o[n].label);break;default:r=f.QCELL.BasicQCELL.prototype._getCellLabel.call(this,t,e,i)}return r},f.QCELL.NormalQCELL.prototype._getLabelByData=function(t,e){var i="";switch(this._getColType(t)){case"selectmenu":var r=this._getColElement(t)._getDataArray();if(null==r)break;for(var s=0;s<r.length;s++)r[s].value===e&&(i=r[s].label);break;default:i=null}return i},f.QCELL.NormalQCELL.prototype._getDataByLabel=function(t,e){var i="";switch(this._getColType(t)){case"selectmenu":var r=this._getColElement(t)._getDataArray();if(null==r)break;for(var s=0;s<r.length;s++)r[s].label===e&&(i=r[s].value);break;default:i=null}return i},f.QCELL.NormalQCELL.prototype._setInitCellDisabled=function(t,e){for(var i=0;i<e;i++)for(var r=this._getQCellCol(i).attr("celldisabled"),s=this._getQCellCol(i).attr("disabled"),a=0;a<t;a++)r.push(s)},f.QCELL.NormalQCELL.prototype._setAddCellDisabled=function(t){for(var e=this.attr("cols"),i=0;i<e;i++){var r=this._getQCellCol(i).attr("celldisabled"),s=this._getQCellCol(i).attr("disabled");r.splice(t,0,s)}},f.QCELL.NormalQCELL.prototype._setDeleteCellDisabled=function(t){for(var e=this.attr("cols"),i=0;i<e;i++){this._getQCellCol(i).attr("celldisabled").splice(t,1)}},f.QCELL.NormalQCELL.prototype._setCellDisabled=function(t,e,i,s){try{var a,o,n,l=this._getSyncInfo("row"),c=this._getSyncInfo("col"),h=this._getIdxInfo("celldisabled","row"),u=this._getIdxInfo("celldisabled","col"),d=this,p=-1;if("static"===this._getQCellCol(e).attr("type"))void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(n=this._getCellDOM(t,e).childNodes[0],(f.util.hasClass(n,f.QCELL.def.css.CELL_ROWHEADER_CHECKBOX)||f.util.hasClass(n,f.QCELL.def.css.CELL_ROWHEADER_RADIO))&&(this._setRowheaderDisable(t,e,i),!0===i?n.setAttribute("disabled","disabled"):n.removeAttribute("disabled")));else if("checkbox"===this._getQCellCol(e).attr("type")||"button"===this._getQCellCol(e).attr("type")){if(void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(n=this._getCellDOM(t,e).childNodes[0]).childNodes.length>0){var g=n.childNodes[0];!0===i?g.setAttribute("disabled","disabled"):g.removeAttribute("disabled")}}else"image"===this._getQCellCol(e).attr("type")&&void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(n=this._getCellDOM(t,e).childNodes[0],!0===i?n.onclick=null:!1===f._.isUndefined(this._getColOptions(e).imageclick)&&(p=e,n.onclick=function(t){window[d._getColOptions(p).imageclick](t)}));return this._getQCellCol(e).attr("celldisabled")[t]=i,!1===l.containsKey(t)&&l.put(t,new r._QHashSet),l.get(t).add("celldisabled"),!1===h.containsKey(t)&&h.put(t,new r._QHashtable),(a=h.get(t)).containsKey(e)?!1===i?a.remove(e):a.put(e,f._.extend(a.get(e),i)):!1===i?a.remove(e):a.put(e,f._.clone(i)),!1===c.containsKey(e)&&c.put(e,new r._QHashSet),c.get(e).add("style"),!1===u.containsKey(e)&&u.put(e,new r._QHashtable),(o=u.get(e)).containsKey(t)?!0===i?o.put(t,f._.extend(o.get(t),i)):o.remove(t):!0===i?o.put(t,f._.clone(i)):o.remove(t),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._setCellDisabled",t.message),!1}},f.QCELL.NormalQCELL.prototype._clearCellDisabled=function(){var t,e,i,r=this.attr("headerrows"),s=this.attr("headercols"),a=this.attr("rows"),o=this.attr("cols"),n=this,l=-1,c=function(t){window[n._getColOptions(l).imageclick](t)};for(i=0;i<s;i++)for(e=r;e<a;e++)!0===this._getQCellCol(i).attr("celldisabled")[e]&&("static"===this._getQCellCol(i).attr("type")&&void 0!==this._getCellDOM(e,i)&&null!==this._getCellDOM(e,i)&&this._getCellDOM(e,i).childNodes.length>0&&(t=this._getCellDOM(e,i).childNodes[0],(f.util.hasClass(t,f.QCELL.def.css.CELL_ROWHEADER_CHECKBOX)||f.util.hasClass(t,f.QCELL.def.css.CELL_ROWHEADER_RADIO))&&(this._setRowheaderDisable(e,i,!1),t.removeAttribute("disabled"))),this._getQCellCol(i).attr("celldisabled")[e]=!1);for(i=s;i<o;i++)for(e=r;e<a;e++)if(!0===this._getQCellCol(i).attr("celldisabled")[e]){if("checkbox"===this._getQCellCol(i).attr("type")||"button"===this._getQCellCol(i).attr("type")){if(void 0!==this._getCellDOM(e,i)&&null!==this._getCellDOM(e,i))if(this._getCellDOM(e,i).childNodes.length>0)if((t=this._getCellDOM(e,i).childNodes[0]).childNodes.length>0)t.childNodes[0].removeAttribute("disabled")}else"image"===this._getQCellCol(i).attr("type")&&void 0!==this._getCellDOM(e,i)&&null!==this._getCellDOM(e,i)&&this._getCellDOM(e,i).childNodes.length>0&&(t=this._getCellDOM(e,i).childNodes[0],!1===f._.isUndefined(this._getColOptions(i).imageclick)&&(l=i,t.onclick=c));this._getQCellCol(i).attr("celldisabled")[e]=!1}},f.QCELL.NormalQCELL.prototype._setRowheaderDisable=function(t,e,i){this.attr("rowheadercheckboxclick")[t][e]=!i},f.QCELL.NormalQCELL.prototype._checkValidationOfGroupProps=function(t){var e=this;return f.QCELL.BasicQCELL.prototype._checkValidationOfGroupProps.call(this,t)&&f._.every(t.columns,(function(t,i){var r=e._getColsOfKey(t.key);if(r.length>0){var s=r[0];return e._checkGroupPossibilityOfCol(s)}return!0}))},f.QCELL.NormalQCELL.prototype._checkGroupPossibilityOfCol=function(t){var e=!0;switch(this._getColType(t)){case"checkbox":case"image":case"html":case"selectmenu":case"chart":e=!1}return e},f.QCELL.NormalQCELL.prototype.onHScroll=function(t){this._onScrollHideEditCellsDOM(),f.QCELL.BasicQCELL.prototype.onHScroll.call(this,t)},f.QCELL.NormalQCELL.prototype._setInitCellInvisible=function(t,e){for(var i=0;i<e;i++)for(var r=this._getQCellCol(i).attr("cellinvisible"),s=this._getQCellCol(i).attr("invisibled"),a=0;a<t;a++)r.push(s)},f.QCELL.NormalQCELL.prototype._setAddCellInvisible=function(t){for(var e=this.attr("cols"),i=0;i<e;i++){var r=this._getQCellCol(i).attr("cellinvisible"),s=this._getQCellCol(i).attr("invisibled");r.splice(t,0,s)}},f.QCELL.NormalQCELL.prototype._setDeleteCellInvisible=function(t){for(var e=this.attr("cols"),i=0;i<e;i++){this._getQCellCol(i).attr("cellinvisible").splice(t,1)}},f.QCELL.NormalQCELL.prototype._setCellInvisible=function(t,e,i){try{var s,a,o,n=this._getSyncInfo("row"),l=this._getSyncInfo("col"),c=this._getIdxInfo("cellinvisible","row"),h=this._getIdxInfo("cellinvisible","col");if(void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)){var u=document.createElement("div");u.className+=f.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE,u.setAttribute("data-row",t),u.setAttribute("data-col",e),i?this._getCellDOM(t,e).childNodes.length>0&&(o=f._.isElement(this._getCellDOM(t,e).childNodes[0])?this._getCellDOM(t,e).childNodes[0]:this._getCellDOM(t,e),parseInt(o.getAttribute("data-row"))===t&&(f.$(o).hasClass(f.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)||(f.$("#cell_"+t+"_"+e).prepend(u),f.$(o).css({visibility:"hidden"})))):this._getCellDOM(t,e).childNodes.length>0&&(o=f._.isElement(this._getCellDOM(t,e).childNodes[0])?this._getCellDOM(t,e).childNodes[0]:this._getCellDOM(t,e),parseInt(o.getAttribute("data-row"))===t&&(f.$(o).hasClass(f.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)?f.$(o).remove():f.$(o).hasClass(f.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)||f.$(o).css({visibility:"visible"})))}return this._getQCellCol(e).attr("cellinvisible")[t]=i,!1===n.containsKey(t)&&n.put(t,new r._QHashSet),n.get(t).add("celldisabled"),!1===c.containsKey(t)&&c.put(t,new r._QHashtable),(s=c.get(t)).containsKey(e)?s.put(e,f._.extend(s.get(e),i)):s.put(e,f._.clone(i)),!1===l.containsKey(e)&&l.put(e,new r._QHashSet),l.get(e).add("style"),!1===h.containsKey(e)&&h.put(e,new r._QHashtable),(a=h.get(e)).containsKey(t)?a.put(t,f._.extend(a.get(t),i)):a.put(t,f._.clone(i)),!0}catch(t){return f.QCELL.log("err","QCELL.NormalQCELL._setCellInvisible",t.message),!1}},f.QCELL.NormalQCELL.prototype._clearCellInvisible=function(){for(var t,e=this.attr("headerrows"),i=this.attr("headercols"),r=this.attr("rows"),s=this.attr("cols"),a=e;a<r;a++)for(var o=i;o<s;o++){if(null!=(t=this._getCellDOM(a,o))&&t.childNodes.length>0){var n=t.childNodes[0];f.$(n).hasClass(f.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)&&f.$(n).remove()}this._getQCellCol(o).attr("cellinvisible")[a]=!1,t=null}},f.QCELL.NormalQCELL.prototype._singleSort=function(t,e,i){this._onScrollHideEditCellsDOM(),this._trigger("beforesort");var s=this;!0===this.attr("paginationinfo").totalsort&&this._movePage(1);var a,o,n,l,c,h,u,d=f._.isString(t)?t:this._getKeyOfCol(t),p=this.attr("headerrows"),g=this.attr("headercols"),_=this.attr("cols"),C=this.attr("currentdata"),L=this._getIdxInfo("style","row"),m=this._getIdxInfo("style","col"),E=this._getSyncInfo("row"),v=this._getSyncInfo("col"),b="rt_styleidxinfo",y="rt_syncinfo",w="rt_originrow",x=this._getIdxInfo("state","row"),Q="rt_stateidxinfo",k=new r._QHashSet,T=this._getIdxInfo("celldisabled","row"),R="rt_celldisabledidxinfo",A=this._getIdxInfo("cellinvisible","row"),S=this._getIdxInfo("cellinvisible","col"),O="rt_cellinvisibleidxinfo",D=[];if(f._.isNumber(t)){var I=this._getColFormat(t);null!=I&&void 0!==I.beforeformat&&f._.isFunction(I.beforeformat)&&(d="_rt_qc_bf_"+d)}if(!0===this.attr("makefrozenbottomdata")&&C.length>0&&!0===C[C.length-1].rt_qc_fbrd&&C.pop(),!0!==this.attr("isfirstsort")&&C.length>0){for(a=0;a<C.length;a++)C[a]._rt_qc_s_i=a;this.attr("isfirstsort",!0,"boolean")}E.size()>0&&E.each((function(t,e){t>C.length||f._.each(e.values(),(function(e){switch(e){case"style":case"state":case"celldisabled":case"cellinvisible":k.add(t)}}))}));var N=[],P=[];if(k.values().length>0){var M=this;if(M._clearDynamicCSS("row","data"),M._clearCellDisabled(),M._clearCellInvisible(),f._.each(k.values(),(function(t){t-p>=0&&(-1!==f._.indexOf(L.keys().sort(f.st.asc),t,!0)&&(C[t-p][b]=L.remove(t)),-1!==f._.indexOf(x.keys().sort(f.st.asc),t,!0)&&(C[t-p][Q]=x.remove(t)),-1!==f._.indexOf(T.keys().sort(f.st.asc),t,!0)&&(C[t-p][R]=T.remove(t)),-1!==f._.indexOf(A.keys().sort(f.st.asc),t,!0)&&(C[t-p][O]=A.remove(t)),C[t-p][y]=E.remove(t),C[t-p][w]=t)})),!0===this.attr("_isGTF")||this.attr("_isGTH"))for(a=C.length-1;a>=0;a--)void 0!==C[a]._rtqc_state&&"gt"===C[a]._rtqc_state&&(u=f._.clone(C[a]),D.push({row:a,obj:u}),C.splice(a,1));if("none"===e?f.util.RT_sortBy(C,"_rt_qc_s_i",e,i):f.util.RT_sortBy(C,d,e,i),D.length>0)for(c=D.length-1;c>=0;c--)(h=[]).push(D[c].obj),C.RT_insertArray(D[c].row,h);for(a=0;a<C.length;a++){var q=C[a][b],B=C[a][Q],H=C[a][R],U=C[a][O],F=C[a][y],z=C[a][w];if(delete C[a][b],delete C[a][Q],delete C[a][R],delete C[a][O],delete C[a][y],delete C[a][w],void 0!==C[a]._rt_qc_style){for(var W in C[a]._rt_qc_style){var j=this._getColsOfKey(W)[0];if(void 0===j)break;var G=f._.clone(C[a]._rt_qc_style[W]);G.col=j,G.key=W,N.push({row:a+s.getRows("header"),style:G})}delete C[a]._rt_qc_style}if(F&&z){if(q)for(L.put(a+p,q),o=0;o<_;o++)if(null!==m.get(o))for(n=0;n<m.get(o).keys().length;n++)(l=m.get(o).keys()[n])===z&&m.get(o).put(a+p,m.get(o).remove(l));if(B&&x.put(a+p,B),H)for(o=g;o<_;o++)!0===H.get(o)&&P.push({row:a+p,col:o});if(U)for(A.put(a+p,U),o=0;o<_;o++)if(null!==S.get(o))for(n=0;n<S.get(o).keys().length;n++)l=S.get(o).keys()[n],!1===M._getQCellCol(o).attr("cellinvisible")[a+p]&&M._setCellInvisible(a+p,o,!0),l===z&&S.get(o).put(a+p,S.get(o).remove(l));E.put(a+p,F)}}}else{if(!0===this.attr("_isGTF")||this.attr("_isGTH"))for(a=C.length-1;a>=0;a--)void 0!==C[a]._rtqc_state&&"gt"===C[a]._rtqc_state&&(u=f._.clone(C[a]),D.push({row:a,obj:u}),C.splice(a,1));if("none"===e?f.util.RT_sortBy(C,"_rt_qc_s_i",e,i):f.util.RT_sortBy(C,d,e,i),D.length>0)for(c=D.length-1;c>=0;c--)(h=[]).push(D[c].obj),C.RT_insertArray(D[c].row,h)}if(!1===v.containsKey(t)&&v.put(t,new r._QHashSet),v.get(t).add("sort"),f._.each(v.keys(),(function(e){e!==t&&v.get(e).contains("sort")&&(v.get(e).remove("sort"),v.get(e).isEmpty()&&v.remove(e))})),f._.isNumber(t)&&setTimeout((function(){s.attr("qcellcols")[t]._initUserColStyle(),s.attr("qcellcols")[t]._initUserColStyle()}),0),this._setCurrentData(C,!1,!0),setTimeout((function(){s._trigger("aftersort")})),this.attr("isSorting",!1,"boolean"),N.length>0)for(var V=0;V<N.length;V++)this.setCellStyle(N[V].row,N[V].style.col,N[V].style.style);for(o=g;o<_;o++)(!0===this._getQCellCol(o).attr("_coldisable")||this._getGridCol(o).attr("disabled"))&&this.setColDisable(o,!0);if(P.length>0)for(c=0;c<P.length;c++)this._setCellDisabled(P[c].row,P[c].col,!0)},f.QCELL.NormalQCELL.prototype._multiSort=function(t){this._onScrollHideEditCellsDOM(),this._trigger("beforesort"),!0===this.attr("paginationinfo").totalsort&&this._movePage(1);var e,i,s,a,o,n,l,c,h=[],u=this.attr("headerrows"),d=this.attr("headercols"),p=this.attr("cols"),g=this.attr("currentdata"),_=this._getIdxInfo("style","row"),C=this._getIdxInfo("style","col"),L=this._getSyncInfo("row"),m=this._getSyncInfo("col"),E="rt_styleidxinfo",v="rt_syncinfo",b="rt_originrow",y=this._getIdxInfo("state","row"),w="rt_stateidxinfo",x=new r._QHashSet,Q=this._getIdxInfo("celldisabled","row"),k="rt_celldisabledidxinfo",T=this._getIdxInfo("cellinvisible","row"),R=this._getIdxInfo("cellinvisible","col"),A="rt_cellinvisibleidxinfo",S=this,O=[],D=[];for(!0===this.attr("makefrozenbottomdata")&&g.length>0&&!0===g[g.length-1].rt_qc_fbrd&&g.pop(),L.size()>0&&L.each((function(t,e){t>g.length||f._.each(e.values(),(function(e){switch(e){case"style":case"state":case"celldisabled":case"cellinvisible":x.add(t)}}))})),f._.each(t,(function(t){h.push(f._.clone(t))})),i=0;i<h.length;i++)e=f._.isString(h[i][0])?h[i][0]:this._getKeyOfCol(h[i][0]),h[i][0]=e;if(x.values().length>0){var I=this;if(I._clearDynamicCSS("row","data"),I._clearCellDisabled(),I._clearCellInvisible(),f._.each(x.values(),(function(t){-1!==f._.indexOf(_.keys().sort(f.st.asc),t,!0)&&(g[t-u][E]=_.remove(t)),-1!==f._.indexOf(y.keys().sort(f.st.asc),t,!0)&&(g[t-u][w]=y.remove(t)),-1!==f._.indexOf(Q.keys().sort(f.st.asc),t,!0)&&(g[t-u][k]=Q.remove(t)),-1!==f._.indexOf(T.keys().sort(f.st.asc),t,!0)&&(g[t-u][A]=T.remove(t)),g[t-u][v]=L.remove(t),g[t-u][b]=t})),!0===this.attr("_isGTF")||this.attr("_isGTH"))for(i=g.length-1;i>=0;i--)void 0!==g[i]._rtqc_state&&"gt"===g[i]._rtqc_state&&(c=f._.clone(g[i]),D.push({row:i,obj:c}),g.splice(i,1));if(f.util.RT_sortBy(g,h),D.length>0)for(n=D.length-1;n>=0;n--)(l=[]).push(D[n].obj),g.RT_insertArray(D[n].row,l);for(i=0;i<g.length;i++){var N=g[i][E],P=g[i][w],M=g[i][k],q=g[i][A],B=g[i][v],H=g[i][b];if(delete g[i][E],delete g[i][w],delete g[i][k],delete g[i][A],delete g[i][v],delete g[i][b],B&&H){if(N)for(_.put(i+u,N),s=0;s<p;s++)if(null!==C.get(s))for(a=0;a<C.get(s).keys().length;a++)(o=C.get(s).keys()[a])===H&&C.get(s).put(i+u,C.get(s).remove(o));if(P&&y.put(i+u,P),M)for(s=d;s<p;s++)!0===M.get(s)&&O.push({row:i+u,col:s});if(q)for(T.put(i+u,q),s=0;s<p;s++)if(null!==R.get(s))for(a=0;a<R.get(s).keys().length;a++)o=R.get(s).keys()[a],!1===I._getQCellCol(s).attr("cellinvisible")[i+u]&&I._setCellInvisible(i+u,s,!0),o===H&&R.get(s).put(i+u,R.get(s).remove(o));L.put(i+u,B)}}}else{if(!0===this.attr("_isGTF")||this.attr("_isGTH"))for(i=g.length-1;i>=0;i--)void 0!==g[i]._rtqc_state&&"gt"===g[i]._rtqc_state&&(c=f._.clone(g[i]),D.push({row:i,obj:c}),g.splice(i,1));if(f.util.RT_sortBy(g,h),D.length>0)for(n=D.length-1;n>=0;n--)(l=[]).push(D[n].obj),g.RT_insertArray(D[n].row,l)}for(f._.each(t,(function(t){!1===m.containsKey(t[0])&&m.put(t[0],new r._QHashSet),m.get(t[0]).add("sort")})),this._setCurrentData(g),setTimeout((function(){S._trigger("aftersort")})),s=d;s<p;s++)!0===this._getQCellCol(s).attr("_coldisable")&&this.setColDisable(s,!0);if(O.length>0)for(n=0;n<O.length;n++)this._setCellDisabled(O[n].row,O[n].col,!0);this.attr("isSorting",!1,"boolean")},f.QCELL.NormalQCELL.prototype._getRowState=function(t){var e=this._getIdxInfo("state","row");return e.containsKey(t)?e.get(t):"n"},f.QCELL.NormalQCELL.prototype._setRowState=function(t,e){var i,s=this.attr("rowheaders"),a=this._getIdxInfo("state","row"),o=!1;switch(e){case"i":case"u":if("later"===this.attr("statetype")&&"u"===e&&"d"===this._getRowState(t))break;if("u"===e&&"i"===this._getRowState(t))break;a.put(t,e),o=!0;break;case"d":"later"===this.attr("statetype")&&(a.put(t,e),o=!0)}if(o){var n=this._getSyncInfo("row");!1===n.containsKey(t)&&n.put(t,new r._QHashSet),n.get(t).add("state")}for(var l=0;l<s.length;l++)"state"===s[l]&&null!=(i=this._getCellDOM(t,l))&&this._setRowheaderState(i,t);return o},f.QCELL.NormalQCELL.prototype._removeRowState=function(t){var e=this._getIdxInfo("state","row"),i=this.attr("rowheaders"),r=!1;if(e.containsKey(t)&&(e.remove(t),r=!0),r){var s=this._getSyncInfo("row");if(s.containsKey(t)){var a=s.get(t);a.remove("state"),a.isEmpty()&&s.remove(t)}}for(var o=0;o<i.length;o++)if("state"===i[o]){var n=this._getCellDOM(t,o);null!=n&&this._setRowheaderState(n,t)}return r},f.QCELL.NormalQCELL.prototype._clearRowStates=function(){var t=this._getIdxInfo("state","row"),e=this._getSyncInfo("row"),i=this.attr("rowheaders");f._.each(t.keys(),(function(t){if(e.containsKey(t)){var i=e.get(t);i.remove("state"),i.isEmpty()&&e.remove(t)}})),t.clear();for(var r=0;r<i.length;r++)if("state"===i[r])for(var s=this.getRows("header");s<this.getRows();s++){var a=this._getCellDOM(s,r);null!=a&&this._setRowheaderState(a,s)}return!0},f.QCELL.NormalQCELL.prototype._updateRowState=function(t,e){var i=!1;if("u"===e)"i"!==this._getRowState(t)&&(this._setRowState(t,e),i=!0);else i=this._setRowState(t,e);return i},f.QCELL.NormalQCELL.prototype._getState=function(t){var e,i=this,r=this._getIdxInfo("state","row"),s=this.attr("headerrows");return e=[],"d"===t&&"later"!==this.attr("statetype")?f._.each(this.attr("deletedrowsdata"),(function(t){e.push({row:-1,data:t})})):r.each((function(r,a){if(a===t){var o={row:r,data:i._getRowData(r)};if("i"===t)e.push(o);else if(i.attr("original")){var n=i.attr("origindata")[r-s];f._.isMatch(o.data,n)?o=f._.reject(e[a],(function(t){return t.row===r})):e.push(o)}else e.push(o)}})),e.sort((function(t,e){return t.row-e.row})),e},f.QCELL.NormalQCELL.prototype._clearStates=function(){var t=this._getIdxInfo("state","row"),e=this._getSyncInfo("row"),i=this.attr("rowheaders");this.attr("deletedrowsdata",[],"array"),f._.each(t.keys(),(function(t){if(e.containsKey(t)){var i=e.get(t);i.remove("state"),i.isEmpty()&&e.remove(t)}})),t.clear();for(var r=0;r<i.length;r++)if("state"===i[r])for(var s=this.getRows("header");s<this.getRows();s++){var a=this._getCellDOM(s,r);null!=a&&this._setRowheaderState(a,s)}return!0},f.QCELL.NormalQCELL.prototype._deleteDStates=function(){"later"!==this.attr("statetype")&&this.attr("deletedrowsdata").pop();this.attr("original")&&this.attr("originstate").d.pop()},f.QCELL.NormalQCELL.prototype._getStates=function(){var t,e=this,i=this._getIdxInfo("state","row"),r=this.attr("headerrows");if(t={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),i.each((function(i,s){var a={row:i,data:e._getRowData(i)};if("i"===s)t[s].push(a);else if(e.attr("original")){var o=e.attr("originstate"),n=i-r,l=0;for(l=0;l<o.d.length;l++)o.d[l].nRow<=n&&n++;for(l=0;l<o.i.length;l++)o.i[l].nRow>=n&&n++;var c=e.attr("origindata")[n];f._.isMatch(a.data,c)?a=f._.reject(t[s],(function(t){return t.row===i})):t[s].push(a)}else t[s].push(a)})),!0===this.attr("pagesyncorgindata")){t.i=[],t.u=[];for(var s=0;s<this.attr("data").input.length;s++){var a=this.attr("data").input[s];"u"===a.rt_qc_page_state?t.u.push({row:s,data:f._.clone(this.attr("data").input[s])}):"i"===a.rt_qc_page_state&&t.i.push({row:s,data:f._.clone(this.attr("data").input[s])})}}return f._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))})),t},f.QCELL.NormalQCELL.prototype._getAllDataStates=function(t,e){var i,r,s=this._getIdxInfo("state","row"),a=this.attr("headerrows");for(null==t&&(t="m"),null==e&&(e="rownum"),i=this.attr("currentdata").RT_clone(),r=0;r<i.length;r++)i[r][e]=r+a,i[r][t]="";return s.each((function(e,r){i[e-a][t]=r})),"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(r){r[e]=-1,r[t]="d",i.push(r)})),i},f.QCELL.NormalQCELL.prototype._getAllDataStatesBySep=function(t,e,i,r){var s,a=this,o=this._getIdxInfo("state","row"),n={},l=this.attr("headercols"),c=this.attr("cols"),h=[];null==t&&(t="m"),null==e&&(e="rownum"),null==i&&(i="^"),null==r&&(r="|");var u,d,p,f=this._getAllDataStates(t,e),g=0;for(s=l;s<c;s++)u=this._getKeyOfCol(s),n[u]=1;if(o.each((function(t,e){if("u"===e)for(p in d=a._getRowData(t))n[p]=1})),f.length)for(s=0;s<f.length;s++)if(""===(d=f[s])[t]){for(p in d)n[p]=1;if(3==g++)break}var _,C=t+r+e;for(p in n)p!==t&&p!==e&&(h.push(p),C+=r+p);for(C+=i,s=0;s<f.length;s++){for(C+=(d=f[s])[t]+r+d[e],_=0;_<h.length;_++)C+=r+(void 0===d[h[_]]?"":d[h[_]]);C+=i}return C},f.QCELL.NormalQCELL.prototype._getStatesEx=function(t){var e,i,r=this,s=this._getIdxInfo("state","row");return t=void 0===t?"status":t,e=[],"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(r){(i={row:-1,data:r})[t]="d",e.push(i)})),s.each((function(s,a){(i={row:s,data:r._getRowData(s)})[t]=a,e.push(i)})),e.sort((function(t,e){return t.row-e.row})),e},f.QCELL.NormalQCELL.prototype._getStatesBySep=function(t,e,i){var r,s,a=this,o=this._getIdxInfo("state","row"),n="_qcellState",l="";t=void 0===t?"|":t,e=void 0===e?"^":e,i=void 0===i?[]:i,r=[],"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(t){(s={row:-1,data:t})[n]="d",r.push(s)})),o.each((function(t,e){void 0!==(s={row:t,data:a._getRowData(t)}).data&&(s[n]=e,r.push(s))})),r.sort((function(t,e){return t.row-e.row}));var c,h,u=!0,d=[];return r.forEach((function(t){if(!0===u){d.push("isChecked"),d.push("tmHeader");for(var e=a.getCols("header");e<a.getCols();e++)d.push(a.getKeyOfCol(e));for(var r=0;r<i.length;r++)d.push(i[r])}for(var s in t.data)d.push(s);u=!1})),d=f._.uniq(d),l="",r.forEach((function(i){if(""===l&&(l="m"+e+"rownum"+e,u=!0),!0===u){for(c=0;c<d.length;c++)l+=d[c],c+1===d.length?l+=t:l+=e;u=!1}var r=i.row;for(l+=i[n]+e+r+e,c=0;c<d.length;c++)h=i.data[d[c]],h="isChecked"===d[c]?void 0===h?"true":h:"tmHeader"===d[c]?void 0===h?i._qcellState.toUpperCase():h:void 0===h?"":h,l+=h,c+1===d.length?l+=t:l+=e})),l},f.QCELL.NormalQCELL.prototype._getFocusRowState=function(){var t,e=this,i=this._getIdxInfo("state","row"),r=this._getIdxInfo("focus","row"),s=r.current>-1?r.current:-1,a=this.attr("headerrows"),o=[],n=0;t={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),i.each((function(i,r){var s={row:i,data:e._getRowData(i)};if("i"===r)t[r].push(s);else if(e.attr("original")){var o=e.attr("originstate"),n=i-a,l=0;for(l=0;l<o.d.length;l++)o.d[l].nRow<=n&&n++;for(l=0;l<o.i.length;l++)o.i[l].nRow>=n&&n++;var c=e.attr("origindata")[n];f._.isMatch(s.data,c)?s=f._.reject(t[r],(function(t){return t.row===i})):t[r].push(s)}else t[r].push(s)})),f._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))}));for(var l=0;l<Object.keys(t).length;l++)for(var c=Object.keys(t)[l],h=0;h<t[c].length;h++)if(s>-1&&t[c][h].row===s){o[n]=c,n++;break}return o},f.QCELL.NormalQCELL.prototype._getSelectRowState=function(t){var e,i=this,r=this._getIdxInfo("state","row"),s=this._getIdxInfo("focus","row"),a=s.current>-1?s.current:-1,o=this.attr("headerrows"),n=[],l=0;e={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(t){e.d.push({row:-1,data:t})})),r.each((function(t,r){var s={row:t,data:i._getRowData(t)};if("i"===r)e[r].push(s);else if(i.attr("original")){var a=i.attr("originstate"),n=t-o,l=0;for(l=0;l<a.d.length;l++)a.d[l].nRow<=n&&n++;for(l=0;l<a.i.length;l++)a.i[l].nRow>=n&&n++;var c=i.attr("origindata")[n];f._.isMatch(s.data,c)?s=f._.reject(e[r],(function(e){return e.row===t})):e[r].push(s)}else e[r].push(s)})),f._.each(e,(function(t,e){t.sort((function(t,e){return t.row-e.row}))}));for(var c=0;c<Object.keys(e).length;c++)for(var h=Object.keys(e)[c],u=0;u<e[h].length;u++)if(a>-1&&e[h][u].row===t){n[l]=h,l++;break}return n},f.QCELL.NormalQCELL.prototype._getAllStates=function(){var t,e,i=this,r=this._getIdxInfo("state","row"),s=this.attr("headerrows"),a=[];e=this.attr("currentdata").RT_clone(),t={d:[],i:[],u:[],m:[]},"later"!==this.attr("statetype")&&f._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),r.each((function(e,r){var o={row:e,data:i._getRowData(e)};if("i"===r)a.push(o.row),t[r].push(o);else if(i.attr("original")){var n=i.attr("originstate"),l=e-s,c=0;for(c=0;c<n.d.length;c++)n.d[c].nRow<=l&&l++;for(c=0;c<n.i.length;c++)n.i[c].nRow>=l&&l++;var h=i.attr("origindata")[l];f._.isMatch(o.data,h)?o=f._.reject(t[r],(function(t){return t.row===e})):(a.push(o.row),t[r].push(o))}else a.push(o.row),t[r].push(o)}));for(var o=0;o<e.length;o++)-1===a.indexOf(o+s)&&t.m.push({row:o+s,data:f._.clone(e[o])});return f._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))})),t},f.QCELL.NormalQCELL.prototype._updateRowSyncInfo=function(t,e,i){var r=this._getSyncInfo("row");if(r.size()>0){var s=r.keys().sort(f.st.desc);switch(i){case"i":var a;a=f._.filter(s.sort(f.st.desc),(function(e){return e>=t})),this._pushRowSyncInfo(a,e);break;case"d":for(var o,n=0;n<e;n++)if(r.containsKey(t+n))for(var l=r.get(t+n).values(),c=0,h=l.length;c<h;c++){switch(l[c]){case"style":this._removeCellStylesOfRow(t+n,!1);break;case"state":this._removeRowState(t+n)}}s.reverse(),o=f._.filter(s,(function(i){return i>=t+e})),this._pullRowSyncInfo(o,e)}}},f.QCELL.NormalQCELL.prototype._updateRowSyncInfoEx=function(t,e){var i=this._getSyncInfo("row"),r=t.length;if(i.size()>0&&r>0){var s=this;switch(e){case"i":var a,o=[];a=f._.filter(i.keys().sort(f.st.asc),(function(e){return e>=t[r-1]})),f._.each(t,(function(t,e){var i=f._.filter(a,(function(e){return e>=t}));a.RT_difference(i),i.reverse(),o.push(i)})),f._.each(o,(function(t,e){s._pushRowSyncInfo(t,r-e)}));break;case"d":var n,l=[];f._.each(t,(function(t){if(i.containsKey(t))for(var e=i.get(t).values(),r=0,a=e.length;r<a;r++){switch(e[r]){case"style":s._removeCellStylesOfRow(t,!1);break;case"state":s._removeRowState(t)}}})),n=f._.filter(i.keys().sort(f.st.asc),(function(e){return e>t[r-1]})),f._.each(t,(function(t,e){var i=f._.filter(n,(function(e){return e>t}));n.RT_difference(i),l.push(i)})),l.reverse(),f._.each(l,(function(t,e){s._pullRowSyncInfo(t,e+1)}))}}},f.QCELL.NormalQCELL.prototype._pushRowSyncInfo=function(t,e){if(t.length>0){var i=this._getSyncInfo("row");if(i.size()>0){var r=this;f._.each(t,(function(t){var s=i.remove(t);f._.each(s.values(),(function(i){switch(i){case"style":var s=r._getIdxInfo("style","row"),a=r._getIdxInfo("style","col"),o=s.remove(t);s.put(t+e,o),f._.each(o.keys(),(function(i){var r=a.get(i);r.put(t+e,r.remove(t))}));break;case"state":var n=r._getIdxInfo("state","row");n.put(t+e,n.remove(t))}})),i.put(t+e,s)}))}}},f.QCELL.NormalQCELL.prototype._pullRowSyncInfo=function(t,e){if(t.length>0){var i=this._getSyncInfo("row");if(i.size()>0){var r=this;f._.each(t,(function(t){var s=i.remove(t);f._.each(s.values(),(function(i){switch(i){case"style":var s=r._getIdxInfo("style","row"),a=r._getIdxInfo("style","col"),o=s.remove(t);s.put(t-e,o),f._.each(o.keys(),(function(i){var r=a.get(i);r.put(t-e,r.remove(t))}));break;case"state":var n=r._getIdxInfo("state","row");n.put(t-e,n.remove(t))}})),i.put(t-e,s)}))}}},f.QCELL.NormalQCELL.prototype._setFooterCSS=function(t,e,i){f.util.textContent(t,e),!0===this.getRowData(i).rt_qc_footer?f.util.addClass(t,"rt-qc-cell-rowheader-footer"):f.util.removeClass(t,"rt-qc-cell-rowheader-footer")},f.QCELL.NormalQCELL.prototype._setColTypeCSS=function(t,e){var i=f.QCELL.def.css,r=this._getColType(e);if(f.util.removeClass(t,i.TYPE_INPUT_CELL+" "+i.TYPE_INPUTBUTTON_CELL+" "+i.TYPE_TEXTAREA_CELL+" "+i.TYPE_SELECTMENU_CELL+" "+i.TYPE_DATEPICKER_CELL+" "+i.TYPE_INPUTDATEPICKER_CELL+" "+i.TYPE_CHECKBOX_CELL+" "+i.TYPE_IMAGE_CELL+" "+i.TYPE_HTML_CELL+" "+i.TYPE_CHART_CELL+" "+i.TYPE_MULTICHECKBOX_CELL+" "+i.TYPE_NUMBER_CELL+" "+i.TYPE_SLIDER_CELL+" "+i.TYPE_BUTTON_CELL+" "+i.TYPE_STATIC_CELL),!f.util.hasClass(t,i.COLHEADER_AREA)){switch(r){case"input":t.className+=" "+i.TYPE_INPUT_CELL;break;case"inputbutton":t.className+=" "+i.TYPE_INPUTBUTTON_CELL;break;case"textarea":t.className+=" "+i.TYPE_TEXTAREA_CELL;break;case"selectmenu":t.className+=" "+i.TYPE_SELECTMENU_CELL;break;case"datepicker":t.className+=" "+i.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":t.className+=" "+i.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":t.className+=" "+i.TYPE_CHECKBOX_CELL;break;case"image":t.className+=" "+i.TYPE_IMAGE_CELL;break;case"html":t.className+=" "+i.TYPE_HTML_CELL;break;case"chart":t.className+=" "+i.TYPE_CHART_CELL;break;case"multicheckbox":t.className+=" "+i.TYPE_MULTICHECKBOX_CELL;break;case"number":t.className+=" "+i.TYPE_NUMBER_CELL;break;case"slider":t.className+=" "+i.TYPE_SLIDER_CELL;break;case"button":t.className+=" "+i.TYPE_BUTTON_CELL;break;case"editor":t.className+=" "+i.TYPE_EDITOR_CELL;break;default:t.className+=" "+i.TYPE_STATIC_CELL}t=null}},f.QCELL.NormalQCELL.prototype._showGrandTotal=function(t,e,i,r){var s=f.QCELL.def.css,a=this.getRowData(e);void 0!==a&&"gt"===a._rtqc_state?(f.util.addClass(t,s.GRANDTOTAL),f.util.textContent(t,r)):f.util.removeClass(t,s.GRANDTOTAL),this._setAriaLabelEx(t,e,i)},f.QCELL.NormalQCELL.prototype._setTDSub=function(t,e,i,r,s){switch(e){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":this._setGroupTreeDataCell(t,i,s);break;default:this._setGroupTreeDataCell(t,r,s)}},f.QCELL.NormalQCELL.prototype._setTHSub=function(t,e,i,r,s){switch(i){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":this._setGroupTreeUICell(t,e,r);break;default:this._setGroupTreeUICell(t,e,s)}},f.QCELL.NormalQCELL.prototype._refreshHRs=function(){try{var t,e,i=this.getID(),r=this.attr("headertext"),s=this._getCellGroupDOMs("row","header"),a=this.attr("headerrows"),o=this.attr("headercols"),n=this.attr("id");this._clearMergeHeader(),this._createHeaderMergeInfo(),f._.each(s,(function(s,l){t=f.QCELL.getInstance(i);var c=l,h=t._isCellStyleRow(c);f._.each(s,(function(t,s){if(e=f.QCELL.getInstance(i),null!==t&&"true"!==t.getAttribute("data-footer")){var l=parseInt(t.getAttribute("data-col"));if(isNaN(l))return;var u=e._getColType(l),d=!!h&&e._hasCellStyle(c,l),p=void 0===r[l][c]?"":r[l][c];t.setAttribute("data-row",c),t.setAttribute("id",n+"_cell_"+c+"_"+l),l>=o&&("checkbox"===u||"html"===u?e._getColElement(l)._headershow(t,c,l):(t.innerHTML=e._getHeaderCellSpan(p,c,l),(c===a-1||e._isLastHeaderRowMasterCell(c,l))&&e.attr("useGroupUI")&&f.$(t).draggable({helper:e._setGroupMakeHelper,revert:"invalid"})),0===c&&e._getQCellCol(l).attr("topmove")&&t.appendChild(e._getColHeaderDragDropArea()),(c===a-1||e._isLastHeaderRowMasterCell(c,l))&&(e._getQCellCol(l).attr("move")&&t.appendChild(e._getColHeaderDragDropArea()),e._getQCellCol(l).attr("search")&&t.appendChild(e._getColSearchArea()),e._getQCellCol(l).attr("sort")&&(f._.isUndefined(e._getQCellCol(l).attr("options").wholeselect)||!1===e._getQCellCol(l).attr("options").wholeselect)&&("checkbox"!==u||!1===e.attr("paginationinfo").totalsort||!1===f._.isUndefined(e.attr("paginationinfo"))&&f._.isUndefined(e.attr("paginationinfo").url))&&t.appendChild(e._getDefaultSortArea(l)),e._getQCellCol(l).attr("resize")&&t.appendChild(e._getColResizeArea()),e._getQCellCol(l).attr("filter")&&t.appendChild(e._getFilterArea(l)),e._getQCellCol(l).attr("editor")&&t.appendChild(e._getColStyleEditorArea()),e._getQCellCol(l).attr("remove")&&t.appendChild(e._getDefaultRemoveArea(l)))),d&&e._setCellStyleCSS(t,e._getCellStyle(c,l))}t=null,e=null})),t=null})),this._updateMergeHeader()}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshHRs",t.message)}},f.QCELL.NormalQCELL.prototype._getHFNodeLevel=function(t,e,i){var r,s=f._.indexOf(e.headerrows,i,!0);if(s>-1)r=e.headerrownodes[s];else{var a=f._.indexOf(e.footerrows,i,!0);a>-1&&(r=e.footerrownodes[a])}return null!==r&&void 0!==r.level?r.level:"lev0"},f.QCELL.NormalQCELL.prototype._refreshHCs=function(){try{var t,e,i=f.QCELL.def.css,r=this.getID(),s=this._getCellGroupDOMs("col","header"),a=this.attr("rowheaders"),o=this.attr("currentdata").length,n=this.attr("headerrows"),l=0,c=this.attr("staticrowsinfo"),h=!0,u=-1,d=this.attr("id"),p=0,g=!1!==this.attr("presentseqatfooter");this._isPanel()&&p++,f._.each(s,(function(s,_){t=f.QCELL.getInstance(r);var C=_,L=t._getColWidth(C),m=l,E=t._isCellStyleCol(C),v=t._getQCellCol(C).attr("style");f._.each(s,(function(t){if(e=f.QCELL.getInstance(r),null!==t&&(t.setAttribute("data-col",C),t.style.left=m+"px",L!==parseInt(t.style.width)&&(t.style.width=L+"px"),"true"!==t.getAttribute("data-footer"))){var s=parseInt(t.getAttribute("data-row")),l=s<n,_=!!E&&e._hasCellStyle(s,C),b=l?"header":"data";if(t.setAttribute("id",d+"_cell_"+s+"_"+C),f.util.addClass(t,e._getColStyleClassName(C,b)),h=!0,c.length>0)for(u=0;u<c.length;u++)c[u].nRow===s&&(h=!1);if(!f._.isEmpty(v)){if(f._.isObject(v[b]))for(var y=Object.keys(v[b]),w=0;w<y.length;w++)f.$(t).css(y[w],v[b][y[w]]);e.attr("qcellcols")[C].attr("style",{header:v.header,data:v.data},"object")}if(s>=n){var x,Q=e.attr("paginationinfo");if(f._.isObject(Q)&&f._.isEmpty(Q)){if("sequence"===a[C]||"reverse"===a[C]){if(e._isBottomPanel(t))return void(void 0!==e.getRowData(s).rt_qc_seq&&(f.util.textContent(t,e.getRowData(s).rt_qc_seq),e._setAriaLabelEx(t,s,C)));g||!0!==e.getRowData(s).rt_qc_footer?e._setFooterCSS(t,"reverse"===a[C]?o-(s-n+p):s-n+1,s):e._setFooterCSS(t,"",s),e._setAriaLabelEx(t,s,C)}else if("checkbox"===a[C]||"radio"===a[C]){if(f.$(t).empty(),e._isBottomPanel(t))return;h&&(x=e._createRowheaderCheckbox(t,s,C,a[C]),t.appendChild(x),"checkbox"===a[C]?t.className+=" "+i.ROWHEADER_CELL_CHECKBOX:t.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===a[C]){if(e._isBottomPanel(t))return;e._setRowheaderState(t,s)}else if("custom"===a[C]){if(e._isBottomPanel(t))return;e._setRowheaderCustom(t,s,C)}}else{var k=s;if(n>1&&(k=s-(n-1)),"sequence"===a[C]||"reverse"===a[C]){if(e._isBottomPanel(t))return void(void 0!==e.getRowData(s).rt_qc_seq&&(f.util.textContent(t,e.getRowData(s).rt_qc_seq),e._setAriaLabelEx(t,s,C)));g||!0!==e.getRowData(s).rt_qc_footer?e._setFooterCSS(t,"reverse"===a[C]?Q.datacount-((Q.pageindex-1)*Q.pageunit+(k-1)):(Q.pageindex-1)*Q.pageunit+k,s):e._setFooterCSS(t,"",s)}else if("checkbox"===a[C]||"radio"===a[C]){if(f.$(t).empty(),e._isBottomPanel(t))return void e._setAriaLabelEx(t,s,C);h&&(x=e._createRowheaderCheckbox(t,s,C,a[C]),t.appendChild(x),"checkbox"===a[C]?t.className+=" "+i.ROWHEADER_CELL_CHECKBOX:t.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===a[C]){if(e._isBottomPanel(t))return;e._setRowheaderState(t,s)}else if("custom"===a[C]){if(e._isBottomPanel(t))return;e._setRowheaderCustom(t,s,C)}e._setAriaLabelEx(t,s,C)}}_&&e._setCellStyleCSS(t,e._getCellStyle(s,C))}t=null,e=null})),l+=L,t=null}))}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshHCs",t.message)}},f.QCELL.NormalQCELL.prototype._refreshFRs=function(){try{var t,e,i,r=f.QCELL.def.css,s=this.getID(),a=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),o=a.grouped?a.columnsinfo.keys(!0)[0]:"",n=this._getCellGroupDOMs("row","frozen"),l=this.attr("rowheaders"),c=this.attr("currentdata"),h=c.length,u=this.attr("headerrows"),d=this.attr("headercols"),p=this.attr("highlightrepeat"),g=this.attr("selectmode").indexOf("row")>-1,_=this.attr("staticrowsinfo"),C=!0,L=-1,m=this.attr("id"),E=0,v=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&E++,a.grouped&&"parentchild"===a.mode&&void 0!==a.treeUIColumn){var b=this._getColsOfKey(a.treeUIColumn)[0];void 0!==b&&(o=this._getColID(b))}this._clearMergeData(),this._createDataMergeInfo(),f._.each(n,(function(n,b){e=f.QCELL.getInstance(s);var y=u+b,w=-1,x=-1,Q=-1,k=!1,T=!1,R=!1,A=null,S=c[y-u],O=e._isFocusRow(y),D=e._isSelectedRow(y),I=e._isCellStyleRow(y),N=p>0&&(y-u+1)%p==0;if(C=!0,_.length>0)for(L=0;L<_.length;L++)_[L].nRow===y&&(C=!1);a.grouped&&("tree"!==a.type&&"step"!==a.type||(w=f._.indexOf(a.treeuirows,y,!0)),w>-1?(k=!0,A=a.treeuirownodes[w],T=R=!1):(x=f._.indexOf(a.headerrows,y,!0))>-1?(T=!0,A=a.headerrownodes[x],R=!1):(Q=f._.indexOf(a.footerrows,y,!0))>-1&&(R=!0,A=a.footerrownodes[Q],T=!1)),f._.each(n,(function(e,n){if(i=f.QCELL.getInstance(s),"true"!==e.getAttribute("data-footer")){var c,p=parseInt(e.getAttribute("data-col")),b=i._getColID(p),w=i._getColType(p),x=i._getKeyOfCol(p),Q=!!O&&!!i._isFocusCol(p),P=!!D&&(!!g||i._isSelectedCell(y,p)),M=!!I&&i._hasCellStyle(y,p),q=i._getQCellCol(p).attr("colstyleeditordata"),B=i._getQCellCol(p).attr("cellinvisible")[y],H=i._getDataTextAlign(p),U=i._useDataTextAlign(p);if(e.setAttribute("data-row",y),e.setAttribute("id",m+"_cell_"+y+"_"+p),p<d){var F=i.attr("paginationinfo");if(f._.isObject(F)&&f._.isEmpty(F)){if("sequence"===l[p]||"reverse"===l[p]){if(i._isBottomPanel(e))return void(void 0!==i.getRowData(y).rt_qc_seq&&(f.util.textContent(e,i.getRowData(y).rt_qc_seq),i._setAriaLabelEx(e,y,p)));v||!0!==i.getRowData(y).rt_qc_footer?i._setFooterCSS(e,"reverse"===l[p]?h-(y-u+E):y-u+1,y):i._setFooterCSS(e,"",y)}else if("checkbox"===l[p]||"radio"===l[p]){if(f.$(e).empty(),i._isBottomPanel(e))return;C&&(c=i._createRowheaderCheckbox(e,y,p,l[p]),e.appendChild(c),"checkbox"===l[p]?e.className+=" "+r.ROWHEADER_CELL_CHECKBOX:e.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===l[p]){if(i._isBottomPanel(e))return;i._setRowheaderState(e,y)}else if("custom"===l[p]){if(i._isBottomPanel(e))return;i._setRowheaderCustom(e,y,p)}i._setAriaLabelEx(e,y,p)}else{var z=y;if(u>1&&(z=y-(u-1)),"sequence"===l[p]||"reverse"===l[p]){if(i._isBottomPanel(e))return void(void 0!==i.getRowData(y).rt_qc_seq&&(f.util.textContent(e,i.getRowData(y).rt_qc_seq),i._setAriaLabelEx(e,y,p)));v||!0!==i.getRowData(y).rt_qc_footer?i._setFooterCSS(e,"reverse"===l[p]?F.datacount-((F.pageindex-1)*F.pageunit+(z-1)):(F.pageindex-1)*F.pageunit+z,y):i._setFooterCSS(e,"",y),i._setAriaLabelEx(e,y,p)}else if("checkbox"===l[p]||"radio"===l[p]){if(f.$(e).empty(),i._isBottomPanel(e))return;C&&(c=i._createRowheaderCheckbox(e,y,p,l[p]),e.appendChild(c),"checkbox"===l[p]?e.className+=" "+r.ROWHEADER_CELL_CHECKBOX:e.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===l[p]){if(i._isBottomPanel(e))return;i._setRowheaderState(e,y)}else if("custom"===l[p]){if(i._isBottomPanel(e))return;i._setRowheaderCustom(e,y,p)}}}else{t=void 0===S[x]?"":S[x];var W=i._showDataFormat(y,p,t),j=i._showDataFormatStatic(p,t);if(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),a.grouped&&"step"===a.type)if(k)A.key===W&&A.level+d===p?i._setTHSub(e,A,w,W,t):""!==W?i._setTDSub(e,w,W,t,S):(f.util.textContent(e,W),i._setAriaLabelEx(e,y,p));else if(T||R)switch((T||R)&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev"+i._getHFNodeLevel(A,a,y)),W=t),w){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):(f.util.textContent(e,W),i._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(p)._show(e,y,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(p)._showDataLabel(e,y,p,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):(f.util.textContent(e,t),i._setAriaLabelEx(e,y,p))}else{for(var G={},V=0;V<a.treeuirows.length&&y>a.treeuirows[V];V++)G=a.treeuirownodes[V];if(p<=G.level+d)i._setTDSub(e,w,W,t,S);else switch(w){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):(f.util.textContent(e,W),i._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(p)._show(e,y,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(p)._showDataLabel(e,y,p,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):(f.util.textContent(e,t),i._setAriaLabelEx(e,y,p))}}else if(a.grouped&&b===o&&"tree"===a.type)if(k)i._setTHSub(e,A,w,W,t);else if(T||R)switch((T||R)&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev"+i._getHFNodeLevel(A,a,y)),W=t),w){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):(f.util.textContent(e,W),i._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(p)._show(e,y,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(p)._showDataLabel(e,y,p,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):(f.util.textContent(e,t),i._setAriaLabelEx(e,y,p))}else i._setTDSub(e,w,W,t,S);else if(a.grouped&&"group"===a.type&&f._.indexOf(a.columnsinfo.keys(!0),b,!0)>=0)if(null!==(A=i._getGroupNode(S,x)))i._setGroupUICell(e,A,W);else if(T||R)switch(parseInt(e.getAttribute("data-row"))===y&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev"+i._getHFNodeLevel(A,a,y)),W=t),w){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":f.util.textContent(e,W),i._setAriaLabelEx(e,y,p);break;default:f.util.textContent(e,t),i._setAriaLabelEx(e,y,p)}else{switch(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),w){case"static":case"input":case"datepicker":case"number":case"slider":f.util.textContent(e,W),i._setAriaLabelEx(e,y,p);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(p)._show(e,y,p);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(p)._showDataLabel(e,y,p,t);break;default:f.util.textContent(e,t),i._setAriaLabelEx(e,y,p)}if(_.length>0)for(L=0;L<_.length;L++)if(_[L].nRow===y){f.util.addClass(e," rt-qc-staticrow-"+b),f.util.textContent(e,j),i._setAriaLabelEx(e,y,p);break}i._showGrandTotal(e,y,p,t)}else if(T||R)switch(parseInt(e.getAttribute("data-row"))===y&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev"+i._getHFNodeLevel(A,a,y)),W=t),w){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):(f.util.textContent(e,W),i._setAriaLabelEx(e,y,p));break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):(f.util.textContent(e,t),i._setAriaLabelEx(e,y,p))}else{switch(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+b+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),w){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):(C?f.util.textContent(e,W):f.util.textContent(e,t),i._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":C?i._getColElement(p)._show(e,y,p):f.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":C?i._getColElement(p)._showDataLabel(e,y,p,t):f.util.textContent(e,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,y,p)}if(_.length>0)for(L=0;L<_.length;L++)if(_[L].nRow===y){f.util.addClass(e,r.STATIC_ROW+" "+r.STATIC_ROW+"-"+b),f.util.textContent(e,j);break}i._showGrandTotal(e,y,p,t)}}B&&i._setCellInvisible(y,p,!0),p>=d&&N&&f.util.addClass(e,r.CELL_HIGHLIGHTREPEAT),i._setColTypeCSS(e,p),Q&&i._addFocusStyleClass(e),P&&f.util.addClass(e,r.CELL_SELECT),M&&i._setCellStyleCSS(e,i._getCellStyle(y,p)),U&&(e.style.textAlign=H)}e=null,i=null})),e=null})),this._updateMergeData()}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshFRs",t.message)}},f.QCELL.NormalQCELL.prototype._refreshFBRs=function(){try{var t,e,i,r=f.QCELL.def.css,s=this.attr("vsinfo"),a=this.getID(),o=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=o.grouped?o.columnsinfo.keys(!0)[0]:"",l=this._getCellGroupDOMs("row","frozenbottom"),c=this.attr("rowheaders"),h=this.attr("currentdata"),u=h.length,d=this.attr("headerrows"),p=this.attr("headercols"),g=this.attr("highlightrepeat"),_=this.attr("selectmode").indexOf("row")>-1,C=this.attr("staticrowsinfo"),L=!0,m=-1,E="panel"===this.attr("frozenbottomstyle"),v=this.attr("id"),b=0,y=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&b++,o.grouped&&"parentchild"===o.mode&&void 0!==o.treeUIColumn){var w=this._getColsOfKey(o.treeUIColumn)[0];void 0!==w&&(n=this._getColID(w))}this._clearMergeData(),this._createDataMergeInfo(),f._.each(l,(function(l,w){e=f.QCELL.getInstance(a);var x=s.nEndRow+w+1,Q=-1,k=-1,T=-1,R=!1,A=!1,S=!1,O=null,D=h[x-d],I=e._isFocusRow(x),N=e._isSelectedRow(x),P=e._isCellStyleRow(x),M=g>0&&(x-d+1)%g==0;if(L=!0,!(x<=d)){if(C.length>0)for(m=0;m<C.length;m++)C[m].nRow===x&&(L=!1);o.grouped&&("tree"!==o.type&&"step"!==o.type||(Q=f._.indexOf(o.treeuirows,x,!0)),Q>-1?(R=!0,O=o.treeuirownodes[Q],A=S=!1):(k=f._.indexOf(o.headerrows,x,!0))>-1?(A=!0,O=o.headerrownodes[k],S=!1):(T=f._.indexOf(o.footerrows,x,!0))>-1&&(S=!0,O=o.footerrownodes[T],A=!1)),f._.each(l,(function(e,s){if(i=f.QCELL.getInstance(a),"true"!==e.getAttribute("data-footer")){var l,h=parseInt(e.getAttribute("data-col")),d=i._getColID(h),g=i._getColType(h),w=i._getKeyOfCol(h),Q=!!I&&!!i._isFocusCol(h),k=!!N&&(!!_||i._isSelectedCell(x,h)),T=!!P&&i._hasCellStyle(x,h),q=i.attr("headerrows"),B=i._getQCellCol(h).attr("colstyleeditordata"),H=i._getQCellCol(h).attr("cellinvisible")[x],U=i._getDataTextAlign(h),F=i._useDataTextAlign(h);if(!0===E&&"checkbox"!==g&&(g="static"),e.setAttribute("data-row",x),e.setAttribute("id",v+"_cell_"+x+"_"+h),h<p){var z=i.attr("paginationinfo");if(f._.isObject(z)&&f._.isEmpty(z)){if("sequence"===c[h]||"reverse"===c[h]){if(i._isBottomPanel(e))return void(void 0!==i.getRowData(x).rt_qc_seq?(f.util.textContent(e,i.getRowData(x).rt_qc_seq),i._setAriaLabelEx(e,x,h)):(f.util.textContent(e,""),i._setAriaLabelEx(e,x,h)));y||!0!==i.getRowData(x).rt_qc_footer?i._setFooterCSS(e,"reverse"===c[h]?u-(x-q+b):x-q+1,x):i._setFooterCSS(e,"",x),i._setAriaLabelEx(e,x,h)}else if("checkbox"===c[h]||"radio"===c[h]){if(f.$(e).empty(),i._isBottomPanel(e))return;L&&(l=i._createRowheaderCheckbox(e,x,h,c[h]),e.appendChild(l),"checkbox"===c[h]?e.className+=" "+r.ROWHEADER_CELL_CHECKBOX:e.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===c[h]){if(i._isBottomPanel(e))return;i._setRowheaderState(e,x)}else if("custom"===c[h]){if(i._isBottomPanel(e))return;i._setRowheaderCustom(e,x,h)}}else{var W=x;if(q>1&&(W=x-(q-1)),"sequence"===c[h]||"reverse"===c[h])y||!0!==i.getRowData(x).rt_qc_footer?i._setFooterCSS(e,"reverse"===c[h]?z.datacount-((z.pageindex-1)*z.pageunit+(W-1)):(z.pageindex-1)*z.pageunit+W,x):i._setFooterCSS(e,"",x),i._setAriaLabelEx(e,x,h);else if("checkbox"===c[h]||"radio"===c[h]){if(f.$(e).empty(),i._isBottomPanel(e))return;L&&(l=i._createRowheaderCheckbox(e,x,h,c[h]),e.appendChild(l),"checkbox"===c[h]?e.className+=" "+r.ROWHEADER_CELL_CHECKBOX:e.className+=" "+r.ROWHEADER_CELL_RADIO)}else"state"===c[h]?i._setRowheaderState(e,x):"custom"===c[h]&&i._setRowheaderCustom(e,x,h)}}else{t=void 0===D[w]?"":D[w];var j=i._showDataFormat(x,h,t),G=i._showDataFormatStatic(h,t);if(!0===E&&(j=t,G=t),f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),o.grouped&&"step"===o.type)if(R)O.key===j&&O.level+p===h?i._setTHSub(e,O,g,j,t):""!==j?i._setTDSub(e,g,j,t,D):f.util.textContent(e,j),i._setAriaLabelEx(e,x,h);else if(A||S)switch((A||S)&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev"+i._getHFNodeLevel(O,o,x)),j=t),g){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",j):f.util.textContent(e,j),i._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(h)._showDataLabel(e,x,h,t);break;default:B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,x,h)}else{for(var V={},K=0;K<o.treeuirows.length&&x>o.treeuirows[K];K++)V=o.treeuirownodes[K];if(h<=V.level+p)i._setTDSub(e,g,j,t,D);else switch(g){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",j):f.util.textContent(e,j),i._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(h)._showDataLabel(e,x,h,t);break;default:B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,x,h)}}else if(o.grouped&&d===n&&"tree"===o.type)if(R)i._setTHSub(e,O,g,j,t);else if(A||S)switch((A||S)&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev"+i._getHFNodeLevel(O,o,x)),j=t),g){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",j):f.util.textContent(e,j),i._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(h)._showDataLabel(e,x,h,t);break;default:B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,x,h)}else i._setTDSub(e,g,j,t,D);else if(o.grouped&&"group"===o.type&&f._.indexOf(o.columnsinfo.keys(!0),d,!0)>=0)if(null!==(O=i._getGroupNode(D,w)))i._setGroupUICell(e,O,j);else if(A||S){switch(parseInt(e.getAttribute("data-row"))===x&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev"+i._getHFNodeLevel(O,o,x)),j=t),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":f.util.textContent(e,j);break;default:f.util.textContent(e,t)}i._setAriaLabelEx(e,x,h)}else switch(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"datepicker":case"number":case"slider":f.util.textContent(e,j),i._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(h)._show(e,x,h);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(h)._showDataLabel(e,x,h,t);break;default:f.util.textContent(e,t),i._setAriaLabelEx(e,x,h)}else if(A||S){switch(parseInt(e.getAttribute("data-row"))===x&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev"+i._getHFNodeLevel(O,o,x)),j=t),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",j):f.util.textContent(e,j);break;default:B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",t):f.util.textContent(e,t)}i._setAriaLabelEx(e,x,h)}else{switch(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+d+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"number":case"slider":B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",j):L?f.util.textContent(e,j):f.util.textContent(e,t),i._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":L?i._getColElement(h)._show(e,x,h):f.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":L?i._getColElement(h)._showDataLabel(e,x,h,t):f.util.textContent(e,t);break;default:B.replace("QCELL_COL_DATA","").length>0?e.innerHTML=B.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,x,h)}if(C.length>0)for(m=0;m<C.length;m++)if(C[m].nRow===x){f.util.addClass(e,r.STATIC_ROW+" "+r.STATIC_ROW+"-"+d),f.util.textContent(e,G),i._setAriaLabelEx(e,x,h);break}i._showGrandTotal(e,x,h,t)}}H&&i._setCellInvisible(x,h,!0),h>=p&&M&&f.util.addClass(e,r.CELL_HIGHLIGHTREPEAT),i._setColTypeCSS(e,h),Q&&i._addFocusStyleClass(e),k&&f.util.addClass(e,r.CELL_SELECT),T&&i._setCellStyleCSS(e,i._getCellStyle(x,h)),F&&(e.style.textAlign=U)}e=null,i=null})),e=null}})),this._updateMergeData()}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshFBRs",t.message)}},f.QCELL.NormalQCELL.prototype._refreshNRs=function(){try{var t,e,i,r=f.QCELL.def.css,s=this.attr("vsinfo"),a=this.getID(),o=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=o.grouped?o.columnsinfo.keys(!0)[0]:"",l=this._getCellGroupDOMs("row","normal"),c=this.attr("rowheaders"),h=this.attr("currentdata"),u=h.length,d=this.attr("headerrows"),p=this.attr("headercols"),g=this.attr("highlightrepeat"),_=this.attr("selectmode").indexOf("row")>-1,C=this.attr("staticrowsinfo"),L=!0,m=-1,E=this.attr("id"),v=0,b=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&v++,o.grouped&&"parentchild"===o.mode&&void 0!==o.treeUIColumn){var y=this._getColsOfKey(o.treeUIColumn)[0];void 0!==y&&(n=this._getColID(y))}this._clearMergeData(),this._createDataMergeInfo(),f._.each(l,(function(l,y){e=f.QCELL.getInstance(a);var w=s.nTopRow+y,x=-1,Q=-1,k=-1,T=!1,R=!1,A=!1,S=null,O=h[w-d],D=e._isFocusRow(w),I=e._isSelectedRow(w),N=e._isCellStyleRow(w),P=g>0&&(w-d+1)%g==0;if(L=!0,C.length>0)for(m=0;m<C.length;m++)C[m].nRow===w&&(L=!1);o.grouped&&("tree"!==o.type&&"step"!==o.type||(x=f._.indexOf(o.treeuirows,w,!0)),x>-1?(T=!0,S=o.treeuirownodes[x],R=A=!1):(Q=f._.indexOf(o.headerrows,w,!0))>-1?(R=!0,S=o.headerrownodes[Q],A=!1):(k=f._.indexOf(o.footerrows,w,!0))>-1&&(A=!0,S=o.footerrownodes[k],R=!1)),f._.each(l,(function(e,s){if(i=f.QCELL.getInstance(a),"true"!==e.getAttribute("data-footer")){var l=parseInt(e.getAttribute("data-col"));if(isNaN(l))return;var h,g=i._getColID(l),y=i._getColType(l),x=i._getKeyOfCol(l),Q=!!D&&!!i._isFocusCol(l),k=!!I&&(!!_||i._isSelectedCell(w,l)),M=!!N&&i._hasCellStyle(w,l),q=i._getQCellCol(l).attr("colstyleeditordata"),B=i._getQCellCol(l).attr("cellinvisible")[w],H=i._getDataTextAlign(l),U=i._useDataTextAlign(l);if(e.setAttribute("data-row",w),e.setAttribute("id",E+"_cell_"+w+"_"+l),l<p){var F=i.attr("paginationinfo");if(f._.isObject(F)&&f._.isEmpty(F)){if("sequence"===c[l]||"reverse"===c[l]){if(i._isBottomPanel(e))return void(void 0!==i.getRowData(w).rt_qc_seq&&(f.util.textContent(e,i.getRowData(w).rt_qc_seq),i._setAriaLabelEx(e,w,l)));b||!0!==i.getRowData(w).rt_qc_footer?i._setFooterCSS(e,"reverse"===c[l]?u-(w-d+v):w-d+1,w):i._setFooterCSS(e,"",w),i._setAriaLabelEx(e,w,l)}else if("checkbox"===c[l]||"radio"===c[l]){if(f.$(e).empty(),i._isBottomPanel(e))return;L&&(h=i._createRowheaderCheckbox(e,w,l,c[l]),e.appendChild(h),"checkbox"===c[l]?e.className+=" "+r.ROWHEADER_CELL_CHECKBOX:e.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===c[l]){if(i._isBottomPanel(e))return;i._setRowheaderState(e,w)}else if("custom"===c[l]){if(i._isBottomPanel(e))return;i._setRowheaderCustom(e,w,l)}}else{var z=w;if(d>1&&(z=w-(d-1)),"sequence"===c[l]||"reverse"===c[l]){if(i._isBottomPanel(e))return void(void 0!==i.getRowData(w).rt_qc_seq&&(f.util.textContent(e,i.getRowData(w).rt_qc_seq),i._setAriaLabelEx(e,w,l)));b||!0!==i.getRowData(w).rt_qc_footer?i._setFooterCSS(e,"reverse"===c[l]?F.datacount-((F.pageindex-1)*F.pageunit+(z-1)):(F.pageindex-1)*F.pageunit+z,w):i._setFooterCSS(e,"",w),i._setAriaLabelEx(e,w,l)}else if("checkbox"===c[l]||"radio"===c[l]){if(f.$(e).empty(),i._isBottomPanel(e))return;L&&(h=i._createRowheaderCheckbox(e,w,l,c[l]),e.appendChild(h),"checkbox"===c[l]?e.className+=" "+r.ROWHEADER_CELL_CHECKBOX:e.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===c[l]){if(i._isBottomPanel(e))return;i._setRowheaderState(e,w)}else if("custom"===c[l]){if(i._isBottomPanel(e))return;i._setRowheaderCustom(e,w,l)}}}else{t=void 0!==O?void 0===O[x]?"":O[x]:"";var W=i._showDataFormat(w,l,t),j=i._showDataFormatStatic(l,t);if(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),o.grouped&&"step"===o.type)if(T)S.key===W&&S.level+p===l?i._setTHSub(e,S,y,W,t):""!==W?i._setTDSub(e,y,W,t,O):f.util.textContent(e,W),i._setAriaLabelEx(e,w,l);else if(R||A)switch((R||A)&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+i._getHFNodeLevel(S,o,w)),W=t),y){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):i._isBottomPanel(e)?f.util.textContent(e,t):f.util.textContent(e,W),i._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(e,w,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(l)._showDataLabel(e,w,l,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,w,l)}else{for(var G={},V=0;V<o.treeuirows.length&&w>o.treeuirows[V];V++)G=o.treeuirownodes[V];if(l<=G.level+p)i._setTDSub(e,y,W,t,O);else switch(y){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):(i._isBottomPanel(e)?f.util.textContent(e,t):f.util.textContent(e,W),i._setAriaLabelEx(e,w,l));break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(e,w,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(l)._showDataLabel(e,w,l,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,w,l)}}else if(o.grouped&&g===n&&"tree"===o.type)if(T)i._setTHSub(e,S,y,W,t);else if(R||A)switch((R||A)&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+i._getHFNodeLevel(S,o,w)),W=t),y){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):i._isBottomPanel(e)?f.util.textContent(e,t):f.util.textContent(e,W),i._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(e,w,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(l)._showDataLabel(e,w,l,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,w,l)}else i._setTDSub(e,y,W,t,O);else if(o.grouped&&"group"===o.type&&f._.indexOf(o.columnsinfo.keys(!0),g,!0)>=0)if(null!==(S=i._getGroupNode(O,x)))i._setGroupUICell(e,S,W);else if(R||A){switch(parseInt(e.getAttribute("data-row"))===w&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+i._getHFNodeLevel(S,o,w)),W=t),y){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":i._isBottomPanel(e)?f.util.textContent(e,t):f.util.textContent(e,W);break;default:f.util.textContent(e,t)}i._setAriaLabelEx(e,w,l)}else switch(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),y){case"static":case"input":case"datepicker":case"number":case"slider":i._isBottomPanel(e)?f.util.textContent(e,t):f.util.textContent(e,W),i._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(l)._show(e,w,l);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(l)._showDataLabel(e,w,l,t);break;default:f.util.textContent(e,t),i._setAriaLabelEx(e,w,l)}else if(R||A)switch(parseInt(e.getAttribute("data-row"))===w&&(f.util.addClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+i._getHFNodeLevel(S,o,w)),W=t),y){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):i._isBottomPanel(e)?f.util.textContent(e,t):f.util.textContent(e,W),i._setAriaLabelEx(e,w,l);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,w,l)}else{switch(f.util.removeClass(e,r.GROUPTREEUI_HEADER+" "+r.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),y){case"static":case"input":case"number":case"slider":q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",W):i._isBottomPanel(e)?f.util.textContent(e,t):L?f.util.textContent(e,W):f.util.textContent(e,t),i._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":L?i._getColElement(l)._show(e,w,l):f.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":L?i._getColElement(l)._showDataLabel(e,w,l,t):f.util.textContent(e,t);break;default:q.replace("QCELL_COL_DATA","").length>0?e.innerHTML=q.replace("QCELL_COL_DATA",t):f.util.textContent(e,t),i._setAriaLabelEx(e,w,l)}if(C.length>0)for(m=0;m<C.length;m++)if(C[m].nRow===w){f.util.addClass(e,r.STATIC_ROW+" "+r.STATIC_ROW+"-"+g),f.util.textContent(e,j),i._setAriaLabelEx(e,w,l);break}i._showGrandTotal(e,w,l,t)}}B&&i._setCellInvisible(w,l,!0),l>=p&&P&&f.util.addClass(e,r.CELL_HIGHLIGHTREPEAT),i._setColTypeCSS(e,l),Q&&i._addFocusStyleClass(e),k&&f.util.addClass(e,r.CELL_SELECT),M&&i._setCellStyleCSS(e,i._getCellStyle(w,l)),U&&(e.style.textAlign=H)}e=null,i=null})),e=null})),this._updateMergeData()}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshNRs",t.message)}},f.QCELL.NormalQCELL.prototype._refreshFCs=function(){try{var t,e,i,r,s=f.QCELL.def.css,a=this.getID(),o=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=o.grouped?o.columnsinfo.keys(!0)[0]:"",l=this.attr("headertext"),c=this._getCellGroupDOMs("col","frozen"),h=this.attr("currentdata"),u=this.attr("headerrows"),d=this.attr("headercols"),p=this.attr("selectmode").indexOf("col")>-1,g=null,_=this.attr("staticrowsinfo"),C=!0,L=-1,m=this.attr("id");if(o.grouped&&"parentchild"===o.mode&&void 0!==o.treeUIColumn){var E=this._getColsOfKey(o.treeUIColumn)[0];void 0!==E&&(n=this._getColID(E))}this._clearMerge(),this._createMergeInfo(),t=0,f._.each(c,(function(c,E){i=f.QCELL.getInstance(a);var v=d+E,b=i._getColWidth(v),y=t,w=i._getColID(v),x=i._getColType(v),Q=i._getKeyOfCol(v),k=w===n,T=i._isFocusCol(v),R=i._isSelectedCol(v),A=i._isCellStyleCol(v),S=i._getQCellCol(v).attr("colstyleeditordata"),O=i._getQCellCol(v).attr("style"),D=i._getDataTextAlign(v),I=i._useDataTextAlign(v);f._.each(c,(function(t){if(r=f.QCELL.getInstance(a),t.setAttribute("data-col",v),t.style.left=y+"px",b!==parseInt(t.style.width)&&(t.style.width=b+"px"),"true"!==t.getAttribute("data-footer")){var i=parseInt(t.getAttribute("data-row")),n=i<u,c=!!T&&!!r._isFocusRow(i),E=!n&&(!!R&&(!!p||r._isSelectedCell(i,v))),N=!!A&&r._hasCellStyle(i,v),P=n?"header":"data",M=void 0===l[v][i]?"":l[v][i],q=r._getQCellCol(v).attr("cellinvisible")[i];if(t.setAttribute("id",m+"_cell_"+i+"_"+v),f.util.addClass(t,r._getColStyleClassName(v,P)),C=!0,_.length>0)for(L=0;L<_.length;L++)_[L].nRow===i&&(C=!1);if(!f._.isEmpty(O)){if(f._.isObject(O[P]))for(var B=Object.keys(O[P]),H=0;H<B.length;H++)f.$(t).css(B[H],O[P][B[H]]);r.attr("qcellcols")[v].attr("style",{header:O.header,data:O.data},"object")}if(n)"checkbox"===x||"html"===x?r._getColElement(v)._headershow(t,i,v):(t.innerHTML=r._getHeaderCellSpan(M,i,v),(i===u-1||r._isLastHeaderRowMasterCell(i,v))&&r.attr("useGroupUI")&&f.$(t).draggable({helper:r._setGroupMakeHelper,revert:"invalid"})),0===i&&r._getQCellCol(v).attr("topmove")&&t.appendChild(r._getColHeaderDragDropArea()),(i===u-1||r._isLastHeaderRowMasterCell(i,v))&&(r._getQCellCol(v).attr("move")&&t.appendChild(r._getColHeaderDragDropArea()),r._getQCellCol(v).attr("search")&&t.appendChild(r._getColSearchArea()),r._getQCellCol(v).attr("sort")&&(f._.isUndefined(r._getQCellCol(v).attr("options").wholeselect)||!1===r._getQCellCol(v).attr("options").wholeselect)&&("checkbox"!==x||!1===r.attr("paginationinfo").totalsort||!1===f._.isUndefined(r.attr("paginationinfo"))&&f._.isUndefined(r.attr("paginationinfo").url))&&t.appendChild(r._getDefaultSortArea(v)),r._getQCellCol(v).attr("resize")&&t.appendChild(r._getColResizeArea()),r._getQCellCol(v).attr("filter")&&t.appendChild(r._getFilterArea(v)),r._getQCellCol(v).attr("editor")&&t.appendChild(r._getColStyleEditorArea()),r._getQCellCol(v).attr("remove")&&t.appendChild(r._getDefaultRemoveArea(v)));else{var U=h[i-u];if(void 0===U)return;e=void 0===U[Q]?"":U[Q];var F=r._showDataFormat(i,v,e),z=r._showDataFormatStatic(v,e),W=!1,j=!1,G=-1,V=-1,K=-1,Y=!1;if(f.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),r._isBottomPanel(t)&&(x="static"),o.grouped&&"step"===o.type)if(G=-1,V=-1,K=-1,Y=!1,(G=f._.indexOf(o.treeuirows,i,!0))>-1?(Y=!0,g=o.treeuirownodes[G],W=j=!1):(V=f._.indexOf(o.headerrows,i,!0))>-1?(W=!0,g=o.headerrownodes[V],j=!1):(K=f._.indexOf(o.footerrows,i,!0))>-1&&(j=!0,g=o.footerrownodes[K],W=!1),Y)g.key===F?r._setTHSub(t,g,x,F,e):""!==F?r._setTDSub(t,x,F,e,U):f.util.textContent(t,F),r._setAriaLabelEx(t,i,v);else if(W||j)switch((W||j)&&(f.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+r._getHFNodeLevel(g,o,i)),F=e),x){case"static":case"input":case"number":case"slider":S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",F):f.util.textContent(t,F),r._setAriaLabelEx(t,i,v);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(v)._show(t,i,v);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(v)._showDataLabel(t,i,v,e);break;default:S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",e):f.util.textContent(t,e),r._setAriaLabelEx(t,i,v)}else{for(var $={},X=0;X<o.treeuirows.length&&i>o.treeuirows[X];X++)$=o.treeuirownodes[X];if(v<=$.level+d)r._setTDSub(t,x,F,e,U);else switch(x){case"static":case"input":case"number":case"slider":S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",F):f.util.textContent(t,F),r._setAriaLabelEx(t,i,v);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(v)._show(t,i,v);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(v)._showDataLabel(t,i,v,e);break;default:S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",e):f.util.textContent(t,e),r._setAriaLabelEx(t,i,v)}}else if(o.grouped&&k&&"tree"===o.type)if(G=-1,V=-1,K=-1,Y=!1,"tree"===o.type&&(G=f._.indexOf(o.treeuirows,i,!0)),G>-1?(Y=!0,g=o.treeuirownodes[G],W=j=!1):(V=f._.indexOf(o.headerrows,i,!0))>-1?(W=!0,g=o.headerrownodes[V],j=!1):(K=f._.indexOf(o.footerrows,i,!0))>-1&&(j=!0,g=o.footerrownodes[K],W=!1),Y)r._setTHSub(t,g,x,F,e);else if(W||j)if(o.grouped&&"group"===o.type&&f._.indexOf(o.columnsinfo.keys(!0),w,!0)>=0)if(null!==(g=r._getGroupNode(U,Q)))r._setGroupUICell(t,g,F);else switch((W||j)&&(f.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+r._getHFNodeLevel(g,o,i)),F=e),x){case"static":case"input":case"datepicker":case"number":case"slider":f.util.textContent(t,F),r._setAriaLabelEx(t,i,v);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(v)._show(t,i,v);break;case"selectmenu":case"multicheckbox":case"inputbutton":r._getColElement(v)._showDataLabel(t,i,v,e);break;default:f.util.textContent(t,e),r._setAriaLabelEx(t,i,v)}else switch((W||j)&&(f.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+r._getHFNodeLevel(g,o,i)),F=e),x){case"static":case"input":case"number":case"slider":S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",F):f.util.textContent(t,F),r._setAriaLabelEx(t,i,v);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(v)._show(t,i,v);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(v)._showDataLabel(t,i,v,e);break;default:S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",e):f.util.textContent(t,e),r._setAriaLabelEx(t,i,v)}else r._setTDSub(t,x,F,e,U);else if(o.grouped&&(f._.indexOf(o.headerrows,i,!0)>-1&&(W=!0),f._.indexOf(o.footerrows,i,!0)>-1&&(j=!0)),W||j){if(parseInt(t.getAttribute("data-row"))===i&&(f.util.addClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+r._getHFNodeLevel(g,o,i)),F=e),_.length>0)for(L=0;L<_.length;L++)if(_[L].nRow===i){F=z;break}switch(x){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",F):f.util.textContent(t,F);break;default:S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",e):f.util.textContent(t,e)}r._setAriaLabelEx(t,i,v)}else{switch(f.util.removeClass(t,s.GROUPTREEUI_HEADER+" "+s.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),x){case"static":case"input":case"number":case"slider":S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",F):C?f.util.textContent(t,F):f.util.textContent(t,e),r._setAriaLabelEx(t,i,v);break;case"checkbox":case"image":case"html":case"chart":case"button":C?r._getColElement(v)._show(t,i,v):f.util.textContent(t,e);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":C?r._getColElement(v)._showDataLabel(t,i,v,e):f.util.textContent(t,e);break;default:S.replace("QCELL_COL_DATA","").length>0?t.innerHTML=S.replace("QCELL_COL_DATA",e):f.util.textContent(t,e),r._setAriaLabelEx(t,i,v)}if(_.length>0)for(L=0;L<_.length;L++)if(_[L].nRow===i){f.util.addClass(t,s.STATIC_ROW+" "+s.STATIC_ROW+"-"+w),f.util.textContent(t,z),r._setAriaLabelEx(t,i,v);break}r._showGrandTotal(t,i,v,e)}}q&&r._setCellInvisible(i,v,!0),r._setColTypeCSS(t,v),c&&r._addFocusStyleClass(t),E&&f.util.addClass(t,s.CELL_SELECT),N&&r._setCellStyleCSS(t,r._getCellStyle(i,v)),I&&(t.style.textAlign=D)}t=null,r=null})),t+=b,i=null})),this._updateMerge()}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshFCs",t.message)}},f.QCELL.NormalQCELL.prototype._refreshNCs=function(){try{var t,e,i,r,s,a=f.QCELL.def.css,o=this.attr("hsinfo"),n=this.getID(),l=o.objUpdateInfo,c=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=c.grouped?c.columnsinfo.keys(!0)[0]:"",u=this.attr("headertext"),d=this._getCellGroupDOMs("col","normal"),p=this.attr("currentdata"),g=this.attr("headerrows"),_=this.attr("headercols"),C=this.attr("frozencols"),L=this._getSumOfColWidth(_,_+C-1),m=this.attr("selectmode").indexOf("col")>-1,E=null,v=this.attr("staticrowsinfo"),b=!0,y=-1,w=this.attr("id");if(c.grouped&&"parentchild"===c.mode&&void 0!==c.treeUIColumn){var x=this._getColsOfKey(c.treeUIColumn)[0];void 0!==x&&(h=this._getColID(x))}this._clearMerge(),this._createMergeInfo(),e=l.objParams.nAdjustedLeft,t=L,f._.each(d,(function(l,d){r=f.QCELL.getInstance(n);var C=o.nLeftCol+d,L=r._getColWidth(C),x=t-e,Q=r._getColID(C),k=r._getColType(C),T=r._getKeyOfCol(C),R=Q===h,A=r._isFocusCol(C),S=r._isSelectedCol(C),O=r._isCellStyleCol(C),D=r._getQCellCol(C).attr("colstyleeditordata"),I=r._getQCellCol(C).attr("style"),N=r._getDataTextAlign(C),P=r._useDataTextAlign(C);f._.each(l,(function(t){if(s=f.QCELL.getInstance(n),t.setAttribute("data-col",C),t.style.left=x+"px",L!==parseInt(t.style.width)&&(t.style.width=L+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),r=e<g,o=!!A&&!!s._isFocusRow(e),l=!r&&(!!S&&(!!m||s._isSelectedCell(e,C))),h=!!O&&s._hasCellStyle(e,C),d=r?"header":"data",M=void 0===u[C][e]?"":u[C][e],q=s._getQCellCol(C).attr("cellinvisible")[e];if(t.setAttribute("id",w+"_cell_"+e+"_"+C),f.util.addClass(t,s._getColStyleClassName(C,d)),b=!0,v.length>0)for(y=0;y<v.length;y++)v[y].nRow===e&&(b=!1);if(!f._.isEmpty(I)){if(f._.isObject(I[d]))for(var B=Object.keys(I[d]),H=0;H<B.length;H++)f.$(t).css(B[H],I[d][B[H]]);s.attr("qcellcols")[C].attr("style",{header:I.header,data:I.data},"object")}if(r)"checkbox"===k||"html"===k?s._getColElement(C)._headershow(t,e,C):(t.innerHTML=s._getHeaderCellSpan(M,e,C),(e===g-1||s._isLastHeaderRowMasterCell(e,C))&&s.attr("useGroupUI")&&f.$(t).draggable({helper:s._setGroupMakeHelper,revert:"invalid"})),0===e&&s._getQCellCol(C).attr("topmove")&&t.appendChild(s._getColHeaderDragDropArea()),(e===g-1||s._isLastHeaderRowMasterCell(e,C))&&(s._getQCellCol(C).attr("move")&&t.appendChild(s._getColHeaderDragDropArea()),s._getQCellCol(C).attr("search")&&t.appendChild(s._getColSearchArea()),s._getQCellCol(C).attr("sort")&&(f._.isUndefined(s._getQCellCol(C).attr("options").wholeselect)||!1===s._getQCellCol(C).attr("options").wholeselect)&&("checkbox"!==k||!1===s.attr("paginationinfo").totalsort||!1===f._.isUndefined(s.attr("paginationinfo"))&&f._.isUndefined(s.attr("paginationinfo").url))&&t.appendChild(s._getDefaultSortArea(C)),s._getQCellCol(C).attr("resize")&&t.appendChild(s._getColResizeArea()),s._getQCellCol(C).attr("filter")&&t.appendChild(s._getFilterArea(C)),s._getQCellCol(C).attr("editor")&&t.appendChild(s._getColStyleEditorArea()),s._getQCellCol(C).attr("remove")&&t.appendChild(s._getDefaultRemoveArea(C)));else{var U=p[e-g];if(void 0===U)return;i=void 0===U[T]?"":U[T];var F=s._showDataFormat(e,C,i),z=s._showDataFormatStatic(C,i),W=!1,j=!1,G=-1,V=-1,K=-1,Y=!1;if(!0===U.rt_qc_fbrd&&e===p.length&&(F=z=i),c.grouped&&"step"===c.type)if(G=-1,V=-1,K=-1,Y=!1,(G=f._.indexOf(c.treeuirows,e,!0))>-1?(Y=!0,E=c.treeuirownodes[G],W=j=!1):(V=f._.indexOf(c.headerrows,e,!0))>-1?(W=!0,E=c.headerrownodes[V],j=!1):(K=f._.indexOf(c.footerrows,e,!0))>-1&&(j=!0,E=c.footerrownodes[K],W=!1),Y)E.key===F&&E.level+_===C?s._setTHSub(t,E,k,F,i):""!==F?s._setTDSub(t,k,F,i,U):f.util.textContent(t,F),s._setAriaLabelEx(t,e,C);else if(W||j)switch((W||j)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+s._getHFNodeLevel(E,c,e)),F=i),k){case"static":case"input":case"number":case"slider":D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",F):f.util.textContent(t,F),s._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(C)._show(t,e,C);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(C)._showDataLabel(t,e,C,i);break;default:D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,C)}else{for(var $={},X=0;X<c.treeuirows.length&&e>c.treeuirows[X];X++)$=c.treeuirownodes[X];if(C<=$.level+_)s._setTDSub(t,k,F,i,U);else switch(k){case"static":case"input":case"number":case"slider":D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",F):f.util.textContent(t,F),s._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(C)._show(t,e,C);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(C)._showDataLabel(t,e,C,i);break;default:D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,C)}}else if(c.grouped&&R&&"tree"===c.type)if(G=-1,V=-1,K=-1,Y=!1,"tree"!==c.type&&"step"!==c.type||(G=f._.indexOf(c.treeuirows,e,!0)),G>-1?(Y=!0,E=c.treeuirownodes[G],W=j=!1):(V=f._.indexOf(c.headerrows,e,!0))>-1?(W=!0,E=c.headerrownodes[V],j=!1):(K=f._.indexOf(c.footerrows,e,!0))>-1&&(j=!0,E=c.footerrownodes[K],W=!1),Y)s._setTHSub(t,E,k,F,i);else if(W||j)switch((W||j)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+s._getHFNodeLevel(E,c,e)),F=i),k){case"static":case"input":case"number":case"slider":D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",F):f.util.textContent(t,F),s._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(C)._show(t,e,C);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(C)._showDataLabel(t,e,C,i);break;default:D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,C)}else s._setTDSub(t,k,F,i,U);else if(c.grouped&&"group"===c.type&&f._.indexOf(c.columnsinfo.keys(!0),Q,!0)>=0)if(null!==(E=s._getGroupNode(p[e-g],T)))s._setGroupUICell(t,E,F);else if(c.grouped&&(f._.indexOf(c.headerrows,e,!0)>-1&&(W=!0),f._.indexOf(c.footerrows,e,!0)>-1&&(j=!0)),W||j){switch(parseInt(t.getAttribute("data-row"))===e&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+s._getHFNodeLevel(E,c,e)),F=i),k){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":f.util.textContent(t,F);break;default:f.util.textContent(t,i)}s._setAriaLabelEx(t,e,C)}else switch(k){case"static":case"input":case"datepicker":case"number":case"slider":f.util.textContent(t,F),s._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(C)._show(t,e,C);break;case"selectmenu":case"multicheckbox":case"inputbutton":s._getColElement(C)._showDataLabel(t,e,C,i);break;default:f.util.textContent(t,i),s._setAriaLabelEx(t,e,C)}else if(c.grouped&&(f._.indexOf(c.headerrows,e,!0)>-1&&(W=!0),f._.indexOf(c.footerrows,e,!0)>-1&&(j=!0)),W||j){switch(parseInt(t.getAttribute("data-row"))===e&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+Q+" rt-qc-gtui-lev"+s._getHFNodeLevel(E,c,e)),F=i),k){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",F):f.util.textContent(t,F);break;default:D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",i):f.util.textContent(t,i)}s._setAriaLabelEx(t,e,C)}else{switch(k){case"static":case"input":case"number":case"slider":D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",F):b?f.util.textContent(t,F):f.util.textContent(t,i),s._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":b?s._getColElement(C)._show(t,e,C):f.util.textContent(t,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":b?s._getColElement(C)._showDataLabel(t,e,C,i):f.util.textContent(t,i);break;default:D.replace("QCELL_COL_DATA","").length>0?t.innerHTML=D.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,C)}if(v.length>0)for(y=0;y<v.length;y++)if(v[y].nRow===e){f.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+Q),f.util.textContent(t,z);break}s._showGrandTotal(t,e,C,i)}}q&&s._setCellInvisible(e,C,!0),s._setColTypeCSS(t,C),o&&s._addFocusStyleClass(t),l&&f.util.addClass(t,a.CELL_SELECT),h&&s._setCellStyleCSS(t,s._getCellStyle(e,C)),P&&(t.style.textAlign=N)}t=null,s=null})),t+=L,r=null})),this._updateMerge()}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._refreshNCs",t.message)}},f.QCELL.NormalQCELL.prototype._updateNRs=function(){try{var t,e,i,r,s,a=f.QCELL.def.css,o=this.attr("vsinfo"),n=this.getID(),l=o.objUpdateInfo,c=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=c.grouped?c.columnsinfo.keys(!0)[0]:"",u=this._getCellGroupDOMs("row","normal"),d=[],p=this.attr("rowheaders"),g=this.attr("currentdata"),_=g.length,C=this.attr("headerrows"),L=this.attr("frozenrows"),m=this.attr("frozenbottomrows"),E=this.attr("rows"),v=this.attr("headercols"),b=this.attr("highlightrepeat"),y=this.attr("layoutsize").viewport.offsetHeight,w=this._getSumOfRowHeight(C,C+L-1),x=this._getSumOfRowHeight(E-m,E-1),Q=this.attr("selectmode").indexOf("row")>-1,k=this.attr("staticrowsinfo"),T=!0,R=-1,A=this.attr("id"),S=0,O=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&S++,c.grouped&&"parentchild"===c.mode&&void 0!==c.treeUIColumn){var D=this._getColsOfKey(c.treeUIColumn)[0];void 0!==D&&(h=this._getColID(D))}if(this._clearMergeData(),this._createDataMergeInfo(),l.bWholeUpdate)e=l.objParams.nAdjustedTop,t=w,f._.each(u,(function(l,u){r=f.QCELL.getInstance(n);var d=parseInt(l[0].getAttribute("data-row")),L=o.nTopRow+u,m=r._getRowHeight(L),E=t-e,y=-1,w=-1,x=-1,D=!1,I=!1,N=!1,P=null,M=g[L-C],q=r._isFocusRow(d),B=r._isFocusRow(L),H=r._isSelectedRow(d),U=r._isSelectedRow(L),F=r._isCellStyleRow(d),z=r._isCellStyleRow(L),W=b>0&&(L-C+1)%b==0;if(c.grouped&&("tree"!==c.type&&"step"!==c.type||(y=f._.indexOf(c.treeuirows,L,!0)),y>-1?(D=!0,P=c.treeuirownodes[y],I=N=!1):(w=f._.indexOf(c.headerrows,L,!0))>-1?(I=!0,P=c.headerrownodes[w],N=!1):(x=f._.indexOf(c.footerrows,L,!0))>-1&&(N=!0,P=c.footerrownodes[x],I=!1)),T=!0,k.length>0)for(R=0;R<k.length;R++)k[R].nRow===L&&(T=!1);f._.each(l,(function(t,e){if(s=f.QCELL.getInstance(n),t.setAttribute("data-row",L),t.style.top=E+"px",m!==parseInt(t.style.height)&&(t.style.height=m+"px"),"true"!==t.getAttribute("data-footer")){var r,o=parseInt(t.getAttribute("data-col")),l=s._getColID(o),u=s._getColType(o),g=s._getKeyOfCol(o),b=!!q&&!!s._isFocusCol(o),y=!!B&&!!s._isFocusCol(o),w=!!H&&(!!Q||s._isSelectedCell(d,o)),x=!!U&&(!!Q||s._isSelectedCell(L,o)),j=!!F&&s._hasCellStyle(d,o),G=!!z&&s._hasCellStyle(L,o),V=s._getQCellCol(o).attr("colstyleeditordata"),K=s._getQCellCol(o).attr("cellinvisible")[L],Y=s._getDataTextAlign(o),$=s._useDataTextAlign(o);if(t.setAttribute("id",A+"_cell_"+L+"_"+o),o<v){var X=s.attr("paginationinfo");if(f._.isObject(X)&&f._.isEmpty(X)){if("sequence"===p[o]||"reverse"===p[o]){if(s._isBottomPanel(t))return void(void 0!==s.getRowData(L).rt_qc_seq&&(f.util.textContent(t,s.getRowData(L).rt_qc_seq),s._setAriaLabelEx(t,L,o)));O||!0!==s.getRowData(L).rt_qc_footer?s._setFooterCSS(t,"reverse"===p[o]?_-(L-C+S):L-C+1,L):s._setFooterCSS(t,"",L)}else if("checkbox"===p[o]||"radio"===p[o]){if(s._isBottomPanel(t))return;f.$(t).empty(),T&&(r=s._createRowheaderCheckbox(t,L,o,p[o]),t.appendChild(r),"checkbox"===p[o]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[o]?s._setRowheaderState(t,L):"custom"===p[o]&&s._setRowheaderCustom(t,L,o);s._setAriaLabelEx(t,L,o)}else{var Z=L;if(C>1&&(Z=L-(C-1)),"sequence"===p[o]||"reverse"===p[o]){if(s._isBottomPanel(t))return void 0!==s.getRowData(L).rt_qc_seq&&f.util.textContent(t,s.getRowData(L).rt_qc_seq),void s._setAriaLabelEx(t,L,o);O||!0!==s.getRowData(L).rt_qc_footer?s._setFooterCSS(t,"reverse"===p[o]?X.datacount-((X.pageindex-1)*X.pageunit+(Z-1)):(X.pageindex-1)*X.pageunit+Z,L):s._setFooterCSS(t,"",L)}else if("checkbox"===p[o]||"radio"===p[o]){if(s._isBottomPanel(t))return;f.$(t).empty(),T&&(r=s._createRowheaderCheckbox(t,L,o,p[o]),t.appendChild(r),"checkbox"===p[o]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[o]?s._setRowheaderState(t,L):"custom"===p[o]&&s._setRowheaderCustom(t,L,o);s._setAriaLabelEx(t,L,o)}}else{i=void 0===M[g]?"":M[g];var J=s._showDataFormat(L,o,i),tt=s._showDataFormatStatic(o,i);if(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&"step"===c.type)if(D)P.key===J&&P.level+v===o?s._setTHSub(t,P,u,J,i):""!==J?s._setTDSub(t,u,J,i,M):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o);else if(I||N){if(k.length>0)for(R=0;R<k.length;R++)if(k[R].nRow===L){J=tt;break}switch((I||N)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,L)),J=i),u){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(o)._show(t,L,o);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(o)._showDataLabel(t,L,o,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o)}}else{for(var et={},it=0;it<c.treeuirows.length&&L>c.treeuirows[it];it++)et=c.treeuirownodes[it];if(o<=et.level+v)s._setTDSub(t,u,J,i,M);else{if(k.length>0)for(R=0;R<k.length;R++)if(k[R].nRow===L){J=tt;break}switch(u){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(o)._show(t,L,o);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(o)._showDataLabel(t,L,o,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o)}}}else if(c.grouped&&l===h&&"tree"===c.type)if(D)s._setTHSub(t,P,u,J,i);else if(I||N)switch((I||N)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,L)),J=i),u){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(o)._show(t,L,o);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(o)._showDataLabel(t,L,o,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o)}else s._setTDSub(t,u,J,i,M);else if(c.grouped&&"group"===c.type&&f._.indexOf(c.columnsinfo.keys(!0),l,!0)>=0)if(null!==(P=s._getGroupNode(M,g)))s._setGroupUICell(t,P,J);else if(I||N){switch(parseInt(t.getAttribute("data-row"))===L&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,L)),J=i),u){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":f.util.textContent(t,J);break;default:f.util.textContent(t,i)}s._setAriaLabelEx(t,L,o)}else if(I||N){switch(parseInt(t.getAttribute("data-row"))===L&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,L)),J=i),u){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":f.util.textContent(t,J);break;default:f.util.textContent(t,i)}s._setAriaLabelEx(t,L,o)}else switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),u){case"static":case"input":case"datepicker":case"number":case"slider":default:f.util.textContent(t,J),s._setAriaLabelEx(t,L,o);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(o)._show(t,L,o);break;case"selectmenu":case"multicheckbox":case"inputbutton":s._getColElement(o)._showDataLabel(t,L,o,i)}else if(I||N){switch(parseInt(t.getAttribute("data-row"))===L&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,L)),J=i),u){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,i)}s._setAriaLabelEx(t,L,o)}else{switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),u){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):T?f.util.textContent(t,J):f.util.textContent(t,i),s._setAriaLabelEx(t,L,o);break;case"checkbox":case"image":case"html":case"chart":case"button":T?s._getColElement(o)._show(t,L,o):f.util.textContent(t,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":T?s._getColElement(o)._showDataLabel(t,L,o,i):f.util.textContent(t,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,L,o)}if(k.length>0)for(R=0;R<k.length;R++){if(k[R].nRow===L){f.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+l),f.util.textContent(t,tt);break}f.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+l)}s._showGrandTotal(t,L,o,i)}}K&&s._setCellInvisible(L,o,!0),o>=v&&(W?!1===f.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&f.util.addClass(t,a.CELL_HIGHLIGHTREPEAT):f.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&f.util.removeClass(t,a.CELL_HIGHLIGHTREPEAT),s._setColTypeCSS(t,o),y&&!1===b?s._addFocusStyleClass(t):b&&!1===y&&s._removeFocusStyleClass(t)),x&&!1===w?f.util.addClass(t,a.CELL_SELECT):w&&!1===x&&f.util.removeClass(t,a.CELL_SELECT),j&&s._removeCellStyleCSS(t,s._getCellStyle(d,o)),G&&s._setCellStyleCSS(t,s._getCellStyle(L,o)),$&&(t.style.textAlign=Y)}s=null,t=null})),r=null,t+=m}));else{var I,N=l.objParams.bWholePositionChanged,P=l.objParams.nMovedCount,M=l.objParams.nCutRowsCount;if(M>0)P>0?(d=u.splice(0,M),t=w,I=o.nTopRow):(d=u.splice(u.length-M,M),t=w+this._getSumOfRowHeight(o.nTopRow,o.nTopRow+M-1),I=o.nTopRow+M),N||f._.each(u,(function(e,i){var a,o,l;r=f.QCELL.getInstance(n),a=I+i,o=r._getRowHeight(a),l=t,f._.each(e,(function(t){s=f.QCELL.getInstance(n);var e=parseInt(t.getAttribute("data-col")),i=s._getDataTextAlign(e),r=s._useDataTextAlign(e);t.style.top=l+"px",r&&(t.style.textAlign=i),s=null,t=null})),t+=o,r=null})),I=P>0?o.nBottomRow-M+1:o.nTopRow,t=P>0?w+this._getSumOfRowHeight(o.nTopRow,o.nBottomRow-M):w,f._.each(d,(function(e,o){r=f.QCELL.getInstance(n);var l=parseInt(e[0].getAttribute("data-row")),u=I+o,d=r._getRowHeight(u),L=t,m=-1,E=-1,y=-1,w=!1,x=!1,D=!1,P=null,M=g[u-C],q=r._isFocusRow(l),B=r._isFocusRow(u),H=r._isSelectedRow(l),U=r._isSelectedRow(u),F=r._isCellStyleRow(l),z=r._isCellStyleRow(u),W=b>0&&(u-C+1)%b==0;if(k.length>0)for(R=0;R<k.length;R++)k[R].nRow===u&&(T=!1);c.grouped&&("tree"!==c.type&&"step"!==c.type||(m=f._.indexOf(c.treeuirows,u,!0)),m>-1?(w=!0,P=c.treeuirownodes[m],x=D=!1):(E=f._.indexOf(c.headerrows,u,!0))>-1?(x=!0,P=c.headerrownodes[E],D=!1):(y=f._.indexOf(c.footerrows,u,!0))>-1&&(D=!0,P=c.footerrownodes[y],x=!1)),f._.each(e,(function(t){if(s=f.QCELL.getInstance(n),t.setAttribute("data-row",u),d!==parseInt(t.style.height)&&(t.style.height=d+"px"),N||(t.style.top=L+"px"),"true"!==t.getAttribute("data-footer")){var e,r=parseInt(t.getAttribute("data-col")),o=s._getColID(r),g=s._getColType(r),m=s._getKeyOfCol(r),E=!!q&&!!s._isFocusCol(r),b=!!B&&!!s._isFocusCol(r),y=!!H&&(!!Q||s._isSelectedCell(l,r)),I=!!U&&(!!Q||s._isSelectedCell(u,r)),j=!!F&&s._hasCellStyle(l,r),G=!!z&&s._hasCellStyle(u,r),V=s._getQCellCol(r).attr("colstyleeditordata"),K=s._getQCellCol(r).attr("cellinvisible")[u],Y=s._getDataTextAlign(r),$=s._useDataTextAlign(r);if(t.setAttribute("id",A+"_cell_"+u+"_"+r),r<v){var X=s.attr("paginationinfo");if(f._.isObject(X)&&f._.isEmpty(X)){if("sequence"===p[r]||"reverse"===p[r])O||!0!==s.getRowData(u).rt_qc_footer?s._setFooterCSS(t,"reverse"===p[r]?_-(u-C+S):u-C+1,u):s._setFooterCSS(t,"",u);else if("checkbox"===p[r]||"radio"===p[r]){if(s._isBottomPanel(t))return void s._setAriaLabelEx(t,u,r);f.$(t).empty(),T&&(e=s._createRowheaderCheckbox(t,u,r,p[r]),t.appendChild(e),"checkbox"===p[r]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[r]?s._setRowheaderState(t,u):"custom"===p[r]&&s._setRowheaderCustom(t,u,r);s._setAriaLabelEx(t,u,r)}else{var Z=u;if(C>1&&(Z=u-(C-1)),"sequence"===p[r]||"reverse"===p[r])O||!0!==s.getRowData(u).rt_qc_footer?s._setFooterCSS(t,"reverse"===p[r]?X.datacount-((X.pageindex-1)*X.pageunit+(Z-1)):(X.pageindex-1)*X.pageunit+Z,u):s._setFooterCSS(t,"",u);else if("checkbox"===p[r]||"radio"===p[r]){if(s._isBottomPanel(t))return void s._setAriaLabelEx(t,u,r);f.$(t).empty(),T&&(e=s._createRowheaderCheckbox(t,u,r,p[r]),t.appendChild(e),"checkbox"===p[r]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[r]?s._setRowheaderState(t,u):"custom"===p[r]&&s._setRowheaderCustom(t,u,r);s._setAriaLabelEx(t,u,r)}}else{i=void 0===M[m]?"":M[m];var J=s._showDataFormat(u,r,i),tt=s._showDataFormatStatic(r,i);if(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&"step"===c.type)if(w)P.key===J&&P.level+v===r?s._setTHSub(t,P,g,J,i):""!==J?s._setTDSub(t,g,J,i,M):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r);else if(x||D)switch((x||D)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,u)),J=i),g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(r)._show(t,u,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(r)._showDataLabel(t,u,r,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r)}else{for(var et={},it=0;it<c.treeuirows.length&&u>c.treeuirows[it];it++)et=c.treeuirownodes[it];if(r<=et.level+v)s._setTDSub(t,g,J,i,M);else switch(g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(r)._show(t,u,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(r)._showDataLabel(t,u,r,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r)}}else if(c.grouped&&o===h&&"tree"===c.type)if(w)s._setTHSub(t,P,g,J,i);else if(x||D)switch((x||D)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,u)),J=i),g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(r)._show(t,u,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(r)._showDataLabel(t,u,r,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r)}else s._setTDSub(t,g,J,i,M);else if(c.grouped&&"group"===c.type&&f._.indexOf(c.columnsinfo.keys(!0),o,!0)>=0)if(null!==(P=s._getGroupNode(M,m)))s._setGroupUICell(t,P,J);else if(x||D){switch(parseInt(t.getAttribute("data-row"))===u&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,u)),J=i),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":f.util.textContent(t,J);break;default:f.util.textContent(t,i)}s._setAriaLabelEx(t,u,r)}else switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"datepicker":case"number":case"slider":default:f.util.textContent(t,J),s._setAriaLabelEx(t,u,r);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(r)._show(t,u,r);break;case"selectmenu":case"multicheckbox":case"inputbutton":s._getColElement(r)._showDataLabel(t,u,r,i)}else if(x||D){switch(parseInt(t.getAttribute("data-row"))===u&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev"+s._getHFNodeLevel(P,c,u)),J=i),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):f.util.textContent(t,J);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,i)}s._setAriaLabelEx(t,u,r)}else{switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+o+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):T?f.util.textContent(t,J):f.util.textContent(t,i),s._setAriaLabelEx(t,u,r);break;case"checkbox":case"image":case"html":case"chart":case"button":T?s._getColElement(r)._show(t,u,r):f.util.textContent(t,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":T?s._getColElement(r)._showDataLabel(t,u,r,i):f.util.textContent(t,i);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",i):f.util.textContent(t,J),s._setAriaLabelEx(t,u,r)}if(k.length>0)for(R=0;R<k.length;R++){if(k[R].nRow===u){f.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+o),f.util.textContent(t,tt);break}f.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+o)}s._showGrandTotal(t,u,r,i)}}K&&s._setCellInvisible(u,r,!0),r>=v&&(W?!1===f.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&f.util.addClass(t,a.CELL_HIGHLIGHTREPEAT):f.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&f.util.removeClass(t,a.CELL_HIGHLIGHTREPEAT),s._setColTypeCSS(t,r),b&&!1===E?s._addFocusStyleClass(t):E&&!1===b&&s._removeFocusStyleClass(t)),I&&!1===y?f.util.addClass(t,a.CELL_SELECT):y&&!1===I&&f.util.removeClass(t,a.CELL_SELECT),j&&s._removeCellStyleCSS(t,s._getCellStyle(l,r)),G&&s._setCellStyleCSS(t,s._getCellStyle(u,r)),$&&(t.style.textAlign=Y)}s=null,t=null})),t+=d,r=null}));N?(P>0?(u=u.concat(d),e=o.nLastPos===o.nPos?w+this._getSumOfRowHeight(o.nTopRow,o.nEndRow)-(y-x):this._getSumOfRowHeight(o.nTopRow,o.nTopRow+(o.nPos-(o.nLastPos-o.nAdjustRows))-1)):(u=d.concat(u),e=this._getSumOfRowHeight(o.nTopRow,o.nTopRow+(o.nAdjustRows-(o.nLastPos-o.nPos))-1)),t=w,f._.each(u,(function(i,s){var a,l,c;r=f.QCELL.getInstance(n),a=o.nTopRow+s,l=r._getRowHeight(a),c=t-e,f._.each(i,(function(t){t.style.top=c+"px",t=null})),t+=l,r=null})),this._setCellGroupDOMs("row","normal",u)):P>0?this._setCellGroupDOMs("row","normal",u.concat(d)):this._setCellGroupDOMs("row","normal",d.concat(u)),this._syncCellMatrix("row")}this._updateMergeData(),d=null,u=null,p=null,g=null;var q=this;setTimeout((function(){q._trigger("viewport_changed")}))}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._updateNRs",t.message)}},f.QCELL.NormalQCELL.prototype._updateNCs=function(){try{var t,e,i,r,s,a=f.QCELL.def.css,o=this.attr("hsinfo"),n=this.getID(),l=o.objUpdateInfo,c=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=c.grouped?c.columnsinfo.keys(!0)[0]:"",u=this.attr("headertext"),d=this._getCellGroupDOMs("col","normal"),p=[],g=this.attr("currentdata"),_=this.attr("headerrows"),C=this.attr("headercols"),L=this.attr("frozencols"),m=this.attr("layoutsize").viewport.offsetWidth,E=this._getSumOfColWidth(C,C+L-1),v=this.attr("selectmode").indexOf("col")>-1,b=null,y=this.attr("staticrowsinfo"),w=!0,x=-1,Q=this.attr("id");if(c.grouped&&"parentchild"===c.mode&&void 0!==c.treeUIColumn){var k=this._getColsOfKey(c.treeUIColumn)[0];void 0!==k&&(h=this._getColID(k))}if(this._clearMerge(),this._createMergeInfo(),l.bWholeUpdate)e=l.objParams.nAdjustedLeft,t=E,f._.each(d,(function(l,d){r=f.QCELL.getInstance(n);var p=parseInt(l[0].getAttribute("data-col")),L=o.nLeftCol+d,m=r._getColWidth(L),E=t-e,k=r._getColID(L),T=r._getColType(L),R=r._getKeyOfCol(L),A=k===h,S=r._isFocusCol(p),O=r._isFocusCol(L),D=r._isSelectedCol(p),I=r._isSelectedCol(L),N=r._isCellStyleCol(p),P=r._isCellStyleCol(L),M=r._getQCellCol(L).attr("colstyleeditordata"),q=r._getQCellCol(L).attr("style"),B=r._getDataTextAlign(L),H=r._useDataTextAlign(L);f._.each(l,(function(t){if(s=f.QCELL.getInstance(n),t.setAttribute("data-col",L),t.style.left=E+"px",m!==parseInt(t.style.width)&&(t.style.width=m+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),r=e<_,o=!!S&&!!s._isFocusRow(e),l=!!O&&!!s._isFocusRow(e),h=!r&&(!!D&&(!!v||s._isSelectedCell(e,p))),d=!r&&(!!I&&(!!v||s._isSelectedCell(e,L))),U=!!N&&s._hasCellStyle(e,p),F=!!P&&s._hasCellStyle(e,L),z=r?"header":"data",W=void 0===u[L][e]?"":u[L][e],j=s._getQCellCol(L).attr("cellinvisible")[e];if(t.style.display=r?"flex":"",t.setAttribute("id",Q+"_cell_"+e+"_"+L),f.util.removeClass(t,s._getColStyleClassName(p,z)),f.util.addClass(t,s._getColStyleClassName(L,z)),w=!0,y.length>0)for(x=0;x<y.length;x++)y[x].nRow===e&&(w=!1);if(!f._.isEmpty(q)){if(f._.isObject(q[z]))for(var G=Object.keys(q[z]),V=0;V<G.length;V++)f.$(t).css(G[V],q[z][G[V]]);s.attr("qcellcols")[L].attr("style",{header:q.header,data:q.data},"object")}if(r)"checkbox"===T||"html"===T?s._getColElement(L)._headershow(t,e,L):(t.innerHTML=s._getHeaderCellSpan(W,e,L),(e===_-1||s._isLastHeaderRowMasterCell(e,L))&&s.attr("useGroupUI")&&f.$(t).draggable({helper:s._setGroupMakeHelper,revert:"invalid"})),0===e&&s._getQCellCol(L).attr("topmove")&&t.appendChild(s._getColHeaderDragDropArea()),(e===_-1||s._isLastHeaderRowMasterCell(e,L))&&(s._getQCellCol(L).attr("move")&&t.appendChild(s._getColHeaderDragDropArea()),s._getQCellCol(L).attr("search")&&t.appendChild(s._getColSearchArea()),s._getQCellCol(L).attr("sort")&&(f._.isUndefined(s._getQCellCol(L).attr("options").wholeselect)||!1===s._getQCellCol(L).attr("options").wholeselect)&&("checkbox"!==T||!1===s.attr("paginationinfo").totalsort||!1===f._.isUndefined(s.attr("paginationinfo"))&&f._.isUndefined(s.attr("paginationinfo").url))&&t.appendChild(s._getDefaultSortArea(L)),s._getQCellCol(L).attr("resize")&&t.appendChild(s._getColResizeArea()),s._getQCellCol(L).attr("filter")&&t.appendChild(s._getFilterArea(L)),s._getQCellCol(L).attr("editor")&&t.appendChild(s._getColStyleEditorArea()),s._getQCellCol(L).attr("remove")&&t.appendChild(s._getDefaultRemoveArea(L)));else{var K=g[e-_];if(void 0===K)return;i=void 0===K[R]?"":K[R];var Y=s._showDataFormat(e,L,i),$=s._showDataFormatStatic(L,i),X=!1,Z=!1,J=-1,tt=-1,et=-1,it=!1;if(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&(f._.indexOf(c.headerrows,e,!0)>-1?(X=!0,Z=!1):f._.indexOf(c.footerrows,e,!0)>-1&&(Z=!0,X=!1)),c.grouped&&"step"===c.type)if(J=-1,tt=-1,et=-1,it=!1,(J=f._.indexOf(c.treeuirows,e,!0))>-1?(it=!0,b=c.treeuirownodes[J],X=Z=!1):(tt=f._.indexOf(c.headerrows,e,!0))>-1?(X=!0,b=c.headerrownodes[tt],Z=!1):(et=f._.indexOf(c.footerrows,e,!0))>-1&&(Z=!0,b=c.footerrownodes[et],X=!1),it)b.key===Y&&b.level+C===L?s._setTHSub(t,b,T,Y,i):""!==Y?s._setTDSub(t,T,Y,i,K):f.util.textContent(t,Y),s._setAriaLabelEx(t,e,L);else if(X||Z)switch((X||Z)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),Y=i),T){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",Y):(s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y),f.util.textContent(t,Y)),s._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(L)._show(t,e,L);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(L)._showDataLabel(t,e,L,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,L)}else{for(var rt={},st=0;st<c.treeuirows.length&&e>c.treeuirows[st];st++)rt=c.treeuirownodes[st];if(L<=rt.level+C)s._setTDSub(t,T,Y,i,K);else switch(T){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",Y):s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y),s._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(L)._show(t,e,L);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(L)._showDataLabel(t,e,L,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,L)}}else if(c.grouped&&A&&"tree"===c.type)if(J=-1,tt=-1,et=-1,it=!1,"tree"===c.type&&(J=f._.indexOf(c.treeuirows,e,!0)),J>-1?(it=!0,b=c.treeuirownodes[J],X=Z=!1):(tt=f._.indexOf(c.headerrows,e,!0))>-1?(X=!0,b=c.headerrownodes[tt],Z=!1):(et=f._.indexOf(c.footerrows,e,!0))>-1&&(Z=!0,b=c.footerrownodes[et],X=!1),it)s._setTHSub(t,b,T,Y,i);else if(X||Z)switch((X||Z)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),Y=i),T){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",Y):(s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y),f.util.textContent(t,Y)),s._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(L)._show(t,e,L);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(L)._showDataLabel(t,e,L,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,L)}else s._setTDSub(t,T,Y,i,K);else if(c.grouped&&"group"===c.type&&f._.indexOf(c.columnsinfo.keys(!0),k,!0)>=0)if(null!==(b=s._getGroupNode(g[e-_],R)))s._setGroupUICell(t,b,Y);else if(X||Z){switch(parseInt(t.getAttribute("data-row"))===e&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),Y=i),T){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y);break;default:f.util.textContent(t,i)}s._setAriaLabelEx(t,e,L)}else switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),T){case"static":case"input":case"datepicker":case"number":case"slider":s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y),s._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(L)._show(t,e,L);break;case"selectmenu":case"multicheckbox":case"inputbutton":s._getColElement(L)._showDataLabel(t,e,L,i);break;default:f.util.textContent(t,i),s._setAriaLabelEx(t,e,L)}else if(X||Z){switch(parseInt(t.getAttribute("data-row"))===e&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),Y=i),T){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",Y):s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i)}s._setAriaLabelEx(t,e,L)}else{switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),T){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",Y):w?s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,Y):f.util.textContent(t,i),s._setAriaLabelEx(t,e,L);break;case"checkbox":case"image":case"html":case"chart":case"button":w?s._getColElement(L)._show(t,e,L):f.util.textContent(t,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":w?s._getColElement(L)._showDataLabel(t,e,L,i):f.util.textContent(t,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,L)}if(y.length>0)for(x=0;x<y.length;x++){if(y[x].nRow===e){f.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+k),f.util.textContent(t,$);break}f.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+k)}s._showGrandTotal(t,e,L,i)}}j&&s._setCellInvisible(e,L,!0),s._setColTypeCSS(t,L),l&&!1===o?s._addFocusStyleClass(t):o&&!1===l&&s._removeFocusStyleClass(t),d&&!1===h?f.util.addClass(t,a.CELL_SELECT):h&&!1===d&&f.util.removeClass(t,a.CELL_SELECT),U&&s._removeCellStyleCSS(t,s._getCellStyle(e,p)),F&&s._setCellStyleCSS(t,s._getCellStyle(e,L)),H&&(t.style.textAlign=B)}t=null,s=null})),t+=m,r=null}));else{var T,R=l.objParams.bWholePositionChanged,A=l.objParams.nMovedCount,S=l.objParams.nCutColsCount;if(S>0)A>0?(p=d.splice(0,S),t=E,T=o.nLeftCol):(p=d.splice(d.length-S,S),t=E+this._getSumOfColWidth(o.nLeftCol,o.nLeftCol+S-1),T=o.nLeftCol+S),R||f._.each(d,(function(e,i){var s,a,o;r=f.QCELL.getInstance(n),s=T+i,a=r._getColWidth(s),o=t,f._.each(e,(function(t){t.style.left=o+"px",t=null})),t+=a,r=null})),T=A>0?o.nRightCol-S+1:o.nLeftCol,t=A>0?E+this._getSumOfColWidth(o.nLeftCol,o.nRightCol-S):E,f._.each(p,(function(e,o){r=f.QCELL.getInstance(n);var l=parseInt(e[0].getAttribute("data-col")),d=T+o,p=r._getColWidth(d),L=t,m=r._getColID(d),E=r._getColType(d),k=r._getKeyOfCol(d),A=m===h,S=r._isFocusCol(l),O=r._isFocusCol(d),D=r._isSelectedCol(l),I=r._isSelectedCol(d),N=r._isCellStyleCol(l),P=r._isCellStyleCol(d),M=r._getQCellCol(d).attr("colstyleeditordata"),q=r._getQCellCol(d).attr("style"),B=r._getDataTextAlign(d),H=r._useDataTextAlign(d);f._.each(e,(function(t){if(s=f.QCELL.getInstance(n),t.setAttribute("data-col",d),p!==parseInt(t.style.width)&&(t.style.width=p+"px"),R||(t.style.left=L+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),r=e<_,o=!!S&&!!s._isFocusRow(e),h=!!O&&!!s._isFocusRow(e),T=!r&&(!!D&&(!!v||s._isSelectedCell(e,l))),U=!r&&(!!I&&(!!v||s._isSelectedCell(e,d))),F=!!N&&s._hasCellStyle(e,l),z=!!P&&s._hasCellStyle(e,d),W=r?"header":"data",j=void 0===u[d][e]?"":u[d][e],G=s._getQCellCol(d).attr("cellinvisible")[e];if(t.style.display=r?"flex":"",t.setAttribute("id",Q+"_cell_"+e+"_"+d),f.util.removeClass(t,s._getColStyleClassName(l,W)),f.util.addClass(t,s._getColStyleClassName(d,W)),w=!0,y.length>0)for(x=0;x<y.length;x++)y[x].nRow===e&&(w=!1);if(!f._.isEmpty(q)){if(f._.isObject(q[W]))for(var V=Object.keys(q[W]),K=0;K<V.length;K++)f.$(t).css(V[K],q[W][V[K]]);s.attr("qcellcols")[d].attr("style",{header:q.header,data:q.data},"object")}if(r)"checkbox"===E||"html"===E?s._getColElement(d)._headershow(t,e,d):(t.innerHTML=s._getHeaderCellSpan(j,e,d),(e===_-1||s._isLastHeaderRowMasterCell(e,d))&&s.attr("useGroupUI")&&f.$(t).draggable({helper:s._setGroupMakeHelper,revert:"invalid"})),0===e&&s._getQCellCol(d).attr("topmove")&&t.appendChild(s._getColHeaderDragDropArea()),(e===_-1||s._isLastHeaderRowMasterCell(e,d))&&(s._getQCellCol(d).attr("move")&&t.appendChild(s._getColHeaderDragDropArea()),s._getQCellCol(d).attr("search")&&t.appendChild(s._getColSearchArea()),s._getQCellCol(d).attr("sort")&&(f._.isUndefined(s._getQCellCol(d).attr("options").wholeselect)||!1===s._getQCellCol(d).attr("options").wholeselect)&&("checkbox"!==E||!1===s.attr("paginationinfo").totalsort||!1===f._.isUndefined(s.attr("paginationinfo"))&&f._.isUndefined(s.attr("paginationinfo").url))&&t.appendChild(s._getDefaultSortArea(d)),s._getQCellCol(d).attr("resize")&&t.appendChild(s._getColResizeArea()),s._getQCellCol(d).attr("filter")&&t.appendChild(s._getFilterArea(d)),s._getQCellCol(d).attr("editor")&&t.appendChild(s._getColStyleEditorArea()),s._getQCellCol(d).attr("remove")&&t.appendChild(s._getDefaultRemoveArea(d)));else{var Y=g[e-_];if(void 0===Y)return;i=void 0===Y[k]?"":Y[k];var $=s._showDataFormat(e,d,i),X=s._showDataFormatStatic(d,i),Z=!1,J=!1,tt=-1,et=-1,it=-1,rt=!1;if(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&(f._.indexOf(c.headerrows,e,!0)>-1?(Z=!0,J=!1):f._.indexOf(c.footerrows,e,!0)>-1&&(J=!0,Z=!1)),c.grouped&&"step"===c.type)if(tt=-1,et=-1,it=-1,rt=!1,(tt=f._.indexOf(c.treeuirows,e,!0))>-1?(rt=!0,b=c.treeuirownodes[tt],Z=J=!1):(et=f._.indexOf(c.headerrows,e,!0))>-1?(Z=!0,b=c.headerrownodes[et],J=!1):(it=f._.indexOf(c.footerrows,e,!0))>-1&&(J=!0,b=c.footerrownodes[it],Z=!1),rt)b.key===$&&b.level+C===d?s._setTHSub(t,b,E,$,i):""!==$?s._setTDSub(t,E,$,i,Y):f.util.textContent(t,$),s._setAriaLabelEx(t,e,d);else if(Z||J)switch((Z||J)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),$=i),E){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",$):s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$),s._setAriaLabelEx(t,e,d);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(d)._show(t,e,d);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(d)._showDataLabel(t,e,d,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,d)}else{for(var st={},at=0;at<c.treeuirows.length&&e>c.treeuirows[at];at++)st=c.treeuirownodes[at];if(d<=st.level+C)s._setTDSub(t,E,$,i,Y);else switch(E){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",$):s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$),s._setAriaLabelEx(t,e,d);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(d)._show(t,e,d);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(d)._showDataLabel(t,e,d,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,d)}}else if(c.grouped&&A&&"tree"===c.type)if(tt=-1,et=-1,it=-1,rt=!1,"tree"===c.type&&(tt=f._.indexOf(c.treeuirows,e,!0)),tt>-1?(rt=!0,b=c.treeuirownodes[tt],Z=J=!1):(et=f._.indexOf(c.headerrows,e,!0))>-1?(Z=!0,b=c.headerrownodes[et],J=!1):(it=f._.indexOf(c.footerrows,e,!0))>-1&&(J=!0,b=c.footerrownodes[it],Z=!1),rt)s._setTHSub(t,b,E,$,i);else if(Z||J)switch((Z||J)&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),$=i),E){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",$):s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$),s._setAriaLabelEx(t,e,d);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(d)._show(t,e,d);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":s._getColElement(d)._showDataLabel(t,e,d,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,d)}else s._setTDSub(t,E,$,i,Y);else if(c.grouped&&"group"===c.type&&f._.indexOf(c.columnsinfo.keys(!0),m,!0)>=0)if(null!==(b=s._getGroupNode(g[e-_],k)))s._setGroupUICell(t,b,$);else if(Z||J){switch(parseInt(t.getAttribute("data-row"))===e&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),$=i),E){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$);break;default:f.util.textContent(t,i)}s._setAriaLabelEx(t,e,d)}else switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),E){case"static":case"input":case"datepicker":case"number":case"slider":s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$),s._setAriaLabelEx(t,e,d);break;case"checkbox":case"image":case"html":case"chart":case"button":s._getColElement(d)._show(t,e,d);break;case"selectmenu":case"multicheckbox":case"inputbutton":s._getColElement(d)._showDataLabel(t,e,d,i);break;default:f.util.textContent(t,i),s._setAriaLabelEx(t,e,d)}else if(Z||J){switch(parseInt(t.getAttribute("data-row"))===e&&(f.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev"+s._getHFNodeLevel(b,c,e)),$=i),E){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",$):s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i)}s._setAriaLabelEx(t,e,d)}else{switch(f.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+m+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),E){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",$):w?s._isBottomPanel(t)?f.util.textContent(t,i):f.util.textContent(t,$):f.util.textContent(t,i),s._setAriaLabelEx(t,e,d);break;case"checkbox":case"image":case"html":case"chart":case"button":w?s._getColElement(d)._show(t,e,d):f.util.textContent(t,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":w?s._getColElement(d)._showDataLabel(t,e,d,i):f.util.textContent(t,i);break;default:M.replace("QCELL_COL_DATA","").length>0?t.innerHTML=M.replace("QCELL_COL_DATA",i):f.util.textContent(t,i),s._setAriaLabelEx(t,e,d)}if(y.length>0)for(x=0;x<y.length;x++){if(y[x].nRow===e){f.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+m),f.util.textContent(t,X);break}f.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+m)}s._showGrandTotal(t,e,d,i)}}G&&s._setCellInvisible(e,d,!0),s._setColTypeCSS(t,d),h&&!1===o?s._addFocusStyleClass(t):o&&!1===h&&s._removeFocusStyleClass(t),U&&!1===T?f.util.addClass(t,a.CELL_SELECT):T&&!1===U&&f.util.removeClass(t,a.CELL_SELECT),F&&s._removeCellStyleCSS(t,s._getCellStyle(e,l)),z&&s._setCellStyleCSS(t,s._getCellStyle(e,d)),H&&(t.style.textAlign=B)}t=null,s=null})),t+=p,r=null}));R?(A>0?(d=d.concat(p),e=o.nLastPos===o.nPos?E+this._getSumOfColWidth(o.nLeftCol,o.nEndCol)-m:this._getSumOfColWidth(o.nLeftCol,o.nLeftCol+(o.nPos-(o.nLastPos-o.nAdjustCols))-1)):(d=p.concat(d),e=this._getSumOfColWidth(o.nLeftCol,o.nLeftCol+(o.nAdjustCols-(o.nLastPos-o.nPos))-1)),t=E,f._.each(d,(function(i,s){var a,l,c;r=f.QCELL.getInstance(n),a=o.nLeftCol+s,l=r._getColWidth(a),c=t-e,f._.each(i,(function(t){t.style.left=c+"px",t=null})),t+=l,r=null})),this._setCellGroupDOMs("col","normal",d)):A>0?this._setCellGroupDOMs("col","normal",d.concat(p)):this._setCellGroupDOMs("col","normal",p.concat(d)),this._syncCellMatrix("col")}this._updateMerge(),d=null,p=null}catch(t){f.QCELL.log("err","QCELL.NormalQCELL._updateNCs",t.message)}},f.QCELL.NormalQCELL.prototype.onVScroll=function(t){this._onScrollHideEditCellsDOM(),f.QCELL.BasicQCELL.prototype.onVScroll.call(this,t)},f.QCELL.NormalQCELL.prototype.addRow=function(t){var e=this.attr("id")+".addRow",i=this.attr("data").type;if(t=void 0===t?"array"===i?[]:{}:t,"array"===i&&f._.isArray(t)||"object"===i&&"object"===n(t)&&!1===f._.isArray(t)){var r=this._insertRows(this.attr("rows"),[t]);if(!0===r){var s=this;setTimeout((function(){s._trigger("rowinserted")}),0)}return r}return f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),!1},f.QCELL.NormalQCELL.prototype.addRows=function(t){var e=this.attr("id")+".addRows";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>0&&this._insertRows(this.attr("rows"),f._.map(f._.range(t),(function(){return{}})));if(f._.isArray(t)){var i=this.attr("data").type;if("array"===i&&f._.every(t,(function(t){return f._.isArray(t)}))||"object"===i&&f._.every(t,(function(t){return!1===f._.isArray(t)&&"object"===n(t)}))){var r=t.length>0&&this._insertRows(this.attr("rows"),t);if(!0===r){var s=this;setTimeout((function(){s._trigger("rowinserted")}),0)}return r}}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.insertRow=function(t,e){var i=this.attr("id")+".insertRow",r=this.attr("data").type;if(e=void 0===e?"array"===r?[]:{}:e,"number"==typeof t&&"array"===r&&f._.isArray(e)||"object"===r&&"object"===n(e)&&!1===f._.isArray(e)){var s=t>=this.attr("headerrows")&&this._insertRows(t,[e]);if(!0===s){var a=this;setTimeout((function(){a._trigger("rowinserted")}),0)}return s}return f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE),!1},f.QCELL.NormalQCELL.prototype.insertRows=function(t,e){var i=this.attr("id")+".insertRows";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t){if("number"==typeof e)return t>=this.attr("headerrows")&&e>0&&this._insertRows(t,f._.map(f._.range(e),(function(){return{}})));if(f._.isArray(e)){var r=this.attr("data").type;if("array"===r&&f._.every(e,(function(t){return f._.isArray(t)}))||"object"===r&&f._.every(e,(function(t){return!1===f._.isArray(t)&&"object"===n(t)}))){var s=t>=this.attr("headerrows")&&e.length>0&&this._insertRows(t,e);if(!0===s){var a=this;setTimeout((function(){a._trigger("rowinserted")}),0)}return s}}else f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.insertRowsEx=function(t){var e=this._insertRowsEx(t);if(!0===e){var i=this;setTimeout((function(){i._trigger("rowinserted")}),0)}return e},f.QCELL.NormalQCELL.prototype.removeRow=function(){var t=this._deleteRows(this.attr("rows")-1,1);if(!0===t){var e=this;setTimeout((function(){e._trigger("rowdeleted")}),0)}return t},f.QCELL.NormalQCELL.prototype.removeRows=function(t){var e=this.attr("id")+".removeRows";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){var i=t>0&&this._deleteRows(this.attr("rows")-t,t);if(!0===i){var r=this;setTimeout((function(){r._trigger("rowdeleted")}),0)}return i}f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.deleteRow=function(t){var e=this.attr("id")+".deleteRow";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){if(this.getRows()<=t)return!1;var i=t>=this.attr("headerrows")&&this._deleteRows(t,1);if(!0===i){var r=this;setTimeout((function(){r._trigger("rowdeleted")}),0)}return i}f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.deleteRows=function(t,e){var i=this.attr("id")+".deleteRows";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){if(this.getRows()<=t)return!1;var r=t>=this.attr("headerrows")&&e>0&&this._deleteRows(t,e);if(!0===r){var s=this;setTimeout((function(){s._trigger("rowdeleted")}),0)}return r}f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.deleteRowsEx=function(t){var e=this._deleteRowsEx(t);if(!0===e){var i=this;setTimeout((function(){i._trigger("rowdeleted")}),0)}return e},f.QCELL.NormalQCELL.prototype.getState=function(t){var e=this.attr("id")+".getState",i=[];if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("string"==typeof t)switch(t){case"d":case"i":case"u":i=this._getState(t)}else f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return i},f.QCELL.NormalQCELL.prototype.getStates=function(){return this._getStates()},f.QCELL.NormalQCELL.prototype.clearStates=function(){return this._clearStates()},f.QCELL.NormalQCELL.prototype.getStatesEx=function(t){return this._getStatesEx(t)},f.QCELL.NormalQCELL.prototype.getStatesBySep=function(t,e,i){return this._getStatesBySep(t,e,i)},f.QCELL.NormalQCELL.prototype.getAllStatesBySep=function(t,e,i,r){return this._getAllDataStatesBySep(t,e,i,r)},f.QCELL.NormalQCELL.prototype.setCellDisable=function(t,e,i,r){var s=this.attr("id")+".setCellDisable";if(arguments.length<3)f.QCELL.log("err",s,this.attr("msg").err.PARAM_COUNT);else{if(e>this.getCols())return!1;if(f._.isNumber(t)&&f._.isNumber(e)){this._setCellDisabled(t,e,i);var a,o=this.attr("currentdata"),n=this._getKeyOfCol(e);if(void 0!==r&&void 0!==(a=o[t-this.attr("headerrows")])&&(a["_rt_qc_d_"+n]=r,!0===i)){var l=this._getCellDOM(t,e);null!=l&&f.util.textContent(l,r)}return!1===i&&void 0!==(a=o[t-this.attr("headerrows")])&&void 0!==a["_rt_qc_d_"+n]&&(delete a["_rt_qc_d_"+n],this.setCellDataEx(t,n,a[n])),!0}f.QCELL.log("err",s,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.setCellsDisable=function(t,e,i,r,s){var a=this.attr("id")+".setCellsDisable";if(arguments.length<5)f.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(f._.isNumber(t)&&f._.isNumber(e)&&f._.isNumber(i)&&f._.isNumber(r)){var o,n;for(o=t;o<=i;o++)for(n=e;n<=r;n++)this._setCellDisabled(o,n,s);return!0}f.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.setRowDisable=function(t,e,i){var r=this.attr("id")+".setRowDisable";if(arguments.length<2)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(f._.isNumber(t)&&f._.isBoolean(e)){var s,a=this.attr("cols"),o=this.attr("headercols");if(f._.isUndefined(i))i="data";else if(!f._.isString(i))return f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE),!1;if("rowheader"===i||"all"===i)for(s=0;s<o;s++)this.setCellDisable(t,s,e);if("data"===i||"all"===i)for(s=o;s<a;s++)this.setCellDisable(t,s,e);return!0}f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.setColDisable=function(t,e){var i=this.attr("id")+".setColDisable";if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(f._.isNumber(t)){if(t<this.getCols("header")||t>=this.getCols())return!1;for(var r=this.attr("headerrows"),s=this.attr("rows"),a=r;a<s;a++)this._setCellDisabled(a,t,e,!0);var o=this._getQCellCol(t);return null!==o&&o.attr("_coldisable",e,"boolean"),!0}f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.getColDisable=function(t){var e=this.attr("id")+".getColDisable";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(f._.isNumber(t)){var i=this._getQCellCol(t);return null!==i&&(null!==i.attr("_coldisable")&&i.attr("_coldisable"))}f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.getDisable=function(){return!0===this.attr("bQcellDisable")},f.QCELL.NormalQCELL.prototype.setDisable=function(t){var e=this.attr("id")+".setDisable";if(!(arguments.length<1)){for(var i=this.attr("headercols"),r=this.attr("cols"),s=i;s<r;s++)this.setColDisable(s,t);return this.attr("bQcellDisable",t,"boolean"),!0}return f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),!1},f.QCELL.NormalQCELL.prototype.closeEditMode=function(){return this._onScrollHideEditCellsDOM(),!0},f.QCELL.NormalQCELL.prototype.getRowState=function(t){return this._getRowState(t)},f.QCELL.NormalQCELL.prototype.setRowState=function(t,e){return this._setRowState(t,e)},f.QCELL.NormalQCELL.prototype.removeRowState=function(t){return this._removeRowState(t)},f.QCELL.NormalQCELL.prototype.clearRowStates=function(){return this._clearRowStates()},f.QCELL.NormalQCELL.prototype.checkRequired=function(){return this._checkRequired()},f.QCELL.NormalQCELL.prototype.divisionSubmit=function(t,e){var i=this.attr("id")+".divisionSubmit";if(f._.isEmpty(this.attr("paginationinfo")))if(arguments.length<2)f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(f._.isString(t)&&f._.isNumber(e))return this._divisionSubmit(t,e);f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}else f.QCELL.log("err",i,this.attr("msg").err.CAN_NOT_USE_WITH_PAGINATION);return!1},f.QCELL.NormalQCELL.prototype.insertStaticRow=function(t,e){var i=this.attr("id")+".insertRow",r=this.attr("data").type;return e=void 0===e?"array"===r?[]:{}:e,"number"==typeof t&&"array"===r&&f._.isArray(e)||"object"===r&&"object"===n(e)&&!1===f._.isArray(e)?t>=this.attr("headerrows")&&this._insertStaticRows(t,[e]):(f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE),!1)},f.QCELL.NormalQCELL.prototype.deleteStaticRow=function(t){var e=this.attr("id")+".deleteStaticRow";if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>=this.attr("headerrows")&&this._deleteStaticRows(t,1);f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.getFocusRowState=function(){return this._getFocusRowState()},f.QCELL.NormalQCELL.prototype.getSelectRowState=function(t){return this._getSelectRowState(t)},f.QCELL.NormalQCELL.prototype.setCellInvisible=function(t,e,i){var r=this.attr("id")+".setCellInvisible";if(arguments.length<3)f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(f._.isNumber(t)&&f._.isNumber(e)&&f._.isBoolean(i))return this._setCellInvisible(t,e,i),!0;f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},f.QCELL.NormalQCELL.prototype.getColSum=function(t){var e=this.attr("headerrows"),i=this.attr("colkeys")[t],r=0,s=this;return f.$(this.attr("currentdata")).each((function(t,a){s.isStaticRow(t+e-1)||f._.isNumber(a[i])&&(r+=parseFloat(a[i]))})),r},f.QCELL.NormalQCELL.prototype.isStaticRow=function(t){for(var e=this.attr("staticrowsinfo"),i=!1,r=0;r<e.length;r++)if(e[r].nRow===t){i=!0;break}return i},f.QCELL.NormalQCELL.prototype.editCell=function(t,e,i){var r,s=this.getID();if(!(t>=this.getRows()||t<this.getRows("header"))){if(this.focusCell(t,e),!1!==i)this.scrollTop(t),this.scrollLeft(e);else if(null===this._getCellDOM(t,e))return;var a=200;return!0===this.attr("hsinfo").bHScroll&&this.attr("hsinfo").nRightCol===e&&(a=300),setTimeout((function(){var i=(r=f.QCELL.getInstance(s))._getQCellCol(e).attr("celldisabled")[t],a=r._getCellDOM(t,e);if(null!==a){switch(r._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":(f._.isUndefined(i)||!1===i)&&r._getColElement(e)._show(a,"");break;case"datepicker":(f._.isUndefined(i)||!1===i)&&r._getColElement(e)._show(a);break;case"multicheckbox":case"editor":(f._.isUndefined(i)||!1===i)&&r._getColElement(e)._show(a,t,e)}r=null}}),a),!0}},f.QCELL.NormalQCELL.prototype.getAllStates=function(){return this._getAllStates()},f.QCELL.NormalQCELL.prototype.setColOptions=function(t,e){if(t<this.getCols("header"))return!1;var i=this._getQCellCol(t);if(null==i)return!1;var r=f._.clone(e);i.attr("options",r,"object"),i._initAttr("format",r.format,"object");var s=this._getColMask(t);if(i._initAttr("mask",r.mask,"object"),i._initAttr("html",r.html,"object"),i._initAttr("chart",r.chart,"object"),i._initAttr("invisibled",r.invisibled,"boolean"),"input"===this._getColType(t)){var a=this._getColElement(t);a._setOptionsAttrs(r),!f._.isUndefined(s)&&f._.isObject(s)&&(f.$(a.attr("element")).inputmask().remove(),a._initEvent())}for(var o=this.attr("vsinfo"),n=o.nTopRow;n<=o.nBottomRow;n++){var l=this._getCellDOM(n,t);if(null!=l){var c=this.getCellData(n,t),h=this._showDataFormat(n,t,void 0===c?"":c);f.util.textContent(l,h)}}return!0},f.QCELL.NormalQCELL.prototype.getColOptions=function(t){return t<this.getCols("header")?null:this._getColOptions(t)},f.QCELL.NormalQCELL.prototype.isHeaderCheckbox=function(t){var e=this.attr("id")+".isHeaderCheckbox",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t||f._.isNull(this._getColElement(t))||"checkbox"!==this._getColType(t)?f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):i=this._getColElement(t)._isHeaderCheckbox(t),i},f.QCELL.NormalQCELL.prototype.getHeaderCheckedState=function(t){var e=this.attr("id")+".getHeaderCheckedState",i=!1;return arguments.length<1?f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t||f._.isNull(this._getColElement(t))||"checkbox"!==this._getColType(t)?f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):i=this._getColElement(t)._getHeaderCheckedState(t),i},f.QCELL.NormalQCELL.prototype.setHeaderChecked=function(t,e){var i=this.attr("id")+".setHeaderChecked";arguments.length<2?f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t?f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE):f._.isNull(this._getColElement(t))&&"checkbox"!==this._getColType(t)?f.QCELL.log("err",i,this.attr("msg").err.TYPE_NOT_CHECKBOX):"boolean"!=typeof e?f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE):this._getColElement(t)._setHeaderChecked(t,e)},f.QCELL.NormalQCELL.prototype.getCheckedRows=function(t){var e=this.attr("id")+".getCheckedRows",i=[];if(arguments.length<1)f.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("number"!=typeof t)f.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);else if(f._.isNull(this._getColElement(t))&&"checkbox"!==this._getColType(t))f.QCELL.log("err",e,this.attr("msg").err.TYPE_NOT_CHECKBOX);else for(var r=this.attr("headerrows"),s=this.attr("rows"),a=this._getColElement(t).attr("checkedvalue");r<s;r++)a===this._cellValue(r,t)&&i.push(r);return i},f.QCELL.NormalQCELL.prototype.setSelectmenuValue=function(t,e,i){var r=this.attr("id")+".setSelectmenuValue",s=!1;return arguments.length<3?f.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT):f._.isNumber(t)&&f._.isNumber(e)&&(f._.isString(i)||f._.isNumber(i))&&!f._.isNull(this._getColElement(e))&&"selectmenu"===this._getColType(e)?s=this._getColElement(e)._showDataLabel(this._getCellDOM(t,e),t,e,i):f.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE),s},f.QCELL.NormalQCELL.prototype.getSelectmenuLabel=function(t,e){var i=this.attr("id")+".getSelectmenuLabel",r="";return arguments.length<2?f.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT):f._.isNumber(t)&&f._.isNumber(e)&&!f._.isNull(this._getColElement(e))&&"selectmenu"===this._getColType(e)?r=this._getColElement(e)._getDataLabel(t,e):f.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE),r},f.QCELL.config=f._.extend(f._.clone(f.QCELL.config),{moduletype:"normal",oneclickedit:!1,htmlselectmenu:!1,usebuttonclickcallback:!1,delkeymode:"select",setstatewithapi:!0,sethtmlclicktoidx:!0,useenterkeytonextcol:!1,keepeditmode:!1,datepickerautosettoday:!1,useinitdata:!0}),f.QCELL.def.msg.kr.err=f._.extend(f._.clone(f.QCELL.def.msg.kr.err),{TYPE_NOT_CHECKBOX:"지정한 열의 타입은 'checkbox'가 아닙니다.",NOT_HAVE_HEADER_CHECKBOX:"지정한 열의 options 중 'wholeselect' 값이 설정되어 있지 않거나 사용 설정된 상태가 아닙니다.",CAN_NOT_USE_WITH_PAGINATION:"pagination 속성과 같이 사용할 수 없습니다."}),f.QCELL.def.msg.en.err=f._.extend(f._.clone(f.QCELL.def.msg.en.err),{TYPE_NOT_CHECKBOX:"Please check, This col`s Type. Is a 'checkbox'.",NOT_HAVE_HEADER_CHECKBOX:"Please check, This col`s options. Is not set up 'wholeselect' or 'wholeselect' value is not true.",CAN_NOT_USE_WITH_PAGINATION:"Please check, can`t use with a 'pagination' attribute."}),f.QCELL.NormalQCELL.create=function(t){return f.QCELL.BasicQCELL.create.call(this,t)},f.QCELL.NormalQCELL._create=function(t){return f.QCELL.BasicQCELL._create.call(this,t)},f.QCELL.NormalQCELL._checkRequiredProps=function(t){return!!f.QCELL.BasicQCELL._checkRequiredProps(t)},f.QCELL.NormalQCELL._checkValidationOfProps=function(t){var e=!1;return f.QCELL.BasicQCELL._checkValidationOfProps(t)&&f.$.each(t,(function(t,i){return e=f.QCELL.NormalQCELL._checkValidationOfProp(t,i)})),e},f.QCELL.NormalQCELL._checkValidationOfProp=function(t,e){var i=!0,r="";if("oneclickedit"===t)r="boolean",!1===f._.isBoolean(e)&&(i=!1);return!1===i&&f.QCELL.log("err","QCELL.create",'Please check "'+t+'" property\'s type is "'+r+'".'),i},f.QCELL.NormalQCELL._adjustProps=function(t){var e=f._.mapValues(f.QCELL.BasicQCELL._adjustProps(t),(function(t,e){return f.QCELL.NormalQCELL._adjustProp(e,t)}));return f._.assign(f._.clone(f.QCELL.config),e)},f.QCELL.NormalQCELL._adjustProp=function(t,e){return void 0===e?f.QCELL.BasicQCELL._getDefaultValueOfProp(t):e},f.QCELL.def.resource={search:"검색",reset:"초기화",adjust:"적용",cancel:"취소"},window.QCELL=f.QCELL;const g=f.QCELL;t.exports&&(t.exports=f.QCELL)},1283:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var i=function(t){var i="function",r="string";if("undefined"==("undefined"==typeof encodeURIComponent?"undefined":e(encodeURIComponent))||Array.prototype.splice===t||Object.prototype.hasOwnProperty===t)return null;function s(t){return e(t)==r?t:""+t}function a(t){var o;return e(t)==r?t:e(t.hashCode)==i?e(o=t.hashCode())==r?o:a(o):s(t)}function o(t,e){return t.equals(e)}function n(t,r){return e(r.equals)==i?r.equals(t):t===r}function l(e){return function(i){if(null===i)throw new Error("null is not a valid "+e);if(i===t)throw new Error(e+" must not be undefined")}}var c=l("key"),h=l("value");function u(t,e,i,r){this[0]=t,this.entries=[],this.addEntry(e,i),null!==r&&(this.getEqualityFunction=function(){return r})}function d(t){return function(e){for(var i,r=this.entries.length,s=this.getEqualityFunction(e);r--;)if(s(e,(i=this.entries[r])[0]))switch(t){case 0:return!0;case 1:return i;case 2:return[r,i[1]]}return!1}}function p(t){return function(e){for(var i=e.length,r=0,s=this.entries,a=s.length;r<a;++r)e[i+r]=s[r][t]}}function f(t,e){var i=t[e];return i&&i instanceof u?i:null}function g(){var e=[],i={},r={replaceDuplicateKey:!0,hashCode:a,equals:null},s=arguments[0],o=arguments[1];o!==t?(r.hashCode=s,r.equals=o):s!==t&&function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(r,s);var n=r.hashCode,l=r.equals;this.properties=r,this.put=function(t,s){c(t);var a,o,h=n(t),d=null;return(a=f(i,h))?(o=a.getEntryForKey(t))?(r.replaceDuplicateKey&&(o[0]=t),d=o[1],o[1]=s):a.addEntry(t,s):(a=new u(h,t,s,l),e.push(a),i[h]=a),d},this.putAt=function(t,s,a){c(t);var o,h,d=n(t),p=null;return(o=f(i,d))?(h=o.getEntryForKey(t))?(r.replaceDuplicateKey&&(h[0]=t),p=h[1],h[1]=s):o.addEntry(t,s):(o=new u(d,t,s,l),e.RT_insertArray(a,[o]),i[d]=o),p},this.moveAt=function(t,i){if(i<0||i>e.length)return null;c(t);var r=this.remove(t);return this.putAt(t,r,i),r},this.get=function(t){c(t);var e=n(t),r=f(i,e);if(r){var s=r.getEntryForKey(t);if(s)return s[1]}return null},this.containsKey=function(t){c(t);var e=n(t),r=f(i,e);return!!r&&r.containsKey(t)},this.containsValue=function(t){h(t);for(var i=e.length;i--;)if(e[i].containsValue(t))return!0;return!1},this.clear=function(){e.length=0,i={}},this.isEmpty=function(){return!e.length};var d=function(t){return"keys"==t?function(i){for(var r=[],s=e.length;s--;)e[s][t](r);return i?r.reverse():r}:function(){for(var i=[],r=e.length;r--;)e[r][t](i);return i}};this.keys=d("keys"),this.values=d("values"),this.entries=d("getEntries"),this.remove=function(t){c(t);var r,s=n(t),a=null,o=f(i,s);return o&&null!==(a=o.removeEntryForKey(t))&&0==o.entries.length&&(r=function(t,e){for(var i=t.length;i--;)if(e===t[i][0])return i;return null}(e,s),e.splice(r,1),delete i[s]),a},this.size=function(){for(var t=0,i=e.length;i--;)t+=e[i].entries.length;return t}}return u.prototype={getEqualityFunction:function(t){return e(t.equals)==i?o:n},getEntryForKey:d(1),getEntryAndIndexForKey:d(2),removeEntryForKey:function(t){var e=this.getEntryAndIndexForKey(t);return e?(this.entries.splice(e[0],1),e[1]):null},addEntry:function(t,e){this.entries.push([t,e])},keys:p(0),values:p(1),getEntries:function(t){for(var e=t.length,i=0,r=this.entries,s=r.length;i<s;++i)t[e+i]=r[i].slice(0)},containsKey:d(0),containsValue:function(t){for(var e=this.entries,i=e.length;i--;)if(t===e[i][1])return!0;return!1}},g.prototype={each:function(t,e){var i,r=this.entries(),s=r.length;if(e)for(var a=0;a<s;a++)t((i=r[a])[0],i[1]);else for(;s--;)t((i=r[s])[0],i[1])},equals:function(t){var e,i,r,s=this.size();if(s==t.size()){for(e=this.keys();s--;)if(i=e[s],null===(r=t.get(i))||r!==this.get(i))return!1;return!0}return!1},putAll:function(t,r){for(var s,a,o,n,l=t.entries(),c=l.length,h=e(r)==i;c--;)a=(s=l[c])[0],o=s[1],h&&(n=this.get(a))&&(o=r(a,n,o)),this.put(a,o)},clone:function(){var t=new g(this.properties);return t.putAll(this),t}},g.prototype.toQueryString=function(){for(var t,e=this.entries(),i=e.length,r=[];i--;)t=e[i],r[i]=encodeURIComponent(s(t[0]))+"="+encodeURIComponent(s(t[1]));return r.join("&")},g}();t.exports={_QHashSet:function(t,e){var r=new i(t,e);this.add=function(t){r.put(t,!0)},this.addAll=function(t){for(var e=0,i=t.length;e<i;++e)r.put(t[e],!0)},this.values=function(t){return r.keys(t)},this.remove=function(t){return r.remove(t)?t:null},this.contains=function(t){return r.containsKey(t)},this.clear=function(){r.clear()},this.size=function(){return r.size()},this.isEmpty=function(){return r.isEmpty()},this.clone=function(){var i=new window._QHashSet(t,e);return i.addAll(r.keys()),i},this.intersection=function(i){for(var s,a=new window._QHashSet(t,e),o=i.values(),n=o.length;n--;)s=o[n],r.containsKey(s)&&a.add(s);return a},this.union=function(t){for(var e,i=this.clone(),s=t.values(),a=s.length;a--;)e=s[a],r.containsKey(e)||i.add(e);return i},this.isSubsetOf=function(t){for(var e=r.keys(),i=e.length;i--;)if(!t.contains(e[i]))return!1;return!0},this.complement=function(i){for(var r,s=new window._QHashSet(t,e),a=this.values(),o=a.length;o--;)r=a[o],i.contains(r)||s.add(r);return s}},_QHashtable:i}},6362:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var i={};(function(t){function i(t){for(var e="",i=t.length-1;i>=0;)e+=t.charAt(i--);return e}function r(t,e){for(var i="";i.length<e;)i+=t;return i}function s(t,e){var i=""+t;return i.length>=e?i:r("0",e-i.length)+i}function a(t,e){var i=""+t;return i.length>=e?i:r(" ",e-i.length)+i}function o(t,e){var i=""+t;return i.length>=e?i:i+r(" ",e-i.length)}function n(t,e){var i=""+Math.round(t);return i.length>=e?i:r("0",e-i.length)+i}function l(t,e){var i=""+t;return i.length>=e?i:r("0",e-i.length)+i}function c(t,e){return t>v||-v>t?n(t,e):l(Math.round(t),e)}function h(t,e){return t.length>=7+e&&103==(32|t.charCodeAt(e))&&101==(32|t.charCodeAt(e+1))&&110==(32|t.charCodeAt(e+2))&&101==(32|t.charCodeAt(e+3))&&114==(32|t.charCodeAt(e+4))&&97==(32|t.charCodeAt(e+5))&&108==(32|t.charCodeAt(e+6))}function u(t){for(var e=0;e!=b.length;++e)void 0===t[b[e][0]]&&(t[b[e][0]]=b[e][1])}function d(t,e,i){for(var r=0>t?-1:1,s=t*r,a=0,o=1,n=0,l=1,c=0,h=0,u=Math.floor(s);e>c&&(n=(u=Math.floor(s))*o+a,h=u*c+l,!(5e-10>s-u));)s=1/(s-u),a=o,o=n,l=c,c=h;if(h>e&&(h=c,n=o),h>e&&(h=l,n=a),!i)return[0,r*n,h];if(0===h)throw"Unexpected state: "+n+" "+o+" "+a+" "+h+" "+c+" "+l;var d=Math.floor(r*n/h);return[d,r*n-d*h,h]}function p(t,e){return""+t}function f(t,i){switch(e(t)){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?p(t):Q(t,i)}throw new Error("unsupported value in General format: "+t)}function g(t,e,i){if(t>2958465||0>t)return null;var r=0|t,s=Math.floor(86400*(t-r)),a=0,o=[],n={D:r,T:s,u:86400*(t-r)-s,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(n.u)<1e-6&&(n.u=0),u(null!=e?e:e=[]),e.date1904&&(r+=1462),n.u>.999&&(n.u=0,86400==++s&&(s=0,++r)),60===r)o=i?[1317,10,29]:[1900,2,29],a=3;else if(0===r)o=i?[1317,8,29]:[1900,1,0],a=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),60>r&&(a=(a+6)%7),i&&(a=0)}return n.y=o[0],n.m=o[1],n.d=o[2],n.S=s%60,s=Math.floor(s/60),n.M=s%60,s=Math.floor(s/60),n.H=s,n.q=a,n}function _(t,e,i,r){var a,o="",n=0,l=0,c=i.y,h=0;switch(t){case 98:c=i.y+543;case 121:switch(e.length){case 1:case 2:a=c%100,h=2;break;default:a=c%1e4,h=4}break;case 109:switch(e.length){case 1:case 2:a=i.m,h=e.length;break;case 3:return x[i.m-1][1];case 5:return x[i.m-1][0];default:return x[i.m-1][2]}break;case 100:switch(e.length){case 1:case 2:a=i.d,h=e.length;break;case 3:return w[i.q][0];default:return w[i.q][1]}break;case 104:switch(e.length){case 1:case 2:a=1+(i.H+11)%12,h=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:a=i.H,h=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:a=i.M,h=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(0===i.u)switch(e){case"s":case"ss":return s(i.S,e.length)}switch(e){case"s":case"ss":case".0":case".00":case".000":return l=r>=2?3===r?1e3:100:1===r?10:1,(n=Math.round(l*(i.S+i.u)))>=60*l&&(n=0),"s"===e?0===n?"0":""+n/l:(o=s(n,2+r),"ss"===e?o.substr(0,2):"."+o.substr(2,e.length-1));default:throw"bad second format: "+e}case 90:switch(e){case"[h]":case"[hh]":a=24*i.D+i.H;break;case"[m]":case"[mm]":a=60*(24*i.D+i.H)+i.M;break;case"[s]":case"[ss]":a=60*(60*(24*i.D+i.H)+i.M)+Math.round(i.S+i.u);break;default:throw"bad abstime format: "+e}h=3===e.length?1:2;break;case 101:a=c,h=1}return h>0?s(a,h):""}function C(t){if(t.length<=3)return t;for(var e=t.length%3,i=t.substr(0,e);e!=t.length;e+=3)i+=(i.length>0?",":"")+t.substr(e,3);return i}function L(t){for(var e=[],i=!1,r=0,s=0;r<t.length;++r)switch(t.charCodeAt(r)){case 34:i=!i;break;case 95:case 42:case 92:++r;break;case 59:e[e.length]=t.substr(s,r-s),s=r+1}if(e[e.length]=t.substr(s),!0===i)throw new Error("Format |"+t+"| unterminated string ");return e}function m(t,e,i,r){for(var s,a,o,n,l=[],c="",u=0,d="",p="t",C="H";u<t.length;)switch(d=t[u]){case"G":if(!h(t,u))throw new Error("unrecognized character "+d+" in "+t);l[l.length]={t:"G",v:"General"},u+=7;break;case'"':for(c="";34!==(n=t.charCodeAt(++u))&&u<t.length;)c+=String.fromCharCode(n);l[l.length]={t:"t",v:c},++u;break;case"\\":var L=t[++u],m="("===L||")"===L?L:"t";l[l.length]={t:m,v:L},++u;break;case"_":l[l.length]={t:"t",v:" "},u+=2;break;case"@":l[l.length]={t:"T",v:e},++u;break;case"B":case"b":if("1"===t[u+1]||"2"===t[u+1]){if(null==a&&null==(a=g(e,i,"2"===t[u+1])))return"";l[l.length]={t:"X",v:t.substr(u,2)},p=d,u+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":d=d.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(0>e)return"";if(null==a&&null==(a=g(e,i)))return"";for(c=d;++u<t.length&&t[u].toLowerCase()===d;)c+=d;"m"===d&&"h"===p.toLowerCase()&&(d="M"),"h"===d&&(d=C),l[l.length]={t:d,v:c},p=d;break;case"A":if(s={t:d,v:"A"},null==a&&(a=g(e,i)),"A/P"===t.substr(u,3)?(null!=a&&(s.v=a.H>=12?"P":"A"),s.t="T",C="h",u+=3):"AM/PM"===t.substr(u,5)?(null!=a&&(s.v=a.H>=12?"PM":"AM"),s.t="T",u+=5,C="h"):(s.t="t",++u),null==a&&"T"===s.t)return"";l[l.length]=s,p=d;break;case"[":for(c=d;"]"!==t[u++]&&u<t.length;)c+=t[u];if("]"!==c.substr(-1))throw'unterminated "[" block: |'+c+"|";if(c.match(T)){if(null==a&&null==(a=g(e,i)))return"";l[l.length]={t:"Z",v:c.toLowerCase()}}else c="";break;case".":if(null!=a){for(c=d;"0"===(d=t[++u]);)c+=d;l[l.length]={t:"s",v:c};break}case"0":case"#":for(c=d;"0#?.,E+-%".indexOf(d=t[++u])>-1||"\\"==d&&"-"==t[u+1]&&"0#".indexOf(t[u+2])>-1;)c+=d;l[l.length]={t:"n",v:c};break;case"?":for(c=d;t[++u]===d;)c+=d;s={t:d,v:c},l[l.length]=s,p=d;break;case"*":(" "==t[++u]||"*"==t[u])&&++u;break;case"(":case")":l[l.length]={t:1===r?"t":d,v:d},++u;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=d;"0123456789".indexOf(t[++u])>-1;)c+=t[u];l[l.length]={t:"D",v:c};break;case" ":l[l.length]={t:d,v:d},++u;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxz".indexOf(d))throw new Error("unrecognized character "+d+" in "+t);l[l.length]={t:"t",v:d},++u}var E,v=0,b=0;for(u=l.length-1,p="t";u>=0;--u)switch(l[u].t){case"h":case"H":l[u].t=C,p="h",1>v&&(v=1);break;case"s":(E=l[u].v.match(/\.0+$/))&&(b=Math.max(b,E[0].length-1)),3>v&&(v=3);case"d":case"y":case"M":case"e":p=l[u].t;break;case"m":"s"===p&&(l[u].t="M",2>v&&(v=2));break;case"X":l[u].v;break;case"Z":1>v&&l[u].v.match(/[Hh]/)&&(v=1),2>v&&l[u].v.match(/[Mm]/)&&(v=2),3>v&&l[u].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M)}var y,w="";for(u=0;u<l.length;++u)switch(l[u].t){case"t":case"T":case" ":case"D":break;case"X":l[u]=void 0;break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":l[u].v=_(l[u].t.charCodeAt(0),l[u].v,a,b),l[u].t="t";break;case"n":case"(":case"?":for(y=u+1;null!=l[y]&&("?"===(d=l[y].t)||"D"===d||(" "===d||"t"===d)&&null!=l[y+1]&&("?"===l[y+1].t||"t"===l[y+1].t&&"/"===l[y+1].v)||"("===l[u].t&&(" "===d||"n"===d||")"===d)||"t"===d&&("/"===l[y].v||"$€".indexOf(l[y].v)>-1||" "===l[y].v&&null!=l[y+1]&&"?"==l[y+1].t));)l[u].v+=l[y].v,l[y]=void 0,++y;w+=l[u].v,u=y-1;break;case"G":l[u].t="t",l[u].v=f(e,i)}var x,Q,R="";if(w.length>0){x=0>e&&45===w.charCodeAt(0)?-e:e,y=(Q=k(40===w.charCodeAt(0)?"(":"n",w,x)).length-1;var A=l.length;for(u=0;u<l.length;++u)if(null!=l[u]&&l[u].v.indexOf(".")>-1){A=u;break}var S=l.length;if(A===l.length&&-1===Q.indexOf("E")){for(u=l.length-1;u>=0;--u)null!=l[u]&&-1!=="n?(".indexOf(l[u].t)&&(y>=l[u].v.length-1?(y-=l[u].v.length,l[u].v=Q.substr(y+1,l[u].v.length)):0>y?l[u].v="":(l[u].v=Q.substr(0,y+1),y=-1),l[u].t="t",S=u);y>=0&&S<l.length&&(l[S].v=Q.substr(0,y+1)+l[S].v)}else if(A!==l.length&&-1===Q.indexOf("E")){for(y=Q.indexOf(".")-1,u=A;u>=0;--u)if(null!=l[u]&&-1!=="n?(".indexOf(l[u].t)){for(o=l[u].v.indexOf(".")>-1&&u===A?l[u].v.indexOf(".")-1:l[u].v.length-1,R=l[u].v.substr(o+1);o>=0;--o)y>=0&&("0"===l[u].v[o]||"#"===l[u].v[o])&&(R=Q[y--]+R);l[u].v=R,l[u].t="t",S=u}for(y>=0&&S<l.length&&(l[S].v=Q.substr(0,y+1)+l[S].v),y=Q.indexOf(".")+1,u=A;u<l.length;++u)if(null!=l[u]&&(-1!=="n?(".indexOf(l[u].t)||u===A)){for(o=l[u].v.indexOf(".")>-1&&u===A?l[u].v.indexOf(".")+1:0,R=l[u].v.substr(0,o);o<l[u].v.length;++o)y<Q.length&&(R+=Q[y++]);l[u].v=R,l[u].t="t",S=u}}}for(u=0;u<l.length;++u)null!=l[u]&&"n(?".indexOf(l[u].t)>-1&&(x=r>1&&0>e&&u>0&&"-"===l[u-1].v?-e:e,l[u].v=k(l[u].t,l[u].v,x),l[u].t="t");var O="";for(u=0;u!==l.length;++u)null!=l[u]&&(O+=l[u].v);return O}function E(t,e){if(null==e)return!1;var i=parseFloat(e[2]);switch(e[1]){case"=":if(t==i)return!0;break;case">":if(t>i)return!0;break;case"<":if(i>t)return!0;break;case"<>":if(t!=i)return!0;break;case">=":if(t>=i)return!0;break;case"<=":if(i>=t)return!0}return!1}t.version="0.8.1";var v=Math.pow(2,32),b=[["date1904",0],["output",""],["WTF",!1]];t.opts=b;var y={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "',65535:"General"},w=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],x=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];t._general_int=p;var Q=function(){function t(t){var e=t.toFixed(11).replace(r,".$1");return e.length>(0>t?12:11)&&(e=t.toPrecision(6)),e}function e(t){for(var e=0;e!=t.length;++e)if(101==(32|t.charCodeAt(e)))return t.replace(a,".$1").replace(o,"E").replace("e","E").replace(n,"$10$2");return t}function i(t){return t.indexOf(".")>-1?t.replace(s,"").replace(r,".$1"):t}var r=/\.(\d*[1-9])0+$/,s=/\.0*$/,a=/\.(\d*[1-9])0+/,o=/\.0*[Ee]/,n=/(E[+-])(\d)$/;return function(r,s){var a,o=Math.floor(Math.log(Math.abs(r))*Math.LOG10E);return a=o>=-4&&-1>=o?r.toPrecision(10+o):Math.abs(o)<=9?function(t){var e=0>t?12:11,r=i(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10)).length<=e?r:t.toExponential(5)}(r):10===o?r.toFixed(10).substr(0,12):t(r),i(e(a))}}();t._general_num=Q,t._general=f,t.parse_date_code=g;var k=function(){function t(t,e,i){var s=e.replace(f,""),a=e.length-s.length;return k(t,s,i*Math.pow(10,2*a))+r("%",a)}function e(t){for(var e,i="",r=0;r!=t.length;++r)switch(e=t.charCodeAt(r)){case 35:break;case 63:i+=" ";break;case 48:i+="0";break;default:i+=String.fromCharCode(e)}return i}function n(t,e){var i=Math.pow(10,e);return""+Math.round(t*i)/i}function l(t,e){return Math.round((t-Math.floor(t))*Math.pow(10,e))}function h(u,p,f){if(40===u.charCodeAt(0)&&!p.match(L)){var E=p.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return f>=0?h("n",E,f):"("+h("n",E,-f)+")"}if(44===p.charCodeAt(p.length-1))return function(t,e,i){for(var r=e.length-1;44===e.charCodeAt(r-1);)--r;return k(t,e.substr(0,r),i/Math.pow(10,3*(e.length-r)))}(u,p,f);if(-1!==p.indexOf("%"))return t(u,p,f);if(-1!==p.indexOf("E"))return function(t,e){var i,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){var s=t.indexOf(".");-1===s&&(s=t.indexOf("E"));var a=Math.floor(Math.log(Math.abs(e))*Math.LOG10E)%s;if(0>a&&(a+=s),-1===(i=(e/Math.pow(10,a)).toPrecision(r+1+(s+a)%s)).indexOf("e")){var o=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);for(-1===i.indexOf(".")?i=i[0]+"."+i.substr(1)+"E+"+(o-i.length+a):i+="E+"+(o-a);"0."===i.substr(0,2);)i=(i=i[0]+i.substr(2,s)+"."+i.substr(2+s)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");i=i.replace(/\+-/,"-")}i=i.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,i,r){return e+i+r.substr(0,(s+a)%s)+"."+r.substr(a)+"E"}))}else i=e.toExponential(r);return t.match(/E\+00$/)&&i.match(/e[+-]\d$/)&&(i=i.substr(0,i.length-1)+"0"+i[i.length-1]),t.match(/E\-/)&&i.match(/e\+/)&&(i=i.replace(/e\+/,"e")),i.replace("e","E")}(p,f);if(36===p.charCodeAt(0))return"$"+h(u,p.substr(" "==p[1]?2:1),f);var v,b,y,w,x=Math.abs(f),Q=0>f?"-":"";if(p.match(/^00+$/))return Q+c(x,p.length);if(p.match(/^[#?]+$/))return"0"===(v=c(f,0))&&(v=""),v.length>p.length?v:e(p.substr(0,p.length-v.length))+v;if(null!==(b=p.match(g)))return function(t,e,i){var o=parseInt(t[4]),n=Math.round(e*o),l=Math.floor(n/o),c=n-l*o,h=o;return i+(0===l?"":""+l)+" "+(0===c?r(" ",t[1].length+1+t[4].length):a(c,t[1].length)+t[2]+"/"+t[3]+s(h,t[4].length))}(b,x,Q);if(null!==p.match(/^#+0+$/))return Q+c(x,p.length-p.indexOf("0"));if(null!==(b=p.match(_)))return v=n(f,b[1].length).replace(/^([^\.]+)$/,"$1."+b[1]).replace(/\.$/,"."+b[1]).replace(/\.(\d*)$/,(function(t,e){return"."+e+r("0",b[1].length-e.length)})),-1!==p.indexOf("0.")?v:v.replace(/^0\./,".");if(p=p.replace(/^#+([0.])/,"$1"),null!==(b=p.match(/^(0*)\.(#*)$/)))return Q+n(x,b[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,b[1].length?"0.":".");if(null!==(b=p.match(/^#,##0(\.?)$/)))return Q+C(c(x,0));if(null!==(b=p.match(/^#,##0\.([#0]*0)$/)))return 0>f?"-"+h(u,p,-f):C(""+Math.floor(f))+"."+s(l(f,b[1].length),b[1].length);if(null!==(b=p.match(/^#,#*,#0/)))return h(u,p.replace(/^#,#*,/,""),f);if(null!==(b=p.match(/^([0#]+)(\\?-([0#]+))+$/)))return v=i(h(u,p.replace(/[\\-]/g,""),f)),y=0,i(i(p.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return y<v.length?v[y++]:"0"===t?"0":""})));if(null!==p.match(m))return"("+(v=h(u,"##########",f)).substr(0,3)+") "+v.substr(3,3)+"-"+v.substr(6);var T="";if(null!==(b=p.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)))return y=Math.min(b[4].length,7),w=d(x,Math.pow(10,y)-1,!1),v=""+Q," "==(T=k("n",b[1],w[1]))[T.length-1]&&(T=T.substr(0,T.length-1)+"0"),v+=T+b[2]+"/"+b[3],(T=o(w[2],y)).length<b[4].length&&(T=e(b[4].substr(b[4].length-T.length))+T),v+=T;if(null!==(b=p.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)))return y=Math.min(Math.max(b[1].length,b[4].length),7),Q+((w=d(x,Math.pow(10,y)-1,!0))[0]||(w[1]?"":"0"))+" "+(w[1]?a(w[1],y)+b[2]+"/"+b[3]+o(w[2],y):r(" ",2*y+1+b[2].length+b[3].length));if(null!==(b=p.match(/^[#0?]+$/)))return v=c(f,0),p.length<=v.length?v:e(p.substr(0,p.length-v.length))+v;if(null!==(b=p.match(/^([#0?]+)\.([#0]+)$/))){v=""+f.toFixed(Math.min(b[2].length,10)).replace(/([^0])0+$/,"$1"),y=v.indexOf(".");var R=p.indexOf(".")-y,A=p.length-v.length-R;return e(p.substr(0,R)+v+p.substr(p.length-A))}if(null!==(b=p.match(/^00,000\.([#0]*0)$/)))return y=l(f,b[1].length),0>f?"-"+h(u,p,-f):C(function(t){return 2147483647>t&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(f)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?s(0,3-t.length):"")+t}))+"."+s(y,b[1].length);if("#,###"===p){var S=C(c(x,0));return"0"!==S?Q+S:""}throw new Error("unsupported format |"+p+"|")}function u(t,e,i){var s=e.replace(f,""),a=e.length-s.length;return k(t,s,i*Math.pow(10,2*a))+r("%",a)}function p(t,n,l){if(40===t.charCodeAt(0)&&!n.match(L)){var c=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return l>=0?p("n",c,l):"("+p("n",c,-l)+")"}if(44===n.charCodeAt(n.length-1))return function(t,e,i){for(var r=e.length-1;44===e.charCodeAt(r-1);)--r;return k(t,e.substr(0,r),i/Math.pow(10,3*(e.length-r)))}(t,n,l);if(-1!==n.indexOf("%"))return u(t,n,l);if(-1!==n.indexOf("E"))return function(t,e){var i,r=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){var s=t.indexOf(".");-1===s&&(s=t.indexOf("E"));var a=Math.floor(Math.log(Math.abs(e))*Math.LOG10E)%s;if(0>a&&(a+=s),!(i=(e/Math.pow(10,a)).toPrecision(r+1+(s+a)%s)).match(/[Ee]/)){var o=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);-1===i.indexOf(".")?i=i[0]+"."+i.substr(1)+"E+"+(o-i.length+a):i+="E+"+(o-a),i=i.replace(/\+-/,"-")}i=i.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,i,r){return e+i+r.substr(0,(s+a)%s)+"."+r.substr(a)+"E"}))}else i=e.toExponential(r);return t.match(/E\+00$/)&&i.match(/e[+-]\d$/)&&(i=i.substr(0,i.length-1)+"0"+i[i.length-1]),t.match(/E\-/)&&i.match(/e\+/)&&(i=i.replace(/e\+/,"e")),i.replace("e","E")}(n,l);if(36===n.charCodeAt(0))return"$"+p(t,n.substr(" "==n[1]?2:1),l);var h,f,E,v,b=Math.abs(l),y=0>l?"-":"";if(n.match(/^00+$/))return y+s(b,n.length);if(n.match(/^[#?]+$/))return h=""+l,0===l&&(h=""),h.length>n.length?h:e(n.substr(0,n.length-h.length))+h;if(null!==(f=n.match(g)))return function(t,e,i){return i+(0===e?"":""+e)+r(" ",t[1].length+2+t[4].length)}(f,b,y);if(null!==n.match(/^#+0+$/))return y+s(b,n.length-n.indexOf("0"));if(null!==(f=n.match(_)))return h=(""+l).replace(/^([^\.]+)$/,"$1."+f[1]).replace(/\.$/,"."+f[1]).replace(/\.(\d*)$/,(function(t,e){return"."+e+r("0",f[1].length-e.length)})),-1!==n.indexOf("0.")?h:h.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),null!==(f=n.match(/^(0*)\.(#*)$/)))return y+(""+b).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,f[1].length?"0.":".");if(null!==(f=n.match(/^#,##0(\.?)$/)))return y+C(""+b);if(null!==(f=n.match(/^#,##0\.([#0]*0)$/)))return 0>l?"-"+p(t,n,-l):C(""+l)+"."+r("0",f[1].length);if(null!==(f=n.match(/^#,#*,#0/)))return p(t,n.replace(/^#,#*,/,""),l);if(null!==(f=n.match(/^([0#]+)(\\?-([0#]+))+$/)))return h=i(p(t,n.replace(/[\\-]/g,""),l)),E=0,i(i(n.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return E<h.length?h[E++]:"0"===t?"0":""})));if(null!==n.match(m))return"("+(h=p(t,"##########",l)).substr(0,3)+") "+h.substr(3,3)+"-"+h.substr(6);var w="";if(null!==(f=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)))return E=Math.min(f[4].length,7),v=d(b,Math.pow(10,E)-1,!1),h=""+y," "==(w=k("n",f[1],v[1]))[w.length-1]&&(w=w.substr(0,w.length-1)+"0"),h+=w+f[2]+"/"+f[3],(w=o(v[2],E)).length<f[4].length&&(w=e(f[4].substr(f[4].length-w.length))+w),h+=w;if(null!==(f=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)))return E=Math.min(Math.max(f[1].length,f[4].length),7),y+((v=d(b,Math.pow(10,E)-1,!0))[0]||(v[1]?"":"0"))+" "+(v[1]?a(v[1],E)+f[2]+"/"+f[3]+o(v[2],E):r(" ",2*E+1+f[2].length+f[3].length));if(null!==(f=n.match(/^[#0?]+$/)))return h=""+l,n.length<=h.length?h:e(n.substr(0,n.length-h.length))+h;if(null!==(f=n.match(/^([#0]+)\.([#0]+)$/))){h=""+l.toFixed(Math.min(f[2].length,10)).replace(/([^0])0+$/,"$1"),E=h.indexOf(".");var x=n.indexOf(".")-E,Q=n.length-h.length-x;return e(n.substr(0,x)+h+n.substr(n.length-Q))}if(null!==(f=n.match(/^00,000\.([#0]*0)$/)))return 0>l?"-"+p(t,n,-l):C(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?s(0,3-t.length):"")+t}))+"."+s(0,f[1].length);if("#,###"===n){var T=C(""+b);return"0"!==T?y+T:""}throw new Error("unsupported format |"+n+"|")}var f=/%/g,g=/# (\?+)( ?)\/( ?)(\d+)/,_=/^#*0*\.(0+)/,L=/\).*[0#]/,m=/\(###\) ###\\?-####/;return function(t,e,i){return(0|i)===i?p(t,e,i):h(t,e,i)}}();t._split=L;var T=/\[[HhMmSs]*\]/;t._eval=m;var R=/\[[=<>]/,A=/\[([=<>]*)(-?\d+\.?\d*)\]/;t._table=y,t.load=function(t,e){y[e]=t},t.format=function(t,i,r){u(null!=r?r:r=[]);var s="";switch(e(t)){case"string":s=t;break;case"number":s=(null!=r.table?r.table:y)[t]}if(h(s,0))return f(i,r);var a=function(t,e){var i=L(t),r=i.length,s=i[r-1].indexOf("@");if(4>r&&s>-1&&--r,i.length>4)throw"cannot find right format for |"+i+"|";if("number"!=typeof e)return[4,4===i.length||s>-1?i[i.length-1]:"@"];switch(i.length){case 1:i=s>-1?["General","General","General",i[0]]:[i[0],i[0],i[0],"@"];break;case 2:i=s>-1?[i[0],i[0],i[0],i[1]]:[i[0],i[1],i[0],"@"];break;case 3:i=s>-1?[i[0],i[1],i[0],i[2]]:[i[0],i[1],i[2],"@"]}var a=e>0?i[0]:0>e?i[1]:i[2];if(-1===i[0].indexOf("[")&&-1===i[1].indexOf("["))return[r,a];if(null!=i[0].match(R)||null!=i[1].match(R)){var o=i[0].match(A),n=i[1].match(A);return E(e,o)?[r,i[0]]:E(e,n)?[r,i[1]]:[r,i[null!=o&&null!=n?2:1]]}return[r,a]}(s,i);if(h(a[1]))return f(i,r);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return m(a[1],i,r,a[0])},t.get_table=function(){return y},t.load_table=function(e){for(var i=0;392!=i;++i)void 0!==e[i]&&t.load(e[i],i)}})(i),"undefined"==typeof DO_NOT_EXPORT_SSF&&(t.exports=i)},1325:(t,e,i)=>{var r,s;r=[i(4692)],void 0===(s=function(t){return function(t){"use strict";function e(t){void 0===t&&(t=window.navigator.userAgent),t=t.toLowerCase();var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[],r={},s={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",versionNumber:e[4]||e[2]||"0",platform:i[0]||""};if(s.browser&&(r[s.browser]=!0,r.version=s.version,r.versionNumber=parseInt(s.versionNumber,10)),s.platform&&(r[s.platform]=!0),(r.android||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"])&&(r.mobile=!0),(r.cros||r.mac||r.linux||r.win)&&(r.desktop=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){var a="msie";s.browser=a,r[a]=!0}if(r.edge){delete r.edge;var o="msedge";s.browser=o,r[o]=!0}if(r.safari&&r.blackberry){var n="blackberry";s.browser=n,r[n]=!0}if(r.safari&&r.playbook){var l="playbook";s.browser=l,r[l]=!0}if(r.bb){var c="blackberry";s.browser=c,r[c]=!0}if(r.opr){var h="opera";s.browser=h,r[h]=!0}if(r.safari&&r.android){var u="android";s.browser=u,r[u]=!0}if(r.safari&&r.kindle){var d="kindle";s.browser=d,r[d]=!0}if(r.safari&&r.silk){var p="silk";s.browser=p,r[p]=!0}return r.name=s.browser,r.platform=s.platform,r}return window.jQBrowser=e(window.navigator.userAgent),window.jQBrowser.uaMatch=e,t&&(t.browser=window.jQBrowser),window.jQBrowser}(t)}.apply(e,r))||(t.exports=s)},1163:(t,e,i)=>{var r,s,a;s=[i(4692)],void 0===(a="function"==typeof(r=function(t){function e(e){var o=e||window.event,n=l.call(arguments,1),c=0,u=0,d=0,p=0,f=0,g=0;if((e=t.event.fix(o)).type="mousewheel","detail"in o&&(d=-1*o.detail),"wheelDelta"in o&&(d=o.wheelDelta),"wheelDeltaY"in o&&(d=o.wheelDeltaY),"wheelDeltaX"in o&&(u=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(u=-1*d,d=0),c=0===d?u:d,"deltaY"in o&&(c=d=-1*o.deltaY),"deltaX"in o&&(u=o.deltaX,0===d&&(c=-1*u)),0!==d||0!==u){if(1===o.deltaMode){var _=t.data(this,"mousewheel-line-height");c*=_,d*=_,u*=_}else if(2===o.deltaMode){var C=t.data(this,"mousewheel-page-height");c*=C,d*=C,u*=C}if(p=Math.max(Math.abs(d),Math.abs(u)),(!a||a>p)&&(a=p,r(o,p)&&(a/=40)),r(o,p)&&(c/=40,u/=40,d/=40),c=Math[c>=1?"floor":"ceil"](c/a),u=Math[u>=1?"floor":"ceil"](u/a),d=Math[d>=1?"floor":"ceil"](d/a),h.settings.normalizeOffset&&this.getBoundingClientRect){var L=this.getBoundingClientRect();f=e.clientX-L.left,g=e.clientY-L.top}return e.deltaX=u,e.deltaY=d,e.deltaFactor=a,e.offsetX=f,e.offsetY=g,e.deltaMode=0,n.unshift(e,c,u,d),s&&clearTimeout(s),s=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,n)}}function i(){a=null}function r(t,e){return h.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var s,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=o.length;c;)t.event.fixHooks[o[--c]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=n.length;i;)this.addEventListener(n[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=n.length;i;)this.removeEventListener(n[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),r=i["offsetParent"in t.fn?"offsetParent":"parent"]();return r.length||(r=t("body")),parseInt(r.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})?r.apply(e,s):r)||(t.exports=a)},706:(t,e,i)=>{var r,s,a,o,n,l;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}o=document,n=Math,function(o){s=[i(4692)],void 0===(a="function"==typeof(r=o)?r.apply(e,s):r)||(t.exports=a)}((function(t){"use strict";var e,i,r,s,a,h,u,d,p,f,g,_,C,L,m,E,v,b,y,w,x,Q,k,T,R,A,S,O,D,I={},N=0;e=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:l,normalRangeMax:l,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:l,chartRangeMax:l,chartRangeMinX:l,chartRangeMaxX:l,tooltipFormat:new r('<span style="color: {{color}}">●</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:l,nullColor:l,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,colorMap:l,tooltipFormat:new r('<span style="color: {{color}}">●</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new r('<span style="color: {{color}}">●</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:l,thresholdValue:0,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,tooltipFormat:new r("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:l,tooltipFormat:new r("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new r('<span style="color: {{color}}">●</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:l,targetColor:"#4a2",chartRangeMax:l,chartRangeMin:l,tooltipFormat:new r("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},i=function(){var e,i;return e=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(e.prototype=t.extend(new arguments[0],arguments[arguments.length-1]),e._super=arguments[0].prototype):e.prototype=arguments[arguments.length-1],arguments.length>2&&((i=Array.prototype.slice.call(arguments,1,-1)).unshift(e.prototype),t.extend.apply(t,i))):e.prototype=arguments[0],e.prototype.cls=e,e},t.SPFormatClass=r=i({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,i){var r,s,a,o,n,c=this,h=t;return this.format.replace(this.fre,(function(){return s=arguments[1],a=arguments[3],(r=c.precre.exec(s))?(n=r[2],s=r[1]):n=!1,(o=h[s])===l?"":a&&e&&e[a]?e[a].get?e[a].get(o)||o:e[a][o]||o:(p(o)&&(o=i.get("numberFormatter")?i.get("numberFormatter")(o):C(o,n,i.get("numberDigitGroupCount"),i.get("numberDigitGroupSep"),i.get("numberDecimalMark"))),o)}))}}),t.spformat=function(t,e){return new r(t,e)},s=function(t,e,i){return t<e?e:t>i?i:t},a=function(t,e){var i;return 2===e?(i=n.floor(t.length/2),t.length%2?t[i]:(t[i-1]+t[i])/2):t.length%2?(i=(t.length*e+e)/4)%1?(t[n.floor(i)]+t[n.floor(i)-1])/2:t[i-1]:(i=(t.length*e+2)/4)%1?(t[n.floor(i)]+t[n.floor(i)-1])/2:t[i-1]},h=function(t){var e;switch(t){case"undefined":t=l;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},u=function(t){var e,i=[];for(e=t.length;e--;)i[e]=h(t[e]);return i},d=function(t,e){var i,r,s=[];for(i=0,r=t.length;i<r;i++)t[i]!==e&&s.push(t[i]);return s},p=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},C=function(e,i,r,s,a){var o,n;for(e=(!1===i?parseFloat(e).toString():e.toFixed(i)).split(""),(o=(o=t.inArray(".",e))<0?e.length:o)<e.length&&(e[o]=a),n=o-r;n>0;n-=r)e.splice(n,0,s);return e.join("")},f=function(t,e,i){var r;for(r=e.length;r--;)if((!i||null!==e[r])&&e[r]!==t)return!1;return!0},_=function(e){return t.isArray(e)?e:[e]},g=function(t){var e;o.createStyleSheet?o.createStyleSheet().cssText=t:((e=o.createElement("style")).type="text/css",o.getElementsByTagName("head")[0].appendChild(e),e["string"==typeof o.body.style.WebkitAppearance?"innerText":"innerHTML"]=t)},t.fn.simpledraw=function(e,i,r,s){var a,n;if(r&&(a=this.data("_jqs_vcanvas")))return a;if(!1===t.fn.sparkline.canvas)return!1;if(t.fn.sparkline.canvas===l){var c=o.createElement("canvas");if(c.getContext&&c.getContext("2d"))t.fn.sparkline.canvas=function(t,e,i,r){return new S(t,e,i,r)};else{if(!o.namespaces||o.namespaces.v)return t.fn.sparkline.canvas=!1,!1;o.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),t.fn.sparkline.canvas=function(t,e,i,r){return new O(t,e,i)}}}return e===l&&(e=t(this).innerWidth()),i===l&&(i=t(this).innerHeight()),a=t.fn.sparkline.canvas(e,i,this,s),(n=t(this).data("_jqs_mhandler"))&&n.registerCanvas(a),a},t.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},t.RangeMapClass=L=i({init:function(t){var e,i,r=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&((i=e.split(":"))[0]=0===i[0].length?-1/0:parseFloat(i[0]),i[1]=0===i[1].length?1/0:parseFloat(i[1]),i[2]=t[e],r.push(i));this.map=t,this.rangelist=r||!1},get:function(t){var e,i,r,s=this.rangelist;if((r=this.map[t])!==l)return r;if(s)for(e=s.length;e--;)if((i=s[e])[0]<=t&&i[1]>=t)return i[2];return l}}),t.range_map=function(t){return new L(t)},m=i({init:function(e,i){var r=t(e);this.$el=r,this.options=i,this.currentPageX=0,this.currentPageY=0,this.el=e,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!i.get("disableTooltips"),this.highlightEnabled=!i.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(e){var i=t(e.canvas);this.canvas=e,this.$canvas=i,i.mouseenter(t.proxy(this.mouseenter,this)),i.mouseleave(t.proxy(this.mouseleave,this)),i.click(t.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=l)},mouseclick:function(e){var i=t.Event("sparklineClick");i.originalEvent=e,i.sparklines=this.splist,this.$el.trigger(i)},mouseenter:function(e){t(o.body).unbind("mousemove.jqs"),t(o.body).bind("mousemove.jqs",t.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new E(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){t(o.body).unbind("mousemove.jqs");var e,i=this.splist,r=i.length,s=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e<r;e++)i[e].clearRegionHighlight()&&(s=!0);s&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var e,i,r,s,a=this.splist,o=a.length,n=!1,l=this.$canvas.offset(),c=this.currentPageX-l.left,h=this.currentPageY-l.top;if(this.over){for(i=0;i<o;i++)(r=a[i].setRegionHighlight(this.currentEl,c,h))&&(n=!0);if(n){if((s=t.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(s),this.tooltip){for(e="",i=0;i<o;i++)e+=a[i].getCurrentRegionTooltip();this.tooltip.setContent(e)}this.disableHighlight||this.canvas.render()}null===r&&this.mouseleave()}}}),E=i({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var i,r=e.get("tooltipClassname","jqstooltip"),s=this.sizeStyle;this.container=e.get("tooltipContainer")||o.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),t("#jqssizetip").remove(),t("#jqstooltip").remove(),this.sizetip=t("<div/>",{id:"jqssizetip",style:s,class:r}),this.tooltip=t("<div/>",{id:"jqstooltip",class:r}).appendTo(this.container),i=this.tooltip.offset(),this.offsetLeft=i.left,this.offsetTop=i.top,this.hidden=!0,t(window).unbind("resize.jqs scroll.jqs"),t(window).bind("resize.jqs scroll.jqs",t.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=t(window).scrollTop(),this.scrollLeft=t(window).scrollLeft(),this.scrollRight=this.scrollLeft+t(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(t===l){if(this.mousex===l)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=l,t(window).unbind("resize.jqs scroll.jqs")}}),t((function(){g('.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')})),D=[],t.fn.sparkline=function(e,i){return this.each((function(){var r,s,a=new t.fn.sparkline.options(this,i),n=t(this);if(r=function(){var i,r,s,c,h,u,d;"html"===e||e===l?((d=this.getAttribute(a.get("tagValuesAttribute")))!==l&&null!==d||(d=n.html()),i=d.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):i=e,r="auto"===a.get("width")?i.length*a.get("defaultPixelsPerValue"):a.get("width"),"auto"===a.get("height")?a.get("composite")&&t.data(this,"_jqs_vcanvas")||((c=o.createElement("span")).innerHTML="a",n.html(c),s=t(c).innerHeight()||t(c).height(),t(c).remove(),c=null):s=a.get("height"),a.get("disableInteraction")?h=!1:(h=t.data(this,"_jqs_mhandler"))?a.get("composite")||h.reset():(h=new m(this,a),t.data(this,"_jqs_mhandler",h)),!a.get("composite")||t.data(this,"_jqs_vcanvas")?((u=new(t.fn.sparkline[a.get("type")])(this,i,a,r,s)).render(),h&&h.registerSparkline(u)):t.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),t.data(this,"_jqs_errnotify",!0))},t(this).html()&&!a.get("disableHiddenCheck")&&t(this).is(":hidden")||!t(this).parents("body").length){if(!a.get("composite")&&t.data(this,"_jqs_pending"))for(s=D.length;s;s--)D[s-1][0]==this&&D.splice(s-1,1);D.push([this,r]),t.data(this,"_jqs_pending",!0)}else r.call(this)}))},t.fn.sparkline.defaults=e(),t.sparkline_display_visible=function(){var e,i,r,s=[];for(i=0,r=D.length;i<r;i++)e=D[i][0],t(e).is(":visible")&&!t(e).parents().is(":hidden")?(D[i][1].call(e),t.data(D[i][0],"_jqs_pending",!1),s.push(i)):!t(e).closest("html").length&&!t.data(e,"_jqs_pending")&&(t.data(D[i][0],"_jqs_pending",!1),s.push(i));for(i=s.length;i;i--)D.splice(s[i-1],1)},t.fn.sparkline.options=i({init:function(e,i){var r,s,a,o;this.userOptions=i=i||{},this.tag=e,this.tagValCache={},a=(s=t.fn.sparkline.defaults).common,this.tagOptionsPrefix=i.enableTagOptions&&(i.tagOptionsPrefix||a.tagOptionsPrefix),r=(o=this.getTagSetting("type"))===I?s[i.type||a.type]:s[o],this.mergedOptions=t.extend({},a,r,i)},getTagSetting:function(t){var e,i,r,s,a=this.tagOptionsPrefix;if(!1===a||a===l)return I;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if((e=this.tag.getAttribute(a+t))===l||null===e)e=I;else if("["===e.substr(0,1))for(i=(e=e.substr(1,e.length-2).split(",")).length;i--;)e[i]=h(e[i].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(r=e.substr(1,e.length-2).split(","),e={},i=r.length;i--;)e[(s=r[i].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=h(s[1].replace(/(^\s*)|(\s*$)/g,""));else e=h(e);this.tagValCache.key=e}return e},get:function(t,e){var i,r=this.getTagSetting(t);return r!==I?r:(i=this.mergedOptions[t])===l?e:i}}),t.fn.sparkline._base=i({disabled:!1,init:function(e,i,r,s,a){this.el=e,this.$el=t(e),this.values=i,this.options=r,this.width=s,this.height=a,this.currentRegion=l},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,i){var r,s=this.currentRegion,a=!this.options.get("disableHighlight");return e>this.canvasWidth||i>this.canvasHeight||e<0||i<0?null:s!==(r=this.getRegion(t,e,i))&&(s!==l&&a&&this.removeHighlight(),this.currentRegion=r,r!==l&&a&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==l&&(this.removeHighlight(),this.currentRegion=l,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var e,i,s,a,o,n,c,h,u,d,p,f,g,_,C=this.options,L="",m=[];if(this.currentRegion===l)return"";if(e=this.getCurrentRegionFields(),p=C.get("tooltipFormatter"))return p(this,C,e);if(C.get("tooltipChartTitle")&&(L+='<div class="jqs jqstitle">'+C.get("tooltipChartTitle")+"</div>\n"),!(i=this.options.get("tooltipFormat")))return"";if(t.isArray(i)||(i=[i]),t.isArray(e)||(e=[e]),c=this.options.get("tooltipFormatFieldlist"),h=this.options.get("tooltipFormatFieldlistKey"),c&&h){for(u=[],n=e.length;n--;)d=e[n][h],-1!=(_=t.inArray(d,c))&&(u[_]=e[n]);e=u}for(s=i.length,g=e.length,n=0;n<s;n++)for("string"==typeof(f=i[n])&&(f=new r(f)),a=f.fclass||"jqsfield",_=0;_<g;_++)e[_].isNull&&C.get("tooltipSkipNull")||(t.extend(e[_],{prefix:C.get("tooltipPrefix"),suffix:C.get("tooltipSuffix")}),o=f.render(e[_],C.get("tooltipValueLookups"),C),m.push('<div class="'+a+'">'+o+"</div>"));return m.length?L+m.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,e){var i,r,a,o,l=e.get("highlightColor"),c=e.get("highlightLighten");if(l)return l;if(c&&(i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(a=[],r=4===t.length?16:1,o=0;o<3;o++)a[o]=s(n.round(parseInt(i[o+1],16)*r*c),0,255);return"rgb("+a.join(",")+")"}return t}}),v={changeHighlight:function(e){var i,r=this.currentRegion,s=this.target,a=this.regionShapes[r];a&&(i=this.renderRegion(r,e),t.isArray(i)||t.isArray(a)?(s.replaceWithShapes(a,i),this.regionShapes[r]=t.map(i,(function(t){return t.id}))):(s.replaceWithShape(a,i),this.regionShapes[r]=i.id))},render:function(){var e,i,r,s,a=this.values,o=this.target,n=this.regionShapes;if(this.cls._super.render.call(this)){for(r=a.length;r--;)if(e=this.renderRegion(r))if(t.isArray(e)){for(i=[],s=e.length;s--;)e[s].append(),i.push(e[s].id);n[r]=i}else e.append(),n[r]=e.id;else n[r]=null;o.render()}}},t.fn.sparkline.line=b=i(t.fn.sparkline._base,{type:"line",init:function(t,e,i,r,s){b._super.init.call(this,t,e,i,r,s),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,i){var r,s=this.regionMap;for(r=s.length;r--;)if(null!==s[r]&&e>=s[r][0]&&e<=s[r][1])return s[r][2];return l},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,i=this.currentRegion,r=this.target,s=this.vertices[i],a=this.options,o=a.get("spotRadius"),n=a.get("highlightSpotColor"),c=a.get("highlightLineColor");s&&(o&&n&&(t=r.drawCircle(s[0],s[1],o,l,n),this.highlightSpotId=t.id,r.insertAfterShape(this.lastShapeId,t)),c&&(e=r.drawLine(s[0],this.canvasTop,s[0],this.canvasTop+this.canvasHeight,c),this.highlightLineId=e.id,r.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,e,i,r,s,a=this.values,o=a.length,l=this.xvalues,h=this.yvalues,u=this.yminmax;for(t=0;t<o;t++)e=a[t],i="string"==typeof a[t],r="object"==c(a[t])&&a[t]instanceof Array,s=i&&a[t].split(":"),i&&2===s.length?(l.push(Number(s[0])),h.push(Number(s[1])),u.push(Number(s[1]))):r?(l.push(e[0]),h.push(e[1]),u.push(e[1])):(l.push(t),null===a[t]||"null"===a[t]?h.push(null):(h.push(Number(e)),u.push(Number(e))));this.options.get("xvalues")&&(l=this.options.get("xvalues")),this.maxy=this.maxyorg=n.max.apply(n,u),this.miny=this.minyorg=n.min.apply(n,u),this.maxx=n.max.apply(n,l),this.minx=n.min.apply(n,l),this.xvalues=l,this.yvalues=h,this.yminmax=u},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),i=t.get("normalRangeMax");e!==l&&(e<this.miny&&(this.miny=e),i>this.maxy&&(this.maxy=i)),t.get("chartRangeMin")!==l&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==l&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==l&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==l&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,e,i,r,s){var a=this.options.get("normalRangeMin"),o=this.options.get("normalRangeMax"),c=e+n.round(i-i*((o-this.miny)/s)),h=n.round(i*(o-a)/s);this.target.drawRect(t,c,r,h,l,this.options.get("normalRangeColor")).append()},render:function(){var e,i,r,s,a,o,c,h,u,d,p,f,g,_,C,m,E,v,y,w,x,Q,k,T,R=this.options,A=this.target,S=this.canvasWidth,O=this.canvasHeight,D=this.vertices,I=R.get("spotRadius"),N=this.regionMap;if(b._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),Q=this.xvalues,k=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(s=a=0,e=this.maxx-this.minx==0?1:this.maxx-this.minx,i=this.maxy-this.miny==0?1:this.maxy-this.miny,r=this.yvalues.length-1,I&&(S<4*I||O<4*I)&&(I=0),I&&(((w=R.get("highlightSpotColor")&&!R.get("disableInteraction"))||R.get("minSpotColor")||R.get("spotColor")&&k[r]===this.miny)&&(O-=n.ceil(I)),(w||R.get("maxSpotColor")||R.get("spotColor")&&k[r]===this.maxy)&&(O-=n.ceil(I),s+=n.ceil(I)),(w||(R.get("minSpotColor")||R.get("maxSpotColor"))&&(k[0]===this.miny||k[0]===this.maxy))&&(a+=n.ceil(I),S-=n.ceil(I)),(w||R.get("spotColor")||R.get("minSpotColor")||R.get("maxSpotColor")&&(k[r]===this.miny||k[r]===this.maxy))&&(S-=n.ceil(I))),O--,R.get("normalRangeMin")!==l&&!R.get("drawNormalOnTop")&&this.drawNormalRange(a,s,O,S,i),h=[c=[]],g=_=null,C=k.length,T=0;T<C;T++)u=Q[T],p=Q[T+1],d=k[T],_=(f=a+n.round((u-this.minx)*(S/e)))+((T<C-1?a+n.round((p-this.minx)*(S/e)):S)-f)/2,N[T]=[g||0,_,T],g=_,null===d?T&&(null!==k[T-1]&&(c=[],h.push(c)),D.push(null)):(d<this.miny&&(d=this.miny),d>this.maxy&&(d=this.maxy),c.length||c.push([f,s+O]),o=[f,s+n.round(O-O*((d-this.miny)/i))],c.push(o),D.push(o));for(m=[],E=[],v=h.length,T=0;T<v;T++)(c=h[T]).length&&(R.get("fillColor")&&(c.push([c[c.length-1][0],s+O]),E.push(c.slice(0)),c.pop()),c.length>2&&(c[0]=[c[0][0],c[1][1]]),m.push(c));for(v=E.length,T=0;T<v;T++)A.drawShape(E[T],R.get("fillColor"),R.get("fillColor")).append();for(R.get("normalRangeMin")!==l&&R.get("drawNormalOnTop")&&this.drawNormalRange(a,s,O,S,i),v=m.length,T=0;T<v;T++)A.drawShape(m[T],R.get("lineColor"),l,R.get("lineWidth")).append();if(I&&R.get("valueSpots"))for((y=R.get("valueSpots")).get===l&&(y=new L(y)),T=0;T<C;T++)(x=y.get(k[T]))&&A.drawCircle(a+n.round((Q[T]-this.minx)*(S/e)),s+n.round(O-O*((k[T]-this.miny)/i)),I,l,x).append();I&&R.get("spotColor")&&null!==k[r]&&A.drawCircle(a+n.round((Q[Q.length-1]-this.minx)*(S/e)),s+n.round(O-O*((k[r]-this.miny)/i)),I,l,R.get("spotColor")).append(),this.maxy!==this.minyorg&&(I&&R.get("minSpotColor")&&(u=Q[t.inArray(this.minyorg,k)],A.drawCircle(a+n.round((u-this.minx)*(S/e)),s+n.round(O-O*((this.minyorg-this.miny)/i)),I,l,R.get("minSpotColor")).append()),I&&R.get("maxSpotColor")&&(u=Q[t.inArray(this.maxyorg,k)],A.drawCircle(a+n.round((u-this.minx)*(S/e)),s+n.round(O-O*((this.maxyorg-this.miny)/i)),I,l,R.get("maxSpotColor")).append())),this.lastShapeId=A.getLastShapeId(),this.canvasTop=s,A.render()}}}),t.fn.sparkline.bar=y=i(t.fn.sparkline._base,v,{type:"bar",init:function(e,i,r,a,o){var c,p,f,g,_,C,m,E,v,b,w,x,Q,k,T,R,A,S,O,D,I,N=parseInt(r.get("barWidth"),10),P=parseInt(r.get("barSpacing"),10),M=r.get("chartRangeMin"),q=r.get("chartRangeMax"),B=r.get("chartRangeClip"),H=1/0,U=-1/0;for(y._super.init.call(this,e,i,r,a,o),C=0,m=i.length;C<m;C++)((c="string"==typeof(D=i[C])&&D.indexOf(":")>-1)||t.isArray(D))&&(T=!0,c&&(D=i[C]=u(D.split(":"))),D=d(D,null),(p=n.min.apply(n,D))<H&&(H=p),(f=n.max.apply(n,D))>U&&(U=f));this.stacked=T,this.regionShapes={},this.barWidth=N,this.barSpacing=P,this.totalBarWidth=N+P,this.width=a=i.length*N+(i.length-1)*P,this.initTarget(),B&&(Q=M===l?-1/0:M,k=q===l?1/0:q),_=[],g=T?[]:_;var F=[],z=[];for(C=0,m=i.length;C<m;C++)if(T)for(R=i[C],i[C]=O=[],F[C]=0,g[C]=z[C]=0,A=0,S=R.length;A<S;A++)null!==(D=O[A]=B?s(R[A],Q,k):R[A])&&(D>0&&(F[C]+=D),H<0&&U>0?D<0?z[C]+=n.abs(D):g[C]+=D:g[C]+=n.abs(D-(D<0?U:H)),_.push(D));else D=B?s(i[C],Q,k):i[C],null!==(D=i[C]=h(D))&&_.push(D);this.max=x=n.max.apply(n,_),this.min=w=n.min.apply(n,_),this.stackMax=U=T?n.max.apply(n,F):x,this.stackMin=H=T?n.min.apply(n,_):w,r.get("chartRangeMin")!==l&&(r.get("chartRangeClip")||r.get("chartRangeMin")<w)&&(w=r.get("chartRangeMin")),r.get("chartRangeMax")!==l&&(r.get("chartRangeClip")||r.get("chartRangeMax")>x)&&(x=r.get("chartRangeMax")),this.zeroAxis=v=r.get("zeroAxis",!0),b=w<=0&&x>=0&&v?0:0==v||w>0?w:x,this.xaxisOffset=b,E=T?n.max.apply(n,g)+n.max.apply(n,z):x-w,this.canvasHeightEf=v&&w<0?this.canvasHeight-2:this.canvasHeight-1,w<b?(I=((T&&x>=0?U:x)-b)/E*this.canvasHeight)!==n.ceil(I)&&(this.canvasHeightEf-=2,I=n.ceil(I)):I=this.canvasHeight,this.yoffset=I,t.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===l&&(this.colorMapByValue=new L(this.colorMapByValue))),this.range=E},getRegion:function(t,e,i){var r=n.floor(e/this.totalBarWidth);return r<0||r>=this.values.length?l:r},getCurrentRegionFields:function(){var t,e,i=this.currentRegion,r=_(this.values[i]),s=[];for(e=r.length;e--;)t=r[e],s.push({isNull:null===t,value:t,color:this.calcColor(e,t,i),offset:i});return s},calcColor:function(e,i,r){var s,a,o=this.colorMapByIndex,n=this.colorMapByValue,c=this.options;return s=this.stacked?c.get("stackedBarColor"):i<0?c.get("negBarColor"):c.get("barColor"),0===i&&c.get("zeroColor")!==l&&(s=c.get("zeroColor")),n&&(a=n.get(i))?s=a:o&&o.length>r&&(s=o[r]),t.isArray(s)?s[e%s.length]:s},renderRegion:function(e,i){var r,s,a,o,c,h,u,d,p,g,_=this.values[e],C=this.options,L=this.xaxisOffset,m=[],E=this.range,v=this.stacked,b=this.target,y=e*this.totalBarWidth,w=this.canvasHeightEf,x=this.yoffset;if(u=(_=t.isArray(_)?_:[_]).length,d=_[0],o=f(null,_),g=f(L,_,!0),o)return C.get("nullColor")?(a=i?C.get("nullColor"):this.calcHighlightColor(C.get("nullColor"),C),r=x>0?x-1:x,b.drawRect(y,r,this.barWidth-1,0,a,a)):l;for(c=x,h=0;h<u;h++){if(d=_[h],v&&d===L){if(!g||p)continue;p=!0}s=E>0?n.floor(w*(n.abs(d-L)/E))+1:1,d<L||d===L&&0===x?(r=c,c+=s):(r=x-s,x-=s),a=this.calcColor(h,d,e),i&&(a=this.calcHighlightColor(a,C)),m.push(b.drawRect(y,r,this.barWidth-1,s-1,a,a))}return 1===m.length?m[0]:m}}),t.fn.sparkline.tristate=w=i(t.fn.sparkline._base,v,{type:"tristate",init:function(e,i,r,s,a){var o=parseInt(r.get("barWidth"),10),n=parseInt(r.get("barSpacing"),10);w._super.init.call(this,e,i,r,s,a),this.regionShapes={},this.barWidth=o,this.barSpacing=n,this.totalBarWidth=o+n,this.values=t.map(i,Number),this.width=s=i.length*o+(i.length-1)*n,t.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===l&&(this.colorMapByValue=new L(this.colorMapByValue))),this.initTarget()},getRegion:function(t,e,i){return n.floor(e/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var i,r=this.values,s=this.options,a=this.colorMapByIndex,o=this.colorMapByValue;return o&&(i=o.get(t))?i:a&&a.length>e?a[e]:r[e]<0?s.get("negBarColor"):r[e]>0?s.get("posBarColor"):s.get("zeroBarColor")},renderRegion:function(t,e){var i,r,s,a,o,l,c=this.values,h=this.options,u=this.target;if(i=u.pixelHeight,s=n.round(i/2),a=t*this.totalBarWidth,c[t]<0?(o=s,r=s-1):c[t]>0?(o=0,r=s-1):(o=s-1,r=2),null!==(l=this.calcColor(c[t],t)))return e&&(l=this.calcHighlightColor(l,h)),u.drawRect(a,o,this.barWidth-1,r-1,l,l)}}),t.fn.sparkline.discrete=x=i(t.fn.sparkline._base,v,{type:"discrete",init:function(e,i,r,s,a){x._super.init.call(this,e,i,r,s,a),this.regionShapes={},this.values=i=t.map(i,Number),this.min=n.min.apply(n,i),this.max=n.max.apply(n,i),this.range=this.max-this.min,this.width=s="auto"===r.get("width")?2*i.length:this.width,this.interval=n.floor(s/i.length),this.itemWidth=s/i.length,r.get("chartRangeMin")!==l&&(r.get("chartRangeClip")||r.get("chartRangeMin")<this.min)&&(this.min=r.get("chartRangeMin")),r.get("chartRangeMax")!==l&&(r.get("chartRangeClip")||r.get("chartRangeMax")>this.max)&&(this.max=r.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===r.get("lineHeight")?n.round(.3*this.canvasHeight):r.get("lineHeight"))},getRegion:function(t,e,i){return n.floor(e/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],offset:t}},renderRegion:function(t,e){var i,r,a,o,l=this.values,c=this.options,h=this.min,u=this.max,d=this.range,p=this.interval,f=this.target,g=this.canvasHeight,_=this.lineHeight,C=g-_;return r=s(l[t],h,u),o=t*p,i=n.round(C-C*((r-h)/d)),a=c.get("thresholdColor")&&r<c.get("thresholdValue")?c.get("thresholdColor"):c.get("lineColor"),e&&(a=this.calcHighlightColor(a,c)),f.drawLine(o,i,o,i+_,a)}}),t.fn.sparkline.bullet=Q=i(t.fn.sparkline._base,{type:"bullet",init:function(t,e,i,r,s){var a,o,c;Q._super.init.call(this,t,e,i,r,s),this.values=e=u(e),(c=e.slice())[0]=null===c[0]?c[2]:c[0],c[1]=null===e[1]?c[2]:c[1],a=n.min.apply(n,e),o=n.max.apply(n,e),a=i.get("base")===l?a<0?a:0:i.get("base"),this.min=a,this.max=o,this.range=o-a,this.shapes={},this.valueShapes={},this.regiondata={},this.width=r="auto"===i.get("width")?"4.0em":r,this.target=this.$el.simpledraw(r,s,i.get("composite")),e.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,i){var r=this.target.getShapeAt(t,e,i);return r!==l&&this.shapes[r]!==l?this.shapes[r]:l},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,i=this.currentRegion,r=this.valueShapes[i];switch(delete this.shapes[r],i.substr(0,1)){case"r":e=this.renderRange(i.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[i]=e.id,this.shapes[e.id]=i,this.target.replaceWithShape(r,e)},renderRange:function(t,e){var i=this.values[t],r=n.round(this.canvasWidth*((i-this.min)/this.range)),s=this.options.get("rangeColors")[t-2];return e&&(s=this.calcHighlightColor(s,this.options)),this.target.drawRect(0,0,r-1,this.canvasHeight-1,s,s)},renderPerformance:function(t){var e=this.values[1],i=n.round(this.canvasWidth*((e-this.min)/this.range)),r=this.options.get("performanceColor");return t&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,n.round(.3*this.canvasHeight),i-1,n.round(.4*this.canvasHeight)-1,r,r)},renderTarget:function(t){var e=this.values[0],i=n.round(this.canvasWidth*((e-this.min)/this.range)-this.options.get("targetWidth")/2),r=n.round(.1*this.canvasHeight),s=this.canvasHeight-2*r,a=this.options.get("targetColor");return t&&(a=this.calcHighlightColor(a,this.options)),this.target.drawRect(i,r,this.options.get("targetWidth")-1,s-1,a,a)},render:function(){var t,e,i=this.values.length,r=this.target;if(Q._super.render.call(this)){for(t=2;t<i;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),r.render()}}}),t.fn.sparkline.pie=k=i(t.fn.sparkline._base,{type:"pie",init:function(e,i,r,s,a){var o,l=0;if(k._super.init.call(this,e,i,r,s,a),this.shapes={},this.valueShapes={},this.values=i=t.map(i,Number),"auto"===r.get("width")&&(this.width=this.height),i.length>0)for(o=i.length;o--;)l+=i[o];this.total=l,this.initTarget(),this.radius=n.floor(n.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,i){var r=this.target.getShapeAt(t,e,i);return r!==l&&this.shapes[r]!==l?this.shapes[r]:l},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,i=this.renderSlice(e,t),r=this.valueShapes[e];delete this.shapes[r],this.target.replaceWithShape(r,i),this.valueShapes[e]=i.id,this.shapes[i.id]=e},renderSlice:function(t,e){var i,r,s,a,o,c=this.target,h=this.options,u=this.radius,d=h.get("borderWidth"),p=h.get("offset"),f=2*n.PI,g=this.values,_=this.total,C=p?2*n.PI*(p/360):0;for(a=g.length,s=0;s<a;s++){if(i=C,r=C,_>0&&(r=C+f*(g[s]/_)),t===s)return o=h.get("sliceColors")[s%h.get("sliceColors").length],e&&(o=this.calcHighlightColor(o,h)),c.drawPieSlice(u,u,u-d,i,r,l,o);C=r}},render:function(){var t,e,i=this.target,r=this.values,s=this.options,a=this.radius,o=s.get("borderWidth");if(k._super.render.call(this)){for(o&&i.drawCircle(a,a,n.floor(a-o/2),s.get("borderColor"),l,o).append(),e=r.length;e--;)r[e]&&(t=this.renderSlice(e).append(),this.valueShapes[e]=t.id,this.shapes[t.id]=e);i.render()}}}),t.fn.sparkline.box=T=i(t.fn.sparkline._base,{type:"box",init:function(e,i,r,s,a){T._super.init.call(this,e,i,r,s,a),this.values=t.map(i,Number),this.width="auto"===r.get("width")?"4.0em":s,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==l&&t.push({field:"lo",value:this.loutlier}),this.routlier!==l&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==l&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==l&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,e,i,r,s,o,c,h,u,d,p,f=this.target,g=this.values,_=g.length,C=this.options,L=this.canvasWidth,m=this.canvasHeight,E=C.get("chartRangeMin")===l?n.min.apply(n,g):C.get("chartRangeMin"),v=C.get("chartRangeMax")===l?n.max.apply(n,g):C.get("chartRangeMax"),b=0;if(T._super.render.call(this)){if(C.get("raw"))C.get("showOutliers")&&g.length>5?(e=g[0],t=g[1],r=g[2],s=g[3],o=g[4],c=g[5],h=g[6]):(t=g[0],r=g[1],s=g[2],o=g[3],c=g[4]);else if(g.sort((function(t,e){return t-e})),r=a(g,1),s=a(g,2),i=(o=a(g,3))-r,C.get("showOutliers")){for(t=c=l,u=0;u<_;u++)t===l&&g[u]>r-i*C.get("outlierIQR")&&(t=g[u]),g[u]<o+i*C.get("outlierIQR")&&(c=g[u]);e=g[0],h=g[_-1]}else t=g[0],c=g[_-1];this.quartiles=[r,s,o],this.lwhisker=t,this.rwhisker=c,this.loutlier=e,this.routlier=h,p=L/(v-E+1),C.get("showOutliers")&&(b=n.ceil(C.get("spotRadius")),p=(L-=2*n.ceil(C.get("spotRadius")))/(v-E+1),e<t&&f.drawCircle((e-E)*p+b,m/2,C.get("spotRadius"),C.get("outlierLineColor"),C.get("outlierFillColor")).append(),h>c&&f.drawCircle((h-E)*p+b,m/2,C.get("spotRadius"),C.get("outlierLineColor"),C.get("outlierFillColor")).append()),f.drawRect(n.round((r-E)*p+b),n.round(.1*m),n.round((o-r)*p),n.round(.8*m),C.get("boxLineColor"),C.get("boxFillColor")).append(),f.drawLine(n.round((t-E)*p+b),n.round(m/2),n.round((r-E)*p+b),n.round(m/2),C.get("lineColor")).append(),f.drawLine(n.round((t-E)*p+b),n.round(m/4),n.round((t-E)*p+b),n.round(m-m/4),C.get("whiskerColor")).append(),f.drawLine(n.round((c-E)*p+b),n.round(m/2),n.round((o-E)*p+b),n.round(m/2),C.get("lineColor")).append(),f.drawLine(n.round((c-E)*p+b),n.round(m/4),n.round((c-E)*p+b),n.round(m-m/4),C.get("whiskerColor")).append(),f.drawLine(n.round((s-E)*p+b),n.round(.1*m),n.round((s-E)*p+b),n.round(.9*m),C.get("medianColor")).append(),C.get("target")&&(d=n.ceil(C.get("spotRadius")),f.drawLine(n.round((C.get("target")-E)*p+b),n.round(m/2-d),n.round((C.get("target")-E)*p+b),n.round(m/2+d),C.get("targetColor")).append(),f.drawLine(n.round((C.get("target")-E)*p+b-d),n.round(m/2),n.round((C.get("target")-E)*p+b+d),n.round(m/2),C.get("targetColor")).append()),f.render()}}}),R=i({init:function(t,e,i,r){this.target=t,this.id=e,this.type=i,this.args=r},append:function(){return this.target.appendShape(this),this}}),A=i({_pxregex:/(\d+)(px)?\s*$/i,init:function(e,i,r){e&&(this.width=e,this.height=i,this.target=r,this.lastShapeId=null,r[0]&&(r=r[0]),t.data(r,"_jqs_vcanvas",this))},drawLine:function(t,e,i,r,s,a){return this.drawShape([[t,e],[i,r]],s,a)},drawShape:function(t,e,i,r){return this._genShape("Shape",[t,e,i,r])},drawCircle:function(t,e,i,r,s,a){return this._genShape("Circle",[t,e,i,r,s,a])},drawPieSlice:function(t,e,i,r,s,a,o){return this._genShape("PieSlice",[t,e,i,r,s,a,o])},drawRect:function(t,e,i,r,s,a){return this._genShape("Rect",[t,e,i,r,s,a])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(e,i){t(i).html(e)},_calculatePixelDims:function(e,i,r){var s;s=this._pxregex.exec(i),this.pixelHeight=s?s[1]:t(r).height(),s=this._pxregex.exec(e),this.pixelWidth=s?s[1]:t(r).width()},_genShape:function(t,e){var i=N++;return e.unshift(i),new R(this,i,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,i){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),S=i(A,{init:function(e,i,r,s){S._super.init.call(this,e,i,r),this.canvas=o.createElement("canvas"),r[0]&&(r=r[0]),t.data(r,"_jqs_vcanvas",this),t(this.canvas).css({display:"inline-block",width:e,height:i,verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=s,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=l,t(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,i){var r=this.canvas.getContext("2d");return t!==l&&(r.strokeStyle=t),r.lineWidth=i===l?1:i,e!==l&&(r.fillStyle=e),r},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=l},_drawShape:function(t,e,i,r,s){var a,o,n=this._getContext(i,r,s);for(n.beginPath(),n.moveTo(e[0][0]+.5,e[0][1]+.5),a=1,o=e.length;a<o;a++)n.lineTo(e[a][0]+.5,e[a][1]+.5);i!==l&&n.stroke(),r!==l&&n.fill(),this.targetX!==l&&this.targetY!==l&&n.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,e,i,r,s,a,o){var c=this._getContext(s,a,o);c.beginPath(),c.arc(e,i,r,0,2*n.PI,!1),this.targetX!==l&&this.targetY!==l&&c.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),s!==l&&c.stroke(),a!==l&&c.fill()},_drawPieSlice:function(t,e,i,r,s,a,o,n){var c=this._getContext(o,n);c.beginPath(),c.moveTo(e,i),c.arc(e,i,r,s,a,!1),c.lineTo(e,i),c.closePath(),o!==l&&c.stroke(),n&&c.fill(),this.targetX!==l&&this.targetY!==l&&c.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,i,r,s,a,o){return this._drawShape(t,[[e,i],[e+r,i],[e+r,i+s],[e,i+s],[e,i]],a,o)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i,r=this.shapeseq;for(this.shapes[e.id]=e,i=r.length;i--;)r[i]==t&&(r[i]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var i,r,s,a=this.shapeseq,o={};for(r=t.length;r--;)o[t[r]]=!0;for(r=a.length;r--;)o[i=a[r]]&&(a.splice(r,1),delete this.shapes[i],s=r);for(r=e.length;r--;)a.splice(s,0,e[r].id),this.shapes[e[r].id]=e[r]},insertAfterShape:function(t,e){var i,r=this.shapeseq;for(i=r.length;i--;)if(r[i]===t)return r.splice(i+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,i=this.shapeseq;for(e=i.length;e--;)if(i[e]===t){i.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,i){return this.targetX=e,this.targetY=i,this.render(),this.currentTargetShapeId},render:function(){var t,e,i=this.shapeseq,r=this.shapes,s=i.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),e=0;e<s;e++)this["_draw"+(t=r[i[e]]).type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}}),O=i(A,{init:function(e,i,r){var s;O._super.init.call(this,e,i,r),r[0]&&(r=r[0]),t.data(r,"_jqs_vcanvas",this),this.canvas=o.createElement("span"),t(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:i,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,s='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",s),this.group=t(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,i,r,s){var a,o,n,c,h,u,d=[];for(u=0,h=e.length;u<h;u++)d[u]=e[u][0]+","+e[u][1];return a=d.splice(0,1),s=s===l?1:s,o=i===l?' stroked="false" ':' strokeWeight="'+s+'px" strokeColor="'+i+'" ',n=r===l?' filled="false"':' fillColor="'+r+'" filled="true" ',c=d[0]===d[d.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+o+n+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+a+" l "+d.join(", ")+" "+c+'e"> </v:shape>'},_drawCircle:function(t,e,i,r,s,a,o){return'<v:oval id="jqsshape'+t+'" '+(s===l?' stroked="false" ':' strokeWeight="'+o+'px" strokeColor="'+s+'" ')+(a===l?' filled="false"':' fillColor="'+a+'" filled="true" ')+' style="position:absolute;top:'+(i-=r)+"px; left:"+(e-=r)+"px; width:"+2*r+"px; height:"+2*r+'px"></v:oval>'},_drawPieSlice:function(t,e,i,r,s,a,o,c){var h,u,d,p,f,g,_;if(s===a)return"";if(a-s==2*n.PI&&(s=0,a=2*n.PI),u=e+n.round(n.cos(s)*r),d=i+n.round(n.sin(s)*r),p=e+n.round(n.cos(a)*r),f=i+n.round(n.sin(a)*r),u===p&&d===f){if(a-s<n.PI)return"";u=p=e+r,d=f=i}return u===p&&d===f&&a-s<n.PI?"":(h=[e-r,i-r,e+r,i+r,u,d,p,f],g=o===l?' stroked="false" ':' strokeWeight="1px" strokeColor="'+o+'" ',_=c===l?' filled="false"':' fillColor="'+c+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+g+_+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+e+","+i+" wa "+h.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,i,r,s,a,o){return this._drawShape(t,[[e,i],[e,i+s],[e+r,i+s],[e+r,i],[e,i]],a,o)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(e,i){var r=t("#jqsshape"+e),s=this["_draw"+i.type].apply(this,i.args);r[0].outerHTML=s},replaceWithShapes:function(e,i){var r,s=t("#jqsshape"+e[0]),a="",o=i.length;for(r=0;r<o;r++)a+=this["_draw"+i[r].type].apply(this,i[r].args);for(s[0].outerHTML=a,r=1;r<e.length;r++)t("#jqsshape"+e[r]).remove()},insertAfterShape:function(e,i){var r=t("#jqsshape"+e),s=this["_draw"+i.type].apply(this,i.args);r[0].insertAdjacentHTML("afterEnd",s)},removeShapeId:function(e){var i=t("#jqsshape"+e);this.group.removeChild(i[0])},getShapeAt:function(t,e,i){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})}))},745:(t,e,i)=>{var r,s,a;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}s=[i(4692)],void 0===(a="function"==typeof(r=function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function r(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="rt-qc-ui-datepicker-div",this._inlineClass="rt-qc-ui-datepicker-inline",this._appendClass="rt-qc-ui-datepicker-append",this._triggerClass="rt-qc-ui-datepicker-trigger",this._dialogClass="rt-qc-ui-datepicker-dialog",this._disableClass="rt-qc-ui-datepicker-disabled",this._unselectableClass="rt-qc-ui-datepicker-unselectable",this._currentClass="rt-qc-ui-datepicker-current-day",this._dayOverClass="rt-qc-ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='rt-qc-ui-datepicker rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-helper-clearfix rt-qc-ui-corner-all'></div>"))}function s(e){var i="button, .rt-qc-ui-datepicker-prev, .rt-qc-ui-datepicker-next, .rt-qc-ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("rt-qc-ui-state-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-prev")&&t(this).removeClass("rt-qc-ui-datepicker-prev-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-next")&&t(this).removeClass("rt-qc-ui-datepicker-next-hover")})).on("mouseover",i,a)}function a(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".rt-qc-ui-datepicker-calendar").find("a").removeClass("rt-qc-ui-state-hover"),t(this).addClass("rt-qc-ui-state-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-prev")&&t(this).addClass("rt-qc-ui-datepicker-prev-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-next")&&t(this).addClass("rt-qc-ui-datepicker-next-hover"))}function n(e,i){for(var r in t.extend(e,i),i)null==i[r]&&(e[r]=i[r]);return e}function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var c=0,h=Array.prototype.slice;t.cleanData=function(e){return function(i){var r,s,a;for(a=0;null!=(s=i[a]);a++)try{(r=t._data(s,"events"))&&r.remove&&t(s).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,r){var s,a,o,n={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return r||(r=i,i=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},s=t[l][e],a=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,s,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(o=new i).options=t.widget.extend({},o.options),t.each(r,(function(e,r){return t.isFunction(r)?void(n[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,a=this._superApply;return this._super=t,this._superApply=s,e=r.apply(this,arguments),this._super=i,this._superApply=a,e}}()):void(n[e]=r)})),a.prototype=t.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||e},n,{constructor:a,namespace:l,widgetName:e,widgetFullName:c}),s?(t.each(s._childConstructors,(function(e,i){var r=i.prototype;t.widget(r.namespace+"."+r.widgetName,a,i._proto)})),delete s._childConstructors):i._childConstructors.push(a),t.widget.bridge(e,a),a},t.widget.extend=function(e){for(var i,r,s=h.call(arguments,1),a=0,o=s.length;o>a;a++)for(i in s[a])r=s[a][i],s[a].hasOwnProperty(i)&&void 0!==r&&(e[i]=t.isPlainObject(r)?t.isPlainObject(e[i])?t.widget.extend({},e[i],r):t.widget.extend({},r):r);return e},t.widget.bridge=function(e,i){var r=i.prototype.widgetFullName||e;t.fn[e]=function(s){var a="string"==typeof s,o=h.call(arguments,1),n=this;return a?this.length||"instance"!==s?this.each((function(){var i,a=t.data(this,r);return"instance"===s?(n=a,!1):a?t.isFunction(a[s])&&"_"!==s.charAt(0)?(i=a[s].apply(a,o))!==a&&void 0!==i?(n=i&&i.jquery?n.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")})):n=void 0:(o.length&&(s=t.widget.extend.apply(null,[s].concat(o))),this.each((function(){var e=t.data(this,r);e?(e.option(s||{}),e._init&&e._init()):t.data(this,r,new i(s,this))}))),n}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var r,s,a,o=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(o={},r=e.split("."),e=r.shift(),r.length){for(s=o[e]=t.widget.extend({},this.options[e]),a=0;r.length-1>a;a++)s[r[a]]=s[r[a]]||{},s=s[r[a]];if(e=r.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];o[e]=i}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,r,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(r=t(s.get()),this._removeClass(s,i),r.addClass(this._classes({element:r,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"rt-qc-ui-state-hover"),this._removeClass(this.focusable,null,"rt-qc-ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,a){var o,n;for(n=0;i.length>n;n++)o=s.classesElementLookup[i[n]]||t(),o=e.add?t(t.unique(o.get().concat(e.element.get()))):t(o.not(e.element).get()),s.classesElementLookup[i[n]]=o,r.push(i[n]),a&&e.classes[i[n]]&&r.push(e.classes[i[n]])}var r=[],s=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(r,s){-1!==t.inArray(e.target,s)&&(i.classesElementLookup[r]=t(s.not(e.target).get()))}))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,r){r="boolean"==typeof r?r:i;var s="string"==typeof t||null===t,a={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:r};return a.element.toggleClass(this._classes(a),r),this},_on:function(e,i,r){var s,a=this;"boolean"!=typeof e&&(r=i,i=e,e=!1),r?(i=s=t(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,s=this.widget()),t.each(r,(function(r,o){function n(){return e||!0!==a.options.disabled&&!t(this).hasClass("rt-qc-ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(n.guid=o.guid=o.guid||n.guid||t.guid++);var l=r.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,h=l[2];h?s.on(c,h,n):i.on(c,n)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?r[t]:t).apply(r,arguments)}var r=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"rt-qc-ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"rt-qc-ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"rt-qc-ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"rt-qc-ui-state-focus")}})},_trigger:function(e,i,r){var s,a,o=this.options[e];if(r=r||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,r),!(t.isFunction(o)&&!1===o.apply(this.element[0],[i].concat(r))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(r,s,a){"string"==typeof s&&(s={effect:s});var o,n=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})&&(s={duration:s}),o=!t.isEmptyObject(s),s.complete=a,s.delay&&r.delay(s.delay),o&&t.effects&&t.effects.effect[n]?r[e](s):n!==e&&r[n]?r[n](s.duration,s.easing,a):r.queue((function(i){t(this)[e](),a&&a.call(r[0]),i()}))}})),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var s,a=Math.max,o=Math.abs,n=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,i,r=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=r.children()[0];return t("body").append(r),e=a.offsetWidth,r.css("overflow","scroll"),e===(i=a.offsetWidth)&&(i=r[0].clientWidth),r.remove(),s=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),r=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),r=t.isWindow(i[0]),s=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:r,isDocument:s,offset:r||s?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(s){if(!s||!s.of)return d.apply(this,arguments);s=t.extend({},s);var u,p,f,g,_,C,L=t(s.of),m=t.position.getWithinInfo(s.within),E=t.position.getScrollInfo(m),v=(s.collision||"flip").split(" "),b={};return C=r(L),L[0].preventDefault&&(s.at="left top"),p=C.width,f=C.height,g=C.offset,_=t.extend({},g),t.each(["my","at"],(function(){var t,e,i=(s[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=c.exec(i[0]),e=c.exec(i[1]),b[this]=[t?t[0]:0,e?e[0]:0],s[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]})),1===v.length&&(v[1]=v[0]),"right"===s.at[0]?_.left+=p:"center"===s.at[0]&&(_.left+=p/2),"bottom"===s.at[1]?_.top+=f:"center"===s.at[1]&&(_.top+=f/2),u=e(b.at,p,f),_.left+=u[0],_.top+=u[1],this.each((function(){var r,n,l=t(this),c=l.outerWidth(),h=l.outerHeight(),d=i(this,"marginLeft"),C=i(this,"marginTop"),y=c+d+i(this,"marginRight")+E.width,w=h+C+i(this,"marginBottom")+E.height,x=t.extend({},_),Q=e(b.my,l.outerWidth(),l.outerHeight());"right"===s.my[0]?x.left-=c:"center"===s.my[0]&&(x.left-=c/2),"bottom"===s.my[1]?x.top-=h:"center"===s.my[1]&&(x.top-=h/2),x.left+=Q[0],x.top+=Q[1],r={marginLeft:d,marginTop:C},t.each(["left","top"],(function(e,i){t.ui.position[v[e]]&&t.ui.position[v[e]][i](x,{targetWidth:p,targetHeight:f,elemWidth:c,elemHeight:h,collisionPosition:r,collisionWidth:y,collisionHeight:w,offset:[u[0]+Q[0],u[1]+Q[1]],my:s.my,at:s.at,within:m,elem:l})})),s.using&&(n=function(t){var e=g.left-x.left,i=e+p-c,r=g.top-x.top,n=r+f-h,u={target:{element:L,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:x.left,top:x.top,width:c,height:h},horizontal:0>i?"left":e>0?"right":"center",vertical:0>n?"top":r>0?"bottom":"middle"};c>p&&p>o(e+i)&&(u.horizontal="center"),h>f&&f>o(r+n)&&(u.vertical="middle"),u.important=a(o(e),o(i))>a(o(r),o(n))?"horizontal":"vertical",s.using.call(this,t,u)}),l.offset(t.extend(x,{using:n}))}))},t.ui.position={fit:{left:function(t,e){var i,r=e.within,s=r.isWindow?r.scrollLeft:r.offset.left,o=r.width,n=t.left-e.collisionPosition.marginLeft,l=s-n,c=n+e.collisionWidth-o-s;e.collisionWidth>o?l>0&&0>=c?(i=t.left+l+e.collisionWidth-o-s,t.left+=l-i):t.left=c>0&&0>=l?s:l>c?s+o-e.collisionWidth:s:l>0?t.left+=l:c>0?t.left-=c:t.left=a(t.left-n,t.left)},top:function(t,e){var i,r=e.within,s=r.isWindow?r.scrollTop:r.offset.top,o=e.within.height,n=t.top-e.collisionPosition.marginTop,l=s-n,c=n+e.collisionHeight-o-s;e.collisionHeight>o?l>0&&0>=c?(i=t.top+l+e.collisionHeight-o-s,t.top+=l-i):t.top=c>0&&0>=l?s:l>c?s+o-e.collisionHeight:s:l>0?t.top+=l:c>0?t.top-=c:t.top=a(t.top-n,t.top)}},flip:{left:function(t,e){var i,r,s=e.within,a=s.offset.left+s.scrollLeft,n=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,u=c+e.collisionWidth-n-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>h?(0>(i=t.left+d+p+f+e.collisionWidth-n-a)||o(h)>i)&&(t.left+=d+p+f):u>0&&((r=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||u>o(r))&&(t.left+=d+p+f)},top:function(t,e){var i,r,s=e.within,a=s.offset.top+s.scrollTop,n=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,u=c+e.collisionHeight-n-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>h?(0>(r=t.top+d+p+f+e.collisionHeight-n-a)||o(h)>r)&&(t.top+=d+p+f):u>0&&((i=t.top-e.collisionPosition.marginTop+d+p+f-l)>0||u>o(i))&&(t.top+=d+p+f)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,r){return!!t.data(e,r[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".rt-qc-ui-disableSelection",(function(t){t.preventDefault()}))}}(),enableSelection:function(){return this.off(".rt-qc-ui-disableSelection")}}),t.ui.focusable=function(i,r){var s,a,o,n,l,c=i.nodeName.toLowerCase();return"area"===c?(a=(s=i.parentNode).name,!(!i.href||!a||"map"!==s.nodeName.toLowerCase())&&(o=t("img[usemap='#"+a+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(c)?(n=!i.disabled)&&(l=t(i).closest("fieldset")[0])&&(n=!l.disabled):n="a"===c&&i.href||r,n&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout((function(){var i=e.data("rt-qc-ui-form-reset-instances");t.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("rt-qc-ui-form-reset-instances")||[];t.length||this.form.on("reset.rt-qc-ui-form-reset",this._formResetHandler),t.push(this),this.form.data("rt-qc-ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("rt-qc-ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("rt-qc-ui-form-reset-instances",e):this.form.removeData("rt-qc-ui-form-reset-instances").off("reset.rt-qc-ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],(function(e,i){function r(e,i,r,a){return t.each(s,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,r&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var s="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?o["inner"+i].call(this):this.each((function(){t(this).css(a,r(this,e)+"px")}))},t.fn["outer"+i]=function(e,s){return"number"!=typeof e?o["outer"+i].call(this,e):this.each((function(){t(this).css(a,r(this,e,!0,s)+"px")}))}})),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,r,s,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(r=this.attr("id"))&&(a=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(r)+"']",s=s.add(a.find(i).addBack(i))),this.pushStack(s))},t.fn.scrollParent=function(e){var i=this.css("position"),r="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter((function(){var e=t(this);return(!r||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&a.length?a:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),r=null!=i;return(!r||i>=0)&&t.ui.focusable(e,r)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each((function(){this.id||(this.id="rt-qc-ui-id-"+ ++t)}))}}(),removeUniqueId:function(){return this.each((function(){/^rt-qc-ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var u=!1;t(document).on("mouseup",(function(){u=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!u){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,r=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(r&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),u=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,u=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,r){var s,a=t.ui[e].prototype;for(s in r)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([i,r[s]])},call:function(t,e,i,r){var s,a=t.plugins[e];if(a&&(r||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;a.length>s;s++)t.options[a[s][0]]&&a[s][1].apply(t.element,i)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("rt-qc-ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".rt-qc-ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".rt-qc-ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"rt-qc-ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(!1===this._trigger("drag",e,r))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,r=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(r=t.ui.ddmanager.drop(this,e)),this.dropped&&(r=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!r||"valid"===this.options.revert&&r||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".rt-qc-ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"rt-qc-ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"rt-qc-ui-draggable-handle")},_createHelper:function(e){var i=this.options,r=t.isFunction(i.helper),s=r?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),r&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,r,s=this.options,a=this.document[0];return this.relativeContainer=null,s.containment?"window"===s.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,t(a).width()-this.helperProportions.width-this.margins.left,(t(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),void((r=(i=t(s.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,r,s,a,o=this.options,n=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),i=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),o.grid&&(s=o.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-o.grid[1]:s+o.grid[1]:s,a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"rt-qc-ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,r){return r=r||this._uiHash(),t.ui.plugin.call(this,e,[i,r,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,r){var s=t.extend({},i,{item:r.element});r.sortables=[],t(r.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))}))},stop:function(e,i,r){var s=t.extend({},i,{item:r.element});r.cancelHelperRemoval=!1,t.each(r.sortables,(function(){var t=this;t.isOver?(t.isOver=0,r.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))}))},drag:function(e,i,r){t.each(r.sortables,(function(){var s=!1,a=this;a.positionAbs=r.positionAbs,a.helperProportions=r.helperProportions,a.offset.click=r.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,t.each(r.sortables,(function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&t.contains(a.element[0],this.element[0])&&(s=!1),s}))),s?(a.isOver||(a.isOver=1,r._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("rt-qc-ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},e.target=a.currentItem[0],a._mouseCapture(e,!0),a._mouseStart(e,!0,!0),a.offset.click.top=r.offset.click.top,a.offset.click.left=r.offset.click.left,a.offset.parent.left-=r.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=r.offset.parent.top-a.offset.parent.top,r._trigger("toSortable",e),r.dropped=a.element,t.each(r.sortables,(function(){this.refreshPositions()})),r.currentItem=r.element,a.fromOutside=r),a.currentItem&&(a._mouseDrag(e),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",e,a._uiHash(a)),a._mouseStop(e,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(e),i.position=r._generatePosition(e,!0),r._trigger("fromSortable",e),r.dropped=!1,t.each(r.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,r){var s=t("body"),a=r.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(e,i,r){var s=r.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,r){var s=t(i.helper),a=r.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(e,i,r){var s=r.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,r){var s=r.options,a=!1,o=r.scrollParentNotHidden[0],n=r.document[0];o!==n&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(r.overflowOffset.top+o.offsetHeight-e.pageY<s.scrollSensitivity?o.scrollTop=a=o.scrollTop+s.scrollSpeed:e.pageY-r.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=a=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(r.overflowOffset.left+o.offsetWidth-e.pageX<s.scrollSensitivity?o.scrollLeft=a=o.scrollLeft+s.scrollSpeed:e.pageX-r.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=a=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(n).scrollTop()<s.scrollSensitivity?a=t(n).scrollTop(t(n).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(n).scrollTop())<s.scrollSensitivity&&(a=t(n).scrollTop(t(n).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(n).scrollLeft()<s.scrollSensitivity?a=t(n).scrollLeft(t(n).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(n).scrollLeft())<s.scrollSensitivity&&(a=t(n).scrollLeft(t(n).scrollLeft()+s.scrollSpeed)))),!1!==a&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(r,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,r){var s=r.options;r.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(rt-qc-ui-draggable)":s.snap).each((function(){var e=t(this),i=e.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,r){var s,a,o,n,l,c,h,u,d,p,f=r.options,g=f.snapTolerance,_=i.offset.left,C=_+r.helperProportions.width,L=i.offset.top,m=L+r.helperProportions.height;for(d=r.snapElements.length-1;d>=0;d--)c=(l=r.snapElements[d].left-r.margins.left)+r.snapElements[d].width,u=(h=r.snapElements[d].top-r.margins.top)+r.snapElements[d].height,l-g>C||_>c+g||h-g>m||L>u+g||!t.contains(r.snapElements[d].item.ownerDocument,r.snapElements[d].item)?(r.snapElements[d].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[d].item})),r.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=g>=Math.abs(h-m),a=g>=Math.abs(u-L),o=g>=Math.abs(l-C),n=g>=Math.abs(c-_),s&&(i.position.top=r._convertPositionTo("relative",{top:h-r.helperProportions.height,left:0}).top),a&&(i.position.top=r._convertPositionTo("relative",{top:u,left:0}).top),o&&(i.position.left=r._convertPositionTo("relative",{top:0,left:l-r.helperProportions.width}).left),n&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left)),p=s||a||o||n,"outer"!==f.snapMode&&(s=g>=Math.abs(h-L),a=g>=Math.abs(u-m),o=g>=Math.abs(l-_),n=g>=Math.abs(c-C),s&&(i.position.top=r._convertPositionTo("relative",{top:h,left:0}).top),a&&(i.position.top=r._convertPositionTo("relative",{top:u-r.helperProportions.height,left:0}).top),o&&(i.position.left=r._convertPositionTo("relative",{top:0,left:l}).left),n&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left)),!r.snapElements[d].snapping&&(s||a||o||n||p)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[d].item})),r.snapElements[d].snapping=s||a||o||n||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,r){var s,a=r.options,o=t.makeArray(t(a.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));o.length&&(s=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each((function(e){t(this).css("zIndex",s+e)})),this.css("zIndex",s+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,r){var s=t(i.helper),a=r.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(e,i,r){var s=r.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,r=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(r)?r:function(t){return t.is(r)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(i.scope),i.addClasses&&this._addClass("rt-qc-ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var r=t.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var r=i||t.ui.ddmanager.current,s=!1;return!(!r||(r.currentItem||r.element)[0]===this.element[0])&&(this.element.find(":data(rt-qc-ui-droppable)").not(".rt-qc-ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&d(r,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(s=!0,!1):void 0})),!s&&!!this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(r)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("rt-qc-ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("rt-qc-ui-droppable-hover")},_addActiveClass:function(){this._addClass("rt-qc-ui-droppable-active")},_removeActiveClass:function(){this._removeClass("rt-qc-ui-droppable-active")}});var d=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,r,s){if(!i.offset)return!1;var a=(e.positionAbs||e.position.absolute).left+e.margins.left,o=(e.positionAbs||e.position.absolute).top+e.margins.top,n=a+e.helperProportions.width,l=o+e.helperProportions.height,c=i.offset.left,h=i.offset.top,u=c+i.proportions().width,d=h+i.proportions().height;switch(r){case"fit":return a>=c&&u>=n&&o>=h&&d>=l;case"intersect":return a+e.helperProportions.width/2>c&&u>n-e.helperProportions.width/2&&o+e.helperProportions.height/2>h&&d>l-e.helperProportions.height/2;case"pointer":return t(s.pageY,h,i.proportions().height)&&t(s.pageX,c,i.proportions().width);case"touch":return(o>=h&&d>=o||l>=h&&d>=l||h>o&&l>d)&&(a>=c&&u>=a||n>=c&&u>=n||c>a&&n>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var r,s,a=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,n=(e.currentItem||e.element).find(":data(rt-qc-ui-droppable)").addBack();t:for(r=0;a.length>r;r++)if(!(a[r].options.disabled||e&&!a[r].accept.call(a[r].element[0],e.currentItem||e.element))){for(s=0;n.length>s;s++)if(n[s]===a[r].element[0]){a[r].proportions().height=0;continue t}a[r].visible="none"!==a[r].element.css("display"),a[r].visible&&("mousedown"===o&&a[r]._activate.call(a[r],i),a[r].offset=a[r].element.offset(),a[r].proportions({width:a[r].element[0].offsetWidth,height:a[r].element[0].offsetHeight}))}},drop:function(e,i){var r=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&d(e,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),r},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,s,a,o=d(e,this,this.options.tolerance,i),n=!o&&this.isover?"isout":o&&!this.isover?"isover":null;n&&(this.options.greedy&&(s=this.options.scope,(a=this.element.parents(":data(rt-qc-ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===s}))).length&&((r=t(a[0]).droppable("instance")).greedyChild="isover"===n)),r&&"isover"===n&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,i),r&&"isout"===n&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"rt-qc-ui-resizable-se":"rt-qc-ui-icon rt-qc-ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[r]>0||(e[r]=1,s=e[r]>0,e[r]=0,s)},_create:function(){var e,i=this.options,r=this;this._addClass("rt-qc-ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"rt-qc-ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='rt-qc-ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("rt-qc-ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(r._removeClass("rt-qc-ui-resizable-autohide"),r._handles.show())})).on("mouseleave",(function(){i.disabled||r.resizing||(r._addClass("rt-qc-ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("rt-qc-ui-resizable").off(".resizable").find(".rt-qc-ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){"handles"===(this._super(t,e),t)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,i,r,s,a,o=this.options,n=this;if(this.handles=o.handles||(t(".rt-qc-ui-resizable-handle",this.element).length?{n:".rt-qc-ui-resizable-n",e:".rt-qc-ui-resizable-e",s:".rt-qc-ui-resizable-s",w:".rt-qc-ui-resizable-w",se:".rt-qc-ui-resizable-se",sw:".rt-qc-ui-resizable-sw",ne:".rt-qc-ui-resizable-ne",nw:".rt-qc-ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),r=this.handles.split(","),this.handles={},i=0;r.length>i;i++)s="rt-qc-ui-resizable-"+(e=t.trim(r[i])),a=t("<div>"),this._addClass(a,"rt-qc-ui-resizable-handle "+s),a.css({zIndex:o.zIndex}),this.handles[e]=".rt-qc-ui-resizable-"+e,this.element.append(a);this._renderAxis=function(e){var i,r,s,a;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:n._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=t(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".rt-qc-ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){n.resizing||(this.className&&(a=this.className.match(/rt-qc-ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),n.axis=a&&a[1]?a[1]:"se")})),o.autoHide&&(this._handles.hide(),this._addClass("rt-qc-ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,r,s=!1;for(i in this.handles)((r=t(this.handles[i])[0])===e.target||t.contains(r,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,r,s,a=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),r=this._num(this.helper.css("top")),a.containment&&(i+=t(a.containment).scrollLeft()||0,r+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:r},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:r},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".rt-qc-ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("rt-qc-ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,r,s=this.originalMousePosition,a=this.axis,o=e.pageX-s.left||0,n=e.pageY-s.top||0,l=this._change[a];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,n]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,r,s,a,o,n,l,c=this.options,h=this;return this._helper&&(s=(r=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:h.sizeDiff.height,a=r?0:h.sizeDiff.width,o={width:h.helper.width()-a,height:h.helper.height()-s},n=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,l=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(o,{top:l,left:n})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("rt-qc-ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,r,s,a,o=this.options;a={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,r=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),r>a.minHeight&&(a.minHeight=r),a.maxWidth>i&&(a.maxWidth=i),a.maxHeight>s&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,r=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===r&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===r&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,r=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,n=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return a&&(t.width=e.minWidth),o&&(t.height=e.minHeight),r&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),a&&c&&(t.left=n-e.minWidth),r&&c&&(t.left=n-e.maxWidth),o&&h&&(t.top=l-e.minHeight),s&&h&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],r=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(r[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var r=this.originalSize,s=this.originalPosition;return{top:s.top+i,height:r.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,r){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,r]))},sw:function(e,i,r){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,r]))},ne:function(e,i,r){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,r]))},nw:function(e,i,r){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,r]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),r=i.options,s=i._proportionallyResizeElements,a=s.length&&/textarea/i.test(s[0].nodeName),o=a&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,n=a?0:i.sizeDiff.width,l={width:i.size.width-n,height:i.size.height-o},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&t(s[0]).css({width:r.width,height:r.height}),i._updateCache(r),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,r,s,a,o,n,l=t(this).resizable("instance"),c=l.options,h=l.element,u=c.containment,d=u instanceof t?u.get(0):/parent/.test(u)?h.parent().get(0):u;d&&(l.containerElement=t(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,r){i[t]=l._num(e.css("padding"+r))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},r=l.containerOffset,s=l.containerSize.height,a=l.containerSize.width,o=l._hasScroll(d,"left")?d.scrollWidth:a,n=l._hasScroll(d)?d.scrollHeight:s,l.parentData={element:d,left:r.left,top:r.top,width:o,height:n}))},resize:function(e){var i,r,s,a,o=t(this).resizable("instance"),n=o.options,l=o.containerOffset,c=o.position,h=o._aspectRatio||e.shiftKey,u={top:0,left:0},d=o.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),c.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-u.left),h&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.position.left=n.helper?l.left:0),c.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),h&&(o.size.width=o.size.height*o.aspectRatio,p=!1),o.position.top=o._helper?l.top:0),s=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),s&&a?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-u.left:o.offset.left-l.left)),r=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-u.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,h&&(o.size.height=o.size.width/o.aspectRatio,p=!1)),r+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-r,h&&(o.size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,r=e.containerOffset,s=e.containerPosition,a=e.containerElement,o=t(e.helper),n=o.offset(),l=o.outerWidth()-e.sizeDiff.width,c=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(a.css("position"))&&t(this).css({left:n.left-s.left-r.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(a.css("position"))&&t(this).css({left:n.left-s.left-r.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("rt-qc-ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var r=t(this).resizable("instance"),s=r.options,a=r.originalSize,o=r.originalPosition,n={height:r.size.height-a.height||0,width:r.size.width-a.width||0,top:r.position.top-o.top||0,left:r.position.left-o.left||0};t(s.alsoResize).each((function(){var e=t(this),r=t(this).data("rt-qc-ui-resizable-alsoresize"),s={},a=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,(function(t,e){var i=(r[e]||0)+(n[e]||0);i&&i>=0&&(s[e]=i||null)})),e.css(s)}))},stop:function(){t(this).removeData("rt-qc-ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"rt-qc-ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),r=i.options,s=i.size,a=i.originalSize,o=i.originalPosition,n=i.axis,l="number"==typeof r.grid?[r.grid,r.grid]:r.grid,c=l[0]||1,h=l[1]||1,u=Math.round((s.width-a.width)/c)*c,d=Math.round((s.height-a.height)/h)*h,p=a.width+u,f=a.height+d,g=r.maxWidth&&p>r.maxWidth,_=r.maxHeight&&f>r.maxHeight,C=r.minWidth&&r.minWidth>p,L=r.minHeight&&r.minHeight>f;r.grid=l,C&&(p+=c),L&&(f+=h),g&&(p-=c),_&&(f-=h),/^(se|s|e)$/.test(n)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(n)?(i.size.width=p,i.size.height=f,i.position.top=o.top-d):/^(sw)$/.test(n)?(i.size.width=p,i.size.height=f,i.position.left=o.left-u):((0>=f-h||0>=p-c)&&(e=i._getPaddingPlusBorderDimensions(this)),f-h>0?(i.size.height=f,i.position.top=o.top-d):(f=h-e.height,i.size.height=f,i.position.top=o.top+a.height-f),p-c>0?(i.size.width=p,i.position.left=o.left-u):(p=c-e.width,i.size.width=p,i.position.left=o.left+a.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("rt-qc-ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"rt-qc-ui-selectee"),e.selectees.each((function(){var i=t(this),r=i.offset(),s={left:r.left-e.elementPos.left,top:r.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.top+i.outerHeight(),startselected:!1,selected:i.hasClass("rt-qc-ui-selected"),selecting:i.hasClass("rt-qc-ui-selecting"),unselecting:i.hasClass("rt-qc-ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"rt-qc-ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,r=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(r.filter,this.element[0]),this._trigger("start",e),t(r.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".rt-qc-ui-selected").each((function(){var r=t.data(this,"selectable-item");r.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(r.$element,"rt-qc-ui-selected"),r.selected=!1,i._addClass(r.$element,"rt-qc-ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",e,{unselecting:r.element}))})),t(e.target).parents().addBack().each((function(){var r,s=t.data(this,"selectable-item");return s?(r=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("rt-qc-ui-selected"),i._removeClass(s.$element,r?"rt-qc-ui-unselecting":"rt-qc-ui-selected")._addClass(s.$element,r?"rt-qc-ui-selecting":"rt-qc-ui-unselecting"),s.unselecting=!r,s.selecting=r,s.selected=r,r?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,r=this,s=this.options,a=this.opos[0],o=this.opos[1],n=e.pageX,l=e.pageY;return a>n&&(i=n,n=a,a=i),o>l&&(i=l,l=o,o=i),this.helper.css({left:a,top:o,width:n-a,height:l-o}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),c=!1,h={};i&&i.element!==r.element[0]&&(h.left=i.left+r.elementPos.left,h.right=i.right+r.elementPos.left,h.top=i.top+r.elementPos.top,h.bottom=i.bottom+r.elementPos.top,"touch"===s.tolerance?c=!(h.left>n||a>h.right||h.top>l||o>h.bottom):"fit"===s.tolerance&&(c=h.left>a&&n>h.right&&h.top>o&&l>h.bottom),c?(i.selected&&(r._removeClass(i.$element,"rt-qc-ui-selected"),i.selected=!1),i.unselecting&&(r._removeClass(i.$element,"rt-qc-ui-unselecting"),i.unselecting=!1),i.selecting||(r._addClass(i.$element,"rt-qc-ui-selecting"),i.selecting=!0,r._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(r._removeClass(i.$element,"rt-qc-ui-selecting"),i.selecting=!1,r._addClass(i.$element,"rt-qc-ui-selected"),i.selected=!0):(r._removeClass(i.$element,"rt-qc-ui-selecting"),i.selecting=!1,i.startselected&&(r._addClass(i.$element,"rt-qc-ui-unselecting"),i.unselecting=!0),r._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(r._removeClass(i.$element,"rt-qc-ui-selected"),i.selected=!1,r._addClass(i.$element,"rt-qc-ui-unselecting"),i.unselecting=!0,r._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".rt-qc-ui-unselecting",this.element[0]).each((function(){var r=t.data(this,"selectable-item");i._removeClass(r.$element,"rt-qc-ui-unselecting"),r.unselecting=!1,r.startselected=!1,i._trigger("unselected",e,{unselected:r.element})})),t(".rt-qc-ui-selecting",this.element[0]).each((function(){var r=t.data(this,"selectable-item");i._removeClass(r.$element,"rt-qc-ui-selecting")._addClass(r.$element,"rt-qc-ui-selected"),r.selecting=!1,r.selected=!0,r.startselected=!0,i._trigger("selected",e,{selected:r.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("rt-qc-ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".rt-qc-ui-sortable-handle"),"rt-qc-ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"rt-qc-ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var r=null,s=!1,a=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,a.widgetName+"-item")===a?(r=t(this),!1):void 0})),t.data(e.target,a.widgetName+"-item")===a&&(r=t(e.target)),!r||this.options.handle&&!i&&(t(this.options.handle,r).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s)||(this.currentItem=r,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,r){var s,a,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",o.cursor),this.storedStylesheet=t("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(a)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"rt-qc-ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,r,s,a,o=this.options,n=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-this.document.scrollTop()<o.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<o.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),e.pageX-this.document.scrollLeft()<o.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=(r=this.items[i]).item[0],(a=this._intersectsWithPointer(r))&&r.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==s&&!t.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(e,r),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var r=this,s=this.placeholder.offset(),a=this.options.axis,o={};a&&"x"!==a||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,(function(){r._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"rt-qc-ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&r.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!r.length&&e.key&&r.push(e.key+"="),r.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},i.each((function(){r.push(t(e.item||this).attr(e.attribute||"id")||"")})),r},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,r=this.positionAbs.top,s=r+this.helperProportions.height,a=t.left,o=a+t.width,n=t.top,l=n+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||r+c>n&&l>r+c,d="y"===this.options.axis||e+h>a&&o>e+h,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>a&&o>i-this.helperProportions.width/2&&r+this.helperProportions.height/2>n&&l>s-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!r||!s)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:r&&("down"===r&&e||"up"===r&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){n.push(this)}var r,s,a,o,n=[],l=[],c=this._connectWith();if(c&&e)for(r=c.length-1;r>=0;r--)for(s=(a=t(c[r],this.document[0])).length-1;s>=0;s--)(o=t.data(a[s],this.widgetFullName))&&o!==this&&!o.options.disabled&&l.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".rt-qc-ui-sortable-helper").not(".rt-qc-ui-sortable-placeholder"),o]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".rt-qc-ui-sortable-helper").not(".rt-qc-ui-sortable-placeholder"),this]),r=l.length-1;r>=0;r--)l[r][0].each(i);return t(n)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,r,s,a,o,n,l,c,h=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(r=(s=t(d[i],this.document[0])).length-1;r>=0;r--)(a=t.data(s[r],this.widgetFullName))&&a!==this&&!a.options.disabled&&(u.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));for(i=u.length-1;i>=0;i--)for(o=u[i][1],r=0,c=(n=u[i][0]).length;c>r;r++)(l=t(n[r])).data(this.widgetName+"-item",o),h.push({item:l,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,r,s,a;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(r=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,r.item):r.item,e||(r.width=s.outerWidth(),r.height=s.outerHeight()),a=s.offset(),r.left=a.left,r.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)a=this.containers[i].element.offset(),this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,r.placeholder={element:function(){var r=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+r+">",e.document[0]);return e._addClass(s,"rt-qc-ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"rt-qc-ui-sortable-helper"),"tbody"===r?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===r?e._createTrPlaceholder(e.currentItem,s):"img"===r&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){(!i||r.forcePlaceholderSize)&&(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var r=this;e.children().each((function(){t("<td> </td>",r.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,r,s,a,o,n,l,c,h,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,o=(h=d.floating||this._isFloating(this.currentItem))?"left":"top",n=h?"width":"height",u=h?"pageX":"pageY",r=this.items.length-1;r>=0;r--)t.contains(this.containers[p].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(l=this.items[r].item.offset()[o],c=!1,e[u]-l>this.items[r][n]/2&&(c=!0),s>Math.abs(e[u]-l)&&(s=Math.abs(e[u]-l),a=this.items[r],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,r=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return r.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!r[0].style.width||i.forceHelperSize)&&r.width(this.currentItem.width()),(!r[0].style.height||i.forceHelperSize)&&r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,r,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),("document"===s.containment||"window"===s.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),r="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(r?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(r?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var r="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*r}},_generatePosition:function(e){var i,r,s=this.options,a=e.pageX,o=e.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1],o=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,r=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-s.grid[0]:r+s.grid[0]:r)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:n.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:n.scrollLeft())}},_rearrange:function(t,e,i,r){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!r)}))},_clear:function(t,e){function i(t,e,i){return function(r){i._trigger(t,r,e._uiHash(e))}}this.reverting=!1;var r,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(r in this._storedCSS)("auto"===this._storedCSS[r]||"static"===this._storedCSS[r])&&(this._storedCSS[r]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"rt-qc-ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".rt-qc-ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(s.push((function(t){this._trigger("remove",t,this._uiHash())})),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),r=this.containers.length-1;r>=0;r--)e||s.push(i("deactivate",this,this.containers[r])),this.containers[r].containerCache.over&&(s.push(i("out",this,this.containers[r])),this.containers[r].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(r=0;s.length>r;r++)s[r].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"rt-qc-ui-accordion-header":"rt-qc-ui-corner-top","rt-qc-ui-accordion-header-collapsed":"rt-qc-ui-corner-all","rt-qc-ui-accordion-content":"rt-qc-ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"rt-qc-ui-icon-triangle-1-s",header:"rt-qc-ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("rt-qc-ui-accordion","rt-qc-ui-widget rt-qc-ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,r=this.options.icons;r&&(e=t("<span>"),this._addClass(e,"rt-qc-ui-accordion-header-icon","rt-qc-ui-icon "+r.header),e.prependTo(this.headers),i=this.active.children(".rt-qc-ui-accordion-header-icon"),this._removeClass(i,r.header)._addClass(i,null,r.activeHeader)._addClass(this.headers,"rt-qc-ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"rt-qc-ui-accordion-icons"),this.headers.children(".rt-qc-ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"rt-qc-ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,r=this.headers.length,s=this.headers.index(e.target),a=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(s+1)%r];break;case i.LEFT:case i.UP:a=this.headers[(s-1+r)%r];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[r-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),t(a).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".rt-qc-ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"rt-qc-ui-accordion-header rt-qc-ui-accordion-header-collapsed","rt-qc-ui-state-default"),this.panels=this.headers.next().filter(":not(.rt-qc-ui-accordion-content-active)").hide(),this._addClass(this.panels,"rt-qc-ui-accordion-content","rt-qc-ui-helper-reset rt-qc-ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,r=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"rt-qc-ui-accordion-header-active","rt-qc-ui-state-active")._removeClass(this.active,"rt-qc-ui-accordion-header-collapsed"),this._addClass(this.active.next(),"rt-qc-ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var e=t(this),i=e.uniqueId().attr("id"),r=e.next(),s=r.uniqueId().attr("id");e.attr("aria-controls",s),r.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===r?(e=s.height(),this.element.siblings(":visible").each((function(){var i=t(this),r=i.css("position");"absolute"!==r&&"fixed"!==r&&(e-=i.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===r&&(e=0,this.headers.next().each((function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()})).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,r,s=this.options,a=this.active,o=t(e.currentTarget),n=o[0]===a[0],l=n&&s.collapsible,c=l?t():o.next(),h=a.next(),u={oldHeader:a,oldPanel:h,newHeader:l?t():o,newPanel:c};e.preventDefault(),n&&!s.collapsible||!1===this._trigger("beforeActivate",e,u)||(s.active=!l&&this.headers.index(o),this.active=n?t():o,this._toggle(u),this._removeClass(a,"rt-qc-ui-accordion-header-active","rt-qc-ui-state-active"),s.icons&&(i=a.children(".rt-qc-ui-accordion-header-icon"),this._removeClass(i,null,s.icons.activeHeader)._addClass(i,null,s.icons.header)),n||(this._removeClass(o,"rt-qc-ui-accordion-header-collapsed")._addClass(o,"rt-qc-ui-accordion-header-active","rt-qc-ui-state-active"),s.icons&&(r=o.children(".rt-qc-ui-accordion-header-icon"),this._removeClass(r,null,s.icons.header)._addClass(r,null,s.icons.activeHeader)),this._addClass(o.next(),"rt-qc-ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,r=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=r,this.options.animate?this._animate(i,r,e):(r.hide(),i.show(),this._toggleComplete(e)),r.attr({"aria-hidden":"true"}),r.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&r.length?r.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var r,s,a,o=this,n=0,l=t.css("box-sizing"),c=t.length&&(!e.length||t.index()<e.index()),h=this.options.animate||{},u=c&&h.down||h,d=function(){o._toggleComplete(i)};return"number"==typeof u&&(a=u),"string"==typeof u&&(s=u),s=s||u.easing||h.easing,a=a||u.duration||h.duration,e.length?t.length?(r=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:s,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(n+=i.now):"content"!==o.options.heightStyle&&(i.now=Math.round(r-e.outerHeight()-n),n=0)}})):e.animate(this.hideProps,a,s,d):t.animate(this.showProps,a,s,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"rt-qc-ui-accordion-content-active"),this._removeClass(i,"rt-qc-ui-accordion-header-active")._addClass(i,"rt-qc-ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"rt-qc-ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("rt-qc-ui-menu","rt-qc-ui-widget rt-qc-ui-widget-content"),this._on({"mousedown .rt-qc-ui-menu-item":function(t){t.preventDefault()},"click .rt-qc-ui-menu-item":function(e){var i=t(e.target),r=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".rt-qc-ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".rt-qc-ui-menu").length?this.expand(e):!this.element.is(":focus")&&r.closest(".rt-qc-ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".rt-qc-ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .rt-qc-ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".rt-qc-ui-menu-item"),r=t(e.currentTarget);i[0]===r[0]&&(this._removeClass(r.siblings().children(".rt-qc-ui-state-active"),null,"rt-qc-ui-state-active"),this.focus(e,r))}},mouseleave:"collapseAll","mouseleave .rt-qc-ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay((function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".rt-qc-ui-menu-item").removeAttr("role aria-disabled").children(".rt-qc-ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".rt-qc-ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("rt-qc-ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var i,r,s,a,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".rt-qc-ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,r=this.previousFilter||"",a=!1,s=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),s===r?a=!0:s=r+s,i=this._filterMenuItems(s),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".rt-qc-ui-menu-item"):i).length||(s=String.fromCharCode(e.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(e,i),this.previousFilter=s,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".rt-qc-ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,r,s,a=this,o=this.options.icons.submenu,n=this.element.find(this.options.menus);this._toggleClass("rt-qc-ui-menu-icons",null,!!this.element.find(".rt-qc-ui-icon").length),i=n.filter(":not(.rt-qc-ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.prev(),r=t("<span>").data("rt-qc-ui-menu-submenu-caret",!0);a._addClass(r,"rt-qc-ui-menu-icon","rt-qc-ui-icon "+o),i.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"rt-qc-ui-menu","rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-front"),(e=n.add(this.element).find(this.options.items)).not(".rt-qc-ui-menu-item").each((function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"rt-qc-ui-menu-divider","rt-qc-ui-widget-content")})),s=(r=e.not(".rt-qc-ui-menu-item, .rt-qc-ui-menu-divider")).children().not(".rt-qc-ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"rt-qc-ui-menu-item")._addClass(s,"rt-qc-ui-menu-item-wrapper"),e.filter(".rt-qc-ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".rt-qc-ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t)},focus:function(t,e){var i,r,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),r=this.active.children(".rt-qc-ui-menu-item-wrapper"),this._addClass(r,null,"rt-qc-ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),s=this.active.parent().closest(".rt-qc-ui-menu-item").children(".rt-qc-ui-menu-item-wrapper"),this._addClass(s,null,"rt-qc-ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".rt-qc-ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,r,s,a,o,n;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-r,a=this.activeMenu.scrollTop(),o=this.activeMenu.height(),n=e.outerHeight(),0>s?this.activeMenu.scrollTop(a+s):s+n>o&&this.activeMenu.scrollTop(a+s-o+n))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".rt-qc-ui-menu-item-wrapper"),null,"rt-qc-ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".rt-qc-ui-menu").not(e.parents(".rt-qc-ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay((function(){var r=i?this.element:t(e&&e.target).closest(this.element.find(".rt-qc-ui-menu"));r.length||(r=this.element),this._close(r),this.blur(e),this._removeClass(r.find(".rt-qc-ui-state-active"),null,"rt-qc-ui-state-active"),this.activeMenu=r}),this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".rt-qc-ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".rt-qc-ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".rt-qc-ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".rt-qc-ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".rt-qc-ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".rt-qc-ui-menu-item").length},_move:function(t,e,i){var r;this.active&&(r="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".rt-qc-ui-menu-item").eq(-1):this.active[t+"All"](".rt-qc-ui-menu-item").eq(0)),r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[e]()),this.focus(i,r)},nextPage:function(e){var i,r,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,s=this.element.height(),this.active.nextAll(".rt-qc-ui-menu-item").each((function(){return 0>(i=t(this)).offset().top-r-s})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,r,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,s=this.element.height(),this.active.prevAll(".rt-qc-ui-menu-item").each((function(){return(i=t(this)).offset().top-r+s>0})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".rt-qc-ui-menu-item");var i={item:this.active};this.active.has(".rt-qc-ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".rt-qc-ui-menu-item").filter((function(){return r.test(t.trim(t(this).children(".rt-qc-ui-menu-item-wrapper").text()))}))}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,r,s=this.element[0].nodeName.toLowerCase(),a="textarea"===s,o="input"===s;this.isMultiLine=a||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this._addClass("rt-qc-ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,r=!0,void(i=!0);e=!1,r=!1,i=!1;var a=t.ui.keyCode;switch(s.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",s);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case a.UP:e=!0,this._keyEvent("previous",s);break;case a.DOWN:e=!0,this._keyEvent("next",s);break;case a.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case a.TAB:this.menu.active&&this.menu.select(s);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(r){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault());if(!i){var s=t.ui.keyCode;switch(r.keyCode){case s.PAGE_UP:this._move("previousPage",r);break;case s.PAGE_DOWN:this._move("nextPage",r);break;case s.UP:this._keyEvent("previous",r);break;case s.DOWN:this._keyEvent("next",r)}}},input:function(t){return r?(r=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"rt-qc-ui-autocomplete","rt-qc-ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")}))},menufocus:function(e,i){var r,s;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}))):(s=i.item.data("rt-qc-ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),void((r=i.item.attr("aria-label")||s.value)&&t.trim(r).length&&(this.liveRegion.children().hide(),t("<div>").text(r).appendTo(this.liveRegion))))},menuselect:function(e,i){var r=i.item.data("rt-qc-ui-autocomplete-item"),s=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay((function(){this.previous=s,this.selectedItem=r}))),!1!==this._trigger("select",e,{item:r})&&this._value(r.value),this.term=this._value(),this.close(e),this.selectedItem=r}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"rt-qc-ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".rt-qc-ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,r=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,r){r(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){r.xhr&&r.xhr.abort(),r.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!r)&&(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("rt-qc-ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy((function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("rt-qc-ui-autocomplete-loading")}),this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var r=this;t.each(i,(function(t,i){r._renderItemData(e,i)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("rt-qc-ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var r=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,(function(t){return r.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var p,f=/rt-qc-ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".rt-qc-ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".rt-qc-ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("rt-qc-ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".rt-qc-ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,(function(r,s){var a,o={};return s?"controlgroupLabel"===r?((a=e.element.find(s)).each((function(){var e=t(this);e.children(".rt-qc-ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='rt-qc-ui-controlgroup-label-contents'></span>")})),e._addClass(a,null,"rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-state-default"),void(i=i.concat(a.get()))):void(t.fn[r]&&(o=e["_"+r+"Options"]?e["_"+r+"Options"]("middle"):{classes:{}},e.element.find(s).each((function(){var s=t(this),a=s[r]("instance"),n=t.widget.extend({},o);if("button"!==r||!s.parent(".rt-qc-ui-spinner").length){a||(a=s[r]()[r]("instance")),a&&(n.classes=e._resolveClassesValues(n.classes,a)),s[r](n);var l=s[r]("widget");t.data(l[0],"rt-qc-ui-controlgroup-data",a||s[r]("instance")),i.push(l[0])}})))):void 0})),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"rt-qc-ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var i=t(this).data("rt-qc-ui-controlgroup-data");i&&i[e]&&i[e]()}))},_updateCornerClass:function(t,e){var i="rt-qc-ui-corner-top rt-qc-ui-corner-bottom rt-qc-ui-corner-left rt-qc-ui-corner-right rt-qc-ui-corner-all",r=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,r)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,r={classes:{}};return r.classes[e]={middle:"",first:"rt-qc-ui-corner-"+(i?"top":"left"),last:"rt-qc-ui-corner-"+(i?"bottom":"right"),only:"rt-qc-ui-corner-all"}[t],r},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"rt-qc-ui-spinner");return e.classes["rt-qc-ui-spinner-up"]="",e.classes["rt-qc-ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"rt-qc-ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"rt-qc-ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"rt-qc-ui-selectmenu-button-open":"","rt-qc-ui-selectmenu-button-closed":""},first:{"rt-qc-ui-selectmenu-button-open":"rt-qc-ui-corner-"+(e?"top":"tl"),"rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-"+(e?"top":"left")},last:{"rt-qc-ui-selectmenu-button-open":e?"":"rt-qc-ui-corner-tr","rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-"+(e?"bottom":"right")},only:{"rt-qc-ui-selectmenu-button-open":"rt-qc-ui-corner-top","rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var r={};return t.each(e,(function(s){var a=i.options.classes[s]||"";a=t.trim(a.replace(f,"")),r[s]=(a+" "+e[s]).replace(/\s+/g," ")})),r},_setOption:function(t,e){return"direction"===t&&this._removeClass("rt-qc-ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,i=this;this._addClass("rt-qc-ui-controlgroup rt-qc-ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"rt-qc-ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,r){var s=e[r]().data("rt-qc-ui-controlgroup-data");if(s&&i["_"+s.widgetName+"Options"]){var a=i["_"+s.widgetName+"Options"](1===e.length?"only":r);a.classes=i._resolveClassesValues(a.classes,s),s.element[s.widgetName](a)}else i._updateCornerClass(e[r](),r)})),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"rt-qc-ui-checkboxradio-label":"rt-qc-ui-corner-all","rt-qc-ui-checkboxradio-icon":"rt-qc-ui-corner-all"}},_getCreateOptions:function(){var e,i,r=this,s=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){r.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML})),this.originalLabel&&(s.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(s.disabled=e),s},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("rt-qc-ui-checkboxradio","rt-qc-ui-helper-hidden-accessible"),this._addClass(this.label,"rt-qc-ui-checkboxradio-label","rt-qc-ui-button rt-qc-ui-widget"),"radio"===this.type&&this._addClass(this.label,"rt-qc-ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active"),this.icon&&this._addClass(this.icon,null,"rt-qc-ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"rt-qc-ui-state-focus rt-qc-ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"rt-qc-ui-state-focus rt-qc-ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+t.ui.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter((function(){return 0===t(this).form().length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"rt-qc-ui-icon-check rt-qc-ui-state-checked",e)._toggleClass(this.icon,null,"rt-qc-ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"rt-qc-ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(e){var i="rt-qc-ui-icon rt-qc-ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"rt-qc-ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"rt-qc-ui-icon-check rt-qc-ui-state-checked":"rt-qc-ui-icon-blank",this._removeClass(this.icon,null,e?"rt-qc-ui-icon-blank":"rt-qc-ui-icon-check")):i+="rt-qc-ui-icon-blank",this._addClass(this.icon,"rt-qc-ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"rt-qc-ui-icon-check rt-qc-ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"rt-qc-ui-button":"rt-qc-ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("rt-qc-ui-button","rt-qc-ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var r="iconPosition"!==e,s=r?this.options.iconPosition:i,a="top"===s||"bottom"===s;this.icon?r&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"rt-qc-ui-button-icon","rt-qc-ui-icon"),this.options.showLabel||this._addClass("rt-qc-ui-button-icon-only")),r&&this._addClass(this.icon,null,i),this._attachIcon(s),a?(this._addClass(this.icon,null,"rt-qc-ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"rt-qc-ui-button-icon-space")),this._removeClass(this.icon,null,"rt-qc-ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("rt-qc-ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"rt-qc-ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("rt-qc-ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==o(arguments[0])&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(r.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var r,s,a;s="div"===(r=e.nodeName.toLowerCase())||"span"===r,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===r?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" rt-qc-ui-datepicker rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-helper-clearfix rt-qc-ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var r=t(e);i.append=t([]),i.trigger=t([]),r.hasClass(this.markerClassName)||(this._attachments(r,i),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var r,s,a,o=this._get(i,"appendText"),n=this._get(i,"isRTL");i.append&&i.append.remove(),o&&(i.append=t("<span class='"+this._appendClass+"'>"+o+"</span>"),e[n?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(r=this._get(i,"showOn"))||"both"===r)&&e.on("focus",this._showDatepicker),("button"===r||"both"===r)&&(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:s,title:s}):s)),e[n?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,r,s,a=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(i=0,r=0,s=0;t.length>s;s++)t[s].length>i&&(i=t[s].length,r=s);return r},a.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,i){var r=t(e);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,r,s,a){var o,l,c,h,u,d=this._dialogInst;return d||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",d)),n(d.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+h,c/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,r=t(e),s=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&r.removeClass(this.markerClassName).empty(),p===s&&(p=null))},_enableDatepicker:function(e){var i,r,s=t(e),a=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,a.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((r=s.children("."+this._inlineClass)).children().removeClass("rt-qc-ui-state-disabled"),r.find("select.rt-qc-ui-datepicker-month, select.rt-qc-ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,r,s=t(e),a=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,a.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((r=s.children("."+this._inlineClass)).children().addClass("rt-qc-ui-state-disabled"),r.find("select.rt-qc-ui-datepicker-month, select.rt-qc-ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,r){var s,a,o,l,c=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.extend({},c.settings):this._get(c,i):null:(s=i||{},"string"==typeof i&&((s={})[i]=r),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),n(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,r,s,a=t.datepicker._getInst(e.target),o=!0,n=a.dpDiv.is(".rt-qc-ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv))[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,s[0]),(i=t.datepicker._get(a,"onSelect"))?(r=t.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[r,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,n?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,n?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,r,s=t.datepicker._getInst(e.target);return t.datepicker._get(s,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),r=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">r||!i||i.indexOf(r)>-1):void 0},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var r,s,a,o,l,c,h;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(r=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==r&&(t.datepicker._curInst.dpDiv.stop(!0,!0),r&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(a=(s=t.datepicker._get(r,"beforeShow"))?s.apply(e,[e,r]):{})&&(n(r.settings,a),r.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(r),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each((function(){return!(o|="fixed"===t(this).css("position"))})),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,r.dpDiv.empty(),r.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(r),l=t.datepicker._checkOffset(r,l,o),r.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),r.inline||(c=t.datepicker._get(r,"showAnim"),h=t.datepicker._get(r,"duration"),r.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?r.dpDiv.show(c,t.datepicker._get(r,"showOptions"),h):r.dpDiv[c||"show"](c?h:null),t.datepicker._shouldFocusInput(r)&&r.input.trigger("focus"),t.datepicker._curInst=r)))},_updateDatepicker:function(e){this.maxRows=4,p=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,r=this._getNumberOfMonths(e),s=r[1],o=17,n=e.dpDiv.find("."+this._dayOverClass+" a");n.length>0&&a.apply(n.get(0)),e.dpDiv.removeClass("rt-qc-ui-datepicker-multi-2 rt-qc-ui-datepicker-multi-3 rt-qc-ui-datepicker-multi-4").width(""),s>1&&e.dpDiv.addClass("rt-qc-ui-datepicker-multi-"+s).css("width",o*s+"em"),e.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("rt-qc-ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("rt-qc-ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout((function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.rt-qc-ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null}),0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,r){var s=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(r?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(r?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-o:0,i.left-=r&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=r&&i.top===e.input.offset().top+n?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+n):0),i},_findPos:function(e){for(var i,r=this._getInst(e),s=this._get(r,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,r,s,a,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),r=this._get(o,"duration"),s=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[i]||t.effects[i])?o.dpDiv.hide(i,t.datepicker._get(o,"showOptions"),r,s):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?r:null,s),i||s(),this._datepickerShowing=!1,(a=this._get(o,"onClose"))&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".rt-qc-ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),r=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==r)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,r){var s=t(e),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i+("M"===r?this._get(a,"showCurrentAtPos"):0),r),this._updateDatepicker(a))},_gotoToday:function(e){var i,r=t(e),s=this._getInst(r[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(r)},_selectMonthYear:function(e,i,r){var s=t(e),a=this._getInst(s[0]);a["selected"+("M"===r?"Month":"Year")]=a["draw"+("M"===r?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(e,i,r,s){var a,o=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((a=this._getInst(o[0])).selectedDay=a.currentDay=t("a",s).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=r,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var r,s=t(e),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),(r=this._get(a,"onSelect"))?r.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=o(a.input[0])&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,r,s,a=this._get(e,"altField");a&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),r=this._getDate(e),s=this.formatDate(i,r,this._getFormatConfig(e)),t(a).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,r){if(null==e||null==i)throw"Invalid arguments";if(""==(i="object"==o(i)?""+i:i+""))return null;var s,a,n,l,c=0,h=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),d=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,p=(r?r.dayNames:null)||this._defaults.dayNames,f=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,g=(r?r.monthNames:null)||this._defaults.monthNames,_=-1,C=-1,L=-1,m=-1,E=!1,v=function(t){var i=e.length>s+1&&e.charAt(s+1)===t;return i&&s++,i},b=function(t){var e=v(t),r="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=RegExp("^\\d{"+("y"===t?r:1)+","+r+"}"),a=i.substring(c).match(s);if(!a)throw"Missing number at position "+c;return c+=a[0].length,parseInt(a[0],10)},y=function(e,r,s){var a=-1,o=t.map(v(e)?s:r,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(o,(function(t,e){var r=e[1];return i.substr(c,r.length).toLowerCase()===r.toLowerCase()?(a=e[0],c+=r.length,!1):void 0})),-1!==a)return a+1;throw"Unknown name at position "+c},w=function(){if(i.charAt(c)!==e.charAt(s))throw"Unexpected literal at position "+c;c++};for(s=0;e.length>s;s++)if(E)"'"!==e.charAt(s)||v("'")?w():E=!1;else switch(e.charAt(s)){case"d":L=b("d");break;case"D":y("D",d,p);break;case"o":m=b("o");break;case"m":C=b("m");break;case"M":C=y("M",f,g);break;case"y":_=b("y");break;case"@":_=(l=new Date(b("@"))).getFullYear(),C=l.getMonth()+1,L=l.getDate();break;case"!":_=(l=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),C=l.getMonth()+1,L=l.getDate();break;case"'":v("'")?w():E=!0;break;default:w()}if(i.length>c&&(n=i.substr(c),!/^\s+/.test(n)))throw"Extra/unparsed characters found in date: "+n;if(-1===_?_=(new Date).getFullYear():100>_&&(_+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=_?0:-100)),m>-1)for(C=1,L=m;!((a=this._getDaysInMonth(_,C-1))>=L);)C++,L-=a;if((l=this._daylightSavingAdjust(new Date(_,C-1,L))).getFullYear()!==_||l.getMonth()+1!==C||l.getDate()!==L)throw"Invalid date";return l},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var r,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,n=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=t.length>r+1&&t.charAt(r+1)===e;return i&&r++,i},c=function(t,e,i){var r=""+e;if(l(t))for(;i>r.length;)r="0"+r;return r},h=function(t,e,i,r){return l(t)?r[e]:i[e]},u="",d=!1;if(e)for(r=0;t.length>r;r++)if(d)"'"!==t.charAt(r)||l("'")?u+=t.charAt(r):d=!1;else switch(t.charAt(r)){case"d":u+=c("d",e.getDate(),2);break;case"D":u+=h("D",e.getDay(),s,a);break;case"o":u+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",e.getMonth()+1,2);break;case"M":u+=h("M",e.getMonth(),o,n);break;case"y":u+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=t.charAt(r)}return u},_possibleChars:function(t){var e,i="",r=!1,s=function(i){var r=t.length>e+1&&t.charAt(e+1)===i;return r&&e++,r};for(e=0;t.length>e;e++)if(r)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):r=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":r=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),r=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),a=s,o=this._getFormatConfig(t);try{a=this.parseDate(i,r,o)||s}catch(t){r=e?"":r}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=r?a.getDate():0,t.currentMonth=r?a.getMonth():0,t.currentYear=r?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,r){var s=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=r.getFullYear(),a=r.getMonth(),o=r.getDate(),n=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=n.exec(i);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(s,a))}l=n.exec(i)}return new Date(s,a,o)},o=null==i||""===i?r:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?r:s(i):new Date(i.getTime());return(o=o&&"Invalid Date"==""+o?r:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var r=!e,s=t.selectedMonth,a=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),s===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(r?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),r="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(r,-i,"M")},next:function(){t.datepicker._adjustDate(r,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(r)},selectDay:function(){return t.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(r,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var e,i,r,s,a,o,n,l,c,h,u,d,p,f,g,_,C,L,m,E,v,b,y,w,x,Q,k,T,R,A,S,O,D,I,N,P,M,q,B,H=new Date,U=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),F=this._get(t,"isRTL"),z=this._get(t,"showButtonPanel"),W=this._get(t,"hideIfNoPrevNext"),j=this._get(t,"navigationAsDateFormat"),G=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),K=this._get(t,"stepMonths"),Y=1!==G[0]||1!==G[1],$=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),J=t.drawMonth-V,tt=t.drawYear;if(0>J&&(J+=12,tt--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-G[0]*G[1]+1,Z.getDate())),e=X&&X>e?X:e;this._daylightSavingAdjust(new Date(tt,J,1))>e;)0>--J&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,i=this._get(t,"prevText"),i=j?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,J-K,1)),this._getFormatConfig(t)):i,r=this._canAdjustMonth(t,-1,tt,J)?"<a class='rt-qc-ui-datepicker-prev rt-qc-ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"e":"w")+"'>"+i+"</span></a>":W?"":"<a class='rt-qc-ui-datepicker-prev rt-qc-ui-corner-all rt-qc-ui-state-disabled' title='"+i+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"e":"w")+"'>"+i+"</span></a>",s=this._get(t,"nextText"),s=j?this.formatDate(s,this._daylightSavingAdjust(new Date(tt,J+K,1)),this._getFormatConfig(t)):s,a=this._canAdjustMonth(t,1,tt,J)?"<a class='rt-qc-ui-datepicker-next rt-qc-ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"w":"e")+"'>"+s+"</span></a>":W?"":"<a class='rt-qc-ui-datepicker-next rt-qc-ui-corner-all rt-qc-ui-state-disabled' title='"+s+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"w":"e")+"'>"+s+"</span></a>",o=this._get(t,"currentText"),n=this._get(t,"gotoCurrent")&&t.currentDay?$:U,o=j?this.formatDate(o,n,this._getFormatConfig(t)):o,l="<button type='button' class='rt-qc-ui-datepicker-close rt-qc-ui-state-default rt-qc-ui-priority-primary rt-qc-ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",c=z?"<div class='rt-qc-ui-datepicker-buttonpane rt-qc-ui-widget-content'>"+(F?l:"")+(this._isInRange(t,n)?"<button type='button' class='rt-qc-ui-datepicker-current rt-qc-ui-state-default rt-qc-ui-priority-secondary rt-qc-ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(F?"":l)+"</div>":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),_=this._get(t,"beforeShowDay"),C=this._get(t,"showOtherMonths"),L=this._get(t,"selectOtherMonths"),m=this._getDefaultDate(t),E="",b=0;G[0]>b;b++){for(y="",this.maxRows=4,w=0;G[1]>w;w++){if(x=this._daylightSavingAdjust(new Date(tt,J,t.selectedDay)),Q=" rt-qc-ui-corner-all",k="",Y){if(k+="<div class='rt-qc-ui-datepicker-group",G[1]>1)switch(w){case 0:k+=" rt-qc-ui-datepicker-group-first",Q=" rt-qc-ui-corner-"+(F?"right":"left");break;case G[1]-1:k+=" rt-qc-ui-datepicker-group-last",Q=" rt-qc-ui-corner-"+(F?"left":"right");break;default:k+=" rt-qc-ui-datepicker-group-middle",Q=""}k+="'>"}for(k+="<div class='rt-qc-ui-datepicker-header rt-qc-ui-widget-header rt-qc-ui-helper-clearfix"+Q+"'>"+(/all|left/.test(Q)&&0===b?F?a:r:"")+(/all|right/.test(Q)&&0===b?F?r:a:"")+this._generateMonthYearHeader(t,J,tt,X,Z,b>0||w>0,f,g)+"</div><table class='rt-qc-ui-datepicker-calendar'><thead><tr>",T=u?"<th class='rt-qc-ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",v=0;7>v;v++)T+="<th scope='col'"+((v+h+6)%7>=5?" class='rt-qc-ui-datepicker-week-end'":"")+"><span title='"+d[R=(v+h)%7]+"'>"+p[R]+"</span></th>";for(k+=T+"</tr></thead><tbody>",A=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,A)),S=(this._getFirstDayOfMonth(tt,J)-h+7)%7,O=Math.ceil((S+A)/7),D=Y&&this.maxRows>O?this.maxRows:O,this.maxRows=D,I=this._daylightSavingAdjust(new Date(tt,J,1-S)),N=0;D>N;N++){for(k+="<tr>",P=u?"<td class='rt-qc-ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(I)+"</td>":"",v=0;7>v;v++)M=_?_.apply(t.input?t.input[0]:null,[I]):[!0,""],B=(q=I.getMonth()!==J)&&!L||!M[0]||X&&X>I||Z&&I>Z,P+="<td class='"+((v+h+6)%7>=5?" rt-qc-ui-datepicker-week-end":"")+(q?" rt-qc-ui-datepicker-other-month":"")+(I.getTime()===x.getTime()&&J===t.selectedMonth&&t._keyEvent||m.getTime()===I.getTime()&&m.getTime()===x.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" rt-qc-ui-state-disabled":"")+(q&&!C?"":" "+M[1]+(I.getTime()===$.getTime()?" "+this._currentClass:"")+(I.getTime()===U.getTime()?" rt-qc-ui-datepicker-today":""))+"'"+(q&&!C||!M[2]?"":" title='"+M[2].replace(/'/g,"'")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(q&&!C?" ":B?"<span class='rt-qc-ui-state-default'>"+I.getDate()+"</span>":"<a class='rt-qc-ui-state-default"+(I.getTime()===U.getTime()?" rt-qc-ui-state-highlight":"")+(I.getTime()===$.getTime()?" rt-qc-ui-state-active":"")+(q?" rt-qc-ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);k+=P+"</tr>"}++J>11&&(J=0,tt++),y+=k+="</tbody></table>"+(Y?"</div>"+(G[0]>0&&w===G[1]-1?"<div class='rt-qc-ui-datepicker-row-break'></div>":""):"")}E+=y}return E+=c,t._keyEvent=!1,E},_generateMonthYearHeader:function(t,e,i,r,s,a,o,n){var l,c,h,u,d,p,f,g,_=this._get(t,"changeMonth"),C=this._get(t,"changeYear"),L=this._get(t,"showMonthAfterYear"),m="<div class='rt-qc-ui-datepicker-title'>",E="";if(a||!_)E+="<span class='rt-qc-ui-datepicker-month'>"+o[e]+"</span>";else{for(l=r&&r.getFullYear()===i,c=s&&s.getFullYear()===i,E+="<select class='rt-qc-ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;12>h;h++)(!l||h>=r.getMonth())&&(!c||s.getMonth()>=h)&&(E+="<option value='"+h+"'"+(h===e?" selected='selected'":"")+">"+n[h]+"</option>");E+="</select>"}if(L||(m+=E+(!a&&_&&C?"":" ")),!t.yearshtml)if(t.yearshtml="",a||!C)m+="<span class='rt-qc-ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=r?Math.max(f,r.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='rt-qc-ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",m+=t.yearshtml,t.yearshtml=null}return m+=this._get(t,"yearSuffix"),L&&(m+=(!a&&_&&C?"":" ")+E),m+"</div>"},_adjustInstDate:function(t,e,i){var r=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(r,s))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(r,s,a)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),s=i&&i>e?i:e;return r&&s>r?r:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,r){var s=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,r+(0>e?e:s[0]*s[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i,r,s=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),o=null,n=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),r=(new Date).getFullYear(),o=parseInt(i[0],10),n=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=r),i[1].match(/[+\-].*/)&&(n+=r)),(!s||e.getTime()>=s.getTime())&&(!a||e.getTime()<=a.getTime())&&(!o||e.getFullYear()>=o)&&(!n||n>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,r){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==o(e)?e:this._daylightSavingAdjust(new Date(r,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new r,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"rt-qc-ui-dialog":"rt-qc-ui-corner-all","rt-qc-ui-dialog-titlebar":"rt-qc-ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("rt-qc-ui-dialog-content","rt-qc-ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){i._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var r=!1,s=this.uiDialog.siblings(".rt-qc-ui-front:visible").map((function(){return+t(this).css("z-index")})).get(),a=Math.max.apply(null,s);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),r=!0),r&&!i&&this._trigger("focus",e),r},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"rt-qc-ui-dialog","rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),s=i.filter(":last");e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==r[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){s.trigger("focus")})),e.preventDefault()):(this._delay((function(){r.trigger("focus")})),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"rt-qc-ui-dialog-titlebar","rt-qc-ui-widget-header rt-qc-ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".rt-qc-ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"rt-qc-ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"rt-qc-ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"rt-qc-ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"rt-qc-ui-dialog-buttonpane","rt-qc-ui-widget-content rt-qc-ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"rt-qc-ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this._removeClass(this.uiDialog,"rt-qc-ui-dialog-buttons"):(t.each(i,(function(i,r){var s,a;r=t.isFunction(r)?{click:r,text:i}:r,r=t.extend({type:"button"},r),s=r.click,a={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text},delete r.click,delete r.icon,delete r.iconPosition,delete r.showLabel,delete r.icons,"boolean"==typeof r.text&&delete r.text,t("<button></button>",r).button(a).appendTo(e.uiButtonSet).on("click",(function(){s.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"rt-qc-ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,r=this.options;this.uiDialog.draggable({cancel:".rt-qc-ui-dialog-content, .rt-qc-ui-dialog-titlebar-close",handle:".rt-qc-ui-dialog-titlebar",containment:"document",start:function(r,s){i._addClass(t(this),"rt-qc-ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",r,e(s))},drag:function(t,r){i._trigger("drag",t,e(r))},stop:function(s,a){var o=a.offset.left-i.document.scrollLeft(),n=a.offset.top-i.document.scrollTop();r.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(n>=0?"+":"")+n,of:i.window},i._removeClass(t(this),"rt-qc-ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,r=this.options,s=r.resizable,a=this.uiDialog.css("position"),o="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".rt-qc-ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:r.maxWidth,maxHeight:r.maxHeight,minWidth:r.minWidth,minHeight:this._minHeight(),handles:o,start:function(r,s){i._addClass(t(this),"rt-qc-ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",r,e(s))},resize:function(t,r){i._trigger("resize",t,e(r))},stop:function(s,a){var o=i.uiDialog.offset(),n=o.left-i.document.scrollLeft(),l=o.top-i.document.scrollTop();r.height=i.uiDialog.height(),r.width=i.uiDialog.width(),r.position={my:"left top",at:"left"+(n>=0?"+":"")+n+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(t(this),"rt-qc-ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,e(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("rt-qc-ui-dialog-instances");return t||(t=[],this.document.data("rt-qc-ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,r=!1,s={};t.each(e,(function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(r=!0),t in i.resizableRelatedOptions&&(s[t]=e)})),r&&(this._size(),this._position()),this.uiDialog.is(":data(rt-qc-ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,i){var r,s,a=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((r=a.is(":data(rt-qc-ui-draggable)"))&&!i&&a.draggable("destroy"),!r&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((s=a.is(":data(rt-qc-ui-resizable)"))&&!i&&a.resizable("destroy"),s&&"string"==typeof i&&a.resizable("option","handles",i),s||!1===i||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".rt-qc-ui-dialog-title")))},_size:function(){var t,e,i,r=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),r.minWidth>r.width&&(r.width=r.minWidth),t=this.uiDialog.css({height:"auto",width:r.width}).outerHeight(),e=Math.max(0,r.minHeight-t),i="number"==typeof r.maxHeight?Math.max(0,r.maxHeight-t):"none","auto"===r.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,r.height-t)),this.uiDialog.is(":data(rt-qc-ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".rt-qc-ui-dialog").length||!!t(e.target).closest(".rt-qc-ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay((function(){e=!1})),this.document.data("rt-qc-ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"rt-qc-ui-widget-overlay rt-qc-ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("rt-qc-ui-dialog-overlays",(this.document.data("rt-qc-ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("rt-qc-ui-dialog-overlays")-1;t?this.document.data("rt-qc-ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("rt-qc-ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"rt-qc-ui-progressbar":"rt-qc-ui-corner-all","rt-qc-ui-progressbar-value":"rt-qc-ui-corner-left","rt-qc-ui-progressbar-complete":"rt-qc-ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("rt-qc-ui-progressbar","rt-qc-ui-widget rt-qc-ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"rt-qc-ui-progressbar-value","rt-qc-ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"rt-qc-ui-progressbar-complete",null,e===this.options.max)._toggleClass("rt-qc-ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"rt-qc-ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"rt-qc-ui-selectmenu-button-open":"rt-qc-ui-corner-top","rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-all"},disabled:null,icons:{button:"rt-qc-ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"rt-qc-ui-selectmenu-button rt-qc-ui-selectmenu-button-closed","rt-qc-ui-button rt-qc-ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"rt-qc-ui-selectmenu-icon","rt-qc-ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(r).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){i._rendered||i._refreshMenu()}))},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"rt-qc-ui-selectmenu-menu","rt-qc-ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"rt-qc-ui-menu":"rt-qc-ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("rt-qc-ui-selectmenu-item"),t)},focus:function(t,i){var r=i.item.data("rt-qc-ui-selectmenu-item");null!=e.focusIndex&&r.index!==e.focusIndex&&(e._trigger("focus",t,{item:r}),e.isOpen||e._select(r,t)),e.focusIndex=r.index,e.button.attr("aria-activedescendant",e.menuItems.eq(r.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("rt-qc-ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".rt-qc-ui-selectmenu-optgroup").find(".rt-qc-ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("rt-qc-ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".rt-qc-ui-state-active"),null,"rt-qc-ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"rt-qc-ui-selectmenu-text"),i},_renderMenu:function(e,i){var r=this,s="";t.each(i,(function(i,a){var o;a.optgroup!==s&&(o=t("<li>",{text:a.optgroup}),r._addClass(o,"rt-qc-ui-selectmenu-optgroup","rt-qc-ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" rt-qc-ui-state-disabled":"")),o.appendTo(e),s=a.optgroup),r._renderItemData(e,a)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("rt-qc-ui-selectmenu-item",e)},_renderItem:function(e,i){var r=t("<li>"),s=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"rt-qc-ui-state-disabled"),this._setText(s,i.label),r.append(s).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,r,s=".rt-qc-ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.rt-qc-ui-state-disabled)"),(r="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".rt-qc-ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("rt-qc-ui-state-disabled")||this._select(e.data("rt-qc-ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.rt-qc-ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"rt-qc-ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".rt-qc-ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"rt-qc-ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"rt-qc-ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"rt-qc-ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return!1===t?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,r=[];e.each((function(e,s){r.push(i._parseOption(t(s),e))})),this.items=r},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"rt-qc-ui-slider":"rt-qc-ui-corner-all","rt-qc-ui-slider-handle":"rt-qc-ui-corner-all","rt-qc-ui-slider-range":"rt-qc-ui-corner-all rt-qc-ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("rt-qc-ui-slider rt-qc-ui-slider-"+this.orientation,"rt-qc-ui-widget rt-qc-ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,r=this.options,s=this.element.find(".rt-qc-ui-slider-handle"),a="<span tabindex='0'></span>",o=[];for(i=r.values&&r.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),e=s.length;i>e;e++)o.push(a);this.handles=s.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"rt-qc-ui-slider-handle","rt-qc-ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("rt-qc-ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"rt-qc-ui-slider-range-min rt-qc-ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"rt-qc-ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"rt-qc-ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,r,s,a,o,n,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var i=Math.abs(r-c.values(e));(s>i||s===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(s=i,a=t(this),o=e)})),!1!==this._start(e,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(a,null,"rt-qc-ui-state-active"),a.trigger("focus"),n=a.offset(),l=!t(e.target).parents().addBack().is(".rt-qc-ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-n.left-a.width()/2,top:e.pageY-n.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("rt-qc-ui-state-hover")||this._slide(e,o,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"rt-qc-ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,r,s,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=i/e)>1&&(r=1),0>r&&(r=0),"vertical"===this.orientation&&(r=1-r),s=this._valueMax()-this._valueMin(),a=this._valueMin()+r*s,this._trimAlignValue(a)},_uiHash:function(t,e,i){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var r,s=this.value(),a=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(r,i):Math.max(r,i)),a[e]=i),i!==s&&!1!==this._trigger("slide",t,this._uiHash(e,i,a))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var r,s,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,s=arguments[0],a=0;r.length>a;a+=1)r[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,i){var r,s=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("rt-qc-ui-slider-horizontal rt-qc-ui-slider-vertical")._addClass("rt-qc-ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=s-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),r=0;i.length>r;r+=1)i[r]=this._trimAlignValue(i[r]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,r=t-i;return 2*Math.abs(i)>=e&&(r+=i>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,r,s,a,o=this.options.range,n=this.options,l=this,c=!this._animateOff&&n.animate,h={};this._hasMultipleValues()?this.handles.each((function(r){i=(l.values(r)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](h,n.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===r&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},n.animate),1===r&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:n.animate})):(0===r&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},n.animate),1===r&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:n.animate}))),e=i})):(r=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(r-s)/(a-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](h,n.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},n.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},n.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},n.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},n.animate))},_handleEvents:{keydown:function(e){var i,r,s,a=t(e.target).data("rt-qc-ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"rt-qc-ui-state-active"),!1===this._start(e,a)))return}switch(s=this.options.step,i=r=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;r=this._trimAlignValue(i+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;r=this._trimAlignValue(i-s)}this._slide(e,a,r)},keyup:function(e){var i=t(e.target).data("rt-qc-ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"rt-qc-ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"rt-qc-ui-spinner":"rt-qc-ui-corner-all","rt-qc-ui-spinner-down":"rt-qc-ui-corner-br","rt-qc-ui-spinner-up":"rt-qc-ui-corner-tr"},culture:null,icons:{down:"rt-qc-ui-icon-triangle-1-s",up:"rt-qc-ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],(function(t,r){var s=i.attr(r);null!=s&&s.length&&(e[r]=s)})),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(t)}),100),t.preventDefault()}},"mousedown .rt-qc-ui-spinner-button":function(e){function i(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=r,this._delay((function(){this.previous=r})))}var r;r=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("rt-qc-ui-spinner-up")?1:-1,e)},"mouseup .rt-qc-ui-spinner-button":"_stop","mouseenter .rt-qc-ui-spinner-button":function(e){return t(e.currentTarget).hasClass("rt-qc-ui-state-active")?!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("rt-qc-ui-spinner-up")?1:-1,e):void 0},"mouseleave .rt-qc-ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"rt-qc-ui-spinner","rt-qc-ui-widget rt-qc-ui-widget-content"),this._addClass("rt-qc-ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"rt-qc-ui-button":""}}),this._removeClass(this.buttons,"rt-qc-ui-corner-all"),this._addClass(this.buttons.first(),"rt-qc-ui-spinner-button rt-qc-ui-spinner-up"),this._addClass(this.buttons.last(),"rt-qc-ui-spinner-button rt-qc-ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,r=t.ui.keyCode;switch(e.keyCode){case r.UP:return this._repeat(null,1,e),!0;case r.DOWN:return this._repeat(null,-1,e),!0;case r.PAGE_UP:return this._repeat(null,i.page,e),!0;case r.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,e,i)}),t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,r=this.options;return i=t-(e=null!==r.min?r.min:0),t=e+(i=Math.round(i/r.step)*r.step),t=parseFloat(t.toFixed(this._precision())),null!==r.max&&t>r.max?r.max:null!==r.min&&r.min>t?r.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,r,s;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(r=this.buttons.first().find(".rt-qc-ui-icon"),this._removeClass(r,null,this.options.icons.up),this._addClass(r,null,e.up),s=this.buttons.last().find(".rt-qc-ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"rt-qc-ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:l((function(t){this._super(t)})),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:l((function(t){this._stepUp(t)})),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:l((function(t){this._stepDown(t)})),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:l((function(t){this._stepUp((t||1)*this.options.page)})),pageDown:l((function(t){this._stepDown((t||1)*this.options.page)})),value:function(t){return arguments.length?void l(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"rt-qc-ui-tabs":"rt-qc-ui-corner-all","rt-qc-ui-tabs-nav":"rt-qc-ui-corner-all","rt-qc-ui-tabs-panel":"rt-qc-ui-corner-bottom","rt-qc-ui-tabs-tab":"rt-qc-ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,r;i=e.href.replace(t,""),r=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(t){}try{r=decodeURIComponent(r)}catch(t){}return e.hash.length>1&&i===r}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("rt-qc-ui-tabs","rt-qc-ui-widget rt-qc-ui-widget-content"),this._toggleClass("rt-qc-ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".rt-qc-ui-state-disabled"),(function(t){return e.tabs.index(t)})))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return null===e&&(r&&this.tabs.each((function(i,s){return t(s).attr("aria-controls")===r?(e=i,!1):void 0})),null===e&&(e=this.tabs.index(this.tabs.filter(".rt-qc-ui-tabs-active"))),(null===e||-1===e)&&(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0),!i&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),r=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:r++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,r--;break;case t.ui.keyCode.END:r=this.anchors.length-1;break;case t.ui.keyCode.HOME:r=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r!==this.options.active&&r);default:return}e.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,s),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",r)}),this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function r(){return e>s&&(e=0),0>e&&(e=s),e}for(var s=this.tabs.length-1;-1!==t.inArray(r(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("rt-qc-ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".rt-qc-ui-state-disabled"),(function(t){return i.index(t)})),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,r=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"rt-qc-ui-tabs-nav","rt-qc-ui-helper-reset rt-qc-ui-helper-clearfix rt-qc-ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(e){t(this).is(".rt-qc-ui-state-disabled")&&e.preventDefault()})).on("focus"+this.eventNamespace,".rt-qc-ui-tabs-anchor",(function(){t(this).closest("li").is(".rt-qc-ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"rt-qc-ui-tabs-tab","rt-qc-ui-state-default"),this.anchors=this.tabs.map((function(){return t("a",this)[0]})).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"rt-qc-ui-tabs-anchor"),this.panels=t(),this.anchors.each((function(i,r){var s,a,o,n=t(r).uniqueId().attr("id"),l=t(r).closest("li"),c=l.attr("aria-controls");e._isLocal(r)?(o=(s=r.hash).substring(1),a=e.element.find(e._sanitizeSelector(s))):(s="#"+(o=l.attr("aria-controls")||t({}).uniqueId()[0].id),(a=e.element.find(s)).length||(a=e._createPanel(o)).insertAfter(e.panels[i-1]||e.tablist),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&l.data("rt-qc-ui-tabs-aria-controls",c),l.attr({"aria-controls":o,"aria-labelledby":n}),a.attr("aria-labelledby",n)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"rt-qc-ui-tabs-panel","rt-qc-ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("rt-qc-ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,r,s;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),s=0;r=this.tabs[s];s++)i=t(r),!0===e||-1!==t.inArray(s,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"rt-qc-ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"rt-qc-ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,r=this.element.parent();"fill"===e?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var e=t(this),r=e.css("position");"absolute"!==r&&"fixed"!==r&&(i-=e.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=t(this).outerHeight(!0)})),this.panels.each((function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each((function(){i=Math.max(i,t(this).height("").height())})).height(i))},_eventHandler:function(e){var i=this.options,r=this.active,s=t(e.currentTarget).closest("li"),a=s[0]===r[0],o=a&&i.collapsible,n=o?t():this._getPanelForTab(s),l=r.length?this._getPanelForTab(r):t(),c={oldTab:r,oldPanel:l,newTab:o?t():s,newPanel:n};e.preventDefault(),s.hasClass("rt-qc-ui-state-disabled")||s.hasClass("rt-qc-ui-tabs-loading")||this.running||a&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!o&&this.tabs.index(s),this.active=a?t():s,this.xhr&&this.xhr.abort(),l.length||n.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),n.length&&this.load(this.tabs.index(s),e),this._toggle(e,c))},_toggle:function(e,i){function r(){a.running=!1,a._trigger("activate",e,i)}function s(){a._addClass(i.newTab.closest("li"),"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),o.length&&a.options.show?a._show(o,a.options.show,r):(o.show(),r())}var a=this,o=i.newPanel,n=i.oldPanel;this.running=!0,n.length&&this.options.hide?this._hide(n,this.options.hide,(function(){a._removeClass(i.oldTab.closest("li"),"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),s()})):(this._removeClass(i.oldTab.closest("li"),"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),n.hide(),s()),n.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&n.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),o.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,r=this._findActive(e);r[0]!==this.active[0]&&(r.length||(r=this.active),i=r.find(".rt-qc-ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){t.data(this,"rt-qc-ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var e=t(this),i=e.data("rt-qc-ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("rt-qc-ui-tabs-aria-controls"):e.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,(function(t){return t!==e?t:null})):t.map(this.tabs,(function(t,i){return i!==e?i:null}))),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var r=this,s=this.tabs.eq(e),a=s.find(".rt-qc-ui-tabs-anchor"),o=this._getPanelForTab(s),n={tab:s,panel:o},l=function(t,e){"abort"===e&&r.panels.stop(!1,!0),r._removeClass(s,"rt-qc-ui-tabs-loading"),o.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr};this._isLocal(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,i,n)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"rt-qc-ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done((function(t,e,s){setTimeout((function(){o.html(t),r._trigger("load",i,n),l(s,e)}),1)})).fail((function(t,e){setTimeout((function(){l(t,e)}),1)}))))},_ajaxSettings:function(e,i,r){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,a){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:a},r))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"rt-qc-ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"rt-qc-ui-tooltip":"rt-qc-ui-corner-all rt-qc-ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var r=(e.attr("aria-describedby")||"").split(/\s+/);r.push(i),e.data("rt-qc-ui-tooltip-id",i).attr("aria-describedby",t.trim(r.join(" ")))},_removeDescribedBy:function(e){var i=e.data("rt-qc-ui-tooltip-id"),r=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(i,r);-1!==s&&r.splice(s,1),e.removeData("rt-qc-ui-tooltip-id"),(r=t.trim(r.join(" ")))?e.attr("aria-describedby",r):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"rt-qc-ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var r=this;this._super(e,i),"content"===e&&t.each(this.tooltips,(function(t,e){r._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(i,r){var s=t.Event("blur");s.target=s.currentTarget=r.element[0],e.close(s,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var e=t(this);return e.is("[title]")?e.data("rt-qc-ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("rt-qc-ui-tooltip-title")&&e.attr("title",e.data("rt-qc-ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var i=this,r=t(e?e.target:this.element).closest(this.options.items);r.length&&!r.data("rt-qc-ui-tooltip-id")&&(r.attr("title")&&r.data("rt-qc-ui-tooltip-title",r.attr("title")),r.data("rt-qc-ui-tooltip-open",!0),e&&"mouseover"===e.type&&r.parents().each((function(){var e,r=t(this);r.data("rt-qc-ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),r.attr("title")&&(r.uniqueId(),i.parents[this.id]={element:this,title:r.attr("title")},r.attr("title",""))})),this._registerCloseHandlers(e,r),this._updateContent(r,e))},_updateContent:function(t,e){var i,r=this.options.content,s=this,a=e?e.type:null;return"string"==typeof r||r.nodeType||r.jquery?this._open(e,t,r):void((i=r.call(t[0],(function(i){s._delay((function(){t.data("rt-qc-ui-tooltip-open")&&(e&&(e.type=a),this._open(e,t,i))}))})))&&this._open(e,t,i))},_open:function(e,i,r){function s(t){c.of=t,o.is(":hidden")||o.position(c)}var a,o,n,l,c=t.extend({},this.options.position);if(r){if(a=this._find(i))return void a.tooltip.find(".rt-qc-ui-tooltip-content").html(r);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),o=a.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".rt-qc-ui-tooltip-content").html(r),this.liveRegion.children().hide(),(l=t("<div>").html(o.find(".rt-qc-ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:s}),s(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval((function(){o.is(":visible")&&(s(c.of),clearInterval(n))}),t.fx.interval)),this._trigger("open",e,{tooltip:o})}},_registerCloseHandlers:function(e,i){var r={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var r=t.Event(e);r.currentTarget=i[0],this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(r.mouseleave="close"),e&&"focusin"!==e.type||(r.focusout="close"),this._on(!0,i,r)},close:function(e){var i,r=this,s=t(e?e.currentTarget:this.element),a=this._find(s);return a?(i=a.tooltip,void(a.closing||(clearInterval(this.delayedShow),s.data("rt-qc-ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("rt-qc-ui-tooltip-title")),this._removeDescribedBy(s),a.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){r._removeTooltip(t(this))})),s.removeData("rt-qc-ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,i){t(i.element).attr("title",i.title),delete r.parents[e]})),a.closing=!0,this._trigger("close",e,{tooltip:i}),a.hiding||(a.closing=!1)))):void s.removeData("rt-qc-ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),r=t("<div>").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(r,"rt-qc-ui-tooltip-content"),this._addClass(i,"rt-qc-ui-tooltip","rt-qc-ui-widget rt-qc-ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[s]={element:e,tooltip:i}},_find:function(t){var e=t.data("rt-qc-ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".rt-qc-ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,(function(i,r){var s=t.Event("blur"),a=r.element;s.target=s.currentTarget=a[0],e.close(s,!0),t("#"+i).remove(),a.data("rt-qc-ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("rt-qc-ui-tooltip-title")),a.removeData("rt-qc-ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip;var g="rt-qc-ui-effects-",_="rt-qc-ui-effects-style",C="rt-qc-ui-effects-animated",L=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var r=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:0>t?0:t>r.max?r.max:t)}function r(i){var r=c(),s=r._rgba=[];return i=i.toLowerCase(),f(l,(function(t,a){var o,n=a.re.exec(i),l=n&&a.parse(n),c=a.space||"rgba";return l?(o=r[c](l),r[h[c].cache]=o[h[c].cache],s=r._rgba=o._rgba,!1):e})),s.length?("0,0,0,0"===s.join()&&t.extend(s,a.transparent),r):a[i]}function s(t,e,i){return 1>6*(i=(i+1)%1)?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",n=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],c=t.Color=function(e,i,r,s){return new t.Color.fn.parse(e,i,r,s)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=c.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(h,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),c.fn=t.extend(c.prototype,{parse:function(s,o,n,l){if(s===e)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=t(s).css(o),o=e);var u=this,d=t.type(s),p=this._rgba=[];return o!==e&&(s=[s,o,n,l],d="array"),"string"===d?this.parse(r(s)||a._default):"array"===d?(f(h.rgba.props,(function(t,e){p[e.idx]=i(s[e.idx],e)})),this):"object"===d?(f(h,s instanceof c?function(t,e){s[e.cache]&&(u[e.cache]=s[e.cache].slice())}:function(e,r){var a=r.cache;f(r.props,(function(t,e){if(!u[a]&&r.to){if("alpha"===t||null==s[t])return;u[a]=r.to(u._rgba)}u[a][e.idx]=i(s[t],e,!0)})),u[a]&&0>t.inArray(null,u[a].slice(0,3))&&(u[a][3]=1,r.from&&(u._rgba=r.from(u[a])))}),this):e},is:function(t){var i=c(t),r=!0,s=this;return f(h,(function(t,a){var o,n=i[a.cache];return n&&(o=s[a.cache]||a.to&&a.to(s._rgba)||[],f(a.props,(function(t,i){return null!=n[i.idx]?r=n[i.idx]===o[i.idx]:e}))),r})),r},_space:function(){var t=[],e=this;return f(h,(function(i,r){e[r.cache]&&t.push(i)})),t.pop()},transition:function(t,e){var r=c(t),s=r._space(),a=h[s],o=0===this.alpha()?c("transparent"):this,n=o[a.cache]||a.to(o._rgba),l=n.slice();return r=r[a.cache],f(a.props,(function(t,s){var a=s.idx,o=n[a],c=r[a],h=u[s.type]||{};null!==c&&(null===o?l[a]=c:(h.mod&&(c-o>h.mod/2?o+=h.mod:o-c>h.mod/2&&(o-=h.mod)),l[a]=i((c-o)*e+o,s)))})),this[s](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),r=i.pop(),s=c(e)._rgba;return c(t.map(i,(function(t,e){return(1-r)*s[e]+r*t})))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t}));return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),r=i.pop();return e&&i.push(~~(255*r)),"#"+t.map(i,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),c.fn.parse.prototype=c.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,r=t[0]/255,s=t[1]/255,a=t[2]/255,o=t[3],n=Math.max(r,s,a),l=Math.min(r,s,a),c=n-l,h=n+l,u=.5*h;return e=l===n?0:r===n?60*(s-a)/c+360:s===n?60*(a-r)/c+120:60*(r-s)/c+240,i=0===c?0:.5>=u?c/h:c/(2-h),[Math.round(e)%360,i,u,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],r=t[2],a=t[3],o=.5>=r?r*(1+i):r+i-r*i,n=2*r-o;return[Math.round(255*s(n,o,e+1/3)),Math.round(255*s(n,o,e)),Math.round(255*s(n,o,e-1/3)),a]},f(h,(function(r,s){var a=s.props,o=s.cache,l=s.to,h=s.from;c.fn[r]=function(r){if(l&&!this[o]&&(this[o]=l(this._rgba)),r===e)return this[o].slice();var s,n=t.type(r),u="array"===n||"object"===n?r:arguments,d=this[o].slice();return f(a,(function(t,e){var r=u["object"===n?t:e.idx];null==r&&(r=d[e.idx]),d[e.idx]=i(r,e)})),h?((s=c(h(d)))[o]=d,s):c(d)},f(a,(function(e,i){c.fn[e]||(c.fn[e]=function(s){var a,o=t.type(s),l="alpha"===e?this._hsla?"hsla":"rgba":r,c=this[l](),h=c[i.idx];return"undefined"===o?h:("function"===o&&(s=s.call(this,h),o=t.type(s)),null==s&&i.empty?this:("string"===o&&(a=n.exec(s))&&(s=h+parseFloat(a[2])*("+"===a[1]?1:-1)),c[i.idx]=s,this[l](c)))})}))})),c.hook=function(e){var i=e.split(" ");f(i,(function(e,i){t.cssHooks[i]={set:function(e,s){var a,o,n="";if("transparent"!==s&&("string"!==t.type(s)||(a=r(s)))){if(s=c(a||s),!d.rgba&&1!==s._rgba[3]){for(o="backgroundColor"===i?e.parentNode:e;(""===n||"transparent"===n)&&o&&o.style;)try{n=t.css(o,"backgroundColor"),o=o.parentNode}catch(t){}s=s.blend(n&&"transparent"!==n?n:"_default")}s=s.toRgbaString()}try{e.style[i]=s}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=c(e.elem,i),e.end=c(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}))},c.hook(o),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],(function(i,r){e["border"+r+"Color"]=t})),e}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(L),function(){function e(e){var i,r,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(s&&s.length&&s[0]&&s[s[0]])for(r=s.length;r--;)"string"==typeof s[i=s[r]]&&(a[t.camelCase(i)]=s[i]);else for(i in s)"string"==typeof s[i]&&(a[i]=s[i]);return a}function i(e,i){var r,a,o={};for(r in i)a=i[r],e[r]!==a&&(s[r]||(t.fx.step[r]||!isNaN(parseFloat(a)))&&(o[r]=a));return o}var r=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(L.style(t.elem,i,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(s,a,o,n){var l=t.speed(a,o,n);return this.queue((function(){var a,o=t(this),n=o.attr("class")||"",c=l.children?o.find("*").addBack():o;c=c.map((function(){return{el:t(this),start:e(this)}})),a=function(){t.each(r,(function(t,e){s[e]&&o[e+"Class"](s[e])}))},a(),c=c.map((function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this})),o.attr("class",n),c=c.map((function(){var e=this,i=t.Deferred(),r=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,r),i.promise()})),t.when.apply(t,c.get()).done((function(){a(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),l.complete.call(o[0])}))}))},t.fn.extend({addClass:function(e){return function(i,r,s,a){return r?t.effects.animateClass.call(this,{add:i},r,s,a):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,r,s,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},r,s,a):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,r,s,a,o){return"boolean"==typeof r||void 0===r?s?t.effects.animateClass.call(this,r?{add:i}:{remove:i},s,a,o):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},r,s,a)}}(t.fn.toggleClass),switchClass:function(e,i,r,s,a){return t.effects.animateClass.call(this,{add:i,remove:e},r,s,a)}})}(),function(){function e(e,i,r,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(s=i,r=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=r,r=i,i={}),t.isFunction(r)&&(s=r,r=null),i&&t.extend(e,i),r=r||i.duration,e.duration=t.fx.off?0:"number"==typeof r?r:r in t.fx.speeds?t.fx.speeds[r]:t.fx.speeds._default,e.complete=s||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==o(e)&&!e.effect}function r(t,e){var i=e.outerWidth(),r=e.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,r,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?r:parseFloat(s[3]),left:parseFloat(s[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(C)||e(i)}}(t.expr.filters.animated)),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var i=0,r=e.length;r>i;i++)null!==e[i]&&t.data(g+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,r=0,s=e.length;s>r;r++)null!==e[r]&&(i=t.data(g+e[r]),t.css(e[r],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".rt-qc-ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},r=t("<div></div>").addClass("rt-qc-ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(t){a=document.body}return e.wrap(r),(e[0]===a||t.contains(e[0],a))&&t(a).trigger("focus"),r=e.parent(),"static"===e.css("position")?(r.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,r){i[r]=e.css(r),isNaN(parseInt(i[r],10))&&(i[r]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),r.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".rt-qc-ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,r){return r||(r=i,i="effect"),t.effects.effect[e]=r,t.effects.effect[e].mode=i,r},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==i?(e||100)/100:1,s="vertical"!==i?(e||100)/100:1;return{height:t.height()*s,width:t.width()*r,outerHeight:t.outerHeight()*s,outerWidth:t.outerWidth()*r}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var r=t.queue();e>1&&r.splice.apply(r,[1,0].concat(r.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(_,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(_)||"",t.removeData(_)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,r;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:i}},createPlaceholder:function(e){var i,r=e.css("position"),s=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("rt-qc-ui-effects-placeholder"),e.data(g+"placeholder",i)),e.css({position:r,left:s.left,top:s.top}),i},removePlaceholder:function(t){var e=g+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,r,s){return s=s||{},t.each(i,(function(t,i){var a=e.cssUnit(i);a[0]>0&&(s[i]=a[0]*r+a[1])})),s}}),t.fn.extend({effect:function(){function i(e){function i(){n.removeData(C),t.effects.cleanUp(n),"hide"===r.mode&&n.hide(),o()}function o(){t.isFunction(l)&&l.call(n[0]),t.isFunction(e)&&e()}var n=t(this);r.mode=h.shift(),!1===t.uiBackCompat||a?"none"===r.mode?(n[c](),o()):s.call(n[0],r,i):(n.is(":hidden")?"hide"===c:"show"===c)?(n[c](),o()):s.call(n[0],r,o)}var r=e.apply(this,arguments),s=t.effects.effect[r.effect],a=s.mode,o=r.queue,n=o||"fx",l=r.complete,c=r.mode,h=[],u=function(e){var i=t(this),r=t.effects.mode(i,c)||a;i.data(C,!0),h.push(r),a&&("show"===r||r===a&&"hide"===r)&&i.show(),a&&"none"===r||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!s?c?this[c](r.duration,l):this.each((function(){l&&l.call(this)})):!1===o?this.each(u).each(i):this.queue(n,u).queue(n,i)},show:function(t){return function(r){if(i(r))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}}(t.fn.show),hide:function(t){return function(r){if(i(r))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}}(t.fn.hide),toggle:function(t){return function(r){if(i(r)||"boolean"==typeof r)return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),r=[];return t.each(["em","px","%","pt"],(function(t,e){i.indexOf(e)>0&&(r=[parseFloat(i),e])})),r},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):r(this.css("clip"),this)},transfer:function(e,i){var r=t(this),s=t(e.to),a="fixed"===s.css("position"),o=t("body"),n=a?o.scrollTop():0,l=a?o.scrollLeft():0,c=s.offset(),h={top:c.top-n,left:c.left-l,height:s.innerHeight(),width:s.innerWidth()},u=r.offset(),d=t("<div class='rt-qc-ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-n,left:u.left-l,height:r.innerHeight(),width:r.innerWidth(),position:a?"fixed":"absolute"}).animate(h,e.duration,e.easing,(function(){d.remove(),t.isFunction(i)&&i()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=r(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,i){e[i]=function(e){return Math.pow(e,t+2)}})),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}}))}(),t.effects,t.effects.define("blind","hide",(function(e,i){var r={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=t(this),a=e.direction||"up",o=s.cssClip(),n={clip:t.extend({},o)},l=t.effects.createPlaceholder(s);n.clip[r[a][0]]=n.clip[r[a][1]],"show"===e.mode&&(s.cssClip(n.clip),l&&l.css(t.effects.clipToBox(n)),n.clip=o),l&&l.animate(t.effects.clipToBox(n),e.duration,e.easing),s.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("bounce",(function(e,i){var r,s,a,o=t(this),n=e.mode,l="hide"===n,c="show"===n,h=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(c||l?1:0),f=e.duration/p,g=e.easing,_="up"===h||"down"===h?"top":"left",C="up"===h||"left"===h,L=0,m=o.queue().length;for(t.effects.createPlaceholder(o),a=o.css(_),u||(u=o["top"===_?"outerHeight":"outerWidth"]()/3),c&&((s={opacity:1})[_]=a,o.css("opacity",0).css(_,C?2*-u:2*u).animate(s,f,g)),l&&(u/=Math.pow(2,d-1)),(s={})[_]=a;d>L;L++)(r={})[_]=(C?"-=":"+=")+u,o.animate(r,f,g).animate(s,f,g),u=l?2*u:u/2;l&&((r={opacity:0})[_]=(C?"-=":"+=")+u,o.animate(r,f,g)),o.queue(i),t.effects.unshift(o,m,p+1)})),t.effects.define("clip","hide",(function(e,i){var r,s={},a=t(this),o=e.direction||"vertical",n="both"===o,l=n||"horizontal"===o,c=n||"vertical"===o;r=a.cssClip(),s.clip={top:c?(r.bottom-r.top)/2:r.top,right:l?(r.right-r.left)/2:r.right,bottom:c?(r.bottom-r.top)/2:r.bottom,left:l?(r.right-r.left)/2:r.left},t.effects.createPlaceholder(a),"show"===e.mode&&(a.cssClip(s.clip),s.clip=r),a.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("drop","hide",(function(e,i){var r,s=t(this),a="show"===e.mode,o=e.direction||"left",n="up"===o||"down"===o?"top":"left",l="up"===o||"left"===o?"-=":"+=",c="+="===l?"-=":"+=",h={opacity:0};t.effects.createPlaceholder(s),r=e.distance||s["top"===n?"outerHeight":"outerWidth"](!0)/2,h[n]=l+r,a&&(s.css(h),h[n]=c+r,h.opacity=1),s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("explode","hide",(function(e,i){function r(){L.push(this),L.length===u*d&&s()}function s(){p.css({visibility:"visible"}),t(L).remove(),i()}var a,o,n,l,c,h,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f="show"===e.mode,g=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.outerWidth()/d),C=Math.ceil(p.outerHeight()/u),L=[];for(a=0;u>a;a++)for(l=g.top+a*C,h=a-(u-1)/2,o=0;d>o;o++)n=g.left+o*_,c=o-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*_,top:-a*C}).parent().addClass("rt-qc-ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:C,left:n+(f?c*_:0),top:l+(f?h*C:0),opacity:f?0:1}).animate({left:n+(f?0:c*_),top:l+(f?0:h*C),opacity:f?1:0},e.duration||500,e.easing,r)})),t.effects.define("fade","toggle",(function(e,i){var r="show"===e.mode;t(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("fold","hide",(function(e,i){var r=t(this),s=e.mode,a="show"===s,o="hide"===s,n=e.size||15,l=/([0-9]+)%/.exec(n),c=e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,u=t.effects.createPlaceholder(r),d=r.cssClip(),p={clip:t.extend({},d)},f={clip:t.extend({},d)},g=[d[c[0]],d[c[1]]],_=r.queue().length;l&&(n=parseInt(l[1],10)/100*g[o?0:1]),p.clip[c[0]]=n,f.clip[c[0]]=n,f.clip[c[1]]=0,a&&(r.cssClip(f.clip),u&&u.css(t.effects.clipToBox(f)),f.clip=d),r.queue((function(i){u&&u.animate(t.effects.clipToBox(p),h,e.easing).animate(t.effects.clipToBox(f),h,e.easing),i()})).animate(p,h,e.easing).animate(f,h,e.easing).queue(i),t.effects.unshift(r,_,4)})),t.effects.define("highlight","show",(function(e,i){var r=t(this),s={backgroundColor:r.css("backgroundColor")};"hide"===e.mode&&(s.opacity=0),t.effects.saveStyle(r),r.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("size",(function(e,i){var r,s,a,o=t(this),n=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=e.mode,u="effect"!==h,d=e.scale||"both",p=e.origin||["middle","center"],f=o.css("position"),g=o.position(),_=t.effects.scaledDimensions(o),C=e.from||_,L=e.to||t.effects.scaledDimensions(o,0);t.effects.createPlaceholder(o),"show"===h&&(a=C,C=L,L=a),s={from:{y:C.height/_.height,x:C.width/_.width},to:{y:L.height/_.height,x:L.width/_.width}},("box"===d||"both"===d)&&(s.from.y!==s.to.y&&(C=t.effects.setTransition(o,l,s.from.y,C),L=t.effects.setTransition(o,l,s.to.y,L)),s.from.x!==s.to.x&&(C=t.effects.setTransition(o,c,s.from.x,C),L=t.effects.setTransition(o,c,s.to.x,L))),("content"===d||"both"===d)&&s.from.y!==s.to.y&&(C=t.effects.setTransition(o,n,s.from.y,C),L=t.effects.setTransition(o,n,s.to.y,L)),p&&(r=t.effects.getBaseline(p,_),C.top=(_.outerHeight-C.outerHeight)*r.y+g.top,C.left=(_.outerWidth-C.outerWidth)*r.x+g.left,L.top=(_.outerHeight-L.outerHeight)*r.y+g.top,L.left=(_.outerWidth-L.outerWidth)*r.x+g.left),o.css(C),("content"===d||"both"===d)&&(l=l.concat(["marginTop","marginBottom"]).concat(n),c=c.concat(["marginLeft","marginRight"]),o.find("*[width]").each((function(){var i=t(this),r=t.effects.scaledDimensions(i),a={height:r.height*s.from.y,width:r.width*s.from.x,outerHeight:r.outerHeight*s.from.y,outerWidth:r.outerWidth*s.from.x},o={height:r.height*s.to.y,width:r.width*s.to.x,outerHeight:r.height*s.to.y,outerWidth:r.width*s.to.x};s.from.y!==s.to.y&&(a=t.effects.setTransition(i,l,s.from.y,a),o=t.effects.setTransition(i,l,s.to.y,o)),s.from.x!==s.to.x&&(a=t.effects.setTransition(i,c,s.from.x,a),o=t.effects.setTransition(i,c,s.to.x,o)),u&&t.effects.saveStyle(i),i.css(a),i.animate(o,e.duration,e.easing,(function(){u&&t.effects.restoreStyle(i)}))}))),o.animate(L,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=o.offset();0===L.opacity&&o.css("opacity",C.opacity),u||(o.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(o)),i()}})})),t.effects.define("scale",(function(e,i){var r=t(this),s=e.mode,a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==s?0:100),o=t.extend(!0,{from:t.effects.scaledDimensions(r),to:t.effects.scaledDimensions(r,a,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(o.from.opacity=1,o.to.opacity=0),t.effects.effect.size.call(this,o,i)})),t.effects.define("puff","hide",(function(e,i){var r=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,r,i)})),t.effects.define("pulsate","show",(function(e,i){var r=t(this),s=e.mode,a="show"===s,o=a||"hide"===s,n=2*(e.times||5)+(o?1:0),l=e.duration/n,c=0,h=1,u=r.queue().length;for((a||!r.is(":visible"))&&(r.css("opacity",0).show(),c=1);n>h;h++)r.animate({opacity:c},l,e.easing),c=1-c;r.animate({opacity:c},l,e.easing),r.queue(i),t.effects.unshift(r,u,n+1)})),t.effects.define("shake",(function(e,i){var r=1,s=t(this),a=e.direction||"left",o=e.distance||20,n=e.times||3,l=2*n+1,c=Math.round(e.duration/l),h="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,d={},p={},f={},g=s.queue().length;for(t.effects.createPlaceholder(s),d[h]=(u?"-=":"+=")+o,p[h]=(u?"+=":"-=")+2*o,f[h]=(u?"-=":"+=")+2*o,s.animate(d,c,e.easing);n>r;r++)s.animate(p,c,e.easing).animate(f,c,e.easing);s.animate(p,c,e.easing).animate(d,c/2,e.easing).queue(i),t.effects.unshift(s,g,l+1)})),t.effects.define("slide","show",(function(e,i){var r,s,a=t(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},n=e.mode,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,u=e.distance||a["top"===c?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(a),r=a.cssClip(),s=a.position()[c],d[c]=(h?-1:1)*u+s,d.clip=a.cssClip(),d.clip[o[l][1]]=d.clip[o[l][0]],"show"===n&&(a.cssClip(d.clip),a.css(c,d[c]),d.clip=r,d[c]=s),a.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),!1!==t.uiBackCompat&&t.effects.define("transfer",(function(e,i){t(this).transfer(e,i)}))})?r.apply(e,s):r)||(t.exports=a)},5358:(t,e,i)=>{var r={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function s(t){var e=a(t);return i(e)}function a(t){if(!i.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}s.keys=function(){return Object.keys(r)},s.resolve=a,t.exports=s,s.id=5358},477:()=>{},7233:()=>{},9800:()=>{}}]);
|