UNPKG

@grapecity/inputman

Version:

日本仕様の入力用JavaScriptコントロールセット

2,400 lines 1.17 MB
/*!
 *
 * InputManJS 5.1
 *
 * Copyright(c) MESCIUS inc. All rights reserved.
 *
 * Licensed under the InputManJS Commercial License.
 * sales@mescius.com
 * https://developer.mescius.jp/license/javascript
 *
 *
 */

 +function(){var g;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var p=ca(this);function da(a,b){if(b)a:{var c=p;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
da("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,h){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:h})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=p[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}})}return a});function ea(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function fa(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ha(a){if(!(a instanceof Array)){a=fa(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ia="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ja;
if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={a:!0},ma={};try{ma.__proto__=la;ka=ma.a;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=ja;
function t(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Dt=b.prototype}function oa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}da("Reflect",function(a){return a?a:{}});
da("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});function pa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var qa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)pa(d,e)&&(a[e]=d[e])}return a};da("Object.assign",function(a){return a||qa});
da("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=fa(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}function c(){}function d(l){var m=typeof l;return"object"===m&&null!==l||"function"===m}function e(l){if(!pa(l,h)){var m=new c;ba(l,h,{value:m})}}function f(l){var m=Object[l];m&&(Object[l]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return m(n)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),
n=new a([[l,2],[m,3]]);if(2!=n.get(l)||3!=n.get(m))return!1;n.delete(l);n.set(m,4);return!n.has(l)&&4==n.get(m)}catch(q){return!1}}())return a;var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var k=0;b.prototype.set=function(l,m){if(!d(l))throw Error("Invalid WeakMap key");e(l);if(!pa(l,h))throw Error("WeakMap key fail: "+l);l[h][this.g]=m;return this};b.prototype.get=function(l){return d(l)&&pa(l,h)?l[h][this.g]:void 0};b.prototype.has=function(l){return d(l)&&pa(l,
h)&&pa(l[h],this.g)};b.prototype.delete=function(l){return d(l)&&pa(l,h)&&pa(l[h],this.g)?delete l[h][this.g]:!1};return b});
da("Map",function(a){function b(){var k={};return k.Gf=k.next=k.head=k}function c(k,l){var m=k.g;return ea(function(){if(m){for(;m.head!=k.g;)m=m.Gf;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})}function d(k,l){var m=l&&typeof l;"object"==m||"function"==m?f.has(l)?m=f.get(l):(m=""+ ++h,f.set(l,m)):m="p_"+l;var n=k.h[m];if(n&&pa(k.h,m))for(k=0;k<n.length;k++){var q=n[k];if(l!==l&&q.key!==q.key||l===q.key)return{id:m,list:n,index:k,de:q}}return{id:m,
list:n,index:-1,de:void 0}}function e(k){this.h={};this.g=b();this.size=0;if(k){k=fa(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var k=Object.seal({x:4}),l=new a(fa([[k,"s"]]));if("s"!=l.get(k)||1!=l.size||l.get({x:4})||l.set({x:4},"t")!=l||2!=l.size)return!1;var m=l.entries(),n=m.next();if(n.done||n.value[0]!=k||"s"!=n.value[1])return!1;n=m.next();return n.done||4!=n.value[0].x||
"t"!=n.value[1]||!m.next().done?!1:!0}catch(q){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(k,l){k=0===k?0:k;var m=d(this,k);m.list||(m.list=this.h[m.id]=[]);m.de?m.de.value=l:(m.de={next:this.g,Gf:this.g.Gf,head:this.g,key:k,value:l},m.list.push(m.de),this.g.Gf.next=m.de,this.g.Gf=m.de,this.size++);return this};e.prototype.delete=function(k){k=d(this,k);return k.de&&k.list?(k.list.splice(k.index,1),k.list.length||delete this.h[k.id],k.de.Gf.next=k.de.next,k.de.next.Gf=k.de.Gf,
k.de.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.Gf=b();this.size=0};e.prototype.has=function(k){return!!d(this,k).de};e.prototype.get=function(k){return(k=d(this,k).de)&&k.value};e.prototype.entries=function(){return c(this,function(k){return[k.key,k.value]})};e.prototype.keys=function(){return c(this,function(k){return k.key})};e.prototype.values=function(){return c(this,function(k){return k.value})};e.prototype.forEach=function(k,l){for(var m=this.entries(),
n;!(n=m.next()).done;)n=n.value,k.call(l,n[1],n[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});da("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});da("Reflect.ownKeys",function(a){return a?a:function(b){var c=[],d=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var e=0;e<d.length;e++)("jscomp_symbol_"==d[e].substring(0,14)?b:c).push(d[e]);return c.concat(b)}});da("Object.setPrototypeOf",function(a){return a||na});
function ra(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}da("Array.prototype.keys",function(a){return a?a:function(){return ra(this,function(b){return b})}});da("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
da("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function sa(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
da("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==sa(this,b,"includes").indexOf(b,c||0)}});da("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});da("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push(b[d]);return c}});
da("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push([d,b[d]]);return c}});
da("Set",function(a){function b(c){this.g=new Map;if(c){c=fa(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(fa([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});da("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=sa(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});da("String.prototype.trimLeft",function(a){function b(){return this.replace(/^[\s\xa0]+/,"")}return a||b});
da("String.prototype.trimStart",function(a){return a||String.prototype.trimLeft});da("String.prototype.trimRight",function(a){function b(){return this.replace(/[\s\xa0]+$/,"")}return a||b});da("String.prototype.trimEnd",function(a){return a||String.prototype.trimRight});function ta(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Vp:e,Rq:f}}return{Vp:-1,Rq:void 0}}
da("Array.prototype.find",function(a){return a?a:function(b,c){return ta(this,b,c).Rq}});da("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
da("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});da("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});da("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
da("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});da("String.prototype.repeat",function(a){return a?a:function(b){var c=sa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
da("String.prototype.padStart",function(a){return a?a:function(b,c){var d=sa(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});da("Array.prototype.findIndex",function(a){return a?a:function(b,c){return ta(this,b,c).Vp}});var ua=this||self;
function va(a,b){a=a.split(".");var c=ua;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};window.GCIM=window.GCIM||{};window.GC=window.GC||{};va("window.GC",window.GC);window.GC.InputMan=window.GCIM;window.GC.InputMan=window.GC.InputMan;function v(a,b,c){a=a.split(".");c=c?c:window.GCIM;for(var d=1;d<a.length;d++)c[a[d-1]]||(c[a[d-1]]={}),c=c[a[d-1]];c[a[a.length-1]]=b};var xa={D_0:"0",D_1:"1",D_2:"2",D_3:"3",D_4:"4",D_5:"5",D_6:"6",D_7:"7",D_8:"8",D_9:"9",Sign:"+/-",Dot:".",Add:"+",Sub:"-",Multiply:"*",Divide:"/",Sqrt:"SQRT",Percentage:"%",Fraction:"1/x",Equal:"=",MStatus:"MStatus",MC:"MC",MR:"MR",MS:"MS",MAdd:"M+",BS:"BS",CE:"CE",C:"C"};v("GcCalculatorKey",xa);var ya=(navigator.userLanguage||navigator.language).toLowerCase();v("Culture",{EN:"en",CN:"cn",JA:"ja"});var za="en";-1<ya.indexOf("ja")?za="ja":-1<ya.indexOf("cn")&&(za="cn");var Aa=new Map;
Aa.ja={TouchToolBarUndo:"\u5143\u306b\u623b\u3059",TouchToolBarCut:"\u5207\u308a\u53d6\u308a",TouchToolBarCopy:"\u30b3\u30d4\u30fc",TouchToolBarPaste:"\u8cbc\u308a\u4ed8\u3051",TouchToolBarDelete:"\u524a\u9664",TouchToolBarSelectAll:"\u3059\u3079\u3066\u9078\u629e",ToolTipPreviousYear:"\u524d\u306e\u5e74",ToolTipToday:"\u4eca\u65e5",ToolTipNextYear:"\u6b21\u306e\u5e74",ToolTipNextDecade:"10\u5e74\u5f8c",ToolTipPreviousDecade:"10\u5e74\u524d",ToolTipNextCentury:"100\u5e74\u5f8c",ToolTipPreviousCentury:"100\u5e74\u524d",
ToolTipNextMillennium:"1000\u5e74\u5f8c",ToolTipPreviousMillennium:"1000\u5e74\u524d",ToolTipZoomIn:"\u30ba\u30fc\u30e0\u30a4\u30f3",ToolTipZoomOut:"\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8",WeekdayMonday:"\u6708",WeekdayTuesday:"\u706b",WeekdayWednesday:"\u6c34",WeekdayThursday:"\u6728",WeekdayFriday:"\u91d1",WeekdaySaturday:"\u571f",WeekdaySunday:"\u65e5",ContextMenuUndo:"\u5143\u306b\u623b\u3059(U)",ContextMenuCut:"\u5207\u308a\u53d6\u308a(T)",ContextMenuCopy:"\u30b3\u30d4\u30fc(C)",ContextMenuPaste:"\u8cbc\u308a\u4ed8\u3051(P)",
ContextMenuDelete:"\u524a\u9664(D)",ContextMenuSelectAll:"\u3059\u3079\u3066\u9078\u629e(A)",NumberCurrencySymbol:"\u00a5",CalculatorDivideByZeroInfo:"0 \u3067\u9664\u7b97\u3067\u304d\u307e\u305b\u3093\u3002",CalculatorInvalidInputInfo:"\u4e0d\u6b63\u306a\u5165\u529b\u3067\u3059\u3002",CalculatorOverFlowInfo:"\u6f14\u7b97\u306e\u7d50\u679c\u304c\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3057\u307e\u3059\u3002",CalculatorSqrtParameterException:"\u7121\u52b9\u306a\u5024\u3067\u3059\u3002",DateTabDefaultText:"\u65e5\u4ed8",
TimeTabDefaultText:"\u6642\u523b",NotifierDefaultFailMessage:"\u5165\u529b\u5024\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093",NotifierDefaultSuccessMessage:"\u5165\u529b\u5024\u304c\u6b63\u5e38\u3067\u3059",ToastNotifierSuccessTitle:"\u691c\u8a3c\u306b\u6210\u529f\u3057\u307e\u3057\u305f",ToastNotifierFailTitle:"\u691c\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f",DateTimeAM:"\u5348\u524d",DateTimePM:"\u5348\u5f8c",RandomDisplay:"\u30ad\u30fc\u306e\u914d\u7f6e\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u3059\u308b",
HideButtonWhenMouseOn:"\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u6642\u306b\u30ad\u30fc\u3092\u975e\u8868\u793a\u306b\u3059\u308b",SoftKeyboardTitle:"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ad\u30fc\u30dc\u30fc\u30c9",BackSpaceButton:"1\u6587\u5b57\u524a\u9664",ClearButton:"\u5168\u3066\u524a\u9664 ",WhiteSpaceButton:"\u30b9\u30da\u30fc\u30b9",ArrowLeftButton:"\u2190",ArrowRightButton:"\u2192",CancelButton:"\u30ad\u30e3\u30f3\u30bb\u30eb",DefaultHelpContent:"\u30d8\u30eb\u30d7\u30b3\u30f3\u30c6\u30f3\u30c4",
Copy:"\u30b3\u30d4\u30fc\u3057\u307e\u3059",Copied:"\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f"};
Aa.cn={TouchToolBarUndo:"\u64a4\u9500",TouchToolBarCut:"\u526a\u5207",TouchToolBarCopy:"\u590d\u5236",TouchToolBarPaste:"\u7c98\u8d34",TouchToolBarDelete:"\u5220\u9664",TouchToolBarSelectAll:"\u9009\u62e9\u5168\u90e8",ToolTipPreviousYear:"\u4e0a\u4e00\u5e74",ToolTipToday:"\u4eca\u65e5",ToolTipNextYear:"\u4e0b\u4e00\u5e74",ToolTipNextDecade:"\u4e0b\u5341\u5e74",ToolTipPreviousDecade:"\u4e0a\u5341\u5e74",ToolTipNextCentury:"\u4e0b\u767e\u5e74",ToolTipPreviousCentury:"\u4e0a\u767e\u5e74",ToolTipNextMillennium:"\u4e0b\u5343\u5e74",
ToolTipPreviousMillennium:"\u4e0a\u5343\u5e74",ToolTipZoomIn:"\u653e\u5927",ToolTipZoomOut:"\u7f29\u5c0f",WeekdayMonday:"\u4e00",WeekdayTuesday:"\u4e8c",WeekdayWednesday:"\u4e09",WeekdayThursday:"\u56db",WeekdayFriday:"\u4e94",WeekdaySaturday:"\u516d",WeekdaySunday:"\u65e5",ContextMenuUndo:"\u64a4\u9500(U)",ContextMenuCut:"\u526a\u5207(T)",ContextMenuCopy:"\u590d\u5236(C)",ContextMenuPaste:"\u7c98\u8d34(P)",ContextMenuDelete:"\u5220\u9664(D)",ContextMenuSelectAll:"\u9009\u62e9\u5168\u90e8(A)",NumberCurrencySymbol:"\uffe5",
CalculatorDivideByZeroInfo:"\u4e0d\u80fd\u88ab\u96f6\u9664\u3002",CalculatorInvalidInputInfo:"\u65e0\u6548\u8f93\u5165\u3002",CalculatorOverFlowInfo:"\u8fd0\u7b97\u7ed3\u679c\u6ea2\u51fa\u3002",CalculatorSqrtParameterException:"\u51fd\u6570\u8f93\u5165\u4e0d\u6b63\u786e\u3002",DateTabDefaultText:"\u65e5\u671f",TimeTabDefaultText:"\u65f6\u95f4",NotifierDefaultFailMessage:"\u8f93\u5165\u503c\u975e\u6cd5\u3002",NotifierDefaultSuccessMessage:"\u8f93\u5165\u503c\u6b63\u786e\u3002",ToastNotifierSuccessTitle:"\u9a8c\u8bc1\u6210\u529f",
ToastNotifierFailTitle:"\u9a8c\u8bc1\u5931\u8d25",DateTimeAM:"\u4e0a\u5348",DateTimePM:"\u4e0b\u5348",RandomDisplay:"\u968f\u673a\u663e\u793a",HideButtonWhenMouseOn:"\u9f20\u6807\u60ac\u505c\u65f6\u9690\u85cf\u6309\u94ae",SoftKeyboardTitle:"\u8f6f\u952e\u76d8",BackSpaceButton:"\u5220\u9664",ClearButton:"\u6e05\u7a7a",WhiteSpaceButton:"\u7a7a\u683c",ArrowLeftButton:"\u5de6\u79fb",ArrowRightButton:"\u53f3\u79fb",CancelButton:"\u53d6\u6d88",DefaultHelpContent:"\u5e2e\u52a9\u5185\u5bb9",Copy:"\u590d\u5236",
Copied:"\u5df2\u590d\u5236"};
Aa.en={TouchToolBarUndo:"Undo",TouchToolBarCut:"Cut",TouchToolBarCopy:"Copy",TouchToolBarPaste:"Paste",TouchToolBarDelete:"Delete",TouchToolBarSelectAll:"Select All",ToolTipPreviousYear:"Previous Year",ToolTipToday:"Today",ToolTipNextYear:"Next Year",ToolTipNextDecade:"Next Decade",ToolTipPreviousDecade:"Previous Decade",ToolTipNextCentury:"Next Century",ToolTipPreviousCentury:"Previous Century",ToolTipNextMillennium:"Next Millennium",ToolTipPreviousMillennium:"Previous Millennium",ToolTipZoomIn:"Zoom In",
ToolTipZoomOut:"Zoom Out",WeekdayMonday:"M",WeekdayTuesday:"T",WeekdayWednesday:"W",WeekdayThursday:"T",WeekdayFriday:"F",WeekdaySaturday:"S",WeekdaySunday:"S",ContextMenuUndo:"Undo(U)",ContextMenuCut:"Cut(T)",ContextMenuCopy:"Copy(C)",ContextMenuPaste:"Paste(P)",ContextMenuDelete:"Delete(D)",ContextMenuSelectAll:"Select All(A)",NumberCurrencySymbol:"$",CalculatorDivideByZeroInfo:"Cannot divide by zero.",CalculatorInvalidInputInfo:"Invalid Input.",CalculatorOverFlowInfo:"Arithmetic operation resulted in an overflow.",
CalculatorSqrtParameterException:"Invalid input for function.",DateTabDefaultText:"Date",TimeTabDefaultText:"Time",NotifierDefaultFailMessage:"Input value is incorrect.",NotifierDefaultSuccessMessage:"Input value is correct.",ToastNotifierSuccessTitle:"Validation Succeeded",ToastNotifierFailTitle:"Validation Failed",DateTimeAM:"AM",DateTimePM:"PM",RandomDisplay:"Random display",HideButtonWhenMouseOn:"Hide button when mouse on",SoftKeyboardTitle:"Software Keyboard",BackSpaceButton:"Back",ClearButton:"Clear",
WhiteSpaceButton:"Space",ArrowLeftButton:"\u2190",ArrowRightButton:"\u2192",CancelButton:"Cancel",DefaultHelpContent:"DefaultHelpContent",Copy:"Copy",Copied:"Copied"};var w=new Proxy({},{get:function(a,b){return Aa[za][b]}});v("setCulture",function(a,b){za=a;b&&(Aa[za]=b)});var Ba={Always:"always",PostDisplay:"postdisplay",PreDisplay:"predisplay"};v("ShowLiterals",Ba);var Ca={AdjustToMaxMin:"adjusttomaxmin",Clear:"clear",Restore:"restore",CancelInput:"cancelinput",Keep:"keep"};v("MaxMinBehavior",Ca);var Da={Control:"control",Field:"field"};v("TabAction",Da);var Ea={None:"none",Left:"left",Right:"right",Both:"both"};v("ExitOnLeftRightKey",Ea);var Fa={Insert:"insert",Overwrite:"overwrite",FixedInsert:"fixedinsert",FixedOverwrite:"fixedoverwrite"};v("EditMode",Fa);
var Ga={NoControl:"nocontrol",Filter:"filter",Cut:"cut"};v("CrLfMode",Ga);var Ha={NoControl:"nocontrol",Filter:"filter",Cut:"cut"};v("TabCharMode",Ha);var Ia={Enter:"enter",ShiftEnter:"shiftenter",Both:"both",None:"none"};v("ExitKey",Ia);var Ja={LeftSide:"leftside",RightSide:"rightside"};v("DropDownButtonAlignment",Ja);var La={IncludeLiterals:"includeliterals",ExcludeLiterals:"excludeliterals"};v("ClipContent",La);var Ma={None:"none",Field:"field",All:"all"};v("HighlightText",Ma);
var Na={LeftSide:"leftside",RightSide:"rightside"};v("SpinButtonAlignment",Na);var Oa={None:0,Click:1,ClientEvent:3,KeyExit:4,Default:5,ImeInput:8,Left:9,Right:10,DragDrop:11,ClearButton:12};Oa[Oa.None]="None";Oa[Oa.Click]="Click";Oa[Oa.ClientEvent]="ClientEvent";Oa[Oa.KeyExit]="KeyExit";Oa[Oa.Default]="Default";Oa[Oa.ImeInput]="ImeInput";Oa[Oa.Left]="Left";Oa[Oa.Right]="Right";Oa[Oa.DragDrop]="DragDrop";Oa[Oa.ClearButton]="ClearButton";v("FocusType",Oa);
var x={BackSpace:8,Tab:9,Clear:12,Return:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Select:41,Print:42,Execute:43,Insert:45,Delete:46,Help:47,D0:48,D1:49,D2:50,D3:51,D4:52,D5:53,D6:54,D7:55,D8:56,D9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,
NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Separator:108,Subtract:109,Decimal:110,Divide:111,NumLock:136,ScrollLock:137,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135};x[x.BackSpace]="BackSpace";x[x.Tab]="Tab";x[x.Clear]="Clear";x[x.Return]="Return";x[x.Shift]="Shift";x[x.Control]="Control";x[x.Alt]="Alt";x[x.Pause]="Pause";x[x.CapsLock]="CapsLock";
x[x.Escape]="Escape";x[x.Space]="Space";x[x.PageUp]="PageUp";x[x.PageDown]="PageDown";x[x.End]="End";x[x.Home]="Home";x[x.Left]="Left";x[x.Up]="Up";x[x.Right]="Right";x[x.Down]="Down";x[x.Select]="Select";x[x.Print]="Print";x[x.Execute]="Execute";x[x.Insert]="Insert";x[x.Delete]="Delete";x[x.Help]="Help";x[x.D0]="D0";x[x.D1]="D1";x[x.D2]="D2";x[x.D3]="D3";x[x.D4]="D4";x[x.D5]="D5";x[x.D6]="D6";x[x.D7]="D7";x[x.D8]="D8";x[x.D9]="D9";x[x.A]="A";x[x.B]="B";x[x.C]="C";x[x.D]="D";x[x.E]="E";x[x.F]="F";
x[x.G]="G";x[x.H]="H";x[x.I]="I";x[x.J]="J";x[x.K]="K";x[x.L]="L";x[x.M]="M";x[x.N]="N";x[x.O]="O";x[x.P]="P";x[x.Q]="Q";x[x.R]="R";x[x.S]="S";x[x.T]="T";x[x.U]="U";x[x.V]="V";x[x.W]="W";x[x.X]="X";x[x.Y]="Y";x[x.Z]="Z";x[x.NumPad0]="NumPad0";x[x.NumPad1]="NumPad1";x[x.NumPad2]="NumPad2";x[x.NumPad3]="NumPad3";x[x.NumPad4]="NumPad4";x[x.NumPad5]="NumPad5";x[x.NumPad6]="NumPad6";x[x.NumPad7]="NumPad7";x[x.NumPad8]="NumPad8";x[x.NumPad9]="NumPad9";x[x.Multiply]="Multiply";x[x.Add]="Add";
x[x.Separator]="Separator";x[x.Subtract]="Subtract";x[x.Decimal]="Decimal";x[x.Divide]="Divide";x[x.NumLock]="NumLock";x[x.ScrollLock]="ScrollLock";x[x.F1]="F1";x[x.F2]="F2";x[x.F3]="F3";x[x.F4]="F4";x[x.F5]="F5";x[x.F6]="F6";x[x.F7]="F7";x[x.F8]="F8";x[x.F9]="F9";x[x.F10]="F10";x[x.F11]="F11";x[x.F12]="F12";x[x.F13]="F13";x[x.F14]="F14";x[x.F15]="F15";x[x.F16]="F16";x[x.F17]="F17";x[x.F18]="F18";x[x.F19]="F19";x[x.F20]="F20";x[x.F21]="F21";x[x.F22]="F22";x[x.F23]="F23";x[x.F24]="F24";v("Key",x);
var Pa={None:"none",Auto:"auto",Always:"always"};v("FloatingLabelType",Pa);var Qa={Inside:"inside",ThroughBorder:"throughborder",Outside:"outside"};v("FloatingLabelDirection",Qa);var Ra={None:0,MouseWheel:1,SpinButton:2,UpDownKeys:4,All:7};Ra[Ra.None]="None";Ra[Ra.MouseWheel]="MouseWheel";Ra[Ra.SpinButton]="SpinButton";Ra[Ra.UpDownKeys]="UpDownKeys";Ra[Ra.All]="All";v("SpinType",Ra);var Sa,Ta,y,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,hb,ib,jb;function kb(){return"ontouchstart"in window||navigator.maxTouchPoints}function mb(){return hb||"android"==nb().toLowerCase()}
function nb(){if(y)var a=navigator.appVersion;else a=navigator.userAgent,a=a.substring(a.indexOf("(")+1,a.indexOf(")"));if(-1!=a.indexOf("NT 6.0"))return"vista";if(-1!=a.indexOf("NT 5.2"))return"win2003";if(-1!=a.indexOf("NT 5.1"))return"winxp";if(-1!=a.indexOf("NT 5.0"))return"win2000";if(-1!=a.indexOf("NT 6.1"))return"Win7";if(-1!=a.indexOf("NT 6.2")||-1!=a.indexOf("NT 6.3"))return"Win8";var b=a.indexOf("NT ");return 0<=b&&6.3<=parseFloat(a.substr(b+3,3))?"Win8":-1!=a.indexOf("Android")?"Android":
"unknow"}function ob(){var a=window.navigator.userAgent,b=/ipod|iphone/i.test(a),c=/like (ipod|iphone)/i.test(a);return b&&!c?(a=a.match(/(ipod|iphone)/i),"iphone"===(a&&0<a.length&&a[1]||"").toLowerCase()):!1}var pb=navigator.userAgent.toLowerCase();
if(window.ActiveXObject)Ua=pb.match(/msie ([\d.]+)/)[1];else if(-1!=pb.indexOf("edge"))Ta=pb.match(/edge\/([\d.]+)/)[1];else if(-1!=pb.indexOf("chrome")){cb=pb.match(/chrome\/([\d.]+)/)[1];try{eb=parseInt(cb)}catch(a){}}else if(-1!=pb.indexOf("safari"))if(pb.match(/version\/([\d.]+)/))db=pb.match(/version\/([\d.]+)/)[1];else{if(-1!=pb.indexOf("ipad")){var rb=pb.match(/crios\/([\d.]+)/);rb?(cb=rb[1],eb=parseInt(cb)):-1!=pb.indexOf("applewebkit")&&(rb=pb.match(/applewebkit\/([\d.]+)/))&&(db=rb[1])}}else-1!=
pb.indexOf("firefox")&&(Wa=pb.match(/firefox\/([\d.]+)/)[1]);-1!=navigator.userAgent.toLowerCase().indexOf("mac os")&&kb()?ib=hb=!0:-1!=pb.indexOf("ipad")&&(hb=!0);Ya=null;"Microsoft Internet Explorer"==window.navigator.appName&&(document.documentMode?Ya=document.documentMode:(Ya=5,document.compatMode&&"CSS1Compat"==document.compatMode&&(Ya=7),Ua&&0==Ua.indexOf("6")&&(Ya=6)));-1!==pb.indexOf("rv:")&&-1===pb.indexOf("firefox")&&(Ua=Ya=pb.match(/rv:([\d.]+)/)[1]);
jb=function(){var a=window.navigator.userAgent;return[/\sedg\//i,/edg([ea]|ios)/i].some(function(b){return b.test(a)})}();Sa=void 0!==Ta;y=void 0!==Ua||Sa;Va=null!=Wa&&4<=parseFloat(Wa);Xa=y&&11<=Ya||Sa;Za=y&&10<=Ya||Sa;$a=y&&9<=Ya||Sa;ab=y&&9==Ya;bb=y&&11==Ya;function sb(a){switch(a){case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":case "+/-":case ".":a=ub;break;case "+":case "-":case "*":case "/":case "SQRT":case "%":case "1/x":case "=":a=vb;break;case "MStatus":a=wb;break;case "MC":case "MR":case "MS":case "M+":a=xb;break;case "BS":a=Ab;break;case "CE":case "C":a=Bb;break;default:a=null}return a}var ub="Numeric",vb="Math",Ab="Edit",xb="Memory",wb="MemoryStatus",Bb="Reset";
function Cb(a){return a===Db||a===Eb||a===Fb||a===Gb}var Db=w.CalculatorDivideByZeroInfo,Eb=w.CalculatorInvalidInputInfo,Fb=w.CalculatorSqrtParameterException,Gb=w.CalculatorOverFlowInfo;
function Jb(a){var b=a.keyCode;a.shiftKey&&(b|=65536);a.ctrlKey&&(b|=131072);a.altKey&&(b|=262144);switch(b){case 131138:case 131140:case 131141:case 131144:case 131145:case 131148:case 131150:case 131154:case 131159:case 131188:case 262181:case 262183:case 117:case 65657:case 131081:case 196617:case 9:case 65545:case 121:case 123:return null;case 48:case 96:return"0";case 49:case 97:return"1";case 50:case 98:return"2";case 51:case 99:return"3";case 52:case 100:return"4";case 53:case 101:return"5";
case 54:case 102:return"6";case 55:case 103:return"7";case 56:case 104:return"8";case 57:case 105:return"9";case 120:return"+/-";case 190:case 188:case 110:return".";case 65723:case 107:return"+";case 65643:if(!y)return"+";case 189:case 109:return"-";case 65592:case 106:case 65722:return"*";case 191:case 111:return"/";case 65586:case 192:return"SQRT";case 65589:return"%";case 82:return"1/x";case 13:return"=";case 393292:return"MC";case 393298:return"MR";case 393293:return"MS";case 393296:return"M+";
case 8:return"BS";case 46:return"CE";case 27:case 131118:return"C";default:return 61==b&&Wa||187==b&&!Wa?"=":null}};function Kb(a){return-1!==String(a).indexOf(".")}function Lb(a){a=String(a);for(var b=0,c=a.length;0<c;c--){if("."==a.substring(c-1,c))return b;b++}return 0===c?0:b}
function Mb(a){var b=String(a),c="";0>a&&(c="-",b=b.substring(1,b.length));var d=b.length;a="";var e=b.indexOf("e");-1!=e&&(a=b.substring(e,d),b=b.substring(0,e),d=b.length);Kb(b)&&16<d&&(1<parseFloat(b)?(d=Lb(b)-(d-16),b=b.toString().substring(0,17)):(d=Lb(b)-(d-17),b=b.toString().substring(0,18)),b=0<d?(Math.round(parseFloat(b)*Math.pow(10,d))/Math.pow(10,d)).toString():Math.round(parseFloat(b)).toString());d=b.length;!Kb(b)&&15<d&&(d-=15,b=(Math.round(parseFloat(b)/Math.pow(10,d))*Math.pow(10,
d)).toString());b=parseFloat(c+b+a);c=parseFloat(b.toString());return 0!=c&&(7.9E28<c||1E-28>c&&-1E-28<c||-7.9E28>c)?Gb:b}function Nb(a,b){a=parseFloat(a);isNaN(a)&&(a=0);if("SQRT"==b){if(0>a)return Fb;a=Math.sqrt(a)}if("1/x"==b){if(0==a)return Db;b=Lb(a.toString());a=Math.pow(10,b)/(Math.pow(10,b)*a)}return Mb(a)}
function Ob(a,b,c){a=parseFloat(a);b=parseFloat(b);if(Kb(a.toString())||Kb(b.toString())){var d=0,e=0;Kb(a.toString())&&(d=Lb(a.toString()));Kb(b.toString())&&(e=Lb(b.toString()));var f=Math.max(d,e);if("+"==c){a*=Math.pow(10,f);b*=Math.pow(10,f);var h=(a+b)/Math.pow(10,f)}"-"==c&&(a*=Math.pow(10,f),b*=Math.pow(10,f),h=(a-b)/Math.pow(10,f));"*"==c&&(a*=Math.pow(10,d),b*=Math.pow(10,e),h=a*b/Math.pow(10,d+e));if("/"==c){a*=Math.pow(10,f);b*=Math.pow(10,f);if(0==b)return Db;h=a/b}"%"==c&&(a*=Math.pow(10,
d),b*=Math.pow(10,e),h=a*b/Math.pow(10,d+e+2))}else{"+"==c&&(h=a+b);"-"==c&&(h=a-b);"*"==c&&(h=a*b);if("/"==c){if(0==b)return Db;h=a/b}"%"==c&&(h=a*b/100)}return Mb(h)};function Qb(a,b){this.result="";this.y=this.x=0;this.fe=null;this.count=this.Bc=0;this.Xd=this.cg=this.qe=!1;this.Kd=null;if(a){a=parseFloat(String(a));this.result=String(a);this.x=a;a=Math.abs(a);var c=Math.floor(a),d=Lb(a.toString());this.count=(0==c?0:c.toString().length)+(0==(a*Math.pow(10,d)-c*Math.pow(10,d))/Math.pow(10,d)?0:d);this.qe=0<this.count}b?this.Ac=b:this.Ac=null}function Rb(a){a.result="";a.x=null;a.y=null;a.fe=null;a.Bc=0;a.qe=!1;a.cg=!1}
Qb.prototype.jk=function(a){var b=sb(a);if(b===ub&&!this.Xd){null==this.result&&(this.result="");if(!(14<this.count&&"+/-"!=a))switch("."!=a&&"+/-"!=a&&("0"!=a||"0"!=String(this.result)&&""!=this.result)&&this.count++,"+/-"!=a&&(this.qe=!0),this.Bc){case 0:Sb(a)&&("ClickNumericButton"!=this.Kd&&null!=this.Kd&&(this.result="0"),"0"==this.result&&"0"!=a?this.result=String(Sb(a)?a:null):"0"!=this.result&&(this.result=String(this.result)+(Sb(a)?a:null)));"+/-"==a&&(-1==this.result.toString().indexOf("e")?
""!=this.result&&"0"!=this.result&&(this.result=-1==this.result.toString().indexOf("-")?"-"+this.result:this.result.toString().substring(1,this.result.toString().length)):this.result=0<this.result-0?"-"+this.result:this.result.substring(1,this.result.length));"."==a&&(("ClickNumericButton"!=this.Kd&&null!=this.Kd&&(this.result="0."),""==this.result||Kb(this.result))?""!=this.result&&Kb(this.result)||(this.result="0."):this.result=this.result+".");this.Bc=1;break;case 1:Sb(a)&&("ClickNumericButton"!=
this.Kd&&null!=this.Kd&&(this.result="0"),"0"!=this.result||"0"!=a)&&(this.result="0"==this.result&&"0"!=a?String(Sb(a)?a:null):String(this.result)+(Sb(a)?a:null));"+/-"==a&&(-1==this.result.toString().indexOf("e")?""!=this.result&&"0"!=this.result&&(this.result=-1==this.result.toString().indexOf("-")?"-"+this.result:this.result.toString().substring(1,this.result.toString().length)):this.result=0<this.result-0?"-"+this.result:this.result.substring(1,this.result.length));"."==a&&("ClickNumericButton"!=
this.Kd&&null!=this.Kd?this.result="0.":Kb(this.result)||(this.result=""==this.result?"0.":this.result+"."));this.cg||(this.y=this.result);break;case 2:Sb(a)&&(this.result="",this.result+=Sb(a)?a:null);"."==a&&(this.result="0.");"+/-"==a&&(this.result="0");this.Bc=3;this.y=this.result;break;case 3:Sb(a)&&("ClickNumericButton"!=this.Kd&&null!=this.Kd&&(this.result="0"),"0"!=this.result||"0"!=a)&&(this.result="0"==this.result&&"0"!=a?String(Sb(a)?a:null):String(this.result)+(Sb(a)?a:null)),"+/-"==a&&
(-1==this.result.toString().indexOf("e")?""!=this.result&&"0"!=this.result&&(this.result=-1==this.result.toString().indexOf("-")?"-"+this.result:this.result.toString().substring(1,this.result.toString().length)):this.result=0<this.result-0?"-"+this.result:this.result.substring(1,this.result.length)),"."==a&&("ClickNumericButton"!=this.Kd&&null!=this.Kd?this.result="0.":Kb(this.result)||(this.result=""==this.result?"0.":this.result+".")),this.y=this.result}"+/-"!==a&&(this.Kd="ClickNumericButton")}if(b===
vb&&!this.Xd){this.count=0;this.qe=!1;this.cg&&(this.cg=!1);var c=this.result;if(null==c)c=null;else{c=String(c);var d=c.length;if(Kb(c))for(;"0"==c.substring(d-1,d)&&""!=c&&-1==c.indexOf("e");)c=c.substring(0,d-1),d--}this.result=c;switch(this.Bc){case 0:""==this.result&&(this.result=0);Tb(a)&&"%"!=a&&(this.result=Nb(this.result,a).toString(),Cb(this.result)||(this.x=this.result),this.Bc=1);Ub(a)&&(this.fe=a,this.x=this.result,this.Bc=2);"%"==a&&Rb(this);break;case 1:Tb(a)&&"%"!=a&&(this.result=
Nb(this.result,a).toString(),Cb(this.result)||(null!=this.fe&&null!=this.y?this.y=this.result:this.x=this.result));"="==a&&(null!=this.fe&&null!=this.y?(this.result=Ob(this.x.toString(),this.y.toString(),this.fe).toString(),Cb(this.result)||(this.x=this.result)):"-0."==this.result&&(this.result="0."),this.cg=!0,this.qe=!1);Ub(a)&&(this.fe=a,this.x=this.result,this.Bc=2);"%"==a&&(null!=this.fe?(this.y=this.result,this.y=this.result=Ob(this.x.toString(),this.y.toString(),"%").toString()):Rb(this));
break;case 2:Tb(a)&&"%"!=a&&(this.result=Nb(this.result,a).toString(),Cb(this.result)||(this.Bc=3,this.y=this.result));"="==a&&(this.y=this.x,this.result=Ob(this.x.toString(),this.x.toString(),this.fe).toString(),Cb(this.result)||(this.x=this.result,this.Bc=1,this.qe=!1),this.cg=!0);Ub(a)&&(this.fe=a,this.y=this.result);"%"==a&&(this.result=Ob(this.x.toString(),this.x.toString(),"%"),Cb(this.result)||(this.y=this.result,this.Bc=3));break;case 3:Tb(a)&&"%"!=a&&(this.result=Nb(this.result,a).toString(),
Cb(this.result)||(this.y=this.result)),Ub(a)&&(this.y=this.result,this.result=Ob(this.x.toString(),this.y.toString(),this.fe).toString(),Cb(this.result)||(this.x=this.result,this.y=null,this.fe=a,this.Bc=2)),"%"==a&&(this.result=Ob(this.x.toString(),this.y.toString(),"%"),Cb(this.result)||(this.y=this.result)),"="==a&&(this.y=this.result,this.result=Ob(this.x.toString(),this.y.toString(),this.fe).toString(),Cb(this.result)||(this.x=this.result,this.Bc=1,this.qe=!1),this.cg=!0)}this.result=this.result;
this.Kd="ClickMathButton"}if(b===xb&&!this.Xd){this.count=0;this.qe=!1;"MC"==a&&(this.Ac=null);if("MR"==a)if(null!=this.Ac)switch(this.result=String(this.Ac),this.Bc){case 0:this.x=this.result;break;case 2:this.y=this.result;this.Bc=3;break;case 3:this.y=this.result}else this.result="0",this.qe=!1;"MS"==a&&(""!=this.result?0==this.result-0?(this.result-=0,this.Ac=null):this.Ac=this.result:this.Ac=null);"M+"==a&&""!=this.result&&(0==this.result-0?this.result-=0:(null==this.Ac&&(this.Ac=0),this.result-=
0,this.Ac=this.Ac,d=c=0,Kb(this.result)&&(c=Lb(this.result)),Kb(this.Ac.toString())&&(d=Lb(this.Ac.toString())),c=Math.max(c,d),this.Ac=(this.result*Math.pow(10,c)+this.Ac*Math.pow(10,c))/Math.pow(10,c)));this.Kd="ClickMemoryButton"}if(b===Ab&&!this.Xd&&(0<this.count&&this.count--,(0==this.Bc||1==this.Bc||3==this.Bc)&&1==this.qe))switch(this.result=this.result,c=this.result.length,0<c&&(this.result=this.result.substring(0,c-1)),"-0"==this.result&&(this.result="0"),"-"==this.result&&(this.result=""),
""==this.result&&(this.qe=!1),this.Bc){case 0:this.x=this.result;break;case 1:this.x=this.result;break;case 3:this.y=this.result}b===Bb&&(this.count=0,this.qe=!1,this.result="","CE"==a&&(1!=this.Bc||null==this.fe||this.cg||(this.y=0),2==this.Bc&&(this.Bc=3)),"C"==a&&Rb(this),this.Xd=!1);this.Xd?a=null:(a={},a.zq=""==this.result||null==this.result?"0.":Kb(this.result)||-1!=String(this.result).indexOf("e")||Cb(this.result)?String(this.result):this.result+".",Cb(this.result)&&(this.Xd=!0),a.result=null==
this.result?"":this.result,a.x=this.x,a.y=this.y,a.fe=this.fe,a.Bc=this.Bc,a.count=this.count,a.Ac=this.Ac,a.qe=this.qe,a.cg=this.cg,a.Xd=this.Xd,a.Kd=this.Kd);return a};function Sb(a){return 1===a.length&&"0"<=a&&"9">=a?!0:!1}function Tb(a){switch(a){case "SQRT":case "1/x":case "%":a=!0;break;default:a=!1}return a}function Ub(a){switch(a){case "+":case "-":case "*":case "/":a=!0;break;default:a=!1}return a};var Vb=window.document;
function Xb(){var a=[];return function(b,c){function d(h){function k(u){u=u.split(/([\.#]?[^\s#.]+)/);/^\.|#/.test(u[1])&&(f=Vb.createElement("div"));Yb(u,function(r){var z=r.substring(1,r.length);r&&(f?"."===r[0]?f.classList.add(z):"#"===r[0]&&f.setAttribute("id",z):f=Vb.createElement(r))})}var l;if(null!=h)if("string"===typeof h)f?f.appendChild(l=Vb.createTextNode(h)):k(h);else if("number"===typeof h||"boolean"===typeof h||h instanceof Date||h instanceof RegExp)f.appendChild(l=Vb.createTextNode(h.toString()));
else if("[object Array]"==Object.prototype.toString.call(h))Yb(h,d);else if(h&&h.nodeName&&h.nodeType)f.appendChild(l=h);else if(h instanceof Text)f.appendChild(l=h);else if("object"===typeof h)for(var m in h)if("function"===typeof h[m])/^on\w+/.test(m)?function(u,r){f.addEventListener?(f.addEventListener(u.substring(2),r[u],!1),a.push(function(){f.removeEventListener(u.substring(2),r[u],!1)})):(f.attachEvent(u,r[u]),a.push(function(){f.detachEvent(u,r[u])}))}(m,h):(f[m]=h[m](),a.push(h[m](function(u){f[m]=
u})));else if("style"===m)if("string"===typeof h[m])f.style.cssText=h[m];else for(var n in h[m])(function(u,r){if("function"===typeof r)f.style.setProperty(u,r()),a.push(r(function(D){f.style.setProperty(u,D)}));else var z=h[m][u].match(/(.*)\W+!important\W*$/);z?f.style.setProperty(u,z[1],"important"):f.style.setProperty(u,h[m][u])})(n,h[m][n]);else if("attrs"===m)for(var q in h[m])f.setAttribute(q,h[m][q]);else"data-"===m.substr(0,5)?f.setAttribute(m,h[m]):"gcim-"===m.substr(0,5)?f.setAttribute(m,
h[m]):-1<["class","tabindex","autocomplete","name"].indexOf(m)?f.setAttribute(m,h[m]):f[m]=h[m];else"function"===typeof h&&(n=h(),f.appendChild(l=n&&n.nodeName&&n.nodeType?n:Vb.createTextNode(n)),a.push(h(function(u){u&&u.nodeName&&u.nodeType&&l.parentElement?(l.parentElement.replaceChild(u,l),l=u):l.textContent=u})));return l}for(var e=[].slice.call(arguments),f=null;e.length;)d(e.shift());return f}}var A=Xb();A.context=Xb;
function Yb(a,b){if(a.forEach)a.forEach(b);else for(var c=0;c<a.length;c++)b(a[c],c)};function Zb(){return Error("Abstract method called")}function $b(a,b,c,d){console.warn("The value of field "+c+" is "+a+", which should be grater or equal than field "+d+" is "+b)}function cc(a){console.warn("Invalid value: "+a)}function dc(a){console.warn("Invalid text: "+a)}function ec(a){console.warn("Invalid text filter: "+a)}function fc(){console.warn("Argument out of range exception")}function gc(){console.warn("Argument Exception")}function hc(){console.warn("Invalid format pattern")}
function ic(){console.warn("Invalid parameter")}function lc(a,b,c){console.warn("Given value: "+a+" is not in the valid range of max: "+b+" and min: "+c)}function mc(){console.warn("The value is out of range.")}function nc(){console.warn("The MinValue should not bigger than the MaxValue.")}function oc(){console.warn("Operation not supported ")}function pc(){console.warn("The Format.Digit's value is invalid.")}
function qc(){console.warn("If the intenger format contains '#', it should not start with '0'.")}function rc(a,b){console.warn("Value: "+a+" is not a "+b)}function sc(){console.warn("Not Available in GcTextBox")}function tc(){return Error("Method not implemented")};function uc(a,b){a=vc.indexOf(a.charAt(b));if(-1==a)throw"Cannot decode base64";return a}
function wc(){var a=Bc;if(void 0!==window.atob)return window.atob(a);a=String(a);var b,c=a.length;if(0==c)return a;if(0!=c%4)throw"Cannot decode base64";var d=0;a.charAt(c-1)==Cc&&(d=1,a.charAt(c-2)==Cc&&(d=2),c-=4);var e=[];for(b=0;b<c;b+=4){var f=uc(a,b)<<18|uc(a,b+1)<<12|uc(a,b+2)<<6|uc(a,b+3);e.push(String.fromCharCode(f>>16,f>>8&255,f&255))}switch(d){case 1:f=uc(a,b)<<18|uc(a,b+1)<<12|uc(a,b+2)<<6;e.push(String.fromCharCode(f>>16,f>>8&255));break;case 2:f=uc(a,b)<<18|uc(a,b+1)<<12,e.push(String.fromCharCode(f>>
16))}return e.join("")}var Cc="=",vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c=this.length>>>0;b=Number(b)||0;b=0>b?Math.ceil(b):Math.floor(b);for(0>b&&(b+=c);b<c;b++)if(this[b]===a)return b;return-1});
function Dc(a){if(0===Ec.length){var b=wc(),c=[],d;for(d=0;d<b.length;d+=2)c.push(256*b.charCodeAt(d+1)+b.charCodeAt(d));b=[];for(d=0;d<c.length;d++)if(65534!=c[d])b.push(c[d]);else{for(var e=c[d+1],f=1;f<e;f++)b.push(c[d-1]);d++}for(d=0;d<b.length;d+=2)Ec.push(65536*b[d+1]+b[d])}c=Ec[Math.floor(a/4)];switch(a%4){case 0:return c&255;case 1:return c>>8&255;case 2:return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vQAAA/v8CAABwt0AAAP7/AgAAWLtAAAD+/wIAAEC/QAAA/v8CAACUwUAAAP7/AgAAiNNAAAD+/wIAAEzdQAAA/v8CAACI40AAAP7/AgAATO1AAAD+/wIAABfxQAAA/v8CAACI80AAAP7/AgAA+fVA",Jc,
Kc,Lc;function Mc(a,b,c){void 0===Jc&&(Jc=0,Kc=Ic(Jc+40),Lc=Ic(Jc+44),Ic(Jc+48),Ic(Jc+56),Ic(Jc+52));a:{c.length=1;if(b<a.length-1){var d=a.charCodeAt(b)-55296;if(0<=d&&1023>=d){var e=a.charCodeAt(b+1)-56320;if(0<=e&&1023>=e){c.length++;a=1024*d+e+65536;break a}}}a=a.charCodeAt(b)}b=a;a=0;if(void 0===a||null===a)a=0;c=Fc(Kc+2*(b>>8));c=Fc(Kc+2*(c+(b>>4&15)));b=Dc(Kc+2*c+(b&15));return Dc(Lc+2*b+a)}function Pc(a){return a!==Qc&&a!==Rc?a===Sc:!0}var Sc=7,Qc=5,Rc=6;var Tc,Uc,Vc={},Wc=0,Xc=0,Yc=!0;function Zc(a,b){$c(a);a=b;if(null!==Tc&&0<b){b=Math.min(b,Tc.length);for(var c=a=0;c<b;c++)a+=Tc[c].length}return a}
function $c(a){if(void 0===Tc||Uc.toString()!=a.toString()){Uc=a;var b=Vc[a];if(void 0===b&&Yc){b=[];for(var c=0;c<a.length;){var d={};var e=a;var f=c,h=d;if(null==e)console.warn("Argument null exception"),e=null;else{var k=e.length;if(0>f||f>=k)f!=k&&fc(),e="";else{var l={},m=Mc(e,f,l);var n=e;var q=f;l=l.length;var u=h;if(q+l===k)n=l;else{var r={};var z=Mc(n,q+l,r);r=r.length;if(!Pc(z)||Pc(m)||15===m||14===m||29===m||16===m)u.Ns=z,u.Br=r,n=l;else{m=q;for(q+=l+r;q<k;){r={};z=Mc(n,q,r);r=r.length;
if(!Pc(z)){u.Ns=z;u.Br=r;break}q+=r}n=q-m}}h.length=n;e=e.substr(f,n)}}if(null!==e)b.push(e),c+=d.length;else break}1E4<Wc&&(Vc={},Wc=0);Vc[a]=b;Wc++}if(void 0==b||b.length===a.length)Tc=null;else for(Tc=b,a=0;a<b.length&&!(2<b[a].length);a++);}}String.prototype.ba=function(){if(!Yc)return this.length;$c(this);var a=this.length;null!==Tc&&(a=Tc.length);return a};
function C(a,b,c){$c(a);if(b>=c)return"";a=a.substring(b,c);if(null!==Tc){b=Math.max(0,b);c=Math.min(Tc.length,c);for(a=[];b<c;b++)a.push(Tc[b]);a=a.join("")}return a}String.prototype.jb=function(a,b){$c(this);b=this.indexOf(a,b);if(null!==Tc&&0<b)for(var c=0,d=0;d<Tc.length;d++)if(c+=Tc[d].length,c==b){b=d+1;break}null!==Tc&&0<=b&&C(this,b,b+a.ba()).length!=a.length&&(b=-1);return b};
function ad(a,b){$c(a);var c=a.lastIndexOf(b);if(null!==Tc&&0<c)for(var d=0,e=0;e<Tc.length;e++)if(d+=Tc[e].length,d==c){c=e+1;break}null!==Tc&&0<=c&&C(a,c,c+b.ba()).length!=b.length&&(c=-1);return c}function bd(a,b){if(!Yc)return a.charAt(b);$c(a);a=a.charAt(b);null!==Tc&&(a=0<=b&&b<Tc.length?Tc[b]:"");return a}function cd(a){return 0==a.length||2>a.length?!1:"Gc"==a.substr(0,2)?!0:!1};var dd=this;function ed(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()}function E(a,b){if(a.classList&&a.classList.add)a.classList.add(b);else{var c=a.className;-1<c.indexOf(b.trim())||(c=(c+(" "+b)).replace(/\s+/," ").trim(),a.className=c)}}
function jd(a,b){if(!a.classList||!a.classList.remove||b instanceof RegExp){var c=a.className;c=b instanceof RegExp?c.replace(b,""):c.replace(new RegExp(b,"g"),"");c=c.replace(/\s+/," ").trim();a.className=c}else a.classList.remove(b)}function kd(a){if("string"===typeof a||a instanceof String)a=new Date(a.trim());return a}function ld(a){return"string"===typeof a||a instanceof String?Number(a):a}function md(a,b,c){b>c&&nc();a<b&&(a=b);a>c&&(a=c);return a}
function nd(a){if("number"===typeof a&&0<=a)return a+"px";if("string"===typeof a){if(/^(\d+(\.\d{1,2})?|\.\d{1,2})%$/.test(a))return a;var b=parseFloat(a);if(!isNaN(b)&&0<=b)return parseFloat(a)+"px"}console.warn("Invalid value, size must be a positive number");return null}
function od(a){var b=0,c=navigator.userAgent.toLowerCase();if(-1!=navigator.appVersion.toLowerCase().indexOf("mac os")){if(-1!=c.indexOf("safari")||-1!=c.indexOf("chrome"))b=a.deltaY}else b=-1!=c.indexOf("firefox")?a.detail?40*a.detail:a.deltaY?a.deltaY:-a.wheelDelta:a.wheelDelta?-a.wheelDelta:a.deltaY?a.deltaY:a.detail;return b}var pd={};
function qd(a){if(a)return 0;a=pd[window.devicePixelRatio];if(!a){a=document.createElement("div");var b=document.createElement("div"),c=document.createElement("div");a.classList.add("gcim__scroll-bar");b.classList.add("gcim__scroll-bar-container");c.classList.add("gcim__scroll-bar-content");a.appendChild(b);b.appendChild(c);Wa&&a.setAttribute("browser","firefox");document.body.appendChild(a);b={width:b.offsetWidth-b.clientWidth,height:b.offsetHeight-b.clientHeight};0==b.width&&-1!=navigator.appVersion.toLowerCase().indexOf("mac os")&&
(b.width=15,b.height=15);a.remove();a=b;pd[window.devicePixelRatio]=a}return a.width}function Bd(a,b){return b.replace(/\{!(.*?)\}/g,function(c,d){var e=c;try{var f=String;var h=Function("instance",'"use strict"; return ('+d+")")(a);e=f(h)}catch(k){console.error("There is an error in the expression '"+c+"' :",k.message)}return e})}function Cd(a,b){this.x=ld(void 0===a?0:a);this.y=ld(void 0===b?0:b)}
function Dd(a){return decodeURIComponent(Array.prototype.map.call(Ed(a),function(b){return"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)}).join(""))}
function Ed(a){function b(k,l){k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(k.charAt(l));if(-1==k)throw"Cannot decode base64";return k}if(void 0!==window.atob)return window.atob(a);a=String(a);var c,d=a.length;if(0==d)return a;if(0!=d%4)throw"Cannot decode base64";var e=0;"="==a.charAt(d-1)&&(e=1,"="==a.charAt(d-2)&&(e=2),d-=4);var f=[];for(c=0;c<d;c+=4){var h=b(a,c)<<18|b(a,c+1)<<12|b(a,c+2)<<6|b(a,c+3);f.push(String.fromCharCode(h>>16,h>>8&255,h&255))}switch(e){case 1:h=
b(a,c)<<18|b(a,c+1)<<12|b(a,c+2)<<6;f.push(String.fromCharCode(h>>16,h>>8&255));break;case 2:h=b(a,c)<<18|b(a,c+1)<<12,f.push(String.fromCharCode(h>>16))}return f.join("")}function Fd(a){var b=null;return function(){var c=oa.apply(0,arguments);b||(b=setTimeout(function(){a.apply(dd,c);b=null},50))}}function Gd(a,b,c){b=new Date(a,b,c);b.setFullYear(a);return b}
function Hd(){var a=Id,b=[];if(F(a)||"object"!==typeof a)return b;if("function"===typeof Object.values)return Object.values(a);for(var c in a)b.push(a[c]);return b}function F(a){return""===a||null===a||void 0===a}function Jd(a){return"string"==typeof a&&""!=a}function G(a){return void 0===a||null===a}
function Kd(a){var b=[Ld.DisableDay,Md.DisableMonth];return a?(a=a.className)?0<a.split(" ").filter(function(c){return b instanceof RegExp?b.test(c):b instanceof Array?-1!==b.indexOf(c):c===b}).length:!1:!1}function Nd(a){var b=getComputedStyle(a);a=0;var c=parseFloat(b.borderLeft);isNaN(c)||(a+=c);c=parseFloat(b.borderRight);isNaN(c)||(a+=c);c=parseFloat(b.paddingLeft);isNaN(c)||(a+=c);b=parseFloat(b.paddingRight);isNaN(b)||(a+=b);return a}
function Od(a,b){var c;if(!(c=a==b))a:{if(b)for(b=b.parentNode;null!=b;){if(b==a){c=!0;break a}b=b.parentNode}c=!1}return c}function Pd(a){if(!a)return null;if(a instanceof Node)return a;var b="";try{b=document.querySelector(a).innerHTML}catch(c){b=a}a=document.createElement("div");a.innerHTML=b;return a.firstElementChild}function Qd(a){if(a)for(;-1!=a.indexOf(" ");)a=a.replace(" ","\u00a0");return a}
function Rd(a,b){if(!Array.isArray(a)||"function"!==typeof b)return null;for(var c=0;c<a.length;c++)if(b(a[c]))return a[c];return null}function Sd(a,b){if(!Array.isArray(a)||"function"!==typeof b)return-1;for(var c=0;c<a.length;c++)if(b(a[c]))return c;return-1}
function Xd(a,b,c){for(var d=0,e,f=0;f<b.length;f++)if(a==b[f].Qe){e=b[f];d=c?(f+1)%b.length:(f-1+b.length)%b.length;var h=b[d].Qe;if(null!=h)if("radio"==h.type&&h.parentElement)if("none"==h.parentElement.style.display)f=0;else{a:if(a=b[d].Qe,1!=a.checked)for(c=0;c<b.length;c++)if(a=b[c].Qe,"radio"==a.type&&1==a.checked){d=c;break a}break}else if("none"==h.style.display)f=0;else break}return d>=b.length||0>d?e:b[d]}
function Yd(a,b){return 0<a.Ah&&0===b.Ah?-1:0===a.Ah&&0<b.Ah?1:a.Ah-b.Ah||a.index-b.index}
function Zd(){var a=[],b=["button","input","object","select","textarea"];var c=document.body.querySelectorAll?document.body.querySelectorAll("button,input,object,select,textarea"):y?document.body.all:document.body.getElementsByTagName("*");for(var d=0,e=0;e<c.length;e++)if(!c[e].disabled&&-1!==c[e].tabIndex&&"hidden"!==c[e].style.visibility&&"hidden"!==c[e].type&&"none"!==c[e].style.display&&-1!==b.indexOf(c[e].tagName.toLowerCase())){var f={};f.Qe=c[e];f.Ha=c[e].id;f.Ah=c[e].tabIndex;f.index=e;-1<
f.Ah&&(a[d++]=f)}return a}function $d(a,b,c){ae(a)||(a&&a.setAttribute("ctrl-type",b),G(c)||(a["IMJS-CTRL"]=c))}function be(a){if("string"===typeof a)if(document.getElementById(a))var b=document.getElementById(a);else{a=document.querySelectorAll(a);for(var c=0;c<a.length;c++)if(-1===a[c].className.indexOf("gcim-layout")){b=a[c];break}}else a instanceof HTMLElement?b=a:a[0]&&(b=a[0]);return b?b["IMJS-CTRL"]||null:null}function ce(a){a&&(a.removeAttribute("ctrl-type"),a["IMJS-CTRL"]=null)}
function ae(a){return a&&a.hasAttribute("data-nested")&&"true"===a.getAttribute("data-nested")}
function ee(a,b){function c(m){m=m||window.event;m.preventDefault();k=m.clientX;l=m.clientY;document.addEventListener("mouseup",e);document.addEventListener("mousemove",d)}function d(m){var n=fe();m=m||window.event;m.preventDefault();f=k-m.clientX;h=l-m.clientY;k=m.clientX;l=m.clientY;b.style.position="fixed";m=b.offsetTop-h;var q=b.offsetLeft-f;m>=.5*b.offsetHeight&&m<=n.clientHeight-.5*b.offsetHeight&&(b.style.top=m+"px");q>=.5*b.offsetWidth&&q<=n.clientWidth-.5*b.offsetWidth&&(b.style.left=q+"px");
b.style.transform=b.offsetLeft-f+"px"}function e(){document.removeEventListener("mouseup",e);document.removeEventListener("mousemove",d)}var f=0,h=0,k=0,l=0;a?a.addEventListener("mousedown",c):b.addEventListener("mousedown",c)}
function fe(){var a={clientWidth:0,clientHeight:0,scrollLeft:0,scrollTop:0};document.documentElement&&document.documentElement.clientWidth?a.clientWidth=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(a.clientWidth=document.body.clientWidth);document.documentElement&&document.documentElement.clientHeight?a.clientHeight=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(a.clientHeight=document.body.clientHeight);document.documentElement&&
document.documentElement.scrollLeft?a.scrollLeft=document.documentElement.scrollLeft:document.body&&document.body.scrollLeft&&(a.scrollLeft=document.body.scrollLeft);document.documentElement&&document.documentElement.scrollTop?a.scrollTop=document.documentElement.scrollTop:document.body&&document.body.scrollTop&&(a.scrollTop=document.body.scrollTop);a.zt=a.scrollLeft+a.clientWidth;a.yt=a.scrollTop+a.clientHeight;return a}
function ge(a){a=a.getBoundingClientRect();return new Cd(a.left+a.width/2,a.top+a.height/2)}function he(a){if(a&&"object"===typeof a){for(var b=fa(Reflect.ownKeys(a)),c=b.next();!c.done;c=b.next())delete a[c.value];Object.setPrototypeOf(a,null)}};function ie(a){this.i=a;je(this);this.g=this.i.container.querySelector(".gcim__calculator");this.h=this.g.querySelector(".calculator-output");this.s=this.g.querySelector(".calculator-output-panel");ke(this)}function ke(a){a.g.addEventListener("contextmenu",function(c){c.preventDefault()});var b="click";mb()&&"ontouchstart"in window&&(b="touchstart");a.g.addEventListener(b,a.u.bind(a))}ie.prototype.u=function(a){var b=le(this,a.target);null!==b&&(a.preventDefault(),this.i.btnClickHandler(b.dataset.key))};
function me(a,b){for(var c in b)ve(a,c).setAttribute("data-enable",b[c]+"")}function we(a,b){G(b)||Object.keys(b).forEach(function(c){var d=ve(a,c);d&&d.firstElementChild&&(d.firstElementChild.textContent=b[c])})}function ve(a,b){return a.g.querySelector('.calculator-btn[data-key="'+b+'"]')}function le(a,b){return a.g.contains(b)?b.classList.contains("calculator-btn")&&b.hasAttribute("data-key")?b:le(a,b.parentElement):null}
function je(a){var b=A("div",{class:"gcim gcim__calculator",tabIndex:"0"},A("div",{class:"calculator-content"},A("div",{class:"calculator-output-panel"},A("div",{class:"calculator-output"})),A("div",{class:"calculator-btn-panel"},[["MStatus","BS","CE","C"],"MC 7 8 9 / SQRT".split(" "),"MR 4 5 6 * %".split(" "),"MS 1 2 3 - 1/x".split(" "),"M+ 0 +/- . + =".split(" ")].map(function(c){return A("div",{class:"calculator-btn-row"},c.map(function(d){return A("div",{class:"calculator-btn","data-key":d,"data-key-type":sb(d)},
A("span",null))}))}))));a.i.container.innerHTML="";a.i.container.appendChild(b)};function xe(){}p.Object.defineProperties(xe,{g:{configurable:!0,enumerable:!0,set:function(a){window.GC.InputMan.controlInitialize=a},get:function(){var a;return null!==(a=window.GC.InputMan.controlInitialize)&&void 0!==a?a:!1}},appendDropDownToBody:{configurable:!0,enumerable:!0,get:function(){return ye},set:function(a){xe.g||(ye=a)}},inputOffset:{configurable:!0,enumerable:!0,get:function(){return ze},set:function(a){"number"===typeof a&&0<=a&&(ze=a)}}});var ye=!1,ze=0;function Ae(a){this.ca="0.";this.s=null;this.i=!1;this.Sc=this.u=!0;this.h=Be();this.g=Ce();a=this.Pa=a;var b=this.text;a.h.textContent=b;a.h.title=b;this.Pa.g.setAttribute("data-enable",this.enabled+"");this.Pa.s.setAttribute("data-hidden",!this.showOutput+"");me(this.Pa,this.g);Ee(this)}Ae.prototype.restoreButtonText=function(){this.buttonText=Be()};function Ee(a){var b=null!==a.Ac,c=JSON.parse(JSON.stringify(a.buttonText));c.MStatus=a.buttonText.MStatus[b?"hasValue":"noValue"];we(a.Pa,c)}
function Be(){var a={};Object.keys(xa).forEach(function(b){b=xa[b];a[b]=b});a.SQRT="\u221a";a.MStatus={};a.MStatus.hasValue="M";a.MStatus.noValue=" ";return a}function Ce(){var a={},b;for(b in xa)a[xa[b]]=!0;a.MStatus=!1;return a}
p.Object.defineProperties(Ae.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.Xd?null:parseFloat(this.text)}},text:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){if(this.ca!==a&&"string"===typeof a){this.ca=a;if(this.showOutput){var b=this.Pa;b.h.textContent=a;b.h.title=a}this.text=this.text}}},Ac:{configurable:!0,enumerable:!0,get:function(){return this.s},set:function(a){this.s===a||"number"!==typeof a&&null!==a||isNaN(a)&&null!==a||(this.s=
a,Ee(this))}},showOutput:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){this.u!==a&&"boolean"===typeof a&&(this.u=a,this.Pa.s.setAttribute("data-hidden",!a+""))}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.Sc},set:function(a){if(this.Sc!==a&&"boolean"===typeof a){this.Sc=a;for(var b in xa)this.g[xa[b]]=a;this.g.MStatus=!1;this.Pa.g.setAttribute("data-enable",a+"");me(this.Pa,this.g)}}},Xd:{configurable:!0,enumerable:!0,get:function(){return this.i},
set:function(a){if(this.i!==a&&"boolean"===typeof a){if(this.i=a)for(var b in this.g)sb(b)!==Bb&&(this.g[b]=!1);else this.g=Ce();me(this.Pa,this.g)}}},buttonText:{configurable:!0,enumerable:!0,get:function(){return this.h},set:function(a){var b=this;"object"===typeof a&&(Object.keys(a).forEach(function(c){var d=a[c];"MStatus"===c?"string"===typeof d?b.h[c].hasValue=d:"object"===typeof d&&("string"===typeof d.hasValue&&(b.buttonText[c].hasValue=d.hasValue),"string"===typeof d.noValue&&(b.buttonText[c].noValue=
d.noValue)):void 0!==b.h[c]&&"string"===typeof d&&(b.h[c]=d)}),Ee(this))}},ea:{configurable:!0,enumerable:!0,get:function(){return this.g}}});
function Fe(a,b){xe.g=!0;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();this.ua=a;this.ic=a.style.cssText;this.Hd=a.className;this.ce=a.innerHTML;$d(this.ua,this.componentName,this);this.Pa=new ie({container:this.ua,btnClickHandler:this.btnClickHandler.bind(this)});this.h=new Ae(this.Pa);this.i=new Qb;b&&(G(b.value)||(this.value=b.value),G(b.showOutput)||(this.showOutput=b.showOutput),G(b.visible)||(this.visible=b.visible),G(b.enabled)||(this.enabled=b.enabled),G(b.buttonText)||(this.buttonText=
b.buttonText));this.Pa.g.addEventListener("keydown",this.Cr.bind(this))}g=Fe.prototype;g.Hf=function(){this.Hd?this.ua.className=this.Hd:this.ua.removeAttribute("class");this.ic?this.ua.style.cssText=this.ic:this.ua.removeAttribute("style");this.ua.innerHTML=this.ce};g.destroy=function(){ce(this.ua);this.Hf();he(this)};g.getHost=function(){return this.ua};g.focus=function(){this.Pa.g.focus()};g.restoreButtonText=function(){this.h.restoreButtonText()};g.performClick=function(a){Ge(this,a)};
g.btnClickHandler=function(a){Ge(this,a)};g.Cr=function(a){if(this.enabled){var b=Jb(a);null!==b&&(a.preventDefault(),Ge(this,b))}};function Ge(a,b){a.enabled&&a.g.ea[b]&&(b=a.i.jk(b),null!=b&&(null!=b.zq&&(a.g.text=b.zq),null!=b.Xd&&(a.g.Xd=b.Xd),a.g.Ac=null===b.Ac?null:parseFloat(b.Ac)))}
p.Object.defineProperties(Fe.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.h}},element:{configurable:!0,enumerable:!0,get:function(){return this.Pa.g}},showOutput:{configurable:!0,enumerable:!0,get:function(){return this.g.showOutput},set:function(a){this.h.showOutput=a}},visible:{configurable:!0,enumerable:!0,get:function(){return"none"===this.Pa.g.style.display?!1:!0},set:function(a){this.Pa.g.style.display=a?"":"none"}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.g.enabled},
set:function(a){this.g.enabled=a}},isInvalid:{configurable:!0,enumerable:!0,get:function(){return this.g.Xd}},text:{configurable:!0,enumerable:!0,get:function(){return this.g.text}},value:{configurable:!0,enumerable:!0,get:function(){return this.g.value},set:function(a){a=parseFloat(String(a));isNaN(a)||(this.i=new Qb(a,this.g.Ac),a=String(a).toString(),""==a&&(a="0."),-1==a.indexOf(".")&&(a+="."),this.g.text=a,this.g.Xd=!1)}},memoryValue:{configurable:!0,enumerable:!0,get:function(){return this.g.Ac}},
buttonText:{configurable:!0,enumerable:!0,get:function(){return this.h.buttonText},set:function(a){G(a)||(this.h.buttonText=a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcCalculator"}}});v("GcCalculator",Fe);function He(a,b){"string"==typeof a?(a=a.split(","),2==a.length?(this.width=parseInt(a[0]),this.height=parseInt(a[1])):1==a.length&&(this.width=parseInt(a[0]),this.height=parseInt(a[0]))):(void 0!=a&&(this.width=a),void 0!=b?this.height=b:void 0!=a&&(this.height=a))}He.prototype.toString=function(){return this.width+","+this.height};function Ie(a){return a.width*a.height};var Je,Ke,Le,Me,Ne,Oe,Pe,Qe,Re,Se,Te,Ue="",Ve=!1,ff=!1,gf={gd:!1,Oc:!1,Cd:!1},hf=null,jf=null,kf=!1;function lf(){}var mf,nf;function of(a,b){if(!b.toString)return 0;b=b.toString();var c=[b,a.g.fontFamily,a.g.fontSize,a.g.fontStyle,a.g.fontWeight,a.g.textDecoration,a.g.lineHeight].join("_"),d=pf[c];d||(tf(),d=uf(b,a.g.fontFamily,a.g.fontSize,a.g.fontStyle,a.g.fontWeight,a.g.textDecoration,a.g.lineHeight),2E3<vf&&(pf={},vf=0),vf++,pf[c]=d);return d.ae+5}
function tf(){if(null==mf){var a=document.createElement("div");a.style.position="absolute";a.style.border="solid 0px";a.style.left="-100000px";a.style.top="-100000px";var b=document.createTextNode(Qd(""));a.appendChild(b);document.body.appendChild(a);mf=a;nf=b}}
function uf(a,b,c,d,e,f,h){var k=mf,l=nf;k.style.fontFamily=b;k.style.fontSize=c;k.style.fontStyle=d;k.style.fontWeight=e;k.style.textDecoration=f;k.style.lineHeight=h;l.nodeValue=Qd(a);k.getBoundingClientRect?(k=k.getBoundingClientRect(),void 0!==k.width?(a=Math.ceil(k.width),k=Math.ceil(k.height)):(a=Math.ceil(k.right-k.left),k=Math.ceil(k.bottom-k.top))):(a=k.clientWidth,k=k.clientHeight);k={ae:a,Ve:k};mb()||(l.nodeValue="");return k}
function wf(a,b,c,d){tf();var e=b,f=document.body.contains(b);f||(e=b.cloneNode(!0),document.body.appendChild(e));var h=e.currentStyle||window.getComputedStyle(e,null);b=h.fontFamily;var k=h.fontSize,l=h.fontStyle,m=h.fontWeight,n=h.textDecoration;h=""===h.lineHeight?"normal":h.lineHeight;f||document.body.removeChild(e);e=[a,b,k,l,m,n,h].join("_");f=pf[e];if(void 0!==f)return{ae:f.ae,Ve:f.Ve};if(c){a=a.split("\n");for(var q=f=c=0;q<a.length;q++){var u=uf(a[q],b,k,l,m,n,h);""===a[q]&&(u.Ve=uf("1",
b,k,l,m,n,h).Ve);u.ae>d&&(u.Ve=(Math.floor(u.ae/d)+1)*u.Ve,u.ae=d);c+=u.Ve;f<u.ae&&(f=u.ae)}d={ae:f,Ve:c}}else d=uf(a,b,k,l,m,n,h);2E3<vf&&(pf={},vf=0);vf++;pf[e]=d;return{ae:d.ae,Ve:d.Ve}}p.Object.defineProperties(lf.prototype,{h:{configurable:!0,enumerable:!0,set:function(a){this.g=window.getComputedStyle(a)}}});var pf={},vf=0;function xf(a,b,c,d){a&&(a.addEventListener(b,c,d),yf.has(a)||yf.set(a,new Map),a=yf.get(a),a.has(b)||a.set(b,[]),a.get(b).push({$f:c,Qq:d}))}function zf(a,b){var c=document;if(c){c.removeEventListener(a,b,!1);var d=yf.get(c);if(d){var e=d.get(a);e&&(e=e.filter(function(f){return f.$f!==b||!1!==f.Qq}),0<e.length?d.set(a,e):d.delete(a));0===d.size&&yf.delete(c)}}}
function Af(a){if(a){var b=yf.get(a);b&&(b.forEach(function(c,d){c.forEach(function(e){a.removeEventListener(d,e.$f,e.Qq)})}),yf.delete(a))}}function Bf(a){a=a.split("\r\n");for(var b=[],c=0;c<a.length;c++)b=b.concat(a[c].split("\n"));return b.join("\r\n")}function Cf(a){a&&a.preventDefault()}function Df(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Ef(a){try{a.dragDrop(!0)}catch(b){}}function Ff(a){var b=-1;0==a.button?b=0:1==a.button?b=1:2==a.button&&(b=2);return b}
function Gf(a,b){try{if(null==a||""==a){if(document.selection)var c=document.selection.createRange().text;if(""==c)return}}catch(d){}null!=a&&(c=a);Hf(c,b)}
function Hf(a,b){hf=a;if(b)if(window.clipboardData)setTimeout(function(){try{window.clipboardData.setData("Text",a)}catch(e){}},0);else if(null!==jf)jf.isTrusted?void 0!==jf.clipboardData&&jf.clipboardData.setData("text",a):window.navigator.clipboard.writeText(a);else if(window.netscape)try{window.netscape.vo.Gm.xn("UniversalXPConnect");var c=window.Components.Tg["@mozilla.org/widget/clipboard;1"].Vg(window.Components.bd.xl);if(c){var d=window.Components.Tg["@mozilla.org/widget/transferable;1"].Vg(window.Components.bd.jo);
d&&(d.on("text/unicode"),b={},b=window.Components.Tg["@mozilla.org/supports-string;1"].Vg(window.Components.bd.Wi),b.data=a,d.Bt("text/unicode",b,2*a.length),c&&c.setData(d,null,window.Components.bd.xl.fo))}}catch(e){hf=a}else hf=a;else hf=a}
function If(a){if(Se||!a){if(hf)return hf}else{if(window.clipboardData)return window.clipboardData.getData("Text");if(null!==jf){if(void 0!==jf.clipboardData)return jf.clipboardData.getData("Text")}else if(window.netscape)try{window.netscape.vo.Gm.xn("UniversalXPConnect");var b=window.Components.Tg["@mozilla.org/widget/clipboard;1"].Vg(window.Components.bd.xl);if(!b)return;var c=window.Components.Tg["@mozilla.org/widget/transferable;1"].Vg(window.Components.bd.jo);if(!c)return;c.on("text/unicode");
b.getData(c,b.fo);a={};b={};try{c.Rp("text/unicode",a,b)}catch(d){return null}a&&(window.Components.bd.Yj?a=a.value.tj(window.Components.bd.Yj):window.Components.bd.Wi?a=a.value.tj(window.Components.bd.Wi):a=null);if(a)return a.data.substring(0,b.value/2)}catch(d){window.status="about:config signed.applets.codebase_principal_support true"}}return null}
function Jf(a,b){if(0==b.ba())return"";var c="",d,e;for(d=0;d<b.ba();d++){var f=!1;for(e=0;e<a.ba();e++)C(b,d,d+1)==C(a,e,e+1)&&(f=!0);1==f&&(c+=C(b,d,d+1))}return c}
function Rf(){var a=document.getElementById("gc_im_standard_control_for_get_normal_position");a||(a=document.createElement("div"),document.body.appendChild(a),a.id="gc_im_standard_control_for_get_normal_position",a.style.visibility="hidden",a.style.left="100px",a.style.top="1px",a.style.width="1px",a.style.height="1px",a.style.position="absolute");return a.offsetLeft/100}
function Sf(a,b,c){var d=fe();void 0==c&&void 0!==window.event&&(c=window.event);var e=d.scrollLeft,f=d.scrollTop,h=d.clientWidth,k=d.clientHeight;c&&(e+=c.clientX,f+=c.clientY,h-=c.clientX,k-=c.clientY);c&&c.touches&&0<c.touches.length&&(e=d.scrollLeft+c.touches[0].clientX,f=d.scrollTop+c.touches[0].clientY,h=d.clientWidth-c.touches[0].clientX,k=d.clientHeight-c.touches[0].clientY);c=document.body.parentNode;c.offsetLeft&&(e-=c.offsetLeft);c.offsetTop&&(f-=c.offsetTop);if(null==Ya||8>Ya)e/=Rf(),
f/=Rf();null!=a&&h<a&&e>a&&(e-=a);null!=b&&k<b&&f>b&&(f-=b);return{left:e,top:f}}
function Tf(a){if(cb){"string"==typeof a&&(a=document.getElementById(a));var b=a;var c=0,d=0;do{d+=a.offsetLeft-a.scrollLeft;c+=a.offsetTop-a.scrollTop;a=a.offsetParent;b=b.parentNode;if(null==a)break;for(;b!=a;)d-=b.scrollLeft,c-=b.scrollTop,b=b.parentNode}while(a.offsetParent);return{uk:d,ri:c}}if((y||cb||db)&&!$a){c=a;"string"==typeof a&&(c=document.getElementById(a));b=a=0;if(null!=c){if(c.offsetParent)for(;null!=c.offsetParent;){d=c.offsetParent;var e=d.tagName.toLowerCase();"table"!=e&&"body"!=
e&&"html"!=e&&d.clientTop&&d.clientLeft&&(b+=d.clientLeft,a+=d.clientTop);"input"==c.tagName.toLowerCase()&&"text"==c.type.toLowerCase()||"textarea"==c.tagName.toLowerCase()?(a+=c.offsetTop,b+=c.offsetLeft):(a+=c.offsetTop-c.scrollTop,b+=c.offsetLeft-c.scrollLeft);c=d}else c.left&&c.top?(b+=c.left,a+=c.top):(c.x&&(b+=c.x),c.y&&(a+=c.y));"relative"!=c.style.position.toLowerCase()&&"absolute"!=c.style.position.toLowerCase()&&"body"==c.tagName.toLowerCase()&&Uf()&&(7!=Ya?(a+=c.offsetTop,b+=c.offsetLeft):
(d=c.currentStyle||window.getComputedStyle(c,null),c=parseInt(d.marginTop,10),d=parseInt(d.marginLeft,10),isNaN(c)&&(c=0),isNaN(d)&&(d=0),a+=c,b+=d))}return{uk:b,ri:a}}b=a;"string"==typeof a&&(b=document.getElementById(a));var f=e=d=c=0;if(null==b)a={uk:d,ri:c};else{if(b.offsetParent)for(;null!=b.offsetParent;){var h=b.offsetParent.tagName.toLowerCase();"table"!=h&&"body"!=h&&"html"!=h&&"div"!=h&&b.offsetParent.clientTop&&b.offsetParent.clientLeft&&(d+=b.offsetParent.clientLeft,c+=b.offsetParent.clientTop);
c+=b.offsetTop;d+=b.offsetLeft;b=b.offsetParent}else b.left&&b.top?(d+=b.left,c+=b.top):(b.x&&(d+=b.x),b.y&&(c+=b.y));b=a;"string"===typeof a&&(b=document.getElementById(a));if(b.parentElement)for(;null!=b.parentElement&&"html"!=b.tagName.toLowerCase();)f+=b.scrollTop,e+=b.scrollLeft,b=b.parentElement;c-=f;d-=e;"relative"!=b.style.position.toLowerCase()&&"absolute"!=b.style.position.toLowerCase()&&"body"==b.tagName.toLowerCase()&&Uf()&&(c+=b.offsetTop,d+=b.offsetLeft);a={uk:d,ri:c}}return a}
function Vf(a){if(a.dispatchEvent){var b=document.createEvent("HTMLEvents");b.initEvent("change",!0,!0);a.dispatchEvent(b)}a.fireEvent&&a.fireEvent("onchange")}function Wf(a){try{Qe=!0;var b=If(a)}finally{Qe=!1}return b}function Xf(a){"string"===typeof a&&(a=document.getElementById(a));if(y&&!Xa){if(""!=document.selection.createRange().text)try{document.activeElement===a&&document.selection.empty()}catch(b){}}else""!=Yf(a)&&(a.selectionStart=a.value.length,a.selectionEnd=a.selectionStart)}
function Zf(a,b,c){var d=String(a);if(null!=c){for(;d.length<b;)d=c+d;return d}for(;d.length<b;)d+=String(a);return d}function $f(){var a=new Date;a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0);return a}
function ag(a){var b=document.createElement(a);switch(a.toLowerCase()){case "table":b.style.borderCollapse="separate";b.style.margin="0px";break;case "td":b.style.padding="0px";break;case "input":b.style.margin="0px";if(cb||db)b.style.outline="none";break;case "textarea":if(cb||db)b.style.outline="none"}return b}function Uf(){return y?"CSS1Compat"==document.compatMode:"CSS1Compat"==document.compatMode||"BackCompat"==document.compatMode}
function bg(a){if(null==a)return-1;if(!y||Xa){var b=a.selectionStart;a.value&&(b=a.value.substring(0,b).ba());return b}b=0;document.selection&&(a.focus(),b=document.selection.createRange(),b.moveStart("character",-a.value.length),b=b.text.length);return b}function cg(a,b,c,d,e){var f=!1;a=a.toLocaleLowerCase();c=c.toLocaleLowerCase();C(a,b,b+e)==C(c,d,d+e)&&(f=!0);return f}
function dg(a){if(null!=a.selectionStart){var b=a.selectionStart;if(a.value){var c=a.value.substring(0,b);b=c.ba()}c=a.selectionEnd;a.value&&(c=a.value.substring(0,c),c=c.ba());c<b&&(b=c);a instanceof HTMLTextAreaElement&&(a=a.value.substring(0,b),a=a.replace(/\r\n/g,"\n"),a=a.replace(/\n/g,"\r\n"),b=a.length);return b}try{b=a.createTextRange();c=document.selection.createRange();for(var d=a.value.ba(),e=0,f=d,h=0,k=d!=a.value.length;e<f;){h=Math.floor((e+f)/2);b=a.createTextRange();var l=h,m;k?m=
C(a.value,0,h):m=a.value.substring(0,h);for(var n=0;;){var q=k?m.jb("\r\n",n):m.indexOf("\r\n",n);if(-1==q)break;l--;n=q+2}n=h-l;var u=h;k&&(u=Zc(a.value,h));l=u-n;b.moveStart("character",l);if(b.offsetTop>c.offsetTop)f=h;else if(b.offsetTop<c.offsetTop){if(e==h)return f;e=h}else if(b.offsetLeft>c.offsetLeft)f=h;else if(b.offsetLeft<c.offsetLeft){if(e==h)return f;e=h}else{var r;k?r=C(a.value,h-1,h):r=a.value.substring(h-1,h);"\r"==r&&h++;return h}}return d}catch(z){return 0}}
function eg(a){if(!y||Xa){var b=a.selectionEnd;if(a.value){var c=a.value.substring(0,b);b=c.ba()}c=a.selectionStart;a.value&&(c=a.value.substring(0,c),c=c.ba());c>b&&(b=c);return b}return dg(a)+document.selection.createRange().text.ba()}
function fg(a){"number"===typeof a&&(a=a.toFixed(20));if(-1!==a.indexOf("."))for(var b=a,c=a.length-a.indexOf(".")-1;0<c;c--)if(-1<b.lastIndexOf("0")&&0==b.substr(b.length-1,1)){var d=b.lastIndexOf("0");if("."==b.charAt(d-1))return b.substring(0,d-1);b=b.substring(0,d)}else return b;return a}
function Yf(a){"string"===typeof a&&(a=document.getElementById(a));return null!=a.selectionStart?a.value.substring(a.selectionStart,a.selectionEnd):null!=document.selection?document.selection.createRange().text:null!==document.activeElement?document.activeElement.value.substring(document.activeElement.selectionStart,document.activeElement.selectionEnd):""}function gg(a){eval(a)}
function hg(a){null!==a&&void 0!==a&&-1!=window.navigator.userAgent.toLowerCase().indexOf("touch")&&Za&&(a.addEventListener("MSHoldVisual",function(b){b.preventDefault()},!1),a.addEventListener("MSGestureHold",function(b){b.preventDefault()},!1),a.addEventListener("contextmenu",function(b){b.preventDefault()},!1))}function ig(a){return wf(a.value,a).ae}
function jg(a,b,c){return!isNaN(a)&&Date&&a instanceof Date?"undefined"!=typeof c&&(a<b||a>c)?(lc(a,c,b),null):a:(console.warn("Invalid type"),null)}function kg(a,b,c){var d=parseInt(a,10);return isNaN(d)?(cc(a),null):"undefined"!==typeof b&&d<b?(lc(a,c,b),null):"undefined"!==typeof c&&d>c?(lc(a,c,b),null):d}function H(a){if("string"===typeof a){if("true"===a.toLowerCase())return!0;if("false"===a.toLowerCase())return!1}return 1==a}function lg(a){G(a)&&(a="");return a.toString()}
function I(a,b){for(var c in a)if(a[c]==b||a[c].toString().toLowerCase()==(null===b||void 0===b?void 0:b.toString().toLowerCase()))return a[c];console.warn("Invalid enumeration: "+b);return null}function mg(a,b,c){for(var d in a)if(a[d]==b||a[d].toString().toLowerCase()==b.toString().toLowerCase())return a[d];return c}function ng(a){a=lg(a);return 1!==a.length?(cc(a),null):a}var yf=new Map,og=["\ufeff","@#GCD1#@","@#GCD2#@","@#GCD3#@","@#GCD4#@"];
(function(){y||(Ke=!0);Re=hb?!0:!1;if(null==a)var a="";if(Za)document.addEventListener(Sa?"pointerdown":"MSPointerDown",function(b){Ve=b.pointerType===b.MSPOINTER_TYPE_TOUCH||"touch"===b.pointerType},!0);else if(Wa||db||cb)document.addEventListener("touchstart",function(){Pe=Ve=!0},!0),document.addEventListener("mousedown",function(){!0!==Pe&&(Ve=!1);Pe=!1},!0);window.addEventListener("load",function(){return!0})})();
function pg(a){var b=a.offsetWidth;a=window.getComputedStyle(a);a.marginLeft&&(b+=parseFloat(a.marginLeft));a.marginRight&&(b+=parseFloat(a.marginRight));return b}
function qg(a,b,c,d){var e=b>c?"backward":"forward";if(a.ca){var f=a.za();if(d){var h=Bf(f.value);c=h.substring(0,c);b=h.substring(0,b).replace(/\r\n/g,"\n").length;c=c.replace(/\r\n/g,"\n").length}h=!1;if(b>c){h=!0;var k=b;b=c;c=k}if(y&&!Sa)try{k=b;var l=c,m=f.createTextRange();if(null==d){var n=Zc(f.value,b);c=Zc(f.value,c);b=n;c=f.value.length-c}else{for(var q=f.value,u=e=a=0,r=ad(q,"\r\n"),z=q.ba()!=q.length;-1!=r;)a++,r>=b&&e++,r>=c&&u++,z?(q=C(q,0,r),r=ad(q,"\r\n")):(q=q.substring(0,r),r=q.lastIndexOf("\r\n"));
e=a-e;n=Zc(f.value,b);c=Zc(f.value,c);b=n-e;c=f.value.length-c-u}m.moveEnd("character",-1*c);m.moveStart("character",b);Le=!0;m.select();Le=!1}catch(D){}else{k=b=Zc(f.value,b);l=c=Zc(f.value,c);try{if(!Wa&&!db||mb()&&a.ca||f.focus(),cb?a.ca&&f.setSelectionRange(b,c):hb?a.ca&&document.activeElement==a.za()&&f.setSelectionRange(b,c):(Le=!0,Sa&&f.setSelectionRange(Math.max(0,b-1),Math.max(0,c-1)),f.setSelectionRange(b,c),Le=!1),!mb()||!a.ca||document.activeElement===a.za())if(cb||Wa||db)f.selectionDirection=
e}catch(D){}}Sa||rg(f,h,k,l,d)}}
function rg(a,b,c,d,e){var f=window.getComputedStyle(a,null),h=parseInt(f.paddingLeft,10),k=parseInt(f.paddingRight,10),l=a.scrollWidth-h-k;c=a.value.substring(0,b?c:d);b=0;if(e){c=c.split("\n");for(d=0;d<c.length;d++){var m=c[d];var n=""===m;n&&(m="1");m=wf(m,a,e,l);b+=m.Ve;n&&(m.ae=0)}l=m.ae}else m=wf(c,a,e,l),l=m.ae,b=m.Ve;k=a.clientWidth-k;m=a.clientHeight;m-=parseInt(f.paddingTop,10)+parseInt(f.paddingBottom,10);Za&&!0!==e&&(k-=m);e=l+h;h=e-h;a.scrollLeft>h?a.scrollLeft=h:e>a.scrollLeft+k&&(a.scrollLeft=
e-k);a.scrollTop>b?a.scrollTop=b:b>a.scrollTop+m&&(a.scrollTop=b-m+parseInt(f.paddingTop,10))}function sg(a,b,c,d){if(!b)return!1;if("function"==typeof b){try{b.call(a,a,c,d)}catch(f){return!1}return!0}if(b instanceof Array)for(var e=0;e<b.length;e++)sg(a,b[e],c,d);return!0}v("setIgnoreWatermarkCheckerOnCompositionStart",function(a){return kf=a});v("setSpecialImeSupport",function(a){Re=a});function tg(){this.s={}}function J(a,b,c){var d=a.s[b];d?d.push(c):a.s[b]=[c];return a}
function ug(a,b,c){if(b=a.s[b])c=b.indexOf(c),-1<c&&b.splice(c,1);return a}function vg(a){for(var b in a.s)a.s[b]=null,delete a.s[b]}tg.prototype.ha=function(a,b){(a=this.s[a])&&a.forEach(function(c){try{c(b)}catch(d){}});return this};var wg={kt:"normal",dt:"holiday",$s:"forceholiday",bt:"forceworkday",nt:"overriddenholiday"},xg={None:0,Buttons:1,ScrollBar:2,Outlook:3};xg[xg.None]="None";xg[xg.Buttons]="Buttons";xg[xg.ScrollBar]="ScrollBar";xg[xg.Outlook]="Outlook";v("CalendarNavigators",xg);var yg={Left:0,Top:1,Right:2,Bottom:3};yg[yg.Left]="Left";yg[yg.Top]="Top";yg[yg.Right]="Right";yg[yg.Bottom]="Bottom";v("NavigatorOrientation",yg);v("CalendarUpdateType",{Ys:1,Sq:2,1:"Data",2:"All"});var zg={Normal:0,Fiscal:1};
zg[zg.Normal]="Normal";zg[zg.Fiscal]="Fiscal";v("CalendarYear",zg);var Ag={MonthDay:"monthday",YearMonth:"yearmonth",SmallScaleYear:"smallscaleyear",LargeScaleYear:"largescaleyear"};v("CalendarType",Ag);var Kg={Small:"small",Large:"large"};v("CalendarZoomRange",Kg);var Lg={None:0,Senshou:1,Tomobiki:2,Senbu:4,Butsumetsu:8,Taian:16,Shakkou:32,All:63};Lg[Lg.None]="None";Lg[Lg.Senshou]="Senshou";Lg[Lg.Tomobiki]="Tomobiki";Lg[Lg.Senbu]="Senbu";Lg[Lg.Butsumetsu]="Butsumetsu";Lg[Lg.Taian]="Taian";
Lg[Lg.Shakkou]="Shakkou";Lg[Lg.All]="All";v("Rokuyou",Lg);var Mg={Default:0,January:1,February:2,March:3,April:4,May:5,June:6,July:7,August:8,September:9,October:10,November:11,December:12};Mg[Mg.Default]="Default";Mg[Mg.January]="January";Mg[Mg.February]="February";Mg[Mg.March]="March";Mg[Mg.April]="April";Mg[Mg.May]="May";Mg[Mg.June]="June";Mg[Mg.July]="July";Mg[Mg.August]="August";Mg[Mg.September]="September";Mg[Mg.October]="October";Mg[Mg.November]="November";Mg[Mg.December]="December";
v("Months",Mg);var Ng={NotSet:0,Sunday:1,Monday:2,Tuesday:4,Wednesday:8,Thursday:16,Friday:32,Saturday:64,All:127};Ng[Ng.NotSet]="NotSet";Ng[Ng.Sunday]="Sunday";Ng[Ng.Monday]="Monday";Ng[Ng.Tuesday]="Tuesday";Ng[Ng.Wednesday]="Wednesday";Ng[Ng.Thursday]="Thursday";Ng[Ng.Friday]="Friday";Ng[Ng.Saturday]="Saturday";Ng[Ng.All]="All";v("DayOfWeek",Ng);var Og={One:0,MultiSimple:1,MultiRich:2};Og[Og.One]="One";Og[Og.MultiSimple]="MultiSimple";Og[Og.MultiRich]="MultiRich";v("CalendarSelectionMode",Og);
var Pg={Anyday:0,Workday:1,Holiday:2};Pg[Pg.Anyday]="Anyday";Pg[Pg.Workday]="Workday";Pg[Pg.Holiday]="Holiday";v("AllowSelection",Pg);var Qg={StartEmpty:0,AllAtEnd:1};Qg[Qg.StartEmpty]="StartEmpty";Qg[Qg.AllAtEnd]="AllAtEnd";v("EmptyRows",Qg);var Rg={NotSet:0,First:1,Second:2,Third:4,Fourth:8,Fifth:16,Last:32,All:63};Rg[Rg.NotSet]="NotSet";Rg[Rg.First]="First";Rg[Rg.Second]="Second";Rg[Rg.Third]="Third";Rg[Rg.Fourth]="Fourth";Rg[Rg.Fifth]="Fifth";Rg[Rg.Last]="Last";Rg[Rg.All]="All";
v("WeekFlags",Rg);var Sg={None:0,NextDay:1,NextWorkDay:2};Sg[Sg.None]="None";Sg[Sg.NextDay]="NextDay";Sg[Sg.NextWorkDay]="NextWorkDay";v("HolidayOverride",Sg);var Tg={NotSet:0,January:1,February:2,March:4,April:8,May:16,June:32,July:64,August:128,September:256,October:512,November:1024,December:2048,All:4095};Tg[Tg.NotSet]="NotSet";Tg[Tg.January]="January";Tg[Tg.February]="February";Tg[Tg.March]="March";Tg[Tg.April]="April";Tg[Tg.May]="May";Tg[Tg.June]="June";Tg[Tg.July]="July";Tg[Tg.August]="August";
Tg[Tg.September]="September";Tg[Tg.October]="October";Tg[Tg.November]="November";Tg[Tg.December]="December";Tg[Tg.All]="All";v("MonthFlags",Tg);var Ug,Vg,Wg,Xg;
function Yg(a){a=a||Zg;a=a.sort(function(e,f){return(new Date(e.startDate)).getTime()-(new Date(f.startDate)).getTime()});a=a.map(function(e){return{name:e.name,abbreviation:e.abbreviation,shortcuts:e.shortcuts,symbol:e.symbol,startDate:e.startDate,nd:0}});for(var b=0;b<a.length;b++)if(0!==b){var c=(new Date(a[b].startDate)).getFullYear(),d=a[b];a[b-1].nd=c-(new Date(a[b-1].startDate)).getFullYear()+1;b===a.length-1&&(d.nd=99);$g=new Date(c+99-1,11,31,23,59,59)}ah=[].concat(a.map(function(e){return e.symbol}),a.map(function(e){return e.abbreviation}),
a.map(function(e){return e.name}));bh=a.map(function(e){return new Date(e.startDate)});ch=bh[0];dh=bh.length;eh=a.map(function(e){return e.nd});for(b=c=0;b<dh;b++)c=Math.max(c,eh[b]);fh=c.toString().ba();gh=parseFloat(Zf("9",fh));hh=[];ih=[];a=a.map(function(e){return e.shortcuts});for(b=0;b<a.length;b++)for(c=a[b].split(","),d=0;d<c.length;d++)hh.push(c[d]),ih.push(b)}function jh(a){return a<ch||a>$g?!1:!0}function kh(a,b,c){return 0>a||a>=dh||1>b||c&&b>eh[a]?-1:bh[a].getFullYear()+b-1}
function lh(a,b,c,d,e,f,h,k,l,m){b=kh(a,b,k);if(1>b||9999<b||1>c||12<c)return null;var n=mh(b,c);if(1>d||d>n||0>e||23<e||0>f||59<f||0>h||59<h)return null;c=new Date(b,c-1,d,e,f,h);if(k&&(k=bh[a],a=a+1!=dh?nh(bh[a+1],-1):$g,c<k||c>a))if(c.getFullYear()===a.getFullYear())l||c.setMonth(a.getMonth()),m||c.setDate(a.getDate());else return null;return c}
function oh(a){if(null==a||0==a.length)return null;var b=new Date(Date.parse(a)),c=b.getFullYear();try{c=parseInt(a.split("/")[0])}catch(d){}b.setFullYear(c);return b}function qh(a,b){var c="";try{c=1==b?a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate()+" "+a.getHours()+":"+Zf(a.getMinutes(),2,"0")+":"+Zf(a.getSeconds(),2,"0"):a.getMonth()+1+"/"+a.getDate()+"/"+a.getFullYear()+" "+a.getHours()+":"+Zf(a.getMinutes(),2,"0")+":"+Zf(a.getSeconds(),2,"0")}catch(d){c=""}return c}
function rh(a){return null==a?0:100*(100*(100*(100*(100*a.getFullYear()+a.getMonth()+1)+a.getDate())+a.getHours())+a.getMinutes())+a.getSeconds()}function sh(a){var b={era:-1,nd:-1};if(!jh(a))return b;for(var c=0;c<dh;c++){var d=c+1!=dh?bh[c+1]:nh($g,1);if(a<d){b.era=c;b.nd=a.getFullYear()-bh[c].getFullYear()+1;break}}return b}function th(a,b,c,d){a=lh(a,b,c,d,0,0,0,!0);return null==a?-1:a}
function uh(a,b){var c={min:1,max:12};if(-1==a||-1==b)return c;1==b?c.min=bh[a].getMonth()+1:b==eh[a]&&a<dh-1&&(c.max=nh(bh[a+1],-1).getMonth()+1);return c}function vh(a,b,c){var d={min:1};d.max=mh(kh(a,b,!0),c);var e=bh[a],f=a<dh-1?nh(bh[a+1],-1):$g;if(-1==a||-1==b)return d;1==b&&c==e.getMonth()+1?d.min=e.getDate():b==eh[a]&&c==f.getMonth()+1&&(d.max=f.getDate());return d}function wh(a){return 0==a%400||0==a%4&&0!=a%100?!0:!1}
function mh(a,b){12<b?(a+=parseInt((b/12).toString(),10),b%=12):0>b&&(b*=-1,a-=Math.ceil(b/12),b=12-b%12);switch(b){case 2:return wh(a)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}
function xh(a,b,c){if(!a&&!b)return!0;if(a&&b)try{if(!c){if(a.getFullYear()==b.getFullYear()&&a.getMonth()==b.getMonth()&&a.getDate()==b.getDate())return!0}else if(a.getFullYear()==b.getFullYear()&&a.getMonth()==b.getMonth()&&a.getDate()==b.getDate()&&a.getHours()==b.getHours()&&a.getMinutes()==b.getMinutes()&&a.getSeconds()==b.getSeconds())return!0}catch(d){}return!1}
function yh(a,b){if(!a&&!b)return!0;if(a&&b)try{if(a.getFullYear()==b.getFullYear()&&a.getMonth()==b.getMonth())return!0}catch(c){}return!1}function zh(a,b,c){if(12E4<12*a+b)return new Date(9999,11,31);if(100>12*a+b)return new Date(100,0,1);var d=mh(a,b);c>d&&(c=d);return new Date(a,b-1,c)}function Ah(a,b,c){var d=a.getYear(),e=b.getYear(),f=c.getYear(),h=a.getMonth(),k=b.getMonth(),l=c.getMonth();a=1E4*d+100*h+a.getDate();c=1E4*f+100*l+c.getDate();return a>=1E4*e+100*k+b.getDate()&&a<=c}
function Bh(a){var b="ja"==za?Ch.slice(0):"cn"==za?Dh.slice(0):Eh.slice(0);switch(a){case 1:return b[0];case 2:return b[1];case 4:return b[2];case 8:return b[3];case 16:return b[4];case 32:return b[5]}return""}function nh(a,b){a=new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds());a.setMilliseconds(a.getMilliseconds()+b);return new Date(a.valueOf())}function Fh(a){return null==a?null:new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0)}
var Gh=new Date(1960,0,28),Hh=new Date(2050,0,22),Ih=[44710,43856,19808,43748,42352,21104,29283,55632,27479,22176,39632,19925,19168,42208,54484,53840,54680,46400,54944,103846,38320,18864,43444,42160,45690,27216,27968,46934,11104,38320,19317,18800,25776,29859,59984,28056,21968,11104,38629,37600,51552,59732,54432,55888,30034,22208,43959,9680,37584,51893,43344,46240,111779,46416,21977,19360,42416,21877,21168,43344,47444,27296,44368,27474,19296,42726,42352,21104,27237,55600,23200,46755,38608,19415,19168,
42192,118998,53840,54560,56645,46752,38608,21938,18864,42359,42160,45648,111189,27968,44448],bh=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],dh=5,eh=[45,15,64,31,99],$g=new Date(2117,11,31,23,59,59),ch=new Date(1868,8,8),hh="12345mtshr".split(""),ih=[0,1,2,3,4,0,1,2,3,4],ah="M T S H R \u660e \u5927 \u662d \u5e73 \u4ee4 \u660e\u6cbb \u5927\u6b63 \u662d\u548c \u5e73\u6210 \u4ee4\u548c".split(" "),Jh="\u65e5\u66dc\u65e5 \u6708\u66dc\u65e5 \u706b\u66dc\u65e5 \u6c34\u66dc\u65e5 \u6728\u66dc\u65e5 \u91d1\u66dc\u65e5 \u571f\u66dc\u65e5".split(" "),
Kh="1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),Lh="\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),Mh="1 2 3 4 5 6 7 8 9 10 11 12".split(" "),Ch="\u5148\u52dd \u53cb\u5f15 \u5148\u8ca0 \u4ecf\u6ec5 \u5927\u5b89 \u8d64\u53e3".split(" "),Eh="Senshou Tomobiki Senbu Butsumetsu Taian Shakkou".split(" "),Dh="\u5148\u52dd \u53cb\u5f15 \u5148\u8ca0 \u4ecf\u6ec5 \u5927\u5b89 \u8d64\u53e3".split(" "),fh=2,gh=99,Zg=[];
Zg.push({name:"\u660e\u6cbb",abbreviation:"\u660e",symbol:"M",startDate:"1868/09/08",shortcuts:"1,M"});Zg.push({name:"\u5927\u6b63",abbreviation:"\u5927",symbol:"T",startDate:"1912/07/30",shortcuts:"2,T"});Zg.push({name:"\u662d\u548c",abbreviation:"\u662d",symbol:"S",startDate:"1926/12/25",shortcuts:"3,S"});Zg.push({name:"\u5e73\u6210",abbreviation:"\u5e73",symbol:"H",startDate:"1989/01/08",shortcuts:"4,H"});Zg.push({name:"\u4ee4\u548c",abbreviation:"\u4ee4",symbol:"R",startDate:"2019/05/01",shortcuts:"5,R"});
Yg(null);v("updateCustomEra",function(a){Yg(a)});v("updateDateTimeInfo",function(){"undefined"!=typeof window.WEEKDAYS&&(Jh=window.WEEKDAYS);"undefined"!=typeof window.MONTHNAMES&&(Kh=window.MONTHNAMES);"undefined"!=typeof window.SHORTWEEKDAYS&&(Lh=window.SHORTWEEKDAYS);"undefined"!=typeof window.SHORTMONTHNAMES&&(Mh=window.SHORTMONTHNAMES)});function Nh(){}
var Ld={AllDay:"gcim-calendar__month-body__normal-day",Corner:"gcim-calendar__month-body__corner-cell",Title:"gcim-calendar__month-body__week-title",WeekNumber:"gcim-calendar__month-body__week-number",Rokuyou:"gcim-calendar__month-body__rokuyou",CommonDay:"gcim-calendar__month-body__common-day",TrailingDay:"gcim-calendar__month-body__trailing-day",DisableDay:"gcim-calendar__month-body__disabled-day",EmptyDay:"gcim-calendar__month-body__empty-day",SelectedDay:"gcim-calendar__month-body__selected-day",FocusDay:"gcim-calendar__month-body__focusd-day",
DayInteraction:"gcim-calendar__month-body__normal-day-interaction",TodayContainer:"gcim-calendar__today-button",TodayDay:"gcim-calendar__month-body__today",Sunday:"gcim-calendar__weekday_sunday",Monday:"gcim-calendar__weekday_monday",Tuesday:"gcim-calendar__weekday_tuesday",Wednesday:"gcim-calendar__weekday_wednesday",Thursday:"gcim-calendar__weekday_thursday",Friday:"gcim-calendar__weekday_friday",Saturday:"gcim-calendar__weekday_saturday",WeekNumberInteraction:"gcim-calendar__month-body__week-number-interaction",
WeekTitleInteraction:"gcim-calendar__month-body__week-title-interaction"},Md={AllMonth:"gcim-calendar__year-view__month",CommonMonth:"gcim-calendar__year-view__common-month",DisableMonth:"gcim-calendar__year-view__disabled-month",SelectedMonth:"gcim-calendar__year-view__selected-month",FocusMonth:"gcim-calendar__year-view__focused-month",MonthInteraction:"gcim-calendar__year-view__month-interaction"},Oh={Container:"gcim-calendar__header-popup",Cell:"gcim-calendar__header-popup__cell",SelectedCell:"gcim-calendar__header-popup__cell_selected"},
Ph={TopBottom:"gcim-calendar__navigator_horizontal",LeftRight:"gcim-calendar__navigator_vertical",ScrollBar:"gcim-calendar__navigator_scroll_bar"},bi={Container:"gcim-calendar__holiday-groups-popup",Cell:"gcim-calendar__holiday-groups-popup__cell",TextCell:"gcim-calendar__holiday-groups-popup__cell_text",StateCell:"gcim-calendar__holiday-groups-popup__cell_state",Selected:"gcim-calendar__holiday-groups-popup__cell_selected"},ci={AdjacentYear:"gcim-calendar__year-view__adjacent-year",YearInteraction:"gcim-calendar__year-view__year-interaction"},
di={Container:"range-year-container",Cell:"range-year",RangeYearInteraction:"gcim-calendar__year-view__range-year-interaction"};function ei(a,b){var c=fi[Math.floor((a.getDate()-1)/7)],d=mh(a.getFullYear(),a.getMonth()+1)-7;a.getDate()>d&&(c|=32);return 0<(b&c)}function gi(a,b){return 0<(b&hi[a-1])}
function ii(a){var b=a.currentTarget;if("OutterContainer"===b.getAttribute("cellType"))return b;for(a=a.srcElement||a.target;a;){if(null!=(a.getAttribute("CellType")||a.getAttribute("cellType")))return a;a=a.parentElement}}function ji(a){if(!a)return null;for(var b=a;b;){if(null!=(b.getAttribute("CellType")||b.getAttribute("cellType")))return b;b=b.parentElement}return a}function ki(a){var b=a.clientX;a.touches&&0<a.touches.length&&(b=a.touches[0].clientX);return b}
function li(a){var b=a.clientY;a.touches&&0<a.touches.length&&(b=a.touches[0].clientY);return b}function mi(a){for(var b=0;b<a.length;b++){var c=a[b].getAttribute("CellType");if("TrailingDay"===c||"CommonDay"===c)return b}return-1}function ni(a){var b=document.createElement("div");a&&(b.className=a);return b}function oi(a){var b=document.createElement("table");a&&(b.className=a);b.cellSpacing="0px";return b}function pi(a){var b=document.createElement("tr");a&&(b.className=a);return b}
function qi(a){var b=document.createElement("td");a&&(b.className=a);return b}
function ri(a,b,c){if(b){var d=a;if(null!=a&&a.id){var e=document.getElementById(a.id);null!=e&&(d=e)}null==d&&(d=window);if("function"==typeof b)try{b.call(d,a,c,void 0)}catch(h){}else{if(b instanceof Array)for(d=0;d<b.length;d++)sg(a,b[d],c);d=b.split(";");if(0!=d.length){e=!1;try{for(window.__gcarg1=a,window.__gcarg2=c,window.__gcarg3=void 0,c=0;c<d.length;c++){var f=d[c]+"(window['__gcarg1'], window['__gcarg2'], window['__gcarg3']);";try{if(-1!=d[c].jb("(")&&-1!=d[c].jb(")"))throw"command";eval(f);
e=!0}catch(h){try{gg.call(a,d[c]),e=!0}catch(k){window.status="Sorry! Can't fire the "+b+" client event.";return}}}}finally{try{delete window.__gcarg1,delete window.__gcarg2,delete window.__gcarg3}catch(h){}}0==e&&(window.status="Sorry! Can't fire the "+b+" client event.")}}}}function si(a,b){for(var c=0;c<b.length;c++)a.setAttribute(b[c].key,b[c].value)}
function ti(a,b){if(!a||!b)return null;var c=a.x;var d=b.x;c=-1===c||-1===d?"Error":c>d?20<c-d?"ToLeft":"NotMove":c<d?20<d-c?"ToRight":"NotMove":"NotMove";d=a.y;var e=b.y;d=-1===d||-1===e?"Error":d>e?20<d-e?"ToTop":"NotMove":d<e?20<e-d?"ToBottom":"NotMove":"NotMove";if(Math.abs(a.x-b.x)>=Math.abs(a.y-b.y)){if("ToLeft"===c)return 3;if("ToRight"===c)return 2}else{if("ToBottom"===d)return 0;if("ToTop"===d)return 1}return null}
var hi=[1,2,4,8,16,32,64,128,256,512,1024,2048],fi=[1,2,4,8,16,32],ui=[1,2,4,8,16,32,64],vi="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ");function wi(){this.g="yMgeE\\".split("");this.i=["y","g","e","E","\\"];this.h=["M","\\"]}
function xi(a,b){var c=[];switch(a){case "y":for(var d=0;d<Math.floor(b/4);d++)c.push(new yi("Year","y",4));b%=4;0<b&&c.push(new yi("Year","y",b));break;case "M":for(d=0;d<Math.floor(b/4);d++)c.push(new yi("Month","M",4));b%=4;0<b&&c.push(new yi("Month","M",b));break;case "g":for(d=0;d<Math.floor(b/3);d++)c.push(new yi("Era","g",3));b%=3;0<b&&c.push(new yi("Era","g",b));break;case "E":case "e":for(d=0;d<Math.floor(b/2);d++)c.push(new yi("EraYear",a,2));b%=2;0<b&&c.push(new yi("EraYear",a,b))}return c}
wi.prototype.ia=function(a,b,c,d,e){var f=[];if(null!=b&&""!=b){var h=d?this.h:this.i;"monthday"==c&&(h=this.g);for(var k,l,m=0,n=!1,q="",u=0;u<b.length;u++)if(l=b.substring(u,u+1),n)n=!1,q+=l;else{if(0<m&&k!=l){m=xi(k,m);for(var r=0;r<m.length;r++)f.push(m[r]);m=0}else 0==m&&0<q.length&&-1!=h.indexOf(l)&&(f.push(new yi("Literal",q)),q="");if(-1==h.indexOf(l))q+=l;else switch(l){case "y":case "M":case "g":case "e":case "E":0==m&&(k=l);m++;break;case "\\":n=!0;break;default:q+=l}}if(0<m)for(m=xi(k,
m),r=0;r<m.length;r++)f.push(m[r]);else 0<q.length&&f.push(new yi("Literal",q))}b="";h=!1;if(0<f.length)for(k=0;k<f.length;k++)switch(l=f[k],l.Ek){case "Era":n=sh(e?e:a);l=(l.Qc-1)*dh+n.era;b+=ah[l];-1==l&&(h=!0);break;case "EraYear":n=sh(e?e:a);if(-1==n.nd){h=!0;break}n=n.nd;1===n&&"E"===l.Text&&(n="\u5143");1!=l.Qc&&10>n&&"\u5143"!==n&&(n="0"+n);b+=n;break;case "Month":n=a.getMonth()+1;b=2>=l.Qc?b+Zf(n,l.Qc,"0"):3==l.Qc?b+Mh[n-1]:b+Kh[n-1];break;case "Year":b=2>=l.Qc?b+Zf(a.getFullYear()%100,l.Qc,
"0"):3==l.Qc?b+a.getFullYear():b+Zf(a.getFullYear(),4,"0");break;default:b+=l.Text}return h?"monthday"!==c?this.ia(a,"yyy\u5e74",c,d):this.ia(a,"yyy\u5e74 MMMM",c,d):b};function yi(a,b,c){this.Ek=a;this.Text=b;this.Qc=c};function zi(){this.length=0}function Ai(a,b){a.Dm(b,a.length-1,{Cancel:!1});a[a.length]=b;a.length++;a.rj(b,a.length-1)}function Bi(a,b){b=a.jb(b);0<=b?Ci(a,b):-1===b&&console.warn("Item not exist")}function Di(a,b){b=kg(b,0,a.length-1);return null===b?null:a[b]}function Ei(a,b,c){b=kg(b,0,a.length);if(null!==b){var d={cancel:!1};a.Dm(c,b,d);if(!0!==d.cancel){for(d=a.length;d>b;d--)a[d]=a[d-1];a[b]=c;a.length++;a.rj(c,b)}}}g=zi.prototype;
g.jb=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};function Ci(a,b){b=kg(b,0,a.length-1);if(null!==b){var c=a[b];Fi(a,b);a.wk(c,b)}}g.fb=function(){for(var a=this.length-1;0<=a;a--)Ci(this,a)};g.Ws=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return!0;return!1};g.Dm=function(){};g.rj=function(){};g.wk=function(){};function Ii(a){for(var b=a.length-1;0<=b;b--)Fi(a,b)}
function Fi(a,b){b=kg(b,0,a.length-1);if(null!==b){for(;b<a.length-1;b++)a[b]=a[b+1];delete a[a.length-1];a.length--}};function Ji(){this.length=0}t(Ji,zi);function Ki(a,b){if(!(b instanceof Ji)||a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(!xh(b[c],a[c]))return!1;return!0}function Li(a){for(var b=new Ji,c=0;c<a.length;c++)Ai(b,a[c]);return b}Ji.prototype.Dm=function(a,b,c){this.h&&this.h.call(this,a,b,c)};Ji.prototype.rj=function(a,b){this.g&&this.g.call(this,a,b)};Ji.prototype.wk=function(a,b){this.g&&this.g.call(this,a,b)};function Mi(){this.g=[];for(var a={0:w.WeekdaySunday,1:w.WeekdayMonday,2:w.WeekdayTuesday,3:w.WeekdayWednesday,4:w.WeekdayThursday,5:w.WeekdayFriday,6:w.WeekdaySaturday},b=0;7>b;b++){var c=new Ni(this);c.dayName=a[b];this.g.push(c)}}g=Mi.prototype;g.fireWeekDayChangedEvent=function(a){this.weekDayChanged&&this.weekDayChanged.call(this,a)};g.monday=function(){return this.g[1]};g.tuesday=function(){return this.g[2]};g.wednesday=function(){return this.g[3]};g.thursday=function(){return this.g[4]};
g.friday=function(){return this.g[5]};g.saturday=function(){return this.g[6]};g.sunday=function(){return this.g[0]};g.weekDay=function(a){return 0<=a||7>a?this.g[a]:null};function Ni(a){this.ya=a;this.reset()}g=Ni.prototype;g.reset=function(){this.dayName="";this.reflectToTitle=!1;this.weekFlags=0};g.setDayName=function(a){this.dayName=a;this.ya&&this.ya.fireWeekDayChangedEvent("DayName")};g.getReflectToTitle=function(){return this.reflectToTitle};
g.setReflectToTitle=function(a){this.reflectToTitle=!!a;this.ya&&this.ya.fireWeekDayChangedEvent("ReflectToTitle")};g.getWeekFlags=function(){return this.weekFlags};g.setWeekFlags=function(a){this.weekFlags=a;this.ya&&this.ya.fireWeekDayChangedEvent("WeekFlags")};v("WeekDay",Ni);v("WeekdaysGroup",Mi);function Oi(){this.length=0;this.i=this.s=this.g=this.h=null}t(Oi,zi);Oi.prototype.rj=function(a){a.uf(this);this.h&&this.h.call(this)};Oi.prototype.wk=function(){this.h&&this.h.call(this)};function Pi(a,b){Qi++;this.id="GcCanlendar_HolidayGroup"+Qi;this.name=a||"";this.ya=null;this.Mk=b||!1;this.ad=new Ri}g=Pi.prototype;g.uf=function(a){this.ya=a;this.ad.uf(a)};g.getHoliday=function(a){return Di(this.ad,a)};g.getHolidaysCount=function(){return this.ad.length};g.getHolidayIndex=function(a){return this.ad.jb(a)};
g.addHoliday=function(a){Ai(this.ad,a)};g.clearHolidays=function(){this.ad.fb()};g.insertHoliday=function(a,b){Ei(this.ad,a,b)};g.removeHoliday=function(a){Bi(this.ad,a)};g.removeHolidayAt=function(a){Ci(this.ad,a)};g.getIsActive=function(){return this.Mk};g.setIsActive=function(a){this.Mk=a=H(a);this.ya&&(a=this.ya,a.g&&a.g.call(a,this,"IsActive"))};
g.setOverride=function(a,b){a=lg(a);var c=this.ad.qf;if(this.getOverride(a)!==b){switch(a.toLowerCase()){case "sunday":c.sunday().setOverride(b);break;case "monday":c.monday().setOverride(b);break;case "tuesday":c.tuesday().setOverride(b);break;case "wednesday":c.wednesday().setOverride(b);break;case "thursday":c.thursday().setOverride(b);break;case "friday":c.friday().setOverride(b);break;case "saturday":c.saturday().setOverride(b)}this.Mk&&this.ya&&(a=this.ya,a.g&&a.g.call(a,this,"Override"))}};
g.getOverride=function(a){a=lg(a);var b=this.ad.qf;switch(a.toLowerCase()){case "sunday":return b.sunday().getOverride();case "monday":return b.monday().getOverride();case "tuesday":return b.tuesday().getOverride();case "wednesday":return b.wednesday().getOverride();case "thursday":return b.thursday().getOverride();case "friday":return b.friday().getOverride();case "saturday":return b.saturday().getOverride()}};
g.setWeekFlags=function(a,b){a=lg(a);var c=this.ad.qf;if(this.getWeekFlags(a)!==b){switch(a.toLowerCase()){case "sunday":c.sunday().setWeekFlags(b);break;case "monday":c.monday().setWeekFlags(b);break;case "tuesday":c.tuesday().setWeekFlags(b);break;case "wednesday":c.wednesday().setWeekFlags(b);break;case "thursday":c.thursday().setWeekFlags(b);break;case "friday":c.friday().setWeekFlags(b);break;case "saturday":c.saturday().setWeekFlags(b)}this.Mk&&this.ya&&(a=this.ya,a.g&&a.g.call(a,this,"WeekFlags"))}};
g.getWeekFlags=function(a){a=lg(a);var b=this.ad.qf;switch(a.toLowerCase()){case "sunday":return b.sunday().getWeekFlags();case "monday":return b.monday().getWeekFlags();case "tuesday":return b.tuesday().getWeekFlags();case "wednesday":return b.wednesday().getWeekFlags();case "thursday":return b.thursday().getWeekFlags();case "friday":return b.friday().getWeekFlags();case "saturday":return b.saturday().getWeekFlags()}};
p.Object.defineProperties(Pi.prototype,{count:{configurable:!0,enumerable:!0,get:function(){return this.getHolidaysCount()}},isActive:{configurable:!0,enumerable:!0,get:function(){return this.getIsActive()},set:function(a){this.setIsActive(a)}}});var Qi=-1;function Ri(){this.length=0;this.ya=null;this.qf=new Si}t(Ri,zi);Ri.prototype.uf=function(a){this.ya=a;for(a=0;a<this.length;a++)Di(this,a).uf(this)};Ri.prototype.rj=function(a){null!==this.ya&&(a.uf(this),a=this.ya,a.g&&a.g.call(a))};
Ri.prototype.wk=function(){if(null!==this.ya){var a=this.ya;a.g&&a.g.call(a)}};function Ti(a){a.ya&&(a=a.ya,a.i&&a.i.call(a))}function Ui(a){a.ya&&(a=a.ya,a.i&&a.i.call(a))}
function Vi(a,b){var c=new Date(b.getFullYear(),b.getMonth(),b.getDate()-1),d=a.qf.weekDay(c.getDay());if(1==d.g&&d.isHoliday(c))for(var e=0;e<a.length;e++)if(d=Wi(Di(a,e),c),"holiday"==d||"forceholiday"==d)return!0;c=new Date(b.valueOf());for(e=0;7>e;e++){c.setDate(c.getDate()-1);b=!1;for(var f=a.length-1;0<=f;f--)if(d=Wi(Di(a,f),c),"holiday"==d||"forceholiday"==d){b=!0;break}d=a.qf.weekDay(c.getDay());if(b){if(2==d.g&&d.isHoliday(c))return!0}else if(!d.isHoliday(c))break}return!1}
function Xi(a,b,c,d,e){var f="",h=1,k=1,l=1,m=1;2===arguments.length&&(h=l=arguments[0],k=m=arguments[1]);3===arguments.length&&(f=arguments[0],h=l=arguments[1],k=m=arguments[2]);4===arguments.length&&(h=arguments[0],k=arguments[1],l=arguments[2],m=arguments[3]);5<=arguments.length&&(f=arguments[0],h=arguments[1],k=arguments[2],l=arguments[3],m=arguments[4]);this.i=lg(f);null!==kg(h,1,12)&&null!==kg(k,1,31)&&null!==kg(l,1,12)&&null!==kg(m,1,31)&&(this.u=kg(h,1,12)-1,this.s=kg(k,1,31),this.h=kg(l,
1,12)-1,this.g=kg(m,1,31),this.da=null)}g=Xi.prototype;g.isYearly=function(){return!0};g.setName=function(a){a=lg(a);this.i!==a&&(this.i=a,this.da&&Ui(this.da))};g.uf=function(a){this.da=a};g.getName=function(){return this.i};g.setStartMonth=function(a){a=kg(a,1,12);null!==a&&this.u!==a-1&&(this.u=a-1,this.da&&Ti(this.da))};g.getStartMonth=function(){return this.u+1};g.setStartDay=function(a){a=kg(a,1,31);null!==a&&this.s!==a&&(this.s=a,this.da&&Ti(this.da))};g.getStartDay=function(){return this.s};
g.setEndMonth=function(a){a=kg(a,1,12);null!==a&&this.h!==a-1&&(this.h=a-1,this.da&&Ti(this.da))};g.getEndMonth=function(){return this.h+1};g.setEndDay=function(a){a=kg(a,1,31);null!==a&&this.g!==a&&(this.g=a,this.da&&Ti(this.da))};g.getEndDay=function(){return this.g};
g.isHoliday=function(a){var b=new Date(a.getFullYear(),this.getStartMonth()-1,this.getStartDay()),c=new Date(a.getFullYear(),this.getEndMonth()-1,this.getEndDay());if(b>c){var d=b;b=c;c=d}wh(a.getFullYear())||1==this.h&&29==this.g&&(c=new Date(a.getFullYear(),1,28));return a>=b&&a<=c};function Wi(a,b){return a.isHoliday(b)?"holiday":"normal"}
p.Object.defineProperties(Xi.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this.getName()},set:function(a){this.setName(a)}},startMonth:{configurable:!0,enumerable:!0,get:function(){return this.getStartMonth()},set:function(a){this.setStartMonth(a)}},startDay:{configurable:!0,enumerable:!0,get:function(){return this.getStartDay()},set:function(a){this.setStartDay(a)}},endMonth:{configurable:!0,enumerable:!0,get:function(){return this.getEndMonth()},set:function(a){this.setEndMonth(a)}},
endDay:{configurable:!0,enumerable:!0,get:function(){return this.getEndDay()},set:function(a){this.setEndDay(a)}}});
function Yi(a,b,c){var d="",e=$f(),f=$f();this.da=null;1===arguments.length&&(e=f=arguments[0]);2===arguments.length&&("string"===typeof arguments[0]||arguments[0]instanceof String?(d=arguments[0],e=f=arguments[1]):(e=arguments[0],f=arguments[1]));3<=arguments.length&&(d=arguments[0],e=arguments[1],f=arguments[2]);this.h=lg(d);if("string"===typeof e||e instanceof String)e=oh(e.toString());d=jg(e);null!==d&&(this.i=Fh(d));if("string"===typeof f||f instanceof String)f=oh(f.toString());d=jg(f);null!==
d&&(this.g=Fh(d))}g=Yi.prototype;g.isYearly=function(){return!1};g.setName=function(a){a=lg(a);this.h!==a&&(this.h=a,this.da&&Ui(this.da))};g.getName=function(){return this.h};g.setStart=function(a){if("string"===typeof a||a instanceof String)a=oh(a);a=jg(a);null===a||xh(this.i,a)||(this.i=a,this.da&&Ti(this.da))};g.getStart=function(){return this.i};g.setEnd=function(a){if("string"===typeof a||a instanceof String)a=oh(a);a=jg(a);null===a||xh(this.g,a)||(this.g=a,this.da&&Ti(this.da))};g.getEnd=function(){return this.g};
g.isHoliday=function(a){var b=this.getStart(),c=this.getEnd();if(b>c){var d=b;b=c;c=d}return a>=b&&a<=c};g.uf=function(a){this.da=a};p.Object.defineProperties(Yi.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this.getName()},set:function(a){this.setName(a)}},start:{configurable:!0,enumerable:!0,get:function(){return this.getStart()},set:function(a){this.setStart(a)}},end:{configurable:!0,enumerable:!0,get:function(){return this.getEnd()},set:function(a){this.setEnd(a)}}});
function Zi(a,b,c){var d="",e=$f(),f=$f();this.da=null;1===arguments.length&&(e=f=arguments[0]);2===arguments.length&&("string"===typeof arguments[0]||arguments[0]instanceof String?(d=arguments[0],e=f=arguments[1]):(e=arguments[0],f=arguments[1]));3<=arguments.length&&(d=arguments[0],e=arguments[1],f=arguments[2]);this.h=lg(d);if("string"===typeof e||e instanceof String)e=oh(e.toString());d=jg(e);null!==d&&(this.i=Fh(d));if("string"===typeof f||f instanceof String)f=oh(f.toString());d=jg(f);null!==
d&&(this.g=Fh(f))}g=Zi.prototype;g.isYearly=function(){return!1};g.setName=function(a){a=lg(a);this.h!==a&&(this.h=a,this.da&&Ui(this.da))};g.getName=function(){return this.h};g.setStart=function(a){if("string"===typeof a||a instanceof String)a=oh(a);a=jg(a);null===a||xh(this.i,a)||(this.i=a,this.da&&Ti(this.da))};g.getStart=function(){return this.i};g.setEnd=function(a){if("string"===typeof a||a instanceof String)a=oh(a);a=jg(a);null===a||xh(this.g,a)||(this.g=a,this.da&&Ti(this.da))};g.getEnd=function(){return this.g};
g.isHoliday=function(a){var b=this.getStart(),c=this.getEnd();if(b>c){var d=b;b=c;c=d}return a>=b&&a<=c};g.uf=function(a){this.da=a};p.Object.defineProperties(Zi.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this.getName()},set:function(a){this.setName(a)}},start:{configurable:!0,enumerable:!0,get:function(){return this.getStart()},set:function(a){this.setStart(a)}},end:{configurable:!0,enumerable:!0,get:function(){return this.getEnd()},set:function(a){this.setEnd(a)}}});
function $i(a,b,c,d){var e="",f=0,h=0,k=0;this.da=null;3===arguments.length&&(f=arguments[0],h=arguments[1],k=arguments[2]);4<=arguments.length&&(e=arguments[0],f=arguments[1],h=arguments[2],k=arguments[3]);this.s=e;this.i=f;this.h=h;this.g=k}g=$i.prototype;g.setName=function(a){a=lg(a);this.s!==a&&(this.s=a,this.da&&Ui(this.da))};g.getName=function(){return this.s};g.setMonth=function(a){this.getMonth()!==a&&(this.i=a,this.da&&Ti(this.da))};g.getMonth=function(){return this.i};
g.setDayOfWeekInMonth=function(a){this.getDayOfWeekInMonth()!==a&&(this.h=a,this.da&&Ti(this.da))};g.getDayOfWeekInMonth=function(){return this.h};g.setDayOfWeek=function(a){this.getDayOfWeek()!==a&&(this.g=a,this.da&&Ti(this.da))};g.getDayOfWeek=function(){return this.g};g.isHoliday=function(a){return ei(a,this.h)&&0<(this.g&ui[a.getDay()])&&gi(a.getMonth()+1,this.i)};g.isYearly=function(){return!0};g.uf=function(a){this.da=a};
p.Object.defineProperties($i.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this.getName()},set:function(a){this.setName(a)}},month:{configurable:!0,enumerable:!0,get:function(){return this.getMonth()},set:function(a){this.setMonth(a)}},dayOfWeekInMonth:{configurable:!0,enumerable:!0,get:function(){return this.getDayOfWeekInMonth()},set:function(a){this.setDayOfWeekInMonth(a)}},dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return this.getDayOfWeek()},set:function(a){this.setDayOfWeek(a)}}});
function aj(a,b,c,d,e){var f="",h=b||(new Date).getFullYear(),k=0,l=0,m=0;4===arguments.length&&(h=arguments[0],k=arguments[1],l=arguments[2],m=arguments[3]);5<=arguments.length&&(f=arguments[0],h=arguments[1],k=arguments[2],l=arguments[3],m=arguments[4]);this.s=f;this.u=h;this.i=k;this.h=l;this.g=m}g=aj.prototype;g.getIsYearly=function(){return!1};g.setYear=function(a){a=kg(a);null!==a&&this.u!==a&&(this.u=a,this.da&&Ti(this.da))};g.getYear=function(){return this.u};
g.setName=function(a){a=lg(a);this.s!==a&&(this.s=a,this.da&&Ui(this.da))};g.getName=function(){return this.s};g.setMonth=function(a){this.getMonth()!==a&&(this.i=a,this.da&&Ti(this.da))};g.getMonth=function(){return this.i};g.setDayOfWeekInMonth=function(a){this.getDayOfWeekInMonth()!==a&&(this.h=a,this.da&&Ti(this.da))};g.getDayOfWeekInMonth=function(){return this.h};g.setDayOfWeek=function(a){this.getDayOfWeek()!==a&&(this.g=a,this.da&&Ti(this.da))};g.getDayOfWeek=function(){return this.g};
g.isHoliday=function(a){return ei(a,this.h)&&0<(this.g&ui[a.getDay()])&&gi(a.getMonth()+1,this.i)&&a.getFullYear()===this.getYear()};g.uf=function(a){this.da=a};
p.Object.defineProperties(aj.prototype,{isYearly:{configurable:!0,enumerable:!0,get:function(){return this.getIsYearly()}},year:{configurable:!0,enumerable:!0,get:function(){return this.getYear()},set:function(a){this.setYear(a)}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()},set:function(a){this.setName(a)}},month:{configurable:!0,enumerable:!0,get:function(){return this.getMonth()},set:function(a){this.setMonth(a)}},dayOfWeekInMonth:{configurable:!0,enumerable:!0,get:function(){return this.getDayOfWeekInMonth()},
set:function(a){this.setDayOfWeekInMonth(a)}},dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return this.getDayOfWeek()},set:function(a){this.setDayOfWeek(a)}}});function bj(a,b,c,d,e){var f="",h=b||(new Date).getFullYear(),k=0,l=0,m=0;4===arguments.length&&(h=arguments[0],k=arguments[1],l=arguments[2],m=arguments[3]);5<=arguments.length&&(f=arguments[0],h=arguments[1],k=arguments[2],l=arguments[3],m=arguments[4]);this.s=f;this.u=h;this.i=k;this.h=l;this.g=m}g=bj.prototype;
g.getIsYearly=function(){return!1};g.setYear=function(a){a=kg(a);null!==a&&this.u!==a&&(this.u=a,this.da&&Ti(this.da))};g.getYear=function(){return this.u};g.setName=function(a){a=lg(a);this.s!==a&&(this.s=a,this.da&&Ui(this.da))};g.getName=function(){return this.s};g.setMonth=function(a){this.getMonth()!==a&&(this.i=a,this.da&&Ti(this.da))};g.getMonth=function(){return this.i};g.setDayOfWeekInMonth=function(a){this.getDayOfWeekInMonth()!==a&&(this.h=a,this.da&&Ti(this.da))};
g.getDayOfWeekInMonth=function(){return this.h};g.setDayOfWeek=function(a){this.getDayOfWeek()!==a&&(this.g=a,this.da&&Ti(this.da))};g.getDayOfWeek=function(){return this.g};g.isHoliday=function(a){return ei(a,this.h)&&0<(this.g&ui[a.getDay()])&&gi(a.getMonth()+1,this.i)&&a.getFullYear()==this.getYear()};g.uf=function(a){this.da=a};
p.Object.defineProperties(bj.prototype,{isYearly:{configurable:!0,enumerable:!0,get:function(){return this.getIsYearly()}},year:{configurable:!0,enumerable:!0,get:function(){return this.getYear()},set:function(a){this.setYear(a)}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()},set:function(a){this.setName(a)}},month:{configurable:!0,enumerable:!0,get:function(){return this.getMonth()},set:function(a){this.setMonth(a)}},dayOfWeekInMonth:{configurable:!0,enumerable:!0,get:function(){return this.getDayOfWeekInMonth()},
set:function(a){this.setDayOfWeekInMonth(a)}},dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return this.getDayOfWeek()},set:function(a){this.setDayOfWeek(a)}}});function Si(){this.g=[];for(var a=0;7>a;a++)this.g.push(new cj)}g=Si.prototype;g.monday=function(){return this.g[1]};g.tuesday=function(){return this.g[2]};g.wednesday=function(){return this.g[3]};g.thursday=function(){return this.g[4]};g.friday=function(){return this.g[5]};g.saturday=function(){return this.g[6]};g.sunday=function(){return this.g[0]};
g.weekDay=function(a){return this.g[a]};function cj(){this.h=this.g=0}g=cj.prototype;g.getOverride=function(){return this.g};g.setOverride=function(a){this.g=a};g.getWeekFlags=function(){return this.h};g.setWeekFlags=function(a){this.h=a};g.isHoliday=function(a){var b=Math.floor(a.getDate()/7),c=this.h,d=mh(a.getFullYear(),a.getMonth()+1)-7;a.getDate()>d&&32===c&&(c|=63);return 0<(c&fi[b])};v("HolidayGroup",Pi);v("Holiday",Xi);v("ForceHoliday",Yi);v("ForceWorkday",Zi);v("DayOfWeekHoliday",$i);
v("ForceDayOfWeekHoliday",aj);v("ForceDayOfWeekWorkday",bj);var dj={Classic:"classic",Modern:"modern"};v("AppearanceStyle",dj);function ej(a){this.u=["monthday","yearmonth","smallscaleyear","largescaleyear"];this.ca="large";this.na=null;this.ka=!1;this.control=a;this.minDate=new Date(100,0,1);this.maxDate=new Date(9999,11,31,23,59,59);this.focusDate=fj();this.calendarDimensions=new He(1,1);this.firstMonthInView=this.firstFiscalMonth=this.firstDayOfWeek=0;this.headerFormat="yyy\u5e74 MMMM";this.yearMonthFormat="yyy,MMMM";this.selectedDate=null;this.weekNumberSelect=this.weekTitleSelect=!1;this.showWeekNumber=this.showZoomButton=
this.showToday=this.showHeader=this.showTrailing=!0;this.showRokuyou=0;this.showNavigator=3;this.navigatorOrientation=2;this.overrideTipText="";this.calendarYear=this.selectionMode=this.allowSelection=0;this.calendarType="monthday";this.maxSelectionCount=14;this.enabled=this.visible=!0;this.selections=new Ji;this.s=new Mi;this.g=new Oi;this.h=[];this.i={};this.scrollRate=1;gj(this,this.focusDate);this.fa={minDate:new Date(100,0,1),maxDate:new Date(9999,11,31,23,59,59),firstFiscalMonth:4};this.ga=
!1;this.Fa=[{Jc:"ZoomIn",className:"cell zoom-in"},{Jc:"ZoomOut",className:"cell zoom-out"},{Jc:"LeftMost",className:"cell left-most"},{Jc:"LeftNavigator",className:"cell left-navigator"},{Jc:"Blank",className:"cell blank"},{Jc:"RightNavigator",className:"cell right-navigator"},{Jc:"RightMost",className:"cell right-most"}];this.Ga=[{Jc:"ZoomIn",className:"cell zoom-in"},{Jc:"ZoomOut",className:"cell zoom-out"},{Jc:"LeftNavigator",className:"cell left-navigator"},{Jc:"LeftBlank",className:"cell left-blank"},
{Jc:"ThumbButton",className:"cell thumb-button"},{Jc:"RightBlank",className:"cell right-blank"},{Jc:"RightNavigator",className:"cell right-navigator"},{Jc:"LeftMost",className:"cell left-most"},{Jc:"Today",className:"cell today"},{Jc:"RightMost",className:"cell right-most"}];this.La=[{Jc:"OutlookLeftNavigator",className:"cell gcim-calendar__header__left-navigate"},{Jc:"OutlookZoomOut",className:"cell gcim-calendar__header__zoom-out"},{Jc:"HeaderText",className:"gcim-calendar__header__text"},{Jc:"OutlookZoomIn",
className:"cell gcim-calendar__header__zoom-in"},{Jc:"OutlookRightNavigator",className:"cell gcim-calendar__header__right-navigate"}];this.emptyRows=0;this.la=this.autoSwitch=!1;this.showAnimation=!!kb()||"modern"===window.GCIM.appearanceStyle;hj(this)}g=ej.prototype;g.setFocusDate=function(a){a=jg(a);null!==a&&(a>this.maxDate||a<this.minDate?mc():ij(this,a))};
g.setMaxDate=function(a){a=jg(a,this.minDate,this.fa.maxDate);null!==a&&this.maxDate!==a&&(this.maxDate=new Date(a.valueOf()),this.focusDate>a&&ij(this,this.focusDate),jj(this)&&this.control.fireEvent("SelectedDateChanged"),this.control.updateControl(1))};g.setMinDate=function(a){a=jg(a,this.fa.minDate,this.maxDate);null!==a&&this.minDate!==a&&(this.minDate=new Date(a.valueOf()),this.focusDate<a&&ij(this,this.focusDate),jj(this)&&this.control.fireEvent("SelectedDateChanged"),this.control.updateControl(1))};
function jj(a){var b=!1;!G(a.selectedDate)&&(a.selectedDate<a.minDate||a.selectedDate>a.maxDate)&&(a.selectedDate=null,0===a.selectionMode&&(b=!0));if(!G(a.selections)){for(var c=a.selections.length,d=new Ji,e=0;e<c;e++){var f=a.selections[e];f>=a.minDate&&f<=a.maxDate?Ai(d,f):0!==a.selectionMode&&(b=!0)}kj(a,d)}return b}
g.setMaxSelectionCount=function(a){a=kg(a,2);if(null!==a&&this.maxSelectionCount!==a){this.maxSelectionCount=a;var b=this.selections.length;if(b>a){for(var c=0;c<b-a;c++)Fi(this.selections,this.selections.length-1);this.control.fireEvent("SelectedDateChanged")}this.control.updateControl(1)}};g.setSelections=function(a,b){Ii(this.selections);for(var c=0;c<a.length;c++)null!=a[c]&&lj(this,a[c],b);this.control.updateControl(1)};
g.setSelectionMode=function(a){a=I(Og,a);this.selectionMode!==a&&null!==a&&(this.selectionMode=a,this.control.updateControl())};g.Nj=function(){return this.selectionMode};g.setAllowSelection=function(a){a=I(Pg,a);this.allowSelection!==a&&null!==a&&(this.allowSelection=a,mj(this),this.control.updateControl(1))};g.Mi=function(){return this.allowSelection};g.setSelectedDate=function(a,b){if(null!=a){a=jg(a);if(null===a)return;if(a>this.maxDate||a<this.minDate){mc();return}}nj(this,a,b)};
g.setEmptyRows=function(a){a=I(Qg,a);this.emptyRows!==a&&null!==a&&(this.emptyRows=a,"monthday"==this.calendarType&&this.control.updateControl(1))};g.Oi=function(){return this.emptyRows};g.setEnabled=function(a){a=H(a);this.enabled!==a&&(this.enabled=a,this.control.updateControl())};g.setFirstDayOfWeek=function(a){a=I(Ng,a||0);this.firstDayOfWeek!==a&&null!==a&&(this.firstDayOfWeek=a,"monthday"===this.calendarType&&this.control.updateControl(1))};g.Pi=function(){return this.firstDayOfWeek};
g.setFirstFiscalMonth=function(a){a=I(Mg,a);this.firstFiscalMonth!==a&&null!==a&&(this.firstFiscalMonth=a,1===this.calendarYear&&(gj(this,this.focusDate),this.control.updateControl(1)))};g.Fn=function(){return this.firstFiscalMonth};g.setFirstMonthInView=function(a){a=I(Mg,a);this.firstMonthInView!==a&&null!==a&&(this.firstMonthInView=a,"monthday"===this.calendarType&&12===Ie(this.calendarDimensions)&&(oj(this),this.control.updateControl(1)))};g.Qi=function(){return this.firstMonthInView};
g.setYearMonthFormat=function(a){a=a||"yyy,MMMM";2>a.split(",").length&&(a="yyy,MMMM");this.yearMonthFormat!==a&&(this.yearMonthFormat=a,["yearmonth","smallscaleyear","largescaleyear"].includes(this.calendarType)&&this.control.updateControl(1))};g.setWeekTitleSelect=function(a){a=H(a);this.weekTitleSelect!==a&&(this.weekTitleSelect=a,pj(this.control.Ua))};g.setWeekNumberSelect=function(a){a=H(a);this.weekNumberSelect!==a&&(this.weekNumberSelect=a,qj(this.control.Ua))};
g.setHeaderFormat=function(a){this.headerFormat!==a&&(this.headerFormat=a,this.control.updateControl(1))};g.setShowZoomButton=function(a){a=H(a);this.showZoomButton!==a&&(this.showZoomButton=a,this.control.updateControl())};g.setShowRokuyou=function(a){a=a||0;this.showRokuyou!==a&&(this.showRokuyou=a,"monthday"==this.calendarType&&this.control.updateControl())};g.Vi=function(){return this.showRokuyou};g.setShowHeader=function(a){a=H(a);this.showHeader!==a&&(this.showHeader=a,rj(this.control.Ua),this.control.updateControl())};
g.setShowToday=function(a){a=H(a);this.showToday!==a&&(this.showToday=a,rj(this.control.Ua),this.control.updateControl())};g.setShowWeekNumber=function(a){a=H(a);this.showWeekNumber!==a&&(this.showWeekNumber=a,rj(this.control.Ua),this.control.updateControl())};g.setShowTrailing=function(a){a=H(a);this.showTrailing!==a&&(this.showTrailing=a,this.control.updateControl(1))};
g.setCalendarType=function(a,b){b=void 0===b?!1:b;a=I(Ag,a);this.calendarType!==a&&this.u.includes(a)&&(this.calendarType=a,gj(this,this.focusDate),this.control.updateControl(),b||sj(this.control.Ua))};g.Bf=function(){return this.calendarType};
function tj(a,b){var c=["monthday","yearmonth","smallscaleyear","largescaleyear"].filter(function(d){return b.includes(d)});0===c.length?console.warn("There must be at least one valid calendarType enum in the array."):(a.u=c,a.ca=[].concat(ha(c)),a.u.includes(a.calendarType)||a.setCalendarType(a.u[0],!0))}g.setCalendarYear=function(a){a=I(zg,a);this.calendarYear!==a&&null!==a&&(this.calendarYear=a,gj(this,this.focusDate),this.control.updateControl(1))};g.Bn=function(){return this.calendarYear};
g.setVisible=function(a){a=H(a);this.visible!==a&&(this.visible=a,this.control.Ua.setVisible(a),this.visible&&this.control.updateControl())};g.setOverrideTipText=function(a){a=lg(a);this.overrideTipText!==a&&(this.overrideTipText=a,this.control.updateControl(1))};g.setCalendarDimensions=function(a,b){null===kg(a,1,12)||null===kg(b,1,12)||null===kg(a*b,1,12)||this.calendarDimensions.width===a&&this.calendarDimensions.height===b||(this.calendarDimensions=new He(a,b),oj(this),rj(this.control.Ua),this.control.updateControl())};
g.setShowNavigator=function(a){a=I(xg,a);this.showNavigator!==a&&null!==a&&(this.showNavigator=a,rj(this.control.Ua),this.control.updateControl())};g.Ui=function(){return this.showNavigator};g.setNavigatorOrientation=function(a){a=I(yg,a);this.navigatorOrientation!==a&&null!==a&&(this.navigatorOrientation=a,rj(this.control.Ua),this.control.updateControl())};g.Si=function(){return this.navigatorOrientation};g.addHolidayGroup=function(a){a.getIsActive()&&uj(this,a);return Ai(this.g,a)};
function uj(a,b){var c=a.h.indexOf(b);0<=c&&a.h.splice(c,1);a.h.push(b)}g.insertHolidayGroup=function(a,b){b.getIsActive()&&uj(this,b);return Ei(this.g,a,b)};g.removeHolidayGroup=function(a){vj(this,a);return Bi(this.g,a)};function vj(a,b){b=a.h.indexOf(b);-1!=b&&a.h.splice(b,1)}g.removeHolidayGroupAt=function(a){var b=Di(this.g,a);b.getIsActive()&&(b=this.h.indexOf(b),0<=b&&this.h.splice(b,1));return Ci(this.g,a)};g.clearHolidayGroups=function(){this.h=[];this.g.fb()};g.getHolidayGroupIndex=function(a){return this.g.jb(a)};
g.getHolidayGroup=function(a){if("string"===typeof a)a:{for(var b=this.g,c=0;c<b.length;c++){var d=Di(b,c);if(d.name===a){a=d;break a}}a=null}else b=this.g,a=0<=a&&a<b.length?Di(b,a):null;return a};g.getHolidayGroupsCount=function(){return this.g.length};
function wj(a,b){if(null==a.h)return"normal";for(var c="normal",d,e=0;e<a.h.length;e++){var f=a.h[e];if(null!=f&&f.getIsActive()&&0!=f.ad.length){a:{d=f.ad;for(var h=b,k=d.length-1;0<=k;k--){var l=Wi(Di(d,k),h);if("normal"!=l){d=l;break a}}d=null!=d.qf&&d.qf.weekDay(h.getDay()).isHoliday(h)?"dayOfWeekHoliday":Vi(d,h)?"overriddenholiday":"normal"}if("holiday"===d||"forceholiday"===d||"forceworkday"===d||"overriddenholiday"===d||d===wg.dayOfWeekHoliday&&"normal"===c)c=d,a.va=f}}return c}
function fj(){var a=new Date;a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0);return a}g.startDate=function(){return null==this.ea?null:new Date(this.ea.valueOf())};function xj(a){switch(a.firstDayOfWeek){case 2:return 1;case 4:return 2;case 8:return 3;case 16:return 4;case 32:return 5;case 64:return 6;case 127:return 7}return 0}
function Dj(a,b){var c=new wi,d="";b||(b=new Date(a.focusDate.valueOf()));"monthday"==a.calendarType?(yh(b,ch)&&(b=new Date(ch.valueOf())),yh(b,$g)&&(b=new Date($g.valueOf()))):(b.getFullYear()==ch.getFullYear()&&(b=new Date(ch.valueOf())),b.getFullYear()==$g.getFullYear()&&(b=new Date($g.valueOf())));if(1==a.calendarYear){var e=a.fa.firstFiscalMonth;0!=a.firstFiscalMonth&&(e=a.firstFiscalMonth);var f=b.getMonth();if(f<e-1){var h=b.getFullYear()-1;b=new Date(h,f,b.getDate());b.setFullYear(h)}e=Gd(b.getFullYear(),
e-1,1)}if("monthday"==a.calendarType)d=c.ia(b,a.headerFormat,"monthday",!1,e);else if(e=a.yearMonthFormat.split(","),0<e.length)switch(a.calendarType){case "yearmonth":d=c.ia(b,e[0],"yearmonth",!1);break;case "smallscaleyear":case "largescaleyear":b=Sj(b,a.calendarType),a=c.ia(b.Hh,e[0],"yearmonth",!1),c=c.ia(b.end,e[0],"yearmonth",!1),d=a+" - "+c}return d}
function Sj(a,b){var c=a.getFullYear();["smallscaleyear","largescaleyear"].includes(b)?(b="smallscaleyear"===b?10:100,c=Math.floor(c/b)*b,b={Hh:c,end:c+b-1}):b=null;if(!b)return null;c=Tj(a,b.Hh-a.getFullYear(),!0);a=Tj(a,b.end-a.getFullYear(),!0);return{Hh:c,end:a}}function Uj(a,b,c,d,e){if(0>a||1E4<a||1>b||12<b||1>c||31<c)return console.warn("Invalid date"),-1;for(var f=(new Date(a,0,1)).getDay(),h=0,k=1;k<b;k++)h+=mh(a,k);a=h+c+(f>=d?f-d:7-d+f);return Math.floor(0==a%7?a/7:e?1:a/7+1)}
function Vj(a){var b=Ie(a.calendarDimensions),c=a.startDate(),d=c.getFullYear();c.getMonth();if("monthday"==a.calendarType)a=c.getMonth()+b-1,b=mh(c.getFullYear(),c.getMonth()+b);else if(d={yearmonth:1,smallscaleyear:10,largescaleyear:100}[a.calendarType],1==a.calendarYear){var e=0==a.firstFiscalMonth?4:a.firstFiscalMonth;d=c.getFullYear()+b*d;a=e-2;b=mh(d,e-1)}else d=c.getFullYear()+(b-1)*d+(d-1),a=11,b=mh(d,12);return{hp:c,Ko:new Date(d,a,b,23,59,59)}}
function Wj(a,b){var c=a.calendarType;a.calendarType="yearmonth";b=Dj(a,b);a.calendarType=c;return b}
function Xj(a,b,c){if(c)b*=12,"yearmonth"===a.calendarType?b*=10:"smallscaleyear"===a.calendarType?b*=100:"largescaleyear"===a.calendarType&&(b*=1E3);else{var d=Ie(a.calendarDimensions);c=0===a.scrollRate?d:a.scrollRate;12===d&&0!=a.firstMonthInView&&"monthday"===a.calendarType&&(c=12);d=Yj(a.maxDate,a.minDate);c>d&&(c=d);b*=c;"yearmonth"===a.calendarType?b*=12:"smallscaleyear"===a.calendarType?b*=120:"largescaleyear"===a.calendarType&&(b*=1200)}return b}
function Yj(a,b){return null==a&&null==b?0:null==a?-(12*b.getFullYear()+b.getMonth()+1):null==b?12*a.getFullYear()+a.getMonth()+1:12*(a.getFullYear()-b.getFullYear())+(a.getMonth()-b.getMonth())}function Tj(a,b,c){c=void 0===c?!1:c;var d=a.getFullYear(),e=a.getMonth();a=a.getDate();e=Gd(d,e,1);e.setFullYear(d+b);b=e.getFullYear();d=e.getMonth();e=mh(b,d+1);a>e&&(a=e);!c&&100>b&&(b=100);return Gd(b,d,a)}
function Zj(a,b,c){c=void 0===c?!1:c;var d=a.getFullYear(),e=a.getMonth();a=a.getDate();d=Gd(d,e,1);d.setMonth(e+b);b=d.getFullYear();e=d.getMonth();d=mh(b,e+1);a>d&&(a=d);!c&&100>b&&(b=100,e=0);return Gd(b,e,a)}function ak(a,b,c){var d=[];a=a.control.Ua.g.g[b];for(b=0;6>b;b++){var e=a.RowsDom[b][c].ContainerCell;"CommonDay"==e.getAttribute("CellType")&&d.push(e)}return d}function bk(a,b,c){var d=[];a=a.control.Ua.g.g[b];for(b=0;7>b;b++)d[b]=a.RowsDom[c][b].ContainerCell;return d}
function ck(a){a="monthday"===a.calendarType?12*(a.maxDate.getFullYear()-a.minDate.getFullYear())+a.maxDate.getMonth()-a.minDate.getMonth()+1:a.maxDate.getFullYear()-a.minDate.getFullYear();return 1<=a?a:1}function dk(a,b){var c=ck(a);if("monthday"===a.calendarType){var d=12*(a.focusDate.getFullYear()-a.minDate.getFullYear());d=d+a.focusDate.getMonth()-a.minDate.getMonth()+1}else d=a.focusDate.getFullYear()-a.minDate.getFullYear();a=Math.floor(b*d/c);return 0<a?a:0}
function ek(a,b){var c={};c.monthday=w.ToolTipPreviousYear;c.yearmonth=w.ToolTipPreviousDecade;c.smallscaleyear=w.ToolTipPreviousCentury;c.largescaleyear=w.ToolTipPreviousMillennium;var d={};d.monthday=w.ToolTipNextYear;d.yearmonth=w.ToolTipNextDecade;d.smallscaleyear=w.ToolTipNextCentury;d.largescaleyear=w.ToolTipNextMillennium;switch(b){case "ZoomIn":return w.ToolTipZoomIn;case "ZoomOut":return w.ToolTipZoomOut;case "LeftMost":return c[a.calendarType];case "RightMost":return d[a.calendarType];case "Today":return w.ToolTipToday}return""}
function fk(a){return a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate()}
function gj(a,b){var c=new Date(b.valueOf());if("monthday"===a.calendarType)c<a.minDate?c=new Date(a.minDate.getFullYear(),a.minDate.getMonth(),1):c>a.maxDate&&(c=new Date(a.maxDate.getFullYear(),a.maxDate.getMonth(),1));else if(c<a.minDate){b=0==a.firstFiscalMonth?4:a.firstFiscalMonth;if(1==a.calendarYear&&a.minDate.getMonth()+1<b){b=a.minDate.getFullYear()-1;c=c.getMonth()+1;var d=1,e=new Date;e.setDate(1);var f=mh(b,c);0<c&&12>c&&d>f&&(d=f);e.setFullYear(b);e.setMonth(c-1);e.setDate(d);b=e}else b=
new Date(a.minDate.getFullYear(),c.getMonth(),1);c=b}else c>a.maxDate&&(c=new Date(a.maxDate.getFullYear(),a.maxDate.getMonth(),1));c.setDate(1);b=c;d=Ie(a.calendarDimensions);"monthday"==a.calendarType?(new Date(b.getFullYear(),b.getMonth()+d-1,mh(b.getFullYear(),b.getMonth()+d),23,59,59)>a.maxDate&&(12!=d||0==a.firstMonthInView)&&(b=new Date(a.maxDate.getFullYear(),a.maxDate.getMonth()-(d-1),1),b<a.minDate&&(b=new Date(a.minDate.getFullYear(),a.minDate.getMonth(),1))),12==d&&0!=a.firstMonthInView&&
(c=a.firstMonthInView,c>b.getMonth()+1&&(b=Tj(b,-1)),b=new Date(b.getFullYear(),c-1,1))):(c={yearmonth:1,smallscaleyear:10,largescaleyear:100},d=(d-1)*c[a.calendarType],d=gk(a,a.maxDate)-d,e=gk(a,a.minDate),b=gk(a,b),b>d&&(b=d),b<e&&(b=e),b=Math.trunc(b/c[a.calendarType])*c[a.calendarType],b=Gd(b,hk(a)-1,1));if(xh(a.ea,b,!1))return!1;a.ea=new Date(b.valueOf());return!0}
function nj(a,b,c,d){d=void 0===d?null:d;if(null!=b){b=jg(b);if(null===b)return;b=b<a.minDate?a.minDate:b;b=b>a.maxDate?a.maxDate:b}if(xh(a.selectedDate,b))a.control.fireEvent("SameSelectedDateInternal",d);else{if(null!=b){var e=wj(a,b);if(!ik(a,e,b))return}a.selectedDate=b;a.control.updateControl(1);c||a.control.fireEvent("SelectedDateChanged",d)}}
function ij(a,b){b=jk(a,b);a:{var c=Vj(a),d=a.focusDate;var e=c.hp;c=c.Ko;if("monthday"===a.calendarType){var f=0;d<e?f=Yj(d,e):d>c&&(f=Yj(d,c));d=e.getMonth()+1+f;e=zh(e.getFullYear(),d,e.getDate())}else{if("yearmonth"===a.calendarType){if(1===a.calendarYear){e=gj(a,a.focusDate);break a}f=0;d<e?f=d.getFullYear()-e.getFullYear():d>c&&(f=d.getFullYear()-c.getFullYear());d=e.getFullYear()+f}else{if(1===a.calendarYear){e=gj(a,a.focusDate);break a}f={smallscaleyear:10,largescaleyear:100};var h=0;d<e?
h=d.getFullYear()-e.getFullYear():d>c&&(h=d.getFullYear()-c.getFullYear());h=0<=h?Math.ceil(h/f[a.calendarType])*f[a.calendarType]:Math.floor(h/f[a.calendarType])*f[a.calendarType];d=e.getFullYear()+h}e=zh(d,e.getMonth()+1,e.getDate())}e=gj(a,e)}e?a.control.updateControl():a.control.updateControl(1);e&&a.control.fireEvent("Scrolled");b&&a.control.fireEvent("FocusDateChanged");return e}
function jk(a,b){b>a.maxDate?b=a.maxDate:b<a.minDate&&(b=a.minDate);b=new Date(b.valueOf());if(xh(b,a.focusDate))return!1;a.focusDate=b;return!0}
function kk(a){var b=Vj(a),c=a.focusDate,d=b.hp;b=b.Ko;if(c>=d&&c<=b)return!1;if("monthday"===a.calendarType){var e=0;c<d?e=Yj(d,c):c>b&&(e=Yj(b,c));d=c.getMonth()+1+e;c=zh(c.getFullYear(),d,c.getDate())}else if("yearmonth"===a.calendarType)e=0,c<d?e=gk(a,d)-gk(a,c):c>b&&(e=gk(a,b)-gk(a,c)),c=zh(c.getFullYear()+e,c.getMonth()+1,c.getDate());else{e="smallscaleyear"===a.calendarType?10:100;var f=gk(a,c)%e;if(c<d)d=gk(a,d);else if(c>b)d=gk(a,b);else return!1;d=Math.trunc(d/e)*e;d+=f;c.getMonth()+1<hk(a)&&
d++;c=zh(d,c.getMonth()+1,c.getDate())}return jk(a,c)}g.scrollYear=function(a){var b=this.startDate();a=Tj(b,a);b=gj(this,a);var c=kk(this);a<this.minDate?this.focusDate=this.minDate:a>this.maxDate&&(this.focusDate=this.maxDate);b?(this.control.updateControl(),this.control.fireEvent("Scrolled")):c&&this.control.updateControl(1);c&&this.control.fireEvent("FocusDateChanged");return b};
g.scrollMonth=function(a){if("monthday"!==this.calendarType){var b=this.ea,c=Zj(this.focusDate,a);a=ij(this,c);1<Ie(this.calendarDimensions)&&(gj(this,c),this.control.updateControl(1),a=!xh(b,this.ea,!1));return a}b=Zj(this.startDate(),a);a=gj(this,b);c=kk(this);b<this.minDate?this.focusDate=this.minDate:b>this.maxDate&&(this.focusDate=this.maxDate);a?this.control.updateControl():c&&this.control.updateControl(1);a&&this.control.fireEvent("Scrolled");c&&this.control.fireEvent("FocusDateChanged");return a};
function lk(a,b){if(0==a.selectionMode)return xh(a.selectedDate,b);for(var c=0;c<a.selections.length;c++)if(xh(a.selections[c],b))return!0;return!1}function mk(a,b){if(0==a.selectionMode)return yh(a.selectedDate,b);for(var c=0;c<a.selections.length;c++)if(yh(a.selections[c],b))return!0;return!1}
function nk(a,b){if(!b)return!1;var c=hk(a),d=b.getFullYear(),e="smallscaleyear"===a.calendarType?1:10;b=Gd(d,c-1,1);c=Gd(d+e,c-1,1);if(0===a.selectionMode)return a.selectedDate&&a.selectedDate>=b&&a.selectedDate<c;for(d=0;d<a.selections.length;d++)if(a.selections[d]>=b&&a.selections[d]<c)return!0;return!1}
function ok(a,b){if(!b)return!1;if("monthday"===a.calendarType)return xh(b,a.focusDate);if("yearmonth"===a.calendarType)return yh(b,a.focusDate);var c="smallscaleyear"===a.calendarType?1:10,d=hk(a),e=b.getFullYear();b=Gd(e,d-1,1);c=Gd(e+c,d-1,1);return a.focusDate>=b&&a.focusDate<c}function hk(a){var b=1;1===a.calendarYear&&(b=0===a.firstFiscalMonth?4:a.firstFiscalMonth);return b}function gk(a,b){var c=b.getFullYear();b.getMonth()+1<hk(a)&&c--;return c}
function ik(a,b,c){if(0==a.allowSelection)return!0;a:{if(c){var d=0;switch(Math.floor((c.getDate()-1)/7)){case 0:d=1;break;case 1:d=2;break;case 2:d=4;break;case 3:d=8;break;case 4:d=16}var e=mh(c.getFullYear(),c.getMonth()+1)-7;c.getDate()>e&&(d|=32);c=c.getDay();for(e=0;e<a.g.length;e++)if(0<(a.g[e].ad.qf.weekDay(c).vt&d)){d=!0;break a}}d=!1}if(1==a.allowSelection){if(null===b||"normal"===b||"forceworkday"===b)return!d}else if(2==a.allowSelection&&(d||"overriddenholiday"==b||"holiday"==b||"forceholiday"==
b||"dayOfWeekHoliday"==b))return!0;return!1}function pk(a,b){for(var c=0;c<b.length;c++){var d=oh(b[c].getAttribute("CellValue"));if(d>=a.minDate&&d<=a.maxDate){for(var e=!1,f=0;f<a.selections.length;f++)if(xh(d,a.selections[f])){e=!0;break}if(!e)return!1}}return!0}
function qk(a,b){var c=a.minDate.getFullYear(),d=a.minDate.getMonth(),e=a.maxDate.getFullYear(),f=a.maxDate.getMonth(),h=b.getFullYear(),k=b.getMonth();if("monthday"===a.calendarType){if(b<a.minDate&&(h!=c||k!=d)||b>a.maxDate&&(h!=e||k!=f))return!1}else if(b<a.minDate&&h!=c||b>a.maxDate&&h!=e)return!1;return!0}function rk(a){return 2===a.selectionMode}function sk(a){return 2===a.showNavigator||1===a.showNavigator}function tk(a){return 1==a.navigatorOrientation||3==a.navigatorOrientation}
function lj(a,b,c){if(!(a.selections.length>=a.maxSelectionCount)){var d=wj(a,b);!lk(a,b)&&ik(a,d,b)&&b>=a.minDate&&b<=a.maxDate&&(c?(a=a.selections,a[a.length]=b,a.length++):Ai(a.selections,b))}}function uk(a,b){var c=b.getFullYear();b=b.getMonth();for(var d=mh(c,b+1),e=1;e<=d&&!(a.selections.length>=a.maxSelectionCount);e++)lj(a,new Date(c,b,e),!0)}
function vk(a,b){if(b){var c="smallscaleyear"===a.calendarType?1:10,d=hk(a),e=b.getFullYear();b=Gd(e,d-1,1);for(c=Gd(e+c,d-1,1);b<c&&!(a.selections.length>=a.maxSelectionCount);b.setDate(b.getDate()+1))lj(a,new Date(b.valueOf()),!0)}}function wk(a,b){for(var c=0;c<b.length;c++){var d=oh(b[c].getAttribute("CellValue"));lj(a,d,!0)}}function xk(a,b,c){for(var d=a.selections.length,e=0;e<d;e++)xh(a.selections[e],b)&&(c?Fi(a.selections,e):Ci(a.selections,e))}
function yk(a,b){for(var c=a.selections.length,d=new Ji,e=0,f=0;f<c;f++)yh(a.selections[f],b)||(Ai(d,a.selections[f]),e++);kj(a,d)}function zk(a,b){if(b){var c="smallscaleyear"===a.calendarType?1:10,d=hk(a),e=b.getFullYear();b=Gd(e,d-1,1);c=Gd(e+c,d-1,1);d=a.selections.length;e=new Ji;for(var f=0;f<d;f++)(a.selections[f]<b||a.selections[f]>=c)&&Ai(e,a.selections[f]);kj(a,e)}}
function oj(a){var b=gj(a,a.startDate()),c=kk(a);b&&a.control.fireEvent("Scrolled");c&&a.control.fireEvent("FocusDateChanged")}
function mj(a){if(0==a.selectionMode){if(null!=a.selectedDate){var b=wj(a,a.selectedDate);if(!ik(a,b,a.selectedDate)||a.selectedDate<a.minDate||a.selectedDate>a.maxDate)a.selectedDate=null}}else{b=a.selections.length;for(var c=[],d=0;d<a.selections.length;d++)c[d]=a.control.getSelections()[d];a.control.setSelections(c,!0);a.selections.length!==b&&(a.control.fireEvent("SelectedDateChanged"),a.control.updateControl())}}
function Ak(a,b,c,d,e){var f=!0;b>c&&(f=b,b=c,c=f,f=!1);var h=new Date(b.valueOf()),k=new Date(c.valueOf());7<Math.floor((c.getTime()-b.getTime())/864E5)&&1!=d&&(b=Bk(a.control.Ua,b),c=Ck(a.control.Ua,c),null!=b&&null!=c&&(h=new Date(b.valueOf()),k=new Date(c.valueOf())));for(e||Ii(a.selections);h<=k;)e=f?1:-1,c=f?h:k,lj(a,new Date(c.valueOf()),!0),c.setDate(c.getDate()+e)}function Dk(a,b,c,d,e){d-=c;var f=0<=d?1:-1;for(d=Math.abs(d);0<=d;d--,c+=f){var h=e?ak(a,b,c):bk(a,b,c);wk(a,h)}}
function Hk(a,b,c,d,e,f){var h=f?7:6,k=d-b,l=0<=k?1:-1;k=Math.abs(k);for(var m=0,n=b;0<=k;k--,n+=l)m=n==b?m+(0<l?h-c:c):n==d?m+(0<l?e:h-e):m+h;for(n=c;0<=m;m--,n+=l){if(0>n||n>=h)b+=l,n=0<l?0:h-1;c=f?ak(a,b,n):bk(a,b,n);wk(a,c)}}function kj(a,b){a.selections=b;a.selections.h=function(c,d,e){a.selections.length>=a.maxSelectionCount&&(e.Cancel=!0)};a.selections.g=function(){a.control.updateControl(1);a.control.fireEvent("SelectedDateChanged")}}
function hj(a){a.s.weekDayChanged=function(){a.control.updateControl(1)};a.selections.h=function(b,c,d){a.selections.length>=a.maxSelectionCount&&(d.Cancel=!0)};a.selections.g=function(){a.control.updateControl(1);a.control.fireEvent("SelectedDateChanged")};a.g.h=function(){mj(a);a.control.updateControl(1)};a.g.g=function(b,c){"IsActive"===c&&(b.getIsActive()?uj(a,b):vj(a,b));mj(a);a.control.updateControl()};a.g.s=function(){mj(a);a.control.updateControl(1)};a.g.i=function(){mj(a);a.control.updateControl(1)}}
p.Object.defineProperties(ej.prototype,{allowResize:{configurable:!0,enumerable:!0,get:function(){return this.ka},set:function(a){if("boolean"===typeof a||"string"===typeof a&&("true"===a.toLowerCase()||"false"===a.toLowerCase()))this.ka=H(a),Ik(this.control.Ua)}},size:{configurable:!0,enumerable:!0,set:function(a){this.na={width:Math.max(Math.trunc(a.width),0),height:Math.max(Math.trunc(a.height),0)}},get:function(){return this.na}},Af:{configurable:!0,enumerable:!0,get:function(){return null!==
this.size}},sa:{configurable:!0,enumerable:!0,get:function(){return this.calendarType===this.u[0]}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.calendarType===this.u[this.u.length-1]}}});function Jk(a,b,c){this.className=Kk;this.delayTime=1E3;this.Ad={x:0,y:0};this.mf=8;this.yg=0;this.nl=1;this.hk=0;this.container=a;this.text=b;void 0!==c&&(void 0!==c.delayTime&&(this.delayTime=c.delayTime),void 0!==c.eh&&(this.eh=c.eh),void 0!==c.Ad&&(this.Ad=c.Ad),void 0!==c.cq&&(this.yg=this.mf=c.cq),void 0!==c.mf&&(this.mf=c.mf),void 0!==c.yg&&(this.yg=c.yg),void 0!==c.className&&(this.className=c.className),void 0!==c.nl&&(this.nl=c.nl),void 0!==c.hk&&(this.hk=c.hk),void 0!==c.aj&&(this.aj=c.aj),
!1!==c.Wr&&this.show())}g=Jk.prototype;g.show=function(){var a=this;this.s=window.setTimeout(function(){a.s=void 0;a.showTip(Lk(a))},this.delayTime)};g.setText=function(a){this.text=a;this.g&&(this.g.innerHTML=a)};function Mk(a,b){a.Ad=b;if(void 0!==a.g){b=window.getComputedStyle(a.g).getPropertyValue("padding");var c=window.getComputedStyle(a.g).getPropertyValue("border");a.h=2*(parseInt(b)+parseInt(c));Nk(a,a.aj)}}
g.close=function(){void 0!==this.s&&(clearTimeout(this.s),this.s=void 0);void 0!==this.i&&(clearTimeout(this.i),this.i=void 0);void 0!==this.g&&(this.g.parentElement.removeChild(this.g),this.g=void 0)};g.dispose=function(){this.s&&clearTimeout(this.s);this.i&&clearTimeout(this.i);this.g&&this.g.remove()};function Lk(a){var b=A("div",{className:Ok},a.text);a.className&&a.className.split(/\s+/).filter(function(c){return c}).forEach(function(c){return E(b,c)});return b}
g.showTip=function(a){var b=this;this.container.appendChild(a);this.g=a;Nk(this,this.aj);void 0!==this.eh&&(this.i=window.setTimeout(function(){b.i=void 0;b.close()},this.eh));this.fireEvent(this.u)};g.fireEvent=function(a){a&&a.bind(this)()};
function Nk(a,b){var c=Pk(a,b),d=Qk(a,b);var e=Qk(a,b)>=a.g.offsetWidth+a.mf;var f=Pk(a,b)>=a.g.offsetWidth+a.mf;1===a.nl?e?Rk(a):f?Sk(a):(Tk(a,Math.max(d,c)-a.mf),d>c?Rk(a):Sk(a)):f?Sk(a):e?Rk(a):(Tk(a,Math.max(d,c)-a.mf),d>c?Rk(a):Sk(a));c=(b?a.Ad.y-a.h-b.getBoundingClientRect().top:a.Ad.y-a.h)>=a.g.offsetHeight+a.yg;b=(b?b.getBoundingClientRect().bottom-a.Ad.y-a.h:document.documentElement.clientHeight-a.Ad.y-a.h)>=a.g.offsetHeight+a.yg;0===a.hk?c?Uk(a):b?Vk(a):Wk(a,{y:0}):b?Vk(a):c?Uk(a):Wk(a,
{y:0})}function Rk(a){var b={x:a.Ad.x};b.x+=a.mf;Wk(a,b)}function Sk(a){var b={x:a.Ad.x};b.x-=a.g.offsetWidth+a.mf;Wk(a,b)}function Uk(a){var b={y:a.Ad.y};b.y-=a.g.offsetHeight+a.yg;Wk(a,b)}function Vk(a){var b={y:a.Ad.y};b.y+=a.yg;Wk(a,b)}function Pk(a,b){return b?a.Ad.x-a.h-b.getBoundingClientRect().left:a.Ad.x-a.h}function Qk(a,b){return b?b.getBoundingClientRect().right-a.Ad.x-a.h:document.documentElement.clientWidth-a.Ad.x-a.h}
function Tk(a,b){a.g&&(a.g.style.width=b+"px",a.g.style.maxWidth=b+"px")}function Wk(a,b){void 0!=b.x&&(b.x=0>b.x?0:b.x,a.g.style.left=b.x+"px");void 0!=b.y&&(b.y=0>b.y?0:b.y,a.g.style.top=b.y+"px")}var Ok="gc_tip",Kk="default_tip gcim__default_tip";function Xk(){var a=this;this.ga=function(b){b.target.removeEventListener("transitionend",a.ga);a.ea--;0>=a.ea&&Yk(a)};this.ea=0}Xk.prototype.stop=function(){var a=this;this.fa&&(this.h.forEach(function(b){return b.removeEventListener("transitionend",a.ga)}),this.ea=0,Yk(this))};Xk.prototype.initData=function(a,b,c){this.s=b;this.g=a;this.la=c;this.na=b.map(function(d){return d.parentElement});this.ca=b[0].clientWidth;this.u=b[0].clientHeight};
function Zk(a){y&&a.na.forEach(function(d){return d.parentElement.setAttribute("scrolling","true")});a.i=[];for(var b=0;b<a.s.length;b++){var c=document.createElement("div");c.classList.add("gcim-calendar_animation-container");a.i.push(c)}0==a.g&&a.i.forEach(function(d){return d.style.display="flex"});a.i.forEach(function(d){return d.style.width=a.ca+"px"});a.i.forEach(function(d){return d.style.height=a.u+"px"});a.h=[];for(b=0;b<a.s.length;b++)c=document.createElement("div"),c.classList.add("gcim-calender_animation-scrolling-container"),
c.setAttribute("scroll-direction",a.g.toString()),a.h.push(c),a.i[b].appendChild(c);a.s.forEach(function(d,e){return d.insertAdjacentElement("afterend",a.i[e])});$k(a)}
function $k(a){a.s.forEach(function(b){return b.style.cssText="display: block; flex: none; width: "+a.ca+"px; height: "+a.u+"px;"});a.la.forEach(function(b){return b.style.cssText="display: block; flex: none; width: "+a.ca+"px; height: "+a.u+"px;"});a.h.forEach(function(b,c){return b.appendChild(a.la[c])});a.h.forEach(function(b,c){return b.appendChild(a.s[c])})}
function al(a){a.ea=a.h.length;a.h.forEach(function(c){return c.addEventListener("transitionend",a.ga)});a.h.forEach(function(c){return c.style.transition="transform "+a.duration+"ms linear"});window.getComputedStyle(a.h[0]).width;var b=-1;if(2==a.g||0==a.g)b=1;2==a.g||3==a.g?a.h.forEach(function(c){return c.style.transform="translateX("+b*a.ca+"px)"}):a.h.forEach(function(c){return c.style.transform="translateY("+b*a.u+"px)"})}
function Yk(a){a.i.forEach(function(b,c){return b.insertAdjacentElement("beforebegin",a.s[c])});a.i.forEach(function(b){return b.remove()});a.s.forEach(function(b){return b.style.cssText=""});delete a.i;a.fa=!1;null!==a.ka&&"function"===typeof a.ka&&a.ka.call(a)}function bl(a){function b(){a.classList.remove("gcim-calendar__type-switch-animation");a.removeEventListener("animationend",b)}a.addEventListener("animationend",b);a.classList.add("gcim-calendar__type-switch-animation")}
p.Object.defineProperties(Xk.prototype,{duration:{configurable:!0,enumerable:!0,get:function(){return mb()?400:300}},speed:{configurable:!0,enumerable:!0,get:function(){var a=(2==this.g||3==this.g?this.ca:this.u)/this.duration;return 2==this.g||0==this.g?a:-1*a}}});function cl(a){return{width:Math.max(a.width,0),height:Math.max(a.height,0)}}function dl(a,b,c){a-=b*c;return[Math.trunc(a/2),Math.trunc(a/2)+a%2]}function el(a){this.g=a}function fl(){el.apply(this,arguments)}t(fl,el);fl.prototype.layout=function(a){this.g.width=a.width;this.g.height=a.height;this.g.host.removeAttribute("gcim-height-style");var b=gl(this,a);hl(this.i,b).height<=this.g.sa&&this.g.host.setAttribute("gcim-height-style","small");this.i.layout(gl(this,a))};
function gl(a,b){b=Object.assign({},b);b={width:b.width-2*a.g.borderWidth,height:b.height-2*a.g.borderWidth};b=Object.assign({},b);a.g.Xa?b.width-=a.g.h:a.g.cb&&(b.height-=a.g.h);b=Object.assign({},b);a.g.showToday&&(b.height-=a.g.Nc);return b=cl(b)}p.Object.defineProperties(fl.prototype,{i:{configurable:!0,enumerable:!0,get:function(){this.h||(this.h=new il(this.g));return this.h}}});function il(){el.apply(this,arguments)}t(il,el);il.prototype.layout=function(a){this.i.layout(hl(this,a))};
function hl(a,b){b=Object.assign({},b);b={width:b.width,height:b.height-(a.g.dimensions.height-1)*a.g.Bb};b={width:b.width-a.g.mb*a.g.dimensions.width,height:b.height-a.g.ob*a.g.dimensions.height};b=Object.assign({},b);1<a.g.dimensions.width&&--b.width;b={width:Math.trunc(b.width/a.g.dimensions.width),height:Math.trunc(b.height/a.g.dimensions.height)};return b=cl(b)}p.Object.defineProperties(il.prototype,{i:{configurable:!0,enumerable:!0,get:function(){this.h||(this.h=new jl(this.g));return this.h}}});
function jl(){el.apply(this,arguments)}t(jl,el);jl.prototype.layout=function(a){this.g.Cc=a.width;var b=kl(this,a);[this.s,this.u].forEach(function(c){return c.layout(b)})};function kl(a,b){b=Object.assign({},b);b={width:b.width-(a.g.rb+a.g.Xb),height:b.height};b=Object.assign({},b);a.g.showHeader&&(b.height-=a.g.ca);return b=cl(b)}
p.Object.defineProperties(jl.prototype,{s:{configurable:!0,enumerable:!0,get:function(){this.h||(this.h=new ll(this.g));return this.h}},u:{configurable:!0,enumerable:!0,get:function(){this.i||(this.i=new ml(this.g));return this.i}}});function ll(){el.apply(this,arguments)}t(ll,el);
ll.prototype.layout=function(a){a=cl({width:a.width,height:a.height-2*this.g.ta});var b=this.g.s;var c=nl(this,a,this.g.u,b);b=ol(c).width<b&&this.g.showWeekNumber?Math.trunc(a.width/(pl+1)):b;c=this.g.u;var d=nl(this,a,c,this.g.s);d=Math.max(ol(d).height<c?Math.trunc(a.height/(ql+1)):c,this.g.vc);a=nl(this,a,d,b);c=ol(a);this.g.fa=c.width;this.g.ea=c.height;this.g.Hb=d;this.g.mc=b;d=fa(dl(a.width,pl,c.width));b=d.next().value;d=d.next().value;this.g.la=b;this.g.ka=d;b=fa(dl(a.height,ql,c.height));
a=b.next().value;b=b.next().value;this.g.na=a;this.g.ga=b};function ol(a){return{width:Math.trunc(a.width/pl),height:Math.trunc(a.height/ql)}}function nl(a,b,c,d){b=Object.assign({},b);b={width:b.width,height:b.height-c};c=Object.assign({},b);a.g.showWeekNumber&&(c.width-=d);return b=cl(c)}var ql=6,pl=7;function ml(){el.apply(this,arguments)}t(ml,el);
ml.prototype.layout=function(a){a=Object.assign({},a);a={width:a.width,height:a.height-2*this.g.bb};a=cl(a);var b=Math.trunc(a.width/rl),c=Math.trunc(a.height/sl);this.g.Fa=b;this.g.va=c;var d=fa(dl(a.width,rl,b));b=d.next().value;d=d.next().value;this.g.La=b;this.g.Ma=d;c=fa(dl(a.height,sl,c));a=c.next().value;c=c.next().value;this.g.Ta=a;this.g.Ga=c};var rl=3,sl=4;function tl(a){this.g=a;this.host=a.g.h}
function ul(a,b){a=parseFloat(window.getComputedStyle(a.host).getPropertyValue(b));return isNaN(a)?0:a}function vl(a,b,c){c=Math.max(c,0);a.host.style.setProperty(b,c+"px")}
p.Object.defineProperties(tl.prototype,{width:{configurable:!0,enumerable:!0,get:function(){return ul(this,wl)},set:function(a){vl(this,wl,a)}},height:{configurable:!0,enumerable:!0,get:function(){return ul(this,xl)},set:function(a){vl(this,xl,a)}},borderWidth:{configurable:!0,enumerable:!0,get:function(){return ul(this,yl)}},h:{configurable:!0,enumerable:!0,get:function(){return ul(this,zl)}},Nc:{configurable:!0,enumerable:!0,get:function(){return ul(this,Al)}},ob:{configurable:!0,enumerable:!0,
get:function(){return ul(this,Bl)}},mb:{configurable:!0,enumerable:!0,get:function(){return ul(this,Cl)}},Bb:{configurable:!0,enumerable:!0,get:function(){return ul(this,Dl)}},rb:{configurable:!0,enumerable:!0,get:function(){return ul(this,El)}},Xb:{configurable:!0,enumerable:!0,get:function(){return ul(this,Fl)}},Cc:{configurable:!0,enumerable:!0,set:function(a){vl(this,Gl,a)}},la:{configurable:!0,enumerable:!0,set:function(a){vl(this,Hl,a)}},ka:{configurable:!0,enumerable:!0,set:function(a){vl(this,
Il,a)}},La:{configurable:!0,enumerable:!0,set:function(a){vl(this,Jl,a)}},Ma:{configurable:!0,enumerable:!0,set:function(a){vl(this,Kl,a)}},na:{configurable:!0,enumerable:!0,set:function(a){vl(this,am,a)}},ga:{configurable:!0,enumerable:!0,set:function(a){vl(this,bm,a)}},Ta:{configurable:!0,enumerable:!0,set:function(a){vl(this,cm,a)}},Ga:{configurable:!0,enumerable:!0,set:function(a){vl(this,dm,a)}},ca:{configurable:!0,enumerable:!0,get:function(){return ul(this,em)}},u:{configurable:!0,enumerable:!0,
get:function(){return ul(this,fm)}},vc:{configurable:!0,enumerable:!0,get:function(){return ul(this,gm)}},s:{configurable:!0,enumerable:!0,get:function(){return ul(this,hm)}},Hb:{configurable:!0,enumerable:!0,set:function(a){vl(this,im,a)}},mc:{configurable:!0,enumerable:!0,set:function(a){vl(this,jm,a)}},ta:{configurable:!0,enumerable:!0,get:function(){return ul(this,km)}},fa:{configurable:!0,enumerable:!0,get:function(){return ul(this,lm)},set:function(a){vl(this,lm,a)}},ea:{configurable:!0,enumerable:!0,
get:function(){return ul(this,mm)},set:function(a){vl(this,mm,a)}},Fa:{configurable:!0,enumerable:!0,get:function(){return ul(this,nm)},set:function(a){vl(this,nm,a)}},va:{configurable:!0,enumerable:!0,get:function(){return ul(this,om)},set:function(a){vl(this,om,a)}},bb:{configurable:!0,enumerable:!0,get:function(){return ul(this,pm)}},sa:{configurable:!0,enumerable:!0,get:function(){return ul(this,qm)}},showHeader:{configurable:!0,enumerable:!0,get:function(){return this.g.aa.showHeader}},showToday:{configurable:!0,
enumerable:!0,get:function(){return this.g.aa.showToday}},showWeekNumber:{configurable:!0,enumerable:!0,get:function(){return this.g.aa.showWeekNumber}},dimensions:{configurable:!0,enumerable:!0,get:function(){return this.g.aa.calendarDimensions}},navigatorOrientation:{configurable:!0,enumerable:!0,get:function(){switch(this.g.aa.navigatorOrientation){case 0:case 2:return"horizontal";case 1:case 3:return"vertical"}}},i:{configurable:!0,enumerable:!0,get:function(){return[1,2].includes(this.g.aa.showNavigator)}},
Xa:{configurable:!0,enumerable:!0,get:function(){return this.i&&"horizontal"===this.navigatorOrientation}},cb:{configurable:!0,enumerable:!0,get:function(){return this.i&&"vertical"===this.navigatorOrientation}},calendarType:{configurable:!0,enumerable:!0,get:function(){return this.g.aa.calendarType}}});
var wl="--gcim__calendar-width",xl="--gcim__calendar-height",yl="--gcim__calendar-border-width",zl="--gcim__calendar-navigator-bar-size",Al="--gcim__calendar-today-button-height",Bl="--gcim__calendar-margin-top",Cl="--gcim__calendar-margin-left",em="--gcim__calendar-header-height",gm="--gcim__calendar-week-title-min-height",fm="--gcim__calendar-week-title-default-height",hm="--gcim__calendar-week-number-default-width",im="--gcim__calendar-week-title-height",jm="--gcim__calendar-week-number-width",
lm="--gcim__calendar-day-cell-width",mm="--gcim__calendar-day-cell-height",nm="--gcim__calendar-month-year-cell-width",om="--gcim__calendar-month-year-cell-height",Dl="--gcim__calendar-split-line-size",El="--gcim__calendar-padding-left",Fl="--gcim__calendar-padding-right",Gl="--gcim__single-calendar-width",Hl="--gcim__calendar-day-view-padding-left",Il="--gcim__calendar-day-view-padding-right",Jl="--gcim__calendar-month-year-view-padding-left",Kl="--gcim__calendar-month-year-view-padding-right",am=
"--gcim__calendar-day-view-deviation-top",bm="--gcim__calendar-day-view-deviation-bottom",cm="--gcim__calendar-month-year-view-deviation-top",dm="--gcim__calendar-month-year-view-deviation-bottom",km="--gcim__calendar-day-view-gap",pm="--gcim__calendar-month-year-view-gap",qm="--gcim__calendar-height-boundary";function rm(a){this.control=a;this.aa=a.aa;sm(this)}rm.prototype.dispose=function(){var a=this.g.h;a.oncontextmenu=null;a.onselectstart=null;zf("mousedown",this.s);zf("mouseup",this.ca);zf("mousemove",this.u);Af(a);a=this.g.g;for(var b=0;b<a.length;b++)tm(this,this.g.g[b].Container,247);this.aa.showToday&&tm(this,this.g.ea,16);sk(this.aa)&&tm(this,this.g.s.Container,499);this.aa=this.control=null};
function sm(a){a.ga=function(b){um(a,a.control.ld.js,b)};a.la=function(b){um(a,a.control.ld.ks,b)};a.ta=function(b){um(a,a.control.ld.ns,b)};a.ka=function(b){um(a,a.control.ld.ls,b)};a.na=function(b){um(a,a.control.ld.ms,b)};a.Fa=function(b){um(a,a.control.ld.os,b)};a.fa=function(b){um(a,a.control.ld.uq,b)};a.ea=function(){};a.sa=function(b){um(a,a.control.ld.ps,b)};a.s=function(b){um(a,a.control.ld.rs,b)};a.ca=function(b){um(a,a.control.ld.ts,b)};a.u=function(b){um(a,a.control.ld.ss,b)};a.Ma=function(b){um(a,
a.control.ld.Cs,b)};a.La=function(b){um(a,a.control.ld.Bs,b)};a.Ga=function(b){um(a,a.control.ld.As,b)};a.h={mousedown:[1,a.la],mouseup:[2,a.ta],mouseover:[4,a.ka],mouseout:[8,a.na],touchstart:[32,a.Ma],touchmove:[128,a.La],touchend:[64,a.Ga],click:[16,a.ga]}}
function vm(a){var b=a.g.h;b.oncontextmenu=function(){return!0===a.aa.ta?!0:!1};b.onselectstart=function(){return!1};xf(document,"mousedown",a.s,!1);xf(document,"mouseup",a.ca,!1);xf(document,"mousemove",a.u,!1);xf(b,Wa?"wheel":"mousewheel",a.Fa,{passive:!1});xf(b,"focus",a.ea,!1);xf(b,"keydown",a.fa,!1);xf(b,"contextmenu",a.sa,!1);wm(a,b,224)}function Ik(a){var b=a.g.fa;a.aa.allowResize?b.classList.remove("gcim_hidden"):b.classList.add("gcim_hidden")}
function xm(a){var b=a.g.h;a.aa.enabled?jd(b,"gcim-calendar__disabled"):E(b,"gcim-calendar__disabled");var c=a.g.h,d="en"==za;c.setAttribute("min-range-view",String(a.aa.sa));c.setAttribute("max-range-view",String(a.aa.Ma));c.setAttribute("calendar-type",a.aa.calendarType);c.setAttribute("navigator-orientation",{0:"left",1:"top",3:"bottom",2:"right"}[a.aa.navigatorOrientation]);c.setAttribute("show-header",a.aa.showHeader+"");c.setAttribute("show-week-number",a.aa.showWeekNumber+"");c.setAttribute("english-language",
d+"");ym(a);qj(a);pj(a);for(var e=0,f=a.aa.startDate(),h=0;h<a.aa.calendarDimensions.height;h++){ni("gcim-calendar-dimension__row");for(var k=0;k<a.aa.calendarDimensions.width;k++){var l=void 0,m=a,n=e++,q=h+1,u=k+1,r=f;if(m.aa.showHeader){var z=m.g.g[n].HeaderDom;z.HeaderText.innerHTML=Dj(m.aa,r);si(z.HeaderText,[{key:"CellValue",value:r.getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()},{key:"HeaderIndex",value:n.toString()}]);z.OutlookLeftNavigator.style.backgroundImage="none";z.OutlookRightNavigator.style.backgroundImage=
"none";z.OutlookZoomIn.style.backgroundImage="none";z.OutlookZoomOut.style.backgroundImage="none";3===m.aa.showNavigator&&(1===q&&1===u&&(z.OutlookLeftNavigator.style.backgroundImage="",m.aa.showZoomButton&&(z.OutlookZoomOut.style.backgroundImage="")),1===q&&u===m.aa.calendarDimensions.width&&(z.OutlookRightNavigator.style.backgroundImage="",m.aa.showZoomButton&&(z.OutlookZoomIn.style.backgroundImage="")))}if("monthday"===m.aa.calendarType){m.g.g[n].CornerDom.style.display=m.aa.showWeekNumber?"":
"none";for(var D=xj(m.aa),wa=m.g.g[n].TitleDom,Hb=m.g.g[n].WeekTitleInteractionDom,Wb=0;7>Wb;Wb++){var xc=(D+Wb)%7,Kf=wa[Wb],Td=Hb[Wb];si(Kf,[{key:"CellType",value:"Title"},{key:"CalendarIndex",value:n.toString()},{key:"CellValue",value:Wb.toString()},{key:"WeekValue",value:xc.toString()}]);var ac={0:w.WeekdaySunday,1:w.WeekdayMonday,2:w.WeekdayTuesday,3:w.WeekdayWednesday,4:w.WeekdayThursday,5:w.WeekdayFriday,6:w.WeekdaySaturday};var Ib=0<=xc&&7>xc?ac[xc]:"";var yc=m.aa.s.weekDay(xc);if(yc){if(yc.getReflectToTitle()){var B=
Ld[vi[xc]];-1<Kf.className.indexOf(B)||E(Kf,B)}Ib=yc.dayName?yc.dayName:Ib}Td.innerHTML=Ib}for(var fb=m.g.g[n],Lf=0;6>Lf;Lf++){var rd=fb.WeekNumberDom[Lf],Ll=fb.WeekNumberInteractionDom[Lf];if(m.aa.showWeekNumber){var tb=m.aa,yj=n,zc=r,sd=xj(tb);zc=zc||new Date(2E3,0,1);var fd=new Date(zc.getFullYear(),zc.getMonth(),1),zj=(sd-fd.getDay()-7)%7,Bg=fd.getDate(),gd=new Date(fd.getFullYear(),fd.getMonth(),Bg+zj),Gc=Uj(zc.getFullYear(),zc.getMonth()+1,1,sd,!1),Aj=Uj(zc.getFullYear(),12,31,sd,!1),Mf=[];
sd==fd.getDay()&&28==mh(zc.getFullYear(),zc.getMonth()+1)&&0==tb.emptyRows&&(Gc--,Bg=gd.getDate(),gd.setDate(Bg-7));for(var We=0;6>We;We++)Gc==Aj&&(Gc=Uj(zc.getFullYear(),12,31,sd,!0)),Mf[We]=Gc,Gc++,0==We&&(new Date(gd.getFullYear(),gd.getMonth(),gd.getDate()+6)).getMonth()!=fd.getMonth()&&(!tb.showTrailing||1<yj)&&(Mf[We]=""),0<We&&gd.getMonth()!=fd.getMonth()&&(!tb.showTrailing||yj<Ie(tb.calendarDimensions)-1)&&(Mf[We]=""),gd.setDate(gd.getDate()+7);var Ml=Mf;Ll.innerHTML=Ml[Lf];rd.setAttribute("empty-week-number",
(""===Ml[Lf])+"");si(rd,[{key:"CellType",value:"WeekNumber"},{key:"CalendarIndex",value:n.toString()},{key:"CellValue",value:Lf.toString()}])}else rd.style.display="none"}var Nl=m.g.g[n],Ol=xj(m.aa),Qh=new Date(r.getFullYear(),r.getMonth(),1),Pl=(7-Ol+Qh.getDay())%7,Bj=Qh.getDate(),Pb=new Date(Qh.getFullYear(),Qh.getMonth(),Bj-Pl),Cj=m.aa.showTrailing;0<n&&n<Ie(m.aa.calendarDimensions)-1&&(Cj=!1);var Ql=!1,Uo=mh(r.getFullYear(),r.getMonth()+1);Ol==Qh.getDay()&&28===Uo&&0==m.aa.emptyRows&&(Bj=Pb.getDate(),
Pb.setDate(Bj-7),Ql=!0);for(var Rl=[],Sl=!1,lb=0;lb<Nl.RowsDom.length;lb++)for(var qb=0;7>qb;qb++){var jc=Nl.RowsDom[lb][qb],zb=jc.ContainerCell,T=m.aa,td=Pb;var ud=xh(td,T.minDate)||xh(td,T.maxDate)?!0:td>=T.minDate&&td<=T.maxDate;var bc="EmptyDay";if(0==lb)qb<Pl||Ql?Cj&&0==n?(zm(m,jc,Pb),bc="TrailingDay"):zm(m,jc):(zm(m,jc,Pb),bc="CommonDay");else if(Sl)Cj&&n==Ie(m.aa.calendarDimensions)-1?(zm(m,jc,Pb),bc="TrailingDay"):zm(m,jc);else{var Rh=mh(r.getFullYear(),r.getMonth()+1);Pb.getDate()==Rh&&(Sl=
!0);zm(m,jc,Pb);bc="CommonDay"}var Ud=Ld[bc];zb.removeAttribute("calendar-holiday-type");var Xe=wj(m.aa,Pb);if(""!=Xe&&"dayOfWeekHoliday"!=Xe&&"normal"!=Xe&&"CommonDay"==bc){a:{var Ej=Pb,Vd=m.aa.va;if(Vd){for(var Wd=0;Wd<Vd.ad.length;Wd++)if(Di(Vd.ad,Wd).isHoliday(Ej)){var vd=Di(Vd.ad,Wd).getName();break a}if(Vi(Vd.ad,Ej)){b:{var Hc=Vd.ad,Ye=Ej,Ac=new Date(Ye.getFullYear(),Ye.getMonth(),Ye.getDate()-1),Nc=Hc.qf.weekDay(Ac.getDay());if(1==Nc.g&&Nc.isHoliday(Ac))for(var wd=0;wd<Hc.length;wd++){var ne=
Wi(Di(Hc,wd),Ac);if("holiday"==ne||"forceholiday"==ne){vd=Di(Hc,wd).getName();break b}}Ac=new Date(Ye.valueOf());for(wd=0;7>wd;wd++){Ac.setDate(Ac.getDate()-1);for(var Sh="",Cg=Hc.length-1;0<=Cg;Cg--)if(ne=Wi(Di(Hc,Cg),Ac),"holiday"==ne||"forceholiday"==ne){Sh=Di(Hc,Cg).getName();break}Nc=Hc.qf.weekDay(Ac.getDay());if(Sh){if(2==Nc.g&&Nc.isHoliday(Ac)){vd=Sh;break b}}else if(!Nc.isHoliday(Ac))break}vd=""}break a}}vd=""}vd&&(zb.setAttribute("calendar-holiday-type",vd),zb.title=vd,"overriddenholiday"===
Xe&&m.aa.overrideTipText&&(zb.title=m.aa.overrideTipText))}else{var Fj,Gj=m.aa,Ze=Pb,Hj=Ze.getDay(),oe=0;switch(Math.floor((Ze.getDate()-1)/7)){case 0:oe=1;break;case 1:oe=2;break;case 2:oe=4;break;case 3:oe=8;break;case 4:oe=16}var Tl=mh(Ze.getFullYear(),Ze.getMonth()+1)-7;Ze.getDate()>Tl&&(oe|=32);var Ij=Gj.s.weekDay(Hj);(Fj=Ij&&0<(Ij.weekFlags&oe)?vi[Hj]:"")&&"CommonDay"==bc&&(Ud=Ld[Fj])}var Dg="",Jj=lk(m.aa,Pb);"EmptyDay"!==bc&&(ud?Jj&&(Ud=Ld.SelectedDay):Ud=Ld.DisableDay,xh(m.aa.focusDate,Pb)&&
(Dg+=" "+Ld.FocusDay+" "),xh(fj(),Pb)&&(Dg+=" "+Ld.TodayDay+" "));if(Ud===Ld.DisableDay||Ud===Ld.SelectedDay)zb.removeAttribute("calendar-holiday-type"),zb.removeAttribute("title");zb.className=Ld.AllDay+" "+Ud;Dg&&(zb.className+=" "+Dg);si(zb,[{key:"CellType",value:bc},{key:"CellValue",value:fk(Pb)},{key:"CalendarIndex",value:n.toString()},{key:"TitleIndex",value:qb.toString()},{key:"WeekNumberIndex",value:lb.toString()}]);Jj&&Rl.push({Dp:new Date(Pb.valueOf()),dc:zb});Pb.setDate(Pb.getDate()+1)}Am(Rl)}else{var Th=
r.getFullYear(),Nf=1;1===m.aa.calendarYear&&(Nf=0===m.aa.firstFiscalMonth?m.aa.fa.firstFiscalMonth:m.aa.firstFiscalMonth);1==m.aa.calendarYear&&r.getMonth()<Nf-1&&Th--;Nf--;var Ul=mh(Th,Nf),Kj=r.getDate();Kj>Ul&&(Kj=Ul);var Uh=Gd(Th,Nf,Kj);["smallscaleyear","largescaleyear"].includes(m.aa.calendarType)&&(l=Sj(Uh,m.aa.calendarType).Hh,l.setFullYear(l.getFullYear()-("smallscaleyear"===m.aa.calendarType?1:10)));for(var Eg=0;4>Eg;Eg++)for(var Fg=0;3>Fg;Fg++){var gb=m.g.g[n].RowsDom[Eg][Fg];if("yearmonth"===
m.aa.calendarType){var yb=void 0,Vh=void 0,Ka=m,kc=gb,xd=Uh,$e=Ka.aa.minDate,Of=Ka.aa.maxDate,Vl=12*$e.getFullYear()+$e.getMonth(),Wl=12*Of.getFullYear()+Of.getMonth(),Lj=12*xd.getFullYear()+xd.getMonth();Vh=Lj>=Vl&&Lj<=Wl?Md.CommonMonth:Md.DisableMonth;mk(Ka.aa,xd)?Vh=Md.SelectedMonth:yh(Ka.aa.focusDate,xd)&&(Vh=Md.FocusMonth);var Vo=kc.ContainerCell,Wo=kc.InteractionCell;Vo.className=Md.AllMonth+" "+Vh;var au=new wi,Xo=Ka.aa.yearMonthFormat.split(",");yb=1<Xo.length?au.ia(xd,Xo[1],"yearmonth",!0):
"";Wo.innerHTML=yb;si(Vo,[{key:"CellType",value:"CommonMonth"},{key:"CellValue",value:fk(xd)}]);Uh=Zj(Uh,1,!0)}else if("smallscaleyear"===m.aa.calendarType){var Gg=void 0,pe=m,Pf=gb,af=l,yd=Eg,Hg=Fg,Wh=n,Yo=pe.aa.minDate,Ig=pe.aa.maxDate,Xh=hk(pe.aa),qe=af.getFullYear(),Xl="smallscaleyear"===pe.aa.calendarType?1:10,Mj=Gd(qe,Xh-1,1),Zo=Gd(qe+Xl,Xh-1,1),bf=0===yd&&0===Hg||3===yd&&2===Hg,cf=0===Wh&&0===yd&&0===Hg||Wh===Ie(pe.aa.calendarDimensions)-1&&3===yd&&2===Hg;Gg=Mj>Ig||Zo<=Yo?Md.DisableMonth:bf?
ci.AdjacentYear:Md.CommonMonth;bf||(nk(pe.aa,af)?Gg=Md.SelectedMonth:ok(pe.aa,af)&&(Gg=Md.FocusMonth));var Yh=Pf.ContainerCell,hd=Pf.InteractionCell;Yh.className=Md.AllMonth+" "+Gg;var df=bf&&!cf;hd.innerHTML=df?"":Wj(pe.aa,af);si(Yh,[{key:"CellType",value:df?"EmptyYear":"Year"},{key:"CellValue",value:fk(af)}]);l=Tj(l,1,!0)}else if("largescaleyear"===m.aa.calendarType){var id=void 0,Oc=m,re=gb,zd=l,Ad=Eg,Jg=Fg,Nj=n,bu=Oc.aa.minDate,cu=Oc.aa.maxDate,Yl=hk(Oc.aa),Qf=zd.getFullYear(),se="smallscaleyear"===
Oc.aa.calendarType?1:10,Zh=Gd(Qf,Yl-1,1),$o=Gd(Qf+se,Yl-1,1),te=0===Ad&&0===Jg||3===Ad&&2===Jg,Oj=0===Nj&&0===Ad&&0===Jg||Nj===Ie(Oc.aa.calendarDimensions)-1&&3===Ad&&2===Jg;id=Zh>cu||$o<=bu?Md.DisableMonth:te?ci.AdjacentYear:Md.CommonMonth;te||(nk(Oc.aa,zd)?id=Md.SelectedMonth:ok(Oc.aa,zd)&&(id=Md.FocusMonth));var $h=Oc.aa,ue=Wj($h,zd),Zl=Tj(zd,9),Pj=Wj($h,Zl),Qj=re.ContainerCell,$l=re.InteractionCell;Qj.className=Md.AllMonth+" "+id;var ai=0>zd.getFullYear()||te&&!Oj;$l.innerHTML=ai?"":"<div class='"+
di.Container+"'>\n                    <div class='"+di.Cell+"'>\n                        <span>"+(ue+" -</span>\n                        <span>")+Pj+"</span>\n                    </div>\n                </div>";si(Qj,[{key:"CellType",value:ai?"EmptyYear":"RangeYear"},{key:"CellValue",value:fk(zd)}]);l=Tj(l,10,!0)}}}"monthday"===a.aa.calendarType?f.setMonth(f.getMonth()+1):"yearmonth"===a.aa.calendarType?f.setFullYear(f.getFullYear()+1):"smallscaleyear"===a.aa.calendarType?f.setFullYear(f.getFullYear()+
10):"largescaleyear"===a.aa.calendarType&&f.setFullYear(f.getFullYear()+100)}}Bm(a);if(a.aa.showToday){var Rj=a.g.ea,ef=fj(),ap=9<=ef.getMonth()?(ef.getMonth()+1).toString():"0"+(ef.getMonth()+1);Rj.innerHTML=w.ToolTipToday+" : "+ef.getFullYear()+"/"+ap+"/"+(10<=ef.getDate()?ef.getDate().toString():"0"+ef.getDate());a.g.ea.setAttribute("CellType","Today")}Cm(a)}
function Bm(a){if(1!==a.aa.calendarDimensions.width){var b=a.g.g[0].Container;if(0>=b.offsetWidth)setTimeout(function(){Bm(a)},100);else{var c=a.aa.Af?0:a.aa.showWeekNumber?215:196,d=a.g.ga;c=(b.offsetWidth>c?b.offsetWidth:c)*a.aa.calendarDimensions.width;b=a.aa.calendarDimensions.width*Dm(b)+1;for(var e=0;e<d.length;e++)d[e].style.width=(c+b).toString()+"px"}}}
function Em(a,b){var c=ni("gcim-calendar__month-container"),d=oi("gcim-calendar__month-body");b=a.g.g[b];b.CornerDom=null;b.TitleDom=[];b.RowsDom=[];b.WeekNumberDom=[];b.WeekNumberInteractionDom=[];b.WeekTitleInteractionDom=[];for(var e=0,f=0,h=[],k=0;7>k;k++){for(var l=0,m=[],n=pi("calendar-month-table-row-style"),q=0;8>q;q++){var u=qi();0==k&&0==q?(u.className=Ld.Corner,u.setAttribute("CellType","Corner"),b.CornerDom=u):0===q?(u.className=Ld.WeekNumber,Fm(u,b.WeekNumberInteractionDom,f,"weekNumber"),
b.WeekNumberDom[f++]=u):0===k?(u.className=Ld.Title,b.TitleDom[q-1]=u,Fm(u,b.WeekTitleInteractionDom,q-1,"weekTitle")):(m[l]={ContainerCell:u},Gm(a,m[l]),l++);n.appendChild(u)}h.push(n);0!=k&&(b.RowsDom[e++]=m)}var r=pi("calendar-month-table-gap-row gcim-calendar-month-table-gap-row");h.forEach(function(z,D){d.appendChild(z);0===D&&d.appendChild(r)});c.appendChild(d);return c}
function Fm(a,b,c,d){var e={};e.weekNumber=Ld.WeekNumberInteraction;e.weekTitle=Ld.WeekTitleInteraction;d=ni(e[d]);b[c]=d;a.appendChild(d)}function Gm(a,b){var c=ni(Ld.DayInteraction),d=b.ContainerCell;if(0!==a.aa.showRokuyou){a=ni("gcim-calendar__month-body__content-text");var e=ni(Ld.Rokuyou);c.appendChild(a);c.appendChild(e);b.ContentTextNode=a;b.RokuyouTextNode=e}b.DayInteraction=c;d.appendChild(c)}
function Am(a){if(a&&!(0>=a.length)){for(var b=[],c=0,d=0;d<a.length-1;d++)Hm(a[d].Dp,a[d+1].Dp)||(b.push(a.slice(c,d+1)),c=d+1);b.push(a.slice(c));b.forEach(function(e){if(e&&!(0>=e.length))if(1===e.length)Im(e[0].dc,Jm);else{Im(e[0].dc,Km);Im(e[e.length-1].dc,Lm);for(var f=1;f<e.length-1;f++)Im(e[f].dc,Mm)}})}}function Hm(a,b){a=new Date(a.valueOf());a.setDate(a.getDate()+1);return xh(a,b,!1)}
function Im(a,b){switch(b){case Jm:a.setAttribute("selected-style","single");break;case Km:a.setAttribute("selected-style","begin");break;case Mm:a.setAttribute("selected-style","between");break;case Lm:a.setAttribute("selected-style","end");break;default:throw Error("not support SelectedDateStyle");}}
function zm(a,b,c){var d="",e="";if(null!=c&&void 0!=c){d=c.getDate()+"";e=a.aa.showRokuyou;c.getMonth();if(0>c-Gh||0<c-Hh)c=void 0;else{var f,h,k=0,l=Math.round((c-new Date(1960,0,28))/864E5);for(f=1960;2050>f&&0<l;f++){k=348;for(h=32768;8<h;h>>=1)k+=Ih[f-1960]&h?1:0;k+=Ih[f-1960]&15?Ih[f-1960]&65536?30:29:0;l-=k}0>l&&(l+=k,f--);Ug=f;h=Ih[f-1960]&15;Vg=!1;for(f=1;13>f&&0<l;f++)0<h&&f==h+1&&0==Vg?(--f,Vg=!0,k=Ug,k=Ih[k-1960]&15?Ih[k-1960]&65536?30:29:0):k=Ih[Ug-1960]&65536>>f?30:29,1==Vg&&f==h+1&&
(Vg=!1),l-=k;0==l&&0<h&&f==h+1&&(Vg?Vg=!1:(Vg=!0,--f));0>l&&(l+=k,--f);Wg=f;Xg=l+1;f=(Wg+Xg-2)%6;l=new Date(1996,6,15);Ah(c,l,new Date(1996,7,13))&&(f=(6+f-1)%6);h=new Date(1996,8,12);Ah(c,h,new Date(1996,9,11))&&(f=(6+f-1)%6);Ah(c,new Date(2033,7,25),new Date(2033,11,21))&&(f=(f+1)%6);xh(c,l)&&(f=(6+f-1)%6);xh(c,h)&&(f=(6+f-1)%6);switch(f){case 0:var m=1;break;case 1:m=2;break;case 2:m=4;break;case 3:m=8;break;case 4:m=16;break;case 5:m=32}c=m}e=Bh(c&e)}0!=a.aa.showRokuyou?(b.ContentTextNode.innerHTML=
d,b.RokuyouTextNode.innerHTML=e):b.DayInteraction.innerHTML=d;b.DayInteraction.setAttribute("empty-rokuyou-text",(""===e)+"")}function qj(a){a.g.h.setAttribute("week-number-select",a.aa.weekNumberSelect+"")}function pj(a){a.g.h.setAttribute("week-title-select",a.aa.weekTitleSelect+"")}function ym(a){a.g.h.setAttribute("auto-switch",a.aa.autoSwitch+"")}
function Cm(a){if(sk(a.aa)){var b=a.g.h;if(0>=(tk(a.aa)?b.offsetWidth:b.offsetHeight))setTimeout(function(){Cm(a)},100);else{var c=Nm(a);b=a.g.s;a.aa.showZoomButton?(b.ZoomIn.style.display="",b.ZoomOut.style.display=""):(b.ZoomIn.style.display="none",b.ZoomOut.style.display="none");switch(a.aa.showNavigator){case 1:tk(a.aa)?b.Blank.style.width=c+"px":b.Blank.style.height=c+"px";break;case 2:var d=dk(a.aa,c);c-=d;tk(a.aa)?(b.LeftBlank.style.width=d+"px",b.RightBlank.style.width=c+"px"):(b.LeftBlank.style.height=
d+"px",b.RightBlank.style.height=c+"px")}}}}function Nm(a){var b=a.g.s,c=tk(a.aa),d=b.Container,e=b.ScrollBarContainer,f=d.parentElement,h=[b.LeftNavigator,b.RightNavigator,b.LeftMost,b.RightMost];2===a.aa.showNavigator&&(h.push(b.ThumbButton),h.push(b.Today));a.aa.showZoomButton&&(h.push(b.ZoomIn),h.push(b.ZoomOut));var k=0;h.forEach(function(l){return k+=c?l.offsetWidth:l.offsetHeight});k+=c?Om(d):Pm(d);k+=c?Om(e):Pm(e);a=c?f.clientWidth-Om(f):f.clientHeight-Pm(f);return Math.max(a-k,0)}
function Om(a){a=window.getComputedStyle(a);return parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)}function Pm(a){a=window.getComputedStyle(a);return parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)}function Dm(a){a=window.getComputedStyle(a);return parseFloat(a.marginLeft)+parseFloat(a.marginRight)}function Qm(a,b){a.g.ca||(a.g.ca={Container:new Jk(document.body,"",{delayTime:0,eh:15E4,Wr:!1,mf:10,className:"gcim-calendar__tooltip"})});Rm(a,b);return a.g.ca.Container}
function Rm(a,b){if(a.g.ca){var c=a.g.ca.Container,d;a=a.aa;d||(d=new Date(a.focusDate.valueOf()));"monthday"===a.calendarType&&12===Ie(a.calendarDimensions)&&0!=a.firstMonthInView&&(d=new Date(d.getFullYear(),a.firstMonthInView-1,d.getDate()));d=Dj(a,d);b=new He(ki(b),li(b));c.setText(d);Mk(c,{x:b.width,y:b.height})}}
function Sm(a,b,c,d){var e=a.g;if(!e.i){for(var f=ni(Oh.Container),h={Cells:[]},k=0;7>k;k++){var l=ni(Oh.Cell);f.appendChild(l);h.Cells[k]=l}h.PopupMonthContainer=f;e.i=h}f=document.documentElement.scrollLeft;h=document.documentElement.scrollTop;document.documentElement&&document.documentElement.scrollLeft?f=document.documentElement.scrollLeft:document.body&&document.body.scrollLeft&&(f=document.body.scrollLeft);document.documentElement&&document.documentElement.scrollTop?h=document.documentElement.scrollTop:
document.body&&document.body.scrollTop&&(h=document.body.scrollTop);k="yearmonth"===a.aa.calendarType?40:80;l=c.srcElement||c.target;var m=l.clientWidth,n=Tf(l);l.id="";k=n.uk+m/2-k/2;l=c.clientY-82+h;c.touches&&0<c.touches.length&&(l=c.touches[0].pageY-82);c=new He(k>f?k:f,l>h?l:h);e=e.i;e.PopupMonthContainer.style.left=c.width+"px";e.PopupMonthContainer.style.top=c.height+"px";e.currentTop=c.height;e.currentBottom=c.height+164;Tm(a,b,d,0);Um(a);return a.g.i.PopupMonthContainer}
function Tm(a,b,c,d){var e=a.g.i;e.currentFocusDate=new Date(c.valueOf());e.currentIndex=b;if(e&&!Vm(a,d)){d=-6;for(var f=new Date(c.valueOf()),h=0;3>h;h++){var k=Zj(f,h+1);"yearmonth"===a.aa.calendarType&&(k=Tj(f,1));qk(a.aa,k)&&(d+=1)}f=Zj(c,d);"yearmonth"===a.aa.calendarType&&(f=Tj(c,d));for(h=0;7>h;h++)e.Cells[h].style.display="none";for(h=c=0;10>h&&!(6<c);h++)qk(a.aa,f)&&(d=Dj(a.aa,f),k=e.Cells[c],k.style.display="",k.innerHTML=d,si(k,[{key:"HeaderIndex",value:b.toString()},{key:"CellType",value:"PopupHeaderText"},
{key:"CellValue",value:fk(f)}]),c++),"monthday"===a.aa.calendarType?f.setMonth(f.getMonth()+1):f.setFullYear(f.getFullYear()+1);e.PopupMonthContainer.setAttribute("RowCount",c)}}function Um(a){var b=a.g.i;if(b){var c=b.PopupMonthContainer;Wa?c.style.MozUserSelect="none":c.onselectstart=function(){return!1};for(c=0;7>c;c++)wm(a,b.Cells[c],14)}}
function Wm(a){var b=a.g.u;if(b){for(var c=a.aa.g,d=0;d<c.length;d++)wm(a,b.ik[d].ContentTableCell,1);Wa?b.Fm.style.MozUserSelect="none":b.Fm.onselectstart=function(){return!1}}}
rm.prototype.updateControl=function(){var a=this.control.ld;Xm(a)&&a.animation.stop();a=this.g.h;var b=[this.g.fa];if(a)for(var c=a.childNodes.length-1;0<=c;c--){var d=a.childNodes.item(c);b.includes(d)||a.removeChild(d)}var e=this.aa.navigatorOrientation;this.g.g=[];a=this.g.h;b=oi();var f=pi();d=qi();var h=pi();c=qi();tk(this.aa)?(f.appendChild(d),h.appendChild(c),1==e&&b.appendChild(h),b.appendChild(f),3==e&&b.appendChild(h)):(f.appendChild(d),b.appendChild(f),0==e&&f.appendChild(c),f.appendChild(d),
2==e&&f.appendChild(c));e=d.appendChild;this.g.g=[];this.g.ga=[];f=ni("gcim-calendar-dimension");for(var k=h=0;k<this.aa.calendarDimensions.height;k++){for(var l=ni("gcim-calendar-dimension__row"),m=0;m<this.aa.calendarDimensions.width;m++){var n=h++;this.g.g[n]={};var q=ni("gcim-calendar");if(this.aa.showHeader){var u=q,r=u.appendChild,z=n,D=ni("gcim-calendar__header");this.g.g[z].HeaderDom={headerContainer:D};for(var wa=this.aa.La,Hb=0;Hb<wa.length;Hb++){var Wb=wa[Hb].Jc,xc=ni(wa[Hb].className);
xc.setAttribute("CellType",Wb);D.appendChild(xc);this.g.g[z].HeaderDom[Wb]=xc}r.call(u,D)}if("monthday"===this.aa.calendarType)u=Em(this,n);else{z=n;u=ni("gcim-calendar__year-container");r=oi("gcim-calendar__year-view");z=this.g.g[z];z.CornerDom=null;z.TitleDom=[];z.RowsDom=[];z.WeekNumberDom=[];for(D=0;4>D;D++){wa=[];Hb=pi("gcim-calendar__year-view__row");for(Wb=0;3>Wb;Wb++){xc=wa;var Kf=Hb,Td=Wb,ac={};ac.yearmonth=Md.MonthInteraction;ac.smallscaleyear=ci.YearInteraction;ac.largescaleyear=di.RangeYearInteraction;
var Ib=ac[this.aa.calendarType];ac=qi("gcim-calendar__year-view__month");Ib=ni(Ib);ac.appendChild(Ib);Kf.appendChild(ac);xc[Td]={ContainerCell:ac,InteractionCell:Ib}}r.appendChild(Hb);z.RowsDom[D]=wa}u.appendChild(r)}q.appendChild(u);this.g.g[n].Content=u;this.g.g[n].Container=q;l.appendChild(q)}f.appendChild(l);this.g.ga.push(l)}e.call(d,f);this.g.la=d;this.aa.showToday&&(e=d.appendChild,this.g.ea=ni(Ld.TodayContainer),e.call(d,this.g.ea));if(sk(this.aa)){d=c.appendChild;switch(this.aa.showNavigator){case 1:var yc=
this.aa.Fa;break;case 2:yc=this.aa.Ga}e=ni(tk(this.aa)?Ph.TopBottom:Ph.LeftRight);f=ni(Ph.ScrollBar);h="LeftNavigator LeftBlank ThumbButton RightBlank RightNavigator LeftMost Today RightMost Blank".split(" ");this.g.s={};for(k=0;k<yc.length;k++)l=yc[k].Jc,m=ni(yc[k].className),m.setAttribute("CellType",l),m.setAttribute("title",ek(this.aa,l)),this.g.s[l]=m,h.includes(l)?f.appendChild(m):e.appendChild(m);e.appendChild(f);this.g.s.Container=e;this.g.s.ScrollBarContainer=f;d.call(c,e)}a.appendChild(b);
xm(this);vm(this);yc=this.g.g;for(a=0;a<yc.length;a++)wm(this,this.g.g[a].Container,247);this.aa.showToday&&wm(this,this.g.ea,16);sk(this.aa)&&wm(this,this.g.s.Container,499)};function wm(a,b,c){for(var d in a.h){var e=a.h[d];if(e instanceof Array){var f=e[0];(c&f)==f&&b.addEventListener(d,e[1],{passive:!1})}}}function tm(a,b,c){for(var d in a.h){var e=a.h[d];if(e instanceof Array){var f=e[0];(c&f)==f&&b.removeEventListener(d,e[1])}}}
rm.prototype.setVisible=function(a){this.g.h.style.visibility=a?"":"hidden"};
function Vm(a,b){var c=a.g.i,d="";if(0<b)for(var e=0;7>e;e++)""===c.Cells[e].style.display&&(d=c.Cells[e].getAttribute("CellValue"));else 0>b&&(d=c.Cells[0].getAttribute("CellValue"));if(null!==d&&""!==d){d=new Date(d);c=d.getFullYear();d=d.getMonth();e=a.aa.minDate.getFullYear();var f=a.aa.maxDate.getFullYear(),h=a.aa.minDate.getMonth(),k=a.aa.maxDate.getMonth();if("yearmonth"===a.aa.calendarType)if(0<b){if(c===f)return!0}else{if(0>b&&c===e)return!0}else if(0<b){if(c===k&&d===k)return!0}else if(0>
b&&c===e&&d===h)return!0}return!1}function um(a,b,c){a.aa.enabled&&b.call(a.control.ld,c)}function Ym(a,b,c){var d=[];a=a.g.g[b];for(b=0;6>b;b++){var e=a.RowsDom[b][c].ContainerCell;"CommonDay"==e.getAttribute("CellType")&&d.push(e)}return d}function Zm(a,b,c){var d=[];a=a.g.g[b];for(b=0;7>b;b++)d[b]=a.RowsDom[c][b].ContainerCell;return d}
function Bk(a,b,c){for(var d=0;d<a.g.g.length;d++)for(var e=a.g.g[d].RowsDom,f=0;f<e.length;f++)for(var h=0;7>h;h++){var k=e[f][h].ContainerCell.getAttribute("CellValue");k=oh(k);if(xh(b,k))if(c)for(d=0;7>d;d++){k=e[f][d].ContainerCell;var l=k.getAttribute("CellType");if(c==l)return a=k.getAttribute("CellValue"),oh(a)}else return a=e[f][0].ContainerCell.getAttribute("CellValue"),oh(a)}return null}
function Ck(a,b,c){for(var d=0;d<a.g.g.length;d++)for(var e=a.g.g[d].RowsDom,f=0;f<e.length;f++)for(var h=0;7>h;h++){var k=e[f][h].ContainerCell.getAttribute("CellValue");k=oh(k);if(xh(b,k))if(c)for(d=6;0<=d;d--){if(k=e[f][d].ContainerCell.getAttribute("CellType"),c==k)return a=e[f][d].ContainerCell.getAttribute("CellValue"),oh(a)}else return a=e[f][6].ContainerCell.getAttribute("CellValue"),oh(a)}return null}
function sj(a){a.aa.showAnimation&&a.g.g.forEach(function(b){bl(b.Container.querySelector(".gcim-calendar__month-container")||b.Container.querySelector(".gcim-calendar__year-container"))})}function rj(a){a.aa.Af&&(a.g.h.setAttribute("gcim-custom-size","true"),a.va.layout(a.aa.size))}p.Object.defineProperties(rm.prototype,{va:{configurable:!0,enumerable:!0,get:function(){this.i||(this.i=new fl(new tl(this)));return this.i}}});var Jm=0,Km=1,Lm=2,Mm=3;function $m(a){var b=this;this.Xa=!0;this.mc=function(){document.removeEventListener("mouseup",b.mc);b.Xa||(Ki(b.aa.selections,b.g)||b.control.fireEvent("SelectedDateChanged"),an(b))};this.control=a;this.aa=a.aa;this.Ua=a.Ua;this.animation=new Xk;this.Bb=function(c){Cf(c)}}g=$m.prototype;
g.js=function(a){var b=ii(a);if(b&&0===Ff(a)){var c=b.getAttribute("CellType");if(!Kd(b)){switch(c){case "Title":if(this.aa.weekTitleSelect&&!rk(this.aa)&&(a=ii(a),b=a.getAttribute("CellValue"),a=a.getAttribute("CalendarIndex"),b=Ym(this.Ua,a,b),0!=b.length))if(0==this.aa.selectionMode){b[0].getAttribute("CellType");var d=b[0].getAttribute("CellValue");b=oh(d);a=wj(this.aa,b);ik(this.aa,a,b)&&(ij(this.aa,b),nj(this.aa,b))}else if(1==this.aa.selectionMode){a=pk(this.aa,b);c=this.aa.selections.length;
for(var e=0;e<b.length;e++){b[e].getAttribute("CellType");d=b[e].getAttribute("CellValue");d=oh(d);var f=wj(this.aa,d);ik(this.aa,f,d)&&(a?xk(this.aa,d,!0):lj(this.aa,d,!0));0==e&&ik(this.aa,f,d)&&(this.aa.focusDate=d,this.control.fireEvent("FocusDateChanged"))}c!==this.aa.selections.length&&this.control.fireEvent("SelectedDateChanged");this.control.updateControl(1)}break;case "WeekNumber":if(this.aa.weekNumberSelect&&!rk(this.aa)&&(b=ii(a),a=b.getAttribute("CalendarIndex"),c=b.getAttribute("CellValue"),
b.getAttribute("calendar-holiday-type"),a=Zm(this.Ua,a,c),0!=a.length))if(0==this.aa.selectionMode)e=mi(a),-1!=e&&(c=a[e].getAttribute("CellType"),b=oh(a[e].getAttribute("CellValue")),"TrailingDay"==c?(a=Ie(this.aa.calendarDimensions),1<a&&b>this.aa.focusDate?(c=new Date(b.valueOf()),c.setMonth(c.getMonth()-a+1),ij(this.aa,c),this.aa.focusDate=b,this.control.updateControl(1)):ij(this.aa,b),nj(this.aa,b)):"CommonDay"==c&&(c=wj(this.aa,b),ik(this.aa,c,b)&&(ij(this.aa,b),nj(this.aa,b))));else if(1==
this.aa.selectionMode){e=pk(this.aa,a);b=this.aa.selections.length;for(d=0;d<a.length;d++)a[d].getAttribute("CellType"),f=oh(a[d].getAttribute("CellValue")),c=wj(this.aa,f),ik(this.aa,c,f)&&(e?xk(this.aa,f,!0):lj(this.aa,f,!0));e=mi(a);-1!=e&&(c=a[e].getAttribute("CellType"),e=oh(a[e].getAttribute("CellValue")),"TrailingDay"==c?(a=Ie(this.aa.calendarDimensions),1<a&&e>this.aa.focusDate&&e.setMonth(e.getMonth()-a+1),ij(this.aa,e)):"CommonDay"==c&&ij(this.aa,e));b!==this.aa.selections.length&&this.control.fireEvent("SelectedDateChanged");
this.control.updateControl(1)}break;case "CommonMonth":if(!rk(this.aa)){b=ii(a);b=oh(b.getAttribute("CellValue"));ij(this.aa,new Date(b.valueOf()));if(0==this.aa.selectionMode){a:for(a=this.aa,c=b.getFullYear(),e=b.getMonth(),d=mh(c,e+1),f=1;f<=d;f++){var h=new Date(c,e,f),k=wj(a,h);if(ik(a,k,h)){b=h;break a}}nj(this.aa,b)}else 1==this.aa.selectionMode&&(a=Li(this.aa.selections),mk(this.aa,b)?yk(this.aa,b):uk(this.aa,b),Ki(a,this.aa.selections)||this.control.fireEvent("SelectedDateChanged"));this.control.updateControl(1);
this.control.fireEvent("ClickDate");this.aa.autoSwitch&&bn(this)}break;case "Year":case "RangeYear":b=ii(a);if(!b.classList.contains(Md.DisableMonth)){b=oh(b.getAttribute("CellValue"));ij(this.aa,new Date(b.valueOf()));if(0==this.aa.selectionMode){a:if(a=this.aa,b)for(e="smallscaleyear"===a.calendarType?1:10,d=hk(a),f=b.getFullYear(),c=Gd(f,d-1,1),e=Gd(f+e,d-1,1);c<e;c.setDate(c.getDate()+1)){if(d=wj(a,c),ik(a,d,c)){b=c;break a}}else b=null;nj(this.aa,b)}else c=Li(this.aa.selections),2!=this.aa.selectionMode||
a.ctrlKey||Ii(this.aa.selections),nk(this.aa,b)?zk(this.aa,b):vk(this.aa,b),Ki(c,this.aa.selections)||this.control.fireEvent("SelectedDateChanged");this.control.updateControl(1);this.control.fireEvent("ClickDate");this.aa.autoSwitch&&bn(this)}break;case "TrailingDay":cn(this,a);break;case "CommonDay":dn(this,a);break;case "RightNavigator":en(this,a);break;case "LeftNavigator":fn(this,a);break;case "LeftMost":case "LeftBlank":Xm(this)||(b={monthday:-1,yearmonth:-10,smallscaleyear:-100,largescaleyear:-1E3}[this.aa.calendarType],
gn(this,0),this.aa.scrollYear(b)&&hn(this,0));break;case "RightMost":case "RightBlank":Xm(this)||(b={monthday:1,yearmonth:10,smallscaleyear:100,largescaleyear:1E3}[this.aa.calendarType],gn(this,1),this.aa.scrollYear(b)&&hn(this,1));break;case "ZoomIn":this.aa.showZoomButton&&bn(this);break;case "ZoomOut":this.aa.showZoomButton&&jn(this);break;case "Today":kn(this);break;case "OutlookZoomIn":3===this.aa.showNavigator&&this.aa.showZoomButton&&bn(this);break;case "OutlookZoomOut":3===this.aa.showNavigator&&
this.aa.showZoomButton&&jn(this);break;case "OutlookRightNavigator":3===this.aa.showNavigator&&en(this,a);break;case "OutlookLeftNavigator":3===this.aa.showNavigator&&fn(this,a);break;case "HeaderText":this.aa.la&&jn(this)}$a&&this.aa.ga&&this.control.fireEvent("FocusInternal")}}};
g.ks=function(a){var b=ii(a);if(b&&0===Ff(a))switch(b.getAttribute("CellType")){case "TrailingDay":case "CommonDay":ln(this,a);break;case "CommonMonth":2==this.aa.selectionMode&&(a=ii(a),a=oh(a.getAttribute("CellValue")),this.u=!0,this.la=a,this.g=Li(this.aa.selections));break;case "ThumbButton":mn(this,a);break;case "Title":nn(this,a);break;case "WeekNumber":qn(this,a);break;case "HeaderText":rn(this,a);break;case "HolidayGroupsMenu":b=this.Ua.g.u;var c=ii(a).getAttribute("index");this.aa.g[c].setIsActive(-1==
b.ik[c].StateCell.className.indexOf(bi.Selected));sn(this);this.control.updateControl(1);Cf(a)}};
g.ns=function(a){var b=ii(a);if(b&&0===Ff(a))switch(b.getAttribute("CellType")){case "Title":tn(this,a);break;case "WeekNumber":un(this,a);break;case "PopupHeaderText":if(3===this.aa.showNavigator){var c=ii(a);b=c.getAttribute("HeaderIndex");c=c.getAttribute("CellValue");c=oh(c);if("monthday"===this.aa.calendarType){c=Zj(c,-1*parseFloat(b));b=this.aa.focusDate.getDate();var d=mh(c.getFullYear(),c.getMonth()+1);b<d?c.setDate(b):c.setDate(d)}else c=Tj(c,-1*parseFloat(b));ij(this.aa,c);gj(this.aa,c);
ii(a).className=Oh.Cell;this.control.updateControl(1);vn(this);$a&&this.aa.ga&&this.control.fireEvent("FocusInternal")}break;case "CommonMonth":a:if(2==this.aa.selectionMode&&0!=this.u){b=ii(a);if(a.changedTouches&&0<a.changedTouches.length){b=document.elementFromPoint(a.changedTouches[0].clientX,a.changedTouches[0].clientY);b=ji(b);if(null===b)break a;Cf(a)}c=oh(b.getAttribute("CellValue"));xh(this.la,c)&&(ij(this.aa,c),"CommonMonth"===b.getAttribute("CellType")&&(a.ctrlKey||Ii(this.aa.selections),
mk(this.aa,c)?yk(this.aa,c):uk(this.aa,c)),this.control.updateControl(1),this.control.fireEvent("ClickDate"),this.aa.autoSwitch&&bn(this));Ki(this.g,this.aa.selections)||this.control.fireEvent("SelectedDateChanged");this.u=!1;this.g=this.df=this.la=null}break;case "TrailingDay":case "CommonDay":case "DisableDay":wn(this,a)}};
g.ls=function(a){var b=ii(a);if(b)switch(b.getAttribute("CellType")){case "TrailingDay":case "CommonDay":case "DisableDay":xn(this,a);break;case "Title":yn(this,a);break;case "WeekNumber":zn(this,a);break;case "PopupHeaderText":ii(a).className=Oh.Cell+" "+Oh.SelectedCell}};g.ms=function(a){var b=a.currentTarget;if(null!==b)switch(b.getAttribute("CellType")){case "PopupHeaderText":ii(a).className=Oh.Cell}};
g.os=function(a){Cf(a);Df(a);a=0<=(a.wheelDelta||-a.deltaY)?Xj(this.aa,-1,a.ctrlKey):Xj(this.aa,1,a.ctrlKey);this.aa.scrollMonth(a)};
g.uq=function(a){var b=!0;switch(a.keyCode){case 40:var c,d;if(!Xm(this)){gn(this,3);var e=new Date(this.aa.focusDate.valueOf());"monthday"==this.aa.calendarType?e.setDate(e.getDate()+7):"yearmonth"===this.aa.calendarType?e=Zj(e,3):"smallscaleyear"===this.aa.calendarType?e=Tj(e,null!==(c={9:1,8:4,7:4}[An(this,e)%10])&&void 0!==c?c:3):"largescaleyear"===this.aa.calendarType&&(c=10*Math.floor(An(this,e)%100/10),e=Tj(e,null!==(d={90:10,80:40,70:40}[c])&&void 0!==d?d:30));ij(this.aa,e)&&hn(this,3);this.control.focus()}break;
case 38:var f;Xm(this)||(gn(this,2),d=new Date(this.aa.focusDate.valueOf()),"monthday"==this.aa.calendarType?d.setDate(d.getDate()-7):"yearmonth"===this.aa.calendarType?d=Zj(d,-3):"smallscaleyear"===this.aa.calendarType?d=Tj(d,null!==(f={0:-1,1:-4,2:-4}[An(this,d)%10])&&void 0!==f?f:-3):"largescaleyear"===this.aa.calendarType&&(c=10*Math.floor(An(this,d)%100/10),d=Tj(d,null!==(e={0:-10,10:-40,20:-40}[c])&&void 0!==e?e:-30)),ij(this.aa,d)&&hn(this,2),this.control.focus());break;case 37:Xm(this)||(gn(this,
2),d=new Date(this.aa.focusDate.valueOf()),"monthday"==this.aa.calendarType?d.setDate(d.getDate()-1):"yearmonth"===this.aa.calendarType?d=Zj(d,-1):"smallscaleyear"===this.aa.calendarType?d=Tj(d,-1):"largescaleyear"===this.aa.calendarType&&(d=Tj(d,-10)),ij(this.aa,d)&&hn(this,2),this.control.focus());break;case 39:Xm(this)||(gn(this,3),d=new Date(this.aa.focusDate.valueOf()),"monthday"==this.aa.calendarType?d.setDate(d.getDate()+1):"yearmonth"===this.aa.calendarType?d=Zj(d,1):"smallscaleyear"===this.aa.calendarType?
d=Tj(d,1):"largescaleyear"===this.aa.calendarType&&(d=Tj(d,10)),ij(this.aa,d)&&hn(this,3),this.control.focus());break;case 36:d=new Date(this.aa.focusDate.valueOf());c=null;f=An(this,d);e=hk(this.aa)-1;if("monthday"==this.aa.calendarType)c=a.ctrlKey?new Date(d.getFullYear(),d.getMonth(),1):Bk(this.Ua,d,"CommonDay");else if("yearmonth"==this.aa.calendarType){if(a.ctrlKey)a:{e=this.Ua;for(c=0;c<e.g.g.length;c++){f=e.g.g[c].RowsDom;for(var h=0;h<f.length;h++)for(var k=0;3>k;k++){var l=f[h][k].ContainerCell.getAttribute("CellValue");
l=oh(l);if(yh(d,l))for(c=0;c<f.length;c++)for(l=0;3>l;l++)if("CommonMonth"==f[c][l].ContainerCell.getAttribute("CellType")){d=f[c][l].ContainerCell.getAttribute("CellValue");d=oh(d);break a}}}d=null}else a:{e=this.Ua;for(c=0;c<e.g.g.length;c++)for(f=e.g.g[c].RowsDom,h=0;h<f.length;h++)for(k=0;3>k;k++)if(l=f[h][k].ContainerCell.getAttribute("CellValue"),l=oh(l),yh(d,l))for(c=0;3>c;c++)if("CommonMonth"==f[h][c].ContainerCell.getAttribute("CellType")){d=f[h][c].ContainerCell.getAttribute("CellValue");
d=oh(d);break a}d=null}c=d}else if("smallscaleyear"==this.aa.calendarType)d=10*Math.floor(f/10),c=a.ctrlKey?Gd(d,e,1):Gd(d+[0,0,2,2,2,5,5,5,8,8][f%10],e,1);else if("largescaleyear"==this.aa.calendarType)if(d=100*Math.floor(f/100),a.ctrlKey)c=Gd(d,e,1);else for(f%=100,h=fa([80,50,20,0]),k=h.next();!k.done;k=h.next())if(k=k.value,f>=k){c=Gd(d+k,e,1);break}c<this.aa.minDate&&(c=new Date(this.aa.minDate.valueOf()));ij(this.aa,c);break;case 35:d=new Date(this.aa.focusDate.valueOf());c=null;f=An(this,d);
e=hk(this.aa)-1;if("monthday"==this.aa.calendarType)a.ctrlKey?(e=mh(d.getFullYear(),d.getMonth()+1),c=new Date(d.getFullYear(),d.getMonth(),e)):c=Ck(this.Ua,d,"CommonDay");else if("yearmonth"==this.aa.calendarType)if(a.ctrlKey)a:{d.getMonth(),e=this.Ua;for(c=0;c<e.g.g.length;c++)for(f=e.g.g[c].RowsDom,h=0;h<f.length;h++)for(k=0;3>k;k++)if(l=f[h][k].ContainerCell.getAttribute("CellValue"),l=oh(l),yh(d,l))for(c=f.length-1;0<=c;c--)for(l=2;0<=l;l--)if("CommonMonth"==f[c][l].ContainerCell.getAttribute("CellType")){d=
f[c][l].ContainerCell.getAttribute("CellValue");c=oh(d);break a}c=null}else a:{e=this.Ua;for(c=0;c<e.g.g.length;c++)for(f=e.g.g[c].RowsDom,h=0;h<f.length;h++)for(k=0;3>k;k++)if(l=f[h][k].ContainerCell.getAttribute("CellValue"),l=oh(l),yh(d,l))for(c=2;0<=c;c--)if("CommonMonth"==f[h][c].ContainerCell.getAttribute("CellType")){d=f[h][c].ContainerCell.getAttribute("CellValue");c=oh(d);break a}c=null}else if("smallscaleyear"==this.aa.calendarType)d=10*Math.floor(f/10),c=a.ctrlKey?Gd(d+9,e,1):Gd(d+[1,1,
4,4,4,7,7,7,9,9][f%10],e,1);else if("largescaleyear"==this.aa.calendarType)if(d=100*Math.floor(f/100),a.ctrlKey)c=Gd(d+99,e,1);else for(f%=100,h=fa([19,49,79,99]),k=h.next();!k.done;k=h.next())if(k=k.value,f<=k){c=Gd(d+k,e,1);break}c>this.aa.maxDate&&(c=new Date(this.aa.maxDate.valueOf()));ij(this.aa,c);break;case 34:Xm(this)||(gn(this,3),d=new Date(this.aa.focusDate.valueOf()),"monthday"==this.aa.calendarType?d=void 0!==a&&null!==a&&a.ctrlKey?Tj(d,1):Zj(d,1):"yearmonth"===this.aa.calendarType?d=
Tj(d,1):"smallscaleyear"===this.aa.calendarType?d=Tj(d,10):"largescaleyear"===this.aa.calendarType&&(d=Tj(d,100)),ij(this.aa,d)&&hn(this,3),this.control.focus());break;case 33:Xm(this)||(gn(this,2),d=new Date(this.aa.focusDate.valueOf()),"monthday"==this.aa.calendarType?d=void 0!==a&&null!==a&&a.ctrlKey?Tj(d,-1):Zj(d,-1):"yearmonth"===this.aa.calendarType?d=Tj(d,-1):"smallscaleyear"===this.aa.calendarType?d=Tj(d,-10):"largescaleyear"===this.aa.calendarType&&(d=Tj(d,-100)),ij(this.aa,d)&&hn(this,2),
this.control.focus());break;case 32:Bn(this);break;case 13:Bn(this);break;default:b=!1}b&&a.preventDefault&&a.preventDefault()};
g.ps=function(a){if(!(this.sa||this.va||this.aa.ta)&&0<this.aa.g.length){for(var b=this.Ua,c=b.aa.g,d={ik:[],pk:null,Fm:null},e=ni(bi.Container),f=oi(),h=0;h<c.length;h++){var k=pi(),l=qi(bi.Cell),m=oi(),n=pi(),q=qi(),u=qi();m.appendChild(n);n.appendChild(u);n.appendChild(q);l.appendChild(m);k.appendChild(l);f.appendChild(k);d.ik[h]={ContentTableCell:l,StateCell:u,TextCell:q}}b.g.u=d;d.pk=e;d.Fm=f;e.appendChild(f);if(c=b.g.u)for(d=c.pk,d.style.left=a.pageX+"px",d.style.top=a.pageY+"px",d=b.aa.g,e=
0;e<d.length;e++)k=c.ik[e],f=k.ContentTableCell,h=k.StateCell,k=k.TextCell,h.className=bi.StateCell,d[e].getIsActive()&&(h.className+=" "+bi.Selected),h=ag("label"),h.textContent=""!==d[e].name?d[e].name:d[e].ut,k.innerHTML="",k.appendChild(h),f.setAttribute("CellType","HolidayGroupsMenu"),f.setAttribute("index",e.toString());Wm(b);document.body.appendChild(b.g.u.pk);this.va=!0;Df(a)}};
g.Cs=function(a){var b=ii(a);if(b)switch(b.getAttribute("CellType")){case "OutterContainer":1==a.touches.length&&2!=this.aa.selectionMode&&(this.Cc=new Cd(a.touches[0].pageX,a.touches[0].pageY),this.La=new Cd(a.touches[0].pageX,a.touches[0].pageY));break;case "ThumbButton":mn(this,a);break;case "TrailingDay":case "CommonDay":case "DisableDay":ln(this,a);break;case "WeekNumber":this.aa.weekNumberSelect&&qn(this,a);break;case "Title":this.aa.weekTitleSelect&&nn(this,a)}};
g.Bs=function(a){var b=ii(a);if(b)switch(b.getAttribute("CellType")){case "OutterContainer":1==a.touches.length&&2!=this.aa.selectionMode&&(this.La=new Cd(a.touches[0].pageX,a.touches[0].pageY),Cf(a));break;case "ThumbButton":Cn(this,a);break;case "TrailingDay":case "CommonDay":case "DisableDay":xn(this,a);break;case "WeekNumber":this.aa.weekNumberSelect&&zn(this,a);break;case "Title":this.aa.weekTitleSelect&&yn(this,a)}};
g.As=function(a){var b=ii(a);if(b)switch(b=b.getAttribute("CellType"),b){case "OutterContainer":if(2!=this.aa.selectionMode&&!Xm(this)){var c=ti(this.Cc,this.La);a=c;if(null!==a){b=0;c="yearmonth"===this.aa.calendarType;var d={monthday:1,yearmonth:10,smallscaleyear:100,largescaleyear:1E3};switch(a){case 2:b=Xj(this.aa,-1,!1);c=!1;break;case 0:b=-d[this.aa.calendarType];c=!0;break;case 3:b=Xj(this.aa,1,!1);c=!1;break;case 1:b=d[this.aa.calendarType],c=!0}gn(this,a);(c?this.aa.scrollYear(b):this.aa.scrollMonth(b))&&
hn(this,a)}this.La=this.Cc=null}break;case "ThumbButton":Dn(this,a);break;case "TrailingDay":case "CommonDay":wn(this,a);c=ti(this.Cc,this.La);mb()&&null===c&&("CommonDay"===b?dn(this,a):cn(this,a));break;case "DisableDay":wn(this,a);break;case "WeekNumber":un(this,a);break;case "Title":tn(this,a)}};g.rs=function(){Ve||sn(this)};g.ts=function(a){mb()||vn(this);0===Ff(a)&&Dn(this,a)};
g.ss=function(a){if(this.sa){var b=this.Ua.g.i,c=b.currentTop;b=b.currentBottom;var d=a.pageY;d>b||d<c?(d>b?(this.fa=1,c=a.clientY-b):(this.fa=-1,c-=a.clientY),this.ta=30>c?300:30<=c&&50>c?200:50<=c&&100>c?100:50):(this.fa=0,this.ta=1500)}Cn(this,a)};function An(a,b){var c=b.getFullYear();b.getMonth()+1<hk(a.aa)&&c--;return c}
function Bn(a){var b=new Date(a.aa.focusDate.valueOf()),c=wj(a.aa,b);0===a.aa.selectionMode?"monthday"===a.aa.calendarType?ik(a.aa,c,b)&&nj(a.aa,b):nj(a.aa,b):("monthday"===a.aa.calendarType?lk(a.aa,b)?xk(a.aa,b):ik(a.aa,c,b)&&lj(a.aa,b):(c=Li(a.aa.selections),"yearmonth"===a.aa.calendarType?mk(a.aa,b)?yk(a.aa,b):uk(a.aa,b):nk(a.aa,b)?zk(a.aa,b):vk(a.aa,b),Ki(c,a.aa.selections)||a.control.fireEvent("SelectedDateChanged")),a.control.updateControl(1));a.aa.autoSwitch&&bn(a)}
function bn(a){var b=a.aa.u,c=b.indexOf(a.aa.Bf());0<c&&a.aa.setCalendarType(b[c-1])}function jn(a){var b=a.aa.u,c=b.indexOf(a.aa.Bf());0<=c&&c<b.length-1&&a.aa.setCalendarType(b[c+1])}function fn(a,b){Xm(a)||(b=Xj(a.aa,-1,b.ctrlKey),gn(a,2),a.aa.scrollMonth(b)&&hn(a,2))}function en(a,b){Xm(a)||(b=Xj(a.aa,1,b.ctrlKey),gn(a,3),a.aa.scrollMonth(b)&&hn(a,3))}function an(a){a.u=!1;a.la=null;a.df=null;a.i=null;a.h=null;a.ca=null;a.s=null;a.ea=null;a.ka=null;a.g=null;a.Xa=!0}
function En(a,b){b instanceof MouseEvent&&(a.Xa=!1,document.addEventListener("mouseup",a.mc))}function ln(a,b){if(rk(a.aa)){a.u=!0;var c=ii(b);a.la=oh(c.getAttribute("CellValue"));b.shiftKey||(a.cb=new Date(a.la.valueOf()));a.g=Li(a.aa.selections);En(a,b)}}
function xn(a,b){var c=ii(b);if(b.touches&&0<b.touches.length&&(Cf(b),c=document.elementFromPoint(b.touches[0].clientX,b.touches[0].clientY),c=ji(c),null===c||!Fn(c)))return;var d=!0;rk(a.aa)&&a.u||(d=!1);if(null!=a.ca||null!=a.s)d=!1;var e=oh(c.getAttribute("CellValue"));a.df==e&&(d=!1);d&&(a.df=e,c=c.getAttribute("CellType"),d=wj(a.aa,e),"TrailingDay"!=c&&"DisableDay"!=c&&ik(a.aa,d,e)&&!xh(a.aa.focusDate,e,!1)&&(a.aa.focusDate=e,a.control.fireEvent("FocusDateChanged")),Ak(a.aa,a.la,a.df,!1,b.ctrlKey),
a.control.updateControl(1))}function Fn(a){if(!a)return!1;a=a.getAttribute("CellType");return["TrailingDay","CommonDay","DisableDay"].includes(a)}
function wn(a,b){if(rk(a.aa)&&a.u&&null==a.ca&&null==a.s){var c=ii(b),d=c.getAttribute("CellType");if(b.changedTouches&&0<b.changedTouches.length&&(Cf(b),c=document.elementFromPoint(b.changedTouches[0].clientX,b.changedTouches[0].clientY),c=ji(c),null===c||!Fn(c))){Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged");an(a);return}var e=oh(c.getAttribute("CellValue"));a.ga=c.getAttribute("CalendarIndex");a.Fa=c.getAttribute("TitleIndex");a.Ga=c.getAttribute("WeekNumberIndex");c=wj(a.aa,
e);if(b.shiftKey)a.cb||(a.cb=new Date(e.valueOf())),a.Bd=e,ik(a.aa,c,e)&&"TrailingDay"!=d&&(a.aa.focusDate=e,a.control.fireEvent("FocusDateChanged")),a.control.fireEvent("ClickDate"),Ak(a.aa,a.cb,a.Bd,!0),Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged"),a.control.updateControl(1);else{if(xh(a.la,e)){if(b.ctrlKey){if("TrailingDay"==d||"CommonDay"==d)"CommonDay"==d&&(a.aa.focusDate=e,a.control.fireEvent("FocusDateChanged")),a.control.fireEvent("ClickDate"),ik(a.aa,c,e)&&(lk(a.aa,
e)?xk(a.aa,e,!0):lj(a.aa,e,!0))}else"TrailingDay"==d?(b=Ie(a.aa.calendarDimensions),1<b&&e>a.aa.focusDate&&(d=new Date(e.valueOf()),d.setMonth(e.getMonth()-b+1),a.aa.focusDate=d,a.control.updateControl(1)),ij(a.aa,e),a.control.fireEvent("ClickDate"),ik(a.aa,c,e)&&(Ii(a.aa.selections),lj(a.aa,e,!0))):"CommonDay"==d&&(ij(a.aa,e),a.control.fireEvent("ClickDate"),Ii(a.aa.selections),ik(a.aa,c,e)&&lj(a.aa,e,!0));a.control.updateControl(1)}Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged")}an(a)}}
function cn(a,b){if(!rk(a.aa)){b=ii(b);b=oh(b.getAttribute("CellValue"));var c=wj(a.aa,b),d=Ie(a.aa.calendarDimensions);if(1<d&&b>a.aa.focusDate){var e=new Date(b.valueOf());e.setMonth(b.getMonth()-d+1);a.aa.focusDate=e}ij(a.aa,b);a.control.fireEvent("ClickDate");0==a.aa.selectionMode?nj(a.aa,b):1==a.aa.selectionMode&&ik(a.aa,c,b)&&(lk(a.aa,b)?xk(a.aa,b):lj(a.aa,b));a.control.updateControl(1)}}
function dn(a,b){if(!rk(a.aa)){var c=ii(b);c=oh(c.getAttribute("CellValue"));ij(a.aa,c);a.control.fireEvent("ClickDate");if(0===a.aa.selectionMode)nj(a.aa,c);else if(1===a.aa.selectionMode){var d=Li(a.aa.selections);lk(a.aa,c)?xk(a.aa,c,!0):lj(a.aa,c,!0);a.control.updateControl(1);Ki(d,a.aa.selections)||a.control.fireEvent("SelectedDateChanged")}Cf(b)}}
function nn(a,b){if(a.aa.weekTitleSelect&&rk(a.aa)){a.u=!0;var c=ii(b);a.i=c.getAttribute("CalendarIndex");a.ca=c.getAttribute("CellValue");a.g=Li(a.aa.selections);b.shiftKey||(a.ga=a.i,a.Fa=a.ca);En(a,b)}}
function yn(a,b){if(a.u&&a.aa.weekTitleSelect&&rk(a.aa)&&null!=a.ca){var c=ii(b);if(b.touches&&0<b.touches.length&&(Cf(b),c=document.elementFromPoint(b.touches[0].clientX,b.touches[0].clientY),c=ji(c),null===c||!c||"Title"!==c.getAttribute("CellType")))return;var d=c.getAttribute("CalendarIndex");c=c.getAttribute("CellValue");if(a.h!=d||a.ea!=c)if(a.h=d,a.ea=c,d=Ym(a.Ua,parseFloat(a.h),a.ea),0!=d.length){d=oh(d[0].getAttribute("CellValue"));c=wj(a.aa,d);ik(a.aa,c,d)&&(a.aa.focusDate=d,a.control.fireEvent("FocusDateChanged"));
d=a.aa;c=parseInt(a.i.toString(),10);var e=parseInt(a.ca.toString(),10),f=parseInt(a.h.toString(),10),h=parseInt(a.ea.toString(),10);b.ctrlKey||Ii(d.selections);c==f?Dk(d,c,e,h,!0):Hk(d,c,e,f,h,!0);a.control.updateControl(1)}}}
function tn(a,b){if(rk(a.aa)&&a.aa.weekTitleSelect&&null!=a.ca){var c=ii(b);if(b.changedTouches&&0<b.changedTouches.length&&(Cf(b),c=document.elementFromPoint(b.changedTouches[0].clientX,b.changedTouches[0].clientY),c=ji(c),null===c||!c||"Title"!==c.getAttribute("CellType"))){Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged");an(a);return}a.h=c.getAttribute("CalendarIndex");a.ea=c.getAttribute("CellValue");a.na=a.h;a.mb=a.ea;if(b.shiftKey){void 0==a.ga&&(a.ga=a.na);void 0==a.Fa&&
(a.Fa=a.mb);c=Ym(a.Ua,parseFloat(a.na),a.mb);if(0==c.length)return;b=a.aa;var d=parseInt(a.ga.toString(),10),e=parseInt(a.Fa.toString(),10),f=parseInt(a.na.toString(),10),h=parseInt(a.mb.toString(),10);Ii(b.selections);d==f?Dk(b,d,e,h,!0):Hk(b,d,e,f,h,!0);Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged");c=oh(c[0].getAttribute("CellValue"));b=wj(a.aa,c);ik(a.aa,b,c)&&(a.aa.focusDate=c,a.control.fireEvent("FocusDateChanged"))}else{if(a.i==a.h&&a.ca==a.ea){c=Ym(a.Ua,parseFloat(a.h),
a.ea);if(0==c.length)return;if(b.ctrlKey)for(d=pk(a.aa,c),b=0;b<c.length;b++)c[b].getAttribute("CellType"),e=oh(c[b].getAttribute("CellValue")),f=wj(a.aa,e),ik(a.aa,f,e)&&(d?xk(a.aa,e,!0):lj(a.aa,e,!0)),0==b&&ik(a.aa,f,e)&&(a.aa.focusDate=e,a.control.fireEvent("FocusDateChanged"));else for(b=oh(c[0].getAttribute("CellValue")),d=wj(a.aa,b),ik(a.aa,d,b)&&(a.aa.focusDate=b,a.control.fireEvent("FocusDateChanged")),Ii(a.aa.selections),b=0;b<c.length;b++)d=oh(c[b].getAttribute("CellValue")),e=wj(a.aa,d),
ik(a.aa,e,d)&&lj(a.aa,d,!0)}Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged")}a.control.updateControl(1);an(a)}}function qn(a,b){if(a.aa.weekNumberSelect&&2==a.aa.selectionMode){var c=ii(b);a.u=!0;a.i=c.getAttribute("CalendarIndex");a.s=c.getAttribute("CellValue");a.g=Li(a.aa.selections);b.shiftKey||(a.ga=a.i,a.Ga=a.s);En(a,b)}}
function zn(a,b){if(a.u&&a.aa.weekNumberSelect&&rk(a.aa)&&null!=a.s){var c=ii(b);if(b.touches&&0<b.touches.length&&(Cf(b),c=document.elementFromPoint(b.touches[0].clientX,b.touches[0].clientY),c=ji(c),null===c||!c||"WeekNumber"!==c.getAttribute("CellType")))return;var d=c.getAttribute("CalendarIndex"),e=c.getAttribute("CellValue");if(a.h!=d||a.ka!=e)if(a.h=d,a.ka=e,d=Zm(a.Ua,parseFloat(a.h),parseFloat(a.ka)),0!=Zm(a.Ua,parseFloat(a.i),parseFloat(a.s)).length&&0!=d.length){c=c.getAttribute("calendar-holiday-type");
ik(a.aa,c)&&(c=mi(d),-1!=c&&(c=oh(d[c].getAttribute("CellValue")),c>=a.aa.minDate&&c<=a.aa.maxDate&&(a.aa.focusDate=c,a.control.fireEvent("FocusDateChanged"))));c=a.aa;d=parseInt(a.i.toString(),10);e=parseInt(a.s.toString(),10);var f=parseInt(a.h.toString(),10),h=parseInt(a.ka.toString(),10);b.ctrlKey||Ii(c.selections);d==f?Dk(c,d,e,h,!1):Hk(c,d,e,f,h,!1);a.control.updateControl(1)}}}
function un(a,b){if(rk(a.aa)&&null!=a.s&&a.aa.weekNumberSelect){var c=ii(b);if(b.changedTouches&&0<b.changedTouches.length&&(Cf(b),c=document.elementFromPoint(b.changedTouches[0].clientX,b.changedTouches[0].clientY),c=ji(c),null===c||!c||"WeekNumber"!==c.getAttribute("CellType"))){Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged");an(a);return}a.h=c.getAttribute("CalendarIndex");a.ka=c.getAttribute("CellValue");a.na=a.h;a.ob=a.ka;if(b.shiftKey){void 0==a.ga&&(a.ga=a.na);void 0==a.Ga&&
(a.Ga=a.ob);var d=Zm(a.Ua,parseFloat(a.na),parseFloat(a.ob));if(0==d.length)return;b=oh(c.getAttribute("CellValue"));c=wj(a.aa,b);ik(a.aa,c,b)&&(c=mi(d),-1!=c&&(d=oh(d[c].getAttribute("CellValue")),d>=a.aa.minDate&&d<=a.aa.maxDate&&(a.aa.focusDate=d,a.control.fireEvent("FocusDateChanged"))));d=a.aa;b=parseInt(a.ga.toString(),10);c=parseInt(a.Ga.toString(),10);var e=parseInt(a.na.toString(),10),f=parseInt(a.ob.toString(),10);Ii(d.selections);b==e?Dk(d,b,c,f,!1):Hk(d,b,c,e,f,!1);Ki(a.aa.selections,
a.g)||a.control.fireEvent("SelectedDateChanged");a.control.updateControl(1)}else{if(a.i==a.h&&a.s==a.ka){d=Zm(a.Ua,parseFloat(a.i),parseFloat(a.s));if(0==d.length)return;if(b.ctrlKey)for(c=pk(a.aa,d),b=0;b<d.length;b++)d[b].getAttribute("CellType"),e=oh(d[b].getAttribute("CellValue")),f=wj(a.aa,e),ik(a.aa,f,e)&&(c?xk(a.aa,e,!0):lj(a.aa,e,!0)),0==b&&ik(a.aa,f,e)&&(a.aa.focusDate=e,a.control.fireEvent("FocusDateChanged"));else{Ii(a.aa.selections);for(b=0;b<d.length;b++)d[b].getAttribute("CellType"),
c=oh(d[b].getAttribute("CellValue")),e=wj(a.aa,c),ik(a.aa,e,c)&&lj(a.aa,c,!0);c=mi(d);-1!=c&&(b=oh(d[c].getAttribute("CellValue")),d=d[c].getAttribute("CellType"),"TrailingDay"==d?(d=Ie(a.aa.calendarDimensions),1<d&&b>a.aa.focusDate&&b.setMonth(b.getMonth()-d+1),ij(a.aa,b)):"CommonDay"==d&&ij(a.aa,b))}a.control.updateControl(1)}Ki(a.aa.selections,a.g)||a.control.fireEvent("SelectedDateChanged")}an(a)}}
function kn(a){var b=fj(),c=a.aa.focusDate;b>=a.aa.minDate&&b<=a.aa.maxDate&&!Xm(a)&&(c=c<b?3:2,gn(a,c),ij(a.aa,b)&&hn(a,c),0==a.aa.selectionMode?nj(a.aa,b,!1,{reason:Gn}):lj(a.aa,b))}function mn(a,b){a.Xb=!0;a.bb=new Date(a.aa.startDate().valueOf());a.Ta=new Date(a.aa.focusDate.valueOf());gn(a,0);a.Hb=new Cd(ki(b),li(b));b.touches&&Cf(b);var c=Qm(a.Ua,b);c.u=function(){Rm(a.Ua,b)};c.show()}
function Cn(a,b){if(a.Xb){a.rb=new Cd(ki(b),li(b));b.touches&&Cf(b);var c=a.aa,d=a.Ta,e=a.Hb,f=a.rb;if(2==c.showNavigator){var h=ck(c);var k=c.control.Ua.g.h;1==c.navigatorOrientation||3==c.navigatorOrientation?(k=k.clientWidth,e=f.x-e.x):(k=k.clientHeight,e=f.y-e.y);k=k-100-14-2;c.showZoomButton&&(k-=40);f=e/k;e=new Date(d.valueOf());"monthday"===c.calendarType?(h=Math.floor(f*h),0!==h&&(e=Zj(e,h),jk(c,e),d=new Date(d.valueOf()),d.setMonth(d.getMonth()+h),gj(c,d))):(h=Math.floor(f*h),0!==h&&(e=Tj(e,
h),jk(c,e),d=new Date(d.valueOf()),d.setFullYear(d.getFullYear()+h),gj(c,d)))}Rm(a.Ua,b);Cm(a.Ua);b.preventDefault()}}
function Dn(a,b){if(1==a.Xb){a.rb=new Cd(ki(b),li(b));b.touches&&(Cf(b),b.stopPropagation());b=!xh(a.bb,a.aa.startDate());var c=!xh(a.Ta,a.aa.focusDate);a.Ua.g.ca.Container.close();var d=a.bb>a.aa.startDate()?0:1;a.Xb=!1;a.bb=null;a.Ta=null;a.Hb=null;a.rb=null;b&&a.control.fireEvent("Scrolled");c&&a.control.fireEvent("FocusDateChanged");gj(a.aa,a.aa.focusDate);a.control.updateControl();b&&hn(a,d)}}
function rn(a,b){if(!(mb()||Ve||a.va||3!==a.aa.showNavigator||a.aa.la||["smallscaleyear","largescaleyear"].includes(a.aa.calendarType))){var c=ii(b),d=c.getAttribute("HeaderIndex")||0;c=c.getAttribute("CellValue");c=oh(c);b=Sm(a.Ua,d,b,c);1<parseFloat(b.getAttribute("RowCount"))&&(document.body.appendChild(b),a.fa=0,a.ta=1500,a.sa=!0,mb()||(a.Ma=window.setTimeout(function(){Hn(a)},a.ta)))}}
function Hn(a){if(0!=a.fa){var b=a.Ua.g.i,c=b.currentIndex,d=null;d="monthday"===a.aa.calendarType?Zj(b.currentFocusDate,a.fa):Tj(b.currentFocusDate,a.fa);d=d<a.aa.minDate?a.aa.minDate:d;d=d>a.aa.maxDate?a.aa.maxDate:d;Tm(a.Ua,c,d,a.fa)}clearTimeout(a.Ma);a.Ma=window.setTimeout(function(){Hn(a)},a.ta)}function vn(a){if(a.sa){var b=a.Ua.g.i.PopupMonthContainer;b&&(document.body.removeChild(b),a.sa=!1,a.fa=0,a.ta=1500,clearTimeout(a.Ma))}}
function sn(a){a.va&&(document.body.removeChild(a.Ua.g.u.pk),a.va=!1)}function Xm(a){return null===a.animation?!1:a.animation.fa}function In(a,b){var c=a.Ua.g,d=[];1<a.aa.calendarDimensions.width*a.aa.calendarDimensions.height&&(0===b||1===b)?d.push(c.la):c.g.forEach(function(e){return d.push(e.Content)});return d}
function gn(a,b){a.Nc=In(a,b).map(function(d){return d.cloneNode(!0)});var c=a.Nc;c.forEach(function(d){return d.addEventListener("mousewheel",a.Bb,{passive:!1})});setTimeout(function(){try{c.forEach(function(d){return d.removeEventListener("mousewheel",a.Bb,{passive:!1})})}catch(d){}},500)}function hn(a,b){if(a.aa.showAnimation){a.vc=In(a,b);var c=a.animation;c.initData(b,a.vc,a.Nc);c.fa||null==c.g||(c.fa=!0,Zk(c),al(c))}}var Gn=0;function Jn(a){var b,c,d,e;a=Object.assign({},a);a.fq=null!==(b=a.fq)&&void 0!==b?b:!0;a.Ol=null!==(c=a.Ol)&&void 0!==c?c:!0;a.mode=null!==(d=a.mode)&&void 0!==d?d:0;a.enabled=null!==(e=a.enabled)&&void 0!==e?e:!0;return a}
function Kn(a){this.s={};var b=this;this.ga=function(c){b.ka&&(c.cancelable&&c.preventDefault(),Ln(b,{x:c.touches[0].pageX,y:c.touches[0].pageY}),document.addEventListener("touchmove",b.fa,{passive:!1}),document.addEventListener("touchend",b.ea))};this.fa=function(c){c.cancelable&&c.preventDefault();b.resize({x:c.touches[0].pageX,y:c.touches[0].pageY})};this.ea=function(){document.removeEventListener("touchmove",b.fa);document.removeEventListener("touchend",b.ea);b.ha("resizeEnd",{oldSize:{width:b.g.width,
height:b.g.height},newSize:{width:b.wa.container.offsetWidth,height:b.wa.container.offsetHeight}})};this.u=function(c){b.la&&(c.preventDefault(),Ln(b,{x:c.pageX,y:c.pageY}),c=A("div",{class:"gcim__resize-mask"}),c.style.cursor={0:"nwse-resize",1:"ns-resize",2:"ew-resize"}[b.wa.mode],document.body.appendChild(c),b.i=c,document.addEventListener("mousemove",b.ca),document.addEventListener("mouseup",b.h),document.addEventListener("mouseleave",b.h))};this.h=function(){b.i&&(b.i.remove(),b.i=null);document.removeEventListener("mousemove",
b.ca);document.removeEventListener("mouseup",b.h);document.removeEventListener("mouseleave",b.h);b.ha("resizeEnd",{oldSize:{width:b.g.width,height:b.g.height},newSize:{width:b.wa.container.offsetWidth,height:b.wa.container.offsetHeight}})};this.ca=function(c){b.resize({x:c.pageX,y:c.pageY})};this.wa=Jn(a);this.zb()}t(Kn,tg);Kn.prototype.zb=function(){kb()&&this.wa.lh.addEventListener("touchstart",this.ga,{passive:!1});this.wa.lh.addEventListener("mousedown",this.u)};
Kn.prototype.destroy=function(){kb()&&this.wa.lh.removeEventListener("touchstart",this.ga);this.wa.lh.removeEventListener("mousedown",this.u)};
Kn.prototype.resize=function(a){var b=a.x;a=a.y;var c=this.g,d=c.width;c=c.height;var e=this.na,f=e.x;e=e.y;[0,2].includes(this.wa.mode)&&(d+=b-f);[0,1].includes(this.wa.mode)&&(c+=a-e);b=Math.max(Math.trunc(d),0);a=Math.max(Math.trunc(c),0);this.wa.Ii?this.wa.Ii(b,a):([0,2].includes(this.wa.mode)&&(this.wa.container.style.width=b+"px"),[0,1].includes(this.wa.mode)&&(this.wa.container.style.height=a+"px"))};
function Ln(a,b){a.na=b;b=a.wa.container.getBoundingClientRect();a.g={width:b.width,height:b.height}}
p.Object.defineProperties(Kn.prototype,{ka:{configurable:!0,enumerable:!0,get:function(){return this.wa.enabled&&this.wa.Ol}},la:{configurable:!0,enumerable:!0,get:function(){return this.wa.enabled&&this.wa.fq}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.wa.enabled},set:function(a){this.wa.enabled=a}},mode:{configurable:!0,enumerable:!0,get:function(){return this.wa.mode},set:function(a){this.wa.mode=a}}});function Mn(a,b){this.qp=this.rp=150;this.op=this.pp=Infinity;xe.g=!0;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();this.ua=a;this.ic=a.style.cssText;this.Hd=a.className;this.ce=a.innerHTML;$d(this.ua,this.componentName,this);this.nn=!1;this.aa=new ej(this);this.Ua=new rm(this);this.ld=new $m(this);a=this.ua;c=a.appendChild;var d=this.Ua;d.g=new Nh;var e=ni("gcim-calendar__outter-container");e.setAttribute("CellType","OutterContainer");e.tabIndex=0;d.g.h=e;d.g.fa=ni("gcim-calendar__resize-corner");
d.g.h.appendChild(d.g.fa);Ik(d);c.call(a,d.g.h);this.updateControl();this.$n();this.tc(b)}g=Mn.prototype;g.destroy=function(){ce(this.ua);this.fi&&this.fi.destroy();this.Ua.dispose();this.Hf();he(this)};g.Hf=function(){this.Hd?this.ua.className=this.Hd:this.ua.removeAttribute("class");this.ic?this.ua.style.cssText=this.ic:this.ua.removeAttribute("style");this.ua.innerHTML=this.ce};g.$n=function(){var a=this;this.fi=new Kn({container:this.Ua.g.h,lh:this.Ua.g.fa,Ii:function(b,c){return a.Af(b,c)}})};
g.Yn=function(){"modern"===window.GCIM.appearanceStyle&&(this.autoSwitch=!0)};
g.tc=function(a){if(F(a))this.Yn();else{G(a.focusDate)||this.setFocusDate(a.focusDate);G(a.maxDate)||this.setMaxDate(a.maxDate);G(a.minDate)||this.setMinDate(a.minDate);G(a.maxSelectionCount)||this.setMaxSelectionCount(a.maxSelectionCount);G(a.selectionMode)||this.setSelectionMode(a.selectionMode);G(a.allowSelection)||this.setAllowSelection(a.allowSelection);G(a.selectedDate)||this.setSelectedDate(a.selectedDate,!0);G(a.emptyRows)||this.setEmptyRows(a.emptyRows);G(a.enabled)||this.setEnabled(a.enabled);
G(a.firstDayOfWeek)||this.setFirstDayOfWeek(a.firstDayOfWeek);G(a.firstFiscalMonth)||this.setFirstFiscalMonth(a.firstFiscalMonth);G(a.firstMonthInView)||this.setFirstMonthInView(a.firstMonthInView);G(a.yearMonthFormat)||this.setYearMonthFormat(a.yearMonthFormat);G(a.weekTitleSelect)||this.setWeekTitleSelect(a.weekTitleSelect);G(a.weekNumberSelect)||this.setWeekNumberSelect(a.weekNumberSelect);G(a.headerFormat)||this.setHeaderFormat(a.headerFormat);G(a.showZoomButton)||this.setShowZoomButton(a.showZoomButton);
G(a.showRokuyou)||this.setShowRokuyou(a.showRokuyou);G(a.showHeader)||this.setShowHeader(a.showHeader);G(a.showToday)||this.setShowToday(a.showToday);G(a.showWeekNumber)||this.setShowWeekNumber(a.showWeekNumber);G(a.showTrailing)||this.setShowTrailing(a.showTrailing);if(!G(a.calendarZoomRange)){var b=this.aa,c=a.calendarZoomRange;Array.isArray(c)?tj(b,c):(c=I(Kg,c),b.ca!==c&&null!==c&&(b.ca=c,b.u="small"===b.ca?["monthday","yearmonth"]:["monthday","yearmonth","smallscaleyear","largescaleyear"]))}G(a.calendarType)||
this.setCalendarType(a.calendarType,!0);G(a.calendarYear)||this.setCalendarYear(a.calendarYear);G(a.visible)||this.setVisible(a.visible);G(a.calendarDimensions)||this.setCalendarDimensions(a.calendarDimensions.width,a.calendarDimensions.height);G(a.showNavigator)||this.setShowNavigator(a.showNavigator);G(a.navigatorOrientation)||this.setNavigatorOrientation(a.navigatorOrientation);G(a.overrideTipText)||this.setOverrideTipText(a.overrideTipText);G(a.scrollRate)||(this.scrollRate=a.scrollRate);this.autoSwitch=
"boolean"===typeof a.autoSwitch?a.autoSwitch:"modern"===window.GCIM.appearanceStyle;G(a.showAnimation)||(this.aa.showAnimation=a.showAnimation);G(a.width)||(this.width=a.width);G(a.height)||(this.height=a.height);G(a.allowResize)||(this.allowResize=a.allowResize);G(a.minWidth)||(this.minWidth=a.minWidth);G(a.minHeight)||(this.minHeight=a.minHeight);G(a.maxWidth)||(this.maxWidth=a.maxWidth);G(a.maxHeight)||(this.maxHeight=a.maxHeight)}};
function Nn(a){var b=On(a),c=b.width;b=b.height;c>=a.minWidth&&c<=a.maxWidth&&b>=a.minHeight&&b<=a.maxHeight||a.Af(c,b)}function Pn(a,b,c){c=Math.max(c,a);return c=Math.min(c,b)}function Qn(a){"string"===typeof a&&(a=parseFloat(a));return"number"!==typeof a?Number.NaN:Math.max(a,0)}function Rn(a){var b=a.Ua.g.h,c=b.parentElement;document.body.appendChild(b);a={width:a.width,height:a.height};c.appendChild(b);return a}
function On(a){var b={width:a.width,height:a.height};if(0>=b.width&&0>=b.height){if(ae(a.getHost())&&a.getHost().classList.contains("gcim-dropdown")){b=a.getHost();var c=b.className;b.classList.remove("gcim-dropdown_close");var d={width:a.width,height:a.height};b.className=c;0>=d.width&&0>=d.height&&(d=Rn(a));a=d}else a=Rn(a);b=a}return b}
g.Af=function(a,b){b=Qn(b);a=Qn(a);isNaN(a)||isNaN(b)||(b=Pn(this.minHeight,this.maxHeight,b),a=Pn(this.minWidth,this.maxWidth,a),this.aa.size={width:a,height:b},rj(this.Ua),this.updateControl())};g.setFocusDate=function(a){this.aa.setFocusDate(a);return this};g.getFocusDate=function(){return this.aa.focusDate};g.setMaxDate=function(a){this.aa.setMaxDate(a)};g.Cf=function(){return this.aa.maxDate};g.setMinDate=function(a){this.aa.setMinDate(a)};g.Df=function(){return this.aa.minDate};
g.setMaxSelectionCount=function(a){this.aa.setMaxSelectionCount(a)};g.setSelectionMode=function(a){this.aa.setSelectionMode(a)};g.Nj=function(){return this.aa.Nj()};g.setSelections=function(a,b){var c;arguments[0]instanceof Array?c=arguments[0]:c=Array.prototype.slice.call(arguments);void 0!=b?this.aa.setSelections(c,b):this.aa.setSelections(c);return this};g.getSelections=function(){for(var a=[],b=this.aa.selections,c=0;c<b.length;c++)a.push(b[c]);return a};g.setAllowSelection=function(a){this.aa.setAllowSelection(a)};
g.Mi=function(){return this.aa.Mi()};g.setSelectedDate=function(a,b){this.aa.setSelectedDate(a,b);return this};g.getSelectedDate=function(){return this.aa.selectedDate};g.setEmptyRows=function(a){this.aa.setEmptyRows(a)};g.Oi=function(){return this.aa.Oi()};g.setEnabled=function(a){this.aa.setEnabled(a);return this};g.getEnabled=function(){return this.aa.enabled};g.setFirstDayOfWeek=function(a){this.aa.setFirstDayOfWeek(a)};g.Pi=function(){return this.aa.Pi()};g.setFirstFiscalMonth=function(a){this.aa.setFirstFiscalMonth(a)};
g.Fn=function(){return this.aa.Fn()};g.setFirstMonthInView=function(a){this.aa.setFirstMonthInView(a)};g.Qi=function(){return this.aa.Qi()};g.setYearMonthFormat=function(a){this.aa.setYearMonthFormat(a)};g.jl=function(){return this.aa.yearMonthFormat};g.setWeekTitleSelect=function(a){this.aa.setWeekTitleSelect(a)};g.setWeekNumberSelect=function(a){this.aa.setWeekNumberSelect(a)};g.setHeaderFormat=function(a){this.aa.setHeaderFormat(a)};g.$k=function(){return this.aa.headerFormat};
g.setShowZoomButton=function(a){this.aa.setShowZoomButton(a)};g.hl=function(){return this.aa.showZoomButton};g.setShowRokuyou=function(a){this.aa.setShowRokuyou(a)};g.Vi=function(){return this.aa.Vi()};g.setShowHeader=function(a){this.aa.setShowHeader(a)};g.dl=function(){return this.aa.showHeader};g.setShowToday=function(a){this.aa.setShowToday(a)};g.el=function(){return this.aa.showToday};g.setShowWeekNumber=function(a){this.aa.setShowWeekNumber(a)};g.gl=function(){return this.aa.showWeekNumber};
g.setShowTrailing=function(a){this.aa.setShowTrailing(a)};g.fl=function(){return this.aa.showTrailing};g.setCalendarType=function(a,b){this.aa.setCalendarType(a,void 0===b?!1:b);return this};g.Bf=function(){return this.aa.Bf()};g.setCalendarYear=function(a){this.aa.setCalendarYear(a)};g.Bn=function(){return this.aa.Bn()};g.setVisible=function(a){this.aa.setVisible(a);return this};g.Yf=function(){return this.aa.visible};g.setCalendarDimensions=function(a,b){this.aa.setCalendarDimensions(a,b)};
g.Xk=function(){return this.aa.calendarDimensions};g.setShowNavigator=function(a){this.aa.setShowNavigator(a)};g.Ui=function(){return this.aa.Ui()};g.setNavigatorOrientation=function(a){this.aa.setNavigatorOrientation(a)};g.Si=function(){return this.aa.Si()};g.setOverrideTipText=function(a){this.aa.setOverrideTipText(a)};g.bl=function(){return this.aa.overrideTipText};g.getHost=function(){return this.ua};g.suspendLayout=function(){this.nn=!0};g.resumeLayout=function(){this.nn=!1;this.updateControl()};
g.updateControl=function(a){!this.nn&&this.aa.visible&&(a=a||2,2==(a&2)?this.Ua.updateControl():1==(a&1)&&xm(this.Ua))};g.scrollMonth=function(a){if("undefined"!==typeof a&&!isNaN(a))return 12===Ie(this.aa.calendarDimensions)?this.aa.scrollYear(a):this.aa.scrollMonth(a),this};g.scrollYear=function(a){if("undefined"!==typeof a&&!isNaN(a))return this.aa.scrollYear(a),this};
g.getWeekday=function(a){a=a.toLowerCase();switch(a){case "sunday":return this.aa.s.sunday();case "monday":return this.aa.s.monday();case "tuesday":return this.aa.s.tuesday();case "wednesday":return this.aa.s.wednesday();case "thursday":return this.aa.s.thursday();case "friday":return this.aa.s.friday();case "saturday":return this.aa.s.saturday()}};g.getHolidayGroupIndex=function(a){return this.aa.getHolidayGroupIndex(a)};g.getHolidayGroup=function(a){return this.aa.getHolidayGroup(a)};
g.getHolidayGroupsCount=function(){return this.aa.getHolidayGroupsCount()};g.addHolidayGroup=function(a){return this.aa.addHolidayGroup(a)};g.insertHolidayGroup=function(a,b){return this.aa.insertHolidayGroup(a,b)};g.removeHolidayGroup=function(a){return this.aa.removeHolidayGroup(a)};g.removeHolidayGroupAt=function(a){return this.aa.removeHolidayGroupAt(a)};g.clearHolidayGroups=function(){this.aa.clearHolidayGroups()};g.sn=function(){this.aa.setSelectedDate(null);this.aa.selections.fb();this.updateControl(1)};
g.fireEvent=function(a,b){ri(this,this.aa.i[a],void 0===b?null:b)};function Sn(a,b){a.Ir=b}g.focus=function(){var a;(null!==(a=this.Ir)&&void 0!==a?a:this.Ua.g.h).focus()};g.onClickDate=function(a){this.aa.i.ClickDate=a};g.onScrolled=function(a){this.aa.i.Scrolled=a};g.onFocusDateChanged=function(a){this.aa.i.FocusDateChanged=a};g.onSelectedDateChanged=function(a){this.aa.i.SelectedDateChanged=a};function Tn(a,b){a.aa.i.SameSelectedDateInternal=b}
p.Object.defineProperties(Mn.prototype,{calendarZoomRange:{configurable:!0,enumerable:!0,get:function(){var a=this.aa;return Array.isArray(a.ca)?[].concat(ha(a.ca)):a.ca}},dimensions:{configurable:!0,enumerable:!0,get:function(){return this.Xk()},set:function(a){this.setCalendarDimensions(a.width,a.height)}},focusDate:{configurable:!0,enumerable:!0,get:function(){return this.getFocusDate()},set:function(a){this.setFocusDate(a)}},selections:{configurable:!0,enumerable:!0,get:function(){return this.getSelections()},
set:function(a){this.setSelections(a,void 0)}},selectedDate:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedDate()},set:function(a){this.setSelectedDate(a)}},holidayGroupsCount:{configurable:!0,enumerable:!0,get:function(){return this.getHolidayGroupsCount()}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this.Cf()},set:function(a){this.setMaxDate(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this.Df()},set:function(a){this.setMinDate(a)}},maxSelectionCount:{configurable:!0,
enumerable:!0,get:function(){return this.aa.maxSelectionCount},set:function(a){this.setMaxSelectionCount(a)}},selectionMode:{configurable:!0,enumerable:!0,get:function(){return this.Nj()},set:function(a){this.setSelectionMode(a)}},allowSelection:{configurable:!0,enumerable:!0,get:function(){return this.Mi()},set:function(a){this.setAllowSelection(a)}},emptyRows:{configurable:!0,enumerable:!0,get:function(){return this.Oi()},set:function(a){this.setEmptyRows(a)}},enabled:{configurable:!0,enumerable:!0,
get:function(){return this.getEnabled()},set:function(a){this.setEnabled(a)}},firstDayOfWeek:{configurable:!0,enumerable:!0,get:function(){return this.Pi()},set:function(a){this.setFirstDayOfWeek(a)}},firstFiscalMonth:{configurable:!0,enumerable:!0,get:function(){return this.Fn()},set:function(a){this.setFirstFiscalMonth(a)}},firstMonthInView:{configurable:!0,enumerable:!0,get:function(){return this.Qi()},set:function(a){this.setFirstMonthInView(a)}},yearMonthFormat:{configurable:!0,enumerable:!0,
get:function(){return this.jl()},set:function(a){this.setYearMonthFormat(a)}},weekTitleSelect:{configurable:!0,enumerable:!0,get:function(){return this.aa.weekTitleSelect},set:function(a){this.setWeekTitleSelect(a)}},weekNumberSelect:{configurable:!0,enumerable:!0,get:function(){return this.aa.weekNumberSelect},set:function(a){this.setWeekNumberSelect(a)}},headerFormat:{configurable:!0,enumerable:!0,get:function(){return this.$k()},set:function(a){this.setHeaderFormat(a)}},showZoomButton:{configurable:!0,
enumerable:!0,get:function(){return this.hl()},set:function(a){this.setShowZoomButton(a)}},showRokuyou:{configurable:!0,enumerable:!0,get:function(){return this.Vi()},set:function(a){this.setShowRokuyou(a)}},showHeader:{configurable:!0,enumerable:!0,get:function(){return this.dl()},set:function(a){this.setShowHeader(a)}},showToday:{configurable:!0,enumerable:!0,get:function(){return this.el()},set:function(a){this.setShowToday(a)}},showWeekNumber:{configurable:!0,enumerable:!0,get:function(){return this.gl()},
set:function(a){this.setShowWeekNumber(a)}},showTrailing:{configurable:!0,enumerable:!0,get:function(){return this.fl()},set:function(a){this.setShowTrailing(a)}},calendarType:{configurable:!0,enumerable:!0,get:function(){return this.Bf()},set:function(a){this.setCalendarType(a)}},calendarYear:{configurable:!0,enumerable:!0,get:function(){return this.Bn()},set:function(a){this.setCalendarYear(a)}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Yf()},set:function(a){this.setVisible(a)}},
showNavigator:{configurable:!0,enumerable:!0,get:function(){return this.Ui()},set:function(a){this.setShowNavigator(a)}},navigatorOrientation:{configurable:!0,enumerable:!0,get:function(){return this.Si()},set:function(a){this.setNavigatorOrientation(a)}},overrideTipText:{configurable:!0,enumerable:!0,get:function(){return this.bl()},set:function(a){this.setOverrideTipText(a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcCalendar"}},scrollRate:{configurable:!0,enumerable:!0,
get:function(){return this.aa.scrollRate},set:function(a){var b=this.aa;a=kg(a);null!==a&&b.scrollRate!==a&&(b.scrollRate=a)}},autoSwitch:{configurable:!0,enumerable:!0,get:function(){return this.aa.autoSwitch},set:function(a){G(a)||(this.aa.autoSwitch=a,this.aa.la=a,ym(this.Ua))}},showAnimation:{configurable:!0,enumerable:!0,get:function(){return this.aa.showAnimation},set:function(a){this.aa.showAnimation=a}},showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.aa.ta=!a}},allowResize:{configurable:!0,
enumerable:!0,get:function(){return this.aa.allowResize},set:function(a){this.aa.allowResize=a}},width:{configurable:!0,enumerable:!0,set:function(a){this.aa.Af?this.Af(a,this.aa.size.height):this.Af(a,On(this).height)},get:function(){var a=parseFloat(window.getComputedStyle(this.Ua.g.h).width);return isNaN(a)?0:a}},height:{configurable:!0,enumerable:!0,set:function(a){this.aa.Af?this.Af(this.aa.size.width,a):this.Af(On(this).width,a)},get:function(){var a=parseFloat(window.getComputedStyle(this.Ua.g.h).height);
return isNaN(a)?0:a}},minWidth:{configurable:!0,enumerable:!0,set:function(a){a=Qn(a);isNaN(a)||(this.rp=a,Nn(this))},get:function(){return this.rp}},minHeight:{configurable:!0,enumerable:!0,set:function(a){a=Qn(a);isNaN(a)||(this.qp=a,Nn(this))},get:function(){return this.qp}},maxWidth:{configurable:!0,enumerable:!0,set:function(a){a=Qn(a);isNaN(a)||(this.pp=a,Nn(this))},get:function(){return this.pp}},maxHeight:{configurable:!0,enumerable:!0,set:function(a){a=Qn(a);isNaN(a)||(this.op=a,Nn(this))},
get:function(){return this.op}}});v("GcCalendar",Mn);function K(a){this.h=a;this.g=[]}function Un(a,b){-1<a.g.indexOf(b)||a.g.push(b)}function Vn(a,b){b?(b=a.g.indexOf(b),0>b||a.g.splice(b,1)):a.g=[]}K.prototype.clear=function(){this.g=[];this.h=null};K.prototype.ha=function(a){var b=this;this.g.forEach(function(c){try{c(b.h,a)}catch(d){}})};function Wn(a,b,c){var d=a.className;b=Xn(a,b);a=b.Ds;b=b.Os;d=A("div",{tabindex:"-1",class:d+" gcim-layout"},A("div",{class:"gcim gcim__scroll-bar"},A("div",{class:"gcim__input-wrapper"})));var e=d.querySelector(".gcim");Wa&&e.setAttribute("browser","firefox");d.classList.contains("combobox-input")||($d(d,c),e.setAttribute("control-type-name",c));c=d.querySelector(".gcim__input-wrapper");F(a.getAttribute("style"))||d.setAttribute("style",a.getAttribute("style"));a.parentNode.insertBefore(d,a);a.style.setProperty("display",
"none","important");c.appendChild(b);c.appendChild(a);this.s=a;this.u=c;this.h=e;this.g=d;this.i=b}function Yn(a,b,c){a["IMJS-CTRL"]||(b=new Wn(a,b,c),Zn.set(a,b));return Zn.get(a)}var Zn=new WeakMap;
function Xn(a,b){var c=A("input",{type:"text",class:"gcim__input",autocomplete:"off"});"INPUT"!==a.tagName&&(c=A("textarea",{class:"gcim__textarea"}));0>b.indexOf(a.tagName.toLowerCase())&&(console.error("Container element must be "+b.join(" or ")+"."),c=A("input",{type:"text",class:"gcim__input",autocomplete:"off"}));a.tabIndex&&(c.tabIndex=a.tabIndex);a.accessKey&&(c.accessKey=a.accessKey,a.accessKey="");c.readOnly=a.readOnly;c.disabled=a.disabled;c.autofocus=a.autofocus;a.accessKey="";a.autofocus=
!1;Array.prototype.forEach.call(a.attributes,function(d){var e=d.nodeName;(/^aria-/.test(e)||"role"===e)&&c.setAttribute(d.nodeName,d.nodeValue)});return{Os:c,Ds:a}};function $n(a){this.ca=a;this.h=[];this.s=new K(this);this.u=new K(this)}$n.prototype.zf=function(a){var b=this,c=ao(this,a);return function(d){c.insertAdjacentElement(a?"beforeend":"afterbegin",d);d=new bo(b,d,!!a);b.h.push(d);b.s.ha(c);co(b);eo(c,a);return d}};function co(a){a.g&&(a.g.style.right=a.ca.ao.offsetWidth+"px",a.ca.ao.style.left=a.g.offsetWidth+"px")}
function eo(a,b){for(var c=b?0:a.children.length-1,d=!1;-1<c&&c<a.children.length;){var e=a.children[c];e.classList.remove("gcim__button_border-radius");e.classList.contains("gcim__hide")||d||(e.classList.add("gcim__button_border-radius"),d=!0);c=b?c+1:c-1}}function ao(a,b){if(b)return a.g||(a.g=fo(b),a.i?a.ca.element.insertBefore(a.g,a.i):a.ca.element.appendChild(a.g)),a.g;a.i||(a.i=fo(b),a.ca.element.appendChild(a.i));return a.i}
function fo(a){var b=document.createElement("div");b.className="gcim__buttons_container";b.setAttribute(a?"left":"right","");return b}function go(a,b){var c=!1;ho(a,b)(function(){return c=!0});return c}function io(a){return a.g?a.g.offsetWidth:0}function ho(a,b){for(var c,d=0;d<a.h.length;d++)if(a.h[d].name==b){c=a.h[d];break}return function(e){c&&e(c)}}function jo(a){return function(b){a.h.forEach(function(c){return b(c)})}}
function ko(a){var b=0;a.h.forEach(function(c){c=parseInt(window.getComputedStyle(c.element).width);"number"===typeof c&&(b+=c)});return b}function lo(a){var b=0;a.h.forEach(function(c){b+=c.element.offsetWidth});return b}function mo(a,b){a=a.h.filter(function(c){return c.isVisible});"left"===b?a=a.filter(function(c){return c.h}):"right"===b&&(a=a.filter(function(c){return!c.h}));return a.length}$n.prototype.dispose=function(){this.h.forEach(function(a){return a.dispose()})};
p.Object.defineProperties($n.prototype,{ea:{configurable:!0,enumerable:!0,get:function(){return this.g}},fa:{configurable:!0,enumerable:!0,get:function(){return this.i}}});function bo(a,b,c){this.g=[];this.element=b;this.ya=a;this.name=this.element.getAttribute("name");this.h=c;this.element.addEventListener("contextmenu",function(d){d.preventDefault()})}
function no(a,b,c,d){function e(f){a.element.hasAttribute("disabled")||c(f)}a.element.addEventListener(b,e,d);a.g.push({Hr:b,$f:e,options:d});return a}bo.prototype.visible=function(a){a?this.element.classList.remove("gcim__hide"):this.element.classList.add("gcim__hide");co(this.ya);a=this.element.parentElement;eo(a,a.hasAttribute("left"));this.ya.u.ha()};bo.prototype.enable=function(a){a?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","")};
bo.prototype.dispose=function(){var a=this;this.g.forEach(function(b){a.element.removeEventListener(b.Hr,b.$f,b.options)});this.g=[]};p.Object.defineProperties(bo.prototype,{isVisible:{configurable:!0,enumerable:!0,get:function(){return!this.element.classList.contains("gcim__hide")}}});function oo(a,b){return po(A("div",{class:"gcim-icon gcim-icon_drop-down"}),a,b)}function po(a,b,c){if(a)return A("div",{name:b,class:"gcim__side-button "+c+" gcim__button_border"},a)}function qo(a){return A("div",{name:a,class:"gcim__side-button"},A("div",{class:"gcim-icon gcim__clear-button"}))}function ro(a){return A("div",{name:a,class:"gcim__side-button"},A("div",{class:"gcim-icon gcim__help-button"}))};var so={None:"none",SlideDown:"slidedown",SlideUp:"slideup",Popup:"popup",Expand:"expand"};v("DropDownAnimationType",so);function to(a,b,c){this.i=this.s=this.g=null;this.h=function(){};this.g=a;this.s=b;c&&(this.animationType=c)}function uo(a,b){a.g.classList.remove("gcim-dropdown_close");var c=vo(a,!1);if(c){var d=function(){a.g.classList.remove(c);a.g.classList.add("gcim-dropdown_close");a.g.removeEventListener("animationend",d);a.h=function(){};b&&b()};a.h=d;a.g.addEventListener("animationend",d);a.g.classList.add(c)}else a.g.classList.add("gcim-dropdown_close"),b&&b()}
function wo(a){var b=vo(a,!0);if(b){var c=function(){a.g.classList.remove(b);a.g.removeEventListener("animationend",c);a.h=function(){}};a.h=c;a.g.addEventListener("animationend",c);a.g.classList.add(b)}}function vo(a,b){var c=a.g;var d=a.s.getBoundingClientRect();c=c.getBoundingClientRect().top>=d.top+(d.bottom-d.top)/2?xo:yo;a=zo[a.animationType];var e;a?e=Ao+a+((b?"-open":"-close")+(c===yo?"-up":"-down")):e=null;return e}
p.Object.defineProperties(to.prototype,{animationType:{configurable:!0,enumerable:!0,get:function(){var a;return null!==(a=this.i)&&void 0!==a?a:to.animationType},set:function(a){a=I(so,a);null!==a&&(this.i=a)}}});p.Object.defineProperties(to,{animationType:{configurable:!0,enumerable:!0,get:function(){return Bo?Co:"modern"===window.GCIM.appearanceStyle?"expand":"none"},set:function(a){a=I(so,a);null!==a&&(Co=a,Bo=!0)}}});
var Co="none",Bo=!1,Ao="gcim-dropdown-animation__",yo=0,xo=1,zo={slidedown:"slideDown",popup:"popup",slideup:"slideUp",expand:"expand"};function Do(a,b){this.da=a;this.Rk=xe.appendDropDownToBody?new Eo(a,this):new Fo(a,this);Go(this,b.template);this.Fe=new to(this.getElement(),this.da.getLayoutElement(),b.animation);this.Zc.addEventListener("mousedown",function(c){c.preventDefault()});Ho.push(this);Io();this.da.rn()?Jo(this):Ko(this);Lo(this);this.initEvent()}
function Go(a,b){var c=a.Rk.getDropdownContainer(),d=A("div",{class:"gcim-dropdown","data-nested":"true"});(b=b?"string"===typeof b?Pd(b):b:null)&&d.appendChild(b);c.appendChild(d);a.Zc=d;a.np=b}g=Do.prototype;g.initEvent=function(){this.cf=new K(this);this.Uf=new K(this);this.Pk=new K(this);this.Ok=new K(this);this.hn=new K(this);this.gn=new K(this);Mo(this.Rk)};
g.Nb=function(){var a,b,c,d,e,f;null===(a=this.cf)||void 0===a?void 0:a.clear();null===(b=this.Uf)||void 0===b?void 0:b.clear();null===(c=this.Pk)||void 0===c?void 0:c.clear();null===(d=this.Ok)||void 0===d?void 0:d.clear();null===(e=this.hn)||void 0===e?void 0:e.clear();null===(f=this.gn)||void 0===f?void 0:f.clear();var h;this.Qf&&(null===(h=this.da)||void 0===h?void 0:h.getLayoutElement().removeEventListener("focusout",this.Qf),this.Qf=null)};
g.dispose=function(){var a,b,c=Ho.indexOf(this);-1<c&&Ho.splice(c,1);this.Nb();null===(a=this.Rk)||void 0===a?void 0:a.dispose();null===(b=this.Zc)||void 0===b?void 0:b.remove()};g.open=function(a){a=void 0===a?!0:a;if(!this.Ke){var b={cancel:!1};this.Pk.ha(b);if(!0!==b.cancel)return this.Fe.h(),jd(this.Zc,"gcim-dropdown_close"),this.Ke=!0,this.cf.ha(),this.updateDropDownPosition(),this.hn.ha(),a&&wo(this.Fe),this}};
g.close=function(a){var b=this;a=void 0===a?!0:a;if(this.Ke){var c={cancel:!1};this.Ok.ha(c);if(!0!==c.cancel)return this.gn.ha(),this.Fe.h(),Lo(this),a?uo(this.Fe,function(){return b.Uf.ha()}):this.Uf.ha(),this}};function Lo(a){E(a.Zc,"gcim-dropdown_close");a.Ke=!1}g.toggleOpen=function(a){a=void 0===a?!0:a;this.Ke?this.close(a):this.open(a);return this};g.isOpened=function(){return this.Ke};g.isClosed=function(){return!this.Ke};g.onOpening=function(a){Un(this.Pk,a)};
g.onOpen=function(a){Un(this.cf,a)};g.onOpened=function(a){Un(this.hn,a)};g.removeOpen=function(a){Vn(this.cf,a)};g.removeOpening=function(a){Vn(this.Pk,a)};g.onClosing=function(a){Un(this.Ok,a)};g.onClose=function(a){Un(this.Uf,a)};g.onBeforeClosed=function(a){Un(this.gn,a)};g.removeClose=function(a){Vn(this.Uf,a)};g.removeClosing=function(a){Vn(this.Ok,a)};g.getElement=function(){return this.Zc};
g.setWidth=function(a){this.da.bh()?this.da.pe().setWidth(a):("number"===typeof a&&(a+="px"),this.Zc.style.width=a)};g.getWidth=function(){return this.da.bh()?this.da.pe().getWidth():this.Zc.style.width};g.setHeight=function(a){this.da.bh()?this.da.pe().setHeight(a):("number"===typeof a&&(a+="px"),this.Zc.style.height=a)};g.Yg=function(){return this.da.bh()?this.da.pe().Yg():this.Zc.style.height};g.setInnerElement=function(a){this.Zc.appendChild(a);this.np=a};g.getValue=function(){return this.da.getValue()};
g.setValue=function(a){this.da.setValue(a)};g.Wf=function(){this.isOpened()&&this.close()};function Jo(a){a.da.up(function(){return a.Wf()})}function Ko(a){a.Qf=function(b){Od(a.da.getLayoutElement(),b.relatedTarget)||a.Wf()}.bind(a);a.da.getLayoutElement().addEventListener("focusout",a.Qf)}g.updateDropDownPosition=function(){this.Rk.updateDropdownPosition()};
p.Object.defineProperties(Do.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.getElement()}},width:{configurable:!0,enumerable:!0,get:function(){return this.getWidth()},set:function(a){this.setWidth(a)}},height:{configurable:!0,enumerable:!0,get:function(){return this.Yg()},set:function(a){this.setHeight(a)}},innerElement:{configurable:!0,enumerable:!0,get:function(){return this.np},set:function(a){this.setInnerElement(a)}},opened:{configurable:!0,enumerable:!0,get:function(){return this.isOpened()}},
closed:{configurable:!0,enumerable:!0,get:function(){return this.isClosed()}},animationType:{configurable:!0,enumerable:!0,get:function(){return this.Fe.animationType},set:function(a){a&&(this.Fe.animationType=a)}}});
p.Object.defineProperties(Do,{animationType:{configurable:!0,enumerable:!0,get:function(){return to.animationType},set:function(a){to.animationType=a}},appendDropDownToBody:{configurable:!0,enumerable:!0,get:function(){return xe.appendDropDownToBody},set:function(a){xe.appendDropDownToBody=a}},inputOffset:{configurable:!0,enumerable:!0,get:function(){return xe.inputOffset},set:function(a){xe.inputOffset=a}}});
function No(a,b){Do.call(this,a,{inputEl:b.inputEl,template:Oo,animation:"none"});this.Zc.style.overflow="visible";this.Zc.style.zIndex="auto";this.Zc.style.position="static"}t(No,Do);No.prototype.updateDropDownPosition=function(){};No.prototype.setInnerElement=function(a){var b=this.getElement().querySelector(".gcim__modalbox-content");b.innerHTML="";b.appendChild(a)};No.prototype.Wf=function(){};p.Object.defineProperties(No.prototype,{animationType:{configurable:!0,enumerable:!0,set:function(){}}});
var Oo='<div class="gcim__modalbox">\n    <div class="gcim__modalbox-content"> </div>\n</div>';function Io(){function a(){for(var b=fa(Ho),c=b.next();!c.done;c=b.next())c=c.value,c.isOpened()&&c.updateDropDownPosition()}Po||(window.addEventListener("resize",a),window.addEventListener("scroll",a),Po=!0)}var Ho=[],Po=!1;function Qo(a,b){this.da=a;this.g=b}
function Mo(a){var b=a.g.getElement();a.h=new ResizeObserver(function(c){c=fa(c);for(var d=c.next();!d.done;d=c.next())d=d.value,(0<d.contentRect.width||0<d.contentRect.height)&&a.updateDropdownPosition()});b&&a.h.observe(b)}Qo.prototype.dispose=function(){this.h&&this.h.disconnect()};
function Ro(a,b){var c=a.da.getLayoutElement();a=a.da.getContainer();return a instanceof HTMLElement?0===b?c.getBoundingClientRect().left-a.getBoundingClientRect().left:c.getBoundingClientRect().top-a.getBoundingClientRect().top:0===b?c.getBoundingClientRect().left:c.getBoundingClientRect().top}function So(a,b){a=a.da.getContainer();if(a instanceof HTMLElement)return 0===b?a.clientWidth:a.clientHeight;a=fe();return 0===b?a.clientWidth:a.clientHeight}
function To(a,b,c,d){return 0<=a&&a+c<=d?0:c>d?-a:0>a&&-a>=b||0<a&&a>=d?0:0>a?-a:-(a+c-d)}function Fo(){Qo.apply(this,arguments)}t(Fo,Qo);Fo.prototype.getDropdownContainer=function(){return this.da.getLayoutElement()};
Fo.prototype.updateDropdownPosition=function(){var a=Ro(this,1),b=this.da.getLayoutElement().offsetHeight,c=this.g.getElement().offsetHeight+Do.inputOffset,d=Ro(this,0),e=this.da.getLayoutElement().offsetWidth,f=this.g.getElement().offsetWidth;a+b+c>So(this,1)&&a>=c?(jd(this.g.getElement(),"gcim-dropdown-down"),E(this.g.getElement(),"gcim-dropdown-up"),this.g.getElement().style.marginBottom=Do.inputOffset+"px"):(jd(this.g.getElement(),"gcim-dropdown-up"),E(this.g.getElement(),"gcim-dropdown-down"),
this.g.getElement().style.marginTop=Do.inputOffset+"px");a=So(this,0);this.g.getElement().style.left=To(d,e,f,a)+"px"};function Eo(){Qo.apply(this,arguments)}t(Eo,Qo);Eo.prototype.getDropdownContainer=function(){var a=this.da;if(null===a.u){var b=document.querySelector(".gcim__popup-container");b||(b=document.createElement("div"),b.classList.add("gcim__popup-container"),document.body.appendChild(b));a.u=b}return a.u};Eo.prototype.updateDropdownPosition=function(){bp(this);bp(this)};
function bp(a){var b=Ro(a,1),c=a.da.getLayoutElement().offsetHeight,d=a.g.getElement().offsetHeight+Do.inputOffset,e=Ro(a,0),f=a.da.getLayoutElement().offsetWidth,h=a.g.getElement().offsetWidth;b=b+c+d>So(a,1)&&b>=d?b+window.scrollY-d:b+window.scrollY+c+Do.inputOffset;c=So(a,0);e=To(e,f,h,c)+e+window.scrollX;a.g.getElement().style.inset=b+"px auto auto "+e+"px"}v("GcDropDown",Do);function cp(a){this.i=function(){};this.h=function(){};this.ea=a.yr;dp(this,a);this.onSpinUp(a.Ks);this.onSpinDown(a.Js);this.u=a.delay;this.ca=a.interval}
function dp(a,b){b=a.ea.zf(b.ds)(A("div",{name:b.name,class:"gcim__side-button gcim__spin-button-wrapper gcim__button_border"},A("div",{"data-spin-button-type":"up",class:"gcim__spin-button gcim__spin-button__up"},A("div",{className:"gcim-icon gcim-icon_spin-up"})),A("div",{"data-spin-button-type":"down",class:"gcim__spin-button gcim__spin-button__down"},A("div",{className:"gcim-icon  gcim-icon_spin-down"}))));mb()&&"ontouchstart"in window?no(no(no(b,"touchstart",function(c){return ep(a,c)},{passive:!1}),
"touchcancel",function(){return fp(a)}),"touchend",function(){return fp(a)}):no(no(no(b,"mousedown",function(c){return ep(a,c)}),"mouseup",function(){return fp(a)}),"mouseleave",function(){return fp(a)})}
function ep(a,b){var c;b=b||window.event;"which"in b?c=3==b.which:"button"in b&&(c=2==b.button);if(!c){var d=b.target;for(c="";!c&&d.parentElement;)c=d.dataset.spinButtonType,d=d.parentElement;d=null;switch(c){case "down":d=gp;break;case "up":d=hp}switch(d){case hp:ip(a);break;case gp:jp(a)}!1!==b.cancelable&&b.preventDefault()}}function ip(a){clearTimeout(a.s);a.i();a.s=window.setTimeout(function(){kp(a)},a.u)}function jp(a){clearTimeout(a.s);a.h();a.s=window.setTimeout(function(){lp(a)},a.u)}
function fp(a){clearTimeout(a.s);clearInterval(a.g)}function kp(a){clearInterval(a.g);a.i();a.g=window.setInterval(function(){a.i()},a.ca)}function lp(a){clearInterval(a.g);a.h();a.g=window.setInterval(function(){a.h()},a.ca)}cp.prototype.onSpinUp=function(a){a&&(this.i=a.bind(this))};cp.prototype.onSpinDown=function(a){a&&(this.h=a.bind(this))};var hp=1,gp=2;function mp(){this.ca=1;this.h=2;this.Symbol=4;this.s=5;this.u=6;this.g=9;this.i=10};function np(){this.Zb="\x00";this.bc="\uffff";this.va="\t";this.g="\x00\u0080\u0100\u0180\u0250\u02b0\u0300\u0370\u0400\u0530\u0590\u0600\u0700\u0780\u0900\u0980\u0a00\u0a80\u0b00\u0b80\u0c00\u0c80\u0d00\u0d80\u0e00\u0e80\u0f00\u1000\u10a0\u1100\u1200\u13a0\u1400\u1680\u16a0\u1780\u1800\u1e00\u1f00\u2000\u2070\u20a0\u20d0\u2100\u2150\u2190\u2200\u2300\u2400\u2440\u2460\u2500\u2580\u25a0\u2600\u2700\u2800\u2e80\u2f00\u2ff0\u3000\u3040\u30a0\u3100\u3130\u3190\u31a0\u3200\u3300\u3400\u4e00\ua000\ua490\uac00\uf900\ufb00\ufb50\ufe20\ufe30\ufe50\ufe70\uff00\ufff0".split("");
this.i="BASIC_LATIN LATIN_1_SUPPLEMENT LATIN_EXTENDED_A LATIN_EXTENDED_B IPA_EXTENSIONS SPACING_MODIFIER_LETTERS COMBINING_DIACRITICAL_MARKS GREEK CYRILLIC ARMENIAN HEBREW ARABIC SYRIAC THAANA DEVANAGARI BENGALI GURMUKHI GUJARATI ORIYA TAMIL TELUGU KANNADA MALAYALAM SINHALA THAI LAO TIBETAN MYANMAR GEORGIAN HANGUL_JAMO ETHIOPIC CHEROKEE UNIFIED_CANADIAN_ABORIGINAL_SYLLABIC OGHAM RUNIC KUMER MONGOLIAN LATIN_EXTENDED_ADDITIONAL GREEK_EXTENDED GENERAL_PUNCTUATION SUPERSCRIPTS_AND_SUBSCRIPTS CURRENCY_SYMBOLS COMBINING_MARKS_FOR_SYMBOLS LETTERLIKE_SYMBOLS NUMBER_FORMS ARROWS MATHEMATICAL_OPERATORS MISCELLANEOUS_TECHNICAL CONTROL_PICTURES OPTICAL_CHARACTER_RECOGNITION ENCLOSED_ALPHANUMERICS BOX_DRAWING BLOCK_ELEMENTS GEOMETRIC_SHAPES MISCELLANEOUS_SYMBOLS DINGBATS BRAILLE_PATTERNS CJK_RADICALS_SUPPLEMENT KANGXI_RADICALS IDEOGRAPHIC_DESCRIPTION_CHARACTERS CJK_SYMBOLS_AND_PUNCTUATION HIRAGANA KATAKANA BOPOMOFO HANGUL_COMPATIBILITY_JAMO KANBUN BOPOMOFO_EXTENDED ENCLOSED_CJK_LETTERS_AND_MONTHS CJK_COMPATIBILITY CJK_UNIFIED_IDEOGRAPHS_EXTENSION CJK_UNIFIED_IDEOGRAPHS YI_SYLLABLES YI_RADICALS HANGUL_SYLLABLES CJK_COMPATIBILITY_IDEOGRAPHS ALPHABETIC_PRESENTATION_FORMS ARABIC_PRESENTATION_FORMS_A COMBINING_HALF_MARKS CJK_COMPATIBILITY_FORMS SMALL_FORM_VARIANTS ARABIC_PRESENTATION_FORMS_B HALFWIDTH_AND_FULLWIDTH_FORMS SPECIALS".split(" ");
this.fa="\uff01\uff10\uff1a\uff21\uff3b\uff41\uff5b\uff61\uff65\uffa0\uffe0\uffe8".split("");this.h=new mp;this.sa=[this.h.Symbol|32768,this.h.h|32768,this.h.Symbol|32768,32775,this.h.Symbol|32768,32776,this.h.Symbol|32768,11,this.h.g,12,this.h.Symbol|32768,this.h.Symbol];this.ta="\u30fb\u30f2\u30a1\u30a3\u30a5\u30a7\u30a9\u30e3\u30e5\u30e7\u30c3\u30fc\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f3\u3099\u309a".split("");
this.na="\uff67\uff71\uff68\uff72\uff69\uff73\uff6a\uff74\uff6b\uff75\uff76\uff76\uff77\uff77\uff78\uff78\uff79\uff79\uff7a\uff7a\uff7b\uff7b\uff7c\uff7c\uff7d\uff7d\uff7e\uff7e\uff7f\uff7f\uff80\uff80\uff81\uff81\uff6f\uff82\uff82\uff83\uff83\uff84\uff84\uff85\uff86\uff87\uff88\uff89\uff8a\uff8a\uff8a\uff8b\uff8b\uff8b\uff8c\uff8c\uff8c\uff8d\uff8d\uff8d\uff8e\uff8e\uff8e\uff8f\uff90\uff91\uff92\uff93\uff6c\uff94\uff6d\uff95\uff6e\uff96\uff97\uff98\uff99\uff9a\uff9b\uff9c\uff9c\uff68\uff6a\uff66\uff9d\uff73\uff76\uff79\uff9c\uff68\uff6a\uff66\uff65\uff70".split("");
this.ca=[0,0,0,0,0,0,0,0,0,0,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,0,-1,1,-1,1,-1,1,0,0,0,0,0,-3,1,2,-3,1,2,-3,1,2,-3,1,2,-3,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0];this.ea=["\u2018","\u2019","\u201c","\u201d"];this.ga=["\u30fc"];this.la="\u3000\u3001\u3002\u300c\u300d\u201c\u201d\u2018\u2019\u309b\u309c\uffe5".split("");this.ka=" \uff64\uff61\uff62\uff63\"\"''\uff9e\uff9f\u00a5".split("");this.s=["\uffe1","\uffe0"];this.u=["\u00a3","\u00a2"]};function op(a){a=Ed(a);for(var b="",c="",d=0;d<a.length;d++){for(var e=a.charCodeAt(d).toString(16);2>e.length;)e="0"+e;c+=e;0!==d%2&&(b+=String.fromCharCode(parseInt(c,16)),c="")}a={};b=String(b).split("");d=c=b[0];e=[c];for(var f=256,h,k=1;k<b.length;k++){var l=b[k].charCodeAt(0);256>l?h=b[k]:h=a[l]?a[l]:d+c;e.push(h);c=h.charAt(0);a[f]=d+c;f++;d=h}return e.join("")};function pp(a,b){var c=0,d=qp(a,b);if("\u007f"==b||"\x00"<=b&&"\u001f">=b||"\u0080"<=b&&"\u009f">=b)return a.h.ca;if("A"<=b&&"Z">=b)return 7;if("a"<=b&&"z">=b)return 8;if("0"<=b&&"9">=b)return a.h.h;if(rp(b)||sp(b))c=a.h.Symbol;if(8216==b.charCodeAt(0)||8217==b.charCodeAt(0)||8220==b.charCodeAt(0)||8221==b.charCodeAt(0))c=a.h.s;12288==b.charCodeAt(0)&&(c=a.h.u);switch(a.g.i[d]){case "HALFWIDTH_AND_FULLWIDTH_FORMS":return tp(a,b);case "KATAKANA":return a.h.g|32768;case "HIRAGANA":return a.h.i|32768}up(a,
d,b)&&(c|=32768);return c}function vp(a,b){a=a.g.i[qp(a,b)];return"KATAKANA"==a||"CJK_SYMBOLS_AND_PUNCTUATION"==a||"HALFWIDTH_AND_FULLWIDTH_FORMS"==a||"BASIC_LATIN"==a&&" "<=b}function rp(a){for(var b=0;b<wp.length;b++)if(a==wp[b])return!0;return!1}function sp(a){for(var b=0;b<xp.length;b++)if(a==xp[b])return!0;return!1}function yp(a,b){if(rp(b))return!0;if(sp(b))return!1;var c=qp(a,b),d=up(a,c,b);"HALFWIDTH_AND_FULLWIDTH_FORMS"==a.g.i[c]&&(d=32768==(tp(a,b)&32768));return d}
function zp(a){return null!=a&&55296<=a.charCodeAt(0)&&57343>=a.charCodeAt(0)}function Ap(a,b){return(pp(a,b)&-32769)==a.h.g}function Bp(a,b){return(pp(a,b)&-32769)==a.h.i||a.g.ga[0]==b}function Cp(a,b){return(pp(a,b)&-32769)==a.h.h}function Dp(a,b){return 8==(pp(a,b)&-32769)}function Ep(a,b){return 7==(pp(a,b)&-32769)||Dp(a,b)}function Fp(a){return-1!=Gp.search(a)}function Hp(a){return-1!=Ip.search(a)||Fp(a)}function Jp(a){var b=Gp.search(a);return-1==b?a:Ip.substr(b,1)}
function Kp(a){var b=Ip.search(a);return b>=Ip.length-4&&b<Ip.length?a:-1==b?a:Gp.substr(b,1)}
function Lp(a,b){var c={};c.text=b;c.ak=!1;if(0==b.length)return c;var d=C(b,0,1);if(a.g.u.includes(d))d=Mp(a,d,!0);else if(vp(a,d)){if(d<a.g.g[1]){if(" "==d)return c.text="\u3000",c;c.text=String.fromCharCode(d.charCodeAt(0)-33+(a.g.g[81].charCodeAt(0)+1));return c}if((tp(a,d)&a.h.g)==a.h.g){if(65381>d.charCodeAt(0))return a=Np(a,d,!0),c.text=0!=a?a:d,c;d=a.g.ta[d.charCodeAt(0)-65381];if(2>b.length)return c.text=d,c;b=b.charCodeAt(1)-65437;if(1==b||2==b)c.ak=!0,a=a.g.ca[d.charCodeAt(0)-(a.g.g[62].charCodeAt(0)+
1)],0!=a&&((Math.abs(a)&2)==b&&(d=String.fromCharCode(d.charCodeAt(0)+1)),d=String.fromCharCode(d.charCodeAt(0)+1));1==b&&"\u30a6"==d&&(d="\u30f4")}}c.text=d;return c}function Mp(a,b,c){return c&&a.g.u.includes(b)?a.g.s[a.g.u.indexOf(b)]:!c&&a.g.s.includes(b)?a.g.u[a.g.s.indexOf(b)]:b}
function Op(a,b){var c=pp(a,b),d=vp(a,b);if(a.g.s.includes(b))return Mp(a,b,!1);if(32768==(c&32768))switch(c&-32769){case a.h.s:case 7:case 8:case a.h.Symbol:case a.h.h:case 3:c=Np(a,b,!1);0!=c?b=c:d&&(b=String.fromCharCode(b.charCodeAt(0)-(a.g.g[81].charCodeAt(0)+1)+33));break;case a.h.g:d=b.charCodeAt(0)-(a.g.g[62].charCodeAt(0)+1);if(0>d||91<d)break;b=a.g.na[d];a=a.g.ca[d];0<a&&(b+=String.fromCharCode(1==a?65438:65439));break;case a.h.u:b=" "}return b}
function Pp(a,b){if(pp(a,b)!=(a.h.i|32768))return b;var c=Np(a,b,!1);return 0!=c?c:String.fromCharCode(b.charCodeAt(0)-a.g.g[61].charCodeAt(0)+a.g.g[62].charCodeAt(0))}function Qp(a,b){if(!Ap(a,b))return b;yp(a,b)||(b=Lp(a,b).text);return pp(a,b)!=(a.h.g|32768)||"\u30f7"<=b&&"\u30ff">=b?b:"\u30f5"==b?"\u304b":"\u30f6"==b?"\u3051":String.fromCharCode(b.charCodeAt(0)+a.g.g[61].charCodeAt(0)-a.g.g[62].charCodeAt(0))}
function qp(a,b){for(var c=0,d=83,e=d>>1;1<d-c;)b>=a.g.g[e]?c=e:d=e,e=d+c>>1;return e}function tp(a,b){for(var c=0,d=a.g.fa.length,e=d>>1;1<d-c;)b>=a.g.fa[e]?c=e:d=e,e=d+c>>1;return a.g.sa[e]}
function up(a,b,c){switch(a.g.i[b]){case "CJK_COMPATIBILITY":case "CJK_COMPATIBILITY_FORMS":case "CJK_COMPATIBILITY_IDEOGRAPHS":case "CJK_RADICALS_SUPPLEMENT":case "CJK_SYMBOLS_AND_PUNCTUATION":case "CJK_UNIFIED_IDEOGRAPHS":case "CJK_UNIFIED_IDEOGRAPHS_EXTENSION":case "HALFWIDTH_AND_FULLWIDTH_FORMS":case "BOPOMOFO":case "BOPOMOFO_EXTENDED":case "HIRAGANA":case "KATAKANA":case "KANBUN":case "HANGUL_COMPATIBILITY_JAMO":case "HANGUL_JAMO":case "HANGUL_SYLLABLES":return!0;default:for(b=0;b<a.g.ea.length;b++)if(c==
a.g.ea[b])return!0;if(255<c.charCodeAt(0)||8216==c.charCodeAt(0)||8217==c.charCodeAt(0)||8220==c.charCodeAt(0)||8221==c.charCodeAt(0))return!0}return!1}function Np(a,b,c){1==c?(c=a.g.ka,a=a.g.la):(c=a.g.la,a=a.g.ka);for(var d=-1,e=0;e<c.length;){if(c[e]==b){d=e;break}e++}return-1!=d&&e<a.length?a[e]:!1}
var L=new function(){this.g=new np;this.h=new mp},wp="\u3001\u3002\uff0c\uff0e\u30fb\uff1a\uff1b\uff1f\uff01\u309b\u309c\u00b4\uff40\u00a8\uff3e\uffe3\uff3f\u30fd\u30fe\u309d\u309e\u3003\u4edd\u3005\u3006\u3007\u30fc\u2014\u2010\uff0f\u301c\u2016\uff5c\u2026\u2025\u2018\u2019\u201c\u201d\uff08\uff09\u3014\u3015\uff3b\uff3d\uff5b\uff5d\u3008\u3009\u300a\u300b\u300c\u300d\u300e\u300f\u3010\u3011\uff0b\u2212\u00b1\u00d7\u00f7\uff1d\u2260\uff1c\uff1e\u2266\u2267\u221e\u2234\u2642\u2640\u00b0\u2032\u2033\u2103\uffe5\uff04\uff05\uff03\uff06\uff0a\uff20\u00a7\u2606\u2605\u25cb\u25cf\u25ce\u25c7\u25c6\u25a1\u25a0\u25b3\u25b2\u25bd\u25bc\u203b\u3012\u2192\u2190\u2191\u2193\u3013\uff07\uff02\uff0d\u3033\u3034\u3035\u303b\u303c\u30ff\u309f\u2208\u220b\u2286\u2287\u2282\u2283\u222a\u2229\u2284\u2285\u228a\u228b\u2209\u2205\u2305\u2306\u2227\u2228\u00ac\u21d2\u21d4\u2200\u2203\u2295\u2296\u2297\u2225\u2226\u2985\u2986\u3018\u3019\u3016\u3017\u2220\u22a5\u2312\u2202\u2207\u2261\u2252\u226a\u226b\u221a\u223d\u221d\u2235\u222b\u222c\u2262\u2243\u2245\u2248\u2276\u2277\u2194\u212b\u2030\u266f\u266d\u266a\u2020\u2021\u00b6\u266e\u266b\u266c\u2669\u25ef\uff3c\uff5e\uffe0\uffe1\uffe2\u2015".split(""),xp=
"\\~!\"#$%&'()*+,-./:;<=>?@[]^_`{|}\uff61\uff62\uff63\uff64\uff65\u00a1\u00a4\u00a5\u00a2\u00a3".split(""),Gp="\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\u30f5\u30f6\u3095\u3096",Ip="\u3042\u3044\u3046\u3048\u304a\u3064\u3084\u3086\u3088\u308f\u30a2\u30a4\u30a6\u30a8\u30aa\u30c4\u30e4\u30e6\u30e8\u30ef\uff71\uff72\uff73\uff74\uff75\uff94\uff95\uff96\uff82\u30ab\u30b1\u304b\u3051";
function Rp(a){var b=a.charCodeAt(0);a=Math.floor(b/8);b%=8;null===Sp&&(Sp=op("AEYBAAEBAQIBAwEEAQUBAgA4ADABCQEKAQkAMQEIAEMAQQELAQoAMQERAQwBFAEWARcBGAEZARoBGwEcAR0BHgEfASABIQEZADcBAQBEAEYAQwAwASQBAAEmASgBGwA0AQoBBgEGAS8BIgE0ATUBNgE3ATgBOQE6ATsBPAE9AT4BPwFAAUEBQgFDAUQBRQFGAUcBSAFJAUoBSwFMAU0BTgFPAVABUQFSAVMBVAFVAVYBVwFYAVkBWgFbAVwBXQFWADgANABDAWIANgEJAEIAMAETAVABaAEJADIBCQEvAWoBGQEAASgBcQERAEYBHgAyAQgBGABCADEAOQAwAS8AMgA3ADgANQBGARABKAEzAWsBCgBDADMAMwERAYoBFgGGARUBIgFsAV4BNAEDAUMBdQAwADkBmQA5AEMBmwGaAZoBbAFvASABLQAwAYsAMAEoADMAMQGlAREBoQFkARwBEAEXADIANQGTAbMBtAG1AbYBtwG4AbkBugEYAEYBKgEnADABsgEWAb4BMQEGAWcARQHDAcQBBABFADEARQG7AQsBZAGPATYARgF4ASIBaAEvADgBCAGKAWgAMgFqADYANAA0AaEBEgHNAQkBqgBFAdEBCgEIAecBzgHrAewB7QHuAe8B8AHxAfIB8wH0AfUB9gH3AfgB+QH6AfsB/AH9ATQARAAxAEYANgBDAScAMgA0ADIAQQA0ADYAMgBEADkAMwHgADcBKQBDADcBkgHAAWsAQQA2AYMCAwBEAEIARQBFADkCHwAyAWwARQBCADMCEQEnADcANQEoADYAQQGoADgARAAwADYANwEoADIBowENAEEARQBDAakBKQBEADcANwHjAeAAOQA2AXsAMQAyAEIANQIsAEIBYQF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BS8EowU+AxkFMwi7AuUEYAiHAssGDwSjB+QKAAhKAuQBZgVdCQYFGAHAAiMB5wOhATQBYQVJA04CKQIWCbMBCQcUA0ECigIvAn4HCQLuBloC1APIBoMIXgGkA1EDJQNRBqUGewJnBRoB/gpYClkKWgpbClwKXQpeCl8KYAphCmIKYwpkCmUKZgpnCmgKaQpqCmsKbAptCm4KbwpwCnEKcgpzCnQKdQp2CncKeAp5CnoKewEbAckKfgp/CoAKgQqCCoMKhAqFCoYKhwqICokKigqLCowKjQqOCo8KkAqRCo8KfAqUCpUKlgqXCpgKmQqaAVoGJAEZCYQBRAkMARYC4QEEBcsKmwqmATsByAqDAccKgQEfAb8BCg=="));
for(a=parseInt(Sp.substr(2*a,2),16).toString(2);8>a.length;)a="0"+a;return"1"==a.substr(b,1)?!0:!1}
function Tp(a){var b=a.charCodeAt(0);a=Math.floor(b/8);b%=8;null===Up&&(Up=op("ADABAAEBAQIBAwEEAQUBBgEDADEAOAAwAEMAQQEFADEBDgEHAREBEgETARQBFQEWARcBGAEZARoBEwA3AEYBHgBEAEYAQwAwAR0BHwEhARQANAEBAR4BKgErASwBHgEoARsBMAExATIBMwE0ATUBNgE3ATgBOQE6ATsBPAE9AT4BPwFAAUEBQgFDAUQBRQFGAUcBSAFJAUoBSwFMAU0BTgFPAVABUQFSAVMBVAFVAVYBVwFYAVkBEgA4ADQAQwFeADYBAABCADABDwFLAWQBEAEzAEYBFgAyAQoBBwBCADEAOQEBADIANgA4ADUARgEKASIBLwEAADIBAQBDADMAMwEDAX4BBQF5ATIBewFaAVYBaQAwADkBigA5AEMBjAGLAYsBewFmARkBIgEAAX8BCwAwADMAMQGWAQgBAwFgARQBDQEGADIANQGGAaQBpQGmAacBqAGpAaoBqwBGASQBJgEHAa4BLQGyASsBYwBFAbEBswGzAEUAMQBFAasBvQG+Ab8BwAHBAcIBwwHEAcUBxgHHAcgByQHKAcsBzAHNAc4BzwHQAdEBRABEADEARgA2AEMBIQAyADQAMgHaADYAMgBE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QMVAf0EHgYyAQICVwRZAqICJQZyBBQJogMyCDgBegA3BkQIbAOFAj4BcgPwBhcF5wH6AXkCbgNcAvMCIgWXB+MIXAeVB7AGlwE1BQ8D0AajAu4DcQKQBEABbAGaApgBdwIGB04DOgOYBLAJxgLfBOoDEAlGB+IE+QHqAXsGpQGAAekBGQFdAh8E5AO7BuQGUwgDAQoC+wJeAyoCwQJ0AQkGVwJGA98IMgGYAyYC+gMmAzwBAwjLCUAB0gofCiAKIQoiCiMKJAolCiYKJwooCikKKgorCiwKLQouCi8KMAoxCjIKMwo0CjUKNgo3CjgKOQo6CjsKPAo9Cj4KPwpACkEKQgpDCkQKRQpGCkcKSApJCkoKSwpMCk0KTgpPClABPAI1AbgKVAEeAkUBOAOwAQI="));for(a=
parseInt(Up.substr(2*a,2),16).toString(2);8>a.length;)a="0"+a;return"1"==a.substr(b,1)?!0:!1}var Sp=null,Up=null;function Vp(a){if("string"===typeof a){for(var b="",c=0;c<a.length;c++){if(yp(L,a[c])){var d=Op(L,a[c]);if("0"<=d&&"9">=d){b+=d;continue}}b+=a[c]}return b}return a};function Wp(a,b){var c;if((118!==b.charCode&&120!==b.charCode&&99!==b.charCode||!b.ctrlKey&&!b.metaKey)&&!(hb&&256<b.charCode||46==b.keyCode&&b.shiftKey||!0===a.fa)){if(!(y||0!=b.charCode&&Ke)){if(!Ke||38==b.keyCode||40==b.keyCode){Ke=!0;Wa||Cf(b);return}if(13!=b.keyCode||!a.mm)return}var d=b.keyCode||b.charCode;if(13!=d||a.mm){var e=String.fromCharCode(d);try{if(zp(e.charAt(0))){a.eq=!0;return}}catch(h){}if(null!=e){var f=null;try{f=mb()?a.yl=!0:a.Ud(e,b)}catch(h){}}y&&27==d&&a.Ca(a.o,a.v);if(db&&
(b.ctrlKey||b.metaKey)&&(a=null===(c=b.key)||void 0===c?void 0:c.toLowerCase(),"c"===a||"x"===a||"v"===a))return;f||Cf(b)}}}function Xp(a,b){if(!0!==a.fa)try{if(a.Cj=!1,mb()&&a.Gq&&(Yp(a),a.Gq=!1),null!=a.Bd&&4!==a.Bd&&"mouse"!==a.Bd){var c={},d;for(d in b)c[d]=b[d];setTimeout(function(){try{a.ke(c)}catch(e){}},300)}else if(cb&&a.o!=a.v){c={};for(d in b)c[d]=b[d];setTimeout(function(){try{a.ke(c)}catch(e){}})}else a.ke(b)}catch(e){}}function Zp(a,b){try{a.ca&&(a.Am(b),a.gp()&&Cf(b))}catch(c){}}
function Yp(a){try{if(a.hasActivated||(a.hasActivated=!0),mb()&&a.Cj)a.Gq=!0;else if(a.ca=!0,a.Ij=!1,a.ed(),a.Ij&&($p(a),a.Ij=!1),mb()||Xa&&1==Ve||cb&&37<=parseInt(cb)&&Ve)a.Ps=window.setInterval(function(){a.fa||document.activeElement!==a.za()||aq(a)},400)}catch(b){}}
function bq(a,b){try{if(a.za().dataset.triggeredByInput="",a.sf)a.Cq=b;else{a.he=!1;a.Qs=!0;try{a.Vd(b)}finally{a.Qs=!1}a.he&&a.ul&&(sg(a.host,a.i._onLeave,null),a.ul=!1);a.he=!1;a.ca=!1;M(a);(mb()||Xa&&1==Ve)&&clearInterval(a.Ps);cq("focusout",a,b,!1)}}catch(c){}}function aq(a){try{mb()&&a.fa||a&&a.ca&&a.Ck()}catch(b){}}
function dq(a,b){try{if((cb||Sa||hb||db||Wa||Xa)&&"android"!==nb().toLowerCase())jf=b,"password"!==b.target.type&&(a.pc(If(!0)),Cf(b));else{var c=a.o,d=a.v;setTimeout(function(){"android"===nb().toLowerCase()&&(a.o=c,a.v=d);a.ym=!0;a.Rb("DirectInput")},0)}}catch(e){}finally{jf=null}}function eq(a,b){try{a.Bk(b)}catch(c){}}
function cq(a,b,c,d){var e=b.i[a];if(!e)return!1;d=d?{Event:c,Cancel:!1}:c;sg(b.host,e,d,a);if(!0===d.Cancel)!0===d.StopPropagation&&c.stopPropagation(),!0===d.PreventDefault&&c.preventDefault();else return!1};v("GcValidatorEvent",{ValidationFailed:"validationfailed"});
v("ValidateType",{Required:"required",OutOfRange:"outofrange",EqualToInputLength:"equaltoinputlength",LessThanInputLength:"lessthaninputlength",LessThanOrEqualToInputLength:"lessthanorequaltoinputlength",GreaterThanInputLength:"greaterthaninputlength",GreaterThanOrEqualToInputLength:"greaterthanorequaltoinputlength",BetweenMinAndMaxLength:"betweenminandmaxlength",BetweenOrEqualToMinAndMaxLength:"betweenorequaltominandmaxlength",MatchControl:"matchcontrol",External:"external"});
var fq={LostFocus:"lostfocus",Typing:"typing",Manual:"manual"};v("ValidateWhen",fq);var gq={Inside:"inside",Outside:"outside"};v("IconDirection",gq);var hq={Start:"start",Balanced:"balanced",End:"end"};v("TipPosition",hq);var Id={Top:"top",Left:"left",Right:"right",Bottom:"bottom"};v("TipDirection",Id);var iq={BallonTip:"ballontip",FlatPanel:"flatpanel",Text:"text"};v("TipStyle",iq);var jq={GcRichTextEditor:"GcRichTextEditor",GcInputMan:"GcInputMan",NoValidator:"NoValidator"};function kq(a){var b=this;this.Wm=!0;this.u=this.ua=null;this.Gi=this.tg=this.ea=!1;this.ka=w.DefaultHelpContent;this.Fa=w.Copy;this.sa=w.Copied;this.Fi=!1;this.g={x:0,y:0};this.h=null;this.Me={};this.tipNotifiers=[];this.iconNotifiers=[];this.gcInternalControlType="GcInputMan";this.na=!1;this.Na=this.Dl=this.ic=this.fa=null;this.va=1E3;this.ca=40;this.La=function(d,e){d instanceof Date?e.value=d.toISOString():e.value=b.getValue()};this.Ma=function(d,e){e.hasAttribute("right")&&(ho(d,"clear")(function(f){return e.insertAdjacentElement("afterbegin",
f.element)}),ho(d,"copy")(function(f){return e.insertAdjacentElement("afterbegin",f.element)}),ho(d,"help")(function(f){return e.insertAdjacentElement("afterbegin",f.element)}),ho(d,"fisheye")(function(f){return e.insertAdjacentElement("afterbegin",f.element)}));b.refreshUI(8)};this.Ta=function(){b.refreshUI(8)};xe.g=!0;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();this.fa=a.value;this.ic=a.style.cssText;this.rc=Yn(a,this.Qp(),this.componentName);ae(a)||(a["IMJS-CTRL"]=this);this.sideBtnController=
new $n({element:this.rc.h,ao:this.rc.u});Un(this.sideBtnController.s,this.Ma);Un(this.sideBtnController.u,this.Ta);this.zb();this.Dl=lq(this.nb())}g=kq.prototype;g.nb=function(){return this.getLayoutElement()};g.Dn=function(a){return a&&"inside"===a.floatingLabelDirection&&!F(a.floatingLabelText)&&"none"!==a.floatingLabelType?this.ca:"auto"};g.isInitialized=function(){return!0};g.addEventListener=function(){};g.removeEventListener=function(){};
g.getEditAreaRect=function(){return{top:0,left:0,width:0,height:0}};g.il=function(a){return a};g.adjustControlMargin=function(){function a(d,e){0<c[e]?b.nb().style[d]="calc("+b.Dl[e]+" + "+c[e]+"px)":b.nb().style[d]=b.Dl[e]}var b=this,c=this.getControlMarginOffset(15);a("marginTop","top");a("marginBottom","bottom");a("marginLeft","left");a("marginRight","right")};function mq(a){if(G(a))return a;if(-1!=a.indexOf("px")){var b=parseFloat(a);if(!isNaN(b))return b}return a}
g.Gn=function(){var a={top:0};if(nq(this)&&("outside"===this.floatingLabelDirection||"throughborder"===this.floatingLabelDirection)){var b=this.Ga;"throughborder"===this.floatingLabelDirection&&(b=Math.floor(b/2));a.top=b}return a};
g.getControlMarginOffset=function(a){var b={left:0,top:0,right:0,bottom:0};1===(a&1)&&(b.top+=this.Gn().top);if(2===(a&2)&&0<this.tipNotifiers.length){var c=this.tipNotifiers.map(function(d){return d.getTipOffset()});a=function(d){var e=c.filter(function(f){return"number"===typeof f[d]});0<e.length&&(b[d]+=e.reduce(function(f,h){return h[d]>f?h[d]:f},e[0][d]))};a("top");a("bottom");a("left");a("right")}return b};
function oq(a){"inside"===a.floatingLabelDirection&&!F(a.floatingLabelText)&&"none"!==a.floatingLabelType&&a.height<a.ca&&(a.height=a.ca)}function nq(a){return!F(a.floatingLabelText)&&"none"!==a.floatingLabelType}
function pq(a){var b=a.getWrapperEl();nq(a)&&"inside"===a.floatingLabelDirection?(b.classList.add("inside-padding"),b.classList.remove("throughborder-padding")):nq(a)&&"throughborder"===a.floatingLabelDirection?(b.classList.add("throughborder-padding"),b.classList.remove("inside-padding")):(b.classList.remove("inside-padding"),b.classList.remove("throughborder-padding"))}g.Qp=function(){return["input"]};
g.zb=function(){var a=this;this.la=function(){a.rc.h.classList.add("gcim_focused");mb()?Yp(a.Tc()):a.rc.i.focus()}.bind(this);this.rc.g.addEventListener("focus",this.la,!0);this.Qf=function(b){Od(a.rc.g,b.relatedTarget)||(a.rc.h.classList.remove("gcim_focused"),a.enabled&&mb()&&!Od(a.rc.g,b.relatedTarget||document.activeElement)&&b.target!==a.getUIInputElement()&&bq(a.Tc(),b))}.bind(this);this.rc.g.addEventListener("focusout",this.Qf);qq(this)};
function qq(a){var b=[a.rc.g,a.rc.h,a.rc.u];a.ta=function(c){var d=b.includes(c.target),e=a.iconNotifiers.some(function(f){return c.target===f.getElement()});a.$.ca&&(d||e)&&c.preventDefault()}.bind(a);a.rc.g.addEventListener("mousedown",a.ta)}g.Nb=function(){this.rc.g.removeEventListener("focus",this.la,!0);this.rc.g.removeEventListener("focusout",this.Qf);this.rc.g.removeEventListener("mousedown",this.ta);this.removeDestroy()};
g.Yn=function(a){this.width="auto";this.height=this.Dn(a);this.minWidth=50;this.minHeight=30};
g.tc=function(a){F(a)?this.Yn(a):(this.width=G(a.width)?"auto":a.width,this.height=G(a.height)?this.Dn(a):a.height,G(a.minWidth)?this.minWidth=50:this.minWidth=a.minWidth,G(a.minHeight)?this.minHeight=30:this.minHeight=a.minHeight,G(a.maxWidth)||(this.maxWidth=a.maxWidth),G(a.maxHeight)||(this.maxHeight=a.maxHeight),G(a.enabled)||this.setEnabled(a.enabled),G(a.visible)||this.setVisible(a.visible),G(a.readOnly)||this.setReadOnly(a.readOnly),G(a.exitOnLeftRightKey)||this.setExitOnLeftRightKey(a.exitOnLeftRightKey),
G(a.editMode)||this.setEditMode(a.editMode),G(a.watermarkDisplayNullText)||this.setWatermarkDisplayNullText(a.watermarkDisplayNullText),G(a.watermarkNullText)||this.setWatermarkNullText(a.watermarkNullText),G(a.acceptsCrlf)||this.setAcceptsCrlf(a.acceptsCrlf),G(a.useClipboard)||this.setUseClipboard(a.useClipboard),G(a.exitOnEnterKey)||this.setExitOnEnterKey(a.exitOnEnterKey),G(a.container)||this.setContainer(a.container),G(a.autoDropDown)||this.setAutoDropDown(a.autoDropDown),G(a.showClearButton)||
this.setShowClearButton(a.showClearButton),G(a.autoScale)||this.setAutoScale(a.autoScale),G(a.minScaleFactor)||this.setMinScaleFactor(a.minScaleFactor),G(a.tabIndex)||(this.tabIndex=a.tabIndex),G(a.showHelpButton)||this.ek(a.showHelpButton),G(a.showCopyButton)||this.dk(a.showCopyButton),G(a.helpContent)||(this.helpContent=a.helpContent),G(a.copyMessage)||(this.copyMessage=a.copyMessage),G(a.copiedMessage)||(this.copiedMessage=a.copiedMessage),G(a.floatingLabelText)||(this.floatingLabelText=a.floatingLabelText),
G(a.floatingLabelType)||(this.floatingLabelType=a.floatingLabelType),G(a.floatingLabelDirection)||(this.floatingLabelDirection=a.floatingLabelDirection),G(a.fontSize)||(this.fontSize=a.fontSize))};g.setAutoDropDown=function(a){"boolean"===typeof a&&a!==this.ea&&(this.ea=a)};g.setShowClearButton=function(a){"boolean"===typeof a&&a!==this.tg&&(this.tg=a);this.tg&&!go(this.sideBtnController,"clear")&&rq(this);sq(this)};g.Rn=function(){return this.tg};
g.dk=function(a){"boolean"===typeof a&&a!==this.Fi&&(this.Fi=a);this.Fi&&!go(this.sideBtnController,"copy")&&tq(this);uq(this)};g.ek=function(a){"boolean"===typeof a&&a!==this.Gi&&(this.Gi=a);this.Gi&&!go(this.sideBtnController,"help")&&vq(this);wq(this)};function sq(a){ho(a.sideBtnController,"clear")(function(b){return b.visible(a.Ml())})}function uq(a){ho(a.sideBtnController,"copy")(function(b){return b.visible(a.gi())})}
function wq(a){ho(a.sideBtnController,"help")(function(b){return b.visible(a.Gi)})}g.Ml=function(){return!this.getReadOnly()&&this.getEnabled()&&!F(this.getText())&&this.tg};g.gi=function(){return this.Fi&&this.$.Fd()&&!this.getPasswordMode()&&this.getEnabled()&&!F(this.getText())};g.Kj=function(){return this.ea};g.zf=function(a,b){return this.sideBtnController.zf(void 0===b?!1:b)(a)};g.setCopiedTipTime=function(a){this.va=a};g.getValue=function(){throw tc();};
g.syncValueFromDropDown=function(){throw tc();};g.performKeyDown=function(){throw tc();};g.performKeyPress=function(){throw tc();};g.paste=function(){throw tc();};g.cut=function(){throw tc();};g.copy=function(){throw tc();};g.delete=function(){throw tc();};g.undo=function(){throw tc();};g.canUndo=function(){throw tc();};g.getTargetControl=function(){return this};function xq(a){var b=a.getEnabled();jo(a.sideBtnController)(function(c){return c.enable(b)})}g.getEnabled=function(){return!this.getUIInputElement().disabled};
g.setEnabled=function(a){"undefined"===typeof a&&(a=!0);a?this.getLayoutElement().classList.remove("gcim_disabled"):this.getLayoutElement().classList.add("gcim_disabled");this.getUIInputElement().disabled=this.getOriginalInputElement().disabled=!a;yq(this);this.$.oq(a)};g.getReadOnly=function(){return this.getOriginalInputElement().readOnly};g.Yf=function(){return"none"===this.nb().style.display?!1:!0};
g.setVisible=function(a){"undefined"===typeof a&&(a=!0);a?this.nb().style.display="":this.nb().style.display="none"};
g.addDropDownButton=function(a,b,c,d,e,f){var h=this;f=G(f)?"":f;e=e||"rightside";var k=this.Me[b];k||console.warn("Cannot find drop-down with id "+b);a=po(Pd(d),a,f)||oo(a,f);var l=no(no(this.zf(a,"leftside"===e),"click",function(){return null===k||void 0===k?void 0:k.toggleOpen()}),"mousedown",function(m){m.preventDefault();h.getUIInputElement().dataset.triggeredByInput="false";h.setFocusInternal(!0)});"dropdown"===l.name&&(l.element.setAttribute("state","close"),null===k||void 0===k?void 0:k.onOpen(function(){return l.element.setAttribute("state",
"open")}),null===k||void 0===k?void 0:k.onBeforeClosed(function(){return l.element.setAttribute("state","close")}));null===k||void 0===k?void 0:k.onOpen(function(){return Object.values(h.Me).forEach(function(m){m!==k&&m.close(!1)})});yq(this)};function rq(a){a.Xm=qo("clear");no(no(a.zf(a.Xm,!1),"click",function(){a.Zg()}),"mousedown",function(b){b.preventDefault();a.getUIInputElement().dataset.triggeredByInput="false";a.setFocusInternal()})}
function tq(a){go(a.sideBtnController,"copy")||(a.Ym=A("div",{name:"copy",class:"gcim__side-button"},A("div",{class:"gcim-icon gcim__copy-button"})),no(no(no(no(no(a.zf(a.Ym,!1),"mousedown",function(b){b.preventDefault();a.getUIInputElement().dataset.triggeredByInput="false";a.setFocusInternal()}),"click",function(b){a.$.yn();zq(a);a.showTip(b,a.getLayoutElement(),a.copiedMessage,"gcim__copy-button_tip",0,a.va)}),"mouseover",function(b){a.g.x=b.clientX;a.g.y=b.clientY;a.showTip(b,a.getLayoutElement(),
a.copyMessage,"gcim__copy-button_tip",200)}),"mouseout",function(){zq(a)}),"mousemove",function(b){a.g.x=b.clientX;a.g.y=b.clientY}))}
function vq(a){go(a.sideBtnController,"help")||(a.Zm=ro("help"),no(no(no(no(a.zf(a.Zm,!1),"mousedown",function(b){b.preventDefault();a.getUIInputElement().dataset.triggeredByInput="false";a.setFocusInternal()}),"mouseover",function(b){a.g.x=b.clientX;a.g.y=b.clientY;a.showTip(b,a.getLayoutElement(),a.helpContent,"gcim__help-button_tip",200)}),"mouseout",function(){zq(a)}),"mousemove",function(b){a.g.x=b.clientX;a.g.y=b.clientY}))}
g.showTip=function(a,b,c,d,e,f){var h=this;if(a.target instanceof HTMLElement){var k=new Jk(b,c,{delayTime:e,eh:f,className:d,Ad:{x:this.g.x,y:this.g.y},aj:this.container});k.u=function(){Mk(k,{x:h.g.x,y:h.g.y})};this.h=k}};function zq(a){null!==a.h&&(a.h.close(),a.h=null)}g.Zg=function(){};
g.createDropDown=function(a,b){a=void 0===a?"rightside":a;b=void 0===b?!0:b;var c=ed(),d=new Do(this,{inputEl:this.getOriginalInputElement()});this.Me[c]=d;b&&this.addDropDownButton("dropdown",c,null,null,a,"");return this.Na=d};g.Nh=function(){return["dropdown"]};function Aq(a){a=fa(Object.entries(a.Me));for(var b=a.next();!b.done;b=a.next()){var c=fa(b.value);b=c.next().value;c=c.next().value;if(c.isOpened())return b}return null}
g.setDropDownButtonVisible=function(a){if("boolean"===typeof a&&this.sideBtnController){var b=new Set(this.Nh());jo(this.sideBtnController)(function(c){b.has(c.name)&&c.visible(a)})}};g.getDropDownWindow=function(){return this.Na};function Bq(a,b){a.La(b,a.getOriginalInputElement())}
g.Jk=function(a,b,c){var d=this;if(this.ga)return this.ga;this.ga=new cp({name:"spin",delay:250,interval:100,Js:function(){d.getUIInputElement().dataset.triggeredByInput="false";d.setFocusInternal();b()},Ks:function(){d.getUIInputElement().dataset.triggeredByInput="false";d.setFocusInternal();a()},ds:c,yr:this.sideBtnController});yq(this);return this.ga};
function Cq(a,b){jd(a.getExtensionEl(),"gcim_watermark_empty-era");jd(a.getExtensionEl(),"gcim_watermark_null");jd(a.getExtensionEl(),"gcim_watermark_zero");switch(b){case "emptyEraWatermark":E(a.getExtensionEl(),"gcim_watermark_empty-era");break;case "nullWatermark":E(a.getExtensionEl(),"gcim_watermark_null");break;case "zeroWatermark":E(a.getExtensionEl(),"gcim_watermark_zero")}}g.getOriginalInputElement=function(){return this.rc.s};g.getUIInputElement=function(){return this.rc.i};
g.getLayoutElement=function(){return this.rc.g};g.getExtensionEl=function(){return this.rc.h};g.getWrapperEl=function(){return this.rc.u};g.enableTouchToolbar=function(){new Do(this,{inputEl:this.rc.s})};g.setAutoScale=function(a){this.Tc().autoScale=a;this.Tc().autoScaleText()};g.Wk=function(){return this.Tc().autoScale};g.setMinScaleFactor=function(a){"number"===typeof a&&0<a&&1>a&&(this.Tc().vl=a,this.Tc().autoScaleText())};g.al=function(){return this.Tc().vl};g.autoScaleText=function(){this.Tc().autoScaleText()};
g.layout=function(){co(this.sideBtnController)};g.refresh=function(){};g.getPasswordMode=function(){return!1};g.setReadOnly=function(a){"undefined"===typeof a&&(a=!0);this.getUIInputElement().readOnly=this.getOriginalInputElement().readOnly=a;yq(this)};function yq(a){xq(a);sq(a);uq(a);wq(a);a.refreshUI(8)}g.setFocusInternal=function(a){mb()?(document.activeElement!==this.rc.i||!0===a)&&this.getLayoutElement().focus():this.setFocus()};g.setFocus=function(){this.getUIInputElement().focus()};
g.onSyncValueToOriginalInput=function(a){this.La=a};g.isPassRequiredRule=function(){return!F(this.getValue())};g.isPassOutOfRangeRule=function(){return!0};g.getHost=function(){return this.getLayoutElement()};g.setContainer=function(a){this.ua=a};
g.destroy=function(){var a,b;null===(b=this.i)||void 0===b?void 0:b.ha();this.Nb();null===(a=this.h)||void 0===a?void 0:a.dispose();this.sideBtnController.dispose();a=fa(Object.values(this.Me));for(b=a.next();!b.done;b=a.next())b.value.dispose();this.$.dispose();if(a=this.nb())a.style.removeProperty("width"),a.style.removeProperty("height"),a.style.removeProperty("min-width"),a.style.removeProperty("min-height"),a.style.removeProperty("max-width"),a.style.removeProperty("max-height");ce(a);a=this.rc.s;
ce(a);if(b=Zn.get(a)){var c=b.g.parentNode;c&&c.replaceChild(b.s,b.g);Zn.delete(a)}this.getUIInputElement().accessKey?a.accessKey=this.getUIInputElement().accessKey:a.removeAttribute("accesskey");a.value=this.fa;this.ic?a.style.cssText=this.ic:a.removeAttribute("style");this.fa=null;he(this)};g.getContainer=function(){return this.ua};
g.refreshUI=function(a){0===(a&8)&&co(this.sideBtnController);0===(a&2)&&this.tipNotifiers.forEach(function(b){return b.refresh()});0===(a&4)&&this.iconNotifiers.forEach(function(b){return b.refresh()});0===(a&16)&&this.autoScaleText();0===(a&64)&&Dq(this.$)};g.bh=function(){return!1};g.pe=function(){return null};g.rn=function(){return!1};g.up=function(){};g.getTextLength=function(){var a=this.getText();return"string"===typeof a?a.length:0};g.getMatchValue=function(){return this.getText()};
g.onInitialized=function(a){Un(this.Xa,a)};g.removeInitialized=function(a){var b;null===(b=this.s)||void 0===b?void 0:Vn(b,a)};g.onDestroy=function(a){Un(this.bb,a)};g.removeDestroy=function(){var a;null===(a=this.i)||void 0===a?void 0:a.clear()};
p.Object.defineProperties(kq.prototype,{initComplete:{configurable:!0,enumerable:!0,get:function(){return this.na},set:function(a){this.na=a;!0===a&&Dq(this.$);var b;null===(b=this.s)||void 0===b?void 0:b.ha()}},hasActivated:{configurable:!0,enumerable:!0,get:function(){return this.$.hasActivated}},autoDropDown:{configurable:!0,enumerable:!0,get:function(){return this.Kj()},set:function(a){this.setAutoDropDown(a)}},showClearButton:{configurable:!0,enumerable:!0,get:function(){return this.tg},set:function(a){this.setShowClearButton(a)}},
showCopyButton:{configurable:!0,enumerable:!0,get:function(){return this.Fi},set:function(a){this.dk(a)}},showHelpButton:{configurable:!0,enumerable:!0,get:function(){return this.Gi},set:function(a){this.ek(a)}},helpContent:{configurable:!0,enumerable:!0,get:function(){return this.ka},set:function(a){this.ka=a}},copyMessage:{configurable:!0,enumerable:!0,get:function(){return this.Fa},set:function(a){this.Fa=a}},copiedMessage:{configurable:!0,enumerable:!0,get:function(){return this.sa},set:function(a){this.sa=
a}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.getEnabled()},set:function(a){this.setEnabled(a)}},readOnly:{configurable:!0,enumerable:!0,get:function(){return this.getReadOnly()},set:function(a){this.setReadOnly(a)}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Yf()},set:function(a){this.setVisible(a)}},dropDownButtonVisible:{configurable:!0,enumerable:!0,set:function(a){this.setDropDownButtonVisible(a)}},spinButtonVisible:{configurable:!0,enumerable:!0,
set:function(a){var b=this;a=H(a);this.sideBtnController&&["spin"].forEach(function(c){return ho(b.sideBtnController,c)(function(d){return d.visible(a)})})}},autoScale:{configurable:!0,enumerable:!0,get:function(){return this.Wk()},set:function(a){this.setAutoScale(a)}},minScaleFactor:{configurable:!0,enumerable:!0,get:function(){return this.al()},set:function(a){this.setMinScaleFactor(a)}},container:{configurable:!0,enumerable:!0,get:function(){return this.getContainer()},set:function(a){this.setContainer(a)}},
dropDownWindow:{configurable:!0,enumerable:!0,get:function(){return this.getDropDownWindow()}},componentName:{configurable:!0,enumerable:!0,get:function(){return""}},tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.getUIInputElement().tabIndex},set:function(a){this.getUIInputElement().tabIndex=a}},floatingLabelText:{configurable:!0,enumerable:!0,get:function(){return this.$.Nc.label},set:function(a){var b=this.$;b.Nc.label=a;Dq(b);pq(this);this.adjustControlMargin();oq(this)}},floatingLabelType:{configurable:!0,
enumerable:!0,get:function(){return this.$.Sm.type},set:function(a){a=I(Pa,a);if(null!==a){var b=this.$;b.Sm.type=a;Dq(b);pq(this);this.adjustControlMargin();oq(this)}}},floatingLabelDirection:{configurable:!0,enumerable:!0,get:function(){return this.$.Nc.direction},set:function(a){a=I(Qa,a);if(null!==a){var b=this.$;b.Nc.direction=a;Dq(b);pq(this);this.adjustControlMargin();oq(this)}}},width:{configurable:!0,enumerable:!0,set:function(a){if("string"===typeof a&&"auto"===a.toLowerCase())this.nb().style.width=
"";else{a=nd(a);if(null===a)return;this.nb().style.width=a}this.refreshUI(1)},get:function(){return parseFloat(window.getComputedStyle(this.nb()).width)}},height:{configurable:!0,enumerable:!0,set:function(a){"string"===typeof a&&"auto"===a.toLowerCase()?this.nb().style.height="":(a=nd(a),null!==a&&(this.nb().style.height=a,this.refreshUI(1)))},get:function(){return parseFloat(window.getComputedStyle(this.nb()).height)}},minWidth:{configurable:!0,enumerable:!0,get:function(){return mq(this.nb().style.minWidth)},
set:function(a){a=nd(a);null!==a&&(this.nb().style.minWidth=a,this.refreshUI(1))}},minHeight:{configurable:!0,enumerable:!0,get:function(){return mq(this.nb().style.minHeight)},set:function(a){a=nd(a);null!==a&&(this.nb().style.minHeight=a,this.refreshUI(1))}},maxWidth:{configurable:!0,enumerable:!0,get:function(){return mq(this.nb().style.maxWidth)},set:function(a){a=nd(a);null!==a&&(this.nb().style.maxWidth=a,this.refreshUI(1))}},maxHeight:{configurable:!0,enumerable:!0,get:function(){return mq(this.nb().style.maxHeight)},
set:function(a){a=nd(a);null!==a&&(this.nb().style.maxHeight=a,this.refreshUI(1))}},fontSize:{configurable:!0,enumerable:!0,set:function(a){if("number"!==typeof a&&(a=parseFloat(a),isNaN(a)))return;this.getUIInputElement().style.fontSize=a+"px";this.Ga=a;this.refreshUI(0)},get:function(){return parseFloat(window.getComputedStyle(this.getUIInputElement()).fontSize)}},Ga:{configurable:!0,enumerable:!0,set:function(a){this.$.Nc.i.style.fontSize=a+"px";this.adjustControlMargin()},get:function(){return parseFloat(window.getComputedStyle(this.$.Nc.i).fontSize)}},
Xa:{configurable:!0,enumerable:!0,get:function(){this.s||(this.s=new K(this));return this.s}},bb:{configurable:!0,enumerable:!0,get:function(){this.i||(this.i=new K(this));return this.i}}});function Eq(a){return be(a)}function Fq(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}function lq(a){return new Fq(a.style.marginTop||"0px",a.style.marginRight||"0px",a.style.marginBottom||"0px",a.style.marginLeft||"0px")}v("FindIMControl",Eq);v("FindIMControl",Eq,window);function Gq(a,b){this.i={};if(null===b||void 0===b)b=a.id;""===b&&(b=ed());this.la=b;this.ua=a;this.Ge();this.ui();this.Ie();this.ln()}Gq.prototype.Ge=function(){};Gq.prototype.ui=function(){};Gq.prototype.Ie=function(){};Gq.prototype.ln=function(){};function Hq(a){this.$=a;this.g=""}Hq.prototype.ia=function(){var a=this.$.za();return null!=a?"TEXTAREA"===a.tagName?Bf(a.value):a.value:null!=this.$.Sl?(a=this.$.Sl,"TEXTAREA"===a.tagName?Bf(a.value):a.value):""};function Iq(a,b){var c=a.ia();if(null!=c&&c.replace(/\r\n/g,"\n")!=b.replace(/\r\n/g,"\n"))if((c=a.$.za())&&c.value!==b)c.value=b,a.$.autoScaleText();else if(a=a.$.Sl)a.value=b}function Jq(a,b){""!==b&&Kq(a.$).Db&&(b=a.$.ia());a.g=b}function Lq(a,b,c,d){xf(a.$.za(),b,c,d)};function Mq(){this.bf=!1;this.s=-1;this.i=[Nq,Oq,Pq,Qq,Rq,Sq,Oq,Tq];this.h={};this.h[Nq]={key:Nq,label:w.ContextMenuUndo,enabled:!0};this.h[Pq]={key:Pq,label:w.ContextMenuCut,enabled:!1};this.h[Qq]={key:Qq,label:w.ContextMenuCopy,enabled:!0};this.h[Rq]={key:Rq,label:w.ContextMenuPaste,enabled:!1};this.h[Sq]={key:Sq,label:w.ContextMenuDelete,enabled:!0};this.h[Tq]={key:Tq,label:w.ContextMenuSelectAll,enabled:!0};Uq(this);this.ua.addEventListener("contextmenu",function(a){return a.preventDefault()})}
var Vq;function Uq(a){a.ua=A("div",{class:"gcim__context_menu","data-edge":Sa},a.i.map(function(b){return Wq(a,b)}))}
function Wq(a,b){if(b==Oq)return A("div",{class:"gcim__context_menu_item",name:"split"},A("div",{class:"context_menu_item__split"},A("div",null)));var c=a.h[b];b=A("div",{class:"gcim__context_menu_item","data-enabled":c.enabled,name:b},A("div",{class:"context_menu_item__content"},c.label));b.addEventListener("mouseup",function(d){d.preventDefault();0==d.button&&(d=$q(d).name,(d=a.h[d])&&cr(a,d))});b.addEventListener("mousedown",function(d){return d.preventDefault()});b.addEventListener("mouseover",
function(d){d=$q(d);var e=d.Ip;a.s=a.i.indexOf(d.name);e&&e.setAttribute("hover","true")});b.addEventListener("mouseout",function(d){(d=$q(d).Ip)&&d.removeAttribute("hover")});return b}function cr(a,b){if(b.enabled&&a.g)try{switch(b.key){case Qq:a.g.Copy(null);break;case Rq:a.g.pc(null);break;case Pq:a.g.dd(null);break;case Nq:a.g.Ub();break;case Sq:a.g.rf();break;case Tq:a.g.Yc()}}finally{dr(a)}}
function $q(a){for(a=a.target;a&&!a.classList.contains("gcim__context_menu_item");)a=a.parentElement;if(a)return{name:a.getAttribute("name"),Ip:a}}function er(a){var b=Mq.instance;b.g=a;return b}Mq.prototype.enable=function(a,b){this.h[a].enabled=b;this.ua.querySelector('div[name="'+a+'"]').setAttribute("data-enabled",b?"true":"false")};
Mq.prototype.show=function(a){this.bf&&dr(this);Se=this.bf=!0;var b=this.g.o!=this.g.v,c=fr(this.g),d=this.g.Pp(),e=this.g.sd(),f=null!=If(this.g.Fd());this.enable(Sq,b&&!c);this.enable(Pq,d?!1:b&&!c);this.enable(Qq,d?!1:b);this.enable(Nq,e&&!c);this.enable(Rq,f&&!c);if(Sa){b=this.ua.querySelectorAll('div[name="split"]');c=-1;e=d=!1;for(f=0;f<this.i.length;f++){var h=this.i[f];h==Oq?(-1<c&&b[c].setAttribute("data-enabled",d&&e?"true":"false"),d=e,e=!1,c++):e=this.h[h].enabled||e}b[c].setAttribute("data-enabled",
d&&e?"true":"false")}this.selectedIndex=-1;document.body.appendChild(this.ua);b=Sf(this.ua.offsetWidth,this.ua.offsetHeight,a);this.ua.style.left=b.left+"px";this.ua.style.top=b.top+"px";a.preventDefault()};function dr(a){a.bf&&(document.body.removeChild(a.ua),Se=a.bf=!1)}Mq.prototype.performKeyDown=function(a){if(38==a)gr(this,!1);else if(40==a)gr(this,!0);else{var b={};b[85]=Nq;b[84]=Pq;b[67]=Qq;b[80]=Rq;b[68]=Sq;b[65]=Tq;b=b[a];13==a&&-1<this.s&&(b=this.i[this.s]);(a=this.h[b])&&cr(this,a)}};
function gr(a,b){function c(d,e){d=e?d+1:d-1;d=0>d?a.i.length-1:d;d%=a.i.length;if(d==a.s)return a.s;if(a.i[d]==Oq)return c(d,e);var f=a.h[a.i[d]];return Sa&&!f.enabled?c(d,e):d}a.selectedIndex=c(a.s,b)}
p.Object.defineProperties(Mq.prototype,{selectedIndex:{configurable:!0,enumerable:!0,set:function(a){this.s!=a&&(-1<this.s&&this.ua.querySelector('div[name="'+this.i[this.s]+'"]').removeAttribute("hover"),-1<a&&this.ua.querySelector('div[name="'+this.i[a]+'"]').setAttribute("hover","true"),this.s=a)}},u:{configurable:!0,enumerable:!0,get:function(){return this.bf}}});p.Object.defineProperties(Mq,{instance:{configurable:!0,enumerable:!0,get:function(){Vq||(Vq=new Mq);return Vq}}});
var Nq="undo",Pq="cut",Qq="copy",Rq="paste",Sq="delete",Tq="selectall",Oq="split";function hr(a){this.h={direction:"outside",label:""};a&&Object.assign(this.h,a)}function ir(a,b,c){if(a.g){switch(b){case "display":a.g.classList.remove("gcim_hidden");a.g.setAttribute("label-state","display");break;case "floating":a.g.classList.remove("gcim_hidden");a.g.setAttribute("label-state","floating");break;default:a.g.classList.add("gcim_hidden"),a.g.removeAttribute("label-state")}a.g.style.maxWidth="display"===b?c.Gp:c.Op;a.g.style.left="display"===b?c.Fp:c.Np}}
function jr(a,b){a.g=A("div",{class:"gcim-floating-label__container gcim_hidden"},A("label",null,a.h.label));b.appendChild(a.g)}function kr(a){if(a.g){var b=a.g.querySelector("label");b&&(b.textContent=a.label)}}function lr(a){a.g&&a.g.setAttribute("label-direction",a.direction)}
p.Object.defineProperties(hr.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return this.g}},direction:{configurable:!0,enumerable:!0,get:function(){return this.h.direction},set:function(a){this.h.direction=a;lr(this)}},label:{configurable:!0,enumerable:!0,get:function(){return this.h.label},set:function(a){this.h.label=a;kr(this)}}});function mr(){this.type="auto"}function nr(a,b,c){"none"===a.type?ir(b.Lh,"hide",c):ir(b.Lh,"floating",c)}
function or(a,b,c){"none"===a.type?ir(b.Lh,"hide",c):"always"===a.type?ir(b.Lh,"floating",c):b.kl?ir(b.Lh,"floating",c):ir(b.Lh,"display",c)};function pr(a,b,c){Gq.call(this,a,b);this.wl="none";this.Im=!0;this.autoScale=!1;this.vl=0;this.hasActivated=this.Rm=!1;this.Ep="nocontrol";this.hm=!1;this.host=c;a=this.Nc;c=c.getExtensionEl();a.g&&a.g.remove();jr(a,c);kr(a);lr(a);Dq(this)}t(pr,Gq);g=pr.prototype;
g.Lg=function(a,b){if(!mb()&&this.Im)if(a=this.g.Lg(this.za(),a),null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),Ve){if(!y||this.zm)if(this.Yc(),this.ta){dr(Mq.instance);qr(this);a=this.ta;rr||(rr="gcim__touch-toolbar__split",sr="gcim__touch-toolbar__button__paste",tr="gcim__touch-toolbar__button__paste__disable",ur="gcim__touch-toolbar__button__cut",vr="gcim__touch-toolbar__button__cut__disable",wr="gcim__touch-toolbar__button__copy",xr="gcim__touch-toolbar__button__copy__disable",yr="gcim__touch-toolbar__button__clear",
zr="gcim__touch-toolbar__button__clear__disable",Ar="gcim__touch-toolbar__button__undo",Br="gcim__touch-toolbar__button__undo__disable",Cr="gcim__touch-toolbar__button__select-all",Dr="gcim__touch-toolbar__button__select-all__disable");Er(a)&&Fr(a);a.g=document.createElement("div");a.g.id=a.da.la+"_TouchToolbar";a.g.className="gcim__touch-toolbar__container";a.u=!1;a.i=!1;a.h=!1;a.s=!1;a.ca=!1;a.ea=!1;if(a.da.o==a.da.v||fr(a.da))a.s=!0;if(a.da.Lk())a.i=!0,a.h=!0;else{if(a.da.o==a.da.v||fr(a.da))a.i=
!0;a.da.o==a.da.v&&(a.h=!0)}if(!a.da.sd()||fr(a.da))a.ca=!0;if(null==If(a.da.Fd())||fr(a.da))a.u=!0;Gr(a);b=Sf(a.g.firstChild.offsetWidth,a.g.firstChild.offsetHeight,b);var c=a.g;c.style.left=b.left+"px";c.style.top=b.top+"px";try{var d=Tf(a.da.Sl);var e=0!=d.ri?d.ri-100:b.top-110;0>e&&(e=d.ri+38);c.style.top=e+"px"}catch(f){}document.body.appendChild(a.g);null!=window.event&&Cf(window.event)}else qr(this),er(this).show(b)}else Ve&&this.Yc(),er(this).show(b),qr(this);this.zm=!1};
function qr(a){Er(a.ta)&&Fr(a.ta)}g.Pp=function(){return!1};g.Ge=function(){Gq.prototype.Ge.call(this);this.ul=this.Ij=this.he=!1;this.s=new Hq(this);this.Cj=this.yj=this.pi=this.wm=!1;this.ea=0;this.Cc="none";this.La=this.bb="insert";this.Pe=this.Se=this.v=this.o=0;this.Text="";this.mm=this.cm=!1};g.Ie=function(){Gq.prototype.Ie.call(this)};g.oq=function(){};g.hq=function(){return!0};g.ln=function(){Gq.prototype.ln.call(this);this.yf()};
g.yf=function(){var a=this;null!=this.za()&&null!=this.s&&(Lq(this.s,"mousedown",function(b){if(!0!==a.fa)try{a.Cj=!0,a.ea-1,a.tf(b)}catch(c){}},!1),Lq(this.s,"mouseup",function(b){Xp(a,b)},!1),Lq(this.s,"selectstart",function(b){try{if(1==Le&&0==Je&&Df(b),!Le){var c=Yf(a.za());if("undefined"==typeof c||null==c)c="";var d=null;try{d=a.ng(c)}catch(e){}0==d&&Cf(b)}}catch(e){}},!1),Lq(this.s,"keydown",function(b){if(!cq("keydown",a,b,!0)&&!0!==a.fa){a.wm=!0;var c={gd:!1,Oc:!1,Cd:!1};b.shiftKey&&(c.gd=
!0);if(b.ctrlKey||b.metaKey)c.Oc=!0;b.altKey&&(c.Cd=!0);var d=null;gf=c;try{d=a.Td(b),229==b.keyCode&&(cb||hb)?(a.pi=!0,a.yj=!1):a.pi=!1}catch(e){}null!=d&&null!=d.jd?(y&&(window.event.keyCode=d.jd),y||(Ke=!1)):(!d||d&&!1===d.Aa&&Sa?(Cf(b),y||(Ke=!1)):y?null!=b&&(b.returnValue=!0):Ke=!0,M(a))}},!1),Lq(this.s,"keypress",function(b){Wp(a,b)},!1),Lq(this.s,"keyup",function(b){a:if(!cq("keyup",a,b,!0)){if((cb||hb)&&1==a.pi){if(32==b.keyCode&&!a.yj){a.fa=!0;a.ji();a.pi=!1;a.yj=!1;break a}a.pi=!1;a.yj=
!1}if(!0!==a.fa||244==b.keyCode)try{if(a.eq)try{if(null!=a.ga){var c=a.ga.selectionStart;a.Ud(a.ga.value.substr(c-2,c),b)}}finally{a.eq=!1}gf={gd:b.shiftKey,Oc:b.ctrlKey||b.metaKey,Cd:b.altKey};a.wm=!1;a.Ae(b)}catch(d){}}},!1),Lq(this.s,"dblclick",function(b){var c=null;try{c=a.Jf()}catch(d){}c||Cf(b)},!1),Lq(this.s,"beforeinput",function(b){a.Zl(b)},!1),Lq(this.s,"beforecut",function(){},!1),Lq(this.s,"beforecopy",function(){},!1),Lq(this.s,"beforepaste",function(){},!1),Lq(this.s,"cut",function(b){try{Cf(b),
jf=b,a.dd(b)}catch(c){}finally{jf=null}},!1),Lq(this.s,"copy",function(b){try{a.ca&&(Cf(b),jf=b,a.Copy(b))}catch(c){}finally{jf=null}},!1),Lq(this.s,"paste",function(b){dq(a,b)},!1),Lq(this.s,"mousewheel",function(b){Zp(a,b)},{passive:!1}),Lq(this.s,"DOMMouseScroll",function(b){Zp(a,b)},!1),Lq(this.s,"dragstart",function(){try{a.sf=!0,a.rh()}catch(b){a.sf=!1}},!1),Lq(this.s,"dragend",function(b){try{a.Fg(b)}catch(c){}finally{a.sf=!1,cb?document.activeElement!=a.ga&&bq(a,a.Cq):"move"===b.dataTransfer.dropEffect&&
document.activeElement!=a.ga&&(a.Rm=!0,bq(a,a.Cq),a.Rm=!1)}},!1),Lq(this.s,"mouseout",function(){try{a.vk()}catch(b){}},!1),Lq(this.s,"drop",function(b){try{var c=b.dataTransfer.getData("Text");a.qm(c,b)}catch(d){}},!1),Lq(this.s,"contextmenu",function(b){var c="";try{c=Yf(a.za())}catch(d){}try{Ue!=a.la&&a.ed(),a.Lg(c,b)}catch(d){}!mb()&&a.Im&&Cf(b)},!1),Lq(this.s,"select",function(){aq(a)},!1),Lq(this.s,"input",function(b){a:if(a.Bq(b))try{if(!0!==a.fa&&!a.sf&&a.hq(b)){if(!0!==a.yl)if(cb&&!a.wm){if(a.Fa)break a}else if(!cb&&
!hb||!Re||!a.pi)break a;a.fa=!0;a.yl=!1;a.ji()}}catch(c){}},!1),Lq(this.s,"compositionstart",function(b){mb()&&(a.Ul=!0);try{a.bm(b),a.yj=!0}catch(c){}},!1),Lq(this.s,"compositionupdate",function(b){try{a.kk(b)}catch(c){}},!1),Lq(this.s,"compositionend",function(b){try{if(!y||hb){a.yl=!0;if(cb&&53<=eb||db)a.yl=!1;a.fa=!1}a.dj(b)}catch(c){}a.Ul=!1;a.Qm&&(a.Vd(),a.Qm=!1)},!1))};
g.dispose=function(){if(this.za()){Af(this.za());for(var a in this.i)this.i.hasOwnProperty(a)&&(this.i[a]=null);this.Cm=this.i=null}};g.za=function(){return null};g.uh=function(){return!1};g.Rd=function(){};function Hr(a){null!=a.Gg&&"KeyExit"==a.Gg.Ek&&(N(a.host,a.Gg.gb,a.Gg.ib),a.ea=4,a.Gg=null)}g.gp=function(){return!0};function fr(a){return a.za().readOnly}function Ir(a,b){b=I(Ea,b);null!==b&&(a.Cc=b)}g.Sg=function(){return!1};g.Qb=function(){return"always"};g.Ue=function(){return""};g.Fd=function(){return!1};
g.Td=function(){throw Zb();};g.Zl=function(){};g.Ud=function(){};g.Ae=function(){};g.tf=function(){};g.ke=function(){};g.Am=function(){};g.vk=function(){};g.ed=function(){};function $p(a){a.ul||(sg(a.host,a.i._onEnter,null),a.ul=!0)}g.Ck=function(){};g.Vd=function(){};g.bm=function(){this.fa=!0;var a=Kq(this,!0).Db;if(a||kf)this.Text=this.ia(),F(this.Text)&&Sa?this.hm=!0:Iq(this.s,this.Text),this.bo()&&a&&this.Ca(0,0)};g.bo=function(){return cb};
g.kk=function(a){M(this);this.hm&&(Iq(this.s,a.data),this.hm=!1)};g.dj=function(){};g.ji=function(){};g.Bq=function(){return!0};g.ng=function(){};function Jr(a){return!fr(a)&&a.host.enabled&&a.ca?!0:!1}g.dd=function(){};g.Copy=function(){};g.Rb=function(){};g.pc=function(){};g.jk=function(){};g.Jf=function(){};g.rh=function(){};g.Fg=function(a){this.cm=!0;try{null!=a&&null!=a.dataTransfer&&"move"===a.dataTransfer.dropEffect&&this.rf()}finally{this.cm=!1}};g.Io=function(){};g.Jo=function(){};
g.qm=function(){};g.Bk=function(){};g.oj=function(){};g.sd=function(){return!1};g.rf=function(){};g.Yc=function(){this.ti();return this};g.ti=function(a){a=this.g.Yc(a);null!=a&&(null!=a.o&&this.Sk(a.o),null!=a.v&&this.mn(a.v),this.ca&&this.Ca(this.o,this.v))};g.Sk=function(a){this.o=a};g.mn=function(a){this.v=a};function Kr(a){a.o!=a.v&&(a.Sk(a.v),a.ca&&a.Ca(a.v,a.v))}
g.Ca=function(a,b,c){var d=this;if(null!=a&&null!=b&&!isNaN(a)&&!isNaN(b)){this.o=a;this.v=b;if(!this.cm)if((cb||Sa||db)&&c)switch(this.ea){case 0:var e=this;setTimeout(function(){d.pg(e.o,e.v,c)},0);break;case 1:"field"===this.Od()||"all"===this.Od()||!0===this.Od()?this.pg(a,b,c):this.Oo()&&setTimeout(function(){return d.pg(a,b,c)},50);break;default:this.pg(a,b,c)}else this.pg(a,b,c);a==b&&(this.g.lb=!1)}};g.Oo=function(){return!0};g.Od=function(){return"none"};g.nk=function(){return null};
g.pg=function(a,b){qg(this,a,b)};g.Ub=function(){};g.Lk=function(){return!1};g.fb=function(){};g.qa=function(){return null};g.ia=function(){return this.Text};g.Um=function(){return new Lr};g.Tm=function(){return new Lr};g.eb=function(){null==this.Nq&&(this.Nq=this.Um());return this.Nq};g.xb=function(){null==this.Lp&&(this.Lp=this.Tm());return this.Lp};function Mr(a,b){b=lg(b);if(b!==a.eb().h){var c=a.eb().h;a.eb().h=b;a.zj(c,b);M(a)}}g.zj=function(a,b){this.eb().g=b};
function Nr(a,b){b=lg(b);if(b!==a.xb().h){var c=a.xb().h;a.xb().h=b;a.Ch(c,b);M(a);Dq(a)}}g.Ch=function(a,b){this.xb().g=b};g.Pf=function(){return null==this.qa()};g.wf=function(a){a=a?this.eb():this.xb();return this.Pf()?a.g:""};function Kq(a,b){null==b&&(b=a.ca);var c=a.wf(b);b!=a.ca?(b=c,a=""!==c):(b=a.s.ia(),a=""!==c&&c===a.s.ia());return{Db:a,og:c,Vc:b}}g.Qj=function(){if(!Kq(this).Db)return"";var a=this.ca?this.eb():this.xb();return this.Pf()&&null!=a.g&&""!==a.g?"nullWatermark":""};
function Or(a,b){a.Cm=b}function M(a){var b=a.Qj();if(a.Cm)try{a.Cm(b)}catch(c){console.error(c)}}g.autoScaleText=function(){this.ga.style.transform="";this.ga.style.width="";if(this.qn()){var a=this.ga;if(y||Sa){var b=new lf;b.h=a;a=of(b,a.value)+Nd(a)}else a=db?a.scrollWidth+Nd(a):a.scrollWidth;b=this.ga.getBoundingClientRect().width;a<=b||(a=b/a,a<this.vl&&(a=this.vl),this.ga.style.transform="scaleX("+a+")",this.ga.style.width="calc(100%/"+a+")")}};g.qn=function(){return this.autoScale};
g.yn=function(){this.za().focus();this.o===this.v&&this.Yc();if("function"!==typeof document.execCommand||!document.execCommand("copy")){var a=new Event("copy");this.ga.dispatchEvent(a)}};function O(a,b,c){a.i&&(Array.isArray(a.i[b])||(a.i[b]=[]),-1===a.i[b].indexOf(c)&&a.i[b].push(c))}function P(a,b,c){if(a.i&&(a=a.i[b],Array.isArray(a)))for(b=0;b<a.length;b++)if(a[b]===c){a.splice(b,1);break}}
g.hb=function(a,b,c){c=void 0===c?!0:c;b=this.Text;a=null!=a&&null!=a.Text?a.Text:a;if(this.Text!==a){this.Text=a;var d=this.i.Input;Array.isArray(d)&&c&&N(this.host,d,{oldText:b,newText:a})}this.host&&sq(this.host);this.host&&uq(this.host);this.autoScaleText();Dq(this);return!0};g.setExitOnEnterKey=function(a){a=I(Ia,a);this.wl!==a&&null!==a&&(this.wl=a)};g.yd=function(){return this.wl};g.En=function(){return this.wl};
function Pr(a,b){var c=a.En();switch(b){case 13:if("enter"===c||"both"===c)return a.Mj();break;case 65549:if("shiftenter"===c||"both"===c)return a.Oj()}return""}g.Mj=function(){return"nextcontrol"};g.Oj=function(){return"previouscontrol"};function Qr(a){"false"!=a.za().dataset.triggeredByInput&&a.host&&a.host.Wm&&a.host.Kj()&&(a=a.host.getDropDownWindow())&&a.open()}function Rr(a){a.host&&a.host.Wm&&(a=a.host.getDropDownWindow())&&a.close()}
function Sr(a,b){b=void 0===b?!1:b;var c;if(!a.host)return 0;var d=a.host?parseInt(window.getComputedStyle(a.host.getUIInputElement()).paddingLeft):0,e=a.host?parseInt(window.getComputedStyle(a.host.getUIInputElement()).paddingRight):0,f=a.host?a.host.getLayoutElement().offsetWidth:0;f-=b?lo(a.host.sideBtnController):ko(a.host.sideBtnController);f-=d+e;null===(c=a.host.iconNotifiers)||void 0===c?void 0:c.forEach(function(h){"inside"===a.host.il(h.direction)&&(f=b?f-("clear"===h.iconState?0:h.getWidth()):
f-h.getWidth())});return f}
function Dq(a,b){var c,d;if(null!==(c=a.host)&&void 0!==c&&c.initComplete){b="boolean"===typeof b?b:(null===(d=a.host)||void 0===d?void 0:d.getUIInputElement())===document.activeElement;d=a.Sm;b={Ej:b&&!a.host.readOnly,kl:!F(a.s.ia()),Lh:a.Nc};var e=a.host?parseInt(window.getComputedStyle(a.host.getUIInputElement()).paddingLeft):0;c=a.host?a.host.getLayoutElement().offsetWidth:0;e="number"===typeof e?(a.host?a.host.getUIInputElement().getBoundingClientRect().left-a.host.getLayoutElement().getBoundingClientRect().left:0)+
e:0;var f="outside"===a.Nc.direction?0:e,h=Sr(a,!0);a="outside"===a.Nc.direction?c:Sr(a);a=Math.round(a/.7);a={Fp:e+"px",Np:f+"px",Gp:h+"px",Op:a+"px"};b.Ej?nr(d,b,a):or(d,b,a)}}
p.Object.defineProperties(pr.prototype,{Nc:{configurable:!0,enumerable:!0,get:function(){this.Tp||(this.Tp=new hr);return this.Tp}},Sm:{configurable:!0,enumerable:!0,get:function(){this.Wp||(this.Wp=new mr);return this.Wp}},showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.Im=a}},acceptsTabChar:{configurable:!0,enumerable:!0,get:function(){return this.Ep},set:function(a){a=I(Ha,a);null!==a&&(this.Ep=a)}}});function Lr(){this.g=this.h=""};function Tr(a){this.nf=this.maxLength=this.minLength=-1;this.oldText=this.text="";this.u=a}g=Tr.prototype;g.wb=function(){var a={};a.text=this.text;a.oldText=this.oldText;return a};g.Lb=function(a){this.text=a.text;this.oldText=a.oldText};g.ia=function(){return null==this.Text?null:this.Text};g.je=function(a){this.text=a};
g.Ob=function(a,b){if(Q&&this instanceof Q||null==a||1>b)return!1;b+=0;var c=this.text;return 1==a?(this.je(c+b),!0):0==a?(c=c<b.toString()?(0).toString():(parseFloat(c)-b).toString(),this.je(c),!0):!1};g.Eb=function(){};g.Jb=function(){};g.Ab=function(){};g.fb=function(){this.text=null};g.ba=function(){return this.text.ba()>this.minLength?this.text.ba():this.minLength};g.Ba=function(){return null!=this.Qa?this.Qa.ba():0};
function Q(a){Tr.call(this,"PromptField");null!=a&&0<a.ba()&&(this.text=a);this.minLength=this.text.ba();this.maxLength=this.text.ba()}t(Q,Tr);Q.prototype.ia=function(){return this.text};Q.prototype.je=function(a){var b={};a==this.h?(b.Za=!1,a=C(a,this.text.ba())):b.Za=!0;b.text=a;return b};Q.prototype.ba=function(){return this.text.ba()};var Ur={ValidateEx:"validateex",Validate:"validate",ValidateNone:"validatenone"};v("ValidateMode",Ur);var Vr={Default:0,Era:1,Year:2,Month:3,Day:4,AMPM:5,Hour:6,Minute:7,Second:8};Vr[Vr.Default]="Default";Vr[Vr.Era]="Era";Vr[Vr.Year]="Year";Vr[Vr.Month]="Month";Vr[Vr.Day]="Day";Vr[Vr.AMPM]="AMPM";Vr[Vr.Hour]="Hour";Vr[Vr.Minute]="Minute";Vr[Vr.Second]="Second";v("DateCursorPosition",Vr);var Wr={Hour0As12:"hour0as12",Hour12As0:"hour12as0"};v("Hour12Mode",Wr);var Xr={Picker:"picker",Calendar:"calendar"};
v("DateDropDownType",Xr);function Yr(a){this.rd=this.zd=this.dg=this.lf=this.lb=!1;null!=a&&(null!=a.Te&&(this.l=a.Te),null!=a.ie&&(this.oa=a.ie),null!=a.Ha&&(this.Ha=a.Ha))}function Zr(a){return a.da.za()}g=Yr.prototype;g.Qb=function(){return void 0!==this.da.Qb?this.da.Qb():"always"};g.xj=function(a,b){var c={};if(1==a||a==a.Sq)c.o=0,c.v=b.ba();return c};g.fb=function(){return null};
g.ed=function(a){var b=a.Text,c=a.Vc,d=a.Va,e=a.Element,f=a.Yq,h=a.If,k={};this.lb=!1;1!=d||cb||(k.o=bg(e),k.v=k.o);k.Text=b;-1==k.o?(k.o=0,k.v=0):k.o>k.Text.ba()?(k.o=k.Text.ba(),k.v=k.Text.ba()):k.o==c.ba()&&(k.o=k.Text.ba(),k.v=k.Text.ba());9==d&&0==h?(k.o=0,k.v=0):10==d&&0==h&&(k.o=k.Text.ba(),k.v=k.Text.ba());if("none"==f&&0==h)return k;a=this.xj(f,k.Text,h,null==k.o?a.o:k.o);null!=a&&(k.o=a.o,k.v=a.v,k.Po=!0);return k};g.Vd=function(){};
g.tf=function(a){var b={};this.dg=!1;this.lf&&!Te&&0==a&&(this.dg=!0,b=this.Yc());this.lf=!1;return b};g.ke=function(a,b,c,d,e){var f={};if(this.dg)return qg(this.da,b,c),null;if(e)return f=this.Yc(),qg(this.da,f.o,f.v),f;f.o=b;f.v=c;0==d&&(f.o=dg(a),f.v=eg(a));this.lb=f.o!=f.v?!0:!1;return f};
function $r(a,b,c){var d={};if(null===b)return d;switch(b.toLowerCase()){case "nextcontrol":return a=as(a,Zr(a),!0,"NextControl"),null!=a&&(d.pa=a.pa,d.Va=a.Va,d.Ib=!0),d.Aa=!1,d;case "previouscontrol":return a=as(a,Zr(a),!1,"PreviousControl"),null!=a&&(d.pa=a.pa,d.Va=a.Va,d.Ib=!0),d.Aa=!1,d;case "nextfield":return a.le(c.v,!0);case "previousfield":return a.le(c.v,!1)}}g.yk=function(){return null};g.zk=function(){};g.Ak=function(){};
g.Td=function(a){var b=a.jd,c=a.o,d=a.v,e=a.Text,f=a.Vc,h=a.fm,k=a.nj,l=a.uj,m=a.am,n=a.Re,q=a.gm,u=a.$e,r={};switch(h){case "insert":case "fixedinsert":this.zd=!1;break;case "overwrite":case "fixedoverwrite":this.zd=!0}this.lb=c!=d;switch(b){case 9:return r=this.oi(d,!0,u);case 65545:return r=this.oi(d,!1,u)}if(null!=k&&(r=$r(this,k,a)))return r.Zp=!0,r;if(l){if(27==b||262182==b||262184==b||38==b||40==b)return null;if(131117!=b&&131139!=b&&9!=b&&65545!=b&&131081!=b&&196617!=b&&131137!=b&&37!=b&&
39!=b&&38!=b&&40!=b)return r}if(0==this.l.j.g){switch(b){case 45:return this.zd="fixedinsert"==h?!1:"fixedoverwrite"==h?!0:!this.zd,r.mi=this.zd,0==this.l.j.g&&(r.Aa=!0),r;case 37:case 131109:if(0==c&&("both"==q||"left"==q))return c=as(this,Zr(this),!1,37==b?"Left":"CtrlLeft"),null!=c&&(r.pa=c.pa,r.Va=c.Va,r.Ib=!0),r;break;case 39:case 131111:if(c==f.ba()&&("both"==q||"right"==q))return c=as(this,Zr(this),!0,39==b?"Right":"CtrlRight"),null!=c&&(r.pa=c.pa,r.Va=c.Va,r.Ib=!0),r}return null}r=this.yk(b,
c,d,n,e,f);if(null!=r)return r;r={};switch(b){case 45:this.zd="fixedinsert"==h?!1:"fixedoverwrite"==h?!0:!this.zd;r.mi=this.zd;r.Aa=!1;0==this.l.j.g&&(r.Aa=!0);break;case 8:r=this.zh(c,d);r.Aa=!1;break;case 46:r=this.Ig(c,d);r.Aa=!1;break;case 196643:case 196644:case 196645:case 196647:case 65569:case 196641:case 65570:case 196642:if(65569==b||196641==b)b=196644;else if(65570==b||196642==b)b=196643;r.v=this.Ed(d,b);this.lb=!0;r.Aa=!1;break;case 65582:case 65544:if(this.lb)if(this.da.Sg())r=this.dd(m,
c,d);else{r.Aa=!0;break}else r=this.zh(c,d);r.Aa=!1;break;case 65581:case 131158:r.Aa=!0;f=Wf(this.da?this.da.Fd():!0);r=this.pc(c,d,f,n);(cb||db||Wa||Ta)&&this.da.Fd()?(hf=null,r.Aa=!0):r.Aa=!1;break;case 65571:case 65572:case 65573:case 65575:case 65574:case 65576:this.lb=!0;r.v=this.Ed(d,b);r.Aa=!1;break;case 131139:case 131117:r.Aa=!0;this.da.Sg()&&(y&&!Sa&&c===d?r.Aa=!0:(this.Copy(m,c,d),r.Aa=!1));break;case 131118:this.lb||(d=this.Ed(d,b));r=this.Ig(c,d);r.Aa=!1;break;case 131080:case 196616:this.lb||
(d=this.Ed(d,b));r=this.zh(c,d);r.Aa=!1;break;case 131137:r=this.Yc();r.Aa=!1;break;case 131160:r.Aa=!0;this.da.Sg()&&(r=this.dd(m,c,d),r.Aa=!1);break;case 131162:r=this.Ub();r.Aa=!1;break;case 131109:case 37:if(0==c&&("both"==q||"left"==q)){c=as(this,Zr(this),!1,37==b?"Left":"CtrlLeft");null!=c&&(r.pa=c.pa,r.Va=c.Va,r.Ib=!0);break}case 131108:case 131110:case 36:case 33:case 131105:if(33==b||131105==b)b=131108;r=this.zk(c,d,b);r.Aa=!1;break;case 131111:case 39:if(c==f.ba()&&("both"==q||"right"==
q)){c=as(this,Zr(this),!0,39==b?"Right":"CtrlRight");null!=c&&(r.pa=c.pa,r.Va=c.Va,r.Ib=!0);break}case 131107:case 131112:case 35:case 34:case 131106:if(34==b||131106==b)b=131107;r=this.Ak(c,d,b);r.Aa=!1;break;default:r=null}return r};g.Ud=function(){};g.Ae=function(){};g.Lg=function(a,b){var c={};""==b&&(c.o=bg(a),c.v=c.o);return c};g.ng=function(a,b,c){var d={};""!=b||this.dg||this.lf||-1==c||(d.o=bg(a),d.fp=!0);return d};
g.Jf=function(a){var b={};a=this.l.j.Tb(a);a=this.l.j.Ya(a.index);b.o=a.start;b.v=a.length+a.start;Te=!1;this.lf=!0;setTimeout(function(){Te=!0},300);return b};g.Ub=function(){};g.dd=function(a,b,c){var d={};if(b==c)return d;this.Copy(a,b,c);return d=this.Ig(b,c)};
g.Copy=function(a,b,c){var d=null,e=!0;if("excludeliterals"==a){a=Math.abs(b-c);b=Math.min(b,c);if(0==a)return;d=this.l.j.vh(b,a)}else d=!y||Xa?Yf(this.da.za()):document.selection.createRange().text;this.da&&(d=bs(d,this.da.Ue(),this.da.acceptsTabChar),e=this.da.Fd());y&&!Sa?setTimeout(function(){Gf(d,e)}):Gf(d,e)};g.pc=function(){};g.Yc=function(){var a={o:0},b=Kq(this.da,!0);a.v=b.Db?b.og.length:0===this.l.j.g?this.da.s.ia().length:this.l.j.ba();this.lb=!0;return a};
function N(a,b,c){if(null==b)return null;if(sg(a,b,c,""))return 3}
g.Hg=function(a,b,c,d){var e={},f=Math.min(a,b);a=Math.abs(b-a);e.start=f;e.success=!1;if(-1==cs(this.l.j,f).index)return this.da.i.InvalidInput&&(d={},d.gb=this.da.i.InvalidInput,d.ib=null,e.pa=d),e;b=c.toString();if(0!=a||this.zd)if(0==a)if(f==this.l.j.ba())c=this.l.j.$d(f,b,!1);else{var h=this.l.j.Tb(f);var k=h.index;h=h.offset;var l=this.l.j.Ya(k);Q&&this.l.j.ma(k)instanceof Q?f-h+l.length==this.l.j.ba()?k=!1:(k=!0,a=l.length-h+1):(k=!0,a=c.ba());if(-1==this.l.j.Tb(f+a).index)return this.da.i.InvalidInput&&
(d={},d.gb=this.da.i.InvalidInput,d.ib=null,e.pa=d),e;c=k?this.l.j.Lf(f,a,b,!1):this.l.j.$d(f,b,!1)}else c=this.l.j.Lf(f,a,b,!1);else c=this.l.j.$d(f,b,!1);if(""!=c.text)return this.da.i.InvalidInput&&(d={},d.gb=this.da.i.InvalidInput,d.ib=null,e.pa=d),e.start=f,e.success=!1,e;f=c.cursorPos;1==d&&(f==this.l.j.ba()?this.rd=!0:(h=this.l.j.Tb(f),k=h.index,h=h.offset,k==this.l.j.g-1&&0==h&&Q&&this.l.j.ma(k)instanceof Q&&(this.rd=!0)));e.start=f;e.success=!0;return e};
g.sj=function(a,b){var c=Math.min(a,b);b=Math.abs(a-b);a={};if(c==this.l.j.ba()&&0==b)return a;var d=this.l.j.Tb(c);var e=d.index;if(-1==e)return a;if(0==b){if(Q&&this.l.j.ma(e)instanceof Q)return a;c=this.l.j.Sd(c,1).cursorPos;a.o=c;a.v=a.o}else{d=this.l.j.Tb(c+b);var f=d.offset;d=d.index;if(-1==d)return a;0==f&&d--;if(e==d&&Q&&this.l.j.ma(e)instanceof Q)return a;c=this.l.j.Sd(c,b);if(!c.eo)return a;a.o=c.cursorPos;0==a.o&&Q&&this.l.j.ma(0)instanceof Q&&(a.o=this.l.j.ma(0).ba());a.v=a.o;b=this.l.j.Tb(a.o);
c=b.index;b=b.offset;0!=b&&Q&&this.l.j.ma(c)instanceof Q&&(a.o=a.o-b+this.l.j.ma(c).ba(),a.v=a.o)}return a};g.zh=function(){};g.Ig=function(){};
g.Ed=function(a,b,c,d,e){var f=this.l.j,h=f.Tb(a),k=h.index;h=h.offset;switch(b){case 36:case 65572:case 65574:return a<=c?0:c;case 35:case 65571:case 65576:return a>=d?f.ba():d;case 37:if(0==a)return 0;f.ma(k).u==e?0<h?a-=h:a--:0==h&&f.ma(k-1).u==e?a-=f.Ya(k-1).length:a--;break;case 39:if(a==f.ba())break;if(f.ma(k).u==e){if(e=f.Ya(k),c=e.start,d=c+e.length,a<d)return d}else a++;break;case 131109:if(0==a||0==k)return 0;if(f.ma(k).u==e)e=f.Ya(k-1),a=e.start;else{if(0==h){for(c=k-1;0<=c;c--)if(f.ma(c).u!=
e)return e=f.Ya(c),e.start;return 0}a-=h}break;case 196645:if(0==a||0==k)return 0;0==h?(e=f.Ya(k-1),a=e.start):a-=h;break;case 131111:if(a==f.ba()||k==f.g-1)return f.ba();if(f.ma(k).u==e)e=f.Ya(k+1),a=e.start;else{for(c=k+1;c<f.g;c++)if(f.ma(c).u!=e)return e=f.Ya(c),e.start;return f.ba()}break;case 196647:if(a==f.ba()||k==f.g-1)return f.ba();e=f.Ya(k+1);a=e.start;break;case 131118:if(a==f.ba()||f.ma(k).u==e)break;else return e=f.Ya(k),e.start+e.length;case 131080:case 196616:if(0!=a&&(f.ma(k).u!=
e||0!=k)){if(f.ma(k).u==e)return f.Ya(k-1).start;if(0==h)for(c=k-1;0<=c;c--){if(f.ma(c).u!=e)return e=f.Ya(c),e.start}else a-=h}break;case 196643:case 131107:case 131112:return f.ba();case 196644:case 131108:case 131110:return 0;case 65573:return 0==a?0:--a;case 65575:if(a!=f.ba())return++a}return a};
function as(a,b,c,d){var e=Zd().sort(Yd),f=null,h={};if(2>e.length)return null;var k=Xd(b,e,c);try{setTimeout(function(){k.Qe&&k.Qe.focus()},100)}catch(l){}b={};switch(d.toLowerCase()){case "nextcontrol":b.ig=3;h.Va=4;break;case "previouscontrol":b.ig=4;h.Va=4;break;case "right":b.ig=5;h.Va=4;break;case "left":b.ig=6;h.Va=4;break;case "ctrlright":b.ig=7;h.Va=4;break;case "ctrlleft":b.ig=8;h.Va=4;break;case "charinput":b.ig=9,h.Va=4}a.da.i.KeyExit&&(f={},f.gb=a.da.i.KeyExit,f.ib=b);null!=f&&(h.pa=
f);return h}g.le=function(a,b){a=this.l.j.le(a,b);b={};if(-1==a||!this.$m(a))return b.nr=-1,b;b.o=a;b.v=a;return b};g.$m=function(){return!0};g.oi=function(a,b){a={};var c={};a.ig=b?1:2;this.da.i.KeyExit&&(b={},b.gb=this.da.i.KeyExit,b.ib=a,c.pa=b);c.Va=4;c.Aa=!0;return c};function ds(a,b,c){b=a.le(b,c);if(-1!=b.nr)return b;a=as(a,Zr(a),c,c?"NextControl":"PreviousControl");null!=a&&(b.pa=a.pa,b.Va=a.Va,b.Ib=!0);return b}g.rh=function(){};g.Fg=function(){};g.Ob=function(){};
function es(a,b,c){var d=a;a&&("Filter"===c?d=a.replace(b,""):"Cut"===c&&(a=a.split(b),d=0<a.length?a[0]:""));return d}function fs(a,b){return es(a,RegExp("[\r\n]","g"),{filter:"Filter",cut:"Cut",nocontrol:"NoControl"}[b])}function bs(a,b,c){a=fs(a,b);return a=es(a,RegExp("\t","g"),{filter:"Filter",cut:"Cut",nocontrol:"NoControl"}[c])};var gs=[35,48,49,50,51,52,53,54,55,56,57],hs=[9728,9983,9984,10175,10240,10495,11008,11263,19904,19967,65936,65999,118784,119039,119040,119295,119296,119375,119552,119647,126976,127023,127024,127135,127136,127231,127232,127487,127488,127743,127744,128511,128512,128591,128640,128767,128768,128895],is=[169,174,8194,8195,8197,8252,8265,8482,8505,8596,8597,8598,8599,8600,8601,8617,8618,8986,8987,9193,9194,9195,9196,9200,9203,9410,9642,9643,9654,9664,9723,9724,9725,9726,10548,10549,12336,12349,12951,12953];
function js(a){try{if(0>=a.length-1||ks(a)?0:ls(gs,ms(a,0))&&8419===ms(a,1))return!0;a:{var b=ms(a,0);if(null!==b)for(var c=Math.floor(hs.length/2),d=0;d<c;d++)if(hs[2*d]<=b&&b<=hs[2*d+1]){var e=!0;break a}e=!1}var f;if(!(f=e)){var h=ms(a,0);f=null===h?!1:ls(is,h)}if(f)return!0}catch(k){}return!1}function ks(a){a=a.charCodeAt(0);return 55296<=a&&56319>=a}function ls(a,b){for(var c=0,d=a.length-1;c<=d;){var e=Math.floor((c+d)/2);if(a[e]===b)return!0;a[e]>b?d=e-1:c=e+1}return!1}
function ms(a,b){if(0>b||b>=a.Qc)return fc(),null;var c=a.charCodeAt(b)-55296;if(0>c||2047<c)return a.charCodeAt(b);if(1023<c||b>=a.length-1)return gc(),null;a=a.charCodeAt(b+1)-56320;return 0>a||1023<a?(gc(),null):1024*c+a+65536};var ns=null,os=null;function ps(a){if(0>a||1114111<a||55296<=a&&57343>=a)return fc(),"";if(65536>a)return String.fromCharCode(a);a-=65536;return String.fromCharCode(Math.floor(a/1024)+55296,a%1024+56320)}
function qs(a){var b=0;null===ns&&(ns=JSON.parse("["+op("ADEAMwAzADEANAAsAQABAgA2AQUBAQAxADcBCQECADgBDQA1ADEBEAEEAQYANQEIARUBDwEGADYBFwEBADcBDAEGADgAOQEJADQAMQAyASMAMQEcASQBGQAzADQBAQEjADQBKwA0ADUAMAEjADUBMQA2ASYBAAA0ADcBIgE6ADkAMwEjADkBKQA5AR8BLAA5AT0AMwEzATQBAAEzARIBTAAwADUBCQEzAUUBEQFOAUkBKAFSADIBVAECAVIBLAFSATMBXwEUAUkANQFUATYBUgEhAVIBQgFpAUgANgAwAUsAMwFtARwANgFYAQABcwFFATgBbwE4AXIAMwF5AREBCQEbAVYBGwE5AXAANgF3ADcBKwGFAUgANwFeAQABiwEcADcBYAGNADYBUQGNADgBgwGHAY8AOQFvADgBJQEJAZwBSAGWAaAANAFiADgANgGkAZoBngA5AYMBIQErAZoBQAEAAZoBlAAzADkAMQGyAaoBSAA5AWQ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E2A+1X9AP9WGYEBAR1BnUEDTHnBBFVOVoGWsVVziNDBBwM+QQPBa0EFVjlEZpapxNOBA8JAwQVVLwjYgQ2BB9azQUvBBVaJASRBLwjZQQPLT0EFQqYWuYF9wQYAqAjiAQcNd8D9gxiWu8DX1rvD7sLcVoMI68D7xDxWvgN1QtxDdwLcVpySAha+Am5C3EJxVsDA3IRqQQUEakEAw//BDYQBAQBEARbDFgECWpX/wlqBIEBCgQ2Oek0OwVZSFYEHDpKBCcYSDQ+WxNA6gQnCJ80PgRRHV5bFVUFSHoD+FdvBC9V9SQcBCUVfwQvA8MkHAL8CXEEYBbABEBaXCksWwYC4gRKH1wEThfjBE4Ud1tCBSAkyAP6DW0EDUPHNFoEOlffBHQFM0mGW0klHQRwVbUCUAX5AxcEYEacBGUadyplNcQqZR+XKmVTwkniBJ1UqBHfVjMR4gRZFa8ENhWvBJItTiplDuMEvVlzW3AFJEocBL8aogS1IrxbdwRqStNbeQRiBNkErSnqW3AEuArbW3ADVCWsWzMmjVt3BHoErgQNBK5bfwUIJaxbZgSwW31VKVt3BMUltgQBBOQEs1chBL0LIFucWHcJoVQ8CaFbehM4W5wEuA9ZW6UEvwvlBLU8+1ulW30TPVucAYwJoQRzW7JbjAKnW6tWygmhA/wnDlurA5UlugStLlEEvQb0")+"]"));
var c=ns;for(var d=c.length-1;b<=d;){var e=Math.floor((b+d)/2);if(c[e]===a)return e;c[e]>a?d=e-1:b=e+1}return-1}
function rs(a){try{var b=a.charCodeAt(0);if(-1!==qs(b)){null===os&&(os=JSON.parse("["+op("ADUALAAyACwAMQEDACwAMwEGAQgBBAECAQsBAQEFAQQBBwEKAQUBDAERAQwBBwECAREBFgENAQQANAENAQwBHgEIAQcBGQEfARkBBAElARIBDgEaASkBDwEqAR0BKQEVAS0BAgEhASgBMQEnAS8BFwEgAQ0BEAEnARQALAEcARMBLgEoATwBHAEcATwBNwE8ASYBHwE/AS8BGAEtAUQBMAEFASIBUAEzAS0BJgFIAUABRQFAATcBJ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OIEgQhEA4cLgwq1BrAMCQvFBZQMKAgOBkEKzAaMCk4MSQv1C4AH1gxCAg4EzgswAicLXwJmC9kLlwoyAoEJnwXRBpsMFwRNBioKlgv+BkIElwayCDgE8wJvAbwL/Ap/CXQLqwcIBqQKnQslClcMAgFBAZUFvgYmB/oBDAfbCxwMCwQKBO4HPQtJBUoBZwV6AbUBzQGrBYQBqAanAbsJGgodA7QBSgwpAYwBqQyLBE4BkQdJAdQBpgFnAagC6QySCK0B1wbmBXQBrwRSAcgBdgG8Be8BywyWAdcMgwcOBywLJQFmAdYBdQHMDJsBTwf4Ac4H+QG8DIMMjAFqDK4MtgJ4AVsMkgicDKYBegysDKUBiAhJAUwMmQnpBMIMbQy+ChYBxQf4AToCoAE/BAEK2wLaDKcMlQHTBF4HqQf9CI0JmQEfCZkM1Qq8B7YHzQGUBxcMtAy+BkcIJAe/DJQBWAzpChUBkApmAcEMwgdVDO4MswkQBt8M8AHADCgDyQF5CxsMrwyjDLcD1AGyAjYMlAz6DNUBagf4AccMvwGxDPEMggziAXYNBgyKCKwBmAz1DQkBLQyxC+YB6AGiDNAM/QGlAbAM+QyPCckMngyyBNEMqwFfDOMCLw0ZDQwNEgzACnQNAQ0nDOMMjAbmDOoNLQzwDLUMlQ0zDIMBrg0SCY8NOAGrDKoFdQydAy0J5wpyAcIM7AzIAx8NJA0SBqQNNQyvDQoMgwz8DQgL4QG4DUkBsw1JDTEMwAyUBsICeA0uDO0FDwzFDKAMuQzTDTENCgzEDU4M8g1TDR0Fvw0+CiUHtgtdC6YLhA0nDMoNWAGXBrkMlwG6")+"]"));
var c=os[0],d=ps(b);if(0+d.length<a.length){var e=ss(a,0+d.length);if(null===e)return!1;if(917760<=e&&e<917760+c)return!0}}return!1}catch(f){return!1}}function ss(a,b){if(0>b||b>=a.Qc)return fc(),null;var c=a.charCodeAt(b)-55296;if(0>c||2047<c)return a.charCodeAt(b);if(1023<c||b>=a.length-1)return gc(),null;a=a.charCodeAt(b+1)-56320;return 0>a||1023<a?(gc(),null):1024*c+a+65536}
function ts(a){if(rs(a)){var b;if(b=ks(a))b=a.charCodeAt(1),b=56320<=b&&57343>=b;return b?a.substring(0,2):a.substring(0,1)}a:{var c="";try{if(0<a.length){var d=ss(a,0);if(null===d){b=c;break a}ps(d);-1!=qs(d)&&(c=ps(d)+ps(917760))}}catch(e){}b=c}return b};function us(a,b){this.format=b;this.s=this.u=this.ca=this.ea="";this.g=this.h=3321888768;this.fa=!0;this.autoConvert=a;this.i=L;a=this.format;a:if(null==a||0==a.ba())b="";else{b="";for(var c=0;c<a.ba();c++){var d=C(a,c,c+1);if("\\"==d)if(c!=a.ba()-1)b+=d,b+=C(a,c+1,c+2),c++;else{ec(a);b="";break a}else if("^"==d)break;else b+=d}}this.ea=b;this.ca=vs(a);a:if(a=this.ea,null==a||0==a.ba())this.h=3321888768,this.ea=this.u="";else for(this.h=0,this.u="",b=0;b<a.ba();b++)switch(a.charCodeAt(b)){case 94:break;
case 92:if(b==a.ba()-1){ec(a);this.h=3321888768;this.ea=this.u="";break a}this.u+=C(a,b+1,b+2);b++;break;case 65313:-2147483646!=(this.h&2147483650)&&(this.h|=2147483650);break;case 65:1073741825!=(this.h&1073741825)&&(this.h|=1073741825);break;case 65345:-2147483640!=(this.h&2147483656)&&(this.h|=2147483656);break;case 97:1073741828!=(this.h&1073741828)&&(this.h|=1073741828);break;case 65323:-2147450880!=(this.h&2147516416)&&(this.h|=2147516416);break;case 75:1073758208!=(this.h&1073758208)&&(this.h|=
1073758208);break;case 65305:-2147483616!=(this.h&2147483680)&&(this.h|=2147483680);break;case 57:1073741840!=(this.h&1073741840)&&(this.h|=1073741840);break;case 65283:-2147475456!=(this.h&2147491840)&&(this.h|=2147491840);break;case 35:1073745920!=(this.h&1073745920)&&(this.h|=1073745920);break;case 65312:-2147481600!=(this.h&2147485696)&&(this.h|=2147485696);break;case 64:1073742848!=(this.h&1073742848)&&(this.h|=1073742848);break;case 65314:-2147483520!=(this.h&2147483776)&&(this.h|=2147483776);
break;case 66:1073741888!=(this.h&1073741888)&&(this.h|=1073741888);break;case 65336:-2147483136!=(this.h&2147484160)&&(this.h|=2147484160);break;case 88:1073742080!=(this.h&1073742080)&&(this.h|=1073742080);break;case 65322:-2130706432!=(this.h&2164260864)&&(this.h|=2164260864);break;case 65338:-2080374784!=(this.h&2214592512)&&(this.h|=2214592512);break;case 65325:-2146435072!=(this.h&2148532224)&&(this.h|=2148532224);break;case 65321:-2145386496!=(this.h&2149580800)&&(this.h|=2149580800);break;
case 72:1107296256!=(this.h&1107296256)&&(this.h|=1107296256);break;case 78:1207959552!=(this.h&1207959552)&&(this.h|=1207959552);break;case 65326:2415919104!=(this.h&2415919104)&&(this.h|=2415919104);break;case 65319:2684354560!=(this.h&2684354560)&&(this.h|=2684354560);break;case 65331:2147614720!=(this.h&2147614720)&&(this.h|=2147614720);break;case 83:1073807360!=(this.h&1073807360)&&(this.h|=1073807360);break;case 65332:2147745792!=(this.h&2147745792)&&(this.h|=2147745792);break;case 65316:2148007936!=
(this.h&2148007936)&&(this.h|=2148007936);break;case 65317:this.h|=4194304;break;case 65334:this.h|=8388608;break;default:this.u+=C(a,b,b+1)}a:if(a=this.ca,null==a||0==a.ba())this.g=3321888768,this.ca=this.s="";else if("^"==a)this.g=3321888768,this.s="",this.ca="^";else for(this.g=0,this.s="",b=0;b<a.ba();b++)switch(a.charCodeAt(b)){case 94:0==b&&(this.fa=!1);break;case 92:if(b==a.ba()-1){ec(a);this.g=3321888768;this.ca=this.s="";break a}this.s+=C(a,b+1,b+2);b++;break;case 65313:-2147483646!=(this.g&
2147483650)&&(this.g|=2147483650);break;case 65:1073741825!=(this.g&1073741825)&&(this.g|=1073741825);break;case 65345:-2147483640!=(this.g&2147483656)&&(this.g|=2147483656);break;case 97:1073741828!=(this.g&1073741828)&&(this.g|=1073741828);break;case 65323:-2147450880!=(this.g&2147516416)&&(this.g|=2147516416);break;case 75:1073758208!=(this.g&1073758208)&&(this.g|=1073758208);break;case 65305:if(-2147483616==(this.g&2147483680))break a;this.g|=2147483680;break;case 57:1073741840!=(this.g&1073741840)&&
(this.g|=1073741840);break;case 65283:-2147475456!=(this.g&2147491840)&&(this.g|=2147491840);break;case 35:1073745920!=(this.g&1073745920)&&(this.g|=1073745920);break;case 65312:-2147481600!=(this.g&2147485696)&&(this.g|=2147485696);break;case 64:1073742848!=(this.g&1073742848)&&(this.g|=1073742848);break;case 65314:-2147483520!=(this.g&2147483776)&&(this.g|=2147483776);break;case 66:1073741888!=(this.g&1073741888)&&(this.g|=1073741888);break;case 65336:-2147483136!=(this.g&2147484160)&&(this.g|=
2147484160);break;case 88:1073742080!=(this.g&1073742080)&&(this.g|=1073742080);break;case 65322:-2130706432!=(this.g&2164260864)&&(this.g|=2164260864);break;case 65338:-2080374784!=(this.g&2214592512)&&(this.g|=2214592512);break;case 65325:-2146435072!=(this.g&2148532224)&&(this.g|=2148532224);break;case 65321:-2145386496!=(this.g&2149580800)&&(this.g|=2149580800);break;case 72:1107296256!=(this.g&1107296256)&&(this.g|=1107296256);break;case 78:1207959552!=(this.g&1207959552)&&(this.g|=1207959552);
break;case 65326:2415919104!=(this.g&2415919104)&&(this.g|=2415919104);break;case 65319:2684354560!=(this.g&2684354560)&&(this.g|=2684354560);break;case 65331:2147614720!=(this.g&2147614720)&&(this.g|=2147614720);break;case 83:1073807360!=(this.g&1073807360)&&(this.g|=1073807360);break;case 65332:2147745792!=(this.g&2147745792)&&(this.g|=2147745792);break;case 65316:2148007936!=(this.g&2148007936)&&(this.g|=2148007936);break;case 65317:this.g|=4194304;break;case 65334:this.g|=8388608;break;default:this.s+=
C(a,b,b+1)}}function vs(a){if(null==a||0==a.ba())return"";for(var b=0,c="",d=0;d<a.ba();d++){var e=C(a,d,d+1);if("\\"==e)if(d!=a.ba()-1)0!=b&&(c+=e,c+=C(a,d+1,d+2)),d++;else return ec(a),"";else if("^"==e){if(b++,1<b)return console.warn("Duplicated character in text filter: "+a),""}else 0!=b&&(c+=e)}1==b&&(c="^"+c);return c}
function ws(a,b,c,d){if(-1!=d.jb(b)||"\t"==b||"\r"==b||"\n"==b||"\u2003"==b)return!0;if(0==c)return!1;d=!1;if(3321888768==c||4194304==(c&4194304)&&js(b)||8388608==(c&8388608)&&rs(b)||-2147221504==(c&2147745792)&&xs(b))return!0;if(1==b.ba()&&1<b.length)return!1;if(-2146435072==(c&2148532224)&&Rp(b))return!0;if(yp(a.i,b)){if(-2147483648!=(c&2147483648))return!1;-2080374784==(c&2214592512)&&"\u3000"!=b?d=!0:-2147483640==(c&2147483656)&&Dp(a.i,b)?d=!0:-2147483646==(c&2147483650)&&7==(pp(a.i,b)&-32769)?
d=!0:-2147483616==(c&2147483680)&&Cp(a.i,b)?d=!0:-2147483520==(c&2147483776)&&ys(a,b)?d=!0:-2147483136==(c&2147484160)&&zs(a,b)?d=!0:-2147481600==(c&2147485696)&&(sp(b)||rp(b))?d=!0:-2147475456==(c&2147491840)&&As(a,b)?d=!0:-2147450880==(c&2147516416)&&Ap(a.i,b)?d=(b=Bp(a.i,b))?a.fa?!0:-2130706432==(c&2164260864):!0:-2130706432==(c&2164260864)&&Bp(a.i,b)?d=(b=Ap(a.i,b))?a.fa?!0:-2147450880==(c&2147516416):!0:-2145386496==(c&2149580800)&&Tp(b)?d=!0:-1879048192==(c&2415919104)&&Ap(a.i,b)&&!Fp(b)?d=
!0:-1610612736==(c&2684354560)&&Bp(a.i,b)&&!Fp(b)?d=!0:-2147352576!=(c&2147614720)||" "!=b&&"\u3000"!=b?-2147221504==(c&2147745792)&&xs(b)?d=!0:-2146959360!=(c&2148007936)||xs(b)||"\u3000"==b||(d=!0):d=!0}else{if(1073741824!=(c&1073741824))return!1;1107296256==(c&1107296256)&&" "!=b?d=!0:1073741828==(c&1073741828)&&Dp(a.i,b)?d=!0:1073741825==(c&1073741825)&&7==(pp(a.i,b)&-32769)?d=!0:1073741840==(c&1073741840)&&Cp(a.i,b)?d=!0:1073741888==(c&1073741888)&&ys(a,b)?d=!0:1073742080==(c&1073742080)&&zs(a,
b)?d=!0:1073742848==(c&1073742848)&&(sp(b)||rp(b))?d=!0:1073745920==(c&1073745920)&&As(a,b)?d=!0:1073758208==(c&1073758208)&&Ap(a.i,b)?d=!0:1207959552==(c&1207959552)&&Ap(a.i,b)&&!Fp(b)?d=!0:1073807360==(c&1073807360)&&(" "==b||"\u3000"==b)&&(d=!0)}return d}us.prototype.Wa=function(a){return""!=this.ca&&ws(this,a,this.g,this.s)?!1:""!=this.ea?ws(this,a,this.h,this.u):!0};function xs(a){a=C(a,0,1);if(2===a.length)for(var b=0;b<a.length;b++)if(zp(a[b]))return!0;return!1}
function ys(a,b){b=yp(a.i,b)?Op(a.i,b):b;return"0"==b||"1"==b}function zs(a,b){b=yp(a.i,b)?Op(a.i,b):b;return"A"==b||"B"==b||"C"==b||"D"==b||"E"==b||"F"==b||"a"==b||"b"==b||"c"==b||"d"==b||"e"==b||"f"==b||Cp(a.i,b)}function As(a,b){b=yp(a.i,b)?Op(a.i,b):b;return Cp(a.i,b)||"+"==b||"-"==b||"$"==b||"%"==b||"\\"==b||","==b||"."==b}function Bs(a,b,c){var d;null!=c?d=C(b,c,c+1):d=b;return a.Wa(d)?d:a.autoConvert?null!=c?Cs(a,b,c):Cs(a,d):""}
function Ds(a,b){for(var c=b.ba(),d={pm:!0,qh:""},e=0;e<c;){var f=C(b,e,e+1);"\t"!=f&&"\r"!=f&&"\n"!=f?(f=Bs(a,b,e),null!=f.index?(e=f.index,f=f.yb):e++,""==f&&(d.pm=!1)):e++;d.qh+=f}return d}
function Cs(a,b,c){var d;null==c?d=b:d=C(b,c,c+1);var e;if(8388608==(a.h&8388608)||8388608==(a.g&8388608)){var f=ts(d);if(0<f.length&&(e=a.Wa(f)))return f}if(Ep(a.i,d)){f=Dp(a.i,d)?d.toUpperCase():d.toLowerCase();if(e=a.Wa(f))return f;d=yp(a.i,d)?Op(a.i,d):Lp(a.i,d).text;if(e=a.Wa(d))return d;f=yp(a.i,f)?Op(a.i,f):Lp(a.i,f).text;return(e=a.Wa(f))?f:""}if(Bp(a.i,d)){if(Fp(d)){var h=Jp(d);if(e=a.Wa(h))return h}else if(Hp(d)&&(h=Kp(d),e=a.Wa(h)))return h;f=Pp(a.i,d);if(e=a.Wa(f))return f;if(Fp(f)){if(h=
Jp(f),e=a.Wa(h))return h}else if(Hp(f)&&(h=Kp(f),e=a.Wa(h)))return h;d=Op(a.i,f);if(e=a.Wa(d))return d;if(Fp(d)){if(d=Jp(d),e=a.Wa(d))return d}else if(Hp(d)&&(d=Kp(d),e=a.Wa(d)))return d;return""}if(Ap(a.i,d)){if(Fp(d)){if(h=Jp(d),e=a.Wa(h))return h}else if(Hp(d)&&(h=Kp(d),e=a.Wa(h)))return h;var k=!1;f=d;if(yp(a.i,d)){b=Op(a.i,d);if(0<b.ba()&&(e=a.Wa(b)))return b;if(Fp(b)){if(b=Jp(b),e=a.Wa(b))return b}else if(Hp(b)&&(b=Kp(b),e=a.Wa(b)))return b}else{if(null==c){f=Lp(a.i,d).text;if(!Ap(a.i,f))return"";
if(e=a.Wa(f))return f}else{c+1<b.ba()?(e=Lp(a.i,C(b,c,c+2)),f=e.text,k=e.ak):f=Lp(a.i,d).text;if(!Ap(a.i,f))return"";if(e=a.Wa(f))return c++,k&&c++,a={},a.index=c,a.yb=f,a}if(Fp(f)){if(h=Jp(f),e=a.Wa(h))return h}else if(Hp(f)&&(h=Kp(f),e=a.Wa(h)))return h}f=Qp(a.i,f);if(e=a.Wa(f))return null!=c?(c++,k&&c++,a={},a.index=c,a.yb=f,"\u3094"==f&&(a.yb=k?"\u3046\u309b":""),a):"\u3094"==f?"":f;if(Fp(f)){if(h=Jp(f),e=a.Wa(h))return h}else if(Hp(f)&&(h=Kp(f),e=a.Wa(h)))return h}yp(a.i,d)?(c=Op(a.i,d),e=a.i,
sp(c)?e=!0:rp(c)?e=!1:(f=qp(e,c),k=!up(e,f,c),"HALFWIDTH_AND_FULLWIDTH_FORMS"==e.g.i[f]&&(k=32768!=(tp(e,c)&32768)),e=k),e&&(d=c)):(c=Lp(a.i,d).text,yp(a.i,c)&&(d=c));return(e=a.Wa(d))?d:""};var Es={Automatic:"automatic",Fixed:"fixed"};v("ScrollBarMode",Es);var Fs={None:"none",EllipsisEnd:"ellipsisend",EllipsisPath:"ellipsispath"};v("EllipsisMode",Fs);var Gs={KatakanaHalf:"katakanahalf",Katakana:"katakana",Hiragana:"hiragana"};v("KanaMode",Gs);var Hs={None:"none",ShowEyeButton:"showeyebutton",ShowLastTypedChar:"showlasttypedchar"};v("PasswordRevelationMode",Hs);v("OutputMode",{Append:"append",Replace:"replace"});v("MultiLineCursorPosition",{None:"none",Start:"start",End:"end"});
var Is={None:"none",Both:"both",Vertical:"vertical",Horizontal:"horizontal"};v("ResizeMode",Is);var Js={None:"none",Start:"start",End:"end",Both:"both"};v("TrimMode",Js);function Ks(a,b,c,d){Yr.call(this,null);this.da=c;this.i=d;this.fa=new us(a,b);this.dg=this.lf=this.zd=this.lb=!1;this.u=!0;this.s=this.ka=this.va=this.Fa=!1;this.Ga=this.g=null;this.ga=this.Ma=this.ta=this.h=this.la=this.ca=!1;this.na=this.ea=0}t(Ks,Yr);function Ls(a){return a.da.za()}function Ms(a){a.fa=new us(a.i.ud,a.i.l)}g=Ks.prototype;
g.Td=function(a,b,c,d,e,f,h,k,l,m,n,q,u,r,z,D,wa,Hb,Wb,xc,Kf,Td,ac,Ib,yc){var B={};switch(c){case "insert":this.zd=!1;break;case "overwrite":this.zd=!0;break;case "fixedinsert":this.zd=!1;break;case "fixedoverwrite":this.zd=!0}this.lb=e!=f?!0:!1;if(null!==Ib&&void 0!==Ib)switch(Ib.toLowerCase()){case "clear":return h||(B.o=0,B.v=0,B.Text="",this.ka=B.Zd=!0,B.Ca=!0),B;case "nextcontrol":return e=as(this,Ls(this),!0,"NextControl"),null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0),B;case "previouscontrol":return e=
as(this,Ls(this),!1,"PreviousControl"),null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0),B}if(h&&131117!=a&&131139!=a&&9!=a&&65545!=a&&131081!=a&&196617!=a&&131137!=a&&37!=a&&38!=a&&39!=a&&40!=a)return B;Ib=Kq(this.da,!0);switch(a){case 131138:case 131140:case 131141:case 131144:case 131145:case 131148:case 131150:case 131154:case 131159:case 131188:case 262181:case 262183:case 117:case 65657:case 116:case 121:case 123:case 27:B.Aa=!0;break;case 45:"fixedinsert"==c?D=!1:"fixedoverwrite"==c?D=!0:(D=
!d,this.da.i.EditStatusChanged&&(e={},e.gb=this.da.i.EditStatusChanged,e.ib=null,B.pa=[],B.pa[0]=e));B.mi=D;break;case 13:r?Hb||Wb&&b.Cd?(this.h=this.ca=!0,B.Aa=!0,Wb&&b.Cd&&(B.$q=!0)):B.Aa=!1:(this.ca=!0,this.h=!1,B.Aa=!0);break;case 131085:r&&(this.h=this.ca=this.la=!0,B.Aa=!0);break;case 9:case 65545:r&&wa&&!h?(this.ca=!0,B.ar=!0):(B.Aa=!0,e={},this.da.i.KeyExit&&(e.gb=this.da.i.KeyExit,e.ib={ig:9==a?1:2}),B.pa=[],B.pa[0]=e,r&&(B.o=D.ba(),B.v=D.ba()));break;case 131081:e=as(this,Ls(this),!0,"NextControl");
null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0);break;case 196617:e=as(this,Ls(this),!1,"PreviousControl");null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0);break;case 8:case 65544:Ib.Db?(B.Text="",B.o=0):(this.h=this.la=!0,Ns(this,a,e,f),B.Zd=!0,B.wj=this.s,B.Aa=!0);break;case 46:Ib.Db?(B.Text="",B.o=0):(this.h=this.la=!0,Ns(this,a,e,f),B.Zd=!0,B.wj=this.s,B.Aa=!0);break;case 131080:case 196616:Ib.Db?(B.Text="",B.o=0):(this.lb?this.va=this.h=!0:(this.h=this.la=!0,B.Aa=!0),Ns(this,a,e,f),B.wj=this.s,
B.Zd=!0);break;case 131118:Ib.Db?(B.Text="",B.o=0):(this.h=!0,B.Aa=!0,Ns(this,a,e,f),B.wj=this.s,B.Zd=!0,B.jd=39,this.Fa=!0);break;case 131139:case 131117:z?B.Aa=!1:this.i.Sg()?y&&!Sa&&e===f?B.Aa=!0:this.Copy(D,e,f):B.Aa=!0;break;case 65581:case 131158:this.i.Sg()?B=this.pc(e,f,D,q,wa,k,l,m,n,r):B.Aa=!0;break;case 131160:z?B.Aa=!1:this.i.Sg()?B=this.dd(D,e,f):B.Aa=!0;break;case 65582:e!=f?B=this.dd(D,e,f):(this.h=this.la=!0,B.jd=8);Ns(this,a,e,f);B.wj=this.s;B.Zd=!0;break;case 131137:B=this.Yc(D);
break;case 131162:B=this.Ub(D,xc,Kf,Td,ac,e,f);break;case 65573:this.h=B.Aa=!0;break;case 65575:this.h=B.Aa=!0;break;case 65574:r?this.h=B.Aa=!0:(0<f&&(B.v=f-1),B.Ca=!0);break;case 65576:r?this.h=B.Aa=!0:(f<D.ba()&&(B.v=f+1),B.Ca=!0);break;case 65569:this.h=B.Aa=!0;break;case 65570:this.h=B.Aa=!0;break;case 196645:this.h=B.Aa=!0;break;case 196647:this.h=B.Aa=!0;break;case 65572:case 196644:this.h=B.Aa=!0;break;case 65571:case 196643:this.h=B.Aa=!0;break;case 37:case 131109:r=!1;this.ga?r=!0:(this.ga=
!0,this.ea=e,this.na=f);if(r&&0==this.ea&&0==this.na&&("both"==u||"left"==u)){e=as(this,Ls(this),!1,37==a?"Left":"CtrlLeft");null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0);this.ga=!1;break}--this.ea;this.na=this.ea;0!=e||0!=f||"both"!=u&&"left"!=u?(h||(this.h=!0),B.Aa=!0):(e=as(this,Ls(this),!1,37==a?"Left":"CtrlLeft"),null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0));break;case 39:case 131111:r=!1;this.ga?r=!0:(this.ga=!0,this.ea=e,this.na=f);if(r&&this.ea==D.ba()&&this.na==D.ba()&&("both"==
u||"right"==u)){e=as(this,Ls(this),!0,39==a?"Right":"CtrlRight");null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0);this.ga=!1;break}this.na=this.ea+=1;e!=D.ba()||f!=D.ba()||"both"!=u&&"right"!=u?(h||(this.h=!0),B.Aa=!0):(e=as(this,Ls(this),!0,39==a?"Right":"CtrlRight"),null!=e&&(B.pa=[],B.pa[0]=e.pa,B.Va=e.Va,B.Ib=!0));break;case 33:case 131105:this.h=!0;B.Aa=r?!0:!1;break;case 34:case 131106:this.h=!0;B.Aa=r?!0:!1;break;case 38:h||(this.h=!0);B.Aa=r?!0:!1;break;case 40:h||(this.h=!0);B.Aa=r?!0:!1;
break;case 131108:case 36:this.h=!0;B.Aa=!0;break;case 131107:case 35:this.h=!0;B.Aa=!0;break;case 131112:case 131110:this.h=!0,B.Aa=!0}if(void 0!=a&&null!=a){if(48<=a&&57>=a||65<=a&&90>=a||96<=a&&105>=a||229==a||0==a||231==a)return this.ca=!0,null==B&&(B={}),B.Aa=!0,B.$g=!0,B;if(32==a||106==a||107==a||109==a||110==a||111==a||219==a||220==a||221==a||222==a||186<=a&&192>=a||226==a||231==a||!y&&(61==a||59==a))return this.ca=!0,B.Aa=!0,B;if(yc.shiftKey)var fb=a-65536;if(48<=fb&&57>=fb||65<=fb&&90>=fb||
96<=fb&&105>=fb||229==fb)return this.ca=!0,B.Aa=!0,B;a=(173==a||64==a||160==a||65594==a||58==a||65709==a||65600==a||65696==a)&&Wa;if(32==fb||106==fb||107==fb||109==fb||110==fb||111==fb||219==fb||220==fb||221==fb||222==fb||186<=fb&&192>=fb||226==fb||231==fb||a)return this.ca=!0,B.Aa=!0,B;y||61!=fb&&59!=fb||(this.ca=!0,B.Aa=!0)}return B};
g.Ud=function(a,b,c,d,e,f,h,k,l,m,n){if(1==this.ca){this.ca=!1;this.u=!0;var q={};if("\t"==c)var u=c;else if("\r"==c||"\n"==c)if(l)u="\r\n";else return q.Mm=!0,q;else if(1==c.ba())u=Bs(this.fa,c);else{var r=Ds(this.fa,c);u=r.qh;this.u=r.pm}if(a==b){if(null!=e)if(r=e-this.ba(d,f),"\r\n"==u)r<"\r\n".ba()&&null!=e&&(u="");else if(!k||k&&a==d.ba())u=e>this.ba(d,f)?Os(this,u,r,f):"";else if(k){var z=C(d,0,a),D=C(d,a,d.ba());r=D.jb("\r\n");-1!=r&&(z+=C(D,r,D.ba()));r=e-this.ba(z,f);u=Os(this,u,r,f)}}else r=
C(d,Math.min(a,b),Math.max(a,b)),null!=e&&(r=e-this.ba(d,f)+this.ba(r,f),"\r\n"==u?r<"\r\n".ba()&&(u=""):u=Os(this,u,r,f));null!=m&&l&&(m>=Ps(this,d,n)?(r=C(d,0,a),z=C(d,b,d.ba()),this.i.ka?(r=Qs(r,this.i.na,l),z=Qs(z,this.i.na,l),l=Qs(u,this.i.na,l),l=Rs(this,r,z,l,m,n),u=C(u,0,l.ba())):u=Rs(this,r,z,u,m,n)):u="");""!=c&&""==u&&(this.u=!1);c=d;if(!k||"\r\n"==u||a!=b)a>b&&(k=a,a=b,b=k),a!=b&&(this.ka=q.Zd=!0),""!=u&&(c=C(d,0,a)+u+C(d,b,d.ba()));else if(""!=u)if(a==d.ba())c=d+u;else if(a+"\r\n".ba()<=
d.ba()&&"\r\n"==C(d,a,a+"\r\n".ba()))c=C(d,0,a)+u+C(d,a,d.ba());else{if(0!=e&&f){b=u.ba();c=C(d,a,a+b);c=this.ba(c,f);for(k=this.ba(u,f);k>c&&b<=d.ba();)b+=1,c=C(d,a,a+b),c=this.ba(c,f);b=C(d,a,a+b)}else b=C(d,a,a+u.ba());r=b.jb("\r\n");c=-1!=r?C(d,0,a)+u+C(d,a+r,d.ba()):C(d,0,a)+u+C(d,a+b.ba(),d.ba())}q.Text=c;q.Xr=u;q.Ca=!0;if(0!=this.u||this.da.fa)q.o=a+u.ba(),q.v=q.o;q.pa=[];this.u||(this.u=!0,r={},this.da.i.InvalidInput&&(r.gb=this.da.i.InvalidInput,r.ib=""),q.pa[0]=r);null!=q.Text&&h&&null!=
e&&this.ba(C(q.Text,0,q.o),f)==e&&""!=u&&(r=as(this,Ls(this),!0,"CharInput"),null!=r&&(q.pa[1]=r.pa,q.Va=r.Va,q.Ib=!0,q.Ca=!1));return q}return!1};g.Ae=function(a,b,c,d,e){var f={};this.ga=!1;f.o=dg(a);f.v=f.o+Ss(this,b);1==this.la&&(this.la=!1,f.Mm=!0);if(this.Fa||this.va){if(this.Fa){var h=f.o;this.Fa=!1}else this.va&&(h=d,this.va=!1);f.Text=C(e,0,c)+C(e,h,e.ba());f.o=f.v=c;f.Ca=!0}return f};g.tf=function(){this.La=!1;return{}};
function Ss(a,b){a=a.da.za();return b?Yf(a).replace(/\r\n/g,"\n").replace(/\n/g,"\r\n").ba():Yf(a).ba()}
g.ke=function(a,b,c,d,e,f,h,k){b={};if(this.La&&(this.La=!1,h))return b;0==d&&(this.lf&&!Te?(this.lf=!1,this.dg=!0,e?(d=dg(a),d=Ts(d,f),null!=d.start&&(b.o=d.start),null!=d.end&&(b.v=d.end)):(b.o=0,b.v=f.ba())):""==Yf(this.da.za())&&e?""==Yf(this.da.za())?(b.o=dg(a),b.v=b.o+Ss(this,e)):(b.o=dg(a),document.selection&&k.y<document.selection.createRange().offsetTop&&(b.o-=2),b.v=b.o):(b.o=dg(a),b.v=b.o+Ss(this,e)),!y&&gf.Oc&&(e?(d=dg(a),d=Ts(d,f),null!=d.start&&(b.o=d.start),null!=d.end&&(b.v=d.end)):
(b.o=0,b.v=f.ba())),b.o!=b.v&&(b.Ca=!0));return b};function Ts(a,b){for(var c=b,d=0,e=c.jb("\r\n"),f={};-1!=e;){if(a>=d&&a<d+e+"\r\n".ba())return f.start=d,f.end=d+e,f;d=d+e+"\r\n".ba();c=C(c,e+"\r\n".ba(),c.ba());e=c.jb("\r\n")}f.start=d;f.end=b.ba();return f}g.Lg=function(a,b){var c={};c.o=dg(a);c.v=c.o+Ss(this,b);return c};g.Jf=function(a){this.lf=!0;Te=!1;window.setTimeout(function(){Te=!0},500);var b={};b.o=dg(a);b.v=b.o+Ss(this,this.i.uh());return b};
g.ng=function(a){this.dg&&(this.dg=!1);var b={};b.o=dg(a);b.v=b.o;return b};g.Copy=function(a,b,c){if(b!=c){if(b>c){var d=b;b=c;c=d}a=C(a,b,c);!1===this.i.uh()&&(a=bs(a,this.i.Ue(),this.i.acceptsTabChar));Gf(a,this.i.Fd())}};
g.pc=function(a,b,c,d,e,f,h,k,l,m,n,q){this.u=!0;e={};var u=this.i.pl;if(!y||Sa)u=!1;n=null==n?Wf(u):n;q||!1!==this.i.uh()||(n=bs(n,this.i.Ue(),this.i.acceptsTabChar));n=n.replace(/\r\n/g,"\n");n=n.replace(/\n/g,"\r\n");if(null==n)return e;n=u=Us(this,n);null!=f&&(n=this.ba(C(c,Math.min(a,b),Math.max(a,b)),h),n=f-this.ba(c,h)+n,n=Os(this,u,n,h));if(null!=k&&m)if(k>=Ps(this,c,l)){u=C(c,0,a);var r=C(c,b,c.ba());this.i.ka?(u=Qs(u,this.i.na,m),r=Qs(r,this.i.na,m),m=Qs(n,this.i.na,m),m=Rs(this,u,r,m,k,
l),n=C(n,0,m.ba())):n=Rs(this,u,r,n,k,l)}else n="";k=Math.min(a,b);l=Math.max(a,b);if(""!=n||!0===q)e.Text=C(c,0,k)+n+C(c,l,c.ba()),e.o=k+n.ba(),e.v=e.o;e.Ca=!0;a!=b&&(this.ka=e.Zd=!0);e.pa=[];this.u||(this.u=!0,a={},this.da.i.InvalidInput&&(a.gb=this.da.i.InvalidInput,a.ib=""),e.pa[0]=a);h=null!=e.Text?this.ba(C(e.Text,0,e.o),h):0;null!=f&&h==f&&d&&""!=n&&(a=as(this,Ls(this),!0,"CharInput"),null!=a&&(e.pa[1]=a.pa,e.Va=a.Va,e.Ib=!0,e.Ca=!1));e.Vr=n;return e};
g.dd=function(a,b,c){var d={};this.Copy(a,b,c);b<c?(d.o=b,d.Text=C(a,0,b)+C(a,c,a.ba())):(d.o=c,d.Text=C(a,0,c)+C(a,b,a.ba()));d.v=d.o;d.Ca=!0;d.Text!=a&&(this.ka=d.Zd=!0);return d};g.Ub=function(a,b,c,d,e,f,h){var k={};this.ka?a!=b&&(k.Text=b,k.o=f,k.v=h,k.Ca=!0,k.Zd=!0,k.Ub=!0):a!=c&&(k.Text=c,k.o=d,k.v=e,k.Ca=!0,k.Ub=!0);this.Ga=this.g=null;return k};g.Yc=function(a){var b={o:0};b.v=a.ba();b.Ca=!0;return b};
function Vs(a,b,c,d,e,f,h,k,l,m,n){a.u=!0;var q={},u=b=Us(a,b),r=0;null!=f&&(r=f-a.ba(n,h),u=Os(a,b,r,h));null!=k&&m&&(k>=Ps(a,n,l)?(d=C(n,0,d),e=C(n,e,n.ba()),a.i.ka?(d=Qs(d,a.i.na,m),e=Qs(e,a.i.na,m),m=Qs(u,a.i.na,m),m=Rs(a,d,e,m,k,l),u=C(m,0,u.ba())):u=Rs(a,d,e,u,k,l)):u="");q.ue=u;q.pa=[];a.u||(a.u=!0,k={},a.da.i.InvalidInput&&(k.gb=a.da.i.InvalidInput,k.ib=""),q.pa[0]=k);a.ba(b,h)>=r&&null!=f&&c&&""!=u&&(k=as(a,a.i.za(),!0),a.da.i.KeyExit&&(k.gb=a.da.i.KeyExit,k.ib={},k.ib.ig=9),q.pa[1]=k);return q}
g.ed=function(a,b,c,d,e){this.La=!0;var f={};f.Text=Ws(this.i,c,!0);9==a?(f.o=0,f.v=0):10==a&&(f.o=c.ba(),f.v=c.ba());if(e)f.o=0,f.v=c.ba(),f.Ca=!0;else{if(1==a||11==a)Kq(this.da,!1).Db?(f.o=0,f.v=0):(f.o=dg(b),f.v=f.o+Ss(this,d)),f.Ca=!0;this.da.Fa&&1!=a&&(f.Ca=!0);a=f.Text;this.da.u&&"none"!==this.da.cursorPosition&&(b=Ls(this),d=c=0,"start"===this.da.cursorPosition?b.scrollTop=0:(c=a?a.length:0,d=a?a.length:0,b.scrollTop=b.scrollHeight-b.offsetHeight),c!==f.o||d!==f.v)&&(f.o=c,f.v=d,f.Ca=!0)}return f};
g.Vd=function(){return{}};function Os(a,b,c,d){var e="",f=0;if("\r\n"==b)2<=c&&(e=b);else if(d)for(d=0;d<b.ba();d++){var h=C(b,d,d+1);2<=h.length?f+=2*h.length:yp(a.fa.i,h)?f+=2:f++;if(f<=c)e+=C(b,d,d+1);else break}else b.ba()<=c?e=b:e=C(b,0,c);c=e.ba();0!=c&&"\r"==C(e,c-1,c)&&(e=C(e,0,c-1));e!=b&&(a.u=!1);return e}
function Rs(a,b,c,d,e,f){var h=Ps(a,b+d+c,f);if(h<=e)b=d;else{var k=0,l=d.ba();do{var m=Math.floor((k+l)/2);h=C(d,0,m);h=b+h+c;h=Ps(a,h,f);if(h>e)l=m-1;else if(h<e)k=m+1;else if(h==e&&l>k+1)k=m;else if(h==e&&l==k+1)break}while(k<l);b=C(d,0,k)}b!=d&&(a.u=!1);return b}
function Ps(a,b,c){var d=1,e=c;if(""==b)return d;if(null===a.sa||void 0===a.sa){var f=ag("div");d=ag("textarea");f.appendChild(d);f.style.visibility="hidden";f.style.position="absolute";f.style.left="-100000000px";f.style.top="-100000000px";d.style.height="auto";document.body.appendChild(f);a.sa=d}f=a.sa;d=a.da.za();var h=a.sa;h&&(h.style.fontSize=d.style.fontSize,h.style.fontFamily=d.style.fontFamily,h.style.fontStyle=d.style.fontStyle,h.style.fontWeight=d.style.fontWeight,h.style.fontStretch=d.style.fontStretch,
h.style.width=d.style.width,h.style.borderWidth=d.style.borderWidth,h.style.padding=d.style.padding,h.style.wordWrap=d.style.wordWrap,h.style.overflowY=d.style.overflowY);null==f&&(e=!1);if(!e){a=f=b;e=f.jb("\r\n");for(d=1;-1!=e;)a=a.replace("\r\n",""),d+=1,f=C(f,e+2,f.ba()),e=f.jb("\r\n");f=a;for(e=f.jb("\r");-1!=e;)a=a.replace("\r",""),d+=1,f=C(f,e+1,f.ba()),e=f.jb("\r");f=a;for(e=f.jb("\n");-1!=e;)a=a.replace("\n",""),d+=1,f=C(f,e+1,f.ba()),e=f.jb("\n");return d}h=b.replace(/\r\n/g,"\r");h=h.replace(/\n/g,
"\r");e=h.jb("\r");if(-1!=e)return d=0,f=C(h,0,e),d+=Ps(a,f,c),h=C(h,e+1,h.ba()),d+=Ps(a,h,c);a=window.getComputedStyle(a.da.za());f.style.fontSize=a.fontSize;f.style.fontFamily=a.fontFamily;f.style.width=bb?"":$a&&!Sa?parseFloat(a.width)+"px":parseFloat(a.width)-parseFloat(a.paddingLeft)-parseFloat(a.paddingRight)+"px";f.style.wordWrap=a.wordWrap;if(null!=f){f.value=b;f.rows=1;a=jb?10:2;b=window.getComputedStyle(f).fontSize;for(a=Math.min(a,b.endsWith("px")?parseFloat(b):Number.NaN);f.scrollHeight-
f.clientHeight>a;)f.rows++;f.scrollTop=0;d=f.rows;1<f.rows&&(f.rows=1);return d}}function Us(a,b){!a.i.uh()&&b&&(b=b.replace(/[\r\n]/g,""));b=Ds(a.fa,b);var c=b.qh;a.u=b.pm;return c}g.ba=function(a,b){var c=0;if(b)for(b=0;b<a.ba();b++){var d=C(a,b,b+1);2<=d.length?c+=2*d.length:yp(this.fa.i,d)?c+=2:c++}else c=a.ba();return c};g.zh=function(){var a={};this.h=this.la=!0;a.Aa=!0;return a};
function Ns(a,b,c,d){a.ka=!0;var e=Math.abs(d-c);switch(b){case 8:var f=!1;a.ga?f=!0:(a.ga=!0,a.ea=c-1);if(f){a.s=!0;break}else a.ea==a.g&&(a.s=!0,--a.ea);if(c!=d)if(c<a.g)a.g-=e;else{if(c==a.g){a.s=!0;a.g=c;break}}else if(c==a.g){a.s=!0;a.g=c-1;break}--c;a.s=a.g==c?!0:!1;a.g=c-1;break;case 131080:case 196616:if(c==d)--c;else if(c<a.g)a.g-=e;else if(c==a.g){a.s=!0;a.g=c-1;break}a.s=a.g==c?!0:!1;a.g=c-1;break;case 65544:c!=d&&c<a.g&&(a.g-=e);a.s=a.g==c?!0:!1;a.g=c-1;break;case 65582:if(c==d)--c;else if(c<
a.g)a.g-=e;else if(c==a.g){a.s=!0;a.g=c;break}a.s=a.g==c||a.g==d?!0:!1;a.g=c-1;break;case 46:e=null;8==a.Ga&&(e=c,--c);if(a.g==c||null!=a.g&&1==Math.abs(a.g-c)||a.g==d)a.s=!0;else if(a.s=!1,null!=e){a.g=e;break}a.g=c;break;case 131118:if(c!=d)if(c<a.g)a.g-=e;else if(c==a.g){a.s=!0;a.g=c;break}--c;a.s=a.g==c||1==c-a.g?!0:!1;a.g=c}a.Ga=b}function Qs(a,b,c){for(var d="",e=0;e<a.ba();e++){var f=C(a,e,e+1);"\r"!=f&&"\n"!=f?d+=b:c&&(d+=f)}return d};function Xs(a){this.g=null;this.da=a}var rr,sr,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr;
function Gr(a){var b=w.TouchToolBarUndo,c=w.TouchToolBarCut,d=w.TouchToolBarCopy,e=w.TouchToolBarPaste,f=w.TouchToolBarDelete,h=w.TouchToolBarSelectAll,k=document.createElement("table"),l=document.createElement("tr"),m=a.i?vr:ur,n=a.h?xr:wr,q=a.s?zr:yr,u=a.ca?Br:Ar,r=a.ea?Dr:Cr;e=Ys(a.u?tr:sr,e,a.u);c=Ys(m,c,a.i);d=Ys(n,d,a.h);f=Ys(q,f,a.s);b=Ys(u,b,a.ca);h=Ys(r,h,a.ea);r=Zs();u=Zs();l.appendChild(e);l.appendChild(c);l.appendChild(d);l.appendChild(f);l.appendChild(r);l.appendChild(b);l.appendChild(u);
l.appendChild(h);k.appendChild(l);a.g.appendChild(k);e.addEventListener("mousedown",function(){try{a.u||(a.da.pc(),Fr(a))}catch(z){}},!0);c.addEventListener("mousedown",function(){try{a.i||(a.da.dd(),Fr(a))}catch(z){}},!0);d.addEventListener("mousedown",function(){try{a.h||(a.da.Copy(void 0),Fr(a))}catch(z){}},!0);f.addEventListener("mousedown",function(){try{a.s||(a.da.rf(),Fr(a))}catch(z){}},!0);b.addEventListener("mousedown",function(){try{a.ca||(a.da.Ub(),Fr(a))}catch(z){}},!0);h.addEventListener("mousedown",
function(){return $s(a)},!0);a.g.addEventListener("mousedown",function(z){return z.preventDefault()},!0)}
function Ys(a,b,c){var d=document.createElement("td"),e=document.createElement("table"),f=document.createElement("tr"),h=document.createElement("tr");b=document.createTextNode(Qd(b));var k=document.createElement("td"),l=document.createElement("td");k.className="gcim__touch-toolbar__button "+a;k.setAttribute("align","center");l.setAttribute("align","center");l.className="gcim__touch-toolbar__button_text";c&&(l.style.color=at);l.appendChild(b);f.appendChild(k);h.appendChild(l);e.appendChild(f);e.appendChild(h);
d.appendChild(e);return d}function Zs(){var a=rr,b=document.createElement("td");b.className="gcim__touch-toolbar__button "+a;b.setAttribute("align","center");return b}function Fr(a){null!==a.g&&(document.body.removeChild(a.g),a.g=null)}function Er(a){return null!==a.g}function $s(a){try{a.ea||(Fr(a),setTimeout(function(){a.da.Yc()},350))}catch(b){}}var at="lightgray";v("Alignment",{NotSet:"notset",TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",MiddleLeft:"middle-left",MiddleCenter:"middle-center",MiddleRight:"middle-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right",BaselineLeft:"baseline-left",BaselineCenter:"baseline-center",BaselineRight:"baseline-right"});
var bt={Contains:"contains",NotContains:"notcontains",Equal:"equal",NotEqual:"notequal",EndWith:"endwith",StartWith:"startwith",AmbiguousContains:"ambiguouscontains",AmbiguousNotContains:"ambiguousnotcontains",AmbiguousEqual:"ambiguousequal",AmbiguousNotEqual:"ambiguousnotequal",AmbiguousEndWith:"ambiguousendwith",AmbiguousStartWith:"ambiguousstartwith",GreaterThan:"greaterthan",GreaterThanOrEqual:"greaterthanorequal",LessThan:"lessthan",LessThanOrEqual:"lessthanorequal",Between:"between",NotBetween:"notbetween"};
v("FilterComparator",bt);var ct={Second:1,Minute:2,Hour:4,Day:8,Month:16,Year:32,Time:7,Date:56,DateTime:63};ct[ct.Second]="Second";ct[ct.Minute]="Minute";ct[ct.Hour]="Hour";ct[ct.Day]="Day";ct[ct.Month]="Month";ct[ct.Year]="Year";ct[ct.Time]="Time";ct[ct.Date]="Date";ct[ct.DateTime]="DateTime";v("DateCompareUnit",ct);var dt={None:"none",Horizontal:"horizontal",Vertical:"vertical",Both:"both"};v("ScrollBars",dt);var et={Single:"single",Multiple:"multiple",MultipleExt:"multipleExt"};
v("ListBoxSelectionMode",et);v("GcListBoxEvent",{CheckedChanged:"checkedchanged",SelectedChanged:"selectedchanged",FocusedChanged:"focusedchanged",ItemClick:"itemclick",LoadComplete:"loadcomplete",ItemsChanged:"itemschanged",ColumnResizeEnd:"columnresizeend",ResizeEnd:"resizeend",Dropping:"dropping",Dropped:"dropped"});v("ListBoxDragMode",{None:"none",Single:"single",Multiple:"multiple"});var ft={Selected:"selected",Checked:"checked"};v("ListBoxDragSource",ft);
v("FilterOperatorType",{Boolean:"boolean",Number:"number",String:"string",Date:"date"});function gt(a){switch(a){case "both":return 0;case "vertical":return 1;case "horizontal":return 2;default:return 0}}
function ht(a,b){this.h="none";this.ca=this.u=!0;this.ua=a;this.ea=b;a=A("div",{class:"gcim_resize gcim_hidden"});b=A("div",{class:"gcim_resize gcim_hidden"});var c=A("div",{class:"gcim_resize gcim_hidden"});a.setAttribute("direction","vertical");b.setAttribute("direction","horizontal");c.setAttribute("direction","both");c.setAttribute("showIcon",this.u+"");this.ua.appendChild(a);this.ua.appendChild(b);this.ua.appendChild(c);this.s=a;this.i=b;this.g=c;this.$n()}
function it(a,b){if(!G(b)&&(b=I(Is,b),null!==b&&(a.h=b,a.fa.mode=gt(a.h),E(a.s,"gcim_hidden"),E(a.i,"gcim_hidden"),E(a.g,"gcim_hidden"),a.ca)))switch(a.h){case "both":jd(a.s,"gcim_hidden");jd(a.i,"gcim_hidden");jd(a.g,"gcim_hidden");a.g.setAttribute("cursor","both");break;case "horizontal":jd(a.i,"gcim_hidden");jd(a.g,"gcim_hidden");a.g.setAttribute("cursor","horizontal");break;case "vertical":jd(a.s,"gcim_hidden"),jd(a.g,"gcim_hidden"),a.g.setAttribute("cursor","vertical")}}
ht.prototype.$n=function(){jt(this);kt(this);lt(this)};function jt(a){a.fa=new Kn({container:a.ua,lh:a.g,mode:0,Ii:function(b,c){return mt(a,b,c)}})}function kt(a){new Kn({container:a.ua,lh:a.s,mode:1,Ol:!1,Ii:function(b,c){return mt(a,b,c)}})}function lt(a){new Kn({container:a.ua,lh:a.i,mode:2,Ol:!1,Ii:function(b,c){return mt(a,b,c)}})}function mt(a,b,c){var d;a.ua.style.width=b+"px";a.ua.style.height=c+"px";(null===(d=a.ea)||void 0===d?0:d.Fq)&&a.ea.Fq()};function nt(){this.g=!1;this.h=0}function ot(a,b){if(!cb||!a.g)return!1;a.g=!1;return Date.now()-a.h>pt?!1:"insertText"===b.inputType}var pt=20;function qt(){this.h=!1;this.g=this.i=0}function rt(a,b,c){if(!cb||!a.h)return!1;var d=a.g>=st.length;return Date.now()-a.i>tt||d||(d=st[a.g],d.type!==b||d.inputType!==c.inputType)?a.h=!1:(a.g++,!0)}p.Object.defineProperties(qt.prototype,{s:{configurable:!0,enumerable:!0,get:function(){return this.g>=st.length}}});var st=[{type:"beforeinput",inputType:"deleteContentBackward"},{type:"input",inputType:"deleteContentBackward"},{type:"beforeinput",inputType:"insertText"}],tt=20;function ut(a,b,c){pr.call(this,a,b,c);var d=this;this.Pl=this.lc="none";this.Aq=!1;this.Ki="none";this.Gl=!1;this.Dq=void 0;this.jp=new nt;this.rl=new qt;this.vp="";this.Bm=!1;a=a.tagName.toLowerCase();if("input"!=a&&"textarea"!=a)throw"container element must be an input element";this.u="textarea"===a;this.Xe=!0;this.u&&(vt(this,"none"),this.resize=new ht(this.host.getLayoutElement(),{Fq:function(){return d.host.refreshUI(1)}}));this.cursorPosition="none"}var wt;t(ut,pr);g=ut.prototype;
g.Ge=function(){pr.prototype.Ge.call(this);this.nm=!1;this.Vl=!0;this.tp="";this.Nl="fixed";this.$l=null;this.Nd=this.cb=this.Qd=!1;this.l="";this.ud=!0;this.Bb=!1;this.Ma=null;this.em="nocontrol";this.Ng=!0;this.We=this.Og=this.zp=!1;this.nh="...";this.ka=this.mc=!1;this.na="";this.Xb=null;this.Hb=!1;this.pl=!0;this.Dc={};this.Dc.mt="append";this.Dc.mj="katakanahalf";this.Xa="none";this.ob=this.Hl="";this.ga=this.ua;null!=this&&(this.va=this.va);this.Ho=this.o;this.kp=this.v;this.Ta=this.Ga="";this.Gh=
!1;this.ml=0;this.xc=this.xm=!1;this.sa=0;this.Kg=this.mg=!1;this.Ji=!0;this.im=this.fa=!1;this.ol=-1;this.iq="";this.tl=this.vc=0;this.Wd=!1;this.mm=!0;this.ta=new Xs(this);this.h={o:this.o,v:this.v,Text:this.Text,$o:this.Se,Zo:this.Pe,Ye:this.va,jt:this.Ho,it:this.kp,Mf:this.Ga,te:this.Ta,Ce:void 0,Be:void 0};this.ue="";this.rb=!1;this.Rl=0;this.El=!1;this.mb=!0;this.$p=!1;y||(this.Xb=null,this.Xa="none",this.Yl=!1);this.Text="";this.ym=!1;this.Tl=!0;this.Nf=[];this.Fl="";this.Ql=!1};
g.ui=function(){this.g=new Ks(this.ud,this.l,this,this)};g.Ie=function(){this.g.i=this;pr.prototype.Ie.call(this)};
g.yf=function(){var a=this;if(null!=this.za()){pr.prototype.yf.call(this);var b=this.za();xf(b,"mouseover",function(){},!1);xf(b,"dragenter",function(){try{a.Io()}catch(c){}},!1);xf(b,"dragleave",function(){try{a.Jo()}catch(c){}},!1);Xa?b.addEventListener("textinput",function(c){eq(a,c)},!1):b.addEventListener("keyup",function(c){eq(a,c);xt(a,yt(a))});Za&&xf(b,"MSHoldVisual",function(){try{a.oj()}catch(c){}});xf(b,"blur",function(c){a.Gl&&(clearTimeout(a.Dq),zt(a),a.Gl=!1);if(!mb()||!Od(a.host.getLayoutElement(),
c.relatedTarget||document.activeElement))a:try{if(Wa){if(ff&&y&&Me&&Ne==a.la){null!=Oe&&1==Oe&&(Oe=!1);break a}Oe=!1;y&&(ff=!1)}bq(a,c);gf={gd:!1,Oc:!1,Cd:!1}}catch(d){}},!1);xf(b,"focusout",function(c){mb()&&Od(a.host.getLayoutElement(),c.relatedTarget||document.activeElement)||(Oe=!1,y&&(c=c.toElement||c.relatedTarget)&&c.id==a.la+"_Inside_Div_Container"&&(Oe=!0),y&&Me&&(Me=!1,Ne=""),ff&&(ff=!1))},!1);xf(b,"focus",function(){ff=!0;Yp(a)},!1);xf(b,"activate",function(){Me=!0;Ne=a.la;Me=!0;Ne=a.la},
!1);xf(b,"deactivate",function(){Me=!1;Ne="";ff=!1},!1)}};g.Ue=function(){return this.em};function At(a,b){b=I(Fa,b);if(null!==b&&(a.Nd="insert"===b||"fixedinsert"===b?!1:!0,b!==a.bb)){var c=!1;if("insert"!=b&&"fixedinsert"!=b||!Bt(a.bb)){var d=a.bb;("insert"==d||"fixedinsert"==d)&&Bt(b)&&(c=!0)}else c=!0;Bt(b)&&(a.g.zd=!0);a.bb=b;a.La=b;c&&N(a.host,a.i.EditStatusChanged,null)}}function Ct(a,b){b=I(Fa,b);null!==b&&(a.Nd="insert"===b||"fixedinsert"===b?!1:!0,b!==a.La&&(a.La=b))}
function Dt(a,b){b=lg(b);a.l=b;Ms(a.g);b=Et(a,a.ia(),void 0,void 0,!0);a.h.Text=b;"none"!==a.Xa&&Ft(a);Gt(a)}g.Od=function(){return this.We};function Ht(a,b){b=H(b);a.Bb=b;a.Rd(Ds(a.g.fa,a.ia()).qh)}g.setPasswordRevelationMode=function(a){a=I(Hs,a);null!==a&&this.lc!==a&&(this.lc=a)};g.Pn=function(){return this.lc};function It(a,b){a.Qd||""!==a.na?(a.ka=!0,Jt(a,!1)):(a.cb=b)?(a.za().setAttribute("type","password"),a.ka=!0,Jt(a,!0)):(a.za().setAttribute("type","text"),a.ka=!1,Jt(a,!1))}
function Jt(a,b){b&&"number"===typeof a.Ma?a.za().setAttribute("maxlength",a.Ma.toString()):a.za().removeAttribute("maxlength")}g.hq=function(a){return"insertFromDrop"!==a.inputType};
g.sr=function(a){if(null!==a){var b;arguments[0]instanceof Array?b=arguments[0]:b=Array.prototype.slice.call(arguments);if(0!==b.length&&(1!==b.length||""!==b[0])){this.Nf=[];for(var c=0;c<b.length;c++)this.Nf.push(b[c]);b="";if(this.u)for(c=0;c<this.Nf.length;c++)0<c&&(b+="\r\n"),b+=this.Nf[c];else for(c=0;c<this.Nf.length;c++)b+=this.Nf[c];this.Rd(b)}}};function Kt(a,b){b=null==b?null:kg(b);null!==b&&(0>b?fc():(a.Ma=b,Et(a,a.ia()),"none"!==a.Xa&&Ft(a),a.h.Text=a.ia()))}g.uh=function(){return this.u};
g.Lk=function(){return this.na&&0<this.na.length||this.cb};function Lt(a,b){It(a,!1);if(""!==b){b=ng(b);if(null===b)return;if(a.na===Mt()&&a.Qd){a.Fl=b;return}a.Fl=a.na;a.na=b;a.ka=!0;Et(a,a.ia())}else{!1===a.Qd&&(a.ka=!1,a.Rd(a.s.g));if(a.na===Mt()&&!a.Qd&&""!==a.Fl){b=ng(a.Fl);if(null===b)return;a.na=b;a.ka=!0;Et(a,a.ia());"none"!==a.Xa&&Ft(a);return}a.na=b}a.Ql=!0;"none"!==a.Xa&&Ft(a);yq(a.host)}function Nt(a,b){b=I(Gs,b);null!==b&&(a.Dc.mj=b)}
function vt(a,b){b=I(dt,b);null!==b&&(a.Pl=b,Ot(a,b,a.Nl),a.Ts=a.za().style.width,a.za().style.width=parseInt(a.za().style.width,10)-5+"px",a.Lm&&(window.clearTimeout(a.Lm),a.Lm=null),a.Lm=window.setTimeout(function(){a.za().style.width=a.Ts},10),Gt(a))}function Pt(a){return Math.min(a.o,a.v)}
function Qt(a,b){b=kg(b);if(null!==b)if(0>b)fc();else if(null!=b){var c=b.toString();b=parseInt(c,10);Jf("0123456789",c)==c&&(b>a.ia().ba()?(a.o=a.ia().ba(),a.v=a.ia().ba(),a.u||(a.h.o=a.h.Text.ba(),a.h.v=a.h.Text.ba())):(c=Rt(a),a.o=b,a.u||(a.h.o=St(a.h.Text,b)),b+c<=a.ia().ba()?(a.v=b+c,a.u||(a.h.v=St(a.h.Text,b+c))):(a.v=a.ia().ba(),a.u||(a.h.v=a.h.Text.ba()))))}}function Tt(a){var b="",c=Math.min(a.o,a.v),d=Math.max(a.o,a.v);0!=d-c&&(b=Kq(a,!0),b=b.Db?C(b.og,c,d):C(a.ia(),c,d));return b}
function Ut(a,b){b=lg(b);a.va=a.ia();var c=a.o,d=a.v,e=a.ia();a.u||(a.h.Ye=a.h.Text,c=a.h.o,d=a.h.v,e=a.h.Text);b=a.g.pc(c,d,e,a.mc,a.Og,a.Ma,a.Bb,a.Xb,a.Hb,a.u,b,!0);null!=b.Text&&(Vt(a,b.Text),a.u||(a.h.Text=b.Text));c=Kq(a,!0);null!=b.o&&(a.o=b.o,a.u||(a.h.o=b.o,c.Db||(a.o=Wt(a.h.Text,b.o))));null!=b.v&&(a.v=b.v,a.u||(a.h.v=b.v,c.Db||(a.v=Wt(a.h.Text,b.v))));b=a.va;a.va=a.ia();a.Ga=a.va;a.h.Ye=a.h.Text;a.h.Mf=a.h.Ye;a.ia()!=b&&N(a.host,a.i.TextChanged,null);"none"!==a.Xa&&Ft(a)}
function Rt(a){return Math.abs(a.v-a.o)}function Xt(a,b){b=kg(b);if(0>b||null===b)fc();else{var c=b.toString();Jf("0123456789",c)==c&&(c=Pt(a),a.o=c,c+b<=a.ia().ba()?(a.v=c+b,a.u||(a.h.v=St(a.h.Text,c+b))):(a.v=a.ia().ba(),a.u||(a.h.v=a.h.Text.ba())))}}g.ia=function(){return this.Text};g.qa=function(){return this.Text};function Yt(a){return Zt(a,a.ia())}function Zt(a,b){var c=b;a.ka&&!a.cb&&(c=Qs(b,a.na,a.u));return c}
function yt(a){if(a.ka&&!a.cb){a=a.s.g;var b=ad(a,":true");var c;-1==b?c=a:c=C(a,0,b);return c}null==b&&(b=!0);c=b?a.s.ia():a.ia();a.rb&&!a.mg&&(c=a.ia());return c}
g.Rd=function(a,b){var c=this;b=void 0===b?!0:b;null==a&&(a="");a=lg(a);a=$t(this,a||"");this.Ql=!1;Et(this,a,!1,void 0,!0);this.ia()!=this.va&&b&&(this.va=this.ia(),Jq(this.s,this.ia()));this.Ga=this.ia();this.v=this.o=a=this.Ga.ba();this.Ta=this.Ga;this.h.Text=this.ia();this.h.Mf=this.h.Text;this.h.o=a;this.h.v=a;this.h.te=this.h.Text;"none"!==this.Xa&&b&&(hb?setTimeout(function(){Ft(c)},0):Ft(this));Gt(this)};g.Fd=function(){return this.pl};
function du(a,b){b=H(b);a.Tl=b;a.za().style.wordWrap=!1===b?"normal":"break-word";a.uh()&&(a.za().style.whiteSpace=b?Xa||cb||db||Wa?"pre-wrap":"pre":"pre");var c=a.za().style.width;a.za().style.width=parseInt(a.za().style.width,10)-5+"px";a.Nm&&(window.clearTimeout(a.Nm),a.Nm=null);a.Nm=window.setTimeout(function(){a.za().style.width=c},10);Ot(a,a.Pl,a.Nl)}g.fb=function(){this.Rd("");return this};
g.Ub=function(){var a=this.ia(),b=this.Ta,c=this.Ga,d=this.Ce,e=this.Be;this.u||(a=this.h.Text,b=this.h.te,c=this.h.Mf,d=this.h.Ce,e=this.h.Be);a=this.g.Ub(a,b,c,d,e);if(null==a)return!1;null!=a.Text&&(a.Zd?(this.Ta=this.Text,this.Gh=!0,this.u||(this.h.te=this.h.Text)):(this.Ga=this.Text,this.u||(this.h.Mf=this.h.Text)),Et(this,a.Text,!0));null!=a.o&&(this.Ce=this.o,this.o=a.o,this.u||(this.h.Ce=this.h.o,this.h.o=this.o,this.o=Wt(a.Text,a.o)));null!=a.v&&(this.Be=this.v,this.v=a.v,this.u||(this.h.Be=
this.h.v,this.h.v=this.v,this.v=Wt(a.Text,a.v)));1==a.Ca&&this.Ca(this.o,this.v);xt(this,this.ia())};
g.dd=function(){if(Jr(this)){var a=this.o,b=this.v,c=this.ia();this.u||(a=this.h.o,b=this.h.v,c=this.h.Text);a=this.g.dd(c,a,b);if(null==a)return!1;null!=a.o&&(this.o=a.o,this.u||(this.h.o=this.o,this.o=Wt(a.Text,a.o)));null!=a.v&&(this.v=a.v,this.u||(this.h.v=this.v,this.v=Wt(a.Text,a.v)));a.Zd&&(this.Gh=!0,this.Ta=this.ia(),this.u||(this.h.te=this.h.Text));null!=a.Text&&(Vt(this,a.Text),this.u||(this.h.Text=a.Text));1==a.Ca&&this.Ca(this.o,this.v);null!=a.pa&&N(this.host,a.pa.gb,a.pa.ib);xt(this,
this.ia())}};g.Copy=function(){this.ka||(this.Ca(this.o,this.v),this.g.Copy(this.ia(),this.o,this.v))};
g.rf=function(){if(!fr(this)){var a=this.o,b=this.v,c=this.ia();this.u||(a=this.h.o,b=this.h.v,c=this.h.Text);var d=this.g,e={};a<b?(e.o=a,e.Text=C(c,0,a)+C(c,b,c.ba())):(e.o=b,e.Text=C(c,0,b)+C(c,a,c.ba()));e.v=e.o;e.Ca=!0;e.Text!=c&&(e.Zd=!0,d.ka=!0);null!=e&&(e.Zd&&(this.Ta=this.Text,this.Gh=!0,this.u||(this.h.te=this.h.Text)),null!=e.o&&(this.o=e.o,this.u||(this.h.o=this.o,this.o=Wt(e.Text,e.o))),null!=e.v&&(this.v=e.v,this.u||(this.h.v=this.v,this.v=Wt(e.Text,e.v))),null!=e.Text&&(Vt(this,e.Text),
this.u||(this.h.Text=e.Text)),1==e.Ca&&this.Ca(this.o,this.v),xt(this,this.ia()))}};
g.pc=function(a){if(Jr(this)){var b=this.o,c=this.v,d=this.ia(),e=!F(d)&&c-b===d.length;this.u||(b=this.h.o,c=this.h.v,d=this.h.Text);a=this.g.pc(b,c,d,this.mc,this.Og,this.Ma,this.Bb,this.Xb,this.Hb,this.u,a,!1);if(null==a)return!1;null!=a.o&&(this.o=a.o,this.u||(this.h.o=this.o,this.o=Wt(a.Text,a.o)));null!=a.v&&(this.v=a.v,this.u||(this.h.v=this.v,this.v=Wt(a.Text,a.v)));null!=a.Text&&(d=!1,this.ka&&"showlasttypedchar"===this.lc&&0<a.Text.length&&(d=a.Vr,b=eu(this,Qs(d.slice(0,-1),this.na,this.u)+
d.slice(-1),b,c),Iq(this.s,b),d=!0),Vt(this,a.Text,void 0,void 0,d,e),this.u||(this.h.Text=a.Text));1==a.Ca&&this.Ca(this.o,this.v);if(null!=a.pa)for(e=0;e<a.pa.length;e++)null!=a.pa[e]&&N(this.host,a.pa[e].gb,a.pa[e].ib);xt(this,this.ia())}};
g.ti=function(a){var b={},c=Kq(this,!0);c.Db?(b.o=0,b.v=c.og.length):(a=this.ia(),this.u||(a=this.h.Text),b=this.g.Yc(a));null!=b&&(null!=b.o&&(this.o=b.o,this.u||c.Db||(this.h.o=this.o)),null!=b.v&&(this.v=b.v,this.u||c.Db||(this.h.v=this.v,this.v=Wt(a,b.v))),this.Ca(this.o,this.v))};g.Sk=function(a){pr.prototype.Sk.call(this,a);this.h.o=a};g.mn=function(a){pr.prototype.mn.call(this,a);this.h.v=a;this.u||(this.v=Wt(this.h.Text,a))};function Gt(a){a.Ga=a.ia();a.Ta=a.Ga;a.h.te=a.Ga;a.h.Mf=a.Ga}
function Ot(a,b,c){if(a.uh()){void 0!==a.za().style.webkitOverflowScrolling&&(a.za().style.webkitOverflowScrolling="touch");switch(b){case "both":"automatic"==c?(a.za().style.overflowX="auto",a.za().style.overflowY="auto"):(a.za().style.overflowX=a.Tl?"auto":"scroll",a.za().style.overflowY="scroll");break;case "none":void 0!==a.za().style.webkitOverflowScrolling&&(a.za().style.webkitOverflowScrolling="auto");a.za().style.overflowX="hidden";a.za().style.overflowY="hidden";break;case "vertical":"automatic"==
c?(a.za().style.overflowX="hidden",a.za().style.overflowY="auto"):(a.za().style.overflowX="hidden",a.za().style.overflowY="scroll");break;case "horizontal":a.za().style.overflowY="hidden",a.za().style.overflowX="automatic"==c?"auto":a.Tl?"auto":"scroll"}if(db||cb){var d=a.za().style.width;a.za().style.width=parseInt(a.za().style.width,10)-1+"px";a.Jm&&(window.clearTimeout(a.Jm),a.Jm=null);a.Jm=window.setTimeout(function(){a.za().style.width=d},0)}Et(a,a.ia())}}
g.Ck=function(){this.fa||Sa&&!1===this.Vl||(this.o=dg(this.za()),this.v=this.o+Ss(this.g,this.u),this.u||(this.h.o=St(this.h.Text,this.o),this.h.v=St(this.h.Text,this.v)))};g.pg=function(a,b){this.sf||(this.u?qg(this,a,b,!0):pr.prototype.pg.call(this,a,b))};function fu(a,b,c){a.u?qg(a,b,c,!0):(qg(a,b,c),a.h.o=St(a.h.Text,b),a.h.v=St(a.h.Text,c));a.o=b;a.v=c}function gu(a,b,c,d,e){var f={};f.o=b;f.v=c;a.rb&&(f.o=hu(a,b,d,e,a.Rl),f.v=b==c?f.o:hu(a,c,d,e,a.Rl));return f}
function Mt(){if(hb)return"\u25cf";switch(nb().toLowerCase()){case "win2000":return"*";case "win2003":return"\u25cf";case "winxp":return"\u25cf";case "vista":return"\u25cf";case "win7":return"\u25cf";case "win8":return"\u25cf";default:return"*"}}function xt(a){var b=yt(a);b!==a.tp&&(a.tp=b)}
function Et(a,b,c,d,e){var f=Us(a.g,b);b=f;null!=a.Ma&&(b=Os(a.g,f,a.Ma,a.Bb));null!=a.Xb&&a.u&&(a.ka?(f=Qs(b,a.na,a.u),f=Rs(a.g,"","",f,a.Xb,a.Hb),b=C(b,0,f.ba())):b=Rs(a.g,"","",b,a.Xb,a.Hb));document.activeElement!==a.za()&&(b=iu(a,b));d&&(Wa||cb)?Vt(a,b,!0,e):Vt(a,b,void 0,e);!a.u&&c&&(a.h.Text=b);xt(a);return b}
function Vt(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;a.Ji=!1;var h=b;a.ka&&!a.cb&&(h=Qs(b,a.na,a.u));a.u||y||(h=h.replace(/\r\n/g,""),h=h.replace(/\n/g,""),h=h.replace(/\r/g,""));c||(e?setTimeout(function(){a.s.ia().length===h.length&&(Iq(a.s,h),a.Ca(a.o,a.v))},1E3):Iq(a.s,h),ju(a));a.Text!=b&&(a.hb(b,f,d),a.Ql||(a.Ql=!1,d&&!a.ca&&N(a.host,a.i.TextChanged,null)));Jq(a.s,b);a.ca||(b=a.wf(a.ca),""!==b&&Iq(a.s,b));M(a)}function ku(a,b){var c=b;a.ka&&!a.cb&&(c=Qs(b,a.na,a.u));Iq(a.s,c)}
function Wt(a,b){if(0>b)return-1;var c=b;b>=a.ba()&&(c=a.ba());for(a=C(a,0,c);b=a.ba(),a=a.replace(/\r/g,""),a=a.replace(/\n/g,""),b!=a.ba(););return a.ba()}function lu(a){for(;;){var b=a.ba();a=a.replace(/\r/g,"");a=a.replace(/\n/g,"");if(a.ba()==b)break}return a}function St(a,b){if(0>=b)return 0;if(b>=a.ba())return a.ba();for(var c=b;c<a.ba();){var d=C(a,0,c);d=lu(d);if(d.ba()==b)break;else c+=1}return c}
g.ed=function(){var a=this;cb||Sa||db?this.u?(this.Gl=!0,this.Dq=setTimeout(function(){zt(a);a.Gl=!1},100)):zt(this):zt(this);Dq(this,!0)};
function zt(a){a.nm=!0;a.Pq=a.s.ia();a.Vl=!1;setTimeout(function(){a.Vl=!0});var b=a.Pq;var c=Wa&&!a.Fa?Zt(a,yt(a)):Zt(a,a.ia());c=a.g.ed(a.ea,a.za(),c,a.u,a.We);a.Fa=!1;Ue=a.la;if(null!=c){Iq(a.s,c.Text);mb()&&F(a.Text)&&(a.Pm=c.Text);M(a);a.rb&&ku(a,a.Text);null!=c.o&&(a.o=c.o);null!=c.v&&(a.v=c.v);null!=c.o&&null!=c.v&&(b=gu(a,a.o,a.v,a.Text,b),a.rb&&(a.o=b.o,a.v=b.v),a.u||(a.h.o=St(a.h.Text,b.o),a.h.v=St(a.h.Text,b.v)));1==a.g.ta?(-1!=a.ol&&(a.o=a.ol,a.v=a.ol,a.u||(a.h.o=St(a.h.Text,a.o),a.h.v=
St(a.h.Text,a.v))),a.g.ta=!1):3!=a.ea&&11!=a.ea&&12!=a.ea&&(a.va=a.ia(),a.Se=a.o,a.Pe=a.v,a.Ce=a.Se,a.Be=a.Pe,a.u||(a.h.Ye=a.h.Text,a.h.$o=a.h.o,a.h.Zo=a.h.v,a.h.Ce=a.h.$o,a.h.Be=a.h.Zo,setTimeout(function(){a.h.o=a.o;a.h.v=a.v},0)));1==a.za().readOnly&&0==a.ea&&(a.o=0,a.v=a.Text.length);a.Kg&&(a.Kg=!1);if(1==c.Ca||a.rb){var d=a.o,e=a.v;d===a.za().selectionStart&&e===a.za().selectionEnd||setTimeout(function(){a.Ca(d,e,!0)},100)}Qr(a);a.$p&&(a.$p=!1);a.im&&(as(a.g,a.la,!0),a.im=!1);"undefined"!==typeof a.Em&&
(a.va=a.Em);a.rb&&(a.rb=!1);db&&a.Ss&&(b=a.s.ia(),a.Ss=null,Et(a,b));a.Ij=!0}}
g.Vd=function(a){var b=this;hb&&db&&this.bq&&(this.Bm=!0);N(this.host,this.i.beforefocusout,{});this.nm=!1;mu(this,!1);Gt(this);!0===Qe?this.Em=this.Text:delete this.Em;Hr(this);y&&this.fa&&nu(this);if(y)this.fa&&(this.Rb("LoseFocusInput",void 0,a),this.sa=0);else if(this.fa&&this.Rb("ReInput",!0,a),Zt(this,this.Text)!==this.s.ia()&&!ou(this)){var c;cb||db||Wa?c=Kq(this,!0).Db?"":this.s.ia():c=this.Text;c=c.replace(/\\/g,"\\\\");this.u?c=$t(this,c):(c=c.replace(/\r\n/g,""),c=c.replace(/\r/g,""),c=
c.replace(/\n/g,""));Et(this,c,!0)}"none"!==this.Ki&&pu(this);var d=Ws(this,Zt(this,this.Text),!1);this.Rm&&Xa?setTimeout(function(){Iq(b.s,d)},0):Iq(this.s,d);M(this);this.ea=0;a=y?this.ia():this.s.g;this.va==a||this.g.ta?(Ft(this),this.s.g!=this.ia()&&y&&Jq(this.s,this.ia())):(this.va=this.Text,y&&(this.hb(this.ia()),Jq(this.s,this.ia())),Ft(this),N(this.host,this.i.TextChanged,null),this.Ji&&this.Pq==this.ia()||(this.Ji=!0,Vf(this.za())));this.he=!0;dr(Mq.instance);Er(this.ta)&&Fr(this.ta);Dq(this,
!1)};function hu(a,b,c,d,e){a=a.nh.ba();if(b<=e)return b;if(b>=e+a)return c.ba()-d.ba()+b;c=c.ba()-d.ba()+a;return Math.floor((b-e)*c/a)+e}function Ft(a){qu(a,a.u,a.Xa,a.nh,a.za())}
function qu(a,b,c,d,e){a.rb=!1;if(!b&&"none"!=c&&!a.Pf()){ku(a,a.Text);b=c;var f=e.value;c=e.value;var h="",k="",l=!0;e.value=f;var m=e.getBoundingClientRect().width;m=0<m?m-Nd(e):0;if(ig(e)>m){a.rb=!0;var n=e.value=d;ig(e)>m?(n="",c=f=d):"ellipsispath"==b&&(d=ad(c,"\\"),-1!=d&&(e.value=n+c.substr(d),ig(e)<=m&&(n=e.value,f=C(c,0,d),b="ellipsisend")));e.value=f+n;do{e.value.ba();d=Math.ceil(ig(e));var q=ig(e)-m;d=Math.ceil(q/d);"ellipsisend"==b?(e.value=C(f,0,f.ba()-d)+n,f=C(f,0,f.ba()-d)):"ellipsispath"==
b&&(k=Math.ceil((f.ba()-d)/2),h=f.substr(0,k),k=f.substr(k+d),e.value=h+n+k,f=h+k)}while(ig(e)>m);f=f.ba();do"ellipsisend"==b?(e.value=C(c,0,f+1)+n,f+=1):"ellipsispath"==b&&(l?(k=c.substr(c.ba()-k.ba()-1),l=!1):(h=c.substr(0,h.ba()+1),l=!0),e.value=h+n+k);while(ig(e)==m);"ellipsisend"==b?(e.value=C(c,0,f-1)+n,a.Rl=f-1):"ellipsispath"==b&&(l?h=c.substr(0,h.ba()-1):k=c.substr(c.ba()-k.ba()+1),e.value=h+n+k,a.Rl=h.ba())}}}
g.Rb=function(a,b,c,d){d=void 0===d?!0:d;var e="DirectInput"!=a||b?"LoseFocusInput"==a&&this.s.ia()!=this.ia()?this.s.ia():this.ia():this.s.ia();if(e==this.Text)return null!=c&&Cf(c),this.fa=!1;if(y&&this.mb)return Et(this,e,!0),!1;var f=this.Text;mb()&&""==this.Text&&!F(this.Pm)&&(d&&(f=this.Pm),this.Pm="");var h;if(""!=f){d=Math.min(this.o,this.v);var k=Math.max(this.o,this.v);y||""==this.Text||(f=Zt(this,this.Text));k<f.ba()?(f=C(f,k,f.ba()),-1!=e.jb(f)?h=C(e,d,e.ba()-f.ba()):h=""):h=C(e,d,e.ba())}else h=
e;"ReInput"==a&&(h=b?C(h,0,h.ba()):C(h,0,h.ba()-1));if("Record"==a)return h;b=!1;if("LoseFocusInput"==a){if(""==h){this.ia()!=this.Text&&Iq(this.s,this.Text);return}b=!0;this.g.ta=!0}this.g.ca=!0;this.g.Ma=!0;"ReInput"==a||!y&&"ClickInput"==a?this.cb||ru(this,h,!0,b):this.cb||ru(this,h,!1,b);y&&(c.m=h);this.mb=!0;this.g.Ma=!1;this.xc=this.fa=this.g.ta=!1;if("ReInput"==a||"ClickInput"==a)this.ol=this.o,this.ea=8};g.sd=function(){return this.Gh?this.ia()!=this.Ta:this.ia()!=this.Ga};
function nu(a){y||cb||db||(a.Qg=null);if(""!=a.ob&&a.i.ReadingStringOutput){var b={};b.ot=a.ob;var c={};c.gb=a.i.ReadingStringOutput;c.ib=b;y||cb||db?N(a.host,c.gb,c.ib):a.Qg=c}}function su(a){if(void 0===a||null===a||0===a.length)return!1;for(var b=0;b<a.length;b++){var c=a[b];if(" "==c||"\u3000"===c)c=!0;else{var d=pp(L,c)&-32769;c=d==L.h.i||d==L.h.g||7==d||8==d||d==L.h.h||d==L.h.Symbol||3==d||d==L.h.s||-1!==L.g.ga.indexOf(c)?!0:!1}if(!c)return!1}return!0}
function tu(a,b,c){if(null==a||""===a)return a;if(c){if(null==wt){var d=wt={};d.A="\uff74\uff72";d.B="\uff8b\uff9e\u30fc";d.C="\uff7c\u30fc";d.D="\uff83\uff9e\uff68\u30fc";d.E="\uff72\u30fc";d.F="\uff74\uff8c";d.G="\uff7c\uff9e\u30fc";d.H="\uff74\uff72\uff81";d.I="\uff71\uff72";d.J="\uff7c\uff9e\uff6a\uff72";d.K="\uff79\uff72";d.L="\uff74\uff99";d.M="\uff74\uff91";d.N="\uff74\uff87";d.O="\uff75\u30fc";d.P="\uff8b\uff9f\u30fc";d.Q="\uff77\uff6d\u30fc";d.R="\uff71\u30fc\uff99";d.S="\uff74\uff7d";d.T=
"\uff83\uff68\u30fc";d.U="\uff95\u30fc";d.V="\uff73\uff9e\uff68\u30fc";d.W="\uff80\uff9e\uff8c\uff9e\uff98\uff6d\u30fc";d.X="\uff74\uff6f\uff78\uff7d";d.Y="\uff9c\uff72";d.Z="\uff7e\uff9e\uff6f\uff84"}d="";for(var e=0;e<a.length;e++){var f=a[e];var h=f;Ep(L,h)&&(yp(L,h)&&(h=Op(L,h)),Dp(L,h)&&(h=Dp(L,h)?String.fromCharCode(h.charCodeAt(0)-32):h));h==f&&(h=L,(pp(h,f)&-32769)==h.h.Symbol?(yp(L,f)&&(f=Op(L,f)),h=f):h=f);f=h;d+=wt[f]||f}a=d}d="";"katakana"==b?d="^KH"+uu:"hiragana"==b?d="^KH"+vu:"katakanahalf"==
b&&(b="",!1===c&&(b="\uff41\uff21"),d="^\uff19"+b+uu+vu);return Ds(new us(!0,d),a).qh}g.ji=function(){try{this.Rb("DirectInput")}finally{this.fa=!1}y||null==this.Qg||(N(this.host,this.Qg.gb,this.Qg.ib),this.Qg=null)};function $t(a,b){a=void 0===b?a.Text:b;a=a.replace(/\r\n/g,"\n");a=a.replace(/\r/g,"\n");return a=a.replace(/\n/g,"\r\n")}
g.Td=function(a){var b=a.keyCode,c={gd:!1,Oc:!1,Cd:!1};a.shiftKey&&(c.gd=!0);if(a.ctrlKey||a.metaKey)c.Oc=!0;a.altKey&&(c.Cd=!0);this.iq=yt(this);this.Aq=8==b||46==b||c.Oc&&88==b?!0:!1;var d;if(Mq.instance.u)return 38!=b&&40!=b&&13!=b&&85!=b&&84!=b&&67!=b&&80!=b&&68!=b&&65!=b||Mq.instance.performKeyDown(b),27!=b&&18!=b||dr(Mq.instance),!y||38!=b&&40!=b&&33!=b&&34!=b?!1:d={jd:37};if(Er(this.ta))return 27!=b&&18!=b||Fr(this.ta),!1;d=Kq(this,!0).Db;var e=!d&&yt(this)!=$t(this);if(229==b&&!this.El||13==
b&&e)return!ib&&db&&null!=a.key&&1==a.key.length&&(this.g.ca=!0,this.cb||ru(this,a.key)),!0;this.fa&&(e=(e=c.gd||c.Oc||20==b||112<=b&&123>=b)||8==b&&!y,e||(this.Rb("ReInput",!0,a),this.sa=0,this.fa=!1));229==b&&this.El&&(this.El=!1);c.gd&&(b|=65536);c.Oc&&(b|=131072);e="";var f=Pr(this,b);f&&(e=f);var h=!1;if(null!=this.$l)for(f=0;f<this.$l.length;f++)if(this.$l[f]==b.toString()){h=!0;break}if((262182==b||262184==b)&&!h)return!1;95<b&&106>b&&(b-=48);h=this.o;var k=this.v,l=yt(this),m=this.Ta,n=this.Ga,
q=this.Ce,u=this.Be;if(!this.u)if(l!==this.h.Text)switch(b){case 131139:case 131117:case 131160:case 65582:case 131137:break;default:h=this.h.o,k=this.h.v,l=this.h.Text,m=this.h.te,n=this.h.Mf,q=this.h.Ce,u=this.h.Be}else h=this.h.o,k=this.h.v,l=this.h.Text,m=this.h.te,n=this.h.Mf,q=this.h.Ce,u=this.h.Be;f=!F(l)&&k-h===l.length;a=this.g.Td(b,c,this.La,this.Nd,h,k,fr(this),this.Ma,this.Bb,this.Xb,this.Hb,this.mc,this.Cc,this.u,this.ka,l,this.Og,this.Ng,this.zp,m,n,q,u,e,a);if(null==a)return!1;if(null!=
a.$g)return!0;a.$q&&ru(this,"\r\n");1==a.ar&&(d||this.hb(yt(this)),this.cb||ru(this,"\t"));a.Zd&&(this.Gh=!0,a.wj||(this.Ta=yt(this),this.Ce=this.Ta.ba(),this.Be=this.Ta.ba(),this.u||(this.h.te=this.h.Text,this.h.Ce=this.h.te.ba(),this.h.Be=this.h.te.ba())));null!=a.Text&&(1==a.Ub&&(this.Ta=this.Ga=this.Text,this.u||(this.h.Mf=this.h.Text,this.h.te=this.h.Mf)),Vt(this,a.Text,void 0,void 0,void 0,f),this.u||(this.h.Text=a.Text));d=Rt(this);b=Kq(this,!0);null!=a.o&&(1==a.Ub&&(this.Ce=this.o,this.u||
(this.h.Ce=this.h.o)),this.o=a.o,this.u||(this.h.o=this.o,b.Db||(this.o=Wt(this.h.Text,a.o))));null!=a.v&&(1==a.Ub&&(this.Be=this.v,this.u||(this.h.Be=this.h.v)),this.v=a.v,this.u||(this.h.v=this.v,b.Db||(this.v=Wt(this.h.Text,a.v))));b=Rt(this);if(null!=a.jd)return d={},d.jd=a.jd,d;null!=a.Va&&(this.ea=a.Va);null!=a.mi&&this.Nd!=a.mi&&("insert"==this.La?Ct(this,"overwrite"):"overwrite"==this.La&&Ct(this,"insert"));if(null!=a.pa)for(f=0;f<a.pa.length;f++)null!=a.pa[f]&&("KeyExit"==a.pa[f].Ek?this.Gg=
a.pa[f]:N(this.host,a.pa[f].gb,a.pa[f].ib));if(null!=a.Aa)return a.Aa;1==a.Ca&&(Je=0==d&&0!=b?!0:!1,this.Ca(this.o,this.v),Je=!1);return!1};
g.Zl=function(a){if(this.cb&&"string"===typeof a.data){var b=this.g,c=a.data;c&&(c=c.replace(/[\r\n]/g,""));var d=b.fa.autoConvert;b.fa.autoConvert=!1;c=Ds(b.fa,c).qh;b.fa.autoConvert=d;c.length!==a.data.length&&a.preventDefault();this.Ma&&0==Os(this.g,a.data,this.Ma-this.s.ia().ba()+this.v-this.o,this.Bb).length&&a.preventDefault()}ot(this.jp,a)&&a.preventDefault();rt(this.rl,"beforeinput",a)&&(a.preventDefault(),this.rl.s&&(this.ga.value=this.vp))};
g.Bq=function(a){return rt(this.rl,"input",a)?(a.preventDefault(),!1):!0};g.Ud=function(a,b,c){if(!y&&this.fa&&192==b.keyCode&&b.altKey)this.Rb("ReInput",!0,b),this.sa=0,this.fa=!1;else return!y&&0==b.charCode&&13===(b.keyCode||b.charCode)&&(!this.u||!this.Ng&&this.u&&!b.ctrlKey)||this.cb?!0:ru(this,a,c)};
g.Ae=function(a){var b=a.keyCode;13!=b||this.ka||Kq(this,this.ca&&this.nm).Db||this.s.ia()==this.Text||(y&&this.fa?this.mb=!1:this.fa=!0);if(1==this.fa){var c=this.s.ia(),d=c;this.v<this.Text.ba()&&(d=this.Text.ba()-this.v,d=C(c,0,c.ba()-d));d=C(d,d.ba()-1,d.ba());13==b?(this.Rb("DirectInput",void 0,a),this.sa=0):48<=b&&57>=b||96<=b&&105>=b?(96<=b&&(b-=48),d=Op(L,d),d==String.fromCharCode(b)||this.xc?d==String.fromCharCode(b)&&1>this.sa?this.mb=!1:this.xc||(this.Rb("ReInput",void 0,a),this.mb=!1,
this.fa=!0):this.mb=!1,this.sa=0):32==b?0==this.xc&&(1==this.sa?this.xc=!0:Op(L,d)!=String.fromCharCode(b)?this.sa++:this.mb&&(this.g.Ma=!0,y&&(this.mb=!1),this.Rb("DirectInput",void 0,a),this.sa=0)):65<=b&&90>=b?(this.sa=0,this.mb=!1):32==b||106==b||107==b||109==b||110==b||111==b||219==b||220==b||221==b||222==b||186<=b&&192>=b||226==b?(1<=this.sa&&this.Rb("ReInput",void 0,a),this.sa=0,y&&(this.mb=!1)):38==b||40==b?0==this.xc&&1==this.sa&&(this.xc=!0):8==b||46==b?this.sa=0:27==b?this.sa=0:244==b?
this.El=!0:y||243!=b?y&&229==b&&(this.mb=!1):(this.Rb("ReInput",!0,a),this.sa=0,this.fa=!1)}242==b&&this.Rb("ReInput",!0,a);d=c=this.s.ia();this.v<this.Text.ba()&&(d=this.Text.ba()-this.v,d=C(c,0,c.ba()-d));var e=C(d,this.o,d.ba());d=e;var f;for(f=this.Hl.length;0<=f;f--)if(e.substring(0,f)==this.Hl.substring(0,f)){d=e.substring(f);break}this.Hl=e;c!=this.Text||13==b||a.altKey?32==b||229==b||112<=b&&123>=b||37==b||39==b||38==b||40==b||27==b||28==b||29==b||8==b||(a=tu(d,this.Dc.mj,this.Xe),y&&this.fa&&
(192!=b&&219!=b&&221!=b||1!=d.length||2!=a.length||this.ob.charAt(this.ob.length-1)==a.charAt(0)&&(a=a.charAt(1)),this.ob+=a)):this.ob=this.Hl="";if(1==this.g.h){this.g.h=!1;a=this.g.Ae(this.za(),this.u,this.o,this.v,yt(this));e=this.o;f=this.v;c=b=!1;this.u||(e=this.h.o,f=this.h.v);null!=a.o&&this.o!=a.o&&(b=!0,this.o=a.o,this.u||(this.h.o=St(this.h.Text,this.o)));null!=a.v&&this.v!=a.v&&(this.v=a.v,c=!0,this.u||(this.h.v=St(this.h.Text,this.v)));var h=this.s.ia();d=this.u?this.Text:lu(this.Text);
h=d.ba()-h.ba();if(this.u)if(this.ka){if(0!=h){var k=this.Text;b&&c?d=C(k,0,this.o)+C(k,f,k.ba()):b||(f=this.o+h,d=C(k,0,e)+C(k,f,k.ba()))}}else d=yt(this);else 0!=h&&(k=this.h.Text,b&&c?this.h.Text=C(k,0,this.h.o)+C(k,f,k.ba()):b||(f=St(k,this.o+h),this.h.Text=C(k,0,e)+C(k,f,k.ba()))),d=lu(this.h.Text);1==a.Mm&&(this.Text!==d&&(this.hb(d),y&&(e=Zt(this,this.ia()),Iq(this.s,e),this.Ca(this.o,this.v))),Jq(this.s,d));null!=a.Text&&Et(this,a.Text,!0);cb&&(b||c)&&(a.Ca=!0);1==a.Ca&&this.Ca(this.o,this.v)}this.u||
(this.h.Text=this.ia())};
g.Bk=function(a){null!=a&&(!Xa&&"value"===a.propertyName||Xa&&"textinput"===a.type)&&xt(this,yt(this));this.mg?null!=a&&!0!==this.Us&&(!Xa&&"value"!==a.propertyName||Xa&&"textinput"!==a.type)||(this.mg=!1,this.u||this.Text==yt(this)||(this.h.Ye=this.h.Text,this.h.Text=C(this.h.Text,0,this.h.o)+C(this.h.Text,this.h.v,this.h.Text.ba()),this.h.Mf=this.h.Ye,this.h.v=this.h.o),this.va=this.Text,this.hb(yt(this)),Jq(this.s,yt(this)),this.Ji=!0,this.Ga=this.va,Xt(this,0)):this.Kg?null!=a&&(!Xa&&"value"!==
a.propertyName||Xa&&"textinput"!==a.type)||(this.Kg=!1,this.ea=11,this.o=dg(this.za()),this.v=this.o+Ss(this.g,this.u),a=this.s.ia(),this.ka&&(a=this.v-this.ue.ba(),a=C(this.Text,0,a)+this.ue+C(this.Text,a,this.Text.ba())),this.va=this.Text,this.Text=a,Jq(this.s,a),this.Ji=!0,this.Ga=this.va):this.u||this.rb||this.ka||Jq(this.s,yt(this))};
g.tf=function(a){dr(Mq.instance);Er(this.ta)&&Fr(this.ta);this.Wd=!1;a=Ff(a);!y&&this.fa&&0==a&&(this.Yl=!0);this.ml=a;this.vc=this.o;this.tl=this.v;if(2==this.ml)3!=this.ea&&(this.ea=1);else{this.xm=!0;3!=this.ea&&(this.ea=1);try{0!=Ss(this.g,this.u)&&(this.Wd=!0,y&&!Sa&&Xf(this.za()))}catch(b){}}Rr(this);a=this.g.tf(this.za());null!=a&&(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v))};
g.ke=function(a){var b=this;if(this.Wd){this.Wd=!1;try{if(0!=Ss(this.g,this.u)){var c={};for(d in a)c[d]=a[d];var d=0;Sa&&this.We&&(d=200);setTimeout(function(){var k=b.za();b.o=dg(k);b.v=eg(k);b.ke(c)},d);return}}catch(k){}}y&&this.fa&&nu(this);d=this.ia();if(y&&(this.fa||this.Text!=d))this.fa&&(this.Rb("ClickInput",void 0,a),this.sa=0);else if(y||!this.fa&&(Zt(this,$t(this))==this.s.ia()||ou(this))){this.xm=!1;this.Ho=this.o;this.kp=this.v;var e=this.o,f=this.v;d=this.ia();a=this.g.ke(this.za(),
e,f,this.ml,this.u,d,this.We,a);if(null==a)return;null!=a.o&&(this.o=a.o,this.u||(this.h.o=St(this.h.Text,this.o)));null!=a.v&&(this.v=a.v,this.u||(this.h.v=St(this.h.Text,this.v)));1==a.Ca&&(this.vc===this.o||this.vc===this.v?(a=this.o,d=this.v,this.Ca(this.vc,this.vc===this.o?this.v:this.o),this.o=a,this.v=d):this.Ca(this.o,this.v))}else{if(!this.Yl)return;this.Rb("ClickInput",void 0,a);this.sa=0;if(Zt(this,this.Text)!=this.s.ia()){this.Yl=!1;var h=this.Text;this.u?(h=h.replace(/\r/g,"\\r"),h=h.replace(/\n/g,
"\\n")):(h=h.replace(/\r\n/g,""),h=h.replace(/\r/g,""),h=h.replace(/\n/g,""));window.setTimeout(function(){Et(b,h,!0)},0);this.Ck()}}this.ml=0};g.Am=function(){};g.gp=function(){return!1};g.vk=function(){if(this.ca&&1==this.Wd&&(4===this.Bd||void 0==this.Bd||"mouse"===this.Bd)){var a=Math.min(this.vc,this.tl),b=Math.max(this.vc,this.tl);""==C(this.ia(),a,b)||cb||(this.Ca(this.vc,this.tl),Ef(this.za()));this.Wd=!1}};
g.Jf=function(){var a=this.g.Jf(this.za(),this.ia());null!=a.o&&(this.o=a.o,this.u||(this.h.o=St(this.h.Text,this.o)));null!=a.v&&(this.v=a.v,this.u||(this.h.v=St(this.h.Text,this.v)));1==a.Ca&&this.Ca(this.o,this.v);return!0};function wu(a,b){return!y&&fr(a)?!1:null!=a.Mg&&a.Mg===a.la?(a.Mg=null,null==b&&(b=window.event),null!=b&&Cf(b),!1):!0}g.rh=function(){this.Mg=this.la;this.ka?window.event.dataTransfer.effectAllowed="none":this.mg=!0};
g.Fg=function(a){null!=a&&null!=a.dataTransfer&&"move"===a.dataTransfer.dropEffect&&null!==this.Mg&&(ab||bb||cb||db||Wa||Sa)&&(this.rf(),Jq(this.s,this.s.ia()));this.mg=!0;this.Mg=""};g.Io=function(){if(this.rb){var a=this.ia();ku(this,a);this.hb(a);M(this)}};g.Jo=function(){this.sf||Ft(this)};function Bt(a){return"overwrite"==a||"fixedoverwrite"==a}
function ru(a,b,c,d){if(a.fa||a.ym)var e=a.Text;else e=a.s.ia(),""!=e&&(e=a.ia());a.ym=!1;var f=a.o,h=a.v;if(!a.u){f=a.h.o;h=a.h.v;var k=a.h.Text;k=!F(k)&&h-f===k.length}b=a.g.Ud(f,h,b,e,a.Ma,a.Bb,a.mc,a.Nd,a.u,a.Xb,a.Hb);null!=b.Text&&(b.Zd&&(a.Ta=a.ia(),a.u||(a.h.te=a.h.Text)),e=!1,a.ka&&"showlasttypedchar"===a.lc&&(e=eu(a,b.Xr,a.o,a.v),Iq(a.s,e),e=!0),Vt(a,b.Text,c,void 0,e,k),a.u||(a.h.Text=b.Text));null!=b.o&&(a.o=b.o,a.u||(a.h.o=a.o,a.o=Wt(b.Text,b.o)));null!=b.v&&(a.v=b.v,a.u||(a.h.v=a.v,a.v=
Wt(b.Text,b.v)));1!=b.Ca||c||d||a.Ca(a.o,a.v);if(null!=b.pa)for(c=0;c<b.pa.length;c++)null!=b.pa[c]&&N(a.host,b.pa[c].gb,b.pa[c].ib);Sa&&a.Bk({type:"textinput"});return 1==b.Mm?!0:!1}function eu(a,b,c,d){return Qs(a.Text.substring(0,c),a.na,a.u)+b+Qs(a.Text.substring(d,a.Text.length),a.na,a.u)}function ou(a){return a.ka&&"showlasttypedchar"===a.lc?!0:!1}
g.Sg=function(){if(!this.Fd()||y&&!Sa)return!0;if(Va)try{window.netscape.vo.Gm.xn("UniversalXPConnect");var a=window.Components.Tg["@mozilla.org/widget/clipboard;1"].Vg(window.Components.bd.xl);if(!a)return;var b=window.Components.Tg["@mozilla.org/widget/transferable;1"].Vg(window.Components.bd.jo);if(!b)return;b.on("text/unicode");a.getData(b,a.fo);a={};var c={};try{b.Rp("text/unicode",a,c)}catch(d){return null}a&&(window.Components.bd.Yj?a=a.value.tj(window.Components.bd.Yj):window.Components.bd.Wi?
a=a.value.tj(window.Components.bd.Wi):a=null);if(a)return a.data.substring(0,c.value/2)}catch(d){}return!1};g.bm=function(a){pr.prototype.bm.call(this,a);this.Rs="";this.gq=0;this.Bh=!1;this.Ih=this.Pg="";this.Hp=!1};
g.kk=function(a){pr.prototype.kk.call(this,a);a.isTrusted&&(this.bq=!0);this.Hp=!0;var b=a.data;y&&(b=b||a.m);void 0!==b&&0!==b.length&&(a=(Wa?0:this.za().selectionStart)-b.length,a>this.gq?this.Bh||(a=this.Rs.substring(0,a-this.gq),this.Pg=su(a)?this.Pg+a:this.Pg+this.Ih,this.Ih="",this.Bh=!0):this.Bh&&(this.Bh=!1),su(b)&&(this.Ih=b))};
g.dj=function(a){this.bq=!1;if(y||hb||cb||db){this.fa=!0;this.mb=!1;try{this.Rb("DirectInput",void 0,a,!1)}finally{M(this),this.fa=!1}}this.Hp||this.kk(a);this.Bh=!1;var b=this.Pg+this.Ih;this.Ih=this.Pg="";if(0===a.data.length||0===b.length)if(!y||!a.m)return;this.ob=tu(b,this.Dc.mj,this.Xe);nu(this);a=this.jp;a.g=!0;a.h=Date.now();a=this.rl;a.h=!0;a.i=Date.now();a.g=0;this.vp=this.ga.value;hb&&db&&this.Bm&&(this.Bm=!1,this.ga.blur())};g.Pp=function(){return this.ka};
function xu(a){0<a.ga.value.length&&setTimeout(function(){var b=a.Text,c=a.va;a.fb();a.va=c;a.Ga=b;a.ea=12},0)}g.ql=function(){return 0===this.iq.indexOf(this.Text)&&this.Aq};g.ng=function(a){if(this.fa)return!1;this.xm&&(a=this.g.ng(this.za(),a,this.u),null!=a.o&&(this.o=a.o,this.u||(this.h.o=St(this.h.Text,a.o))),null!=a.v&&(this.v=a.v,this.u||(this.h.v=St(this.h.Text,a.v))))};
g.qm=function(a,b){var c=this;if(wu(this,b)&&(y||!this.za().readOnly)){this.Fa=!0;this.ea=3;this.Ca(this.o,this.v);this.u||(this.h.o=St(this.h.Text,this.o),this.h.v=St(this.h.Text,this.v));var d=dg(this.za());a=Vs(this.g,a,this.mc,d,d,this.Ma,this.Bb,this.Xb,this.Hb,this.u,yt(this));if(null!=a){if(null!=a.ue)if(this.ka){d=this.ia();var e=Qs(a.ue,this.na,this.u);y?(window.event.dataTransfer.setData("Text",e),e!=window.event.dataTransfer.getData("Text")&&(e=this.ia(),e+=a.ue,Et(this,e,!0),Cf(window.event),
Sa&&Cf(b))):(e=this.ia(),e+=a.ue,Et(this,e,!0,!0));this.ka&&"showeyebutton"===this.lc&&F(d)&&!F(this.ia())&&yu(this);this.ue=a.ue}else y&&!Sa?(window.event.dataTransfer.setData("Text",a.ue),a.ue!=window.event.dataTransfer.getData("Text")?(e=this.ia(),e+=a.ue,Et(this,e,!0),Cf(window.event),Sa&&Cf(b)):setTimeout(function(){var m=c.ia();Et(c,m,!0)},0)):(e=this.ia(),e+=a.ue,Et(this,e,!0,!0)),this.Kg=!0;if(null!=a.pa)for(b=0;b<a.pa.length;b++)null!=a.pa[b]&&null!=a.pa[b].gb&&(N(this.host,a.pa[b].gb,a.pa[b].ib),
a.pa[b].gb==this.i.KeyExit&&(this.im=!0));var f=this.u,h=this.Xa,k=this.nh,l=this.za();setTimeout(function(){Et(c,c.ia());c.ca||qu(c,f,h,k,l)},0)}}};g.za=function(){return this.ga};g.oj=function(){this.zm=!0};g.Ch=function(a,b){pr.prototype.Ch.call(this,a,b);this.Pf()&&!this.ca&&Iq(this.s,b)};g.Pf=function(){var a=this.qa();return null==a||""===a};function Ws(a,b,c){null==b&&(b="");c=a.wf(c);return a.Pf()&&!a.cb?c:b}
function zu(a){var b=a.host.zf(A("div",{name:"fisheye",class:"gcim__side-button"},A("div",{class:"gcim-icon gcim__fish-eye"})),!1);mb()?no(no(b,"touchstart",function(c){return Au(a,c)}),"touchend",function(c){return Bu(a,c)}):(no(no(no(no(b,"mousedown",function(c){return Au(a,c)}),"mouseup",function(c){return Bu(a,c)}),"mouseenter",function(){a.aq&&Iq(a.s,a.Text)}),"mouseleave",function(c){return Bu(a,c)}),document.addEventListener("mouseup",function(){return a.aq=!1}))}
function yu(a){go(a.host.sideBtnController,"fisheye")||zu(a);mu(a,!0)}function Au(a,b){Cf(b);a.aq=!0;Iq(a.s,a.Text);ho(a.host.sideBtnController,"fisheye")(function(c){c.element.setAttribute("active","true")})}function Bu(a,b){Cf(b);Iq(a.s,Qs(a.Text,a.na,a.u));ho(a.host.sideBtnController,"fisheye")(function(c){c.element.setAttribute("active","false")})}function mu(a,b){ho(a.host.sideBtnController,"fisheye")(function(c){return c.visible(b)})}
function ju(a,b){b=void 0===b?!1:b;Od(a.host.getLayoutElement(),document.activeElement)&&a.ka&&"showeyebutton"===a.lc&&(F(a.ia())||!0===b)&&(F(a.s.ia())?mu(a,!1):yu(a))}g.hb=function(a,b,c){b=void 0===b?!1:b;a=pr.prototype.hb.call(this,a,b,void 0===c?!0:c);ju(this,b);return a};g.En=function(){var a=pr.prototype.En.call(this);if(this.u&&this.Ng){if("enter"===a)return"none";if("both"===a)return"shiftenter"}return a};g.qn=function(){return"none"!==this.Xa?!1:pr.prototype.qn.call(this)};
g.oq=function(a){var b;null===(b=this.resize)||void 0===b?void 0:G(a)||(b.ca=a,it(b,b.h))};g.yn=function(){pu(this);pr.prototype.yn.call(this)};function iu(a,b){a=a.Ki;return"start"===a&&"string"===typeof b?b.trimStart():"end"===a&&"string"===typeof b?b.trimEnd():"both"===a&&"string"===typeof b?b.trim():b}function pu(a,b){b=void 0===b?!1:b;var c=a.ia(),d=iu(a,c);c!==d&&Et(a,d,void 0,void 0,b)}var uu="\uff2a",vu="\uff2b";var Cu={Numeric:1,Symbol:2,Alphabet:4,All:7};Cu[Cu.Numeric]="Numeric";Cu[Cu.Symbol]="Symbol";Cu[Cu.Alphabet]="Alphabet";Cu[Cu.All]="All";v("DisplayType",Cu);var Du={Low:"low",High:"high"};v("SecurityLevel",Du);v("KeyType",{lt:"numerickey",st:"symbolkey",Vs:"alphabetkey",ct:"functionkey"});var Eu={Back:"back",Clear:"clear",Space:"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright"};v("GcSoftKeyboardEvent",{KeyPress:"keypress",Open:"open",Close:"close"});function Fu(a){this.reset();this.an=a;this.Zj=new K(this)}g=Fu.prototype;g.reset=function(){this.kd=[];this.fn=[];this.bn=[];this.dn=[]};function Gu(a,b){b=void 0===b?!1:b;(!a.showCapitalLetters&&0==a.fn.length||a.showCapitalLetters&&0==a.bn.length&&0==a.dn.length)&&Hu(a);return a.showCapitalLetters?b?a.bn:a.dn:a.fn}function Hu(a){a.showCapitalLetters?(a.bn=a.kd.concat(),a.dn=a.kd.concat()):a.fn=a.kd.concat()}
g.addKey=function(a,b){a=Iu(this,a,b);0<a.length&&(Array.prototype.splice.apply(this.kd,[void 0==b?this.kd.length:b,0].concat(a)),Hu(this),this.Zj.ha())};g.removeKey=function(a){var b=this;a=Iu(this,a);0<a.length&&(a.forEach(function(c){var d=b.kd.indexOf(c);if(-1==d){if(c=b.findKey(c.text))d=b.kd.indexOf(c),b.kd.splice(d,1)}else b.kd.splice(d,1)}),Hu(this),this.Zj.ha())};g.findKey=function(a){return Rd(this.kd,function(b){return b.text===a||b.value===a})};
g.compare=function(a){return function(b,c){b=b[a];c=c[a];return c<b?1:c>b?-1:0}};function Ju(a,b,c,d){if(c&&"alphabetkey"===a.an)a=Gu(a,d).sort(a.compare("hardwareKeyboardOrder"));else if(b)for(a=Gu(a,d),b=0,c=a.length;b<c;b++){d=Math.floor(Math.random()*c);var e=a[d];a[d]=a[b];a[b]=e}else a=Gu(a,d).sort(a.compare("originalKeyOrder"));return a}
function Iu(a,b,c){function d(h,k){if("string"===typeof h||h instanceof String)var l=new Ku(h,a.an);else h instanceof Ku&&(h.keyType=a.an,l=h);Lu(a,l,!!c,c?c:k);Mu(a,l,k);e.push(l)}c>a.kd.length&&(c=void 0);var e=[];if(Array.isArray(b)&&0<b.length)for(var f=0;f<b.length;f++)d(b[f],f);else d(b,0);return e}
function Lu(a,b,c,d){var e=[];a.kd.map(function(f){e.push(f.originalKeyOrder)});c?(b.originalKeyOrder=a.kd[d].originalKeyOrder,a.kd.forEach(function(f){f.originalKeyOrder>=d&&f.originalKeyOrder++})):b.originalKeyOrder=0==e.length?d:Math.max.apply(Math,ha(e))+d+1}function Mu(a,b,c){if("alphabetkey"==b.keyType){var d=[];a.kd.map(function(e){d.push(e.hardwareKeyboardOrder)});b.hardwareKeyboardOrder=0==d.length?c:Math.max.apply(Math,ha(d))+c+1}}
p.Object.defineProperties(Fu.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return this.kd}}});function Ku(a,b){this.value=a;this.keyType=b;this.text=a};function Nu(a,b){var c=this;this.bb=[];this.Ga=[];this.va=this.sa=this.isOpened=!1;this.g=A("div",{class:Ou});this.numericKeys="1234567890".split("");this.alphabetKeys="a-10 b-23 c-21 d-12 e-2 f-13 g-14 h-15 i-7 j-16 k-17 l-18 m-25 n-24 o-8 p-9 q-0 r-3 s-11 t-4 u-6 v-22 w-1 x-20 y-5 z-19".split(" ");this.symbolKeys="!?#$.,;:\"'`*()<>[]{}_|\\/-+=~^&@%".split("");this.Ta=function(){Pu(c)};this.container=a;this.u=b;this.ka=new Fu("numerickey");this.na=new Fu("symbolkey");this.i=new Fu("alphabetkey");
this.cb=this.fs.bind(this);this.Xa=this.es.bind(this);this.Ma=new K(this);this.La=new K(this);Qu(this);Ru(this);this.wo(this.u.showSecurityOptions);this.Fa=this.u.displayType;this.ga=this.u.randomDisplay;this.la=this.u.securityLevel;this.fa=this.u.qwertyLayout;this.h=this.u.showCapitalLetters;this.i.showCapitalLetters=this.h;Pu(this);Su(this,this.ga,this.ca.querySelector("[data-type='randomdisplay']"));Tu(this,this.u.hideButtonWhenMouseOn);this.setEnabled(this.u.enabled);Uu(this)}
function Qu(a){a.numericKeys.forEach(function(b,c){b=new Ku(b,"numerickey");b.originalKeyOrder=c;a.ka.kd.push(b)});a.alphabetKeys.forEach(function(b,c){b=b.split("-");var d=new Ku(b[0],"alphabetkey");d.hardwareKeyboardOrder=Number(b[1]);d.originalKeyOrder=c;a.i.kd.push(d)});a.symbolKeys.forEach(function(b,c){b=new Ku(b,"symbolkey");b.originalKeyOrder=c;a.na.kd.push(b)});a.Ga.push(new Ku("Caps","functionkey"));a.Ga.push(new Ku("Shift","functionkey"));Vu(a)}
function Vu(a){for(var b in Eu){var c=new Ku(b,"functionkey");c.value=Eu[b];switch(c.value){case "arrowleft":c.text=w.ArrowLeftButton;break;case "arrowright":c.text=w.ArrowRightButton;break;case "back":c.text=w.BackSpaceButton;break;case "clear":c.text=w.ClearButton;break;case "space":c.text=w.WhiteSpaceButton}a.bb.push(c)}}
function Uu(a){Un(a.ka.Zj,a.Ta);Un(a.i.Zj,a.Ta);Un(a.na.Zj,a.Ta);a.s.addEventListener("contextmenu",function(b){b.preventDefault()});a.s.addEventListener("click",a.cr.bind(a))}
function Ru(a){var b={class:"gcim "+Wu,tabIndex:"0"},c={class:Xu},d=A("div",{class:Yu+" "+Zu,"data-key-type":"functionkey","data-key-value":"Close"},A("span",{class:$u},"\u2716")),e=A("div",{class:av},w.SoftKeyboardTitle),f={class:bv};a.ca=A("div",{class:cv},A("div",{class:dv},"classic"===window.GCIM.appearanceStyle?A("input",{type:"checkbox","data-type":"randomdisplay",tabIndex:"-1"}):A("div",{type:"checkbox","data-type":"randomdisplay",tabIndex:"-1"}),A("label",{class:ev,"data-type":"randomdisplay_label"},
w.RandomDisplay)),mb()?"":A("div",{class:dv},"classic"===window.GCIM.appearanceStyle?A("input",{type:"checkbox","data-type":"hidebuttonwhenmouseon",tabIndex:"-1"}):A("div",{type:"checkbox","data-type":"hidebuttonwhenmouseon",tabIndex:"-1"}),A("label",{class:ev,"data-type":"hidebuttonwhenmouseon_label"},w.HideButtonWhenMouseOn)));a.s=A("div",b,A("div",c,d,e,A("div",f,a.ca,A("div",{class:fv},A("div",{class:gv+" "+hv},iv(a,a.bb)),a.g))));a.container.innerHTML="";a.container.appendChild(a.s)}
function jv(a,b,c){return c==Cu[4]&&a.fa?kv(a,b):A("div",{class:gv+" "+c.toLowerCase()},iv(a,b))}function lv(a){var b=0<a.g.querySelectorAll("."+gv+"."+(a.fa?mv:"alphabet")).length;return a.h?b:a.sa&&!a.va||!a.sa&&a.va}
function kv(a,b){var c=b.filter(function(m){return 0<=m.hardwareKeyboardOrder&&10>m.hardwareKeyboardOrder}),d=b.filter(function(m){return 10<=m.hardwareKeyboardOrder&&19>m.hardwareKeyboardOrder}),e=b.filter(function(m){return 19<=m.hardwareKeyboardOrder&&25>=m.hardwareKeyboardOrder}),f=A("div",{class:gv+" "+mv});c=[0,c.length,c.length+d.length,c.length+d.length+e.length];d=0;e="";for(var h=1;d<b.length;){var k=d,l=3>=h?c[h]:k+b.length-k;e=2==h?" "+nv:a.h&&3==h?" "+ov:"";f.appendChild(A("div",{class:pv+
e},iv(a,b.slice(k,l),d)));d=l;h++}return f}function iv(a,b,c){var d=Yu;c=void 0===c?0:c;return 0<b.length&&"alphabetkey"==b[0].keyType?qv(a,b,d,c):b.map(function(e,f){return A("div",{class:d,"data-key-type":e.keyType,"data-index":f+c,"data-key-value":e.value},e.template?e.template:A("span",null,e.text))})}
function qv(a,b,c,d){d=void 0===d?0:d;var e=lv(a);return a.h?b.map(function(f,h){return A("div",{class:c,"data-key-type":f.keyType,"data-index":h+d,"data-key-value":f.value,"data-uppercase":e},f.template?f.template:A("span",null,e?f.text.toUpperCase():f.text))}):b.map(function(f,h){return A("div",{class:c,"data-key-type":f.keyType,"data-index":h+d,"data-key-value":f.value},f.template?f.template:A("span",null,e?f.text.toUpperCase():f.text))})}
function rv(a,b){var c=document.createElement("canvas");c.style.width=a.width+"px";c.style.height=a.height+"px";var d=c.getContext("2d"),e=window.devicePixelRatio;c.width=a.width*e;c.height=a.height*e;d.scale(e,e);d.font=a.font;d.fillStyle=a.background;d.globalAlpha=.2;d.fillRect(0,0,a.width,a.height);d.textAlign="center";d.textBaseline="middle";d.fillStyle=a.Jr;d.globalAlpha=1;d.fillText(b,.5*a.width,.5*a.height);return c}
function sv(a,b){"alphabetkey"===b&&tv(a,b,a.i);"numerickey"===b&&tv(a,b,a.ka);"symbolkey"===b&&tv(a,b,a.na)}function tv(a,b,c){b=a.g.querySelectorAll("[data-key-type='"+b+"']");for(var d=0;d<b.length;d++){b[d].removeAttribute("data-key-value");var e=b[d].getAttribute("data-index"),f="true"===b[d].getAttribute("data-uppercase");Gu(c,f);e=uv(a,b[d],Gu(c,f)[e]);f=vv(b[d]);b[d].innerHTML="";b[d].appendChild(rv(f,e))}}
function vv(a){var b=window.getComputedStyle(a);return{font:F(b.font)?b.fontSize+" "+b.fontFamily:b.font,background:b.backgroundColor,Jr:b.color,width:a.offsetWidth-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight)-parseFloat(b.borderLeftWidth)-parseFloat(b.borderRightWidth),height:a.offsetHeight-parseFloat(b.paddingTop)-parseFloat(b.paddingBottom)-parseFloat(b.borderTopWidth)-parseFloat(b.borderBottomWidth)}}g=Nu.prototype;
g.setEnabled=function(a){var b=this.s.querySelector("."+bv);a?(a=this.s.querySelector("."+wv))&&b.removeChild(a):(a=A("div",{class:wv}),b.appendChild(a))};g.wo=function(a){var b=this.s.getElementsByClassName(bv),c=this.s.getElementsByClassName(fv),d=this.s.getElementsByClassName(fv);1==b.length&&1==c.length&&1==d.length&&(a?(b[0].insertBefore(this.ca,c[0]),d[0].removeAttribute("data-security-option")):(b[0].removeChild(this.ca),d[0].setAttribute("data-security-option","false")))};
function xv(a,b){a.sa?b[0].setAttribute("toggled",""):b[0].removeAttribute("toggled");a.va?b[1].setAttribute("toggled",""):b[1].removeAttribute("toggled")}function yv(a,b,c,d){var e=b.querySelectorAll(".soft-keyboard_btn"),f=Math.ceil(e.length/d);e=e.length%d;!b.classList.contains("alphabet")||a.h||!(a=e+2>d||0==e)&&f==c||(f+=a?1:0);return f}
function Pu(a){a.g.innerHTML="";if(1==(a.Fa&1)){var b=Cu[1];a.g.appendChild(jv(a,Ju(a.ka,a.ga),b));"high"===a.la&&sv(a,"numerickey")}if(4==(a.Fa&4)){b=Cu[4];if(a.h)a.g.appendChild(jv(a,Ju(a.i,a.ga,a.fa,!1),b)),a.g.appendChild(jv(a,Ju(a.i,a.ga,a.fa,!0),b));else if(a.g.appendChild(jv(a,Ju(a.i,a.ga,a.fa),b)),a.fa){var c=a.g.querySelectorAll("."+pv);b=iv(a,a.Ga);3<=c.length&&2==b.length&&(c=c[2],xv(a,b),c.insertBefore(b[0],c.firstChild),c.appendChild(b[1]))}else if(c=a.g.querySelector("."+gv+".alphabet"))if(b=
iv(a,a.Ga),2==b.length&&(xv(a,b),c.appendChild(b[0]),c.appendChild(b[1])),!y&&(b=a.g.querySelector("."+gv+".alphabet"))){c=window.getComputedStyle(b).gridTemplateRows;var d=window.getComputedStyle(b).gridTemplateColumns;"none"!=c&&"none"!=d&&(d=d.split(" ").length,b=yv(a,b,c.split(" ").length,d),a.ta.style["grid-row-start"]=b,a.ta.style["grid-column-start"]="1",a.ta.style["grid-column-end"]="3",a.ea.style["grid-row-start"]=b,a.ea.style["grid-column-start"]=d-1,a.ea.style["grid-column-end"]=d+1)}"high"===
a.la&&sv(a,"alphabetkey")}2==(a.Fa&2)&&(b=Cu[2],a.g.appendChild(jv(a,Ju(a.na,a.ga),b)),"high"===a.la&&sv(a,"symbolkey"));if(y)for(b=a.g.querySelectorAll("."+gv),c=0;c<b.length;c++)if(d=b[c],!d.classList.contains(mv)){var e=window.getComputedStyle(d).msGridRows,f=window.getComputedStyle(d).msGridColumns;if("none"!=e&&"none"!=f){f=f.split(" ").length;var h=d.querySelectorAll(".soft-keyboard_btn"),k=0,l=!1;e=yv(a,d,e.split(" ").length,f);for(var m=0;m<h.length;m++){var n=m+1,q=Math.ceil(n/f);n=0==n%
f?f:n%f;if(d.classList.contains("alphabet")&&!a.h){l||"Caps"==h[m].getAttribute("data-key-value")||(a.ta.style.msGridColumn="1",a.ta.style.msGridRow=e,a.ta.style.msGridColumnSpan="2",l=!0);if("Caps"==h[m].getAttribute("data-key-value")){a.ea.style.msGridColumn=f-1;a.ea.style.msGridRow=e;a.ea.style.msGridColumnSpan="2";break}k=q==e?2:0}h[m].style.msGridColumn=n+k;h[m].style.msGridRow=q}d.style.msGridRows=Array(e+1).join("1fr ")}}}
g.setVisible=function(a){(this.isOpened=a)?this.onOpen():this.onClose();this.s.style.display=a?"":"none"};function Tu(a,b){a.g.removeEventListener("mouseover",a.cb);a.g.removeEventListener("mouseout",a.Xa);b&&(a.g.addEventListener("mouseover",a.cb),a.g.addEventListener("mouseout",a.Xa));Su(a,b,a.ca.querySelector("[data-type='hidebuttonwhenmouseon']"))}function Su(a,b,c){a.wo&&c&&(b?c.setAttribute("checked","checked"):c.removeAttribute("checked"))}
g.cr=function(a){if(!zv(this,a.target)){var b=Av(this,a.target);if(!G(b)&&(a.preventDefault(),a=b.getAttribute("data-key-type")))switch(a){case "numerickey":Bv(this,b,Gu(this.ka));break;case "alphabetkey":a="true"===b.getAttribute("data-uppercase");Bv(this,b,Gu(this.i,a));!this.h&&this.ea.hasAttribute("toggled")&&Cv(this,this.ea);break;case "symbolkey":Bv(this,b,Gu(this.na));break;case "functionkey":a=b.getAttribute("data-key-value"),"Shift"===a||"Caps"===a?Cv(this,b):"Close"===a?this.setVisible(!1):
Bv(this,b,this.bb)}}};function Cv(a,b){var c=a.g.querySelectorAll("[data-key-type='alphabetkey']");b.hasAttribute("toggled")?(b.removeAttribute("toggled"),Dv(a,b,!1)):(b.setAttribute("toggled",""),Dv(a,b,!0));Ev(a,c,!0)}function Dv(a,b,c){"Caps"==b.getAttribute("data-key-value")?a.sa=c:"Shift"==b.getAttribute("data-key-value")&&(a.va=c)}
function zv(a,b){if("INPUT"==b.tagName||"LABEL"==b.tagName){var c={};if("randomdisplay"===b.getAttribute("data-type"))return c.checked=b.checked,a.Ma.ha(c),!0;if("randomdisplay_label"===b.getAttribute("data-type"))return b=a.ca.querySelector("[data-type='randomdisplay']"),Fv(b),c.checked=Gv(b),a.Ma.ha(c),!0;if("hidebuttonwhenmouseon"===b.getAttribute("data-type"))return c.checked=b.checked,a.La.ha(c),!0;if("hidebuttonwhenmouseon_label"===b.getAttribute("data-type"))return b=a.ca.querySelector("[data-type='hidebuttonwhenmouseon']"),
Fv(b),c.checked=Gv(b),a.La.ha(c),!0}else if("DIV"===b.tagName){c={};if("randomdisplay"===b.getAttribute("data-type"))return Fv(b),c.checked=Gv(b),a.Ma.ha(c),!0;if("hidebuttonwhenmouseon"===b.getAttribute("data-type"))return Fv(b),c.checked=Gv(b),a.La.ha(c),!0}return!1}function Fv(a){a instanceof HTMLInputElement?a.checked=!a.checked:a.toggleAttribute("checked")}function Gv(a){return a instanceof HTMLInputElement?a.checked:a.hasAttribute("checked")}
g.fs=function(a){var b=Av(this,a.target);a=this.g.querySelectorAll(".soft-keyboard_btn");if(G(b))0<a.length&&F(a[0].childNodes[0].innerHTML)&&Ev(this,a);else if(b=b.getAttribute("data-key-type"),!("numerickey"!=b&&"alphabetkey"!=b&&"symbolkey"!=b||F(a[0].childNodes[0].innerHTML)))for(b=0;b<a.length;b++)Hv(a[b])||("high"==this.la&&(a[b].childNodes[0].style.display="none"),a[b].childNodes[0].innerHTML="")};
g.es=function(){var a=this.g.querySelectorAll(".soft-keyboard_btn");0<a.length&&F(a[0].childNodes[0].innerHTML)&&Ev(this,a)};function uv(a,b,c){var d=a.sa&&!a.va||!a.sa&&a.va;c=c.text;a.h&&(d="true"===b.getAttribute("data-uppercase"));return c=d?c.toUpperCase():c.toLowerCase()}
function Ev(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];if(!Hv(e)){var f=e.getAttribute("data-index");if(!isNaN(Number(f))){f=Number(f);var h=e.getAttribute("data-key-type").toLowerCase();"numerickey"===h&&Iv(a,e,f,Gu(a.ka)[f].text);if("alphabetkey"===h){var k="true"===e.getAttribute("data-uppercase");k=uv(a,e,Gu(a.i,k)[f]);c&&"high"==a.la?(e.innerHTML="",e.appendChild(rv(vv(e),k)),e.childNodes[0].innerHTML=f.toString()):Iv(a,e,f,k)}"symbolkey"===h&&Iv(a,e,f,Gu(a.na)[f].text)}}}}
function Iv(a,b,c,d){"high"!=a.la?b.childNodes[0].innerHTML=d:(b.childNodes[0].style.display="inherit",b.childNodes[0].innerHTML=c.toString())}function Hv(a){return a.hasAttribute("data-key-value")&&("Shift"===a.getAttribute("data-key-value")||"Caps"===a.getAttribute("data-key-value"))}function Bv(a,b,c){var d=b.getAttribute("data-index");if(!isNaN(Number(d))){var e=Object.assign({},c[Number(d)]);e.text=uv(a,b,c[Number(d)]);a.mb(e)}}
function Av(a,b){if(!G(b)&&b!=a.container)return b.classList.contains(Yu)?b:Av(a,b.parentElement)}p.Object.defineProperties(Nu.prototype,{ea:{configurable:!0,enumerable:!0,get:function(){return this.g.querySelector("[data-key-value='Shift']")}},ta:{configurable:!0,enumerable:!0,get:function(){return this.g.querySelector("[data-key-value='Caps']")}}});
var Wu="gcim__soft-keyboard",Xu="soft-keyboard_container",Yu="soft-keyboard_btn",Zu="close_button_container",gv="soft-keyboard_content",cv="soft-keyboard_security-option",ev="soft-keyboard-labels",fv="soft-keyboard_btn_panel",Ou="soft-keyboard_bottom",hv="function",$u="close_button",mv="qwerty_alphabet",pv="keypad_row",nv="space",ov="double_space",av="soft-keyboard_title",wv="soft-keyboard_overlay",bv="soft-keyboard_operation-area",dv="soft-keyboard_block";function Jv(a){this.g=a;this.u=this.dr.bind(this);this.s=this.onKeyDown.bind(this);this.i=this.onFocusOut.bind(this);this.cf=this.onOpen.bind(this)}function Kv(a){a.g.h&&(a.h="GcTextBox"==a.g.h.componentName,document.addEventListener("keydown",a.s),a.g.addEventListener("keypress",a.u),a.h||(a.ca=a.g.h,a.g.element.addEventListener("mousedown",function(b){G(a.g.h)||a.g.h.focus();b.preventDefault()}),a.g.h.addEventListener("blur",a.i),a.g.addEventListener("open",a.cf)))}g=Jv.prototype;
g.onFocusOut=function(){this.g.isOpened&&this.g.close()};g.onOpen=function(){this.g.h.focus();if(this.g.h&&this.g.h instanceof HTMLInputElement){var a=this.g.h.getBoundingClientRect();this.g.ua.style.position="absolute";this.g.ua.style.zIndex="1";this.g.ua.style.top=a.bottom+window.pageYOffset+"px";this.g.ua.style.left=a.left+window.pageXOffset+"px"}};g.onKeyDown=function(a){27==a.keyCode&&this.g.close()};
g.dr=function(a,b){a=this.getSelectionStart();var c=Lv(this).selectionEnd;this.h||null!=c||(c=this.getText().length);a=this.getText().substr(0,a);c=this.getText().substr(c,this.getText().length);if("functionkey"!=b.keyType)!this.h&&"number"===this.g.h.type.toLowerCase()&&isNaN(Number(b.text))||this.setText(a+b.text+c),this.setFocus(),Mv(this,(a+b.text).length,(a+b.text).length);else if("arrowleft"!==b.value&&"arrowright"!==b.value){if("back"===b.value&&0<this.g.h.value.length){var d=a.substr(0,a.length-
1);this.setText(d+c);this.setFocus();Mv(this,d.length,d.length)}"clear"===b.value&&(this.setText(""),this.setFocus());"space"===b.value&&(d=a+" ",this.setText(d+c),this.setFocus(),Mv(this,d.length,d.length))}else"arrowleft"===b.value?(this.setFocus(),a=this.getSelectionStart(),a=0==a?0:a-1,Mv(this,a,a)):"arrowright"===b.value&&(this.setFocus(),a=this.getSelectionStart(),Mv(this,a+1,a+1))};function Lv(a){return a.h?a.g.h.getUIInputElement():a.g.h}
g.setFocus=function(){this.h?this.g.h.setFocusInternal():this.g.h.focus()};function Mv(a,b,c){Lv(a).setSelectionRange(b,c);var d=!1;if(b>c){d=!0;var e=b;b=c;c=e}a=Lv(a);b=Zc(a.value,b);c=Zc(a.value,c);rg(a,d,b,c,!1)}g.getSelectionStart=function(){var a=Lv(this).selectionStart;this.h||null!=a||(a=this.getText().length);return a};g.getText=function(){return this.h?this.g.h.text:this.g.h.value};g.setText=function(a){this.h?this.g.h.setText(a):this.g.h.value=a};
g.dispose=function(){this.g&&(document.removeEventListener("keydown",this.s),this.g.removeEventListener("keypress",this.u),this.g.removeEventListener("open",this.cf),this.ca&&this.ca.removeEventListener("blur",this.i))};function Nv(a,b){this.ea=["text","search","password","tel","url"];this.g={displayType:7,enabled:!0,hideButtonWhenMouseOn:!1,randomDisplay:!1,showSecurityOptions:!0,securityLevel:"low",qwertyLayout:!1,showCapitalLetters:!0,target:null};xe.g=!0;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();this.ua=a;this.ic=a.style.cssText;this.Hd=a.className;this.ce=a.innerHTML;$d(this.ua,this.componentName,this);this.tc(b);this.Pa=new Nu(a,this.g);this.i=new Jv(this);this.initEvent();this.close()}g=Nv.prototype;
g.destroy=function(){this.i.dispose();ce(this.ua);this.Hf();he(this)};g.Hf=function(){this.Hd?this.ua.className=this.Hd:this.ua.removeAttribute("class");this.ic?this.ua.style.cssText=this.ic:this.ua.removeAttribute("style");this.ua.innerHTML=this.ce};
g.tc=function(a){F(a)||(G(a.enabled)||(this.enabled=a.enabled),G(a.hideButtonWhenMouseOn)||(this.hideButtonWhenMouseOn=a.hideButtonWhenMouseOn),G(a.randomDisplay)||(this.randomDisplay=a.randomDisplay),G(a.displayType)||(this.displayType=a.displayType),G(a.showSecurityOptions)||(this.showSecurityOptions=a.showSecurityOptions),G(a.securityLevel)||(this.securityLevel=a.securityLevel),G(a.qwertyLayout)||(this.qwertyLayout=a.qwertyLayout),G(a.target)||(this.target=a.target),G(a.showCapitalLetters)||(this.showCapitalLetters=
a.showCapitalLetters))};g.initEvent=function(){var a=this;this.s=new K(this);this.cf=new K(this);this.Uf=new K(this);this.Pa.mb=function(b){a.s.ha(b)};this.Pa.onOpen=function(){return a.cf.ha()};this.Pa.onClose=function(){return a.Uf.ha()};Un(this.Pa.Ma,function(b,c){a.randomDisplay=c.checked});Un(this.Pa.La,function(b,c){a.hideButtonWhenMouseOn=c.checked});Ov(this)};g.layout=function(){Pu(this.Pa)};g.open=function(){this.Pa.setVisible(!0);this.layout()};g.close=function(){this.Pa.setVisible(!1)};
g.addEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Un(a,b)};g.removeEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Vn(a,b)};g.getHost=function(){return this.ua};g.Pb=function(a){var b={};b.keypress=this.s;b.open=this.cf;b.close=this.Uf;return b[a]};
function Ov(a){if(a.u&&a.i){var b=!G(a.target)&&-1==a.ea.indexOf(a.target.type.toLowerCase()),c=a.Pa.s.querySelector(".soft-keyboard_content.function");if(c){c=c.querySelectorAll("[data-key-value='space'],[data-key-value='arrowleft'],[data-key-value='arrowright']");for(var d=0;d<c.length;d++)b?c[d].setAttribute("disabled",""):c[d].removeAttribute("disabled")}a.i.dispose();G(a.h)||Kv(a.i)}}
p.Object.defineProperties(Nv.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return"GcSoftKeyboard"}},randomDisplay:{configurable:!0,enumerable:!0,get:function(){return this.g.randomDisplay},set:function(a){a=H(a);if(this.g.randomDisplay!==a&&(this.g.randomDisplay=a,this.Pa)){var b=this.Pa;b.ga=a;Pu(b);Su(b,a,b.ca.querySelector("[data-type='randomdisplay']"))}}},hideButtonWhenMouseOn:{configurable:!0,enumerable:!0,get:function(){return this.g.hideButtonWhenMouseOn},set:function(a){a=
H(a);this.g.hideButtonWhenMouseOn!==a&&(this.g.hideButtonWhenMouseOn=a,this.Pa&&Tu(this.Pa,a))}},displayType:{configurable:!0,enumerable:!0,get:function(){return this.g.displayType},set:function(a){if(this.g.displayType!==a&&(this.g.displayType=a,this.Pa)){var b=this.Pa;b.Fa=a;Pu(b)}}},qwertyLayout:{configurable:!0,enumerable:!0,get:function(){return this.g.qwertyLayout},set:function(a){a=H(a);if(this.g.qwertyLayout!==a&&(this.g.qwertyLayout=a,this.Pa)){var b=this.Pa;b.fa=a;Pu(b)}}},enabled:{configurable:!0,
enumerable:!0,get:function(){return this.g.enabled},set:function(a){a=H(a);this.g.enabled!==a&&(this.g.enabled=a,this.Pa&&this.Pa.setEnabled(a))}},showSecurityOptions:{configurable:!0,enumerable:!0,get:function(){return this.g.showSecurityOptions},set:function(a){a=H(a);this.g.showSecurityOptions!==a&&(this.g.showSecurityOptions=a,this.Pa&&this.Pa.wo(a))}},securityLevel:{configurable:!0,enumerable:!0,get:function(){return this.g.securityLevel},set:function(a){a=I(Du,a);if(null!==a&&this.g.securityLevel!==
a&&(this.g.securityLevel=a,this.Pa)){var b=this.Pa;b.la=a;Pu(b)}}},target:{configurable:!0,enumerable:!0,get:function(){return this.g.target},set:function(a){(a instanceof HTMLInputElement||G(a))&&this.g.target!==a&&(this.h=this.g.target=a)}},showCapitalLetters:{configurable:!0,enumerable:!0,get:function(){return this.g.showCapitalLetters},set:function(a){a=H(a);if(this.g.showCapitalLetters!==a&&(this.g.showCapitalLetters=a,this.Pa)){var b=this.Pa;b.h=a;b.i.showCapitalLetters=b.h;Pu(b)}}},numericKeys:{configurable:!0,
enumerable:!0,get:function(){return this.Pa.ka}},alphabetKeys:{configurable:!0,enumerable:!0,get:function(){return this.Pa.i}},symbolKeys:{configurable:!0,enumerable:!0,get:function(){return this.Pa.na}},element:{configurable:!0,enumerable:!0,get:function(){return this.Pa.s}},isOpened:{configurable:!0,enumerable:!0,get:function(){return this.Pa.isOpened}},h:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){if(G(a)||a instanceof HTMLInputElement||"GcTextBox"==a.componentName)this.u=
!0,this.ca=a,Ov(this)}}});v("GcSoftKeyboard",Nv);function Pv(a){this.Na=a}g=Pv.prototype;g.toggleOpen=function(a){this.Na.toggleOpen(void 0===a?!0:a)};g.close=function(a){this.Na.close(void 0===a?!0:a)};g.open=function(a){this.Na.open(void 0===a?!0:a)};g.isOpened=function(){return this.Na.isOpened()};g.isClosed=function(){return this.Na.isClosed()};g.onOpen=function(a){this.Na.onOpen(a)};g.onClose=function(a){this.Na.onClose(a)};g.onBeforeClosed=function(a){this.Na.onBeforeClosed(a)};g.dispose=function(){this.Na.dispose()};function Qv(a,b,c){this.Na=b;var d=this;this.da=a;this.g=new Nv(document.createElement("div"),c);this.g.h=a;this.g.element.setAttribute("tabindex","-1");this.Na.setInnerElement(this.g.element);this.g.addEventListener("close",function(){d.close()});this.Na.onOpen(function(){d.g.open();d.da.setFocusInternal()});this.g.element.addEventListener("mousedown",function(e){d.da.setFocusInternal();e.preventDefault()})}t(Qv,Pv);Qv.prototype.setValue=function(){};Qv.prototype.getValue=function(){};
Qv.prototype.dispose=function(){this.g.destroy();Pv.prototype.dispose.call(this)};function Rv(a,b,c){c=void 0===c?null:c;kq.call(this,a,b);var d=this;this.xf=[function(){}];this.wn=null;this.Wh=!0;this.Bp=c;this.Dl=lq(this.nb());this.$=new ut(this.getUIInputElement(),this.getUIInputElement().id,this);this.Je="";O(this.$,"TextChanged",function(){Bq(d,d.getValue())});O(this.$,"ReadingStringOutput",function(){d.Je=d.Wh?d.Je+d.$.ob:d.$.ob;try{d.xf.forEach(function(e){e.apply(d,[d,{readingString:d.Je}])})}catch(e){console.error(e)}});Or(this.$,function(e){Cq(d,e)});this.tc(b);G(c)&&
(this.initComplete=!0)}t(Rv,kq);g=Rv.prototype;g.bh=function(){return!!this.wn};g.pe=function(){return this.bh()?this.wn:kq.prototype.pe.call(this)};g.rn=function(){return this.$r};g.up=function(a){if(this.rn())this.onFocusOut(a)};g.nb=function(){var a;return null!==(a=this.Bp)&&void 0!==a?a:kq.prototype.nb.call(this)};g.Nh=function(){var a=kq.prototype.Nh.call(this);a.push("soft-keyboard-dropdown");a.push("soft-keyboard-popup");return a};
g.tc=function(a){kq.prototype.tc.call(this,a);F(a)||(G(a.autoConvert)||this.setAutoConvert(a.autoConvert),G(a.ellipsis)||this.setEllipsis(a.ellipsis),G(a.ellipsisString)||this.setEllipsisString(a.ellipsisString),G(a.format)||this.setFormat(a.format),G(a.lengthAsByte)||this.setLengthAsByte(a.lengthAsByte),G(a.maxLength)||this.setMaxLength(a.maxLength),G(a.passwordChar)||this.setPasswordChar(a.passwordChar),G(a.IMEReadingStringKanaMode)||this.setReadingImeStringKanaMode(a.IMEReadingStringKanaMode),
G(a.useSystemPasswordChar)||this.setUseSystemPasswordChar(a.useSystemPasswordChar),G(a.IMEReadingStringAppend)||this.setIMEReadingStringAppend(a.IMEReadingStringAppend),G(a.IMEReadingStringEnableAlphabetReadingMapping)||this.setIMEReadingStringEnableAlphabetReadingMapping(a.IMEReadingStringEnableAlphabetReadingMapping),G(a.exitOnLastChar)||this.setExitOnLastChar(a.exitOnLastChar),G(a.highlightText)||this.setHighlightText(a.highlightText),G(a.passwordRevelationMode)||this.setPasswordRevelationMode(a.passwordRevelationMode),
G(a.useStandardPasswordInput)||(this.useStandardPasswordInput=a.useStandardPasswordInput),G(a.trimMode)||(this.trimMode=a.trimMode),G(a.text)||this.setText(a.text),G(a.acceptsTabChar)||(this.acceptsTabChar=a.acceptsTabChar))};g.setExitOnLeftRightKey=function(a){Ir(this.$,a)};g.ff=function(){return this.$.Cc};g.setWatermarkDisplayNullText=function(a){Nr(this.$,a)};g.jf=function(){return this.$.xb().h};g.setValue=function(){sc()};g.setWatermarkNullText=function(a){Mr(this.$,a)};g.kf=function(){return this.$.eb().h};
g.onSpinDown=function(){sc()};g.onSpinUp=function(){sc()};g.setClipContent=function(){sc()};g.getIsOverwrite=function(){return this.$.Nd};g.setAcceptsCrlf=function(a){var b=this.$;a=I(Ga,a);null!==a&&(b.em=a)};g.Xf=function(){return this.$.Ue()};g.setAutoConvert=function(a){var b=this.$;a=H(a);b.ud=a;Ms(b.g)};g.Jj=function(){return this.$.ud};g.setEditMode=function(a){At(this.$,a)};g.ef=function(){return this.$.bb};
g.setEllipsis=function(a){var b=this.$;a=I(Fs,a);null!==a&&(b.Xa=a,b.Pf()||(ku(b,b.Text),Ft(b)))};g.Yk=function(){return this.$.Xa};g.setEllipsisString=function(a){var b=this.$;a=lg(a);b.nh=a;Ft(b)};g.Zk=function(){return this.$.nh};g.setExitOnLastChar=function(a){a=H(a);this.$.mc=a};g.Oh=function(){return this.$.mc};g.setFormat=function(a){Dt(this.$,a)};g.Hn=function(){return this.$.l};g.setHighlightText=function(a){a=H(a);this.$.We=a};g.gf=function(){return this.$.Od()};
g.setLengthAsByte=function(a){Ht(this.$,a)};g.Mn=function(){return this.$.Bb};g.setMaxLength=function(a){Kt(this.$,a)};g.Nn=function(){return this.$.Ma};g.setPasswordChar=function(a){Lt(this.$,a)};g.setReadingImeStringKanaMode=function(a){this.Je="";Nt(this.$,a)};g.setIMEReadingStringKanaMode=function(a){this.setReadingImeStringKanaMode(a)};g.Ln=function(){return this.$.Dc.mj};g.setSelectedText=function(a){Ut(this.$,a)};g.setSelectionLength=function(a){Xt(this.$,a)};g.setText=function(a){this.$.Rd(a)};
g.setUseClipboard=function(a){var b=this.$;a=H(a);b.pl=a;yq(b.host)};g.getUseClipboard=function(){return this.$.Fd()};g.setUseSystemPasswordChar=function(a){var b=this.$;It(b,!1);a=H(a);a!==b.Qd&&(b.Qd=a,!0===a?(b.ka=!0,Lt(b,Mt())):Lt(b,""))};g.setPasswordRevelationMode=function(a){this.$.setPasswordRevelationMode(a)};g.Pn=function(){return this.$.Pn()};g.setSelectionStart=function(a){Qt(this.$,a)};g.setIMEReadingStringAppend=function(a){this.Wh=a};g.Jn=function(){return this.Wh};
g.getIMEReadingString=function(){return this.Je};g.clearIMEReadingString=function(){this.Je=""};g.getValue=function(){return this.$.qa()};g.onEditStatusChanged=function(a){O(this.$,"EditStatusChanged",a)};g.removeEditStatusChanged=function(a){P(this.$,"EditStatusChanged",a)};g.onInvalidInput=function(a){O(this.$,"InvalidInput",a)};g.removeInvalidInput=function(a){P(this.$,"InvalidInput",a)};g.onKeyExit=function(a){O(this.$,"KeyExit",a)};g.removeKeyExit=function(a){P(this.$,"KeyExit",a)};
g.onTextChanged=function(a){O(this.$,"TextChanged",a)};g.removeTextChanged=function(a){P(this.$,"TextChanged",a)};g.onKeyDown=function(a){O(this.$,"keydown",a)};g.removeKeyDown=function(a){P(this.$,"keydown",a)};g.onKeyUp=function(a){O(this.$,"keyup",a)};g.removeKeyUp=function(a){P(this.$,"keyup",a)};g.onFocusOut=function(a){O(this.$,"focusout",a)};g.lo=function(a){O(this.$,"beforefocusout",a)};g.removeFocusOut=function(a){P(this.$,"focusout",a)};g.onInput=function(a){O(this.$,"Input",a)};
g.removeInput=function(a){P(this.$,"Input",a)};g.removeSpinUp=function(){};g.removeSpinDown=function(){};g.onIMEReadingStringOutput=function(a){"function"===typeof a&&-1===this.xf.indexOf(a)&&this.xf.push(a)};g.removeIMEReadingStringOutput=function(a){"function"===typeof a&&(a=this.xf.indexOf(a),-1!==a&&this.xf.splice(a,1))};g.clear=function(){this.$.fb()};g.selectAll=function(){var a=this;this.setFocus();setTimeout(function(){a.$.Yc()},100)};g.deselectAll=function(){Kr(this.$)};
g.getSelectionStart=function(){return Pt(this.$)};g.getSelectedText=function(){return Tt(this.$)};g.getSelectionLength=function(){return Rt(this.$)};g.getText=function(){return this.$.ia()};g.getDisplayText=function(){return Yt(this.$)};g.setIMEReadingStringEnableAlphabetReadingMapping=function(a){a=H(a);this.$.Xe=a};g.Kn=function(){return this.$.Xe};g.getPasswordMode=function(){return this.$.Lk()};g.setExitOnEnterKey=function(a){this.$.setExitOnEnterKey(a)};g.yd=function(){return this.$.yd()};
g.addDropDownSoftKeyboard=function(a,b,c){c=void 0===c?!1:c;a=this.Li(a);if(c){if(!this.Gs){this.Na=new No(this,{inputEl:this.getOriginalInputElement()});b=null!==b&&void 0!==b?b:{};b=new Qv(this,this.Na,b);(c=this.Na.element.querySelector(".gcim__soft-keyboard"))&&c.setAttribute("tabindex","0");if(c=this.Na.element.querySelector(".soft-keyboard_title"))c.style.cursor="move",ee(c,this.Na.element.querySelector(".gcim__modalbox-content"));this.Gs=b;c=ed();this.Me[c]=b;this.addDropDownButton("soft-keyboard-popup",
c,null,null,a)}}else this.Fr||(this.Na=new Do(this,{inputEl:this.getOriginalInputElement()}),b=null!==b&&void 0!==b?b:{},this.Fr=b=new Qv(this,this.Na,b),c=ed(),this.Me[c]=b,this.addDropDownButton("soft-keyboard-dropdown",c,null,null,a))};g.Li=function(a){return a?I(Ja,a)||"rightside":"rightside"};g.refreshUI=function(a){kq.prototype.refreshUI.call(this,a);0!==(a&32)||this.$.ca||this.$.Fa||Ft(this.$)};g.Ll=function(a,b){this.$.Rd(a,void 0===b?!1:b)};g.Zg=function(){xu(this.$)};g.Tc=function(){return this.$};
g.ql=function(){return this.$.ql()};
p.Object.defineProperties(Rv.prototype,{$r:{configurable:!0,enumerable:!0,get:function(){return!!this.Bp}},isOverwrite:{configurable:!0,enumerable:!0,get:function(){return this.getIsOverwrite()}},selectedText:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedText()},set:function(a){this.setSelectedText(a)}},selectionLength:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionLength()},set:function(a){this.setSelectionLength(a)}},text:{configurable:!0,enumerable:!0,
get:function(){return this.getText()},set:function(a){this.setText(a)}},useStandardPasswordInput:{configurable:!0,enumerable:!0,get:function(){return this.$.cb},set:function(a){It(this.$,a)}},useClipboard:{configurable:!0,enumerable:!0,get:function(){return this.getUseClipboard()},set:function(a){this.setUseClipboard(a)}},selectionStart:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionStart()},set:function(a){this.setSelectionStart(a)}},IMEReadingString:{configurable:!0,enumerable:!0,
get:function(){return this.getIMEReadingString()}},displayText:{configurable:!0,enumerable:!0,get:function(){return this.getDisplayText()}},value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}},exitOnLeftRightKey:{configurable:!0,enumerable:!0,get:function(){return this.ff()},set:function(a){this.setExitOnLeftRightKey(a)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.jf()},set:function(a){this.setWatermarkDisplayNullText(a)}},watermarkNullText:{configurable:!0,
enumerable:!0,get:function(){return this.kf()},set:function(a){this.setWatermarkNullText(a)}},acceptsCrlf:{configurable:!0,enumerable:!0,get:function(){return this.Xf()},set:function(a){this.setAcceptsCrlf(a)}},acceptsTabChar:{configurable:!0,enumerable:!0,get:function(){return this.$.acceptsTabChar},set:function(a){this.$.acceptsTabChar=a}},autoConvert:{configurable:!0,enumerable:!0,get:function(){return this.Jj()},set:function(a){this.setAutoConvert(a)}},editMode:{configurable:!0,enumerable:!0,
get:function(){return this.ef()},set:function(a){this.setEditMode(a)}},ellipsis:{configurable:!0,enumerable:!0,get:function(){return this.Yk()},set:function(a){this.setEllipsis(a)}},ellipsisString:{configurable:!0,enumerable:!0,get:function(){return this.Zk()},set:function(a){this.setEllipsisString(a)}},exitOnLastChar:{configurable:!0,enumerable:!0,get:function(){return this.Oh()},set:function(a){this.setExitOnLastChar(a)}},format:{configurable:!0,enumerable:!0,get:function(){return this.Hn()},set:function(a){this.setFormat(a)}},
highlightText:{configurable:!0,enumerable:!0,get:function(){return this.gf()},set:function(a){this.setHighlightText(a)}},lengthAsByte:{configurable:!0,enumerable:!0,get:function(){return this.Mn()},set:function(a){this.setLengthAsByte(a)}},maxLength:{configurable:!0,enumerable:!0,get:function(){return this.Nn()},set:function(a){this.setMaxLength(a)}},passwordChar:{configurable:!0,enumerable:!0,get:function(){return this.$.na},set:function(a){this.setPasswordChar(a)}},IMEReadingStringKanaMode:{configurable:!0,
enumerable:!0,get:function(){return this.Ln()},set:function(a){this.setIMEReadingStringKanaMode(a)}},useSystemPasswordChar:{configurable:!0,enumerable:!0,get:function(){return this.$.Qd},set:function(a){this.setUseSystemPasswordChar(a)}},passwordRevelationMode:{configurable:!0,enumerable:!0,get:function(){return this.Pn()},set:function(a){this.setPasswordRevelationMode(a)}},IMEReadingStringAppend:{configurable:!0,enumerable:!0,get:function(){return this.Jn()},set:function(a){this.setIMEReadingStringAppend(a)}},
IMEReadingStringEnableAlphabetReadingMapping:{configurable:!0,enumerable:!0,get:function(){return this.Kn()},set:function(a){this.setIMEReadingStringEnableAlphabetReadingMapping(a)}},exitOnEnterKey:{configurable:!0,enumerable:!0,get:function(){return this.yd()},set:function(a){this.setExitOnEnterKey(a)}},trimMode:{configurable:!0,enumerable:!0,get:function(){return this.$.Ki},set:function(a){var b=this.$;a=I(Js,a);b.Ki!==a&&null!==a&&(b.Ki=a,pu(b,!0))}},showContextMenu:{configurable:!0,enumerable:!0,
set:function(a){this.$.showContextMenu=a}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcTextBox"}}});v("GcTextBox",Rv);var Sv={None:"none",Contains:"contains",StartWith:"startwith",AmbiguousContains:"ambiguouscontains",AmbiguousStartWith:"ambiguousstartwith"};v("AutoFilter",Sv);var Tv={None:"none",Append:"append",SuggestAppend:"suggestappend"};v("AutoCompleteMode",Tv);var Uv={StartWith:"startwith",AmbiguousStartWith:"ambiguousstartwith"};v("AutoCompleteMatchMode",Uv);
v("GcComboBoxEvent",{SelectedChanged:"selectedchanged",CheckedChanged:"checkedchanged",DropDownClosed:"dropdownclosed",DropDownOpened:"dropdownopened",TextChanged:"textchanged",FocusOut:"focusout",KeyDown:"keydown",KeyUp:"keyup",SpinDown:"spindown",SpinUp:"spinup",ItemsChanged:"itemschanged",ColumnResizeEnd:"columnresizeend",ResizeEnd:"resizeend"});var Vv={All:"all",Display:"display"};v("MatchingSource",Vv);var Wv={List:"list",Tree:"tree"};v("ComboDropDownType",Wv);function Xv(a){if(!a)return null;var b=[];for(a=new Yv(a);Zv(a);){var c=$v(a).h(!0,!0);c&&b.push(c)}return b}
function aw(a){a=Xv(a);if(!a)return"";for(var b=[],c=0;c<a.length;c++){var d=a[c];if(d&&!(0>=d.length))if(1==d.length){var e=d[0].replace(/[\/\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");b.push(e)}else d.forEach(function(f,h){var k=f.replace(/[\/\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");!f||0>=f.length?f=!1:(f=f.charAt(0),f=Ap(L,f)&&!yp(L,f));d[h]=f?k+bw:k}),b.push("("+d.join("|")+")")}return b.join("")}var bw="(?![\uff9e\uff9f])";function Yv(a){this.s=a;this.g=-1;this.h=1}
function $v(a){var b=a.g;if(0>b||0>=a.h)return null;var c=a.s;if(null==c)return null;null==a.i&&(a.i=c.length>b+1?cw(c[b],c[b+1]):cw(c[b]));return a.i}function Zv(a){var b=a.s;if(null==b)return!1;b=b.length;if(a.g>=b)return!1;a.g+=a.h;a.h=1;a.i=null;if(a.g>=b)return!1;if(a.g==b-1)return!0;if(b=$v(a))if(b=b.g.toString())a.h=b.length;return!0}function dw(a){this.g=a}dw.prototype.h=function(){return null};
function cw(a,b){return Ep(L,a)?new ew(a):Ap(L,a)||Bp(L,a)?null!=b?new fw(a,b):new fw(a):new gw(a)}function gw(a){this.g=a}t(gw,dw);gw.prototype.h=function(a,b){a=[];var c=this.g.toString();if(!c)return a;a.push(c);if(b){var d;yp(L,c)?d=Op(L,c):d=Lp(L,c).text;d&&d!==c&&a.push(d)}return a};function ew(a){Ep(L,a)||(a="");this.g=a}t(ew,dw);
ew.prototype.h=function(a,b){var c=this.g.toString();if(!c)return[];var d=[c];if(!a&&!b)return d;a&&(a=Dp(L,c)?c.toUpperCase():c.toLowerCase())&&a!==c&&d.push(a);if(b)for(b=d.length,c=0;c<b;c++){a=d[c];var e;yp(L,a)?e=Op(L,a):e=Lp(L,a).text;e&&e!==a&&d.push(e)}return d};function fw(a,b){var c="";if(Bp(L,a)||Ap(L,a))c=null!=b?hw(a+b):hw(a);this.g=c}t(fw,dw);function hw(a){var b=!1;2==a.length&&Ap(L,a[0])&&!yp(L,a[0])&&(b=Lp(L,a).ak);var c;b?c=a:c=a[0].toString();return c}
fw.prototype.h=function(a,b){a=this.g.toString();if(!a)return[];var c={};c[a]=!0;if(b){var d;Bp(L,a[0])&&(iw(a[0],c),d=Pp(L,a[0]))&&(c[d]=!0,iw(d,c),d=Op(L,d))&&(c[d]=!0,iw(d,c));if(Ap(L,a[0])){iw(a[0],c);if(yp(L,a[0]))(d=Op(L,a[0]))&&iw(d,c);else if(d=Lp(L,a))c[d]=!0;if(d=Qp(L,a[0]))c[d]=!0,iw(d,c)}yp(L,a[0])?(d=Op(L,a),c[d]=!0):(d=Lp(L,a).text,c[d]=!0)}return Object.keys(c)};function iw(a,b){var c;if(Fp(a)){if(c=Jp(a))b[c]=!0}else Hp(a)&&(c=Kp(a))&&(b[c]=!0)};function jw(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack)}t(jw,Error);function kw(a,b){this.g=[];this.h=void 0===b?0:b;lw(this,a)}function lw(a,b){null===b||void 0===b?void 0:b.filter(function(c){return c&&c.comparator}).forEach(function(c){try{var d=mw(c);a.g.push({propertyName:c.name||"Text",comparator:d})}catch(e){if(!(e instanceof jw))throw e;}})}
function mw(a){switch(a.comparator.toLowerCase()){case "contains":return new nw(ow(a,!0),a.operatorType);case "notcontains":return new pw(ow(a,!0),a.operatorType);case "endwith":return new qw(ow(a,!0),a.operatorType);case "startwith":return new rw(ow(a,!0),a.operatorType);case "ambiguouscontains":return new sw(ow(a,!0),a.operatorType);case "ambiguousnotcontains":return new tw(ow(a,!0),a.operatorType);case "ambiguousequal":return new uw(ow(a,!0),a.operatorType);case "ambiguousnotequal":return new vw(ow(a,
!0),a.operatorType);case "ambiguousstartwith":return new ww(ow(a,!0),a.operatorType);case "ambiguousendwith":return new xw(ow(a,!0),a.operatorType);case "equal":return new yw(ow(a,!0),a.operatorType);case "notequal":return new zw(ow(a,!0),a.operatorType);case "greaterthan":return new Aw(ow(a),a.operatorType);case "greaterthanorequal":return new Bw(ow(a),a.operatorType);case "lessthan":return new Cw(ow(a),a.operatorType);case "lessthanorequal":return new Dw(ow(a),a.operatorType);case "between":return new Ew(ow(a),
a.operatorType);case "notbetween":return new Fw(ow(a),a.operatorType);default:throw new jw("Invalid comparator: "+a.comparator);}}function ow(a,b){return Array.isArray(a.params)?a.params:void 0!==a.params?[a.params]:(void 0===b?0:b)?[a.filterString]:[]}kw.prototype.qd=function(a){switch(this.h){case 0:return this.g.every(function(b){return b.comparator.qd(a[b.propertyName])});case 1:return this.g.some(function(b){return b.comparator.qd(a[b.propertyName])});default:return!0}};
function Gw(a,b){if(""===a||void 0===a||null===a)a="";else{var c;b?c=aw(a):c=a.replace(/[\/\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");a=c}return a}function Hw(){return oa.apply(0,arguments).every(function(a){return"number"===typeof a})}function Iw(){return oa.apply(0,arguments).every(function(a){return a instanceof Date})}function Jw(){return oa.apply(0,arguments).every(function(a){return"boolean"===typeof a})}function Kw(){return oa.apply(0,arguments).every(function(a){return"string"===typeof a})}
function Lw(){return oa.apply(0,arguments).every(function(a){return Array.isArray(a)&&0<a.length})}function Mw(){return oa.apply(0,arguments).every(function(a){return Hw(a)&&0<(a&63)})}function Nw(a){if(!Lw(a))throw new jw("Invalid params: "+a);}function Ow(a,b){a=new Date(a.getTime());b&1||a.setSeconds(0);b&2||a.setMinutes(0);b&4||a.setHours(0);b&8||a.setDate(1);b&16||a.setMonth(0);b&32||a.setFullYear(1970);return a}function Pw(a,b,c){a=Ow(a,c);b=Ow(b,c);return a.getTime()>b.getTime()}
function Qw(a,b,c){a=Ow(a,c);b=Ow(b,c);return a.getTime()<b.getTime()}function Rw(a,b,c){a=Ow(a,c);b=Ow(b,c);return a.getTime()<=b.getTime()}function Sw(a,b,c){a=Ow(a,c);b=Ow(b,c);return a.getTime()>=b.getTime()}function Tw(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack)}t(Tw,Error);function Uw(a){if("boolean"===typeof a)return a;throw new Tw(a+" can not convert to boolean");}
function Vw(a){var b=Number(a);if(isNaN(b))throw new Tw(a+" can not convert to number");return b}function Ww(a){if(a instanceof Date)return a;if("string"===typeof a){var b=new Date(a);if(!isNaN(b.getTime()))return b}throw new Tw(a+" can not convert to Date");}function Xw(a){return null===a||void 0===a?"":String(a)}function Yw(a,b){this.g=new Zw;this.g.g=a;this.g.h=void 0===b?!1:b}Yw.prototype.qd=function(a){a=Xw(a);if(!this.g.g)return!0;this.g.g.lastIndex=0;a=this.g.g.test(a);this.g.h&&(a=!a);return a};
function $w(a,b){Nw(a);a=a[0];"string"===b&&(a=Xw(a));b=this.g=a;if(!Kw(b))throw new jw("Invalid params: "+b);}function nw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp(Gw(a,!1),"g"))}t(nw,Yw);function pw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp(Gw(a,!1),"g"),!0)}t(pw,Yw);function qw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp(Gw(a,!1)+"$","g"))}t(qw,Yw);function rw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp("^"+Gw(a,!1),"g"))}t(rw,Yw);
function sw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp(Gw(a,!0),"ig"))}t(sw,Yw);function tw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp(Gw(a,!0),"ig"),!0)}t(tw,Yw);function uw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp("^"+Gw(a,!0)+"$","ig"))}t(uw,Yw);function vw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp("^"+Gw(a,!0)+"$","ig"),!0)}t(vw,Yw);function ww(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp("^"+Gw(a,!0),"ig"))}t(ww,Yw);
function xw(a,b){a=(new $w(a,b)).g;Yw.call(this,new RegExp(Gw(a,!0)+"$","ig"))}t(xw,Yw);function ax(a,b){this.h=56;try{this.parse(a,b)}catch(c){if(c instanceof Tw)throw new jw("Invalid params: "+a);throw c;}}
ax.prototype.parse=function(a,b){Nw(a);1<a.length&&Mw(a[1])&&(this.h=a[1]);switch(b){case "boolean":this.g=Uw(a[0]);break;case "number":this.g=Vw(a[0]);break;case "string":this.g=Xw(a[0]);break;case "date":this.g=Ww(a[0]);break;default:if(!(Kw(a[0])||Jw(a[0])||Hw(a[0])||Iw(a[0])))throw new jw("Invalid params: "+a);this.g=a[0]}};p.Object.defineProperties(ax.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return this.g}},s:{configurable:!0,enumerable:!0,get:function(){return this.h}}});
function yw(a,b){this.h=56;a=new ax(a,b);this.g=a.i;this.h=a.s}yw.prototype.qd=function(a){try{if(Kw(this.g))var b=(new Yw(new RegExp("^"+Gw(this.g,!1)+"$","g"))).qd(a);else{if(Hw(this.g))var c=Vw(a)===this.g;else{if(Jw(this.g))var d=Uw(a)===this.g;else{if(Iw(this.g)){var e=Ww(a),f=this.g,h=this.h,k=Ow(e,h),l=Ow(f,h);var m=k.getTime()===l.getTime()}else m=!1;d=m}c=d}b=c}return b}catch(n){return!1}};function zw(a,b){this.g=new yw(a,b)}zw.prototype.qd=function(a){return!this.g.qd(a)};
function bx(a,b){this.s=56;try{this.parse(a,b)}catch(c){if(c instanceof Tw)throw new jw("Invalid params: "+a);throw c;}}bx.prototype.parse=function(a,b){Nw(a);1<a.length&&Mw(a[1])&&(this.s=a[1]);switch(b){case "number":this.i=Vw(a[0]);break;case "date":this.i=Ww(a[0]);break;default:if(!Hw(a[0])&&!Iw(a[0]))throw new jw("Invalid params: "+a);this.i=a[0]}};p.Object.defineProperties(bx.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.i}},h:{configurable:!0,enumerable:!0,get:function(){return this.s}}});
function Aw(a,b){this.g=new bx(a,b)}Aw.prototype.qd=function(a){try{return Hw(this.g.g)?Vw(a)>this.g.g:Iw(this.g.g)?Pw(Ww(a),this.g.g,this.g.h):!1}catch(b){return!1}};function Bw(a,b){this.g=new bx(a,b)}Bw.prototype.qd=function(a){try{return Hw(this.g.g)?Vw(a)>=this.g.g:Iw(this.g.g)?Sw(Ww(a),this.g.g,this.g.h):!1}catch(b){return!1}};function Cw(a,b){this.g=new bx(a,b)}Cw.prototype.qd=function(a){try{return Hw(this.g.g)?Vw(a)<this.g.g:Iw(this.g.g)?Qw(Ww(a),this.g.g,this.g.h):!1}catch(b){return!1}};
function Dw(a,b){this.g=new bx(a,b)}Dw.prototype.qd=function(a){try{return Hw(this.g.g)?Vw(a)<=this.g.g:Iw(this.g.g)?Rw(Ww(a),this.g.g,this.g.h):!1}catch(b){return!1}};function cx(a,b){this.s=this.u=!0;this.i=56;try{this.parse(a,b)}catch(c){if(c instanceof Tw)throw new jw("Invalid params: "+a);throw c;}}
cx.prototype.parse=function(a,b){if(!Array.isArray(a)||2>a.length)throw new jw("Invalid params: "+a);switch(b){case "number":this.h=Vw(a[0]);this.g=Vw(a[1]);break;case "date":this.h=Ww(a[0]);this.g=Ww(a[1]);break;default:if(!Hw(a[0],a[1])&&!Iw(a[0],a[1]))throw new jw("Invalid params: "+a);this.h=a[0];this.g=a[1]}2<a.length&&Jw(a[2])?(this.u=a[2],3<a.length&&Jw(a[3])&&(this.s=a[3])):2<a.length&&Mw(a[2])&&(this.i=a[2],3<a.length&&Jw(a[3])&&(this.u=a[3]),4<a.length&&Jw(a[4])&&(this.s=a[4]));a=this.h;
b=Hw(a)&&a>this.g;var c=Iw(a)&&Pw(a,this.g,this.i);if(b||c)this.h=this.g,this.g=a};p.Object.defineProperties(cx.prototype,{start:{configurable:!0,enumerable:!0,get:function(){return this.h}},end:{configurable:!0,enumerable:!0,get:function(){return this.g}},ea:{configurable:!0,enumerable:!0,get:function(){return this.u}},ca:{configurable:!0,enumerable:!0,get:function(){return this.s}},fa:{configurable:!0,enumerable:!0,get:function(){return this.i}}});function Ew(a,b){this.g=new cx(a,b)}
Ew.prototype.qd=function(a){try{if(Hw(this.g.start,this.g.end)){var b=Vw(a),c=this.g.start,d=this.g.end,e=this.g,f=e.ea,h=e.ca;var k=f&&h?b>=c&&b<=d:f?b>=c&&b<d:h?b>c&&b<=d:b>c&&b<d}else{if(Iw(this.g.start,this.g.end)){var l=Ww(a),m=this.g.start,n=this.g.end,q=this.g,u=q.ea,r=q.ca,z=q.fa;var D=u&&r?Sw(l,m,z)&&Rw(l,n,z):u?Sw(l,m,z)&&Qw(l,n,z):r?Pw(l,m,z)&&Rw(l,n,z):Pw(l,m,z)&&Qw(l,n,z)}else D=!1;k=D}return k}catch(wa){return!1}};function Fw(a,b){this.g=new Ew(a,b)}Fw.prototype.qd=function(a){return!this.g.qd(a)};
function Zw(){this.h=!1};var dx={All:"all",NonLeafPriority:"nonleafpriority",LeafPriority:"leafpriority"};v("ValueConsistsOf",dx);var ex={All:"all",Leaf:"leaf"};v("TreeViewNodeType",ex);function fx(a,b){if(a.length!==b.length)return!1;var c=new Set(a);return b.every(function(d){return c.has(d)})}function gx(a,b,c){if(c&&!a.visible)return null;if(b(a))return a;if(c&&!a.fa||!a.children)return null;for(var d=0;d<a.children.length;d++){var e=gx(a.children[d],b,c);if(e)return e}return null}function hx(a,b,c){var d;if(!c||a.visible)if(b(a),!c||a.fa)null===(d=a.children)||void 0===d?void 0:d.forEach(function(e){return hx(e,b,c)})}
function ix(a){var b=a;try{b=JSON.parse(JSON.stringify(a))}catch(c){}return b}function jx(a,b,c){b=md(b,0,a.length);for(var d=[],e=0;e<b;e++)d.push(a[e]);for(e=0;e<c.length;e++)d.push(c[e]);for(;b<a.length;b++)d.push(a[b]);return d}
function kx(a){this.s={};this.ka=0;this.na=Number.MIN_VALUE;this.La=!1;this.sa="nonleafpriority";this.Ic=this.Sc=!0;this.va=!1;this.ta=this.ga=this.la=null;this.fa=new Map;this.u=new Map;this.se=!1;this.checkBySpace=!0;this.checkOnClick=!1;this.Fa=null;a=a||{};this.wa={items:Array.isArray(a.items)?a.items:[],displayMemberPath:Jd(a.displayMemberPath)?a.displayMemberPath:lx,valueMemberPath:Jd(a.valueMemberPath)?a.valueMemberPath:mx,imageMemberPath:Jd(a.imageMemberPath)?a.imageMemberPath:nx,childrenMemberPath:Jd(a.childrenMemberPath)?
a.childrenMemberPath:ox,expandedMemberPath:Jd(a.expandedMemberPath)?a.expandedMemberPath:sx,itemTemplate:Array.isArray(a.itemTemplate)||Jd(a.itemTemplate)||"function"===typeof a.itemTemplate?a.itemTemplate:null,itemHeight:0<parseFloat(a.itemHeight)?parseFloat(a.itemHeight):30,visibleItems:0<parseInt(a.visibleItems)?parseInt(a.visibleItems):5,allowResize:"boolean"==typeof a.allowResize?a.allowResize:!1,selectableNodeType:a.selectableNodeType?mg(ex,a.selectableNodeType,"all"):"all",overflow:a.overflow?
mg(dt,a.overflow,"vertical"):"vertical",readOnly:"boolean"==typeof a.readOnly?a.readOnly:!1,enabled:"boolean"==typeof a.enabled?a.enabled:!0,visible:"boolean"==typeof a.visible?a.visible:!0,width:"number"==typeof a.width||"string"==typeof a.width?a.width:null,height:"number"==typeof a.height||"string"==typeof a.height?a.height:null,load:"function"==typeof a.load?a.load:null,generatingItem:"function"==typeof a.generatingItem?a.generatingItem:null,selectTemplate:"function"==typeof a.selectTemplate?
a.selectTemplate:null,formatItem:"function"==typeof a.formatItem?a.formatItem:null,virtualMode:"boolean"==typeof a.virtualMode?a.virtualMode:!1,isMultiSelect:"boolean"==typeof a.isMultiSelect?a.isMultiSelect:!1,flat:"boolean"==typeof a.flat?a.flat:!1,valueConsistsOf:a.valueConsistsOf?mg(dx,a.valueConsistsOf,"nonleafpriority"):"nonleafpriority",checkBySpace:"boolean"==typeof a.checkBySpace?a.checkBySpace:!0,checkOnClick:"boolean"==typeof a.checkOnClick?a.checkOnClick:!1};tx(this)}t(kx,tg);g=kx.prototype;
g.dispose=function(){vg(this)};function tx(a){a.h=new ux(a,null,!0);a.fa.clear();a.u.clear()}function vx(a){if(a.na===Number.MAX_VALUE){var b=wx(a).sort(function(c,d){return c.ea-d.ea});b.forEach(function(c,d){return c.ea=Number.MIN_VALUE+d});a.na=Number.MIN_VALUE+b.length}return a.na++}function wx(a){var b=[];a.forEach(function(c){"checked"===c.s&&b.push(c)},!1);return b}function xx(a){var b=[];a.forEach(function(c){"checked"!==c.s||!c.h&&0!==c.children.length||b.push(c)},!1);return b}
function yx(a){var b=[];a.h.children.forEach(function(c){return zx(a,c,b)});return b}function zx(a,b,c){var d;if("checked"===b.s&&(c.push(b),!b.h))return;null===(d=b.children)||void 0===d?void 0:d.forEach(function(e){return zx(a,e,c)})}function Ax(a){Bx(a);var b=[];a.h.children.forEach(function(c){return b.push(c.g)});return b}
function Bx(a){a.forEach(function(b){if(b.children){var c=[];b.children.forEach(function(d){return c.push(d.g)});b.g[a.wa.childrenMemberPath]=c}else delete b.g[a.wa.childrenMemberPath]},!1)}g.clear=function(){this.g=this.ea=null;this.ca=[];this.ka=0;tx(this);this.ha(Cx)};g.addItems=function(a,b){var c,d,e;(b=null!==(c=this.u.get(b))&&void 0!==c?c:this.h)&&Dx(b,null!==(e=null===(d=b.children)||void 0===d?void 0:d.length)&&void 0!==e?e:0,a)};
g.insertItems=function(a,b,c){var d;(b=null!==(d=this.u.get(b))&&void 0!==d?d:this.h)&&Dx(b,c,a)};g.clearItems=function(){this.clear();this.ha(Ex)};function Fx(a,b,c,d,e){var f=new kw([{name:d,comparator:c,filterString:b}]);return a.find(function(h){return e&&!h.u?!1:f.qd(h.g)},!1)}g.findString=function(a,b){return this.Ne(a,"contains",b)};g.findStringExact=function(a,b){return this.Ne(a,"equal",b)};
g.Ne=function(a,b,c){var d,e;return null!==(e=null===(d=Fx(this,a,b,c,!0))||void 0===d?void 0:d.g)&&void 0!==e?e:null};g.sort=function(a){this.h.sort(a);this.ha(Gx)};function Hx(a){a.forEach(function(b){!0===b.ga&&(b.ka=b.va,b.ga=!1)},!1)}function Ix(a){a.forEach(function(b){b.ga=!0;b.va=b.fa},!1)}
g.filter=function(a){a?(null===this.ta&&Ix(this),this.ta=a,this.forEach(function(b){return Jx(a,b)},!1),this.forEach(function(b){!b.u&&b.Ma&&(b.u=!0)},!1),this.forEach(function(b){if(b.u&&b.u)for(b=b.parent;!b.i;)b.u=!0,b=b.parent},!1),this.forEach(function(b){b.u&&Kx(b,!1)},!1)):(this.forEach(function(b){return b.u=!0},!1),Hx(this),this.ta=null);this.ha(Gx)};
function Jx(a,b){if(!b.i)if("function"===typeof a)b.u=a(b.g);else if(Array.isArray(a)){var c=[];a.forEach(function(f){"function"===typeof f&&c.push(f)});for(var d=!0,e=0;e<c.length;e++)if(!c[e](b.g)){d=!1;break}b.u=d&&(new kw(a)).qd(b.g)}else b.u=!0}g.forEach=function(a,b){this.h.forEach(function(c){c.i||a(c)},b)};g.find=function(a,b){return this.h.find(function(c){return c.i?!1:a(c)},b)};
function Lx(a,b,c){var d=0,e=b+c,f=[];a.find(function(h){d>=b&&d<e&&f.push(h);if(d===e)return!0;d++;return!1},!0);return f}function Mx(a,b){if(!b||!b.visible)return-1;var c=-1;return a.find(function(d){c++;return d===b},!0)?c:-1}g.Ef=function(){var a=0;this.forEach(function(){return a++},!0);return a};
p.Object.defineProperties(kx.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return"leaf"===this.wa.selectableNodeType}},ea:{configurable:!0,enumerable:!0,get:function(){return this.la},set:function(a){if((!a||a.sa)&&a!==this.la){var b={ko:this.la,io:a};this.la=a;this.ha(Nx,b)}}},g:{configurable:!0,enumerable:!0,get:function(){return this.ga},set:function(a){if(a!==this.ga){var b={ko:this.ga,io:a};this.ga=a;this.ha(Ox,b)}}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.g&&
this.g.visible?this.g:null}},ca:{configurable:!0,enumerable:!0,get:function(){if(this.wa.flat)return wx(this);switch(this.valueConsistsOf){case "all":return wx(this);case "nonleafpriority":return yx(this);case "leafpriority":return xx(this)}},set:function(a){if(Array.isArray(a)){a=a.filter(function(d){return!!d});var b=wx(this),c=new Set(a);b.forEach(function(d){c.has(d)||Px(d,!1,!1)});a.forEach(function(d){return Px(d,!0,!1)});a=wx(this);fx(b,a)||(this.ha(Qx),this.ha(Rx))}}},items:{configurable:!0,
enumerable:!0,get:function(){return Ax(this)},set:function(a){Array.isArray(a)&&(this.clear(),0<a.length&&Dx(this.h,0,a,!1),this.ha(Ex))}},valueConsistsOf:{configurable:!0,enumerable:!0,get:function(){return this.sa},set:function(a){a=I(dx,a);if(this.sa!==a&&null!==a){var b=this.ca,c=wx(this);this.sa=a;fx(b,this.ca)||this.ha(Qx);a=wx(this);fx(c,a)||this.ha(Rx)}}},readOnly:{configurable:!0,enumerable:!0,get:function(){return this.La},set:function(a){"boolean"===typeof a&&this.readOnly!==a&&(this.La=
a,this.ha(Sx))}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.Sc},set:function(a){"boolean"===typeof a&&this.enabled!==a&&(this.Sc=a,this.ha(Tx))}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Ic},set:function(a){"boolean"===typeof a&&this.visible!==a&&(this.Ic=a,this.ha(Ux))}},virtualMode:{configurable:!0,enumerable:!0,get:function(){return this.va},set:function(a){"boolean"===typeof a&&this.va!=a&&(this.va=a,this.ha(Vx))}},Ga:{configurable:!0,enumerable:!0,
get:function(){return!this.i&&!this.wa.flat}}});var mx="text",lx="text",nx="image",ox="children",sx="expanded";function ux(a,b,c){c=void 0===c?!1:c;this.i=!1;this.children=this.ca=this.parent=null;this.u=!0;this.ta=this.ka=!1;this.na="unchecked";this.va=this.ga=!1;this.ea=Number.MIN_VALUE;this.ya=a;this.g=b;(this.i=c)?(this.ca=[],this.children=[]):(b=a.ka+"",a.ka++,this.id=b,this.ya.fa.set(this.id,this),this.ya.u.set(this.g,this))}
function Kx(a,b){b=void 0===b?!0:b;if(!a.visible)for(a=a.parent;null!=a;)a.expand(b),a=a.parent}function Wx(a){if(a.children&&0>=a.children.length&&a.ya.wa.load&&!a.la){var b=new Xx(a);a.ta=!0;a.ya.ha(Yx,a);try{a.ya.wa.load(b)}catch(c){b.g.la&&b.callback(void 0)}}}g=ux.prototype;g.next=function(a){var b=this;if(a&&!this.visible)return null;var c=null,d=null;this.ya.find(function(e){if(c===b)return d=e,!0;c=e;return!1},a);return d};
g.Gf=function(a){var b=this;if(a&&!this.visible)return null;var c=null,d=null;this.ya.find(function(e){if(e===b)return d=c,!0;c=e;return!1},a);return d};g.select=function(){this.ya.ea=this};g.focus=function(){this.ya.g=this};function Zx(a){a.fa?a.collapse():a.expand()}g.expand=function(a){a=void 0===a?!0:a;this.i||this.h||this.fa||this.la||(0>=this.children.length&&this.ya.wa.load?Wx(this):(this.ka=!0,a&&this.ya.ha($x,this)))};
g.collapse=function(){this.i||this.h||!this.fa||this.la||(this.ka=!1,this.ya.ha(ay,this))};function Px(a,b,c){if(!(!a.h&&a.ya.i||b&&"checked"===a.s||!b&&"unchecked"===a.s)){var d=b?"checked":"unchecked";by(a,d);if(a.ya.Ga)for(a.forEach(function(e){by(e,d)},!1),b=a.parent;!b.i;)by(b,cy(b)),b=b.parent;c&&(a.ya.ha(Qx),a.ya.ha(Rx))}}
function cy(a){if(a.h)return a.s;for(var b=0,c=0;c<a.children.length;c++){if("indeterminate"===a.children[c].s)return"indeterminate";"checked"===a.children[c].s&&b++;if(0<b&&b!==c+1)return"indeterminate"}return 0===b?"unchecked":"checked"}function by(a,b){a.na!=b&&("checked"===b&&(a.ea=vx(a.ya)),a.na=b,a.ya.ha(dy,a))}function ey(a){["unchecked","indeterminate"].includes(a.s)?Px(a,!0,!0):Px(a,!1,!0)}
function Dx(a,b,c,d){d=void 0===d?!0:d;Array.isArray(c)&&0<c.length&&(c=c.map(function(e){return fy(a,e)}),null==a.ca&&(a.ca=[],a.children=[]),"number"!==typeof b&&(b=a.children.length),b=md(b,0,a.children.length),c.forEach(function(e){return e.parent=a}),a.children=jx(a.children,b,c),a.ca=jx(a.ca,b,c),a.ya.ha(gy,{parentNode:a,childNodes:c}),a.ya.Ga&&"checked"===a.s&&(b=a.ya.ca,c.forEach(function(e){e.forEach(function(f){return by(f,"checked")},!1)}),fx(b,a.ya.ca)||a.ya.ha(Qx),a.ya.ha(Rx)),d&&a.ya.ha(Ex))}
function fy(a,b){b=hy(a,b);var c=new ux(a.ya,b,!1);"boolean"==typeof b[a.ya.wa.expandedMemberPath]&&(c.ka=b[a.ya.wa.expandedMemberPath]);b=b[a.ya.wa.childrenMemberPath];Array.isArray(b)&&(c.ca=[],b.forEach(function(d){d=fy(a,d);d.parent=c;c.ca.push(d)}),0==c.ca.length&&(c.ka=!1),c.children=c.ca.concat(),0!=c.ca.length||a.ya.wa.load||(c.ca=null,c.children=null));return c}
function hy(a,b){if("object"===typeof b)return b;if("string"===typeof b){var c={};c[a.ya.wa.displayMemberPath]=b;return c}throw Error("the type of item must be object or string");}function iy(a){if(a.ya.wa.formatItem){var b=ix(a.g);a.ya.wa.formatItem(b);return b}return a.formatItem(ix(a.g))}
g.formatItem=function(a){var b={};Object.keys(a).forEach(function(c){var d=a[c];d=void 0===d?"":"boolean"===typeof d?d?"TRUE":"FALSE":d instanceof Date?d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate():d;b[c]=d});return b};g.forEach=function(a,b){hx(this,a,b)};g.find=function(a,b){return gx(this,a,b)};g.sort=function(a){var b;if(null===(b=this.children)||void 0===b?0:b.length)this.children=this.ca.concat(),a&&this.children.sort(jy(a)),this.children.forEach(function(c){return c.sort(a)})};
p.Object.defineProperties(ux.prototype,{fa:{configurable:!0,enumerable:!0,get:function(){return this.i?!0:this.ka}},h:{configurable:!0,enumerable:!0,get:function(){return null==this.children||0>=this.children.length&&null==this.ya.wa.load}},Ga:{configurable:!0,enumerable:!0,get:function(){return this===this.ya.ea}},Fa:{configurable:!0,enumerable:!0,get:function(){return this===this.ya.g}},la:{configurable:!0,enumerable:!0,get:function(){return this.ta}},s:{configurable:!0,enumerable:!0,get:function(){return!this.h&&
this.ya.i?"unchecked":this.na}},sa:{configurable:!0,enumerable:!0,get:function(){return this.h||!this.ya.i}},La:{configurable:!0,enumerable:!0,get:function(){for(var a=-1,b=this.parent;null!=b;)a++,b=b.parent;return a}},visible:{configurable:!0,enumerable:!0,get:function(){if(!this.u)return!1;for(var a=this.parent;null!=a;){if(!a.fa)return!1;a=a.parent}return!0}},Ma:{configurable:!0,enumerable:!0,get:function(){for(var a=this.parent;!a.i;){if(a.u)return!0;a=a.parent}return!1}}});
function jy(a){if("function"===typeof a)return function(c,d){return a(c.g,d.g)};var b=a.name||lx;return function(c,d){c=c.g[b];d=d.g[b];if(ky(c)&&ky(d)||ky(c))return 1;if(ky(d))return-1;var e=0;switch(typeof c){case "string":e=c.localeCompare(d);break;case "number":e=c===d?0:c>d?1:-1;break;case "boolean":e=c-d;break;case "object":c instanceof Date&&d instanceof Date&&(e=c.getTime()===d.getTime()?0:c>d?1:-1)}return 0===e?1:a.isAsc?e:-e}}function ky(a){return""===a||null===a||void 0===a}
function Xx(a){this.g=a}Xx.prototype.callback=function(a){this.g.ya.Fa&&(a=this.g.ya.Fa(a));Array.isArray(a)&&0<a.length?Dx(this.g,0,a):this.g.i||(this.g.children=null);a=this.g;a.ta=!1;a.ya.ha(ly,a);this.g.expand()};p.Object.defineProperties(Xx.prototype,{item:{configurable:!0,enumerable:!0,get:function(){return this.g.i?null:this.g.g}}});
var Sx="readOnlyChanged",Tx="enabledChanged",Ux="visibleChanged",gy="addChildrenNodes",dy="checkStateChanged",Qx="checkedNodesChanged",Cx="clear",Yx="beginLoad",ly="endLoad",Nx="selectedNodeChanged",Ox="focusedNodeChanged",$x="expandNode",ay="collapseNode",Gx="reLoadTree",Vx="virtualModeChanged",Ex="itemsChanged",Rx="allCheckedNodesChanged";function my(){this.ea=!0;this.showSpinButton=!1;this.isEditable=!0;this.h=!1;this.valueMemberPath=this.displayMemberPath="Text";this.dropDownType="list";this.i=new ny;this.minPrefixLength=1;this.autoFilter="none";this.autoSelect=!1;this.matchingSource="display";this.ta=this.spinButtonPosition="rightside";this.emptyTemplate="";this.spinWheel=!0;this.s=";";this.autoCompleteMode="none";this.autoCompleteMatchMode="ambiguousstartwith";this.checkBySpace=!0;this.g={items:[],columns:[],overflow:"vertical",
multiColumn:!1};this.na={};this.la={}}function oy(a,b){return a?void 0===a[b]?"":a[b]:""}my.prototype.Xp=function(){return!1};my.prototype.dispose=function(){this.fa=this.ka=null};function py(){my.call(this);this.u=null}t(py,my);g=py.prototype;g.Ph=function(){return this.ga||oy(this.u,this.displayMemberPath).toString()};g.getSelectedValue=function(){return oy(this.u,this.valueMemberPath)};g.getCheckedValues=function(){var a=this.getSelectedValue();return void 0!==a?[a]:[]};g.getSelectedItem=function(){return this.u};
g.getCheckedItems=function(){return this.u?[this.u]:[]};p.Object.defineProperties(py.prototype,{selectedItem:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){this.u!=a&&(this.u=a,this.ga="",this.ka())}},ca:{configurable:!0,enumerable:!0,set:function(a){this.selectedItem=null;this.ga=a},get:function(){return this.ga}}});function qy(){my.call(this);this.ga=!0;this.g.showCheckBox=!0;this.u=[]}t(qy,my);g=qy.prototype;
g.Ph=function(){var a=this;if(this.ca)return this.ca;var b=[];this.u.forEach(function(c){return b.push(oy(c,a.displayMemberPath).toString())});return b.join(this.s)};g.getSelectedValue=function(){var a=this.getCheckedValues();return a.length?a[0]:null};g.getCheckedValues=function(){var a=this,b=[];this.u.forEach(function(c){return b.push(oy(c,a.valueMemberPath))});return b};g.getSelectedItem=function(){return this.u.length?this.u[0]:null};g.getCheckedItems=function(){return this.u};g.Xp=function(a){return!!a.length};
p.Object.defineProperties(qy.prototype,{sa:{configurable:!0,enumerable:!0,set:function(a){this.selectedItems=null;this.ca=a}},selectedItems:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){this.u!=a&&(this.ca="",this.u=a||[],this.ga&&this.fa())}}});
function ry(a,b){var c=new py;b&&b.isMultiSelect&&(c=new qy);b&&"tree"==b.dropDownType||"select"!==a.tagName.toLowerCase()||!a.options.length||sy(a,c);if(!b)return c;ty(c.g,b);uy(c.na,b);vy(c.la,b);b.dropDownType&&null!==I(Wv,b.dropDownType)&&(c.dropDownType=I(Wv,b.dropDownType));"tree"===c.dropDownType&&(c.displayMemberPath=lx,c.valueMemberPath=mx);b.displayMemberPath&&(c.displayMemberPath=b.displayMemberPath);b.valueMemberPath&&(c.valueMemberPath=b.valueMemberPath);b.columns&&(a=b.columns.filter(function(d){return d.isValuePath}),
a.length&&(c.valueMemberPath=a[0].name));c.i.Hj=b.dropDownWidth;c.isEditable=void 0!==b.isEditable?b.isEditable:!0;c.autoFilter=b.autoFilter&&b.autoFilter.toLowerCase()||"none";c.ea=void 0!==b.showDropDownButton?b.showDropDownButton:!0;c.autoSelect=void 0!==b.autoSelect?b.autoSelect:!1;c.s=void 0!==b.multipleItemSeparator?b.multipleItemSeparator:";";c.minPrefixLength=void 0!==b.minPrefixLength?b.minPrefixLength:0;void 0!=b.dropDownButtonPosition&&null!==I(Ja,b.dropDownButtonPosition)&&(c.ta=I(Ja,
b.dropDownButtonPosition));c.showSpinButton=b.showSpinButton;void 0!=b.spinButtonPosition&&null!==I(Na,b.spinButtonPosition)&&(c.spinButtonPosition=I(Na,b.spinButtonPosition));void 0!=b.matchingSource&&null!==I(Vv,b.matchingSource)&&(c.matchingSource=I(Vv,b.matchingSource));c.emptyTemplate=b.emptyTemplate;c.autoCompleteMode=void 0!==b.autoCompleteMode?b.autoCompleteMode:"none";c.autoCompleteMatchMode=void 0!==b.autoCompleteMatchMode?b.autoCompleteMatchMode:"ambiguousstartwith";c.spinWheel=void 0==
b.spinWheel?!0:b.spinWheel;c.checkBySpace=void 0!==b.checkBySpace?b.checkBySpace:!0;return c}function sy(a,b){var c=!1;b.g.columns.push({name:"Text"});for(var d=0;d<a.options.length;d++){var e=a.options[d];void 0!==e.value&&(c=!0);var f={};f.Text=e.label||e.text;c&&(f.Value=e.value);b.g.items.push(f)}c&&(b.valueMemberPath="Value",b.g.columns.push({name:"Value",isValuePath:!0,visible:!1}));b.displayMemberPath="Text";b.g.showHeader=!1}
function ty(a,b){Object.keys({visibleItems:void 0,itemHeight:void 0,colHeaderHeight:void 0,items:void 0,columns:void 0,showHeader:void 0,enabled:void 0,valueMemberPath:void 0,multiColumn:void 0,displayMemberPath:void 0,itemTemplate:void 0,headerTemplate:void 0,footerTemplate:void 0,load:void 0,pageSize:void 0,virtualMode:void 0,generatingItem:void 0,selectTemplate:void 0,formatItem:void 0,allowColumnResize:void 0,checkOnClick:void 0,showTip:void 0}).forEach(function(c){void 0!==b[c]&&(a[c]=b[c])});
a.overflow=b.dropDownOverflow;a.allowResize=b.allowDropDownResize;b.columns&&(void 0===b.multiColumn&&(a.multiColumn=!0),b.dropDownOverflow||(a.overflow="both"));b.dropDownWidth&&(a.width="autofitsinglecolumn"===b.dropDownWidth?void 0:b.dropDownWidth);b.dropDownHeight&&(a.height=b.dropDownHeight)}
function uy(a,b){Object.keys({displayMemberPath:void 0,valueMemberPath:void 0,itemHeight:void 0,visibleItems:void 0,isMultiSelect:void 0,readOnly:void 0,enabled:void 0,visible:void 0,virtualMode:void 0,checkOnClick:void 0,checkBySpace:void 0,items:void 0}).forEach(function(d){void 0!==b[d]&&(a[d]=b[d])});var c=b.dropDownTreeConfig||{};Object.keys({imageMemberPath:void 0,childrenMemberPath:void 0,expandedMemberPath:void 0,selectableNodeType:void 0,itemTemplate:void 0,flat:void 0,valueConsistsOf:void 0,
generatingItem:void 0,selectTemplate:void 0,formatItem:void 0,load:void 0}).forEach(function(d){void 0!==c[d]&&(a[d]=c[d])});a.overflow=b.dropDownOverflow;a.allowResize=b.allowDropDownResize;b.dropDownWidth&&"auto"!==b.dropDownWidth&&"autofitsinglecolumn"!==b.dropDownWidth&&(a.width=b.dropDownWidth);b.dropDownHeight&&(a.height=b.dropDownHeight)}
function vy(a,b){Object.keys({exitOnLeftRightKey:void 0,editMode:void 0,watermarkDisplayNullText:void 0,highlightText:void 0,watermarkNullText:void 0,acceptsCrlf:void 0,acceptsTabChar:void 0,useClipboard:void 0,exitOnEnterKey:void 0,ellipsis:void 0,ellipsisString:void 0,enabled:void 0,visible:void 0,container:void 0,autoDropDown:void 0,showClearButton:void 0,autoScale:void 0,minScaleFactor:void 0,tabIndex:void 0,showCopyButton:void 0,showHelpButton:void 0,helpContent:void 0,copyMessage:void 0,copiedMessage:void 0,
floatingLabelText:void 0,floatingLabelType:void 0,floatingLabelDirection:void 0,width:void 0,height:void 0,minWidth:void 0,minHeight:void 0,maxWidth:void 0,maxHeight:void 0,fontSize:void 0}).forEach(function(c){void 0!==b[c]&&(a[c]=b[c])})}function ny(){this.g=null;this.Jl=this.Il=!1}p.Object.defineProperties(ny.prototype,{Hj:{configurable:!0,enumerable:!0,get:function(){return this.g},set:function(a){"string"===typeof a&&(a=a.toLowerCase());this.g=a}}});function wy(){return A("div",{class:"indicator-wrapper gcim__indicator-wrapper gcim_hidden"},A("div",{class:"loading-ring gcim__loading-ring",style:"height:16px;width:16px"},A("div",null),A("div",null),A("div",null),A("div",null)))};function xy(a,b){var c=A("div",{class:"list-item","data-index":a,style:"height:"+b+"px"}," ");return function(d){"string"===typeof d?c.innerHTML=d:c.appendChild(d);return c}}
function yy(a,b,c,d){var e=[],f=0;b.forEach(function(h){if(h.isVisible){var k=void 0===a[h.name]?"":a[h.name];0!==f&&(c=!1);var l=e.push,m=h.contentAlignment.split("-"),n=""==k&&db?"display: inline-block;":"";h={class:"list-cell text-content cell-content text-truncate-style grid-line--bottom--right","data-role":"cell","data-guid":h.i,"data-col":h.name,"data-align":m[1],style:"width:"+h.width+"px;line-height:"+d+"px"};if(c){var q=A("label",{class:"gcim_checkbox"},A("input",{class:"checkbox",type:"checkbox",
style:"display: none"}),A("span",{class:"checkbox-span"}));E(q.querySelector("input"),"row-check");q=A("span",{"data-role":"checkbox",style:"float:left;margin:0 3px"},q)}else q="";k=A("div",h,q,A("span",{class:"content",style:"line-height:normal; "+n,"data-align":m[0]},k));l.call(e,k);f++}});return A("div",{class:"list-item__inner"},e)}
function zy(a,b){return b.replace(/\{!!(.+?)\}/g,function(c,d){return Ay(a,d)}).replace(/\{!(.+?)\}/g,function(c,d){c=Ay(a,d);return void 0==c?"":c.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")})}function Ay(a,b){return b.split(".").reduce(function(c,d){return c&&c[d]},a)};function By(){this.h=new Cy(this);this.reset()}g=By.prototype;g.reset=function(){this.s=[];this.g=[]};g.getItems=function(){return this.g};g.setItems=function(a){this.reset();Dy(this,a)};g.addItems=function(a){Dy(this,a)};g.insertItems=function(a,b){a=[b,0].concat(a.map(function(c){return new Ey(c)}));Array.prototype.splice.apply(this.g,a);Array.prototype.splice.apply(this.s,a)};
function Fy(a,b){var c=new Set(b),d=new Set(a.g.filter(function(e,f){return c.has(f)}));a.s=a.s.filter(function(e){return!d.has(e)});a.g=a.g.filter(function(e,f){return!c.has(f)})}function Dy(a,b){0!=b.length&&b.forEach(function(c){c=new Ey(c);a.s.push(c);a.g.push(c)})}function Gy(a,b,c){if("function"===typeof b.filter){var d=b.filter;a.g=a.g.filter(function(f){return d(f.data)})}else if(Array.isArray(b.filter)){var e=new kw(b.filter,c);a.g=a.g.filter(function(f){return e.qd(f.data)})}}
function Hy(a,b){b.sort&&(a.g=a.g.map(function(c,d){return{item:c,index:d}}).sort(Iy(b.sort)).map(function(c){return c.item}))}g.formatItem=function(a){var b={};Object.keys(a).forEach(function(c){var d=a[c];d=void 0===d?"":"boolean"===typeof d?d?"TRUE":"FALSE":d instanceof Date?d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate():d;b[c]=d});return b};
function Jy(a,b){var c=[];Ky(a,b)||(a.g[b].h=!0,c.push({index:b,value:!0}));Ly(a,b)&&a.getSelectedIndices().forEach(function(d){Ky(a,d)||(a.g[d].h=!0,c.push({index:d,value:!0}))});return c}function My(a,b){var c=[];Ky(a,b)&&(a.g[b].h=!1,c.push({index:b,value:!1}));Ly(a,b)&&a.getSelectedIndices().forEach(function(d){Ky(a,d)&&(a.g[d].h=!1,c.push({index:d,value:!1}))});return c}function Ny(a,b){return Oy(a,b,function(c){return Ky(a,c)},function(c,d){if(c=a.g[c])c.h=d})}
g.getCheckedIndices=function(){return Py(this,function(a){return a.h})};g.clearChecked=function(){return Qy(this,function(a){return a.h},function(a){a.h=!1})};function Ky(a,b){return(a=a.g[b])?a.h:!1}function Ry(a){a.ca=-1;a.ea=-1;a.h.reset()}function Sy(a,b){a.fa=b;return a}function Ly(a,b){return Ty(a.h,b)?Uy(a.h):Vy(a,b)}function Vy(a,b){return(a=a.g[b])?a.g:!1}g.getSelectedIndices=function(){var a=this;return Py(this,function(b,c){return Ly(a,c)})};
g.setSelectedIndices=function(a){var b=this;return Oy(this,a,function(c){return Ly(b,c)},function(c,d){if(c=b.g[c])c.g=d})};g.clearSelected=function(){return Qy(this,function(a){return a.g},function(a){a.g=!1})};
g.select=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;-1!=this.ca&&c||d||(this.ca=a);switch(this.fa){case "single":var e=Wy(this,a);break;case "multiple":e=Xy(this,a);break;case "multipleExt":d=void 0===d?!1:d;d||(this.h.s=a);e=Yy;(void 0===b?0:b)&&(e|=Zy);(void 0===c?0:c)&&(e|=$y);d&&(e|=az);switch(e){case Zy|$y:d=bz(this,a);break;case Zy|az:case Zy|$y|az:d=cz(this,a);break;case az:d=dz(this,a);break;case Zy:d=Xy(this,a);break;case $y:case $y|az:d=dz(this,a);break;default:d=
Wy(this,a)}e=d}this.ea=a;return e};function cz(a,b){var c=[];a.h.ca=b;var d=Uy(a.h);ez(a.h).forEach(function(e){if(e!==a.h.s){var f=Vy(a,e);f!==d&&(f=Ty(a.h,e)?d:f,c.push({index:e,value:f}))}});return c}function fz(a){if(a.h.$a()){var b=Uy(a.h);gz(a.h,function(c){a.g[c].g=b})}}function Wy(a,b){var c=[],d=!1;a.g.forEach(function(e,f){e.g&&(f===b?d=!0:(e.g=!1,c.push({index:f,value:!1})))});a.s.forEach(function(e){e!=a.g[b]&&(e.g=!1)});!d&&a.g[b]&&(a.g[b].g=!0,c.push({index:b,value:!0}));return c}
function Xy(a,b){var c=[];Ly(a,b)?(a.g[b].g=!1,c.push({index:b,value:!1})):(a.g[b].g=!0,c.push({index:b,value:!0}));return c}function dz(a,b){var c=[];a.g.forEach(function(d,e){!hz(a,e,b)&&d.g&&(d.g=!1,c.push({index:e,value:!1}))});a.loop(b,a.ca,function(d){Ly(a,d)||(c.push({index:d,value:!0}),a.g[d].g=!0)});return c}
function bz(a,b){var c=[];a.loop(b,a.ca,function(d){Ly(a,d)||(c.push({index:d,value:!0}),a.g[d].g=!0)});-1==a.ea||hz(a,a.ea,b)||a.loop(b,a.ea,function(d){hz(a,d,b)||(a.g[d].g=!1,c.push({index:d,value:!1}))});return c}g.focus=function(a){var b=[];if(iz(this,a))return b;-1<a&&a<this.g.length&&b.push({index:a,value:!0});var c=this.i;-1<c&&c<this.g.length&&b.push({index:this.i,value:!1});this.u&&(this.u.i=!1);if(this.u=this.g[a])this.u.i=!0;return b};function iz(a,b){return(a=a.g[b])?a.i:!1}
g.loop=function(a,b,c){var d=Math.min(a,b);for(a=Math.max(a,b);d<=a;d++)c(d)};function hz(a,b,c){var d=void 0===d?a.ca:d;return!(b>Math.max(c,d)||b<Math.min(c,d))}function Oy(a,b,c,d){var e=[],f={};b.forEach(function(h){c(h)||(d(h,!0),e.push({index:h,value:!0}));f[h]=!0});b=0;for(a=a.g.length;b<a;b++)!f[b]&&c(b)&&(d(b,!1),e.push({index:b,value:!1}));return e}
function Qy(a,b,c){var d=[];a.g.forEach(function(e,f){b(e)&&(c(e),d.push({index:f,value:!1}))});a.s.forEach(function(e){b(e)&&c(e)});return d}function Py(a,b){var c=[];a.g.forEach(function(d,e){b(d,e)&&c.push(e)});return c}
p.Object.defineProperties(By.prototype,{focusAsSelected:{configurable:!0,enumerable:!0,set:function(a){this.ga=a}},lastItem:{configurable:!0,enumerable:!0,get:function(){return this.g&&this.count?this.g[this.count-1].data:null}},count:{configurable:!0,enumerable:!0,get:function(){return this.g.length}},i:{configurable:!0,enumerable:!0,get:function(){return this.u?this.g.indexOf(this.u):-1}},Mh:{configurable:!0,enumerable:!0,get:function(){return this.u}}});function Cy(a){this.u=a;this.reset()}
function Uy(a){return void 0===a.h||-1===a.h?!1:a.u.getItems()[a.h].g}Cy.prototype.$a=function(){return-1!==this.g&&-1!==this.h};Cy.prototype.reset=function(){this.g=this.h=-1;this.i=[]};function Ty(a,b){if(a.$a())return b<=Math.max(a.h,a.g)&&b>=Math.min(a.g,a.h)}function gz(a,b){if(a.$a()){for(var c=Math.min(a.h,a.g),d=Math.max(a.h,a.g);c<=d;c++)b(c);a.reset()}}function ez(a){var b=a.i;a.i=[];return b}
function jz(a,b){if(-1!==a.g){if(a.g>=a.h)if(b>a.g)var c=a.g+1;else c=b,b=a.g;else b<a.g?(c=b,b=a.g-1):c=a.g;a.loop(c,b,function(d){return a.i.push(d)})}}Cy.prototype.loop=function(a,b,c){for(;a<=b;a++)c(a)};p.Object.defineProperties(Cy.prototype,{s:{configurable:!0,enumerable:!0,set:function(a){void 0!==a&&(this.h=a)},get:function(){return this.h}},ca:{configurable:!0,enumerable:!0,set:function(a){this.g!==a&&(jz(this,a),this.g=a)},get:function(){return this.g}}});
function Ey(a){this.isVisible=!0;"object"!==typeof a?(this.data={},this.data.Text=a):this.data=a||{}}function kz(a){var b=a=a.data;try{b=JSON.parse(JSON.stringify(a))}catch(c){}return b}
function Iy(a){if("function"===typeof a)return function(c,d){return a({item:c.item.data,index:c.index},{item:d.item.data,index:d.index})};var b=a.name||"Text";return function(c,d){var e=c.item.data[b],f=d.item.data[b];if(lz(e)&&lz(f))return c.index-d.index;if(lz(e))return 1;if(lz(f))return-1;var h=0;switch(typeof e){case "string":h=e.localeCompare(f);break;case "number":h=e===f?0:e>f?1:-1;break;case "boolean":h=e-f;break;case "object":e instanceof Date&&f instanceof Date&&(h=e.getTime()===f.getTime()?
0:e>f?1:-1)}return 0===h?c.index-d.index:a.isAsc?h:-h}}function lz(a){return""===a||null===a||void 0===a}var Yy=0,Zy=1,$y=2,az=4;function mz(){this.width=180;this.contentAlignment="middle-left";this.headerAlignment="middle-center";this.ca=this.u=!1;this.g=nz;this.s=0}
function oz(a){var b=new mz;b.isVisible=!0;b.i=ed();b.isValuePath=!1;if("string"==typeof a)b.name=a,b.label=a;else{b.name=a.name;b.label=a.label||b.name;if("auto"===a.width)b.u=!0,b.width=30;else if("number"==typeof a.width)b.width=a.width,b.g|=pz;else if("string"===typeof a.width){b.width=30;var c=qz(a.width);0<c&&(b.s=c)}b.clickSort=a.clickSort;b.contentAlignment=a.contentAlignment||"middle-left";b.headerAlignment=a.headerAlignment||"middle-center";b.isValuePath=a.isValuePath;void 0!==a.showTip&&
(b.showTip=a.showTip);void 0!==a.visible&&(b.isVisible=a.visible)}30>b.width&&(b.width=30);return b}function rz(a){a.h?"asc"==a.h?a.h="desc":"desc"==a.h&&(a.h=void 0):a.h="asc"}var nz=1,pz=4;
function sz(){this.s={};var a=this;this.Nc=tz;this.Nd=4;this.vc=!1;this.Xb=!0;this.Ga="single";this.Ma=this.Ic=this.Bb=!0;this.readonly=this.autoHeight=this.se=this.Cc=!1;this.Pe=!0;this.itemHeight=30;this.virtualMode=!1;this.fa=0;this.overflow="vertical";this.checkOnClick=this.allowResize=!1;this.la=0;this.dragDrop=!1;this.dragSource="selected";this.Xa=this.Ta=!1;this.findStringFilterComparator="contains";this.We=function(){a.viewport.style.transition="";a.Bd.style.transition=""};this.ob=!1;this.h=
Sy(new By,this.Ga);this.u=new uz;this.u.onSuccess=this.ws.bind(this);this.u.ca=this.vs.bind(this);J(this,"SelectedChanged",function(){var b=a.ga.tagName.toLowerCase();if("input"===b||"select"===b){b=a.ga;var c=a.getSelectedValues();b.value=c&&c.length?c.join(";"):""}});this.reset()}t(sz,tg);g=sz.prototype;g.dispose=function(){vg(this);this.ga["IMJS-CTRL"]=null};
function vz(a,b){var c=void 0===c?4:c;if(a.Nc!==b||a.Nd!==c)switch(a.Nc=b,a.Nd=c,clearInterval(a.Se),a.Nc){case wz:a.Se=setInterval(function(){xz(a,-2)},c);break;case yz:a.Se=setInterval(function(){xz(a,2)},c)}}
function zz(a){var b=Va?"DOMMouseScroll":"mousewheel";kb()&&(y?(a.viewport.style.touchAction="none",a.viewport.addEventListener("pointerdown",function(c){return Az(a,c.pageX,c.pageY)}),document.addEventListener("pointermove",function(c){return Bz(a,c.pageX,c.pageY,c)}),document.addEventListener("pointerup",function(c){return Cz(a,c)})):(a.viewport.addEventListener("touchstart",function(c){return Az(a,c.changedTouches[0].pageX,c.changedTouches[0].pageY)},{passive:!1}),a.viewport.addEventListener("touchmove",
function(c){return Bz(a,c.changedTouches[0].pageX,c.changedTouches[0].pageY,c)},{passive:!1}),a.viewport.addEventListener("touchend",function(c){return Cz(a,c)})));a.host.addEventListener(b,function(c){a.Pe&&Dz(a,c)},{passive:!1});a.host.addEventListener("keydown",a.vq.bind(a))}function Az(a,b,c){a.Ta||(a.he=!0,a.g.Bg=b,a.g.Md=c,a.g.gk=Date.now(),a.g.Fh=0)}
function Bz(a,b,c,d){a.Ma&&!a.Ta&&(d.cancelable&&Cf(d),a.he&&(a.g.$h=b,a.g.zg=c,a.g.Fj=Date.now(),c=a.g.Fj-a.g.gk,3>c&&a.g.$h==a.g.Bg||(b=-(a.g.zg-a.g.Md),a.g.Le=0<b?1:-1,1<Math.abs(b)&&(d=Math.abs(b/c),a.g.ei=a.g.Gj,a.g.Gj=d,a.g.Fh=Math.abs((a.g.Gj-a.g.ei)/c),a.g.Md=a.g.zg,a.g.gk=a.g.Fj),d=-(a.g.$h-a.g.Bg),a.g.wg=0<d?1:-1,a.g.un=d/c,a.g.Bg=a.g.$h,c=Ez(a,d,b),1<Math.abs(b)&&a.ha("MouseWheel",c.bi),a.ha("HorizontalScroll",c.ai))))}
function Cz(a,b){a.Ta||(a.he=!1,b.cancelable&&1>=Math.abs(a.g.zg-a.g.Md)&&(Cf(b),Fz(a)))}
function Fz(a){var b=150*a.g.ei+.5*a.g.Fh*Math.pow(150,2);.5>a.g.ei&&(b=0);var c=150*a.g.un,d=Gz(a,a.g.wg,a.g.Le);-1===a.g.Le&&(b=-b);if(a.virtualMode){var e=a.itemHeight;if(Math.abs(b)>=e){var f=0,h=setInterval(function(){f>=Math.ceil(Math.abs(b)/e)||0==d.Ff?clearInterval(h):(f++,d=Gz(a,a.g.wg,a.g.Le),a.ha("MouseWheel",-1===a.g.Le?-e:Math.min(e,d.Ff)))},4);a.g.Md=b}}else d.Zh>Math.abs(c)&&Math.abs(c)>Math.abs(b)||d.Ff>Math.abs(b)&&Math.abs(b)>Math.abs(c)?Hz(a,"transform 1.2s ease-out"):.5>=Math.max(d.Zh/
c,d.Ff/b)?Hz(a,"transform 0.2s ease-out"):Hz(a,"transform 0.4s ease-out"),(5>Math.abs(b)||5>Math.abs(c))&&Hz(a,""),Iz(a,c,b)||Hz(a,""),a.viewport.addEventListener("transitionend",a.We),c=Ez(a,c,b),a.ha("HorizontalScroll",c.ai),a.ha("MouseWheel",c.bi),a.g.Bg=c.ai,a.g.Md=c.bi}function Iz(a,b,c){var d=!1;5>=a.Fa.scrollTop&&5>=a.ta.scrollLeft?d=0>=b&&0>=c:5>=a.Fa.scrollTop&&Jz(a)?d=0<=b&&0>=c:Kz(a)&&5>=a.ta.scrollLeft?d=0>=b&&0<=c:Kz(a)&&Jz(a)&&(d=0<=b&&0<=c);return!d}
function Hz(a,b){a.viewport.style.transition=b;a.Bd.style.transition=b}function Kz(a){a=a.Fa;return 5>Math.abs(a.scrollHeight-a.clientHeight-a.scrollTop)}function Jz(a){a=a.ta;return 5>Math.abs(a.scrollWidth-a.clientWidth-a.scrollLeft)}function Gz(a,b,c){var d=a.ka.scrollWidth-a.ta.scrollLeft-a.bb.width,e=a.ka.scrollHeight-a.Fa.scrollTop-a.bb.height-a.fa;a.ka.fh&&(d+=a.ka.size);a.ka.gh&&(e+=a.ka.size);-1==b&&(d=a.ta.scrollLeft);-1==c&&(e=a.Fa.scrollTop);return{Zh:d,Ff:e}}
function Ez(a,b,c){var d=Gz(a,a.g.wg,a.g.Le);1==a.g.wg&&(b=Math.min(b,d.Zh));1==a.g.Le&&(c=Math.min(c,d.Ff));return{ai:b,bi:c}}function Dz(a,b){a.Ma&&(xz(a,od(b)),b.preventDefault(),b.cancelBubble=!0)}
g.vq=function(a){if(this.Ma){var b=1;void 0!==a.Rj&&(b=a.Rj);switch(a.keyCode){case 40:Lz(this,b);a.preventDefault();break;case 38:Lz(this,-b);a.preventDefault();break;case 32:this.va&&Mz(this,this.h.i);a.preventDefault();break;case 35:Nz(this,this.count-1,!0);a.preventDefault();break;case 36:Nz(this,0,!0);a.preventDefault();break;case 33:Lz(this,-this.visibleItemCount);a.preventDefault();break;case 34:Lz(this,this.visibleItemCount),a.preventDefault()}}};function xz(a,b){a.ha("MouseWheel",b)}
g.load=function(a,b){this.Hb&&(!this.sa||(void 0===b?0:b)?a!=Oz||this.Dc?(this.sa=!0,this.u.i=a,this.u.pageSize=this.pageSize,a==Pz?(this.u.pageNumber=0,this.u.lastItem=null):this.u.lastItem=this.h.lastItem,this.Hb(this.u)):this.sa=!1:this.ob=!0)};g.reset=function(){this.h.reset();this.ca={};this.i=[];this.Dc=!0;this.h.focusAsSelected=this.Xb;Sy(this.h,this.Ga);Ry(this.h)};
g.setItems=function(a){this.h.setItems(a);Ry(this.h);this.ha("ItemsLoaded");this.ha("ItemsChanged");0==this.h.count?this.load(Pz):this.h.count<this.visibleItemCount+1?this.load(Oz,!0):this.sa=!1;this.g={Md:0,zg:0,Fh:0}};
g.clearItems=function(){this.u.filter=null;this.u.sort=null;var a=this.getCheckedItems(),b=this.getSelectedItems();Nz(this,-1,!1,!1);this.Hb?(this.h.setItems([]),Ry(this.h),this.load(Pz)):this.setItems([]);a&&a.length&&this.ha("CheckedChanged",a);b&&b.length&&this.ha("SelectedChanged",b)};
g.addItems=function(a){var b=this.h.count;this.h.addItems(a);b!==this.h.count&&(this.ha("ItemsAdded",b),this.ha("ItemsChanged"));a&&(a.length<this.pageSize||!a.length)?this.sa=!1:this.h.count<this.visibleItemCount+1?this.load(Oz,!0):this.sa=!1};g.insertItems=function(a,b){a&&a.length&&(b>this.count&&(b=this.count),0>b&&(b=0),this.h.insertItems(a,b),this.ha("ItemsChanged"),this.ha("ItemsInsert",b))};
function Qz(a,b){if(b&&b.length){var c=new Set(b),d=a.h.i;d=0<=d&&c.has(d);var e=void 0!==a.getSelectedIndices().find(function(h){return c.has(h)}),f=void 0!==a.getCheckedIndices().find(function(h){return c.has(h)});Fy(a.h,b);a.ha("ItemsChanged");a.ha("ItemsInsert",0);d&&a.ha("FocusedChanged",{Ap:[],scrollIntoView:!1});f&&a.ha("CheckedChanged",[]);e&&a.ha("SelectedChanged",[])}}
g.ws=function(a){void 0===this.pageSize&&(this.pageSize=a.length);this.Dc=a&&a.length>=this.pageSize?!0:!1;this.u.i==Pz?this.ob?(this.ob=!1,this.load(Pz,!0)):(this.setItems(a),0===(null===a||void 0===a?void 0:a.length)&&(this.sa=!1)):this.addItems(a)};g.vs=function(){this.ob=this.sa=!1};g.filter=function(a,b){b=void 0===b?0:b;this.u.filter=a;this.vc?this.load(Pz):Rz(this,b)};g.sort=function(a){this.u.sort=a;this.vc?this.load(Pz):Rz(this)};
function Rz(a,b){a.u.i=Pz;a.u.pageNumber=0;var c=a.h,d=a.u;b=void 0===b?0:b;c.g=c.s.concat([]);if(d.filter||d.sort)Gy(c,d,b),Hy(c,d);Ry(a.h);a.ha("ItemsLoaded")}function Sz(a,b,c,d){b&&(b.g|=d,b.width!=c&&(b.width=c,b.s=0,a.ha("ColumnWidthChanged",b)))}function Tz(a,b){var c=[];b.forEach(function(d){d.ug.width!==d.width&&(d.ug.width=d.width,c.push(d.ug))});0<c.length&&a.ha("ColumnListWidthChanged",c)}
function Uz(a,b){var c=!1;b&&b.forEach(function(d){var e=Vz(a,d.name);e&&(e.u=d.autofit,d.minWidth&&(e.minWidth=parseFloat(d.minWidth+"")),d.maxWidth&&(e.maxWidth=parseFloat(d.maxWidth+"")),e.g=nz,e.u&&(c=!0))});return c}function Vz(a,b){for(var c=0;c<a.i.length;c++)if(a.i[c].name==b)return a.i[c];return null}function Wz(a,b,c,d,e){a.readonly||0>b||b>a.h.count-1||(b=a.h.select(b,void 0===c?!1:c,void 0===d?!1:d,void 0===e?!1:e))&&b.length&&a.ha("SelectedChanged",b)}
function Nz(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?!0:d;e=void 0===e?!1:e;b=a.h.focus(b);b.length&&(a.ha("FocusedChanged",{Ap:b,scrollIntoView:c}),a.focusAsSelected&&d&&(!e&&!a.readonly||e)&&(c=a.h,d=[],c=c.ga&&"multiple"!==c.fa?Wy(c,c.i):d,c.length&&a.ha("SelectedChanged",c)))}function Lz(a,b){if(b){var c=a.h.i;0>c&&0>b&&(c=0);b=c+b;0>b&&(b=a.se?a.count+b%a.count:0);b>a.count-1&&(b=a.se?b%a.count:a.count-1);Nz(a,b,!0)}}
function Mz(a,b){if(!a.readonly){var c=a.h;b=Ky(c,b)?My(c,b):Jy(c,b);b.length&&a.ha("CheckedChanged",b)}}g.getCheckedIndices=function(){return this.h.getCheckedIndices()};g.getCheckedItems=function(){var a=this,b=[];this.getCheckedIndices().forEach(function(c){b.push(a.items[c].data)});return b};g.setCheckedIndices=function(a){this.va&&(a=Ny(this.h,a))&&a.length&&this.ha("CheckedChanged",a)};g.clearChecked=function(){var a=this.h.clearChecked();a&&a.length&&this.ha("CheckedChanged",a)};
g.getSelectedIndices=function(){return this.h.getSelectedIndices()};g.getSelectedItems=function(){var a=this,b=[];this.getSelectedIndices().forEach(function(c){b.push(a.items[c].data)});return b};g.getSelectedValues=function(){var a=this.getSelectedItems(),b=this.columns.filter(function(d){return d.isValuePath});if(!b.length)return a;var c=[];a.forEach(function(d){c.push(d[b[0].name])});return c};
g.setSelectedIndices=function(a){var b=a;"single"===this.Ga&&1<a.length&&(b=[a[0]]);(a=this.h.setSelectedIndices(b))&&a.length&&this.ha("SelectedChanged",a)};g.clearSelected=function(){var a=this.h.clearSelected();a&&a.length&&this.ha("SelectedChanged",a)};
function Xz(a){var b,c,d,e=qd(hb);var f=a.ud;var h=a.bb;var k=h.height;h=h.width;var l=b=!1;switch(a.overflow){case "vertical":b=!0;break;case "horizontal":l=!0;break;case "both":b=l=!0}if("none"!=a.overflow)for(var m=2;0<m;)k=d?k-e:k,a.Uj()||(h=c?h-e:h),f.height>k&&0<f.height&&(c=b),f.width>h&&(d=l),m--;h=a.allowResize||d&&c;k=a.fa+f.height;f=f.width;h&&(d||(k-=e),c||(f-=e));return a.ka={fh:d,gh:c,scrollHeight:k,scrollWidth:f,Xj:h,Uj:a.Uj(),size:e}}
g.Uj=function(){return"auto"==this.width||void 0==this.width};function Yz(a,b,c,d){a.ca[b]=c;(void 0===d||d)&&a.ha("Scroll")}function Zz(a,b,c){c=void 0===c?!0:c;if(!b||b.clickSort){var d=[];a.columns.forEach(function(e){b!=e&&e.clickSort&&e.h&&(e.h=void 0,d.push(e))});b&&(c&&rz(b),d.push(b));a.ha("SortStateChanged",d)}}g.findString=function(a,b,c){c=void 0===c?this.columns[0].name:c;return this.Ne(a,this.findStringFilterComparator,void 0===b?-1:b,c)};
g.findStringExact=function(a,b,c){c=void 0===c?this.columns[0].name:c;return this.Ne(a,"equal",void 0===b?-1:b,c)};g.findStringInAll=function(a,b){return this.Ne(a,this.findStringFilterComparator,void 0===b?-1:b)};g.findStringExactInAll=function(a,b){return this.Ne(a,"equal",void 0===b?-1:b)};
g.Ne=function(a,b,c,d){var e=[],f=0;!d&&this.columns?(f=1,this.columns.forEach(function(h){e.push({name:h.name,comparator:b,filterString:a})})):e.push({name:d,comparator:b,filterString:a});d=new kw(e,f);c+=1;for(f=this.items.length;c<f;c++)if(d.qd(this.items[c].data))return c;return-1};
g.resize=function(a,b){this.mc||(a=30>a?30:a,b=20>b?20:b,a===this.ea&&b===this.width)||(this.ea=a,this.width=b,this.visibleItemCount=Math.ceil(this.ea/this.itemHeight),this.ha("Reszie"),this.ha("ViewPortRectChanged",Xz(this)))};g.resizeWidth=function(a){a=20>a?20:a;a!==this.width&&(this.width=a,this.ha("Reszie"),this.ha("ViewPortRectChanged",Xz(this)))};
g.resizeHeight=function(a){a=30>a?30:a;a!==this.ea&&(this.ea=a,this.visibleItemCount=Math.ceil(this.ea/this.itemHeight),this.ha("Reszie"),this.ha("ViewPortRectChanged",Xz(this)))};function $z(a,b,c){a.sf&&a.sf({index:b,itemObject:a.items[b].data,item:c})}function aA(a,b){return a.selectTemplate?a.selectTemplate({index:b,itemObject:a.items[b],template:a.itemTemplate}):Array.isArray(a.itemTemplate)&&0<a.itemTemplate.length?a.itemTemplate[0]:a.itemTemplate}
function bA(a,b){return a.formatItem?(b={index:b,itemObject:kz(a.items[b])},a.formatItem(b),b.itemObject):a.h.formatItem(kz(a.items[b]))}g.setColumns=function(a){var b=this;a&&(this.i=[],a.forEach(function(c){b.i.push(oz(c))}),this.ll&&0!=this.La&&(this.itemTemplate=void 0),this.ha("ColumnsChanged"))};
g.addColumn=function(a,b){b=void 0===b?this.i.length:b;a&&(1==this.i.length&&this.i[0].ca?(this.i.splice(0,1,oz(a)),this.ll&&0!=this.La&&(this.itemTemplate=void 0)):(0>b&&(b=0),b>this.i.length&&(b=this.i.length),this.i.splice(b,0,oz(a))),this.ha("ColumnsChanged"))};g.deleteColumn=function(a){for(var b,c=0,d=this.i.length;c<d;c++)if(this.i[c].name===a){b=c;break}void 0!==b&&(this.i.splice(b,1),this.ha("ColumnsChanged"))};
g.setOverflow=function(a){a!==this.overflow&&(this.overflow=a,this.ha("ViewPortRectChanged",Xz(this)))};g.setAllowResize=function(a){this.allowResize!=a&&(this.allowResize=a,this.ha("ViewPortRectChanged",Xz(this)),this.ha("AllowResizeChanged"))};function cA(a){a.ha("ViewPortRectChanged",Xz(a))}g.setItemHeight=function(a){this.itemHeight!==a&&(this.itemHeight=a,this.Qd&&this.Qd===this.ea&&(this.visibleItemCount=Math.ceil(this.ea/this.itemHeight)),this.ha("Refresh"))};g.refresh=function(){this.ha("Refresh")};
p.Object.defineProperties(sz.prototype,{height:{configurable:!0,enumerable:!0,set:function(a){this.Qd=this.ea=a},get:function(){return this.ea?this.ea:this.visibleItemCount*this.itemHeight+this.fa+this.la}},rb:{configurable:!0,enumerable:!0,get:function(){return this.ea?this.ea-this.fa-this.la:this.visibleItemCount*this.itemHeight}},Xe:{configurable:!0,enumerable:!0,get:function(){var a={};a.Go=this.rb;a.Wn=this.height;if(this.count>this.visibleItemCount||this.sa)return a;var b=this.count*this.itemHeight;
this.ka.fh&&(b+=qd(hb));a.Go>b&&(a.Go=b,a.Wn=b+this.fa+this.la);return a}},visibleItemCount:{configurable:!0,enumerable:!0,get:function(){return this.cb},set:function(a){this.cb!==a&&(this.cb=a,this.ha("VisibleItemsChanged"))}},count:{configurable:!0,enumerable:!0,get:function(){return this.h.count}},selectionMode:{configurable:!0,enumerable:!0,get:function(){return this.Ga},set:function(a){a!==this.Ga&&(Sy(this.h,a),this.Ga=a,"single"===this.Ga&&(a=this.getSelectedIndices(),1<a.length&&this.setSelectedIndices([a[0]])))}},
focusAsSelected:{configurable:!0,enumerable:!0,get:function(){return this.Xb},set:function(a){this.Xb=a;this.h.focusAsSelected=a}},ud:{configurable:!0,enumerable:!0,get:function(){return this.xc},set:function(a){var b=this.xc;a==b||a&&b&&a.height===b.height&&a.width===b.width||(this.xc=a,this.ha("ViewPortRectChanged",Xz(this)))}},bb:{configurable:!0,enumerable:!0,get:function(){return{height:this.viewport.parentElement.offsetHeight,width:this.viewport.parentElement.offsetWidth}}},mb:{configurable:!0,
enumerable:!0,set:function(a){vz(this,a)}},sa:{configurable:!0,enumerable:!0,set:function(a){this.mc!==a&&((this.mc=a)?this.ha("DataLoading"):this.ha("LoadComplete"))},get:function(){return this.mc}},allowColumnResize:{configurable:!0,enumerable:!0,get:function(){return this.Bb},set:function(a){a!==this.Bb&&(this.Bb=a,this.ha("AllowColumnResizeChanged"))}},visible:{configurable:!0,enumerable:!0,set:function(a){this.Ic!=a&&(this.Ic=a,this.ha("VisibleChanged"))},get:function(){return this.Ic}},showTip:{configurable:!0,
enumerable:!0,set:function(a){this.Cc!==a&&(this.Cc=a)},get:function(){return this.Cc}},enable:{configurable:!0,enumerable:!0,set:function(a){this.Ma!=a&&(this.Ma=a,this.ha("EnbaleStateChanged"))},get:function(){return this.Ma}},items:{configurable:!0,enumerable:!0,get:function(){return this.h.getItems()}},columns:{configurable:!0,enumerable:!0,set:function(a){this.i=a;this.ha("ColumnsLoaded")},get:function(){return this.i}},Wd:{configurable:!0,enumerable:!0,set:function(a){a&&(this.Hb=a,this.vc=
!0)}}});function uz(){this.i=Pz;this.g=new dA;this.s=new dA}uz.prototype.success=function(a){(a.length>=this.h||void 0===this.h)&&this.g.pageNumber++;this.onSuccess(a);a=this.s;var b=this.g;a.sort=b.sort;a.pageNumber=b.pageNumber;a.filter=b.filter};uz.prototype.failed=function(a){this.ca(a);a=this.g;var b=this.s;a.sort=b.sort;a.pageNumber=b.pageNumber;a.filter=b.filter};
p.Object.defineProperties(uz.prototype,{pageNumber:{configurable:!0,enumerable:!0,get:function(){return this.g.pageNumber},set:function(a){this.g.pageNumber=a}},filter:{configurable:!0,enumerable:!0,get:function(){return this.g.filter},set:function(a){this.g.filter=a}},sort:{configurable:!0,enumerable:!0,get:function(){return this.g.sort},set:function(a){this.g.sort=a}},pageSize:{configurable:!0,enumerable:!0,set:function(a){this.h=a},get:function(){return this.h}},lastItem:{configurable:!0,enumerable:!0,
set:function(a){this.u=a},get:function(){return this.u}}});function dA(){this.pageNumber=0}var Pz=0,Oz=1,tz="None",wz="Up",yz="Down";function qz(a){if("*"!==a.slice(-1))return 0;if(1===a.length)return 1;a=parseFloat(a);return"number"===typeof a&&!isNaN(a)&&0<a?a:0}function eA(a){var b={Ao:0,Do:0,Vf:[]};a.forEach(function(c){c.isVisible&&(0<c.s?(b.Do+=c.s,b.Vf.push({ug:c,width:30})):b.Ao+=c.width)});return b}
function fA(a,b,c){var d={zo:[],Vf:[],Eo:0,Fo:0};if(0===b.length)return d;var e=a;b.forEach(function(f){var h=Math.floor(f.ug.s/c*a);30<h?(d.Vf.push({ug:f.ug,width:h}),e-=h):(d.Eo+=f.ug.s,d.Fo+=30,d.zo.push({ug:f.ug,width:30}))});0<e&&0<d.Vf.length&&(d.Vf[d.Vf.length-1].width+=e);return d};function gA(a,b){this.m=new sz;this.m.ga=a;this.g=b||{};this.reset();this.uo(this.g);a=this.m.ga;b=this.m.La;var c,d,e,f,h,k;b=A("div",{style:"position: relative;",tabindex:"-1",class:"gcim gcim__listbox gcim__scroll-bar gcim__user-select--none","data-multiple-column":void 0===b?!1:b},A("div",{class:"column-header"},d=A("div",{class:"column-header__inner"})),A("div",{class:"viewport"},c=A("div",{class:"viewport__inner"})),e=A("div",{class:"scroll scroll--vertical gcim_hidden"},A("div",{style:"width: 1px"})),
f=A("div",{class:"scroll scroll--horizontal gcim_hidden"},A("div",{style:"height: 1px"})),h=A("div",{class:"corner corner--bottom--right gcim_hidden"}),k=A("div",{class:"footer"}));c.parentElement.setAttribute("dragover","false");Wa&&b.setAttribute("browser","firefox");var l=A("div",{tabindex:"-1",class:a.className+" gcim-layout"},b);"div"==a.tagName.toLowerCase()?(a.appendChild(b),ae(a)||a.setAttribute("ctrl-type","GcListBox")):(F(a.getAttribute("style"))||l.setAttribute("style",a.getAttribute("style")),
a.parentNode.insertBefore(l,a),a.style.setProperty("display","none","important"),l.appendChild(a),l.setAttribute("ctrl-type","GcListBox"),a=l);this.m.lc=a;this.m.host=b;this.m.viewport=c;this.m.Bd=d;this.m.ta=f;this.m.Fa=e;this.m.na=h;this.m.Gg=k}
gA.prototype.Hh=function(){zz(this.m);this.m.visibleItemCount=this.g.height?Math.ceil(this.g.height/this.m.itemHeight):this.g.visibleItems?this.g.visibleItems:5;if(!this.m.ga||"select"!==this.m.ga.tagName.toLowerCase()||!this.m.ga.options.length||this.g&&(this.g.items||this.g.load))var a=hA(this.g,this.m.La);else{a=this.m.ga;for(var b=this.g.showCheckBox,c=a.options,d=!1,e=[],f=[],h=0,k=c.length;h<k;h++){0==h&&(d=void 0!==c[h].value);var l={};l.Text=c[h].label||c[h].text;d&&(l.Value=c[h].value);e.push(l)}c=
oz("Text");f.push(c);d?(d=oz("Value"),d.isVisible=!1,d.isValuePath=!0,f.push(d)):c.isValuePath=!0;a={items:e,columns:f,selectedIndex:a.selectedIndex,itemTemplate:iA("Text",b)}}a.itemTemplate&&(this.m.itemTemplate=a.itemTemplate,this.m.ll=a.ll);this.m.columns=a.columns;this.m.setItems(a.items||[]);void 0!==a.selectedIndex&&this.m.setSelectedIndices([a.selectedIndex]);void 0!==this.g.showTip&&(this.m.showTip=this.g.showTip);void 0!==this.g.visible&&(this.m.visible=this.g.visible);void 0!==this.g.enabled&&
(this.m.enable=this.g.enabled)};gA.prototype.reset=function(){this.m.reset()};gA.prototype.getData=function(){return this.m};
gA.prototype.uo=function(a){this.m.width=a.width;this.m.itemHeight=a.itemHeight||30;this.m.itemTemplate=a.itemTemplate;this.m.headerTemplate=a.headerTemplate;this.m.footerTemplate=a.footerTemplate;this.m.showHeader=!!a.headerTemplate||!!a.columns&&!!a.columns.length;this.m.selectionMode=a.selectionMode||"single";this.m.virtualMode=a.virtualMode||this.m.virtualMode;this.m.Wd=a.load;this.m.va=a.showCheckBox;this.m.height=a.height;this.m.sf=a.generatingItem;this.m.selectTemplate=a.selectTemplate;this.m.formatItem=
a.formatItem;this.m.pageSize=a.pageSize;this.m.allowResize=a.allowResize||this.m.allowResize;this.m.checkOnClick=a.checkOnClick||this.m.checkOnClick;this.m.autoHeight=a.autoHeight;void 0!==a.showHeader&&(this.m.showHeader=a.showHeader);this.m.fa=this.m.showHeader?a.colHeaderHeight||30:0;a.columns&&(this.m.La=!0);void 0!==a.multiColumn&&(this.m.La=a.multiColumn);void 0!==a.allowColumnResize&&(this.m.allowColumnResize=a.allowColumnResize);void 0!==a.focusAsSelected&&(this.m.focusAsSelected=a.focusAsSelected);
this.m.overflow=void 0!==a.overflow?a.overflow||"both":this.m.La?"both":"vertical";G(a.dragDrop)||(this.m.dragDrop=a.dragDrop);!G(a.dragSource)&&I(ft,a.dragSource)&&(this.m.dragSource=I(ft,a.dragSource));!G(a.findStringFilterComparator)&&I(bt,a.findStringFilterComparator)&&(this.m.findStringFilterComparator=I(bt,a.findStringFilterComparator))};
function iA(a,b){return'<div class="customize-item">'+(b?'<label class=\'gcim_checkbox\'>\n        <input class="checkbox row-check" type="checkbox" style="display: none" />\n        <span class="checkbox-span"></span>\n    </label>':"")+"{!"+a+"}</div>"}
function hA(a,b){var c,d=[];if(a){var e;if(a.columns)for(var f=0;f<a.columns.length;f++){var h=oz(a.columns[f]);if(h.name===a.valueMemberPath){var k=!0;h.isValuePath=!0}h.name===a.displayMemberPath&&(e=!0);d.push(h)}a.valueMemberPath&&!k&&(k=oz(a.valueMemberPath),k.isVisible=!1,k.isValuePath=!0,d.push(k));a.displayMemberPath&&!e&&(e=oz(a.displayMemberPath),e.isVisible=!0,d.push(e));a.items&&(c=0==a.items.length?[]:"object"!==typeof a.items[0]?jA(a.items):a.items)}0==d.length&&(e=oz("Text"),e.isValuePath=
!0,e.ca=!0,d.push(e));if(!(b||a&&a.itemTemplate)){b=d.filter(function(n){return n.isVisible});var l=iA(b[0].name,a&&a.showCheckBox);var m=!0}return{items:c,columns:d,itemTemplate:l,ll:m}}function jA(a){var b=[];a.forEach(function(c){var d={};d.Text=c;b.push(d)});return b};function kA(a,b){b.maxWidth&&(a=Math.min(a,b.maxWidth));b.minWidth&&(a=Math.max(a,b.minWidth));return Math.max(30,a)}function lA(a,b,c){c?a.setAttribute(b,"true"):a.removeAttribute(b)}function mA(a){function b(d){d=parseFloat(d);return isNaN(d)?0:d}if(!a)return 0;a=window.getComputedStyle(a);var c=0;a.paddingLeft&&(c+=b(a.paddingLeft));a.paddingRight&&(c+=b(a.paddingRight));return Math.max(Math.ceil(c),0)}
function nA(a){this.h={x:0,y:0};this.i=null;this.m=a;this.ua=this.m.host;this.ka=new oA(this.ua,this.m);this.g=new pA(this.m);new qA(this.ua,this.m);this.u=new rA(this.m);this.s=new sA(this.m);tA(this);this.zb()}g=nA.prototype;g.dispose=function(){this.g.dispose();this.u.dispose();this.Nb()};
g.zb=function(){var a=this;J(J(J(J(J(J(J(this.m,"ColumnsLoaded",function(){tA(a)}),"Reszie",function(){tA(a)}),"Refresh",function(){a.refresh();tA(a)}),"ItemsLoaded",function(){a.m.autoHeight&&a.autoHeight()}),"VisibleChanged",function(){a.m.visible?(jd(a.ua,"gcim_hidden"),a.layout()):E(a.ua,"gcim_hidden")}),"EnbaleStateChanged",function(){var d;a.m.enable?(d=a.ua.querySelector(".gcim__list_overlay"))&&a.ua.removeChild(d):(d=A("div",{class:"gcim__list_overlay list_overlay"}),a.ua.appendChild(d))}),
"ViewPortRectChanged",function(d){if(!d.gh){var e=a.u,f=e.m.ca.scrollTop||0;0!==f&&uA(e,-f)}d.fh||(d=a.u,e=d.m.ca.scrollLeft||0,0!==e&&vA(d,-e))});var b=["ItemsChanged","CheckedChanged","FocusedChanged","SelectedChanged","ItemsLoaded"],c;for(c in b)J(this.m,b[c],function(){a.s.refresh()});this.ga=function(){setTimeout(function(){cA(a.m)})}.bind(this);window.addEventListener("resize",this.ga);this.ca=function(d){a.h.x=d.clientX;a.h.y=d.clientY}.bind(this);document.addEventListener("mousemove",this.ca);
this.fa=function(d){wA(a,d)}.bind(this);this.ua.addEventListener("mouseover",this.fa);this.ea=function(){null!==a.i&&(a.i.close(),a.i=null)}.bind(this);this.ua.addEventListener("mouseout",this.ea)};g.Nb=function(){window.removeEventListener("resize",this.ga);document.removeEventListener("mousemove",this.ca);this.ua.removeEventListener("mouseover",this.fa);this.ua.removeEventListener("mouseout",this.ea)};
function wA(a,b){if(b.target instanceof HTMLElement&&!db&&(b=xA(a,b.target),null!=b)){var c=yA(b);if(zA(a,b)&&b.scrollWidth>b.offsetWidth&&!F(c)){var d=new Jk(a.ua,c,{delayTime:300,eh:3E3,className:"gcim__listbox_tip listbox_tip"});d.u=function(){Mk(d,{x:a.h.x,y:a.h.y})};a.i=d}}}function xA(a,b){return b===a.ua?null:AA(b)?b:xA(a,b.parentElement)}function yA(a){var b="";AA(a)&&(b=a.querySelector(".content").textContent);return b}
function AA(a){a:{var b=a.className.split(" ");for(var c=0;c<b.length;c++)if("list-cell"==b[c]){b=!0;break a}b=!1}return b&&null!==a.querySelector(".content")?!0:!1}function zA(a,b){return AA(b)&&(b=Vz(a.m,b.dataset.col),void 0!==b.showTip)?b.showTip:a.m.showTip}function tA(a){a.m.width?a.ua.style.width=a.m.width+"px":db&&a.ua.setAttribute("safari","true");a.ua.style.height=a.m.height+"px";a.ua.setAttribute("height",a.m.height.toString())}
g.layout=function(a){a=void 0===a?!0:a;cA(this.m);var b=this.u;Yz(b.m,"scrollTop",b.g.scrollTop,!1);Yz(b.m,"scrollLeft",b.i.scrollLeft,!1);b=this.s;b.m.footerTemplate||(b.m.la=0);b.m.la=b.ua.offsetHeight;tA(this);BA(this.g.g);this.m.autoHeight&&this.autoHeight();a&&(a=this.m.h.i,0>a||a>this.m.count-1||CA(this.g.g,a))};g.refresh=function(){this.ka.refresh();this.g.refresh();this.s.refresh()};g.focus=function(){this.ua.focus()};
g.autoHeight=function(){var a=this.m.Xe;this.g.setHeight(a.Go);this.ua.style.height=a.Wn+"px";this.ua.setAttribute("height",a.Wn.toString());cA(this.m)};g.getContainer=function(){return this.ua};
function DA(a){function b(h){return(h=h.querySelector(".gcim_checkbox"))?pg(h):0}var c=a.m.viewport.querySelector('.list-item:not([data-index="-1"]');if(!c)return 0;var d=a.m.va?b(c):0,e=function(h){return h.ka.gh?h.ka.size:0}(a.m),f=function(h){var k=h.querySelector(".customize-item");h=mA(h);k=k?mA(k):0;return h+k}(c);a=function(h,k,l){if(0===h.columns.length)return 0;var m=h.columns[0].name,n=new lf;n.h=k;return(0<l?h.items.slice(0,l):h.items).map(function(q,u){q=bA(h,u)[m];return G(q)?0:of(n,
q)}).reduce(function(q,u){return u>q?u:q},0)}(a.m,c,500);return d+e+f+a}p.Object.defineProperties(nA.prototype,{la:{configurable:!0,enumerable:!0,set:function(a){this.s.h=a}}});
function oA(a,b){var c=this;this.na=this.gr.bind(this);this.la=this.fr.bind(this);this.ka=this.Xi.bind(this);this.ga=this.us.bind(this);this.Fa=function(d){d=c.h.zl+d.pageX-c.h.hs;30>d+c.h.tn.width-c.h.zl&&(d=c.h.zl-c.h.tn.width+30);c.h.left=d;EA(c)};this.va=function(){var d=c.h.tn;c.u=!0;c.ta=!1;var e=d.width,f=c.h.left-c.h.zl,h=e+f;Sz(c.m,d,h,2);document.removeEventListener("mousemove",c.Fa);document.removeEventListener("mouseup",c.va);0!==f&&c.m.ha("ColumnResizeEnd",{oldWidth:e,newWidth:h})};this.m=
b;this.ua=a;this.g=this.m.Bd;this.i={};this.fa=0;a=this.ua;b=a.appendChild;this.s||(this.s=A("div",{class:"resize-line gcim_hidden"}));b.call(a,this.s);this.g.setAttribute("show",this.m.showHeader?"true":"false");this.g.style.height=this.m.fa+"px";this.g.style.lineHeight=this.m.fa+"px";this.g.parentElement.style.height=this.m.fa+"px";this.zb();this.sa&&(FA(this),this.g.addEventListener("click",this.er.bind(this)))}g=oA.prototype;
g.zb=function(){var a=this;J(J(J(J(J(J(J(this.m,"ColumnsLoaded",function(){GA(a);HA(a)}),"ColumnWidthChanged",function(b){IA(a,b)}),"Scroll",function(){1===a.m.ca.changedType&&(a.g.style.transform="translate("+-a.m.ca.scrollLeft+"px, 0px)",a.g.style.msTransform="translate("+-a.m.ca.scrollLeft+"px, 0px)",a.fa=a.m.ca.scrollLeft)}),"SortStateChanged",function(b){JA(a,b)}),"ColumnsChanged",function(){GA(a);HA(a)}),"AllowColumnResizeChanged",function(){FA(a)}),"ColumnListWidthChanged",function(b){return KA(a,
b)})};function FA(a){a.g.removeEventListener("mousemove",a.na);a.g.removeEventListener("mousedown",a.la);a.g.removeEventListener("mouseleave",a.ka);a.g.removeEventListener("dblclick",a.ga);a.h=void 0;a.m.allowColumnResize&&a.sa&&(a.g.addEventListener("mousemove",a.na),a.g.addEventListener("mousedown",a.la),a.g.addEventListener("mouseleave",a.ka),a.g.addEventListener("dblclick",a.ga),a.h={})}function GA(a){a.m.showHeader&&(a.m.headerTemplate?a.g.innerHTML=a.m.headerTemplate:LA(a))}
function LA(a){a.g.innerHTML="";var b=document.createDocumentFragment();a.m.columns.forEach(function(c){if(c.isVisible){var d=b.appendChild;var e=c.headerAlignment.split("-");e=A("div",{class:"list-cell grid-line--bottom--right text-content header-content text-truncate-style",style:"width:"+c.width+"px;line-height:"+a.m.fa+"px","data-guid":c.i,"data-col":c.name,"data-align":e[1]},A("span",{class:"content",style:"line-height:normal","data-align":e[0]},c.label));d.call(b,e);a.i[c.i]=c}});a.g.appendChild(b)}
function JA(a,b){b&&b.forEach(function(c){var d=a.g.querySelector('[data-guid="'+c.i+'"]');if(d){var e=d.querySelector(".column-header__sort-indicator");!c.h&&e?d.removeChild(e):(e||(e=A("div",{class:"column-header__sort-indicator",style:"line-height:initial"},A("div",null)),e.style.verticalAlign=c.headerAlignment.split("-")[0],d.insertBefore(e,d.firstElementChild)),"asc"==c.h?e.setAttribute("sort-state","asc"):e.setAttribute("sort-state","desc"))}})}
g.gr=function(a){var b=MA(a.target);b&&(4>this.i[b.getAttribute("data-guid")].width-a.offsetX?this.u=!0:this.ea||(this.u=!1))};g.Xi=function(){this.ea||(this.u=!1)};g.fr=function(a){if(this.ca){var b=MA(a.target);this.h.tn=this.i[b.getAttribute("data-guid")];for(var c=0;b;)c+=this.i[b.getAttribute("data-guid")].width,b=b.previousElementSibling;this.h.hs=a.pageX;this.h.left=c;this.h.zl=c;EA(this);this.ta=!0;document.addEventListener("mousemove",this.Fa);document.addEventListener("mouseup",this.va)}};
g.us=function(a){if(this.ca&&(a=MA(a.target))){a=this.i[a.getAttribute("data-guid")];var b=a.g;a.g=16;this.m.ha("ColumnsChanged");a.g=b}};g.er=function(a){if(!this.ca&&(a=MA(a.target))){a=this.i[a.getAttribute("data-guid")];var b=this.m;Zz(b,a);a.h?b.sort({name:a.name,isAsc:"asc"===a.h?!0:!1}):b.sort(null)}};function MA(a){if(a){for(;!a.getAttribute("data-col");)if(a=a.parentElement,!a)return;return a}}function EA(a){a.s.style.left=a.h.left-a.fa+"px"}
function IA(a,b){a.g.querySelector("[data-guid='"+b.i+"']").style.width=b.width+"px"}function KA(a,b){b.forEach(function(c){IA(a,c)})}g.refresh=function(){HA(this);FA(this);GA(this)};function HA(a){a.m.columns.forEach(function(b){if(16==(b.g&16)||b.u&&2!=(b.g&2)){var c=8==(b.g&8)?b.width:30,d=new lf,e=a.g.querySelector("[data-guid='"+b.i+"']");e&&(d.h=e,d=of(d,b.label)+mA(e),d>c&&(d=kA(d,b),Sz(a.m,b,d,8)))}})}
p.Object.defineProperties(oA.prototype,{sa:{configurable:!0,enumerable:!0,get:function(){return!this.m.showHeader||this.m.headerTemplate?!1:!0}},ta:{configurable:!0,enumerable:!0,set:function(a){(this.ea=a)?(this.ua.style.cursor="col-resize",this.g.style.cursor="col-resize",jd(this.s,"gcim_hidden")):(this.ua.style.removeProperty("cursor"),this.g.style.removeProperty("cursor"),E(this.s,"gcim_hidden"))}},u:{configurable:!0,enumerable:!0,set:function(a){(this.ca=a)?(this.ua.style.cursor="col-resize",
this.g.style.cursor="col-resize"):(this.ua.style.removeProperty("cursor"),this.g.style.removeProperty("cursor"))}}});
function pA(a){var b=this;this.i=function(c){var d=b.g;if(3!=c.which){var e=NA(d,c.target);e.ah||(d.ea=d.h.parentElement.getBoundingClientRect(),d.la=!1,!d.m.readonly&&0===c.button&&d.m.dragDrop&&e.item?OA(d,e.index)&&(db&&c.preventDefault(),document.addEventListener("mousemove",d.u),d.i.reset(),d.i.h=c):(document.addEventListener("mousemove",d.La),d.la=!!e.item),d.m.dragDrop||d.m.Xa||PA(d,c))}};this.fa=function(c){var d=b.g;if(d.m.dragDrop||d.m.Xa)d.ka||PA(d,c),d.ka=!1;if(3!=c.which){var e=NA(d,
c.target);0>e.index||(e.ah?(Mz(d.m,e.index),c.preventDefault()):(c=d.m,d=e.index,e=e.item,c.checkOnClick&&c.va&&Mz(c,d),c.ha("ItemClick",{index:d,item:e,itemObject:c.items[d].data})))}};this.ka=function(c){b.g.Xi(c)};this.s=function(c){QA(b.g,c)};this.ga=function(c){b.g.m.dragDrop&&c.preventDefault()};this.ea=function(c){var d=b.g;if(d.m.dragDrop&&!d.m.readonly){var e=NA(d,c.target);!e.ah&&e.item&&OA(d,e.index)&&(d.i.reset(),d.i.h=c,d.sa=setTimeout(d.Ma,500),document.addEventListener("touchmove",
d.va,{passive:!1}),document.addEventListener("touchend",d.ta))}};this.ca=function(c){var d=b.g;if(d.m.enable&&!d.m.readonly&&RA){var e=c.touches[0].clientX,f=c.touches[0].clientY,h=d.h.parentElement.getBoundingClientRect();e>=h.left&&e<=h.right&&f>=h.top&&f<=h.bottom?QA(d,c):SA(d)}};this.u=function(){var c=b.g;E(TA(c),"gcim_hidden");c.m.mb=tz};this.na=function(){var c=b.g;c.m.mb=tz;c.la=!1;fz(c.m.h);UA(c);VA(c)};this.la=function(c){b.g.onKeyDown(c)};this.m=a;this.h=this.m.viewport;WA(this);XA(this)}
g=pA.prototype;g.dispose=function(){this.Nb();this.g.dispose()};
function XA(a){a.h.parentElement.addEventListener("mousedown",a.i);a.h.parentElement.addEventListener("click",a.fa);a.h.parentElement.addEventListener("mouseleave",a.ka);a.h.parentElement.addEventListener("mousemove",a.s);a.h.parentElement.addEventListener("dragstart",a.ga);kb()&&(a.h.parentElement.addEventListener("touchstart",a.ea,{passive:!1}),document.addEventListener("touchmove",a.ca),document.addEventListener("touchend",a.u));document.addEventListener("mouseup",a.na);document.addEventListener("keydown",
a.la);J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(a.m,"ColumnWidthChanged",function(b){YA(a,b);BA(a.g)}),"Scroll",function(){ZA(a.g);var b=a.m.ca.scrollLeft||0,c=a.m.ca.scrollTop||0,d=a.m.ca.changedType;a.h.style.transform="translate("+-b+"px, "+-c+"px)";a.h.style.msTransform="translate("+-b+"px, "+-c+"px)";0===d&&a.g.Ro(c);a.m.ca.approachBottom&&a.m.load(Oz);b=a.g;TA(b).classList.contains("gcim_hidden")||(c=$A(b.Ta),d=aB(c.x,c.y),!(d=NA(b,d))||0>d.index||(bB=cB(b,d.item,c.y),dB(b,d.item,c.y)))}),"Reszie",function(){a.setHeight(a.m.rb)}),
"ColumnsLoaded",function(){a.resizeWidth()}),"VisibleItemsChanged",function(){a.setHeight(a.m.rb)}),"ColumnsChanged",function(){a.resizeWidth();a.g.di();eB(a)}),"VirtualModeChanged",function(){a.g&&a.g.dispose();WA(a);a.m.virtualMode&&(a.g.Ga=a.m.visibleItemCount+2);a.g.di()}),"FocusedChanged",function(b){fB(a.g,b)}),"SelectedChanged",function(b){gB(a.g,b)}),"CheckedChanged",function(b){hB(a.g,b)}),"ItemsLoaded",function(){a.g.di()}),"ItemsAdded",function(b){a.g.rq(b)}),"ItemsInsert",function(){a.g.sq()}),
"Refresh",function(){a.setHeight(a.m.rb)}),"ItemsChanged",function(){return eB(a)}),"ColumnListWidthChanged",function(b){b.forEach(function(c){YA(a,c)});BA(a.g)})}
g.Nb=function(){this.h.parentElement.removeEventListener("mousedown",this.i);this.h.parentElement.removeEventListener("click",this.fa);this.h.parentElement.removeEventListener("mouseleave",this.ka);this.h.parentElement.removeEventListener("mousemove",this.s);this.h.parentElement.removeEventListener("dragstart",this.ga);kb()&&(this.h.parentElement.removeEventListener("touchstart",this.ea),document.removeEventListener("touchmove",this.ca),document.removeEventListener("touchend",this.u));document.removeEventListener("mouseup",
this.na);document.removeEventListener("keydown",this.la)};function WA(a){a.m.virtualMode?a.g=new iB(a.h,a.m):a.g=new jB(a.h,a.m)}g.setHeight=function(a){this.h.parentElement.style.height=a+"px"};function YA(a,b){for(var c=a.h.querySelectorAll("[data-guid='"+b.i+"']"),d=0;d<c.length;d++)c[d].style.width=b.width+"px";a.resizeWidth()}g.refresh=function(){eB(this);this.g.di()};
g.resizeWidth=function(){if(this.m.La){var a=0;this.m.itemTemplate||this.m.columns.forEach(function(b){b.isVisible&&(a+=b.width)});a&&(this.h.style.width=a+"px")}};
function eB(a){function b(c,d){if(16==(c.g&16)||c.u&&2!=(c.g&2)){var e=8==(c.g&8)?c.width:30,f=new lf,h=a.h.querySelector("[data-guid='"+c.i+"']");if(h){var k=0;if(a.m.va&&0==d){var l=h.querySelector('[data-role="checkbox"]');l&&(k=pg(l))}f.h=h;var m=mA(h);a.m.items.forEach(function(n,q){n=bA(a.m,q)[c.name];void 0!==n&&null!==n&&(n=of(f,n)+k+m,n>e&&(e=n))});e=kA(e,a.m.columns[d]);Sz(a.m,c,e,8)}}}a.m.columns.forEach(function(c,d){return b(c,d)})}
function sA(a){this.m=a;this.ua=a.Gg;this.g=function(b){return b};kB(this)}function kB(a){a.m.footerTemplate&&(E(a.ua,"footer_style"),a.ua.innerHTML=a.g(a.m.footerTemplate),a.m.la=a.ua.offsetHeight)}sA.prototype.refresh=function(){kB(this)};p.Object.defineProperties(sA.prototype,{h:{configurable:!0,enumerable:!0,set:function(a){this.g=a;this.refresh()}}});
function rA(a){var b=this;this.ca=function(c){var d=0,e=0;window.TouchEvent&&c instanceof TouchEvent&&b.s instanceof TouchEvent?(d=c.changedTouches[0].pageY-b.s.changedTouches[0].pageY,e=c.changedTouches[0].pageX-b.s.changedTouches[0].pageX):c instanceof MouseEvent&&b.s instanceof MouseEvent&&(d=c.pageY-b.s.pageY,e=c.pageX-b.s.pageX);lB(b,0,b.g.scrollTop);var f=b.m,h=b.ta,k=b.sa;if(isNaN(h)||null===f.host.getAttribute("height"))h=f.host.offsetHeight;isNaN(k)&&(k=f.host.offsetWidth);f.resize(h+d,k+
e);c.cancelable&&c.preventDefault()};this.ea=function(c){document.removeEventListener("mousemove",b.ga);document.removeEventListener("mouseup",b.ea);document.removeEventListener("touchmove",b.ca);document.removeEventListener("touchend",b.ea);if(b.na!=b.m.host.offsetWidth||b.ka!=b.m.host.offsetHeight)b.m.ha("ResizeEnd",{oldSize:{width:b.na,height:b.ka},newSize:{width:b.m.host.offsetWidth,height:b.m.host.offsetHeight}}),mB(b);b.ca(c)};this.m=a;this.i=a.ta;this.g=a.Fa;this.h=a.na;this.zb();nB(this)}
g=rA.prototype;g.dispose=function(){this.Nb()};function nB(a){var b=qd(!1);Va&&(a.g.style.width=b+"px",a.i.style.height=b+"px");a.h.style.height=b+"px";a.h.style.width=b+"px"}
g.layout=function(a){this.i.firstElementChild.style.width=a.scrollWidth+"px";this.i.style.minHeight=a.size+"px";this.g.firstElementChild.style.height=a.scrollHeight+"px";this.g.style.minWidth=a.size+"px";this.updatePosition(a);nB(this);var b=this.m;if("number"===typeof b.width||!isNaN(Number(b.width))){b=this.m;var c=this.m.columns;var d=this.m.bb.width;a.gh&&(d-=qd(mb()));var e=eA(c);a=e.Vf;c=e.Do;d-=e.Ao;if(!(0>=d)){for(e=[];0<a.length;){var f=fA(d,a,c);a=f.Vf;if(0==f.zo.length)break;else e=e.concat(f.zo),
d-=f.Fo,c-=f.Eo}a=e.concat(a)}Tz(b,a)}};
g.updatePosition=function(a){var b=this.g.scrollTop+this.g.offsetHeight>a.scrollHeight-10,c=qd(hb);a.Xj?jd(this.h,"gcim_hidden"):E(this.h,"gcim_hidden");a.fh?(this.i.style.right=a.Xj?c+"px":"0",this.i.style.bottom=this.m.la+"px",jd(this.i,"gcim_hidden"),hb||this.h.setAttribute("showhorizontalscrollbar","true")):(E(this.i,"gcim_hidden"),this.h.removeAttribute("showhorizontalscrollbar"));a.gh?(db&&(this.g.style.overflowX="hidden",this.g.style.overflowY="scroll"),this.g.style.bottom=a.Xj?c+this.m.la+
"px":this.m.la+"px",jd(this.g,"gcim_hidden"),hb||this.h.setAttribute("showverticalscrollbar","true")):(E(this.g,"gcim_hidden"),this.h.removeAttribute("showverticalscrollbar"));a.Xj&&(this.h.style.bottom=this.m.la+"px");hb||(a.Uj&&a.gh?this.m.viewport.parentElement.style.marginRight=c+"px":this.m.viewport.parentElement.style.removeProperty("margin-right"));Yz(this.m,"approachBottom",b)};
g.zb=function(){var a=this;this.u=this.qs.bind(this);oB(this);this.fa=function(){lB(a,1,a.i.scrollLeft)};this.i.addEventListener("scroll",this.fa);this.la=function(){lB(a,0,a.g.scrollTop)};this.g.addEventListener("scroll",this.la);J(this.m,"HorizontalScroll",function(b){vA(a,b)});J(J(J(J(this.m,"MouseWheel",function(b){uA(a,b)}),"ViewPortRectChanged",function(b){a.layout(b)}),"Scroll",function(){var b=a.m.ca.scrollTop;b!=a.g.scrollTop&&(a.g.scrollTop=b)}),"AllowResizeChanged",function(){oB(a)})};
g.Nb=function(){this.h.removeEventListener("mousedown",this.u);this.h.removeEventListener("touchstart",this.u);this.i.removeEventListener("scroll",this.fa);this.g.removeEventListener("scroll",this.la)};function oB(a){a.m.allowResize?(a.h.addEventListener("mousedown",a.u),a.h.addEventListener("touchstart",a.u,{passive:!1}),a.h.setAttribute("resize","true")):(a.h.removeEventListener("mousedown",a.u),a.h.removeEventListener("touchstart",a.u),a.h.setAttribute("resize","false"))}
function uA(a,b){b&&(a.g.scrollTop+=b,lB(a,0,a.g.scrollTop))}function vA(a,b){b&&(a.i.scrollLeft+=b,lB(a,1,a.i.scrollLeft))}function lB(a,b,c){1==b?(Yz(a.m,"scrollLeft",c,!1),Yz(a.m,"approachBottom",!1,!1)):(Yz(a.m,"scrollTop",c,!1),Yz(a.m,"approachBottom",a.g.scrollTop+a.g.offsetHeight>a.g.scrollHeight-10,!1));Yz(a.m,"changedType",b)}
g.qs=function(a){this.s=a;this.ga=Fd(this.ca);document.addEventListener("mousemove",this.ga);document.addEventListener("mouseup",this.ea);document.addEventListener("touchmove",this.ca,{passive:!1});document.addEventListener("touchend",this.ea);mB(this);a=this.m.host.getAttribute("height");a=Number(a);var b=Number(this.m.width);b||(b=this.m.host.offsetWidth);this.ta=a;this.sa=b};function mB(a){a.na=a.m.host.offsetWidth;a.ka=a.m.host.offsetHeight}
function qA(a,b){var c=this;this.ua=a;this.g=wy();this.ua.appendChild(this.g);J(J(b,"DataLoading",function(){c.show()}),"LoadComplete",function(){c.close()})}qA.prototype.show=function(){jd(this.g,"gcim_hidden")};qA.prototype.close=function(){E(this.g,"gcim_hidden")};var RA=null,pB=null,bB=-1,qB=[],rB=[],sB=[];function tB(){this.g=this.h=null}tB.prototype.reset=function(){this.h=null;this.g&&document.body.removeChild(this.g);this.g=null};
function uB(a,b){var c=this;this.ka=!1;this.i=new tB;this.Ma=function(){c.m.Ta=!0;c.u(c.i.h)};this.va=function(d){clearTimeout(c.sa);c.m.Ta&&(d.cancelable&&d.preventDefault(),c.u(d))};this.ta=function(){clearTimeout(c.sa);c.m.Ta=!1;document.removeEventListener("touchmove",c.va);document.removeEventListener("touchend",c.ta);VA(c,!0,!1)};this.u=function(d){var e=vB(d),f=e.x;e=e.y;if(!c.i.g){if(d instanceof MouseEvent){var h=vB(c.i.h);f=h.x-f;e=h.y-e;if(4>Math.sqrt(f*f+e*e))return}wB(c);f=c.i;e=document.createElement("div");
E(e,"listbox_drag-drop-container");E(e,"gcim__listbox_drag-drop-container");h=document.createElement("select");e.appendChild(h);for(var k=[],l=Math.min(5,qB.length),m=0;m<l;m++)k.push(c.m.items[qB[m]].data);m=c.m.itemTemplate;xB(c,h,{items:k,columns:m?void 0:c.m.i,itemTemplate:m,showHeader:!1,visibleItems:l,itemHeight:c.m.itemHeight});f.g=e;document.body.appendChild(c.i.g)}d=$A(d);f=c.i.g;e=d.y;f.style.left=d.x+10+"px";f.style.top=e+10+"px"};this.ca=this.ga=null;this.La=function(d){c.m.mb=d.clientY<
c.ea.top?wz:d.clientY>c.ea.bottom?yz:tz;c.na=d;ZA(c)};this.h=a;this.m=b;this.m.host.appendChild(TA(this))}uB.prototype.dispose=function(){UA(this);VA(this,!1)};function OA(a,b){return a.m.dragDrop&&("selected"===a.m.dragSource?a.m.items[b].g:a.m.items[b].h)}function PA(a,b){if(3!=b.which){var c=NA(a,b.target);!c.ah&&c.item&&(Nz(a.m,c.index,!1,!1),Wz(a.m,c.index,b.ctrlKey||b.metaKey,b.shiftKey,!1))}}
function NA(a,b){if(!b)return{ah:!1,index:-1,item:null};var c=b;a=a.ah(b);for(b=-1;!c.getAttribute("data-index");)if(c=c.parentElement,!c)return{ah:a,index:b,item:c};b=parseInt(c.getAttribute("data-index"));return{ah:a,index:b,item:c}}uB.prototype.ah=function(a){if(!a)return!1;for(;0>a.className.indexOf("gcim_checkbox");)if(a=a.parentElement,!a)return!1;return!0};function UA(a){document.removeEventListener("mousemove",a.La);document.removeEventListener("mousemove",a.u)}
uB.prototype.onKeyDown=function(a){"Escape"===a.key&&(document.removeEventListener("mousemove",this.u),VA(this,!1))};
function VA(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;a.m.viewport.parentElement.setAttribute("dragover","false");E(TA(a),"gcim_hidden");a.i.reset();if(RA&&be(a.m.ga)===RA){if(b){b=c;c=pB;var d=RA,e=bB,f=qB;if(!(!c||!d||G(e)||!f||0>e||e>c.items.length||0>=f.length)){c=pB;d=RA;e=bB;f=qB;var h={source:d,target:c,insertIndex:e,dataIndexes:f,cancel:!1};yB(c,d,f,e)?(c.getListDate().ha("Dropping",h),h.cancel||(zB(),c.getListDate().ha("Dropped",h))):b&&(a.ka=!0)}}pB=RA=null;bB=-1;qB=[];rB=[];sB=[]}}
function yB(a,b,c,d){return a===b&&(a=Array.from(c),a.sort(function(e,f){return e-f}),b=a[0],c=a[a.length-1],AB(a)&&d>=b&&d<=c+1)?!1:!0}function AB(a){if(!a)return!1;for(var b=1;b<a.length;b++)if(1!==a[b]-a[b-1])return!1;return!0}
function zB(){var a=pB,b=RA,c=bB,d=qB,e=[],f=b.items;d.forEach(function(m){return e.push(f[m])});var h=a!==b;BB(a,e,c,h);var k=a.getCheckedIndices()||[],l=a.getSelectedIndices()||[];sB.forEach(function(m,n){m&&k.push(c+n)});rB.forEach(function(m,n){m&&l.push(c+n)});CB(a,k,h);a===b&&"single"===a.selectionMode&&2===l.length&&(l=[l[1]]);DB(a,l,h);a===b&&(d=d.map(function(m){return m>=c?m+d.length:m}));EB(b,d,h);h||FB(a)}
function wB(a){RA=be(a.m.ga);qB=GB(a);var b=a.m.getCheckedIndices(),c=a.m.getSelectedIndices();sB=qB.map(function(d){return b.includes(d)});rB=qB.map(function(d){return c.includes(d)})}function xB(a,b,c){var d=new gA(b,c);b=d.getData();(new nA(b)).la=function(e){return Bd(a,e)};d.Hh();c.columns&&(c=c.columns.map(function(e){return{name:e.name,autofit:!0,maxWidth:200}}),Uz(b,c)&&b.refresh())}function GB(a){return"selected"===a.m.dragSource?a.m.getSelectedIndices():a.m.getCheckedIndices()}
uB.prototype.Xi=function(){SA(this)};function SA(a){a.m.viewport.parentElement.setAttribute("dragover","false");pB===be(a.m.ga)&&(pB=null,bB=-1);a.m.mb=tz;E(TA(a),"gcim_hidden")}function TA(a){a.ga||(a.ga=A("div",{class:"drag-drop-line gcim_hidden"}));return a.ga}
function QA(a,b){if(a.m.enable&&!a.m.readonly&&RA&&a.m.dragDrop){a.m.viewport.parentElement.setAttribute("dragover","true");pB=be(a.m.ga);var c=$A(b),d=aB(c.x,c.y);bB=cB(a,d,c.y);var e=c.y;null===a.ca&&(a.ca=e);var f=e-a.ca;a.ca=e;var h=tz;0>f?h=wz:0<f&&(h=yz);f=a.h.parentElement.getBoundingClientRect();var k=a.m.ta.getBoundingClientRect(),l=a.m.itemHeight,m=l/4;e>f.top&&e<f.bottom&&(e<f.top+l&&h===wz?xz(a.m,-m):e>f.bottom-k.height-l&&h===yz&&xz(a.m,m));dB(a,d,c.y);a.Ta=b}}
function cB(a,b,c){b=NA(a,b);if(0>b.index)return a.m.items.length;a=b.item.getBoundingClientRect();return c>a.top+a.height/2?b.index+1:b.index}
function dB(a,b,c){var d=TA(a),e=NA(a,b);if(0>e.index)E(d,"gcim_hidden");else{b=a.m.host.getBoundingClientRect();var f=a.h.parentElement.getBoundingClientRect(),h=a.m.Fa.getBoundingClientRect(),k=a.m.ta.getBoundingClientRect();e=e.item.getBoundingClientRect();c=c>e.top+e.height/2?e.bottom-f.top:e.top-f.top;c=Math.max(c,0);c=Math.min(c,f.height-k.height-3);b=Math.min(e.width,b.width-h.width);d.style.top=c+a.m.fa+"px";d.style.width=b+"px";jd(d,"gcim_hidden")}}
function ZA(a){if("multipleExt"===a.m.selectionMode&&a.la){var b=Math.floor((a.na.clientY-a.ea.top+(a.m.ca.scrollTop||0))/a.m.itemHeight);0>b&&(b=0);b>a.m.items.length-1&&(b=a.m.count-1);Wz(a.m,b,a.na.ctrlKey,a.na.shiftKey,!0)}}function gB(a,b){b.forEach(function(c){var d=a.h.querySelector("[data-index='"+c.index+"']");d&&lA(d,"selected",c.value)})}
function fB(a,b){var c=a.m.items;b.Ap.forEach(function(d){if(!(0>d.index||d.index>=c.length)){b.scrollIntoView&&d.value&&CA(a,d.index);var e=a.h.querySelector("[data-index='"+d.index+"']");e&&lA(e,"focused",d.value)}})}function hB(a,b){b.forEach(function(c){var d=a.h.querySelector("[data-index='"+c.index+"']");d&&(lA(d,"checked",c.value),(d=d.querySelector(".row-check"))&&d.checked!==c.value&&(d.checked=c.value))})}
function CA(a,b){0>b&&(b=0);b*=a.m.itemHeight;var c=a.m.ca.scrollTop||0,d=a.m.bb.height+c-a.m.la;a.m.ka.fh&&(d-=qd(hb));b<c?xz(a.m,b-c):b+a.m.itemHeight>d&&xz(a.m,b+a.m.itemHeight-d)}function BA(a){a.m.ud={width:a.h.offsetWidth,height:a.h.offsetHeight}}function jB(a,b){uB.call(this,a,b)}t(jB,uB);g=jB.prototype;g.di=function(){this.clear();HB(this,0);BA(this)};g.rq=function(a){HB(this,a);BA(this)};g.sq=function(){this.di()};g.clear=function(){this.h.innerHTML="";this.h.style.removeProperty("height")};
g.Ro=function(){};function HB(a,b){for(var c=document.createDocumentFragment(),d=a.m.items,e=d.length;b<e;b++){var f=d[b];var h=bA(a.m,b);if(void 0!==a.m.itemTemplate){var k=aA(a.m,b);h=xy(b,a.m.itemHeight)(zy(h,k))}else{k=a.m.columns;var l=a.m.itemHeight,m=a.m.va;h=xy(b,l)(yy(h,k,m,l))}$z(a.m,b,h);a.m.va&&(k=h.querySelector(".row-check"))&&(k.checked=f.h);h.setAttribute("selected",f.g?"true":"false");lA(h,"checked",f.h);c.appendChild(h)}a.h.appendChild(c)}
function vB(a){if(!a)return null;if(a instanceof MouseEvent){var b=a.pageX;var c=a.pageY}else a instanceof TouchEvent&&(b=a.touches[0].pageX,c=a.touches[0].pageY);return{x:b,y:c}}function $A(a){if(!a)return null;if(a instanceof MouseEvent){var b=a.clientX;var c=a.clientY}else a instanceof TouchEvent&&(b=a.touches[0].clientX,c=a.touches[0].clientY);return{x:b,y:c}}
function aB(a,b){a=document.elementsFromPoint(a,b);a=fa(a);for(b=a.next();!b.done;b=a.next())if(b=b.value,"none"!==window.getComputedStyle(b).pointerEvents.toLocaleLowerCase())return b;return null}function iB(a,b){uB.call(this,a,b);var c=this;this.fa=0;this.Fa=function(){c.Ga=b.visibleItemCount+2};J(b,"VisibleItemsChanged",this.Fa)}t(iB,uB);g=iB.prototype;g.dispose=function(){uB.prototype.dispose.call(this);ug(this.m,"VisibleItemsChanged",this.Fa)};
g.di=function(){this.clear();IB(this);if(this.m.count){for(var a=Math.min(this.s,this.m.items.length),b=this.g,c=0;c<a;)JB(b,c).show(),c++,b=b.next;KB(this)}BA(this)};g.rq=function(a){KB(this);BA(this);var b=this.m.items;if(a>this.s-1){var c=this.g;b=this.m.items;do{if(0>c.index()){a=c.h.index()+1;if(a>b.length-1)break;JB(c,a).show()}c=c.next}while(c!=this.g)}else{c=this.g;for(var d=a;d;)c=c.next,d--;for(b=Math.min(this.s,b.length);a<b;a++)JB(c,a).show(),c=c.next}};g.sq=function(){this.di()};
function KB(a){a.h.style.height=a.m.count*a.m.itemHeight+"px"}g.clear=function(){this.h.innerHTML="";this.h.style.height="0px";Yz(this.m,"scrollTop",0,!1);Yz(this.m,"approachBottom",!1)};g.Ro=function(a){a=Math.floor(a/this.m.itemHeight);if(a!=this.fa){var b=a-this.fa;for(this.fa=a;0!=b;)0<b?(this.g=this.g.next,b--):(this.g=this.g.h,b++);b=this.g;for(var c=this.m.items;a<c.length&&(a!=b.index()&&JB(b,a).show(),a++,b=b.next,b!=this.g););for(;b!=this.g;)JB(b,-1).show(),b=b.next}};
function IB(a){var b=document.createDocumentFragment(),c=a.m.columns;a.g=LB(MB((new NB(a.m)).create(0,c)),b);for(var d=a.g,e=1;e<a.s;e++){var f=LB(MB((new NB(a.m)).create(e,c)),b);d.next=f;f.h=d;d=f}d.next=a.g;a.g.h=d;a.h.appendChild(b)}
p.Object.defineProperties(iB.prototype,{Ga:{configurable:!0,enumerable:!0,set:function(a){if(a!=this.s)if(this.s){var b=a-this.s;if(0<b)for(var c=this.m.count;0<b;){var d=this.g.h,e=d.index()+1,f=this.g.index()-1,h=new NB(this.m);h.h=d;h.next=this.g;d.next=h;this.g.h=h;e<c&&0<e?d=e:-1<f&&f<c?(d=f,this.g=h):d=-100;JB(h.create(d,this.m.columns),d).show();LB(h,this.h);b--}else for(;0>b;)c=this.g.h,h=c.h,this.g.h=h,h.next=this.g,this.h.removeChild(c.g),b++;this.s=a}else this.s=a,this.clear(),IB(this)}}});
function NB(a){this.m=a}g=NB.prototype;g.create=function(a,b){var c=this.item(a);if(void 0!==this.m.itemTemplate)b=aA(this.m,a),a=xy(a,this.m.itemHeight)(zy(c,b));else{var d=this.m.itemHeight,e=this.m.va;a=xy(a,d)(yy(c,b,e,d))}this.g=a;E(this.g,"list-item--virtual");return this};
function JB(a,b){a.updatePosition(b);var c=a.item(b);if(void 0!==a.m.itemTemplate){var d=a.g,e=aA(a.m,b);d.innerHTML="";d.innerHTML=zy(c,e)}else for(d=a.g.querySelectorAll('[data-role="cell"]'),e=0;e<d.length;e++){var f=d[e],h=f.getAttribute("data-col");h=c[h];f.querySelector(".content").textContent=void 0===h?"":h}a.m.va&&(lA(a.g,"checked",Ky(a.m.h,b)),c=a.g.querySelector(".row-check"))&&(c.checked=Ky(a.m.h,b));Ly(a.m.h,b)?a.g.setAttribute("selected","true"):a.g.removeAttribute("selected");iz(a.m.h,
b)?a.g.setAttribute("focused","true"):a.g.removeAttribute("focused");-1<b&&b<a.m.h.count&&$z(a.m,b,a.g);return a}g.item=function(a){return-1<a&&a<this.m.h.count?bA(this.m,a):{}};g.updatePosition=function(a){this.g.setAttribute("data-index",a.toString());a*=this.m.itemHeight;this.g.style.transform="translate(0px, "+a+"px)";this.g.style.msTransform="translate(0px, "+a+"px)"};function MB(a){E(a.g,"gcim_hidden");return a}g.show=function(){jd(this.g,"gcim_hidden")};g.index=function(){return parseInt(this.g.getAttribute("data-index"))};
function LB(a,b){b.appendChild(a.g);return a};function OB(a,b){var c=this;this.m=new sz;this.ea=this.s=this.u=this.i=!0;xe.g=!0;var d=be(a);d&&"function"===typeof d.destroy&&d.destroy();this.h=a;this.ic=a.style.cssText;this.ce=a.innerHTML;ae(a)||(a["IMJS-CTRL"]=this);a=new gA(a,b);this.m=a.getData();this.g=new nA(this.m);this.g.la=function(e){return Bd(c,e)};this.zb();a.Hh()}g=OB.prototype;
g.destroy=function(){this.g.dispose();this.ic?this.h.style.cssText=this.ic:this.h.removeAttribute("style");"div"==this.h.tagName.toLowerCase()?this.h.innerHTML=this.ce:this.m.lc.replaceWith(this.h);ce(this.m.lc);this.m.dispose();he(this)};
g.zb=function(){var a=this;this.fa=new K(this);this.ka=new K(this);this.sa=new K(this);this.va=new K(this);this.Fa=new K(this);this.ca=new K(this);this.ga=new K(this);this.la=new K(this);this.ta=new K(this);this.na=new K(this);J(this.m,"CheckedChanged",function(){a.i&&a.fa.ha()});J(this.m,"SelectedChanged",function(){a.u&&a.ka.ha()});J(this.m,"FocusedChanged",function(){a.ea&&a.sa.ha()});J(this.m,"ItemClick",function(b){return a.va.ha(b)});J(this.m,"LoadComplete",function(){return a.Fa.ha()});J(this.m,
"ItemsChanged",function(){a.s&&a.ca.ha()});J(this.m,"ColumnResizeEnd",function(b){return a.ga.ha(b)});J(this.m,"ResizeEnd",function(b){return a.la.ha(b)});J(this.m,"Dropping",function(b){return a.ta.ha(b)});J(this.m,"Dropped",function(b){return a.na.ha(b)})};g.addEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Un(a,b)};g.removeEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Vn(a,b)};
g.Pb=function(a){var b={};b.checkedchanged=this.fa;b.selectedchanged=this.ka;b.focusedchanged=this.sa;b.itemclick=this.va;b.loadcomplete=this.Fa;b.itemschanged=this.ca;b.columnresizeend=this.ga;b.resizeend=this.la;b.dropping=this.ta;b.dropped=this.na;return b[a]};g.getHost=function(){return this.m.lc};g.filter=function(a){this.m.filter(a)};function PB(a,b,c){a.m.filter(b,void 0===c?0:c)}
g.sort=function(a){var b=this.m;if(a&&"object"==typeof a){var c=Vz(b,a.name);c&&(c.h=a.isAsc?"asc":"desc",Zz(b,c,!1))}else"function"!==typeof a&&a||Zz(b,void 0,!1);this.m.sort(a)};g.getCheckedItems=function(){return this.m.getCheckedItems()};g.getCheckedIndices=function(){return this.m.getCheckedIndices()};g.setCheckedIndices=function(a){G(a)||this.m.setCheckedIndices(a)};g.setCheckedIndex=function(a){G(a)||this.setCheckedIndices([a])};g.clearChecked=function(){this.m.clearChecked()};
g.getSelectedItems=function(){return this.m.getSelectedItems()};g.getSelectedItem=function(){return QB(this.getSelectedItems())};g.getSelectedIndices=function(){return this.m.getSelectedIndices()};g.getSelectedIndex=function(){return QB(this.getSelectedIndices())};g.setSelectedIndices=function(a){G(a)||this.m.setSelectedIndices(a)};g.setSelectedIndex=function(a){G(a)||(this.setSelectedIndices([a]),RB(this,a))};g.clearSelected=function(){this.m.clearSelected()};g.getSelectedValues=function(){return this.m.getSelectedValues()};
g.getSelectedValue=function(){return QB(this.getSelectedValues())};g.findString=function(a,b,c){return this.m.findString(a,b,c)};g.findStringExact=function(a,b,c){return this.m.findStringExact(a,b,c)};g.findStringInAll=function(a,b){return this.m.findStringInAll(a,b)};g.findStringExactInAll=function(a,b){return this.m.findStringExactInAll(a,b)};g.layout=function(){this.g.layout()};g.refresh=function(){this.m.refresh()};g.focus=function(){this.g.focus()};g.resize=function(a,b){this.m.resize(a,b)};
g.resizeWidth=function(a){this.m.resizeWidth(a)};g.resizeHeight=function(a){this.m.resizeHeight(a)};g.setItems=function(a){this.m.setItems(a)};g.getItems=function(){return this.m.items.map(function(a){return a.data})};g.addItem=function(a){this.m.addItems([a])};g.addItems=function(a){G(a)||this.m.addItems(a)};g.insertItem=function(a,b){this.m.insertItems([a],b)};g.insertItems=function(a,b){G(a)||this.m.insertItems(a,b)};g.clearItems=function(){this.m.clearItems()};
g.setVisibleItemCount=function(a){var b=this.m;b.cb!==a&&(b.ea=a*b.itemHeight+b.fa,b.visibleItemCount=a,b.ha("Reszie"),b.ha("ViewPortRectChanged",Xz(b)))};g.Ef=function(){return this.m.cb};g.setColumns=function(a){G(a)||this.m.setColumns(a)};g.addColumn=function(a,b){this.m.addColumn(a,b)};g.deleteColumn=function(a){this.m.deleteColumn(a)};g.setVirtualMode=function(a){var b=this.m;a!=b.virtualMode&&(b.virtualMode=a,b.ha("VirtualModeChanged"))};g.setOverflow=function(a){a=I(dt,a);null!==a&&this.m.setOverflow(a)};
g.setAllowResize=function(a){this.m.setAllowResize(a)};g.setSelectionMode=function(a){a=I(et,a);null!==a&&(this.m.selectionMode=a)};g.Nj=function(){return this.m.selectionMode};g.updateColumnWidth=function(a,b){if(a=Vz(this.m,a))"string"===typeof b?(a.s=qz(b),this.layout()):Sz(this.m,a,b,pz)};g.updateColumnAutoFit=function(a){Uz(this.m,a)&&this.refresh()};g.setItemHeight=function(a){this.m.setItemHeight(a)};g.setCheckOnClick=function(a){this.m.checkOnClick=a};
g.setAllowColumnResize=function(a){this.m.allowColumnResize=a};g.setVisible=function(a){this.m.visible=a};g.Yf=function(){return this.m.visible};g.setShowTip=function(a){this.m.showTip=a};g.setEnabled=function(a){this.m.enable=a};g.getEnabled=function(){return this.m.enable};g.Ne=function(a,b,c,d){return this.m.Ne(a,b,c,d)};function QB(a){return a&&a.length?a[0]:null}g.performKeyDown=function(a){this.m.vq(a)};function RB(a,b,c){Nz(a.m,b,!1,!0,c)}
g.scrollIntoView=function(a){var b=this.g;0>a||a>b.m.count-1||CA(b.g.g,a)};g.ro=function(a){Dz(this.m,a)};g.getListDate=function(){return this.m};g.setReadOnly=function(a){this.m.readonly=a};function DB(a,b,c){c?a.setSelectedIndices(b):(a.u=!1,a.setSelectedIndices(b),a.u=!0)}function CB(a,b,c){c?a.setCheckedIndices(b):(a.i=!1,a.setCheckedIndices(b),a.i=!0)}function BB(a,b,c,d){d?a.insertItems(b,c):(a.s=!1,a.insertItems(b,c),a.s=!0)}
function EB(a,b,c){c?G(b)||Qz(a.m,b):(a.s=!1,a.i=!1,a.u=!1,a.ea=!1,G(b)||Qz(a.m,b),a.s=!0,a.i=!0,a.u=!0,a.ea=!0)}function FB(a){var b;null===(b=a.ca)||void 0===b?void 0:b.ha()}
p.Object.defineProperties(OB.prototype,{checkedItems:{configurable:!0,enumerable:!0,get:function(){return this.getCheckedItems()}},checkedIndices:{configurable:!0,enumerable:!0,get:function(){return this.getCheckedIndices()},set:function(a){this.setCheckedIndices(a)}},selectedItems:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedItems()}},selectedItem:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedItem()}},selectedIndices:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedIndices()},
set:function(a){this.setSelectedIndices(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedIndex()},set:function(a){this.setSelectedIndex(a)}},selectedValues:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedValues()}},selectedValue:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedValue()}},items:{configurable:!0,enumerable:!0,get:function(){return this.getItems()},set:function(a){this.setItems(a)}},checkedIndex:{configurable:!0,
enumerable:!0,get:function(){return this.m.getCheckedIndices()[0]?this.m.getCheckedIndices()[0]:-1},set:function(a){this.setCheckedIndex(a)}},visibleItemCount:{configurable:!0,enumerable:!0,get:function(){return this.Ef()},set:function(a){this.setVisibleItemCount(a)}},columns:{configurable:!0,enumerable:!0,get:function(){return this.m.i},set:function(a){this.setColumns(a)}},virtualMode:{configurable:!0,enumerable:!0,get:function(){return this.m.virtualMode},set:function(a){this.setVirtualMode(a)}},
overflow:{configurable:!0,enumerable:!0,get:function(){return this.m.overflow},set:function(a){this.setOverflow(a)}},allowResize:{configurable:!0,enumerable:!0,get:function(){return this.m.allowResize},set:function(a){this.setAllowResize(a)}},selectionMode:{configurable:!0,enumerable:!0,get:function(){return this.Nj()},set:function(a){this.setSelectionMode(a)}},itemHeight:{configurable:!0,enumerable:!0,get:function(){return this.m.itemHeight},set:function(a){this.setItemHeight(a)}},checkOnClick:{configurable:!0,
enumerable:!0,get:function(){return this.m.checkOnClick},set:function(a){this.setCheckOnClick(a)}},allowColumnResize:{configurable:!0,enumerable:!0,get:function(){return this.m.allowColumnResize},set:function(a){this.setAllowColumnResize(a)}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Yf()},set:function(a){this.setVisible(a)}},showTip:{configurable:!0,enumerable:!0,get:function(){return this.m.showTip},set:function(a){this.setShowTip(a)}},enabled:{configurable:!0,enumerable:!0,
get:function(){return this.getEnabled()},set:function(a){this.setEnabled(a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcListBox"}},dragDrop:{configurable:!0,enumerable:!0,get:function(){return this.m.dragDrop},set:function(a){G(a)||(this.m.dragDrop=a)}},dragSource:{configurable:!0,enumerable:!0,get:function(){return this.m.dragSource},set:function(a){a=I(ft,a);null!==a&&(this.m.dragSource=a)}},findStringFilterComparator:{configurable:!0,enumerable:!0,get:function(){return this.m.findStringFilterComparator},
set:function(a){a=I(bt,a);null!==a&&(this.m.findStringFilterComparator=a)}},Ga:{configurable:!0,enumerable:!0,get:function(){return this.m.Xa},set:function(a){this.m.Xa=a}}});v("GcListBox",OB);function SB(){Pv.apply(this,arguments);this.u=7;this.ta=null}t(SB,Pv);SB.prototype.pe=function(){this.ta||(this.ta=this.Cp());return this.ta};SB.prototype.dispose=function(){this.Ga=this.Fa=this.onSpinDown=this.onSpinUp=this.la=this.onOpened=null;Pv.prototype.dispose.call(this)};
function TB(a,b,c){SB.call(this,b);this.sa=this.na=!1;this.i=b;this.h=a;this.m=c;a=this.i.getElement();this.m.g||(this.m.g={});this.m.g.autoHeight=!0;this.g=new OB(a,this.m.g);a=document.createElement("div");a.classList.add("gcim_empty_template");a.innerHTML=this.m.emptyTemplate;a.classList.add("gcim_hidden");this.fa=a;this.i.getElement().appendChild(this.fa);this.g.m.se=!0;this.g.m.Pe=!1;a=this.g;a.m.Fa.setAttribute("tabindex","-1");a.m.ta.setAttribute("tabindex","-1");this.zb()}t(TB,SB);g=TB.prototype;
g.dispose=function(){this.Nb();this.g.destroy();SB.prototype.dispose.call(this)};
g.zb=function(){var a=this;this.h.onFocusOut(function(){a.m.g.load||a.ca||a.g.filter(a.ea)});this.i.onOpen(function(){a.m.g.load||a.ca||a.g.filter(a.ea);a.g.m.se=!1;a.autoSelect();if(UB(a))var c=!1;else{c=a.m.i.Hj;var d="autofitsinglecolumn"===c&&!(!a.m.g.multiColumn&&!a.m.g.itemTemplate);c=G(c)||d}c&&a.g.resizeWidth(a.h.getLayoutElement().offsetWidth);a.g.layout();a.m instanceof qy&&a.g.refresh();VB(a)&&(c=a.h.getLayoutElement().offsetWidth,d=DA(a.g.g),a.g.resizeWidth(Math.max(c,d)));a.m instanceof
qy?a.g.g.layout(!1):VB(a)&&a.g.g.layout(!0);a.h.getUIInputElement().readOnly&&a.h.getUIInputElement().setSelectionRange(0,0);WB(a,XB(a));a.onOpened()});this.i.onClose(function(){a.m.g.load||a.ca||a.g.filter(a.ea);a.g.m.se=!0;a.la()});this.La=function(c){a.h.setFocusInternal();c.preventDefault()}.bind(this);this.i.getElement().addEventListener("mousedown",this.La);this.m.isEditable&&(this.va=this.To.bind(this),this.h.onInput(this.va));this.h.onKeyDown(function(c,d){a.onKeyDown.apply(a,[c,d,4])});this.s=
this.rm.bind(this);this.g.addEventListener("itemclick",this.Uo.bind(this));this.m.g.load&&this.g.addEventListener("loadcomplete",this.tq.bind(this));var b=Va?"DOMMouseScroll":"mousewheel";this.ga=function(c){a:{var d=a.h.getLayoutElement();for(var e=document.activeElement;e;){if(e===d){d=!0;break a}e=e.parentElement}d=!1}if(d){if(a.i.isOpened())a.g.ro(c);else{if(!a.m.spinWheel||(c.target||c.srcElement)!==a.h.getUIInputElement())return;a.Vo(c)}c.preventDefault()}}.bind(this);this.i.getElement().addEventListener(b,
this.ga,{passive:!1});this.h.getLayoutElement().addEventListener(b,this.ga,{passive:!1});this.h.onFocusOut(function(){window.clearTimeout(a.ka)});this.list.addEventListener("itemschanged",function(){return a.Fa()});this.list.addEventListener("resizeend",function(c,d){a.Ga(d);a.m.i.Jl=!0})};
g.Nb=function(){this.i.getElement().removeEventListener("mousedown",this.La);var a=Va?"DOMMouseScroll":"mousewheel";this.i.getElement().removeEventListener(a,this.ga);this.h.getLayoutElement().removeEventListener(a,this.ga)};function XB(a){if(!a.m.emptyTemplate)return!1;a=a.g.getItems();return!a||0===a.length}
function WB(a,b){b!==a.sa&&(a.sa=b,b=a.i.getElement().querySelector(".gcim__listbox"),a.sa?(a.fa.classList.remove("gcim_hidden"),b&&(a.fa.style.width=b.style.width,b.classList.add("gcim_hidden"))):(a.fa.classList.add("gcim_hidden"),b&&(b.classList.remove("gcim_hidden"),a.list.layout(),a.list.layout())))}g.addItem=function(a){this.list.addItem(a)};g.addItems=function(a){this.list.addItems(a)};g.insertItem=function(a,b){this.list.insertItem(a,b)};
g.insertItems=function(a,b){this.list.insertItems(a,b)};g.clearItems=function(){this.list.clearItems()};g.setAllowResize=function(a){this.list.setAllowResize(a)};g.So=function(){return this.list.m.allowResize};g.setItems=function(a){this.list.setItems(a)};g.getItems=function(){return this.g.getItems()};g.item=function(a){return this.getItems()[a]};function VB(a){return UB(a)?!1:"autofitsinglecolumn"===a.m.i.Hj&&!a.m.g.multiColumn&&!a.m.g.itemTemplate}function UB(a){a=a.m.i;return a.Il||a.Jl}
g.onKeyDown=function(a,b,c){a:{a=b.Event;if(this.m.h)if(!a.altKey||40!=a.keyCode&&38!=a.keyCode)if(27==a.keyCode)var d=YB;else{d=void 0;break a}else 40==a.keyCode&&(d=ZB),38==a.keyCode&&(d=YB),b.Cancel=!0;else switch(a.keyCode){case 40:d=a.altKey?ZB:$B;b.Cancel=!0;break;case 38:d=a.altKey?YB:aC;b.Cancel=!0;break;case 27:d=YB;break;case 13:this.isOpened()&&(d=bC,a.preventDefault());break;case 32:this.m.Xp(this.g.getSelectedItems())&&this.i.isOpened()&&this.m.checkBySpace&&(b.Cancel=!0,d=cC);break;
case 33:case 34:b.Cancel=!0;d=dC;break;case 35:case 36:this.i.isOpened()&&(b.Cancel=!0,d=dC)}this.na&&null!=d&&void 0!=d&&(a.preventDefault(),d=null)}if(d){a=this.h.selectionStart;var e=this.h.getSelectionLength()===this.h.text.length-this.h.selectionStart&&0!==this.h.getSelectionLength();switch(d){case YB:this.i.isOpened()&&this.close();break;case ZB:this.i.isClosed()&&this.open();break;case $B:0!==(this.u&c)&&(this.g.performKeyDown(b.Event),this.onSpinDown());"none"!==this.m.autoCompleteMode&&e&&
fu(this.h.Tc(),a,this.h.text.length);break;case aC:0!==(this.u&c)&&(this.g.performKeyDown(b.Event),this.onSpinUp());"none"!==this.m.autoCompleteMode&&e&&fu(this.h.Tc(),a,this.h.text.length);break;case cC:case dC:this.g.performKeyDown(b.Event);break;default:this.jq(d)}}};function eC(a,b,c){b=void 0===b?!1:b;c=void 0===c?"":c;try{a.h.removeInput(a.va),a.h.Ll(c?c:a.m.Ph(),b)}finally{a.h.onInput(a.va)}}
function fC(a,b){for(var c=0,d=a.getItems(),e=d.length;c<e;c++)if(oy(d[c],a.m.valueMemberPath)===b)return c;return-1}g.setSelectedValue=function(a){this.setSelectedIndex(fC(this,a),!0)};g.setSelectedItem=function(a){this.setSelectedValue(oy(a,this.m.valueMemberPath))};g.setCheckedItems=function(a){var b=this;this.setCheckedValues(a.map(function(c){return oy(c,b.m.valueMemberPath)}))};g.setCheckedValues=function(a){var b=this;this.setCheckedIndices(a.map(function(c){return fC(b,c)}))};
g.filter=function(a){this.ea=a;this.g.filter(a)};g.sort=function(a){this.g.sort(a)};g.setReadOnly=function(a){this.m.h=a;this.g.setReadOnly(a)};g.setEnabled=function(a){this.list.setEnabled(a)};g.Kl=function(a){this.tk(a);eC(this,!0)};
g.Cp=function(){var a=this;return{getWidth:function(){return a.list.g.getContainer().style.width},Yg:function(){return a.list.g.getContainer().style.height},setWidth:function(b){"string"===typeof b&&(b=Number(b.replace("px","")));"number"!==typeof b||isNaN(b)||(a.list.resizeWidth(b),a.m.i.Il=!0)},setHeight:function(b){"string"===typeof b&&(b=Number(b.replace("px","")));"number"!==typeof b||isNaN(b)||a.list.resizeHeight(b)}}};g.tk=function(){};
p.Object.defineProperties(TB.prototype,{list:{configurable:!0,enumerable:!0,get:function(){return this.g}}});function gC(a,b,c){TB.call(this,a,b,c);this.g.addEventListener("selectedchanged",this.s);this.g.m.selectionMode="none"}t(gC,TB);g=gC.prototype;g.getValue=function(){};g.setValue=function(a){hC(this,a)};g.rm=function(){this.select();eC(this)};g.To=function(){this.data.ca=this.h.getDisplayText();iC(this)};
g.autoSelect=function(){if(!this.ca)try{this.g.removeEventListener("selectedchanged",this.s);var a=this.m.getSelectedValue(),b=this.m.Ph();if(jC(a))if(jC(b)){var c=this.m.getSelectedItem();"object"===typeof c&&c&&(this.m.valueMemberPath&&null===c[this.data.valueMemberPath]||""===c[this.data.valueMemberPath])||this.setSelectedIndex(-1)}else kC(this,lC(this,b));else hC(this,a.toString())}finally{this.g.addEventListener("selectedchanged",this.s)}};
g.jq=function(a){switch(a){case bC:this.g.getSelectedItem()&&this.rm(),this.close()}};g.Vo=function(a){if(0<od(a))this.onKeyDown(this.h,{Event:{keyCode:40,preventDefault:function(){}},Cancel:!1},1);else this.onKeyDown(this.h,{Event:{keyCode:38,preventDefault:function(){}},Cancel:!1},1)};g.Uo=function(a,b){this.data.h||(this.g.setSelectedIndex(b.index),a=this.g.getSelectedItem(),this.data.selectedItem!==a&&(this.data.selectedItem=a,eC(this)));this.close()};g.tq=function(){this.data.autoSelect&&this.autoSelect()};
g.select=function(){this.data.selectedItem=this.g.getSelectedItem()};
function iC(a){a.ka&&clearTimeout(a.ka);a.na=!0;a.ka=setTimeout(function(){try{a.g.removeEventListener("selectedchanged",a.s);var b=-1,c=a.data.ca,d="none"!==a.m.autoCompleteMode;("none"!==a.m.autoFilter||d)&&mC(a,c,d);a.m.autoSelect&&(c&&(b=lC(a,c)),0>b&&a.list.clearSelected());var e=-1;if(d){if(c){var f=a.g.findStringExact(c,-1,a.m.displayMemberPath);0>f&&(f=a.g.Ne(c,a.m.autoCompleteMatchMode.toString(),-1,a.m.displayMemberPath));e=f}if(0>e)a.list.clearSelected();else{if(!a.h.ql()){var h=a.g.items[e][a.m.displayMemberPath].toString();
eC(a,!1,c+h.substring(c.length));a.tk(c+h.substring(c.length))}fu(a.h.Tc(),c.length,a.h.text.length)}}a.g.setSelectedIndex(b);RB(a.g,b);if(a.h.getUIInputElement()===document.activeElement){a.ca=!0;var k=!a.g.getItems().length,l="none"!==a.m.autoFilter||"none"!==a.m.autoCompleteMode,m=a.m.autoSelect,n=jC(a.h.getText()),q="suggestappend"===a.m.autoCompleteMode,u="append"===a.m.autoCompleteMode;c=k||n&&!l&&m||u;(((l||m&&!n)&&!k||q&&!n)&&!c&&a.i.isClosed()||XB(a))&&a.open();!c||a.i.isClosed()||XB(a)||
a.close();WB(a,XB(a));a.ca=!1}-1<b&&a.g.scrollIntoView(b);-1<e&&d&&a.g.scrollIntoView(e)}finally{a.na=!1,a.g.addEventListener("selectedchanged",a.s)}},a.Ma)}
function mC(a,b,c){var d=Array.prototype.concat.apply(a.ea||[],[]);b&&(b.length>=a.data.minPrefixLength||c)&&("all"===a.m.matchingSource&&a.m.g&&a.m.g.columns&&0<a.m.g.columns.length?a.m.g.columns.forEach(function(e){d.push({name:e.name,comparator:a.m.autoFilter,filterString:b})}):d.push({name:a.m.displayMemberPath,comparator:c?a.m.autoCompleteMatchMode:a.m.autoFilter,filterString:b}));PB(a.g,d,"all"===a.m.matchingSource?1:0)}function jC(a){return""===a||void 0===a||null===a}
function lC(a,b){var c="display"===a.m.matchingSource?a.g.findStringExact(b,-1,a.m.displayMemberPath):a.g.findStringExactInAll(b,-1);0>c&&(c="display"===a.m.matchingSource?a.g.findString(b,-1,a.m.displayMemberPath):a.g.findStringInAll(b,-1));return c}function hC(a,b){b=a.g.findStringExact(b,-1,a.m.valueMemberPath);kC(a,b)}g.getSelectedIndex=function(){return this.m.getSelectedItem()?this.g.getSelectedIndex():-1};g.setSelectedIndex=function(a,b){nC(this,a,void 0===b?!1:b);this.select()};
function nC(a,b,c){c=void 0===c?!1:c;0>b&&a.g.clearSelected();RB(a.g,b,c)}function kC(a,b){var c=void 0===c?!1:c;0>b&&a.g.clearSelected();RB(a.g,b,c)}g.setCheckedIndices=function(){};g.getCheckedIndices=function(){return null};g.clearSelected=function(){nC(this,-1)};g.clearChecked=function(){};g.tk=function(a){this.data.ca=a;nC(this,-1)};p.Object.defineProperties(gC.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.m}}});
function oC(a,b,c){TB.call(this,a,b,c);this.Ma=this.hr.bind(this);this.g.addEventListener("checkedchanged",this.s)}t(oC,TB);g=oC.prototype;g.tk=function(a){this.data.sa=a;this.setCheckedIndices([])};g.getValue=function(){return this.m.getCheckedValues()};g.setValue=function(){};
g.To=function(){var a=this;try{this.g.removeEventListener("checkedchanged",this.s);this.g.addEventListener("checkedchanged",this.Ma);var b={},c=[];this.h.getDisplayText().split(this.data.s).forEach(function(d){return b[d]=!0});this.g.getItems().forEach(function(d,e){d=oy(d,a.data.displayMemberPath).toString();b[d]&&(c.push(e),delete b[d])});this.setCheckedIndices(c)}finally{this.g.addEventListener("checkedchanged",this.s),this.g.removeEventListener("checkedchanged",this.Ma)}};g.Uo=function(){};
g.rm=function(){var a=this.g.getCheckedItems();this.data.selectedItems=a;eC(this)};g.tq=function(){};g.autoSelect=function(){};g.jq=function(){};g.Vo=function(){};g.getCheckedIndices=function(){return this.g.getCheckedIndices()};g.setCheckedIndices=function(a){this.g.setCheckedIndices(a)};g.hr=function(){this.data.selectedItems=this.g.getCheckedItems()};g.clearSelected=function(){};g.clearChecked=function(){this.list.clearChecked()};g.getSelectedIndex=function(){return null};g.setSelectedIndex=function(){};
g.Kl=function(a){this.clearChecked();eC(this,!0,a)};p.Object.defineProperties(oC.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.m}}});var ZB="ShowDropdown",YB="CloseDropdown",bC="Select",$B="MoveNext",aC="MovePre",cC="Check",dC="Normal";function pC(a){for(var b=A("div",{class:qC}),c=0;c<a.La;c++)b.appendChild(A("div",{class:rC}));c=a.la?sC():null;c=A("div",{class:tC},c);var d=uC(a)?A("div",{class:vC}):null,e=A("div",{class:wC}," ");if(a.ya.wa.itemTemplate)if("function"===typeof a.ya.wa.itemTemplate)e.appendChild(a.ya.wa.itemTemplate(iy(a)));else{var f=iy(a);var h=a.ya.wa.itemTemplate;h=a.ya.wa.selectTemplate?a.ya.wa.selectTemplate({item:a.g,template:h}):Array.isArray(h)&&0<h.length?h.length[0]:h;e.innerHTML=zy(f,h)}else h=iy(a),
f=h[a.ya.wa.imageMemberPath],h=h[a.ya.wa.displayMemberPath],f=f?A("img",{src:""+f,class:xC}):null,h=A("span",{class:yC},h),f=A("div",{class:zC},f,h),e.appendChild(f);b=A("div",{class:AC,style:"height: "+a.ya.wa.itemHeight+"px;"},b,c,d,e);b.setAttribute(BC,a.id);CC(b,a);a.ya.wa.generatingItem&&a.ya.wa.generatingItem({element:b,item:a.g});return b}function uC(a){return a.ya.wa.isMultiSelect?a.h?!0:!a.ya.i:!1}function sC(){var a=wy();jd(a,"gcim_hidden");return a}
function CC(a,b){a&&(a.setAttribute(DC,String(b.h)),a.setAttribute(EC,String(b.fa)),a.setAttribute(FC,String(b.la)),a.setAttribute(HC,String(b.Ga)),a.setAttribute(IC,String(b.Fa)),b.ya.wa.isMultiSelect&&(a=JC(a),uC(b)?(a||(a=uC(b)?A("div",{class:vC}):null),a.setAttribute(KC,b.s)):null===a||void 0===a?void 0:a.remove()))}function LC(a,b){return null===a||void 0===a?void 0:a.querySelector("."+AC+"["+BC+'="'+b+'"]')}function MC(a){return null===a||void 0===a?void 0:a.querySelector("."+tC)}
function JC(a){return null===a||void 0===a?void 0:a.querySelector("."+vC)}var qC="item-indent",rC="indent-unit",AC="tree-item",wC="item-content",zC="normal-content",tC="item-switcher",xC="content-image",yC="content-text",vC="item-checkbox",BC="data-id",HC="selected",IC="focused",EC="expanded",FC="loading",DC="isleaf",KC="state";function NC(a,b){this.s={};var c=this;this.ea="vertical";this.scrollTop=-1;this.fa=function(d){c.g.scrollTop!=c.scrollTop&&(c.h.style.transform="translate(-"+c.g.scrollLeft+"px, -"+c.g.scrollTop+"px)",(void 0===d||d)&&c.ca.yq(),c.scrollTop=c.g.scrollTop)};this.la=function(d){c.data.enabled&&["both","vertical"].includes(c.overflow)&&(c.g.scrollTop+=od(d),c.fa(),d.preventDefault(),d.stopPropagation())};this.sa=function(d){if(c.data.enabled){d=d.target;var e;if(d){var f=null;for(var h=d;h!=c.container;){if(h.classList.contains(AC)){f=
h;break}h=h.parentElement}f=(h=null===f||void 0===f?void 0:f.getAttribute(BC))?MC(f).contains(d)?{Hi:OC,hh:h}:(null===f||void 0===f?void 0:f.querySelector("."+wC)).contains(d)?{Hi:PC,hh:h}:(null===(e=JC(f))||void 0===e?0:e.contains(d))?{Hi:QC,hh:h}:{Hi:RC,hh:null}:{Hi:RC,hh:null}}else f={Hi:RC,hh:null};e=f;switch(e.Hi){case OC:if(e=c.data.fa.get(e.hh))Zx(e),e.ga=!1;break;case PC:if(e=c.data.fa.get(e.hh))e.focus(),c.data.readOnly||(c.data.wa.isMultiSelect?c.data.checkOnClick&&ey(e):e.sa?e.select():
e.ya.ea=null),!e.h&&c.data.i&&(Zx(e),e.ga=!1),c.ha(SC,e.g);break;case QC:if(e=c.data.fa.get(e.hh))e.focus(),c.data.readOnly||ey(e)}}};this.va=function(d){c.performKeyDown(d)};if(!(a instanceof HTMLElement))throw Error("element must is HTMLElement.");this.ka=a;this.data=b;TC(this,a);this.g=new UC(this);VC(this,b.wa.virtualMode);this.zb();this.layout()}t(NC,tg);g=NC.prototype;
g.dispose=function(){vg(this);this.g.dispose();this.container.remove();var a=this.container.parentNode;a&&a.replaceChild(this.container,this.ka);this.ka.style.removeProperty("display")};
function TC(a,b){var c,d,e,f,h;var k=A("div",{class:"gcim__treeview gcim__scroll-bar"},c=A("div",{class:"viewport"},d=A("div",{class:"viewport-inner"})),e=A("div",{class:"h-scroll-bar",tabIndex:"-1"},A("div",null)),f=A("div",{class:"v-scroll-bar",tabIndex:"-1"},A("div",null)),h=A("div",{class:"corner"}));k.tabIndex=0;Wa&&k.setAttribute("browser","firefox");b.parentNode.insertBefore(k,b);b.style.setProperty("display","none","important");k.appendChild(b);a.container=k;a.viewport=c;a.h=d;a.i=e;a.u=f;
a.na=h}
g.zb=function(){var a=this;J(this.data,Cx,function(){a.h.innerHTML="";a.layout()});J(this.data,gy,function(b){a.ca.kq(b);a.layout()});J(this.data,$x,function(b){a.ca.pq(b);a.layout()});J(this.data,ay,function(b){a.ca.nq(b);a.layout()});J(this.data,Gx,function(){a.ca.po();a.layout()});J(this.data,Yx,function(b){if(b.i)a.container.appendChild(sC());else{var c=LC(a.h,b.id);c&&(CC(c,b),MC(c).appendChild(sC()))}});J(this.data,ly,function(b){if(b.i)a.container.querySelector(":scope > .gcim__indicator-wrapper").remove();else{var c=
LC(a.h,b.id);c&&(CC(c,b),MC(c).querySelector(".gcim__indicator-wrapper").remove())}});J(this.data,dy,function(b){WC(a,b)});J(this.data,Nx,function(b){WC(a,b.ko);WC(a,b.io)});J(this.data,Ox,function(b){WC(a,b.ko);WC(a,b.io)});J(this.data,Tx,function(){a.container.setAttribute("enabled",String(a.data.enabled))});J(this.data,Ux,function(){a.data.visible?jd(a.container,"gcim_hidden"):E(a.container,"gcim_hidden");a.layout();a.data.virtualMode&&XC(a.ca)});J(this.data,Vx,function(){a.container.setAttribute("virtual",
String(a.data.virtualMode));VC(a,a.data.virtualMode);a.ca.po();a.layout()});J(this.g,YC,this.fa);J(this.g,ZC,function(){a.h.style.transform="translate(-"+a.g.scrollLeft+"px, -"+a.g.scrollTop+"px)"});this.container.addEventListener(Va?"DOMMouseScroll":"mousewheel",this.la,{passive:!1});this.container.addEventListener("click",this.sa);this.container.addEventListener("keydown",this.va);this.container.addEventListener("dragstart",function(b){return b.preventDefault()})};
function WC(a,b){b&&!b.i&&(a=LC(a.h,b.id))&&CC(a,b)}function $C(a,b,c){if(0>=b.length)return null;var d=b.indexOf(a.data.g);0>d&&0>c&&(d=0);c=d+c;0>c&&(c=a.data.se?b.length+c%b.length:0);c>b.length-1&&(c=a.data.se?c%b.length:b.length-1);return b[c]}
function aD(a,b){var c=[];b?!0===b.isOpened?a.data.forEach(function(d){return c.push(d)},!0):a.data.forEach(function(d){d.u&&(!d.h&&a.data.i?0:b.Yr?(new kw([{name:a.data.wa.displayMemberPath,comparator:b.autoCompleteMatchMode.toString(),filterString:b.xr}])).qd(d.g):1)&&c.push(d)},!1):a.data.forEach(function(d){return c.push(d)},!0);return c}
g.performKeyDown=function(a,b){b=void 0===b?null:b;if(this.data.enabled){var c=null,d=1;void 0!==a.Rj&&(d=a.Rj);switch(a.key){case "ArrowDown":c=$C(this,aD(this,b),d);a.preventDefault();break;case "ArrowUp":c=$C(this,aD(this,b),-d);a.preventDefault();break;case "PageUp":c=$C(this,aD(this,b),-this.ga);a.preventDefault();break;case "PageDown":c=$C(this,aD(this,b),this.ga);a.preventDefault();break;case "Home":case "End":b=aD(this,b);c=0<b.length?b[0]:null;b=0<b.length?b[b.length-1]:null;c="Home"===a.key?
c:b;a.preventDefault();break;case "ArrowLeft":case "ArrowRight":(b=this.data.Ma)&&"ArrowLeft"===a.key?!b.h&&b.fa&&(b.collapse(),b.ga=!1,a.preventDefault()):!b||"ArrowRight"!==a.key||b.h||b.fa||(b.expand(),b.ga=!1,a.preventDefault());break;case "Enter":this.data.g&&this.data.g.visible&&(!this.data.g.h&&this.data.i&&(Zx(this.data.g),this.data.g.ga=!1,a.preventDefault()),!this.data.wa.isMultiSelect||this.data.readOnly||!this.data.g.h&&this.data.i||(ey(this.data.g),a.preventDefault()));break;case " ":this.data.g&&
this.data.g.visible&&this.data.wa.isMultiSelect&&!this.data.readOnly&&this.data.checkBySpace&&(this.data.g.h||!this.data.i)&&(ey(this.data.g),a.preventDefault())}c&&(c.focus(),this.data.readOnly||this.data.wa.isMultiSelect||(c.sa?c.select():c.ya.ea=null),this.scrollIntoView(c))}};
g.scrollIntoView=function(a){if(a&&(a=Mx(this.data,a),!(0>a))){a*=this.data.wa.itemHeight;var b=this.g.scrollTop,c=this.ta+b-this.g.Ma;a<b?this.g.scrollTop+=a-b:a+this.data.wa.itemHeight>c&&(this.g.scrollTop+=a+this.data.wa.itemHeight-c)}};g.$i=function(){this.g.scrollTop=0};g.layout=function(){this.data.virtualMode&&["both","horizontal"].includes(this.overflow)?this.h.style.width=bD(this)+"px":this.h.style.width="";this.g.layout()};
function bD(a){if(0===a.container.offsetWidth)return 0;var b=0;a.data.forEach(function(c){if(void 0===c.width){var d=pC(c);d.classList.add("tree-item-measure");a.h.appendChild(d);var e=d.scrollWidth;d.remove();c.width=e}b=Math.max(b,c.width)},!0);return b}function VC(a,b){a.ca=b?new cD(a,a.data):new dD(a,a.data)}
p.Object.defineProperties(NC.prototype,{overflow:{configurable:!0,enumerable:!0,get:function(){return this.ea},set:function(a){a=I(dt,a);null!==a&&(this.ea=a,["none","horizontal"].includes(this.ea)&&(this.g.scrollTop=0),["none","vertical"].includes(this.ea)&&(this.g.scrollLeft=0),this.layout())}},width:{configurable:!0,enumerable:!0,get:function(){return parseFloat(window.getComputedStyle(this.container).width)},set:function(a){if("number"===typeof a||"string"===typeof a)a=Number(a),Number.isNaN(a)||
(a=Math.max(a,0),this.container.style.width=a+"px",this.layout())}},height:{configurable:!0,enumerable:!0,get:function(){return parseFloat(window.getComputedStyle(this.container).height)},set:function(a){if("number"===typeof a||"string"===typeof a)a=Number(a),Number.isNaN(a)||(a=Math.max(a,0),this.container.style.height=a+"px",this.viewport.style.height=a+"px",this.ta=a,this.ca.qq(),this.layout())}},ga:{configurable:!0,enumerable:!0,get:function(){return Math.ceil(this.ta/this.data.wa.itemHeight)}}});
function eD(a,b){this.ya=a;this.container=a.container;this.viewport=a.viewport;this.h=a.h;this.data=b}function dD(){eD.apply(this,arguments)}t(dD,eD);g=dD.prototype;g.yq=function(){};g.qq=function(){};g.pq=function(a){if(a.visible){var b=LC(this.h,a.id);CC(b,a);var c=document.createDocumentFragment();a.forEach(function(d){d!==a&&c.appendChild(pC(d))},!0);this.h.insertBefore(c,b.nextSibling)}};
g.nq=function(a){var b=this;a.visible&&(CC(LC(this.h,a.id),a),a.forEach(function(c){var d;c!==a&&(null===(d=LC(b.h,c.id))||void 0===d?void 0:d.remove())},!1))};g.po=function(){this.h.innerHTML="";var a=document.createDocumentFragment();this.data.forEach(function(b){return a.appendChild(pC(b))},!0);this.h.appendChild(a)};
g.kq=function(a){a.parentNode.i||CC(LC(this.h,a.parentNode.id),a.parentNode);var b=document.createDocumentFragment();a.childNodes.forEach(function(c){return c.forEach(function(d){return b.appendChild(pC(d))},!0)});(a=a.childNodes[0].Gf(!0))?this.h.insertBefore(b,LC(this.h,a.id).nextSibling):this.h.appendChild(b)};function cD(){eD.apply(this,arguments)}t(cD,eD);g=cD.prototype;g.qq=function(){XC(this)};g.yq=function(){XC(this)};g.pq=function(){XC(this)};g.nq=function(){XC(this)};
g.po=function(){this.h.innerHTML="";XC(this)};g.kq=function(){XC(this)};
function XC(a){a.h.style.height=a.data.Ef()*a.data.wa.itemHeight+"px";var b=a.ya.g.scrollTop,c=b%a.data.wa.itemHeight,d=Lx(a.data,Math.floor(b/a.data.wa.itemHeight),a.ya.ga+2);b=document.createDocumentFragment();for(var e=Array(d.length),f=0;f<d.length;f++){var h=d[f],k=LC(a.h,h.id);k?(e[f]=k,CC(k,h)):(h=pC(h),e[f]=h,b.appendChild(h))}a.h.querySelectorAll("."+AC).forEach(function(l){e.includes(l)||l.remove()});for(d=0;d<e.length;d++)e[d].style.transform="translateY("+(a.ya.g.scrollTop-c+d*a.data.wa.itemHeight)+
"px)";a.h.appendChild(b)}function UC(a){this.s={};var b=this;this.fa=!1;this.Ga=function(){b.h.style.transition=""};this.La=function(c,d){var e=qd(!1);d=Math.max(d,e);b.ya.width=Math.max(c,e);b.ya.height=d};this.ya=a;this.container=a.container;this.viewport=a.viewport;this.h=a.h;this.u=a.u;this.i=a.i;this.na=a.na;this.data=a.data;this.g={Md:0,zg:0,Fh:0};this.fi=new Kn({container:this.container,lh:this.na,enabled:this.allowResize&&this.data.enabled,Ii:function(c,d){return b.La(c,d)}});this.zb()}
t(UC,tg);UC.prototype.dispose=function(){this.Nb();vg(this);this.fi.destroy()};
UC.prototype.zb=function(){var a=this;this.Fa=function(){return a.ha(YC)}.bind(this);this.ga=function(){return a.ha(ZC)}.bind(this);this.va=function(b){var c=b.changedTouches[0].pageX;b=b.changedTouches[0].pageY;a.la=!0;a.g.Bg=c;a.g.Md=b;a.g.gk=Date.now();a.g.Fh=0}.bind(this);this.sa=function(b){var c=b.changedTouches[0].pageX,d=b.changedTouches[0].pageY;a.data.enabled&&(b.cancelable&&Cf(b),a.la&&(a.g.$h=c,a.g.zg=d,a.g.Fj=Date.now(),c=a.g.Fj-a.g.gk,3>c&&a.g.$h==a.g.Bg||(b=-(a.g.zg-a.g.Md),a.g.Le=
0<b?1:-1,1<Math.abs(b)&&(d=Math.abs(b/c),a.g.ei=a.g.Gj,a.g.Gj=d,a.g.Fh=Math.abs((a.g.Gj-a.g.ei)/c),a.g.Md=a.g.zg,a.g.gk=a.g.Fj),d=-(a.g.$h-a.g.Bg),a.g.wg=0<d?1:-1,a.g.un=d/c,a.g.Bg=a.g.$h,c=fD(a,d,b),1<Math.abs(b)&&gD(a,c.bi),hD(a,c.ai))))}.bind(this);this.ta=function(b){a.la=!1;b.cancelable&&1>=Math.abs(a.g.zg-a.g.Md)&&(Cf(b),iD(a))}.bind(this);this.ka=function(){return a.layout()}.bind(this);this.u.addEventListener("scroll",this.Fa);this.i.addEventListener("scroll",this.ga);kb()&&(this.h.addEventListener("touchstart",
this.va,{passive:!1}),this.h.addEventListener("touchmove",this.sa,{passive:!1}),this.h.addEventListener("touchend",this.ta));J(this.fi,"resizeEnd",function(b){return a.ya.ha(jD,b)});J(this.data,Tx,function(){a.fi.enabled=a.allowResize&&a.data.enabled});window.addEventListener("resize",this.ka)};
UC.prototype.Nb=function(){this.u.removeEventListener("scroll",this.Fa);this.i.removeEventListener("scroll",this.ga);kb()&&(this.h.removeEventListener("touchstart",this.va),this.h.removeEventListener("touchmove",this.sa),this.h.removeEventListener("touchend",this.ta));window.removeEventListener("resize",this.ka)};function gD(a,b){b&&(a.scrollTop+=b)}function hD(a,b){b&&(a.scrollLeft+=b)}
UC.prototype.layout=function(){var a=qd(!1),b=this.ya.overflow,c=this.ea;this.h.style.minWidth="0px";var d=this.h.offsetWidth;this.h.style.minWidth="";var e=this.data.Ef()*this.data.wa.itemHeight;var f=("vertical"===b||"both"===b)&&c.height<e,h=("horizontal"===b||"both"===b)&&c.width<d;f&&!h?h=("horizontal"===b||"both"===b)&&c.width-a<d:!f&&h&&(f=("vertical"===b||"both"===b)&&c.height-a<e);b=this.allowResize||f&&h;this.u.setAttribute("show",String(f));this.i.setAttribute("show",String(h));this.na.setAttribute("show",
String(b));this.na.setAttribute("resize",String(this.allowResize));this.na.setAttribute("show-scroll-bar",String(f||h));this.na.style.width=a+"px";this.na.style.height=a+"px";e=e+(h?a:0)-(b?a:0);d=d+(f?a:0)-(b?a:0);this.u.firstElementChild.style.height=e+"px";this.i.firstElementChild.style.width=d+"px";this.u.style.bottom=(b?a:0)+"px";this.i.style.right=(b?a:0)+"px";this.u.style.minWidth=a+"px";this.i.style.minHeight=a+"px";this.ca={fh:h,gh:f,Xj:b,scrollHeight:e,scrollWidth:d,Uj:!1,size:a}};
function iD(a){var b=150*a.g.ei+.5*a.g.Fh*Math.pow(150,2);.5>a.g.ei&&(b=0);var c=150*a.g.un,d=kD(a,a.g.wg,a.g.Le);-1===a.g.Le&&(b=-b);if(a.data.virtualMode){var e=a.data.wa.itemHeight;if(Math.abs(b)>=e){var f=0,h=setInterval(function(){f>=Math.ceil(Math.abs(b)/e)||0==d.Ff?clearInterval(h):(f++,d=kD(a,a.g.wg,a.g.Le),gD(a,-1===a.g.Le?-e:Math.min(e,d.Ff)))},4);a.g.Md=b}}else{a.h.style.transition=d.Zh>Math.abs(c)&&Math.abs(c)>Math.abs(b)||d.Ff>Math.abs(b)&&Math.abs(b)>Math.abs(c)?"transform 1.2s ease-out":
.5>=Math.max(d.Zh/c,d.Ff/b)?"transform 0.2s ease-out":"transform 0.4s ease-out";if(5>Math.abs(b)||5>Math.abs(c))a.h.style.transition="";lD(a,c,b)||(a.h.style.transition="");a.h.addEventListener("transitionend",a.Ga);c=fD(a,c,b);hD(a,c.ai);gD(a,c.bi);a.g.Bg=c.ai;a.g.Md=c.bi}}function lD(a,b,c){var d=!1;5>=a.u.scrollTop&&5>=a.i.scrollLeft?d=0>=b&&0>=c:5>=a.u.scrollTop&&mD(a)?d=0<=b&&0>=c:nD(a)&&5>=a.i.scrollLeft?d=0>=b&&0<=c:nD(a)&&mD(a)&&(d=0<=b&&0<=c);return!d}
function nD(a){a=a.u;return 5>Math.abs(a.scrollHeight-a.clientHeight-a.scrollTop)}function mD(a){a=a.i;return 5>Math.abs(a.scrollWidth-a.clientWidth-a.scrollLeft)}function kD(a,b,c){var d=a.ca.scrollWidth-a.scrollLeft-a.ea.width,e=a.ca.scrollHeight-a.scrollTop-a.ea.height;a.ca.fh&&(d+=a.ca.size);a.ca.gh&&(e+=a.ca.size);-1==b&&(d=a.scrollLeft);-1==c&&(e=a.scrollTop);return{Zh:d,Ff:e}}
function fD(a,b,c){var d=kD(a,a.g.wg,a.g.Le);1==a.g.wg&&(b=Math.min(b,d.Zh));1==a.g.Le&&(c=Math.min(c,d.Ff));return{ai:b,bi:c}}
p.Object.defineProperties(UC.prototype,{bb:{configurable:!0,enumerable:!0,get:function(){return"true"===this.u.getAttribute("show")}},Ta:{configurable:!0,enumerable:!0,get:function(){return"true"===this.i.getAttribute("show")}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.ca.fh?this.i.offsetHeight:0}},scrollTop:{configurable:!0,enumerable:!0,get:function(){return this.u.scrollTop},set:function(a){this.bb&&(this.u.scrollTop=a)}},scrollLeft:{configurable:!0,enumerable:!0,get:function(){return this.i.scrollLeft},
set:function(a){this.Ta&&(this.i.scrollLeft=a)}},allowResize:{configurable:!0,enumerable:!0,get:function(){return this.fa},set:function(a){"boolean"===typeof a&&this.allowResize!=a&&(this.fa=a,this.layout(),this.fi.enabled=this.allowResize&&this.data.enabled)}},ea:{configurable:!0,enumerable:!0,get:function(){return{width:this.viewport.offsetWidth,height:this.viewport.offsetHeight}}}});var ZC="hScroll",YC="vScroll",SC="itemClick",jD="resizeEnd",OC=0,PC=1,QC=2,RC=3;function oD(a,b){xe.g=!0;this.data=new kx(b);this.pb=new NC(a,this.data);var c;a=this.data.wa;this.width=a.width;this.height=null!==(c=a.height)&&void 0!==c?c:a.itemHeight*a.visibleItems;this.allowResize=a.allowResize;this.overflow=a.overflow;this.readOnly=a.readOnly;this.enabled=a.enabled;this.valueConsistsOf=a.valueConsistsOf;this.checkBySpace=a.checkBySpace;this.checkOnClick=a.checkOnClick;this.virtualMode=a.virtualMode;this.items=a.items;this.visible=a.visible;this.zb();ae(this.pb.container.parentElement)||
Wx(this.data.h)}g=oD.prototype;g.dispose=function(){this.pb.dispose();this.data.dispose();this.Nb();ce(this.pb.container)};
g.zb=function(){var a=this;this.$c={};this.$c.selectedchanged=new K(this);this.$c.focusedchanged=new K(this);this.$c.checkedchanged=new K(this);this.$c.itemschanged=new K(this);this.$c.itemclick=new K(this);this.$c.resizeend=new K(this);J(this.data,Nx,function(){return a.$c.selectedchanged.ha()});J(this.data,Ox,function(){return a.$c.focusedchanged.ha()});J(this.data,Ex,function(){return a.$c.itemschanged.ha()});J(this.data,Qx,function(){return a.$c.checkedchanged.ha()});J(this.pb,SC,function(b){return a.$c.itemclick.ha(b)});
J(this.pb,jD,function(b){return a.$c.resizeend.ha(b)})};g.Nb=function(){for(var a=fa(Object.values(this.$c)),b=a.next();!b.done;b=a.next())b.value.clear();this.$c=null};g.getElement=function(){return this.pb.container};g.findString=function(a,b){return this.data.findString(a,null!==b&&void 0!==b?b:this.data.wa.displayMemberPath)};g.findStringExact=function(a,b){return this.data.findStringExact(a,null!==b&&void 0!==b?b:this.data.wa.displayMemberPath)};g.filter=function(a){this.data.filter(a)};
g.sort=function(a){this.data.sort(a)};g.clearSelected=function(){this.selectedItem=null};g.clearChecked=function(){this.checkedItems=[]};g.addItem=function(a,b){this.addItems([a],b)};g.addItems=function(a,b){this.data.addItems(a,b)};g.insertItem=function(a,b,c){this.insertItems([a],b,c)};g.insertItems=function(a,b,c){this.data.insertItems(a,b,c)};g.clearItems=function(){this.data.clearItems()};g.addEventListener=function(a,b){a&&(a=this.$c[a.toLowerCase()])&&Un(a,b)};
g.removeEventListener=function(a,b){a&&(a=this.$c[a.toLowerCase()])&&Vn(a,b)};g.ro=function(a){this.pb.la(a)};g.Ef=function(){return this.data.Ef()};function pD(a,b){var c;null===(c=a.data.u.get(b))||void 0===c?void 0:Kx(c)}g.scrollIntoView=function(a){(a=this.data.u.get(a))&&this.pb.scrollIntoView(a)};g.$i=function(){this.pb.$i()};g.Ne=function(a,b,c){return this.data.Ne(a,b,null!==c&&void 0!==c?c:this.data.wa.displayMemberPath)};
g.performKeyDown=function(a,b){this.pb.performKeyDown(a,void 0===b?null:b)};function qD(a){a.pb.layout();a.pb.fa(!1);a=a.pb;a.data.virtualMode&&XC(a.ca)}function rD(a){return wx(a.data).map(function(b){return b.g})}
p.Object.defineProperties(oD.prototype,{displayMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.data.wa.displayMemberPath}},imageMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.data.wa.imageMemberPath}},childrenMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.data.wa.childrenMemberPath}},expandedMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.data.wa.expandedMemberPath}},selectableNodeType:{configurable:!0,enumerable:!0,
get:function(){return this.data.wa.selectableNodeType}},flat:{configurable:!0,enumerable:!0,get:function(){return this.data.wa.flat}},checkBySpace:{configurable:!0,enumerable:!0,get:function(){return this.data.checkBySpace},set:function(a){"boolean"===typeof a&&(this.data.checkBySpace=a)}},checkOnClick:{configurable:!0,enumerable:!0,get:function(){return this.data.checkOnClick},set:function(a){"boolean"===typeof a&&(this.data.checkOnClick=a)}},virtualMode:{configurable:!0,enumerable:!0,get:function(){return this.data.virtualMode},
set:function(a){this.data.virtualMode=a}},selectedItem:{configurable:!0,enumerable:!0,get:function(){var a,b;return null!==(b=null===(a=this.data.ea)||void 0===a?void 0:a.g)&&void 0!==b?b:null},set:function(a){this.data.ea=this.data.u.get(a)}},checkedItems:{configurable:!0,enumerable:!0,get:function(){return this.data.ca.map(function(a){return a.g})},set:function(a){var b=this;Array.isArray(a)&&(this.data.ca=a.map(function(c){return b.data.u.get(c)}).filter(function(c){return null!=c}))}},Mh:{configurable:!0,
enumerable:!0,get:function(){var a,b;return null!==(b=null===(a=this.data.g)||void 0===a?void 0:a.g)&&void 0!==b?b:null},set:function(a){this.data.g=this.data.u.get(a)}},valueConsistsOf:{configurable:!0,enumerable:!0,get:function(){return this.data.valueConsistsOf},set:function(a){this.data.valueConsistsOf=a}},allowResize:{configurable:!0,enumerable:!0,get:function(){return this.pb.g.allowResize},set:function(a){this.pb.g.allowResize=a}},readOnly:{configurable:!0,enumerable:!0,get:function(){return this.data.readOnly},
set:function(a){this.data.readOnly=a}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.data.enabled},set:function(a){this.data.enabled=a}},visible:{configurable:!0,enumerable:!0,get:function(){return this.data.visible},set:function(a){this.data.visible=a}},width:{configurable:!0,enumerable:!0,get:function(){return this.pb.width},set:function(a){this.pb.width=a}},height:{configurable:!0,enumerable:!0,get:function(){return this.pb.height},set:function(a){this.pb.height=a}},overflow:{configurable:!0,
enumerable:!0,get:function(){return this.pb.overflow},set:function(a){this.pb.overflow=a}},items:{configurable:!0,enumerable:!0,get:function(){return this.data.items},set:function(a){this.data.items=a}},se:{configurable:!0,enumerable:!0,get:function(){return this.data.se},set:function(a){"boolean"===typeof a&&(this.data.se=a)}},tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.pb.container.tabIndex},set:function(a){"number"===typeof a&&(this.pb.container.tabIndex=a)}}});function sD(a,b,c){SB.call(this,b);this.vb=a;this.data=c;a=document.createElement("div");this.Na.getElement().appendChild(a);this.g=new oD(a,this.data.na);this.g.tabIndex=-1;a=document.createElement("div");a.classList.add("gcim_empty_template");a.innerHTML=this.data.emptyTemplate;a.classList.add("gcim_hidden");this.ea=a;this.Na.getElement().appendChild(this.ea);tD(this)}t(sD,SB);g=sD.prototype;g.dispose=function(){this.g.dispose();SB.prototype.dispose.call(this)};
function tD(a){a.g.addEventListener("itemschanged",function(){return a.Fa()});a.g.addEventListener("resizeend",function(b,c){a.Ga(c);a.data.i.Jl=!0});a.Na.getElement().addEventListener("mousedown",function(b){a.vb.setFocusInternal();b.preventDefault()})}g.setItems=function(a){this.g.items=a};g.getItems=function(){return this.g.items};g.addItem=function(a,b){this.g.addItem(a,b)};g.addItems=function(a,b){this.g.addItems(a,b)};g.insertItem=function(a,b,c){this.g.insertItem(a,c,b)};
g.insertItems=function(a,b,c){this.g.insertItems(a,c,b)};g.clearItems=function(){this.g.clearItems()};g.setAllowResize=function(a){this.g.allowResize=a};g.So=function(){return this.g.allowResize};g.setReadOnly=function(a){this.g.readOnly=a};g.setEnabled=function(a){this.g.enabled=a};g.filter=function(a){this.h=a;this.g.filter(a)};g.sort=function(a){this.g.sort(a)};g.getValue=function(){};g.setValue=function(){};
g.Cp=function(){var a=this;return{getWidth:function(){return a.g.getElement().style.width},Yg:function(){return a.g.getElement().style.height},setWidth:function(b){"string"===typeof b&&(b=Number(b.replace("px","")));"number"!==typeof b||isNaN(b)||(a.g.width=b,a.data.i.Il=!0)},setHeight:function(b){"string"===typeof b&&(b=Number(b.replace("px","")));"number"!==typeof b||isNaN(b)||(a.g.height=b)}}};
function uD(a,b){var c=a.Na.getElement().querySelector(".gcim__treeview");b?(a.ea.classList.remove("gcim_hidden"),c&&(a.ea.style.width=c.style.width,c.classList.add("gcim_hidden"))):(a.ea.classList.add("gcim_hidden"),c&&c.classList.remove("gcim_hidden"))}function vD(a){var b=a.data.i;!G(b.Hj)&&"auto"!==b.Hj||b.Il||b.Jl||(a.g.width=a.vb.getLayoutElement().offsetWidth)}function wD(a,b){return!a.data.emptyTemplate||(void 0===b?0:b)&&a.g.data.h.la?!1:0>=a.g.Ef()}
function xD(a,b){var c=b.Event;if(a.data.h)if(!c.altKey||"ArrowDown"!=c.key&&"ArrowUp"!=c.key)if("Escape"==c.key)var d=YB;else return;else"ArrowDown"==c.key&&(d=ZB),"ArrowUp"==c.key&&(d=YB),b.Cancel=!0;else switch(c.key){case "ArrowDown":d=c.altKey?ZB:$B;b.Cancel=!0;break;case "ArrowUp":d=c.altKey?YB:aC;b.Cancel=!0;break;case "Escape":d=YB;break;case "Enter":a.isOpened()&&(d=bC,c.preventDefault());break;case " ":a.Na.isOpened()&&a.data.checkBySpace&&a.sa&&a.va&&(b.Cancel=!0,d=cC);break;case "PageUp":case "PageDown":b.Cancel=
!0;d=dC;break;case "End":case "Home":a.Na.isOpened()&&(b.Cancel=!0,d=dC);break;case "ArrowLeft":case "ArrowRight":a.Na.isOpened()&&(d=dC)}return d}
p.Object.defineProperties(sD.prototype,{sa:{configurable:!0,enumerable:!0,get:function(){var a=this.g.data.g;return a&&(a.h||!this.g.data.i)}},va:{configurable:!0,enumerable:!0,get:function(){var a=this.g.data.g;return a&&a.visible}},imageMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.g.imageMemberPath}},childrenMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.g.childrenMemberPath}},expandedMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.g.expandedMemberPath}},
selectableNodeType:{configurable:!0,enumerable:!0,get:function(){return this.g.selectableNodeType}},flat:{configurable:!0,enumerable:!0,get:function(){return this.g.flat}},valueConsistsOf:{configurable:!0,enumerable:!0,get:function(){return this.g.valueConsistsOf},set:function(a){this.g.valueConsistsOf=a}}});
function yD(a,b,c){sD.call(this,a,b,c);var d=this;this.ca=!1;this.ka=function(e){a:{var f=d.vb.getLayoutElement();for(var h=document.activeElement;h;){if(h===f){f=!0;break a}h=h.parentElement}f=!1}if(f){if(d.Na.isOpened())d.g.ro(e);else{if(!d.data.spinWheel||(e.target||e.srcElement)!==d.vb.getUIInputElement())return;zD(d,e)}e.preventDefault()}};this.ga=function(){d.i.ca=d.vb.getDisplayText();AD(d)};this.s=function(){d.i.selectedItem=d.g.selectedItem;BD(d)};this.na=function(e,f){if(!d.g.data.i||d.g.data.u.get(f).h)d.data.h||
d.i.selectedItem===f||(d.i.selectedItem=f,BD(d)),d.close()};this.g.se=!0;this.zb()}t(yD,sD);g=yD.prototype;g.dispose=function(){this.ka=null;sD.prototype.dispose.call(this)};
g.zb=function(){var a=this;this.g.addEventListener("itemclick",this.na);this.g.addEventListener("selectedchanged",this.s);var b=Va?"DOMMouseScroll":"mousewheel";this.vb.getLayoutElement().addEventListener(b,this.ka,{passive:!1});this.vb.onKeyDown(function(c,d){a.onKeyDown(c,d,4)});this.Na.onOpen(function(){Wx(a.g.data.h);a.g.se=!1;a.ca||(a.g.filter(a.h),a.g.$i(),a.autoSelect());vD(a);uD(a,wD(a,!0));qD(a.g);a.onOpened()});this.Na.onClose(function(){a.g.se=!0;a.ca||a.g.filter(a.h);a.la()});this.vb.onInput(this.ga);
this.vb.onFocusOut(function(){a.ca||a.g.filter(a.h);window.clearTimeout(a.fa)})};g.setSelectedValue=function(a){var b=this;this.g.data.ea=this.g.data.find(function(c){return oy(c.g,b.data.valueMemberPath)===a},!1)};g.setSelectedItem=function(a){this.g.selectedItem=a};g.setCheckedValues=function(){};g.setCheckedItems=function(){};g.clearSelected=function(){this.g.clearSelected()};g.clearChecked=function(){};g.Kl=function(a){this.i.ca=a;this.g.selectedItem=null;BD(this,!0)};
function CD(a,b){a.g.selectedItem=b;a.g.Mh=b}g.autoSelect=function(){try{this.g.removeEventListener("selectedchanged",this.s);var a=this.i.selectedItem,b=this.data.Ph();a?CD(this,a):b?CD(this,this.g.findStringExact(b)||this.g.findString(b)):CD(this,null);pD(this.g,this.g.Mh);this.g.scrollIntoView(this.g.Mh)}finally{this.g.addEventListener("selectedchanged",this.s)}};
function BD(a,b,c){b=void 0===b?!1:b;c=void 0===c?"":c;try{a.vb.removeInput(a.ga),a.vb.Ll(c?c:a.data.Ph(),b)}finally{a.vb.onInput(a.ga)}}
function AD(a){a.fa&&clearTimeout(a.fa);a.fa=setTimeout(function(){try{a.g.removeEventListener("selectedchanged",a.s);var b=a.i.ca,c="none"!==a.data.autoCompleteMode,d,e;if("none"!==a.data.autoFilter||c){var f=[];Array.isArray(a.h)?f=f.concat(a.h):"function"===typeof a.h&&f.push(a.h);b&&(b.length>=a.data.minPrefixLength||c)&&f.push({name:a.data.displayMemberPath,comparator:c?a.data.autoCompleteMatchMode:a.data.autoFilter,filterString:b});a.g.filter(f)}a.data.autoSelect&&b&&(d=a.g.findStringExact(b)||
a.g.findString(b));if(c&&(b&&(e=a.g.findStringExact(b)||a.g.Ne(b,a.data.autoCompleteMatchMode.toString())),e)){if(!a.vb.ql()){var h=e[a.data.displayMemberPath].toString();BD(a,!1,b+h.substring(b.length));a.i.ca=b+h.substring(b.length);a.g.selectedItem=null}fu(a.vb.Tc(),b.length,a.vb.text.length)}CD(a,d);pD(a.g,d);pD(a.g,e);if(a.vb.getUIInputElement()===document.activeElement){a.ca=!0;var k=0>=a.g.Ef(),l="none"!==a.data.autoFilter||"none"!==a.data.autoCompleteMode,m=a.data.autoSelect,n=!Jd(a.vb.getText()),
q="suggestappend"===a.data.autoCompleteMode,u="append"===a.data.autoCompleteMode;b=k||n&&!l&&m||u;(((l||m&&!n)&&!k||q&&!n)&&!b&&a.Na.isClosed()||wD(a))&&a.open();!b||a.Na.isClosed()||wD(a)||a.close();uD(a,wD(a,!0));qD(a.g);a.ca=!1}(d=e||d)?a.g.scrollIntoView(d):a.g.$i()}finally{a.g.addEventListener("selectedchanged",a.s)}})}
function zD(a,b){if(0<od(b))a.onKeyDown(a.vb,{Event:{keyCode:40,key:"ArrowDown",preventDefault:function(){}},Cancel:!1},1);else a.onKeyDown(a.vb,{Event:{keyCode:38,key:"ArrowUp",preventDefault:function(){}},Cancel:!1},1)}
g.onKeyDown=function(a,b,c){if(a=xD(this,b)){var d=this.vb.selectionStart,e=this.vb.getSelectionLength()===this.vb.text.length-this.vb.selectionStart&&0!==this.vb.getSelectionLength(),f={isOpened:this.isOpened(),Yr:"none"!==this.data.autoCompleteMode&&e,autoCompleteMatchMode:this.data.autoCompleteMatchMode,xr:this.vb.text.substring(0,this.vb.selectionStart)};switch(a){case YB:this.Na.isOpened()&&this.close();break;case ZB:this.Na.isClosed()&&this.open();break;case $B:0!==(this.u&c)&&(this.g.performKeyDown(b.Event,
f),this.onSpinDown());"none"!==this.data.autoCompleteMode&&e&&fu(this.vb.Tc(),d,this.vb.text.length);break;case aC:0!==(this.u&c)&&(this.g.performKeyDown(b.Event,f),this.onSpinUp());"none"!==this.data.autoCompleteMode&&e&&fu(this.vb.Tc(),d,this.vb.text.length);break;case dC:this.g.performKeyDown(b.Event,f);break;case bC:(c=this.g.data.g)&&this.g.data.i&&!c.h?this.g.performKeyDown(b.Event):(this.g.selectedItem&&this.s(),this.close())}}};
p.Object.defineProperties(yD.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return this.data}}});
function DD(a,b,c){sD.call(this,a,b,c);var d=this;this.lo=function(){if(d.g.data.Ga){var e=d.i.Ph();if(e){var f=[];d.vb.getDisplayText().split(d.data.s).forEach(function(l){return f.push(l)});var h=new Set;rD(d.g).forEach(function(l){return h.add(oy(l,d.i.displayMemberPath).toString())});var k=f.filter(function(l){return!h.has(l)});k.unshift(e);ED(d,!1,k.join(d.data.s))}}};this.s=function(){d.i.selectedItems=d.g.checkedItems;ED(d)};this.ca=function(){try{d.g.removeEventListener("checkedchanged",d.s);
d.g.addEventListener("checkedchanged",d.fa);var e={},f=[];d.vb.getDisplayText().split(d.data.s).forEach(function(h){return e[h]=!0});d.g.data.forEach(function(h){var k=oy(h.g,d.i.displayMemberPath).toString();e[k]&&(f.push(h.g),delete e[k])},!1);d.setCheckedItems(f)}finally{d.g.addEventListener("checkedchanged",d.s),d.g.removeEventListener("checkedchanged",d.fa)}};this.fa=function(){d.i.selectedItems=d.g.checkedItems};this.i.ga=!1;this.zb()}t(DD,sD);g=DD.prototype;
g.zb=function(){var a=this;this.vb.onKeyDown(function(b,c){a.onKeyDown(b,c,4)});this.g.addEventListener("checkedchanged",this.s);this.Na.onOpen(function(){Wx(a.g.data.h);a.g.filter(a.h);a.g.$i();a.g.Mh=null;vD(a);uD(a,wD(a,!0));qD(a.g);a.onOpened()});this.Na.onClose(function(){a.g.filter(a.h);a.la()});this.vb.onInput(this.ca);this.vb.lo(this.lo);J(this.g.data,Rx,function(){return a.data.fa()})};g.setSelectedValue=function(){};g.setSelectedItem=function(){};
g.setCheckedValues=function(a){var b=this;this.g.data.ca=a.map(function(c){return b.g.data.find(function(d){return oy(d.g,b.data.valueMemberPath)===c},!1)})};g.setCheckedItems=function(a){this.g.checkedItems=a};g.clearSelected=function(){};g.clearChecked=function(){this.g.clearChecked()};g.Kl=function(a){this.clearChecked();ED(this,!0,a)};function ED(a,b,c){b=void 0===b?!1:b;c=void 0===c?"":c;try{a.vb.removeInput(a.ca),a.vb.Ll(c?c:a.i.Ph(),b)}finally{a.vb.onInput(a.ca)}}
g.onKeyDown=function(a,b,c){if(a=xD(this,b))switch(a){case YB:this.Na.isOpened()&&this.close();break;case ZB:this.Na.isClosed()&&this.open();break;case $B:0!==(this.u&c)&&(this.g.performKeyDown(b.Event),this.onSpinDown());break;case aC:0!==(this.u&c)&&(this.g.performKeyDown(b.Event),this.onSpinUp());break;case cC:case dC:case bC:this.g.performKeyDown(b.Event)}};p.Object.defineProperties(DD.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return this.data}}});function FD(a,b){this.ic=null;this.u=a;this.ic=a.style.cssText;this.ce=a.innerHTML;xe.g=!0;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();var d;c=A("div",{class:"gcim__combobox"},d=A("input",{type:"text",class:"combobox-input","data-nested":"true"}));"select"==a.tagName.toLowerCase()?(F(a.getAttribute("style"))||c.setAttribute("style",a.getAttribute("style")),a.style.setProperty("display","none","important"),a.parentElement.insertBefore(c,a),c.appendChild(a),c.className+=" "+a.className,
this.ea=c):(a.appendChild(c),this.ea=a);a["IMJS-CTRL"]=this;$d("select"==a.tagName.toLowerCase()?c:a,this.componentName);this.m=ry(a,b);GD(this,d,this.ea);HD(this);this.g.wn=this.pe();this.setReadOnly(b&&b.readOnly?b.readOnly:!1);this.initEvent();ID(this);this.g.initComplete=!0}g=FD.prototype;
g.destroy=function(){this.Nb();this.h&&this.h.dispose();this.g.destroy();this.m.dispose();ce("select"==this.u.tagName.toLowerCase()?this.ea:this.u);delete this.u["IMJS-CTRL"];if("select"===this.u.tagName.toLowerCase()){var a=this.ea.parentNode;a&&a.replaceChild(this.u,this.ea)}else this.u.innerHTML=this.ce;this.ic?this.u.setAttribute("style",this.ic):this.u.removeAttribute("style");he(this)};
function GD(a,b,c){a.g=new Rv(b,a.m.la,c);a.g.getExtensionEl().setAttribute("control-type-name",a.componentName);a.setEditable(a.m.isEditable);a.m.showSpinButton&&("leftside"===a.m.spinButtonPosition?a.addSpinButton(!0):a.addSpinButton(!1));a.bb=function(){a.h&&(a.m.isEditable||a.m.h||a.h.toggleOpen())}.bind(a);a.g.getUIInputElement().addEventListener("click",a.bb)}function ID(a){a.g.Wm=!a.h||a.m.isEditable||a.m.h?!0:!1}
function HD(a){a.ca=a.g.createDropDown(a.m.ta,!0);a.h=JD(a);a.h.onSpinUp=function(){return a.Ma.ha()};a.h.onSpinDown=function(){return a.La.ha()};a.dropDownButtonVisible=a.m.ea}function JD(a){return"tree"===a.m.dropDownType?a.m instanceof qy?new DD(a.g,a.ca,a.m):new yD(a.g,a.ca,a.m):a.m instanceof qy?new oC(a.g,a.ca,a.m):new gC(a.g,a.ca,a.m)}
g.initEvent=function(){var a=this;this.Fa=new K(this);this.fa=new K(this);this.la=new K(this);this.ka=new K(this);this.Ta=new K(this);this.Ma=new K(this);this.La=new K(this);this.ta=new K(this);this.ga=new K(this);this.va=new K(this);this.na=new K(this);this.sa=new K(this);this.Ga=new K(this);this.m.ka=function(){return a.Fa.ha()};this.m.fa=function(){return a.fa.ha()};this.h.onOpened=function(){return a.ka.ha()};this.h.la=function(){return a.la.ha()};this.h.Fa=function(){return a.ta.ha()};this.h.Ga=
function(b){return a.va.ha(b)};this.g.onTextChanged(function(){a.Ta.ha()});this.g.onFocusOut(function(){return a.na.ha()});this.g.onKeyDown(function(b,c){return a.sa.ha(c)});this.g.onKeyUp(function(b,c){return a.Ga.ha(c)});this.i||this.s.list.addEventListener("columnresizeend",function(b,c){return a.ga.ha(c)})};
g.Nb=function(){this.Fa.clear();this.fa.clear();this.la.clear();this.ka.clear();this.Ta.clear();this.Ma.clear();this.La.clear();this.ta.clear();this.ga.clear();this.va.clear();this.na.clear();this.sa.clear();this.Ga.clear();this.g.getUIInputElement().removeEventListener("click",this.bb)};g.addEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Un(a,b)};g.removeEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Vn(a,b)};
g.Pb=function(a){var b={};b.selectedchanged=this.Fa;b.checkedchanged=this.fa;b.dropdownclosed=this.la;b.dropdownopened=this.ka;b.textchanged=this.Ta;b.focusout=this.na;b.spinup=this.Ma;b.spindown=this.La;b.itemschanged=this.ta;b.keydown=this.sa;b.keyup=this.Ga;b.columnresizeend=this.ga;b.resizeend=this.va;return b[a]};g.getSelectedIndex=function(){return this.i?-1:this.s.getSelectedIndex()};g.getSelectedItem=function(){return this.m.getSelectedItem()};g.getSelectedValue=function(){return this.m.getSelectedValue()};
g.setSelectedIndex=function(a){G(a)||this.i||this.s.setSelectedIndex(a,!0)};g.setSelectedValue=function(a){this.h.setSelectedValue(a)};g.setSelectedItem=function(a){G(a)||this.h.setSelectedItem(a)};g.getCheckedIndices=function(){return this.i?[]:this.s.getCheckedIndices()};g.getCheckedItems=function(){return this.i&&this.m instanceof qy?rD(this.h.g):this.m.getCheckedItems()};
g.getCheckedValues=function(){var a=this;return this.i&&this.m instanceof qy?this.getCheckedItems().map(function(b){return oy(b,a.m.valueMemberPath)}):this.m.getCheckedValues()};g.setCheckedIndices=function(a){G(a)||this.i||this.s.setCheckedIndices(a)};g.setCheckedValues=function(a){G(a)||this.h.setCheckedValues(a)};g.setCheckedItems=function(a){G(a)||this.h.setCheckedItems(a)};g.clearSelected=function(){this.h.clearSelected()};g.clearChecked=function(){this.h.clearChecked()};
g.setItems=function(a){G(a)||this.h.setItems(a)};g.getItems=function(){return this.h.getItems()};g.addItem=function(a,b){this.h.addItem(a,b)};g.addItems=function(a,b){this.h.addItems(a,b)};g.insertItems=function(a,b,c){this.h.insertItems(a,b,c)};g.clearItems=function(){this.h.clearItems()};g.insertItem=function(a,b,c){this.h.insertItem(a,b,c)};g.findString=function(a,b,c){return this.i?-1:this.s.list.findString(a,b,c)};
g.findStringExact=function(a,b,c){return this.i?-1:this.s.list.findStringExact(a,b,c)};g.findStringInAll=function(a,b){return this.i?-1:this.s.list.findStringInAll(a,b)};g.findStringExactInAll=function(a,b){return this.i?-1:this.s.list.findStringExactInAll(a,b)};g.setAllowDropDownResize=function(a){this.h.setAllowResize(a)};g.setAllowColumnResize=function(a){this.i||this.s.list.setAllowColumnResize(a)};g.getDisplayText=function(){return this.g.getText()};
g.addSpinButton=function(a){var b=this;this.g.Jk(function(){b.g.setFocusInternal();KD(b,2);LD(b)},function(){b.g.setFocusInternal();MD(b,2);LD(b)},a)};function LD(a){a.g.getUIInputElement().readOnly&&a.g.getUIInputElement().setSelectionRange(0,0)}g.filter=function(a){this.h.filter(a)};g.sort=function(a){this.h.sort(a)};g.setAutoFilter=function(a){a=I(Sv,a);null!==a&&(this.m.autoFilter=a)};g.setAutoSelect=function(a){this.m.autoSelect=a};g.doSpinDown=function(a){MD(this,7,a)};
g.doSpinUp=function(a){KD(this,7,a)};g.setEditable=function(a){this.m.isEditable=a;ND(this);ID(this)};g.setReadOnly=function(a){this.m.h!==!!a&&(this.m.h=!!a,ND(this),this.h.setReadOnly(this.m.h),ID(this))};function ND(a){a.m.h||!a.m.isEditable?a.g.setReadOnly(!0):a.g.setReadOnly(!1)}g.getReadOnly=function(){return this.m.h};function MD(a,b,c){a.h.onKeyDown(a.g,{Event:{keyCode:40,key:"ArrowDown",preventDefault:function(){},Rj:c},Cancel:!1},b)}
function KD(a,b,c){a.h.onKeyDown(a.g,{Event:{keyCode:38,key:"ArrowUp",preventDefault:function(){},Rj:c},Cancel:!1},b)}g.setWatermarkDisplayNullText=function(a){this.g.setWatermarkDisplayNullText(a)};g.jf=function(){return this.g.jf()};g.setWatermarkNullText=function(a){this.g.setWatermarkNullText(a)};g.kf=function(){return this.g.kf()};g.setAcceptsCrlf=function(a){this.g.setAcceptsCrlf(a)};g.Xf=function(){return this.g.Xf()};g.setEditMode=function(a){this.g.setEditMode(a)};g.ef=function(){return this.g.ef()};
g.setEllipsis=function(a){this.g.setEllipsis(a)};g.Yk=function(){return this.g.Yk()};g.setEllipsisString=function(a){this.g.setEllipsisString(a)};g.Zk=function(){return this.g.Zk()};g.setExitOnLeftRightKey=function(a){this.g.setExitOnLeftRightKey(a)};g.ff=function(){return this.g.ff()};g.setHighlightText=function(a){this.g.setHighlightText(a)};g.gf=function(){return this.g.gf()};g.getIsOverwrite=function(){return this.g.getIsOverwrite()};g.setUseClipboard=function(a){this.g.setUseClipboard(a)};
g.getUseClipboard=function(){return this.g.getUseClipboard()};g.setExitOnEnterKey=function(a){this.g.setExitOnEnterKey(a)};g.yd=function(){return this.g.yd()};g.setShowTip=function(a){this.i||this.s.list.setShowTip(a)};g.setEnabled=function(a){this.g.setEnabled(a);this.h.setEnabled(a)};g.getEnabled=function(){return this.g.getEnabled()};g.setVisible=function(a){this.g.setVisible(a)};g.Yf=function(){return this.g.Yf()};g.updateColumnAutoFit=function(a){this.i||this.s.list.updateColumnAutoFit(a)};
g.getDropDownWindow=function(){return this.ca};g.setContainer=function(a){this.g.setContainer(a)};g.getContainer=function(){return this.g.getContainer()};g.setAutoDropDown=function(a){this.g.setAutoDropDown(a)};g.Kj=function(){return this.g.Kj()};g.setDropDownButtonVisible=function(a){this.g.setDropDownButtonVisible(a);this.m.ea=a};g.setText=function(a){void 0!==a&&null!==a&&(a=a.toString());this.h.Kl(a)};g.setSpinWheel=function(a){this.m.spinWheel=a};g.Qh=function(){return this.m.spinWheel};
g.setFocus=function(){this.g.setFocus()};g.setSelectionStart=function(a){this.g.setSelectionStart(a)};g.selectAll=function(){this.g.selectAll()};g.getTargetControl=function(){return this.g};g.setShowClearButton=function(a){this.g.setShowClearButton(a)};g.Rn=function(){return this.g.Rn()};g.setAutoScale=function(a){this.g.setAutoScale(a)};g.Wk=function(){return this.g.Wk()};g.setMinScaleFactor=function(a){this.g.setMinScaleFactor(a)};g.al=function(){return this.g.al()};g.autoScaleText=function(){this.g.autoScaleText()};
g.getDropDownColumnWidth=function(a){if(this.i)return null;for(var b=null,c=fa(this.s.list.m.i),d=c.next();!d.done;d=c.next())if(d=d.value,d.name===a){b=d.width;break}return b};g.setDropDownColumnWidth=function(a,b){this.i||(b=Math.max(30,parseFloat(b+"")),this.s.list.updateColumnWidth(a,b))};g.getHost=function(){return this.ea};g.pe=function(){return this.h.pe()};g.getEditor=function(){return this.g};g.setCopiedTipTime=function(a){this.g.setCopiedTipTime(a)};
g.adjustDropDownListWidth=function(){if(!this.i){var a=this.s;a.g.resizeWidth(a.h.getLayoutElement().offsetWidth)}};g.getMatchValue=function(){return this.getDisplayText()};
p.Object.defineProperties(FD.prototype,{selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedIndex()},set:function(a){this.setSelectedIndex(a)}},selectedItem:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedItem()},set:function(a){this.setSelectedItem(a)}},selectedValue:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedValue()},set:function(a){this.setSelectedValue(a)}},checkedIndices:{configurable:!0,enumerable:!0,get:function(){return this.getCheckedIndices()},
set:function(a){this.setCheckedIndices(a)}},checkedItems:{configurable:!0,enumerable:!0,get:function(){return this.getCheckedItems()},set:function(a){this.setCheckedItems(a)}},checkedValues:{configurable:!0,enumerable:!0,get:function(){return this.getCheckedValues()},set:function(a){this.setCheckedValues(a)}},items:{configurable:!0,enumerable:!0,get:function(){return this.getItems()},set:function(a){this.setItems(a)}},displayText:{configurable:!0,enumerable:!0,get:function(){return this.getDisplayText()}},
readOnly:{configurable:!0,enumerable:!0,get:function(){return this.getReadOnly()},set:function(a){this.setReadOnly(a)}},isOverwrite:{configurable:!0,enumerable:!0,get:function(){return this.getIsOverwrite()}},dropDownWindow:{configurable:!0,enumerable:!0,get:function(){return this.getDropDownWindow()}},allowDropDownResize:{configurable:!0,enumerable:!0,get:function(){return this.h.So()},set:function(a){this.setAllowDropDownResize(a)}},allowColumnResize:{configurable:!0,enumerable:!0,get:function(){return this.i?
!1:this.s.list.m.allowColumnResize},set:function(a){this.setAllowColumnResize(a)}},text:{configurable:!0,enumerable:!0,get:function(){return this.getDisplayText()},set:function(a){this.setText(a)}},autoFilter:{configurable:!0,enumerable:!0,get:function(){return this.m.autoFilter},set:function(a){this.setAutoFilter(a)}},autoSelect:{configurable:!0,enumerable:!0,get:function(){return this.m.autoSelect},set:function(a){this.setAutoSelect(a)}},editable:{configurable:!0,enumerable:!0,get:function(){return this.m.isEditable},
set:function(a){this.setEditable(a)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.jf()},set:function(a){this.setWatermarkDisplayNullText(a)}},watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.kf()},set:function(a){this.setWatermarkNullText(a)}},ellipsis:{configurable:!0,enumerable:!0,get:function(){return this.Yk()},set:function(a){this.setEllipsis(a)}},acceptsCrlf:{configurable:!0,enumerable:!0,get:function(){return this.Xf()},set:function(a){this.setAcceptsCrlf(a)}},
acceptsTabChar:{configurable:!0,enumerable:!0,get:function(){return this.g.acceptsTabChar},set:function(a){this.g.acceptsTabChar=a}},ellipsisString:{configurable:!0,enumerable:!0,set:function(a){this.setEllipsisString(a)},get:function(){return this.Zk()}},editMode:{configurable:!0,enumerable:!0,get:function(){return this.ef()},set:function(a){this.setEditMode(a)}},exitOnLeftRightKey:{configurable:!0,enumerable:!0,get:function(){return this.ff()},set:function(a){this.setExitOnLeftRightKey(a)}},highlightText:{configurable:!0,
enumerable:!0,get:function(){return this.gf()},set:function(a){this.setHighlightText(a)}},useClipboard:{configurable:!0,enumerable:!0,get:function(){return this.getUseClipboard()},set:function(a){this.setUseClipboard(a)}},exitOnEnterKey:{configurable:!0,enumerable:!0,get:function(){return this.yd()},set:function(a){this.setExitOnEnterKey(a)}},showTip:{configurable:!0,enumerable:!0,get:function(){return this.i?!1:this.s.list.m.showTip},set:function(a){this.setShowTip(a)}},enabled:{configurable:!0,
enumerable:!0,get:function(){return this.getEnabled()},set:function(a){this.setEnabled(a)}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Yf()},set:function(a){this.setVisible(a)}},container:{configurable:!0,enumerable:!0,get:function(){return this.getContainer()},set:function(a){this.setContainer(a)}},autoDropDown:{configurable:!0,enumerable:!0,get:function(){return this.Kj()},set:function(a){this.setAutoDropDown(a)}},dropDownButtonVisible:{configurable:!0,enumerable:!0,get:function(){return this.m.ea},
set:function(a){this.setDropDownButtonVisible(a)}},spinButtonVisible:{configurable:!0,enumerable:!0,set:function(a){this.g.spinButtonVisible=a}},spinWheel:{configurable:!0,enumerable:!0,get:function(){return this.Qh()},set:function(a){this.setSpinWheel(a)}},showClearButton:{configurable:!0,enumerable:!0,get:function(){return this.Rn()},set:function(a){this.setShowClearButton(a)}},showHelpButton:{configurable:!0,enumerable:!0,get:function(){return this.g.Gi},set:function(a){this.g.ek(a)}},showCopyButton:{configurable:!0,
enumerable:!0,get:function(){return this.g.Fi},set:function(a){this.g.dk(a)}},helpContent:{configurable:!0,enumerable:!0,get:function(){return this.g.helpContent},set:function(a){this.g.helpContent=a}},copyMessage:{configurable:!0,enumerable:!0,get:function(){return this.g.copyMessage},set:function(a){this.g.copyMessage=a}},copiedMessage:{configurable:!0,enumerable:!0,get:function(){return this.g.copiedMessage},set:function(a){this.g.copiedMessage=a}},autoScale:{configurable:!0,enumerable:!0,get:function(){return this.Wk()},
set:function(a){this.setAutoScale(a)}},minScaleFactor:{configurable:!0,enumerable:!0,get:function(){return this.al()},set:function(a){this.setMinScaleFactor(a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcComboBox"}},spinButton:{configurable:!0,enumerable:!0,set:function(a){this.addSpinButton("leftside"===a)}},multipleItemSeparator:{configurable:!0,enumerable:!0,set:function(a){this.m.s=a},get:function(){return this.m.s}},tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.g.tabIndex},
set:function(a){this.g.tabIndex=a}},autoCompleteMode:{configurable:!0,enumerable:!0,get:function(){return this.m.autoCompleteMode},set:function(a){a=I(Tv,a);null!==a&&(this.m.autoCompleteMode=a)}},autoCompleteMatchMode:{configurable:!0,enumerable:!0,get:function(){return this.m.autoCompleteMatchMode},set:function(a){a=I(Uv,a);null!==a&&(this.m.autoCompleteMatchMode=a)}},floatingLabelText:{configurable:!0,enumerable:!0,get:function(){return this.g.floatingLabelText},set:function(a){this.g.floatingLabelText=
a}},floatingLabelType:{configurable:!0,enumerable:!0,get:function(){return this.g.floatingLabelType},set:function(a){this.g.floatingLabelType=a}},floatingLabelDirection:{configurable:!0,enumerable:!0,get:function(){return this.g.floatingLabelDirection},set:function(a){this.g.floatingLabelDirection=a}},width:{configurable:!0,enumerable:!0,set:function(a){this.g.width=a},get:function(){return this.g.width}},height:{configurable:!0,enumerable:!0,set:function(a){this.g.height=a},get:function(){return this.g.height}},
minWidth:{configurable:!0,enumerable:!0,get:function(){return this.g.minWidth},set:function(a){this.g.minWidth=a}},minHeight:{configurable:!0,enumerable:!0,get:function(){return this.g.minHeight},set:function(a){this.g.minHeight=a}},maxWidth:{configurable:!0,enumerable:!0,get:function(){return this.g.maxWidth},set:function(a){this.g.maxWidth=a}},maxHeight:{configurable:!0,enumerable:!0,get:function(){return this.g.maxHeight},set:function(a){this.g.maxHeight=a}},fontSize:{configurable:!0,enumerable:!0,
set:function(a){this.g.fontSize=a},get:function(){return this.g.fontSize}},dropDown:{configurable:!0,enumerable:!0,get:function(){return this.ca}},allowSpin:{configurable:!0,enumerable:!0,set:function(a){var b=this.h;"number"===typeof a&&b.u!==a&&(b.u=a)}},checkBySpace:{configurable:!0,enumerable:!0,get:function(){return this.m.checkBySpace},set:function(a){this.m.checkBySpace=a}},dropDownType:{configurable:!0,enumerable:!0,get:function(){return this.m.dropDownType}},displayMemberPath:{configurable:!0,
enumerable:!0,get:function(){return this.m.displayMemberPath}},valueMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.m.valueMemberPath}},i:{configurable:!0,enumerable:!0,get:function(){return"tree"==this.m.dropDownType}},s:{configurable:!0,enumerable:!0,get:function(){return this.h}},dropDownList:{configurable:!0,enumerable:!0,get:function(){return this.i?null:this.s.list}},dropDownTree:{configurable:!0,enumerable:!0,get:function(){return this.i?this.h:null}},showContextMenu:{configurable:!0,
enumerable:!0,set:function(a){this.g.showContextMenu=a}}});v("GcComboBox",FD);function OD(a){F(a)||"function"!==typeof a.getTargetControl||(a=a.getTargetControl(),Object.values(jq).includes(a.gcInternalControlType)&&"NoValidator"!==a.gcInternalControlType&&(this.g=a))}function PD(){OD.apply(this,arguments)}t(PD,OD);function QD(a,b){PD.call(this,a);var c=this;this.sa=w.NotifierDefaultFailMessage;this.ta=w.NotifierDefaultSuccessMessage;this.ka="ballontip";this.Fa=["right","bottom","left","top"];this.ca="right";this.s="balanced";this.ea="";this.la=[];this.fa=this.sa;this.ga=this.ta;this.na=function(){c.onClear()};this.va=function(d){d=d||window.event;"function"===typeof d.preventDefault?d.preventDefault():"boolean"===typeof d.returnValue&&(d.returnValue=!1)};this.g.isInitialized()?(RD(this,b),this.g.adjustControlMargin()):
this.g.addEventListener("init",function(){RD(c,b);c.g.adjustControlMargin()})}t(QD,PD);g=QD.prototype;g.setDirection=function(a){var b;a=I(Id,a);if(this.h&&this.ca!==a&&null!==a){if(!SD(this.i,this.h,TD(this),a,this.s,UD(this))&&"ballontip"===this.style&&(a=VD(this.i,this.h,TD(this),this.la||Hd(),this.s,UD(this)),null===a))return;this.ca=a;WD(this);null===(b=this.h)||void 0===b?void 0:b.setAttribute("tip-direction",this.direction)}};
g.setPosition=function(a){var b;a=I(hq,a);this.s!==a&&null!==a&&(this.s=a,WD(this),null===(b=this.h)||void 0===b?void 0:b.setAttribute("tip-position",this.position))};g.hf=function(){return this.s};g.setTemplate=function(a){this.ea!==a&&"string"===typeof a&&""!==a&&(this.ea=a,XD(this))};g.setDirectionPriority=function(a){if(Array.isArray(a)){var b=[];a.forEach(function(c){null!==I(Id,c)&&b.push(I(Id,c))});this.la=b}};
g.setFailMessage=function(a){this.fa!==a&&"string"===typeof a&&(""===a&&(a=this.sa),this.fa=a,"fail"===this.u&&YD(this,this.fa),this.g.adjustControlMargin())};g.setSuccessMessage=function(a){this.ga!==a&&"string"===typeof a&&(""===a&&(a=this.ta),this.ga=a,"success"===this.u&&YD(this,this.ga),this.g.adjustControlMargin())};function ZD(a,b){a.h&&(a.h.setAttribute("gcim-notify__tip-state",b),a.h.style.display="clear"===b?"none":"block","fail"===b&&YD(a,a.fa),"success"===b&&YD(a,a.ga))}
g.onFail=function(){this.h&&"fail"!==this.u&&(ZD(this,"fail"),this.g.adjustControlMargin())};g.onSuccess=function(){this.h&&"success"!==this.u&&(ZD(this,"success"),this.g.adjustControlMargin())};g.onClear=function(){this.h&&"clear"!==this.u&&(ZD(this,"clear"),this.g.adjustControlMargin())};g.destroy=function(){this.h&&this.i&&(this.onClear(),this.Nb(),this.i.removeChild(this.h),this.i=this.h=null)};g.refresh=function(){WD(this)};
g.getTipOffset=function(){var a={top:0,right:0,bottom:0,left:0};if("ballontip"===this.style||!this.h||"clear"===this.u)return a;if(this.h){var b=this.h.querySelector(".gcim-notify__tip-content");"ballontip"!==this.style&&(b=this.h.querySelector(".gcim-notify__panel-tip-content"));b=b?b.offsetWidth:0}else b=0;if(this.h){var c=this.h.querySelector(".gcim-notify__tip-content");"ballontip"!==this.style&&(c=this.h.querySelector(".gcim-notify__panel-tip-content"));c=c?c.offsetHeight:0}else c=0;switch(this.direction){case "top":case "bottom":a[this.direction]=
c+2;c=this.g.getLayoutElement().offsetWidth;b>c&&("start"===this.position?a.right+=b-c:"end"===this.position?a.left+=b-c:(a.left+=(b-c)/2,a.right+=(b-c)/2));break;case "left":case "right":a[this.direction]=b+2,b=this.g.getLayoutElement().offsetHeight,c>b&&("start"===this.position?a.bottom+=c-b:"end"===this.position?a.top+=c-b:(a.top+=(c-b)/2,a.bottom+=(c-b)/2))}return a};
function RD(a,b){a.g.tipNotifiers.push(a);a.i=a.g.getLayoutElement();a.h=A("div",{class:"gcim-notify__tip-container","data-tipstyle":a.style},$D(a));a.i.appendChild(a.h);a.zb();a.tc(b);var c,d;null===(c=a.h)||void 0===c?void 0:c.setAttribute("tip-position",a.position);null===(d=a.h)||void 0===d?void 0:d.setAttribute("tip-direction",a.direction)}
g.zb=function(){if(this.h){var a=this.h.querySelector(".gcim-notify__tip-close");a&&(a.addEventListener("click",this.na,!1),this.h.addEventListener("mousedown",this.va,!1))}};g.Nb=function(){if(this.h){var a=this.h.querySelector(".gcim-notify__tip-close");a&&(a.removeEventListener("click",this.na,!1),this.h.removeEventListener("mousedown",this.va,!1))}};
g.tc=function(a){F(a)||(a.style&&(this.style=a.style),this.setTemplate(a.template),this.setDirectionPriority(a.directionPriority),a.direction&&null!==I(Id,a.direction)?this.setDirection(I(Id,a.direction)):this.setDirection("ballontip"===this.style?"right":"bottom"),a.position&&null!==I(hq,a.position)?this.setPosition(I(hq,a.position)):this.setPosition("ballontip"===this.style?"balanced":"start"),this.setFailMessage(a.failMessage),this.setSuccessMessage(a.successMessage))};
function $D(a){return"ballontip"===a.style?A("div",{class:"gcim-notify__tip-wrapper"},A("div",{class:"gcim-notify__tip-content"},A("div",{class:"gcim-notify__tip-close"},A("div",{class:"gcim-notify__tip-close-left"}),A("div",{class:"gcim-notify__tip-close-right"})),A("div",{class:"gcim-notify__tip-arrow"}),A("div",{class:"gcim-notify__tip-text"}))):"flatpanel"===a.style?A("div",{class:"gcim-notify__tip-wrapper"},A("div",{class:"gcim-notify__panel-tip-content"},A("div",{class:"gcim-notify__flat-tip__icon"}),
A("div",{class:"gcim-notify__tip-text"}))):A("div",{class:"gcim-notify__tip-wrapper"},A("div",{class:"gcim-notify__panel-tip-content"},A("div",{class:"gcim-notify__tip-text"})))}function UD(a){return a.h?a.h.querySelector(".gcim-notify__tip-arrow"):null}function TD(a){if(!a.h)return null;var b;return(b="ballontip"===a.style?a.h.querySelector(".gcim-notify__tip-content"):a.h.querySelector(".gcim-notify__panel-tip-content"))?b:a.h}
function WD(a){var b;if(a.i&&a.h){var c=UD(a),d=TD(a);if(!SD(a.i,a.h,d,a.ca,a.s,c)){var e=VD(a.i,a.h,d,a.la||Hd(),a.s,c);null!==e&&(a.ca=e,null===(b=a.h)||void 0===b?void 0:b.setAttribute("tip-direction",a.direction))}b=aE(a.i,a.h,d,a.ca,a.s,c);if("ballontip"!=a.style)switch(a.direction){case "left":b.left-=2;break;case "right":b.left+=2;break;case "top":b.top-=2;break;case "bottom":b.top+=2}e=a.g.getControlMarginOffset(13);switch(a.direction){case "left":b.left-=e.left;break;case "right":b.left+=
e.right;break;case "top":b.top-=e.top;break;case "bottom":b.top+=e.bottom}a.h.style.left=b.left+"px";a.h.style.top=b.top+"px";c&&(d=bE(d,c,a.ca,a.s),c.style.left=d.left+"px",c.style.top=d.top+"px",Object.keys(Id).forEach(function(f){jd(c,Id[f])}),E(c,a.ca))}}function XD(a){if(a.h){var b=a.ea;"fail"===a.u?b=a.ea.replace(/\{!message\}/g,a.fa):"success"===a.u&&(b=a.ea.replace(/\{!message\}/g,a.ga));a.h.innerHTML=b;WD(a)}}
function YD(a,b){if(a.h){var c=a.h.querySelector(".gcim-notify__tip-text");c?(c.innerText=b,WD(a)):a.ea&&XD(a)}}
p.Object.defineProperties(QD.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){this.setDirection(a)}},position:{configurable:!0,enumerable:!0,get:function(){return this.hf()},set:function(a){this.setPosition(a)}},template:{configurable:!0,enumerable:!0,get:function(){return this.ea},set:function(a){this.setTemplate(a)}},directionPriority:{configurable:!0,enumerable:!0,get:function(){0===this.la.length&&(this.la=this.Fa);return this.la},set:function(a){this.setDirectionPriority(a)}},
failMessage:{configurable:!0,enumerable:!0,get:function(){return this.fa},set:function(a){this.setFailMessage(a)}},style:{configurable:!0,enumerable:!0,get:function(){return this.ka},set:function(a){if(this.ka!==a&&(a=I(iq,a),null!==a)){this.ka=a;a=this.u;this.onClear();this.Nb();this.h.setAttribute("data-tipstyle",this.style);this.h.innerHTML="";this.h.appendChild($D(this));this.zb();if(this.h)if("fail"===a)this.onFail();else if("success"===a)this.onSuccess();else this.onClear();this.g.adjustControlMargin()}}},
successMessage:{configurable:!0,enumerable:!0,get:function(){return this.ga},set:function(a){this.setSuccessMessage(a)}},u:{configurable:!0,enumerable:!0,get:function(){return this.h?"fail"===this.h.getAttribute("gcim-notify__tip-state")?"fail":"success"===this.h.getAttribute("gcim-notify__tip-state")?"success":"clear":"clear"}}});
function aE(a,b,c,d,e,f,h){h=void 0===h?!0:h;if(a&&c){var k=b.style.display;try{b.style.display="block";if(a&&c){var l=0;if("top"===d||"bottom"===d)switch(e){case "balanced":l+=(a.offsetWidth-c.offsetWidth)/2;break;case "end":l+=a.offsetWidth-c.offsetWidth}else if("left"===d||"right"===d)l+=cE+dE(f);var m=l}else m=0;if(a&&c){l=0;if("left"===d||"right"===d)switch(e){case "balanced":l+=(a.offsetHeight-c.offsetHeight)/2;break;case "end":l+=a.offsetHeight-c.offsetHeight}else if("top"===d||"bottom"===
d)l+=cE+dE(f);var n=l}else n=0;var q=h?parseInt(window.getComputedStyle(a,null).borderLeftWidth,10):0;isNaN(q)&&(q=0);var u=h?parseInt(window.getComputedStyle(a,null).borderTopWidth,10):0;isNaN(u)&&(u=0);switch(d){case "top":return{left:m-q,top:-(n+c.offsetHeight)-u};case "bottom":return{left:m-q,top:a.offsetHeight+n-u};case "right":return{left:a.offsetWidth+m-q,top:n-u};case "left":return{left:-(c.offsetWidth+m)-q,top:n-u};default:return{left:0,top:0}}}finally{b.style.display=k}}}
function SD(a,b,c,d,e,f){for(b=aE(a,b,c,d,e,f,!1);a;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a=a.offsetParent;a=b.left;b=b.top;d=c.offsetWidth;c=c.offsetHeight;e=document.documentElement&&"number"===typeof document.documentElement.scrollWidth?document.documentElement.scrollWidth:0;f=document.documentElement&&"number"===typeof document.documentElement.scrollHeight?document.documentElement.scrollHeight:0;return 0<=a&&a<=e&&0<=b&&b<=f&&0<=a+d&&a+d<=e&&0<=b+c&&b+c<=f}
function VD(a,b,c,d,e,f){for(var h=0;h<d.length;h++){var k=d[h];if(SD(a,b,c,k,e,f))return k}return null}var cE=0;
function bE(a,b,c,d){if(!a||!b)return{left:0,top:0};var e=dE(b),f=parseInt(window.getComputedStyle(a,null).borderLeftWidth,10);isNaN(f)&&(f=0);var h=parseInt(window.getComputedStyle(a,null).borderTopWidth,10);isNaN(h)&&(h=0);switch(c){case "top":return{left:eE(a,b,d)-f,top:a.offsetHeight-h};case "bottom":return{left:eE(a,b,d)-f,top:2*parseInt("-"+e,10)-h};case "right":return{left:2*parseInt("-"+e,10)-f,top:fE(a,b,d)-h};case "left":return{left:a.offsetWidth-f,top:fE(a,b,d)-h};default:return{left:0,
top:0}}}function dE(a){if(!a)return 0;var b=parseInt(window.getComputedStyle(a,null).borderWidth,10);return isNaN(b)?parseInt(window.getComputedStyle(a,null).borderBottomWidth,10):b}function eE(a,b,c){if(!a||!b)return 0;b=2*dE(b);switch(c){case "start":return.125*a.offsetWidth;case "balanced":return(a.offsetWidth-b)/2;case "end":return a.offsetWidth-b-.125*a.offsetWidth;default:return 0}}
function fE(a,b,c){if(!a||!b)return 0;b=2*dE(b);switch(c){case "start":return.125*a.offsetHeight;case "balanced":return(a.offsetHeight-b)/2;case "end":return a.offsetHeight-b-.125*a.offsetHeight;default:return 0}}v("GcTipNotifier",QD);function gE(a){OD.call(this,a);var b=this;this.g.isInitialized()?(this.h=this.g.getExtensionEl(),this.i=this.g.getUIInputElement(),E(this.h,"gcim-notify__state-container"),E(this.i,"gcim-notify__state-input")):this.g.addEventListener("init",function(){b.h=b.g.getContainer();E(b.h,"gcim-notify__state-container")})}t(gE,OD);gE.prototype.onFail=function(){this.h&&"fail"!==this.h.getAttribute("gcim-notify__control-state")&&this.h.setAttribute("gcim-notify__control-state","fail")};
gE.prototype.onSuccess=function(){this.h&&"success"!==this.h.getAttribute("gcim-notify__control-state")&&this.h.setAttribute("gcim-notify__control-state","success")};gE.prototype.onClear=function(){this.h&&"clear"!==this.h.getAttribute("gcim-notify__control-state")&&this.h.setAttribute("gcim-notify__control-state","")};gE.prototype.destroy=function(){this.h&&(this.onClear(),jd(this.h,"gcim-notify__state-container"),this.h=null,this.i&&(jd(this.i,"gcim-notify__state-input"),this.i=null))};
v("GcControlStateNotifier",gE);function hE(a,b){PD.call(this,a);var c=this;this.na="gcim-notify__icon";this.fa=this.ea="";this.s="outside";this.ga=function(){iE(c)};this.u=w.NotifierDefaultFailMessage;this.ca=w.NotifierDefaultSuccessMessage;this.g.isInitialized()?jE(this,b):this.g.addEventListener("init",function(){jE(c,b)})}t(hE,PD);
function jE(a,b){a.g.iconNotifiers.push(a);a.i=a.g.getLayoutElement();a.ka=a.g.getUIInputElement().parentElement;a.la=a.g.getUIInputElement();a.h=document.createElement("div");a.h.className=a.na;a.i.appendChild(a.h);a.tc(b);a.zb()}g=hE.prototype;g.tc=function(a){F(a)||(a.direction&&this.setDirection(a.direction),this.setFailIconSrc(a.failIconSrc),this.setSuccessIconSrc(a.successIconSrc),this.setFailMessage(a.failMessage),this.setSuccessMessage(a.successMessage))};
g.zb=function(){"GcRichTextEditor"!==this.g.gcInternalControlType&&this.g instanceof kq&&(Un(this.g.sideBtnController.s,this.ga),Un(this.g.sideBtnController.u,this.ga))};g.Nb=function(){"GcRichTextEditor"!==this.g.gcInternalControlType&&this.g instanceof kq&&(Vn(this.g.sideBtnController.s,this.ga),Vn(this.g.sideBtnController.u,this.ga))};g.setFailMessage=function(a){this.u!==a&&"string"===typeof a&&""!==a&&(this.u=a,"fail"===this.iconState&&kE(this,this.u))};
g.setSuccessMessage=function(a){this.ca!==a&&"string"===typeof a&&""!==a&&(this.ca=a,"success"===this.iconState&&kE(this,this.ca))};g.setDirection=function(a){a=I(gq,a);this.s!==a&&null!==a&&(this.s=a,iE(this))};g.setFailIconSrc=function(a){this.ea!==a&&a&&(this.ea=a,"fail"===this.iconState&&lE(this,this.ea))};g.setSuccessIconSrc=function(a){this.fa!==a&&a&&(this.fa=a,"success"===this.iconState&&lE(this,this.fa))};
g.onFail=function(){this.h&&"fail"!==this.iconState?(this.h.style.display="block",this.h.setAttribute("gcim-notify__icon-state","fail"),lE(this,this.ea),iE(this),kE(this,this.u),"GcInputMan"===this.g.gcInternalControlType&&this.g.autoScaleText()):this.refresh()};
g.onSuccess=function(){this.h&&"success"!==this.iconState?(this.h.style.display="block",this.h.setAttribute("gcim-notify__icon-state","success"),lE(this,this.fa),iE(this),kE(this,this.ca),"GcInputMan"===this.g.gcInternalControlType&&this.g.autoScaleText()):this.refresh()};g.onClear=function(){this.h&&"clear"!==this.iconState?(this.h.style.display="none",this.h.setAttribute("gcim-notify__icon-state","clear"),mE(this,""),"GcInputMan"===this.g.gcInternalControlType&&this.g.autoScaleText()):this.refresh()};
g.destroy=function(){this.h&&(this.onClear(),this.Nb(),this.i.removeChild(this.h),this.g=this.ka=this.i=this.la=this.h=null)};g.refresh=function(){iE(this)};g.getWidth=function(){var a=parseInt(window.getComputedStyle(this.h).width);return"number"===typeof a?a:0};g.getElement=function(){return this.h};
function iE(a){var b;if(a.h&&a.i&&a.ka&&"clear"!==a.iconState)if(a.h.style.top=(a.i.offsetHeight-a.h.offsetHeight)/2+"px",a.la&&("inside"===nE(a)?mE(a,a.h.offsetWidth+5+"px"):mE(a,"")),"outside"===nE(a))if("GcRichTextEditor"===a.g.gcInternalControlType)a.h.style.left=a.i.offsetWidth+3+"px";else{var c=null!==(b=a.g.getControlMarginOffset(11).right)&&void 0!==b?b:0;a.h.style.left=c+5+a.i.offsetWidth+"px"}else"inside"===nE(a)&&("GcRichTextEditor"===a.g.gcInternalControlType?(a.h.style.top=a.g.getEditAreaRect().top+
(a.g.getEditAreaRect().height-a.h.offsetHeight)/2-3+"px",a.h.style.left=a.g.getEditAreaRect().left+a.g.getEditAreaRect().width-a.h.offsetWidth-3+"px"):a.h.style.left=a.la.getBoundingClientRect().width+io(a.g.sideBtnController)+2.5+"px")}function nE(a){return"GcInputMan"===a.g.gcInternalControlType?a.g.il(a.s):a.s}function kE(a,b){a.h&&a.h.setAttribute("title",b)}function lE(a,b){a.h&&(a.h.style.backgroundImage=b?'url("'+b+'")':"")}
function mE(a,b){"GcInputMan"===a.g.gcInternalControlType&&(a.ka.style.paddingRight=b,a.g.refreshUI(4))}
p.Object.defineProperties(hE.prototype,{iconState:{configurable:!0,enumerable:!0,get:function(){if(!this.h)return"clear";var a=this.h.getAttribute("gcim-notify__icon-state");return a?a:"clear"}},failMessage:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){this.setFailMessage(a)}},successMessage:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){this.setSuccessMessage(a)}},direction:{configurable:!0,enumerable:!0,get:function(){return this.s},
set:function(a){this.setDirection(a)}},failIconSrc:{configurable:!0,enumerable:!0,get:function(){return this.ea},set:function(a){this.setFailIconSrc(a)}},successIconSrc:{configurable:!0,enumerable:!0,get:function(){return this.fa},set:function(a){this.setSuccessIconSrc(a)}}});v("GcIconNotifier",hE);var oE={TopLeft:"topleft",TopCenter:"topcenter",TopRight:"topright",BottomLeft:"bottomleft",BottomCenter:"bottomcenter",BottomRight:"bottomright"};v("ToastPosition",oE);var pE={},qE=(pE.topleft="top-left",pE.topcenter="top-center",pE.topright="top-right",pE.bottomleft="bottom-left",pE.bottomcenter="bottom-center",pE.bottomright="bottom-right",pE);function rE(a){this.s={};var b=this;this.Ic=!0;this.lq=function(){b.reset();b.ha("end",b)};this.Sj(a)}t(rE,tg);g=rE.prototype;g.Sj=function(a){this.Tk=A("div",{class:"gcim__toast-progress-bar-wrapper"});this.tr=A("div",{class:"gcim__toast-progress-bar-bg"});this.Rf=A("div",{class:"gcim__toast-progress-bar"});this.Tk.appendChild(this.tr);this.Tk.appendChild(this.Rf);a.appendChild(this.Tk)};g.zn=function(){this.Rf.getBoundingClientRect()};
g.start=function(a){this.zn();this.Rf.addEventListener("animationend",this.lq);this.Rf.style.animationDuration=a+"ms";this.Rf.style.animationName="gcim__animation-toast-progress-bar";this.resume()};g.pause=function(){this.Rf.style.animationPlayState="paused"};g.resume=function(){this.Rf.style.animationPlayState="running"};g.reset=function(){this.Rf.removeEventListener("animationend",this.lq);this.Rf.style.animationDuration="";this.Rf.style.animationName="";this.pause()};
p.Object.defineProperties(rE.prototype,{visible:{configurable:!0,enumerable:!0,get:function(){return this.Ic},set:function(a){this.Tk.setAttribute("gcim-visible",String(a))}}});function sE(a){var b=this;this.i=function(c){b.wa.template||b.wa.showClose&&c.target.classList.contains("gcim__toast-close-btn")&&b.da.close()};this.da=a;this.Sj();this.zb()}g=sE.prototype;g.Sj=function(){this.g=A("div",null,this.h=A("div",{class:"gcim__toast-content-container"},tE(this)));uE(this);vE(this);this.g.setAttribute("gcim-position",qE[this.wa.position])};function uE(a){a.g.className="gcim__toast "+a.wa.className}
function vE(a){var b,c;null===(c=(b=a.wa).Vj)||void 0===c?void 0:c.call(b,a.g)}g.zb=function(){this.g.addEventListener("click",this.i)};function tE(a){var b;return a.wa.template?null!==(b=a.wa.template({close:a.da.close.bind(a.da)}))&&void 0!==b?b:wE(a):wE(a)}
function wE(a){var b=A("div",{class:"gcim__toast-normal-content"},A("div",{class:"gcim__toast-icon"}),A("div",{class:"gcim__toast-text-content"},A("div",{class:"gcim__toast-title"},a.wa.title),A("div",{class:"gcim__toast-message"},a.wa.message)),A("div",{class:"gcim__toast-close-btn"}));b.setAttribute("gcim-has-title",String(!F(a.wa.title)));b.setAttribute("gcim-show-close",String(a.wa.showClose));return b}g.refresh=function(){uE(this);vE(this);this.h.innerHTML="";this.h.appendChild(tE(this))};
g.getElement=function(){return this.g};g.destroy=function(){this.g.removeEventListener("click",this.i)};p.Object.defineProperties(sE.prototype,{wa:{configurable:!0,enumerable:!0,get:function(){return this.da.wa}}});
function xE(a){this.s={};var b=this;this.bf=!1;this.qo=function(){b.pb.getElement().removeEventListener("transitionend",b.qo);b.Yp&&(b.pb.getElement().addEventListener("mouseenter",b.wq),b.pb.getElement().addEventListener("mouseleave",b.Xi),J(b.jh,"end",b.xq),b.jh.start(b.Vk))};this.wq=function(){b.ha("mouseenter",b)};this.Xi=function(){b.ha("mouseleave",b)};this.xq=function(){b.close()};this.mq=function(){b.pb.getElement().removeEventListener("transitionend",b.mq);b.pb.getElement().remove()};this.wa=
a;this.pb=new sE(this);this.jh=new rE(this.pb.getElement());this.jh.visible=a.showProgress&&0<this.Vk}t(xE,tg);g=xE.prototype;g.hf=function(){return this.wa.position};g.Yg=function(){return this.pb.getElement().offsetHeight};g.show=function(a){this.bf||(this.bf=!0,this.uo(a),this.pb.getElement().addEventListener("transitionend",this.qo),document.body.appendChild(this.pb.getElement()),this.zn(),yE(this,"show"),zE(this,["topcenter","bottomcenter"])&&AE(this,a))};
g.close=function(){this.bf&&(this.bf=!1,this.pb.getElement().removeEventListener("mouseenter",this.wq),this.pb.getElement().removeEventListener("mouseleave",this.Xi),this.pb.getElement().removeEventListener("transitionend",this.qo),ug(this.jh,"end",this.xq),this.pb.destroy(),this.pb.getElement().addEventListener("transitionend",this.mq),yE(this,"close"),this.ha("closing",this))};
g.refresh=function(a){a.message&&(this.wa.message=a.message);a.className&&(this.wa.className=a.className);a.template&&(this.wa.template=a.template);this.pb.refresh();this.bf&&this.Yp&&(this.jh.reset(),this.jh.start(this.Vk),this.ha("refreshed",this))};function AE(a,b){zE(a,["topleft","topright","topcenter"])?a.pb.getElement().style.top=b+"px":zE(a,["bottomleft","bottomright","bottomcenter"])&&(a.pb.getElement().style.bottom=b+"px")}
g.uo=function(a){zE(this,["topcenter","bottomcenter"])||AE(this,a);yE(this,"prepare")};g.zn=function(){this.pb.getElement().getBoundingClientRect()};function yE(a,b){a.pb.getElement().setAttribute("gcim-state",b)}function zE(a,b){return b.includes(a.hf())}p.Object.defineProperties(xE.prototype,{yp:{configurable:!0,enumerable:!0,get:function(){return this.bf}},Vk:{configurable:!0,enumerable:!0,get:function(){return 1E3*this.wa.duration}},Yp:{configurable:!0,enumerable:!0,get:function(){return 0<this.Vk}}});function BE(a){a=parseInt(window.getComputedStyle(document.body).getPropertyValue(a));return Math.max(0,isNaN(a)?10:a)}var CE={},DE=(CE.topleft="--gcim__toast-top-left-offset",CE.topcenter="--gcim__toast-top-center-offset",CE.topright="--gcim__toast-top-right-offset",CE.bottomleft="--gcim__toast-bottom-left-offset",CE.bottomcenter="--gcim__toast-bottom-center-offset",CE.bottomright="--gcim__toast-bottom-right-offset",CE);
function EE(){var a={};this.g=(a.topleft=[],a.topcenter=[],a.topright=[],a.bottomleft=[],a.bottomcenter=[],a.bottomright=[],a)}EE.prototype.add=function(a){this.g[a.hf()].push(a)};EE.prototype.remove=function(a){var b=this.g[a.hf()].indexOf(a);-1!==b&&this.g[a.hf()].splice(b,1)};
function FE(){var a=this;this.g=new EE;this.ca=function(){Object.values(oE).forEach(function(b){GE(a,b)})};this.i=function(b){ug(b,"closing",a.i);ug(b,"refreshed",a.u);ug(b,"mouseenter",a.s);ug(b,"mouseleave",a.h);a.g.remove(b);a.h(b);GE(a,b.hf())};this.u=function(b){GE(a,b.hf())};this.s=function(b){b.wa.pauseOnHover&&a.g.g[b.hf()].filter(function(c){return c.wa.pauseOnHover}).forEach(function(c){return c.jh.pause()})};this.h=function(b){b.wa.pauseOnHover&&a.g.g[b.hf()].filter(function(c){return c.wa.pauseOnHover}).forEach(function(c){return c.jh.resume()})};
window.addEventListener("resize",this.ca)}function HE(a,b){var c=a.g.g[b];a=c.map(function(d){return d.Yg()}).reduce(function(d,e){return d+e},0);c=c.length*FE.g;return BE(DE[b])+a+c}function IE(a){var b=a.map(function(c){return c.Yg()});b.forEach(function(c,d){0<d&&(b[d]+=b[d-1])});return b.map(function(c,d){c=0<d?b[d-1]:0;d*=FE.g;return BE(DE[a[0].hf()])+c+d})}function JE(){var a=KE.g;Object.values(oE).forEach(function(b){GE(a,b)})}
function GE(a,b){a=a.g.g[b];var c=IE(a);a.forEach(function(d,e){AE(d,c[e])})}p.Object.defineProperties(FE,{g:{configurable:!0,enumerable:!0,get:function(){var a=parseInt(window.getComputedStyle(document.body).getPropertyValue("--gcim__toast-gap"));return Math.max(0,isNaN(a)?16:a)}}});var LE={message:"",title:"",showClose:!0,className:"",position:"topright",duration:4.5,showProgress:!1,pauseOnHover:!0,template:null};function ME(a){return"boolean"===typeof a||"string"===typeof a&&("true"===a.toLowerCase()||"false"===a.toLowerCase())}function KE(){}var NE;p.Object.defineProperties(KE,{g:{configurable:!0,enumerable:!0,get:function(){NE||(NE=new FE);return NE}}});var OE=w.NotifierDefaultFailMessage,PE=w.NotifierDefaultSuccessMessage;function QE(a,b){PD.call(this,a);var c=this;this.h=!1;this.ea=function(){c.h=!1};this.g.isInitialized()||(this.h=!0,this.g.addEventListener("init",this.ea));this.wa="boolean"===typeof b?{}:Object.assign({},b);this.u=this.wa.template;this.ca=this.wa.title}t(QE,PD);g=QE.prototype;g.setFailMessage=function(a){this.wa.message=Jd(a)?a:OE;RE(this)};g.setSuccessMessage=function(a){this.wa.message=Jd(a)?a:PE;RE(this)};g.refresh=function(){};
g.onFail=function(){var a;this.h||(this.wa.Vj=function(b){return b.setAttribute("gcim-notify__toast-state","fail")},this.wa.title=null!==(a=this.ca)&&void 0!==a?a:w.ToastNotifierFailTitle,SE(this))};g.onSuccess=function(){var a;this.h||(this.wa.Vj=function(b){return b.setAttribute("gcim-notify__toast-state","success")},this.wa.title=null!==(a=this.ca)&&void 0!==a?a:w.ToastNotifierSuccessTitle,SE(this))};g.onClear=function(){var a;this.h||(null===(a=this.i)||void 0===a?void 0:a.close())};
g.destroy=function(){var a;this.h||(null===(a=this.i)||void 0===a?void 0:a.close())};function RE(a){a.u&&(a.wa.template=function(b){return a.u({close:b.close,message:a.wa.message,control:a.g,ruleItem:a.s})})}
function SE(a){var b;if(null===(b=a.i)||void 0===b?0:b.yp){var c;(null===(c=a.i)||void 0===c?0:c.yp)&&a.i.refresh(a.wa)}else{b=a.wa;c=JSON.parse(JSON.stringify(LE));b=b||{};"string"===typeof b.message&&(c.message=b.message);"string"===typeof b.title&&(c.title=b.title);if(!G(b.position)){var d=I(oE,b.position);d&&(c.position=d)}if(d=!G(b.duration))d=b.duration,d="number"===typeof d?!0:"string"===typeof d?0===d.trim().length?!1:!isNaN(Number(d)):!1;d&&(c.duration=Number(b.duration));!G(b.showClose)&&
ME(b.showClose)&&(c.showClose=H(b.showClose));!G(b.showProgress)&&ME(b.showProgress)&&(c.showProgress=H(b.showProgress));!G(b.pauseOnHover)&&ME(b.pauseOnHover)&&(c.pauseOnHover=H(b.pauseOnHover));"function"===typeof b.template&&(c.template=b.template);"function"===typeof b.Vj&&(c.Vj=b.Vj);"string"===typeof b.className&&(c.className=b.className);b=new xE(c);c=KE.g;d=HE(c,b.hf());c.g.add(b);J(b,"closing",c.i);J(b,"refreshed",c.u);J(b,"mouseenter",c.s);J(b,"mouseleave",c.h);b.show(d);a.i=b}};function TE(a){UE(this,a);this.zb();this.Zn()}var VE;g=TE.prototype;g.validate=function(a,b,c){return WE(this,a,b,void 0===c?"manual":c,!0)};
function WE(a,b,c,d,e){d=void 0===d?"manual":d;e=void 0===e?!0:e;if(a.be){var f=[],h=new WeakMap;Array.isArray(b)?b.forEach(function(l){"object"===typeof(null===l||void 0===l?void 0:l.control)?(f.push(l.control),h.set(l.control,l.result)):f.push(l)}):f.push(b);var k=!0;XE(a,function(l){if(!l.disable){for(var m,n=0;n<l.ruleSet.length;n++){var q=l.ruleSet[n],u=q.rule;"string"===typeof u&&(u=F(VE)?void 0:VE[u]);if("function"===typeof u)if(l.target.getTargetControl().isInitialized()){u=u(l.target,q,{validateWhen:d});
"external"===q.rule&&("boolean"===typeof c?u=c:h.has(l.target)&&(u=h.get(l.target)));if(!1===u){k=!1;YE(l,!1,q);a.vf.validationfailed.ha({control:l.target,context:q});return}!0===u&&(m=q)}else e&&l.target.getTargetControl().addEventListener("init",function(){WE(a,b,c)})}m?YE(l,!0,m):YE(l,void 0,q)}},f);return k}}g.enable=function(a){this.be&&(Array.isArray(a)||(a=[a]),XE(this,function(b){b.disable=!1},a))};
g.disable=function(a){this.be&&(Array.isArray(a)||(a=[a]),XE(this,function(b){b.disable=!0},a))};function ZE(a,b){F(VE)&&(VE={});"function"!==typeof b||F(a)||"string"!==typeof a||a in VE||(VE[a]=b)}g.destroy=function(){this.be&&(this.Nb(),$E(this),this.be=null,he(this))};g.addEventListener=function(a,b){this.vf&&!F(a)&&(a=this.vf[a.toLowerCase()])&&Un(a,b)};g.removeEventListener=function(a,b){this.vf&&!F(a)&&(a=this.vf[a.toLowerCase()])&&Vn(a,b)};g.refresh=function(){aF(this);this.be&&JE()};
function aF(a){a.be&&XE(a,function(b){Array.isArray(b.Oe)&&b.Oe.forEach(function(c){c instanceof PD&&c.refresh()});Array.isArray(b.oe)&&b.oe.forEach(function(c){c instanceof PD&&c.refresh()})})}
function YE(a,b,c){!0===b?(Array.isArray(a.Oe)&&a.Oe.forEach(function(d){d instanceof PD&&d.setSuccessMessage(bF(c,c.successMessage,a.target));d instanceof QE&&(d.s=c,RE(d))}),Array.isArray(a.oe)&&a.oe.forEach(function(d){d.onClear()}),Array.isArray(a.Oe)&&a.Oe.forEach(function(d){d.onSuccess()})):!1===b?(Array.isArray(a.oe)&&a.oe.forEach(function(d){d instanceof PD&&d.setFailMessage(bF(c,c.failMessage,a.target));d instanceof QE&&(d.s=c,RE(d))}),Array.isArray(a.Oe)&&a.Oe.forEach(function(d){d.onClear()}),
Array.isArray(a.oe)&&a.oe.forEach(function(d){d.onFail()})):(Array.isArray(a.Oe)&&a.Oe.forEach(function(d){d.onClear()}),Array.isArray(a.oe)&&a.oe.forEach(function(d){d.onClear()}))}function cF(a,b){var c=[];if(F(b))return c;for(var d in b)if("boolean"===typeof b[d]&&!0===b[d]||"object"===typeof b[d])switch(d){case "tip":c.push(new QD(a,b[d]));break;case "controlState":c.push(new gE(a));break;case "icon":c.push(new hE(a,b[d]));break;case "toast":c.push(new QE(a,b[d]))}return c}
function $E(a){a.be.forEach(function(b){b.Oe&&b.Oe.forEach(function(c){c.destroy()});b.oe&&b.oe.forEach(function(c){c.destroy()})})}
g.zb=function(){var a=this;this.be.forEach(function(b){"GcRichTextEditor"===b.target.getTargetControl().gcInternalControlType?(b.target.getTargetControl().addEventListener("input",b.bg=a.Pb(b.target,"Input")),b.target.getTargetControl().addEventListener("refreshvalidator",b.bk=a.Pb(b.target,"refreshvalidator")),b.target.getTargetControl().addEventListener("focusout",b.Wf=a.Pb(b.target,"focusout")),b.target.getTargetControl().addEventListener("remove",b.Uk=a.Pb(b.target,"destroy"))):(b.target.getTargetControl().onInput(b.bg=
a.Pb(b.target,"Input")),b.target.getTargetControl().onFocusOut(b.Wf=a.Pb(b.target,"focusout")),b.target.getTargetControl().onDestroy(b.bg=a.Pb(b.target,"destroy")));window.addEventListener("resize",b.bk=a.Pb(b.target,"refreshvalidator"));b.ruleSet.forEach(function(c){"matchcontrol"===c.rule&&c.matchControl&&("GcRichTextEditor"===c.matchControl.getTargetControl().gcInternalControlType?(c.matchControl.getTargetControl().addEventListener("input",b.bg=a.Pb(b.target,"Input")),c.matchControl.getTargetControl().addEventListener("refreshvalidator",
b.bk=a.Pb(b.target,"refreshvalidator")),c.matchControl.getTargetControl().addEventListener("focusout",b.Wf=a.Pb(b.target,"Input")),c.matchControl.getTargetControl().addEventListener("remove",b.Uk=a.Pb(b.target,"destroy"))):(c.matchControl.getTargetControl().onInput(b.bg=a.Pb(b.target,"Input")),c.matchControl.getTargetControl().onFocusOut(b.bg=a.Pb(b.target,"focusout")),c.matchControl.getTargetControl().onDestroy(b.bg=a.Pb(b.target,"destroy"))))})})};
g.Nb=function(){this.be.forEach(function(a){"GcRichTextEditor"===a.target.getTargetControl().gcInternalControlType?(a.target.getTargetControl().removeEventListener("Input",a.bg),a.target.getTargetControl().removeEventListener("RefreshValidator",a.bk),a.target.getTargetControl().removeEventListener("FocusOut",a.Wf),a.target.getTargetControl().removeEventListener("Remove",a.Uk)):(a.target.getTargetControl().removeInput(a.bg),a.target.getTargetControl().removeFocusOut(a.Wf),a.target.getTargetControl().removeDestroy());
window.removeEventListener("resize",a.bk);a.ruleSet.forEach(function(b){"matchcontrol"===b.rule&&b.matchControl&&("GcRichTextEditor"===b.matchControl.getTargetControl().gcInternalControlType?(b.matchControl.getTargetControl().removeEventListener("Input",a.bg),b.matchControl.getTargetControl().removeEventListener("RefreshValidator",a.bk),b.matchControl.getTargetControl().removeEventListener("FocusOut",a.Wf),b.matchControl.getTargetControl().removeEventListener("Remove",a.Uk)):(b.matchControl.getTargetControl().removeInput(a.bg),
b.matchControl.getTargetControl().removeFocusOut(a.Wf),b.matchControl.getTargetControl().removeDestroy(a.Uk)))})})};
g.Pb=function(a,b){var c=this;return function(){var d=dF(c,a);F(d)||d.disable||("Input"===b&&"typing"===d.validateWhen?WE(c,a,void 0,"typing",!1):"focusout"===b&&"lostfocus"===d.validateWhen?WE(c,a,void 0,"lostfocus",!1):"refreshvalidator"===b?aF(c):"destroy"===b&&(d.Oe.forEach(function(e){return e.destroy()}),d.oe.forEach(function(e){return e.destroy()}),c.be=c.be.filter(function(e){return e.target!==a})))}};
function XE(a,b,c){var d=!0;Array.isArray(c)&&(c=c.filter(function(e){return!F(e)}),0<c.length&&(d=!1));a.be.forEach(function(e){(d||-1!==c.indexOf(e.target))&&b(e)})}function bF(a,b,c){return"string"===typeof b?b:"function"===typeof b?b(c,a):""}function dF(a,b){return F(a.be)?null:a.be.filter(function(c){return c.target===b})[0]}
function UE(a,b){var c=[];if(!F(b)&&Array.isArray(b.items))for(var d=0;d<b.items.length;d++){var e=b.items[d];if(!F(e)){var f=e.control;if(f&&"function"===typeof f.getTargetControl&&Object.values(jq).includes(f.getTargetControl().gcInternalControlType)&&Array.isArray(e.ruleSet)){var h={};h.target=f;h.validateWhen=e.validateWhen?I(fq,e.validateWhen)||"lostfocus":"lostfocus";h.disable=!1;h.ruleSet=[];e.ruleSet.forEach(function(k){F(k)||h.ruleSet.push(k)});h.ruleSet.some(function(k){return"external"===
k.rule})&&(h.validateWhen="manual");F(e.notify)?F(b.defaultNotify)||eF(h,b.defaultNotify,f):eF(h,e.notify,f);c.push(h)}}}a.be=c}function eF(a,b,c){F(b.fail)&&F(b.success)?a.oe=cF(c,b):(a.oe=cF(c,b.fail),a.Oe=cF(c,b.success))}g.Zn=function(){this.vf={};this.vf.validationfailed=new K(this)};ZE("required",function(a){return a.getTargetControl().isPassRequiredRule()});ZE("outofrange",function(a){return a.getTargetControl().isPassOutOfRangeRule()});
ZE("matchcontrol",function(a,b,c){if(a.getTargetControl().hasActivated||"manual"===c.validateWhen)return"function"===typeof a.getTargetControl().getMatchValue&&"function"===typeof(null===b||void 0===b?void 0:b.matchControl).getMatchValue?a.getTargetControl().getMatchValue()===(null===b||void 0===b?void 0:b.matchControl).getMatchValue():!0});
ZE("equaltoinputlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputLength?a.getTargetControl().getTextLength()===b.inputLength:!0});ZE("lessthaninputlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputLength?a.getTargetControl().getTextLength()<b.inputLength:!0});
ZE("lessthanorequaltoinputlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputLength?a.getTargetControl().getTextLength()<=b.inputLength:!0});ZE("greaterthaninputlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputLength?a.getTargetControl().getTextLength()>b.inputLength:!0});
ZE("greaterthanorequaltoinputlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputLength?a.getTargetControl().getTextLength()>=b.inputLength:!0});ZE("betweenminandmaxlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputMinLength&&"number"===typeof b.inputMaxLength&&b.inputMinLength<b.inputMaxLength?(a=a.getTargetControl().getTextLength(),a>b.inputMinLength&&a<b.inputMaxLength):!0});
ZE("betweenorequaltominandmaxlength",function(a,b){return"function"===typeof a.getTargetControl().getTextLength&&"number"===typeof b.inputMinLength&&"number"===typeof b.inputMaxLength&&b.inputMinLength<=b.inputMaxLength?(a=a.getTargetControl().getTextLength(),a>=b.inputMinLength&&a<=b.inputMaxLength):!0});ZE("external",function(){});v("GcValidator",TE);v("GcValidator.registerValidateRule",ZE);v("GcValidator.unRegisterValidateRule",function(a){F(VE)||F(a)||"string"!==typeof a||delete VE[a]});function R(a,b,c,d){var e=a.tagName.toLowerCase();if("input"!=e&&"textarea"!==e)throw Error("The host element should be a HTMLInputElement");pr.call(this,a,b,d);this.h=c}t(R,pr);g=R.prototype;g.dispose=function(){this.Nf=null;pr.prototype.dispose.call(this)};
g.Ge=function(){var a=this;pr.prototype.Ge.call(this);this.Ih=function(){};this.Gh=function(){try{a.vk()}catch(b){}};this.Ja=this.Nd=null;this.Ng="nocontrol";this.na="includeliterals";this.mc=!0;this.Ta="none";this.l={j:null};this.oa={j:null};this.Qg=!1;this.ta=new Xs(this);this.ka=this.Ja;this.Ga=-1;this.ga=this.ua;this.ga.value="";this.ga instanceof HTMLInputElement&&(this.ga.autocomplete="off")};
g.ui=function(){this.g=new Yr;var a=this.Sl;null==a||mb()||(xf(a,"mouseover",this.Ih),xf(a,"mouseout",this.Gh))};g.Ie=function(){this.Ga=-1;pr.prototype.Ie.call(this)};g.yf=function(){var a=this;null!=this.za()&&null!=this.s&&(pr.prototype.yf.call(this),Za&&Lq(this.s,"MSHoldVisual",function(){try{a.oj()}catch(b){}},!1),Lq(this.s,"focus",function(){Yp(a)},!1),Lq(this.s,"blur",function(b){a.wp();mb()&&Od(a.host.getLayoutElement(),b.relatedTarget||document.activeElement)||bq(a,b)},!1))};g.wp=function(){};
g.si=function(a){a.o=this.o;a=this.g.ed(a);null!=a&&(null!=a.Text&&(this.Text=a.Text),null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),fr(this)&&0==this.ea&&(this.o=0,this.v=this.Text.length),this.Ul||this.Ia(this.Text),this.o===this.za().selectionStart&&this.v===this.za().selectionEnd||this.Ca(this.o,this.v,!0),M(this))};g.wb=function(){var a={};a.Text=this.Text;a.Ja=this.Ja;a.o=this.o;a.v=this.v;return a};g.Lb=function(a){this.Text=a.Text;this.Ja=a.Ja;this.o=a.o;this.v=a.v};
g.ed=function(){var a=this;Ue=this.la;this.Vm();this.Fa&&this.Hk(this.vc);if(Sa||cb)this.Xb=!1;this.Fa||(cb||Sa||db)&&"none"!=this.Od()&&1==this.ea?setTimeout(function(){a.si();Qr(a);a.Fa&&(a.Fa=!1,a.vc="");a.Xb=!0},100):(this.si(),Qr(this),this.Fa&&(this.Fa=!1,this.vc=""),Sa||cb?setTimeout(function(){a.Xb=!0}):this.Xb=!0);this.mp();this.Ij=!0;Dq(this,!0)};g.Vm=function(){};g.mp=function(){M(this)};g.Vd=function(a){Hr(this);this.he=!0;a=this.g.Vd(a);Dq(this,!1);return a};
function fF(a){var b=a.bb;a=a.La;return"fixedinsert"===b||"fixedoverwrite"===b?"fixedoverwrite"===b:"insert"!==a&&"fixedinsert"!==a}function gF(a){return Math.min(a.o,a.v)}g.wh=function(a){a=kg(a,0);null!==a&&(this.v=this.o=a=Math.min(a,this.Text.ba()))};function hF(a){return Math.abs(a.v-a.o)}function iF(a,b){b=kg(b,0);if(null!==b)return a.o+b>a.Text.ba()&&(b=a.Text.ba()-a.o),a.v=a.o+b,a}g.gj=function(a,b){jF(this,"up",a,b)};g.fj=function(a,b){jF(this,"down",a,b)};
function jF(a,b,c,d){if(!("number"==typeof c&&isNaN(c)||"number"==typeof d&&isNaN(d))){c=a.kn(c,d);d=c.vd;var e=c.Kf,f=c.Increment;isNaN(d)||-1===d||isNaN(f)||(c=a.Text,f=a.No(b,f),d=a.g.Ob(d,e,f,a.h.Wrap),null==d?d=!1:("number"!=typeof d.o||isNaN(d.o)||(a.o=d.o),"number"!=typeof d.v||isNaN(d.v)||(a.v=d.v),d=null==d.Text||a.hb(d)?!0:!1),d&&(a.Qk(),M(a),a.jn(b,a.Text!==c)))}}
g.kn=function(a,b){if(null==b){var c=Kq(this);c.Db?c={vd:0,Kf:0}:(c=this.ca?Math.min(this.v,c.Vc.length):Math.min(this.v,this.ia().length),c={vd:c,Kf:c})}else{if(isNaN(b)||isNaN(a))return{vd:-1,Kf:-1,Increment:0};c=this.Ik(a);a=b}null==a&&(a=this.h.Increment);return isNaN(a)?{vd:-1,Kf:-1,Increment:0}:{vd:c.vd,Kf:c.Kf,Increment:a}};g.Ik=function(a){return{vd:a,Kf:a}};g.No=function(a,b){"down"===a&&(b*=-1);return b};g.Qk=function(){};
g.jn=function(a,b){"up"===a?N(this.host,this.i.SpinUp,null):"down"===a&&N(this.host,this.i.SpinDown,null);b&&(N(this.host,this.i.TextChanged,null),N(this.host,this.i.ValueChanged,null))};g.Ue=function(){return this.Ng};function kF(a,b){b=I(Ga,b);null!==b&&(a.Ng=b)}g.Ia=function(a){Iq(this.s,a);this.ne();Dq(this)};g.pg=function(a,b,c){var d=this;this.Qd&&clearTimeout(this.Qd);c&&y?this.Qd=setTimeout(function(){d.Qd=null;qg(d,a,b)},0):pr.prototype.pg.call(this,a,b,c)};g.Fd=function(){return this.mc};
function lF(a,b){b=H(b);a.mc=b;yq(a.host)}function mF(a,b){b=I(La,b);null!==b&&(a.na=b)}function nF(a,b){b=I(Fa,b);if(b!==a.bb&&null!==b){var c=!1;oF(b)&&pF(a.bb)?c=!0:oF(a.bb)&&pF(b)&&(c=!0);pF(b)&&(a.g.zd=!0);a.bb=b;a.La=b;c&&N(a.host,a.i.EditStatusChanged,null)}}function qF(a,b){b=I(Fa,b);if(b!==a.La&&null!==b){var c=!1;oF(b)&&pF(a.La)?c=!0:oF(a.La)&&pF(b)&&(c=!0);a.La=b;c&&N(a.host,a.i.EditStatusChanged,null)}}function oF(a){return"insert"==a||"fixedinsert"==a}
function pF(a){return"overwrite"==a||"fixedoverwrite"==a}g.Od=function(){return this.Ta};g.kj=function(a){a=I(Ma,a);null!==a&&(this.Ta=a)};function rF(a){return a.s.ia()}g.Wo=function(){return this.ka};g.sd=function(){return this.qa()==this.Wo()?!1:!0};g.rh=function(){this.Ma=this.la};g.Fg=function(a){pr.prototype.Fg.call(this,a);this.Ma="";Cf(a);return!1};
g.vk=function(){if(this.ca&&1==this.Cj&&(void 0===this.Bd||4===this.Bd||"mouse"===this.Bd)){var a=Math.min(this.Se,this.Pe),b=Math.max(this.Se,this.Pe);""!=C(this.ia(),a,b)&&y&&(this.Ca(this.Se,this.Pe),Ef(this.ga));this.Cj=!1}};
g.tf=function(a){var b=this,c=Ff(a);this.Ga=c;this.ea=1;this.Se=this.o;this.Pe=this.v;var d=this.za();d===document.activeElement&&(this.Xe=dg(d),eg(d));this.We=a.x;0==this.Ga&&(y||Wa||db)&&Xf(this.za());dr(Mq.instance);Er(this.ta)&&Fr(this.ta);if("function"!==typeof this.Nf||!this.Nf(a)){if(this.ze())return!0;Rr(this);a=this.g.tf(c);0==c&&(cb||Sa||db)&&!this.ca&&"none"!=this.Od()&&setTimeout(function(){var e=b.za();b.o=dg(e);b.v=eg(e)});null!=a&&(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v,this.Ca(this.o,
this.v)))}};g.ke=function(a){this.nh=a.x;this.ze();var b=this.g.ke(this.ga,this.o,this.v,this.Ga);null!=b&&(null!=b.o&&(this.o=b.o),null!=b.v&&(this.v=b.v),0==Ff(a)&&null!=this.We&&this.We>this.nh&&(a=this.o,this.o=this.v,this.v=a),this.We=null,this.Ga=-1)};g.Am=function(a){if(1!=this.fa&&this.allowSpin(1)){var b=od(a);0<b?this.Ob("down"):0>b&&this.Ob("up");Cf(a)}};
g.Hm=function(a){return 0<=[131138,131140,131141,131144,131145,131148,131150,131154,131159,131188,262181,262183,112,114,115,116,117,121,122,123,65657,131081,196617,131179,131181,131120,131259,131261,131146,196680,196681,196682,131153,131156,196689,262157].indexOf(a)};g.ze=function(){return!1};g.ne=function(){var a="";null!=this.qa()&&(a=this.qa().toString());Jq(this.s,a)};
g.om=function(a){var b={},c=a.mk,d=a.jd;var e=d;Mq.instance.u?(38!=e&&40!=e&&13!=e&&85!=e&&84!=e&&67!=e&&80!=e&&68!=e&&65!=e||Mq.instance.performKeyDown(e),27!=e&&18!=e||dr(Mq.instance),e=!0):Er(this.ta)?(27!=e&&18!=e||Fr(this.ta),e=!0):e=!1;if(e)return b.Aa=!1,b;if(229==d)return b.Aa=!0,b;c.gd&&(d|=65536);c.Oc&&(d|=131072);e=d|524288;var f;if(f=d!=e){a:{var h=this.Ki;if(null!=h){var k=h;f=[];var l=k.jb(","),m=0;if(""!=h){for(;-1!=l;)f[m++]=C(k,0,l),k=C(k,l+1,k.ba()),l=k.jb(",");f[m++]=k;for(h=0;h<
m;h+=2){b:{k=e;l=f[h+1];for(var n=l.jb("|");-1!=n;){if(C(l,0,n)==k){k=!0;break b}l=C(l,n+1,l.ba());n=l.jb("|")}k=l==k?!0:!1}if(k){e=f[h];break a}}}}e=null}f=null!=e}if(f)return b.Aa=!1,b;if(this.Hm(d))return b.Aa=!0,b;f=!1;if(null!=this.Nd)for(e=0;e<this.Nd.length;e++)if(this.Nd[e]==d.toString()){f=!0;break}a.nj=null;if(e=Pr(this,d))a.nj=e;a.jd=d;e=this.g.Td(a);if(null==e){switch(d){case 27:return b.Aa=!1,b;case 262182:case 262152:return b.jd=10,b;case 38:return f||(this.allowSpin(4)&&(this.Ob("up"),
b.o=this.o),b.Aa=!1),b;case 40:return f||(this.allowSpin(4)&&(this.Ob("down"),b.o=this.o),b.Aa=!1),b;case 13:return b.Aa=!0,b}if(this.ze()||20==d||null!=c&&(c.Oc||c.Cd)||91==d||144==d||145==d||93==d||92==d||null!=c&&c.gd&&65552==d||a.Zr)return b.Aa=!0,b;if(120==d||123==d||113==d||118==d||119==d)return b;a=N(this.host,this.i.InvalidInput,null);null!=a&&(this.ea=a);return b}null!=e.mi&&fF(this)!=e.mi&&("insert"==this.La?qF(this,"overwrite"):"overwrite"==this.La&&qF(this,"insert"));if(null!=e.Text){if(!this.hb(e))return b.Aa=
!1,b;M(this)}b=hF(this);null!=e.o&&(this.o=e.o);null!=e.v&&(this.v=e.v);a=hF(this);e.Aa||(e.Ib?(this.ne(),e.Aa=!1):(this.Ia(this.Text),Je=0==b&&0!=a?!0:!1,this.Ca(this.o,this.v),Je=!1,e.lm=!0));null!=e.pa&&("KeyExit"==e.pa.Ek?this.Gg=e.pa:(a=N(this.host,e.pa.gb,e.pa.ib),null!=a&&(this.ea=a)));null!=e.Va&&(this.ea=e.Va);b=e;b.nj=null;return b};g.Ae=function(){};
g.Ob=function(a){var b=this.h.Increment;if(this.ze())this.Ca(this.o,this.v);else if(!fr(this)){"down"==a&&(b*=-1);var c=this.l.j.ba();b=this.g.Ob(Math.min(this.o,c),Math.min(this.v,c),b,this.h.Wrap);if(null==b||null!=b.Text&&(this.Text!=b.Text&&(this.l.j.zc=!0),!this.hb(b)))return;null!=b.o&&(this.v=this.o=b.o);this.Ia(this.Text);this.Ca(this.o,this.v);M(this)}b=3;"up"==a?b=N(this.host,this.i.SpinUp,null):"down"==a&&(b=N(this.host,this.i.SpinDown,null));null!=b&&(this.ea=b)};
g.ng=function(a){if(this.ze())return!0;a=this.g.ng(this.ga,a,this.Ga);null!=a.o&&(this.o=a.o);if(null!=a.fp)return a.fp};g.Jf=function(){if(this.ze())return!0;var a="number"===typeof this.Xe?this.Xe:this.o;this.Xe=null;a=this.g.Jf(a);null!=a.o&&(this.o=a.o);null!=a.v&&(this.v=a.v,this.Ca(this.o,this.v))};g.Ub=function(){if(!fr(this)){var a=this.g.Ub();null!=a&&null!=a.Text&&this.hb(a)&&(this.Ia(this.Text),this.Ca(this.o,this.v),M(this))}};
g.dd=function(){if(Jr(this)){var a=this.g.dd(this.na,this.o,this.v);null==a||null!=a.Text&&!this.hb(a)||(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),null!=a.Text&&(this.Ia(this.Text),this.Ca(this.o,this.v)),M(this))}};g.Copy=function(){this.g.Copy(this.na,this.o,this.v)};
g.pc=function(a){if(Jr(this)){if(this.ze())return!1;var b=Wf(this.mc);a&&(b=a);a=this.g.pc(this.o,this.v,b);if(null==a||null!=a.Text&&!this.hb(a))return!1;null!=a.o&&(this.o=a.o);null!=a.v&&(this.v=a.v);this.Ia(this.Text);this.Ca(this.o,this.v);M(this);null!=a.pa&&N(this.host,a.pa.gb,a.pa.ib);return!0}};
g.rf=function(){if(!fr(this)){var a=this.g.Ig(this.o,this.v);null==a||null!=a.Text&&!this.hb(a)||(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),null!=a.Text&&(this.Ia(this.Text),this.Ca(this.o,this.v)),M(this))}};g.ti=function(a){pr.prototype.ti.call(this,a)};g.qm=function(a,b){!y&&fr(this)?b=!1:null!=this.Ma&&this.Ma===this.la?(this.Ma=null,null==b&&(b=window.event),null!=b&&Cf(b),b=!1):b=!0;b&&(this.Fa=!0,this.vc=a)};
g.Hk=function(a){this.Ma=null;var b=this.vi(),c=this.g.pc(b,b,a);null==c||null!=c.Text&&!this.hb(c)||(C(this.Text,b,b+a.length)===a?(this.o=b,this.v=b+a.length):(null!=c.o&&(this.o=c.o),null!=c.v&&(this.v=c.v)),this.Ca(this.o,this.v),M(this),null!=c.pa&&N(this.host,c.pa.gb,c.pa.ib))};g.vi=function(){return this.za().selectionStart};g.Xo=function(){};g.oj=function(){this.zm=!0};g.za=function(){return this.ga};
g.Sg=function(){if(!1===this.mc||y&&!Sa)return!0;if(Va)try{window.netscape.vo.Gm.xn("UniversalXPConnect");var a=window.Components.Tg["@mozilla.org/widget/clipboard;1"].Vg(window.Components.bd.xl);if(!a)return;var b=window.Components.Tg["@mozilla.org/widget/transferable;1"].Vg(window.Components.bd.jo);if(!b)return;b.on("text/unicode");a.getData(b,a.fo);a={};var c={};try{b.Rp("text/unicode",a,c)}catch(d){return null}a&&(window.Components.bd.Yj?a=a.value.tj(window.Components.bd.Yj):window.Components.bd.Wi?
a=a.value.tj(window.Components.bd.Wi):a=null);if(a)return a.data.substring(0,c.value/2)}catch(d){}return!1};g.allowSpin=function(a){var b=this.h.AllowSpin;return"boolean"===typeof b?4===a?b&&this.h.SpinOnKeys:1===a?b&&this.h.SpinWheel:b:"number"===typeof b?0!==(b&a):!1};g.Ck=function(){if(!(y&&Le||this.fa)&&this.Xb){this.o=dg(this.za());this.v=this.o+Yf(this.za()).ba();var a=this.za();(cb||Wa)&&"backward"===a.selectionDirection&&(a=this.o,this.o=this.v,this.v=a)}};function sF(a,b){a.Nf=b};function tF(a){this.index=0;this.h=[];this.g=a;this.la=!0}g=tF.prototype;g.ba=function(){for(var a=0,b=0;b<this.g;b++)a+=this.ma(b).ba();return a};function uF(a,b){null!=b&&(a.h.push(b),a.la=!0)}g.$d=function(){throw Zb();};g.ma=function(a){return this.h[a]};g.ia=function(){for(var a="",b=0;b<this.g;b++)a+=this.ma(b).ia();return a};g.Fc=function(a){for(var b="",c=0;c<this.g;c++){var d=this.h[c];if(Q&&d instanceof Q)b+=d.ia();else for(var e=0;e<d.g;e++)b+=a}return b};g.xh=function(){};g.Lf=function(){return null};
g.Sd=function(){};g.Ob=function(){};function cs(a,b){for(var c={},d=0,e=0;e<a.g;e++){var f=a.h[e];f=f.ba();if(b==d&&0==f||b>=d&&b<d+f)return c.index=e,c.offset=b-d,c;d+=f}if(b>=d)return f=a.h[a.g-1],c.index=a.g-1,c.offset=f.ba(),c}g.Ya=function(a){for(var b={start:0,length:0},c=0,d=0;d<a;d++)c+=this.ma(d).ba();a=this.ma(a);if(null==a)return b;b.start=c;b.length=a.ba();return b};g.le=function(){throw Zb();};g.Tb=function(){throw Zb();};g.vh=function(){throw Zb();};function vF(a){Tr.call(this,a)}t(vF,Tr);g=vF.prototype;g.tm=function(){throw Zb();};g.sd=function(){throw Zb();};g.Fk=function(){throw Zb();};g.Wl=function(){throw Zb();};g.sm=function(){throw Zb();};g.Ka=function(){throw Zb();};g.ij=function(){throw Zb();};g.qa=function(){throw Zb();};g.Da=function(){throw Zb();};g.ra=function(){throw Zb();};g.Cb=function(){throw Zb();};
function wF(a,b,c,d,e,f,h){Tr.call(this,e);e=c.toString().ba();this.Ha=a;this.minLength=this.maxLength=e;this.nf=d;this.minValue=b;this.maxValue=c;this.h=String.fromCharCode(255);this.Yd=this.Cg=this.text;this.promptChar=null!=f?f:"_";this.min=this.max=0;this.ej=h}t(wF,vF);g=wF.prototype;
g.wb=function(){var a={};a.pf=vF.prototype.wb.call(this);a.maxLength=this.maxLength;a.minLength=this.minLength;a.nf=this.nf;a.minValue=this.minValue;a.maxValue=this.maxValue;a.Cg=this.Cg;a.Yd=this.Yd;a.max=this.max;a.min=this.min;a.ej=this.ej;return a};g.Lb=function(a){vF.prototype.Lb.call(this,a.pf);this.maxLength=a.maxLength;this.minLength=a.minLength;this.nf=a.nf;this.minValue=a.minValue;this.maxValue=a.maxValue;this.Cg=a.Cg;this.Yd=a.Yd;this.max=a.max;this.min=a.min;this.ej=a.ej};
g.qa=function(){return 0==this.Da()?-1:1==this.Da()?-2:parseInt(this.text,10)};g.ra=function(a){if(-1==a)this.fb();else{a<this.minValue?a=this.minValue:a>this.maxValue&&(a=this.maxValue);for(a=a.toString();a.ba()<this.maxLength;)a="0"+a;this.text=a}};g.Yo=function(a){this.i=a};
g.je=function(a){var b={},c=a;b.Za=!1;var d;this.i&&(c=Vp(c));for(d=0;d<c.ba()&&!("0">bd(c,d)||"9"<bd(c,d));d++);if(d==c.ba()){var e=Number(c);e<this.minValue||e>this.maxValue?b.Za=!0:(a="",this.text=c)}else{for(e=d;e<c.ba()&&bd(c,e)==this.promptChar;e++);c=C(c,0,d)+Zf(this.h,c.ba()-d);if(e==c.ba()){if(0==d)return this.text=c,b.text="",b;e=Number(C(c,0,d));var f=parseInt(C(this.maxValue.toString(),0,d),10),h=this.minValue.toString();h=Zf(h,this.minLength,"0");h=C(h,0,d);e<parseInt(h,10)||e>f?b.Za=
!0:(a="",this.text=c)}else b.Za=!0}b.text=a;return b};g.Cb=function(){return this.nf};g.ia=function(){for(var a=this.text;-1!=a.jb(this.h);)a=a.replace(this.h,this.promptChar);return a};g.Da=function(){var a=this.text.ba(),b=0;if(this.s&&this.s==this.text)return this.ca;if(a!=this.text.length)for(var c=0;c<a;c++)bd(this.text,c)==this.h&&b++;else for(c=0;c<a;c++)this.text.charAt(c)==this.h&&b++;this.ca=0==b&&a==this.maxLength?2:0==b||b==this.maxLength?0:1;this.s=this.text;return this.ca};
g.Fk=function(a,b,c){if(a){if(-1!=this.text.jb(this.h))for(a=0;a<this.text.ba();a++)if(bd(this.text,a)!=this.h)return;this.oldText=this.text}else b?(c&&this.Yd!=this.Cg?(a=this.text,this.text=this.Yd):(a=this.text,this.text=this.Cg),this.Cg=a):this.text=this.oldText};g.tm=function(){this.Yd=this.Cg=this.text};g.sd=function(a){return a?this.Yd!=this.text:this.Cg!=this.text};g.Wl=function(){var a=this.ij();this.min=a.min;this.max=a.max};g.sm=function(){this.Ka(this.min,this.max)};
g.fb=function(){xF(this,0)};function xF(a,b){for(var c="",d=b;d<a.maxLength;d++)c+=a.h;a.text=C(a.text,0,b)+c}g.ij=function(){var a={};a.min=this.minValue;a.max=this.maxValue;return a};
g.Ka=function(a,b){var c=this.maxLength;if(a!=this.minValue||b!=this.maxValue)if(this.minValue=a,this.maxValue=b,2==this.Da()){var d=this.qa();d<this.minValue?this.ra(this.minValue):d>this.maxValue&&this.ra(this.maxValue)}else if(1==this.Da()){var e=this.text,f=0;for(d=0;bd(e,f)!=this.h;f++)if(a=bd(e,f),d*=10,"0"<=a&&"9">=a&&(d+=a-0),a=yF(this.minValue,c-f-1),b=yF(this.maxValue,c-f-1),d<a||d>b){xF(this,f);break}}};
function yF(a,b){for(var c=0;0<a&&c<b;c++)a=parseInt((a/10).toString(),10);return a}
g.Ab=function(a,b){var c=this.maxLength;if(0>a||0>b||a+b>c)return a;var d=this.text,e=Zf(this.minValue,this.maxLength,"0"),f=d,h=C(d,0,a);f=C(f,0,a)+C(f,a+b,f.ba());b=0;var k;for(k=0;k<a;k++)b*=10,b+=parseFloat(bd(d,k)==this.h?bd(e,k):bd(d,k));var l=a,m=!1;for(k=a;k<f.ba()&&bd(f,k)!=this.h;k++)b*=10,b+=parseFloat(bd(f,k)),d=yF(this.minValue,c-l-1),e=yF(this.maxValue,c-l-1),b>=d&&b<=e?(h+=bd(f,k),l++):(b-=parseFloat(bd(f,k)),b/=10,m=!0);0==a&&0==b&&m?xF(this,0):(c=this.maxLength-h.ba(),0<c&&(h+=Zf(this.h,
c)),this.text=h);return a};
function zF(a,b,c,d){var e=a.maxLength,f={};f.offset=b;f.Jd=!1;a.i&&yp(L,c)&&(c=Op(L,c));if(!("0"<=c&&"9">=c))return f;for(var h=Zf(a.minValue,a.maxLength,"0"),k=0,l=a.text,m=0;m<b;m++)k*=10,bd(l,m)!=a.h?k+=parseFloat(bd(l,m)):k<yF(a.minValue,e-m-1)?(l=C(l,0,m)+bd(h,m)+C(l,m+1,l.ba()),k+=parseFloat(bd(h,m))):l=C(l,0,m)+"0"+C(l,m+1,l.ba());k=10*k+parseFloat(c);var n=yF(a.minValue,e-b-1);var q=yF(a.maxValue,e-b-1);if(k>=n&&k<=q){l=d?b>=l.ba()?l+c:C(l,0,b)+c+C(l,b,l.ba()-1):C(l,0,b)+c+C(l,b+1,l.ba());
b++;for(m=b;m<e;m++)if(k*=10,bd(l,m)!=a.h){if(k+=parseFloat(bd(l,m)),n=yF(a.minValue,e-m-1),q=yF(a.maxValue,e-m-1),k>q||k<n){l=C(l,0,m)+Zf(a.h,e-m);break}}else{l=C(l,0,m)+Zf(a.h,e-m);break}a.text=l}else if(k==parseFloat(c)&&"0"!=c){if("0"!=bd(h,b))return 0!=b&&(f.Jd=!0,f.offset=b),f;for(;(k>q||k<n)&&!(l=d?b>=l.ba()?l+"0":C(l,0,b)+"0"+C(l,b,l.ba()-1):C(l,0,b)+"0"+C(l,b+1,l.ba()),b++,n=yF(a.minValue,e-b-1),q=yF(a.maxValue,e-b-1),b>=l.ba()-1););k=0;for(h=b;h<e;h++)if(k*=10,k+=parseFloat(c),n=yF(a.minValue,
e-h-1),q=yF(a.maxValue,e-h-1),k>q||k<n){k-=parseFloat(c);if("0"!=bd(l,h))return 0!=b&&(f.Jd=!0,f.offset=b),f;l=d?h>=l.ba()?l+"0":C(l,0,h)+"0"+C(l,h,l.ba()-1):C(l,0,h)+"0"+C(l,h+1,l.ba());if(h==l.ba()-1)return f.Jd=!1,f}else{l=d?h>=l.ba()?l+c:C(l,0,h)+c+C(l,h,l.ba()-1):C(l,0,h)+c+C(l,h+1,l.ba());h++;for(m=h;m<e;m++)if(k*=10,bd(l,m)!=a.h){if(k+=parseFloat(bd(l,m)),n=yF(a.minValue,e-m-1),q=yF(a.maxValue,e-m-1),k>q||k<n){l=C(l,0,m)+Zf(a.h,e-m);break}}else{l=C(l,0,m)+Zf(a.h,e-m);break}a.text=l;b=h;break}}f.offset=
b;f.Jd=!0;return f}g.Eb=function(a,b){var c=a,d={Za:!1};d.offset=a;d.text=b;if(a==this.maxLength)return d;for(var e=0;e<b.ba();e++){var f=zF(this,a,bd(b,e),!0);if(f.Jd){if(a=f.offset,a==this.maxLength)break}else d.Za=!0}if(c==a)return d;e+1<b.ba()?b=C(b,e+1,b.ba()):b="";d.offset=a;d.text=b;return d};
g.Jb=function(a,b,c){var d=a,e={Za:!1};e.offset=a;e.text=c;if(a==this.maxLength)return e;for(var f=0;f<c.ba();f++){var h=zF(this,a,bd(c,f),f>=b);if(h.Jd){if(a=h.offset,a==this.maxLength)break}else e.Za=!0}if(d==a)return e;h=b+d-a;var k=this.text;k.ba()>=d+b&&0<h&&(this.text=C(k,0,a)+C(k,d+b,k.ba())+Zf(this.h,h));f+1<c.ba()?c=C(c,f+1,c.ba()):c="";e.offset=a;e.text=c;return e};function AF(a,b){this.index=b;this.key=a}
function BF(a,b,c,d,e){Tr.call(this,d);this.keys=[];this.current=-1;this.ci=this.re="";this.Ha=a;this.items=Array(b.length);this.nf=c;this.min=0;this.max=b.length-1;this.Yd=this.mh=this.oldValue=this.value=this.current=-1;this.promptChar=null!=e?e:"_";CF(this,b)}t(BF,vF);g=BF.prototype;
g.wb=function(){var a={};a.pf=vF.prototype.wb.call(this);a.keys=this.keys;a.current=this.current;a.re=this.re;a.ci=this.ci;a.items=this.items;a.nf=this.nf;a.min=this.min;a.max=this.max;a.value=this.value;a.oldValue=this.oldValue;a.mh=this.mh;a.Yd=this.Yd;return a};
g.Lb=function(a){vF.prototype.Lb.call(this,a.pf);this.keys=a.keys;this.current=a.current;this.re=a.re;this.ci=a.ci;this.items=a.items;this.nf=a.nf;this.min=a.min;this.max=a.max;this.current=a.current;this.value=a.value;this.oldValue=a.oldValue;this.mh=a.mh;this.Yd=a.Yd};g.qa=function(){return this.value};g.ra=function(a){-1!=a&&(a<this.min||a>this.max)||(a!=this.current&&(this.value=this.current=a),this.text=this.ia())};
g.je=function(a){this.h&&(a=Vp(a));var b={Za:!0};b.text=a;var c=a.ba();if(c<this.minLength||c>this.maxLength)return b;this.re="";for(var d=this.items.length-1;0<=d;d--){var e=Math.min(c,this.items[d].length);if(cg(a,0,this.items[d],0,e)){a=C(a,e,c);b.Za=!1;b.text=a;this.ra(d);break}}return b};g.ia=function(){var a=this.current;return-1==a?Zf(this.promptChar,this.minLength):a<this.min||a>this.max?"Invalid index":this.items[a]};g.Da=function(){return-1==this.value?0:2};
g.Fk=function(a,b,c){a?this.oldValue=this.value:b?(a=this.value,this.current=this.value=c?this.Yd:this.mh,this.mh=a):this.current=this.value=this.oldValue};g.tm=function(){this.Yd=this.mh=this.value};g.sd=function(a){return a?this.Yd!=this.value:this.mh!=this.value};g.Wl=function(){this.ci=this.re};g.sm=function(){this.re=this.ci;this.ci=""};g.fb=function(){this.ra(-1)};
function CF(a,b){if(b.length==a.items.length){for(var c=0;c<b.length;c++)a.items[c]=b[c];b=a.items.length;c=Array(b);for(var d=0;d<b;d++)c[d]=a.items[d].length;c=c.sort();a.maxLength=c[b-1];a.minLength=c[0]}}g.Cb=function(){return this.nf};g.ij=function(){var a={};a.min=this.min;a.max=this.max;return a};g.Ka=function(a,b){a==this.min&&b==this.max||0>a||b>=this.items.length||a>b||(this.min=a,this.max=b,2==this.Da()&&(a=this.qa(),a<this.min?this.ra(this.min):a>this.max&&this.ra(this.max)))};
function DF(a,b){for(var c=-1,d=0,e={},f=0;f<a.items.length&&!(cg(b,0,a.items[f],0,b.ba())&&(-1==c&&(c=f),d++,1<d));f++);e.index=c;e.Yh=1<d;return e}g.Yo=function(a){this.h=a};function EF(a,b){for(var c={},d=-1,e=0,f=0;f<a.keys.length&&!(cg(a.keys[f].key,0,b,0,b.ba())&&a.keys[f].index>=a.min&&a.keys[f].index<=a.max&&(-1==d&&(d=a.keys[f].index),e++,1<e));f++);c.index=d;c.Yh=1<e;return c}
function FF(a,b,c){if(null!=b&&null!=c&&0!=b.length&&0!=c.length&&b.length==c.length){var d=b.length;a.keys=Array(d);for(var e=0;e<d;e++)a.keys[e]=new AF(b[e],c[e])}}
g.Eb=function(a,b){var c=a,d=!1,e,f={Za:!1};f.offset=a;f.text=b;if(null==b||0==b.ba())return f;for(e=0;e<b.ba();e++){a:{var h=a;var k=bd(b,e),l={};l.offset=h;l.Jd=!1;l.Yh=!1;if(!(0>h||h>=this.maxLength||""==k)){var m=k;this.h&&yp(L,m)&&(m=Op(L,m));var n=this.re+m;n=EF(this,n);"0"!=m&&-1==n.index&&0<this.re.length&&(n=m.toString(),n=EF(this,n));m=n.index;if(-1!=m){if(n=n.Yh)this.re+=k,"0"==k&&1==this.re.length&&(m=this.current),h--;2==this.re.length&&(n=!1);this.ra(m)}else{m=h;n=k;if(0>m||m+1>this.maxLength||
0==Number(n))m=-1;else{n=C(this.ia(),0,m)+n;var q=this.current;-1!=q&&(cg(n,0,this.items[q],0,m+1)||(q=-1));if(-1==q)for(q=this.min;q<=this.max&&!cg(n,0,this.items[q],0,m+1);q++);m=q>this.max?-1:q}if(-1!=m)this.ra(m),n=DF(this,C(this.items[m],0,h+1)).Yh;else if(-1!=(m=DF(this,k.toString()).index))h=0,this.ra(m),n=DF(this,k.toString()).Yh;else{h=l;break a}}n?h++:this.re="";l.offset=h;l.Jd=!0;l.Yh=n}h=l}if(h.Jd){d=!0;a=h.offset;if(0<this.maxLength&&a==this.ba())break;if(0==h.Yh){for(;a+1<this.items[this.value].toString().ba()&&
e+1<b.ba()&&cg(b,e+1,this.items[this.value],a+1,1);a++,e++);a=this.ba();break}}else f.Za=!0}if(!d&&c==a)return f;e+1<b.ba()?b=C(b,e+1,b.ba()):b="";f.offset=a;f.text=b;return f};g.Ab=function(){this.ra(-1);return 0};g.Jb=function(a,b,c){return this.Eb(a,c)};function GF(a,b){Tr.call(this,b);this.Ha=a;this.minLength=this.text.ba();this.maxLength=this.text.ba();this.text="A.D."}t(GF,vF);GF.prototype.ia=function(){return"A.D."};GF.prototype.je=function(a){this.text=a};GF.prototype.Da=function(){return 2};
GF.prototype.Cb=function(){return this.text.ba()};function HF(a,b){tF.call(this,a);this.pd=this.od=this.Vb=this.ab=this.qb=this.Lc=this.Kc=this.Gb=this.Mb=this.Di=this.Bi=this.Ai=this.xi=this.Ci=this.Ei=this.wi=this.zi=this.yi=-1;this.maxDate=new Date(9999,11,31,23,59,59);this.minDate=new Date(100,0,1);this.ub=new Date;this.ca="hour0as12";this.ea=!1;this.ga=2029;this.i="validateex";this.zc=!1;null!=b&&null!=b.hg&&(this.ca=b.hg);null!=b&&null!=b.jg&&(this.ea=b.jg);null!=b&&null!=b.af&&(this.ga=b.af);null!=b&&null!=b.Of&&(this.i=b.Of);this.s=null!=
b&&null!=b.hc?new Date(b.hc):this.maxDate;this.u=null!=b&&null!=b.oc?new Date(b.oc):this.minDate}t(HF,tF);function IF(a,b){for(var c=0;c<a.g;c++)a.ma(c)instanceof wF?a.ma(c).promptChar=b:a.ma(c)instanceof BF&&(a.ma(c).promptChar=b)}g=HF.prototype;
g.wb=function(){var a={};a.yi=this.yi;a.zi=this.zi;a.wi=this.wi;a.Ei=this.Ei;a.Ci=this.Ci;a.xi=this.xi;a.Ai=this.Ai;a.Bi=this.Bi;a.Di=this.Di;a.Mb=this.Mb;a.Gb=this.Gb;a.Kc=this.Kc;a.Lc=this.Lc;a.qb=this.qb;a.ab=this.ab;a.Vb=this.Vb;a.od=this.od;a.pd=this.pd;a.ub=this.ub;a.zc=this.zc;a.Mp=[];for(var b=0;b<this.h.length;b++)a.Mp.push(this.h[b].wb());return a};
g.Lb=function(a){this.yi=a.yi;this.zi=a.zi;this.wi=a.wi;this.Ei=a.Ei;this.Ci=a.Ci;this.xi=a.xi;this.Ai=a.Ai;this.Bi=a.Bi;this.Di=a.Di;this.Mb=a.Mb;this.Gb=a.Gb;this.Kc=a.Kc;this.Lc=a.Lc;this.qb=a.qb;this.ab=a.ab;this.Vb=a.Vb;this.od=a.od;this.pd=a.pd;this.ub=a.ub;for(var b=0;b<this.h.length;b++)this.h[b].Lb(a.Mp[b]);this.zc=a.zc};function JF(a){return"validateex"==a.i}function KF(a){if(JF(a)){var b=a.qa(!1);null!=b&&!LF(b)&&(b>=a.u&&b<=a.s||(b>a.s?a.ra(a.s):a.ra(a.u)))}}g.af=function(){return this.ga};
function MF(a){a=a.af();99==a&&(a=100);return a}g.Ec=function(){var a=S(this,NF);return null==a||1!=a.Cb()&&2!=a.Cb()?!1:!0};function OF(a){return null==S(a,PF)?!1:!0}function QF(a){return null==S(a,RF)?!1:!0}function SF(a){return null==S(a,TF)?!1:!0}function UF(a){return null==S(a,VF)?!1:!0}function WF(a){return null==S(a,XF)?!1:!0}g.xe=function(){var a=S(this,U);return null==a||1!=a.Cb()&&2!=a.Cb()?!1:!0};function YF(a){a=S(a,U);return null==a||3!=a.Cb()&&4!=a.Cb()?!1:!0}
function ZF(a){return null==S(a,$F)?!1:!0}function aG(a){return null==S(a,bG)?!1:!0}function cG(a){a=S(a,dG);return null==a||3!=a.Cb()&&4!=a.Cb()?!1:!0}function eG(a){a=S(a,dG);return null==a||1!=a.Cb()&&2!=a.Cb()?!1:!0}function fG(a){for(var b=0;b<a.g;b++){var c=a.ma(b);if(!(c instanceof Q||c.Ha!=RF&&c.Ha!=PF))return!0}return!1}function gG(a){return cG(a)||eG(a)?!0:!1}function hG(a){return a.xe()||YF(a)?!0:!1}function S(a,b){b=iG(a,b);return-1==b?null:a.ma(b)}
g.Tb=function(a){var b={index:-1,offset:-1};if(0>a||a>this.ba())return b;for(var c,d=0,e=0;e<this.g;e++){c=this.ma(e);c=c.ba();var f=d;d+=c;if(a<d){b.index=e;b.offset=a-f;break}else if(a==d){e+1==this.g?(b.index=e,b.offset=c):(b.index=e+1,b.offset=0);break}}return b};function iG(a,b){if(a.la){a.ka=[];for(var c=0;c<a.g;c++){var d=a.ma(c);d instanceof Q||(a.ka[d.Ha]=c)}a.la=!1}return a.ka[b]}
function jG(a,b,c){if(aG(a))for(var d=0;d<a.g;d++)if(a.ma(d).Ha==bG){a=a.ma(d);d=b;var e=c;1==a.Cb()&&(d=C(b,0,1),e=C(c,0,1));CF(a,[d,e]);break}}g.Fc=function(a){if("\x00"==a||0==this.g)return"";for(var b="",c=0;c<this.g;c++)this.ma(c)instanceof Q?b+=this.ma(c).ia():this.ma(c)instanceof wF?b+=Zf(a,this.ma(c).Cb()):this.ma(c)instanceof BF?b+=Zf(a,this.ma(c).minLength):this.ma(c)instanceof GF&&(b+=Zf(a,this.ma(c).Cb()));return b};
function kG(a,b){b=null==b?new Date:new Date(b);var c=sh(b);if(-1==c.era||-1==c.nd)c=sh(new Date);if(UF(a)||aG(a))"hour12as0"==a.ca?0<=b.getHours()&&12>b.getHours()?(a.Kc=0,a.Vb=b.getHours()):(a.Kc=1,a.Vb=b.getHours()-12):0<=b.getHours()&&12>b.getHours()?(a.Kc=0,a.Vb=0==b.getHours()?12:b.getHours()):(a.Kc=1,a.Vb=12==b.getHours()?12:b.getHours()-12);else{if(a.ea){var d=b.getHours();a.Vb=0==d?24:d}else a.Vb=b.getHours();a.Kc=0<=b.getHours()&&12>b.getHours()?0:1}a.Lc=b.getFullYear();a.qb=b.getMonth()+
1;a.ab=b.getDate();a.od=b.getMinutes();a.pd=b.getSeconds();a.Mb=c.era;a.Gb=c.nd}function lG(a){for(var b=0;b<a.g;b++){var c=a.ma(b);c instanceof Q||c.tm()}}g.sd=function(){for(var a=0;a<this.g;a++){var b=this.ma(a);if(!(b instanceof Q)&&b.sd(this.zc))return!0}return!1};function mG(a){for(var b=0;b<a.g;b++){var c=a.ma(b);c instanceof Q||(c.Fk(!0),c.Wl())}a.sa=a.ub;a.wi=a.Kc;a.xi=a.ab;a.yi=a.Mb;a.zi=a.Gb;a.Ai=a.Vb;a.Bi=a.od;a.Ci=a.qb;a.Di=a.pd;a.Ei=a.Lc}
function nG(a,b){for(var c=0;c<a.g;c++){var d=a.ma(c);d instanceof Q||(d.Fk(!1,b,a.zc),d.sm())}a.zc&&(a.zc=!1);a.ub=a.sa;a.Kc=a.wi;a.ab=a.xi;a.Mb=a.yi;a.Gb=a.zi;a.Vb=a.Ai;a.od=a.Bi;a.qb=a.Ci;a.pd=a.Di;a.Lc=a.Ei}function oG(a){var b=S(a,dG);if(cG(a))return b.qa();if(eG(a)){b=b.qa();if(-1!=b&&-2!=b){var c=100*parseInt((MF(a)/100).toString(),10)+b,d=100*parseInt(((MF(a)-99)/100).toString(),10)+b;c<=MF(a)&&c>=MF(a)-99?b=c:d<=MF(a)&&d>=MF(a)-99&&(b=d)}return b}return a.Lc}
function pG(a){var b="validatenone"==a.i?0:eG(a)?0:100;var c=eG(a)?99:9999;cG(a)||eG(a)?S(a,dG).Ka(b,c):-1!=a.Lc&&(a.Lc>c&&(a.Lc=c),a.Lc<b&&(a.Lc=b))}function qG(a){return QF(a)?S(a,RF).qa():a.Mb}function rG(a){return OF(a)?S(a,PF).qa():a.Gb}
function sG(a){var b=dh,c=1,d=1,e=S(a,RF),f=S(a,PF),h=S(a,U),k=S(a,NF);if("validatenone"==a.i||"validate"==a.i)c="validatenone"==a.i?0:1,d=gh,QF(a)?e.Ka(0,b):-1!=a.Mb&&(0>a.Mb&&(a.Mb=0),a.Mb>b&&(a.Mb=b)),OF(a)?f.Ka(c,d):-1!=a.Gb&&(a.Gb<c&&(a.Gb=c),a.Gb>d&&(a.Gb=d));else{var l=QF(a)&&1==e.Da()?-2:qG(a);var m=OF(a)&&1==f.Da()?-2:rG(a);var n=(YF(a)||a.xe())&&1==h.Da()?-2:tG(a);var q=a.Ec()&&1==k.Da()?-2:uG(a);-2==l||-1==l?d=gh:l<dh&&(d=eh[l]);QF(a)?e.Ka(0,b):-1!=a.Mb&&(0>a.Mb&&(a.Mb=0),a.Mb>b&&(a.Mb=
b));OF(a)?f.Ka(c,d):-1!=a.Gb&&(a.Gb<c&&(a.Gb=c),a.Gb>d&&(a.Gb=d));if(-1!=l&&-2!=l)if(b=uh(l,m),c=vh(l,m,n),0==l&&1==m){if(1<=n&&n<b.min||n==b.min&&1<=q&&q<c.min)a.xe()?(h.Ka(b.min,b.max),h.ra(b.min)):YF(a)?(h.Ka(b.min-1,b.max-1),h.ra(b.min-1)):a.qb=b.min,a.Ec()?(k.Ka(c.min,c.max),k.ra(c.min)):a.ab=c.min}else if(l!=dh-1||1==m)(h=S(a,RF),k=S(a,PF),e=S(a,U),c=S(a,NF),d=uh(l,m),b=vh(l,m,n),1==m)?(m=!1,1<=n&&n<d.min&&(m=!0),-2==n&&(e=e.ia(),10<=d.min&&0==parseInt(e[0],10)&&(m=!0)),n==d.min&&(1<=q&&q<b.min&&
(m=!0),-2==q&&(n=c.ia(),n=parseInt(n[0],10),30<=b.min&&3>n||20<=b.min&&2>n||10<=b.max&&1>n))&&(m=!0),m&&(QF(a)?(h.Ka(0,dh-1),h.ra(l-1)):a.Mb=l-1,OF(a)?(k.Ka(1,eh[l-1]),k.ra(eh[l-1])):a.Gb=eh[l-1])):m==eh[l]&&(m=!1,n>d.max&&12>=n&&(m=!0),-2==n&&(e=e.ia(),10>d.max&&1==parseInt(e[0],10)&&(m=!0)),n==d.max&&(q>b.max&&(m=!0),-2==q&&(n=c.ia(),n=parseInt(n[0],10),30>b.max&&3==n||20>b.max&&2==n||10>b.max&&1==n))&&(m=!0),m&&(QF(a)?(h.Ka(0,dh-1),h.ra(l+1)):a.Mb=l+1,OF(a)?(k.Ka(1,eh[l+1]),k.ra(1)):a.Gb=1))}}
function tG(a){return a.xe()?S(a,U).qa():YF(a)?(a=S(a,U).qa(),-1==a?a:a+1):a.qb}
function vG(a,b){var c=S(a,U);if("validatenone"==a.i||"validate"==a.i)if(YF(a))c.Ka(0,11);else{var d="validatenone"==a.i?0:1;var e="validatenone"==a.i?99:12;a.xe()?c.Ka(d,e):-1!=a.qb&&(a.qb>e&&(a.qb=e),a.qb<d&&(a.qb=d))}else if(QF(a)||OF(a)){var f=QF(a)&&1==S(a,RF).Da()?-2:qG(a);var h=OF(a)&&1==S(a,PF).Da()?-2:rG(a);d=0==f&&1==h?bh[f].getMonth()+1:1;e=12;YF(a)?c.Ka(d-1,e-1):a.xe()?c.Ka(d,e):-1!=a.qb&&(a.qb>e&&(a.qb=e),a.qb<d&&(a.qb=d));e=!1;d=(YF(a)||a.xe())&&1==c.Da()?-2:tG(a);f=uh(f,h);1<=d&&d<
f.min?(e=!0,d=f.min):d>f.max&&12>=d?(e=!0,d=f.max):-2==d&&b!=wG&&(b=c.ia(),b=parseInt(b[0],10),b<C(f.min.toString(),0,1)-0?(e=!0,d=f.min):b>C(f.max.toString(),0,1)-0&&(e=!0,d=f.max),1==h&&(e=!1));e&&(YF(a)?c.ra(d-1):a.xe()?c.ra(d):a.qb=d)}else YF(a)?c.Ka(0,11):a.xe?c.Ka(1,12):-1!=a.qb&&(12<a.qb&&(a.qb=12),1>a.qb&&(a.qb=1))}function uG(a){return a.Ec()?S(a,NF).qa():a.ab}
function xG(a,b){var c=S(a,NF);if("validatenone"==a.i||"validate"==a.i){var d="validatenone"==a.i?0:1;var e="validatenone"==a.i?99:31;a.Ec()?c.Ka(d,e):-1!=a.ab&&(a.ab>e&&(a.ab=e),a.ab<d&&(a.ab=d))}else if(QF(a)||OF(a)){var f=QF(a)&&1==S(a,RF).Da()?-2:qG(a);var h=OF(a)&&1==S(a,PF).Da()?-2:rG(a);var k=(YF(a)||a.xe())&&1==S(a,U).Da()?-2:tG(a);d=1;e=mh(kh(f,h,!0),k);0==f&&1==h&&k==bh[0].getMonth()+1&&(d=bh[0].getDate());a.Ec()?c.Ka(d,e):-1!=a.ab&&(a.ab>e&&(a.ab=e),a.ab<d&&(a.ab=d));d=a.Ec()&&1==c.Da()?
-2:uG(a);var l=!1,m=uh(f,h);f=vh(f,h,k);k==m.min?(1<=d&&d<f.min&&(l=!0,d=f.min),-2==d&&b!=wG&&(k=c.ia(),k=parseInt(k[0],10),k<C(f.min.toString(),0,1)-0&&(l=!0,d=f.min))):k==m.max&&(d>f.max&&d<=e&&(l=!0,d=f.max),-2==d&&b!=wG&&(k=c.ia(),k=parseInt(k[0],10),k>C(f.max.toString(),0,1)-0&&(l=!0,d=f.max)));l&&(a.Ec()?c.ra(d):a.ab=d)}else l=(eG(a)||cG(a))&&1==S(a,dG).Da()?-2:oG(a),k=(YF(a)||a.xe())&&1==S(a,U).Da()?-2:tG(a),d=1,e=mh(l,k),a.Ec()?c.Ka(d,e):-1!=a.ab&&(a.ab>e&&(a.ab=e),a.ab<d&&(a.ab=d))}
function yG(a,b,c,d,e){var f=S(a,NF),h={},k={};k.offset=c;k.text=e;k.ag=!1;1!=f.Da()&&xG(a,b);b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):b==wG&&(k.offset=f.Ab(c,d));k.OperationResult=h.Za?"HasInvalid":"Success";b!=wG&&c!=k.offset||b==wG?((QF(a)||OF(a))&&1!=f.Da()&&sG(a),k.hd=!0):k.hd=!1;return k}
function BG(a,b,c,d,e){var f=S(a,PF),h={},k={};k.offset=c;k.text=e;k.ag=!1;sG(a);b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";b!=wG&&c!=k.offset||b==wG?(vG(a),xG(a),k.hd=!0):k.hd=!1;return k}
function CG(a,b,c,d,e){var f=S(a,TF),h={},k={};k.offset=c;k.text=e;k.ag=!1;if("validatenone"==a.i){var l=0;var m=99}else a.ea?(l=1,m=24):(l=0,m=23);SF(a)?S(a,TF).Ka(l,m):-1!=a.Vb&&(a.Vb>m&&(a.Vb=m),a.Vb<l&&(a.Vb=l));b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";k.hd=b!=wG&&c!=k.offset||b==wG?!0:!1;return k}
function DG(a,b,c,d,e){var f=S(a,XF),h={},k={};k.offset=c;k.text=e;k.ag=!1;var l="validatenone"==a.i?99:59;WF(a)?S(a,XF).Ka(0,l):-1!=a.od&&(0>a.od&&(a.od=0),a.od>l&&(a.od=l));b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";k.hd=b!=wG&&c!=k.offset||b==wG?!0:!1;return k}
function EG(a,b,c,d,e){var f=S(a,U),h={},k={};k.offset=c;k.text=e;k.ag=!1;vG(a,b);b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";b!=wG&&c!=k.offset||b==wG?((QF(a)||OF(a))&&sG(a),xG(a),k.hd=!0):k.hd=!1;return k}
function FG(a,b,c,d,e){var f=S(a,$F),h={},k={};k.offset=c;k.text=e;k.ag=!1;var l="validatenone"==a.i?99:59;ZF(a)?S(a,$F).Ka(0,l):-1!=a.pd&&(0>a.pd&&(a.pd=0),a.pd>l&&(a.pd=l));b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";k.hd=b!=wG&&c!=k.offset||b==wG?!0:!1;return k}
function GG(a,b,c,d,e){var f=S(a,VF),h={},k={};k.offset=c;k.text=e;k.ag=!1;if("validatenone"==a.i){var l=0;var m=99}else"hour12as0"==a.ca?(l=0,m=11):(l=1,m=12);UF(a)?S(a,VF).Ka(l,m):-1!=a.Vb&&(a.Vb>m&&(a.Vb=m),a.Vb<l&&(a.Vb=l));b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";k.hd=b!=wG&&c!=k.offset||b==wG?!0:!1;return k}
function HG(a,b,c,d,e){var f=S(a,dG),h={},k={};k.offset=c;k.text=e;k.ag=!1;pG(a);b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";b!=wG&&c!=k.offset||b==wG?(xG(a),k.hd=!0):k.hd=!1;return k}
function IG(a,b,c,d,e){var f=S(a,bG),h={},k={};k.offset=c;k.text=e;k.ag=!1;aG(a)?S(a,bG).Ka(0,1):-1!=a.Kc&&(1<a.Kc&&(a.Kc=1),0>a.Kc&&(a.Kc=0));b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";k.hd=b!=wG&&c!=k.offset||b==wG?!0:!1;return k}
function JG(a,b,c,d,e){var f=S(a,RF),h={},k={};k.offset=c;k.text=e;k.ag=!1;sG(a);b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";b!=wG&&c!=k.offset||b==wG?(sG(a),vG(a),xG(a),k.hd=!0):k.hd=!1;return k}
function KG(a,b,c,d,e){var f=S(a,U),h={},k={};k.offset=c;k.text=e;k.ag=!1;vG(a);b==zG?(h=f.Eb(c,e),k.offset=h.offset,k.text=h.text):b==AG?(h=f.Jb(c,d,e),k.offset=h.offset,k.text=h.text):k.offset=f.Ab(c,d);k.OperationResult=h.Za?"HasInvalid":"Success";b!=wG&&e!=k.text||b==wG?((QF(a)||OF(a))&&sG(a),xG(a),k.hd=!0):k.hd=!1;return k}
function LG(a,b,c){var d=C(a.ia(),b,a.ia().ba()-b),e={};if(c.ba()>d.ba()){var f=C(c,0,d.ba());f==d?(e.text=C(c,d.ba(),c.ba()),e.start=a.ia().ba(),e.Jd=!0):(e.text="",e.Jd=!1)}else c.ba()==d.ba()?c==d?(e.text="",e.start=a.ia().ba(),e.Jd=!0):(e.text="",e.Jd=!1):(f=C(d,0,c.ba()),f==c?(e.text="",e.start=b+f.ba(),e.Jd=!0):(e.text="",e.Jd=!1));return e}
g.$d=function(a,b,c){var d=a,e=!1,f={},h={};h.cursorPos=a;h.text=b;h.OperationResult="Success";if(0==this.g||null==b||""==b||0>a||a>=this.ba())return h;var k=this.Tb(a);var l=k.index;var m=k.offset;for(k=l;k<this.g&&this.ma(k)instanceof Q;k++);if(k==this.g&&!c)return h.OperationResult="HasInvalid",h;k=a-m;var n=m;for(m=l;m<this.g;m++){var q=this.ma(m);m>l&&(n=0);if(q instanceof Q)if(c){var u=LG(q,n,b);u.Jd?(a=k+u.start,b=u.text,e=!0):h.OperationResult="HasInvalid"}else if(m==this.g-1){h.OperationResult=
"HasInvalid";break}else a=k+q.ba();else if(q instanceof wF?f=q.Ha==NF?yG(this,zG,n,0,b):q.Ha==PF?BG(this,zG,n,0,b):q.Ha==TF?CG(this,zG,n,0,b):q.Ha==XF?DG(this,zG,n,0,b):q.Ha==U?EG(this,zG,n,0,b):q.Ha==$F?FG(this,zG,n,0,b):q.Ha==VF?GG(this,zG,n,0,b):HG(this,zG,n,0,b):q instanceof BF&&(f=q.Ha==bG?IG(this,zG,n,0,b):q.Ha==RF?JG(this,zG,n,0,b):KG(this,zG,n,0,b)),"HasInvalid"==f.OperationResult&&(h.OperationResult="HasInvalid"),f.hd)a=k+f.offset,b=f.text,e=!0;else break;if(null==b||""==b)break;if(m==this.g-
1&&"Success"===h.OperationResult){b="";break}if(m==this.g-1){h.OperationResult="HasInvalid";break}k+=q.ba()}e?(d=this.Tb(a),c=d.offset,d=d.index,this.ma(d)instanceof Q&&d<this.g-1&&(a=a-c+this.ma(d).ba()),this.zc=!0):a=d;h.cursorPos=a;h.text=b;return h};
g.Sd=function(a,b){var c=a,d={},e={};e.cursorPos=a;e.eo=!1;var f;if(0==this.g||0>a||a>=this.ba()||0>=b)return e;var h=this.Tb(a);var k=h.index;h=h.offset;var l=this.Tb(a+b);b=l.index;l=l.offset;0==l&&(b--,l=this.ma(b).ba());if(-1==k||-1==b)return e;for(f=k;f<=b&&this.ma(f)instanceof Q;f++);if(f==b+1)return e;for(var m,n=!1,q=a-h,u=k;u<=b;u++){var r=this.ma(u);k==b?(f=h,m=l-h):u==k?(f=h,m=r.ba()-h):u==b?(f=0,m=l):(f=0,m=r.ba());r instanceof wF?(d=r.Ha==NF?yG(this,wG,f,m,""):r.Ha==PF?BG(this,wG,f,m,
""):r.Ha==TF?CG(this,wG,f,m,""):r.Ha==XF?DG(this,wG,f,m,""):r.Ha==U?EG(this,wG,f,m,""):r.Ha==$F?FG(this,wG,f,m,""):r.Ha==VF?GG(this,wG,f,m,""):HG(this,wG,f,m,""),f=d.offset):r instanceof BF?(d=r.Ha==bG?IG(this,wG,f,m,""):r.Ha==RF?JG(this,wG,f,m,""):KG(this,wG,f,m,""),f=d.offset):r instanceof Q&&(d.hd=!1);d.hd&&(n=!0,e.eo=!0);u==k&&(a=q+f)}n?this.zc=!0:a=c;e.cursorPos=a;return e};
g.Lf=function(a,b,c,d){var e=a,f={},h={},k;h.cursorPos=a;h.text=c;h.OperationResult="Success";if(0==this.g||null==c||""==c||0>a||a>=this.ba()||0>=b)return h;var l=this.Tb(a);var m=l.index;var n=l.offset;var q=a-n;var u=this.Tb(a+b);l=u.index;u=u.offset;0==u&&(l--,u=this.ma(l).ba());var r=a+b-u;for(k=m;k<this.g&&this.ma(k)instanceof Q;k++);if(k==this.g&&0==d)return nG(this),h.OperationResult="HasInvalid",h;u=Array(l-m+1);if(m==l)u[0]=b;else for(k=m;k<=l;k++)u[k-m]=k==m?q+this.ma(k).ba()-a:k==l?a+b-
r:this.ma(k).ba();b=!1;var z;for(k=m;k<this.g;k++){r=this.ma(k);var D=k-m;k==m?z=n:z=0;D=D<u.length?u[D]:0;var wa=0<D?AG:zG;if(!(r instanceof Q))if(r instanceof wF?f=r.Ha==NF?yG(this,wa,z,D,c):r.Ha==PF?BG(this,wa,z,D,c):r.Ha==TF?CG(this,wa,z,D,c):r.Ha==XF?DG(this,wa,z,D,c):r.Ha==U?EG(this,wa,z,D,c):r.Ha==$F?FG(this,wa,z,D,c):r.Ha==VF?GG(this,wa,z,D,c):HG(this,wa,z,D,c):r instanceof BF&&(f=r.Ha==bG?IG(this,wa,z,D,c):r.Ha==RF?JG(this,wa,z,D,c):KG(this,wa,z,D,c)),"HasInvalid"==f.OperationResult&&(h.OperationResult=
"HasInvalid"),f.hd)a=q+f.offset,c=f.text,b=!0;else{if(b&&k-m<u.length)for(;k<=l;k++)this.ma(k)instanceof Q||(d=0,this.ma(k).Ab(d,u[k-m]));break}else if(r instanceof Q)if(d)D=LG(r,z,c),D.Jd?(a=q+D.start,c=D.text,b=!0):(nG(this),h.OperationResult="HasInvalid");else if(k==this.g-1){h.OperationResult="HasInvalid";break}else a=q+r.ba();if(null==c||""==c){if(k+1-m<u.length)for(k+=1;k<=l;k++)this.ma(k)instanceof Q||(d=0,this.ma(k).Ab(d,u[k-m]));break}if(k==this.g-1){h.OperationResult="HasInvalid";break}q+=
r.ba()}b?(m=this.Tb(a),e=m.offset,m=m.index,this.ma(m)instanceof Q&&m<this.g-1&&(a=a-e+this.ma(m).ba()),this.zc=!0):a=e;h.cursorPos=a;h.text=c;return h};
g.xh=function(a,b){MG(this);if(""==a||null==a)return nG(this),!1;for(var c=0;c<this.g;c++){var d=this.ma(c);if(d instanceof Q&&b){if(a.ba()<d.ba())return nG(this),!1;var e=C(a,0,d.ba());if(e==d.ia())a=C(a,d.ba(),a.ba());else return nG(this),!1}else if(d instanceof BF){if(a.ba()<d.minLength)return nG(this),!1;e=C(a,0,a.ba()>=d.maxLength?d.maxLength:a.ba());e=d.je(e);if(e.Za){e=C(a,0,d.minLength);for(var f=0;f<e.ba();f++)if(bd(e,f)!=this.promptChar)return nG(this),!1;d.ra(-1)}a=C(a,d.ba(),a.ba())}else if(d instanceof
wF){if(a.ba()<d.minLength)return nG(this),!1;e=C(a,0,d.minLength);e=d.je(e);if(e.Za)return nG(this),!1;a=C(a,d.ba(),a.ba())}}if(""!=a&&0<this.g)return nG(this),!1;if("validatenone"!=this.i&&"validate"!=this.i)if(OF(this)||QF(this))if(d=qG(this),e=rG(this),b=tG(this),a=uG(this),-1==d){if((4==b||6==b||9==b||11==b)&&31==a||2==b&&(this.Ec()&&(c=S(this,NF),1==c.Da()&&(b=c.ia(),"3"==b[0]))||1>a||29<a))return nG(this),!1}else if(c=eh[d],-1==e){if(OF(this)&&(d=S(this,PF),1==d.Da()&&(d=parseInt(C(d.ia(),0,
1),10),.1>d||d>c/10))||-1!=b&&((4==b||6==b||9==b||11==b)&&31==a||2==b&&(this.Ec()&&(c=S(this,NF),1==c.Da()&&(b=c.ia(),"3"==b[0]))||1>a||29<a)))return nG(this),!1}else{if(1>e||e>c)return nG(this),!1;f=uh(d,e);c=f.min;f=f.max;if(-1==b){if(this.xe()&&(a=S(this,U),1==a.Da()&&(d=parseInt(C(a.ia(),0,1),10),d<c/10||d>f/10)))return nG(this),!1}else{if(b<c||b>f)return nG(this),!1;c=vh(d,e,b);b=c.min;e=c.max;if(-1==a){if(this.Ec()&&(c=S(this,NF),1==c.Da()&&(d=parseInt(C(c.ia(),0,1),10),d<b/10||d>e/10)))return nG(this),
!1}else if(a<b||a>e)return nG(this),!1}}else if(d=oG(this),b=tG(this),a=uG(this),-1!=b){if((4==b||6==b||9==b||11==b)&&31==a)return nG(this),!1;if(2==b){if(this.Ec()&&(c=S(this,NF),1==c.Da()&&(b=c.ia(),"3"==b[0])))return nG(this),!1;if(-1!=a)if(-1!=d&&wh(d)){if(1>a||29<a){if(this.Ec)return nG(this),!1;1>a&&(a=1);29<a&&(a=29);this.ab=a}}else if(1>a||28<a){if(this.Ec())return nG(this),!1;1>a&&(a=1);28<a&&(a=28);this.ab=a}}}return!0};
function MG(a){for(var b=0;b<a.g;b++){var c=a.ma(b);c instanceof Q||c.fb()}for(b=0;b<a.g;b++)if(c=a.ma(b),!(c instanceof Q))if(c instanceof wF)if(c.Ha==dG){var d="validatenone"==a.i?0:eG(a)?0:1;var e=eG(a)?99:9999;c.Ka(d,e)}else c.Ha==PF?"validatenone"==a.i?c.Ka(0,gh):c.Ka(1,gh):c.Ha==U?"validatenone"==a.i?c.Ka(0,99):c.Ka(1,12):c.Ha==NF?"validatenone"==a.i?c.Ka(0,99):c.Ka(1,31):c.Ha==TF?"validatenone"==a.i?c.Ka(0,99):"validate"==a.i&&(a.ea?c.Ka(1,24):c.Ka(0,23)):c.Ha==VF?"validatenone"==a.i?c.Ka(0,
99):c.Ka("hour12as0"==a.ca?0:1,"hour12as0"==a.ca?11:12):c.Ha==XF?"validatenone"==a.i?c.Ka(0,99):c.Ka(0,59):c.Ha==$F&&("validatenone"==a.i?c.Ka(0,99):c.Ka(0,59));else c instanceof BF&&(c.Ha==RF?c.Ka(0,dh-1):c.Ha==U?c.Ka(0,11):c.Ha==bG&&c.Ka(0,1))}
function NG(a,b){if(-1==b||null==b)return"";var c=b.getFullYear(),d=b.getMonth()+1,e=b.getDate(),f=b.getHours(),h=b.getMinutes(),k=b.getSeconds();var l=sh(b);b=l.era;l=l.nd;if(OF(a)||QF(a))if(-1==b||-1==l)return a.Fc(a.promptChar);if("hour12as0"==a.ca)if(0<=f&&12>f){var m=f;var n=0}else m=f-12,n=1;else 0<=f&&12>f?(n=0,m=0==f?12:f):(n=1,m=12==f?12:f-12);a.ea&&0==f&&(f=24);for(var q="",u=0;u<a.g;u++){var r=a.ma(u);if(r instanceof Q)q+=r.ia();else if(r instanceof wF)switch(r.Ha){case dG:2==r.Cb()?q+=
Zf(c%100,2,"0"):4==r.Cb()&&(q+=Zf(c,4,"0"));break;case PF:q+=Zf(l,fh,"0");break;case U:q+=Zf(d,2,"0");break;case NF:q+=Zf(e,2,"0");break;case TF:q+=Zf(f,2,"0");break;case VF:q+=Zf(m,2,"0");break;case XF:q+=Zf(h,2,"0");break;case $F:q+=Zf(k,2,"0")}else if(r instanceof BF){var z=r;switch(r.Ha){case RF:q+=z.items[b];break;case U:q+=z.items[d-1];break;case bG:q+=z.items[n]}}}return q}
function OG(a,b){var c=b.getFullYear(),d=b.getMonth()+1,e=b.getDate(),f=b.getHours(),h=b.getMinutes(),k=b.getSeconds();var l=sh(b);var m=l.era;l=l.nd;if(OF(a)||QF(a))if(-1==m||-1==l)return a.Fc(a.promptChar);if("hour12as0"==a.ca)if(0<=f&&12>f){var n=f;var q=0}else n=f-12,q=1;else 0<=f&&12>f?(q=0,n=0==f?12:f):(q=1,n=12==f?12:f-12);a.ea&&0==f&&(f=24);var u=c%100;b=b.getDay();for(var r="",z=0;z<a.g;z++){var D=a.ma(z);if(D instanceof Q)r+=D.ia();else if(D instanceof GF)r+=D.ia();else if(D instanceof wF)D.Ha==
NF&&1==D.Cb()?r+=e.toString():D.Ha==NF&&2==D.Cb()?r+=Zf(e,2,"0"):D.Ha==PF?D.ej&&1==l?r+="\u5143":1==D.Cb()?r+=l.toString():2<=D.Cb()&&(r+=Zf(l,2,"0")):D.Ha==VF&&1==D.Cb()?r+=n.toString():D.Ha==VF&&2==D.Cb()?r+=Zf(n,2,"0"):D.Ha==TF&&1==D.Cb()?r+=f.toString():D.Ha==TF&&2==D.Cb()?r+=Zf(f,2,"0"):D.Ha==XF&&1==D.Cb()?r+=h.toString():D.Ha==XF&&2==D.Cb()?r+=Zf(h,2,"0"):D.Ha==U&&1==D.Cb()?r+=d.toString():D.Ha==U&&2==D.Cb()?r+=Zf(d,2,"0"):D.Ha==$F&&1==D.Cb()?r+=k.toString():D.Ha==$F&&2==D.Cb()?r+=Zf(k,2,"0"):
D.Ha==dG&&1==D.Cb()?r+=u.toString():D.Ha==dG&&2==D.Cb()?r+=Zf(u,2,"0"):D.Ha==dG&&3==D.Cb()?r+=c.toString():D.Ha==dG&&4==D.Cb()&&(r+=Zf(c,4,"0"));else if(D instanceof BF){var wa=D;D.Ha==NF?r+=wa.items[b]:D.Ha==RF?r+=wa.items[m]:D.Ha==U?r+=wa.items[d-1]:D.Ha==bG&&(r+=wa.items[q])}}return r}
g.vh=function(a,b){var c="";if(0>a||0>=b)return c;var d=this.Tb(a);var e=this.Tb(a+b);a=d.index;b=d.offset;d=e.index;e=e.offset;if(-1==a||-1==d)return c;0==e&&(d--,e=this.ma(d).ba());if(a==d){var f=this.ma(a);f instanceof Q||(c=C(f.ia(),b,e))}else for(var h=a;h<=d;h++)f=this.ma(h),f instanceof Q||(c=h==a?c+C(f.ia(),b,f.ba()):h==d?c+C(f.ia(),0,e):c+f.ia());return c};
function PG(a){for(var b=0;b<a.g;b++){var c=a.ma(b);if(c instanceof wF){if(c=c.qa(),c=parseInt(c.toString(),10),0<=c||-2==c)return!1}else if(c instanceof BF&&(c=c.qa(),c=parseInt(c.toString(),10),-1<c))return!1}return!0}
g.qa=function(a){try{if(1==a||0==this.g)return this.ub;var b=tG(this),c=uG(this);if(aG(this)||UF(this)){var d=aG(this)?S(this,bG).qa():this.Kc,e=UF(this)?S(this,VF).qa():this.Vb;var f="hour12as0"==this.ca&&12<=e?-1:"hour0as12"==this.ca&&0==e||12<e?-1:-1!=d&&0<=e?"hour12as0"==this.ca?0==d?e:e+12:0==d?12==e?0:e:12==e?12:e+12:-1}else f=SF(this)?S(this,TF).qa():this.Vb,this.ea&&24===f&&(f=0);var h=WF(this)?S(this,XF).qa():this.od,k=ZF(this)?S(this,$F).qa():this.pd;if(QF(this)||OF(this)){a=!0;"validateex"!=
this.i&&(a=!1);if(PG(this))return null;var l=qG(this),m=rG(this),n=lh(l,m,b,c,f,h,k,a,hG(this),this.Ec());return null==n?QG:this.ub=n}if(PG(this))return null;var q=oG(this);n=new Date(q,b-1,c,f,h,k);return-1==q&&-1==b&&-1==c&&-1==f&&-1==h&&-1==k?null:-1==q||12<b||c>mh(q,b)||23<f||59<h||59<k||0==q&&0==b&&0==c||-2==q||-2==b||-2==c||-2==f||-2==h||-2==k||q<this.minDate.getFullYear()||q>this.maxDate.getFullYear()?QG:0<b&&0<c&&0<=f&&0<=h&&0<=k?this.ub=n:QG}catch(u){}};
g.ra=function(a){var b=!0;if(0==this.g)return this.ub=a,!1;this.ub=a;MG(this);kG(this,null==a?new Date:a);if(null==a)return this.Sd(0,this.ba()),!0;if((QF(this)||OF(this))&&!jh(a))return this.ub=a,!1;var c=sh(a);var d=c.era;c=c.nd;if(cG(this)){var e=S(this,dG);"validatenone"==this.i?e.Ka(0,9999):e.Ka(1,9999);e.ra(a.getFullYear())}else eG(this)?(e=S(this,dG),e.Ka(0,99),e.ra(a.getFullYear()%100),a.getFullYear()>this.af()&&(b=!1)):QF(this)||OF(this)?(QF(this)?(e=S(this,RF),e.Ka(0,dh-1),e.ra(d)):this.Mb=
d,OF(this)?(e=S(this,PF),"validatenone"==this.i?e.Ka(0,gh):"validate"==this.i?e.Ka(1,gh):e.Ka(1,eh[d]),e.ra(c)):this.Gb=c):this.Lc=a.getFullYear();this.xe()?(e=S(this,U),"validatenone"==this.i?e.Ka(0,99):"validate"==this.i?e.Ka(1,12):(QF(this)||OF(this))&&0==d&&1==c?e.Ka(bh[0].getMonth()+1,12):e.Ka(1,12),e.ra(a.getMonth()+1)):YF(this)?(e=S(this,U),"validateex"==this.i&&(QF(this)||OF(this))&&0==d&&1==c?e.Ka(bh[0].getMonth(),11):e.Ka(0,11),e.ra(a.getMonth())):this.qb=a.getMonth()+1;if(this.Ec()){e=
S(this,NF);var f=a.getFullYear(),h=a.getMonth()+1;if("validatenone"==this.i)e.Ka(0,99);else if("validate"==this.i)e.Ka(1,31);else{var k=vh(d,c,h);(OF(this)||QF(this))&&0==d&&1==c&&a.getMonth()==bh[d].getMonth()?e.Ka(k.min,k.max):e.Ka(1,mh(f,h))}e.ra(a.getDate())}else this.ab=a.getDate();SF(this)?(d=S(this,TF),c=a.getHours(),this.ea&&(c=0===c?24:c),"validatenone"==this.i?d.Ka(0,99):this.ea?d.Ka(1,24):d.Ka(0,23),d.ra(c)):UF(this)||aG(this)?("hour12as0"==this.ca?0<=a.getHours()&&12>a.getHours()?(d=0,
c=a.getHours()):(d=1,c=a.getHours()-12):0<=a.getHours()&&12>a.getHours()?(d=0,c=0==a.getHours()?12:a.getHours()):(d=1,c=12==a.getHours()?12:a.getHours()-12),UF(this)?(e=S(this,VF),"validatenone"==this.i?e.Ka(0,99):"hour12as0"==this.ca?e.Ka(0,11):e.Ka(1,12),e.ra(c)):this.Vb=c,aG(this)?(c=S(this,bG),c.Ka(0,1),c.ra(d)):this.Kc=d):this.Vb=a.getHours();WF(this)?(d=S(this,XF),"validatenone"==this.i?d.Ka(0,99):d.Ka(0,59),d.ra(a.getMinutes())):this.od=a.getMinutes();ZF(this)?(d=S(this,$F),"validatenone"==
this.i?d.Ka(0,99):d.Ka(0,59),d.ra(a.getSeconds())):this.pd=a.getSeconds();return b};function V(a,b){if(b instanceof wF){if(1==b.Da()){var c=b.ia();c=C(c,0,c.jb(b.promptChar));c=parseFloat(c)}else c=b.qa();return b.Ha==dG&&eG(a)?(b=c,c=parseInt((MF(a)/100).toString(),10),a=MF(a)%100,b>a&&c--,100*c+b):c}return b instanceof BF?(a=b.qa(),b.Ha==U&&a++,a):-1}function RG(a,b,c){b instanceof wF?(b.Ha==dG&&eG(a)&&(c%=100),b.ra(c)):b instanceof BF&&(-1!=c&&b.Ha==U&&c--,b.ra(c))}
function SG(a){var b={};if(0>a||a>=dh)return null;b.startDate=bh[a];b.df=a<dh-1?nh(bh[a+1],-1):$g;return b}function TG(a){if(0==a.g)return UG;var b,c="";for(b=0;b<a.g;b++){var d=a.ma(b);if("PromptField"!=d.u)if(""==c)c=d.Da();else if(c!=d.Da())break}return b!=a.g?VG:0==c?UG:WG}
g.Pd=function(a,b){var c="",d;switch(a){case 1:c=RF;break;case 2:c=OF(this)?PF:dG;break;case 3:c=U;break;case 4:c=NF;break;case 5:c=bG;break;case 6:c=UF(this)?VF:TF;break;case 7:c=XF;break;case 8:c=$F}0!=a?d=iG(this,c):d=this.Tb(b).index;return-1!=d&&"undefined"!==typeof d?(this.ma(d)instanceof Q&&(0==d?d++:d--),this.Ya(d)):null!=b?this.Ya(0):-1};
g.Ob=function(a,b,c){if(0==b)return a;var d=this.Tb(a);var e=d.index;d=d.offset;var f=this.ma(e);0<e&&0==d&&"PromptField"==f.u&&e--;f=this.ma(e);if("PromptField"==f.u)return a;this.na||(this.fa=!1,eG(this)&&(e=new Date(MF(this),11,31,23,59,59),d=new Date(MF(this)-99,0,1),this.s<d?(this.u=this.s,this.fa=!0):this.u>e?(this.s=this.u,this.fa=!0):(this.s>e&&(this.s=e),this.u<d&&(this.u=d))),OF(this)&&QF(this)&&(this.u>$g?(this.u=this.s,this.fa=!0):this.s<ch?(this.s=this.u,this.fa=!0):(this.s>$g&&(this.s=
$g),this.u<ch&&(this.u=ch))),this.na=!0);if(this.fa)return a;e=this.qa(!1);if(JF(this)&&null!=e&&!LF(e)&&e.getFullYear){if(XG(this,e,this.s)&&0<b)return c&&this.ra(this.u),a;if(XG(this,e,this.u)&&0>b)return c&&this.ra(this.s),a;if(!(e>=this.u&&e<=this.s)){if(fG(this)&&(e>$g||e<ch))return a;if(0<b)return this.ra(this.u),a;if(0>b)return this.ra(this.s),a}}return YG(this,a,b,c)};
function XG(a,b,c){if(!QF(a)&&!OF(a))return(b.getFullYear()==c.getFullYear()||!gG(a))&&(b.getMonth()==c.getMonth()||!hG(a))&&(b.getDate()==c.getDate()||!a.Ec())&&(b.getHours()==c.getHours()||!SF(a)&&!UF(a))&&(b.getMinutes()==c.getMinutes()||!WF(a))&&(b.getSeconds()==c.getSeconds()||!ZF(a));var d=sh(b),e=sh(c);return(d.era==e.era||!QF(a))&&(d.nd==e.nd||!OF(a))&&(b.getMonth()==c.getMonth()||!hG(a))&&(b.getDate()==c.getDate()||!a.Ec())&&(b.getHours()==c.getHours()||!SF(a)&&!UF(a))&&(b.getMinutes()==
c.getMinutes()||!WF(a))&&(b.getSeconds()==c.getSeconds()||!ZF(a))}
function YG(a,b,c,d){if(0==c)return b;var e=a.Tb(b);var f=e.index;var h=e.offset;var k=a.ma(f);0<f&&0==h&&"PromptField"==k.u&&f--;var l=a.Ya(f),m=b-l.start;k=a.ma(f);if("PromptField"==k.u)return b;k.Ha==RF&&(c=0<c?1:-1);if(TG(a)==UG&&0!=c)return ZG(a,0>c),l=a.Ya(f),b=l.start+(m>l.length?l.length:m);var n,q=k,u=c,r=!1,z={},D=0,wa=0,Hb=0;z=q.ij();D=z.min;wa=z.max;if(2!=q.Da()){if(q instanceof BF)0==q.Da()&&(0>u?Hb=wa:0<u&&(Hb=D)),q.ra(Hb),$G(a,q),r=!0;else if(q instanceof wF){0==q.Da()||V(a,q)<D||V(a,
q)>wa?0>u?Hb=wa:0<u&&(Hb=D):Hb=V(a,q);if(q.Ha==PF){var Wb=S(a,RF),xc=null==Wb?a.Mb:2==Wb.Da()?V(a,Wb):-1;if(-1!=xc){var Kf=Hb==wa;if(Hb==D||Hb==wa){var Td=S(a,U);var ac=S(a,NF);if(null!=Td&&2==Td.Da()){var Ib=V(a,Td),yc=null!=ac&&2==ac.Da()?V(a,ac):-1,B=SG(xc);var fb=B.startDate;var Lf=B.df;if(Kf){var rd=Lf;(Ib>rd.getMonth()+1||Ib==rd.getMonth()+1&&yc>rd.getDate())&&a.ra(rd)}else rd=fb,(Ib<rd.getMonth()+1||Ib==rd.getMonth()+1&&-1!=yc&&yc<rd.getDate())&&a.ra(rd)}}}}RG(a,q,Hb);r=!0}Td=S(a,U);null!=
Td?$G(a,Td):(ac=S(a,NF),null!=ac&&$G(a,ac))}r&&KF(a);(n=r)&&(0>c?c++:0<c&&c--);if(0==c)return l=a.Ya(f),b=l.start+(m>l.length?l.length:m);if((null!=S(a,dG)||null!=S(a,RF)&&null!=S(a,PF))&&null!=S(a,U)&&null!=S(a,NF)&&(null!=S(a,TF)||null!=S(a,VF)&&null!=S(a,bG))&&null!=S(a,XF)&&null!=S(a,$F)&&"validateex"==a.i&&TG(a)==WG){n&&(d=!1);a:{var Ll=k,tb=c,yj=d;if(!(Ll instanceof Q)){var zc=S(a,dG),sd=S(a,RF),fd=S(a,PF),zj=S(a,U),Bg=S(a,NF),gd=S(a,bG),Gc=S(a,TF),Aj=S(a,XF),Mf=S(a,$F);null==Gc&&(Gc=S(a,VF));
var We=100,Ml=1,Nl=1,Ol=9999,Qh=dh-1,Pl=gh,Bj=12,Pb=31,Cj=23;null!=Gc&&(Cj=Gc.maxValue);null!=zc&&2==zc.maxLength&&(Ol=99,We=0);if(null!=sd&&null!=fd){var Ql=V(a,sd),Uo=SG(Ql);var Rl=Uo.startDate;var Sl=Uo.df;Pl=eh[Ql];Ml=Rl.getMonth()+1;Nl=Rl.getDate();Bj=Sl.getMonth()+1;Pb=Sl.getDate()}var lb=!0,qb=!0;qb&&null!=Gc&&Gc.Ha==VF&&(qb=null!=gd);0<tb?(qb&&null!=gd&&1!=V(a,gd)&&(qb=!1),qb&&null!=Gc&&V(a,Gc)!=Cj&&(qb=!1),qb&&null!=Aj&&59!=V(a,Aj)&&(qb=!1),qb&&null!=Mf&&59!=V(a,Mf)&&(qb=!1),lb&&null!=zc&&
V(a,zc)!=Ol&&(lb=!1),lb&&null!=sd&&V(a,sd)!=Qh&&(lb=!1),lb&&null!=fd&&V(a,fd)!=Pl&&(lb=!1),lb&&null!=zj&&V(a,zj)!=Bj&&(lb=!1),lb&&null!=Bg&&V(a,Bg)!=Pb&&(lb=!1)):(qb&&null!=gd&&0!=V(a,gd)&&(qb=!1),qb&&null!=Gc&&0!=V(a,Gc)&&(qb=!1),qb&&null!=Aj&&0!=V(a,Aj)&&(qb=!1),qb&&null!=Mf&&0!=V(a,Mf)&&(qb=!1),lb&&null!=zc&&V(a,zc)!=We&&(lb=!1),lb&&null!=sd&&0!=V(a,sd)&&(lb=!1),lb&&null!=fd&&1!=V(a,fd)&&(lb=!1),lb&&null!=zj&&V(a,zj)!=Ml&&(lb=!1),lb&&null!=Bg&&V(a,Bg)!=Nl&&(lb=!1));if(eG(a)){var jc=new Date(MF(a),
11,31,23,59,59);var zb=new Date(MF(a)-99,0,1)}else jc=a.maxDate,zb=a.minDate;null!=sd&&null!=fd&&(jc>$g&&(jc=$g),zb<ch&&(zb=ch));JF(a)&&(jc>a.s&&(jc=a.s),zb<a.u&&(zb=a.u));var T=a.qa();lb&&qb?T=0<tb?jc:zb:qb&&(T=0<tb?new Date(T.getFullYear(),T.getMonth(),T.getDate(),23,59,59):new Date(T.getFullYear(),T.getMonth(),T.getDate(),0,0,0));if(0>tb&&xh(T,zb,!0))if(yj)T=jc;else break a;else if(0<tb&&xh(T,jc,!0))if(yj)T=zb;else break a;else{switch(Ll.Ha){case $F:T=new Date(T.setSeconds(T.getSeconds()+tb));
break;case XF:T=new Date(T.setMinutes(T.getMinutes()+tb));break;case TF:T=new Date(T.setHours(T.getHours()+tb));break;case VF:T=new Date(T.setHours(T.getHours()+tb));break;case NF:T=new Date(T.setDate(T.getDate()+tb));break;case U:var td=T.getMonth()+1,ud=T.getDate(),bc=T.getFullYear(),Rh=T.getHours(),Ud=T.getMinutes(),Xe=T.getSeconds(),Ej=mh(bc,td+tb);ud>Ej&&(ud=Ej);T=new Date(bc,td+tb-1,ud,Rh,Ud,Xe);break;case dG:td=T.getMonth()+1;ud=T.getDate();bc=T.getFullYear();Rh=T.getHours();Ud=T.getMinutes();
Xe=T.getSeconds();2==td&&(wh(bc+tb)||28<ud&&(ud=28));T=100>bc+tb?zb:new Date(bc+tb,td-1,ud,Rh,Ud,Xe);break;case PF:td=T.getMonth()+1;ud=T.getDate();bc=T.getFullYear();Rh=T.getHours();Ud=T.getMinutes();Xe=T.getSeconds();2==td&&(wh(bc+tb)||28<ud&&(ud=28));T=new Date(bc+tb,td-1,ud,Rh,Ud,Xe);break;case bG:T=new Date(T.setHours(T.getHours()+12*tb));break;case RF:aH(a,T,tb,yj);$G(a,Ll);KF(a);break a}T<zb?T=zb:T>jc&&(T=jc)}a.ra(T)}}l=a.Ya(f);return b=l.start+(m>l.length?l.length:m)}if(TG(a)==WG){var Vd=
S(a,dG),Wd=S(a,RF),vd=S(a,PF),Hc=S(a,U),Ye=S(a,NF),Ac=S(a,bG),Nc=S(a,TF),wd=S(a,XF),ne=S(a,$F);null==Nc&&(Nc=S(a,VF));var Sh,Cg,Fj,Gj,Ze,Hj=0,oe=0,Tl=0,Ij=0,Dg=99,Jj=99,Th=99,Nf=1;if("validatenone"==a.i){var Ul=Gj=Fj=Cg=Sh=0;var Kj=9999;var Uh=dh-1;var Eg=gh;var Fg=Ze=99;Hj=0;Dg=99;oe=0;Jj=99;Tl=0;Th=99;Ij=0;Nf=1;null!=Hc&&Hc instanceof BF&&(Ze=12,Gj=1)}else Sh=100,Cg=0,Ul=Gj=Fj=1,Kj=9999,Uh=dh-1,Eg=gh,Ze=12,Fg=31,Hj=0,Dg=null!=Ac?11:23,oe=0,Jj=59,Tl=0,Th=59,Ij=0,Nf=1;var gb=!0,yb=!0;if(null==Vd){if(null==
vd||null==Wd)gb=!1}else if(null==Hc||null==Ye)gb=!1;null==wd||null==ne?yb=!1:null==Nc?yb=!1:null==Ac&&Nc.Ha==VF&&(yb=!1);var Vh=gb&&yb;0<c&&Vh?(gb&&null!=Vd&&V(a,Vd)!=Kj&&(gb=!1),gb&&null!=Wd&&V(a,Wd)!=Uh&&(gb=!1),gb&&null!=vd&&V(a,vd)!=Eg&&(gb=!1),gb&&null!=Hc&&V(a,Hc)!=Ze&&(gb=!1),gb&&null!=Ye&&V(a,Ye)!=Fg&&(gb=!1),yb&&null!=Ac&&V(a,Ac)!=Nf&&(yb=!1),yb&&null!=Nc&&V(a,Nc)!=Dg&&(yb=!1),yb&&null!=wd&&V(a,wd)!=Jj&&(yb=!1),yb&&null!=ne&&V(a,ne)!=Th&&(yb=!1)):Vh&&(gb&&null!=Vd&&V(a,Vd)!=Sh&&(gb=!1),gb&&
null!=Wd&&V(a,Wd)!=Cg&&(gb=!1),gb&&null!=vd&&V(a,vd)!=Fj&&(gb=!1),gb&&null!=Hc&&V(a,Hc)!=Gj&&(gb=!1),gb&&null!=Ye&&V(a,Ye)!=Ul&&(gb=!1),yb&&null!=Ac&&V(a,Ac)!=Ij&&(yb=!1),yb&&null!=Nc&&V(a,Nc)!=Hj&&(yb=!1),yb&&null!=wd&&V(a,wd)!=oe&&(yb=!1),yb&&null!=ne&&V(a,ne)!=Tl&&(yb=!1));if(gb&&yb)return d&&ZG(a,0>c),l=a.Ya(f),b=l.start+(m>l.length?l.length:m)}if("validateex"==a.i&&TG(a)==WG&&fG(a)){var Ka=a.qa(),kc=Ka;switch(k.Ha){case $F:Ka.setSeconds(Ka.getSeconds()+c);kc=new Date(Ka.valueOf());break;case XF:Ka.setMinutes(Ka.getMinutes()+
c);kc=new Date(Ka.valueOf());break;case TF:case VF:Ka.setHours(Ka.getHours()+c);kc=new Date(Ka.valueOf());break;case bG:Ka.setHours(Ka.getHours()+12*c);kc=new Date(Ka.valueOf());break;case NF:Ka.setDate(Ka.getDate()+c);kc=new Date(Ka.valueOf());break;case U:var xd=Ka.getMonth()+1,$e=Ka.getDate(),Of=Ka.getFullYear(),Vl=kc.getHours(),Wl=kc.getMinutes(),Lj=kc.getSeconds(),Vo=mh(Of,xd+c);$e>mh(Of,xd+c)&&($e=Vo);kc=new Date(Of,xd+c-1,$e,Vl,Wl,Lj);break;case PF:xd=Ka.getMonth()+1;$e=Ka.getDate();Of=Ka.getFullYear();
Vl=kc.getHours();Wl=kc.getMinutes();Lj=kc.getSeconds();2==xd&&(wh(Of+c)||28<$e&&($e=28));kc=new Date(Of+c,xd-1,$e,Vl,Wl,Lj);break;case RF:return aH(a,Ka,c,d),$G(a,k),KF(a),l=a.Ya(f),b=l.start+(m>l.length?l.length:m)}var Wo=sh(kc);var au=Wo.era;var Xo=Wo.nd;if(-1==au||-1==Xo)if(0<c)xh(Ka,$g)&&d?a.ra(ch):a.ra($g);else{if(xh(Ka,ch)&&d?a.ra($g):a.ra(ch),k.Ha==NF){var Gg=new Date(Gg.setDate(Gg.getDate()-c));xh(Gg,ch)&&d&&a.ra($g)}}else a.ra(kc);KF(a);l=a.Ya(f);return b=l.start+(m>l.length?l.length:m)}switch(k.Ha){case $F:var pe=
c;if(0==pe)c=0;else{var Pf=S(a,$F);if(null!=Pf&&2!=Pf.Da())c=0;else{var af=59;var yd=null==Pf?a.pd:V(a,Pf);"validatenone"==a.i&&(af=99);yd+=pe;var Hg=af+1;var Wh=0>yd?Math.floor(yd/Hg):yd>af?Math.ceil((yd-af)/Hg):0;yd-=Wh*Hg;null==Pf?a.pd=yd:RG(a,Pf,yd);0!=Wh&&null==S(a,XF)&&(Wh=0);c=Wh}}case XF:var Yo=c;if(0==Yo)c=0;else{var Ig=S(a,XF);if(null!=Ig&&2!=Ig.Da())c=0;else{var Xh=59;var qe=null==Ig?a.od:V(a,Ig);"validatenone"==a.i&&(Xh=99);qe+=Yo;var Xl=Xh+1;var Mj=0>qe?Math.floor(qe/Xl):qe>Xh?Math.ceil((qe-
Xh)/Xl):0;qe-=Mj*Xl;null==Ig?a.od=qe:RG(a,Ig,qe);0!=Mj&&null==S(a,TF)&&null==S(a,VF)&&(Mj=0);c=Mj}}case TF:c=bH(a,c);case VF:c=bH(a,c);case bG:var Zo=c;if(0==Zo)c=0;else{var bf=S(a,bG);if(null!=bf&&2!=bf.Da())c=0;else{var cf=null==bf?a.Kc:V(a,bf);cf+=Zo;var Yh=0>cf?Math.floor(cf/2):1<cf?Math.ceil((cf-1)/2):0;cf-=2*Yh;null==bf?a.Kc=cf:RG(a,bf,cf);0!=Yh&&null==S(a,NF)&&(Yh=0);c=Yh}}case NF:var hd=c;if(0==hd)c=0;else{var df=S(a,NF);if(null!=df&&2!=df.Da())c=0;else{var id=null==df?a.ab:V(a,df);id+=hd;
var Oc=S(a,dG),re=null==Oc?a.Lc:2==Oc.Da()?V(a,Oc):-1,zd=S(a,U),Ad=null==zd?a.qb:2==zd.Da()?V(a,zd):-1;if("validateex"==a.i&&2==Ad)if(re=-1,null!=Oc)re=2==Oc.Da()?V(a,Oc):-1;else if(fG(a)){var Jg=S(a,RF);var Nj=S(a,PF);var bu=null==Jg?a.Mb:2==Jg.Da()?V(a,Jg):-1;var cu=null==Nj?a.Gb:2==Nj.Da()?V(a,Nj):-1;var Yl=th(bu,cu,12,31);-1!=Yl?re=Yl.getFullYear():re=a.Lc}else re=a.Lc;var Qf=1,se=31;"validatenone"==a.i?(Qf=0,se=99):"validateex"==a.i&&(se=mh(re,Ad));if(id<Qf)for(hd=0;id<Qf;hd--){if(-1!=Ad&&"validateex"==
a.i){var Zh=Ad+hd-1;null==zd&&(Zh=Ad);se=mh(re,Zh)}id+=se-Qf+1}else if(id>se)for(hd=0;id>se;hd++)-1!=Ad&&"validateex"==a.i&&(Zh=Ad+hd,null==zd&&(Zh=Ad),se=mh(re,Zh)),id-=se-Qf+1;else hd=0;null==df?a.ab=id:(df.Ka(Qf,se),RG(a,df,id));0!=hd&&null==S(a,U)&&(hd=0);c=hd}}case U:var $o=c;if(0==$o)c=0;else{var te=S(a,U);if(null!=te&&2!=te.Da())c=0;else{var Oj=1,$h=12;var ue=null==te?a.qb:V(a,te);"validatenone"!=a.i||te instanceof BF||(Oj=0,$h=99);ue+=$o;var Zl=$h-Oj+1;var Pj=ue<Oj?Math.floor((ue-Oj)/Zl):
ue>$h?Math.ceil((ue-$h)/Zl):0;ue-=Pj*Zl;null==te?a.qb=ue:RG(a,te,ue);if("validateex"==a.i){var Qj=S(a,RF),$l=S(a,PF),ai=S(a,dG),Rj=-1;if(null!=ai)Rj=2==ai.Da()?V(a,ai):-1;else if(null==ai&&null==Qj&&null==$l)Rj=a.Lc;else{var ef=null==Qj?a.Mb:V(a,Qj);var ap=null==$l?a.Gb:V(a,$l);Rj=-1==ef||-1==ap?-1:kh(ef,ap,!0)}var ZH=ue,Xq=mh(Rj,ZH),qf=-1;if(a.Ec()){var Ek=S(a,NF);if(2==Ek.Da())qf=V(a,Ek),-1!=qf&&(qf>Xq&&(qf=Xq),RG(a,Ek,qf));else if(1==Ek.Da()&&2==ZH){var $H=Ek.ia();"3"==bd($H,0)&&bd($H,1)==a.promptChar&&
RG(a,Ek,3)}}else qf=a.ab,-1!=qf&&(qf>Xq&&(qf=Xq),a.ab=qf)}0!=Pj&&null==S(a,dG)&&null==S(a,PF)&&(Pj=0);c=Pj}}case PF:fG(a)&&(c=cH(a,c,d));case RF:if(fG(a)){Wd=S(a,RF);var Yq=c,Zq=d;if(0!=Yq){var Fk=S(a,RF);if(null==Fk||2==Fk.Da()){var XQ=dh-1,on=null==Fk?a.Mb:V(a,Fk);on+=Yq;if(0<Yq&&on>XQ)if("validateex"==a.i){var Gi=a.qa();LF(Gi)||null==Gi?a.ra($g):xh(Gi,$g)?Zq&&a.ra(ch):a.ra($g)}else dH(a,!0)?Zq&&ZG(a,!1):ZG(a,!0);else 0>Yq&&0>on?"validateex"==a.i?(Gi=a.qa(),LF(Gi)||null==Gi?a.ra(ch):xh(Gi,ch)?Zq&&
a.ra($g):a.ra(ch)):dH(a,!1)?Zq&&ZG(a,!0):ZG(a,!1):null==Fk?a.Mb=on:RG(a,Fk,on)}}c=0;$G(a,Wd)}case dG:var Hi=c,ar=d;if(0!=Hi){var de=S(a,dG);if(null==de||2==de.Da()){var px=100,aI=9999;null!=de&&2==de.maxLength?(px=0,aI=99):"validatenone"==a.i&&(px=0);var rf=null==de?a.Lc:V(a,de),cI=eH(a,rf%100);if(null!=de&&2==de.maxLength)for(rf=(rf+Hi)%100;0>rf;)rf+=100;else rf+=Hi;var pn=!1;if(null!=de&&2==de.maxLength&&JF(a)){var dI=eH(a,rf);if(0<Hi&&cI>dI){var De=a.qa(!0);null==De||xh(De,a.s)?ar&&a.ra(a.u):a.ra(a.s);
pn=!0}else 0>Hi&&cI<dI&&(De=a.qa(!0),null==De||xh(De,a.u)?ar&&a.ra(a.s):a.ra(a.u),pn=!0)}if(0<Hi&&rf>aI&&!pn)"validateex"==a.i?(De=a.qa(),null==De||xh(De,a.maxDate)?ar&&a.ra(a.minDate):a.ra(a.maxDate)):ZG(a,!0);else if(0>Hi&&rf<px&&!pn)"validateex"==a.i?(De=a.qa(),null==De||xh(De,a.minDate)?ar&&a.ra(a.maxDate):a.ra(a.minDate)):ZG(a,!1);else if(!pn){var qx=rf;null==de?a.Lc=qx:RG(a,de,qx);if("validateex"==a.i){var rx=-1,eI=S(a,U);rx=null==eI?a.qb:V(a,eI);var br=mh(qx,rx);var sf=-1;if(a.Ec()){var Gk=
S(a,NF);if(2==Gk.Da())sf=V(a,Gk),-1!=sf&&(sf>br&&(sf=br),RG(a,Gk,sf));else if(1==Gk.Da()&&2==rx){var fI=Gk.ia();"3"==bd(fI,0)&&bd(fI,1)==a.promptChar&&RG(a,Gk,3)}}else sf=a.ab,-1!=sf&&(sf>br&&(sf=br),a.ab=sf)}}}}c=0}KF(a);l=a.Ya(f);return b=l.start+(m>l.length?l.length:m)}
function fH(a,b){var c=S(a,$F);c=null==c?a.pd:V(a,c);if(0<c&&!b||59>c&&b)return!1;c=S(a,XF);c=null==c?a.od:V(a,c);if(0<c&&!b||59>c&&b)return!1;c=S(a,TF);if(null!=c)V(a,c);else{c=S(a,VF);var d=S(a,bG);null==c?a=a.Vb:(d=null==d?a.Kc:V(a,d),a=V(a,c)%12+12*d);if(0<a&&!b||23>a&&b)return!1}return!0}
function dH(a,b){var c=S(a,PF),d=S(a,U),e=S(a,NF),f=S(a,bG),h=S(a,TF),k=S(a,XF),l=S(a,$F);null==h&&(h=S(a,VF));var m,n,q;if(b){if("validatenone"==a.i)var u=q=n=99;else{n=23;if(null!=f||null!=h&&h.Ha==VF)n=11;u=q=59}var r=1}else r=u=q=n=0;if("validatenone"==a.i)if(b){b=gh;var z=m=99;null!=d&&d instanceof BF&&(m=12)}else z=m=b=0,null!=d&&d instanceof BF&&(m=1);else b?(b=gh,m=12,z=31):z=m=b=1;l=null==l?a.pd:V(a,l);if(l!=u)return!1;l=null==k?a.od:V(a,k);if(l!=q)return!1;l=null==f?a.Kc:V(a,f);if(l!=r)return!1;
l=null==h?a.Vb:V(a,h);if(l!=n)return!1;l=null==e?a.ab:V(a,e);if(l!=z)return!1;l=null==d?a.qb:V(a,d);if(l!=m)return!1;l=null==c?a.Gb:V(a,c);return l!=b?!1:!0}
function ZG(a,b){var c=S(a,RF),d=S(a,PF),e=S(a,dG),f=S(a,U),h=S(a,NF),k=S(a,bG),l=S(a,TF),m=S(a,XF),n=S(a,$F);null==l&&(l=S(a,VF));var q,u;if(b){if("validatenone"==a.i)var r=u=q=99;else{q=23;if(null!=k||null!=l&&l.Ha==VF)q=11;r=u=59}var z=1}else z=r=u=q=0;"validateex"!=a.i&&(null==n?a.pd=r:RG(a,n,r),null==m?a.od=u:RG(a,m,u),null==l?a.Vb=q:RG(a,l,q),null==k?a.Kc=z:RG(a,k,z));"validatenone"==a.i?b?(k=9999,l=dh-1,m=gh,z=n=99,null!=f&&f instanceof BF&&(n=12)):(z=n=m=l=k=0,null!=f&&f instanceof BF&&(n=
1)):b?(null==c&&null==d||"validate"==a.i?(k=9999,l=dh-1,m=gh):(k=9999,l=dh-1,m=eh[l]),n=12,z=31):null==c&&null==d||"validate"==a.i?(k=100,l=0,z=n=m=1):(k=100,l=0,m=1,n=ch.getMonth()+1,z=ch.getDate());"validateex"!=a.i&&(null==e?a.Lc=k:4==e.maxLength?RG(a,e,k):RG(a,e,k%100),null==c?a.Mb=l:RG(a,c,l),null==d?a.Gb=m:RG(a,d,m),null==f?a.qb=n:RG(a,f,n),null==h?a.ab=z:RG(a,h,z));"validateex"==a.i&&(q=b?23:0,fG(a)?(c=th(l,m,n,z),b&&(c=new Date(c.setDate(c.getDate()+1)),c=new Date(c.setSeconds(c.getSeconds()-
1)))):c=new Date(k,n-1,z,q,u,r),!JF(a)||c>=a.u&&c<=a.s?a.ra(c):b?a.ra(a.s):a.ra(a.u))}
function cH(a,b,c){if(0==b)return 0;var d=S(a,PF);if(null!=d&&2!=d.Da())return 0;var e=null==d?a.Gb:V(a,d),f=S(a,RF),h=null==f?a.Mb:2==f.Da()?V(a,f):-1,k=1,l=gh;if("validatenone"==a.i)k=0;else if("validateex"==a.i&&-1!=h){var m=S(a,U);var n=S(a,NF);var q=null==m?a.qb:V(a,m);k=null==n?a.ab:V(a,n);null==f?(m=SG(h),n=m.df,m=m.startDate):(m=ch,n=$g);k=th(h,e,q,k);if(-1!=k){q=k;l=k.getMonth()+1;var u=k.getDate(),r=k.getFullYear(),z=k.getHours(),D=k.getMinutes();k=k.getSeconds();2==l&&(wh(r+b)||28<u&&(u=
28));k=new Date(r+b,l-1,u,z,D,k);k<=m?c&&1==e&&fH(a,!1)?a.ra(n):a.ra(m):k>=n?k>n?c&&q==n&&fH(a,!0)?a.ra(m):a.ra(n):a.ra(n):(e=sh(k),b=e.era,e=e.nd,null==d?a.Gb=e:(b!=h&&d.Ka(1,eh[b]),RG(a,d,e)),b!=h&&(null==f?a.Mb=b:RG(a,f,b)))}else if(k=1,l=eh[h],f=SG(h),m=f.startDate,n=f.df,e+b>l)a.ra(n);else if(e+b<k)a.ra(m);else{e+=b;if(-1!=q){if(e==k&&q<=m.getMonth()+1)return a.ra(m),0;if(e==l&&q>=n.getMonth()+1)return a.ra(n),0}null==d?a.Gb=e:RG(a,d,e)}return 0}e+=b;if(-1!=h&&"validateex"!=a.i){if(0==h&&e<k)return dH(a,
!1)?c&&ZG(a,!0):ZG(a,!1),0;if(h==dh-1&&e>l)return dH(a,!0)?c&&ZG(a,!1):ZG(a,!0),0}if(e<k)for(b=0;e<k;b--){if(-1!=h&&"validateex"==a.i){if(0==h){b--;break}l=eh[h]}e+=l-k+1}else if(e>l)for(b=0;e>l;b++)-1!=h&&"validateex"==a.i&&(l=eh[h]),e-=l-k+1;else b=0;null==d?a.Gb=e:RG(a,d,e);return b}
function aH(a,b,c,d){if(0!=c)if(0<c&&xh(b,$g,!0))d&&a.ra(ch);else if(0>c&&xh(b,ch,!0))d&&a.ra($g);else{d=sh(b);var e=d.era;d=d.nd;var f=dh-1;e+=c;0<c&&e>f?b=$g:0>c&&0>e?b=ch:(c=th(e,d,b.getMonth()+1,b.getDate()),-1==c?(c=SG(e),b=c.startDate,c=c.df,b=1==d?b:c):b=new Date(c.getFullYear(),c.getMonth(),c.getDate(),b.getHours(),b.getMinutes(),b.getSeconds()));a.ra(b)}}
function eH(a,b){var c=0,d=100*parseInt((MF(a)/100).toString(),10)+b;b=100*parseInt(((MF(a)-99)/100).toString(),10)+b;d<=MF(a)&&d>=MF(a)-99?c=d:b<=MF(a)&&b>=MF(a)-99&&(c=b);return c}
function bH(a,b){if(0==b)return 0;var c=S(a,TF);null==c&&(c=S(a,VF));if(null!=c&&2!=c.Da())return 0;var d=0,e=23,f=null!=c&&c.Ha==VF,h=S(a,bG);var k=null==c?a.Vb:V(a,c);null!=h&&(h.qa(),f=!0);"validatenone"==a.i?e=99:f&&(e=11,d=0,k%=12);k+=b;b=e-d+1;d=k<d?Math.floor((k-d)/b):k>e?Math.ceil((k-e)/b):0;k-=d*b;null!=c?(f?"validatenone"!=a.i&&("hour0as12"==a.ca?0==k&&(k=12):"hour12as0"==a.ca&&12==k&&(k=0)):"validatenone"!=a.i&&(a.ea?0==k&&(k=24):24==k&&(k=0)),RG(a,c,k)):a.Vb=k;0!=d&&(f||null!=S(a,NF)?
f&&null==S(a,bG)&&(d=0):d=0);return d}
function $G(a,b){if(!(null==b||b instanceof Q)&&2==b.Da()&&"validateex"==a.i)switch(b.Ha){case dG:if(2==b.Da()&&(b=V(a,b),-1!=b)){var c=S(a,U);c=null==c?a.qb:V(a,c);var d=mh(b,c);a.Ec()?(b=S(a,NF),2==b.Da()?(c=V(a,b),-1!=c&&(c>d&&(c=d),RG(a,b,c))):1==b.Da()&&2==c&&(c=b.ia(),"3"==bd(c,0)&&bd(c,1)==a.promptChar&&RG(a,b,3))):(c=a.ab,-1!=c&&(c>d&&(c=d),a.ab=c))}break;case RF:a:if(2==b.Da()){b=V(a,b);d=S(a,PF);if(null==d)c=a.Gb;else{if(2!=d.Da())break a;c=V(a,d)}if(null!=d){var e=d.ij();var f=e.min;e=
e.max;1==f&&e==eh[b]||d.Ka(1,eh[b])}e=SG(b);f=e.startDate;e=e.df;var h=f,k=!1,l=S(a,U),m=S(a,NF);if(1>c)h=f,k=!0;else if(1==c){var n=null==l?a.qb:2==l.Da()?V(a,l):-1;if(-1!=n&&n<f.getMonth()+1)h=f,k=!0;else if(-1!=n&&n==f.getMonth()+1){var q=null==m?a.ab:2==m.Da()?V(a,m):-1;-1!=q&&q<f.getDate()&&(h=f,k=!0)}}else c>eh[b]?(h=e,k=!0):c==eh[b]&&(n=null==l?a.qb:2==l.Da()?V(a,l):-1,-1!=n&&n>e.getMonth()+1?(h=e,k=!0):-1!=n&&n==e.getMonth()+1&&(q=null==m?a.ab:2==m.Da()?V(a,m):-1,-1!=q&&q>e.getDate()&&(h=
e,k=!0)));k?(c=h.getFullYear()-f.getFullYear()+1,null==d?a.Gb=c:RG(a,d,c),n=h.getMonth()+1,null==l?a.qb=n:RG(a,l,n),q=h.getDate(),null==m?a.ab=q:RG(a,m,q)):(n=null==l?a.qb:2==l.Da()?V(a,l):-1,q=null==m?a.ab:2==m.Da()?V(a,m):-1,-1!=n&&-1!=q&&(h=th(b,c,1,1),-1!=h&&!wh(h.getFullYear())&&2==n&&28<q&&(null==m?a.ab=28:RG(a,m,28))))}break;case PF:a:if(2==b.Da()){b=V(a,b);c=S(a,RF);if(null==c)c=a.Mb;else{if(2!=c.Da())break a;c=V(a,c)}f=SG(c);d=f.startDate;f=f.df;e=d;h=!1;k=S(a,U);l=S(a,NF);1==b?(m=null==
k?a.qb:2==k.Da()?V(a,k):-1,-1!=m&&m<d.getMonth()+1?(e=d,h=!0):-1!=m&&m==d.getMonth()+1&&(n=null==l?a.ab:2==l.Da()?V(a,l):-1,-1!=n&&n<d.getDate()&&(e=d,h=!0))):b==eh[c]&&(m=null==k?a.qb:2==k.Da()?V(a,k):-1,-1!=m&&m>f.getMonth()+1?(e=f,h=!0):-1!=m&&m==f.getMonth()+1&&(n=null==l?a.ab:2==l.Da()?V(a,l):-1,-1!=n&&n>f.getDate()&&(e=f,h=!0)));h?(m=e.getMonth()+1,null==k?a.qb=m:RG(a,k,m),n=e.getDate(),null==l?a.ab=n:RG(a,l,n)):(m=null==k?a.qb:2==k.Da()?V(a,k):-1,n=null==l?a.ab:2==l.Da()?V(a,l):-1,-1!=m&&-1!=
n&&(e=th(c,b,1,1),-1!=e&&!wh(e.cc)&&2==m&&28<n&&(null==l?a.ab=28:RG(a,l,28))))}break;case U:2==b.Da()&&(d=V(a,b),-1!=d&&(b=S(a,RF),c=S(a,PF),f=S(a,dG),null!=f?f=2==f.Da()?V(a,f):-1:null==f&&null==b&&null==c?f=a.Lc:(f=null==b?a.Mb:V(a,b),e=null==c?a.Gb:V(a,c),f=-1==f||-1==e?-1:kh(f,e,!0)),k=mh(f,d),e=-1,a.Ec()?(h=S(a,NF),2==h.Da()?(e=V(a,h),-1!=e&&(e>k&&(e=k),RG(a,h,e))):1==h.Da()&&2==d&&(k=h.ia(),"3"==bd(k,0)&&bd(k,1)==a.promptChar&&(e=3,RG(a,h,e)))):(e=a.ab,-1!=e&&(e>k&&(e=k),a.ab=e)),0>=f||0>=d||
0>=e||null==b||null==c||(d=sh(new Date(f,d-1,e)),f=d.era,e=d.nd,-1!=f&&-1!=e&&(null!=b&&V(a,b)!=f?RG(a,b,f):a.Mb=f,null!=c&&V(a,c)!=e?(c.Ka(1,eh[f]),RG(a,c,e)):a.Gb=e))));break;case NF:d=V(a,b),b=S(a,RF),c=S(a,PF),e=S(a,dG),f=-1,null==b&&null==c&&null==e?f=a.Lc:null!=e?f=2==e.Da()?V(a,e):-1:(e=null==b?a.Mb:V(a,b),h=null==c?a.Gb:V(a,c),-1==e&&-1==h?f=-1:(e=th(e,h+1,1,1),1==h&&-1!=e?f=e.getFullYear()-1:-1!=e&&(f=e.getFullYear()))),e=S(a,U),h=-1,null==e?h=a.qb:2==e.Da()&&(h=V(a,e)),0>=f||0>=h||null==
b&&null==c||-1==f||(e=new Date(f,h-1,d),d=sh(e),e=d.era,h=d.nd,-1!=e&&-1!=h&&(null!=b?RG(a,b,e):a.Mb=e,null!=c?(c.Ka(1,eh[e]),RG(a,c,h)):a.Gb=h))}}g.le=function(a,b){var c=this.Tb(a);a=c.index;c=c.offset;if(-1==a)return-1;if(b){if(a==this.g-1)return-1;a++;if(this.ma(a)instanceof Q){if(a==this.g-1)return-1;a++}c=b=0}else{if(0==a||1==a&&0==c)return-1;0==c&&a--;a--;if(this.ma(a)instanceof Q){if(0==a)return-1;a--}c=b=0}for(;c<a;c++)b+=this.ma(c).ba();return b};
function gH(a){try{if(a.ma(0)instanceof Q)return a.ma(0).ba()}catch(b){}return 0}function LF(a){return a===QG?!0:!1}var QG=new Date(1E5,1,1);
function hH(a,b,c,d){switch(a){case "d":if(1<=b)return new wF(NF,1,31,2,"IntField",c);break;case "e":if(1<=b)return new wF(PF,1,gh,fh,"IntField",c);break;case "g":if(1<=b){a=Array(dh);if(1==b)for(d=0;d<dh;d++)a[d]=ah[d];else if(2==b)for(d=0;d<dh;d++)a[d]=ah[d+dh];else for(d=0;d<dh;d++)a[d]=ah[d+2*dh];b=new BF(RF,a,3<=b?3:b,"ValueEnumField",c);FF(b,hh,ih);return b}break;case "h":if(1<=b)return new wF(VF,0,11,2,"IntField",c);break;case "H":if(1<=b)return new wF(TF,0,23,2,"IntField",c);break;case "m":if(1<=
b)return new wF(XF,0,59,2,"IntField",c);break;case "M":if(1<=b){if(1<=b&&2>=b)return new wF(U,1,12,2,"IntField",c);b=new BF(U,3<b?Kh:Mh,3<b?4:3,"ValueEnumField",c);FF(b,"01 02 03 04 05 06 07 08 09 1 2 3 4 5 6 7 8 9 10 11 12".split(" "),[0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,9,10,11]);return b}break;case "s":if(1<=b)return new wF($F,0,59,2,"IntField",c);break;case "t":if(1<=b)return a=[],1==b?(a[0]=C(d[0],0,1),a[1]=C(d[1],0,1)):(a[0]=d[0],a[1]=d[1]),b=new BF(bG,a,1==b?1:2,"ValueEnumField",c),FF(b,["1",
"2","a","p"],[0,1,0,1]),b;break;case "y":if(1<=b&&2>=b)return new wF(dG,0,99,2,"IntField",c);if(3<=b)return new wF(dG,1,9999,4,"IntField",c)}return null}
function iH(a,b,c,d){switch(a){case "d":if(1<=b)return 1==b||2==b?new wF(NF,1,31,b,"IntField",c):new BF(NF,3==b?Lh:Jh,3==b?3:4,"ValueEnumField",c);break;case "e":if(1<=b)return new wF(PF,1,gh,1==b?1:fh,"IntField",c);break;case "E":if(1<=b)return new wF(PF,1,gh,1==b?1:fh,"IntField",c,!0);break;case "g":if(1<=b){a=Array(dh);if(1==b)for(d=0;d<dh;d++)a[d]=ah[d];else if(2==b)for(d=0;d<dh;d++)a[d]=ah[d+dh];else for(d=0;d<dh;d++)a[d]=ah[d+2*dh];return new BF(RF,a,3<=b?3:b,"ValueEnumField",c)}break;case "h":if(1<=
b)return new wF(VF,0,11,1==b?1:2,"IntField",c);break;case "H":if(1<=b)return new wF(TF,0,23,1==b?1:2,"IntField",c);break;case "m":if(1<=b)return new wF(XF,0,59,1==b?1:2,"IntField",c);break;case "M":if(1<=b)return 1<=b&&2>=b?new wF(U,1,12,b,"IntField",c):new BF(U,3<b?Kh:Mh,3<b?4:3,"ValueEnumField",c);break;case "s":if(1<=b)return new wF($F,0,59,1==b?1:2,"IntField",c);break;case "t":if(1<=b)return a=[],1==b?(a[0]=C(d[0],0,1),a[1]=C(d[1],0,1)):(a[0]=d[0],a[1]=d[1]),new BF(bG,a,1==b?1:2,"ValueEnumField",
c);break;case "y":if(1<=b)return 1==b?new wF(dG,0,99,1,"IntField",c):2==b?new wF(dG,0,99,2,"IntField",c):3==b?new wF(dG,1,9999,3,"IntField",c):new wF(dG,1,9999,4,"IntField",c);break;case "A":if(1<=b)return new GF(jH,"ADField")}return null}
function kH(a,b){var c=11;if(1==b.rk||1==b.sk)c=5;"Format"==a?(a=new HF(c,b),1!=b.sk&&(uF(a,new wF(dG,1,9999,4,"IntField",b.tb)),uF(a,new Q("/")),uF(a,new wF(U,1,12,2,"IntField",b.tb)),uF(a,new Q("/")),uF(a,new wF(NF,1,31,2,"IntField",b.tb))),1!=b.rk&&1!=b.sk&&uF(a,new Q(" ")),1!=b.rk&&(uF(a,new wF(TF,0,23,2,"IntField",b.tb)),uF(a,new Q(":")),uF(a,new wF(XF,0,59,2,"IntField",b.tb)),uF(a,new Q(":")),uF(a,new wF($F,0,59,2,"IntField",b.tb)))):(a=new HF(c,b),1!=b.sk&&(uF(a,new wF(dG,1,9999,3,"IntField",
b.tb)),uF(a,new Q("/")),uF(a,new wF(U,1,12,1,"IntField",b.tb)),uF(a,new Q("/")),uF(a,new wF(NF,1,31,1,"IntField",b.tb))),1!=b.rk&&1!=b.sk&&uF(a,new Q(" ")),1!=b.rk&&(uF(a,new wF(TF,0,23,1,"IntField",b.tb)),uF(a,new Q(":")),uF(a,new wF(XF,0,59,2,"IntField",b.tb)),uF(a,new Q(":")),uF(a,new wF($F,0,59,2,"IntField",b.tb))));return a}var RF=0,PF=1,dG=2,U=3,NF=4,TF=5,VF=6,XF=7,$F=8,bG=9,jH=10,UG=0,VG=1,WG=2,zG=0,AG=1,wG=2;function lH(a){Yr.call(this,a);this.Gc=this.Xh=this.uc=!1;this.qk=0;null!=a.tb?this.tb=a.tb:this.tb="_";null!=a.yc?this.yc=a.yc:this.yc="always";this.ih=a.Ja;this.maxDate=a.hc;this.minDate=a.oc;this.fd=a.fd;this.cd=a.cd;this.da=a.De}t(lH,Yr);g=lH.prototype;g.wb=function(){var a={};a.uc=this.uc;a.Xh=this.Xh;a.Gc=this.Gc;a.qk=this.qk;a.ih=this.ih;a.Wq=this.l.j.wb();return a};g.Lb=function(a){this.uc=a.uc;this.Xh=a.Xh;this.Gc=a.Gc;this.qk=a.qk;this.ih=a.ih;this.l.j.Lb(a.Wq)};
g.fb=function(){var a={};a.o=gH(this.l.j);a.v=a.o;if(1==this.ra(null)){if(a.Text=mH(this,0,!0),""!=this.l.$b||""!=this.l.Xc)this.uc=!0}else a.Text=this.l.$b;return a};g.qa=function(a){var b=this.l.j.qa(this.Gc),c={};c.Xs=b;LF(b)?(a||(nG(this.l.j),b=this.l.j.qa()),c.gt=!0):(b>this.maxDate||b<this.minDate)&&null!=b&&"keep"!=this.fd&&(a||(nG(this.l.j),b=this.l.j.qa()),c.ft=!0);!a&&(b>this.maxDate||b<this.minDate)&&null!=b&&"keep"!=this.fd&&(b=this.ih);c.Ja=b;return c};
g.ed=function(a){var b=this.qa(!0).Ja,c;if(!(c=null==b)){c=this.l.j;var d=qG(c);rG(c);c=null==c.ub?!1:0>d||d>dh-1?!0:!1}c?this.uc=!0:this.uc=!1;this.ih=b;a.Text&&null!=b?this.l.j.xh(a.Text,!0):a.Text=nH(this,b);a.Vc=oH(this,b);a=Yr.prototype.ed.call(this,a);null!=a&&null!=a.Po&&(this.Xh=a.Po);return a};
g.Vd=function(a){var b=a.Text,c={},d;if(0!=this.l.j.g){b=a.De;var e=this.l.j.qa(this.Gc);if(LF(e)){nG(this.l.j);this.l.j.qa();var f=!0}else(e>this.maxDate||e<this.minDate)&&null!=e&&(b.Ze(null,!0),xh(b.Ja,e,!0)||this.cd||(d=!0));f&&(N(a.De.host,this.da.i.InvalidValue,null),f=gH(this.l.j),this.da.o=f,this.da.v=f);d&&N(a.De.host,this.da.i.InvalidRange,null)}else if(""==b||b==this.l.$b)d=null,this.Gc=this.l.j.ra(d),this.ih=d;else{d=new Date(Date.parse(b));if(isNaN(d.valueOf()))N(a.De.host,this.da.i.InvalidValue,
null),d=this.ih;else return(d>a.De.hc||d<a.De.oc)&&N(a.De.host,this.da.i.InvalidRange,null),a.De.Ze(null,!0,d)?c.Ja=this.l.j.qa():c.Ja=d,c.Text=oH(this,c.Ja),c;this.Gc=this.l.j.ra(d)}a=this.qa();mG(this.l.j);lG(this.l.j);c.Text=oH(this,a.Ja);c.Ja=a.Ja;return c};g.tf=function(a){this.Xh=!1;return Yr.prototype.tf.call(this,a)};g.ke=function(a,b,c,d){return this.Xh?null:Yr.prototype.ke.call(this,a,b,c,d)};
g.yk=function(a,b,c,d,e,f,h){e={};95<a&&106>a&&(a-=48);65600<a&&65627>a&&(a-=65536);return 47<a&&58>a||65<=a&&90>=a||null!=h?(a=String.fromCharCode(a),null!=h&&(a=h),!this.uc||""==this.l.$b&&""==this.l.Pc||(c=b=0),b=this.Hg(b,c,a,d),b.success?(e.o=b.start,e.v=e.o,e.Text=mH(this,2,!0),this.Gc=this.uc=this.lb=!1,this.rd&&(b=as(this,this.da.za(),!0,"CharInput"),null!=b&&(e.o=null,e.v=null,e.pa=b.pa,e.Va=b.Va,e.Ib=!0),this.rd=!1)):null!=b.pa&&(e.pa=b.pa),e):null};
g.Td=function(a){var b=Yr.prototype.Td.call(this,a);if(65581==a.jd||131158==a.jd)this.uc=!1;return b};g.Ae=function(a,b,c,d,e){return this.yk(a,b,c,d,null,null,e)};g.Ub=function(){var a={};if(this.l.j.sd()){nG(this.l.j,!0);var b=this.l.j.qa(this.Gc);this.Gc=!1;a.Text=null==b||fG(this.l.j)&&!jh(b)?mH(this,0,!0):mH(this,2,!0)}a.o=this.da.o;a.v=this.da.v;return a};
g.pc=function(a,b,c,d,e){null==d&&(d=this.da.Re);var f={},h=Math.min(a,b);a=Math.abs(b-a);this.uc&&(h=gH(this.l.j),a=0);!e&&this.da&&(c=fs(c,this.da.Ue()));if(null==c||""==c)return f;e=this.da.wb();try{var k=0>=a?this.l.j.$d(h,c,!1):this.l.j.Lf(h,a,c,!1);f.o=k.cursorPos;"HasInvalid"==k.OperationResult&&this.da.i.InvalidInput&&(c={},c.gb=this.da.i.InvalidInput,c.ib=null,f.pa=c)}catch(l){this.da.i.InvalidInput&&(c={},c.gb=this.da.i.InvalidInput,c.ib=null,f.pa=c)}c=this.da.Ze(e,document.activeElement!=
this.da.ga);this.Gc=!1;f.Text=mH(this,2,!0);c?(f.o=this.da.o,f.v=this.da.v):k.text&&"HasInvalid"==k.OperationResult?(f.o=this.da.o,f.v=this.da.v):f.v=f.o;d&&(f.o==this.l.j.ba()?this.rd=!0:(k=this.l.j.Tb(f.o),d=k.index,k=k.offset,d==this.l.j.g-1&&0==k&&this.l.j.ma(d)instanceof Q&&(this.rd=!0)));this.rd&&(d=as(this,this.da.za(),!0,"CharInput"),null!=d&&(f.pa=d.pa,f.Va=d.Va,f.Ib=!0),this.rd=!1);return f};
g.xj=function(a,b,c,d){var e={};if("all"===a)e.o=0,e.v=b.ba(),this.lb=!0;else if("field"===a){this.lb=!0;if(0==this.l.j.g)return e.o=0,e.v=b.ba(),e;e=this.Pd(c,d)}else e=this.Pd(c),null!=e&&(e.o=e.o,e.v=e.o);return e};g.ra=function(a){return 0!=this.l.j.g?(this.Gc=this.l.j.ra(a),!0):!1};
function nH(a,b){return 0==a.l.j.g?null==b?a.l.$b:qh(b,!0):null==b?null!=a.l.$b&&""!=a.l.$b?a.l.$b:null!=a.l.Xc&&""!=a.l.Xc?a.l.j.Fc(a.l.Xc):"always"===a.yc?a.l.j.Fc(a.tb):"":!QF(a.l.j)&&!OF(a.l.j)||jh(b)?NG(a.l.j,b):null!=a.l.Pc&&""!=a.l.Pc?a.l.Pc:null!=a.l.td&&""!=a.l.td?a.l.j.Fc(a.l.td):"always"==a.yc?a.l.j.Fc(a.tb):""}function pH(a,b){return 0==a.l.j.g?null==b?"":qh(b,!0):null==b?"always"===a.yc?a.l.j.Fc(a.tb):"":!QF(a.l.j)&&!OF(a.l.j)||jh(b)?NG(a.l.j,b):"always"==a.yc?a.l.j.Fc(a.tb):""}
function oH(a,b){return 0==a.oa.j.g?null==b?null!=a.oa.$b&&""!=a.oa.$b?a.oa.$b:nH(a,b):null!=a.oa.Pc&&""!=a.oa.Pc&&(QF(a.l.j)||OF(a.l.j))&&jh(b)?a.oa.Pc:nH(a,b):null==b?null!=a.oa.$b&&""!=a.oa.$b?a.oa.$b:null!=a.oa.Xc&&""!=a.oa.Xc?a.oa.j.Fc(a.oa.Xc):null!=a.oa.Rc&&""!=a.oa.Rc||a.da.Dc?"":a.oa.j.Fc(a.tb):!jh(b)&&QF(a.oa.j)?null!=a.oa.Pc&&""!=a.oa.Pc?a.oa.Pc:null!=a.oa.td&&""!=a.oa.td?a.oa.j.Fc(a.oa.td):null!=a.oa.hj&&""!=a.oa.hj?"":a.oa.j.Fc(a.tb):OG(a.oa.j,b)}
function mH(a,b,c){var d="",e;if(0==b)return null==a.l.j.qa(a.Gc)?null==a.l.$b||""==a.l.$b||c?null==a.l.Xc||""==a.l.Xc||c?"always"==a.yc?a.l.j.Fc(a.tb):"":a.l.j.Fc(a.l.Xc):a.l.$b:null==a.l.Pc||""==a.l.Pc||c?null==a.l.td||""==a.l.td||c?"always"==a.yc?a.l.j.Fc(a.tb):"":a.l.j.Fc(a.l.td):a.l.Pc;c=null;if("always"==a.yc)for(e=0;e<a.l.j.g;e++)c=a.l.j.ma(e),d+=c.ia();else{var f=null;for(e=a.l.j.g-1;0<=e;e--)if(c=a.l.j.ma(e),c instanceof vF&&0!=c.Da()){f=c;break}for(b=0;b<e;b++)d+=a.l.j.ma(b).ia();if(null==
f)return d;if(2==f.Da())d+=c.ia(),"predisplay"==a.yc?e<a.l.j.g-1&&(c=a.l.j.ma(e+1),"PromptField"==c.u&&(d+=c.ia())):e==a.l.j.g-2&&a.l.j.ma(e+1)instanceof Q&&(d+=a.l.j.ma(e+1).ia());else if(1==f.Da()){a=c.text;for(b=a.ba()-1;0<=b&&!(c instanceof wF&&bd(a,b)!=c.h);b--);d+=C(a,0,b+1)}}return d}
g.sb=function(a){var b="",c;if(0==a)return"always"==this.yc?this.l.j.Fc(this.tb):"";var d=null;if("always"==this.yc)for(c=0;c<this.l.j.g;c++)d=this.l.j.ma(c),b+=d.ia();else{var e=null;for(c=this.l.j.g-1;0<=c;c--)if(d=this.l.j.ma(c),d instanceof vF&&0!=d.Da()){e=d;break}for(a=0;a<c;a++)b+=this.l.j.ma(a).ia();if(null==e)return b;if(2==e.Da())b+=d.ia(),"predisplay"==this.yc?c<this.l.j.g-1&&(d=this.l.j.ma(c+1),"PromptField"==d.u&&(b+=d.ia())):c==this.l.j.g-2&&this.l.j.ma(c+1)instanceof Q&&(b+=this.l.j.ma(c+
1).ia());else if(1==e.Da()){c=d.text;for(a=c.ba()-1;0<=a&&!(d instanceof wF&&bd(c,a)!=d.h);a--);b+=C(c,0,a+1)}}return b};
g.ni=function(a,b){var c=Math.min(a,b);b=Math.abs(a-b);a={};if(0==c&&0==b)return a;var d=this.l.j.Tb(c);var e=d.index;var f=d.offset;if(-1==e)return a;if(0==b){if(0==e&&this.l.j.ma(e)instanceof Q||1==e&&0==f&&this.l.j.ma(e-1)instanceof Q)return a;0==f&&(e--,f=this.l.j.ma(e).ba());this.l.j.ma(e)instanceof Q?(b=f+1,c-=b):(b=1,c--);c=this.l.j.Sd(c,b).cursorPos;a.o=c;a.v=a.o}else{d=this.l.j.Tb(c+b);var h=d.index;d=d.offset;if(-1==h||(0==e||1==e&&0==f)&&this.l.j.ma(e)instanceof Q&&(0==h||1==h&&0==d)&&
this.l.j.ma(h)instanceof Q)return a;c=this.l.j.Sd(c,b);if(!c.eo)return a;a.o=c.cursorPos;a.v=a.o;b=this.l.j.Tb(a.o);c=b.index;b=b.offset;0!=b&&this.l.j.ma(c)instanceof Q&&(a.o=a.o-b,a.v=a.o)}return a};g.Ob=function(a,b,c,d){a={};a.o=this.l.j.Ob(b,c,d);a.Text=mH(this,2,!0);this.Gc=this.uc=!1;a.Zs=this.uc;return a};
g.zh=function(a,b){var c={};this.uc||(c=this.ni(a,b));if(PG(this.l.j))if(this.uc)0<a&&(c=this.ni(a,b),c.Text=mH(this,0,!0));else{if(c.Ja=null,c.Text=mH(this,0,!0),kG(this.l.j,c.Ja),""!=this.l.$b||""!=this.l.Xc)c.o=0,c.v=0,this.uc=!0}else c.Text=mH(this,2,!0),this.uc=!1;null!=c.o&&null!=c.v&&c.o==c.v&&(this.lb=!1);this.Gc=!1;return c};
g.Ig=function(a,b){var c={};this.uc||(c=this.sj(a,b));if(PG(this.l.j))if(this.uc)a<this.l.$b.length&&(c.Text=mH(this,0,!0),c.o=0,c.v=0);else{if(c.Ja=null,c.Text=mH(this,0,!0),kG(this.l.j,c.Ja),""!=this.l.$b||""!=this.l.Xc)c.o=0,c.v=0,this.uc=!0}else c.Text=mH(this,2,!0),this.uc=!1;null!=c.o&&null!=c.v&&c.o==c.v&&(this.lb=!1);this.Gc=!1;return c};
g.Ed=function(a,b){if(""!=(this.uc?this.da.wf(this.da.ca):""))return this.km(a,b);var c=this.l.j,d=0,e=0,f;for(f=0;f<c.g;f++)if(!(c.ma(f)instanceof Q)){d=c.Ya(f).start;break}for(f=c.g-1;0<=f;f--)if(!(c.ma(f)instanceof Q)){c=c.Ya(f);e=c.start+c.length;break}return Yr.prototype.Ed.call(this,a,b,d,e,"PromptField")};
g.km=function(a,b){switch(b){case 36:case 65572:case 131109:case 196645:case 196644:case 131108:a=0;break;case 35:case 65571:a=this.da.s.ia().length;break;case 65573:case 37:0!=a&&a--;break;case 39:case 65575:a!=this.da.s.ia().length&&a++;break;case 131111:case 196647:case 196643:case 131107:a=this.da.s.ia().length}return a};g.oi=function(a,b,c){return"control"==c?a=Yr.prototype.oi.call(this,a,b,c):a=ds(this,a,b)};
g.zk=function(a,b,c){var d={};if(""==(this.uc?this.da.wf(this.da.ca):""))return this.lb&&36!=c&&131108!=c?(d.o=Math.min(a,b),d.v=d.o,this.lb=!1):(d.o=this.Ed(b,c),d.v=d.o),d;if(37==c||131109==c)return 0<a&&(d.o=a-1,d.v=d.o),d;""!=this.l.$b?(d.o=0,d.v=0):this.lb&&36!=c&&131108!=c?(d.o=Math.min(a,b),d.v=d.o,this.lb=!1):(d.o=this.Ed(b,c),d.v=d.o);return d};g.Ak=function(a,b,c){var d={};d.o=this.lb&&35!=c&&131107!=c?Math.max(a,b):this.Ed(b,c);d.v=d.o;this.lb=!1;return d};
g.we=function(a){var b=this.l.j,c=b.Tb(a),d=0,e="";a=c.index;c=c.offset;var f=b.ma(a);0<a&&0==c&&"PromptField"==f.u&&a--;f=b.ma(a);null!=f&&null!=f.Ha&&(e=f.Ha);switch(e){case RF:d=1;break;case PF:case dG:d=2;break;case U:d=3;break;case NF:d=4;break;case bG:d=5;break;case VF:case TF:d=6;break;case XF:d=7;break;case $F:d=8}return d};g.Pd=function(a,b){var c={};if(0==this.l.j.g)return null;a=this.l.j.Pd(a,b);return null!=a&&-1!=a?(c.o=a.start,c.v=a.start+a.length,c):null};
g.$m=function(a){return"always"!=this.Qb()&&(a=this.l.j.Tb(a).index,a=this.l.j.ma(a),null!=a)?2===a.Da():!0};function qH(a,b,c,d){Xc++;Yc=!1;try{R.call(this,a,b,c,d)}finally{Xc--,Yc=0==Xc}this.Xa=!1;this.Wd=[262182,262184,27,118,9,65545]}t(qH,R);g=qH.prototype;g.dispose=function(){this.ob=this.rb=this.xc=null;R.prototype.dispose.call(this)};
g.Ge=function(){R.prototype.Ge.call(this);this.PMDesignator=this.AMDesignator="";this.tb="_";this.cb=this.cd=this.Re=this.jg=!1;this.lc=this.af=2029;this.$e="control";this.yc="always";this.Of="validateex";this.hg="hour0as12";this.If=0;this.fd="restore";this.oc=new Date(100,0,1);this.hc=new Date(9999,11,31,23,59,59);this.Ja=new Date;this.va=this.fa=!1;this.Bb=!0;this.Hb=!1;this.u=0;var a=rH(this);this.l={Rc:"",$b:"",Xc:"",hj:"",Pc:"",td:"",Ee:"yyyy/MM/dd HH:mm:ss",j:kH("Format",a)};sH(this);this.oa=
{Rc:"",$b:"",Xc:"",hj:"",Pc:"",td:"",Ee:"yyy/M/d H:mm:ss",j:kH("DisplayFormat",a)}};g.ui=function(){this.g=new lH({Te:this.l,ie:this.oa,yc:this.yc,tb:this.tb,Ha:this.la,Ja:this.Ja,hc:this.hc,oc:this.oc,fd:this.fd,cd:this.cd,De:this})};g.Ie=function(){this.Text=nH(this.g,this.Ja);var a=oH(this.g,this.qa());this.Ia(a);R.prototype.Ie.call(this)};g.yf=function(){null!=this.za()&&null!=this.s&&R.prototype.yf.call(this)};g.nk=function(){return this.If};
g.Rd=function(a){if(this.Text!=a){var b=null;if(this.ze())try{b=new Date(Date.parse(a)),this.hb(a)}catch(c){return}else{if(!this.l.j.xh(a,!0))return;b=this.l.j.qa();"keep"!=this.fd&&(b>this.hc||b<this.oc)&&nG(this.l.j);this.hb(a)}!LF(b)&&this.ra(b,!1)}};function tH(a){var b=a.l.j.qa(a.g.Gc);return null==b||LF(b)?mH(a.g,2,a.g.uc):nH(a.g,b)}
g.ia=function(){if(this.ca&&!Kq(this,!0).Db)return this.Text;var a=this.l.j.qa(this.g.Gc);if(null!=a&&!LF(a))return pH(this.g,a);a=2;TG(this.l.j)===UG&&(a=0);return this.g.sb(a,!1)};g.qa=function(){var a=this.l.j.qa(this.g.Gc);return LF(a)?this.Ja:a};
g.ra=function(a,b,c){try{this.Hb=!!c;if(null!=a&&(a=jg(a),null===a))return;if(c&&this.cd){var d=a,e=d;if(null!=d&&d&&-1!=d.valueOf()&&(d>this.hc||d<this.oc))switch(uH(this),this.fd){case "adjusttomaxmin":e=d>this.hc?this.hc:this.oc;break;case "cancelinput":e=d;break;case "clear":e=null;break;case "keep":e=d;break;case "restore":e=this.mb}a=e}if((a>this.hc||a<this.oc)&&null!=a&&(this.hb(nH(this.g,a)),"cancelinput"==this.fd&&c&&this.cd||"keep"!=this.fd&&!c))return this;if(xh(this.Ja,a,!0))return this.hb(nH(this.g,
a)),c&&!b&&(this.g.Gc=!this.l.j.ra(a),this.Ia(tH(this))),this;var f=null==this.Ja?null:new Date(this.Ja);this.g.Gc=!this.l.j.ra(a);this.ze()&&this.Ia(qh(a,!1));if(c)this.l.j.zc=!0,N(this.host,this.i.ValueChanged,null),this.Ia(tH(this)),this.Ca(this.o,this.v);else{this.Ja=a;var h=nH(this.g,f),k;tH(this)!=h&&(k=N(this.host,this.i.TextChanged,null));k=N(this.host,this.i.ValueChanged,null);k=N(this.host,this.i.NumberChanged,null);null!=k&&(this.ea=k)}b||this.Ia(vH(this));this.hb(nH(this.g,a));M(this);
mG(this.g.l.j);lG(this.g.l.j)}catch(l){window.status="Sorry, You have set an invalid Date value!"}return this};g.Qb=function(){return this.yc};g.we=function(){return this.g.we(this.v)};g.fb=function(){this.ra(null,!1);return this};g.kn=function(a,b){return R.prototype.kn.call(this,a,b)};g.Ik=function(a){var b;0==a?b=this.v:b=this.g.Pd(a).o;return{vd:b,Kf:b}};g.Qk=function(){this.ca||(this.Ja=this.g.qa().Ja);var a=this.l.j.qa();LF(a)||(this.Vc=oH(this.g,this.l.j.qa()),this.Ia(this.Vc))};
g.jn=function(a,b){R.prototype.jn.call(this,a,b);b&&N(this.host,this.i.NumberChanged,null)};g.si=function(){R.prototype.si.call(this,{Va:this.ea,Element:this.ga,Yq:this.Od(),If:this.If,Text:tH(this)});this.ka=this.Ja;wH(this,!0)};
function xH(a){var b=[];null!==a.l.Ee&&(b=yH(a,a.l.Ee,!0));var c=rH(a),d=a.l,e=0;null!=b&&(e=b.length);for(var f=new HF(e,c),h=0;h<e;h++)if(b[h].Tj)uF(f,new Q(b[h].cj));else{var k=b[h].cj,l=k.ba();uF(f,hH(bd(k,0),l,c.tb,c.lk))}d.j=f;sH(a);a.l.j.ca=a.hg;a.l.j.ea=a.jg;a.l.j.i=a.Of;IF(a.l.j,a.tb);jG(a.l.j,zH(a),AH(a));a.l.j.ga=a.cb?a.af:a.lc}
function BH(a){var b=[];null!==a.oa.Ee&&(b=yH(a,a.oa.Ee));var c=rH(a),d=a.oa,e=0;null!=b&&(e=b.length);for(var f=new HF(e,c),h=0;h<e;h++)if(b[h].Tj)uF(f,new Q(b[h].cj));else{var k=b[h].cj,l=k.ba();uF(f,iH(bd(k,0),l,c.tb,c.lk))}d.j=f;a.oa.j.ca=a.hg;a.oa.j.ea=a.jg;a.oa.j.i=a.Of;IF(a.oa.j,a.tb);jG(a.oa.j,zH(a),AH(a));a.oa.j.ga=a.cb?a.af:a.lc}function sH(a){a.l.j.ra(a.Ja);mG(a.l.j);lG(a.l.j);fG(a.l.j)?sG(a.l.j):gG(a.l.j)&&pG(a.l.j);hG(a.l.j)&&vG(a.l.j);a.l.j.Ec()&&xG(a.l.j)}
function rH(a){var b={lk:[]};b.lk[0]=zH(a);b.lk[1]=AH(a);b.AMDesignator=zH(a);b.PMDesignator=AH(a);b.cd=a.cd;b.If=a.If;b.Re=a.Re;b.hg=a.hg;b.jg=a.jg;b.et=a.fa;b.oc=a.oc;b.hc=a.hc;b.fd=a.fd;b.tb=a.tb;b.yc=a.yc;b.$e=a.$e;b.Of=a.Of;b.af=a.af;return b}function CH(a){var b=a;if(-1!=a.jb("\\")){b="";for(var c=a.length,d=0;d<c;d++)"\\"==a.substring(d,d+1)?(d+1<c&&(b+=a.substring(d+1,d+2)),d++):b+=a.substring(d,d+1)}return b}function DH(a){var b={xg:""};b.format=a;b.wr=!1;return b}
function EH(a){var b=DH(a);if(null==a||0==a.length)return b;var c=a.jb("{"),d=a.jb("}");if(-1==c&&-1==d)b.format=CH(a);else{for(;0<c&&"\\"==a.substring(c-1,c);)c=a.jb("{",c+1);for(;0<d&&"\\"==a.substring(d-1,d);)d=a.jb("}",d+1);if(c<d)if(-1==c)b.format=CH(a);else{if(1==d-c)b.format="";else{if("{"==a.substring(c+1,c+2))return gc(),DH("");if("\\"==a.substring(c+1,c+2))if(c+2<d)c++;else return gc(),DH("");b.xg=a.substring(c+1,c+2)}b.wr=!0}else b.format=CH(a)}return b}g.lp=function(){return"egyMdhHmst".split("")};
function yH(a,b,c){var d=[],e=b.length,f="",h=!1,k=[],l=a.lp();c||(l.push("E"),l.push("A"));for(var m,n=0;n<e;n++){var q=b.substring(n,n+1);a=b.substring(n,n+1);if("\\"==a)n++,n<e&&(f+=b.substring(n,n+1));else if("'"==a)h=!h;else if(h)f+=a;else if(-1==l.indexOf(a))f+=q;else if(("H"===a&&(-1!=k.indexOf("t")||-1!=k.indexOf("h"))||"y"===a&&-1!=k.indexOf("g")||"t"===a&&-1!=k.indexOf("H")||"h"===a&&-1!=k.indexOf("H")||"g"===a&&-1!=k.indexOf("y")||"e"===a&&-1!=k.indexOf("y")||-1!=k.indexOf(a))&&!0===c)f+=
a;else{0<f.length&&(m={Tj:!0},m.cj=f,d.push(m),f="");for(m=1;n+1<e&&a==b.substring(n+1,n+2);)n++,m++,q+=a;m={Tj:!1};m.cj=q;d.push(m);k.push(a)}}0<f.length&&(m={Tj:!0},m.cj=f,d.push(m));return!0===c&&1==d.length&&d[0].Tj||h?(hc(),[]):d}function vH(a){return oH(a.g,a.qa())}g.Oo=function(){return null!==this.g.Pd(this.If)};g.ze=function(){return 0==this.l.j.g?this.g.Gc=!0:!1};g.sd=function(){return this.l.j.sd()?!0:!1};g.ed=function(){R.prototype.ed.call(this);this.xc&&this.xc.call(this)};
g.Vd=function(){if(this.Ul)this.Qm=!0;else{var a={Text:rF(this),hc:this.hc,oc:this.oc,De:this};a=R.prototype.Vd.call(this,a);void 0!=a&&(this.Hb||this.ra(a.Ja,!0),xh(a.Ja,this.Ja,!0)?this.Ia(a.Text):(a=oH(this.g,this.qa()),this.Ia(a)),dr(Mq.instance),Er(this.ta)&&Fr(this.ta),this.ea=0,xh(this.ka,this.Ja,!0)||Vf(this.ga),this.he=!0)}};g.ne=function(){var a="";null!=this.qa()&&(a=qh(this.qa(),!1));Jq(this.s,a)};g.Ia=function(a){this.sa=a;this.Bb&&R.prototype.Ia.call(this,a)};
g.Td=function(a){var b=a.keyCode,c={gd:!1,Oc:!1,Cd:!1};this.Hb=!1;a.shiftKey&&(c.gd=!0);if(a.ctrlKey||a.metaKey)c.Oc=!0;a.altKey&&(c.Cd=!0);if(!this.rb||-1!==this.Wd.indexOf(b)||!this.rb.call(this,a)){if(229==b)if(!ib&&db&&null!=a.key){if(isNaN(Number(a.key)))return!0;b=a.key.charCodeAt(0)}else return!0;this.Bb=!1;try{var d=this.wb(),e=R.prototype.om.call(this,{jd:b,mk:c,o:this.o,v:this.v,fm:this.La,uj:fr(this),am:this.na,Re:this.Re,gm:this.Cc,$e:this.$e,Text:this.ia(),Vc:this.s.ia()});this.Ze(d,
!1);wH(this,!1);27==b&&(null==e&&(e={}),!0!==e.Zp&&(e.Aa=!0))}finally{this.Bb=!0,void 0!=this.sa&&(this.Ia(this.sa),cb&&13==b&&(null==e.o&&(e.o=this.o),null==e.v&&(e.v=this.v)),y&&(null==e.o&&(e.o=this.o),null==e.v&&(e.v=this.v))),e&&(e.Ib?e.Aa=!0:0!==this.l.j.g&&(null!=e.o||null!=e.v)&&this.Ca(this.o,this.v)),this.sa=void 0}return null==e?!1:null==e.Aa||0==e.Aa?null!=e.jd?e:!1:!0}};g.Ud=function(){return!0};
g.Ae=function(a){if(this.ze())return this.o=dg(this.ga),this.v=eg(this.ga),!0;var b="",c=!1,d=this.wb();if(1==this.fa){var e=a.keyCode;13==e?(b=FH(this,"DirectInput"),c=!0):48<=e&&57>=e||96<=e&&105>=e?(96<=e&&(e-=48),b=a=rF(this),this.v<this.Text.ba()&&(b=this.Text.ba()-this.v,b=C(a,0,a.ba()-b)),b=C(b,b.ba()-1,b.ba()),b=Op(L,b),b==String.fromCharCode(e)&&(b==String.fromCharCode(e)&&1>this.u||this.va||(b=FH(this,"ReInput"))),this.u=0):32==e?0==this.va&&(1==this.u?this.va=!0:this.u++):65<=e&&90>=e?
(1<=this.u&&(b=FH(this,"ReInput"),c=!0),this.u=0):40!=e&&38!=e||0!=this.va||1!=this.u||(this.va=!0)}""!=b&&c&&(c=this.g.Ae(e,this.o,this.v,this.Re,b),null!=c.o&&(this.o=c.o),null!=c.v&&(this.v=c.v),null!=c.Text&&this.hb(c),this.Ia(this.Text),c.Aa||c.Ib||this.Ca(this.o,this.v),null!=c.Va&&(this.ea=c.Va),null!=c.pa&&(c=N(this.host,c.pa.gb,c.pa.ib),null!=c&&(this.ea=c)));wH(this,!1);this.Ze(d,!1);return!1};
function FH(a,b){var c=rF(a);if(c==a.Text)return"";var d;if(""!=a.Text){var e=Math.min(a.o,a.v),f=Math.max(a.o,a.v);f<a.Text.ba()?(f=C(a.Text,f,tH(a).ba()),-1!=c.jb(f)?d=C(c,e,c.ba()-f.ba()):d=""):d=C(c,e,c.ba())}else d=c;"ReInput"==b&&(d=C(d,0,d.ba()));if("Record"==b)return d;if("LoseFocusInput"==b&&""==d)return"";a.fa=!1;a.va=!1;if("ReInput"==b||"ClickInput"==b)a.ea=8,a.ga.blur(),a.ga.focus();return d}
g.Ub=function(){if(!fr(this)){var a=this.g.Ub();null!=a&&null!=a.Text&&(this.hb(a),this.Ia(this.Text),this.Ca(this.o,this.v))}};
g.Ze=function(a,b,c){var d=!1;if(b||"validateex"==this.Of&&this.cd)if(void 0==c&&(c=this.l.j.qa(!1)),c&&!LF(c)&&null!=c&&(c>this.hc||c<this.oc)){b||(this.ud!=rF(this)||"cancelinput"==this.fd)&&uH(this);switch(this.fd){case "adjusttomaxmin":c>this.hc?this.l.j.ra(this.hc):this.l.j.ra(this.oc);a=tH(this);this.Ia(a);this.hb(a);this.o=this.v=gH(this.l.j);b||this.Ca(this.o,this.v);d=!0;break;case "cancelinput":b?(this.l.j.ra(this.Ja),this.Ia(tH(this)),this.o=this.v=gH(this.l.j),b||this.Ca(this.o,this.v)):
null!=a&&(this.Lb(a),this.Ca(this.o,this.v));d=!0;break;case "clear":this.l.j.ra(null);a=tH(this);this.Ia(a);this.hb(a);this.o=this.v=gH(this.l.j);b||this.Ca(this.o,this.v);d=!0;break;case "restore":b?this.l.j.ra(this.Ja):this.l.j.ra(this.mb),a=tH(this),this.Ia(a),this.hb(a),this.o=this.v=gH(this.l.j),b||this.Ca(this.o,this.v),d=!0}b||(this.ud=void 0!=this.sa?this.sa:rF(this))}return d};function uH(a){N(a.host,a.i.InvalidRange,null)}
g.wb=function(){var a={};a.Om=this.g.wb();a.Xl=R.prototype.wb.call(this);a.Km=rF(this);return a};g.Lb=function(a){this.g.Lb(a.Om);R.prototype.Lb.call(this,a.Xl);this.Ia(a.Km)};function wH(a,b){var c=a.l.j.qa(!1);LF(c)||null==c?b&&(a.mb=null):c>=a.oc&&c<=a.hc&&(a.mb=c)}g.dj=function(){(y||cb||db||hb)&&this.Rb()};g.Rb=function(){try{this.fa=!0,this.Ae({keyCode:13})}finally{M(this),this.fa=!1}};g.ji=function(){this.Rb()};
function GH(a){if(0<a.ga.value.length){a.l.j.ra(null);var b=tH(a);setTimeout(function(){a.Ia(b);M(a);a.hb(b);a.o=a.v=gH(a.l.j);a.Ca(a.o,a.v)},0)}}function HH(a,b){a.rb=b}function IH(a,b){a.ob=b}function zH(a){return""==a.AMDesignator?w.DateTimeAM:a.AMDesignator}function AH(a){return""==a.PMDesignator?w.DateTimePM:a.PMDesignator}g.vi=function(){return this.l.Ee!==this.oa.Ee?0:R.prototype.vi.call(this)};g.Um=function(){return new JH};g.Tm=function(){return new JH};g.eb=function(){return R.prototype.eb.call(this)};
g.xb=function(){return R.prototype.xb.call(this)};g.zj=function(a,b){this.l.Rc=b;this.l.$b="";this.l.Xc="";""!==b&&(a=EH(b),this.l.$b=""==a.xg?a.format:"",this.l.Xc=a.xg);this.eb().g=KH(this,!0,b,this.l.$b,this.l.Xc)};g.Ch=function(a,b){this.oa.Rc=b;this.oa.$b="";this.oa.Xc="";""!==b&&(a=EH(b),this.oa.$b=""==a.xg?a.format:"",this.oa.Xc=a.xg);this.xb().g=KH(this,!1,b,this.oa.$b,this.oa.Xc);this.Pf()&&!this.ca&&this.Ia(vH(this))};
function LH(a,b){b=lg(b);if(b!==a.xb().i){a.xb();a.xb().i=b;a.oa.hj=b;a.oa.Pc="";a.oa.td="";if(""!==b){var c=EH(b);a.oa.Pc=""==c.xg?c.format:"";a.oa.td=c.xg}a.xb().s=KH(a,!1,b,a.oa.Pc,a.oa.td);if(b=!a.ca)b=a.qa(),b=a.ca?!jh(b)&&QF(a.l.j):!jh(b)&&QF(a.oa.j);b&&a.Ia(vH(a));M(a)}}g.wf=function(a){var b=this.qa();if(null!=b){if(a){var c=this.eb();b=!jh(b)&&QF(this.l.j)}else c=this.xb(),b=!jh(b)&&QF(this.oa.j);if(b)return c.s}return R.prototype.wf.call(this,a)};
g.Qj=function(){if(!Kq(this).Db)return"";var a=this.qa();if(null!=a){if(this.ca){var b=this.eb();a=!jh(a)&&QF(this.l.j)}else b=this.xb(),a=!jh(a)&&QF(this.oa.j);if(a&&null!=b.s&&""!==b.s)return"emptyEraWatermark"}return R.prototype.Qj.call(this)};function KH(a,b,c,d,e){null!=d&&""!=d?c=d:null!=e&&""!=e&&(c=b?a.l.j.Fc(e):a.oa.j.Fc(e));return c}
function MH(a,b){b?(a.eb().g=KH(a,!0,a.eb().h,a.l.$b,a.l.Xc),a.eb().s=KH(a,!0,a.eb().i,a.l.Pc,a.l.td)):(a.xb().g=KH(a,!1,a.xb().h,a.oa.$b,a.oa.Xc),a.xb().s=KH(a,!1,a.xb().i,a.oa.Pc,a.oa.td));M(a)}g.Lg=function(a,b){R.prototype.Lg.call(this,a,b);this.ob&&this.ob.call(this,b)};g.Mj=function(){return"field"===this.$e&&this.l&&this.l.j&&-1!==this.l.j.le(this.v,!0)?"nextfield":R.prototype.Mj.call(this)};
g.Oj=function(){return"field"===this.$e&&this.l&&this.l.j&&-1!==this.l.j.le(this.v,!1)?"previousfield":R.prototype.Oj.call(this)};function NH(a,b,c,d){qH.call(this,a,b,c,d)}t(NH,qH);NH.prototype.lp=function(){return["h","H","m","s","t"]};function JH(){Lr.apply(this,arguments);this.s=this.i=""}t(JH,Lr);function OH(a){a&&(G(a.width)||G(a.height))&&(a=Object.assign({},a),delete a.width,delete a.height,delete a.minWidth,delete a.minHeight,delete a.maxWidth,delete a.maxHeight);return a}
function PH(a,b,c){this.Na=b;var d=this;this.u=[];this.s=null;this.ca=function(){d.i.removeInitialized(d.ca);QH(d)};this.i=a;this.Na=b;var e=b.getElement();b.setWidth("");b.setHeight("");this.h=c;this.g=new Mn(e,OH(c));Sn(this.g,a.getLayoutElement());this.g.Ua.g.h.setAttribute("tabindex","-1");this.g.aa.ga=!0;this.g.onSelectedDateChanged(function(f,h){RH(d,h)&&(SH(d),TH(d,h))});Tn(this.g,function(f,h){RH(d,h)&&SH(d)});c&&c.defaultDate instanceof Date&&(this.defaultDate=c.defaultDate);if(!this.i.initComplete)this.i.onInitialized(this.ca)}
t(PH,Pv);g=PH.prototype;g.dispose=function(){this.g.destroy();Pv.prototype.dispose.call(this)};function QH(a){a.h&&!G(a.h.width)&&(a.width=a.h.width);a.h&&!G(a.h.height)&&(a.height=a.h.height);a.h&&!G(a.h.minWidth)&&(a.minWidth=a.h.minWidth);a.h&&!G(a.h.minHeight)&&(a.minHeight=a.h.minHeight);a.h&&!G(a.h.maxWidth)&&(a.maxWidth=a.h.maxWidth);a.h&&!G(a.h.maxHeight)&&(a.maxHeight=a.h.maxHeight)}function RH(a,b){b=b&&b.reason===Gn;return!a.g.autoSwitch||b||a.g.aa.sa}g.getValue=function(){return this.g.getSelectedDate()};
g.setValue=function(a){this.setSelectedDate(a)};g.toggleOpen=function(a){a=void 0===a?!0:a;var b=this.i.getValue();this.Na.isOpened()||this.setSelectedDate(b);UH(this);this.Na.toggleOpen(a);this.ea&&this.ea.call(this)};g.setSelectedDate=function(a){try{this.g.setFocusDate(a||new Date),this.g.setSelectedDate(a,!0)}catch(b){}};g.close=function(a){a=void 0===a?!0:a;var b=this.g.ld;Xm(b)&&b.animation.stop();this.Na.close(a)};g.open=function(){this.Na.open()};g.getElement=function(){return this.Na.getElement()};
function UH(a){var b=a.i.getValue();G(b)&&a.s instanceof Date&&a.s<=a.maxDate&&a.s>=a.minDate&&(a.g.focusDate=a.s)}function SH(a){if(!a.i.getReadOnly()){var b=a.g.getSelectedDate();a.i.syncValueFromDropDown(b)}a.close()}g.onKeyDown=function(a){switch(a.keyCode){case 27:this.close();break;default:this.g.ld.uq(a)}};g.getSelectedDate=function(){return this.g.getSelectedDate()};g.setFocusDate=function(a){this.g.setFocusDate(a)};g.getFocusDate=function(){return this.g.getFocusDate()};g.setMaxDate=function(a){this.g.setMaxDate(a)};
g.Cf=function(){return this.g.Cf()};g.setMinDate=function(a){this.g.setMinDate(a)};g.Df=function(){return this.g.Df()};g.setAllowSelection=function(a){this.g.setAllowSelection(a)};g.Mi=function(){return this.g.Mi()};g.setEmptyRows=function(a){this.g.setEmptyRows(a)};g.Oi=function(){return this.g.Oi()};g.setFirstDayOfWeek=function(a){this.g.setFirstDayOfWeek(a)};g.Pi=function(){return this.g.Pi()};g.setFirstMonthInView=function(a){this.g.setFirstMonthInView(a)};g.Qi=function(){return this.g.Qi()};
g.setYearMonthFormat=function(a){this.g.setYearMonthFormat(a)};g.jl=function(){return this.g.jl()};g.setHeaderFormat=function(a){this.g.setHeaderFormat(a)};g.$k=function(){return this.g.$k()};g.setShowZoomButton=function(a){this.g.setShowZoomButton(a)};g.hl=function(){return this.g.hl()};g.setShowRokuyou=function(a){this.g.setShowRokuyou(a)};g.Vi=function(){return this.g.Vi()};g.setShowHeader=function(a){this.g.setShowHeader(a)};g.dl=function(){return this.g.dl()};g.setShowToday=function(a){this.g.setShowToday(a)};
g.el=function(){return this.g.el()};g.setShowWeekNumber=function(a){this.g.setShowWeekNumber(a)};g.gl=function(){return this.g.gl()};g.setShowTrailing=function(a){this.g.setShowTrailing(a)};g.fl=function(){return this.g.fl()};g.setCalendarType=function(a,b){this.g.setCalendarType(a,void 0===b?!1:b)};g.Bf=function(){return this.g.Bf()};g.setCalendarDimensions=function(a,b){this.g.setCalendarDimensions(a,b)};g.Xk=function(){return this.g.Xk()};g.setShowNavigator=function(a){this.g.setShowNavigator(a)};
g.Ui=function(){return this.g.Ui()};g.setNavigatorOrientation=function(a){this.g.setNavigatorOrientation(a)};g.Si=function(){return this.g.Si()};g.setOverrideTipText=function(a){this.g.setOverrideTipText(a)};g.bl=function(){return this.g.bl()};g.getHolidayGroup=function(a){return this.g.getHolidayGroup(a)};g.getHolidayGroupsCount=function(){return this.g.getHolidayGroupsCount()};g.addHolidayGroup=function(a){return this.g.addHolidayGroup(a)};g.clearHolidayGroups=function(){return this.g.clearHolidayGroups()};
g.getHolidayGroupIndex=function(a){return this.g.getHolidayGroupIndex(a)};g.insertHolidayGroup=function(a,b){return this.g.insertHolidayGroup(a,b)};g.removeHolidayGroup=function(a){return this.g.removeHolidayGroup(a)};g.removeHolidayGroupAt=function(a){return this.g.removeHolidayGroupAt(a)};g.getWeekday=function(a){return this.g.getWeekday(a)};g.onScrolled=function(a){var b=this;if("function"===typeof a)this.g.onScrolled(function(c,d){a(b,d)})};
g.onFocusDateChanged=function(a){var b=this;if("function"===typeof a)this.g.onFocusDateChanged(function(c,d){a(b,d)})};g.onClickDate=function(a){var b=this;if("function"===typeof a)this.g.onClickDate(function(c,d){a(b,d)})};g.onSelectedDateChanged=function(a){"function"===typeof a&&-1===this.u.indexOf(a)&&this.u.push(a)};g.removeSelectedDateChanged=function(a){"function"===typeof a&&(a=this.u.indexOf(a),-1!==a&&this.u.splice(a,1))};
function TH(a,b){if(a.u)try{a.u.forEach(function(c){c.apply(a,[a,b])})}catch(c){console.error(c)}}g.pe=function(){var a=this;return{getWidth:function(){return a.width+"px"},Yg:function(){return a.height+"px"},setWidth:function(b){return a.width=b},setHeight:function(b){return a.height=b}}};
p.Object.defineProperties(PH.prototype,{calendarDimensions:{configurable:!0,enumerable:!0,get:function(){return this.Xk()},set:function(a){this.setCalendarDimensions(a.width,a.height)}},selectedDate:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedDate()}},focusDate:{configurable:!0,enumerable:!0,get:function(){return this.getFocusDate()},set:function(a){this.setFocusDate(a)}},holidayGroupsCount:{configurable:!0,enumerable:!0,get:function(){return this.getHolidayGroupsCount()}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this.Cf()},set:function(a){this.setMaxDate(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this.Df()},set:function(a){this.setMinDate(a)}},defaultDate:{configurable:!0,enumerable:!0,get:function(){return this.s},set:function(a){a=kd(a);if(a instanceof Date||null===a)this.s=a;UH(this)}},allowSelection:{configurable:!0,enumerable:!0,get:function(){return this.Mi()},set:function(a){this.setAllowSelection(a)}},emptyRows:{configurable:!0,
enumerable:!0,get:function(){return this.Oi()},set:function(a){this.setEmptyRows(a)}},firstDayOfWeek:{configurable:!0,enumerable:!0,get:function(){return this.Pi()},set:function(a){this.setFirstDayOfWeek(a)}},firstMonthInView:{configurable:!0,enumerable:!0,get:function(){return this.Qi()},set:function(a){this.setFirstMonthInView(a)}},yearMonthFormat:{configurable:!0,enumerable:!0,get:function(){return this.jl()},set:function(a){this.setYearMonthFormat(a)}},headerFormat:{configurable:!0,enumerable:!0,
get:function(){return this.$k()},set:function(a){this.setHeaderFormat(a)}},showZoomButton:{configurable:!0,enumerable:!0,get:function(){return this.hl()},set:function(a){this.setShowZoomButton(a)}},showRokuyou:{configurable:!0,enumerable:!0,get:function(){return this.Vi()},set:function(a){this.setShowRokuyou(a)}},showHeader:{configurable:!0,enumerable:!0,get:function(){return this.dl()},set:function(a){this.setShowHeader(a)}},showToday:{configurable:!0,enumerable:!0,get:function(){return this.el()},
set:function(a){this.setShowToday(a)}},showWeekNumber:{configurable:!0,enumerable:!0,get:function(){return this.gl()},set:function(a){this.setShowWeekNumber(a)}},showTrailing:{configurable:!0,enumerable:!0,get:function(){return this.fl()},set:function(a){this.setShowTrailing(a)}},calendarType:{configurable:!0,enumerable:!0,get:function(){return this.Bf()},set:function(a){this.setCalendarType(a)}},calendarZoomRange:{configurable:!0,enumerable:!0,get:function(){return this.g.calendarZoomRange}},showNavigator:{configurable:!0,
enumerable:!0,get:function(){return this.Ui()},set:function(a){this.setShowNavigator(a)}},navigatorOrientation:{configurable:!0,enumerable:!0,get:function(){return this.Si()},set:function(a){this.setNavigatorOrientation(a)}},overrideTipText:{configurable:!0,enumerable:!0,get:function(){return this.bl()},set:function(a){this.setOverrideTipText(a)}},showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.g.showContextMenu=a}},autoSwitch:{configurable:!0,enumerable:!0,get:function(){return this.g.autoSwitch},
set:function(a){this.g.autoSwitch=a}},width:{configurable:!0,enumerable:!0,set:function(a){this.g.width=a},get:function(){return this.g.width}},height:{configurable:!0,enumerable:!0,set:function(a){this.g.height=a},get:function(){return this.g.height}},allowResize:{configurable:!0,enumerable:!0,get:function(){return this.g.allowResize},set:function(a){this.g.allowResize=a}},minWidth:{configurable:!0,enumerable:!0,set:function(a){this.g.minWidth=a},get:function(){return this.g.minWidth}},minHeight:{configurable:!0,
enumerable:!0,set:function(a){this.g.minHeight=a},get:function(){return this.g.minHeight}},maxWidth:{configurable:!0,enumerable:!0,set:function(a){this.g.maxWidth=a},get:function(){return this.g.maxWidth}},maxHeight:{configurable:!0,enumerable:!0,set:function(a){this.g.maxHeight=a},get:function(){return this.g.maxHeight}}});var VH={DateTime:"datetime",Date:"date",Time:"time"};v("PickerType",VH);var WH={Default:1,IntervalOf5:5,IntervalOf10:10,IntervalOf15:15,IntervalOf20:20,IntervalOf30:30};WH[WH.Default]="Default";WH[WH.IntervalOf5]="IntervalOf5";WH[WH.IntervalOf10]="IntervalOf10";WH[WH.IntervalOf15]="IntervalOf15";WH[WH.IntervalOf20]="IntervalOf20";WH[WH.IntervalOf30]="IntervalOf30";v("Interval",WH);v("GcDateTimePickerEvent",{SelectedDateChanged:"selecteddatechanged"});function XH(a){var b=this;this.u=function(c){if(c.target){c.stopPropagation();var d=b.h.querySelectorAll("div[contentName]");c=c.target.getAttribute("tabName");b.g.querySelectorAll("div[isTabActive='true']")[0].getAttribute("tabName")!=c&&(YH(d,c),bI(b,c),b.s(c))}};gI(this,a);this.g=document.createElement("div");E(this.g,"gcim-date-time-picker__tab-label");this.i.appendChild(this.g);this.h=document.createElement("div");E(this.h,"gcim-date-time-picker__tab-content");this.i.appendChild(this.h)}
function gI(a,b){a.i=document.createElement("div");E(a.i,"gcim-date-time-picker__tab-container");b.appendChild(a.i)}function hI(a,b){var c=document.createElement("div");E(c,"gcim-date-time-picker__tab");c.textContent="time"==b?w.TimeTabDefaultText:w.DateTabDefaultText;c.setAttribute("tabName",b);c.setAttribute("diplayTab","true");c.setAttribute("isTabActive","false");c.addEventListener("click",a.u);a.g.appendChild(c)}
function iI(a,b,c){c.setAttribute("contentName",b);c.setAttribute("diplayContent","true");a.h.appendChild(c)}function YH(a,b){for(var c=0;c<a.length;c++){var d=a[c].getAttribute("contentName"),e=a[c].getAttribute("diplayContent");b===d&&"false"===e?(jd(a[c],"gcim_hidden"),a[c].setAttribute("diplayContent","true")):b!=d&&"true"===e&&(E(a[c],"gcim_hidden"),a[c].setAttribute("diplayContent","false"))}}
function bI(a,b){a=a.g.querySelectorAll("div[tabName]");for(var c=0;c<a.length;c++)a[c].getAttribute("tabName")==b?(E(a[c],"gcim-date-time-picker__tab--active"),a[c].setAttribute("isTabActive","true")):(jd(a[c],"gcim-date-time-picker__tab--active"),a[c].setAttribute("isTabActive","false"))}function jI(a,b,c){YH(a.h.querySelectorAll("div[contentName]"),b);c?jd(a.g,"gcim_hidden"):E(a.g,"gcim_hidden");bI(a,b)};function kI(a){var b=document.createElement("div");b.className="gcim-date-time-picker__item";b.setAttribute("Gc_pickerItem_Value",a.value.toString());b.setAttribute("Gc_pickerItem_displayValue",a.Wg);b.textContent=a.Wg;return b}
function lI(a,b){this.u=0;this.ea=a;this.s=b;this.ca=document.createDocumentFragment();a=this.i=mI(new nI(this.s[0],0),this.ca);for(var c=b=1;33>b;c++,b++){c>=this.s.length&&(c=0);var d=mI(new nI(this.s[c],b),this.ca);a.next=d;d.g=a;a=d}a.next=null;this.g=a;this.i.g=null;a=this.i;b=-1;for(c=this.s.length-1;-30<=b;c--,b--)0>c&&(c=this.s.length-1),d=mI(new nI(this.s[c],b),this.ca),d.next=a,a=a.g=d;a.g=null;this.h=a;this.ea.appendChild(this.ca)}
function nI(a,b){this.m=a;this.h=kI(this.m);this.offset=50*b;this.updatePosition()}function oI(a){a.updatePosition();a.h.setAttribute("Gc_pickerItem_Value",a.m.value.toString());pI(a);a.m.Vh?a.h.setAttribute("gc_pickeritem_isdisabled","true"):a.h.removeAttribute("gc_pickeritem_isdisabled")}function pI(a){a.h.textContent!=a.m.Wg&&(a.h.setAttribute("Gc_pickerItem_displayValue",a.m.Wg),a.h.textContent=a.m.Wg)}
nI.prototype.updatePosition=function(){var a=this.offset;this.h.style.transform="translate(0px, "+a+"px)";this.h.style.msTransform="translate(0px, "+a+"px)"};function mI(a,b){b.appendChild(a.h);return a};function qI(a,b){var c=this;this.Ic=!0;this.sa=function(d){d.cancelable&&d.preventDefault();c.s.addEventListener("transitionend",c.la);c.g.ho=Date.now();var e=od(d)/3+c.g.Uc;e=rI(sI(c,e));1>Math.abs(e-c.g.Uc)||(tI(c),c.s.style.transition="transform 1s ease-out",uI(c,e),vI(c,e),c.g.Uc=e,c.g.$j=c.g.Uc);ab&&c.la();d.stopPropagation?d.stopPropagation():d.cancelBubble=!0};this.ta=function(d){c.ka=!0;d.cancelable&&d.preventDefault();if(!(d instanceof MouseEvent&&("which"in d&&3===d.which||"button"in d&&
2===d.button))){c.s.removeEventListener("transitionend",c.la);document.addEventListener("mousemove",c.ga);c.u.addEventListener("touchmove",c.ga,{passive:!1});y&&c.u.addEventListener("pointermove",c.ga);document.addEventListener("mouseup",c.fa);document.addEventListener("touchend",c.fa);y&&document.addEventListener("pointerup",c.fa);if(window.TouchEvent&&d instanceof TouchEvent)c.g.Md=d.changedTouches[0].pageY;else if(d instanceof MouseEvent||d instanceof PointerEvent)c.g.Md=d.pageY;c.g.ho=Date.now();
var e=window.getComputedStyle(c.s,null);var f=e.getPropertyValue("transform");if("none"===f||void 0===f)f=e.getPropertyValue("mstransform");e=f;c.ca=Number(""==e?"0":e.split("(")[1].split(")")[0].split(",")[5]);c.g.speed=0;c.s.style.transition="";c.g.Uc!=c.ca&&(c.g.Uc=c.ca,uI(c,c.ca));d.stopPropagation?d.stopPropagation():d.cancelBubble=!0}};this.ga=function(d){d.cancelable&&d.preventDefault();if(c.ka){if(window.TouchEvent&&d instanceof TouchEvent)c.g.y=d.changedTouches[0].pageY;else if(d instanceof
MouseEvent||d instanceof PointerEvent)c.g.y=d.pageY;c.scroll(d)}d.stopPropagation?d.stopPropagation():d.cancelBubble=!0};this.fa=function(){document.removeEventListener("mousemove",c.ga);c.u.removeEventListener("touchmove",c.ga);y&&c.u.addEventListener("pointermove",c.ga);c.ka&&(c.s.addEventListener("transitionend",c.la),c.animation()&&!ab||c.la());c.ka=!1;document.removeEventListener("mouseup",c.fa);document.removeEventListener("touchend",c.fa);y&&document.removeEventListener("pointerup",c.fa)};
this.la=function(){if(wI(c)){var d=c.i;c.i=wI(c);!0===c.i.Vh&&xI(c);d.value!=c.i.value&&(c.onValueChanged(c.i.value),yI(c),c.ea&&c.ea())}c.s.style.transition="";zI(c)};this.u=a;this.s=AI(this);BI(this,b);1!=this.h.length&&(this.u.addEventListener("mousedown",this.ta),this.u.addEventListener("touchstart",this.ta,{passive:!1}),y&&this.u.addEventListener("pointerdown",this.ta),this.u.addEventListener(Va?"DOMMouseScroll":"mousewheel",this.sa,{passive:!1}));CI(this)}
function AI(a){var b=document.createElement("div");E(b,"gcim-date-time-picker__column-item");a.u.appendChild(b);return b}g=qI.prototype;g.setVisible=function(a){this.Ic=a;!1===a?E(this.u,"gcim_hidden"):jd(this.u,"gcim_hidden")};function BI(a,b){var c=[],d=b.start,e=b.end;b=b.interval;if(d<=e)for(var f=0;d<=e;d+=b,f++)c.push({value:d,Wg:d.toString(),Vh:!1,index:f});a.h=c;a.setItems();a.i=null}
function vI(a,b){if(3<=a.h.length&&(a=a.na,b=0<b?Math.floor(b/50)-a.u:Math.ceil(b/50)-a.u,a.u+=b,0!=b))for(;0!=b;)if(0>b){if(!a.i.next)debugger;a.i=a.i.next;var c=a;c.h.offset=c.g.offset+50;c.g.next=c.h;c.h.m=c.g.m.index>=c.s.length-1?c.s[0]:c.s[c.g.m.index+1];oI(c.h);c.h.g=c.g;c.h=c.h.next;c.g=c.g.next;c.h.g=null;c.g.next=null;b++}else{if(!a.i.g)debugger;a.i=a.i.g;c=a;c.g.offset=c.h.offset-50;c.g.m=0>=c.h.m.index?c.s[c.s.length-1]:c.s[c.h.m.index-1];oI(c.g);c.h.g=c.g;c.g.next=c.h;c.h=c.g;c.g=c.g.g;
c.g.next=null;c.h.g=null;b--}}function DI(a,b){for(var c=null,d=0;d<a.h.length;d++)if(a.h[d].value===b){c=a.h[d];break}return c}function EI(a,b){b=a.g.Uc+50*(b?a.i.index-b.index:0);b=rI(b);uI(a,b);vI(a,b);a.g.Uc=b;a.g.$j=a.g.Uc}function FI(a){for(var b=a.s.querySelectorAll(".gcim-date-time-picker__item[gc_pickeritem_isdisabled='true']"),c=0;c<b.length;c++)b[c].removeAttribute("gc_pickeritem_isdisabled");for(b=0;b<a.h.length;b++)a.h[b].Vh=!1}
g.getSelectedValue=function(){return this.i?this.i.value:0};function GI(a,b,c){var d=DI(a,b),e=DI(a,c);if(d&&e&&b<=c){for(var f=a.s.querySelectorAll(".gcim-date-time-picker__item[Gc_pickerItem_Value]"),h=0;h<f.length;h++){var k=Number(f[h].getAttribute("Gc_pickerItem_Value"));k>=b&&k<=c&&f[h].setAttribute("gc_pickeritem_isdisabled","true")}for(b=d.index;b<=e.index;b++)a.h[b].Vh=!0;!0===a.i.Vh&&(tI(a),a.i&&(tI(a),xI(a),zI(a)))}}function CI(a){a.s.oncontextmenu=function(){return!1}}
function xI(a){var b;a:{for(var c=b=a.i.index;0<=c;c--)if(!1===a.h[c].Vh){b=c;break a}for(;b<a.h.length;b++)if(!1===a.h[b].Vh)break a;b=-1}0<=b&&(EI(a,a.h[b]),a.i=a.h[b])}function yI(a){if(a.formatItem){for(var b=0;b<a.h.length;b++)a.h[b].Wg=a.formatItem(a.h[b].value);a=a.na;for(b=a.i;null!=b.next;)pI(b),b=b.next;for(b=a.i;null!=b.g;)pI(b),b=b.g}}
g.setValue=function(a){this.i&&(tI(this),void 0!=this.ca&&this.ca!=this.g.Uc&&(this.ca=rI(this.ca),this.g.Uc=this.ca,uI(this,this.ca),vI(this,this.ca)),this.i=wI(this));(a=DI(this,a))&&this.i&&this.i.value!=a.value?(tI(this),EI(this,a),this.i=a):this.i||(this.i=a,null!=a&&(a=50*-(a.index-1),uI(this,a),vI(this,a),this.g.Uc=a,this.g.$j=this.g.Uc,this.ca=a));zI(this);yI(this);this.ea&&this.ea()};
g.scroll=function(){this.g.Oq=Date.now();var a=this.g.Oq-this.g.ho;if(!(3>a)){var b=this.g.y-this.g.Md,c=b+this.g.Uc;c=sI(this,c);1>=Math.abs(c-this.g.Uc)||(tI(this),this.g.direction=c<this.g.Uc?-1:1,this.g.ho=this.g.Oq,this.g.speed=Math.abs(b/a*1E3),uI(this,c),vI(this,c),this.g.Uc=c,this.g.$j=this.g.Uc,this.g.Md=this.g.y)}};
g.animation=function(){var a=this.g.speed,b=0,c=!0;this.s.style.transition="transform 0.2s ease-out";2<a&&(b=.2*a,-1===this.g.direction&&(b=-b),this.s.style.transition="transform 0.5s ease-out");a=rI(sI(this,this.g.Uc+b));3>Math.abs(a-this.g.Uc)&&(this.s.style.transition="",c=!1);uI(this,a);vI(this,a);this.g.Uc=a;this.g.$j=this.g.Uc;return c};function uI(a,b){a.s.style.transform="translate(0px, "+b+"px)";a.s.style.msTransform="translate(0px, "+b+"px)"}
function sI(a,b){3>a.h.length&&(a=a.h.length-1-1,b=0<b?50<b?50:b:0>b?Math.abs(b)>50*a?-(50*a):b:0);return b}function rI(a){return a=50*Math.round(a/50)}g.setSelectedValue=function(a){null!==a&&this.i.value!=a.value&&(tI(this),EI(this,a),this.i=a,this.onValueChanged(a.value),yI(this),this.ea&&this.ea(),zI(this))};function wI(a){if(3<=a.h.length){a=a.na.i;for(var b=0;1>b;b++)a=a.next;return a.m}var c=1-a.g.Uc/50,d=a.h.length;c=0<c?c%d:(c%d+d)%d;0<=c&&(b=a.h[c]);return b}
function zI(a){a=a.s.querySelectorAll(".gcim-date-time-picker__item[Gc_pickerItem_Value='"+a.i.value+"']");for(var b=0;b<a.length;b++)E(a[b],"gcim-date-time-picker__item__selected"),a[b].setAttribute("gc_pickeritem_isselected","true")}function tI(a){a=a.s.querySelectorAll(".gcim-date-time-picker__item[gc_pickeritem_isselected='true']");for(var b=0;b<a.length;b++)jd(a[b],"gcim-date-time-picker__item__selected"),a[b].removeAttribute("gc_pickeritem_isselected")}
function HI(a,b,c){a=a.s.querySelectorAll(".gcim-date-time-picker__item[Gc_pickerItem_displayValue='"+b+"']");for(b=0;b<a.length;b++)a[b].textContent=c,a[b].setAttribute("Gc_pickerItem_displayValue",c)}g.setItems=function(){this.s.innerHTML="";this.g={wt:50*this.h.length,xt:150,$j:0};if(3<=this.h.length)this.na=new lI(this.s,this.h);else if(3>this.h.length)for(var a=0;a<this.h.length;a++){var b=kI(this.h[a]);b.style.top=50*a+"px";this.s.appendChild(b)}};function II(){var a=document.createElement("div");E(a,".gcim-date-time-picker__clear-left");return a}function JI(a){var b=a.getMonth()+1;return{cc:a.getFullYear(),Wc:b,Dd:a.getDate(),ye:a.getHours(),kg:a.getMinutes(),vj:a.getSeconds()}}function KI(a){var b=document.createElement("div");E(b,"gcim-date-time-picker__column");var c=document.createElement("div");E(c,"gcim-date-time-picker__selected-column-line");b.appendChild(c);a.appendChild(b);return b}
function LI(a,b){var c=document.createElement("div");c.innerText=b;E(c,"gcim-date-time-picker__time-format");a.appendChild(c);return c};function MI(a,b,c){c&&c.yearFormat&&(this.yearFormat=c.yearFormat);c&&c.monthFormat&&(this.monthFormat=c.monthFormat);c&&c.dayFormat&&(this.dayFormat=c.dayFormat);this.s=document.createElement("div");E(this.s,"gcim-date-time-picker__picker");this.u=document.createElement("div");this.u.className="gcim-date-time-picker__overlay gcim_hidden";this.s.appendChild(this.u);c=KI(this.s);LI(this.s,"");var d=KI(this.s);LI(this.s,"");var e=KI(this.s);this.i=new qI(c,{start:a.cc,end:b.cc,interval:1,Ug:"year"});
this.h=new qI(d,{start:1,end:12,interval:1,Ug:"month"});this.g=new qI(e,{start:1,end:31,interval:1,Ug:"day"});this.Dj();this.s.appendChild(II());NI(this);OI(this);PI(this)}MI.prototype.getValue=function(){return{cc:this.i.getSelectedValue(),Wc:this.h.getSelectedValue(),Dd:this.g.getSelectedValue()}};
function PI(a){a.dayFormat&&(a.g.formatItem=function(b){var c=a.h.getSelectedValue(),d=a.i.getSelectedValue();return a.dayFormat(0<=[4,6,9,11].indexOf(c)&&31===b?new Date(d,c,31):2===c&&(QI(d)&&0<=[30,31].indexOf(b)||!QI(d)&&0<=[29,30,31].indexOf(b))?new Date(d,c,b):new Date(d,c-1,b))},a.g.ea=function(){yI(a.i);yI(a.h)})}
function RI(a,b){var c=a.g.getSelectedValue();a=a.i.getSelectedValue();if(0<=[4,6,9,11].indexOf(b)&&31===c)return new Date(a,b-1,30);if(2===b){if(QI(a)&&0<=[30,31].indexOf(c))return new Date(a,b-1,29);if(!QI(a)&&0<=[29,30,31].indexOf(c))return new Date(a,b-1,28)}return new Date(a,b-1,c)}function NI(a){a.yearFormat&&(a.i.formatItem=function(b){var c=a.g.getSelectedValue(),d=a.h.getSelectedValue();return a.yearFormat(2===d?new Date(b,d-1,28):new Date(b,d-1,c))});a.i.ea=function(){yI(a.h);yI(a.g)}}
function OI(a){a.monthFormat&&(a.h.formatItem=function(b){b=RI(a,b);return a.monthFormat(b)});a.h.ea=function(){yI(a.i);yI(a.g)}}MI.prototype.setValue=function(a){this.i.setValue(a.cc);this.h.setValue(a.Wc);this.g.setValue(a.Dd)};MI.prototype.Dj=function(){SI(this);TI(this);UI(this)};function TI(a){a.h.onValueChanged=function(){VI(a);a.onValueChanged()}}function SI(a){a.i.onValueChanged=function(){VI(a);a.onValueChanged()}}function UI(a){a.g.onValueChanged=function(){VI(a);a.onValueChanged()}}
function VI(a){a.g.getSelectedValue();var b=a.h.getSelectedValue();0<=[4,6,9,11].indexOf(b)?GI(a.g,31,31):2===b&&(b=Number(a.i.getSelectedValue()),QI(Number(b))?GI(a.g,30,31):QI(Number(b))||GI(a.g,29,31))}function QI(a){return 0===a%4&&0!=a%100||0===a%400}MI.prototype.setEnabled=function(a){a?E(this.u,"gcim_hidden"):jd(this.u,"gcim_hidden")};function WI(a){null!=a||void 0!=a?(this.fa=null==a.hasSeconds?!0:a.hasSeconds,this.ca=null==a.secondsInterval?1:I(WH,a.secondsInterval)||1,this.u=null==a.minuteInterval?1:I(WH,a.minuteInterval)||1):(this.fa=!0,this.u=this.ca=1);this.h=document.createElement("div");this.h.setAttribute("Midnight24OrZero","0");E(this.h,"gcim-date-time-picker__picker");this.ea=document.createElement("div");this.ea.className="gcim-date-time-picker__overlay gcim_hidden";this.h.appendChild(this.ea);a=KI(this.h);LI(this.h,
":");var b=KI(this.h);this.ga=LI(this.h,":");var c=KI(this.h),d={start:0,end:59,Ug:"minute",interval:this.u},e={start:0,end:59,Ug:"seconds",interval:this.ca};this.s=new qI(a,{start:0,end:23,Ug:"hour",interval:1});this.i=new qI(b,d);this.g=new qI(c,e);this.Dj();this.h.appendChild(II());this.showSeconds(this.fa)}g=WI.prototype;g.getValue=function(){return{ye:this.s.getSelectedValue(),kg:this.i.getSelectedValue(),vj:this.g.getSelectedValue()}};
function XI(a,b,c,d){FI(a.i);b.cc===c.cc&&b.Wc===c.Wc&&b.Dd===c.Dd&&b.ye===c.ye&&GI(a.i,0,c.kg-a.u);b.cc===d.cc&&b.Wc===d.Wc&&b.Dd===d.Dd&&b.ye===d.ye&&GI(a.i,d.kg+a.u,a.i.h[a.i.h.length-1].value)}function YI(a,b,c,d){FI(a.g);b.cc===c.cc&&b.Wc===c.Wc&&b.Dd===c.Dd&&b.ye===c.ye&&b.kg===c.kg&&GI(a.g,0,c.vj-a.ca);b.cc===d.cc&&b.Wc===d.Wc&&b.Dd===d.Dd&&b.ye===d.ye&&b.kg===d.kg&&GI(a.g,d.vj+a.ca,a.g.h[a.g.h.length-1].value)}g.setValue=function(a){this.s.setValue(a.ye);ZI(this,a.kg);$I(this,a.vj)};
g.Dj=function(){aJ(this);bJ(this);cJ(this)};g.showSeconds=function(a){this.fa=a;this.g.setVisible(a);var b=this.ga;a?jd(b,"gcim_hidden"):E(b,"gcim_hidden")};g.Tn=function(){return this.fa};function aJ(a){a.s.onValueChanged=function(){a.onValueChanged()}}function bJ(a){a.i.onValueChanged=function(){a.onValueChanged()}}function cJ(a){a.g.onValueChanged=function(){a.onValueChanged()}}
g.setSecondsInterval=function(a){a=I(WH,a);if(a!=this.ca&&null!==a){this.ca=a;var b=this.g.getSelectedValue();BI(this.g,{start:0,end:59,Ug:"seconds",interval:a});$I(this,b)}};g.Ti=function(){return this.ca};g.setMinuteInterval=function(a){a=I(WH,a);if(a!=this.u&&null!==a){this.u=a;var b=this.i.getSelectedValue();BI(this.i,{start:0,end:59,Ug:"minute",interval:a});ZI(this,b)}};g.Ri=function(){return this.u};function $I(a,b){dJ(a.g.h,b)?a.g.setValue(b):a.g.setValue(eJ(a.g.h,b))}
function dJ(a,b){for(var c=0;c<a.length;c++)if(a[c].value===b)return!0;return!1}function eJ(a,b){for(var c=a.length-1;0<c;c--)if(a[c].value<b)return a[c].value;return a[0].value}function ZI(a,b){dJ(a.i.h,b)?a.i.setValue(b):a.i.setValue(eJ(a.i.h,b))}g.setEnabled=function(a){a?E(this.ea,"gcim_hidden"):jd(this.ea,"gcim_hidden")};function fJ(a,b){this.Sc=this.Ic=!0;xe.g=!0;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();this.ic=a.style.cssText;this.Hd=a.className;this.ce=a.innerHTML;$d(a,this.componentName,this);b?(this.Aj=null==b.type?"datetime":I(VH,b.type)||"datetime",this.Sf=null==b.maxDate?new Date(9999,11,31,23,59,59):new Date(b.maxDate),this.Tf=null==b.minDate?new Date(100,0,1,0,0,0):new Date(b.minDate),this.ub=null==b.selectedValue?new Date:new Date(b.selectedValue)):(this.Aj="datetime",this.Tf=new Date(100,
0,1,0,0,0),this.Sf=new Date(9999,11,31,23,59,59),this.ub=new Date);gJ(this);this.container=document.createElement("div");this.container.setAttribute("displayState","block");E(this.container,"gcim-date-time-picker__outter");E(this.container,"notranslate");this.sg=a;a.appendChild(this.container);this.Eh=new XH(this.container);this.Rg=new MI(this.rg,this.qg,b);this.wd=new WI(b);a=this.Eh;b=this.Rg.s;hI(a,"date");iI(a,"date",b);a=this.Eh;b=this.wd.h;hI(a,"time");iI(a,"time",b);this.Dj();hJ(this);a=document.createElement("div");
E(a,".gcim-date-time-picker__clear");this.Eh.h.appendChild(a);this.Zn();this.setValue(this.ub);this.sp=this.ub;iJ(this);jJ(this)}g=fJ.prototype;g.destroy=function(){ce(this.sg);this.Hf();he(this)};g.getHost=function(){return this.sg};g.setVisible=function(a){(this.Ic=a)?jd(this.sg,"gcim_hidden"):E(this.sg,"gcim_hidden")};g.Yf=function(){return this.Ic};g.addEventListener=function(a,b){a&&(a=this.vf[{selecteddatechanged:"selecteddatechanged"}[a.toLocaleLowerCase()]])&&Un(a,b)};
g.removeEventListener=function(a,b){(a=this.vf[a])&&Vn(a,b)};g.Zn=function(){this.vf={};this.vf.selecteddatechanged=new K(this)};g.Hf=function(){this.Hd?this.sg.className=this.Hd:this.sg.removeAttribute("class");this.ic?this.sg.style.cssText=this.ic:this.sg.removeAttribute("style");this.sg.innerHTML=this.ce};function jJ(a){a.Eh.s=function(b){switch(b){case "time":b=a.getValue();a.setSelectedValue(b);break;case "date":b=a.getValue(),a.setSelectedValue(b)}}}
function iJ(a){a.container.addEventListener("contextmenu",function(b){b.preventDefault()})}function hJ(a){switch(a.Aj){case "date":jI(a.Eh,"date",!1);break;case "time":jI(a.Eh,"time",!1);break;case "datetime":jI(a.Eh,"date",!0)}}g.setMaxDate=function(a){null!=a&&(a=new Date(a),a=jg(a),null!==a&&(a>this.Tf&&this.Sf!=a&&(this.Sf=a),this.ub.valueOf()>this.Sf.valueOf()&&(this.ub=new Date(this.Sf),this.setValue(this.ub)),kJ(this)))};g.Cf=function(){return this.Sf};
g.setMinDate=function(a){var b=new Date(a);null!=a&&(b=jg(b),null!==b&&(b<this.Sf&&this.Tf!=a&&(this.Tf=b),this.ub.valueOf()<this.Tf.valueOf()&&(this.ub=new Date(this.Tf),this.setValue(this.ub)),kJ(this)))};g.Df=function(){return this.Tf};function kJ(a){a.He=JI(a.ub);gJ(a);var b=a.Rg,c=a.He,d=a.rg;a=a.qg;b.i.s.innerHTML="";BI(b.i,{start:d.cc,end:a.cc,interval:1,Ug:"year"});b.i.setValue(c.cc);SI(b)}g.setPickerType=function(a){a=I(VH,a);a!=this.Aj&&null!==a&&(this.Aj=a,hJ(this))};g.cl=function(){return this.Aj};
function lJ(a,b){if(null!=b)return b.valueOf()<a.Tf.valueOf()?b=a.Tf:b.valueOf()>a.Sf.valueOf()&&(b=a.Sf),b}function gJ(a){a.rg=JI(a.Tf);a.qg=JI(a.Sf)}g.showSeconds=function(a){this.wd.showSeconds(a)};g.Tn=function(){return this.wd.Tn()};g.getValue=function(){var a=this.Rg.getValue(),b=this.wd.getValue();return new Date(a.cc,a.Wc-1,a.Dd,b.ye,b.kg,b.vj)};g.setSelectedValue=function(a){null!=a&&(this.ub=lJ(this,a),this.He=JI(this.ub),this.Rg.setValue(this.He),this.wd.setValue(this.He))};
g.setValue=function(a){a=jg(new Date(a));null!==a&&(this.setSelectedValue(a),mJ(this))};g.Dj=function(){nJ(this);oJ(this)};function nJ(a){a.Rg.onValueChanged=function(){mJ(a)}}function oJ(a){a.wd.onValueChanged=function(){mJ(a)}}
function mJ(a){a.ub=a.getValue();var b=lJ(a,a.ub),c=a.ub;b instanceof Date&&c instanceof Date&&b.getFullYear()===c.getFullYear()&&b.getMonth()===c.getMonth()&&b.getDate()===c.getDate()&&b.getHours()===c.getHours()&&b.getMinutes()===c.getMinutes()&&b.getSeconds()===c.getSeconds()||(a.setValue(b),a.He=JI(a.ub));a.He=JI(a.ub);b=a.Rg;c=a.He;var d=a.rg,e=a.qg;FI(b.h);c.cc===d.cc&&GI(b.h,1,d.Wc-1);c.cc===e.cc&&GI(b.h,e.Wc+1,12);VI(b);b=a.Rg;c=a.He;d=a.rg;e=a.qg;FI(b.g);c.cc===d.cc&&c.Wc===d.Wc&&GI(b.g,
1,d.Dd-1);c.cc===e.cc&&c.Wc===e.Wc&&GI(b.g,e.Dd+1,31);VI(b);b=a.wd;c=a.He;d=a.rg;e=a.qg;FI(b.s);c.cc===d.cc&&c.Wc===d.Wc&&c.Dd===d.Dd&&GI(b.s,0,d.ye-1);c.cc===e.cc&&c.Wc===e.Wc&&c.Dd===e.Dd&&GI(b.s,e.ye+1,23);XI(a.wd,a.He,a.rg,a.qg);YI(a.wd,a.He,a.rg,a.qg);a.vf.selecteddatechanged.ha({newValue:a.ub})}
g.showMidnightAs24=function(a){var b=this.wd,c=b.h.getAttribute("Midnight24OrZero");a&&"0"===c?(HI(b.s,"0","24"),b.h.setAttribute("Midnight24OrZero","24"),b.s.h[0].Wg="24"):!1===a&&"24"===c&&(HI(b.s,"24","0"),b.h.setAttribute("Midnight24OrZero","0"),b.s.h[0].Wg="0")};g.setSecondsInterval=function(a){this.wd.setSecondsInterval(a);YI(this.wd,this.He,this.rg,this.qg)};g.Ti=function(){return this.wd.Ti()};g.setMinuteInterval=function(a){this.wd.setMinuteInterval(a);XI(this.wd,this.He,this.rg,this.qg)};
g.Ri=function(){return this.wd.Ri()};g.setEnabled=function(a){this.wd.setEnabled(a);this.Rg.setEnabled(a);this.Sc=a};g.getEnabled=function(){return this.Sc};
p.Object.defineProperties(fJ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()},set:function(a){this.setValue(a)}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Yf()},set:function(a){this.setVisible(a)}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this.Cf()},set:function(a){this.setMaxDate(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this.Df()},set:function(a){this.setMinDate(a)}},pickerType:{configurable:!0,
enumerable:!0,get:function(){return this.cl()},set:function(a){this.setPickerType(a)}},secondsInterval:{configurable:!0,enumerable:!0,get:function(){return this.Ti()},set:function(a){this.setSecondsInterval(a)}},minuteInterval:{configurable:!0,enumerable:!0,get:function(){return this.Ri()},set:function(a){this.setMinuteInterval(a)}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.getEnabled()},set:function(a){this.setEnabled(a)}},isShowSeconds:{configurable:!0,enumerable:!0,get:function(){return this.Tn()},
set:function(a){this.showSeconds(a)}},isShowMidnightAs24:{configurable:!0,enumerable:!0,get:function(){return"0"===this.wd.h.getAttribute("Midnight24OrZero")?!1:!0},set:function(a){this.showMidnightAs24(a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcDateTimePicker"}}});v("GcDateTimePicker",fJ);function pJ(a,b,c){this.Na=b;this.Sc=!0;this.u=null;this.i=a;a=b.getElement();this.g=new fJ(a,c);this.h=document.createElement("div");E(this.h,"gcim-date-time-picker__button--ok");this.h.innerText="OK";this.h.addEventListener("click",this.Ms.bind(this));this.s=document.createElement("div");E(this.s,"gcim-date-time-picker__drop-down-container");this.s.appendChild(this.g.container);this.s.appendChild(this.h);this.Na.setInnerElement(this.s);c&&c.defaultDate&&(this.defaultDate=c.defaultDate)}t(pJ,Pv);
g=pJ.prototype;g.dispose=function(){this.g.destroy();Pv.prototype.dispose.call(this)};g.Ms=function(a){if(this.Sc){var b=this.getValue();this.g.sp=b;this.i.getReadOnly()||(b=this.g.getValue(),this.i.syncValueFromDropDown(b));if(this.ca)try{this.ca(this,a)}catch(c){console.error(c)}this.close()}};g.getValue=function(){return this.g.getValue()};g.setValue=function(a){this.setSelectedDate(a)};
g.toggleOpen=function(a){a=void 0===a?!0:a;this.Na.isOpened()||this.setSelectedDate(this.i.getValue()||this.defaultDate);this.Na.toggleOpen(a);this.ea&&this.ea.call(this)};g.onSelectedDateChanged=function(a){"function"===typeof a&&(this.ca=a)};g.setSelectedDate=function(a){try{a?this.g.setValue(a):this.g.setValue(new Date)}catch(b){}};g.close=function(a){this.Na.close(void 0===a?!0:a)};g.open=function(){this.Na.open()};g.getElement=function(){return this.Na.getElement()};
g.onKeyDown=function(a){switch(a.keyCode){case 27:this.g.setValue(this.g.sp);this.close();break;case 13:a=this.getSelectedDate(),this.i.syncValueFromDropDown(a),this.close()}};g.getSelectedDate=function(){return this.g.getValue()};g.setMaxDate=function(a){this.g.setMaxDate(a)};g.Cf=function(){return this.g.Cf()};g.setMinDate=function(a){this.g.setMinDate(a)};g.Df=function(){return this.g.Df()};g.setPickerType=function(a){this.g.setPickerType(a)};g.cl=function(){return this.g.cl()};
g.setMinuteInterval=function(a){this.g.setMinuteInterval(a)};g.Ri=function(){return this.g.Ri()};g.setSecondsInterval=function(a){this.g.setSecondsInterval(a)};g.Ti=function(){return this.g.Ti()};g.setEnabled=function(a){a!==this.Sc&&(this.Sc=a,this.g.setEnabled(this.Sc),this.Sc?this.h.removeAttribute("disabled"):this.h.setAttribute("disabled","disabled"))};g.getEnabled=function(){return this.Sc};
p.Object.defineProperties(pJ.prototype,{selectedDate:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedDate()},set:function(a){this.setSelectedDate(a)}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this.Cf()},set:function(a){this.setMaxDate(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this.Df()},set:function(a){this.setMinDate(a)}},defaultDate:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){var b;a=kd(a);if(a instanceof
Date||null===a)this.u=a,this.setSelectedDate((null===(b=this.i)||void 0===b?void 0:b.getValue())||this.defaultDate)}},pickerType:{configurable:!0,enumerable:!0,get:function(){return this.cl()},set:function(a){this.setPickerType(a)}},minuteInterval:{configurable:!0,enumerable:!0,get:function(){return this.Ri()},set:function(a){this.setMinuteInterval(a)}},secondsInterval:{configurable:!0,enumerable:!0,get:function(){return this.Ti()},set:function(a){this.setSecondsInterval(a)}},enabled:{configurable:!0,
enumerable:!0,get:function(){return this.getEnabled()},set:function(a){this.setEnabled(a)}}});function qJ(a,b){kq.call(this,a,b);var c=this;this.md=null;this.dropDownType="calendar";this.$=new qH(this.getUIInputElement(),this.getUIInputElement().id,{SpinOnKeys:!0,SpinWheel:!0,Increment:1,Wrap:!0,AllowSpin:!0},this);O(this.$,"ValueChanged",function(){Bq(c,c.getValue())});Or(this.$,function(d){Cq(c,d)});this.tc(b);this.rc.i.setAttribute("inputmode","numeric");this.dropDownType||(this.dropDownType="picker");HH(this.$,function(d){return d.altKey&&38===d.keyCode&&c.md?(c.md.close(),!0):d.altKey&&
40===d.keyCode&&c.md?(c.md.open(),!0):rJ(c)?(c.md.onKeyDown(d),!0):!1});IH(this.$,function(){rJ(c)&&sJ(c)});sF(this.$,function(){return rJ(c)?(c.md.close(),!0):!1});this.initComplete=!0}t(qJ,kq);g=qJ.prototype;
g.tc=function(a){kq.prototype.tc.call(this,a);if(!F(a)&&(G(a.displayEmptyWhenValueIsNull)||(this.displayEmptyWhenValueIsNull=a.displayEmptyWhenValueIsNull),G(a.clipContent)||this.setClipContent(a.clipContent),G(a.maxDate)||this.setMaxDate(a.maxDate),G(a.minDate)||this.setMinDate(a.minDate),G(a.maxMinBehavior)||this.setMaxMinBehavior(a.maxMinBehavior),G(a.formatPattern)||this.setFormatPattern(a.formatPattern),G(a.spinIncrement)||this.setSpinIncrement(a.spinIncrement),G(a.spinOnKeys)||this.setSpinOnKeys(a.spinOnKeys),
G(a.spinWheel)||this.setSpinWheel(a.spinWheel),G(a.spinWrap)||this.setSpinWrap(a.spinWrap),G(a.allowSpin)||this.setAllowSpin(a.allowSpin),G(a.displayFormatPattern)||this.setDisplayFormatPattern(a.displayFormatPattern),G(a.autoConvert)||(this.autoConvert=a.autoConvert),void 0!==a.value&&this.setValue(a.value),G(a.watermarkEmptyEraText)||this.setWatermarkEmptyEraText(a.watermarkEmptyEraText),G(a.promptChar)||this.setPromptChar(a.promptChar),G(a.AMDesignator)||this.setAMDesignator(a.AMDesignator),G(a.PMDesignator)||
this.setPMDesignator(a.PMDesignator),G(a.twoDigitYearMax)||this.setTwoDigitYearMax(a.twoDigitYearMax),G(a.hour12Mode)||this.setHour12Mode(a.hour12Mode),G(a.tabAction)||this.setTabAction(a.tabAction),G(a.midnightAs24)||this.setMidnightAs24(a.midnightAs24),G(a.showLiterals)||this.setShowLiterals(a.showLiterals),G(a.adjustValueOnFocus)||this.setAdjustValueOnFocus(a.adjustValueOnFocus),G(a.text)||this.setText(a.text),G(a.useTwoDigitYearMax)||this.setUseTwoDigitYearMax(a.useTwoDigitYearMax),G(a.validateMode)||
this.setValidateMode(a.validateMode),G(a.watermarkDisplayEmptyEraText)||this.setWatermarkDisplayEmptyEraText(a.watermarkDisplayEmptyEraText),!0===a.showSpinButton&&this.addSpinButton(a.spinButtonPosition?I(Na,a.spinButtonPosition)||"rightside":"rightside"),G(a.exitOnLastChar)||this.setExitOnLastChar(a.exitOnLastChar),G(a.highlightText)||this.setHighlightText(a.highlightText),!0===a.showDropDownButton)){if(!F(a.dropDownConfig)){var b=a.dropDownConfig.dropDownType,c=a.dropDownConfig;c&&(delete c.visible,
delete c.enabled,delete c.focusDate,delete c.selectedDate,delete c.maxSelectionCount,delete c.selectionMode,delete c.weekTitleSelect,delete c.weekNumberSelect)}this.addDropDown(a.dropDownButtonAlignment?I(Ja,a.dropDownButtonAlignment)||"rightside":"rightside",b?I(Xr,b)||"picker":"picker",a.dropDownConfig)}};g.getUseClipboard=function(){return this.$.Fd()};g.getSelectionStart=function(){return gF(this.$)};g.setAcceptsCrlf=function(a){kF(this.$,a)};g.Xf=function(){return this.$.Ue()};
g.setClipContent=function(a){mF(this.$,a)};g.Lj=function(){return this.$.na};g.setUseClipboard=function(a){lF(this.$,a)};g.getIsOverwrite=function(){return fF(this.$)};g.getSelectionLength=function(){return hF(this.$)};g.setMaxDate=function(a){a=kd(a);var b=this.$;a=jg(a,b.oc,new Date(9999,11,31,23,59,59));null!==a&&(a.setMilliseconds(0),b.hc!==a&&(b.hc=new Date(a.valueOf()),b.Ja&&b.Ja>b.hc&&(b.Ja=new Date(b.hc.valueOf()),sH(b)),b.g.maxDate=b.hc,xH(b),BH(b),b.Ia(vH(b))))};g.Cf=function(){return this.$.hc};
g.setMinDate=function(a){a=kd(a);var b=this.$;a=jg(a,new Date(100,0,1),b.hc);null!==a&&(a.setMilliseconds(0),b.oc!==a&&(b.oc=new Date(a.valueOf()),b.Ja&&b.Ja<b.oc&&(b.Ja=new Date(b.oc.valueOf()),sH(b)),b.g.minDate=b.oc,xH(b),BH(b),b.Ia(vH(b))))};g.Df=function(){return this.$.oc};g.setValue=function(a,b,c){this.autoConvert&&"string"===typeof a&&(a=Vp(a));a=kd(a);this.$.ra(a,b,c)};g.getValue=function(){return this.$.qa()};
g.setNumber=function(a){a=ld(a);a:{var b=this.$,c=a;if(c!=c)window.status="Sorry, you have set an invalid Number value!";else{var d=c.toString();if(!(0>c||rh(b.qa())==c)){a=null;if(0!=c){d.ba()<"yyyyMMddHHmmss".ba()&&(d=Zf(c,"yyyyMMddHHmmss".ba()-d.ba(),"0"));NH&&b instanceof NH&&(d="19000101"+d.substr(8,6));c=Number(C(d,0,4));var e=Number(C(d,4,6)),f=Number(C(d,6,8)),h=Number(C(d,8,10)),k=Number(C(d,10,12));d=Number(C(d,12,14));try{if(100>c){console.warn("Invalid year value");break a}a=new Date(c,
e-1,f,h,k,d)}catch(l){break a}}(a>b.hc||a<b.oc)&&"keep"!=b.fd||b.ra(a,!1)}}}};g.setFormatPattern=function(a){var b=this.$;b.l.Ee!==a&&(b.l.Ee=a,xH(b),MH(b,!0),b.Ia(vH(b)))};g.In=function(){return this.$.l.Ee};g.setSpinIncrement=function(a){a=Number(a);this.$.h.Increment=a};g.setSpinOnKeys=function(a){this.$.h.SpinOnKeys=a};g.Pj=function(){return this.$.h.SpinOnKeys};g.setSpinWheel=function(a){this.$.h.SpinWheel=a};g.Qh=function(){return this.$.h.SpinWheel};
g.setSpinWrap=function(a){this.$.h.Wrap=a};g.Un=function(){return this.$.h.Wrap};g.setAllowSpin=function(a){this.$.h.AllowSpin=a};g.Ni=function(){return this.$.h.AllowSpin};g.Xg=function(){return this.$.allowSpin(2)};g.setDisplayFormatPattern=function(a){var b=this.$;b.oa.Ee!==a&&(b.oa.Ee=a,BH(b),MH(b,!1),b.Ia(vH(b)))};
g.setWatermarkEmptyEraText=function(a){var b=this.$;a=lg(a);if(a!==b.eb().i){b.eb();b.eb().i=a;b.l.hj=a;b.l.Pc="";b.l.td="";if(""!==a){var c=EH(a);b.l.Pc=""==c.xg?c.format:"";b.l.td=c.xg}b.eb().s=KH(b,!0,a,b.l.Pc,b.l.td);M(b)}};g.setDisplayWatermarkEmptyEraText=function(a){LH(this.$,a)};g.setWatermarkNullText=function(a){Mr(this.$,a)};g.kf=function(){return this.$.eb().h};g.setWatermarkDisplayNullText=function(a){Nr(this.$,a)};g.jf=function(){return this.$.xb().h};
g.setPromptChar=function(a){var b=this.$;null!==ng(a)&&(b.tb=a,b.g.tb=b.tb,IF(b.l.j,b.tb),IF(b.oa.j,b.tb),b.Ia(vH(b)))};g.Qn=function(){return this.$.tb};g.setEditMode=function(a){nF(this.$,a)};g.ef=function(){return this.$.bb};g.setAMDesignator=function(a){var b=this.$;b.AMDesignator!==a&&(b.AMDesignator=a,jG(b.l.j,zH(b),AH(b)),jG(b.oa.j,zH(b),AH(b)),b.Ia(vH(b)))};g.setPMDesignator=function(a){var b=this.$;b.PMDesignator!==a&&(b.PMDesignator=a,jG(b.l.j,zH(b),AH(b)),jG(b.oa.j,zH(b),AH(b)),b.Ia(vH(b)))};
g.setTwoDigitYearMax=function(a){a=Number(a);var b=this.$;null!==kg(a,199,9999)&&b.af!==a&&(b.af=a,xH(b),BH(b),b.Ia(vH(b)))};g.setHour12Mode=function(a){var b=this.$;a=I(Wr,a);b.hg!==a&&null!==a&&(b.hg=a,xH(b),BH(b),b.Ia(vH(b)))};g.setCursorPosition=function(a){var b=this.$;b.If!==a&&(b.If=a,a=b.g.xj(b.Ta,tH(b),b.If,b.o),null!=a&&(b.o=a.o,b.v=a.v))};g.Cn=function(){return this.$.nk()};g.setTabAction=function(a){var b=this.$;a=I(Da,a);b.$e.toLowerCase()!==a.toLowerCase()&&null!==a&&(b.$e=a.toLowerCase())};
g.Vn=function(){return this.$.$e};g.setMaxMinBehavior=function(a){var b=this.$;a=I(Ca,a);b.fd.toLowerCase()!==a.toLowerCase()&&null!==a&&(b.fd=a.toLowerCase(),b.g.fd=b.fd)};g.On=function(){return this.$.fd};g.setHighlightText=function(a){this.$.kj(a)};g.gf=function(){return this.$.Od()};g.setMidnightAs24=function(a){var b=this.$;a=H(a);b.jg!==a&&(b.jg=a,xH(b),BH(b),b.Ia(vH(b)))};g.setExitOnLastChar=function(a){a=H(a);this.$.Re=a};g.Oh=function(){return this.$.Re};
g.setExitOnLeftRightKey=function(a){Ir(this.$,a)};g.ff=function(){return this.$.Cc};g.setShowLiterals=function(a){var b=this.$;a=I(Ba,a);b.yc!==a&&null!==a&&(b.yc=a,b.g.yc=b.yc)};g.Sn=function(){return this.$.Qb()};g.setAdjustValueOnFocus=function(a){var b=this.$;a=H(a);b.cd!==a&&(b.cd=a,b.g.cd=b.cd)};g.An=function(){return this.$.cd};g.setText=function(a){this.$.Rd(a)};g.setUseTwoDigitYearMax=function(a){var b=this.$;a=H(a);b.cb=a;xH(b);BH(b)};
g.setValidateMode=function(a){var b=this.$;a=I(Ur,a);b.Of!==a&&null!==a&&(b.Of=a,xH(b),BH(b),b.Ia(vH(b)))};g.setSelectedText=function(a){var b=this.$,c=Math.min(b.o,b.v),d=Math.max(b.o,b.v);b.ze()?(a=C(b.Text,0,c)+a+C(b.Text,d,b.Text.ba()),b.Rd(a)):fr(b)||(a=b.g.pc(b.o,b.v,a,b.Re,!0),null==a||null!=a.Text&&!b.hb(a)||(null!=a.o&&(b.o=a.o),null!=a.v&&(b.v=a.v),b.Ia(vH(b)),null!=a.pa&&N(b.host,a.pa.gb,a.pa.ib)))};g.setSelectionLength=function(a){iF(this.$,a)};g.setSelectionStart=function(a){this.$.wh(a)};
g.setWatermarkDisplayEmptyEraText=function(a){LH(this.$,a)};g.clear=function(){this.$.fb()};g.sn=function(){this.$.ca?this.Zg():this.clear()};g.doSpinDown=function(a,b){this.$.fj(a,b);sJ(this)};g.doSpinUp=function(a,b){this.$.gj(a,b);sJ(this)};g.selectAll=function(){this.$.Yc()};g.deselectAll=function(){Kr(this.$)};g.getText=function(){return this.$.ia()};g.getNumber=function(){return rh(this.$.qa())};
g.getSelectedText=function(){a:{var a=this.$;var b="",c=Math.min(a.o,a.v),d=Math.max(a.o,a.v),e=d-c;if(0!=e)if(b=Kq(a,!0),b.Db)b=b.og;else{a="includeliterals"==a.na||a.ze()?C(a.Text,c,d):a.l.j.vh(c,e);break a}a=b}return a};g.getCurrentField=function(){return this.$.we()};g.getDisplayText=function(){var a=this.$,b=a.g;a=a.qa();return 0==b.oa.j.g?pH(b,a):null==a?b.oa.j.Fc(b.tb):!jh(a)&&QF(b.oa.j)?b.oa.j.Fc(b.tb):OG(b.oa.j,a)};
g.addSpinButton=function(a){var b=this;return kq.prototype.Jk.call(this,function(){return b.Zi()},function(){return b.Yi()},"leftside"===a)};g.onEditStatusChanged=function(a){O(this.$,"EditStatusChanged",a)};g.removeEditStatusChanged=function(a){P(this.$,"EditStatusChanged",a)};g.onInvalidInput=function(a){O(this.$,"InvalidInput",a)};g.removeInvalidInput=function(a){P(this.$,"InvalidInput",a)};g.onInvalidRange=function(a){O(this.$,"InvalidRange",a)};
g.removeInvalidRange=function(a){P(this.$,"InvalidRange",a)};g.onInvalidValue=function(a){O(this.$,"InvalidValue",a)};g.removeInvalidValue=function(a){P(this.$,"InvalidValue",a)};g.onKeyExit=function(a){O(this.$,"KeyExit",a)};g.removeKeyExit=function(a){P(this.$,"KeyExit",a)};g.onNumberChanged=function(a){O(this.$,"NumberChanged",a)};g.removeNumberChanged=function(a){P(this.$,"NumberChanged",a)};g.onSpinDown=function(a){O(this.$,"SpinDown",a)};g.removeSpinDown=function(a){P(this.$,"SpinDown",a)};
g.onSpinUp=function(a){O(this.$,"SpinUp",a)};g.removeSpinUp=function(a){P(this.$,"SpinUp",a)};g.onTextChanged=function(a){O(this.$,"TextChanged",a)};g.removeTextChanged=function(a){P(this.$,"TextChanged",a)};g.onInput=function(a){O(this.$,"Input",a)};g.removeInput=function(a){P(this.$,"Input",a)};g.onValueChanged=function(a){O(this.$,"ValueChanged",a)};g.removeValueChanged=function(a){P(this.$,"ValueChanged",a)};g.onKeyDown=function(a){O(this.$,"keydown",a)};
g.removeKeyDown=function(a){P(this.$,"keydown",a)};g.onKeyUp=function(a){O(this.$,"keyup",a)};g.removeKeyUp=function(a){P(this.$,"keyup",a)};g.onFocusOut=function(a){O(this.$,"focusout",a)};g.removeFocusOut=function(a){P(this.$,"focusout",a)};g.setExitOnEnterKey=function(a){this.$.setExitOnEnterKey(a)};g.yd=function(){return this.$.yd()};g.Zi=function(){this.Xg()&&(this.$.Ob("up"),dr(Mq.instance),Er(this.$.ta)&&Fr(this.$.ta))};
g.Yi=function(){this.Xg()&&(this.$.Ob("down"),dr(Mq.instance),Er(this.$.ta)&&Fr(this.$.ta))};g.isPassOutOfRangeRule=function(){var a=this.getValue();if(!F(a))return a>=this.$.oc&&a<=this.$.hc};g.Ml=function(){var a=!0;if(this.getReadOnly()||!this.getEnabled()||!this.tg)return!1;this.$.l&&this.$.l.j&&(a=null!==this.$.l.j.qa());return F(this.getValue())&&!a?!1:!0};
g.gi=function(){var a=kq.prototype.gi.call(this),b=!0;this.$.l&&this.$.l.j&&(b=null!==this.$.l.j.qa());F(this.getValue())&&!b&&(b=!1);return a&&b};g.Zg=function(){GH(this.$)};g.Tc=function(){return this.$};
g.addDropDown=function(a,b,c){if(this.md)return this.md;this.Na=new Do(this,{inputEl:this.getOriginalInputElement()});b&&(this.dropDownType=b);b=ed();switch(this.dropDownType){case "calendar":this.md=new PH(this,this.Na,c);this.Me[b]=this.md;this.addDropDownButton("dropdown_calender",b,null,null,a,"gcim__side-button_drop-down-calendar");this.initComplete&&QH(this.md);break;case "picker":this.md=new pJ(this,this.Na,c),this.Me[b]=this.md,this.addDropDownButton("dropdown_picker",b,null,null,a,"gcim__side-button_drop-down-calendar")}return this.md};
g.addCalendarDropdown=function(a){this.addDropDown(a,"calendar");return this.md};g.addDropDownCalendar=function(a){this.addCalendarDropdown(a)};g.getDropDownCalendar=function(){return this.md};g.Nh=function(){var a=kq.prototype.Nh.call(this);"calendar"===this.dropDownType?a.push("dropdown_calender"):a.push("dropdown_picker");return a};g.Wj=function(a){a=this.$.g.le(this.$.v,a).o;return void 0!==a?(this.setSelectionStart(a),qg(this.$,a,a),a):-1};
g.syncValueFromDropDown=function(a){switch(this.dropDownType){case "calendar":var b=this.getValue(),c=this.md;if("yearmonth"===c.g.Bf())c=(c=this.getValue())?c.getDate():1,a=zh(a.getFullYear(),a.getMonth()+1,c);else if("smallscaleyear"===c.g.Bf()||"largescaleyear"===c.g.Bf()){var d=(c=this.getValue())?c.getMonth():0;a=zh(a.getFullYear(),d+1,c?c.getDate():1)}b?(a.setMinutes(b.getMinutes()),a.setHours(b.getHours()),a.setSeconds(b.getSeconds()),a.setMilliseconds(b.getMilliseconds())):(a.setMinutes(0),
a.setHours(0),a.setSeconds(0),a.setMilliseconds(0));this.setValue(a,!1,!0);Yp(this.$);break;case "picker":this.setValue(a,!1,!0),Yp(this.$)}};g.getMatchValue=function(){var a;return null===(a=this.getValue())||void 0===a?void 0:a.getTime()};function sJ(a){rJ(a)&&a.md.close()}function rJ(a){return(a=a.md)&&a.isOpened()}g.bh=function(){return"calendar"===this.dropDownType&&!!this.dropDownCalendar};g.pe=function(){return this.bh()?this.dropDownCalendar.pe():kq.prototype.pe.call(this)};
p.Object.defineProperties(qJ.prototype,{selectionStart:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionStart()},set:function(a){this.setSelectionStart(a)}},isOverwrite:{configurable:!0,enumerable:!0,get:function(){return this.getIsOverwrite()}},selectionLength:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionLength()},set:function(a){this.setSelectionLength(a)}},value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()},set:function(a){this.setValue(a)}},
number:{configurable:!0,enumerable:!0,get:function(){return this.getNumber()},set:function(a){this.setNumber(a)}},text:{configurable:!0,enumerable:!0,get:function(){return this.getText()},set:function(a){this.setText(a)}},selectedText:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedText()},set:function(a){this.setSelectedText(a)}},currentField:{configurable:!0,enumerable:!0,get:function(){return this.getCurrentField()}},displayText:{configurable:!0,enumerable:!0,get:function(){return this.getDisplayText()}},
acceptsCrlf:{configurable:!0,enumerable:!0,get:function(){return this.Xf()},set:function(a){this.setAcceptsCrlf(a)}},clipContent:{configurable:!0,enumerable:!0,get:function(){return this.Lj()},set:function(a){this.setClipContent(a)}},useClipboard:{configurable:!0,enumerable:!0,get:function(){return this.getUseClipboard()},set:function(a){this.setUseClipboard(a)}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this.Cf()},set:function(a){this.setMaxDate(a)}},minDate:{configurable:!0,enumerable:!0,
get:function(){return this.Df()},set:function(a){this.setMinDate(a)}},formatPattern:{configurable:!0,enumerable:!0,get:function(){return this.In()},set:function(a){this.setFormatPattern(a)}},spinIncrement:{configurable:!0,enumerable:!0,get:function(){return this.$.h.Increment},set:function(a){this.setSpinIncrement(a)}},spinOnKeys:{configurable:!0,enumerable:!0,get:function(){return this.Pj()},set:function(a){this.setSpinOnKeys(a)}},spinWheel:{configurable:!0,enumerable:!0,get:function(){return this.Qh()},
set:function(a){this.setSpinWheel(a)}},spinWrap:{configurable:!0,enumerable:!0,get:function(){return this.Un()},set:function(a){this.setSpinWrap(a)}},allowSpin:{configurable:!0,enumerable:!0,get:function(){return this.Ni()},set:function(a){this.setAllowSpin(a)}},displayFormatPattern:{configurable:!0,enumerable:!0,get:function(){return this.$.oa.Ee},set:function(a){this.setDisplayFormatPattern(a)}},watermarkEmptyEraText:{configurable:!0,enumerable:!0,get:function(){return this.$.eb().i},set:function(a){this.setWatermarkEmptyEraText(a)}},
displayWatermarkEmptyEraText:{configurable:!0,enumerable:!0,get:function(){return this.$.xb().i},set:function(a){this.setDisplayWatermarkEmptyEraText(a)}},watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.kf()},set:function(a){this.setWatermarkNullText(a)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.jf()},set:function(a){this.setWatermarkDisplayNullText(a)}},promptChar:{configurable:!0,enumerable:!0,get:function(){return this.Qn()},
set:function(a){this.setPromptChar(a)}},editMode:{configurable:!0,enumerable:!0,get:function(){return this.ef()},set:function(a){this.setEditMode(a)}},AMDesignator:{configurable:!0,enumerable:!0,get:function(){return this.$.AMDesignator},set:function(a){this.setAMDesignator(a)}},PMDesignator:{configurable:!0,enumerable:!0,get:function(){return this.$.PMDesignator},set:function(a){this.setPMDesignator(a)}},twoDigitYearMax:{configurable:!0,enumerable:!0,get:function(){return this.$.af},set:function(a){this.setTwoDigitYearMax(a)}},
hour12Mode:{configurable:!0,enumerable:!0,get:function(){return this.$.hg},set:function(a){this.setHour12Mode(a)}},cursorPosition:{configurable:!0,enumerable:!0,get:function(){return this.Cn()},set:function(a){this.setCursorPosition(a)}},tabAction:{configurable:!0,enumerable:!0,get:function(){return this.Vn()},set:function(a){this.setTabAction(a)}},maxMinBehavior:{configurable:!0,enumerable:!0,get:function(){return this.On()},set:function(a){this.setMaxMinBehavior(a)}},highlightText:{configurable:!0,
enumerable:!0,get:function(){return this.gf()},set:function(a){this.setHighlightText(a)}},midnightAs24:{configurable:!0,enumerable:!0,get:function(){return this.$.jg},set:function(a){this.setMidnightAs24(a)}},exitOnLastChar:{configurable:!0,enumerable:!0,get:function(){return this.Oh()},set:function(a){this.setExitOnLastChar(a)}},exitOnLeftRightKey:{configurable:!0,enumerable:!0,get:function(){return this.ff()},set:function(a){this.setExitOnLeftRightKey(a)}},showLiterals:{configurable:!0,enumerable:!0,
get:function(){return this.Sn()},set:function(a){this.setShowLiterals(a)}},adjustValueOnFocus:{configurable:!0,enumerable:!0,get:function(){return this.An()},set:function(a){this.setAdjustValueOnFocus(a)}},useTwoDigitYearMax:{configurable:!0,enumerable:!0,get:function(){return this.$.cb},set:function(a){this.setUseTwoDigitYearMax(a)}},validateMode:{configurable:!0,enumerable:!0,get:function(){return this.$.Of},set:function(a){this.setValidateMode(a)}},watermarkDisplayEmptyEraText:{configurable:!0,
enumerable:!0,get:function(){return this.$.xb().i},set:function(a){this.setWatermarkDisplayEmptyEraText(a)}},exitOnEnterKey:{configurable:!0,enumerable:!0,get:function(){return this.yd()},set:function(a){this.setExitOnEnterKey(a)}},displayEmptyWhenValueIsNull:{configurable:!0,enumerable:!0,get:function(){return this.$.Dc},set:function(a){this.$.Dc=a}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcDateTime"}},spinButton:{configurable:!0,enumerable:!0,set:function(a){this.addSpinButton(a)}},
autoConvert:{configurable:!0,enumerable:!0,get:function(){return this.$.Xa},set:function(a){var b=this.$;if(b.Xa!==a)for(b.Xa=a,a=b.l.j,a.ta=b.Xa,b=0;b<a.g;b++){var c=a.ma(b);(c instanceof wF||c instanceof BF)&&c.Yo(a.ta)}}},showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.$.showContextMenu=a}},dropDownCalendar:{configurable:!0,enumerable:!0,get:function(){return this.getDropDownCalendar()}}});v("GcDateTime",qJ);var tJ={LocalStorage:"localstorage",SessionStorage:"sessionstorage"};v("StorageMode",tJ);var uJ={SaveOnRefresh:"saveonrefresh",SaveOnSubmit:"saveonsubmit"};v("SaveMode",uJ);var vJ=["INPUT","SELECT","TEXTAREA"],wJ=["button","password","reset","submit","file"];function xJ(a,b){this.g={storageMode:"localstorage",saveMode:"saveonrefresh"};this.m={};this.u=function(){return!1};this.h=this.ys.bind(this);this.ca=this.zs.bind(this);this.tc(b);this.s=a}g=xJ.prototype;g.destroy=function(){this.unPersist();he(this)};g.tc=function(a){F(a)||(G(a.id)||(this.id=a.id),G(a.storageMode)||(this.storageMode=a.storageMode),G(a.saveMode)||(this.saveMode=a.saveMode))};
g.zs=function(){"saveonrefresh"==this.saveMode?(window.removeEventListener(yJ(),this.h),this.clearStorage()):mb()&&(window.removeEventListener(yJ(),this.h),this.h())};function yJ(){return mb()?"unload":"beforeunload"}function zJ(a){-1==AJ.indexOf(a)&&AJ.push(a)}g.persist=function(){var a=BJ(this);null!==a&&(a=this.i.getItem(a))&&(this.m=JSON.parse(a),CJ(this,this.s,!1));window.addEventListener(yJ(),this.h);window.addEventListener("submit",this.ca)};
g.unPersist=function(){this.clearStorage();window.removeEventListener(yJ(),this.h);window.removeEventListener("submit",this.ca)};g.getValue=function(a){return this.m[a]};g.setValue=function(a,b){this.m[a]=b};g.clearStorage=function(){var a=BJ(this);null!==a&&(this.i.removeItem(a),this.m={})};g.skip=function(a){this.u=a};function BJ(a){a=F(a.id)?"imjs#".concat(a.s.id):"imjs#".concat(a.id);return"imjs#"===a?(console.warn("Form id is required"),null):a}
g.ys=function(){this.m={};CJ(this,this.s,!0);var a=BJ(this);null!==a&&this.i.setItem(a,JSON.stringify(this.m))};
function CJ(a,b,c){c=void 0===c?!0:c;var d;if(d=!a.u.call(a,b)){a:{for(var e in AJ)if(AJ[e].skip(b)){d=!0;break a}d=!1}d=!d}if(d){a:{for(f in AJ)if(d=AJ[f],e=d.checker(b),!F(e)){var f={vb:d,name:e};break a}f=null}if(f)b={formPersistence:a,element:b,name:f.name},c?f.vb.save(b):f.vb.restore(b);else if(-1!=vJ.indexOf(b.tagName.toUpperCase()))if(c){if(DJ(b))if(c=b.tagName.toUpperCase(),"INPUT"===c)c=b.type,"radio"===c?b.checked&&EJ(a,b,b.value):"checkbox"===c?EJ(a,b,b.checked):"image"===c?EJ(a,b,b.src):
EJ(a,b,b.value);else if("TEXTAREA"===c)EJ(a,b,b.value);else if("SELECT"===c)if(b.multiple){c=[];f=fa(b.options);for(d=f.next();!d.done;d=f.next())d=d.value,d.selected&&c.push(d.value);0<c.length&&EJ(a,b,c)}else EJ(a,b,b.value)}else{if(DJ(b)&&(c=b.tagName.toUpperCase(),f=b.name||b.id,!F(f)&&(a=a.m[f],void 0!==a)))if("INPUT"===c)c=b.type,"radio"===c?b.checked=b.value===a:"checkbox"===c?b.checked=a:"image"===c?b.src=a:b.value=a;else if("TEXTAREA"===c)b.value=a;else if("SELECT"===c)if(b.multiple)for(b=
fa(b.options),c=b.next();!c.done;c=b.next())c=c.value,c.selected=-1!=a.indexOf(c.value);else b.value=a}else for(f=0;f<b.children.length;f++)CJ(a,b.children[f],c)}}function DJ(a){var b=a.tagName.toUpperCase();return-1===vJ.indexOf(b)||"INPUT"===b&&-1!=wJ.indexOf(a.type)?!1:!0}function EJ(a,b,c){b=b.name||b.id;F(b)||(b in a.m?console.error("Duplicated key exists in document: "+b):a.m[b]=c)}
p.Object.defineProperties(xJ.prototype,{id:{configurable:!0,enumerable:!0,get:function(){return this.g.id},set:function(a){this.g.id=a}},storageMode:{configurable:!0,enumerable:!0,get:function(){return this.g.storageMode},set:function(a){a=I(tJ,a);this.g.storageMode!==a&&null!==a&&(this.g.storageMode=a)}},saveMode:{configurable:!0,enumerable:!0,get:function(){return this.g.saveMode},set:function(a){a=I(uJ,a);this.g.saveMode!==a&&null!==a&&(this.g.saveMode=a)}},componentName:{configurable:!0,enumerable:!0,
get:function(){return"GcFormPersistence"}},i:{configurable:!0,enumerable:!0,get:function(){return"localstorage"==this.storageMode?window.localStorage:window.sessionStorage}}});var AJ=[];v("GcFormPersistence",xJ);v("GcFormPersistence.registerEditor",zJ);function FJ(){}function GJ(a,b){var c=b["IMJS-CTRL"];if(c)return{instance:c,element:b};for(c=0;c<b.children.length;c++){var d=GJ(a,b.children[c]);if(d)return d}}FJ.prototype.skip=function(a){return a.hasAttribute("ctrl-type")&&cd(a.getAttribute("ctrl-type"))&&("GcFunctionKey"===a.getAttribute("ctrl-type")||"GcTextBox"===a.getAttribute("ctrl-type")&&GJ(this,a).instance.getPasswordMode())?!0:!1};
FJ.prototype.checker=function(a){a.hasAttribute("ctrl-type")&&cd(a.getAttribute("ctrl-type"))?a=(a=GJ(this,a))?a.element.getAttribute("name")||a.element.id:null:a=null;return a};
FJ.prototype.save=function(a){var b=GJ(this,a.element);if(b){b=b.instance;var c=null;if(null!=b)switch(a.element.getAttribute("ctrl-type")){case "GcCalendar":c={selections:b.selections,selectedDate:b.selectedDate,focusDate:b.focusDate};break;case "GcComboBox":c={text:b.getDisplayText(),selectedIndex:b.selectedIndex,checkedIndices:b.checkedIndices};break;case "GcTextBox":case "GcMultiLineTextBox":c=b.getText();break;case "GcListBox":c={selectedIndex:b.selectedIndex,selectedIndices:b.selectedIndices,
checkedIndices:b.checkedIndices};break;case "GcTagBox":c=b.value;break;default:c=b.value}}a.formPersistence.setValue(a.name,c)};
FJ.prototype.restore=function(a){var b=GJ(this,a.element);if(b){var c=a.formPersistence.getValue(a.name);b=b.instance;if(null!=b)switch(a.element.getAttribute("ctrl-type")){case "GcCalendar":if(c&&(null!=c.focusDate&&(b.focusDate=new Date(c.focusDate)),null!=c.selectedDate&&(b.selectedDate=new Date(c.selectedDate)),c.selections&&0<c.selections.length)){var d=[];c.selections.forEach(function(e){d.push(new Date(e))});b.selections=d}break;case "GcComboBox":c&&(c.selectedIndex&&(b.selectedIndex=c.selectedIndex),
c.checkedIndices&&0<c.checkedIndices.length&&(b.checkedIndices=c.checkedIndices),b.getDisplayText()!=c.text&&b.setText(c.text));break;case "GcTextBox":case "GcMultiLineTextBox":b.setText(c);break;case "GcListBox":c&&(c.selectedIndex&&(b.selectedIndex=c.selectedIndex),c.checkedIndices&&0<c.checkedIndices.length&&(b.checkedIndices=c.checkedIndices),c.selectedIndices&&0<c.selectedIndices.length&&(b.selectedIndices=c.selectedIndices));break;case "GcTagBox":b.value=null!==c&&void 0!==c?c:[];break;default:b.value=
c}}};zJ(new FJ);var HJ={None:0,PageUp:1,PageDown:2,Home:4,End:8,F1:16,F2:32,F3:64,F4:128,F5:256,F6:512,F7:1024,F8:2048,F9:4096,F10:8192,F11:16384,F12:32768,Shift:65536,Ctrl:131072,Alt:262144};HJ[HJ.None]="None";HJ[HJ.PageUp]="PageUp";HJ[HJ.PageDown]="PageDown";HJ[HJ.Home]="Home";HJ[HJ.End]="End";HJ[HJ.F1]="F1";HJ[HJ.F2]="F2";HJ[HJ.F3]="F3";HJ[HJ.F4]="F4";HJ[HJ.F5]="F5";HJ[HJ.F6]="F6";HJ[HJ.F7]="F7";HJ[HJ.F8]="F8";HJ[HJ.F9]="F9";HJ[HJ.F10]="F10";HJ[HJ.F11]="F11";HJ[HJ.F12]="F12";HJ[HJ.Shift]="Shift";HJ[HJ.Ctrl]="Ctrl";
HJ[HJ.Alt]="Alt";v("FunctionKey",HJ);var IJ={Always:"always",Dynamic:"dynamic"};v("CombinationKeyDisplayMode",IJ);var JJ={None:"none",Text:"text",Image:"image",ImageAndText:"imageandtext"};v("DisplayStyle",JJ);var KJ={Top:"top",Bottom:"bottom",Left:"left",Right:"right"};v("ImagePosition",KJ);function LJ(a,b){var c=this;this.la=!1;this.ca=this.ga=!0;this.ea="dynamic";this.Sc=this.Ic=!0;this.s=[];this.g=[];this.u=!1;this.h=!0;this.ka=function(e){e.preventDefault();window.removeEventListener("help",c.ka)};xe.g=!0;var d=be(a);d&&"function"===typeof d.destroy&&d.destroy();this.ua=a;this.ic=a.style.cssText;this.Hd=a.className;this.ce=a.innerHTML;$d(this.ua,this.componentName,this);MJ(this,b);this.createElement();this.fa=[{target:document,type:"keydown",$f:this.kr.bind(this)},{target:document,
type:"keyup",$f:this.cs.bind(this)},{target:window,type:"focus",$f:this.jr.bind(this)},{target:this.ua,type:"click",$f:this.ir.bind(this)}];this.zb()}g=LJ.prototype;g.getHost=function(){return this.ua};g.addFunctionKey=function(){var a=oa.apply(0,arguments),b=this;Array.isArray(a)&&0<a.length&&(a.forEach(function(c){if("function"===typeof c)b.onActived(c);else NJ(b,c)}),this.createElement())};
g.removeFunctionKey=function(){var a=oa.apply(0,arguments),b=this;Array.isArray(a)&&0<a.length?a.forEach(function(c){var d=Sd(b.g,function(e){return e.Id===c});-1!==d&&b.g.splice(d,1)}):this.g=[];this.createElement()};g.onActived=function(a){-1===this.s.indexOf(a)&&this.s.push(a)};g.setEnabled=function(a,b){a=!!a;if("number"===typeof b){var c=Rd(this.g,function(d){return d.Id===b});c&&(c.enabled=a,OJ(this))}else this.enabled=a};
g.setVisible=function(a,b){a=!!a;if("number"===typeof b){var c=Rd(this.g,function(d){return d.Id===b});c&&(c.visible=a,PJ(this))}else this.visible=a};g.destroy=function(){QJ(this);this.Hf();ce(this.ua);he(this)};g.Hf=function(){this.Hd?this.ua.className=this.Hd:this.ua.removeAttribute("class");this.ic?this.ua.style.cssText=this.ic:this.ua.removeAttribute("style");this.ua.innerHTML=this.ce};
function MJ(a,b){if(b&&(void 0!==b.keyRepeat&&(a.keyRepeat=b.keyRepeat),void 0!==b.handleMouse&&(a.handleMouse=b.handleMouse),void 0!==b.combinationKeyDisplayMode&&(a.combinationKeyDisplayMode=b.combinationKeyDisplayMode),void 0!==b.visible&&(a.visible=b.visible),void 0!==b.enabled&&(a.enabled=b.enabled),void 0!==b.showTip&&(a.showTip=b.showTip),Array.isArray(b.functionKeys)&&b.functionKeys.forEach(function(c){return NJ(a,c)}),"function"===typeof b.onActived))a.onActived(b.onActived)}
function NJ(a,b){"number"===typeof b&&(b={key:b});var c=RJ(b);c&&(b=Sd(a.g,function(d){return d.Id===c.Id}),-1===b?a.g.push(c):a.g[b]=c)}
g.createElement=function(){var a=this,b=A("div",{class:"gcim gcim__functionkey","data-handlemouse":this.handleMouse?!0:!1},this.g.map(function(c){return A("div",{class:"functionkey-item-container "+c.imagePosition,"data-functionkey":c.Id,title:a.showTip?c.tipText:""},"image"===c.displayStyle||"imageandtext"===c.displayStyle?A("div",{class:"functionkey-image"},c.buttonText):"","text"===c.displayStyle||"imageandtext"===c.displayStyle?A("div",{class:"functionkey-text"},c.description):"")}));this.ua.innerHTML=
"";this.ua.appendChild(b);PJ(this);OJ(this)};g.zb=function(){this.fa.forEach(function(a){return a.target.addEventListener(a.type,a.$f)})};function QJ(a){a.fa.forEach(function(b){return b.target.removeEventListener(b.type,b.$f)})}function SJ(a,b){return a.ua.querySelector(".functionkey-item-container[data-functionkey='"+b+"']")}g.jr=function(){this.reset();TJ(this)};
g.kr=function(a){(a.shiftKey||a.altKey||a.ctrlKey)&&"dynamic"===this.combinationKeyDisplayMode&&UJ(this,a);if(this.u)this.h&&a.preventDefault();else{var b=VJ(this,a);b&&b.enabled&&(this.keyRepeat||(this.u=!0),WJ(this,b.Id,!0),XJ(this,b),this.h&&(a.preventDefault(),112===a.keyCode&&Ua&&window.addEventListener("help",this.ka)))}};g.cs=function(a){this.reset();16!==a.keyCode&&17!==a.keyCode&&18!==a.keyCode||"dynamic"!==this.combinationKeyDisplayMode||TJ(this)};
g.ir=function(a){if(this.handleMouse){var b=YJ(a);(a=Rd(this.g,function(c){return c.Id===b}))&&a.enabled&&(XJ(this,a),this.h=!0)}};function XJ(a,b){for(var c=ZJ(b.Id),d=$J(c.Hq),e=0;e<a.s.length;e++)try{var f={cancel:!0,key:b.Id,description:b.description,keyCode:d,shiftKey:c.shiftKey,ctrlKey:c.ctrlKey,altKey:c.altKey};a.s[e].apply(a,[a,f]);!1===f.cancel&&(a.h=!1)}finally{continue}}
function RJ(a){if(!a)return null;var b={Id:a.key,ctrlKey:!1,altKey:!1,shiftKey:!1,enabled:!0,visible:!0,imagePosition:"left",displayStyle:"imageandtext"},c=a.key,d=ZJ(c);c=d.Hq;b.altKey=d.altKey;b.ctrlKey=d.ctrlKey;b.shiftKey=d.shiftKey;d=$J(c);if(-1===d)return null;b.keyCode=d;a:{if(!F(HJ)&&"object"===typeof HJ)for(var e in HJ)if(HJ[e]===c){c=e;break a}c=null}b.buttonText=c;b.description=a.description?a.description:"FunctionKeyButton "+b.buttonText;b.tipText=a.tipText?a.tipText:b.description;a.displayStyle&&
I(JJ,a.displayStyle)&&(b.displayStyle=I(JJ,a.displayStyle));a.imagePosition&&I(KJ,a.imagePosition)&&(b.imagePosition=I(KJ,a.imagePosition));return b}function ZJ(a){var b={altKey:!1,shiftKey:!1,ctrlKey:!1};262144===(a&262144)&&(a&=-262145,b.altKey=!0);131072===(a&131072)&&(a&=-131073,b.ctrlKey=!0);65536===(a&65536)&&(a&=-65537,b.shiftKey=!0);b.Hq=a;return b}
function $J(a){switch(a){case 1:return 33;case 2:return 34;case 8:return 35;case 4:return 36;case 16:return 112;case 32:return 113;case 64:return 114;case 128:return 115;case 256:return 116;case 512:return 117;case 1024:return 118;case 2048:return 119;case 4096:return 120;case 8192:return 121;case 16384:return 122;case 32768:return 123;default:return-1}}function VJ(a,b){return Rd(a.g,function(c){return c.keyCode===b.keyCode&&c.altKey===b.altKey&&c.ctrlKey===b.ctrlKey&&c.shiftKey===b.shiftKey})}
function YJ(a){for(a=a.target;a;){if(a.dataset.functionkey)return Number(a.dataset.functionkey);a=a.parentElement}return 0}function UJ(a,b){var c=0;b.shiftKey&&(c|=65536);b.ctrlKey&&(c|=131072);b.altKey&&(c|=262144);a.g.forEach(function(d){if(d.visible){var e=SJ(a,d.Id);e&&((d.Id&c)===c?aK(e,!0):aK(e,!1))}})}function TJ(a){a.g.forEach(function(b){var c=SJ(a,b.Id);c&&aK(c,(b.altKey||b.ctrlKey||b.shiftKey)&&"dynamic"===a.combinationKeyDisplayMode||!b.visible?!1:!0)})}
function aK(a,b){a&&(b?a.classList.remove("gcim_hidden"):a.classList.add("gcim_hidden"))}function WJ(a,b,c){(a=SJ(a,b))&&(c?a.setAttribute("activekey",""):a.removeAttribute("activekey"))}function OJ(a){a.g.forEach(function(b){var c=SJ(a,b.Id);c&&c.setAttribute("data-enabled",String(a.enabled&&b.enabled))})}function PJ(a){aK(a.i,a.visible);a.g.forEach(function(b){aK(SJ(a,b.Id),a.visible&&((b.altKey||b.ctrlKey||b.shiftKey)&&"dynamic"===a.combinationKeyDisplayMode||!b.visible?!1:!0))})}
function bK(a,b){a.g.forEach(function(c){var d=SJ(a,c.Id);d&&(b?d.setAttribute("title",c.tipText):d.removeAttribute("title"))})}g.reset=function(){var a=this;this.h=!0;this.u=!1;this.g.forEach(function(b){WJ(a,b.Id,!1)})};
p.Object.defineProperties(LJ.prototype,{keyRepeat:{configurable:!0,enumerable:!0,get:function(){return this.la},set:function(a){this.la=a}},handleMouse:{configurable:!0,enumerable:!0,get:function(){return this.ga},set:function(a){this.ga=a;this.i&&(a?this.i.setAttribute("data-handlemouse","true"):this.i.setAttribute("data-handlemouse","false"))}},showTip:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){this.ca=a;bK(this,a)}},combinationKeyDisplayMode:{configurable:!0,
enumerable:!0,get:function(){return this.ea},set:function(a){a=I(IJ,a);null!==a&&(this.ea=a,TJ(this))}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcFunctionKey"}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Ic},set:function(a){this.Ic=a;PJ(this)}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.Sc},set:function(a){this.Sc=a;OJ(this)}},i:{configurable:!0,enumerable:!0,get:function(){return this.ua?this.ua.querySelector(".gcim__functionkey"):
null}}});v("GcFunctionKey",LJ);function cK(a,b){this.g=b;this.da=a}function dK(a,b,c){var d={success:!1,yb:""};d.index=c;var e=C(b,c,c+1);if(a.Wa(e))return b=C(b,c,c+1),c++,d.yb=b,d.index=c,d;!a.da.Hb||1!=e.length&&3!=e.length||(d=a.u(b,c));return d}cK.prototype.Wa=function(a){return 2!=a.length||65438!=a.charCodeAt(1)&&65439!=a.charCodeAt(1)||yp(L,a)||!Ap(L,a)?1<a.length?this.s(a):this.i(a):this.i(a)};cK.prototype.i=function(){return!1};cK.prototype.s=function(){return!1};
cK.prototype.u=function(a,b){var c={success:!0,yb:""};c.index=b;var d=C(a,b,b+1),e;if(Ep(L,d)){var f=Dp(L,d)?d.toUpperCase():d.toLowerCase();if((e=this.Wa(f))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=f,c;d=yp(L,d)?Op(L,d):Lp(L,d).text;if((e=this.Wa(d))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=d,c;f=yp(L,f)?Op(L,f):Lp(L,f).text;if((e=this.Wa(f))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=f,c;c.success=!1;return c}if(Bp(L,d)){if(Fp(d)){var h=Jp(d);if((e=this.Wa(h))&&this.g||!e&&!this.g)return b++,
c.index=b,c.yb=h,c}else if(Hp(d)&&(h=Kp(d),(e=this.Wa(h))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=h,c;d=Pp(L,d);if((e=this.Wa(d))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=d,c;if(Fp(d)){if(h=Jp(d),(e=this.Wa(h))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=h,c}else if(Hp(d)&&(h=Kp(d),(e=this.Wa(h))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=h,c;d=Op(L,d);if((e=this.Wa(d))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=d,c;if(Fp(d)){if(d=Jp(d),(e=this.Wa(d))&&this.g||!e&&!this.g)return b++,
c.index=b,c.yb=d,c}else if(Hp(d)&&(d=Kp(d),(e=this.Wa(d))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=d,c;c.success=!1;return c}if(Ap(L,d)){if(Fp(d)){if(h=Jp(d),(e=this.Wa(h))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=h,c}else if(Hp(d)&&(h=Kp(d),(e=this.Wa(h))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=h,c;f=d;var k=!1;if(yp(L,d)){a=Op(L,d);if(0<a.ba()&&((e=this.Wa(a))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=a,c;if(Fp(a)){if(a=Jp(a),(e=this.Wa(a))&&this.g||!e&&!this.g)return b++,
c.index=b,c.yb=a,c}else if(Hp(a)&&(a=Kp(a),(e=this.Wa(a))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=a,c}else{if(null==b){f=Lp(L,d).text;if(!Ap(L,f))return c;if((e=this.Wa(f))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=f,c}else{b+1<a.ba()?(e=Lp(L,C(a,b,b+2)),f=e.text,k=e.ak):f=Lp(L,d).text;if(!Ap(L,f))return c;if((e=this.Wa(f))&&this.g||!e&&!this.g)return b++,k&&b++,c.index=b,c.yb=f,c}if(Fp(f)){if(h=Jp(f),(e=this.Wa(h))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=h,c}else if(Hp(f)&&(h=
Kp(f),(e=this.Wa(h))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=h,c}f=Qp(L,f);if((e=this.Wa(f))&&this.g||!e&&!this.g)return b++,k&&b++,c.index=b,c.yb=f,"\u3094"==f&&(k?c.yb="\u3046\u309b":(b--,c.index=b,c.yb="",c.success=!1)),c;if(Fp(f)){if(h=Jp(f),(e=this.Wa(h))&&this.g||!e&&!this.g)return b++,c.index=b,c.yb=h,c}else if(Hp(f)&&(h=Kp(f),(e=this.Wa(h))&&this.g||!e&&!this.g))return b++,c.index=b,c.yb=h,c}d=yp(L,d)?Op(L,d):Lp(L,d).text;if((e=this.Wa(d))&&this.g||!e&&!this.g)return b++,c.index=b,
c.yb=d,c;c.success=!1;return c};function eK(a,b){cK.call(this,a,b)}t(eK,cK);eK.prototype.i=function(a){return yp(L,a)&&"\r"!=a&&"\n"!=a?!1:!0};function fK(a,b){cK.call(this,a,b)}t(fK,cK);fK.prototype.i=function(a){return yp(L,a)||"\r"==a||"\n"==a?!0:!1};function gK(a,b){cK.call(this,a,b)}t(gK,cK);gK.prototype.i=function(a){return Bp(L,a)||"\r"==a||"\n"==a?!0:!1};function hK(a,b){cK.call(this,a,b)}t(hK,cK);hK.prototype.i=function(a){return Rp(a)?!0:!1};function iK(a,b){cK.call(this,a,b)}t(iK,cK);
iK.prototype.i=function(a){return Tp(a)?!0:!1};function jK(a,b){cK.call(this,a,b)}t(jK,cK);jK.prototype.i=function(a){return!Fp(a)&&Bp(L,a)?!0:!1};function kK(a,b){cK.call(this,a,b)}t(kK,cK);kK.prototype.i=function(a){return yp(L,a)&&Ap(L,a)&&!Fp(a)?!0:!1};function lK(a,b){cK.call(this,a,b)}t(lK,cK);lK.prototype.i=function(a){return yp(L,a)||!Ap(L,a)||Fp(a)?!1:!0};function mK(){cK.apply(this,arguments)}t(mK,cK);mK.prototype.s=function(a){return js(a)};function nK(){cK.apply(this,arguments)}t(nK,cK);
nK.prototype.s=function(a){return rs(a)};nK.prototype.u=function(a,b){var c={success:!0,yb:""};c.index=b;var d=C(a,b,b+1),e=ts(d);return 0<e.length&&(d=this.Wa(e))?(b++,c.index=b,c.yb=e,c):cK.prototype.u.call(this,a,b)};function oK(){cK.apply(this,arguments)}t(oK,cK);oK.prototype.i=function(a){return 55296<=a.charCodeAt(0)&&56319>=a.charCodeAt(0)&&56320<=a.charCodeAt(1)&&57343>=a.charCodeAt(1)||"\r"==a||"\n"==a?!0:!1};
oK.prototype.s=function(a){if(3<=a.length)return!1;for(var b=0;b<a.length;b++)if(zp(a[b]))return!0;return!1};function pK(){cK.apply(this,arguments)}t(pK,cK);pK.prototype.i=function(a){return!yp(L,a)&&Ap(L,a)||"\r"==a||"\n"==a?!0:!1};function qK(){cK.apply(this,arguments)}t(qK,cK);qK.prototype.i=function(a){return yp(L,a)&&Ap(L,a)||"\r"==a||"\n"==a?!0:!1};function rK(a,b,c,d){cK.call(this,c,d);this.ca=a.replace("#@D@#","'").replace("#@M@#",'"');this.h=b.replace("#@D@#","'").replace("#@M@#",'"')}
t(rK,cK);rK.prototype.i=function(a){return""!=this.ca&&-1<this.ca.jb(a)||""!=this.h&&-1==this.h.jb(a)||"\r"==a||"\n"==a?!0:!1};function sK(a,b,c,d){cK.call(this,c,d);this.ca=a;this.h=b}t(sK,cK);sK.prototype.i=function(a){return a>=this.ca&&a<=this.h||"\r"==a||"\n"==a?!0:!1};function tK(a,b){cK.call(this,a);this.g=b;this.h=[]}t(tK,cK);function uK(a,b){null!=b&&(b instanceof gK?a.ca=b:b instanceof qK&&(a.ea=b),a.h.push(b))}
tK.prototype.i=function(a){if(0==this.h.length)return"\r"==a||"\n"==a?!0:!1;for(var b=!1,c=!1,d=0;d<this.h.length;d++)this.h[d].g&&(c=!0);if("\u30fc"==a)if(this.ca&&this.ea){if(c)return!0}else if(this.ca||this.ea)return!0;for(d=0;d<this.h.length;d++)if(this.h[d].Wa(a))if(this.h[d].g)b=!0;else return!1;else c||(b=!0);return b||"\r"==a||"\n"==a?!0:!1};tK.prototype.s=function(a){return this.i(a)};function vK(a,b){for(var c=0;c<b.length;c++)uK(a,b[c])}
tK.prototype.u=function(a,b){var c;a:{for(c=0;c<this.h.length;c++)if(this.h[c]instanceof nK){c=!0;break a}c=!1}if(c){c={success:!0,yb:""};c.index=b;var d=C(a,b,b+1),e=ts(d);if(0<e.length&&(d=this.Wa(e)))return b++,c.index=b,c.yb=e,c}return cK.prototype.u.call(this,a,b)};function wK(){Tr.apply(this,arguments)}t(wK,Tr);g=wK.prototype;g.Da=function(){throw Zb();};g.um=function(){throw Zb();};g.vm=function(){throw Zb();};g.lj=function(){throw Zb();};g.Ub=function(){throw Zb();};g.je=function(){throw Zb();};g.Eb=function(){throw Zb();};function xK(a){wK.call(this,"FilterField");this.h=this.ca=this.g=0;this.ea=new cK;this.ka=this.i=null;this.ga=this.la="";this.fa=null;this.da=a}t(xK,wK);
function yK(a,b,c,d,e){if(!(b>c||null==d)){a.g=b;a.ca=c;a.ea=d;a.i=e;a.ka=e;a.fa=e;b=a.h=0;if(null!=a.i){for(;null!=a.i[b];)b++;for(;0<=b;b--)if(null!=a.i[b])0==a.i[b]&&a.h--;else if(null==a.i[b])a.h--;else break}a.fb()}}function zK(a,b){for(;-1!=b.jb("@#GCD#@");)b=b.replace("@#GCD#@","'");for(;-1!=b.jb("@#GCM#@");)b=b.replace("@#GCM#@",'"');a.text=b;a.oldText=b;a.la=b;a.ga=b}g=xK.prototype;g.Da=function(){return this.h>=this.g&&0<this.h?2:0<this.h&&this.h<this.g?1:0};
g.Mo=function(){if(this.h>=this.g&&0<this.h){for(var a=0;a<this.h;a++)if(0==this.i[a])return!1;return!0}return!1};
g.je=function(a,b,c,d){null!=b&&(b=b.replace(/[\r\n]/g,""));var e={};e.offset=a;e.text=b;e.Za=!1;var f=e.ee=!1;if(a>this.ca||""==b||0==b.ba())return e;for(var h="",k=0,l=[],m=a,n=0;n<a;n++)l[n]=this.i[n];for(;k<b.ba();)if(k=dK(this.ea,b,k),n=k.yb,k=k.index,""==n&&C(b,k,k+1)!=this.da.u){if(!c&&a+h.ba()>=this.g&&a+h.ba()==this.h+h.ba())break;f=!0;k++;break}else if(""!=n?(d&&""!=d&&C(d,m,m+1)==og[0]?(h+=this.da.u,l[m]=!1):"\r"==n||"\n"==n?(h+=this.da.u,l[m]=!1):(h+=n,l[m]=!0),m++,2==n.ba()&&(l[m]=!0,
m++)):(h+=this.da.u,k++,l[m]=!1,m++),a+h.ba()==this.ca)break;else if(a+h.ba()>this.ca){h=C(h,0,h.ba()-1);break}a+h.ba()<this.g&&(b=C(b,k,b.ba()-k),e.Za=f,e.ee=!0);c=C(this.text,0,a)+h+C(this.text,a,this.text.ba());c.ba()>this.ca&&(c=C(c,0,this.ca));if(c.ba()>a+h.ba())for(d=1;d<=c.ba()-a-h.ba();d++)null!=this.i[a+d]&&(l[m]=this.i[a+d],m++);this.i=l;this.h=m;for(d=m-1;0<=d;d--)if(0==this.i[d])this.h--;else break;if(c.ba()<this.g)for(d=0;d<this.g-c.ba();d--)c+=this.da.u;for(d=c.ba();d>this.g;d--)if(C(c,
d-1,d)==this.da.u&&d>this.h)c=C(c,0,d-1);else break;this.text=c;k==b.ba()?b="":b=C(b,k,b.ba());a+=h.ba();e.offset=a;e.text=b;return e};g.vm=function(){this.oldText=this.text;this.ka=this.i};g.lj=function(){this.ga=this.la=this.text;this.fa=this.i};g.qa=function(){};g.um=function(){if(this.oldText!=this.text){var a=this.oldText;this.text=a;this.i=this.ka;this.h=a.ba();for(a=a.ba()-1;0<=a;a--)if(0==this.i[a])this.h--;else break}};
g.Ub=function(){if(this.ga==this.text)return!1;var a=this.ga;this.ga=this.text;var b=this.i;this.text=a;this.i=this.fa;this.h=a.ba();if(0==this.i.length)this.h=0;else for(a=a.ba()-1;0<=a;a--)if(0==this.i[a])this.h--;else break;this.fa=b;return!0};g.fb=function(){this.h=0;var a="",b=[];if(0<this.g){for(var c=0;c<this.g;c++)b[c]=!1;this.i=b;if(""!=this.da.u)for(c=0;c<this.g;c++)a+=this.da.u;else for(c=0;c<this.g;c++)a+=" ";this.text=a}else this.text=""};
g.Eb=function(a,b,c,d){null==d&&(d=!0);var e={};e.offset=a;e.text=b;e.Za=!1;var f=e.ee=!1;if(a>this.ca||""==b||0==b.ba())return e;for(var h=[],k=a,l=0;l<a;l++)h[l]=this.i[l];l="";for(var m=0;m<b.ba();){m=dK(this.ea,b,m);var n=m.yb;m=m.index;if(""!=n||!d&&" "==bd(b,m))if(""!=n||d||" "!=bd(b,m)?"\r"==n||"\n"==n?(l+=this.da.u,h[k]=!1,k++):(l+=n,h[k]=!0,k++,2==n.ba()&&(h[k]=!0,k++)):(l+=this.da.u,h[k]=!1,k++,m++),a+l.ba()==this.ca)break;else{if(a+l.ba()>this.ca){l=C(l,0,l.ba()-1);break}}else{if(!c&&a+
l.ba()>=this.g&&a+l.ba()>=this.h+l.ba())break;f=!0;m++}}if(0==l.ba())return C(b,m,b.ba()-m),e.Za=f,e.ee=!0,e;c=C(this.text,0,a)+l+C(this.text,a,this.text.ba());c.ba()>this.ca&&(c=C(c,0,this.ca));if(c.ba()>a+l.ba())for(d=0;d<c.ba()-a-l.ba();d++)h[k]=null!=this.i[a+d]?this.i[a+d]:!1,k++;this.i=h;this.h=k;for(d=k-1;0<=d;d--)if(0==this.i[d])this.h--;else break;if(c.ba()<this.g)for(d=0;d<this.g-c.ba();d--)c+=this.da.u;for(d=c.ba();d>this.g;d--)if(C(c,d-1,d)==this.da.u&&d>this.h)c=C(c,0,d-1);else break;
this.text=c;m==b.ba()?b="":b=C(b,m,b.ba());a+=l.ba();e.offset=a;e.text=b;return e};g.Jb=function(a,b,c,d){var e={};e.offset=a;e.text=c;if(0==b)return e;-1!==[12364,12460,12366,12462,12376,12472].indexOf(c.charCodeAt(0))&&1===b&&(e=dK(this.ea,c,0),e.yb&&2===e.yb.length&&(b=2));a=this.Ab(a,b);return e=this.Eb(a,c,d)};
g.Ab=function(a,b){if(0==b||a>=this.text.ba())return a;a+b>this.text.ba()&&(b=this.text.ba()-a);for(var c=[],d=a,e=0;e<a;e++)c[e]=this.i[e];e=C(this.text,0,a)+C(this.text,a+b,this.text.ba());if(a+b<this.text.ba())for(var f=0;f<C(this.text,a+b,this.text.ba()).ba();f++)c[d]=null!=this.i[a+b+f]?this.i[a+b+f]:!1,d++;if(d<this.g)for(f=d;f<this.g;f++)c[f]=!1;this.i=c;this.h=d;for(f=d-1;0<=f;f--)if(0==this.i[f])this.h--;else break;if(e.ba()<this.g)for(b=this.g-e.ba(),f=0;f<b;f++)e+=this.da.u;this.text=e;
return a};function AK(a){wK.call(this,"EnumField");this.s=-1;this.h=0;this.na=-1;this.ga=this.la="";this.ka=-1;this.ea=this.ca=this.g=0;this.da=a}t(AK,wK);g=AK.prototype;g.ia=function(){return 0>this.s?Zf(this.da.u,this.g):""+this.fa[this.s]};g.Da=function(){return-1==this.s?0:2};g.Mo=function(){return-1==this.s?!1:!0};
g.Eb=function(a,b,c){var d={};d.offset=a;d.text=b;d.Za=!1;d.ee=!1;var e=a,f="";-1==this.s&&(e=0);0!=e&&(f=C(this.fa[this.s].toString(),0,e));for(var h=Array(this.ea),k=Array(this.ea),l=Array(this.ea),m=Array(this.ea),n=0;n<this.ea;n++)h[n]=e,k[n]=0,l[n]=99999,m[n]=[];for(n=0;n<this.ea;n++){var q=this.fa[n].toString();if(!(0<f.ba()&&C(q,0,f.ba())!=f))for(;k[n]<b.ba()&&!(h[n]>=q.length);){var u=BK(this,q,h[n],b,k[n]);h[n]=u.jc;k[n]=u.kc;u.$a?99999==l[n]&&(l[n]=k[n]):k[n]++}}u=f=0;n=!1;for(var r=h[f],
z=0;z<this.ea;z++){q=this.fa[z].toString();if(h[z]==b.ba()+e&&b.ba()==q.length){f=z;r=h[f];n=!0;break}99999!=l[z]&&l[f]>=l[z]&&(l[f]==l[z]?(q=h[z],r<q?(f=z,r=q,u=1):r==q&&u++):(f=z,r=h[f],u=1))}if(n){if(0==k[f])return d.Za=!0,d;b=C(b,k[f]+1,b.ba());a=this.fa[f].toString().ba();c=0==m[f].Tq?!1:!0;this.s=f;this.text=this.fa[f].toString();this.h=this.text.ba();d.offset=a;d.text=b;d.Za=c}else{if(r==e)return 0==c&&-1!=this.s&&a==this.fa[this.s].toString().ba()?(b=C(b,k[f],b.ba()),d.offset=a,d.text=b):
(d.ee=!0,d.Za=!0),d;for(n=0;n<m[f].Tq;n++);a=1==u?this.fa[f].toString().ba():r;b=C(b,k[f],b.ba());this.s=f;this.text=this.fa[f].toString();this.h=this.text.ba();d.offset=a;d.text=b}return d};g.Jb=function(a,b,c,d){return this.Eb(a,c,d)};g.Ab=function(a,b){if(0==b||a>=this.text.ba())return a;this.s=-1;this.text="";if(0<this.g)for(a=0;a<this.g;a++)this.text+=this.da.u;return this.h=0};g.vm=function(){this.na=this.s;this.oldText=this.text};
g.um=function(){if(this.oldText!=this.text){var a=this.na;this.s=a;if(0<=a&&a<this.ea)this.text=this.fa[a].toString();else for(this.text="",a=0;a<this.g;a++)this.text+=this.da.u;var b=0;for(a=this.text.ba();0<a;a--)if(C(this.text,a-1,a)==this.da.u)b++;else break;this.h=this.text.ba()-b}};g.lj=function(){this.ga=this.la=this.text;this.ka=this.s};
g.Ub=function(){if(this.ga!=this.text){this.ga=this.text;var a=this.s;this.s=this.ka;this.ka=a;if(0<=this.s&&this.s<this.ea)this.text=this.fa[this.s].toString();else for(this.text="",a=0;a<this.g;a++)this.text+=this.da.u;var b=0;for(a=this.text.ba();0<a;a--)if(C(this.text,a-1,a)==this.da.u)b++;else break;this.h=this.text.ba()-b}};
g.je=function(a,b,c){null!=b&&(b=b.replace(/[\r\n]/g,""));var d=Array(this.ea),e=Array(this.ea),f=Array(this.ea);for(a=0;a<this.ea;a++)d[a]=0,e[a]=0,f[a]=!1;for(a=0;a<this.ea;a++)for(var h=this.fa[a].toString();d[a]<b.ba();){var k=BK(this,h,e[a],b,d[a]);e[a]=k.jc;d[a]=k.kc;if(!k.$a&&1==c){f[a]=!0;break}if(!k.$a&&h.ba()==d[a])break;if(!k.$a&&h.ba()>d[a]){f[a]=!0;break}if(e[a].toString().ba()==h.ba()&&d[a].toString().ba()<b.ba()&&1==c){f[a]=!0;break}if(d[a].toString().ba()==b.ba()&&e[a].toString().ba()<
h.ba()){f[a]=!0;break}}c=this.ea;for(a=0;a<this.ea;a++)if(0==f[a]&&(c==this.ea&&(c=a),h=this.fa[a].toString(),h.ba()==this.ca&&b.ba()>=this.ca)){c=a;break}a=c;c={Za:!1,ee:!1};if(a>=this.ea){f="";c.ee=!0;for(a=0;a<this.g;a++)f+=this.da.u;C(b,0,this.g)==f?(b=C(b,this.g,b.ba()),c.offset=this.g,c.text=b,c.Za=!1,c.ee=!0,this.fb()):(c.text=b,this.text=f,this.s=-1,c.Za=!0,c.ee=!0)}else this.s=a,this.text=this.fa[a].toString(),this.h=this.fa[a].toString().ba(),c.offset=this.h,c.text=C(b,this.h,b.ba());return c};
g.Ob=function(a,b,c){var d=this.ea;if(d<b)if(1<d)for(;d<b;)b-=d;else b=1;else if(d<-b)if(1<d)for(;d<-b;)b+=d;else b=-1;if(0==b)return a;if(-1==this.s)var e=0<b?0:d-1;else if(e=this.s+b,0>e||e>=d)c?(e=0<b?e-d:e+d,0<b&&e<this.s?e=this.s<d-1?d-1:0:0>b&&e>this.s&&(e=0<this.s?0:d-1)):e=0<b?d-1:0;b=this.fa[e].toString().ba();a=Math.min(a,b);this.s=e;this.text=this.fa[e].toString();this.h=-1==this.s?0:this.text.ba();return a};g.fb=function(){this.s=-1};
function BK(a,b,c,d,e){var f={};f.jc=c;f.kc=e;f.$a=!1;if(c>=b.ba())return f;if(C(b,c,c+1)==C(d,e,e+1))c++,e++,f.jc=c,f.kc=e,f.$a=!0;else{if(0==a.da.Hb)return f;if(65345<=C(d,e,e+1).charCodeAt(0)&&65370>=C(d,e,e+1).charCodeAt(0)){var h=String.fromCharCode(C(d,e,e+1).charCodeAt(0)-32);if(h==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;a=Op(L,C(d,e,e+1));if(a==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;h=Op(L,h);h==C(b,c,c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}else if(65313<=C(d,e,e+1).charCodeAt(0)&&
65338>=C(d,e,e+1).charCodeAt(0)){a=String.fromCharCode(C(d,e,e+1).charCodeAt(0)-32);if(a==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;h=Op(L,C(d,e,e+1));if(h==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;a=Op(L,a);a==C(b,c,c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}else if(a=C(d,e,e+1),7==(pp(L,a)&-32769)){a=C(d,e,e+1).toLowerCase();if(a==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;h=Lp(L,C(d,e,e+1)).text;if(h==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;a=Lp(L,a).text;a==C(b,c,
c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}else if(Dp(L,C(d,e,e+1))){h=C(d,e,e+1).toUpperCase();if(h==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;a=Lp(L,C(d,e,e+1)).text;if(a==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;h=Lp(L,a).text;h==C(b,c,c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}else if(Bp(L,C(d,e,e+1))){d=Pp(L,C(d,e,e+1));if(d==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;h=Pp(L,d);h=Op(L,h);1==h.length&&h==C(b,c,c+1)?(c++,e++,f.jc=c,f.kc=e,f.$a=!0):2==h.length&&C(h,0,1)==C(b,c,c+1)&&
c+1<b.ba()&&C(h,1,2)==C(b,c+1,c+2)&&(e++,f.jc=c+2,f.kc=e,f.$a=!0)}else if(Ap(L,C(d,e,e+1))&&yp(L,C(d,e,e+1))){h=Pp(L,C(d,e,e+1));h=Op(L,h);if(1==h.length&&h==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;if(2==h.length&&C(h,0,1)==C(b,c,c+1)&&c+1<b.ba()&&C(h,1,2)==C(b,c+1,c+2))return e++,f.jc=c+2,f.kc=e,f.$a=!0,f;d=Qp(L,C(d,e,e+1));if("\u3094"==d)return f;d==C(b,c,c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}else if(Ap(L,C(d,e,e+1))&&!yp(L,C(d,e,e+1)))if(e+1<d.ba()&&Ap(L,C(d,e+1,e+2))&&!yp(L,C(d,e+1,
e+2))?h=C(d,e+1,e+2):h=" "," "==h){d=Lp(L,C(d,e,e+1)).text;if(d==C(b,c,c+1))return c++,e++,f.jc=c,f.kc=e,f.$a=!0,f;d=Qp(L,d);if("\u3094"==d)return f;d==C(b,c,c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}else{h=Lp(L,C(d,e,e+2));d=h.text;h=h.ak;if(d==C(b,c,c+1))return c++,h?e+=2:e++,f.jc=c,f.kc=e,f.$a=!0,f;d=Qp(L,d);if("\u3094"==d)return h&&"\u3046\u309b"==C(b,c,c+2)&&(f.jc=c+2,f.kc=e+2,f.$a=!0),f;d==C(b,c,c+1)&&(c++,h?e+=2:e++,f.jc=c,f.kc=e,f.$a=!0)}else yp(L,C(d,e,e+1))?Op(L,C(d,e,e+1))==C(b,c,c+1)&&(c++,
e++,f.jc=c,f.kc=e,f.$a=!0):Lp(L,C(d,e,e+1)).text==C(b,c,c+1)&&(c++,e++,f.jc=c,f.kc=e,f.$a=!0)}return f};var CK;function DK(a){null!=a&&(Yr.call(this,a),this.Nk=0,this.l=null,a.De&&(this.da=a.De))}t(DK,Yr);g=DK.prototype;g.we=function(a){var b=this.sb(this.Qb()),c=this.da.eb().g;return EK(this.l.j)&&null!=b&&(""!=c&&b==c||""==b)?{index:-1}:this.l.j.we(a)};
g.ed=function(a,b,c,d,e){var f={},h=this.sb(this.Qb(),!0,!1);this.dg=this.lf=this.lb=!1;f.o=e;1==a&&(f.o=bg(b),f.v=f.o);f.Text=h;if(-1==f.o||f.o>f.Text.ba())f.o=0,f.v=0;9==a?(f.o=0,f.v=0):10==a&&(f.o=f.Text.ba(),f.v=f.Text.ba());b=f.o;3==a||8==a||"none"==c&&-1==d||(a=this.xj(c,d,b),null!=a&&(f.o=a.o,f.v=a.v));null!=f.o&&(this.Nk=f.o);return f};
g.xj=function(a,b,c){"all"==a?a=this.Yc():"field"==a?-1>=b?0<c?(a=cs(this.l.j,c).index,this.l.j.h[a]instanceof Q&&(a==this.l.j.g-1?a--:a++),b=this.l.j.Ya(a),a={},a.o=b.start,a.v=b.length+b.start):a=this.Pd(c):a=this.Pd(b):(a=this.Pd(b),null!=a&&(a.o=a.o,a.v=a.o));return a};g.Pd=function(a){var b={};a=this.l.j.Pd(a);return null!=a&&-1!=a?(b.o=a.start,b.v=a.start+a.length,b):null};g.Vd=function(){var a={};1!=this.da.sa&&FK(this.l.j);a.Text=this.sb(this.Qb(),!1,!1);a.Ja=this.l.j.qa();return a};
function GK(a){if(a.da.sa)return a.l.j.ia();for(var b="",c=a.l.j.g-1,d=0;d<=c;d++){var e=a.l.j.h[d];if(!(e instanceof Q)){var f=e.h,h=e.text;if(e instanceof xK)for(var k=0;k<f;k++)0==e.i[k]&&(h=C(h,0,k)+" "+C(h,k+1,h.ba()));else-1==e.s&&(h="");if(d!=c){var l=C(h,0,f);l=l.replace(/'/g,"@#GCD#@").replace(/"/g,"@#GCM#@").replace(/,/g,"@#GCC#@").replace(/@#GCF#@/g,"\\");if(e instanceof xK&&!a.da.sa){h=C(h,0,f);for(k=0;k<f;k++)0==e.i[k]&&(h=C(h,0,k)+og[0]+C(h,k+1,h.ba()));l+="g-C2,"+h.replace(/'/g,"@#GCD#@").replace(/"/g,
"@#GCM#@").replace(/,/g,"@#GCC#@").replace(/@#GCF#@/g,"\\")}b+=l+"g-C2;"}else{l=C(h,0,f);l=l.replace(/'/g,"@#GCD#@").replace(/"/g,"@#GCM#@").replace(/,/g,"@#GCC#@").replace(/@#GCF#@/g,"\\");if(e instanceof xK&&!a.da.sa){h=C(h,0,f);for(k=0;k<f;k++)0==e.i[k]&&(h=C(h,0,k)+og[0]+C(h,k+1,h.ba()));l+="g-C2,"+h.replace(/'/g,"@#GCD#@").replace(/"/g,"@#GCM#@").replace(/,/g,"@#GCC#@").replace(/@#GCF#@/g,"\\")}b+=l}}}return b}
g.Td=function(a){var b=a.jd,c=Yr.prototype.Td.call(this,a);if(null!=a.nj||1==a.uj)return c;if(void 0!=b&&null!=b){if(48<=b&&57>=b||65<=b&&90>=b||96<=b&&105>=b||0==b||229==b||231==b||32==b||106==b||107==b||109==b||110==b||111==b||219==b||220==b||221==b||222==b||186<=b&&192>=b||226==b||!y&&(61==b||59==b))return null==c&&(c={}),CK=!0,c.$g=!0,c;var d=b;a.mk.gd&&65552!=b&&(d=b-65536);65600<b&&65627>b&&(d=b-65536);if(48<=d&&57>=d||65<=d&&90>=d||96<=d&&105>=d||229==d||0==d||231==d)return null==c&&(c={}),
CK=!0,c.$g=!0,c;a=(173==b||64==b||160==b||65594==b||58==b||65709==b||65600==b||65696==b)&&Wa;if(32==d||106==d||107==d||109==d||110==d||111==d||219==d||220==d||221==d||222==d||186<=d&&192>=d||226==d||a)return null==c&&(c={}),CK=!0,c.$g=!0,c;y||61!=d&&59!=d||(null==c&&(c={}),CK=!0,c.$g=!0)}return c};
g.Ud=function(a,b,c,d,e){if(1==CK){CK=!1;a={};var f=this.da.eb().g;EK(this.l.j)&&""!=f&&(c=b=0);d=this.Hg(b,c,e,d);d.success?(a.o=d.start,a.v=a.o,a.Text=this.sb(this.Qb(),!0,!0),this.lb=!1,this.rd&&(b=as(this,Zr(this),!0,"CharInput"),null!=b&&(a.pa=b.pa,a.Va=b.Va,a.Ib=!0),this.rd=!1)):(a.o=d.start,a.v=Math.max(b,c),a.Text=this.sb(this.Qb(),!0,!0),a.pa=d.pa,a.ee=!0,this.rd&&(a.Ib=!0,this.rd=!1));return a}return!1};
g.Hg=function(a,b,c,d){c=Yr.prototype.Hg.call(this,a,b,c,d);a=Math.min(a,b);c.success&&(a=c.start);d&&(this.rd=!1,a==HK(this.l.j)&&(this.rd=!0));return c};g.Ae=function(){};g.jk=function(){};g.Ub=function(a){var b={};this.l.j.Ub();b.o=this.Nk;b.v=this.Nk;this.Nk=a;b.Ja=this.l.j.ia();b.Text=this.sb(this.Qb(),!0,!0);return b};
g.pc=function(a,b,c,d,e){var f={};f.o=a;f.v=b;if(null==e||1!=e)if(this.da){c=Wf(this.da.Fd());e=this.da.Ue();var h=this.da.acceptsTabChar;c="nocontrol"!==e?bs.call(this,c,e,h):bs.call(this,c,"cut",h)}else c=Wf(!0);null!=c&&(-1!=c.jb("\r")&&(c=C(c,0,c.jb("\r"))),-1!=c.jb("\n")&&(c=C(c,0,c.jb("\n"))));if(null==c||""==c)return f;e=Math.min(a,b);a=Math.max(a,b);h=a-e;if(e==a)f.o=this.l.j.$d(e,c,!1).cursorPos,f.Text=this.sb(this.Qb(),!0,!0),f.v=f.o;else{b=this.sb(this.Qb(),!0,!0);var k=this.da.eb().g;
h=null!=b&&""!=k&&b==k&&this.l.j.h[0].text!=b?this.l.j.$d(0,c,!1):this.l.j.Lf(e,h,c,!1);f.o=h.cursorPos;f.Text=this.sb(this.Qb(),!0,!0);b==f.Text&&0==h.success?(f.o=e,f.v=a):f.v=f.o}C(f.Text,e,e+c.ba())!=c&&f.o-e<c.ba()&&this.da.i.InvalidInput&&(a={},a.gb=this.da.i.InvalidInput,a.ib=null,f.pa=a);d&&(f.o==HK(this.l.j)?this.rd=!0:(a=cs(this.l.j,f.o),d=a.index,a=a.offset,d==this.l.j.g-1&&0==a&&this.l.j.ma(d)instanceof Q&&(this.rd=!0)));this.rd&&(d=as(this,Zr(this),!0,"CharInput"),null!=d&&(f.pa=d.pa,
f.Va=d.Va,f.Ib=!0),this.rd=!1);return f};g.rh=function(){};g.Fg=function(){};g.ra=function(a){this.l.j.ra(a)};g.sb=function(a,b,c){null==b&&(b=this.da.ca);var d="";c||(d=this.da.wf(b));if(""===d)if(b=this.l.j,c=IK(b,a),0>c)d="";else{d="";for(var e=0;e<c;e++)d+=b.h[e].text;c<b.g&&(e=b.h[c],d=e instanceof Q||"always"==a?d+b.h[c].text:d+C(e.text,0,e.h))}return d};
g.ni=function(a,b){var c=Math.min(a,b);a=Math.abs(a-b);b={};b.o=c;b.v=c+a;if(0==c&&0==a)return b;var d=cs(this.l.j,c);var e=d.index;var f=d.offset;if(-1==e)return b;if(0==a){d=this.l.j.ma(e);if(0==e&&0==f)return b;for(;(0==f||d instanceof Q)&&0<e;)e--,a+=f,d=this.l.j.ma(e),f=d.ba(),d instanceof Q&&(a+=f,f=0);if(0==e&&(this.l.j.ma(e)instanceof Q||0==this.l.j.ma(e).ba()))return b;if(this.l.j.ma(e)instanceof xK)c-=a+1,a=1;else if(this.l.j.ma(e)instanceof AK)a+=this.l.j.ma(e).ba(),c-=a,c=0<c?c:0;else return b;
c=this.l.j.Sd(c,a);b.o=c}else{d=cs(this.l.j,c+a);d=d.index;if(-1==d)return b;0==f&&0!=e&&e--;if(e==d&&this.l.j.ma(d)instanceof Q)return b;b.o=this.l.j.Sd(c,a)}b.v=b.o;return b};
g.Ob=function(a,b,c,d,e){if(0>=this.l.j.g)return null;var f={};f.o=a;f.v=b;f.Text=this.sb(this.Qb(),!0,!0);var h=cs(this.l.j,b),k=h.index;h=h.offset;0!=k&&0==h&&(a==b?this.l.j.h[k]instanceof AK||k--:a<b&&k--);if(this.l.j.h[k]instanceof AK||0==this.l.j.h[k].text.ba())f.o=e?this.l.j.Ob(b,c,d):this.l.j.Ob(b,-c,d),f.v=f.o,f.Text=this.sb(this.Qb(),!0,!0);e?this.da.i.SpinUp&&(a={},a.gb=this.da.i.SpinUp,a.ib=null,f.pa=a):this.da.i.SpinDown&&(a={},a.gb=this.da.i.SpinDown,a.ib=null,f.pa=a);return f};
g.zh=function(a,b){a=this.ni(a,b);a.Text=this.sb(this.Qb(),!0,!0);this.lb=!1;return a};g.sj=function(a,b){var c=Math.min(a,b);a=Math.abs(a-b);b={};b.o=c;b.v=c+a;if(c==this.l.j.ba()&&0==a)return b;var d=cs(this.l.j,c);var e=d.index;if(-1==e)return b;if(0==a){if(this.l.j.ma(e)instanceof Q)return b;c=this.l.j.Sd(c,1);b.o=c}else{d=cs(this.l.j,c+a);var f=d.offset;d=d.index;if(-1==d)return b;0==f&&d--;if(e==d&&this.l.j.ma(e)instanceof Q)return b;b.o=this.l.j.Sd(c,a)}b.v=b.o;return b};
g.Ig=function(a,b){a=this.sj(a,b);a.Text=this.sb(this.Qb(),!0,!0);this.lb=!1;return a};g.km=function(a,b){switch(b){case 36:case 65572:case 131109:case 196645:case 196644:case 131108:a=0;break;case 35:case 65571:a=this.da.s.ia().length;break;case 65573:case 37:0!=a&&a--;break;case 39:case 65575:a!=this.da.s.ia().length&&a++;break;case 131111:case 196647:case 196643:case 131107:a=this.da.s.ia().length}return a};
g.Ed=function(a,b){var c=this.da.eb().g;if(EK(this.l.j)&&""!=c)return this.km(a,b);c=this.l.j;cs(c,a);var d=0;var e;for(e=0;e<c.g;e++)if(!(c.ma(e)instanceof Q)){var f=c.Ya(e).start;break}var h=IK(c,this.Qb());if("predisplay"==this.Qb())for(e=h;0<=e;e--)c.ma(e)instanceof Q||(d+=c.ma(e).h);else for(e=h;0<=e;e--)if(!(c.ma(e)instanceof Q)){var k=c.Ya(e);d=k.start+k.length;break}e=a;a=Yr.prototype.Ed.call(this,a,b,f,d,"PromptField");d=c.Tb(e).index;if(196647==b&&a==e){for(;d<h&&!(k=c.Ya(d+1),a=k.start,
a>f);d++);d==h&&(a+=k.length)}if(131111==b&&!(c.ma(d)instanceof Q)&&0==c.Ya(d).length){for(;0==c.Ya(d).length&&d<c.g-1;)d++;for(e=d+1;e<c.g;e++)if(!(c.ma(e)instanceof Q))return k=c.Ya(e),k.start}return a};g.oi=function(a,b,c){var d=this.da.eb().g;return"field"!=c||EK(this.l.j)&&""!=d&&this.sb(this.Qb(),!0,!1)==d?Yr.prototype.oi.call(this,a,b,c):ds(this,a,b)};
g.zk=function(a,b,c){var d={};d.o=this.lb&&36!=c&&131108!=c?Math.min(a,b):this.Ed(b,c);d.v=d.o;if(37==c||131109==c)return a=this.da.eb().g,(!EK(this.l.j)||""==a)&&0<d.o&&(b=cs(this.l.j,d.o),a=b.index,b=b.offset,this.l.j.ma(a)instanceof Q&&0==this.lb&&(d.o-=b),d.v=d.o),this.lb=!1,d;this.lb=!1,d.o=this.Ed(b,c);d.v=d.o;return d};
g.Ak=function(a,b,c){var d={};if(this.lb&&35!=c&&131107!=c){d.o=Math.max(a,b);a=this.da.eb().g;if(1==EK(this.l.j)&&""!=a)return d.v=d.o,this.lb=!1,d;b=cs(this.l.j,d.o);a=b.index;b=b.offset;this.l.j.ma(a)instanceof Q&&!this.lb&&(d.o+=this.l.j.h[a].text.ba()-b)}else d.o=this.Ed(b,c);d.v=d.o;this.lb=!1;return d};
g.Jf=function(a){var b={},c=this.sb(this.Qb(),!0,!1),d=this.da.eb().g;EK(this.l.j)&&(""!=d&&c==d||null!=c&&""==c)?(c=this.sb(this.Qb(),!0,!1),b.o=0,b.v=c.ba()):b=Yr.prototype.Jf.call(this,a);return b};g.$m=function(a){return"always"!=this.Qb()?(a=this.l.j.Tb(a).index,0!==this.l.j.ma(a).Da()):!0};function JK(a,b,c){tF.call(this,b);this.i=-1;this.ea=0;this.ca=-1;this.u=0;this.s=c;this.da=a}t(JK,tF);g=JK.prototype;g.Qb=function(){return this.da.Qb()};g.ma=function(a){return this.h[a]};g.ba=function(){var a=Kq(this.da);if(a.Db)return a.og.length;a=IK(this,this.Qb());for(var b=0,c=0;c<=a;c++)b+=this.ma(c).ba();return b};
g.we=function(a){for(var b={},c=0,d=0,e=0;e<this.g;e++){var f=this.h[e];f instanceof Q&&d++;var h=f.ba();c+=h;if(a<=c)return b.index=f instanceof Q?a==c-h?e-d:a==c?e-d+1:-1:e-d,b}return null};g.ia=function(){for(var a="",b=0;b<this.g;b++)a+=this.h[b].text;return a};function HK(a){var b=a.g,c;for(c=a.g-1;0<=c;c--){var d=a.h[c];if("PromptField"!=d.u){b=c;break}}var e=0;for(c=0;c<=b;c++)d=a.h[c],c==b?21474E3<=e?e=d.ca:e+=d.ca:e+=d.text.ba();return e}
g.vh=function(a,b){var c="",d=cs(this,a);var e=d.index;var f=d.offset;d=cs(this,a+b);a=d.index;d=d.offset;0!=a&&0==d&&(a--,d=this.h[a].text.ba());for(b=e;b<=a;b++){var h=this.h[b];h instanceof Q||(e==a?(c=C(h.text,f,d),c.ba()>h.h&&(c=C(c,0,h.h))):c=b==e?c+C(h.text,f,h.text.ba()):b==a?c+C(h.text,0,d):c+C(h.text,0,h.text.ba()))}return c};function EK(a){for(var b=0;b<a.g;b++){var c=a.h[b];if(!(c instanceof Q)&&0!=c.Da())return!1}return!0}
function IK(a,b){var c=a.g-1;if("always"!=b){var d=a.g-1,e=!0;for(c=d;0<=c;c--){var f=a.h[c];if(!(f instanceof Q))if(0==f.h)e=!1;else{if(!(0<f.h&&f.h<f.g))if("postdisplay"==b)e&&(c=d);else for(;c<d&&a.h[c+1]instanceof Q;)c++;break}}}return c}
g.qa=function(){for(var a=this.g-1,b;0<=a&&(b=this.h[a],"PromptField"==b.u||0==b.h);a--);if(0>a)return"";for(var c="",d=0;d<=a;d++)if(b=this.h[d],"PromptField"!=b.u){var e=b.h,f=b.text,h=f;if("FilterField"==b.u){h=C(h,0,e);for(var k=0;k<e;k++)0==b.i[k]&&(h=C(h,0,k)+" "+C(h,k+1,h.ba()));b=f.ba();f=h.ba();if(0==e&&0!=b){if(d!=a){e="";for(k=0;k<b;k++)e+=" ";h=e}}else if(b>f&&d!=a){e="";for(k=0;k<b-f;k++)e+=" ";h+=e}}else-1==b.s&&(h=" ");c+=h}return c};
g.ra=function(a,b){if(void 0==a||""==a||0==a.ba())return KK(this),!0;var c=!1;null!=b&&(c=b);b=c;KK(this);c=!1;null!=b&&(c=b);0!=a.ba()&&this.$d(0,a,c,!1);return!0};function KK(a){a.i=-1;a.ea=0;a.ca=-1;a.u=0;a.s&&FK(a);if(0<a.g)for(var b=0;b<a.g;b++){var c=a.h[b];c.oldText=c.text;c.Ab(0,c.text.ba())}}function LK(a){if(0<a.g)for(var b=0;b<a.g;b++){var c=a.h[b];c instanceof Q||c.um()}}function MK(a){if(0<a.g)for(var b=0;b<a.g;b++){var c=a.h[b];c instanceof Q||c.vm()}}
function FK(a){if(a.s){var b=a.h[0];if(-1==a.i){b.lj();var c=a.ca}else c=b.la.jb(b.text.substr(a.ca,a.u),a.i),c!=a.i+a.ea&&(c=a.ca,c+a.u!=a.i&&b.lj());0<a.i?a.i=Math.min(a.i,c):a.i=c;a.ea+=a.u}else if(0<a.g)for(c=0;c<a.g;c++)b=a.h[c],b instanceof Q||b.lj()}g.Ub=function(){this.i=-1;this.ea=0;this.ca=-1;this.u=0;if(0<this.g)for(var a=0;a<this.g;a++){var b=this.h[a];b instanceof Q||b.Ub()}};
g.Ob=function(a,b,c){var d=cs(this,a);var e=d.index;d=d.offset;MK(this);if(0<d||this.h[e]instanceof AK){d=this.h[e].Ob(d,b,c);for(b=a=0;b<e;b++)a+=this.h[b].text.ba();a+=d}else{for(var f=e,h;f<this.g;f++)if(h=this.h[f],0==h.g){if(0!=h.text.ba())break}else{if("EnumField"==h.u){d=h.Ob(d,b,c);for(b=a=0;b<e;b++)a+=this.h[b].text.ba();return a+=d}break}if(0<e&&(h=this.h[e-1],d=h.text.ba(),d<h.g&&(d=h.g),d=h.Ob(d,b,c),"EnumField"==h.u)){for(b=a=0;b<e-1;b++)a+=this.h[b].text.ba();a+=d}}return a};
g.Sd=function(a,b){if(0==this.g)return a;MK(this);var c=cs(this,a),d=c.index;var e=c.offset;this.h[d]instanceof Q&&b>this.h[d].text.ba()-e&&(a+=this.h[d].text.ba()-e,b-=this.h[d].text.ba()-e,d++,e=0);this.ca=a;this.u=b;this.s&&FK(this);c=cs(this,a+b);b=c.index;for(c=c.offset;0!=b&&0==c;){var f=this.h[b-1];if(f instanceof Q)break;else b--,c=this.h[b].text.ba()>this.h[b].g?this.h[b].text.ba():this.h[b].g}for(var h=d;h<=b;h++){f=this.h[h];var k=e;d==b?e=c>e?f.Ab(e,c-e):e-(e-c):h==d?0<f.text.ba()-e&&
(e=f.Ab(e,f.text.ba()-e)):e=h==b?f.Ab(e,c):f.Ab(e,f.text.ba());null!=e&&(a+=e-k);e=0}return a};
g.Lf=function(a,b,c,d){var e={};e.cursorPos=a;e.text=c;var f=cs(this,a);var h=f.index;var k=f.offset;for(MK(this);h<this.g&&!(f=this.h[h],0<f.g||0<f.text.ba());h++);for(;0!=h&&0==k;)if(this.h[h]instanceof Q)h--,f=this.h[h],k=f.text.ba(),k<f.g&&(k=f.g);else break;this.ca=a;this.u=b;f=cs(this,a+b);var l=f.index;var m=f.offset;for(var n=0,q=h;q<l;q++)f=this.h[l-1],n+=f.text.ba();for(;0!=l&&0==m;)if(f=this.h[l-1],!(f instanceof Q)&&f.text.ba()<f.ca)l--,m=this.h[l].text.ba();else break;n=c;q=a-k;for(var u=
h;u<=this.g-1;u++){var r=!1;f=this.h[u];var z=f.text.ba()>f.g?f.text.ba():f.g;if(f instanceof Q){z=f.ba();if(d){z=C(f.text,k,f.text.ba());var D=c.ba();c.ba()>=z.ba()?(C(c,0,z.ba())!=z&&(r=!0),c=C(c,z.ba(),c.ba()),a+=z.ba()):(C(c,0,z.ba())!=z&&(r=!0),c="",a+=c.ba());if(r&&D==c.ba())break}else q+k==a&&(a+=z-k);q+=f.text.ba()-k}else{D=k;r=u==this.g-1?!0:!1;u>l?(r=u==this.g-1?!0:!1,z=f.Eb(k,c,r),k=z.offset,c=z.text,r=z.Za):(h==l?z=f.Jb(k,m-k,c,r):u==h?z=f.Jb(k,z-k,c,r):u==l?(z={},0<m-k?z=f.Jb(k,m-k,c,
r):0<b&&(z=f.Jb(k,b,c,r))):z=f.Jb(k,z,c),k=z.offset,c=z.text,r=z.Za);if(2!=f.Da()&&r)break;a+=k-D;q+=f.g>f.text.ba()?f.g:f.text.ba()}k=0;if(""==c){if(u<l){u++;q=u;for(b=0;u<l;u++)this.h[u]instanceof Q||this.h[u].Ab(k,this.h[u].text.ba());for(d=0;d<q;d++)f=this.h[d],z=f.ba(),b+=z;if(a==b&&f.h==f.ca)for(;q<=l;q++)if(this.h[q]instanceof Q&&q!=this.g-1)a+=this.h[q].text.ba();else break;if(0==m)break;this.h[l]instanceof Q||this.h[l].Ab(k,m)}break}}n==c?(LK(this),e.success=!1):e.success=!0;e.cursorPos=
a;e.text=c;return e};
g.xh=function(a,b){var c=0,d={};d.cursorPos=c;d.text=a;if(0==this.g||null==a||0>c)return d;var e=cs(this,c);var f=e.index;e=e.offset;if(e==this.h[f].ca)return d;for(;0!=f&&0==e;){var h=this.h[f-1];if(!(h instanceof Q)&&h.text.ba()<h.ca)f--,e=this.h[f].h,e<this.h[f].g&&(e=this.h[f].g);else break}for(var k,l=c-e;f<this.g;f++){k=!1;h=this.h[f];if(h instanceof Q){if(b){var m=C(h.text,e,h.text.ba()),n=a.ba();a.ba()>=m.ba()?C(a,0,m.ba())!=m?k=!0:(a=C(a,m.ba(),a.ba()),c+=m.ba()):(C(m,0,a.ba())!=a&&(k=!0),
a="",c+=a.ba());if(k&&a.ba()==n)return d.$a=!1,d}else l+e==c&&(c+=h.maxLength-e);l+=h.maxLength-e}else{m=e;var q=h.je(e,a,f==this.g-1?!0:!1);this.i=-1;this.ea=0;this.ca=-1;this.u=0;this.s&&FK(this);e=q.offset;a=q.text;k=q.Za;q=q.ee;if(k&&q)return d.$a=!1,d;c+=e-m;l+=h.g<h.h?h.h:h.g}e=0;if(0==a.ba()&&(k||q))if(!b)break;else if(k)return d.$a=!1,d}f>=this.g&&""!=a&&0<a.ba()?d.$a=!1:(e=cs(this,c),b=e.index,e=e.offset,f<this.g&&b==f+1&&0==e&&this.h[f].text.ba()==this.h[f].ca&&this.h[f+1]instanceof Q&&
(c+=this.h[f+1].ba()),d.$a=!0,d.cursorPos=c,d.text=a);return d};g.$d=function(a,b,c,d){var e={};e.cursorPos=a;e.text=b;if(0==this.g||null==b||""==b||0>a)return e;var f=cs(this,a),h=f.index;f=f.offset;if(f==this.h[h].ca)return e;for(;0!=h&&0==f;)if(e=this.h[h-1],!(e instanceof Q)&&e.text.ba()<e.ca){if(h--,f=this.h[h].h,f<this.h[h].g)if(f=this.h[h].g,e=NK(this,h,f,a,b,c),""!=e.text){if(a==f){h++;f=0;break}}else return e}else break;return NK(this,h,f,a,b,c,d)};
function NK(a,b,c,d,e,f,h){var k={};for(MK(a);b<a.g;b++){var l=!1;var m=a.h[b];if(m instanceof Q)if(f){c=C(m.text,c,m.text.ba());var n=e.ba();e.ba()>=c.ba()?(C(e,0,c.ba())!=c&&(l=!0),e=C(e,c.ba(),e.ba()),d+=c.ba()):(C(c,0,e.ba())!=e&&(l=!0),e="",d+=e.ba());if(l&&e.ba()==n)break}else d+=m.maxLength-c;else{n=c;m=m.Eb(c,e,b==a.g-1?!0:!1,h);c=m.offset;e=m.text;l=m.Za;m=m.ee;if(l&&m){if(e==k.text)return k;break}d+=c-n}c=0;if(0==e.ba())break}b>=a.g&&""!=e&&0<e.ba()&&e==k.text||(h=cs(a,d),f=h.index,h=h.offset,
b<a.g&&f==b+1&&0==h&&a.h[b].text.ba()==a.h[b].ca&&"postdisplay"!=a.Qb()&&a.h[b+1]instanceof Q&&b+1!=a.g-1&&(d+=a.h[b+1].ba()),k.cursorPos=d,k.text=e);return k}
g.le=function(a,b){var c=cs(this,a);a=c.index;c=c.offset;if(-1==a)return-1;if(b){if(a==this.g-1)return-1;for(;0==this.ma(a).text.ba()&&a<this.g;)a++;if(a==this.g-1)return-1;a++;if(this.ma(a)instanceof Q){if(a==this.g-1)return-1;a++}c=b=0}else{if(0==a||1==a&&0==c)return-1;for(;0==this.ma(a).text.ba()&&0<a;)a--;if(0==a)return-1;a--;if(this.ma(a)instanceof Q){if(0==a)return-1;a--}c=b=0}for(;c<a;c++)b+=this.ma(c).ba();return b};
g.Pd=function(a){if(null==a)return null;for(var b=0,c=-1,d=!1;b<this.g;b++)if(this.h[b]instanceof Q||c++,c==a){d=!0;break}if(d)return this.Ya(b);if(-1==c)return null;for(b>=this.g&&(b=this.g-1);this.h[b]instanceof Q;)b--;return this.Ya(b)};function OK(a){return 1!=EK(a)||""==a.da.eb().g||a.s?a.h[0]instanceof Q?a.Ya(1).start:0:0}g.Tb=function(a){return cs(this,a)};g.sd=function(){if(0<this.g)for(var a=0;a<this.g;a++){var b=this.h[a];if(!(b instanceof Q)&&b.ga!=b.text)return!0}return!1};
function PK(a,b){uF(a,b);a.g++};function QK(a,b){var c={ve:"",Result:!0};if("{}"===a)return c.ve="{}",c.Result=!0,c;if(void 0!==a&&null!==a&&0<a.length)try{var d=a,e="\x00",f=RK(d);d=f.Te;e=f.Lo;if("\x00"!==e){var h=SK(d,"{",0),k=SK(d,"}",0);if(-1<h&&-1<k&&k>h&&(-1<SK(d,"{",h+1)||-1<SK(d,"}",k+1)))return gc(),c;c.ve=void 0!==b&&null!==b&&0<b.g?b.Fc(e):a}else c.ve=d}catch(l){gc(),c.ve=""}else c.ve=null;return c}
function RK(a){var b={};b.Te=a;b.Lo="\x00";b.Result=!1;if(void 0===a||null===a||0===a.length)return b.Result=!1,b;var c=a.indexOf("{"),d=a.indexOf("}");if(-1===c&&-1===d)a=TK(a),b.Te=a,b.Result=!1;else{for(;0<c&&"\\"===a.charAt(c-1);)c=a.indexOf("{",c+1);for(;0<d&&"\\"===a.charAt(d-1);)d=a.indexOf("}",d+1);if(c<d)if(-1===c)a=TK(a),b.Te=a,b.Result=!1;else{if(1===d-c)b.Te="";else{if("{"===a.charAt(c+1))return gc(),b.Te="",b.Result=!1,b;if("\\"===a.charAt(c+1))if(c+2<d)c++;else return gc(),b.Te="",b.Result=
!1,b;b.Lo=a.charAt(c+1)}b.Result=!0}else a=TK(a),b.Te=a,b.Result=!1}return b}function TK(a){if(-1!=a.indexOf("\\")){for(var b="",c=a.length,d=0;d<c;d++)"\\"===a.charAt(d)?d+1<c&&(b+=a.charAt(++d)):b+=a.charAt(d);return b}return a}function SK(a,b,c){var d=0;--c;do{c=a.indexOf(b,c+1);if(0==c||-1==c)break;for(var e=c-1;0<e&&"\\"==a.charAt(e);e--)d++}while("\\"===a.charAt(c-1)&&0!=d%2);return c}
function UK(a){var b=new JK(a,0,!1),c=new xK(a),d=[];c.i=d;var e=new tK(a,!0);uK(e,new fK(a,!0));uK(e,new eK(a,!0));uK(e,new oK(a,!0));yK(c,0,2147483647,e,d);zK(c,"");c.h=0;PK(b,c);b.s=!0;return b}
function VK(a,b){var c=new JK(b,0,!1);if(null==a||""==a)return UK(b);var d=0,e="",f=8,h=5,k=WK(a,d),l=k.fc,m=k.Kb;k=k.Sb;for(var n;a.length>d;){switch(m){case 9:return ic(),UK(b);case 5:n=XK(b,l);f=n.sc;if(!n.Result)return ic(),UK(b);n=f;f=5;break;case 4:if("\\K"===l)n=new pK(b,!0);else if("\\H"===l)n=new eK(b,!0);else if("\\N"===l)n=new lK(b,!0);else if(l==="\\"+YK)n=new qK(b,!0);else if(l==="\\"+ZK)n=new gK(b,!0);else if(l==="\\"+$K)n=new hK(b,!0);else if(l==="\\"+aL)n=new iK(b,!0);else if(l===
"\\"+bL)n=new jK(b,!0);else if(l==="\\"+cL)n=new kK(b,!0);else if(l==="\\"+dL)n=new fK(b,!0);else if(l==="\\"+eL)n=new oK(b,!0);else if(l==="\\"+fL)n=new mK(b,!0);else if(l==="\\"+gL)n=new nK(b,!0);else return gc(),UK(b);f=5;break;case 6:if(f=[],hL(l,f)){l=new AK(b);var q=Number.MAX_VALUE,u=Number.MIN_VALUE;for(m=0;m<f.length;m++)q=Math.min(q,f[m].length),u=Math.max(u,f[m].length);q===Number.MAX_VALUE&&(q=0);u===Number.MIN_VALUE&&(u=0);m=l;var r=u;u=f;f=f.length;m.g=q;m.ca=r;if(null!=u){m.ea=f;m.s=
-1;m.na=-1;m.ka=-1;m.fa=Array(u.length);for(f=0;f<u.length;f++){for(q=u[f];-1!=q.jb("@#GCD#@");)q=q.replace("@#GCD#@","'");for(;-1!=q.jb("@#GCM#@");)q=q.replace("@#GCM#@",'"');q&&(q=q.replace(/@#GCX0D#@/g,"\r").replace(/@#GCX0A#@/g,"\n"));m.fa[f]=q}m.h=0;m.text=m.ia()}PK(c,l);f=6;d+=k;k=WK(a,d);l=k.fc;m=k.Kb;k=k.Sb;continue}else return ic(),UK(b);case 0:try{var z=C(l,1);z=parseInt(z,8);0==z&&(gc(),UK(b));var D=String.fromCharCode(z);8==f?e+=D:(e=D,f=8)}catch(wa){return ic(),UK(b)}break;case 1:case 2:try{z=
C(l,2);z=parseInt(z,16);if(0==z)return gc(),UK(b);D=String.fromCharCode(z);8==f?e+=D:(e=D,f=8)}catch(wa){return ic(),UK(b)}break;case 8:8==f?e+=l:(e=l,f=8);break;case 7:return ic(),UK(b);default:return ic(),UK(b)}d+=k;u=q=1;if(d<a.length){k=WK(a,d);l=k.fc;m=k.Kb;k=k.Sb;switch(m){case 9:return ic(),UK(b);case 5:case 4:case 6:h=5;break;case 7:h=iL(l);u=h.li;q=h.ki;if(!h.Result)return ic(),UK(b);d+=k;k=WK(a,d);l=k.fc;m=k.Kb;k=k.Sb;h=7;break;case 0:case 2:case 1:case 8:h=8}if(8==f){if(8!=h){if(7==h)return ic(),
UK(b);PK(c,new Q(e))}}else r=new xK(b),yK(r,u,q,n,[!1,!1,!1]),zK(r,Zf(r.da.u,u)),r.h=0,PK(c,r)}else 8==f?PK(c,new Q(e)):(r=new xK(b),yK(r,1,1,n),PK(c,r))}for(a=0;a<c.g&&c.ma(a)instanceof Q;a++);return a==c.g?(ic(),UK(b)):c}
function WK(a,b){var c={Sb:0,Kb:9,fc:null};if(b>=a.length)return c;switch(a.charAt(b)){case "\\":var d=jL(C(a,b),c.Kb,c.Sb);if(d.Result)return c.Sb=d.Qc,c.Kb=d.Kb,c.fc=a.substr(b,c.Sb),c;d=a.charAt(b+1);"A"==d?(c.Sb=2,c.Kb=5,c.fc="[A-Z]"):d==kL?(c.Sb=2,c.Kb=5,c.fc="["+kL+"-"+dL+"]"):"a"==d?(c.Sb=2,c.Kb=5,c.fc="[a-z]"):d==lL?(c.Sb=2,c.Kb=5,c.fc="["+lL+"-"+mL+"]"):"D"==d?(c.Sb=2,c.Kb=5,c.fc="[0-9]"):d==nL?(c.Sb=2,c.Kb=5,c.fc="["+oL+"-"+pL+"]"):"B"==d?(c.Sb=2,c.Kb=5,c.fc="[0-1]"):d==qL?(c.Sb=2,c.Kb=
5,c.fc="["+oL+"-"+rL+"]"):"X"==d?(c.Sb=2,c.Kb=5,c.fc="[0-9A-Fa-f]"):d==sL?(c.Sb=2,c.Kb=5,c.fc="["+oL+"-"+pL+kL+"-"+tL+lL+"-"+uL+"]"):"W"==d?(c.Sb=2,c.Kb=5,c.fc="[a-zA-Z_0-9]"):d==vL?(c.Sb=2,c.Kb=5,c.fc="["+lL+"-"+mL+kL+"-"+dL+wL+oL+"-"+pL+"]"):"K"==d||d==YK||d==ZK||d==dL||"H"==d||d==eL||d==$K||d==aL||d==bL||d==cL||"N"==d||d==fL||d==gL?(c.Sb=2,c.Kb=4,c.fc=a.substr(b,2)):xL(d)?(c.Sb=2,c.Kb=8,c.fc=a.substr(b+1,1)):c.fc="";return c;case "{":d=a.indexOf("}",b+1);if(-1==d)return c.fc="",c;c.Kb=7;c.Sb=d+
1-b;c.fc=a.substr(b,c.Sb);return c;case "[":d=b;var e=0;do{d=a.indexOf("]",d+1);if(-1==d)return"";for(var f=d-1;0<f&&"\\"===a.charAt(f);f--)e++}while("\\"===a.charAt(d-1)&&0!==e%2);c.Kb=5;c.Sb=d+1-b;c.fc=a.substr(b,c.Sb);return c;case "(":d=b;do if(d=a.indexOf(")",d+1),-1==d)return"";while("\\"==a.charAt(d-1));c.Kb=6;c.Sb=d+1-b;c.fc=a.substr(b,c.Sb);return c;case "*":return c.Sb=1,c.Kb=7,c.fc="{0,}",c;case "+":return c.Sb=1,c.Kb=7,c.fc="{1,}",c;case "?":return c.Sb=1,c.Kb=7,c.fc="{0,1}",c;default:for(d=
b+1;d<a.length&&!xL(a.charAt(d));d++);c.Kb=8;c.Sb=d-b;c.fc=a.substr(b,c.Sb);return c}}function xL(a){return"\\"==a||"{"==a||"}"==a||"["==a||"]"==a||"("==a||")"==a||"."==a||"*"==a||"+"==a||"?"==a}function jL(a,b,c){var d={Result:!1};d.Kb=b;d.Qc=c;if("\\"!==a.charAt(0))return d;b=a.charAt(1);if("x"==b){if(4>a.length)return d;d.Qc=4;d.Kb=1;d.Result=!0}else if("u"==b){if(6>a.length)return d;d.Qc=6;d.Kb=2;d.Result=!0}else if("0"<=b&&"7">=b){if(4>a.length)return d;d.Qc=4;d.Kb=0;d.Result=!0}return d}
function iL(a){var b={li:-1,ki:-1,Result:!1},c=a.indexOf(",",1);if(-1==c)try{return b.li=parseInt(a.substr(1,a.length-2),10),b.ki=b.li,b.Result=0<b.ki,b}catch(d){return b.Result=!1,b}try{return b.li=parseInt(a.substr(1,c-1),10),b.ki=c==a.length-2?Math.pow(2,31):parseInt(a.substr(c+1,a.length-c-2),10),b.Result=0>b.li||b.li>b.ki||0==b.ki?!1:!0,b}catch(d){return b.Result=!1,b}}
function XK(a,b,c){var d={sc:new tK(null,!0)};d.sc=c;d.Result=!1;var e=[],f=1,h=!0,k="";if("[]"==b){e.push(new fK(a,!0));e.push(new eK(a,!0));e.push(new oK(a,!0));if(null!=d.sc&&0<d.sc.h.length)for(k=0;k<c.h.length;k++)e.push(c.h[k]);d.sc=new tK(a,!0);vK(d.sc,e);d.Result=!0;return d}if("[^]"==b){e.push(new fK(a,!1));e.push(new eK(a,!1));e.push(new oK(a,!1));if(null!=d.sc&&0<d.sc.h.length)for(k=0;k<c.h.length;k++)e.push(c.h[k]);d.sc=new tK(a,!0);vK(d.sc,e);d.sc.h[0].g=!1;d.sc.h[1].g=!1;d.sc.h[2].g=
!1;d.Result=!0;return d}"^"===b.charAt(f)&&(h=!1,f++);for(;f<b.length-1;){var l=b.charAt(f),m=1,n=0;switch(l){case "-":return d.Result=!1,d;case "^":if(!1===h)return hc(),d.Result=!1,d;0<k.ba()&&(c=new rK(k,""),c.g=h,e.push(c));if(0<e.length){d.sc=new tK(a,!0);vK(d.sc,e);for(k=0;k<d.sc.h.length;k++)if(!d.sc.h[k].g)return d.Result=!1,d;a=XK(a,"["+b.substr(f,b.length-f),d.sc);d.sc=a.sc;d.Result=a.Result}else d.Result=!1;return d;case "\\":l=jL(b.substr(f),m,n);m=l.Kb;n=l.Qc;if(l.Result){l=16;if(0==
m){l=8;var q=b.substr(f+1,n-1)}else q=b.substr(f+2,n-2);b=b.substring(0,f)+b.substr(f+n);n=String.fromCharCode(parseInt(q,l));b=b.substring(0,f)+n+b.substr(f);continue}n=b.charAt(f+1);if("A"===n)e.push(new sK("A","Z",a,!0)),f++;else if(n===kL)e.push(new sK(kL,dL,a,!0)),f++;else if("a"===n)e.push(new sK("a","z",a,!0)),f++;else if(n===lL)e.push(new sK(lL,mL,a,!0)),f++;else if("D"===n)e.push(new sK("0","9",a,!0)),f++;else if(n===nL)e.push(new sK(oL,pL,a,!0)),f++;else if("B"===n)e.push(new sK("0","1",
a,!0)),f++;else if(n===qL)e.push(new sK(oL,rL,a,!0)),f++;else if("X"===n)e.push(new sK("0","9",a,!0)),e.push(new sK("A","F",a,!0)),e.push(new sK("a","f",a,!0)),f++;else if(n===sL)e.push(new sK(oL,pL,a,!0)),e.push(new sK(kL,tL,a,!0)),e.push(new sK(lL,uL,a,!0)),f++;else if("W"===n)e.push(new sK("0","9",a,!0)),e.push(new sK("A","Z",a,!0)),e.push(new sK("a","z")),k+="_",f++;else if(n===vL)e.push(new sK(oL,pL,a,!0)),e.push(new sK(kL,dL,a,!0)),e.push(new sK(lL,mL,a,!0)),k+=wL,f++;else if("K"===n)e.push(new pK(a,
!0)),f++;else if("H"===n)e.push(new eK(a,h)),f++;else if(n===YK)e.push(new qK(a,!0)),f++;else if(n===ZK)e.push(new gK(a,!0)),f++;else if(n===$K)e.push(new hK(a,!0)),f++;else if(n===aL)e.push(new iK(a,!0)),f++;else if("N"===n)e.push(new lK(a,!0)),f++;else if(n===cL)e.push(new kK(a,!0)),f++;else if(n===bL)e.push(new jK(a,!0)),f++;else if(n===dL)e.push(new fK(a,!0)),f++;else if(n===eL)e.push(new oK(a,!0)),f++;else if(n===fL)e.push(new mK(a,!0));else if(n===gL)e.push(new nK(a,!0));else if("\\"==n||"]"==
n||"["==n||"-"==n||"^"==n){if(-1!=k.indexOf(n)){f++;continue}k+=n;f++}else return!1;break;default:if(b.length>f+2&&"-"===b.charAt(f+1))l=jL(b.substr(f+2),m,n),m=l.Kb,n=l.Qc,l.Result&&(l=16,0==m?(l=8,q=b.substr(f+3,n-1)):q=b.substr(f+4,n-2),m=f+2,b=b.substring(0,m)+b.substr(m+n),n=String.fromCharCode(parseInt(q,l)),b=b.substring(0,m)+n+b.substr(m)),b.charAt(f)>b.charAt(f+2)?(n=b.charAt(f+2),m=b.charAt(f)):(n=b.charAt(f),m=b.charAt(f+2)),e.push(new sK(n,m,a,!0)),f+=2;else{if(-1!=k.indexOf(l)){f++;continue}k+=
l}}f++}0<k.length&&e.push(new rK(k,"",a,!0));b=e.length;if(null!=d.sc&&0<d.sc.h.length)for(k=0;k<d.sc.h.length;k++)e.push(c.h[k]);d.sc=new tK(a,!0);vK(d.sc,e);for(k=0;k<b;k++)d.sc.h[k].g=h;d.Result=!0;return d}
function hL(a,b){a=C(a,1,1+a.length-2);for(var c=0,d=0;c<a.length;){a:{var e=["|",")","\\","("];if(!(c>=a.length))for(;c<a.length;c++)for(var f=0;f<e.length;f++)if(a.charAt(c)==e[f]){e=c;break a}e=-1}if(-1==e){f=C(a,d);if(0==f.length)return!1;b.push(f);c=a.length}else{if("\\"===a.charAt(e))if(c=a.charAt(e+1),"\\"==c||")"==c||"|"==c||"("==c){a=C(a,0,e)+C(a,e+1);c=e+1;if(c===a.length){f=C(a,d);if(0==f.length)return!1;b.push(f)}continue}else return!1;if("|"===a.charAt(e)){f=C(a,d,e);if(0==f.length)return!1;
b.push(f);d=c=e+1}else return!1}}return!0}var kL="\uff21",lL="\uff41",qL="\uff22",nL="\uff24",ZK="\uff2a",YK="\uff2b",vL="\uff37",sL="\uff38",dL="\uff3a",eL="\uff34",$K="\uff2d",aL="\uff29",cL="\uff2e",bL="\uff27",fL="\uff25",gL="\uff36",mL="\uff5a",oL="\uff10",rL="\uff11",pL="\uff19",tL="\uff26",uL="\uff46",wL="\uff3f";function yL(a,b,c,d){Xc++;Yc=!1;try{R.call(this,a,b,c,d)}finally{Xc--,Yc=0==Xc}}t(yL,R);g=yL.prototype;g.Ge=function(){R.prototype.Ge.call(this);this.u="_";this.ud="";this.Xa=!1;this.Wd="always";this.mb="control";this.Og=null;this.sa=this.Hb=!0;this.ob=this.lc=-1;this.Dc=this.fa=this.rb=!1;this.Bh="__"+this.la+"_State";this.l.j=VK("",this);this.sa=this.l.j.s;this.xc=!1;this.Pg=void 0;this.mg=new nt};g.ui=function(){var a={};a.Ha=this.la;a.De=this;this.g=new DK(a);this.g.l=this.l};
g.Ie=function(){this.s&&(KK(this.g.l.j),this.g.l.j.xh(this.s.ia(),!0));this.Text=this.g.l.j.ia();this.Ja=this.g.l.j.qa();this.cb=this.g.l.j.ia();this.g.l.j.ia();this.ea=0;this.s&&(this.Vc=rF(this));this.Kg=this.Mg=0;this.va=!1;R.prototype.Ie.call(this)};
g.yf=function(){var a=this;null!=this.za()&&null!=this.s&&(R.prototype.yf.call(this),Za&&this.za().addEventListener("MSHoldVisual",function(){try{a.oj()}catch(b){}}),Xa?this.za().addEventListener("textinput",function(b){eq(a,b)},!1):this.za().addEventListener("keyup",function(b){eq(a,b)}))};g.Qb=function(){return this.Wd};g.nk=function(){return this.lc};g.fb=function(){this.ra("");this.o=this.v=OK(this.l.j);return this};
g.ra=function(a){var b=this.qa();a&&(this.sa&&(a=a.replace(/[\r\n]/g,"")),a=fs(a,"filter"));this.g.l.j.ra(a,!1)&&zL(this);a!=b&&M(this);AL(this,this.la,a);return this};g.qa=function(){return this.Ja};g.Rd=function(a){this.Ja=this.g.l.j.qa();null==a||0==a.toString().ba()?this.ra(""):a!=this.eb().g||this.g.l.j.s?(KK(this.g.l.j),this.sa&&(a=a.replace(/[\r\n]/g,"")),a=fs(a,"filter"),0==this.g.l.j.xh(a,!0).$a?LK(this.g.l.j):zL(this),M(this),AL(this,this.la,this.qa())):this.ra("")};
function zL(a){var b=a.Ja,c=a.Text;a.Ja=a.g.l.j.qa();a.Ia(BL(a,a.ca,a.ca));var d={};d.Text=BL(a,a.ca,!1);a.hb(d)&&!a.ca&&(a.Text!=c&&(a.cb=a.g.l.j.ia(),a.g.l.j.ia(),CL(a,"TextChanged")),a.Ja!=b&&CL(a,"ValueChanged"))}g.ia=function(){return BL(this,!0,!0)};function BL(a,b,c){return a.g.sb(a.Qb(),b,c)}g.we=function(){return null!=this.g.we(this.v)?this.g.we(this.v).index:0};
function CL(a,b){switch(b){case "TextChanged":var c=a.i.TextChanged;break;case "ValueChanged":c=a.i.ValueChanged}return N(a.host,c,null)}
g.si=function(){this.Fa||3==this.ea||12==this.ea||(this.cb=this.g.l.j.ia(),this.g.l.j.ia());if(0<this.g.l.j.g){var a=this.g.ed(this.ea,this.ga,this.Od(),this.lc,this.o);null!=a&&(null!=a.Text&&(this.Text=a.Text,M(this)),null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),1==this.rb&&(-1!=this.ob&&(this.v=this.o=this.ob),this.rb=!1),1==fr(this)&&0==this.ea&&(this.o=0,this.v=this.Text.length),this.Ia(this.Text),this.o===this.za().selectionStart&&this.v===this.za().selectionEnd||this.Ca(this.o,this.v,!0),
this.Fa||3==this.ea||(this.ka=this.Ja))}else this.Ia(this.Text),this.Ca(this.o,this.v),this.ka=this.Ja};
g.Vd=function(){var a=this;Hr(this);var b=this.fa;y?this.Rb("LoseFocusInput"):this.Rb("ReInput",!0);dr(Mq.instance);Er(this.ta)&&Fr(this.ta);var c=this.g.Vd();this.Vc=c.Text;this.Ja=c.Ja;this.Text=this.g.l.j.ia();!y&&b||this.Ia(this.Vc);!y&&b&&this.Ia(this.Vc);M(this);this.ea=0;null!=c.pa&&(c=N(this.host,c.pa.gb,c.pa.ib),null!=c&&(this.ea=c));!y&&this.Vc!=this.s.ia()&&b&&window.setTimeout(function(){a.Ia(a.Vc)},0);"all"==this.Od()&&(this.o=0);this.cb!=this.Text&&(c=CL(this,"TextChanged"),null!=c&&
(this.ea=c),c=CL(this,"ValueChanged"),null!=c&&(this.ea=c),this.cb=this.g.l.j.ia(),this.g.l.j.ia(),Vf(this.ga));this.he=!0;Dq(this,!1)};g.tf=function(a){var b=Ff(a);R.prototype.tf.call(this,a);this.Ga=0;this.g.lf=!1;!y&&this.fa&&0==b&&(this.Dc=!0)};
g.ke=function(a){var b=this;if(!y&&this.fa){if(!this.Dc)return;this.Dc=!1}this.Mg=this.o;this.Kg=this.v;R.prototype.ke.call(this,a);this.fa&&(this.o=this.Mg,this.v=this.Kg,y?this.Rb("ClickInput"):this.Rb("ReInput",!0),y||this.Text==this.s.ia()||window.setTimeout(function(){b.Ia(b.Text)},0))};
g.Td=function(a){var b=a.keyCode,c={gd:!1,Oc:!1,Cd:!1};a.shiftKey&&(c.gd=!0);if(a.ctrlKey||a.metaKey)c.Oc=!0;a.altKey&&(c.Cd=!0);var d={},e=this.fa;this.fa=!1;if(229==b)if(db&&null!=a.key)b=a.key.charCodeAt(0),e=!0;else return!0;this.fa||!e||c.gd||c.Oc||9!=b&&65545!=b&&this.Rb("ReInput",!0);d.jd=b;d.Text=this.Text;d.Vc=this.s.ia();d.mk=c;d.o=this.o;d.v=this.v;d.fm=this.La;d.uj=fr(this);d.am=this.na;d.Re=this.Xa;d.gm=this.Cc;d.$e=this.mb;a=R.prototype.om.call(this,d);return 27==b?(null==a&&(a={}),
!0!==a.Zp&&(a.Aa=!0),a.Aa):null!=a.$g||(c.gd||c.Oc||c.Cd)&&null==a||a.Ib&&a.Aa?!0:a.Aa};
g.Ud=function(a,b){var c=b.keyCode||b.charCode,d=192==c&&b.altKey;if(!y&&this.fa&&d)return this.Rb("ReInput",!0),!1;if(!y&&(229==c||d))return!1;a=this.g.Ud(this.ga,this.o,this.v,this.Xa,a);if(1!=this.rb){if(null!=a.Text?this.hb(a)?(this.Ia(this.Text),c=!0):c=!1:c=void 0,c&&(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v,1!=a.Ib&&this.Ca(this.o,this.v)),null!=a.ee&&(this.Ia(this.Text),this.Ca(this.o,this.v)),M(this),null!=a.pa&&(N(this.host,a.pa.gb,a.pa.ib),this.ea=3),13==b.keyCode))return!0}else{if(13==
b.keyCode)return!0;null!=a.o&&(this.ob=a.o);null!=a.pa&&N(this.host,a.pa.gb,a.pa.ib)}};
function DL(a,b,c,d){c=null==c?!1:c;b=a.g.Ud(a.ga,a.o,a.v,a.Xa,b);if(1!=a.rb){if(null!=b.Text){if(!a.hb(b))return;d||a.Ia(a.Text)}null!=b.o&&(a.o=b.o);null!=b.v&&(a.v=b.v,1==b.Ib||c||d||1!=b.Ib&&a.Ca(a.o,a.v));null!=b.ee&&(d||a.Ia(a.Text),1!=b.Ib&&a.Ca(a.o,a.v));null!=b.pa&&(N(a.host,b.pa.gb,b.pa.ib),a.ea=3)}else if(null==window.event||13!=window.event.keyCode)null!=b.o&&(a.ob=b.o),null!=b.pa&&N(a.host,b.pa.gb,b.pa.ib)}function AL(a,b,c){null!=a.Og&&a.Og.rt(b,c,a.Ji)}
g.Ae=function(){AL(this,this.la,this.qa())};
g.Ob=function(a){var b=this.h.Increment,c=!0;"down"==a&&(c=!1);a:if(!fr(this)&&(a=this.g.Ob(this.o,this.v,b,this.h.Wrap,c),null!=a&&(b=null!=a.Text,""===a.Text&&Kq(this,this.ca).Db&&(b=!1),!b||this.hb(a)))){null!=a.o&&(this.o=a.o);null!=a.v&&(this.v=a.v);null!=a.pa&&(a=N(this.host,a.pa.gb,a.pa.ib),null!=a&&(this.ea=a));if(this.Text!=rF(this)){a=this.l.j.h;for(b=0;b<a.length&&!(a[b]instanceof AK);b++);if(b==a.length)break a;this.Ia(this.Text)}M(this)}this.Ca(this.o,this.v)};
g.ng=function(a){return this.fa?!1:R.prototype.ng.call(this,a)};g.jk=function(){};g.Hk=function(a){var b=this.vi(),c=this.pc(a,!0,b,b);null!=c&&(C(this.Text,b,b+a.length)===a?(this.o=b,this.v=b+a.length):(null!=c.o&&(this.o=c.o),null!=c.v&&(this.v=c.v)))};
g.Rb=function(a,b){var c=this.s.ia();if(Kq(this,!0).Db||c==this.Text)null!=window.event&&Cf(window.event),this.fa=!1;else{var d;if(""!=this.Text){var e=Math.min(this.o,this.v),f=Math.max(this.o,this.v);f<this.Text.ba()?(f=C(this.Text,f,this.Text.ba()),-1!=c.jb(f)?d=C(c,e,c.ba()-f.ba()):d=""):d=C(c,e,c.ba())}else d=c;"ReInput"==a&&(d=b?C(d,0,d.ba()):C(d,0,d.ba()-1));if("Record"==a)return d;b=!1;if("LoseFocusInput"==a){if(""==d)return;b=CK=!0}for(c=0;c<d.ba();c++)c==d.ba()-1&&"LoseFocusInput"==a&&(this.rb=
!0),CK=!0,d.ba()>c+1?(e=C(d,c+1,c+2).charCodeAt(0)-65437,1==e||2==e?(DL(this,C(d,c,c+2),b),c++):"ReInput"==a?DL(this,C(d,c,c+1),b,!0):DL(this,C(d,c,c+1),b)):"ReInput"==a?DL(this,C(d,c,c+1),b,!0):DL(this,C(d,c,c+1),b);this.va=this.fa=this.rb=!1;if("ReInput"==a||"ClickInput"==a)this.ob=this.o,this.ea=8}};g.Copy=function(){this.Ca(this.o,this.v);R.prototype.Copy.call(this)};g.dd=function(){this.Ca(this.o,this.v);R.prototype.dd.call(this);AL(this,this.la,BL(this,!0,!0))};
g.rf=function(){R.prototype.rf.call(this);AL(this,this.la,BL(this,!0,!0))};g.Ub=function(){R.prototype.Ub.call(this);AL(this,this.la,BL(this,!0,!0))};
g.pc=function(a,b,c,d){if(Jr(this)){var e="";null!=a&&(e=a);null==c&&(c=this.o);null==d&&(d=this.v);a=this.g.pc(c,d,e,this.Xa,b);if(null!=a){null!=a.Ja&&(this.Ja=a.Ja);if(null!=a.Text){if(!this.hb(a))return;this.Ia(this.Text)}null!=a.o&&(this.o=a.o);null!=a.v&&(this.v=a.v);null!=a.Ib&&a.Ib||this.Ca(this.o,this.v);M(this);null!=a.pa&&N(this.host,a.pa.gb,a.pa.ib);AL(this,this.la,BL(this,!0,!0))}}};g.ne=function(){if(null!=this.Bh){var a=GK(this.g);Jq(this.s,a)}};
g.sd=function(){return this.l.j.sd()?!0:!1};g.ed=function(){var a=this;this.Xb=!1;cb||Sa||db||Wa?(this.xc=!0,this.Pg=setTimeout(function(){R.prototype.ed.call(a);a.xc=!1},100)):R.prototype.ed.call(this)};g.wp=function(){this.xc&&(clearTimeout(this.Pg),R.prototype.ed.call(this),this.xc=!1)};g.No=function(a,b){"up"===a&&(b*=-1);return b};
g.Ik=function(a){var b=this.o,c=this.v;if(void 0!=a&&null!==kg(a,0)){a=kg(a,0);var d=this.l.j,e=c=0;b=0;for(var f=-1,h=-1,k=0;k<d.g;k++)if(d.h[k]instanceof Q||f++,f==a){h=k;break}for(k=0;k<h;k++)b+=d.ma(k).ba();a=d.ma(h);null!=a&&(c=b,e=a.ba());b=c;c+=e}return{vd:b,Kf:c}};g.Qk=function(){this.Ia(this.Text)};
g.hb=function(a){if(null==a)return!1;var b="";null!=a.Text&&(b=a.Text);if(b!=this.Text&&this.i.TextChanging){a={};a.Result=b;a.Cancel=!1;var c=this.i.TextChanging;var d=GK(this.g);this.Xo();"undefined"==typeof this.Bb&&(this.Bb=!0);this.Bb&&this.ne();c=N(this.host,c,a);null!=c&&(this.ea=c);if(a.Cancel)return this.Ia(this.Text),this.Ca(this.o,this.v),!1;KK(this.g.l.j);if(this.sa)this.g.l.j.xh(d,!0);else a:if(a=this.g,""==d||null==d)for(d=0;d<a.l.j.g;d++){var e=a.l.j.h[d];e instanceof Q||e.fb()}else{c=
d.split("g-C2;");for(var f=0;f<c.length;f++)c[f]=c[f].replace(/@#GCC#@/g,",").replace(/@#GCD#@/g,"'").replace(/@#GCM#@/g,'"');var h=0;for(d=0;d<a.l.j.g;d++)if(e=a.l.j.h[d],!(e instanceof Q))if(h<c.length){f=c[h].split("g-C2,");var k=f[0],l="";if(1<f.length&&(l=f[1])&&""!=l&&k!=l)for(f=0,f=k.jb(" ",f);-1!=f;)C(l,f,f+1)==og[0]&&(k=C(k,0,f)+a.da.u+C(k,f+1,k.ba())),f=k.jb(" ",f);var m=h==a.l.j.g-1?!0:!1;var n=k.ba();if(n<e.g)for(f=0;f<e.g-n;f++)k+=a.da.u,l+=og[0];e=e instanceof xK?e.je(0,k,m,l):e.je(0,
k,m);if(e.Za&&e.ee)break a;h++}else e.fb()}}this.Ja=this.g.l.j.qa();R.prototype.hb.call(this,b);return!0};g.Ia=function(a){"undefined"==typeof this.Bb&&(this.Bb=!0);this.Bb&&R.prototype.Ia.call(this,a)};g.Xo=function(){LK(this.g.l.j)};g.Hm=function(a){if(R.prototype.Hm.call(this,a))return!0;switch(a){case 118:case 119:return!0}return!1};g.Bk=function(a){null!=a&&(!Xa&&"value"===a.propertyName||Xa&&"textinput"===a.type)&&AL(this,this.la,this.qa())};
g.bo=function(){return R.prototype.bo.call(this)||db};g.dj=function(){if(y||cb||db||hb){try{this.Rb("DirectInput")}finally{M(this),this.fa=!1}var a=this.mg;a.g=!0;a.h=Date.now()}};g.Zl=function(a){ot(this.mg,a)&&a.preventDefault()};g.ji=function(){try{this.Rb("DirectInput")}finally{this.fa=!1}};function EL(a){var b=a.cb;if(!Sa){a.fb();var c=BL(a,a.ca,!0)}setTimeout(function(){Sa&&(a.fb(),c=BL(a,a.ca,!0));a.Ia(c);M(a);a.cb=b;a.ea=12;a.o=a.v=OK(a.l.j);a.Ca(a.o,a.v)},0)}
g.Pf=function(){return null==this.qa()||""===this.qa()};g.zj=function(a,b){var c=QK(b,this.l.j);null!=c.ve&&(b=c.ve);R.prototype.zj.call(this,a,b)};g.Ch=function(a,b){var c=QK(b,this.l.j);null!=c.ve&&(b=c.ve);R.prototype.Ch.call(this,a,b);zL(this)};g.Mj=function(){return"field"===this.mb&&this.l&&this.l.j&&-1!==this.l.j.le(this.v,!0)?"nextfield":R.prototype.Mj.call(this)};g.Oj=function(){return"field"===this.mb&&this.l&&this.l.j&&-1!==this.l.j.le(this.v,!1)?"previousfield":R.prototype.Oj.call(this)};function FL(a,b){kq.call(this,a,b);var c=this;this.$=new yL(this.getUIInputElement(),this.getUIInputElement().id,{SpinOnKeys:!0,SpinWheel:!0,Increment:1,Wrap:!0,AllowSpin:!0},this);O(this.$,"ValueChanged",function(){Bq(c,c.getValue())});Or(this.$,function(d){Cq(c,d)});this.tc(b);this.initComplete=!0}t(FL,kq);g=FL.prototype;
g.tc=function(a){kq.prototype.tc.call(this,a);F(a)||(G(a.autoConvert)||this.setAutoConvert(a.autoConvert),G(a.clipContent)||this.setClipContent(a.clipContent),G(a.text)||this.setText(a.text),G(a.formatPattern)||this.setFormatPattern(a.formatPattern),void 0!==a.value&&this.setValue(a.value),G(a.promptChar)||this.setPromptChar(a.promptChar),G(a.showLiterals)||this.setShowLiterals(a.showLiterals),G(a.tabAction)||this.setTabAction(a.tabAction),!0===a.showSpinButton&&this.addSpinButton(a.spinButtonPosition?
I(Na,a.spinButtonPosition)||"rightside":"rightside"),G(a.allowSpin)||this.setAllowSpin(a.allowSpin),G(a.exitOnLastChar)||this.setExitOnLastChar(a.exitOnLastChar),G(a.highlightText)||this.setHighlightText(a.highlightText),G(a.spinWheel)||this.setSpinWheel(a.spinWheel),G(a.spinOnKeys)||this.setSpinOnKeys(a.spinOnKeys),G(a.acceptsTabChar)||(this.acceptsTabChar=a.acceptsTabChar))};g.Tc=function(){return this.$};g.getUseClipboard=function(){return this.$.Fd()};g.getIsOverwrite=function(){return fF(this.$)};
g.setSelectionLength=function(a){iF(this.$,a)};g.setSelectionStart=function(a){this.$.wh(a)};g.setAcceptsCrlf=function(a){kF(this.$,a)};g.Xf=function(){return this.$.Ue()};g.setAutoConvert=function(a){a=H(a);this.$.Hb=a};g.Jj=function(){return this.$.Hb};g.setClipContent=function(a){mF(this.$,a)};g.Lj=function(){return this.$.na};g.setExitOnLastChar=function(a){a=H(a);this.$.Xa=a};g.Oh=function(){return this.$.Xa};g.setEditMode=function(a){nF(this.$,a)};g.ef=function(){return this.$.bb};
g.setExitOnLeftRightKey=function(a){Ir(this.$,a)};g.ff=function(){return this.$.Cc};g.setText=function(a){this.$.Rd(a)};g.setCursorPosition=function(a){var b=this.$;a=kg(a,-1);if(null!==a){var c=b.l.j,d=0;if(0<c.g)for(var e=0;e<c.g;e++)c.h[e]instanceof Q||d++;a=Math.min(a,d-1);a!==b.lc&&(b.lc=a)}};g.Cn=function(){return this.$.nk()};
g.setFormatPattern=function(a){var b=this.$;a=lg(a);a=fs(a,"filter");if(a!==b.ud)try{var c=VK(a,b);b.fb();b.l.j=c;var d=b.eb().h,e=QK(d,b.l.j);null!=e.ve&&(d=e.ve);b.eb().g=d;var f=b.xb().h,h=QK(f,b.l.j);null!=h.ve&&(f=h.ve);b.xb().g=f;b.sa=b.l.j.s;b.fb();b.wh(0);b.ud=a;var k=BL(b,b.ca,!1);b.Ia(k)}catch(l){hc()}};g.In=function(){return this.$.ud};g.setWatermarkDisplayNullText=function(a){Nr(this.$,a)};g.jf=function(){return this.$.xb().h};g.setValue=function(a){this.$.ra(a)};g.setHighlightText=function(a){this.$.kj(a)};
g.gf=function(){return this.$.Od()};g.setPromptChar=function(a){var b=this.$;a=ng(a);null!==a&&a!==b.u&&(b.u=a,a=b.qa(),b.ra(a))};g.Qn=function(){return this.$.u};g.setShowLiterals=function(a){var b=this.$;a=I(Ba,a);a!=b.Wd&&null!==a&&(b.Wd=a,a=b.qa(),b.ra(a))};g.Sn=function(){return this.$.Qb()};g.setTabAction=function(a){var b=this.$;a=I(Da,a);b.mb!==a&&null!==a&&(b.mb=a)};g.Vn=function(){return this.$.mb};
g.setSelectedText=function(a){var b=this.$;if(null==a||0==a.ba())b.rf();else{var c=b.Ja,d=b.Text,e=b.g.pc(b.o,b.v,a,!1,!0);e.Text=BL(b,b.ca,!1);b.hb(e)&&(a=hF(b),null!=e.o&&(b.o=e.o),null!=e.v&&(b.v=e.v),e=hF(b),b.Ia(BL(b,b.ca,b.ca)),Je=0==a&&0!=e?!0:!1,b.Ca(b.o,b.v),Je=!1,b.Ja=b.g.l.j.qa(),b.Text!=d&&CL(b,"TextChanged"),b.Ja!=c&&CL(b,"ValueChanged"),AL(b,b.la,BL(b,!0,!0)))}};g.setWatermarkNullText=function(a){Mr(this.$,a)};g.kf=function(){return this.$.eb().h};
g.setUseClipboard=function(a){return lF(this.$,a)};g.clear=function(){this.$.fb()};g.doSpinDown=function(a,b){this.$.fj(a,b)};g.doSpinUp=function(a,b){this.$.gj(a,b)};g.selectAll=function(){this.$.Yc()};g.deselectAll=function(){Kr(this.$)};g.getValue=function(){return this.$.qa()};g.getValueIsFull=function(){a:{var a=this.$.g.l.j;var b;for(b=0;b<a.g;b++){var c=a.h[b];if(1==a.g&&0==c.g)break;if("PromptField"!=c.u&&!c.Mo()){a=!1;break a}}a=!0}return a};g.getText=function(){return this.$.ia()};
g.getSelectedText=function(){var a=this.$,b="",c=Math.min(a.o,a.v),d=Math.max(a.o,a.v),e=d-c;if(0!=e)if(b=Kq(a,!0),b.Db)b=C(b.og,c,d);else if(b=C(a.Text,c,d),"excludeliterals"==a.na){a=a.g.l.j;d="";var f=cs(a,c);var h=f.index;b=f.offset;f=cs(a,c+e);c=f.index;e=f.offset;0!=c&&0==e&&(c--,e=a.h[c].text.ba());for(f=h;f<=c;f++){var k=a.h[f];k instanceof Q||(h==c?d=C(k.text,b,e):f==h?d+=C(k.text,b,k.text.ba()):f==c?d+=C(k.text,0,e):d+=k.text)}b=d}return b};
g.getDisplayText=function(){var a=this.$;return BL(a,a.ca,!0)};g.getCurrentField=function(){return this.$.we()};g.getReadOnly=function(){return fr(this.$)};g.getSelectionLength=function(){return hF(this.$)};g.getSelectionStart=function(){return gF(this.$)};g.onEditStatusChanged=function(a){O(this.$,"EditStatusChanged",a)};g.removeEditStatusChanged=function(a){P(this.$,"EditStatusChanged",a)};g.onInvalidInput=function(a){O(this.$,"InvalidInput",a)};
g.removeInvalidInput=function(a){P(this.$,"InvalidInput",a)};g.onKeyExit=function(a){O(this.$,"KeyExit",a)};g.removeKeyExit=function(a){P(this.$,"KeyExit",a)};g.onSpinDown=function(a){O(this.$,"SpinDown",a)};g.removeSpinDown=function(a){P(this.$,"SpinDown",a)};g.onSpinUp=function(a){O(this.$,"SpinUp",a)};g.removeSpinUp=function(a){P(this.$,"SpinUp",a)};g.onTextChanged=function(a){O(this.$,"TextChanged",a)};g.removeTextChanged=function(a){P(this.$,"TextChanged",a)};
g.onTextChanging=function(a){O(this.$,"TextChanging",a)};g.removeTextChanging=function(a){P(this.$,"TextChanging",a)};g.onInput=function(a){O(this.$,"Input",a)};g.removeInput=function(a){P(this.$,"Input",a)};g.addSpinButton=function(a){var b=this;return kq.prototype.Jk.call(this,function(){return b.Zi()},function(){return b.Yi()},"leftside"===a)};g.Zi=function(){this.Xg()&&this.$.Ob("up")};g.Yi=function(){this.Xg()&&this.$.Ob("down")};g.Ni=function(){return this.$.h.AllowSpin};g.Xg=function(){return this.$.allowSpin(2)};
g.setAllowSpin=function(a){this.$.h.AllowSpin=a};g.onValueChanged=function(a){O(this.$,"ValueChanged",a)};g.removeValueChanged=function(a){P(this.$,"ValueChanged",a)};g.paste=function(){};g.undo=function(){this.$.Ub()};g.onKeyDown=function(a){O(this.$,"keydown",a)};g.removeKeyDown=function(a){P(this.$,"keydown",a)};g.onKeyUp=function(a){O(this.$,"keyup",a)};g.removeKeyUp=function(a){P(this.$,"keyup",a)};g.onFocusOut=function(a){O(this.$,"focusout",a)};
g.removeFocusOut=function(a){P(this.$,"focusout",a)};g.setExitOnEnterKey=function(a){this.$.setExitOnEnterKey(a)};g.yd=function(){return this.$.yd()};g.setSpinWheel=function(a){this.$.h.SpinWheel=a};g.Qh=function(){return this.$.h.SpinWheel};g.setSpinOnKeys=function(a){this.$.h.SpinOnKeys=a};g.Pj=function(){return this.$.h.SpinOnKeys};g.isPassRequiredRule=function(){return this.getValueIsFull()};g.Ml=function(){return!this.getReadOnly()&&this.getEnabled()&&!F(this.getValue())&&this.tg};
g.gi=function(){return kq.prototype.gi.call(this)&&!F(this.getValue())};g.Zg=function(){EL(this.$)};g.Wj=function(a){a=this.$.g.le(this.$.v,a).o;return void 0!==a?(this.setSelectionStart(a),qg(this.$,a,a),a):-1};g.getMatchValue=function(){return this.getValue()};g.getTextLength=function(){var a=this.getValue();return a?a.toString().length:0};
p.Object.defineProperties(FL.prototype,{isOverwrite:{configurable:!0,enumerable:!0,get:function(){return this.getIsOverwrite()}},selectionLength:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionLength()},set:function(a){this.setSelectionLength(a)}},selectionStart:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionStart()},set:function(a){this.setSelectionStart(a)}},text:{configurable:!0,enumerable:!0,get:function(){return this.getText()},set:function(a){this.setText(a)}},
value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()},set:function(a){this.setValue(a)}},selectedText:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedText()},set:function(a){this.setSelectedText(a)}},valueIsFull:{configurable:!0,enumerable:!0,get:function(){return this.getValueIsFull()}},displayText:{configurable:!0,enumerable:!0,get:function(){return this.getDisplayText()}},currentField:{configurable:!0,enumerable:!0,get:function(){return this.getCurrentField()}},
acceptsCrlf:{configurable:!0,enumerable:!0,get:function(){return this.Xf()},set:function(a){this.setAcceptsCrlf(a)}},acceptsTabChar:{configurable:!0,enumerable:!0,get:function(){return this.$.acceptsTabChar},set:function(a){this.$.acceptsTabChar=a}},autoConvert:{configurable:!0,enumerable:!0,get:function(){return this.Jj()},set:function(a){this.setAutoConvert(a)}},clipContent:{configurable:!0,enumerable:!0,get:function(){return this.Lj()},set:function(a){this.setClipContent(a)}},exitOnLastChar:{configurable:!0,
enumerable:!0,get:function(){return this.Oh()},set:function(a){this.setExitOnLastChar(a)}},editMode:{configurable:!0,enumerable:!0,get:function(){return this.ef()},set:function(a){this.setEditMode(a)}},exitOnLeftRightKey:{configurable:!0,enumerable:!0,get:function(){return this.ff()},set:function(a){this.setExitOnLeftRightKey(a)}},cursorPosition:{configurable:!0,enumerable:!0,get:function(){return this.Cn()},set:function(a){this.setCursorPosition(a)}},formatPattern:{configurable:!0,enumerable:!0,
get:function(){return this.In()},set:function(a){this.setFormatPattern(a)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.jf()},set:function(a){this.setWatermarkDisplayNullText(a)}},highlightText:{configurable:!0,enumerable:!0,get:function(){return this.gf()},set:function(a){this.setHighlightText(a)}},promptChar:{configurable:!0,enumerable:!0,get:function(){return this.Qn()},set:function(a){this.setPromptChar(a)}},showLiterals:{configurable:!0,enumerable:!0,get:function(){return this.Sn()},
set:function(a){this.setShowLiterals(a)}},tabAction:{configurable:!0,enumerable:!0,get:function(){return this.Vn()},set:function(a){this.setTabAction(a)}},watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.kf()},set:function(a){this.setWatermarkNullText(a)}},useClipboard:{configurable:!0,enumerable:!0,get:function(){return this.getUseClipboard()},set:function(a){this.setUseClipboard(a)}},allowSpin:{configurable:!0,enumerable:!0,get:function(){return this.Ni()},set:function(a){this.setAllowSpin(a)}},
exitOnEnterKey:{configurable:!0,enumerable:!0,get:function(){return this.yd()},set:function(a){this.setExitOnEnterKey(a)}},spinWheel:{configurable:!0,enumerable:!0,get:function(){return this.Qh()},set:function(a){this.setSpinWheel(a)}},spinOnKeys:{configurable:!0,enumerable:!0,get:function(){return this.Pj()},set:function(a){this.setSpinOnKeys(a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcMask"}},spinButton:{configurable:!0,enumerable:!0,set:function(a){this.addSpinButton(a)}},
showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.$.showContextMenu=a}}});v("GcMask",FL);function GL(){Tr.apply(this,arguments)}t(GL,Tr);GL.prototype.Gd=function(){throw Zb();};function HL(){GL.call(this,"DigitField");this.Hc=this.Qa=null;this.maxLength=this.minLength=this.i=this.h=0;this.Ra=null}t(HL,GL);g=HL.prototype;g.wb=function(){var a={};a.pf=GL.prototype.wb.call(this);a.Qa=this.Qa;a.Hc=this.Hc;return a};g.Lb=function(a){this.Qa=a.Qa;this.Hc=a.Hc;GL.prototype.Lb.call(this,a.pf)};function IL(a,b,c){a.h=c;a.i=b;a.minLength=c;a.maxLength=b+c}
g.Gd=function(a){a=JL(this,a);this.Qa!=a&&(this.Qa=a);return a};function JL(a,b){b=b.toString();var c=b.indexOf(".");c=-1!=c?b.substring(c+1,b.length):"";b=15;15>a.h+a.i&&(b=a.h+a.i);for(c=c.toString();c.length<a.Ba();)c+="0";c.length>b&&(c=c.substring(0,b));return c=KL(a,c)}
g.ra=function(a,b){if(1==b)return this.text=null==this.Qa?"":this.Qa;if(null==a)this.fb();else{a=a.toString();a=a.replace("-","");b=a.indexOf(".");this.Hc=null;var c=this.Ba();a=-1==b?"":a.substring(b+1,a.length);0<c?this.Jb(0,c,a):this.Eb(0,a)}return this.text=this.Qa};
g.Ab=function(a,b){var c=null==this.Qa?"":this.Qa,d={};d.kb=a;if(0==this.Ba()||a>=c.length)return d;0==b&&(b=1);b>c.length-a&&(b=c.length-a);this.Hc=c=c.substring(0,a)+c.substring(a+b,c.length);c.length<this.h&&(c=KL(this,c));this.Qa=c;d.ge=c;return d};
g.Eb=function(a,b){var c=!1,d=null==this.Hc?"":this.Hc;null!=this.Qa&&a>(null==this.Hc?"":this.Hc).length&&(d=this.Qa.substring(0,a));a>=this.h+this.i&&(c=!0);if(a>d.length&&0!=b.length)for(var e=d.length;e<a;e++)d+="0";d=d.substring(0,a)+b+d.substring(a,d.length);d.length>this.h+this.i&&(d=d.substring(0,this.h+this.i));this.Hc=d;d.length<this.h&&(d=KL(this,d));a+=b.toString().length;a>d.length&&(a=d.length);this.Qa=d;b={};b.ge=d;b.kb=a;b.Za=c;return b};
g.Jb=function(a,b,c){var d=null==this.Hc?"":this.Hc;0==b&&(b=1);if(a<d.length)b>d.length-a&&(b=d.length-a),d=d.substring(0,a)+d.substring(a+b,d.length);else if(0!=c.length)for(b=d.length;b<a;b++)d+="0";d=d.substring(0,a)+c+d.substring(a,d.length);d.length>this.h+this.i&&(d=d.substring(0,this.h+this.i));this.Hc=d;d.length<this.h&&(d=KL(this,d));a+=c.length;a>d.length&&(a=d.length);this.Qa=d;c={};c.kb=a;c.ge=d;return c};g.fb=function(){this.text=this.Hc=this.Qa=null};
function KL(a,b){a=a.h-b.length;if(0<a)for(var c=0;c<a;c++)b+="0";return b}function LL(){GL.call(this,"FixField");this.me=this.h=this.i=null;this.s=w.NumberCurrencySymbol;this.ca=this.ea=null}t(LL,GL);g=LL.prototype;g.wb=function(){var a={};a.pf=GL.prototype.wb.call(this);a.me=this.me;return a};g.Lb=function(a){GL.prototype.Lb.call(this,a.pf);this.me=a.me};
function ML(a,b,c){for(;-1!=b.indexOf("@#GCD#@");)b=b.replace("@#GCD#@","'");for(;-1!=b.indexOf("@#GCM#@");)b=b.replace("@#GCM#@",'"');for(;-1!=b.indexOf("@#GCF#@");)b=b.replace("@#GCF#@","\\");for(;-1!=c.indexOf("@#GCD#@");)c=c.replace("@#GCD#@","'");for(;-1!=c.indexOf("@#GCM#@");)c=c.replace("@#GCM#@",'"');for(;-1!=c.indexOf("@#GCF#@");)c=c.replace("@#GCF#@","\\");NL(a,b);OL(a,c);a.me=""}g.Gd=function(a,b){return 0>a?this.h:0<a?this.i:b?this.i:this.h};
function PL(a,b,c){return QL(0<b||0==b&&c?a.ea:a.ca,a.s)}function RL(a,b){a.me=b?a.i:a.h}g.fb=function(){this.me=""};g.Ba=function(){return this.me.length};g.Ab=function(a){var b={};b.kb=a;b.ge=this.me;return b};function NL(a,b){a.ea=b;a.i=QL(b,a.s)}function OL(a,b){a.ca=b;a.h=QL(b,a.s)}function SL(a,b){a.s=b;a.i=QL(a.i,a.s);a.h=QL(a.h,a.s)}
function QL(a,b){if(null==a)return"";for(var c="",d=!1,e=0;e<a.length;e++)d?(d=!1,c+=bd(a,e)):"\\"==bd(a,e)?d=!0:c="$"==bd(a,e)||"\u00a5"==a.charAt(e)||"\uffe5"==a.charAt(e)?c+b:c+bd(a,e);return c}function TL(){GL.call(this,"IntegerField");this.h=null;this.maxLength=this.minLength=0;this.Hc=this.Qa=this.Oa=this.i=null}t(TL,GL);g=TL.prototype;g.wb=function(){var a={};a.pf=GL.prototype.wb.call(this);a.Qa=this.Qa;a.Hc=this.Hc;return a};
g.Lb=function(a){GL.prototype.Lb.call(this,a.pf);this.Qa=a.Qa;this.Hc=a.Hc};function UL(a,b,c,d){a.Oa=d;a.h=c;a.minLength=c;a.i=b;a.maxLength=c+b}g.fb=function(){this.text=this.Qa=this.Hc=null};g.Gd=function(a){a=VL(this,a);if(a!=this.Qa){var b=null==this.Qa?0:this.Qa.length;null!=a&&a.length>b&&(this.Qa=a)}return a};
function VL(a,b){if(null==b)return null;var c=b.toString(),d=c.indexOf(".");c=-1==d?c:c.substring(0,d);for(0>b&&(c=c.replace("-",""));0<c.length&&"0"==c.charAt(0);)c=c.substring(1,c.length);c.length<=a.h+a.i&&(c=WL(a,c));if(""===c&&0===a.h&&"0"!==a.Qa)return c;""==c&&"0"==a.Qa&&(c="0");return c}
g.ra=function(a,b){if(1==b)this.text=null==this.Qa?"":this.Qa;else if(0==b){if(null==a)this.fb();else{b="";this.Hc=null;var c=this.Ba();1<=Math.abs(a)?(b=Math.abs(a).toString(),a=b.indexOf("."),-1!=a&&(b=b.substring(0,a)),0<c?this.Jb(0,c,b,!0):XL(this,0,b)):this.Qa=WL(this,b)}this.text=this.Qa}};
g.Ab=function(a,b){var c={};c.newText=null==this.Qa?"":this.Qa;c.kb=a;c.$a=!1;if(0==this.Ba())return c;var d=a;a=null==this.Qa?"":this.Qa;var e=d,f=!1;var h=null==this.Qa?"":this.Qa;var k=!1;if(e!=a.length){0==b&&(b=1,a.substring(e,e+1)==this.Oa&&e++);b+e>a.length&&(b=a.length-e);d=a.length-e-b;e+b<a.length&&a.substring(e+b,e+b+1)==this.Oa&&d--;for(a=0<e?a.substring(0,e)+a.substring(e+b,a.length):a.substring(b,a.length);""!=this.Oa&&-1!=a.indexOf(this.Oa);)a=a.replace(this.Oa.toString(),"");for(;a.length>
this.h&&"0"==a.charAt(0)&&(f=!0,0!=this.h||1!=a.length);)a=a.substring(1,a.length);a=WL(this,a);d=1==f?0:a.length-d;h=a;k=!0}if(0==k)return c;this.Qa=h;c.kb=d;c.ge=h;c.$a=!0;return c};function XL(a,b,c){b=a.Eb(b,c,null==a.Qa?"":a.Qa,!1);if(!b.result)return b.Za=!0,b;a.Qa=b.ge;return b}
g.Jb=function(a,b,c,d){var e={Za:!1};this.maxLength<a+b&&(e.Za=!0);e=null==this.Qa?"":this.Qa;e=this.Eb(a,c,d||1!=b||e.substring(a,a+1)!=this.Oa?e.substring(0,a)+e.substring(a+b,e.length):e.substring(0,a)+e.substring(a+2,e.length),!0);if(!e.result)return e.Za=!0,e;this.Qa=e.ge;return e};function WL(a,b){a=a.h-b.toString().length;if(0<a)for(var c=0;c<a;c++)b="0"+b;return b}
g.Eb=function(a,b,c,d){var e={};e.ge=c;e.kb=a;e.result=!1;e.Za=!1;c=e.ge.replace(this.Oa.toString(),"");for(var f=a,h=0;0<c.length&&"0"==c.substring(0,1)&&0<f;)c=c.substring(1,c.length),f--,h++;if(c.length>=this.h+this.i)return e.Za=!0,e;a<e.ge.length&&e.ge.substring(a,a+1)==this.Oa&&a++;f=e.ge.length-a;for(var k=b.toString().length;0<=k;k--){c=e.ge.substring(0,a)+b.toString().substring(0,k)+e.ge.substring(a,e.ge.length);1<c.length&&"0"==c.charAt(0)&&0==a&&!d&&(e.Za=!0);for(;1<c.length&&"0"==c.charAt(0);)c=
c.substring(1,c.length);if(c.length<=this.h+this.i)break}""==c&&0<b.length&&"0"==b.charAt(0)&&(c="0");c=WL(this,c);a=c.length-f;e.ge=c;e.kb=0>a?0:a;e.result=!0;e.cp=h;return e};function YL(){GL.call(this,"DpField");this.ac=!1;this.minLength=0;this.maxLength=1;this.text=this.Ra=null}t(YL,GL);g=YL.prototype;g.wb=function(){var a={};a.pf=GL.prototype.wb.call(this);a.ac=this.ac;a.Ra=this.Ra;a.text=this.text;return a};
g.Lb=function(a){GL.prototype.Lb.call(this,a.pf);this.ac=a.ac;this.Ra=a.Ra;this.text=a.text};g.Gd=function(a){return 1==a?(this.ac=!0,this.Ra):1==this.ac?this.Ra:""};g.ra=function(a,b){0==this.maxLength?this.ac=!1:null==a&&0==b?this.fb():0==b?ZL(this,a.toString(10)):this.ac=!0};g.Ab=function(){this.fb();return{kb:0}};g.Eb=function(a,b){ZL(this,b)};function ZL(a,b){0<=Math.abs(parseFloat(b)).toString().indexOf(".")?a.ac=!0:a.fb()}g.fb=function(){this.ac=!1};
g.Ba=function(){return 1==this.ac?this.Ra.length:0};var $L={Cut:"cut",Filter:"filter"};v("DecimalMode",$L);var aM={Left:"left",BottomBorder:"bottomborder",Right:"right"};v("SliderPosition",aM);var bM={Zero:"zero",Null:"null"};v("ClearModeAction",bM);var cM={NoControl:"nocontrol",Positive:"positive",Negative:"negative"};v("ValueSign",cM);function dM(){tF.call(this,5);this.s="restore";this.nc="";this.zc=!1;this.Oa=null;this.Ld=0;this.i=Array(this.Ld);this.Ra=null;this.ea=this.Ea=!0;this.Rc=this.qc="";this.bc=99999.99;this.Zb=-99999;this.Fb="nocontrol";this.u=!0;this.ca=!1}t(dM,tF);function W(a){return a.h[0]}function X(a){return a.h[1]}function eM(a){return a.h[2]}function Y(a){return a.h[3]}function fM(a){return a.h[4]}g=dM.prototype;
g.wb=function(){var a={};a.qr=W(this).wb();a.Zq=X(this).wb();a.Vq=eM(this).wb();a.Uq=Y(this).wb();a.pr=fM(this).wb();a.Ea=this.Ea;a.br=this.ea;a.qc=this.qc;return a};g.Lb=function(a){W(this).Lb(a.qr);X(this).Lb(a.Zq);eM(this).Lb(a.Vq);Y(this).Lb(a.Uq);fM(this).Lb(a.pr);this.Ea=a.Ea;this.ea=a.br;this.qc=a.qc};g.sh=function(){var a=Y(this).text;a=null==a||""==a?a:a.toString().replace(gM,"");a=null==a||""==a?"0":"0"+hM+a;return this.Ea?a:iM+a};
g.th=function(){var a=X(this).text;a=null==a||""==a?a:a.toString().replace(gM,"");a=null==a||""==a?"0":a;return this.Ea?a:iM+a};g.qa=function(){var a=!1,b=null==this.sh()||""==this.sh()?0:parseFloat(this.sh());b=jM(b,15);var c=null==this.th()||""==this.th()?0:parseFloat(this.th());c=jM(c,0);0>b&&(a=!0);var d=0;-1!=b.toString().indexOf(hM)&&(d=b.toString().length-b.toString().indexOf(hM)-1);if(0!=b){if(b=Math.abs(c)+Math.abs(b),c!=Math.abs(c)||0==c&&a)b*=-1}else b=1*c;0<d&&(b=jM(b,d));return b};
function kM(a){var b=Y(a).Qa;b=null==b||""==b?b:b.replace(gM,"");b=null==b||""==b?"0":"0"+hM+b;return 1==a.Ea?b:iM+b}function lM(a){var b=X(a).Qa;b=null==b||""==b?b:b.replace(gM,"");b=null==b||""==b?"0":b;return a.Ea?b:iM+b}
function mM(a){var b=parseFloat(kM(a));b=jM(b,15);a=parseFloat(lM(a));a=jM(a,0);var c=0;-1!=b.toString().indexOf(hM)&&(c=b.toString().length-b.toString().indexOf(hM)-1);if(0!=b){var d=Math.abs(a)+Math.abs(b);if(a!=Math.abs(a)||b!=Math.abs(b))d*=-1;0<c&&(d=jM(d,c))}else d=1*a;return d}
g.vh=function(a,b){var c=nM(this,a);a=c.xd;var d=c.offset;c=nM(this,b);b=c.xd;c=c.offset;for(var e="",f=a;f<=b;f++)if(!(this.h[f]instanceof LL)){var h=this.h[f];h instanceof YL?e+=1==h.ac?this.Ra:"":(h=null==h.Qa?"":h.Qa,e=a==b?e+h.substring(d,c):f==a?e+h.substring(d,h.length):f==b?e+h.substring(0,c):e+h)}return e};function oM(a,b){a=pM(a);return b<=a.bc-0&&b>=a.Zb-0?!0:!1}
function pM(a,b){for(var c={},d="",e=X(a).h+X(a).i,f=0;f<e;f++)d+="9";f=0;e=Y(a).h+Y(a).i;for(d+=hM;f<e;f++)d+="9";f=parseFloat(d);d=parseFloat(iM+d);var h=a.bc,k=a.Zb;void 0!==b&&b||"keep"!=a.s||(h=Number.MAX_VALUE,k=-Number.MAX_VALUE);c.bc=parseFloat(a.dd(Math.min(parseFloat(h.toString()),parseFloat(f.toString())),e));c.Zb=parseFloat(a.dd(Math.max(parseFloat(k.toString()),parseFloat(d.toString())),e));"positive"==a.Fb?0>c.Zb&&(c.Zb=0):"negative"==a.Fb&&0<c.bc&&(c.bc=0);return c}
g.dd=function(a,b){var c=a.toString();-1!==c.indexOf("e-")&&(c=fg(a.toFixed(20)));a=c.indexOf(hM);b=a+1+b;-1!=a&&b<=c.length&&(c=c.substring(0,b));return c};
function jM(a,b){if(null==a)return null;if(0>b||null==b)return a;var c=a.toString()+"_____"+b.toString(),d=qM[c];if(void 0!==d)return d;var e=a.toString();-1!==e.indexOf("e-")&&(e=fg(a.toFixed(20)));a=!0;"-"==e.substr(0,1)&&(a=!1,e=e.substr(1,e.length-1));if(null!=/(\d+)(?:.(\d+))?e([\-+])(\d+)/.exec(e))if(d=parseFloat(RegExp.$4),"-"==RegExp.$3){d-=RegExp.$1.length;var f="";for(e=0;e<d;e++)f+="0";e="0."+f+RegExp.$1;e+=RegExp.$2}else if(d-=RegExp.$2.length,f="",0<=d){for(e=0;e<d;e++)f+="0";e=RegExp.$1+
RegExp.$2+f}else d*=-1,e=RegExp.$1+RegExp.$2.substr(0,RegExp.$2.length-d)+"."+RegExp.$2.substr(RegExp.$2.length-d,d);if(-1==e.indexOf(".")){a||(e="-"+e);var h=parseInt(e,10);return qM[c]=h}f=e.split(".");d=f[0];var k=f[1];if(k.length<=b)return a||(e="-"+e),0==parseFloat(e)?h=0:h=e,qM[c]=h;f=k.substr(0,b);if(5<=parseInt(k.substr(b,1),10))if(f=parseInt(f,10),f++,f=f.toString(),f.length>b)f="",b=parseInt(d,10),b++,d=b.toString();else if(f.length<b){k="";for(e=0;e<b-f.length;e++)k+="0";f=k+f}e=d;""!=
f&&(e=e+"."+f);a||(e="-"+e);0==parseFloat(e)?h=0:h=e;return qM[c]=h}function rM(a,b,c){var d=!1,e=!1,f=!1;if(null==b){e=!0;var h=sM(a)}else h=Y(a).Gd(b),""!=h&&null!=h&&(f=!0),h=eM(a).Gd(f)+h,h=X(a).Gd(b)+h,0!=h.length&&0!=h.replace(a.Oa,"").length&&0!=parseFloat(h.replace(a.Oa,"").replace(a.Ra,"."))||""==tM(a)||!c||(d=!0,h=tM(a)),0==d&&(h=uM(a,h));a={};a.Text=h;a.bs=d;a.co=e;return a}function vM(a,b,c){c=PL(W(a),b,a.Ea)+c;return c+=PL(fM(a),b,a.Ea)}
function tM(a){if(null!=a.qc&&0!=a.qc.length){var b="",c=/[^\\]?\{(.*[^\\])\}/.exec(a.qc);null!=c?(c=c[1],0!=c.length&&(b=c.charAt(0),2<=c.length&&"\\"==b&&(b=c.charAt(1)),b=a.nc.replace(/#/g,b).replace(/0/g,b).replace(/,/g,gM).replace(/\./g,a.Ra))):b=a.qc.replace(/\\(.)/g,"$1");return b}return""}
function sM(a){var b="",c=/[^\\]?\{(.*[^\\])\}/.exec(a.Rc);null!=c?(c=c[1],0!=c.length&&(b=c.charAt(0),2<=c.length&&"\\"==b&&(b=c.charAt(1)),b=a.nc.replace(/#/g,b).replace(/0/g,b).replace(/,/g,gM).replace(/\./g,a.Ra))):b=a.Rc.replace(/\\(.)/g,"$1");return b}
function wM(a,b){var c={};if(0==b)return c.offset=0,c.index=0,c;for(var d=xM(a),e=a.g-1;0<=e;e--){var f=a.h[e];if(f instanceof LL){var h=mM(a);f=f.Gd(h,a.Ea).length}else f=f.Ba()>f.minLength?f.Ba():f.minLength;if(b>d-f&&b<=d)return c.offset=b-d+f,c.index=e,c;d-=f}c.offset=0;c.index=-1;return c}
function yM(a,b){var c={},d=0,e;for(e=0;e<a.g;e++){var f=a.h[e];if(f instanceof LL){var h=mM(a);f=f.Gd(h,a.Ea).length}else f=f.Ba()>f.minLength?f.Ba():f.minLength;if(b>=d&&b<d+f)return c.offset=b-d,c.index=e,c;d+=f}if(b==d)return f=a.h[a.g-1],h=mM(a),c.offset=f.Gd(h,a.Ea).length,c.index=a.g-1,c;c.offset=0;c.index=-1;return c}g.ma=function(a){return 5<a||0>a?null:this.h[a]};
g.Ya=function(a){for(var b={},c=0,d=0;d<a;d++){var e=this.ma(d);2!=d&&(c+=e.Ba())}d=eM(this);2<a&&d.ac&&(c+=d.Ra.length);a=this.ma(a);b.start=c;b.length=a.Ba();return b};function zM(a,b){if(0<mM(a)||b)a.Ea=!0;RL(W(a),a.Ea);RL(fM(a),a.Ea)}function AM(a){zM(a,!0);X(a).fb();eM(a).fb();Y(a).fb();return!0}
g.ra=function(a,b){if(null==a)return AM(this);var c=a;0<c||"positive"==this.Fb?this.Ea=!0:0>c||"negative"==this.Fb?this.Ea=!1:this.ca||(this.Ea=!0);a=jM(a,Y(this).maxLength);if(0!=b&&!oM(this,a))return!1;X(this).ra(a,b);Y(this).ra(a,b);c=!1;0==Y(this).h+Y(this).i&&(Y(this).maxLength=0);if(1==b)var d=eM(this).ac;if(0<Y(this).h||0<Y(this).Ba())c=!0;1==b&&(c=1==d?!0:c);eM(this).ra(a,c);zM(this,!1);return!0};
function BM(a,b,c,d){a.Ea=0>b?!1:0<b?!0:null!=c?c:!0;c=b.toString();-1!==c.indexOf("e-")&&(c=fg(b.toFixed(20)));var e=c.indexOf(hM);-1!=e&&c.substring(e+1,c.length).length>Y(a).maxLength&&!d&&(b=jM(b,Y(a).maxLength),c=b.toString(),-1!==c.indexOf("e-")&&(c=fg(b.toFixed(20))));c=c.replace(iM,"0");e=c.indexOf(hM);if(-1!=e){b=c.substring(0,e);var f=c.substring(e+1,c.length)}else b=c;-1!=e?(X(a).text=b,Y(a).text=f,Y(a).Qa=f,eM(a).ac=!0):(X(a).text=b,Y(a).text="",Y(a).Qa="",eM(a).ac=0==Y(a).h?!1:!0)}
g.$d=function(a,b){var c=0,d={valid:!1};d.kb=a;a=nM(this,a);var e=a.xd;a=a.offset;var f={},h=CM(this,b);d.Eg=h.Eg;b=h.Uh;var k=h.vg;var l=h.Xn;var m=h.$a;d.valid=m;if(0==m)return d;if(1==l&&0==eM(this).Ba()&&1==e)if(1==eM(this).maxLength){l=k.length;for(f=e=null==X(this).Qa?"":X(this).Qa;0<f.length&&"0"==f.charAt(0);)f=f.substring(1,f.length),c++;for(e=e.substring(a,e.length);""!=this.Oa&&-1!=e.indexOf(this.Oa);)e.replace(this.Oa,"");k+=e;X(this).Jb(a,e.length,b,!1);eM(this).ac=!0;f=Y(this).Eb(0,
k);a=f.kb;e=3;a=Math.min(l,a)}else f=XL(X(this),a,b),a=f.kb;else{if(""==b)return h.Eg&&(d.kb=DM(this,e)+a),d;1==e&&(f=XL(X(this),a,b),a=f.kb);3==e&&(f=Y(this).Eb(a,b),a=f.kb)}d.valid=!f.Za;a=DM(this,e)+a;d.kb=a;d.At=f;d.bp=c;this.zc=!0;return d};
g.Lf=function(a,b,c,d){EM(this,a,b);var e={valid:!0};if(0==xM(this))return e=this.$d(a,c,d),e.valid=!0,e;var f=FM(this,a,b);var h=f.Lq;d=f.Mq;var k=f.Jp;f=f.Kp;var l=CM(this,c);if(l.Eg)return e.Eg=l.Eg,e;var m=l.Uh;var n=l.vg;var q=l.Xn;if(0==l.$a)return e;l=0;var u=!1;if(h==k)switch(h){case 2:if(0<m.length&&(d=X(this).Ba(),e=XL(X(this),d,m),d=e.kb,a=DM(this,1)+d,0==e.result))return e;q&&(eM(this).ac=!0,a=DM(this,3));0<n.length&&(e=Y(this).Eb(0,n),d=e.kb,Y(this).text!=Y(this).Qa&&(a=DM(this,3)+d));
break;case 1:if(1==eM(this).maxLength&&q&&0==eM(this).Ba()){a=n.length;e=null==X(this).Qa?"":X(this).Qa;for(e=e.substring(f,e.length);""!=this.Oa&&-1!=e.indexOf(this.Oa);)e.replace(this.Oa,"");n+=e;X(this).Jb(d,X(this).Ba()-d,m);eM(this).ac=!0;e=Y(this).Eb(0,n);d=e.kb;a=DM(this,3)+Math.min(a,d)}else{if(0==m.length)return!1;e=X(this).Jb(d,f-d,m);d=e.kb;a=DM(this,1)+d}break;case 3:if(0==m.length)return!1;e=Y(this).Jb(d,f-d,m);d=e.kb;a=DM(this,3)+d;break;case 0:if(!this.ea&&0<X(this).Ba())e=X(this).Jb(0,
b,m);else if(e=XL(X(this),0,m),e.Za)return e.valid=!1,e;d=e.kb;a=DM(this,1)+d;break;case 4:h=0<Y(this).Ba()||0<eM(this).Ba()?3:1;d=this.h[h].Ba();e=1==h?XL(this.h[h],d,c):this.h[h].Eb(d,c);if(e.Za)return e.valid=!1,e;d=e.kb;a=DM(this,h)+d;break;default:return!1}else if(0==eM(this).Ba())for(b=h;b<=k;b++){if(b==h?(c=d,l=this.h[b].Ba()-c):(c=0,b!=k?l=this.h[b].Ba():l=f),1==b){a=n.length;e=null==X(this).Qa?"":X(this).Qa;for(e=e.substring(c+l,e.length);""!=this.Oa&&-1!=e.indexOf(this.Oa);)e.replace(this.Oa,
"");n+=e;q&&1==eM(this).maxLength?(X(this).Jb(c,X(this).Ba()-c,m),eM(this).ac=!0,c=0,e=Y(this).Eb(c,n),c=e.kb,a=DM(this,3)+Math.min(a,c)):(e=X(this).Jb(c,l,m),c=e.kb,a=DM(this,1)+c)}}else{for(b=h;b<=k;b++)2==b&&(u=!0);for(b=h;b<=k;b++)if(b==h?(c=d,l=this.h[b].Ba()-c):(c=0,l=b==k?f:this.h[b].Ba()),u)switch(b){case 2:b==h?(c=X(this).Ba(),e=XL(X(this),c,m),c=e.kb,a=q?DM(this,3):DM(this,1)+c):b==k&&(""!=n&&(c=0,e=Y(this).Eb(c,n),c=e.kb,a=DM(this,3)+c),0!=Y(this).Ba()||q||eM(this).fb());break;case 3:""!=
n?(e=Y(this).Jb(c,l,n),c=e.kb,a=DM(this,3)+c):(Y(this).Ab(c,l),0!=Y(this).Ba()||q||eM(this).fb());break;case 1:e=X(this).Jb(c,l,m),e.valid=!e.Za,c=e.kb,a=q?DM(this,3):DM(this,1)+c}else{if(0==m.length)return!1;switch(b){case 3:case 1:e=this.h[b].Jb(c,l,m),c=e.kb,a=DM(this,b)+c}}}e.kb=a;null==e.valid||e.valid?(this.zc=!0,e.valid=!0):(GM(this,this.qa(),!0),e.valid=!1);return e};
g.Sd=function(a,b){EM(this,a,b);b=HM(this,a,b);a=b.xd;b=b.offset;zM(this,!1);a=DM(this,a)+b;b={};b.kb=a;this.zc=b.valid=!0;return b};
g.dm=function(a,b,c){EM(this,a,b);0<b?(b=HM(this,a,b),a=b.xd,b=b.offset,a=DM(this,a)+b):0!=eM(this).Ba()||c||(b=HM(this,a,1),a=b.xd,b=b.offset,a=DM(this,a)+b);if(0==eM(this).ac){a<W(this).Ba()?a=W(this).Ba():a>DM(this,4)&&(a=DM(this,4));b=a-W(this).Ba();c=null==X(this).Qa?"":X(this).Qa;a=c.substring(b,c.length);X(this).Ab(b,a.length);if(""==c&&0<X(this).h){b="0";for(c=0;c<X(this).h-1;c++)b+="0";XL(X(this),0,b)}for(b=0;""!=this.Oa&&-1!=a.indexOf(this.Oa);)a=a.replace(this.Oa,"");Y(this).Eb(b,a)}eM(this).ac=
!0;zM(this,!1);return a=DM(this,2)+eM(this).Ba()};g.Dk=function(a,b,c){var d=nM(this,a);var e=d.xd;d=d.offset;0<b&&(d=HM(this,a,b),e=d.xd,d=d.offset);c?"nocontrol"==this.Fb&&(this.Ea=!0,zM(this,!1)):"nocontrol"==this.Fb&&(this.Ea=!this.Ea,zM(this,!1));0==e?a=DM(this,1):4==e?a=DM(this,4):a=DM(this,e)+d;this.zc=!0;return a};
g.Ob=function(a,b,c,d,e){var f={};f.kb=a;f.$a=!1;if(1==d){var h=pM(this);d=h.bc;h=h.Zb;var k=this.Zb>h?this.Zb:h,l=this.bc<d?this.bc:d;switch(this.Fb){case "nocontrol":h=k;d=l;break;case "positive":h=0<k?k:0;d=l;break;case "negative":h=k,d=0>l?l:0}if(0!=b)0<b?this.ra(e?b:h,!1):0>b&&this.ra(e?b:d,!1),a=DM(this,2);else return f;f.kb=a;f.$a=!0;return f}a=IM(this,a);e=a.xd;a=a.offset;if(0==e||4==e||2==e||-1==e)return f;h=pM(this);d=h.bc;h=h.Zb;k=this.Zb>h?this.Zb:h;l=this.bc<d?this.bc:d;switch(this.Fb){case "nocontrol":h=
k;d=l;break;case "positive":h=0<k?k:0;d=l;break;case "negative":h=k,d=0>l?l:0}if(!(d<h)){var m=0;k=Y(this).Ba();var n=l=!1,q=!1;if(null==this.qa()){if(0==b)return f;var u=0<b?h:d}else{var r=parseFloat(lM(this));var z=m=parseFloat(kM(this));u=r+z;if(u>d||u<h)q=!0;else if(u==d||u==h)n=!0;var D=u;switch(e){case 1:r+=b;a=X(this).Ba()-a;u=0<=r&&0<=z||0>=r&&0>=z?r+z:r-z;break;case 3:k=0==k?1:k,u=Math.pow(.1,k),u=jM(u,k),u=jM(r+(z+b*u),k)}if(u>d||u<h)1==n||1==q?1==c?D===d?u=h:D===h?u=d:u<h?u=h:u>d&&(u=d):
u>d?u=d:u<h&&(u=h):u>d?u=d:u<h&&(u=h)}b=u.toString().indexOf(hM);r=-1!=b?u.toString().substring(0,b):u;if(u==d||u==h)c=0,u==d?-1!=b&&(c=d.toString().length-b-1):-1!=b&&(c=h.toString().length-b-1),k=k>=c?k:c;z=jM(u-r,k);m!=z&&(l=!0);"nocontrol"==this.Fb?this.Ea=0==u.toString().indexOf(iM)?!1:!0:"positive"==this.Fb?this.Ea=!0:"negative"==this.Fb&&(this.Ea=!1);b=0==X(this).Ba()&&0==r?"":r;c=b.toString().indexOf(iM);-1!=c&&(b=b.toString().substring(1,b.toString().length));0!=b||0!=X(this).h?X(this).ra(b,
!1):0!=b.toString().length&&(X(this).Qa="0");if(3==e||l){for(b=z.toString();-1!=b.indexOf(iM);)b=b.replace(iM,"");0==z&&0!=k&&(b="0.0");c=b.indexOf(hM);for(-1!=c&&(b=b.substring(2,b.length));b.length<k;)b+="0";Y(this).text=b;Y(this).Qa=b;Y(this).Hc=b;eM(this).ac=!0}zM(this,!1);1==e?(a=Math.min(this.h[e].Ba(),a),a=DM(this,e)+this.h[e].Ba()-a):a=DM(this,e)+a;f.kb=a;f.$a=!0;return f}};function EM(a,b,c){"negative"==a.Fb?a.Ea=!1:"positive"==a.Fb?a.Ea=!0:"nocontrol"==a.Fb&&0==b&&c==xM(a)&&(a.Ea=!0)}
function HM(a,b,c){var d;var e=FM(a,b,c);b=e.Lq;var f=e.Mq;var h=e.Jp;e=e.Kp;var k=0,l=0,m=!1;if(b==h){if(2==b&&0<Y(a).Ba()){if(0==c){var n=Y(a).Ab(f,1);f=n.kb}}else n=a.h[b].Ab(f,e-f),f=n.kb;var q=b;c=f}else for(c=q=0,d=b;d<=h;d++)d==b?(n=f,k=a.h[d].Ba()-f):(n=0,d!=h?k=a.h[d].Ba():k=e),2==d?0==Y(a).Ba()?eM(a).Ab(n,k):m=!0:3==d?(n=Y(a).Ab(n,k),n=n.kb,m&&0==Y(a).Ba()&&eM(a).Ab(n,k)):(n=a.h[d].Ab(n,k),n=n.kb),1==d?(l=3,q=d,c=n):2==d&&3>l?(l=2,q=d,c=n):3==d&&2>l&&(l=1,q=d,c=n);a={};a.xd=q;a.offset=c;
return a}function FM(a,b,c){var d,e=0,f=0,h=0;for(d=0;d<a.g;d++)if(e+=a.h[d].Ba(),b==e){for(f=4==d?4:d+1;4>f&&0==a.h[f].Ba();)f++;h=0;break}else if(e>b){f=d;h=b-(e-a.h[d].Ba());break}e=DM(a,f);var k=f;var l=b+c-e;for(d=f;d<a.g;d++)if(e+=a.h[d].Ba(),e>=b+c){k=d;l=b+c-(e-a.h[d].Ba());break}a={};a.Lq=f;a.Mq=h;a.Jp=k;a.Kp=l;return a}
function IM(a,b){var c,d=0,e=-1,f=0;for(c=0;c<a.g;c++)if(d+=a.h[c].Ba(),b<=d){e=c;f=a.h[c].Ba()-(d-b);break}switch(e){case 0:f==W(a).Ba()&&(e=1,f=0);break;case 2:e=3,f=0}a.u&&0>=b&&(e=1,f=X(a).Ba(),a.u=!1);a={};a.xd=e;a.offset=f;return a}
function nM(a,b){var c,d={},e=0;d.xd=0;d.offset=0;RL(W(a),a.Ea);RL(fM(a),a.Ea);for(c=0;c<a.g;c++)if(e+=a.h[c].Ba(),b<=e){d.xd=c;d.offset=a.h[c].Ba()-(e-b);break}switch(d.xd){case 0:d.xd=1;d.offset=0;break;case 4:d.xd=1==eM(a).ac?3:1;d.offset=a.h[d.xd].Ba();break;case 2:d.xd=3,d.offset=0}return d}
function CM(a,b){b=String(b);var c={Uh:"",vg:"",Xn:!1,$a:!1};var d=b.replace(/[^\+\-]/g,"");if(""!=d){d==b&&(c.$a=!0,c.Eg=!0);var e=d.split("+"),f=a.Ea;d=e[e.length-1];1<e.length?f=0==d.length%2?!0:!1:1==d.length%2&&(f=!f);a.Ea=f}"negative"==a.Fb?a.Ea=!1:"positive"==a.Fb&&(a.Ea=!0);a.Ea?(W(a).me=W(a).i,fM(a).me=fM(a).i):(W(a).me=W(a).h,fM(a).me=fM(a).h);d="0123456789"+a.Oa+a.Ra;e="";if(""==d)b="";else{for(f=0;f<b.length;f++)for(var h=0;h<d.length;h++)b.substring(f,f+1)==d.substring(h,h+1)&&(e+=b.substring(f,
f+1));b=e}if(0==b.length)return c;d=b.indexOf(a.Ra);-1!=d?(c.Uh=b.substring(0,d),c.vg=b.substring(d+1,b.length),c.Xn=!0):c.Uh=b;for(;""!=a.Oa&&-1!=c.Uh.indexOf(a.Oa);)c.Uh=c.Uh.replace(a.Oa.toString(),"");for(;""!=a.Oa&&-1!=c.vg.indexOf(a.Oa);)c.vg=c.vg.replace(a.Oa.toString(),"");for(;""!=a.Ra&&-1!=c.vg.indexOf(a.Ra);)c.vg=c.vg.replace(a.Ra.toString(),"");c.$a=!0;return c}function DM(a,b){for(var c=0,d=0;d<b;d++)c+=a.h[d].Ba();return c}
function xM(a){for(var b=0,c=0;c<a.g;c++)b+=a.h[c].Ba();return b}function GM(a,b,c){if(null==c||0==c)c=mM(a),a.ra(c,!0);a.ra(b,!1);null==b&&(a.Ea="negative"==a.Fb?!1:!0)}
function uM(a,b){if(0!=a.Ld){var c=b.indexOf(a.Ra);if(-1==c||""==a.Oa)for(c=0;c<a.Ld;c++)a.i[c]<b.length&&(b=b.substring(0,b.length-a.i[c])+a.Oa+b.substring(b.length-a.i[c],b.length));else{var d=b.substring(0,c);b=b.substring(c,b.length);for(c=0;c<a.Ld;c++)a.i[c]<d.length&&(d=d.substring(0,d.length-a.i[c])+a.Oa+d.substring(d.length-a.i[c],d.length));b=d+b}}return b}
g.le=function(a,b){if(b)c=yM(this,a),a=c.index,c=c.offset;else{var c=wM(this,a);a=c.index;c=c.offset}if(-1==a)return-1;if(b){if(a==this.g-1)return-1;for(;0==this.ma(a).Ba()&&a<this.g;)a++;if(a==this.g-1)return-1;a++;c=b=0}else{if(0==a||1==a&&0==c)return-1;for(;0==this.ma(a).Ba()&&0<a;)a--;if(0==a)return-1;a--;c=b=0}for(;c<a;c++)b+=this.ma(c).Ba();return b};g.Pd=function(a){return this.Ya(a)};function JM(a,b){a.Fb=b;"positive"==a.Fb?a.Ea=!0:"negative"==a.Fb&&(a.Ea=!1)}
function KM(a,b){b=null==b||0==b.length?LM:b;if(null==b||0==b.length||b.replace(new RegExp(gM,"g"),"").replace(hM,"").length>MM)pc();else{var c=b.indexOf(hM);c==b.length-1?pc():-1==c?(NM(a,b),eM(a).ac=!1,OM(a,"")):(NM(a,C(b,0,c)),eM(a).ac=!0,OM(a,C(b,c+1)))}}
function NM(a,b){var c=0,d=0;if(""===b)UL(X(a),d,c,a.Oa);else{for(var e=0,f=!0,h=0;h<b.length;h++)switch(b.charAt(h)){case "#":if(0!=c){qc();return}d++;f=!1;break;case "0":c++;f=!1;break;case gM:if(f){console.warn("Should not start with separator.");return}f=!0;e++;break;default:pc();return}if(f)console.warn("Should not end with separator.");else{f=Array(e);var k=0;for(h=b.length-1;0<=h;h--)b.charAt(h)==gM&&(f[k++]=b.length-1-h);0<e?(a.i=f,a.Ld=e):a.Ld=0;UL(X(a),d,c,a.Oa)}}}
function OM(a,b){for(var c=0,d=0,e=0;e<b.length;e++)switch(b.charAt(e)){case "#":d++;break;case "0":if(0!=d){qc();return}c++;break;default:pc();return}IL(Y(a),d,c)}var hM=".",gM=",",iM="-",LM="###############",MM=15,qM={};function PM(a,b){this.fa=this.s=this.u=this.h=null;this.ea=this.ga=this.ca=0;this.i=this.Result="";this.g=[];null!=a&&null!=b&&(this.la=b.j.th(),this.ka=b.j.sh(),this.Ja=b.j.qa(),this.ie=a,this.Te=b)}
PM.prototype.ip=function(){var a=new QM,b=(new RM).h;switch(this.ca){case a.i:this.h=b.g;break;case 4:this.h=b.i;break;case a.h:this.h=b.u;break;case 2:this.h=b.h;break;case a.g:this.h=b.s;break;default:this.h=null}a=new SM;b=(new RM).g;switch(this.ga){case 2:this.u=b.h.g;this.s=b.g.g;break;case a.g:this.u=b.h.i;this.s=b.g.i;break;case 4:this.u=b.h.h;this.s=b.g.h;break;case a.h:this.u=b.h.s;this.s=b.g.s;break;default:this.s=this.u=null}a=new TM;b=(new RM).g;switch(this.ea){case 2:this.fa=b.i.g;break;
case a.h:this.fa=b.i.h;break;default:this.fa=null}if(null!=this.la&&""!=this.la){a=Math.abs(this.la).toString();var c=a.length;b=0;var d=c%4;0<d&&(this.g[b]=a.substr(0,d),b++);var e=parseInt((c/4).toString(),10);for(c=0;c<e;c++)this.g[b]=a.substr(d,4),d+=4,b++}if(1!=this.g.length||"0"!=this.g[0])for(a=0;a<this.g.length;a++)b=this.g[a],this.ca!=(new QM).h&&(b=b.replace(/1(?=\d)/g,"*")),b=b.replace(/0/g,"@"),this.g[a]=b;0!=this.ka&&(a=Math.abs(this.ka),b=a.toString(),-1!==b.indexOf("e-")&&(b=fg(a.toFixed(20))),
this.i=b.substr(2,b.length));if(!(null==this.h||0>=this.g.length))for(a=0;a<this.g.length;a++){b=this.g[a];d="";for(c=0;c<b.length;c++)e=b.substr(c,1),d="*"==e?d+"*":"@"==e?d+"@":d+this.h[e];this.g[a]=d}a="";for(b=0;b<this.i.length;b++)a+=this.h[this.i.substr(b,1)];this.i=a;if(!(null==this.s||null==this.u||0>=this.g.length))for(a=0;a<this.g.length;a++)if(d=this.g[a],""!=d.replace(/@/g,"")){c=d.length;b="";for(e=0;e<c;e++)b+=d.substr(e,1)+this.u[c-e-1];d=this.g[a];(null==d||""==d?0:4!=d.length||"@@@@"!=
d)&&(b+=this.s[this.g.length-a-1]);this.g[a]=b}if(null!=this.fa&&""!=this.i){a=this.i.length;b="";for(d=0;d<a;d++)b+=this.i.substr(d,1)+this.fa[d];this.i=b}for(a=0;a<this.g.length;a++)this.Result+=this.g[a];""!=this.i&&(this.Result+="[DecimalPoint]",this.Result+=this.i);a=this.ie.j;b=this.Result;b=b.replace(/@(?:.|$)/g,"");b=b.replace(/\s/g,"");b=b.replace(/\*/g,"");b=b.replace("[DecimalPoint]",a.Ra);d=W(a);c=fM(a);0>this.Ja?b=d.h+b+c.h:0<this.Ja?b=d.i+b+c.i:0==this.Ja?""==a.qc?(b=this.h[0],b=a.Ea?
d.i+b+c.i:d.h+b+c.h):b=a.qc:null==this.Ja&&(b=a.Rc);return this.Result=b};function UM(a,b){PM.call(this,a,b);this.ca=(new QM).g;this.ga=(new SM).g;this.ea=(new TM).g}t(UM,PM);function VM(a,b){PM.call(this,a,b);this.ca=(new QM).h;this.ga=(new SM).h;this.ea=(new TM).g}t(VM,PM);function WM(a,b){PM.call(this,a,b);this.ca=(new QM).i;this.ga=(new SM).g;this.ea=(new TM).g}t(WM,PM);function XM(a,b){PM.call(this,a,b);this.ca=(new QM).g;this.ga=(new SM).g;this.ea=(new TM).h}t(XM,PM);
function YM(a,b){this.Result="";this.h=0;this.i=this.g=this.s="";if(null!=a&&null!=b){this.ca=Math.abs(b.j.th());b.j.th();this.u=Math.abs(b.j.sh());this.ea=b.j.sh();this.ie=a;this.Te=b;if(!this.xk())throw console.warn("NumberDisplayFormat.Digit");a=/^(.*)\[.*:.*\]$/.exec(a.j.nc);null!=a&&(a=a[1].split("."),this.g=a[0],2==a.length&&(this.i=a[1]))}}
YM.prototype.xk=function(){if(null==this.ie.j.nc||""==this.ie.j.nc||null==/^.*\[.+:.*\]$/.exec(this.ie.j.nc))return!1;var a=/:([^\[\]]*)\]$/.exec(this.ie.j.nc);null!=a&&(this.s=a[1]);var b=this.ie.j.nc.replace(/:[^\[\]]*\]$/,"").split(".");a=b[0];if(2==b.length){b=b[1];var c=!0;-1==a.indexOf("[")&&(c=!1,this.h=-1*b.indexOf("["));var d=/^(?:#,?)*(?:0,?)*$/;var e=/^(?:0*\[0*|0*#*\[)#*$/;c&&(d=/^(?:#,?)*\[(?:#,?)*(?:0,?)*$|^(?:#,?)*(?:0,?)*\[(?:0,?)*$/,e=/^0*#*/,c=a.replace(/,/g,""),this.h=c.length-
c.indexOf("[")-1);d=new RegExp(d);e=new RegExp(e);d=d.exec(a);a=e.exec(b);a=null==d||null==a?!1:!0}else 1==b.length?2!=a.split("[").length?a=!1:(d=/^(?:#,?)*(?:0,?)*$/,d=new RegExp(d),d=d.exec(a.replace(/\[/g,"")),null!=d?(c=a.replace(/,/g,""),this.h=c.length-c.indexOf("[")-1,a=!0):a=!1):a=!1;return a};
YM.prototype.ip=function(){for(var a=this.ca+this.u,b=1,c=Math.abs(this.h),d=0;d<c;d++)b*=10;a=0>this.h?a*b:a/b;d=a.toString();c=d.split(".");d=parseFloat(c[0]);.5<=a-d&&d++;0>this.h&&(d/=b);d=d.toString();c=d.split(".");this.Result=c[0];a=0;b="";for(d=0;d<this.g.length;d++){var e=this.Result.substr(this.Result.length-a-1,1),f=this.g.substr(this.g.length-d-1,1);"#"==f||"0"==f?(b=e+b,a++):","==f&&(b=this.ie.j.Oa+b);if(a>=this.Result.length){b=this.g.substr(0,this.g.length-a)+b;b=b.replace(/#,?/g,"");
break}}a<this.Result.length&&(b=this.Result.substr(0,this.Result.length-a)+b);this.Result=b;if(2==c.length&&(d=this.i.split("0").length-1,a=c[1].length,this.Result=this.Result+this.ie.j.Ra+c[1],a<d))for(c=d-a,d=0;d<c;d++)this.Result+="0";d=this.Result+this.s;a=this.ie.j;c=W(a);a=fM(a);return this.Result=d=this.ie.j.Ea?c.i+d+a.i:c.h+d+a.h};function QM(){this.g=1;this.h=3;this.i=5}function SM(){this.g=1;this.h=3}function TM(){this.g=0;this.h=1}function RM(){this.h=new ZM;this.g=new $M}
function ZM(){this.h="\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d".split("");this.i="\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396".split("");this.g="\uff10\uff11\uff12\uff13\uff14\uff15\uff16\uff17\uff18\uff19".split("");this.s="\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d".split("");this.u="\u3007\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d".split("")}function $M(){this.h=new aN;this.g=new bN;this.i=new cN}
function aN(){this.g=[" ","\u5341","\u767e","\u5343"];this.h=[" ","\u62fe","\u4f70","\u4edf"];this.i=[" ","\u5341","\u767e","\u5343"];this.s=[" ","\u62fe","\u767e","\u9621"]}
function bN(){this.g=" ;\u4e07;\u4ebf;\u5146;\u4eac;\u5793;\u79ed;\u7a70;\u6c9f;\u6da7;\u6b63;\u8f7d;\u6781;\u6052\u6cb3\u6c99;\u963f\u50e7\u7947;\u90a3\u7531\u4ed6;\u4e0d\u53ef\u601d\u8bae;\u65e0\u91cf\u5927\u6570".split(";");this.h=" ;\u4e07;\u4ebf;\u5146;\u4eac;\u5793;\u79ed;\u7a70;\u6c9f;\u6da7;\u6b63;\u8f7d;\u6781;\u6052\u6cb3\u6c99;\u963f\u50e7\u7947;\u90a3\u7531\u4ed6;\u4e0d\u53ef\u601d\u8bae;\u65e0\u91cf\u5927\u6570".split(";");this.i=" ;\u4e07;\u5104;\u5146;\u4eac;\u5793;\u79ed;\u7a70;\u6e9d;\u6f97;\u6b63;\u8f09;\u6975;\u6046\u6cb3\u6c99;\u963f\u50e7\u7947;\u90a3\u7531\u4ed6;\u4e0d\u53ef\u601d\u8b70;\u7121\u91cf\u5927\u6578".split(";");
this.s=" ;\u842c;\u5104;\u5146;\u4eac;\u5793;\u79ed;\u7a70;\u6e9d;\u6f97;\u6b63;\u8f09;\u6975;\u6046\u6cb3\u6c99;\u963f\u50e7\u7947;\u90a3\u7531\u4ed6;\u4e0d\u53ef\u601d\u8b70;\u7121\u91cf\u5927\u6578".split(";")}
function cN(){this.g="\u5206 \u5398 \u8c6a \u4e1d \u5ffd \u5fae \u7ec7 \u6c99 \u5c18 \u57c3 \u6e3a \u83ab \u6a21\u7cca \u9021\u5de1 \u987b\u81fe \u77ac\u606f \u5f39\u6307 \u5239\u90a3 \u516d\u5fb7 \u7a7a\u865a \u6e05\u9759".split(" ");this.h="\u5206 \u5398 \u6bdb \u7cf8 \u5ffd \u5fae \u7e96 \u6c99 \u5875 \u57c3 \u6e3a \u83ab \u6a21\u7cca \u9021\u5de1 \u9808\u81fe \u77ac\u606f \u5f48\u6307 \u5239\u90a3 \u516d\u5fb7 \u7a7a\u865a \u6e05\u975c".split(" ")};function dN(a,b,c,d,e,f,h){Yr.call(this);this.rd=this.zd=this.dg=this.lf=this.lb=this.uc=!1;this.lg=this.qj=null;this.gg=!1;this.wc=f;this.nj="Null";this.Qo=!0;null!=a&&(this.l=a);null!=b&&(this.oa=b);null!=c&&(this.Sa=c);null!=d&&(this.jj=d);h&&(this.da=h);this.pj=this.l.j.Ea}t(dN,Yr);function eN(a){var b=pM(a.l.j);a.Jg=new fN(b.Zb,b.bc)}g=dN.prototype;g.wb=function(){var a={};a.Xq=this.l.j.wb();a.Sa=this.Sa;return a};g.Lb=function(a){this.l.j.Lb(a.Xq);this.Sa=a.Sa};
g.qa=function(){return 1==this.Sa?null:this.l.j.qa()};
g.ed=function(a,b,c,d,e){this.ap=d;d={};var f=this.qa();3!=a&&(this.qj=f);this.lb=!1;1==a&&(d.o=bg(b),d.v=d.o);d.Text=this.sb(!0,!1);d.Gk=this.sb(!1,!0);1==a&&0<d.o&&(b=gN(this),null!=b&&(b=b.length-d.o,0>b&&(b=0),null!=d.Text&&(d.o=d.Text.length-b,d.v=d.o)));if(-1==d.o||d.o>d.Text.length)d.o=0,d.v=0;9==a?(d.o=0,d.v=0):10==a&&(d.o=d.Text.length,d.v=d.Text.length);"all"==c&&(d.o=0,d.v=d.Text.length,this.l.j.u=!1);e||3==a||(this.lg=this.Sa);this.l.j.u&&1!=a&&(0==this.l.j.qa()&&null!=this.l.j.qc&&""!=
this.l.j.qc?d.o=this.l.j.qc.length:d.o=W(this.l.j).Ba()+hN(this,X(this.l.j).Ba()),d.v=d.o);this.l.j.u=!1;return d};
g.Vd=function(a,b,c){a={};if(1==this.Sa)var d=!0;else d=mM(this.l.j),d=oM(this.l.j,d);var e=mM(this.l.j);this.l.j.ca=!0;try{d?(this.l.j.ra(e,!0),BM(this.oa.j,e,this.l.j.Ea,this.gg)):(N(c.host,this.da.i.InvalidRange,null),1==this.lg?GM(this.l.j,null):oM(this.l.j,b)?(GM(this.l.j,b),this.l.j.ra(b,!0),BM(this.oa.j,b,this.l.j.Ea,this.gg)):(b=this.l.j.qa(),GM(this.l.j,b),this.l.j.ra(b,!0),BM(this.oa.j,b,this.l.j.Ea,this.gg)),this.Sa=this.lg)}finally{this.l.j.ca=!1}var f;1==this.Sa?f=null:f=this.l.j.qa();
this.ne(f);a.Text=gN(this);a.Gk=this.sb(!1,!0);a.Ja=this.qa();this.yh={Ja:a.Ja,Ea:this.l.j.Ea};this.pj=this.l.j.Ea;this.l.j.zc=!1;return a};g.ne=function(a){if(document.getElementById(this.jj))if(null!=a){a=jM(a,15);this.l.j.Ea||0!=a||(a="-"+a);var b=document.getElementById(this.jj);null!=b&&(b.value=a)}else b=document.getElementById(this.jj),null!=b&&(b.value=null);Jq(this.da.s,a)};
function iN(a,b){if(1==a.Sa)return sM(a.l.j);var c=mM(a.l.j);c=jM(c,15);b=rM(a.l.j,c,b);var d=b.Text,e=d;b.co||b.bs||(e=vM(a.l.j,c,d));a.Sa=b.co?1:0;return e}g.sb=function(a,b){null==a&&(a=this.da.ca);var c="";b||(c=this.da.wf(a));b=a?this.da.l.j:this.da.oa.j;if(""===c){if(1==this.Sa)return"";a=a?mM(b):b.qa();var d=a=jM(a,15),e=c=!1,f="";null==d?c=!0:(f=Y(b).Gd(d),""!=f&&null!=f&&(e=!0),f=eM(b).Gd(e)+f,f=X(b).Gd(d)+f,f=uM(b,f));e=d=f;c||(e=vM(b,a,d));this.Sa=c?1:0;return e}return c};
g.ba=function(a){var b=Kq(this.da);return b.Db?b.og.length:iN(this,a).length};function gN(a){return jN(a,a.oa.j.Rc,a.oa.j.qc)}
function jN(a,b,c){if(1==a.Sa){var d="",e=/[^\\]?\{(.*[^\\])\}/;e=new RegExp(e.toString());e=e.exec(b);null!=e?(c=e[1],0!=c.length&&(d=c.charAt(0),2<=c.length&&"\\"==d&&(d=c.charAt(1)),d=a.oa.j.nc.replace(/#/g,d).replace(/0/g,d).replace(/,/g,gM).replace(/\./g,a.oa.j.Ra))):d=b.replace(/\\(.)/g,"$1");return d}d=a.gg?a.l.j.qa():a.oa.j.qa();if(0==d&&""!=c)return d="",e=/[^\\]?\{(.*[^\\])\}/,e=new RegExp(e.toString()),e=e.exec(c),null!=e?(c=e[1],0!=c.length&&(d=c.charAt(0),2<=c.length&&"\\"==d&&(d=c.charAt(1)),
d=a.oa.j.nc.replace(/#/g,d).replace(/0/g,d).replace(/,/g,gM).replace(/\./g,a.oa.j.Ra))):d=c.replace(/\\(.)/g,"$1"),d;c="";e=/^\[DBNum[1-4]\]G$/;e=e.exec(a.oa.j.nc);if(null!=e||a.xk()){d=a.oa;a=a.l;b=null;switch(d.j.nc){case "[DBNum1]G":b=new UM(d,a);break;case "[DBNum2]G":b=new VM(d,a);break;case "[DBNum3]G":b=new WM(d,a);break;case "[DBNum4]G":b=new XM(d,a);break;default:null!=/^.*\[.*\]$/.exec(d.j.nc)&&(b=new YM(d,a))}a=b;null!=a&&(c=a.ip())}else c=a.gg?rM(a.l.j,d):rM(a.oa.j,d),c=vM(a.oa.j,d,c.Text);
return c}
g.xk=function(){if(null==this.oa.j.nc||""==this.oa.j.nc||null==/^.*\[.+:[^\[\]]*\]$/.exec(this.oa.j.nc))return!1;var a=this.oa.j.nc.replace(/:[^\[\]]*\]$/,"").split(".");var b=a[0];if(2==a.length){a=a[1];var c=!0;-1==b.indexOf("[")&&(c=!1);var d=/^(?:#,?)*(?:0,?)*$/;var e=/^(0*\[0*|0*#*\[)#*$/;c&&(d=/^(?:#,?)*\[(?:#,?)*(?:0,?)*$|^(?:#,?)*(?:0,?)*\[(?:0,?)*$/,e=/^0*#*$/);d=new RegExp(d);e=new RegExp(e);b=d.exec(b);a=e.exec(a);b=null==b||null==a?!1:!0}else 1==a.length?2!=b.split("[").length?b=!1:(d=
/^(?:#,?)*(?:0,?)*$/,d=new RegExp(d),b=d.exec(b.replace("[","")),b=null!=b?!0:!1):b=!1;return b};g.fb=function(){var a={};"zero"==this.wc?(this.l.j.Ea=!0,this.ra(0,!1),this.Sa=0,""==tM(this.l.j)?(a.o=W(this.l.j).Ba()+hN(this,X(this.l.j).Ba()),a.v=a.o):(a.o=0,a.v=0)):(this.Sa=1,this.ra(null),a.o=0,a.v=0,a.Sa=1);a.Text=this.sb(this.da.ca,!0);a.Aa=!1;"null"==this.wc&&"nocontrol"==this.l.j.Fb&&(this.l.j.Ea=!0,this.oa.j.Ea=!0);return a};
g.yk=function(a,b,c,d,e,f){d={};95<a&&106>a&&(a-=48);return 47<a&&58>a?(a=String.fromCharCode(a),b=1==this.Sa||e!=f?this.Hg(0,0,a,!1):this.Hg(b,c,a,!1),b.success?(this.Sa=0,d.o=hN(this,b.start),d.v=d.o,d.Text=this.sb(this.da.ca,!0),d.Sa=this.Sa,this.lb=!1):null!=b.pa&&(d.pa=b.pa),d.Aa=!1,d):null};
g.Td=function(a){this.wc=a.wc;var b=Yr.prototype.Td.call(this,a);if(a.uj)return b;var c=a.o,d=a.v;switch(a.jd){case 27:null==b&&(b={});b.Aa=!0;break;case 109:case 189:case 173:b=kN(this,!1,c,d,b);break;case 107:case 65723:b=kN(this,!0,c,d,b);break;case 110:case 190:null==b&&(b={});b.Ra=!0;break;case 65643:y||(b=Math.min(c,d),d=Math.abs(c-d),a=W(this.l.j).Ba(),b=this.Dk(b,0,!0),b.Aa=!1,(c=lN(this,c,d,a))&&b.Text!==iN(this,!1)?(b.o=c.vd,b.v=c.vd+c.Qc):b.o=b.v=void 0)}return b};
function kN(a,b,c,d,e){var f=Math.min(c,d);d=Math.abs(c-d);var h=W(a.l.j).Ba();c=iN(a,!1);e=a.Dk(f,0,b);e.Aa=!1;(a=lN(a,f,d,h))&&e.Text!==c?(e.o=a.vd,e.v=a.vd+a.Qc):e.o=e.v=void 0;return e}g.Ud=function(a,b,c){var d={};c===this.l.j.Ra?(d.o=a,d.v=b,a=this.dm(a,b,!0),d.o=a.o,d.v=a.o,d.Text=this.sb(this.da.ca,!0)):Yr.prototype.Hg.call(this,a,b,c,!1).success||(d.o=Math.min(a,b),d.v=Math.max(a,b),d.Text=this.sb(this.da.ca,!0));return d};
g.Jf=function(a){var b={};a=mN(this,a).start;var c=yM(this.l.j,a);a=this.l.j.Ya(c.index);for(c=c.index;0==a.length&&0<c;)c--,a=this.l.j.Ya(c);b.o=hN(this,a.start);b.v=hN(this,a.length+a.start);0==this.l.j.qa()&&null!=this.l.j.qc?b.v=this.l.j.qc.length:null==this.l.j.qa()&&null!=this.l.j.Rc&&(b.v=this.l.j.Rc.length);Te=!1;this.lf=!0;setTimeout(function(){Te=!0},500);return b};
g.sd=function(){var a=this.qj,b=this.yh.Ja,c=this.pj,d=this.yh.Ea,e=mM(this.l.j);0==e&&1==this.Sa&&(e=null);var f=this.l.j.Ea;if(1==this.l.j.zc){if((a!=b||c!=d)&&b==e&&d==f)return!1}else if(a==e&&c==f)return!1;return!0};
g.Ub=function(a,b){var c={};a=this.qj;b=this.lg;var d=this.yh.Ja,e=this.pj,f=this.yh.Ea,h=mM(this.l.j);0==h&&1==this.Sa&&(h=null);var k=this.l.j.Ea;if(1==this.l.j.zc){if(a!=d||e!=f)if(a=d,e=f,null==d&&(b=1),a==h&&e==k)return this.qj=d,this.pj=f,this.lg=b,this.l.j.zc=!1,c;this.l.j.zc=!1}else if(a==h&&e==k)return c;1==b&&(a=null);this.l.j.Ea=e;GM(this.l.j,a);this.qj=h;this.pj=k;this.lg=this.Sa;this.Sa=b;c.Text=this.sb(this.da.ca,!0);1==this.Sa?(c.o=0,c.v=0):0===a?(a=this.da.eb().i,null!=a&&0<a.length&&
(c.o=0,c.v=0)):(c.o=W(this.l.j).Ba()+X(this.l.j).Ba(),c.v=c.o);return c};g.Copy=function(a,b,c){var d=Math.min(b,c),e=Math.max(b,c);0!=Math.abs(b-c)&&("excludeliterals"==a?(d=mN(this,d,0).start,e=mN(this,e,0).start,a=this.l.j.vh(d,e)):a=Yf(this.da.za()),Gf(a,this.da.Fd()))};
g.pc=function(a,b,c,d,e){d&&(this.lg=this.Sa);e=null==e?!1:e;var f={};f.o=a;f.v=b;var h=f.$a=!0,k=Math.min(a,b),l=Math.abs(b-a),m="0123456789"+this.l.j.Ra,n=this.l.j.Fb;"nocontrol"==n&&(m+="+-");d||e||!this.da||(d=this.da.Ue(),c="nocontrol"!==d?fs.call(this,c,d):fs.call(this,c,"filter"));if(null==c||0==c.length)return f;"nocontrol"!=n&&(c=c.replace(/[\+|\-]/g,""));this.autoConvert&&(c=Vp(c));m=Jf(m,c);if(null==m||""===m)n="";else{n="";d=!1;for(var q={Wa:!0},u=0;u<m.length;u++){var r=m[u];if("0"<=
r&&"9">=r)n+=r;else if(r===X(this.l.j).Oa)n+=r;else if("+"==r)n+=r;else if("-"==r)n+=r;else if(r.toString()===eM(this.l.j).Ra&&!d)if(d=!0,0<Y(this.l.j).maxLength)n+=r;else if(q.Wa=!1,"cut"===this.da.mb)break}q.Text=n;n=q}m=n.Text;c==m&&n.Wa||(h=!1);k=mN(this,k,l).start;e||(l=mN(this,k,l).length);n=mM(this.l.j);d=this.jm(k);if(0<l)if(q=yM(this.l.j,k).index,u=wM(this.l.j,k+l).index,q!=u)d=1;else if(0==q||4==q)d=-1;0==n&&0<tM(this.l.j).length&&(d=1);if((""!=c&&""==m||-1==d)&&!e)return this.da.i.InvalidInput&&
(h={},h.gb=this.da.i.InvalidInput,h.ib=null,f.pa=h),f;if(""==c)return f;c=W(this.l.j).Ba();e=this.sb(this.da.ca,!0);l=0>=l?this.l.j.$d(k,m,!1):this.l.j.Lf(k,l,m,!1);this.Sa=0;l.valid?(f.o=hN(this,l.kb),f.v=f.o):(f.o=a,f.v=b);f.Text=this.sb(this.da.ca,!0);if(1!=l.valid&&!0!==l.Eg)return this.da.i.InvalidInput&&(h={},h.gb=this.da.i.InvalidInput,h.ib=null,f.pa=h),f;this.Sa=0;if(h)if(l.Eg)(h=lN(this,Math.min(a,b),Math.abs(a-b),c))&&f.Text!==e?(f.o=h.vd,f.v=h.vd+h.Qc):f.o=f.v=void 0,h=!0;else{0==n&&0<
k&&(k=0);m=m.replace(/[\+|\-]+/g,"");a=hN(this,k);0<l.bp&&m.substring(0,this.l.j.Ra.length)!=this.l.j.Ra&&(a-=l.bp);k=f.Text;k=k.replace(W(this.l.j).me,"").substring(a,f.v);for(b=0;""!=this.l.j.Oa&&-1!=k.indexOf(this.l.j.Oa);)b++,k=k.replace(this.l.j.Oa,"");0<=f.v-m.length-a-b?(k=k.substring(0,m.length),-1==k.indexOf(m)&&(h=!1)):(k=0,null!=l.cp&&(k=l.cp),0>f.v-m.length-a-b+k&&(h=!1))}h||(f.$a=!1,this.da.i.InvalidInput&&(h={},h.gb=this.da.i.InvalidInput,h.ib=null,f.pa=h));return f};
g.Yc=function(){this.l.j.u=!1;var a={},b=this.sb(!0,!1),c=this.da.za();null!=c&&c.value.length>b.length&&(b=c.value);a.o=0;b==tM(this.l.j)||sM(this.l.j);a.v=b.length;this.lb=!0;return a};g.ra=function(a,b){this.l.j.ra(a,b);null!=a?(a=mM(this.l.j),this.ne(a)):this.ne(null)};
g.Hg=function(a,b,c){var d={};a=mN(this,a,0).start;var e=mN(this,b,0).start;b=Math.min(a,e);a=Math.abs(e-a);d.start=b;d.success=!1;if(-1==wM(this.l.j,b).index)return this.da.i.InvalidInput&&(a={},a.gb=this.da.i.InvalidInput,a.ib=null,d.pa=a),d;c=c.toString();if(0!=a||this.zd)if(0==a)if(b==xM(this.l.j))a=this.l.j.$d(b,c,!1);else{var f=wM(this.l.j,b);e=f.index;f=f.offset;var h=this.l.j.Ya(e);this.l.j.ma(e)instanceof LL?b-f+h.length==xM(this.l.j)?e=!1:(e=!0,a=h.length-f+1):(e=!0,a=1);if(-1==wM(this.l.j,
b+a).index)return this.da.i.InvalidInput&&(a={},a.gb=this.da.i.InvalidInput,a.ib=null,d.pa=a),d;a=e?this.l.j.Lf(b,a,c,!1):this.l.j.$d(b,c,!1)}else a=this.l.j.Lf(b,a,c,!1);else Kq(this.da,this.da.ca).Db&&AM(this.l.j),a=this.l.j.$d(b,c,!1);b=a.kb;if(1!=a.valid)return this.da.i.InvalidInput&&(a={},a.gb=this.da.i.InvalidInput,a.ib=null,d.pa=a),d.start=b,d.success=!1,d;d.start=b;d.success=!0;return d};
g.ni=function(a,b){var c={};c.o=a;c.v=b;var d=this.l.j,e=mN(this,Math.min(a,b),0),f=e.start,h=yM(d,f),k=h.index;h=h.offset;e=mN(this,Math.max(a,b),0);a=e.start;yM(d,a);d=Math.min(f,a);f=Math.abs(f-a);if(0==d&&0==f||-1==k)return c;if(0==f){if(d<=this.l.j.Ya(0).length||0==k&&this.l.j.ma(k)instanceof LL||1==k&&0==h&&this.l.j.ma(k-1)instanceof LL)return c;0==h&&(k--,h=this.l.j.ma(k).Ba());this.l.j.ma(k)instanceof LL?(f=h+1,d-=f):this.l.j.ma(k)instanceof YL?(f=2,d-=2):(f=1,d--);d=this.l.j.Sd(d,f).kb;c.o=
hN(this,d);c.v=c.o}else{h=yM(this.l.j,d+f);k=h.index;if(-1==k)return c;k=this.l.j.Sd(d,f);if(!k.valid)return c;c.o=hN(this,k.kb);c.v=c.o;f=yM(this.l.j,k.kb);k=f.index;f=f.offset;0!=f&&this.l.j.ma(k)instanceof LL&&(c.o-=f,c.v=c.o)}return c};
g.sj=function(a,b){var c={};c.o=a;c.v=b;var d=this.l.j,e=mN(this,Math.min(a,b),0),f=e.start;e=yM(d,f);var h=e.index;e=mN(this,Math.max(a,b),0);a=e.start;e=yM(d,a);d=e.index;e=e.offset;b=Math.min(f,a);f=Math.abs(f-a);if(b==this.ba()&&0==f||-1==h)return c;if(0==f){if(this.l.j.ma(h)instanceof LL)return c;b=this.l.j.Sd(b,f).kb;c.o=hN(this,b);c.v=c.o}else{if(0>=d)return c;0==e&&d--;if(h==d&&this.l.j.ma(h)instanceof LL)return c;h=this.l.j.Sd(b,f);if(!h.valid)return c;c.o=hN(this,h.kb);c.v=c.o;f=yM(this.l.j,
h.kb);h=f.index;f=f.offset;0!=f&&this.l.j.ma(h)instanceof LL&&(c.o=c.o-f+this.l.j.ma(h).Ba(),c.v=c.o)}return c};
g.Ob=function(a,b,c,d,e){b={};var f=mN(this,a,0).start;d=this.l.j.Ob(f,c,d,1==this.Sa,this.da.spinFromZeroWhenValueIsNull);this.oa.j.ra(this.l.j.qa(),!1);this.oa.j.Ea=this.l.j.Ea;d.$a&&(this.Sa=0);b.o=hN(this,d.kb);b.Text=this.sb(this.da.ca,!0);f==d.kb&&(b.o=a);d.$a&&(b.v=b.o);0<c||0==c&&e?this.da.i.SpinUp&&(a={},a.gb=this.da.i.SpinUp,a.ib=null,b.pa=a):(0>c||0==c&&!e)&&this.da.i.SpinDown&&(a={},a.gb=this.da.i.SpinDown,a.ib=null,b.pa=a);return b};
g.zh=function(a,b){var c={};0==this.Sa?void 0!=tM(this.l.j)?(c=this.ni(a,b),c.Text=this.sb(this.da.ca,!0)):c=nN(this):(c.Text="",c.o=0,c.v=0);null!=c.o&&null!=c.v&&c.o==c.v&&(this.lb=!1);return c};g.Ig=function(a,b){var c={};0==this.Sa?void 0!=tM(this.l.j)?(c=this.sj(a,b),c.Text=this.sb(this.da.ca,!0)):c=nN(this):(c.Text="",c.o=0,c.v=0);1==this.Sa&&(c.o=0,c.v=0);null!=c.o&&null!=c.v&&c.o==c.v&&(this.lb=!1);return c};
g.Ed=function(a,b){var c=this.l.j,d=mN(this,a,0).start,e={};0===this.qa()&&""!==this.l.j.qc||1===this.Sa&&""!==this.l.j.Rc?(e.offset=0,e.index=-1):e=yM(c,d);var f=e.index,h=e.offset,k=Kq(this.da);if(k.Db){var l=k.og.length;e=a;var m=l}else m=c.qa(),e=W(c).Gd(m,this.l.j.Ea).length,m=this.ba()-fM(c).Gd(m,this.l.j.Ea).length;switch(b){case 36:case 65572:case 65574:return a<=e?0:e;case 35:case 65571:case 65576:return a>=m?this.ba():m;case 37:if(0==a)return 0;c.ma(f)instanceof LL?0<h?a-=h:a--:0==h&&c.ma(f-
1)instanceof LL?a-=c.Ya(f-1).length:a--;break;case 39:if(a==this.ba(!0))break;if(c.ma(f)instanceof LL){if(c=c.Ya(f),e=c.start,m=e+c.length,d<m)return hN(this,m)}else a++;break;case 131109:if(0==a||0==f)return 0;if(0==mM(this.l.j)&&null!=this.l.j.qc&&""!=this.l.j.qc)a=0;else if(null==mM(this.l.j)&&null!=this.l.j.Rc&&""!=this.l.j.Rc)a=0;else{e=wM(c,d);f=e.index;h=e.offset;if(0==f)return 0;if(0==h){for(d=f-1;0<=d;d--)if(!(c.ma(d)instanceof LL))return c=c.Ya(d),c.start;return 0}a=hN(this,d-h)}break;case 196645:if(0==
mM(this.l.j)&&null!=this.l.j.qc&&""!=this.l.j.qc)a=0;else if(null==mM(this.l.j)&&null!=this.l.j.Rc&&""!=this.l.j.Rc)a=0;else{e=wM(c,d);f=e.index;h=e.offset;if(0==a||0==f)return 0;0!=h&&(d-=h);a=hN(this,d)}break;case 131111:if(0==mM(this.l.j)&&null!=this.l.j.qc&&""!=this.l.j.qc)a=this.l.j.qc.length;else if(null==mM(this.l.j)&&null!=this.l.j.Rc&&""!=this.l.j.Rc)a=this.l.j.Rc.length;else{if(4==f)return this.ba();for(d=f+1;d<c.g;)return c=c.Ya(d),hN(this,c.start);return this.ba()}break;case 196647:if(k.Db)a=
l;else{if(4==f)return this.ba();for(;f<c.g-1&&0==c.h[f+1].Ba();)f++;c=c.Ya(f);a=hN(this,c.start+c.length)}break;case 131118:if(a==this.ba()||c.ma(f)instanceof LL)break;else return c.ma(f)instanceof YL&&0!=c.Ya(f+1).length&&f++,c=c.Ya(f),hN(this,c.start+c.length);case 131080:case 196616:if(a<=c.Ya(0).length)break;if(0==a||c.ma(f)instanceof LL&&0==f)break;else{if(c.ma(f)instanceof LL){for(f--;0==c.Ya(f).length;)f--;return hN(this,c.Ya(f).start)}if(0==h){for(d=f-1;0<=d;d--)if(!(c.ma(d)instanceof LL))return c.ma(d)instanceof
YL&&0!=c.ma(d+1).Ba()&&d--,c=c.Ya(d),hN(this,c.start);return hN(this,a)}return hN(this,c.Ya(f).start)}case 196643:case 131107:case 131112:return this.ba();case 196644:case 131108:case 131110:return 0;case 65573:return 0==a?0:--a;case 65575:var n;k.Db?n=l:n=this.ba();if(a!=n)return++a}return a};g.zk=function(a,b,c){var d={};this.lb&&36!=c&&131108!=c?(d.o=Math.min(a,b),d.v=d.o,this.lb=!1):(d.o=this.Ed(b,c),d.v=d.o);return d};
g.Ak=function(a,b,c){var d={};this.lb&&35!=c&&131107!=c?(d.o=Math.max(a,b),d.v=d.o,this.lb=!1):(d.o=this.Ed(b,c),d.v=d.o);return d};g.we=function(a){return wM(this.l.j,a)};g.Pd=function(a){var b={};a=this.l.j.Pd(a);null!=a&&-1!=a&&(b.o=a.start,b.v=a.start+a.length);return b};
function mN(a,b,c){var d={};d.start=b;d.length=c;var e=iN(a,!1);if(0==e.length||""==a.l.j.Oa)return d;var f=0,h=0;0<W(a.l.j).Ba()&&(f=W(a.l.j).Ba());0<fM(a.l.j).Ba()&&(h=fM(a.l.j).Ba());var k=b>f?b<=e.length-h?e.substring(f,b):e.substring(f,e.length-h):"";e=b+c>f?b+c<=e.length-h?e.substring(b,b+c):e.substring(b,e.length-h):"";for(f=0;-1!=k.indexOf(a.l.j.Oa);)k=k.substring(k.indexOf(a.l.j.Oa)+1,k.length),f++;b-=f;if(0!=c){f=0;for(k=e;-1!=k.indexOf(a.l.j.Oa);)k=k.substring(k.indexOf(a.l.j.Oa)+1,k.length),
f++;c-=f}d.start=b;d.length=c;return d}function lN(a,b,c,d){var e={};e.vd=b;e.Qc=c;var f=iN(a,!1);if(0==f.length&&0==d)return e;var h=0,k=0;0<W(a.l.j).Ba()&&(h=W(a.l.j).Ba());0<fM(a.l.j).Ba()&&(k=fM(a.l.j).Ba());b<d?(c=c<d?0:c-(d-b),b=h):b=b-d+h;b+c>f.length-k&&(c-=b+c-(f.length-k));if(b>f.length-k||0>c)b=f.length-k,c=0;0==mM(a.l.j)&&(b=f.length);e.vd=b;e.Qc=c;return e}
function hN(a,b){var c=iN(a,!1);if(0==c.length||""==a.l.j.Oa)return b;var d=0,e=0,f=0;0<W(a.l.j).Ba()&&(e=W(a.l.j).Ba());0<fM(a.l.j).Ba()&&(f=fM(a.l.j).Ba());var h=c.substring(e,c.length-f),k=h.length;if(-1==h.indexOf(a.l.j.Oa)||b<e)return b;for(;-1!=h.indexOf(a.l.j.Oa);)h=h.replace(a.l.j.Oa,"");h=c.substring(0,e)+h+c.substring(c.length-f,c.length);h=h.substring(0,b);var l;for(l=f=0;f<h.length;l++)c.substring(l,l+1)==h.substring(f,f+1)?f++:c.substring(l,l+1)==a.l.j.Oa&&d++;l<e+k&&c.substring(l,l+
1)==a.l.j.Oa&&(d+=1);return b=parseInt(b.toString(),10)+parseInt(d.toString(),10)}g.dm=function(a,b,c){var d={};a=mN(this,a,0).start;var e=mN(this,b,0).start;b=Math.min(a,e);a=Math.abs(e-a);d.o=b;d.v=b;d.success=!1;1==this.Sa&&(this.Sa=0);c=this.l.j.dm(b,a,c);d.o=hN(this,c);d.v=hN(this,c);return d};
g.Dk=function(a,b,c){if(1!=this.Sa){var d=mN(this,a,b);a=d.start;b=d.length}else this.Sa=0;d={};b=this.l.j.Dk(a,b,c);0!=a||c||"negative"!=this.l.j.Fb||(b=0);d.o=hN(this,b);d.v=d.o;0!=mM(this.l.j)?(a=iN(this,!1),this.l.j.Ea||a.substring(0,W(this.l.j).h.length)==W(this.l.j).h||(a=W(this.l.j).h+a),d.Text=a):(d=nN(this),this.l.j.Ea||0!=a||(d.o=W(this.l.j).h.length,d.v=W(this.l.j).h.length),"nocontrol"!=this.l.j.Fb||a!=iM.length&&0!=a||!this.l.j.Ea||(d.o=0,d.v=0),"positive"==this.l.j.Fb&&0==a&&(d.o=0,
d.v=0),c=W(this.l.j).Ba(),"negative"==this.l.j.Fb&&0==a?(d.o=0,d.v=0):"negative"==this.l.j.Fb&&a==c&&(d.o=c,d.v=c));return d};g.jm=function(a){if(0>a)return-1;if(1==this.Sa)return 0;a=mN(this,a,0).start;a=IM(this.l.j,a);if(null!=a){a=a.xd;switch(a){case 0:case 4:a=-1;break;case 1:a=0;break;case 3:a=1}return a}return-1};
function nN(a){var b=mM(a.l.j),c=JL(Y(a.l.j),b),d=!1;""!=c&&null!=c&&(d=!0);c=eM(a.l.j).Gd(d)+c;c=VL(X(a.l.j),b)+c;c=uM(a.l.j,c);b=vM(a.l.j,0,c);a=W(a.l.j).Ba()+X(a.l.j).Ba();return{Text:b,o:a,v:a}}function oN(a){var b=a.l.j;a=W(b).Ba();b=rM(b,b.qa());b.co||(a+=b.Text.length);return a}function pN(a){a=a.toString();var b=a.indexOf(".");-1!=b&&b<=a.length&&(a=a.substring(0,b));return parseFloat(a)}
function qN(a,b){var c=0;0<b&&(c=pN(a),a=parseFloat(rN(a,c)));for(var d=b;0!=d;)0<d?(a*=10,d--):0>d&&(a/=10,d++);for(Math.abs(a-pN(Math.round(a)))>Math.pow(10,-b)&&(a=Math.floor(a));0!=b;)0<b?(a/=10,b--):0>b&&(a*=10,b++);0!=c&&(a+=c);return a}function sN(a,b){this.h=a;this.g=b;this.i=-1}
function tN(a){var b=rN(a,pN(a));if(0==b)return 0;for(a=0;0!=b;){var c=0;b=b.toString();var d=(10).toString();try{c+=b.split(".")[1].length}catch(e){}try{c+=d.split(".")[1].length}catch(e){}b=Number(b.replace(".",""))*Number(d.replace(".",""))/Math.pow(10,c);b=rN(b,pN(b));a++}return a}function uN(a,b){if(0==pN(b)-b)a=b>a.g||b<a.h?!1:!0;else{var c=tN(b);-1==a.i&&(a.i=Math.max(tN(a.h),tN(a.g)));a=c<=a.i?b>a.g||b<a.h?!1:!0:!1}return a}
function fN(a,b){this.h=a;this.g=b;if(!(a>b)){this.i=[];this.s=0;this.u="NegativeAndPositiveRange";a=this.h;b=this.g;this.u=0<a?"PositiveRangeOnly":0>b?"NegativeRangeOnly":"NegativeAndPositiveRange";var c=Math.abs(a),d=Math.abs(b);if(0<b&&0>a)this.i.push(new sN(a,b));else{a=Math.min(c,d);b=Math.max(c,d);var e=rN(a,pN(a)),f=rN(b,pN(b));this.i.push(new sN(a,b));if(0<parseFloat(e)||0<parseFloat(f)){c=[];d=[];for(var h=1;(0<parseFloat(e)||0<parseFloat(f))&&15>=h;){var k=qN(parseFloat(e),h),l=qN(parseFloat(f),
h);k=parseFloat(k.toFixed(h));l=parseFloat(l.toFixed(h));c.push(k);d.push(l);e=rN(parseFloat(e),k);f=rN(parseFloat(f),l);h++}for(e=c.length-1;0<=e;e--)a=parseFloat(rN(a,c[e])),b=parseFloat(rN(b,d[e])),this.i.push(new sN(a,b))}a=pN(parseFloat(a.toFixed(0)));for(b=pN(parseFloat(b.toFixed(0)));0<a&&0<b;)a=pN(a/10),b=pN(b/10),this.i.push(new sN(a,b));this.s=this.i.length-1}}}
function rN(a,b){try{var c=a.toString().split(".");var d=1<c.length?c[1].length:0}catch(h){d=0}try{c=b.toString().split(".");var e=1<c.length?c[1].length:0}catch(h){e=0}d=Math.min(d,15);e=Math.min(e,15);c=Math.max(d,e);a*=Math.pow(10,d);b*=Math.pow(10,e);a=Math.round(a);b=Math.round(b);if(15<a.toString().length&&-1==a.toString().indexOf("e")){var f=a.toString();a=parseFloat(f.substring(0,15)+Zf("",f.length-15,"0"))}15<b.toString().length&&-1==b.toString().indexOf("e")&&(f=b.toString(),b=parseFloat(f.substring(0,
15)+Zf("",f.length-15,"0")));return((a*Math.pow(10,c-d)-b*Math.pow(10,c-e))/Math.pow(10,c)).toFixed(c)}
function vN(a,b){var c={};if(a.h>a.g)return c.ep=!0,c;b=parseFloat(b.toString());if(0==b||null==b)return c.eg=!1,c.Zf=!1,c;switch(a.u){case "PositiveRangeOnly":if(0>b)return c.eg=!0,c.Zf=!1,c;break;case "NegativeRangeOnly":if(0<b)return c.eg=!1,c.Zf=!0,c}var d=b;if(0>a.g||0<a.h)b=Math.abs(b);for(var e=a.s,f;0<=e;){f=a.i[e];if(uN(f,b))return a.s=e,c.eg=!1,c.Zf=!1,c;e--}for(e=a.i.length-1;e>a.s;){f=a.i[e];if(uN(f,b))return a.s=e,c.eg=!1,c.Zf=!1,c;e--}c.eg=d<a.h;c.Zf=d>a.g;return c};function wN(a,b,c,d){Xc++;Yc=!1;try{R.call(this,a,b,c,d)}finally{Xc--,Yc=0==Xc}this.va=!1;this.xc=function(){};this.u=!1}t(wN,R);g=wN.prototype;g.Ge=function(){R.prototype.Ge.call(this);this.sa=!1;this.l.j=new dM;this.oa.j=new dM;this.ap="";this.wc="zero";this.jj="__"+this.la+"_State";this.Fa=this.rb=this.Bb=this.gg=!1;this.vc="";this.Ma=null;this.ob=!1;this.Ra=".";this.bc=99999.99;this.Zb=-99999.99;this.Oa=",";this.Fb="nocontrol";this.oh=this.cd=!1;this.mb="cut"};
g.ui=function(){this.g=new dN(this.l,this.oa,this.Sa,this.jj,void 0,this.wc);this.g.da=this;this.g.Ha=this.la;this.g.oh=this.oh;this.g.gg=this.gg};
g.Ie=function(){var a={Fb:"nocontrol",Text:"0"},b=this.s.g,c=null;isNaN(parseFloat(b))||(c=parseFloat(b));a.Ja=c;a.Sa=1;this.Sa=a.Sa;a.Wb={};a.Wb.to="";a.Wb.so="-";a.Wb.Sh=4;a.Wb.Th=1;a.Wb.vn=1;a.Wb.Jh=2;a.Wb.Kh=0;a.Wb.Co="";a.Wb.Bo="";a.Wb.Ld=0;a.ec={};a.ec.to="";a.ec.so="-";a.ec.Sh=4;a.ec.Th=1;a.ec.vn=1;a.ec.Jh=2;a.ec.Kh=0;a.ec.Co="";a.ec.Bo="";a.ec.Ld=0;a.Oa=",";a.Ra=".";b=new LL;ML(b,a.Wb.to,a.Wb.so);uF(this.l.j,b);null==a.Wb.Sh&&(a.Wb.Sh=0);null==a.Wb.Th&&(a.Wb.Th=0);b=new TL;UL(b,a.Wb.Sh,a.Wb.Th,
a.Oa);uF(this.l.j,b);b=new YL;b.Ra=a.Ra;b.maxLength=null!=a.Wb.vn?a.Wb.vn:1;uF(this.l.j,b);null==a.Wb.Jh&&(a.Wb.Jh=0);null==a.Wb.Kh&&(a.Wb.Kh=0);b=new HL;IL(b,a.Wb.Jh,a.Wb.Kh);uF(this.l.j,b);b=new LL;ML(b,a.Wb.Co,a.Wb.Bo);uF(this.l.j,b);this.oa.j.nc="####0.##";this.l.j.nc="####0.##";b=new LL;ML(b,a.ec.to,a.ec.so);uF(this.oa.j,b);null==a.ec.Sh&&(a.ec.Sh=0);null==a.ec.Th&&(a.ec.Th=0);b=new TL;UL(b,a.ec.Sh,a.ec.Th,a.Oa);uF(this.oa.j,b);b=new YL;b.Ra=a.Ra;b.maxLength=1;uF(this.oa.j,b);null==a.ec.Jh&&
(a.ec.Jh=0);null==a.ec.Kh&&(a.ec.Kh=0);b=new HL;IL(b,a.ec.Jh,a.ec.Kh);uF(this.oa.j,b);b=new LL;ML(b,a.ec.Co,a.ec.Bo);uF(this.oa.j,b);this.l.j.Ra=a.Ra;this.l.j.Oa=a.Oa;this.oa.j.Ra=a.Ra;this.oa.j.Oa=a.Oa;this.l.j.Ld=a.Wb.Ld;0<a.Wb.Ld&&(this.l.j.i=a.Wb.Hs);this.oa.j.Ld=a.ec.Ld;0<a.ec.Ld&&(this.oa.j.i=a.ec.Hs);this.l.j.Zb=-99999.99;this.oa.j.Zb=-99999.99;this.Zb=this.l.j.Zb;this.l.j.bc=99999.99;this.oa.j.bc=99999.99;this.bc=this.l.j.bc;this.l.j.ra(a.Ja,!1);this.l.j.ra(a.Ja,!0);zM(this.l.j,!1);b=this.l.j.qa();
BM(this.oa.j,b,!0,!1);zM(this.oa.j,!1);a.pt=0;null==a.rr&&(a.rr=0);a.Ea=!0;a.ht=!1;this.Ye=this.Text=this.ia();this.Hb=!1;a.qt=this.ia();this.kj(!1);eN(this.g);a=document.getElementById(this.la+"_SpinContainer");b=document.getElementById(this.la+"_Button");hg(a);hg(b);xN(this,"");this.ra(0);this.g.yh={Ja:this.Ja,Ea:this.l.j.Ea};this.o=this.v=this.za().value.length;R.prototype.Ie.call(this)};g.yf=function(){null!=this.za()&&null!=this.s&&R.prototype.yf.call(this)};
g.wb=function(){var a={};a.Xl=R.prototype.wb.call(this);a.Om=this.g.wb();a.Km=rF(this);return a};g.Lb=function(a){R.prototype.Lb.call(this,a.Xl);this.g.Lb(a.Om);this.Ia(a.Km)};g.Ea=function(){return this.l.j.Ea};
g.ra=function(a,b){if(null==a||0==a.toString().length)a=null;else{var c=a.toString();-1!==c.indexOf("e-")&&(c=fg(a.toFixed(20)));this.va&&(c=Vp(c),!isNaN(c)&&"number"!==typeof a&&(a=parseFloat(c)));var d=c,e=Jf("-.0123456789",d);if(0==(d!=e?!1:!0)){cc(a);return}if("NaN"==c){cc(a);return}}c=a;d=!0;e=c;if(null!=c&&0!=c.toString().length){var f=c.toString();-1!==f.indexOf("e-")&&(f=fg(c.toFixed(20)));var h=pM(this.g.l.j);"NaN"==f?d=!1:c>h.bc||c<h.Zb?d=!1:(e=f,e.length-e.indexOf(".")-1>Y(this.g.l.j).maxLength&&
(c=jM(c,Y(this.g.l.j).maxLength)),e=c)}if(d){var k;1==this.g.Sa?k=null:k=mM(this.g.l.j);null==a&&(this.g.Sa=1);d&&(e!=k||this.Ja!=a||this.Hb)&&(this.Ja=a=e,this.g.l.j.ra(a,!1),this.g.l.j.ra(a,!0),this.ca&&0===X(this.g.l.j).h&&1>Math.abs(a)&&(X(this.g.l.j).Qa="0"),null!=a&&(this.g.Sa=0,BM(this.g.oa.j,a,this.l.j.Ea)),a=this.g.sb(this.ca,this.ca),this.hb(a),this.ne(),this.ca?this.Ia(a):this.Ia(gN(this.g)),M(this),b||this.Text==this.Ye||(this.Ye=this.Text,a=N(this.host,this.i.TextChanged,null),null!=
a&&(this.ea=a)),b||(this.ka=this.Ja,a=N(this.host,this.i.ValueChanged,null),null!=a&&(this.ea=a)));yN(this);return this}cc(a)};function zN(a,b){b=b.toString();a=Jf("-0123456789"+a.l.j.Ra+a.l.j.Oa,b);return b!=a?!1:!0}
g.Rd=function(a){try{var b=this.l.j.Ea;if(a==sM(this.l.j))this.ra(null);else if(a==tM(this.l.j))this.ra(0);else{var c=a;if(null==a||0==a.toString().length)this.ra(null);else{var d=!1;if(""!=W(this.l.j).i||""!=fM(this.l.j).i){var e=W(this.l.j).i.length,f=fM(this.l.j).i.length;a.substring(0,e)==W(this.l.j).i&&a.substring(a.length-f,a.length)==fM(this.l.j).i&&(a=a.substring(e,a.length-f),d=!0)}if(!d)if(""!=W(this.l.j).h||""!=fM(this.l.j).h)if(e=W(this.l.j).h.length,f=fM(this.l.j).h.length,a.substring(0,
e)==W(this.l.j).h&&a.substring(a.length-f,a.length)==fM(this.l.j).h)a=a.substring(e,a.length-f);else if(""==W(this.l.j).i&&""==fM(this.l.j).i)d=!0;else{dc(a);return}else d=""==W(this.l.j).i&&""==fM(this.l.j).i?!0:!1;this.va&&(a=Vp(a));if(zN(this,a))if(e=a,f="",""!=this.l.j.Ra&&-1!=a.indexOf(this.l.j.Ra)&&(e=a.substring(0,a.indexOf(this.l.j.Ra)),f=a.substring(a.indexOf(this.l.j.Ra)+1,a.length)),e.length>X(this.g.l.j).maxLength+this.l.j.Ld||f.length>Y(this.g.l.j).maxLength)dc(a);else{if(0<this.l.j.Ld&&
""!=this.l.j.Oa)for(f=0;f<this.l.j.Ld;f++)if(e.length-1>=this.l.j.i[f]){var h=e.length-this.l.j.i[f]-1;if(e.substring(h,h+1)==this.l.j.Oa&&e.length-1==this.l.j.i[f]){dc(a);return}if(e.substring(h,h+1)!=this.l.j.Oa){dc(a);return}}else break;for(d||(a="-"+a);""!=this.l.j.Oa&&-1!=a.indexOf(this.l.j.Oa);)a=a.replace(this.l.j.Oa,"");var k;if(null==a||0==a.length)null!=c&&0<c.length&&(k=0);else{""!=this.l.j.Ra&&-1!=a.indexOf(this.l.j.Ra)&&(a=a.replace(this.l.j.Ra,"."));var l=a.indexOf(".");if(-1!=l&&-1!=
a.substring(l+1,a.length).indexOf(this.l.j.Ra)){dc(a);return}k=parseFloat(a);0==k&&0==a.indexOf("-")?this.l.j.Ea=!1:0==k&&-1==a.indexOf("-")&&(this.l.j.Ea=!0);if("NaN"==k.toString()){dc(a);return}}this.l.j.Ea!=b&&(this.Hb=!0);this.l.j.ca=!0;try{this.ra(k)}finally{this.l.j.ca=!1}this.Hb=!1}else dc(a)}}}catch(m){window.status="Sorry, You have set an invalid text!"}};g.fb=function(){AN(this,this.wc);return this};
function AN(a,b){var c=a.Text,d;1==a.g.Sa?d=null:d=mM(a.g.l.j);var e=!1,f=a.g.sb(a.ca,a.ca),h=!1,k=a.l.j.Ea;"zero"==b&&(oM(a.l.j,0)?(a.g.ra(0,!1),k=!0,"negative"==a.oa.j.Fb&&(k=!1),BM(a.oa.j,0,k),a.g.Sa=0,a.l.j.Ea=k,0!=d&&(e=!0)):(a.g.ra(null,!1),a.g.Sa=1,h=!0,null!=d&&(e=!0)),AM(a.l.j),a.l.j.Ea=k,a.o=W(a.g.l.j).Ba()+X(a.g.l.j).Ba(),a.v=a.o);if("null"==b||1==h)a.g.Sa=1,a.g.ra(null),a.o=0,a.v=0,null!=d&&(e=!0);a.Text=a.g.sb(a.ca,a.ca);a.Ia(gN(a.g));yN(a);"null"!=b&&1!=h?M(a):"null"==b&&"nocontrol"==
a.g.l.j.Fb&&(a.g.l.j.Ea=!0,a.g.oa.j.Ea=!0);b=a.Text;e&&N(a.host,a.i.Input,{oldText:c,newText:b});f!==b&&(c=N(a.host,a.i.TextChanged,null),null!=c&&(a.ea=c));e&&(c=N(a.host,a.i.ValueChanged,null),null!=c&&(a.ea=c));M(a)}g.Ik=function(a){-1>a?a=-1:1<a&&(a=1);-1==a||0==a?a=1:1==a&&(a=3);var b=this.g.Pd(a).o;b=hN(this.g,b);3==a&&0==Y(this.g.l.j).Ba()&&(b=-1);return{vd:b,Kf:b}};
g.Qk=function(){this.ca||(this.Ja=this.g.qa());BM(this.oa.j,mM(this.l.j),this.l.j.Ea,this.gg);this.Vc=gN(this.g);this.Ia(this.Vc);M(this)};g.gj=function(a,b){R.prototype.gj.call(this,a,b);yN(this)};g.fj=function(a,b){R.prototype.fj.call(this,a,b);yN(this)};g.th=function(){var a=lM(this.g.l.j);return parseInt(a,10)};g.sh=function(){return parseFloat(kM(this.g.l.j))};g.qa=function(){return 1==this.g.Sa?null:mM(this.g.l.j)};g.Wo=function(){return this.ka};g.ia=function(){return this.g.sb(!0,!0)};
g.we=function(){return this.g.we(this.v)};g.jm=function(){return this.g.jm(this.v)};function xN(a,b){b=lg(b);BN(a,function(){a.Wd=b;""===b&&(b=w.NumberCurrencySymbol);var c=b;SL(W(a.l.j),c);SL(fM(a.l.j),c);zM(a.l.j);SL(W(a.oa.j),c);SL(fM(a.oa.j),c);zM(a.oa.j);a.Ia(gN(a.g))})}
function CN(a,b){b=ng(b);null!==b&&BN(a,function(){"\x00"===b||" "===b||-1!==b.search(RegExp("[0-9]"))||"+"===b||"-"===b?console.warn("Cannot set decimal point with value: "+b):(b===a.Oa&&DN(a,"\x00"),a.Ra=b,a.l.j.Ra=b,eM(a.l.j).Ra=b,a.oa.j.Ra=b,eM(a.oa.j).Ra=b,a.Ia(gN(a.g)))})}
function DN(a,b){b=ng(b);null!==b&&BN(a,function(){b===a.Ra?console.warn("Cannot set Separator with the value of DecimalPoint."):-1!==b.search(RegExp("[0-9]"))?console.warn("Cannot set Separator with value: "+b):("\x00"===b&&(b=" "),a.Oa=b,a.l.j.Oa=b,a.oa.j.Oa=b," "===b&&(a.l.j.Oa="",a.oa.j.Oa=""),a.Ia(gN(a.g)))})}g.Od=function(){return"all"===this.Ta};g.kj=function(a){this.Ta=H(a)?"all":"none"};
function EN(a,b){b=lg(b);BN(a,function(){a.oa.j.nc=b;if(null==/^\[DBNum[1-4]\]G$/.exec(b)&&!a.g.xk()){var c=a.oa.j,d=b;KM(c,d);c.nc=d}if(null===a.qa()||-1===a.qa().toString().indexOf(a.Ra))eM(a.oa.j).ac=!1;X(a.oa.j).Qa=null;FN(a,!1);BM(a.oa.j,mM(a.l.j),!0,!1);a.Ia(gN(a.g))})}function GN(a,b){b=lg(b);BN(a,function(){NL(W(a.oa.j),b);RL(W(a.oa.j),a.oa.j.Ea);a.Ia(gN(a.g))})}function HN(a,b){b=lg(b);BN(a,function(){OL(W(a.oa.j),b);RL(W(a.oa.j),a.oa.j.Ea);a.Ia(gN(a.g))})}
function IN(a,b){b=lg(b);BN(a,function(){NL(fM(a.oa.j),b);RL(fM(a.oa.j),a.oa.j.Ea);a.Ia(gN(a.g))})}function JN(a,b){b=lg(b);BN(a,function(){OL(fM(a.oa.j),b);RL(fM(a.oa.j),a.oa.j.Ea);a.Ia(gN(a.g))})}function KN(a,b){a.xc=b||function(){}}function LN(a,b,c){a.cb||(a.cb={});a.cb[b]=c}function MN(a,b,c){a.Xa||(a.Xa={});a.Xa[b]=c}g.wh=function(a){R.prototype.wh.call(this,a);this.sa||(this.sa=!0)};
g.Vm=function(){R.prototype.Vm.call(this);if(!this.sa){if(null===this.qa()||0===this.qa())this.o=this.v=this.za().value.length;else{var a=hF(this);this.o=W(this.l.j).Ba()+X(this.l.j).Ba();this.v=this.o+a}this.sa=!0}};
g.si=function(){var a=this.g.ed(this.ea,this.ga,this.Ta,this.ap,this.Fa);NN(this,!0);null!=a&&(null==a.Text||this.Fa||(this.Text=a.Text),this.Fa||(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v)),this.Qg&&(this.Text==tM(this.l.j)&&(this.Text=this.g.sb(!0,!1),a.Text=this.Text),this.Qg=!1),1==fr(this)&&0==this.ea&&(this.o=0,this.v=this.Text.length),this.o>a.Text.length&&(this.v=this.o=a.Text.length),this.Ia(a.Text),this.Ye=a.Gk,this.o===this.za().selectionStart&&this.v===this.za().selectionEnd||this.Ca(this.o,
this.v,!0),M(this))};g.mp=function(){};
g.Vd=function(){if(this.Ul)this.Qm=!0;else if(Hr(this),!this.Bb){this.rb&&(this.rb=!1);dr(Mq.instance);Er(this.ta)&&Fr(this.ta);this.Ze(null,!0);var a=rF(this);this.ob&&(this.ob=!1,a=this.g.sb(!1,!1));a=this.g.Vd(a,this.ka,this);this.Vc=a.Text;this.Ia(this.Vc);this.ea=0;if(this.Ye!=a.Gk){this.Ye=a.Gk;var b=N(this.host,this.i.TextChanged,null);null!=b&&(this.ea=b)}this.ka!=a.Ja&&(this.ka=a.Ja,b=N(this.host,this.i.ValueChanged,null),null!=b&&(this.ea=b),Vf(this.ga),this.ea=0);this.he=!0;yN(this);M(this);
Dq(this,!1)}};g.ne=function(){this.g.ne(this.qa())};
g.Td=function(a){var b=a.keyCode;231==b&&a.key&&(b=a.key.charCodeAt(0));var c={gd:!1,Oc:!1,Cd:!1};a.shiftKey&&(c.gd=!0);if(a.ctrlKey||a.metaKey)c.Oc=!0;a.altKey&&(c.Cd=!0);if(this.cb){var d=this.cb[Aq(this.host)];if(d&&d.call(this,a))return}if(this.Dc)return this.Dc(a);this.u=this.fa=!1;if(229==b&&(!ib&&db&&null!=a.key&&(isNaN(Number(a.key))?"."===a.key&&(b=190,this.u=!0):(b=a.key.charCodeAt(0),this.u=!0)),!this.u))return!0;(d=0===Number(this.qa()))||(d=rF(this),d=null!=d&&d.length==Math.abs(this.o-
this.v)?!0:!1);if(d&&!0===this.oh&&(8==b||46==b)&&!1===c.Cd&&!1===c.gd&&!1===c.Oc&&1!=fr(this))return this.g.Sa=1,this.g.ra(null),this.Sa=1,this.hb(this.g.sb(this.ca,!0)),this.Ia(this.Text),this.v=this.o=null==this.Text?0:this.Text.length,this.Ca(this.o,this.v),"nocontrol"==this.g.l.j.Fb&&(this.g.l.j.Ea=!0,this.g.oa.j.Ea=!0),M(this),!1;var e=this.u?this.ia():this.s.ia();d=this.wb();e=R.prototype.om.call(this,{jd:b,mk:c,o:this.o,v:this.v,fm:this.La,uj:fr(this),am:this.na,Re:!1,gm:this.Cc,$e:this.mg,
Text:this.ia(),Vc:e,wc:this.wc,tt:!1,Zr:!0});!fr(this)||9==b||65545==b||c.Oc&&67==b||(e.Aa=!1);this.Ze(d);this.cd&&NN(this,!1);null!=e.Sa&&(this.Sa=e.Sa);e.lm||e.Aa||1==e.Ib||this.Ca(this.o,this.v);if(1==e.Ra||null==e.Aa)e.Aa=!0;yN(this);e.Aa&&e.Ra&&(this.u||mb())&&this.Ud(a.key,{keyCode:Number(a.key.charCodeAt(0))});return e.Aa};
g.Ud=function(a,b){if(fr(this))return!1;110===b.keyCode&&(a=this.g.l.j.Ra);if(a==this.g.l.j.Ra)if(0!=Y(this.g.l.j).h+Y(this.g.l.j).i){this.g.Qo=!1;b=this.g.Ud(this.o,this.v,a);if(null==b)return!1;null!=b.o&&(this.o=b.o);null!=b.v&&(this.v=b.v);null!=b.Text&&(this.hb(b),this.Ia(this.Text),this.Ca(this.o,this.v));M(this);null!=b.Va&&(this.ea=b.Va);null!=b.pa&&(a=N(this.host,b.pa.gb,b.pa.ib),null!=a&&(this.ea=a));this.g.Qo=!0}else a=this.i.InvalidInput,a=N(this.host,a,null),null!=a&&(this.ea=a),this.hb(this.Text),
this.Ia(this.Text),this.Ca(this.o,this.v);else return 13!=b.keyCode?(a=this.i.InvalidInput,a=N(this.host,a,null),null!=a&&(this.ea=a),Cf(b),!1):!0};g.Ae=function(a){this.u=!1;return 1==this.fa?!1:13!=a.keyCode?!1:!0};g.dj=function(){if(y||cb||db||hb)try{this.Rb()}finally{M(this),this.fa=!1}};g.ji=function(){var a=this;try{ib&&this.u?this.Rb():setTimeout(function(){return a.Rb()},20)}finally{this.fa=!1}};
g.Rb=function(){var a=this.s.ia();if(a==this.ia())null!=window.event&&Cf(window.event),this.fa=!1;else{var b;if(""!=this.ia()){var c=Math.min(this.o,this.v),d=Math.max(this.o,this.v);d<this.ia().ba()?(d=C(this.ia(),d,this.ia().ba()),-1!=a.jb(d)?b=C(a,c,a.ba()-d.ba()):b=""):b=C(a,c,a.ba())}else b=a;this.pc(b)}};g.sd=function(){return this.g.sd()};
g.Ob=function(a){var b=this.h.Increment,c=!0;"down"==a&&(b*=-1,c=!1);fr(this)?(a=N(this.host,c?this.i.SpinUp:this.i.SpinDown,null),null!=a&&(this.ea=a)):(rF(this)==tM(this.l.j)&&(this.v=W(this.l.j).Ba()+X(this.l.j).Ba()),a=this.g.Ob(this.v,this.v,b,this.h.Wrap,c),null!=a&&(null!=a.Text&&(this.Text!=a.Text&&(this.l.j.zc=!0),this.hb(a)),null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),this.Ia(this.Text),this.Ca(this.o,this.v),null!=a.pa&&(this.Bb=!0,a=N(this.host,a.pa.gb,a.pa.ib),null!=a&&(this.ea=a),
this.Bb=!1),yN(this),M(this)))};g.pc=function(a){if(Jr(this)){var b=this.wb();a=R.prototype.pc.call(this,a);this.Ze(b,!1);yN(this);M(this);return a}};g.dd=function(){R.prototype.dd.call(this);yN(this)};g.rh=function(){R.prototype.rh.call(this);this.rb=!0};g.Fg=function(a){this.ob=!0;return R.prototype.Fg.call(this,a)};g.Hk=function(a,b){var c=this.wb();R.prototype.Hk.call(this,a,b);this.Ze(c,!1)};g.vi=function(){return this.l.j.nc!==this.oa.j.nc?0:R.prototype.vi.call(this)};
g.rf=function(){if(!fr(this)){var a=this.g.Ig(this.o,this.v);null!=a&&(null!=a.o&&(this.o=a.o),null!=a.v&&(this.v=a.v),null!=a.Text&&(this.hb(a.Text),this.Ia(this.Text),this.Ca(this.o,this.v)),M(this),yN(this))}};g.Ub=function(){if(!fr(this)){var a=this.g.Ub(this.ka,this.lg);this.Sa=this.lg;null!=a&&(null!=a.Text&&(this.hb(a),this.Ia(this.Text),this.o=a.o,this.Ca(this.o,this.o)),M(this))}};
g.Ze=function(a,b,c,d){var e=this;eN(this.g);void 0!==c&&(this.ud=c);var f=!1;if(b||this.cd)if(void 0==c&&(1==this.g.Sa?c=null:c=mM(this.g.l.j)),null!=c){if(b){var h={};var k=this.g.Jg.h,l=this.g.Jg.g;k>l?h.ep=!0:c>l?(h.Zf=!0,h.eg=!1):c<k?(h.Zf=!1,h.eg=!0):(h.Zf=!1,h.eg=!1)}else h=vN(this.g.Jg,c);if(h.ep)return f;if(h.Zf||h.eg){k=this.l.j.s;if(d&&"keep"!==k){k="adjusttomaxmin";var m=this.qa(),n=this.ia()}else ON(this);switch(k){case "adjusttomaxmin":h.Zf?PN(this,this.g.Jg.g):h.eg&&PN(this,this.g.Jg.h);
f=this.ia();this.Ia(f);this.hb(f);this.o=this.v=oN(this.g);b||this.Ca(this.o,this.v);f=!0;break;case "cancelinput":b?(f=this.lc,null!=f?PN(this,f):QN(this),f=this.ia(),this.Ia(f),this.hb(f),this.o=this.v=oN(this.g),b||this.Ca(this.o,this.v),f=!0):null!=a&&(this.Lb(a),this.Ca(this.o,this.v),f=!0);break;case "clear":k=this.g.Jg.h;l=this.g.Jg.g;f=!1;(0<k||0>l)&&b&&(f=!0);a=this.g.wc;this.g.wc=this.wc;f&&(this.g.wc="null");this.g.fb();this.g.wc=a;f=this.ia();b&&(f=this.g.sb(this.ca,this.ca));this.Ia(f);
this.hb(f);this.o=this.v=oN(this.g);b||window.setTimeout(function(){e.Ca(e.o,e.v)},0);f=!0;break;case "restore":f=this.lc,null!=f?PN(this,f):QN(this),f=this.ia(),this.Ia(f),this.hb(f),this.o=this.v=oN(this.g),b||this.Ca(this.o,this.v),f=!0}}else(c>this.bc||c<this.Zb)&&"keep"==this.l.j.s&&c!=this.ud&&(ON(this),this.ud=c);void 0!==d&&void 0!==m&&m!==this.qa()&&(b=N(this.host,this.i.TextChanged,null),null!=b&&(this.ea=b),this.ka=this.qa(),this.g.yh={Ja:this.qa(),Ea:this.l.j.Ea});void 0!==d&&void 0!==
n&&n!==this.ia()&&(b=N(this.host,this.i.ValueChanged,null),null!=b&&(this.ea=b))}return f};function QN(a){var b=a.g.wc;a.g.wc="null";a.g.fb();a.g.wc=b}function PN(a,b){a.g.l.j.ra(b,!1)}function NN(a,b){var c=a.qa();null==c?b&&(a.lc=null):(b=a.g.Jg,null!=c&&(c>b.g||c<b.h)||(a.lc=c))}function ON(a){N(a.host,a.i.InvalidRange,null)}function RN(a){var b=a.qa();return null===b?!1:!(0===b&&!1===a.oh)}
function SN(a){if(0<a.ga.value.length||RN(a)){a.g.wc=a.wc;var b=a.g.fb();setTimeout(function(){if(null!=b.Text&&!a.hb(b))return b.Aa=!1,b;var c=hF(a);null!=b.o&&(a.o=b.o);null!=b.v&&(a.v=b.v);var d=hF(a);b.Aa||(b.Ib?(a.ne(),b.Aa=!1):(a.Ia(a.Text),Je=0==c&&0!=d?!0:!1,a.Ca(a.o,a.v),Je=!1,b.lm=!0));M(a);null!=b.Sa&&(a.Sa=b.Sa);b.lm||b.Aa||1==b.Ib||a.Ca(a.o,a.v)},0)}}g.ti=function(a){R.prototype.ti.call(this,a);this.sa||(this.sa=!0)};g.Um=function(){return new TN};g.Tm=function(){return new TN};
g.eb=function(){return R.prototype.eb.call(this)};g.xb=function(){return R.prototype.xb.call(this)};g.zj=function(a,b){this.l.j.Rc=b;this.eb().g=sM(this.l.j)};g.Ch=function(a,b){this.oa.j.Rc=b;this.xb().g=sM(this.oa.j);this.Pf()&&!this.ca&&this.Ia(gN(this.g))};g.Lg=function(a,b){R.prototype.Lg.call(this,a,b);this.Xa&&(a=this.Xa[Aq(this.host)])&&a.call(this,b)};g.wf=function(a){var b=a?this.eb():this.xb();return 0===this.qa()?b.s:R.prototype.wf.call(this,a)};
function FN(a,b){b?(a.eb().g=sM(a.l.j),a.eb().s=tM(a.l.j)):(a.xb().g=sM(a.oa.j),a.xb().s=tM(a.oa.j))}g.Qj=function(){if(!Kq(this).Db)return"";var a=this.ca?this.eb():this.xb();return 0===this.qa()&&null!=a.s&&""!==a.s?"zeroWatermark":R.prototype.Qj.call(this)};function yN(a){if(a.xc)try{a.xc()}catch(b){console.error(b)}}function BN(a,b){var c=jN(a.g,"","");b();jN(a.g,"","")!==c&&(b=N(a.host,a.i.TextChanged,null),null!=b&&(a.ea=b))}
function UN(a){for(var b=[],c=0;5>c;c++)b.push(a.l.j.Ya(c));if(""!==a.l.j.Oa){var d=a.ia(),e=Math.max(W(a.l.j).Ba(),0),f=Math.max(fM(a.l.j).Ba(),0);c=0;d=fa(d.substring(e,d.length-f));for(e=d.next();!e.done;e=d.next())e.value===a.l.j.Oa&&c++;b[1].length+=c;for(a=2;5>a;a++)b[a].start=b[a-1].start+b[a-1].length;return b}}
g.syncValueFromSlider=function(a){var b=gF(this);if(null===this.qa()||0===this.qa()&&rF(this)===tM(this.l.j)){var c=1;b=0}else{c=UN(this);var d=c[2],e=c[4];b<c[1].start?c=0:b<=d.start?(c=1,b=d.start-b):b<=e.start?(c=3,b-=d.start+d.length):(c=4,b-=e.start)}this.ra(a,!0);e=UN(this);a=e[1];d=e[2];e=e[4];var f=0;switch(c){case 0:f=Math.min(b,a.start);break;case 1:f=Math.max(d.start-b,a.start);break;case 3:f=Math.min(d.start+d.length+b,e.start);break;case 4:f=e.start+b}f=md(f,0,this.ia().length);this.wh(f);
this.Ca(gF(this),gF(this))};function TN(){Lr.apply(this,arguments);this.s=this.i=""}t(TN,Lr);function VN(a){this.Zc=A("div",{class:"gcim-numeric-pad"},A("div",{class:"gcim-numeric-pad__row"},A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col1 gcim-numeric-button","data-button-value":"caretMoveLeft"},"<"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col2 gcim-numeric-button","data-button-value":"caretMoveRight"},">"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col3 gcim-numeric-button","data-button-value":"backspace"},
A("i",{class:"gcim-icon gcim-icon_back-space"}))),A("div",{class:"gcim-numeric-pad__row"},A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col1 gcim-numeric-button","data-button-value":"1"},"1"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col2 gcim-numeric-button","data-button-value":"2"},"2"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col3 gcim-numeric-button","data-button-value":"3"},"3")),A("div",{class:"gcim-numeric-pad__row"},
A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col1 gcim-numeric-button","data-button-value":"4"},"4"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col2 gcim-numeric-button","data-button-value":"5"},"5"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col3 gcim-numeric-button","data-button-value":"6"},"6")),A("div",{class:"gcim-numeric-pad__row"},A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col1 gcim-numeric-button",
"data-button-value":"7"},"7"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col2 gcim-numeric-button","data-button-value":"8"},"8"),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col3 gcim-numeric-button","data-button-value":"9"},"9")),A("div",{class:"gcim-numeric-pad__row gcim-numeric-pad__row_last-row"},A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col1 gcim-numeric-button","data-button-value":"0"},"0"),A("button",{type:"button",
tabindex:"-1",class:"gcim-numeric-pad__row_col2 gcim-numeric-button","data-button-value":"decimalPoint"},"."),A("button",{type:"button",tabindex:"-1",class:"gcim-numeric-pad__row_col3 gcim-numeric-button","data-button-value":"plusOrMinus"},"+/-")));this.Zc.addEventListener("contextmenu",function(b){b.preventDefault();return!1});this.g=a.Es;this.s=a.Cl||function(){};this.i=a.Bl||function(){};this.h=a.Al||function(){};this.u=a.mo||function(){};this.ca=a.no||function(){};this.ea=a.oo||function(){};WN(this);
this.g&&this.g.appendChild(this.Zc)}g=VN.prototype;g.dispose=function(){this.Nb();this.g&&this.g.removeChild(this.Zc)};g.Nb=function(){this.ea=this.u=this.ca=this.h=this.i=this.s=null};
function WN(a){for(var b=a.Zc.querySelectorAll(".gcim-numeric-button"),c={},d=0;d<b.length;c={ii:c.ii,Dg:c.Dg},d++){c.ii=b[d];var e=c.ii.dataset.buttonValue;if(isNaN(e)){c.Dg=function(){};switch(e){case "backspace":c.Dg=a.h;break;case "caretMoveLeft":c.Dg=a.u;break;case "caretMoveRight":c.Dg=a.ca;break;case "decimalPoint":c.Dg=a.i;break;case "plusOrMinus":c.Dg=a.s}c.ii.addEventListener("click",function(f){return function(){f.Dg()}}(c))}else c.ii.addEventListener("click",function(f){return function(){a.ea(Number(f.ii.dataset.buttonValue))}}(c))}}
g.Al=function(a){this.h=a};g.Bl=function(a){this.i=a};g.Cl=function(a){this.s=a};g.getElement=function(){return this.Zc};
function XN(a,b){this.Na=b;var c=this;this.da=a;this.g=new VN({Es:null,Cl:function(){c.Cl()},Bl:function(){c.Bl()},Al:function(){c.Al()},mo:function(){c.mo()},no:function(){c.no()},oo:function(d){c.oo(d)}});this.Na.setInnerElement(this.g.getElement());this.h=function(d){c.da.setFocusInternal();d.preventDefault()}.bind(this);this.g.getElement().addEventListener("mousedown",this.h)}t(XN,Pv);g=XN.prototype;g.Cl=function(){this.da.performKeyDown(YN("plusOrMinus"))};g.mo=function(){this.da.performKeyDown(YN("caretMoveLeft"))};
g.no=function(){this.da.performKeyDown(YN("caretMoveRight"))};g.Bl=function(){this.da.performKeyPress(".",YN("decimalPoint"))};g.Al=function(){this.da.performKeyDown(YN("backspace"))};g.oo=function(a){this.da.performKeyDown(YN(a.toString()))};g.dispose=function(){this.g&&(this.g.getElement().removeEventListener("mousedown",this.h),this.g.dispose());Pv.prototype.dispose.call(this)};g.setValue=function(){throw Error("Can not set value on drop-down numeric pad.");};
g.getValue=function(){throw Error("Can not get value on drop-down numeric pad.");};g.getElement=function(){return this.g.getElement()};
function YN(a){switch(a){case "caretMoveLeft":return 37;case "caretMoveRight":return 39;case "backspace":return 8;case "1":return 49;case "2":return 50;case "3":return 51;case "4":return 52;case "5":return 53;case "6":return 54;case "7":return 55;case "8":return 56;case "9":return 57;case "0":return 48;case "decimalPoint":return 110;case "plusOrMinus":return 109}};function ZN(a,b,c){this.Na=b;var d=this;this.da=a;this.g=new Fe(document.createElement("div"),c);a=this.g.element;a.setAttribute("tabindex","-1");b=document.createElement("div");b.className="calculator-btn-row calculator-btn-row--ok";c=document.createElement("div");c.className="calculator-btn calculator-btn--ok";c.textContent="OK";b.appendChild(c);a.querySelector(".calculator-btn-panel").appendChild(b);a.setAttribute("calculator-type","dropdown");this.Na.setInnerElement(a);this.Na.onOpen(function(){d.da.setFocusInternal();
var e=d.da.getValue();d.g.value=e});a.addEventListener("mousedown",function(e){d.da.setFocusInternal();e.preventDefault()});c.addEventListener("click",function(){d.da.getUIInputElement().dataset.triggeredByInput="false";$N(d);d.close()})}t(ZN,Pv);ZN.prototype.dispose=function(){this.g.destroy();Pv.prototype.dispose.call(this)};function $N(a){if(!a.g.isInvalid)try{a.da.syncValueFromDropDown(a.g.value)}catch(b){console.error(b)}}ZN.prototype.setValue=function(a){this.g.value=a};
ZN.prototype.getValue=function(){this.g.value};
function aO(a,b,c){this.da=a;this.Na=b;this.g=new Fe(document.createElement("div"),c);a=this.g.element;b=document.createElement("div");b.className="calculator-btn-row calculator-btn-row--ok--cancel";c=document.createElement("div");c.className="calculator-btn calculator-btn--ok";c.textContent="OK";var d=document.createElement("div");d.className="calculator-btn calculator-btn--cancel";d.textContent=w.CancelButton;this.i=c;this.h=d;b.appendChild(d);b.appendChild(c);a.querySelector(".calculator-btn-panel").appendChild(b);
a.setAttribute("calculator-type","popup");this.Na.setInnerElement(this.g.element);bO(this)}t(aO,Pv);g=aO.prototype;g.dispose=function(){this.g.destroy()};function bO(a){a.i.addEventListener("click",a.gs.bind(a));a.h.addEventListener("click",a.zr.bind(a));a.Na.onOpen(a.xs.bind(a));a.g.element.addEventListener("mousedown",function(b){a.da.setFocusInternal();b.preventDefault()})}g.gs=function(){this.da.getUIInputElement().dataset.triggeredByInput="false";cO(this);this.close()};
g.zr=function(){this.da.getUIInputElement().dataset.triggeredByInput="false";this.close()};g.xs=function(){this.da.setFocusInternal();var a=this.da.getValue();this.g.value=a};function cO(a){if(!a.g.isInvalid)try{a.da.syncValueFromDropDown(a.g.value)}catch(b){console.error(b)}}g.setValue=function(a){this.g.value=a};g.getValue=function(){this.g.value};var dO={Horizontal:"horizontal",Vertical:"vertical"};v("SliderDirection",dO);var eO={Top:"top",Bottom:"bottom"};v("SliderTooltipPosition",eO);var fO={None:"none",Always:"always",Hover:"hover"};v("SliderTooltipShowMode",fO);var gO={ThumbMove:"thumbmove",ThumbRelease:"thumbrelease"};v("SliderValueChangeMode",gO);function hO(){this.s={};this.na=100;this.ub=this.ta=0;this.Fa=1;this.g=[];this.Ta="thumbmove";this.va=!1;this.i="horizontal";this.fa=!0;this.ga=function(a){return""+a};this.la="bottom";this.Ma="hover";this.Ga=function(a){return""+a};this.La="top";this.sa=!1;this.ka=function(a){return""+a};this.ca=!0;this.u=1;this.ea=!1;this.Ic=this.Sc=!0;return this}t(hO,tg);hO.prototype.dispose=function(){vg(this)};
function iO(a,b,c){var d;a.showRange?d=a.value[c===jO?0:1]:d=a.value;b=kO(a,d,b);if(null===b)return!1;if(!a.showRange)return a.value=b,!1;c=c===jO?[b,a.value[1]]:[a.value[0],b];b=!1;c[0]>c[1]&&(b=!0,c=c.reverse());a.value=c;return b}function lO(a,b){return[mO(a,nO(a,b[0])),mO(a,nO(a,b[1]))]}function nO(a,b){return oO(a,pO(a,b))}function qO(a,b){a.showRange?a.value=[pO(a,b[0]),pO(a,b[1])]:a.value=pO(a,b)}function mO(a,b){b=md(b,a.min,a.max);return a.max===a.min?0:(b-a.min)/(a.max-a.min)*100}
function pO(a,b){return(a.max-a.min)*b/100+a.min}function rO(a){var b=a.g,c=sO(a,a.g);tO(b,c)||(a.g=c,a.ha(uO))}function sO(a,b){return Array.from(new Set(b)).filter(function(c){var d=a.min,e=a.max;var f=void 0===f?!1:f;var h=void 0===h?!1:h;return f||h?f&&!h?c>d&&c<=e:!f&&h?c>=d&&c<e:f&&h?c>d&&c<e:void 0:c>=d&&c<=e}).sort(function(c,d){return c-d})}function vO(a){return sO(a,[a.min].concat(ha(a.marks),[a.max]))}
function tO(a,b){if(a===b)return!0;if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}function wO(a){var b=a.value,c=oO(a,b);xO(b,c)||(a.ub=c,a.ha(yO))}function xO(a,b){return typeof a!==typeof b?!1:Array.isArray(a)?a[0]===b[0]&&a[1]===b[1]:a===b}function oO(a,b){if(Array.isArray(b)){var c=zO(a,b[0],a.min,a.max,a.step,vO(a));a=zO(a,b[1],a.min,a.max,a.step,vO(a));return[c,a]}return zO(a,b,a.min,a.max,a.step,vO(a))}
function zO(a,b,c,d,e,f){a=AO(a,b,c,d,e);for(e=0;e<f.length&&!(f[e]>=b);e++);f=e>=f.length?f[f.length-1]:0===e?f[0]:BO(b,f[e-1],f[e]);return md(null===a?f:BO(b,a,f),c,d)}function AO(a,b,c,d,e){if(null===e)return null;b=md(b,c,d);b=c+Math.round((b-c)/e)*e;b>d&&(b-=e);return CO(a,b)}function CO(a,b){function c(d){return(String(d).split(".")[1]||"").length}a=a.step?Math.max(c(a.step),c(a.max),c(a.min)):Math.max(c(a.max),c(a.min));return Number(b.toFixed(a))}
function BO(a,b,c){return G(b)&&G(c)?null:G(b)?c:G(c)?b:Math.abs(a-b)<Math.abs(a-c)?b:c}function kO(a,b,c){switch(c){case DO:return c=EO(a,b,!1),a=vO(a).find(function(h){return h>b}),BO(b,c,a);case FO:return c=EO(a,b,!0),a=vO(a).reverse().find(function(h){return h<b}),BO(b,c,a);case GO:case HO:for(var d=b,e=0;e<a.keyStep;e++){var f=kO(a,d,c===GO?DO:FO);if(null===f)break;d=f}return d;case IO:return a.max;case JO:return a.min;default:return oc(),b}}
function EO(a,b,c){if(null===a.step)return null;var d=AO(a,b,a.min,a.max,a.step);b=d===b?[d-a.step,d+a.step]:d>b?[d-a.step,d]:[d,d+a.step];return c?CO(a,b[0]):CO(a,b[1])}
p.Object.defineProperties(hO.prototype,{max:{configurable:!0,enumerable:!0,get:function(){return this.na},set:function(a){"number"===typeof a&&(a<this.min?nc():this.max!==a&&(this.na=a,rO(this),wO(this),this.ha(KO)))}},min:{configurable:!0,enumerable:!0,get:function(){return this.ta},set:function(a){"number"===typeof a&&(a>this.max?nc():this.min!==a&&(this.ta=a,rO(this),wO(this),this.ha(KO)))}},value:{configurable:!0,enumerable:!0,get:function(){return Array.isArray(this.ub)?[this.ub[0],this.ub[1]]:
this.ub},set:function(a){var b=!this.showRange&&"number"===typeof a;if(this.showRange&&Array.isArray(a)&&2===a.length&&a[0]<=a[1]||b)a=oO(this,a),xO(this.value,a)||(this.ub=a,this.ha(yO))}},step:{configurable:!0,enumerable:!0,get:function(){return this.Fa},set:function(a){("number"===typeof a&&0<a||null===a)&&this.step!==a&&(this.Fa=a,wO(this))}},marks:{configurable:!0,enumerable:!0,get:function(){return Array.from(this.g)},set:function(a){if(Array.isArray(a)){var b=this.g;a=sO(this,a);tO(b,a)||(this.g=
a,this.ha(uO),wO(this))}}},valueChangeMode:{configurable:!0,enumerable:!0,get:function(){return this.Ta},set:function(a){a=I(gO,a);null!==a&&(this.Ta=a)}},showRange:{configurable:!0,enumerable:!0,get:function(){return this.va},set:function(a){if("boolean"===typeof a&&this.showRange!==a){var b=this.showRange;this.va=a;b?this.value=this.value[0]:this.value=[this.value,this.value]}}},direction:{configurable:!0,enumerable:!0,get:function(){return this.i},set:function(a){var b=this.direction;a=I(dO,a);
null!==a&&b!==a&&(this.i=a,this.ha(LO))}},showMarkLabel:{configurable:!0,enumerable:!0,get:function(){return this.fa},set:function(a){"boolean"===typeof a&&this.showMarkLabel!==a&&(this.fa=a,this.ha(MO))}},markLabelFormat:{configurable:!0,enumerable:!0,get:function(){return this.ga},set:function(a){"function"===typeof a&&(this.ga=a,this.ha(MO))}},markLabelPosition:{configurable:!0,enumerable:!0,get:function(){return this.la},set:function(a){a=I(eO,a);null!==a&&this.markLabelPosition!=a&&(this.la=
a,this.ha(NO))}},tooltipShowMode:{configurable:!0,enumerable:!0,get:function(){return this.Ma},set:function(a){a=I(fO,a);null!==a&&this.tooltipShowMode!=a&&(this.Ma=a,this.ha(OO))}},tooltipFormat:{configurable:!0,enumerable:!0,get:function(){return this.Ga},set:function(a){"function"===typeof a&&(this.Ga=a,this.ha(OO))}},tooltipPosition:{configurable:!0,enumerable:!0,get:function(){return this.La},set:function(a){a=I(eO,a);null!==a&&this.tooltipPosition!=a&&(this.La=a,this.ha(OO))}},showMarkTip:{configurable:!0,
enumerable:!0,get:function(){return this.sa},set:function(a){"boolean"===typeof a&&this.showMarkTip!==a&&(this.sa=a)}},markTipFormat:{configurable:!0,enumerable:!0,get:function(){return this.ka},set:function(a){"function"===typeof a&&(this.ka=a)}},keyboard:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){"boolean"===typeof a&&(this.ca=a)}},keyStep:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){"number"===typeof a&&0<a&&Number.isInteger(a)&&
(this.u=a)}},readOnly:{configurable:!0,enumerable:!0,get:function(){return this.ea},set:function(a){"boolean"===typeof a&&this.readOnly!==a&&(this.ea=a)}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.Sc},set:function(a){"boolean"===typeof a&&this.enabled!==a&&(this.Sc=a,this.ha(PO))}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Ic},set:function(a){"boolean"===typeof a&&this.visible!==a&&(this.Ic=a,this.ha(QO))}},h:{configurable:!0,enumerable:!0,get:function(){return this.enabled&&
!this.readOnly}},bb:{configurable:!0,enumerable:!0,get:function(){return this.showRange?[mO(this,this.value[0]),mO(this,this.value[1])]:mO(this,this.value)}}});var DO=0,FO=1,GO=2,HO=3,IO=4,JO=5,jO=0,KO="RangeChanged",LO="DirectionChanged",MO="MarkLabelChanged",NO="MarkLabelPositionChanged",yO="ValueChanged",QO="VisibleStateChanged",uO="MarksChanged",PO="EnableStateChanged",OO="TooltipChanged";function RO(a,b){var c=this;this.h=null;this.i=function(d){if(c.m.showMarkTip){d=d.target;var e=ge(d);d=SO(c,d);var f=new Jk(document.body,d,{delayTime:300,eh:3E3,className:TO,mf:14,yg:4,hk:1});f.u=function(){Mk(f,{x:e.x,y:e.y})};c.h=f}};this.s=function(){null!==c.h&&(c.h.close(),c.h=null)};this.elements=UO(a);"true"===this.elements.Mc.getAttribute("data-nested")&&(this.elements.Mc.tabIndex=-1);this.m=b;this.Dh();this.nb().setAttribute(VO,this.m.direction);this.nb().setAttribute(WO,XO(this)+"");this.nb().setAttribute(YO,
this.m.markLabelPosition);this.nb().setAttribute(ZO,this.m.tooltipShowMode);this.elements.Kq.setAttribute($O,this.m.tooltipPosition);this.elements.Iq.setAttribute($O,this.m.tooltipPosition);this.nb().setAttribute(aP,this.m.visible+"");this.nb().setAttribute(bP,this.m.enabled+"");cP(this);dP(this);this.g=new eP(this,b)}RO.prototype.nb=function(){return this.elements.Mc};RO.prototype.dispose=function(){this.g.dispose()};function fP(a){a.nb().setAttribute(YO,a.m.markLabelPosition)}
function cP(a){a.nb().setAttribute(VO,a.m.direction);gP(a);dP(a);hP(a);iP(a)}
RO.prototype.Dh=function(){var a=this;J(J(J(J(J(J(J(J(J(this.m,KO,function(){gP(a);dP(a);hP(a);iP(a)}),LO,function(){cP(a)}),MO,function(){iP(a)}),uO,function(){hP(a);iP(a)}),NO,function(){fP(a)}),yO,function(){gP(a);dP(a)}),QO,function(){a.nb().setAttribute(aP,a.m.visible+"")}),PO,function(){a.nb().setAttribute(bP,a.m.enabled+"");"true"!==a.elements.Mc.getAttribute("data-nested")&&(a.m.enabled?a.nb().tabIndex=0:a.nb().tabIndex=-1)}),OO,function(){dP(a)})};
function dP(a){jP(a,a.m.value);a.nb().setAttribute(ZO,a.m.tooltipShowMode);a.fg()}function kP(a,b){var c="";try{c=a.m.tooltipFormat(b)}catch(d){}return c}function jP(a,b){"none"!==a.m.tooltipShowMode&&(a.m.showRange?(a.elements.Is.innerHTML=kP(a,b[0]),a.elements.Jq.innerHTML=kP(a,b[1])):a.elements.Jq.innerHTML=kP(a,b))}function lP(a,b){a.m.showRange?jP(a,[nO(a.m,b[0]),nO(a.m,b[1])]):jP(a,nO(a.m,b[1]))}
RO.prototype.fg=function(){var a=this.elements.Kq;mP(this,a);nP(a);a=this.elements.Iq;mP(this,a);nP(a)};
function mP(a,b){b.setAttribute($O,a.m.tooltipPosition);if(0!==b.offsetWidth){var c=b.getBoundingClientRect();"top"===a.m.tooltipPosition&&0>c.top?(b.setAttribute($O,"bottom"),b.getBoundingClientRect().bottom>document.documentElement.clientHeight&&b.setAttribute($O,"top")):"bottom"===a.m.tooltipPosition&&c.bottom>document.documentElement.clientHeight&&(b.setAttribute($O,"top"),0>b.getBoundingClientRect().top&&b.setAttribute($O,"bottom"))}}
function nP(a){var b=a.getBoundingClientRect();if(0!==b.width&&0!==b.height){var c=a.parentElement.getBoundingClientRect(),d=c.left+c.width/2,e=document.documentElement.clientWidth-c.right+c.width/2,f=parseFloat(window.getComputedStyle(a.parentElement).borderLeftWidth);d=document.documentElement.clientWidth<b.width?-(c.left+f):d>=b.width/2&&e>=b.width/2?-(b.width/2-c.width/2+f):d>=b.width/2&&e<b.width/2?-(b.width-(document.documentElement.clientWidth-c.left)+f):-(c.left+f);e=a.querySelector("."+oP);
var h=parseFloat(window.getComputedStyle(a).borderLeftWidth),k=parseFloat(window.getComputedStyle(a).borderTopLeftRadius),l=parseFloat(window.getComputedStyle(a).borderTopRightRadius),m=parseFloat(window.getComputedStyle(a).borderBottomLeftRadius),n=parseFloat(window.getComputedStyle(a).borderBottomRightRadius);c=-d+c.width/2-h-f;"bottom"===a.getAttribute($O)?(f=m+e.offsetWidth,l=b.width-n-e.offsetWidth):(f=k+e.offsetWidth,l=b.width-l-e.offsetWidth);f<=l?c=md(c,f,l):c=b.width/2;a.style.left=d+"px";
e.style.left=c+"px"}}function XO(a){return a.m.showMarkLabel&&0<a.m.marks.length}
function iP(a){a.nb().setAttribute(WO,XO(a)+"");fP(a);if(XO(a)){a.elements.xo.innerHTML="";var b=new DocumentFragment;a.m.marks.forEach(function(c){var d=b.appendChild,e="";try{e=a.m.markLabelFormat(c)}catch(f){}e=A("span",{class:pP},e);e.setAttribute(qP,c+"");c=mO(a.m,c);"horizontal"===a.m.direction?(e.style.left=c+"%",e.style.bottom=""):(e.style.bottom=c+"%",e.style.left="");return d.call(b,e)});a.elements.xo.appendChild(b)}}
function hP(a){rP(a);var b=new DocumentFragment;a.m.marks.forEach(function(c){var d=b.appendChild,e=A("div",{class:sP});e.setAttribute(qP,c+"");e.addEventListener("mouseenter",a.i);e.addEventListener("mouseleave",a.s);c=mO(a.m,c);"horizontal"===a.m.direction?(e.style.left=c+"%",e.style.bottom=""):(e.style.bottom=c+"%",e.style.left="");return d.call(b,e)});a.elements.yo.appendChild(b)}
function rP(a){a.elements.yo.querySelectorAll("."+sP).forEach(function(b){b.removeEventListener("mouseenter",a.i);b.removeEventListener("mouseleave",a.s)});a.elements.yo.innerHTML=""}function SO(a,b){var c="";try{c=a.m.markTipFormat(parseFloat(b.getAttribute(qP)))}catch(d){}return c}function gP(a){tP(a,a.m.showRange?a.m.bb:[0,a.m.bb])}
function tP(a,b){a.m.showRange?a.elements.Ag.classList.remove("gcim_hidden"):a.elements.Ag.classList.add("gcim_hidden");"horizontal"===a.m.direction?(a.elements.Ag.style.left=b[0]+"%",a.elements.hi.style.left=b[1]+"%",a.elements.kh.style.left=b[0]+"%",a.elements.kh.style.width=b[1]-b[0]+"%",a.elements.Ag.style.bottom="",a.elements.hi.style.bottom="",a.elements.kh.style.bottom="",a.elements.kh.style.height=""):(a.elements.Ag.style.bottom=b[0]+"%",a.elements.hi.style.bottom=b[1]+"%",a.elements.kh.style.bottom=
b[0]+"%",a.elements.kh.style.height=b[1]-b[0]+"%",a.elements.Ag.style.left="",a.elements.hi.style.left="",a.elements.kh.style.left="",a.elements.kh.style.width="")}function uP(a,b){tP(a,[0,mO(a.m,b)]);jP(a,b);a.fg()}
function eP(a,b){this.s={};var c=this;this.sa=!1;this.la=function(d){return function(){var e=c.m.value,f=d.apply(null,ha(oa.apply(0,arguments)));xO(e,c.m.value)||c.ha(vP);return f}.bind(c)};this.La=function(){c.u=null};this.Fa=function(){c.m.h&&!c.u&&(c.u=c.m.showRange?c.h:c.i)};this.ta=function(){c.Pa.fg()}.bind(this);this.Ga=function(d){c.Rh(d)};this.Xa=function(d){if(!(c.m.keyboard&&c.m.h&&c.ca[d.key]))return!1;if(c.sa)return d.preventDefault(),!0;var e=c.ca[d.key];return e?e(d):!1};this.ea=function(d){switch(d.key){case "ArrowUp":case "ArrowRight":var e=
iO(c.m,DO,c.fa);break;case "ArrowDown":case "ArrowLeft":e=iO(c.m,FO,c.fa);break;case "PageUp":e=iO(c.m,GO,c.fa);break;case "PageDown":e=iO(c.m,HO,c.fa);break;case "Home":e=iO(c.m,JO,c.fa);break;case "End":e=iO(c.m,IO,c.fa);break;default:return!1}d.preventDefault();e&&c.m.showRange&&(c.u=c.u===c.i?c.h:c.i);return!0};this.rb=function(d){return c.m.showRange?d.shiftKey&&c.u===c.i?(c.u=c.h,d.preventDefault(),!0):d.shiftKey||c.u!==c.h?!1:(c.u=c.i,d.preventDefault(),!0):!1};this.ob=function(d){if(c.m.h){gP(c.Pa);
dP(c.Pa);c.g.Mc.setAttribute(wP,"true");c.u=xP(c,d);c.sa=!0;if(!yP(c,d.target)){var e=zP(c,d,!1);null!==e&&AP(c,c.u,e)}c.ha(BP);c.va=!0;c.bb={x:d instanceof MouseEvent?d.pageX:d.touches[0].pageX,y:d instanceof MouseEvent?d.pageY:d.touches[0].pageY};e=d instanceof MouseEvent?"mousemove":"touchmove";var f=d instanceof MouseEvent?"mouseup":"touchend";d instanceof MouseEvent&&(c.ka=document.createElement("div"),c.ka.classList.add("gcim__slider-mask"),document.body.appendChild(c.ka));document.addEventListener(e,
c.Ma,{passive:!1});document.addEventListener(f,c.Ta)}};this.mb=function(d){if("thumbrelease"===c.m.valueChangeMode){var e=CP(c,c.i);if(null!==e)if(c.m.showRange){var f=CP(c,c.h);null!==f&&qO(c.m,[f,e])}else qO(c.m,e)}c.sa=!1;c.va=!1;e=d instanceof MouseEvent?"mousemove":"touchmove";d=d instanceof MouseEvent?"mouseup":"touchend";c.g.Mc.removeAttribute(wP);c.ha(DP);c.ka&&c.ka.remove();document.removeEventListener(d,c.Ta);document.removeEventListener(e,c.Ma)};this.cb=function(d){d instanceof MouseEvent||
!d.cancelable||d.preventDefault();if(c.va){var e=d instanceof MouseEvent?d.pageY:d.touches[0].pageY;if((d instanceof MouseEvent?d.pageX:d.touches[0].pageX)===c.bb.x&&e===c.bb.y)return;c.va=!1}e=zP(c,d,!0);if(null!=e){var f=c.u;if(c.m.showRange){var h=!0,k=CP(c,c.h);d=CP(c,c.i);if(null===k||null===d)return;f===c.h&&d<e?(k=d,d=e,f=c.i):f===c.i&&k>e?(d=k,k=e,f=c.h):h=!1;if(h){c.u=f;e=k;switch(c.m.valueChangeMode){case "thumbmove":qO(c.m,[e,d]);break;case "thumbrelease":d=lO(c.m,[e,d]);tP(c.Pa,d);lP(c.Pa,
d);c.Pa.fg();break;default:oc()}return}}AP(c,f,e)}};this.Rh=this.la(this.Xa);this.na=this.la(this.ob);this.Ta=this.la(this.mb);this.Ma=this.la(this.cb);this.Pa=a;this.m=b;this.g=a.elements;this.ca={};this.ca.ArrowUp=this.ea;this.ca.PageUp=this.ea;this.ca.ArrowRight=this.ea;this.ca.ArrowDown=this.ea;this.ca.PageDown=this.ea;this.ca.ArrowLeft=this.ea;this.ca.Home=this.ea;this.ca.End=this.ea;this.ca.Tab=this.rb;this.Dh()}t(eP,tg);eP.prototype.dispose=function(){this.Nb();this.ca=null};
eP.prototype.Dh=function(){this.g.Mc.addEventListener("keydown",this.Ga);this.g.Mc.addEventListener("focus",this.Fa);this.g.Mc.addEventListener("blur",this.La);this.g.Mc.addEventListener("dragstart",function(a){return a.preventDefault()});kb()&&this.g.fk.addEventListener("touchstart",this.na);this.g.fk.addEventListener("mousedown",this.na);this.g.Ag.addEventListener("mouseenter",this.ta);this.g.hi.addEventListener("mouseenter",this.ta)};
eP.prototype.Nb=function(){this.g.Mc.removeEventListener("keydown",this.Ga);this.g.Mc.removeEventListener("focus",this.Fa);this.g.Mc.removeEventListener("blur",this.La);kb()&&this.g.fk.removeEventListener("touchstart",this.na);this.g.fk.removeEventListener("mousedown",this.na);this.g.Ag.removeEventListener("mouseenter",this.ta);this.g.hi.removeEventListener("mouseenter",this.ta)};function yP(a,b){return b?a.h.contains(b)||a.i.contains(b):!1}
function xP(a,b){if(!a.m.showRange)return a.i;if(yP(a,b.target)){a:{var c=b.target;if(c){if(a.h.contains(c)){a=a.h;break a}if(a.i.contains(c)){a=a.i;break a}}a=null}return a}var d=ge(a.h);c=ge(a.i);switch(a.m.direction){case "horizontal":d=d.x;c=c.x;b=b instanceof MouseEvent?b.clientX:b.touches[0].clientX;break;case "vertical":d=d.y;c=c.y;b=b instanceof MouseEvent?b.clientY:b.touches[0].clientY;break;default:return oc(),null}d=Math.abs(b-d);var e=Math.abs(b-c);return d!==e?d<e?a.h:a.i:"horizontal"===
a.m.direction?b>c?a.i:a.h:b<c?a.i:a.h}function CP(a,b){if("horizontal"===a.m.direction)return parseFloat(b.style.left);if("vertical"===a.m.direction)return parseFloat(b.style.bottom);oc();return null}
function zP(a,b,c){var d=b.target;if(c||!(d&&d.classList.contains(sP)||d&&d.classList.contains(pP)))a:switch(c=a.g.fk.getBoundingClientRect(),a.m.direction){case "horizontal":a=c.left;c=c.right;b=md(b instanceof MouseEvent?b.clientX:b.touches[0].clientX,a,c);b=a===c?0:(b-a)/(c-a)*100;break a;case "vertical":a=c.top;c=c.bottom;b=md(b instanceof MouseEvent?b.clientY:b.touches[0].clientY,a,c);b=a===c?0:(c-b)/(c-a)*100;break a;default:oc(),b=null}else b=CP(a,d);return b}
function AP(a,b,c){switch(a.m.valueChangeMode){case "thumbmove":a.m.showRange?(b===a.h?(b=c,c=CP(a,a.i)):b=CP(a,a.h),null!==b&&null!==c&&qO(a.m,[b,c])):qO(a.m,c);break;case "thumbrelease":a:{if(a.m.showRange){var d=CP(a,a.h);var e=CP(a,a.i);if(null===d||null===e)break a;b===a.h?d=c:e=c}else d=0,e=c;c=lO(a.m,[d,e]);tP(a.Pa,c);lP(a.Pa,c);a.Pa.fg()}break;default:oc()}}
p.Object.defineProperties(eP.prototype,{h:{configurable:!0,enumerable:!0,get:function(){return this.g.Ag}},i:{configurable:!0,enumerable:!0,get:function(){return this.g.hi}},fa:{configurable:!0,enumerable:!0,get:function(){return this.u===this.h?jO:1}},u:{configurable:!0,enumerable:!0,get:function(){return this.ga},set:function(a){this.ga?this.ga!=a&&(this.ga.classList.remove(EP),this.ga=a):this.ga=a;a&&a.classList.add(EP)}}});
var vP="ValueChanged",BP="MouseDownInActiveState",DP="MouseUpInActiveState",VO="direction",WO="show-mark-label",YO="mark-label-position",ZO="tooltip-show-mode",$O="tooltip-position",aP="visible",bP="enabled",qP="mark-value",wP="active",sP="gcim__slider-mark",pP="gcim__slider-mark-label",EP="gcim__slider-active-thumb",TO="gcim__slider-mark-tip",oP="gcim__slider-tooltip-arrow";
function UO(a){var b=A("div",{class:"gcim__slider-container"},A("div",{class:"gcim__slider-content-container"},A("div",{class:"gcim__slider-wrapper"},A("div",{class:"gcim__slider-track"}),A("div",{class:"gcim__slider-track-bar"}),A("div",{class:"gcim__slider-marks"}),A("div",{class:"gcim__slider-thumb"},A("div",{class:"gcim__slider-tooltip"},A("div",{class:oP}),A("div",{class:"gcim__slider-tooltip-text"}))),A("div",{class:"gcim__slider-thumb"},A("div",{class:"gcim__slider-tooltip"},A("div",{class:oP}),
A("div",{class:"gcim__slider-tooltip-text"})))),A("div",{class:"gcim__slider-mark-labels"})));a.classList.add("gcim__slider");a.tabIndex=0;a.appendChild(b);var c=b.querySelectorAll(".gcim__slider-thumb");return{Mc:a,fk:b,Ar:b.querySelector(".gcim__slider-content-container"),bj:b.querySelector(".gcim__slider-wrapper"),Ct:b.querySelector(".gcim__slider-track"),kh:b.querySelector(".gcim__slider-track-bar"),yo:b.querySelector(".gcim__slider-marks"),xo:b.querySelector(".gcim__slider-mark-labels"),Ag:c[0],
hi:c[1],Kq:c[0].querySelector(".gcim__slider-tooltip"),Iq:c[1].querySelector(".gcim__slider-tooltip"),Is:c[0].querySelector(".gcim__slider-tooltip-text"),Jq:c[1].querySelector(".gcim__slider-tooltip-text")}};function FP(a,b){xe.g=!0;this.m=new hO;this.Pa=new RO(a,this.m);b&&(this.ck(G(b.min)?this.min:b.min,G(b.max)?this.max:b.max),void 0!==b.step&&(this.step=b.step),G(b.marks)||(this.marks=b.marks),G(b.valueChangeMode)||(this.valueChangeMode=b.valueChangeMode),G(b.direction)||(this.direction=b.direction),G(b.showMarkLabel)||(this.showMarkLabel=b.showMarkLabel),G(b.markLabelFormat)||(this.markLabelFormat=b.markLabelFormat),G(b.markLabelPosition)||(this.markLabelPosition=b.markLabelPosition),G(b.tooltipShowMode)||
(this.tooltipShowMode=b.tooltipShowMode),G(b.tooltipFormat)||(this.tooltipFormat=b.tooltipFormat),G(b.tooltipPosition)||(this.tooltipPosition=b.tooltipPosition),G(b.showMarkTip)||(this.showMarkTip=b.showMarkTip),G(b.markTipFormat)||(this.markTipFormat=b.markTipFormat),G(b.keyboard)||(this.keyboard=b.keyboard),G(b.keyStep)||(this.keyStep=b.keyStep),G(b.readOnly)||(this.readOnly=b.readOnly),G(b.enabled)||(this.enabled=b.enabled),G(b.visible)||(this.visible=b.visible),G(b.showRange)||(this.showRange=
b.showRange),G(b.width)||(this.width=b.width),G(b.height)||(this.height=b.height),G(b.value)||(this.value=b.value));this.$c={};this.$c.valuechanged=new K(this);this.Dh();$d(a,"GcSlider",this);this.Zc=a}g=FP.prototype;g.dispose=function(){this.Pa.dispose();this.m.dispose();ce(this.Zc)};function GP(a){return"number"===typeof a?a+"px":"string"!==typeof a||0===a.length?null:/^\d+$/.test(a)?a+"px":a}g.Dh=function(){var a=this;J(this.m,yO,function(){return a.$c.valuechanged.ha()})};
g.addEventListener=function(a,b){a&&(a=this.$c[a.toLowerCase()])&&Un(a,b)};g.removeEventListener=function(a,b){a&&(a=this.$c[a.toLowerCase()])&&Vn(a,b)};g.Rh=function(a){return this.Pa.g.Rh(a)};g.ck=function(a,b){b<a?$b(b,a,"max","min"):b<this.min?(this.min=a,this.max=b):(this.max=b,this.min=a)};g.fg=function(){this.Pa.fg()};
p.Object.defineProperties(FP.prototype,{max:{configurable:!0,enumerable:!0,get:function(){return this.m.max},set:function(a){this.m.max=a}},min:{configurable:!0,enumerable:!0,get:function(){return this.m.min},set:function(a){this.m.min=a}},value:{configurable:!0,enumerable:!0,get:function(){return this.m.value},set:function(a){this.m.value=a}},step:{configurable:!0,enumerable:!0,get:function(){return this.m.step},set:function(a){this.m.step=a}},marks:{configurable:!0,enumerable:!0,get:function(){return this.m.marks},
set:function(a){this.m.marks=a}},valueChangeMode:{configurable:!0,enumerable:!0,get:function(){return this.m.valueChangeMode},set:function(a){this.m.valueChangeMode=a}},showRange:{configurable:!0,enumerable:!0,get:function(){return this.m.showRange},set:function(a){this.m.showRange=a}},direction:{configurable:!0,enumerable:!0,get:function(){return this.m.direction},set:function(a){this.m.direction=a}},showMarkLabel:{configurable:!0,enumerable:!0,get:function(){return this.m.showMarkLabel},set:function(a){this.m.showMarkLabel=
a}},markLabelFormat:{configurable:!0,enumerable:!0,get:function(){return this.m.markLabelFormat},set:function(a){this.m.markLabelFormat=a}},markLabelPosition:{configurable:!0,enumerable:!0,get:function(){return this.m.markLabelPosition},set:function(a){this.m.markLabelPosition=a}},tooltipShowMode:{configurable:!0,enumerable:!0,get:function(){return this.m.tooltipShowMode},set:function(a){this.m.tooltipShowMode=a}},tooltipFormat:{configurable:!0,enumerable:!0,get:function(){return this.m.tooltipFormat},
set:function(a){this.m.tooltipFormat=a}},tooltipPosition:{configurable:!0,enumerable:!0,get:function(){return this.m.tooltipPosition},set:function(a){this.m.tooltipPosition=a}},showMarkTip:{configurable:!0,enumerable:!0,get:function(){return this.m.showMarkTip},set:function(a){this.m.showMarkTip=a}},markTipFormat:{configurable:!0,enumerable:!0,get:function(){return this.m.markTipFormat},set:function(a){this.m.markTipFormat=a}},keyboard:{configurable:!0,enumerable:!0,get:function(){return this.m.keyboard},
set:function(a){this.m.keyboard=a}},keyStep:{configurable:!0,enumerable:!0,get:function(){return this.m.keyStep},set:function(a){this.m.keyStep=a}},readOnly:{configurable:!0,enumerable:!0,get:function(){return this.m.readOnly},set:function(a){this.m.readOnly=a}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.m.enabled},set:function(a){this.m.enabled=a}},visible:{configurable:!0,enumerable:!0,get:function(){return this.m.visible},set:function(a){this.m.visible=a}},width:{configurable:!0,
enumerable:!0,get:function(){return parseFloat(window.getComputedStyle(this.Pa.nb()).width)},set:function(a){a=GP(a);null!=a&&(this.Pa.nb().style.width=a,this.Pa.fg())}},height:{configurable:!0,enumerable:!0,get:function(){return parseFloat(window.getComputedStyle(this.Pa.nb()).height)},set:function(a){a=GP(a);null!=a&&(this.Pa.nb().style.height=a,this.Pa.fg())}},elements:{configurable:!0,enumerable:!0,get:function(){return this.Pa.elements}}});function HP(a,b,c){this.Na=b;var d=this;this.ca=!1;this.cf=function(){d.da.setFocusInternal();IP(d);JP(d);d.da.onInput(d.ea);J(J(J(d.xa.Pa.g,vP,d.u),BP,d.i),DP,d.s)};this.Uf=function(){d.da.removeInput(d.ea);ug(ug(ug(d.xa.Pa.g,vP,d.u),BP,d.i),DP,d.s)};this.ea=function(){IP(d)};this.i=function(){"thumbmove"===d.xa.valueChangeMode&&KP(d)};this.s=function(){"thumbrelease"===d.xa.valueChangeMode&&KP(d)};this.u=function(){KP(d)};this.g={step:void 0,min:void 0,max:void 0,marks:void 0,valueChangeMode:"thumbrelease",
direction:void 0,showMarkLabel:void 0,markLabelFormat:void 0,markLabelPosition:void 0,tooltipShowMode:void 0,tooltipFormat:void 0,tooltipPosition:void 0,showMarkTip:void 0,markTipFormat:void 0,keyStep:void 0};this.da=a;this.xa=new FP(b.getElement(),LP(this,c));MP(this,c);this.xa.elements.Mc.setAttribute("tabindex","-1");NP(this);this.da.onEnabledReadOnlyChanged(function(){d.xa.readOnly=d.da.readOnly;d.xa.enabled=d.da.enabled});this.Na.onOpen(this.cf);this.Na.onClose(this.Uf);this.Na.onOpened(function(){return OP(d)})}
t(HP,Pv);HP.prototype.dispose=function(){this.xa.elements.Mc.removeEventListener("mousedown",this.h);this.xa.dispose();Pv.prototype.dispose.call(this)};function NP(a){a.h=function(b){a.da.setFocusInternal();b.preventDefault()}.bind(a);a.xa.elements.Mc.addEventListener("mousedown",a.h)}function MP(a,b){b&&(G(b.width)||(a.width=b.width),G(b.height)||(a.height=b.height))}function KP(a){if(a.da.enabled&&!a.da.readOnly&&a.da.getValue()!==a.xa.value)try{a.da.syncValueFromSlider(a.xa.value)}catch(b){}}
function IP(a){var b,c=md(Number(null!==(b=a.da.getValue())&&void 0!==b?b:a.min),a.min,a.max);a.xa.value=c;OP(a)}function OP(a){var b,c=md(Number(null!==(b=a.da.getValue())&&void 0!==b?b:a.min),a.min,a.max);uP(a.xa.Pa,c)}function LP(a,b){var c=a.da.getSliderRange();a.g.min=c[0];a.g.max=c[1];if(b)for(var d in a.g)void 0!==b[d]&&(a.g[d]=b[d]);a.g.enabled=a.da.enabled;a.g.readOnly=a.da.readOnly;return a.g}
function JP(a){if(!a.ca)if("horizontal"===a.direction)a.xa.elements.Mc.style.width="";else{var b=0;a.xa.elements.xo.querySelectorAll("."+pP).forEach(function(c){c=c.offsetWidth;c>b&&(b=c)});a.xa.width=Math.max(a.xa.elements.Ar.offsetWidth+2*b,50)}}function PP(a){if("number"===typeof a)return a+"px";a=parseFloat(a);return isNaN(a)?null:a+"px"}HP.prototype.getValue=function(){return this.xa.value};HP.prototype.setValue=function(a){this.xa.value=a};
p.Object.defineProperties(HP.prototype,{min:{configurable:!0,enumerable:!0,get:function(){return this.xa.min},set:function(a){this.xa.min=a;OP(this)}},max:{configurable:!0,enumerable:!0,get:function(){return this.xa.max},set:function(a){this.xa.max=a;OP(this)}},step:{configurable:!0,enumerable:!0,get:function(){return this.xa.step},set:function(a){this.xa.step=a;OP(this)}},marks:{configurable:!0,enumerable:!0,get:function(){return this.xa.marks},set:function(a){this.xa.marks=a;OP(this)}},valueChangeMode:{configurable:!0,
enumerable:!0,get:function(){return this.xa.valueChangeMode},set:function(a){this.xa.valueChangeMode=a}},direction:{configurable:!0,enumerable:!0,get:function(){return this.xa.direction},set:function(a){this.xa.direction=a;OP(this)}},showMarkLabel:{configurable:!0,enumerable:!0,get:function(){return this.xa.showMarkLabel},set:function(a){this.xa.showMarkLabel=a}},markLabelFormat:{configurable:!0,enumerable:!0,get:function(){return this.xa.markLabelFormat},set:function(a){this.xa.markLabelFormat=a}},
markLabelPosition:{configurable:!0,enumerable:!0,get:function(){return this.xa.markLabelPosition},set:function(a){this.xa.markLabelPosition=a}},tooltipShowMode:{configurable:!0,enumerable:!0,get:function(){return this.xa.tooltipShowMode},set:function(a){this.xa.tooltipShowMode=a}},tooltipFormat:{configurable:!0,enumerable:!0,get:function(){return this.xa.tooltipFormat},set:function(a){this.xa.tooltipFormat=a}},tooltipPosition:{configurable:!0,enumerable:!0,get:function(){return this.xa.tooltipPosition},
set:function(a){this.xa.tooltipPosition=a}},showMarkTip:{configurable:!0,enumerable:!0,get:function(){return this.xa.showMarkTip},set:function(a){this.xa.showMarkTip=a}},markTipFormat:{configurable:!0,enumerable:!0,get:function(){return this.xa.markTipFormat},set:function(a){this.xa.markTipFormat=a}},keyStep:{configurable:!0,enumerable:!0,get:function(){return this.xa.keyStep},set:function(a){this.xa.keyStep=a}},width:{configurable:!0,enumerable:!0,set:function(a){if(a=PP(a))this.xa.width=a,this.ca=
!0},get:function(){return this.xa.width}},height:{configurable:!0,enumerable:!0,set:function(a){this.xa.height=PP(a)},get:function(){return this.xa.height}}});function QP(a,b){var c=this;this.ea="bottomborder";this.Ic=this.fa=!1;this.i="horizontal";this.ca=!0;this.u=1;this.ka=function(){RP(c)};this.ga=function(){"thumbmove"===c.xa.valueChangeMode&&RP(c)};this.la=function(){"thumbrelease"===c.xa.valueChangeMode&&RP(c)};this.h=function(d){c.da.setFocusInternal();d.preventDefault()};this.na=function(d){c.xa.Rh(d);if("Tab"===d.key){var e={};e.Key=d.shiftKey?2:1;N(c.da,c.da.Tc().i.KeyExit,e)}return"Tab"===d.key};this.da=a;SP(this,b);this.Dh()}g=QP.prototype;
g.dispose=function(){this.Nb();this.xa.dispose()};
function SP(a,b){a.ua=A("div",{class:TP,"data-nested":"true"});a.xa=new FP(a.ua);a.da.getExtensionEl().appendChild(a.ua);b||(b={});var c=a.da.getSliderRange();a.xa.ck(c[0],c[1]);a.visible=G(b.visible)?!1:b.visible;void 0!==b.step&&(a.step=b.step);G(b.marks)||(a.marks=b.marks);G(b.valueChangeMode)||(a.valueChangeMode=b.valueChangeMode);a.showMarkLabel=G(b.showMarkLabel)?!1:b.showMarkLabel;G(b.markLabelFormat)||(a.markLabelFormat=b.markLabelFormat);G(b.markLabelPosition)||(a.markLabelPosition=b.markLabelPosition);
a.showMarkTip=G(b.showMarkTip)?!0:b.showMarkTip;G(b.markTipFormat)||(a.markTipFormat=b.markTipFormat);G(b.position)?a.position="bottomborder":a.position=b.position;G(b.tooltipShowMode)||(a.tooltipShowMode=b.tooltipShowMode);G(b.tooltipPosition)||(a.tooltipPosition=b.tooltipPosition);G(b.tooltipFormat)||(a.tooltipFormat=b.tooltipFormat);G(b.replaceEditor)||(a.replaceEditor=b.replaceEditor);G(b.direction)||(a.direction=b.direction);G(b.keyboard)||(a.keyboard=b.keyboard);G(b.keyStep)||(a.keyStep=b.keyStep);
a.xa.enabled=a.da.enabled;a.xa.readOnly=a.da.readOnly;UP(a);VP(a);WP(a)}
g.Dh=function(){var a=this;kb()&&this.ua.addEventListener("touchstart",this.h,!0);this.ua.addEventListener("mousedown",this.h,!0);this.da.onInput(function(){UP(a)});this.da.onEnabledReadOnlyChanged(function(){a.xa.enabled=a.da.enabled;a.xa.readOnly=a.da.readOnly});XP(this.da,function(){var b=a.da.getSliderRange();a.xa.ck(b[0],b[1]);UP(a)});J(J(J(this.xa.Pa.g,vP,this.ka),BP,this.ga),DP,this.la);this.s=function(){a.g&&a.xa.Pa.g.g.Mc.setAttribute(wP,"true")}.bind(this);this.da.getLayoutElement().addEventListener("focus",
this.s,!0);this.Qf=function(b){Od(a.da.getLayoutElement(),b.relatedTarget)||a.xa.Pa.g.g.Mc.removeAttribute(wP)}.bind(this);this.da.getLayoutElement().addEventListener("focusout",this.Qf)};g.Nb=function(){kb()&&this.ua.removeEventListener("touchstart",this.h,!0);this.ua.removeEventListener("mousedown",this.h,!0);this.da.getLayoutElement().removeEventListener("focus",this.s,!0);this.da.getLayoutElement().removeEventListener("focusout",this.Qf)};
function YP(a){var b,c=a.da.getSliderRange()[0],d=Number(null!==(b=a.da.getValue())&&void 0!==b?b:c);uP(a.xa.Pa,d)}function UP(a){var b,c=a.da.getSliderRange()[0],d=Number(null!==(b=a.da.getValue())&&void 0!==b?b:c);a.xa.value=d;YP(a)}function RP(a){a.da.enabled&&!a.da.readOnly&&a.da.getValue()!==a.xa.value&&a.visible&&a.da.syncValueFromSlider(a.xa.value)}
function ZP(a){var b=a.replaceEditor?{direction:a.direction,keyboard:a.keyboard,keyStep:a.keyStep}:{direction:"horizontal",keyboard:!1,keyStep:1};a.xa.direction=b.direction;a.xa.keyboard=b.keyboard;a.xa.keyStep=b.keyStep}
g.updatePosition=function(){this.ua.setAttribute("slider-position",this.position);if(this.va){var a=window.getComputedStyle(this.ua.parentElement);a=Math.max(1,parseFloat(a.borderBottomWidth));this.xa.elements.bj.style.height=a+"px";this.xa.elements.bj.style.marginTop=a+"px";this.xa.elements.bj.style.marginBottom=a+"px";this.xa.elements.Mc.style.height=4+a+"px";this.xa.elements.Mc.style.bottom=-(2+a)+"px"}else this.xa.elements.bj.style.height="",this.xa.elements.bj.style.marginTop="",this.xa.elements.bj.style.marginBottom=
"",this.xa.elements.Mc.style.height="",this.xa.elements.Mc.style.bottom=""};function $P(a){a.sa?(a.da.getExtensionEl().classList.remove(aQ),a.da.Tc().Dc=void 0):(a.da.getExtensionEl().classList.add(aQ),a.da.Tc().Dc=a.na);WP(a)}function WP(a){a.da.getLayoutElement().setAttribute("gcim-is-slider-replace-editor",a.g.toString())}function VP(a){a.da.getLayoutElement().setAttribute("slider-direction",a.i)}
g.getSliderOffset=function(){var a={};if(!this.ta)return a;switch(this.position){case "bottomborder":a.bottom=this.showMarkLabel?20:10;break;case "left":a.left=this.ua.offsetWidth+10;break;case "right":a.right=this.ua.offsetWidth+10}return a};
p.Object.defineProperties(QP.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return this.visible&&this.replaceEditor}},sa:{configurable:!0,enumerable:!0,get:function(){return!this.g}},ta:{configurable:!0,enumerable:!0,get:function(){return this.visible&&!this.replaceEditor}},va:{configurable:!0,enumerable:!0,get:function(){return!this.replaceEditor&&"bottomborder"===this.position}},step:{configurable:!0,enumerable:!0,get:function(){return this.xa.step},set:function(a){this.xa.step=a;YP(this)}},
marks:{configurable:!0,enumerable:!0,get:function(){return this.xa.marks},set:function(a){this.xa.marks=a;this.da.adjustControlMargin();YP(this)}},valueChangeMode:{configurable:!0,enumerable:!0,get:function(){return this.xa.valueChangeMode},set:function(a){this.xa.valueChangeMode=a}},showMarkLabel:{configurable:!0,enumerable:!0,get:function(){return this.xa.showMarkLabel},set:function(a){this.xa.showMarkLabel=a;this.da.adjustControlMargin()}},markLabelFormat:{configurable:!0,enumerable:!0,get:function(){return this.xa.markLabelFormat},
set:function(a){this.xa.markLabelFormat=a}},markLabelPosition:{configurable:!0,enumerable:!0,get:function(){return this.xa.markLabelPosition},set:function(a){this.xa.markLabelPosition=a}},showMarkTip:{configurable:!0,enumerable:!0,get:function(){return this.xa.showMarkTip},set:function(a){this.xa.showMarkTip=a}},markTipFormat:{configurable:!0,enumerable:!0,get:function(){return this.xa.markTipFormat},set:function(a){this.xa.markTipFormat=a}},position:{configurable:!0,enumerable:!0,get:function(){return this.ea},
set:function(a){a=I(aM,a);null!==a&&(this.ea=a,this.updatePosition(),this.da.adjustControlMargin())}},visible:{configurable:!0,enumerable:!0,get:function(){return this.Ic},set:function(a){"boolean"===typeof a&&(this.Ic=a,$P(this),this.xa.visible=a,this.da.adjustControlMargin())}},tooltipShowMode:{configurable:!0,enumerable:!0,get:function(){return this.xa.tooltipShowMode},set:function(a){this.xa.tooltipShowMode=a}},tooltipPosition:{configurable:!0,enumerable:!0,get:function(){return this.xa.tooltipPosition},
set:function(a){this.xa.tooltipPosition=a}},tooltipFormat:{configurable:!0,enumerable:!0,get:function(){return this.xa.tooltipFormat},set:function(a){this.xa.tooltipFormat=a}},replaceEditor:{configurable:!0,enumerable:!0,get:function(){return this.fa},set:function(a){this.fa=H(a);$P(this);(this.replaceEditor?this.da.getLayoutElement():this.da.getExtensionEl()).appendChild(this.ua);this.ua.classList.remove(TP);this.ua.classList.remove(bQ);this.ua.classList.add(this.replaceEditor?bQ:TP);this.da.refreshUI(0);
this.updatePosition();this.da.adjustControlMargin();ZP(this);this.xa.fg()}},direction:{configurable:!0,enumerable:!0,get:function(){return this.i},set:function(a){a=I(dO,a);null!==a&&(this.i=a,ZP(this),VP(this))}},keyboard:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){this.ca=H(a);ZP(this)}},keyStep:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){"number"===typeof a&&0<a&&Number.isInteger(a)&&(this.u=a,ZP(this))}}});
var TP="number-slider",bQ="gcim__replace-editor-slider",aQ="gcim__hidden-editor";function cQ(a,b){var c;kq.call(this,a,b);var d=this;this.$=new wN(this.getUIInputElement(),this.getUIInputElement().id,{SpinOnKeys:!0,SpinWheel:!0,Increment:1,Wrap:!0,AllowSpin:!0},this);KN(this.$,function(){d.$.Ea()?jd(d.getExtensionEl(),"gcim_gc-number_negative"):E(d.getExtensionEl(),"gcim_gc-number_negative")});(null===(c=this.getValue())||void 0===c?void 0:c.toString())!==this.getOriginalInputElement().value&&Bq(this,this.getValue());O(this.$,"ValueChanged",function(){Bq(d,d.getValue())});Or(this.$,
function(e){Cq(d,e)});this.tc(b);ob()||this.rc.i.setAttribute("inputmode","numeric");this.initComplete=!0}t(cQ,kq);g=cQ.prototype;
g.tc=function(a){kq.prototype.tc.call(this,a);F(a)?dQ(this):(G(a.clipContent)||this.setClipContent(a.clipContent),G(a.watermarkZeroText)||this.setWatermarkZeroText(a.watermarkZeroText),G(a.formatDigit)||this.setFormatDigit(a.formatDigit),G(a.displayFormatDigit)||this.setDisplayFormatDigit(a.displayFormatDigit),G(a.minValue)||G(a.maxValue)?(G(a.maxValue)||this.setMaxValue(a.maxValue),G(a.minValue)||this.setMinValue(a.minValue)):this.ck(Number(a.minValue),Number(a.maxValue)),G(a.positivePrefix)||this.setPositivePrefix(a.positivePrefix),
G(a.displayPositivePrefix)||this.setDisplayPositivePrefix(a.displayPositivePrefix),G(a.positiveSuffix)||this.setPositiveSuffix(a.positiveSuffix),G(a.displayPositiveSuffix)||this.setDisplayPositiveSuffix(a.displayPositiveSuffix),G(a.negativePrefix)||this.setNegativePrefix(a.negativePrefix),G(a.displayNegativePrefix)||this.setDisplayNegativePrefix(a.displayNegativePrefix),G(a.negativeSuffix)||this.setNegativeSuffix(a.negativeSuffix),G(a.displayNegativeSuffix)||this.setDisplayNegativeSuffix(a.displayNegativeSuffix),
G(a.valueSign)||this.setValueSign(a.valueSign),G(a.maxMinBehavior)||this.setMaxMinBehavior(a.maxMinBehavior),G(a.autoConvert)||(this.autoConvert=a.autoConvert),void 0!==a.value&&this.setValue(a.value),G(a.text)||this.setText(a.text),G(a.adjustValueOnFocus)||this.setAdjustValueOnFocus(a.adjustValueOnFocus),G(a.allowDeleteToNull)||this.setAllowDeleteToNull(a.allowDeleteToNull),G(a.clearAction)||this.setClearAction(a.clearAction),G(a.acceptsDecimal)||this.setAcceptsDecimal(a.acceptsDecimal),G(a.currencySymbol)||
this.setCurrencySymbol(a.currencySymbol),G(a.decimalPoint)||this.setDecimalPoint(a.decimalPoint),G(a.separator)||this.setSeparator(a.separator),G(a.watermarkDisplayZeroText)||this.setWatermarkDisplayZeroText(a.watermarkDisplayZeroText),!0===a.showSpinButton&&this.addSpinButton(a.spinButtonPosition?I(Na,a.spinButtonPosition)||"rightside":"rightside"),G(a.highlightText)||this.setHighlightText(a.highlightText),G(a.spinOnKeys)||this.setSpinOnKeys(a.spinOnKeys),G(a.spinWheel)||this.setSpinWheel(a.spinWheel),
G(a.spinWrap)||this.setSpinWrap(a.spinWrap),G(a.spinIncrement)||this.setSpinIncrement(a.spinIncrement),G(a.allowSpin)||this.setAllowSpin(a.allowSpin),G(a.spinFromZeroWhenValueIsNull)||(this.spinFromZeroWhenValueIsNull=a.spinFromZeroWhenValueIsNull),dQ(this,a.sliderConfig),!0===a.showCalculatorAsPopup?this.addDropDownCalculator(this.Li(a.calculatorButtonPosition),a.dropDownConfig,!0):!0===a.showCalculatorAsDropDown?this.addDropDownCalculator(this.Li(a.calculatorButtonPosition),a.dropDownConfig,!1):
!0===a.showNumericPad?this.addDropDownNumericPad(this.Li(a.numericPadPosition)):!0===a.showDropDownSlider&&this.addDropDownSlider(this.Li(a.sliderButtonPosition),a.dropDownConfig))};g.ck=function(a,b){b<a?$b(b,a,"maxValue","minValue"):b<this.$.Zb?(this.minValue=a,this.maxValue=b):(this.maxValue=b,this.minValue=a)};g.Li=function(a){return a?I(Ja,a):"rightside"};g.getUseClipboard=function(){return this.$.Fd()};g.setExitOnLastChar=function(){console.warn("Not Available in GcNumber")};
g.setExitOnLeftRightKey=function(a){Ir(this.$,a)};g.ff=function(){return this.$.Cc};g.setWatermarkDisplayNullText=function(a){Nr(this.$,a)};g.jf=function(){return this.$.xb().h};g.setWatermarkNullText=function(a){Mr(this.$,a)};g.kf=function(){return this.$.eb().h};g.setWatermarkZeroText=function(a){var b=this.$;a=lg(a);a!==b.eb().i&&(b.eb(),b.eb().i=a,b.l.j.qc=a,b.eb().s=tM(b.l.j),M(b))};
g.getSelectedText=function(){var a=this.$,b="",c=Math.min(a.o,a.v),d=Math.max(a.o,a.v);0!=d-c&&(b=Kq(a,!0),b.Db?b=b.og:(b=a.Text.substring(c,d),"excludeliterals"==a.na&&(c=mN(a.g,c,0).start,d=mN(a.g,d,0).start,b=a.g.l.j.vh(c,d))));return b};g.getDisplayText=function(){return jN(this.$.g,"","")};g.getSelectionStart=function(){return gF(this.$)};g.setAcceptsCrlf=function(a){kF(this.$,a)};g.Xf=function(){return this.$.Ue()};g.setClipContent=function(a){mF(this.$,a)};g.Lj=function(){return this.$.na};
g.setUseClipboard=function(a){lF(this.$,a)};g.getIsOverwrite=function(){return fF(this.$)};g.getSelectionLength=function(){return hF(this.$)};g.performKeyDown=function(a){this.$.Td({keyCode:a})};g.performKeyPress=function(a,b){this.$.Ud(a,{keyCode:b})};g.syncValueFromDropDown=function(a){this.$.Yc();this.$.pc(String(a))};
g.setFormatDigit=function(a){var b,c=this.$;var d=lg(a);var e=0;a=!1;null!==c.qa()&&(e=X(c.l.j).Gd(c.qa()),"0"===e&&(a=!0),e=e.length);var f=c.l.j;KM(f,d);f.nc=d;c.l.j.ra(c.qa(),!1);if(null===c.qa()||-1===c.qa().toString().indexOf(c.Ra))eM(c.l.j).ac=!1;FN(c,!0);d=X(c.l.j).h+X(c.l.j).i;!a&&d<e&&c.ra(null);null===(b=this.Bj)||void 0===b?void 0:b.ha()};g.setDisplayFormatDigit=function(a){EN(this.$,a)};
g.setMaxValue=function(a){var b;a=Number(a);if(a!==this.$.bc){var c=this.$;a<c.Zb?nc():a!==c.bc&&(c.bc=a,c.l.j.bc=a,c.oa.j.bc=a,c.Ze(c.wb(),!0,c.qa(),"ForceAdjustToMaxMin"),yN(c),M(c));null===(b=this.Bj)||void 0===b?void 0:b.ha()}};g.setMinValue=function(a){var b;a=Number(a);if(a!==this.$.Zb){var c=this.$;a=parseFloat(a.toString());a>c.bc?nc():a!==c.Zb&&(c.Zb=a,c.l.j.Zb=a,c.oa.j.Zb=a,c.Ze(c.wb(),!0,c.qa(),"ForceAdjustToMaxMin"),M(c));null===(b=this.Bj)||void 0===b?void 0:b.ha()}};
g.setPositivePrefix=function(a){var b=this.$;a=lg(a);NL(W(b.l.j),a);RL(W(b.l.j),b.l.j.Ea)};g.setDisplayPositivePrefix=function(a){GN(this.$,a)};g.setPositiveSuffix=function(a){var b=this.$;a=lg(a);NL(fM(b.l.j),a);RL(fM(b.l.j),b.l.j.Ea)};g.setDisplayPositiveSuffix=function(a){IN(this.$,a)};g.setNegativePrefix=function(a){var b=this.$;a=lg(a);OL(W(b.l.j),a);RL(W(b.l.j),b.l.j.Ea)};g.setDisplayNegativePrefix=function(a){HN(this.$,a)};
g.setNegativeSuffix=function(a){var b=this.$;a=lg(a);OL(fM(b.l.j),a);RL(fM(b.l.j),b.l.j.Ea)};g.setDisplayNegativeSuffix=function(a){JN(this.$,a)};
g.setValueSign=function(a){var b=this.$;a=I(cM,a);null!==a&&(b.qa(),b.ia(),null!==b.qa()&&"keep"!==b.l.j.s&&(b.ka=b.qa()),"nocontrol"===a&&null!==b.qa()||"positive"===a&&0<b.qa()||"negative"===a&&0>b.qa()?(b.Fb=a,JM(b.l.j,a),JM(b.oa.j,a)):(b.Fb=a,JM(b.l.j,a),JM(b.oa.j,a),null!==b.qa()?AN(b,"zero"):b.ra(b.ka),b.Vc=gN(b.g),b.Ia(b.Vc),M(b),b.ka=b.qa(),b.g.yh={Ja:b.qa(),Ea:b.l.j.Ea}))};g.setEditMode=function(a){nF(this.$,a)};g.ef=function(){return this.$.bb};g.setValue=function(a,b){this.$.ra(a,b)};
g.setText=function(a){this.$.Rd(a)};g.setAdjustValueOnFocus=function(a){a=H(a);this.$.cd=a};g.An=function(){return this.$.cd};g.setAllowDeleteToNull=function(a){var b=this.$;a=H(a);b.oh=a;b.wc=a?"null":"zero";b.g&&(b.g.wc=b.wc);b.host&&sq(b.host);b.host&&uq(b.host)};g.setClearAction=function(a){var b=this.$;a=I(bM,a);null!==a&&(b.wc=a)};g.setAcceptsDecimal=function(a){var b=this.$;a=I($L,a);null!==a&&(b.mb=a)};g.setCurrencySymbol=function(a){xN(this.$,a)};g.setDecimalPoint=function(a){CN(this.$,a)};
g.setMaxMinBehavior=function(a){var b=this.$;a=I(Ca,a);null!==a&&(b.l.j.s=a,b.oa.j.s=a)};g.On=function(){return this.$.l.j.s};g.setSeparator=function(a){DN(this.$,a)};g.setHighlightText=function(a){this.$.kj(a)};g.gf=function(){return this.$.Od()};g.setSelectionStart=function(a){this.$.wh(a)};g.setSelectionLength=function(a){return iF(this.$,a)};
g.setSelectedText=function(a){a:{var b=this.$;try{if(!fr(b))if(""==a)b.rf();else{var c=b.qa(),d=b.ia();if(zN(b,a)){if(-1!=a.indexOf(b.l.j.Ra)){var e=Math.max(b.o,b.v);if(1==eM(b.g.l.j).ac&&-1!=d.substring(e,d.length).indexOf(b.l.j.Ra)){dc(a);break a}}null==a&&(a="");var f=b.wb(),h=b.g.pc(b.o,b.v,a,!1,!0);if(null!=h){if(null!=h.Text){b.hb(h);if(oM(b.g.l.j,b.qa()))b.ne(),b.g.l.j.ra(b.qa(),!0);else{b.Lb(f);var k=N(b.host,b.i.InvalidRange,null);null!=k&&(b.ea=k)}null!=b.qa()&&(b.g.Sa=0);BM(b.g.oa.j,b.qa(),
!0);b.Ia(gN(b.g));M(b)}null!=h.o&&(b.o=h.o);null!=h.v&&(b.v=h.v);null!=h.pa&&N(b.host,h.pa.gb,h.pa.ib);d!=b.Text&&(k=N(b.host,b.i.TextChanged,null),null!=k&&(b.ea=k));c!=b.qa()&&(k=N(b.host,b.i.ValueChanged,null),null!=k&&(b.ea=k))}}else dc(a)}}catch(l){window.status="Sorry, You have set an invalid text!"}}};g.getValue=function(){return this.$.qa()};g.getText=function(){return this.$.ia()};g.clear=function(){this.$.fb()};g.sn=function(){this.$.ca?this.Zg():this.clear()};
g.doSpinDown=function(a,b){this.$.fj(a,b)};g.doSpinUp=function(a,b){this.$.gj(a,b)};g.selectAll=function(){this.$.Yc()};g.setWatermarkDisplayZeroText=function(a){var b=this.$;a=lg(a);a!==b.xb().i&&(b.xb(),b.xb().i=a,b.oa.j.qc=a,b.xb().s=tM(b.oa.j),0!==b.qa()||b.ca||b.Ia(gN(b.g)),M(b))};g.deselectAll=function(){Kr(this.$)};g.addSpinButton=function(a){var b=this;return kq.prototype.Jk.call(this,function(){return b.Zi()},function(){return b.Yi()},"leftside"===a)};g.Zi=function(){this.Xg()&&this.$.Ob("up")};
g.Yi=function(){this.Xg()&&this.$.Ob("down")};g.Ni=function(){return this.$.h.AllowSpin};g.Xg=function(){return this.$.allowSpin(2)};g.setSpinOnKeys=function(a){this.$.h.SpinOnKeys=a};g.Pj=function(){return this.$.h.SpinOnKeys};g.setSpinWheel=function(a){this.$.h.SpinWheel=a};g.Qh=function(){return this.$.h.SpinWheel};g.setSpinIncrement=function(a){a=Number(a);this.$.h.Increment=a};g.setSpinWrap=function(a){this.$.h.Wrap=a};g.Un=function(){return this.$.h.Wrap};
g.setAllowSpin=function(a){this.Ni()!==a&&(this.$.h.AllowSpin=a)};g.onEditStatusChanged=function(a){O(this.$,"EditStatusChanged",a)};g.removeEditStatusChanged=function(a){P(this.$,"EditStatusChanged",a)};g.onInvalidInput=function(a){O(this.$,"InvalidInput",a)};g.removeInvalidInput=function(a){P(this.$,"InvalidInput",a)};g.onInvalidRange=function(a){O(this.$,"InvalidRange",a)};g.removeInvalidRange=function(a){P(this.$,"InvalidRange",a)};g.onKeyExit=function(a){O(this.$,"KeyExit",a)};
g.removeKeyExit=function(a){P(this.$,"KeyExit",a)};g.onSpinDown=function(a){O(this.$,"SpinDown",a)};g.removeSpinDown=function(a){P(this.$,"SpinDown",a)};g.onSpinUp=function(a){O(this.$,"SpinUp",a)};g.removeSpinUp=function(a){P(this.$,"SpinUp",a)};g.onTextChanged=function(a){O(this.$,"TextChanged",a)};g.removeTextChanged=function(a){P(this.$,"TextChanged",a)};g.onInput=function(a){O(this.$,"Input",a)};g.removeInput=function(a){P(this.$,"Input",a)};
g.onValueChanged=function(a){O(this.$,"ValueChanged",a)};g.removeValueChanged=function(a){P(this.$,"ValueChanged",a)};g.onKeyDown=function(a){O(this.$,"keydown",a)};g.removeKeyDown=function(a){P(this.$,"keydown",a)};g.onEnabledReadOnlyChanged=function(a){this.Kk||(this.Kk=new K(this));Un(this.Kk,a)};g.onKeyUp=function(a){O(this.$,"keyup",a)};g.removeKeyUp=function(a){P(this.$,"keyup",a)};g.onFocusOut=function(a){O(this.$,"focusout",a)};g.removeFocusOut=function(a){P(this.$,"focusout",a)};
g.setExitOnEnterKey=function(a){this.$.setExitOnEnterKey(a)};g.yd=function(){return this.$.yd()};g.setReadOnly=function(a){var b;kq.prototype.setReadOnly.call(this,a);null===(b=this.Kk)||void 0===b?void 0:b.ha()};g.setEnabled=function(a){var b;kq.prototype.setEnabled.call(this,a);null===(b=this.Kk)||void 0===b?void 0:b.ha()};g.isPassOutOfRangeRule=function(){var a=this.getValue();if(!F(a))return a>=this.$.Zb&&a<=this.$.bc};
g.Ml=function(){return 0==this.getValue()&&!1===this.$.oh?!1:!this.getReadOnly()&&this.getEnabled()&&!F(this.getValue())&&this.tg};g.gi=function(){return kq.prototype.gi.call(this)&&!F(this.getValue())};g.Zg=function(){SN(this.$)};g.Tc=function(){return this.$};g.destroy=function(){this.xa&&this.xa.dispose();kq.prototype.destroy.call(this)};
g.addDropDownNumericPad=function(a){if(this.Er)return this;this.Na=new Do(this,{inputEl:this.getOriginalInputElement()});var b=new XN(this,this.Na);this.Er=b;var c=ed();this.Me[c]=b;this.addDropDownButton("Numeric_DropDown_Button",c,null,null,a,"gcim__side-button_drop-down-numeric-pad");LN(this.$,c,function(d){if(b.isOpened())switch(d.keyCode){case 27:case 13:return b.close(),!0}return!1});MN(this.$,c,function(){b.isOpened()&&b.close()});return this};
g.addDropDownCalculator=function(a,b,c){if(void 0===c?0:c)return eQ(this,a,b);if(this.Dr)return this;this.Na=new Do(this,{inputEl:this.getOriginalInputElement()});var d=new ZN(this,this.Na,b);this.Dr=d;b=ed();this.Me[b]=d;this.addDropDownButton("calculator-dropdown",b,null,null,a);LN(this.$,b,function(e){if(d.isOpened()){var f=!1,h=Jb(e);null!==h&&(d.g.performClick(h),f=!0);switch(e.keyCode){case 13:$N(d);d.close();f=!0;break;case 27:d.close(),f=!0}e=f}else e=!1;return e});MN(this.$,b,function(){d.isOpened()&&
d.close()});return this};function eQ(a,b,c){if(a.Fs)return a;a.Na=new No(a,{inputEl:a.getOriginalInputElement()});var d=new aO(a,a.Na,c);a.Fs=d;c=ed();a.Me[c]=d;a.addDropDownButton("calculator-popup",c,null,null,b);LN(a.$,c,function(e){if(d.isOpened()){var f=!1,h=Jb(e);null!==h&&(d.g.performClick(h),f=!0);switch(e.keyCode){case 13:cO(d);d.close();f=!0;break;case 27:d.close(),f=!0}e=f}else e=!1;return e});MN(a.$,c,function(){d.isOpened()&&d.close()});return a}
g.addDropDownSlider=function(a,b){if(this.dropDownSlider)return this;this.Na=new Do(this,{inputEl:this.getOriginalInputElement()});var c=new HP(this,this.Na,b);this.ur=c;b=ed();this.Me[b]=c;this.addDropDownButton("slider-dropdown",b,null,null,a);LN(this.$,b,function(d){if(c.isOpened()){var e=c.xa.Rh(d);switch(d.key){case "Enter":case "Escape":c.close(),e=!0}d=e}else d=!1;return d});MN(this.$,b,function(){c.isOpened()&&c.close()});return this};
function dQ(a,b){a.slider||(a.xa=new QP(a,b),a.adjustControlMargin())}g.Gn=function(){var a;return(null===(a=this.xa)||void 0===a?0:a.g)?{top:0}:kq.prototype.Gn.call(this)};g.getControlMarginOffset=function(a){var b=kq.prototype.getControlMarginOffset.call(this,a);if(8===(a&8)&&this.slider){a=this.slider.getSliderOffset();a=fa(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=fa(c.value);c=d.next().value;d=d.next().value;"number"===typeof d&&(b[c]+=d)}}return b};
g.Nh=function(){var a=kq.prototype.Nh.call(this);a.push("Numeric_DropDown_Button");a.push("calculator-dropdown");a.push("calculator-popup");a.push("slider-dropdown");return a};g.getSliderRange=function(){var a=pM(this.$.g.l.j,!0);return[a.Zb,a.bc]};function XP(a,b){a.Bj||(a.Bj=new K(a));Un(a.Bj,b)}g.syncValueFromSlider=function(a){this.$.syncValueFromSlider(a)};g.getMatchValue=function(){return this.getValue()};g.il=function(a){return this.xa.g?"outside":kq.prototype.il.call(this,a)};
p.Object.defineProperties(cQ.prototype,{selectedText:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedText()},set:function(a){this.setSelectedText(a)}},displayText:{configurable:!0,enumerable:!0,get:function(){return this.getDisplayText()}},selectionStart:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionStart()},set:function(a){this.setSelectionStart(a)}},isOverwrite:{configurable:!0,enumerable:!0,get:function(){return this.getIsOverwrite()}},selectionLength:{configurable:!0,
enumerable:!0,get:function(){return this.getSelectionLength()},set:function(a){this.setSelectionLength(a)}},value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()},set:function(a){this.setValue(a)}},text:{configurable:!0,enumerable:!0,get:function(){return this.getText()},set:function(a){this.setText(a)}},exitOnLeftRightKey:{configurable:!0,enumerable:!0,get:function(){return this.ff()},set:function(a){this.setExitOnLeftRightKey(a)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,
get:function(){return this.jf()},set:function(a){this.setWatermarkDisplayNullText(a)}},watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.kf()},set:function(a){this.setWatermarkNullText(a)}},watermarkZeroText:{configurable:!0,enumerable:!0,get:function(){return this.$.eb().i},set:function(a){this.setWatermarkZeroText(a)}},acceptsCrlf:{configurable:!0,enumerable:!0,get:function(){return this.Xf()},set:function(a){this.setAcceptsCrlf(a)}},clipContent:{configurable:!0,enumerable:!0,
get:function(){return this.Lj()},set:function(a){this.setClipContent(a)}},useClipboard:{configurable:!0,enumerable:!0,get:function(){return this.getUseClipboard()},set:function(a){this.setUseClipboard(a)}},formatDigit:{configurable:!0,enumerable:!0,get:function(){return this.$.l.j.nc},set:function(a){this.setFormatDigit(a)}},displayFormatDigit:{configurable:!0,enumerable:!0,get:function(){return this.$.oa.j.nc},set:function(a){this.setDisplayFormatDigit(a)}},maxValue:{configurable:!0,enumerable:!0,
get:function(){return this.$.bc},set:function(a){this.setMaxValue(a)}},minValue:{configurable:!0,enumerable:!0,get:function(){return this.$.Zb},set:function(a){this.setMinValue(a)}},positivePrefix:{configurable:!0,enumerable:!0,get:function(){return W(this.$.l.j).ea},set:function(a){this.setPositivePrefix(a)}},displayPositivePrefix:{configurable:!0,enumerable:!0,get:function(){return W(this.$.oa.j).ea},set:function(a){this.setDisplayPositivePrefix(a)}},positiveSuffix:{configurable:!0,enumerable:!0,
get:function(){return fM(this.$.l.j).ea},set:function(a){this.setPositiveSuffix(a)}},displayPositiveSuffix:{configurable:!0,enumerable:!0,get:function(){return fM(this.$.oa.j).ea},set:function(a){this.setDisplayPositiveSuffix(a)}},negativePrefix:{configurable:!0,enumerable:!0,get:function(){return W(this.$.l.j).ca},set:function(a){this.setNegativePrefix(a)}},displayNegativePrefix:{configurable:!0,enumerable:!0,get:function(){return W(this.$.oa.j).ca},set:function(a){this.setDisplayNegativePrefix(a)}},
negativeSuffix:{configurable:!0,enumerable:!0,get:function(){return fM(this.$.l.j).ca},set:function(a){this.setNegativeSuffix(a)}},displayNegativeSuffix:{configurable:!0,enumerable:!0,get:function(){return fM(this.$.oa.j).ca},set:function(a){this.setDisplayNegativeSuffix(a)}},valueSign:{configurable:!0,enumerable:!0,get:function(){return this.$.Fb},set:function(a){this.setValueSign(a)}},editMode:{configurable:!0,enumerable:!0,get:function(){return this.ef()},set:function(a){this.setEditMode(a)}},
adjustValueOnFocus:{configurable:!0,enumerable:!0,get:function(){return this.An()},set:function(a){this.setAdjustValueOnFocus(a)}},allowDeleteToNull:{configurable:!0,enumerable:!0,get:function(){return this.$.oh},set:function(a){this.setAllowDeleteToNull(a)}},clearAction:{configurable:!0,enumerable:!0,get:function(){return this.$.wc},set:function(a){this.setClearAction(a)}},acceptsDecimal:{configurable:!0,enumerable:!0,get:function(){return this.$.mb},set:function(a){this.setAcceptsDecimal(a)}},currencySymbol:{configurable:!0,
enumerable:!0,get:function(){return this.$.Wd},set:function(a){this.setCurrencySymbol(a)}},decimalPoint:{configurable:!0,enumerable:!0,get:function(){return this.$.Ra},set:function(a){this.setDecimalPoint(a)}},maxMinBehavior:{configurable:!0,enumerable:!0,get:function(){return this.On()},set:function(a){this.setMaxMinBehavior(a)}},separator:{configurable:!0,enumerable:!0,get:function(){return this.$.Oa},set:function(a){this.setSeparator(a)}},highlightText:{configurable:!0,enumerable:!0,get:function(){return this.gf()},
set:function(a){this.setHighlightText(a)}},watermarkDisplayZeroText:{configurable:!0,enumerable:!0,get:function(){return this.$.xb().i},set:function(a){this.setWatermarkDisplayZeroText(a)}},spinOnKeys:{configurable:!0,enumerable:!0,get:function(){return this.Pj()},set:function(a){this.setSpinOnKeys(a)}},spinWheel:{configurable:!0,enumerable:!0,get:function(){return this.Qh()},set:function(a){this.setSpinWheel(a)}},spinWrap:{configurable:!0,enumerable:!0,get:function(){return this.Un()},set:function(a){this.setSpinWrap(a)}},
allowSpin:{configurable:!0,enumerable:!0,get:function(){return this.Ni()},set:function(a){this.setAllowSpin(a)}},exitOnEnterKey:{configurable:!0,enumerable:!0,get:function(){return this.yd()},set:function(a){this.setExitOnEnterKey(a)}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcNumber"}},spinButton:{configurable:!0,enumerable:!0,set:function(a){this.addSpinButton(a)}},slider:{configurable:!0,enumerable:!0,get:function(){return this.xa}},dropDownSlider:{configurable:!0,enumerable:!0,
get:function(){return this.ur}},spinFromZeroWhenValueIsNull:{configurable:!0,enumerable:!0,set:function(a){this.$.spinFromZeroWhenValueIsNull=a}},autoConvert:{configurable:!0,enumerable:!0,get:function(){return this.$.va},set:function(a){var b=this.$;b.va!==a&&(b.va=a,b.g.autoConvert=a)}},showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.$.showContextMenu=a}}});v("GcNumber",cQ);function fQ(a,b){kq.call(this,a,b);var c=this;this.xf=[function(){}];this.Wh=!0;this.$=new ut(this.getUIInputElement(),this.getUIInputElement().id,this);this.Je="";O(this.$,"TextChanged",function(){Bq(c,c.getValue())});O(this.$,"ReadingStringOutput",function(){c.Je=c.Wh?c.Je+c.$.ob:c.$.ob;try{c.xf.forEach(function(d){d.apply(c,[c,{readingString:c.Je}])})}catch(d){console.error(d)}});Or(this.$,function(d){Cq(c,d)});this.tc(b);this.initComplete=!0}t(fQ,kq);g=fQ.prototype;
g.Qp=function(){return["div","textarea"]};
g.tc=function(a){kq.prototype.tc.call(this,a);F(a)||(G(a.autoConvert)||this.setAutoConvert(a.autoConvert),G(a.countWrappedLine)||this.setCountWrappedLine(a.countWrappedLine),G(a.format)||this.setFormat(a.format),G(a.lengthAsByte)||this.setLengthAsByte(a.lengthAsByte),G(a.lines)||this.setLines(a.lines),G(a.maxLength)||this.setMaxLength(a.maxLength),G(a.maxLineCount)||this.setMaxLineCount(a.maxLineCount),G(a.IMEReadingStringKanaMode)||this.setReadingImeStringKanaMode(a.IMEReadingStringKanaMode),G(a.scrollBarMode)||
this.setScrollBarMode(a.scrollBarMode),G(a.scrollBars)||this.setScrollBars(a.scrollBars),G(a.text)||this.setText(a.text),G(a.wordWrap)||this.setWordWrap(a.wordWrap),G(a.acceptsReturn)||this.setAcceptsReturn(a.acceptsReturn),G(a.acceptsAltReturn)||(this.acceptsAltReturn=a.acceptsAltReturn),G(a.acceptsTab)||this.setAcceptsTab(a.acceptsTab),G(a.IMEReadingStringAppend)||this.setIMEReadingStringAppend(a.IMEReadingStringAppend),G(a.IMEReadingStringEnableAlphabetReadingMapping)||this.setIMEReadingStringEnableAlphabetReadingMapping(a.IMEReadingStringEnableAlphabetReadingMapping),
G(a.exitOnLastChar)||this.setExitOnLastChar(a.exitOnLastChar),G(a.highlightText)||this.setHighlightText(a.highlightText),G(a.cursorPosition)||(this.cursorPosition=a.cursorPosition),G(a.resize)||(this.resize=a.resize),G(a.hiddenResizeIcon)||(this.hiddenResizeIcon=a.hiddenResizeIcon))};g.Dn=function(){return 50};g.setShowClearButton=function(a){kq.prototype.setShowClearButton.call(this,a);a&&(this.Xm.parentElement.classList.add("gcim__buttons_container-multiline"),this.Xm.classList.add("gcim__button-multiline"))};
g.setExitOnLeftRightKey=function(a){Ir(this.$,a)};g.ff=function(){return this.$.Cc};g.setWatermarkDisplayNullText=function(a){Nr(this.$,a)};g.jf=function(){return this.$.xb().h};g.setValue=function(){sc()};g.setWatermarkNullText=function(a){Mr(this.$,a)};g.kf=function(){return this.$.eb().h};g.getUseClipboard=function(){return this.$.Fd()};g.onSpinDown=function(){sc()};g.onSpinUp=function(){sc()};g.setClipContent=function(){sc()};g.getIsOverwrite=function(){return this.$.Nd};
g.setAcceptsCrlf=function(a){var b=this.$;a=I(Ga,a);null!==a&&(b.em=a)};g.setAutoConvert=function(a){var b=this.$;a=H(a);b.ud=a;Ms(b.g)};g.Jj=function(){return this.$.ud};g.setCountWrappedLine=function(a){var b=this.$;a=H(a);b.Hb=a;Et(b,b.ia());"none"!==b.Xa&&Ft(b)};g.setEditMode=function(a){At(this.$,a)};g.ef=function(){return this.$.bb};g.setExitOnLastChar=function(a){a=H(a);this.$.mc=a};g.Oh=function(){return this.$.mc};g.setFormat=function(a){Dt(this.$,a)};g.Hn=function(){return this.$.l};
g.setHighlightText=function(a){a=H(a);this.$.We=a};g.gf=function(){return this.$.Od()};g.setLengthAsByte=function(a){Ht(this.$,a)};g.Mn=function(){return this.$.Bb};g.setLines=function(a){this.$.sr(a)};g.setMaxLength=function(a){Kt(this.$,a)};g.Nn=function(){return this.$.Ma};g.setMaxLineCount=function(a){var b=this.$;a=null==a?null:kg(a);null!==a&&(0>a?fc():(b.Xb=a,Et(b,b.ia()),"none"!==b.Xa&&Ft(b)))};g.setReadingImeStringKanaMode=function(a){this.Je="";Nt(this.$,a)};
g.setIMEReadingStringKanaMode=function(a){this.setReadingImeStringKanaMode(a)};g.Ln=function(){return this.$.Dc.mj};g.setScrollBarMode=function(a){var b=this.$;a=I(Es,a);null!==a&&(b.Nl=a,Ot(b,b.Pl,a),Gt(b))};g.setScrollBars=function(a){vt(this.$,a)};g.setSelectedText=function(a){Ut(this.$,a)};g.setSelectionLength=function(a){Xt(this.$,a)};g.setText=function(a){this.$.Rd(a)};g.setUseClipboard=function(a){var b=this.$;a=H(a);b.pl=a;yq(b.host)};g.setWordWrap=function(a){du(this.$,a)};
g.setSelectionStart=function(a){Qt(this.$,a)};g.setAcceptsReturn=function(a){a=H(a);this.$.Ng=a};g.setAcceptsTab=function(a){a=H(a);this.$.Og=a};g.setIMEReadingStringAppend=function(a){this.Wh=a};g.Jn=function(){return this.Wh};g.getIMEReadingString=function(){return this.Je};g.clearIMEReadingString=function(){this.Je=""};g.setHeight=function(a){this.height=a};g.getValue=function(){return this.$.qa()};g.onEditStatusChanged=function(a){O(this.$,"EditStatusChanged",a)};
g.removeEditStatusChanged=function(a){P(this.$,"EditStatusChanged",a)};g.onInvalidInput=function(a){O(this.$,"InvalidInput",a)};g.removeInvalidInput=function(a){P(this.$,"InvalidInput",a)};g.onKeyExit=function(a){O(this.$,"KeyExit",a)};g.removeKeyExit=function(a){P(this.$,"KeyExit",a)};g.onTextChanged=function(a){O(this.$,"TextChanged",a)};g.removeTextChanged=function(a){P(this.$,"TextChanged",a)};g.onKeyDown=function(a){O(this.$,"keydown",a)};g.removeKeyDown=function(a){P(this.$,"keydown",a)};
g.onKeyUp=function(a){O(this.$,"keyup",a)};g.removeKeyUp=function(a){P(this.$,"keyup",a)};g.onFocusOut=function(a){O(this.$,"focusout",a)};g.removeFocusOut=function(a){P(this.$,"focusout",a)};g.onInput=function(a){O(this.$,"Input",a)};g.removeInput=function(a){P(this.$,"Input",a)};g.removeSpinUp=function(){};g.removeSpinDown=function(){};g.onIMEReadingStringOutput=function(a){"function"===typeof a&&-1===this.xf.indexOf(a)&&this.xf.push(a)};
g.removeIMEReadingStringOutput=function(a){"function"===typeof a&&(a=this.xf.indexOf(a),-1!==a&&this.xf.splice(a,1))};g.clear=function(){this.$.fb()};g.setFocus=function(){this.getUIInputElement().focus()};g.selectAll=function(){var a=this;this.setFocus();setTimeout(function(){a.$.Yc()},100)};g.deselectAll=function(){Kr(this.$)};g.getLines=function(){for(var a=[],b=this.$.ia(),c=b.indexOf("\r\n"),d=0;-1!=c;)a[d++]=b.substring(0,c),b=b.substring(c+2,b.length),c=b.indexOf("\r\n");a[d]=b;return a};
g.getSelectionStart=function(){return Pt(this.$)};g.getSelectedText=function(){return Tt(this.$)};g.getSelectionLength=function(){return Rt(this.$)};g.getText=function(){return this.$.ia()};g.getDisplayText=function(){return Yt(this.$)};g.setIMEReadingStringEnableAlphabetReadingMapping=function(a){a=H(a);this.$.Xe=a};g.Kn=function(){return this.$.Xe};g.getPasswordMode=function(){return this.$.Lk()};g.setExitOnEnterKey=function(a){this.$.setExitOnEnterKey(a)};g.yd=function(){return this.$.yd()};
g.zf=function(a,b){var c=this;return no(kq.prototype.zf.call(this,a,void 0===b?!1:b),"mousedown",function(d){c.setFocusInternal();d.preventDefault()})};g.Ll=function(a){this.$.Rd(a,!1)};g.Tc=function(){return this.$};g.dk=function(a){kq.prototype.dk.call(this,a);a&&(this.Ym.parentElement.classList.add("gcim__buttons_container-multiline"),this.Ym.classList.add("gcim__button-multiline"))};
g.ek=function(a){kq.prototype.ek.call(this,a);a&&(this.Zm.parentElement.classList.add("gcim__buttons_container-multiline"),this.Zm.classList.add("gcim__button-multiline"))};g.Zg=function(){xu(this.$)};
p.Object.defineProperties(fQ.prototype,{isOverwrite:{configurable:!0,enumerable:!0,get:function(){return this.getIsOverwrite()}},lines:{configurable:!0,enumerable:!0,get:function(){return this.getLines()},set:function(a){this.setLines(a)}},selectedText:{configurable:!0,enumerable:!0,get:function(){return this.getSelectedText()},set:function(a){this.setSelectedText(a)}},selectionLength:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionLength()},set:function(a){this.setSelectionLength(a)}},
text:{configurable:!0,enumerable:!0,get:function(){return this.getText()},set:function(a){this.setText(a)}},useClipboard:{configurable:!0,enumerable:!0,get:function(){return this.getUseClipboard()},set:function(a){this.setUseClipboard(a)}},selectionStart:{configurable:!0,enumerable:!0,get:function(){return this.getSelectionStart()},set:function(a){this.setSelectionStart(a)}},IMEReadingString:{configurable:!0,enumerable:!0,get:function(){return this.getIMEReadingString()}},displayText:{configurable:!0,
enumerable:!0,get:function(){return this.getDisplayText()}},value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}},countWrappedLine:{configurable:!0,enumerable:!0,get:function(){return this.$.Hb},set:function(a){this.setCountWrappedLine(a)}},exitOnLeftRightKey:{configurable:!0,enumerable:!0,get:function(){return this.ff()},set:function(a){this.setExitOnLeftRightKey(a)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.jf()},set:function(a){this.setWatermarkDisplayNullText(a)}},
watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.kf()},set:function(a){this.setWatermarkNullText(a)}},autoConvert:{configurable:!0,enumerable:!0,get:function(){return this.Jj()},set:function(a){this.setAutoConvert(a)}},editMode:{configurable:!0,enumerable:!0,get:function(){return this.ef()},set:function(a){this.setEditMode(a)}},exitOnLastChar:{configurable:!0,enumerable:!0,get:function(){return this.Oh()},set:function(a){this.setExitOnLastChar(a)}},format:{configurable:!0,
enumerable:!0,get:function(){return this.Hn()},set:function(a){this.setFormat(a)}},highlightText:{configurable:!0,enumerable:!0,get:function(){return this.gf()},set:function(a){this.setHighlightText(a)}},lengthAsByte:{configurable:!0,enumerable:!0,get:function(){return this.Mn()},set:function(a){this.setLengthAsByte(a)}},maxLength:{configurable:!0,enumerable:!0,get:function(){return this.Nn()},set:function(a){this.setMaxLength(a)}},maxLineCount:{configurable:!0,enumerable:!0,get:function(){return this.$.Xb},
set:function(a){this.setMaxLineCount(a)}},IMEReadingStringKanaMode:{configurable:!0,enumerable:!0,get:function(){return this.Ln()},set:function(a){this.setIMEReadingStringKanaMode(a)}},scrollBarMode:{configurable:!0,enumerable:!0,get:function(){return this.$.Nl},set:function(a){this.setScrollBarMode(a)}},scrollBars:{configurable:!0,enumerable:!0,get:function(){return this.$.Pl},set:function(a){this.setScrollBars(a)}},wordWrap:{configurable:!0,enumerable:!0,get:function(){return this.$.Tl},set:function(a){this.setWordWrap(a)}},
acceptsReturn:{configurable:!0,enumerable:!0,get:function(){return this.$.Ng},set:function(a){this.setAcceptsReturn(a)}},acceptsAltReturn:{configurable:!0,enumerable:!0,set:function(a){a=H(a);this.$.zp=a}},acceptsTab:{configurable:!0,enumerable:!0,get:function(){return this.$.Og},set:function(a){this.setAcceptsTab(a)}},IMEReadingStringAppend:{configurable:!0,enumerable:!0,get:function(){return this.Jn()},set:function(a){this.setIMEReadingStringAppend(a)}},IMEReadingStringEnableAlphabetReadingMapping:{configurable:!0,
enumerable:!0,get:function(){return this.Kn()},set:function(a){this.setIMEReadingStringEnableAlphabetReadingMapping(a)}},exitOnEnterKey:{configurable:!0,enumerable:!0,get:function(){return this.yd()},set:function(a){this.setExitOnEnterKey(a)}},resize:{configurable:!0,enumerable:!0,get:function(){var a=this.$;return a.u?a.resize.h:null},set:function(a){if(!G(a)){var b=I(Is,a);null!==b&&(a=this.$,a.u&&!G(b)&&(b=I(Is,b),null!==b&&it(a.resize,b)))}}},hiddenResizeIcon:{configurable:!0,enumerable:!0,get:function(){var a=
this.$;return!(a.u&&a.resize.u)},set:function(a){if(!G(a)){var b=this.$;a=!a;b.u&&!G(a)&&(b=b.resize,G(a)||(b.u=a,b.g.setAttribute("showIcon",a+"")))}}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcMultiLineTextBox"}},showContextMenu:{configurable:!0,enumerable:!0,set:function(a){this.$.showContextMenu=a}},cursorPosition:{configurable:!0,enumerable:!0,get:function(){return this.$.cursorPosition},set:function(a){this.$.cursorPosition=a}}});v("GcMultiLineTextBox",fQ);var Z={BackSpace:8,Tab:9,Clear:12,Return:13,Shift:16,Ctrl:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Select:41,Print:42,Execute:43,Insert:45,Delete:46,Help:47,D0:48,D1:49,D2:50,D3:51,D4:52,D5:53,D6:54,D7:55,D8:56,D9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,
NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Separator:108,Subtract:109,Decimal:110,Divide:111,NumLock:136,ScrollLock:137,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135};Z[Z.BackSpace]="BackSpace";Z[Z.Tab]="Tab";Z[Z.Clear]="Clear";Z[Z.Return]="Return";Z[Z.Shift]="Shift";Z[Z.Ctrl]="Ctrl";Z[Z.Alt]="Alt";Z[Z.Pause]="Pause";Z[Z.CapsLock]="CapsLock";
Z[Z.Escape]="Escape";Z[Z.Space]="Space";Z[Z.PageUp]="PageUp";Z[Z.PageDown]="PageDown";Z[Z.End]="End";Z[Z.Home]="Home";Z[Z.Left]="Left";Z[Z.Up]="Up";Z[Z.Right]="Right";Z[Z.Down]="Down";Z[Z.Select]="Select";Z[Z.Print]="Print";Z[Z.Execute]="Execute";Z[Z.Insert]="Insert";Z[Z.Delete]="Delete";Z[Z.Help]="Help";Z[Z.D0]="D0";Z[Z.D1]="D1";Z[Z.D2]="D2";Z[Z.D3]="D3";Z[Z.D4]="D4";Z[Z.D5]="D5";Z[Z.D6]="D6";Z[Z.D7]="D7";Z[Z.D8]="D8";Z[Z.D9]="D9";Z[Z.A]="A";Z[Z.B]="B";Z[Z.C]="C";Z[Z.D]="D";Z[Z.E]="E";Z[Z.F]="F";
Z[Z.G]="G";Z[Z.H]="H";Z[Z.I]="I";Z[Z.J]="J";Z[Z.K]="K";Z[Z.L]="L";Z[Z.M]="M";Z[Z.N]="N";Z[Z.O]="O";Z[Z.P]="P";Z[Z.Q]="Q";Z[Z.R]="R";Z[Z.S]="S";Z[Z.T]="T";Z[Z.U]="U";Z[Z.V]="V";Z[Z.W]="W";Z[Z.X]="X";Z[Z.Y]="Y";Z[Z.Z]="Z";Z[Z.NumPad0]="NumPad0";Z[Z.NumPad1]="NumPad1";Z[Z.NumPad2]="NumPad2";Z[Z.NumPad3]="NumPad3";Z[Z.NumPad4]="NumPad4";Z[Z.NumPad5]="NumPad5";Z[Z.NumPad6]="NumPad6";Z[Z.NumPad7]="NumPad7";Z[Z.NumPad8]="NumPad8";Z[Z.NumPad9]="NumPad9";Z[Z.Multiply]="Multiply";Z[Z.Add]="Add";
Z[Z.Separator]="Separator";Z[Z.Subtract]="Subtract";Z[Z.Decimal]="Decimal";Z[Z.Divide]="Divide";Z[Z.NumLock]="NumLock";Z[Z.ScrollLock]="ScrollLock";Z[Z.F1]="F1";Z[Z.F2]="F2";Z[Z.F3]="F3";Z[Z.F4]="F4";Z[Z.F5]="F5";Z[Z.F6]="F6";Z[Z.F7]="F7";Z[Z.F8]="F8";Z[Z.F9]="F9";Z[Z.F10]="F10";Z[Z.F11]="F11";Z[Z.F12]="F12";Z[Z.F13]="F13";Z[Z.F14]="F14";Z[Z.F15]="F15";Z[Z.F16]="F16";Z[Z.F17]="F17";Z[Z.F18]="F18";Z[Z.F19]="F19";Z[Z.F20]="F20";Z[Z.F21]="F21";Z[Z.F22]="F22";Z[Z.F23]="F23";Z[Z.F24]="F24";
v("GcShortcutEvent",{PreAction:"preaction",PostAction:"postaction"});v("GcShortcutAction",{PreviousControl:"previouscontrol",NextControl:"nextcontrol",Clear:"clear",DropDown:"dropdown",SpinDown:"spindown",SpinUp:"spinup",PreviousField:"previousfield",NextField:"nextfield",PreviousFieldControl:"previousfieldcontrol",NextFieldControl:"nextfieldcontrol",ThreeZero:"threezero",Now:"now"});v("GcShortcutKey",Z);var gQ=new Map;gQ.set("previouscontrol",hQ);gQ.set("nextcontrol",iQ);gQ.set("clear",jQ);gQ.set("dropdown",kQ);gQ.set("spinup",lQ);gQ.set("spindown",mQ);gQ.set("previousfield",nQ);gQ.set("nextfield",oQ);gQ.set("previousfieldcontrol",pQ);gQ.set("nextfieldcontrol",qQ);gQ.set("threezero",rQ);gQ.set("now",sQ);function tQ(a){var b;gQ.forEach(function(c,d){c===a&&(b=d)});return b}function lQ(a){a=a.target;a instanceof FD&&a.doSpinUp();(a instanceof FL||a instanceof cQ||a instanceof qJ)&&a.Zi()}
function mQ(a){a=a.target;a instanceof FD&&a.doSpinDown();(a instanceof FL||a instanceof cQ||a instanceof qJ)&&a.Yi()}function jQ(a){a=a.target;a instanceof FD?(a.clearChecked(),a.clearSelected(),a.getEditor().clear()):a instanceof OB||(a instanceof Mn||a instanceof cQ||a instanceof qJ?a.sn():a instanceof kq&&a.clear())}function kQ(a){(a=a.target)&&a.dropDownWindow&&"function"===typeof a.dropDownWindow.toggleOpen&&a.dropDownWindow.toggleOpen()}
function hQ(a){a=uQ(a.target)||a.target;a instanceof Element&&a.contains(document.activeElement)&&(a=Zd().sort(Yd),(a=Xd(document.activeElement,a,!1))&&a.Qe&&"function"===typeof a.Qe.focus&&a.Qe.focus())}function iQ(a){a=uQ(a.target)||a.target;a instanceof Element&&a.contains(document.activeElement)&&(a=Zd().sort(Yd),(a=Xd(document.activeElement,a,!0))&&a.Qe&&"function"===typeof a.Qe.focus&&a.Qe.focus())}function nQ(a){a=a.target;(a instanceof FL||a instanceof qJ)&&a.Wj(!1)}
function oQ(a){a=a.target;(a instanceof FL||a instanceof qJ)&&a.Wj(!0)}function pQ(a){var b=a.target;(b instanceof FL||b instanceof qJ)&&-1===b.Wj(!1)&&hQ(a)}function qQ(a){var b=a.target;(b instanceof FL||b instanceof qJ)&&-1===b.Wj(!0)&&iQ(a)}function rQ(a){a=a.target;a instanceof cQ&&(a.performKeyDown(48),a.performKeyDown(48),a.performKeyDown(48))}function sQ(a){a=a.target;a instanceof qJ&&a.setValue(new Date);a instanceof Mn&&kn(a.ld)}
function uQ(a){var b=null;a instanceof kq&&(b=a.getUIInputElement());a instanceof Mn&&(b=a.Ua.g.h);a instanceof FD&&(b=a.getEditor().getUIInputElement());a instanceof OB&&(b=a.g.getContainer());a instanceof Fe&&(b=a.element);a instanceof fJ&&(b=a.container);return b};function vQ(){this.map=new Map}g=vQ.prototype;g.get=function(a,b){var c=a=this.map.get(a)||new Map;void 0!==b&&(c=a.get(wQ(b))||[]);return c};g.add=function(a,b,c){b=wQ(b);this.map.has(a)||this.map.set(a,new Map);a=this.map.get(a);a.has(b)||a.set(b,[]);a=a.get(b);-1===xQ(a,c)&&a.push(c)};g.remove=function(a,b,c){a=this.get(a,b);c=xQ(a,c);-1!==c&&a.splice(c,1)};g.clear=function(a,b){b=wQ(b);a=this.get(a);a.has(b)&&a.delete(b)};g.dispose=function(){this.map.forEach(function(a){a.clear()});this.map.clear()};
function xQ(a,b){return Sd(a,function(c){return c.action===b.action})}function wQ(a){return"key:"+a.key+" shift:"+a.shift+" ctrl:"+a.ctrl+" alt:"+a.alt}function yQ(){this.m=new vQ;this.s=!0;this.u=!1;this.h=new K(this);this.g=new K(this);this.i=new WeakMap;zQ(this);this.sl=this.sl.bind(this);this.dh=this.dh.bind(this);window.addEventListener("keydown",this.sl,!0);window.addEventListener("keyup",this.dh)}g=yQ.prototype;g.destroy=function(){this.Nb();this.m.dispose();he(this)};
g.Nb=function(){var a=Array.from(this.m.map.keys());a=fa(a);for(var b=a.next();!b.done;b=a.next())b.value.removeEventListener("keyup",this.dh);window.removeEventListener("keydown",this.sl,!0);window.removeEventListener("keyup",this.dh);this.h.clear();this.g.clear()};function zQ(a){a.ca=function(b){return!0===b.blockMessage||void 0===b.blockMessage&&!0===a.blockMessage};a.ea=function(b){return!1===b.blockMessage||void 0===b.blockMessage&&!1===a.blockMessage}}
g.add=function(a){var b=void 0!==a.target?a.target:window,c=void 0!==a.action?a.action:null,d=AQ(a);b=BQ(this,b);a=CQ(c,a.blockMessage);G(d)||G(a)||(c=a.action,"number"!==typeof d.key||"object"!==typeof b||"function"!==typeof c&&null!==c||(this.m.add(b,d,a),!0!==a.blockMessage&&b.addEventListener("keyup",this.dh)))};
g.remove=function(a){var b=void 0,c=void 0,d=void 0;void 0!==a&&(b=AQ(a),c=BQ(this,a.target),d=CQ(a.action));a=b;void 0!==a&&void 0!==c&&void 0!==d?(this.m.remove(c,a,d),DQ(this,c)):this.clear(a,c)};g.addEventListener=function(a,b){"string"===typeof a&&"function"===typeof b&&(a=this.Pb(a.toLowerCase()))&&Un(a,b)};g.removeEventListener=function(a,b){"string"===typeof a&&"function"===typeof b&&(a=this.Pb(a.toLowerCase()))&&Vn(a,b)};g.Pb=function(a){var b={};b.preaction=this.h;b.postaction=this.g;return b[a]};
g.sl=function(a){EQ(this,a,!0)};g.dh=function(a){EQ(this,a,!1)};function EQ(a,b,c){var d=b.target;var e=FQ(b);if(d instanceof HTMLElement)for(var f=d;null!==f;)if(0<a.m.get(f,e).length){d=f;break}else f=f.parentElement;e=d;d=FQ(b);f=c?a.ca:a.ea;a.triggerAll?GQ(a,d,b,f):(c=a.m.get(e,d).filter(f),HQ(a,c,e,d,b),e=a.m.get(window,d).filter(f),HQ(a,e,window,d,b),(0<c.length||0<e.length)&&IQ(b))}
function GQ(a,b,c,d){var e=!1;a.m.map.forEach(function(f,h){f=f.get(wQ(b))||[];f=f.filter(d);HQ(a,f,h,b,c);0<f.length&&(e=!0)});e&&IQ(c)}function IQ(a){a.preventDefault();a.stopPropagation()}
function HQ(a,b,c,d,e){b.forEach(function(f){var h=a.i.has(c)?a.i.get(c):c;var k=f.action;var l=tQ(k);k=l?l:k;l=f.blockMessage;var m=Object.assign(Object.assign({target:h},d),{action:k,blockMessage:l,cancel:!1,evt:e});a.h.ha(m);m.cancel||(null!==f.action&&f.action(Object.assign(Object.assign({target:h},d),{evt:e})),a.g.ha(Object.assign(Object.assign({target:h},d),{action:k,blockMessage:l,evt:e})))})}function FQ(a){return{key:a.keyCode,shift:a.shiftKey,ctrl:a.ctrlKey,alt:a.altKey}}
g.clear=function(a,b){a=AQ(a);void 0!==b?void 0!==a?this.m.clear(b,a):(a=this.m,a.map.has(b)&&a.map.delete(b)):void 0===a&&(JQ(this),this.m.map.clear());DQ(this,b)};function AQ(a){if(!G(a)&&"number"===typeof a.key)return{key:a.key,shift:a.shift?!0:!1,ctrl:a.ctrl?!0:!1,alt:a.alt?!0:!1}}function CQ(a,b){if(void 0!==a)return"string"===typeof a&&(a=gQ.get(a)),{action:a,blockMessage:b}}
function DQ(a,b){var c=0;a.m.get(b).forEach(function(d){c+=d.length});0===c&&(G(b)||b.removeEventListener("keyup",a.dh))}function JQ(a){a.m.map.forEach(function(b,c){G(c)||c.removeEventListener("keyup",a.dh)})}function BQ(a,b){if(!G(b)){var c=b;b instanceof Element&&be(b)&&(c=be(b));if(c.componentName){var d=uQ(c);if(d)return a.i.set(d,c),d}return b}}
p.Object.defineProperties(yQ.prototype,{blockMessage:{configurable:!0,enumerable:!0,get:function(){return this.s},set:function(a){this.s=a}},triggerAll:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){this.u=a}}});v("GcShortcut",yQ);var LQ=KQ("TlZ5Zte=","GjWzUlQ=");KQ("YxbJdhQ9Z=","Wn3pGt2kQ=");KQ("cVblSV","HiGj25");KQ("cJZVdNZU","HvHjEvG=");KQ("SQ","W=");var MQ=KQ("RZ","Xs");KQ("Q5","0h");var NQ=KQ("R1","Gz"),OQ=KQ("Rh","Xw");KQ("QJ","30");
var PQ=KQ("UJ","Hk"),QQ=KQ("Q=","w="),RQ=KQ("RtR=","EYg="),SQ=KQ("QE","j="),TQ=KQ("bYeJV9YNRdZRaMcgRJWUStclMIdRZEdQQtVNU4RoMkUdbBMNatTdQBQ4QddBNdcFclZVaZRAV1cNaVaZcpdZdgQhbZK9RJTpUdMhW0U9TFTsVhNZUhUUSRbtL9RdS9WZdNYxQFNFTlYRUBUBMsRpThONLdeMLlSlMdUFRtMcKhTZSJRZZJTgNlUFQ8YdRFM5VxRlRJdQZZbRYFTJQBOpSFYNahdJNlepbReVP0","Dvni2TmMnFXGD4kzXCk5CDW41r1skx01isWDWrU2E0kyT4XGmpF3jqW2lajXFiULmPGvX4Hx2qzx0EHi2QG23ykpDvy0HkUR0zTXmyGRF1C5maEOkVVznp2l0aUIkkV3kHW6mklG2WkCVlHTyr063OFOzsV10k251KmW2Czw0ijo3hGV1lFyn4mLy1Vu0Kku0v3B1j15Fqzi0anyTVUW14Vz2kjwDYkrHYD3T="),
UQ=KQ("d9OAMUbVdoNAOBLlZVOAMAMAMAOBcFcZc0IRY5bFZgNALANAKsL1LRY5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l2hmz3pH="),hR=KQ("6m565y6a4G5W5q4G4G4G4G4C","KVLhpfZT4M7CLG4X4+4X4f4C"),iR=KQ("6O5O4G4G6O5W4G5u6u4K4O4K4K4O4K4G6m5S4G5y5S4G4G4G5W4G5C4K4G4G4G4G4G4C","K9ZB4u4UL8Yl4u54KH4E4p4k474z454uKz7w4vbK6+4+4n4KZP4EZI4P4b4P4g4V4E4C"),jR=KQ("4O4K4K4O4K4G5S5q4G4G4G4G4C4O4K4K4O4K4K5u5a4G4G4G4G7y","4p4k474z454MaxY54X4+4X4f4C4p4k474z454Sp0pw4X4+4Z4L7f"),kR=KQ("4O4K4K4O4K4K5u5a4G4K","4p4k474z454Sp0pw4Z4L"),lR=KQ("4G4G4O4K4K4O4K4GIsfDgviLgrvPgbgngzgbgTg7gngI",
"4T4u4p4k474z454vHxSjalbjolZjajojojajYjbjZjI="),mR=KQ("5+5y4G4O4O4K4O4GIsfDgfgngI","4+Zo4u4J4h4k4z4vHxSjajZjI="),nR=KQ("4G4G5W6G4K6e5G4G4K4G4GTVQlUOqmoeoOlOpOjOoOlOhOg=","4T4uZPaM4SKjr64Z4L4r4vUT0V+B+A+1eB+BuB+BOBeBOAg="),oR=KQ("4O4K4K4O4K4K4O4O","4p4k474z454o4p48"),pR=KQ("eF","z9"),qR=KQ("cVZldFZ=","mhHTG0Q="),rR=KQ("Y9cxdU","2tGlG=");function KQ(a,b){b=b||"";for(var c="",d=0;d<a.length;d++)c+=a[d],c+=b[d]||"";return Dd(c)};function sR(a){return A("div",{style:UQ},A("h1",null,oR),a)}function tR(a){return A("a",{href:gR,target:"_blank",style:VQ},a)}function uR(){document.body.appendChild(sR(A("div",null,bR,A("br",null),tR(cR))))};window.GCIM=window.GCIM||{};va("window.GCIM",window.GCIM);window.GCIM.ph=!function(){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n="undefined"!=typeof window,t=String.fromCharCode,r=n&&window.Uint8Array||function(n){var t;if("number"==typeof n){t=new Array(n);for(var r=0;r<n;++r)t[r]=0}else t=n.slice(0);t.buffer=t,t.byteLength=t.length,"object"===(void 0===n?"undefined":e(n))&&n.buffer&&(t.buffer=n.buffer);return t},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="object"==("undefined"==typeof global?"undefined":e(global))&&global&&global.Object===Object&&global,f="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,c=i||f;function u(e,n,t,r){return 1==e.length||e.splice(t,1,r(e.splice(n,1,r(e[t]))[0])),e}function a(e){for(var n=e.split(""),r=function(e){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.charCodeAt(0);return r>=65&&r<=90?e.toLowerCase():r>=97&&r<=122?e.toUpperCase():r>=48&&r<=57?t(48+(r-48+10+n)%10):e}(e,-1)},o=n.length-5;o>=0;o--)u(n,o+1,o+3,r),u(n,o,o+2,r);return n.join("")}function l(e){var n,t,r,i,f,c,u,a,l=[],p="",s=o;if((c=(u=e).length%3)>0)for(;c++<3;)p+="=",u+="\0";for(c=0;c<u.length;c+=3)t=(n=u.charCodeAt(c)<<16|u.charCodeAt(c+1)<<8|u.charCodeAt(c+2))>>18&63,r=n>>12&63,i=n>>6&63,f=63&n,l[c/3]=s.charAt(t)+s.charAt(r)+s.charAt(i)+s.charAt(f);return a=(a=l.join("")).slice(0,a.length-p.length)+p}function p(e){var n,r,i,f,c,u,a,l=[],p=o;a=e;for(var s=0;s<a.length;s+=4)n=(u=p.indexOf(a.charAt(s))<<18|p.indexOf(a.charAt(s+1))<<12|(f=p.indexOf(a.charAt(s+2)))<<6|(c=p.indexOf(a.charAt(s+3))))>>>16&255,r=u>>>8&255,i=255&u,l[s/4]=t(n,r,i),64==c&&(l[s/4]=t(n,r)),64==f&&(l[s/4]=t(n));return l.join("")}function s(e){return(n&&window.atob||p)(e)}function h(e){return(n&&window.btoa||l)(e)}function d(e){if(!e)return"";var n=a(e);n=n.split("").reverse().join("");var t=Math.ceil(n.length/2);return function(e){return decodeURIComponent(Array.prototype.map.call(s(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n=(n=(n=n.substr(t)+n.substr(0,t)).replace("#","=")).replace("&","=="))}function b(e){for(var n=s(e),t=n.length,o=new r(t),i=0;i<t;i++)o[i]=n.charCodeAt(i);return o.buffer}function y(e){for(var n=new ArrayBuffer(e.length),t=new r(n),o=0,i=e.length;o<i;o++)t[o]=e.charCodeAt(o);return n}function g(e){return"oncomplete"in e&&(e.then=function(n,t){e.resolve=n,e.reject=t},e.oncomplete=function(n){e.resolve(e.result)},e.onerror=function(){e.reject()}),e}window.ph=function(e,o,i,f){var u=n?window.msCrypto?window.msCrypto:window.crypto:void 0,a=function(e,n){try{n="#"+n;var t=e.indexOf(n);if(t>-1)return{prefix:e.substring(0,t),licData:JSON.parse(d(e.substr(t+n.length)))}}catch(e){}return!1}(e,o.aC);if(!a)return f();var l,p,s=a.licData,v=a.prefix+"#"+o.aC,w=(l=b((p=v+JSON.stringify(s.D),h(encodeURIComponent(p).replace(/%([0-9A-F]{2})/g,(function(e,n){return t(parseInt(n,16))}))))),t.apply(null,new r(l)));function A(){return function(e){for(var n=0,t=5381,r=0,o=e.length-1;o>=0;o--){var i=e.charCodeAt(o);n=i+(n<<6)+(n<<16)-n,t=i+((t<<5)+t),r=i+((r<<5)-r),r&=r}var f=n^t^r;return f<0&&(f=~f),f.toString(16).toUpperCase()}(v+JSON.stringify(s.D))===s.H?i(s.D):f()}var m=d("JYx3Gb#8Pb5R"),C=d("VdgJHc#wJb59");if(c[m]&&c[m][C]&&!location.protocol.match(/^https/i))return A();if(!u||!u.subtle)return A();var S={alg:"PS256",e:"AQAB",kty:"RSA",n:(j=o.pK,j.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,""))};S=window.msCrypto?y(JSON.stringify(S)):S;var j,O={name:"RSA-PSS",saltLength:32,hash:{name:"SHA-256"}};g(u.subtle.importKey("jwk",S,O,!1,["verify"])).then((function(e){g(u.subtle.verify(O,e,b(s.S),y(w))).then((function(e){return e?i(s.D):f()}))}),(function(){return A()}))}}();;window.GCIM.ph=window.GCIM.ph;
function vR(){setTimeout(function(){var a=window.ph;if("string"===typeof a)wR(a)||uR();else{var b=xR()||!window.GCIM[LQ]?"":window.GCIM[LQ];if(!b&&yR())document.body.appendChild(A("div",{style:WQ},tR(fR)));else{var c={};c.pC=RQ;c.pK=TQ;c.aC=SQ;try{a(b,c,function(d){if(zR(d)){var e=d[NQ];if(yR()||!e||AR(e.split(",")))if(d[MQ])if(void 0===d[OQ])document.body.appendChild(A("div",{style:WQ},tR(eR)));else if(BR(d[OQ]))document.body.appendChild(sR(A("div",null,hR,A("br",null),tR(iR))));else{d=d[OQ];d=Date.parse(d.substring(0,
4)+"-"+d.substring(4,6)+"-"+d.substring(6,8));e=new Date;var f=e.getFullYear(),h=String(e.getMonth()+1).padStart(2,"0");e=Date.parse(f+"-"+h+"-"+String(e.getDate()).padStart(2,"0"));document.body.appendChild(A("div",{style:WQ},tR(dR.replace(pR,String((d-e)/864E5)))))}else BR(d[OQ])&&document.body.appendChild(sR(A("div",null,jR,A("br",null),tR(kR))));else document.body.appendChild(sR(A("pre",null,lR.replace(pR,d[NQ]),A("br",null),mR.replace(pR,window.location.hostname),A("br",null),tR(nR))))}else uR()},
function(){uR()})}catch(d){uR()}}}},Math.floor(101*Math.random())+500)}if(document[qR]===rR)vR();else var CR=Date.now(),DR=setInterval(function(){if(document[qR]===rR||Math.abs(Date.now()-CR)>Math.floor(129107*Math.random())+240534)clearInterval(DR),vR()},Math.floor(101*Math.random())+500);
function wR(a){try{if(!document.getElementById("pagesContainer")||!document.getElementById("pageLoadingCover")||!document.getElementById("pageCover"))return!1;var b=[85,50,70,115,100,71,86,107,88,49,57,75,85,71,103,84,75,106,101,57,77,72,80,52,111,99,107,68,84,102,104,72,85,121,43,71,106,56,105,51,43,118,111,61];if("string"===typeof a){var c=a.split(""),d=c.length/2;a=[];for(var e=0;e<d;e++)a.push(c[e]),a.push(c[e+d]);for(e=0;e<b.length;e++)if(b[e]!==a[e].charCodeAt(0))return!1;return!0}return!1}catch(f){return!1}}
function xR(){var a=Object.getOwnPropertyDescriptor(window.GCIM,LQ);return a?a.get||a.set?!0:!1:!1}function zR(a){return a[PQ].some(function(b){return b[QQ]===RQ})}function AR(a){for(var b=window.location.hostname,c=0;c<a.length;c++){var d=!1;var e=a[c];if(e===YQ&&yR())return!0;e&&0===e.lastIndexOf("*.",0)&&(d=!0);e=d?e.slice(2):e;if(e===b||d&&(d=b.indexOf("."+e),0<d&&d===b.length-e.length-1))return!0}return!1}
function BR(a){return null==a?!1:0>=Math.ceil(((new Date(parseInt(a.substr(0,4))||0,parseInt(a.substr(4,2))-1||0,parseInt(a.substr(6,2))||0)).getTime()-(new Date).getTime())/864E5)?!0:!1}function yR(){var a=window.location.hostname;if(a===$Q||a===ZQ||a===YQ||aR===location.protocol)return!0};v("GcTagBoxEvent",{FocusIn:"focusin",FocusOut:"focusout",InsertTag:"inserttag",RemoveTag:"removetag",DropDownOpened:"dropdownopened",DropDownClosed:"dropdownclosed",ValueChanged:"valuechanged"});var ER={AlignWithEditor:"alignwitheditor",AlignWithCaret:"alignwithcaret"};v("GcTagBoxDropDownAlignmentMode",ER);var FR={List:"list",Tree:"tree"};v("TagBoxDropDownType",FR);function GR(){this.g={};this.h={};this.s={};this.autoSelect=!1;this.autoFilter="none";this.showDropDownIfNoItems=!0;this.dropDownAlignmentMode="alignwitheditor";this.showDropDown=!0;this.appendCustomTagToDropDown=!1;this.value=[];this.u=!1;this.i=null;this.dropDownType="list"}
function HR(a,b,c){if(a){if(b.g.uniqueTags){var d=new Set;var e=[];a=fa(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var h=JSON.stringify(f);d.has(h)||(d.add(h),e.push(f))}}else e=a;return e.map(function(k){return IR(k,b,c)})}return[]}
function IR(a,b,c){var d={value:a};"string"===typeof a?(d[c.displayMemberPath]="Text"===c.displayMemberPath?a:"",d[b.g.tagTextMemberPath]="Text"===b.g.tagTextMemberPath?a:"",d[b.g.tagImageMemberPath]="Image"===b.g.tagImageMemberPath?a:""):(d[c.displayMemberPath]=a[c.displayMemberPath],d[b.g.tagTextMemberPath]=a[b.g.tagTextMemberPath],d[b.g.tagImageMemberPath]=a[b.g.tagImageMemberPath]);return d}function JR(a,b,c){if(a)return a.map(function(d){return KR(d,b,c)})}
function KR(a,b,c){if("string"===typeof a){var d={};d[c.displayMemberPath]=a;d[b.g.tagTextMemberPath]=a;return d}d=a[c.childrenMemberPath];Array.isArray(d)&&(a[c.childrenMemberPath]=d.map(function(e){return KR(e,b,c)}));return a};var LR={Multiline:"multiline",Singleline:"singleline"};v("TagBoxDisplayMode",LR);v("GcTagImageAlignment",{LeftSide:"leftside",RightSide:"rightside"});function MR(){this.width=300;this.height=30;this.tagTemplate=this.watermarkDisplayNullText=this.watermarkNullText="";this.readOnly=!1;this.enabled=!0;this.allowResize=!1;this.displayMode="singleline";this.allowDragTag=this.allowCopyTag=!1;this.allowCustomTag=this.allowSelectTag=!0;this.applyCustomTagKey=13;this.separator=";";this.tagImageMemberPath="Image";this.tagTextMemberPath="Text";this.showImage=!1;this.minHeight=30;this.minWidth=300;this.maxTagWidth=this.maxWidth=this.maxHeight=Infinity;this.uniqueTags=
!0;this.maxTagCount=Infinity;this.imageAlignment="leftside";this.floatingLabelText="";this.floatingLabelType="auto";this.floatingLabelDirection="outside"}
function NR(a){var b=new MR;b.width=void 0===a.width?b.width:a.width;b.height=void 0===a.height?b.height:a.height;b.watermarkNullText=void 0===a.watermarkNullText?b.watermarkNullText:a.watermarkNullText;b.watermarkDisplayNullText=void 0===a.watermarkDisplayNullText?b.watermarkDisplayNullText:a.watermarkDisplayNullText;b.tagTemplate=void 0===a.tagTemplate?b.tagTemplate:a.tagTemplate;b.readOnly=void 0===a.readOnly?b.readOnly:a.readOnly;b.enabled=void 0===a.enabled?b.enabled:a.enabled;b.allowResize=
void 0===a.allowResize?b.allowResize:a.allowResize;b.displayMode=void 0===a.displayMode?b.displayMode:a.displayMode;b.allowCopyTag=void 0===a.allowCopyTag?b.allowCopyTag:a.allowCopyTag;b.allowDragTag=void 0===a.allowDragTag?b.allowDragTag:a.allowDragTag;b.allowSelectTag=void 0===a.allowSelectTag?b.allowSelectTag:a.allowSelectTag;b.allowCustomTag=void 0===a.allowCustomTag?b.allowCustomTag:a.allowCustomTag;b.applyCustomTagKey=void 0===a.applyCustomTagKey?b.applyCustomTagKey:a.applyCustomTagKey;b.separator=
void 0===a.separator?b.separator:a.separator;b.tagValidator=void 0===a.tagValidator?b.tagValidator:a.tagValidator;b.tagImageMemberPath=void 0===a.tagImageMemberPath?b.tagImageMemberPath:a.tagImageMemberPath;b.tagTextMemberPath=void 0===a.tagTextMemberPath?b.tagTextMemberPath:a.tagTextMemberPath;b.showImage=void 0===a.showImage?b.showImage:a.showImage;b.minHeight=void 0===a.minHeight?b.minHeight:a.minHeight;b.minWidth=void 0===a.minWidth?b.minWidth:a.minWidth;b.maxHeight=void 0===a.maxHeight?b.maxHeight:
a.maxHeight;b.maxWidth=void 0===a.maxWidth?b.maxWidth:a.maxWidth;b.maxTagWidth=void 0===a.maxTagWidth?b.maxTagWidth:Math.max(30,Number(a.maxTagWidth)?Number(a.maxTagWidth):Infinity);b.uniqueTags=void 0===a.uniqueTags?b.uniqueTags:a.uniqueTags;b.maxTagCount=void 0===a.maxTagCount?b.maxTagCount:a.maxTagCount;b.imageAlignment=void 0===a.imageAlignment?b.imageAlignment:a.imageAlignment;"string"===typeof a.floatingLabelText&&(b.floatingLabelText=a.floatingLabelText);a.floatingLabelDirection&&(b.floatingLabelDirection=
mg(Qa,a.floatingLabelDirection,b.floatingLabelDirection));a.floatingLabelType&&(b.floatingLabelType=mg(Pa,a.floatingLabelType,b.floatingLabelType));return b};function OR(a,b){return b.replace(/\{!!(.+?)\}/g,function(c,d){return"string"===typeof a?a:a[d]}).replace(/\{!(.+?)\}/g,function(c,d){return"string"===typeof a?PR(a):PR(a[d])}.bind({item:a}))}function PR(a){return void 0==a?"":a.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}var QR=A("div",{class:"tagbox-drop-indicator"});function RR(a,b,c,d){this.ub=a;this.i=b;this.u=c;SR(this,void 0===d?"leftside":d)}RR.prototype.remove=function(){this.dc.remove()};function TR(a,b){a.dc.addEventListener("click",b)}function SR(a,b){a.s=b;(b=a.dc.querySelector(".tag-template-img"))&&b.setAttribute("alignment",a.s.toString())}
p.Object.defineProperties(RR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.ub}},dc:{configurable:!0,enumerable:!0,get:function(){return this.i}},g:{configurable:!0,enumerable:!0,get:function(){return this.u}},readonly:{configurable:!0,enumerable:!0,set:function(a){this.h&&(a?(this.h.style.display="none",this.dc.style.paddingLeft=this.dc.style.paddingRight="15px"):(this.h.style.display="block",this.dc.style.paddingLeft=this.dc.style.paddingRight=""))}},draggable:{configurable:!0,
enumerable:!0,set:function(a){this.dc.draggable=a}},h:{configurable:!0,enumerable:!0,get:function(){return this.dc.querySelector(".gcim__remove")}}});function UR(a){this.s={};this.ca=null;this.u="leftside";this.i=!1;this.da=a;this.ea=[]}t(UR,tg);g=UR.prototype;g.appendTag=function(a){return this.insertTag(a,this.g.length)};g.insertTag=function(a,b){if("number"!==typeof b)rc(b,"number");else return VR(this,a,b)?(this.ha("inserttag"),this.ha("valuechanged"),!0):!1};
function VR(a,b,c){if(!WR(a)||a.uniqueTags&&-1!==YR(a,b)||a.length===a.maxTagCount)return!1;if(a.tagValidator)try{if(!a.tagValidator(b))return!1}catch(f){return!1}void 0===c&&(c=a.g.length);0>c&&(c=0);c>a.g.length&&(c=a.g.length);var d=ed(),e=A("div",{class:"tag",contentEditable:"false"});ZR(a,b,d,e);b=new RR(b,e,d,a.imageAlignment);b.readonly=a.da.readOnly;$R(a,b);c<a.length?a.g[c].dc.before(e):a.da.g.before(e);a.g.splice(c,0,b);d=a.da.i;e.offsetLeft>d.scrollLeft&&e.offsetLeft+e.offsetWidth<d.scrollLeft+
d.offsetWidth&&e.offsetTop>d.scrollTop&&e.offsetTop<d.scrollTop+d.offsetHeight||(a.da.i.scrollLeft=c===a.length-1&&a.da.focused?a.da.g.offsetLeft:e.offsetLeft);a.ha("tagcreated",b);return!0}g.removeTag=function(a){if(!a)return!1;a=YR(this,a);return aS(this,a)};
function aS(a,b){if("number"!==typeof b)rc(b,"number");else{if(0>b||b>=a.length||!WR(a))return!1;b=a.g.splice(b,1)[0];a.h===b&&(a.h=null);b&&(b.remove(),a.ha("removetag",{removedTags:[b.value]}),a.ha("valuechanged"));a.i=!0;a.da.focused&&(a.da.g.blur(),a.da.g.focus());a.i=!1;return!0}}
g.clear=function(a){a=void 0===a?!0:a;if(!WR(this))return!1;if(0===this.length)return!0;var b=this.g.splice(0,this.g.length);bS(this);a&&(a={removedTags:b.map(function(c){return c.value})},this.ha("removetag",a),this.ha("valuechanged"));return!0};function bS(a){Array.from(a.fa.children).forEach(function(b){b!==a.da.g&&b.remove()})}function WR(a){return!a.da.initComplete||!a.da.readOnly&&a.da.enabled}
function YR(a,b){return a.g.findIndex(function(c){return JSON.stringify(c.value)===JSON.stringify(b)})}function ZR(a,b,c,d){var e=A("div",{class:"gcim__remove",contentEditable:"false",title:""});b=A("div",{class:"tag-template",contentEditable:"false"},cS(a,b,d));b.style.maxWidth=a.da.maxTagWidth-30+"px";e.addEventListener("click",function(f){dS(this,c);f.preventDefault();f.stopPropagation()}.bind(a));d.appendChild(b);d.appendChild(e);d.draggable=a.allowDragTag}
function dS(a,b){if(b){var c=a.g.findIndex(function(d){return d.g===b});aS(a,c)}}
function cS(a,b,c){if(a.tagTemplate)return a=a.tagTemplate,"string"===typeof a?(a=OR(b,a),c=document.createElement("div"),c.innerHTML=a,a=c.children[0]):a=a(b),a;var d=A("span",{class:"tag-content"});if(a.showImage&&b[a.tagImageMemberPath]){var e=document.createElement("img");e.src=b[a.tagImageMemberPath];e.classList.add("tag-template-img");e.draggable=!1;e.setAttribute("alignment",a.imageAlignment);d.appendChild(e)}b=eS(a,b);e=(b||"").trim().replace(/ /g,"&nbsp;");d.insertAdjacentHTML("beforeend",
e);var f=new lf;f.h=d;of(f,e)>a.da.maxTagWidth-30&&(c.title=b);return d}function $R(a,b){TR(b,function(c){a.allowSelectTag&&("true"===b.dc.getAttribute("selected")?fS(a,!0):gS(a,b),c.preventDefault())})}
function gS(a,b){if(b!==a.h){a.h&&fS(a,!1);b.dc.setAttribute("selected","true");a.h=b;b=a.h.dc;var c=a.da.i;b.offsetLeft<c.scrollLeft&&(c.scrollLeft=b.offsetLeft);b.offsetLeft+b.offsetWidth>c.scrollLeft+c.offsetWidth&&(c.scrollLeft=b.offsetLeft+b.offsetWidth-c.offsetWidth);a.ha("selectedtagschanged")}}function fS(a,b){a.h&&(a.h.dc.removeAttribute("selected"),a.h=null,b&&a.ha("selectedtagschanged"))}function hS(a,b){return a.g.findIndex(function(c){return c.g===b})}
g.setReadOnly=function(a){var b=this;this.g.forEach(function(c){c.readonly=a;c.draggable=b.allowDragTag})};function eS(a,b){var c;"string"===typeof b?c=b:c=b[a.tagTextMemberPath];return c?c.replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}function iS(a,b){if(WR(a)){a.clear(!1);if(a.uniqueTags){for(var c=new Set,d=0;d<b.length;d++)c.add(b[d]);b=Array.from(c)}for(c=0;c<b.length;c++)VR(a,b[c],a.length);a.ha("valuechanged")}}
p.Object.defineProperties(UR.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.g.length}},g:{configurable:!0,enumerable:!0,get:function(){return this.ea}},h:{configurable:!0,enumerable:!0,get:function(){return this.ca},set:function(a){this.ca=a}},value:{configurable:!0,enumerable:!0,get:function(){return this.g.map(function(a){return a.value})},set:function(a){a instanceof Array?iS(this,a):rc(a,"array")}},text:{configurable:!0,enumerable:!0,get:function(){var a=this;return this.g.map(function(b){return eS(a,
b.value)}).join(this.separator)},set:function(a){"string"!==typeof a?rc(a,"string"):iS(this,0===a.length?[]:a.split(this.separator))}},imageAlignment:{configurable:!0,enumerable:!0,get:function(){return this.u},set:function(a){var b=this;this.u!==a&&(this.u=a,this.g.forEach(function(c){SR(c,b.imageAlignment)}))}},separator:{configurable:!0,enumerable:!0,get:function(){return this.da.separator}},fa:{configurable:!0,enumerable:!0,get:function(){return this.da.i}},tagTemplate:{configurable:!0,enumerable:!0,
get:function(){return this.da.tagTemplate}},tagValidator:{configurable:!0,enumerable:!0,get:function(){return this.da.tagValidator}},allowSelectTag:{configurable:!0,enumerable:!0,get:function(){return this.da.allowSelectTag}},allowDragTag:{configurable:!0,enumerable:!0,get:function(){return this.da.readOnly?!1:this.da.allowDragTag}},tagImageMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.da.tagImageMemberPath}},tagTextMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.da.tagTextMemberPath}},
showImage:{configurable:!0,enumerable:!0,get:function(){return this.da.showImage}},uniqueTags:{configurable:!0,enumerable:!0,get:function(){return this.da.uniqueTags}},maxTagCount:{configurable:!0,enumerable:!0,get:function(){return this.da.maxTagCount}}});function jS(a){this.h=this.g=null;this.da=a;this.g=new hr;this.h=new mr;var b=this.g;a=a.Yb;b.g&&b.g.remove();jr(b,a);kr(b);lr(b)}
function kS(a){if(a.da.isInitialized()){var b=a.h,c={Ej:a.da.Ej(),kl:a.da.kl(),Lh:a.g};a=a.da;var d=parseInt(window.getComputedStyle(a.g).paddingLeft);var e=parseInt(window.getComputedStyle(a.g).marginLeft),f=parseInt(window.getComputedStyle(a.i).paddingLeft);d=d+e+f+io(a.u.g);d=isNaN(d)?0:d;e=parseInt(window.getComputedStyle(a.i).paddingRight);f=a.u.g;e+=f.i?f.i.offsetWidth:0;e=Math.max(5,isNaN(e)?0:e);a={Fp:d+"px",Np:("outside"===a.floatingLabelDirection?0:d)+"px",Gp:"calc(100% - "+(d+e)+"px)",
Op:"outside"===a.floatingLabelDirection?"calc(100% / 0.7)":"calc((100% - "+(d+e)+"px) / 0.7)"};c.Ej?nr(b,c,a):or(b,c,a)}}
p.Object.defineProperties(jS.prototype,{i:{configurable:!0,enumerable:!0,get:function(){return this.g.i}},floatingLabelText:{configurable:!0,enumerable:!0,get:function(){return this.g.label},set:function(a){this.g.label=a;kS(this)}},floatingLabelType:{configurable:!0,enumerable:!0,get:function(){return this.h.type},set:function(a){a=I(Pa,a);null!==a&&(this.h.type=a,kS(this))}},floatingLabelDirection:{configurable:!0,enumerable:!0,get:function(){return this.g.direction},set:function(a){a=I(Qa,a);null!==
a&&(this.g.direction=a,kS(this))}}});function lS(a,b,c,d){this.u=this.i=!1;this.ya=a;this.h=b;this.name=c;this.position=void 0===d?"right":d}lS.prototype.create=function(){var a=this.h.zf(this.na)(this.ca());this.zb();this.u=!0;this.ga(a)};lS.prototype.zb=function(){var a=this;this.ya.addEventListener("enabledchanged",function(){return mS(a)})};lS.prototype.show=function(){ho(this.h,this.name)(function(a){return a.visible(!0)})};lS.prototype.hidden=function(){ho(this.h,this.name)(function(a){return a.visible(!1)})};
function mS(a){ho(a.h,a.name)(function(b){return b.enable(a.ya.enabled)})}function nS(a,b){var c=!1;a.u&&ho(a.h,a.name)(function(d){return c=d.element.contains(b)});return c}function oS(a){a.i&&a.la()?a.show():a.hidden()}
p.Object.defineProperties(lS.prototype,{ka:{configurable:!0,enumerable:!0,get:function(){return this.u}},na:{configurable:!0,enumerable:!0,get:function(){return"left"===this.position}},s:{configurable:!0,enumerable:!0,get:function(){return this.i},set:function(a){"boolean"===typeof a&&a!==this.i&&(this.i=a,this.ka||this.create(),mS(this),oS(this))}}});function pS(a,b){lS.call(this,a,b,"help");this.ea=w.DefaultHelpContent;this.g={x:0,y:0}}t(pS,lS);
pS.prototype.ga=function(a){var b=this;no(no(no(a,"mouseover",function(c){b.g.x=c.clientX;b.g.y=c.clientY;b.showTip(c)}),"mouseout",function(){var c;null===(c=b.fa)||void 0===c?void 0:c.close();b.fa=null}),"mousemove",function(c){b.g.x=c.clientX;b.g.y=c.clientY})};
pS.prototype.showTip=function(a){var b=this;if(a.target instanceof HTMLElement){var c=new Jk(this.ya.nb(),this.helpContent,{delayTime:200,className:"gcim__help-button_tip",Ad:this.g,aj:this.ya.sf});c.u=function(){return Mk(c,b.g)};this.fa=c}};pS.prototype.la=function(){return!0};pS.prototype.ca=function(){return ro(this.name)};p.Object.defineProperties(pS.prototype,{helpContent:{configurable:!0,enumerable:!0,get:function(){return this.ea},set:function(a){"string"===typeof a&&(this.ea=a)}}});
function qS(a,b){lS.call(this,a,b,"clear")}t(qS,lS);qS.prototype.ca=function(){return qo(this.name)};qS.prototype.la=function(){return this.ya.enabled&&!this.ya.readOnly&&rS(this.ya)};
qS.prototype.ga=function(a){var b=this;no(a,"click",function(){var c=b.ya;c.clear();!c.focused&&hb&&c.g.focus();""!==c.g.value&&(sS(c),c.la.ha())});this.ya.addEventListener("valuechanged",function(){return oS(b)});this.ya.addEventListener("input",function(){return oS(b)});this.ya.addEventListener("enabledchanged",function(){return oS(b)});this.ya.addEventListener("readonlychanged",function(){return oS(b)});this.ya.addEventListener("afterinputelementsetvalue",function(){return oS(b)})};
function tS(a){var b=this;this.s=function(c,d){uS(b,c,d);b.ya.refreshUI(8);vS(b)};this.u=function(){b.ya.refreshUI(8);vS(b)};this.ya=a;this.g=new $n({element:this.ya.getElement(),ao:this.ya.i});this.h=new pS(this.ya,this.g);this.i=new qS(this.ya,this.g);this.zb()}tS.prototype.zb=function(){Un(this.g.s,this.s);Un(this.g.u,this.u)};
function uS(a,b,c){c.hasAttribute("right")&&(ho(b,a.i.name)(function(d){return c.insertAdjacentElement("afterbegin",d.element)}),ho(b,a.h.name)(function(d){return c.insertAdjacentElement("afterbegin",d.element)}))}tS.prototype.refreshUI=function(){co(this.g)};function vS(a){if(a.g.ea){var b=0<mo(a.g,"left");a.g.ea.setAttribute("gcim-show-gap",String(b))}a.g.fa&&(b=0<mo(a.g,"right"),a.g.fa.setAttribute("gcim-show-gap",String(b)))};function wS(a,b){var c=this;this.na=!1;this.va=this.s=null;this.Ta=!1;this.lc=0;var d={};this.he=(d[8]=function(){if(xS(c)){if(c.fa)return yS(c),!0;var e=c.g.previousElementSibling;e&&(e=zS(c,e),c.removeTagAtIndex(e));return!0}},d[46]=function(){var e=c.g;if(xS(c)&&c.fa)return yS(c),!0;if(e.selectionStart===e.value.length&&e.selectionStart===e.selectionEnd){if(e=c.g.nextElementSibling)e=zS(c,e),c.removeTagAtIndex(e);return!0}},d[37]=function(){return AS(c,"left")},d[39]=function(){return AS(c,"right")},
d);this.ob=function(e){var f=0,h=0;window.TouchEvent&&e instanceof TouchEvent&&c.ga instanceof TouchEvent?(f=e.changedTouches[0].pageY-c.ga.changedTouches[0].pageY,h=e.changedTouches[0].pageX-c.ga.changedTouches[0].pageX):e instanceof MouseEvent&&c.ga instanceof MouseEvent&&(f=e.pageY-c.ga.pageY,h=e.pageX-c.ga.pageX);f=nd(Math.max(c.xc+f,0));null!==f&&(c.vc.style.height=f);f=nd(Math.max(c.Pe+h,0));null!==f&&(c.vc.style.width=f);c.refreshUI(-2);c.Bb.ha();e.preventDefault()};this.sa=function(){document.removeEventListener("mousemove",
c.Bd);document.removeEventListener("mouseup",c.sa);document.removeEventListener("touchmove",c.ob);document.removeEventListener("touchend",c.sa)};this.La=this.lr.bind(this);this.ka=ae(a)?a.parentElement:a;this.va=this.ka.style.marginTop;this.Yb=a;this.m=NR(b||{});this.Sj();this.g.addEventListener("keydown",this.Rh.bind(this));this.g.addEventListener("focusout",this.Rr.bind(this));this.g.addEventListener("focus",this.Qr.bind(this));this.g.addEventListener("input",this.mr.bind(this));this.g.addEventListener("blur",
this.Lr.bind(this));this.getElement().addEventListener("mousedown",this.Sr.bind(this));this.getElement().addEventListener("mouseup",this.Tr.bind(this));this.getElement().addEventListener("copy",this.Mr.bind(this));this.getElement().addEventListener("dragstart",this.Or.bind(this));this.getElement().addEventListener("drop",this.Pr.bind(this));this.getElement().addEventListener("dragover",this.Nr.bind(this));this.getElement().addEventListener("dragend",this.Sp.bind(this));this.getElement().addEventListener("wheel",
this.Ur.bind(this),{passive:!1});this.Se=new UR(this);this.s=new jS(this);BS(this);this.initEvent();CS(this,b||{});ae(a)||(this.Ta=!0,kS(this.s),DS(this))}var ES;g=wS.prototype;g.dispose=function(){this.Ga.clear();this.ta.clear();this.Nc.clear();this.bb.clear();this.cb.clear();this.la.clear();this.Xa.clear();this.mb.clear();this.Fa.clear();this.Bb.clear();this.mc.clear();this.Hb.clear();this.Xb.clear();this.Cc.clear();this.rb.clear()};
function CS(a,b){a.u=new tS(a);a.showClearButton=b.showClearButton;a.showHelpButton=b.showHelpButton;a.helpContent=b.helpContent}g.Sj=function(){this.g=A("input",{class:"tag-input"});this.i=A("div",{class:"gcim__tagboxeditor-wrapper "});this.ea=A("div",{class:"resize-corner"});this.ca=A("div",{class:"tag-watermark"});this.i.appendChild(this.g);this.Yb.appendChild(this.i);this.Yb.appendChild(this.ca);this.Yb.appendChild(this.ea);this.Yb.classList.add("gcim__tagboxeditor");this.Yb.classList.add("gcim")};
function BS(a){for(var b in a.m)if(b in a)try{a[b]=a.m[b]}catch(c){}}
g.initEvent=function(){var a=this;this.Ga=new K(this);this.ta=new K(this);this.Nc=new K(this);this.bb=new K(this);this.cb=new K(this);this.la=new K(this);this.Xa=new K(this);this.mb=new K(this);this.Fa=new K(this);this.Bb=new K(this);this.mc=new K(this);this.Hb=new K(this);this.Xb=new K(this);this.Cc=new K(this);this.rb=new K(this);J(this.h,"blur",function(b){return a.Fa.ha(b)});J(this.h,"focusin",function(b){return a.Ga.ha(b)});J(this.h,"focusout",function(b){return a.ta.ha(b)});J(this.h,"selectedtagschanged",
function(b){return a.Nc.ha(b)});J(this.h,"inserttag",function(b){return a.bb.ha(b)});J(this.h,"removetag",function(b){return a.cb.ha(b)});J(this.h,"input",function(b){return a.la.ha(b)});J(this.h,"valuechanged",function(b){return a.mb.ha(b)});J(this.h,"tagcreated",function(b){return a.mc.ha(b)});J(this.h,"tagmoved",function(b){return a.Hb.ha(b)});this.addEventListener("valuechanged",function(){FS(a);kS(a.s)});this.addEventListener("input",function(){fS(a.h,!0);FS(a)});this.addEventListener("focusout",
function(){fS(a.h,!0);FS(a);kS(a.s)});this.addEventListener("focusin",function(){FS(a);kS(a.s)});this.addEventListener("selectedtagschanged",function(){a.fa&&a.g.setSelectionRange(0,0)});GS(this)};function GS(a){var b=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),c=a.rb;Object.defineProperty(a.g,"value",{get:function(){return b.get.call(this)},set:function(d){b.set.call(this,d);c.ha()}})}
function FS(a){if(0===a.h.length&&0===a.g.value.length){var b=a.focused?a.watermarkNullText:a.watermarkDisplayNullText,c=a.ca.getAttribute("im-tagbox-placeholder"),d=!1;b!==c&&(a.ca.setAttribute("im-tagbox-placeholder",b),d=!0);a.ca.classList.contains("gcim_hidden")?a.ca.classList.remove("gcim_hidden"):d&&hb&&(a.ca.style.display="none",a.ca.style.display="")}else!a.ca.classList.contains("gcim_hidden")&&a.ca.classList.add("gcim_hidden")}
g.addEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Un(a,b)};g.removeEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Vn(a,b)};g.refreshUI=function(a){0===(a&1)&&this.u.refreshUI();0===(a&8)&&this.u.refreshUI();0===(a&64)&&kS(this.s);if(0===(a&128)){a=io(this.u.g);var b=lo(this.u.g);this.ca.style.left=a+"px";this.ca.style.width="calc(100% - "+b+"px)"}};g.appendTag=function(a){return this.h.appendTag(a)};g.insertTag=function(a,b){return this.h.insertTag(a,b)};
g.removeTag=function(a){return this.h.removeTag(a)};g.removeTagAtIndex=function(a){return aS(this.h,a)};g.getElement=function(){return this.Yb};g.Pb=function(a){var b={};b.focusin=this.Ga;b.focusout=this.ta;b.selectedtagschanged=this.Nc;b.inserttag=this.bb;b.removetag=this.cb;b.valuechanged=this.mb;b.blur=this.Fa;b.resize=this.Bb;b.tagcreated=this.mc;b.tagmoved=this.Hb;b.input=this.la;b.keydown=this.Xa;b.enabledchanged=this.Xb;b.readonlychanged=this.Cc;b.afterinputelementsetvalue=this.rb;return b[a]};
g.Rh=function(a){this.Xa.ha(a);a.defaultPrevented||(a.keyCode in this.he&&this.he[a.keyCode](a)?a.preventDefault():a.keyCode===this.applyCustomTagKey&&this.allowCustomTag&&(HS(this),this.la.ha(),a.preventDefault()))};g.Tr=function(a){this.focused||this.Ma===this.ea||hb&&nS(this.u.i,this.Ma)||(this.g.focus(),this.na=!1,a.preventDefault())};g.Sr=function(a){this.Dc=a.target;this.allowDragTag&&IS(this,a.target)?this.na=!0:this.focused&&a.target!=this.g&&a.preventDefault()};
function IS(a,b){a=fa(a.h.g);for(var c=a.next();!c.done;c=a.next())if(c.value.dc.contains(b))return!0;return!1}g.Qr=function(){this.focused||(this.Yb.classList.add("gcim_focused"),this.Ga.ha())};g.Rr=function(){this.na||this.h.i||(HS(this),sS(this),this.Yb.classList.remove("gcim_focused"),this.ta.ha())};g.Lr=function(){this.na||this.h.i||this.Fa.ha()};function HS(a){if(a.allowCustomTag){var b=a.g.value;b&&(sS(a),a.appendTag(b))}}function sS(a){a.g.value="";a.g.style.width="0"}
g.Mr=function(a){if(this.allowCopyTag&&this.fa){var b=this.fa,c;"string"===typeof b?c=b:c=b[this.tagTextMemberPath];a.clipboardData.setData("text",c);a.preventDefault()}};g.Or=function(a){ES=this.Yb;var b=JS(this,a.target);b&&a.dataTransfer.setData("application/json",JSON.stringify({id:b.g}))};
g.Pr=function(a){var b;if(null!==(b=ES)&&void 0!==b&&b.contains(a.target)){if(b=a.dataTransfer.getData("application/json")){b=JSON.parse(b).id;b=hS(this.h,b);if(-1===b)return;var c=this.h,d=this.lc;if(b!==d&&d!==b+1){var e=c.g[b],f=c.g[d];c.g.splice(b,1);b>d?c.g.splice(d,0,e):c.g.splice(d-1,0,e);e=e.dc;(f=null===f||void 0===f?void 0:f.dc)?f.before(e):c.da.g.before(e);c.ha("tagmoved",{Ls:b,Gr:d});c.ha("valuechanged")}}this.Sp(a)}};
g.Nr=function(a){var b;if(null!==(b=ES)&&void 0!==b&&b.contains(a.target)&&this.Yb.contains(a.target)){b=IS(this,a.target)?a.target:KS(this,a);var c=JS(this,b);c&&(b=LS(c.dc,a),this.lc=this.h.g.findIndex(function(d){return d===c})+("left"===b?0:1),MS(c.dc,b));a.preventDefault()}};
function KS(a,b){for(var c=new Map,d=0;d<a.h.length;d++){var e=a.h.g[d].dc,f=~~e.getBoundingClientRect().bottom;c.has(f)?c.get(f).push(e):c.set(f,[e])}a=c.keys();for(var h;(h=a.next())&&!h.done;){var k=c.get(h.value);if(0<h.value-b.y)break}c=fa(k);for(k=c.next();!k.done;k=c.next()){var l=k=k.value;if(0<k.getBoundingClientRect().right-b.x)break}return l}function MS(a,b){"left"===b?a.before(QR):a.nextSibling.before(QR)}g.Sp=function(){this.na=!1;ES=null;this.g.focus();QR.remove()};
g.Ur=function(a){a.ctrlKey||a.altKey||a.shiftKey||("singleline"===this.displayMode?(this.i.scrollLeft+=od(a),a.preventDefault()):"multiline"===this.displayMode&&0===a.deltaX&&(this.i.scrollTop=0>a.deltaY?this.i.scrollTop-10:this.i.scrollTop+10,a.preventDefault()))};g.mr=function(){var a=new lf;a.h=this.g;this.g.style.width=of(a,this.g.value)+"px";this.la.ha()};function LS(a,b){a=a.getBoundingClientRect();return b.x-a.left>a.width/2?"right":"left"}
function JS(a,b){return a.h.g.find(function(c){return c.dc.contains(b)})}function zS(a,b){return a.h.g.findIndex(function(c){return c.dc.contains(b)})}function yS(a){var b=a.h.g.findIndex(function(c){return c===a.h.h});a.removeTagAtIndex(b)}
function AS(a,b){if(0===a.h.length)return!1;if(xS(a))if(a.allowSelectTag){var c=a.h.g.indexOf(a.h.h);"left"===b&&gS(a.h,a.h.g[a.fa?Math.max(c-1,0):a.h.length-1]);if("right"===b){if(!a.fa)return!1;c===a.h.length-1?(fS(a.h,!0),a.i.scrollLeft=a.g.offsetLeft+a.g.offsetWidth):gS(a.h,a.h.g[c+1]);return!0}}else return c=a.i.scrollLeft,a.i.scrollLeft+="left"===b?-10:10,a.i.scrollLeft!==c;return!1}function xS(a){a=a.g;return a.selectionStart===a.selectionEnd&&0===a.selectionStart}
function NS(a){a.g.readOnly=a.readOnly||!a.allowCustomTag;a.g.disabled=!a.enabled}g.lr=function(a){this.enabled&&(this.ga=a,this.xc=this.height,this.Pe=this.width,this.Bd=Fd(this.ob),document.addEventListener("mousemove",this.Bd),document.addEventListener("mouseup",this.sa),document.addEventListener("touchmove",this.ob,{passive:!1}),document.addEventListener("touchend",this.sa),a.preventDefault())};g.nb=function(){return this.ka};g.Ej=function(){return this.focused&&!this.readOnly&&this.enabled};
function rS(a){return 0<a.h.length||0<a.g.value.length}g.kl=function(){return rS(this)?!0:this.focused&&0<this.watermarkNullText.length||!this.focused&&0<this.watermarkDisplayNullText.length};g.isInitialized=function(){return this.initComplete};
function DS(a){if(a.initComplete){a.Yb.classList.remove("inside-padding");a.Yb.classList.remove("throughborder-padding");"inside"===a.floatingLabelDirection&&OS(a)?a.Yb.classList.add("inside-padding"):PS(a)&&a.Yb.classList.add("throughborder-padding");var b=PS(a);if("outside"===a.floatingLabelDirection&&OS(a)||b){var c=a.s.i.offsetHeight;b&&(c=Math.floor(c/2));a.ka.style.marginTop=F(a.va)?"calc("+c+"px * 0.7)":"calc("+a.va+" + "+c+"px * 0.7)"}else a.ka.style.marginTop=a.va;"inside"===a.floatingLabelDirection&&
OS(a)&&45>a.height?a.ka.style.height="45px":PS(a)&&35>a.height&&(a.ka.style.height="35px")}}function PS(a){return"throughborder"===a.floatingLabelDirection&&OS(a)}function OS(a){return!F(a.floatingLabelText)&&"none"!==a.floatingLabelType}g.clear=function(){return this.h.clear()};
p.Object.defineProperties(wS.prototype,{vc:{configurable:!0,enumerable:!0,set:function(a){this.Qd=a},get:function(){var a;return null!==(a=this.Qd)&&void 0!==a?a:this.Yb}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.Dc}},Nd:{configurable:!0,enumerable:!0,get:function(){return WR(this.h)}},initComplete:{configurable:!0,enumerable:!0,get:function(){return this.Ta}},h:{configurable:!0,enumerable:!0,get:function(){return this.Se}},value:{configurable:!0,enumerable:!0,get:function(){return this.h.value},
set:function(a){this.h.value=a}},text:{configurable:!0,enumerable:!0,get:function(){return this.h.text},set:function(a){this.h.text=a}},imageAlignment:{configurable:!0,enumerable:!0,get:function(){return this.h.imageAlignment},set:function(a){this.h.imageAlignment=a}},width:{configurable:!0,enumerable:!0,get:function(){return parseFloat(window.getComputedStyle(this.Yb).width)},set:function(a){a=nd(a);null!==a&&(this.Yb.style.width=a,this.refreshUI(-2))}},height:{configurable:!0,enumerable:!0,get:function(){return parseFloat(window.getComputedStyle(this.Yb).height)},
set:function(a){a=nd(a);null!==a&&(this.Yb.style.height=a,this.refreshUI(-2))}},watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.m.watermarkNullText},set:function(a){this.m.watermarkNullText=a;FS(this)}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.m.watermarkDisplayNullText},set:function(a){this.m.watermarkDisplayNullText=a;FS(this);kS(this.s)}},tagTemplate:{configurable:!0,enumerable:!0,get:function(){return this.m.tagTemplate}},readOnly:{configurable:!0,
enumerable:!0,get:function(){return this.m.readOnly},set:function(a){var b=this.m.readOnly;this.m.readOnly=a;this.h.setReadOnly(a);NS(this);b!==this.m.readOnly&&this.Cc.ha()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.m.enabled},set:function(a){var b=this.m.enabled;this.m.enabled=a;this.getElement().setAttribute("disabled",a?"false":"true");this.i.setAttribute("disabled",a?"false":"true");NS(this);b!==this.m.enabled&&this.Xb.ha()}},allowResize:{configurable:!0,enumerable:!0,
get:function(){return this.m.allowResize},set:function(a){this.m.allowResize=a;this.allowResize?(this.ea.addEventListener("mousedown",this.La),this.ea.addEventListener("touchstart",this.La,{passive:!1}),this.ea.setAttribute("resize","true")):(this.ea.removeEventListener("mousedown",this.La),this.ea.removeEventListener("touchstart",this.La),this.ea.setAttribute("resize","false"))}},displayMode:{configurable:!0,enumerable:!0,get:function(){return this.m.displayMode},set:function(a){this.m.displayMode=
a;this.Yb.setAttribute("displaymode",a)}},allowCustomTag:{configurable:!0,enumerable:!0,get:function(){return this.m.allowCustomTag},set:function(a){this.m.allowCustomTag=a;NS(this)}},separator:{configurable:!0,enumerable:!0,get:function(){return this.m.separator},set:function(a){this.m.separator=a}},applyCustomTagKey:{configurable:!0,enumerable:!0,get:function(){return this.m.applyCustomTagKey},set:function(a){this.m.applyCustomTagKey=a}},allowSelectTag:{configurable:!0,enumerable:!0,get:function(){return this.m.allowSelectTag},
set:function(a){this.m.allowSelectTag=a;this.h.g.forEach(function(b){a?b.dc.setAttribute("selectable",""):b.dc.removeAttribute("selectable")})}},allowCopyTag:{configurable:!0,enumerable:!0,get:function(){return this.m.allowCopyTag},set:function(a){this.m.allowCopyTag=a}},allowDragTag:{configurable:!0,enumerable:!0,get:function(){return this.m.allowDragTag}},tagValidator:{configurable:!0,enumerable:!0,get:function(){return this.m.tagValidator},set:function(a){this.m.tagValidator=a}},focused:{configurable:!0,
enumerable:!0,get:function(){return document.activeElement===this.g&&this.Yb.classList.contains("gcim_focused")}},fa:{configurable:!0,enumerable:!0,get:function(){var a;return null===(a=this.h.h)||void 0===a?void 0:a.value}},tagImageMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.m.tagImageMemberPath}},tagTextMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.m.tagTextMemberPath}},showImage:{configurable:!0,enumerable:!0,get:function(){return this.m.showImage}},
minHeight:{configurable:!0,enumerable:!0,set:function(a){a=nd(a);null!==a&&(this.Yb.style.minHeight=a)},get:function(){return this.Yb.style.minHeight}},maxHeight:{configurable:!0,enumerable:!0,set:function(a){a=nd(a);null!==a&&(this.Yb.style.maxHeight=a)},get:function(){return this.Yb.style.maxHeight}},minWidth:{configurable:!0,enumerable:!0,set:function(a){a=nd(a);null!==a&&(this.Yb.style.minWidth=a)},get:function(){return this.Yb.style.minWidth}},maxWidth:{configurable:!0,enumerable:!0,set:function(a){a=
nd(a);null!==a&&(this.Yb.style.maxWidth=a)},get:function(){return this.Yb.style.maxWidth}},maxTagWidth:{configurable:!0,enumerable:!0,get:function(){return this.m.maxTagWidth}},uniqueTags:{configurable:!0,enumerable:!0,get:function(){return this.m.uniqueTags}},maxTagCount:{configurable:!0,enumerable:!0,get:function(){return this.m.maxTagCount}},floatingLabelText:{configurable:!0,enumerable:!0,get:function(){return this.s.floatingLabelText},set:function(a){this.s.floatingLabelText=a;DS(this)}},floatingLabelType:{configurable:!0,
enumerable:!0,get:function(){return this.s.floatingLabelType},set:function(a){this.s.floatingLabelType=a;DS(this)}},floatingLabelDirection:{configurable:!0,enumerable:!0,get:function(){return this.s.floatingLabelDirection},set:function(a){this.s.floatingLabelDirection=a;DS(this)}},helpContent:{configurable:!0,enumerable:!0,get:function(){return this.u.h.helpContent},set:function(a){this.u.h.helpContent=a}},showHelpButton:{configurable:!0,enumerable:!0,get:function(){return this.u.h.s},set:function(a){this.u.h.s=
a}},showClearButton:{configurable:!0,enumerable:!0,get:function(){return this.u.i.s},set:function(a){this.u.i.s=a}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcTagBoxEditor"}}});function QS(a){this.s={};this.na=xe.appendDropDownToBody?new RS(a,this):new SS(a,this);this.g=a;this.va=TS(a);this.i=A("div",{class:"gcim-dropdown gcim-dropdown_close gctagbox_dropdown","data-nested":"true"});this.va.appendChild(this.i);this.Fe=new to(this.getElement(),this.g.getElement());this.i.addEventListener("mousedown",function(b){b.preventDefault()})}t(QS,tg);g=QS.prototype;g.dispose=function(){this.na.dispose();this.i.remove();vg(this)};
g.open=function(a){a=void 0===a?!0:a;!this.showDropDown||this.Ke||!this.g.showDropDownIfNoItems&&0>=this.Ef()||(this.Fe.h(),jd(this.i,"gcim-dropdown_close"),this.pn(),this.Ke=!0,this.updatePosition(),a&&wo(this.Fe),this.Eq(),this.ha("dropdownopened"))};g.close=function(a){var b=this;a=void 0===a?!0:a;this.Ke&&(this.Fe.h(),E(this.i,"gcim-dropdown_close"),this.Ke=!1,a?uo(this.Fe,function(){return b.ha("dropdownclosed")}):this.ha("dropdownclosed"))};g.toggleOpen=function(){this.Ke?this.close():this.open()};
g.getElement=function(){return this.i};function US(a){return a.g.getEditor()}g.updatePosition=function(){this.Ke&&this.na.updateDropdownPosition()};g.getDropDownWidth=function(){return parseFloat(window.getComputedStyle(this.i).width)||0};g.getDropDownHeight=function(){return parseFloat(window.getComputedStyle(this.i).height)||0};g.Eq=function(){};
p.Object.defineProperties(QS.prototype,{ea:{configurable:!0,enumerable:!0,get:function(){return this.Ke}},showDropDown:{configurable:!0,enumerable:!0,get:function(){return this.La},set:function(a){this.La=a;this.ea&&this.close()}},animationType:{configurable:!0,enumerable:!0,get:function(){return this.Fe.animationType},set:function(a){a&&(this.Fe.animationType=a)}}});
function VS(a){QS.call(this,a);var b=this;this.la=!1;US(this).g.addEventListener("beforeinput",function(c){"historyUndo"!==c.inputType||b.g.focused||(b.la=!0)})}t(VS,QS);function WS(a){var b=a.la;a.la=!1;return!b}function XS(a,b){VS.call(this,a);this.ca=this.vr.bind(this);b.width||(b.width="auto");this.h=new OB(this.i,b);this.h.Ga=!0;this.initEvent()}t(XS,VS);g=XS.prototype;g.addEventListener=function(a,b){this.h.addEventListener(a,b)};
g.removeEventListener=function(a,b){this.h.removeEventListener(a,b)};function YS(a){if(a.g.uniqueTags){var b=ZS(a,a.g.value);a.h.setSelectedIndices(b)}}function ZS(a,b){var c=[];a=a.items;for(var d=0;d<b.length;d++)for(var e=0;e<a.length;e++)if(JSON.stringify(a[e])===JSON.stringify(b[d])){c.push(e);break}return c}g.initEvent=function(){var a=this;J(this.h.getListDate(),"Reszie",function(){a.i.style.width=""})};g.vr=function(a,b){$S(this,b.index);this.close()};
function $S(a,b){if(!a.g.readOnly){var c=a.items,d=c[b];if(a.g.uniqueTags){var e=a.h.selectedIndices;if(e.includes(b)){a:{for(var f=0;f<c.length;f++)if(JSON.stringify(c[f])===JSON.stringify(d)){d=f;break a}d=-1}e.splice(e.indexOf(b),1);a.g.appendTag(c[d])&&e.push(d)}else e.push(b);a.h.setSelectedIndices(e)}else a.g.appendTag(d),a.h.setSelectedIndices([]);a.g.autoFilter&&(US(a).g.value="")}}
function aT(a,b){RB(a.h,-1);var c=[];b&&c.push({name:a.g.tagTextMemberPath,comparator:a.g.autoFilter,filterString:b});a.h.filter(c);a.h.refresh()}function bT(a){if(a.g.autoSelect){var b=a.g.getEditor().g.value;b=b?a.h.findString(b,-1,a.g.dropDownDisplayMemberPath):-1;RB(a.h,b);-1!==b&&a.h.scrollIntoView(b)}}g.pn=function(){"alignwitheditor"===this.g.dropDownAlignmentMode&&this.g.width!==this.getDropDownWidth()&&"auto"===this.h.getListDate().width&&(this.i.style.width=this.g.width+"px")};g.Ef=function(){return this.h.getItems().length};
g.Eq=function(){this.h.refresh()};p.Object.defineProperties(XS.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var a=this.h.items;return a?a.map(function(b){return b.value}):[]}}});function cT(a,b){this.h=a;this.g=b}cT.prototype.dispose=function(){this.i&&this.i.disconnect()};cT.prototype.getEditor=function(){return this.h};
function dT(a){var b=a.h.s;a=a.h.container;return a instanceof HTMLElement?b.getBoundingClientRect().top-a.getBoundingClientRect().top:b.getBoundingClientRect().top}function eT(a,b){a=a.h.container;if(a instanceof HTMLElement)return 0===b?a.clientWidth:a.clientHeight;a=fe();return 0===b?a.clientWidth:a.clientHeight}
function fT(a,b,c){var d="alignwitheditor"===a.getEditor().dropDownAlignmentMode?a.h.getEditor().i.getBoundingClientRect().left:a.h.getEditor().g.getBoundingClientRect().left,e=a.h.getEditor().i.getBoundingClientRect().right-d;0>e&&(d=a.h.getEditor().i.getBoundingClientRect().left,e=a.h.getEditor().i.getBoundingClientRect().width);return 0<=d&&d+b<=c?0:b>c?-d:0>d&&-d>=e||0<d&&d>=c?0:0>d?-d:-(d+b-c)}
function gT(a){var b=a.h.getEditor().g.getBoundingClientRect().left,c=a.h.getEditor().i.getBoundingClientRect().left;a=a.h.getEditor().i.getBoundingClientRect().width;return b-c>a?0:b-c}function RS(){cT.apply(this,arguments)}t(RS,cT);RS.prototype.updateDropdownPosition=function(){hT(this);hT(this)};
function hT(a){var b=dT(a),c=a.h.s.offsetHeight,d=a.g.i.offsetHeight+xe.inputOffset,e=a.h.s.getBoundingClientRect().left,f=a.g.i.offsetWidth;b+c+d>eT(a,1)&&b>=d?(b=b+window.screenY-d,a.g.i.style.marginBottom=xe.inputOffset+"px"):(b=b+window.screenY+c,a.g.i.style.marginTop=xe.inputOffset+"px");c=eT(a,0);e="alignwitheditor"===a.getEditor().dropDownAlignmentMode?fT(a,f,c)+e+window.scrollX:fT(a,f,c)+e+window.scrollX+gT(a);a.g.i.style.inset=b+"px auto auto "+e+"px"}
function SS(a,b){cT.call(this,a,b);TS(a).style.position="relative"}t(SS,cT);
SS.prototype.updateDropdownPosition=function(){var a=dT(this),b=this.g.i.offsetHeight+xe.inputOffset,c=this.g.i.offsetWidth;a+this.h.s.offsetHeight+b>eT(this,1)&&a>=b?(jd(this.g.i,"gcim-dropdown-down"),E(this.g.i,"gcim-dropdown-up"),this.g.i.style.marginBottom=xe.inputOffset+"px"):(jd(this.g.i,"gcim-dropdown-up"),E(this.g.i,"gcim-dropdown-down"),this.g.i.style.marginTop=xe.inputOffset+"px");a=eT(this,0);"alignwithcaret"===this.getEditor().dropDownAlignmentMode?this.g.i.style.left=fT(this,c,a)+gT(this)+
"px":this.g.i.style.left=fT(this,c,a)+"px"};function iT(a,b){XS.call(this,a,b);this.addEventListener("itemclick",this.ca)}t(iT,XS);g=iT.prototype;g.dispose=function(){this.h.destroy();XS.prototype.dispose.call(this)};
g.xp=function(){var a=this;this.g.addEventListener("dropdownclosed",function(){aT(a,"")});this.g.addEventListener("dropdownopened",function(){jT(a)});US(this).addEventListener("blur",function(){a.close();jT(a)});US(this).addEventListener("removetag",function(){if(a.g.uniqueTags){var b=US(a).value,c=[];a.h.getItems().forEach(function(d,e){b.includes(d.value)&&c.push(e)}.bind(a));a.h.setSelectedIndices(c)}a.updatePosition()});US(this).addEventListener("input",function(){WS(a)&&a.g.focused&&(a.open(),
jT(a),bT(a))});US(this).g.addEventListener("compositionend",function(){jT(a);bT(a)});US(this).addEventListener("inserttag",function(){a.updatePosition();YS(a)});this.g.addEventListener("dropdownopened",function(){a.u=-1;a.h.scrollIntoView(0)}.bind(this));US(this).addEventListener("keydown",this.Kr.bind(this));US(this).addEventListener("valuechanged",function(){0===a.g.value.length&&(a.h.selectedIndices=[])}.bind(this));US(this).addEventListener("blur",function(){kT(a)});US(this).addEventListener("tagcreated",
function(b,c){a.g.appendCustomTagToDropDown&&0===ZS(a,[c.value]).length&&(a.g.getData().i||(a.g.getData().i=[]),a.g.getData().i.unshift(c.value),b=IR(c.value,a.g.getData(),a.g.getData().h),a.h.insertItem(b,0),a.h.scrollIntoView(0))})};function jT(a){"none"!==a.g.autoFilter&&aT(a,a.g.getEditor().g.value)}function kT(a){var b=a.g.getEditor().g.value;return b&&(b=lT(a,b),b.item)?(mT(a,b.index),aT(a,""),!0):!1}
function mT(a,b){if(!a.g.readOnly){var c=a.h;if(c.selectedIndices.includes(b)){var d=c.selectedIndices;d.splice(c.selectedIndices.indexOf(b),1);c.selectedIndices=d}else{if(a.g.bb===a.g.maxTagCount)return;d=c.selectedIndices;d.push(b);c.selectedIndices=d;a.g.autoFilter&&"none"!==a.g.autoFilter&&(a.g.getEditor().g.value="")}$S(a,b)}}function lT(a,b){for(var c=a.h.items,d=0;d<c.length;d++){var e=c[d];if(e&&e[a.g.tagTextMemberPath]===b)return{item:e,index:d}}return{}}g.setReadOnly=function(a){this.h.setReadOnly(a)};
g.Kr=function(a,b){if(this.ea){a=!0;switch(b.keyCode){case 27:this.close();break;case 38:b.altKey?this.close():0!=this.u&&(-1==this.u?this.u=0:this.u--);break;case 40:this.u++;break;case 33:var c=this.h.visibleItemCount;this.u=this.u<c?0:this.u-c;break;case 34:this.u+=this.h.visibleItemCount;break;case 36:this.u=0;break;case 35:this.u=this.h.getItems().length-1;break;case 13:if(-1===this.u){a=kT(this);break}mT(this,this.u);this.close();sS(US(this));break;default:a=!1}a&&b.preventDefault()}else b.altKey&&
40===b.keyCode&&this.open()};g.insertTag=function(a,b){return US(this).insertTag(nT(this,a),b)};g.removeTagAtIndex=function(a){return US(this).removeTagAtIndex(a)};g.appendTag=function(a){return US(this).appendTag(nT(this,a))};g.setValue=function(a){a=null!==a&&void 0!==a?a:[];US(this).value=oT(this,a);YS(this)};g.clear=function(){return US(this).clear()};function oT(a,b){return b.map(function(c){return nT(a,c)})}
function nT(a,b){if("string"!==typeof b)return b;a=lT(a,b);return a.item?a.item.value:b}p.Object.defineProperties(iT.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.h.m.h.i},set:function(a){a=0>a?-1:a>this.h.getItems().length-1?this.h.getItems().length-1:a;RB(this.h,a);this.h.scrollIntoView(a)}}});function pT(a,b){VS.call(this,a);var c=this;this.ta=this.ka=!1;this.onKeyDown=function(e,f){if(c.ea){e=!0;switch(f.key){case "Escape":c.close();break;case "ArrowUp":f.altKey?c.close():c.h.performKeyDown(f);break;case "ArrowDown":case "PageUp":case "PageDown":case "Home":case "End":c.h.performKeyDown(f);break;case " ":case "ArrowLeft":case "ArrowRight":e=!1;c.h.performKeyDown(f);break;case "Enter":c.h.data.Ma&&c.h.performKeyDown(f);break;default:e=!1}e&&f.preventDefault()}else f.altKey&&"ArrowDown"===
f.key&&(c.open(),f.preventDefault())};this.Ga=function(){Wx(c.h.data.h);c.h.Mh=null;qD(c.h);c.h.$i();qT(c);rT(c)};this.Ta=function(){clearTimeout(c.fa);sS(US(c));c.close()};this.onInput=function(){WS(c)&&c.g.focused&&(c.fa&&clearTimeout(c.fa),c.fa=setTimeout(function(){c.ea?(c.h.Mh=null,qT(c),rT(c)):c.open()}))};this.Xa=function(e,f){sT(c.ga,f.Ls,f.Gr);c.ha(tT)};this.bb=function(e,f){f.removedTags.forEach(function(h){(h=uT(c,h))&&"checked"===h.s&&ey(h)})};this.u=function(){US(c).value=c.checkedItems;
sS(US(c));c.sa&&c.h.filter(null);c.ha(tT)};this.ka=void 0!=b.width;var d=A("div",null);this.i.appendChild(d);this.h=new oD(d,b);this.h.tabIndex=-1;this.h.data.Fa=function(e){return JR(e,a.getData(),a.getData().s)}}t(pT,VS);g=pT.prototype;g.dispose=function(){this.h.dispose();VS.prototype.dispose.call(this)};g.Ef=function(){var a,b;return null!==(b=null===(a=this.h.data.h.children)||void 0===a?void 0:a.length)&&void 0!==b?b:0};g.setReadOnly=function(a){this.h.readOnly=a};
g.pn=function(){"alignwitheditor"!==this.g.dropDownAlignmentMode||this.ka||this.ta||(this.h.width=this.g.width)};function uT(a,b){return void 0===b||null===b?null:"string"!==typeof b||F(b)?a.h.data.u.get(b):Fx(a.h.data,b,"equal",a.g.tagTextMemberPath,!1)}
g.setValue=function(a){var b=this;this.ca&&Array.isArray(a)&&(this.h.removeEventListener("checkedchanged",this.u),this.h.clearChecked(),a=a.map(function(c){var d,e;return null!==(e=null===(d=uT(b,c))||void 0===d?void 0:d.g)&&void 0!==e?e:null}).filter(function(c){return!!c}),this.h.checkedItems=a,this.h.addEventListener("checkedchanged",this.u),this.u())};g.appendTag=function(a){if(!this.ca)return!1;a=uT(this,a);if(!a||"checked"===a.s)return!1;ey(a);return!0};
g.removeTagAtIndex=function(a){return this.ca?US(this).removeTagAtIndex(a):!1};g.insertTag=function(a,b){if(!this.ca)return!1;var c="string"===typeof a?Fx(this.h.data,a,"equal",this.g.tagTextMemberPath,!1):this.h.data.u.get(a);if(!c||"checked"===c.s)return!1;this.h.removeEventListener("checkedchanged",this.u);ey(c);a=this.ga;c=a.indexOf(c);0<=c&&(b=md(b,0,a.length-1),sT(a,c,b));this.h.addEventListener("checkedchanged",this.u);this.u();return!0};
g.clear=function(){if(!this.ca)return!1;this.h.clearChecked();return!0};
g.xp=function(){var a=this;US(this).addEventListener("keydown",this.onKeyDown);US(this).addEventListener("blur",this.Ta);US(this).addEventListener("tagmoved",this.Xa);US(this).addEventListener("input",this.onInput);US(this).addEventListener("valuechanged",function(){a.updatePosition()});US(this).addEventListener("removetag",this.bb);this.h.addEventListener("checkedchanged",this.u);J(this,"dropdownopened",this.Ga);this.h.addEventListener("resizeend",function(){return a.ta=!0})};
function sT(a,b,c){if(0<=b&&b<a.length&&0<=c&&c<a.length){var d=a[c].ea;if(b>c)for(;c<b;c++)a[c].ea=a[c+1].ea;else if(b<c)for(var e=b+1;e<=c;e++)a[e].ea=a[e-1].ea;a[b].ea=d}}function qT(a){if(a.sa){var b=a.g.getEditor().g.value,c=null;F(b)||(c=[{name:a.tagTextMemberPath,comparator:a.g.autoFilter,filterString:b}]);a.h.filter(c)}}
function rT(a){if(a.Ma){var b=a.Fa;b?(b=Fx(a.h.data,b,"equal",a.tagTextMemberPath,!0)||Fx(a.h.data,b,"contains",a.tagTextMemberPath,!0),a.h.data.g=b,null===b||void 0===b?void 0:Kx(b),b&&a.h.pb.scrollIntoView(b)):a.h.data.g=null}}
p.Object.defineProperties(pT.prototype,{checkedItems:{configurable:!0,enumerable:!0,get:function(){return this.ga.map(function(a){return a.g})}},ga:{configurable:!0,enumerable:!0,get:function(){return this.h.data.ca.sort(function(a,b){return a.ea-b.ea})}},sa:{configurable:!0,enumerable:!0,get:function(){return"none"!==this.g.autoFilter}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.g.autoSelect}},Fa:{configurable:!0,enumerable:!0,get:function(){return this.g.getEditor().g.value}},
tagTextMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.g.tagTextMemberPath}},ca:{configurable:!0,enumerable:!0,get:function(){return US(this).Nd}},imageMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.h.imageMemberPath}},childrenMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.h.childrenMemberPath}},expandedMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.h.expandedMemberPath}},selectableNodeType:{configurable:!0,enumerable:!0,
get:function(){return this.h.selectableNodeType}},flat:{configurable:!0,enumerable:!0,get:function(){return this.h.flat}},valueConsistsOf:{configurable:!0,enumerable:!0,get:function(){return this.h.valueConsistsOf},set:function(a){this.h.valueConsistsOf=a}},checkOnClick:{configurable:!0,enumerable:!0,get:function(){return this.h.checkOnClick},set:function(a){this.h.checkOnClick=a}},checkBySpace:{configurable:!0,enumerable:!0,get:function(){return this.h.checkBySpace},set:function(a){this.h.checkBySpace=
a}},virtualMode:{configurable:!0,enumerable:!0,get:function(){return this.h.virtualMode}}});var tT="ValueChanged";function vT(a,b){this.Ga=150;this.Ta=30;var c=be(a);c&&"function"===typeof c.destroy&&c.destroy();this.i=a;this.ic=a.style.cssText;this.Hd=a.className;this.ce=a.innerHTML;a.classList.add("gcim__tagbox");a["IMJS-CTRL"]=this;$d(a,this.componentName);b=b||{};c=new GR;if(b){c.autoFilter=void 0!==b.autoFilter?b.autoFilter:c.autoFilter;c.autoSelect=void 0!==b.autoSelect?b.autoSelect:c.autoSelect;c.showDropDownIfNoItems=void 0!==b.showDropDownIfNoItems?b.showDropDownIfNoItems:c.showDropDownIfNoItems;c.dropDownAlignmentMode=
void 0!==b.dropDownAlignmentMode?b.dropDownAlignmentMode:c.dropDownAlignmentMode;c.showDropDown=void 0!==b.showDropDown?b.showDropDown:c.showDropDown;"boolean"===typeof b.appendCustomTagToDropDown&&(c.appendCustomTagToDropDown=b.appendCustomTagToDropDown);b.dropDownType&&(c.dropDownType=mg(FR,b.dropDownType,"list"));var d={};d.width=void 0===b.width?300:b.width;d.height=void 0===b.height?30:b.height;d.watermarkNullText=void 0===b.watermarkNullText?d.watermarkNullText:b.watermarkNullText;d.watermarkDisplayNullText=
void 0===b.watermarkDisplayNullText?d.watermarkDisplayNullText:b.watermarkDisplayNullText;d.tagTemplate=void 0===b.tagTemplate?d.tagTemplate:b.tagTemplate;d.readOnly=void 0===b.readOnly?d.readOnly:b.readOnly;d.enabled=void 0===b.enabled?d.enabled:b.enabled;d.allowResize=void 0===b.allowResize?d.allowResize:b.allowResize;d.displayMode=void 0===b.displayMode?d.displayMode:b.displayMode;d.allowCopyTag=void 0===b.allowCopyTag?d.allowCopyTag:b.allowCopyTag;d.allowDragTag=void 0===b.allowDragTag?d.allowDragTag:
b.allowDragTag;d.allowSelectTag=void 0===b.allowSelectTag?d.allowSelectTag:b.allowSelectTag;d.allowCustomTag=void 0===b.allowCustomTag?d.allowCustomTag:b.allowCustomTag;d.applyCustomTagKey=void 0===b.applyCustomTagKey?d.applyCustomTagKey:b.applyCustomTagKey;d.separator=void 0===b.separator?d.separator:b.separator;d.tagValidator=void 0===b.tagValidator?d.tagValidator:b.tagValidator;d.tagTextMemberPath=void 0!==b.tagTextMemberPath?b.tagTextMemberPath:"Text";d.tagImageMemberPath=void 0!==b.tagImageMemberPath?
b.tagImageMemberPath:"Image";d.showImage=void 0!==b.showImage?b.showImage:d.showImage;d.maxHeight=void 0===b.maxHeight?Infinity:b.maxHeight;d.maxWidth=void 0===b.maxWidth?Infinity:b.maxWidth;d.minHeight=void 0===b.minHeight?30:b.minHeight;d.minWidth=void 0===b.minWidth?300:b.minWidth;d.maxTagWidth=void 0!==b.maxTagWidth?b.maxTagWidth:d.maxTagWidth;d.uniqueTags=void 0!==b.uniqueTags?b.uniqueTags:!0;d.maxTagCount=void 0!==b.maxTagCount?b.maxTagCount:d.maxTagCount;d.imageAlignment=void 0!==b.imageAlignment?
b.imageAlignment:d.imageAlignment;b.floatingLabelDirection&&(d.floatingLabelDirection=b.floatingLabelDirection);b.floatingLabelText&&(d.floatingLabelText=b.floatingLabelText);b.floatingLabelType&&(d.floatingLabelType=b.floatingLabelType);d.helpContent=b.helpContent;d.showHelpButton=b.showHelpButton;d.showClearButton=b.showClearButton;c.g=d;if("list"===c.dropDownType){var e={};e.height=void 0!==b.dropDownHeight?b.dropDownHeight:150;e.width=void 0!==b.dropDownWidth?b.dropDownWidth:null;e.allowResize=
void 0!==b.allowDropDownResize?b.allowDropDownResize:null;e.displayMemberPath=void 0!==b.dropDownDisplayMemberPath?b.dropDownDisplayMemberPath:"Text";e.selectionMode="multiple";e.autoHeight=!0;var f=void 0!==b.dropDownItemTemplate?(f=b.dropDownItemTemplate)?f.replace(/\{!(\w+)\}/g,"{!value.$1}").replace(/\{!!(\w+)\}/g,"{!!value.$1}"):f:null;e.itemTemplate=f;e.itemHeight=void 0!==b.dropDownItemHeight?b.dropDownItemHeight:null;e.items=HR(b.items,c,e);c.h=e}else{d=b.dropDownTreeConfig||{};var h={width:b.dropDownWidth,
height:b.dropDownHeight,readOnly:b.readOnly,imageMemberPath:d.imageMemberPath,expandedMemberPath:d.expandedMemberPath,itemTemplate:d.itemTemplate,itemHeight:b.dropDownItemHeight,allowResize:b.allowDropDownResize,selectableNodeType:d.selectableNodeType,flat:d.flat,load:d.load,checkOnClick:d.checkOnClick,checkBySpace:d.checkBySpace,valueConsistsOf:d.valueConsistsOf,isMultiSelect:!0,virtualMode:d.virtualMode};h.displayMemberPath=null!==(e=b.dropDownDisplayMemberPath)&&void 0!==e?e:lx;h.childrenMemberPath=
null!==(f=d.childrenMemberPath)&&void 0!==f?f:ox;h.items=JR(b.items,c,h);c.s=h;c.g.allowCustomTag=!1;c.g.tagValidator=void 0;c.g.maxTagCount=Infinity;c.g.uniqueTags=!1;c.showDropDown=!0}c.i=b.items;c.value=b.value;c.u=void 0!==b.height}this.m=c;this.s=A("div",{"data-nested":"true"});this.getElement().appendChild(this.s);this.va=new wS(this.s,this.m.g);this.getEditor().vc=a;"tree"!==this.m.dropDownType?this.g=new iT(this,this.m.h):this.g=new pT(this,this.m.s);this.initEvent();this.g.xp();wT(this);
xe.g=!0;this.Fa=null;a=this.m;b=this.getEditor().getElement();b.style.maxHeight="";b.style.minHeight="";b.style.maxWidth="";b.style.minWidth="";b.style.height="";b.style.width="";G(a.g.maxHeight)||(this.maxHeight=a.g.maxHeight);G(a.g.minHeight)||(this.minHeight=a.g.minHeight);G(a.g.maxWidth)||(this.maxWidth=a.g.maxWidth);G(a.g.minWidth)||(this.minWidth=a.g.minWidth);G(a.g.width)||(this.width=a.g.width);G(a.g.allowCustomTag)||(this.allowCustomTag=a.g.allowCustomTag);G(a.g.readOnly)||(this.readOnly=
a.g.readOnly);G(a.showDropDown)||(this.showDropDown=a.showDropDown);G(a.g.allowResize)||(this.allowResize=a.g.allowResize);G(a.g.displayMode)||(this.displayMode=a.g.displayMode);!G(a.g.height)&&a.u&&(this.height=a.g.height);G(a.value)||(this.value=a.value);a=this.getEditor();a.Ta=!0;kS(a.s);DS(a);xT(this)}g=vT.prototype;g.destroy=function(){this.g.dispose();this.va.dispose();this.Nb();this.Hf();ce(this.i);he(this)};g.addEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Un(a,b)};
g.removeEventListener=function(a,b){a&&(a=this.Pb(a.toLowerCase()))&&Vn(a,b)};g.insertTag=function(a,b){return this.g.insertTag(a,b)};g.removeTagAtIndex=function(a){return this.g.removeTagAtIndex(a)};g.Nb=function(){this.ga.clear();this.ta.clear();this.ka.clear();this.na.clear();this.la.clear();this.ea.clear();this.fa.clear();this.u.clear();this.ca&&(this.getEditor().getElement().removeEventListener("click",this.ca),this.ca=null)};
g.Hf=function(){this.Hd?this.i.className=this.Hd:this.i.removeAttribute("class");this.ic?this.i.style.cssText=this.ic:this.i.removeAttribute("style");this.i.innerHTML=this.ce};g.Pb=function(a){var b={};b.focusin=this.ga;b.focusout=this.ta;b.inserttag=this.ka;b.removetag=this.na;b.input=this.la;b.dropdownclosed=this.ea;b.dropdownopened=this.fa;b.valuechanged=this.u;return b[a]};
g.initEvent=function(){var a=this;this.ga=new K(this);this.ta=new K(this);this.ka=new K(this);this.na=new K(this);this.la=new K(this);this.ea=new K(this);this.fa=new K(this);this.u=new K(this);this.getEditor().addEventListener("focusin",function(){return a.ga.ha()});this.getEditor().addEventListener("focusout",function(){return a.ta.ha()});this.h&&(this.getEditor().addEventListener("inserttag",function(){return a.ka.ha()}),this.getEditor().addEventListener("removetag",function(b,c){return a.na.ha(c)}));
this.getEditor().addEventListener("input",function(){return a.la.ha()});this.h?this.getEditor().addEventListener("valuechanged",function(){return a.u.ha()}):J(this.g,tT,function(){return a.u.ha()});J(this.g,"dropdownclosed",function(){return a.ea.ha()});J(this.g,"dropdownopened",function(){return a.fa.ha()});this.getEditor().addEventListener("resize",function(){a.g.pn();a.g.updatePosition()})};
function wT(a){a.ca=function(b){if(!b.defaultPrevented){if(b=a.enabled&&!yT(a))b=a.getEditor().Ma!==a.getEditor().ea;b&&a.g.toggleOpen()}};a.getEditor().getElement().addEventListener("click",a.ca)}g.getDisplayText=function(){return this.getEditor().text};function yT(a){var b=a.getElement().querySelectorAll(".gcim__buttons_container");return Array.from(b).some(function(c){return c.contains(a.getEditor().Ma)})}g.getElement=function(){return this.i};g.getHost=function(){return this.i};
g.getDropDownWindow=function(){return this.g};g.getData=function(){return this.m};function TS(a){if(xe.appendDropDownToBody){if(!a.sa){var b=document.querySelector(".gcim__popup-container");b||(b=document.createElement("div"),b.classList.add("gcim__popup-container"),document.body.appendChild(b));a.sa=b}a=a.sa}else a=a.getElement();return a}g.getEditor=function(){return this.va};g.clear=function(){return this.g.clear()};g.appendTag=function(a){return this.g.appendTag(a)};g.removeTag=function(a){return this.getEditor().removeTag(a)};
g.getDropDownWidth=function(){return this.g.getDropDownWidth()};g.getDropDownHeight=function(){return this.g.getDropDownHeight()};function xT(a){a.h?a.getEditor().g.readOnly=a.readOnly||!a.allowCustomTag&&"none"===a.autoFilter:a.getEditor().g.readOnly=a.readOnly||"none"===a.autoFilter&&!1===a.autoSelect}function zT(a){if(G(a)||""===a.trim())return a;if(-1!=a.indexOf("px")){var b=parseFloat(a);if(!isNaN(b))return b}return a}
p.Object.defineProperties(vT.prototype,{Ma:{configurable:!0,enumerable:!0,get:function(){return this.m.h}},h:{configurable:!0,enumerable:!0,get:function(){return"list"===this.m.dropDownType}},La:{configurable:!0,enumerable:!0,get:function(){return this.g.h}},componentName:{configurable:!0,enumerable:!0,get:function(){return"GcTagBox"}},items:{configurable:!0,enumerable:!0,get:function(){return this.h?this.m.i:this.La.items}},tagImageMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().tagImageMemberPath}},
tagTextMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().tagTextMemberPath}},autoFilter:{configurable:!0,enumerable:!0,get:function(){return this.getData().autoFilter}},readOnly:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().readOnly},set:function(a){a=H(a);this.getEditor().readOnly=a;this.g.setReadOnly(a);xT(this)}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().enabled},set:function(a){a=H(a);this.getEditor().enabled=
a}},value:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().value},set:function(a){this.g.setValue(a)}},text:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().text},set:function(a){a=lg(a);this.value=0===a.length?[]:a.split(this.separator)}},imageAlignment:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().imageAlignment},set:function(a){this.getEditor().imageAlignment=a}},showDropDownIfNoItems:{configurable:!0,enumerable:!0,get:function(){return this.getData().showDropDownIfNoItems},
set:function(a){a=H(a);this.getData().showDropDownIfNoItems=a}},container:{configurable:!0,enumerable:!0,get:function(){return this.Fa},set:function(a){this.Fa=a;this.getEditor().sf=a}},width:{configurable:!0,enumerable:!0,set:function(a){a=nd(a);null!==a&&(this.getElement().style.width=a,this.getEditor().refreshUI(-2))},get:function(){return this.getEditor().width}},height:{configurable:!0,enumerable:!0,set:function(a){a=nd(a);null!==a&&(this.getElement().style.height=a,this.getEditor().refreshUI(-2))},
get:function(){return this.getEditor().height}},watermarkNullText:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().watermarkNullText},set:function(a){a=lg(a);this.getEditor().watermarkNullText=a}},watermarkDisplayNullText:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().watermarkDisplayNullText},set:function(a){a=lg(a);this.getEditor().watermarkDisplayNullText=a}},tagTemplate:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().tagTemplate}},
displayMode:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().displayMode},set:function(a){a=I(LR,a);null!==a&&(this.getEditor().displayMode=a,"multiline"===a&&this.height<this.Ga?this.height=this.Ga:"singleline"===a&&(this.height=this.Ta))}},allowCopyTag:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().allowCopyTag},set:function(a){a=H(a);this.getEditor().allowCopyTag=a}},allowDragTag:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().allowDragTag}},
allowSelectTag:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().allowSelectTag},set:function(a){a=H(a);this.getEditor().allowSelectTag=a}},allowCustomTag:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().allowCustomTag},set:function(a){this.h&&(a=H(a),this.getEditor().allowCustomTag=a,xT(this))}},applyCustomTagKey:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().applyCustomTagKey},set:function(a){a=I(x,a);null!==a&&(this.getEditor().applyCustomTagKey=
a)}},separator:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().separator},set:function(a){a=lg(a);this.getEditor().separator=a}},focused:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().focused}},showImage:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().showImage}},minHeight:{configurable:!0,enumerable:!0,get:function(){return zT(this.getElement().style.minHeight)},set:function(a){if("string"!==typeof a||a)a=nd(a),null!==a&&(this.getElement().style.minHeight=
a)}},minWidth:{configurable:!0,enumerable:!0,get:function(){return zT(this.getElement().style.minWidth)},set:function(a){if("string"!==typeof a||a)a=nd(a),null!==a&&(this.getElement().style.minWidth=a)}},maxHeight:{configurable:!0,enumerable:!0,get:function(){return zT(this.getElement().style.maxHeight)},set:function(a){if("string"!==typeof a||a)a=nd(a),null!==a&&(this.getElement().style.maxHeight=a)}},maxWidth:{configurable:!0,enumerable:!0,get:function(){return zT(this.getElement().style.maxWidth)},
set:function(a){if("string"!==typeof a||a)a=nd(a),null!==a&&(this.getElement().style.maxWidth=a)}},tagValidator:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().tagValidator},set:function(a){this.h&&(this.getEditor().tagValidator=a)}},allowDropDownResize:{configurable:!0,enumerable:!0,get:function(){return"tree"!==this.m.dropDownType?this.m.h.allowResize:this.m.s.allowResize}},dropDownDisplayMemberPath:{configurable:!0,enumerable:!0,get:function(){return this.h?this.Ma.displayMemberPath:
this.La.displayMemberPath}},dropDownAlignmentMode:{configurable:!0,enumerable:!0,get:function(){return this.getData().dropDownAlignmentMode},set:function(a){a=I(ER,a);null!==a&&(this.getData().dropDownAlignmentMode=a)}},maxTagWidth:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().maxTagWidth}},uniqueTags:{configurable:!0,enumerable:!0,get:function(){return this.h?this.getEditor().uniqueTags:!0}},autoSelect:{configurable:!0,enumerable:!0,get:function(){return this.getData().autoSelect},
set:function(a){a=H(a);this.getData().autoSelect=a}},maxTagCount:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().maxTagCount}},bb:{configurable:!0,enumerable:!0,get:function(){return this.value.length}},showDropDown:{configurable:!0,enumerable:!0,get:function(){return this.g.showDropDown},set:function(a){a=H(a);a=this.h?a:!0;this.g.showDropDown=a}},allowResize:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().allowResize},set:function(a){a=H(a);this.getEditor().allowResize=
a}},floatingLabelText:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().floatingLabelText},set:function(a){this.getEditor().floatingLabelText=a}},floatingLabelType:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().floatingLabelType},set:function(a){this.getEditor().floatingLabelType=a}},floatingLabelDirection:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().floatingLabelDirection},set:function(a){this.getEditor().floatingLabelDirection=
a}},appendCustomTagToDropDown:{configurable:!0,enumerable:!0,get:function(){return this.m.appendCustomTagToDropDown},set:function(a){"boolean"===typeof a&&(this.m.appendCustomTagToDropDown=a)}},dropDownTree:{configurable:!0,enumerable:!0,get:function(){return this.h?null:this.g}},dropDownType:{configurable:!0,enumerable:!0,get:function(){return this.m.dropDownType}},helpContent:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().helpContent},set:function(a){this.getEditor().helpContent=
a}},showHelpButton:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().showHelpButton},set:function(a){this.getEditor().showHelpButton=a}},showClearButton:{configurable:!0,enumerable:!0,get:function(){return this.getEditor().showClearButton},set:function(a){this.getEditor().showClearButton=a}}});v("GcTagBox",vT);function AT(){}p.Object.defineProperties(AT,{appearanceStyle:{configurable:!0,enumerable:!0,get:function(){return BT},set:function(a){if(xe.g)throw Error("AppearanceStyle must be set before control initialization.");a:{for(var b in dj)if(dj[b]==a||dj[b].toString().toLowerCase()==a.toString().toLowerCase())break a;throw Error("Invalid enumeration: "+a);}BT!==a&&(BT=a,document.body.setAttribute("gcim-control-appearance",a))}}});var BT="classic";function CT(){return AT.appearanceStyle}
function DT(a){AT.appearanceStyle=a}window.GCIM.hasOwnProperty("appearanceStyle")||Object.defineProperty(window.GCIM,"appearanceStyle",{configurable:!1,enumerable:!0,get:CT,set:DT});var ET=window;"object"===typeof ET.GC?ET.GC.InputMan=ET.GCIM:ET.GC={InputMan:ET.GCIM};}.bind(window)()
;(function(a){if (typeof define === 'function') { define(function (require, exports) {exports.InputMan = a.InputMan;exports.__esModule = true;});} else if (typeof module !== 'undefined'&& module !== null) { module.exports = a;}})(GC||{});