jqwidgets-ng 22.0.1 → 22.0.3

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.
Files changed (89) hide show
  1. package/jqwidgets/jqx-all.js +2457 -50
  2. package/jqwidgets/jqxbarcode.js +0 -12
  3. package/jqwidgets/jqxcheckboxgroup.js +0 -12
  4. package/jqwidgets/jqxcore.js +1 -1
  5. package/jqwidgets/jqxexport.js +6 -3
  6. package/jqwidgets/jqxqrcode.js +0 -12
  7. package/jqwidgets/jqxradiobuttongroup.js +0 -12
  8. package/jqwidgets/jqxsplitlayout.js +2456 -1
  9. package/jqwidgets/modules/jqxbarcode.js +23 -49
  10. package/jqwidgets/modules/jqxbargauge.js +25 -51
  11. package/jqwidgets/modules/jqxbulletchart.js +27 -53
  12. package/jqwidgets/modules/jqxbuttongroup.js +25 -51
  13. package/jqwidgets/modules/jqxbuttons.js +23 -49
  14. package/jqwidgets/modules/jqxcalendar.js +29 -55
  15. package/jqwidgets/modules/jqxchart.js +37 -63
  16. package/jqwidgets/modules/jqxcheckbox.js +27 -53
  17. package/jqwidgets/modules/jqxcheckboxgroup.js +27 -53
  18. package/jqwidgets/modules/jqxcolorpicker.js +29 -55
  19. package/jqwidgets/modules/jqxcombobox.js +33 -59
  20. package/jqwidgets/modules/jqxcomplexinput.js +25 -51
  21. package/jqwidgets/modules/jqxdatatable.js +59 -82
  22. package/jqwidgets/modules/jqxdatetimeinput.js +47 -73
  23. package/jqwidgets/modules/jqxdocking.js +27 -53
  24. package/jqwidgets/modules/jqxdockinglayout.js +35 -61
  25. package/jqwidgets/modules/jqxdockpanel.js +25 -51
  26. package/jqwidgets/modules/jqxdragdrop.js +27 -53
  27. package/jqwidgets/modules/jqxdraw.js +23 -49
  28. package/jqwidgets/modules/jqxdropdownbutton.js +25 -51
  29. package/jqwidgets/modules/jqxdropdownlist.js +45 -71
  30. package/jqwidgets/modules/jqxeditor.js +57 -83
  31. package/jqwidgets/modules/jqxexpander.js +37 -60
  32. package/jqwidgets/modules/jqxfileupload.js +27 -53
  33. package/jqwidgets/modules/jqxform.js +61 -84
  34. package/jqwidgets/modules/jqxformattedinput.js +53 -76
  35. package/jqwidgets/modules/jqxgantt.js +25 -51
  36. package/jqwidgets/modules/jqxgauge.js +29 -55
  37. package/jqwidgets/modules/jqxgrid.js +98 -121
  38. package/jqwidgets/modules/jqxheatmap.js +25 -51
  39. package/jqwidgets/modules/jqxinput.js +27 -53
  40. package/jqwidgets/modules/jqxkanban.js +63 -86
  41. package/jqwidgets/modules/jqxknob.js +27 -53
  42. package/jqwidgets/modules/jqxlayout.js +35 -61
  43. package/jqwidgets/modules/jqxlineargauge.js +29 -55
  44. package/jqwidgets/modules/jqxlinkbutton.js +23 -49
  45. package/jqwidgets/modules/jqxlistbox.js +37 -63
  46. package/jqwidgets/modules/jqxlistmenu.js +59 -82
  47. package/jqwidgets/modules/jqxloader.js +23 -49
  48. package/jqwidgets/modules/jqxmaskedinput.js +23 -49
  49. package/jqwidgets/modules/jqxmenu.js +41 -64
  50. package/jqwidgets/modules/jqxnavbar.js +37 -60
  51. package/jqwidgets/modules/jqxnavigationbar.js +45 -68
  52. package/jqwidgets/modules/jqxnotification.js +31 -57
  53. package/jqwidgets/modules/jqxnumberinput.js +37 -63
  54. package/jqwidgets/modules/jqxpanel.js +29 -55
  55. package/jqwidgets/modules/jqxpasswordinput.js +31 -57
  56. package/jqwidgets/modules/jqxpivotdesigner.js +67 -90
  57. package/jqwidgets/modules/jqxpivotgrid.js +67 -90
  58. package/jqwidgets/modules/jqxpopover.js +25 -51
  59. package/jqwidgets/modules/jqxprogressbar.js +23 -49
  60. package/jqwidgets/modules/jqxqrcode.js +37 -60
  61. package/jqwidgets/modules/jqxradiobutongroup.js +27 -53
  62. package/jqwidgets/modules/jqxradiobutton.js +25 -51
  63. package/jqwidgets/modules/jqxrangeselector.js +27 -53
  64. package/jqwidgets/modules/jqxrating.js +25 -51
  65. package/jqwidgets/modules/jqxrepeatbutton.js +23 -49
  66. package/jqwidgets/modules/jqxresponsivepanel.js +25 -51
  67. package/jqwidgets/modules/jqxribbon.js +27 -53
  68. package/jqwidgets/modules/jqxscheduler.js +63 -89
  69. package/jqwidgets/modules/jqxscrollbar.js +25 -51
  70. package/jqwidgets/modules/jqxscrollview.js +25 -51
  71. package/jqwidgets/modules/jqxslider.js +25 -51
  72. package/jqwidgets/modules/jqxsortable.js +25 -51
  73. package/jqwidgets/modules/jqxsplitlayout.js +23 -49
  74. package/jqwidgets/modules/jqxsplitter.js +25 -51
  75. package/jqwidgets/modules/jqxswitchbutton.js +29 -55
  76. package/jqwidgets/modules/jqxtabs.js +43 -66
  77. package/jqwidgets/modules/jqxtagcloud.js +31 -57
  78. package/jqwidgets/modules/jqxtextarea.js +31 -57
  79. package/jqwidgets/modules/jqxtimeline.js +23 -49
  80. package/jqwidgets/modules/jqxtimepicker.js +25 -51
  81. package/jqwidgets/modules/jqxtogglebutton.js +23 -49
  82. package/jqwidgets/modules/jqxtoolbar.js +61 -84
  83. package/jqwidgets/modules/jqxtooltip.js +23 -49
  84. package/jqwidgets/modules/jqxtree.js +35 -61
  85. package/jqwidgets/modules/jqxtreegrid.js +61 -84
  86. package/jqwidgets/modules/jqxtreemap.js +27 -53
  87. package/jqwidgets/modules/jqxvalidator.js +29 -55
  88. package/jqwidgets/modules/jqxwindow.js +25 -51
  89. package/package.json +1 -1
@@ -12,7 +12,7 @@ License: https://jqwidgets.com/license/
12
12
  * Released under the MIT license
13
13
  * http://sizzlejs.com/
14
14
  */
15
- (function(cp,bO){var cu,bH,ci,bx,bT,b7,bK,bN,bJ,cg,bG=true,b1="undefined",cw=("sizcache"+Math.random()).replace(".",""),bB=String,bF=cp.document,bI=bF.documentElement,bY=0,bM=0,cb=[].pop,ct=[].push,bS=[].slice,bV=[].indexOf||function(cG){var cF=0,cE=this.length;for(;cF<cE;cF++){if(this[cF]===cG){return cF}}return -1},cy=function(cE,cF){cE[cw]=cF==null||cF;return cE},cC=function(){var cE={},cF=[];return cy(function(cG,cH){if(cF.push(cG)>ci.cacheLength){delete cE[cF.shift()]}return(cE[cG+" "]=cH)},cE)},cr=cC(),cs=cC(),bU=cC(),b5="[\\x20\\t\\r\\n\\f]",bR="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",bP=bR.replace("w","w#"),cB="([*^$|!~]?=)",cm="\\["+b5+"*("+bR+")"+b5+"*(?:"+cB+b5+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+bP+")|)|)"+b5+"*\\]",cD=":("+bR+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+cm+")|[^:]|\\\\.)*|.*))\\)|)",b6=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+b5+"*((?:-\\d)?\\d*)"+b5+"*\\)|)(?=[^-]|$)",cq=new RegExp("^"+b5+"+|((?:^|[^\\\\])(?:\\\\.)*)"+b5+"+$","g"),bC=new RegExp("^"+b5+"*,"+b5+"*"),ce=new RegExp("^"+b5+"*([\\x20\\t\\r\\n\\f>+~])"+b5+"*"),cj=new RegExp(cD),cl=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,ca=/^:not/,co=/[\x20\t\r\n\f]*[+~]/,cx=/:not\($/,bZ=/h\d/i,ck=/input|select|textarea|button/i,b0=/\\(?!\\)/g,cd={ID:new RegExp("^#("+bR+")"),CLASS:new RegExp("^\\.("+bR+")"),NAME:new RegExp("^\\[name=['\"]?("+bR+")['\"]?\\]"),TAG:new RegExp("^("+bR.replace("w","w*")+")"),ATTR:new RegExp("^"+cm),PSEUDO:new RegExp("^"+cD),POS:new RegExp(b6,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+b5+"*(even|odd|(([+-]|)(\\d*)n|)"+b5+"*(?:([+-]|)"+b5+"*(\\d+)|))"+b5+"*\\)|)","i"),needsContext:new RegExp("^"+b5+"*[>+~]|"+b6,"i")},ch=function(cE){var cG=bF.createElement("div");try{return cE(cG)}catch(cF){return false}finally{cG=null}},bE=ch(function(cE){cE.appendChild(bF.createComment(""));return !cE.getElementsByTagName("*").length}),b9=ch(function(cE){cE.innerHTML="<a href='#'></a>";return cE.firstChild&&typeof cE.firstChild.getAttribute!==b1&&cE.firstChild.getAttribute("href")==="#"}),bX=ch(function(cF){cF.innerHTML="<select></select>";var cE=typeof cF.lastChild.getAttribute("multiple");return cE!=="boolean"&&cE!=="string"}),b8=ch(function(cE){cE.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!cE.getElementsByClassName||!cE.getElementsByClassName("e").length){return false}cE.lastChild.className="e";return cE.getElementsByClassName("e").length===2}),bw=ch(function(cF){cF.id=cw+0;cF.innerHTML="<a name='"+cw+"'></a><div name='"+cw+"'></div>";bI.insertBefore(cF,bI.firstChild);var cE=bF.getElementsByName&&bF.getElementsByName(cw).length===2+bF.getElementsByName(cw+0).length;bH=!bF.getElementById(cw);bI.removeChild(cF);return cE});try{bS.call(bI.childNodes,0)[0].nodeType}catch(cA){bS=function(cF){var cG,cE=[];for(;(cG=this[cF]);cF++){cE.push(cG)}return cE}}function cn(cH,cE,cJ,cM){cJ=cJ||[];cE=cE||bF;var cK,cF,cL,cG,cI=cE.nodeType;if(!cH||typeof cH!=="string"){return cJ}if(cI!==1&&cI!==9){return[]}cL=bT(cE);if(!cL&&!cM){if((cK=cl.exec(cH))){if((cG=cK[1])){if(cI===9){cF=cE.getElementById(cG);if(cF&&cF.parentNode){if(cF.id===cG){cJ.push(cF);return cJ}}else{return cJ}}else{if(cE.ownerDocument&&(cF=cE.ownerDocument.getElementById(cG))&&b7(cE,cF)&&cF.id===cG){cJ.push(cF);return cJ}}}else{if(cK[2]){ct.apply(cJ,bS.call(cE.getElementsByTagName(cH),0));return cJ}else{if((cG=cK[3])&&b8&&cE.getElementsByClassName){ct.apply(cJ,bS.call(cE.getElementsByClassName(cG),0));return cJ}}}}}return cv(cH.replace(cq,"$1"),cE,cJ,cM,cL)}cn.matches=function(cF,cE){return cn(cF,null,null,cE)};cn.matchesSelector=function(cE,cF){return cn(cF,null,null,[cE]).length>0};function cf(cE){return function(cG){var cF=cG.nodeName.toLowerCase();return cF==="input"&&cG.type===cE}}function bA(cE){return function(cG){var cF=cG.nodeName.toLowerCase();return(cF==="input"||cF==="button")&&cG.type===cE}}function cc(cE){return cy(function(cF){cF=+cF;return cy(function(cG,cK){var cI,cH=cE([],cG.length,cF),cJ=cH.length;while(cJ--){if(cG[(cI=cH[cJ])]){cG[cI]=!(cK[cI]=cG[cI])}}})})}bx=cn.getText=function(cI){var cH,cF="",cG=0,cE=cI.nodeType;if(cE){if(cE===1||cE===9||cE===11){if(typeof cI.textContent==="string"){return cI.textContent}else{for(cI=cI.firstChild;cI;cI=cI.nextSibling){cF+=bx(cI)}}}else{if(cE===3||cE===4){return cI.nodeValue}}}else{for(;(cH=cI[cG]);cG++){cF+=bx(cH)}}return cF};bT=cn.isXML=function(cE){var cF=cE&&(cE.ownerDocument||cE).documentElement;return cF?cF.nodeName!=="HTML":false};b7=cn.contains=bI.contains?function(cF,cE){var cH=cF.nodeType===9?cF.documentElement:cF,cG=cE&&cE.parentNode;return cF===cG||!!(cG&&cG.nodeType===1&&cH.contains&&cH.contains(cG))}:bI.compareDocumentPosition?function(cF,cE){return cE&&!!(cF.compareDocumentPosition(cE)&16)}:function(cF,cE){while((cE=cE.parentNode)){if(cE===cF){return true}}return false};cn.attr=function(cG,cF){var cH,cE=bT(cG);if(!cE){cF=cF.toLowerCase()}if((cH=ci.attrHandle[cF])){return cH(cG)}if(cE||bX){return cG.getAttribute(cF)}cH=cG.getAttributeNode(cF);return cH?typeof cG[cF]==="boolean"?cG[cF]?cF:null:cH.specified?cH.value:null:null};ci=cn.selectors={cacheLength:50,createPseudo:cy,match:cd,attrHandle:b9?{}:{href:function(cE){return cE.getAttribute("href",2)},type:function(cE){return cE.getAttribute("type")}},find:{ID:bH?function(cH,cG,cF){if(typeof cG.getElementById!==b1&&!cF){var cE=cG.getElementById(cH);return cE&&cE.parentNode?[cE]:[]}}:function(cH,cG,cF){if(typeof cG.getElementById!==b1&&!cF){var cE=cG.getElementById(cH);return cE?cE.id===cH||typeof cE.getAttributeNode!==b1&&cE.getAttributeNode("id").value===cH?[cE]:bO:[]}},TAG:bE?function(cE,cF){if(typeof cF.getElementsByTagName!==b1){return cF.getElementsByTagName(cE)}}:function(cE,cI){var cH=cI.getElementsByTagName(cE);if(cE==="*"){var cJ,cG=[],cF=0;for(;(cJ=cH[cF]);cF++){if(cJ.nodeType===1){cG.push(cJ)}}return cG}return cH},NAME:bw&&function(cE,cF){if(typeof cF.getElementsByName!==b1){return cF.getElementsByName(name)}},CLASS:b8&&function(cG,cF,cE){if(typeof cF.getElementsByClassName!==b1&&!cE){return cF.getElementsByClassName(cG)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(cE){cE[1]=cE[1].replace(b0,"");cE[3]=(cE[4]||cE[5]||"").replace(b0,"");if(cE[2]==="~="){cE[3]=" "+cE[3]+" "}return cE.slice(0,4)},CHILD:function(cE){cE[1]=cE[1].toLowerCase();if(cE[1]==="nth"){if(!cE[2]){cn.error(cE[0])}cE[3]=+(cE[3]?cE[4]+(cE[5]||1):2*(cE[2]==="even"||cE[2]==="odd"));cE[4]=+((cE[6]+cE[7])||cE[2]==="odd")}else{if(cE[2]){cn.error(cE[0])}}return cE},PSEUDO:function(cF){var cG,cE;if(cd.CHILD.test(cF[0])){return null}if(cF[3]){cF[2]=cF[3]}else{if((cG=cF[4])){if(cj.test(cG)&&(cE=by(cG,true))&&(cE=cG.indexOf(")",cG.length-cE)-cG.length)){cG=cG.slice(0,cE);cF[0]=cF[0].slice(0,cE)}cF[2]=cG}}return cF.slice(0,3)}},filter:{ID:bH?function(cE){cE=cE.replace(b0,"");return function(cF){return cF.getAttribute("id")===cE}}:function(cE){cE=cE.replace(b0,"");return function(cG){var cF=typeof cG.getAttributeNode!==b1&&cG.getAttributeNode("id");return cF&&cF.value===cE}},TAG:function(cE){if(cE==="*"){return function(){return true}}cE=cE.replace(b0,"").toLowerCase();return function(cF){return cF.nodeName&&cF.nodeName.toLowerCase()===cE}},CLASS:function(cE){var cF=cr[cw][cE+" "];return cF||(cF=new RegExp("(^|"+b5+")"+cE+"("+b5+"|$)"))&&cr(cE,function(cG){return cF.test(cG.className||(typeof cG.getAttribute!==b1&&cG.getAttribute("class"))||"")})},ATTR:function(cG,cF,cE){return function(cJ,cI){var cH=cn.attr(cJ,cG);if(cH==null){return cF==="!="}if(!cF){return true}cH+="";return cF==="="?cH===cE:cF==="!="?cH!==cE:cF==="^="?cE&&cH.indexOf(cE)===0:cF==="*="?cE&&cH.indexOf(cE)>-1:cF==="$="?cE&&cH.substr(cH.length-cE.length)===cE:cF==="~="?(" "+cH+" ").indexOf(cE)>-1:cF==="|="?cH===cE||cH.substr(0,cE.length+1)===cE+"-":false}},CHILD:function(cE,cG,cH,cF){if(cE==="nth"){return function(cK){var cJ,cL,cI=cK.parentNode;if(cH===1&&cF===0){return true}if(cI){cL=0;for(cJ=cI.firstChild;cJ;cJ=cJ.nextSibling){if(cJ.nodeType===1){cL++;if(cK===cJ){break}}}}cL-=cF;return cL===cH||(cL%cH===0&&cL/cH>=0)}}return function(cJ){var cI=cJ;switch(cE){case"only":case"first":while((cI=cI.previousSibling)){if(cI.nodeType===1){return false}}if(cE==="first"){return true}cI=cJ;case"last":while((cI=cI.nextSibling)){if(cI.nodeType===1){return false}}return true}}},PSEUDO:function(cH,cG){var cE,cF=ci.pseudos[cH]||ci.setFilters[cH.toLowerCase()]||cn.error("unsupported pseudo: "+cH);if(cF[cw]){return cF(cG)}if(cF.length>1){cE=[cH,cH,"",cG];return ci.setFilters.hasOwnProperty(cH.toLowerCase())?cy(function(cK,cM){var cJ,cI=cF(cK,cG),cL=cI.length;while(cL--){cJ=bV.call(cK,cI[cL]);cK[cJ]=!(cM[cJ]=cI[cL])}}):function(cI){return cF(cI,0,cE)}}return cF}},pseudos:{not:cy(function(cE){var cF=[],cG=[],cH=bK(cE.replace(cq,"$1"));return cH[cw]?cy(function(cJ,cO,cM,cK){var cN,cI=cH(cJ,null,cK,[]),cL=cJ.length;while(cL--){if((cN=cI[cL])){cJ[cL]=!(cO[cL]=cN)}}}):function(cK,cJ,cI){cF[0]=cK;cH(cF,null,cI,cG);return !cG.pop()}}),has:cy(function(cE){return function(cF){return cn(cE,cF).length>0}}),contains:cy(function(cE){return function(cF){return(cF.textContent||cF.innerText||bx(cF)).indexOf(cE)>-1}}),enabled:function(cE){return cE.disabled===false},disabled:function(cE){return cE.disabled===true},checked:function(cE){var cF=cE.nodeName.toLowerCase();return(cF==="input"&&!!cE.checked)||(cF==="option"&&!!cE.selected)},selected:function(cE){if(cE.parentNode){cE.parentNode.selectedIndex}return cE.selected===true},parent:function(cE){return !ci.pseudos.empty(cE)},empty:function(cF){var cE;cF=cF.firstChild;while(cF){if(cF.nodeName>"@"||(cE=cF.nodeType)===3||cE===4){return false}cF=cF.nextSibling}return true},header:function(cE){return bZ.test(cE.nodeName)},text:function(cG){var cF,cE;return cG.nodeName.toLowerCase()==="input"&&(cF=cG.type)==="text"&&((cE=cG.getAttribute("type"))==null||cE.toLowerCase()===cF)},radio:cf("radio"),checkbox:cf("checkbox"),file:cf("file"),password:cf("password"),image:cf("image"),submit:bA("submit"),reset:bA("reset"),button:function(cF){var cE=cF.nodeName.toLowerCase();return cE==="input"&&cF.type==="button"||cE==="button"},input:function(cE){return ck.test(cE.nodeName)},focus:function(cE){var cF=cE.ownerDocument;return cE===cF.activeElement&&(!cF.hasFocus||cF.hasFocus())&&!!(cE.type||cE.href||~cE.tabIndex)},active:function(cE){return cE===cE.ownerDocument.activeElement},first:cc(function(){return[0]}),last:cc(function(cE,cF){return[cF-1]}),eq:cc(function(cE,cG,cF){return[cF<0?cF+cG:cF]}),even:cc(function(cE,cG){for(var cF=0;cF<cG;cF+=2){cE.push(cF)}return cE}),odd:cc(function(cE,cG){for(var cF=1;cF<cG;cF+=2){cE.push(cF)}return cE}),lt:cc(function(cE,cH,cG){for(var cF=cG<0?cG+cH:cG;--cF>=0;){cE.push(cF)}return cE}),gt:cc(function(cE,cH,cG){for(var cF=cG<0?cG+cH:cG;++cF<cH;){cE.push(cF)}return cE})}};function bz(cF,cE,cG){if(cF===cE){return cG}var cH=cF.nextSibling;while(cH){if(cH===cE){return -1}cH=cH.nextSibling}return 1}bN=bI.compareDocumentPosition?function(cF,cE){if(cF===cE){bJ=true;return 0}return(!cF.compareDocumentPosition||!cE.compareDocumentPosition?cF.compareDocumentPosition:cF.compareDocumentPosition(cE)&4)?-1:1}:function(cM,cL){if(cM===cL){bJ=true;return 0}else{if(cM.sourceIndex&&cL.sourceIndex){return cM.sourceIndex-cL.sourceIndex}}var cJ,cF,cG=[],cE=[],cI=cM.parentNode,cK=cL.parentNode,cN=cI;if(cI===cK){return bz(cM,cL)}else{if(!cI){return -1}else{if(!cK){return 1}}}while(cN){cG.unshift(cN);cN=cN.parentNode}cN=cK;while(cN){cE.unshift(cN);cN=cN.parentNode}cJ=cG.length;cF=cE.length;for(var cH=0;cH<cJ&&cH<cF;cH++){if(cG[cH]!==cE[cH]){return bz(cG[cH],cE[cH])}}return cH===cJ?bz(cM,cE[cH],-1):bz(cG[cH],cL,1)};[0,0].sort(bN);bG=!bJ;cn.uniqueSort=function(cG){var cH,cI=[],cF=1,cE=0;bJ=bG;cG.sort(bN);if(bJ){for(;(cH=cG[cF]);cF++){if(cH===cG[cF-1]){cE=cI.push(cF)}}while(cE--){cG.splice(cI[cE],1)}}return cG};cn.error=function(cE){throw new Error("Syntax error, unrecognized expression: "+cE)};function by(cI,cN){var cF,cJ,cL,cM,cK,cG,cE,cH=cs[cw][cI+" "];if(cH){return cN?0:cH.slice(0)}cK=cI;cG=[];cE=ci.preFilter;while(cK){if(!cF||(cJ=bC.exec(cK))){if(cJ){cK=cK.slice(cJ[0].length)||cK}cG.push(cL=[])}cF=false;if((cJ=ce.exec(cK))){cL.push(cF=new bB(cJ.shift()));cK=cK.slice(cF.length);cF.type=cJ[0].replace(cq," ")}for(cM in ci.filter){if((cJ=cd[cM].exec(cK))&&(!cE[cM]||(cJ=cE[cM](cJ)))){cL.push(cF=new bB(cJ.shift()));cK=cK.slice(cF.length);cF.type=cM;cF.matches=cJ}}if(!cF){break}}return cN?cK.length:cK?cn.error(cI):cs(cI,cG).slice(0)}function b3(cI,cG,cH){var cE=cG.dir,cJ=cH&&cG.dir==="parentNode",cF=bM++;return cG.first?function(cM,cL,cK){while((cM=cM[cE])){if(cJ||cM.nodeType===1){return cI(cM,cL,cK)}}}:function(cN,cM,cL){if(!cL){var cK,cO=bY+" "+cF+" ",cP=cO+cu;while((cN=cN[cE])){if(cJ||cN.nodeType===1){if((cK=cN[cw])===cP){return cN.sizset}else{if(typeof cK==="string"&&cK.indexOf(cO)===0){if(cN.sizset){return cN}}else{cN[cw]=cP;if(cI(cN,cM,cL)){cN.sizset=true;return cN}cN.sizset=false}}}}}else{while((cN=cN[cE])){if(cJ||cN.nodeType===1){if(cI(cN,cM,cL)){return cN}}}}}}function bL(cE){return cE.length>1?function(cI,cH,cF){var cG=cE.length;while(cG--){if(!cE[cG](cI,cH,cF)){return false}}return true}:cE[0]}function b2(cE,cF,cG,cH,cK){var cI,cN=[],cJ=0,cL=cE.length,cM=cF!=null;for(;cJ<cL;cJ++){if((cI=cE[cJ])){if(!cG||cG(cI,cH,cK)){cN.push(cI);if(cM){cF.push(cJ)}}}}return cN}function cz(cG,cF,cI,cH,cJ,cE){if(cH&&!cH[cw]){cH=cz(cH)}if(cJ&&!cJ[cw]){cJ=cz(cJ,cE)}return cy(function(cU,cR,cM,cT){var cW,cS,cO,cN=[],cV=[],cL=cR.length,cK=cU||bW(cF||"*",cM.nodeType?[cM]:cM,[]),cP=cG&&(cU||!cF)?b2(cK,cN,cG,cM,cT):cK,cQ=cI?cJ||(cU?cG:cL||cH)?[]:cR:cP;if(cI){cI(cP,cQ,cM,cT)}if(cH){cW=b2(cQ,cV);cH(cW,[],cM,cT);cS=cW.length;while(cS--){if((cO=cW[cS])){cQ[cV[cS]]=!(cP[cV[cS]]=cO)}}}if(cU){if(cJ||cG){if(cJ){cW=[];cS=cQ.length;while(cS--){if((cO=cQ[cS])){cW.push((cP[cS]=cO))}}cJ(null,(cQ=[]),cW,cT)}cS=cQ.length;while(cS--){if((cO=cQ[cS])&&(cW=cJ?bV.call(cU,cO):cN[cS])>-1){cU[cW]=!(cR[cW]=cO)}}}}else{cQ=b2(cQ===cR?cQ.splice(cL,cQ.length):cQ);if(cJ){cJ(null,cR,cQ,cT)}else{ct.apply(cR,cQ)}}})}function b4(cK){var cF,cI,cG,cJ=cK.length,cN=ci.relative[cK[0].type],cO=cN||ci.relative[" "],cH=cN?1:0,cL=b3(function(cP){return cP===cF},cO,true),cM=b3(function(cP){return bV.call(cF,cP)>-1},cO,true),cE=[function(cR,cQ,cP){return(!cN&&(cP||cQ!==cg))||((cF=cQ).nodeType?cL(cR,cQ,cP):cM(cR,cQ,cP))}];for(;cH<cJ;cH++){if((cI=ci.relative[cK[cH].type])){cE=[b3(bL(cE),cI)]}else{cI=ci.filter[cK[cH].type].apply(null,cK[cH].matches);if(cI[cw]){cG=++cH;for(;cG<cJ;cG++){if(ci.relative[cK[cG].type]){break}}return cz(cH>1&&bL(cE),cH>1&&cK.slice(0,cH-1).join("").replace(cq,"$1"),cI,cH<cG&&b4(cK.slice(cH,cG)),cG<cJ&&b4((cK=cK.slice(cG))),cG<cJ&&cK.join(""))}cE.push(cI)}}return bL(cE)}function bD(cH,cG){var cE=cG.length>0,cI=cH.length>0,cF=function(cS,cM,cR,cQ,cY){var cN,cO,cT,cX=[],cW=0,cP="0",cJ=cS&&[],cU=cY!=null,cV=cg,cL=cS||cI&&ci.find.TAG("*",cY&&cM.parentNode||cM),cK=(bY+=cV==null?1:Math.E);if(cU){cg=cM!==bF&&cM;cu=cF.el}for(;(cN=cL[cP])!=null;cP++){if(cI&&cN){for(cO=0;(cT=cH[cO]);cO++){if(cT(cN,cM,cR)){cQ.push(cN);break}}if(cU){bY=cK;cu=++cF.el}}if(cE){if((cN=!cT&&cN)){cW--}if(cS){cJ.push(cN)}}}cW+=cP;if(cE&&cP!==cW){for(cO=0;(cT=cG[cO]);cO++){cT(cJ,cX,cM,cR)}if(cS){if(cW>0){while(cP--){if(!(cJ[cP]||cX[cP])){cX[cP]=cb.call(cQ)}}}cX=b2(cX)}ct.apply(cQ,cX);if(cU&&!cS&&cX.length>0&&(cW+cG.length)>1){cn.uniqueSort(cQ)}}if(cU){bY=cK;cg=cV}return cJ};cF.el=0;return cE?cy(cF):cF}bK=cn.compile=function(cE,cJ){var cG,cF=[],cI=[],cH=bU[cw][cE+" "];if(!cH){if(!cJ){cJ=by(cE)}cG=cJ.length;while(cG--){cH=b4(cJ[cG]);if(cH[cw]){cF.push(cH)}else{cI.push(cH)}}cH=bU(cE,bD(cI,cF))}return cH};function bW(cF,cI,cH){var cG=0,cE=cI.length;for(;cG<cE;cG++){cn(cF,cI[cG],cH)}return cH}function cv(cG,cE,cI,cM,cL){var cJ,cP,cF,cO,cN,cK=by(cG),cH=cK.length;if(!cM){if(cK.length===1){cP=cK[0]=cK[0].slice(0);if(cP.length>2&&(cF=cP[0]).type==="ID"&&cE.nodeType===9&&!cL&&ci.relative[cP[1].type]){cE=ci.find.ID(cF.matches[0].replace(b0,""),cE,cL)[0];if(!cE){return cI}cG=cG.slice(cP.shift().length)}for(cJ=cd.POS.test(cG)?-1:cP.length-1;cJ>=0;cJ--){cF=cP[cJ];if(ci.relative[(cO=cF.type)]){break}if((cN=ci.find[cO])){if((cM=cN(cF.matches[0].replace(b0,""),co.test(cP[0].type)&&cE.parentNode||cE,cL))){cP.splice(cJ,1);cG=cM.length&&cP.join("");if(!cG){ct.apply(cI,bS.call(cM,0));return cI}break}}}}}bK(cG,cK)(cM,cE,cL,cI,co.test(cG));return cI}if(bF.querySelectorAll){(function(){var cJ,cK=cv,cI=/'|\\/g,cG=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,cF=[":focus"],cE=[":active"],cH=bI.matchesSelector||bI.mozMatchesSelector||bI.webkitMatchesSelector||bI.oMatchesSelector||bI.msMatchesSelector;ch(function(cL){cL.innerHTML="<select><option selected=''></option></select>";if(!cL.querySelectorAll("[selected]").length){cF.push("\\["+b5+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!cL.querySelectorAll(":checked").length){cF.push(":checked")}});ch(function(cL){cL.innerHTML="<p test=''></p>";if(cL.querySelectorAll("[test^='']").length){cF.push("[*^$]="+b5+"*(?:\"\"|'')")}cL.innerHTML="<input type='hidden'/>";if(!cL.querySelectorAll(":enabled").length){cF.push(":enabled",":disabled")}});cF=new RegExp(cF.join("|"));cv=function(cR,cM,cT,cW,cV){if(!cW&&!cV&&!cF.test(cR)){var cP,cU,cO=true,cL=cw,cN=cM,cS=cM.nodeType===9&&cR;if(cM.nodeType===1&&cM.nodeName.toLowerCase()!=="object"){cP=by(cR);if((cO=cM.getAttribute("id"))){cL=cO.replace(cI,"\\$&")}else{cM.setAttribute("id",cL)}cL="[id='"+cL+"'] ";cU=cP.length;while(cU--){cP[cU]=cL+cP[cU].join("")}cN=co.test(cR)&&cM.parentNode||cM;cS=cP.join(",")}if(cS){try{ct.apply(cT,bS.call(cN.querySelectorAll(cS),0));return cT}catch(cQ){}finally{if(!cO){cM.removeAttribute("id")}}}}return cK(cR,cM,cT,cW,cV)};if(cH){ch(function(cM){cJ=cH.call(cM,"div");try{cH.call(cM,"[test!='']:sizzle");cE.push("!=",cD)}catch(cL){}});cE=new RegExp(cE.join("|"));cn.matchesSelector=function(cM,cO){cO=cO.replace(cG,"='$1']");if(!bT(cM)&&!cE.test(cO)&&!cF.test(cO)){try{var cL=cH.call(cM,cO);if(cL||cJ||cM.document&&cM.document.nodeType!==11){return cL}}catch(cN){}}return cn(cO,null,null,[cM]).length>0}}})()}ci.pseudos.nth=ci.pseudos.eq;function bQ(){}ci.filters=bQ.prototype=ci.pseudos;ci.setFilters=new bQ();cn.attr=E.attr;E.find=cn;E.expr=cn.selectors;E.expr[":"]=E.expr.pseudos;E.unique=cn.uniqueSort;E.text=cn.getText;E.isXMLDoc=cn.isXML;E.contains=cn.contains})(bf);var W=/Until$/,ai=/^(?:parents|prev(?:Until|All))/,bs=/^.[^:#\[\.,]*$/,aS=E.expr.match.needsContext,aq={children:true,contents:true,next:true,prev:true};E.fn.extend({find:function(bw){var bA,bx,bC,bD,bB,bz,by=this;if(typeof bw!=="string"){return E(bw).filter(function(){for(bA=0,bx=by.length;bA<bx;bA++){if(E.contains(by[bA],this)){return true}}})}bz=this.pushStack("","find",bw);for(bA=0,bx=this.length;bA<bx;bA++){bC=bz.length;E.find(bw,this[bA],bz);if(bA>0){for(bD=bC;bD<bz.length;bD++){for(bB=0;bB<bC;bB++){if(bz[bB]===bz[bD]){bz.splice(bD--,1);break}}}}}return bz},has:function(bz){var by,bx=E(bz,this),bw=bx.length;return this.filter(function(){for(by=0;by<bw;by++){if(E.contains(this,bx[by])){return true}}})},not:function(bw){return this.pushStack(aB(this,bw,false),"not",bw)},filter:function(bw){return this.pushStack(aB(this,bw,true),"filter",bw)},is:function(bw){return !!bw&&(typeof bw==="string"?aS.test(bw)?E(bw,this.context).index(this[0])>=0:E.filter(bw,this).length>0:this.filter(bw).length>0)},closest:function(bA,bz){var bB,by=0,bw=this.length,bx=[],bC=aS.test(bA)||typeof bA!=="string"?E(bA,bz||this.context):0;for(;by<bw;by++){bB=this[by];while(bB&&bB.ownerDocument&&bB!==bz&&bB.nodeType!==11){if(bC?bC.index(bB)>-1:E.find.matchesSelector(bB,bA)){bx.push(bB);break}bB=bB.parentNode}}bx=bx.length>1?E.unique(bx):bx;return this.pushStack(bx,"closest",bA)},index:function(bw){if(!bw){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof bw==="string"){return E.inArray(this[0],E(bw))}return E.inArray(bw.jqx?bw[0]:bw,this)},add:function(bw,bx){var bz=typeof bw==="string"?E(bw,bx):E.makeArray(bw&&bw.nodeType?[bw]:bw),by=E.merge(this.get(),bz);return this.pushStack(z(bz[0])||z(by[0])?by:E.unique(by))},addBack:function(bw){return this.add(bw==null?this.prevObject:this.prevObject.filter(bw))}});E.fn.andSelf=E.fn.addBack;function z(bw){return !bw||!bw.parentNode||bw.parentNode.nodeType===11}function aD(bx,bw){do{bx=bx[bw]}while(bx&&bx.nodeType!==1);return bx}E.each({parent:function(bx){var bw=bx.parentNode;return bw&&bw.nodeType!==11?bw:null},parents:function(bw){return E.dir(bw,"parentNode")},parentsUntil:function(bx,bw,by){return E.dir(bx,"parentNode",by)},next:function(bw){return aD(bw,"nextSibling")},prev:function(bw){return aD(bw,"previousSibling")},nextAll:function(bw){return E.dir(bw,"nextSibling")},prevAll:function(bw){return E.dir(bw,"previousSibling")},nextUntil:function(bx,bw,by){return E.dir(bx,"nextSibling",by)},prevUntil:function(bx,bw,by){return E.dir(bx,"previousSibling",by)},siblings:function(bw){return E.sibling((bw.parentNode||{}).firstChild,bw)},children:function(bw){return E.sibling(bw.firstChild)},contents:function(bw){return E.nodeName(bw,"iframe")?bw.contentDocument||bw.contentWindow.document:E.merge([],bw.childNodes)}},function(bw,bx){E.fn[bw]=function(bA,by){var bz=E.map(this,bx,bA);if(!W.test(bw)){by=bA}if(by&&typeof by==="string"){bz=E.filter(by,bz)}bz=this.length>1&&!aq[bw]?E.unique(bz):bz;if(this.length>1&&ai.test(bw)){bz=bz.reverse()}return this.pushStack(bz,bw,aF.call(arguments).join(","))}});E.extend({filter:function(by,bw,bx){if(bx){by=":not("+by+")"}return bw.length===1?E.find.matchesSelector(bw[0],by)?[bw[0]]:[]:E.find.matches(by,bw)},dir:function(by,bx,bA){var bw=[],bz=by[bx];while(bz&&bz.nodeType!==9&&(bA===I||bz.nodeType!==1||!E(bz).is(bA))){if(bz.nodeType===1){bw.push(bz)}bz=bz[bx]}return bw},sibling:function(by,bx){var bw=[];for(;by;by=by.nextSibling){if(by.nodeType===1&&by!==bx){bw.push(by)}}return bw}});function aB(bz,by,bw){by=by||0;if(E.isFunction(by)){return E.grep(bz,function(bB,bA){var bC=!!by.call(bB,bA,bB);return bC===bw})}else{if(by.nodeType){return E.grep(bz,function(bB,bA){return(bB===by)===bw})}else{if(typeof by==="string"){var bx=E.grep(bz,function(bA){return bA.nodeType===1});if(bs.test(by)){return E.filter(by,bx,!bw)}else{by=E.filter(by,bx)}}}}return E.grep(bz,function(bB,bA){return(E.inArray(bB,by)>=0)===bw})}function c(bw){var by=aL.split("|"),bx=bw.createDocumentFragment();if(bx.createElement){while(by.length){bx.createElement(by.pop())}}return bx}var aL="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ac=/ JQXLite\d+="(?:null|\d+)"/g,aj=/^\s+/,N=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,e=/<([\w:]+)/,x=/<tbody/i,R=/<|&#?\w+;/,Y=/<(?:script|style|link)/i,K=/<(?:script|object|embed|option|style)/i,ae=new RegExp("<(?:"+aL+")[\\s/>]","i"),T=/^(?:checkbox|radio)$/,q=/checked\s*(?:[^=]|=\s*.checked.)/i,br=/\/(java|ecma)script/i,aI=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,ao={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},V=c(am),bi=V.appendChild(am.createElement("div"));ao.optgroup=ao.option;ao.tbody=ao.tfoot=ao.colgroup=ao.caption=ao.thead;ao.th=ao.td;if(!E.support.htmlSerialize){ao._default=[1,"X<div>","</div>"]}E.fn.extend({text:function(bw){return E.access(this,function(bx){return bx===I?E.text(this):this.empty().append((this[0]&&this[0].ownerDocument||am).createTextNode(bx))},null,bw,arguments.length)},wrapAll:function(bw){if(E.isFunction(bw)){return this.each(function(by){E(this).wrapAll(bw.call(this,by))})}if(this[0]){var bx=E(bw,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bx.insertBefore(this[0])}bx.map(function(){var by=this;while(by.firstChild&&by.firstChild.nodeType===1){by=by.firstChild}return by}).append(this)}return this},wrapInner:function(bw){if(E.isFunction(bw)){return this.each(function(bx){E(this).wrapInner(bw.call(this,bx))})}return this.each(function(){var bx=E(this),by=bx.contents();if(by.length){by.wrapAll(bw)}else{bx.append(bw)}})},wrap:function(bw){var bx=E.isFunction(bw);return this.each(function(by){E(this).wrapAll(bx?bw.call(this,by):bw)})},unwrap:function(){return this.parent().each(function(){if(!E.nodeName(this,"body")){E(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(bw){if(this.nodeType===1||this.nodeType===11){this.appendChild(bw)}})},prepend:function(){return this.domManip(arguments,true,function(bw){if(this.nodeType===1||this.nodeType===11){this.insertBefore(bw,this.firstChild)}})},before:function(){if(!z(this[0])){return this.domManip(arguments,false,function(bx){this.parentNode.insertBefore(bx,this)})}if(arguments.length){var bw=E.clean(arguments);return this.pushStack(E.merge(bw,this),"before",this.selector)}},after:function(){if(!z(this[0])){return this.domManip(arguments,false,function(bx){this.parentNode.insertBefore(bx,this.nextSibling)})}if(arguments.length){var bw=E.clean(arguments);return this.pushStack(E.merge(this,bw),"after",this.selector)}},remove:function(bw,bz){var by,bx=0;for(;(by=this[bx])!=null;bx++){if(!bw||E.filter(bw,[by]).length){if(!bz&&by.nodeType===1){E.cleanData(by.getElementsByTagName("*"));E.cleanData([by])}if(by.parentNode){by.parentNode.removeChild(by)}}}return this},empty:function(){var bx,bw=0;for(;(bx=this[bw])!=null;bw++){if(bx.nodeType===1){E.cleanData(bx.getElementsByTagName("*"))}while(bx.firstChild){bx.removeChild(bx.firstChild)}}return this},clone:function(bx,bw){bx=bx==null?false:bx;bw=bw==null?bx:bw;return this.map(function(){return E.clone(this,bx,bw)})},html:function(bw){return E.access(this,function(bA){var bz=this[0]||{},by=0,bx=this.length;if(bA===I){return bz.nodeType===1?bz.innerHTML.replace(ac,""):I}if(typeof bA==="string"&&!Y.test(bA)&&(E.support.htmlSerialize||!ae.test(bA))&&(E.support.leadingWhitespace||!aj.test(bA))&&!ao[(e.exec(bA)||["",""])[1].toLowerCase()]){bA=bA.replace(N,"<$1></$2>");try{for(;by<bx;by++){bz=this[by]||{};if(bz.nodeType===1){E.cleanData(bz.getElementsByTagName("*"));bz.innerHTML=bA}}bz=0}catch(bB){}}if(bz){this.empty().append(bA)}},null,bw,arguments.length)},replaceWith:function(bw){if(!z(this[0])){if(E.isFunction(bw)){return this.each(function(bz){var by=E(this),bx=by.html();by.replaceWith(bw.call(this,bz,bx))})}if(typeof bw!=="string"){bw=E(bw).detach()}return this.each(function(){var by=this.nextSibling,bx=this.parentNode;E(this).remove();if(by){E(by).before(bw)}else{E(bx).append(bw)}})}return this.length?this.pushStack(E(E.isFunction(bw)?bw():bw),"replaceWith",bw):this},detach:function(bw){return this.remove(bw,true)},domManip:function(bC,bG,bF){bC=[].concat.apply([],bC);var by,bA,bB,bE,bz=0,bD=bC[0],bx=[],bw=this.length;if(!E.support.checkClone&&bw>1&&typeof bD==="string"&&q.test(bD)){return this.each(function(){E(this).domManip(bC,bG,bF)})}if(E.isFunction(bD)){return this.each(function(bI){var bH=E(this);bC[0]=bD.call(this,bI,bG?bH.html():I);bH.domManip(bC,bG,bF)})}if(this[0]){by=E.buildFragment(bC,this,bx);bB=by.fragment;bA=bB.firstChild;if(bB.childNodes.length===1){bB=bA}if(bA){bG=bG&&E.nodeName(bA,"tr");for(bE=by.cacheable||bw-1;bz<bw;bz++){bF.call(bG&&E.nodeName(this[bz],"table")?a5(this[bz],"tbody"):this[bz],bz===bE?bB:E.clone(bB,true,true))}}bB=bA=null;if(bx.length){E.each(bx,function(bH,bI){if(bI.src){if(E.ajax){E.ajax({url:bI.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{E.error("no ajax")}}else{E.globalEval((bI.text||bI.textContent||bI.innerHTML||"").replace(aI,""))}if(bI.parentNode){bI.parentNode.removeChild(bI)}})}}return this}});function a5(bx,bw){return bx.getElementsByTagName(bw)[0]||bx.appendChild(bx.ownerDocument.createElement(bw))}function t(bD,bx){if(bx.nodeType!==1||!E.hasData(bD)){return}var bA,bz,bw,bC=E._data(bD),bB=E._data(bx,bC),by=bC.events;if(by){delete bB.handle;bB.events={};for(bA in by){for(bz=0,bw=by[bA].length;bz<bw;bz++){E.event.add(bx,bA,by[bA][bz])}}}if(bB.data){bB.data=E.extend({},bB.data)}}function ad(bx,bw){var by;if(bw.nodeType!==1){return}if(bw.clearAttributes){bw.clearAttributes()}if(bw.mergeAttributes){bw.mergeAttributes(bx)}by=bw.nodeName.toLowerCase();if(by==="object"){if(bw.parentNode){bw.outerHTML=bx.outerHTML}if(E.support.html5Clone&&(bx.innerHTML&&!E.trim(bw.innerHTML))){bw.innerHTML=bx.innerHTML}}else{if(by==="input"&&T.test(bx.type)){bw.defaultChecked=bw.checked=bx.checked;if(bw.value!==bx.value){bw.value=bx.value}}else{if(by==="option"){bw.selected=bx.defaultSelected}else{if(by==="input"||by==="textarea"){bw.defaultValue=bx.defaultValue}else{if(by==="script"&&bw.text!==bx.text){bw.text=bx.text}}}}}bw.removeAttribute(E.expando)}E.buildFragment=function(bz,bA,bx){var by,bw,bB,bC=bz[0];bA=bA||am;bA=!bA.nodeType&&bA[0]||bA;bA=bA.ownerDocument||bA;if(bz.length===1&&typeof bC==="string"&&bC.length<512&&bA===am&&bC.charAt(0)==="<"&&!K.test(bC)&&(E.support.checkClone||!q.test(bC))&&(E.support.html5Clone||!ae.test(bC))){bw=true;by=E.fragments[bC];bB=by!==I}if(!by){by=bA.createDocumentFragment();E.clean(bz,bA,by,bx);if(bw){E.fragments[bC]=bB&&by}}return{fragment:by,cacheable:bw}};E.fragments={};E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(bw,bx){E.fn[bw]=function(by){var bA,bC=0,bB=[],bE=E(by),bz=bE.length,bD=this.length===1&&this[0].parentNode;if((bD==null||bD&&bD.nodeType===11&&bD.childNodes.length===1)&&bz===1){bE[bx](this[0]);return this}else{for(;bC<bz;bC++){bA=(bC>0?this.clone(true):this).get();E(bE[bC])[bx](bA);bB=bB.concat(bA)}return this.pushStack(bB,bw,bE.selector)}}});function bm(bw){if(typeof bw.getElementsByTagName!=="undefined"){return bw.getElementsByTagName("*")}else{if(typeof bw.querySelectorAll!=="undefined"){return bw.querySelectorAll("*")}else{return[]}}}function an(bw){if(T.test(bw.type)){bw.defaultChecked=bw.checked}}E.extend({clone:function(bA,bC,by){var bw,bx,bz,bB;if(E.support.html5Clone||E.isXMLDoc(bA)||!ae.test("<"+bA.nodeName+">")){bB=bA.cloneNode(true)}else{bi.innerHTML=bA.outerHTML;bi.removeChild(bB=bi.firstChild)}if((!E.support.noCloneEvent||!E.support.noCloneChecked)&&(bA.nodeType===1||bA.nodeType===11)&&!E.isXMLDoc(bA)){ad(bA,bB);bw=bm(bA);bx=bm(bB);for(bz=0;bw[bz];++bz){if(bx[bz]){ad(bw[bz],bx[bz])}}}if(bC){t(bA,bB);if(by){bw=bm(bA);bx=bm(bB);for(bz=0;bw[bz];++bz){t(bw[bz],bx[bz])}}}bw=bx=null;return bB},clean:function(bJ,by,bw,bz){var bG,bF,bI,bN,bC,bM,bD,bA,bx,bH,bL,bE,bB=by===am&&V,bK=[];if(!by||typeof by.createDocumentFragment==="undefined"){by=am}for(bG=0;(bI=bJ[bG])!=null;bG++){if(typeof bI==="number"){bI+=""}if(!bI){continue}if(typeof bI==="string"){if(!R.test(bI)){bI=by.createTextNode(bI)}else{bB=bB||c(by);bD=by.createElement("div");bB.appendChild(bD);bI=bI.replace(N,"<$1></$2>");bN=(e.exec(bI)||["",""])[1].toLowerCase();bC=ao[bN]||ao._default;bM=bC[0];bD.innerHTML=bC[1]+bI+bC[2];while(bM--){bD=bD.lastChild}if(!E.support.tbody){bA=x.test(bI);bx=bN==="table"&&!bA?bD.firstChild&&bD.firstChild.childNodes:bC[1]==="<table>"&&!bA?bD.childNodes:[];for(bF=bx.length-1;bF>=0;--bF){if(E.nodeName(bx[bF],"tbody")&&!bx[bF].childNodes.length){bx[bF].parentNode.removeChild(bx[bF])}}}if(!E.support.leadingWhitespace&&aj.test(bI)){bD.insertBefore(by.createTextNode(aj.exec(bI)[0]),bD.firstChild)}bI=bD.childNodes;bD.parentNode.removeChild(bD)}}if(bI.nodeType){bK.push(bI)}else{E.merge(bK,bI)}}if(bD){bI=bD=bB=null}if(!E.support.appendChecked){for(bG=0;(bI=bK[bG])!=null;bG++){if(E.nodeName(bI,"input")){an(bI)}else{if(typeof bI.getElementsByTagName!=="undefined"){E.grep(bI.getElementsByTagName("input"),an)}}}}if(bw){bL=function(bO){if(!bO.type||br.test(bO.type)){return bz?bz.push(bO.parentNode?bO.parentNode.removeChild(bO):bO):bw.appendChild(bO)}};for(bG=0;(bI=bK[bG])!=null;bG++){if(!(E.nodeName(bI,"script")&&bL(bI))){bw.appendChild(bI);if(typeof bI.getElementsByTagName!=="undefined"){bE=E.grep(E.merge([],bI.getElementsByTagName("script")),bL);bK.splice.apply(bK,[bG+1,0].concat(bE));bG+=bE.length}}}}return bK},cleanData:function(bx,bF){var bA,by,bz,bE,bB=0,bG=E.expando,bw=E.cache,bC=E.support.deleteExpando,bD=E.event.special;for(;(bz=bx[bB])!=null;bB++){if(bF||E.acceptData(bz)){by=bz[bG];bA=by&&bw[by];if(bA){if(bA.events){for(bE in bA.events){if(bD[bE]){E.event.remove(bz,bE)}else{E.removeEvent(bz,bE,bA.handle)}}}if(bw[by]){delete bw[by];if(bC){delete bz[bG]}else{if(bz.removeAttribute){bz.removeAttribute(bG)}else{bz[bG]=null}}E.deletedIds.push(by)}}}}}});(function(){var bw,bx;E.uaMatch=function(bz){bz=bz.toLowerCase();var by=/(chrome)[ \/]([\w.]+)/.exec(bz)||/(webkit)[ \/]([\w.]+)/.exec(bz)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(bz)||/(msie) ([\w.]+)/.exec(bz)||bz.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(bz)||[];return{browser:by[1]||"",version:by[2]||"0"}};bw=E.uaMatch(bv.userAgent);bx={};if(bw.browser){bx[bw.browser]=true;bx.version=bw.version}if(bx.chrome){bx.webkit=true}else{if(bx.webkit){bx.safari=true}}E.browser=bx;E.sub=function(){function bz(bB,bC){return new bz.fn.init(bB,bC)}E.extend(true,bz,this);bz.superclass=this;bz.fn=bz.prototype=this();bz.fn.constructor=bz;bz.sub=this.sub;bz.fn.init=function bA(bB,bC){if(bC&&bC instanceof E&&!(bC instanceof bz)){bC=bz(bC)}return E.fn.init.call(this,bB,bC,by)};bz.fn.init.prototype=bz.fn;var by=bz(am);return bz}})();var S,be,n,af=/alpha\([^)]*\)/i,al=/opacity=([^)]*)/,y=/^(top|right|bottom|left)$/,ak=/^(none|table(?!-c[ea]).+)/,ax=/^margin/,k=new RegExp("^("+aG+")(.*)$","i"),aX=new RegExp("^("+aG+")(?!px)[a-z%]+$","i"),G=new RegExp("^([-+])=("+aG+")","i"),L={BODY:"block"},bc={position:"absolute",visibility:"hidden",display:"block"},aN={letterSpacing:0,fontWeight:400},F=["Top","Right","Bottom","Left"],Q=["Webkit","O","Moz","ms"],bg=E.fn.toggle;function a4(bz,bx){if(bx in bz){return bx}var bA=bx.charAt(0).toUpperCase()+bx.slice(1),bw=bx,by=Q.length;while(by--){bx=Q[by]+bA;if(bx in bz){return bx}}return bw}function ar(bx,bw){bx=bw||bx;return E.css(bx,"display")==="none"||!E.contains(bx.ownerDocument,bx)}function bd(bB,bw){var bA,bC,bx=[],by=0,bz=bB.length;for(;by<bz;by++){bA=bB[by];if(!bA.style){continue}bx[by]=E._data(bA,"olddisplay");if(bw){if(!bx[by]&&bA.style.display==="none"){bA.style.display=""}if(bA.style.display===""&&ar(bA)){bx[by]=E._data(bA,"olddisplay",aP(bA.nodeName))}}else{bC=S(bA,"display");if(!bx[by]&&bC!=="none"){E._data(bA,"olddisplay",bC)}}}for(by=0;by<bz;by++){bA=bB[by];if(!bA.style){continue}if(!bw||bA.style.display==="none"||bA.style.display===""){bA.style.display=bw?bx[by]||"":"none"}}return bB}E.fn.extend({css:function(bw,bx){return E.access(this,function(bz,by,bA){return bA!==I?E.style(bz,by,bA):E.css(bz,by)},bw,bx,arguments.length>1)},show:function(){return bd(this,true)},hide:function(){return bd(this)},toggle:function(by,bx){var bw=typeof by==="boolean";if(E.isFunction(by)&&E.isFunction(bx)){return bg.apply(this,arguments)}return this.each(function(){if(bw?by:ar(this)){E(this).show()}else{E(this).hide()}})}});E.extend({cssHooks:{opacity:{get:function(by,bx){if(bx){var bw=S(by,"opacity");return bw===""?"1":bw}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":E.support.cssFloat?"cssFloat":"styleFloat"},style:function(by,bx,bE,bz){if(!by||by.nodeType===3||by.nodeType===8||!by.style){return}var bC,bD,bF,bA=E.camelCase(bx),bw=by.style;bx=E.cssProps[bA]||(E.cssProps[bA]=a4(bw,bA));bF=E.cssHooks[bx]||E.cssHooks[bA];if(bE!==I){bD=typeof bE;if(bD==="string"&&(bC=G.exec(bE))){bE=(bC[1]+1)*bC[2]+parseFloat(E.css(by,bx));bD="number"}if(bE==null||bD==="number"&&isNaN(bE)){return}if(bD==="number"&&!E.cssNumber[bA]){bE+="px"}if(!bF||!("set" in bF)||(bE=bF.set(by,bE,bz))!==I){try{bw[bx]=bE}catch(bB){}}}else{if(bF&&"get" in bF&&(bC=bF.get(by,false,bz))!==I){return bC}return bw[bx]}},css:function(bC,bA,bB,bx){var bD,bz,bw,by=E.camelCase(bA);bA=E.cssProps[by]||(E.cssProps[by]=a4(bC.style,by));bw=E.cssHooks[bA]||E.cssHooks[by];if(bw&&"get" in bw){bD=bw.get(bC,true,bx)}if(bD===I){bD=S(bC,bA)}if(bD==="normal"&&bA in aN){bD=aN[bA]}if(bB||bx!==I){bz=parseFloat(bD);return bB||E.isNumeric(bz)?bz||0:bD}return bD},swap:function(bA,bz,bB){var by,bx,bw={};for(bx in bz){bw[bx]=bA.style[bx];bA.style[bx]=bz[bx]}by=bB.call(bA);for(bx in bz){bA.style[bx]=bw[bx]}return by}});if(bf.getComputedStyle){S=function(bD,bx){var bw,bA,bz,bC,bB=bf.getComputedStyle(bD,null),by=bD.style;if(bB){bw=bB.getPropertyValue(bx)||bB[bx];if(bw===""&&!E.contains(bD.ownerDocument,bD)){bw=E.style(bD,bx)}if(aX.test(bw)&&ax.test(bx)){bA=by.width;bz=by.minWidth;bC=by.maxWidth;by.minWidth=by.maxWidth=by.width=bw;bw=bB.width;by.width=bA;by.minWidth=bz;by.maxWidth=bC}}return bw}}else{if(am.documentElement.currentStyle){S=function(bA,by){var bB,bw,bx=bA.currentStyle&&bA.currentStyle[by],bz=bA.style;if(bx==null&&bz&&bz[by]){bx=bz[by]}if(aX.test(bx)&&!y.test(by)){bB=bz.left;bw=bA.runtimeStyle&&bA.runtimeStyle.left;if(bw){bA.runtimeStyle.left=bA.currentStyle.left}bz.left=by==="fontSize"?"1em":bx;bx=bz.pixelLeft+"px";bz.left=bB;if(bw){bA.runtimeStyle.left=bw}}return bx===""?"auto":bx}}}function aQ(bw,by,bz){var bx=k.exec(by);return bx?Math.max(0,bx[1]-(bz||0))+(bx[2]||"px"):by}function a1(bz,bx,bw,bB){var by=bw===(bB?"border":"content")?4:bx==="width"?1:0,bA=0;for(;by<4;by+=2){if(bw==="margin"){bA+=E.css(bz,bw+F[by],true)}if(bB){if(bw==="content"){bA-=parseFloat(S(bz,"padding"+F[by]))||0}if(bw!=="margin"){bA-=parseFloat(S(bz,"border"+F[by]+"Width"))||0}}else{bA+=parseFloat(S(bz,"padding"+F[by]))||0;if(bw!=="padding"){bA+=parseFloat(S(bz,"border"+F[by]+"Width"))||0}}}return bA}function aa(bz,bx,bw){var bA=bx==="width"?bz.offsetWidth:bz.offsetHeight,by=true,bB=E.support.boxSizing&&E.css(bz,"boxSizing")==="border-box";if(bA<=0||bA==null){bA=S(bz,bx);if(bA<0||bA==null){bA=bz.style[bx]}if(aX.test(bA)){return bA}by=bB&&(E.support.boxSizingReliable||bA===bz.style[bx]);bA=parseFloat(bA)||0}return(bA+a1(bz,bx,bw||(bB?"border":"content"),by))+"px"}function aP(by){if(L[by]){return L[by]}var bw=E("<"+by+">").appendTo(am.body),bx=bw.css("display");bw.remove();if(bx==="none"||bx===""){be=am.body.appendChild(be||E.extend(am.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!n||!be.createElement){n=(be.contentWindow||be.contentDocument).document;n.write("<!doctype html><html><body>");n.close()}bw=n.body.appendChild(n.createElement(by));bx=S(bw,"display");am.body.removeChild(be)}L[by]=bx;return bx}E.each(["height","width"],function(bx,bw){E.cssHooks[bw]={get:function(bA,bz,by){if(bz){if(bA.offsetWidth===0&&ak.test(S(bA,"display"))){return E.swap(bA,bc,function(){return aa(bA,bw,by)})}else{return aa(bA,bw,by)}}},set:function(bz,bA,by){return aQ(bz,bA,by?a1(bz,bw,by,E.support.boxSizing&&E.css(bz,"boxSizing")==="border-box"):0)}}});if(!E.support.opacity){E.cssHooks.opacity={get:function(bx,bw){return al.test((bw&&bx.currentStyle?bx.currentStyle.filter:bx.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":bw?"1":""},set:function(bA,bB){var bz=bA.style,bx=bA.currentStyle,bw=E.isNumeric(bB)?"alpha(opacity="+bB*100+")":"",by=bx&&bx.filter||bz.filter||"";bz.zoom=1;if(bB>=1&&E.trim(by.replace(af,""))===""&&bz.removeAttribute){bz.removeAttribute("filter");if(bx&&!bx.filter){return}}bz.filter=af.test(by)?by.replace(af,bw):by+" "+bw}}}E(function(){if(!E.support.reliableMarginRight){E.cssHooks.marginRight={get:function(bx,bw){return E.swap(bx,{display:"inline-block"},function(){if(bw){return S(bx,"marginRight")}})}}}if(!E.support.pixelPosition&&E.fn.position){E.each(["top","left"],function(bw,bx){E.cssHooks[bx]={get:function(bA,bz){if(bz){var by=S(bA,bx);return aX.test(by)?E(bA).position()[bx]+"px":by}}}})}});if(E.expr&&E.expr.filters){E.expr.filters.hidden=function(bw){return(bw.offsetWidth===0&&bw.offsetHeight===0)||(!E.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||S(bw,"display"))==="none")};E.expr.filters.visible=function(bw){return !E.expr.filters.hidden(bw)}}E.each({margin:"",padding:"",border:"Width"},function(bw,bx){E.cssHooks[bw+bx]={expand:function(bA){var bz,bB=typeof bA==="string"?bA.split(" "):[bA],by={};for(bz=0;bz<4;bz++){by[bw+F[bz]+bx]=bB[bz]||bB[bz-2]||bB[0]}return by}};if(!ax.test(bw)){E.cssHooks[bw+bx].set=aQ}});var i=/%20/g,ah=/\[\]$/,bt=/\r?\n/g,aW=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,r=/^(?:select|textarea)/i;E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?E.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||r.test(this.nodeName)||aW.test(this.type))}).map(function(bw,bx){var by=E(this).val();return by==null?null:E.isArray(by)?E.map(by,function(bA,bz){return{name:bx.name,value:bA.replace(bt,"\r\n")}}):{name:bx.name,value:by.replace(bt,"\r\n")}}).get()}});E.param=function(bw,by){var bz,bx=[],bA=function(bB,bC){bC=E.isFunction(bC)?bC():(bC==null?"":bC);bx[bx.length]=encodeURIComponent(bB)+"="+encodeURIComponent(bC)};if(by===I){by=E.ajaxSettings&&E.ajaxSettings.traditional}if(E.isArray(bw)||(bw.jqx&&!E.isPlainObject(bw))){E.each(bw,function(){bA(this.name,this.value)})}else{for(bz in bw){u(bz,bw[bz],by,bA)}}return bx.join("&").replace(i,"+")};function u(by,bA,bx,bz){var bw;if(E.isArray(bA)){E.each(bA,function(bC,bB){if(bx||ah.test(by)){bz(by,bB)}else{u(by+"["+(typeof bB==="object"?bC:"")+"]",bB,bx,bz)}})}else{if(!bx&&E.type(bA)==="object"){for(bw in bA){u(by+"["+bw+"]",bA[bw],bx,bz)}}else{bz(by,bA)}}}if(E.support.ajax){E.ajaxTransport(function(bw){if(!bw.crossDomain||E.support.cors){var bx;return{send:function(bD,by){var bB,bA,bC=bw.xhr();if(bw.username){bC.open(bw.type,bw.url,bw.async,bw.username,bw.password)}else{bC.open(bw.type,bw.url,bw.async)}if(bw.xhrFields){for(bA in bw.xhrFields){bC[bA]=bw.xhrFields[bA]}}if(bw.mimeType&&bC.overrideMimeType){bC.overrideMimeType(bw.mimeType)}if(!bw.crossDomain&&!bD["X-Requested-With"]){bD["X-Requested-With"]="XMLHttpRequest"}try{for(bA in bD){bC.setRequestHeader(bA,bD[bA])}}catch(bz){}bC.send((bw.hasContent&&bw.data)||null);bx=function(bM,bG){var bH,bF,bE,bK,bJ;try{if(bx&&(bG||bC.readyState===4)){bx=I;if(bB){bC.onreadystatechange=E.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[bB]}}if(bG){if(bC.readyState!==4){bC.abort()}}else{bH=bC.status;bE=bC.getAllResponseHeaders();bK={};bJ=bC.responseXML;if(bJ&&bJ.documentElement){bK.xml=bJ}try{bK.text=bC.responseText}catch(bL){}try{bF=bC.statusText}catch(bL){bF=""}if(!bH&&bw.isLocal&&!bw.crossDomain){bH=bK.text?200:404}else{if(bH===1223){bH=204}}}}}catch(bI){if(!bG){by(-1,bI)}}if(bK){by(bH,bF,bK,bE)}};if(!bw.async){bx()}else{if(bC.readyState===4){setTimeout(bx,0)}else{bB=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};E(bf).unload(xhrOnUnloadAbort)}xhrCallbacks[bB]=bx}bC.onreadystatechange=bx}}},abort:function(){if(bx){bx(0,1)}}}}})}var a8,a3,au=/^(?:toggle|show|hide)$/,aO=new RegExp("^(?:([-+])=|)("+aG+")([a-z%]*)$","i"),a9=/queueHooks$/,m=[bo],J={"*":[function(bw,bD){var bz,bE,bF=this.createTween(bw,bD),bA=aO.exec(bD),bB=bF.cur(),bx=+bB||0,by=1,bC=20;if(bA){bz=+bA[2];bE=bA[3]||(E.cssNumber[bw]?"":"px");if(bE!=="px"&&bx){bx=E.css(bF.elem,bw,true)||bz||1;do{by=by||".5";bx=bx/by;E.style(bF.elem,bw,bx+bE)}while(by!==(by=bF.cur()/bB)&&by!==1&&--bC)}bF.unit=bE;bF.start=bx;bF.end=bA[1]?bx+(bA[1]+1)*bz:bz}return bF}]};function bn(){setTimeout(function(){a8=I},0);return(a8=E.now())}function ab(bx,bw){E.each(bw,function(bC,bA){var bB=(J[bC]||[]).concat(J["*"]),by=0,bz=bB.length;for(;by<bz;by++){if(bB[by].call(bx,bC,bA)){return}}})}function bl(by,bC,bF){var bG,bB=0,bw=0,bx=m.length,bE=E.Deferred().always(function(){delete bA.elem}),bA=function(){var bM=a8||bn(),bJ=Math.max(0,bz.startTime+bz.duration-bM),bH=bJ/bz.duration||0,bL=1-bH,bI=0,bK=bz.tweens.length;for(;bI<bK;bI++){bz.tweens[bI].run(bL)}bE.notifyWith(by,[bz,bL,bJ]);if(bL<1&&bK){return bJ}else{bE.resolveWith(by,[bz]);return false}},bz=bE.promise({elem:by,props:E.extend({},bC),opts:E.extend(true,{specialEasing:{}},bF),originalProperties:bC,originalOptions:bF,startTime:a8||bn(),duration:bF.duration,tweens:[],createTween:function(bK,bH,bJ){var bI=E.Tween(by,bz.opts,bK,bH,bz.opts.specialEasing[bK]||bz.opts.easing);bz.tweens.push(bI);return bI},stop:function(bI){var bH=0,bJ=bI?bz.tweens.length:0;for(;bH<bJ;bH++){bz.tweens[bH].run(1)}if(bI){bE.resolveWith(by,[bz,bI])}else{bE.rejectWith(by,[bz,bI])}return this}}),bD=bz.props;aY(bD,bz.opts.specialEasing);for(;bB<bx;bB++){bG=m[bB].call(bz,by,bD,bz.opts);if(bG){return bG}}ab(bz,bD);if(E.isFunction(bz.opts.start)){bz.opts.start.call(by,bz)}E.fx.timer(E.extend(bA,{anim:bz,queue:bz.opts.queue,elem:by}));return bz.progress(bz.opts.progress).done(bz.opts.done,bz.opts.complete).fail(bz.opts.fail).always(bz.opts.always)}function aY(bz,bB){var by,bx,bC,bA,bw;for(by in bz){bx=E.camelCase(by);bC=bB[bx];bA=bz[by];if(E.isArray(bA)){bC=bA[1];bA=bz[by]=bA[0]}if(by!==bx){bz[bx]=bA;delete bz[by]}bw=E.cssHooks[bx];if(bw&&"expand" in bw){bA=bw.expand(bA);delete bz[bx];for(by in bA){if(!(by in bz)){bz[by]=bA[by];bB[by]=bC}}}else{bB[bx]=bC}}}E.Animation=E.extend(bl,{tweener:function(bx,bA){if(E.isFunction(bx)){bA=bx;bx=["*"]}else{bx=bx.split(" ")}var bz,bw=0,by=bx.length;for(;bw<by;bw++){bz=bx[bw];J[bz]=J[bz]||[];J[bz].unshift(bA)}},prefilter:function(bx,bw){if(bw){m.unshift(bx)}else{m.push(bx)}}});function bo(bA,bG,bw){var bF,by,bI,bz,bM,bC,bL,bK,bJ,bB=this,bx=bA.style,bH={},bE=[],bD=bA.nodeType&&ar(bA);if(!bw.queue){bK=E._queueHooks(bA,"fx");if(bK.unqueued==null){bK.unqueued=0;bJ=bK.empty.fire;bK.empty.fire=function(){if(!bK.unqueued){bJ()}}}bK.unqueued++;bB.always(function(){bB.always(function(){bK.unqueued--;if(!E.queue(bA,"fx").length){bK.empty.fire()}})})}if(bA.nodeType===1&&("height" in bG||"width" in bG)){bw.overflow=[bx.overflow,bx.overflowX,bx.overflowY];if(E.css(bA,"display")==="inline"&&E.css(bA,"float")==="none"){if(!E.support.inlineBlockNeedsLayout||aP(bA.nodeName)==="inline"){bx.display="inline-block"}else{bx.zoom=1}}}if(bw.overflow){bx.overflow="hidden";if(!E.support.shrinkWrapBlocks){bB.done(function(){bx.overflow=bw.overflow[0];bx.overflowX=bw.overflow[1];bx.overflowY=bw.overflow[2]})}}for(bF in bG){bI=bG[bF];if(au.exec(bI)){delete bG[bF];bC=bC||bI==="toggle";if(bI===(bD?"hide":"show")){continue}bE.push(bF)}}bz=bE.length;if(bz){bM=E._data(bA,"fxshow")||E._data(bA,"fxshow",{});if("hidden" in bM){bD=bM.hidden}if(bC){bM.hidden=!bD}if(bD){E(bA).show()}else{bB.done(function(){E(bA).hide()})}bB.done(function(){var bN;E.removeData(bA,"fxshow",true);for(bN in bH){E.style(bA,bN,bH[bN])}});for(bF=0;bF<bz;bF++){by=bE[bF];bL=bB.createTween(by,bD?bM[by]:0);bH[by]=bM[by]||E.style(bA,by);if(!(by in bM)){bM[by]=bL.start;if(bD){bL.end=bL.start;bL.start=by==="width"||by==="height"?1:0}}}}}function w(by,bx,bA,bw,bz){return new w.prototype.init(by,bx,bA,bw,bz)}E.Tween=w;w.prototype={constructor:w,init:function(bz,bx,bB,bw,bA,by){this.elem=bz;this.prop=bB;this.easing=bA||"swing";this.options=bx;this.start=this.now=this.cur();this.end=bw;this.unit=by||(E.cssNumber[bB]?"":"px")},cur:function(){var bw=w.propHooks[this.prop];return bw&&bw.get?bw.get(this):w.propHooks._default.get(this)},run:function(by){var bx,bw=w.propHooks[this.prop];if(this.options.duration){this.pos=bx=E.easing[this.easing](by,this.options.duration*by,0,1,this.options.duration)}else{this.pos=bx=by}this.now=(this.end-this.start)*bx+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(bw&&bw.set){bw.set(this)}else{w.propHooks._default.set(this)}return this}};w.prototype.init.prototype=w.prototype;w.propHooks={_default:{get:function(bx){var bw;if(bx.elem[bx.prop]!=null&&(!bx.elem.style||bx.elem.style[bx.prop]==null)){return bx.elem[bx.prop]}bw=E.css(bx.elem,bx.prop,false,"");return !bw||bw==="auto"?0:bw},set:function(bw){if(E.fx.step[bw.prop]){E.fx.step[bw.prop](bw)}else{if(bw.elem.style&&(bw.elem.style[E.cssProps[bw.prop]]!=null||E.cssHooks[bw.prop])){E.style(bw.elem,bw.prop,bw.now+bw.unit)}else{bw.elem[bw.prop]=bw.now}}}}};w.propHooks.scrollTop=w.propHooks.scrollLeft={set:function(bw){if(bw.elem.nodeType&&bw.elem.parentNode){bw.elem[bw.prop]=bw.now}}};E.each(["toggle","show","hide"],function(bx,bw){var by=E.fn[bw];E.fn[bw]=function(bz,bB,bA){return bz==null||typeof bz==="boolean"||(!bx&&E.isFunction(bz)&&E.isFunction(bB))?by.apply(this,arguments):this.animate(a0(bw,true),bz,bB,bA)}});E.fn.extend({fadeTo:function(bw,bz,by,bx){return this.filter(ar).css("opacity",0).show().end().animate({opacity:bz},bw,by,bx)},animate:function(bC,bz,bB,bA){var by=E.isEmptyObject(bC),bw=E.speed(bz,bB,bA),bx=function(){var bD=bl(this,E.extend({},bC),bw);if(by){bD.stop(true)}};return by||bw.queue===false?this.each(bx):this.queue(bw.queue,bx)},stop:function(by,bx,bw){var bz=function(bA){var bB=bA.stop;delete bA.stop;bB(bw)};if(typeof by!=="string"){bw=bx;bx=by;by=I}if(bx&&by!==false){this.queue(by||"fx",[])}return this.each(function(){var bD=true,bA=by!=null&&by+"queueHooks",bC=E.timers,bB=E._data(this);if(bA){if(bB[bA]&&bB[bA].stop){bz(bB[bA])}}else{for(bA in bB){if(bB[bA]&&bB[bA].stop&&a9.test(bA)){bz(bB[bA])}}}for(bA=bC.length;bA--;){if(bC[bA].elem===this&&(by==null||bC[bA].queue===by)){bC[bA].anim.stop(bw);bD=false;bC.splice(bA,1)}}if(bD||!bw){E.dequeue(this,by)}})}});function a0(by,bA){var bz,bw={height:by},bx=0;bA=bA?1:0;for(;bx<4;bx+=2-bA){bz=F[bx];bw["margin"+bz]=bw["padding"+bz]=by}if(bA){bw.opacity=bw.width=by}return bw}E.each({slideDown:a0("show"),slideUp:a0("hide"),slideToggle:a0("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(bw,bx){E.fn[bw]=function(by,bA,bz){return this.animate(bx,by,bA,bz)}});E.speed=function(by,bz,bx){var bw=by&&typeof by==="object"?E.extend({},by):{complete:bx||!bx&&bz||E.isFunction(by)&&by,duration:by,easing:bx&&bz||bz&&!E.isFunction(bz)&&bz};bw.duration=E.fx.off?0:typeof bw.duration==="number"?bw.duration:bw.duration in E.fx.speeds?E.fx.speeds[bw.duration]:E.fx.speeds._default;if(bw.queue==null||bw.queue===true){bw.queue="fx"}bw.old=bw.complete;bw.complete=function(){if(E.isFunction(bw.old)){bw.old.call(this)}if(bw.queue){E.dequeue(this,bw.queue)}};return bw};E.easing={linear:function(bw){return bw},swing:function(bw){return 0.5-Math.cos(bw*Math.PI)/2}};E.timers=[];E.fx=w.prototype.init;E.fx.tick=function(){var by,bx=E.timers,bw=0;a8=E.now();for(;bw<bx.length;bw++){by=bx[bw];if(!by()&&bx[bw]===by){bx.splice(bw--,1)}}if(!bx.length){E.fx.stop()}a8=I};E.fx.timer=function(bw){if(bw()&&E.timers.push(bw)&&!a3){a3=setInterval(E.fx.tick,E.fx.interval)}};E.fx.interval=13;E.fx.stop=function(){clearInterval(a3);a3=null};E.fx.speeds={slow:600,fast:200,_default:400};E.fx.step={};if(E.expr&&E.expr.filters){E.expr.filters.animated=function(bw){return E.grep(E.timers,function(bx){return bw===bx.elem}).length}}var X=/^(?:body|html)$/i;E.fn.offset=function(bG){if(arguments.length){return bG===I?this:this.each(function(bH){E.offset.setOffset(this,bG,bH)})}var bx,bC,bD,bA,bE,bw,bz,bB={top:0,left:0},by=this[0],bF=by&&by.ownerDocument;if(!bF){return}if((bC=bF.body)===by){return E.offset.bodyOffset(by)}bx=bF.documentElement;if(!E.contains(bx,by)){return bB}if(typeof by.getBoundingClientRect!=="undefined"){bB=by.getBoundingClientRect()}bD=aE(bF);bA=bx.clientTop||bC.clientTop||0;bE=bx.clientLeft||bC.clientLeft||0;bw=bD.pageYOffset||bx.scrollTop;bz=bD.pageXOffset||bx.scrollLeft;return{top:bB.top+bw-bA,left:bB.left+bz-bE}};E.offset={bodyOffset:function(bw){var by=bw.offsetTop,bx=bw.offsetLeft;if(E.support.doesNotIncludeMarginInBodyOffset){by+=parseFloat(E.css(bw,"marginTop"))||0;bx+=parseFloat(E.css(bw,"marginLeft"))||0}return{top:by,left:bx}},setOffset:function(bz,bI,bC){var bD=E.css(bz,"position");if(bD==="static"){bz.style.position="relative"}var bB=E(bz),bx=bB.offset(),bw=E.css(bz,"top"),bG=E.css(bz,"left"),bH=(bD==="absolute"||bD==="fixed")&&E.inArray("auto",[bw,bG])>-1,bF={},bE={},by,bA;if(bH){bE=bB.position();by=bE.top;bA=bE.left}else{by=parseFloat(bw)||0;bA=parseFloat(bG)||0}if(E.isFunction(bI)){bI=bI.call(bz,bC,bx)}if(bI.top!=null){bF.top=(bI.top-bx.top)+by}if(bI.left!=null){bF.left=(bI.left-bx.left)+bA}if("using" in bI){bI.using.call(bz,bF)}else{bB.css(bF)}}};E.fn.extend({isRendered:function(){var bx=this;var bw=this[0];if(bw.parentNode==null||(bw.offsetWidth===0||bw.offsetHeight===0)){return false}return true},getSizeFromStyle:function(){var bA=this;var bz=null;var bw=null;var by=this[0];var bx;if(by.style.width){bz=by.style.width}if(by.style.height){bw=by.style.height}if(bf.getComputedStyle){bx=getComputedStyle(by,null)}else{bx=by.currentStyle}if(bx){if(bx.width){bz=bx.width}if(bx.height){bw=bx.height}}if(bz==="0px"){bz=0}if(bw==="0px"){bw=0}if(bz===null){bz=0}if(bw===null){bw=0}return{width:bz,height:bw}},initAnimate:function(){},sizeStyleChanged:function(bz){var by=this;var bA;var bw=function(bB){var bC=bA;if(bB&&bB[0]&&bB[0].attributeName==="style"&&bB[0].type==="attributes"){if(bC.element.offsetWidth!==bC.offsetWidth||bC.element.offsetHeight!==bC.offsetHeight){bC.offsetWidth=bC.element.offsetWidth;bC.offsetHeight=bC.element.offsetHeight;if(by.isRendered()){bC.callback()}}}};bA={element:by[0],offsetWidth:by[0].offsetWidth,offsetHeight:by[0].offsetHeight,callback:bz};try{if(!by.elementStyleObserver){by.elementStyleObserver=new MutationObserver(bw);by.elementStyleObserver.observe(by[0],{attributes:true,childList:false,characterData:false})}}catch(bx){}},position:function(){if(!this[0]){return}var by=this[0],bx=this.offsetParent(),bz=this.offset(),bw=X.test(bx[0].nodeName)?{top:0,left:0}:bx.offset();bz.top-=parseFloat(E.css(by,"marginTop"))||0;bz.left-=parseFloat(E.css(by,"marginLeft"))||0;bw.top+=parseFloat(E.css(bx[0],"borderTopWidth"))||0;bw.left+=parseFloat(E.css(bx[0],"borderLeftWidth"))||0;return{top:bz.top-bw.top,left:bz.left-bw.left}},offsetParent:function(){return this.map(function(){var bw=this.offsetParent||am.body;while(bw&&(!X.test(bw.nodeName)&&E.css(bw,"position")==="static")){bw=bw.offsetParent}return bw||am.body})}});E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(by,bx){var bw=/Y/.test(bx);E.fn[by]=function(bz){return E.access(this,function(bA,bD,bC){var bB=aE(bA);if(bC===I){return bB?(bx in bB)?bB[bx]:bB.document.documentElement[bD]:bA[bD]}if(bB){bB.scrollTo(!bw?bC:E(bB).scrollLeft(),bw?bC:E(bB).scrollTop())}else{bA[bD]=bC}},by,bz,arguments.length,null)}});function aE(bw){return E.isWindow(bw)?bw:bw.nodeType===9?bw.defaultView||bw.parentWindow:false}E.each({Height:"height",Width:"width"},function(bw,bx){E.each({padding:"inner"+bw,content:bx,"":"outer"+bw},function(by,bz){E.fn[bz]=function(bD,bC){var bB=arguments.length&&(by||typeof bD!=="boolean"),bA=by||(bD===true||bC===true?"margin":"border");return E.access(this,function(bF,bE,bG){var bH;if(E.isWindow(bF)){return bF.document.documentElement["client"+bw]}if(bF.nodeType===9){bH=bF.documentElement;return Math.max(bF.body["scroll"+bw],bH["scroll"+bw],bF.body["offset"+bw],bH["offset"+bw],bH["client"+bw])}return bG===I?E.css(bF,bE,bG,bA):E.style(bF,bE,bG,bA)},bx,bB?bD:I,bB,null)}})});bf.JQXLite=bf.jqxHelper=E;if(typeof define==="function"&&define.amd&&define.amd.JQXLite){define("jqx",[],function(){return E})}})(window)}(function(f){if(f.jqxCore){f.$$=f.minQuery=f.JQXLite;if(!f.$){f.$=f.minQuery}return}if(f.jQuery){if(f.jQuery.fn.extend&&jQuery.fn.jquery==="3.7.1"){f.jQuery.fn.stop=f.JQXLite.fn.stop;f.jQuery.fn.animate=f.JQXLite.fn.animate;var e=Object.keys(f.JQXLite.fn);for(var c in e){var d=e[c];if(f.jQuery.fn[d]==undefined){f.jQuery.fn[d]=f.JQXLite.fn[d]}}}f.minQuery=f.JQXLite=f.jQuery;return}if(!f.$){f.$=f.minQuery=f.JQXLite}else{f.minQuery=f.JQXLite=f.$}})(window);JQXLite.generateID=function(){var c=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};var d="";do{d="jqx"+c()+c()+c()}while($("#"+d).length>0);return d};var b=window.jqxBaseFramework=window.minQuery||window.jQuery;(function(d){d.jqx=d.jqx||{};window.jqx=d.jqx;var c={createInstance:function(e,g,i){if(g=="jqxDataAdapter"){var h=i[0];var f=i[1]||{};return new d.jqx.dataAdapter(h,f)}d(e)[g](i||{});return d(e)[g]("getInstance")}};window.jqwidgets=c;d.jqx.define=function(e,f,g){e[f]=function(){if(this.baseType){this.base=new e[this.baseType]();this.base.defineInstance()}this.defineInstance();this.metaInfo()};e[f].prototype.defineInstance=function(){};e[f].prototype.metaInfo=function(){};e[f].prototype.base=null;e[f].prototype.baseType=undefined;if(g&&e[g]){e[f].prototype.baseType=g}};d.jqx.invoke=function(h,g){if(g.length==0){return}var i=typeof(g)==Array||g.length>0?g[0]:g;var f=typeof(g)==Array||g.length>1?Array.prototype.slice.call(g,1):d({}).toArray();while(h[i]==undefined&&h.base!=null){if(h[i]!=undefined&&d.isFunction(h[i])){return h[i].apply(h,f)}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]!=undefined&&d.isFunction(h[e])){return h[e].apply(h,f)}}h=h.base}if(h[i]!=undefined&&d.isFunction(h[i])){return h[i].apply(h,f)}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]!=undefined&&d.isFunction(h[e])){return h[e].apply(h,f)}}return};d.jqx.getByPriority=function(e){var g=undefined;for(var f=0;f<e.length&&g==undefined;f++){if(g==undefined&&e[f]!=undefined){g=e[f]}}return g};d.jqx.hasProperty=function(f,e){if(typeof(e)=="object"){for(var h in e){var g=f;while(g){if(g.hasOwnProperty(h)){return true}if(g.hasOwnProperty(h.toLowerCase())){return true}g=g.base}return false}}else{while(f){if(f.hasOwnProperty(e)){return true}if(f.hasOwnProperty(e.toLowerCase())){return true}f=f.base}}return false};d.jqx.hasFunction=function(h,g){if(g.length==0){return false}if(h==undefined){return false}var i=typeof(g)==Array||g.length>0?g[0]:g;var f=typeof(g)==Array||g.length>1?Array.prototype.slice.call(g,1):{};while(h[i]==undefined&&h.base!=null){if(h[i]&&d.isFunction(h[i])){return true}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]&&d.isFunction(h[e])){return true}}h=h.base}if(h[i]&&d.isFunction(h[i])){return true}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]&&d.isFunction(h[e])){return true}}return false};d.jqx.isPropertySetter=function(f,e){if(e.length==1&&typeof(e[0])=="object"){return true}if(e.length==2&&typeof(e[0])=="string"&&!d.jqx.hasFunction(f,e)){return true}return false};d.jqx.validatePropertySetter=function(j,g,e){if(!d.jqx.propertySetterValidation){return true}if(g.length==1&&typeof(g[0])=="object"){for(var h in g[0]){var k=j;while(!k.hasOwnProperty(h)&&k.base){k=k.base}if(!k||!k.hasOwnProperty(h)){if(!e){var f=k.hasOwnProperty(h.toString().toLowerCase());if(!f){throw"Invalid property: "+h}else{return true}}return false}}return true}if(g.length!=2){if(!e){throw"Invalid property: "+g.length>=0?g[0]:""}return false}while(!j.hasOwnProperty(g[0])&&j.base){j=j.base}if(!j||!j.hasOwnProperty(g[0])){if(!e){throw"Invalid property: "+g[0]}return false}return true};if(!Object.keys){Object.keys=(function(){var g=Object.prototype.hasOwnProperty,h=!({toString:null}).propertyIsEnumerable("toString"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=f.length;return function(l){if(typeof l!=="object"&&(typeof l!=="function"||l===null)){throw new TypeError("Object.keys called on non-object")}var j=[],m,k;for(m in l){if(g.call(l,m)){j.push(m)}}if(h){for(k=0;k<e;k++){if(g.call(l,f[k])){j.push(f[k])}}}return j}}())}d.jqx.set=function(h,k){var f=0;if(k.length==1&&typeof(k[0])=="object"){if(h.isInitialized&&Object.keys&&Object.keys(k[0]).length>1){var i=!h.base?h.element:h.base.element;var e=d.data(i,h.widgetName).initArgs;if(e&&JSON&&JSON.stringify&&k[0]&&e[0]){try{if(JSON.stringify(k[0])==JSON.stringify(e[0])){var j=true;d.each(k[0],function(n,o){if(h[n]!=o){j=false;return false}});if(j){return}}}catch(g){}}h.batchUpdate=k[0];var l={};var m={};d.each(k[0],function(n,o){var p=h;while(!p.hasOwnProperty(n)&&p.base!=null){p=p.base}if(p.hasOwnProperty(n)){if(h[n]!=o){l[n]=h[n];m[n]=o;f++}}else{if(p.hasOwnProperty(n.toLowerCase())){if(h[n.toLowerCase()]!=o){l[n.toLowerCase()]=h[n.toLowerCase()];m[n.toLowerCase()]=o;f++}}}});if(f<2){h.batchUpdate=null}}d.each(k[0],function(n,o){var p=h;while(!p.hasOwnProperty(n)&&p.base!=null){p=p.base}if(p.hasOwnProperty(n)){d.jqx.setvalueraiseevent(p,n,o)}else{if(p.hasOwnProperty(n.toLowerCase())){d.jqx.setvalueraiseevent(p,n.toLowerCase(),o)}else{if(d.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+n+"'"}}}});if(h.batchUpdate!=null){h.batchUpdate=null;if(h.propertiesChangedHandler&&f>1){h.propertiesChangedHandler(h,l,m)}}}else{if(k.length==2){while(!h.hasOwnProperty(k[0])&&h.base){h=h.base}if(h.hasOwnProperty(k[0])){d.jqx.setvalueraiseevent(h,k[0],k[1])}else{if(h.hasOwnProperty(k[0].toLowerCase())){d.jqx.setvalueraiseevent(h,k[0].toLowerCase(),k[1])}else{if(d.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+k[0]+"'"}}}}}};d.jqx.setvalueraiseevent=function(f,g,h){var e=f[g];f[g]=h;if(!f.isInitialized){return}if(f.propertyChangedHandler!=undefined){f.propertyChangedHandler(f,g,e,h)}if(f.propertyChangeMap!=undefined&&f.propertyChangeMap[g]!=undefined){f.propertyChangeMap[g](f,g,e,h)}};d.jqx.get=function(h,g){if(g==undefined||g==null){return undefined}if(h.propertyMap){var f=h.propertyMap(g);if(f!=null){return f}}if(h.hasOwnProperty(g)){return h[g]}if(h.hasOwnProperty(g.toLowerCase())){return h[g.toLowerCase()]}var e=undefined;if(typeof(g)==Array){if(g.length!=1){return undefined}e=g[0]}else{if(typeof(g)=="string"){e=g}}while(!h.hasOwnProperty(e)&&h.base){h=h.base}if(h){return h[e]}return undefined};d.jqx.serialize=function(h){var e="";if(d.isArray(h)){e="[";for(var g=0;g<h.length;g++){if(g>0){e+=", "}e+=d.jqx.serialize(h[g])}e+="]"}else{if(typeof(h)=="object"){e="{";var f=0;for(var g in h){if(f++>0){e+=", "}e+=g+": "+d.jqx.serialize(h[g])}e+="}"}else{e=h.toString()}}return e};d.jqx.propertySetterValidation=true;d.jqx.jqxWidgetProxy=function(j,f,e){var g=d(f);var i=d.data(f,j);if(i==undefined){return undefined}var h=i.instance;if(d.jqx.hasFunction(h,e)){return d.jqx.invoke(h,e)}if(d.jqx.isPropertySetter(h,e)){if(d.jqx.validatePropertySetter(h,e)){d.jqx.set(h,e);return undefined}}else{if(typeof(e)=="object"&&e.length==0){return}else{if(typeof(e)=="object"&&e.length==1&&d.jqx.hasProperty(h,e[0])){return d.jqx.get(h,e[0])}else{if(typeof(e)=="string"&&d.jqx.hasProperty(h,e[0])){return d.jqx.get(h,e)}}}}throw"jqxCore: Invalid parameter '"+d.jqx.serialize(e)+"' does not exist."};d.jqx.applyWidget=function(g,h,n,o){var k=false;try{k=window.MSApp!=undefined}catch(j){}var p=d(g);if(!o){o=new d.jqx["_"+h]()}else{o.host=p;o.element=g}if(g.id==""){g.id=d.jqx.utilities.createId()}var m={host:p,element:g,instance:o,initArgs:n};o.widgetName=h;d.data(g,h,m);d.data(g,"jqxWidget",m.instance);var l=new Array();var o=m.instance;while(o){o.isInitialized=false;l.push(o);o=o.base}l.reverse();l[0].theme=d.jqx.theme||"";d.jqx.jqxWidgetProxy(h,g,n);for(var f in l){o=l[f];if(f==0){o.host=p;o.element=g;o.WinJS=k}if(o!=undefined){if(o.definedInstance){o.definedInstance()}if(o.createInstance!=null){if(k){MSApp.execUnsafeLocalFunction(function(){o.createInstance(n)})}else{o.createInstance(n)}}}}for(var f in l){if(l[f]!=undefined){l[f].isInitialized=true}}if(k){MSApp.execUnsafeLocalFunction(function(){m.instance.refresh(true)})}else{m.instance.refresh(true)}};d.jqx.jqxWidget=function(f,g,i){var l=false;try{var n=Array.prototype.slice.call(i,0)}catch(k){var n=""}try{l=window.MSApp!=undefined}catch(k){}var j=f;var o="";if(g){o="_"+g}d.jqx.define(d.jqx,"_"+j,o);var m=new Array();if(!window[j]){var h=function(p){if(p==null){return""}var e=d.type(p);switch(e){case"string":case"number":case"date":case"boolean":case"bool":if(p===null){return""}return p.toString()}var q="";d.each(p,function(s,t){var v=t;if(s>0){q+=", "}q+="[";var r=0;if(d.type(v)=="object"){for(var u in v){if(r>0){q+=", "}q+="{"+u+":"+v[u]+"}";r++}}else{if(r>0){q+=", "}q+="{"+s+":"+v+"}";r++}q+="]"});return q};c[j]=window[j]=function(e,u){var p=[];if(!u){u={}}p.push(u);var q=e;if(d.type(q)==="object"&&e[0]){q=e[0].id;if(q===""){q=e[0].id=d.jqx.utilities.createId()}}else{if(d.type(e)==="object"&&e&&e.nodeName){q=e.id;if(q===""){q=e.id=d.jqx.utilities.createId()}}}if(window.jqxWidgets&&window.jqxWidgets[q]){if(u){d.each(window.jqxWidgets[q],function(v){var w=d(this.element).data();if(w&&w.jqxWidget){d(this.element)[j](u)}})}if(window.jqxWidgets[q].length==1){var s=d(window.jqxWidgets[q][0].widgetInstance.element).data();if(s&&s.jqxWidget){return window.jqxWidgets[q][0]}}var s=d(window.jqxWidgets[q][0].widgetInstance.element).data();if(s&&s.jqxWidget){return window.jqxWidgets[q]}}var r=d(e);if(r.length===0){r=d("<div></div>");if(j==="jqxInput"||j==="jqxPasswordInput"||j==="jqxMaskedInput"){r=d("<input/>")}if(j==="jqxTextArea"){r=d("<textarea></textarea>")}if(j==="jqxButton"||j==="jqxRepeatButton"||j==="jqxToggleButton"){r=d("<button/>")}if(j==="jqxSplitter"){r=d("<div><div>Panel 1</div><div>Panel 2</div></div>")}if(j==="jqxTabs"){r=d("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")}if(j==="jqxRibbon"){r=d("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")}if(j==="jqxDocking"){r=d("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")}if(j==="jqxWindow"){r=d("<div><div>Title 1</div><div>Content 1</div></div>")}}var t=[];d.each(r,function(y){var A=r[y];d.jqx.applyWidget(A,j,p,undefined);if(!m[j]){var w=d.data(A,"jqxWidget");var z=d.jqx["_"+j].prototype.defineInstance();var x={};if(d.jqx["_"+j].prototype.metaInfo){x=d.jqx["_"+j].prototype.metaInfo()}if(j=="jqxDockingLayout"){z=d.extend(z,d.jqx._jqxLayout.prototype.defineInstance())}if(j=="jqxToggleButton"||j=="jqxRepeatButton"){z=d.extend(z,d.jqx._jqxButton.prototype.defineInstance())}if(j=="jqxTreeGrid"){z=d.extend(z,d.jqx._jqxDataTable.prototype.defineInstance())}var v=function(C){var B=d.data(C,"jqxWidget");this.widgetInstance=B;var D=d.extend(this,B);D.on=D.addEventListener=function(F,G){D.addHandler(!D.base?D.host:D.base.host,F,G)};D.off=D.removeEventListener=function(F){D.removeHandler(!D.base?D.host:D.base.host,F)};for(var E in B){if(d.type(B[E])=="function"){D[E]=d.proxy(B[E],B)}}return D};m[j]=v;d.each(z,function(C,B){Object.defineProperty(v.prototype,C,{get:function(){if(this.widgetInstance){return this.widgetInstance[C]}return B},set:function(J){if(this.widgetInstance&&(this.widgetInstance[C]!=J||C==="width"||C==="height")){var H=this.widgetInstance[C];var G=J;var F=d.type(H);var D=d.type(G);var I=false;if(F!=D||C==="source"||C==="width"||C==="height"){I=true}if(I||(h(H)!=h(G))){var E={};E[C]=J;if(this.widgetInstance.host){this.widgetInstance.host[j](E)}else{this.widgetInstance.base.host[j](E)}this.widgetInstance[C]=J;if(this.widgetInstance.propertyUpdated){this.widgetInstance.propertyUpdated(C,H,J)}}}}})})}var w=new m[j](A);t.push(w);if(!window.jqxWidgets){window.jqxWidgets=new Array()}if(!window.jqxWidgets[q]){window.jqxWidgets[q]=new Array()}window.jqxWidgets[q].push(w)});if(t.length===1){return t[0]}return t}}d.fn[j]=function(){var e=Array.prototype.slice.call(arguments,0);if(e.length==0||(e.length==1&&typeof(e[0])=="object")){if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}return this.each(function(){var s=d(this);var r=this;var t=d.data(r,j);if(t==null){d.jqx.applyWidget(r,j,e,undefined)}else{d.jqx.jqxWidgetProxy(j,this,e)}})}else{if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}var q=null;var p=0;this.each(function(){var r=d.jqx.jqxWidgetProxy(j,this,e);if(p==0){q=r;p++}else{if(p==1){var s=[];s.push(q);q=s}q.push(r)}})}return q};try{d.extend(d.jqx["_"+j].prototype,Array.prototype.slice.call(i,0)[0])}catch(k){}d.extend(d.jqx["_"+j].prototype,{toThemeProperty:function(e,p){return d.jqx.toThemeProperty(this,e,p)},isMaterialized:function(){if(!this.theme){return false}if(this.theme==="fluent"){return true}if(this.theme==="light"){return true}if(this.theme==="dark"){return true}if(this.theme==="deepblue"){return true}if(this.theme.indexOf("material")>=0){return true}},isModern:function(){if(!this.theme){return false}if(this.theme.indexOf("light")>=0){return true}if(this.theme==="dark"){return true}},_addBarAndLabel:function(r){var q=this;var e=d("<label></label");e[0].innerHTML=this.placeHolder;e.addClass(q.toThemeProperty("jqx-input-label"));r.after(e);q.label=e;var p=d("<span></span>");r.after(p);p.addClass(q.toThemeProperty("jqx-input-bar"));q.bar=p;q.bar.css("top",this.host.height())}});d.jqx["_"+j].prototype.refresh=function(){if(this.base){this.base.refresh(true)}};d.jqx["_"+j].prototype.createInstance=function(){};d.jqx.isPassiveSupported=function(){var q=this;if(q.supportsPassive!==undefined){return q.supportsPassive}q.supportsPassive=false;try{var p=Object.defineProperty({},"passive",{get:function(){q.supportsPassive=true}});window.addEventListener("testPassive",null,p);window.removeEventListener("testPassive",null,p)}catch(r){}return q.supportsPassive};d.jqx["_"+j].prototype.addEventHandler=function(p,e){if(this.base){this.base.host.on(p,e)}else{this.host.on(p,e)}};d.jqx["_"+j].prototype.removeEventHandler=function(p,e){if(this.base){this.base.host.off(p)}else{this.host.off(p)}};d.jqx["_"+j].prototype.applyTo=function(q,p){if(!(p instanceof Array)){var e=[];e.push(p);p=e}d.jqx.applyWidget(q,j,p,this)};d.jqx["_"+j].prototype.getInstance=function(){return this};d.jqx["_"+j].prototype.propertyChangeMap={};d.jqx["_"+j].prototype.addHandler=function(r,e,p,q){d.jqx.addHandler(d(r),e,p,q)};d.jqx["_"+j].prototype.removeHandler=function(q,e,p){d.jqx.removeHandler(d(q),e,p)};d.jqx["_"+j].prototype.setOptions=function(){if(!this.host||!this.host.length||this.host.length!=1){return}return d.jqx.jqxWidgetProxy(j,this.host[0],arguments)}};d.jqx.toThemeProperty=function(f,g,l){if(f.theme==""){return g}var k=g.split(" ");var e="";for(var j=0;j<k.length;j++){if(j>0){e+=" "}var h=k[j];if(l!=null&&l){e+=h+"-"+f.theme}else{e+=h+" "+h+"-"+f.theme}}return e};d.jqx.addHandler=function(k,l,h,j){var f=l.split(" ");for(var e=0;e<f.length;e++){var g=f[e];if(window.addEventListener&&k[0]){switch(g){case"mousewheel":if(d.jqx.browser.mozilla){k[0].addEventListener("DOMMouseScroll",h,d.jqx.isPassiveSupported()?{passive:false}:false)}else{k[0].addEventListener("mousewheel",h,d.jqx.isPassiveSupported()?{passive:false}:false)}continue;case"mousemove":if(!j){k[0].addEventListener("mousemove",h,false);continue}break;case"touchmove":if(!j){k[0].addEventListener("touchmove",h,false);continue}else{if(j&&j.passive){k[0].addEventListener("touchmove",h,j);continue}}break}}if(j==undefined||j==null){if(k.on){k.on(g,h)}else{k.bind(g,h)}}else{if(k.on){k.on(g,j,h)}else{k.bind(g,j,h)}}}};d.jqx.removeHandler=function(j,k,h){if(!k){if(j.off){j.off()}else{j.unbind()}return}var f=k.split(" ");for(var e=0;e<f.length;e++){var g=f[e];if(window.removeEventListener){switch(g){case"mousewheel":if(d.jqx.browser.mozilla){j[0].removeEventListener("DOMMouseScroll",h,false)}else{j[0].removeEventListener("mousewheel",h,false)}continue;case"mousemove":if(h){j[0].removeEventListener("mousemove",h,false);continue}break;case"touchmove":if(h){j[0].removeEventListener("touchmove",h,false);continue}break}}if(g==undefined){if(j.off){j.off()}else{j.unbind()}continue}if(h==undefined){if(j.off){j.off(g)}else{j.unbind(g)}}else{if(j.off){j.off(g,h)}else{j.unbind(g,h)}}}};d.jqx.credits=d.jqx.credits||"";d.jqx.theme=d.jqx.theme||"";d.jqx.scrollAnimation=d.jqx.scrollAnimation||false;d.jqx.resizeDelay=d.jqx.resizeDelay||10;d.jqx.ready=function(){d(window).trigger("jqxReady")};d.jqx.init=function(){d.each(arguments[0],function(e,f){if(e=="theme"){d.jqx.theme=f}if(e=="scrollBarSize"){d.jqx.utilities.scrollBarSize=f}if(e=="touchScrollBarSize"){d.jqx.utilities.touchScrollBarSize=f}if(e=="scrollBarButtonsVisibility"){d.jqx.utilities.scrollBarButtonsVisibility=f}})};d.jqx.utilities=d.jqx.utilities||{};d.extend(d.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var e=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return"jqxWidget"+e()+e()+e()},setTheme:function(j,k,h){if(typeof h==="undefined"){return}if(!h[0].className.split){return}if(j===undefined){j=""}if(k===undefined){k=""}var l=h[0].className.split(" "),e=[],m=[],g=h.children();for(var f=0;f<l.length;f+=1){if(l[f].indexOf(j)>=0){if(j.length>0){e.push(l[f]);m.push(l[f].replace(j,k))}else{m.push(l[f].replace("-"+k,"")+"-"+k)}}}this._removeOldClasses(e,h);this._addNewClasses(m,h);for(var f=0;f<g.length;f+=1){this.setTheme(j,k,d(g[f]))}},_removeOldClasses:function(g,f){for(var e=0;e<g.length;e+=1){f.removeClass(g[e])}},_addNewClasses:function(g,f){for(var e=0;e<g.length;e+=1){f.addClass(g[e])}},getOffset:function(e){var g=d.jqx.mobile.getLeftPos(e[0]);var f=d.jqx.mobile.getTopPos(e[0]);return{top:f,left:g}},resize:function(k,v,s,r){if(r===undefined){r=true}var o=-1;var n=this;var g=function(x){if(!n.hiddenWidgets){return -1}var y=-1;for(var w=0;w<n.hiddenWidgets.length;w++){if(x.id){if(n.hiddenWidgets[w].id==x.id){y=w;break}}else{if(n.hiddenWidgets[w].id==x[0].id){y=w;break}}}return y};if(this.resizeHandlers){for(var l=0;l<this.resizeHandlers.length;l++){if(k.id){if(this.resizeHandlers[l].id==k.id){o=l;break}}else{if(this.resizeHandlers[l].id==k[0].id){o=l;break}}}if(s===true){if(o!=-1){this.resizeHandlers.splice(o,1);if(this.watchedElementData&&this.watchedElementData.length>0){this.watchedElementData.splice(o,1)}}if(this.resizeHandlers.length==0){var q=d(window);if(q.off){q.off("resize.jqx");q.off("orientationchange.jqx");q.off("orientationchanged.jqx")}else{q.unbind("resize.jqx");q.unbind("orientationchange.jqx");q.unbind("orientationchanged.jqx")}this.resizeHandlers=null}var e=g(k);if(e!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(e,1)}return}}else{if(s===true){var e=g(k);if(e!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(e,1)}return}}var n=this;var p=function(y,H){if(!n.resizeHandlers){return}var I=function(L){var i=-1;var M=L.parentNode;while(M){i++;M=M.parentNode}return i};var x=function(N,L){if(!N.widget||!L.widget){return 0}var M=I(N.widget[0]);var i=I(L.widget[0]);try{if(M<i){return -1}if(M>i){return 1}}catch(O){var P=O}return 0};var z=function(L){if(n.hiddenWidgets.length>0){n.hiddenWidgets.sort(x);var i=function(){var N=false;var P=new Array();for(var O=0;O<n.hiddenWidgets.length;O++){var M=n.hiddenWidgets[O];if(d.jqx.isHidden(M.widget)){N=true;P.push(M)}else{if(M.callback){M.callback(H)}}}n.hiddenWidgets=P;if(!N){clearInterval(n.__resizeInterval)}};if(L==false){i();if(n.__resizeInterval){clearInterval(n.__resizeInterval)}return}if(n.__resizeInterval){clearInterval(n.__resizeInterval)}n.__resizeInterval=setInterval(function(){i()},100)}};if(n.hiddenWidgets&&n.hiddenWidgets.length>0){z(false)}n.hiddenWidgets=new Array();n.resizeHandlers.sort(x);for(var E=0;E<n.resizeHandlers.length;E++){var K=n.resizeHandlers[E];var G=K.widget;var D=K.data;if(!D){continue}if(!D.jqxWidget){continue}var w=D.jqxWidget.width;var J=D.jqxWidget.height;if(D.jqxWidget.base){if(w==undefined){w=D.jqxWidget.base.width}if(J==undefined){J=D.jqxWidget.base.height}}if(w===undefined&&J===undefined){w=D.jqxWidget.element.style.width;J=D.jqxWidget.element.style.height}var F=false;if(w!=null&&w.toString().indexOf("%")!=-1){F=true}if(J!=null&&J.toString().indexOf("%")!=-1){F=true}if(d.jqx.isHidden(G)){if(g(G)===-1){if(F||y===true){if(K.data.nestedWidget!==true){n.hiddenWidgets.push(K)}}}}else{if(y===undefined||y!==true){if(F){K.callback(H);if(n.watchedElementData){for(var B=0;B<n.watchedElementData.length;B++){if(n.watchedElementData[B].element==D.jqxWidget.element){n.watchedElementData[B].offsetWidth=D.jqxWidget.element.offsetWidth;n.watchedElementData[B].offsetHeight=D.jqxWidget.element.offsetHeight;break}}}if(n.hiddenWidgets.indexOf(K)>=0){n.hiddenWidgets.splice(n.hiddenWidgets.indexOf(K),1)}}if(D.jqxWidget.element){var A=D.jqxWidget.element.className;if(A.indexOf("dropdownlist")>=0||A.indexOf("datetimeinput")>=0||A.indexOf("combobox")>=0||A.indexOf("menu")>=0){if(D.jqxWidget.isOpened){var C=D.jqxWidget.isOpened();if(C){if(H&&H=="resize"&&d.jqx.mobile.isTouchDevice()){continue}D.jqxWidget.close()}}}}}}}z()};if(!this.resizeHandlers){this.resizeHandlers=new Array();var q=d(window);if(q.on){this._resizeTimer=null;this._initResize=null;q.on("resize.jqx",function(i){if(n._resizeTimer!=undefined){clearTimeout(n._resizeTimer)}if(!n._initResize){n._initResize=true;p(null,"resize")}else{n._resizeTimer=setTimeout(function(){p(null,"resize")},d.jqx.resizeDelay)}});q.on("orientationchange.jqx",function(i){p(null,"orientationchange")});q.on("orientationchanged.jqx",function(i){p(null,"orientationchange")})}else{q.bind("resize.jqx",function(i){p(null,"orientationchange")});q.bind("orientationchange.jqx",function(i){p(null,"orientationchange")});q.bind("orientationchanged.jqx",function(i){p(null,"orientationchange")})}}var h=k.data();if(r){if(o===-1){this.resizeHandlers.push({id:k[0].id,widget:k,callback:v,data:h})}}try{var f=h.jqxWidget.width;var u=h.jqxWidget.height;if(h.jqxWidget.base){if(f==undefined){f=h.jqxWidget.base.width}if(u==undefined){u=h.jqxWidget.base.height}}if(f===undefined&&u===undefined){f=h.jqxWidget.element.style.width;u=h.jqxWidget.element.style.height}var m=false;if(f!=null&&f.toString().indexOf("%")!=-1){m=true}if(u!=null&&u.toString().indexOf("%")!=-1){m=true}if(m){if(!this.watchedElementData){this.watchedElementData=[]}var n=this;var j=function(i){if(n.watchedElementData.forEach){n.watchedElementData.forEach(function(w){if(w.element.offsetWidth!==w.offsetWidth||w.element.offsetHeight!==w.offsetHeight){w.offsetWidth=w.element.offsetWidth;w.offsetHeight=w.element.offsetHeight;if(w.timer){clearTimeout(w.timer)}w.timer=setTimeout(function(){if(!d.jqx.isHidden(d(w.element))){w.callback()}else{w.timer=setInterval(function(){if(!d.jqx.isHidden(d(w.element))){clearInterval(w.timer);w.callback()}},100)}})}})}};n.watchedElementData.push({element:k[0],offsetWidth:k[0].offsetWidth,offsetHeight:k[0].offsetHeight,callback:v});if(!n.observer){n.observer=new MutationObserver(j);n.observer.observe(document.body,{attributes:true,childList:true,characterData:true})}}}catch(t){}if(d.jqx.isHidden(k)&&r===true){p(true)}d.jqx.resize=function(){p(null,"resize")}},parseJSON:function(g){if(!g||typeof g!=="string"){return null}var e=/^[\],:{}\s]*$/,i=/(?:^|:|,)(?:\s*\[)+/g,f=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,h=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g;g=d.trim(g);if(window.JSON&&window.JSON.parse){return window.JSON.parse(g)}if(e.test(g.replace(f,"@").replace(h,"]").replace(i,""))){return(new Function("return "+g))()}throw new Error("Invalid JSON: "+g)},html:function(f,g){if(!d(f).on||!d.access){return d(f).html(g)}try{return d.access(f,function(u){var h=f[0]||{},o=0,m=f.length;if(u===undefined){return h.nodeType===1?h.innerHTML.replace(rinlinejQuery,""):undefined}var t=/<(?:script|style|link)/i,p="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",k=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,r=/<([\w:]+)/,j=/<(?:script|object|embed|option|style)/i,n=new RegExp("<(?:"+p+")[\\s/>]","i"),s=/^\s+/,v={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};if(typeof u==="string"&&!t.test(u)&&(d.support.htmlSerialize||!n.test(u))&&(d.support.leadingWhitespace||!s.test(u))&&!v[(r.exec(u)||["",""])[1].toLowerCase()]){u=u.replace(k,"<$1></$2>");try{for(;o<m;o++){h=this[o]||{};if(h.nodeType===1){d.cleanData(h.getElementsByTagName("*"));h.innerHTML=u}}h=0}catch(q){}}if(h){f.empty().append(u)}},null,g,arguments.length)}catch(e){return d(f).html(g)}},hasTransform:function(g){var f="";f=g.css("transform");if(f==""||f=="none"){f=g.parents().css("transform");if(f==""||f=="none"){var e=d.jqx.utilities.getBrowser();if(e.browser=="msie"){f=g.css("-ms-transform");if(f==""||f=="none"){f=g.parents().css("-ms-transform")}}else{if(e.browser=="chrome"){f=g.css("-webkit-transform");if(f==""||f=="none"){f=g.parents().css("-webkit-transform")}}else{if(e.browser=="opera"){f=g.css("-o-transform");if(f==""||f=="none"){f=g.parents().css("-o-transform")}}else{if(e.browser=="mozilla"){f=g.css("-moz-transform");if(f==""||f=="none"){f=g.parents().css("-moz-transform")}}}}}}else{return f!=""&&f!="none"}}if(f==""||f=="none"){f=d(document.body).css("transform")}return f!=""&&f!="none"&&f!=null},getBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(f)||/(webkit)[ \/]([\w.]+)/.exec(f)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(f)||/(msie) ([\w.]+)/.exec(f)||f.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(f)||[];var g={browser:e[1]||"",version:e[2]||"0"};if(f.indexOf("rv:11.0")>=0&&f.indexOf(".net4.0c")>=0){g.browser="msie";g.version="11";e[1]="msie"}if(f.indexOf("edge")>=0){g.browser="msie";g.version="12";e[1]="msie"}g[e[1]]=e[1];return g}});d.jqx.browser=d.jqx.utilities.getBrowser();d.jqx.isHidden=function(f){if(!f||!f[0]){return false}var e=f[0].offsetWidth,g=f[0].offsetHeight;if(e===0||g===0){return true}else{return false}};d.jqx.ariaEnabled=true;d.jqx.aria=function(f,h,g){if(!d.jqx.ariaEnabled){return}if(h==undefined){d.each(f.aria,function(j,k){var m=!f.base?f.host.attr(j):f.base.host.attr(j);if(m!=undefined&&!d.isFunction(m)){var l=m;switch(k.type){case"number":l=new Number(m);if(isNaN(l)){l=m}break;case"boolean":l=m=="true"?true:false;break;case"date":l=new Date(m);if(l=="Invalid Date"||isNaN(l)){l=m}break}f[k.name]=l}else{var m=f[k.name];if(d.isFunction(m)){m=f[k.name]()}if(m==undefined){m=""}try{!f.base?f.host.attr(j,m.toString()):f.base.host.attr(j,m.toString())}catch(i){}}})}else{try{if(f.host){if(!f.base){if(f.host){if(f.element.setAttribute){f.element.setAttribute(h,g.toString())}else{f.host.attr(h,g.toString())}}else{f.attr(h,g.toString())}}else{if(f.base.host){f.base.host.attr(h,g.toString())}else{f.attr(h,g.toString())}}}else{if(f.setAttribute){f.setAttribute(h,g.toString())}}}catch(e){}}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(f){var e=this.length;var g=Number(arguments[1])||0;g=(g<0)?Math.ceil(g):Math.floor(g);if(g<0){g+=e}for(;g<e;g++){if(g in this&&this[g]===f){return g}}return -1}}d.jqx.mobile=d.jqx.mobile||{};d.jqx.position=function(e){var h=parseInt(e.pageX);var g=parseInt(e.pageY);if(d.jqx.mobile.isTouchDevice()){var f=d.jqx.mobile.getTouches(e);var i=f[0];h=parseInt(i.pageX);g=parseInt(i.pageY)}return{left:h,top:g}};d.extend(d.jqx.mobile,{_touchListener:function(k,i){var f=function(l,n){var m=document.createEvent("MouseEvents");m.initMouseEvent(l,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget);m._pageX=n.pageX;m._pageY=n.pageY;return m};var j={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var h=f(j[k.type],k);k.target.dispatchEvent(h);var g=k.target["on"+j[k.type]];if(typeof g==="function"){g(k)}},setMobileSimulator:function(f,h){if(this.isTouchDevice()){return}this.simulatetouches=true;if(h==false){this.simulatetouches=false}var g={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var e=this;if(window.addEventListener){var i=function(){for(var j in g){if(f.addEventListener){f.removeEventListener(j,e._touchListener);f.addEventListener(j,e._touchListener,false)}}};if(d.jqx.browser.msie){i()}else{i()}}},isTouchDevice:function(){if(this.touchDevice!=undefined){return this.touchDevice}var g="Browser CodeName: "+navigator.appCodeName+"";g+="Browser Name: "+navigator.appName+"";g+="Browser Version: "+navigator.appVersion+"";g+="Platform: "+navigator.platform+"";g+="User-agent header: "+navigator.userAgent+"";if(navigator.maxTouchPoints>1){}if(g.indexOf("Android")!=-1){return true}if(g.indexOf("IEMobile")!=-1){return true}if(g.indexOf("Windows Phone")!=-1){return true}if(g.indexOf("WPDesktop")!=-1){return true}if(g.indexOf("ZuneWP7")!=-1){return true}if(g.indexOf("BlackBerry")!=-1&&g.indexOf("Mobile Safari")!=-1){return true}if(g.indexOf("ipod")!=-1){return true}if(g.indexOf("nokia")!=-1||g.indexOf("Nokia")!=-1){return true}if(g.indexOf("Chrome/17")!=-1){return false}if(g.indexOf("CrOS")!=-1){return false}if(g.indexOf("Opera")!=-1&&g.indexOf("Mobi")==-1&&g.indexOf("Mini")==-1&&g.indexOf("Platform: Win")!=-1){return false}if(g.indexOf("HybridDeviceTouch")!=-1){return true}if(g.indexOf("HybridDeviceMouse")!=-1){return false}if(g.indexOf("Opera")!=-1&&g.indexOf("Mobi")!=-1&&g.indexOf("Opera Mobi")!=-1){return true}if(g.indexOf("Mozilla/5.0 (X11; Linux x86_64)")!=-1){return false}var h={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(this.touchDevice!=undefined){return this.touchDevice}this.touchDevice=false;for(var k in h){if(h.hasOwnProperty(k)){var m=h[k];var j=g.match(new RegExp("(?:"+m+")([^\\s;]+)"));if(j){if(k.toString()=="blackberry"){this.touchDevice=false;return false}this.touchDevice=true;return true}}}var l=navigator.userAgent;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(l.indexOf("Windows Phone")>=0||l.indexOf("WPDesktop")>=0||l.indexOf("IEMobile")>=0||l.indexOf("ZuneWP7")>=0){this.touchDevice=true;return true}else{if(l.indexOf("Touch")>=0){var f=("MSPointerDown" in window)||("pointerdown" in window);if(f){this.touchDevice=true;return true}if(l.indexOf("ARM")>=0){this.touchDevice=true;return true}this.touchDevice=false;return false}}}if(navigator.platform.toLowerCase().indexOf("win")!=-1){this.touchDevice=false;return false}if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){this.touchDevice=true}return this.touchDevice}catch(n){this.touchDevice=false;return false}},getLeftPos:function(e){var f=e.offsetLeft;while((e=e.offsetParent)!=null){if(e.tagName!="HTML"){f+=e.offsetLeft;if(document.all){f+=e.clientLeft}}}return f},getTopPos:function(f){var h=f.offsetTop;var e=d(f).coord();while((f=f.offsetParent)!=null){if(f.tagName!="HTML"){h+=(f.offsetTop-f.scrollTop);if(document.all){h+=f.clientTop}}}var g=navigator.userAgent.toLowerCase();var i=(g.indexOf("windows phone")!=-1||g.indexOf("WPDesktop")!=-1||g.indexOf("ZuneWP7")!=-1||g.indexOf("msie 9")!=-1||g.indexOf("msie 11")!=-1||g.indexOf("msie 10")!=-1)&&g.indexOf("touch")!=-1;if(i){return e.top}if(this.isSafariMobileBrowser()){if(this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()){return h}if(g.indexOf("version/7")!=-1){return e.top}if(g.indexOf("version/6")!=-1||g.indexOf("version/5")!=-1){h=h+d(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return h}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return h}return e.top}return h},isChromeMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("android")!=-1;return e},isOperaMiniMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("opera mini")!=-1||f.indexOf("opera mobi")!=-1;return e},isOperaMiniBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("opera mini")!=-1;return e},isNewSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1;e=e&&(f.indexOf("version/5")!=-1);return e},isSafari4MobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1;e=e&&(f.indexOf("version/4")!=-1);return e},isWindowsPhone:function(){var f=navigator.userAgent.toLowerCase();var e=(f.indexOf("windows phone")!=-1||f.indexOf("WPDesktop")!=-1||f.indexOf("ZuneWP7")!=-1||f.indexOf("msie 9")!=-1||f.indexOf("msie 11")!=-1||f.indexOf("msie 10")!=-1&&f.indexOf("touch")!=-1);return e},isSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return true}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return true}var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1||f.indexOf("mobile safari")!=-1;return e},isIPadSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1;return e},isMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("android")!=-1;return e},getTouches:function(f){if(f.originalEvent){if(f.originalEvent.touches&&f.originalEvent.touches.length){return f.originalEvent.touches}else{if(f.originalEvent.changedTouches&&f.originalEvent.changedTouches.length){return f.originalEvent.changedTouches}}}if(!f.touches){f.touches=new Array();f.touches[0]=f.originalEvent!=undefined?f.originalEvent:f;if(f.originalEvent!=undefined&&f.pageX){f.touches[0]=f}if(f.type=="mousemove"){f.touches[0]=f}}return f.touches},getTouchEventName:function(e){if(this.isWindowsPhone()){var f=navigator.userAgent.toLowerCase();if(f.indexOf("windows phone 7")!=-1){if(e.toLowerCase().indexOf("start")!=-1){return"MSPointerDown"}if(e.toLowerCase().indexOf("move")!=-1){return"MSPointerMove"}if(e.toLowerCase().indexOf("end")!=-1){return"MSPointerUp"}}if(e.toLowerCase().indexOf("start")!=-1){return"pointerdown"}if(e.toLowerCase().indexOf("move")!=-1){return"pointermove"}if(e.toLowerCase().indexOf("end")!=-1){return"pointerup"}}else{return e}},dispatchMouseEvent:function(f,i,h){if(this.simulatetouches){return}var g=document.createEvent("MouseEvent");g.initMouseEvent(f,true,true,i.view,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);if(h!=null){h.dispatchEvent(g)}},getRootNode:function(e){while(e.nodeType!==1){e=e.parentNode}return e},setTouchScroll:function(e,f){if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[f]=e},touchScroll:function(D,O,ab,J,z,p){if(D==null){return}var I=this;var h=0;var t=0;var i=0;var k=0;var v=0;var l=0;if(!this.scrolling){this.scrolling=[]}this.scrolling[J]=false;var m=false;var r=d(D);var T=["select","input","textarea"];var Z=0;var L=0;if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[J]=true;var J=J;var y=this.getTouchEventName("touchstart")+".touchScroll";var F=this.getTouchEventName("touchend")+".touchScroll";var ad=this.getTouchEventName("touchmove")+".touchScroll";var n,Y,B,aj,X,aa,al,S,ac,f,H,af,ah,Q,g,x,w,U,e,G,ai,q;S=O;var al=0;var ac=0;var j=0;var V=0;var ak=0;var aa=z.jqxScrollBar("max");var q=325;function C(ao){if(ao.targetTouches&&(ao.targetTouches.length>=1)){return ao.targetTouches[0].clientY}else{if(ao.originalEvent&&ao.originalEvent.clientY!==undefined){return ao.originalEvent.clientY}else{var an=I.getTouches(ao);return an[0].clientY}}}function ag(ao){if(ao.targetTouches&&(ao.targetTouches.length>=1)){return ao.targetTouches[0].clientX}else{if(ao.originalEvent&&ao.originalEvent.clientX!==undefined){return ao.originalEvent.clientX}else{var an=I.getTouches(ao);return an[0].clientX}}}var K=function(){var ar,ao,at,aq;ar=Date.now();ao=ar-x;x=ar;at=ac-g;var ap=j-aj;g=ac;aj=j;H=true;aq=1000*at/(1+ao);var an=1000*ap/(1+ao);ah=0.8*aq+0.2*ah;Q=0.8*an+0.2*Q};var E=false;var Z=function(ao){if(!I.enableScrolling[J]){return true}if(d.inArray(ao.target.tagName.toLowerCase(),T)!==-1){return}ac=p.jqxScrollBar("value");j=z.jqxScrollBar("value");var ap=I.getTouches(ao);var aq=ap[0];if(ap.length==1){I.dispatchMouseEvent("mousedown",aq,I.getRootNode(aq.target))}aa=z.jqxScrollBar("max");S=p.jqxScrollBar("max");function an(ar){E=false;H=true;f=C(ar);ai=ag(ar);ah=U=Q=0;g=ac;aj=j;x=Date.now();clearInterval(w);w=setInterval(K,100);V=ac;ak=j;if(ac>0&&ac<S&&p[0].style.visibility!="hidden"){}}an(ao);m=false;t=aq.pageY;v=aq.pageX;if(I.simulatetouches){if(aq._pageY!=undefined){t=aq._pageY;v=aq._pageX}}I.scrolling[J]=true;h=0;k=0;return true};if(r.on){r.on(y,Z)}else{r.bind(y,Z)}var ae=function(ao,an){ac=(ao>S)?S:(ao<al)?al:ao;ab(null,ao,0,0,an);return(ao>S)?"max":(ao<al)?"min":"value"};var o=function(ao,an){j=(ao>aa)?aa:(ao<al)?al:ao;ab(ao,null,0,0,an);return(ao>aa)?"max":(ao<al)?"min":"value"};function W(){var an,ao;if(U){an=Date.now()-x;ao=-U*Math.exp(-an/q);if(ao>0.5||ao<-0.5){ae(e+ao);requestAnimationFrame(W)}else{ae(e)}}}function P(){var an,ao;if(U){an=Date.now()-x;ao=-U*Math.exp(-an/q);if(ao>0.5||ao<-0.5){o(G+ao);requestAnimationFrame(P)}else{o(G)}}}var A=function(an){if(!I.enableScrolling[J]){return true}if(!I.scrolling[J]){return true}if(E){an.preventDefault();an.stopPropagation()}var at=I.getTouches(an);if(at.length>1){return true}var ao=at[0].pageY;var aq=at[0].pageX;if(I.simulatetouches){if(at[0]._pageY!=undefined){ao=at[0]._pageY;aq=at[0]._pageX}}var aw=ao-t;var ax=aq-v;L=ao;var av=aq;i=aw-h;l=ax-k;m=true;h=aw;k=ax;var ap=z!=null?z[0].style.visibility!="hidden":true;var au=p!=null?p[0].style.visibility!="hidden":true;function ar(aA){var aC,aB,az;if(H){aC=C(aA);az=ag(aA);aB=f-aC;X=ai-az;var ay="value";if(aB>2||aB<-2){f=aC;ay=ae(ac+aB,aA);K();if(ay=="min"&&V===0){return true}if(ay=="max"&&V===S){return true}if(!au){return true}aA.preventDefault();aA.stopPropagation();E=true;return false}else{if(X>2||X<-2){ai=az;ay=o(j+X,aA);K();if(ay=="min"&&ak===0){return true}if(ay=="max"&&ak===aa){return true}if(!ap){return true}E=true;aA.preventDefault();aA.stopPropagation();return false}}aA.preventDefault()}}if(ap||au){if((ap)||(au)){ar(an)}}};if(r.on){r.on(ad,A)}else{r.bind(ad,A)}var u=function(ao){if(!I.enableScrolling[J]){return true}var ap=I.getTouches(ao)[0];if(!I.scrolling[J]){return true}H=false;clearInterval(w);if(ah>10||ah<-10){U=0.8*ah;e=Math.round(ac+U);x=Date.now();requestAnimationFrame(W)}else{if(Q>10||Q<-10){U=0.8*Q;G=Math.round(j+U);x=Date.now();requestAnimationFrame(P)}else{}}I.scrolling[J]=false;if(m){I.dispatchMouseEvent("mouseup",ap,ao.target)}else{var ap=I.getTouches(ao)[0],an=I.getRootNode(ap.target);I.dispatchMouseEvent("mouseup",ap,an);I.dispatchMouseEvent("click",ap,an);return true}};if(this.simulatetouches){var s=d(window).on!=undefined||d(window).bind;var R=function(an){try{u(an)}catch(ao){}I.scrolling[J]=false};d(window).on!=undefined?d(document).on("mouseup.touchScroll",R):d(document).bind("mouseup.touchScroll",R);if(window.frameElement){if(window.top!=null){var N=function(an){try{u(an)}catch(ao){}I.scrolling[J]=false};if(window.top.document){d(window.top.document).on?d(window.top.document).on("mouseup",N):d(window.top.document).bind("mouseup",N)}}}var am=d(document).on!=undefined||d(document).bind;var M=function(an){if(!I.scrolling[J]){return true}I.scrolling[J]=false;var ap=I.getTouches(an)[0],ao=I.getRootNode(ap.target);I.dispatchMouseEvent("mouseup",ap,ao);I.dispatchMouseEvent("click",ap,ao)};d(document).on!=undefined?d(document).on("touchend",M):d(document).bind("touchend",M)}if(r.on){r.on("dragstart",function(an){an.preventDefault()});r.on("selectstart",function(an){an.preventDefault()})}r.on?r.on(F+" touchcancel.touchScroll",u):r.bind(F+" touchcancel.touchScroll",u)}});d.jqx.cookie=d.jqx.cookie||{};d.extend(d.jqx.cookie,{cookie:function(h,i,f){if(arguments.length>1&&String(i)!=="[object Object]"){f=d.extend({},f);if(i===null||i===undefined){f.expires=-1}if(typeof f.expires==="number"){var k=f.expires,g=f.expires=new Date();g.setDate(g.getDate()+k)}i=String(i);return(document.cookie=[encodeURIComponent(h),"=",f.raw?i:encodeURIComponent(i),f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join(""))}f=i||{};var e,j=f.raw?function(l){return l}:decodeURIComponent;return(e=new RegExp("(?:^|; )"+encodeURIComponent(h)+"=([^;]*)").exec(document.cookie))?j(e[1]):null}});d.jqx.string=d.jqx.string||{};d.extend(d.jqx.string,{replace:function(i,g,h){if(g===h){return this}var e=i;var f=e.indexOf(g);while(f!=-1){e=e.replace(g,h);f=e.indexOf(g)}return e},contains:function(e,f){if(e==null||f==null){return false}return e.indexOf(f)!=-1},containsIgnoreCase:function(e,f){if(e==null||f==null){return false}return e.toString().toUpperCase().indexOf(f.toString().toUpperCase())!=-1},equals:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);if(f.length==e.length){return e.slice(0,f.length)==f}return false},equalsIgnoreCase:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);if(f.length==e.length){return e.toUpperCase().slice(0,f.length)==f.toUpperCase()}return false},startsWith:function(e,f){if(e==null||f==null){return false}return e.slice(0,f.length)==f},startsWithIgnoreCase:function(e,f){if(e==null||f==null){return false}return e.toUpperCase().slice(0,f.length)==f.toUpperCase()},normalize:function(e){if(e.charCodeAt(e.length-1)==65279){e=e.substring(0,e.length-1)}return e},endsWith:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);return e.slice(-f.length)==f},endsWithIgnoreCase:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);return e.toUpperCase().slice(-f.length)==f.toUpperCase()}});if(!d.easing){d.easing={}}d.extend(d.easing,{easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e}})})(b);(function(d){if(d.event&&d.event.special){d.extend(d.event.special,{close:{noBubble:true},open:{noBubble:true},cellclick:{noBubble:true},rowclick:{noBubble:true},tabclick:{noBubble:true},selected:{noBubble:true},expanded:{noBubble:true},collapsed:{noBubble:true},valuechanged:{noBubble:true},expandedItem:{noBubble:true},collapsedItem:{noBubble:true},expandingItem:{noBubble:true},collapsingItem:{noBubble:true}})}if(d.fn.extend){d.fn.extend({ischildof:function(i){if(!d(this).parents){var e=i.element.contains(this.element);return e}var g=d(this).parents().get();for(var f=0;f<g.length;f++){if(typeof i!="string"){var h=g[f];if(i!==undefined){if(h==i[0]){return true}}}else{if(i!==undefined){if(d(g[f]).is(i)){return true}}}}return false}})}d.fn.jqxProxy=function(){var g=d(this).data().jqxWidget;var e=Array.prototype.slice.call(arguments,0);var f=g.element;if(!f){f=g.base.element}return d.jqx.jqxWidgetProxy(g.widgetName,f,e)};var c=d.originalVal=d.fn.val;d.fn.val=function(f){if(typeof f=="undefined"){if(d(this).hasClass("jqx-widget")||d(this).hasClass("jqx-input-group")){var e=d(this).data().jqxWidget;if(e&&e.val){return e.val()}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var e=d(this).find(".jqx-widget").data().jqxWidget;if(e&&e.val){return e.val()}}return c.call(this)}else{if(d(this).hasClass("jqx-widget")||d(this).hasClass("jqx-input-group")){var e=d(this).data().jqxWidget;if(e&&e.val){if(arguments.length!=2){return e.val(f)}else{return e.val(f,arguments[1])}}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var e=d(this).find(".jqx-widget").data().jqxWidget;if(e&&e.val){if(arguments.length!=2){return e.val(f)}else{return e.val(f,arguments[1])}}}return c.call(this,f)}};if(d.fn.modal&&d.fn.modal.Constructor){d.fn.modal.Constructor.prototype.enforceFocus=function(){d(document).off("focusin.bs.modal").on("focusin.bs.modal",d.proxy(function(f){if(this.$element[0]!==f.target&&!this.$element.has(f.target).length){if(d(f.target).parents().hasClass("jqx-popup")){return true}this.$element.trigger("focus")}},this))}}d.fn.coord=function(p){var g,l,k={top:0,left:0},h=this[0],n=h&&h.ownerDocument;if(!n){return}g=n.documentElement;if(!d.contains(g,h)){return k}if(typeof h.getBoundingClientRect!==undefined){k=h.getBoundingClientRect()}var f=function(q){return d.isWindow(q)?q:q.nodeType===9?q.defaultView||q.parentWindow:false};l=f(n);var j=0;var e=0;var i=navigator.userAgent.toLowerCase();var o=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1;if(o){j=2}if(true==p){if(document.body.style.position!="static"&&document.body.style.position!=""){var m=d(document.body).coord();j=-m.left;e=-m.top}}return{top:e+k.top+(l.pageYOffset||g.scrollTop)-(g.clientTop||0),left:j+k.left+(l.pageXOffset||g.scrollLeft)-(g.clientLeft||0)}};d.jqx.ripplers=[];d.jqx.ripple=function(g,f,p){if(!f){f=g}var j=d(g);var k=false;j.append("<span class='ink'></span>");var q=j.find(".ink");var e=false;for(var h=0;h<d.jqx.ripplers.length;h++){var l=d.jqx.ripplers[h];if(l.element[0]===g[0]){e=true;break}}if(!e){d.jqx.ripplers.push({ink:q,element:g,hostElement:f,hostElementType:p})}if(p==="checkbox"||p==="radiobutton"){var m=Math.max(j.outerWidth(),j.outerHeight());q.css({height:m,width:m});var o=j.width()/2-q.width()/2;var n=j.height()/2-q.height()/2;q.css({top:n+"px",left:o+"px"})}if(d.jqx.ripplers.length===1){d(document).on("mouseup",function(t){d.jqx.ripple.mouseCaptured=false;for(var s=0;s<d.jqx.ripplers.length;s++){var r=d.jqx.ripplers[s];r.ink.removeClass("active");r.element.removeClass("active");if(p!=="checkbox"&&p!=="radiobutton"){if(r.ink.hasClass("animate")){r.ink.removeClass("animate")}}}})}f.off("mousedown.ripple");f.on("mousedown.ripple",function(r){var i=d(g);d.jqx.ripple.mouseCaptured=true;setTimeout(function(){if(i.find(".ink").length==0){i.append("<span class='ink'></span>")}var t=i.find(".ink");t.removeClass("animate");if(!t.height()&&!t.width()){var u=Math.max(i.outerWidth(),i.outerHeight());t.css({height:u,width:u})}if(p==="checkbox"||p==="radiobutton"){if(p==="checkbox"){if(f.jqxCheckBox("disabled")){return}}if(p==="radiobutton"){if(f.jqxRadioButton("disabled")){return}}var s=i.width()/2-t.width()/2;var v=i.height()/2-t.height()/2;t.css({top:v+"px",left:s+"px"}).addClass("animate");t.on("animationend",function(){if(d.jqx.ripple.mouseCaptured){t.removeClass("animate");t.addClass("active");g.addClass("active")}});return}var s=r.pageX-i.offset().left-t.width()/2;var v=r.pageY-i.offset().top-t.height()/2;t.css({top:v+"px",left:s+"px"}).addClass("animate")})})}})(b)})();
15
+ (function(cp,bO){var cu,bH,ci,bx,bT,b7,bK,bN,bJ,cg,bG=true,b1="undefined",cw=("sizcache"+Math.random()).replace(".",""),bB=String,bF=cp.document,bI=bF.documentElement,bY=0,bM=0,cb=[].pop,ct=[].push,bS=[].slice,bV=[].indexOf||function(cG){var cF=0,cE=this.length;for(;cF<cE;cF++){if(this[cF]===cG){return cF}}return -1},cy=function(cE,cF){cE[cw]=cF==null||cF;return cE},cC=function(){var cE={},cF=[];return cy(function(cG,cH){if(cF.push(cG)>ci.cacheLength){delete cE[cF.shift()]}return(cE[cG+" "]=cH)},cE)},cr=cC(),cs=cC(),bU=cC(),b5="[\\x20\\t\\r\\n\\f]",bR="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",bP=bR.replace("w","w#"),cB="([*^$|!~]?=)",cm="\\["+b5+"*("+bR+")"+b5+"*(?:"+cB+b5+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+bP+")|)|)"+b5+"*\\]",cD=":("+bR+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+cm+")|[^:]|\\\\.)*|.*))\\)|)",b6=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+b5+"*((?:-\\d)?\\d*)"+b5+"*\\)|)(?=[^-]|$)",cq=new RegExp("^"+b5+"+|((?:^|[^\\\\])(?:\\\\.)*)"+b5+"+$","g"),bC=new RegExp("^"+b5+"*,"+b5+"*"),ce=new RegExp("^"+b5+"*([\\x20\\t\\r\\n\\f>+~])"+b5+"*"),cj=new RegExp(cD),cl=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,ca=/^:not/,co=/[\x20\t\r\n\f]*[+~]/,cx=/:not\($/,bZ=/h\d/i,ck=/input|select|textarea|button/i,b0=/\\(?!\\)/g,cd={ID:new RegExp("^#("+bR+")"),CLASS:new RegExp("^\\.("+bR+")"),NAME:new RegExp("^\\[name=['\"]?("+bR+")['\"]?\\]"),TAG:new RegExp("^("+bR.replace("w","w*")+")"),ATTR:new RegExp("^"+cm),PSEUDO:new RegExp("^"+cD),POS:new RegExp(b6,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+b5+"*(even|odd|(([+-]|)(\\d*)n|)"+b5+"*(?:([+-]|)"+b5+"*(\\d+)|))"+b5+"*\\)|)","i"),needsContext:new RegExp("^"+b5+"*[>+~]|"+b6,"i")},ch=function(cE){var cG=bF.createElement("div");try{return cE(cG)}catch(cF){return false}finally{cG=null}},bE=ch(function(cE){cE.appendChild(bF.createComment(""));return !cE.getElementsByTagName("*").length}),b9=ch(function(cE){cE.innerHTML="<a href='#'></a>";return cE.firstChild&&typeof cE.firstChild.getAttribute!==b1&&cE.firstChild.getAttribute("href")==="#"}),bX=ch(function(cF){cF.innerHTML="<select></select>";var cE=typeof cF.lastChild.getAttribute("multiple");return cE!=="boolean"&&cE!=="string"}),b8=ch(function(cE){cE.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!cE.getElementsByClassName||!cE.getElementsByClassName("e").length){return false}cE.lastChild.className="e";return cE.getElementsByClassName("e").length===2}),bw=ch(function(cF){cF.id=cw+0;cF.innerHTML="<a name='"+cw+"'></a><div name='"+cw+"'></div>";bI.insertBefore(cF,bI.firstChild);var cE=bF.getElementsByName&&bF.getElementsByName(cw).length===2+bF.getElementsByName(cw+0).length;bH=!bF.getElementById(cw);bI.removeChild(cF);return cE});try{bS.call(bI.childNodes,0)[0].nodeType}catch(cA){bS=function(cF){var cG,cE=[];for(;(cG=this[cF]);cF++){cE.push(cG)}return cE}}function cn(cH,cE,cJ,cM){cJ=cJ||[];cE=cE||bF;var cK,cF,cL,cG,cI=cE.nodeType;if(!cH||typeof cH!=="string"){return cJ}if(cI!==1&&cI!==9){return[]}cL=bT(cE);if(!cL&&!cM){if((cK=cl.exec(cH))){if((cG=cK[1])){if(cI===9){cF=cE.getElementById(cG);if(cF&&cF.parentNode){if(cF.id===cG){cJ.push(cF);return cJ}}else{return cJ}}else{if(cE.ownerDocument&&(cF=cE.ownerDocument.getElementById(cG))&&b7(cE,cF)&&cF.id===cG){cJ.push(cF);return cJ}}}else{if(cK[2]){ct.apply(cJ,bS.call(cE.getElementsByTagName(cH),0));return cJ}else{if((cG=cK[3])&&b8&&cE.getElementsByClassName){ct.apply(cJ,bS.call(cE.getElementsByClassName(cG),0));return cJ}}}}}return cv(cH.replace(cq,"$1"),cE,cJ,cM,cL)}cn.matches=function(cF,cE){return cn(cF,null,null,cE)};cn.matchesSelector=function(cE,cF){return cn(cF,null,null,[cE]).length>0};function cf(cE){return function(cG){var cF=cG.nodeName.toLowerCase();return cF==="input"&&cG.type===cE}}function bA(cE){return function(cG){var cF=cG.nodeName.toLowerCase();return(cF==="input"||cF==="button")&&cG.type===cE}}function cc(cE){return cy(function(cF){cF=+cF;return cy(function(cG,cK){var cI,cH=cE([],cG.length,cF),cJ=cH.length;while(cJ--){if(cG[(cI=cH[cJ])]){cG[cI]=!(cK[cI]=cG[cI])}}})})}bx=cn.getText=function(cI){var cH,cF="",cG=0,cE=cI.nodeType;if(cE){if(cE===1||cE===9||cE===11){if(typeof cI.textContent==="string"){return cI.textContent}else{for(cI=cI.firstChild;cI;cI=cI.nextSibling){cF+=bx(cI)}}}else{if(cE===3||cE===4){return cI.nodeValue}}}else{for(;(cH=cI[cG]);cG++){cF+=bx(cH)}}return cF};bT=cn.isXML=function(cE){var cF=cE&&(cE.ownerDocument||cE).documentElement;return cF?cF.nodeName!=="HTML":false};b7=cn.contains=bI.contains?function(cF,cE){var cH=cF.nodeType===9?cF.documentElement:cF,cG=cE&&cE.parentNode;return cF===cG||!!(cG&&cG.nodeType===1&&cH.contains&&cH.contains(cG))}:bI.compareDocumentPosition?function(cF,cE){return cE&&!!(cF.compareDocumentPosition(cE)&16)}:function(cF,cE){while((cE=cE.parentNode)){if(cE===cF){return true}}return false};cn.attr=function(cG,cF){var cH,cE=bT(cG);if(!cE){cF=cF.toLowerCase()}if((cH=ci.attrHandle[cF])){return cH(cG)}if(cE||bX){return cG.getAttribute(cF)}cH=cG.getAttributeNode(cF);return cH?typeof cG[cF]==="boolean"?cG[cF]?cF:null:cH.specified?cH.value:null:null};ci=cn.selectors={cacheLength:50,createPseudo:cy,match:cd,attrHandle:b9?{}:{href:function(cE){return cE.getAttribute("href",2)},type:function(cE){return cE.getAttribute("type")}},find:{ID:bH?function(cH,cG,cF){if(typeof cG.getElementById!==b1&&!cF){var cE=cG.getElementById(cH);return cE&&cE.parentNode?[cE]:[]}}:function(cH,cG,cF){if(typeof cG.getElementById!==b1&&!cF){var cE=cG.getElementById(cH);return cE?cE.id===cH||typeof cE.getAttributeNode!==b1&&cE.getAttributeNode("id").value===cH?[cE]:bO:[]}},TAG:bE?function(cE,cF){if(typeof cF.getElementsByTagName!==b1){return cF.getElementsByTagName(cE)}}:function(cE,cI){var cH=cI.getElementsByTagName(cE);if(cE==="*"){var cJ,cG=[],cF=0;for(;(cJ=cH[cF]);cF++){if(cJ.nodeType===1){cG.push(cJ)}}return cG}return cH},NAME:bw&&function(cE,cF){if(typeof cF.getElementsByName!==b1){return cF.getElementsByName(name)}},CLASS:b8&&function(cG,cF,cE){if(typeof cF.getElementsByClassName!==b1&&!cE){return cF.getElementsByClassName(cG)}}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(cE){cE[1]=cE[1].replace(b0,"");cE[3]=(cE[4]||cE[5]||"").replace(b0,"");if(cE[2]==="~="){cE[3]=" "+cE[3]+" "}return cE.slice(0,4)},CHILD:function(cE){cE[1]=cE[1].toLowerCase();if(cE[1]==="nth"){if(!cE[2]){cn.error(cE[0])}cE[3]=+(cE[3]?cE[4]+(cE[5]||1):2*(cE[2]==="even"||cE[2]==="odd"));cE[4]=+((cE[6]+cE[7])||cE[2]==="odd")}else{if(cE[2]){cn.error(cE[0])}}return cE},PSEUDO:function(cF){var cG,cE;if(cd.CHILD.test(cF[0])){return null}if(cF[3]){cF[2]=cF[3]}else{if((cG=cF[4])){if(cj.test(cG)&&(cE=by(cG,true))&&(cE=cG.indexOf(")",cG.length-cE)-cG.length)){cG=cG.slice(0,cE);cF[0]=cF[0].slice(0,cE)}cF[2]=cG}}return cF.slice(0,3)}},filter:{ID:bH?function(cE){cE=cE.replace(b0,"");return function(cF){return cF.getAttribute("id")===cE}}:function(cE){cE=cE.replace(b0,"");return function(cG){var cF=typeof cG.getAttributeNode!==b1&&cG.getAttributeNode("id");return cF&&cF.value===cE}},TAG:function(cE){if(cE==="*"){return function(){return true}}cE=cE.replace(b0,"").toLowerCase();return function(cF){return cF.nodeName&&cF.nodeName.toLowerCase()===cE}},CLASS:function(cE){var cF=cr[cw][cE+" "];return cF||(cF=new RegExp("(^|"+b5+")"+cE+"("+b5+"|$)"))&&cr(cE,function(cG){return cF.test(cG.className||(typeof cG.getAttribute!==b1&&cG.getAttribute("class"))||"")})},ATTR:function(cG,cF,cE){return function(cJ,cI){var cH=cn.attr(cJ,cG);if(cH==null){return cF==="!="}if(!cF){return true}cH+="";return cF==="="?cH===cE:cF==="!="?cH!==cE:cF==="^="?cE&&cH.indexOf(cE)===0:cF==="*="?cE&&cH.indexOf(cE)>-1:cF==="$="?cE&&cH.substr(cH.length-cE.length)===cE:cF==="~="?(" "+cH+" ").indexOf(cE)>-1:cF==="|="?cH===cE||cH.substr(0,cE.length+1)===cE+"-":false}},CHILD:function(cE,cG,cH,cF){if(cE==="nth"){return function(cK){var cJ,cL,cI=cK.parentNode;if(cH===1&&cF===0){return true}if(cI){cL=0;for(cJ=cI.firstChild;cJ;cJ=cJ.nextSibling){if(cJ.nodeType===1){cL++;if(cK===cJ){break}}}}cL-=cF;return cL===cH||(cL%cH===0&&cL/cH>=0)}}return function(cJ){var cI=cJ;switch(cE){case"only":case"first":while((cI=cI.previousSibling)){if(cI.nodeType===1){return false}}if(cE==="first"){return true}cI=cJ;case"last":while((cI=cI.nextSibling)){if(cI.nodeType===1){return false}}return true}}},PSEUDO:function(cH,cG){var cE,cF=ci.pseudos[cH]||ci.setFilters[cH.toLowerCase()]||cn.error("unsupported pseudo: "+cH);if(cF[cw]){return cF(cG)}if(cF.length>1){cE=[cH,cH,"",cG];return ci.setFilters.hasOwnProperty(cH.toLowerCase())?cy(function(cK,cM){var cJ,cI=cF(cK,cG),cL=cI.length;while(cL--){cJ=bV.call(cK,cI[cL]);cK[cJ]=!(cM[cJ]=cI[cL])}}):function(cI){return cF(cI,0,cE)}}return cF}},pseudos:{not:cy(function(cE){var cF=[],cG=[],cH=bK(cE.replace(cq,"$1"));return cH[cw]?cy(function(cJ,cO,cM,cK){var cN,cI=cH(cJ,null,cK,[]),cL=cJ.length;while(cL--){if((cN=cI[cL])){cJ[cL]=!(cO[cL]=cN)}}}):function(cK,cJ,cI){cF[0]=cK;cH(cF,null,cI,cG);return !cG.pop()}}),has:cy(function(cE){return function(cF){return cn(cE,cF).length>0}}),contains:cy(function(cE){return function(cF){return(cF.textContent||cF.innerText||bx(cF)).indexOf(cE)>-1}}),enabled:function(cE){return cE.disabled===false},disabled:function(cE){return cE.disabled===true},checked:function(cE){var cF=cE.nodeName.toLowerCase();return(cF==="input"&&!!cE.checked)||(cF==="option"&&!!cE.selected)},selected:function(cE){if(cE.parentNode){cE.parentNode.selectedIndex}return cE.selected===true},parent:function(cE){return !ci.pseudos.empty(cE)},empty:function(cF){var cE;cF=cF.firstChild;while(cF){if(cF.nodeName>"@"||(cE=cF.nodeType)===3||cE===4){return false}cF=cF.nextSibling}return true},header:function(cE){return bZ.test(cE.nodeName)},text:function(cG){var cF,cE;return cG.nodeName.toLowerCase()==="input"&&(cF=cG.type)==="text"&&((cE=cG.getAttribute("type"))==null||cE.toLowerCase()===cF)},radio:cf("radio"),checkbox:cf("checkbox"),file:cf("file"),password:cf("password"),image:cf("image"),submit:bA("submit"),reset:bA("reset"),button:function(cF){var cE=cF.nodeName.toLowerCase();return cE==="input"&&cF.type==="button"||cE==="button"},input:function(cE){return ck.test(cE.nodeName)},focus:function(cE){var cF=cE.ownerDocument;return cE===cF.activeElement&&(!cF.hasFocus||cF.hasFocus())&&!!(cE.type||cE.href||~cE.tabIndex)},active:function(cE){return cE===cE.ownerDocument.activeElement},first:cc(function(){return[0]}),last:cc(function(cE,cF){return[cF-1]}),eq:cc(function(cE,cG,cF){return[cF<0?cF+cG:cF]}),even:cc(function(cE,cG){for(var cF=0;cF<cG;cF+=2){cE.push(cF)}return cE}),odd:cc(function(cE,cG){for(var cF=1;cF<cG;cF+=2){cE.push(cF)}return cE}),lt:cc(function(cE,cH,cG){for(var cF=cG<0?cG+cH:cG;--cF>=0;){cE.push(cF)}return cE}),gt:cc(function(cE,cH,cG){for(var cF=cG<0?cG+cH:cG;++cF<cH;){cE.push(cF)}return cE})}};function bz(cF,cE,cG){if(cF===cE){return cG}var cH=cF.nextSibling;while(cH){if(cH===cE){return -1}cH=cH.nextSibling}return 1}bN=bI.compareDocumentPosition?function(cF,cE){if(cF===cE){bJ=true;return 0}return(!cF.compareDocumentPosition||!cE.compareDocumentPosition?cF.compareDocumentPosition:cF.compareDocumentPosition(cE)&4)?-1:1}:function(cM,cL){if(cM===cL){bJ=true;return 0}else{if(cM.sourceIndex&&cL.sourceIndex){return cM.sourceIndex-cL.sourceIndex}}var cJ,cF,cG=[],cE=[],cI=cM.parentNode,cK=cL.parentNode,cN=cI;if(cI===cK){return bz(cM,cL)}else{if(!cI){return -1}else{if(!cK){return 1}}}while(cN){cG.unshift(cN);cN=cN.parentNode}cN=cK;while(cN){cE.unshift(cN);cN=cN.parentNode}cJ=cG.length;cF=cE.length;for(var cH=0;cH<cJ&&cH<cF;cH++){if(cG[cH]!==cE[cH]){return bz(cG[cH],cE[cH])}}return cH===cJ?bz(cM,cE[cH],-1):bz(cG[cH],cL,1)};[0,0].sort(bN);bG=!bJ;cn.uniqueSort=function(cG){var cH,cI=[],cF=1,cE=0;bJ=bG;cG.sort(bN);if(bJ){for(;(cH=cG[cF]);cF++){if(cH===cG[cF-1]){cE=cI.push(cF)}}while(cE--){cG.splice(cI[cE],1)}}return cG};cn.error=function(cE){throw new Error("Syntax error, unrecognized expression: "+cE)};function by(cI,cN){var cF,cJ,cL,cM,cK,cG,cE,cH=cs[cw][cI+" "];if(cH){return cN?0:cH.slice(0)}cK=cI;cG=[];cE=ci.preFilter;while(cK){if(!cF||(cJ=bC.exec(cK))){if(cJ){cK=cK.slice(cJ[0].length)||cK}cG.push(cL=[])}cF=false;if((cJ=ce.exec(cK))){cL.push(cF=new bB(cJ.shift()));cK=cK.slice(cF.length);cF.type=cJ[0].replace(cq," ")}for(cM in ci.filter){if((cJ=cd[cM].exec(cK))&&(!cE[cM]||(cJ=cE[cM](cJ)))){cL.push(cF=new bB(cJ.shift()));cK=cK.slice(cF.length);cF.type=cM;cF.matches=cJ}}if(!cF){break}}return cN?cK.length:cK?cn.error(cI):cs(cI,cG).slice(0)}function b3(cI,cG,cH){var cE=cG.dir,cJ=cH&&cG.dir==="parentNode",cF=bM++;return cG.first?function(cM,cL,cK){while((cM=cM[cE])){if(cJ||cM.nodeType===1){return cI(cM,cL,cK)}}}:function(cN,cM,cL){if(!cL){var cK,cO=bY+" "+cF+" ",cP=cO+cu;while((cN=cN[cE])){if(cJ||cN.nodeType===1){if((cK=cN[cw])===cP){return cN.sizset}else{if(typeof cK==="string"&&cK.indexOf(cO)===0){if(cN.sizset){return cN}}else{cN[cw]=cP;if(cI(cN,cM,cL)){cN.sizset=true;return cN}cN.sizset=false}}}}}else{while((cN=cN[cE])){if(cJ||cN.nodeType===1){if(cI(cN,cM,cL)){return cN}}}}}}function bL(cE){return cE.length>1?function(cI,cH,cF){var cG=cE.length;while(cG--){if(!cE[cG](cI,cH,cF)){return false}}return true}:cE[0]}function b2(cE,cF,cG,cH,cK){var cI,cN=[],cJ=0,cL=cE.length,cM=cF!=null;for(;cJ<cL;cJ++){if((cI=cE[cJ])){if(!cG||cG(cI,cH,cK)){cN.push(cI);if(cM){cF.push(cJ)}}}}return cN}function cz(cG,cF,cI,cH,cJ,cE){if(cH&&!cH[cw]){cH=cz(cH)}if(cJ&&!cJ[cw]){cJ=cz(cJ,cE)}return cy(function(cU,cR,cM,cT){var cW,cS,cO,cN=[],cV=[],cL=cR.length,cK=cU||bW(cF||"*",cM.nodeType?[cM]:cM,[]),cP=cG&&(cU||!cF)?b2(cK,cN,cG,cM,cT):cK,cQ=cI?cJ||(cU?cG:cL||cH)?[]:cR:cP;if(cI){cI(cP,cQ,cM,cT)}if(cH){cW=b2(cQ,cV);cH(cW,[],cM,cT);cS=cW.length;while(cS--){if((cO=cW[cS])){cQ[cV[cS]]=!(cP[cV[cS]]=cO)}}}if(cU){if(cJ||cG){if(cJ){cW=[];cS=cQ.length;while(cS--){if((cO=cQ[cS])){cW.push((cP[cS]=cO))}}cJ(null,(cQ=[]),cW,cT)}cS=cQ.length;while(cS--){if((cO=cQ[cS])&&(cW=cJ?bV.call(cU,cO):cN[cS])>-1){cU[cW]=!(cR[cW]=cO)}}}}else{cQ=b2(cQ===cR?cQ.splice(cL,cQ.length):cQ);if(cJ){cJ(null,cR,cQ,cT)}else{ct.apply(cR,cQ)}}})}function b4(cK){var cF,cI,cG,cJ=cK.length,cN=ci.relative[cK[0].type],cO=cN||ci.relative[" "],cH=cN?1:0,cL=b3(function(cP){return cP===cF},cO,true),cM=b3(function(cP){return bV.call(cF,cP)>-1},cO,true),cE=[function(cR,cQ,cP){return(!cN&&(cP||cQ!==cg))||((cF=cQ).nodeType?cL(cR,cQ,cP):cM(cR,cQ,cP))}];for(;cH<cJ;cH++){if((cI=ci.relative[cK[cH].type])){cE=[b3(bL(cE),cI)]}else{cI=ci.filter[cK[cH].type].apply(null,cK[cH].matches);if(cI[cw]){cG=++cH;for(;cG<cJ;cG++){if(ci.relative[cK[cG].type]){break}}return cz(cH>1&&bL(cE),cH>1&&cK.slice(0,cH-1).join("").replace(cq,"$1"),cI,cH<cG&&b4(cK.slice(cH,cG)),cG<cJ&&b4((cK=cK.slice(cG))),cG<cJ&&cK.join(""))}cE.push(cI)}}return bL(cE)}function bD(cH,cG){var cE=cG.length>0,cI=cH.length>0,cF=function(cS,cM,cR,cQ,cY){var cN,cO,cT,cX=[],cW=0,cP="0",cJ=cS&&[],cU=cY!=null,cV=cg,cL=cS||cI&&ci.find.TAG("*",cY&&cM.parentNode||cM),cK=(bY+=cV==null?1:Math.E);if(cU){cg=cM!==bF&&cM;cu=cF.el}for(;(cN=cL[cP])!=null;cP++){if(cI&&cN){for(cO=0;(cT=cH[cO]);cO++){if(cT(cN,cM,cR)){cQ.push(cN);break}}if(cU){bY=cK;cu=++cF.el}}if(cE){if((cN=!cT&&cN)){cW--}if(cS){cJ.push(cN)}}}cW+=cP;if(cE&&cP!==cW){for(cO=0;(cT=cG[cO]);cO++){cT(cJ,cX,cM,cR)}if(cS){if(cW>0){while(cP--){if(!(cJ[cP]||cX[cP])){cX[cP]=cb.call(cQ)}}}cX=b2(cX)}ct.apply(cQ,cX);if(cU&&!cS&&cX.length>0&&(cW+cG.length)>1){cn.uniqueSort(cQ)}}if(cU){bY=cK;cg=cV}return cJ};cF.el=0;return cE?cy(cF):cF}bK=cn.compile=function(cE,cJ){var cG,cF=[],cI=[],cH=bU[cw][cE+" "];if(!cH){if(!cJ){cJ=by(cE)}cG=cJ.length;while(cG--){cH=b4(cJ[cG]);if(cH[cw]){cF.push(cH)}else{cI.push(cH)}}cH=bU(cE,bD(cI,cF))}return cH};function bW(cF,cI,cH){var cG=0,cE=cI.length;for(;cG<cE;cG++){cn(cF,cI[cG],cH)}return cH}function cv(cG,cE,cI,cM,cL){var cJ,cP,cF,cO,cN,cK=by(cG),cH=cK.length;if(!cM){if(cK.length===1){cP=cK[0]=cK[0].slice(0);if(cP.length>2&&(cF=cP[0]).type==="ID"&&cE.nodeType===9&&!cL&&ci.relative[cP[1].type]){cE=ci.find.ID(cF.matches[0].replace(b0,""),cE,cL)[0];if(!cE){return cI}cG=cG.slice(cP.shift().length)}for(cJ=cd.POS.test(cG)?-1:cP.length-1;cJ>=0;cJ--){cF=cP[cJ];if(ci.relative[(cO=cF.type)]){break}if((cN=ci.find[cO])){if((cM=cN(cF.matches[0].replace(b0,""),co.test(cP[0].type)&&cE.parentNode||cE,cL))){cP.splice(cJ,1);cG=cM.length&&cP.join("");if(!cG){ct.apply(cI,bS.call(cM,0));return cI}break}}}}}bK(cG,cK)(cM,cE,cL,cI,co.test(cG));return cI}if(bF.querySelectorAll){(function(){var cJ,cK=cv,cI=/'|\\/g,cG=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,cF=[":focus"],cE=[":active"],cH=bI.matchesSelector||bI.mozMatchesSelector||bI.webkitMatchesSelector||bI.oMatchesSelector||bI.msMatchesSelector;ch(function(cL){cL.innerHTML="<select><option selected=''></option></select>";if(!cL.querySelectorAll("[selected]").length){cF.push("\\["+b5+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)")}if(!cL.querySelectorAll(":checked").length){cF.push(":checked")}});ch(function(cL){cL.innerHTML="<p test=''></p>";if(cL.querySelectorAll("[test^='']").length){cF.push("[*^$]="+b5+"*(?:\"\"|'')")}cL.innerHTML="<input type='hidden'/>";if(!cL.querySelectorAll(":enabled").length){cF.push(":enabled",":disabled")}});cF=new RegExp(cF.join("|"));cv=function(cR,cM,cT,cW,cV){if(!cW&&!cV&&!cF.test(cR)){var cP,cU,cO=true,cL=cw,cN=cM,cS=cM.nodeType===9&&cR;if(cM.nodeType===1&&cM.nodeName.toLowerCase()!=="object"){cP=by(cR);if((cO=cM.getAttribute("id"))){cL=cO.replace(cI,"\\$&")}else{cM.setAttribute("id",cL)}cL="[id='"+cL+"'] ";cU=cP.length;while(cU--){cP[cU]=cL+cP[cU].join("")}cN=co.test(cR)&&cM.parentNode||cM;cS=cP.join(",")}if(cS){try{ct.apply(cT,bS.call(cN.querySelectorAll(cS),0));return cT}catch(cQ){}finally{if(!cO){cM.removeAttribute("id")}}}}return cK(cR,cM,cT,cW,cV)};if(cH){ch(function(cM){cJ=cH.call(cM,"div");try{cH.call(cM,"[test!='']:sizzle");cE.push("!=",cD)}catch(cL){}});cE=new RegExp(cE.join("|"));cn.matchesSelector=function(cM,cO){cO=cO.replace(cG,"='$1']");if(!bT(cM)&&!cE.test(cO)&&!cF.test(cO)){try{var cL=cH.call(cM,cO);if(cL||cJ||cM.document&&cM.document.nodeType!==11){return cL}}catch(cN){}}return cn(cO,null,null,[cM]).length>0}}})()}ci.pseudos.nth=ci.pseudos.eq;function bQ(){}ci.filters=bQ.prototype=ci.pseudos;ci.setFilters=new bQ();cn.attr=E.attr;E.find=cn;E.expr=cn.selectors;E.expr[":"]=E.expr.pseudos;E.unique=cn.uniqueSort;E.text=cn.getText;E.isXMLDoc=cn.isXML;E.contains=cn.contains})(bf);var W=/Until$/,ai=/^(?:parents|prev(?:Until|All))/,bs=/^.[^:#\[\.,]*$/,aS=E.expr.match.needsContext,aq={children:true,contents:true,next:true,prev:true};E.fn.extend({find:function(bw){var bA,bx,bC,bD,bB,bz,by=this;if(typeof bw!=="string"){return E(bw).filter(function(){for(bA=0,bx=by.length;bA<bx;bA++){if(E.contains(by[bA],this)){return true}}})}bz=this.pushStack("","find",bw);for(bA=0,bx=this.length;bA<bx;bA++){bC=bz.length;E.find(bw,this[bA],bz);if(bA>0){for(bD=bC;bD<bz.length;bD++){for(bB=0;bB<bC;bB++){if(bz[bB]===bz[bD]){bz.splice(bD--,1);break}}}}}return bz},has:function(bz){var by,bx=E(bz,this),bw=bx.length;return this.filter(function(){for(by=0;by<bw;by++){if(E.contains(this,bx[by])){return true}}})},not:function(bw){return this.pushStack(aB(this,bw,false),"not",bw)},filter:function(bw){return this.pushStack(aB(this,bw,true),"filter",bw)},is:function(bw){return !!bw&&(typeof bw==="string"?aS.test(bw)?E(bw,this.context).index(this[0])>=0:E.filter(bw,this).length>0:this.filter(bw).length>0)},closest:function(bA,bz){var bB,by=0,bw=this.length,bx=[],bC=aS.test(bA)||typeof bA!=="string"?E(bA,bz||this.context):0;for(;by<bw;by++){bB=this[by];while(bB&&bB.ownerDocument&&bB!==bz&&bB.nodeType!==11){if(bC?bC.index(bB)>-1:E.find.matchesSelector(bB,bA)){bx.push(bB);break}bB=bB.parentNode}}bx=bx.length>1?E.unique(bx):bx;return this.pushStack(bx,"closest",bA)},index:function(bw){if(!bw){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof bw==="string"){return E.inArray(this[0],E(bw))}return E.inArray(bw.jqx?bw[0]:bw,this)},add:function(bw,bx){var bz=typeof bw==="string"?E(bw,bx):E.makeArray(bw&&bw.nodeType?[bw]:bw),by=E.merge(this.get(),bz);return this.pushStack(z(bz[0])||z(by[0])?by:E.unique(by))},addBack:function(bw){return this.add(bw==null?this.prevObject:this.prevObject.filter(bw))}});E.fn.andSelf=E.fn.addBack;function z(bw){return !bw||!bw.parentNode||bw.parentNode.nodeType===11}function aD(bx,bw){do{bx=bx[bw]}while(bx&&bx.nodeType!==1);return bx}E.each({parent:function(bx){var bw=bx.parentNode;return bw&&bw.nodeType!==11?bw:null},parents:function(bw){return E.dir(bw,"parentNode")},parentsUntil:function(bx,bw,by){return E.dir(bx,"parentNode",by)},next:function(bw){return aD(bw,"nextSibling")},prev:function(bw){return aD(bw,"previousSibling")},nextAll:function(bw){return E.dir(bw,"nextSibling")},prevAll:function(bw){return E.dir(bw,"previousSibling")},nextUntil:function(bx,bw,by){return E.dir(bx,"nextSibling",by)},prevUntil:function(bx,bw,by){return E.dir(bx,"previousSibling",by)},siblings:function(bw){return E.sibling((bw.parentNode||{}).firstChild,bw)},children:function(bw){return E.sibling(bw.firstChild)},contents:function(bw){return E.nodeName(bw,"iframe")?bw.contentDocument||bw.contentWindow.document:E.merge([],bw.childNodes)}},function(bw,bx){E.fn[bw]=function(bA,by){var bz=E.map(this,bx,bA);if(!W.test(bw)){by=bA}if(by&&typeof by==="string"){bz=E.filter(by,bz)}bz=this.length>1&&!aq[bw]?E.unique(bz):bz;if(this.length>1&&ai.test(bw)){bz=bz.reverse()}return this.pushStack(bz,bw,aF.call(arguments).join(","))}});E.extend({filter:function(by,bw,bx){if(bx){by=":not("+by+")"}return bw.length===1?E.find.matchesSelector(bw[0],by)?[bw[0]]:[]:E.find.matches(by,bw)},dir:function(by,bx,bA){var bw=[],bz=by[bx];while(bz&&bz.nodeType!==9&&(bA===I||bz.nodeType!==1||!E(bz).is(bA))){if(bz.nodeType===1){bw.push(bz)}bz=bz[bx]}return bw},sibling:function(by,bx){var bw=[];for(;by;by=by.nextSibling){if(by.nodeType===1&&by!==bx){bw.push(by)}}return bw}});function aB(bz,by,bw){by=by||0;if(E.isFunction(by)){return E.grep(bz,function(bB,bA){var bC=!!by.call(bB,bA,bB);return bC===bw})}else{if(by.nodeType){return E.grep(bz,function(bB,bA){return(bB===by)===bw})}else{if(typeof by==="string"){var bx=E.grep(bz,function(bA){return bA.nodeType===1});if(bs.test(by)){return E.filter(by,bx,!bw)}else{by=E.filter(by,bx)}}}}return E.grep(bz,function(bB,bA){return(E.inArray(bB,by)>=0)===bw})}function c(bw){var by=aL.split("|"),bx=bw.createDocumentFragment();if(bx.createElement){while(by.length){bx.createElement(by.pop())}}return bx}var aL="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ac=/ JQXLite\d+="(?:null|\d+)"/g,aj=/^\s+/,N=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,e=/<([\w:]+)/,x=/<tbody/i,R=/<|&#?\w+;/,Y=/<(?:script|style|link)/i,K=/<(?:script|object|embed|option|style)/i,ae=new RegExp("<(?:"+aL+")[\\s/>]","i"),T=/^(?:checkbox|radio)$/,q=/checked\s*(?:[^=]|=\s*.checked.)/i,br=/\/(java|ecma)script/i,aI=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,ao={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},V=c(am),bi=V.appendChild(am.createElement("div"));ao.optgroup=ao.option;ao.tbody=ao.tfoot=ao.colgroup=ao.caption=ao.thead;ao.th=ao.td;if(!E.support.htmlSerialize){ao._default=[1,"X<div>","</div>"]}E.fn.extend({text:function(bw){return E.access(this,function(bx){return bx===I?E.text(this):this.empty().append((this[0]&&this[0].ownerDocument||am).createTextNode(bx))},null,bw,arguments.length)},wrapAll:function(bw){if(E.isFunction(bw)){return this.each(function(by){E(this).wrapAll(bw.call(this,by))})}if(this[0]){var bx=E(bw,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bx.insertBefore(this[0])}bx.map(function(){var by=this;while(by.firstChild&&by.firstChild.nodeType===1){by=by.firstChild}return by}).append(this)}return this},wrapInner:function(bw){if(E.isFunction(bw)){return this.each(function(bx){E(this).wrapInner(bw.call(this,bx))})}return this.each(function(){var bx=E(this),by=bx.contents();if(by.length){by.wrapAll(bw)}else{bx.append(bw)}})},wrap:function(bw){var bx=E.isFunction(bw);return this.each(function(by){E(this).wrapAll(bx?bw.call(this,by):bw)})},unwrap:function(){return this.parent().each(function(){if(!E.nodeName(this,"body")){E(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(bw){if(this.nodeType===1||this.nodeType===11){this.appendChild(bw)}})},prepend:function(){return this.domManip(arguments,true,function(bw){if(this.nodeType===1||this.nodeType===11){this.insertBefore(bw,this.firstChild)}})},before:function(){if(!z(this[0])){return this.domManip(arguments,false,function(bx){this.parentNode.insertBefore(bx,this)})}if(arguments.length){var bw=E.clean(arguments);return this.pushStack(E.merge(bw,this),"before",this.selector)}},after:function(){if(!z(this[0])){return this.domManip(arguments,false,function(bx){this.parentNode.insertBefore(bx,this.nextSibling)})}if(arguments.length){var bw=E.clean(arguments);return this.pushStack(E.merge(this,bw),"after",this.selector)}},remove:function(bw,bz){var by,bx=0;for(;(by=this[bx])!=null;bx++){if(!bw||E.filter(bw,[by]).length){if(!bz&&by.nodeType===1){E.cleanData(by.getElementsByTagName("*"));E.cleanData([by])}if(by.parentNode){by.parentNode.removeChild(by)}}}return this},empty:function(){var bx,bw=0;for(;(bx=this[bw])!=null;bw++){if(bx.nodeType===1){E.cleanData(bx.getElementsByTagName("*"))}while(bx.firstChild){bx.removeChild(bx.firstChild)}}return this},clone:function(bx,bw){bx=bx==null?false:bx;bw=bw==null?bx:bw;return this.map(function(){return E.clone(this,bx,bw)})},html:function(bw){return E.access(this,function(bA){var bz=this[0]||{},by=0,bx=this.length;if(bA===I){return bz.nodeType===1?bz.innerHTML.replace(ac,""):I}if(typeof bA==="string"&&!Y.test(bA)&&(E.support.htmlSerialize||!ae.test(bA))&&(E.support.leadingWhitespace||!aj.test(bA))&&!ao[(e.exec(bA)||["",""])[1].toLowerCase()]){bA=bA.replace(N,"<$1></$2>");try{for(;by<bx;by++){bz=this[by]||{};if(bz.nodeType===1){E.cleanData(bz.getElementsByTagName("*"));bz.innerHTML=bA}}bz=0}catch(bB){}}if(bz){this.empty().append(bA)}},null,bw,arguments.length)},replaceWith:function(bw){if(!z(this[0])){if(E.isFunction(bw)){return this.each(function(bz){var by=E(this),bx=by.html();by.replaceWith(bw.call(this,bz,bx))})}if(typeof bw!=="string"){bw=E(bw).detach()}return this.each(function(){var by=this.nextSibling,bx=this.parentNode;E(this).remove();if(by){E(by).before(bw)}else{E(bx).append(bw)}})}return this.length?this.pushStack(E(E.isFunction(bw)?bw():bw),"replaceWith",bw):this},detach:function(bw){return this.remove(bw,true)},domManip:function(bC,bG,bF){bC=[].concat.apply([],bC);var by,bA,bB,bE,bz=0,bD=bC[0],bx=[],bw=this.length;if(!E.support.checkClone&&bw>1&&typeof bD==="string"&&q.test(bD)){return this.each(function(){E(this).domManip(bC,bG,bF)})}if(E.isFunction(bD)){return this.each(function(bI){var bH=E(this);bC[0]=bD.call(this,bI,bG?bH.html():I);bH.domManip(bC,bG,bF)})}if(this[0]){by=E.buildFragment(bC,this,bx);bB=by.fragment;bA=bB.firstChild;if(bB.childNodes.length===1){bB=bA}if(bA){bG=bG&&E.nodeName(bA,"tr");for(bE=by.cacheable||bw-1;bz<bw;bz++){bF.call(bG&&E.nodeName(this[bz],"table")?a5(this[bz],"tbody"):this[bz],bz===bE?bB:E.clone(bB,true,true))}}bB=bA=null;if(bx.length){E.each(bx,function(bH,bI){if(bI.src){if(E.ajax){E.ajax({url:bI.src,type:"GET",dataType:"script",async:false,global:false,"throws":true})}else{E.error("no ajax")}}else{E.globalEval((bI.text||bI.textContent||bI.innerHTML||"").replace(aI,""))}if(bI.parentNode){bI.parentNode.removeChild(bI)}})}}return this}});function a5(bx,bw){return bx.getElementsByTagName(bw)[0]||bx.appendChild(bx.ownerDocument.createElement(bw))}function t(bD,bx){if(bx.nodeType!==1||!E.hasData(bD)){return}var bA,bz,bw,bC=E._data(bD),bB=E._data(bx,bC),by=bC.events;if(by){delete bB.handle;bB.events={};for(bA in by){for(bz=0,bw=by[bA].length;bz<bw;bz++){E.event.add(bx,bA,by[bA][bz])}}}if(bB.data){bB.data=E.extend({},bB.data)}}function ad(bx,bw){var by;if(bw.nodeType!==1){return}if(bw.clearAttributes){bw.clearAttributes()}if(bw.mergeAttributes){bw.mergeAttributes(bx)}by=bw.nodeName.toLowerCase();if(by==="object"){if(bw.parentNode){bw.outerHTML=bx.outerHTML}if(E.support.html5Clone&&(bx.innerHTML&&!E.trim(bw.innerHTML))){bw.innerHTML=bx.innerHTML}}else{if(by==="input"&&T.test(bx.type)){bw.defaultChecked=bw.checked=bx.checked;if(bw.value!==bx.value){bw.value=bx.value}}else{if(by==="option"){bw.selected=bx.defaultSelected}else{if(by==="input"||by==="textarea"){bw.defaultValue=bx.defaultValue}else{if(by==="script"&&bw.text!==bx.text){bw.text=bx.text}}}}}bw.removeAttribute(E.expando)}E.buildFragment=function(bz,bA,bx){var by,bw,bB,bC=bz[0];bA=bA||am;bA=!bA.nodeType&&bA[0]||bA;bA=bA.ownerDocument||bA;if(bz.length===1&&typeof bC==="string"&&bC.length<512&&bA===am&&bC.charAt(0)==="<"&&!K.test(bC)&&(E.support.checkClone||!q.test(bC))&&(E.support.html5Clone||!ae.test(bC))){bw=true;by=E.fragments[bC];bB=by!==I}if(!by){by=bA.createDocumentFragment();E.clean(bz,bA,by,bx);if(bw){E.fragments[bC]=bB&&by}}return{fragment:by,cacheable:bw}};E.fragments={};E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(bw,bx){E.fn[bw]=function(by){var bA,bC=0,bB=[],bE=E(by),bz=bE.length,bD=this.length===1&&this[0].parentNode;if((bD==null||bD&&bD.nodeType===11&&bD.childNodes.length===1)&&bz===1){bE[bx](this[0]);return this}else{for(;bC<bz;bC++){bA=(bC>0?this.clone(true):this).get();E(bE[bC])[bx](bA);bB=bB.concat(bA)}return this.pushStack(bB,bw,bE.selector)}}});function bm(bw){if(typeof bw.getElementsByTagName!=="undefined"){return bw.getElementsByTagName("*")}else{if(typeof bw.querySelectorAll!=="undefined"){return bw.querySelectorAll("*")}else{return[]}}}function an(bw){if(T.test(bw.type)){bw.defaultChecked=bw.checked}}E.extend({clone:function(bA,bC,by){var bw,bx,bz,bB;if(E.support.html5Clone||E.isXMLDoc(bA)||!ae.test("<"+bA.nodeName+">")){bB=bA.cloneNode(true)}else{bi.innerHTML=bA.outerHTML;bi.removeChild(bB=bi.firstChild)}if((!E.support.noCloneEvent||!E.support.noCloneChecked)&&(bA.nodeType===1||bA.nodeType===11)&&!E.isXMLDoc(bA)){ad(bA,bB);bw=bm(bA);bx=bm(bB);for(bz=0;bw[bz];++bz){if(bx[bz]){ad(bw[bz],bx[bz])}}}if(bC){t(bA,bB);if(by){bw=bm(bA);bx=bm(bB);for(bz=0;bw[bz];++bz){t(bw[bz],bx[bz])}}}bw=bx=null;return bB},clean:function(bJ,by,bw,bz){var bG,bF,bI,bN,bC,bM,bD,bA,bx,bH,bL,bE,bB=by===am&&V,bK=[];if(!by||typeof by.createDocumentFragment==="undefined"){by=am}for(bG=0;(bI=bJ[bG])!=null;bG++){if(typeof bI==="number"){bI+=""}if(!bI){continue}if(typeof bI==="string"){if(!R.test(bI)){bI=by.createTextNode(bI)}else{bB=bB||c(by);bD=by.createElement("div");bB.appendChild(bD);bI=bI.replace(N,"<$1></$2>");bN=(e.exec(bI)||["",""])[1].toLowerCase();bC=ao[bN]||ao._default;bM=bC[0];bD.innerHTML=bC[1]+bI+bC[2];while(bM--){bD=bD.lastChild}if(!E.support.tbody){bA=x.test(bI);bx=bN==="table"&&!bA?bD.firstChild&&bD.firstChild.childNodes:bC[1]==="<table>"&&!bA?bD.childNodes:[];for(bF=bx.length-1;bF>=0;--bF){if(E.nodeName(bx[bF],"tbody")&&!bx[bF].childNodes.length){bx[bF].parentNode.removeChild(bx[bF])}}}if(!E.support.leadingWhitespace&&aj.test(bI)){bD.insertBefore(by.createTextNode(aj.exec(bI)[0]),bD.firstChild)}bI=bD.childNodes;bD.parentNode.removeChild(bD)}}if(bI.nodeType){bK.push(bI)}else{E.merge(bK,bI)}}if(bD){bI=bD=bB=null}if(!E.support.appendChecked){for(bG=0;(bI=bK[bG])!=null;bG++){if(E.nodeName(bI,"input")){an(bI)}else{if(typeof bI.getElementsByTagName!=="undefined"){E.grep(bI.getElementsByTagName("input"),an)}}}}if(bw){bL=function(bO){if(!bO.type||br.test(bO.type)){return bz?bz.push(bO.parentNode?bO.parentNode.removeChild(bO):bO):bw.appendChild(bO)}};for(bG=0;(bI=bK[bG])!=null;bG++){if(!(E.nodeName(bI,"script")&&bL(bI))){bw.appendChild(bI);if(typeof bI.getElementsByTagName!=="undefined"){bE=E.grep(E.merge([],bI.getElementsByTagName("script")),bL);bK.splice.apply(bK,[bG+1,0].concat(bE));bG+=bE.length}}}}return bK},cleanData:function(bx,bF){var bA,by,bz,bE,bB=0,bG=E.expando,bw=E.cache,bC=E.support.deleteExpando,bD=E.event.special;for(;(bz=bx[bB])!=null;bB++){if(bF||E.acceptData(bz)){by=bz[bG];bA=by&&bw[by];if(bA){if(bA.events){for(bE in bA.events){if(bD[bE]){E.event.remove(bz,bE)}else{E.removeEvent(bz,bE,bA.handle)}}}if(bw[by]){delete bw[by];if(bC){delete bz[bG]}else{if(bz.removeAttribute){bz.removeAttribute(bG)}else{bz[bG]=null}}E.deletedIds.push(by)}}}}}});(function(){var bw,bx;E.uaMatch=function(bz){bz=bz.toLowerCase();var by=/(chrome)[ \/]([\w.]+)/.exec(bz)||/(webkit)[ \/]([\w.]+)/.exec(bz)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(bz)||/(msie) ([\w.]+)/.exec(bz)||bz.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(bz)||[];return{browser:by[1]||"",version:by[2]||"0"}};bw=E.uaMatch(bv.userAgent);bx={};if(bw.browser){bx[bw.browser]=true;bx.version=bw.version}if(bx.chrome){bx.webkit=true}else{if(bx.webkit){bx.safari=true}}E.browser=bx;E.sub=function(){function bz(bB,bC){return new bz.fn.init(bB,bC)}E.extend(true,bz,this);bz.superclass=this;bz.fn=bz.prototype=this();bz.fn.constructor=bz;bz.sub=this.sub;bz.fn.init=function bA(bB,bC){if(bC&&bC instanceof E&&!(bC instanceof bz)){bC=bz(bC)}return E.fn.init.call(this,bB,bC,by)};bz.fn.init.prototype=bz.fn;var by=bz(am);return bz}})();var S,be,n,af=/alpha\([^)]*\)/i,al=/opacity=([^)]*)/,y=/^(top|right|bottom|left)$/,ak=/^(none|table(?!-c[ea]).+)/,ax=/^margin/,k=new RegExp("^("+aG+")(.*)$","i"),aX=new RegExp("^("+aG+")(?!px)[a-z%]+$","i"),G=new RegExp("^([-+])=("+aG+")","i"),L={BODY:"block"},bc={position:"absolute",visibility:"hidden",display:"block"},aN={letterSpacing:0,fontWeight:400},F=["Top","Right","Bottom","Left"],Q=["Webkit","O","Moz","ms"],bg=E.fn.toggle;function a4(bz,bx){if(bx in bz){return bx}var bA=bx.charAt(0).toUpperCase()+bx.slice(1),bw=bx,by=Q.length;while(by--){bx=Q[by]+bA;if(bx in bz){return bx}}return bw}function ar(bx,bw){bx=bw||bx;return E.css(bx,"display")==="none"||!E.contains(bx.ownerDocument,bx)}function bd(bB,bw){var bA,bC,bx=[],by=0,bz=bB.length;for(;by<bz;by++){bA=bB[by];if(!bA.style){continue}bx[by]=E._data(bA,"olddisplay");if(bw){if(!bx[by]&&bA.style.display==="none"){bA.style.display=""}if(bA.style.display===""&&ar(bA)){bx[by]=E._data(bA,"olddisplay",aP(bA.nodeName))}}else{bC=S(bA,"display");if(!bx[by]&&bC!=="none"){E._data(bA,"olddisplay",bC)}}}for(by=0;by<bz;by++){bA=bB[by];if(!bA.style){continue}if(!bw||bA.style.display==="none"||bA.style.display===""){bA.style.display=bw?bx[by]||"":"none"}}return bB}E.fn.extend({css:function(bw,bx){return E.access(this,function(bz,by,bA){return bA!==I?E.style(bz,by,bA):E.css(bz,by)},bw,bx,arguments.length>1)},show:function(){return bd(this,true)},hide:function(){return bd(this)},toggle:function(by,bx){var bw=typeof by==="boolean";if(E.isFunction(by)&&E.isFunction(bx)){return bg.apply(this,arguments)}return this.each(function(){if(bw?by:ar(this)){E(this).show()}else{E(this).hide()}})}});E.extend({cssHooks:{opacity:{get:function(by,bx){if(bx){var bw=S(by,"opacity");return bw===""?"1":bw}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":E.support.cssFloat?"cssFloat":"styleFloat"},style:function(by,bx,bE,bz){if(!by||by.nodeType===3||by.nodeType===8||!by.style){return}var bC,bD,bF,bA=E.camelCase(bx),bw=by.style;bx=E.cssProps[bA]||(E.cssProps[bA]=a4(bw,bA));bF=E.cssHooks[bx]||E.cssHooks[bA];if(bE!==I){bD=typeof bE;if(bD==="string"&&(bC=G.exec(bE))){bE=(bC[1]+1)*bC[2]+parseFloat(E.css(by,bx));bD="number"}if(bE==null||bD==="number"&&isNaN(bE)){return}if(bD==="number"&&!E.cssNumber[bA]){bE+="px"}if(!bF||!("set" in bF)||(bE=bF.set(by,bE,bz))!==I){try{bw[bx]=bE}catch(bB){}}}else{if(bF&&"get" in bF&&(bC=bF.get(by,false,bz))!==I){return bC}return bw[bx]}},css:function(bC,bA,bB,bx){var bD,bz,bw,by=E.camelCase(bA);bA=E.cssProps[by]||(E.cssProps[by]=a4(bC.style,by));bw=E.cssHooks[bA]||E.cssHooks[by];if(bw&&"get" in bw){bD=bw.get(bC,true,bx)}if(bD===I){bD=S(bC,bA)}if(bD==="normal"&&bA in aN){bD=aN[bA]}if(bB||bx!==I){bz=parseFloat(bD);return bB||E.isNumeric(bz)?bz||0:bD}return bD},swap:function(bA,bz,bB){var by,bx,bw={};for(bx in bz){bw[bx]=bA.style[bx];bA.style[bx]=bz[bx]}by=bB.call(bA);for(bx in bz){bA.style[bx]=bw[bx]}return by}});if(bf.getComputedStyle){S=function(bD,bx){var bw,bA,bz,bC,bB=bf.getComputedStyle(bD,null),by=bD.style;if(bB){bw=bB.getPropertyValue(bx)||bB[bx];if(bw===""&&!E.contains(bD.ownerDocument,bD)){bw=E.style(bD,bx)}if(aX.test(bw)&&ax.test(bx)){bA=by.width;bz=by.minWidth;bC=by.maxWidth;by.minWidth=by.maxWidth=by.width=bw;bw=bB.width;by.width=bA;by.minWidth=bz;by.maxWidth=bC}}return bw}}else{if(am.documentElement.currentStyle){S=function(bA,by){var bB,bw,bx=bA.currentStyle&&bA.currentStyle[by],bz=bA.style;if(bx==null&&bz&&bz[by]){bx=bz[by]}if(aX.test(bx)&&!y.test(by)){bB=bz.left;bw=bA.runtimeStyle&&bA.runtimeStyle.left;if(bw){bA.runtimeStyle.left=bA.currentStyle.left}bz.left=by==="fontSize"?"1em":bx;bx=bz.pixelLeft+"px";bz.left=bB;if(bw){bA.runtimeStyle.left=bw}}return bx===""?"auto":bx}}}function aQ(bw,by,bz){var bx=k.exec(by);return bx?Math.max(0,bx[1]-(bz||0))+(bx[2]||"px"):by}function a1(bz,bx,bw,bB){var by=bw===(bB?"border":"content")?4:bx==="width"?1:0,bA=0;for(;by<4;by+=2){if(bw==="margin"){bA+=E.css(bz,bw+F[by],true)}if(bB){if(bw==="content"){bA-=parseFloat(S(bz,"padding"+F[by]))||0}if(bw!=="margin"){bA-=parseFloat(S(bz,"border"+F[by]+"Width"))||0}}else{bA+=parseFloat(S(bz,"padding"+F[by]))||0;if(bw!=="padding"){bA+=parseFloat(S(bz,"border"+F[by]+"Width"))||0}}}return bA}function aa(bz,bx,bw){var bA=bx==="width"?bz.offsetWidth:bz.offsetHeight,by=true,bB=E.support.boxSizing&&E.css(bz,"boxSizing")==="border-box";if(bA<=0||bA==null){bA=S(bz,bx);if(bA<0||bA==null){bA=bz.style[bx]}if(aX.test(bA)){return bA}by=bB&&(E.support.boxSizingReliable||bA===bz.style[bx]);bA=parseFloat(bA)||0}return(bA+a1(bz,bx,bw||(bB?"border":"content"),by))+"px"}function aP(by){if(L[by]){return L[by]}var bw=E("<"+by+">").appendTo(am.body),bx=bw.css("display");bw.remove();if(bx==="none"||bx===""){be=am.body.appendChild(be||E.extend(am.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!n||!be.createElement){n=(be.contentWindow||be.contentDocument).document;n.write("<!doctype html><html><body>");n.close()}bw=n.body.appendChild(n.createElement(by));bx=S(bw,"display");am.body.removeChild(be)}L[by]=bx;return bx}E.each(["height","width"],function(bx,bw){E.cssHooks[bw]={get:function(bA,bz,by){if(bz){if(bA.offsetWidth===0&&ak.test(S(bA,"display"))){return E.swap(bA,bc,function(){return aa(bA,bw,by)})}else{return aa(bA,bw,by)}}},set:function(bz,bA,by){return aQ(bz,bA,by?a1(bz,bw,by,E.support.boxSizing&&E.css(bz,"boxSizing")==="border-box"):0)}}});if(!E.support.opacity){E.cssHooks.opacity={get:function(bx,bw){return al.test((bw&&bx.currentStyle?bx.currentStyle.filter:bx.style.filter)||"")?(0.01*parseFloat(RegExp.$1))+"":bw?"1":""},set:function(bA,bB){var bz=bA.style,bx=bA.currentStyle,bw=E.isNumeric(bB)?"alpha(opacity="+bB*100+")":"",by=bx&&bx.filter||bz.filter||"";bz.zoom=1;if(bB>=1&&E.trim(by.replace(af,""))===""&&bz.removeAttribute){bz.removeAttribute("filter");if(bx&&!bx.filter){return}}bz.filter=af.test(by)?by.replace(af,bw):by+" "+bw}}}E(function(){if(!E.support.reliableMarginRight){E.cssHooks.marginRight={get:function(bx,bw){return E.swap(bx,{display:"inline-block"},function(){if(bw){return S(bx,"marginRight")}})}}}if(!E.support.pixelPosition&&E.fn.position){E.each(["top","left"],function(bw,bx){E.cssHooks[bx]={get:function(bA,bz){if(bz){var by=S(bA,bx);return aX.test(by)?E(bA).position()[bx]+"px":by}}}})}});if(E.expr&&E.expr.filters){E.expr.filters.hidden=function(bw){return(bw.offsetWidth===0&&bw.offsetHeight===0)||(!E.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||S(bw,"display"))==="none")};E.expr.filters.visible=function(bw){return !E.expr.filters.hidden(bw)}}E.each({margin:"",padding:"",border:"Width"},function(bw,bx){E.cssHooks[bw+bx]={expand:function(bA){var bz,bB=typeof bA==="string"?bA.split(" "):[bA],by={};for(bz=0;bz<4;bz++){by[bw+F[bz]+bx]=bB[bz]||bB[bz-2]||bB[0]}return by}};if(!ax.test(bw)){E.cssHooks[bw+bx].set=aQ}});var i=/%20/g,ah=/\[\]$/,bt=/\r?\n/g,aW=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,r=/^(?:select|textarea)/i;E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?E.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||r.test(this.nodeName)||aW.test(this.type))}).map(function(bw,bx){var by=E(this).val();return by==null?null:E.isArray(by)?E.map(by,function(bA,bz){return{name:bx.name,value:bA.replace(bt,"\r\n")}}):{name:bx.name,value:by.replace(bt,"\r\n")}}).get()}});E.param=function(bw,by){var bz,bx=[],bA=function(bB,bC){bC=E.isFunction(bC)?bC():(bC==null?"":bC);bx[bx.length]=encodeURIComponent(bB)+"="+encodeURIComponent(bC)};if(by===I){by=E.ajaxSettings&&E.ajaxSettings.traditional}if(E.isArray(bw)||(bw.jqx&&!E.isPlainObject(bw))){E.each(bw,function(){bA(this.name,this.value)})}else{for(bz in bw){u(bz,bw[bz],by,bA)}}return bx.join("&").replace(i,"+")};function u(by,bA,bx,bz){var bw;if(E.isArray(bA)){E.each(bA,function(bC,bB){if(bx||ah.test(by)){bz(by,bB)}else{u(by+"["+(typeof bB==="object"?bC:"")+"]",bB,bx,bz)}})}else{if(!bx&&E.type(bA)==="object"){for(bw in bA){u(by+"["+bw+"]",bA[bw],bx,bz)}}else{bz(by,bA)}}}if(E.support.ajax){E.ajaxTransport(function(bw){if(!bw.crossDomain||E.support.cors){var bx;return{send:function(bD,by){var bB,bA,bC=bw.xhr();if(bw.username){bC.open(bw.type,bw.url,bw.async,bw.username,bw.password)}else{bC.open(bw.type,bw.url,bw.async)}if(bw.xhrFields){for(bA in bw.xhrFields){bC[bA]=bw.xhrFields[bA]}}if(bw.mimeType&&bC.overrideMimeType){bC.overrideMimeType(bw.mimeType)}if(!bw.crossDomain&&!bD["X-Requested-With"]){bD["X-Requested-With"]="XMLHttpRequest"}try{for(bA in bD){bC.setRequestHeader(bA,bD[bA])}}catch(bz){}bC.send((bw.hasContent&&bw.data)||null);bx=function(bM,bG){var bH,bF,bE,bK,bJ;try{if(bx&&(bG||bC.readyState===4)){bx=I;if(bB){bC.onreadystatechange=E.noop;if(xhrOnUnloadAbort){delete xhrCallbacks[bB]}}if(bG){if(bC.readyState!==4){bC.abort()}}else{bH=bC.status;bE=bC.getAllResponseHeaders();bK={};bJ=bC.responseXML;if(bJ&&bJ.documentElement){bK.xml=bJ}try{bK.text=bC.responseText}catch(bL){}try{bF=bC.statusText}catch(bL){bF=""}if(!bH&&bw.isLocal&&!bw.crossDomain){bH=bK.text?200:404}else{if(bH===1223){bH=204}}}}}catch(bI){if(!bG){by(-1,bI)}}if(bK){by(bH,bF,bK,bE)}};if(!bw.async){bx()}else{if(bC.readyState===4){setTimeout(bx,0)}else{bB=++xhrId;if(xhrOnUnloadAbort){if(!xhrCallbacks){xhrCallbacks={};E(bf).unload(xhrOnUnloadAbort)}xhrCallbacks[bB]=bx}bC.onreadystatechange=bx}}},abort:function(){if(bx){bx(0,1)}}}}})}var a8,a3,au=/^(?:toggle|show|hide)$/,aO=new RegExp("^(?:([-+])=|)("+aG+")([a-z%]*)$","i"),a9=/queueHooks$/,m=[bo],J={"*":[function(bw,bD){var bz,bE,bF=this.createTween(bw,bD),bA=aO.exec(bD),bB=bF.cur(),bx=+bB||0,by=1,bC=20;if(bA){bz=+bA[2];bE=bA[3]||(E.cssNumber[bw]?"":"px");if(bE!=="px"&&bx){bx=E.css(bF.elem,bw,true)||bz||1;do{by=by||".5";bx=bx/by;E.style(bF.elem,bw,bx+bE)}while(by!==(by=bF.cur()/bB)&&by!==1&&--bC)}bF.unit=bE;bF.start=bx;bF.end=bA[1]?bx+(bA[1]+1)*bz:bz}return bF}]};function bn(){setTimeout(function(){a8=I},0);return(a8=E.now())}function ab(bx,bw){E.each(bw,function(bC,bA){var bB=(J[bC]||[]).concat(J["*"]),by=0,bz=bB.length;for(;by<bz;by++){if(bB[by].call(bx,bC,bA)){return}}})}function bl(by,bC,bF){var bG,bB=0,bw=0,bx=m.length,bE=E.Deferred().always(function(){delete bA.elem}),bA=function(){var bM=a8||bn(),bJ=Math.max(0,bz.startTime+bz.duration-bM),bH=bJ/bz.duration||0,bL=1-bH,bI=0,bK=bz.tweens.length;for(;bI<bK;bI++){bz.tweens[bI].run(bL)}bE.notifyWith(by,[bz,bL,bJ]);if(bL<1&&bK){return bJ}else{bE.resolveWith(by,[bz]);return false}},bz=bE.promise({elem:by,props:E.extend({},bC),opts:E.extend(true,{specialEasing:{}},bF),originalProperties:bC,originalOptions:bF,startTime:a8||bn(),duration:bF.duration,tweens:[],createTween:function(bK,bH,bJ){var bI=E.Tween(by,bz.opts,bK,bH,bz.opts.specialEasing[bK]||bz.opts.easing);bz.tweens.push(bI);return bI},stop:function(bI){var bH=0,bJ=bI?bz.tweens.length:0;for(;bH<bJ;bH++){bz.tweens[bH].run(1)}if(bI){bE.resolveWith(by,[bz,bI])}else{bE.rejectWith(by,[bz,bI])}return this}}),bD=bz.props;aY(bD,bz.opts.specialEasing);for(;bB<bx;bB++){bG=m[bB].call(bz,by,bD,bz.opts);if(bG){return bG}}ab(bz,bD);if(E.isFunction(bz.opts.start)){bz.opts.start.call(by,bz)}E.fx.timer(E.extend(bA,{anim:bz,queue:bz.opts.queue,elem:by}));return bz.progress(bz.opts.progress).done(bz.opts.done,bz.opts.complete).fail(bz.opts.fail).always(bz.opts.always)}function aY(bz,bB){var by,bx,bC,bA,bw;for(by in bz){bx=E.camelCase(by);bC=bB[bx];bA=bz[by];if(E.isArray(bA)){bC=bA[1];bA=bz[by]=bA[0]}if(by!==bx){bz[bx]=bA;delete bz[by]}bw=E.cssHooks[bx];if(bw&&"expand" in bw){bA=bw.expand(bA);delete bz[bx];for(by in bA){if(!(by in bz)){bz[by]=bA[by];bB[by]=bC}}}else{bB[bx]=bC}}}E.Animation=E.extend(bl,{tweener:function(bx,bA){if(E.isFunction(bx)){bA=bx;bx=["*"]}else{bx=bx.split(" ")}var bz,bw=0,by=bx.length;for(;bw<by;bw++){bz=bx[bw];J[bz]=J[bz]||[];J[bz].unshift(bA)}},prefilter:function(bx,bw){if(bw){m.unshift(bx)}else{m.push(bx)}}});function bo(bA,bG,bw){var bF,by,bI,bz,bM,bC,bL,bK,bJ,bB=this,bx=bA.style,bH={},bE=[],bD=bA.nodeType&&ar(bA);if(!bw.queue){bK=E._queueHooks(bA,"fx");if(bK.unqueued==null){bK.unqueued=0;bJ=bK.empty.fire;bK.empty.fire=function(){if(!bK.unqueued){bJ()}}}bK.unqueued++;bB.always(function(){bB.always(function(){bK.unqueued--;if(!E.queue(bA,"fx").length){bK.empty.fire()}})})}if(bA.nodeType===1&&("height" in bG||"width" in bG)){bw.overflow=[bx.overflow,bx.overflowX,bx.overflowY];if(E.css(bA,"display")==="inline"&&E.css(bA,"float")==="none"){if(!E.support.inlineBlockNeedsLayout||aP(bA.nodeName)==="inline"){bx.display="inline-block"}else{bx.zoom=1}}}if(bw.overflow){bx.overflow="hidden";if(!E.support.shrinkWrapBlocks){bB.done(function(){bx.overflow=bw.overflow[0];bx.overflowX=bw.overflow[1];bx.overflowY=bw.overflow[2]})}}for(bF in bG){bI=bG[bF];if(au.exec(bI)){delete bG[bF];bC=bC||bI==="toggle";if(bI===(bD?"hide":"show")){continue}bE.push(bF)}}bz=bE.length;if(bz){bM=E._data(bA,"fxshow")||E._data(bA,"fxshow",{});if("hidden" in bM){bD=bM.hidden}if(bC){bM.hidden=!bD}if(bD){E(bA).show()}else{bB.done(function(){E(bA).hide()})}bB.done(function(){var bN;E.removeData(bA,"fxshow",true);for(bN in bH){E.style(bA,bN,bH[bN])}});for(bF=0;bF<bz;bF++){by=bE[bF];bL=bB.createTween(by,bD?bM[by]:0);bH[by]=bM[by]||E.style(bA,by);if(!(by in bM)){bM[by]=bL.start;if(bD){bL.end=bL.start;bL.start=by==="width"||by==="height"?1:0}}}}}function w(by,bx,bA,bw,bz){return new w.prototype.init(by,bx,bA,bw,bz)}E.Tween=w;w.prototype={constructor:w,init:function(bz,bx,bB,bw,bA,by){this.elem=bz;this.prop=bB;this.easing=bA||"swing";this.options=bx;this.start=this.now=this.cur();this.end=bw;this.unit=by||(E.cssNumber[bB]?"":"px")},cur:function(){var bw=w.propHooks[this.prop];return bw&&bw.get?bw.get(this):w.propHooks._default.get(this)},run:function(by){var bx,bw=w.propHooks[this.prop];if(this.options.duration){this.pos=bx=E.easing[this.easing](by,this.options.duration*by,0,1,this.options.duration)}else{this.pos=bx=by}this.now=(this.end-this.start)*bx+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(bw&&bw.set){bw.set(this)}else{w.propHooks._default.set(this)}return this}};w.prototype.init.prototype=w.prototype;w.propHooks={_default:{get:function(bx){var bw;if(bx.elem[bx.prop]!=null&&(!bx.elem.style||bx.elem.style[bx.prop]==null)){return bx.elem[bx.prop]}bw=E.css(bx.elem,bx.prop,false,"");return !bw||bw==="auto"?0:bw},set:function(bw){if(E.fx.step[bw.prop]){E.fx.step[bw.prop](bw)}else{if(bw.elem.style&&(bw.elem.style[E.cssProps[bw.prop]]!=null||E.cssHooks[bw.prop])){E.style(bw.elem,bw.prop,bw.now+bw.unit)}else{bw.elem[bw.prop]=bw.now}}}}};w.propHooks.scrollTop=w.propHooks.scrollLeft={set:function(bw){if(bw.elem.nodeType&&bw.elem.parentNode){bw.elem[bw.prop]=bw.now}}};E.each(["toggle","show","hide"],function(bx,bw){var by=E.fn[bw];E.fn[bw]=function(bz,bB,bA){return bz==null||typeof bz==="boolean"||(!bx&&E.isFunction(bz)&&E.isFunction(bB))?by.apply(this,arguments):this.animate(a0(bw,true),bz,bB,bA)}});E.fn.extend({fadeTo:function(bw,bz,by,bx){return this.filter(ar).css("opacity",0).show().end().animate({opacity:bz},bw,by,bx)},animate:function(bC,bz,bB,bA){var by=E.isEmptyObject(bC),bw=E.speed(bz,bB,bA),bx=function(){var bD=bl(this,E.extend({},bC),bw);if(by){bD.stop(true)}};return by||bw.queue===false?this.each(bx):this.queue(bw.queue,bx)},stop:function(by,bx,bw){var bz=function(bA){var bB=bA.stop;delete bA.stop;bB(bw)};if(typeof by!=="string"){bw=bx;bx=by;by=I}if(bx&&by!==false){this.queue(by||"fx",[])}return this.each(function(){var bD=true,bA=by!=null&&by+"queueHooks",bC=E.timers,bB=E._data(this);if(bA){if(bB[bA]&&bB[bA].stop){bz(bB[bA])}}else{for(bA in bB){if(bB[bA]&&bB[bA].stop&&a9.test(bA)){bz(bB[bA])}}}for(bA=bC.length;bA--;){if(bC[bA].elem===this&&(by==null||bC[bA].queue===by)){bC[bA].anim.stop(bw);bD=false;bC.splice(bA,1)}}if(bD||!bw){E.dequeue(this,by)}})}});function a0(by,bA){var bz,bw={height:by},bx=0;bA=bA?1:0;for(;bx<4;bx+=2-bA){bz=F[bx];bw["margin"+bz]=bw["padding"+bz]=by}if(bA){bw.opacity=bw.width=by}return bw}E.each({slideDown:a0("show"),slideUp:a0("hide"),slideToggle:a0("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(bw,bx){E.fn[bw]=function(by,bA,bz){return this.animate(bx,by,bA,bz)}});E.speed=function(by,bz,bx){var bw=by&&typeof by==="object"?E.extend({},by):{complete:bx||!bx&&bz||E.isFunction(by)&&by,duration:by,easing:bx&&bz||bz&&!E.isFunction(bz)&&bz};bw.duration=E.fx.off?0:typeof bw.duration==="number"?bw.duration:bw.duration in E.fx.speeds?E.fx.speeds[bw.duration]:E.fx.speeds._default;if(bw.queue==null||bw.queue===true){bw.queue="fx"}bw.old=bw.complete;bw.complete=function(){if(E.isFunction(bw.old)){bw.old.call(this)}if(bw.queue){E.dequeue(this,bw.queue)}};return bw};E.easing={linear:function(bw){return bw},swing:function(bw){return 0.5-Math.cos(bw*Math.PI)/2}};E.timers=[];E.fx=w.prototype.init;E.fx.tick=function(){var by,bx=E.timers,bw=0;a8=E.now();for(;bw<bx.length;bw++){by=bx[bw];if(!by()&&bx[bw]===by){bx.splice(bw--,1)}}if(!bx.length){E.fx.stop()}a8=I};E.fx.timer=function(bw){if(bw()&&E.timers.push(bw)&&!a3){a3=setInterval(E.fx.tick,E.fx.interval)}};E.fx.interval=13;E.fx.stop=function(){clearInterval(a3);a3=null};E.fx.speeds={slow:600,fast:200,_default:400};E.fx.step={};if(E.expr&&E.expr.filters){E.expr.filters.animated=function(bw){return E.grep(E.timers,function(bx){return bw===bx.elem}).length}}var X=/^(?:body|html)$/i;E.fn.offset=function(bG){if(arguments.length){return bG===I?this:this.each(function(bH){E.offset.setOffset(this,bG,bH)})}var bx,bC,bD,bA,bE,bw,bz,bB={top:0,left:0},by=this[0],bF=by&&by.ownerDocument;if(!bF){return}if((bC=bF.body)===by){return E.offset.bodyOffset(by)}bx=bF.documentElement;if(!E.contains(bx,by)){return bB}if(typeof by.getBoundingClientRect!=="undefined"){bB=by.getBoundingClientRect()}bD=aE(bF);bA=bx.clientTop||bC.clientTop||0;bE=bx.clientLeft||bC.clientLeft||0;bw=bD.pageYOffset||bx.scrollTop;bz=bD.pageXOffset||bx.scrollLeft;return{top:bB.top+bw-bA,left:bB.left+bz-bE}};E.offset={bodyOffset:function(bw){var by=bw.offsetTop,bx=bw.offsetLeft;if(E.support.doesNotIncludeMarginInBodyOffset){by+=parseFloat(E.css(bw,"marginTop"))||0;bx+=parseFloat(E.css(bw,"marginLeft"))||0}return{top:by,left:bx}},setOffset:function(bz,bI,bC){var bD=E.css(bz,"position");if(bD==="static"){bz.style.position="relative"}var bB=E(bz),bx=bB.offset(),bw=E.css(bz,"top"),bG=E.css(bz,"left"),bH=(bD==="absolute"||bD==="fixed")&&E.inArray("auto",[bw,bG])>-1,bF={},bE={},by,bA;if(bH){bE=bB.position();by=bE.top;bA=bE.left}else{by=parseFloat(bw)||0;bA=parseFloat(bG)||0}if(E.isFunction(bI)){bI=bI.call(bz,bC,bx)}if(bI.top!=null){bF.top=(bI.top-bx.top)+by}if(bI.left!=null){bF.left=(bI.left-bx.left)+bA}if("using" in bI){bI.using.call(bz,bF)}else{bB.css(bF)}}};E.fn.extend({isRendered:function(){var bx=this;var bw=this[0];if(bw.parentNode==null||(bw.offsetWidth===0||bw.offsetHeight===0)){return false}return true},getSizeFromStyle:function(){var bA=this;var bz=null;var bw=null;var by=this[0];var bx;if(by.style.width){bz=by.style.width}if(by.style.height){bw=by.style.height}if(bf.getComputedStyle){bx=getComputedStyle(by,null)}else{bx=by.currentStyle}if(bx){if(bx.width){bz=bx.width}if(bx.height){bw=bx.height}}if(bz==="0px"){bz=0}if(bw==="0px"){bw=0}if(bz===null){bz=0}if(bw===null){bw=0}return{width:bz,height:bw}},initAnimate:function(){},sizeStyleChanged:function(bz){var by=this;var bA;var bw=function(bB){var bC=bA;if(bB&&bB[0]&&bB[0].attributeName==="style"&&bB[0].type==="attributes"){if(bC.element.offsetWidth!==bC.offsetWidth||bC.element.offsetHeight!==bC.offsetHeight){bC.offsetWidth=bC.element.offsetWidth;bC.offsetHeight=bC.element.offsetHeight;if(by.isRendered()){bC.callback()}}}};bA={element:by[0],offsetWidth:by[0].offsetWidth,offsetHeight:by[0].offsetHeight,callback:bz};try{if(!by.elementStyleObserver){by.elementStyleObserver=new MutationObserver(bw);by.elementStyleObserver.observe(by[0],{attributes:true,childList:false,characterData:false})}}catch(bx){}},position:function(){if(!this[0]){return}var by=this[0],bx=this.offsetParent(),bz=this.offset(),bw=X.test(bx[0].nodeName)?{top:0,left:0}:bx.offset();bz.top-=parseFloat(E.css(by,"marginTop"))||0;bz.left-=parseFloat(E.css(by,"marginLeft"))||0;bw.top+=parseFloat(E.css(bx[0],"borderTopWidth"))||0;bw.left+=parseFloat(E.css(bx[0],"borderLeftWidth"))||0;return{top:bz.top-bw.top,left:bz.left-bw.left}},offsetParent:function(){return this.map(function(){var bw=this.offsetParent||am.body;while(bw&&(!X.test(bw.nodeName)&&E.css(bw,"position")==="static")){bw=bw.offsetParent}return bw||am.body})}});E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(by,bx){var bw=/Y/.test(bx);E.fn[by]=function(bz){return E.access(this,function(bA,bD,bC){var bB=aE(bA);if(bC===I){return bB?(bx in bB)?bB[bx]:bB.document.documentElement[bD]:bA[bD]}if(bB){bB.scrollTo(!bw?bC:E(bB).scrollLeft(),bw?bC:E(bB).scrollTop())}else{bA[bD]=bC}},by,bz,arguments.length,null)}});function aE(bw){return E.isWindow(bw)?bw:bw.nodeType===9?bw.defaultView||bw.parentWindow:false}E.each({Height:"height",Width:"width"},function(bw,bx){E.each({padding:"inner"+bw,content:bx,"":"outer"+bw},function(by,bz){E.fn[bz]=function(bD,bC){var bB=arguments.length&&(by||typeof bD!=="boolean"),bA=by||(bD===true||bC===true?"margin":"border");return E.access(this,function(bF,bE,bG){var bH;if(E.isWindow(bF)){return bF.document.documentElement["client"+bw]}if(bF.nodeType===9){bH=bF.documentElement;return Math.max(bF.body["scroll"+bw],bH["scroll"+bw],bF.body["offset"+bw],bH["offset"+bw],bH["client"+bw])}return bG===I?E.css(bF,bE,bG,bA):E.style(bF,bE,bG,bA)},bx,bB?bD:I,bB,null)}})});bf.JQXLite=bf.jqxHelper=E;if(typeof define==="function"&&define.amd&&define.amd.JQXLite){define("jqx",[],function(){return E})}})(window)}(function(c){if(c.jqxCore){c.$$=c.minQuery=c.JQXLite;if(!c.$){c.$=c.minQuery}return}if(c.jQuery){c.minQuery=c.JQXLite=c.jQuery;return}if(!c.$){c.$=c.minQuery=c.JQXLite}else{c.minQuery=c.JQXLite=c.$}})(window);JQXLite.generateID=function(){var c=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};var d="";do{d="jqx"+c()+c()+c()}while($("#"+d).length>0);return d};var b=window.jqxBaseFramework=window.minQuery||window.jQuery;(function(d){d.jqx=d.jqx||{};window.jqx=d.jqx;var c={createInstance:function(e,g,i){if(g=="jqxDataAdapter"){var h=i[0];var f=i[1]||{};return new d.jqx.dataAdapter(h,f)}d(e)[g](i||{});return d(e)[g]("getInstance")}};window.jqwidgets=c;d.jqx.define=function(e,f,g){e[f]=function(){if(this.baseType){this.base=new e[this.baseType]();this.base.defineInstance()}this.defineInstance();this.metaInfo()};e[f].prototype.defineInstance=function(){};e[f].prototype.metaInfo=function(){};e[f].prototype.base=null;e[f].prototype.baseType=undefined;if(g&&e[g]){e[f].prototype.baseType=g}};d.jqx.invoke=function(h,g){if(g.length==0){return}var i=typeof(g)==Array||g.length>0?g[0]:g;var f=typeof(g)==Array||g.length>1?Array.prototype.slice.call(g,1):d({}).toArray();while(h[i]==undefined&&h.base!=null){if(h[i]!=undefined&&d.isFunction(h[i])){return h[i].apply(h,f)}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]!=undefined&&d.isFunction(h[e])){return h[e].apply(h,f)}}h=h.base}if(h[i]!=undefined&&d.isFunction(h[i])){return h[i].apply(h,f)}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]!=undefined&&d.isFunction(h[e])){return h[e].apply(h,f)}}return};d.jqx.getByPriority=function(e){var g=undefined;for(var f=0;f<e.length&&g==undefined;f++){if(g==undefined&&e[f]!=undefined){g=e[f]}}return g};d.jqx.hasProperty=function(f,e){if(typeof(e)=="object"){for(var h in e){var g=f;while(g){if(g.hasOwnProperty(h)){return true}if(g.hasOwnProperty(h.toLowerCase())){return true}g=g.base}return false}}else{while(f){if(f.hasOwnProperty(e)){return true}if(f.hasOwnProperty(e.toLowerCase())){return true}f=f.base}}return false};d.jqx.hasFunction=function(h,g){if(g.length==0){return false}if(h==undefined){return false}var i=typeof(g)==Array||g.length>0?g[0]:g;var f=typeof(g)==Array||g.length>1?Array.prototype.slice.call(g,1):{};while(h[i]==undefined&&h.base!=null){if(h[i]&&d.isFunction(h[i])){return true}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]&&d.isFunction(h[e])){return true}}h=h.base}if(h[i]&&d.isFunction(h[i])){return true}if(typeof i=="string"){var e=i.toLowerCase();if(h[e]&&d.isFunction(h[e])){return true}}return false};d.jqx.isPropertySetter=function(f,e){if(e.length==1&&typeof(e[0])=="object"){return true}if(e.length==2&&typeof(e[0])=="string"&&!d.jqx.hasFunction(f,e)){return true}return false};d.jqx.validatePropertySetter=function(j,g,e){if(!d.jqx.propertySetterValidation){return true}if(g.length==1&&typeof(g[0])=="object"){for(var h in g[0]){var k=j;while(!k.hasOwnProperty(h)&&k.base){k=k.base}if(!k||!k.hasOwnProperty(h)){if(!e){var f=k.hasOwnProperty(h.toString().toLowerCase());if(!f){throw"Invalid property: "+h}else{return true}}return false}}return true}if(g.length!=2){if(!e){throw"Invalid property: "+g.length>=0?g[0]:""}return false}while(!j.hasOwnProperty(g[0])&&j.base){j=j.base}if(!j||!j.hasOwnProperty(g[0])){if(!e){throw"Invalid property: "+g[0]}return false}return true};if(!Object.keys){Object.keys=(function(){var g=Object.prototype.hasOwnProperty,h=!({toString:null}).propertyIsEnumerable("toString"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e=f.length;return function(l){if(typeof l!=="object"&&(typeof l!=="function"||l===null)){throw new TypeError("Object.keys called on non-object")}var j=[],m,k;for(m in l){if(g.call(l,m)){j.push(m)}}if(h){for(k=0;k<e;k++){if(g.call(l,f[k])){j.push(f[k])}}}return j}}())}d.jqx.set=function(h,k){var f=0;if(k.length==1&&typeof(k[0])=="object"){if(h.isInitialized&&Object.keys&&Object.keys(k[0]).length>1){var i=!h.base?h.element:h.base.element;var e=d.data(i,h.widgetName).initArgs;if(e&&JSON&&JSON.stringify&&k[0]&&e[0]){try{if(JSON.stringify(k[0])==JSON.stringify(e[0])){var j=true;d.each(k[0],function(n,o){if(h[n]!=o){j=false;return false}});if(j){return}}}catch(g){}}h.batchUpdate=k[0];var l={};var m={};d.each(k[0],function(n,o){var p=h;while(!p.hasOwnProperty(n)&&p.base!=null){p=p.base}if(p.hasOwnProperty(n)){if(h[n]!=o){l[n]=h[n];m[n]=o;f++}}else{if(p.hasOwnProperty(n.toLowerCase())){if(h[n.toLowerCase()]!=o){l[n.toLowerCase()]=h[n.toLowerCase()];m[n.toLowerCase()]=o;f++}}}});if(f<2){h.batchUpdate=null}}d.each(k[0],function(n,o){var p=h;while(!p.hasOwnProperty(n)&&p.base!=null){p=p.base}if(p.hasOwnProperty(n)){d.jqx.setvalueraiseevent(p,n,o)}else{if(p.hasOwnProperty(n.toLowerCase())){d.jqx.setvalueraiseevent(p,n.toLowerCase(),o)}else{if(d.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+n+"'"}}}});if(h.batchUpdate!=null){h.batchUpdate=null;if(h.propertiesChangedHandler&&f>1){h.propertiesChangedHandler(h,l,m)}}}else{if(k.length==2){while(!h.hasOwnProperty(k[0])&&h.base){h=h.base}if(h.hasOwnProperty(k[0])){d.jqx.setvalueraiseevent(h,k[0],k[1])}else{if(h.hasOwnProperty(k[0].toLowerCase())){d.jqx.setvalueraiseevent(h,k[0].toLowerCase(),k[1])}else{if(d.jqx.propertySetterValidation){throw"jqxCore: invalid property '"+k[0]+"'"}}}}}};d.jqx.setvalueraiseevent=function(f,g,h){var e=f[g];f[g]=h;if(!f.isInitialized){return}if(f.propertyChangedHandler!=undefined){f.propertyChangedHandler(f,g,e,h)}if(f.propertyChangeMap!=undefined&&f.propertyChangeMap[g]!=undefined){f.propertyChangeMap[g](f,g,e,h)}};d.jqx.get=function(h,g){if(g==undefined||g==null){return undefined}if(h.propertyMap){var f=h.propertyMap(g);if(f!=null){return f}}if(h.hasOwnProperty(g)){return h[g]}if(h.hasOwnProperty(g.toLowerCase())){return h[g.toLowerCase()]}var e=undefined;if(typeof(g)==Array){if(g.length!=1){return undefined}e=g[0]}else{if(typeof(g)=="string"){e=g}}while(!h.hasOwnProperty(e)&&h.base){h=h.base}if(h){return h[e]}return undefined};d.jqx.serialize=function(h){var e="";if(d.isArray(h)){e="[";for(var g=0;g<h.length;g++){if(g>0){e+=", "}e+=d.jqx.serialize(h[g])}e+="]"}else{if(typeof(h)=="object"){e="{";var f=0;for(var g in h){if(f++>0){e+=", "}e+=g+": "+d.jqx.serialize(h[g])}e+="}"}else{e=h.toString()}}return e};d.jqx.propertySetterValidation=true;d.jqx.jqxWidgetProxy=function(j,f,e){var g=d(f);var i=d.data(f,j);if(i==undefined){return undefined}var h=i.instance;if(d.jqx.hasFunction(h,e)){return d.jqx.invoke(h,e)}if(d.jqx.isPropertySetter(h,e)){if(d.jqx.validatePropertySetter(h,e)){d.jqx.set(h,e);return undefined}}else{if(typeof(e)=="object"&&e.length==0){return}else{if(typeof(e)=="object"&&e.length==1&&d.jqx.hasProperty(h,e[0])){return d.jqx.get(h,e[0])}else{if(typeof(e)=="string"&&d.jqx.hasProperty(h,e[0])){return d.jqx.get(h,e)}}}}throw"jqxCore: Invalid parameter '"+d.jqx.serialize(e)+"' does not exist."};d.jqx.applyWidget=function(g,h,n,o){var k=false;try{k=window.MSApp!=undefined}catch(j){}var p=d(g);if(!o){o=new d.jqx["_"+h]()}else{o.host=p;o.element=g}if(g.id==""){g.id=d.jqx.utilities.createId()}var m={host:p,element:g,instance:o,initArgs:n};o.widgetName=h;d.data(g,h,m);d.data(g,"jqxWidget",m.instance);var l=new Array();var o=m.instance;while(o){o.isInitialized=false;l.push(o);o=o.base}l.reverse();l[0].theme=d.jqx.theme||"";d.jqx.jqxWidgetProxy(h,g,n);for(var f in l){o=l[f];if(f==0){o.host=p;o.element=g;o.WinJS=k}if(o!=undefined){if(o.definedInstance){o.definedInstance()}if(o.createInstance!=null){if(k){MSApp.execUnsafeLocalFunction(function(){o.createInstance(n)})}else{o.createInstance(n)}}}}for(var f in l){if(l[f]!=undefined){l[f].isInitialized=true}}if(k){MSApp.execUnsafeLocalFunction(function(){m.instance.refresh(true)})}else{m.instance.refresh(true)}};d.jqx.jqxWidget=function(f,g,i){var l=false;try{var n=Array.prototype.slice.call(i,0)}catch(k){var n=""}try{l=window.MSApp!=undefined}catch(k){}var j=f;var o="";if(g){o="_"+g}d.jqx.define(d.jqx,"_"+j,o);var m=new Array();if(!window[j]){var h=function(p){if(p==null){return""}var e=d.type(p);switch(e){case"string":case"number":case"date":case"boolean":case"bool":if(p===null){return""}return p.toString()}var q="";d.each(p,function(s,t){var v=t;if(s>0){q+=", "}q+="[";var r=0;if(d.type(v)=="object"){for(var u in v){if(r>0){q+=", "}q+="{"+u+":"+v[u]+"}";r++}}else{if(r>0){q+=", "}q+="{"+s+":"+v+"}";r++}q+="]"});return q};c[j]=window[j]=function(e,u){var p=[];if(!u){u={}}p.push(u);var q=e;if(d.type(q)==="object"&&e[0]){q=e[0].id;if(q===""){q=e[0].id=d.jqx.utilities.createId()}}else{if(d.type(e)==="object"&&e&&e.nodeName){q=e.id;if(q===""){q=e.id=d.jqx.utilities.createId()}}}if(window.jqxWidgets&&window.jqxWidgets[q]){if(u){d.each(window.jqxWidgets[q],function(v){var w=d(this.element).data();if(w&&w.jqxWidget){d(this.element)[j](u)}})}if(window.jqxWidgets[q].length==1){var s=d(window.jqxWidgets[q][0].widgetInstance.element).data();if(s&&s.jqxWidget){return window.jqxWidgets[q][0]}}var s=d(window.jqxWidgets[q][0].widgetInstance.element).data();if(s&&s.jqxWidget){return window.jqxWidgets[q]}}var r=d(e);if(r.length===0){r=d("<div></div>");if(j==="jqxInput"||j==="jqxPasswordInput"||j==="jqxMaskedInput"){r=d("<input/>")}if(j==="jqxTextArea"){r=d("<textarea></textarea>")}if(j==="jqxButton"||j==="jqxRepeatButton"||j==="jqxToggleButton"){r=d("<button/>")}if(j==="jqxSplitter"){r=d("<div><div>Panel 1</div><div>Panel 2</div></div>")}if(j==="jqxTabs"){r=d("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")}if(j==="jqxRibbon"){r=d("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")}if(j==="jqxDocking"){r=d("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")}if(j==="jqxWindow"){r=d("<div><div>Title 1</div><div>Content 1</div></div>")}}var t=[];d.each(r,function(y){var A=r[y];d.jqx.applyWidget(A,j,p,undefined);if(!m[j]){var w=d.data(A,"jqxWidget");var z=d.jqx["_"+j].prototype.defineInstance();var x={};if(d.jqx["_"+j].prototype.metaInfo){x=d.jqx["_"+j].prototype.metaInfo()}if(j=="jqxDockingLayout"){z=d.extend(z,d.jqx._jqxLayout.prototype.defineInstance())}if(j=="jqxToggleButton"||j=="jqxRepeatButton"){z=d.extend(z,d.jqx._jqxButton.prototype.defineInstance())}if(j=="jqxTreeGrid"){z=d.extend(z,d.jqx._jqxDataTable.prototype.defineInstance())}var v=function(C){var B=d.data(C,"jqxWidget");this.widgetInstance=B;var D=d.extend(this,B);D.on=D.addEventListener=function(F,G){D.addHandler(!D.base?D.host:D.base.host,F,G)};D.off=D.removeEventListener=function(F){D.removeHandler(!D.base?D.host:D.base.host,F)};for(var E in B){if(d.type(B[E])=="function"){D[E]=d.proxy(B[E],B)}}return D};m[j]=v;d.each(z,function(C,B){Object.defineProperty(v.prototype,C,{get:function(){if(this.widgetInstance){return this.widgetInstance[C]}return B},set:function(J){if(this.widgetInstance&&(this.widgetInstance[C]!=J||C==="width"||C==="height")){var H=this.widgetInstance[C];var G=J;var F=d.type(H);var D=d.type(G);var I=false;if(F!=D||C==="source"||C==="width"||C==="height"){I=true}if(I||(h(H)!=h(G))){var E={};E[C]=J;if(this.widgetInstance.host){this.widgetInstance.host[j](E)}else{this.widgetInstance.base.host[j](E)}this.widgetInstance[C]=J;if(this.widgetInstance.propertyUpdated){this.widgetInstance.propertyUpdated(C,H,J)}}}}})})}var w=new m[j](A);t.push(w);if(!window.jqxWidgets){window.jqxWidgets=new Array()}if(!window.jqxWidgets[q]){window.jqxWidgets[q]=new Array()}window.jqxWidgets[q].push(w)});if(t.length===1){return t[0]}return t}}d.fn[j]=function(){var e=Array.prototype.slice.call(arguments,0);if(e.length==0||(e.length==1&&typeof(e[0])=="object")){if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}return this.each(function(){var s=d(this);var r=this;var t=d.data(r,j);if(t==null){d.jqx.applyWidget(r,j,e,undefined)}else{d.jqx.jqxWidgetProxy(j,this,e)}})}else{if(this.length==0){if(this.selector){throw new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct.")}else{throw new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.")}}var q=null;var p=0;this.each(function(){var r=d.jqx.jqxWidgetProxy(j,this,e);if(p==0){q=r;p++}else{if(p==1){var s=[];s.push(q);q=s}q.push(r)}})}return q};try{d.extend(d.jqx["_"+j].prototype,Array.prototype.slice.call(i,0)[0])}catch(k){}d.extend(d.jqx["_"+j].prototype,{toThemeProperty:function(e,p){return d.jqx.toThemeProperty(this,e,p)},isMaterialized:function(){if(!this.theme){return false}if(this.theme==="fluent"){return true}if(this.theme==="light"){return true}if(this.theme==="dark"){return true}if(this.theme==="deepblue"){return true}if(this.theme.indexOf("material")>=0){return true}},isModern:function(){if(!this.theme){return false}if(this.theme.indexOf("light")>=0){return true}if(this.theme==="dark"){return true}},_addBarAndLabel:function(r){var q=this;var e=d("<label></label");e[0].innerHTML=this.placeHolder;e.addClass(q.toThemeProperty("jqx-input-label"));r.after(e);q.label=e;var p=d("<span></span>");r.after(p);p.addClass(q.toThemeProperty("jqx-input-bar"));q.bar=p;q.bar.css("top",this.host.height())}});d.jqx["_"+j].prototype.refresh=function(){if(this.base){this.base.refresh(true)}};d.jqx["_"+j].prototype.createInstance=function(){};d.jqx.isPassiveSupported=function(){var q=this;if(q.supportsPassive!==undefined){return q.supportsPassive}q.supportsPassive=false;try{var p=Object.defineProperty({},"passive",{get:function(){q.supportsPassive=true}});window.addEventListener("testPassive",null,p);window.removeEventListener("testPassive",null,p)}catch(r){}return q.supportsPassive};d.jqx["_"+j].prototype.addEventHandler=function(p,e){if(this.base){this.base.host.on(p,e)}else{this.host.on(p,e)}};d.jqx["_"+j].prototype.removeEventHandler=function(p,e){if(this.base){this.base.host.off(p)}else{this.host.off(p)}};d.jqx["_"+j].prototype.applyTo=function(q,p){if(!(p instanceof Array)){var e=[];e.push(p);p=e}d.jqx.applyWidget(q,j,p,this)};d.jqx["_"+j].prototype.getInstance=function(){return this};d.jqx["_"+j].prototype.propertyChangeMap={};d.jqx["_"+j].prototype.addHandler=function(r,e,p,q){d.jqx.addHandler(d(r),e,p,q)};d.jqx["_"+j].prototype.removeHandler=function(q,e,p){d.jqx.removeHandler(d(q),e,p)};d.jqx["_"+j].prototype.setOptions=function(){if(!this.host||!this.host.length||this.host.length!=1){return}return d.jqx.jqxWidgetProxy(j,this.host[0],arguments)}};d.jqx.toThemeProperty=function(f,g,l){if(f.theme==""){return g}var k=g.split(" ");var e="";for(var j=0;j<k.length;j++){if(j>0){e+=" "}var h=k[j];if(l!=null&&l){e+=h+"-"+f.theme}else{e+=h+" "+h+"-"+f.theme}}return e};d.jqx.addHandler=function(k,l,h,j){var f=l.split(" ");for(var e=0;e<f.length;e++){var g=f[e];if(window.addEventListener&&k[0]){switch(g){case"mousewheel":if(d.jqx.browser.mozilla){k[0].addEventListener("DOMMouseScroll",h,d.jqx.isPassiveSupported()?{passive:false}:false)}else{k[0].addEventListener("mousewheel",h,d.jqx.isPassiveSupported()?{passive:false}:false)}continue;case"mousemove":if(!j){k[0].addEventListener("mousemove",h,false);continue}break;case"touchmove":if(!j){k[0].addEventListener("touchmove",h,false);continue}else{if(j&&j.passive){k[0].addEventListener("touchmove",h,j);continue}}break}}if(j==undefined||j==null){if(k.on){k.on(g,h)}else{k.bind(g,h)}}else{if(k.on){k.on(g,j,h)}else{k.bind(g,j,h)}}}};d.jqx.removeHandler=function(j,k,h){if(!k){if(j.off){j.off()}else{j.unbind()}return}var f=k.split(" ");for(var e=0;e<f.length;e++){var g=f[e];if(window.removeEventListener){switch(g){case"mousewheel":if(d.jqx.browser.mozilla){j[0].removeEventListener("DOMMouseScroll",h,false)}else{j[0].removeEventListener("mousewheel",h,false)}continue;case"mousemove":if(h){j[0].removeEventListener("mousemove",h,false);continue}break;case"touchmove":if(h){j[0].removeEventListener("touchmove",h,false);continue}break}}if(g==undefined){if(j.off){j.off()}else{j.unbind()}continue}if(h==undefined){if(j.off){j.off(g)}else{j.unbind(g)}}else{if(j.off){j.off(g,h)}else{j.unbind(g,h)}}}};d.jqx.credits=d.jqx.credits||"";d.jqx.theme=d.jqx.theme||"";d.jqx.scrollAnimation=d.jqx.scrollAnimation||false;d.jqx.resizeDelay=d.jqx.resizeDelay||10;d.jqx.ready=function(){d(window).trigger("jqxReady")};d.jqx.init=function(){d.each(arguments[0],function(e,f){if(e=="theme"){d.jqx.theme=f}if(e=="scrollBarSize"){d.jqx.utilities.scrollBarSize=f}if(e=="touchScrollBarSize"){d.jqx.utilities.touchScrollBarSize=f}if(e=="scrollBarButtonsVisibility"){d.jqx.utilities.scrollBarButtonsVisibility=f}})};d.jqx.utilities=d.jqx.utilities||{};d.extend(d.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var e=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return"jqxWidget"+e()+e()+e()},setTheme:function(j,k,h){if(typeof h==="undefined"){return}if(!h[0].className.split){return}if(j===undefined){j=""}if(k===undefined){k=""}var l=h[0].className.split(" "),e=[],m=[],g=h.children();for(var f=0;f<l.length;f+=1){if(l[f].indexOf(j)>=0){if(j.length>0){e.push(l[f]);m.push(l[f].replace(j,k))}else{m.push(l[f].replace("-"+k,"")+"-"+k)}}}this._removeOldClasses(e,h);this._addNewClasses(m,h);for(var f=0;f<g.length;f+=1){this.setTheme(j,k,d(g[f]))}},_removeOldClasses:function(g,f){for(var e=0;e<g.length;e+=1){f.removeClass(g[e])}},_addNewClasses:function(g,f){for(var e=0;e<g.length;e+=1){f.addClass(g[e])}},getOffset:function(e){var g=d.jqx.mobile.getLeftPos(e[0]);var f=d.jqx.mobile.getTopPos(e[0]);return{top:f,left:g}},resize:function(k,v,s,r){if(r===undefined){r=true}var o=-1;var n=this;var g=function(x){if(!n.hiddenWidgets){return -1}var y=-1;for(var w=0;w<n.hiddenWidgets.length;w++){if(x.id){if(n.hiddenWidgets[w].id==x.id){y=w;break}}else{if(n.hiddenWidgets[w].id==x[0].id){y=w;break}}}return y};if(this.resizeHandlers){for(var l=0;l<this.resizeHandlers.length;l++){if(k.id){if(this.resizeHandlers[l].id==k.id){o=l;break}}else{if(this.resizeHandlers[l].id==k[0].id){o=l;break}}}if(s===true){if(o!=-1){this.resizeHandlers.splice(o,1);if(this.watchedElementData&&this.watchedElementData.length>0){this.watchedElementData.splice(o,1)}}if(this.resizeHandlers.length==0){var q=d(window);if(q.off){q.off("resize.jqx");q.off("orientationchange.jqx");q.off("orientationchanged.jqx")}else{q.unbind("resize.jqx");q.unbind("orientationchange.jqx");q.unbind("orientationchanged.jqx")}this.resizeHandlers=null}var e=g(k);if(e!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(e,1)}return}}else{if(s===true){var e=g(k);if(e!=-1&&this.hiddenWidgets){this.hiddenWidgets.splice(e,1)}return}}var n=this;var p=function(y,H){if(!n.resizeHandlers){return}var I=function(L){var i=-1;var M=L.parentNode;while(M){i++;M=M.parentNode}return i};var x=function(N,L){if(!N.widget||!L.widget){return 0}var M=I(N.widget[0]);var i=I(L.widget[0]);try{if(M<i){return -1}if(M>i){return 1}}catch(O){var P=O}return 0};var z=function(L){if(n.hiddenWidgets.length>0){n.hiddenWidgets.sort(x);var i=function(){var N=false;var P=new Array();for(var O=0;O<n.hiddenWidgets.length;O++){var M=n.hiddenWidgets[O];if(d.jqx.isHidden(M.widget)){N=true;P.push(M)}else{if(M.callback){M.callback(H)}}}n.hiddenWidgets=P;if(!N){clearInterval(n.__resizeInterval)}};if(L==false){i();if(n.__resizeInterval){clearInterval(n.__resizeInterval)}return}if(n.__resizeInterval){clearInterval(n.__resizeInterval)}n.__resizeInterval=setInterval(function(){i()},100)}};if(n.hiddenWidgets&&n.hiddenWidgets.length>0){z(false)}n.hiddenWidgets=new Array();n.resizeHandlers.sort(x);for(var E=0;E<n.resizeHandlers.length;E++){var K=n.resizeHandlers[E];var G=K.widget;var D=K.data;if(!D){continue}if(!D.jqxWidget){continue}var w=D.jqxWidget.width;var J=D.jqxWidget.height;if(D.jqxWidget.base){if(w==undefined){w=D.jqxWidget.base.width}if(J==undefined){J=D.jqxWidget.base.height}}if(w===undefined&&J===undefined){w=D.jqxWidget.element.style.width;J=D.jqxWidget.element.style.height}var F=false;if(w!=null&&w.toString().indexOf("%")!=-1){F=true}if(J!=null&&J.toString().indexOf("%")!=-1){F=true}if(d.jqx.isHidden(G)){if(g(G)===-1){if(F||y===true){if(K.data.nestedWidget!==true){n.hiddenWidgets.push(K)}}}}else{if(y===undefined||y!==true){if(F){K.callback(H);if(n.watchedElementData){for(var B=0;B<n.watchedElementData.length;B++){if(n.watchedElementData[B].element==D.jqxWidget.element){n.watchedElementData[B].offsetWidth=D.jqxWidget.element.offsetWidth;n.watchedElementData[B].offsetHeight=D.jqxWidget.element.offsetHeight;break}}}if(n.hiddenWidgets.indexOf(K)>=0){n.hiddenWidgets.splice(n.hiddenWidgets.indexOf(K),1)}}if(D.jqxWidget.element){var A=D.jqxWidget.element.className;if(A.indexOf("dropdownlist")>=0||A.indexOf("datetimeinput")>=0||A.indexOf("combobox")>=0||A.indexOf("menu")>=0){if(D.jqxWidget.isOpened){var C=D.jqxWidget.isOpened();if(C){if(H&&H=="resize"&&d.jqx.mobile.isTouchDevice()){continue}D.jqxWidget.close()}}}}}}}z()};if(!this.resizeHandlers){this.resizeHandlers=new Array();var q=d(window);if(q.on){this._resizeTimer=null;this._initResize=null;q.on("resize.jqx",function(i){if(n._resizeTimer!=undefined){clearTimeout(n._resizeTimer)}if(!n._initResize){n._initResize=true;p(null,"resize")}else{n._resizeTimer=setTimeout(function(){p(null,"resize")},d.jqx.resizeDelay)}});q.on("orientationchange.jqx",function(i){p(null,"orientationchange")});q.on("orientationchanged.jqx",function(i){p(null,"orientationchange")})}else{q.bind("resize.jqx",function(i){p(null,"orientationchange")});q.bind("orientationchange.jqx",function(i){p(null,"orientationchange")});q.bind("orientationchanged.jqx",function(i){p(null,"orientationchange")})}}var h=k.data();if(r){if(o===-1){this.resizeHandlers.push({id:k[0].id,widget:k,callback:v,data:h})}}try{var f=h.jqxWidget.width;var u=h.jqxWidget.height;if(h.jqxWidget.base){if(f==undefined){f=h.jqxWidget.base.width}if(u==undefined){u=h.jqxWidget.base.height}}if(f===undefined&&u===undefined){f=h.jqxWidget.element.style.width;u=h.jqxWidget.element.style.height}var m=false;if(f!=null&&f.toString().indexOf("%")!=-1){m=true}if(u!=null&&u.toString().indexOf("%")!=-1){m=true}if(m){if(!this.watchedElementData){this.watchedElementData=[]}var n=this;var j=function(i){if(n.watchedElementData.forEach){n.watchedElementData.forEach(function(w){if(w.element.offsetWidth!==w.offsetWidth||w.element.offsetHeight!==w.offsetHeight){w.offsetWidth=w.element.offsetWidth;w.offsetHeight=w.element.offsetHeight;if(w.timer){clearTimeout(w.timer)}w.timer=setTimeout(function(){if(!d.jqx.isHidden(d(w.element))){w.callback()}else{w.timer=setInterval(function(){if(!d.jqx.isHidden(d(w.element))){clearInterval(w.timer);w.callback()}},100)}})}})}};n.watchedElementData.push({element:k[0],offsetWidth:k[0].offsetWidth,offsetHeight:k[0].offsetHeight,callback:v});if(!n.observer){n.observer=new MutationObserver(j);n.observer.observe(document.body,{attributes:true,childList:true,characterData:true})}}}catch(t){}if(d.jqx.isHidden(k)&&r===true){p(true)}d.jqx.resize=function(){p(null,"resize")}},parseJSON:function(g){if(!g||typeof g!=="string"){return null}var e=/^[\],:{}\s]*$/,i=/(?:^|:|,)(?:\s*\[)+/g,f=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,h=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g;g=d.trim(g);if(window.JSON&&window.JSON.parse){return window.JSON.parse(g)}if(e.test(g.replace(f,"@").replace(h,"]").replace(i,""))){return(new Function("return "+g))()}throw new Error("Invalid JSON: "+g)},html:function(f,g){if(!d(f).on||!d.access){return d(f).html(g)}try{return d.access(f,function(u){var h=f[0]||{},o=0,m=f.length;if(u===undefined){return h.nodeType===1?h.innerHTML.replace(rinlinejQuery,""):undefined}var t=/<(?:script|style|link)/i,p="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",k=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,r=/<([\w:]+)/,j=/<(?:script|object|embed|option|style)/i,n=new RegExp("<(?:"+p+")[\\s/>]","i"),s=/^\s+/,v={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};if(typeof u==="string"&&!t.test(u)&&(d.support.htmlSerialize||!n.test(u))&&(d.support.leadingWhitespace||!s.test(u))&&!v[(r.exec(u)||["",""])[1].toLowerCase()]){u=u.replace(k,"<$1></$2>");try{for(;o<m;o++){h=this[o]||{};if(h.nodeType===1){d.cleanData(h.getElementsByTagName("*"));h.innerHTML=u}}h=0}catch(q){}}if(h){f.empty().append(u)}},null,g,arguments.length)}catch(e){return d(f).html(g)}},hasTransform:function(g){var f="";f=g.css("transform");if(f==""||f=="none"){f=g.parents().css("transform");if(f==""||f=="none"){var e=d.jqx.utilities.getBrowser();if(e.browser=="msie"){f=g.css("-ms-transform");if(f==""||f=="none"){f=g.parents().css("-ms-transform")}}else{if(e.browser=="chrome"){f=g.css("-webkit-transform");if(f==""||f=="none"){f=g.parents().css("-webkit-transform")}}else{if(e.browser=="opera"){f=g.css("-o-transform");if(f==""||f=="none"){f=g.parents().css("-o-transform")}}else{if(e.browser=="mozilla"){f=g.css("-moz-transform");if(f==""||f=="none"){f=g.parents().css("-moz-transform")}}}}}}else{return f!=""&&f!="none"}}if(f==""||f=="none"){f=d(document.body).css("transform")}return f!=""&&f!="none"&&f!=null},getBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(f)||/(webkit)[ \/]([\w.]+)/.exec(f)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(f)||/(msie) ([\w.]+)/.exec(f)||f.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(f)||[];var g={browser:e[1]||"",version:e[2]||"0"};if(f.indexOf("rv:11.0")>=0&&f.indexOf(".net4.0c")>=0){g.browser="msie";g.version="11";e[1]="msie"}if(f.indexOf("edge")>=0){g.browser="msie";g.version="12";e[1]="msie"}g[e[1]]=e[1];return g}});d.jqx.browser=d.jqx.utilities.getBrowser();d.jqx.isHidden=function(f){if(!f||!f[0]){return false}var e=f[0].offsetWidth,g=f[0].offsetHeight;if(e===0||g===0){return true}else{return false}};d.jqx.ariaEnabled=true;d.jqx.aria=function(f,h,g){if(!d.jqx.ariaEnabled){return}if(h==undefined){d.each(f.aria,function(j,k){var m=!f.base?f.host.attr(j):f.base.host.attr(j);if(m!=undefined&&!d.isFunction(m)){var l=m;switch(k.type){case"number":l=new Number(m);if(isNaN(l)){l=m}break;case"boolean":l=m=="true"?true:false;break;case"date":l=new Date(m);if(l=="Invalid Date"||isNaN(l)){l=m}break}f[k.name]=l}else{var m=f[k.name];if(d.isFunction(m)){m=f[k.name]()}if(m==undefined){m=""}try{!f.base?f.host.attr(j,m.toString()):f.base.host.attr(j,m.toString())}catch(i){}}})}else{try{if(f.host){if(!f.base){if(f.host){if(f.element.setAttribute){f.element.setAttribute(h,g.toString())}else{f.host.attr(h,g.toString())}}else{f.attr(h,g.toString())}}else{if(f.base.host){f.base.host.attr(h,g.toString())}else{f.attr(h,g.toString())}}}else{if(f.setAttribute){f.setAttribute(h,g.toString())}}}catch(e){}}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(f){var e=this.length;var g=Number(arguments[1])||0;g=(g<0)?Math.ceil(g):Math.floor(g);if(g<0){g+=e}for(;g<e;g++){if(g in this&&this[g]===f){return g}}return -1}}d.jqx.mobile=d.jqx.mobile||{};d.jqx.position=function(e){var h=parseInt(e.pageX);var g=parseInt(e.pageY);if(d.jqx.mobile.isTouchDevice()){var f=d.jqx.mobile.getTouches(e);var i=f[0];h=parseInt(i.pageX);g=parseInt(i.pageY)}return{left:h,top:g}};d.extend(d.jqx.mobile,{_touchListener:function(k,i){var f=function(l,n){var m=document.createEvent("MouseEvents");m.initMouseEvent(l,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget);m._pageX=n.pageX;m._pageY=n.pageY;return m};var j={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var h=f(j[k.type],k);k.target.dispatchEvent(h);var g=k.target["on"+j[k.type]];if(typeof g==="function"){g(k)}},setMobileSimulator:function(f,h){if(this.isTouchDevice()){return}this.simulatetouches=true;if(h==false){this.simulatetouches=false}var g={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"};var e=this;if(window.addEventListener){var i=function(){for(var j in g){if(f.addEventListener){f.removeEventListener(j,e._touchListener);f.addEventListener(j,e._touchListener,false)}}};if(d.jqx.browser.msie){i()}else{i()}}},isTouchDevice:function(){if(this.touchDevice!=undefined){return this.touchDevice}var g="Browser CodeName: "+navigator.appCodeName+"";g+="Browser Name: "+navigator.appName+"";g+="Browser Version: "+navigator.appVersion+"";g+="Platform: "+navigator.platform+"";g+="User-agent header: "+navigator.userAgent+"";if(navigator.maxTouchPoints>1){}if(g.indexOf("Android")!=-1){return true}if(g.indexOf("IEMobile")!=-1){return true}if(g.indexOf("Windows Phone")!=-1){return true}if(g.indexOf("WPDesktop")!=-1){return true}if(g.indexOf("ZuneWP7")!=-1){return true}if(g.indexOf("BlackBerry")!=-1&&g.indexOf("Mobile Safari")!=-1){return true}if(g.indexOf("ipod")!=-1){return true}if(g.indexOf("nokia")!=-1||g.indexOf("Nokia")!=-1){return true}if(g.indexOf("Chrome/17")!=-1){return false}if(g.indexOf("CrOS")!=-1){return false}if(g.indexOf("Opera")!=-1&&g.indexOf("Mobi")==-1&&g.indexOf("Mini")==-1&&g.indexOf("Platform: Win")!=-1){return false}if(g.indexOf("HybridDeviceTouch")!=-1){return true}if(g.indexOf("HybridDeviceMouse")!=-1){return false}if(g.indexOf("Opera")!=-1&&g.indexOf("Mobi")!=-1&&g.indexOf("Opera Mobi")!=-1){return true}if(g.indexOf("Mozilla/5.0 (X11; Linux x86_64)")!=-1){return false}var h={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(this.touchDevice!=undefined){return this.touchDevice}this.touchDevice=false;for(var k in h){if(h.hasOwnProperty(k)){var m=h[k];var j=g.match(new RegExp("(?:"+m+")([^\\s;]+)"));if(j){if(k.toString()=="blackberry"){this.touchDevice=false;return false}this.touchDevice=true;return true}}}var l=navigator.userAgent;if(navigator.platform.toLowerCase().indexOf("win")!=-1){if(l.indexOf("Windows Phone")>=0||l.indexOf("WPDesktop")>=0||l.indexOf("IEMobile")>=0||l.indexOf("ZuneWP7")>=0){this.touchDevice=true;return true}else{if(l.indexOf("Touch")>=0){var f=("MSPointerDown" in window)||("pointerdown" in window);if(f){this.touchDevice=true;return true}if(l.indexOf("ARM")>=0){this.touchDevice=true;return true}this.touchDevice=false;return false}}}if(navigator.platform.toLowerCase().indexOf("win")!=-1){this.touchDevice=false;return false}if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){this.touchDevice=true}return this.touchDevice}catch(n){this.touchDevice=false;return false}},getLeftPos:function(e){var f=e.offsetLeft;while((e=e.offsetParent)!=null){if(e.tagName!="HTML"){f+=e.offsetLeft;if(document.all){f+=e.clientLeft}}}return f},getTopPos:function(f){var h=f.offsetTop;var e=d(f).coord();while((f=f.offsetParent)!=null){if(f.tagName!="HTML"){h+=(f.offsetTop-f.scrollTop);if(document.all){h+=f.clientTop}}}var g=navigator.userAgent.toLowerCase();var i=(g.indexOf("windows phone")!=-1||g.indexOf("WPDesktop")!=-1||g.indexOf("ZuneWP7")!=-1||g.indexOf("msie 9")!=-1||g.indexOf("msie 11")!=-1||g.indexOf("msie 10")!=-1)&&g.indexOf("touch")!=-1;if(i){return e.top}if(this.isSafariMobileBrowser()){if(this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()){return h}if(g.indexOf("version/7")!=-1){return e.top}if(g.indexOf("version/6")!=-1||g.indexOf("version/5")!=-1){h=h+d(window).scrollTop()}if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return h}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return h}return e.top}return h},isChromeMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("android")!=-1;return e},isOperaMiniMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("opera mini")!=-1||f.indexOf("opera mobi")!=-1;return e},isOperaMiniBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("opera mini")!=-1;return e},isNewSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1;e=e&&(f.indexOf("version/5")!=-1);return e},isSafari4MobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1;e=e&&(f.indexOf("version/4")!=-1);return e},isWindowsPhone:function(){var f=navigator.userAgent.toLowerCase();var e=(f.indexOf("windows phone")!=-1||f.indexOf("WPDesktop")!=-1||f.indexOf("ZuneWP7")!=-1||f.indexOf("msie 9")!=-1||f.indexOf("msie 11")!=-1||f.indexOf("msie 10")!=-1&&f.indexOf("touch")!=-1);return e},isSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();if(/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)){return true}if(/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)){return true}var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("ipod")!=-1||f.indexOf("mobile safari")!=-1;return e},isIPadSafariMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1;return e},isMobileBrowser:function(){var f=navigator.userAgent.toLowerCase();var e=f.indexOf("ipad")!=-1||f.indexOf("iphone")!=-1||f.indexOf("android")!=-1;return e},getTouches:function(f){if(f.originalEvent){if(f.originalEvent.touches&&f.originalEvent.touches.length){return f.originalEvent.touches}else{if(f.originalEvent.changedTouches&&f.originalEvent.changedTouches.length){return f.originalEvent.changedTouches}}}if(!f.touches){f.touches=new Array();f.touches[0]=f.originalEvent!=undefined?f.originalEvent:f;if(f.originalEvent!=undefined&&f.pageX){f.touches[0]=f}if(f.type=="mousemove"){f.touches[0]=f}}return f.touches},getTouchEventName:function(e){if(this.isWindowsPhone()){var f=navigator.userAgent.toLowerCase();if(f.indexOf("windows phone 7")!=-1){if(e.toLowerCase().indexOf("start")!=-1){return"MSPointerDown"}if(e.toLowerCase().indexOf("move")!=-1){return"MSPointerMove"}if(e.toLowerCase().indexOf("end")!=-1){return"MSPointerUp"}}if(e.toLowerCase().indexOf("start")!=-1){return"pointerdown"}if(e.toLowerCase().indexOf("move")!=-1){return"pointermove"}if(e.toLowerCase().indexOf("end")!=-1){return"pointerup"}}else{return e}},dispatchMouseEvent:function(f,i,h){if(this.simulatetouches){return}var g=document.createEvent("MouseEvent");g.initMouseEvent(f,true,true,i.view,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);if(h!=null){h.dispatchEvent(g)}},getRootNode:function(e){while(e.nodeType!==1){e=e.parentNode}return e},setTouchScroll:function(e,f){if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[f]=e},touchScroll:function(D,O,ab,J,z,p){if(D==null){return}var I=this;var h=0;var t=0;var i=0;var k=0;var v=0;var l=0;if(!this.scrolling){this.scrolling=[]}this.scrolling[J]=false;var m=false;var r=d(D);var T=["select","input","textarea"];var Z=0;var L=0;if(!this.enableScrolling){this.enableScrolling=[]}this.enableScrolling[J]=true;var J=J;var y=this.getTouchEventName("touchstart")+".touchScroll";var F=this.getTouchEventName("touchend")+".touchScroll";var ad=this.getTouchEventName("touchmove")+".touchScroll";var n,Y,B,aj,X,aa,al,S,ac,f,H,af,ah,Q,g,x,w,U,e,G,ai,q;S=O;var al=0;var ac=0;var j=0;var V=0;var ak=0;var aa=z.jqxScrollBar("max");var q=325;function C(ao){if(ao.targetTouches&&(ao.targetTouches.length>=1)){return ao.targetTouches[0].clientY}else{if(ao.originalEvent&&ao.originalEvent.clientY!==undefined){return ao.originalEvent.clientY}else{var an=I.getTouches(ao);return an[0].clientY}}}function ag(ao){if(ao.targetTouches&&(ao.targetTouches.length>=1)){return ao.targetTouches[0].clientX}else{if(ao.originalEvent&&ao.originalEvent.clientX!==undefined){return ao.originalEvent.clientX}else{var an=I.getTouches(ao);return an[0].clientX}}}var K=function(){var ar,ao,at,aq;ar=Date.now();ao=ar-x;x=ar;at=ac-g;var ap=j-aj;g=ac;aj=j;H=true;aq=1000*at/(1+ao);var an=1000*ap/(1+ao);ah=0.8*aq+0.2*ah;Q=0.8*an+0.2*Q};var E=false;var Z=function(ao){if(!I.enableScrolling[J]){return true}if(d.inArray(ao.target.tagName.toLowerCase(),T)!==-1){return}ac=p.jqxScrollBar("value");j=z.jqxScrollBar("value");var ap=I.getTouches(ao);var aq=ap[0];if(ap.length==1){I.dispatchMouseEvent("mousedown",aq,I.getRootNode(aq.target))}aa=z.jqxScrollBar("max");S=p.jqxScrollBar("max");function an(ar){E=false;H=true;f=C(ar);ai=ag(ar);ah=U=Q=0;g=ac;aj=j;x=Date.now();clearInterval(w);w=setInterval(K,100);V=ac;ak=j;if(ac>0&&ac<S&&p[0].style.visibility!="hidden"){}}an(ao);m=false;t=aq.pageY;v=aq.pageX;if(I.simulatetouches){if(aq._pageY!=undefined){t=aq._pageY;v=aq._pageX}}I.scrolling[J]=true;h=0;k=0;return true};if(r.on){r.on(y,Z)}else{r.bind(y,Z)}var ae=function(ao,an){ac=(ao>S)?S:(ao<al)?al:ao;ab(null,ao,0,0,an);return(ao>S)?"max":(ao<al)?"min":"value"};var o=function(ao,an){j=(ao>aa)?aa:(ao<al)?al:ao;ab(ao,null,0,0,an);return(ao>aa)?"max":(ao<al)?"min":"value"};function W(){var an,ao;if(U){an=Date.now()-x;ao=-U*Math.exp(-an/q);if(ao>0.5||ao<-0.5){ae(e+ao);requestAnimationFrame(W)}else{ae(e)}}}function P(){var an,ao;if(U){an=Date.now()-x;ao=-U*Math.exp(-an/q);if(ao>0.5||ao<-0.5){o(G+ao);requestAnimationFrame(P)}else{o(G)}}}var A=function(an){if(!I.enableScrolling[J]){return true}if(!I.scrolling[J]){return true}if(E){an.preventDefault();an.stopPropagation()}var at=I.getTouches(an);if(at.length>1){return true}var ao=at[0].pageY;var aq=at[0].pageX;if(I.simulatetouches){if(at[0]._pageY!=undefined){ao=at[0]._pageY;aq=at[0]._pageX}}var aw=ao-t;var ax=aq-v;L=ao;var av=aq;i=aw-h;l=ax-k;m=true;h=aw;k=ax;var ap=z!=null?z[0].style.visibility!="hidden":true;var au=p!=null?p[0].style.visibility!="hidden":true;function ar(aA){var aC,aB,az;if(H){aC=C(aA);az=ag(aA);aB=f-aC;X=ai-az;var ay="value";if(aB>2||aB<-2){f=aC;ay=ae(ac+aB,aA);K();if(ay=="min"&&V===0){return true}if(ay=="max"&&V===S){return true}if(!au){return true}aA.preventDefault();aA.stopPropagation();E=true;return false}else{if(X>2||X<-2){ai=az;ay=o(j+X,aA);K();if(ay=="min"&&ak===0){return true}if(ay=="max"&&ak===aa){return true}if(!ap){return true}E=true;aA.preventDefault();aA.stopPropagation();return false}}aA.preventDefault()}}if(ap||au){if((ap)||(au)){ar(an)}}};if(r.on){r.on(ad,A)}else{r.bind(ad,A)}var u=function(ao){if(!I.enableScrolling[J]){return true}var ap=I.getTouches(ao)[0];if(!I.scrolling[J]){return true}H=false;clearInterval(w);if(ah>10||ah<-10){U=0.8*ah;e=Math.round(ac+U);x=Date.now();requestAnimationFrame(W)}else{if(Q>10||Q<-10){U=0.8*Q;G=Math.round(j+U);x=Date.now();requestAnimationFrame(P)}else{}}I.scrolling[J]=false;if(m){I.dispatchMouseEvent("mouseup",ap,ao.target)}else{var ap=I.getTouches(ao)[0],an=I.getRootNode(ap.target);I.dispatchMouseEvent("mouseup",ap,an);I.dispatchMouseEvent("click",ap,an);return true}};if(this.simulatetouches){var s=d(window).on!=undefined||d(window).bind;var R=function(an){try{u(an)}catch(ao){}I.scrolling[J]=false};d(window).on!=undefined?d(document).on("mouseup.touchScroll",R):d(document).bind("mouseup.touchScroll",R);if(window.frameElement){if(window.top!=null){var N=function(an){try{u(an)}catch(ao){}I.scrolling[J]=false};if(window.top.document){d(window.top.document).on?d(window.top.document).on("mouseup",N):d(window.top.document).bind("mouseup",N)}}}var am=d(document).on!=undefined||d(document).bind;var M=function(an){if(!I.scrolling[J]){return true}I.scrolling[J]=false;var ap=I.getTouches(an)[0],ao=I.getRootNode(ap.target);I.dispatchMouseEvent("mouseup",ap,ao);I.dispatchMouseEvent("click",ap,ao)};d(document).on!=undefined?d(document).on("touchend",M):d(document).bind("touchend",M)}if(r.on){r.on("dragstart",function(an){an.preventDefault()});r.on("selectstart",function(an){an.preventDefault()})}r.on?r.on(F+" touchcancel.touchScroll",u):r.bind(F+" touchcancel.touchScroll",u)}});d.jqx.cookie=d.jqx.cookie||{};d.extend(d.jqx.cookie,{cookie:function(h,i,f){if(arguments.length>1&&String(i)!=="[object Object]"){f=d.extend({},f);if(i===null||i===undefined){f.expires=-1}if(typeof f.expires==="number"){var k=f.expires,g=f.expires=new Date();g.setDate(g.getDate()+k)}i=String(i);return(document.cookie=[encodeURIComponent(h),"=",f.raw?i:encodeURIComponent(i),f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join(""))}f=i||{};var e,j=f.raw?function(l){return l}:decodeURIComponent;return(e=new RegExp("(?:^|; )"+encodeURIComponent(h)+"=([^;]*)").exec(document.cookie))?j(e[1]):null}});d.jqx.string=d.jqx.string||{};d.extend(d.jqx.string,{replace:function(i,g,h){if(g===h){return this}var e=i;var f=e.indexOf(g);while(f!=-1){e=e.replace(g,h);f=e.indexOf(g)}return e},contains:function(e,f){if(e==null||f==null){return false}return e.indexOf(f)!=-1},containsIgnoreCase:function(e,f){if(e==null||f==null){return false}return e.toString().toUpperCase().indexOf(f.toString().toUpperCase())!=-1},equals:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);if(f.length==e.length){return e.slice(0,f.length)==f}return false},equalsIgnoreCase:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);if(f.length==e.length){return e.toUpperCase().slice(0,f.length)==f.toUpperCase()}return false},startsWith:function(e,f){if(e==null||f==null){return false}return e.slice(0,f.length)==f},startsWithIgnoreCase:function(e,f){if(e==null||f==null){return false}return e.toUpperCase().slice(0,f.length)==f.toUpperCase()},normalize:function(e){if(e.charCodeAt(e.length-1)==65279){e=e.substring(0,e.length-1)}return e},endsWith:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);return e.slice(-f.length)==f},endsWithIgnoreCase:function(e,f){if(e==null||f==null){return false}e=this.normalize(e);return e.toUpperCase().slice(-f.length)==f.toUpperCase()}});d.extend(d.easing,{easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e}})})(b);(function(d){if(d.event&&d.event.special){d.extend(d.event.special,{close:{noBubble:true},open:{noBubble:true},cellclick:{noBubble:true},rowclick:{noBubble:true},tabclick:{noBubble:true},selected:{noBubble:true},expanded:{noBubble:true},collapsed:{noBubble:true},valuechanged:{noBubble:true},expandedItem:{noBubble:true},collapsedItem:{noBubble:true},expandingItem:{noBubble:true},collapsingItem:{noBubble:true}})}if(d.fn.extend){d.fn.extend({ischildof:function(i){if(!d(this).parents){var e=i.element.contains(this.element);return e}var g=d(this).parents().get();for(var f=0;f<g.length;f++){if(typeof i!="string"){var h=g[f];if(i!==undefined){if(h==i[0]){return true}}}else{if(i!==undefined){if(d(g[f]).is(i)){return true}}}}return false}})}d.fn.jqxProxy=function(){var g=d(this).data().jqxWidget;var e=Array.prototype.slice.call(arguments,0);var f=g.element;if(!f){f=g.base.element}return d.jqx.jqxWidgetProxy(g.widgetName,f,e)};var c=d.originalVal=d.fn.val;d.fn.val=function(f){if(typeof f=="undefined"){if(d(this).hasClass("jqx-widget")||d(this).hasClass("jqx-input-group")){var e=d(this).data().jqxWidget;if(e&&e.val){return e.val()}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var e=d(this).find(".jqx-widget").data().jqxWidget;if(e&&e.val){return e.val()}}return c.call(this)}else{if(d(this).hasClass("jqx-widget")||d(this).hasClass("jqx-input-group")){var e=d(this).data().jqxWidget;if(e&&e.val){if(arguments.length!=2){return e.val(f)}else{return e.val(f,arguments[1])}}}if(this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0){var e=d(this).find(".jqx-widget").data().jqxWidget;if(e&&e.val){if(arguments.length!=2){return e.val(f)}else{return e.val(f,arguments[1])}}}return c.call(this,f)}};if(d.fn.modal&&d.fn.modal.Constructor){d.fn.modal.Constructor.prototype.enforceFocus=function(){d(document).off("focusin.bs.modal").on("focusin.bs.modal",d.proxy(function(f){if(this.$element[0]!==f.target&&!this.$element.has(f.target).length){if(d(f.target).parents().hasClass("jqx-popup")){return true}this.$element.trigger("focus")}},this))}}d.fn.coord=function(p){var g,l,k={top:0,left:0},h=this[0],n=h&&h.ownerDocument;if(!n){return}g=n.documentElement;if(!d.contains(g,h)){return k}if(typeof h.getBoundingClientRect!==undefined){k=h.getBoundingClientRect()}var f=function(q){return d.isWindow(q)?q:q.nodeType===9?q.defaultView||q.parentWindow:false};l=f(n);var j=0;var e=0;var i=navigator.userAgent.toLowerCase();var o=i.indexOf("ipad")!=-1||i.indexOf("iphone")!=-1;if(o){j=2}if(true==p){if(document.body.style.position!="static"&&document.body.style.position!=""){var m=d(document.body).coord();j=-m.left;e=-m.top}}return{top:e+k.top+(l.pageYOffset||g.scrollTop)-(g.clientTop||0),left:j+k.left+(l.pageXOffset||g.scrollLeft)-(g.clientLeft||0)}};d.jqx.ripplers=[];d.jqx.ripple=function(g,f,p){if(!f){f=g}var j=d(g);var k=false;j.append("<span class='ink'></span>");var q=j.find(".ink");var e=false;for(var h=0;h<d.jqx.ripplers.length;h++){var l=d.jqx.ripplers[h];if(l.element[0]===g[0]){e=true;break}}if(!e){d.jqx.ripplers.push({ink:q,element:g,hostElement:f,hostElementType:p})}if(p==="checkbox"||p==="radiobutton"){var m=Math.max(j.outerWidth(),j.outerHeight());q.css({height:m,width:m});var o=j.width()/2-q.width()/2;var n=j.height()/2-q.height()/2;q.css({top:n+"px",left:o+"px"})}if(d.jqx.ripplers.length===1){d(document).on("mouseup",function(t){d.jqx.ripple.mouseCaptured=false;for(var s=0;s<d.jqx.ripplers.length;s++){var r=d.jqx.ripplers[s];r.ink.removeClass("active");r.element.removeClass("active");if(p!=="checkbox"&&p!=="radiobutton"){if(r.ink.hasClass("animate")){r.ink.removeClass("animate")}}}})}f.off("mousedown.ripple");f.on("mousedown.ripple",function(r){var i=d(g);d.jqx.ripple.mouseCaptured=true;setTimeout(function(){if(i.find(".ink").length==0){i.append("<span class='ink'></span>")}var t=i.find(".ink");t.removeClass("animate");if(!t.height()&&!t.width()){var u=Math.max(i.outerWidth(),i.outerHeight());t.css({height:u,width:u})}if(p==="checkbox"||p==="radiobutton"){if(p==="checkbox"){if(f.jqxCheckBox("disabled")){return}}if(p==="radiobutton"){if(f.jqxRadioButton("disabled")){return}}var s=i.width()/2-t.width()/2;var v=i.height()/2-t.height()/2;t.css({top:v+"px",left:s+"px"}).addClass("animate");t.on("animationend",function(){if(d.jqx.ripple.mouseCaptured){t.removeClass("animate");t.addClass("active");g.addClass("active")}});return}var s=r.pageX-i.offset().left-t.width()/2;var v=r.pageY-i.offset().top-t.height()/2;t.css({top:v+"px",left:s+"px"}).addClass("animate")})})}})(b)})();
16
16
 
17
17
  (function(){if(typeof document==="undefined"){return}(function(i){if(!Array.prototype.find){Object.defineProperty(Array.prototype,"find",{value:function(H){if(this==null){throw TypeError('"this" is null or not defined')}var L=Object(this);var e=L.length>>>0;if(typeof H!=="function"){throw TypeError("predicate must be a function")}var I=arguments[1];var J=0;while(J<e){var K=L[J];if(H.call(I,K,J,L)){return K}J++}return undefined},configurable:true,writable:true})}i.jqx.observableArray=function(e,J){if(typeof(e)=="string"){e=i.parseJSON(e)}if(!Object.defineProperty||!(function(){try{Object.defineProperty({},"x",{});return true}catch(M){return false}}())){var L=Object.defineProperty;Object.defineProperty=function(O,P,N){if(L){try{return L(O,P,N)}catch(M){}}if(O!==Object(O)){throw TypeError("Object.defineProperty called on non-object")}if(Object.prototype.__defineGetter__&&("get" in N)){Object.prototype.__defineGetter__.call(O,P,N.get)}if(Object.prototype.__defineSetter__&&("set" in N)){Object.prototype.__defineSetter__.call(O,P,N.set)}if("value" in N){O[P]=N.value}else{if(!O[P]){O[P]=N}}return O}}if(!Array.prototype.forEach){Array.prototype.forEach=function(N){if(this===void 0||this===null){throw TypeError()}var Q=Object(this);var M=Q.length>>>0;if(typeof N!=="function"){throw TypeError()}var P=arguments[1],O;for(O=0;O<M;O++){if(O in Q){N.call(P,Q[O],O,Q)}}}}if(typeof Object.getOwnPropertyNames!=="function"){Object.getOwnPropertyNames=function(O){if(O!==Object(O)){throw TypeError("Object.getOwnPropertyNames called on non-object")}var M=[],N;for(N in O){if(Object.prototype.hasOwnProperty.call(O,N)){M.push(N)}}return M}}var I=this,H,K=[];I.notifier=null;I.name="observableArray";I.observing=true;I.changes=new Array();var J=J;I.observe=function(){I.observing=true;if(arguments.length==1){J=arguments[0]}};I.unobserve=function(){I.observing=false};I.toArray=function(){return K.slice(0)};I.toJSON=function(X,O){var U=K;if(O){U=O}var T=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,W={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function M(Z){return'"'+Z.replace(T,function(aa){var ab=W[aa];return typeof ab==="string"?ab:"\\u"+("0000"+aa.charCodeAt(0).toString(16)).slice(-4)})+'"'}function N(Z){return Z<10?"0"+Z:Z}function P(aa){var Z;if(isFinite(aa.valueOf())){Z=aa.getUTCFullYear()+"-"+N(aa.getUTCMonth()+1)+"-"+N(aa.getUTCDate())+"T"+N(aa.getUTCHours())+":"+N(aa.getUTCMinutes())+":"+N(aa.getUTCSeconds())+'Z"'}else{Z="null"}return Z}function Q(ac){var Z=ac.length,aa=[],ab;for(ab=0;ab<Z;ab++){aa.push(R(ab,ac)||"null")}return"["+aa.join(",")+"]"}function Y(ac){var aa=[],ab,Z;for(ab in ac){if(Object.prototype.hasOwnProperty.call(ac,ab)){if(ab!=""&&X&&X.indexOf(ab)===-1){continue}Z=R(ab,ac);if(Z){aa.push(M(ab)+":"+Z)}}}return"{"+aa.join(",")+"}"}function S(Z){switch(Object.prototype.toString.call(Z)){case"[object Date]":return P(Z);case"[object Array]":return Q(Z)}return Y(Z)}function V(aa,Z){switch(Z){case"string":return M(aa);case"number":case"float":case"integer":case"int":return isFinite(aa)?aa:"null";case"boolean":return aa}return"null"}function R(aa,Z){var ac=Z[aa],ab=typeof ac;if(ac&&typeof ac==="object"&&typeof ac.toJSON==="function"){ac=ac.toJSON(aa);ab=typeof ac}if(/(number|float|int|integer|string|boolean)/.test(ab)||(!ac&&ab==="object")){return V(ac,ab)}else{return S(ac)}}if(!X&&window.JSON&&typeof window.JSON.stringify==="function"){return window.JSON.stringify(U)}return R("",{"":U})};I.defineIndexProperty=function(O){if(!(O in I)){var M=function(V,S,U,R){var T=V[S];var Q=T;var P=function(){return Q};var W=function(ab){T=ab;if(Q!==T){var aa=Q;Q=T;if(typeof H==="function"){var Y=K.indexOf(R);var Z="";var X=function(ad,ac){Object.getOwnPropertyNames(ad).forEach(function(ae){var af=i.type(ad[ae]);if(af=="array"||af=="object"){X(ad[ae],ac+"."+ae)}else{if(S===ae){Z=ac+"."+ae}}})};X(R,Y);H({object:I,type:"update",path:Z,index:Y,name:S,newValue:T,oldValue:aa})}}Q=T;return T};if(V[S]!=undefined&&S!="length"){if(Object.defineProperty){Object.defineProperty(V,S,{get:P,set:W})}else{if(Object.prototype.__defineGetter__&&Object.prototype.__defineSetter__){Object.prototype.__defineGetter__.call(V,S,P);Object.prototype.__defineSetter__.call(V,S,W)}}}};var N=function(S,R,P){var Q=i.type(S);if(/(number|float|int|integer|string|boolean)/.test(Q)){return}if(S===undefined){return}Object.getOwnPropertyNames(S).forEach(function(T){var U=i.type(S[T]);if(U=="array"||U=="object"){M(S,T,R+"."+T,P);N(S[T],R+"."+T,P)}else{M(S,T,R+"."+T,P)}})};Object.defineProperty(I,O,{configurable:true,enumerable:true,get:function(){return K[O]},set:function(Q){var P=K[O];if(I.toJSON(null,P)!=I.toJSON(null,Q)){K[O]=Q;if(typeof H==="function"){H({object:I,type:"update",path:O.toString(),index:O,name:"index",newValue:Q,oldValue:P})}N(Q,O,Q)}}});N(I[O],O,I[O])}};I.push=function(){var M;for(var N=0,O=arguments.length;N<O;N++){M=K.length;K.push(arguments[N]);I.defineIndexProperty(M);if(typeof H==="function"){H({object:I,type:"add",name:"length",index:M,newValue:K.length,oldValue:M})}}return K.length};I.pop=function(){if(~K.length){var M=K.length-1,N=K.pop();delete I[M];if(typeof H==="function"){H({object:I,type:"delete",name:"length",index:M,newValue:K.length,oldValue:M})}return N}};I.unshift=function(){var M=K.length;for(var N=0,O=arguments.length;N<O;N++){K.splice(N,0,arguments[N]);I.defineIndexProperty(K.length-1)}if(typeof H==="function"){H({object:I,type:"add",index:0,name:"length",newValue:K.length,oldValue:M})}return K.length};I.shift=function(){var M=K.length;if(~K.length){var N=K.shift();K.length===0&&delete I[M];if(typeof H==="function"){H({object:I,type:"delete",index:M,name:"length",newValue:K.length,oldValue:M})}return N}};I.slice=function(Q,N,P){var M=K.slice(Q,N);var O=new i.jqx.observableArray(M,P);return O};I.splice=function(Q,R,M){var P=[],U,T;Q=!~Q?K.length-Q:Q;R=(R==null?K.length-Q:R)||0;while(R--){U=K.splice(Q,1)[0];P.push(U);delete I[K.length];if(typeof H==="function"){H({object:I,type:"delete",index:Q,name:"length",newValue:-1,oldValue:Q})}}for(var N=2,S=arguments.length;N<S;N++){K.splice(Q,0,arguments[N]);this.defineIndexProperty(K.length-1);if(typeof H==="function"){H({object:I,type:"add",index:Q,name:"length",newValue:K.length-1,oldValue:Q})}Q++}var O=new i.jqx.observableArray(P,M);return O};Object.defineProperty(I,"length",{configurable:false,enumerable:true,get:function(){return K.length},set:function(M){var N=Number(M);if(N%1===0&&N>=0){if(N<K.length){I.splice(N)}else{if(N>K.length){I.push.apply(I,new Array(N-K.length))}}}else{throw new RangeError("Invalid array length")}return M}});i.jqx.observableArray.prototype.fromArray=function(O,N){var M=new i.jqx.observableArray(O,N);return M};i.jqx.observableArray.prototype.clone=function(){var M=new i.jqx.observableArray(K,J);M.observing=I.observing;M.changes=I.changes;M.notifier=I.notifier;return M};I.remove=function(N){if(N<0||N>=I.length){throw new Error("Invalid index : "+N)}if(I.hasOwnProperty(N)){var M=I[N];I[N]=undefined;K[N]=undefined;if(typeof H==="function"){H({object:I,type:"delete",index:N,name:"index",newValue:undefined,oldValue:M})}return true}return false};I.concat=function(N,P){var M=K.concat(N);var O=new i.jqx.observableArray(M,P);return O};Object.getOwnPropertyNames(Array.prototype).forEach(function(M){if(!(M in I)){var N=function(){var Q=I.observing;I.observing=false;var P=K[M];var O=P.apply(K,arguments);I.observing=Q;return O};Object.defineProperty(I,M,{configurable:false,enumerable:true,writeable:false,value:N})}});I.set=function(N,P){if(i.type(N)=="string"&&N.split(".").length>1){var M=N.split(".");var Q=I;for(var O=0;O<M.length;O++){if(O===0){if(M[O]>=I.length){throw new Error("Invalid Index: "+N)}}if(O<M.length-1){Q=Q[M[O]]}else{Q[M[O]]=P}}return true}if(N>=I.length){I.push(P)}else{I[N]=P}return true};I.get=function(M){return I[M]};if(e instanceof Array){I.push.apply(I,e)}H=function(){if(!I.observing){return}if(arguments&&arguments[0]){I.changes.push(arguments[0])}if(J){J.apply(I,arguments)}if(I.notifier){I.notifier.apply(I,arguments)}};return I};i.jqx.formatDate=function(H,J,I){var e=i.jqx.dataFormat.formatdate(H,J,I);return e};i.jqx.formatNumber=function(H,J,I){var e=i.jqx.dataFormat.formatnumber(H,J,I);return e};i.jqx.dataAdapter=function(J,e){if(J!=undefined){if(J.dataFields!==undefined){J.datafields=J.dataFields}if(J.dataType!==undefined){J.datatype=J.dataType}if(J.localData!==undefined){J.localdata=J.localData}if(J.sortColumn!==undefined){J.sortcolumn=J.sortColumn}if(J.sortDirection!==undefined){J.sortdirection=J.sortDirection}if(J.sortColumns!==undefined){J.sortcolumns=J.sortColumns}if(J.sortDirections!==undefined){J.sortdirections=J.sortDirections}if(J.sortOrder!==undefined){J.sortdirection=J.sortOrder}if(J.formatData!==undefined){J.formatdata=J.formatData}if(J.processData!==undefined){J.processdata=J.processData}if(J.pageSize!==undefined){J.pagesize=J.pageSize}if(J.pageNum!==undefined){J.pagenum=J.pageNum}if(J.updateRow!==undefined){J.updaterow=J.updateRow}if(J.addRow!==undefined){J.addrow=J.addRow}if(J.deleteRow!==undefined){J.deleterow=J.deleteRow}if(J.contentType!==undefined){J.contenttype=J.contentType}if(J.totalRecords!=undefined){J.totalrecords=J.totalRecords}if(J.loadError!=undefined){J.loadError=J.loadError}if(J.sortComparer!=undefined){J.sortcomparer=J.sortComparer}}this._source=J;this._options=e||{};if(J.beforeLoadComplete!=undefined){this._options.beforeLoadComplete=this._source.beforeLoadComplete}if(J.downloadComplete!=undefined){this._options.downloadComplete=this._source.downloadComplete}if(J.loadComplete!=undefined){this._options.loadComplete=this._source.loadComplete}if(J.autoBind!=undefined){this._options.downloadComplete=this._source.autoBind}if(J.formatData!=undefined){this._options.formatData=this._source.formatData}if(J.loadError!=undefined){this._options.loadError=this._source.loadError}if(J.beforeSend!=undefined){this._options.beforeSend=this._source.beforeSend}if(J.contentType!=undefined){this._options.contentType=this._source.contentType}if(J.async!=undefined){this._options.async=this._source.async}if(J.loadServerData!=undefined){this._options.loadServerData=this._source.loadServerData}if(J.uniqueDataFields!=undefined){this._options.uniqueDataFields=this._source.uniqueDataFields}this.records=new Array();this._downloadComplete=new Array();this._bindingUpdate=new Array();if(J!=undefined&&J.localdata!=null&&typeof J.localdata=="function"){var I=J.localdata();if(I!=null){J._localdata=J.localdata;var H=this;if(J._localdata.subscribe){H._oldlocaldata=[];J._localdata.subscribe(function(K){var L=function(M){if(i.isArray(M)){return i.makeArray(L(i(M)))}return i.extend(true,{},M)};if(H.suspendKO==false||H.suspendKO==undefined||H._oldlocaldata.length==0){H._oldlocaldata=L(K)}},J._localdata,"beforeChange");J._localdata.subscribe(function(L){if(H.suspendKO==false||H.suspendKO==undefined){var K="";H._oldrecords=H.records;if(H._oldlocaldata.length==0){J.localdata=J._localdata()}if(H._oldlocaldata.length==0){K="change"}else{if(L){if(H._oldlocaldata.length==L.length){K="update"}if(H._oldlocaldata.length>L.length){K="remove"}if(H._oldlocaldata.length<L.length){K="add"}}}H.dataBind(null,K)}},J._localdata,"change");H._knockoutdatasource=true}J.localdata=I}}if(this._options.autoBind==true){this.dataBind()}};i.jqx.dataAdapter.prototype={getrecords:function(){return this.records},beginUpdate:function(){this.isUpdating=true},endUpdate:function(e){this.isUpdating=false;if(e!=false){if(this._changedrecords&&this._changedrecords.length>0){this.callBindingUpdate("update");this._changedrecords=[]}else{this.dataBind(null,"")}}},formatDate:function(H,J,I){var e=i.jqx.dataFormat.formatdate(H,J,I);return e},formatNumber:function(H,J,I){var e=i.jqx.dataFormat.formatnumber(H,J,I);return e},dataBind:function(R,aa){if(this.isUpdating==true){return}var W=this._source;if(!W){return}if(W.generatedfields){W.datafields=null;W.generatedfields=null}i.jqx.dataFormat.datescache=new Array();if(W.dataFields!=null){W.datafields=W.dataFields}if(W.recordstartindex==undefined){W.recordstartindex=0}if(W.recordendindex==undefined){W.recordendindex=0}if(W.loadallrecords==undefined){W.loadallrecords=true}if(W.root==undefined){W.root=""}if(W.record==undefined){W.record=""}if(W.sort!=undefined){this.sort=W.sort}if(W.filter!=undefined){this.filter=W.filter}else{this.filter=null}if(W.sortcolumn!=undefined){this.sortcolumn=W.sortcolumn}if(W.sortdirection!=undefined){this.sortdirection=W.sortdirection}if(W.sortcolumns!=undefined){this.sortcolumns=W.sortcolumns}if(W.sortdirections!=undefined){this.sortdirections=W.sortdirections}if(W.sortcomparer!=undefined){this.sortcomparer=W.sortcomparer}this.records=new Array();var K=this._options||{};this.virtualmode=K.virtualmode!=undefined?K.virtualmode:false;this.totalrecords=K.totalrecords!=undefined?K.totalrecords:0;this.pageable=K.pageable!=undefined?K.pageable:false;this.pagesize=K.pagesize!=undefined?K.pagesize:0;this.pagenum=K.pagenum!=undefined?K.pagenum:0;this.cachedrecords=K.cachedrecords!=undefined?K.cachedrecords:new Array();this.originaldata=new Array();this.recordids=new Array();this.updaterow=K.updaterow!=undefined?K.updaterow:null;this.addrow=K.addrow!=undefined?K.addrow:null;this.deleterow=K.deleterow!=undefined?K.deleterow:null;this.cache=K.cache!=undefined?K.cache:false;this.unboundmode=false;if(W.formatdata!=undefined){K.formatData=W.formatdata}if(W.data!=undefined){if(K.data==undefined){K.data={}}i.extend(K.data,W.data)}if(W.mapChar!=undefined){W.mapchar=W.mapChar}if(W.mapchar!=undefined){this.mapChar=W.mapchar?W.mapchar:">"}else{this.mapChar=K.mapChar?K.mapChar:">"}if(K.unboundmode||W.unboundmode){this.unboundmode=K.unboundmode||W.unboundmode}if(W.cache!=undefined){this.cache=W.cache}if(this.koSubscriptions){for(var ac=0;ac<this.koSubscriptions.length;ac++){this.koSubscriptions[ac].dispose()}}this.koSubscriptions=new Array();if(this.pagenum<0){this.pagenum=0}var ah=this;var Q=W.datatype;if(W.datatype==="csv"||W.datatype==="tab"||W.datatype==="tsv"||W.datatype=="text"){Q="text"}var N=K.async!=undefined?K.async:true;if(W.async!=undefined){N=W.async}if(Q==="xlsx"&&W.url){W.localdata=[];Q="array";if(window.jqxDataSource){var ai=new window.jqxDataSource({dataSource:W.url,async:false,dataFields:W.datafields});ai.notify(function(){W.url=null;W.localdata=ai.boundSource;W.datatype="array";ah.dataBind()})}}switch(Q){case"local":case"array":case"observablearray":case"observableArray":default:if(W.localdata==undefined&&W.length){W.localdata=new Array();for(var Z=0;Z<W.length;Z++){W.localdata[W.localdata.length]=W[Z];W[Z].uid=Z}}if(W.beforeprocessing&&i.isFunction(W.beforeprocessing)){W.beforeprocessing(W.localdata)}var M=W.localdata.length;this.totalrecords=this.virtualmode?(W.totalrecords||M):M;if(this.unboundmode){this.totalrecords=this.unboundmode?(W.totalrecords||M):M;var ad=W.datafields?W.datafields.length:0;if(ad>0){for(var Z=0;Z<this.totalrecords;Z++){var I={};for(var Y=0;Y<ad;Y++){I[W.datafields[Y].name]=""}I.uid=Z;W.localdata[W.localdata.length]=I}}}if(this.totalrecords==undefined){this.totalrecords=0}var ad=W.datafields?W.datafields.length:0;var H=function(ao,aq){var ap={};for(var am=0;am<aq;am++){var al=W.datafields?W.datafields[am]:{};var ar="";if(undefined==al||al==null){continue}if(al.map){if(i.isFunction(al.map)){ar=al.map(ao)}else{var aj=al.map.split(ah.mapChar);if(aj.length>0){var an=ao;for(var ak=0;ak<aj.length;ak++){if(!an){continue}an=an[aj[ak]]}ar=an}else{ar=ao[al.map]}}if(ar!=undefined&&ar!=null){ar=ar.toString()}else{if(ar==undefined&&ar!=null){ar=""}}}var at=false;if(ar==""){at=true;ar=ao[al.name];if(ar!=undefined&&ar!=null){if(W._localdata&&ar.subscribe){ar=ar()}else{if(al.type!="array"){if(al.type==="date"){if(ar&&ar instanceof Date){ar=ar}}else{ar=ar.toString()}}}}}if(ar=="[object Object]"&&al.map&&at){ar=""}ar=ah.getvaluebytype(ar,al);if(al.displayname!=undefined){ap[al.displayname]=ar}else{ap[al.name]=ar}}return ap};if(W._localdata){this._changedrecords=[];this.records=new Array();var ag=W._localdata();i.each(ag,function(am,ap){if(typeof ap==="string"){ah.records.push(ap)}else{var ak={};var ao=0;var an=this;i.each(this,function(ay,aD){var at=null;var aE="string";var aC=ay;if(ad>0){var aG=false;var aB=false;for(var ax=0;ax<ad;ax++){var aw=W.datafields[ax];if(aw!=undefined&&(aw.name==ay)){aG=true;at=aw.map;aE=aw.type;aC=aw.name;break}else{if(aw!=undefined&&aw.map&&(aw.map.indexOf(ay)>=0)){aG=true;at=aw.map;aE=aw.type;aC=aw.name;aB=true;var aF=an[ay];if(at!=null){var ar=at.split(ah.mapChar);if(ar.length>0){var az=an;for(var au=0;au<ar.length;au++){az=az[ar[au]]}aF=az}else{aF=an[at]}}if(aE!="string"){aF=ah.getvaluebytype(aF,{type:aE})}ak[aC]=aF;if(ak[aC]!=undefined){ao+=ak[aC].toString().length+ak[aC].toString().substr(0,1)}}}}if(!aG){return true}if(aB){return true}}var av=i.isFunction(an[ay]);if(av){var aF=an[ay]();if(aE!="string"){aF=ah.getvaluebytype(aF,{type:aE})}ak[ay]=aF;if(an[ay].subscribe){var aA=am;ah.koSubscriptions[ah.koSubscriptions.length]=an[ay].subscribe(function(aI){var aH=aA;ak[ay]=aI;var aJ={index:aH,oldrecord:ak,record:ak};ah._changedrecords.push(aJ);if(ah.isUpdating){return}ah.callBindingUpdate("update");ah._changedrecords=[];return false})}}else{var aF=an[ay];if(at!=null){var ar=at.split(ah.mapChar);if(ar.length>0){var az=an;for(var au=0;au<ar.length;au++){az=az[ar[au]]}aF=az}else{aF=an[at]}}if(aE!="string"){aF=ah.getvaluebytype(aF,{type:aE})}ak[aC]=aF;if(ak[aC]!=undefined){ao+=ak[aC].toString().length+ak[aC].toString().substr(0,1)}}});var al=ah.getid(W.id,an,am);ak.uid=al;ah.records.push(ak);ak._koindex=ao;if(ah._oldrecords){var aj=ah.records.length-1;if(aa=="update"){if(ah._oldrecords[aj]._koindex!=ao){var aq={index:aj,oldrecord:ah._oldrecords[aj],record:ak};ah._changedrecords.push(aq)}}}}});if(aa=="add"){var M=ah.records.length;for(var Z=0;Z<M;Z++){var I=ah.records[Z];var L=false;for(var U=0;U<ah._oldrecords.length;U++){if(ah._oldrecords[U]._koindex===I._koindex){L=true;break}}if(!L){ah._changedrecords.push({index:Z,oldrecord:null,record:I,position:(Z!=0?"last":"first")})}}}else{if(aa=="remove"){var M=ah._oldrecords.length;for(var Z=0;Z<M;Z++){var P=ah._oldrecords[Z];if(!ah.records[Z]){ah._changedrecords.push({index:Z,oldrecord:P,record:null})}else{if(ah.records[Z]._koindex!=P._koindex){ah._changedrecords.push({index:Z,oldrecord:P,record:null})}}}}}}else{if(!i.isArray(W.localdata)){this.records=new Array();var V=0;var T=new Array();i.each(W.localdata,function(al){var ak=ah.getid(W.id,this,al);if(ad==0){if(!(typeof this==="string"||this instanceof String)){for(var an in this){V++;var ao=i.type(this[an]);T.push({name:an,type:ao})}ad=V;W.datafields=T;W.generatedfields=T}}if(ad>0){var aj=this;var am=H(aj,ad);am.uid=ak;ah.records[ah.records.length]=am}else{this.uid=ak;ah.records[ah.records.length]=this}})}else{if(ad==0){var V=0;var T=new Array();i.each(W.localdata,function(al,an){var aj=new Object(this);if(typeof an==="string"){ah.records=W.localdata;return false}else{var ak=ah.getid(W.id,aj,al);if(typeof(ak)==="object"){ak=al}aj.uid=ak;if(al==0){for(var ao in this){V++;var ap=i.type(this[ao]);T.push({name:ao,type:ap})}ad=V;W.datafields=T;W.generatedfields=T}if(ad>0){var am=H(aj,ad);am.uid=ak;ah.records[ah.records.length]=am}else{ah.records[ah.records.length]=aj}}})}else{i.each(W.localdata,function(al){var aj=this;var am=H(aj,ad);var ak=ah.getid(W.id,am,al);if(typeof(ak)==="object"){ak=al}var aj=new Object(am);aj.uid=ak;ah.records[ah.records.length]=aj})}}}this.originaldata=W.localdata;this.cachedrecords=this.records;this.addForeignValues(W);if(K.uniqueDataFields){var S=this.getUniqueRecords(this.records,K.uniqueDataFields);this.records=S;this.cachedrecords=S}if(K.beforeLoadComplete){var ae=K.beforeLoadComplete(ah.records,this.originaldata);if(ae!=undefined){ah.records=ae;ah.cachedrecords=ae}}if(K.autoSort&&K.autoSortField){var O=Object.prototype.toString;Object.prototype.toString=(typeof field=="function")?field:function(){return this[K.autoSortField]};ah.records.sort(function(ak,aj){if(ak===undefined){ak=null}if(aj===undefined){aj=null}if(ak===null&&aj===null){return 0}if(ak===null&&aj!==null){return 1}if(ak!==null&&aj===null){return -1}ak=ak.toString();aj=aj.toString();if(ak===null&&aj===null){return 0}if(ak===null&&aj!==null){return 1}if(ak!==null&&aj===null){return -1}if(i.jqx.dataFormat.isNumber(ak)&&i.jqx.dataFormat.isNumber(aj)){if(ak<aj){return -1}if(ak>aj){return 1}return 0}else{if(i.jqx.dataFormat.isDate(ak)&&i.jqx.dataFormat.isDate(aj)){if(ak<aj){return -1}if(ak>aj){return 1}return 0}else{if(!i.jqx.dataFormat.isNumber(ak)&&!i.jqx.dataFormat.isNumber(aj)){ak=String(ak).toLowerCase();aj=String(aj).toLowerCase()}}}try{if(ak<aj){return -1}if(ak>aj){return 1}}catch(al){var am=al}return 0});Object.prototype.toString=O}ah.loadedData=W.localdata;ah.buildHierarchy();if(i.isFunction(K.loadComplete)){K.loadComplete(W.localdata,ah.records)}break;case"json":case"jsonp":case"xml":case"xhtml":case"script":case"text":case"ics":if(W.localdata!=null&&!W.url){if(i.isFunction(W.beforeprocessing)){W.beforeprocessing(W.localdata)}if(W.datatype==="xml"){ah.loadxml(W.localdata,W.localdata,W)}else{if(Q==="text"){ah.loadtext(W.localdata,W)}else{if(Q==="ics"){ah.loadics(W.localdata,W)}else{ah.loadjson(W.localdata,W.localdata,W)}}}ah.addForeignValues(W);if(K.uniqueDataFields){var S=ah.getUniqueRecords(ah.records,K.uniqueDataFields);ah.records=S;ah.cachedrecords=S}if(K.beforeLoadComplete){var ae=K.beforeLoadComplete(ah.records,this.originaldata);if(ae!=undefined){ah.records=ae;ah.cachedrecords=ae}}ah.loadedData=W.localdata;ah.buildHierarchy.call(ah);if(i.isFunction(K.loadComplete)){K.loadComplete(W.localdata,ah.records)}ah.callBindingUpdate(aa);return}var af=K.data!=undefined?K.data:{};if(W.processdata){W.processdata(af)}if(i.isFunction(K.processData)){K.processData(af)}if(i.isFunction(K.formatData)){var e=K.formatData(af);if(e!=undefined){af=e}}var ab="application/x-www-form-urlencoded";if(K.contentType){ab=K.contentType}var J="GET";if(W.type){J=W.type}if(K.type){J=K.type}var X=Q;if(Q=="ics"){X="text"}if(W.url&&W.url.length>0){if(i.isFunction(K.loadServerData)){ah._requestData(af,W,K)}else{this.xhr=i.jqx.data.ajax({dataType:X,cache:this.cache,type:J,url:W.url,async:N,timeout:W.timeout,contentType:ab,data:af,success:function(am,aj,ap){if(i.isFunction(W.beforeprocessing)){var ao=W.beforeprocessing(am,aj,ap);if(ao!=undefined){am=ao}}if(i.isFunction(K.downloadComplete)){var ao=K.downloadComplete(am,aj,ap);if(ao!=undefined){am=ao}}if(am==null){ah.records=new Array();ah.cachedrecords=new Array();ah.originaldata=new Array();ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){K.loadComplete(new Array())}return}var ak=am;if(am.records){ak=am.records}if(am.totalrecords!=undefined){W.totalrecords=am.totalrecords}else{if(am.totalRecords!=undefined){W.totalrecords=am.totalRecords}}if(W.datatype==="xml"){ah.loadxml(null,ak,W)}else{if(Q==="text"){ah.loadtext(ak,W)}else{if(Q==="ics"){ah.loadics(ak,W)}else{ah.loadjson(null,ak,W)}}}ah.addForeignValues(W);if(K.uniqueDataFields){var al=ah.getUniqueRecords(ah.records,K.uniqueDataFields);ah.records=al;ah.cachedrecords=al}if(K.beforeLoadComplete){var an=K.beforeLoadComplete(ah.records,am);if(an!=undefined){ah.records=an;ah.cachedrecords=an}}ah.loadedData=am;ah.buildHierarchy.call(ah);ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){K.loadComplete(am,aj,ap,ah.records)}},error:function(al,aj,ak){if(i.isFunction(W.loaderror)){W.loaderror(al,aj,ak)}if(i.isFunction(K.loadError)){K.loadError(al,aj,ak)}al=null;ah.callDownloadComplete()},beforeSend:function(ak,aj){if(i.isFunction(K.beforeSend)){K.beforeSend(ak,aj)}if(i.isFunction(W.beforesend)){W.beforesend(ak,aj)}}})}}else{ah.buildHierarchy(new Array());ah.callDownloadComplete();if(i.isFunction(K.loadComplete)){if(!ai){var ai={}}K.loadComplete(ai)}}break}this.callBindingUpdate(aa)},buildHierarchy:function(K){var e=this._source;var P=new Array();if(!e.datafields){return}if(e.hierarchy&&!e.hierarchy.reservedNames){e.hierarchy.reservedNames={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}}else{if(e.hierarchy){var O=e.hierarchy.reservedNames;if(!O.leaf){O.leaf="leaf"}if(!O.parent){O.parent="parent"}if(!O.expanded){O.expanded="expanded"}if(!O.checked){O.checked="checked"}if(!O.selected){O.selected="selected"}if(!O.level){O.level="level"}if(!O.data){O.data="data"}}}if(!e.hierarchy){return}var N=this;var O=e.hierarchy.reservedNames;if(e.hierarchy.root){if(e.dataType=="xml"){var P=this.getRecordsHierarchy("uid","parentuid","records",null,K);this.hierarchy=P;return P}else{this.hierarchy=this.records;var R=e.hierarchy.root;for(var L=0;L<this.records.length;L++){var M=this.records[L];if(!M){continue}var H=function(S){if(e.hierarchy.record){S.records=S[R][e.hierarchy.record]}else{var U=R.split(N.mapChar);var T=null;if(U.length>1){var W=S;for(var V=0;V<U.length;V++){if(W!=undefined){W=W[U[V]]}}T=W}else{T=S[R]}S.records=T}if(S.records==null||(S.records&&S.records.length==0)){S[O.leaf]=true}};H(M);M[O.level]=0;var I=this.getid(e.id,M,L);M.uid=I;M[O.parent]=null;M[O.data]=M;if(M[O.expanded]===undefined){M[O.expanded]=false}var Q=function(W,U){if(!U){W.records=new Array();return}for(var V=0;V<U.length;V++){var S=U[V];if(!S){continue}H(S);S[O.level]=W[O.level]+1;S[O.parent]=W;S[O.data]=S;var T=N.getid(e.id,S,V);if(T==V&&e.id==null){S.uid=W.uid+"_"+T}else{S.uid=T}if(S[O.expanded]===undefined){S[O.expanded]=false}Q(S,S.records)}};Q(M,M.records)}}return this.hierarchy}if(e.hierarchy.keyDataField&&e.hierarchy.parentDataField){var P=this.getRecordsHierarchy(e.hierarchy.keyDataField.name,e.hierarchy.parentDataField.name,"records",null,K);this.hierarchy=P;return P}if(e.hierarchy.groupingDataFields){var J=new Array();for(var L=0;L<e.hierarchy.groupingDataFields.length;L++){J.push(e.hierarchy.groupingDataFields[L].name)}var P=this.getGroupedRecords(J,"records","label",null,"data",null,"parent",K);this.hierarchy=P;return P}},addRecord:function(H,e,M,I){var J=this;var N=function(){return{leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}};if(H!=undefined){if(M!=undefined){if(this.hierarchy.length>0){var K=function(O){if(O){for(var P=0;P<O.length;P++){var Q=O[P];if(Q.uid==M){var R=(J._source&&J._source.hierarchy)?J._source.hierarchy.reservedNames:null;if(R==null){R=N()}H[R.parent]=Q;H[R.level]=Q[R.level]+1;if(!Q.records){Q.records=new Array();Q[R.leaf]=false}else{Q[R.leaf]=false}if(e=="last"){Q.records.push(H)}else{if(typeof e==="number"&&isFinite(e)){Q.records.splice(e,0,H)}else{Q.records.splice(0,0,H)}}return true}if(Q.records){K(Q.records)}}}};K(this.hierarchy)}}else{if(this.hierarchy&&this.hierarchy.length>=0&&(this._source.hierarchy||I)){var L=(J._source&&J._source.hierarchy)?J._source.hierarchy.reservedNames:null;if(L==null){L=N()}H[L.level]=0;if(e=="last"){this.hierarchy.push(H)}else{if(typeof e==="number"&&isFinite(e)){this.hierarchy.splice(e,0,H)}else{this.hierarchy.splice(0,0,H)}}}else{if(e=="last"){this.records.push(H)}else{if(typeof e==="number"&&isFinite(e)){this.records.splice(e,0,H)}else{this.records.splice(0,0,H)}}}return true}}return false},deleteRecord:function(H){var J=this;if(this.hierarchy.length>0){var K=function(L){if(L){for(var O=0;O<L.length;O++){var P=L[O];if(P.uid==H){L.splice(O,1);if(J.recordids[H]){delete J.recordids[H]}var N=function(T){for(var Q=0;Q<T.length;Q++){var S=T[Q].uid;for(var R=0;R<J.records.length;R++){var U=J.records[R];if(U.uid==S){J.records.splice(R,1);break}}if(T[Q].records){N(T[Q].records)}}};if(P.records){N(P.records)}for(var M=0;M<J.records.length;M++){var P=J.records[M];if(P.uid==H){J.records.splice(M,1);break}}return true}if(P.records){K(P.records)}}}};K(this.hierarchy)}else{for(var e=0;e<this.records.length;e++){var I=this.records[e];if(I.uid==H){this.records.splice(e,1);return true}}}return false},addForeignValues:function(H){var Q=this;var V=H.datafields?H.datafields.length:0;for(var N=0;N<V;N++){var L=H.datafields[N];if(L!=undefined){if(L.values!=undefined){if(L.value==undefined){L.value=L.name}if(L.values.value==undefined){L.values.value=L.value}var T=new Array();var K,M;if(Q.pageable&&Q.virtualmode){K=Q.pagenum*Q.pagesize;M=K+Q.pagesize;if(M>Q.totalrecords){M=Q.totalrecords}}else{if(Q.virtualmode){K=H.recordstartindex;M=H.recordendindex;if(M>Q.totalrecords){M=Q.totalrecords}}else{K=0;M=Q.records.length}}for(var O=K;O<M;O++){var P=Q.records[O];var I=L.name;var U=P[L.value];if(T[U]!=undefined){P[I]=T[U]}else{for(var J=0;J<L.values.source.length;J++){var S=L.values.source[J];var e=S[L.values.value];if(e==undefined){e=S.uid}if(e==U){var R=S[L.values.name];P[I]=R;T[U]=R;break}}}}}else{if(L.value!=undefined){for(var O=0;O<Q.records.length;O++){var P=Q.records[O];P[L.name]=P[L.value]}}}}}},abort:function(){if(this.xhr&&this.xhr.readyState!=4){this.xhr.abort();this.callDownloadComplete()}},_requestData:function(H,J,e){var I=this;var K=function(P){if(P.totalrecords){J.totalrecords=P.totalrecords;I.totalrecords=P.totalrecords}if(P.records){I.records=P.records;I.cachedrecords=P.records}I.addForeignValues(J);if(e.uniqueDataFields){var N=I.getUniqueRecords(I.records,e.uniqueDataFields);I.records=N;I.cachedrecords=N}if(e.beforeLoadComplete){var O=e.beforeLoadComplete(I.records,P);if(O!=undefined){I.records=O;I.cachedrecords=O}}for(var M=0;M<I.records.length;M++){var L=I.records[M];if(undefined==L){continue}if(undefined==L.uid){L.uid=I.getid(J.id,L,M)}}I.buildHierarchy.call(I);if(i.isFunction(e.loadComplete)){e.loadComplete(P)}I.callDownloadComplete()};e.loadServerData(H,J,K)},getUniqueRecords:function(I,L){if(I&&L){var e=I.length;var Q=L.length;var N=new Array();var O=new Array();for(var P=0;P<e;P++){var M=I[P];var J="";if(M==undefined){continue}for(var K=0;K<Q;K++){var H=L[K];if(M[H]!==undefined){J+=M[H]+"_"}}if(!O[J]&&J){N[N.length]=M}O[J]=true}}return N},getAggregatedData:function(S,P,M,H){var L=M;if(!L){L=this.records}var Q={};var K=new Array();var J=L.length;if(J==0){return}if(J==undefined){return}for(var O=0;O<J;O++){var R=L[O];for(var N=0;N<S.length;N++){var I=S[N];var U=R[I.name];if(I.aggregates){Q[I.name]=Q[I.name]||{};K[I.name]=K[I.name]||0;K[I.name]++;var e=function(W){for(var Y in W){var X=Q[I.name][Y];if(X==null){Q[I.name][Y]=0;X=0}if(i.isFunction(W[Y])){X=W[Y](X,U,I.name,R,H)}Q[I.name][Y]=X}};var T=parseFloat(U);if(isNaN(T)){T=false}else{T=true}if(T){U=parseFloat(U)}if(typeof U==="number"&&isFinite(U)){i.each(I.aggregates,function(){var W=Q[I.name][this];if(W==null){W=0;if(this=="min"){W=9999999999999}if(this=="max"){W=-9999999999999}}if(this=="sum"||this=="avg"||this=="stdev"||this=="stdevp"||this=="var"||this=="varp"){W+=parseFloat(U)}else{if(this=="product"){if(O==0){W=parseFloat(U)}else{W*=parseFloat(U)}}else{if(this=="min"){W=Math.min(W,parseFloat(U))}else{if(this=="max"){W=Math.max(W,parseFloat(U))}else{if(this=="count"){W++}else{if(typeof(this)=="object"){e(this);return}}}}}}Q[I.name][this]=W})}else{i.each(I.aggregates,function(){if(this=="min"||this=="max"||this=="count"||this=="product"||this=="sum"||this=="avg"||this=="stdev"||this=="stdevp"||this=="var"||this=="varp"){if(U===null){return true}var W=Q[I.name][this];if(W==null){W=0}Q[I.name][this]=W;return true}if(typeof(this)=="object"){e(this)}})}}}}for(var N=0;N<S.length;N++){var I=S[N];if(!Q[I.name]){Q[I.name]={};i.each(I.aggregates,function(W){Q[I.name][this]=0})}if(Q[I.name]["avg"]!=undefined){var U=Q[I.name]["avg"];var V=K[I.name];if(V===0||V==undefined){Q[I.name]["avg"]=0}else{Q[I.name]["avg"]=U/V}}else{if(Q[I.name]["count"]!=undefined){Q[I.name]["count"]=J}}if(Q[I.name]["stdev"]||Q[I.name]["stdevp"]||Q[I.name]["var"]||Q[I.name]["varp"]){i.each(I.aggregates,function(ac){if(this=="stdev"||this=="var"||this=="varp"||this=="stdevp"){var ad=Q[I.name][this];var ab=J;var W=(ad/J);var Y=0;for(var Z=0;Z<J;Z++){var aa=L[Z];var ae=aa[I.name];Y+=(ae-W)*(ae-W)}var X=(this=="stdevp"||this=="varp")?ab:ab-1;if(X==0){X=1}if(this=="var"||this=="varp"){Q[I.name][this]=Y/X}else{if(this=="stdevp"||this=="stdev"){Q[I.name][this]=Math.sqrt(Y/X)}}}})}if(I.formatStrings){i.each(I.aggregates,function(X){var W=I.formatStrings[X];if(W){if(this=="min"||this=="max"||this=="count"||this=="product"||this=="sum"||this=="avg"||this=="stdev"||this=="stdevp"||this=="var"||this=="varp"){var Y=Q[I.name][this];Q[I.name][this]=i.jqx.dataFormat.formatnumber(Y,W,P)}else{if(typeof this=="object"){for(var Z in this){var Y=Q[I.name][Z];Q[I.name][Z]=i.jqx.dataFormat.formatnumber(Y,W,P)}}}}})}}return Q},bindDownloadComplete:function(H,e){this._downloadComplete[this._downloadComplete.length]={id:H,func:e}},unbindDownloadComplete:function(H){for(var e=0;e<this._downloadComplete.length;e++){if(this._downloadComplete[e].id==H){this._downloadComplete[e].func=null;this._downloadComplete.splice(e,1);break}}},callDownloadComplete:function(){for(var e=0;e<this._downloadComplete.length;e++){var H=this._downloadComplete[e];if(H.func!=null){H.func()}}},setSource:function(e){this._source=e},generatekey:function(){var e=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e())},getGroupedRecords:function(ak,an,W,af,al,ac,ae,ao,K){var ah=0;var aa=this;if(!K){K=0}var I=new Array();for(var N=0;N<ak.length;N++){I[N]=aa.generatekey()}if(!an){an="items"}if(!W){W="group"}if(!al){al="record"}if(!ae){ae="parentItem"}if(undefined===ac){ac="value"}var S=new Array();var L=0;var J=new Array();var R=ak.length;var am=new Array();if(!ao){var ao=this.records}var P=ao.length;var ag=function(ap){var aq=ap;if(af){i.each(af,function(){if(this.name&&this.map){aq[this.map]=aq[this.name]}})}return aq};for(var V=0;V<P;V++){var aj=ag(ao[V]);var ab=aj[aa.uniqueId];var H=new Array();var X=0;for(N=0;N<R;N++){var Q=ak[N];var ad=aj[Q];if(null==ad){continue}H[X++]={value:ad,hash:I[N]}}if(H.length!=R){break}var Y=null;var T="";var e=-1;for(var Z=0;Z<H.length;Z++){e++;var ai=H[Z].value;var M=H[Z].hash;T=T+"_"+M+"_"+ai;if(J[T]!=undefined&&J[T]!=null){Y=J[T];continue}if(Y==null){Y={level:0};Y[ae]=null;Y[W]=ai;Y[al]=aj;if(aj.expanded!==undefined){Y.expanded=aj.expanded}else{Y.expanded=false}if(ac){Y[ac]=aj[ac]}Y[an]=new Array();var O=S.length+K;if(!this._source.id||typeof aj.uid==="number"||isFinite(aj.uid)){O="Row"+O}Y.uid=O;S[L++]=Y}else{var U={level:Y.level+1};U[ae]=Y;U[W]=ai;U[an]=new Array();U[al]=aj;if(aj.expanded!==undefined){U.expanded=aj.expanded}else{U.expanded=false}if(ac){U[ac]=aj[ac]}U.uid=Y.uid+"_"+Y[an].length;Y[an][Y[an].length]=U;Y=U}J[T]=Y}if(aj){aj.leaf=true}if(Y!=null){if(this._source.id==null){if(undefined==aj.uid){aj.uid=Y.uid+"_"+Y[an].length}else{if(aj.uid.toString().indexOf(Y.uid)==-1){aj.uid=Y.uid+"_"+aj.uid}}}aj[ae]=Y;aj.level=Y.level+1;Y[an][Y[an].length]=aj}else{if(undefined==aj.uid){aj.uid=this.generatekey()}}}return S},getRecordsHierarchy:function(L,J,aa,U,H){var e=new Array();var I=this.records;if(H){I=H}if(this.records.length==0){return null}var Y=aa!=null?aa:"items";var R=[];var ab=I;var O=ab.length;var P=(this._source&&this._source.hierarchy)?this._source.hierarchy.reservedNames:null;var W=function(ac){var ad=ac;if(U){i.each(U,function(){if(this.name&&this.map){ad[this.map]=ad[this.name]}})}return ad};for(var X=0;X<O;X++){var Z=i.extend({},ab[X]);var T=Z[J];var S=Z[L];R[S]={parentid:T,item:Z}}for(var X=0;X<O;X++){var Z=i.extend({},ab[X]);var T=Z[J];var S=Z[L];if(R[T]!=undefined){var Z={parentid:T,item:R[S].item};var Q=R[T].item;if(!Q[Y]){Q[Y]=[]}var M=Q[Y].length;var K=Z.item;if(!P){if(K.parent==undefined){K.parent=Q}}else{if(K[P.parent]==undefined){K[P.parent]=Q}}var N=W(K);Q[Y][M]=N;R[T].item=Q;R[S]=Z}else{var K=R[S].item;if(!P){if(K.parent==undefined){K.parent=null}}else{if(K[P.parent]==undefined){K[P.parent]=null}}var N=W(K);if(!P){N.level=0}else{N[P.level]=0}e[e.length]=N}}if(e.length!=0){var V=function(af,ac){for(var ad=0;ad<ac.length;ad++){if(!P){ac[ad].level=af}else{ac[ad][P.level]=af}var ae=ac[ad][Y];if(ae){if(ae.length>0){V(af+1,ae)}else{if(!P){ac[ad].leaf=true}else{ac[ad][P.leaf]=true}}}else{if(!P){ac[ad].leaf=true}else{ac[ad][P.leaf]=true}}}};V(0,e)}return e},bindBindingUpdate:function(H,e){this._bindingUpdate[this._bindingUpdate.length]={id:H,func:e}},unbindBindingUpdate:function(H){for(var e=0;e<this._bindingUpdate.length;e++){if(this._bindingUpdate[e].id==H){this._bindingUpdate[e].func=null;this._bindingUpdate.splice(e,1);break}}},callBindingUpdate:function(e){for(var I=0;I<this._bindingUpdate.length;I++){var H=this._bindingUpdate[I];if(H.func!=null){H.func(e)}}},getid:function(N,H,K){if(N!=null&&N.name!=undefined){if(N.name){var e=i(H).attr(N.name);if(e!=null&&e.toString().length>0){return e}else{if(N.map){try{var e=i(H).attr(N.map);if(e!=null&&e.toString().length>0){return e}else{if(i(N.map,H).length>0){return i(N.map,H).text()}else{if(i(N.name,H).length>0){return i(N.name,H).text()}}}}catch(J){return K}}}return}}if(i(N,H).length>0){return i(N,H).text()}if(N){if(N.toString().length>0){var e=i(H).attr(N);if(e!=null&&e.toString().length>0){return i.trim(e).split(" ").join("").replace(/([ #;?%&,.+*~\':"!^$[\]()=>|\/\\@])/g,"")}else{var I=N.split(this.mapChar);if(I.length>1){var M=H;for(var L=0;L<I.length;L++){if(M!=undefined){M=M[I[L]]}}if(M!=undefined){return M}}else{if(H[N]!=undefined){return H[N]}}}}}return K},loadjson:function(af,ag,S){if(typeof(af)=="string"){af=i.parseJSON(af)}if(S.root==undefined){S.root=""}if(S.record==undefined){S.record=""}var af=af||ag;if(!af){af=[]}var ae=this;if(S.root!=""){var K=S.root.split(ae.mapChar);if(K.length>1){var ab=af;for(var R=0;R<K.length;R++){if(ab!=undefined){ab=ab[K[R]]}}af=ab}else{if(af[S.root]!==undefined){af=af[S.root]}else{if(af[0]&&af[0][S.root]!==undefined){af=af[0][S.root]}else{i.each(af,function(ai){var ah=this;if(this==S.root){af=this;return false}else{if(this[S.root]!=undefined){af=this[S.root]}}})}}if(!af){var K=S.root.split(ae.mapChar);if(K.length>0){var ab=af;for(var R=0;R<K.length;R++){if(ab!=undefined){ab=ab[K[R]]}}af=ab}}}}else{if(!af.length){for(var O in af){if(i.isArray(af[O])){af=af[O];break}}}}if(af!=null&&af.length==undefined){af=i.makeArray(af)}if(af==null||af==undefined||af=="undefined"||af.length==undefined){throw new Error("jqxDataAdapter: JSON Parse error! Invalid JSON. Please, check your JSON or your jqxDataAdapter initialization!");return}if(af.length==0){this.totalrecords=0;return}var J=af.length;this.totalrecords=this.virtualmode?(S.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var X=this.records;var U=!this.pageable?S.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(S.loadallrecords){U=0;J=this.totalrecords}var Q=0;if(this.virtualmode){U=!this.pageable?S.recordstartindex:this.pagesize*this.pagenum;Q=U;U=0;J=this.totalrecords}var Z=S.datafields?S.datafields.length:0;if(Z==0){var e=af[0];var ac=new Array();for(var O in e){var H=O;ac[ac.length]={name:H}}S.datafields=ac;S.generatedfields=S.datafields;Z=ac.length}var M=U;for(var W=U;W<J;W++){var I=af[W];if(I==undefined){break}if(S.record&&S.record!=""){I=I[S.record];if(I==undefined){continue}}var ad=this.getid(S.id,I,W);if(typeof(ad)==="object"){ad=W}if(!this.recordids[ad]){this.recordids[ad]=I;var L={};for(var V=0;V<Z;V++){var N=S.datafields[V];var T="";if(undefined==N||N==null){continue}if(N.map){if(i.isFunction(N.map)){T=N.map(I)}else{var K=N.map.split(ae.mapChar);if(K.length>0){var aa=I;for(var R=0;R<K.length;R++){if(aa!=undefined){aa=aa[K[R]]}}T=aa}else{T=I[N.map]}}if(T!=undefined&&T!=null){T=this.getvaluebytype(T,N)}else{if(T==undefined&&T!=null){T=""}}}if(T==""&&!N.map){T=I[N.name];if(T==undefined&&T!=null){T=""}if(N.value!=undefined){if(T!=undefined){var Y=T[N.value];if(Y!=undefined){T=Y}}}}T=this.getvaluebytype(T,N);if(N.displayname!=undefined){L[N.displayname]=T}else{L[N.name]=T}if(N.type==="array"){var P=function(ak){if(!ak){return}for(var aq=0;aq<ak.length;aq++){var an=ak[aq];if(!an){continue}for(var ao=0;ao<Z;ao++){var aj=S.datafields[ao];var ap="";if(undefined==aj||aj==null){continue}if(aj.map){if(i.isFunction(aj.map)){ap=aj.map(an)}else{var ah=aj.map.split(ae.mapChar);if(ah.length>0){var am=an;for(var ai=0;ai<ah.length;ai++){if(am!=undefined){am=am[ah[ai]]}}ap=am}else{ap=an[aj.map]}}if(ap!=undefined&&ap!=null){ap=this.getvaluebytype(ap,aj)}else{if(ap==undefined&&ap!=null){ap=""}}}if(ap==""&&!aj.map){ap=an[aj.name];if(ap==undefined&&ap!=null){ap=""}if(aj.value!=undefined){if(ap!=undefined){var al=ap[aj.value];if(al!=undefined){ap=al}}}}ap=this.getvaluebytype(ap,aj);if(aj.displayname!=undefined){an[aj.displayname]=ap}else{an[aj.name]=ap}if(aj.type==="array"){P.call(this,ap)}}}};P.call(this,T)}}if(S.recordendindex<=0||U<S.recordendindex){X[Q+M]=new Object(L);X[Q+M].uid=ad;this.originaldata[Q+M]=new Object(X[W]);M++}}}this.records=X;this.cachedrecords=this.records},loadxml:function(K,aj,V){if(typeof(K)=="string"){K=aj=i(i.parseXML(K));K=null}if(V.root==undefined){V.root=""}if(V.record==undefined){V.record=""}var K;if(i.jqx.browser.msie&&aj){if(aj.xml!=undefined){K=i(V.root+" "+V.record,i.parseXML(aj.xml))}else{K=K||i(V.root+" "+V.record,aj)}}else{K=K||i(V.root+" "+V.record,aj)}if(!K){K=[]}var J=K.length;if(K.length==0){return}this.totalrecords=this.virtualmode?(V.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var ab=this.records;var Y=!this.pageable?V.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(V.loadallrecords){Y=0;J=this.totalrecords}var T=0;if(this.virtualmode){Y=!this.pageable?V.recordstartindex:this.pagesize*this.pagenum;T=Y;Y=0;J=this.totalrecords}var ad=V.datafields?V.datafields.length:0;if(ad==0){var e=K[0];var ag=new Array();for(var S in e){var H=S;ag[ag.length]={name:H}}V.datafields=ag;V.generatedfields=V.datafields;ad=ag.length}var U=Y;var af=false;for(var aa=Y;aa<J;aa++){var I=K[aa];if(I==undefined){break}var ai=this.getid(V.id,I,aa);if(!this.recordids[ai]){this.recordids[ai]=I;var L={};var P=false;if(V.hierarchy&&V.hierarchy.root){P=true}for(var Z=0;Z<ad;Z++){var Q=V.datafields[Z];var X="";if(undefined==Q||Q==null){continue}if(Q.map){if(i.isFunction(Q.map)){X=Q.map(I)}else{var M=Q.map.indexOf("[");if(M<0){X=i(Q.map,I);if(X.length==1){X=X.text()}else{af=true;var ah=new Array();for(var ac=0;ac<X.length;ac++){ah.push(i(X[ac]).text())}X=ah;if(P&&ah.length>0){X=ah[0]}}}else{var ae=Q.map.substring(0,M-1);var O=Q.map.indexOf("]");var R=Q.map.substring(M+1,O);X=i(ae,I).attr(R);if(X==undefined){X=i(I).attr(R)}if(X==undefined){X=""}}if(X==""){X=i(I).attr(Q.map);if(X==undefined){X=""}}}}if(X==""){X=i(Q.name,I);if(X.length==1){X=X.text()}else{var ah=new Array();for(var ac=0;ac<X.length;ac++){ah.push(i(X[ac]).text())}X=ah;if(P&&ah.length>0){X=ah[0]}}if(X==""){X=i(I).attr(Q.name);if(X==undefined){X=""}}if(X==""){if(I.nodeName&&I.nodeName==Q.name&&I.firstChild){X=i(I.firstChild).text()}}}var W=X;X=this.getvaluebytype(X,Q);if(Q.displayname!=undefined){L[Q.displayname]=X}else{L[Q.name]=X}}if(V.recordendindex<=0||Y<V.recordendindex){ab[T+U]=i.extend({},L);ab[T+U].uid=ai;this.originaldata[T+U]=i.extend({},ab[aa]);U++}}}if(V.hierarchy&&V.hierarchy.root){for(var aa=Y;aa<J;aa++){var I=K[aa];var N=ab[aa];if(i(I).parent().length>0){var ai=this.getid(V.id,i(I).parents(V.hierarchy.record+":first"));N.parentuid=ai}else{N.parentuid=null}}}this.records=ab;this.cachedrecords=this.records},loadics:function(N,H){if(N==null){return}var S=H.rowDelimiter||this.rowDelimiter||"\n";var R=N.split(S);var K=R.length;var Q=N.split("\r");if(K==1&&Q.length>1){R=Q;K=R.length}this.records=new Array();this.originaldata=new Array();var L=this.records;this.recordids=new Array();var I=0;var P=function(V){var T=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z)?$/;var U=T.exec(V);if(!U){throw new Error("Invalid UNTIL value: "+V)}return new Date(Date.UTC(U[1],U[2]-1,U[3],U[5]||0,U[6]||0,U[7]||0))};for(var M=0;M<K;M++){var O=R[M];if(O=="BEGIN:VEVENT"){var e={};continue}if(O.indexOf("SUMMARY")>=0){e.SUMMARY=O.substring(O.indexOf("SUMMARY")+8);continue}if(O.indexOf("LOCATION")>=0){e.LOCATION=O.substring(O.indexOf("LOCATION")+9);continue}if(O.indexOf("DESCRIPTION")>=0){e.DESCRIPTION=O.substring(O.indexOf("DESCRIPTION")+12);continue}if(O.indexOf("RRULE")>=0){e.RRULE=O.substring(O.indexOf("RRULE")+6);continue}if(O.indexOf("EXDATE")>=0){var J=O.substring(O.indexOf("EXDATE")+7);e.EXDATE=J;continue}if(O.indexOf("DTEND")>=0){e.DTEND=P(O.substring(O.indexOf("DTEND")+6));continue}if(O.indexOf("DTSTART")>=0){e.DTSTART=P(O.substring(O.indexOf("DTSTART")+8));continue}if(O.indexOf("UID")>=0){e.uid=e.UID=O.substring(O.indexOf("UID")+4);continue}if(O.indexOf("STATUS")>=0){e.STATUS=O.substring(O.indexOf("STATUS")+7);continue}if(O=="END:VEVENT"){L.push(e);continue}}this.records=L;this.cachedrecords=this.records},loadtext:function(Y,P){if(Y==null){return}var e=P.rowDelimiter||this.rowDelimiter||"\n";var L=Y.split(e);var J=L.length;var X=Y.split("\r");if(J==1&&X.length>1){L=X;J=L.length}this.totalrecords=this.virtualmode?(P.totalrecords||J):J;this.records=new Array();this.originaldata=new Array();var U=this.records;var R=!this.pageable?P.recordstartindex:this.pagesize*this.pagenum;this.recordids=new Array();if(P.loadallrecords){R=0;J=this.totalrecords}var N=0;if(this.virtualmode){R=!this.pageable?P.recordstartindex:this.pagesize*this.pagenum;N=R;R=0;J=this.totalrecords}var V=P.datafields.length;var O=P.columnDelimiter||this.columnDelimiter;if(!O){O=(P.datatype==="tab"||P.datatype==="tsv")?"\t":","}for(var T=R;T<J;T++){var I=L[T];var W=null;if(!this.recordids[W]){if(P.id==null){W=T;this.recordids[W]=I}var K={};var H=L[T].split(O);for(var S=0;S<V;S++){if(S>=H.length){continue}var M=P.datafields[S];var Q=H[S];if(M.map&&i.isFunction(M.map)){Q=M.map(I)}if(M.type){Q=this.getvaluebytype(Q,M)}var Z=M.map||M.name||S.toString();K[Z]=Q;if(P.id!=null){if(P.id===M.name){W=Q;this.recordids[W]=I}}}if(W==null){W=T}U[N+T]=i.extend({},K);U[N+T].uid=W;this.originaldata[N+T]=i.extend({},U[T])}}this.records=U;this.cachedrecords=this.records},getvaluebytype:function(L,H){var J=L;if(L==null){return L}if(i.isArray(L)&&H.type!="array"){for(var I=0;I<L.length;I++){L[I]=this.getvaluebytype(L[I],H)}return L}if(H.type=="date"){if(L=="NaN"){L=""}else{if(L&&L instanceof Date){return L}var K=new Date(L);if(typeof L=="string"){if(H.format){var e=i.jqx.dataFormat.parsedate(L,H.format);if(e!=null){K=e}}}if(K.toString()=="NaN"||K.toString()=="Invalid Date"){if(i.jqx.dataFormat){L=i.jqx.dataFormat.tryparsedate(L)}else{L=K}}else{L=K}if(L==null){L=J}}}else{if(H.type=="float"||H.type=="number"||H.type=="decimal"){if(L=="NaN"){L=""}else{var L=parseFloat(L);if(isNaN(L)){L=J}}}else{if(H.type=="int"||H.type=="integer"){var L=parseInt(L);if(isNaN(L)){L=J}}else{if(H.type=="bool"||H.type=="boolean"){if(L!=null){if(L.toLowerCase!=undefined){if(L.toLowerCase()=="false"){L=false}else{if(L.toLowerCase()=="true"){L=true}}}}if(L==1){L=true}else{if(L==0&&L!==""){L=false}else{L=""}}}}}}return L}};i.jqx.dataFormat={};i.extend(i.jqx.dataFormat,{regexTrim:/^\s+|\s+$/g,regexInfinity:/^[+-]?infinity$/i,regexHex:/^0x[a-f0-9]+$/i,regexParseFloat:/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/,toString:Object.prototype.toString,isBoolean:function(e){return typeof e==="boolean"},isObject:function(e){return(e&&(typeof e==="object"||i.isFunction(e)))||false},isDate:function(e){return e instanceof Date},arrayIndexOf:function(J,I){if(J.indexOf){return J.indexOf(I)}for(var e=0,H=J.length;e<H;e++){if(J[e]===I){return e}}return -1},isString:function(e){return typeof e==="string"},isNumber:function(e){return typeof e==="number"&&isFinite(e)},isNull:function(e){return e===null},isUndefined:function(e){return typeof e==="undefined"},isValue:function(e){return(this.isObject(e)||this.isString(e)||this.isNumber(e)||this.isBoolean(e))},isEmpty:function(e){if(!this.isString(e)&&this.isValue(e)){return false}else{if(!this.isValue(e)){return true}}e=i.trim(e).replace(/\&nbsp\;/ig,"").replace(/\&#160\;/ig,"");return e===""},startsWith:function(H,e){return H.indexOf(e)===0},endsWith:function(H,e){return H.substr(H.length-e.length)===e},trim:function(e){return(e+"").replace(this.regexTrim,"")},isArray:function(e){return this.toString.call(e)==="[object Array]"},defaultcalendar:function(){var e={"/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",d3:"MM-dd-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff"},percentsymbol:"%",currencysymbol:"$",currencysymbolposition:"before",decimalseparator:".",thousandsseparator:","};return e},expandFormat:function(K,J){J=J||"F";var I,H=K.patterns,e=J.length;if(e===1){I=H[J];if(!I){throw"Invalid date format string '"+J+"'."}J=I}else{if(e===2&&J.charAt(0)==="%"){J=J.charAt(1)}}return J},getEra:function(I,H){if(!H){return 0}if(typeof I==="string"){return 0}var L,K=I.getTime();for(var J=0,e=H.length;J<e;J++){L=H[J].start;if(L===null||K>=L){return J}}return 0},toUpper:function(e){return e.split("\u00A0").join(" ").toUpperCase()},toUpperArray:function(e){var J=[];for(var I=0,H=e.length;I<H;I++){J[I]=this.toUpper(e[I])}return J},getEraYear:function(H,J,e,K){var I=H.getFullYear();if(!K&&J.eras){I-=J.eras[e].offset}return I},toUpper:function(e){if(e){return e.toUpperCase()}return""},getDayIndex:function(K,J,H){var e,L=K.days,I=K._upperDays;if(!I){K._upperDays=I=[this.toUpperArray(L.names),this.toUpperArray(L.namesAbbr),this.toUpperArray(L.namesShort)]}J=J.toUpperCase();if(H){e=this.arrayIndexOf(I[1],J);if(e===-1){e=this.arrayIndexOf(I[2],J)}}else{e=this.arrayIndexOf(I[0],J)}return e},getMonthIndex:function(N,M,I){var e=N.months,H=N.monthsGenitive||N.months,K=N._upperMonths,L=N._upperMonthsGen;if(!K){N._upperMonths=K=[this.toUpperArray(e.names),this.toUpperArray(e.namesAbbr)];N._upperMonthsGen=L=[this.toUpperArray(H.names),this.toUpperArray(H.namesAbbr)]}M=this.toUpper(M);var J=this.arrayIndexOf(I?K[1]:K[0],M);if(J<0){J=this.arrayIndexOf(I?L[1]:L[0],M)}return J},appendPreOrPostMatch:function(J,e){var I=0,L=false;for(var K=0,H=J.length;K<H;K++){var M=J.charAt(K);switch(M){case"'":if(L){e.push("'")}else{I++}L=false;break;case"\\":if(L){e.push("\\")}L=!L;break;default:e.push(M);L=false;break}}return I},getTokenRegExp:function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},formatlink:function(e,I){var H="";if(I&&I.target){H="target="+I.target}if(H!=""){return"<a "+H+' href="'+e+'">'+e+"</a>"}return'<a href="'+e+'">'+e+"</a>"},formatemail:function(e){return'<a href="mailto:'+e+'">'+e+"</a>"},formatNumber:function(e,I,H){return this.formatnumber(e,I,H)},formatnumber:function(T,S,O){if(O==undefined||O==null||O==""){O=this.defaultcalendar()}if(S===""||S===null){return T}if(!this.isNumber(T)){T*=1}var P;if(S.length>1){P=parseInt(S.slice(1),10)}var V={};var Q=S.charAt(0).toUpperCase();V.thousandsSeparator=O.thousandsseparator;V.decimalSeparator=O.decimalseparator;switch(Q){case"D":case"d":case"F":case"f":V.decimalPlaces=P;break;case"N":case"n":V.decimalPlaces=0;break;case"C":case"c":V.decimalPlaces=P;if(O.currencysymbolposition=="before"){V.prefix=O.currencysymbol}else{V.suffix=O.currencysymbol}break;case"P":case"p":V.suffix=O.percentsymbol;V.decimalPlaces=P;break;default:throw"Bad number format specifier: "+Q}if(this.isNumber(T)){var K=(T<0);var I=T+"";var R=(V.decimalSeparator)?V.decimalSeparator:".";var e;if(this.isNumber(V.decimalPlaces)){var L=V.decimalPlaces;var N=Math.pow(10,L);I=(T*N).toFixed(0)/N+"";e=I.lastIndexOf(".");if(L>0){if(e<0){I+=R;e=I.length-1}else{if(R!=="."){I=I.replace(".",R)}}while((I.length-1-e)<L){I+="0"}}}else{var I=T+"";e=I.lastIndexOf(".");if(e>0&&L==undefined){if(R!=="."){I=I.replace(".",R)}}}if(V.thousandsSeparator){var U=V.thousandsSeparator;e=I.lastIndexOf(R);e=(e>-1)?e:I.length;var J=I.substring(e);var H=-1;for(var M=e;M>0;M--){H++;if((H%3===0)&&(M!==e)&&(!K||(M>1))){J=U+J}J=I.charAt(M-1)+J}I=J}I=(V.prefix)?V.prefix+I:I;I=(V.suffix)?I+V.suffix:I;return I}else{return T}},tryparsedate:function(ak,al){if(al==undefined||al==null){al=this.defaultcalendar()}var P=this;if(ak==""){return null}if(ak!=null&&!ak.substring){ak=ak.toString()}if(ak!=null&&ak.substring(0,6)=="/Date("){var au=/^\/Date\((-?\d+)(\+|-)?(\d+)?\)\/$/;var ar=new Date(+ak.replace(/\/Date\((\d+)\)\//,"$1"));if(ar=="Invalid Date"){var an=ak.match(/^\/Date\((\d+)([-+]\d\d)(\d\d)\)\/$/);var ar=null;if(an){ar=new Date(1*an[1]+3600000*an[2]+60000*an[3])}}if(ar==null||ar=="Invalid Date"||isNaN(ar)){var Q=au.exec(ak);if(Q){var T=new Date(parseInt(Q[1]));if(Q[2]){var Z=parseInt(Q[3]);if(Q[2]==="-"){Z=-Z}var V=T.getUTCMinutes();T.setUTCMinutes(V-Z)}if(!isNaN(T.valueOf())){return T}}}return ar}var N=al.patterns;for(var S in N){ar=P.parsedate(ak,N[S],al);if(ar){if(S=="ISO"){var ac=P.parsedate(ak,N.ISO2,al);if(ac){return ac}}return ar}}if(ak!=null){var ac=null;var L=[":","/","-"];var ap=true;for(var O=0;O<L.length;O++){if(ak.indexOf(L[O])!=-1){ap=false}}if(ap){var av=new Number(ak);if(!isNaN(av)){return new Date(av)}}}if(i.type(ak)==="string"){var ag=P;ak=ag.trim(ak);var am=[":","/","-"," ",","];var M=function(az,ax,ay){return ay.replace(new RegExp(az,"g"),ax)};ak=M(", ",",",ak);var I="";var Y=ak;if(ak.indexOf(":")>=0){I=ak.substring(ak.indexOf(":")-2);I=ag.trim(I);Y=ak.substring(0,ak.indexOf(":")-2)}else{if(ak.toUpperCase().indexOf("AM")>=0){I=ak.substring(ak.toUpperCase().indexOf("AM")-2);I=ag.trim(I);Y=ak.substring(0,ak.toUpperCase().indexOf("AM")-2)}else{if(ak.toUpperCase().indexOf("PM")>=0){I=ak.substring(ak.toUpperCase().indexOf("PM")-2);I=ag.trim(I);Y=ak.substring(0,ak.toUpperCase().indexOf("PM")-2)}}}var e=new Date();var aj=false;if(Y){for(var aq=0;aq<am.length;aq++){if(Y.indexOf(am[aq])>=0){L=Y.split(am[aq]);break}}var H=new Array();var W=new Array();var ae=new Array();var R=null;var aw=null;for(var aq=0;aq<L.length;aq++){var O=L[aq];var ad=ag.parsedate(O,"d",al)||ag.parsedate(O,"dd",al)||ag.parsedate(O,"ddd",al)||ag.parsedate(O,"dddd",al);if(ad){if(O.length<=2){R=aq;H.push(ad.getDate());break}}}for(var aq=0;aq<L.length;aq++){var O=L[aq];var U=ag.parsedate(O,"M",al)||ag.parsedate(O,"MM",al)||ag.parsedate(O,"MMM",al)||ag.parsedate(O,"MMMM",al);if(U){if(R!=undefined&&R==aq){continue}W.push(U.getMonth());if(O.length>2){aw=aq;break}}}for(var aq=0;aq<L.length;aq++){var O=L[aq];var af=ag.parsedate(O,"yyyy",al);if(af){if(R!=undefined&&R==aq){continue}if(aw!=undefined&&aw==aq){continue}ae.push(af.getFullYear())}}var ao=new Array();for(var at=0;at<H.length;at++){for(var an=0;an<W.length;an++){for(var ai=0;ai<ae.length;ai++){var T=new Date(ae[ai],W[an],H[at]);if(ae[ai]<1970){T.setFullYear(ae[ai])}if(T.getTime()!=NaN){ao.push(T)}}}}if(ao.length>0){e=ao[0];aj=true}}if(I){var ah=I.indexOf(":")>=0?I.split(":"):I;var K=ag.parsedate(I,"h:mm tt",al)||ag.parsedate(I,"h:mm:ss tt",al)||ag.parsedate(I,"HH:mm:ss.fff",al)||ag.parsedate(I,"HH:mm:ss.ff",al)||ag.parsedate(I,"HH:mm:ss.tttt",al)||ag.parsedate(I,"HH:mm:ss",al)||ag.parsedate(I,"HH:mm",al)||ag.parsedate(I,"HH",al);var X=0,J=0,aa=0,ab=0;if(K&&K.getTime()!=NaN){X=K.getHours();J=K.getMinutes();aa=K.getSeconds();ab=K.getMilliseconds()}else{if(ah.length==1){X=parseInt(ah[0])}if(ah.length==2){X=parseInt(ah[0]);J=parseInt(ah[1])}if(ah.length==3){X=parseInt(ah[0]);J=parseInt(ah[1]);if(ah[2].indexOf(".")>=0){aa=parseInt(ah[2].toString().split(".")[0]);ab=parseInt(ah[2].toString().split(".")[1])}else{aa=parseInt(ah[2])}}if(ah.length==4){X=parseInt(ah[0]);J=parseInt(ah[1]);aa=parseInt(ah[2]);ab=parseInt(ah[3])}}if(e&&!isNaN(X)&&!isNaN(J)&&!isNaN(aa)&&!isNaN(ab)){e.setHours(X,J,aa,ab);aj=true}}if(aj){return e}}return null},getparseregexp:function(e,R){var T=e._parseRegExp;if(!T){e._parseRegExp=T={}}else{var K=T[R];if(K){return K}}var Q=this.expandFormat(e,R).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),O=["^"],H=[],N=0,J=0,W=this.getTokenRegExp(),L;while((L=W.exec(Q))!==null){var V=Q.slice(N,L.index);N=W.lastIndex;J+=this.appendPreOrPostMatch(V,O);if(J%2){O.push(L[0]);continue}var I=L[0],M=I.length,S;switch(I){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":S="(\\D+)";break;case"tt":case"t":S="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":S="(\\d{"+M+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":S="(\\d\\d?)";break;case"zzz":S="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":S="([+-]?\\d\\d?)";break;case"/":S="(\\"+e["/"]+")";break;default:throw"Invalid date format pattern '"+I+"'.";break}if(S){O.push(S)}H.push(L[0])}this.appendPreOrPostMatch(Q.slice(N),O);O.push("$");var U=O.join("").replace(/\s+/g,"\\s+"),P={regExp:U,groups:H};return T[R]=P},outOfRange:function(I,e,H){return I<e||I>H},expandYear:function(L,J){var H=new Date(),e=this.getEra(H);if(J<100){var I=L.twoDigitYearMax;I=typeof I==="string"?new Date().getFullYear()%100+parseInt(I,10):I;var K=this.getEraYear(H,L,e);J+=K-(K%100);if(J>I){J-=100}}return J},parsedate:function(ab,ai,W){if(W==undefined||W==null){W=this.defaultcalendar()}ab=this.trim(ab);var T=W,an=this.getparseregexp(T,ai),N=new RegExp(an.regExp).exec(ab);if(N===null){return null}var aj=an.groups,Z=null,R=null,am=null,al=null,S=null,L=0,ae,ad=0,ak=0,e=0,I=null,U=false;for(var af=0,ah=aj.length;af<ah;af++){var H=N[af+1];if(H){var aa=aj[af],K=aa.length,M=parseInt(H,10);switch(aa){case"dd":case"d":al=M;if(this.outOfRange(al,1,31)){return null}break;case"MMM":case"MMMM":am=this.getMonthIndex(T,H,K===3);if(this.outOfRange(am,0,11)){return null}break;case"M":case"MM":am=M-1;if(this.outOfRange(am,0,11)){return null}break;case"y":case"yy":case"yyyy":R=K<4?this.expandYear(T,M):M;if(this.outOfRange(R,0,9999)){return null}break;case"h":case"hh":L=M;if(L===12){L=0}if(this.outOfRange(L,0,11)){return null}break;case"H":case"HH":L=M;if(this.outOfRange(L,0,23)){return null}break;case"m":case"mm":ad=M;if(this.outOfRange(ad,0,59)){return null}break;case"s":case"ss":ak=M;if(this.outOfRange(ak,0,59)){return null}break;case"tt":case"t":U=T.PM&&(H===T.PM[0]||H===T.PM[1]||H===T.PM[2]);if(!U&&(!T.AM||(H!==T.AM[0]&&H!==T.AM[1]&&H!==T.AM[2]))){return null}break;case"f":case"ff":case"fff":e=M*Math.pow(10,3-K);if(this.outOfRange(e,0,999)){return null}break;case"ddd":case"dddd":S=this.getDayIndex(T,H,K===3);if(this.outOfRange(S,0,6)){return null}break;case"zzz":var J=H.split(/:/);if(J.length!==2){return null}ae=parseInt(J[0],10);if(this.outOfRange(ae,-12,13)){return null}var P=parseInt(J[1],10);if(this.outOfRange(P,0,59)){return null}I=(ae*60)+(this.startsWith(H,"-")?-P:P);break;case"z":case"zz":ae=M;if(this.outOfRange(ae,-12,13)){return null}I=ae*60;break;case"g":case"gg":var V=H;if(!V||!T.eras){return null}V=this.trim(V.toLowerCase());for(var ag=0,ac=T.eras.length;ag<ac;ag++){if(V===T.eras[ag].name.toLowerCase()){Z=ag;break}}if(Z===null){return null}break}}}var Q=new Date(),Y,O=T.convert;Y=Q.getFullYear();if(R===null){R=Y}else{if(T.eras){R+=T.eras[(Z||0)].offset}}if(am===null){am=0}if(al===null){al=1}if(O){Q=O.toGregorian(R,am,al);if(Q===null){return null}}else{Q.setFullYear(R,am,al);if(Q.getDate()!==al){return null}if(S!==null&&Q.getDay()!==S){return null}}if(U&&L<12){L+=12}Q.setHours(L,ad,ak,e);if(I!==null){var X=Q.getMinutes()-(I+Q.getTimezoneOffset());Q.setHours(Q.getHours()+parseInt(X/60,10),X%60)}return Q},cleardatescache:function(){this.datescache=new Array()},formatDate:function(e,I,H){return this.formatdate(e,I,H)},formatdate:function(Z,ad,U){if(U==undefined||U==null){U=this.defaultcalendar()}if(typeof Z==="string"){return Z}var J=Z.toString()+"_"+ad;if(this.datescache&&this.datescache[J]){if(ad.indexOf("f")==-1){return this.datescache[J]}}if(!ad||!ad.length||ad==="i"){var af;af=this.formatDate(Z,U.patterns.F,U);return af}var aa=U.eras,H=ad==="s";ad=this.expandFormat(U,ad);af=[];var M,ab=["0","00","000"],Q,R,e=/([^d]|^)(d|dd)([^d]|$)/g,ae=0,W=this.getTokenRegExp(),I;function O(ag,aj){var ai,ah=ag+"";if(aj>1&&ah.length<aj){ai=(ab[aj-2]+ah);return ai.substr(ai.length-aj,aj)}else{ai=ah}return ai}function ac(){if(Q||R){return Q}Q=e.test(ad);R=true;return Q}function K(ah,ag){if(I){return I[ag]}if(ah.getMonth!=undefined){switch(ag){case 0:return ah.getFullYear();case 1:return ah.getMonth();case 2:return ah.getDate()}}}for(;;){var N=W.lastIndex,V=W.exec(ad);var S=ad.slice(N,V?V.index:ad.length);ae+=this.appendPreOrPostMatch(S,af);if(!V){break}if(ae%2){af.push(V[0]);continue}var X=V[0],L=X.length;switch(X){case"ddd":case"dddd":var T=(L===3)?U.days.namesAbbr:U.days.names;af.push(T[Z.getDay()]);break;case"d":case"dd":Q=true;af.push(O(K(Z,2),L));break;case"MMM":case"MMMM":var Y=K(Z,1);af.push(U.months[L===3?"namesAbbr":"names"][Y]);break;case"M":case"MM":af.push(O(K(Z,1)+1,L));break;case"y":case"yy":case"yyyy":Y=this.getEraYear(Z,U,this.getEra(Z,aa),H);if(L<4){Y=Y%100}af.push(O(Y,L));break;case"h":case"hh":M=Z.getHours()%12;if(M===0){M=12}af.push(O(M,L));break;case"H":case"HH":af.push(O(Z.getHours(),L));break;case"m":case"mm":af.push(O(Z.getMinutes(),L));break;case"s":case"ss":af.push(O(Z.getSeconds(),L));break;case"t":case"tt":Y=Z.getHours()<12?(U.AM?U.AM[0]:" "):(U.PM?U.PM[0]:" ");af.push(L===1?Y.charAt(0):Y);break;case"f":case"ff":case"fff":af.push(O(Z.getMilliseconds(),3).substr(0,L));break;case"z":case"zz":M=Z.getTimezoneOffset()/60;af.push((M<=0?"+":"-")+O(Math.floor(Math.abs(M)),L));break;case"zzz":M=Z.getTimezoneOffset()/60;af.push((M<=0?"+":"-")+O(Math.floor(Math.abs(M)),2)+":"+O(Math.abs(Z.getTimezoneOffset()%60),2));break;case"g":case"gg":if(U.eras){af.push(U.eras[this.getEra(Z,aa)].name)}break;case"/":af.push(U["/"]);break;default:throw"Invalid date format pattern '"+X+"'.";break}}var P=af.join("");if(!this.datescache){this.datescache=new Array()}this.datescache[J]=P;return P}});i.jqx.data={};var l,E,p=/#.*$/,a=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,f=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,j=/^(?:GET|HEAD)$/,o=/^\/\//,k=/\?/,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,d=/([?&])_=[^&]*/,h=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,t=/\s+/,F=i.fn.load,G={},C={},q=["*/"]+["*"];try{E=location.href}catch(A){E=document.createElement("a");E.href="";E=E.href}l=h.exec(E.toLowerCase())||[];function r(e){return function(K,M){if(typeof K!=="string"){M=K;K="*"}var H,N,O,J=K.toLowerCase().split(t),I=0,L=J.length;if(i.isFunction(M)){for(;I<L;I++){H=J[I];O=/^\+/.test(H);if(O){H=H.substr(1)||"*"}N=e[H]=e[H]||[];N[O?"unshift":"push"](M)}}}}function v(H,Q,L,O,N,J){N=N||Q.dataTypes[0];J=J||{};J[N]=true;var P,M=H[N],I=0,e=M?M.length:0,K=(H===G);for(;I<e&&(K||!P);I++){P=M[I](Q,L,O);if(typeof P==="string"){if(!K||J[P]){P=undefined}else{Q.dataTypes.unshift(P);P=v(H,Q,L,O,P,J)}}}if((K||!P)&&!J["*"]){P=v(H,Q,L,O,"*",J)}return P}function u(I,J){var H,e,K=i.jqx.data.ajaxSettings.flatOptions||{};for(H in J){if(J[H]!==undefined){(K[H]?I:(e||(e={})))[H]=J[H]}}if(e){i.extend(true,I,e)}}i.extend(i.jqx.data,{ajaxSetup:function(H,e){if(e){u(H,i.jqx.data.ajaxSettings)}else{e=H;H=i.jqx.data.ajaxSettings}u(H,e);return H},ajaxSettings:{url:E,isLocal:f.test(l[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":q},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":true,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:r(G),ajaxTransport:r(C),ajax:function(M,J){if(typeof M==="object"){J=M;M=undefined}J=J||{};var P,ad,K,Y,R,V,I,X,Q=i.jqx.data.ajaxSetup({},J),af=Q.context||Q,T=af!==Q&&(af.nodeType||af instanceof i)?i(af):i.event,ae=i.Deferred(),aa=i.Callbacks("once memory"),N=Q.statusCode||{},U={},ab={},L=0,O="canceled",W={readyState:0,setRequestHeader:function(ag,ah){if(!L){var e=ag.toLowerCase();ag=ab[e]=ab[e]||ag;U[ag]=ah}return this},getAllResponseHeaders:function(){return L===2?ad:null},getResponseHeader:function(ag){var e;if(L===2){if(!K){K={};while((e=a.exec(ad))){K[e[1].toLowerCase()]=e[2]}}e=K[ag.toLowerCase()]}return e===undefined?null:e},overrideMimeType:function(e){if(!L){Q.mimeType=e}return this},abort:function(e){e=e||O;if(Y){Y.abort(e)}S(0,e);return this}};function S(ak,ag,al,ai){var e,ao,am,aj,an,ah=ag;if(L===2){return}L=2;if(R){clearTimeout(R)}Y=undefined;ad=ai||"";W.readyState=ak>0?4:0;if(al){aj=B(Q,W,al)}if(ak>=200&&ak<300||ak===304){if(Q.ifModified){an=W.getResponseHeader("Last-Modified");if(an){i.lastModified[P]=an}an=W.getResponseHeader("Etag");if(an){i.etag[P]=an}}if(ak===304){ah="notmodified";e=true}else{e=c(Q,aj);ah=e.state;ao=e.data;am=e.error;e=!am}}else{am=ah;if(!ah||ak){ah="error";if(ak<0){ak=0}}}W.status=ak;W.statusText=(ag||ah)+"";if(e){ae.resolveWith(af,[ao,ah,W])}else{ae.rejectWith(af,[W,ah,am])}W.statusCode(N);N=undefined;if(I){T.trigger("ajax"+(e?"Success":"Error"),[W,Q,e?ao:am])}aa.fireWith(af,[W,ah]);if(I){T.trigger("ajaxComplete",[W,Q]);if(!(--i.active)){i.event.trigger("ajaxStop")}}}ae.promise(W);W.success=W.done;W.error=W.fail;W.complete=aa.add;W.statusCode=function(ag){if(ag){var e;if(L<2){for(e in ag){N[e]=[N[e],ag[e]]}}else{e=ag[W.status];W.always(e)}}return this};Q.url=((M||Q.url)+"").replace(p,"").replace(o,l[1]+"//");Q.dataTypes=i.trim(Q.dataType||"*").toLowerCase().split(t);if(Q.crossDomain==null){V=h.exec(Q.url.toLowerCase());Q.crossDomain=!!(V&&(V[1]!==l[1]||V[2]!==l[2]||(V[3]||(V[1]==="http:"?80:443))!=(l[3]||(l[1]==="http:"?80:443))))}if(Q.data&&Q.processData&&typeof Q.data!=="string"){Q.data=i.param(Q.data,Q.traditional)}v(G,Q,J,W);if(L===2){return W}I=Q.global;Q.type=Q.type.toUpperCase();Q.hasContent=!j.test(Q.type);if(I&&i.active++===0){i.event.trigger("ajaxStart")}if(!Q.hasContent){if(Q.data){Q.url+=(k.test(Q.url)?"&":"?")+Q.data;delete Q.data}P=Q.url;if(Q.cache===false){var H=(new Date()).getTime(),ac=Q.url.replace(d,"$1_="+H);Q.url=ac+((ac===Q.url)?(k.test(Q.url)?"&":"?")+"_="+H:"")}}if(Q.data&&Q.hasContent&&Q.contentType!==false||J.contentType){W.setRequestHeader("Content-Type",Q.contentType)}if(Q.ifModified){P=P||Q.url;if(i.lastModified[P]){W.setRequestHeader("If-Modified-Since",i.lastModified[P])}if(i.etag[P]){W.setRequestHeader("If-None-Match",i.etag[P])}}W.setRequestHeader("Accept",Q.dataTypes[0]&&Q.accepts[Q.dataTypes[0]]?Q.accepts[Q.dataTypes[0]]+(Q.dataTypes[0]!=="*"?", "+q+"; q=0.01":""):Q.accepts["*"]);for(X in Q.headers){W.setRequestHeader(X,Q.headers[X])}if(Q.beforeSend&&(Q.beforeSend.call(af,W,Q)===false||L===2)){return W.abort()}O="abort";for(X in {success:1,error:1,complete:1}){W[X](Q[X])}Y=v(C,Q,J,W);if(!Y){S(-1,"No Transport")}else{W.readyState=1;if(I){T.trigger("ajaxSend",[W,Q])}if(Q.async&&Q.timeout>0){R=setTimeout(function(){W.abort("timeout")},Q.timeout)}try{L=1;Y.send(U,S)}catch(Z){if(L<2){S(-1,Z)}else{throw Z}}}return W},active:0,lastModified:{},etag:{}});function B(P,O,L){var K,M,J,e,H=P.contents,N=P.dataTypes,I=P.responseFields;for(M in I){if(M in L){O[I[M]]=L[M]}}while(N[0]==="*"){N.shift();if(K===undefined){K=P.mimeType||O.getResponseHeader("content-type")}}if(K){for(M in H){if(H[M]&&H[M].test(K)){N.unshift(M);break}}}if(N[0] in L){J=N[0]}else{for(M in L){if(!N[0]||P.converters[M+" "+N[0]]){J=M;break}if(!e){e=M}}J=J||e}if(J){if(J!==N[0]){N.unshift(J)}return L[J]}}function c(R,J){var P,H,N,L,O=R.dataTypes.slice(),I=O[0],Q={},K=0;if(R.dataFilter){J=R.dataFilter(J,R.dataType)}if(O[1]){for(P in R.converters){Q[P.toLowerCase()]=R.converters[P]}}for(;(N=O[++K]);){if(N!=="*"){if(I!=="*"&&I!==N){P=Q[I+" "+N]||Q["* "+N];if(!P){for(H in Q){L=H.split(" ");if(L[1]===N){P=Q[I+" "+L[0]]||Q["* "+L[0]];if(P){if(P===true){P=Q[H]}else{if(Q[H]!==true){N=L[0];O.splice(K--,0,N)}}break}}}}if(P!==true){if(P&&R["throws"]){J=P(J)}else{try{J=P(J)}catch(M){return{state:"parsererror",error:P?M:"No conversion from "+I+" to "+N}}}}}I=N}}return{state:"success",data:J}}var y=[],n=/\?/,D=/(=)\?(?=&|$)|\?\?/,z=(new Date()).getTime();i.jqx.data.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=y.pop()||(i.expando+"_"+(z++));this[e]=true;return e}});i.jqx.data.ajaxPrefilter("json jsonp",function(Q,L,P){var O,e,N,J=Q.data,H=Q.url,I=Q.jsonp!==false,M=I&&D.test(H),K=I&&!M&&typeof J==="string"&&!(Q.contentType||"").indexOf("application/x-www-form-urlencoded")&&D.test(J);if(Q.dataTypes[0]==="jsonp"||M||K){O=Q.jsonpCallback=i.isFunction(Q.jsonpCallback)?Q.jsonpCallback():Q.jsonpCallback;e=window[O];if(M){Q.url=H.replace(D,"$1"+O)}else{if(K){Q.data=J.replace(D,"$1"+O)}else{if(I){Q.url+=(n.test(H)?"&":"?")+Q.jsonp+"="+O}}}Q.converters["script json"]=function(){if(!N){i.error(O+" was not called")}return N[0]};Q.dataTypes[0]="json";window[O]=function(){N=arguments};P.always(function(){window[O]=e;if(Q[O]){Q.jsonpCallback=L.jsonpCallback;y.push(O)}if(N&&i.isFunction(e)){e(N[0])}N=e=undefined});return"script"}});i.jqx.data.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){i.globalEval(e);return e}}});i.jqx.data.ajaxPrefilter("script",function(e){if(e.cache===undefined){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});i.jqx.data.ajaxTransport("script",function(I){if(I.crossDomain){var e,H=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return{send:function(J,K){e=document.createElement("script");e.async="async";if(I.scriptCharset){e.charset=I.scriptCharset}e.src=I.url;e.onload=e.onreadystatechange=function(M,L){if(L||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(H&&e.parentNode){H.removeChild(e)}e=undefined;if(!L){K(200,"success")}}};H.insertBefore(e,H.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var w,x=window.ActiveXObject?function(){for(var e in w){w[e](0,1)}}:false,m=0;function g(){try{return new window.XMLHttpRequest()}catch(H){}}function s(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(H){}}i.jqx.data.ajaxSettings.xhr=window.ActiveXObject?function(){return !this.isLocal&&g()||s()}:g;(function(e){i.extend(i.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(i.jqx.data.ajaxSettings.xhr());if(!i.support){i.support={ajax:true}}if(i.support.ajax){i.jqx.data.ajaxTransport(function(e){if(!e.crossDomain||i.support.cors){var H;return{send:function(N,I){var L,K,M=e.xhr();if(e.username){M.open(e.type,e.url,e.async,e.username,e.password)}else{M.open(e.type,e.url,e.async)}if(e.xhrFields){for(K in e.xhrFields){M[K]=e.xhrFields[K]}}if(e.mimeType&&M.overrideMimeType){M.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!N["X-Requested-With"]){N["X-Requested-With"]="XMLHttpRequest"}try{for(K in N){M.setRequestHeader(K,N[K])}}catch(J){}M.send((e.hasContent&&e.data)||null);H=function(W,Q){var R,P,O,U,T;try{if(H&&(Q||M.readyState===4)){H=undefined;if(L){M.onreadystatechange=function(){};if(x){delete w[L]}}if(Q){if(M.readyState!==4){M.abort()}}else{R=M.status;O=M.getAllResponseHeaders();U={};T=M.responseXML;if(T&&T.documentElement){U.xml=T}try{U.text=M.responseText}catch(V){}try{P=M.statusText}catch(V){P=""}if(!R&&e.isLocal&&!e.crossDomain){R=U.text?200:404}else{if(R===1223){R=204}}}}}catch(S){if(!Q){I(-1,S)}}if(U){I(R,P,U,O)}};if(!e.async){H()}else{if(M.readyState===4){setTimeout(H,0)}else{L=++m;if(x){if(!w){w={};i(window).unload(x)}w[L]=H}M.onreadystatechange=H}}},abort:function(){if(H){H(0,1)}}}}})}i.jqx.filter=function(){this.operator="and";var M=0;var J=1;var P=["EMPTY","NOT_EMPTY","CONTAINS","CONTAINS_CASE_SENSITIVE","DOES_NOT_CONTAIN","DOES_NOT_CONTAIN_CASE_SENSITIVE","STARTS_WITH","STARTS_WITH_CASE_SENSITIVE","ENDS_WITH","ENDS_WITH_CASE_SENSITIVE","EQUAL","EQUAL_CASE_SENSITIVE","NULL","NOT_NULL"];var R=["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","NULL","NOT_NULL"];var S=["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","NULL","NOT_NULL"];var L=["EQUAL","NOT_EQUAL"];var K=new Array();var Q=new Array();this.evaluate=function(X){var V=true;for(var W=0;W<K.length;W++){var U=K[W].evaluate(X);if(W==0){V=U}else{if(Q[W]==J||Q[W]=="or"){V=V||U}else{V=V&&U}}}return V};this.getfilterscount=function(){return K.length};this.setoperatorsbyfiltertype=function(U,V){switch(U){case"numericfilter":R=V;break;case"stringfilter":P=V;break;case"datefilter":S=V;break;case"booleanfilter":L=V;break}};this.getoperatorsbyfiltertype=function(U){var V=new Array();switch(U){case"numericfilter":V=R.slice(0);break;case"stringfilter":V=P.slice(0);break;case"datefilter":V=S.slice(0);break;case"booleanfilter":V=L.slice(0);break}return V};var O=function(){var U=function(){return(((1+Math.random())*65536)|0).toString(16).substring(1)};return(U()+"-"+U()+"-"+U())};this.createfilter=function(Y,V,X,W,U,Z){if(Y==null||Y==undefined){return null}switch(Y){case"numericfilter":return new N(V,X.toUpperCase());case"stringfilter":return new T(V,X.toUpperCase());case"datefilter":return new H(V,X.toUpperCase(),U,Z);case"booleanfilter":return new I(V,X.toUpperCase());case"custom":return new e(V,X.toUpperCase(),W)}throw new Error("jqxGrid: There is no such filter type. The available filter types are: 'numericfilter', 'stringfilter', 'datefilter' and 'booleanfilter'");return null};this.getfilters=function(){var U=new Array();for(var V=0;V<K.length;V++){var W={value:K[V].filtervalue,condition:K[V].comparisonoperator,operator:Q[V],type:K[V].type};if(K[V].data){W.id=K[V].data}U[V]=W}return U};this.addfilter=function(U,V){K[K.length]=V;V.key=O();Q[Q.length]=U};this.removefilter=function(V){for(var U=0;U<K.length;U++){if(K[U].key==V.key){K.splice(U,1);Q.splice(U,1);break}}};this.getoperatorat=function(U){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}return Q[U]};this.setoperatorat=function(V,U){if(V==undefined||V==null){return null}if(V<0||V>K.length){return null}Q[U]=U};this.getfilterat=function(U){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}return K[U]};this.setfilterat=function(U,V){if(U==undefined||U==null){return null}if(U<0||U>K.length){return null}V.key=O();K[U]=V};this.clear=function(){K=new Array();Q=new Array()};var T=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type="stringfilter";this.evaluate=function(af){var ae=this.filtervalue;var al=this.comparisonoperator;if(af==null||af==undefined||af==""){if(al=="NULL"){return true}if(al=="NOT_NULL"){return false}if(al=="EQUAL"&&af==ae){return true}if(al=="NOT_EQUAL"&&af!=ae){return true}if(al!="EMPTY"){return false}else{if(af==""){return true}}}var an="";try{an=af.toString()}catch(ag){return true}var am=function(ap,ao){switch(al){case"EQUAL":return i.jqx.string.equalsIgnoreCase(ap,ao);case"EQUAL_CASE_SENSITIVE":return i.jqx.string.equals(ap,ao);case"NOT_EQUAL":return !i.jqx.string.equalsIgnoreCase(ap,ao);case"NOT_EQUAL_CASE_SENSITIVE":return !i.jqx.string.equals(ap,ao);case"CONTAINS":return i.jqx.string.containsIgnoreCase(ap,ao);case"CONTAINS_CASE_SENSITIVE":return i.jqx.string.contains(ap,ao);case"DOES_NOT_CONTAIN":return !i.jqx.string.containsIgnoreCase(ap,ao);case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return !i.jqx.string.contains(ap,ao);case"EMPTY":return ap=="";case"NOT_EMPTY":return ap!="";case"NOT_NULL":return ap!=null;case"STARTS_WITH":return i.jqx.string.startsWithIgnoreCase(ap,ao);case"ENDS_WITH":return i.jqx.string.endsWithIgnoreCase(ap,ao);case"ENDS_WITH_CASE_SENSITIVE":return i.jqx.string.endsWith(ap,ao);case"STARTS_WITH_CASE_SENSITIVE":return i.jqx.string.startsWith(ap,ao);default:return false}};var Z=new Array();if(ae&&ae.indexO&&al!=="NOT_EQUAL"){if(ae.indexOf("|")>=0||ae.indexOf(" AND ")>=0||ae.indexOf(" OR ")>=0||ae.indexOf(" and ")>=0||ae.indexOf(" or ")>=0){var aa=am(an,ae);if(aa){return aa}var ab=ae.indexOf(" AND ")>=0?ae.split(" AND "):new Array();var Y=ae.indexOf(" OR ")>=0?ae.split(" OR "):new Array();var X=ae.indexOf(" and ")>=0?ae.split(" and "):new Array();var ac=ae.indexOf(" or ")>=0?ae.split(" or "):new Array();var W=ae.indexOf("|")>=0?ae.split("|"):new Array();if(W.length>0){for(var ak=0;ak<W.length;ak++){W[ak]=i.trim(W[ak])}}var aj=ae.indexOf(" ")>=0?ae.split(" "):new Array();if(aj.length>0){for(var ak=0;ak<aj.length;ak++){aj[ak]=i.trim(aj[ak])}}ab=ab.concat(aj);ab=ab.concat(X);Y=Y.concat(W);Y=Y.concat(ac);if(ab.length>0){for(var ak=0;ak<ab.length;ak++){if(!ab[ak].indexOf(" OR ")>=0){Z.push(ab[ak])}}}if(Y.length>0){for(var ak=0;ak<Y.length;ak++){if(!Y[ak].indexOf(" AND ")>=0){Z.push(Y[ak])}}}var ai=undefined;for(var ah=0;ah<Z.length;ah++){var af=Z[ah];var aa=am(an,af);var ad=ah<ab.length?"and":"or";if(ai==undefined){ai=aa}else{if(ad=="or"){ai=ai||aa}else{ai=ai&&aa}}}return ai}}return am(an,ae)}};var I=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type="booleanfilter";this.evaluate=function(Y){var X=this.filtervalue;var W=this.comparisonoperator;if(Y==null||Y==undefined){if(W=="NULL"){return true}return false}var Z=Y;switch(W){case"EQUAL":return Z==X||Z.toString()==X.toString();case"NOT_EQUAL":return Z!=X&&Z.toString()!=X.toString();default:return false}}};var N=function(V,U){this.filtervalue=V;this.comparisonoperator=U;this.type="numericfilter";this.evaluate=function(ag){var af=this.filtervalue;var al=this.comparisonoperator;if(ag===null||ag===undefined||ag===""){if(al=="NOT_NULL"){return false}if(al=="NULL"){return true}else{switch(al){case"EQUAL":return ag==af;case"NOT_EQUAL":return ag!=af}return false}}else{if(al=="NULL"){return false}if(al=="NOT_NULL"){return true}}var an=ag;try{an=parseFloat(an)}catch(ah){if(ag.toString()!=""){return false}}var am=function(ap,ao){switch(al){case"EQUAL":return ap==ao;case"NOT_EQUAL":return ap!=ao;case"GREATER_THAN":return ap>ao;case"GREATER_THAN_OR_EQUAL":return ap>=ao;case"LESS_THAN":return ap<ao;case"LESS_THAN_OR_EQUAL":return ap<=ao;case"STARTS_WITH":return i.jqx.string.startsWithIgnoreCase(ap.toString(),ao.toString());case"ENDS_WITH":return i.jqx.string.endsWithIgnoreCase(ap.toString(),ao.toString());case"ENDS_WITH_CASE_SENSITIVE":return i.jqx.string.endsWith(ap.toString(),ao.toString());case"STARTS_WITH_CASE_SENSITIVE":return i.jqx.string.startsWith(ap.toString(),ao.toString());case"CONTAINS":return i.jqx.string.containsIgnoreCase(ap.toString(),ao.toString());case"CONTAINS_CASE_SENSITIVE":return i.jqx.string.contains(ap.toString(),ao.toString());case"DOES_NOT_CONTAIN":return !i.jqx.string.containsIgnoreCase(ap.toString(),ao.toString());case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return !i.jqx.string.contains(ap.toString(),ao.toString());default:return true}};var aa=new Array();if(af&&af.indexOf){af=af.replace("$","")}if(af&&af.indexOf&&(af.indexOf("|")>=0||af.indexOf(" AND ")>=0||af.indexOf(" OR ")>=0||af.indexOf(" and ")>=0||af.indexOf(" or ")>=0)){var ab=am(an,af);if(ab){return ab}af=af.toString();var ac=af.indexOf(" AND ")>=0?af.split(" AND "):new Array();var Z=af.indexOf(" OR ")>=0?af.split(" OR "):new Array();var Y=af.indexOf(" and ")>=0?af.split(" and "):new Array();var ad=af.indexOf(" or ")>=0?af.split(" or "):new Array();ac=ac.concat(Y);Z=Z.concat(ad);var X=af.indexOf("|")>=0?af.split("|"):new Array();if(X.length>0){for(var ak=0;ak<X.length;ak++){X[ak]=i.trim(X[ak])}}Z=Z.concat(X);if(ac.length>0){for(var ak=0;ak<ac.length;ak++){if(!ac[ak].indexOf(" OR ")>=0){aa.push(ac[ak])}}}if(Z.length>0){for(var ak=0;ak<Z.length;ak++){if(!Z[ak].indexOf(" AND ")>=0){aa.push(Z[ak])}}}var aj=undefined;for(var ai=0;ai<aa.length;ai++){var ag=aa[ai];if(ag&&ag.indexOf&&ag.indexOf("..")>=0){var W=ag.toString().split("..");if(W.length==2){ab=an>=W[0]&&an<=W[1]}}else{var ab=am(an,ag)}var ae=ai<ac.length?"and":"or";if(aj==undefined){aj=ab}else{if(ae=="or"){aj=aj||ab}else{aj=aj&&ab}}}return aj}if(af&&af.indexOf&&af.indexOf("..")>=0){aa=af.toString().split("..");if(aa.length==2){return an>=aa[0]&&an<=aa[1]}}return am(an,af)}};var H=function(X,V,W,ab){this.filtervalue=X;this.type="datefilter";var Z=this;if(W!=undefined&&ab!=undefined){var Y=i.jqx.dataFormat.parsedate(X,W,ab);if(Y!=null){this.filterdate=Y}else{var U=i.jqx.dataFormat.tryparsedate(X,ab);if(U!=null){this.filterdate=U}}}else{var aa=new Date(X);if(aa.toString()=="NaN"||aa.toString()=="Invalid Date"){this.filterdate=i.jqx.dataFormat.tryparsedate(X)}else{this.filterdate=aa}}if(!this.filterdate){var aa=new Date(X);if(aa.toString()=="NaN"||aa.toString()=="Invalid Date"){this.filterdate=i.jqx.dataFormat.tryparsedate(X)}else{this.filterdate=aa}}this.comparisonoperator=V;this.evaluate=function(ao){var an=this.filtervalue;var aw=this.comparisonoperator;if(ao==null||ao==undefined||ao==""){if(aw=="NOT_NULL"){return false}if(aw=="NULL"){return true}else{switch(aw){case"EQUAL":return ao==an;case"NOT_EQUAL":return ao!=an}return false}}else{if(aw=="NULL"){return false}if(aw=="NOT_NULL"){return true}}var ay=new Date();ay.setFullYear(1900,0,1);ay.setHours(12,0,0,0);try{var av=new Date(ao);if(av.toString()=="NaN"||av.toString()=="Invalid Date"){ao=i.jqx.dataFormat.tryparsedate(ao)}else{ao=av}ay=ao;var at=false;if(W!=undefined&&ab!=undefined){if(W.indexOf("t")>=0||W.indexOf("T")>=0||W.indexOf(":")>=0||W.indexOf("f")>=0){at=true;if(an&&an.toString().indexOf(":")==-1){var aj=i.jqx.dataFormat.tryparsedate(an.toString()+":00",ab);if(aj!=null){Z.filterdate=aj}}}}if(W!=undefined){if(W.indexOf("hh")>=0||W.indexOf("t")>=0){at=true}}if(!at){ay.setHours(0);ay.setMinutes(0);ay.setSeconds(0)}}catch(ap){if(ao&&ao.toString()!=""){return false}return false}if(Z.filterdate!=null){an=Z.filterdate}else{if(an&&an.indexOf){if(an.indexOf(":")!=-1||!isNaN(parseInt(an))){var ai=new Date(ay);ai.setHours(12,0,0,0);var ah=an.split(":");for(var au=0;au<ah.length;au++){if(au==0){ai.setHours(ah[au])}if(au==1){ai.setMinutes(ah[au])}if(au==2){ai.setSeconds(ah[au])}}an=ai}}}if(at){if(an&&an.setFullYear){if(ay&&ay.getFullYear){if(W.indexOf("d")==-1&&W.indexOf("M")==-1&&W.indexOf("y")==-1){an.setFullYear(ay.getFullYear(),ay.getMonth(),ay.getDate())}}}}var ax=function(aA,az){if(aA==null){aA=""}switch(aw){case"EQUAL":return aA.toString()==az.toString();case"NOT_EQUAL":return aA.toString()!=az.toString();case"GREATER_THAN":return aA>az;case"GREATER_THAN_OR_EQUAL":return aA>=az;case"LESS_THAN":return aA<az;case"LESS_THAN_OR_EQUAL":return aA<=az;case"STARTS_WITH":return i.jqx.string.startsWithIgnoreCase(aA.toString(),az.toString());case"ENDS_WITH":return i.jqx.string.endsWithIgnoreCase(aA.toString(),az.toString());case"ENDS_WITH_CASE_SENSITIVE":return i.jqx.string.endsWith(aA.toString(),az.toString());case"STARTS_WITH_CASE_SENSITIVE":return i.jqx.string.startsWith(aA.toString(),az.toString());case"CONTAINS":return i.jqx.string.containsIgnoreCase(aA.toString(),az.toString());case"CONTAINS_CASE_SENSITIVE":return i.jqx.string.contains(aA.toString(),az.toString());case"DOES_NOT_CONTAIN":return !i.jqx.string.containsIgnoreCase(aA.toString(),az.toString());case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return !i.jqx.string.contains(aA.toString(),az.toString());default:return true}};var ag=new Array();if(an&&an.indexOf){if(an.indexOf("|")>=0||an.indexOf(" AND ")>=0||an.indexOf(" OR ")>=0||an.indexOf(" and ")>=0||an.indexOf(" or ")>=0){var aj=ax(ay,an);if(aj){return aj}var ak=an.indexOf(" AND ")>=0?an.split(" AND "):new Array();var af=an.indexOf(" OR ")>=0?an.split(" OR "):new Array();var ae=an.indexOf(" and ")>=0?an.split(" and "):new Array();var al=an.indexOf(" or ")>=0?an.split(" or "):new Array();ak=ak.concat(ae);af=af.concat(al);var ad=an.indexOf("|")>=0?an.split("|"):new Array();if(ad.length>0){for(var au=0;au<ad.length;au++){ad[au]=i.trim(ad[au])}}af=af.concat(ad);if(ak.length>0){for(var au=0;au<ak.length;au++){if(!ak[au].indexOf(" OR ")>=0){ag.push(ak[au])}}}if(af.length>0){for(var au=0;au<af.length;au++){if(!af[au].indexOf(" AND ")>=0){ag.push(af[au])}}}var ar=undefined;for(var aq=0;aq<ag.length;aq++){var ao=ag[aq];if(ao&&ao.indexOf&&ao.indexOf("..")>=0){var ac=ao.toString().split("..");if(ac.length==2){aj=ay>=ac[0]&&ay<=ac[1]}}else{var aj=ax(ay,ao)}var am=aq<ak.length?"and":"or";if(ar==undefined){ar=aj}else{if(am=="or"){ar=ar||aj}else{ar=ar&&aj}}}return ar}}if(an&&an.indexOf&&an.indexOf("..")>=0){ag=an.toString().split("..");if(ag.length==2){return ay>=ag[0]&&ay<=ag[1]}}return ax(ay,an)}};var e=function(V,U,W){this.filtervalue=V;this.comparisonoperator=U;this.evaluate=function(Y,X){return W(this.filtervalue,Y,this.comparisonoperator)}}}})(jqxBaseFramework)})();
18
18
 
@@ -194,7 +194,2462 @@ License: https://jqwidgets.com/license/
194
194
 
195
195
  (function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxTimePicker","",{});a.extend(a.jqx._jqxTimePicker.prototype,{defineInstance:function(){var b={autoSwitchToMinutes:false,footer:false,footerTemplate:null,format:"12-hour",minuteInterval:1,selection:"hour",value:new Date(),view:"portrait",width:500,height:500,animation:true,disabled:false,readonly:false,unfocusable:false,name:"",_events:["change"]};if(this===a.jqx._jqxTimePicker.prototype){return b}a.extend(true,this,b);return b},createInstance:function(){var b=this;b._createTimePicker()},_createTimePicker:function(){this.widgetID=this.element.id;var c=this;var b='<div class="'+c.toThemeProperty("jqx-container jqx-rc-all jqx-widget")+'"><div class="'+c.toThemeProperty("jqx-header jqx-unselectable jqx-widget-header")+'"><div class="'+c.toThemeProperty("jqx-hour-minute-container")+'"><div class ="'+c.toThemeProperty("jqx-hour-container")+'"></div><div>:</div><div class="'+c.toThemeProperty("jqx-minute-container")+'"></div></div><div class="'+c.toThemeProperty("jqx-am-pm-container")+'"><div class="'+c.toThemeProperty("jqx-am-container")+'">AM</div><div class="'+c.toThemeProperty("jqx-pm-container")+'">PM</div></div></div><div class="'+c.toThemeProperty("jqx-main-container jqx-widget-content")+'"><div class="'+c.toThemeProperty("jqx-svg-container jqx-item")+'"><div class="'+c.toThemeProperty("jqx-svg-picker jqx-fill-state-normal jqx-item")+'"></div></div><div class="'+c.toThemeProperty("jqx-footer")+'"></div></div><input name="'+this.name+'" type="hidden"></div>';c.element.innerHTML=b;c.element.className+=c.toThemeProperty("jqx-time-picker jqx-rc-all jqx-widget");c.element.setAttribute("view",c.view);c._container=c.element.getElementsByTagName("div")[0];c._header=c.element.getElementsByClassName("jqx-header")[0];c._hourMinuteContainer=c.element.getElementsByClassName("jqx-hour-minute-container")[0];c._hourContainer=c.element.getElementsByClassName("jqx-hour-container")[0];c._minuteContainer=c.element.getElementsByClassName("jqx-minute-container")[0];c._ampmContainer=c.element.getElementsByClassName("jqx-am-pm-container")[0];c._amContainer=c.element.getElementsByClassName("jqx-am-container")[0];c._pmContainer=c.element.getElementsByClassName("jqx-pm-container")[0];c._main=c.element.getElementsByClassName("jqx-main-container")[0];c._svgContainer=c.element.getElementsByClassName("jqx-svg-container")[0];c._picker=c.element.getElementsByClassName("jqx-svg-picker")[0];c._footer=c.element.getElementsByClassName("jqx-footer")[0];c._hiddenInput=c.element.getElementsByTagName("input")[0];if(c.footer){c.element.setAttribute("footer","")}if(c.readonly){c.element.setAttribute("readonly","")}if(c.disabled){c.element.setAttribute("disabled","")}c.coerce=true;c.min=0;c._drawMin="0";c.startAngle=-270;c.endAngle=90;c._angleDifference=c.endAngle-c.startAngle;c.ticksVisibility="none";c._tickIntervalHandler={};c._tickIntervalHandler.labelsSize={};c._distance={majorTickDistance:0,minorTickDistance:0,labelDistance:10};c._measurements={};a(c.element).css({width:c.width,height:c.height});a.jqx.utilities.resize(c.host,function(){c._resizeHandler()});c._validateInitialPropertyValues();c._applyInitialSettings();if(!c._isVisible()){c._renderingSuspended=true;return}c._setPickerSize();a(c._picker).jqxDraw();c._draw=a(c._picker).jqxDraw("getInstance");c._getMeasurements();c._getAngleRangeCoefficient();c._renderSVG();c._setFocusable();c._addEventHandlers()},_getAngleRangeCoefficient:function(){var b=this;b._angleRangeCoefficient=b._angleDifference/b._range},_getAngleByValue:function(e,g,c){var d=this;if(g!==false&&d.logarithmicScale){e=Math.log10(e)}var b=(e-d._drawMin)*d._angleRangeCoefficient;var f;if(!d.inverted){f=d.endAngle-b}else{f=d.startAngle+b}if(c){return f}return f*Math.PI/180+Math.PI/2},_addGaugeTicksAndLabels:function(){var f=this,m=Math.max(f._tickIntervalHandler.labelsSize.minLabelSize,f._tickIntervalHandler.labelsSize.maxLabelSize),u=f._majorTicksInterval,o=f._minorTicksInterval,l={},b=f._distance,c=f._measurements.radius,v=c-b.majorTickDistance,k=c-b.minorTickDistance;var r,d,e,h,q,s;if(f.ticksVisibility!=="none"&&f._plotTicks!==false){r=function(i){f._drawTick(i,v,"major")};d=function(i){f._drawTick(f._getAngleByValue(i,true),k,"minor")}}else{r=function(){};d=function(){}}if(f.labelsVisibility!=="none"&&f._plotLabels!==false){e=function(w,i,j){f._drawLabel(w,i,b.labelDistance,j)}}else{e=function(){}}if(!f.inverted){q=f.endAngle;s=f.startAngle}else{q=f.startAngle;s=f.endAngle}h=f._getAngleByValue(f._drawMin,false);r(h);l[f._drawMin]=true;e(h,f.min,false);var t=f._drawMin-f._drawMin%u,g;if(f._drawMin>=0){t+=u}for(var p=t;p>=f._drawMin;p=p-o){g=p}h=f._getAngleByValue(t,false);r(h);l[t]=true;if(2*Math.PI*f._measurements.innerRadius*(this._getAngleDifference(q,f._getAngleByValue(t,false,true))/360)>m){e(h,f._getActualValue(t),t<f._drawMax)}var p;for(p=t+u;p<f._drawMax-u;p+=u){h=f._getAngleByValue(p,false);r(h);l[p]=true;e(h,f._getActualValue(p),true)}if(l[p]===undefined&&p<=f._drawMax){h=f._getAngleByValue(p,false);r(h);l[p]=true;if(2*Math.PI*f._measurements.innerRadius*(this._getAngleDifference(s,f._getAngleByValue(p,false,true))/360)>=m){e(h,f._getActualValue(p),true)}if(f._normalizedStartAngle!==f.endAngle){h=f._getAngleByValue(f._drawMax,false);r(h);l[f._drawMax]=true;if(2*Math.PI*f._measurements.innerRadius*(this._getAngleDifference(s,q)/360)>=m){e(h,f.max,false)}}}if(!f.logarithmicScale){for(var n=g;n<f._drawMax;n+=o){if(l[n]){continue}d(n)}}else{this.drawGaugeLogarithmicScaleMinorTicks(l,u,d)}},_getAngleDifference:function(d,c){var b=Math.abs(c-d)%360,e=b>180?360-b:b;return e},_getActualValue:function(b){if(!this.logarithmicScale){return b}else{return Math.pow(10,b)}},_computeArrowBodyPoints:function(m,g,d,f){var l=this,n=Math.sin(g),p=Math.cos(g),k=m-d*p+f*n,e=m+d*n+f*p,j=m+d*p+f*n,c=m-d*n+f*p,i=m+d*p,b=m-d*n,h=m-d*p,q=m+d*n,o="M "+i+","+b+" L "+h+","+q+" L "+k+","+e+" "+j+","+c;l._headCenter={x:(k+j)/2,y:(e+c)/2};return o},_documentMoveHandler:function(c){var b=this;if(b._dragging){b._changeSelection(c,true)}},_documentUpHandler:function(){var b=this;if(b._dragging){b._inInnerCircle=false;b._dragging=false;if(b.autoSwitchToMinutes&&b.selection==="hour"){if(b.animation){a(b._picker).addClass("animate");setTimeout(function(){b.selection="minute";b._changeToMinuteSelection()},250);setTimeout(function(){a(b._picker).removeClass("animate")},550)}else{b.selection="minute";b._changeToMinuteSelection()}}}},_drawArrow:function(e,m,f){var h=this,g=h.selection==="hour",j=h.format==="12-hour";var i=h._oldTimePart;delete h._oldTimePart;if(m===undefined){if(g){m=h.value.getHours();if(j&&m>12){m-=12}}else{m=h.value.getMinutes()}}if(i===undefined||f||!h.animation){h._drawArrowSVG(e,m);return}if(g&&!j){h._animate24HourView(i,m);return}var d,l;if(g){d=0.2;l=12;m=m%l;i=i%l}else{d=1;l=60}var c=m-i,k=i-m;if(c<0){c+=l}if(k<0){k+=l}if(k<c){d*=-1}function b(){i+=d;i=parseFloat((i%l).toFixed(1));if(i<0){i+=l}h._drawArrowSVG(e,i);if(i!==m%l){h._animationFrameId=requestAnimationFrame(b)}}h._animationFrameId=requestAnimationFrame(b)},_animate24HourView:function(i,l){var h=this;var e=0.2;h._inInnerCircle=false;var j=i===0||i>12,f=l===0||l>12;if(j!==f){if(j){i=Math.abs(i-12)}else{i=(i+12)%24}h._inInnerCircle=f;h._drawArrowSVG(true,i);if(i===l){return}}else{h._inInnerCircle=f}var d=i,g=l;if(h._inInnerCircle){if(g===0&&d<18){g=12}else{if(d===0&&g<18){d=12}}}var c=g-d,k=d-g;if(c<0){c+=12}if(k<0){k+=12}if(k<c){e*=-1}function b(m){h._inInnerCircle=m;if(m){i=parseFloat((i+e).toFixed(1));if(i<0){i+=24}else{if(i<1){i=i+12}}if(i===12||i===24){i=0}}else{i+=e;if(i!==12){i=parseFloat((i%12).toFixed(1))}if(i<=0){i+=12}}h._drawArrowSVG(true,i);if(i!==l){h._animationFrameId=requestAnimationFrame(function(){b(m)})}else{h._inInnerCircle=false}}h._animationFrameId=requestAnimationFrame(function(){b(h._inInnerCircle)})},_drawArrowSVG:function(g,e){var c=this,b=c._measurements,f=c._getAngleByValue(e);var d;if(!c._inInnerCircle){d=c._computeArrowBodyPoints(b.radius,f,1,b.innerRadius-c._largestLabelSize/2)}else{d=c._computeArrowBodyPoints(b.radius,f,1,b.innerRadius-c._largestLabelSize/2-45)}if(g){c._arrow.setAttribute("d",d);c._head.setAttribute("cx",c._headCenter.x);c._head.setAttribute("cy",c._headCenter.y);c._head.setAttribute("r",c._largestLabelSize);c._headRect=c._head.getBoundingClientRect();if(e%1===0){c._highlightLabel(e)}}else{c._arrow=c._draw.path(d,{"class":c.toThemeProperty("jqx-needle jqx-widget-header")});c._head=c._draw.circle(c._headCenter.x,c._headCenter.y,c._largestLabelSize,{"class":c.toThemeProperty("jqx-needle-central-circle jqx-widget-header")});c._headRect=c._head.getBoundingClientRect()}},_drawLabel:function(f,m,d){var g=this,e=g._measurements,c=e.radius,h={"class":g.toThemeProperty("jqx-label jqx-unselectable jqx-item"),"font-size":e.fontSize,"font-family":e.fontFamily,"font-weight":e.fontWeight,"font-style":e.fontStyle};if(g.selection==="hour"){if(g._plotInnerCircle){if(m>0){m+=12}else{m="00"}}else{if(m===0){m=12}}}else{if(m.toString().length===1){m="0"+m}}var b=g._draw.measureText(m,0,h),l=c-d-g._largestLabelSize/2,k=c+l*Math.sin(f),i=c+l*Math.cos(f),j=g._draw.text(m,Math.round(k)-b.width/2,Math.round(i)-b.height/2,b.width,b.height,0,h);j.setAttribute("value",parseFloat(m))},_getCenterCoordinates:function(){var c=this,f=c._picker.getBoundingClientRect(),b=c._measurements.radius,e=document.body.scrollLeft||document.documentElement.scrollLeft,d=document.body.scrollTop||document.documentElement.scrollTop;return{x:f.left+e+b,y:f.top+d+b}},_headerClickHandler:function(d){var c=this;if(c.disabled||c.readonly){return}switch(d.target){case c._hourContainer:if(c.selection!=="hour"){c.selection="hour";c._changeToHourSelection()}break;case c._minuteContainer:if(c.selection!=="minute"){c.selection="minute";c._changeToMinuteSelection()}break;case c._amContainer:if(!a(c._amContainer).hasClass("jqx-selected")){c._selectAmPm("am");var b=new Date(c.value.getTime());c.value.setHours(c.value.getHours()-12);c._hiddenInput.value=c.value;c._raiseEvent("0",{value:c.value,oldValue:b})}break;case c._pmContainer:if(!a(c._pmContainer).hasClass("jqx-selected")){c._selectAmPm("pm");var b=new Date(c.value.getTime());c.value.setHours(c.value.getHours()+12);c._hiddenInput.value=c.value;c._raiseEvent("0",{value:c.value,oldValue:b})}break}},_highlightLabel:function(f){var c=this;if(c._highlightedLabel){if(parseFloat(c._highlightedLabel.getAttribute("value"))===f){return}var h=function(l,j){var k=new RegExp("\\s?"+j+"\\s?","gm");var i=l.replace(k,"");return i};if(c._highlightedLabel.className.baseVal.indexOf(c.toThemeProperty("jqx-selected"))>-1){var e=c._highlightedLabel.className.baseVal;var b=h(e,c.toThemeProperty("jqx-selected"));c._highlightedLabel.className.baseVal=b}c._highlightedLabel=undefined}var g;if(c.selection==="hour"){if(f===undefined){f=c.value.getHours()}if(c.format==="12-hour"){if(f===0){f=12}else{if(f>12){f-=12}}}g=f}else{if(f===undefined){f=c.value.getMinutes()}g=Math.round(f/5)*5;if(g===60){g=0}}var d=c._picker.querySelector('.jqx-label[value="'+g+'"]');if(d&&(g===f||c._overlapsLabel(d))){c._highlightedLabel=d;d.className.baseVal+=" "+c.toThemeProperty("jqx-selected")}},_isVisible:function(){var b=this.host[0];return !!(b.offsetWidth||b.offsetHeight||b.getClientRects().length)},_getMeasurements:function(){var h=this,c=h._measurements,k=document.createElement("div");var i,g,j,b,e,f;k.className="jqx-label";k.style.position="absolute";k.style.visibility="hidden";h._svgContainer.appendChild(k);if(h.selection==="hour"){i="1";g="23";h.max=12;h._drawMax="12";h._range=12}else{i="00";g="55";h.max=60;h._drawMax="60";h._range=60}k.innerHTML=i;j=k.offsetWidth;e=k.offsetHeight;k.innerHTML=g;b=k.offsetWidth;f=k.offsetHeight;h._largestLabelSize=Math.max(j,e,b,f);h._tickIntervalHandler.labelsSize.minLabelSize=e;h._tickIntervalHandler.labelsSize.maxLabelSize=f;var d=window.getComputedStyle(k);c.fontSize=d.fontSize;c.fontFamily=d.fontFamily;c.fontWeight=d.fontWeight;c.fontStyle=d.fontStyle;h._svgContainer.removeChild(k)},_renderHours:function(){var b=this;b._highlightedLabel=undefined;b._majorTicksInterval=1;b._addGaugeTicksAndLabels();if(b.format==="24-hour"){b._plotInnerCircle=true;b._distance.labelDistance=55;b._addGaugeTicksAndLabels();b._plotInnerCircle=false;b._distance.labelDistance=10}},_renderMinutes:function(){var b=this;b._highlightedLabel=undefined;b._majorTicksInterval=5;b._addGaugeTicksAndLabels()},_renderSVG:function(){var c=this;if(!c._isVisible()||c._renderingSuspended){c._renderingSuspended=true;return}c._centralCircle=c._draw.circle(c._measurements.radius,c._measurements.radius,4,{"class":c.toThemeProperty("jqx-needle-central-circle jqx-widget-header")});if(c.selection==="hour"&&c.format==="24-hour"&&(c.value.getHours()===0||c.value.getHours()>12)){c._inInnerCircle=true}c._drawArrow(false);c._inInnerCircle=false;if(c.selection==="hour"){c.interval=1;c._renderHours();var b=c.value.getHours();if(c.format==="12-hour"&&b>12){b-=12}c._highlightLabel(b)}else{c.interval=c.minuteInterval;c._renderMinutes();c._highlightLabel(c.value.getMinutes())}},_selectAmPm:function(c){var b=this;if(c==="am"){b._ampm="am";a(b._pmContainer).removeClass(b.toThemeProperty("jqx-selected"));a(b._amContainer).addClass(b.toThemeProperty("jqx-selected"))}else{b._ampm="pm";a(b._amContainer).removeClass(b.toThemeProperty("jqx-selected"));a(b._pmContainer).addClass(b.toThemeProperty("jqx-selected"))}},_setFocusable:function(){var c=this;if(c.disabled||c.unfocusable){c._hourContainer.removeAttribute("tabindex");c._minuteContainer.removeAttribute("tabindex");c._amContainer.removeAttribute("tabindex");c._pmContainer.removeAttribute("tabindex");c._picker.removeAttribute("tabindex");return}var b=c.tabIndex>0?c.tabIndex:0;c._hourContainer.tabIndex=b;c._minuteContainer.tabIndex=b;c._amContainer.tabIndex=b;c._pmContainer.tabIndex=b;c._picker.tabIndex=b},_setPickerSize:function(){var e=this,d=e._svgContainer.offsetWidth,c=e._svgContainer.offsetHeight;var b=Math.min(d,c)*0.9;if(e._pickerSize!==undefined&&e._pickerSize!==b){e._sizeChanged=true}else{e._sizeChanged=false}e._pickerSize=b;e._measurements.radius=b/2;e._measurements.innerRadius=e._measurements.radius-10;b+="px";e._picker.style.width=b;e._picker.style.height=b},refresh:function(c){var b=this;if(c!==true){b.render()}},setHours:function(b){var c=this;if(b==undefined||(isNaN(b)&&Object.keys(b).length==0)){throw"The setHours method required a parameter. Its type should be number."}if(b===24){b=0}else{b=Math.max(0,Math.min(b,23))}if(b<12){c._selectAmPm("am")}else{c._selectAmPm("pm")}if(c.format==="12-hour"){if(b===0){b=12}else{if(b>12){b-=12}}}c._updateHours(b,arguments[1]);if(c.selection==="hour"){c._inInnerCircle=c.format==="24-hour"&&(b===0||b>12);c._drawArrow(true,b,arguments[2]);if(!c.animation){c._inInnerCircle=false}}},setMinutes:function(b){var c=this;if(b==undefined||(isNaN(b)&&Object.keys(b).length==0)){throw"The setMinutes method required a parameter. Its type should be number."}if(b===60){b=0}else{b=Math.max(0,Math.min(b,59))}c._updateMinutes(b);if(c.selection==="minute"){c._drawArrow(true,b,arguments[1])}},propertyChangedHandler:function(d,j,b,i){var f=d;if(b!=i||i instanceof Object){switch(j){case"disabled":if(f.disabled){f.host.addClass(f.toThemeProperty("jqx-fill-state-disabled"));f.element.setAttribute("disabled","")}else{f.host.removeClass(f.toThemeProperty("jqx-fill-state-disabled"));f.element.removeAttribute("disabled")}f._setFocusable();break;case"footer":case"view":f._resizeHandler();break;case"footerTemplate":f._validateFooterTemplate();break;case"format":var h=f.value.getHours();if(i==="12-hour"){f._ampmContainer.removeClass("jqx-hidden");if(f.value.getHours()<12){f._selectAmPm("am")}else{f._selectAmPm("pm")}if(h===0){h=12}else{if(h>12){h-=12}}}else{f._ampmContainer.addClass("jqx-hidden")}f._hourContainer.innerHTML=h;if(f.selection==="hour"){f._draw.clear();f._renderSVG()}break;case"minuteInterval":var c=Math.max(1,Math.min(i,60));if(c!==i){f.minuteInterval=c}if(f.selection==="minute"){f.interval=c}break;case"selection":if(i==="hour"){f._changeToHourSelection()}else{f._changeToMinuteSelection()}break;case"value":f._oldValue=b;f._validateValue();var g=f.value.getHours()===b.getHours(),e=f.value.getMinutes()===b.getMinutes();if(!(g&&e)){if(e){f.setHours(f.value.getHours())}else{if(!g){f.setHours(f.value.getHours(),true)}f.setMinutes(f.value.getMinutes())}}delete f._oldValue;break}}},_applyInitialSettings:function(){var d=this,e=d.value;var b,c;b=e.getHours();c=e.getMinutes();if(d.format==="12-hour"){if(b<12){d._ampm="am";d._amContainer.className+=" "+d.toThemeProperty("jqx-selected");if(b===0){b=12}}else{d._ampm="pm";d._pmContainer.className+=" "+d.toThemeProperty("jqx-selected");if(b>12){b-=12}}}else{d._ampmContainer.className+=" "+d.toThemeProperty("jqx-hidden")}c=c.toString();if(c.length===1){c="0"+c}d._hourContainer.innerHTML=b;d._minuteContainer.innerHTML=c;if(d.selection==="hour"){d._hourContainer.className+=" "+d.toThemeProperty("jqx-selected")}else{d._minuteContainer.className+=" "+d.toThemeProperty("jqx-selected")}},_getValueByAngle:function(g,c){var d=this;var f,b,e;if(!d.inverted){f=d.endAngle;b=g}else{f=g;b=d._normalizedStartAngle}while(f<b){f+=360}e=((f-b)/d._angleDifference)*d._range+parseFloat(d._drawMin);if(d.logarithmicScale){if(d.customInterval){return parseFloat(Math.pow(10,this.getCoercedValue(e,true)).toFixed(12))}e=Math.pow(10,e)}if(c&&!d.coerce){return Math.round(e)}return this._getCoercedValue(e,false)},_getCoercedValue:function(m,h,k){var g=this;if(!g.coerce){return m}var b=!g.logarithmicScale,l,f;l=parseFloat(g.min);f=parseFloat(g.max);var p=m-l,o=p%parseFloat(g.interval),j=12;if(o===0){return m}var e=parseFloat((p-o).toFixed(j)),d=e+parseFloat(g.interval);if(((g.max-g.min)<=parseFloat(g.interval))&&b){var c=l,i=f;return m>=c+(i-c)/2?i:c}if(Math.abs(p-e)<Math.abs(p-d)){return e+l}else{var n=d+l;return n>f?e+l:n}},_changeSelection:function(c,g){var h=this,j=c.pageX,i=c.pageY,b=h._getCenterCoordinates(),e=Math.sqrt(Math.pow(b.x-j,2)+Math.pow(b.y-i,2));h._measurements.center=b;if(c.type==="mousedown"){if(e>h._measurements.radius){c.stopPropagation();return}else{h._dragging=true}}if(h.format==="24-hour"&&h.selection==="hour"&&e<h._measurements.radius-50){h._inInnerCircle=true}else{h._inInnerCircle=false}var k=Math.atan2(i-b.y,j-b.x);var f=-1*k*180/Math.PI;if(f<0){f+=360}h._angle=f;var d=h._getValueByAngle(h._angle);if(h.selection==="hour"){if(h.format==="24-hour"){if(h._inInnerCircle){if(d!==0&&d!==12){d+=12}else{d=0}}else{if(d===0){d=12}}}else{if(d===0){d=12}}h._updateHours(d)}else{if(d===60){d=0}h._updateMinutes(d)}if(h._oldTimePart===undefined){return}cancelAnimationFrame(h._animationFrameId);h._drawArrow(true,d,g)},_changeToHourSelection:function(){var c=this,b=c._centralCircle.parentElement||c._centralCircle.parentNode;cancelAnimationFrame(c._animationFrameId);c.interval=1;a(c._hourContainer).addClass(c.toThemeProperty("jqx-selected"));a(c._minuteContainer).removeClass(c.toThemeProperty("jqx-selected"));b.removeChild(c._centralCircle);b.removeChild(c._arrow);b.removeChild(c._head);c._getMeasurements();c._getAngleRangeCoefficient();c._draw.clear();b.appendChild(c._centralCircle);b.appendChild(c._arrow);b.appendChild(c._head);c._renderHours();if(c.format==="24-hour"&&(c.value.getHours()===0||c.value.getHours()>12)){c._inInnerCircle=true}c._drawArrow(true,undefined,true);c._inInnerCircle=false},_changeToMinuteSelection:function(){var c=this,b=c._centralCircle.parentElement||c._centralCircle.parentNode;c._inInnerCircle=false;cancelAnimationFrame(c._animationFrameId);c.interval=c.minuteInterval;a(c._hourContainer).removeClass(c.toThemeProperty("jqx-selected"));a(c._minuteContainer).addClass(c.toThemeProperty("jqx-selected"));b.removeChild(c._centralCircle);b.removeChild(c._arrow);b.removeChild(c._head);c._getMeasurements();c._getAngleRangeCoefficient();c._draw.clear();b.appendChild(c._centralCircle);b.appendChild(c._arrow);b.appendChild(c._head);c._renderMinutes();c._drawArrow(true,undefined,true)},_overlapsLabel:function(d){var f=this,c=d.getBoundingClientRect(),e=f._headRect,b=!(c.right-10<e.left||c.left+10>e.right||c.bottom-10<e.top||c.top+10>e.bottom);return b},_parseDateString:function(e,g){var d=e.indexOf("Date("),f=e.indexOf(")");var b=e;if(d!==-1&&f!==-1){b=e.slice(d+5,f);b=b.replace(/'/g,"").replace(/"/g,"").replace(/^\s+|\s+$|\s+(?=\s)/g,"");if(b.trim()===""){return new Date()}if(new RegExp(/(^(\d+)(\s*,\s*\d+)+$)/g).test(b)){b=b.replace(/\s/g,"");b=b.split(",");b.map(function(i,h){b[h]=parseInt(i)});b.unshift(null);b=new (Function.prototype.bind.apply(Date,b));return b}}if(b.trim()===""){return g}if(!isNaN(b)){return new Date(parseInt(b,10))}try{b=new Date(b)}catch(c){b=g}if(isNaN(b.getTime())){return g}return b},_updateHours:function(b,c){var f=this;var e=b;if(f.format==="12-hour"){if(f._ampm==="am"){if(e===12){e=0}}else{if(e<12){e+=12}}}else{e=b}var d=f._oldValue!==undefined?f._oldValue:new Date(f.value.getTime()),g=d.getHours();if(e===g){delete f._oldTimePart;return}f._oldTimePart=g;if(f._oldValue===undefined){f.value.setHours(e)}f._hourContainer.innerHTML=b;if(c!==true){f._hiddenInput.value=f.value;f._raiseEvent("0",{value:f.value,oldValue:d})}},_updateMinutes:function(d){var e=this,c=e._oldValue!==undefined?e._oldValue:new Date(e.value.getTime()),b=c.getMinutes();if(d===b){delete e._oldTimePart;return}e._oldTimePart=b;if(e._oldValue===undefined){e.value.setMinutes(d)}d=d.toString();if(d.length===1){d="0"+d}e._minuteContainer.innerHTML=d;e._hiddenInput.value=e.value;e._raiseEvent("0",{value:e.value,oldValue:c})},_validateFooterTemplate:function(){var d=this,b=d.footerTemplate;var f=window.navigator.userAgent;var c=f.indexOf("MSIE")>-1||f.indexOf("NET")>-1;if(b===null||c){d._footer.innerHTML="";return}var e;if(b instanceof HTMLTemplateElement){e=b}else{if(typeof b==="string"){e=document.getElementById(b);if(!(e instanceof HTMLTemplateElement)){e=undefined}}}if(e===undefined){d.footerTemplate=null;d._footer.innerHTML="";return}var g=document.importNode(e.content,true);d._footer.appendChild(g)},_validateInitialPropertyValues:function(){var b=this;b._validateFooterTemplate();b.minuteInterval=Math.max(1,Math.min(b.minuteInterval,60));b._validateValue()},_validateValue:function(){var c=this,d=c.value,e=c._oldValue!==undefined?this._oldValue:new Date();if(d instanceof Date){return}else{if(typeof d==="string"){if(/^\d{1,2}:\d{1,2}$/.test(d)){var b=d.split(":");c.value=new Date(e.getFullYear(),e.getMonth(),e.getDate(),parseFloat(b[0]),parseFloat(b[1]));return}c.value=c._parseDateString(d,e)}else{c.value=e}}},destroy:function(){var b=this;b._removeEventHandlers();b._draw.clear();b.host.removeData();b.host.removeClass();b.host.remove();delete b.element;delete b.host},_keydownHandler:function(h){var g=this;if(g._dragging){return}var f=g.enableShadowDOM?(g.shadowRoot.activeElement||document.activeElement):document.activeElement,e=h.key;if(g._header.contains(f)&&(e==="Enter"||e===" ")){h.preventDefault();g._headerClickHandler({target:f})}else{if(f===g._picker&&!h.altKey){var c;if(e==="ArrowRight"||e==="ArrowUp"){c=1}else{if(e==="ArrowLeft"||e==="ArrowDown"){c=-1}}if(c){h.preventDefault();if(g.selection==="hour"){var b=g.value.getHours();if(b===0&&c===-1){b=23}else{if(b===23&&c===1){b=0}else{b+=c}}if(g.format==="12-hour"){if(b>=12&&a(g._amContainer).hasClass("jqx-selected")){b-=12}else{if(b<12&&a(g._pmContainer).hasClass("jqx-selected")){b+=12}}}g.setHours(b,undefined,true)}else{var d=g.value.getMinutes();c*=g.minuteInterval;if(d+c>=60){d=0}else{if(d<c*-1){if(60%c===0){d=60+c}else{d=60-(60%c)}}else{d+=c}}g.setMinutes(d,true)}}}}},_resizeHandler:function(){var c=this;var b=false;if(!c._isVisible()){c._renderingSuspended=true;return}else{c._renderingSuspended=false;b=true;c._getMeasurements();c._getAngleRangeCoefficient()}c._setPickerSize();if(c._sizeChanged||b){c._draw.clear();c._renderSVG();c._sizeChanged=false;c._draw.refresh()}else{c._headRect=c._head.getBoundingClientRect();c._highlightLabel()}},_pickerDownHandler:function(c){var b=this;if(b.disabled||b.readonly||!jqx.mobile.isTouchDevice()&&c.which!==1){return}b._changeSelection(c)},_pickerMoveHandler:function(b){},_addEventHandlers:function(){var b=this;b.addHandler(a(b.element),"keydown.timepicker"+b.widgetID,b._keydownHandler.bind(this));b.addHandler(a(b.element),"resize.timepicker"+b.widgetID,b._resizeHandler.bind(this));b.addHandler(a(b._header),"click.timepicker"+b.widgetID,b._headerClickHandler.bind(this));b.addHandler(a(b._picker),"mousedown.timepicker"+b.widgetID,b._pickerDownHandler.bind(this));b.addHandler(a(document),"mousemove.timepicker"+b.widgetID,b._documentMoveHandler.bind(this));b.addHandler(a(document),"mouseup.timepicker"+b.widgetID,b._documentUpHandler.bind(this))},_removeEventHandlers:function(){var b=this;b.removeHandler(a(b.element),"keydown.timepicker"+b.widgetID);b.removeHandler(a(b.element),"resize.timepicker"+b.widgetID);b.removeHandler(a(b._header),"click.timepicker"+b.widgetID);b.removeHandler(a(b._picker),"mousedown.timepicker"+b.widgetID);b.removeHandler(a(b._picker),"mousemove.timepicker"+b.widgetID);b.removeHandler(a(document),"mousemove.timepicker"+b.widgetID);b.removeHandler(a(document),"mouseup.timepicker"+b.widgetID)},_raiseEvent:function(g,e){var c=this._events[g];var f=new a.Event(c);f.owner=this;f.args=e;var b;try{b=this.host.trigger(f)}catch(d){}return b},_getEvent:function(c){var b=this;if(b._isTouchDevice){return b._touchEvents[c]}else{return c}}})})(jqxBaseFramework)})();
196
196
 
197
- function _typeof(c){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){d=function d(a){return typeof a}}else{d=function d(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a}}return d(c)}function _get(g,h,e){if(typeof Reflect!=="undefined"&&Reflect.get){f=Reflect.get}else{f=function f(b,c,d){var j=_superPropBase(b,c);if(!j){return}var a=Object.getOwnPropertyDescriptor(j,c);if(a.get){return a.get.call(d)}return a.value}}return f(g,h,e||g)}function _superPropBase(d,c){while(!Object.prototype.hasOwnProperty.call(d,c)){d=_getPrototypeOf(d);if(d===null){break}}return d}function _classCallCheck(d,c){if(!(d instanceof c)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(g,e){for(var f=0;f<e.length;f++){var h=e[f];h.enumerable=h.enumerable||false;h.configurable=true;if("value" in h){h.writable=true}Object.defineProperty(g,h.key,h)}}function _createClass(f,e,d){if(e){_defineProperties(f.prototype,e)}if(d){_defineProperties(f,d)}return f}function _inherits(c,d){if(typeof d!=="function"&&d!==null){throw new TypeError("Super expression must either be null or a function")}c.prototype=Object.create(d&&d.prototype,{constructor:{value:c,writable:true,configurable:true}});if(d){_setPrototypeOf(c,d)}}function _createSuper(d){var f=_isNativeReflectConstruct();return function e(){var b=_getPrototypeOf(d),c;if(f){var a=_getPrototypeOf(this).constructor;c=Reflect.construct(b,arguments,a)}else{c=b.apply(this,arguments)}return _possibleConstructorReturn(this,c)}}function _possibleConstructorReturn(d,c){if(c&&(_typeof(c)==="object"||typeof c==="function")){return c}return _assertThisInitialized(d)}function _assertThisInitialized(b){if(b===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b}function _wrapNativeSuper(e){var f=typeof Map==="function"?new Map():undefined;d=function d(b){if(b===null||!_isNativeFunction(b)){return b}if(typeof b!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof f!=="undefined"){if(f.has(b)){return f.get(b)}f.set(b,a)}function a(){return _construct(b,arguments,_getPrototypeOf(this).constructor)}a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(a,b)};return d(e)}function _construct(g,h,e){if(_isNativeReflectConstruct()){f=Reflect.construct}else{f=function f(b,c,d){var k=[null];k.push.apply(k,c);var a=Function.bind.apply(b,k);var l=new a();if(d){_setPrototypeOf(l,d.prototype)}return l}}return f.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct){return false}if(Reflect.construct.sham){return false}if(typeof Proxy==="function"){return true}try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(b){return false}}function _isNativeFunction(b){return Function.toString.call(b).indexOf("[native code]")!==-1}function _setPrototypeOf(d,e){f=Object.setPrototypeOf||function f(a,b){a.__proto__=b;return a};return f(d,e)}function _getPrototypeOf(c){d=Object.setPrototypeOf?Object.getPrototypeOf:function d(a){return a.__proto__||Object.getPrototypeOf(a)};return d(c)}if(!window.JQX){window.JQX={Utilities:{Core:{isMobile:function isMobile(){var d=/(iphone|ipod|ipad|android|iemobile|blackberry|bada)/.test(window.navigator.userAgent.toLowerCase());var c=function c(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend" in document};if(!d){return c()}return d}}}}}var LayoutItem=function(p){_inherits(k,p);var l=_createSuper(k);function k(){var a;_classCallCheck(this,k);a=l.call(this);a._properties={min:50,label:"Item",modifiers:["resize","drag","close"],size:null};return a}_createClass(k,[{key:"_setProperty",value:function q(d,a){var b=this;if(b._properties[d]===a){return}b._properties[d]=a;b._updating=true;if(d==="disabled"||d==="modifiers"){if(a){b.setAttribute(d,a)}else{b.removeAttribute(d)}}else{if(a===null){b.removeAttribute(d)}else{b.setAttribute(d,a)}}if(!b.isCompleted){return}var c=b.closest("jqx-layout");if(c){if(!c._resizeDetails&&!c._updating&&c.isRendered){c.refresh()}}b._updating=false}},{key:"label",get:function s(){return this._properties.label},set:function m(a){this._setProperty("label",a)}},{key:"modifiers",get:function s(){return this._properties.modifiers},set:function m(a){this._setProperty("modifiers",a)}},{key:"min",get:function s(){return this._properties.min},set:function m(a){this._setProperty("min",a)}},{key:"size",get:function s(){return this._properties.size},set:function m(a){if(a!==null){if(typeof a==="string"){this._setProperty("size",a)}else{this._setProperty("size",Math.max(this.min,a))}}else{this._setProperty("size",a)}}},{key:"attributeChangedCallback",value:function o(b,c,d){var a=this;if(c===d){return}if(!a.isCompleted){return}if(b==="size"){if(!a._updating){if(d===null){this[b]=null;return}a[b]=Math.max(a.min,parseInt(d))}}else{a[b]=d}}},{key:"connectedCallback",value:function n(){if(!this.isCompleted){this.render()}}},{key:"whenRendered",value:function r(a){var b=this;if(b.isRendered){a();return}if(!b.whenRenderedCallbacks){b.whenRenderedCallbacks=[]}b.whenRenderedCallbacks.push(a)}},{key:"render",value:function t(){var d=this;if(!d.hasAttribute("data-id")){d.setAttribute("data-id","id"+Math.random().toString(16).slice(2))}if(!d.hasAttribute("label")){d.setAttribute("label",d.label)}if(!d.hasAttribute("min")){d.setAttribute("min",d.min)}if(!d.hasAttribute("label")){d.setAttribute("label",d.label)}if(!d.hasAttribute("modifiers")){d.setAttribute("modifiers",d.modifiers)}for(var b=0;b<d.attributes.length;b++){var e=d.attributes[b];var c=e.name;var a=e.value;if(!isNaN(a)&&(c==="min"||c==="size")){d._properties[c]=parseInt(a);continue}d._properties[c]=a}d.classList.add("jqx-layout-item");d.isCompleted=true;if(d.whenRenderedCallbacks){for(var b=0;b<d.whenRenderedCallbacks.length;b++){d.whenRenderedCallbacks[b]()}d.whenRenderedCallbacks=[]}}}],[{key:"observedAttributes",get:function s(){return["min","size","label","modifiers"]}}]);return k}(_wrapNativeSuper(HTMLElement));var LayoutGroup=function(j){_inherits(k,j);var l=_createSuper(k);function k(){var a;_classCallCheck(this,k);a=l.call(this);a._properties.label="Group";a._properties.orientation="vertical";return a}_createClass(k,[{key:"orientation",get:function h(){return this._properties.orientation},set:function i(a){this._setProperty("orientation",a)}},{key:"render",value:function g(){var a=this;_get(_getPrototypeOf(k.prototype),"render",this).call(this);a.className="jqx-layout-group";if(!a.hasAttribute("orientation")){a.setAttribute("orientation",a._properties.orientation)}else{a._properties.orientation=a.getAttribute("orientation")}}}],[{key:"observedAttributes",get:function h(){return["min","size","modifiers","orientation","position"]}}]);return k}(LayoutItem);var TabLayoutGroup=function(k){_inherits(g,k);var j=_createSuper(g);function g(){var a;_classCallCheck(this,g);a=j.call(this);a._properties.position="top";a._properties.label="TabGroup";return a}_createClass(g,[{key:"position",get:function h(){return this._properties.position},set:function i(a){this._setProperty("position",a)}},{key:"render",value:function l(){var a=this;_get(_getPrototypeOf(g.prototype),"render",this).call(this);if(!a.hasAttribute("position")&&a.position){a.setAttribute("position","top")}}}],[{key:"observedAttributes",get:function h(){return["min","size","modifiers","orientation","position"]}}]);return g}(LayoutGroup);var TabLayoutItem=function(d){_inherits(e,d);var f=_createSuper(e);function e(){var a;_classCallCheck(this,e);a=f.call(this);a._properties.label="TabItem";return a}return e}(LayoutGroup);(function(j){j.jqx.jqxWidget("jqxSplitLayout","",{});j.extend(j.jqx._jqxSplitLayout.prototype,{defineInstance:function l(){var a={dataSource:null,ready:null,orientation:"vertical"};if(this===j.jqx._jqxSplitLayout.prototype){return a}j.extend(true,this,a);return a},createInstance:function i(){var a=this;this._properties={dataSource:null,ready:null,orientation:"vertical"};var a=this;a.layout=document.createElement("jqx-split-layout");a.layout.style.width="100%";a.layout.style.height="100%";a.element.className+=a.toThemeProperty("jqx-split-layout-component jqx-rc-all jqx-widget");a.layout.dataSource=a.dataSource;a.layout.orientation=a.orientation;a.layout.ready=a.ready;a.element.appendChild(a.layout)},propertyChangedHandler:function h(d,c,e,a){var b=d;if(e!=a||a instanceof Object){if(!b.layout){return}b.layout[c]=a}},render:function m(){var a=this;if(!a.layout){return}a.layout.render()},refresh:function n(){var a=this;if(!a.layout){return}if(!a.layout.isRendered){return}a.layout.refresh()},dataBind:function k(){var a=this;if(!a.layout){return}a.layout.dataBind()}})})(jqxBaseFramework);var SplitLayout=function(V){_inherits(au,V);var aw=_createSuper(au);function au(){var a;_classCallCheck(this,au);a=aw.call(this);a._properties={dataSource:null,orientation:"vertical"};return a}_createClass(au,[{key:"orientation",get:function S(){return this._properties.orientation},set:function aj(a){this._properties.orientation=a}},{key:"dataSource",get:function S(){return this._properties.dataSource},set:function aj(a){this._properties.dataSource=a}},{key:"_dragStart",value:function Q(a){a.stopPropagation();a.preventDefault()}},{key:"_leaveHandler",value:function Z(){var a=this;if(a._resizeDetails){return}a._handleButtonsVisibility(null);a._hideSplitter();requestAnimationFrame(function(){})}},{key:"_enterHandler",value:function ad(){var a=this;if(a._resizeDetails){return}a._handleButtonsVisibility(a._selectedItem);a._updateSplitter();requestAnimationFrame(function(){a.classList.add("outline")})}},{key:"template",value:function at(){return'<div class="jqx-container" id="container" role="presentation"><jqx-layout-group data-id="root" id="itemsContainer"></jqx-layout-group><div root-splitter id="splitter" class="jqx-layout-splitter"></div>'}},{key:"propertyChangedHandler",value:function aa(d,c,a){var b=this;switch(d){case"orientation":if(b.$.itemsContainer){b.$.itemsContainer.orientation=b.orientation}break;case"dataSource":b.dataBind();break;case"selectedIndex":b._handleItemClick(b.getItem(a+""),true);break;default:_get(_getPrototypeOf(au.prototype),"propertyChangedHandler",this).call(this,d,c,a);break}}},{key:"dataBind",value:function am(){var a=this;a.$.itemsContainer.innerHTML="";var c="";var b=function b(m,f){for(var i=0;i<m.length;i++){var o=m[i];var n=o.size;var j=o.min;var p=o.modifiers;var d=o.type;var h=o.position;var k=o.orientation?o.orientation:"vertical";var l=o.id;var q=o.label;var e="";if(l!==undefined){e+='id="'.concat(l,'" ')}if(n!==undefined){e+='size="'.concat(n,'" ')}if(q!==undefined){e+='label="'.concat(q,'" ')}if(j!==undefined){e+='min="'.concat(j,'" ')}if(p!==undefined){e+='modifiers="'.concat(p,'" ')}if(h!==undefined){e+='position="'.concat(h,'" ')}if(o.items){e+="orientation=".concat(k," ");if(d==="tabs"){c+="<jqx-tab-layout-group ".concat(e,">");b(o.items,true);c+="</jqx-tab-layout-group>"}else{c+="<jqx-layout-group ".concat(e,">");b(o.items);c+="</jqx-layout-group>"}}else{var g=o.content||"";if(f){c+="<jqx-tab-layout-item ".concat(e,">")+g+"</jqx-tab-layout-item>"}else{if(d==="tabs"){c+="<jqx-tab-layout-group>";c+="<jqx-tab-layout-item ".concat(e,">")+g+"</jqx-tab-layout-item>";c+="</jqx-tab-layout-group>"}else{c+="<jqx-layout-item ".concat(e,">")+g+"</jqx-layout-item>"}}}}};b(a.dataSource);a.$.itemsContainer.innerHTML=c;a.refresh()}},{key:"render",value:function af(){var a=this;a.setAttribute("role","group");if(a.selectedIndex){a._handleItemClick(a.getItem(a.selectedIndex+""),true)}var b=function b(){if(!a.dataSource){a.dataSource=a._getDataSource(a._getLayout())}else{a.dataBind()}a.$.itemsContainer.orientation=a.orientation;a.refresh();a._updateSplitter();a.isRendered=true;a.classList.add("outline");if(a.ready){a.ready()}};if(document.readyState==="complete"){b()}else{window.addEventListener("load",function(){b()})}}},{key:"connectedCallback",value:function U(){var a=this;var b=function b(){var c=document.createDocumentFragment();while(a.childNodes.length){c.appendChild(a.firstChild)}a.innerHTML=a.template();a.classList.add("jqx-widget");a.$={container:a.querySelector("#container"),itemsContainer:a.querySelector("#itemsContainer"),splitter:a.querySelector("#splitter")};delete a.$.container.id;delete a.$.itemsContainer.id;delete a.$.splitter.id;a.$.itemsContainer.appendChild(c);a.classList.add("jqx-split-layout");document.addEventListener("pointerdown",function(d){a._documentDownHandler(d)});document.addEventListener("pointermove",function(d){a._documentMoveHandler(d)});document.addEventListener("pointerup",function(d){a._documentUpHandler(d)});document.addEventListener("selectstart",function(d){a._documentSelectStartHandler(d)});document.addEventListener("keyup",function(d){a._keyUpHandler(d)});a.addEventListener("mouseleave",function(d){a._leaveHandler(d)});a.addEventListener("mouseenter",function(d){a._enterHandler(d)});a.addEventListener("dragStart",function(d){a._dragStart(d)});a.render()};if(document.readyState==="complete"){b()}else{window.addEventListener("load",function(){b()})}}},{key:"getItem",value:function aA(d){var a=this;if(d===undefined||d===null){return}d=(d+"").split(".");var e=a._getDataSource(a._getLayout()),b;for(var c=0;c<d.length;c++){b=e[d[c]];if(!b){break}e=b.items}return b}},{key:"_documentDownHandler",value:function Y(b){var c=this,a=b.target;if(c.contains(a)&&a.closest){c._target=a;c._updateSplitter()}}},{key:"_documentMoveHandler",value:function ah(w){var F=this,n=w.target,j=F._contextMenu;if(j&&!JQX.Utilities.Core.isMobile){if(j.querySelector(".jqx-layout-context-menu-item[hover]")){var y=j.children;for(var v=0;v<y.length;v++){y[v].removeAttribute("hover")}}if(j.contains(n)&&n.closest&&n.closest(".jqx-layout-context-menu-item")){n.setAttribute("hover","")}}if(F._dragDetails){var s=Math.abs(F._dragDetails.pageX-w.pageX);var t=Math.abs(F._dragDetails.pageY-w.pageY);if(t<=5&&s<=5){return}if(!F._dragDetails.feedback.parentElement){document.body.appendChild(F._dragDetails.feedback);document.body.appendChild(F._dragDetails.overlay);setTimeout(function(){F._dragDetails.feedback.classList.add("dragging")},100)}F._dragDetails.dragging=true;F._dragDetails.feedback.style.left=w.pageX-F._dragDetails.feedback.offsetWidth/2-5+"px";F._dragDetails.feedback.style.top=w.pageY-F._dragDetails.feedback.offsetHeight/2-5+"px";var A=document.elementsFromPoint(w.pageX,w.pageY);var D=null;var a=false;for(var v=0;v<A.length;v++){var h=A[v];if(F._dragDetails.feedback.contains(h)){continue}if(h.classList.contains("jqx-layout-tab-strip")){if(F._dragDetails.element.contains(h)){continue}D=h.parentElement;a=true;break}if((h.parentElement===F._dragDetails.parent||h===F._dragDetails.parent)&&F._dragDetails.layoutGroup.items.length===1){continue}if(F._dragDetails.element.contains(h)){continue}if(h instanceof TabLayoutItem){D=h.parentElement;break}else{if(h instanceof TabLayoutGroup){D=h;break}}}var o=function o(M,J){var aF=F.offset(M);var aD=null;var H=50;var K=J;var I=J;if(!J){I=M.offsetWidth/3;K=M.offsetHeight/3}else{H=0}var L=[{left:aF.left,top:aF.top,right:aF.left+H,bottom:aF.top+H,position:"top"},{left:aF.left+H,top:aF.top,right:aF.left+M.offsetWidth-H,bottom:aF.top+K-H,position:"top"},{left:aF.left+M.offsetWidth-H,top:aF.top,right:aF.left+M.offsetWidth,bottom:aF.top+H,position:"top"},{left:aF.left,top:aF.top+H,right:aF.left+I,bottom:aF.top+M.offsetHeight-H,position:"left"},{left:aF.left+M.offsetWidth-I,top:aF.top+H,right:aF.left+M.offsetWidth,bottom:aF.top+M.offsetHeight-H,position:"right"},{left:aF.left,top:aF.top+M.offsetHeight-H,right:aF.left+H,bottom:aF.top+M.offsetHeight,position:"bottom"},{left:aF.left+H,top:aF.top+M.offsetHeight-K+H,right:aF.left+M.offsetWidth-H,bottom:aF.top+M.offsetHeight,position:"bottom"},{left:aF.left+M.offsetWidth-H,top:aF.top+M.offsetHeight-H,right:aF.left+M.offsetWidth,bottom:aF.top+M.offsetHeight,position:"bottom"}];for(var aE=0;aE<L.length;aE++){var N=L[aE];if(N.left<=w.pageX&&w.pageX<=N.right){if(N.top<=w.pageY&&w.pageY<=N.bottom){aD=N.position;break}}}return aD};var B=F.querySelector("jqx-layout-group");var m=o(B,10);var f=null;if(!m){if(!D){F._handleDropArea(null)}else{if(a){if(D!==F._dragDetails.parent){m="center";f=D}}else{m=o(D)||"center";f=D}}}else{f=B}if(f){F._dragDetails.current=f;F._dragDetails.position=m;F._handleDropArea(f,m)}}if(F._resizeDetails){var s=Math.abs(F._resizeDetails.clientX-w.clientX);var t=Math.abs(F._resizeDetails.clientY-w.clientY);var g=F._resizeDetails.splitter;var q=F._resizeDetails.item;var r=F._resizeDetails.itemRect;var p=F._resizeDetails.previousItemRect;var u=F._resizeDetails.previousItem;var i=F._resizeDetails.nextItemRect;var G=F._resizeDetails.nextItem;var k=parseInt(q.getAttribute("min"));var E=function E(H){if(H.classList.contains("jqx-visibility-hidden")){return}H.style.right="";H.style.top="";H.style.left="";H.style.bottom=""};E(g);E(F.$.splitter);g.classList.remove("error");g.classList.add("active");if(!F._resizeDetails.dragging){if(g.classList.contains("horizontal")&&t<=5){return}else{if(g.classList.contains("vertical")&&s<=5){return}}F._resizeDetails.dragging=true}var x={clientPos:"clientX",pos:"x",size:"width",near:"left",far:"right",offsetSize:"offsetWidth"};if(g.classList.contains("horizontal")){x={clientPos:"clientY",pos:"y",size:"height",near:"top",far:"bottom",offsetSize:"offsetHeight"}}var d=function d(I){var H=F.offset(I);var J=F.offset(F);J.left++;J.top++;F.$.splitter.style.width=I.offsetWidth+"px";F.$.splitter.style.height=I.offsetHeight+"px";F.$.splitter.className=I.className;F.$.splitter.style.left=H.left-J.left+"px";F.$.splitter.style.top=H.top-J.top+"px";I.setAttribute("drag","");F.$.splitter.setAttribute("drag","")};if(g.classList.contains("last")){var e=w[x.clientPos]-F._resizeDetails.splitterRect[x.pos];var b=r[x.size]-k;if(e>b){e=b;g.classList.add("error")}if(p){var k=parseInt(u.getAttribute("min"));var c=p[x.size]-k;if(e<-c){e=-c;g.classList.add("error")}}g.style[x.near]=e+"px";var l=q[x.offsetSize]-e;q.setAttribute("size",l);if(u){var C=q[x.offsetSize]+u[x.offsetSize]-l;u.setAttribute("size",C)}}else{var e=-w[x.clientPos]+F._resizeDetails.splitterRect[x.pos];var c=r[x.size]-k;if(e>c){e=c;g.classList.add("error")}if(i){var k=parseInt(G.getAttribute("min"));var b=-i[x.size]+k;if(e<b){e=b;g.classList.add("error")}}g.style[x.far]=e+"px";var l=q[x.offsetSize]-e;q.setAttribute("size",l);if(G){var z=G[x.offsetSize]+q[x.offsetSize]-l;G.setAttribute("size",z)}}d(g)}}},{key:"_offsetTop",value:function ak(b){var a=this;if(!b){return 0}return b.offsetTop+a._offsetTop(b.offsetParent)}},{key:"_offsetLeft",value:function ac(b){var a=this;if(!b){return 0}return b.offsetLeft+a._offsetLeft(b.offsetParent)}},{key:"offset",value:function W(a){return{left:this._offsetLeft(a),top:this._offsetTop(a)}}},{key:"_keyUpHandler",value:function P(a){var b=this;if(a.key==="Escape"){if(b._dragDetails){b._dragDetails.feedback.remove();b._dragDetails.overlay.remove();b._dragDetails=null;b._handleDropArea(null)}if(b._resizeDetails){var c=b._resizeDetails;c.splitter.classList.contains("last")?c.previousItem.size=c.previousItemSize:c.nextItem.size=c.nextItem.previousItemSize;c.item.size=c.itemSize;b.refresh();b._handleItemClick(c.item);b._resizeDetails=null;return}}else{if(a.key==="Delete"){if(b._selectedItem){b._removeLayoutItem(b._selectedItem)}}}}},{key:"_endDrag",value:function ay(){var c=this;c._handleDropArea(null);if(!c._dragDetails.dragging){c._dragDetails=null;return}var a=c._dragDetails.current;var d=c._dragDetails.element;var h=c._dragDetails.position;c._handleDropArea(null);if(a){c._addTabLayoutItem(a,h,d);c._removeLayoutItem(d);if(a.parentElement&&Array.from(a.parentElement.parentElement.children).filter(function(i){if(i.classList.contains("jqx-layout-group")){return true}return false}).length===1){var e=a.parentElement;var b=e.parentElement;var g=b.parentElement;if(!(b.getAttribute("data-id")==="root"||g.getAttribute("data-id")==="root")&&g!==c){var f=Array.from(g.children).indexOf(e.parentElement);if(f>=0){g.insertBefore(e,g.children[f])}else{g.appendChild(e)}b.remove()}}c.refresh();c._updateSplitter();requestAnimationFrame(function(){c.classList.add("outline");c.querySelectorAll(".jqx-element").forEach(function(i){c.dispatchEvent(new CustomEvent("resize"))})})}c.dispatchEvent(new CustomEvent("stateChange",{type:"insert",item:d}));c._dragDetails.feedback.remove();c._dragDetails.overlay.remove();c._dragDetails=null}},{key:"_documentUpHandler",value:function al(b){var c=this,f=JQX.Utilities.Core.isMobile,a=f?document.elementFromPoint(b.pageX-window.pageXOffset,b.pageY-window.pageYOffset):b.target;if(b.button===2){return}if(c._dragDetails){c._endDrag(b)}if(c._resizeDetails){var d=c._resizeDetails;if(d.item){d.item.style.overflow=""}if(d.previousItem){d.previousItem.style.overflow=""}if(d.nextItem){d.nextItem.style.overflow=""}c.refresh();c._handleItemClick(d.item);c._resizeDetails=null;window.dispatchEvent(new Event("resize"));c.querySelectorAll(".jqx-element").forEach(function(g){g.dispatchEvent(new CustomEvent("resize"))});return}if(!c.contains(a)){return}c.classList.add("outline");if(c._target&&!a.item){if(a instanceof TabLayoutItem){c._handleItemClick(a)}else{c._handleItemClick(a.closest(".jqx-layout-item"))}}if(c._target){if(c._target!==a){delete c._target;return}if(!b.button&&a.closest(".jqx-layout-buttons-container")){var e=b.target;c._handleButtonClick(e.item,e.position)}else{if(a.closest(".jqx-layout-context-menu")&&(!f&&!b.button||f)){c._handleMenuItemClick(a.closest(".jqx-layout-context-menu-item"))}}delete c._target}}},{key:"_documentSelectStartHandler",value:function ai(a){var b=this;if(b._target){a.preventDefault()}}},{key:"_getDataSource",value:function an(f,a,d){var e=this;var h=[];if(!d){d=0}if(!a){a=""}for(var g=0;g<f.length;g++){var i=f[g];var b={label:i.label,id:i.getAttribute("data-id"),orientation:i.orientation,size:i.size,min:i.min,type:i.type,modifiers:i.modifiers,position:i.position};i.removeAttribute("index");if(i instanceof LayoutGroup){h.push(b);b.index=a!==""?a+"."+d:d.toString();i.setAttribute("index",b.index);if(i.items){var c=e._getDataSource(i.items,b.index,0);b.items=c}}else{if(i instanceof LayoutItem){if(i.items){var c=e._getDataSource(i.items,a,d);h=h.concat(c)}else{b.index=a!==""?a+"."+d:d.toString();i.setAttribute("index",b.index);h.push(b)}}}d++}return h}},{key:"_getLayout",value:function R(){var d=this;var a=!arguments.length?d.$.itemsContainer:arguments[0];if(d._buttons){d._buttons.remove()}if(d._dropArea){d._dropArea.remove()}var e=d.querySelectorAll(".jqx-layout-splitter");for(var g=0;g<e.length;g++){var b=e[g];if(b!==d.$.splitter){b.remove()}}a.items=Array.from(a.children);a.items=a.items.filter(function(i){return i!==a.tabs&&i.hasAttribute("data-id")});var h=a.items.map(function(k){if(k.classList.contains("jqx-layout-tab-strip")){return null}var i=k;var j=k instanceof LayoutGroup?k:null;if(j){i.items=d._getLayout(j)}return i});if(a!==d.$.itemsContainer){return h.filter(function(i){return i!==null&&i!==a.tabs})}var c=[];var f=a;f.items=h.filter(function(i){return i!==null&&i!==a.tabs});c.push(f);return c}},{key:"_updateSplitter",value:function aq(){var b=this;if(b._buttons&&b._dragDetails){b._buttons.remove()}b._removeSplitter();var e=b.querySelectorAll("[data-id]");for(var d=0;d<e.length;d++){var c=e[d];if(c.getAttribute("data-id")==="root"){continue}if(c.hasAttribute("role")){var a=c.getAttribute("role");if(a==="gridcell"||a==="row"||a==="columnheader"||a==="rowheader"){continue}}c.setAttribute("hover","");b._handleSplitter(c)}}},{key:"_hideSplitter",value:function av(){var a=this;var d=a.querySelectorAll("[data-id]");for(var c=0;c<d.length;c++){var b=d[c];b.removeAttribute("hover")}}},{key:"_removeSplitter",value:function ae(){var b=this;var c=b.querySelectorAll(".jqx-layout-splitter");for(var d=0;d<c.length;d++){var a=c[d];if(a!==b.$.splitter){a.remove()}}b._hideSplitter()}},{key:"_handleItemClick",value:function T(a){var b=this,d=b.selectedIndex;var c=null;if(!a){b.selectedIndex=null;b.querySelectorAll("[data-id]").forEach(function(e){e.removeAttribute("selected")});b._selectedItem=null;return}else{c=a instanceof HTMLElement?a:b.querySelector("[data-id="+a.id+"]");if(c&&c.readonly){b.selectedIndex=null;return}b.querySelectorAll("[data-id]").forEach(function(e){e.removeAttribute("selected")});if(!c){b.refresh();return}b.selectedIndex=c.getAttribute("index");c.setAttribute("selected","");c.setAttribute("hover","");b._selectedItem=c;if(c.classList.contains("jqx-hidden")){b.refresh()}b._handleButtonsVisibility(c);if(d!==b.selectedIndex){b.dispatchEvent(new CustomEvent("change"))}}b._updateSplitter()}},{key:"_handleButtonClick",value:function ao(a,d){var b=this,c=b._addLayoutItem(a,d);b.dispatchEvent(new CustomEvent("stateChange",{type:"insert",item:c}));b._handleItemClick(c,true)}},{key:"_removeLayoutItem",value:function ar(a){var b=this;if(a.getAttribute("data-id")==="root"){return}if(a instanceof LayoutItem&&a.parentElement.items.length===1){var c=a.parentElement;var d=c;while(c&&c.items&&c.items.length===1){if(c.getAttribute("data-id")==="root"){break}d=c;c=c.parentElement}if(d.getAttribute("data-id")!=="root"){d.remove()}else{if(b.allowLiveSplit){d.appendChild(document.createElement("jqx-layout-item"))}}}else{a.remove()}b.refresh();b.dispatchEvent(new CustomEvent("stateChange",{type:"delete",item:a}))}},{key:"refresh",value:function O(){var b=this;if(b._isUpdating){return}b.dataSource=b._getDataSource(b._getLayout());b.$.splitter.className="jqx-visibility-hidden jqx-layout-splitter";var a=function a(r){var o=b.getItem(r.getAttribute("index"));if(!o){return}r.style.gridTemplateColumns="";r.style.gridTemplateRows="";var q="";var m=0;var g=0;if(r instanceof TabLayoutGroup){if(r.tabs){r.tabs.remove()}var h=document.createElement("div");h.classList.add("jqx-layout-tab-strip");if(b._selectedItem&&r.contains(b._selectedItem)&&b._selectedItem instanceof TabLayoutItem){r.selectedIndex=Math.max(0,r.items.indexOf(b._selectedItem))}if(r.selectedIndex>=r.children.length){r.selectedIndex=0}for(var i=0;i<r.children.length;i++){var l=r.children[i];var f=b.getItem(l.getAttribute("index"));if(!f){continue}var k=document.createElement("div");k.classList.add("jqx-layout-tab");k.innerHTML="<label>"+f.label+'</label><span class="jqx-close-button"></span>';h.appendChild(k);l.setAttribute("tab","");l.classList.add("jqx-hidden");k.content=l;k.item=f;k.group=o;if(l.modifiers){if(l.modifiers.indexOf("close")===-1){k.querySelector(".jqx-close-button").classList.add("jqx-hidden")}}else{k.querySelector(".jqx-close-button").classList.add("jqx-hidden")}if(undefined===r.selectedIndex||i===r.selectedIndex){k.classList.add("selected");l.classList.remove("jqx-hidden");r.selectedIndex=i}k.onpointerup=function(s){if(s.target.classList.contains("jqx-close-button")&&k.close){r.selectedIndex=0;b._removeLayoutItem(b._selectedItem);b._handleItemClick(parent)}};k.onpointerdown=function(s){var t=this.closest(".jqx-layout-group");b._handleItemClick(this.content);k.close=false;if(!s.target.classList.contains("jqx-close-button")){if(f.modifiers&&f.modifiers.indexOf("drag")>=0&&t.modifiers.indexOf("drag")>=0){b._beginDrag(t,this,s)}}else{k.close=true}}}r.tabs=h;if(o.position==="top"||o.position==="left"){r.insertBefore(h,r.firstChild)}else{r.appendChild(h)}}else{for(var i=0;i<r.children.length;i++){var l=r.children[i];if(l.hasAttribute("size")){var n=l.getAttribute("size");var j=parseFloat(n);var e=r.orientation==="vertical"?r.offsetWidth:r.offsetHeight;var p=n.indexOf("%")>=0?parseFloat(n):parseFloat(j/e*100);m+=p;g++;if(g===r.children.length){if(m<100){q+="1fr ";m=100;continue}else{if(m>100){m-=p;p=100-m;m=100}}}else{if(m>100||p===0){g=r.children.length;m=0;break}}q+=p+"% ";continue}q+="1fr "}if(g===r.children.length){if(m<99||m>100){q="";for(var i=0;i<r.children.length;i++){var l=r.children[i];l.removeAttribute("size");q+="1fr "}}}if(r.orientation==="vertical"){r.style.gridTemplateColumns=q}else{r.style.gridTemplateRows=q}}r.items=Array.from(r.children);r.items=r.items.filter(function(s){return s!==r.tabs})};var c=b.querySelectorAll(".jqx-layout-group");for(var d=0;d<c.length;d++){a(c[d])}}},{key:"_beginDrag",value:function ab(a,e,i){var d=this;if(d._dragDetails){d._dragDetails.feedback.remove()}var h=document.createElement("div");var g=document.createElement("div");var c=a.querySelector(".jqx-layout-tab-strip");var b="";if(c){for(var f=0;f<Array.from(c.children).length;f++){if(f===a.selectedIndex){b=c.children[f].innerText}}}h.innerHTML='<jqx-split-layout><jqx-tab-layout-group><jqx-tab-layout-item label="'.concat(b,'"></jqx-tab-layout-item></jqx-tab-layout-group></jqx-split-layout>');d._feedback=h;d._feedback.classList.add("jqx-split-layout-feedback","jqx-split-layout","jqx-widget");g.classList.add("jqx-split-layout-overlay");d._dragDetails={element:e.content,item:e.item,layoutGroup:e.group,parent:a,overlay:g,feedback:h,pageX:i.pageX,pageY:i.pageY}}},{key:"moveChildren",value:function ag(b,d){d.innerHTML="";var c=b;while(c.firstChild){var a=c.firstChild;d.appendChild(a)}}},{key:"createLayoutItem",value:function az(d,g){var c=this;var f=function f(){var h=document.createElement("jqx-layout-item");h.innerHTML="";c.dispatchEvent(new CustomEvent("createItem",{type:"layoutItem",item:h}));return h};var a=function a(){var h=document.createElement("jqx-tab-layout-item");h.innerHTML="";c.dispatchEvent(new CustomEvent("createItem",{type:"tabLayoutItem",item:h}));return h};var b=function b(i){var j=document.createElement("jqx-layout-group");var h=i==="top"||i==="bottom"?"horizontal":"vertical";c.dispatchEvent(new CustomEvent("createGroup",{type:"layoutGroup",item:j}));j.setAttribute("orientation",h);j.orientation=h;return j};var e=function e(i){var j=document.createElement("jqx-tab-layout-group");var h=i==="top"||i==="bottom"?"horizontal":"vertical";j.setAttribute("orientation",h);j.orientation=h;c.dispatchEvent(new CustomEvent("tabLayoutGroup",{type:"layoutGroup",item:j}));return j};if(d==="layoutItem"||!d){return f()}else{if(d==="tabLayoutItem"||!d){return a()}else{if(d==="tabLayoutGroup"){return e(g)}else{return b(g)}}}}},{key:"_addTabLayoutItem",value:function aB(h,g,j){var d=this;var f=d.createLayoutItem("tabLayoutItem");var i=h.closest("jqx-tab-layout-group");var c;if(j){f.label=j.label;f.modifiers=j.modifiers;d.moveChildren(j,f)}var a=function a(n){for(var o=0;o<n.children.length;o++){var m=n.children[o];m.removeAttribute("size")}n.removeAttribute("size")};var k=function k(n){h.removeAttribute("size");if(h.querySelector("jqx-layout-group")){d._addLayoutItem(h.querySelector("jqx-layout-group"),n)}else{c=d.createLayoutItem("layoutGroup",n);var m=d.createLayoutItem();d.moveChildren(h,m);if(n==="top"||n==="left"){c.appendChild(d.createLayoutItem());c.appendChild(m)}else{c.appendChild(m);c.appendChild(d.createLayoutItem())}h.appendChild(c)}};var l=function l(p,q){var o=h.parentElement;var n=h;var m=d.createLayoutItem("layoutGroup",q);o.insertBefore(m,n);if(q==="top"||q==="left"){m.append(p);m.appendChild(n)}else{m.appendChild(n);m.append(p)}if(n.getAttribute("data-id")==="root"){n.setAttribute("data-id",m.getAttribute("data-id"));m.setAttribute("data-id","root");d.$.itemsContainer=m}a(n);a(o)};if(j){switch(g){case"center":if(h instanceof TabLayoutGroup||h instanceof TabLayoutItem){i.appendChild(f)}else{var e=d.createLayoutItem("tabLayoutGroup","top");e.appendChild(f);if(h instanceof LayoutGroup&&!(h instanceof TabLayoutItem)){h.appendChild(e);a(h)}else{if(h instanceof LayoutItem){c=d.createLayoutItem("layoutGroup");h.parentElement.insertBefore(c,h);c.appendChild(h);c.appendChild(e);a(c)}}}break;case"left":case"right":var e=d.createLayoutItem("tabLayoutGroup","top");e.appendChild(f);if(h.getAttribute("data-id")==="root"){e.position=g;l(e,g)}else{l(e,g)}break;case"top":case"bottom":var e=d.createLayoutItem("tabLayoutGroup","top");e.appendChild(f);if(h.getAttribute("data-id")==="root"){e.position=g;l(e,g)}else{l(e,g)}break}return}switch(g){case"center":if(h instanceof TabLayoutGroup||h instanceof TabLayoutItem){i.appendChild(f)}else{k()}break;case"left":case"right":if(h instanceof TabLayoutGroup){var b=h.querySelector("jqx-tab-layout-item");if(b&&g==="left"){h.insertBefore(f,b)}else{h.appendChild(f)}}else{if(h instanceof TabLayoutItem){var e=d.createLayoutItem("tabLayoutGroup","top");var i=h.parentElement;e.appendChild(f);c=d.createLayoutItem("layoutGroup");i.parentElement.insertBefore(c,i);if(g==="right"){c.appendChild(i);c.appendChild(e)}else{if(g==="left"){c.appendChild(e);c.appendChild(i)}}}else{if(j){var e=d.createLayoutItem("tabLayoutGroup","top");e.appendChild(f);if(h instanceof LayoutGroup){h.insertBefore(h.firstChild,e)}else{if(h instanceof LayoutItem){c=d.createLayoutItem("layoutGroup");c.orientation=i.orientation;c.setAttribute("orientation",i.orientation);h.removeAttribute("size");h.parentElement.insertBefore(c,h);c.appendChild(h);c.appendChild(e)}}}else{k(g)}}}break;case"top":case"bottom":if(h instanceof TabLayoutGroup){c=d.createLayoutItem("layoutGroup","top");h.removeAttribute("size");h.parentElement.insertBefore(c,h);if(g==="top"){c.appendChild(d.createLayoutItem());c.appendChild(h)}else{c.appendChild(h);c.appendChild(d.createLayoutItem())}}else{k(g)}break}d.refresh()}},{key:"_addLayoutItem",value:function X(i,h,l){var d=this;if(!i){return}var a=function a(n){for(var o=0;o<n.children.length;o++){var m=n.children[o];m.removeAttribute("size")}n.removeAttribute("size")};var b=i instanceof TabLayoutItem||i instanceof TabLayoutGroup||l&&l instanceof TabLayoutItem;if(b){return d._addTabLayoutItem(i,h,l)}var f=d.createLayoutItem();var k=i.closest(".jqx-layout-group");var c;if(l){d.moveChildren(l,f)}if(h==="center"){if(i instanceof LayoutGroup){c=k;c.appendChild(f);a(c);d.refresh();return f}else{if(i instanceof LayoutItem){c=d.createLayoutItem("layoutGroup");c.orientation=k.orientation;c.setAttribute("orientation",k.orientation);i.removeAttribute("size");i.parentElement.insertBefore(c,i);c.appendChild(i);c.appendChild(f);d.refresh();return c}}}if(k.orientation==="vertical"&&(h==="left"||h==="right")||k.orientation==="horizontal"&&(h==="top"||h==="bottom")){c=k;if(i instanceof LayoutGroup){if(h==="left"||h==="top"){c.insertBefore(f,c.children[0])}else{c.appendChild(f)}a(i)}else{var g=c.items,j=Math.max(0,g.indexOf(i)+(h==="top"||h==="left"?0:1));c.insertBefore(f,g[j]);a(c)}}else{if(i instanceof LayoutGroup){var k=i.parentElement;c=i;var e=d.createLayoutItem("layoutGroup",h);k.insertBefore(e,c);if(h==="top"||h==="left"){e.append(f);e.appendChild(c)}else{e.appendChild(c);e.append(f)}if(c.getAttribute("data-id")==="root"){c.setAttribute("data-id",e.getAttribute("data-id"));e.setAttribute("data-id","root");d.$.itemsContainer=e}a(k)}else{c=d.createLayoutItem("layoutGroup",h);k.insertBefore(c,i);if(h==="top"||h==="left"){c.appendChild(f);c.appendChild(i)}else{c.appendChild(i);c.appendChild(f)}a(c)}}d.refresh();return f}},{key:"_handleButtonsVisibility",value:function aC(a){var b=this;if(!b._buttons){b._buttons=document.createElement("div");b._buttons.classList.add("jqx-layout-buttons-container");b._buttons.innerHTML='<div role="button" position="top"></div>\n <div role="button" position="bottom"></div>\n <div role="button" position="center"></div>\n <div role="button" position="left"></div>\n <div role="button" position="right"></div>'}if(!a){if(b._buttons.parentElement){b._buttons.parentElement.removeChild(b._buttons);return}}if(a){var d=a._buttonPosition||[],c=b._buttons.children;for(var f=0;f<c.length;f++){var e=c[f];e.position=e.getAttribute("position");e.item=a;d.length&&d.indexOf(e.getAttribute("position"))<0?e.classList.add("jqx-hidden"):e.classList.remove("jqx-hidden");e.onmouseenter=function(){e.setAttribute("hover","")};e.onmouseleave=function(){e.removeAttribute("hover")}}if(b.allowLiveSplit&&b._buttons.parentElement!==a){a.appendChild(b._buttons)}}}},{key:"_handleDropArea",value:function ax(a){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"center";var b=this;var c=function c(e){var f=50;switch(e){case"left":b._dropArea.style.top="0px";b._dropArea.style.left="0px";b._dropArea.style.width=f+"%";b._dropArea.style.height="100%";break;case"right":b._dropArea.style.top="0px";b._dropArea.style.left="calc(100% - ".concat(f,"%)");b._dropArea.style.width=f+"%";b._dropArea.style.height="100%";break;case"top":b._dropArea.style.top="0px";b._dropArea.style.left="0px";b._dropArea.style.width="100%";b._dropArea.style.height=f+"%";break;case"bottom":b._dropArea.style.top="calc(100% - ".concat(f,"%)");b._dropArea.style.left="0px";b._dropArea.style.width="100%";b._dropArea.style.height=f+"%";break;case"center":b._dropArea.style.top="0px";b._dropArea.style.left="0px";b._dropArea.style.width="100%";b._dropArea.style.height="100%";break}};if(b._dropArea&&b._dropArea.parentElement===a){c(d);return}if(b._dropArea){b._dropArea.remove()}if(!b._dragDetails||!a){return}b._dropArea=document.createElement("div");b._dropArea.classList.add("jqx-layout-drop-area");a.appendChild(b._dropArea);b._dropArea.style.opacity=1;c(d)}},{key:"_handleSplitter",value:function ap(b){var c=this;if(!b){return}if(b.hasAttribute("tab")){b=b.parentElement}if(b._splitter){b._splitter.remove()}if(!b._splitter){b._splitter=document.createElement("div")}if(c._dragDetails&&c._dragDetails.dragging){b._splitter.remove();return}if(b.modifiers.indexOf("resize")===-1){return}b.appendChild(b._splitter);var d=b.parentElement;if(d){b._splitter.className="jqx-layout-splitter";b._splitter.item=b;b._splitter.removeAttribute("drag");var e=d.orientation;if(b.nextElementSibling&&b.nextElementSibling.hasAttribute("data-id")){b._splitter.classList.add(e)}else{if(b.previousElementSibling&&b.previousElementSibling.hasAttribute("data-id")){b._splitter.classList.add(e);b._splitter.classList.add("last")}}var a=function a(f){f.style.top="";f.style.left="";f.style.bottom="";f.style.right="";f.onpointerdown=function(g){var h=g.target.item;h.style.overflow="hidden";c._resizeDetails={splitter:g.target,splitterRect:g.target.getBoundingClientRect(),itemRect:h.getBoundingClientRect(),item:h,itemSize:h.size,group:h.parentElement,clientX:g.clientX,clientY:g.clientY};if(c._selectedItem!==h){c.querySelectorAll("[data-id]").forEach(function(i){i.removeAttribute("selected")});c.selectedIndex=h.getAttribute("index");h.setAttribute("selected","");c._selectedItem=h;c._handleButtonsVisibility(h)}if(h.previousElementSibling&&h.previousElementSibling.hasAttribute("data-id")){c._resizeDetails.previousItemRect=h.previousElementSibling.getBoundingClientRect();c._resizeDetails.previousItem=h.previousElementSibling;c._resizeDetails.previousItemSize=h.previousElementSibling.size;c._resizeDetails.previousItem.style.overflow="hidden"}else{c._resizeDetails.previousItemRect=null;c._resizeDetails.previousItem=null}if(h.nextElementSibling&&h.nextElementSibling.hasAttribute("data-id")){c._resizeDetails.nextItemRect=h.nextElementSibling.getBoundingClientRect();c._resizeDetails.nextItem=h.nextElementSibling;c._resizeDetails.nextItemSize=h.nextElementSibling.size;c._resizeDetails.nextItem.style.overflow="hidden"}else{c._resizeDetails.nextItemRect=null;c._resizeDetails.nextItem=null}}};a(b._splitter)}}}]);return au}(_wrapNativeSuper(HTMLElement));customElements.define("jqx-layout-group",LayoutGroup);customElements.define("jqx-layout-item",LayoutItem);customElements.define("jqx-tab-layout-group",TabLayoutGroup);customElements.define("jqx-tab-layout-item",TabLayoutItem);customElements.define("jqx-split-layout",SplitLayout);
197
+ /* tslint:disable */
198
+ /* eslint-disable */
199
+ (function(){
200
+ if (typeof document === 'undefined') {
201
+ return;
202
+ }
203
+ if (!window.JQX) {
204
+ window.JQX = {
205
+ Utilities: {
206
+ Core: {
207
+ isMobile() {
208
+ var isMobile = /(iphone|ipod|ipad|android|iemobile|blackberry|bada)/.test(window.navigator.userAgent.toLowerCase());
209
+ var iOS = function () {
210
+ return [
211
+ 'iPad Simulator',
212
+ 'iPhone Simulator',
213
+ 'iPod Simulator',
214
+ 'iPad',
215
+ 'iPhone',
216
+ 'iPod'
217
+ ].includes(navigator.platform)
218
+ // iPad on iOS 13 detection
219
+ || (navigator.userAgent.includes('Mac') && 'ontouchend' in document)
220
+ }
221
+
222
+ if (!isMobile) {
223
+ return iOS();
224
+ }
225
+
226
+ return isMobile;
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+
233
+
234
+ class LayoutItem extends HTMLElement {
235
+ constructor() {
236
+ super();
237
+
238
+ this._properties = {
239
+ 'min': 50,
240
+ 'label': 'Item',
241
+ 'modifiers': ['resize', 'drag', 'close'],
242
+ 'size': null
243
+ }
244
+ }
245
+
246
+ _setProperty(property, value) {
247
+ var that = this;
248
+
249
+ if (that._properties[property] === value) {
250
+ return;
251
+ }
252
+
253
+ that._properties[property] = value;
254
+ that._updating = true;
255
+
256
+ if (property === 'disabled' || property === 'modifiers') {
257
+ if (value) {
258
+ that.setAttribute(property, value);
259
+ }
260
+ else {
261
+ that.removeAttribute(property);
262
+ }
263
+ }
264
+ else {
265
+ if (value === null) {
266
+ that.removeAttribute(property);
267
+ }
268
+ else {
269
+ that.setAttribute(property, value);
270
+ }
271
+ }
272
+
273
+ if (!that.isCompleted) {
274
+ return;
275
+ }
276
+
277
+ var layout = that.closest('jqx-layout');
278
+
279
+ if (layout) {
280
+ if (!layout._resizeDetails && !layout._updating && layout.isRendered) {
281
+ layout.refresh();
282
+ }
283
+ }
284
+ that._updating = false;
285
+ }
286
+
287
+ get label() {
288
+ return this._properties['label'];
289
+ }
290
+
291
+ set label(value) {
292
+ this._setProperty('label', value);
293
+ }
294
+
295
+ get modifiers() {
296
+ return this._properties['modifiers'];
297
+ }
298
+
299
+ set modifiers(value) {
300
+ this._setProperty('modifiers', value);
301
+ }
302
+
303
+ get min() {
304
+ return this._properties['min'];
305
+ }
306
+
307
+ set min(value) {
308
+ this._setProperty('min', value);
309
+ }
310
+
311
+ get size() {
312
+ return this._properties['size'];
313
+ }
314
+
315
+ set size(value) {
316
+ if (value !== null) {
317
+ if (typeof value === 'string') {
318
+ this._setProperty('size', value);
319
+ }
320
+ else {
321
+ this._setProperty('size', Math.max(this.min, value));
322
+ }
323
+ }
324
+ else {
325
+ this._setProperty('size', value);
326
+ }
327
+ }
328
+
329
+ static get observedAttributes() {
330
+ return ['min', 'size', 'label', 'modifiers'];
331
+ }
332
+
333
+
334
+ attributeChangedCallback(name, oldValue, newValue) {
335
+ var that = this;
336
+
337
+ if (oldValue === newValue) {
338
+ return;
339
+ }
340
+
341
+ if (!that.isCompleted) {
342
+ return;
343
+ }
344
+
345
+ if (name === 'size') {
346
+ if (!that._updating) {
347
+ if (newValue === null) {
348
+ this[name] = null;
349
+ return;
350
+ }
351
+
352
+ that[name] = Math.max(that.min, parseInt(newValue));
353
+ }
354
+ }
355
+ else {
356
+ that[name] = newValue;
357
+ }
358
+ }
359
+
360
+ connectedCallback() {
361
+ if (!this.isCompleted) {
362
+ this.render();
363
+ }
364
+ }
365
+
366
+ whenRendered(callback) {
367
+ var that = this;
368
+
369
+ if (that.isRendered) {
370
+ callback();
371
+ return;
372
+ }
373
+
374
+ if (!that.whenRenderedCallbacks) {
375
+ that.whenRenderedCallbacks = [];
376
+ }
377
+
378
+ that.whenRenderedCallbacks.push(callback);
379
+ }
380
+
381
+ render() {
382
+ var that = this;
383
+
384
+ if (!that.hasAttribute('data-id')) {
385
+ that.setAttribute('data-id', 'id' + Math.random().toString(16).slice(2));
386
+ }
387
+
388
+ if (!that.hasAttribute('label')) {
389
+ that.setAttribute('label', that.label);
390
+ }
391
+
392
+ if (!that.hasAttribute('min')) {
393
+ that.setAttribute('min', that.min);
394
+ }
395
+
396
+ if (!that.hasAttribute('label')) {
397
+ that.setAttribute('label', that.label);
398
+ }
399
+
400
+ if (!that.hasAttribute('modifiers')) {
401
+ that.setAttribute('modifiers', that.modifiers);
402
+ }
403
+
404
+ for (var i = 0; i < that.attributes.length; i++) {
405
+ var attribute = that.attributes[i];
406
+ var attributeName = attribute.name;
407
+ var attributeValue = attribute.value;
408
+
409
+ if (!isNaN(attributeValue) && (attributeName === 'min' || attributeName === 'size')) {
410
+ that._properties[attributeName] = parseInt(attributeValue);
411
+ continue;
412
+ }
413
+
414
+ that._properties[attributeName] = attributeValue;
415
+ }
416
+
417
+ that.classList.add('jqx-layout-item');
418
+
419
+ that.isCompleted = true;
420
+
421
+ if (that.whenRenderedCallbacks) {
422
+ for (var i = 0; i < that.whenRenderedCallbacks.length; i++) {
423
+ that.whenRenderedCallbacks[i]();
424
+ }
425
+
426
+ that.whenRenderedCallbacks = [];
427
+ }
428
+ }
429
+ }
430
+
431
+ class LayoutGroup extends LayoutItem {
432
+ constructor() {
433
+ super();
434
+
435
+ this._properties['label'] = 'Group';
436
+ this._properties['orientation'] = 'vertical'
437
+ }
438
+
439
+ get orientation() {
440
+ return this._properties.orientation;
441
+ }
442
+
443
+ set orientation(value) {
444
+ this._setProperty('orientation', value);
445
+ }
446
+
447
+ static get observedAttributes() {
448
+ return ['min', 'size', 'modifiers', 'orientation', 'position'];
449
+ }
450
+
451
+ render() {
452
+ var that = this;
453
+
454
+ super.render();
455
+
456
+ that.className = 'jqx-layout-group';
457
+
458
+ if (!that.hasAttribute('orientation')) {
459
+ that.setAttribute('orientation', that._properties['orientation']);
460
+ }
461
+ else {
462
+ that._properties['orientation'] = that.getAttribute('orientation');
463
+ }
464
+ }
465
+ }
466
+
467
+ class TabLayoutGroup extends LayoutGroup {
468
+ constructor() {
469
+ super();
470
+ this._properties['position'] = 'top'
471
+ this._properties['label'] = 'TabGroup';
472
+ }
473
+
474
+ get position() {
475
+ return this._properties.position;
476
+ }
477
+
478
+ set position(value) {
479
+ this._setProperty('position', value);
480
+ }
481
+
482
+ render() {
483
+ var that = this;
484
+
485
+ super.render();
486
+
487
+ if (!that.hasAttribute('position') && that.position) {
488
+ that.setAttribute('position', 'top');
489
+ }
490
+ }
491
+
492
+ static get observedAttributes() {
493
+ return ['min', 'size', 'modifiers', 'orientation', 'position'];
494
+ }
495
+ }
496
+
497
+ class TabLayoutItem extends LayoutGroup {
498
+ constructor() {
499
+ super();
500
+ this._properties['label'] = 'TabItem';
501
+ }
502
+ }
503
+
504
+
505
+ (function ($) {
506
+ "use strict";
507
+ $.jqx.jqxWidget("jqxSplitLayout", "", {});
508
+
509
+ $.extend($.jqx._jqxSplitLayout.prototype, {
510
+ defineInstance: function () {
511
+ var settings = {
512
+ 'dataSource': null,
513
+ 'ready': null,
514
+ 'orientation': 'vertical'
515
+ };
516
+
517
+ if (this === $.jqx._jqxSplitLayout.prototype) {
518
+ return settings;
519
+ }
520
+
521
+ $.extend(true, this, settings);
522
+ return settings;
523
+ },
524
+
525
+ createInstance: function () {
526
+ var that = this;
527
+ this._properties = {
528
+ 'dataSource': null,
529
+ 'ready': null,
530
+ 'orientation': 'vertical'
531
+ }
532
+
533
+ var that = this;
534
+
535
+ that.layout = document.createElement('jqx-split-layout');
536
+ that.layout.style.width = '100%';
537
+ that.layout.style.height = '100%';
538
+ that.element.className += that.toThemeProperty("jqx-split-layout-component jqx-rc-all jqx-widget");
539
+ that.layout.dataSource = that.dataSource;
540
+ that.layout.orientation = that.orientation;
541
+ that.layout.ready = that.ready;
542
+ that.element.appendChild(that.layout);
543
+ },
544
+
545
+ propertyChangedHandler: function (object, key, oldValue, value) {
546
+ var that = object;
547
+
548
+ if (oldValue != value || value instanceof Object) {
549
+ if (!that.layout) {
550
+ return;
551
+ }
552
+
553
+ that.layout[key] = value;
554
+ }
555
+ },
556
+
557
+ render: function () {
558
+ var that = this;
559
+
560
+ if (!that.layout) {
561
+ return;
562
+ }
563
+
564
+ that.layout.render();
565
+ },
566
+
567
+ refresh() {
568
+ var that = this;
569
+
570
+ if (!that.layout) {
571
+ return;
572
+ }
573
+
574
+ if (!that.layout.isRendered) {
575
+ return;
576
+ }
577
+
578
+ that.layout.refresh();
579
+ },
580
+
581
+ dataBind() {
582
+ var that = this;
583
+
584
+ if (!that.layout) {
585
+ return;
586
+ }
587
+
588
+ that.layout.dataBind();
589
+ }
590
+ });
591
+ })(jqxBaseFramework);
592
+
593
+ class SplitLayout extends HTMLElement {
594
+ constructor() {
595
+ super();
596
+
597
+ this._properties = {
598
+ 'dataSource': null,
599
+ 'orientation': 'vertical'
600
+ }
601
+ }
602
+
603
+
604
+ get orientation() {
605
+ return this._properties['orientation'];
606
+ }
607
+
608
+ set orientation(value) {
609
+ this._properties['orientation'] = value;
610
+ }
611
+
612
+ get dataSource() {
613
+ return this._properties['dataSource'];
614
+ }
615
+
616
+ set dataSource(value) {
617
+ this._properties['dataSource'] = value;
618
+ }
619
+
620
+
621
+ _dragStart(event) {
622
+ event.stopPropagation();
623
+ event.preventDefault();
624
+ }
625
+
626
+ _leaveHandler() {
627
+ var that = this;
628
+
629
+ if (that._resizeDetails) {
630
+ return;
631
+ }
632
+
633
+ that._handleButtonsVisibility(null);
634
+ that._hideSplitter();
635
+
636
+ requestAnimationFrame(function () {
637
+ // that.classList.remove('outline');
638
+ })
639
+ }
640
+
641
+ _enterHandler() {
642
+ var that = this;
643
+
644
+ if (that._resizeDetails) {
645
+ return;
646
+ }
647
+
648
+ that._handleButtonsVisibility(that._selectedItem);
649
+
650
+ that._updateSplitter();
651
+
652
+ requestAnimationFrame(function () {
653
+ that.classList.add('outline');
654
+ })
655
+ }
656
+
657
+ /**
658
+ * Element's HTML template.
659
+ */
660
+ template() {
661
+ return '<div class="jqx-container" id="container" role="presentation"><jqx-layout-group data-id="root" id="itemsContainer"></jqx-layout-group><div root-splitter id="splitter" class="jqx-layout-splitter"></div>';
662
+ }
663
+
664
+ /**
665
+ * Updates the element when a property is changed.
666
+ * @param {string} propertyName The name of the property.
667
+ * @param {number/string} oldValue The previously entered value. Max, min and value are of type Number. The rest are of type String.
668
+ * @param {number/string} newValue The new entered value. Max, min and value are of type Number. The rest are of type String.
669
+ */
670
+ propertyChangedHandler(propertyName, oldValue, newValue) {
671
+ var that = this;
672
+
673
+ switch (propertyName) {
674
+ case 'orientation':
675
+ if (that.$.itemsContainer) {
676
+ that.$.itemsContainer.orientation = that.orientation;
677
+ }
678
+ break;
679
+ case 'dataSource':
680
+ that.dataBind();
681
+ break;
682
+ case 'selectedIndex':
683
+ that._handleItemClick(that.getItem(newValue + ''), true);
684
+ break;
685
+ default:
686
+ super.propertyChangedHandler(propertyName, oldValue, newValue);
687
+ break;
688
+ }
689
+ }
690
+
691
+ dataBind() {
692
+ var that = this;
693
+
694
+ that.$.itemsContainer.innerHTML = '';
695
+
696
+ var template = '';
697
+ var processDataSource = function (dataSource, isTabLayoutGroup) {
698
+ for (var i = 0; i < dataSource.length; i++) {
699
+ var item = dataSource[i];
700
+
701
+ var size = item.size;
702
+ var min = item.min;
703
+ var modifiers = item.modifiers;
704
+ var type = item.type;
705
+ var position = item.position;
706
+ var orientation = item.orientation ? item.orientation : 'vertical';
707
+ var id = item.id;
708
+ var label = item.label;
709
+
710
+ var props = '';
711
+
712
+ if (id !== undefined) {
713
+ props += `id="${id}" `
714
+ }
715
+
716
+ if (size !== undefined) {
717
+ props += `size="${size}" `
718
+ }
719
+
720
+ if (label !== undefined) {
721
+ props += `label="${label}" `
722
+ }
723
+
724
+
725
+ if (min !== undefined) {
726
+ props += `min="${min}" `
727
+ }
728
+
729
+ if (modifiers !== undefined) {
730
+ props += `modifiers="${modifiers}" `
731
+ }
732
+
733
+ if (position !== undefined) {
734
+ props += `position="${position}" `
735
+ }
736
+
737
+ if (item.items) {
738
+ props += `orientation=${orientation} `
739
+
740
+ if (type === 'tabs') {
741
+ template += `<jqx-tab-layout-group ${props}>`;
742
+ processDataSource(item.items, true);
743
+ template += '</jqx-tab-layout-group>'
744
+ }
745
+ else {
746
+ template += `<jqx-layout-group ${props}>`;
747
+ processDataSource(item.items);
748
+ template += '</jqx-layout-group>'
749
+ }
750
+ }
751
+ else {
752
+ var content = item.content || '';
753
+ if (isTabLayoutGroup) {
754
+ template += `<jqx-tab-layout-item ${props}>` + content + '</jqx-tab-layout-item>';
755
+ }
756
+ else {
757
+ if (type === 'tabs') {
758
+ template += `<jqx-tab-layout-group>`;
759
+ template += `<jqx-tab-layout-item ${props}>` + content + '</jqx-tab-layout-item>';
760
+ template += '</jqx-tab-layout-group>'
761
+ }
762
+ else {
763
+ template += `<jqx-layout-item ${props}>` + content + '</jqx-layout-item>';
764
+ }
765
+ }
766
+ }
767
+ }
768
+ }
769
+
770
+ processDataSource(that.dataSource);
771
+ that.$.itemsContainer.innerHTML = template;
772
+ that.refresh();
773
+ }
774
+
775
+
776
+ /**
777
+ * Element's render funciton
778
+ */
779
+ render() {
780
+ var that = this;
781
+
782
+ that.setAttribute('role', 'group');
783
+
784
+ if (that.selectedIndex) {
785
+ that._handleItemClick(that.getItem(that.selectedIndex + ''), true);
786
+ }
787
+
788
+
789
+ var render = (function () {
790
+ if (!that.dataSource) {
791
+ that.dataSource = that._getDataSource(that._getLayout());
792
+ }
793
+ else {
794
+ that.dataBind();
795
+ }
796
+
797
+ that.$.itemsContainer.orientation = that.orientation;
798
+
799
+ that.refresh();
800
+ that._updateSplitter();
801
+ that.isRendered = true;
802
+ that.classList.add('outline');
803
+
804
+ if (that.ready) {
805
+ that.ready();
806
+ }
807
+ })
808
+
809
+ if (document.readyState === 'complete') {
810
+ render();
811
+ }
812
+ else {
813
+ window.addEventListener('load', (function () {
814
+ render();
815
+ }));
816
+ }
817
+ }
818
+
819
+ connectedCallback() {
820
+ var that = this;
821
+
822
+ var setup = function () {
823
+ var fragment = document.createDocumentFragment();
824
+
825
+ while (that.childNodes.length) {
826
+ fragment.appendChild(that.firstChild);
827
+ }
828
+
829
+ that.innerHTML = that.template();
830
+ that.classList.add('jqx-widget');
831
+ that.$ = {
832
+ container: that.querySelector("#container"),
833
+ itemsContainer: that.querySelector("#itemsContainer"),
834
+ splitter: that.querySelector("#splitter")
835
+ };
836
+
837
+ delete that.$.container.id;
838
+ delete that.$.itemsContainer.id;
839
+ delete that.$.splitter.id;
840
+
841
+ that.$.itemsContainer.appendChild(fragment);
842
+ that.classList.add('jqx-split-layout');
843
+
844
+ document.addEventListener('pointerdown', function (event) {
845
+ that._documentDownHandler(event);
846
+ });
847
+
848
+ document.addEventListener('pointermove', function (event) {
849
+ that._documentMoveHandler(event);
850
+ });
851
+
852
+ document.addEventListener('pointerup', function (event) {
853
+ that._documentUpHandler(event);
854
+ });
855
+
856
+ document.addEventListener('selectstart', function (event) {
857
+ that._documentSelectStartHandler(event);
858
+ });
859
+
860
+ document.addEventListener('keyup', function (event) {
861
+ that._keyUpHandler(event);
862
+ });
863
+
864
+ that.addEventListener('mouseleave', function (event) {
865
+ that._leaveHandler(event);
866
+ });
867
+
868
+ that.addEventListener('mouseenter', function (event) {
869
+ that._enterHandler(event);
870
+ });
871
+
872
+ that.addEventListener('dragStart', function (event) {
873
+ that._dragStart(event);
874
+ });
875
+
876
+ that.render();
877
+ }
878
+
879
+ if (document.readyState === 'complete') {
880
+ setup();
881
+ }
882
+ else {
883
+ window.addEventListener('load', function () {
884
+ setup();
885
+ });
886
+ }
887
+ }
888
+
889
+ /**
890
+ * Returns the Splitter item according to the index
891
+ * @param {any} index - string, e.g. '0.1'
892
+ */
893
+ getItem(index) {
894
+ var that = this;
895
+
896
+ if (index === undefined || index === null) {
897
+ return;
898
+ }
899
+
900
+ index = (index + '').split('.');
901
+
902
+ var items = that._getDataSource(that._getLayout()),
903
+ item;
904
+
905
+ for (var i = 0; i < index.length; i++) {
906
+ item = items[index[i]];
907
+
908
+ if (!item) {
909
+ break;
910
+ }
911
+
912
+ items = item.items;
913
+ }
914
+
915
+ return item;
916
+ }
917
+
918
+
919
+ /**
920
+ * Document down handler
921
+ * @param {any} event
922
+ */
923
+ _documentDownHandler(event) {
924
+ var that = this,
925
+ target = event.target;
926
+
927
+ if (that.contains(target) && target.closest) {
928
+ that._target = target;
929
+ that._updateSplitter();
930
+ }
931
+ }
932
+
933
+ /**
934
+ * Document move handler
935
+ * @param {any} event
936
+ */
937
+ _documentMoveHandler(event) {
938
+ var that = this,
939
+ target = event.target,
940
+ menu = that._contextMenu;
941
+
942
+ if (menu && !JQX.Utilities.Core.isMobile) {
943
+ if (menu.querySelector('.jqx-layout-context-menu-item[hover]')) {
944
+ var items = menu.children;
945
+
946
+ for (var i = 0; i < items.length; i++) {
947
+ items[i].removeAttribute('hover');
948
+ }
949
+ }
950
+
951
+ if (menu.contains(target) && target.closest && target.closest('.jqx-layout-context-menu-item')) {
952
+ target.setAttribute('hover', '');
953
+ }
954
+ }
955
+
956
+ if (that._dragDetails) {
957
+ var offsetX = Math.abs(that._dragDetails.pageX - event.pageX);
958
+ var offsetY = Math.abs(that._dragDetails.pageY - event.pageY);
959
+
960
+ if (offsetY <= 5 && offsetX <= 5) {
961
+ return;
962
+ }
963
+
964
+ if (!that._dragDetails.feedback.parentElement) {
965
+ document.body.appendChild(that._dragDetails.feedback);
966
+ document.body.appendChild(that._dragDetails.overlay)
967
+ setTimeout(function () {
968
+ that._dragDetails.feedback.classList.add('dragging');
969
+ }, 100);
970
+ }
971
+
972
+ that._dragDetails.dragging = true;
973
+
974
+ that._dragDetails.feedback.style.left = event.pageX - that._dragDetails.feedback.offsetWidth / 2 - 5 + 'px';
975
+ that._dragDetails.feedback.style.top = event.pageY - that._dragDetails.feedback.offsetHeight / 2 - 5 + 'px';
976
+
977
+ var elements = document.elementsFromPoint(event.pageX, event.pageY);
978
+ var group = null;
979
+ var isTabStrip = false;
980
+
981
+ for (var i = 0; i < elements.length; i++) {
982
+ var element = elements[i];
983
+
984
+ if (that._dragDetails.feedback.contains(element)) {
985
+ continue;
986
+ }
987
+
988
+ if (element.classList.contains('jqx-layout-tab-strip')) {
989
+ if (that._dragDetails.element.contains(element)) {
990
+ continue;
991
+ }
992
+
993
+ group = element.parentElement;
994
+ isTabStrip = true;
995
+ break;
996
+ }
997
+
998
+ if ((element.parentElement === that._dragDetails.parent || element === that._dragDetails.parent) && that._dragDetails.layoutGroup.items.length === 1) {
999
+ continue;
1000
+ }
1001
+
1002
+ if (that._dragDetails.element.contains(element)) {
1003
+ continue;
1004
+ }
1005
+
1006
+ if (element instanceof TabLayoutItem) {
1007
+ group = element.parentElement;
1008
+ break;
1009
+ }
1010
+ else if (element instanceof TabLayoutGroup) {
1011
+ group = element;
1012
+ break;
1013
+ }
1014
+ }
1015
+
1016
+ var getPosition = function (group, size) {
1017
+ var offset = that.offset(group);
1018
+ var position = null;
1019
+ var edgeSize = 50;
1020
+
1021
+ var height = size;
1022
+ var width = size;
1023
+
1024
+ if (!size) {
1025
+ width = group.offsetWidth / 3;
1026
+ height = group.offsetHeight / 3;
1027
+ }
1028
+ else {
1029
+ edgeSize = 0;
1030
+ }
1031
+
1032
+ var positionRects = [
1033
+ {
1034
+ left: offset.left,
1035
+ top: offset.top,
1036
+ right: offset.left + edgeSize,
1037
+ bottom: offset.top + edgeSize,
1038
+ position: 'top'
1039
+ },
1040
+ {
1041
+ left: offset.left + edgeSize,
1042
+ top: offset.top,
1043
+ right: offset.left + group.offsetWidth - edgeSize,
1044
+ bottom: offset.top + height - edgeSize,
1045
+ position: 'top'
1046
+ },
1047
+ {
1048
+ left: offset.left + group.offsetWidth - edgeSize,
1049
+ top: offset.top,
1050
+ right: offset.left + group.offsetWidth,
1051
+ bottom: offset.top + edgeSize,
1052
+ position: 'top'
1053
+ },
1054
+ {
1055
+ left: offset.left,
1056
+ top: offset.top + edgeSize,
1057
+ right: offset.left + width,
1058
+ bottom: offset.top + group.offsetHeight - edgeSize,
1059
+ position: 'left'
1060
+ },
1061
+ {
1062
+ left: offset.left + group.offsetWidth - width,
1063
+ top: offset.top + edgeSize,
1064
+ right: offset.left + group.offsetWidth,
1065
+ bottom: offset.top + group.offsetHeight - edgeSize,
1066
+ position: 'right'
1067
+ },
1068
+ {
1069
+ left: offset.left,
1070
+ top: offset.top + group.offsetHeight - edgeSize,
1071
+ right: offset.left + edgeSize,
1072
+ bottom: offset.top + group.offsetHeight,
1073
+ position: 'bottom'
1074
+ },
1075
+ {
1076
+ left: offset.left + edgeSize,
1077
+ top: offset.top + group.offsetHeight - height + edgeSize,
1078
+ right: offset.left + group.offsetWidth - edgeSize,
1079
+ bottom: offset.top + group.offsetHeight,
1080
+ position: 'bottom'
1081
+ },
1082
+ {
1083
+ left: offset.left + group.offsetWidth - edgeSize,
1084
+ top: offset.top + group.offsetHeight - edgeSize,
1085
+ right: offset.left + group.offsetWidth,
1086
+ bottom: offset.top + group.offsetHeight,
1087
+ position: 'bottom'
1088
+ },
1089
+ ]
1090
+
1091
+ for (var i = 0; i < positionRects.length; i++) {
1092
+ var rect = positionRects[i];
1093
+
1094
+ if (rect.left <= event.pageX && event.pageX <= rect.right) {
1095
+ if (rect.top <= event.pageY && event.pageY <= rect.bottom) {
1096
+ position = rect.position;
1097
+ break;
1098
+ }
1099
+ }
1100
+ }
1101
+
1102
+ return position;
1103
+ }
1104
+
1105
+ var rootGroup = that.querySelector('jqx-layout-group');
1106
+
1107
+ var position = getPosition(rootGroup, 10);
1108
+ var currentGroup = null;
1109
+
1110
+ if (!position) {
1111
+ if (!group) {
1112
+ that._handleDropArea(null);
1113
+ }
1114
+ else {
1115
+ if (isTabStrip) {
1116
+ if (group !== that._dragDetails.parent) {
1117
+ position = 'center';
1118
+ currentGroup = group;
1119
+ }
1120
+ }
1121
+ else {
1122
+ position = getPosition(group) || 'center';
1123
+ currentGroup = group
1124
+ }
1125
+ }
1126
+ }
1127
+ else {
1128
+ currentGroup = rootGroup;
1129
+ }
1130
+
1131
+ if (currentGroup) {
1132
+ that._dragDetails.current = currentGroup;
1133
+ that._dragDetails.position = position;
1134
+ that._handleDropArea(currentGroup, position);
1135
+ }
1136
+ }
1137
+
1138
+ if (that._resizeDetails) {
1139
+ var offsetX = Math.abs(that._resizeDetails.clientX - event.clientX);
1140
+ var offsetY = Math.abs(that._resizeDetails.clientY - event.clientY);
1141
+
1142
+ var splitter = that._resizeDetails.splitter;
1143
+ var item = that._resizeDetails.item;
1144
+ var itemRect = that._resizeDetails.itemRect;
1145
+ var previousItemRect = that._resizeDetails.previousItemRect;
1146
+ var previousItem = that._resizeDetails.previousItem;
1147
+ var nextItemRect = that._resizeDetails.nextItemRect;
1148
+ var nextItem = that._resizeDetails.nextItem;
1149
+ var minSize = parseInt(item.getAttribute('min'));
1150
+
1151
+ var resetSplitter = function (splitter) {
1152
+ if (splitter.classList.contains('jqx-visibility-hidden')) {
1153
+ return;
1154
+ }
1155
+
1156
+ splitter.style.right = '';
1157
+ splitter.style.top = '';
1158
+ splitter.style.left = '';
1159
+ splitter.style.bottom = '';
1160
+ }
1161
+
1162
+ resetSplitter(splitter);
1163
+ resetSplitter(that.$.splitter);
1164
+
1165
+ splitter.classList.remove('error');
1166
+ splitter.classList.add('active');
1167
+
1168
+ if (!that._resizeDetails.dragging) {
1169
+ if (splitter.classList.contains('horizontal') && offsetY <= 5) {
1170
+ return;
1171
+ }
1172
+ else if (splitter.classList.contains('vertical') && offsetX <= 5) {
1173
+ return;
1174
+ }
1175
+
1176
+ that._resizeDetails.dragging = true;
1177
+ }
1178
+
1179
+ var normalized = {
1180
+ 'clientPos': 'clientX',
1181
+ 'pos': 'x',
1182
+ 'size': 'width',
1183
+ 'near': 'left',
1184
+ 'far': 'right',
1185
+ 'offsetSize': 'offsetWidth'
1186
+ }
1187
+
1188
+ if (splitter.classList.contains('horizontal')) {
1189
+ normalized = {
1190
+ 'clientPos': 'clientY',
1191
+ 'pos': 'y',
1192
+ 'size': 'height',
1193
+ 'near': 'top',
1194
+ 'far': 'bottom',
1195
+ 'offsetSize': 'offsetHeight'
1196
+ }
1197
+ }
1198
+
1199
+ var updateSplitter = function (splitter) {
1200
+ var offset = that.offset(splitter);
1201
+ var elementOffset = that.offset(that);
1202
+
1203
+ elementOffset.left++;
1204
+ elementOffset.top++;
1205
+
1206
+ that.$.splitter.style.width = splitter.offsetWidth + 'px';
1207
+ that.$.splitter.style.height = splitter.offsetHeight + 'px';
1208
+
1209
+ that.$.splitter.className = splitter.className;
1210
+
1211
+ that.$.splitter.style.left = offset.left - elementOffset.left + 'px';
1212
+ that.$.splitter.style.top = offset.top - elementOffset.top + 'px';
1213
+
1214
+ splitter.setAttribute('drag', '');
1215
+ that.$.splitter.setAttribute('drag', '');
1216
+ }
1217
+
1218
+ if (splitter.classList.contains('last')) {
1219
+ var newPosition = event[normalized.clientPos] - that._resizeDetails.splitterRect[normalized.pos];
1220
+ var maxPosition = itemRect[normalized.size] - minSize;
1221
+
1222
+ if (newPosition > maxPosition) {
1223
+ newPosition = maxPosition;
1224
+ splitter.classList.add('error');
1225
+ }
1226
+
1227
+ if (previousItemRect) {
1228
+ var minSize = parseInt(previousItem.getAttribute('min'));
1229
+
1230
+ var minPosition = previousItemRect[normalized.size] - minSize;
1231
+ if (newPosition < -minPosition) {
1232
+ newPosition = -minPosition;
1233
+ splitter.classList.add('error');
1234
+ }
1235
+ }
1236
+
1237
+ splitter.style[normalized.near] = newPosition + 'px';
1238
+
1239
+ var newSize = item[normalized.offsetSize] - newPosition;
1240
+
1241
+ item.setAttribute('size', newSize);
1242
+
1243
+ if (previousItem) {
1244
+ var previousItemSize = item[normalized.offsetSize] + previousItem[normalized.offsetSize] - newSize;
1245
+
1246
+ previousItem.setAttribute('size', previousItemSize);
1247
+ }
1248
+ }
1249
+ else {
1250
+ var newPosition = -event[normalized.clientPos] + that._resizeDetails.splitterRect[normalized.pos];
1251
+ var minPosition = itemRect[normalized.size] - minSize;
1252
+
1253
+ if (newPosition > minPosition) {
1254
+ newPosition = minPosition;
1255
+ splitter.classList.add('error');
1256
+ }
1257
+
1258
+ if (nextItemRect) {
1259
+ var minSize = parseInt(nextItem.getAttribute('min'));
1260
+
1261
+ var maxPosition = -nextItemRect[normalized.size] + minSize;
1262
+ if (newPosition < maxPosition) {
1263
+ newPosition = maxPosition;
1264
+ splitter.classList.add('error');
1265
+ }
1266
+ }
1267
+
1268
+
1269
+ splitter.style[normalized.far] = newPosition + 'px';
1270
+
1271
+ var newSize = item[normalized.offsetSize] - newPosition;
1272
+
1273
+ item.setAttribute('size', newSize);
1274
+
1275
+ if (nextItem) {
1276
+ var nextItemSize = nextItem[normalized.offsetSize] + item[normalized.offsetSize] - newSize;
1277
+
1278
+ nextItem.setAttribute('size', nextItemSize);
1279
+ }
1280
+ }
1281
+
1282
+ updateSplitter(splitter);
1283
+ }
1284
+ }
1285
+
1286
+ _offsetTop(element) {
1287
+ var that = this;
1288
+
1289
+ if (!element) {
1290
+ return 0;
1291
+ }
1292
+
1293
+ return element.offsetTop + that._offsetTop(element.offsetParent);
1294
+ }
1295
+
1296
+ _offsetLeft(element) {
1297
+ var that = this;
1298
+
1299
+ if (!element) {
1300
+ return 0;
1301
+ }
1302
+
1303
+ return element.offsetLeft + that._offsetLeft(element.offsetParent);
1304
+ }
1305
+
1306
+ offset(element) {
1307
+ return { left: this._offsetLeft(element), top: this._offsetTop(element) }
1308
+ }
1309
+
1310
+ _keyUpHandler(event) {
1311
+ var that = this;
1312
+ if (event.key === 'Escape') {
1313
+ if (that._dragDetails) {
1314
+ that._dragDetails.feedback.remove();
1315
+ that._dragDetails.overlay.remove();
1316
+ that._dragDetails = null;
1317
+ that._handleDropArea(null);
1318
+ }
1319
+
1320
+ if (that._resizeDetails) {
1321
+ var drag = that._resizeDetails;
1322
+
1323
+ drag.splitter.classList.contains('last') ? drag.previousItem.size = drag.previousItemSize : drag.nextItem.size = drag.nextItem.previousItemSize;
1324
+ drag.item.size = drag.itemSize;
1325
+
1326
+ that.refresh();
1327
+ that._handleItemClick(drag.item);
1328
+ that._resizeDetails = null;
1329
+ return;
1330
+ }
1331
+ }
1332
+ else if (event.key === 'Delete') {
1333
+ if (that._selectedItem) {
1334
+ that._removeLayoutItem(that._selectedItem);
1335
+ }
1336
+ }
1337
+ }
1338
+
1339
+ _endDrag() {
1340
+ var that = this;
1341
+
1342
+ that._handleDropArea(null);
1343
+
1344
+ if (!that._dragDetails.dragging) {
1345
+ that._dragDetails = null;
1346
+ return;
1347
+ }
1348
+
1349
+ var group = that._dragDetails.current;
1350
+ var item = that._dragDetails.element;
1351
+ var position = that._dragDetails.position;
1352
+
1353
+ that._handleDropArea(null);
1354
+
1355
+ if (group) {
1356
+ that._addTabLayoutItem(group, position, item);
1357
+ that._removeLayoutItem(item);
1358
+
1359
+ if (group.parentElement && Array.from(group.parentElement.parentElement.children).filter(function (value) {
1360
+ if (value.classList.contains('jqx-layout-group')) {
1361
+ return true;
1362
+ }
1363
+
1364
+ return false;
1365
+ }).length === 1) {
1366
+ var parent = group.parentElement;
1367
+ var parentGroup = parent.parentElement;
1368
+ var ownerGroup = parentGroup.parentElement;
1369
+
1370
+ if (!(parentGroup.getAttribute('data-id') === 'root' || ownerGroup.getAttribute('data-id') === 'root') && ownerGroup !== that) {
1371
+ var index = Array.from(ownerGroup.children).indexOf(parent.parentElement);
1372
+
1373
+ if (index >= 0) {
1374
+ ownerGroup.insertBefore(parent, ownerGroup.children[index])
1375
+ }
1376
+ else {
1377
+ ownerGroup.appendChild(parent);
1378
+ }
1379
+
1380
+ parentGroup.remove();
1381
+ }
1382
+ }
1383
+
1384
+ that.refresh();
1385
+ that._updateSplitter();
1386
+
1387
+ requestAnimationFrame(function () {
1388
+ that.classList.add('outline');
1389
+ that.querySelectorAll('.jqx-element').forEach(function (control) {
1390
+ that.dispatchEvent(new CustomEvent('resize'));
1391
+
1392
+ });
1393
+ })
1394
+ }
1395
+
1396
+ that.dispatchEvent(new CustomEvent('stateChange', { type: 'insert', item: item }));
1397
+
1398
+ that._dragDetails.feedback.remove();
1399
+ that._dragDetails.overlay.remove();
1400
+ that._dragDetails = null;
1401
+ }
1402
+ /**
1403
+ * Document up handler
1404
+ * @param {any} event
1405
+ */
1406
+ _documentUpHandler(event) {
1407
+ var that = this,
1408
+ isMobile = JQX.Utilities.Core.isMobile,
1409
+ target = isMobile ? document.elementFromPoint(event.pageX - window.pageXOffset, event.pageY - window.pageYOffset) : event.target;
1410
+
1411
+
1412
+ if (event.button === 2) {
1413
+ return;
1414
+ }
1415
+
1416
+ if (that._dragDetails) {
1417
+ that._endDrag(event);
1418
+ }
1419
+
1420
+ if (that._resizeDetails) {
1421
+ var drag = that._resizeDetails;
1422
+
1423
+ if (drag.item) {
1424
+ drag.item.style.overflow = '';
1425
+ }
1426
+
1427
+ if (drag.previousItem) {
1428
+ drag.previousItem.style.overflow = '';
1429
+ }
1430
+
1431
+ if (drag.nextItem) {
1432
+ drag.nextItem.style.overflow = '';
1433
+ }
1434
+
1435
+ that.refresh();
1436
+ that._handleItemClick(drag.item);
1437
+ that._resizeDetails = null;
1438
+ window.dispatchEvent(new Event('resize'));
1439
+
1440
+ that.querySelectorAll('.jqx-element').forEach(function (control) {
1441
+ control.dispatchEvent(new CustomEvent('resize'));
1442
+ });
1443
+ return;
1444
+ }
1445
+
1446
+ if (!that.contains(target)) {
1447
+ return;
1448
+ }
1449
+
1450
+ that.classList.add('outline');
1451
+
1452
+ if (that._target && !target.item) {
1453
+ if (target instanceof TabLayoutItem) {
1454
+ that._handleItemClick(target);
1455
+ }
1456
+ else {
1457
+ that._handleItemClick(target.closest('.jqx-layout-item'));
1458
+ }
1459
+ }
1460
+
1461
+ if (that._target) {
1462
+ if (that._target !== target) {
1463
+ delete that._target;
1464
+ return;
1465
+ }
1466
+
1467
+ if (!event.button && target.closest('.jqx-layout-buttons-container')) {
1468
+ var button = event.target;
1469
+
1470
+ that._handleButtonClick(button.item, button.position);
1471
+ }
1472
+ else if (target.closest('.jqx-layout-context-menu') && (!isMobile && !event.button || isMobile)) {
1473
+ that._handleMenuItemClick(target.closest('.jqx-layout-context-menu-item'));
1474
+ }
1475
+
1476
+ delete that._target;
1477
+ }
1478
+ }
1479
+
1480
+ /**
1481
+ * Document Select Start event handler
1482
+ */
1483
+ _documentSelectStartHandler(event) {
1484
+ var that = this;
1485
+
1486
+ if (that._target) {
1487
+ event.preventDefault();
1488
+ }
1489
+ }
1490
+
1491
+ /**
1492
+ * Adds labels to the items that do not have set
1493
+ * @param {any} data
1494
+ */
1495
+ _getDataSource(layout, path, index) {
1496
+ var that = this;
1497
+
1498
+ var data = [];
1499
+
1500
+ if (!index) {
1501
+ index = 0;
1502
+ }
1503
+
1504
+ if (!path) {
1505
+ path = '';
1506
+ }
1507
+
1508
+ for (var i = 0; i < layout.length; i++) {
1509
+ var layoutItem = layout[i];
1510
+
1511
+ var item = {
1512
+ label: layoutItem.label,
1513
+ id: layoutItem.getAttribute('data-id'),
1514
+ orientation: layoutItem.orientation,
1515
+ size: layoutItem.size,
1516
+ min: layoutItem.min,
1517
+ type: layoutItem.type,
1518
+ modifiers: layoutItem.modifiers,
1519
+ position: layoutItem.position
1520
+ }
1521
+
1522
+ layoutItem.removeAttribute('index');
1523
+
1524
+ if (layoutItem instanceof LayoutGroup) {
1525
+ data.push(item);
1526
+
1527
+ item.index = path !== '' ? path + '.' + index : index.toString();
1528
+ layoutItem.setAttribute('index', item.index);
1529
+
1530
+ if (layoutItem.items) {
1531
+ var items = that._getDataSource(layoutItem.items, item.index, 0);
1532
+ item.items = items;
1533
+ }
1534
+ }
1535
+ else if (layoutItem instanceof LayoutItem) {
1536
+ if (layoutItem.items) {
1537
+ var items = that._getDataSource(layoutItem.items, path, index);
1538
+
1539
+ data = data.concat(items);
1540
+ }
1541
+ else {
1542
+ item.index = path !== '' ? path + '.' + index : index.toString();
1543
+ layoutItem.setAttribute('index', item.index);
1544
+
1545
+ data.push(item);
1546
+ }
1547
+ }
1548
+
1549
+ index++;
1550
+ }
1551
+
1552
+ return data;
1553
+ }
1554
+
1555
+ /**
1556
+ * Generates the JSON array of the current structure of the element
1557
+ */
1558
+ _getLayout() {
1559
+ var that = this;
1560
+ var group = !arguments.length ? that.$.itemsContainer : arguments[0];
1561
+
1562
+ if (that._buttons) {
1563
+ that._buttons.remove();
1564
+ }
1565
+
1566
+ if (that._dropArea) {
1567
+ that._dropArea.remove();
1568
+ }
1569
+
1570
+ var splitters = that.querySelectorAll('.jqx-layout-splitter');
1571
+
1572
+ for (var i = 0; i < splitters.length; i++) {
1573
+ var splitter = splitters[i];
1574
+
1575
+ if (splitter !== that.$.splitter) {
1576
+ splitter.remove();
1577
+ }
1578
+ }
1579
+
1580
+ group.items = Array.from(group.children);
1581
+ group.items = group.items.filter(function (value) {
1582
+ return value !== group.tabs && value.hasAttribute('data-id');
1583
+ });
1584
+
1585
+ var items = group.items.map(function (value) {
1586
+ if (value.classList.contains('jqx-layout-tab-strip')) {
1587
+ return null;
1588
+ }
1589
+
1590
+ var item = value;
1591
+ var itemGroup = value instanceof LayoutGroup ? value : null;
1592
+
1593
+ if (itemGroup) {
1594
+ item.items = that._getLayout(itemGroup)
1595
+ }
1596
+
1597
+ return item;
1598
+ });
1599
+
1600
+ if (group !== that.$.itemsContainer) {
1601
+ return items.filter(function (value) {
1602
+ return value !== null && value !== group.tabs
1603
+ });
1604
+ }
1605
+
1606
+ var data = [];
1607
+ var item = group;
1608
+
1609
+ item.items = items.filter(function (value) {
1610
+ return value !== null && value !== group.tabs
1611
+ });
1612
+
1613
+ data.push(item);
1614
+
1615
+ return data;
1616
+ }
1617
+
1618
+
1619
+ _updateSplitter() {
1620
+ var that = this;
1621
+
1622
+ if (that._buttons && that._dragDetails) {
1623
+ that._buttons.remove();
1624
+ }
1625
+
1626
+ that._removeSplitter();
1627
+ var items = that.querySelectorAll('[data-id]');
1628
+
1629
+ for (var i = 0; i < items.length; i++) {
1630
+ var item = items[i];
1631
+
1632
+ if (item.getAttribute('data-id') === 'root') {
1633
+ continue;
1634
+ }
1635
+
1636
+ if (item.hasAttribute('role')) {
1637
+ var role = item.getAttribute('role');
1638
+
1639
+ if (role === 'gridcell' || role === 'row' || role === 'columnheader' || role === 'rowheader') {
1640
+ continue;
1641
+ }
1642
+ }
1643
+
1644
+ item.setAttribute('hover', '');
1645
+ that._handleSplitter(item);
1646
+ }
1647
+ }
1648
+
1649
+ _hideSplitter() {
1650
+ var that = this;
1651
+
1652
+ var items = that.querySelectorAll('[data-id]');
1653
+
1654
+ for (var i = 0; i < items.length; i++) {
1655
+ var item = items[i];
1656
+
1657
+ item.removeAttribute('hover');
1658
+ }
1659
+ }
1660
+
1661
+ _removeSplitter() {
1662
+ var that = this;
1663
+ var splitters = that.querySelectorAll('.jqx-layout-splitter');
1664
+
1665
+ for (var i = 0; i < splitters.length; i++) {
1666
+ var splitter = splitters[i];
1667
+
1668
+ if (splitter !== that.$.splitter) {
1669
+ splitter.remove();
1670
+ }
1671
+ }
1672
+
1673
+ that._hideSplitter();
1674
+ }
1675
+
1676
+ /**
1677
+ * Handles item selection
1678
+ * @param {any} target - target element that was clicked
1679
+ * @param {any} isOnDemand - selection on demand
1680
+ */
1681
+ _handleItemClick(target) {
1682
+ var that = this,
1683
+ previouslySelectedIndex = that.selectedIndex;
1684
+
1685
+ var item = null;
1686
+
1687
+ if (!target) {
1688
+ that.selectedIndex = null;
1689
+ that.querySelectorAll('[data-id]').forEach(function (i) { i.removeAttribute('selected') });
1690
+ that._selectedItem = null;
1691
+ return;
1692
+ }
1693
+ else {
1694
+ item = target instanceof HTMLElement ? target : that.querySelector('[data-id=' + target.id + ']');
1695
+
1696
+ if (item && item.readonly) {
1697
+ that.selectedIndex = null;
1698
+ return;
1699
+ }
1700
+
1701
+ that.querySelectorAll('[data-id]').forEach(function (i) { i.removeAttribute('selected') });
1702
+
1703
+ if (!item) {
1704
+ that.refresh();
1705
+ return;
1706
+ }
1707
+
1708
+ that.selectedIndex = item.getAttribute('index');
1709
+
1710
+ item.setAttribute('selected', '');
1711
+ item.setAttribute('hover', '');
1712
+ that._selectedItem = item;
1713
+ if (item.classList.contains('jqx-hidden')) {
1714
+ that.refresh();
1715
+ }
1716
+
1717
+ that._handleButtonsVisibility(item);
1718
+
1719
+ if (previouslySelectedIndex !== that.selectedIndex) {
1720
+ that.dispatchEvent(new CustomEvent('change'));
1721
+ }
1722
+ }
1723
+
1724
+ that._updateSplitter();
1725
+ }
1726
+
1727
+ /**
1728
+ * Handles Layout Button click
1729
+ * @param {any} target
1730
+ */
1731
+ _handleButtonClick(target, position) {
1732
+ var that = this,
1733
+ newItem = that._addLayoutItem(target, position);
1734
+
1735
+ //Select the new empty item
1736
+ that.dispatchEvent(new CustomEvent('stateChange', { type: 'insert', item: newItem }));
1737
+
1738
+ that._handleItemClick(newItem, true);
1739
+ }
1740
+
1741
+
1742
+
1743
+ _removeLayoutItem(item) {
1744
+ var that = this;
1745
+
1746
+ if (item.getAttribute('data-id') === 'root') {
1747
+ return;
1748
+ }
1749
+
1750
+ if (item instanceof LayoutItem && item.parentElement.items.length === 1) {
1751
+ var parent = item.parentElement;
1752
+ var currentParent = parent;
1753
+
1754
+ while (parent && parent.items && parent.items.length === 1) {
1755
+ if (parent.getAttribute('data-id') === 'root') {
1756
+ break;
1757
+ }
1758
+
1759
+ currentParent = parent;
1760
+ parent = parent.parentElement;
1761
+ }
1762
+
1763
+ if (currentParent.getAttribute('data-id') !== 'root') {
1764
+ currentParent.remove();
1765
+ }
1766
+ else if (that.allowLiveSplit) {
1767
+ currentParent.appendChild(document.createElement('jqx-layout-item'));
1768
+ }
1769
+ }
1770
+ else {
1771
+ item.remove();
1772
+ }
1773
+
1774
+ that.refresh();
1775
+
1776
+ that.dispatchEvent(new CustomEvent('stateChange', { type: 'delete', item: item }));
1777
+ }
1778
+
1779
+ /**
1780
+ * Refreshes the UI Component.
1781
+ */
1782
+ refresh() {
1783
+ var that = this;
1784
+
1785
+ if (that._isUpdating) {
1786
+ return;
1787
+ }
1788
+
1789
+ that.dataSource = that._getDataSource(that._getLayout());
1790
+
1791
+ that.$.splitter.className = 'jqx-visibility-hidden jqx-layout-splitter';
1792
+
1793
+ var refreshLayoutGroup = function (group) {
1794
+ var item = that.getItem(group.getAttribute('index'));
1795
+
1796
+ if (!item) {
1797
+ return;
1798
+ }
1799
+ group.style.gridTemplateColumns = '';
1800
+ group.style.gridTemplateRows = '';
1801
+
1802
+ var template = '';
1803
+ var percentages = 0;
1804
+ var withSizeCount = 0;
1805
+
1806
+ if (group instanceof TabLayoutGroup) {
1807
+ if (group.tabs) {
1808
+ group.tabs.remove();
1809
+ }
1810
+
1811
+ var header = document.createElement('div');
1812
+ header.classList.add('jqx-layout-tab-strip');
1813
+
1814
+ if (that._selectedItem && group.contains(that._selectedItem) && that._selectedItem instanceof TabLayoutItem) {
1815
+ group.selectedIndex = Math.max(0, group.items.indexOf(that._selectedItem));
1816
+ }
1817
+
1818
+ if (group.selectedIndex >= group.children.length) {
1819
+ group.selectedIndex = 0;
1820
+ }
1821
+
1822
+ for (var i = 0; i < group.children.length; i++) {
1823
+ var child = group.children[i];
1824
+ var childItem = that.getItem(child.getAttribute('index'));
1825
+
1826
+ if (!childItem) {
1827
+ continue;
1828
+ }
1829
+
1830
+ var tab = document.createElement('div');
1831
+ tab.classList.add('jqx-layout-tab');
1832
+ tab.innerHTML = '<label>' + childItem.label + '</label><span class="jqx-close-button"></span>';
1833
+ header.appendChild(tab);
1834
+ child.setAttribute('tab', '');
1835
+ child.classList.add('jqx-hidden');
1836
+ tab.content = child;
1837
+ tab.item = childItem;
1838
+ tab.group = item;
1839
+
1840
+ if (child.modifiers) {
1841
+ if (child.modifiers.indexOf('close') === -1) {
1842
+ tab.querySelector('.jqx-close-button').classList.add('jqx-hidden');
1843
+ }
1844
+ }
1845
+ else {
1846
+ tab.querySelector('.jqx-close-button').classList.add('jqx-hidden');
1847
+ }
1848
+
1849
+ if (undefined === group.selectedIndex || i === group.selectedIndex) {
1850
+ tab.classList.add('selected');
1851
+ child.classList.remove('jqx-hidden');
1852
+ group.selectedIndex = i;
1853
+ }
1854
+
1855
+
1856
+ tab.onpointerup = function (event) {
1857
+ if (event.target.classList.contains('jqx-close-button') && tab.close) {
1858
+ group.selectedIndex = 0;
1859
+ that._removeLayoutItem(that._selectedItem);
1860
+ that._handleItemClick(parent);
1861
+ }
1862
+ }
1863
+ tab.onpointerdown = function (event) {
1864
+ var parent = this.closest('.jqx-layout-group');
1865
+ that._handleItemClick(this.content);
1866
+ tab.close = false;
1867
+ if (!event.target.classList.contains('jqx-close-button')) {
1868
+ if (childItem.modifiers && childItem.modifiers.indexOf('drag') >= 0 && parent.modifiers.indexOf('drag') >= 0) {
1869
+ that._beginDrag(parent, this, event);
1870
+ }
1871
+ }
1872
+ else {
1873
+ tab.close = true;
1874
+ }
1875
+ }
1876
+
1877
+ }
1878
+
1879
+
1880
+ group.tabs = header;
1881
+
1882
+ if (item.position === 'top' || item.position === 'left') {
1883
+ group.insertBefore(header, group.firstChild);
1884
+ }
1885
+ else {
1886
+ group.appendChild(header);
1887
+ }
1888
+ }
1889
+ else {
1890
+ for (var i = 0; i < group.children.length; i++) {
1891
+ var child = group.children[i];
1892
+
1893
+ if (child.hasAttribute('size')) {
1894
+ var size = child.getAttribute('size');
1895
+
1896
+ var pixels = parseFloat(size);
1897
+ var groupSize = group.orientation === 'vertical' ? group.offsetWidth : group.offsetHeight;
1898
+ var percentage = size.indexOf('%') >= 0 ? parseFloat(size) : parseFloat((pixels / groupSize) * 100);
1899
+
1900
+ percentages += percentage;
1901
+ withSizeCount++;
1902
+
1903
+ if (withSizeCount === group.children.length) {
1904
+ if (percentages < 100) {
1905
+ template += '1fr ';
1906
+ percentages = 100;
1907
+ continue;
1908
+ }
1909
+ else if (percentages > 100) {
1910
+ percentages -= percentage;
1911
+ percentage = 100 - percentages;
1912
+ percentages = 100;
1913
+ }
1914
+ }
1915
+ else if (percentages > 100 || percentage === 0) {
1916
+ withSizeCount = group.children.length;
1917
+ percentages = 0;
1918
+ break;
1919
+ }
1920
+
1921
+ template += percentage + '% ';
1922
+ continue;
1923
+ }
1924
+
1925
+ template += '1fr ';
1926
+ }
1927
+
1928
+ if (withSizeCount === group.children.length) {
1929
+ if (percentages < 99 || percentages > 100) {
1930
+ template = '';
1931
+
1932
+ for (var i = 0; i < group.children.length; i++) {
1933
+ var child = group.children[i];
1934
+
1935
+ child.removeAttribute('size');
1936
+ template += '1fr ';
1937
+ }
1938
+ }
1939
+ }
1940
+
1941
+ if (group.orientation === 'vertical') {
1942
+ group.style.gridTemplateColumns = template;
1943
+ }
1944
+ else {
1945
+ group.style.gridTemplateRows = template;
1946
+ }
1947
+ }
1948
+
1949
+ group.items = Array.from(group.children);
1950
+ group.items = group.items.filter(function (value) {
1951
+ return value !== group.tabs;
1952
+ });
1953
+ }
1954
+
1955
+ var layoutGroups = that.querySelectorAll('.jqx-layout-group');
1956
+
1957
+ for (var i = 0; i < layoutGroups.length; i++) {
1958
+ refreshLayoutGroup(layoutGroups[i]);
1959
+ }
1960
+ }
1961
+
1962
+ _beginDrag(parent, element, event) {
1963
+ var that = this;
1964
+
1965
+ if (that._dragDetails) {
1966
+ that._dragDetails.feedback.remove();
1967
+ }
1968
+
1969
+ var feedback = document.createElement('div');
1970
+ var overlay = document.createElement('div');
1971
+ var tabs = parent.querySelector('.jqx-layout-tab-strip');
1972
+ var label = '';
1973
+
1974
+ if (tabs) {
1975
+ for (var i = 0; i < Array.from(tabs.children).length; i++) {
1976
+ if (i === parent.selectedIndex) {
1977
+ label = tabs.children[i].innerText;
1978
+ }
1979
+ }
1980
+ }
1981
+
1982
+ feedback.innerHTML = `<jqx-split-layout><jqx-tab-layout-group><jqx-tab-layout-item label="${label}"></jqx-tab-layout-item></jqx-tab-layout-group></jqx-split-layout>`
1983
+ that._feedback = feedback;
1984
+ that._feedback.classList.add('jqx-split-layout-feedback', 'jqx-split-layout', 'jqx-widget');
1985
+
1986
+ overlay.classList.add('jqx-split-layout-overlay');
1987
+
1988
+ that._dragDetails = {
1989
+ element: element.content,
1990
+ item: element.item,
1991
+ layoutGroup: element.group,
1992
+ parent: parent,
1993
+ overlay: overlay,
1994
+ feedback: feedback,
1995
+ pageX: event.pageX,
1996
+ pageY: event.pageY
1997
+ }
1998
+ }
1999
+
2000
+ moveChildren(oldItem, newItem) {
2001
+ newItem.innerHTML = '';
2002
+ var content = oldItem;
2003
+
2004
+ while (content.firstChild) {
2005
+ var child = content.firstChild;
2006
+ newItem.appendChild(child);
2007
+ }
2008
+ }
2009
+
2010
+ createLayoutItem(type, position) {
2011
+ var that = this;
2012
+
2013
+ var getLayoutItem = function () {
2014
+ var item = document.createElement('jqx-layout-item');
2015
+
2016
+ item.innerHTML = '';
2017
+
2018
+ that.dispatchEvent(new CustomEvent('createItem', { type: 'layoutItem', item: item }));
2019
+
2020
+ return item;
2021
+ }
2022
+
2023
+ var getTabLayoutItem = function () {
2024
+ var item = document.createElement('jqx-tab-layout-item');
2025
+
2026
+ item.innerHTML = '';
2027
+
2028
+ that.dispatchEvent(new CustomEvent('createItem', { type: 'tabLayoutItem', item: item }));
2029
+
2030
+ return item;
2031
+ }
2032
+
2033
+ var getLayoutGroup = function (position) {
2034
+ var item = document.createElement('jqx-layout-group');
2035
+ var orientation = position === 'top' || position === 'bottom' ? 'horizontal' : 'vertical';
2036
+
2037
+ that.dispatchEvent(new CustomEvent('createGroup', { type: 'layoutGroup', item: item }));
2038
+
2039
+ item.setAttribute('orientation', orientation);
2040
+ item.orientation = orientation;
2041
+
2042
+ return item;
2043
+ }
2044
+
2045
+ var getTabLayoutGroup = function (position) {
2046
+ var item = document.createElement('jqx-tab-layout-group');
2047
+ var orientation = position === 'top' || position === 'bottom' ? 'horizontal' : 'vertical';
2048
+
2049
+ item.setAttribute('orientation', orientation);
2050
+ item.orientation = orientation;
2051
+
2052
+ that.dispatchEvent(new CustomEvent('tabLayoutGroup', { type: 'layoutGroup', item: item }));
2053
+
2054
+ return item;
2055
+ }
2056
+
2057
+ if (type === 'layoutItem' || !type) {
2058
+ return getLayoutItem();
2059
+ }
2060
+ else if (type === 'tabLayoutItem' || !type) {
2061
+ return getTabLayoutItem();
2062
+ }
2063
+ else if (type === 'tabLayoutGroup') {
2064
+ return getTabLayoutGroup(position);
2065
+ }
2066
+ else {
2067
+ return getLayoutGroup(position);
2068
+ }
2069
+ }
2070
+
2071
+ _addTabLayoutItem(targetItem, position, myItem) {
2072
+ var that = this;
2073
+ var newItem = that.createLayoutItem('tabLayoutItem');
2074
+
2075
+ var parentLayoutGroup = targetItem.closest('jqx-tab-layout-group');
2076
+ var layoutGroup;
2077
+
2078
+ if (myItem) {
2079
+ newItem.label = myItem.label;
2080
+ newItem.modifiers = myItem.modifiers;
2081
+ that.moveChildren(myItem, newItem);
2082
+ }
2083
+
2084
+ var resetGroup = function (group) {
2085
+ for (var i = 0; i < group.children.length; i++) {
2086
+ var child = group.children[i];
2087
+
2088
+ child.removeAttribute('size');
2089
+ }
2090
+
2091
+ group.removeAttribute('size');
2092
+ }
2093
+
2094
+ var addTabItemChild = function (position) {
2095
+ targetItem.removeAttribute('size');
2096
+
2097
+ if (targetItem.querySelector('jqx-layout-group')) {
2098
+ that._addLayoutItem(targetItem.querySelector('jqx-layout-group'), position);
2099
+ }
2100
+ else {
2101
+ layoutGroup = that.createLayoutItem('layoutGroup', position);
2102
+
2103
+ var newLayoutItem = that.createLayoutItem();
2104
+ that.moveChildren(targetItem, newLayoutItem)
2105
+
2106
+ if (position === 'top' || position === 'left') {
2107
+ layoutGroup.appendChild(that.createLayoutItem());
2108
+ layoutGroup.appendChild(newLayoutItem);
2109
+ }
2110
+ else {
2111
+ layoutGroup.appendChild(newLayoutItem);
2112
+ layoutGroup.appendChild(that.createLayoutItem());
2113
+ }
2114
+
2115
+ targetItem.appendChild(layoutGroup);
2116
+ }
2117
+ }
2118
+
2119
+ var addRootTab = function (tabLayoutGroup, position) {
2120
+
2121
+ var parentLayoutGroup = targetItem.parentElement;
2122
+ var layoutGroup = targetItem;
2123
+ var newLayoutGroup = that.createLayoutItem('layoutGroup', position);
2124
+
2125
+ parentLayoutGroup.insertBefore(newLayoutGroup, layoutGroup);
2126
+
2127
+ if (position === 'top' || position === 'left') {
2128
+ newLayoutGroup.append(tabLayoutGroup);
2129
+ newLayoutGroup.appendChild(layoutGroup);
2130
+ }
2131
+ else {
2132
+ newLayoutGroup.appendChild(layoutGroup);
2133
+ newLayoutGroup.append(tabLayoutGroup);
2134
+ }
2135
+
2136
+ if (layoutGroup.getAttribute('data-id') === 'root') {
2137
+ layoutGroup.setAttribute('data-id', newLayoutGroup.getAttribute('data-id'));
2138
+ newLayoutGroup.setAttribute('data-id', 'root');
2139
+ that.$.itemsContainer = newLayoutGroup;
2140
+ }
2141
+
2142
+ resetGroup(layoutGroup);
2143
+ resetGroup(parentLayoutGroup);
2144
+ }
2145
+
2146
+ if (myItem) {
2147
+ switch (position) {
2148
+ case 'center': {
2149
+ if (targetItem instanceof TabLayoutGroup || targetItem instanceof TabLayoutItem) {
2150
+ parentLayoutGroup.appendChild(newItem);
2151
+ }
2152
+ else {
2153
+ var tabLayoutGroup = that.createLayoutItem('tabLayoutGroup', 'top');
2154
+ tabLayoutGroup.appendChild(newItem);
2155
+
2156
+ if (targetItem instanceof LayoutGroup && !(targetItem instanceof TabLayoutItem)) {
2157
+ targetItem.appendChild(tabLayoutGroup);
2158
+ resetGroup(targetItem);
2159
+ }
2160
+ else if (targetItem instanceof LayoutItem) {
2161
+ layoutGroup = that.createLayoutItem('layoutGroup');
2162
+
2163
+ targetItem.parentElement.insertBefore(layoutGroup, targetItem);
2164
+ layoutGroup.appendChild(targetItem);
2165
+ layoutGroup.appendChild(tabLayoutGroup);
2166
+ resetGroup(layoutGroup);
2167
+ }
2168
+ }
2169
+ }
2170
+ break;
2171
+ case 'left':
2172
+ case 'right': {
2173
+ var tabLayoutGroup = that.createLayoutItem('tabLayoutGroup', 'top');
2174
+ tabLayoutGroup.appendChild(newItem);
2175
+ if (targetItem.getAttribute('data-id') === 'root') {
2176
+ tabLayoutGroup.position = position;
2177
+ addRootTab(tabLayoutGroup, position);
2178
+ }
2179
+ else {
2180
+ addRootTab(tabLayoutGroup, position);
2181
+ }
2182
+ }
2183
+ break;
2184
+ case 'top':
2185
+ case 'bottom': {
2186
+ var tabLayoutGroup = that.createLayoutItem('tabLayoutGroup', 'top');
2187
+ tabLayoutGroup.appendChild(newItem);
2188
+
2189
+ if (targetItem.getAttribute('data-id') === 'root') {
2190
+ tabLayoutGroup.position = position;
2191
+ addRootTab(tabLayoutGroup, position);
2192
+ }
2193
+ else {
2194
+ addRootTab(tabLayoutGroup, position);
2195
+ }
2196
+ break;
2197
+ }
2198
+ }
2199
+
2200
+ return;
2201
+ }
2202
+
2203
+ switch (position) {
2204
+ case 'center':
2205
+ if (targetItem instanceof TabLayoutGroup || targetItem instanceof TabLayoutItem) {
2206
+ parentLayoutGroup.appendChild(newItem);
2207
+ }
2208
+ else {
2209
+ addTabItemChild();
2210
+ }
2211
+ break;
2212
+ case 'left':
2213
+ case 'right':
2214
+ if (targetItem instanceof TabLayoutGroup) {
2215
+ var firstItem = targetItem.querySelector('jqx-tab-layout-item');
2216
+
2217
+ if (firstItem && position === 'left') {
2218
+ targetItem.insertBefore(newItem, firstItem);
2219
+ }
2220
+ else {
2221
+ targetItem.appendChild(newItem);
2222
+ }
2223
+ }
2224
+ else if (targetItem instanceof TabLayoutItem) {
2225
+ var tabLayoutGroup = that.createLayoutItem('tabLayoutGroup', 'top');
2226
+ var parentLayoutGroup = targetItem.parentElement;
2227
+
2228
+ tabLayoutGroup.appendChild(newItem);
2229
+
2230
+ layoutGroup = that.createLayoutItem('layoutGroup');
2231
+
2232
+ parentLayoutGroup.parentElement.insertBefore(layoutGroup, parentLayoutGroup);
2233
+
2234
+ if (position === 'right') {
2235
+ layoutGroup.appendChild(parentLayoutGroup);
2236
+ layoutGroup.appendChild(tabLayoutGroup);
2237
+ }
2238
+ else if (position === 'left') {
2239
+ layoutGroup.appendChild(tabLayoutGroup);
2240
+ layoutGroup.appendChild(parentLayoutGroup);
2241
+ }
2242
+ }
2243
+ else if (myItem) {
2244
+ var tabLayoutGroup = that.createLayoutItem('tabLayoutGroup', 'top');
2245
+ tabLayoutGroup.appendChild(newItem);
2246
+
2247
+ if (targetItem instanceof LayoutGroup) {
2248
+ targetItem.insertBefore(targetItem.firstChild, tabLayoutGroup);
2249
+ }
2250
+ else if (targetItem instanceof LayoutItem) {
2251
+ layoutGroup = that.createLayoutItem('layoutGroup');
2252
+ layoutGroup.orientation = parentLayoutGroup.orientation;
2253
+ layoutGroup.setAttribute('orientation', parentLayoutGroup.orientation);
2254
+
2255
+ targetItem.removeAttribute('size');
2256
+ targetItem.parentElement.insertBefore(layoutGroup, targetItem);
2257
+ layoutGroup.appendChild(targetItem);
2258
+ layoutGroup.appendChild(tabLayoutGroup);
2259
+ }
2260
+ }
2261
+ else {
2262
+ addTabItemChild(position);
2263
+ }
2264
+ break;
2265
+ case 'top':
2266
+ case 'bottom':
2267
+ if (targetItem instanceof TabLayoutGroup) {
2268
+ layoutGroup = that.createLayoutItem('layoutGroup', 'top');
2269
+ targetItem.removeAttribute('size');
2270
+
2271
+ targetItem.parentElement.insertBefore(layoutGroup, targetItem);
2272
+
2273
+ if (position === 'top') {
2274
+ layoutGroup.appendChild(that.createLayoutItem());
2275
+ layoutGroup.appendChild(targetItem);
2276
+ }
2277
+ else {
2278
+ layoutGroup.appendChild(targetItem);
2279
+ layoutGroup.appendChild(that.createLayoutItem());
2280
+ }
2281
+ }
2282
+ else {
2283
+ addTabItemChild(position);
2284
+ }
2285
+ break;
2286
+ }
2287
+
2288
+ that.refresh();
2289
+ }
2290
+
2291
+ /**
2292
+ * Creates a new item by splitting the target Splitter
2293
+ */
2294
+ _addLayoutItem(targetItem, position, myItem) {
2295
+ var that = this;
2296
+
2297
+ if (!targetItem) {
2298
+ return;
2299
+ }
2300
+
2301
+ var resetGroup = function (group) {
2302
+ for (var i = 0; i < group.children.length; i++) {
2303
+ var child = group.children[i];
2304
+
2305
+ child.removeAttribute('size');
2306
+ }
2307
+
2308
+ group.removeAttribute('size');
2309
+ }
2310
+
2311
+ var isTabItem = targetItem instanceof TabLayoutItem || targetItem instanceof TabLayoutGroup || (myItem && myItem instanceof TabLayoutItem);
2312
+
2313
+ if (isTabItem) {
2314
+ return that._addTabLayoutItem(targetItem, position, myItem);
2315
+ }
2316
+
2317
+ var newItem = that.createLayoutItem();
2318
+
2319
+ var parentLayoutGroup = targetItem.closest('.jqx-layout-group');
2320
+ var layoutGroup;
2321
+
2322
+ if (myItem) {
2323
+ that.moveChildren(myItem, newItem);
2324
+ }
2325
+
2326
+ if (position === 'center') {
2327
+ if (targetItem instanceof LayoutGroup) {
2328
+ layoutGroup = parentLayoutGroup;
2329
+ layoutGroup.appendChild(newItem);
2330
+
2331
+ resetGroup(layoutGroup);
2332
+ that.refresh();
2333
+
2334
+ return newItem;
2335
+ }
2336
+ else if (targetItem instanceof LayoutItem) {
2337
+ layoutGroup = that.createLayoutItem('layoutGroup');
2338
+ layoutGroup.orientation = parentLayoutGroup.orientation;
2339
+ layoutGroup.setAttribute('orientation', parentLayoutGroup.orientation);
2340
+
2341
+ targetItem.removeAttribute('size');
2342
+ targetItem.parentElement.insertBefore(layoutGroup, targetItem);
2343
+ layoutGroup.appendChild(targetItem);
2344
+ layoutGroup.appendChild(newItem);
2345
+
2346
+ that.refresh();
2347
+
2348
+ return layoutGroup;
2349
+ }
2350
+ }
2351
+
2352
+ if (parentLayoutGroup.orientation === 'vertical' && (position === 'left' || position === 'right') ||
2353
+ parentLayoutGroup.orientation === 'horizontal' && (position === 'top' || position === 'bottom')) {
2354
+ layoutGroup = parentLayoutGroup;
2355
+
2356
+ if (targetItem instanceof LayoutGroup) {
2357
+ if (position === 'left' || position === 'top') {
2358
+ layoutGroup.insertBefore(newItem, layoutGroup.children[0]);
2359
+ }
2360
+ else {
2361
+ layoutGroup.appendChild(newItem);
2362
+ }
2363
+
2364
+ resetGroup(targetItem);
2365
+ }
2366
+ else {
2367
+ var layoutGroupItems = layoutGroup.items,
2368
+ newItemIndex = Math.max(0, layoutGroupItems.indexOf(targetItem) + (position === 'top' || position === 'left' ? 0 : 1));
2369
+
2370
+ layoutGroup.insertBefore(newItem, layoutGroupItems[newItemIndex]);
2371
+ resetGroup(layoutGroup);
2372
+ }
2373
+ }
2374
+ else {
2375
+ if (targetItem instanceof LayoutGroup) {
2376
+ var parentLayoutGroup = targetItem.parentElement;
2377
+ layoutGroup = targetItem;
2378
+ var newLayoutGroup = that.createLayoutItem('layoutGroup', position);
2379
+
2380
+ parentLayoutGroup.insertBefore(newLayoutGroup, layoutGroup);
2381
+
2382
+ if (position === 'top' || position === 'left') {
2383
+ newLayoutGroup.append(newItem);
2384
+ newLayoutGroup.appendChild(layoutGroup);
2385
+ }
2386
+ else {
2387
+ newLayoutGroup.appendChild(layoutGroup);
2388
+ newLayoutGroup.append(newItem);
2389
+ }
2390
+
2391
+ if (layoutGroup.getAttribute('data-id') === 'root') {
2392
+ layoutGroup.setAttribute('data-id', newLayoutGroup.getAttribute('data-id'));
2393
+ newLayoutGroup.setAttribute('data-id', 'root');
2394
+ that.$.itemsContainer = newLayoutGroup;
2395
+ }
2396
+
2397
+ resetGroup(parentLayoutGroup);
2398
+ }
2399
+ else {
2400
+ layoutGroup = that.createLayoutItem('layoutGroup', position);
2401
+
2402
+ parentLayoutGroup.insertBefore(layoutGroup, targetItem);
2403
+
2404
+ if (position === 'top' || position === 'left') {
2405
+ layoutGroup.appendChild(newItem);
2406
+ layoutGroup.appendChild(targetItem);
2407
+ }
2408
+ else {
2409
+ layoutGroup.appendChild(targetItem);
2410
+ layoutGroup.appendChild(newItem);
2411
+ }
2412
+
2413
+ resetGroup(layoutGroup);
2414
+ }
2415
+ }
2416
+
2417
+ that.refresh();
2418
+
2419
+ return newItem;
2420
+ }
2421
+
2422
+ /**
2423
+ * Shows/Hides the Add buttons
2424
+ * @param {any} item
2425
+ */
2426
+ _handleButtonsVisibility(item) {
2427
+ var that = this;
2428
+
2429
+ if (!that._buttons) {
2430
+ that._buttons = document.createElement('div');
2431
+ that._buttons.classList.add('jqx-layout-buttons-container');
2432
+ that._buttons.innerHTML = `<div role="button" position="top"></div>
2433
+ <div role="button" position="bottom"></div>
2434
+ <div role="button" position="center"></div>
2435
+ <div role="button" position="left"></div>
2436
+ <div role="button" position="right"></div>`;
2437
+
2438
+ }
2439
+
2440
+ if (!item) {
2441
+ if (that._buttons.parentElement) {
2442
+ that._buttons.parentElement.removeChild(that._buttons);
2443
+
2444
+ return;
2445
+ }
2446
+ }
2447
+
2448
+ if (item) {
2449
+ var buttonPosition = item._buttonPosition || [],
2450
+ buttons = that._buttons.children;
2451
+
2452
+
2453
+ for (var b = 0; b < buttons.length; b++) {
2454
+ var button = buttons[b];
2455
+
2456
+ button.position = button.getAttribute('position');
2457
+ button.item = item;
2458
+ buttonPosition.length && buttonPosition.indexOf(button.getAttribute('position')) < 0 ? button.classList.add('jqx-hidden') : button.classList.remove('jqx-hidden');
2459
+
2460
+ button.onmouseenter = function () {
2461
+ button.setAttribute('hover', '');
2462
+ }
2463
+ button.onmouseleave = function () {
2464
+ button.removeAttribute('hover')
2465
+ }
2466
+ }
2467
+
2468
+ if (that.allowLiveSplit && that._buttons.parentElement !== item) {
2469
+ item.appendChild(that._buttons);
2470
+ }
2471
+ }
2472
+ }
2473
+
2474
+ _handleDropArea(item, position = 'center') {
2475
+ var that = this;
2476
+
2477
+ var positionDropArea = function (position) {
2478
+ var areaSize = 50;
2479
+
2480
+ switch (position) {
2481
+ case 'left':
2482
+ that._dropArea.style.top = '0px';
2483
+ that._dropArea.style.left = '0px';
2484
+ that._dropArea.style.width = areaSize + '%';
2485
+ that._dropArea.style.height = '100%';
2486
+ break;
2487
+ case 'right':
2488
+ that._dropArea.style.top = '0px';
2489
+ that._dropArea.style.left = `calc(100% - ${areaSize}%)`;
2490
+ that._dropArea.style.width = areaSize + '%';
2491
+ that._dropArea.style.height = '100%';
2492
+ break;
2493
+ case 'top':
2494
+ that._dropArea.style.top = '0px';
2495
+ that._dropArea.style.left = '0px';
2496
+ that._dropArea.style.width = '100%';
2497
+ that._dropArea.style.height = areaSize + '%';
2498
+ break;
2499
+ case 'bottom':
2500
+ that._dropArea.style.top = `calc(100% - ${areaSize}%)`;
2501
+ that._dropArea.style.left = '0px';
2502
+ that._dropArea.style.width = '100%';
2503
+ that._dropArea.style.height = areaSize + '%';
2504
+ break;
2505
+ case 'center':
2506
+ that._dropArea.style.top = '0px';
2507
+ that._dropArea.style.left = '0px';
2508
+ that._dropArea.style.width = '100%';
2509
+ that._dropArea.style.height = '100%';
2510
+ break;
2511
+ }
2512
+ }
2513
+
2514
+ if (that._dropArea && that._dropArea.parentElement === item) {
2515
+ positionDropArea(position);
2516
+ return;
2517
+ }
2518
+
2519
+ if (that._dropArea) {
2520
+ that._dropArea.remove();
2521
+ }
2522
+
2523
+ if (!that._dragDetails || !item) {
2524
+ return;
2525
+ }
2526
+
2527
+ that._dropArea = document.createElement('div');
2528
+ that._dropArea.classList.add('jqx-layout-drop-area');
2529
+
2530
+ item.appendChild(that._dropArea);
2531
+
2532
+ that._dropArea.style.opacity = 1;
2533
+ positionDropArea(position);
2534
+ }
2535
+
2536
+ _handleSplitter(item) {
2537
+ var that = this;
2538
+
2539
+ if (!item) {
2540
+ return;
2541
+ }
2542
+
2543
+ if (item.hasAttribute('tab')) {
2544
+ item = item.parentElement;
2545
+ }
2546
+
2547
+ if (item._splitter) {
2548
+ item._splitter.remove();
2549
+ }
2550
+
2551
+ if (!item._splitter) {
2552
+ item._splitter = document.createElement('div');
2553
+ }
2554
+
2555
+ if (that._dragDetails && that._dragDetails.dragging) {
2556
+ item._splitter.remove();
2557
+ return;
2558
+ }
2559
+
2560
+ if (item.modifiers.indexOf('resize') === -1) {
2561
+ return;
2562
+ }
2563
+
2564
+ item.appendChild(item._splitter);
2565
+
2566
+ var layoutGroup = item.parentElement;
2567
+
2568
+ if (layoutGroup) {
2569
+ item._splitter.className = 'jqx-layout-splitter';
2570
+
2571
+ item._splitter.item = item;
2572
+
2573
+ item._splitter.removeAttribute('drag');
2574
+
2575
+ var orientation = layoutGroup.orientation;
2576
+
2577
+ if (item.nextElementSibling && item.nextElementSibling.hasAttribute('data-id')) {
2578
+ item._splitter.classList.add(orientation);
2579
+ }
2580
+ else if (item.previousElementSibling && item.previousElementSibling.hasAttribute('data-id')) {
2581
+ item._splitter.classList.add(orientation);
2582
+ item._splitter.classList.add('last');
2583
+ }
2584
+
2585
+ var handleResize = function (splitter) {
2586
+ splitter.style.top = '';
2587
+ splitter.style.left = '';
2588
+ splitter.style.bottom = '';
2589
+ splitter.style.right = '';
2590
+
2591
+ splitter.onpointerdown = function (event) {
2592
+ var item = event.target.item;
2593
+ item.style.overflow = 'hidden';
2594
+
2595
+ that._resizeDetails = {
2596
+ splitter: event.target,
2597
+ splitterRect: event.target.getBoundingClientRect(),
2598
+ itemRect: item.getBoundingClientRect(),
2599
+ item: item,
2600
+ itemSize: item.size,
2601
+ group: item.parentElement,
2602
+ clientX: event.clientX,
2603
+ clientY: event.clientY
2604
+ }
2605
+
2606
+ if (that._selectedItem !== item) {
2607
+ that.querySelectorAll('[data-id]').forEach(function (i) { i.removeAttribute('selected') });
2608
+ that.selectedIndex = item.getAttribute('index');
2609
+ item.setAttribute('selected', '');
2610
+ that._selectedItem = item;
2611
+ that._handleButtonsVisibility(item);
2612
+ }
2613
+
2614
+ if (item.previousElementSibling && item.previousElementSibling.hasAttribute('data-id')) {
2615
+ that._resizeDetails.previousItemRect = item.previousElementSibling.getBoundingClientRect();
2616
+ that._resizeDetails.previousItem = item.previousElementSibling;
2617
+ that._resizeDetails.previousItemSize = item.previousElementSibling.size;
2618
+ that._resizeDetails.previousItem.style.overflow = 'hidden';
2619
+ }
2620
+ else {
2621
+ that._resizeDetails.previousItemRect = null;
2622
+ that._resizeDetails.previousItem = null;
2623
+ }
2624
+
2625
+ if (item.nextElementSibling && item.nextElementSibling.hasAttribute('data-id')) {
2626
+ that._resizeDetails.nextItemRect = item.nextElementSibling.getBoundingClientRect();
2627
+ that._resizeDetails.nextItem = item.nextElementSibling;
2628
+ that._resizeDetails.nextItemSize = item.nextElementSibling.size;
2629
+ that._resizeDetails.nextItem.style.overflow = 'hidden';
2630
+ }
2631
+ else {
2632
+ that._resizeDetails.nextItemRect = null;
2633
+ that._resizeDetails.nextItem = null;
2634
+ }
2635
+ }
2636
+ }
2637
+
2638
+ handleResize(item._splitter);
2639
+ }
2640
+ }
2641
+ }
2642
+
2643
+
2644
+ customElements.define('jqx-layout-group', LayoutGroup);
2645
+ customElements.define('jqx-layout-item', LayoutItem);
2646
+ customElements.define('jqx-tab-layout-group', TabLayoutGroup);
2647
+ customElements.define('jqx-tab-layout-item', TabLayoutItem);
2648
+ customElements.define('jqx-split-layout', SplitLayout);
2649
+
2650
+ })();
2651
+
2652
+
198
2653
 
199
2654
  /* tslint:disable */
200
2655
  /* eslint-disable */
@@ -1293,18 +3748,6 @@ class Barcode {
1293
3748
 
1294
3749
 
1295
3750
 
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
3751
  /* tslint:disable */
1309
3752
  /* eslint-disable */
1310
3753
  (function(){
@@ -2632,18 +5075,6 @@ class QRcode {
2632
5075
 
2633
5076
 
2634
5077
 
2635
-
2636
-
2637
-
2638
-
2639
-
2640
-
2641
-
2642
-
2643
-
2644
-
2645
-
2646
-
2647
5078
  /* tslint:disable */
2648
5079
  /* eslint-disable */
2649
5080
  (function(){
@@ -3045,18 +5476,6 @@ class QRcode {
3045
5476
 
3046
5477
 
3047
5478
 
3048
-
3049
-
3050
-
3051
-
3052
-
3053
-
3054
-
3055
-
3056
-
3057
-
3058
-
3059
-
3060
5479
  /* tslint:disable */
3061
5480
  /* eslint-disable */
3062
5481
  (function(){
@@ -3446,18 +5865,6 @@ class QRcode {
3446
5865
 
3447
5866
 
3448
5867
 
3449
-
3450
-
3451
-
3452
-
3453
-
3454
-
3455
-
3456
-
3457
-
3458
-
3459
-
3460
-
3461
5868
  (function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxGantt","",{});a.extend(a.jqx._jqxGantt.prototype,{defineInstance:function(){var b={width:800,height:400,disabled:false,rtl:false,adjustToNonworkingTime:false,autoSchedule:false,autoScheduleStrictMode:false,autoScrollStep:5,columnMenu:false,columnMinWidth:"50px",columnResize:false,columnResizeFeedback:false,currentTime:new Date(),currentTimeIndicator:false,currentTimeIndicatorInterval:1,dataExportFileName:"jqxGanttChart",source:[],dateEnd:"",dateStart:"",dateMarkers:[],dayFormat:"short",disableAutoScroll:false,disableTaskDrag:false,disableTaskProgressChange:false,disableTaskResize:false,disableSelection:false,disableSegmentDrag:false,disableSegmentResize:false,disableWindowEditor:false,durationUnit:"milisecond",filterRow:false,firstDayOfWeek:-1,groupByResources:false,headerTemplate:null,hourFormat:"default",hideDateMarkers:false,hideTimelineHeaderDetails:false,hideTimelineSecondHeaderDetails:true,hideTimelineHeader:false,hideResourcePanel:false,showSelectionColumn:false,infiniteTimeline:false,infiniteTimelineStep:5,inverted:false,keyboardNavigation:false,monthFormat:"short",monthScale:"day",max:new Date(2100,0,1),min:new Date(1900,0,1),nonworkingDays:[],nonworkingHours:[],onTaskRender:null,popupWindowCustomizationFunction:null,popupWindowTabs:["general","dependency","segments"],progressLabelFormatFunction:null,resizeHandlesVisibility:"auto",quarterFormat:"short",resourceColumns:[{label:"resourceColumnLabel",value:"label"}],resourceFiltering:false,resourceGroupFormatFunction:null,resourcePanelHeaderTemplate:null,resourcePanelMin:100,resourcePanelSize:"",resourcePanelRefreshRate:0,resourceTimelineFormatFunction:null,resourceTimelineMode:"diagram",resourceTimelineView:"hours",selectedTaskIds:[],selectedResourceIds:[],shadeUntilCurrentTime:false,showBaseline:false,showProgressLabel:false,snapToNearest:false,sortFunction:null,sortMode:"none",taskColumns:[{label:"taskColumnLabel",value:"label"}],taskFiltering:false,taskPanelMin:200,taskPanelSize:"",timelineHeaderFormatFunction:null,timelineMin:200,treeMin:100,treeSize:"20%",tooltip:false,view:"year",yearFormat:"numeric",weekFormat:"long",events:["change"]};if(this===a.jqx._jqxGantt.prototype){return b}a.extend(true,this,b);return b},createInstance:function(b){this.render()},localize:function(e){if(!e){this.messages={duplicateIds:"{{elementType}}: DataSource contains duplicate ids. Tasks should have unique ids. The following ids are duplicating: {{duplicates}}.",invalidNonworkingRange:"{{elementType}}: Invalid {{property}} value. {{property}} should not contain all possible days/hours because it will result in an endless timeline. The value has been validated by removing the last item from the new value range.",invalidValue:"{{elementType}}: Invalid {{property}} value. {{property}} should be of type {{typeOne}} or {{typeTwo}}.",incorrectArgument:"{{elementType}}: Incorrect argument {{argumentName}} in method {{methodName}}.",outOfBounds:"{{elementType}}: Out of bounds argument {{argumentName}} in method {{methodName}}.",missingReference:"{{elementType}}: Missing reference to {{file}} in method {{methodName}}.",alreadyExists:"{{elementType}}: The item already exists when calling the {{methodName}} method.",notExisting:"{{elementType}}: The item does not exists when calling the {{methodName}} method.",notAProject:"{{elementType}}: The {{argumentName}} argument in {{methodName}} method does not reference an item of type 'project'.",noId:"jqxGanttChart requires an id in order to save/load/clear a state.",ok:"Ok",add:"Add",remove:"Remove",cancel:"Cancel","delete":"Delete",confirm:"{{componentName}} will be deleted permanently, <b>are you sure? </b>",taskColumnLabel:"Task Name",resourceColumnLabel:"Resource Name",deleteLink:"Delete link",unassigned:"Unassigned",generalTab:"General",dependencyTab:"Dependency",segmentsTab:"Segments",segment:"Segment",dependencyValidation:"*The Task cannot be connected to itself.",segmentsCountValidation:"*Segmented Tasks must have at least 2 segments. ",segmentConflictError:'*The Segment "{{label}}" is in conflict, because it starts on/before and ends on/after the {{dateConflict}} of Segment "{{conflictLabel}}." ',segmentStartError:'*The Segment "{{label}}" cannot start before it ends and cannot end before it starts.',segmentEndError:'*The Segment "{{label}}" cannot start when it ends.',segmentRangeError:'*The Segment "{{label}}" is out of Task date range. The first segment must start when the task starts and the last segment must end when the task ends.',label:"Label",duration:"Duration",dateStart:"Date Start",dateEnd:"Date End",id:"Id",name:"Name",type:"Type",lag:"Lag",startToStart:"Start-To-Start",endToStart:"End-To-Start",endToEnd:"End-To-End",startToEnd:"Start-To-End",overdue:"Overdue",weeks:"week(s)",days:"day(s)",hours:"hour(s)",minutes:"minute(s)",seconds:"second(s)",miliseconds:"milisecond(s)",task:"Task",resource:"Resource",assignments:"Assignments",startTask:"Task Start",endTask:"Task End",deadline:"Deadline",quarter:"Quarter",quarterShort:"Q"}}if(this.gantt){var d=Object.keys(this.messages);for(var b=0;b<d.length;b++){var c=d[b];if(this.gantt.messages.en[c]!==undefined){this.gantt.messages.en[c]=this.messages[c]}}}},render:function(){var e=this;if(this.host.children().length>0){this._removeHandlers();this.host.empty()}this.host.addClass(this.toThemeProperty("jqx-widget"));this.host.addClass(this.toThemeProperty("jqx-gantt"));this.host.width(this.width);this.host.height(this.height);var g=this.host.width();var d=this.host.height();var c;var f=this.rtl?"rtl":"ltr";if(!e.gantt){var b=document.createElement("jqx-gantt-chart");e.gantt=b;b.style.width="100%";b.style.height="100%"}e._refreshProperties();if(e.gantt.parentNode===null){e.element.appendChild(e.gantt)}},_refreshProperties:function(){var e=this;var c=Object.keys(e.gantt.properties);for(var d=0;d<c.length;d++){var b=c[d];if(b==="dataSource"){e.gantt.dataSource=e.source;continue}if(b==="tooltip"){e.gantt.tooltip.enabled=e.tooltip;continue}if(b==="dataExportFileName"){e.gantt.dataExport.fileName=e.dataExportFileName;continue}if(e[b]!==undefined&&e.gantt[b]!==e[b]&&e.gantt[b]!==undefined){e.gantt[b]=e[b]}}},refresh:function(b){if(!b){this.render()}},destroy:function(){a.jqx.utilities.resize(this.host,null,true);this.host.remove()},propertyChangedHandler:function(b,c,e,d){if(e!=d||d instanceof Object){if(c==="width"||c==="height"){b.host.width(this.width);b.host.height(this.height)}b._refreshProperties()}},_raiseEvent:function(g,e){var c=this.events[g];var f=new a.Event(c);f.owner=this;f.args=e;try{var b=this.host.trigger(f)}catch(d){}return b},_removeHandlers:function(){},addFilter:function(b,c){if(!this.gantt){return}this.gantt.addFilter(b,c)},clearSelection:function(){if(!this.gantt){return}this.gantt.clearSelection()},ensureVisible:function(c,b){if(!this.gantt){return}this.gantt.ensureVisible(c,b)},removeAllConnections:function(){if(!this.gantt){return}this.gantt.removeAllConnections()},removeConnection:function(d,b,c){if(!this.gantt){return}this.gantt.removeConnection(d,b,c)},removeTaskConnection:function(b,c){if(!this.gantt){return}this.gantt.removeTaskConnection(b,c)},beginUpdate:function(){if(!this.gantt){return}this.gantt.beginUpdate()},endUpdate:function(){if(!this.gantt){return}this.gantt.endUpdate()},clearFilters:function(b){if(!this.gantt){return}this.gantt.clearFilters(b)},clearSort:function(b){if(!this.gantt){return}this.gantt.clearSort(b)},clearResources:function(){if(!this.gantt){return}this.gantt.clearResources()},createConnection:function(d,b,c){if(!this.gantt){return}this.gantt.createConnection(d,b,c)},collapse:function(b){if(!this.gantt){return}this.gantt.collapse(b)},expand:function(b){if(!this.gantt){return}this.gantt.expand(b)},exportData:function(c,b){if(!this.gantt){return}return this.gantt.exportData(c,b)},print:function(){if(!this.gantt){return}this.gantt.print()},getConnectionDetails:function(b){if(!this.gantt){return}return this.gantt.getConnectionDetails(b)},getConnections:function(){if(!this.gantt){return}return this.gantt.getConnections()},getState:function(){if(!this.gantt){return}return this.gantt.getState()},getTask:function(b){if(!this.gantt){return}return this.gantt.getTask(b)},getTasks:function(){if(!this.gantt){return}return this.gantt.getTasks()},getResource:function(b){if(!this.gantt){return}return this.gantt.getResource(b)},getResources:function(){if(!this.gantt){return}return this.gantt.getResources()},getItemPath:function(b){if(!this.gantt){return}return this.gantt.getItemPath(b)},getTaskIndex:function(b){if(!this.gantt){return}return this.gantt.getTaskIndex(b)},getTaskProject:function(b){if(!this.gantt){return}return this.gantt.getTaskProject(b)},getTaskConnections:function(b){if(!this.gantt){return}return this.gantt.getTaskConnections(b)},getResourceIndex:function(b){if(!this.gantt){return}return this.gantt.getResourceIndex(b)},getResourceTasks:function(b){if(!this.gantt){return}return this.gantt.getResourceTasks(b)},getSelectedIds:function(){if(!this.gantt){return}return this.gantt.getSelectedIds()},getSelectedTasks:function(){if(!this.gantt){return}return this.gantt.getSelectedTasks()},getSelectedResources:function(){if(!this.gantt){return}return this.gantt.getSelectedResources()},getWorkingHours:function(){if(!this.gantt){return}return this.gantt.getWorkingHours()},isWorkingDay:function(b){if(!this.gantt){return}return this.gantt.isWorkingDay(b)},clearState:function(){if(!this.gantt){return}this.gantt.clearState()},loadState:function(b){if(!this.gantt){return}this.gantt.loadState(b)},saveState:function(){if(!this.gantt){return}this.gantt.saveState()},insertTask:function(b,d,c){if(!this.gantt){return}return this.gantt.insertTask(b,d,c)},openWindow:function(b){if(!this.gantt){return}return this.gantt.openWindow(b)},closeWindow:function(){if(!this.gantt){return}this.gantt.closeWindow()},updateTask:function(b,c){if(!this.gantt){return}this.gantt.updateTask(b,c)},removeTask:function(b){if(!this.gantt){return}this.gantt.removeTask(b)},setWorkTime:function(b){if(!this.gantt){return}this.gantt.setWorkTime(b)},selectTask:function(b){if(!this.gantt){return}this.gantt.selectTask(b)},selectResource:function(b){if(!this.gantt){return}this.gantt.selectResource(b)},sort:function(b){if(!this.gantt){return}this.gantt.sort(b)},unselectTask:function(b){if(!this.gantt){return}this.gantt.unselectTask(b)},unselectResource:function(b){if(!this.gantt){return}this.gantt.unselectResource(b)},unsetWorkTime:function(b){if(!this.gantt){return}this.gantt.unsetWorkTime(b)},hideTooltip:function(){if(!this.gantt){return}this.gantt.hideTooltip()},showTooltip:function(c,b){if(!this.gantt){return}this.gantt.showTooltip(c,b)}})})(jqxBaseFramework)})();
3462
5869
 
3463
5870
  (function(){if(typeof document==="undefined"){return}(function(a){a.jqx.jqxWidget("jqxTimeline","",{});a.extend(a.jqx._jqxTimeline.prototype,{defineInstance:function(){var b={disabled:false,position:"both",collapsible:true,autoWidth:false,horizontal:false,source:null};if(this===a.jqx._jqxTimeline.prototype){return b}a.extend(true,this,b);return b},createInstance:function(f){var g=this;var d=document.createElement("div");g.element.appendChild(d);g.element.classList.add("jqx-widget","jqx-timeline");d.classList.add("jqx-container");if(g.theme){g.element.classList.add("jqx-widget-"+g.theme)}var e=document.createElement("div");e.classList.add("jqx-timeline-near-items");var c=document.createElement("div");c.classList.add("jqx-timeline-track");var b=document.createElement("div");b.classList.add("jqx-timeline-far-items");d.appendChild(e);d.appendChild(c);d.appendChild(b);g.$={};g.$.container=d;g.$.nearItems=e;g.$.track=c;g.$.farItems=b},render:function(){var b=this;b.element.setAttribute("role","navigation");b._render()},refresh:function(){var b=this;b._render()},propertyChangedHandler:function(c,b,f,e){var d=this;switch(b){case"theme":d.element.classList.remove("jqx-widget-"+f);break;case"source":d._render();return}d._render()},_render:function(){var f=this;if(f.theme){f.element.classList.add("jqx-widget-"+f.theme)}if(!f.source){f.$.nearItems.innerHTML="";f.$.farItems.innerHTML="";return}f.$.nearItems.innerHTML="";f.$.farItems.innerHTML="";f.$.track.innerHTML="";f.$.nearItems.style.height="";f.$.nearItems.style.width="";f.$.farItems.style.height="";f.$.farItems.style.width="";var d=[];var g=[];if(f.horizontal){f.element.setAttribute("horizontal","")}else{f.element.removeAttribute("horizontal")}for(var c=0;c<f.source.length;c++){var e=f.source[c];var b=function(k){var l=document.createElement("div");l.classList.add("jqx-timeline-item");if(k.css){l.classList.add(k.css)}if(f.collapsible){l.setAttribute("collapsible","")}l.innerHTML='<div class="jqx-timeline-item-pointer"></div><div class="jqx-timeline-item-content"><div class="jqx-flex jqx-timeline-item-header"><div class="jqx-timeline-item-icon"><span class="'+k.icon+'"></span></div><div><div class="jqx-timeline-item-title">'+k.title+'</div><div class="jqx-timeline-item-subtitle">'+k.subtitle+'</div></div></div><div class="jqx-timeline-item-description">'+k.description+"</div></div>";l.onclick=function(){if(f.collapsible){l.classList.toggle("expanded");if(l.cloneNode){l.cloneNode.classList.toggle("expanded")}f._repositionDots()}};if(!f.collapsible){l.classList.add("expanded")}d.push(l);var j=document.createElement("div");j.classList.add("jqx-timeline-item-date");j.innerHTML=k.date;g.push(j);var i=document.createElement("div");i.timelineItem=l;if(f.position==="near"){f.$.nearItems.appendChild(l);f.$.farItems.appendChild(j)}else{if(f.position==="far"){f.$.farItems.appendChild(l);f.$.nearItems.appendChild(j)}else{f.$.nearItems.appendChild(l);var h=l.cloneNode(true);h.onclick=function(){if(f.collapsible){h.classList.toggle("expanded");l.classList.toggle("expanded");f._repositionDots()}};f.$.farItems.appendChild(h);l.cloneNode=h;if(c%2===0){l.classList.add("jqx-visibility-hidden");f.$.nearItems.appendChild(j);i.timelineItem=h}else{h.classList.add("jqx-visibility-hidden");f.$.farItems.appendChild(j)}}}i.classList.add("jqx-timeline-dot");if(k.dotCSS){i.classList.add(k.dotCSS)}f.$.track.appendChild(i);i.date=g[c]};b(e)}f._timelineItems=d;f._layout()},_layout:function(){var b=this;b._arrange();b._repositionDots()},_arrange:function(){var d=this;var c=d._timelineItems;if(d.horizontal===false){var f=function(h){var j=0;for(var g=0;g<h.children.length;g++){j=Math.max(j,h.children[g].offsetWidth)}return j+20};d.$.nearItems.style.width=f(d.$.nearItems)+"px";d.$.farItems.style.width=f(d.$.farItems)+"px"}else{var f=function(){var h=0;for(var g=0;g<c.length;g++){h+=c[g].offsetWidth}return h};var b=f();if(d.autoWidth){d.element.style.width=b+"px"}else{d.element.style.minWidth=b+"px";var e=(d.element.offsetWidth-b)/c.length;if(e>0){a.each(d.$.farItems.children,function(g){var h=d.$.farItems.children[g];h.style.marginLeft=h.style.marginRight=e/2+"px"});a.each(d.$.nearItems.children,function(g){var h=d.$.nearItems.children[g];h.style.marginLeft=h.style.marginRight=e/2+"px"})}}}},_repositionDots:function(){var d=this;for(var c=0;c<this.$.track.children.length;c++){var b=this.$.track.children[c];var e=d.offset(b.timelineItem);if(d.horizontal){b.style.left=e.left+(b.timelineItem.offsetWidth/2)-16-10+"px";b.date.style.marginLeft=b.date.style.marginRight="0px";b.date.style.left=e.left+b.timelineItem.offsetWidth/2-(b.date.offsetWidth/2)-26+"px"}else{b.style.top=e.top+(b.timelineItem.offsetHeight/2)-30+"px";b.date.style.top=e.top+(b.timelineItem.offsetHeight/2)-30+"px"}}},_offsetTop:function(b){var c=this;if(!b){return 0}return b.offsetTop+c._offsetTop(b.offsetParent)},_offsetLeft:function(b){var c=this;if(!b){return 0}return b.offsetLeft+c._offsetLeft(b.offsetParent)},offset:function(b){return{left:this._offsetLeft(b),top:this._offsetTop(b)}},_resizeHandler:function(){var b=this;b._layout()}})})(jqxBaseFramework)})();