-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtiger_min.js
More file actions
320 lines (320 loc) · 165 KB
/
tiger_min.js
File metadata and controls
320 lines (320 loc) · 165 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,a,c){b!=Array.prototype&&b!=Object.prototype&&(b[a]=c.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+b++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var a=0;return $jscomp.iteratorPrototype(function(){return a<b.length?{done:!1,value:b[a++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};$jscomp.iteratorFromArray=function(b,a){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var c=0,d={next:function(){if(c<b.length){var e=c++;return{value:a(e,b[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};
$jscomp.polyfill=function(b,a,c,d){if(a){c=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var e=b[d];e in c||(c[e]={});c=c[e]}b=b[b.length-1];d=c[b];a=a(d);a!=d&&null!=a&&$jscomp.defineProperty(c,b,{configurable:!0,writable:!0,value:a})}};$jscomp.polyfill("Array.prototype.keys",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
$jscomp.polyfill("Array.prototype.values",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(a,c){return c})}},"es8","es3");$jscomp.polyfill("Array.prototype.fill",function(b){return b?b:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}},"es6","es3");
var TigerJS=function(){var b=window;b.location.protocol.toLowerCase();this.include=function(a,d){var c=document.createElement("SCRIPT");d&&c.addEventListener("load",d);c.src=a;document.documentElement.appendChild(c)};this.type=function(a){var d;if("undefined"===typeof a||!a&&"string"!==typeof a&&!1!==a&&null!==a&&0!==a&&"object"!==typeof a)return"undefined";if(null===a)return"[object Null]";if("[object NamedNodeMap]"===Object.prototype.toString.call(a)||"[object NodeList]"===Object.prototype.toString.call(a)||
"[object HTMLCollection]"===Object.prototype.toString.call(a)||"[object HTMLAllCollection]"===Object.prototype.toString.call(a)||"[object HTMLPropertiesCollection]"===Object.prototype.toString.call(a)||"[object HTMLOptionsCollection]"===Object.prototype.toString.call(a)||"[object HTMLFormControlsCollection]"===Object.prototype.toString.call(a))return Object.prototype.toString.call(a).replace(/[\[\] ]*/g,"").replace("object","");if(a.nodeType){var c="HTMLHtmlElement HTMLHeadElement HTMLLinkElement HTMLTitleElement HTMLMetaElement HTMLBaseElement HTMLIsIndexElement HTMLStyleElement HTMLBodyElement HTMLFormElement HTMLSelectElement HTMLOptGroupElement HTMLOptionElement HTMLInputElement HTMLTextAreaElement HTMLButtonElement HTMLLabelElement HTMLFieldSetElement HTMLLegendElement HTMLUListElement HTMLOListElement HTMLDListElement HTMLDirectoryElement HTMLMenuElement HTMLLIElement HTMLDivElement HTMLParagraphElement HTMLHeadingElement HTMLQuoteElement HTMLPreElement HTMLBRElement HTMLBaseFontElement HTMLFontElement HTMLHRElement HTMLModElement HTMLAnchorElement HTMLImageElement HTMLObjectElement HTMLParamElement HTMLAppletElement HTMLMapElement HTMLAreaElement HTMLScriptElement HTMLTableElement HTMLTableCaptionElement HTMLTableColElement HTMLTableSectionElement HTMLTableRowElement HTMLTableCellElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLAudioElement HTMLCommandElement HTMLDetailsElement HTMLInputElement HTMLMeterElement HTMLLegendElement HTMLLIElement HTMLOutputElement HTMLSpanElement XMLDocument HTMLDocument".split(" "),
b=Object.prototype.toString.call(a).replace(/[\[\] ]*/g,"").replace("object","").replace(" ","");for(d=0;d<c.length;d++){if(-1<c[d].indexOf(b))return c[d];if("IMG"===a.nodeName)return"HTMLImageElement"}}if(a.__to_string&&-1!==a.__to_string().indexOf("[o"))return a.__to_string().replace(/[\[\] ]*/g,"").replace("object","");if(a.Node&&a.Node.__to_string&&a.Node.__to_string)return a.Node.__to_string().replace(/[\[\] ]*/g,"").replace("object","");if(/(Array|ArrayBuffer|DataView|Float32Array|Float64Array|Int8Array|Int16Array|Int32Array|Uint8Array|Uint8ClampedArray|Uint16Array|Uint32ArrayString|Date|Number|Object|Function|RegExp|Math|Boolean|Promise|Anonymous)/gi.test(Object.prototype.toString.call(a))&&
!a.nodeType)return Object.prototype.toString.call(a).replace(/[\[\] ]*/g,"").replace("object","")};this.has_key=function(a,d){for(var c in a)if(a.hasOwnProperty(c)&&c===d)return!0;return!1};this.has_value=function(a,d){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===d)return!0;return!1};this.mix=function(a,d,b){var c;if(T.is_function(a)){for(c in d)a.prototype[c]=d[c];return void 0===b?new a:new a(b)}for(c in d)a[c]=d[c];return a};this.aggregate=function(a,d,b,l){a="function"===typeof a?new a(l):a;
d="function"===typeof d?new d:d;var c=function(){};c.prototype=a;for(var e in d)a[e]&&b&&(c.prototype[e]=d[e]),a[e]||(c.prototype[e]=d[e]);return void 0===l?new c:new c(l)};this.extend=function(a,d){var c=[];d.unshift(a);for(a=0;a<d.length;a++)0<c.length&&(d[a].prototype=new c[c.length-1]),c[c.length]=d[a];return c[c.length-1]};this.keys=function(a){var d=[],c;for(c in a)d[d.length]=c;return d};this.values=function(a){var d=[],c;for(c in a)d[d.length]=a[c];return d};this.dump=function(a){var d=function(a){var d=
T.type(a)+" ==> \"' ...\n";for(var c="",b=0;3>b;b++)c+=" ";if(a&&"object"===typeof a)for(var e in a)try{d+=" "+c+" '"+e+"' => \""+("Function"===T.type(a[e])?T.type(a[e]):(new String(a[e])).replace(/[\n]/g,""))+'"\n'}catch(p){d+=" "+c+" '"+e+'\' => "undefined"\n'}return d};if(a.nodeType)return a=T.$(a.cloneNode(!0)),d(a);if(void 0===a.constructor)return d(a);T.type(a).replace(/^\s*((?:[\S\s]*\S)?)\s*$/,"$1");return function(a,c,b){var e="";c||(c=0);for(var l="",g=0;g<c+1;g++)l+=
" ";try{-1<a.constructor.toString().indexOf("Array")&&!b&&(e+="(ARRAY) ==> \"' ...\n"),-1<a.constructor.toString().indexOf("Array")&&b&&(e+=l+" '"+b+"' --\x3e (ARRAY) ...\n"),1<a.constructor.toString().indexOf("Object")&&!b&&(e+="(OBJECT) ==> \"' ...\n"),1<a.constructor.toString().indexOf("Object")&&b&&(e+=l+" '"+b+"' --\x3e (OBJECT) ...\n"),0!==a.constructor.toString().indexOf("function")||b||9!==a.constructor.toString().indexOf("(")||(e+="(OBJECT) ==> \"' ...\n"),0===a.constructor.toString().indexOf("function")&&
b&&9===a.constructor.toString().indexOf("(")&&(e+=l+" '"+b+"' --\x3e (OBJECT) ...\n")}catch(n){}if("object"===typeof a)for(var f in a)e=(b=a[f])&&b.nodeType?e+d(b):b&&"object"===typeof b&&b!==window?e+(" '"+f+"' => "+T.dump(b,c+50,f)):"function"===typeof b?e+(" "+l+" '"+f+'\' => "function(){}"\n'):e+(" "+l+" '"+f+"' => \""+b+'"\n');else e="===>"+a+"<===("+typeof a+")";return e}(a)};this.each=function(a,d,b){var c;if("Array"===
T.type(a)||"Arguments"===T.type(a)||"TigerJS.Iterator"===T.type(a)){var e=0;for(c=a.length;e<c;e++)b?d.call(new b,a[e],e):d(a[e],e)}else for(e in a)b?d.call(new b,a[e],e):d(a[e],e)};this.poll=function(a,d){function b(){T.poll(c,g)}var c=a,g=d;a=c();!0===a?g(a):setTimeout(b,50)};this.periodic=function(a,d,b,l,g){var c=d||null,e=g||null,p=b||null,f=0;var n=setInterval(function(){if(f&&f===e)clearInterval(n);else{var d=a();d&&d===p?(clearInterval(n),c&&c(d)):++f}},l||100)};this.constant=function(a){return function(){return a}};
this.and=function(a){var d=arguments,b=d.length;return function(){for(var a=0;a<b;a++)if(!d[a].apply(this|arguments))return!1;return!0}};this.compose=function(a){var d=arguments,b=d.length;return function(){var a;b&&(a=d[b-1].apply(this,arguments));for(var c=b-2;0<=c;c--)a=d[c].call(this,a);return a}};this.sequence=function(a){var d=arguments,b=d.length;return function(){for(var a,c=0;c<b;c++)a=d[c].apply(this,arguments);return a}};this._isDOCUMENTReady=!1;this.dom_ready=function(){return null!==
document.readyState.match(/interactive/gi)||null!==document.readyState.match(/complete/gi)};this.write_cookie=function(a,d,b,l,g){d=encodeURIComponent(d);a=a+"="+d;b&&(a+=";domain="+b);l&&(a+=";path="+l);g&&(b=new Date,b.setTime(864E5*g+b.getTime()),a+=";expires="+b.toGMTString());document.cookie=a};this.get_cookie=function(a){a+="=";for(var d=0|endValuePos;d<document.cookie.length;){var b=d+a.length;if(document.cookie.substring(d,b)===a)return endValuePos=document.cookie.indexOf(";",b),-1===endValuePos&&
(endValuePos=document.cookie.length),decodeURIComponent(document.cookie.substring(b,endValuePos));d=document.cookie.indexOf(" ",d)+1;if(0===d)break}return null};this.delete_cookie=function(a){this.write_cookie(a,"","","",-1)};this.http_build_query=function(a,d,b){var c,e=[];if(a.nodeType&&1===a.nodeType&&"form"===a.tagName.toLowerCase()){e="";d=0;for(b=a.elements.length;d<b;d++)if("select"!==a.elements[d].tagName.toLowerCase()&&(e+=a.elements[d].name+"="+a.elements[d].value,e+="&"),"select"===a.elements[d].tagName.toLowerCase()){var h=
0;for(c=a.elements[d].options.length;h<c;h++)a.elements[d].options[h].selected&&(e+=a.elements[d].name+"="+a.elements[d].options[h].value,e+="&")}return e}var m=function(a,d,b){var c,k=[];!0===d?d="1":!1===d&&(d="0");if(null!==d&&"object"===typeof d){for(c in d)null!==d[c]&&k.push(m(a+"["+c+"]",Object.prototype.toString.call(d[c]),b));return k.join(b)}return"function"!==typeof d?encodeURIComponent(a)+"="+encodeURIComponent(d):""};b||(b="&");for(c in a)h=a[c],d&&!isNaN(c)&&(c=String(d)+c),e.push(m(c,
h,b));return e.join(b)};this.is_empty=function(a){for(var d in a)if(d)return!1;return!0};this.is_array=function(a){return"Array"===this.type(a)};this.is_number=function(a){return"Number"===this.type(a)};this.is_string=function(a){return"String"===this.type(a)};this.is_function=function(a){return"Function"===this.type(a)};this.is_date=function(a){a=new Date(a);return null===a||"NaN"===a.toString()||"Invalid Date"===a.toString()?!1:!0};this.is_regexp=function(a){return"Regexp"===this.type(a)};this.is_boolean=
function(a){return"Boolean"===this.type(a)};this.is_object=function(a){return"Object"===this.type(a)};this.is_enumerable=function(a){return"Array"===T.type(a)||"Nodelist"===T.type(a)||"Object"===T.type(a)||-1!==T.type(a).indexOf("Collection")};this.isurl=function(a){if(-1===a.indexOf("."))return!1;var d=/^([-a-z0-9._~:@!$&'()*+,;=\/]|%[0-9a-f]{2})*$/i,b=/^([-a-z0-9._~:@!$&'()*+,;=?\/]|%[0-9a-f]{2})*$/i,c=/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/i;
var g=T.Parser.parse_uri(a);a=g.path;var h=g.query;g=g.host;return a&&!a.match(d)||h&&!h.match(b)||g&&!g.match(c)?!1:!0};this.is_ip=function(a){return/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.test(a)?(a=a.split(/\./),255<a[0]||255<a[1]||255<a[2]||255<a[3]||0===a[0]&&0===a[1]&&0===a[2]&&0===a[3]?!1:!0):this.ipv6(a)?!0:!1};this.ipv6=function(a){if(3>a.length)return"::"===a;if(0<a.indexOf(".")){var d=a.last_index_of(":");if(!d||!/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.test(a.substr(d+1)))return!1;
a=a.substr(0,d)+":0:0"}if(0>a.indexOf("::"))return a=a.match(/^(?:[a-f0-9]{1,4}:){7}[a-f0-9]{1,4}$/i),null!==a;a:{var b=void 0,c=void 0,g=0;d=a+"";var h=":";isNaN(b)&&(b=0);isNaN(c)&&(c=0);for(b--;-1!==!!(b=d.indexOf(h,b+1));)if(0<c&&b+h.length>c){d=!1;break a}else g++;d=g}return d?(a=a.match(/^(?::|(?:[a-f0-9]{1,4}:)+):(?:(?:[a-f0-9]{1,4}:)*[a-f0-9]{1,4})?$/i),null!==a):!1};this.is_email=function(a){return 0<T.Parser.parse_address(NaN|a).length};this.clone=function(a){return this.aggregate({},a,
!0)};var a=[];this.register_startup_functions=function(){T.each(arguments,function(b){a[a.length]=b})};this.execute_startup_routines=function(){try{T.each(a,function(a){setTimeout(a,10)})}catch(c){}};this.dim=function(){return{width:document.documentElement.clientWidth||b.innerWidth||document.documentElement.scrollWidth||0,height:document.documentElement.clientHeight||b.innerHeight||document.documentElement.scrollHeight||0}};this.parse_query=function(a){a=a||location.search;var d={};a=("?"===a[0]?
a.substr(1):a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("=");d[decodeURIComponent(c[0])]=decodeURIComponent(c[1]||"")}return d};this.hash=function(a,d){var b=T.Iterator(a),c=T.Iterator(d),g={};b.forward_iterator(function(a){g[a]=c.size()&&c[b.key]?c[b.key]:!0});return g};this.chain=function(a){var d=arguments;return new function(){this.fnIterator=T.Iterator();this.halt=!1;this.pauseEventFunction=null;this.i=this.key=0;this.setPauseEventCallBack=function(a){this.pauseEventFunction=a};
this.stop=function(){this.halt=!1;this.i=0};this.resume=function(){0<this.i&&(this.halt=!1,this.run())};this.pause=function(){this.halt=!0};for(var a=0;a<d.length;a++)this.fnIterator.add(d[a]);this.run=function(){if(!this.halt&&this.i<this.fnIterator.size()){if(T.is_object(this.fnIterator[this.i])){if(this.fnIterator[this.i].fn.apply(this.fnIterator[this.i].cn?this.fnIterator[this.i].cn:window,this.fnIterator[this.i].args),T.has_key(this.fnIterator[this.i],"autoContinue")&&!1===this.fnIterator[this.i].autoContinue){this.pause();
this.i++;this.pauseEventFunction&&this.pausedCallbackCall();return}}else this.fnIterator[this.i]();this.i++;this.run()}};this.pausedCallbackCall=function(){this.pauseEventFunction(this.i,this)}}};this.delay=function(a,d,b,l,g){var c=!1;d=d||window;var e=function(){if(!c)if("String"===T.type(b)){if(!d[b])throw"InvalidMethodError <> TigerJS.delaythe execution context object doesn't contain a method named ['"+b+"']";d[b].apply(d,l)}else b.apply(d,l)};return{id:g?setInterval(e,a):setTimeout(e,a),interval:g||
!1,cancel:function(){c=!0;this.interval?clearInterval(this.time_id):clearTimeout(this.time_id)}}};this.create=function(a){return document.createRange().createContextualFragment?document.createRange().createContextualFragment(a):(new DOMParser).parseFromString(a,"text/html").body.firstChild};this.$c=function(a,d){return d&&d.nodeType?T.nodes({childNodes:d,_class:a}):T.nodes({_class:a})};this.addHasOwnProperty=function(){var a=function(a){return"undefined"===typeof this||"undefined"===typeof a||"undefined"===
typeof this[a]?!1:this[a]!==this.constructor.prototype[a]};return function(d){try{if(d.prototype.hasOwnProperty=a,"function"!==typeof d.hasOwnProperty)throw 0;}catch(e){d.hasOwnProperty=a}}}();this.__to_string=function(){return"[object TigerJS]"}},T=TigerJS=new TigerJS;T.ERROR_REPORTING=-1<window.location.href.indexOf("localhost")||-1<window.location.href.indexOf("127.0.0.1")?1:0;
window.onerror=function(b,a,c){T.ERROR_REPORTING&&(-1<b.indexOf("<>")?(document.write(b.substring(b.indexOf(":")+1,b.indexOf("<>"))+":"),document.write("<br/>"),document.write(b.substring(b.indexOf("<>")+2))):document.write(b),document.write("<br/>"),document.write("In file :"+a),document.write("<br/>"),document.write("On Line"+c),document.close());return!0};TigerJS.create_xml=function(){return document.implementation.createDocument("","",null)};
TigerJS.save_xml=function(b){var a=(new XMLSerializer).serializeToString(b);-1===a.indexOf("<?xml")&&"XMLDocument"===T.type(b)&&(a='<?xml version="1.0" encoding="UTF-8"?>'+a);return a};TigerJS.parse_xml=function(b){try{return(new DOMParser).parseFromString(b,"application/xml")}catch(a){}};
TigerJS.add_css_rules=function(b,a){var c=document.styleSheets,d;for(d=0;d<c.length;d++)c[d].href&&1<c[d].href.indexOf("tiger.min")&&(c=c[d]),"insertRule"in c?c.insertRule(b+"{"+a+"}",0):"addRule"in c&&c.addRule(b,a,0);return this};TigerJS.add_css_blob=function(b){var a=document.createElement("style");try{a.innerHTML=b}catch(c){a.text=b}document.documentElement.firstElementChild.appendChild(a);return this};TigerJS.Parser={parse_uri:function(b){var a=T.Parser.options;b=a.parser[a.strictMode?"strict":"loose"].exec(b);for(var c={},d=14;d--;)c[a.key[d]]=b[d]||"";c[a.q.name]={};c[a.key[12]].replace(a.q.parser,function(d,b,g){b&&(c[a.q.name][b]=g)});return c},options:{strictMode:!1,key:"source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},parse_address:function(b,a){var c=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/gi,
d=/^(?:(?:https?|ftps?):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|\[(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\]|localhost|(?:xn--[a-z0-9\-]{1,59}|(?:(?:[a-z\u00a1-\uffff0-9]+-?){0,62}[a-z\u00a1-\uffff0-9]{1,63}))(?:\.(?:xn--[a-z0-9\-]{1,59}|(?:[a-z\u00a1-\uffff0-9]+-?){0,62}[a-z\u00a1-\uffff0-9]{1,63}))*(?:\.(?:xn--[a-z0-9\-]{1,59}|(?:[a-z\u00a1-\uffff]{2,63}))))(?::\d{2,5})?(?:\/[^\s]*)?$/ig,
e=[];if("web"===b)for(c=a.split(/[\s;,]+/),a=0;a<c.length;a++){if(b=c[a].match(d))e[e.length]=b[0]}else for(d=a.split(/[\s;,]+/),a=0;a<d.length;a++)if(b=d[a].match(c))e[e.length]=b[0];if(null===e)return[];e.sort();return e},parse_scripts:function(b,a){a=a||!1;var c=/<s*script[^>]*>\n*\t*\f*\r*(.*?)<s*\/s*script>/gi,d=[];do d[d.length]=c.exec(b);while(d[d.length-1]);for(var e=0;e<d.length-1;e++){var l=document.createElement("script");try{if(-1<d[e][0].indexOf("src=")){var g=d[e][0].replace(/"/g,"'");
l.src=/<\s*\w*\s*src\s*=\s*'?\s*([\w\s%#\/\.;:_-]*)\s*'?.*?>/.exec(g)[1]}l.innerHTML=d[e][1]||";"}catch(h){l.text=d[e][1]||";"}a&&document.documentElement.firstChild.appendChild(l)}return b.replace(c,"")},parse_number:function(b){var a=/^(([NaN|+|-]?(?:(?:\d+|\d*\.\d+)(?:[E|e][+|-]?\d+)?|Infinity)))$/;b=b.split(/[\s;,]+/);var c,d,e=[];for(d=0;d<b.length;d++)if(c=b[d].match(a))e[e.length]=c[0];return e},parse_text_only:function(b){for(var a=this.parse_number(b),c=0;c<a.length;c++)b=b.replace(a[c],
"");return b.match(/(\w)+(\W)+/gi).join(" ")},parse_any:function(b,a){var c=b.stripos("<"+a),d=b.stripos(a+">",c);return b.substring(c,c+d+1+a.length)},parse_css:function(b,a){a=a||!1;var c=/<s*style[^>]*>\n*\t*\f*\r*(.*?)<s*\/s*style>/gi,d=[],e=/<s*link.*?>/g,l;do d[d.length]=c.exec(b);while(d[d.length-1]);var g=b.match(e);for(l=0;l<d.length-1;l++){var h=document.createElement("style");try{h.innerHTML=d[l][1]||";"}catch(m){h.text=d[l][1]||";"}a&&document.documentElement.firstChild.appendChild(h)}for(l=
0;l<g.length;l++)h=document.createElement("link"),-1<g[l].indexOf("text/css")&&(d=g[l].replace(/"/g,"'"),h.href=/href='([^'"]+)/g.exec(d)[1],h.type="text/css",h.rel="stylesheet"),a&&document.documentElement.firstChild.appendChild(h);return b.replace(c,"").replace(e,"")}};TigerJS.Map=function(){return new function(){this._map=[];this.put=function(b,a){if(!T.is_string(b)&&!T.is_number(b)||this.containsKey(b))return!1;this._map[this._map.length]=[];this._map[this._map.length-1][0]=b;this._map[this._map.length-1][1]=a;return!0};this.containsKey=function(b){for(var a=0;a<this._map.length;a++)if(this._map[a][0]===b)return!0;return!1};this.containsValue=function(b){for(var a=0;a<this._map.length;a++)if(this._map[a][1]===b)return!0;return!1};this.get=function(b){if(!this.containsKey(b))return!1;
for(var a=0;a<this._map.length;a++)if(this._map[a][0]===b)return this._map[a][1];return!1};this.keys=function(){for(var b=[],a=0;a<this._map.length;a++)b[b.length]=this._map[a][0];return b};this.values=function(){for(var b=[],a=0;a<this._map.length;a++)b[b.length]=this._map[a][1];return b};this.size=function(){var b=0,a;for(a in this._map)++b;return b};this.clear=function(){this._map=[]};this.remove=function(b){if(!this.containsKey(b))return!1;for(var a=0;a<this._map.length;a++)this._map[a][0]===
b&&delete this._map[a];b=[];for(a=0;a<this._map.length;a++)this._map[a]&&(b[b.length]=this._map[a]);this._map=b;return!0};this.replace=function(b,a){if(!this.containsKey(b))return!1;for(var c=0;c<this._map.length;c++)this._map[c][0]===b&&(this._map[c][1]=a);return!0};this.replace_if_value=function(b,a,c){if(!this.containsKey(b))return!1;for(var d=0;d<this._map.length;d++)if(this._map[d][0]===b){if(this._map[d][1]!==a)break;this._map[d][1]=c;return!0}return!1};this.fetch_key=function(){return T.Iterator(this.keys())};
this.fetch_values=function(){return T.Iterator(this.values())};this.__to_string=function(){return"[object TigerJS.Map]"}}};TigerJS.Iterator=function(b){var a=b||[];return(new function(){this.obj=[];var b;this.obj.key=0;try{for(b in a)if(a.length&&!T.is_object(a)){if(T.is_number(parseInt(b))||"0"===b)this.obj[this.obj.length]=a[b]}else T.is_object(a)&&(this.obj[this.obj.length]=a[b])}catch(d){}try{if(0===this.obj.length)for(b=0;b<a.length;b++)this.obj[this.obj.length]=a.charAt?a.charAt(b):a[b]}catch(d){}this.obj.size=function(){return this.length};this.obj.is_empty=function(){return!this.length};this.obj.empty=function(){for(var a=
0;a<this.length;a++)this[a]=null;this.splice(0,this.length);return this};this.obj.contains=function(a){return this.indexOf(a)||0===this.indexOf(a)?!0:!1};this.obj.add=function(a,b){b?this.unshift(a):this.push(a);return this};this.obj.add_all=function(a){var b="_null_";for(b in a)a.length&&!T.is_object(a)?(T.is_number(parseInt(b))||"0"===b)&&this.push(a[b]):this.push(a[b]);try{if("_null_"===b)for(b=0;b<a.length;b++)this[this.length]=a.charAt?a.charAt(b):a[b]}catch(l){}return this};this.obj.add_r=function(a,
b,c){var d=!1,e;if(T.is_object(a))if(b)for(e in a){if(e===b&&(d=!0),d&&(this.add(a[e]),c&&e===c))break}else for(e in a){if(this.add(a[e]),c&&e===c)break}else if(b||0===b)for(e=0;e<a.length&&(e===b-1&&(d=!0),!d||(this.add(a[e]),!c||e!==c-1));e++);else for(e=0;e<a.length&&(this.add(a[e]),!c||e!==c-1);e++);return this};this.obj.insert_at=function(a,b){var d;if(b>=this.size())return this.add_all(a);for(d=0;d<a.length;d++,b++)this.splice(b,0,a[d]);return this};this.obj.current=function(){return this[this.key]};
this.obj.next=function(){if(this.is_empty())return!1;var a=this.key;if(++a>this.size()-1)return!1;this.key=a;return!0};this.obj.next_all=function(a){a=a||this.length-this.key;for(var b=[],d=this.key;b.length<a;d++)b[b.length]=this[d];return TigerJS.Iterator(b)};this.obj.prev=function(){if(this.is_empty()||0===this.key)return!1;this.key=--this.key;return!0};this.obj.merge=function(a){for(var b=0;b<arguments.length;b++)this.add_all(arguments[b]);return this};this.obj.prev_all=function(a){a=a||this.key+
1;for(var b=[],d=this.key;b.length<a;d--)b[b.length]=this[d];return TigerJS.Iterator(b)};this.obj.rewind=function(){this.key=0;return this};this.obj.is_index=function(a){return this[a]||0===this[a]?!0:!1};this.obj.set=function(a,b){if(this.is_empty()||!this.is_index(a))return this;this[a]=b;return this};this.obj.at=function(a){if(!this.is_empty()&&this.is_index(a))return this[a]};this.obj.duplicate=function(){if(this.is_empty())return this;var a=this.peek();this.push(a);return this};this.obj.rotate=
function(a){if(a>this.size()||0===this.length)return this;var b=this.slice(0,a);b.reverse();for(var d=0;d<a;d++)this[d]=b[d];return this};this.obj.rand=function(){if(this.is_empty())return null;var a=Math.round(Math.random()*this.length-1);return this[0>a?0:a]};this.obj.unique=function(){if(this.is_empty())return this;for(var a=T.Iterator(),b=0,c;a.contains(c=this.at(b))||a.add(c),b!==this.length-1;)++b;this.empty();this.add_all(a);return this};this.obj.unset=function(a){if(this.is_empty())return this;
this.splice(a,1);return this};this.obj.to_array=function(){return[].concat(this)};this.pop=function(){};this.push=function(a){};this.shift=function(){};this.unshift=function(a){};this.reverse=function(){};this.join=function(a){};this.splice=function(a,b,c){};this.obj.concat=function(a){return this.merge.apply(this,arguments)};this.slice=function(a,b){return this.is_empty()?this:TigerJS.Iterator(this.slice(a,b))};this.obj.clone=function(){return this.is_empty()?TigerJS.Iterator():TigerJS.Iterator(this)};
this.obj.walk=function(a,b){if(this.is_empty())return this;var d=this.key;this.key=0;do a(this.current(),this.key,b||null);while(this.next());this.key=d;return this};this.obj.walk_recursive=function(a,b){if(this.is_empty())return this;var d=this.key;this.key=0;do{for(var c in this.current())if(T.is_enumerable(this.current())&&(TigerJS.Iterator(this.current()).walk_recursive(a,b||null),!this.next()))return this;T.is_enumerable(this.current())||a(this.current(),b||null)}while(this.next());this.key=
d;return this};this.obj.peek=function(){return this.is_empty()?null:this[0]};this.obj.last=function(){return this.is_empty()?null:this[this.length-1]};this.obj.indexOf=function(a){if(this.is_empty())return!1;for(var b=0,d=this.length;b<d;b++)if(this[b]===a)return b;return!1};this.obj.index_of=function(a){return this.indexOf(a)};this.obj.str_index_of=function(a){if(this.is_empty())return-1;for(var b=0,d=this.length;b<d;b++)if(this[b].indexOf&&-1<this[b].indexOf(a))return b;return-1};this.obj.last_index_of=
function(a){if(this.is_empty())return!1;for(var b=-1,d=0,c=this.length;d<c;d++)this[d]===a&&(b=d);return b};this.obj.str_last_index_of=function(a){for(var b=-1,d=0,c=this.length;d<c;d++)this[d].indexOf&&-1<this[d].indexOf(a)&&(b=d);return b};this.obj.fill=function(a,b,c){try{var d;if(0>!!(d=c||this.length))return this;for(;a;)T.is_function(b)?this.splice(d,0,b()):this.splice(d,0,b),--a,d+=1;return this}catch(h){return this}};this.obj.even=function(){if(this.is_empty())return T.Iterator();var a=[],
b=[].concat(this),c;for(c in b)0!==c&&c%2||(a[a.length]=b[c]);return T.Iterator(a)};this.obj.odd=function(){if(this.is_empty())return T.Iterator();var a=[],b=[].concat(this),c;for(c in b)0<c&&c%2&&(a[a.length]=b[c]);return T.Iterator(a)};this.obj.some=function(a){if(this.is_empty())return!1;var b=this.key;this.key=0;var d=T.Iterator([].concat(this));do if(a(d.current()))return!0;while(d.next());this.key=b;return!1};this.obj.every=function(a){if(this.is_empty())return!1;var b=this.key;this.key=0;var d=
T.Iterator([].concat(this));do if(!a(d.current()))return!1;while(d.next());this.key=b;return!0};this.obj.compact=function(){if(this.is_empty())return T.Iterator();var a=this.key;this.key=0;var b=TigerJS.Iterator();do null!==this.current()&&void 0!==this.current()&&b.add(this.current());while(this.next());this.key=a;return b};this.obj.flatten=function(){if(this.is_empty())return T.Iterator();var a=[];this.compact().walk_recursive(function(b){a[a.length]=b});this.empty();this.add_all(a);this.key=0;
return this};this.obj.without=function(a){if(this.is_empty())return T.Iterator();a=T.Iterator(a);var b=T.Iterator().add_all(this);for(this.empty();!1!==b.index_of(a.current());)b.unset(b.index_of(a.current())),b.index_of(a.current())||a.next();this.add_all(b.compact());return this};this.obj.map=function(a){if(this.is_empty())return T.Iterator();var b=this.key;this.key=0;var d=[];do d[d.length]=a(this.current());while(this.next());this.key=b;return TigerJS.Iterator(d)};this.obj.filter=function(a){if(this.is_empty())return T.Iterator();
var b=this.key,d=[];this.key=0;do a(this.current())&&(d[d.length]=this.current());while(this.next());this.key=b;return TigerJS.Iterator(d)};this.obj.reject=function(a){if(this.is_empty())return T.Iterator();var b=this.key;this.key=0;var d=[];do a(this.current())||(d[d.length]=this.current());while(this.next());this.key=b;return TigerJS.Iterator(d)};this.obj.replace=function(a){if(this.is_empty())return T.Iterator();var b=this.key,d;for(d in arguments){this.key=0;var c=TigerJS.Iterator(arguments[d]);
do this[this.key]=c.current(),this.key++;while(c.next())}this.key=b;return this};this.obj.replace_from=function(a,b){if(this.is_empty())return T.Iterator();var d=this.key;if(0>a||a>this.size-1)return this;for(var c=1;c<arguments.length;c++){this.key=a;var e=TigerJS.Iterator(arguments[c]);do this[this.key]=e.current(),this.key++;while(e.next())}this.key=d;return this};this.obj.range=function(a,b,c){if(!a||!b)return this.clone();var d,e=T.Iterator();if(T.is_number(a))if(a<b)for(e.add(a);e.last()<b&&
!((c&&c+e.last())>b||e.last()+1>b);)e.add(c?c+a++:a++);else if(a>b)for(e.add(a);a>=b&&!((c&&e.last()-c)<b||e.last()-1<b);)e.add(c?a-- -c:a--);if(T.is_string(a))if(a.charCodeAt(0)<b.charCodeAt(0))for(e.add(a),a=a.charCodeAt(0),d=b.charCodeAt(0);e.last().charCodeAt(0)<b.charCodeAt(0)&&!(c&&c+e.last().charCodeAt(0)>d||e.last().charCodeAt(0)+1>d);)e.add(c?String.fromCharCode(c+a++):String.fromCharCode(a++));else if(a.charCodeAt(0)>b.charCodeAt(0))for(e.add(a),a=a.charCodeAt(0),d=b.charCodeAt(0);a>=d&&
!((c&&e.last().charCodeAt(0)-c)<d||e.last().charCodeAt(0)-1<d);)e.add(c?String.fromCharCode(e.last().charCodeAt(0)-c):String.fromCharCode(a--));return e.unique()};this.obj.intersect=function(a){if(this.is_empty())return T.Iterator();var b=T.Iterator();a=T.Iterator(a);do this.contains(a.current())&&b.add(a.current());while(a.next());return b};this.obj.diff=function(a){if(this.is_empty())return T.Iterator();var b=this.key,d=T.Iterator();a=T.Iterator(a);this.key=0;do a.contains(this.current())||d.add(this.current());
while(this.next());this.key=b;return d};this.obj.is_subset=function(a){a=T.Iterator(a);do if(!this.contains(a.current()))return!1;while(a.next());return!0};this.obj.is_superset=function(a){var b=this.key;a=T.Iterator(a);this.key=0;do if(!a.contains(this.current()))return!1;while(this.next());this.key=b;return!0};this.obj.shuffle=function(){var a=T.Iterator([].concat(this));this.empty();for(var b=0,c=a.length;b<c;b++)this[b]=a.rand(),a.unset(a.indexOf(this[b]));return this};this.obj.partition=function(a){if(this.is_empty())return T.Iterator();
var b=this.key,d=[],c=[];this.key=0;do a(this.current())?d[d.length]=this.current():a(this.current())||(c[c.length]=this.current());while(this.next());this.key=b;return TigerJS.Iterator().add(d).add(c)};this.obj.sort_by=function(a,b){if(!a||!b&&0!==b)return a?[]:void 0;for(var d=T.Iterator(),c=[],e=0,m=a.length;e<m;e++)d[e]=a[e][b];T.is_string(d[0])?d.sort():d.sort(function(a,b){return a-b});do for(e=0;e<a.length;e++)a[e][b]===d.current()&&c.push(a[e]);while(d.next());return c};this.obj.advance=function(a,
b){if(this.is_empty())return T.Iterator();if(!a)return this;if(b){for(;0<this.key&&a;)this.key--,a--;return this}for(;this.key<this.length-1&&a;)this.key++,a--;return this};this.obj.forward_iterator=function(a,b,c){if(this.is_empty())return this;if(!T.is_function(a))throw err_str=" WrongArgumentTypeError<> Method TigerJS.Iterator#forward_iteratorExpects a function as its first argument, * "+T.type(a)+" * given",Error(err_str);var d=this.key;this.key=0;do b&&(this.key+=b-1),a.apply(this,[this.current()].concat(c||
[])),++this.key;while(this.key<this.size());this.key=d;return this};this.obj.reverse_iterator=function(a,b,c){if(this.is_empty())return this;if(!T.is_function(a))throw err_str=" WrongArgumentTypeError<> Method TigerJS.Iterator#reverse_iteratorExpects a function as its first argument, * "+T.type(a)+" * given",Error(err_str);var d=this.key;this.key=this.size()-1;do a.apply(this,[this.current()].concat(c||[])),b&&(this.key-=b-1);while(this.prev());this.key=d;return this};this.obj.random_access_iterator=
function(a,b){if(this.is_empty())return this;if(!T.is_function(a))throw err_str=" WrongArgumentTypeError<> Method TigerJS.Iterator#random_access_iteratorExpects a function as its first argument, * "+T.type(a)+" * given",Error(err_str);var c=this.clone();do{var d=c.rand();a.apply(this,[d].concat(b||[]));c.unset(c.indexOf(d))}while(c.size());return this};this.obj.timed_iterator=function(a,b){function c(){d<=e&&(a(m[d++]),setTimeout(c,b))}if(this.is_empty())return this;if(!T.is_function(a))throw err_str=
" WrongArgumentTypeError<> Method TigerJS.Iterator#timed_iteratorExpects a function as its first argument, * "+T.type(a)+" * given",Error(err_str);if(!T.is_number(b))throw err_str=" WrongArgumentTypeError<> Method TigerJS.Iterator#timed_iteratorExpects an integer as its second argument, * "+T.type(b)+" * given",Error(err_str);var d=0,e=this.size()-1,m=this;setTimeout(c,b);return this};this.obj.unset_r=function(a){if(this.is_empty())return this;for(var b=a[1]-a[0]+1;b;)this.unset(a[0]),--b;return this};
this.obj.unset_r_if=function(a,b){if(this.is_empty())return this;var c=this.clone();c.key=a[0];do b(c.current())&&delete c[c.key];while(c.next()&&c.key<=a[1]);return this.empty().add_all()};this.obj.unset_if=function(a,b){if(this.is_empty())return this;b(a)&&this.splice(a,1);return this};this.obj.equal=function(a,b){if(this.size()!==(a=T.Iterator(a)).size())return!1;var c=this.key;this.key=b||0;do if(this.current()!==a[this.key])return!1;while(this.next());this.key=c;return!0};this.obj.swap=function(a,
b){var c=this.clone(),d=a.clone();if(b)for(c=a.clone(),b[1]=b[1]?b[1]:this.size(),d=b[0];d<=b[1];d++)a[d]=this[d],this[d]=c[d];else a.empty(),a.merge(c),this.empty(),this.merge(d);return this};this.obj.ipos=function(a,b){var c=this.key;b&&(this.sort(function(a,b){return a-b}),c=0);do if(T.is_number(this.current())&&this.current()>=a-1)return this.last_index_of(this.current())+1;while(this.next());this.key=c;return this};this.obj.sum=function(){if(this.is_empty())return Number.NaN;var a=0,b=this.key,
c=!0;this.key=0;do T.is_number(this.current())&&(a+=this.current(),c=!1);while(this.next());this.key=b;return c?Number.NaN:a};this.obj.product=function(){if(this.is_empty())return Number.NaN;var a=1,b=this.key,c=!0;this.key=0;do T.is_number(this.current())&&(a*=this.current(),c=!1);while(this.next());this.key=b;return c?Number.NaN:a};this.obj.__to_string=function(){return"[object TigerJS.Iterator]"}}).obj};String=function(){return String}();String.prototype.escQuote=function(){return this.replace(/'/g,"\\'").replace(/"/g,'\\"')};String.prototype.truncate=function(b,a){b=b?b:20;a=a||"...";var c=this.toString();if(1>b)return"";b<=this.length&&(c=this.toString().substring(0,b).insert_ch(a));return c};String.prototype.unEscQuote=function(){return this.replace(/\\'/g,"'").replace(/\\"/g,'"')};
String.prototype.explode=function(b,a){for(var c=0,d=[];c<this.length;)for(var e=c;e<this.length;e++){if(a&&d.length===a-1&&c<this.length-1)return d[d.length]=this.substring(c),d;if(this.charAt(e)===b&&e===this.length-1)return d[d.length]=this.substring(c,e),d;if(this.charAt(e)===b&&0===e)c++;else if(this.charAt(e)===b&&e!==this.length-1&&(d[d.length]=this.substring(c,e),c=e+1),e===this.length-1)return d[d.length]=this.substring(c,this.length),d}return d};
String.prototype.implode=function(b,a){var c="",d;for(d in a)parseInt(d)===a.length-1?c+=a[d]:c+=a[d]+b;return c};String.prototype.count_ch=function(b){b=T.Iterator(b||this);var a=T.Map();do a.containsKey(b.current())?a.replace(b.current(),a.at(b.current())+1):a.put(b.current(),1);while(b.next());b=a.keys();var c=a.values(),d=[];for(a=0;a<c.length;a++)d[d.length]=[b[a],c[a]];return d};
String.prototype.str_replace=function(b,a,c,d){a=a||this;if(T.is_string(b)&&T.is_string(c))if(T.is_array(a)){var e=0;var l=new T.Iterator(a);do{var g=d?l.current().replace(new RegExp(b,"g"),c):l.current().replace(new RegExp(b,"gi"),c);l.set(e,g);e++}while(l.next());g=l.to_array()}else g=d?a.replace(new RegExp(b,"g"),c):a.replace(new RegExp(b,"gi"),c);if(T.is_array(b)&&T.is_string(c))if(T.is_array(a)){l=T.Iterator(a);do for(e=0;e<b.length;e++)g=d?l.current().replace(new RegExp(b[e],"g"),c):l.current().replace(new RegExp(b[e],
"gi"),c),l.set(l.key,g);while(l.next());g=l.to_array()}else for(e=0;e<b.length;e++)g=d?0<e?g.replace(new RegExp(b[e],"g"),c):a.replace(new RegExp(b[e],"g"),c):0<e?g.replace(new RegExp(b[e],"gi"),c):a.replace(new RegExp(b[e],"gi"),c);if(T.is_array(b)&&T.is_array(c))if(T.is_array(a)){l=T.Iterator(a);do for(e=0;e<b.length;e++)g=d?l.current().replace(new RegExp(b[e],"g"),c[e]):l.current().replace(new RegExp(b[e],"gi"),c[e]),l.set(l.key,g);while(l.next());g=l.to_array()}else for(e=0;e<b.length;e++)g=d?
0<e?g.replace(new RegExp(b[e],"g"),c[e]):a.replace(new RegExp(b[e],"g"),c[e]):0<e?g.replace(new RegExp(b[e],"gi"),c[e]):a.replace(new RegExp(b[e],"gi"),c[e]);return g};
String.prototype.to_case=function(b){var a=this.toString();switch(b){case "-d":return T.Iterator(a).forward_iterator(function(a){a.toLowerCase()!==a&&(this[this.key]=a.toLowerCase(),this.insert_at("-",this.key))}).join("");case "-cm":a=a.split("-");var c=a[0];for(b=1;b<a.length;b++)c+=a[b].charAt(0).toUpperCase()+a[b].substring(1);return c;case "-uf":return c.set(0,a.charAt(0).toUpperCase()),c.join("");case "-ufl":return c=T.Iterator(a).forward_iterator(function(a){this[this.key]=a.toLowerCase()}),
c.set(0,a.charAt(0).toUpperCase()),c.join("");case "-ul":return c=T.Iterator(a),c.set(c.size()-1,a.charAt(c.size()-1).toUpperCase()),c.join("");case "-ull":return c=T.Iterator(a).forward_iterator(function(a){this[this.key]=a.toLowerCase()}),c.set(c.size()-1,a.charAt(c.size()-1).toUpperCase()),c.join("");case "-lf":return c=T.Iterator(a),c.set(0,a.charAt(0).toLowerCase()),c.join("");case "-ll":return c=T.Iterator(a),c.set(c.size()-1,a.charAt(c.size()-1).toLowerCase()),c.join("");case "-tol":return a.toLowerCase();
case "-tou":return a.toUpperCase();case "-tolx":c=T.Iterator(a);c.set(0,a.charAt(0).toLowerCase());for(b=0;b<a.length;b++)try{" "!==a.charAt(b-1)&&"\n"!==a.charAt(b-1)&&"\t"!==a.charAt(b-1)&&"\r"!==a.charAt(b-1)||c.set(b,a.charAt(b).toLowerCase())}catch(d){}return c.join("");case "-toux":c=T.Iterator(a);c.set(0,a.charAt(0).toUpperCase());for(b=0;b<a.length;b++)try{" "!==a.charAt(b-1)&&"\n"!==a.charAt(b-1)&&"\t"!==a.charAt(b-1)&&"\r"!==a.charAt(b-1)||c.set(b,a.charAt(b).toUpperCase())}catch(d){}return c.join("")}};
String.prototype.quotemeta=function(b){return(b||this).replace("","").replace("\\",new String("\\\\")).replace(/(\+)/g,"\\+").replace(/(\?)/g,"\\?").replace(/(\[)/g,"\\[").replace(/(\^)/g,"\\^").replace(/(\( )/g,"\\(").replace(/(\$)/g,"\\$").replace(/(\))/g,"\\)").replace(/(\*)/g,"\\*").replace(/(\])/g,"\\]").replace(/(\/)/g,"\\/").replace(/(\.)/g,"\\.")};TigerJS.jx_html_table={" ":" ",'"':""","<":"<",">":">","&":"&","'":"'"};
String.prototype.html_chars=function(b){var a=T.jx_html_table,c;b=T.Iterator(b||this);for(c in a){b.rewind();do c===b.current()&&b.set(b.indexOf(c),a[c]);while(!0===b.next())}return b.join("")};String.prototype.str_pad=function(b,a,c){var d=T.Iterator(this);a=a||" ";switch(c||"STR_PAD_LEFT"){case "STR_PAD_LEFT":for(c=0;c<b;c++)d.add(a,!0);break;case "STR_PAD_RIGHT":for(c=0;c<b;c++)d.push(a);break;case "STR_PAD_BOTH":for(c=0;c<b;c++)d.add(a,!0);for(c=0;c<b;c++)d.push(a)}return d.join("")};
String.prototype.str_repeat=function(b){var a="",c;for(c=0;c<b;c++)a+=this;return a};T._alpha="abcdefghijklmnopqrstuvwxyz".split("");T._alphaB="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
String.prototype.rotX=function(b){var a=T.Iterator(this.toString());b=b||13;var c=T.Iterator(T._alpha),d=T.Iterator(T._alphaB);do{var e=a.current(),l=null,g=null;d.contains(e)&&(d.indexOf(e)+b>d.size()-1?0<=b-d.indexOf(e)?l=b-d.indexOf(e):0>b-d.indexOf(e)&&(l=-1*(b-d.indexOf(e))):l=d.indexOf(e)+b);c.contains(e)&&(c.indexOf(e)+b>c.size()-1?0<=b-c.indexOf(e)?g=b-c.indexOf(e):0>b-c.indexOf(e)&&(g=-1*(b-c.indexOf(e))):g=c.indexOf(e)+b);(0===l||l)&&a.set(a.key,d.at(l));(g||0===g)&&a.set(a.key,c.at(g))}while(a.next());
return a.join("")};String.prototype.strpos=function(b,a){return a?this.substring(a).indexOf(b):this.indexOf(b)};String.prototype.startsWith=function(b){return 0===this.last_index_of(b,0)};String.prototype.ends_with=function(b){var a=this.length-b.length;return 0<=a&&this.indexOf(b,a)===a};String.prototype.stripos=function(b,a){b=new RegExp(b,"gi");return(a=a?b.exec(this.substring(a)):b.exec(this))?a.index:-1};String.prototype.strrpos=function(b,a){return a?this.substring(a).lastIndexOf(b):this.lastIndexOf(b)};
String.prototype.strripos=function(b,a){b=new RegExp(b,"gi");var c;do if(c=a?b.exec(this.substring(a)):b.exec(this))var d=c.index;while(c);return d||0===d?d:-1};String.prototype.strstr=function(b,a){b=this.strpos(b);return a&&-1<b?this.substring(0,b):!a&&-1<b?this.substring(b,this.length):!1};String.prototype.stristr=function(b,a){b=this.stripos(b);return a&&-1<b?this.substring(0,b):!a&&-1<b?this.substring(b,this.length):!1};
String.prototype.substr_count=function(b,a){b=a?new RegExp(b,"gi"):new RegExp(b,"g");var c=0;do(a=b.test(this))&&c++;while(a);return c};String.prototype.trim=function(b){var a=T.Iterator(this),c=/^\s/;switch(b||"BOTH"){case "BEGIN":do if(-1!==a.peek().search(c))a.unset(0);else break;while(a.next());break;case "END":a.key=a.length-1;do if(-1!==a.current().search(c)||" "===a.current())a.unset(a.size()-1);else break;while(a.prev());break;case "BOTH":return this.replace(/^\s*((?:[\S\s]*\S)?)\s*$/,"$1")}return a.join("")};
String.prototype.insert_ch=function(b,a){b=T.Iterator(b.toString());var c=T.Iterator(this);0<=a?c.insert_at(b,a):c.add_all(b);return c.join("")};String.prototype.insert_n=function(b,a,c){a=T.Iterator(b.substr(0,a-1?a:b.length));var d=T.Iterator(this);c?d.insert_at(a,c):d.add_all(b);return d.join("")};
String.prototype.drizzle=function(b,a,c){b=this.length?this:b;a=T.$(a);a.innerHTML="";T.Iterator(b).timed_iterator(function(b){a.innerHTML="`"===b?a.innerHTML+"<br/>":a.innerHTML+b;c&&!0===c&&(a.style.marginTop=.5*(a.parentNode.offsetHeight-a.offsetHeight)+"px",a.style.marginLeft=.5*(a.parentNode.offsetWidth-a.offsetWidth)+"px")},10)};
String.prototype.delete_ch=function(b,a){var c=new T.Iterator(this);do{if(0<=b&&b===c.key&&!a){c.unset(c.key);break}if(b===a){c.unset(b);break}0<=b&&0<=a&&(c.unset(b),--a)}while(c.next());return c.join("")};String.prototype.sprintf=function(b){return T.sprintf.apply(this,T.Iterator().add(this.toString()).add_all(arguments).to_array())};
TigerJS.sprintf=function(){var b=arguments,a=0,c=function(a,b,c,d){c||(c=" ");b=a.length>=b?"":Array(1+b-a.length>>>0).join(c);return d?a+b:b+a},d=function(a,b,d,e,p,f){var l=e-a.length;0<l&&(a=d||!p?c(a,e,f,d):a.slice(0,b.length)+c("",l,"0",!0)+a.slice(b.length));return a},e=function(a,b,e,m,p,f,n){a>>>=0;e=e&&a&&{2:"0b",8:"0",16:"0x"}[b]||"";a=e+c(a.toString(b),f||0,"0",!1);return d(a,e,m,p,n)};return b[a++].replace(/%%|%(\d+\$)?([-+'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,
function(l,g,h,m,p,f,n){if("%%"===l)return"%";var u=!1;var k="";var q=p=!1;var w=" ";for(var v=h.length,r=0;h&&r<v;r++)switch(h.charAt(r)){case " ":k=" ";break;case "+":k="+";break;case "-":u=!0;break;case "'":w=h.charAt(r+1);break;case "0":p=!0;break;case "#":q=!0}m=m?"*"===m?+b[a++]:"*"===m.charAt(0)?+b[m.slice(1,-1)]:+m:0;0>m&&(m=-m,u=!0);if(!isFinite(m))throw Error("TigerJS.sprintf <> sprintf: (minimum-)width must be finite");f=f?"*"===f?+b[a++]:"*"===f.charAt(0)?+b[f.slice(1,-1)]:+f:-1<"fFeE".indexOf(n)?
6:"d"===n?0:void 0;g=g?b[g.slice(0,-1)]:b[a++];switch(n){case "s":return n=String(g),null!==f&&(n=n.slice(0,f)),d(n,"",u,m,p,w);case "c":return n=String.fromCharCode(+g),null!==f&&(n=n.slice(0,f)),d(n,"",u,m,p,void 0);case "b":return e(g,2,q,u,m,f,p);case "o":return e(g,8,q,u,m,f,p);case "x":return e(g,16,q,u,m,f,p);case "X":return e(g,16,q,u,m,f,p).toUpperCase();case "u":return e(g,10,q,u,m,f,p);case "i":case "d":return w=+g|0,l=0>w?"-":k,g=l+c(String(Math.abs(w)),f,"0",!1),d(g,l,u,m,p);case "e":case "E":case "f":case "F":case "g":case "G":return w=
+g,l=0>w?"-":k,k=["toExponential","toFixed","toPrecision"]["efg".indexOf(n.toLowerCase())],n=["toString","toUpperCase"]["eEfFgG".indexOf(n)%2],g=l+Math.abs(w)[k](f),d(g,l,u,m,p)[n]();default:return l}})};String.prototype.find_first_of=function(b,a){var c=T.Iterator(this);b=T.Iterator(b);a&&c.empty().add_all(this.substring(a));do if(!1!==b.indexOf(c.current()))return c.key;while(c.next());return-1};
String.prototype.find_first_not_of=function(b,a){var c=T.Iterator(this);b=T.Iterator(b);a&&c.empty().add_all(this.substring(a));do if(!1===b.indexOf(c.current()))return c.key;while(c.next());return-1};String.prototype.find_last_of=function(b,a){var c=T.Iterator(this);b=T.Iterator(b);var d=-1;a&&c.empty().add_all(this.substring(a));do!1!==b.indexOf(c.current())&&(d=c.key);while(c.next());return d};
String.prototype.find_last_not_of=function(b,a){var c=T.Iterator(this);b=T.Iterator(b);var d=-1;a&&c.empty().add_all(this.substring(a));do!1===b.indexOf(c.current())&&(d=c.key);while(c.next());return d};
String.prototype.interpolate=function(b,a){var c=/([$^\\\/()|?+*\[\]{}.-])/g;a=a||{};if(void 0===a.delimiter)var d=/\{[^{}]+\}/g;else d=a.delimiter.substr(0,1).replace(c,"\\$1"),c=a.delimiter.substr(1,1).replace(c,"\\$1")||d,d=new RegExp(d+"[^"+d+c+"]+"+c,"g");return this.replace(d,function(c){var d=c.slice(1,-1),e=d.split("."),h=0,m=e.length;if(d in b)d=b[d];else for(d=b;h<m;h++)if(e[h]in d)d=d[e[h]];else return c;a.escapeHtml&&(d=d.html_chars());return d})};TigerJS.ua=function(){var b=document,a=window;this.BROWSER="";this.VERSION="undefined";this.HTML5_API=this.SelectorsAPI=this.isMOBILE=!1;document.createElement("canvas").getContext&&document.createElement("video").canPlayType&&"localStorage"in window&&window.localStorage&&window.Worker&&navigator.geolocation&&window.history&&history.pushState&&(this.HTML5_API=!0);b.createElementNS&&b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?this.SVG=!0:this.SVG=!1;this.SelectorsAPI=!!b.querySelector;
b=a.userAgent;/windows|win32/i.test(b)&&!/ce/i.test(b)?this.OS="WINDOWS":/macintosh|mac_powerpc|mac/i.test(b)?this.OS="MAC":/android/i.test(b)?(this.isMOBILE=!0,this.OS="ANDRIOD"):/symbos|symbian/i.test(b)?(this.OS="SYMBIAN",this.isMOBILE=!0):/linux/i.test(b)&&(this.OS="LINUX");/iphone|ipod|ipad|silk|mobile safari/i.test(b)&&(this.OS="IOS",this.isMOBILE=!0);/windows ce| wm\d\b| IEMobile|PIE/i.test(b)&&(this.OS="WINDOWS_MOBILE",this.isMOBILE=!0);/webos/i.test(b)&&(this.OS="WEBOS",this.isMOBILE=!0);
/rim|blackberry|playbook|BB/i.test(b)?(this.OS="BLACKBERRY",this.isMOBILE=!0):/bsd/i.test(b)&&(this.OS="BSD");/fennec/i.test(b)&&(this.isMOBILE=!0);this.ENGINE=null;/opera|opr/ig.test(b)&&(this.ENGINE="PRESTO");/gecko/i.test(b)&&!/like gecko/i.test(b)&&(this.ENGINE="GECKO");/webkit/i.test(b)&&"GECKO"!==this.ENGINE&&(this.ENGINE="WEBKIT");/msie|trident/i.test(b)&&"PRESTO"!==this.ENGINE&&(this.ENGINE="TRIDENT");if(/msie/i.test(b)&&!/opera|theworld|bsalsa|smart bro|Sleipnir|SlimBrowser|acoo|america online|aol|deepnet|kkman|lunascape|maxthon|Crazy Browser/i.test(b))this.VERSION=
/MSIE (\d{1,}.\d{1,})\b/.exec(b)[1],this.BROWSER="WINDOWS_MOBILE"===this.OS?"MOBILE_EXPLORER":"EXPLORER";else if(z=/theworld|bsalsa|smart bro|Sleipnir|SlimBrowser|acoo|america online|aol|kkman|lunascape|maxthon|Crazy Browser/i.exec(b))this.BROWSER=z[0].toUpperCase().replace(" ","_"),"SLEIPNIR"===this.BROWSER&&(this.VERSION=parseFloat(/Sleipnir\/(\d{1,}.*)*\b/.exec(b)[1]));/mini|mobi|mobile/.test(b)&&"PRESTO"===this.ENGINE&&(this.isMOBILE=!0,this.BROWSER="MOBILE_OPERA");if(/Opera\/9.80/.test(b)||/Opera Mobi/.test(b))this.VERSION=
/Version\/(\d{1,2}.\d{1,2})\b/.exec(b)[1],this.BROWSER="OPERA";if(z=/Opera\/(\d{1,2}.\d{1,2})\b/.exec(b))"9.80"!==z[1]&&(this.VERSION=z[1]),this.BROWSER="OPERA";if(z=/OPR\/(\d{1,2}.\d{1,2})/gi.exec(b))this.VERSION=z[1],this.BROWSER="OPERA";if(z=/Opera (\d{1,2}.\d{1,2})\b/.exec(b))this.VERSION=z[1];/Opera Mini/.test(b)&&(this.VERSION=parseFloat(b.substr(b.indexOf("Opera Mini")+11,4)));z=null;"GECKO"===this.ENGINE&&((z=/K-Meleon|palemoon|galeon|camino|epiphany|wyzo|seamonkey|shiretoko|navigator|iceweasel|icecap|iceape|lunascape|midori|minefield|Sleipnir|fennec/i.exec(b))?
(this.VERSION=parseFloat(b.substr(b.indexOf(z[0])+z[0].length+1,4)),this.BROWSER=z[0].toUpperCase().replace("-","_")):/firefox|firebird/i.test(b)&&!z?(this.VERSION=parseFloat(b.substr(b.indexOf("Firefox/")+8,4)),this.BROWSER=/firebird/.test(b)?"FIREBIRD":"FIREFOX"):(this.VERSION=parseFloat(b.substr(b.indexOf("rv:")+4,4)),this.BROWSER="MOZILLA"),z=null);"WEBKIT"===this.ENGINE&&(/Version/.test(b)&&!/epiphany|Comodo_Dragon|ChromePlus|Chrome/i.test(b)&&(this.BROWSER=/omniweb/i.test(b)?"OMNIWEB":"SAFARI",
this.VERSION=parseFloat(b.substr(b.indexOf("Version/")+8,4))),/opr/i.test(b)||!/silk|epiphany|Comodo_Dragon|ChromePlus|Chrome/i.test(b)||/Version/.test(b)||(z=/silk|epiphany|Comodo_Dragon|ChromePlus|Chrome/i.exec(b)[0],this.BROWSER=z.toUpperCase(),this.VERSION=parseFloat(b.substr(b.indexOf(z)+z.length+1,4))),this.isMOBILE&&(/rim|playbook|android|blackberry|bb/gi.exec(b)||(this.BROWSER=/silk/i.exec(b)?"Silk":"MOBILE_SAFARI"),z=null));this[this.BROWSER]=!0};TigerJS.ua=new TigerJS.ua;TigerJS.io=function(b){return new function(a){this.configObj=a;if(!a){var b=" NullArgumentError<> Constructor TigerJS.io Expects at least ONE argument, Zero given";throw Error(b);}if(!T.is_object(a))throw b=" WrongArgumentTypeError<> Constructor TigerJS.io Expects an Object as its argument, * "+T.type(a)+" * given",Error(b);var d=new XMLHttpRequest,e="",l="",g=T.Parser.parse_uri(window.location.href.toString()),h=a.uri?T.Parser.parse_uri(a.uri):g,m=0,p=0;if(!d)throw b=" NoObjectSupportError<> The XMLHttpRequest Object is not supported by your BROWSER",
Error(b);if(T.dom_ready())if("OFFLINE"===T.NETWORK_STATE&&a.subscribe.onerror)a.subscribe.onerror("NETWORK_ERROR",0);else{var f=T.Iterator(["CONNECT","TRACE","TRACK"]);if(a.method&&!/post|get|head|delete|put|head|options|move|lock|unlock|update|label|merge|checkout|checkin|acl|baseline-control/i.test(a.method)){if(f.contains(a.method))throw b=" SecurityError <> Constructor TigerJS.iomethod name ["+a.method+"] is ILLEGAL",Error(b);b="InvalidMethodError <> Constructor TigerJS.io method name ["+a.method+
"] is UNKNOWN";throw Error(b);}l=a.method?a.method.toUpperCase():"POST";if(a.uri){if(h.host&&h.host!==g.host)throw b="SecurityError <> Constructor TigerJS.io The Request HOST ("+h.host+") doesnt match its ORIGIN ("+g.host+")",Error(b);h.host&&h.host===g.host?e=h.source:h.host||(e=(g.authority+g.directory+a.uri).replace("//","/"))}else e=(h.authority+h.directory+h.file).replace("//","/");T.Parser.parse_uri(e).protocol||(e=h.host?h.protocol+"://"+e:g.protocol+"://"+e);this.add_query_data=function(a){if(this.add_query_data.length!==
arguments.length)throw b=" WrongArgumentCountError <> Function TigerJS.io#add_query_data Epects one {1} argument, {"+arguments.length+"} given",Error(b);e+="&"+T.http_build_query(a);return this};this.set_query_data=function(a){if(this.set_query_data.length!==arguments.length)throw b=" WrongArgumentCountError <> Function TigerJS.io#set_query_data Epects one {1} argument, {"+arguments.length+"} given",Error(b);l="GET";e=-1<e.indexOf("?")?e.substring(0,e.indexOf("?")):e;e+="?"+T.http_build_query(a);
return this};this.get_query_data=function(){return encodeURI(e.substring(e.indexOf("?")+1))};this.set_request_method=function(a){if(!/post|get|head|delete|put|head|options|move|lock|unlock|update|label|merge|checkout|checkin|acl|baseline-control/i.test(a)){if(f.contains(a))throw b=" SecurityError <> Function TigerJS.io#set_request_method method name ["+a+"] is ILLEGAL",Error(b);b="InvalidMethodError <> Function TigerJS.io#set_request_method method name ["+a+"] is UNKNOWN";throw Error(b);}l=a.toUpperCase();
return this};this.get_query_data=function(){return l};this.setTimeout=function(a){try{m=d.timeout=a}catch(u){throw u;}return this};this.set_timeout=function(a){return this.setTimeout(a)};this.get_timeout=function(){return m};this.send=function(){d.open(l,e,!0);if(a.subscribe)for(var b in a.subscribe)switch(b){case "onloadstart":d.addEventListener("loadstart",a.subscribe.onloadstart,!1);break;case "ontimeout":d.addEventListener("timeout",a.subscribe.ontimeout,!1);break;case "onprogress":d.addEventListener("progress",
a.subscribe.onprogress,!1);break;case "onabort":d.addEventListener("abort",a.subscribe.onabort,!1);break;case "onerror":d.addEventListener("error",this.handle_request_errors_internally,!1);break;case "onload":d.addEventListener("load",this.handle_request_load_internally,!1);break;case "onloadend":d.addEventListener("loadend",a.subscribe.onloadend,!1);break;case "uploadloadstart":d.upload.addEventListener("loadstart",a.subscribe.uploadloadstart,!1);break;case "uploadprogress":d.upload.addEventListener("progress",
this.handle_upload_progress_events,!1);break;case "uploadload":d.upload.addEventListener("load",a.subscribe.uploadload,!1)}this.postDataFeilds?d.send(this.postDataFeilds):d.send();return this};this.handle_request_errors_internally=function(){"OFFLINE"===T.NETWORK_STATE?a.subscribe.onerror&&a.subscribe.onerror.apply(this,["NETWORK_LOST_ERROR",1]):a.subscribe.onerror&&a.subscribe.onerror.apply(this,["NETWORK_UNKNOWN_ERROR",1])};this.handle_request_load_internally=function(){T.Iterator("400 401 403 410 501 502 503 504 505 500 302 303".split(" ")).indexOf(this.status.toString())?
a.subscribe.onerror&&a.subscribe.onerror.apply(this,["SERVER_ERROR",this.status]):"404"===this.status.toString()?a.subscribe.onerror&&a.subscribe.onerror.apply(this,["URI_NOT_FOUND",this.status]):a.subscribe.onload.apply(this)};this.handle_upload_progress_events=function(b){b.lengthComputable?a.subscribe.uploadprogress.apply(this,[Math.round(100*b.loaded/b.total)]):a.subscribe.uploadprogress.apply(this)};this.add_data_feilds=function(a){if(this.add_data_feilds.length!==arguments.length)throw b=" WrongArgumentCountError <> Function TigerJS.io#add_data_feilds Epects one {1} argument, {"+
arguments.length+"} given",Error(b);if(!this.postDataFeilds)throw b="InvalidMethodCall <> Function TigerJS.io#add_data_feilds Cannot Add Data to NULL, No POST data previously SET",Error(b);var c,k;switch(T.type(a)){case "TigerJS.Map":for(c=0;c<a.keys().length;c++)this.postDataFeilds.append(a.keys()[c],a.values()[c]);break;case "XMLDocument":this.postDataFeilds.append(p++,T.save_xml(a));break;case "HTMLDocument":this.postDataFeilds.append(p++,a.documentElement.textContent);break;case "Object":for(c in a)a[c].nodeType?
this.add_data_feilds(a[c]):this.postDataFeilds.append(c,a[c]);break;case "HTMLFormElement":for(c=0;c<a.elements.length;c++)if("checkbox"===a.elements[c].type?a.elements[c].checked&&this.postDataFeilds.append(a.elements[c].name,a.elements[c].value):this.postDataFeilds.append(a.elements[c].name,a.elements[c].value),"file"===a.elements[c].getAttribute("type"))for(k=0;k<a.elements[c].files.length;k++)this.postDataFeilds.append(a.elements[c].files[k].name,a.elements[c].files[k]);break;case "HTMLInputElement":if("file"===
a.getAttribute("type"))for(k=0;k<a.files.length;k++)this.postDataFeilds.append(a.files[k].name,a.files[k]);else"checkbox"===a.type?a.checked&&this.postDataFeilds.append(a.name,a.value):this.postDataFeilds.append(a.name,a.value)}return this};this.set_data_feilds=function(a){var c;if(this.set_data_feilds.length!==arguments.length)throw b=" WrongArgumentCountError <> Function TigerJS.io#set_data_feilds Expects one {1} argument, {"+arguments.length+"} given",Error(b);var k=T.type(a);this.postDataFeilds=
new FormData;a.nodeType&&9===a.nodeType&&this.postDataFeilds.append("serialized_canvas",a);switch(k){case "TigerJS.Map":for(c=0;c<a.keys().length;c++)this.postDataFeilds.append(a.keys()[c],a.values()[c]);break;case "XMLDocument":this.postDataFeilds.append(p++,T.save_xml(a));break;case "HTMLDocument":this.postDataFeilds.append(p++,a.documentElement.textContent);break;case "Object":for(c in a)a[c].nodeType?this.add_data_feilds(a[c]):this.postDataFeilds.append(c,a[c]);break;case "HTMLFormElement":for(c=
0;c<a.elements.length;c++)if("checkbox"===a.elements[c].type?a.elements[c].checked&&this.postDataFeilds.append(a.elements[c].name,a.elements[c].value):this.postDataFeilds.append(a.elements[c].name,a.elements[c].value),"file"===a.elements[c].getAttribute("type"))for(k=0;k<a.elements[c].files.length;k++)this.postDataFeilds.append(a.elements[c].files[k].name,a.elements[c].files[k]);break;case "HTMLInputElement":if("file"===a.getAttribute("type"))for(k=0;k<a.files.length;k++)this.postDataFeilds.append(a.files[k].name,
a.files[k]);else"checkbox"===a.type?a.checked&&this.postDataFeilds.append(a.name,a.value):this.postDataFeilds.append(a.name,a.value)}return this};a.postData&&this.set_data_feilds(a.postData);a.queryData&&this.set_query_data(a.queryData);this.abort=function(){d.abort();return this};this.toString=function(){return"[object TigerJS.io]"}}else if(a.subscribe.onerror)a.subscribe.onerror("ObjectError","0x1")}(b)};
TigerJS.io.SerialRequestQueue=function(b,a,c){return new function(){var d=T.Iterator(),e=null;this.appendRequest=function(a){d[d.size()]=a;d[d.size()-1].subscribe.onload&&(d[d.size()-1].subscribe.deferedLoadEventHandler=d[d.size()-1].subscribe.onload);d[d.size()-1].subscribe.onload=this.registeredEvents.onload;d[d.size()-1].subscribe.onerror&&(d[d.size()-1].subscribe.deferedErrorEventHandler=d[d.size()-1].subscribe.onerror);d[d.size()-1].subscribe.onerror=this.registeredEvents.onerror;d[d.size()-
1].subscribe.uploadprogress&&(d[d.size()-1].subscribe.deferedProgressEventHandler=d[d.size()-1].subscribe.uploadprogress);d[d.size()-1].subscribe.uploadprogress=this.registeredEvents.uploadprogress;d[d.size()-1]=T.io(a);return this};var l=this.send=function(){d.current().send();e=d.key;return this},g=this.abortQueue=function(){d.current().abort();e=null;d=T.Iterator();return this};this.registeredEvents={};this.registeredEvents.onload=function(){T.Iterator("400 401 403 404 410 501 502 503 504 505 500 302 303".split(" ")).indexOf(this.status.toString())?
(g(),a&&a("SERVER_ERROR",this.status,d.key),d.current().configObj.subscribe.deferedErrorEventHandler&&d.current().configObj.subscribe.deferedErrorEventHandler.apply(this,["SERVER_ERROR",this.status])):(b&&b("load",d.key),d.current().configObj.subscribe.deferedLoadEventHandler&&d.current().configObj.subscribe.deferedLoadEventHandler.apply(this),d.next()?l():b&&b("loadcomplete",-1))};this.registeredEvents.onerror=function(){"OFFLINE"===T.NETWORK_STATE?(a&&a("NETWORK_ERROR",0,d.key),d.current().configObj.subscribe.deferedErrorEventHandler&&
d.current().configObj.subscribe.deferedErrorEventHandler.apply(this,["NETWORK_ERROR",0])):(a&&a(this.status?"SERVER_ERROR":"NETWORK_ERROR",this.status||0,d.key),d.current().configObj.subscribe.deferedErrorEventHandler&&d.current().configObj.subscribe.deferedErrorEventHandler.apply(this,[this.status?"SERVER_ERROR":"NETWORK_ERROR",this.status||1]));g()};this.registeredEvents.uploadprogress=function(a){c&&c(a,d.key);d.current().configObj.subscribe.deferedProgressEventHandler&&d.current().configObj.subscribe.deferedProgressEventHandler.apply(this,
[a,[e]])}}};
TigerJS.io.CompositeRequest=function(){var b=T.Iterator(arguments),a=arguments;b=b.slice(0,b.length-1);return new function(){function c(){var a=new FormData,b;for(b in h)a.append(b,h[b]);p.open("POST",T.library_installation_path+"/asset/php/compositeRequestClass.php",!0);p.send(a);++g}var d,e,l=!1,g=1;this.loopRequest=function(a){d=a;return this};var h={},m=0;T.Iterator().add_all(b).forward_iterator(function(a){h[m+"_"+a.tag+"_uri"]=a.uri||location.href;h[m+"_"+a.tag+"_postData"]=a.postData?T.http_build_query(a.postData):
"";h[m+"_"+a.tag]=a.tag||m+"_tag_";h[m+"_"+a.tag]+=!0===a.uniqueID?Math.random().toString():"";m++});h.request_count=m;var p=new XMLHttpRequest;var f=new FormData;for(var n in h)f.append(n,h[n]);p.open("POST",T.library_installation_path+"/asset/php/compositeRequestClass.php",!0);p.addEventListener("load",function(){try{if(T.is_function(a[a.length-1]))a[a.length-1](JSON.parse(this.responseText))}catch(u){p.abort()}});p.addEventListener("loadend",function(){if(d&&g<d||-1===d)l?e&&clearTimeout(e):e=
setTimeout(c,5E3)});p.addEventListener("error",function(){a[a.length-1]({ERROR:"NET_ERR"})});this.send=function(){p.send(f);return this};this.abort=function(){p.abort();l=!0}}};TigerJS.Conn={state:null,SubscrptionList:T.Iterator(),subscribe:function(b){this.SubscrptionList.add_all(arguments)},unSubscribe:function(b){this.SubscrptionList=this.SubscrptionList.without(T.Iterator(arguments))},update:function(){var b=new XMLHttpRequest;try{b.open("HEAD",window.location),b.send()}catch(a){}b.onreadystatechange=function(){try{!window.ActiveXObject||12029!==this.status&&"Unknown"!==this.statusText?4===this.readyState&&0===this.status?(b.abort(),(!0===T.Conn.state||null===T.Conn.state)&&
T.Conn.SubscrptionList.size()&&T.Conn.SubscrptionList.walk(function(a){a({state:"offline"})}),T.Conn.state=!1,setTimeout(T.Conn.update,1500)):(200<=this.status&&226>=this.status||304===this.status)&&4===this.readyState&&(b.abort(),T.Conn.state||T.Conn.SubscrptionList.size()&&T.Conn.SubscrptionList.walk(function(a){a({state:"online"})}),T.Conn.state=!0,setTimeout(T.Conn.update,2E3)):(b.abort(),(!0===T.Conn.state||null===T.Conn.state)&&T.Conn.SubscrptionList.size()&&T.Conn.SubscrptionList.walk(function(a){a({state:"offline"})}),
T.Conn.state=!1,setTimeout(T.Conn.update,1500))}catch(a){}}}};TigerJS.NETWORK_STATE=null;var _T_NET_ONLINE="ONLINE",_T_NET_OFFLINE="OFFLINE";var SUPPORTED_ALGS=7;
(function(b){function a(a,b){this.highOrder=a;this.lowOrder=b}function c(a){var b=[],k=a.length,c;if(0!==k%2)throw"String of HEX type must be in byte increments";for(c=0;c<k;c+=2){var d=parseInt(a.substr(c,2),16);if(isNaN(d))throw"String of HEX type contains invalid characters";b[c>>>3]|=d<<24-c%8*4}return{value:b,binLen:4*k}}function d(a){var b=[],k=0,c,d,e;if(-1===a.search(/^[a-zA-Z0-9=+\/]+$/))throw"Invalid character in base-64 string";var r=a.indexOf("=");a=a.replace(/=/g,"");if(-1!==r&&r<a.length)throw"Invalid '=' found in base-64 string";
for(c=0;c<a.length;c+=4){var f=a.substr(c,4);for(d=e=0;d<f.length;d+=1)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(f[d]),e|=r<<18-6*d;for(d=0;d<f.length-1;d+=1)b[k>>2]|=(e>>>16-8*d&255)<<24-k%4*8,k+=1}return{value:b,binLen:8*k}}function e(a,b){var k="",c=4*a.length,d;for(d=0;d<c;d+=1){var e=a[d>>>2]>>>8*(3-d%4);k+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(e&15)}return b.outputUpper?k.toUpperCase():k}function l(a,b){var k="",c=4*a.length,d,e;for(d=
0;d<c;d+=3){var r=(a[d>>>2]>>>8*(3-d%4)&255)<<16|(a[d+1>>>2]>>>8*(3-(d+1)%4)&255)<<8|a[d+2>>>2]>>>8*(3-(d+2)%4)&255;for(e=0;4>e;e+=1)k=8*d+6*e<=32*a.length?k+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-e)&63):k+b.b64Pad}return k}function g(a){var b={outputUpper:!1,b64Pad:"="};try{a.hasOwnProperty("outputUpper")&&(b.outputUpper=a.outputUpper),a.hasOwnProperty("b64Pad")&&(b.b64Pad=a.b64Pad)}catch(Q){}if("boolean"!==typeof b.outputUpper)throw"Invalid outputUpper formatting option";
if("string"!==typeof b.b64Pad)throw"Invalid b64Pad formatting option";return b}function h(a,b){return a<<b|a>>>32-b}function m(a,b){return a>>>b|a<<32-b}function p(b,k){b=new a(b.highOrder,b.lowOrder);return 32>=k?new a(b.highOrder>>>k|b.lowOrder<<32-k&4294967295,b.lowOrder>>>k|b.highOrder<<32-k&4294967295):new a(b.lowOrder>>>k-32|b.highOrder<<64-k&4294967295,b.highOrder>>>k-32|b.lowOrder<<64-k&4294967295)}function f(b,k){return 32>=k?new a(b.highOrder>>>k,b.lowOrder>>>k|b.highOrder<<32-k&4294967295):
new a(0,b.highOrder>>>k-32)}function n(a,b,k){return a&b^~a&k}function u(b,k,c){return new a(b.highOrder&k.highOrder^~b.highOrder&c.highOrder,b.lowOrder&k.lowOrder^~b.lowOrder&c.lowOrder)}function k(a,b,k){return a&b^a&k^b&k}function q(b,k,c){return new a(b.highOrder&k.highOrder^b.highOrder&c.highOrder^k.highOrder&c.highOrder,b.lowOrder&k.lowOrder^b.lowOrder&c.lowOrder^k.lowOrder&c.lowOrder)}function w(a){return m(a,2)^m(a,13)^m(a,22)}function v(b){var k=p(b,28),c=p(b,34);b=p(b,39);return new a(k.highOrder^
c.highOrder^b.highOrder,k.lowOrder^c.lowOrder^b.lowOrder)}function r(a){return m(a,6)^m(a,11)^m(a,25)}function D(b){var k=p(b,14),c=p(b,18);b=p(b,41);return new a(k.highOrder^c.highOrder^b.highOrder,k.lowOrder^c.lowOrder^b.lowOrder)}function C(a){return m(a,7)^m(a,18)^a>>>3}function x(b){var k=p(b,1),c=p(b,8);b=f(b,7);return new a(k.highOrder^c.highOrder^b.highOrder,k.lowOrder^c.lowOrder^b.lowOrder)}function E(a){return m(a,17)^m(a,19)^a>>>10}function y(b){var k=p(b,19),c=p(b,61);b=f(b,6);return new a(k.highOrder^
c.highOrder^b.highOrder,k.lowOrder^c.lowOrder^b.lowOrder)}function A(a,b){var k=(a&65535)+(b&65535);return((a>>>16)+(b>>>16)+(k>>>16)&65535)<<16|k&65535}function B(a,b,k,c){var d=(a&65535)+(b&65535)+(k&65535)+(c&65535);return((a>>>16)+(b>>>16)+(k>>>16)+(c>>>16)+(d>>>16)&65535)<<16|d&65535}function F(a,b,k,c,d){var e=(a&65535)+(b&65535)+(k&65535)+(c&65535)+(d&65535);return((a>>>16)+(b>>>16)+(k>>>16)+(c>>>16)+(d>>>16)+(e>>>16)&65535)<<16|e&65535}function G(b,k){var c=(b.lowOrder&65535)+(k.lowOrder&
65535);var d=(b.lowOrder>>>16)+(k.lowOrder>>>16)+(c>>>16);var e=(d&65535)<<16|c&65535;c=(b.highOrder&65535)+(k.highOrder&65535)+(d>>>16);d=(b.highOrder>>>16)+(k.highOrder>>>16)+(c>>>16);return new a((d&65535)<<16|c&65535,e)}function H(b,k,c,d){var e=(b.lowOrder&65535)+(k.lowOrder&65535)+(c.lowOrder&65535)+(d.lowOrder&65535);var r=(b.lowOrder>>>16)+(k.lowOrder>>>16)+(c.lowOrder>>>16)+(d.lowOrder>>>16)+(e>>>16);var f=(r&65535)<<16|e&65535;e=(b.highOrder&65535)+(k.highOrder&65535)+(c.highOrder&65535)+
(d.highOrder&65535)+(r>>>16);r=(b.highOrder>>>16)+(k.highOrder>>>16)+(c.highOrder>>>16)+(d.highOrder>>>16)+(e>>>16);return new a((r&65535)<<16|e&65535,f)}function M(b,k,c,d,e){var r=(b.lowOrder&65535)+(k.lowOrder&65535)+(c.lowOrder&65535)+(d.lowOrder&65535)+(e.lowOrder&65535);var f=(b.lowOrder>>>16)+(k.lowOrder>>>16)+(c.lowOrder>>>16)+(d.lowOrder>>>16)+(e.lowOrder>>>16)+(r>>>16);var l=(f&65535)<<16|r&65535;r=(b.highOrder&65535)+(k.highOrder&65535)+(c.highOrder&65535)+(d.highOrder&65535)+(e.highOrder&
65535)+(f>>>16);f=(b.highOrder>>>16)+(k.highOrder>>>16)+(c.highOrder>>>16)+(d.highOrder>>>16)+(e.highOrder>>>16)+(r>>>16);return new a((f&65535)<<16|r&65535,l)}function J(a,b){var c=[],d,e,r=[1732584193,4023233417,2562383102,271733878,3285377520];a[b>>>5]|=128<<24-b%32;a[(b+65>>>9<<4)+15]=b;var f=a.length;for(d=0;d<f;d+=16){b=r[0];var l=r[1];var q=r[2];var D=r[3];var w=r[4];for(e=0;80>e;e+=1){c[e]=16>e?a[e+d]:h(c[e-3]^c[e-8]^c[e-14]^c[e-16],1);var g=20>e?F(h(b,5),l&q^~l&D,w,1518500249,c[e]):40>e?
F(h(b,5),l^q^D,w,1859775393,c[e]):60>e?F(h(b,5),k(l,q,D),w,2400959708,c[e]):F(h(b,5),l^q^D,w,3395469782,c[e]);w=D;D=q;q=h(l,30);l=b;b=g}r[0]=A(b,r[0]);r[1]=A(l,r[1]);r[2]=A(q,r[2]);r[3]=A(D,r[3]);r[4]=A(w,r[4])}return r}function K(b,c,d){var e,f,l=[],h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,
1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var g=[3238371032,914150663,812702999,4144912697,4290775857,
1750603025,1694076839,3204075428];var m=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];if(("SHA-224"===d||"SHA-256"===d)&&2&SUPPORTED_ALGS){var p=64;var J=(c+65>>>9<<4)+15;var U=16;var P=1;var t=Number;var I=A;var K=B;var Q=F;var V=C;var W=E;var X=w;var Y=r;var Z=k;var aa=n;g="SHA-224"===d?g:m}else if(("SHA-384"===d||"SHA-512"===d)&&4&SUPPORTED_ALGS)p=80,J=(c+128>>>10<<5)+31,U=32,P=2,t=a,I=G,K=H,Q=M,V=x,W=y,X=v,Y=D,Z=q,aa=u,h=[new t(h[0],3609767458),new t(h[1],
602891725),new t(h[2],3964484399),new t(h[3],2173295548),new t(h[4],4081628472),new t(h[5],3053834265),new t(h[6],2937671579),new t(h[7],3664609560),new t(h[8],2734883394),new t(h[9],1164996542),new t(h[10],1323610764),new t(h[11],3590304994),new t(h[12],4068182383),new t(h[13],991336113),new t(h[14],633803317),new t(h[15],3479774868),new t(h[16],2666613458),new t(h[17],944711139),new t(h[18],2341262773),new t(h[19],2007800933),new t(h[20],1495990901),new t(h[21],1856431235),new t(h[22],3175218132),
new t(h[23],2198950837),new t(h[24],3999719339),new t(h[25],766784016),new t(h[26],2566594879),new t(h[27],3203337956),new t(h[28],1034457026),new t(h[29],2466948901),new t(h[30],3758326383),new t(h[31],168717936),new t(h[32],1188179964),new t(h[33],1546045734),new t(h[34],1522805485),new t(h[35],2643833823),new t(h[36],2343527390),new t(h[37],1014477480),new t(h[38],1206759142),new t(h[39],344077627),new t(h[40],1290863460),new t(h[41],3158454273),new t(h[42],3505952657),new t(h[43],106217008),new t(h[44],
3606008344),new t(h[45],1432725776),new t(h[46],1467031594),new t(h[47],851169720),new t(h[48],3100823752),new t(h[49],1363258195),new t(h[50],3750685593),new t(h[51],3785050280),new t(h[52],3318307427),new t(h[53],3812723403),new t(h[54],2003034995),new t(h[55],3602036899),new t(h[56],1575990012),new t(h[57],1125592928),new t(h[58],2716904306),new t(h[59],442776044),new t(h[60],593698344),new t(h[61],3733110249),new t(h[62],2999351573),new t(h[63],3815920427),new t(3391569614,3928383900),new t(3515267271,
566280711),new t(3940187606,3454069534),new t(4118630271,4000239992),new t(116418474,1914138554),new t(174292421,2731055270),new t(289380356,3203993006),new t(460393269,320620315),new t(685471733,587496836),new t(852142971,1086792851),new t(1017036298,365543100),new t(1126000580,2618297676),new t(1288033470,3409855158),new t(1501505948,4234509866),new t(1607167915,987167468),new t(1816402316,1246189591)],g="SHA-384"===d?[new t(3418070365,g[0]),new t(1654270250,g[1]),new t(2438529370,g[2]),new t(355462360,
g[3]),new t(1731405415,g[4]),new t(41048885895,g[5]),new t(3675008525,g[6]),new t(1203062813,g[7])]:[new t(m[0],4089235720),new t(m[1],2227873595),new t(m[2],4271175723),new t(m[3],1595750129),new t(m[4],2917565137),new t(m[5],725511199),new t(m[6],4215389547),new t(m[7],327033209)];else throw"Unexpected error in SHA-2 implementation";b[c>>>5]|=128<<24-c%32;b[J]=c;var ca=b.length;for(e=0;e<ca;e+=U){c=g[0];J=g[1];m=g[2];var R=g[3];var L=g[4];var N=g[5];var O=g[6];var S=g[7];for(f=0;f<p;f+=1){l[f]=
16>f?new t(b[f*P+e],b[f*P+e+1]):K(W(l[f-2]),l[f-7],V(l[f-15]),l[f-16]);var ba=Q(S,Y(L),aa(L,N,O),h[f],l[f]);var da=I(X(c),Z(c,J,m));S=O;O=N;N=L;L=I(R,ba);R=m;m=J;J=c;c=I(ba,da)}g[0]=I(c,g[0]);g[1]=I(J,g[1]);g[2]=I(m,g[2]);g[3]=I(R,g[3]);g[4]=I(L,g[4]);g[5]=I(N,g[5]);g[6]=I(O,g[6]);g[7]=I(S,g[7])}if("SHA-224"===d&&2&SUPPORTED_ALGS)b=[g[0],g[1],g[2],g[3],g[4],g[5],g[6]];else if("SHA-256"===d&&2&SUPPORTED_ALGS)b=g;else if("SHA-384"===d&&4&SUPPORTED_ALGS)b=[g[0].highOrder,g[0].lowOrder,g[1].highOrder,
g[1].lowOrder,g[2].highOrder,g[2].lowOrder,g[3].highOrder,g[3].lowOrder,g[4].highOrder,g[4].lowOrder,g[5].highOrder,g[5].lowOrder];else if("SHA-512"===d&&4&SUPPORTED_ALGS)b=[g[0].highOrder,g[0].lowOrder,g[1].highOrder,g[1].lowOrder,g[2].highOrder,g[2].lowOrder,g[3].highOrder,g[3].lowOrder,g[4].highOrder,g[4].lowOrder,g[5].highOrder,g[5].lowOrder,g[6].highOrder,g[6].lowOrder,g[7].highOrder,g[7].lowOrder];else throw"Unexpected error in SHA-2 implementation";return b}-3-function(a,b){var k=[],c=0,d;
if("UTF8"===b)for(d=0;d<a.length;d+=1){var e=a.charCodeAt(d);b=[];2048<e?(b[0]=224|(e&61440)>>>12,b[1]=128|(e&4032)>>>6,b[2]=128|e&63):128<e?(b[0]=192|(e&1984)>>>6,b[1]=128|e&63):b[0]=e;for(e=0;e<b.length;e+=1)k[c>>>2]|=b[e]<<24-c%4*8,c+=1}else if("UTF16"===b)for(d=0;d<a.length;d+=1)a.charCodeAt(d),k[c>>>2]|=a.charCodeAt(d)<<16-c%4*8,c+=2;return{value:k,binLen:8*c}};b=function(a,b,k){var r=0,h=[0],f="",q=null;f=k||"UTF8";if("UTF8"!==f&&"UTF16"!==f)throw"encoding must be UTF8 or UTF16";if("HEX"===
b){if(0!==a.length%2)throw"srcString of HEX type must be in byte increments";q=c(a);r=q.binLen;h=q.value}else if("ASCII"===b||"TEXT"===b)q=str2binb(a,f),r=q.binLen,h=q.value;else if("B64"===b)q=d(a),r=q.binLen,h=q.value;else throw"inputFormat must be HEX, TEXT, ASCII, or B64";this.getHash=function(a,b,k,c){var d=h.slice(),f=r,q;3===arguments.length?"number"!==typeof k&&(c=k,k=1):2===arguments.length&&(k=1);if(k!==parseInt(k,10)||1>k)throw"numRounds must a integer >= 1";switch(b){case "HEX":var D=
e;break;case "B64":D=l;break;default:throw"format must be HEX or B64";}if("SHA-1"===a&&1&SUPPORTED_ALGS)for(q=0;q<k;q++)d=J(d,f),f=160;else if("SHA-224"===a&&2&SUPPORTED_ALGS)for(q=0;q<k;q++)d=K(d,f,a),f=224;else if("SHA-256"===a&&2&SUPPORTED_ALGS)for(q=0;q<k;q++)d=K(d,f,a),f=256;else if("SHA-384"===a&&4&SUPPORTED_ALGS)for(q=0;q<k;q++)d=K(d,f,a),f=384;else if("SHA-512"===a&&4&SUPPORTED_ALGS)for(q=0;q<k;q++)d=K(d,f,a),f=512;else throw"Chosen SHA variant is not supported";return D(d,g(c))};this.getHMAC=
function(a,b,k,q,D){var w=[],v=[];switch(q){case "HEX":q=e;break;case "B64":q=l;break;default:throw"outputFormat must be HEX or B64";}if("SHA-1"===k&&1&SUPPORTED_ALGS){var m=64;var n=160}else if("SHA-224"===k&&2&SUPPORTED_ALGS)m=64,n=224;else if("SHA-256"===k&&2&SUPPORTED_ALGS)m=64,n=256;else if("SHA-384"===k&&4&SUPPORTED_ALGS)m=128,n=384;else if("SHA-512"===k&&4&SUPPORTED_ALGS)m=128,n=512;else throw"Chosen SHA variant is not supported";if("HEX"===b){a=c(a);var p=a.binLen;a=a.value}else if("ASCII"===
b||"TEXT"===b)a=str2binb(a,f),p=a.binLen,a=a.value;else if("B64"===b)a=d(a),p=a.binLen,a=a.value;else throw"inputFormat must be HEX, TEXT, ASCII, or B64";b=8*m;var x=m/4-1;if(m<p/8){if("SHA-1"===k&&1&SUPPORTED_ALGS)a=J(a,p);else if(6&SUPPORTED_ALGS)a=K(a,p,k);else throw"Unexpected error in HMAC implementation";a[x]&=4294967040}else m>p/8&&(a[x]&=4294967040);for(m=0;m<=x;m+=1)w[m]=a[m]^909522486,v[m]=a[m]^1549556828;if("SHA-1"===k&&1&SUPPORTED_ALGS)k=J(v.concat(J(w.concat(h),b+r)),b+n);else if(6&SUPPORTED_ALGS)k=
K(v.concat(K(w.concat(h),b+r,k)),b+n,k);else throw"Unexpected error in HMAC implementation";return q(k,g(D))};this.utf8Encode=function(a){var b="",k=-1,c;if(a&&a.length)for(c=a.length;(k+=1)<c;){var d=a.charCodeAt(k);var e=k+1<c?a.charCodeAt(k+1):0;55296<=d&&56319>=d&&56320<=e&&57343>=e&&(d=65536+((d&1023)<<10)+(e&1023),k+=1);127>=d?b+=String.fromCharCode(d):2047>=d?b+=String.fromCharCode(192|d>>>6&31,128|d&63):65535>=d?b+=String.fromCharCode(224|d>>>12&15,128|d>>>6&63,128|d&63):2097151>=d&&(b+=String.fromCharCode(240|
d>>>18&7,128|d>>>12&63,128|d>>>6&63,128|d&63))}return b};this.utf8Decode=function(a){var b,k=[];var c=b=0;if(a&&a.length){var d=a.length;for(a+="";c<d;){var e=a.charCodeAt(c);b+=1;if(128>e)k[b]=String.fromCharCode(e),c+=1;else if(191<e&&224>e){var r=a.charCodeAt(c+1);k[b]=String.fromCharCode((e&31)<<6|r&63);c+=2}else{r=a.charCodeAt(c+1);var f=a.charCodeAt(c+2);k[b]=String.fromCharCode((e&15)<<12|(r&63)<<6|f&63);c+=3}}}return k.join("")};this.CRC32=function(a){var b=0,k;a=this.utf8Encode(a);b^=-1;
var c=0;for(k=a.length;c<k;c+=1){var d=(b^a.charCodeAt(c))&255;d="0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*
d,8);b=b>>>8^d}return(b^-1)>>>0}};"function"===typeof define&&typeof define.amd?define(function(){return TigerJS.Hash}):("undefined"!==typeof exports&&("undefined"!==typeof module&&module.exports?module.exports=exports=b:exports=b),TigerJS.Hash_=b)})(this);
TigerJS.Hash=T.mix(function(){},{sha256:function(b,a){return(new T.Hash_(b,a||"ASCII")).getHash("SHA-256","HEX",1)},sha1:function(b,a){return(new T.Hash_(b,a||"ASCII")).getHash("SHA-1","HEX",1)},sha224:function(b,a){return(new T.Hash_(b,a||"ASCII")).getHash("SHA-224","HEX",1)},sha384:function(b,a){return(new T.Hash_(b,a||"ASCII")).getHash("SHA-384","HEX",1)},sha512:function(b,a){return(new T.Hash_(b,a||"ASCII")).getHash("SHA-512","HEX",1)},CRC32:function(b){return(new T.Hash_("","ASCII")).CRC32(b)}});var mcrypt=mcrypt?mcrypt:new function(){var b={"rijndael-128":[16,32],"rijndael-192":[24,32],"rijndael-256":[32,32],serpent:[16,32]},a={"rijndael-128":function(a,b,c,d){32>c.length&&(c+=Array(33-c.length).join(String.fromCharCode(0)));d?Rijndael.Encrypt(b,c):Rijndael.Decrypt(b,c);return b}};a["rijndael-192"]=a["rijndael-128"];a["rijndael-256"]=a["rijndael-128"];a.serpent=function(a,b,c,d){d?Serpent.Encrypt(b):Serpent.Decrypt(b);return b};a.serpent.init=function(a,b,c){a=[];for(c=0;c<b.length;c++)a[c]=
b.charCodeAt(c);Serpent.Init(a)};a.serpent.deinit=function(a,b,c){Serpent.Close()};var c={Encrypt:function(a,b,d,e,f){return c.Crypt(!0,a,b,d,e,f)},Decrypt:function(a,b,d,e,f){return c.Crypt(!1,a,b,d,e,f)},Crypt:function(c,h,m,p,f,n){p?l=p:p=l;f?e=f:f=e;n?d=n:n=d;if(!h)return!0;a[f].init&&a[f].init(f,p,c);var g=b[f][0],k=g,q=Array(g);switch(n){case "cfb":k=1;case "cbc":case "ncfb":case "nofb":case "ctr":if(!m)throw"mcrypt.Crypt: IV Required for mode "+n;if(m.length!==g)throw"mcrypt.Crypt: IV must be "+
g+" characters long for "+f;for(--g;0<=g;g--)q[g]=m.charCodeAt(g);break;case "ecb":break;default:throw"mcrypt.Crypt: Unsupported mode of opperation"+d;}m=Math.ceil(h.length/k);var w=h.length;h+=Array(m*k-w+1).join(String.fromCharCode(0));var v="";switch(n){case "ecb":for(g=0;g<m;g++){for(n=0;n<k;n++)q[n]=h.charCodeAt(g*k+n);a[f](f,q,l,c);for(n=0;n<k;n++)v+=String.fromCharCode(q[n])}break;case "cbc":if(c)for(g=0;g<m;g++){for(n=0;n<k;n++)q[n]^=h.charCodeAt(g*k+n);a[f](f,q,l,!0);for(n=0;n<k;n++)v+=String.fromCharCode(q[n])}else for(g=
0;g<m;g++){var r=q;q=Array(k);for(n=0;n<k;n++)q[n]=h.charCodeAt(g*k+n);w=q.slice(0);a[f](f,w,l,!1);for(n=0;n<k;n++)v+=String.fromCharCode(r[n]^w[n])}break;case "cfb":for(g=0;g<m;g++)r=q.slice(0),a[f](f,r,l,!0),r=r[0]^h.charCodeAt(g),q.push(c?r:h.charCodeAt(g)),q.shift(),v+=String.fromCharCode(r);v=v.substr(0,w);break;case "ncfb":for(g=0;g<m;g++)for(a[f](f,q,l,!0),n=0;n<k;n++)r=h.charCodeAt(g*k+n),q[n]^=r,v+=String.fromCharCode(q[n]),c||(q[n]=r);v=v.substr(0,w);break;case "nofb":for(g=0;g<m;g++)for(a[f](f,
q,l,!0),n=0;n<k;n++)v+=String.fromCharCode(h.charCodeAt(g*k+n)^q[n]);v=v.substr(0,w);break;case "ctr":for(g=0;g<m;g++){r=q.slice(0);a[f](f,r,l,!0);for(n=0;n<k;n++)v+=String.fromCharCode(h.charCodeAt(g*k+n)^r[n]);r=k;do r--,q[r]+=1,n=q[r]>>8,q[r]&=255;while(n)}v=v.substr(0,w)}a[f].deinit&&a[f].deinit(f,p,c);return v},get_block_size:function(a,c){a||(a=e);return b[a]?b[a][0]:!1},get_cipher_name:function(a){a||(a=e);return b[a]?a:!1},get_iv_size:function(a,c){a||(a=e);return b[a]?b[a][0]:!1},get_key_size:function(a,
c){a||(a=e);return b[a]?b[a][1]:!1},list_algorithms:function(){var a=[],c;for(c in b)a.push(c);return a},list_modes:function(){return"ecb cbc cfb ncfb nofb ctr".split(" ")}},d="cbc",e="rijndael-128",l="12345678911234567892123456789312";return c},Rijndael=Rijndael?Rijndael:new function(){for(var b=[16,24,32],a=[[10,12,14],[12,12,14],[14,14,14]],c={},d=function(b,d,r){var h=b.length,l=d.length,w=0,v=0;switch(h){case 32:w++;case 24:w++;case 16:break;default:throw"rijndael: Unsupported block size: "+
b.length;}switch(l){case 32:v++;case 24:v++;case 16:break;default:throw"rijndael: Unsupported key size: "+d.length;}l=a[w][v];if(!c[d]){v=d.length;for(var m=1,A=Array(480),B=0;B<v;B++)A[B]=d.charCodeAt(B);for(B=v;480>B;B+=4){var F=A.slice(B-4,B);0===B%v?(F=[e[F[1]]^m,e[F[2]],e[F[3]],e[F[0]]],256<=(m<<=1)&&(m^=283)):24<v&&16===B%v&&(F=[e[F[0]],e[F[1]],e[F[2]],e[F[3]]]);for(var G=0;4>G;G++)A[B+G]=A[B+G-v]^F[G]}c[d]=A}d=c[d];l*=h;if(r){k(b,d.slice(0,h));r=g[w];for(w=h;w<l;w+=h){u(b,e);q(b,r);v=b;for(m=
v.length-4;0<=m;m-=4){A=v[m+0];B=v[m+1];F=v[m+2];G=v[m+3];var H=A^B^F^G;v[m+0]=v[m+0]^H^n[A^B];v[m+1]=v[m+1]^H^n[B^F];v[m+2]=v[m+2]^H^n[F^G];v[m+3]=v[m+3]^H^n[G^A]}k(b,d.slice(w,w+h))}u(b,e);q(b,r);k(b,d.slice(w,w+h))}else{k(b,d.slice(l,l+h));r=f[w];q(b,r);u(b,p);for(w=l-h;w>=h;w-=h){k(b,d.slice(w,w+h));l=b;for(v=l.length-4;0<=v;v-=4){m=l[v+0];A=l[v+1];B=l[v+2];F=l[v+3];H=m^A^B^F;var M=n[H];G=n[n[M^m^B]]^H;H^=n[n[M^A^F]];l[v+0]=l[v+0]^G^n[m^A];l[v+1]=l[v+1]^H^n[A^B];l[v+2]=l[v+2]^G^n[B^F];l[v+3]=
l[v+3]^H^n[F^m]}q(b,r);u(b,p)}k(b,d.slice(0,h))}},e=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,
243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[[0,1,2,3],[0,1,2,3],[0,1,3,4]],g=
Array(3),h=0;3>h;h++){g[h]=Array(b[h]);for(var m=b[h];0<=m;m--)g[h][m]=(m+(l[h][m&3]<<2))%b[h]}var p=Array(256);for(h=0;256>h;h++)p[e[h]]=h;var f=Array(3);for(h=0;3>h;h++)for(f[h]=Array(b[h]),m=b[h];0<=m;m--)f[h][g[h][m]]=m;var n=Array(256);for(h=0;128>h;h++)n[h]=h<<1,n[128+h]=h<<1^27;var u=function(a,b){for(var k=a.length-1;0<=k;k--)a[k]=b[a[k]]},k=function(a,b){for(var k=a.length-1;0<=k;k--)a[k]^=b[k]},q=function(a,b){for(var k=a.slice(0),c=a.length-1;0<=c;c--)a[c]=k[b[c]]};return{Encrypt:function(a,
b){d(a,b,!0)},Decrypt:function(a,b){d(a,b,!1)}}},Serpent=Serpent?Serpent:new function(){var b={},a=function(a,b){return(a<<b|a>>>32-b)&4294967295},c=function(a,b){return a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24},d=function(a,b,c){a.splice(b,4,c&255,c>>>8&255,c>>>16&255,c>>>24&255)},e=[],l=function(a,b,c,d,r,f){a[b]^=e[4*f];a[c]^=e[4*f+1];a[d]^=e[4*f+2];a[r]^=e[4*f+3]},g=[function(a,b,c,d,e,f){a[f]=a[e];a[e]|=a[b];a[b]^=a[f];a[f]^=a[d];a[f]=~a[f];a[e]^=a[c];a[c]&=a[b];a[c]^=a[f];a[d]^=a[b];a[b]^=a[e];
a[f]|=a[b];a[b]^=a[d];a[d]&=a[c];a[e]^=a[d];a[c]=~a[c];a[d]^=a[f];a[c]^=a[d]},function(a,b,c,d,e,f){a[f]=a[c];a[c]^=a[b];a[b]^=a[e];a[e]=~a[e];a[f]&=a[c];a[b]|=a[c];a[e]^=a[d];a[b]^=a[e];a[c]^=a[e];a[e]^=a[f];a[c]|=a[f];a[f]^=a[d];a[d]&=a[b];a[d]^=a[c];a[c]|=a[b];a[b]=~a[b];a[b]^=a[d];a[f]^=a[c]},function(a,b,c,d,e,f){a[e]=~a[e];a[c]^=a[b];a[f]=a[b];a[b]&=a[d];a[b]^=a[e];a[e]|=a[f];a[d]^=a[c];a[e]^=a[c];a[c]&=a[b];a[b]^=a[d];a[d]&=a[e];a[e]|=a[c];a[b]=~a[b];a[e]^=a[b];a[f]^=a[b];a[b]^=a[d];a[c]|=
a[d]},function(a,b,c,d,e,f){a[f]=a[c];a[c]^=a[e];a[e]|=a[b];a[f]&=a[b];a[b]^=a[d];a[d]^=a[c];a[c]&=a[e];a[d]^=a[e];a[b]|=a[f];a[f]^=a[e];a[c]^=a[b];a[b]&=a[e];a[e]&=a[f];a[e]^=a[d];a[f]|=a[c];a[d]&=a[c];a[f]^=a[e];a[b]^=a[e];a[e]^=a[d]},function(a,b,c,d,e,f){a[f]=a[e];a[e]&=a[b];a[b]^=a[f];a[e]^=a[d];a[d]|=a[f];a[b]^=a[c];a[f]^=a[e];a[d]|=a[b];a[d]^=a[c];a[c]&=a[b];a[c]^=a[f];a[f]&=a[d];a[d]^=a[e];a[f]^=a[b];a[e]|=a[c];a[c]=~a[c];a[e]^=a[b]},function(a,b,c,d,e,f){a[f]=a[c];a[c]|=a[b];a[d]^=a[c];a[e]=
~a[e];a[f]^=a[b];a[b]^=a[d];a[c]&=a[f];a[f]|=a[e];a[f]^=a[b];a[b]&=a[e];a[c]^=a[e];a[e]^=a[d];a[b]^=a[c];a[d]&=a[f];a[c]^=a[d];a[d]&=a[b];a[e]^=a[d]},function(a,b,c,d,e,f){a[f]=a[c];a[e]^=a[b];a[c]^=a[d];a[d]^=a[b];a[b]&=a[e];a[c]|=a[e];a[f]=~a[f];a[b]^=a[c];a[c]^=a[d];a[e]^=a[f];a[f]^=a[b];a[d]&=a[b];a[f]^=a[c];a[d]^=a[e];a[e]&=a[c];a[e]^=a[b];a[c]^=a[d]},function(a,b,c,d,e,f){a[c]=~a[c];a[f]=a[c];a[b]=~a[b];a[c]&=a[d];a[c]^=a[e];a[e]|=a[f];a[f]^=a[d];a[d]^=a[e];a[e]^=a[b];a[b]|=a[c];a[d]&=a[b];
a[b]^=a[f];a[f]^=a[e];a[e]&=a[b];a[f]^=a[c];a[d]^=a[f];a[e]^=a[c];a[f]|=a[b];a[f]^=a[c]}],h=[function(a,b,c,d,e,f){a[f]=a[e];a[c]^=a[b];a[e]|=a[c];a[f]^=a[c];a[b]=~a[b];a[d]^=a[e];a[e]^=a[b];a[b]&=a[c];a[b]^=a[d];a[d]&=a[e];a[e]^=a[f];a[d]^=a[e];a[c]^=a[e];a[e]&=a[b];a[c]^=a[b];a[b]^=a[d];a[f]^=a[e]},function(a,b,c,d,e,f){a[c]^=a[e];a[f]=a[b];a[b]^=a[d];a[d]=~a[d];a[f]|=a[c];a[f]^=a[e];a[e]&=a[c];a[c]^=a[d];a[d]&=a[f];a[f]^=a[c];a[c]|=a[e];a[e]^=a[b];a[d]^=a[b];a[b]|=a[f];a[d]^=a[f];a[c]^=a[b];a[f]^=
a[c]},function(a,b,c,d,e,f){a[d]^=a[c];a[f]=a[e];a[e]=~a[e];a[e]|=a[d];a[d]^=a[f];a[f]^=a[b];a[e]^=a[c];a[c]|=a[d];a[d]^=a[b];a[c]^=a[f];a[f]|=a[e];a[d]^=a[e];a[f]^=a[d];a[d]&=a[c];a[d]^=a[e];a[e]^=a[f];a[f]^=a[b]},function(a,b,c,d,e,f){a[d]^=a[c];a[f]=a[c];a[c]&=a[d];a[c]^=a[b];a[b]|=a[f];a[f]^=a[e];a[b]^=a[e];a[e]|=a[c];a[c]^=a[d];a[c]^=a[e];a[b]^=a[d];a[d]^=a[e];a[e]&=a[c];a[c]^=a[b];a[b]&=a[d];a[f]^=a[e];a[e]^=a[b];a[b]^=a[c]},function(a,b,c,d,e,f){a[d]^=a[e];a[f]=a[b];a[b]&=a[c];a[b]^=a[d];a[d]|=
a[e];a[f]=~a[f];a[c]^=a[b];a[b]^=a[d];a[d]&=a[f];a[d]^=a[b];a[b]|=a[f];a[b]^=a[e];a[e]&=a[d];a[f]^=a[e];a[e]^=a[c];a[c]&=a[b];a[f]^=a[c];a[b]^=a[e]},function(a,b,c,d,e,f){a[f]=a[c];a[c]|=a[d];a[d]^=a[f];a[c]^=a[e];a[e]&=a[f];a[d]^=a[e];a[e]|=a[b];a[b]=~a[b];a[e]^=a[d];a[d]|=a[b];a[f]^=a[c];a[d]^=a[f];a[f]&=a[b];a[b]^=a[c];a[c]^=a[e];a[b]&=a[d];a[d]^=a[e];a[b]^=a[d];a[d]^=a[f];a[f]^=a[e]},function(a,b,c,d,e,f){a[b]^=a[d];a[f]=a[b];a[b]&=a[e];a[d]^=a[e];a[b]^=a[d];a[e]^=a[c];a[d]|=a[f];a[d]^=a[e];a[e]&=
a[b];a[b]=~a[b];a[e]^=a[c];a[c]&=a[d];a[f]^=a[b];a[e]^=a[f];a[f]^=a[d];a[b]^=a[c];a[d]^=a[b]},function(a,b,c,d,e,f){a[f]=a[e];a[e]&=a[b];a[b]^=a[d];a[d]|=a[f];a[f]^=a[c];a[b]=~a[b];a[c]|=a[e];a[f]^=a[b];a[b]&=a[d];a[b]^=a[c];a[c]&=a[d];a[e]^=a[d];a[f]^=a[e];a[d]&=a[e];a[e]|=a[b];a[c]^=a[f];a[e]^=a[f];a[f]&=a[b];a[f]^=a[d]}],m=[7788,63716,84032,7891,78949,25146,28835,67288,84032,40055,7361,1940,77639,27525,24193,75702,7361,35413,83150,82383,58619,48468,18242,66861,83150,69667,7788,31552,40054,23222,
52496,57565,7788,63716],p=[44255,61867,45034,52496,73087,56255,43827,41448,18242,1939,18581,56255,64584,31097,26469,77728,77639,4216,64585,31097,66861,78949,58006,59943,49676,78950,5512,78949,27525,52496,18670,76143],f=[44255,60896,28835,1837,1057,4216,18242,77301,47399,53992,1939,1940,66420,39172,78950,45917,82383,7450,67288,26469,83149,57565,66419,47400,58006,44254,18581,18228,33048,45034,66508,7449],n=function(b,c,d,f,h,l){e[l]=b[d]=a(e[c]^b[d]^b[f]^b[h]^2654435769^l,11)},u=function(a,b,c,d,f,
h){e[h]=a[b];e[h+1]=a[c];e[h+2]=a[d];e[h+3]=a[f]};b.Init=function(a){var b,c,d;for(32>a.length&&(a[a.length]=1);32>a.length;)a[a.length]=0;for(b=0;8>b;b++)e[b]=a[4*b]&255|(a[4*b+1]&255)<<8|(a[4*b+2]&255)<<16|(a[4*b+3]&255)<<24;var f=[e[3],e[4],e[5],e[6],e[7]];for(a=b=0;n(f,a++,0,4,2,b++),n(f,a++,1,0,3,b++),132>b;)n(f,a++,2,1,4,b++),8===b&&(a=0),n(f,a++,3,2,0,b++),n(f,a++,4,3,1,b++);b=128;a=3;for(d=0;c=m[d++],g[a++%8](f,c%5,c%7,c%11,c%13,c%17),c=m[d],u(f,c%5,c%7,c%11,c%13,b),0<b;){b-=4;var h=f,l=c%
7,k=c%11,p=c%13,y=b;h[c%5]=e[y];h[l]=e[y+1];h[k]=e[y+2];h[p]=e[y+3]}};b.Close=function(){e=[]};b.Encrypt=function(b){var f=b.slice(0);f=[c(f,0),c(f,4),c(f,8),c(f,12)];l(f,0,1,2,3,0);for(var h=0,k=p[h];g[h%8](f,k%5,k%7,k%11,k%13,k%17),31>h;){k=p[++h];var m=f,n=k%5,u=k%7,x=k%11,E=k%13,y=k%17,A=h;m[n]=a(m[n],13);m[x]=a(m[x],3);m[u]^=m[n];m[y]=m[n]<<3&4294967295;m[E]^=m[x];m[u]^=m[x];m[u]=a(m[u],1);m[E]^=m[y];m[E]=a(m[E],7);m[y]=m[u];m[n]^=m[u];m[y]=m[y]<<7&4294967295;m[x]^=m[E];m[n]^=m[E];m[x]^=m[y];
m[E]^=e[4*A+3];m[u]^=e[4*A+1];m[n]=a(m[n],5);m[x]=a(m[x],22);m[n]^=e[4*A];m[x]^=e[4*A+2]}l(f,0,1,2,3,32);d(b,0,f[0]);d(b,4,f[1]);d(b,8,f[2]);d(b,12,f[3])};b.Decrypt=function(b){var g=b.slice(0,16);g=[c(g,0),c(g,4),c(g,8),c(g,12)];l(g,0,1,2,3,32);for(var m=0,k=f[m];h[7-m%8](g,k%5,k%7,k%11,k%13,k%17),31>m;){k=f[++m];var n=g,p=k%5,u=k%7,x=k%11,E=k%13,y=k%17,A=32-m;n[p]^=e[4*A];n[u]^=e[4*A+1];n[x]^=e[4*A+2];n[E]^=e[4*A+3];n[p]=a(n[p],27);n[x]=a(n[x],10);n[y]=n[u];n[x]^=n[E];n[p]^=n[E];n[y]=n[y]<<7&4294967295;
n[p]^=n[u];n[u]=a(n[u],31);n[x]^=n[y];n[E]=a(n[E],25);n[y]=n[p]<<3&4294967295;n[u]^=n[p];n[E]^=n[y];n[p]=a(n[p],19);n[u]^=n[x];n[E]^=n[x];n[x]=a(n[x],29)}l(g,2,3,1,4,0);d(b,0,g[2]);d(b,4,g[3]);d(b,8,g[1]);d(b,12,g[4]);i+=16};return b};mcrypt.pad=function(b,a){if(b.length>=a)return b.substr(0,a);for(a-=b.length;a;a--)b+=String.fromCharCode(Math.floor(256*Math.random()));return b};for(var hexdigits="0123456789ABCDEF",hexLookup=Array(256),i=0;256>i;i++)hexLookup[i]=hexdigits.indexOf(String.fromCharCode(i));
mcrypt.bin2hex=function(b){for(var a="",c=0;c<b.length;c++)a+=hexdigits[b.charCodeAt(c)>>4]+hexdigits[b.charCodeAt(c)&15]+" ";return a};TigerJS.Crypto={};
TigerJS.Crypto.encrypt=function(b,a,c,d){var e=mcrypt.bin2hex(mcrypt.pad("0",mcrypt.get_iv_size(c,d)));e=e.replace(/\s/g,"").substr(0,mcrypt.get_iv_size(c,d));var l=mcrypt.get_key_size(c,d);if(a&&(a.length>l||a.length<l))throw Error("TigerJS::Crypto::encrypt : use a 256 bit key");b=mcrypt.Encrypt(b,e,a,c,d);return{cipherTextRaw:b,cipherTextHex:mcrypt.bin2hex(b).toString().replace(/\s/g,""),iv:e.replace(/\s/g,"").substr(0,mcrypt.get_iv_size(c,d))}};
TigerJS.Crypto.decrypt=function(b,a,c,d,e){var l=mcrypt.get_key_size(d,e);if(c&&(c.length>l||c.length<l))throw Error("TigerJS::Crypto::decrypt : use a 256 bit key");return mcrypt.Decrypt(b,a,c,d,e)};TigerJS.$=function(b){if(b&&b.set_xy)return b;this.el=b.toUpperCase?document.getElementById(b):b;this.el||(this.el=document.createDocumentFragment());this.el.element_siblings=function(){return T.nodes({siblings:this},!0)||null};this.el.append_child=function(a){a&&a.nodeType&&this.appendChild(a);return this};this.el.prev_element_siblings=function(){var a=T.nodes({prevSiblings:this},!0);return a?a:null};this.el.next_element_siblings=function(){var a=T.nodes({extSiblings:this},!0);return a?a:null};this.el.prev_element_sibling=
function(){var a=this.previousElementSibling;return a?T.$(a):(a=T.nodes({prevSiblings:this},!0))?a[0]:null};this.el.next_element_sibling=function(){var a=this.nextElementSibling;return a?T.$(a):(a=T.nodes({nextSiblings:this},!0))?a[0]:null};this.el.remove_child_nodes=function(){for(;this.firstChild;)this.removeChild(this.firstChild);return this};this.el.element_children=function(){return T.nodes({childNodes:this},!0)||null};this.el.parent=function(){return T.$(this.parentNode)};this.el.contains_node=
function(a){var b=T.nodes({childNodes:this},!0);return b?b.contains(a):!1};this.el.first_element_child=function(){var a=this.firstElementChild;a||(a=T.nodes({childNodes:this},!0))&&a.length&&(a=a[0]);return a?T.$(a):!1};this.el.last_element_child=function(){var a=this.lastElementChild;a||(a=T.nodes({childNodes:this},!0))&&a.length&&(a=a[a.length-1]);return a?T.$(a):!1};this.el.set_xy=function(a){a[0]&&(this.style.left=parseInt(a[0],10)+"px");a[1]&&(this.style.top=parseInt(a[1],10)+"px");return this};
this.el.set_x=function(a){return this.set_xy([a,null])};this.el.set_y=function(a){return this.set_xy([null,a])};this.el.get_style=function(a){var b={},d;a=T.Iterator(a||[]);try{var e=document.defaultView.getComputedStyle(this,null)}catch(l){e=this.currentStyle}if(0===a.length){for(d in e)-1===d.toString().search(/[0-9]/)&&(b[d]=e[d]);return b}try{for(d in e)a.forward_iterator(function(a){d===a.to_case("-cm")&&(b[d]=e[d]);"cssText"===d&&T.Iterator(e[d].split(";")).forward_iterator(function(c){c&&c.split(":")[0].trim()===
a&&(b[a.to_case("-cm")]=c.split(":")[1])})})}catch(l){}return b};this.el.get_pad_extents=function(){var a=this.get_style();return{l:a.paddingLeft,r:a.paddingRight,t:a.paddingTop,b:a.paddingBottom,w:parseInt(a.paddingLeft)+parseInt(a.paddingRight)+"px",h:parseInt(a.paddingTop)+parseInt(a.paddingBottom)+"px"}};this.el.get_border_extents=function(){var a=this.get_style();a.borderLeftWidth="none"===this.style.borderLeftStyle||""===this.style.borderLeftStyle?"0px":a.borderLeftWidth;a.borderRightWidth=
"none"===this.style.borderRightStyle||""===this.style.borderRightStyle?"0px":a.borderRightWidth;a.borderTopWidth="none"===this.style.borderTopStyle||""===this.style.borderTopStyle?"0px":a.borderTopWidth;a.borderBottomWidth="none"===this.style.borderBottomStyle||""===this.style.borderBottomStyle?"0px":a.borderBottomWidth;return{l:a.borderLeftWidth,r:a.borderRightWidth,t:a.borderTopWidth,b:a.borderBottomWidth,w:parseInt(a.borderLeftWidth)+parseInt(a.borderRightWidth)+"px",h:parseInt(a.borderTopWidth)+
parseInt(a.borderBottomWidth)+"px"}};this.el.get_pad_border_extents=function(){var a=this.get_pad_extents(),b=this.get_border_extents();return{l:parseInt(a.l)+parseInt(b.l)+"px",r:parseInt(a.r)+parseInt(b.r)+"px",t:parseInt(a.t)+parseInt(b.t)+"px",b:parseInt(a.b)+parseInt(b.b)+"px",w:parseInt(a.w)+parseInt(b.w)+"px",h:parseInt(a.h)+parseInt(b.h)+"px"}};this.el.get_margin_extents=function(){var a=this.get_style();return{l:"auto"===a.marginLeft?"0px":a.marginLeft,t:"auto"===a.marginTop?"0px":a.marginTop,
w:a.width?this.rect().width+"px":parseInt(a.width)+parseInt(a.marginLeft)+"px",h:a.height?this.rect().height+"px":parseInt(a.height)+parseInt(a.marginTop)+"px"}};this.el.set_style=function(a){try{for(var b in a)this.style[b.to_case("-cm")]=a[b]}catch(d){}return this};this.el.set_opacity=function(a){this.filters?this.style.filter="alpha(opacity="+100*a+")":this.style.opacity=a};this.el.get_opacity=function(){return this.filters?this.filters("alpha").opacity/100:"%.1f".sprintf(this.get_style().opacity)};
this.el.swap_xy=function(a){var b=this.get_style();a=T.$(a);var d=a.get_style(["left","top"]);a.set_xy([b.left,b.top]);this.set_xy([d.left,d.top]);return this};this.el.region=function(a){a=this.get_style();return{top:this.style.top?a.top:this.rect().top,right:this.style.right?a.right:this.rect().right,bottom:this.style.bottom?a.bottom:this.rect().bottom,left:this.style.left?a.left:this.rect().left}};this.el.in_region=function(a){a=T.$(a).region();var b=this.region();return b.left>=a.left&&b.top>=
a.top&&b.right<=a.right&&b.bottom<=a.bottom};this.el.remove_class=function(a){a=a.split(" ").join(",");this.classList.remove(a);return this};this.el.add_class=function(a){a=a.split(" ").join(",");this.classList.add(a);return this};this.el.has_class=function(a,b){var c=T.Iterator(this.className.split(" "));for(a=T.Iterator(a.split(" "));a.indexOf("");)a.unset(a.indexOf(""));void 0===b&&(b=!0);return b?!!c.intersect(a).length:c.is_subset(a)};this.el.toggle_class=function(a){this.classList.toggle(a);
return this};this.el.replace_class=function(a,b){this.className=this.className.str_replace(a.split(" "),null,b.split(" "),!0);return this};this.el.class_off=function(){var a=this.getAttribute("class");this.setAttribute("l_closed_class",a);this.setAttribute("class","");return this};this.el.class_on=function(){var a=this.getAttribute("l_closed_class");this.setAttribute("class",a);this.removeAttribute("l_closed_class");return this};this.el.get_text=function(){return this.textContent||this.innerText||
this.nodeValue||this.text||this.value||""};this.el.set_text=function(a){"textContent"in this?this.textContent=a:"innerText"in this?this.innerText=a:"nodeValue"in this&&(this.nodeValue=a);"value"in this&&"type"in this&&(this.value=a);return this};this.el.set_html=function(a){var b="",d,e=0;if(T.is_string(a))b=T.create(a);else if(a.nodeType)b=a;else if(a.item(0)&&a.item(0).nodeType)for(b=document.createDocumentFragment();d=a[e++];)b.appendChild(d);"innerHTML"in this&&(this.innerHTML="",this.appendChild(b));
return this};this.el.get_html=function(){return this.innerHTML};this.el.set_width=function(a){this.set_size("width",a);return this};this.el.set_height=function(a){this.set_size("height",a);return this};this.el.set_size=function(a,b){b=0<b?b:0;this.style[a]=b+"px";var c="height"===a?this.offsetHeight:this.offsetWidth;c>b&&(b-=c-b,0>b&&(b=0),this.style[a]=b+"px")};this.el.scrollX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.el.scrollY=window.pageYOffset||
document.documentElement.scrollTop||document.body.scrollTop||0;this.el.rect=function(){var a=T.clone(this.getBoundingClientRect());a.width||(a.width=a.right-a.left+this.scrollX,a.height=a.bottom-a.top+this.scrollY);return a};this.el.add_html=function(a,b){b=T.is_string(b)?b:"last";a=T.is_string(a)?T.create(a):a.cloneNode(!0);switch(b){case "replace":this.set_html(a);break;case "before":if("body"===this.tagName.toLowerCase())break;this.parentNode.insertBefore(a,this);break;case "after":if("body"===
this.tagName.toLowerCase())break;this.nextSibling?this.parentNode.insertBefore(a,this.nextSibling):this.parentNode.appendChild(a);break;case "first":this.firstChild?this.insertBefore(a,this.firstChild):this.appendChild(a);break;case "last":this.appendChild(a);break;case "p_first":this.parentNode.firstChild&&this.parentNode.insertBefore(a,this.parentNode.firstChild);break;case "p_last":this.parentNode.appendChild(a)}return this};this.el.set_attr=function(a){for(var b in a)if("style"===b)for(var d=
a[b].trim("BOTH").split(/\s*(?::|;)\s*/),e=0,l=d.length;e<l;)try{this.style[d[e++].to_case("-cm")]=d[e++]}catch(g){}else"class"===b?this.className=a[b]:"class"!==b&&this.setAttribute(b,a[b]);return this};this.el.get_attr=function(a){return this.getAttribute(a)};this.el.selectable=function(a){function b(a){this.returnValue&&(this.returnValue=!1);"getSelection"in window&&window.getSelection().removeAllRanges();"selectionEnd"in this.target&&(this.target.selectionEnd=0);this.preventDefault();this.stopPropagation();
this.stopImmediatePropagation()}if(a)this.off("select",b);else this.on("select",b);"MozUserSelect"in this.style&&(this.style.MozUserSelect=a?"selectable":"none");"KhtmlUserSelect"in this.style&&(this.style.KhtmlUserSelect=a?"selectable":"none");"webkitUserSelect"in this.style&&(this.style.webkitUserSelect=a?"selectable":"none");"msUserSelect"in this.style&&(this.style.msUserSelect=a?"selectable":"none");return this};this.el.descendants=function(){for(var a=this.childNodes,b=[],d=0;d<a.length;d++)1===
a[d].nodeType&&(b=b.concat(T.$(a[d]).elementChildren()));return T.nodes(b)};this.el._clone=function(a){return T.$(this.cloneNode(a||!0))};this.el.destroy=function(){this.remove_child_nodes();try{var a=T.$(this.parentNode.removeChild(this))}catch(c){}return a||this};this.el.toggle_visibility=function(){this.style.visibility="hidden"===this.style.visibility?"":"hidden"};this.el.toggle_disabled=function(){this.disabled=this.disabled?!1:!0};this.el._dataset=function(){for(var a=this.attributes,b=[],d=
0;d<a.length;d++)-1<a[d].nodeName.indexOf("data-tigerjs-")&&(b[b.length]=[a[d].nodeName,a[d].nodeValue]);return{_set:b,namedItem:function(a){for(var b=0;b<this._set.length;b++)if(this._set[b][0]==="data-tigerjs-"+a)return this._set[b][1];return null}}};this.el.set_data=function(a,b){this.setAttribute("data-tigerjs-"+a,b);return this};this.el.get_data=function(a){return this.attributes["data-tigerjs-"+a]?this.getAttribute("data-tigerjs-"+a):this.attributes["data-"+a]?this.getAttribute("data-"+a):this.getAttribute(a)};
this.el.outer_html=function(){if(this.outerHTML)return this.outerHTML;var a=document.createElement("div");a.appendChild(this.cloneNode(!0));return a.innerHTML};this.el.swap_sibling_positions=function(){for(var a=[],b=[],d=this,e;d=d.previousSibling;)a.push(d.cloneNode(!0));for(d=this;d=d.nextSibling;)b.push(d.cloneNode(!0));a.reverse();e=this.parentNode;d=this.parentNode.removeChild(this);e.innerHTML="";for(var l=0;l<b.length;l++)e.appendChild(b[l]);e.appendChild(d);for(l=0;l<a.length;l++)e.appendChild(a[l]);
return this};this.el.move_element_child_nodes=function(a,b,d){if(0===a&&"top"===d||b===this.childNodes.length-1&&"bottom"===d)return this;for(var c=T.Iterator(this.elementChildren()),l=[];a<=b;a++)l.push(this.removeChild(c[a]));for(a=0;a<l.length;a++)"top"===d?this.insertBefore(l[a],c[0]):this.appendChild(l[a]);return this};this.el.reverse_child_nodes=function(){var a=T.Iterator(this.childNodes).reverse();this.remove_child_nodes();for(var b=0;b<a.length;b++)this.appendChild(a[b]);return this};this.el.copy_attributes=
function(a){a=T.is_string(a)?T.$(a):a;try{for(var b=this.attributes,d=a.attributes,e=0;e<d.length;e++)"id"!==d[e].nodeName&&a.removeAttribute(d[e].nodeName);for(e=0;e<b.length;e++)"id"!==b[e].nodeName&&a.setAttribute(b[e].nodeName,b[e].nodeValue)}catch(l){}return this};this.el.swap_attributes=function(a){a=T.is_string(a)?T.$(a):a;try{var b=this.attributes,d=a.attributes,e=window.attachEvent&&!window.addEventListener?this.getAttribute("style").cssText:this.getAttribute("style"),l=window.attachEvent&&
!window.addEventListener?a.getAttribute("style").cssText:a.getAttribute("style");window.attachEvent&&!window.addEventListener&&e&&l&&(a.style.cssText=e,this.style.cssText=l);for(var g=0;g<d.length;g++)"id"!==d[g].nodeName&&d[g].nodeValue&&this.setAttribute(d[g].nodeName,d[g].nodeValue);for(g=0;g<b.length;g++)"id"!==b[g].nodeName&&b[g].nodeValue&&a.setAttribute(b[g].nodeName,b[g].nodeValue);a.setAttribute("style",e);this.setAttribute("style",l)}catch(h){}return this};this.el.remove_attr=function(a){"style"===
a?window.attachEvent&&!window.addEventListener?this.style.cssText="":this.removeAttribute("style"):this.removeAttribute(a);return this};this.el._remove_attributes=function(){var a=this.attributes;try{window.attachEvent&&!window.addEventListener&&(this.style.cssText="");for(var b=0;b<a.length;b++)this.removeAttribute(a[b].nodeName);this.removeAttribute("style")}catch(d){}return this};this.el.replace_node=function(a){a&&T.is_string(a)&&(a=T.create(a));this.parentNode.replaceChild(a,this);return this};
this.el.wrap_node=function(a){a&&T.is_string(a)&&(a=document.createElement(a));var b=this.cloneNode(!0);a.appendChild(b);this.parentNode.replaceChild(a,this);return T.$(a)};this.el.each_child=function(a){T.nodes({childNodes:this})._each(a);return this};this.el.each_sibling=function(a){T.nodes({siblings:this})._each(a);return this};this.el.on=function(a,b,d,e,l){(new T.EventManager).init(this,a,b,d,e,l);return this};this.el.fire=function(a,b){var c=this;if(a in this||"on"+a in this)if(document.createEvent){var e=
document.createEvent("HTMLEvents");e.initEvent(a,!0,!0);c.dispatchEvent(e)}else e=document.createEventObject(),c.fireEvent("on"+a,e);else this["event_cache_"+a]&&this["event_cache_"+a].forward_iterator(function(d){var e={type:a,target:b||c,timeStamp:(new Date).getTime()};d.apply(e)});return this};this.el.off=function(a,b){a=a.replace("on","");a=a.explode(" ");this.EvHandlers.unset(this.EvHandlers.indexOf(b));try{for(var c=0;c<a.length;c++)this["event_cache_"+a[c]]&&this["event_cache_"+a[c]].unset(this["event_cache_"+
a[c]].indexOf(b))}catch(e){}return this};this.el.on_key=function(a,b){var c,e=T.Iterator(),l=function(){var a=T.Iterator(e).unique(),c=T.Iterator(),d=g,f=!0;this.shiftKey&&c.add("Shift");this.ctrlKey&&c.add("Control");this.altKey&&c.add("Alt");c.add(this.key);if(this.type===d&&c.length===a.length){for(d=0;d<c.length;d++)c.contains(a[d])||(f=!1);f&&b(this)}};/\bControl|Ctrl|Meta|ctrlKey\b/.test(a)&&e.add("Control");/\bAlt\b/.test(a)&&e.add("Alt");/\bShift\b/.test(a)&&e.add("Shift");if((c=/PageUp|PageDown\b/.exec(a))||
(c=/\b(Left|Up|Down|Right|Home|End|Insert|Delete|Enter|BackSpace|CapsLock|Tab|Escape|SpaceBar)\b/.exec(a))||(c=/\b(ArrowLeft|ArrowUp|ArrowDown|ArrowRight)\b/.exec(a))){e.add(c[0]);this.on("keydown",l);var g="keydown";return this}if(c=/\b(f|F)\d{1,2}\b/.exec(a))return e.add(c[0].toUpperCase()),this.on("keydown",l),g="keydown",this;if(c=/[~!@#\$%\^&\*\(\)_\+\{\};"<>\?\\"\|]/.exec(a))e.add(c[0]),this.on("keypress",l),g="keypress",e.contains("Shift")||e.add("Shift");if(c=/[`\[\]`,\.\/;']/.exec(a))return e.add(c[0]),
this.on("keypress",l),g="keypress",this;if(c=/\b\w{1}\b/i.exec(a))e.add(c[0]),this.on("keypress",l),g="keypress";return this};this.el.in_first=function(){return T.$(this.parentNode).first_element_child()===this};this.el.in_last=function(){return T.$(this.parentNode).last_element_child()===this};this.el.in_child=function(a){return T.Iterator(this.children).contains(T.$(a))};this.el.in_child_of=function(a){return T.Iterator(a.children).contains(this)};this.el.on_wheel=function(a){this.on("wheel",function(){this.deltaY&&
0>this.deltaY?a&&a(-1,this):a&&a(1,this)});return this};this.el.__to_string=function(){try{return"[object TigerJS.$]/HTML"+this.tagName.to_case("-ufl")+"Element"}catch(a){return"[object TigerJS.$]/DocumentFragment]"}};return this.el};TigerJS.EventManager=function(){"hasOwnProperty"in Event.prototype||addHasOwnProperty(event);"stopPropagation"in Event.prototype||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0},Event.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.cancelBubble=!0});"preventDefault"in Event.prototype||(Event.prototype.preventDefault=function(){this.returnValue=!1});var b,a,c,d,e,l=null,g=T.Iterator("focus;blur;dblclick;click;mousedown;mouseup;mouseover;mousemove;mouseout;keypress;mouseleave;mouseenter;textinput;keydown;keyup;submit;reset;select;change;resize;scroll; abort;load;focusin;focusout;unload;wheel;mousewheel;contextmenu;progress;loadstart;timeout;loadend;error;touchstart;touchend;touchmove;touchcancel;animationstart;animationend;animationiteration;webkitAnimationStart;webkitAnimationEnd;webkitAnimationIteration;mozAnimationStart;mozAnimationEnd;mozAnimationIteration;MSAnimationStart;MSAnimationEnd;MSAnimationIteration;transitionend;webkitTransitionEnd, mozTransitionEnd, oTransitionEnd".split(";")),
h=function(a){a=T.clone(a);var b=a.which||a.keyCode;if(65<=b&&90>=b||97<=b&&122>=b||48<=b&&57>=b&&"keypress"===a.type)a.key=a["char"]=a._char=String.fromCharCode(b);-1!==String.fromCharCode(b).search(/\|[`~!@#\$%\^&\*\(\)\-_=\+\[\]\{\};:'",<\.>\/\?\\]/g)&&"keypress"===a.type&&(a.key=a["char"]=a._char=String.fromCharCode(b));if("keydown"===a.type)switch(b){case 8:a.key="BackSpace";a["char"]="\b";a._char="\b";break;case 9:a.key="Tab";a["char"]="\t";a._char="\t";break;case 13:a.key="Enter";a["char"]=
"\u0013";a._char="\u0013";break;case 16:a.key="Shift";a["char"]="";a._char="";break;case 17:a.key="Control";a["char"]="";a._char="";break;case 18:a.key="Alt";a["char"]="";a._char="";break;case 20:a.key="CapsLock";a["char"]="";a._char="";break;case 27:a.key="Escape";a["char"]="\u001b";a._char="\u001b";break;case 32:a.key="SpaceBar";a["char"]=" ";a._char=" ";break;case 33:a.key="PageUp";a["char"]="";a._char="";break;case 34:a.key="PageDown";a["char"]="";a._char="";break;case 35:a.key="End";a["char"]=
"";a._char="";break;case 36:a.key="Home";a["char"]="";a._char="";break;case 37:a.key="Left";a["char"]="";a._char="";break;case 38:a.key="Up";a["char"]="";a._char="";break;case 39:a.key="Right";a["char"]="";a._char="";break;case 40:a.key="Down";a["char"]="";a._char="";break;case 45:a.key="Insert";a["char"]="";a._char="";break;case 46:a.key="Delete";a["char"]="";a._char="";break;case 47:a.key="Help";a["char"]="";a._char="";break;case 93:a.key="Select";a["char"]="";a._char="";break;case 112:a.key="F1";
a["char"]="";a._char="";break;case 113:a.key="F2";a["char"]="";a._char="";break;case 114:a.key="F3";a["char"]="";a._char="";break;case 115:a.key="F4";a["char"]="";a._char="";break;case 116:a.key="F5";a["char"]="";a._char="";break;case 117:a.key="F6";a["char"]="";a._char="";break;case 118:a.key="F7";a["char"]="";a._char="";break;case 119:a.key="F8";a["char"]="";a._char="";break;case 120:a.key="F9";a["char"]="";a._char="";break;case 121:a.key="F10";a["char"]="";a._char="";break;case 122:a.key="F11";
a["char"]="";a._char="";break;case 123:a.key="F12";a["char"]="";break;case 124:a.key="F13",a["char"]="",a._char="";case 125:a.key="F14";a["char"]="";a._char="";break;case 126:a.key="F15",a["char"]="",a._char=""}a.key=a.key;a["char"]=a["char"];a._char=a._char;try{a.fromElement&&(a.fromElement=T.$(a.fromElement)),a.toElement&&(a.toElement=T.$(a.toElement))}catch(u){}try{a.relatedTarget=m(a),a.timeStamp=(new Date).getTime(),a.target=T.$(a.currentTarget||a.srcElement||a.target),a.clientX=a.clientX||a.Y||
this.changedTouches[0].pageY,a.clientY=a.clientY||a.X||this.changedTouches[0].pageX,a.defaultPrevented=a.defaultPrevented||a.returnValue}catch(u){}return a},m=function(a){if(void 0!==a.relatedTarget)try{if(a.relatedTarget&&a.relatedTarget.nodeType)return T.$(a.relatedTarget)}catch(n){}else{if(void 0!==a.fromElement&&a.type.search(!0))return T.$(a.fromElement);if(void 0!==a.toElement&&a.type.search(!0))return T.$(a.toElement)}return null},p=function(f){!1===a&&f.stopPropagation();f=h(f);if(d.EvHandlers.contains(b)&&
-1!==e.search(/enter|leave/g)&&f.target.mouseSyn){if(!f.relatedTarget||-1!==f.relatedTarget.tagName.search(/html|body/i)||f.relatedTarget===f.target.parentNode||T.$(f.target.parentNode).contains_node(f.relatedTarget))l?b.apply(f,l):b.apply(f)}else d.EvHandlers.contains(b)&&-1===e.search(/enter|leave/g)&&(l?b.apply(f,l):b.apply(f));c&&(d.removeEventListener(e,p,!1),d.off(e,b))};this.init=function(f,h,m,k,q,w){h=h.explode(" ");for(var n=0;n<h.length;n++)if(0<=g.str_index_of(h[n])){"click"===h[n].replace(/^on/,
"")&&"touchend"in f&&(h[n]="touchend");var u=f,D=h[n].replace(/^on/,""),C=m,x=k,E=q,y=w||"";b=C;d=u;a=0==x?!1:!0;c=!!E;e=D;l=y;u.EvHandlers?u.EvHandlers.contains(C)||u.EvHandlers.add(C):(u.EvHandlers=T.Iterator(),u.EvHandlers.add(C));u.addEventListener?"mouseenter"!==D||"mouseenter"in u?"mouseleave"!==D||"mouseleave"in u?u.addEventListener(D,p):(u.mouseSyn=!0,u.addEventListener("mouseout",p)):(u.mouseSyn=!0,u.addEventListener("mouseover",p)):"mouseenter"!==D||"mouseenter"in u?"mouseleave"!==D||"mouseleave"in
u?u.attachEvent("on"+D,p):(u.mouseSyn=!0,u.attachEvent("onmouseout",p)):(u.mouseSyn=!0,u.attachEvent("onmouseover",p))}else f["event_cache_"+h[n]]?f["event_cache_"+h[n]].contains(m)||f["event_cache_"+h[n]].add(m):f["event_cache_"+h[n]]=T.Iterator().add(m)};return this};TigerJS.nodes=function(b,a){return(new function(a,b){b||(b=!1);var c=null,d=[],g=TigerJS.Iterator();c=null;var h;T.is_array(a)&&(d=TigerJS.Iterator().concat(a),a=null);if(a&&a.childNodes)for(d=[],c=T.$(a.childNodes).firstChild;c;)c.tagName&&d.push(c),c=c.nextSibling;if(a&&a.siblings){d=[];for(c=T.$(a.siblings);c=c.previousSibling;)c.tagName&&d.unshift(c);for(c=T.$(a.siblings);c=c.nextSibling;)c.tagName&&d.push(c)}if(a&&a.prevSiblings&&!a.siblings)for(d=[],c=T.$(a.prevSiblings);c=c.previousSibling;)c.tagName&&
d.push(c);if(a&&a.nextSiblings&&!a.siblings)for(d=[],c=T.$(a.nextSiblings);c=c.nextSibling;)c.tagName&&d.push(c);if(!d.length&&b)return!1;d.length||(d=T.Iterator(document.querySelectorAll("*")));if(a&&a.tagName){c=T.Iterator(a.tagName.split(" "));for(h=0;h<d.length;h++)d[h].tagName&&c.contains(d[h].tagName.toLowerCase())&&g.push(d[h]);d=[].concat(g);g.empty();c=null}if(a&&a.attributes){c=a.attributes.split(" ");for(h=0;h<d.length;h++)if(d[h].tagName)for(b=0;b<c.length;b++)d[h].attributes.length&&
d[h].getAttribute(c[b].split("=")[0])&&d[h].getAttribute(c[b].split("=")[0])===c[b].split("=")[1]&&g.push(d[h]);d=[].concat(g);g.empty()}try{if(a&&a._class){var m=a._class.trim().split(" ");for(h=0;h<d.length;h++)if(d[h].className&&d[h].attributes&&d[h].attributes.getNamedItem("class")){var p=T.Iterator(d[h].attributes.getNamedItem("class").nodeValue.trim().split(" "));p.intersect(m).length&&g.push(d[h])}d=[].concat(g);g.empty()}c=c=null}catch(f){}this.n=d;for(h=0;h<this.n.length;h++)this.n[h]=T.$(this.n[h]);
this.n=T.Iterator(this.n);this.n._add_class=function(a,b){if(!this.length)return this;if(b)if("even"===b)this.forward_iterator(function(b){b.add_class(a)},2);else if("odd"===b){var c=this.odd().forward_iterator(function(b){b.add_class(a)});this.empty().concat(c)}else for(h=0;h<this.length;h++)this.forward_iterator(function(c){b(c)&&c.add_class(a)});else this.forward_iterator(function(b){b.add_class(a)});return this};this.n._insert=function(a,b){if(!this.length||!a)return this;switch(b){case "before":this.forward_iterator(function(b){b.add_html(a,
"before")});break;case "after":this.forward_iterator(function(b){b.add_html(a,"after")});break;case "append":this.forward_iterator(function(b){b.add_html(a,"last")});break;case "prepend":this.forward_iterator(function(b){b.add_html(a,"first")})}return this};this.n._destroy=function(){this.length&&this.forward_iterator(function(a){try{a.destroy()}catch(n){}});return this};this.n._attr=function(a,b){var c;b?this.forward_iterator(function(a,b,c){var d={};d[b]=c;a.set_attr(d)},null,T.Iterator(arguments).to_array()):
c=this[0].get_attr(a);return c||this};this.n._each=function(a,b){if(this.length)return this.forward_iterator(function(c){a.call(b?b:window,c)}),this};this.n._style=function(a){var b=T.Iterator(),c;for(c=0;c<this.size();c++)b.add_all(this[c].get_style([a]));return b.to_array()};this.n._html=function(a){return this.length?a?(this.forward_iterator(function(b){b.set_html(a)}),this):this[0].get_html():"NoDataAvailable"};this.n._css=function(a){if(a)this.forward_iterator(function(b){for(h in a)b.style[h.to_case("-cm")]=
a[h]});else return this[0].get_style();return this};this.n._has_class=function(a){var b=!0;this.length&&this.forward_iterator(function(c){c.has_class(a,!1)||(b=!1)});return b};this.n._remove_class=function(a){this.length&&this.forward_iterator(function(b){b.remove_class(a)});return this};this.n._replace_class=function(a,b){this.forward_iterator(function(c){c.replace_class(a,b)});return this};this.n._toggle_class=function(a){this.length&&this.forward_iterator(function(b){b.toggle_class(a)});return this};
this.n._on=function(a,b,c,d,e){this.length&&this.forward_iterator(function(h){h.on(a,b,c,d,e)});return this};this.n._off=function(a,b){this.length&&this.forward_iterator(function(c){c.off(a,b)});return this};this.n._fire=function(a){this.length&&this.forward_iterator(function(b){b.fire(a)});return this};this.n._remove_attr=function(a){this.forward_iterator(function(b){b.remove_attr(a)});return this};this.n._text=function(a){if(this.length){if(void 0===a)return this[0].get_text();this.forward_iterator(function(b){b.set_text(a)})}return this};
this.n._children=function(){var a=T.Iterator;this.forward_iterator(function(b){a.merge(b.element_children())});return T.nodes(a)};this.n._width=function(a){this.forward_iterator(function(b){b.set_width(a)});return this};this.n._height=function(a){this.length&&this.forward_iterator(function(b){b.set_height(a)});return this};this.n._data=function(a,b){if(this.length){if(!b)return this[0].get_data(a);this.forward_iterator(function(c){c.set_data(a,b)})}return this};this.n._remove_data=function(a){this.length&&
this.forward_iterator(function(b){b.removeAttribute("data-lick"+a)});return this};this.n.__to_string=function(){return"[object TigerJS.nodes]"}}(b,a)).n};T.globalWidgetCache={get_widget_instance_id:function(){}};TigerJS.UI={};
TigerJS.UI.Color={blend:function(b,a,c){0>c&&(c=0);1<c&&(c=1);return[Math.round(c*b[0]+(1-c)*a[0]),Math.round(c*b[1]+(1-c)*a[1]),Math.round(c*b[2]+(1-c)*a[2])]},lighten:function(b,a){return this.blend([255,255,255],b,a)},darken:function(b,a){return this.blend([0,0,0],b,a)},color_to_hex:function(b){b=T.is_array(b)?b:this.parse(b);return"#"+(1===parseInt(b[0]).toString(16).length?"0"+parseInt(b[0]).toString(16):parseInt(b[0]).toString(16))+(1===parseInt(b[1]).toString(16).length?"0"+parseInt(b[1]).toString(16):
parseInt(b[1]).toString(16))+(1===parseInt(b[2]).toString(16).length?"0"+parseInt(b[2]).toString(16):parseInt(b[2]).toString(16))},color_to_hsl:function(b){b=T.is_array(b)?b:this.parse(b);var a=b[0]/255,c=b[1]/255,d=b[2]/255,e=Math.max(a,c,d),l=Math.min(a,c,d),g=0,h=0,m=.5*(e+l);e!=l&&(e==a?g=60*(c-d)/(e-l):e==c?g=60*(d-a)/(e-l)+120:e==d&&(g=60*(a-c)/(e-l)+240),h=0<m&&.5>=m?(e-l)/(2*m):(e-l)/(2-2*m));return{h:Math.round(g+360)%360,s:h,l:m,a:b[3]||1}},get_color:function(b){b=T.$(b);return this.parse(b.get_style().color)},
set_color:function(b,a){b=T.$(b);a=T.is_array(a)?a:this.parse(a);b.set_style({"background-color":"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+(a[3]||0===a[3]?a[3]:1)+")"})},interpolate:function(b,a){b=this.parse(b);a=this.parse(a);return[b[0]+.5*(a[0]-b[0]),b[0]+.5*(a[1]-b[1]),b[0]+.5*(a[2]-b[2]),1]},parse:function(b){if(b.r&&0<=b.r)return[b.r,b.g,b.b,void 0===b.a?1:b.a];b.h&&0<=b.h&&(b="hsla("+b.h+","+b.s+","+b.l+","+(void 0===b.a?1:b.a)+")");var a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,
235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,
134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,
105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,
240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,
0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,
0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,
69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,
245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};b=b.trim().toLowerCase();try{if(a[b])return a[b]}catch(p){}if(a=b.match(/^#([0-9a-f]{3})$/i))return a=a[1],[17*parseInt(a.charAt(0),16),17*parseInt(a.charAt(1),16),17*parseInt(a.charAt(2),16),1];if(a=b.match(/^#([0-9a-f]{6})$/i))return a=a[1],[parseInt(a.substr(0,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(4,2),16),1];if(a=b.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+.*\d*)\s*\)$/i)||b.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i)||
b.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\.*\d*)\s*\)$/i))return[a[1],a[2],a[3],void 0===a[4]?1:a[4]];var c=b.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(c)return[c[1],c[2],c[3],1];if(-1<b.indexOf("hsl")){var d=b.match(/(\d+(\.\d+)?)/g);a=d[0];b=d[1]/100;var e=d[2]/100;d=void 0===d[3]?1:d[3];if(0==b){var l=Math.round(255*e);c=[l,l,l,d]}else{var g=.5>e?e*(1+b):e+b-e*b;e=2*e-g;c=[0,0,0];for(b=0;3>b;b++)l=a+1/3*-(b-1),0>l&&l++,1<l&&l--,l=1>6*l?e+6*(g-e)*l:1>2*l?g:2>
3*l?e+(g-e)*(2/3-l)*6:e,c[b]=Math.round(255*l)}c.push(d);return c}if(-1<b.indexOf("hsb")){c=b.match(/(\d+(\.\d+)?)/g);a=360===c[0]?0:c[0];b=c[1]/100;c=c[2]/100;l=b;if(0!==l){a/=60;b=Math.floor(a);var h=a-b;a=c*(1-l);var m=c*(1-l*h);l=c*(1-l*(1-h));switch(b){case 0:d=c;g=l;e=a;break;case 1:d=m;g=c;e=a;break;case 2:d=a;g=c;e=l;break;case 3:d=a;g=m;e=c;break;case 4:d=l;g=a;e=c;break;case 5:d=c,g=a,e=m}}return[Math.round(255*d),Math.round(255*g),Math.round(255*e),1]}}};
TigerJS.UI.FX={Animation:function(b){var a=b.el.outer_html?b.el:T.$(b.el),c=a.rect();if(-1!==b.name.strpos("wipe")){var d=c.width;c=c.height;"wipe-left"===b.name?(a.style.clip="rect(0px,"+d+"px,"+c+"px,0px)",document.getElementById(a.id+"_wipeleft")||(d="@-webkit-keyframes "+a.id+"_wipeLeft{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,"+d+"px);}} @keyframes "+a.id+"_wipeLeft{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,"+d+"px);}} ",
c=document.createElement("style"),c.id=a.id+"_wipeLeft",c.textContent=d,document.documentElement.firstChild.appendChild(c)),a.set_style({animation:new String(a.id+"_wipeLeft "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_wipeLeft "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||
"normal")+" "+(b.fillMode||"both"))})):"wipe-top"===b.name?(a.style.clip="rect(0px,"+d+"px,"+c+"px,0px)",document.getElementById(a.id+"_wipeTop")||(d="@-webkit-keyframes "+a.id+"_wipeTop{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect("+c+"px,"+d+"px,"+c+"px,0px);}} @keyframes "+a.id+"_wipeTop{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect("+c+"px,"+d+"px,"+c+"px,0px);}} ",c=document.createElement("style"),c.id=a.id+"_wipeTop",c.textContent=d,document.documentElement.firstChild.appendChild(c)),
a.set_style({animation:new String(a.id+"_wipeTop "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_wipeTop "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))})):"wipe-bottom"===b.name?(a.style.clip="rect(0px,"+d+"px,"+c+"px,0px)",document.getElementById(a.id+
"_wipeBottom")||(d="@-webkit-keyframes "+a.id+"_wipeBottom{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,0px,0px);}} @keyframes "+a.id+"_wipeBottom{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,0px,0px);}} ",c=document.createElement("style"),c.id=a.id+"_wipeBottom",c.textContent=d,document.documentElement.firstChild.appendChild(c)),a.set_style({animation:new String(a.id+"_wipeBottom "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+
"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_wipeBottom "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))})):"wipe-right"===b.name&&(a.style.clip="rect(0px,"+d+"px,"+c+"px,0px)",document.getElementById(a.id+"_wipeRight")||(d="@-webkit-keyframes "+a.id+"_wipeRight{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,0px,"+
c+"px,0px);}} @keyframes "+a.id+"_wipeRight{ from{ clip:rect(0px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,0px,"+c+"px,0px);}} ",c=document.createElement("style"),c.id=a.id+"_wipeRight",c.textContent=d,document.documentElement.firstChild.appendChild(c)),a.set_style({animation:new String(a.id+"_wipeRight "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_wipeRight "+
(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))}))}else-1!==b.name.search(/slidei/g)?(d=c.width,c=c.height,"slidein-left"===b.name?(a.style.clip="rect(0px,0px,"+c+"px,0px)",a.style.opacity="1",document.getElementById(a.id+"_slideInLeft")||(d="@-webkit-keyframes "+a.id+"_slideInLeft{ from{ clip:rect(0px,0px"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}} @keyframes "+a.id+"_slideInLeft{ from{ clip:rect(0px,0px"+
c+"px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}} ",c=document.createElement("style"),c.id=a.id+"_slideInLeft",c.textContent=d,document.documentElement.firstChild.appendChild(c)),a.set_style({animation:new String(a.id+"_slideInLeft "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_slideInLeft "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?
b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))})):"slidein-right"===b.name?(a.style.clip="rect(0px,"+d+"px,"+c+"px,"+d+"px)",a.style.opacity="1",document.getElementById(a.id+"_slideInRight")||(d="@-webkit-keyframes "+a.id+"_slideInRight{ from{ clip:rect(0px,"+d+"px,"+c+"px,"+d+"px)} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}} @keyframes "+a.id+"_slideInRight{ from{ clip:rect(0px,"+d+"px,"+c+"px,"+d+"px)} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}} ",c=document.createElement("style"),
c.id=a.id+"_slideInRight",c.textContent=d,document.documentElement.firstChild.appendChild(c)),a.set_style({animation:new String(a.id+"_slideInRight "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_slideInRight "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||
"both"))})):"slidein-bottom"===b.name?(a.style.clip="rect("+c+"px,"+d+"px,"+c+"px,0px)",a.style.opacity="1",document.getElementById(a.id+"_slideInBottom")||(d="@-webkit-keyframes "+a.id+"_slideInBottom{ from{ clip:rect("+c+"px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}} @keyframes "+a.id+"_slideInBottom{ from{ clip:rect("+c+"px,"+d+"px,"+c+"px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}}",c=document.createElement("style"),c.id=a.id+"_slideInBottom",c.textContent=d,document.documentElement.firstChild.appendChild(c)),
a.set_style({animation:new String(a.id+"_slideInBottom "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_slideInBottom "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))})):"slidein-top"===b.name&&(a.style.clip="rect(0px,"+d+"px,0px,0px)",a.style.opacity=
"1",document.getElementById(a.id+"_slideInTop")||(d="@-webkit-keyframes "+a.id+"_slideInTop{ from{ clip:rect(0px,"+d+"px,0px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}} @keyframes "+a.id+"_slideInTop{ from{ clip:rect(0px,"+d+"px,0px,0px);} to{ clip:rect(0px,"+d+"px,"+c+"px,0px);}}",c=document.createElement("style"),c.id=a.id+"_slideInTop",c.textContent=d,document.documentElement.firstChild.appendChild(c)),a.set_style({animation:new String(a.id+"_slideInTop "+(b.time?b.time+"s":"1s")+" "+(b.curve||
"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both")),WebkitAnimation:new String(a.id+"_slideInTop "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))}))):a.set_style({animation:new String(b.name+" "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+
" "+(b.fillMode||"both")),WebkitAnimation:new String(b.name+" "+(b.time?b.time+"s":"1s")+" "+(b.curve||"ease-in")+" "+(b.delay?b.delay+"s":"0s")+" "+(b.iteration||"1")+" "+(b.direction||"normal")+" "+(b.fillMode||"both"))});return{_onanimationstart:function(b){T.each(arguments,function(b,c){a.on("webkitAnimationStart animationstart MSAnimationStart mozAnimationStart",b)});return this},_onanimationend:function(b){T.each(arguments,function(b,c){a.on("animationend webkitAnimationEnd MSAnimationEnd mozAnimationEnd",
b)});return this},_onanimationiterate:function(b){T.each(arguments,function(b,c){a.on("animationiteration webkitAnimationIteration MSAnimationIteration mozAnimationIteration",b)});return this}}},draggable:function(b,a){if(b=T.is_string(b)?T.$(b):b.nodeType&&1===b.nodeType?T.$(b):b._widgetElement){var c,d,e,l,g=!1,h,m,p=a||{},f=null,n=null,u,k,q=!1,w=!1;p.constrain=!0===p.constrain||!1===p.constrain?p.constrain:p.constrain=!0}b&&p.dragTarget&&(b.className+=" t-dragHandle",q=T.$(p.dragTarget));var v=
function(){if(/\b(button|a|input|textarea)\b/gi.test(this.target.tagName))this.target.style.cursor="auto";else if(!/t-no-drag/gi.test(this.target.className))return c=this.touches?this.changedTouches[0].pageX:this.clientX,d=this.touches?this.changedTouches[0].pageY:this.clientY,e=q?parseInt(q.offsetLeft):parseInt(b.offsetLeft),l=q?parseInt(q.offsetTop):parseInt(b.offsetTop),u=q?q.offsetParent.scrollWidth:b.offsetParent.scrollWidth,k=q?q.offsetParent.scrollHeight:b.offsetParent.scrollHeight,g=!0,!1},
r=function(a){a=q?q:a;a.style.cursor="move";if(!1!==g){h=this.touches?this.changedTouches[0].pageX:this.clientX;m=this.touches?this.changedTouches[0].pageY:this.clientY;var b=h-c,x=m-d;if(p.constrain||a.offsetParent===document.body||"HTML"===a.offsetParent.tagName)0>=a.offsetTop&&!p.H&&(a.style.top="0px",n||(n=m)),0!==parseInt(a.style.top)||p.H||(1>=m-n?x=0:(a.style.top=parseInt(a.style.top)+x+"px",n=null)),0>=k-(a.offsetTop+a.offsetHeight)&&!p.H&&(a.style.top=k-a.offsetHeight+"px",n||(n=m)),parseInt(a.style.top)!==
k-a.offsetHeight||p.H||(-1<=m-n?x=0:(a.style.top=parseInt(a.style.top)-x+"px",n=null)),0>=a.offsetLeft&&!p.V&&(a.style.left="0px",f||(f=h)),0!==parseInt(a.style.left)||p.V||(1>h-f?b=0:(a.style.left=parseInt(a.style.left)+b+"px",f=null)),0>=u-(a.offsetLeft+a.offsetWidth)&&!p.V&&(a.style.left=u-a.offsetWidth+"px",f||(f=h)),parseInt(a.style.left)!==u-a.offsetWidth||p.V||(-1<h-f?b=0:(a.style.left=parseInt(a.style.left)-b+"px",f=null));var r=b,y=x;if(!p.V)if(0<r)for(x=0;x<r;x++)a.style.left=e+x+"px";else for(x=
0;x>b;x--)a.style.left=e+x+"px";if(!p.H)if(0<y)for(x=0;x<y;x++)a.style.top=l+x+"px";else for(x=0;x>y;x--)a.style.top=l+x+"px";q?w.fire("_dragmove"):a.fire("_dragmove")}};a=function(){b.style.position=void 0;b.style.cursor="auto";g=!1;q?w.fire("_dragend"):b.fire("_dragend");"true"===this.target.get_attr("contenteditable")&&(this.target.set_attr({contenteditable:"false"}),this.target.set_attr({contenteditable:"true"}),this.target.focus())};b&&(b.on("mousedown",v),b.on("touchstart",v),T.$(document.body).on("mousemove",
r,!0,!1,[b]),T.$(document.body).on("touchmove",r,!0,!1,[b]),T.$(document.body).on("mouseup",a),T.$(document.documentElement).on("mouseup",a),T.$(document.body).on("touchend",a),T.$(document.documentElement).on("touchend",a));return{cancel_drag:function(a){a=a.nodType&&1===a.nodType?a:T.$(a);a.off("mousedown",v);a.off("touchstart",v);T.$(document.body).off("mousemove",r);T.$(document.body).off("touchmove",r);T.$(document.documentElement).off("mousemove",r);T.$(document.documentElement).off("touchmove",
r)}}},resizable:function(b,a){function c(a){a.stopPropagation();e.style.width=startWidth+a.clientX-l+"px";e.style.height=startHeight+a.clientY-g+"px"}function d(b){window.removeEventListener("mousemove",c,!1);window.removeEventListener("mouseup",d,!1);a&&a()}var e=T.$(b);b=T.$(document.createElement("div"));var l,g;b.className+="T-resizer t-no-drag";b.style.width="15px";b.style.zIndex="10000";b.style.height="15px";b.style.background="red";b.style.position="absolute";b.style.right="-.5em";b.style.bottom=
"-.5em";b.style.cursor="se-resize";b.style.borderRadius=".5em";e.appendChild(b);b.on("mousedown",function(){l=this.clientX;g=this.clientY;startWidth=parseInt(e.get_style().width,10);startHeight=parseInt(e.get_style().height,10);window.addEventListener("mousemove",c,!1);window.addEventListener("mouseup",d,!1)},!1)}};
TigerJS.UI.Swiper=function(b,a){function c(a){a=this.touches?this.changedTouches[0]:this;m=a.pageX-g;p=a.pageY-h;Math.abs(m)>Math.abs(p)?(e=0>m?"left":"right",u(this,e,"move",l,m)):(e=0>p?"up":"down",u(this,e,"move",l,p))}var d=T.$(b),e,l,g,h,m,p,f,n,u=a;d.on("touchstart mousedown",function(a){a=this.touches?this.changedTouches[0]:this;l=e="none";dist=0;g=a.pageX;h=a.pageY;n=(new Date).getTime();d.on("touchmove mousemove",c);u(this,"none","start",l,0)});d.on("touchend mouseup",function(a){f=(new Date).getTime()-
n;400>=f&&(40<=Math.abs(m)&&150>=Math.abs(p)?l=e:40<=Math.abs(p)&&150>=Math.abs(m)&&(l=e));d.off("touchmove mousemove",c);u(this,e,"end",l,"left"===e||"right"===e?m:p)})};
TigerJS.UI.Widget=function(b){var a=b&&b.elementType?T.$(document.createElement(b.elementType)):T.$(document.createElement("div"));(!b||b&&!b.elementType)&&a.set_style({minWidth:"5em",minHeight:"5em",width:b&&b.width?b.width+"em":"5em",height:b&&b.height?b.height+"em":"5em",backgroundColor:"lightgray",position:"absolute",borderRadius:"6px",left:b&&b.pos_x?b.pos_y+"em":"1em",top:b&&b.pos_x?b.pos_x+"em":"1em"});b&&b.html&&(a.innerHTML=b.html);a.__to_string=function(){return"[object TigerJS.DefaultWidget]"};
a.draggable=!1;a.FamilyID="DefaultWidget";T.globalWidgetCache[a.FamilyID]=T.globalWidgetCache[a.FamilyID]?T.globalWidgetCache[a.FamilyID]+=1:1;a.InstanceID=a.FamilyID+"%02X".sprintf(T.globalWidgetCache[a.FamilyID]);(!b||b&&!b.elementType)&&a.set_data(a.FamilyID,a.InstanceID);a.id=a.InstanceID;a.add_class("widgetContainer");a.focusedConfigured=!1;var c={_widgetElement:a,get_id:function(){return a.id},destroy:function(){a.destroy();return this},is_draggable:function(){return a.draggable},auto_stack:function(){this.configureFocus();
return this},show:function(){a.style.display=a.lastDisplayMode||"block";return this},hide:function(){a.lastDisplayMode=a.style.display;a.style.display="none";return this},Node:a,set_draggable:function(c,e,l){T.UI.FX.draggable(a,{constrain:!0===c||"undefined"===T.type(c)?!0:!1,H:!0===e?!0:!1,V:!0===l?!0:!1,dragTarget:b&&b.dragTarget?T.$(b.dragTarget):!1});a.add_class("draggable");a.draggable=!0;return this},unset_draggable:function(){T.UI.FX.draggable().cancel_drag(a);a.remove_class("draggable");a.draggable=
!1;return this},append_to_element:function(c){c.nodeType&&1===c.nodeType?c.appendChild(a):T.is_string(c)&&T.$(c).appendChild(a);if(b&&b.onInit)b.onInit();return this},configureFocus:function(){function b(){T.zIndexCache?g=T.zIndexCache+=1:(T.zIndexCache=50,g=T.zIndexCache);a.style.setProperty("z-index",g,"important")}function c(){a.style.setProperty("z-index",g,"important")}if(!a.focusedConfigured){var l=a.element_children(),g;l._on("mousedown",b);l._on("mouseup",c);a.on("mousedown",b);a.on("mouseup",
c);a.focusedConfigured=!0}},FamilyID:a.FamilyID,InstanceID:a.InstanceID};return a.WidgetObj=c};var nls_Info={en_Day:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),en_DaySH:"Sun Mon Tue Wed Thu Fri Sat".split(" "),en_Month:"January February March April May June July August September October November December".split(" "),en_MonthSH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),fr_Day:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),fr_DaySH:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),fr_Month:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),
fr_MonthSH:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),de_Day:"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag".split(" "),de_DaySH:"So Mo Di Mi Do Fr Sa".split(" "),de_Month:"Januar Februar M\u00e4rz April Mai Juni Juli August September Oktober November Dezember".split(" "),de_MonthSH:"Jan Feb Mrz Apr Mai Jun Jul Aug Sep Okt Nov Dez".split(" "),es_Day:"domingo lunes martes mi\u00e9rcoles jueves viernes s\u00e1bado".split(" "),es_DaySH:"dom lun mar mi\u00e9 jue vie s\u00e1b".split(" "),
es_Month:"enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre".split(" "),es_MonthSH:"ene feb mar abr may jun jul ago sep oct nov dic".split(" "),jp_Day:"\u65e5\u66dc\u65e5 \u6708\u66dc\u65e5 \u706b\u66dc\u65e5 \u6c34\u66dc\u65e5 \u6728\u66dc\u65e5 \u91d1\u66dc\u65e5 \u571f\u66dc\u65e5".split(" "),jp_DaySH:"\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),jp_Month:"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(" "),
jp_MonthSH:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),zn_Day:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),zn_DaySH:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),zn_Month:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708".split(" "),zn_MonthSH:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708".split(" ")};TigerJS.Date=function(b){return new function(a){var b=this,d=T.is_number(a)||T.is_string(a)?new Date(a):new Date,e={en:1,fr:1,es:1,de:1,jp:1,zn:1},l="en",g=function(a){d.setMilliseconds(d.getMilliseconds()+a);return d};this.daysInMonth=function(){var a=this.getMonth(),b=d.getFullYear();return[31,0!==b%4||0===b%100&&0!==b%400?28:29,31,30,31,30,31,31,30,31,30,31][a]};this.getLocale=function(){return l};this.setLocale=function(a){if(!T.is_string(a)||!e[a])throw"Bad Locale Identifier <> "+a+" given in - TigerJS.Date#setLocale ... See the documentation for valid locales ";
l=a;return this};this.getDate=function(){return d.getDate()};this.getDay=function(a,b){return a?b?nls_Info[l+"_DaySH"][d.getDay()]:nls_Info[l+"_Day"][d.getDay()]:d.getDay()};this.getDayNames=function(a){return a?nls_Info[l+"_DaySH"]:nls_Info[l+"_Day"]};this.getMonth=function(a,b){return a?b?nls_Info[l+"_MonthSH"][d.getMonth()]:nls_Info[l+"_Month"][d.getMonth()]:d.getMonth()};this.getWeek=function(){var a=new Date(d.valueOf()),b=(d.getDay()+6)%7;a.setDate(a.getDate()-(b+3));b=new Date(a.getFullYear(),
0,4);return 1+Math.ceil((a-b)/864E5/7)};this.getFullYear=function(){return d.getFullYear()};this.getHours=function(){return d.getHours()};this.getMinutes=function(){return d.getMinutes()};this.getSeconds=function(){return d.getSeconds()};this.getTime=function(){return d.getTime()};this.setFullYear=function(a,b,c){d.setFullYear(a);if(b||0<=b)a=d.getDate(),d.setDate(1),d.setMonth(b),d.setDate(Math.min(a,this.daysInMonth(d.getFullYear(),d.getMonth())));c&&d.setDate(c);return this};this.setMonth=function(a,
b){this.setFullYear(this.getFullYear(),a);b&&d.setDate(b);return this};this.setDate=function(a){d.setDate(a);return this};this.setHour=function(a,b,c,e){d.setHours(a);(b||0<=b)&&d.setMinutes(b);(c||0<=c)&&d.setSeconds(c);e&&d.setMilliseconds(e);return this};this.setMinutes=function(a,b,c){d.setMinutes(a);(b||0<=b)&&d.setSeconds(b);c&&d.setMilliseconds(c);return this};this.setSeconds=function(a,b){d.setSeconds(a);b&&d.setSeconds(b);return this};this.setMilliSeconds=function(a){this.setMilliseconds(a);
return this};this.setTime=function(a){this.setTime("undefined"!==T.type(a)?a:d.getMilliseconds());return this};this.add=function(a,c){if(a){a=T.Iterator(a);var d=T.Iterator(),e=[];a.without([" "]);a=a.map(function(a){return a.toLowerCase()});var h=c||!1;do isNaN(parseInt(a.current()))?(e[0]+=a.current().toString(),a.is_index(a.key+1)&&isNaN(parseInt(a[a.key+1]))&&(a.next(),e[0]+=a.current().toString()),a.splice(0,a.key+1),a.rewind(),d.add(e[0]),delete e[0]):("undefined"===T.type(e[0])&&(e[0]=""),
e[0]+=a.current(),a.next());while(a.size());d.forward_iterator(function(a){switch(a.charAt(a.length-1)){case "s":a=parseInt(a);h?g(-1E3*a):g(1E3*a);break;case "m":a=parseInt(a);h?g(-6E4*a):g(6E4*a);break;case "h":a=parseInt(a);h?g(-36E5*a):g(36E5*a);break;case "d":a=parseInt(a);h?g(-864E5*a):g(864E5*a);break;case "w":a=parseInt(a);h?g(-6048E5*a):g(6048E5*a);break;case "o":if(-1<a.indexOf("mo")){a=parseInt(a);var c=b.getDate();b.setDate(1);h?b.setMonth(b.getMonth()-a):b.setMonth(b.getMonth()+a);b.setDate(Math.min(c,
b.daysInMonth(b.getFullYear(),b.getMonth())))}break;case "y":a=parseInt(a),h?b.add(""+12*a+"mo",!0):b.add(""+12*a+"mo")}})}return b};this.subtract=function(a){return this.add(a,!0)};this.between=function(a,b){var c=this.getTime();return c>=a.getTime()&&c<=b.getTime()};this.clone=function(){return new T.Date(this.getTime())};this.compareTo=function(a){if(isNaN(a.getTime()))throw new TypeError(a);return this.getTime()>a.getTime()?1:this.getTime()<a.getTime()?-1:0};this.equals=function(a){return 0===
this.compareTo(a)};this.now=function(){return T.Date((new Date).getTime())};this.daysBetween=function(a){return 0>this.getTime()-a.getTime()?Math.round(-1*(this.getTime()-a.getTime())/864E5):Math.round((this.getTime()-a.getTime())/864E5)};this.weeksBetween=function(a){return 0>this.getTime()-a.getTime()?Math.round(-1*(this.getTime()-a.getTime())/6048E5):Math.round((this.getTime()-a.getTime())/6048E5)};this.monthsBetween=function(a){var b=this.getFullYear()-a.getFullYear();a=this.getMonth()-a.getMonth();
0>b&&(b*=-1);return 0>a?-1*a+(0!==b?12*b:0):a+(0!==b?12*b:0)};this.yearsBetween=function(a){a=this.getFullYear()-a.getFullYear();return 0>a?-1*a:a};this.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this};this.toString=function(){return d.toString()};this.format=function(a){function c(a){return 1===a.toString().length?"%02s".sprintf(a):a}return a?a.replace(/dd?d?d?|suff?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|ap?/g,function(a){switch(a){case "dddd":return b.getDay(!0);
case "ddd":return b.getDay(!0,!0);case "dd":return c(b.getDate());case "d":return b.getDate();case "suff":switch(b.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}case "MMMM":return b.getMonth(!0);case "MMM":return b.getMonth(!0,!0);case "MM":return c(b.getMonth()+1);case "M":return b.getMonth()+1;case "hh":return c(13>b.getHours()?b.getHours():b.getHours()-12);case "h":return 13>b.getHours()?b.getHours():b.getHours()-12;case "HH":return c(b.getHours());
case "H":return b.getHours();case "mm":return c(b.getMinutes());case "m":return b.getMinutes();case "ss":return c(b.getSeconds());case "s":return b.getSeconds();case "yyyy":return b.getFullYear();case "yy":return b.getFullYear().toString().substring(2,4);case "ap":return 12>b.getHours()?"AM":"PM"}}):this._toString()}}(b)};TigerJS.UI.Widget.CalendarWidget=function(b){return new function(a){var b=T.UI.Widget(),d=T.Date(),e=a&&a.theme?a.theme:"w3-white-theme",l=a&&a.backgroundColor?a.backgroundColor:null,g=a&&a.textColor?a.textColor:null,h=a&&a.hoverColor?a.hoverColor:null,m=a&&a.dateHoverColor?a.dateHoverColor:"#ccc",p=a&&a.top?a.top:"5em",f=a&&a.left?a.left:"5em",n=a&&a.localeColor?a.localeColor:null,u=a&&a.dateClickCB?a.dateClickCB:null,k=a&&a.selectedDateColor?a.selectedDateColor:null,q=a&&a.disabledDates?[].concat(a.disabledDates):
null,w=T.Iterator(),v=new Date,r=T.$(document.createElement("a"));if(q){var D=T.Iterator(),C;for(C=0;C<q.length;C++)if(1===q[C].length)D.add(q[C][0]);else{var x=q[C][0],E=q[C][1];D.fill(q[C][1]-q[C][0]+1,function(){var a=x<=E?x++:void 0;return a})}}a&&a.locale&&d.setLocale(a.locale);b.FamilyID="CalenderWidget";T.globalWidgetCache[b.FamilyID]=T.globalWidgetCache[b.FamilyID]?T.globalWidgetCache[b.FamilyID]+=1:1;b.InstanceID=b.FamilyID+"%02X".sprintf(T.globalWidgetCache[b.FamilyID]);b._widgetElement.id=
b.InstanceID;b._widgetElement.set_data(b.FamilyID,b.InstanceID);b._widgetElement.set_style({width:"100%",height:"100%",minWidth:"16em",minHeight:"14em",borderRadius:"0",top:p,left:f,maxWidth:"18em",maxHeight:"14em"});b._widgetElement.className+=" w3-card-4 widgetContainer TigerSmartCalendar";l?b._widgetElement.style.setProperty("background-color",l,"important"):e&&b._widgetElement.add_class(e);b._widgetElement.on("click",function(){this.stopPropagation();this.stopImmediatePropagation()});b._widgetElement.selectable(!1);
C=T.$(document.createElement("div"));C.id=b.InstanceID+"_headerElement";C.set_style({width:"100%",height:"12%",textAlign:"center"});a=T.$(document.createElement("span"));a.set_style({display:"inline-block",width:"8%",height:"60%",textAlign:"center",cssFloat:"left",borderRadius:"4em",margin:"6px 0px 0px 2px",fontSize:".8em ",cursor:"pointer"});a.innerHTML="◄";a.add_class("t-no-drag");g?a.style.setProperty("color",g,"important"):e&&a.add_class(e);h&&(a.oldColor=a.style.color,a.onmouseover=function(){this.style.setProperty("color",
h,"important")},a.onmouseout=function(){this.style.setProperty("color",this.oldColor)});a.on("click",function(){b.setView(null,null,"p")});a.on("click",function(){b.setView(null,null,"p")});var y=T.$(document.createElement("span"));y.set_style({display:"inline-block",width:"auto",height:"86%",paddingTop:"5px",fontSize:"1em",textAlign:"center",fontFamily:"Verdana, Geneva, sans-seri",fontVariant:"small-caps"});y.innerHTML="<span class='t-no-drag'>YEAR</span>";y.first_element_child().style.cursor="pointer";
y.first_element_child().on("mouseover",function(){this.target.style.cursor="pointer"});g?y.first_element_child().style.setProperty("color",g,"important"):e&&y.first_element_child().add_class(e);h&&(y.first_element_child().oldColor=y.first_element_child().style.color,y.first_element_child().onmouseover=function(){this.style.setProperty("color",h,"important")},y.first_element_child().onmouseout=function(){this.style.setProperty("color",this.oldColor)});p=T.$(document.createElement("span"));p.set_style({display:"inline-block",
width:"8%",height:"60%",textAlign:"center",cssFloat:"right",borderRadius:"4em",margin:"6px 2px 0px 0px",fontSize:".8em ",cursor:"pointer"});p.innerHTML="►";p.add_class("t-no-drag");g?p.style.setProperty("color",g,"important"):e&&p.add_class(e);h&&(p.oldColor=a.style.color,p.onmouseover=function(){this.style.setProperty("color",h,"important")},p.onmouseout=function(){this.style.setProperty("color",this.oldColor)});p.on("click",function(){b.setView(null,null,"n")});C.appendChild(a);C.appendChild(y);
C.appendChild(p);b._widgetElement.appendChild(C);var A=T.$(document.createElement("div"));A.set_style({cssFloat:"left",width:"100%",height:"6%",textAlign:"center",margin:"6px 5px 0px 0px",fontSize:".8em "});A.innerHTML="<table><tr></tr></table>";A.first_element_child().set_style({width:"100%",border:"none",borderStyle:"none",borderColor:"transparent"});g=d.getDayNames(!0);for(C=0;7>C;C++)A.first_element_child().rows[0].insertCell(-1).innerHTML=g[C];b._widgetElement.appendChild(A);g=T.$(document.createElement("div"));
g.selectable(!1);g.set_style({cssFloat:"left",width:"96%",height:"62%",textAlign:"center",marginTop:"3px",marginLeft:"1.5%",fontSize:".8em "});g.add_class("t-calendar-dateCell");g.innerHTML="<table><tr></tr></table>";var B=g.first_element_child();b._widgetElement.appendChild(g);B.set_style({width:"100%",height:"100%",border:"none",borderStyle:"none",borderColor:"transparent"});for(C=0;6>C;C++){for(g=0;7>g;g++)B.rows[C].insertCell(-1);B.insertRow(-1)}b.returnDateValue=function(){if(" "!==this.target.innerHTML){var a=
T.Date(d.getTime());a.setLocale(d.getLocale());a.setDate(this.target.textContent.trim());k&&(w.forward_iterator(function(a){a.style.backgroundColor="transparent"}),this.target.style.backgroundColor=k);u&&u(a,b)}this.stopImmediatePropagation();this.stopPropagation()};b.setupDates=function(){w.add_all(B.rows[0].cells).add_all(B.rows[1].cells).add_all(B.rows[2].cells).add_all(B.rows[3].cells).add_all(B.rows[4].cells).add_all(B.rows[5].cells).add_all(B.rows[6].cells);w.forward_iterator(function(a){"HTMLTableCellElement"===
T.type(a)&&(a.innerHTML=" ",a.className+="t-no-drag",a.style.border="none",a.style.textDecoration="none",a.style.backgroundColor="transparent",a.onmouseover=function(){var a=this.style.backgroundColor?T.UI.Color.color_to_hex(this.style.backgroundColor):"transparent",b=k?T.UI.Color.color_to_hex(k):"none";a!==b&&this.style.setProperty("background-color",m,"important")},a.onmouseout=function(){var a=this.style.backgroundColor?T.UI.Color.color_to_hex(this.style.backgroundColor):"transparent",b=k?
T.UI.Color.color_to_hex(k):"none";a!==b&&this.style.setProperty("background-color","transparent","important")})});for(var a=d.setDate(1).getDay(),c=d.daysInMonth(),e=1,f=0;42>f;f++)if(f>=a&&e<=c){w[f].innerHTML=e;e===v.getDate()&&d.getMonth()===v.getMonth()&&d.getFullYear()===v.getFullYear()&&(w[f].style.border="#666 1px dotted");if(D&&!1!==D.indexOf(e))w[f].style.textDecoration="line-through",T.$(w[f]).on("click",function(){this.returnValue=!1;this.stopPropagation();this.stopImmediatePropagation()});
else T.$(w[f]).on("click",b.returnDateValue);++e}y.first_element_child().innerHTML="◣ "+d.getMonth(!0)+" "+d.getFullYear();a=d.getDayNames(!0);for(f=0;7>f;f++)A.first_element_child().rows[0].cells[f].innerHTML=a[f];r.text=d.getLocale()};b.setupDates();r.set_style({fontSize:".8em",margin:"1% 0% 0% 90%"});r.style.setProperty("cursor","pointer","important");n&&(r.style.color=n);r.href="javascript://";r.text=d.getLocale();b._widgetElement.appendChild(r);r.on("click",function(){this.target.style.setProperty("cursor",
"pointer","important");if(document.getElementById("TCalWidgetLocaleList")&&this.target.parentNode===document.getElementById("TCalWidgetLocaleList").parentNode)document.getElementById("TCalWidgetLocaleList").parentNode.removeChild(document.getElementById("TCalWidgetLocaleList"));else{document.getElementById("TCalWidgetLocaleList")&&document.getElementById("TCalWidgetLocaleList").parentNode.removeChild(document.getElementById("TCalWidgetLocaleList"));var a=T.$(document.createElement("ul"));a.id="TCalWidgetLocaleList";
a.set_style({border:"solid 1px #999",padding:"2px",position:"relative",width:"2em",listStyleType:"none",textAlign:"center",fontSize:".8em",left:"88%",top:"-2%",backgroundColor:"#fff",zIndex:"200"});a.appendChild(document.createElement("li")).innerHTML="<a href='javascript://'>en</a>";a.appendChild(document.createElement("li")).innerHTML="<a href='javascript://'>fr</a>";a.appendChild(document.createElement("li")).innerHTML="<a href='javascript://'>es</a>";a.appendChild(document.createElement("li")).innerHTML=
"<a href='javascript://'>de</a>";a.appendChild(document.createElement("li")).innerHTML="<a href='javascript://'>zn</a>";a.appendChild(document.createElement("li")).innerHTML="<a href='javascript://'>jp</a>";for(var c=0;c<a.childNodes.length;c++){var d=T.$(a.childNodes[c]);d.style.textDecoration="underline";d.style.padding="3px";d.style.setProperty("cursor","pointer","important");d.on("click",b.changeLocale)}b._widgetElement.appendChild(a);T.UI.FX.Animation({el:a,name:"flipInX",time:".2"})}});b.changeLocale=
function(){var a="A"===this.target.nodeName?this.target.parentNode:this.target;d.setLocale(this.target.textContent.trim());for(var b=d.getDayNames(!0),c=0;7>c;c++)A.first_element_child().rows[0].cells[c].innerHTML=b[c];y.first_element_child().innerHTML="";y.first_element_child().innerHTML="◣ "+d.getMonth(!0)+" "+d.getFullYear();a.parentNode.parentNode.removeChild(a.parentNode);r.text=d.getLocale()};b.yearSelector=function(){function a(a){var f=a.trim();c.parentNode.removeChild(c);var g=T.$(document.createElement("div"));
g=T.$(document.createElement("div"));g.set_style({width:b._widgetElement.style.width,height:b._widgetElement.style.height,backgroundColor:l?l:b._widgetElement.style.backgroundColor,position:"absolute",top:"0",left:"0",fontSize:".8em",fontVariant:"small-caps",textAlign:"center"});e&&g.add_class(e);b._widgetElement.appendChild(g);a=T.$(document.createElement("table"));a.set_style({width:"80%",height:"80%",border:"none",borderStyle:"none",borderColor:"transparent",margin:"2% 0% 0% 7.5%",textAlign:"center",
borderSpacing:"10px"});for(var k=0;4>k;k++){a.insertRow(-1);for(var n=0;3>n;n++)a.rows[k].insertCell(-1)}k=T.Iterator().add_all(a.rows[0].cells).add_all(a.rows[1].cells).add_all(a.rows[2].cells).add_all(a.rows[3].cells);var p=T.Date(1900,0);p.setLocale(d.getLocale());k.forward_iterator(function(a){a.innerHTML=p.getMonth(!0,!0);a.setAttribute("mntIndex",p.getMonth());p.setMonth(p.getMonth()+1);a.style.cursor="pointer";a.className+=" t-no-drag";h?(a.oldColor=a.style.color,a.onmouseover=function(){this.style.setProperty("color",
h,"important")},a.onmouseout=function(){this.style.setProperty("color",this.oldColor)}):m&&(a.oldColor=a.style.color,a.onmouseover=function(){this.style.setProperty("color",m,"important")},a.onmouseout=function(){this.style.setProperty("color",this.oldColor)});T.$(a).on("click",function(){b.setView(f,this.target.getAttribute("mntIndex"));g.parentNode.removeChild(g)})});g.appendChild(a)}this.stopPropagation();var c=T.$(document.createElement("div"));c.set_style({width:b._widgetElement.style.width,
height:b._widgetElement.style.height,backgroundColor:l?l:b._widgetElement.style.backgroundColor,position:"absolute",top:"0",left:"0",fontSize:".8em",fontVariant:"small-caps"});e&&c.add_class(e);b._widgetElement.appendChild(c);for(var f=d.getFullYear(),g=T.Iterator(),k=0;20>k;k++,f++)g.add(f);c.innerHTML="<table></table>";var n=c.first_element_child();n.set_style({width:"85%",height:"80%",border:"none",borderStyle:"none",borderColor:"transparent",margin:"2% 0% 0% 7.5%",textAlign:"center"});for(f=0;5>
f;f++)for(n.insertRow(-1),k=0;4>k;k++)n.rows[f].insertCell(-1);var p=T.Iterator().add_all(n.rows[0].cells).add_all(n.rows[1].cells).add_all(n.rows[2].cells).add_all(n.rows[3].cells).add_all(n.rows[4].cells);g.forward_iterator(function(b){p[this.key].innerHTML=b;p[this.key].style.cursor="pointer";p[this.key].className+=" t-no-drag";h?(p[this.key].oldColor=p[this.key].style.color,p[this.key].onmouseover=function(){this.style.setProperty("color",h,"important")},p[this.key].onmouseout=function(){this.style.setProperty("color",
this.oldColor)}):m&&(p[this.key].oldColor=p[this.key].style.color,p[this.key].onmouseover=function(){this.style.setProperty("color",m,"important")},p[this.key].onmouseout=function(){this.style.setProperty("color",this.oldColor)});T.$(p[this.key]).on("click",function(){a(this.target.innerHTML)})});g=T.$(document.createElement("div"));g.set_style({width:"100%",height:"auto",textAlign:"left",fontSize:"1.5em",fontVariant:"small-caps",marginTop:"-6%"});f=T.$(document.createElement("p"));f.innerHTML="▶";
f.set_style({marginLeft:"40%",cssFloat:"left",cursor:"pointer"});f.add_class("t-no-drag");h&&(f.oldColor=f.style.color,f.onmouseover=function(){this.style.setProperty("color",h,"important")},f.onmouseout=function(){this.style.setProperty("color",this.oldColor)});f.on("click",function(){for(var a=parseInt(p.last().innerHTML)+1,b=0;20>b;b++,a++)p[b].innerHTML=a});k=T.$(document.createElement("p"));k.innerHTML="◀";k.set_style({marginLeft:"25%",cssFloat:"left",cursor:"pointer"});k.add_class("t-no-drag");
h&&(k.oldColor=k.style.color,k.onmouseover=function(){this.style.setProperty("color",h,"important")},k.onmouseout=function(){this.style.setProperty("color",this.oldColor)});k.on("click",function(){for(var a=parseInt(p.peek().innerHTML)-1,b=19;0<=b;b--,a--)p[b].innerHTML=a});c.appendChild(g);g.appendChild(k);g.appendChild(f)};y.first_element_child().on("click",b.yearSelector);b.setView=function(a,b,c){c?"p"===c?d.setMonth(d.getMonth()-1):"n"===c&&d.setMonth(d.getMonth()+1):(a&&d.setFullYear(a),(b||
0===b)&&d.setMonth(b));this.setupDates();return this};b.setLocaleID=function(a){d.setLocale(a);return this};b._widgetElement.__to_string=function(){return"[object TigerJS.CalendarWidget]"};return b}(b)};void function(b){function a(a,b){for(var c in b)a[c]=b[c]}if(!("DataView"in b&&"ArrayBuffer"in b)){var c=function(){if("function"===typeof Object.getOwnPropertyNames&&!("prototype"in Object.getOwnPropertyNames)){var a={enumerable:!1};return function(b,c){Object.defineProperty(b,c,a)}}return function(){}}(),d=b.ArrayBuffer=function(){function b(){for(var a=0;256>a;++a)h[m[a]=g(a)]=a,128<=a&&(h[g(63232+a)]=a)}function d(a){if(a instanceof d)this._data=a._data.slice();else if("string"===typeof a){for(var b=
[],e=a.length%8,g=0;e--;)b[g]=h[a[g++]];for(e=a.length>>3;e--;)b.push(h[a[g]],h[a[g+1]],h[a[g+2]],h[a[g+3]],h[a[g+4]],h[a[g+5]],h[a[g+6]],h[a[g+7]]),g+=8;this._data=b}else{if(0>(a>>=0))throw new RangeError("ArrayBuffer length must be non-negative");b=Array(a);for(e=0;e<a;e++)b[e]=0;this._data=b}this.byteLength=this._data.length;c(this,"_data")}var g=String.fromCharCode,h={},m=[];m.length||b();a(d,{toByteString:function(a){if(!(a instanceof d))throw new TypeError("ArrayBuffer.toByteString requires an ArrayBuffer");
a:{a=a._data;try{var b=g.apply(null,a);break a}catch(k){}b="";for(var c=a.length%8,e=0;c--;)b+=m[a[e++]];for(c=a.length>>3;c--;)b+=m[a[e]]+m[a[e+1]]+m[a[e+2]]+m[a[e+3]]+m[a[e+4]]+m[a[e+5]]+m[a[e+6]]+m[a[e+7]],e+=8}return b}});a(d.prototype,{slice:function(a,b){var c=new d(0);c._data=this._data.slice(a,b);c.byteLength=c._data.length;return c}});return d}();b.DataView=function(){function b(a,b,c,d,e){var f=a.buffer._data;b=a.byteOffset+b;var g=8*e-d-1;a=(1<<g)-1;var h=a>>1,l=-7;e=c?e-1:0;var k=c?-1:
1,m=f[b+e];e+=k;c=m&(1<<-l)-1;m>>=-l;for(l+=g;0<l;c=256*c+f[b+e],e+=k,l-=8);g=c&(1<<-l)-1;c>>=-l;for(l+=d;0<l;g=256*g+f[b+e],e+=k,l-=8);if(0===c)c=1-h;else{if(c===a)return g?Number.NaN:m?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;g+=q(2,d);c-=h}return(m?-1:1)*g*q(2,c-d)}function c(a,b,c,d,e,f){var g=a.buffer._data;b=a.byteOffset+b;var h;a=8*f-e-1;var l=(1<<a)-1,m=l>>1,n=23===e?q(2,-24)-q(2,-77):0;f=d?0:f-1;var p=d?1:-1,x=0>c||0===c&&0>1/c?1:0;0>c&&(c=-c);c!==c||c===Number.POSITIVE_INFINITY?
(c=c!==c?1:0,d=l):(d=k(c)/w|0,1>c*(h=q(2,-d))&&(d--,h*=2),c=1<=d+m?c+n/h:c+n*q(2,1-m),2<=c*h&&(d++,h/=2),d+m>=l?(c=0,d=l):1<=d+m?(c=(c*h-1)*q(2,e),d+=m):(c=c*q(2,m-1)*q(2,e),d=0));for(;8<=e;g[b+f]=c&255,f+=p,c/=256,e-=8);d=d<<e|c;for(a+=e;0<a;g[b+f]=d&255,f+=p,d/=256,a-=8);g[b+f-p]|=128*x}function g(a,b,c){var d=a.buffer._data;a=b+a.byteOffset;c=c?v:D;return d[a+c[0]]|d[a+c[1]]<<8}function h(a,b,c){var d=a.buffer._data;a=b+a.byteOffset;c=c?r:C;return d[a+c[0]]|d[a+c[1]]<<8|d[a+c[2]]<<16|d[a+c[3]]<<
24}function m(a,b,c){if(0>a)throw new RangeError("Tried to write to a negative index");if(a+b>c)throw new RangeError("Tried to write "+b+" bytes past the end of a buffer at index "+a+" of "+c);}function p(a,b,c){var d=a.buffer._data;a=b+a.byteOffset;m(a,1,d.length);d[a]=c&255}function f(a,b,c,d){var e=a.buffer._data;d=d?v:D;a=b+a.byteOffset;m(a,2,e.length);e[a+d[0]]=c&255;e[a+d[1]]=c>>>8&255}function n(a,b,c,d){var e=a.buffer._data;d=d?r:C;a=b+a.byteOffset;m(a,4,e.length);e[a+d[0]]=c&255;e[a+d[1]]=
c>>>8&255;e[a+d[2]]=c>>>16&255;e[a+d[3]]=c>>>24&255}function u(a,b,c){if(!(a instanceof d))throw new TypeError("DataView must be initialized with an ArrayBuffer");this.byteOffset=void 0===b?a.byteOffset>>0:b>>0;if(0>this.byteOffset)throw new RangeError("DataView byteOffset must be non-negative");this.byteLength=void 0===c?a.byteLength-this.byteOffset>>0:c>>0;if(0>this.byteLength)throw new RangeError("DataView byteLength must be non-negative");if(this.byteOffset+this.byteLength>a.byteLength)throw new RangeError("DataView byteOffset and byteLength greater than ArrayBuffer byteLength");
this.buffer=a}var k=Math.log,q=Math.pow,w=Math.LN2,v=[1,0],r=[3,2,1,0],D=[0,1],C=[0,1,2,3];a(u.prototype,{getFloat32:function(a,c){return b(this,a,c,23,4)},getFloat64:function(a,c){return b(this,a,c,52,8)},getInt8:function(a){a=this.buffer._data[a+this.byteOffset];return a&128?a^-256:a},getInt16:function(a,b){a=g(this,a,b);return a&32768?a^-65536:a},getInt32:function(a,b){a=h(this,a,b);return a&2147483648?a^-4294967296:a},getUint8:function(a){return this.buffer._data[a+this.byteOffset]},getUint16:function(a,
b){return g(this,a,b)},getUint32:function(a,b){return h(this,a,b)},setFloat32:function(a,b,d){c(this,a,b,d,23,4)},setFloat64:function(a,b,d){c(this,a,b,d,52,8)},setInt8:function(a,b){p(this,a,0>b?b|256:b)},setInt16:function(a,b,c){f(this,a,0>b?b|65536:b,c)},setInt32:function(a,b,c){n(this,a,0>b?b|4294967296:b,c)},setUint8:function(a,b){p(this,a,b)},setUint16:function(a,b,c){f(this,a,b,c)},setUint32:function(a,b,c){n(this,a,b,c)}});return u}()}}((0,eval)("this"));
ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(b,a){void 0===b&&(b=0);void 0===a&&(a=this.byteLength);b=Math.floor(b);a=Math.floor(a);0>b&&(b+=this.byteLength);0>a&&(a+=this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);if(0>=a-b)return new ArrayBuffer(0);var c=new ArrayBuffer(a-b),d=new Uint8Array(c);b=new Uint8Array(this,b,a-b);d.set(b);return c});(function(){for(var b=0;b<document.scripts.length;b++)-1!==document.scripts[b].src.strpos("tiger")&&(T.library_installation_path=document.scripts[b].src.substr(0,document.scripts[b].src.strrpos("/")));T.Conn.subscribe(function(a){"online"===a.state?TigerJS.NETWORK_STATE=_T_NET_ONLINE:"offline"===a.state&&(TigerJS.NETWORK_STATE=_T_NET_OFFLINE)});T.Conn.update();T.poll(T.dom_ready,T.execute_startup_routines);T.poll(T.dom_ready,insert_svg_icons)})();
function insert_svg_icons(){var b=T.Iterator(document.querySelectorAll("[class*='T-icons']")),a=T.Iterator(),c=[];b.walk(function(b){b=T.$(b);if("svg"!==b.nodeName&&"svg"!==b.first_element_child().nodeName){var d=T.Iterator(b.className.split(" ")).at(T.Iterator(b.className.split(" ")).str_index_of("T-icons-"));c[c.length]={uri:T.library_installation_path+"/asset/font/"+d+".svg",tag:d.substring(d+2),uniqueID:!0};a.add(b);b.remove_class(d)}});0!==a.length&&(c[c.length]=function(b){var c=T.Iterator(),
d;for(d in b)b[d]=(new DOMParser).parseFromString(b[d],"image/svg+xml").firstElementChild,c.add(b[d]),void 0===b[d]&&(b[d]=T.create(b[d]).firstElementChild,c.add(b[d]));for(d=0;d<a.length;d++){b=a[d].get_style();try{for(var g=0;g<c[d].children.length;g++)if(c[d].children[g].hasAttribute("style")&&c[d].children[g].removeAttribute("style"),c[d].children[g].hasAttribute("fill")&&c[d].children[g].removeAttribute("fill"),"style"===c[d].children[g].nodeName&&c[d].children[g].parentNode.removeChild(c[d].children[g]),
c[d].children[g].children.length)for(var h=0;h<c[d].children[g].children.length;h++)"style"===c[d].children[g].children[h].nodeName&&c[d].children[g].children[h].parentNode.removeChild(c[d].children[g].children[h]),c[d].children[g].children[h].hasAttribute("style")&&c[d].children[g].children[h].removeAttribute("style"),c[d].children[g].children[h].hasAttribute("fill")&&c[d].children[g].children[h].removeAttribute("fill");a[d].id&&(c[d].id=a[d].id);a[d].style.width?c[d].setAttribute("width",a[d].style.width):
c[d].setAttribute("width","20px");a[d].style.height?c[d].setAttribute("height",a[d].style.height):c[d].setAttribute("height","20px");c[d].style.setProperty("vertical-align","text-top");"IMG"===a[d].nodeName?a[d].parentNode.replaceChild(c[d],a[d]):a[d].firstChild?a[d].insertBefore(c[d],a[d].firstChild):a[d].appendChild(c[d]);if(b.fill)for(g=0;g<c[d].children.length;g++)c[d].children[g].style.setProperty("fill",b.fill,"important"),c[d].style.setProperty("fill",b.fill,"important");else if(b.color)for(g=
0;g<c[d].children.length;g++)c[d].children[g].style.setProperty("fill",b.color,"important"),c[d].style.setProperty("fill",b.color,"important")}catch(m){}}},T.io.CompositeRequest.apply(window,c).send())}T.insert_svg_icons=insert_svg_icons;