UNPKG

realgrid

Version:

RealGrid is a javascript data grid component with various powerful functions such as editing, row grouping, filtering, and sorting data on web environment.

7 lines (6 loc) 2.05 MB
/** * RealGrid v2.10.0.2073 * Copyright (C) 2013-2026 WooriTech Inc. * All Rights Reserved. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).RealGrid={})}(this,(function(t){"use strict";var e={name:"RealGrid2",version:"2.10.0.2073",license:"enterprise",code:null},i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},i(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var r=function(){return r=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)};function n(t,e,i,o){return new(i||(i=Promise))((function(r,n){function s(t){try{l(o.next(t))}catch(t){n(t)}}function a(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}l((o=o.apply(t,e||[])).next())}))}function s(t,e){var i,o,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;n&&(n=0,a[0]&&(s=0)),s;)try{if(i=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){s.label=a[1];break}if(6===a[0]&&s.label<r[1]){s.label=r[1],r=a;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(a);break}r[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],o=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function a(t,e,i){if(i||2===arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var l,u=function(){function t(t,e,i,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===o&&(o=0),this.x=t,this.y=e,this.width=i,this.height=o}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},set:function(t){var e=t-this.x;this.x+=e,this.width-=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},set:function(t){var e=t-(this.x+this.width);this.width+=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},set:function(t){var e=t-this.y;this.y+=e,this.height-=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},set:function(t){var e=t-(this.y+this.height);this.height+=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.width||0===this.height},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.leftBy=function(t){return this.x+=t,this.width-=t,this},t.prototype.topBy=function(t){return this.y+=t,this.height-=t,this},t.prototype.bottomBy=function(t){return this.height+=t,this},t.prototype.setEmpty=function(){return this.width=this.height=0,this},t.prototype.move=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e,this},t.prototype.set=function(t,e,i,o){return this.x=t,this.y=e,this.width=i,this.height=o,this},t.prototype.setWidth=function(t){return this.width=t,this},t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.inflate=function(t,e,i,o){return void 0===t&&(t=0),void 0===e&&(e=void 0),void 0===i&&(i=void 0),void 0===o&&(o=void 0),e=void 0!==e?e:t,i=void 0!==i?i:t,o=void 0!==o?o:e,t&&(this.left=this.x-t),e&&(this.top=this.y-e),i&&(this.right=this.right+i),o&&(this.bottom=this.bottom+o),this},t.prototype.offset=function(t,e){return this.x+=t,this.y+=e,this},t.prototype.union=function(t){var e=this.clone();return e.left=Math.min(this.x,t.x),e.right=Math.max(this.right,t.right),e.top=Math.min(this.y,t.y),e.bottom=Math.max(this.bottom,t.bottom),e},t.prototype.toString=function(){return"{x: "+this.x+", y: "+this.y+", width: "+this.width+", height: "+this.height+"}"},t.Temp=new t,t}(),h="undefined"!=typeof window?window:{},c={ua:(l="undefined"!=typeof window&&window.navigator||{}).userAgent||"",platform:(l.platform||"").toUpperCase()},d=c.ua,p=c.platform,f=p.indexOf("MAC")>=0,_=p.indexOf("WIN")>=0,g=!!h.chrome,y=void 0!==h.InstallTrigger,m=!!h.safari||!g&&d.indexOf("Safari")>=0,v=/iPad|iPhone|iPod/.test(d)&&!h.MSStream,b=!!d.match(/Trident.*rv\:11\./),C=-1!==d.indexOf("MSIE 10"),w=-1!==d.indexOf("MSIE 9"),x=b||C||w,I=Date.now(),S=void 0,E=void 0,O=void 0,T=void 0,R=void 0;function P(t){return t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow)}function k(t){return t&&t.ownerDocument}function D(t){return t.defaultView||t.parentWindow}var M,F,L,A,N,V,$,B=function(){function t(){}return t.stopEvent=function(t,e){void 0===e&&(e=!1),t.preventDefault?(t.preventDefault(),t.stopPropagation()):t.returnValue=!1,e&&t.stopImmediatePropagation()},t.setDebugging=function(e,i,o){t.$$_debugging=i,t.$$_keyLog=o},t.isDebugging=function(){return t.$$_debugging},t.setSlotMode=function(e){t.$$_slotMode=e},t.setLanguage=function(e){t.$$_lang=e},Object.defineProperty(t,"language",{get:function(){return this.$$_lang},enumerable:!1,configurable:!0}),t.isSlotMode=function(){return t.$$_slotMode},t.log=function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];t.isDebugging()&&console.log(e,i)},t.keyLog=function(e){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];t.$$_keyLog&&console.log(e,i)},t.isArray=function(t){return Array.isArray(t)},t.isObject=function(t){return null!=t&&"object"==typeof t},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?Array.isArray(t)?t:[t]:e?[]:void 0},t.isNumber=function(t){return"number"==typeof t},t.getNumber=function(t,e){return isNaN(parseFloat(t))?e:parseFloat(t)},t.getTimer=function(){return(new Date).getTime()-I},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=Math.max(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,o=t.length,r=0;r<o;r++)if(null!=(i=t[r]))return i},t.included=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var o=e.length,r=0;r<o;r++)if(e[r]==t)return!0;return!1},t.valueIn=function(t,e){if("object"==typeof e)for(var i=Object.keys(e),o=0;o<i.length;o++)if(e[i[o]]===t)return!0;return!1},t.compareTextValue=function(t,e,i,o){if(t===e)return!0;var r=String(t),n=null==e?void 0:String(e);return!r&&!n||!(!r||!n)&&(i||(r=r.toLowerCase(),n=n.toLowerCase()),o?n.indexOf(r)>=0:r==n)},t.cast=function(t,e){return t instanceof e?t:null},t.toInt=function(t,e){var i=parseInt(t,e||10);return isNaN(i)?0:i},t.toFloat=function(t){var e=parseFloat(t);return isNaN(e)?0:e},t.hex=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i="0"),e=Math.max(e||2,1);var o=t.toString(16);return i=i||"0",new Array(e-o.length+1).join(i)+o},t.deepCopy=function(e){if(null==e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e);for(var i=t.isArray(e)?[]:{},o=0,r=Object.keys(e);o<r.length;o++){var n=r[o];e.hasOwnProperty(n)&&(i[n]=t.deepCopy(e[n]))}return i},t.extendObj=function(t,e){if(null==t||"object"!=typeof t||null==e||"object"!=typeof e)return e;for(var i=0,o=Object.keys(t);i<o.length;i++){var r=o[i];t.hasOwnProperty(r)&&void 0===e[r]&&(e[r]=t[r])}return e},t.getBounds=function(t){var e=new u;return e.x=t.offsetLeft,e.y=t.offsetTop,e.width=t.offsetWidth,e.height=t.offsetHeight,e},t.toStr=function(t){return"number"==typeof t?isNaN(t)?"":String(t):null!=t?String(t):""},t.setBounds=function(t,e,i,o,r){var n=t.style;n.left=e+"px",n.top=i+"px",n.width=o+"px",n.height=r+"px"},t.getClientRect=function(e){var i=e.getBoundingClientRect(),o=t.getZoom(e),r=new u(i.left/o,i.top/o,i.width/o,i.height/o);if("BODY"===e.tagName){var n=e.ownerDocument.defaultView;r.height=Math.max(r.height,e.scrollHeight,n.innerHeight),r.width=Math.max(r.width,e.scrollWidth,n.innerWidth)}return r.cx=e.offsetLeft,r.cy=e.offsetTop,r},t.adjustZoom=function(e){for(var i=1,o=e;o;){if(o.style.zoom){var r=getComputedStyle(o).zoom;if(isNaN(parseFloat(r))){i=1;break}i*=parseFloat(r)}o=o.parentElement}t.$$_zoom=100*i/100},t.getZoom=function(e,i){void 0===i&&(i=!1);var o=e.offsetWidth||e.scrollWidth,r=e.offsetHeight||e.scrollHeight,n=e.getBoundingClientRect(),s=NaN;try{if(n.height&&n.width?s=(n.height/r+n.width/o)/2:n.height?s=n.height/r:n.width&&(s=n.width/o),isNaN(s)){var a=getComputedStyle(e).zoom;a&&(s=parseFloat(a))}if(isNaN(s))throw new Error("zomm check fail")}catch(t){s=1}return i&&t.adjustZoom(e),Math.round(100*s)/100},t.getMargin=function(t){var e=0,i=0;if(t instanceof P(t).HTMLBodyElement)for(var o=t;o;){var r=getComputedStyle(o);"static"===r.position&&(e+=parseFloat(r.marginLeft)||0,i+=parseFloat(r.marginTop)||0),o=o.parentElement}return{x:e,y:i}},t.getChildIndex=function(t){if(t){var e=t.parentNode;if(e)for(var i=e.children,o=i.length;o--;)if(i[o]===t)return o}return-1},t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.clearElements=function(e){for(var i;i=e.lastChild;)t.clearElements(i),e.removeChild(i)},t.addChild=function(t,e){return!(!t||!e||e.parentNode===t)&&(t.appendChild(e),!0)},t.removeChild=function(t,e){return!(!t||!e||e.parentNode!==t)&&(t.removeChild(e),!0)},t.setTextContent=function(e,i){var o="string"==typeof i?i:null==i?"":String(i);e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE?e.firstChild.nodeValue=o:e[t.TextProp]=o},t.disableSelection=function(t){var e=t.style;e["-moz-user-select"]="-moz-none",e["-khtml-user-select"]="none",e["-webkit-user-select"]="none",e["-o-user-select"]="none",e["-ms-user-select"]="none",e["user-select"]="none"},t.setMobile=function(t){S=t},t.setIECompatMode=function(t){R=t},t.setTablet=function(t){O=t},t.isMobile=function(){return void 0!==S?S:(void 0===E&&(E=this.$_checkMobile()),E)},t.isIEMode=function(){return!t.isMobile()&&!t.isChromium&&R&&!1===navigator.msPointerEnabled},t.isTablet=function(){return void 0!==O?O:(void 0===T&&(T=this.$_checkTablet()),T)},t.$_checkTablet=function(){return t.isMobile()&&/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(d.toLowerCase())},t.$_checkMobile=function(){var t=!1;return(d.match(/Android/i)||d.match(/webOS/i)||d.match(/iPhone/i)||d.match(/iPad/i)||d.match(/iPod/i)||d.match(/BlackBerry/i)||d.match(/Windows Phone/i))&&(t=!0),t||(t="ontouchstart"in window&&d.indexOf("Macintosh")>=0),t},t.getBrowserSize=function(e){var i=e?e.ownerDocument:document,o=i.defaultView,r=i.body,n=i.documentElement,s=t.getZoom(r);return{width:o.innerWidth/s||n.clientWidth||r.clientWidth,height:o.innerHeight/s||n.clientHeight||r.clientHeight}},t.move=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.detach=function(t){var e=t&&t.parentElement;if(e)try{e.contains(t)&&e.removeChild(t)}catch(t){}return null},t.getSize=function(e){return t.getClientRect(e)},t.getScrolled=function(t){var e=t.body,i=D(t),o=t.documentElement;return{sx:i.pageXOffset||o.scrollLeft||e.scrollLeft,sy:i.pageYOffset||o.scrollTop||e.scrollTop}},t.getOffset=function(e){var i=t.getZoom(e),o=e.ownerDocument,r=o.defaultView,n=t.getClientRect(e),s=o.body,a=o.documentElement,l=r.pageYOffset||a.scrollTop||s.scrollTop,u=r.pageXOffset||a.scrollLeft||s.scrollLeft;1==i&&i!=t.$$_zoom?(l/=t.$$_zoom,u/=t.$$_zoom):(l/=i,u/=i);var h=a.clientTop||s.clientTop||0,c=a.clientLeft||s.clientLeft||0,d=n.left+u-c,p=n.top+l-h;return{x:Math.round(d),y:Math.round(p)}},t.isAncestorOf=function(t,e,i){var o;if(e instanceof HTMLElement)o=e;else for(var r=this.getComposedPath(i);r.length;){var n=r.shift();if(n instanceof HTMLElement){o=n;break}}for(;o;){if(o==t)return!0;o=o.parentElement}return!1},t.getComposedPath=function(t){if(t.composedPath)return t.composedPath();for(var e=t.target,i=[];e;)i.push(e),e=e.parentElement||e.parentNode;return i},t.equalNumbers=function(t,e){return isNaN(t)&&isNaN(e)||!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var o=0;o<i;++o)if(t[o]!==e[o])return!1;return!0},t.equalObjects=function(t,e){return t==e||JSON.stringify(t)===JSON.stringify(e)},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.incMonth=function(e,i){var o=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate(Math.min(o,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.incYear=function(e,i){var o=e.getDate();return e.setDate(1),e.setFullYear(e.getFullYear()+i),e.setDate(Math.min(o,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.setClassName=function(t,e){(e=e||"")!=t.className&&(t.className=e)},t.addClassName=function(t,e){if(e=e||"",t.classList)t.classList.add(e);else{var i=t.className.split(" ");i.indexOf(e)<0&&i.push(e),t.className=i.join(" ")}},t.removeClassName=function(t,e){if(t.classList)t.classList.remove(e);else{var i,o=t.className.split(" ");(i=o.indexOf(e))>=0&&o.splice(i,1),t.className=o.join(" ")}},t.setStyle=function(t,e){var i=e.style;for(var o in t)null!=t[o]?i[o]=t[o]:(i.removeProperty?i.removeProperty(o):i.removeAttribute&&i.removeAttribute(o),i[o]="")},t.getTextLength=function(t){for(var e=0,i=0,o=0;t&&(i=t.charCodeAt(o));o++)e+=i>>7?2:1;return e},t.escapeRegExp=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},t.isEmpty=function(t){return t&&Object.keys(t).length>0},t.isPassive=function(){if(null===t.$_supportPassive){t.$_supportPassive=!1;try{addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t.$_supportPassive=!0}}))}catch(e){t.log("passive not support")}}return t.$_supportPassive},t.hangulToChosungAll=function(e){for(var i="",o=0;o<e.length;o++){var r=e.charCodeAt(o)-44032;i+=r>-1&&r<11172?t.cho[Math.floor(r/588)]:e[o]}return i},t.hangulToChosung=function(e){var i={cho:e,org:e};if(/[ㄱ-힝]/.test(e)){var o=t.cho,r=e.charCodeAt(0);r>=12593&&r<=12622&&(i.org=void 0),(r-=44032)>=0&&r<11172&&(i.cho=o[Math.floor(r/588)])}return i},t.addQuot=function(t,e){return t&&(t.indexOf("\n")>=0||t.indexOf("\r\n")>=0||'"'==t.charAt(0))&&(t='"'+(t=t.replace(/\"/g,'""'))+'"'),t},t.addQuatation=function(t,e,i,o){return null!=t&&((i||o)&&(i&&t&&(t=t.replace(/\n/g,i)),o&&t&&(t=t.replace(/\r/g,o))),(e||t.indexOf("\n")>=0||t.indexOf(",")>=0||t.indexOf('"')>=0)&&(t='"'+t.replace(/\"/g,'""')+'"')),null===t?"":t},t.isClickableTemplate=function(t,e){return Array.prototype.some.call(t.querySelectorAll("input, textarea, a, select, button, [tabindex]"),(function(t){return e===t}))},t.isFocusableTemplate=function(t,e){return Array.prototype.some.call(t.querySelectorAll("input, textarea, select"),(function(t){var i=t.type;return t===e&&"button"!==i&&"checkbox"!==i}))},t.objectToCssText=function(t){return"string"==typeof t?t:t?Object.keys(t).filter((function(t){return!/\d|length/.test(t)})).map((function(e){return"".concat(e.split(/(?=[A-Z])/).join("-").toLowerCase(),":").concat(t[e])})).join(";"):null},t.getLast=function(t){return t[t.length-1]},t.camelToHyphen=function(t,e,i){return void 0===i&&(i="-"),t?e?t.split(/(?=[A-Z])/).join(i).toUpperCase():t.split(/(?=[A-Z])/).join(i).toLowerCase():t},t.find=function(t,e){for(var i=0;i<t.length;i++)if(e.call(null,t[i],i,t))return t[i]},t.isInteractive=function(t){var e=P(t);return t instanceof(null==e?void 0:e.HTMLInputElement)&&"checkbox"===t.type||t instanceof(null==e?void 0:e.HTMLAnchorElement)},t.assign=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var o=Object(t),r=0;r<e.length;r++){var n=e[r];if(null!=n)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}return o},t.setInert=function(t,e){e?t.removeAttribute("inert"):t.setAttribute("inert","")},t.insertBefore=function(t,e,i){if(e.nextElementSibling!==i)return t.insertBefore(e,i)},t.ctrlKey=function(e){var i=t.isMac||t.isiOS;return e&&(i&&e.metaKey||!i&&e.ctrlKey)},t.specialKey=function(t){return t&&(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)},t.resetPosition=function(e,i,o,r,n,s,a,l){var u=k(o),h=P(o),c=t.getBrowserSize(),d=t.getSize(e),p=i?t.getSize(i):{left:0,top:0},f=t.getZoom(u.body),_=c.width,g=c.height,y=t.getSize(o),m=h.pageXOffset||u.documentElement.scrollLeft,v=h.pageYOffset||u.documentElement.scrollTop;m/=f,v/=f,u.documentElement.scrollWidth>u.documentElement.clientWidth&&(g-=18),u.documentElement.scrollHeight>u.documentElement.clientHeight&&(_-=18);var b=t.getMargin(e);r+=b.x,n+=b.y,r+=p.left-d.left,n+=p.top-d.top,(t.ieTen||t.ieOld)&&(r+=u.documentElement.scrollLeft,n+=u.documentElement.scrollTop),n+y.height>g+v&&a&&(n=n-a.height-y.height)<0&&(n=g-y.height-2),t.isMobile()&&!t.isTablet()||!a||(d.bottom<a.bottom+y.height||g+v<a.bottom+y.height)&&(n=a.top-y.height-d.top-2),l?r=Math.max(0,r+s-y.width):r+y.width>_+m&&(r=_-y.width),t.isMobile()&&!t.isTablet()||o.offsetParent||(r+=u.documentElement.offsetLeft,n+=u.documentElement.offsetTop),t.move(o,Math.max(0,r),Math.max(0,n))},t.setEvent=function(t,e){Object.keys(e).forEach((function(i){0===i.indexOf("on")&&(t[i]=e[i])}))},t.assignConfig=function(t,e){e.columns&&t.setColumns(e.columns),e.layout&&t.setColumnLayout(e.layout),e.rowStyleCallback&&t.setRowStyleCallback(e.rowStyleCallback),e.cellStyleCallback&&t.setCellStyleCallback(e.cellStyleCallback),e.contextMenu&&t.setContextMenu(e.contextMenu)},t.snapshotStyle=function(t){for(var e={},i=0,o=["border-left","border-right","border-top","border-bottom","font-family","font-size","font-weight","font-style","text-decoration-line","text-decoration-style","color","background-image","background-color","text-align","vertical-align","white-space-collapse","white-space","text-wrap","text-wrap-mode"];i<o.length;i++){var r=o[i],n=t.getPropertyValue(r);if(n){if("background-color"===r&&"rgba(0, 0, 0, 0)"===n)continue;e[r]=n}}return e},t.cloneCssText=function(t){var e=document.createElement("div");return e.style.cssText=t,e.style},t.getTextWrap=function(t,e){var i=function(e){return t.getPropertyValue?t.getPropertyValue(e):t[e]},o=t.textWrapMode||i("text-wrap-mode");return null==(o=(o=o||t.textWrap||i("text-wrap"))||t.whiteSpace||i("white-space"))&&null!=e?e:null!=o&&"nowrap"!=o&&"pre"!=o},t.isIE=x,t.ieAll=x,t.ieOld=w,t.isMac=f,t.isWin=_,t.isSafari=m,t.isChrome=g,t.isFirefox=y,t.ieTen=C,t.ieNine=w,t.isiOS=v,t.isChromium=g,t.TextProp=t.ieAll?"innerText":"textContent",t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.cho=["ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ","ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"],t.colonreg=/;(?=(?:[^"]*"[^"]*")*(?![^"]*"))/,t.$_INVISIBLE_EDIT_BOUNDS=new u(-1e4,-1e4,100,100),t.$$_debugging=!1,t.$$_keyLog=!1,t.$$_slotMode=!1,t.$$_zoom=1,t.$_supportPassive=null,t}(),j=function(){function t(){}return t.encode=function(e){var i,o,r,n,s,a,l,u="",h=0,c=t.CHARACTERS;for(e=t.utf8_encode(e);h<e.length;)n=(i=e.charCodeAt(h++))>>2,s=(3&i)<<4|(o=e.charCodeAt(h++))>>4,a=(15&o)<<2|(r=e.charCodeAt(h++))>>6,l=63&r,isNaN(o)?a=l=64:isNaN(r)&&(l=64),u=u+c.charAt(n)+c.charAt(s)+c.charAt(a)+c.charAt(l);return u},t.decode=function(e){var i,o,r,n,s,a,l="",u=0,h=t.CHARACTERS;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)i=h.indexOf(e.charAt(u++))<<2|(n=h.indexOf(e.charAt(u++)))>>4,o=(15&n)<<4|(s=h.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(a=h.indexOf(e.charAt(u++))),l+=String.fromCharCode(i),64!=s&&(l+=String.fromCharCode(o)),64!=a&&(l+=String.fromCharCode(r));return l=t.utf8_decode(l)},t.utf8_encode=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?e+=String.fromCharCode(o):o>127&&o<2048?(e+=String.fromCharCode(o>>6|192),e+=String.fromCharCode(63&o|128)):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128),e+=String.fromCharCode(63&o|128))}return e},t.utf8_decode=function(t){for(var e="",i=0,o=0,r=0,n=0,s=t.length;i<s;)(o=t.charCodeAt(i))<128?(e+=String.fromCharCode(o),i++):o>191&&o<224?(r=t.charCodeAt(i+1),e+=String.fromCharCode((31&o)<<6|63&r),i+=2):(r=t.charCodeAt(i+1),n=t.charCodeAt(i+2),e+=String.fromCharCode((15&o)<<12|(63&r)<<6|63&n),i+=3);return e},t.CHARACTERS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t.btoa=function(e){for(var i,o,r,n,s=t.CHARACTERS,a="",l=0,u=(e=String(e)).length%3;l<e.length;){if((o=e.charCodeAt(l++))>255||(r=e.charCodeAt(l++))>255||(n=e.charCodeAt(l++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");i=o<<16|r<<8|n,a+=s.charAt(i>>18&63)+s.charAt(i>>12&63)+s.charAt(i>>6&63)+s.charAt(63&i)}return u?a.slice(0,u-3)+"===".substring(u):a},t}(),H="$_hash",G="$_view",W="$_row",U="$_idx",Y="$_foc",z="$_lev";t.ValueType=void 0,(M=t.ValueType||(t.ValueType={})).TEXT="text",M.NUMBER="number",M.BOOLEAN="boolean",M.DATETIME="datetime",M.OBJECT="object",M.CHAR="char",M.UNUM="unum",M.INT="int",M.UINT="uint",M.DATE="date",t.SortDirection=void 0,(F=t.SortDirection||(t.SortDirection={})).ASCENDING="ascending",F.DESCENDING="descending",F.NONE="none",t.SortCase=void 0,(L=t.SortCase||(t.SortCase={})).SENSITIVE="sensitive",L.INSENSITIVE="insensitive",function(t){t.ROWS="rows",t.ITEMS="items"}(A||(A={})),t.SortMode=void 0,(N=t.SortMode||(t.SortMode={})).AUTO="auto",N.EXPLICIT="explicit",t.FilterMode=void 0,(V=t.FilterMode||(t.FilterMode={})).AUTO="auto",V.EXPLICIT="explicit",t.RowGroupAdornments=void 0,($=t.RowGroupAdornments||(t.RowGroupAdornments={})).NONE="none",$.HEADER="header",$.FOOTER="footer",$.SUMMARY="summary",$.BOTH="both";var q,K,X=function(e){return e==t.RowGroupAdornments.BOTH||e==t.RowGroupAdornments.HEADER};t.ValidationMode=void 0,(q=t.ValidationMode||(t.ValidationMode={})).ALWAYS="always",q.UPDATE="update",q.INSERT="insert",t.ValidationLevel=void 0,(K=t.ValidationLevel||(t.ValidationLevel={})).ERROR="error",K.WARNING="warning",K.INFO="info",K.IGNORE="ignore";var Z,J,Q,tt,et,it,ot,rt,nt,st,at,lt,ut,ht,ct,dt,pt,ft,_t,gt,yt,mt,vt,bt,Ct,wt,xt,It,St,Et,Ot,Tt={error:1,warning:2,info:3,ignore:4},Rt=function(t,e){return Tt[t]-Tt[e]};t.SummaryMode=void 0,(Z=t.SummaryMode||(t.SummaryMode={})).NONE="none",Z.AGGREGATE="aggregate",Z.STATISTICAL="statistical",t.ColumnHeaderItemLocation=void 0,(J=t.ColumnHeaderItemLocation||(t.ColumnHeaderItemLocation={})).NONE="none",J.LEFT_EDGE="leftEdge",J.RIGHT_EDGE="rightEdge",J.TOP_EDGE="topEdge",J.BOTTOM_EDGE="bottomEdge",J.LEFT="left",J.RIGHT="right",J.TOP="top",J.BOTTOM="bottom",J.CENTER="center",function(t){t.NONE="none",t.HEAD="head",t.BODY="body",t.TAIL="tail"}(Q||(Q={})),t.GridFitStyle=void 0,(tt=t.GridFitStyle||(t.GridFitStyle={})).NONE="none",tt.EVEN="even",tt.EVEN_FILL="evenFill",tt.FILL="fill",t.CaretPosition=void 0,(et=t.CaretPosition||(t.CaretPosition={})).START="start",et.END="end",et.SELECT="select",t.GridCellType=void 0,(it=t.GridCellType||(t.GridCellType={})).DATA="data",it.HEADER="header",it.FOOTER="footer",it.SUMMARY="summary",it.ROW_BAR="rowBar",it.INDICATOR="indicator",it.STATE="state",it.CHECK="check",it.HEAD="head",it.FOOT="foot",it.SUM="sum",it.FIXED_BAR="fixedbar",it.GROUP_HEADER="groupHeader",it.GROUP_FOOTER="groupFooter",it.GROUP_BAR="groupBar",it.GROUP_HEAD="groupHead",it.GROUP_FOOT="groupFoot",it.GROUP_PANEL="groupPanel",it.GROUP_COLUMN="groupColumn",it.GRID_EMPTY="gridEmpty",it.LAYOUT_HEADER="layoutHeader",it.FILTER="filter",it.INLINE_FILTER="inlineFilter",it.SCROLL_BAR="scrollBar",it.SCROLL_TRACK="scrollTrack",it.SCROLL_THUMB="scrollThumb",it.SCROLL_BUTTON="scrollButton",it.SCROLL_EDGE="scrollEdge",t.RowMaskType=void 0,(ot=t.RowMaskType||(t.RowMaskType={})).NONE="none",ot.ROW="row",ot.DATA="data",ot.FILL="fill",ot.CELL="cell",t.TextInputCase=void 0,(rt=t.TextInputCase||(t.TextInputCase={})).NORMAL="normal",rt.UPPER="upper",rt.LOWER="lower",rt.DEFAULT="default",t.DefaultShowDate=void 0,(nt=t.DefaultShowDate||(t.DefaultShowDate={})).NORMAL="normal",nt.TODAY="today",nt.TODAY_WHEN_NULL="todayWhenNull",nt.DEFAULT="default",nt.DEFAULT_WHEN_NULL="defaultWhenNull",t.SortStyle=void 0,(st=t.SortStyle||(t.SortStyle={})).NONE="none",st.EXCLUSIVE="exclusive",st.INCLUSIVE="inclusive",st.REVERSE="reverse",t.MenuItemType=void 0,(at=t.MenuItemType||(t.MenuItemType={})).NORMAL="normal",at.CHECK="check",at.RADIO="radio",at.SEPARATOR="separator",t.HandleVisibility=void 0,(lt=t.HandleVisibility||(t.HandleVisibility={})).VISIBLE="visible",lt.HOVERED="hovered",lt.ALWAYS="always",lt.HIDDEN="hidden",lt.ACTIVE_OR_HOVERED="activeOrHovered",t.CellButton=void 0,(ut=t.CellButton||(t.CellButton={})).NONE="none",ut.ACTION="action",ut.POPUP="popup",t.ButtonVisibility=void 0,(ht=t.ButtonVisibility||(t.ButtonVisibility={})).ALWAYS="always",ht.DEFAULT="default",ht.VISIBLE="visible",ht.HIDDEN="hidden",ht.ROWFOCUSED="rowfocused",t.IconLocation=void 0,(ct=t.IconLocation||(t.IconLocation={})).LEFT="left",ct.RIGHT="right",ct.LEFT_EDGE="leftEdge",ct.RIGHT_EDGE="rightEdge",ct.TOP="top",ct.BOTTOM="bottom",ct.TOP_EDGE="topEdge",ct.BOTTOM_EDGE="bottomEdge",ct.CENTER="center",t.RefreshMode=void 0,(dt=t.RefreshMode||(t.RefreshMode={})).ALL="all",dt.VISIBLE_ONLY="visibleOnly",dt.RECYCLE="recycle",t.ScrollOnEditing=void 0,(pt=t.ScrollOnEditing||(t.ScrollOnEditing={})).CANCEL="cancel",pt.COMMIT="commit",pt.DEFAULT="default",t.ItemType=void 0,(ft=t.ItemType||(t.ItemType={})).ROW="row",ft.GROUP="group",ft.FOOTER="footer",ft.TREE="tree",t.SummaryType=void 0,(_t=t.SummaryType||(t.SummaryType={})).COUNT="count",_t.SUM="sum",_t.MAX="max",_t.MIN="min",_t.AVG="avg",_t.VAR="var",_t.VARP="varp",_t.STDEV="stdev",_t.STDEVP="stdevp",_t.DATACOUNT="datacount",_t.DATAAVG="dataavg",t.ExpanderVisibility=void 0,(gt=t.ExpanderVisibility||(t.ExpanderVisibility={})).ALWAYS="always",gt.DEFAULT="default",gt.NONE="none",t.ExitGridWhenTab=void 0,(yt=t.ExitGridWhenTab||(t.ExitGridWhenTab={})).ROW="row",yt.GRID="grid",yt.NONE="none",t.FocusType=void 0,(mt=t.FocusType||(t.FocusType={})).LAYER="layer",mt.LINE="line",t.EdgeMark=void 0,(vt=t.EdgeMark||(t.EdgeMark={})).LEFT_TOP="leftTop",vt.LEFT_BOTTOM="leftBottom",vt.RIGHT_TOP="rightTop",vt.RIGHT_BOTTOM="rightBottom",t.GroupShowMode=void 0,(bt=t.GroupShowMode||(t.GroupShowMode={})).EXPAND="expand",bt.COLLAPSE="collapse",bt.ALWAYS="always",t.SyncGridHeight=void 0,(Ct=t.SyncGridHeight||(t.SyncGridHeight={})).NONE="none",Ct.OVER="over",Ct.ALWAYS="always",t.InlineFilterOperator=void 0,(wt=t.InlineFilterOperator||(t.InlineFilterOperator={})).EQUAL="equal",wt.NOT_EQUAL="notEqual",wt.CONTAINS="contains",wt.NOT_CONTAINS="notContains",wt.STARTS_WITH="startsWith",wt.ENDS_WITH="endsWith",wt.RESET="reset",wt.GREATER="greater",wt.GREATER_EQUAL="greaterEqual",wt.LOWER="lower",wt.LOWER_EQUAL="lowerEqual",wt.BETWEEN="between",wt.EMPTY="empty",t.TreeExpanderIconStyle=void 0,(xt=t.TreeExpanderIconStyle||(t.TreeExpanderIconStyle={})).TRIANGLE="triangle",xt.SQUARE="square",t.NullsOrder=void 0,(It=t.NullsOrder||(t.NullsOrder={})).FIRST="first",It.LAST="last",It.DEFAULT="default",t.ExpandWhenSetData=void 0,(St=t.ExpandWhenSetData||(t.ExpandWhenSetData={})).EXPAND="expand",St.COLLAPSE="collapse",St.REMAIN_AND_EXPAND="remainAndExpand",St.REMAIN_AND_COLLAPSE="remainAndCollapse",t.TimeCategory=void 0,(Et=t.TimeCategory||(t.TimeCategory={})).NONE="none",Et.HOUR="hour",Et.MINUTE="minute",Et.SECOND="second",Et.AUTO="auto",t.LayoutDirection=void 0,(Ot=t.LayoutDirection||(t.LayoutDirection={})).VERTICAL="vertical",Ot.HORIZONTAL="horizontal";var Pt,kt=function(e){return B.included(e,t.GridCellType.DATA,t.GridCellType.ROW_BAR)},Dt=function(e){return B.included(e,t.GridCellType.DATA,t.GridCellType.SUMMARY,t.GridCellType.HEADER,t.GridCellType.FOOTER,t.GridCellType.INLINE_FILTER,t.GridCellType.GROUP_HEADER)},Mt=function(e){return B.included(e,t.GridCellType.FOOTER,t.GridCellType.SUMMARY)},Ft=function(e){return B.included(e,t.GridCellType.SUM,t.GridCellType.FOOT,t.GridCellType.HEAD,t.GridCellType.FILTER)};t.RowState=void 0,(Pt=t.RowState||(t.RowState={})).NONE="none",Pt.CREATED="created",Pt.UPDATED="updated",Pt.DELETED="deleted",Pt.CREATE_AND_DELETED="createAndDeleted";var Lt=function(e){return e==t.RowState.DELETED||e==t.RowState.CREATE_AND_DELETED},At=function(){function t(t){this.format=t}return Object.defineProperty(t.prototype,"format",{get:function(){return this._format},set:function(t){t!=this._format&&(this._format=t,this.parse(t))},enumerable:!1,configurable:!0}),t.prototype.toBool=function(t){return!!this.toBoolStrict(t)},t.prototype.toBoolEx=function(t){var e=this._sensitive?t:t.toLowerCase(),i=this.$_toBool(t);return null!=i?i:e?Boolean(e):void 0},t.prototype.toBoolStrict=function(t){return this.$_toBool(t)},t.prototype.toText=function(t){return t?this._trueText:this._falseText},t.prototype.$_toBool=function(t){if(this._values){var e=this._sensitive?t:t.toLowerCase();if(e in this._values)return this._values[e]}},t.prototype.parse=function(t){var e=this;if(this._values={},t){this._trueText=this._falseText=null;var i=t.split(/[;\:]/),o=this._sensitive="0"!=i[2],r=i[0]?o?i[0].split(","):i[0].toLowerCase().split(","):null,n=i[1]?o?i[1].split(","):i[1].toLowerCase().split(","):null;r&&r.forEach((function(t){e._values[t]=!1,e._falseText=e._falseText||t})),n&&n.forEach((function(t){e._values[t]=!0,e._trueText=e._trueText||t}))}else this._values[this._trueText="true"]=!0,this._values[this._falseText="false"]=!1},t.Default=new t("false,f,0:true,t,1:0"),t}(),Nt=function(){function t(t){this._format=null,this._baseYear=2e3,this._patterns=[],this._amText="AM",this._pmText="PM",this._matchPattern=!1,t&&(this.format=t)}return Object.defineProperty(t.prototype,"format",{get:function(){return this._format},set:function(t){if(t!=this._format){if(!t)throw new Error("Invalid empty date format");this._format=t,this.parseFormat(t)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseYear",{get:function(){return this._baseYear},set:function(t){t!=this._baseYear&&(this._baseYear=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"amText",{get:function(){return this._amText},set:function(t){t!=this._amText&&(this._amText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pmText",{get:function(){return this._pmText},set:function(t){t!=this._pmText&&(this._pmText=t)},enumerable:!1,configurable:!0}),t.prototype.parse=function(e,i){try{for(var o=0,r=1,n=1,s=0,a=0,l=0,u=0,h=0,c=0,d=this._patterns.length,p=0,f=e.length,_=this._matchPattern,g=this.getStrPattern(e),y=0;y<d&&p<f;y++){var m=this._patterns[y],v=m.c,b=m.len;switch(v){case"y":o=parseInt(_?g[y]:e.substr(p,b));break;case"M":r=parseInt(_?g[y]:e.substr(p,b));break;case"d":n=parseInt(_?g[y]:e.substr(p,b));break;case"a":if(this._amText&&(_?g[y]===this._amText:e.indexOf(this._amText,p)==p))h=12,b=this._amText.length;else if(_?"am"===g[y].toLocaleLowerCase():"am"===e.substr(p,2).toLocaleLowerCase())h=12,b=2;else if(this._pmText&&(_?g[y]===this._pmText:e.indexOf(this._pmText,p)==p))c=12,b=this._pmText.length;else{if(_?"pm"!==g[y].toLocaleLowerCase():"pm"!==e.substr(p,2).toLocaleLowerCase()){if(i)throw"Invalid date value: "+e;return null}c=12,b=2}break;case"H":case"h":s=parseInt(_?g[y]:e.substr(p,b));break;case"m":a=parseInt(_?g[y]:e.substr(p,b));break;case"s":l=parseInt(_?g[y]:e.substr(p,b));break;case"S":u=parseInt(_?g[y]:e.substr(p,b));break;case".":case"/":case"-":case":":case" ":if(t.DATE_SEPARATORS.indexOf(_?g[y]:e.charAt(p))<0){if(i)throw"Invalid date value: ".concat(e,", invalid token[").concat(_?g[y]:e.charAt(p),"]");return null}break;default:if(i)throw"Invalid date value: ".concat(e,", invalid pattern[").concat(_?g[y]:e.charAt(p),"]");return null}p+=b}o<100&&(o+=this._baseYear),h>0?12==s&&(s=0):c>0&&s<12&&(s+=12);var C=new Date(o,r-1,n,s,a,l,u);return C.getFullYear()===o&&C.getMonth()===r-1&&C.getDate()===n?C:null}catch(t){if(i)throw t;return null}},t.prototype.parseFormat=function(t){var e=this,i=0,o=function(t){t&&!isNaN(parseInt(t))&&(e._baseYear=parseInt(t))},r=function(t){if(t){var i=t.split(",");i.length>0&&i[0]&&(e._amText=i[0]||e._amText),i.length>1&&i[1]&&(e._pmText=i[1]||e._pmText)}},n=t.split(";");if(n.length>2)o(n[1]),r(n[2]);else if(n.length>1){var s=n[1];isNaN(parseInt(s))?s&&r(s):o(s)}var a,l,u,h=n[0],c=h.length,d=0;for(this._patterns=[];d<c;)if(a=d,l=h.charAt(d),B.isWhiteSpace(l)){for(d++;d<c&&B.isWhiteSpace(h.charAt(d));)d++;this._patterns.push({c:" ",p:a,len:d-a}),i++}else{switch(u=0,l){case"y":4!=(u=this.getPattern(h,d,l))&&2!=u&&this.throwInvalidFormat(h);break;case"M":case"d":case"H":case"h":case"m":case"s":case"S":u=this.getPattern(h,d,l);break;case".":case"/":case"-":case":":i++;case"a":1!=(u=this.getPattern(h,d,l))&&this.throwInvalidFormat(h);break;default:this.throwInvalidFormat(h)}u>0&&(this._patterns.push({c:l,p:d,len:u}),d+=u)}this._matchPattern=2*i+1===this._patterns.length},t.prototype.throwInvalidFormat=function(t){throw new Error("Invalid date format: "+t)},t.prototype.throwInvalidValue=function(t){throw new Error("Invalid date format: "+t)},t.prototype.getPattern=function(t,e,i){for(var o=1;++e<t.length&&t.charAt(e)==i;)o++;return o},t.prototype.getStrPattern=function(t){for(var e=t.length,i=0,o=0,r=[];e>i;){var n=t[i];if(/-|\.|\/|:| /.test(n))if(r.push(t.substr(o,i-o)),r.push(n),B.isWhiteSpace(n)){for(;B.isWhiteSpace(t[++i])&&e>i;);o=i}else o=i+1;i++}return r.push(t.substr(o,i-o)),r},t.DATE_SEPARATORS="./-: ",t}(),Vt=function(){function t(t){this._format="",this._type=0,this._parser=new Nt(null),this.format=t}return t.initialize=function(){t.Default.amText="AM",t.Default.pmText="PM",t.Default.baseYear=2e3},t.getReader=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},t.getSimpleDateNull=function(t){if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);if("string"!=typeof t)return null;var e=(t=8===t.length&&/^[0-9]*$/.test(t)?t.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"):t).split(/[.//-]/);if(3!=e.length)return null;var i=parseInt(e[0]),o=parseInt(e[1])-1,r=parseInt(e[2]);return i==(t=new Date(i,o,r)).getFullYear()&&o==t.getMonth()&&r==t.getDate()?t:null},Object.defineProperty(t.prototype,"format",{get:function(){return this._format},set:function(t){t!=this._format&&(this._format=t,this.parse(t))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"amText",{get:function(){return this._parser.amText},set:function(t){this._parser.amText=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pmText",{get:function(){return this._parser.pmText},set:function(t){this._parser.pmText=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseYear",{get:function(){return this._parser.baseYear},set:function(t){this._parser.baseYear=t},enumerable:!1,configurable:!0}),t.prototype.toDate=function(t,e){if(!t)return null;var i=null;switch(this._type){case 0:i=this._parser.parse(t,e);break;case 2:var o=parseInt(t);i=new Date(o);break;default:i=new Date(t)}return i&&!isNaN(i.getTime())?i:null},t.prototype.parse=function(e){if(e){if(e.indexOf("T")>0||e.indexOf("Z")>0||/([+\-])(\d\d)?(:)?(\d\d)?$/.test(e))this._type=t.Formats.indexOf("iso");else{var i=e.toLowerCase();this._type=Math.max(0,t.Formats.indexOf(i))}0==this._type&&(this._parser.format=e)}},t.Formats=["custom","iso","timestamp","platform"],t.Default=new t("yyyy/MM/dd HH:mm:ss"),t.Formatters={},t}();Vt.initialize();var $t=0,Bt=function(){function t(t){this.$_disposed=!1,t||(this.$_hash=$t++)}return t.prototype.dispose=function(){return this.$_disposed||this.$_disposing||(this.$_disposed=!0,this.$_disposing=!0,this._doDispose()),null},t.prototype._doDispose=function(){},Object.defineProperty(t.prototype,"disposing",{get:function(){return this.$_disposing},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t==this.$_hash},t.prototype.$_getters=function(t){for(var e=[],i=Object.getOwnPropertyNames(t),o=0,r=i.length;o<r;o++){var n=i[o],s=Object.getOwnPropertyDescriptor(t,n);s&&s.get&&e.push(n)}return e},t.prototype.doAssignSimple=function(t){return!1},t.prototype.assignFrom=function(e){var i=Object.getPrototypeOf(this);if(e instanceof t)for(var o=Object.getPrototypeOf(e),r={};o&&o.constructor!=t;){for(var n=this.$_getters(o),s=0,a=n.length;s<a;s++){if(!((c=n[s])in r))if(r[c]=null,d=Object.getOwnPropertyDescriptor(i,c)){if(d.set)(h=Object.getOwnPropertyDescriptor(o,c).get)&&d.set.call(this,h.call(e))}else for(var l=Object.getPrototypeOf(i);l;){var u=Object.getOwnPropertyDescriptor(l,c);if(u){var h;if(u.set)(h=Object.getOwnPropertyDescriptor(o,c).get)&&u.set.call(this,h.call(e));l=null}else l=Object.getPrototypeOf(l)}}o=Object.getPrototypeOf(o)}else if(!this.doAssignSimple(e))for(var c in e){var d;if(d=Object.getOwnPropertyDescriptor(i,c))d.set&&d.set.call(this,e[c]);else for(l=Object.getPrototypeOf(i);l;){var p=Object.getOwnPropertyDescriptor(l,c);p?(p.set&&p.set.call(this,e[c]),l=null):l=Object.getPrototypeOf(l)}}},t.prototype.extend=function(t){for(var e in t)this.hasOwnProperty(e)&&(this[e]=t[e])},t.prototype.toProxy=function(e){void 0===e&&(e=!0);for(var i={},o=Object.getPrototypeOf(this),r=[];o&&o.constructor!=t;){for(var n=this.$_getters(o),s=0,a=n.length;s<a;s++){var l=n[s],u=Object.getOwnPropertyDescriptor(o,l);if(u){if(u.get&&u.set&&r.indexOf(l)<0){r.push(l);var h=u.get.call(this);(e||void 0!==h)&&(null!==h&&"object"==typeof h&&Object.getPrototypeOf(h).hasOwnProperty("toProxy")?i[l]=h.toProxy():i[l]=h)}}else for(var c=Object.getPrototypeOf(o);c;){var d=Object.getOwnPropertyDescriptor(c,l);if(d){if(d.get&&d.set&&r.indexOf(l)<0){r.push(l);h=d.get.call(this);(e||void 0!==h)&&(i[l]=h)}c=null}else c=Object.getPrototypeOf(c)}}o=Object.getPrototypeOf(o)}return i},t}(),jt=function(t){function e(e,i){var o=t.call(this,e)||this;return o.message=e,o.tokenPos=i,o}return o(e,t),e}(Error),Ht=function(t){function e(e){var i=t.call(this,e)||this;return i.message=e,i}return o(e,t),e}(Error),Gt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=[],o=0,r=t;o<r.length;o++){i[r[o]]=!0}return i},Wt=Gt(26,27),Ut=Gt(40,45,46,47,48,49,50,51,52,53,54,55,56,57,41,42,43,44),Yt=Gt(4,5,18,19),zt=Gt(11,3,2,14,15,16,17),qt=function(){function t(){this.IS_IDENT=[],this.IS_INTEGER=[],this.IS_NUMBER=[],this.IS_WHITE=[],this.IS_END=[],this.QUOTATION='"'.charCodeAt(0),this.SQUOTATION="'".charCodeAt(0),this.BACKSLASH="\\".charCodeAt(0),this.Keywords={str:20,num:21,bool:23,not:13,len:24,and:11,in:12,mod:15,or:18,div:14,shl:16,shr:17,xor:19,trim:25,is:26,like:46,ilike:48,match:50,imatch:52,likehan:54,ilikehan:55,defined:35,null:34,empty:36,nan:37,datestr:90,year:91,month:92,day:93,hour:94,rounddown:95,timestamp:96},this._procs=null,this._source=null,this._len=0,this._tokenId=0,this._run=0,this._runAhead=0,this._nextRun=0,this._lineNo=0,this._linePos=0,this._tokenPos=0;for(var t=0;t<256;t++)this.IS_IDENT[t]=t=="_".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0),this.IS_INTEGER[t]=t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="f".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="F".charCodeAt(0),this.IS_NUMBER[t]=t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t==".".charCodeAt(0)||t=="e".charCodeAt(0)||t=="E".charCodeAt(0),this.IS_WHITE[t]=t>=1&&t<=9||11==t||t>=14&&t<=32,this.IS_END[t]=0==t;this.initProcs()}return t.prototype.clear=function(){this._source=null},t.prototype.next=function(){var t=this._source.charCodeAt(this._run);this._tokenPos=this._run,t<256?this._procs[t].call(this):this.identProc()},t.prototype.unkownProc=function(){this._tokenId=0,this._run++},t.prototype.symbolProc=function(){this._tokenId=80,this._run++},t.prototype.commaProc=function(){this._tokenId=32,this._run++},t.prototype.crProc=function(){this._tokenId=33,10==this._source.charCodeAt(this._run+1)?this._run+=2:this._run++,this._lineNo++,this._linePos=this._run},t.prototype.lfProc=function(){this._tokenId=33,this._run++,this._lineNo++,this._linePos=this._run},t.prototype.equalProc=function(){this._tokenId=40,"="==this._source.charAt(++this._run)&&"="==this._source.charAt(++this._run)&&this._run++},t.prototype.notProc=function(){this._tokenId=13,"="==this._source.charAt(++this._run)&&(this._tokenId=45,"="==this._source.charAt(++this._run)&&this._run++)},t.prototype.greaterProc=function(){"="==this._source.charAt(this._run+1)?(this._tokenId=42,this._run+=2):(this._tokenId=41,this._run++)},t.prototype.lowerProc=function(){"="==this._source.charAt(this._run+1)?(this._tokenId=44,this._run+=2):">"==this._source.charAt(this._run+1)?(this._tokenId=45,this._run+=2):(this._tokenId=43,this._run++)},t.prototype.nextIdent=function(){for(var t=this._run;t<this._len&&!this.IS_IDENT[this._source.charCodeAt(t)];)t++;for(var e=t;t<this._len&&this.IS_IDENT[this._source.charCodeAt(t)];)t++;return t>e?(this._nextRun=t,this._source.substr(e,t-e).toLowerCase()):null},t.prototype.identProc=function(){for(var t=this._run;this._run<this._len&&(this.IS_IDENT[this._source.charCodeAt(this._run)]||this._source.charCodeAt(this._run)>255);)this._run++;var e=this._source.substr(t,this._run-t).toLowerCase();if(this.Keywords.hasOwnProperty(e))switch(this._tokenId=this.Keywords[e],this._tokenId){case 13:if(e=this.nextIdent())switch(e){case"like":this._tokenId=47,this._run=this._nextRun;break;case"ilike":this._tokenId=49,this._run=this._nextRun;break;case"match":this._tokenId=51,this._run=this._nextRun;break;case"imatch":this._tokenId=53,this._run=this._nextRun;break;case"likehan":this._tokenId=56,this._run=this._nextRun;break;case"ilikehan":this._tokenId=57,this._run=this._nextRun}break;case 26:"not"==(e=this.nextIdent())&&(this._tokenId=27,this._run=this._nextRun)}else this._tokenId=10},t.prototype.integerProc=function(){for(this._tokenId=64,this._run++;this._run<this._len&&this.IS_INTEGER[this._source.charCodeAt(this._run)];)this._run++},t.prototype.numberProc=function(){for(this._tokenId=64,this._run++;this._run<this._len&&this.IS_NUMBER[this._source.charCodeAt(this._run)];){if("."==this._source.charAt(this._run)){if("."==this._source.charAt(this._run+1))break;this._tokenId=63}this._run++}},t.prototype.minusProc=function(){this._tokenId=4,this._run++},t.prototype.plusProc=function(){this._tokenId=5,this._run++},t.prototype.pointProc=function(){"."==this._source.charAt(this._run+1)?(this._tokenId=68,this._run+=2):(this._tokenId=65,this._run++)},t.prototype.roundOpenProc=function(){this._tokenId=66,this._run++},t.prototype.roundCloseProc=function(){this._tokenId=67,this._run++},t.prototype.slashProc=function(){this._tokenId=2,this._run++},t.prototype.spaceProc=function(){for(this._tokenId=71,this._run++;this._run<this._len&&this.IS_WHITE[this._source.charCodeAt(this._run)];)this._run++},t.prototype.bracketOpenProc=function(){this._tokenId=69,this._run++},t.prototype.bracketCloseProc=function(){this._tokenId=70,this._run++},t.prototype.starProc=function(){this._tokenId=3,this._run++},t.prototype.modProc=function(){this._tokenId=15,this._run++},t.prototype.stringProc=function(){this._tokenId=61;do{var t=this._source.charCodeAt(this._run);if(this.IS_END[t])throw new jt("Untermintated string",t);t==this.BACKSLASH&&this._run++,this._run++}while(this._run<this._len&&this._source.charCodeAt(this._run)!=this.QUOTATION);this._run++},t.prototype.smallStringProc=function(){this._tokenId=61;do{var t=this._source.charCodeAt(this._run);if(this.IS_END[t])throw new jt("Untermintated string",t);t==this.BACKSLASH&&this._run++,this._run++}while(this._run<this._len&&this._source.charCodeAt(this._run)!=this.SQUOTATION);this._run++},t.prototype.initProcs=function(){this._procs=[];for(var t=1;t<=255;t++)this._procs[t]=this.symbolProc;for(t=1;t<=32;t++)this._procs[t]=this.spaceProc;this._procs[10]=this.lfProc,this._procs[13]=this.crProc,this._procs["$".charCodeAt(0)]=this.integerProc,this._procs[this.QUOTATION]=this.stringProc,this._procs[this.SQUOTATION]=this.smallStringProc;for(t=0;t<=9;t++)this._procs["0".charCodeAt(0)+t]=this.numberProc;for(t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++)this._procs[t]=this.identProc;for(t="a".charCodeAt(0);t<="z".charCodeAt(0);t++)this._procs[t]=this.identProc;this._procs["_".charCodeAt(0)]=this.identProc,this._procs["(".charCodeAt(0)]=this.roundOpenProc,this._procs[")".charCodeAt(0)]=this.roundCloseProc,this._procs["*".charCodeAt(0)]=this.starProc,this._procs["+".charCodeAt(0)]=this.plusProc,this._procs[",".charCodeAt(0)]=this.commaProc,this._procs["-".charCodeAt(0)]=this.minusProc,this._procs[".".charCodeAt(0)]=this.pointProc,this._procs["/".charCodeAt(0)]=this.slashProc,this._procs["%".charCodeAt(0)]=this.modProc,this._procs["<".charCodeAt(0)]=this.lowerProc,this._procs["=".charCodeAt(0)]=this.equalProc,this._procs[">".charCodeAt(0)]=this.greaterProc,this._procs["[".charCodeAt(0)]=this.bracketOpenProc,this._procs["]".charCodeAt(0)]=this.bracketCloseProc,this._procs["!".charCodeAt(0)]=this.notProc},Object.defineProperty(t.prototype,"tokenId",{get:function(){return this._tokenId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenLoc",{get:function(){return{x:this._tokenPos-this._linePos,y:this._lineNo}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenLen",{get:function(){return this._run-this._tokenPos},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"token",{get:function(){return this._source.substr(this._tokenPos,this.tokenLen)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpace",{get:function(){return 71==this._tokenId},enumerable:!1,configurable:!0}),t.prototype.init=function(t){this._source=t,this._len=t.length,this._lineNo=0,this._linePos=0,this._tokenPos=0,this._runAhead=this._run=0,this._tokenId=0},t.prototype.charAhread=function(){for(this._runAhead=this._run;this._runAhead<this._len&&this._source.charCodeAt(this._runAhead)>0&&this._source.charCodeAt(this._runAhead)<=32;)this._runAhead++;return this._source.charCodeAt(this._runAhead)},t.prototype.nextId=function(t){do{this.next()}while(this._run<this._len&&this._tokenId!=t);return null},t.prototype.nextNoSpace=function(){if(this._run<this._len)do{this.next()}while(this._run<this._len&&this.isSpace);return null},t.prototype.isFirstInLine=function(){if(0==this._tokenPos)return!0;var t,e=this._tokenPos;for(e--;e>0&&this.IS_WHITE[this._source.charCodeAt(e)];)e--;return 0==e||(10==(t=this._source.charCodeAt(e))||13==t)},t}(),Kt=function(t){function e(){return t.call(this)||this}return o(e,t),e.prototype.isIdentifier=function(t){throw new Error("Token is not a valid Identifier: "+t)},e.prototype.evaluateIdentifier=function(t){throw new Error("Invalid identifier key: "+t)},e.prototype.evaluateIndexerI=function(t,e){throw new Error("Invalid identifier indexer: "+t)},e.prototype.evaluateIndexerS=function(t,e,i){throw new Error("Invalid identifier indexer: "+t)},e}(Bt),Xt=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"asLiteral",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.prepareValue=function(){},t.prototype.getLiteral=function(){},t.prototype.isIdentifier=function(t){return!1},t.prototype.toString=function(){return String(this)},t}(),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(Xt);!function(t){function e(){return t.call(this)||this}o(e,t),e.prototype.evaluate=function(t){},e.prototype.toString=function(){return""},e.Default=new e}(Xt);var Jt,Qt=function(t){function e(){var e=t.call(this)||this;return e._operator=0,e}return o(e,t),e.prototype.evaluate=function(t){if(this._literal)return this._literal.value;if(!this._rightExpr)return this._leftExpr.evaluate(t);var e=this._leftExpr.evaluate(t),i=this._rightExpr.evaluate(t);switch(this._operator){case 40:return e==i;case 45:return e!=i;case 41:return e>i;case 42:return e>=i;case 43:return e<i;case 44:return e<=i;case 46:return this.calcLike(e,i,!1);case 47:return!this.calcLike(e,i,!1);case 48:return this.calcLike(e,i,!0);case 49:return!this.calcLike(e,i,!0);case 54:return this.calcLikeHan(e,i,!1);case 56:return!this.calcLikeHan(e,i,!1);case 55:return this.calcLikeHan(e,i,!0);case 57:return!this.calcLikeHan(e,i,!0);case 50:return this.calcMatch(e,i,!1);case 51:return!this.calcMatch(e,i,!1);case 52:return this.calcMatch(e,i,!0);case 53:return!this.calcMatch(e,i,!0);default:throw new Ht("Unknown operator: "+this._operator)}},e.prototype.toString=function(){var t="";if(this._literal)t=this._literal.toString();else if(this._rightExpr){var e=this._leftExpr.toString(),i=this._rightExpr.toString(),o=void 0;switch(this._operator){case 40:o="=";break;case 45:o="<>";break;case 41:o=">";break;case 42:o=">=";break;case 43:o="<";break;case 44:o="<=";break;case 46:o="like";break;case 47:o="not like";break;case 48:o="ilike";break;case 49:o="not ilike";break;case 50:o="match";break;case 51:o="not match";break;case 52:o="imatch";break;case 53:o="not imatch";break;case 54:o=